1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1 200 201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 PATH=/empty FPATH=/empty; export PATH FPATH 206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME= 589PACKAGE_TARNAME= 590PACKAGE_VERSION= 591PACKAGE_STRING= 592PACKAGE_BUGREPORT= 593PACKAGE_URL= 594 595ac_unique_file="build/apr_common.m4" 596# Factoring default headers for most tests. 597ac_includes_default="\ 598#include <stdio.h> 599#ifdef HAVE_SYS_TYPES_H 600# include <sys/types.h> 601#endif 602#ifdef HAVE_SYS_STAT_H 603# include <sys/stat.h> 604#endif 605#ifdef STDC_HEADERS 606# include <stdlib.h> 607# include <stddef.h> 608#else 609# ifdef HAVE_STDLIB_H 610# include <stdlib.h> 611# endif 612#endif 613#ifdef HAVE_STRING_H 614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 615# include <memory.h> 616# endif 617# include <string.h> 618#endif 619#ifdef HAVE_STRINGS_H 620# include <strings.h> 621#endif 622#ifdef HAVE_INTTYPES_H 623# include <inttypes.h> 624#endif 625#ifdef HAVE_STDINT_H 626# include <stdint.h> 627#endif 628#ifdef HAVE_UNISTD_H 629# include <unistd.h> 630#endif" 631 632ac_subst_vars='LTLIBOBJS 633LIBOBJS 634INCLUDE_OUTPUTS 635INCLUDE_RULES 636LT_NO_INSTALL 637LIBTOOL_LIBS 638DEFAULT_OSDIR 639OSDIR 640INCLUDES 641LDLIBS 642INTERNAL_CPPFLAGS 643NOTEST_INCLUDES 644NOTEST_LIBS 645NOTEST_LDFLAGS 646NOTEST_CFLAGS 647NOTEST_CPPFLAGS 648EXTRA_INCLUDES 649EXTRA_LIBS 650EXTRA_LDFLAGS 651EXTRA_CFLAGS 652EXTRA_CPPFLAGS 653apr_has_user 654apr_thread_func 655apr_procattr_user_set_requires_password 656apr_has_xthread_files 657have_unicode_fs 658apr_has_timedlocks 659have_ipv6 660have_sockaddr_un 661have_sa_storage 662have_sctp 663acceptfilter 664have_corkable_tcp 665apr_tcp_nopush_flag 666file_as_socket 667have_in_addr 668osuuid 669rand 670proclockglobal 671pthreadser 672procpthreadser 673fcntlser 674posixser 675sysvser 676flockser 677hasprocpthreadser 678hasfcntlser 679hasposixser 680hassysvser 681hasflockser 682have_pthread_condattr_setpshared 683have_pthread_mutex_timedlock 684have_union_semun 685struct_rlimit 686have_proc_invoked 687oc 688aprdso 689have_memchr 690have_strstr 691have_strdup 692have_strcasecmp 693have_stricmp 694have_strncasecmp 695have_strnicmp 696ino_t_value 697have_iovec 698aprlfs 699bigendian 700stdint 701uint64_literal 702int64_literal 703pid_t_fmt 704off_t_fmt 705size_t_fmt 706ssize_t_fmt 707uint64_t_hex_fmt 708uint64_t_fmt 709int64_t_fmt 710socklen_t_value 711ssize_t_value 712size_t_value 713off_t_value 714uint64_value 715int64_value 716int_value 717short_value 718voidp_size 719winsock2h 720windowsh 721semaphoreh 722pthreadh 723processh 724sys_waith 725signalh 726unistdh 727timeh 728sys_unh 729sys_uioh 730sys_timeh 731sys_typesh 732sys_sockioh 733sys_socketh 734sys_signalh 735sys_sendfileh 736sys_ioctlh 737stringsh 738stringh 739stdlibh 740stdioh 741stdargh 742netinet_tcph 743netinet_sctp_uioh 744netinet_sctph 745netinet_inh 746sys_syslimitsh 747netdbh 748limitsh 749ioh 750inttypesh 751fcntlh 752direnth 753errnoh 754crypth 755ctypeh 756conioh 757arpa_ineth 758have_memmove 759mmap 760have_getrlimit 761have_setrlimit 762have_sigaction 763have_inet_network 764o_nonblock_inherited 765tcp_nodelay_inherited 766have_inet_addr 767fork 768apr_inaddr_none 769sendfile 770ALLOCA 771sharedmem 772havewin32shm 773haveos2shm 774havebeosarea 775haveshmget 776havemmapshm 777havemmaptmp 778usewin32shm 779useos2shm 780usebeosarea 781useshmget 782usemmapshm 783usemmaptmp 784havemmapanon 785havemmapzero 786haveshmgetanon 787usemmapanon 788usemmapzero 789useshmgetanon 790have_sigwait 791have_sigsuspend 792threads 793INSTALL_SUBDIRS 794eolstr 795proc_mutex_is_global 796OBJECTS_PLATFORM 797MKDEP 798LT_VERSION 799LT_LDFLAGS 800LTFLAGS 801shlibpath_var 802export_lib_target 803lib_target 804so_ext 805link 806lt_compile 807installbuilddir 808LT_SYS_LIBRARY_PATH 809OTOOL64 810OTOOL 811LIPO 812NMEDIT 813DSYMUTIL 814MANIFEST_TOOL 815STRIP 816ac_ct_AR 817NM 818ac_ct_DUMPBIN 819DUMPBIN 820LD 821FGREP 822LIBTOOL 823OBJDUMP 824DLLTOOL 825APR_LIBNAME 826apr_charset_ebcdic 827EGREP 828GREP 829AR 830ASCPP 831AS 832RM 833INSTALL_DATA 834INSTALL_SCRIPT 835INSTALL_PROGRAM 836RANLIB 837LN_S 838AWK 839CPP 840SET_MAKE 841SED 842OBJEXT 843EXEEXT 844ac_ct_CC 845CPPFLAGS 846LDFLAGS 847CFLAGS 848CC 849APR_MAJOR_VERSION 850APR_DOTTED_VERSION 851apr_builders 852top_builddir 853APR_CONFIG_LOCATION 854apr_builddir 855apr_srcdir 856target_os 857target_vendor 858target_cpu 859target 860host_os 861host_vendor 862host_cpu 863host 864build_os 865build_vendor 866build_cpu 867build 868target_alias 869host_alias 870build_alias 871LIBS 872ECHO_T 873ECHO_N 874ECHO_C 875DEFS 876mandir 877localedir 878libdir 879psdir 880pdfdir 881dvidir 882htmldir 883infodir 884docdir 885oldincludedir 886includedir 887localstatedir 888sharedstatedir 889sysconfdir 890datadir 891datarootdir 892libexecdir 893sbindir 894bindir 895program_transform_name 896prefix 897exec_prefix 898PACKAGE_URL 899PACKAGE_BUGREPORT 900PACKAGE_STRING 901PACKAGE_VERSION 902PACKAGE_TARNAME 903PACKAGE_NAME 904PATH_SEPARATOR 905SHELL' 906ac_subst_files='' 907ac_user_opts=' 908enable_option_checking 909enable_layout 910enable_experimental_libtool 911enable_shared 912enable_static 913with_pic 914enable_fast_install 915with_aix_soname 916with_gnu_ld 917with_sysroot 918enable_libtool_lock 919with_installbuilddir 920with_libtool 921enable_debug 922enable_maintainer_mode 923enable_profile 924enable_pool_debug 925enable_malloc_debug 926enable_lfs 927enable_nonportable_atomics 928enable_threads 929with_efence 930with_valgrind 931enable_posix_shm 932with_sendfile 933enable_allocator_uses_mmap 934enable_allocator_guard_pages 935enable_pool_concurrency_check 936enable_dso 937enable_other_child 938with_egd 939with_devrandom 940enable_ipv6 941enable_timedlocks 942' 943 ac_precious_vars='build_alias 944host_alias 945target_alias 946CC 947CFLAGS 948LDFLAGS 949LIBS 950CPPFLAGS 951CPP 952LT_SYS_LIBRARY_PATH' 953 954 955# Initialize some variables set by options. 956ac_init_help= 957ac_init_version=false 958ac_unrecognized_opts= 959ac_unrecognized_sep= 960# The variables have the same names as the options, with 961# dashes changed to underlines. 962cache_file=/dev/null 963exec_prefix=NONE 964no_create= 965no_recursion= 966prefix=NONE 967program_prefix=NONE 968program_suffix=NONE 969program_transform_name=s,x,x, 970silent= 971site= 972srcdir= 973verbose= 974x_includes=NONE 975x_libraries=NONE 976 977# Installation directory options. 978# These are left unexpanded so users can "make install exec_prefix=/foo" 979# and all the variables that are supposed to be based on exec_prefix 980# by default will actually change. 981# Use braces instead of parens because sh, perl, etc. also accept them. 982# (The list follows the same order as the GNU Coding Standards.) 983bindir='${exec_prefix}/bin' 984sbindir='${exec_prefix}/sbin' 985libexecdir='${exec_prefix}/libexec' 986datarootdir='${prefix}/share' 987datadir='${datarootdir}' 988sysconfdir='${prefix}/etc' 989sharedstatedir='${prefix}/com' 990localstatedir='${prefix}/var' 991includedir='${prefix}/include' 992oldincludedir='/usr/include' 993docdir='${datarootdir}/doc/${PACKAGE}' 994infodir='${datarootdir}/info' 995htmldir='${docdir}' 996dvidir='${docdir}' 997pdfdir='${docdir}' 998psdir='${docdir}' 999libdir='${exec_prefix}/lib' 1000localedir='${datarootdir}/locale' 1001mandir='${datarootdir}/man' 1002 1003ac_prev= 1004ac_dashdash= 1005for ac_option 1006do 1007 # If the previous option needs an argument, assign it. 1008 if test -n "$ac_prev"; then 1009 eval $ac_prev=\$ac_option 1010 ac_prev= 1011 continue 1012 fi 1013 1014 case $ac_option in 1015 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1016 *=) ac_optarg= ;; 1017 *) ac_optarg=yes ;; 1018 esac 1019 1020 # Accept the important Cygnus configure options, so we can diagnose typos. 1021 1022 case $ac_dashdash$ac_option in 1023 --) 1024 ac_dashdash=yes ;; 1025 1026 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1027 ac_prev=bindir ;; 1028 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1029 bindir=$ac_optarg ;; 1030 1031 -build | --build | --buil | --bui | --bu) 1032 ac_prev=build_alias ;; 1033 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1034 build_alias=$ac_optarg ;; 1035 1036 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1037 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1038 ac_prev=cache_file ;; 1039 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1040 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1041 cache_file=$ac_optarg ;; 1042 1043 --config-cache | -C) 1044 cache_file=config.cache ;; 1045 1046 -datadir | --datadir | --datadi | --datad) 1047 ac_prev=datadir ;; 1048 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1049 datadir=$ac_optarg ;; 1050 1051 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1052 | --dataroo | --dataro | --datar) 1053 ac_prev=datarootdir ;; 1054 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1055 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1056 datarootdir=$ac_optarg ;; 1057 1058 -disable-* | --disable-*) 1059 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1060 # Reject names that are not valid shell variable names. 1061 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1062 as_fn_error $? "invalid feature name: $ac_useropt" 1063 ac_useropt_orig=$ac_useropt 1064 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1065 case $ac_user_opts in 1066 *" 1067"enable_$ac_useropt" 1068"*) ;; 1069 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1070 ac_unrecognized_sep=', ';; 1071 esac 1072 eval enable_$ac_useropt=no ;; 1073 1074 -docdir | --docdir | --docdi | --doc | --do) 1075 ac_prev=docdir ;; 1076 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1077 docdir=$ac_optarg ;; 1078 1079 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1080 ac_prev=dvidir ;; 1081 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1082 dvidir=$ac_optarg ;; 1083 1084 -enable-* | --enable-*) 1085 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1086 # Reject names that are not valid shell variable names. 1087 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1088 as_fn_error $? "invalid feature name: $ac_useropt" 1089 ac_useropt_orig=$ac_useropt 1090 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1091 case $ac_user_opts in 1092 *" 1093"enable_$ac_useropt" 1094"*) ;; 1095 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1096 ac_unrecognized_sep=', ';; 1097 esac 1098 eval enable_$ac_useropt=\$ac_optarg ;; 1099 1100 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1101 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1102 | --exec | --exe | --ex) 1103 ac_prev=exec_prefix ;; 1104 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1105 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1106 | --exec=* | --exe=* | --ex=*) 1107 exec_prefix=$ac_optarg ;; 1108 1109 -gas | --gas | --ga | --g) 1110 # Obsolete; use --with-gas. 1111 with_gas=yes ;; 1112 1113 -help | --help | --hel | --he | -h) 1114 ac_init_help=long ;; 1115 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1116 ac_init_help=recursive ;; 1117 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1118 ac_init_help=short ;; 1119 1120 -host | --host | --hos | --ho) 1121 ac_prev=host_alias ;; 1122 -host=* | --host=* | --hos=* | --ho=*) 1123 host_alias=$ac_optarg ;; 1124 1125 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1126 ac_prev=htmldir ;; 1127 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1128 | --ht=*) 1129 htmldir=$ac_optarg ;; 1130 1131 -includedir | --includedir | --includedi | --included | --include \ 1132 | --includ | --inclu | --incl | --inc) 1133 ac_prev=includedir ;; 1134 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1135 | --includ=* | --inclu=* | --incl=* | --inc=*) 1136 includedir=$ac_optarg ;; 1137 1138 -infodir | --infodir | --infodi | --infod | --info | --inf) 1139 ac_prev=infodir ;; 1140 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1141 infodir=$ac_optarg ;; 1142 1143 -libdir | --libdir | --libdi | --libd) 1144 ac_prev=libdir ;; 1145 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1146 libdir=$ac_optarg ;; 1147 1148 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1149 | --libexe | --libex | --libe) 1150 ac_prev=libexecdir ;; 1151 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1152 | --libexe=* | --libex=* | --libe=*) 1153 libexecdir=$ac_optarg ;; 1154 1155 -localedir | --localedir | --localedi | --localed | --locale) 1156 ac_prev=localedir ;; 1157 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1158 localedir=$ac_optarg ;; 1159 1160 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1161 | --localstate | --localstat | --localsta | --localst | --locals) 1162 ac_prev=localstatedir ;; 1163 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1164 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1165 localstatedir=$ac_optarg ;; 1166 1167 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1168 ac_prev=mandir ;; 1169 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1170 mandir=$ac_optarg ;; 1171 1172 -nfp | --nfp | --nf) 1173 # Obsolete; use --without-fp. 1174 with_fp=no ;; 1175 1176 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1177 | --no-cr | --no-c | -n) 1178 no_create=yes ;; 1179 1180 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1181 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1182 no_recursion=yes ;; 1183 1184 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1185 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1186 | --oldin | --oldi | --old | --ol | --o) 1187 ac_prev=oldincludedir ;; 1188 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1189 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1190 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1191 oldincludedir=$ac_optarg ;; 1192 1193 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1194 ac_prev=prefix ;; 1195 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1196 prefix=$ac_optarg ;; 1197 1198 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1199 | --program-pre | --program-pr | --program-p) 1200 ac_prev=program_prefix ;; 1201 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1202 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1203 program_prefix=$ac_optarg ;; 1204 1205 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1206 | --program-suf | --program-su | --program-s) 1207 ac_prev=program_suffix ;; 1208 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1209 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1210 program_suffix=$ac_optarg ;; 1211 1212 -program-transform-name | --program-transform-name \ 1213 | --program-transform-nam | --program-transform-na \ 1214 | --program-transform-n | --program-transform- \ 1215 | --program-transform | --program-transfor \ 1216 | --program-transfo | --program-transf \ 1217 | --program-trans | --program-tran \ 1218 | --progr-tra | --program-tr | --program-t) 1219 ac_prev=program_transform_name ;; 1220 -program-transform-name=* | --program-transform-name=* \ 1221 | --program-transform-nam=* | --program-transform-na=* \ 1222 | --program-transform-n=* | --program-transform-=* \ 1223 | --program-transform=* | --program-transfor=* \ 1224 | --program-transfo=* | --program-transf=* \ 1225 | --program-trans=* | --program-tran=* \ 1226 | --progr-tra=* | --program-tr=* | --program-t=*) 1227 program_transform_name=$ac_optarg ;; 1228 1229 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1230 ac_prev=pdfdir ;; 1231 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1232 pdfdir=$ac_optarg ;; 1233 1234 -psdir | --psdir | --psdi | --psd | --ps) 1235 ac_prev=psdir ;; 1236 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1237 psdir=$ac_optarg ;; 1238 1239 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1240 | -silent | --silent | --silen | --sile | --sil) 1241 silent=yes ;; 1242 1243 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1244 ac_prev=sbindir ;; 1245 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1246 | --sbi=* | --sb=*) 1247 sbindir=$ac_optarg ;; 1248 1249 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1250 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1251 | --sharedst | --shareds | --shared | --share | --shar \ 1252 | --sha | --sh) 1253 ac_prev=sharedstatedir ;; 1254 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1255 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1256 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1257 | --sha=* | --sh=*) 1258 sharedstatedir=$ac_optarg ;; 1259 1260 -site | --site | --sit) 1261 ac_prev=site ;; 1262 -site=* | --site=* | --sit=*) 1263 site=$ac_optarg ;; 1264 1265 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1266 ac_prev=srcdir ;; 1267 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1268 srcdir=$ac_optarg ;; 1269 1270 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1271 | --syscon | --sysco | --sysc | --sys | --sy) 1272 ac_prev=sysconfdir ;; 1273 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1274 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1275 sysconfdir=$ac_optarg ;; 1276 1277 -target | --target | --targe | --targ | --tar | --ta | --t) 1278 ac_prev=target_alias ;; 1279 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1280 target_alias=$ac_optarg ;; 1281 1282 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1283 verbose=yes ;; 1284 1285 -version | --version | --versio | --versi | --vers | -V) 1286 ac_init_version=: ;; 1287 1288 -with-* | --with-*) 1289 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1290 # Reject names that are not valid shell variable names. 1291 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1292 as_fn_error $? "invalid package name: $ac_useropt" 1293 ac_useropt_orig=$ac_useropt 1294 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1295 case $ac_user_opts in 1296 *" 1297"with_$ac_useropt" 1298"*) ;; 1299 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1300 ac_unrecognized_sep=', ';; 1301 esac 1302 eval with_$ac_useropt=\$ac_optarg ;; 1303 1304 -without-* | --without-*) 1305 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1306 # Reject names that are not valid shell variable names. 1307 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1308 as_fn_error $? "invalid package name: $ac_useropt" 1309 ac_useropt_orig=$ac_useropt 1310 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1311 case $ac_user_opts in 1312 *" 1313"with_$ac_useropt" 1314"*) ;; 1315 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1316 ac_unrecognized_sep=', ';; 1317 esac 1318 eval with_$ac_useropt=no ;; 1319 1320 --x) 1321 # Obsolete; use --with-x. 1322 with_x=yes ;; 1323 1324 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1325 | --x-incl | --x-inc | --x-in | --x-i) 1326 ac_prev=x_includes ;; 1327 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1328 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1329 x_includes=$ac_optarg ;; 1330 1331 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1332 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1333 ac_prev=x_libraries ;; 1334 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1335 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1336 x_libraries=$ac_optarg ;; 1337 1338 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1339Try \`$0 --help' for more information" 1340 ;; 1341 1342 *=*) 1343 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1344 # Reject names that are not valid shell variable names. 1345 case $ac_envvar in #( 1346 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1347 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1348 esac 1349 eval $ac_envvar=\$ac_optarg 1350 export $ac_envvar ;; 1351 1352 *) 1353 # FIXME: should be removed in autoconf 3.0. 1354 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1355 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1356 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1357 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1358 ;; 1359 1360 esac 1361done 1362 1363if test -n "$ac_prev"; then 1364 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1365 as_fn_error $? "missing argument to $ac_option" 1366fi 1367 1368if test -n "$ac_unrecognized_opts"; then 1369 case $enable_option_checking in 1370 no) ;; 1371 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1372 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1373 esac 1374fi 1375 1376# Check all directory arguments for consistency. 1377for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1378 datadir sysconfdir sharedstatedir localstatedir includedir \ 1379 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1380 libdir localedir mandir 1381do 1382 eval ac_val=\$$ac_var 1383 # Remove trailing slashes. 1384 case $ac_val in 1385 */ ) 1386 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1387 eval $ac_var=\$ac_val;; 1388 esac 1389 # Be sure to have absolute directory names. 1390 case $ac_val in 1391 [\\/$]* | ?:[\\/]* ) continue;; 1392 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1393 esac 1394 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1395done 1396 1397# There might be people who depend on the old broken behavior: `$host' 1398# used to hold the argument of --host etc. 1399# FIXME: To remove some day. 1400build=$build_alias 1401host=$host_alias 1402target=$target_alias 1403 1404# FIXME: To remove some day. 1405if test "x$host_alias" != x; then 1406 if test "x$build_alias" = x; then 1407 cross_compiling=maybe 1408 elif test "x$build_alias" != "x$host_alias"; then 1409 cross_compiling=yes 1410 fi 1411fi 1412 1413ac_tool_prefix= 1414test -n "$host_alias" && ac_tool_prefix=$host_alias- 1415 1416test "$silent" = yes && exec 6>/dev/null 1417 1418 1419ac_pwd=`pwd` && test -n "$ac_pwd" && 1420ac_ls_di=`ls -di .` && 1421ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1422 as_fn_error $? "working directory cannot be determined" 1423test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1424 as_fn_error $? "pwd does not report name of working directory" 1425 1426 1427# Find the source files, if location was not specified. 1428if test -z "$srcdir"; then 1429 ac_srcdir_defaulted=yes 1430 # Try the directory containing this script, then the parent directory. 1431 ac_confdir=`$as_dirname -- "$as_myself" || 1432$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1433 X"$as_myself" : 'X\(//\)[^/]' \| \ 1434 X"$as_myself" : 'X\(//\)$' \| \ 1435 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1436$as_echo X"$as_myself" | 1437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1438 s//\1/ 1439 q 1440 } 1441 /^X\(\/\/\)[^/].*/{ 1442 s//\1/ 1443 q 1444 } 1445 /^X\(\/\/\)$/{ 1446 s//\1/ 1447 q 1448 } 1449 /^X\(\/\).*/{ 1450 s//\1/ 1451 q 1452 } 1453 s/.*/./; q'` 1454 srcdir=$ac_confdir 1455 if test ! -r "$srcdir/$ac_unique_file"; then 1456 srcdir=.. 1457 fi 1458else 1459 ac_srcdir_defaulted=no 1460fi 1461if test ! -r "$srcdir/$ac_unique_file"; then 1462 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1463 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1464fi 1465ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1466ac_abs_confdir=`( 1467 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1468 pwd)` 1469# When building in place, set srcdir=. 1470if test "$ac_abs_confdir" = "$ac_pwd"; then 1471 srcdir=. 1472fi 1473# Remove unnecessary trailing slashes from srcdir. 1474# Double slashes in file names in object file debugging info 1475# mess up M-x gdb in Emacs. 1476case $srcdir in 1477*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1478esac 1479for ac_var in $ac_precious_vars; do 1480 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1481 eval ac_env_${ac_var}_value=\$${ac_var} 1482 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1483 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1484done 1485 1486# 1487# Report the --help message. 1488# 1489if test "$ac_init_help" = "long"; then 1490 # Omit some internal or obsolete options to make the list less imposing. 1491 # This message is too long to be a string in the A/UX 3.1 sh. 1492 cat <<_ACEOF 1493\`configure' configures this package to adapt to many kinds of systems. 1494 1495Usage: $0 [OPTION]... [VAR=VALUE]... 1496 1497To assign environment variables (e.g., CC, CFLAGS...), specify them as 1498VAR=VALUE. See below for descriptions of some of the useful variables. 1499 1500Defaults for the options are specified in brackets. 1501 1502Configuration: 1503 -h, --help display this help and exit 1504 --help=short display options specific to this package 1505 --help=recursive display the short help of all the included packages 1506 -V, --version display version information and exit 1507 -q, --quiet, --silent do not print \`checking ...' messages 1508 --cache-file=FILE cache test results in FILE [disabled] 1509 -C, --config-cache alias for \`--cache-file=config.cache' 1510 -n, --no-create do not create output files 1511 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1512 1513Installation directories: 1514 --prefix=PREFIX install architecture-independent files in PREFIX 1515 [$ac_default_prefix] 1516 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1517 [PREFIX] 1518 1519By default, \`make install' will install all the files in 1520\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1521an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1522for instance \`--prefix=\$HOME'. 1523 1524For better control, use the options below. 1525 1526Fine tuning of the installation directories: 1527 --bindir=DIR user executables [EPREFIX/bin] 1528 --sbindir=DIR system admin executables [EPREFIX/sbin] 1529 --libexecdir=DIR program executables [EPREFIX/libexec] 1530 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1531 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1532 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1533 --libdir=DIR object code libraries [EPREFIX/lib] 1534 --includedir=DIR C header files [PREFIX/include] 1535 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1536 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1537 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1538 --infodir=DIR info documentation [DATAROOTDIR/info] 1539 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1540 --mandir=DIR man documentation [DATAROOTDIR/man] 1541 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1542 --htmldir=DIR html documentation [DOCDIR] 1543 --dvidir=DIR dvi documentation [DOCDIR] 1544 --pdfdir=DIR pdf documentation [DOCDIR] 1545 --psdir=DIR ps documentation [DOCDIR] 1546_ACEOF 1547 1548 cat <<\_ACEOF 1549 1550System types: 1551 --build=BUILD configure for building on BUILD [guessed] 1552 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1553 --target=TARGET configure for building compilers for TARGET [HOST] 1554_ACEOF 1555fi 1556 1557if test -n "$ac_init_help"; then 1558 1559 cat <<\_ACEOF 1560 1561Optional Features: 1562 --disable-option-checking ignore unrecognized --enable/--with options 1563 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1564 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1565 --enable-layout=LAYOUT 1566 --enable-experimental-libtool Use experimental custom libtool 1567 --enable-shared[=PKGS] build shared libraries [default=yes] 1568 --enable-static[=PKGS] build static libraries [default=yes] 1569 --enable-fast-install[=PKGS] 1570 optimize for fast installation [default=yes] 1571 --disable-libtool-lock avoid locking (might break parallel builds) 1572 --enable-debug Turn on debugging and compile time warnings 1573 --enable-maintainer-mode Turn on debugging and compile time warnings 1574 --enable-profile Turn on profiling for the build (GCC) 1575 --enable-pool-debug[=yes|no|verbose|verbose-alloc|lifetime|owner|all] Turn on pools debugging 1576 --enable-malloc-debug Switch on malloc_debug for BeOS 1577 --disable-lfs Disable large file support on 32-bit platforms 1578 --enable-nonportable-atomics Use optimized atomic code which may produce nonportable binaries 1579 --enable-threads Enable threading support in APR. 1580 --enable-posix-shm Use POSIX shared memory (shm_open) if available 1581 --enable-allocator-uses-mmap Use mmap in apr_allocator instead of malloc 1582 --enable-allocator-guard-pages Use guard pages in apr_allocator 1583 (implies --enable-allocator-uses-mmap) 1584 --enable-pool-concurrency-check Check for concurrent usage of memory pools 1585 --disable-dso Disable DSO support 1586 --enable-other-child Enable reliable child processes 1587 --disable-ipv6 Disable IPv6 support in APR. 1588 --disable-timedlocks Disable timed locks 1589 1590Optional Packages: 1591 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1592 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1593 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1594 both] 1595 --with-aix-soname=aix|svr4|both 1596 shared library versioning (aka "SONAME") variant to 1597 provide on AIX, [default=aix]. 1598 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1599 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1600 compiler's sysroot if not specified). 1601 --with-installbuilddir=DIR location to store APR build files 1602 --without-libtool avoid using libtool to link the library 1603 --with-efence[=DIR] path to Electric Fence installation 1604 --with-valgrind[=DIR] Enable code to teach valgrind about apr pools 1605 (optionally: set path to valgrind headers) 1606 --with-sendfile Override decision to use sendfile 1607 --with-egd[=DIR] use EGD-compatible socket 1608 --with-devrandom[=DEV] use /dev/random or compatible [searches by default] 1609 1610Some influential environment variables: 1611 CC C compiler command 1612 CFLAGS C compiler flags 1613 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1614 nonstandard directory <lib dir> 1615 LIBS libraries to pass to the linker, e.g. -l<library> 1616 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1617 you have headers in a nonstandard directory <include dir> 1618 CPP C preprocessor 1619 LT_SYS_LIBRARY_PATH 1620 User-defined run-time library search path. 1621 1622Use these variables to override the choices made by `configure' or to help 1623it to find libraries and programs with nonstandard names/locations. 1624 1625Report bugs to the package provider. 1626_ACEOF 1627ac_status=$? 1628fi 1629 1630if test "$ac_init_help" = "recursive"; then 1631 # If there are subdirs, report their specific --help. 1632 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1633 test -d "$ac_dir" || 1634 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1635 continue 1636 ac_builddir=. 1637 1638case "$ac_dir" in 1639.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1640*) 1641 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1642 # A ".." for each directory in $ac_dir_suffix. 1643 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1644 case $ac_top_builddir_sub in 1645 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1646 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1647 esac ;; 1648esac 1649ac_abs_top_builddir=$ac_pwd 1650ac_abs_builddir=$ac_pwd$ac_dir_suffix 1651# for backward compatibility: 1652ac_top_builddir=$ac_top_build_prefix 1653 1654case $srcdir in 1655 .) # We are building in place. 1656 ac_srcdir=. 1657 ac_top_srcdir=$ac_top_builddir_sub 1658 ac_abs_top_srcdir=$ac_pwd ;; 1659 [\\/]* | ?:[\\/]* ) # Absolute name. 1660 ac_srcdir=$srcdir$ac_dir_suffix; 1661 ac_top_srcdir=$srcdir 1662 ac_abs_top_srcdir=$srcdir ;; 1663 *) # Relative name. 1664 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1665 ac_top_srcdir=$ac_top_build_prefix$srcdir 1666 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1667esac 1668ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1669 1670 cd "$ac_dir" || { ac_status=$?; continue; } 1671 # Check for guested configure. 1672 if test -f "$ac_srcdir/configure.gnu"; then 1673 echo && 1674 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1675 elif test -f "$ac_srcdir/configure"; then 1676 echo && 1677 $SHELL "$ac_srcdir/configure" --help=recursive 1678 else 1679 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1680 fi || ac_status=$? 1681 cd "$ac_pwd" || { ac_status=$?; break; } 1682 done 1683fi 1684 1685test -n "$ac_init_help" && exit $ac_status 1686if $ac_init_version; then 1687 cat <<\_ACEOF 1688configure 1689generated by GNU Autoconf 2.69 1690 1691Copyright (C) 2012 Free Software Foundation, Inc. 1692This configure script is free software; the Free Software Foundation 1693gives unlimited permission to copy, distribute and modify it. 1694_ACEOF 1695 exit 1696fi 1697 1698## ------------------------ ## 1699## Autoconf initialization. ## 1700## ------------------------ ## 1701 1702# ac_fn_c_try_compile LINENO 1703# -------------------------- 1704# Try to compile conftest.$ac_ext, and return whether this succeeded. 1705ac_fn_c_try_compile () 1706{ 1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1708 rm -f conftest.$ac_objext 1709 if { { ac_try="$ac_compile" 1710case "(($ac_try" in 1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1712 *) ac_try_echo=$ac_try;; 1713esac 1714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1715$as_echo "$ac_try_echo"; } >&5 1716 (eval "$ac_compile") 2>conftest.err 1717 ac_status=$? 1718 if test -s conftest.err; then 1719 grep -v '^ *+' conftest.err >conftest.er1 1720 cat conftest.er1 >&5 1721 mv -f conftest.er1 conftest.err 1722 fi 1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1724 test $ac_status = 0; } && { 1725 test -z "$ac_c_werror_flag" || 1726 test ! -s conftest.err 1727 } && test -s conftest.$ac_objext; then : 1728 ac_retval=0 1729else 1730 $as_echo "$as_me: failed program was:" >&5 1731sed 's/^/| /' conftest.$ac_ext >&5 1732 1733 ac_retval=1 1734fi 1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1736 as_fn_set_status $ac_retval 1737 1738} # ac_fn_c_try_compile 1739 1740# ac_fn_c_try_cpp LINENO 1741# ---------------------- 1742# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1743ac_fn_c_try_cpp () 1744{ 1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1746 if { { ac_try="$ac_cpp conftest.$ac_ext" 1747case "(($ac_try" in 1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1749 *) ac_try_echo=$ac_try;; 1750esac 1751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1752$as_echo "$ac_try_echo"; } >&5 1753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1754 ac_status=$? 1755 if test -s conftest.err; then 1756 grep -v '^ *+' conftest.err >conftest.er1 1757 cat conftest.er1 >&5 1758 mv -f conftest.er1 conftest.err 1759 fi 1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1761 test $ac_status = 0; } > conftest.i && { 1762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1763 test ! -s conftest.err 1764 }; then : 1765 ac_retval=0 1766else 1767 $as_echo "$as_me: failed program was:" >&5 1768sed 's/^/| /' conftest.$ac_ext >&5 1769 1770 ac_retval=1 1771fi 1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1773 as_fn_set_status $ac_retval 1774 1775} # ac_fn_c_try_cpp 1776 1777# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1778# ------------------------------------------------------- 1779# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1780# the include files in INCLUDES and setting the cache variable VAR 1781# accordingly. 1782ac_fn_c_check_header_mongrel () 1783{ 1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1785 if eval \${$3+:} false; then : 1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1787$as_echo_n "checking for $2... " >&6; } 1788if eval \${$3+:} false; then : 1789 $as_echo_n "(cached) " >&6 1790fi 1791eval ac_res=\$$3 1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1793$as_echo "$ac_res" >&6; } 1794else 1795 # Is the header compilable? 1796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1797$as_echo_n "checking $2 usability... " >&6; } 1798cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1799/* end confdefs.h. */ 1800$4 1801#include <$2> 1802_ACEOF 1803if ac_fn_c_try_compile "$LINENO"; then : 1804 ac_header_compiler=yes 1805else 1806 ac_header_compiler=no 1807fi 1808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1810$as_echo "$ac_header_compiler" >&6; } 1811 1812# Is the header present? 1813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1814$as_echo_n "checking $2 presence... " >&6; } 1815cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1816/* end confdefs.h. */ 1817#include <$2> 1818_ACEOF 1819if ac_fn_c_try_cpp "$LINENO"; then : 1820 ac_header_preproc=yes 1821else 1822 ac_header_preproc=no 1823fi 1824rm -f conftest.err conftest.i conftest.$ac_ext 1825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1826$as_echo "$ac_header_preproc" >&6; } 1827 1828# So? What about this header? 1829case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1830 yes:no: ) 1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1832$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1834$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1835 ;; 1836 no:yes:* ) 1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1838$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1840$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1842$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1844$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1846$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1847 ;; 1848esac 1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1850$as_echo_n "checking for $2... " >&6; } 1851if eval \${$3+:} false; then : 1852 $as_echo_n "(cached) " >&6 1853else 1854 eval "$3=\$ac_header_compiler" 1855fi 1856eval ac_res=\$$3 1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1858$as_echo "$ac_res" >&6; } 1859fi 1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1861 1862} # ac_fn_c_check_header_mongrel 1863 1864# ac_fn_c_try_run LINENO 1865# ---------------------- 1866# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1867# that executables *can* be run. 1868ac_fn_c_try_run () 1869{ 1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1871 if { { ac_try="$ac_link" 1872case "(($ac_try" in 1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1874 *) ac_try_echo=$ac_try;; 1875esac 1876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1877$as_echo "$ac_try_echo"; } >&5 1878 (eval "$ac_link") 2>&5 1879 ac_status=$? 1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1881 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1882 { { case "(($ac_try" in 1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1884 *) ac_try_echo=$ac_try;; 1885esac 1886eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1887$as_echo "$ac_try_echo"; } >&5 1888 (eval "$ac_try") 2>&5 1889 ac_status=$? 1890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1891 test $ac_status = 0; }; }; then : 1892 ac_retval=0 1893else 1894 $as_echo "$as_me: program exited with status $ac_status" >&5 1895 $as_echo "$as_me: failed program was:" >&5 1896sed 's/^/| /' conftest.$ac_ext >&5 1897 1898 ac_retval=$ac_status 1899fi 1900 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1902 as_fn_set_status $ac_retval 1903 1904} # ac_fn_c_try_run 1905 1906# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1907# ------------------------------------------------------- 1908# Tests whether HEADER exists and can be compiled using the include files in 1909# INCLUDES, setting the cache variable VAR accordingly. 1910ac_fn_c_check_header_compile () 1911{ 1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1914$as_echo_n "checking for $2... " >&6; } 1915if eval \${$3+:} false; then : 1916 $as_echo_n "(cached) " >&6 1917else 1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1919/* end confdefs.h. */ 1920$4 1921#include <$2> 1922_ACEOF 1923if ac_fn_c_try_compile "$LINENO"; then : 1924 eval "$3=yes" 1925else 1926 eval "$3=no" 1927fi 1928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1929fi 1930eval ac_res=\$$3 1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1932$as_echo "$ac_res" >&6; } 1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1934 1935} # ac_fn_c_check_header_compile 1936 1937# ac_fn_c_try_link LINENO 1938# ----------------------- 1939# Try to link conftest.$ac_ext, and return whether this succeeded. 1940ac_fn_c_try_link () 1941{ 1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1943 rm -f conftest.$ac_objext conftest$ac_exeext 1944 if { { ac_try="$ac_link" 1945case "(($ac_try" in 1946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1947 *) ac_try_echo=$ac_try;; 1948esac 1949eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1950$as_echo "$ac_try_echo"; } >&5 1951 (eval "$ac_link") 2>conftest.err 1952 ac_status=$? 1953 if test -s conftest.err; then 1954 grep -v '^ *+' conftest.err >conftest.er1 1955 cat conftest.er1 >&5 1956 mv -f conftest.er1 conftest.err 1957 fi 1958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1959 test $ac_status = 0; } && { 1960 test -z "$ac_c_werror_flag" || 1961 test ! -s conftest.err 1962 } && test -s conftest$ac_exeext && { 1963 test "$cross_compiling" = yes || 1964 test -x conftest$ac_exeext 1965 }; then : 1966 ac_retval=0 1967else 1968 $as_echo "$as_me: failed program was:" >&5 1969sed 's/^/| /' conftest.$ac_ext >&5 1970 1971 ac_retval=1 1972fi 1973 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1974 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1975 # interfere with the next link command; also delete a directory that is 1976 # left behind by Apple's compiler. We do this before executing the actions. 1977 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1979 as_fn_set_status $ac_retval 1980 1981} # ac_fn_c_try_link 1982 1983# ac_fn_c_check_func LINENO FUNC VAR 1984# ---------------------------------- 1985# Tests whether FUNC exists, setting the cache variable VAR accordingly 1986ac_fn_c_check_func () 1987{ 1988 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1990$as_echo_n "checking for $2... " >&6; } 1991if eval \${$3+:} false; then : 1992 $as_echo_n "(cached) " >&6 1993else 1994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1995/* end confdefs.h. */ 1996/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1997 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1998#define $2 innocuous_$2 1999 2000/* System header to define __stub macros and hopefully few prototypes, 2001 which can conflict with char $2 (); below. 2002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2003 <limits.h> exists even on freestanding compilers. */ 2004 2005#ifdef __STDC__ 2006# include <limits.h> 2007#else 2008# include <assert.h> 2009#endif 2010 2011#undef $2 2012 2013/* Override any GCC internal prototype to avoid an error. 2014 Use char because int might match the return type of a GCC 2015 builtin and then its argument prototype would still apply. */ 2016#ifdef __cplusplus 2017extern "C" 2018#endif 2019char $2 (); 2020/* The GNU C library defines this for functions which it implements 2021 to always fail with ENOSYS. Some functions are actually named 2022 something starting with __ and the normal name is an alias. */ 2023#if defined __stub_$2 || defined __stub___$2 2024choke me 2025#endif 2026 2027int 2028main () 2029{ 2030return $2 (); 2031 ; 2032 return 0; 2033} 2034_ACEOF 2035if ac_fn_c_try_link "$LINENO"; then : 2036 eval "$3=yes" 2037else 2038 eval "$3=no" 2039fi 2040rm -f core conftest.err conftest.$ac_objext \ 2041 conftest$ac_exeext conftest.$ac_ext 2042fi 2043eval ac_res=\$$3 2044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2045$as_echo "$ac_res" >&6; } 2046 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2047 2048} # ac_fn_c_check_func 2049 2050# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2051# ------------------------------------------- 2052# Tests whether TYPE exists after having included INCLUDES, setting cache 2053# variable VAR accordingly. 2054ac_fn_c_check_type () 2055{ 2056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2058$as_echo_n "checking for $2... " >&6; } 2059if eval \${$3+:} false; then : 2060 $as_echo_n "(cached) " >&6 2061else 2062 eval "$3=no" 2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2064/* end confdefs.h. */ 2065$4 2066int 2067main () 2068{ 2069if (sizeof ($2)) 2070 return 0; 2071 ; 2072 return 0; 2073} 2074_ACEOF 2075if ac_fn_c_try_compile "$LINENO"; then : 2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2077/* end confdefs.h. */ 2078$4 2079int 2080main () 2081{ 2082if (sizeof (($2))) 2083 return 0; 2084 ; 2085 return 0; 2086} 2087_ACEOF 2088if ac_fn_c_try_compile "$LINENO"; then : 2089 2090else 2091 eval "$3=yes" 2092fi 2093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2094fi 2095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2096fi 2097eval ac_res=\$$3 2098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2099$as_echo "$ac_res" >&6; } 2100 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2101 2102} # ac_fn_c_check_type 2103 2104# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2105# -------------------------------------------- 2106# Tries to find the compile-time value of EXPR in a program that includes 2107# INCLUDES, setting VAR accordingly. Returns whether the value could be 2108# computed 2109ac_fn_c_compute_int () 2110{ 2111 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2112 if test "$cross_compiling" = yes; then 2113 # Depending upon the size, compute the lo and hi bounds. 2114cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2115/* end confdefs.h. */ 2116$4 2117int 2118main () 2119{ 2120static int test_array [1 - 2 * !(($2) >= 0)]; 2121test_array [0] = 0; 2122return test_array [0]; 2123 2124 ; 2125 return 0; 2126} 2127_ACEOF 2128if ac_fn_c_try_compile "$LINENO"; then : 2129 ac_lo=0 ac_mid=0 2130 while :; do 2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2132/* end confdefs.h. */ 2133$4 2134int 2135main () 2136{ 2137static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2138test_array [0] = 0; 2139return test_array [0]; 2140 2141 ; 2142 return 0; 2143} 2144_ACEOF 2145if ac_fn_c_try_compile "$LINENO"; then : 2146 ac_hi=$ac_mid; break 2147else 2148 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2149 if test $ac_lo -le $ac_mid; then 2150 ac_lo= ac_hi= 2151 break 2152 fi 2153 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2154fi 2155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2156 done 2157else 2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2159/* end confdefs.h. */ 2160$4 2161int 2162main () 2163{ 2164static int test_array [1 - 2 * !(($2) < 0)]; 2165test_array [0] = 0; 2166return test_array [0]; 2167 2168 ; 2169 return 0; 2170} 2171_ACEOF 2172if ac_fn_c_try_compile "$LINENO"; then : 2173 ac_hi=-1 ac_mid=-1 2174 while :; do 2175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2176/* end confdefs.h. */ 2177$4 2178int 2179main () 2180{ 2181static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2182test_array [0] = 0; 2183return test_array [0]; 2184 2185 ; 2186 return 0; 2187} 2188_ACEOF 2189if ac_fn_c_try_compile "$LINENO"; then : 2190 ac_lo=$ac_mid; break 2191else 2192 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2193 if test $ac_mid -le $ac_hi; then 2194 ac_lo= ac_hi= 2195 break 2196 fi 2197 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2198fi 2199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2200 done 2201else 2202 ac_lo= ac_hi= 2203fi 2204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2205fi 2206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2207# Binary search between lo and hi bounds. 2208while test "x$ac_lo" != "x$ac_hi"; do 2209 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2211/* end confdefs.h. */ 2212$4 2213int 2214main () 2215{ 2216static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2217test_array [0] = 0; 2218return test_array [0]; 2219 2220 ; 2221 return 0; 2222} 2223_ACEOF 2224if ac_fn_c_try_compile "$LINENO"; then : 2225 ac_hi=$ac_mid 2226else 2227 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2228fi 2229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2230done 2231case $ac_lo in #(( 2232?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2233'') ac_retval=1 ;; 2234esac 2235 else 2236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2237/* end confdefs.h. */ 2238$4 2239static long int longval () { return $2; } 2240static unsigned long int ulongval () { return $2; } 2241#include <stdio.h> 2242#include <stdlib.h> 2243int 2244main () 2245{ 2246 2247 FILE *f = fopen ("conftest.val", "w"); 2248 if (! f) 2249 return 1; 2250 if (($2) < 0) 2251 { 2252 long int i = longval (); 2253 if (i != ($2)) 2254 return 1; 2255 fprintf (f, "%ld", i); 2256 } 2257 else 2258 { 2259 unsigned long int i = ulongval (); 2260 if (i != ($2)) 2261 return 1; 2262 fprintf (f, "%lu", i); 2263 } 2264 /* Do not output a trailing newline, as this causes \r\n confusion 2265 on some platforms. */ 2266 return ferror (f) || fclose (f) != 0; 2267 2268 ; 2269 return 0; 2270} 2271_ACEOF 2272if ac_fn_c_try_run "$LINENO"; then : 2273 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2274else 2275 ac_retval=1 2276fi 2277rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2278 conftest.$ac_objext conftest.beam conftest.$ac_ext 2279rm -f conftest.val 2280 2281 fi 2282 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2283 as_fn_set_status $ac_retval 2284 2285} # ac_fn_c_compute_int 2286 2287# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2288# --------------------------------------------- 2289# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2290# accordingly. 2291ac_fn_c_check_decl () 2292{ 2293 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2294 as_decl_name=`echo $2|sed 's/ *(.*//'` 2295 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2297$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2298if eval \${$3+:} false; then : 2299 $as_echo_n "(cached) " >&6 2300else 2301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2302/* end confdefs.h. */ 2303$4 2304int 2305main () 2306{ 2307#ifndef $as_decl_name 2308#ifdef __cplusplus 2309 (void) $as_decl_use; 2310#else 2311 (void) $as_decl_name; 2312#endif 2313#endif 2314 2315 ; 2316 return 0; 2317} 2318_ACEOF 2319if ac_fn_c_try_compile "$LINENO"; then : 2320 eval "$3=yes" 2321else 2322 eval "$3=no" 2323fi 2324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2325fi 2326eval ac_res=\$$3 2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2328$as_echo "$ac_res" >&6; } 2329 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2330 2331} # ac_fn_c_check_decl 2332 2333# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2334# ---------------------------------------------------- 2335# Tries to find if the field MEMBER exists in type AGGR, after including 2336# INCLUDES, setting cache variable VAR accordingly. 2337ac_fn_c_check_member () 2338{ 2339 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2341$as_echo_n "checking for $2.$3... " >&6; } 2342if eval \${$4+:} false; then : 2343 $as_echo_n "(cached) " >&6 2344else 2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2346/* end confdefs.h. */ 2347$5 2348int 2349main () 2350{ 2351static $2 ac_aggr; 2352if (ac_aggr.$3) 2353return 0; 2354 ; 2355 return 0; 2356} 2357_ACEOF 2358if ac_fn_c_try_compile "$LINENO"; then : 2359 eval "$4=yes" 2360else 2361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2362/* end confdefs.h. */ 2363$5 2364int 2365main () 2366{ 2367static $2 ac_aggr; 2368if (sizeof ac_aggr.$3) 2369return 0; 2370 ; 2371 return 0; 2372} 2373_ACEOF 2374if ac_fn_c_try_compile "$LINENO"; then : 2375 eval "$4=yes" 2376else 2377 eval "$4=no" 2378fi 2379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2380fi 2381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2382fi 2383eval ac_res=\$$4 2384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2385$as_echo "$ac_res" >&6; } 2386 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2387 2388} # ac_fn_c_check_member 2389cat >config.log <<_ACEOF 2390This file contains any messages produced by compilers while 2391running configure, to aid debugging if configure makes a mistake. 2392 2393It was created by $as_me, which was 2394generated by GNU Autoconf 2.69. Invocation command line was 2395 2396 $ $0 $@ 2397 2398_ACEOF 2399exec 5>>config.log 2400{ 2401cat <<_ASUNAME 2402## --------- ## 2403## Platform. ## 2404## --------- ## 2405 2406hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2407uname -m = `(uname -m) 2>/dev/null || echo unknown` 2408uname -r = `(uname -r) 2>/dev/null || echo unknown` 2409uname -s = `(uname -s) 2>/dev/null || echo unknown` 2410uname -v = `(uname -v) 2>/dev/null || echo unknown` 2411 2412/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2413/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2414 2415/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2416/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2417/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2418/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2419/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2420/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2421/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2422 2423_ASUNAME 2424 2425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2426for as_dir in $PATH 2427do 2428 IFS=$as_save_IFS 2429 test -z "$as_dir" && as_dir=. 2430 $as_echo "PATH: $as_dir" 2431 done 2432IFS=$as_save_IFS 2433 2434} >&5 2435 2436cat >&5 <<_ACEOF 2437 2438 2439## ----------- ## 2440## Core tests. ## 2441## ----------- ## 2442 2443_ACEOF 2444 2445 2446# Keep a trace of the command line. 2447# Strip out --no-create and --no-recursion so they do not pile up. 2448# Strip out --silent because we don't want to record it for future runs. 2449# Also quote any args containing shell meta-characters. 2450# Make two passes to allow for proper duplicate-argument suppression. 2451ac_configure_args= 2452ac_configure_args0= 2453ac_configure_args1= 2454ac_must_keep_next=false 2455for ac_pass in 1 2 2456do 2457 for ac_arg 2458 do 2459 case $ac_arg in 2460 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2461 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2462 | -silent | --silent | --silen | --sile | --sil) 2463 continue ;; 2464 *\'*) 2465 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2466 esac 2467 case $ac_pass in 2468 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2469 2) 2470 as_fn_append ac_configure_args1 " '$ac_arg'" 2471 if test $ac_must_keep_next = true; then 2472 ac_must_keep_next=false # Got value, back to normal. 2473 else 2474 case $ac_arg in 2475 *=* | --config-cache | -C | -disable-* | --disable-* \ 2476 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2477 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2478 | -with-* | --with-* | -without-* | --without-* | --x) 2479 case "$ac_configure_args0 " in 2480 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2481 esac 2482 ;; 2483 -* ) ac_must_keep_next=true ;; 2484 esac 2485 fi 2486 as_fn_append ac_configure_args " '$ac_arg'" 2487 ;; 2488 esac 2489 done 2490done 2491{ ac_configure_args0=; unset ac_configure_args0;} 2492{ ac_configure_args1=; unset ac_configure_args1;} 2493 2494# When interrupted or exit'd, cleanup temporary files, and complete 2495# config.log. We remove comments because anyway the quotes in there 2496# would cause problems or look ugly. 2497# WARNING: Use '\'' to represent an apostrophe within the trap. 2498# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2499trap 'exit_status=$? 2500 # Save into config.log some information that might help in debugging. 2501 { 2502 echo 2503 2504 $as_echo "## ---------------- ## 2505## Cache variables. ## 2506## ---------------- ##" 2507 echo 2508 # The following way of writing the cache mishandles newlines in values, 2509( 2510 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2511 eval ac_val=\$$ac_var 2512 case $ac_val in #( 2513 *${as_nl}*) 2514 case $ac_var in #( 2515 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2516$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2517 esac 2518 case $ac_var in #( 2519 _ | IFS | as_nl) ;; #( 2520 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2521 *) { eval $ac_var=; unset $ac_var;} ;; 2522 esac ;; 2523 esac 2524 done 2525 (set) 2>&1 | 2526 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2527 *${as_nl}ac_space=\ *) 2528 sed -n \ 2529 "s/'\''/'\''\\\\'\'''\''/g; 2530 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2531 ;; #( 2532 *) 2533 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2534 ;; 2535 esac | 2536 sort 2537) 2538 echo 2539 2540 $as_echo "## ----------------- ## 2541## Output variables. ## 2542## ----------------- ##" 2543 echo 2544 for ac_var in $ac_subst_vars 2545 do 2546 eval ac_val=\$$ac_var 2547 case $ac_val in 2548 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2549 esac 2550 $as_echo "$ac_var='\''$ac_val'\''" 2551 done | sort 2552 echo 2553 2554 if test -n "$ac_subst_files"; then 2555 $as_echo "## ------------------- ## 2556## File substitutions. ## 2557## ------------------- ##" 2558 echo 2559 for ac_var in $ac_subst_files 2560 do 2561 eval ac_val=\$$ac_var 2562 case $ac_val in 2563 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2564 esac 2565 $as_echo "$ac_var='\''$ac_val'\''" 2566 done | sort 2567 echo 2568 fi 2569 2570 if test -s confdefs.h; then 2571 $as_echo "## ----------- ## 2572## confdefs.h. ## 2573## ----------- ##" 2574 echo 2575 cat confdefs.h 2576 echo 2577 fi 2578 test "$ac_signal" != 0 && 2579 $as_echo "$as_me: caught signal $ac_signal" 2580 $as_echo "$as_me: exit $exit_status" 2581 } >&5 2582 rm -f core *.core core.conftest.* && 2583 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2584 exit $exit_status 2585' 0 2586for ac_signal in 1 2 13 15; do 2587 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2588done 2589ac_signal=0 2590 2591# confdefs.h avoids OS command line length limits that DEFS can exceed. 2592rm -f -r conftest* confdefs.h 2593 2594$as_echo "/* confdefs.h */" > confdefs.h 2595 2596# Predefined preprocessor variables. 2597 2598cat >>confdefs.h <<_ACEOF 2599#define PACKAGE_NAME "$PACKAGE_NAME" 2600_ACEOF 2601 2602cat >>confdefs.h <<_ACEOF 2603#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2604_ACEOF 2605 2606cat >>confdefs.h <<_ACEOF 2607#define PACKAGE_VERSION "$PACKAGE_VERSION" 2608_ACEOF 2609 2610cat >>confdefs.h <<_ACEOF 2611#define PACKAGE_STRING "$PACKAGE_STRING" 2612_ACEOF 2613 2614cat >>confdefs.h <<_ACEOF 2615#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2616_ACEOF 2617 2618cat >>confdefs.h <<_ACEOF 2619#define PACKAGE_URL "$PACKAGE_URL" 2620_ACEOF 2621 2622 2623# Let the site file select an alternate cache file if it wants to. 2624# Prefer an explicitly selected file to automatically selected ones. 2625ac_site_file1=NONE 2626ac_site_file2=NONE 2627if test -n "$CONFIG_SITE"; then 2628 # We do not want a PATH search for config.site. 2629 case $CONFIG_SITE in #(( 2630 -*) ac_site_file1=./$CONFIG_SITE;; 2631 */*) ac_site_file1=$CONFIG_SITE;; 2632 *) ac_site_file1=./$CONFIG_SITE;; 2633 esac 2634elif test "x$prefix" != xNONE; then 2635 ac_site_file1=$prefix/share/config.site 2636 ac_site_file2=$prefix/etc/config.site 2637else 2638 ac_site_file1=$ac_default_prefix/share/config.site 2639 ac_site_file2=$ac_default_prefix/etc/config.site 2640fi 2641for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2642do 2643 test "x$ac_site_file" = xNONE && continue 2644 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2645 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2646$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2647 sed 's/^/| /' "$ac_site_file" >&5 2648 . "$ac_site_file" \ 2649 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2650$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2651as_fn_error $? "failed to load site script $ac_site_file 2652See \`config.log' for more details" "$LINENO" 5; } 2653 fi 2654done 2655 2656if test -r "$cache_file"; then 2657 # Some versions of bash will fail to source /dev/null (special files 2658 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2659 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2660 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2661$as_echo "$as_me: loading cache $cache_file" >&6;} 2662 case $cache_file in 2663 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2664 *) . "./$cache_file";; 2665 esac 2666 fi 2667else 2668 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2669$as_echo "$as_me: creating cache $cache_file" >&6;} 2670 >$cache_file 2671fi 2672 2673# Check that the precious variables saved in the cache have kept the same 2674# value. 2675ac_cache_corrupted=false 2676for ac_var in $ac_precious_vars; do 2677 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2678 eval ac_new_set=\$ac_env_${ac_var}_set 2679 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2680 eval ac_new_val=\$ac_env_${ac_var}_value 2681 case $ac_old_set,$ac_new_set in 2682 set,) 2683 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2684$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2685 ac_cache_corrupted=: ;; 2686 ,set) 2687 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2688$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2689 ac_cache_corrupted=: ;; 2690 ,);; 2691 *) 2692 if test "x$ac_old_val" != "x$ac_new_val"; then 2693 # differences in whitespace do not lead to failure. 2694 ac_old_val_w=`echo x $ac_old_val` 2695 ac_new_val_w=`echo x $ac_new_val` 2696 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2697 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2698$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2699 ac_cache_corrupted=: 2700 else 2701 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2702$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2703 eval $ac_var=\$ac_old_val 2704 fi 2705 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2706$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2707 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2708$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2709 fi;; 2710 esac 2711 # Pass precious variables to config.status. 2712 if test "$ac_new_set" = set; then 2713 case $ac_new_val in 2714 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2715 *) ac_arg=$ac_var=$ac_new_val ;; 2716 esac 2717 case " $ac_configure_args " in 2718 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2719 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2720 esac 2721 fi 2722done 2723if $ac_cache_corrupted; then 2724 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2725$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2726 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2727$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2728 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2729fi 2730## -------------------- ## 2731## Main body of script. ## 2732## -------------------- ## 2733 2734ac_ext=c 2735ac_cpp='$CPP $CPPFLAGS' 2736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2738ac_compiler_gnu=$ac_cv_c_compiler_gnu 2739 2740 2741ac_config_headers="$ac_config_headers include/arch/unix/apr_private.h" 2742 2743ac_aux_dir= 2744for ac_dir in build "$srcdir"/build; do 2745 if test -f "$ac_dir/install-sh"; then 2746 ac_aux_dir=$ac_dir 2747 ac_install_sh="$ac_aux_dir/install-sh -c" 2748 break 2749 elif test -f "$ac_dir/install.sh"; then 2750 ac_aux_dir=$ac_dir 2751 ac_install_sh="$ac_aux_dir/install.sh -c" 2752 break 2753 elif test -f "$ac_dir/shtool"; then 2754 ac_aux_dir=$ac_dir 2755 ac_install_sh="$ac_aux_dir/shtool install -c" 2756 break 2757 fi 2758done 2759if test -z "$ac_aux_dir"; then 2760 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5 2761fi 2762 2763# These three variables are undocumented and unsupported, 2764# and are intended to be withdrawn in a future Autoconf release. 2765# They can cause serious problems if a builder's source tree is in a directory 2766# whose full name contains unusual characters. 2767ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2768ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2769ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 2932# 2933# Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc. 2934# Written by Gordon Matzigkeit, 1996 2935# 2936# This file is free software; the Free Software Foundation gives 2937# unlimited permission to copy and/or distribute it, with or without 2938# modifications, as long as this notice is preserved. 2939 2940 2941 2942# serial 58 LT_INIT 2943 2944 2945# LT_PREREQ(VERSION) 2946# ------------------ 2947# Complain and exit if this libtool version is less that VERSION. 2948 2949 2950 2951# _LT_CHECK_BUILDDIR 2952# ------------------ 2953# Complain if the absolute build directory name contains unusual characters 2954 2955 2956 2957# LT_INIT([OPTIONS]) 2958# ------------------ 2959# LT_INIT 2960 2961# Old names: 2962# This is what autoupdate's m4 run will expand. It fires 2963# the warning (with _au_warn_XXX), outputs it into the 2964# updated configure.ac (with AC_DIAGNOSE), and then outputs 2965# the replacement expansion. 2966 2967 2968# This is an auxiliary macro that is also run when 2969# autoupdate runs m4. It simply calls m4_warning, but 2970# we need a wrapper so that each warning is emitted only 2971# once. We break the quoting in m4_warning's argument in 2972# order to expand this macro's arguments, not AU_DEFUN's. 2973 2974 2975# Finally, this is the expansion that is picked up by 2976# autoconf. It tells the user to run autoupdate, and 2977# then outputs the replacement expansion. We do not care 2978# about autoupdate's warning because that contains 2979# information on what to do *after* running autoupdate. 2980 2981# This is what autoupdate's m4 run will expand. It fires 2982# the warning (with _au_warn_XXX), outputs it into the 2983# updated configure.ac (with AC_DIAGNOSE), and then outputs 2984# the replacement expansion. 2985 2986 2987# This is an auxiliary macro that is also run when 2988# autoupdate runs m4. It simply calls m4_warning, but 2989# we need a wrapper so that each warning is emitted only 2990# once. We break the quoting in m4_warning's argument in 2991# order to expand this macro's arguments, not AU_DEFUN's. 2992 2993 2994# Finally, this is the expansion that is picked up by 2995# autoconf. It tells the user to run autoupdate, and 2996# then outputs the replacement expansion. We do not care 2997# about autoupdate's warning because that contains 2998# information on what to do *after* running autoupdate. 2999 3000 3001 3002# _LT_PREPARE_CC_BASENAME 3003# ----------------------- 3004# _LT_PREPARE_CC_BASENAME 3005 3006 3007# _LT_CC_BASENAME(CC) 3008# ------------------- 3009# It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME, 3010# but that macro is also expanded into generated libtool script, which 3011# arranges for $SED and $ECHO to be set by different means. 3012 3013 3014 3015# _LT_FILEUTILS_DEFAULTS 3016# ---------------------- 3017# It is okay to use these file commands and assume they have been set 3018# sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'. 3019# _LT_FILEUTILS_DEFAULTS 3020 3021 3022# _LT_SETUP 3023# --------- 3024# _LT_SETUP 3025 3026 3027# _LT_PREPARE_SED_QUOTE_VARS 3028# -------------------------- 3029# Define a few sed substitution that help us do robust quoting. 3030 3031 3032# _LT_PROG_LTMAIN 3033# --------------- 3034# Note that this code is called both from 'configure', and 'config.status' 3035# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, 3036# 'config.status' has no value for ac_aux_dir unless we are using Automake, 3037# so we pass a copy along to make sure it has a sensible value anyway. 3038# _LT_PROG_LTMAIN 3039 3040 3041## ------------------------------------- ## 3042## Accumulate code for creating libtool. ## 3043## ------------------------------------- ## 3044 3045# So that we can recreate a full libtool script including additional 3046# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS 3047# in macros and then make a single call at the end using the 'libtool' 3048# label. 3049 3050 3051# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) 3052# ---------------------------------------- 3053# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. 3054 3055 3056# Initialize. 3057 3058 3059 3060# _LT_CONFIG_LIBTOOL([COMMANDS]) 3061# ------------------------------ 3062# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. 3063 3064 3065# Initialize. 3066 3067 3068 3069# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) 3070# ----------------------------------------------------- 3071 3072 3073 3074# _LT_FORMAT_COMMENT([COMMENT]) 3075# ----------------------------- 3076# Add leading comment marks to the start of each line, and a trailing 3077# full-stop to the whole comment if one is not present already. 3078 3079 3080 3081 3082## ------------------------ ## 3083## FIXME: Eliminate VARNAME ## 3084## ------------------------ ## 3085 3086 3087# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) 3088# ------------------------------------------------------------------- 3089# CONFIGNAME is the name given to the value in the libtool script. 3090# VARNAME is the (base) name used in the configure script. 3091# VALUE may be 0, 1 or 2 for a computed quote escaped value based on 3092# VARNAME. Any other value will be used directly. 3093 3094 3095 3096# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) 3097# -------------------------------------------------------- 3098 3099 3100 3101# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) 3102# ------------------------------------------------ 3103 3104 3105 3106# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) 3107# --------------------------------------------------------- 3108 3109 3110 3111# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) 3112# -------------------------------------------------- 3113 3114 3115 3116# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) 3117# --------------------------------------------------- 3118 3119 3120 3121# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) 3122# --------------------------------------------------- 3123 3124 3125 3126 3127# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) 3128# ------------------------------------------------ 3129 3130 3131 3132 3133# _LT_CONFIG_STATUS_DECLARE([VARNAME]) 3134# ------------------------------------ 3135# Quote a variable value, and forward it to 'config.status' so that its 3136# declaration there will have the same value as in 'configure'. VARNAME 3137# must have a single quote delimited value for this to work. 3138 3139 3140 3141# _LT_CONFIG_STATUS_DECLARATIONS 3142# ------------------------------ 3143# We delimit libtool config variables with single quotes, so when 3144# we write them to config.status, we have to be sure to quote all 3145# embedded single quotes properly. In configure, this macro expands 3146# each variable declared with _LT_DECL (and _LT_TAGDECL) into: 3147# 3148# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' 3149 3150 3151 3152# _LT_LIBTOOL_TAGS 3153# ---------------- 3154# Output comment and list of tags supported by the script 3155 3156 3157 3158# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) 3159# ----------------------------------- 3160# Extract the dictionary values for VARNAME (optionally with TAG) and 3161# expand to a commented shell variable setting: 3162# 3163# # Some comment about what VAR is for. 3164# visible_name=$lt_internal_name 3165 3166 3167 3168# _LT_LIBTOOL_CONFIG_VARS 3169# ----------------------- 3170# Produce commented declarations of non-tagged libtool config variables 3171# suitable for insertion in the LIBTOOL CONFIG section of the 'libtool' 3172# script. Tagged libtool config variables (even for the LIBTOOL CONFIG 3173# section) are produced by _LT_LIBTOOL_TAG_VARS. 3174 3175 3176 3177# _LT_LIBTOOL_TAG_VARS(TAG) 3178# ------------------------- 3179 3180 3181 3182# _LT_TAGVAR(VARNAME, [TAGNAME]) 3183# ------------------------------ 3184 3185 3186 3187# _LT_CONFIG_COMMANDS 3188# ------------------- 3189# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of 3190# variables for single and double quote escaping we saved from calls 3191# to _LT_DECL, we can put quote escaped variables declarations 3192# into 'config.status', and then the shell code to quote escape them in 3193# for loops in 'config.status'. Finally, any additional code accumulated 3194# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. 3195#_LT_CONFIG_COMMANDS 3196 3197 3198# Initialize. 3199 3200 3201# _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) 3202# ------------------------------------ 3203# Generate a child script FILE with all initialization necessary to 3204# reuse the environment learned by the parent script, and make the 3205# file executable. If COMMENT is supplied, it is inserted after the 3206# '#!' sequence but before initialization text begins. After this 3207# macro, additional text can be appended to FILE to form the body of 3208# the child script. The macro ends with non-zero status if the 3209# file could not be fully written (such as if the disk is full). 3210# _LT_GENERATED_FILE_INIT 3211 3212# LT_OUTPUT 3213# --------- 3214# This macro allows early generation of the libtool script (before 3215# AC_OUTPUT is called), incase it is used in configure for compilation 3216# tests. 3217# LT_OUTPUT 3218 3219 3220# _LT_CONFIG(TAG) 3221# --------------- 3222# If TAG is the built-in tag, create an initial libtool script with a 3223# default configuration from the untagged config vars. Otherwise add code 3224# to config.status for appending the configuration named by TAG from the 3225# matching tagged config vars. 3226# _LT_CONFIG 3227 3228 3229# LT_SUPPORTED_TAG(TAG) 3230# --------------------- 3231# Trace this macro to discover what tags are supported by the libtool 3232# --tag option, using: 3233# autoconf --trace 'LT_SUPPORTED_TAG:$1' 3234 3235 3236 3237# C support is built-in for now 3238 3239 3240 3241 3242# LT_LANG(LANG) 3243# ------------- 3244# Enable libtool support for the given language if not already enabled. 3245# LT_LANG 3246 3247 3248# _LT_LANG(LANGNAME) 3249# ------------------ 3250# _LT_LANG 3251 3252 3253#m4_ifndef 3254 3255 3256# _LT_LANG_DEFAULT_CONFIG 3257# ----------------------- 3258# _LT_LANG_DEFAULT_CONFIG 3259 3260# Obsolete macros: 3261# This is what autoupdate's m4 run will expand. It fires 3262# the warning (with _au_warn_XXX), outputs it into the 3263# updated configure.ac (with AC_DIAGNOSE), and then outputs 3264# the replacement expansion. 3265 3266 3267# This is an auxiliary macro that is also run when 3268# autoupdate runs m4. It simply calls m4_warning, but 3269# we need a wrapper so that each warning is emitted only 3270# once. We break the quoting in m4_warning's argument in 3271# order to expand this macro's arguments, not AU_DEFUN's. 3272 3273 3274# Finally, this is the expansion that is picked up by 3275# autoconf. It tells the user to run autoupdate, and 3276# then outputs the replacement expansion. We do not care 3277# about autoupdate's warning because that contains 3278# information on what to do *after* running autoupdate. 3279 3280# This is what autoupdate's m4 run will expand. It fires 3281# the warning (with _au_warn_XXX), outputs it into the 3282# updated configure.ac (with AC_DIAGNOSE), and then outputs 3283# the replacement expansion. 3284 3285 3286# This is an auxiliary macro that is also run when 3287# autoupdate runs m4. It simply calls m4_warning, but 3288# we need a wrapper so that each warning is emitted only 3289# once. We break the quoting in m4_warning's argument in 3290# order to expand this macro's arguments, not AU_DEFUN's. 3291 3292 3293# Finally, this is the expansion that is picked up by 3294# autoconf. It tells the user to run autoupdate, and 3295# then outputs the replacement expansion. We do not care 3296# about autoupdate's warning because that contains 3297# information on what to do *after* running autoupdate. 3298 3299# This is what autoupdate's m4 run will expand. It fires 3300# the warning (with _au_warn_XXX), outputs it into the 3301# updated configure.ac (with AC_DIAGNOSE), and then outputs 3302# the replacement expansion. 3303 3304 3305# This is an auxiliary macro that is also run when 3306# autoupdate runs m4. It simply calls m4_warning, but 3307# we need a wrapper so that each warning is emitted only 3308# once. We break the quoting in m4_warning's argument in 3309# order to expand this macro's arguments, not AU_DEFUN's. 3310 3311 3312# Finally, this is the expansion that is picked up by 3313# autoconf. It tells the user to run autoupdate, and 3314# then outputs the replacement expansion. We do not care 3315# about autoupdate's warning because that contains 3316# information on what to do *after* running autoupdate. 3317 3318# This is what autoupdate's m4 run will expand. It fires 3319# the warning (with _au_warn_XXX), outputs it into the 3320# updated configure.ac (with AC_DIAGNOSE), and then outputs 3321# the replacement expansion. 3322 3323 3324# This is an auxiliary macro that is also run when 3325# autoupdate runs m4. It simply calls m4_warning, but 3326# we need a wrapper so that each warning is emitted only 3327# once. We break the quoting in m4_warning's argument in 3328# order to expand this macro's arguments, not AU_DEFUN's. 3329 3330 3331# Finally, this is the expansion that is picked up by 3332# autoconf. It tells the user to run autoupdate, and 3333# then outputs the replacement expansion. We do not care 3334# about autoupdate's warning because that contains 3335# information on what to do *after* running autoupdate. 3336 3337# This is what autoupdate's m4 run will expand. It fires 3338# the warning (with _au_warn_XXX), outputs it into the 3339# updated configure.ac (with AC_DIAGNOSE), and then outputs 3340# the replacement expansion. 3341 3342 3343# This is an auxiliary macro that is also run when 3344# autoupdate runs m4. It simply calls m4_warning, but 3345# we need a wrapper so that each warning is emitted only 3346# once. We break the quoting in m4_warning's argument in 3347# order to expand this macro's arguments, not AU_DEFUN's. 3348 3349 3350# Finally, this is the expansion that is picked up by 3351# autoconf. It tells the user to run autoupdate, and 3352# then outputs the replacement expansion. We do not care 3353# about autoupdate's warning because that contains 3354# information on what to do *after* running autoupdate. 3355 3356 3357 3358# _LT_TAG_COMPILER 3359# ---------------- 3360# _LT_TAG_COMPILER 3361 3362 3363# _LT_COMPILER_BOILERPLATE 3364# ------------------------ 3365# Check for compiler boilerplate output or warnings with 3366# the simple compiler test code. 3367# _LT_COMPILER_BOILERPLATE 3368 3369 3370# _LT_LINKER_BOILERPLATE 3371# ---------------------- 3372# Check for linker boilerplate output or warnings with 3373# the simple link test code. 3374# _LT_LINKER_BOILERPLATE 3375 3376# _LT_REQUIRED_DARWIN_CHECKS 3377# ------------------------- 3378 3379 3380 3381# _LT_DARWIN_LINKER_FEATURES([TAG]) 3382# --------------------------------- 3383# Checks for linker and compiler features on darwin 3384 3385 3386# _LT_SYS_MODULE_PATH_AIX([TAGNAME]) 3387# ---------------------------------- 3388# Links a minimal program and checks the executable 3389# for the system default hardcoded library path. In most cases, 3390# this is /usr/lib:/lib, but when the MPI compilers are used 3391# the location of the communication and MPI libs are included too. 3392# If we don't find anything, use the default library path according 3393# to the aix ld manual. 3394# Store the results from the different compilers for each TAGNAME. 3395# Allow to override them for all tags through lt_cv_aix_libpath. 3396# _LT_SYS_MODULE_PATH_AIX 3397 3398 3399# _LT_SHELL_INIT(ARG) 3400# ------------------- 3401# _LT_SHELL_INIT 3402 3403 3404 3405# _LT_PROG_ECHO_BACKSLASH 3406# ----------------------- 3407# Find how we can fake an echo command that does not interpret backslash. 3408# In particular, with Autoconf 2.60 or later we add some code to the start 3409# of the generated configure script that will find a shell with a builtin 3410# printf (that we can use as an echo command). 3411# _LT_PROG_ECHO_BACKSLASH 3412 3413 3414# _LT_WITH_SYSROOT 3415# ---------------- 3416 3417 3418# _LT_ENABLE_LOCK 3419# --------------- 3420# _LT_ENABLE_LOCK 3421 3422 3423# _LT_PROG_AR 3424# ----------- 3425# _LT_PROG_AR 3426 3427 3428# _LT_CMD_OLD_ARCHIVE 3429# ------------------- 3430# _LT_CMD_OLD_ARCHIVE 3431 3432 3433# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 3434# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 3435# ---------------------------------------------------------------- 3436# Check whether the given compiler option works 3437# _LT_COMPILER_OPTION 3438 3439# Old name: 3440# This is what autoupdate's m4 run will expand. It fires 3441# the warning (with _au_warn_XXX), outputs it into the 3442# updated configure.ac (with AC_DIAGNOSE), and then outputs 3443# the replacement expansion. 3444 3445 3446# This is an auxiliary macro that is also run when 3447# autoupdate runs m4. It simply calls m4_warning, but 3448# we need a wrapper so that each warning is emitted only 3449# once. We break the quoting in m4_warning's argument in 3450# order to expand this macro's arguments, not AU_DEFUN's. 3451 3452 3453# Finally, this is the expansion that is picked up by 3454# autoconf. It tells the user to run autoupdate, and 3455# then outputs the replacement expansion. We do not care 3456# about autoupdate's warning because that contains 3457# information on what to do *after* running autoupdate. 3458 3459 3460 3461# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 3462# [ACTION-SUCCESS], [ACTION-FAILURE]) 3463# ---------------------------------------------------- 3464# Check whether the given linker option works 3465# _LT_LINKER_OPTION 3466 3467# Old name: 3468# This is what autoupdate's m4 run will expand. It fires 3469# the warning (with _au_warn_XXX), outputs it into the 3470# updated configure.ac (with AC_DIAGNOSE), and then outputs 3471# the replacement expansion. 3472 3473 3474# This is an auxiliary macro that is also run when 3475# autoupdate runs m4. It simply calls m4_warning, but 3476# we need a wrapper so that each warning is emitted only 3477# once. We break the quoting in m4_warning's argument in 3478# order to expand this macro's arguments, not AU_DEFUN's. 3479 3480 3481# Finally, this is the expansion that is picked up by 3482# autoconf. It tells the user to run autoupdate, and 3483# then outputs the replacement expansion. We do not care 3484# about autoupdate's warning because that contains 3485# information on what to do *after* running autoupdate. 3486 3487 3488 3489# LT_CMD_MAX_LEN 3490#--------------- 3491# LT_CMD_MAX_LEN 3492 3493# Old name: 3494# This is what autoupdate's m4 run will expand. It fires 3495# the warning (with _au_warn_XXX), outputs it into the 3496# updated configure.ac (with AC_DIAGNOSE), and then outputs 3497# the replacement expansion. 3498 3499 3500# This is an auxiliary macro that is also run when 3501# autoupdate runs m4. It simply calls m4_warning, but 3502# we need a wrapper so that each warning is emitted only 3503# once. We break the quoting in m4_warning's argument in 3504# order to expand this macro's arguments, not AU_DEFUN's. 3505 3506 3507# Finally, this is the expansion that is picked up by 3508# autoconf. It tells the user to run autoupdate, and 3509# then outputs the replacement expansion. We do not care 3510# about autoupdate's warning because that contains 3511# information on what to do *after* running autoupdate. 3512 3513 3514 3515# _LT_HEADER_DLFCN 3516# ---------------- 3517# _LT_HEADER_DLFCN 3518 3519 3520# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 3521# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 3522# ---------------------------------------------------------------- 3523# _LT_TRY_DLOPEN_SELF 3524 3525 3526# LT_SYS_DLOPEN_SELF 3527# ------------------ 3528# LT_SYS_DLOPEN_SELF 3529 3530# Old name: 3531# This is what autoupdate's m4 run will expand. It fires 3532# the warning (with _au_warn_XXX), outputs it into the 3533# updated configure.ac (with AC_DIAGNOSE), and then outputs 3534# the replacement expansion. 3535 3536 3537# This is an auxiliary macro that is also run when 3538# autoupdate runs m4. It simply calls m4_warning, but 3539# we need a wrapper so that each warning is emitted only 3540# once. We break the quoting in m4_warning's argument in 3541# order to expand this macro's arguments, not AU_DEFUN's. 3542 3543 3544# Finally, this is the expansion that is picked up by 3545# autoconf. It tells the user to run autoupdate, and 3546# then outputs the replacement expansion. We do not care 3547# about autoupdate's warning because that contains 3548# information on what to do *after* running autoupdate. 3549 3550 3551 3552# _LT_COMPILER_C_O([TAGNAME]) 3553# --------------------------- 3554# Check to see if options -c and -o are simultaneously supported by compiler. 3555# This macro does not hard code the compiler like AC_PROG_CC_C_O. 3556# _LT_COMPILER_C_O 3557 3558 3559# _LT_COMPILER_FILE_LOCKS([TAGNAME]) 3560# ---------------------------------- 3561# Check to see if we can do hard links to lock some files if needed 3562# _LT_COMPILER_FILE_LOCKS 3563 3564 3565# _LT_CHECK_OBJDIR 3566# ---------------- 3567# _LT_CHECK_OBJDIR 3568 3569 3570# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) 3571# -------------------------------------- 3572# Check hardcoding attributes. 3573# _LT_LINKER_HARDCODE_LIBPATH 3574 3575 3576# _LT_CMD_STRIPLIB 3577# ---------------- 3578# _LT_CMD_STRIPLIB 3579 3580 3581# _LT_PREPARE_MUNGE_PATH_LIST 3582# --------------------------- 3583# Make sure func_munge_path_list() is defined correctly. 3584# _LT_PREPARE_PATH_LIST 3585 3586 3587# _LT_SYS_DYNAMIC_LINKER([TAG]) 3588# ----------------------------- 3589# PORTME Fill in your ld.so characteristics 3590# _LT_SYS_DYNAMIC_LINKER 3591 3592 3593# _LT_PATH_TOOL_PREFIX(TOOL) 3594# -------------------------- 3595# find a file program that can recognize shared library 3596# _LT_PATH_TOOL_PREFIX 3597 3598# Old name: 3599# This is what autoupdate's m4 run will expand. It fires 3600# the warning (with _au_warn_XXX), outputs it into the 3601# updated configure.ac (with AC_DIAGNOSE), and then outputs 3602# the replacement expansion. 3603 3604 3605# This is an auxiliary macro that is also run when 3606# autoupdate runs m4. It simply calls m4_warning, but 3607# we need a wrapper so that each warning is emitted only 3608# once. We break the quoting in m4_warning's argument in 3609# order to expand this macro's arguments, not AU_DEFUN's. 3610 3611 3612# Finally, this is the expansion that is picked up by 3613# autoconf. It tells the user to run autoupdate, and 3614# then outputs the replacement expansion. We do not care 3615# about autoupdate's warning because that contains 3616# information on what to do *after* running autoupdate. 3617 3618 3619 3620# _LT_PATH_MAGIC 3621# -------------- 3622# find a file program that can recognize a shared library 3623# _LT_PATH_MAGIC 3624 3625 3626# LT_PATH_LD 3627# ---------- 3628# find the pathname to the GNU or non-GNU linker 3629# LT_PATH_LD 3630 3631# Old names: 3632# This is what autoupdate's m4 run will expand. It fires 3633# the warning (with _au_warn_XXX), outputs it into the 3634# updated configure.ac (with AC_DIAGNOSE), and then outputs 3635# the replacement expansion. 3636 3637 3638# This is an auxiliary macro that is also run when 3639# autoupdate runs m4. It simply calls m4_warning, but 3640# we need a wrapper so that each warning is emitted only 3641# once. We break the quoting in m4_warning's argument in 3642# order to expand this macro's arguments, not AU_DEFUN's. 3643 3644 3645# Finally, this is the expansion that is picked up by 3646# autoconf. It tells the user to run autoupdate, and 3647# then outputs the replacement expansion. We do not care 3648# about autoupdate's warning because that contains 3649# information on what to do *after* running autoupdate. 3650 3651# This is what autoupdate's m4 run will expand. It fires 3652# the warning (with _au_warn_XXX), outputs it into the 3653# updated configure.ac (with AC_DIAGNOSE), and then outputs 3654# the replacement expansion. 3655 3656 3657# This is an auxiliary macro that is also run when 3658# autoupdate runs m4. It simply calls m4_warning, but 3659# we need a wrapper so that each warning is emitted only 3660# once. We break the quoting in m4_warning's argument in 3661# order to expand this macro's arguments, not AU_DEFUN's. 3662 3663 3664# Finally, this is the expansion that is picked up by 3665# autoconf. It tells the user to run autoupdate, and 3666# then outputs the replacement expansion. We do not care 3667# about autoupdate's warning because that contains 3668# information on what to do *after* running autoupdate. 3669 3670 3671 3672# _LT_PATH_LD_GNU 3673#- -------------- 3674# _LT_PATH_LD_GNU 3675 3676 3677# _LT_CMD_RELOAD 3678# -------------- 3679# find reload flag for linker 3680# -- PORTME Some linkers may need a different reload flag. 3681# _LT_CMD_RELOAD 3682 3683 3684# _LT_PATH_DD 3685# ----------- 3686# find a working dd 3687# _LT_PATH_DD 3688 3689 3690# _LT_CMD_TRUNCATE 3691# ---------------- 3692# find command to truncate a binary pipe 3693# _LT_CMD_TRUNCATE 3694 3695 3696# _LT_CHECK_MAGIC_METHOD 3697# ---------------------- 3698# how to check for library dependencies 3699# -- PORTME fill in with the dynamic library characteristics 3700# _LT_CHECK_MAGIC_METHOD 3701 3702 3703# LT_PATH_NM 3704# ---------- 3705# find the pathname to a BSD- or MS-compatible name lister 3706# LT_PATH_NM 3707 3708# Old names: 3709# This is what autoupdate's m4 run will expand. It fires 3710# the warning (with _au_warn_XXX), outputs it into the 3711# updated configure.ac (with AC_DIAGNOSE), and then outputs 3712# the replacement expansion. 3713 3714 3715# This is an auxiliary macro that is also run when 3716# autoupdate runs m4. It simply calls m4_warning, but 3717# we need a wrapper so that each warning is emitted only 3718# once. We break the quoting in m4_warning's argument in 3719# order to expand this macro's arguments, not AU_DEFUN's. 3720 3721 3722# Finally, this is the expansion that is picked up by 3723# autoconf. It tells the user to run autoupdate, and 3724# then outputs the replacement expansion. We do not care 3725# about autoupdate's warning because that contains 3726# information on what to do *after* running autoupdate. 3727 3728# This is what autoupdate's m4 run will expand. It fires 3729# the warning (with _au_warn_XXX), outputs it into the 3730# updated configure.ac (with AC_DIAGNOSE), and then outputs 3731# the replacement expansion. 3732 3733 3734# This is an auxiliary macro that is also run when 3735# autoupdate runs m4. It simply calls m4_warning, but 3736# we need a wrapper so that each warning is emitted only 3737# once. We break the quoting in m4_warning's argument in 3738# order to expand this macro's arguments, not AU_DEFUN's. 3739 3740 3741# Finally, this is the expansion that is picked up by 3742# autoconf. It tells the user to run autoupdate, and 3743# then outputs the replacement expansion. We do not care 3744# about autoupdate's warning because that contains 3745# information on what to do *after* running autoupdate. 3746 3747 3748# _LT_CHECK_SHAREDLIB_FROM_LINKLIB 3749# -------------------------------- 3750# how to determine the name of the shared library 3751# associated with a specific link library. 3752# -- PORTME fill in with the dynamic library characteristics 3753# _LT_CHECK_SHAREDLIB_FROM_LINKLIB 3754 3755 3756# _LT_PATH_MANIFEST_TOOL 3757# ---------------------- 3758# locate the manifest tool 3759# _LT_PATH_MANIFEST_TOOL 3760 3761 3762# _LT_DLL_DEF_P([FILE]) 3763# --------------------- 3764# True iff FILE is a Windows DLL '.def' file. 3765# Keep in sync with func_dll_def_p in the libtool script 3766# _LT_DLL_DEF_P 3767 3768 3769# LT_LIB_M 3770# -------- 3771# check for math library 3772# LT_LIB_M 3773 3774# Old name: 3775# This is what autoupdate's m4 run will expand. It fires 3776# the warning (with _au_warn_XXX), outputs it into the 3777# updated configure.ac (with AC_DIAGNOSE), and then outputs 3778# the replacement expansion. 3779 3780 3781# This is an auxiliary macro that is also run when 3782# autoupdate runs m4. It simply calls m4_warning, but 3783# we need a wrapper so that each warning is emitted only 3784# once. We break the quoting in m4_warning's argument in 3785# order to expand this macro's arguments, not AU_DEFUN's. 3786 3787 3788# Finally, this is the expansion that is picked up by 3789# autoconf. It tells the user to run autoupdate, and 3790# then outputs the replacement expansion. We do not care 3791# about autoupdate's warning because that contains 3792# information on what to do *after* running autoupdate. 3793 3794 3795 3796# _LT_COMPILER_NO_RTTI([TAGNAME]) 3797# ------------------------------- 3798# _LT_COMPILER_NO_RTTI 3799 3800 3801# _LT_CMD_GLOBAL_SYMBOLS 3802# ---------------------- 3803 # _LT_CMD_GLOBAL_SYMBOLS 3804 3805 3806# _LT_COMPILER_PIC([TAGNAME]) 3807# --------------------------- 3808# _LT_COMPILER_PIC 3809 3810 3811# _LT_LINKER_SHLIBS([TAGNAME]) 3812# ---------------------------- 3813# See if the linker supports building shared libraries. 3814# _LT_LINKER_SHLIBS 3815 3816 3817# _LT_LANG_C_CONFIG([TAG]) 3818# ------------------------ 3819# Ensure that the configuration variables for a C compiler are suitably 3820# defined. These variables are subsequently used by _LT_CONFIG to write 3821# the compiler configuration to 'libtool'. 3822# _LT_LANG_C_CONFIG 3823 3824 3825# _LT_LANG_CXX_CONFIG([TAG]) 3826# -------------------------- 3827# Ensure that the configuration variables for a C++ compiler are suitably 3828# defined. These variables are subsequently used by _LT_CONFIG to write 3829# the compiler configuration to 'libtool'. 3830# _LT_LANG_CXX_CONFIG 3831 3832 3833# _LT_FUNC_STRIPNAME_CNF 3834# ---------------------- 3835# func_stripname_cnf prefix suffix name 3836# strip PREFIX and SUFFIX off of NAME. 3837# PREFIX and SUFFIX must not contain globbing or regex special 3838# characters, hashes, percent signs, but SUFFIX may contain a leading 3839# dot (in which case that matches only a dot). 3840# 3841# This function is identical to the (non-XSI) version of func_stripname, 3842# except this one can be used by m4 code that may be executed by configure, 3843# rather than the libtool script. 3844# _LT_FUNC_STRIPNAME_CNF 3845 3846 3847# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) 3848# --------------------------------- 3849# Figure out "hidden" library dependencies from verbose 3850# compiler output when linking a shared library. 3851# Parse the compiler output and extract the necessary 3852# objects, libraries and library flags. 3853# _LT_SYS_HIDDEN_LIBDEPS 3854 3855 3856# _LT_LANG_F77_CONFIG([TAG]) 3857# -------------------------- 3858# Ensure that the configuration variables for a Fortran 77 compiler are 3859# suitably defined. These variables are subsequently used by _LT_CONFIG 3860# to write the compiler configuration to 'libtool'. 3861# _LT_LANG_F77_CONFIG 3862 3863 3864# _LT_LANG_FC_CONFIG([TAG]) 3865# ------------------------- 3866# Ensure that the configuration variables for a Fortran compiler are 3867# suitably defined. These variables are subsequently used by _LT_CONFIG 3868# to write the compiler configuration to 'libtool'. 3869# _LT_LANG_FC_CONFIG 3870 3871 3872# _LT_LANG_GCJ_CONFIG([TAG]) 3873# -------------------------- 3874# Ensure that the configuration variables for the GNU Java Compiler compiler 3875# are suitably defined. These variables are subsequently used by _LT_CONFIG 3876# to write the compiler configuration to 'libtool'. 3877# _LT_LANG_GCJ_CONFIG 3878 3879 3880# _LT_LANG_GO_CONFIG([TAG]) 3881# -------------------------- 3882# Ensure that the configuration variables for the GNU Go compiler 3883# are suitably defined. These variables are subsequently used by _LT_CONFIG 3884# to write the compiler configuration to 'libtool'. 3885# _LT_LANG_GO_CONFIG 3886 3887 3888# _LT_LANG_RC_CONFIG([TAG]) 3889# ------------------------- 3890# Ensure that the configuration variables for the Windows resource compiler 3891# are suitably defined. These variables are subsequently used by _LT_CONFIG 3892# to write the compiler configuration to 'libtool'. 3893# _LT_LANG_RC_CONFIG 3894 3895 3896# LT_PROG_GCJ 3897# ----------- 3898 3899 3900# Old name: 3901# This is what autoupdate's m4 run will expand. It fires 3902# the warning (with _au_warn_XXX), outputs it into the 3903# updated configure.ac (with AC_DIAGNOSE), and then outputs 3904# the replacement expansion. 3905 3906 3907# This is an auxiliary macro that is also run when 3908# autoupdate runs m4. It simply calls m4_warning, but 3909# we need a wrapper so that each warning is emitted only 3910# once. We break the quoting in m4_warning's argument in 3911# order to expand this macro's arguments, not AU_DEFUN's. 3912 3913 3914# Finally, this is the expansion that is picked up by 3915# autoconf. It tells the user to run autoupdate, and 3916# then outputs the replacement expansion. We do not care 3917# about autoupdate's warning because that contains 3918# information on what to do *after* running autoupdate. 3919 3920 3921 3922# LT_PROG_GO 3923# ---------- 3924 3925 3926 3927# LT_PROG_RC 3928# ---------- 3929 3930 3931# Old name: 3932# This is what autoupdate's m4 run will expand. It fires 3933# the warning (with _au_warn_XXX), outputs it into the 3934# updated configure.ac (with AC_DIAGNOSE), and then outputs 3935# the replacement expansion. 3936 3937 3938# This is an auxiliary macro that is also run when 3939# autoupdate runs m4. It simply calls m4_warning, but 3940# we need a wrapper so that each warning is emitted only 3941# once. We break the quoting in m4_warning's argument in 3942# order to expand this macro's arguments, not AU_DEFUN's. 3943 3944 3945# Finally, this is the expansion that is picked up by 3946# autoconf. It tells the user to run autoupdate, and 3947# then outputs the replacement expansion. We do not care 3948# about autoupdate's warning because that contains 3949# information on what to do *after* running autoupdate. 3950 3951 3952 3953# _LT_DECL_EGREP 3954# -------------- 3955# If we don't have a new enough Autoconf to choose the best grep 3956# available, choose the one first in the user's PATH. 3957 3958 3959 3960# _LT_DECL_OBJDUMP 3961# -------------- 3962# If we don't have a new enough Autoconf to choose the best objdump 3963# available, choose the one first in the user's PATH. 3964 3965 3966# _LT_DECL_DLLTOOL 3967# ---------------- 3968# Ensure DLLTOOL variable is set. 3969 3970 3971# _LT_DECL_SED 3972# ------------ 3973# Check for a fully-functional sed program, that truncates 3974# as few characters as possible. Prefer GNU sed if found. 3975# _LT_DECL_SED 3976 3977#m4_ifndef 3978 3979# Old name: 3980# This is what autoupdate's m4 run will expand. It fires 3981# the warning (with _au_warn_XXX), outputs it into the 3982# updated configure.ac (with AC_DIAGNOSE), and then outputs 3983# the replacement expansion. 3984 3985 3986# This is an auxiliary macro that is also run when 3987# autoupdate runs m4. It simply calls m4_warning, but 3988# we need a wrapper so that each warning is emitted only 3989# once. We break the quoting in m4_warning's argument in 3990# order to expand this macro's arguments, not AU_DEFUN's. 3991 3992 3993# Finally, this is the expansion that is picked up by 3994# autoconf. It tells the user to run autoupdate, and 3995# then outputs the replacement expansion. We do not care 3996# about autoupdate's warning because that contains 3997# information on what to do *after* running autoupdate. 3998 3999 4000 4001# _LT_CHECK_SHELL_FEATURES 4002# ------------------------ 4003# Find out whether the shell is Bourne or XSI compatible, 4004# or has some other useful features. 4005# _LT_CHECK_SHELL_FEATURES 4006 4007 4008# _LT_PATH_CONVERSION_FUNCTIONS 4009# ----------------------------- 4010# Determine what file name conversion functions should be used by 4011# func_to_host_file (and, implicitly, by func_to_host_path). These are needed 4012# for certain cross-compile configurations and native mingw. 4013# _LT_PATH_CONVERSION_FUNCTIONS 4014 4015# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- 4016# 4017# Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software 4018# Foundation, Inc. 4019# Written by Gary V. Vaughan, 2004 4020# 4021# This file is free software; the Free Software Foundation gives 4022# unlimited permission to copy and/or distribute it, with or without 4023# modifications, as long as this notice is preserved. 4024 4025# serial 6 ltsugar.m4 4026 4027# This is to help aclocal find these macros, as it can't see m4_define. 4028 4029 4030 4031# lt_join(SEP, ARG1, [ARG2...]) 4032# ----------------------------- 4033# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their 4034# associated separator. 4035# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier 4036# versions in m4sugar had bugs. 4037 4038 4039 4040 4041# lt_car(LIST) 4042# lt_cdr(LIST) 4043# ------------ 4044# Manipulate m4 lists. 4045# These macros are necessary as long as will still need to support 4046# Autoconf-2.59, which quotes differently. 4047 4048 4049 4050 4051 4052# lt_append(MACRO-NAME, STRING, [SEPARATOR]) 4053# ------------------------------------------ 4054# Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'. 4055# Note that neither SEPARATOR nor STRING are expanded; they are appended 4056# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). 4057# No SEPARATOR is output if MACRO-NAME was previously undefined (different 4058# than defined and empty). 4059# 4060# This macro is needed until we can rely on Autoconf 2.62, since earlier 4061# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. 4062 4063 4064 4065 4066# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) 4067# ---------------------------------------------------------- 4068# Produce a SEP delimited list of all paired combinations of elements of 4069# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list 4070# has the form PREFIXmINFIXSUFFIXn. 4071# Needed until we can rely on m4_combine added in Autoconf 2.62. 4072 4073 4074 4075# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) 4076# ----------------------------------------------------------------------- 4077# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited 4078# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. 4079 4080 4081 4082# lt_dict_add(DICT, KEY, VALUE) 4083# ----------------------------- 4084 4085 4086 4087# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) 4088# -------------------------------------------- 4089 4090 4091 4092# lt_dict_fetch(DICT, KEY, [SUBKEY]) 4093# ---------------------------------- 4094 4095 4096 4097# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) 4098# ----------------------------------------------------------------- 4099 4100 4101 4102# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) 4103# -------------------------------------------------------------- 4104 4105 4106 4107# Helper functions for option handling. -*- Autoconf -*- 4108# 4109# Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software 4110# Foundation, Inc. 4111# Written by Gary V. Vaughan, 2004 4112# 4113# This file is free software; the Free Software Foundation gives 4114# unlimited permission to copy and/or distribute it, with or without 4115# modifications, as long as this notice is preserved. 4116 4117# serial 8 ltoptions.m4 4118 4119# This is to help aclocal find these macros, as it can't see m4_define. 4120 4121 4122 4123# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) 4124# ------------------------------------------ 4125 4126 4127 4128# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) 4129# --------------------------------------- 4130# Set option OPTION-NAME for macro MACRO-NAME, and if there is a 4131# matching handler defined, dispatch to it. Other OPTION-NAMEs are 4132# saved as a flag. 4133 4134 4135 4136# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) 4137# ------------------------------------------------------------ 4138# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 4139 4140 4141 4142# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) 4143# ------------------------------------------------------- 4144# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME 4145# are set. 4146 4147 4148 4149# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) 4150# ---------------------------------------- 4151# OPTION-LIST is a space-separated list of Libtool options associated 4152# with MACRO-NAME. If any OPTION has a matching handler declared with 4153# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about 4154# the unknown option and exit. 4155# _LT_SET_OPTIONS 4156 4157 4158## --------------------------------- ## 4159## Macros to handle LT_INIT options. ## 4160## --------------------------------- ## 4161 4162# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) 4163# ----------------------------------------- 4164 4165 4166 4167# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) 4168# ----------------------------------------------- 4169# LT_OPTION_DEFINE 4170 4171 4172# dlopen 4173# ------ 4174 4175 4176# This is what autoupdate's m4 run will expand. It fires 4177# the warning (with _au_warn_XXX), outputs it into the 4178# updated configure.ac (with AC_DIAGNOSE), and then outputs 4179# the replacement expansion. 4180 4181 4182# This is an auxiliary macro that is also run when 4183# autoupdate runs m4. It simply calls m4_warning, but 4184# we need a wrapper so that each warning is emitted only 4185# once. We break the quoting in m4_warning's argument in 4186# order to expand this macro's arguments, not AU_DEFUN's. 4187 4188 4189# Finally, this is the expansion that is picked up by 4190# autoconf. It tells the user to run autoupdate, and 4191# then outputs the replacement expansion. We do not care 4192# about autoupdate's warning because that contains 4193# information on what to do *after* running autoupdate. 4194 4195 4196 4197 4198# win32-dll 4199# --------- 4200# Declare package support for building win32 dll's. 4201# win32-dll 4202 4203# This is what autoupdate's m4 run will expand. It fires 4204# the warning (with _au_warn_XXX), outputs it into the 4205# updated configure.ac (with AC_DIAGNOSE), and then outputs 4206# the replacement expansion. 4207 4208 4209# This is an auxiliary macro that is also run when 4210# autoupdate runs m4. It simply calls m4_warning, but 4211# we need a wrapper so that each warning is emitted only 4212# once. We break the quoting in m4_warning's argument in 4213# order to expand this macro's arguments, not AU_DEFUN's. 4214 4215 4216# Finally, this is the expansion that is picked up by 4217# autoconf. It tells the user to run autoupdate, and 4218# then outputs the replacement expansion. We do not care 4219# about autoupdate's warning because that contains 4220# information on what to do *after* running autoupdate. 4221 4222 4223 4224 4225# _LT_ENABLE_SHARED([DEFAULT]) 4226# ---------------------------- 4227# implement the --enable-shared flag, and supports the 'shared' and 4228# 'disable-shared' LT_INIT options. 4229# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 4230# _LT_ENABLE_SHARED 4231 4232 4233 4234 4235# Old names: 4236 4237 4238 4239 4240# This is what autoupdate's m4 run will expand. It fires 4241# the warning (with _au_warn_XXX), outputs it into the 4242# updated configure.ac (with AC_DIAGNOSE), and then outputs 4243# the replacement expansion. 4244 4245 4246# This is an auxiliary macro that is also run when 4247# autoupdate runs m4. It simply calls m4_warning, but 4248# we need a wrapper so that each warning is emitted only 4249# once. We break the quoting in m4_warning's argument in 4250# order to expand this macro's arguments, not AU_DEFUN's. 4251 4252 4253# Finally, this is the expansion that is picked up by 4254# autoconf. It tells the user to run autoupdate, and 4255# then outputs the replacement expansion. We do not care 4256# about autoupdate's warning because that contains 4257# information on what to do *after* running autoupdate. 4258 4259# This is what autoupdate's m4 run will expand. It fires 4260# the warning (with _au_warn_XXX), outputs it into the 4261# updated configure.ac (with AC_DIAGNOSE), and then outputs 4262# the replacement expansion. 4263 4264 4265# This is an auxiliary macro that is also run when 4266# autoupdate runs m4. It simply calls m4_warning, but 4267# we need a wrapper so that each warning is emitted only 4268# once. We break the quoting in m4_warning's argument in 4269# order to expand this macro's arguments, not AU_DEFUN's. 4270 4271 4272# Finally, this is the expansion that is picked up by 4273# autoconf. It tells the user to run autoupdate, and 4274# then outputs the replacement expansion. We do not care 4275# about autoupdate's warning because that contains 4276# information on what to do *after* running autoupdate. 4277 4278 4279 4280 4281 4282# _LT_ENABLE_STATIC([DEFAULT]) 4283# ---------------------------- 4284# implement the --enable-static flag, and support the 'static' and 4285# 'disable-static' LT_INIT options. 4286# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 4287# _LT_ENABLE_STATIC 4288 4289 4290 4291 4292# Old names: 4293 4294 4295 4296 4297# This is what autoupdate's m4 run will expand. It fires 4298# the warning (with _au_warn_XXX), outputs it into the 4299# updated configure.ac (with AC_DIAGNOSE), and then outputs 4300# the replacement expansion. 4301 4302 4303# This is an auxiliary macro that is also run when 4304# autoupdate runs m4. It simply calls m4_warning, but 4305# we need a wrapper so that each warning is emitted only 4306# once. We break the quoting in m4_warning's argument in 4307# order to expand this macro's arguments, not AU_DEFUN's. 4308 4309 4310# Finally, this is the expansion that is picked up by 4311# autoconf. It tells the user to run autoupdate, and 4312# then outputs the replacement expansion. We do not care 4313# about autoupdate's warning because that contains 4314# information on what to do *after* running autoupdate. 4315 4316# This is what autoupdate's m4 run will expand. It fires 4317# the warning (with _au_warn_XXX), outputs it into the 4318# updated configure.ac (with AC_DIAGNOSE), and then outputs 4319# the replacement expansion. 4320 4321 4322# This is an auxiliary macro that is also run when 4323# autoupdate runs m4. It simply calls m4_warning, but 4324# we need a wrapper so that each warning is emitted only 4325# once. We break the quoting in m4_warning's argument in 4326# order to expand this macro's arguments, not AU_DEFUN's. 4327 4328 4329# Finally, this is the expansion that is picked up by 4330# autoconf. It tells the user to run autoupdate, and 4331# then outputs the replacement expansion. We do not care 4332# about autoupdate's warning because that contains 4333# information on what to do *after* running autoupdate. 4334 4335 4336 4337 4338 4339# _LT_ENABLE_FAST_INSTALL([DEFAULT]) 4340# ---------------------------------- 4341# implement the --enable-fast-install flag, and support the 'fast-install' 4342# and 'disable-fast-install' LT_INIT options. 4343# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 4344# _LT_ENABLE_FAST_INSTALL 4345 4346 4347 4348 4349# Old names: 4350# This is what autoupdate's m4 run will expand. It fires 4351# the warning (with _au_warn_XXX), outputs it into the 4352# updated configure.ac (with AC_DIAGNOSE), and then outputs 4353# the replacement expansion. 4354 4355 4356# This is an auxiliary macro that is also run when 4357# autoupdate runs m4. It simply calls m4_warning, but 4358# we need a wrapper so that each warning is emitted only 4359# once. We break the quoting in m4_warning's argument in 4360# order to expand this macro's arguments, not AU_DEFUN's. 4361 4362 4363# Finally, this is the expansion that is picked up by 4364# autoconf. It tells the user to run autoupdate, and 4365# then outputs the replacement expansion. We do not care 4366# about autoupdate's warning because that contains 4367# information on what to do *after* running autoupdate. 4368 4369 4370# This is what autoupdate's m4 run will expand. It fires 4371# the warning (with _au_warn_XXX), outputs it into the 4372# updated configure.ac (with AC_DIAGNOSE), and then outputs 4373# the replacement expansion. 4374 4375 4376# This is an auxiliary macro that is also run when 4377# autoupdate runs m4. It simply calls m4_warning, but 4378# we need a wrapper so that each warning is emitted only 4379# once. We break the quoting in m4_warning's argument in 4380# order to expand this macro's arguments, not AU_DEFUN's. 4381 4382 4383# Finally, this is the expansion that is picked up by 4384# autoconf. It tells the user to run autoupdate, and 4385# then outputs the replacement expansion. We do not care 4386# about autoupdate's warning because that contains 4387# information on what to do *after* running autoupdate. 4388 4389 4390 4391 4392# _LT_WITH_AIX_SONAME([DEFAULT]) 4393# ---------------------------------- 4394# implement the --with-aix-soname flag, and support the `aix-soname=aix' 4395# and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT 4396# is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'. 4397# _LT_WITH_AIX_SONAME 4398 4399 4400 4401 4402 4403 4404# _LT_WITH_PIC([MODE]) 4405# -------------------- 4406# implement the --with-pic flag, and support the 'pic-only' and 'no-pic' 4407# LT_INIT options. 4408# MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'. 4409# _LT_WITH_PIC 4410 4411 4412 4413 4414# Old name: 4415# This is what autoupdate's m4 run will expand. It fires 4416# the warning (with _au_warn_XXX), outputs it into the 4417# updated configure.ac (with AC_DIAGNOSE), and then outputs 4418# the replacement expansion. 4419 4420 4421# This is an auxiliary macro that is also run when 4422# autoupdate runs m4. It simply calls m4_warning, but 4423# we need a wrapper so that each warning is emitted only 4424# once. We break the quoting in m4_warning's argument in 4425# order to expand this macro's arguments, not AU_DEFUN's. 4426 4427 4428# Finally, this is the expansion that is picked up by 4429# autoconf. It tells the user to run autoupdate, and 4430# then outputs the replacement expansion. We do not care 4431# about autoupdate's warning because that contains 4432# information on what to do *after* running autoupdate. 4433 4434 4435 4436## ----------------- ## 4437## LTDL_INIT Options ## 4438## ----------------- ## 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449# ltversion.m4 -- version numbers -*- Autoconf -*- 4450# 4451# Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc. 4452# Written by Scott James Remnant, 2004 4453# 4454# This file is free software; the Free Software Foundation gives 4455# unlimited permission to copy and/or distribute it, with or without 4456# modifications, as long as this notice is preserved. 4457 4458# @configure_input@ 4459 4460# serial 4179 ltversion.m4 4461# This file is part of GNU Libtool 4462 4463 4464 4465 4466 4467 4468# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- 4469# 4470# Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software 4471# Foundation, Inc. 4472# Written by Scott James Remnant, 2004. 4473# 4474# This file is free software; the Free Software Foundation gives 4475# unlimited permission to copy and/or distribute it, with or without 4476# modifications, as long as this notice is preserved. 4477 4478# serial 5 lt~obsolete.m4 4479 4480# These exist entirely to fool aclocal when bootstrapping libtool. 4481# 4482# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN), 4483# which have later been changed to m4_define as they aren't part of the 4484# exported API, or moved to Autoconf or Automake where they belong. 4485# 4486# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN 4487# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us 4488# using a macro with the same name in our local m4/libtool.m4 it'll 4489# pull the old libtool.m4 in (it doesn't see our shiny new m4_define 4490# and doesn't know about Autoconf macros at all.) 4491# 4492# So we provide this file, which has a silly filename so it's always 4493# included after everything else. This provides aclocal with the 4494# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything 4495# because those macros already exist, or will be overwritten later. 4496# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 4497# 4498# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. 4499# Yes, that means every name once taken will need to remain here until 4500# we give up compatibility with versions before 1.7, at which point 4501# we need to keep only those names which we still refer to. 4502 4503# This is to help aclocal find these macros, as it can't see m4_define. 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 apr_ste_save_CPPFLAGS="$CPPFLAGS" 4575 4576 4577 apr_ste_save_CFLAGS="$CFLAGS" 4578 4579 4580 apr_ste_save_LDFLAGS="$LDFLAGS" 4581 4582 4583 apr_ste_save_LIBS="$LIBS" 4584 4585 4586 apr_ste_save_INCLUDES="$INCLUDES" 4587 4588 4589 4590 rm -f config.nice 4591 cat >config.nice<<EOF 4592#! /bin/sh 4593# 4594# Created by configure 4595 4596EOF 4597 if test -n "$CC"; then 4598 echo "CC=\"$CC\"; export CC" >> config.nice 4599 fi 4600 if test -n "$CFLAGS"; then 4601 echo "CFLAGS=\"$CFLAGS\"; export CFLAGS" >> config.nice 4602 fi 4603 if test -n "$CPPFLAGS"; then 4604 echo "CPPFLAGS=\"$CPPFLAGS\"; export CPPFLAGS" >> config.nice 4605 fi 4606 if test -n "$LDFLAGS"; then 4607 echo "LDFLAGS=\"$LDFLAGS\"; export LDFLAGS" >> config.nice 4608 fi 4609 if test -n "$LTFLAGS"; then 4610 echo "LTFLAGS=\"$LTFLAGS\"; export LTFLAGS" >> config.nice 4611 fi 4612 if test -n "$LIBS"; then 4613 echo "LIBS=\"$LIBS\"; export LIBS" >> config.nice 4614 fi 4615 if test -n "$INCLUDES"; then 4616 echo "INCLUDES=\"$INCLUDES\"; export INCLUDES" >> config.nice 4617 fi 4618 if test -n "$NOTEST_CFLAGS"; then 4619 echo "NOTEST_CFLAGS=\"$NOTEST_CFLAGS\"; export NOTEST_CFLAGS" >> config.nice 4620 fi 4621 if test -n "$NOTEST_CPPFLAGS"; then 4622 echo "NOTEST_CPPFLAGS=\"$NOTEST_CPPFLAGS\"; export NOTEST_CPPFLAGS" >> config.nice 4623 fi 4624 if test -n "$NOTEST_LDFLAGS"; then 4625 echo "NOTEST_LDFLAGS=\"$NOTEST_LDFLAGS\"; export NOTEST_LDFLAGS" >> config.nice 4626 fi 4627 if test -n "$NOTEST_LIBS"; then 4628 echo "NOTEST_LIBS=\"$NOTEST_LIBS\"; export NOTEST_LIBS" >> config.nice 4629 fi 4630 4631 # Retrieve command-line arguments. 4632 eval "set x $0 $ac_configure_args" 4633 shift 4634 4635 for arg 4636 do 4637 4638ap_last= 4639ap_cur="$arg" 4640while test "x${ap_cur}" != "x${ap_last}"; 4641do 4642 ap_last="${ap_cur}" 4643 ap_cur=`eval "echo ${ap_cur}"` 4644done 4645arg="${ap_cur}" 4646 4647 echo "\"$arg\" \\" >> config.nice 4648 done 4649 echo '"$@"' >> config.nice 4650 chmod +x config.nice 4651 4652 4653# Make sure we can run config.sub. 4654$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4655 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4656 4657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4658$as_echo_n "checking build system type... " >&6; } 4659if ${ac_cv_build+:} false; then : 4660 $as_echo_n "(cached) " >&6 4661else 4662 ac_build_alias=$build_alias 4663test "x$ac_build_alias" = x && 4664 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4665test "x$ac_build_alias" = x && 4666 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4667ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4668 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4669 4670fi 4671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4672$as_echo "$ac_cv_build" >&6; } 4673case $ac_cv_build in 4674*-*-*) ;; 4675*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4676esac 4677build=$ac_cv_build 4678ac_save_IFS=$IFS; IFS='-' 4679set x $ac_cv_build 4680shift 4681build_cpu=$1 4682build_vendor=$2 4683shift; shift 4684# Remember, the first character of IFS is used to create $*, 4685# except with old shells: 4686build_os=$* 4687IFS=$ac_save_IFS 4688case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4689 4690 4691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4692$as_echo_n "checking host system type... " >&6; } 4693if ${ac_cv_host+:} false; then : 4694 $as_echo_n "(cached) " >&6 4695else 4696 if test "x$host_alias" = x; then 4697 ac_cv_host=$ac_cv_build 4698else 4699 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4700 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4701fi 4702 4703fi 4704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4705$as_echo "$ac_cv_host" >&6; } 4706case $ac_cv_host in 4707*-*-*) ;; 4708*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4709esac 4710host=$ac_cv_host 4711ac_save_IFS=$IFS; IFS='-' 4712set x $ac_cv_host 4713shift 4714host_cpu=$1 4715host_vendor=$2 4716shift; shift 4717# Remember, the first character of IFS is used to create $*, 4718# except with old shells: 4719host_os=$* 4720IFS=$ac_save_IFS 4721case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4722 4723 4724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 4725$as_echo_n "checking target system type... " >&6; } 4726if ${ac_cv_target+:} false; then : 4727 $as_echo_n "(cached) " >&6 4728else 4729 if test "x$target_alias" = x; then 4730 ac_cv_target=$ac_cv_host 4731else 4732 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 4733 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 4734fi 4735 4736fi 4737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 4738$as_echo "$ac_cv_target" >&6; } 4739case $ac_cv_target in 4740*-*-*) ;; 4741*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 4742esac 4743target=$ac_cv_target 4744ac_save_IFS=$IFS; IFS='-' 4745set x $ac_cv_target 4746shift 4747target_cpu=$1 4748target_vendor=$2 4749shift; shift 4750# Remember, the first character of IFS is used to create $*, 4751# except with old shells: 4752target_os=$* 4753IFS=$ac_save_IFS 4754case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 4755 4756 4757# The aliases save the names the user supplied, while $host etc. 4758# will get canonicalized. 4759test -n "$target_alias" && 4760 test "$program_prefix$program_suffix$program_transform_name" = \ 4761 NONENONEs,x,x, && 4762 program_prefix=${target_alias}- 4763 4764echo "Configuring APR library" 4765echo "Platform: $host" 4766 4767 4768 4769# Absolute source/build directory 4770apr_srcdir=`(cd $srcdir && pwd)` 4771apr_builddir=`pwd` 4772 4773 4774 4775if test "$apr_builddir" != "$apr_srcdir"; then 4776 USE_VPATH=1 4777 APR_CONFIG_LOCATION=build 4778else 4779 APR_CONFIG_LOCATION=source 4780fi 4781 4782 4783 4784# Libtool might need this symbol -- it must point to the location of 4785# the generated libtool script (not necessarily the "top" build dir). 4786# 4787top_builddir="$apr_builddir" 4788 4789 4790# Directory containing apr build macros, helpers, and make rules 4791# NOTE: make rules (apr_rules.mk) will be in the builddir for vpath 4792# 4793apr_buildout=$apr_builddir/build 4794apr_builders=$apr_srcdir/build 4795 4796 4797MKDIR=$apr_builders/mkdir.sh 4798 4799 4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mkdir -p" >&5 4801$as_echo_n "checking for working mkdir -p... " >&6; } 4802if ${ac_cv_mkdir_p+:} false; then : 4803 $as_echo_n "(cached) " >&6 4804else 4805 4806 test -d conftestdir && rm -rf conftestdir 4807 mkdir -p conftestdir/somedir >/dev/null 2>&1 4808 if test -d conftestdir/somedir; then 4809 ac_cv_mkdir_p=yes 4810 else 4811 ac_cv_mkdir_p=no 4812 fi 4813 rm -rf conftestdir 4814 4815fi 4816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mkdir_p" >&5 4817$as_echo "$ac_cv_mkdir_p" >&6; } 4818 if test "$ac_cv_mkdir_p" = "yes"; then 4819 mkdir_p="mkdir -p" 4820 else 4821 mkdir_p="$apr_builders/mkdir.sh" 4822 fi 4823 4824 4825# get our version information 4826get_version="$apr_builders/get-version.sh" 4827version_hdr="$apr_srcdir/include/apr_version.h" 4828APR_MAJOR_VERSION="`$get_version major $version_hdr APR`" 4829APR_DOTTED_VERSION="`$get_version all $version_hdr APR`" 4830 4831 4832 4833 4834echo "APR Version: ${APR_DOTTED_VERSION}" 4835 4836 4837# Check whether --enable-layout was given. 4838if test "${enable_layout+set}" = set; then : 4839 enableval=$enable_layout; 4840 LAYOUT=$enableval 4841 4842fi 4843 4844 4845if test -z "$LAYOUT"; then 4846 LAYOUT="apr" 4847fi 4848 4849 if test ! -f $srcdir/config.layout; then 4850 echo "** Error: Layout file $srcdir/config.layout not found" 4851 echo "** Error: Cannot use undefined layout '$LAYOUT'" 4852 exit 1 4853 fi 4854 # Catch layout names including a slash which will otherwise 4855 # confuse the heck out of the sed script. 4856 case $LAYOUT in 4857 */*) 4858 echo "** Error: $LAYOUT is not a valid layout name" 4859 exit 1 ;; 4860 esac 4861 pldconf=./config.pld 4862 4863 sed -e "1s/[ ]*<[lL]ayout[ ]*$LAYOUT[ ]*>[ ]*//;1t" \ 4864 -e "1,/[ ]*<[lL]ayout[ ]*$LAYOUT[ ]*>[ ]*/d" \ 4865 -e '/[ ]*<\/Layout>[ ]*/,$d' \ 4866 -e "s/^[ ]*//g" \ 4867 -e "s/:[ ]*/=\'/g" \ 4868 -e "s/[ ]*$/'/g" \ 4869 $srcdir/config.layout > $pldconf 4870 layout_name=$LAYOUT 4871 if test ! -s $pldconf; then 4872 echo "** Error: unable to find layout $layout_name" 4873 exit 1 4874 fi 4875 . $pldconf 4876 rm $pldconf 4877 for var in prefix exec_prefix bindir sbindir libexecdir mandir \ 4878 sysconfdir datadir includedir localstatedir runtimedir \ 4879 logfiledir libdir installbuilddir libsuffix ; do 4880 eval "val=\"\$$var\"" 4881 case $val in 4882 *+) 4883 val=`echo $val | sed -e 's;\+$;;'` 4884 eval "$var=\"\$val\"" 4885 autosuffix=yes 4886 ;; 4887 *) 4888 autosuffix=no 4889 ;; 4890 esac 4891 val=`echo $val | sed -e 's:\(.\)/*$:\1:'` 4892 val=`echo $val | sed -e 's:[\$]\([a-z_]*\):$\1:g'` 4893 if test "$autosuffix" = "yes"; then 4894 if echo $val | grep apache >/dev/null; then 4895 addtarget=no 4896 else 4897 addtarget=yes 4898 fi 4899 if test "$addtarget" = "yes"; then 4900 val="$val/apache2" 4901 fi 4902 fi 4903 eval "$var='$val'" 4904 done 4905 4906 4907 4908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chosen layout" >&5 4909$as_echo_n "checking for chosen layout... " >&6; } 4910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $layout_name" >&5 4911$as_echo "$layout_name" >&6; } 4912 4913 4914ac_prev= 4915# Retrieve the command-line arguments. The eval is needed because 4916# the arguments are quoted to preserve accuracy. 4917eval "set x $ac_configure_args" 4918shift 4919for ac_option 4920do 4921 # If the previous option needs an argument, assign it. 4922 if test -n "$ac_prev"; then 4923 eval "$ac_prev=\$ac_option" 4924 ac_prev= 4925 continue 4926 fi 4927 4928 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 4929 4930 case $ac_option in 4931 4932 -bindir | --bindir | --bindi | --bind | --bin | --bi) 4933 ac_prev=bindir ;; 4934 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 4935 bindir="$ac_optarg" ;; 4936 4937 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 4938 ac_prev=datadir ;; 4939 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 4940 | --da=*) 4941 datadir="$ac_optarg" ;; 4942 4943 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 4944 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 4945 | --exec | --exe | --ex) 4946 ac_prev=exec_prefix ;; 4947 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 4948 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 4949 | --exec=* | --exe=* | --ex=*) 4950 exec_prefix="$ac_optarg" ;; 4951 4952 -includedir | --includedir | --includedi | --included | --include \ 4953 | --includ | --inclu | --incl | --inc) 4954 ac_prev=includedir ;; 4955 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 4956 | --includ=* | --inclu=* | --incl=* | --inc=*) 4957 includedir="$ac_optarg" ;; 4958 4959 -infodir | --infodir | --infodi | --infod | --info | --inf) 4960 ac_prev=infodir ;; 4961 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 4962 infodir="$ac_optarg" ;; 4963 4964 -libdir | --libdir | --libdi | --libd) 4965 ac_prev=libdir ;; 4966 -libdir=* | --libdir=* | --libdi=* | --libd=*) 4967 libdir="$ac_optarg" ;; 4968 4969 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 4970 | --libexe | --libex | --libe) 4971 ac_prev=libexecdir ;; 4972 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 4973 | --libexe=* | --libex=* | --libe=*) 4974 libexecdir="$ac_optarg" ;; 4975 4976 -localstatedir | --localstatedir | --localstatedi | --localstated \ 4977 | --localstate | --localstat | --localsta | --localst \ 4978 | --locals | --local | --loca | --loc | --lo) 4979 ac_prev=localstatedir ;; 4980 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 4981 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 4982 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 4983 localstatedir="$ac_optarg" ;; 4984 4985 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 4986 ac_prev=mandir ;; 4987 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 4988 mandir="$ac_optarg" ;; 4989 4990 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 4991 ac_prev=prefix ;; 4992 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 4993 prefix="$ac_optarg" ;; 4994 4995 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 4996 ac_prev=sbindir ;; 4997 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 4998 | --sbi=* | --sb=*) 4999 sbindir="$ac_optarg" ;; 5000 5001 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 5002 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 5003 | --sharedst | --shareds | --shared | --share | --shar \ 5004 | --sha | --sh) 5005 ac_prev=sharedstatedir ;; 5006 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 5007 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 5008 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 5009 | --sha=* | --sh=*) 5010 sharedstatedir="$ac_optarg" ;; 5011 5012 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 5013 | --syscon | --sysco | --sysc | --sys | --sy) 5014 ac_prev=sysconfdir ;; 5015 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 5016 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 5017 sysconfdir="$ac_optarg" ;; 5018 5019 esac 5020done 5021 5022# Be sure to have absolute paths. 5023for ac_var in exec_prefix prefix 5024do 5025 eval ac_val=$`echo $ac_var` 5026 case $ac_val in 5027 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 5028 *) as_fn_error $? "expected an absolute path for --$ac_var: $ac_val" "$LINENO" 5;; 5029 esac 5030done 5031 5032 5033 5034 5035case "$host" in 5036 *-apple-aux3*) 5037 5038 if test -z "$CC"; then 5039 test "x$silent" != "xyes" && echo " setting CC to \"gcc\"" 5040 CC="gcc" 5041 fi 5042 5043 ;; 5044 bs2000*-siemens-sysv*) 5045 5046 if test -z "$CC"; then 5047 test "x$silent" != "xyes" && echo " setting CC to \"c89 -XLLML -XLLMK -XL -Kno_integer_overflow\"" 5048 CC="c89 -XLLML -XLLMK -XL -Kno_integer_overflow" 5049 fi 5050 5051 ;; 5052 *convex-v11*) 5053 5054 if test -z "$CC"; then 5055 test "x$silent" != "xyes" && echo " setting CC to \"cc\"" 5056 CC="cc" 5057 fi 5058 5059 ;; 5060 *-ibm-os390) 5061 5062 if test -z "$CC"; then 5063 test "x$silent" != "xyes" && echo " setting CC to \"cc\"" 5064 CC="cc" 5065 fi 5066 5067 ;; 5068 *-ibm-as400) 5069 5070 if test -z "$CC"; then 5071 test "x$silent" != "xyes" && echo " setting CC to \"icc\"" 5072 CC="icc" 5073 fi 5074 5075 ;; 5076 *-isc4*) 5077 5078 if test -z "$CC"; then 5079 test "x$silent" != "xyes" && echo " setting CC to \"gcc\"" 5080 CC="gcc" 5081 fi 5082 5083 ;; 5084 m88k-*-CX/SX|CYBER) 5085 5086 if test -z "$CC"; then 5087 test "x$silent" != "xyes" && echo " setting CC to \"cc\"" 5088 CC="cc" 5089 fi 5090 5091 ;; 5092 *-next-openstep*) 5093 5094 if test -z "$CC"; then 5095 test "x$silent" != "xyes" && echo " setting CC to \"cc\"" 5096 CC="cc" 5097 fi 5098 5099 ;; 5100 *-qnx32) 5101 5102 if test -z "$CC"; then 5103 test "x$silent" != "xyes" && echo " setting CC to \"cc -F\"" 5104 CC="cc -F" 5105 fi 5106 5107 ;; 5108 *-tandem-oss) 5109 5110 if test -z "$CC"; then 5111 test "x$silent" != "xyes" && echo " setting CC to \"c89\"" 5112 CC="c89" 5113 fi 5114 5115 ;; 5116 TPF) 5117 5118 if test -z "$CC"; then 5119 test "x$silent" != "xyes" && echo " setting CC to \"c89\"" 5120 CC="c89" 5121 fi 5122 5123 ;; 5124esac 5125 5126 5127ac_ext=c 5128ac_cpp='$CPP $CPPFLAGS' 5129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5131ac_compiler_gnu=$ac_cv_c_compiler_gnu 5132if test -n "$ac_tool_prefix"; then 5133 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5134set dummy ${ac_tool_prefix}gcc; ac_word=$2 5135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5136$as_echo_n "checking for $ac_word... " >&6; } 5137if ${ac_cv_prog_CC+:} false; then : 5138 $as_echo_n "(cached) " >&6 5139else 5140 if test -n "$CC"; then 5141 ac_cv_prog_CC="$CC" # Let the user override the test. 5142else 5143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5144for as_dir in $PATH 5145do 5146 IFS=$as_save_IFS 5147 test -z "$as_dir" && as_dir=. 5148 for ac_exec_ext in '' $ac_executable_extensions; do 5149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5150 ac_cv_prog_CC="${ac_tool_prefix}gcc" 5151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5152 break 2 5153 fi 5154done 5155 done 5156IFS=$as_save_IFS 5157 5158fi 5159fi 5160CC=$ac_cv_prog_CC 5161if test -n "$CC"; then 5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5163$as_echo "$CC" >&6; } 5164else 5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5166$as_echo "no" >&6; } 5167fi 5168 5169 5170fi 5171if test -z "$ac_cv_prog_CC"; then 5172 ac_ct_CC=$CC 5173 # Extract the first word of "gcc", so it can be a program name with args. 5174set dummy gcc; ac_word=$2 5175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5176$as_echo_n "checking for $ac_word... " >&6; } 5177if ${ac_cv_prog_ac_ct_CC+:} false; then : 5178 $as_echo_n "(cached) " >&6 5179else 5180 if test -n "$ac_ct_CC"; then 5181 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5182else 5183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5184for as_dir in $PATH 5185do 5186 IFS=$as_save_IFS 5187 test -z "$as_dir" && as_dir=. 5188 for ac_exec_ext in '' $ac_executable_extensions; do 5189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5190 ac_cv_prog_ac_ct_CC="gcc" 5191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5192 break 2 5193 fi 5194done 5195 done 5196IFS=$as_save_IFS 5197 5198fi 5199fi 5200ac_ct_CC=$ac_cv_prog_ac_ct_CC 5201if test -n "$ac_ct_CC"; then 5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5203$as_echo "$ac_ct_CC" >&6; } 5204else 5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5206$as_echo "no" >&6; } 5207fi 5208 5209 if test "x$ac_ct_CC" = x; then 5210 CC="" 5211 else 5212 case $cross_compiling:$ac_tool_warned in 5213yes:) 5214{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5215$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5216ac_tool_warned=yes ;; 5217esac 5218 CC=$ac_ct_CC 5219 fi 5220else 5221 CC="$ac_cv_prog_CC" 5222fi 5223 5224if test -z "$CC"; then 5225 if test -n "$ac_tool_prefix"; then 5226 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5227set dummy ${ac_tool_prefix}cc; ac_word=$2 5228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5229$as_echo_n "checking for $ac_word... " >&6; } 5230if ${ac_cv_prog_CC+:} false; then : 5231 $as_echo_n "(cached) " >&6 5232else 5233 if test -n "$CC"; then 5234 ac_cv_prog_CC="$CC" # Let the user override the test. 5235else 5236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5237for as_dir in $PATH 5238do 5239 IFS=$as_save_IFS 5240 test -z "$as_dir" && as_dir=. 5241 for ac_exec_ext in '' $ac_executable_extensions; do 5242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5243 ac_cv_prog_CC="${ac_tool_prefix}cc" 5244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5245 break 2 5246 fi 5247done 5248 done 5249IFS=$as_save_IFS 5250 5251fi 5252fi 5253CC=$ac_cv_prog_CC 5254if test -n "$CC"; then 5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5256$as_echo "$CC" >&6; } 5257else 5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5259$as_echo "no" >&6; } 5260fi 5261 5262 5263 fi 5264fi 5265if test -z "$CC"; then 5266 # Extract the first word of "cc", so it can be a program name with args. 5267set dummy cc; ac_word=$2 5268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5269$as_echo_n "checking for $ac_word... " >&6; } 5270if ${ac_cv_prog_CC+:} false; then : 5271 $as_echo_n "(cached) " >&6 5272else 5273 if test -n "$CC"; then 5274 ac_cv_prog_CC="$CC" # Let the user override the test. 5275else 5276 ac_prog_rejected=no 5277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5278for as_dir in $PATH 5279do 5280 IFS=$as_save_IFS 5281 test -z "$as_dir" && as_dir=. 5282 for ac_exec_ext in '' $ac_executable_extensions; do 5283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5284 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5285 ac_prog_rejected=yes 5286 continue 5287 fi 5288 ac_cv_prog_CC="cc" 5289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5290 break 2 5291 fi 5292done 5293 done 5294IFS=$as_save_IFS 5295 5296if test $ac_prog_rejected = yes; then 5297 # We found a bogon in the path, so make sure we never use it. 5298 set dummy $ac_cv_prog_CC 5299 shift 5300 if test $# != 0; then 5301 # We chose a different compiler from the bogus one. 5302 # However, it has the same basename, so the bogon will be chosen 5303 # first if we set CC to just the basename; use the full file name. 5304 shift 5305 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 5306 fi 5307fi 5308fi 5309fi 5310CC=$ac_cv_prog_CC 5311if test -n "$CC"; then 5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5313$as_echo "$CC" >&6; } 5314else 5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5316$as_echo "no" >&6; } 5317fi 5318 5319 5320fi 5321if test -z "$CC"; then 5322 if test -n "$ac_tool_prefix"; then 5323 for ac_prog in cl.exe 5324 do 5325 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5326set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5328$as_echo_n "checking for $ac_word... " >&6; } 5329if ${ac_cv_prog_CC+:} false; then : 5330 $as_echo_n "(cached) " >&6 5331else 5332 if test -n "$CC"; then 5333 ac_cv_prog_CC="$CC" # Let the user override the test. 5334else 5335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5336for as_dir in $PATH 5337do 5338 IFS=$as_save_IFS 5339 test -z "$as_dir" && as_dir=. 5340 for ac_exec_ext in '' $ac_executable_extensions; do 5341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5342 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5344 break 2 5345 fi 5346done 5347 done 5348IFS=$as_save_IFS 5349 5350fi 5351fi 5352CC=$ac_cv_prog_CC 5353if test -n "$CC"; then 5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5355$as_echo "$CC" >&6; } 5356else 5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5358$as_echo "no" >&6; } 5359fi 5360 5361 5362 test -n "$CC" && break 5363 done 5364fi 5365if test -z "$CC"; then 5366 ac_ct_CC=$CC 5367 for ac_prog in cl.exe 5368do 5369 # Extract the first word of "$ac_prog", so it can be a program name with args. 5370set dummy $ac_prog; ac_word=$2 5371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5372$as_echo_n "checking for $ac_word... " >&6; } 5373if ${ac_cv_prog_ac_ct_CC+:} false; then : 5374 $as_echo_n "(cached) " >&6 5375else 5376 if test -n "$ac_ct_CC"; then 5377 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5378else 5379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5380for as_dir in $PATH 5381do 5382 IFS=$as_save_IFS 5383 test -z "$as_dir" && as_dir=. 5384 for ac_exec_ext in '' $ac_executable_extensions; do 5385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5386 ac_cv_prog_ac_ct_CC="$ac_prog" 5387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5388 break 2 5389 fi 5390done 5391 done 5392IFS=$as_save_IFS 5393 5394fi 5395fi 5396ac_ct_CC=$ac_cv_prog_ac_ct_CC 5397if test -n "$ac_ct_CC"; then 5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5399$as_echo "$ac_ct_CC" >&6; } 5400else 5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5402$as_echo "no" >&6; } 5403fi 5404 5405 5406 test -n "$ac_ct_CC" && break 5407done 5408 5409 if test "x$ac_ct_CC" = x; then 5410 CC="" 5411 else 5412 case $cross_compiling:$ac_tool_warned in 5413yes:) 5414{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5415$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5416ac_tool_warned=yes ;; 5417esac 5418 CC=$ac_ct_CC 5419 fi 5420fi 5421 5422fi 5423 5424 5425test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5426$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5427as_fn_error $? "no acceptable C compiler found in \$PATH 5428See \`config.log' for more details" "$LINENO" 5; } 5429 5430# Provide some information about the compiler. 5431$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5432set X $ac_compile 5433ac_compiler=$2 5434for ac_option in --version -v -V -qversion; do 5435 { { ac_try="$ac_compiler $ac_option >&5" 5436case "(($ac_try" in 5437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5438 *) ac_try_echo=$ac_try;; 5439esac 5440eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5441$as_echo "$ac_try_echo"; } >&5 5442 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5443 ac_status=$? 5444 if test -s conftest.err; then 5445 sed '10a\ 5446... rest of stderr output deleted ... 5447 10q' conftest.err >conftest.er1 5448 cat conftest.er1 >&5 5449 fi 5450 rm -f conftest.er1 conftest.err 5451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5452 test $ac_status = 0; } 5453done 5454 5455cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5456/* end confdefs.h. */ 5457 5458int 5459main () 5460{ 5461 5462 ; 5463 return 0; 5464} 5465_ACEOF 5466ac_clean_files_save=$ac_clean_files 5467ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 5468# Try to create an executable without -o first, disregard a.out. 5469# It will help us diagnose broken compilers, and finding out an intuition 5470# of exeext. 5471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 5472$as_echo_n "checking whether the C compiler works... " >&6; } 5473ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 5474 5475# The possible output files: 5476ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 5477 5478ac_rmfiles= 5479for ac_file in $ac_files 5480do 5481 case $ac_file in 5482 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5483 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 5484 esac 5485done 5486rm -f $ac_rmfiles 5487 5488if { { ac_try="$ac_link_default" 5489case "(($ac_try" in 5490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5491 *) ac_try_echo=$ac_try;; 5492esac 5493eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5494$as_echo "$ac_try_echo"; } >&5 5495 (eval "$ac_link_default") 2>&5 5496 ac_status=$? 5497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5498 test $ac_status = 0; }; then : 5499 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 5500# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 5501# in a Makefile. We should not override ac_cv_exeext if it was cached, 5502# so that the user can short-circuit this test for compilers unknown to 5503# Autoconf. 5504for ac_file in $ac_files '' 5505do 5506 test -f "$ac_file" || continue 5507 case $ac_file in 5508 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 5509 ;; 5510 [ab].out ) 5511 # We found the default executable, but exeext='' is most 5512 # certainly right. 5513 break;; 5514 *.* ) 5515 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 5516 then :; else 5517 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5518 fi 5519 # We set ac_cv_exeext here because the later test for it is not 5520 # safe: cross compilers may not add the suffix if given an `-o' 5521 # argument, so we may need to know it at that point already. 5522 # Even if this section looks crufty: it has the advantage of 5523 # actually working. 5524 break;; 5525 * ) 5526 break;; 5527 esac 5528done 5529test "$ac_cv_exeext" = no && ac_cv_exeext= 5530 5531else 5532 ac_file='' 5533fi 5534if test -z "$ac_file"; then : 5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5536$as_echo "no" >&6; } 5537$as_echo "$as_me: failed program was:" >&5 5538sed 's/^/| /' conftest.$ac_ext >&5 5539 5540{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5542as_fn_error 77 "C compiler cannot create executables 5543See \`config.log' for more details" "$LINENO" 5; } 5544else 5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5546$as_echo "yes" >&6; } 5547fi 5548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 5549$as_echo_n "checking for C compiler default output file name... " >&6; } 5550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 5551$as_echo "$ac_file" >&6; } 5552ac_exeext=$ac_cv_exeext 5553 5554rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 5555ac_clean_files=$ac_clean_files_save 5556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 5557$as_echo_n "checking for suffix of executables... " >&6; } 5558if { { ac_try="$ac_link" 5559case "(($ac_try" in 5560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5561 *) ac_try_echo=$ac_try;; 5562esac 5563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5564$as_echo "$ac_try_echo"; } >&5 5565 (eval "$ac_link") 2>&5 5566 ac_status=$? 5567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5568 test $ac_status = 0; }; then : 5569 # If both `conftest.exe' and `conftest' are `present' (well, observable) 5570# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 5571# work properly (i.e., refer to `conftest.exe'), while it won't with 5572# `rm'. 5573for ac_file in conftest.exe conftest conftest.*; do 5574 test -f "$ac_file" || continue 5575 case $ac_file in 5576 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5577 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5578 break;; 5579 * ) break;; 5580 esac 5581done 5582else 5583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5585as_fn_error $? "cannot compute suffix of executables: cannot compile and link 5586See \`config.log' for more details" "$LINENO" 5; } 5587fi 5588rm -f conftest conftest$ac_cv_exeext 5589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 5590$as_echo "$ac_cv_exeext" >&6; } 5591 5592rm -f conftest.$ac_ext 5593EXEEXT=$ac_cv_exeext 5594ac_exeext=$EXEEXT 5595cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5596/* end confdefs.h. */ 5597#include <stdio.h> 5598int 5599main () 5600{ 5601FILE *f = fopen ("conftest.out", "w"); 5602 return ferror (f) || fclose (f) != 0; 5603 5604 ; 5605 return 0; 5606} 5607_ACEOF 5608ac_clean_files="$ac_clean_files conftest.out" 5609# Check that the compiler produces executables we can run. If not, either 5610# the compiler is broken, or we cross compile. 5611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 5612$as_echo_n "checking whether we are cross compiling... " >&6; } 5613if test "$cross_compiling" != yes; then 5614 { { ac_try="$ac_link" 5615case "(($ac_try" in 5616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5617 *) ac_try_echo=$ac_try;; 5618esac 5619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5620$as_echo "$ac_try_echo"; } >&5 5621 (eval "$ac_link") 2>&5 5622 ac_status=$? 5623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5624 test $ac_status = 0; } 5625 if { ac_try='./conftest$ac_cv_exeext' 5626 { { case "(($ac_try" in 5627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5628 *) ac_try_echo=$ac_try;; 5629esac 5630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5631$as_echo "$ac_try_echo"; } >&5 5632 (eval "$ac_try") 2>&5 5633 ac_status=$? 5634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5635 test $ac_status = 0; }; }; then 5636 cross_compiling=no 5637 else 5638 if test "$cross_compiling" = maybe; then 5639 cross_compiling=yes 5640 else 5641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5642$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5643as_fn_error $? "cannot run C compiled programs. 5644If you meant to cross compile, use \`--host'. 5645See \`config.log' for more details" "$LINENO" 5; } 5646 fi 5647 fi 5648fi 5649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 5650$as_echo "$cross_compiling" >&6; } 5651 5652rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 5653ac_clean_files=$ac_clean_files_save 5654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 5655$as_echo_n "checking for suffix of object files... " >&6; } 5656if ${ac_cv_objext+:} false; then : 5657 $as_echo_n "(cached) " >&6 5658else 5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5660/* end confdefs.h. */ 5661 5662int 5663main () 5664{ 5665 5666 ; 5667 return 0; 5668} 5669_ACEOF 5670rm -f conftest.o conftest.obj 5671if { { ac_try="$ac_compile" 5672case "(($ac_try" in 5673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5674 *) ac_try_echo=$ac_try;; 5675esac 5676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5677$as_echo "$ac_try_echo"; } >&5 5678 (eval "$ac_compile") 2>&5 5679 ac_status=$? 5680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5681 test $ac_status = 0; }; then : 5682 for ac_file in conftest.o conftest.obj conftest.*; do 5683 test -f "$ac_file" || continue; 5684 case $ac_file in 5685 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 5686 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 5687 break;; 5688 esac 5689done 5690else 5691 $as_echo "$as_me: failed program was:" >&5 5692sed 's/^/| /' conftest.$ac_ext >&5 5693 5694{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5695$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5696as_fn_error $? "cannot compute suffix of object files: cannot compile 5697See \`config.log' for more details" "$LINENO" 5; } 5698fi 5699rm -f conftest.$ac_cv_objext conftest.$ac_ext 5700fi 5701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 5702$as_echo "$ac_cv_objext" >&6; } 5703OBJEXT=$ac_cv_objext 5704ac_objext=$OBJEXT 5705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5706$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5707if ${ac_cv_c_compiler_gnu+:} false; then : 5708 $as_echo_n "(cached) " >&6 5709else 5710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5711/* end confdefs.h. */ 5712 5713int 5714main () 5715{ 5716#ifndef __GNUC__ 5717 choke me 5718#endif 5719 5720 ; 5721 return 0; 5722} 5723_ACEOF 5724if ac_fn_c_try_compile "$LINENO"; then : 5725 ac_compiler_gnu=yes 5726else 5727 ac_compiler_gnu=no 5728fi 5729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5730ac_cv_c_compiler_gnu=$ac_compiler_gnu 5731 5732fi 5733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5734$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5735if test $ac_compiler_gnu = yes; then 5736 GCC=yes 5737else 5738 GCC= 5739fi 5740ac_test_CFLAGS=${CFLAGS+set} 5741ac_save_CFLAGS=$CFLAGS 5742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5743$as_echo_n "checking whether $CC accepts -g... " >&6; } 5744if ${ac_cv_prog_cc_g+:} false; then : 5745 $as_echo_n "(cached) " >&6 5746else 5747 ac_save_c_werror_flag=$ac_c_werror_flag 5748 ac_c_werror_flag=yes 5749 ac_cv_prog_cc_g=no 5750 CFLAGS="-g" 5751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5752/* end confdefs.h. */ 5753 5754int 5755main () 5756{ 5757 5758 ; 5759 return 0; 5760} 5761_ACEOF 5762if ac_fn_c_try_compile "$LINENO"; then : 5763 ac_cv_prog_cc_g=yes 5764else 5765 CFLAGS="" 5766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5767/* end confdefs.h. */ 5768 5769int 5770main () 5771{ 5772 5773 ; 5774 return 0; 5775} 5776_ACEOF 5777if ac_fn_c_try_compile "$LINENO"; then : 5778 5779else 5780 ac_c_werror_flag=$ac_save_c_werror_flag 5781 CFLAGS="-g" 5782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5783/* end confdefs.h. */ 5784 5785int 5786main () 5787{ 5788 5789 ; 5790 return 0; 5791} 5792_ACEOF 5793if ac_fn_c_try_compile "$LINENO"; then : 5794 ac_cv_prog_cc_g=yes 5795fi 5796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5797fi 5798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5799fi 5800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5801 ac_c_werror_flag=$ac_save_c_werror_flag 5802fi 5803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5804$as_echo "$ac_cv_prog_cc_g" >&6; } 5805if test "$ac_test_CFLAGS" = set; then 5806 CFLAGS=$ac_save_CFLAGS 5807elif test $ac_cv_prog_cc_g = yes; then 5808 if test "$GCC" = yes; then 5809 CFLAGS="-g -O2" 5810 else 5811 CFLAGS="-g" 5812 fi 5813else 5814 if test "$GCC" = yes; then 5815 CFLAGS="-O2" 5816 else 5817 CFLAGS= 5818 fi 5819fi 5820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5821$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5822if ${ac_cv_prog_cc_c89+:} false; then : 5823 $as_echo_n "(cached) " >&6 5824else 5825 ac_cv_prog_cc_c89=no 5826ac_save_CC=$CC 5827cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5828/* end confdefs.h. */ 5829#include <stdarg.h> 5830#include <stdio.h> 5831struct stat; 5832/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5833struct buf { int x; }; 5834FILE * (*rcsopen) (struct buf *, struct stat *, int); 5835static char *e (p, i) 5836 char **p; 5837 int i; 5838{ 5839 return p[i]; 5840} 5841static char *f (char * (*g) (char **, int), char **p, ...) 5842{ 5843 char *s; 5844 va_list v; 5845 va_start (v,p); 5846 s = g (p, va_arg (v,int)); 5847 va_end (v); 5848 return s; 5849} 5850 5851/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5852 function prototypes and stuff, but not '\xHH' hex character constants. 5853 These don't provoke an error unfortunately, instead are silently treated 5854 as 'x'. The following induces an error, until -std is added to get 5855 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5856 array size at least. It's necessary to write '\x00'==0 to get something 5857 that's true only with -std. */ 5858int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5859 5860/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5861 inside strings and character constants. */ 5862#define FOO(x) 'x' 5863int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5864 5865int test (int i, double x); 5866struct s1 {int (*f) (int a);}; 5867struct s2 {int (*f) (double a);}; 5868int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5869int argc; 5870char **argv; 5871int 5872main () 5873{ 5874return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5875 ; 5876 return 0; 5877} 5878_ACEOF 5879for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5880 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5881do 5882 CC="$ac_save_CC $ac_arg" 5883 if ac_fn_c_try_compile "$LINENO"; then : 5884 ac_cv_prog_cc_c89=$ac_arg 5885fi 5886rm -f core conftest.err conftest.$ac_objext 5887 test "x$ac_cv_prog_cc_c89" != "xno" && break 5888done 5889rm -f conftest.$ac_ext 5890CC=$ac_save_CC 5891 5892fi 5893# AC_CACHE_VAL 5894case "x$ac_cv_prog_cc_c89" in 5895 x) 5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5897$as_echo "none needed" >&6; } ;; 5898 xno) 5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5900$as_echo "unsupported" >&6; } ;; 5901 *) 5902 CC="$CC $ac_cv_prog_cc_c89" 5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5904$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5905esac 5906if test "x$ac_cv_prog_cc_c89" != xno; then : 5907 5908fi 5909 5910ac_ext=c 5911ac_cpp='$CPP $CPPFLAGS' 5912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5914ac_compiler_gnu=$ac_cv_c_compiler_gnu 5915 5916 5917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5918$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5919if ${ac_cv_path_SED+:} false; then : 5920 $as_echo_n "(cached) " >&6 5921else 5922 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5923 for ac_i in 1 2 3 4 5 6 7; do 5924 ac_script="$ac_script$as_nl$ac_script" 5925 done 5926 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5927 { ac_script=; unset ac_script;} 5928 if test -z "$SED"; then 5929 ac_path_SED_found=false 5930 # Loop through the user's path and test for each of PROGNAME-LIST 5931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5932for as_dir in $PATH 5933do 5934 IFS=$as_save_IFS 5935 test -z "$as_dir" && as_dir=. 5936 for ac_prog in sed gsed; do 5937 for ac_exec_ext in '' $ac_executable_extensions; do 5938 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5939 as_fn_executable_p "$ac_path_SED" || continue 5940# Check for GNU ac_path_SED and select it if it is found. 5941 # Check for GNU $ac_path_SED 5942case `"$ac_path_SED" --version 2>&1` in 5943*GNU*) 5944 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5945*) 5946 ac_count=0 5947 $as_echo_n 0123456789 >"conftest.in" 5948 while : 5949 do 5950 cat "conftest.in" "conftest.in" >"conftest.tmp" 5951 mv "conftest.tmp" "conftest.in" 5952 cp "conftest.in" "conftest.nl" 5953 $as_echo '' >> "conftest.nl" 5954 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5955 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5956 as_fn_arith $ac_count + 1 && ac_count=$as_val 5957 if test $ac_count -gt ${ac_path_SED_max-0}; then 5958 # Best one so far, save it but keep looking for a better one 5959 ac_cv_path_SED="$ac_path_SED" 5960 ac_path_SED_max=$ac_count 5961 fi 5962 # 10*(2^10) chars as input seems more than enough 5963 test $ac_count -gt 10 && break 5964 done 5965 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5966esac 5967 5968 $ac_path_SED_found && break 3 5969 done 5970 done 5971 done 5972IFS=$as_save_IFS 5973 if test -z "$ac_cv_path_SED"; then 5974 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5975 fi 5976else 5977 ac_cv_path_SED=$SED 5978fi 5979 5980fi 5981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5982$as_echo "$ac_cv_path_SED" >&6; } 5983 SED="$ac_cv_path_SED" 5984 rm -f conftest.sed 5985 5986 5987 5988if test "x$apr_preload_done" != "xyes" ; then 5989 5990 apr_preload_done="yes" 5991 5992 echo "Applying APR hints file rules for $host" 5993 5994 case "$host" in 5995 *mint) 5996 5997 if test "x$CPPFLAGS" = "x"; then 5998 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DMINT -D_GNU_SOURCE\"" 5999 CPPFLAGS="-DMINT -D_GNU_SOURCE" 6000 else 6001 apr_addto_bugger="-DMINT -D_GNU_SOURCE" 6002 for i in $apr_addto_bugger; do 6003 apr_addto_duplicate="0" 6004 for j in $CPPFLAGS; do 6005 if test "x$i" = "x$j"; then 6006 apr_addto_duplicate="1" 6007 break 6008 fi 6009 done 6010 if test $apr_addto_duplicate = "0"; then 6011 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 6012 CPPFLAGS="$CPPFLAGS $i" 6013 fi 6014 done 6015 fi 6016 6017 ;; 6018 *MPE/iX*) 6019 6020 if test "x$CPPFLAGS" = "x"; then 6021 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE\"" 6022 CPPFLAGS="-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE" 6023 else 6024 apr_addto_bugger="-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE" 6025 for i in $apr_addto_bugger; do 6026 apr_addto_duplicate="0" 6027 for j in $CPPFLAGS; do 6028 if test "x$i" = "x$j"; then 6029 apr_addto_duplicate="1" 6030 break 6031 fi 6032 done 6033 if test $apr_addto_duplicate = "0"; then 6034 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 6035 CPPFLAGS="$CPPFLAGS $i" 6036 fi 6037 done 6038 fi 6039 6040 6041 if test "x$LIBS" = "x"; then 6042 test "x$silent" != "xyes" && echo " setting LIBS to \"-lsvipc -lcurses\"" 6043 LIBS="-lsvipc -lcurses" 6044 else 6045 apr_addto_bugger="-lsvipc -lcurses" 6046 for i in $apr_addto_bugger; do 6047 apr_addto_duplicate="0" 6048 for j in $LIBS; do 6049 if test "x$i" = "x$j"; then 6050 apr_addto_duplicate="1" 6051 break 6052 fi 6053 done 6054 if test $apr_addto_duplicate = "0"; then 6055 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 6056 LIBS="$LIBS $i" 6057 fi 6058 done 6059 fi 6060 6061 6062 if test "x$LDFLAGS" = "x"; then 6063 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\"\"" 6064 LDFLAGS="-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\"" 6065 else 6066 apr_addto_bugger="-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\"" 6067 for i in $apr_addto_bugger; do 6068 apr_addto_duplicate="0" 6069 for j in $LDFLAGS; do 6070 if test "x$i" = "x$j"; then 6071 apr_addto_duplicate="1" 6072 break 6073 fi 6074 done 6075 if test $apr_addto_duplicate = "0"; then 6076 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 6077 LDFLAGS="$LDFLAGS $i" 6078 fi 6079 done 6080 fi 6081 6082 ;; 6083 *-apple-aux3*) 6084 6085 if test "x$CPPFLAGS" = "x"; then 6086 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DAUX3 -D_POSIX_SOURCE\"" 6087 CPPFLAGS="-DAUX3 -D_POSIX_SOURCE" 6088 else 6089 apr_addto_bugger="-DAUX3 -D_POSIX_SOURCE" 6090 for i in $apr_addto_bugger; do 6091 apr_addto_duplicate="0" 6092 for j in $CPPFLAGS; do 6093 if test "x$i" = "x$j"; then 6094 apr_addto_duplicate="1" 6095 break 6096 fi 6097 done 6098 if test $apr_addto_duplicate = "0"; then 6099 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 6100 CPPFLAGS="$CPPFLAGS $i" 6101 fi 6102 done 6103 fi 6104 6105 6106 if test "x$LIBS" = "x"; then 6107 test "x$silent" != "xyes" && echo " setting LIBS to \"-lposix -lbsd\"" 6108 LIBS="-lposix -lbsd" 6109 else 6110 apr_addto_bugger="-lposix -lbsd" 6111 for i in $apr_addto_bugger; do 6112 apr_addto_duplicate="0" 6113 for j in $LIBS; do 6114 if test "x$i" = "x$j"; then 6115 apr_addto_duplicate="1" 6116 break 6117 fi 6118 done 6119 if test $apr_addto_duplicate = "0"; then 6120 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 6121 LIBS="$LIBS $i" 6122 fi 6123 done 6124 fi 6125 6126 6127 if test "x$LDFLAGS" = "x"; then 6128 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-s\"" 6129 LDFLAGS="-s" 6130 else 6131 apr_addto_bugger="-s" 6132 for i in $apr_addto_bugger; do 6133 apr_addto_duplicate="0" 6134 for j in $LDFLAGS; do 6135 if test "x$i" = "x$j"; then 6136 apr_addto_duplicate="1" 6137 break 6138 fi 6139 done 6140 if test $apr_addto_duplicate = "0"; then 6141 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 6142 LDFLAGS="$LDFLAGS $i" 6143 fi 6144 done 6145 fi 6146 6147 6148 test "x$silent" != "xyes" && echo " forcing SHELL to \"/bin/ksh\"" 6149 SHELL="/bin/ksh" 6150 6151 ;; 6152 *-ibm-aix*) 6153 6154 if test "x$CPPFLAGS" = "x"; then 6155 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-U__STR__ -D_THREAD_SAFE\"" 6156 CPPFLAGS="-U__STR__ -D_THREAD_SAFE" 6157 else 6158 apr_addto_bugger="-U__STR__ -D_THREAD_SAFE" 6159 for i in $apr_addto_bugger; do 6160 apr_addto_duplicate="0" 6161 for j in $CPPFLAGS; do 6162 if test "x$i" = "x$j"; then 6163 apr_addto_duplicate="1" 6164 break 6165 fi 6166 done 6167 if test $apr_addto_duplicate = "0"; then 6168 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 6169 CPPFLAGS="$CPPFLAGS $i" 6170 fi 6171 done 6172 fi 6173 6174 case $host in 6175 *-ibm-aix4.3) 6176 6177 if test "x$CPPFLAGS" = "x"; then 6178 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_USE_IRS\"" 6179 CPPFLAGS="-D_USE_IRS" 6180 else 6181 apr_addto_bugger="-D_USE_IRS" 6182 for i in $apr_addto_bugger; do 6183 apr_addto_duplicate="0" 6184 for j in $CPPFLAGS; do 6185 if test "x$i" = "x$j"; then 6186 apr_addto_duplicate="1" 6187 break 6188 fi 6189 done 6190 if test $apr_addto_duplicate = "0"; then 6191 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 6192 CPPFLAGS="$CPPFLAGS $i" 6193 fi 6194 done 6195 fi 6196 6197 ;; 6198 *-ibm-aix5*) 6199 6200 if test "x$CPPFLAGS" = "x"; then 6201 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_USE_IRS\"" 6202 CPPFLAGS="-D_USE_IRS" 6203 else 6204 apr_addto_bugger="-D_USE_IRS" 6205 for i in $apr_addto_bugger; do 6206 apr_addto_duplicate="0" 6207 for j in $CPPFLAGS; do 6208 if test "x$i" = "x$j"; then 6209 apr_addto_duplicate="1" 6210 break 6211 fi 6212 done 6213 if test $apr_addto_duplicate = "0"; then 6214 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 6215 CPPFLAGS="$CPPFLAGS $i" 6216 fi 6217 done 6218 fi 6219 6220 ;; 6221 *-ibm-aix4.3.*) 6222 6223 if test "x$CPPFLAGS" = "x"; then 6224 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_USE_IRS\"" 6225 CPPFLAGS="-D_USE_IRS" 6226 else 6227 apr_addto_bugger="-D_USE_IRS" 6228 for i in $apr_addto_bugger; do 6229 apr_addto_duplicate="0" 6230 for j in $CPPFLAGS; do 6231 if test "x$i" = "x$j"; then 6232 apr_addto_duplicate="1" 6233 break 6234 fi 6235 done 6236 if test $apr_addto_duplicate = "0"; then 6237 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 6238 CPPFLAGS="$CPPFLAGS $i" 6239 fi 6240 done 6241 fi 6242 6243 ;; 6244 esac 6245 if $CC 2>&1 | grep 'xlc' > /dev/null; then 6246 6247 if test -z "$AIX_XLC"; then 6248 test "x$silent" != "xyes" && echo " setting AIX_XLC to \"yes\"" 6249 AIX_XLC="yes" 6250 fi 6251 6252 6253 if test "x$CFLAGS" = "x"; then 6254 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-qHALT=E\"" 6255 CFLAGS="-qHALT=E" 6256 else 6257 apr_addto_bugger="-qHALT=E" 6258 for i in $apr_addto_bugger; do 6259 apr_addto_duplicate="0" 6260 for j in $CFLAGS; do 6261 if test "x$i" = "x$j"; then 6262 apr_addto_duplicate="1" 6263 break 6264 fi 6265 done 6266 if test $apr_addto_duplicate = "0"; then 6267 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS" 6268 CFLAGS="$CFLAGS $i" 6269 fi 6270 done 6271 fi 6272 6273 fi 6274 6275 if test -z "$apr_sysvsem_is_global"; then 6276 test "x$silent" != "xyes" && echo " setting apr_sysvsem_is_global to \"yes\"" 6277 apr_sysvsem_is_global="yes" 6278 fi 6279 6280 6281 if test -z "$apr_lock_method"; then 6282 test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\"" 6283 apr_lock_method="USE_SYSVSEM_SERIALIZE" 6284 fi 6285 6286 case $host in 6287 *-ibm-aix3* | *-ibm-aix4.1.*) 6288 ;; 6289 *) 6290 6291 if test "x$LDFLAGS" = "x"; then 6292 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-Wl,-brtl\"" 6293 LDFLAGS="-Wl,-brtl" 6294 else 6295 apr_addto_bugger="-Wl,-brtl" 6296 for i in $apr_addto_bugger; do 6297 apr_addto_duplicate="0" 6298 for j in $LDFLAGS; do 6299 if test "x$i" = "x$j"; then 6300 apr_addto_duplicate="1" 6301 break 6302 fi 6303 done 6304 if test $apr_addto_duplicate = "0"; then 6305 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 6306 LDFLAGS="$LDFLAGS $i" 6307 fi 6308 done 6309 fi 6310 6311 ;; 6312 esac 6313 ;; 6314 *-apollo-*) 6315 6316 if test "x$CPPFLAGS" = "x"; then 6317 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DAPOLLO\"" 6318 CPPFLAGS="-DAPOLLO" 6319 else 6320 apr_addto_bugger="-DAPOLLO" 6321 for i in $apr_addto_bugger; do 6322 apr_addto_duplicate="0" 6323 for j in $CPPFLAGS; do 6324 if test "x$i" = "x$j"; then 6325 apr_addto_duplicate="1" 6326 break 6327 fi 6328 done 6329 if test $apr_addto_duplicate = "0"; then 6330 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 6331 CPPFLAGS="$CPPFLAGS $i" 6332 fi 6333 done 6334 fi 6335 6336 ;; 6337 *-dg-dgux*) 6338 6339 if test "x$CPPFLAGS" = "x"; then 6340 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DDGUX\"" 6341 CPPFLAGS="-DDGUX" 6342 else 6343 apr_addto_bugger="-DDGUX" 6344 for i in $apr_addto_bugger; do 6345 apr_addto_duplicate="0" 6346 for j in $CPPFLAGS; do 6347 if test "x$i" = "x$j"; then 6348 apr_addto_duplicate="1" 6349 break 6350 fi 6351 done 6352 if test $apr_addto_duplicate = "0"; then 6353 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 6354 CPPFLAGS="$CPPFLAGS $i" 6355 fi 6356 done 6357 fi 6358 6359 ;; 6360 *-os2*) 6361 6362 test "x$silent" != "xyes" && echo " forcing SHELL to \"sh\"" 6363 SHELL="sh" 6364 6365 6366 if test -z "$apr_gethostbyname_is_thread_safe"; then 6367 test "x$silent" != "xyes" && echo " setting apr_gethostbyname_is_thread_safe to \"yes\"" 6368 apr_gethostbyname_is_thread_safe="yes" 6369 fi 6370 6371 6372 if test -z "$apr_gethostbyaddr_is_thread_safe"; then 6373 test "x$silent" != "xyes" && echo " setting apr_gethostbyaddr_is_thread_safe to \"yes\"" 6374 apr_gethostbyaddr_is_thread_safe="yes" 6375 fi 6376 6377 6378 if test -z "$apr_getservbyname_is_thread_safe"; then 6379 test "x$silent" != "xyes" && echo " setting apr_getservbyname_is_thread_safe to \"yes\"" 6380 apr_getservbyname_is_thread_safe="yes" 6381 fi 6382 6383 ;; 6384 *-hi-hiux) 6385 6386 if test "x$CPPFLAGS" = "x"; then 6387 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DHIUX\"" 6388 CPPFLAGS="-DHIUX" 6389 else 6390 apr_addto_bugger="-DHIUX" 6391 for i in $apr_addto_bugger; do 6392 apr_addto_duplicate="0" 6393 for j in $CPPFLAGS; do 6394 if test "x$i" = "x$j"; then 6395 apr_addto_duplicate="1" 6396 break 6397 fi 6398 done 6399 if test $apr_addto_duplicate = "0"; then 6400 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 6401 CPPFLAGS="$CPPFLAGS $i" 6402 fi 6403 done 6404 fi 6405 6406 ;; 6407 *-hp-hpux11.*) 6408 6409 if test "x$CPPFLAGS" = "x"; then 6410 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DHPUX11 -D_REENTRANT -D_HPUX_SOURCE\"" 6411 CPPFLAGS="-DHPUX11 -D_REENTRANT -D_HPUX_SOURCE" 6412 else 6413 apr_addto_bugger="-DHPUX11 -D_REENTRANT -D_HPUX_SOURCE" 6414 for i in $apr_addto_bugger; do 6415 apr_addto_duplicate="0" 6416 for j in $CPPFLAGS; do 6417 if test "x$i" = "x$j"; then 6418 apr_addto_duplicate="1" 6419 break 6420 fi 6421 done 6422 if test $apr_addto_duplicate = "0"; then 6423 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 6424 CPPFLAGS="$CPPFLAGS $i" 6425 fi 6426 done 6427 fi 6428 6429 ;; 6430 *-hp-hpux10.*) 6431 case $host in 6432 *-hp-hpux10.01) 6433 6434 if test "x$CPPFLAGS" = "x"; then 6435 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSELECT_NEEDS_CAST\"" 6436 CPPFLAGS="-DSELECT_NEEDS_CAST" 6437 else 6438 apr_addto_bugger="-DSELECT_NEEDS_CAST" 6439 for i in $apr_addto_bugger; do 6440 apr_addto_duplicate="0" 6441 for j in $CPPFLAGS; do 6442 if test "x$i" = "x$j"; then 6443 apr_addto_duplicate="1" 6444 break 6445 fi 6446 done 6447 if test $apr_addto_duplicate = "0"; then 6448 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 6449 CPPFLAGS="$CPPFLAGS $i" 6450 fi 6451 done 6452 fi 6453 6454 ;; 6455 esac 6456 6457 if test "x$CPPFLAGS" = "x"; then 6458 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_REENTRANT\"" 6459 CPPFLAGS="-D_REENTRANT" 6460 else 6461 apr_addto_bugger="-D_REENTRANT" 6462 for i in $apr_addto_bugger; do 6463 apr_addto_duplicate="0" 6464 for j in $CPPFLAGS; do 6465 if test "x$i" = "x$j"; then 6466 apr_addto_duplicate="1" 6467 break 6468 fi 6469 done 6470 if test $apr_addto_duplicate = "0"; then 6471 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 6472 CPPFLAGS="$CPPFLAGS $i" 6473 fi 6474 done 6475 fi 6476 6477 ;; 6478 *-hp-hpux*) 6479 6480 if test "x$CPPFLAGS" = "x"; then 6481 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DHPUX -D_REENTRANT\"" 6482 CPPFLAGS="-DHPUX -D_REENTRANT" 6483 else 6484 apr_addto_bugger="-DHPUX -D_REENTRANT" 6485 for i in $apr_addto_bugger; do 6486 apr_addto_duplicate="0" 6487 for j in $CPPFLAGS; do 6488 if test "x$i" = "x$j"; then 6489 apr_addto_duplicate="1" 6490 break 6491 fi 6492 done 6493 if test $apr_addto_duplicate = "0"; then 6494 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 6495 CPPFLAGS="$CPPFLAGS $i" 6496 fi 6497 done 6498 fi 6499 6500 ;; 6501 *-linux*) 6502 6503 if test "x$CPPFLAGS" = "x"; then 6504 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DLINUX -D_REENTRANT -D_GNU_SOURCE\"" 6505 CPPFLAGS="-DLINUX -D_REENTRANT -D_GNU_SOURCE" 6506 else 6507 apr_addto_bugger="-DLINUX -D_REENTRANT -D_GNU_SOURCE" 6508 for i in $apr_addto_bugger; do 6509 apr_addto_duplicate="0" 6510 for j in $CPPFLAGS; do 6511 if test "x$i" = "x$j"; then 6512 apr_addto_duplicate="1" 6513 break 6514 fi 6515 done 6516 if test $apr_addto_duplicate = "0"; then 6517 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 6518 CPPFLAGS="$CPPFLAGS $i" 6519 fi 6520 done 6521 fi 6522 6523 ;; 6524 *-lynx-lynxos) 6525 6526 if test "x$CPPFLAGS" = "x"; then 6527 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D__NO_INCLUDE_WARN__ -DLYNXOS\"" 6528 CPPFLAGS="-D__NO_INCLUDE_WARN__ -DLYNXOS" 6529 else 6530 apr_addto_bugger="-D__NO_INCLUDE_WARN__ -DLYNXOS" 6531 for i in $apr_addto_bugger; do 6532 apr_addto_duplicate="0" 6533 for j in $CPPFLAGS; do 6534 if test "x$i" = "x$j"; then 6535 apr_addto_duplicate="1" 6536 break 6537 fi 6538 done 6539 if test $apr_addto_duplicate = "0"; then 6540 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 6541 CPPFLAGS="$CPPFLAGS $i" 6542 fi 6543 done 6544 fi 6545 6546 6547 if test "x$LIBS" = "x"; then 6548 test "x$silent" != "xyes" && echo " setting LIBS to \"-lbsd\"" 6549 LIBS="-lbsd" 6550 else 6551 apr_addto_bugger="-lbsd" 6552 for i in $apr_addto_bugger; do 6553 apr_addto_duplicate="0" 6554 for j in $LIBS; do 6555 if test "x$i" = "x$j"; then 6556 apr_addto_duplicate="1" 6557 break 6558 fi 6559 done 6560 if test $apr_addto_duplicate = "0"; then 6561 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 6562 LIBS="$LIBS $i" 6563 fi 6564 done 6565 fi 6566 6567 ;; 6568 *486-*-bsdi*) 6569 6570 if test "x$CFLAGS" = "x"; then 6571 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-m486\"" 6572 CFLAGS="-m486" 6573 else 6574 apr_addto_bugger="-m486" 6575 for i in $apr_addto_bugger; do 6576 apr_addto_duplicate="0" 6577 for j in $CFLAGS; do 6578 if test "x$i" = "x$j"; then 6579 apr_addto_duplicate="1" 6580 break 6581 fi 6582 done 6583 if test $apr_addto_duplicate = "0"; then 6584 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS" 6585 CFLAGS="$CFLAGS $i" 6586 fi 6587 done 6588 fi 6589 6590 ;; 6591 *-*-bsdi*) 6592 case $host in 6593 *bsdi4.1) 6594 6595 if test "x$CFLAGS" = "x"; then 6596 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-D_REENTRANT\"" 6597 CFLAGS="-D_REENTRANT" 6598 else 6599 apr_addto_bugger="-D_REENTRANT" 6600 for i in $apr_addto_bugger; do 6601 apr_addto_duplicate="0" 6602 for j in $CFLAGS; do 6603 if test "x$i" = "x$j"; then 6604 apr_addto_duplicate="1" 6605 break 6606 fi 6607 done 6608 if test $apr_addto_duplicate = "0"; then 6609 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS" 6610 CFLAGS="$CFLAGS $i" 6611 fi 6612 done 6613 fi 6614 6615 ;; 6616 esac 6617 ;; 6618 *-openbsd*) 6619 6620 if test "x$CPPFLAGS" = "x"; then 6621 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_POSIX_THREADS\"" 6622 CPPFLAGS="-D_POSIX_THREADS" 6623 else 6624 apr_addto_bugger="-D_POSIX_THREADS" 6625 for i in $apr_addto_bugger; do 6626 apr_addto_duplicate="0" 6627 for j in $CPPFLAGS; do 6628 if test "x$i" = "x$j"; then 6629 apr_addto_duplicate="1" 6630 break 6631 fi 6632 done 6633 if test $apr_addto_duplicate = "0"; then 6634 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 6635 CPPFLAGS="$CPPFLAGS $i" 6636 fi 6637 done 6638 fi 6639 6640 # binding to an ephemeral port fails on OpenBSD so override 6641 # the test for O_NONBLOCK inheritance across accept(). 6642 6643 if test -z "$ac_cv_o_nonblock_inherited"; then 6644 test "x$silent" != "xyes" && echo " setting ac_cv_o_nonblock_inherited to \"yes\"" 6645 ac_cv_o_nonblock_inherited="yes" 6646 fi 6647 6648 ;; 6649 *-netbsd*) 6650 6651 if test "x$CPPFLAGS" = "x"; then 6652 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DNETBSD\"" 6653 CPPFLAGS="-DNETBSD" 6654 else 6655 apr_addto_bugger="-DNETBSD" 6656 for i in $apr_addto_bugger; do 6657 apr_addto_duplicate="0" 6658 for j in $CPPFLAGS; do 6659 if test "x$i" = "x$j"; then 6660 apr_addto_duplicate="1" 6661 break 6662 fi 6663 done 6664 if test $apr_addto_duplicate = "0"; then 6665 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 6666 CPPFLAGS="$CPPFLAGS $i" 6667 fi 6668 done 6669 fi 6670 6671 # fcntl() lies about O_NONBLOCK on an accept()ed socket (PR kern/26950) 6672 6673 if test -z "$ac_cv_o_nonblock_inherited"; then 6674 test "x$silent" != "xyes" && echo " setting ac_cv_o_nonblock_inherited to \"yes\"" 6675 ac_cv_o_nonblock_inherited="yes" 6676 fi 6677 6678 ;; 6679 *-freebsd*) 6680 6681 if test -z "$apr_lock_method"; then 6682 test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_FLOCK_SERIALIZE\"" 6683 apr_lock_method="USE_FLOCK_SERIALIZE" 6684 fi 6685 6686 if test -x /sbin/sysctl; then 6687 os_version=`/sbin/sysctl -n kern.osreldate` 6688 else 6689 os_version=000000 6690 fi 6691 # 502102 is when libc_r switched to libpthread (aka libkse). 6692 if test $os_version -ge "502102"; then 6693 apr_cv_pthreads_cflags="none" 6694 apr_cv_pthreads_lib="-lpthread" 6695 else 6696 6697 if test "x$CPPFLAGS" = "x"; then 6698 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_THREAD_SAFE -D_REENTRANT\"" 6699 CPPFLAGS="-D_THREAD_SAFE -D_REENTRANT" 6700 else 6701 apr_addto_bugger="-D_THREAD_SAFE -D_REENTRANT" 6702 for i in $apr_addto_bugger; do 6703 apr_addto_duplicate="0" 6704 for j in $CPPFLAGS; do 6705 if test "x$i" = "x$j"; then 6706 apr_addto_duplicate="1" 6707 break 6708 fi 6709 done 6710 if test $apr_addto_duplicate = "0"; then 6711 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 6712 CPPFLAGS="$CPPFLAGS $i" 6713 fi 6714 done 6715 fi 6716 6717 6718 if test -z "$enable_threads"; then 6719 test "x$silent" != "xyes" && echo " setting enable_threads to \"no\"" 6720 enable_threads="no" 6721 fi 6722 6723 fi 6724 # prevent use of KQueue before FreeBSD 4.8 6725 if test $os_version -lt "480000"; then 6726 6727 if test -z "$ac_cv_func_kqueue"; then 6728 test "x$silent" != "xyes" && echo " setting ac_cv_func_kqueue to \"no\"" 6729 ac_cv_func_kqueue="no" 6730 fi 6731 6732 fi 6733 ;; 6734 *-k*bsd*-gnu) 6735 6736 if test "x$CPPFLAGS" = "x"; then 6737 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_REENTRANT -D_GNU_SOURCE\"" 6738 CPPFLAGS="-D_REENTRANT -D_GNU_SOURCE" 6739 else 6740 apr_addto_bugger="-D_REENTRANT -D_GNU_SOURCE" 6741 for i in $apr_addto_bugger; do 6742 apr_addto_duplicate="0" 6743 for j in $CPPFLAGS; do 6744 if test "x$i" = "x$j"; then 6745 apr_addto_duplicate="1" 6746 break 6747 fi 6748 done 6749 if test $apr_addto_duplicate = "0"; then 6750 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 6751 CPPFLAGS="$CPPFLAGS $i" 6752 fi 6753 done 6754 fi 6755 6756 ;; 6757 *-gnu*|*-GNU*) 6758 6759 if test "x$CPPFLAGS" = "x"; then 6760 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_REENTRANT -D_GNU_SOURCE -DHURD\"" 6761 CPPFLAGS="-D_REENTRANT -D_GNU_SOURCE -DHURD" 6762 else 6763 apr_addto_bugger="-D_REENTRANT -D_GNU_SOURCE -DHURD" 6764 for i in $apr_addto_bugger; do 6765 apr_addto_duplicate="0" 6766 for j in $CPPFLAGS; do 6767 if test "x$i" = "x$j"; then 6768 apr_addto_duplicate="1" 6769 break 6770 fi 6771 done 6772 if test $apr_addto_duplicate = "0"; then 6773 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 6774 CPPFLAGS="$CPPFLAGS $i" 6775 fi 6776 done 6777 fi 6778 6779 ;; 6780 *-next-nextstep*) 6781 6782 if test -z "$CFLAGS"; then 6783 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O\"" 6784 CFLAGS="-O" 6785 fi 6786 6787 6788 if test "x$CPPFLAGS" = "x"; then 6789 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DNEXT\"" 6790 CPPFLAGS="-DNEXT" 6791 else 6792 apr_addto_bugger="-DNEXT" 6793 for i in $apr_addto_bugger; do 6794 apr_addto_duplicate="0" 6795 for j in $CPPFLAGS; do 6796 if test "x$i" = "x$j"; then 6797 apr_addto_duplicate="1" 6798 break 6799 fi 6800 done 6801 if test $apr_addto_duplicate = "0"; then 6802 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 6803 CPPFLAGS="$CPPFLAGS $i" 6804 fi 6805 done 6806 fi 6807 6808 ;; 6809 *-next-openstep*) 6810 6811 if test -z "$CFLAGS"; then 6812 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O\"" 6813 CFLAGS="-O" 6814 fi 6815 6816 6817 if test "x$CPPFLAGS" = "x"; then 6818 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DNEXT\"" 6819 CPPFLAGS="-DNEXT" 6820 else 6821 apr_addto_bugger="-DNEXT" 6822 for i in $apr_addto_bugger; do 6823 apr_addto_duplicate="0" 6824 for j in $CPPFLAGS; do 6825 if test "x$i" = "x$j"; then 6826 apr_addto_duplicate="1" 6827 break 6828 fi 6829 done 6830 if test $apr_addto_duplicate = "0"; then 6831 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 6832 CPPFLAGS="$CPPFLAGS $i" 6833 fi 6834 done 6835 fi 6836 6837 ;; 6838 *-apple-rhapsody*) 6839 6840 if test "x$CPPFLAGS" = "x"; then 6841 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DRHAPSODY\"" 6842 CPPFLAGS="-DRHAPSODY" 6843 else 6844 apr_addto_bugger="-DRHAPSODY" 6845 for i in $apr_addto_bugger; do 6846 apr_addto_duplicate="0" 6847 for j in $CPPFLAGS; do 6848 if test "x$i" = "x$j"; then 6849 apr_addto_duplicate="1" 6850 break 6851 fi 6852 done 6853 if test $apr_addto_duplicate = "0"; then 6854 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 6855 CPPFLAGS="$CPPFLAGS $i" 6856 fi 6857 done 6858 fi 6859 6860 ;; 6861 *-apple-darwin*) 6862 6863 if test "x$CPPFLAGS" = "x"; then 6864 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK\"" 6865 CPPFLAGS="-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK" 6866 else 6867 apr_addto_bugger="-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK" 6868 for i in $apr_addto_bugger; do 6869 apr_addto_duplicate="0" 6870 for j in $CPPFLAGS; do 6871 if test "x$i" = "x$j"; then 6872 apr_addto_duplicate="1" 6873 break 6874 fi 6875 done 6876 if test $apr_addto_duplicate = "0"; then 6877 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 6878 CPPFLAGS="$CPPFLAGS $i" 6879 fi 6880 done 6881 fi 6882 6883 6884 if test -z "$apr_posixsem_is_global"; then 6885 test "x$silent" != "xyes" && echo " setting apr_posixsem_is_global to \"yes\"" 6886 apr_posixsem_is_global="yes" 6887 fi 6888 6889 case $host in 6890 *-apple-darwin[1-9].*) 6891 # APR's use of kqueue has triggered kernel panics for some 6892 # 10.5.x (Darwin 9.x) users when running the entire test suite. 6893 # In 10.4.x, use of kqueue would cause the socket tests to hang. 6894 # 10.6+ (Darwin 10.x is supposed to fix the KQueue issues 6895 6896 if test -z "$ac_cv_func_kqueue"; then 6897 test "x$silent" != "xyes" && echo " setting ac_cv_func_kqueue to \"no\"" 6898 ac_cv_func_kqueue="no" 6899 fi 6900 6901 6902 if test -z "$ac_cv_func_poll"; then 6903 test "x$silent" != "xyes" && echo " setting ac_cv_func_poll to \"no\"" 6904 ac_cv_func_poll="no" 6905 fi 6906 # See issue 34332 6907 ;; 6908 *-apple-darwin1?.*) 6909 6910 if test "x$CPPFLAGS" = "x"; then 6911 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DDARWIN_10\"" 6912 CPPFLAGS="-DDARWIN_10" 6913 else 6914 apr_addto_bugger="-DDARWIN_10" 6915 for i in $apr_addto_bugger; do 6916 apr_addto_duplicate="0" 6917 for j in $CPPFLAGS; do 6918 if test "x$i" = "x$j"; then 6919 apr_addto_duplicate="1" 6920 break 6921 fi 6922 done 6923 if test $apr_addto_duplicate = "0"; then 6924 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 6925 CPPFLAGS="$CPPFLAGS $i" 6926 fi 6927 done 6928 fi 6929 6930 ;; 6931 esac 6932 ;; 6933 *-dec-osf*) 6934 6935 if test "x$CPPFLAGS" = "x"; then 6936 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DOSF1\"" 6937 CPPFLAGS="-DOSF1" 6938 else 6939 apr_addto_bugger="-DOSF1" 6940 for i in $apr_addto_bugger; do 6941 apr_addto_duplicate="0" 6942 for j in $CPPFLAGS; do 6943 if test "x$i" = "x$j"; then 6944 apr_addto_duplicate="1" 6945 break 6946 fi 6947 done 6948 if test $apr_addto_duplicate = "0"; then 6949 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 6950 CPPFLAGS="$CPPFLAGS $i" 6951 fi 6952 done 6953 fi 6954 6955 # process-shared mutexes don't seem to work in Tru64 5.0 6956 6957 if test -z "$apr_cv_process_shared_works"; then 6958 test "x$silent" != "xyes" && echo " setting apr_cv_process_shared_works to \"no\"" 6959 apr_cv_process_shared_works="no" 6960 fi 6961 6962 ;; 6963 *-nto-qnx*) 6964 ;; 6965 *-qnx) 6966 6967 if test "x$CPPFLAGS" = "x"; then 6968 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DQNX\"" 6969 CPPFLAGS="-DQNX" 6970 else 6971 apr_addto_bugger="-DQNX" 6972 for i in $apr_addto_bugger; do 6973 apr_addto_duplicate="0" 6974 for j in $CPPFLAGS; do 6975 if test "x$i" = "x$j"; then 6976 apr_addto_duplicate="1" 6977 break 6978 fi 6979 done 6980 if test $apr_addto_duplicate = "0"; then 6981 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 6982 CPPFLAGS="$CPPFLAGS $i" 6983 fi 6984 done 6985 fi 6986 6987 6988 if test "x$LIBS" = "x"; then 6989 test "x$silent" != "xyes" && echo " setting LIBS to \"-N128k -lunix\"" 6990 LIBS="-N128k -lunix" 6991 else 6992 apr_addto_bugger="-N128k -lunix" 6993 for i in $apr_addto_bugger; do 6994 apr_addto_duplicate="0" 6995 for j in $LIBS; do 6996 if test "x$i" = "x$j"; then 6997 apr_addto_duplicate="1" 6998 break 6999 fi 7000 done 7001 if test $apr_addto_duplicate = "0"; then 7002 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 7003 LIBS="$LIBS $i" 7004 fi 7005 done 7006 fi 7007 7008 ;; 7009 *-qnx32) 7010 7011 if test "x$CPPFLAGS" = "x"; then 7012 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DQNX\"" 7013 CPPFLAGS="-DQNX" 7014 else 7015 apr_addto_bugger="-DQNX" 7016 for i in $apr_addto_bugger; do 7017 apr_addto_duplicate="0" 7018 for j in $CPPFLAGS; do 7019 if test "x$i" = "x$j"; then 7020 apr_addto_duplicate="1" 7021 break 7022 fi 7023 done 7024 if test $apr_addto_duplicate = "0"; then 7025 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 7026 CPPFLAGS="$CPPFLAGS $i" 7027 fi 7028 done 7029 fi 7030 7031 7032 if test "x$CFLAGS" = "x"; then 7033 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-mf -3\"" 7034 CFLAGS="-mf -3" 7035 else 7036 apr_addto_bugger="-mf -3" 7037 for i in $apr_addto_bugger; do 7038 apr_addto_duplicate="0" 7039 for j in $CFLAGS; do 7040 if test "x$i" = "x$j"; then 7041 apr_addto_duplicate="1" 7042 break 7043 fi 7044 done 7045 if test $apr_addto_duplicate = "0"; then 7046 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS" 7047 CFLAGS="$CFLAGS $i" 7048 fi 7049 done 7050 fi 7051 7052 7053 if test "x$LIBS" = "x"; then 7054 test "x$silent" != "xyes" && echo " setting LIBS to \"-N128k -lunix\"" 7055 LIBS="-N128k -lunix" 7056 else 7057 apr_addto_bugger="-N128k -lunix" 7058 for i in $apr_addto_bugger; do 7059 apr_addto_duplicate="0" 7060 for j in $LIBS; do 7061 if test "x$i" = "x$j"; then 7062 apr_addto_duplicate="1" 7063 break 7064 fi 7065 done 7066 if test $apr_addto_duplicate = "0"; then 7067 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 7068 LIBS="$LIBS $i" 7069 fi 7070 done 7071 fi 7072 7073 ;; 7074 *-isc4*) 7075 7076 if test "x$CPPFLAGS" = "x"; then 7077 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-posix -DISC\"" 7078 CPPFLAGS="-posix -DISC" 7079 else 7080 apr_addto_bugger="-posix -DISC" 7081 for i in $apr_addto_bugger; do 7082 apr_addto_duplicate="0" 7083 for j in $CPPFLAGS; do 7084 if test "x$i" = "x$j"; then 7085 apr_addto_duplicate="1" 7086 break 7087 fi 7088 done 7089 if test $apr_addto_duplicate = "0"; then 7090 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 7091 CPPFLAGS="$CPPFLAGS $i" 7092 fi 7093 done 7094 fi 7095 7096 7097 if test "x$LDFLAGS" = "x"; then 7098 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-posix\"" 7099 LDFLAGS="-posix" 7100 else 7101 apr_addto_bugger="-posix" 7102 for i in $apr_addto_bugger; do 7103 apr_addto_duplicate="0" 7104 for j in $LDFLAGS; do 7105 if test "x$i" = "x$j"; then 7106 apr_addto_duplicate="1" 7107 break 7108 fi 7109 done 7110 if test $apr_addto_duplicate = "0"; then 7111 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 7112 LDFLAGS="$LDFLAGS $i" 7113 fi 7114 done 7115 fi 7116 7117 7118 if test "x$LIBS" = "x"; then 7119 test "x$silent" != "xyes" && echo " setting LIBS to \"-linet\"" 7120 LIBS="-linet" 7121 else 7122 apr_addto_bugger="-linet" 7123 for i in $apr_addto_bugger; do 7124 apr_addto_duplicate="0" 7125 for j in $LIBS; do 7126 if test "x$i" = "x$j"; then 7127 apr_addto_duplicate="1" 7128 break 7129 fi 7130 done 7131 if test $apr_addto_duplicate = "0"; then 7132 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 7133 LIBS="$LIBS $i" 7134 fi 7135 done 7136 fi 7137 7138 ;; 7139 *-sco3.2v[234]*) 7140 7141 if test "x$CPPFLAGS" = "x"; then 7142 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSCO -D_REENTRANT\"" 7143 CPPFLAGS="-DSCO -D_REENTRANT" 7144 else 7145 apr_addto_bugger="-DSCO -D_REENTRANT" 7146 for i in $apr_addto_bugger; do 7147 apr_addto_duplicate="0" 7148 for j in $CPPFLAGS; do 7149 if test "x$i" = "x$j"; then 7150 apr_addto_duplicate="1" 7151 break 7152 fi 7153 done 7154 if test $apr_addto_duplicate = "0"; then 7155 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 7156 CPPFLAGS="$CPPFLAGS $i" 7157 fi 7158 done 7159 fi 7160 7161 if test "$GCC" = "no"; then 7162 7163 if test "x$CFLAGS" = "x"; then 7164 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Oacgiltz\"" 7165 CFLAGS="-Oacgiltz" 7166 else 7167 apr_addto_bugger="-Oacgiltz" 7168 for i in $apr_addto_bugger; do 7169 apr_addto_duplicate="0" 7170 for j in $CFLAGS; do 7171 if test "x$i" = "x$j"; then 7172 apr_addto_duplicate="1" 7173 break 7174 fi 7175 done 7176 if test $apr_addto_duplicate = "0"; then 7177 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS" 7178 CFLAGS="$CFLAGS $i" 7179 fi 7180 done 7181 fi 7182 7183 fi 7184 7185 if test "x$LIBS" = "x"; then 7186 test "x$silent" != "xyes" && echo " setting LIBS to \"-lPW -lmalloc\"" 7187 LIBS="-lPW -lmalloc" 7188 else 7189 apr_addto_bugger="-lPW -lmalloc" 7190 for i in $apr_addto_bugger; do 7191 apr_addto_duplicate="0" 7192 for j in $LIBS; do 7193 if test "x$i" = "x$j"; then 7194 apr_addto_duplicate="1" 7195 break 7196 fi 7197 done 7198 if test $apr_addto_duplicate = "0"; then 7199 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 7200 LIBS="$LIBS $i" 7201 fi 7202 done 7203 fi 7204 7205 ;; 7206 *-sco3.2v5*) 7207 7208 if test "x$CPPFLAGS" = "x"; then 7209 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSCO5 -D_REENTRANT\"" 7210 CPPFLAGS="-DSCO5 -D_REENTRANT" 7211 else 7212 apr_addto_bugger="-DSCO5 -D_REENTRANT" 7213 for i in $apr_addto_bugger; do 7214 apr_addto_duplicate="0" 7215 for j in $CPPFLAGS; do 7216 if test "x$i" = "x$j"; then 7217 apr_addto_duplicate="1" 7218 break 7219 fi 7220 done 7221 if test $apr_addto_duplicate = "0"; then 7222 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 7223 CPPFLAGS="$CPPFLAGS $i" 7224 fi 7225 done 7226 fi 7227 7228 ;; 7229 *-sco_sv*|*-SCO_SV*) 7230 7231 if test "x$CPPFLAGS" = "x"; then 7232 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSCO -D_REENTRANT\"" 7233 CPPFLAGS="-DSCO -D_REENTRANT" 7234 else 7235 apr_addto_bugger="-DSCO -D_REENTRANT" 7236 for i in $apr_addto_bugger; do 7237 apr_addto_duplicate="0" 7238 for j in $CPPFLAGS; do 7239 if test "x$i" = "x$j"; then 7240 apr_addto_duplicate="1" 7241 break 7242 fi 7243 done 7244 if test $apr_addto_duplicate = "0"; then 7245 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 7246 CPPFLAGS="$CPPFLAGS $i" 7247 fi 7248 done 7249 fi 7250 7251 7252 if test "x$LIBS" = "x"; then 7253 test "x$silent" != "xyes" && echo " setting LIBS to \"-lPW -lmalloc\"" 7254 LIBS="-lPW -lmalloc" 7255 else 7256 apr_addto_bugger="-lPW -lmalloc" 7257 for i in $apr_addto_bugger; do 7258 apr_addto_duplicate="0" 7259 for j in $LIBS; do 7260 if test "x$i" = "x$j"; then 7261 apr_addto_duplicate="1" 7262 break 7263 fi 7264 done 7265 if test $apr_addto_duplicate = "0"; then 7266 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 7267 LIBS="$LIBS $i" 7268 fi 7269 done 7270 fi 7271 7272 ;; 7273 *-solaris2*) 7274 PLATOSVERS=`echo $host | sed 's/^.*solaris2.//'` 7275 7276 if test "x$CPPFLAGS" = "x"; then 7277 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT\"" 7278 CPPFLAGS="-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT" 7279 else 7280 apr_addto_bugger="-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT" 7281 for i in $apr_addto_bugger; do 7282 apr_addto_duplicate="0" 7283 for j in $CPPFLAGS; do 7284 if test "x$i" = "x$j"; then 7285 apr_addto_duplicate="1" 7286 break 7287 fi 7288 done 7289 if test $apr_addto_duplicate = "0"; then 7290 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 7291 CPPFLAGS="$CPPFLAGS $i" 7292 fi 7293 done 7294 fi 7295 7296 if test $PLATOSVERS -eq 10; then 7297 # pthread_mutex_timedlock is broken on Solaris 10. 7298 # It can block without timeout in case of EDEADLK. 7299 7300 if test -z "$ac_cv_func_pthread_mutex_timedlock"; then 7301 test "x$silent" != "xyes" && echo " setting ac_cv_func_pthread_mutex_timedlock to \"no\"" 7302 ac_cv_func_pthread_mutex_timedlock="no" 7303 fi 7304 7305 fi 7306 if test $PLATOSVERS -ge 10; then 7307 7308 if test -z "$apr_lock_method"; then 7309 test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_PROC_PTHREAD_SERIALIZE\"" 7310 apr_lock_method="USE_PROC_PTHREAD_SERIALIZE" 7311 fi 7312 7313 else 7314 7315 if test -z "$apr_lock_method"; then 7316 test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_FCNTL_SERIALIZE\"" 7317 apr_lock_method="USE_FCNTL_SERIALIZE" 7318 fi 7319 7320 fi 7321 # readdir64_r error handling seems broken on Solaris (at least 7322 # up till 2.8) -- it will return -1 at end-of-directory. 7323 7324 if test -z "$ac_cv_func_readdir64_r"; then 7325 test "x$silent" != "xyes" && echo " setting ac_cv_func_readdir64_r to \"no\"" 7326 ac_cv_func_readdir64_r="no" 7327 fi 7328 7329 ;; 7330 *-sunos4*) 7331 7332 if test "x$CPPFLAGS" = "x"; then 7333 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSUNOS4\"" 7334 CPPFLAGS="-DSUNOS4" 7335 else 7336 apr_addto_bugger="-DSUNOS4" 7337 for i in $apr_addto_bugger; do 7338 apr_addto_duplicate="0" 7339 for j in $CPPFLAGS; do 7340 if test "x$i" = "x$j"; then 7341 apr_addto_duplicate="1" 7342 break 7343 fi 7344 done 7345 if test $apr_addto_duplicate = "0"; then 7346 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 7347 CPPFLAGS="$CPPFLAGS $i" 7348 fi 7349 done 7350 fi 7351 7352 ;; 7353 *-unixware1) 7354 7355 if test "x$CPPFLAGS" = "x"; then 7356 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUW=100\"" 7357 CPPFLAGS="-DUW=100" 7358 else 7359 apr_addto_bugger="-DUW=100" 7360 for i in $apr_addto_bugger; do 7361 apr_addto_duplicate="0" 7362 for j in $CPPFLAGS; do 7363 if test "x$i" = "x$j"; then 7364 apr_addto_duplicate="1" 7365 break 7366 fi 7367 done 7368 if test $apr_addto_duplicate = "0"; then 7369 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 7370 CPPFLAGS="$CPPFLAGS $i" 7371 fi 7372 done 7373 fi 7374 7375 ;; 7376 *-unixware2) 7377 7378 if test "x$CPPFLAGS" = "x"; then 7379 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUW=200\"" 7380 CPPFLAGS="-DUW=200" 7381 else 7382 apr_addto_bugger="-DUW=200" 7383 for i in $apr_addto_bugger; do 7384 apr_addto_duplicate="0" 7385 for j in $CPPFLAGS; do 7386 if test "x$i" = "x$j"; then 7387 apr_addto_duplicate="1" 7388 break 7389 fi 7390 done 7391 if test $apr_addto_duplicate = "0"; then 7392 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 7393 CPPFLAGS="$CPPFLAGS $i" 7394 fi 7395 done 7396 fi 7397 7398 7399 if test "x$LIBS" = "x"; then 7400 test "x$silent" != "xyes" && echo " setting LIBS to \"-lgen\"" 7401 LIBS="-lgen" 7402 else 7403 apr_addto_bugger="-lgen" 7404 for i in $apr_addto_bugger; do 7405 apr_addto_duplicate="0" 7406 for j in $LIBS; do 7407 if test "x$i" = "x$j"; then 7408 apr_addto_duplicate="1" 7409 break 7410 fi 7411 done 7412 if test $apr_addto_duplicate = "0"; then 7413 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 7414 LIBS="$LIBS $i" 7415 fi 7416 done 7417 fi 7418 7419 ;; 7420 *-unixware211) 7421 7422 if test "x$CPPFLAGS" = "x"; then 7423 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUW=211\"" 7424 CPPFLAGS="-DUW=211" 7425 else 7426 apr_addto_bugger="-DUW=211" 7427 for i in $apr_addto_bugger; do 7428 apr_addto_duplicate="0" 7429 for j in $CPPFLAGS; do 7430 if test "x$i" = "x$j"; then 7431 apr_addto_duplicate="1" 7432 break 7433 fi 7434 done 7435 if test $apr_addto_duplicate = "0"; then 7436 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 7437 CPPFLAGS="$CPPFLAGS $i" 7438 fi 7439 done 7440 fi 7441 7442 7443 if test "x$LIBS" = "x"; then 7444 test "x$silent" != "xyes" && echo " setting LIBS to \"-lgen\"" 7445 LIBS="-lgen" 7446 else 7447 apr_addto_bugger="-lgen" 7448 for i in $apr_addto_bugger; do 7449 apr_addto_duplicate="0" 7450 for j in $LIBS; do 7451 if test "x$i" = "x$j"; then 7452 apr_addto_duplicate="1" 7453 break 7454 fi 7455 done 7456 if test $apr_addto_duplicate = "0"; then 7457 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 7458 LIBS="$LIBS $i" 7459 fi 7460 done 7461 fi 7462 7463 ;; 7464 *-unixware212) 7465 7466 if test "x$CPPFLAGS" = "x"; then 7467 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUW=212\"" 7468 CPPFLAGS="-DUW=212" 7469 else 7470 apr_addto_bugger="-DUW=212" 7471 for i in $apr_addto_bugger; do 7472 apr_addto_duplicate="0" 7473 for j in $CPPFLAGS; do 7474 if test "x$i" = "x$j"; then 7475 apr_addto_duplicate="1" 7476 break 7477 fi 7478 done 7479 if test $apr_addto_duplicate = "0"; then 7480 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 7481 CPPFLAGS="$CPPFLAGS $i" 7482 fi 7483 done 7484 fi 7485 7486 7487 if test "x$LIBS" = "x"; then 7488 test "x$silent" != "xyes" && echo " setting LIBS to \"-lgen\"" 7489 LIBS="-lgen" 7490 else 7491 apr_addto_bugger="-lgen" 7492 for i in $apr_addto_bugger; do 7493 apr_addto_duplicate="0" 7494 for j in $LIBS; do 7495 if test "x$i" = "x$j"; then 7496 apr_addto_duplicate="1" 7497 break 7498 fi 7499 done 7500 if test $apr_addto_duplicate = "0"; then 7501 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 7502 LIBS="$LIBS $i" 7503 fi 7504 done 7505 fi 7506 7507 ;; 7508 *-unixware7) 7509 7510 if test "x$CPPFLAGS" = "x"; then 7511 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUW=700\"" 7512 CPPFLAGS="-DUW=700" 7513 else 7514 apr_addto_bugger="-DUW=700" 7515 for i in $apr_addto_bugger; do 7516 apr_addto_duplicate="0" 7517 for j in $CPPFLAGS; do 7518 if test "x$i" = "x$j"; then 7519 apr_addto_duplicate="1" 7520 break 7521 fi 7522 done 7523 if test $apr_addto_duplicate = "0"; then 7524 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 7525 CPPFLAGS="$CPPFLAGS $i" 7526 fi 7527 done 7528 fi 7529 7530 7531 if test "x$LIBS" = "x"; then 7532 test "x$silent" != "xyes" && echo " setting LIBS to \"-lgen\"" 7533 LIBS="-lgen" 7534 else 7535 apr_addto_bugger="-lgen" 7536 for i in $apr_addto_bugger; do 7537 apr_addto_duplicate="0" 7538 for j in $LIBS; do 7539 if test "x$i" = "x$j"; then 7540 apr_addto_duplicate="1" 7541 break 7542 fi 7543 done 7544 if test $apr_addto_duplicate = "0"; then 7545 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 7546 LIBS="$LIBS $i" 7547 fi 7548 done 7549 fi 7550 7551 ;; 7552 maxion-*-sysv4*) 7553 7554 if test "x$CPPFLAGS" = "x"; then 7555 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\"" 7556 CPPFLAGS="-DSVR4" 7557 else 7558 apr_addto_bugger="-DSVR4" 7559 for i in $apr_addto_bugger; do 7560 apr_addto_duplicate="0" 7561 for j in $CPPFLAGS; do 7562 if test "x$i" = "x$j"; then 7563 apr_addto_duplicate="1" 7564 break 7565 fi 7566 done 7567 if test $apr_addto_duplicate = "0"; then 7568 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 7569 CPPFLAGS="$CPPFLAGS $i" 7570 fi 7571 done 7572 fi 7573 7574 7575 if test "x$LIBS" = "x"; then 7576 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc -lgen\"" 7577 LIBS="-lc -lgen" 7578 else 7579 apr_addto_bugger="-lc -lgen" 7580 for i in $apr_addto_bugger; do 7581 apr_addto_duplicate="0" 7582 for j in $LIBS; do 7583 if test "x$i" = "x$j"; then 7584 apr_addto_duplicate="1" 7585 break 7586 fi 7587 done 7588 if test $apr_addto_duplicate = "0"; then 7589 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 7590 LIBS="$LIBS $i" 7591 fi 7592 done 7593 fi 7594 7595 ;; 7596 *-*-powermax*) 7597 7598 if test "x$CPPFLAGS" = "x"; then 7599 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\"" 7600 CPPFLAGS="-DSVR4" 7601 else 7602 apr_addto_bugger="-DSVR4" 7603 for i in $apr_addto_bugger; do 7604 apr_addto_duplicate="0" 7605 for j in $CPPFLAGS; do 7606 if test "x$i" = "x$j"; then 7607 apr_addto_duplicate="1" 7608 break 7609 fi 7610 done 7611 if test $apr_addto_duplicate = "0"; then 7612 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 7613 CPPFLAGS="$CPPFLAGS $i" 7614 fi 7615 done 7616 fi 7617 7618 7619 if test "x$LIBS" = "x"; then 7620 test "x$silent" != "xyes" && echo " setting LIBS to \"-lgen\"" 7621 LIBS="-lgen" 7622 else 7623 apr_addto_bugger="-lgen" 7624 for i in $apr_addto_bugger; do 7625 apr_addto_duplicate="0" 7626 for j in $LIBS; do 7627 if test "x$i" = "x$j"; then 7628 apr_addto_duplicate="1" 7629 break 7630 fi 7631 done 7632 if test $apr_addto_duplicate = "0"; then 7633 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 7634 LIBS="$LIBS $i" 7635 fi 7636 done 7637 fi 7638 7639 ;; 7640 TPF) 7641 7642 if test "x$CPPFLAGS" = "x"; then 7643 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DTPF -D_POSIX_SOURCE\"" 7644 CPPFLAGS="-DTPF -D_POSIX_SOURCE" 7645 else 7646 apr_addto_bugger="-DTPF -D_POSIX_SOURCE" 7647 for i in $apr_addto_bugger; do 7648 apr_addto_duplicate="0" 7649 for j in $CPPFLAGS; do 7650 if test "x$i" = "x$j"; then 7651 apr_addto_duplicate="1" 7652 break 7653 fi 7654 done 7655 if test $apr_addto_duplicate = "0"; then 7656 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 7657 CPPFLAGS="$CPPFLAGS $i" 7658 fi 7659 done 7660 fi 7661 7662 ;; 7663 bs2000*-siemens-sysv*) 7664 7665 if test -z "$CFLAGS"; then 7666 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O\"" 7667 CFLAGS="-O" 7668 fi 7669 7670 7671 if test "x$CPPFLAGS" = "x"; then 7672 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -D_XPG_IV -D_KMEMUSER\"" 7673 CPPFLAGS="-DSVR4 -D_XPG_IV -D_KMEMUSER" 7674 else 7675 apr_addto_bugger="-DSVR4 -D_XPG_IV -D_KMEMUSER" 7676 for i in $apr_addto_bugger; do 7677 apr_addto_duplicate="0" 7678 for j in $CPPFLAGS; do 7679 if test "x$i" = "x$j"; then 7680 apr_addto_duplicate="1" 7681 break 7682 fi 7683 done 7684 if test $apr_addto_duplicate = "0"; then 7685 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 7686 CPPFLAGS="$CPPFLAGS $i" 7687 fi 7688 done 7689 fi 7690 7691 7692 if test "x$LIBS" = "x"; then 7693 test "x$silent" != "xyes" && echo " setting LIBS to \"-lsocket\"" 7694 LIBS="-lsocket" 7695 else 7696 apr_addto_bugger="-lsocket" 7697 for i in $apr_addto_bugger; do 7698 apr_addto_duplicate="0" 7699 for j in $LIBS; do 7700 if test "x$i" = "x$j"; then 7701 apr_addto_duplicate="1" 7702 break 7703 fi 7704 done 7705 if test $apr_addto_duplicate = "0"; then 7706 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 7707 LIBS="$LIBS $i" 7708 fi 7709 done 7710 fi 7711 7712 7713 if test -z "$enable_threads"; then 7714 test "x$silent" != "xyes" && echo " setting enable_threads to \"no\"" 7715 enable_threads="no" 7716 fi 7717 7718 ;; 7719 *-siemens-sysv4*) 7720 7721 if test "x$CPPFLAGS" = "x"; then 7722 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT\"" 7723 CPPFLAGS="-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT" 7724 else 7725 apr_addto_bugger="-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT" 7726 for i in $apr_addto_bugger; do 7727 apr_addto_duplicate="0" 7728 for j in $CPPFLAGS; do 7729 if test "x$i" = "x$j"; then 7730 apr_addto_duplicate="1" 7731 break 7732 fi 7733 done 7734 if test $apr_addto_duplicate = "0"; then 7735 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 7736 CPPFLAGS="$CPPFLAGS $i" 7737 fi 7738 done 7739 fi 7740 7741 7742 if test "x$LIBS" = "x"; then 7743 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\"" 7744 LIBS="-lc" 7745 else 7746 apr_addto_bugger="-lc" 7747 for i in $apr_addto_bugger; do 7748 apr_addto_duplicate="0" 7749 for j in $LIBS; do 7750 if test "x$i" = "x$j"; then 7751 apr_addto_duplicate="1" 7752 break 7753 fi 7754 done 7755 if test $apr_addto_duplicate = "0"; then 7756 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 7757 LIBS="$LIBS $i" 7758 fi 7759 done 7760 fi 7761 7762 ;; 7763 pyramid-pyramid-svr4) 7764 7765 if test "x$CPPFLAGS" = "x"; then 7766 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -DNO_LONG_DOUBLE\"" 7767 CPPFLAGS="-DSVR4 -DNO_LONG_DOUBLE" 7768 else 7769 apr_addto_bugger="-DSVR4 -DNO_LONG_DOUBLE" 7770 for i in $apr_addto_bugger; do 7771 apr_addto_duplicate="0" 7772 for j in $CPPFLAGS; do 7773 if test "x$i" = "x$j"; then 7774 apr_addto_duplicate="1" 7775 break 7776 fi 7777 done 7778 if test $apr_addto_duplicate = "0"; then 7779 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 7780 CPPFLAGS="$CPPFLAGS $i" 7781 fi 7782 done 7783 fi 7784 7785 7786 if test "x$LIBS" = "x"; then 7787 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\"" 7788 LIBS="-lc" 7789 else 7790 apr_addto_bugger="-lc" 7791 for i in $apr_addto_bugger; do 7792 apr_addto_duplicate="0" 7793 for j in $LIBS; do 7794 if test "x$i" = "x$j"; then 7795 apr_addto_duplicate="1" 7796 break 7797 fi 7798 done 7799 if test $apr_addto_duplicate = "0"; then 7800 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 7801 LIBS="$LIBS $i" 7802 fi 7803 done 7804 fi 7805 7806 ;; 7807 DS/90\ 7000-*-sysv4*) 7808 7809 if test "x$CPPFLAGS" = "x"; then 7810 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUXPDS\"" 7811 CPPFLAGS="-DUXPDS" 7812 else 7813 apr_addto_bugger="-DUXPDS" 7814 for i in $apr_addto_bugger; do 7815 apr_addto_duplicate="0" 7816 for j in $CPPFLAGS; do 7817 if test "x$i" = "x$j"; then 7818 apr_addto_duplicate="1" 7819 break 7820 fi 7821 done 7822 if test $apr_addto_duplicate = "0"; then 7823 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 7824 CPPFLAGS="$CPPFLAGS $i" 7825 fi 7826 done 7827 fi 7828 7829 ;; 7830 *-tandem-sysv4*) 7831 7832 if test "x$CPPFLAGS" = "x"; then 7833 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\"" 7834 CPPFLAGS="-DSVR4" 7835 else 7836 apr_addto_bugger="-DSVR4" 7837 for i in $apr_addto_bugger; do 7838 apr_addto_duplicate="0" 7839 for j in $CPPFLAGS; do 7840 if test "x$i" = "x$j"; then 7841 apr_addto_duplicate="1" 7842 break 7843 fi 7844 done 7845 if test $apr_addto_duplicate = "0"; then 7846 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 7847 CPPFLAGS="$CPPFLAGS $i" 7848 fi 7849 done 7850 fi 7851 7852 ;; 7853 *-ncr-sysv4) 7854 7855 if test "x$CPPFLAGS" = "x"; then 7856 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -DMPRAS\"" 7857 CPPFLAGS="-DSVR4 -DMPRAS" 7858 else 7859 apr_addto_bugger="-DSVR4 -DMPRAS" 7860 for i in $apr_addto_bugger; do 7861 apr_addto_duplicate="0" 7862 for j in $CPPFLAGS; do 7863 if test "x$i" = "x$j"; then 7864 apr_addto_duplicate="1" 7865 break 7866 fi 7867 done 7868 if test $apr_addto_duplicate = "0"; then 7869 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 7870 CPPFLAGS="$CPPFLAGS $i" 7871 fi 7872 done 7873 fi 7874 7875 7876 if test "x$LIBS" = "x"; then 7877 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc -L/usr/ucblib -lucb\"" 7878 LIBS="-lc -L/usr/ucblib -lucb" 7879 else 7880 apr_addto_bugger="-lc -L/usr/ucblib -lucb" 7881 for i in $apr_addto_bugger; do 7882 apr_addto_duplicate="0" 7883 for j in $LIBS; do 7884 if test "x$i" = "x$j"; then 7885 apr_addto_duplicate="1" 7886 break 7887 fi 7888 done 7889 if test $apr_addto_duplicate = "0"; then 7890 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 7891 LIBS="$LIBS $i" 7892 fi 7893 done 7894 fi 7895 7896 ;; 7897 *-sysv4*) 7898 7899 if test "x$CPPFLAGS" = "x"; then 7900 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\"" 7901 CPPFLAGS="-DSVR4" 7902 else 7903 apr_addto_bugger="-DSVR4" 7904 for i in $apr_addto_bugger; do 7905 apr_addto_duplicate="0" 7906 for j in $CPPFLAGS; do 7907 if test "x$i" = "x$j"; then 7908 apr_addto_duplicate="1" 7909 break 7910 fi 7911 done 7912 if test $apr_addto_duplicate = "0"; then 7913 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 7914 CPPFLAGS="$CPPFLAGS $i" 7915 fi 7916 done 7917 fi 7918 7919 7920 if test "x$LIBS" = "x"; then 7921 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\"" 7922 LIBS="-lc" 7923 else 7924 apr_addto_bugger="-lc" 7925 for i in $apr_addto_bugger; do 7926 apr_addto_duplicate="0" 7927 for j in $LIBS; do 7928 if test "x$i" = "x$j"; then 7929 apr_addto_duplicate="1" 7930 break 7931 fi 7932 done 7933 if test $apr_addto_duplicate = "0"; then 7934 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 7935 LIBS="$LIBS $i" 7936 fi 7937 done 7938 fi 7939 7940 ;; 7941 88k-encore-sysv4) 7942 7943 if test "x$CPPFLAGS" = "x"; then 7944 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -DENCORE\"" 7945 CPPFLAGS="-DSVR4 -DENCORE" 7946 else 7947 apr_addto_bugger="-DSVR4 -DENCORE" 7948 for i in $apr_addto_bugger; do 7949 apr_addto_duplicate="0" 7950 for j in $CPPFLAGS; do 7951 if test "x$i" = "x$j"; then 7952 apr_addto_duplicate="1" 7953 break 7954 fi 7955 done 7956 if test $apr_addto_duplicate = "0"; then 7957 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 7958 CPPFLAGS="$CPPFLAGS $i" 7959 fi 7960 done 7961 fi 7962 7963 7964 if test "x$LIBS" = "x"; then 7965 test "x$silent" != "xyes" && echo " setting LIBS to \"-lPW\"" 7966 LIBS="-lPW" 7967 else 7968 apr_addto_bugger="-lPW" 7969 for i in $apr_addto_bugger; do 7970 apr_addto_duplicate="0" 7971 for j in $LIBS; do 7972 if test "x$i" = "x$j"; then 7973 apr_addto_duplicate="1" 7974 break 7975 fi 7976 done 7977 if test $apr_addto_duplicate = "0"; then 7978 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 7979 LIBS="$LIBS $i" 7980 fi 7981 done 7982 fi 7983 7984 ;; 7985 *-uts*) 7986 PLATOSVERS=`echo $host | sed 's/^.*,//'` 7987 case $PLATOSVERS in 7988 2*) 7989 if test "x$CPPFLAGS" = "x"; then 7990 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DUTS21\"" 7991 CPPFLAGS="-DUTS21" 7992 else 7993 apr_addto_bugger="-DUTS21" 7994 for i in $apr_addto_bugger; do 7995 apr_addto_duplicate="0" 7996 for j in $CPPFLAGS; do 7997 if test "x$i" = "x$j"; then 7998 apr_addto_duplicate="1" 7999 break 8000 fi 8001 done 8002 if test $apr_addto_duplicate = "0"; then 8003 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 8004 CPPFLAGS="$CPPFLAGS $i" 8005 fi 8006 done 8007 fi 8008 8009 8010 if test "x$CFLAGS" = "x"; then 8011 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Xa -eft\"" 8012 CFLAGS="-Xa -eft" 8013 else 8014 apr_addto_bugger="-Xa -eft" 8015 for i in $apr_addto_bugger; do 8016 apr_addto_duplicate="0" 8017 for j in $CFLAGS; do 8018 if test "x$i" = "x$j"; then 8019 apr_addto_duplicate="1" 8020 break 8021 fi 8022 done 8023 if test $apr_addto_duplicate = "0"; then 8024 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS" 8025 CFLAGS="$CFLAGS $i" 8026 fi 8027 done 8028 fi 8029 8030 8031 if test "x$LIBS" = "x"; then 8032 test "x$silent" != "xyes" && echo " setting LIBS to \"-lbsd -la\"" 8033 LIBS="-lbsd -la" 8034 else 8035 apr_addto_bugger="-lbsd -la" 8036 for i in $apr_addto_bugger; do 8037 apr_addto_duplicate="0" 8038 for j in $LIBS; do 8039 if test "x$i" = "x$j"; then 8040 apr_addto_duplicate="1" 8041 break 8042 fi 8043 done 8044 if test $apr_addto_duplicate = "0"; then 8045 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 8046 LIBS="$LIBS $i" 8047 fi 8048 done 8049 fi 8050 8051 ;; 8052 *) 8053 if test "x$CPPFLAGS" = "x"; then 8054 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\"" 8055 CPPFLAGS="-DSVR4" 8056 else 8057 apr_addto_bugger="-DSVR4" 8058 for i in $apr_addto_bugger; do 8059 apr_addto_duplicate="0" 8060 for j in $CPPFLAGS; do 8061 if test "x$i" = "x$j"; then 8062 apr_addto_duplicate="1" 8063 break 8064 fi 8065 done 8066 if test $apr_addto_duplicate = "0"; then 8067 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 8068 CPPFLAGS="$CPPFLAGS $i" 8069 fi 8070 done 8071 fi 8072 8073 8074 if test "x$CFLAGS" = "x"; then 8075 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Xa\"" 8076 CFLAGS="-Xa" 8077 else 8078 apr_addto_bugger="-Xa" 8079 for i in $apr_addto_bugger; do 8080 apr_addto_duplicate="0" 8081 for j in $CFLAGS; do 8082 if test "x$i" = "x$j"; then 8083 apr_addto_duplicate="1" 8084 break 8085 fi 8086 done 8087 if test $apr_addto_duplicate = "0"; then 8088 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS" 8089 CFLAGS="$CFLAGS $i" 8090 fi 8091 done 8092 fi 8093 8094 ;; 8095 esac 8096 ;; 8097 *-ultrix) 8098 8099 if test "x$CPPFLAGS" = "x"; then 8100 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DULTRIX\"" 8101 CPPFLAGS="-DULTRIX" 8102 else 8103 apr_addto_bugger="-DULTRIX" 8104 for i in $apr_addto_bugger; do 8105 apr_addto_duplicate="0" 8106 for j in $CPPFLAGS; do 8107 if test "x$i" = "x$j"; then 8108 apr_addto_duplicate="1" 8109 break 8110 fi 8111 done 8112 if test $apr_addto_duplicate = "0"; then 8113 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 8114 CPPFLAGS="$CPPFLAGS $i" 8115 fi 8116 done 8117 fi 8118 8119 8120 test "x$silent" != "xyes" && echo " forcing SHELL to \"/bin/sh5\"" 8121 SHELL="/bin/sh5" 8122 8123 ;; 8124 *powerpc-tenon-machten*) 8125 8126 if test "x$LDFLAGS" = "x"; then 8127 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-Xlstack=0x14000 -Xldelcsect\"" 8128 LDFLAGS="-Xlstack=0x14000 -Xldelcsect" 8129 else 8130 apr_addto_bugger="-Xlstack=0x14000 -Xldelcsect" 8131 for i in $apr_addto_bugger; do 8132 apr_addto_duplicate="0" 8133 for j in $LDFLAGS; do 8134 if test "x$i" = "x$j"; then 8135 apr_addto_duplicate="1" 8136 break 8137 fi 8138 done 8139 if test $apr_addto_duplicate = "0"; then 8140 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 8141 LDFLAGS="$LDFLAGS $i" 8142 fi 8143 done 8144 fi 8145 8146 ;; 8147 *-machten*) 8148 8149 if test "x$LDFLAGS" = "x"; then 8150 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-stack 0x14000\"" 8151 LDFLAGS="-stack 0x14000" 8152 else 8153 apr_addto_bugger="-stack 0x14000" 8154 for i in $apr_addto_bugger; do 8155 apr_addto_duplicate="0" 8156 for j in $LDFLAGS; do 8157 if test "x$i" = "x$j"; then 8158 apr_addto_duplicate="1" 8159 break 8160 fi 8161 done 8162 if test $apr_addto_duplicate = "0"; then 8163 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 8164 LDFLAGS="$LDFLAGS $i" 8165 fi 8166 done 8167 fi 8168 8169 ;; 8170 *convex-v11*) 8171 8172 if test "x$CPPFLAGS" = "x"; then 8173 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DCONVEXOS11\"" 8174 CPPFLAGS="-DCONVEXOS11" 8175 else 8176 apr_addto_bugger="-DCONVEXOS11" 8177 for i in $apr_addto_bugger; do 8178 apr_addto_duplicate="0" 8179 for j in $CPPFLAGS; do 8180 if test "x$i" = "x$j"; then 8181 apr_addto_duplicate="1" 8182 break 8183 fi 8184 done 8185 if test $apr_addto_duplicate = "0"; then 8186 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 8187 CPPFLAGS="$CPPFLAGS $i" 8188 fi 8189 done 8190 fi 8191 8192 8193 if test -z "$CFLAGS"; then 8194 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O1\"" 8195 CFLAGS="-O1" 8196 fi 8197 8198 8199 if test "x$CFLAGS" = "x"; then 8200 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-ext\"" 8201 CFLAGS="-ext" 8202 else 8203 apr_addto_bugger="-ext" 8204 for i in $apr_addto_bugger; do 8205 apr_addto_duplicate="0" 8206 for j in $CFLAGS; do 8207 if test "x$i" = "x$j"; then 8208 apr_addto_duplicate="1" 8209 break 8210 fi 8211 done 8212 if test $apr_addto_duplicate = "0"; then 8213 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS" 8214 CFLAGS="$CFLAGS $i" 8215 fi 8216 done 8217 fi 8218 8219 ;; 8220 i860-intel-osf1) 8221 8222 if test "x$CPPFLAGS" = "x"; then 8223 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DPARAGON\"" 8224 CPPFLAGS="-DPARAGON" 8225 else 8226 apr_addto_bugger="-DPARAGON" 8227 for i in $apr_addto_bugger; do 8228 apr_addto_duplicate="0" 8229 for j in $CPPFLAGS; do 8230 if test "x$i" = "x$j"; then 8231 apr_addto_duplicate="1" 8232 break 8233 fi 8234 done 8235 if test $apr_addto_duplicate = "0"; then 8236 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 8237 CPPFLAGS="$CPPFLAGS $i" 8238 fi 8239 done 8240 fi 8241 8242 ;; 8243 *-sequent-ptx2.*.*) 8244 8245 if test "x$CPPFLAGS" = "x"; then 8246 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=20\"" 8247 CPPFLAGS="-DSEQUENT=20" 8248 else 8249 apr_addto_bugger="-DSEQUENT=20" 8250 for i in $apr_addto_bugger; do 8251 apr_addto_duplicate="0" 8252 for j in $CPPFLAGS; do 8253 if test "x$i" = "x$j"; then 8254 apr_addto_duplicate="1" 8255 break 8256 fi 8257 done 8258 if test $apr_addto_duplicate = "0"; then 8259 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 8260 CPPFLAGS="$CPPFLAGS $i" 8261 fi 8262 done 8263 fi 8264 8265 8266 if test "x$CFLAGS" = "x"; then 8267 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\"" 8268 CFLAGS="-Wc,-pw" 8269 else 8270 apr_addto_bugger="-Wc,-pw" 8271 for i in $apr_addto_bugger; do 8272 apr_addto_duplicate="0" 8273 for j in $CFLAGS; do 8274 if test "x$i" = "x$j"; then 8275 apr_addto_duplicate="1" 8276 break 8277 fi 8278 done 8279 if test $apr_addto_duplicate = "0"; then 8280 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS" 8281 CFLAGS="$CFLAGS $i" 8282 fi 8283 done 8284 fi 8285 8286 8287 if test "x$LIBS" = "x"; then 8288 test "x$silent" != "xyes" && echo " setting LIBS to \"-linet -lc -lseq\"" 8289 LIBS="-linet -lc -lseq" 8290 else 8291 apr_addto_bugger="-linet -lc -lseq" 8292 for i in $apr_addto_bugger; do 8293 apr_addto_duplicate="0" 8294 for j in $LIBS; do 8295 if test "x$i" = "x$j"; then 8296 apr_addto_duplicate="1" 8297 break 8298 fi 8299 done 8300 if test $apr_addto_duplicate = "0"; then 8301 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 8302 LIBS="$LIBS $i" 8303 fi 8304 done 8305 fi 8306 8307 ;; 8308 *-sequent-ptx4.0.*) 8309 8310 if test "x$CPPFLAGS" = "x"; then 8311 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=40\"" 8312 CPPFLAGS="-DSEQUENT=40" 8313 else 8314 apr_addto_bugger="-DSEQUENT=40" 8315 for i in $apr_addto_bugger; do 8316 apr_addto_duplicate="0" 8317 for j in $CPPFLAGS; do 8318 if test "x$i" = "x$j"; then 8319 apr_addto_duplicate="1" 8320 break 8321 fi 8322 done 8323 if test $apr_addto_duplicate = "0"; then 8324 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 8325 CPPFLAGS="$CPPFLAGS $i" 8326 fi 8327 done 8328 fi 8329 8330 8331 if test "x$CFLAGS" = "x"; then 8332 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\"" 8333 CFLAGS="-Wc,-pw" 8334 else 8335 apr_addto_bugger="-Wc,-pw" 8336 for i in $apr_addto_bugger; do 8337 apr_addto_duplicate="0" 8338 for j in $CFLAGS; do 8339 if test "x$i" = "x$j"; then 8340 apr_addto_duplicate="1" 8341 break 8342 fi 8343 done 8344 if test $apr_addto_duplicate = "0"; then 8345 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS" 8346 CFLAGS="$CFLAGS $i" 8347 fi 8348 done 8349 fi 8350 8351 8352 if test "x$LIBS" = "x"; then 8353 test "x$silent" != "xyes" && echo " setting LIBS to \"-linet -lc\"" 8354 LIBS="-linet -lc" 8355 else 8356 apr_addto_bugger="-linet -lc" 8357 for i in $apr_addto_bugger; do 8358 apr_addto_duplicate="0" 8359 for j in $LIBS; do 8360 if test "x$i" = "x$j"; then 8361 apr_addto_duplicate="1" 8362 break 8363 fi 8364 done 8365 if test $apr_addto_duplicate = "0"; then 8366 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 8367 LIBS="$LIBS $i" 8368 fi 8369 done 8370 fi 8371 8372 ;; 8373 *-sequent-ptx4.[123].*) 8374 8375 if test "x$CPPFLAGS" = "x"; then 8376 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=41\"" 8377 CPPFLAGS="-DSEQUENT=41" 8378 else 8379 apr_addto_bugger="-DSEQUENT=41" 8380 for i in $apr_addto_bugger; do 8381 apr_addto_duplicate="0" 8382 for j in $CPPFLAGS; do 8383 if test "x$i" = "x$j"; then 8384 apr_addto_duplicate="1" 8385 break 8386 fi 8387 done 8388 if test $apr_addto_duplicate = "0"; then 8389 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 8390 CPPFLAGS="$CPPFLAGS $i" 8391 fi 8392 done 8393 fi 8394 8395 8396 if test "x$CFLAGS" = "x"; then 8397 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\"" 8398 CFLAGS="-Wc,-pw" 8399 else 8400 apr_addto_bugger="-Wc,-pw" 8401 for i in $apr_addto_bugger; do 8402 apr_addto_duplicate="0" 8403 for j in $CFLAGS; do 8404 if test "x$i" = "x$j"; then 8405 apr_addto_duplicate="1" 8406 break 8407 fi 8408 done 8409 if test $apr_addto_duplicate = "0"; then 8410 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS" 8411 CFLAGS="$CFLAGS $i" 8412 fi 8413 done 8414 fi 8415 8416 8417 if test "x$LIBS" = "x"; then 8418 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\"" 8419 LIBS="-lc" 8420 else 8421 apr_addto_bugger="-lc" 8422 for i in $apr_addto_bugger; do 8423 apr_addto_duplicate="0" 8424 for j in $LIBS; do 8425 if test "x$i" = "x$j"; then 8426 apr_addto_duplicate="1" 8427 break 8428 fi 8429 done 8430 if test $apr_addto_duplicate = "0"; then 8431 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 8432 LIBS="$LIBS $i" 8433 fi 8434 done 8435 fi 8436 8437 ;; 8438 *-sequent-ptx4.4.*) 8439 8440 if test "x$CPPFLAGS" = "x"; then 8441 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=44\"" 8442 CPPFLAGS="-DSEQUENT=44" 8443 else 8444 apr_addto_bugger="-DSEQUENT=44" 8445 for i in $apr_addto_bugger; do 8446 apr_addto_duplicate="0" 8447 for j in $CPPFLAGS; do 8448 if test "x$i" = "x$j"; then 8449 apr_addto_duplicate="1" 8450 break 8451 fi 8452 done 8453 if test $apr_addto_duplicate = "0"; then 8454 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 8455 CPPFLAGS="$CPPFLAGS $i" 8456 fi 8457 done 8458 fi 8459 8460 8461 if test "x$CFLAGS" = "x"; then 8462 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\"" 8463 CFLAGS="-Wc,-pw" 8464 else 8465 apr_addto_bugger="-Wc,-pw" 8466 for i in $apr_addto_bugger; do 8467 apr_addto_duplicate="0" 8468 for j in $CFLAGS; do 8469 if test "x$i" = "x$j"; then 8470 apr_addto_duplicate="1" 8471 break 8472 fi 8473 done 8474 if test $apr_addto_duplicate = "0"; then 8475 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS" 8476 CFLAGS="$CFLAGS $i" 8477 fi 8478 done 8479 fi 8480 8481 8482 if test "x$LIBS" = "x"; then 8483 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\"" 8484 LIBS="-lc" 8485 else 8486 apr_addto_bugger="-lc" 8487 for i in $apr_addto_bugger; do 8488 apr_addto_duplicate="0" 8489 for j in $LIBS; do 8490 if test "x$i" = "x$j"; then 8491 apr_addto_duplicate="1" 8492 break 8493 fi 8494 done 8495 if test $apr_addto_duplicate = "0"; then 8496 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 8497 LIBS="$LIBS $i" 8498 fi 8499 done 8500 fi 8501 8502 ;; 8503 *-sequent-ptx4.5.*) 8504 8505 if test "x$CPPFLAGS" = "x"; then 8506 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=45\"" 8507 CPPFLAGS="-DSEQUENT=45" 8508 else 8509 apr_addto_bugger="-DSEQUENT=45" 8510 for i in $apr_addto_bugger; do 8511 apr_addto_duplicate="0" 8512 for j in $CPPFLAGS; do 8513 if test "x$i" = "x$j"; then 8514 apr_addto_duplicate="1" 8515 break 8516 fi 8517 done 8518 if test $apr_addto_duplicate = "0"; then 8519 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 8520 CPPFLAGS="$CPPFLAGS $i" 8521 fi 8522 done 8523 fi 8524 8525 8526 if test "x$CFLAGS" = "x"; then 8527 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\"" 8528 CFLAGS="-Wc,-pw" 8529 else 8530 apr_addto_bugger="-Wc,-pw" 8531 for i in $apr_addto_bugger; do 8532 apr_addto_duplicate="0" 8533 for j in $CFLAGS; do 8534 if test "x$i" = "x$j"; then 8535 apr_addto_duplicate="1" 8536 break 8537 fi 8538 done 8539 if test $apr_addto_duplicate = "0"; then 8540 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS" 8541 CFLAGS="$CFLAGS $i" 8542 fi 8543 done 8544 fi 8545 8546 8547 if test "x$LIBS" = "x"; then 8548 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\"" 8549 LIBS="-lc" 8550 else 8551 apr_addto_bugger="-lc" 8552 for i in $apr_addto_bugger; do 8553 apr_addto_duplicate="0" 8554 for j in $LIBS; do 8555 if test "x$i" = "x$j"; then 8556 apr_addto_duplicate="1" 8557 break 8558 fi 8559 done 8560 if test $apr_addto_duplicate = "0"; then 8561 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 8562 LIBS="$LIBS $i" 8563 fi 8564 done 8565 fi 8566 8567 ;; 8568 *-sequent-ptx5.0.*) 8569 8570 if test "x$CPPFLAGS" = "x"; then 8571 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSEQUENT=50\"" 8572 CPPFLAGS="-DSEQUENT=50" 8573 else 8574 apr_addto_bugger="-DSEQUENT=50" 8575 for i in $apr_addto_bugger; do 8576 apr_addto_duplicate="0" 8577 for j in $CPPFLAGS; do 8578 if test "x$i" = "x$j"; then 8579 apr_addto_duplicate="1" 8580 break 8581 fi 8582 done 8583 if test $apr_addto_duplicate = "0"; then 8584 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 8585 CPPFLAGS="$CPPFLAGS $i" 8586 fi 8587 done 8588 fi 8589 8590 8591 if test "x$CFLAGS" = "x"; then 8592 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wc,-pw\"" 8593 CFLAGS="-Wc,-pw" 8594 else 8595 apr_addto_bugger="-Wc,-pw" 8596 for i in $apr_addto_bugger; do 8597 apr_addto_duplicate="0" 8598 for j in $CFLAGS; do 8599 if test "x$i" = "x$j"; then 8600 apr_addto_duplicate="1" 8601 break 8602 fi 8603 done 8604 if test $apr_addto_duplicate = "0"; then 8605 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS" 8606 CFLAGS="$CFLAGS $i" 8607 fi 8608 done 8609 fi 8610 8611 8612 if test "x$LIBS" = "x"; then 8613 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc\"" 8614 LIBS="-lc" 8615 else 8616 apr_addto_bugger="-lc" 8617 for i in $apr_addto_bugger; do 8618 apr_addto_duplicate="0" 8619 for j in $LIBS; do 8620 if test "x$i" = "x$j"; then 8621 apr_addto_duplicate="1" 8622 break 8623 fi 8624 done 8625 if test $apr_addto_duplicate = "0"; then 8626 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 8627 LIBS="$LIBS $i" 8628 fi 8629 done 8630 fi 8631 8632 ;; 8633 *NEWS-OS*) 8634 8635 if test "x$CPPFLAGS" = "x"; then 8636 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DNEWSOS\"" 8637 CPPFLAGS="-DNEWSOS" 8638 else 8639 apr_addto_bugger="-DNEWSOS" 8640 for i in $apr_addto_bugger; do 8641 apr_addto_duplicate="0" 8642 for j in $CPPFLAGS; do 8643 if test "x$i" = "x$j"; then 8644 apr_addto_duplicate="1" 8645 break 8646 fi 8647 done 8648 if test $apr_addto_duplicate = "0"; then 8649 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 8650 CPPFLAGS="$CPPFLAGS $i" 8651 fi 8652 done 8653 fi 8654 8655 ;; 8656 *-riscix) 8657 8658 if test "x$CPPFLAGS" = "x"; then 8659 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DRISCIX\"" 8660 CPPFLAGS="-DRISCIX" 8661 else 8662 apr_addto_bugger="-DRISCIX" 8663 for i in $apr_addto_bugger; do 8664 apr_addto_duplicate="0" 8665 for j in $CPPFLAGS; do 8666 if test "x$i" = "x$j"; then 8667 apr_addto_duplicate="1" 8668 break 8669 fi 8670 done 8671 if test $apr_addto_duplicate = "0"; then 8672 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 8673 CPPFLAGS="$CPPFLAGS $i" 8674 fi 8675 done 8676 fi 8677 8678 8679 if test -z "$CFLAGS"; then 8680 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O\"" 8681 CFLAGS="-O" 8682 fi 8683 8684 ;; 8685 *-irix*) 8686 8687 if test "x$CPPFLAGS" = "x"; then 8688 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_POSIX_THREAD_SAFE_FUNCTIONS\"" 8689 CPPFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS" 8690 else 8691 apr_addto_bugger="-D_POSIX_THREAD_SAFE_FUNCTIONS" 8692 for i in $apr_addto_bugger; do 8693 apr_addto_duplicate="0" 8694 for j in $CPPFLAGS; do 8695 if test "x$i" = "x$j"; then 8696 apr_addto_duplicate="1" 8697 break 8698 fi 8699 done 8700 if test $apr_addto_duplicate = "0"; then 8701 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 8702 CPPFLAGS="$CPPFLAGS $i" 8703 fi 8704 done 8705 fi 8706 8707 ;; 8708 *beos*) 8709 8710 if test "x$CPPFLAGS" = "x"; then 8711 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DBEOS\"" 8712 CPPFLAGS="-DBEOS" 8713 else 8714 apr_addto_bugger="-DBEOS" 8715 for i in $apr_addto_bugger; do 8716 apr_addto_duplicate="0" 8717 for j in $CPPFLAGS; do 8718 if test "x$i" = "x$j"; then 8719 apr_addto_duplicate="1" 8720 break 8721 fi 8722 done 8723 if test $apr_addto_duplicate = "0"; then 8724 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 8725 CPPFLAGS="$CPPFLAGS $i" 8726 fi 8727 done 8728 fi 8729 8730 PLATOSVERS=`uname -r` 8731 8732 if test -z "$apr_process_lock_is_global"; then 8733 test "x$silent" != "xyes" && echo " setting apr_process_lock_is_global to \"yes\"" 8734 apr_process_lock_is_global="yes" 8735 fi 8736 8737 case $PLATOSVERS in 8738 5.0.4) 8739 8740 if test "x$LDFLAGS" = "x"; then 8741 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-L/boot/beos/system/lib\"" 8742 LDFLAGS="-L/boot/beos/system/lib" 8743 else 8744 apr_addto_bugger="-L/boot/beos/system/lib" 8745 for i in $apr_addto_bugger; do 8746 apr_addto_duplicate="0" 8747 for j in $LDFLAGS; do 8748 if test "x$i" = "x$j"; then 8749 apr_addto_duplicate="1" 8750 break 8751 fi 8752 done 8753 if test $apr_addto_duplicate = "0"; then 8754 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 8755 LDFLAGS="$LDFLAGS $i" 8756 fi 8757 done 8758 fi 8759 8760 8761 if test "x$LIBS" = "x"; then 8762 test "x$silent" != "xyes" && echo " setting LIBS to \"-lbind -lsocket\"" 8763 LIBS="-lbind -lsocket" 8764 else 8765 apr_addto_bugger="-lbind -lsocket" 8766 for i in $apr_addto_bugger; do 8767 apr_addto_duplicate="0" 8768 for j in $LIBS; do 8769 if test "x$i" = "x$j"; then 8770 apr_addto_duplicate="1" 8771 break 8772 fi 8773 done 8774 if test $apr_addto_duplicate = "0"; then 8775 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 8776 LIBS="$LIBS $i" 8777 fi 8778 done 8779 fi 8780 8781 8782 if test "x$CPPFLAGS" = "x"; then 8783 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DBONE7\"" 8784 CPPFLAGS="-DBONE7" 8785 else 8786 apr_addto_bugger="-DBONE7" 8787 for i in $apr_addto_bugger; do 8788 apr_addto_duplicate="0" 8789 for j in $CPPFLAGS; do 8790 if test "x$i" = "x$j"; then 8791 apr_addto_duplicate="1" 8792 break 8793 fi 8794 done 8795 if test $apr_addto_duplicate = "0"; then 8796 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 8797 CPPFLAGS="$CPPFLAGS $i" 8798 fi 8799 done 8800 fi 8801 8802 ;; 8803 5.1) 8804 8805 if test "x$LDFLAGS" = "x"; then 8806 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-L/boot/beos/system/lib\"" 8807 LDFLAGS="-L/boot/beos/system/lib" 8808 else 8809 apr_addto_bugger="-L/boot/beos/system/lib" 8810 for i in $apr_addto_bugger; do 8811 apr_addto_duplicate="0" 8812 for j in $LDFLAGS; do 8813 if test "x$i" = "x$j"; then 8814 apr_addto_duplicate="1" 8815 break 8816 fi 8817 done 8818 if test $apr_addto_duplicate = "0"; then 8819 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 8820 LDFLAGS="$LDFLAGS $i" 8821 fi 8822 done 8823 fi 8824 8825 8826 if test "x$LIBS" = "x"; then 8827 test "x$silent" != "xyes" && echo " setting LIBS to \"-lbind -lsocket\"" 8828 LIBS="-lbind -lsocket" 8829 else 8830 apr_addto_bugger="-lbind -lsocket" 8831 for i in $apr_addto_bugger; do 8832 apr_addto_duplicate="0" 8833 for j in $LIBS; do 8834 if test "x$i" = "x$j"; then 8835 apr_addto_duplicate="1" 8836 break 8837 fi 8838 done 8839 if test $apr_addto_duplicate = "0"; then 8840 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 8841 LIBS="$LIBS $i" 8842 fi 8843 done 8844 fi 8845 8846 ;; 8847 esac 8848 8849 if test "x$CPPFLAGS" = "x"; then 8850 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSIGPROCMASK_SETS_THREAD_MASK\"" 8851 CPPFLAGS="-DSIGPROCMASK_SETS_THREAD_MASK" 8852 else 8853 apr_addto_bugger="-DSIGPROCMASK_SETS_THREAD_MASK" 8854 for i in $apr_addto_bugger; do 8855 apr_addto_duplicate="0" 8856 for j in $CPPFLAGS; do 8857 if test "x$i" = "x$j"; then 8858 apr_addto_duplicate="1" 8859 break 8860 fi 8861 done 8862 if test $apr_addto_duplicate = "0"; then 8863 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 8864 CPPFLAGS="$CPPFLAGS $i" 8865 fi 8866 done 8867 fi 8868 8869 ;; 8870 4850-*.*) 8871 8872 if test "x$CPPFLAGS" = "x"; then 8873 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4 -DMPRAS\"" 8874 CPPFLAGS="-DSVR4 -DMPRAS" 8875 else 8876 apr_addto_bugger="-DSVR4 -DMPRAS" 8877 for i in $apr_addto_bugger; do 8878 apr_addto_duplicate="0" 8879 for j in $CPPFLAGS; do 8880 if test "x$i" = "x$j"; then 8881 apr_addto_duplicate="1" 8882 break 8883 fi 8884 done 8885 if test $apr_addto_duplicate = "0"; then 8886 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 8887 CPPFLAGS="$CPPFLAGS $i" 8888 fi 8889 done 8890 fi 8891 8892 8893 if test "x$LIBS" = "x"; then 8894 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc -L/usr/ucblib -lucb\"" 8895 LIBS="-lc -L/usr/ucblib -lucb" 8896 else 8897 apr_addto_bugger="-lc -L/usr/ucblib -lucb" 8898 for i in $apr_addto_bugger; do 8899 apr_addto_duplicate="0" 8900 for j in $LIBS; do 8901 if test "x$i" = "x$j"; then 8902 apr_addto_duplicate="1" 8903 break 8904 fi 8905 done 8906 if test $apr_addto_duplicate = "0"; then 8907 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 8908 LIBS="$LIBS $i" 8909 fi 8910 done 8911 fi 8912 8913 ;; 8914 drs6000*) 8915 8916 if test "x$CPPFLAGS" = "x"; then 8917 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DSVR4\"" 8918 CPPFLAGS="-DSVR4" 8919 else 8920 apr_addto_bugger="-DSVR4" 8921 for i in $apr_addto_bugger; do 8922 apr_addto_duplicate="0" 8923 for j in $CPPFLAGS; do 8924 if test "x$i" = "x$j"; then 8925 apr_addto_duplicate="1" 8926 break 8927 fi 8928 done 8929 if test $apr_addto_duplicate = "0"; then 8930 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 8931 CPPFLAGS="$CPPFLAGS $i" 8932 fi 8933 done 8934 fi 8935 8936 8937 if test "x$LIBS" = "x"; then 8938 test "x$silent" != "xyes" && echo " setting LIBS to \"-lc -L/usr/ucblib -lucb\"" 8939 LIBS="-lc -L/usr/ucblib -lucb" 8940 else 8941 apr_addto_bugger="-lc -L/usr/ucblib -lucb" 8942 for i in $apr_addto_bugger; do 8943 apr_addto_duplicate="0" 8944 for j in $LIBS; do 8945 if test "x$i" = "x$j"; then 8946 apr_addto_duplicate="1" 8947 break 8948 fi 8949 done 8950 if test $apr_addto_duplicate = "0"; then 8951 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 8952 LIBS="$LIBS $i" 8953 fi 8954 done 8955 fi 8956 8957 ;; 8958 m88k-*-CX/SX|CYBER) 8959 8960 if test "x$CPPFLAGS" = "x"; then 8961 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_CX_SX\"" 8962 CPPFLAGS="-D_CX_SX" 8963 else 8964 apr_addto_bugger="-D_CX_SX" 8965 for i in $apr_addto_bugger; do 8966 apr_addto_duplicate="0" 8967 for j in $CPPFLAGS; do 8968 if test "x$i" = "x$j"; then 8969 apr_addto_duplicate="1" 8970 break 8971 fi 8972 done 8973 if test $apr_addto_duplicate = "0"; then 8974 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 8975 CPPFLAGS="$CPPFLAGS $i" 8976 fi 8977 done 8978 fi 8979 8980 8981 if test "x$CFLAGS" = "x"; then 8982 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Xa\"" 8983 CFLAGS="-Xa" 8984 else 8985 apr_addto_bugger="-Xa" 8986 for i in $apr_addto_bugger; do 8987 apr_addto_duplicate="0" 8988 for j in $CFLAGS; do 8989 if test "x$i" = "x$j"; then 8990 apr_addto_duplicate="1" 8991 break 8992 fi 8993 done 8994 if test $apr_addto_duplicate = "0"; then 8995 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS" 8996 CFLAGS="$CFLAGS $i" 8997 fi 8998 done 8999 fi 9000 9001 ;; 9002 *-tandem-oss) 9003 9004 if test "x$CPPFLAGS" = "x"; then 9005 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1\"" 9006 CPPFLAGS="-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" 9007 else 9008 apr_addto_bugger="-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1" 9009 for i in $apr_addto_bugger; do 9010 apr_addto_duplicate="0" 9011 for j in $CPPFLAGS; do 9012 if test "x$i" = "x$j"; then 9013 apr_addto_duplicate="1" 9014 break 9015 fi 9016 done 9017 if test $apr_addto_duplicate = "0"; then 9018 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 9019 CPPFLAGS="$CPPFLAGS $i" 9020 fi 9021 done 9022 fi 9023 9024 ;; 9025 *-ibm-os390) 9026 9027 if test -z "$apr_lock_method"; then 9028 test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\"" 9029 apr_lock_method="USE_SYSVSEM_SERIALIZE" 9030 fi 9031 9032 9033 if test -z "$apr_sysvsem_is_global"; then 9034 test "x$silent" != "xyes" && echo " setting apr_sysvsem_is_global to \"yes\"" 9035 apr_sysvsem_is_global="yes" 9036 fi 9037 9038 9039 if test -z "$apr_gethostbyname_is_thread_safe"; then 9040 test "x$silent" != "xyes" && echo " setting apr_gethostbyname_is_thread_safe to \"yes\"" 9041 apr_gethostbyname_is_thread_safe="yes" 9042 fi 9043 9044 9045 if test -z "$apr_gethostbyaddr_is_thread_safe"; then 9046 test "x$silent" != "xyes" && echo " setting apr_gethostbyaddr_is_thread_safe to \"yes\"" 9047 apr_gethostbyaddr_is_thread_safe="yes" 9048 fi 9049 9050 9051 if test -z "$apr_getservbyname_is_thread_safe"; then 9052 test "x$silent" != "xyes" && echo " setting apr_getservbyname_is_thread_safe to \"yes\"" 9053 apr_getservbyname_is_thread_safe="yes" 9054 fi 9055 9056 9057$as_echo "#define HAVE_ZOS_PTHREADS 1" >>confdefs.h 9058 9059 9060 if test "x$CPPFLAGS" = "x"; then 9061 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-U_NO_PROTO -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1\"" 9062 CPPFLAGS="-U_NO_PROTO -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1" 9063 else 9064 apr_addto_bugger="-U_NO_PROTO -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1" 9065 for i in $apr_addto_bugger; do 9066 apr_addto_duplicate="0" 9067 for j in $CPPFLAGS; do 9068 if test "x$i" = "x$j"; then 9069 apr_addto_duplicate="1" 9070 break 9071 fi 9072 done 9073 if test $apr_addto_duplicate = "0"; then 9074 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 9075 CPPFLAGS="$CPPFLAGS $i" 9076 fi 9077 done 9078 fi 9079 9080 ;; 9081 *-ibm-as400) 9082 9083 if test -z "$apr_lock_method"; then 9084 test "x$silent" != "xyes" && echo " setting apr_lock_method to \"USE_SYSVSEM_SERIALIZE\"" 9085 apr_lock_method="USE_SYSVSEM_SERIALIZE" 9086 fi 9087 9088 9089 if test -z "$apr_process_lock_is_global"; then 9090 test "x$silent" != "xyes" && echo " setting apr_process_lock_is_global to \"yes\"" 9091 apr_process_lock_is_global="yes" 9092 fi 9093 9094 9095 if test -z "$apr_gethostbyname_is_thread_safe"; then 9096 test "x$silent" != "xyes" && echo " setting apr_gethostbyname_is_thread_safe to \"yes\"" 9097 apr_gethostbyname_is_thread_safe="yes" 9098 fi 9099 9100 9101 if test -z "$apr_gethostbyaddr_is_thread_safe"; then 9102 test "x$silent" != "xyes" && echo " setting apr_gethostbyaddr_is_thread_safe to \"yes\"" 9103 apr_gethostbyaddr_is_thread_safe="yes" 9104 fi 9105 9106 9107 if test -z "$apr_getservbyname_is_thread_safe"; then 9108 test "x$silent" != "xyes" && echo " setting apr_getservbyname_is_thread_safe to \"yes\"" 9109 apr_getservbyname_is_thread_safe="yes" 9110 fi 9111 9112 ;; 9113 *mingw*) 9114 9115 if test "x$INTERNAL_CPPFLAGS" = "x"; then 9116 test "x$silent" != "xyes" && echo " setting INTERNAL_CPPFLAGS to \"-DBINPATH=$apr_builddir/test/.libs\"" 9117 INTERNAL_CPPFLAGS="-DBINPATH=$apr_builddir/test/.libs" 9118 else 9119 apr_addto_bugger="-DBINPATH=$apr_builddir/test/.libs" 9120 for i in $apr_addto_bugger; do 9121 apr_addto_duplicate="0" 9122 for j in $INTERNAL_CPPFLAGS; do 9123 if test "x$i" = "x$j"; then 9124 apr_addto_duplicate="1" 9125 break 9126 fi 9127 done 9128 if test $apr_addto_duplicate = "0"; then 9129 test "x$silent" != "xyes" && echo " adding \"$i\" to INTERNAL_CPPFLAGS" 9130 INTERNAL_CPPFLAGS="$INTERNAL_CPPFLAGS $i" 9131 fi 9132 done 9133 fi 9134 9135 9136 if test "x$CPPFLAGS" = "x"; then 9137 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DWIN32 -D__MSVCRT__\"" 9138 CPPFLAGS="-DWIN32 -D__MSVCRT__" 9139 else 9140 apr_addto_bugger="-DWIN32 -D__MSVCRT__" 9141 for i in $apr_addto_bugger; do 9142 apr_addto_duplicate="0" 9143 for j in $CPPFLAGS; do 9144 if test "x$i" = "x$j"; then 9145 apr_addto_duplicate="1" 9146 break 9147 fi 9148 done 9149 if test $apr_addto_duplicate = "0"; then 9150 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 9151 CPPFLAGS="$CPPFLAGS $i" 9152 fi 9153 done 9154 fi 9155 9156 9157 if test "x$LDFLAGS" = "x"; then 9158 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-Wl,--enable-auto-import,--subsystem,console\"" 9159 LDFLAGS="-Wl,--enable-auto-import,--subsystem,console" 9160 else 9161 apr_addto_bugger="-Wl,--enable-auto-import,--subsystem,console" 9162 for i in $apr_addto_bugger; do 9163 apr_addto_duplicate="0" 9164 for j in $LDFLAGS; do 9165 if test "x$i" = "x$j"; then 9166 apr_addto_duplicate="1" 9167 break 9168 fi 9169 done 9170 if test $apr_addto_duplicate = "0"; then 9171 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 9172 LDFLAGS="$LDFLAGS $i" 9173 fi 9174 done 9175 fi 9176 9177 9178 if test -z "$have_unicode_fs"; then 9179 test "x$silent" != "xyes" && echo " setting have_unicode_fs to \"1\"" 9180 have_unicode_fs="1" 9181 fi 9182 9183 9184 if test -z "$have_proc_invoked"; then 9185 test "x$silent" != "xyes" && echo " setting have_proc_invoked to \"1\"" 9186 have_proc_invoked="1" 9187 fi 9188 9189 9190 if test -z "$apr_lock_method"; then 9191 test "x$silent" != "xyes" && echo " setting apr_lock_method to \"win32\"" 9192 apr_lock_method="win32" 9193 fi 9194 9195 9196 if test -z "$apr_process_lock_is_global"; then 9197 test "x$silent" != "xyes" && echo " setting apr_process_lock_is_global to \"yes\"" 9198 apr_process_lock_is_global="yes" 9199 fi 9200 9201 9202 if test -z "$apr_cv_use_lfs64"; then 9203 test "x$silent" != "xyes" && echo " setting apr_cv_use_lfs64 to \"yes\"" 9204 apr_cv_use_lfs64="yes" 9205 fi 9206 9207 9208 if test -z "$apr_cv_osuuid"; then 9209 test "x$silent" != "xyes" && echo " setting apr_cv_osuuid to \"yes\"" 9210 apr_cv_osuuid="yes" 9211 fi 9212 9213 9214 if test -z "$apr_cv_tcp_nodelay_with_cork"; then 9215 test "x$silent" != "xyes" && echo " setting apr_cv_tcp_nodelay_with_cork to \"no\"" 9216 apr_cv_tcp_nodelay_with_cork="no" 9217 fi 9218 9219 9220 if test -z "$apr_thread_func"; then 9221 test "x$silent" != "xyes" && echo " setting apr_thread_func to \"__stdcall\"" 9222 apr_thread_func="__stdcall" 9223 fi 9224 9225 9226 if test -z "$ac_cv_o_nonblock_inherited"; then 9227 test "x$silent" != "xyes" && echo " setting ac_cv_o_nonblock_inherited to \"yes\"" 9228 ac_cv_o_nonblock_inherited="yes" 9229 fi 9230 9231 9232 if test -z "$ac_cv_tcp_nodelay_inherited"; then 9233 test "x$silent" != "xyes" && echo " setting ac_cv_tcp_nodelay_inherited to \"yes\"" 9234 ac_cv_tcp_nodelay_inherited="yes" 9235 fi 9236 9237 9238 if test -z "$ac_cv_file__dev_zero"; then 9239 test "x$silent" != "xyes" && echo " setting ac_cv_file__dev_zero to \"no\"" 9240 ac_cv_file__dev_zero="no" 9241 fi 9242 9243 9244 if test -z "$ac_cv_func_setpgrp_void"; then 9245 test "x$silent" != "xyes" && echo " setting ac_cv_func_setpgrp_void to \"no\"" 9246 ac_cv_func_setpgrp_void="no" 9247 fi 9248 9249 9250 if test -z "$ac_cv_func_mmap"; then 9251 test "x$silent" != "xyes" && echo " setting ac_cv_func_mmap to \"yes\"" 9252 ac_cv_func_mmap="yes" 9253 fi 9254 9255 9256 if test -z "$ac_cv_define_sockaddr_in6"; then 9257 test "x$silent" != "xyes" && echo " setting ac_cv_define_sockaddr_in6 to \"yes\"" 9258 ac_cv_define_sockaddr_in6="yes" 9259 fi 9260 9261 9262 if test -z "$ac_cv_working_getaddrinfo"; then 9263 test "x$silent" != "xyes" && echo " setting ac_cv_working_getaddrinfo to \"yes\"" 9264 ac_cv_working_getaddrinfo="yes" 9265 fi 9266 9267 9268 if test -z "$ac_cv_working_getnameinfo"; then 9269 test "x$silent" != "xyes" && echo " setting ac_cv_working_getnameinfo to \"yes\"" 9270 ac_cv_working_getnameinfo="yes" 9271 fi 9272 9273 9274 if test -z "$ac_cv_func_gai_strerror"; then 9275 test "x$silent" != "xyes" && echo " setting ac_cv_func_gai_strerror to \"yes\"" 9276 ac_cv_func_gai_strerror="yes" 9277 fi 9278 9279 case $host in 9280 *mingw32*) 9281 9282 if test -z "$apr_has_xthread_files"; then 9283 test "x$silent" != "xyes" && echo " setting apr_has_xthread_files to \"1\"" 9284 apr_has_xthread_files="1" 9285 fi 9286 9287 9288 if test -z "$apr_has_user"; then 9289 test "x$silent" != "xyes" && echo " setting apr_has_user to \"1\"" 9290 apr_has_user="1" 9291 fi 9292 9293 9294 if test -z "$apr_procattr_user_set_requires_password"; then 9295 test "x$silent" != "xyes" && echo " setting apr_procattr_user_set_requires_password to \"1\"" 9296 apr_procattr_user_set_requires_password="1" 9297 fi 9298 9299 9300 if test -z "$ac_cv_func_sendfile"; then 9301 test "x$silent" != "xyes" && echo " setting ac_cv_func_sendfile to \"yes\"" 9302 ac_cv_func_sendfile="yes" 9303 fi 9304 9305 ;; 9306 *mingwce) 9307 9308 if test -z "$apr_has_xthread_files"; then 9309 test "x$silent" != "xyes" && echo " setting apr_has_xthread_files to \"0\"" 9310 apr_has_xthread_files="0" 9311 fi 9312 9313 9314 if test -z "$apr_has_user"; then 9315 test "x$silent" != "xyes" && echo " setting apr_has_user to \"0\"" 9316 apr_has_user="0" 9317 fi 9318 9319 9320 if test -z "$apr_procattr_user_set_requires_password"; then 9321 test "x$silent" != "xyes" && echo " setting apr_procattr_user_set_requires_password to \"0\"" 9322 apr_procattr_user_set_requires_password="0" 9323 fi 9324 9325 9326 if test -z "$ac_cv_func_sendfile"; then 9327 test "x$silent" != "xyes" && echo " setting ac_cv_func_sendfile to \"no\"" 9328 ac_cv_func_sendfile="no" 9329 fi 9330 9331 ;; 9332 esac 9333 ;; 9334 esac 9335 9336fi 9337 9338 9339DEFAULT_OSDIR="unix" 9340echo "(Default will be ${DEFAULT_OSDIR})" 9341 9342apr_modules="file_io network_io threadproc misc locks time mmap shmem user memory atomic poll support random" 9343 9344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 9345$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 9346set x ${MAKE-make} 9347ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 9348if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 9349 $as_echo_n "(cached) " >&6 9350else 9351 cat >conftest.make <<\_ACEOF 9352SHELL = /bin/sh 9353all: 9354 @echo '@@@%%%=$(MAKE)=@@@%%%' 9355_ACEOF 9356# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 9357case `${MAKE-make} -f conftest.make 2>/dev/null` in 9358 *@@@%%%=?*=@@@%%%*) 9359 eval ac_cv_prog_make_${ac_make}_set=yes;; 9360 *) 9361 eval ac_cv_prog_make_${ac_make}_set=no;; 9362esac 9363rm -f conftest.make 9364fi 9365if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9367$as_echo "yes" >&6; } 9368 SET_MAKE= 9369else 9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9371$as_echo "no" >&6; } 9372 SET_MAKE="MAKE=${MAKE-make}" 9373fi 9374 9375ac_ext=c 9376ac_cpp='$CPP $CPPFLAGS' 9377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9379ac_compiler_gnu=$ac_cv_c_compiler_gnu 9380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 9381$as_echo_n "checking how to run the C preprocessor... " >&6; } 9382# On Suns, sometimes $CPP names a directory. 9383if test -n "$CPP" && test -d "$CPP"; then 9384 CPP= 9385fi 9386if test -z "$CPP"; then 9387 if ${ac_cv_prog_CPP+:} false; then : 9388 $as_echo_n "(cached) " >&6 9389else 9390 # Double quotes because CPP needs to be expanded 9391 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 9392 do 9393 ac_preproc_ok=false 9394for ac_c_preproc_warn_flag in '' yes 9395do 9396 # Use a header file that comes with gcc, so configuring glibc 9397 # with a fresh cross-compiler works. 9398 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9399 # <limits.h> exists even on freestanding compilers. 9400 # On the NeXT, cc -E runs the code through the compiler's parser, 9401 # not just through cpp. "Syntax error" is here to catch this case. 9402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9403/* end confdefs.h. */ 9404#ifdef __STDC__ 9405# include <limits.h> 9406#else 9407# include <assert.h> 9408#endif 9409 Syntax error 9410_ACEOF 9411if ac_fn_c_try_cpp "$LINENO"; then : 9412 9413else 9414 # Broken: fails on valid input. 9415continue 9416fi 9417rm -f conftest.err conftest.i conftest.$ac_ext 9418 9419 # OK, works on sane cases. Now check whether nonexistent headers 9420 # can be detected and how. 9421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9422/* end confdefs.h. */ 9423#include <ac_nonexistent.h> 9424_ACEOF 9425if ac_fn_c_try_cpp "$LINENO"; then : 9426 # Broken: success on invalid input. 9427continue 9428else 9429 # Passes both tests. 9430ac_preproc_ok=: 9431break 9432fi 9433rm -f conftest.err conftest.i conftest.$ac_ext 9434 9435done 9436# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9437rm -f conftest.i conftest.err conftest.$ac_ext 9438if $ac_preproc_ok; then : 9439 break 9440fi 9441 9442 done 9443 ac_cv_prog_CPP=$CPP 9444 9445fi 9446 CPP=$ac_cv_prog_CPP 9447else 9448 ac_cv_prog_CPP=$CPP 9449fi 9450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 9451$as_echo "$CPP" >&6; } 9452ac_preproc_ok=false 9453for ac_c_preproc_warn_flag in '' yes 9454do 9455 # Use a header file that comes with gcc, so configuring glibc 9456 # with a fresh cross-compiler works. 9457 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9458 # <limits.h> exists even on freestanding compilers. 9459 # On the NeXT, cc -E runs the code through the compiler's parser, 9460 # not just through cpp. "Syntax error" is here to catch this case. 9461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9462/* end confdefs.h. */ 9463#ifdef __STDC__ 9464# include <limits.h> 9465#else 9466# include <assert.h> 9467#endif 9468 Syntax error 9469_ACEOF 9470if ac_fn_c_try_cpp "$LINENO"; then : 9471 9472else 9473 # Broken: fails on valid input. 9474continue 9475fi 9476rm -f conftest.err conftest.i conftest.$ac_ext 9477 9478 # OK, works on sane cases. Now check whether nonexistent headers 9479 # can be detected and how. 9480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9481/* end confdefs.h. */ 9482#include <ac_nonexistent.h> 9483_ACEOF 9484if ac_fn_c_try_cpp "$LINENO"; then : 9485 # Broken: success on invalid input. 9486continue 9487else 9488 # Passes both tests. 9489ac_preproc_ok=: 9490break 9491fi 9492rm -f conftest.err conftest.i conftest.$ac_ext 9493 9494done 9495# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9496rm -f conftest.i conftest.err conftest.$ac_ext 9497if $ac_preproc_ok; then : 9498 9499else 9500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9501$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9502as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 9503See \`config.log' for more details" "$LINENO" 5; } 9504fi 9505 9506ac_ext=c 9507ac_cpp='$CPP $CPPFLAGS' 9508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9510ac_compiler_gnu=$ac_cv_c_compiler_gnu 9511 9512for ac_prog in gawk mawk nawk awk 9513do 9514 # Extract the first word of "$ac_prog", so it can be a program name with args. 9515set dummy $ac_prog; ac_word=$2 9516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9517$as_echo_n "checking for $ac_word... " >&6; } 9518if ${ac_cv_prog_AWK+:} false; then : 9519 $as_echo_n "(cached) " >&6 9520else 9521 if test -n "$AWK"; then 9522 ac_cv_prog_AWK="$AWK" # Let the user override the test. 9523else 9524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9525for as_dir in $PATH 9526do 9527 IFS=$as_save_IFS 9528 test -z "$as_dir" && as_dir=. 9529 for ac_exec_ext in '' $ac_executable_extensions; do 9530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9531 ac_cv_prog_AWK="$ac_prog" 9532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9533 break 2 9534 fi 9535done 9536 done 9537IFS=$as_save_IFS 9538 9539fi 9540fi 9541AWK=$ac_cv_prog_AWK 9542if test -n "$AWK"; then 9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 9544$as_echo "$AWK" >&6; } 9545else 9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9547$as_echo "no" >&6; } 9548fi 9549 9550 9551 test -n "$AWK" && break 9552done 9553 9554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 9555$as_echo_n "checking whether ln -s works... " >&6; } 9556LN_S=$as_ln_s 9557if test "$LN_S" = "ln -s"; then 9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9559$as_echo "yes" >&6; } 9560else 9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 9562$as_echo "no, using $LN_S" >&6; } 9563fi 9564 9565if test -n "$ac_tool_prefix"; then 9566 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 9567set dummy ${ac_tool_prefix}ranlib; ac_word=$2 9568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9569$as_echo_n "checking for $ac_word... " >&6; } 9570if ${ac_cv_prog_RANLIB+:} false; then : 9571 $as_echo_n "(cached) " >&6 9572else 9573 if test -n "$RANLIB"; then 9574 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 9575else 9576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9577for as_dir in $PATH 9578do 9579 IFS=$as_save_IFS 9580 test -z "$as_dir" && as_dir=. 9581 for ac_exec_ext in '' $ac_executable_extensions; do 9582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9583 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 9584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9585 break 2 9586 fi 9587done 9588 done 9589IFS=$as_save_IFS 9590 9591fi 9592fi 9593RANLIB=$ac_cv_prog_RANLIB 9594if test -n "$RANLIB"; then 9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 9596$as_echo "$RANLIB" >&6; } 9597else 9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9599$as_echo "no" >&6; } 9600fi 9601 9602 9603fi 9604if test -z "$ac_cv_prog_RANLIB"; then 9605 ac_ct_RANLIB=$RANLIB 9606 # Extract the first word of "ranlib", so it can be a program name with args. 9607set dummy ranlib; ac_word=$2 9608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9609$as_echo_n "checking for $ac_word... " >&6; } 9610if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 9611 $as_echo_n "(cached) " >&6 9612else 9613 if test -n "$ac_ct_RANLIB"; then 9614 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 9615else 9616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9617for as_dir in $PATH 9618do 9619 IFS=$as_save_IFS 9620 test -z "$as_dir" && as_dir=. 9621 for ac_exec_ext in '' $ac_executable_extensions; do 9622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9623 ac_cv_prog_ac_ct_RANLIB="ranlib" 9624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9625 break 2 9626 fi 9627done 9628 done 9629IFS=$as_save_IFS 9630 9631fi 9632fi 9633ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 9634if test -n "$ac_ct_RANLIB"; then 9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 9636$as_echo "$ac_ct_RANLIB" >&6; } 9637else 9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9639$as_echo "no" >&6; } 9640fi 9641 9642 if test "x$ac_ct_RANLIB" = x; then 9643 RANLIB=":" 9644 else 9645 case $cross_compiling:$ac_tool_warned in 9646yes:) 9647{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9648$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9649ac_tool_warned=yes ;; 9650esac 9651 RANLIB=$ac_ct_RANLIB 9652 fi 9653else 9654 RANLIB="$ac_cv_prog_RANLIB" 9655fi 9656 9657# Find a good install program. We prefer a C program (faster), 9658# so one script is as good as another. But avoid the broken or 9659# incompatible versions: 9660# SysV /etc/install, /usr/sbin/install 9661# SunOS /usr/etc/install 9662# IRIX /sbin/install 9663# AIX /bin/install 9664# AmigaOS /C/install, which installs bootblocks on floppy discs 9665# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 9666# AFS /usr/afsws/bin/install, which mishandles nonexistent args 9667# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 9668# OS/2's system install, which has a completely different semantic 9669# ./install, which can be erroneously created by make from ./install.sh. 9670# Reject install programs that cannot install multiple files. 9671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 9672$as_echo_n "checking for a BSD-compatible install... " >&6; } 9673if test -z "$INSTALL"; then 9674if ${ac_cv_path_install+:} false; then : 9675 $as_echo_n "(cached) " >&6 9676else 9677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9678for as_dir in $PATH 9679do 9680 IFS=$as_save_IFS 9681 test -z "$as_dir" && as_dir=. 9682 # Account for people who put trailing slashes in PATH elements. 9683case $as_dir/ in #(( 9684 ./ | .// | /[cC]/* | \ 9685 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 9686 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 9687 /usr/ucb/* ) ;; 9688 *) 9689 # OSF1 and SCO ODT 3.0 have their own names for install. 9690 # Don't use installbsd from OSF since it installs stuff as root 9691 # by default. 9692 for ac_prog in ginstall scoinst install; do 9693 for ac_exec_ext in '' $ac_executable_extensions; do 9694 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 9695 if test $ac_prog = install && 9696 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 9697 # AIX install. It has an incompatible calling convention. 9698 : 9699 elif test $ac_prog = install && 9700 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 9701 # program-specific install script used by HP pwplus--don't use. 9702 : 9703 else 9704 rm -rf conftest.one conftest.two conftest.dir 9705 echo one > conftest.one 9706 echo two > conftest.two 9707 mkdir conftest.dir 9708 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 9709 test -s conftest.one && test -s conftest.two && 9710 test -s conftest.dir/conftest.one && 9711 test -s conftest.dir/conftest.two 9712 then 9713 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 9714 break 3 9715 fi 9716 fi 9717 fi 9718 done 9719 done 9720 ;; 9721esac 9722 9723 done 9724IFS=$as_save_IFS 9725 9726rm -rf conftest.one conftest.two conftest.dir 9727 9728fi 9729 if test "${ac_cv_path_install+set}" = set; then 9730 INSTALL=$ac_cv_path_install 9731 else 9732 # As a last resort, use the slow shell script. Don't cache a 9733 # value for INSTALL within a source directory, because that will 9734 # break other packages using the cache if that directory is 9735 # removed, or if the value is a relative name. 9736 INSTALL=$ac_install_sh 9737 fi 9738fi 9739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 9740$as_echo "$INSTALL" >&6; } 9741 9742# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 9743# It thinks the first close brace ends the variable substitution. 9744test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 9745 9746test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 9747 9748test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 9749 9750# Extract the first word of "rm", so it can be a program name with args. 9751set dummy rm; ac_word=$2 9752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9753$as_echo_n "checking for $ac_word... " >&6; } 9754if ${ac_cv_prog_RM+:} false; then : 9755 $as_echo_n "(cached) " >&6 9756else 9757 if test -n "$RM"; then 9758 ac_cv_prog_RM="$RM" # Let the user override the test. 9759else 9760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9761for as_dir in $PATH 9762do 9763 IFS=$as_save_IFS 9764 test -z "$as_dir" && as_dir=. 9765 for ac_exec_ext in '' $ac_executable_extensions; do 9766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9767 ac_cv_prog_RM="rm" 9768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9769 break 2 9770 fi 9771done 9772 done 9773IFS=$as_save_IFS 9774 9775fi 9776fi 9777RM=$ac_cv_prog_RM 9778if test -n "$RM"; then 9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 9780$as_echo "$RM" >&6; } 9781else 9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9783$as_echo "no" >&6; } 9784fi 9785 9786 9787# Extract the first word of "as", so it can be a program name with args. 9788set dummy as; ac_word=$2 9789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9790$as_echo_n "checking for $ac_word... " >&6; } 9791if ${ac_cv_prog_AS+:} false; then : 9792 $as_echo_n "(cached) " >&6 9793else 9794 if test -n "$AS"; then 9795 ac_cv_prog_AS="$AS" # Let the user override the test. 9796else 9797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9798for as_dir in $PATH 9799do 9800 IFS=$as_save_IFS 9801 test -z "$as_dir" && as_dir=. 9802 for ac_exec_ext in '' $ac_executable_extensions; do 9803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9804 ac_cv_prog_AS="as" 9805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9806 break 2 9807 fi 9808done 9809 done 9810IFS=$as_save_IFS 9811 9812fi 9813fi 9814AS=$ac_cv_prog_AS 9815if test -n "$AS"; then 9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 9817$as_echo "$AS" >&6; } 9818else 9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9820$as_echo "no" >&6; } 9821fi 9822 9823 9824# Extract the first word of "cpp", so it can be a program name with args. 9825set dummy cpp; ac_word=$2 9826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9827$as_echo_n "checking for $ac_word... " >&6; } 9828if ${ac_cv_prog_ASCPP+:} false; then : 9829 $as_echo_n "(cached) " >&6 9830else 9831 if test -n "$ASCPP"; then 9832 ac_cv_prog_ASCPP="$ASCPP" # Let the user override the test. 9833else 9834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9835for as_dir in $PATH 9836do 9837 IFS=$as_save_IFS 9838 test -z "$as_dir" && as_dir=. 9839 for ac_exec_ext in '' $ac_executable_extensions; do 9840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9841 ac_cv_prog_ASCPP="cpp" 9842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9843 break 2 9844 fi 9845done 9846 done 9847IFS=$as_save_IFS 9848 9849fi 9850fi 9851ASCPP=$ac_cv_prog_ASCPP 9852if test -n "$ASCPP"; then 9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCPP" >&5 9854$as_echo "$ASCPP" >&6; } 9855else 9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9857$as_echo "no" >&6; } 9858fi 9859 9860 9861if test -n "$ac_tool_prefix"; then 9862 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 9863set dummy ${ac_tool_prefix}ar; ac_word=$2 9864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9865$as_echo_n "checking for $ac_word... " >&6; } 9866if ${ac_cv_prog_AR+:} false; then : 9867 $as_echo_n "(cached) " >&6 9868else 9869 if test -n "$AR"; then 9870 ac_cv_prog_AR="$AR" # Let the user override the test. 9871else 9872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9873for as_dir in $PATH 9874do 9875 IFS=$as_save_IFS 9876 test -z "$as_dir" && as_dir=. 9877 for ac_exec_ext in '' $ac_executable_extensions; do 9878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9879 ac_cv_prog_AR="${ac_tool_prefix}ar" 9880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9881 break 2 9882 fi 9883done 9884 done 9885IFS=$as_save_IFS 9886 9887fi 9888fi 9889AR=$ac_cv_prog_AR 9890if test -n "$AR"; then 9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 9892$as_echo "$AR" >&6; } 9893else 9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9895$as_echo "no" >&6; } 9896fi 9897 9898 9899fi 9900if test -z "$ac_cv_prog_AR"; then 9901 ac_ct_AR=$AR 9902 # Extract the first word of "ar", so it can be a program name with args. 9903set dummy ar; ac_word=$2 9904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9905$as_echo_n "checking for $ac_word... " >&6; } 9906if ${ac_cv_prog_ac_ct_AR+:} false; then : 9907 $as_echo_n "(cached) " >&6 9908else 9909 if test -n "$ac_ct_AR"; then 9910 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 9911else 9912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9913for as_dir in $PATH 9914do 9915 IFS=$as_save_IFS 9916 test -z "$as_dir" && as_dir=. 9917 for ac_exec_ext in '' $ac_executable_extensions; do 9918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9919 ac_cv_prog_ac_ct_AR="ar" 9920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9921 break 2 9922 fi 9923done 9924 done 9925IFS=$as_save_IFS 9926 9927fi 9928fi 9929ac_ct_AR=$ac_cv_prog_ac_ct_AR 9930if test -n "$ac_ct_AR"; then 9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 9932$as_echo "$ac_ct_AR" >&6; } 9933else 9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9935$as_echo "no" >&6; } 9936fi 9937 9938 if test "x$ac_ct_AR" = x; then 9939 AR="ar" 9940 else 9941 case $cross_compiling:$ac_tool_warned in 9942yes:) 9943{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9944$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9945ac_tool_warned=yes ;; 9946esac 9947 AR=$ac_ct_AR 9948 fi 9949else 9950 AR="$ac_cv_prog_AR" 9951fi 9952 9953 9954 9955 9956 9957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 9958$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 9959if ${ac_cv_path_GREP+:} false; then : 9960 $as_echo_n "(cached) " >&6 9961else 9962 if test -z "$GREP"; then 9963 ac_path_GREP_found=false 9964 # Loop through the user's path and test for each of PROGNAME-LIST 9965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9966for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 9967do 9968 IFS=$as_save_IFS 9969 test -z "$as_dir" && as_dir=. 9970 for ac_prog in grep ggrep; do 9971 for ac_exec_ext in '' $ac_executable_extensions; do 9972 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 9973 as_fn_executable_p "$ac_path_GREP" || continue 9974# Check for GNU ac_path_GREP and select it if it is found. 9975 # Check for GNU $ac_path_GREP 9976case `"$ac_path_GREP" --version 2>&1` in 9977*GNU*) 9978 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 9979*) 9980 ac_count=0 9981 $as_echo_n 0123456789 >"conftest.in" 9982 while : 9983 do 9984 cat "conftest.in" "conftest.in" >"conftest.tmp" 9985 mv "conftest.tmp" "conftest.in" 9986 cp "conftest.in" "conftest.nl" 9987 $as_echo 'GREP' >> "conftest.nl" 9988 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 9989 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 9990 as_fn_arith $ac_count + 1 && ac_count=$as_val 9991 if test $ac_count -gt ${ac_path_GREP_max-0}; then 9992 # Best one so far, save it but keep looking for a better one 9993 ac_cv_path_GREP="$ac_path_GREP" 9994 ac_path_GREP_max=$ac_count 9995 fi 9996 # 10*(2^10) chars as input seems more than enough 9997 test $ac_count -gt 10 && break 9998 done 9999 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 10000esac 10001 10002 $ac_path_GREP_found && break 3 10003 done 10004 done 10005 done 10006IFS=$as_save_IFS 10007 if test -z "$ac_cv_path_GREP"; then 10008 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 10009 fi 10010else 10011 ac_cv_path_GREP=$GREP 10012fi 10013 10014fi 10015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 10016$as_echo "$ac_cv_path_GREP" >&6; } 10017 GREP="$ac_cv_path_GREP" 10018 10019 10020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 10021$as_echo_n "checking for egrep... " >&6; } 10022if ${ac_cv_path_EGREP+:} false; then : 10023 $as_echo_n "(cached) " >&6 10024else 10025 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 10026 then ac_cv_path_EGREP="$GREP -E" 10027 else 10028 if test -z "$EGREP"; then 10029 ac_path_EGREP_found=false 10030 # Loop through the user's path and test for each of PROGNAME-LIST 10031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10032for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 10033do 10034 IFS=$as_save_IFS 10035 test -z "$as_dir" && as_dir=. 10036 for ac_prog in egrep; do 10037 for ac_exec_ext in '' $ac_executable_extensions; do 10038 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 10039 as_fn_executable_p "$ac_path_EGREP" || continue 10040# Check for GNU ac_path_EGREP and select it if it is found. 10041 # Check for GNU $ac_path_EGREP 10042case `"$ac_path_EGREP" --version 2>&1` in 10043*GNU*) 10044 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 10045*) 10046 ac_count=0 10047 $as_echo_n 0123456789 >"conftest.in" 10048 while : 10049 do 10050 cat "conftest.in" "conftest.in" >"conftest.tmp" 10051 mv "conftest.tmp" "conftest.in" 10052 cp "conftest.in" "conftest.nl" 10053 $as_echo 'EGREP' >> "conftest.nl" 10054 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 10055 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 10056 as_fn_arith $ac_count + 1 && ac_count=$as_val 10057 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 10058 # Best one so far, save it but keep looking for a better one 10059 ac_cv_path_EGREP="$ac_path_EGREP" 10060 ac_path_EGREP_max=$ac_count 10061 fi 10062 # 10*(2^10) chars as input seems more than enough 10063 test $ac_count -gt 10 && break 10064 done 10065 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 10066esac 10067 10068 $ac_path_EGREP_found && break 3 10069 done 10070 done 10071 done 10072IFS=$as_save_IFS 10073 if test -z "$ac_cv_path_EGREP"; then 10074 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 10075 fi 10076else 10077 ac_cv_path_EGREP=$EGREP 10078fi 10079 10080 fi 10081fi 10082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 10083$as_echo "$ac_cv_path_EGREP" >&6; } 10084 EGREP="$ac_cv_path_EGREP" 10085 10086 10087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 10088$as_echo_n "checking for ANSI C header files... " >&6; } 10089if ${ac_cv_header_stdc+:} false; then : 10090 $as_echo_n "(cached) " >&6 10091else 10092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10093/* end confdefs.h. */ 10094#include <stdlib.h> 10095#include <stdarg.h> 10096#include <string.h> 10097#include <float.h> 10098 10099int 10100main () 10101{ 10102 10103 ; 10104 return 0; 10105} 10106_ACEOF 10107if ac_fn_c_try_compile "$LINENO"; then : 10108 ac_cv_header_stdc=yes 10109else 10110 ac_cv_header_stdc=no 10111fi 10112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10113 10114if test $ac_cv_header_stdc = yes; then 10115 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 10116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10117/* end confdefs.h. */ 10118#include <string.h> 10119 10120_ACEOF 10121if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10122 $EGREP "memchr" >/dev/null 2>&1; then : 10123 10124else 10125 ac_cv_header_stdc=no 10126fi 10127rm -f conftest* 10128 10129fi 10130 10131if test $ac_cv_header_stdc = yes; then 10132 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 10133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10134/* end confdefs.h. */ 10135#include <stdlib.h> 10136 10137_ACEOF 10138if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10139 $EGREP "free" >/dev/null 2>&1; then : 10140 10141else 10142 ac_cv_header_stdc=no 10143fi 10144rm -f conftest* 10145 10146fi 10147 10148if test $ac_cv_header_stdc = yes; then 10149 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 10150 if test "$cross_compiling" = yes; then : 10151 : 10152else 10153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10154/* end confdefs.h. */ 10155#include <ctype.h> 10156#include <stdlib.h> 10157#if ((' ' & 0x0FF) == 0x020) 10158# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 10159# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 10160#else 10161# define ISLOWER(c) \ 10162 (('a' <= (c) && (c) <= 'i') \ 10163 || ('j' <= (c) && (c) <= 'r') \ 10164 || ('s' <= (c) && (c) <= 'z')) 10165# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 10166#endif 10167 10168#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 10169int 10170main () 10171{ 10172 int i; 10173 for (i = 0; i < 256; i++) 10174 if (XOR (islower (i), ISLOWER (i)) 10175 || toupper (i) != TOUPPER (i)) 10176 return 2; 10177 return 0; 10178} 10179_ACEOF 10180if ac_fn_c_try_run "$LINENO"; then : 10181 10182else 10183 ac_cv_header_stdc=no 10184fi 10185rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10186 conftest.$ac_objext conftest.beam conftest.$ac_ext 10187fi 10188 10189fi 10190fi 10191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 10192$as_echo "$ac_cv_header_stdc" >&6; } 10193if test $ac_cv_header_stdc = yes; then 10194 10195$as_echo "#define STDC_HEADERS 1" >>confdefs.h 10196 10197fi 10198 10199# On IRIX 5.3, sys/types and inttypes.h are conflicting. 10200for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 10201 inttypes.h stdint.h unistd.h 10202do : 10203 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10204ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 10205" 10206if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10207 cat >>confdefs.h <<_ACEOF 10208#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10209_ACEOF 10210 10211fi 10212 10213done 10214 10215 10216 10217 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 10218if test "x$ac_cv_header_minix_config_h" = xyes; then : 10219 MINIX=yes 10220else 10221 MINIX= 10222fi 10223 10224 10225 if test "$MINIX" = yes; then 10226 10227$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 10228 10229 10230$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 10231 10232 10233$as_echo "#define _MINIX 1" >>confdefs.h 10234 10235 fi 10236 10237 10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 10239$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 10240if ${ac_cv_safe_to_define___extensions__+:} false; then : 10241 $as_echo_n "(cached) " >&6 10242else 10243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10244/* end confdefs.h. */ 10245 10246# define __EXTENSIONS__ 1 10247 $ac_includes_default 10248int 10249main () 10250{ 10251 10252 ; 10253 return 0; 10254} 10255_ACEOF 10256if ac_fn_c_try_compile "$LINENO"; then : 10257 ac_cv_safe_to_define___extensions__=yes 10258else 10259 ac_cv_safe_to_define___extensions__=no 10260fi 10261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10262fi 10263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 10264$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 10265 test $ac_cv_safe_to_define___extensions__ = yes && 10266 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 10267 10268 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 10269 10270 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 10271 10272 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 10273 10274 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 10275 10276 10277 10278 10279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 10280$as_echo_n "checking for library containing strerror... " >&6; } 10281if ${ac_cv_search_strerror+:} false; then : 10282 $as_echo_n "(cached) " >&6 10283else 10284 ac_func_search_save_LIBS=$LIBS 10285cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10286/* end confdefs.h. */ 10287 10288/* Override any GCC internal prototype to avoid an error. 10289 Use char because int might match the return type of a GCC 10290 builtin and then its argument prototype would still apply. */ 10291#ifdef __cplusplus 10292extern "C" 10293#endif 10294char strerror (); 10295int 10296main () 10297{ 10298return strerror (); 10299 ; 10300 return 0; 10301} 10302_ACEOF 10303for ac_lib in '' cposix; do 10304 if test -z "$ac_lib"; then 10305 ac_res="none required" 10306 else 10307 ac_res=-l$ac_lib 10308 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10309 fi 10310 if ac_fn_c_try_link "$LINENO"; then : 10311 ac_cv_search_strerror=$ac_res 10312fi 10313rm -f core conftest.err conftest.$ac_objext \ 10314 conftest$ac_exeext 10315 if ${ac_cv_search_strerror+:} false; then : 10316 break 10317fi 10318done 10319if ${ac_cv_search_strerror+:} false; then : 10320 10321else 10322 ac_cv_search_strerror=no 10323fi 10324rm conftest.$ac_ext 10325LIBS=$ac_func_search_save_LIBS 10326fi 10327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 10328$as_echo "$ac_cv_search_strerror" >&6; } 10329ac_res=$ac_cv_search_strerror 10330if test "$ac_res" != no; then : 10331 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10332 10333fi 10334 10335 10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system uses EBCDIC" >&5 10337$as_echo_n "checking whether system uses EBCDIC... " >&6; } 10338if ${ac_cv_ebcdic+:} false; then : 10339 $as_echo_n "(cached) " >&6 10340else 10341 10342 if test "$cross_compiling" = yes; then : 10343 10344 ac_cv_ebcdic="no" 10345 10346else 10347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10348/* end confdefs.h. */ 10349 10350int main(void) { 10351 return (unsigned char)'A' != (unsigned char)0xC1; 10352} 10353 10354_ACEOF 10355if ac_fn_c_try_run "$LINENO"; then : 10356 10357 ac_cv_ebcdic="yes" 10358 10359else 10360 10361 ac_cv_ebcdic="no" 10362 10363fi 10364rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10365 conftest.$ac_objext conftest.beam conftest.$ac_ext 10366fi 10367 10368fi 10369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ebcdic" >&5 10370$as_echo "$ac_cv_ebcdic" >&6; } 10371 if test "$ac_cv_ebcdic" = "yes"; then 10372 apr_charset_ebcdic=1 10373 else 10374 apr_charset_ebcdic=0 10375 fi 10376 10377 10378 10379APR_LIBNAME="apr${libsuffix}" 10380 10381 10382echo "performing libtool configuration..." 10383 10384# Check whether --enable-experimental-libtool was given. 10385if test "${enable_experimental_libtool+set}" = set; then : 10386 enableval=$enable_experimental_libtool; experimental_libtool=$enableval 10387else 10388 experimental_libtool=no 10389fi 10390 10391 10392if test "x$Xsed" = "x"; then 10393 Xsed="$SED -e 1s/^X//" 10394fi 10395 10396case $host in 10397*-os2*) 10398 # Use a custom-made libtool replacement 10399 echo "using aplibtool" 10400 LIBTOOL="$srcdir/build/aplibtool" 10401 gcc $CFLAGS $CPPFLAGS -o $LIBTOOL.exe $LIBTOOL.c 10402 ;; 10403*) 10404 if test "x$LTFLAGS" = "x"; then 10405 LTFLAGS='--silent' 10406 fi 10407 if test "$experimental_libtool" = "yes"; then 10408 # Use a custom-made libtool replacement 10409 echo "using jlibtool" 10410 LIBTOOL="$apr_builddir/libtool" 10411 LIBTOOL_SRC="$apr_srcdir/build/jlibtool.c" 10412 $CC $CFLAGS $CPPFLAGS -o $LIBTOOL $LIBTOOL_SRC 10413 eval `$apr_builddir/libtool --config | grep "^shlibpath_var=[A-Z_]*$"` 10414 if test "x$shlibpath_var" = "x"; then 10415 shlibpath_var=REPLACE_WITH_YOUR_SHLIBPATH_VAR 10416 fi 10417 else 10418 enable_win32_dll=yes 10419 10420case $host in 10421*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 10422 if test -n "$ac_tool_prefix"; then 10423 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 10424set dummy ${ac_tool_prefix}as; ac_word=$2 10425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10426$as_echo_n "checking for $ac_word... " >&6; } 10427if ${ac_cv_prog_AS+:} false; then : 10428 $as_echo_n "(cached) " >&6 10429else 10430 if test -n "$AS"; then 10431 ac_cv_prog_AS="$AS" # Let the user override the test. 10432else 10433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10434for as_dir in $PATH 10435do 10436 IFS=$as_save_IFS 10437 test -z "$as_dir" && as_dir=. 10438 for ac_exec_ext in '' $ac_executable_extensions; do 10439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10440 ac_cv_prog_AS="${ac_tool_prefix}as" 10441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10442 break 2 10443 fi 10444done 10445 done 10446IFS=$as_save_IFS 10447 10448fi 10449fi 10450AS=$ac_cv_prog_AS 10451if test -n "$AS"; then 10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 10453$as_echo "$AS" >&6; } 10454else 10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10456$as_echo "no" >&6; } 10457fi 10458 10459 10460fi 10461if test -z "$ac_cv_prog_AS"; then 10462 ac_ct_AS=$AS 10463 # Extract the first word of "as", so it can be a program name with args. 10464set dummy as; ac_word=$2 10465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10466$as_echo_n "checking for $ac_word... " >&6; } 10467if ${ac_cv_prog_ac_ct_AS+:} false; then : 10468 $as_echo_n "(cached) " >&6 10469else 10470 if test -n "$ac_ct_AS"; then 10471 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 10472else 10473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10474for as_dir in $PATH 10475do 10476 IFS=$as_save_IFS 10477 test -z "$as_dir" && as_dir=. 10478 for ac_exec_ext in '' $ac_executable_extensions; do 10479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10480 ac_cv_prog_ac_ct_AS="as" 10481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10482 break 2 10483 fi 10484done 10485 done 10486IFS=$as_save_IFS 10487 10488fi 10489fi 10490ac_ct_AS=$ac_cv_prog_ac_ct_AS 10491if test -n "$ac_ct_AS"; then 10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 10493$as_echo "$ac_ct_AS" >&6; } 10494else 10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10496$as_echo "no" >&6; } 10497fi 10498 10499 if test "x$ac_ct_AS" = x; then 10500 AS="false" 10501 else 10502 case $cross_compiling:$ac_tool_warned in 10503yes:) 10504{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10505$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10506ac_tool_warned=yes ;; 10507esac 10508 AS=$ac_ct_AS 10509 fi 10510else 10511 AS="$ac_cv_prog_AS" 10512fi 10513 10514 if test -n "$ac_tool_prefix"; then 10515 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 10516set dummy ${ac_tool_prefix}dlltool; ac_word=$2 10517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10518$as_echo_n "checking for $ac_word... " >&6; } 10519if ${ac_cv_prog_DLLTOOL+:} false; then : 10520 $as_echo_n "(cached) " >&6 10521else 10522 if test -n "$DLLTOOL"; then 10523 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 10524else 10525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10526for as_dir in $PATH 10527do 10528 IFS=$as_save_IFS 10529 test -z "$as_dir" && as_dir=. 10530 for ac_exec_ext in '' $ac_executable_extensions; do 10531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10532 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 10533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10534 break 2 10535 fi 10536done 10537 done 10538IFS=$as_save_IFS 10539 10540fi 10541fi 10542DLLTOOL=$ac_cv_prog_DLLTOOL 10543if test -n "$DLLTOOL"; then 10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 10545$as_echo "$DLLTOOL" >&6; } 10546else 10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10548$as_echo "no" >&6; } 10549fi 10550 10551 10552fi 10553if test -z "$ac_cv_prog_DLLTOOL"; then 10554 ac_ct_DLLTOOL=$DLLTOOL 10555 # Extract the first word of "dlltool", so it can be a program name with args. 10556set dummy dlltool; ac_word=$2 10557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10558$as_echo_n "checking for $ac_word... " >&6; } 10559if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 10560 $as_echo_n "(cached) " >&6 10561else 10562 if test -n "$ac_ct_DLLTOOL"; then 10563 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 10564else 10565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10566for as_dir in $PATH 10567do 10568 IFS=$as_save_IFS 10569 test -z "$as_dir" && as_dir=. 10570 for ac_exec_ext in '' $ac_executable_extensions; do 10571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10572 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 10573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10574 break 2 10575 fi 10576done 10577 done 10578IFS=$as_save_IFS 10579 10580fi 10581fi 10582ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 10583if test -n "$ac_ct_DLLTOOL"; then 10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 10585$as_echo "$ac_ct_DLLTOOL" >&6; } 10586else 10587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10588$as_echo "no" >&6; } 10589fi 10590 10591 if test "x$ac_ct_DLLTOOL" = x; then 10592 DLLTOOL="false" 10593 else 10594 case $cross_compiling:$ac_tool_warned in 10595yes:) 10596{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10597$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10598ac_tool_warned=yes ;; 10599esac 10600 DLLTOOL=$ac_ct_DLLTOOL 10601 fi 10602else 10603 DLLTOOL="$ac_cv_prog_DLLTOOL" 10604fi 10605 10606 if test -n "$ac_tool_prefix"; then 10607 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 10608set dummy ${ac_tool_prefix}objdump; ac_word=$2 10609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10610$as_echo_n "checking for $ac_word... " >&6; } 10611if ${ac_cv_prog_OBJDUMP+:} false; then : 10612 $as_echo_n "(cached) " >&6 10613else 10614 if test -n "$OBJDUMP"; then 10615 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 10616else 10617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10618for as_dir in $PATH 10619do 10620 IFS=$as_save_IFS 10621 test -z "$as_dir" && as_dir=. 10622 for ac_exec_ext in '' $ac_executable_extensions; do 10623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10624 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 10625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10626 break 2 10627 fi 10628done 10629 done 10630IFS=$as_save_IFS 10631 10632fi 10633fi 10634OBJDUMP=$ac_cv_prog_OBJDUMP 10635if test -n "$OBJDUMP"; then 10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 10637$as_echo "$OBJDUMP" >&6; } 10638else 10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10640$as_echo "no" >&6; } 10641fi 10642 10643 10644fi 10645if test -z "$ac_cv_prog_OBJDUMP"; then 10646 ac_ct_OBJDUMP=$OBJDUMP 10647 # Extract the first word of "objdump", so it can be a program name with args. 10648set dummy objdump; ac_word=$2 10649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10650$as_echo_n "checking for $ac_word... " >&6; } 10651if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 10652 $as_echo_n "(cached) " >&6 10653else 10654 if test -n "$ac_ct_OBJDUMP"; then 10655 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 10656else 10657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10658for as_dir in $PATH 10659do 10660 IFS=$as_save_IFS 10661 test -z "$as_dir" && as_dir=. 10662 for ac_exec_ext in '' $ac_executable_extensions; do 10663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10664 ac_cv_prog_ac_ct_OBJDUMP="objdump" 10665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10666 break 2 10667 fi 10668done 10669 done 10670IFS=$as_save_IFS 10671 10672fi 10673fi 10674ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 10675if test -n "$ac_ct_OBJDUMP"; then 10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 10677$as_echo "$ac_ct_OBJDUMP" >&6; } 10678else 10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10680$as_echo "no" >&6; } 10681fi 10682 10683 if test "x$ac_ct_OBJDUMP" = x; then 10684 OBJDUMP="false" 10685 else 10686 case $cross_compiling:$ac_tool_warned in 10687yes:) 10688{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10689$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10690ac_tool_warned=yes ;; 10691esac 10692 OBJDUMP=$ac_ct_OBJDUMP 10693 fi 10694else 10695 OBJDUMP="$ac_cv_prog_OBJDUMP" 10696fi 10697 10698 ;; 10699esac 10700 10701test -z "$AS" && AS=as 10702 10703 10704 10705 10706 10707test -z "$DLLTOOL" && DLLTOOL=dlltool 10708 10709 10710 10711 10712 10713test -z "$OBJDUMP" && OBJDUMP=objdump 10714 10715 10716 10717 10718 10719 10720 10721case `pwd` in 10722 *\ * | *\ *) 10723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 10724$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 10725esac 10726 10727 10728 10729macro_version='2.4.6' 10730macro_revision='2.4.6' 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744ltmain=$ac_aux_dir/ltmain.sh 10745 10746# Backslashify metacharacters that are still active within 10747# double-quoted strings. 10748sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 10749 10750# Same as above, but do not quote variable references. 10751double_quote_subst='s/\(["`\\]\)/\\\1/g' 10752 10753# Sed substitution to delay expansion of an escaped shell variable in a 10754# double_quote_subst'ed string. 10755delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 10756 10757# Sed substitution to delay expansion of an escaped single quote. 10758delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 10759 10760# Sed substitution to avoid accidental globbing in evaled expressions 10761no_glob_subst='s/\*/\\\*/g' 10762 10763ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10764ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 10765ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 10766 10767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 10768$as_echo_n "checking how to print strings... " >&6; } 10769# Test print first, because it will be a builtin if present. 10770if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 10771 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 10772 ECHO='print -r --' 10773elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 10774 ECHO='printf %s\n' 10775else 10776 # Use this function as a fallback that always works. 10777 func_fallback_echo () 10778 { 10779 eval 'cat <<_LTECHO_EOF 10780$1 10781_LTECHO_EOF' 10782 } 10783 ECHO='func_fallback_echo' 10784fi 10785 10786# func_echo_all arg... 10787# Invoke $ECHO with all args, space-separated. 10788func_echo_all () 10789{ 10790 $ECHO "" 10791} 10792 10793case $ECHO in 10794 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 10795$as_echo "printf" >&6; } ;; 10796 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 10797$as_echo "print -r" >&6; } ;; 10798 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 10799$as_echo "cat" >&6; } ;; 10800esac 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 10816$as_echo_n "checking for a sed that does not truncate output... " >&6; } 10817if ${ac_cv_path_SED+:} false; then : 10818 $as_echo_n "(cached) " >&6 10819else 10820 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 10821 for ac_i in 1 2 3 4 5 6 7; do 10822 ac_script="$ac_script$as_nl$ac_script" 10823 done 10824 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 10825 { ac_script=; unset ac_script;} 10826 if test -z "$SED"; then 10827 ac_path_SED_found=false 10828 # Loop through the user's path and test for each of PROGNAME-LIST 10829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10830for as_dir in $PATH 10831do 10832 IFS=$as_save_IFS 10833 test -z "$as_dir" && as_dir=. 10834 for ac_prog in sed gsed; do 10835 for ac_exec_ext in '' $ac_executable_extensions; do 10836 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 10837 as_fn_executable_p "$ac_path_SED" || continue 10838# Check for GNU ac_path_SED and select it if it is found. 10839 # Check for GNU $ac_path_SED 10840case `"$ac_path_SED" --version 2>&1` in 10841*GNU*) 10842 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 10843*) 10844 ac_count=0 10845 $as_echo_n 0123456789 >"conftest.in" 10846 while : 10847 do 10848 cat "conftest.in" "conftest.in" >"conftest.tmp" 10849 mv "conftest.tmp" "conftest.in" 10850 cp "conftest.in" "conftest.nl" 10851 $as_echo '' >> "conftest.nl" 10852 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 10853 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 10854 as_fn_arith $ac_count + 1 && ac_count=$as_val 10855 if test $ac_count -gt ${ac_path_SED_max-0}; then 10856 # Best one so far, save it but keep looking for a better one 10857 ac_cv_path_SED="$ac_path_SED" 10858 ac_path_SED_max=$ac_count 10859 fi 10860 # 10*(2^10) chars as input seems more than enough 10861 test $ac_count -gt 10 && break 10862 done 10863 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 10864esac 10865 10866 $ac_path_SED_found && break 3 10867 done 10868 done 10869 done 10870IFS=$as_save_IFS 10871 if test -z "$ac_cv_path_SED"; then 10872 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 10873 fi 10874else 10875 ac_cv_path_SED=$SED 10876fi 10877 10878fi 10879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 10880$as_echo "$ac_cv_path_SED" >&6; } 10881 SED="$ac_cv_path_SED" 10882 rm -f conftest.sed 10883 10884test -z "$SED" && SED=sed 10885Xsed="$SED -e 1s/^X//" 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 10898$as_echo_n "checking for fgrep... " >&6; } 10899if ${ac_cv_path_FGREP+:} false; then : 10900 $as_echo_n "(cached) " >&6 10901else 10902 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 10903 then ac_cv_path_FGREP="$GREP -F" 10904 else 10905 if test -z "$FGREP"; then 10906 ac_path_FGREP_found=false 10907 # Loop through the user's path and test for each of PROGNAME-LIST 10908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10909for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 10910do 10911 IFS=$as_save_IFS 10912 test -z "$as_dir" && as_dir=. 10913 for ac_prog in fgrep; do 10914 for ac_exec_ext in '' $ac_executable_extensions; do 10915 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 10916 as_fn_executable_p "$ac_path_FGREP" || continue 10917# Check for GNU ac_path_FGREP and select it if it is found. 10918 # Check for GNU $ac_path_FGREP 10919case `"$ac_path_FGREP" --version 2>&1` in 10920*GNU*) 10921 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 10922*) 10923 ac_count=0 10924 $as_echo_n 0123456789 >"conftest.in" 10925 while : 10926 do 10927 cat "conftest.in" "conftest.in" >"conftest.tmp" 10928 mv "conftest.tmp" "conftest.in" 10929 cp "conftest.in" "conftest.nl" 10930 $as_echo 'FGREP' >> "conftest.nl" 10931 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 10932 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 10933 as_fn_arith $ac_count + 1 && ac_count=$as_val 10934 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 10935 # Best one so far, save it but keep looking for a better one 10936 ac_cv_path_FGREP="$ac_path_FGREP" 10937 ac_path_FGREP_max=$ac_count 10938 fi 10939 # 10*(2^10) chars as input seems more than enough 10940 test $ac_count -gt 10 && break 10941 done 10942 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 10943esac 10944 10945 $ac_path_FGREP_found && break 3 10946 done 10947 done 10948 done 10949IFS=$as_save_IFS 10950 if test -z "$ac_cv_path_FGREP"; then 10951 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 10952 fi 10953else 10954 ac_cv_path_FGREP=$FGREP 10955fi 10956 10957 fi 10958fi 10959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 10960$as_echo "$ac_cv_path_FGREP" >&6; } 10961 FGREP="$ac_cv_path_FGREP" 10962 10963 10964test -z "$GREP" && GREP=grep 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984# Check whether --with-gnu-ld was given. 10985if test "${with_gnu_ld+set}" = set; then : 10986 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 10987else 10988 with_gnu_ld=no 10989fi 10990 10991ac_prog=ld 10992if test yes = "$GCC"; then 10993 # Check if gcc -print-prog-name=ld gives a path. 10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 10995$as_echo_n "checking for ld used by $CC... " >&6; } 10996 case $host in 10997 *-*-mingw*) 10998 # gcc leaves a trailing carriage return, which upsets mingw 10999 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11000 *) 11001 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11002 esac 11003 case $ac_prog in 11004 # Accept absolute paths. 11005 [\\/]* | ?:[\\/]*) 11006 re_direlt='/[^/][^/]*/\.\./' 11007 # Canonicalize the pathname of ld 11008 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11009 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11010 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11011 done 11012 test -z "$LD" && LD=$ac_prog 11013 ;; 11014 "") 11015 # If it fails, then pretend we aren't using GCC. 11016 ac_prog=ld 11017 ;; 11018 *) 11019 # If it is relative, then search for the first ld in PATH. 11020 with_gnu_ld=unknown 11021 ;; 11022 esac 11023elif test yes = "$with_gnu_ld"; then 11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11025$as_echo_n "checking for GNU ld... " >&6; } 11026else 11027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11028$as_echo_n "checking for non-GNU ld... " >&6; } 11029fi 11030if ${lt_cv_path_LD+:} false; then : 11031 $as_echo_n "(cached) " >&6 11032else 11033 if test -z "$LD"; then 11034 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11035 for ac_dir in $PATH; do 11036 IFS=$lt_save_ifs 11037 test -z "$ac_dir" && ac_dir=. 11038 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11039 lt_cv_path_LD=$ac_dir/$ac_prog 11040 # Check to see if the program is GNU ld. I'd rather use --version, 11041 # but apparently some variants of GNU ld only accept -v. 11042 # Break only if it was the GNU/non-GNU ld that we prefer. 11043 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11044 *GNU* | *'with BFD'*) 11045 test no != "$with_gnu_ld" && break 11046 ;; 11047 *) 11048 test yes != "$with_gnu_ld" && break 11049 ;; 11050 esac 11051 fi 11052 done 11053 IFS=$lt_save_ifs 11054else 11055 lt_cv_path_LD=$LD # Let the user override the test with a path. 11056fi 11057fi 11058 11059LD=$lt_cv_path_LD 11060if test -n "$LD"; then 11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11062$as_echo "$LD" >&6; } 11063else 11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11065$as_echo "no" >&6; } 11066fi 11067test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11069$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11070if ${lt_cv_prog_gnu_ld+:} false; then : 11071 $as_echo_n "(cached) " >&6 11072else 11073 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11074case `$LD -v 2>&1 </dev/null` in 11075*GNU* | *'with BFD'*) 11076 lt_cv_prog_gnu_ld=yes 11077 ;; 11078*) 11079 lt_cv_prog_gnu_ld=no 11080 ;; 11081esac 11082fi 11083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11084$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11085with_gnu_ld=$lt_cv_prog_gnu_ld 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11096$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11097if ${lt_cv_path_NM+:} false; then : 11098 $as_echo_n "(cached) " >&6 11099else 11100 if test -n "$NM"; then 11101 # Let the user override the test. 11102 lt_cv_path_NM=$NM 11103else 11104 lt_nm_to_check=${ac_tool_prefix}nm 11105 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11106 lt_nm_to_check="$lt_nm_to_check nm" 11107 fi 11108 for lt_tmp_nm in $lt_nm_to_check; do 11109 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11110 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11111 IFS=$lt_save_ifs 11112 test -z "$ac_dir" && ac_dir=. 11113 tmp_nm=$ac_dir/$lt_tmp_nm 11114 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 11115 # Check to see if the nm accepts a BSD-compat flag. 11116 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 11117 # nm: unknown option "B" ignored 11118 # Tru64's nm complains that /dev/null is an invalid object file 11119 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 11120 case $build_os in 11121 mingw*) lt_bad_file=conftest.nm/nofile ;; 11122 *) lt_bad_file=/dev/null ;; 11123 esac 11124 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 11125 *$lt_bad_file* | *'Invalid file or object type'*) 11126 lt_cv_path_NM="$tmp_nm -B" 11127 break 2 11128 ;; 11129 *) 11130 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 11131 */dev/null*) 11132 lt_cv_path_NM="$tmp_nm -p" 11133 break 2 11134 ;; 11135 *) 11136 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11137 continue # so that we can try to find one that supports BSD flags 11138 ;; 11139 esac 11140 ;; 11141 esac 11142 fi 11143 done 11144 IFS=$lt_save_ifs 11145 done 11146 : ${lt_cv_path_NM=no} 11147fi 11148fi 11149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11150$as_echo "$lt_cv_path_NM" >&6; } 11151if test no != "$lt_cv_path_NM"; then 11152 NM=$lt_cv_path_NM 11153else 11154 # Didn't find any BSD compatible name lister, look for dumpbin. 11155 if test -n "$DUMPBIN"; then : 11156 # Let the user override the test. 11157 else 11158 if test -n "$ac_tool_prefix"; then 11159 for ac_prog in dumpbin "link -dump" 11160 do 11161 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11162set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11164$as_echo_n "checking for $ac_word... " >&6; } 11165if ${ac_cv_prog_DUMPBIN+:} false; then : 11166 $as_echo_n "(cached) " >&6 11167else 11168 if test -n "$DUMPBIN"; then 11169 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11170else 11171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11172for as_dir in $PATH 11173do 11174 IFS=$as_save_IFS 11175 test -z "$as_dir" && as_dir=. 11176 for ac_exec_ext in '' $ac_executable_extensions; do 11177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11178 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11180 break 2 11181 fi 11182done 11183 done 11184IFS=$as_save_IFS 11185 11186fi 11187fi 11188DUMPBIN=$ac_cv_prog_DUMPBIN 11189if test -n "$DUMPBIN"; then 11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11191$as_echo "$DUMPBIN" >&6; } 11192else 11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11194$as_echo "no" >&6; } 11195fi 11196 11197 11198 test -n "$DUMPBIN" && break 11199 done 11200fi 11201if test -z "$DUMPBIN"; then 11202 ac_ct_DUMPBIN=$DUMPBIN 11203 for ac_prog in dumpbin "link -dump" 11204do 11205 # Extract the first word of "$ac_prog", so it can be a program name with args. 11206set dummy $ac_prog; ac_word=$2 11207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11208$as_echo_n "checking for $ac_word... " >&6; } 11209if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 11210 $as_echo_n "(cached) " >&6 11211else 11212 if test -n "$ac_ct_DUMPBIN"; then 11213 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11214else 11215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11216for as_dir in $PATH 11217do 11218 IFS=$as_save_IFS 11219 test -z "$as_dir" && as_dir=. 11220 for ac_exec_ext in '' $ac_executable_extensions; do 11221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11222 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11224 break 2 11225 fi 11226done 11227 done 11228IFS=$as_save_IFS 11229 11230fi 11231fi 11232ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11233if test -n "$ac_ct_DUMPBIN"; then 11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11235$as_echo "$ac_ct_DUMPBIN" >&6; } 11236else 11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11238$as_echo "no" >&6; } 11239fi 11240 11241 11242 test -n "$ac_ct_DUMPBIN" && break 11243done 11244 11245 if test "x$ac_ct_DUMPBIN" = x; then 11246 DUMPBIN=":" 11247 else 11248 case $cross_compiling:$ac_tool_warned in 11249yes:) 11250{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11252ac_tool_warned=yes ;; 11253esac 11254 DUMPBIN=$ac_ct_DUMPBIN 11255 fi 11256fi 11257 11258 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 11259 *COFF*) 11260 DUMPBIN="$DUMPBIN -symbols -headers" 11261 ;; 11262 *) 11263 DUMPBIN=: 11264 ;; 11265 esac 11266 fi 11267 11268 if test : != "$DUMPBIN"; then 11269 NM=$DUMPBIN 11270 fi 11271fi 11272test -z "$NM" && NM=nm 11273 11274 11275 11276 11277 11278 11279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11280$as_echo_n "checking the name lister ($NM) interface... " >&6; } 11281if ${lt_cv_nm_interface+:} false; then : 11282 $as_echo_n "(cached) " >&6 11283else 11284 lt_cv_nm_interface="BSD nm" 11285 echo "int some_variable = 0;" > conftest.$ac_ext 11286 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 11287 (eval "$ac_compile" 2>conftest.err) 11288 cat conftest.err >&5 11289 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 11290 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 11291 cat conftest.err >&5 11292 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 11293 cat conftest.out >&5 11294 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 11295 lt_cv_nm_interface="MS dumpbin" 11296 fi 11297 rm -f conftest* 11298fi 11299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 11300$as_echo "$lt_cv_nm_interface" >&6; } 11301 11302# find the maximum length of command line arguments 11303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 11304$as_echo_n "checking the maximum length of command line arguments... " >&6; } 11305if ${lt_cv_sys_max_cmd_len+:} false; then : 11306 $as_echo_n "(cached) " >&6 11307else 11308 i=0 11309 teststring=ABCD 11310 11311 case $build_os in 11312 msdosdjgpp*) 11313 # On DJGPP, this test can blow up pretty badly due to problems in libc 11314 # (any single argument exceeding 2000 bytes causes a buffer overrun 11315 # during glob expansion). Even if it were fixed, the result of this 11316 # check would be larger than it should be. 11317 lt_cv_sys_max_cmd_len=12288; # 12K is about right 11318 ;; 11319 11320 gnu*) 11321 # Under GNU Hurd, this test is not required because there is 11322 # no limit to the length of command line arguments. 11323 # Libtool will interpret -1 as no limit whatsoever 11324 lt_cv_sys_max_cmd_len=-1; 11325 ;; 11326 11327 cygwin* | mingw* | cegcc*) 11328 # On Win9x/ME, this test blows up -- it succeeds, but takes 11329 # about 5 minutes as the teststring grows exponentially. 11330 # Worse, since 9x/ME are not pre-emptively multitasking, 11331 # you end up with a "frozen" computer, even though with patience 11332 # the test eventually succeeds (with a max line length of 256k). 11333 # Instead, let's just punt: use the minimum linelength reported by 11334 # all of the supported platforms: 8192 (on NT/2K/XP). 11335 lt_cv_sys_max_cmd_len=8192; 11336 ;; 11337 11338 mint*) 11339 # On MiNT this can take a long time and run out of memory. 11340 lt_cv_sys_max_cmd_len=8192; 11341 ;; 11342 11343 amigaos*) 11344 # On AmigaOS with pdksh, this test takes hours, literally. 11345 # So we just punt and use a minimum line length of 8192. 11346 lt_cv_sys_max_cmd_len=8192; 11347 ;; 11348 11349 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 11350 # This has been around since 386BSD, at least. Likely further. 11351 if test -x /sbin/sysctl; then 11352 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 11353 elif test -x /usr/sbin/sysctl; then 11354 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 11355 else 11356 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 11357 fi 11358 # And add a safety zone 11359 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11360 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11361 ;; 11362 11363 interix*) 11364 # We know the value 262144 and hardcode it with a safety zone (like BSD) 11365 lt_cv_sys_max_cmd_len=196608 11366 ;; 11367 11368 os2*) 11369 # The test takes a long time on OS/2. 11370 lt_cv_sys_max_cmd_len=8192 11371 ;; 11372 11373 osf*) 11374 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 11375 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 11376 # nice to cause kernel panics so lets avoid the loop below. 11377 # First set a reasonable default. 11378 lt_cv_sys_max_cmd_len=16384 11379 # 11380 if test -x /sbin/sysconfig; then 11381 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 11382 *1*) lt_cv_sys_max_cmd_len=-1 ;; 11383 esac 11384 fi 11385 ;; 11386 sco3.2v5*) 11387 lt_cv_sys_max_cmd_len=102400 11388 ;; 11389 sysv5* | sco5v6* | sysv4.2uw2*) 11390 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 11391 if test -n "$kargmax"; then 11392 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 11393 else 11394 lt_cv_sys_max_cmd_len=32768 11395 fi 11396 ;; 11397 *) 11398 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 11399 if test -n "$lt_cv_sys_max_cmd_len" && \ 11400 test undefined != "$lt_cv_sys_max_cmd_len"; then 11401 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11402 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11403 else 11404 # Make teststring a little bigger before we do anything with it. 11405 # a 1K string should be a reasonable start. 11406 for i in 1 2 3 4 5 6 7 8; do 11407 teststring=$teststring$teststring 11408 done 11409 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 11410 # If test is not a shell built-in, we'll probably end up computing a 11411 # maximum length that is only half of the actual maximum length, but 11412 # we can't tell. 11413 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 11414 = "X$teststring$teststring"; } >/dev/null 2>&1 && 11415 test 17 != "$i" # 1/2 MB should be enough 11416 do 11417 i=`expr $i + 1` 11418 teststring=$teststring$teststring 11419 done 11420 # Only check the string length outside the loop. 11421 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 11422 teststring= 11423 # Add a significant safety factor because C++ compilers can tack on 11424 # massive amounts of additional arguments before passing them to the 11425 # linker. It appears as though 1/2 is a usable value. 11426 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 11427 fi 11428 ;; 11429 esac 11430 11431fi 11432 11433if test -n "$lt_cv_sys_max_cmd_len"; then 11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 11435$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 11436else 11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 11438$as_echo "none" >&6; } 11439fi 11440max_cmd_len=$lt_cv_sys_max_cmd_len 11441 11442 11443 11444 11445 11446 11447: ${CP="cp -f"} 11448: ${MV="mv -f"} 11449: ${RM="rm -f"} 11450 11451if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11452 lt_unset=unset 11453else 11454 lt_unset=false 11455fi 11456 11457 11458 11459 11460 11461# test EBCDIC or ASCII 11462case `echo X|tr X '\101'` in 11463 A) # ASCII based system 11464 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 11465 lt_SP2NL='tr \040 \012' 11466 lt_NL2SP='tr \015\012 \040\040' 11467 ;; 11468 *) # EBCDIC based system 11469 lt_SP2NL='tr \100 \n' 11470 lt_NL2SP='tr \r\n \100\100' 11471 ;; 11472esac 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 11483$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 11484if ${lt_cv_to_host_file_cmd+:} false; then : 11485 $as_echo_n "(cached) " >&6 11486else 11487 case $host in 11488 *-*-mingw* ) 11489 case $build in 11490 *-*-mingw* ) # actually msys 11491 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 11492 ;; 11493 *-*-cygwin* ) 11494 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 11495 ;; 11496 * ) # otherwise, assume *nix 11497 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 11498 ;; 11499 esac 11500 ;; 11501 *-*-cygwin* ) 11502 case $build in 11503 *-*-mingw* ) # actually msys 11504 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 11505 ;; 11506 *-*-cygwin* ) 11507 lt_cv_to_host_file_cmd=func_convert_file_noop 11508 ;; 11509 * ) # otherwise, assume *nix 11510 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 11511 ;; 11512 esac 11513 ;; 11514 * ) # unhandled hosts (and "normal" native builds) 11515 lt_cv_to_host_file_cmd=func_convert_file_noop 11516 ;; 11517esac 11518 11519fi 11520 11521to_host_file_cmd=$lt_cv_to_host_file_cmd 11522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 11523$as_echo "$lt_cv_to_host_file_cmd" >&6; } 11524 11525 11526 11527 11528 11529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 11530$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 11531if ${lt_cv_to_tool_file_cmd+:} false; then : 11532 $as_echo_n "(cached) " >&6 11533else 11534 #assume ordinary cross tools, or native build. 11535lt_cv_to_tool_file_cmd=func_convert_file_noop 11536case $host in 11537 *-*-mingw* ) 11538 case $build in 11539 *-*-mingw* ) # actually msys 11540 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 11541 ;; 11542 esac 11543 ;; 11544esac 11545 11546fi 11547 11548to_tool_file_cmd=$lt_cv_to_tool_file_cmd 11549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 11550$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 11551 11552 11553 11554 11555 11556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 11557$as_echo_n "checking for $LD option to reload object files... " >&6; } 11558if ${lt_cv_ld_reload_flag+:} false; then : 11559 $as_echo_n "(cached) " >&6 11560else 11561 lt_cv_ld_reload_flag='-r' 11562fi 11563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 11564$as_echo "$lt_cv_ld_reload_flag" >&6; } 11565reload_flag=$lt_cv_ld_reload_flag 11566case $reload_flag in 11567"" | " "*) ;; 11568*) reload_flag=" $reload_flag" ;; 11569esac 11570reload_cmds='$LD$reload_flag -o $output$reload_objs' 11571case $host_os in 11572 cygwin* | mingw* | pw32* | cegcc*) 11573 if test yes != "$GCC"; then 11574 reload_cmds=false 11575 fi 11576 ;; 11577 darwin*) 11578 if test yes = "$GCC"; then 11579 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 11580 else 11581 reload_cmds='$LD$reload_flag -o $output$reload_objs' 11582 fi 11583 ;; 11584esac 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594if test -n "$ac_tool_prefix"; then 11595 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 11596set dummy ${ac_tool_prefix}objdump; ac_word=$2 11597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11598$as_echo_n "checking for $ac_word... " >&6; } 11599if ${ac_cv_prog_OBJDUMP+:} false; then : 11600 $as_echo_n "(cached) " >&6 11601else 11602 if test -n "$OBJDUMP"; then 11603 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 11604else 11605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11606for as_dir in $PATH 11607do 11608 IFS=$as_save_IFS 11609 test -z "$as_dir" && as_dir=. 11610 for ac_exec_ext in '' $ac_executable_extensions; do 11611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11612 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 11613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11614 break 2 11615 fi 11616done 11617 done 11618IFS=$as_save_IFS 11619 11620fi 11621fi 11622OBJDUMP=$ac_cv_prog_OBJDUMP 11623if test -n "$OBJDUMP"; then 11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 11625$as_echo "$OBJDUMP" >&6; } 11626else 11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11628$as_echo "no" >&6; } 11629fi 11630 11631 11632fi 11633if test -z "$ac_cv_prog_OBJDUMP"; then 11634 ac_ct_OBJDUMP=$OBJDUMP 11635 # Extract the first word of "objdump", so it can be a program name with args. 11636set dummy objdump; ac_word=$2 11637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11638$as_echo_n "checking for $ac_word... " >&6; } 11639if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 11640 $as_echo_n "(cached) " >&6 11641else 11642 if test -n "$ac_ct_OBJDUMP"; then 11643 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 11644else 11645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11646for as_dir in $PATH 11647do 11648 IFS=$as_save_IFS 11649 test -z "$as_dir" && as_dir=. 11650 for ac_exec_ext in '' $ac_executable_extensions; do 11651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11652 ac_cv_prog_ac_ct_OBJDUMP="objdump" 11653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11654 break 2 11655 fi 11656done 11657 done 11658IFS=$as_save_IFS 11659 11660fi 11661fi 11662ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 11663if test -n "$ac_ct_OBJDUMP"; then 11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 11665$as_echo "$ac_ct_OBJDUMP" >&6; } 11666else 11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11668$as_echo "no" >&6; } 11669fi 11670 11671 if test "x$ac_ct_OBJDUMP" = x; then 11672 OBJDUMP="false" 11673 else 11674 case $cross_compiling:$ac_tool_warned in 11675yes:) 11676{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11677$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11678ac_tool_warned=yes ;; 11679esac 11680 OBJDUMP=$ac_ct_OBJDUMP 11681 fi 11682else 11683 OBJDUMP="$ac_cv_prog_OBJDUMP" 11684fi 11685 11686test -z "$OBJDUMP" && OBJDUMP=objdump 11687 11688 11689 11690 11691 11692 11693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 11694$as_echo_n "checking how to recognize dependent libraries... " >&6; } 11695if ${lt_cv_deplibs_check_method+:} false; then : 11696 $as_echo_n "(cached) " >&6 11697else 11698 lt_cv_file_magic_cmd='$MAGIC_CMD' 11699lt_cv_file_magic_test_file= 11700lt_cv_deplibs_check_method='unknown' 11701# Need to set the preceding variable on all platforms that support 11702# interlibrary dependencies. 11703# 'none' -- dependencies not supported. 11704# 'unknown' -- same as none, but documents that we really don't know. 11705# 'pass_all' -- all dependencies passed with no checks. 11706# 'test_compile' -- check by making test program. 11707# 'file_magic [[regex]]' -- check by looking for files in library path 11708# that responds to the $file_magic_cmd with a given extended regex. 11709# If you have 'file' or equivalent on your system and you're not sure 11710# whether 'pass_all' will *always* work, you probably want this one. 11711 11712case $host_os in 11713aix[4-9]*) 11714 lt_cv_deplibs_check_method=pass_all 11715 ;; 11716 11717beos*) 11718 lt_cv_deplibs_check_method=pass_all 11719 ;; 11720 11721bsdi[45]*) 11722 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 11723 lt_cv_file_magic_cmd='/usr/bin/file -L' 11724 lt_cv_file_magic_test_file=/shlib/libc.so 11725 ;; 11726 11727cygwin*) 11728 # func_win32_libid is a shell function defined in ltmain.sh 11729 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11730 lt_cv_file_magic_cmd='func_win32_libid' 11731 ;; 11732 11733mingw* | pw32*) 11734 # Base MSYS/MinGW do not provide the 'file' command needed by 11735 # func_win32_libid shell function, so use a weaker test based on 'objdump', 11736 # unless we find 'file', for example because we are cross-compiling. 11737 if ( file / ) >/dev/null 2>&1; then 11738 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11739 lt_cv_file_magic_cmd='func_win32_libid' 11740 else 11741 # Keep this pattern in sync with the one in func_win32_libid. 11742 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 11743 lt_cv_file_magic_cmd='$OBJDUMP -f' 11744 fi 11745 ;; 11746 11747cegcc*) 11748 # use the weaker test based on 'objdump'. See mingw*. 11749 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 11750 lt_cv_file_magic_cmd='$OBJDUMP -f' 11751 ;; 11752 11753darwin* | rhapsody*) 11754 lt_cv_deplibs_check_method=pass_all 11755 ;; 11756 11757freebsd* | dragonfly*) 11758 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11759 case $host_cpu in 11760 i*86 ) 11761 # Not sure whether the presence of OpenBSD here was a mistake. 11762 # Let's accept both of them until this is cleared up. 11763 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 11764 lt_cv_file_magic_cmd=/usr/bin/file 11765 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 11766 ;; 11767 esac 11768 else 11769 lt_cv_deplibs_check_method=pass_all 11770 fi 11771 ;; 11772 11773haiku*) 11774 lt_cv_deplibs_check_method=pass_all 11775 ;; 11776 11777hpux10.20* | hpux11*) 11778 lt_cv_file_magic_cmd=/usr/bin/file 11779 case $host_cpu in 11780 ia64*) 11781 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 11782 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 11783 ;; 11784 hppa*64*) 11785 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 11786 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 11787 ;; 11788 *) 11789 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 11790 lt_cv_file_magic_test_file=/usr/lib/libc.sl 11791 ;; 11792 esac 11793 ;; 11794 11795interix[3-9]*) 11796 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 11797 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 11798 ;; 11799 11800irix5* | irix6* | nonstopux*) 11801 case $LD in 11802 *-32|*"-32 ") libmagic=32-bit;; 11803 *-n32|*"-n32 ") libmagic=N32;; 11804 *-64|*"-64 ") libmagic=64-bit;; 11805 *) libmagic=never-match;; 11806 esac 11807 lt_cv_deplibs_check_method=pass_all 11808 ;; 11809 11810# This must be glibc/ELF. 11811linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11812 lt_cv_deplibs_check_method=pass_all 11813 ;; 11814 11815netbsd*) 11816 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11817 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 11818 else 11819 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 11820 fi 11821 ;; 11822 11823newos6*) 11824 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 11825 lt_cv_file_magic_cmd=/usr/bin/file 11826 lt_cv_file_magic_test_file=/usr/lib/libnls.so 11827 ;; 11828 11829*nto* | *qnx*) 11830 lt_cv_deplibs_check_method=pass_all 11831 ;; 11832 11833openbsd* | bitrig*) 11834 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11835 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 11836 else 11837 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 11838 fi 11839 ;; 11840 11841osf3* | osf4* | osf5*) 11842 lt_cv_deplibs_check_method=pass_all 11843 ;; 11844 11845rdos*) 11846 lt_cv_deplibs_check_method=pass_all 11847 ;; 11848 11849solaris*) 11850 lt_cv_deplibs_check_method=pass_all 11851 ;; 11852 11853sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11854 lt_cv_deplibs_check_method=pass_all 11855 ;; 11856 11857sysv4 | sysv4.3*) 11858 case $host_vendor in 11859 motorola) 11860 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 11861 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 11862 ;; 11863 ncr) 11864 lt_cv_deplibs_check_method=pass_all 11865 ;; 11866 sequent) 11867 lt_cv_file_magic_cmd='/bin/file' 11868 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 11869 ;; 11870 sni) 11871 lt_cv_file_magic_cmd='/bin/file' 11872 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 11873 lt_cv_file_magic_test_file=/lib/libc.so 11874 ;; 11875 siemens) 11876 lt_cv_deplibs_check_method=pass_all 11877 ;; 11878 pc) 11879 lt_cv_deplibs_check_method=pass_all 11880 ;; 11881 esac 11882 ;; 11883 11884tpf*) 11885 lt_cv_deplibs_check_method=pass_all 11886 ;; 11887os2*) 11888 lt_cv_deplibs_check_method=pass_all 11889 ;; 11890esac 11891 11892fi 11893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 11894$as_echo "$lt_cv_deplibs_check_method" >&6; } 11895 11896file_magic_glob= 11897want_nocaseglob=no 11898if test "$build" = "$host"; then 11899 case $host_os in 11900 mingw* | pw32*) 11901 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 11902 want_nocaseglob=yes 11903 else 11904 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 11905 fi 11906 ;; 11907 esac 11908fi 11909 11910file_magic_cmd=$lt_cv_file_magic_cmd 11911deplibs_check_method=$lt_cv_deplibs_check_method 11912test -z "$deplibs_check_method" && deplibs_check_method=unknown 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935if test -n "$ac_tool_prefix"; then 11936 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 11937set dummy ${ac_tool_prefix}dlltool; ac_word=$2 11938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11939$as_echo_n "checking for $ac_word... " >&6; } 11940if ${ac_cv_prog_DLLTOOL+:} false; then : 11941 $as_echo_n "(cached) " >&6 11942else 11943 if test -n "$DLLTOOL"; then 11944 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 11945else 11946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11947for as_dir in $PATH 11948do 11949 IFS=$as_save_IFS 11950 test -z "$as_dir" && as_dir=. 11951 for ac_exec_ext in '' $ac_executable_extensions; do 11952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11953 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 11954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11955 break 2 11956 fi 11957done 11958 done 11959IFS=$as_save_IFS 11960 11961fi 11962fi 11963DLLTOOL=$ac_cv_prog_DLLTOOL 11964if test -n "$DLLTOOL"; then 11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 11966$as_echo "$DLLTOOL" >&6; } 11967else 11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11969$as_echo "no" >&6; } 11970fi 11971 11972 11973fi 11974if test -z "$ac_cv_prog_DLLTOOL"; then 11975 ac_ct_DLLTOOL=$DLLTOOL 11976 # Extract the first word of "dlltool", so it can be a program name with args. 11977set dummy dlltool; ac_word=$2 11978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11979$as_echo_n "checking for $ac_word... " >&6; } 11980if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 11981 $as_echo_n "(cached) " >&6 11982else 11983 if test -n "$ac_ct_DLLTOOL"; then 11984 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 11985else 11986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11987for as_dir in $PATH 11988do 11989 IFS=$as_save_IFS 11990 test -z "$as_dir" && as_dir=. 11991 for ac_exec_ext in '' $ac_executable_extensions; do 11992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11993 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 11994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11995 break 2 11996 fi 11997done 11998 done 11999IFS=$as_save_IFS 12000 12001fi 12002fi 12003ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12004if test -n "$ac_ct_DLLTOOL"; then 12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12006$as_echo "$ac_ct_DLLTOOL" >&6; } 12007else 12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12009$as_echo "no" >&6; } 12010fi 12011 12012 if test "x$ac_ct_DLLTOOL" = x; then 12013 DLLTOOL="false" 12014 else 12015 case $cross_compiling:$ac_tool_warned in 12016yes:) 12017{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12018$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12019ac_tool_warned=yes ;; 12020esac 12021 DLLTOOL=$ac_ct_DLLTOOL 12022 fi 12023else 12024 DLLTOOL="$ac_cv_prog_DLLTOOL" 12025fi 12026 12027test -z "$DLLTOOL" && DLLTOOL=dlltool 12028 12029 12030 12031 12032 12033 12034 12035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12036$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 12037if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 12038 $as_echo_n "(cached) " >&6 12039else 12040 lt_cv_sharedlib_from_linklib_cmd='unknown' 12041 12042case $host_os in 12043cygwin* | mingw* | pw32* | cegcc*) 12044 # two different shell functions defined in ltmain.sh; 12045 # decide which one to use based on capabilities of $DLLTOOL 12046 case `$DLLTOOL --help 2>&1` in 12047 *--identify-strict*) 12048 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12049 ;; 12050 *) 12051 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12052 ;; 12053 esac 12054 ;; 12055*) 12056 # fallback: assume linklib IS sharedlib 12057 lt_cv_sharedlib_from_linklib_cmd=$ECHO 12058 ;; 12059esac 12060 12061fi 12062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12063$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12064sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12065test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12066 12067 12068 12069 12070 12071 12072 12073if test -n "$ac_tool_prefix"; then 12074 for ac_prog in ar 12075 do 12076 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12077set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12079$as_echo_n "checking for $ac_word... " >&6; } 12080if ${ac_cv_prog_AR+:} false; then : 12081 $as_echo_n "(cached) " >&6 12082else 12083 if test -n "$AR"; then 12084 ac_cv_prog_AR="$AR" # Let the user override the test. 12085else 12086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12087for as_dir in $PATH 12088do 12089 IFS=$as_save_IFS 12090 test -z "$as_dir" && as_dir=. 12091 for ac_exec_ext in '' $ac_executable_extensions; do 12092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12093 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12095 break 2 12096 fi 12097done 12098 done 12099IFS=$as_save_IFS 12100 12101fi 12102fi 12103AR=$ac_cv_prog_AR 12104if test -n "$AR"; then 12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12106$as_echo "$AR" >&6; } 12107else 12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12109$as_echo "no" >&6; } 12110fi 12111 12112 12113 test -n "$AR" && break 12114 done 12115fi 12116if test -z "$AR"; then 12117 ac_ct_AR=$AR 12118 for ac_prog in ar 12119do 12120 # Extract the first word of "$ac_prog", so it can be a program name with args. 12121set dummy $ac_prog; ac_word=$2 12122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12123$as_echo_n "checking for $ac_word... " >&6; } 12124if ${ac_cv_prog_ac_ct_AR+:} false; then : 12125 $as_echo_n "(cached) " >&6 12126else 12127 if test -n "$ac_ct_AR"; then 12128 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 12129else 12130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12131for as_dir in $PATH 12132do 12133 IFS=$as_save_IFS 12134 test -z "$as_dir" && as_dir=. 12135 for ac_exec_ext in '' $ac_executable_extensions; do 12136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12137 ac_cv_prog_ac_ct_AR="$ac_prog" 12138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12139 break 2 12140 fi 12141done 12142 done 12143IFS=$as_save_IFS 12144 12145fi 12146fi 12147ac_ct_AR=$ac_cv_prog_ac_ct_AR 12148if test -n "$ac_ct_AR"; then 12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 12150$as_echo "$ac_ct_AR" >&6; } 12151else 12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12153$as_echo "no" >&6; } 12154fi 12155 12156 12157 test -n "$ac_ct_AR" && break 12158done 12159 12160 if test "x$ac_ct_AR" = x; then 12161 AR="false" 12162 else 12163 case $cross_compiling:$ac_tool_warned in 12164yes:) 12165{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12166$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12167ac_tool_warned=yes ;; 12168esac 12169 AR=$ac_ct_AR 12170 fi 12171fi 12172 12173: ${AR=ar} 12174: ${AR_FLAGS=cru} 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 12187$as_echo_n "checking for archiver @FILE support... " >&6; } 12188if ${lt_cv_ar_at_file+:} false; then : 12189 $as_echo_n "(cached) " >&6 12190else 12191 lt_cv_ar_at_file=no 12192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12193/* end confdefs.h. */ 12194 12195int 12196main () 12197{ 12198 12199 ; 12200 return 0; 12201} 12202_ACEOF 12203if ac_fn_c_try_compile "$LINENO"; then : 12204 echo conftest.$ac_objext > conftest.lst 12205 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 12206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12207 (eval $lt_ar_try) 2>&5 12208 ac_status=$? 12209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12210 test $ac_status = 0; } 12211 if test 0 -eq "$ac_status"; then 12212 # Ensure the archiver fails upon bogus file names. 12213 rm -f conftest.$ac_objext libconftest.a 12214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12215 (eval $lt_ar_try) 2>&5 12216 ac_status=$? 12217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12218 test $ac_status = 0; } 12219 if test 0 -ne "$ac_status"; then 12220 lt_cv_ar_at_file=@ 12221 fi 12222 fi 12223 rm -f conftest.* libconftest.a 12224 12225fi 12226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12227 12228fi 12229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 12230$as_echo "$lt_cv_ar_at_file" >&6; } 12231 12232if test no = "$lt_cv_ar_at_file"; then 12233 archiver_list_spec= 12234else 12235 archiver_list_spec=$lt_cv_ar_at_file 12236fi 12237 12238 12239 12240 12241 12242 12243 12244if test -n "$ac_tool_prefix"; then 12245 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 12246set dummy ${ac_tool_prefix}strip; ac_word=$2 12247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12248$as_echo_n "checking for $ac_word... " >&6; } 12249if ${ac_cv_prog_STRIP+:} false; then : 12250 $as_echo_n "(cached) " >&6 12251else 12252 if test -n "$STRIP"; then 12253 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 12254else 12255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12256for as_dir in $PATH 12257do 12258 IFS=$as_save_IFS 12259 test -z "$as_dir" && as_dir=. 12260 for ac_exec_ext in '' $ac_executable_extensions; do 12261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12262 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 12263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12264 break 2 12265 fi 12266done 12267 done 12268IFS=$as_save_IFS 12269 12270fi 12271fi 12272STRIP=$ac_cv_prog_STRIP 12273if test -n "$STRIP"; then 12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 12275$as_echo "$STRIP" >&6; } 12276else 12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12278$as_echo "no" >&6; } 12279fi 12280 12281 12282fi 12283if test -z "$ac_cv_prog_STRIP"; then 12284 ac_ct_STRIP=$STRIP 12285 # Extract the first word of "strip", so it can be a program name with args. 12286set dummy strip; ac_word=$2 12287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12288$as_echo_n "checking for $ac_word... " >&6; } 12289if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 12290 $as_echo_n "(cached) " >&6 12291else 12292 if test -n "$ac_ct_STRIP"; then 12293 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 12294else 12295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12296for as_dir in $PATH 12297do 12298 IFS=$as_save_IFS 12299 test -z "$as_dir" && as_dir=. 12300 for ac_exec_ext in '' $ac_executable_extensions; do 12301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12302 ac_cv_prog_ac_ct_STRIP="strip" 12303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12304 break 2 12305 fi 12306done 12307 done 12308IFS=$as_save_IFS 12309 12310fi 12311fi 12312ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 12313if test -n "$ac_ct_STRIP"; then 12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 12315$as_echo "$ac_ct_STRIP" >&6; } 12316else 12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12318$as_echo "no" >&6; } 12319fi 12320 12321 if test "x$ac_ct_STRIP" = x; then 12322 STRIP=":" 12323 else 12324 case $cross_compiling:$ac_tool_warned in 12325yes:) 12326{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12327$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12328ac_tool_warned=yes ;; 12329esac 12330 STRIP=$ac_ct_STRIP 12331 fi 12332else 12333 STRIP="$ac_cv_prog_STRIP" 12334fi 12335 12336test -z "$STRIP" && STRIP=: 12337 12338 12339 12340 12341 12342 12343if test -n "$ac_tool_prefix"; then 12344 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 12345set dummy ${ac_tool_prefix}ranlib; ac_word=$2 12346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12347$as_echo_n "checking for $ac_word... " >&6; } 12348if ${ac_cv_prog_RANLIB+:} false; then : 12349 $as_echo_n "(cached) " >&6 12350else 12351 if test -n "$RANLIB"; then 12352 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 12353else 12354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12355for as_dir in $PATH 12356do 12357 IFS=$as_save_IFS 12358 test -z "$as_dir" && as_dir=. 12359 for ac_exec_ext in '' $ac_executable_extensions; do 12360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12361 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 12362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12363 break 2 12364 fi 12365done 12366 done 12367IFS=$as_save_IFS 12368 12369fi 12370fi 12371RANLIB=$ac_cv_prog_RANLIB 12372if test -n "$RANLIB"; then 12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 12374$as_echo "$RANLIB" >&6; } 12375else 12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12377$as_echo "no" >&6; } 12378fi 12379 12380 12381fi 12382if test -z "$ac_cv_prog_RANLIB"; then 12383 ac_ct_RANLIB=$RANLIB 12384 # Extract the first word of "ranlib", so it can be a program name with args. 12385set dummy ranlib; ac_word=$2 12386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12387$as_echo_n "checking for $ac_word... " >&6; } 12388if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 12389 $as_echo_n "(cached) " >&6 12390else 12391 if test -n "$ac_ct_RANLIB"; then 12392 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 12393else 12394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12395for as_dir in $PATH 12396do 12397 IFS=$as_save_IFS 12398 test -z "$as_dir" && as_dir=. 12399 for ac_exec_ext in '' $ac_executable_extensions; do 12400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12401 ac_cv_prog_ac_ct_RANLIB="ranlib" 12402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12403 break 2 12404 fi 12405done 12406 done 12407IFS=$as_save_IFS 12408 12409fi 12410fi 12411ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 12412if test -n "$ac_ct_RANLIB"; then 12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 12414$as_echo "$ac_ct_RANLIB" >&6; } 12415else 12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12417$as_echo "no" >&6; } 12418fi 12419 12420 if test "x$ac_ct_RANLIB" = x; then 12421 RANLIB=":" 12422 else 12423 case $cross_compiling:$ac_tool_warned in 12424yes:) 12425{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12426$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12427ac_tool_warned=yes ;; 12428esac 12429 RANLIB=$ac_ct_RANLIB 12430 fi 12431else 12432 RANLIB="$ac_cv_prog_RANLIB" 12433fi 12434 12435test -z "$RANLIB" && RANLIB=: 12436 12437 12438 12439 12440 12441 12442# Determine commands to create old-style static archives. 12443old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 12444old_postinstall_cmds='chmod 644 $oldlib' 12445old_postuninstall_cmds= 12446 12447if test -n "$RANLIB"; then 12448 case $host_os in 12449 bitrig* | openbsd*) 12450 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 12451 ;; 12452 *) 12453 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 12454 ;; 12455 esac 12456 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 12457fi 12458 12459case $host_os in 12460 darwin*) 12461 lock_old_archive_extraction=yes ;; 12462 *) 12463 lock_old_archive_extraction=no ;; 12464esac 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504# If no C compiler was specified, use CC. 12505LTCC=${LTCC-"$CC"} 12506 12507# If no C compiler flags were specified, use CFLAGS. 12508LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12509 12510# Allow CC to be a program name with arguments. 12511compiler=$CC 12512 12513 12514# Check for command to grab the raw symbol name followed by C symbol from nm. 12515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 12516$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 12517if ${lt_cv_sys_global_symbol_pipe+:} false; then : 12518 $as_echo_n "(cached) " >&6 12519else 12520 12521# These are sane defaults that work on at least a few old systems. 12522# [They come from Ultrix. What could be older than Ultrix?!! ;)] 12523 12524# Character class describing NM global symbol codes. 12525symcode='[BCDEGRST]' 12526 12527# Regexp to match symbols that can be accessed directly from C. 12528sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 12529 12530# Define system-specific variables. 12531case $host_os in 12532aix*) 12533 symcode='[BCDT]' 12534 ;; 12535cygwin* | mingw* | pw32* | cegcc*) 12536 symcode='[ABCDGISTW]' 12537 ;; 12538hpux*) 12539 if test ia64 = "$host_cpu"; then 12540 symcode='[ABCDEGRST]' 12541 fi 12542 ;; 12543irix* | nonstopux*) 12544 symcode='[BCDEGRST]' 12545 ;; 12546osf*) 12547 symcode='[BCDEGQRST]' 12548 ;; 12549solaris*) 12550 symcode='[BDRT]' 12551 ;; 12552sco3.2v5*) 12553 symcode='[DT]' 12554 ;; 12555sysv4.2uw2*) 12556 symcode='[DT]' 12557 ;; 12558sysv5* | sco5v6* | unixware* | OpenUNIX*) 12559 symcode='[ABDT]' 12560 ;; 12561sysv4) 12562 symcode='[DFNSTU]' 12563 ;; 12564esac 12565 12566# If we're using GNU nm, then use its standard symbol codes. 12567case `$NM -V 2>&1` in 12568*GNU* | *'with BFD'*) 12569 symcode='[ABCDGIRSTW]' ;; 12570esac 12571 12572if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12573 # Gets list of data symbols to import. 12574 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 12575 # Adjust the below global symbol transforms to fixup imported variables. 12576 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 12577 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 12578 lt_c_name_lib_hook="\ 12579 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 12580 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 12581else 12582 # Disable hooks by default. 12583 lt_cv_sys_global_symbol_to_import= 12584 lt_cdecl_hook= 12585 lt_c_name_hook= 12586 lt_c_name_lib_hook= 12587fi 12588 12589# Transform an extracted symbol line into a proper C declaration. 12590# Some systems (esp. on ia64) link data and code symbols differently, 12591# so use this general approach. 12592lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 12593$lt_cdecl_hook\ 12594" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 12595" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 12596 12597# Transform an extracted symbol line into symbol name and symbol address 12598lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 12599$lt_c_name_hook\ 12600" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 12601" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 12602 12603# Transform an extracted symbol line into symbol name with lib prefix and 12604# symbol address. 12605lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 12606$lt_c_name_lib_hook\ 12607" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 12608" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 12609" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 12610 12611# Handle CRLF in mingw tool chain 12612opt_cr= 12613case $build_os in 12614mingw*) 12615 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 12616 ;; 12617esac 12618 12619# Try without a prefix underscore, then with it. 12620for ac_symprfx in "" "_"; do 12621 12622 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 12623 symxfrm="\\1 $ac_symprfx\\2 \\2" 12624 12625 # Write the raw and C identifiers. 12626 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12627 # Fake it for dumpbin and say T for any non-static function, 12628 # D for any global variable and I for any imported variable. 12629 # Also find C++ and __fastcall symbols from MSVC++, 12630 # which start with @ or ?. 12631 lt_cv_sys_global_symbol_pipe="$AWK '"\ 12632" {last_section=section; section=\$ 3};"\ 12633" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 12634" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 12635" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 12636" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 12637" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 12638" \$ 0!~/External *\|/{next};"\ 12639" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 12640" {if(hide[section]) next};"\ 12641" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 12642" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 12643" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 12644" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 12645" ' prfx=^$ac_symprfx" 12646 else 12647 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 12648 fi 12649 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 12650 12651 # Check to see that the pipe works correctly. 12652 pipe_works=no 12653 12654 rm -f conftest* 12655 cat > conftest.$ac_ext <<_LT_EOF 12656#ifdef __cplusplus 12657extern "C" { 12658#endif 12659char nm_test_var; 12660void nm_test_func(void); 12661void nm_test_func(void){} 12662#ifdef __cplusplus 12663} 12664#endif 12665int main(){nm_test_var='a';nm_test_func();return(0);} 12666_LT_EOF 12667 12668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12669 (eval $ac_compile) 2>&5 12670 ac_status=$? 12671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12672 test $ac_status = 0; }; then 12673 # Now try to grab the symbols. 12674 nlist=conftest.nm 12675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 12676 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 12677 ac_status=$? 12678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12679 test $ac_status = 0; } && test -s "$nlist"; then 12680 # Try sorting and uniquifying the output. 12681 if sort "$nlist" | uniq > "$nlist"T; then 12682 mv -f "$nlist"T "$nlist" 12683 else 12684 rm -f "$nlist"T 12685 fi 12686 12687 # Make sure that we snagged all the symbols we need. 12688 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 12689 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 12690 cat <<_LT_EOF > conftest.$ac_ext 12691/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 12692#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 12693/* DATA imports from DLLs on WIN32 can't be const, because runtime 12694 relocations are performed -- see ld's documentation on pseudo-relocs. */ 12695# define LT_DLSYM_CONST 12696#elif defined __osf__ 12697/* This system does not cope well with relocations in const data. */ 12698# define LT_DLSYM_CONST 12699#else 12700# define LT_DLSYM_CONST const 12701#endif 12702 12703#ifdef __cplusplus 12704extern "C" { 12705#endif 12706 12707_LT_EOF 12708 # Now generate the symbol file. 12709 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 12710 12711 cat <<_LT_EOF >> conftest.$ac_ext 12712 12713/* The mapping between symbol names and symbols. */ 12714LT_DLSYM_CONST struct { 12715 const char *name; 12716 void *address; 12717} 12718lt__PROGRAM__LTX_preloaded_symbols[] = 12719{ 12720 { "@PROGRAM@", (void *) 0 }, 12721_LT_EOF 12722 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 12723 cat <<\_LT_EOF >> conftest.$ac_ext 12724 {0, (void *) 0} 12725}; 12726 12727/* This works around a problem in FreeBSD linker */ 12728#ifdef FREEBSD_WORKAROUND 12729static const void *lt_preloaded_setup() { 12730 return lt__PROGRAM__LTX_preloaded_symbols; 12731} 12732#endif 12733 12734#ifdef __cplusplus 12735} 12736#endif 12737_LT_EOF 12738 # Now try linking the two files. 12739 mv conftest.$ac_objext conftstm.$ac_objext 12740 lt_globsym_save_LIBS=$LIBS 12741 lt_globsym_save_CFLAGS=$CFLAGS 12742 LIBS=conftstm.$ac_objext 12743 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 12744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12745 (eval $ac_link) 2>&5 12746 ac_status=$? 12747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12748 test $ac_status = 0; } && test -s conftest$ac_exeext; then 12749 pipe_works=yes 12750 fi 12751 LIBS=$lt_globsym_save_LIBS 12752 CFLAGS=$lt_globsym_save_CFLAGS 12753 else 12754 echo "cannot find nm_test_func in $nlist" >&5 12755 fi 12756 else 12757 echo "cannot find nm_test_var in $nlist" >&5 12758 fi 12759 else 12760 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 12761 fi 12762 else 12763 echo "$progname: failed program was:" >&5 12764 cat conftest.$ac_ext >&5 12765 fi 12766 rm -rf conftest* conftst* 12767 12768 # Do not use the global_symbol_pipe unless it works. 12769 if test yes = "$pipe_works"; then 12770 break 12771 else 12772 lt_cv_sys_global_symbol_pipe= 12773 fi 12774done 12775 12776fi 12777 12778if test -z "$lt_cv_sys_global_symbol_pipe"; then 12779 lt_cv_sys_global_symbol_to_cdecl= 12780fi 12781if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 12783$as_echo "failed" >&6; } 12784else 12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 12786$as_echo "ok" >&6; } 12787fi 12788 12789# Response file support. 12790if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12791 nm_file_list_spec='@' 12792elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 12793 nm_file_list_spec='@' 12794fi 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 12833$as_echo_n "checking for sysroot... " >&6; } 12834 12835# Check whether --with-sysroot was given. 12836if test "${with_sysroot+set}" = set; then : 12837 withval=$with_sysroot; 12838else 12839 with_sysroot=no 12840fi 12841 12842 12843lt_sysroot= 12844case $with_sysroot in #( 12845 yes) 12846 if test yes = "$GCC"; then 12847 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 12848 fi 12849 ;; #( 12850 /*) 12851 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 12852 ;; #( 12853 no|'') 12854 ;; #( 12855 *) 12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 12857$as_echo "$with_sysroot" >&6; } 12858 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 12859 ;; 12860esac 12861 12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 12863$as_echo "${lt_sysroot:-no}" >&6; } 12864 12865 12866 12867 12868 12869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 12870$as_echo_n "checking for a working dd... " >&6; } 12871if ${ac_cv_path_lt_DD+:} false; then : 12872 $as_echo_n "(cached) " >&6 12873else 12874 printf 0123456789abcdef0123456789abcdef >conftest.i 12875cat conftest.i conftest.i >conftest2.i 12876: ${lt_DD:=$DD} 12877if test -z "$lt_DD"; then 12878 ac_path_lt_DD_found=false 12879 # Loop through the user's path and test for each of PROGNAME-LIST 12880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12881for as_dir in $PATH 12882do 12883 IFS=$as_save_IFS 12884 test -z "$as_dir" && as_dir=. 12885 for ac_prog in dd; do 12886 for ac_exec_ext in '' $ac_executable_extensions; do 12887 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 12888 as_fn_executable_p "$ac_path_lt_DD" || continue 12889if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 12890 cmp -s conftest.i conftest.out \ 12891 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 12892fi 12893 $ac_path_lt_DD_found && break 3 12894 done 12895 done 12896 done 12897IFS=$as_save_IFS 12898 if test -z "$ac_cv_path_lt_DD"; then 12899 : 12900 fi 12901else 12902 ac_cv_path_lt_DD=$lt_DD 12903fi 12904 12905rm -f conftest.i conftest2.i conftest.out 12906fi 12907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 12908$as_echo "$ac_cv_path_lt_DD" >&6; } 12909 12910 12911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 12912$as_echo_n "checking how to truncate binary pipes... " >&6; } 12913if ${lt_cv_truncate_bin+:} false; then : 12914 $as_echo_n "(cached) " >&6 12915else 12916 printf 0123456789abcdef0123456789abcdef >conftest.i 12917cat conftest.i conftest.i >conftest2.i 12918lt_cv_truncate_bin= 12919if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 12920 cmp -s conftest.i conftest.out \ 12921 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 12922fi 12923rm -f conftest.i conftest2.i conftest.out 12924test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 12925fi 12926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 12927$as_echo "$lt_cv_truncate_bin" >&6; } 12928 12929 12930 12931 12932 12933 12934 12935# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 12936func_cc_basename () 12937{ 12938 for cc_temp in $*""; do 12939 case $cc_temp in 12940 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12941 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12942 \-*) ;; 12943 *) break;; 12944 esac 12945 done 12946 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 12947} 12948 12949# Check whether --enable-libtool-lock was given. 12950if test "${enable_libtool_lock+set}" = set; then : 12951 enableval=$enable_libtool_lock; 12952fi 12953 12954test no = "$enable_libtool_lock" || enable_libtool_lock=yes 12955 12956# Some flags need to be propagated to the compiler or linker for good 12957# libtool support. 12958case $host in 12959ia64-*-hpux*) 12960 # Find out what ABI is being produced by ac_compile, and set mode 12961 # options accordingly. 12962 echo 'int i;' > conftest.$ac_ext 12963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12964 (eval $ac_compile) 2>&5 12965 ac_status=$? 12966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12967 test $ac_status = 0; }; then 12968 case `/usr/bin/file conftest.$ac_objext` in 12969 *ELF-32*) 12970 HPUX_IA64_MODE=32 12971 ;; 12972 *ELF-64*) 12973 HPUX_IA64_MODE=64 12974 ;; 12975 esac 12976 fi 12977 rm -rf conftest* 12978 ;; 12979*-*-irix6*) 12980 # Find out what ABI is being produced by ac_compile, and set linker 12981 # options accordingly. 12982 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 12983 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12984 (eval $ac_compile) 2>&5 12985 ac_status=$? 12986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12987 test $ac_status = 0; }; then 12988 if test yes = "$lt_cv_prog_gnu_ld"; then 12989 case `/usr/bin/file conftest.$ac_objext` in 12990 *32-bit*) 12991 LD="${LD-ld} -melf32bsmip" 12992 ;; 12993 *N32*) 12994 LD="${LD-ld} -melf32bmipn32" 12995 ;; 12996 *64-bit*) 12997 LD="${LD-ld} -melf64bmip" 12998 ;; 12999 esac 13000 else 13001 case `/usr/bin/file conftest.$ac_objext` in 13002 *32-bit*) 13003 LD="${LD-ld} -32" 13004 ;; 13005 *N32*) 13006 LD="${LD-ld} -n32" 13007 ;; 13008 *64-bit*) 13009 LD="${LD-ld} -64" 13010 ;; 13011 esac 13012 fi 13013 fi 13014 rm -rf conftest* 13015 ;; 13016 13017mips64*-*linux*) 13018 # Find out what ABI is being produced by ac_compile, and set linker 13019 # options accordingly. 13020 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13022 (eval $ac_compile) 2>&5 13023 ac_status=$? 13024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13025 test $ac_status = 0; }; then 13026 emul=elf 13027 case `/usr/bin/file conftest.$ac_objext` in 13028 *32-bit*) 13029 emul="${emul}32" 13030 ;; 13031 *64-bit*) 13032 emul="${emul}64" 13033 ;; 13034 esac 13035 case `/usr/bin/file conftest.$ac_objext` in 13036 *MSB*) 13037 emul="${emul}btsmip" 13038 ;; 13039 *LSB*) 13040 emul="${emul}ltsmip" 13041 ;; 13042 esac 13043 case `/usr/bin/file conftest.$ac_objext` in 13044 *N32*) 13045 emul="${emul}n32" 13046 ;; 13047 esac 13048 LD="${LD-ld} -m $emul" 13049 fi 13050 rm -rf conftest* 13051 ;; 13052 13053x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 13054s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 13055 # Find out what ABI is being produced by ac_compile, and set linker 13056 # options accordingly. Note that the listed cases only cover the 13057 # situations where additional linker options are needed (such as when 13058 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 13059 # vice versa); the common cases where no linker options are needed do 13060 # not appear in the list. 13061 echo 'int i;' > conftest.$ac_ext 13062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13063 (eval $ac_compile) 2>&5 13064 ac_status=$? 13065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13066 test $ac_status = 0; }; then 13067 case `/usr/bin/file conftest.o` in 13068 *32-bit*) 13069 case $host in 13070 x86_64-*kfreebsd*-gnu) 13071 LD="${LD-ld} -m elf_i386_fbsd" 13072 ;; 13073 x86_64-*linux*) 13074 case `/usr/bin/file conftest.o` in 13075 *x86-64*) 13076 LD="${LD-ld} -m elf32_x86_64" 13077 ;; 13078 *) 13079 LD="${LD-ld} -m elf_i386" 13080 ;; 13081 esac 13082 ;; 13083 powerpc64le-*linux*) 13084 LD="${LD-ld} -m elf32lppclinux" 13085 ;; 13086 powerpc64-*linux*) 13087 LD="${LD-ld} -m elf32ppclinux" 13088 ;; 13089 s390x-*linux*) 13090 LD="${LD-ld} -m elf_s390" 13091 ;; 13092 sparc64-*linux*) 13093 LD="${LD-ld} -m elf32_sparc" 13094 ;; 13095 esac 13096 ;; 13097 *64-bit*) 13098 case $host in 13099 x86_64-*kfreebsd*-gnu) 13100 LD="${LD-ld} -m elf_x86_64_fbsd" 13101 ;; 13102 x86_64-*linux*) 13103 LD="${LD-ld} -m elf_x86_64" 13104 ;; 13105 powerpcle-*linux*) 13106 LD="${LD-ld} -m elf64lppc" 13107 ;; 13108 powerpc-*linux*) 13109 LD="${LD-ld} -m elf64ppc" 13110 ;; 13111 s390*-*linux*|s390*-*tpf*) 13112 LD="${LD-ld} -m elf64_s390" 13113 ;; 13114 sparc*-*linux*) 13115 LD="${LD-ld} -m elf64_sparc" 13116 ;; 13117 esac 13118 ;; 13119 esac 13120 fi 13121 rm -rf conftest* 13122 ;; 13123 13124*-*-sco3.2v5*) 13125 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 13126 SAVE_CFLAGS=$CFLAGS 13127 CFLAGS="$CFLAGS -belf" 13128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 13129$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 13130if ${lt_cv_cc_needs_belf+:} false; then : 13131 $as_echo_n "(cached) " >&6 13132else 13133 ac_ext=c 13134ac_cpp='$CPP $CPPFLAGS' 13135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13137ac_compiler_gnu=$ac_cv_c_compiler_gnu 13138 13139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13140/* end confdefs.h. */ 13141 13142int 13143main () 13144{ 13145 13146 ; 13147 return 0; 13148} 13149_ACEOF 13150if ac_fn_c_try_link "$LINENO"; then : 13151 lt_cv_cc_needs_belf=yes 13152else 13153 lt_cv_cc_needs_belf=no 13154fi 13155rm -f core conftest.err conftest.$ac_objext \ 13156 conftest$ac_exeext conftest.$ac_ext 13157 ac_ext=c 13158ac_cpp='$CPP $CPPFLAGS' 13159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13161ac_compiler_gnu=$ac_cv_c_compiler_gnu 13162 13163fi 13164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 13165$as_echo "$lt_cv_cc_needs_belf" >&6; } 13166 if test yes != "$lt_cv_cc_needs_belf"; then 13167 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 13168 CFLAGS=$SAVE_CFLAGS 13169 fi 13170 ;; 13171*-*solaris*) 13172 # Find out what ABI is being produced by ac_compile, and set linker 13173 # options accordingly. 13174 echo 'int i;' > conftest.$ac_ext 13175 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13176 (eval $ac_compile) 2>&5 13177 ac_status=$? 13178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13179 test $ac_status = 0; }; then 13180 case `/usr/bin/file conftest.o` in 13181 *64-bit*) 13182 case $lt_cv_prog_gnu_ld in 13183 yes*) 13184 case $host in 13185 i?86-*-solaris*|x86_64-*-solaris*) 13186 LD="${LD-ld} -m elf_x86_64" 13187 ;; 13188 sparc*-*-solaris*) 13189 LD="${LD-ld} -m elf64_sparc" 13190 ;; 13191 esac 13192 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 13193 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 13194 LD=${LD-ld}_sol2 13195 fi 13196 ;; 13197 *) 13198 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 13199 LD="${LD-ld} -64" 13200 fi 13201 ;; 13202 esac 13203 ;; 13204 esac 13205 fi 13206 rm -rf conftest* 13207 ;; 13208esac 13209 13210need_locks=$enable_libtool_lock 13211 13212if test -n "$ac_tool_prefix"; then 13213 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 13214set dummy ${ac_tool_prefix}mt; ac_word=$2 13215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13216$as_echo_n "checking for $ac_word... " >&6; } 13217if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 13218 $as_echo_n "(cached) " >&6 13219else 13220 if test -n "$MANIFEST_TOOL"; then 13221 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 13222else 13223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13224for as_dir in $PATH 13225do 13226 IFS=$as_save_IFS 13227 test -z "$as_dir" && as_dir=. 13228 for ac_exec_ext in '' $ac_executable_extensions; do 13229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13230 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 13231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13232 break 2 13233 fi 13234done 13235 done 13236IFS=$as_save_IFS 13237 13238fi 13239fi 13240MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 13241if test -n "$MANIFEST_TOOL"; then 13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 13243$as_echo "$MANIFEST_TOOL" >&6; } 13244else 13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13246$as_echo "no" >&6; } 13247fi 13248 13249 13250fi 13251if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 13252 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 13253 # Extract the first word of "mt", so it can be a program name with args. 13254set dummy mt; ac_word=$2 13255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13256$as_echo_n "checking for $ac_word... " >&6; } 13257if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 13258 $as_echo_n "(cached) " >&6 13259else 13260 if test -n "$ac_ct_MANIFEST_TOOL"; then 13261 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 13262else 13263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13264for as_dir in $PATH 13265do 13266 IFS=$as_save_IFS 13267 test -z "$as_dir" && as_dir=. 13268 for ac_exec_ext in '' $ac_executable_extensions; do 13269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13270 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 13271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13272 break 2 13273 fi 13274done 13275 done 13276IFS=$as_save_IFS 13277 13278fi 13279fi 13280ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 13281if test -n "$ac_ct_MANIFEST_TOOL"; then 13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 13283$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 13284else 13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13286$as_echo "no" >&6; } 13287fi 13288 13289 if test "x$ac_ct_MANIFEST_TOOL" = x; then 13290 MANIFEST_TOOL=":" 13291 else 13292 case $cross_compiling:$ac_tool_warned in 13293yes:) 13294{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13295$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13296ac_tool_warned=yes ;; 13297esac 13298 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 13299 fi 13300else 13301 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 13302fi 13303 13304test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 13305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 13306$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 13307if ${lt_cv_path_mainfest_tool+:} false; then : 13308 $as_echo_n "(cached) " >&6 13309else 13310 lt_cv_path_mainfest_tool=no 13311 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 13312 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 13313 cat conftest.err >&5 13314 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 13315 lt_cv_path_mainfest_tool=yes 13316 fi 13317 rm -f conftest* 13318fi 13319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 13320$as_echo "$lt_cv_path_mainfest_tool" >&6; } 13321if test yes != "$lt_cv_path_mainfest_tool"; then 13322 MANIFEST_TOOL=: 13323fi 13324 13325 13326 13327 13328 13329 13330 case $host_os in 13331 rhapsody* | darwin*) 13332 if test -n "$ac_tool_prefix"; then 13333 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 13334set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 13335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13336$as_echo_n "checking for $ac_word... " >&6; } 13337if ${ac_cv_prog_DSYMUTIL+:} false; then : 13338 $as_echo_n "(cached) " >&6 13339else 13340 if test -n "$DSYMUTIL"; then 13341 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 13342else 13343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13344for as_dir in $PATH 13345do 13346 IFS=$as_save_IFS 13347 test -z "$as_dir" && as_dir=. 13348 for ac_exec_ext in '' $ac_executable_extensions; do 13349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13350 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 13351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13352 break 2 13353 fi 13354done 13355 done 13356IFS=$as_save_IFS 13357 13358fi 13359fi 13360DSYMUTIL=$ac_cv_prog_DSYMUTIL 13361if test -n "$DSYMUTIL"; then 13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 13363$as_echo "$DSYMUTIL" >&6; } 13364else 13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13366$as_echo "no" >&6; } 13367fi 13368 13369 13370fi 13371if test -z "$ac_cv_prog_DSYMUTIL"; then 13372 ac_ct_DSYMUTIL=$DSYMUTIL 13373 # Extract the first word of "dsymutil", so it can be a program name with args. 13374set dummy dsymutil; ac_word=$2 13375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13376$as_echo_n "checking for $ac_word... " >&6; } 13377if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 13378 $as_echo_n "(cached) " >&6 13379else 13380 if test -n "$ac_ct_DSYMUTIL"; then 13381 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 13382else 13383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13384for as_dir in $PATH 13385do 13386 IFS=$as_save_IFS 13387 test -z "$as_dir" && as_dir=. 13388 for ac_exec_ext in '' $ac_executable_extensions; do 13389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13390 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 13391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13392 break 2 13393 fi 13394done 13395 done 13396IFS=$as_save_IFS 13397 13398fi 13399fi 13400ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 13401if test -n "$ac_ct_DSYMUTIL"; then 13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 13403$as_echo "$ac_ct_DSYMUTIL" >&6; } 13404else 13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13406$as_echo "no" >&6; } 13407fi 13408 13409 if test "x$ac_ct_DSYMUTIL" = x; then 13410 DSYMUTIL=":" 13411 else 13412 case $cross_compiling:$ac_tool_warned in 13413yes:) 13414{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13415$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13416ac_tool_warned=yes ;; 13417esac 13418 DSYMUTIL=$ac_ct_DSYMUTIL 13419 fi 13420else 13421 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 13422fi 13423 13424 if test -n "$ac_tool_prefix"; then 13425 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 13426set dummy ${ac_tool_prefix}nmedit; ac_word=$2 13427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13428$as_echo_n "checking for $ac_word... " >&6; } 13429if ${ac_cv_prog_NMEDIT+:} false; then : 13430 $as_echo_n "(cached) " >&6 13431else 13432 if test -n "$NMEDIT"; then 13433 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 13434else 13435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13436for as_dir in $PATH 13437do 13438 IFS=$as_save_IFS 13439 test -z "$as_dir" && as_dir=. 13440 for ac_exec_ext in '' $ac_executable_extensions; do 13441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13442 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 13443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13444 break 2 13445 fi 13446done 13447 done 13448IFS=$as_save_IFS 13449 13450fi 13451fi 13452NMEDIT=$ac_cv_prog_NMEDIT 13453if test -n "$NMEDIT"; then 13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 13455$as_echo "$NMEDIT" >&6; } 13456else 13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13458$as_echo "no" >&6; } 13459fi 13460 13461 13462fi 13463if test -z "$ac_cv_prog_NMEDIT"; then 13464 ac_ct_NMEDIT=$NMEDIT 13465 # Extract the first word of "nmedit", so it can be a program name with args. 13466set dummy nmedit; ac_word=$2 13467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13468$as_echo_n "checking for $ac_word... " >&6; } 13469if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 13470 $as_echo_n "(cached) " >&6 13471else 13472 if test -n "$ac_ct_NMEDIT"; then 13473 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 13474else 13475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13476for as_dir in $PATH 13477do 13478 IFS=$as_save_IFS 13479 test -z "$as_dir" && as_dir=. 13480 for ac_exec_ext in '' $ac_executable_extensions; do 13481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13482 ac_cv_prog_ac_ct_NMEDIT="nmedit" 13483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13484 break 2 13485 fi 13486done 13487 done 13488IFS=$as_save_IFS 13489 13490fi 13491fi 13492ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 13493if test -n "$ac_ct_NMEDIT"; then 13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 13495$as_echo "$ac_ct_NMEDIT" >&6; } 13496else 13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13498$as_echo "no" >&6; } 13499fi 13500 13501 if test "x$ac_ct_NMEDIT" = x; then 13502 NMEDIT=":" 13503 else 13504 case $cross_compiling:$ac_tool_warned in 13505yes:) 13506{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13507$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13508ac_tool_warned=yes ;; 13509esac 13510 NMEDIT=$ac_ct_NMEDIT 13511 fi 13512else 13513 NMEDIT="$ac_cv_prog_NMEDIT" 13514fi 13515 13516 if test -n "$ac_tool_prefix"; then 13517 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 13518set dummy ${ac_tool_prefix}lipo; ac_word=$2 13519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13520$as_echo_n "checking for $ac_word... " >&6; } 13521if ${ac_cv_prog_LIPO+:} false; then : 13522 $as_echo_n "(cached) " >&6 13523else 13524 if test -n "$LIPO"; then 13525 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 13526else 13527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13528for as_dir in $PATH 13529do 13530 IFS=$as_save_IFS 13531 test -z "$as_dir" && as_dir=. 13532 for ac_exec_ext in '' $ac_executable_extensions; do 13533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13534 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 13535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13536 break 2 13537 fi 13538done 13539 done 13540IFS=$as_save_IFS 13541 13542fi 13543fi 13544LIPO=$ac_cv_prog_LIPO 13545if test -n "$LIPO"; then 13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 13547$as_echo "$LIPO" >&6; } 13548else 13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13550$as_echo "no" >&6; } 13551fi 13552 13553 13554fi 13555if test -z "$ac_cv_prog_LIPO"; then 13556 ac_ct_LIPO=$LIPO 13557 # Extract the first word of "lipo", so it can be a program name with args. 13558set dummy lipo; ac_word=$2 13559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13560$as_echo_n "checking for $ac_word... " >&6; } 13561if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 13562 $as_echo_n "(cached) " >&6 13563else 13564 if test -n "$ac_ct_LIPO"; then 13565 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 13566else 13567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13568for as_dir in $PATH 13569do 13570 IFS=$as_save_IFS 13571 test -z "$as_dir" && as_dir=. 13572 for ac_exec_ext in '' $ac_executable_extensions; do 13573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13574 ac_cv_prog_ac_ct_LIPO="lipo" 13575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13576 break 2 13577 fi 13578done 13579 done 13580IFS=$as_save_IFS 13581 13582fi 13583fi 13584ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 13585if test -n "$ac_ct_LIPO"; then 13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 13587$as_echo "$ac_ct_LIPO" >&6; } 13588else 13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13590$as_echo "no" >&6; } 13591fi 13592 13593 if test "x$ac_ct_LIPO" = x; then 13594 LIPO=":" 13595 else 13596 case $cross_compiling:$ac_tool_warned in 13597yes:) 13598{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13599$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13600ac_tool_warned=yes ;; 13601esac 13602 LIPO=$ac_ct_LIPO 13603 fi 13604else 13605 LIPO="$ac_cv_prog_LIPO" 13606fi 13607 13608 if test -n "$ac_tool_prefix"; then 13609 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 13610set dummy ${ac_tool_prefix}otool; ac_word=$2 13611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13612$as_echo_n "checking for $ac_word... " >&6; } 13613if ${ac_cv_prog_OTOOL+:} false; then : 13614 $as_echo_n "(cached) " >&6 13615else 13616 if test -n "$OTOOL"; then 13617 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 13618else 13619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13620for as_dir in $PATH 13621do 13622 IFS=$as_save_IFS 13623 test -z "$as_dir" && as_dir=. 13624 for ac_exec_ext in '' $ac_executable_extensions; do 13625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13626 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 13627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13628 break 2 13629 fi 13630done 13631 done 13632IFS=$as_save_IFS 13633 13634fi 13635fi 13636OTOOL=$ac_cv_prog_OTOOL 13637if test -n "$OTOOL"; then 13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 13639$as_echo "$OTOOL" >&6; } 13640else 13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13642$as_echo "no" >&6; } 13643fi 13644 13645 13646fi 13647if test -z "$ac_cv_prog_OTOOL"; then 13648 ac_ct_OTOOL=$OTOOL 13649 # Extract the first word of "otool", so it can be a program name with args. 13650set dummy otool; ac_word=$2 13651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13652$as_echo_n "checking for $ac_word... " >&6; } 13653if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 13654 $as_echo_n "(cached) " >&6 13655else 13656 if test -n "$ac_ct_OTOOL"; then 13657 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 13658else 13659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13660for as_dir in $PATH 13661do 13662 IFS=$as_save_IFS 13663 test -z "$as_dir" && as_dir=. 13664 for ac_exec_ext in '' $ac_executable_extensions; do 13665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13666 ac_cv_prog_ac_ct_OTOOL="otool" 13667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13668 break 2 13669 fi 13670done 13671 done 13672IFS=$as_save_IFS 13673 13674fi 13675fi 13676ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 13677if test -n "$ac_ct_OTOOL"; then 13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 13679$as_echo "$ac_ct_OTOOL" >&6; } 13680else 13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13682$as_echo "no" >&6; } 13683fi 13684 13685 if test "x$ac_ct_OTOOL" = x; then 13686 OTOOL=":" 13687 else 13688 case $cross_compiling:$ac_tool_warned in 13689yes:) 13690{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13691$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13692ac_tool_warned=yes ;; 13693esac 13694 OTOOL=$ac_ct_OTOOL 13695 fi 13696else 13697 OTOOL="$ac_cv_prog_OTOOL" 13698fi 13699 13700 if test -n "$ac_tool_prefix"; then 13701 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 13702set dummy ${ac_tool_prefix}otool64; ac_word=$2 13703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13704$as_echo_n "checking for $ac_word... " >&6; } 13705if ${ac_cv_prog_OTOOL64+:} false; then : 13706 $as_echo_n "(cached) " >&6 13707else 13708 if test -n "$OTOOL64"; then 13709 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 13710else 13711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13712for as_dir in $PATH 13713do 13714 IFS=$as_save_IFS 13715 test -z "$as_dir" && as_dir=. 13716 for ac_exec_ext in '' $ac_executable_extensions; do 13717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13718 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 13719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13720 break 2 13721 fi 13722done 13723 done 13724IFS=$as_save_IFS 13725 13726fi 13727fi 13728OTOOL64=$ac_cv_prog_OTOOL64 13729if test -n "$OTOOL64"; then 13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 13731$as_echo "$OTOOL64" >&6; } 13732else 13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13734$as_echo "no" >&6; } 13735fi 13736 13737 13738fi 13739if test -z "$ac_cv_prog_OTOOL64"; then 13740 ac_ct_OTOOL64=$OTOOL64 13741 # Extract the first word of "otool64", so it can be a program name with args. 13742set dummy otool64; ac_word=$2 13743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13744$as_echo_n "checking for $ac_word... " >&6; } 13745if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 13746 $as_echo_n "(cached) " >&6 13747else 13748 if test -n "$ac_ct_OTOOL64"; then 13749 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 13750else 13751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13752for as_dir in $PATH 13753do 13754 IFS=$as_save_IFS 13755 test -z "$as_dir" && as_dir=. 13756 for ac_exec_ext in '' $ac_executable_extensions; do 13757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13758 ac_cv_prog_ac_ct_OTOOL64="otool64" 13759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13760 break 2 13761 fi 13762done 13763 done 13764IFS=$as_save_IFS 13765 13766fi 13767fi 13768ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 13769if test -n "$ac_ct_OTOOL64"; then 13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 13771$as_echo "$ac_ct_OTOOL64" >&6; } 13772else 13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13774$as_echo "no" >&6; } 13775fi 13776 13777 if test "x$ac_ct_OTOOL64" = x; then 13778 OTOOL64=":" 13779 else 13780 case $cross_compiling:$ac_tool_warned in 13781yes:) 13782{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13783$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13784ac_tool_warned=yes ;; 13785esac 13786 OTOOL64=$ac_ct_OTOOL64 13787 fi 13788else 13789 OTOOL64="$ac_cv_prog_OTOOL64" 13790fi 13791 13792 13793 13794 13795 13796 13797 13798 13799 13800 13801 13802 13803 13804 13805 13806 13807 13808 13809 13810 13811 13812 13813 13814 13815 13816 13817 13818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 13819$as_echo_n "checking for -single_module linker flag... " >&6; } 13820if ${lt_cv_apple_cc_single_mod+:} false; then : 13821 $as_echo_n "(cached) " >&6 13822else 13823 lt_cv_apple_cc_single_mod=no 13824 if test -z "$LT_MULTI_MODULE"; then 13825 # By default we will add the -single_module flag. You can override 13826 # by either setting the environment variable LT_MULTI_MODULE 13827 # non-empty at configure time, or by adding -multi_module to the 13828 # link flags. 13829 rm -rf libconftest.dylib* 13830 echo "int foo(void){return 1;}" > conftest.c 13831 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 13832-dynamiclib -Wl,-single_module conftest.c" >&5 13833 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 13834 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 13835 _lt_result=$? 13836 # If there is a non-empty error log, and "single_module" 13837 # appears in it, assume the flag caused a linker warning 13838 if test -s conftest.err && $GREP single_module conftest.err; then 13839 cat conftest.err >&5 13840 # Otherwise, if the output was created with a 0 exit code from 13841 # the compiler, it worked. 13842 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 13843 lt_cv_apple_cc_single_mod=yes 13844 else 13845 cat conftest.err >&5 13846 fi 13847 rm -rf libconftest.dylib* 13848 rm -f conftest.* 13849 fi 13850fi 13851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 13852$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 13853 13854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 13855$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 13856if ${lt_cv_ld_exported_symbols_list+:} false; then : 13857 $as_echo_n "(cached) " >&6 13858else 13859 lt_cv_ld_exported_symbols_list=no 13860 save_LDFLAGS=$LDFLAGS 13861 echo "_main" > conftest.sym 13862 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 13863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13864/* end confdefs.h. */ 13865 13866int 13867main () 13868{ 13869 13870 ; 13871 return 0; 13872} 13873_ACEOF 13874if ac_fn_c_try_link "$LINENO"; then : 13875 lt_cv_ld_exported_symbols_list=yes 13876else 13877 lt_cv_ld_exported_symbols_list=no 13878fi 13879rm -f core conftest.err conftest.$ac_objext \ 13880 conftest$ac_exeext conftest.$ac_ext 13881 LDFLAGS=$save_LDFLAGS 13882 13883fi 13884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 13885$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 13886 13887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 13888$as_echo_n "checking for -force_load linker flag... " >&6; } 13889if ${lt_cv_ld_force_load+:} false; then : 13890 $as_echo_n "(cached) " >&6 13891else 13892 lt_cv_ld_force_load=no 13893 cat > conftest.c << _LT_EOF 13894int forced_loaded() { return 2;} 13895_LT_EOF 13896 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 13897 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 13898 echo "$AR cru libconftest.a conftest.o" >&5 13899 $AR cru libconftest.a conftest.o 2>&5 13900 echo "$RANLIB libconftest.a" >&5 13901 $RANLIB libconftest.a 2>&5 13902 cat > conftest.c << _LT_EOF 13903int main() { return 0;} 13904_LT_EOF 13905 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 13906 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 13907 _lt_result=$? 13908 if test -s conftest.err && $GREP force_load conftest.err; then 13909 cat conftest.err >&5 13910 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 13911 lt_cv_ld_force_load=yes 13912 else 13913 cat conftest.err >&5 13914 fi 13915 rm -f conftest.err libconftest.a conftest conftest.c 13916 rm -rf conftest.dSYM 13917 13918fi 13919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 13920$as_echo "$lt_cv_ld_force_load" >&6; } 13921 case $host_os in 13922 rhapsody* | darwin1.[012]) 13923 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 13924 darwin1.*) 13925 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 13926 darwin*) # darwin 5.x on 13927 # if running on 10.5 or later, the deployment target defaults 13928 # to the OS version, if on x86, and 10.4, the deployment 13929 # target defaults to 10.4. Don't you love it? 13930 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 13931 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 13932 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 13933 10.[012][,.]*) 13934 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 13935 10.*) 13936 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 13937 esac 13938 ;; 13939 esac 13940 if test yes = "$lt_cv_apple_cc_single_mod"; then 13941 _lt_dar_single_mod='$single_module' 13942 fi 13943 if test yes = "$lt_cv_ld_exported_symbols_list"; then 13944 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 13945 else 13946 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 13947 fi 13948 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 13949 _lt_dsymutil='~$DSYMUTIL $lib || :' 13950 else 13951 _lt_dsymutil= 13952 fi 13953 ;; 13954 esac 13955 13956# func_munge_path_list VARIABLE PATH 13957# ----------------------------------- 13958# VARIABLE is name of variable containing _space_ separated list of 13959# directories to be munged by the contents of PATH, which is string 13960# having a format: 13961# "DIR[:DIR]:" 13962# string "DIR[ DIR]" will be prepended to VARIABLE 13963# ":DIR[:DIR]" 13964# string "DIR[ DIR]" will be appended to VARIABLE 13965# "DIRP[:DIRP]::[DIRA:]DIRA" 13966# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 13967# "DIRA[ DIRA]" will be appended to VARIABLE 13968# "DIR[:DIR]" 13969# VARIABLE will be replaced by "DIR[ DIR]" 13970func_munge_path_list () 13971{ 13972 case x$2 in 13973 x) 13974 ;; 13975 *:) 13976 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 13977 ;; 13978 x:*) 13979 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 13980 ;; 13981 *::*) 13982 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 13983 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 13984 ;; 13985 *) 13986 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 13987 ;; 13988 esac 13989} 13990 13991for ac_header in dlfcn.h 13992do : 13993 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 13994" 13995if test "x$ac_cv_header_dlfcn_h" = xyes; then : 13996 cat >>confdefs.h <<_ACEOF 13997#define HAVE_DLFCN_H 1 13998_ACEOF 13999 14000fi 14001 14002done 14003 14004 14005 14006 14007 14008# Set options 14009 14010 14011 14012 enable_dlopen=no 14013 14014 14015 14016 # Check whether --enable-shared was given. 14017if test "${enable_shared+set}" = set; then : 14018 enableval=$enable_shared; p=${PACKAGE-default} 14019 case $enableval in 14020 yes) enable_shared=yes ;; 14021 no) enable_shared=no ;; 14022 *) 14023 enable_shared=no 14024 # Look at the argument we got. We use all the common list separators. 14025 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14026 for pkg in $enableval; do 14027 IFS=$lt_save_ifs 14028 if test "X$pkg" = "X$p"; then 14029 enable_shared=yes 14030 fi 14031 done 14032 IFS=$lt_save_ifs 14033 ;; 14034 esac 14035else 14036 enable_shared=yes 14037fi 14038 14039 14040 14041 14042 14043 14044 14045 14046 14047 # Check whether --enable-static was given. 14048if test "${enable_static+set}" = set; then : 14049 enableval=$enable_static; p=${PACKAGE-default} 14050 case $enableval in 14051 yes) enable_static=yes ;; 14052 no) enable_static=no ;; 14053 *) 14054 enable_static=no 14055 # Look at the argument we got. We use all the common list separators. 14056 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14057 for pkg in $enableval; do 14058 IFS=$lt_save_ifs 14059 if test "X$pkg" = "X$p"; then 14060 enable_static=yes 14061 fi 14062 done 14063 IFS=$lt_save_ifs 14064 ;; 14065 esac 14066else 14067 enable_static=yes 14068fi 14069 14070 14071 14072 14073 14074 14075 14076 14077 14078 14079# Check whether --with-pic was given. 14080if test "${with_pic+set}" = set; then : 14081 withval=$with_pic; lt_p=${PACKAGE-default} 14082 case $withval in 14083 yes|no) pic_mode=$withval ;; 14084 *) 14085 pic_mode=default 14086 # Look at the argument we got. We use all the common list separators. 14087 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14088 for lt_pkg in $withval; do 14089 IFS=$lt_save_ifs 14090 if test "X$lt_pkg" = "X$lt_p"; then 14091 pic_mode=yes 14092 fi 14093 done 14094 IFS=$lt_save_ifs 14095 ;; 14096 esac 14097else 14098 pic_mode=default 14099fi 14100 14101 14102 14103 14104 14105 14106 14107 14108 # Check whether --enable-fast-install was given. 14109if test "${enable_fast_install+set}" = set; then : 14110 enableval=$enable_fast_install; p=${PACKAGE-default} 14111 case $enableval in 14112 yes) enable_fast_install=yes ;; 14113 no) enable_fast_install=no ;; 14114 *) 14115 enable_fast_install=no 14116 # Look at the argument we got. We use all the common list separators. 14117 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 14118 for pkg in $enableval; do 14119 IFS=$lt_save_ifs 14120 if test "X$pkg" = "X$p"; then 14121 enable_fast_install=yes 14122 fi 14123 done 14124 IFS=$lt_save_ifs 14125 ;; 14126 esac 14127else 14128 enable_fast_install=yes 14129fi 14130 14131 14132 14133 14134 14135 14136 14137 14138 shared_archive_member_spec= 14139case $host,$enable_shared in 14140power*-*-aix[5-9]*,yes) 14141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 14142$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 14143 14144# Check whether --with-aix-soname was given. 14145if test "${with_aix_soname+set}" = set; then : 14146 withval=$with_aix_soname; case $withval in 14147 aix|svr4|both) 14148 ;; 14149 *) 14150 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 14151 ;; 14152 esac 14153 lt_cv_with_aix_soname=$with_aix_soname 14154else 14155 if ${lt_cv_with_aix_soname+:} false; then : 14156 $as_echo_n "(cached) " >&6 14157else 14158 lt_cv_with_aix_soname=aix 14159fi 14160 14161 with_aix_soname=$lt_cv_with_aix_soname 14162fi 14163 14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 14165$as_echo "$with_aix_soname" >&6; } 14166 if test aix != "$with_aix_soname"; then 14167 # For the AIX way of multilib, we name the shared archive member 14168 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 14169 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 14170 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 14171 # the AIX toolchain works better with OBJECT_MODE set (default 32). 14172 if test 64 = "${OBJECT_MODE-32}"; then 14173 shared_archive_member_spec=shr_64 14174 else 14175 shared_archive_member_spec=shr 14176 fi 14177 fi 14178 ;; 14179*) 14180 with_aix_soname=aix 14181 ;; 14182esac 14183 14184 14185 14186 14187 14188 14189 14190 14191 14192 14193# This can be used to rebuild libtool when needed 14194LIBTOOL_DEPS=$ltmain 14195 14196# Always use our own libtool. 14197LIBTOOL='$(SHELL) $(apr_builddir)/libtool' 14198 14199 14200 14201 14202 14203 14204 14205 14206 14207 14208 14209 14210 14211 14212 14213 14214 14215 14216 14217 14218 14219 14220 14221 14222 14223 14224 14225 14226 14227 14228test -z "$LN_S" && LN_S="ln -s" 14229 14230 14231 14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243if test -n "${ZSH_VERSION+set}"; then 14244 setopt NO_GLOB_SUBST 14245fi 14246 14247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 14248$as_echo_n "checking for objdir... " >&6; } 14249if ${lt_cv_objdir+:} false; then : 14250 $as_echo_n "(cached) " >&6 14251else 14252 rm -f .libs 2>/dev/null 14253mkdir .libs 2>/dev/null 14254if test -d .libs; then 14255 lt_cv_objdir=.libs 14256else 14257 # MS-DOS does not allow filenames that begin with a dot. 14258 lt_cv_objdir=_libs 14259fi 14260rmdir .libs 2>/dev/null 14261fi 14262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 14263$as_echo "$lt_cv_objdir" >&6; } 14264objdir=$lt_cv_objdir 14265 14266 14267 14268 14269 14270cat >>confdefs.h <<_ACEOF 14271#define LT_OBJDIR "$lt_cv_objdir/" 14272_ACEOF 14273 14274 14275 14276 14277case $host_os in 14278aix3*) 14279 # AIX sometimes has problems with the GCC collect2 program. For some 14280 # reason, if we set the COLLECT_NAMES environment variable, the problems 14281 # vanish in a puff of smoke. 14282 if test set != "${COLLECT_NAMES+set}"; then 14283 COLLECT_NAMES= 14284 export COLLECT_NAMES 14285 fi 14286 ;; 14287esac 14288 14289# Global variables: 14290ofile=libtool 14291can_build_shared=yes 14292 14293# All known linkers require a '.a' archive for static linking (except MSVC, 14294# which needs '.lib'). 14295libext=a 14296 14297with_gnu_ld=$lt_cv_prog_gnu_ld 14298 14299old_CC=$CC 14300old_CFLAGS=$CFLAGS 14301 14302# Set sane defaults for various variables 14303test -z "$CC" && CC=cc 14304test -z "$LTCC" && LTCC=$CC 14305test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 14306test -z "$LD" && LD=ld 14307test -z "$ac_objext" && ac_objext=o 14308 14309func_cc_basename $compiler 14310cc_basename=$func_cc_basename_result 14311 14312 14313# Only perform the check for file, if the check method requires it 14314test -z "$MAGIC_CMD" && MAGIC_CMD=file 14315case $deplibs_check_method in 14316file_magic*) 14317 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 14319$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 14320if ${lt_cv_path_MAGIC_CMD+:} false; then : 14321 $as_echo_n "(cached) " >&6 14322else 14323 case $MAGIC_CMD in 14324[\\/*] | ?:[\\/]*) 14325 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 14326 ;; 14327*) 14328 lt_save_MAGIC_CMD=$MAGIC_CMD 14329 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14330 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14331 for ac_dir in $ac_dummy; do 14332 IFS=$lt_save_ifs 14333 test -z "$ac_dir" && ac_dir=. 14334 if test -f "$ac_dir/${ac_tool_prefix}file"; then 14335 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 14336 if test -n "$file_magic_test_file"; then 14337 case $deplibs_check_method in 14338 "file_magic "*) 14339 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14340 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14341 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14342 $EGREP "$file_magic_regex" > /dev/null; then 14343 : 14344 else 14345 cat <<_LT_EOF 1>&2 14346 14347*** Warning: the command libtool uses to detect shared libraries, 14348*** $file_magic_cmd, produces output that libtool cannot recognize. 14349*** The result is that libtool may fail to recognize shared libraries 14350*** as such. This will affect the creation of libtool libraries that 14351*** depend on shared libraries, but programs linked with such libtool 14352*** libraries will work regardless of this problem. Nevertheless, you 14353*** may want to report the problem to your system manager and/or to 14354*** bug-libtool@gnu.org 14355 14356_LT_EOF 14357 fi ;; 14358 esac 14359 fi 14360 break 14361 fi 14362 done 14363 IFS=$lt_save_ifs 14364 MAGIC_CMD=$lt_save_MAGIC_CMD 14365 ;; 14366esac 14367fi 14368 14369MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14370if test -n "$MAGIC_CMD"; then 14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14372$as_echo "$MAGIC_CMD" >&6; } 14373else 14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14375$as_echo "no" >&6; } 14376fi 14377 14378 14379 14380 14381 14382if test -z "$lt_cv_path_MAGIC_CMD"; then 14383 if test -n "$ac_tool_prefix"; then 14384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 14385$as_echo_n "checking for file... " >&6; } 14386if ${lt_cv_path_MAGIC_CMD+:} false; then : 14387 $as_echo_n "(cached) " >&6 14388else 14389 case $MAGIC_CMD in 14390[\\/*] | ?:[\\/]*) 14391 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 14392 ;; 14393*) 14394 lt_save_MAGIC_CMD=$MAGIC_CMD 14395 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14396 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14397 for ac_dir in $ac_dummy; do 14398 IFS=$lt_save_ifs 14399 test -z "$ac_dir" && ac_dir=. 14400 if test -f "$ac_dir/file"; then 14401 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 14402 if test -n "$file_magic_test_file"; then 14403 case $deplibs_check_method in 14404 "file_magic "*) 14405 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14406 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14407 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14408 $EGREP "$file_magic_regex" > /dev/null; then 14409 : 14410 else 14411 cat <<_LT_EOF 1>&2 14412 14413*** Warning: the command libtool uses to detect shared libraries, 14414*** $file_magic_cmd, produces output that libtool cannot recognize. 14415*** The result is that libtool may fail to recognize shared libraries 14416*** as such. This will affect the creation of libtool libraries that 14417*** depend on shared libraries, but programs linked with such libtool 14418*** libraries will work regardless of this problem. Nevertheless, you 14419*** may want to report the problem to your system manager and/or to 14420*** bug-libtool@gnu.org 14421 14422_LT_EOF 14423 fi ;; 14424 esac 14425 fi 14426 break 14427 fi 14428 done 14429 IFS=$lt_save_ifs 14430 MAGIC_CMD=$lt_save_MAGIC_CMD 14431 ;; 14432esac 14433fi 14434 14435MAGIC_CMD=$lt_cv_path_MAGIC_CMD 14436if test -n "$MAGIC_CMD"; then 14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14438$as_echo "$MAGIC_CMD" >&6; } 14439else 14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14441$as_echo "no" >&6; } 14442fi 14443 14444 14445 else 14446 MAGIC_CMD=: 14447 fi 14448fi 14449 14450 fi 14451 ;; 14452esac 14453 14454# Use C for the default configuration in the libtool script 14455 14456lt_save_CC=$CC 14457ac_ext=c 14458ac_cpp='$CPP $CPPFLAGS' 14459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14461ac_compiler_gnu=$ac_cv_c_compiler_gnu 14462 14463 14464# Source file extension for C test sources. 14465ac_ext=c 14466 14467# Object file extension for compiled C test sources. 14468objext=o 14469objext=$objext 14470 14471# Code to be used in simple compile tests 14472lt_simple_compile_test_code="int some_variable = 0;" 14473 14474# Code to be used in simple link tests 14475lt_simple_link_test_code='int main(){return(0);}' 14476 14477 14478 14479 14480 14481 14482 14483# If no C compiler was specified, use CC. 14484LTCC=${LTCC-"$CC"} 14485 14486# If no C compiler flags were specified, use CFLAGS. 14487LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14488 14489# Allow CC to be a program name with arguments. 14490compiler=$CC 14491 14492# Save the default compiler, since it gets overwritten when the other 14493# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 14494compiler_DEFAULT=$CC 14495 14496# save warnings/boilerplate of simple test code 14497ac_outfile=conftest.$ac_objext 14498echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14499eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14500_lt_compiler_boilerplate=`cat conftest.err` 14501$RM conftest* 14502 14503ac_outfile=conftest.$ac_objext 14504echo "$lt_simple_link_test_code" >conftest.$ac_ext 14505eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14506_lt_linker_boilerplate=`cat conftest.err` 14507$RM -r conftest* 14508 14509 14510## CAVEAT EMPTOR: 14511## There is no encapsulation within the following macros, do not change 14512## the running order or otherwise move them around unless you know exactly 14513## what you are doing... 14514if test -n "$compiler"; then 14515 14516lt_prog_compiler_no_builtin_flag= 14517 14518if test yes = "$GCC"; then 14519 case $cc_basename in 14520 nvcc*) 14521 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 14522 *) 14523 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 14524 esac 14525 14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14527$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 14528if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 14529 $as_echo_n "(cached) " >&6 14530else 14531 lt_cv_prog_compiler_rtti_exceptions=no 14532 ac_outfile=conftest.$ac_objext 14533 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14534 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 14535 # Insert the option either (1) after the last *FLAGS variable, or 14536 # (2) before a word containing "conftest.", or (3) at the end. 14537 # Note that $ac_compile itself does not contain backslashes and begins 14538 # with a dollar sign (not a hyphen), so the echo should work correctly. 14539 # The option is referenced via a variable to avoid confusing sed. 14540 lt_compile=`echo "$ac_compile" | $SED \ 14541 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14542 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14543 -e 's:$: $lt_compiler_flag:'` 14544 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14545 (eval "$lt_compile" 2>conftest.err) 14546 ac_status=$? 14547 cat conftest.err >&5 14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14549 if (exit $ac_status) && test -s "$ac_outfile"; then 14550 # The compiler can only warn and ignore the option if not recognized 14551 # So say no if there are warnings other than the usual output. 14552 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14553 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14554 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14555 lt_cv_prog_compiler_rtti_exceptions=yes 14556 fi 14557 fi 14558 $RM conftest* 14559 14560fi 14561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 14562$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 14563 14564if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 14565 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 14566else 14567 : 14568fi 14569 14570fi 14571 14572 14573 14574 14575 14576 14577 lt_prog_compiler_wl= 14578lt_prog_compiler_pic= 14579lt_prog_compiler_static= 14580 14581 14582 if test yes = "$GCC"; then 14583 lt_prog_compiler_wl='-Wl,' 14584 lt_prog_compiler_static='-static' 14585 14586 case $host_os in 14587 aix*) 14588 # All AIX code is PIC. 14589 if test ia64 = "$host_cpu"; then 14590 # AIX 5 now supports IA64 processor 14591 lt_prog_compiler_static='-Bstatic' 14592 fi 14593 lt_prog_compiler_pic='-fPIC' 14594 ;; 14595 14596 amigaos*) 14597 case $host_cpu in 14598 powerpc) 14599 # see comment about AmigaOS4 .so support 14600 lt_prog_compiler_pic='-fPIC' 14601 ;; 14602 m68k) 14603 # FIXME: we need at least 68020 code to build shared libraries, but 14604 # adding the '-m68020' flag to GCC prevents building anything better, 14605 # like '-m68040'. 14606 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 14607 ;; 14608 esac 14609 ;; 14610 14611 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14612 # PIC is the default for these OSes. 14613 ;; 14614 14615 mingw* | cygwin* | pw32* | os2* | cegcc*) 14616 # This hack is so that the source file can tell whether it is being 14617 # built for inclusion in a dll (and should export symbols for example). 14618 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14619 # (--disable-auto-import) libraries 14620 lt_prog_compiler_pic='-DDLL_EXPORT' 14621 case $host_os in 14622 os2*) 14623 lt_prog_compiler_static='$wl-static' 14624 ;; 14625 esac 14626 ;; 14627 14628 darwin* | rhapsody*) 14629 # PIC is the default on this platform 14630 # Common symbols not allowed in MH_DYLIB files 14631 lt_prog_compiler_pic='-fno-common' 14632 ;; 14633 14634 haiku*) 14635 # PIC is the default for Haiku. 14636 # The "-static" flag exists, but is broken. 14637 lt_prog_compiler_static= 14638 ;; 14639 14640 hpux*) 14641 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14642 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14643 # sets the default TLS model and affects inlining. 14644 case $host_cpu in 14645 hppa*64*) 14646 # +Z the default 14647 ;; 14648 *) 14649 lt_prog_compiler_pic='-fPIC' 14650 ;; 14651 esac 14652 ;; 14653 14654 interix[3-9]*) 14655 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14656 # Instead, we relocate shared libraries at runtime. 14657 ;; 14658 14659 msdosdjgpp*) 14660 # Just because we use GCC doesn't mean we suddenly get shared libraries 14661 # on systems that don't support them. 14662 lt_prog_compiler_can_build_shared=no 14663 enable_shared=no 14664 ;; 14665 14666 *nto* | *qnx*) 14667 # QNX uses GNU C++, but need to define -shared option too, otherwise 14668 # it will coredump. 14669 lt_prog_compiler_pic='-fPIC -shared' 14670 ;; 14671 14672 sysv4*MP*) 14673 if test -d /usr/nec; then 14674 lt_prog_compiler_pic=-Kconform_pic 14675 fi 14676 ;; 14677 14678 *) 14679 lt_prog_compiler_pic='-fPIC' 14680 ;; 14681 esac 14682 14683 case $cc_basename in 14684 nvcc*) # Cuda Compiler Driver 2.2 14685 lt_prog_compiler_wl='-Xlinker ' 14686 if test -n "$lt_prog_compiler_pic"; then 14687 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 14688 fi 14689 ;; 14690 esac 14691 else 14692 # PORTME Check for flag to pass linker flags through the system compiler. 14693 case $host_os in 14694 aix*) 14695 lt_prog_compiler_wl='-Wl,' 14696 if test ia64 = "$host_cpu"; then 14697 # AIX 5 now supports IA64 processor 14698 lt_prog_compiler_static='-Bstatic' 14699 else 14700 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 14701 fi 14702 ;; 14703 14704 darwin* | rhapsody*) 14705 # PIC is the default on this platform 14706 # Common symbols not allowed in MH_DYLIB files 14707 lt_prog_compiler_pic='-fno-common' 14708 case $cc_basename in 14709 nagfor*) 14710 # NAG Fortran compiler 14711 lt_prog_compiler_wl='-Wl,-Wl,,' 14712 lt_prog_compiler_pic='-PIC' 14713 lt_prog_compiler_static='-Bstatic' 14714 ;; 14715 esac 14716 ;; 14717 14718 mingw* | cygwin* | pw32* | os2* | cegcc*) 14719 # This hack is so that the source file can tell whether it is being 14720 # built for inclusion in a dll (and should export symbols for example). 14721 lt_prog_compiler_pic='-DDLL_EXPORT' 14722 case $host_os in 14723 os2*) 14724 lt_prog_compiler_static='$wl-static' 14725 ;; 14726 esac 14727 ;; 14728 14729 hpux9* | hpux10* | hpux11*) 14730 lt_prog_compiler_wl='-Wl,' 14731 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14732 # not for PA HP-UX. 14733 case $host_cpu in 14734 hppa*64*|ia64*) 14735 # +Z the default 14736 ;; 14737 *) 14738 lt_prog_compiler_pic='+Z' 14739 ;; 14740 esac 14741 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14742 lt_prog_compiler_static='$wl-a ${wl}archive' 14743 ;; 14744 14745 irix5* | irix6* | nonstopux*) 14746 lt_prog_compiler_wl='-Wl,' 14747 # PIC (with -KPIC) is the default. 14748 lt_prog_compiler_static='-non_shared' 14749 ;; 14750 14751 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14752 case $cc_basename in 14753 # old Intel for x86_64, which still supported -KPIC. 14754 ecc*) 14755 lt_prog_compiler_wl='-Wl,' 14756 lt_prog_compiler_pic='-KPIC' 14757 lt_prog_compiler_static='-static' 14758 ;; 14759 # icc used to be incompatible with GCC. 14760 # ICC 10 doesn't accept -KPIC any more. 14761 icc* | ifort*) 14762 lt_prog_compiler_wl='-Wl,' 14763 lt_prog_compiler_pic='-fPIC' 14764 lt_prog_compiler_static='-static' 14765 ;; 14766 # Lahey Fortran 8.1. 14767 lf95*) 14768 lt_prog_compiler_wl='-Wl,' 14769 lt_prog_compiler_pic='--shared' 14770 lt_prog_compiler_static='--static' 14771 ;; 14772 nagfor*) 14773 # NAG Fortran compiler 14774 lt_prog_compiler_wl='-Wl,-Wl,,' 14775 lt_prog_compiler_pic='-PIC' 14776 lt_prog_compiler_static='-Bstatic' 14777 ;; 14778 tcc*) 14779 # Fabrice Bellard et al's Tiny C Compiler 14780 lt_prog_compiler_wl='-Wl,' 14781 lt_prog_compiler_pic='-fPIC' 14782 lt_prog_compiler_static='-static' 14783 ;; 14784 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 14785 # Portland Group compilers (*not* the Pentium gcc compiler, 14786 # which looks to be a dead project) 14787 lt_prog_compiler_wl='-Wl,' 14788 lt_prog_compiler_pic='-fpic' 14789 lt_prog_compiler_static='-Bstatic' 14790 ;; 14791 ccc*) 14792 lt_prog_compiler_wl='-Wl,' 14793 # All Alpha code is PIC. 14794 lt_prog_compiler_static='-non_shared' 14795 ;; 14796 xl* | bgxl* | bgf* | mpixl*) 14797 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 14798 lt_prog_compiler_wl='-Wl,' 14799 lt_prog_compiler_pic='-qpic' 14800 lt_prog_compiler_static='-qstaticlink' 14801 ;; 14802 *) 14803 case `$CC -V 2>&1 | sed 5q` in 14804 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 14805 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14806 lt_prog_compiler_pic='-KPIC' 14807 lt_prog_compiler_static='-Bstatic' 14808 lt_prog_compiler_wl='' 14809 ;; 14810 *Sun\ F* | *Sun*Fortran*) 14811 lt_prog_compiler_pic='-KPIC' 14812 lt_prog_compiler_static='-Bstatic' 14813 lt_prog_compiler_wl='-Qoption ld ' 14814 ;; 14815 *Sun\ C*) 14816 # Sun C 5.9 14817 lt_prog_compiler_pic='-KPIC' 14818 lt_prog_compiler_static='-Bstatic' 14819 lt_prog_compiler_wl='-Wl,' 14820 ;; 14821 *Intel*\ [CF]*Compiler*) 14822 lt_prog_compiler_wl='-Wl,' 14823 lt_prog_compiler_pic='-fPIC' 14824 lt_prog_compiler_static='-static' 14825 ;; 14826 *Portland\ Group*) 14827 lt_prog_compiler_wl='-Wl,' 14828 lt_prog_compiler_pic='-fpic' 14829 lt_prog_compiler_static='-Bstatic' 14830 ;; 14831 esac 14832 ;; 14833 esac 14834 ;; 14835 14836 newsos6) 14837 lt_prog_compiler_pic='-KPIC' 14838 lt_prog_compiler_static='-Bstatic' 14839 ;; 14840 14841 *nto* | *qnx*) 14842 # QNX uses GNU C++, but need to define -shared option too, otherwise 14843 # it will coredump. 14844 lt_prog_compiler_pic='-fPIC -shared' 14845 ;; 14846 14847 osf3* | osf4* | osf5*) 14848 lt_prog_compiler_wl='-Wl,' 14849 # All OSF/1 code is PIC. 14850 lt_prog_compiler_static='-non_shared' 14851 ;; 14852 14853 rdos*) 14854 lt_prog_compiler_static='-non_shared' 14855 ;; 14856 14857 solaris*) 14858 lt_prog_compiler_pic='-KPIC' 14859 lt_prog_compiler_static='-Bstatic' 14860 case $cc_basename in 14861 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 14862 lt_prog_compiler_wl='-Qoption ld ';; 14863 *) 14864 lt_prog_compiler_wl='-Wl,';; 14865 esac 14866 ;; 14867 14868 sunos4*) 14869 lt_prog_compiler_wl='-Qoption ld ' 14870 lt_prog_compiler_pic='-PIC' 14871 lt_prog_compiler_static='-Bstatic' 14872 ;; 14873 14874 sysv4 | sysv4.2uw2* | sysv4.3*) 14875 lt_prog_compiler_wl='-Wl,' 14876 lt_prog_compiler_pic='-KPIC' 14877 lt_prog_compiler_static='-Bstatic' 14878 ;; 14879 14880 sysv4*MP*) 14881 if test -d /usr/nec; then 14882 lt_prog_compiler_pic='-Kconform_pic' 14883 lt_prog_compiler_static='-Bstatic' 14884 fi 14885 ;; 14886 14887 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14888 lt_prog_compiler_wl='-Wl,' 14889 lt_prog_compiler_pic='-KPIC' 14890 lt_prog_compiler_static='-Bstatic' 14891 ;; 14892 14893 unicos*) 14894 lt_prog_compiler_wl='-Wl,' 14895 lt_prog_compiler_can_build_shared=no 14896 ;; 14897 14898 uts4*) 14899 lt_prog_compiler_pic='-pic' 14900 lt_prog_compiler_static='-Bstatic' 14901 ;; 14902 14903 *) 14904 lt_prog_compiler_can_build_shared=no 14905 ;; 14906 esac 14907 fi 14908 14909case $host_os in 14910 # For platforms that do not support PIC, -DPIC is meaningless: 14911 *djgpp*) 14912 lt_prog_compiler_pic= 14913 ;; 14914 *) 14915 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 14916 ;; 14917esac 14918 14919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14920$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14921if ${lt_cv_prog_compiler_pic+:} false; then : 14922 $as_echo_n "(cached) " >&6 14923else 14924 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 14925fi 14926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 14927$as_echo "$lt_cv_prog_compiler_pic" >&6; } 14928lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 14929 14930# 14931# Check to make sure the PIC flag actually works. 14932# 14933if test -n "$lt_prog_compiler_pic"; then 14934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 14935$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 14936if ${lt_cv_prog_compiler_pic_works+:} false; then : 14937 $as_echo_n "(cached) " >&6 14938else 14939 lt_cv_prog_compiler_pic_works=no 14940 ac_outfile=conftest.$ac_objext 14941 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14942 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 14943 # Insert the option either (1) after the last *FLAGS variable, or 14944 # (2) before a word containing "conftest.", or (3) at the end. 14945 # Note that $ac_compile itself does not contain backslashes and begins 14946 # with a dollar sign (not a hyphen), so the echo should work correctly. 14947 # The option is referenced via a variable to avoid confusing sed. 14948 lt_compile=`echo "$ac_compile" | $SED \ 14949 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14950 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14951 -e 's:$: $lt_compiler_flag:'` 14952 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14953 (eval "$lt_compile" 2>conftest.err) 14954 ac_status=$? 14955 cat conftest.err >&5 14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14957 if (exit $ac_status) && test -s "$ac_outfile"; then 14958 # The compiler can only warn and ignore the option if not recognized 14959 # So say no if there are warnings other than the usual output. 14960 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14961 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14962 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14963 lt_cv_prog_compiler_pic_works=yes 14964 fi 14965 fi 14966 $RM conftest* 14967 14968fi 14969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 14970$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 14971 14972if test yes = "$lt_cv_prog_compiler_pic_works"; then 14973 case $lt_prog_compiler_pic in 14974 "" | " "*) ;; 14975 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 14976 esac 14977else 14978 lt_prog_compiler_pic= 14979 lt_prog_compiler_can_build_shared=no 14980fi 14981 14982fi 14983 14984 14985 14986 14987 14988 14989 14990 14991 14992 14993 14994# 14995# Check to make sure the static flag actually works. 14996# 14997wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 14998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14999$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15000if ${lt_cv_prog_compiler_static_works+:} false; then : 15001 $as_echo_n "(cached) " >&6 15002else 15003 lt_cv_prog_compiler_static_works=no 15004 save_LDFLAGS=$LDFLAGS 15005 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15006 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15007 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15008 # The linker can only warn and ignore the option if not recognized 15009 # So say no if there are warnings 15010 if test -s conftest.err; then 15011 # Append any errors to the config.log. 15012 cat conftest.err 1>&5 15013 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15014 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15015 if diff conftest.exp conftest.er2 >/dev/null; then 15016 lt_cv_prog_compiler_static_works=yes 15017 fi 15018 else 15019 lt_cv_prog_compiler_static_works=yes 15020 fi 15021 fi 15022 $RM -r conftest* 15023 LDFLAGS=$save_LDFLAGS 15024 15025fi 15026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 15027$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 15028 15029if test yes = "$lt_cv_prog_compiler_static_works"; then 15030 : 15031else 15032 lt_prog_compiler_static= 15033fi 15034 15035 15036 15037 15038 15039 15040 15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15042$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15043if ${lt_cv_prog_compiler_c_o+:} false; then : 15044 $as_echo_n "(cached) " >&6 15045else 15046 lt_cv_prog_compiler_c_o=no 15047 $RM -r conftest 2>/dev/null 15048 mkdir conftest 15049 cd conftest 15050 mkdir out 15051 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15052 15053 lt_compiler_flag="-o out/conftest2.$ac_objext" 15054 # Insert the option either (1) after the last *FLAGS variable, or 15055 # (2) before a word containing "conftest.", or (3) at the end. 15056 # Note that $ac_compile itself does not contain backslashes and begins 15057 # with a dollar sign (not a hyphen), so the echo should work correctly. 15058 lt_compile=`echo "$ac_compile" | $SED \ 15059 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15060 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15061 -e 's:$: $lt_compiler_flag:'` 15062 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15063 (eval "$lt_compile" 2>out/conftest.err) 15064 ac_status=$? 15065 cat out/conftest.err >&5 15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15067 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15068 then 15069 # The compiler can only warn and ignore the option if not recognized 15070 # So say no if there are warnings 15071 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15072 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15073 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15074 lt_cv_prog_compiler_c_o=yes 15075 fi 15076 fi 15077 chmod u+w . 2>&5 15078 $RM conftest* 15079 # SGI C++ compiler will create directory out/ii_files/ for 15080 # template instantiation 15081 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15082 $RM out/* && rmdir out 15083 cd .. 15084 $RM -r conftest 15085 $RM conftest* 15086 15087fi 15088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15089$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15090 15091 15092 15093 15094 15095 15096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15097$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15098if ${lt_cv_prog_compiler_c_o+:} false; then : 15099 $as_echo_n "(cached) " >&6 15100else 15101 lt_cv_prog_compiler_c_o=no 15102 $RM -r conftest 2>/dev/null 15103 mkdir conftest 15104 cd conftest 15105 mkdir out 15106 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15107 15108 lt_compiler_flag="-o out/conftest2.$ac_objext" 15109 # Insert the option either (1) after the last *FLAGS variable, or 15110 # (2) before a word containing "conftest.", or (3) at the end. 15111 # Note that $ac_compile itself does not contain backslashes and begins 15112 # with a dollar sign (not a hyphen), so the echo should work correctly. 15113 lt_compile=`echo "$ac_compile" | $SED \ 15114 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15115 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15116 -e 's:$: $lt_compiler_flag:'` 15117 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15118 (eval "$lt_compile" 2>out/conftest.err) 15119 ac_status=$? 15120 cat out/conftest.err >&5 15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15122 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15123 then 15124 # The compiler can only warn and ignore the option if not recognized 15125 # So say no if there are warnings 15126 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15127 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15128 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15129 lt_cv_prog_compiler_c_o=yes 15130 fi 15131 fi 15132 chmod u+w . 2>&5 15133 $RM conftest* 15134 # SGI C++ compiler will create directory out/ii_files/ for 15135 # template instantiation 15136 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15137 $RM out/* && rmdir out 15138 cd .. 15139 $RM -r conftest 15140 $RM conftest* 15141 15142fi 15143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15144$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15145 15146 15147 15148 15149hard_links=nottested 15150if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 15151 # do not overwrite the value of need_locks provided by the user 15152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15153$as_echo_n "checking if we can lock with hard links... " >&6; } 15154 hard_links=yes 15155 $RM conftest* 15156 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15157 touch conftest.a 15158 ln conftest.a conftest.b 2>&5 || hard_links=no 15159 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15161$as_echo "$hard_links" >&6; } 15162 if test no = "$hard_links"; then 15163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15164$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15165 need_locks=warn 15166 fi 15167else 15168 need_locks=no 15169fi 15170 15171 15172 15173 15174 15175 15176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15177$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15178 15179 runpath_var= 15180 allow_undefined_flag= 15181 always_export_symbols=no 15182 archive_cmds= 15183 archive_expsym_cmds= 15184 compiler_needs_object=no 15185 enable_shared_with_static_runtimes=no 15186 export_dynamic_flag_spec= 15187 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15188 hardcode_automatic=no 15189 hardcode_direct=no 15190 hardcode_direct_absolute=no 15191 hardcode_libdir_flag_spec= 15192 hardcode_libdir_separator= 15193 hardcode_minus_L=no 15194 hardcode_shlibpath_var=unsupported 15195 inherit_rpath=no 15196 link_all_deplibs=unknown 15197 module_cmds= 15198 module_expsym_cmds= 15199 old_archive_from_new_cmds= 15200 old_archive_from_expsyms_cmds= 15201 thread_safe_flag_spec= 15202 whole_archive_flag_spec= 15203 # include_expsyms should be a list of space-separated symbols to be *always* 15204 # included in the symbol list 15205 include_expsyms= 15206 # exclude_expsyms can be an extended regexp of symbols to exclude 15207 # it will be wrapped by ' (' and ')$', so one must not match beginning or 15208 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 15209 # as well as any symbol that contains 'd'. 15210 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15211 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15212 # platforms (ab)use it in PIC code, but their linkers get confused if 15213 # the symbol is explicitly referenced. Since portable code cannot 15214 # rely on this symbol name, it's probably fine to never include it in 15215 # preloaded symbol tables. 15216 # Exclude shared library initialization/finalization symbols. 15217 extract_expsyms_cmds= 15218 15219 case $host_os in 15220 cygwin* | mingw* | pw32* | cegcc*) 15221 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15222 # When not using gcc, we currently assume that we are using 15223 # Microsoft Visual C++. 15224 if test yes != "$GCC"; then 15225 with_gnu_ld=no 15226 fi 15227 ;; 15228 interix*) 15229 # we just hope/assume this is gcc and not c89 (= MSVC++) 15230 with_gnu_ld=yes 15231 ;; 15232 openbsd* | bitrig*) 15233 with_gnu_ld=no 15234 ;; 15235 esac 15236 15237 ld_shlibs=yes 15238 15239 # On some targets, GNU ld is compatible enough with the native linker 15240 # that we're better off using the native interface for both. 15241 lt_use_gnu_ld_interface=no 15242 if test yes = "$with_gnu_ld"; then 15243 case $host_os in 15244 aix*) 15245 # The AIX port of GNU ld has always aspired to compatibility 15246 # with the native linker. However, as the warning in the GNU ld 15247 # block says, versions before 2.19.5* couldn't really create working 15248 # shared libraries, regardless of the interface used. 15249 case `$LD -v 2>&1` in 15250 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 15251 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 15252 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 15253 *) 15254 lt_use_gnu_ld_interface=yes 15255 ;; 15256 esac 15257 ;; 15258 *) 15259 lt_use_gnu_ld_interface=yes 15260 ;; 15261 esac 15262 fi 15263 15264 if test yes = "$lt_use_gnu_ld_interface"; then 15265 # If archive_cmds runs LD, not CC, wlarc should be empty 15266 wlarc='$wl' 15267 15268 # Set some defaults for GNU ld with shared library support. These 15269 # are reset later if shared libraries are not supported. Putting them 15270 # here allows them to be overridden if necessary. 15271 runpath_var=LD_RUN_PATH 15272 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15273 export_dynamic_flag_spec='$wl--export-dynamic' 15274 # ancient GNU ld didn't support --whole-archive et. al. 15275 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 15276 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 15277 else 15278 whole_archive_flag_spec= 15279 fi 15280 supports_anon_versioning=no 15281 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 15282 *GNU\ gold*) supports_anon_versioning=yes ;; 15283 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15284 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15285 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15286 *\ 2.11.*) ;; # other 2.11 versions 15287 *) supports_anon_versioning=yes ;; 15288 esac 15289 15290 # See if GNU ld supports shared libraries. 15291 case $host_os in 15292 aix[3-9]*) 15293 # On AIX/PPC, the GNU linker is very broken 15294 if test ia64 != "$host_cpu"; then 15295 ld_shlibs=no 15296 cat <<_LT_EOF 1>&2 15297 15298*** Warning: the GNU linker, at least up to release 2.19, is reported 15299*** to be unable to reliably create shared libraries on AIX. 15300*** Therefore, libtool is disabling shared libraries support. If you 15301*** really care for shared libraries, you may want to install binutils 15302*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 15303*** You will then need to restart the configuration process. 15304 15305_LT_EOF 15306 fi 15307 ;; 15308 15309 amigaos*) 15310 case $host_cpu in 15311 powerpc) 15312 # see comment about AmigaOS4 .so support 15313 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15314 archive_expsym_cmds='' 15315 ;; 15316 m68k) 15317 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 15318 hardcode_libdir_flag_spec='-L$libdir' 15319 hardcode_minus_L=yes 15320 ;; 15321 esac 15322 ;; 15323 15324 beos*) 15325 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15326 allow_undefined_flag=unsupported 15327 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15328 # support --undefined. This deserves some investigation. FIXME 15329 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15330 else 15331 ld_shlibs=no 15332 fi 15333 ;; 15334 15335 cygwin* | mingw* | pw32* | cegcc*) 15336 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 15337 # as there is no search path for DLLs. 15338 hardcode_libdir_flag_spec='-L$libdir' 15339 export_dynamic_flag_spec='$wl--export-all-symbols' 15340 allow_undefined_flag=unsupported 15341 always_export_symbols=no 15342 enable_shared_with_static_runtimes=yes 15343 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 15344 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15345 15346 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15347 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15348 # If the export-symbols file already is a .def file, use it as 15349 # is; otherwise, prepend EXPORTS... 15350 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 15351 cp $export_symbols $output_objdir/$soname.def; 15352 else 15353 echo EXPORTS > $output_objdir/$soname.def; 15354 cat $export_symbols >> $output_objdir/$soname.def; 15355 fi~ 15356 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15357 else 15358 ld_shlibs=no 15359 fi 15360 ;; 15361 15362 haiku*) 15363 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15364 link_all_deplibs=yes 15365 ;; 15366 15367 os2*) 15368 hardcode_libdir_flag_spec='-L$libdir' 15369 hardcode_minus_L=yes 15370 allow_undefined_flag=unsupported 15371 shrext_cmds=.dll 15372 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15373 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15374 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15375 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15376 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 15377 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15378 emximp -o $lib $output_objdir/$libname.def' 15379 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15380 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15381 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15382 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15383 prefix_cmds="$SED"~ 15384 if test EXPORTS = "`$SED 1q $export_symbols`"; then 15385 prefix_cmds="$prefix_cmds -e 1d"; 15386 fi~ 15387 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 15388 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 15389 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15390 emximp -o $lib $output_objdir/$libname.def' 15391 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 15392 enable_shared_with_static_runtimes=yes 15393 ;; 15394 15395 interix[3-9]*) 15396 hardcode_direct=no 15397 hardcode_shlibpath_var=no 15398 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 15399 export_dynamic_flag_spec='$wl-E' 15400 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15401 # Instead, shared libraries are loaded at an image base (0x10000000 by 15402 # default) and relocated if they conflict, which is a slow very memory 15403 # consuming and fragmenting process. To avoid this, we pick a random, 15404 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15405 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15406 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15407 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15408 ;; 15409 15410 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 15411 tmp_diet=no 15412 if test linux-dietlibc = "$host_os"; then 15413 case $cc_basename in 15414 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 15415 esac 15416 fi 15417 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 15418 && test no = "$tmp_diet" 15419 then 15420 tmp_addflag=' $pic_flag' 15421 tmp_sharedflag='-shared' 15422 case $cc_basename,$host_cpu in 15423 pgcc*) # Portland Group C compiler 15424 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 15425 tmp_addflag=' $pic_flag' 15426 ;; 15427 pgf77* | pgf90* | pgf95* | pgfortran*) 15428 # Portland Group f77 and f90 compilers 15429 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 15430 tmp_addflag=' $pic_flag -Mnomain' ;; 15431 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15432 tmp_addflag=' -i_dynamic' ;; 15433 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15434 tmp_addflag=' -i_dynamic -nofor_main' ;; 15435 ifc* | ifort*) # Intel Fortran compiler 15436 tmp_addflag=' -nofor_main' ;; 15437 lf95*) # Lahey Fortran 8.1 15438 whole_archive_flag_spec= 15439 tmp_sharedflag='--shared' ;; 15440 nagfor*) # NAGFOR 5.3 15441 tmp_sharedflag='-Wl,-shared' ;; 15442 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 15443 tmp_sharedflag='-qmkshrobj' 15444 tmp_addflag= ;; 15445 nvcc*) # Cuda Compiler Driver 2.2 15446 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 15447 compiler_needs_object=yes 15448 ;; 15449 esac 15450 case `$CC -V 2>&1 | sed 5q` in 15451 *Sun\ C*) # Sun C 5.9 15452 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 15453 compiler_needs_object=yes 15454 tmp_sharedflag='-G' ;; 15455 *Sun\ F*) # Sun Fortran 8.3 15456 tmp_sharedflag='-G' ;; 15457 esac 15458 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15459 15460 if test yes = "$supports_anon_versioning"; then 15461 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15462 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15463 echo "local: *; };" >> $output_objdir/$libname.ver~ 15464 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 15465 fi 15466 15467 case $cc_basename in 15468 tcc*) 15469 export_dynamic_flag_spec='-rdynamic' 15470 ;; 15471 xlf* | bgf* | bgxlf* | mpixlf*) 15472 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 15473 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 15474 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15475 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 15476 if test yes = "$supports_anon_versioning"; then 15477 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15478 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15479 echo "local: *; };" >> $output_objdir/$libname.ver~ 15480 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 15481 fi 15482 ;; 15483 esac 15484 else 15485 ld_shlibs=no 15486 fi 15487 ;; 15488 15489 netbsd*) 15490 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15491 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15492 wlarc= 15493 else 15494 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15495 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15496 fi 15497 ;; 15498 15499 solaris*) 15500 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 15501 ld_shlibs=no 15502 cat <<_LT_EOF 1>&2 15503 15504*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15505*** create shared libraries on Solaris systems. Therefore, libtool 15506*** is disabling shared libraries support. We urge you to upgrade GNU 15507*** binutils to release 2.9.1 or newer. Another option is to modify 15508*** your PATH or compiler configuration so that the native linker is 15509*** used, and then restart. 15510 15511_LT_EOF 15512 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15513 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15514 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15515 else 15516 ld_shlibs=no 15517 fi 15518 ;; 15519 15520 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15521 case `$LD -v 2>&1` in 15522 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15523 ld_shlibs=no 15524 cat <<_LT_EOF 1>&2 15525 15526*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 15527*** reliably create shared libraries on SCO systems. Therefore, libtool 15528*** is disabling shared libraries support. We urge you to upgrade GNU 15529*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15530*** your PATH or compiler configuration so that the native linker is 15531*** used, and then restart. 15532 15533_LT_EOF 15534 ;; 15535 *) 15536 # For security reasons, it is highly recommended that you always 15537 # use absolute paths for naming shared libraries, and exclude the 15538 # DT_RUNPATH tag from executables and libraries. But doing so 15539 # requires that you compile everything twice, which is a pain. 15540 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15541 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 15542 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15543 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15544 else 15545 ld_shlibs=no 15546 fi 15547 ;; 15548 esac 15549 ;; 15550 15551 sunos4*) 15552 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15553 wlarc= 15554 hardcode_direct=yes 15555 hardcode_shlibpath_var=no 15556 ;; 15557 15558 *) 15559 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15560 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15561 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15562 else 15563 ld_shlibs=no 15564 fi 15565 ;; 15566 esac 15567 15568 if test no = "$ld_shlibs"; then 15569 runpath_var= 15570 hardcode_libdir_flag_spec= 15571 export_dynamic_flag_spec= 15572 whole_archive_flag_spec= 15573 fi 15574 else 15575 # PORTME fill in a description of your system's linker (not GNU ld) 15576 case $host_os in 15577 aix3*) 15578 allow_undefined_flag=unsupported 15579 always_export_symbols=yes 15580 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 15581 # Note: this linker hardcodes the directories in LIBPATH if there 15582 # are no directories specified by -L. 15583 hardcode_minus_L=yes 15584 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 15585 # Neither direct hardcoding nor static linking is supported with a 15586 # broken collect2. 15587 hardcode_direct=unsupported 15588 fi 15589 ;; 15590 15591 aix[4-9]*) 15592 if test ia64 = "$host_cpu"; then 15593 # On IA64, the linker does run time linking by default, so we don't 15594 # have to do anything special. 15595 aix_use_runtimelinking=no 15596 exp_sym_flag='-Bexport' 15597 no_entry_flag= 15598 else 15599 # If we're using GNU nm, then we don't want the "-C" option. 15600 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15601 # Without the "-l" option, or with the "-B" option, AIX nm treats 15602 # weak defined symbols like other global defined symbols, whereas 15603 # GNU nm marks them as "W". 15604 # While the 'weak' keyword is ignored in the Export File, we need 15605 # it in the Import File for the 'aix-soname' feature, so we have 15606 # to replace the "-B" option with "-P" for AIX nm. 15607 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15608 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 15609 else 15610 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 15611 fi 15612 aix_use_runtimelinking=no 15613 15614 # Test if we are trying to use run time linking or normal 15615 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15616 # have runtime linking enabled, and use it for executables. 15617 # For shared libraries, we enable/disable runtime linking 15618 # depending on the kind of the shared library created - 15619 # when "with_aix_soname,aix_use_runtimelinking" is: 15620 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 15621 # "aix,yes" lib.so shared, rtl:yes, for executables 15622 # lib.a static archive 15623 # "both,no" lib.so.V(shr.o) shared, rtl:yes 15624 # lib.a(lib.so.V) shared, rtl:no, for executables 15625 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 15626 # lib.a(lib.so.V) shared, rtl:no 15627 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 15628 # lib.a static archive 15629 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15630 for ld_flag in $LDFLAGS; do 15631 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 15632 aix_use_runtimelinking=yes 15633 break 15634 fi 15635 done 15636 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 15637 # With aix-soname=svr4, we create the lib.so.V shared archives only, 15638 # so we don't have lib.a shared libs to link our executables. 15639 # We have to force runtime linking in this case. 15640 aix_use_runtimelinking=yes 15641 LDFLAGS="$LDFLAGS -Wl,-brtl" 15642 fi 15643 ;; 15644 esac 15645 15646 exp_sym_flag='-bexport' 15647 no_entry_flag='-bnoentry' 15648 fi 15649 15650 # When large executables or shared objects are built, AIX ld can 15651 # have problems creating the table of contents. If linking a library 15652 # or program results in "error TOC overflow" add -mminimal-toc to 15653 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15654 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15655 15656 archive_cmds='' 15657 hardcode_direct=yes 15658 hardcode_direct_absolute=yes 15659 hardcode_libdir_separator=':' 15660 link_all_deplibs=yes 15661 file_list_spec='$wl-f,' 15662 case $with_aix_soname,$aix_use_runtimelinking in 15663 aix,*) ;; # traditional, no import file 15664 svr4,* | *,yes) # use import file 15665 # The Import File defines what to hardcode. 15666 hardcode_direct=no 15667 hardcode_direct_absolute=no 15668 ;; 15669 esac 15670 15671 if test yes = "$GCC"; then 15672 case $host_os in aix4.[012]|aix4.[012].*) 15673 # We only want to do this on AIX 4.2 and lower, the check 15674 # below for broken collect2 doesn't work under 4.3+ 15675 collect2name=`$CC -print-prog-name=collect2` 15676 if test -f "$collect2name" && 15677 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 15678 then 15679 # We have reworked collect2 15680 : 15681 else 15682 # We have old collect2 15683 hardcode_direct=unsupported 15684 # It fails to find uninstalled libraries when the uninstalled 15685 # path is not listed in the libpath. Setting hardcode_minus_L 15686 # to unsupported forces relinking 15687 hardcode_minus_L=yes 15688 hardcode_libdir_flag_spec='-L$libdir' 15689 hardcode_libdir_separator= 15690 fi 15691 ;; 15692 esac 15693 shared_flag='-shared' 15694 if test yes = "$aix_use_runtimelinking"; then 15695 shared_flag="$shared_flag "'$wl-G' 15696 fi 15697 # Need to ensure runtime linking is disabled for the traditional 15698 # shared library, or the linker may eventually find shared libraries 15699 # /with/ Import File - we do not want to mix them. 15700 shared_flag_aix='-shared' 15701 shared_flag_svr4='-shared $wl-G' 15702 else 15703 # not using gcc 15704 if test ia64 = "$host_cpu"; then 15705 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15706 # chokes on -Wl,-G. The following line is correct: 15707 shared_flag='-G' 15708 else 15709 if test yes = "$aix_use_runtimelinking"; then 15710 shared_flag='$wl-G' 15711 else 15712 shared_flag='$wl-bM:SRE' 15713 fi 15714 shared_flag_aix='$wl-bM:SRE' 15715 shared_flag_svr4='$wl-G' 15716 fi 15717 fi 15718 15719 export_dynamic_flag_spec='$wl-bexpall' 15720 # It seems that -bexpall does not export symbols beginning with 15721 # underscore (_), so it is better to generate a list of symbols to export. 15722 always_export_symbols=yes 15723 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 15724 # Warning - without using the other runtime loading flags (-brtl), 15725 # -berok will link without error, but may produce a broken library. 15726 allow_undefined_flag='-berok' 15727 # Determine the default libpath from the value encoded in an 15728 # empty executable. 15729 if test set = "${lt_cv_aix_libpath+set}"; then 15730 aix_libpath=$lt_cv_aix_libpath 15731else 15732 if ${lt_cv_aix_libpath_+:} false; then : 15733 $as_echo_n "(cached) " >&6 15734else 15735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15736/* end confdefs.h. */ 15737 15738int 15739main () 15740{ 15741 15742 ; 15743 return 0; 15744} 15745_ACEOF 15746if ac_fn_c_try_link "$LINENO"; then : 15747 15748 lt_aix_libpath_sed=' 15749 /Import File Strings/,/^$/ { 15750 /^0/ { 15751 s/^0 *\([^ ]*\) *$/\1/ 15752 p 15753 } 15754 }' 15755 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15756 # Check for a 64-bit object if we didn't find anything. 15757 if test -z "$lt_cv_aix_libpath_"; then 15758 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15759 fi 15760fi 15761rm -f core conftest.err conftest.$ac_objext \ 15762 conftest$ac_exeext conftest.$ac_ext 15763 if test -z "$lt_cv_aix_libpath_"; then 15764 lt_cv_aix_libpath_=/usr/lib:/lib 15765 fi 15766 15767fi 15768 15769 aix_libpath=$lt_cv_aix_libpath_ 15770fi 15771 15772 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 15773 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 15774 else 15775 if test ia64 = "$host_cpu"; then 15776 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 15777 allow_undefined_flag="-z nodefs" 15778 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" 15779 else 15780 # Determine the default libpath from the value encoded in an 15781 # empty executable. 15782 if test set = "${lt_cv_aix_libpath+set}"; then 15783 aix_libpath=$lt_cv_aix_libpath 15784else 15785 if ${lt_cv_aix_libpath_+:} false; then : 15786 $as_echo_n "(cached) " >&6 15787else 15788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15789/* end confdefs.h. */ 15790 15791int 15792main () 15793{ 15794 15795 ; 15796 return 0; 15797} 15798_ACEOF 15799if ac_fn_c_try_link "$LINENO"; then : 15800 15801 lt_aix_libpath_sed=' 15802 /Import File Strings/,/^$/ { 15803 /^0/ { 15804 s/^0 *\([^ ]*\) *$/\1/ 15805 p 15806 } 15807 }' 15808 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15809 # Check for a 64-bit object if we didn't find anything. 15810 if test -z "$lt_cv_aix_libpath_"; then 15811 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15812 fi 15813fi 15814rm -f core conftest.err conftest.$ac_objext \ 15815 conftest$ac_exeext conftest.$ac_ext 15816 if test -z "$lt_cv_aix_libpath_"; then 15817 lt_cv_aix_libpath_=/usr/lib:/lib 15818 fi 15819 15820fi 15821 15822 aix_libpath=$lt_cv_aix_libpath_ 15823fi 15824 15825 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 15826 # Warning - without using the other run time loading flags, 15827 # -berok will link without error, but may produce a broken library. 15828 no_undefined_flag=' $wl-bernotok' 15829 allow_undefined_flag=' $wl-berok' 15830 if test yes = "$with_gnu_ld"; then 15831 # We only use this code for GNU lds that support --whole-archive. 15832 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 15833 else 15834 # Exported symbols can be pulled into shared objects from archives 15835 whole_archive_flag_spec='$convenience' 15836 fi 15837 archive_cmds_need_lc=yes 15838 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 15839 # -brtl affects multiple linker settings, -berok does not and is overridden later 15840 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 15841 if test svr4 != "$with_aix_soname"; then 15842 # This is similar to how AIX traditionally builds its shared libraries. 15843 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 15844 fi 15845 if test aix != "$with_aix_soname"; then 15846 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 15847 else 15848 # used by -dlpreopen to get the symbols 15849 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 15850 fi 15851 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 15852 fi 15853 fi 15854 ;; 15855 15856 amigaos*) 15857 case $host_cpu in 15858 powerpc) 15859 # see comment about AmigaOS4 .so support 15860 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15861 archive_expsym_cmds='' 15862 ;; 15863 m68k) 15864 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 15865 hardcode_libdir_flag_spec='-L$libdir' 15866 hardcode_minus_L=yes 15867 ;; 15868 esac 15869 ;; 15870 15871 bsdi[45]*) 15872 export_dynamic_flag_spec=-rdynamic 15873 ;; 15874 15875 cygwin* | mingw* | pw32* | cegcc*) 15876 # When not using gcc, we currently assume that we are using 15877 # Microsoft Visual C++. 15878 # hardcode_libdir_flag_spec is actually meaningless, as there is 15879 # no search path for DLLs. 15880 case $cc_basename in 15881 cl*) 15882 # Native MSVC 15883 hardcode_libdir_flag_spec=' ' 15884 allow_undefined_flag=unsupported 15885 always_export_symbols=yes 15886 file_list_spec='@' 15887 # Tell ltmain to make .lib files, not .a files. 15888 libext=lib 15889 # Tell ltmain to make .dll files, not .so files. 15890 shrext_cmds=.dll 15891 # FIXME: Setting linknames here is a bad hack. 15892 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 15893 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 15894 cp "$export_symbols" "$output_objdir/$soname.def"; 15895 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 15896 else 15897 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 15898 fi~ 15899 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 15900 linknames=' 15901 # The linker will not automatically build a static lib if we build a DLL. 15902 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 15903 enable_shared_with_static_runtimes=yes 15904 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15905 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 15906 # Don't use ranlib 15907 old_postinstall_cmds='chmod 644 $oldlib' 15908 postlink_cmds='lt_outputfile="@OUTPUT@"~ 15909 lt_tool_outputfile="@TOOL_OUTPUT@"~ 15910 case $lt_outputfile in 15911 *.exe|*.EXE) ;; 15912 *) 15913 lt_outputfile=$lt_outputfile.exe 15914 lt_tool_outputfile=$lt_tool_outputfile.exe 15915 ;; 15916 esac~ 15917 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 15918 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 15919 $RM "$lt_outputfile.manifest"; 15920 fi' 15921 ;; 15922 *) 15923 # Assume MSVC wrapper 15924 hardcode_libdir_flag_spec=' ' 15925 allow_undefined_flag=unsupported 15926 # Tell ltmain to make .lib files, not .a files. 15927 libext=lib 15928 # Tell ltmain to make .dll files, not .so files. 15929 shrext_cmds=.dll 15930 # FIXME: Setting linknames here is a bad hack. 15931 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 15932 # The linker will automatically build a .lib file if we build a DLL. 15933 old_archive_from_new_cmds='true' 15934 # FIXME: Should let the user specify the lib program. 15935 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 15936 enable_shared_with_static_runtimes=yes 15937 ;; 15938 esac 15939 ;; 15940 15941 darwin* | rhapsody*) 15942 15943 15944 archive_cmds_need_lc=no 15945 hardcode_direct=no 15946 hardcode_automatic=yes 15947 hardcode_shlibpath_var=unsupported 15948 if test yes = "$lt_cv_ld_force_load"; then 15949 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 15950 15951 else 15952 whole_archive_flag_spec='' 15953 fi 15954 link_all_deplibs=yes 15955 allow_undefined_flag=$_lt_dar_allow_undefined 15956 case $cc_basename in 15957 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 15958 *) _lt_dar_can_shared=$GCC ;; 15959 esac 15960 if test yes = "$_lt_dar_can_shared"; then 15961 output_verbose_link_cmd=func_echo_all 15962 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 15963 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 15964 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 15965 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 15966 15967 else 15968 ld_shlibs=no 15969 fi 15970 15971 ;; 15972 15973 dgux*) 15974 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15975 hardcode_libdir_flag_spec='-L$libdir' 15976 hardcode_shlibpath_var=no 15977 ;; 15978 15979 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15980 # support. Future versions do this automatically, but an explicit c++rt0.o 15981 # does not break anything, and helps significantly (at the cost of a little 15982 # extra space). 15983 freebsd2.2*) 15984 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15985 hardcode_libdir_flag_spec='-R$libdir' 15986 hardcode_direct=yes 15987 hardcode_shlibpath_var=no 15988 ;; 15989 15990 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15991 freebsd2.*) 15992 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15993 hardcode_direct=yes 15994 hardcode_minus_L=yes 15995 hardcode_shlibpath_var=no 15996 ;; 15997 15998 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15999 freebsd* | dragonfly*) 16000 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16001 hardcode_libdir_flag_spec='-R$libdir' 16002 hardcode_direct=yes 16003 hardcode_shlibpath_var=no 16004 ;; 16005 16006 hpux9*) 16007 if test yes = "$GCC"; then 16008 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 16009 else 16010 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 16011 fi 16012 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16013 hardcode_libdir_separator=: 16014 hardcode_direct=yes 16015 16016 # hardcode_minus_L: Not really in the search PATH, 16017 # but as the default location of the library. 16018 hardcode_minus_L=yes 16019 export_dynamic_flag_spec='$wl-E' 16020 ;; 16021 16022 hpux10*) 16023 if test yes,no = "$GCC,$with_gnu_ld"; then 16024 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16025 else 16026 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16027 fi 16028 if test no = "$with_gnu_ld"; then 16029 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16030 hardcode_libdir_separator=: 16031 hardcode_direct=yes 16032 hardcode_direct_absolute=yes 16033 export_dynamic_flag_spec='$wl-E' 16034 # hardcode_minus_L: Not really in the search PATH, 16035 # but as the default location of the library. 16036 hardcode_minus_L=yes 16037 fi 16038 ;; 16039 16040 hpux11*) 16041 if test yes,no = "$GCC,$with_gnu_ld"; then 16042 case $host_cpu in 16043 hppa*64*) 16044 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16045 ;; 16046 ia64*) 16047 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16048 ;; 16049 *) 16050 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16051 ;; 16052 esac 16053 else 16054 case $host_cpu in 16055 hppa*64*) 16056 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16057 ;; 16058 ia64*) 16059 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16060 ;; 16061 *) 16062 16063 # Older versions of the 11.00 compiler do not understand -b yet 16064 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 16065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 16066$as_echo_n "checking if $CC understands -b... " >&6; } 16067if ${lt_cv_prog_compiler__b+:} false; then : 16068 $as_echo_n "(cached) " >&6 16069else 16070 lt_cv_prog_compiler__b=no 16071 save_LDFLAGS=$LDFLAGS 16072 LDFLAGS="$LDFLAGS -b" 16073 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16074 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16075 # The linker can only warn and ignore the option if not recognized 16076 # So say no if there are warnings 16077 if test -s conftest.err; then 16078 # Append any errors to the config.log. 16079 cat conftest.err 1>&5 16080 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16081 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16082 if diff conftest.exp conftest.er2 >/dev/null; then 16083 lt_cv_prog_compiler__b=yes 16084 fi 16085 else 16086 lt_cv_prog_compiler__b=yes 16087 fi 16088 fi 16089 $RM -r conftest* 16090 LDFLAGS=$save_LDFLAGS 16091 16092fi 16093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 16094$as_echo "$lt_cv_prog_compiler__b" >&6; } 16095 16096if test yes = "$lt_cv_prog_compiler__b"; then 16097 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16098else 16099 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16100fi 16101 16102 ;; 16103 esac 16104 fi 16105 if test no = "$with_gnu_ld"; then 16106 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16107 hardcode_libdir_separator=: 16108 16109 case $host_cpu in 16110 hppa*64*|ia64*) 16111 hardcode_direct=no 16112 hardcode_shlibpath_var=no 16113 ;; 16114 *) 16115 hardcode_direct=yes 16116 hardcode_direct_absolute=yes 16117 export_dynamic_flag_spec='$wl-E' 16118 16119 # hardcode_minus_L: Not really in the search PATH, 16120 # but as the default location of the library. 16121 hardcode_minus_L=yes 16122 ;; 16123 esac 16124 fi 16125 ;; 16126 16127 irix5* | irix6* | nonstopux*) 16128 if test yes = "$GCC"; then 16129 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 16130 # Try to use the -exported_symbol ld option, if it does not 16131 # work, assume that -exports_file does not work either and 16132 # implicitly export all symbols. 16133 # This should be the same for all languages, so no per-tag cache variable. 16134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 16135$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 16136if ${lt_cv_irix_exported_symbol+:} false; then : 16137 $as_echo_n "(cached) " >&6 16138else 16139 save_LDFLAGS=$LDFLAGS 16140 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 16141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16142/* end confdefs.h. */ 16143int foo (void) { return 0; } 16144_ACEOF 16145if ac_fn_c_try_link "$LINENO"; then : 16146 lt_cv_irix_exported_symbol=yes 16147else 16148 lt_cv_irix_exported_symbol=no 16149fi 16150rm -f core conftest.err conftest.$ac_objext \ 16151 conftest$ac_exeext conftest.$ac_ext 16152 LDFLAGS=$save_LDFLAGS 16153fi 16154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 16155$as_echo "$lt_cv_irix_exported_symbol" >&6; } 16156 if test yes = "$lt_cv_irix_exported_symbol"; then 16157 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 16158 fi 16159 else 16160 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 16161 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' 16162 fi 16163 archive_cmds_need_lc='no' 16164 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16165 hardcode_libdir_separator=: 16166 inherit_rpath=yes 16167 link_all_deplibs=yes 16168 ;; 16169 16170 linux*) 16171 case $cc_basename in 16172 tcc*) 16173 # Fabrice Bellard et al's Tiny C Compiler 16174 ld_shlibs=yes 16175 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16176 ;; 16177 esac 16178 ;; 16179 16180 netbsd*) 16181 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16182 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16183 else 16184 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16185 fi 16186 hardcode_libdir_flag_spec='-R$libdir' 16187 hardcode_direct=yes 16188 hardcode_shlibpath_var=no 16189 ;; 16190 16191 newsos6) 16192 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16193 hardcode_direct=yes 16194 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16195 hardcode_libdir_separator=: 16196 hardcode_shlibpath_var=no 16197 ;; 16198 16199 *nto* | *qnx*) 16200 ;; 16201 16202 openbsd* | bitrig*) 16203 if test -f /usr/libexec/ld.so; then 16204 hardcode_direct=yes 16205 hardcode_shlibpath_var=no 16206 hardcode_direct_absolute=yes 16207 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16208 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16209 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 16210 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16211 export_dynamic_flag_spec='$wl-E' 16212 else 16213 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16214 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16215 fi 16216 else 16217 ld_shlibs=no 16218 fi 16219 ;; 16220 16221 os2*) 16222 hardcode_libdir_flag_spec='-L$libdir' 16223 hardcode_minus_L=yes 16224 allow_undefined_flag=unsupported 16225 shrext_cmds=.dll 16226 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16227 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16228 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16229 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16230 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16231 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16232 emximp -o $lib $output_objdir/$libname.def' 16233 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16234 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16235 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16236 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16237 prefix_cmds="$SED"~ 16238 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16239 prefix_cmds="$prefix_cmds -e 1d"; 16240 fi~ 16241 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16242 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16243 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16244 emximp -o $lib $output_objdir/$libname.def' 16245 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16246 enable_shared_with_static_runtimes=yes 16247 ;; 16248 16249 osf3*) 16250 if test yes = "$GCC"; then 16251 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 16252 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 16253 else 16254 allow_undefined_flag=' -expect_unresolved \*' 16255 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 16256 fi 16257 archive_cmds_need_lc='no' 16258 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16259 hardcode_libdir_separator=: 16260 ;; 16261 16262 osf4* | osf5*) # as osf3* with the addition of -msym flag 16263 if test yes = "$GCC"; then 16264 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 16265 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 16266 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16267 else 16268 allow_undefined_flag=' -expect_unresolved \*' 16269 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 16270 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 16271 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' 16272 16273 # Both c and cxx compiler support -rpath directly 16274 hardcode_libdir_flag_spec='-rpath $libdir' 16275 fi 16276 archive_cmds_need_lc='no' 16277 hardcode_libdir_separator=: 16278 ;; 16279 16280 solaris*) 16281 no_undefined_flag=' -z defs' 16282 if test yes = "$GCC"; then 16283 wlarc='$wl' 16284 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 16285 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16286 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 16287 else 16288 case `$CC -V 2>&1` in 16289 *"Compilers 5.0"*) 16290 wlarc='' 16291 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 16292 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16293 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 16294 ;; 16295 *) 16296 wlarc='$wl' 16297 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 16298 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16299 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 16300 ;; 16301 esac 16302 fi 16303 hardcode_libdir_flag_spec='-R$libdir' 16304 hardcode_shlibpath_var=no 16305 case $host_os in 16306 solaris2.[0-5] | solaris2.[0-5].*) ;; 16307 *) 16308 # The compiler driver will combine and reorder linker options, 16309 # but understands '-z linker_flag'. GCC discards it without '$wl', 16310 # but is careful enough not to reorder. 16311 # Supported since Solaris 2.6 (maybe 2.5.1?) 16312 if test yes = "$GCC"; then 16313 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 16314 else 16315 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 16316 fi 16317 ;; 16318 esac 16319 link_all_deplibs=yes 16320 ;; 16321 16322 sunos4*) 16323 if test sequent = "$host_vendor"; then 16324 # Use $CC to link under sequent, because it throws in some extra .o 16325 # files that make .init and .fini sections work. 16326 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16327 else 16328 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16329 fi 16330 hardcode_libdir_flag_spec='-L$libdir' 16331 hardcode_direct=yes 16332 hardcode_minus_L=yes 16333 hardcode_shlibpath_var=no 16334 ;; 16335 16336 sysv4) 16337 case $host_vendor in 16338 sni) 16339 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16340 hardcode_direct=yes # is this really true??? 16341 ;; 16342 siemens) 16343 ## LD is ld it makes a PLAMLIB 16344 ## CC just makes a GrossModule. 16345 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16346 reload_cmds='$CC -r -o $output$reload_objs' 16347 hardcode_direct=no 16348 ;; 16349 motorola) 16350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16351 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 16352 ;; 16353 esac 16354 runpath_var='LD_RUN_PATH' 16355 hardcode_shlibpath_var=no 16356 ;; 16357 16358 sysv4.3*) 16359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16360 hardcode_shlibpath_var=no 16361 export_dynamic_flag_spec='-Bexport' 16362 ;; 16363 16364 sysv4*MP*) 16365 if test -d /usr/nec; then 16366 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16367 hardcode_shlibpath_var=no 16368 runpath_var=LD_RUN_PATH 16369 hardcode_runpath_var=yes 16370 ld_shlibs=yes 16371 fi 16372 ;; 16373 16374 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16375 no_undefined_flag='$wl-z,text' 16376 archive_cmds_need_lc=no 16377 hardcode_shlibpath_var=no 16378 runpath_var='LD_RUN_PATH' 16379 16380 if test yes = "$GCC"; then 16381 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16382 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16383 else 16384 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16385 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16386 fi 16387 ;; 16388 16389 sysv5* | sco3.2v5* | sco5v6*) 16390 # Note: We CANNOT use -z defs as we might desire, because we do not 16391 # link with -lc, and that would cause any symbols used from libc to 16392 # always be unresolved, which means just about no library would 16393 # ever link correctly. If we're not using GNU ld we use -z text 16394 # though, which does catch some bad symbols but isn't as heavy-handed 16395 # as -z defs. 16396 no_undefined_flag='$wl-z,text' 16397 allow_undefined_flag='$wl-z,nodefs' 16398 archive_cmds_need_lc=no 16399 hardcode_shlibpath_var=no 16400 hardcode_libdir_flag_spec='$wl-R,$libdir' 16401 hardcode_libdir_separator=':' 16402 link_all_deplibs=yes 16403 export_dynamic_flag_spec='$wl-Bexport' 16404 runpath_var='LD_RUN_PATH' 16405 16406 if test yes = "$GCC"; then 16407 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16408 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16409 else 16410 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16411 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16412 fi 16413 ;; 16414 16415 uts4*) 16416 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16417 hardcode_libdir_flag_spec='-L$libdir' 16418 hardcode_shlibpath_var=no 16419 ;; 16420 16421 *) 16422 ld_shlibs=no 16423 ;; 16424 esac 16425 16426 if test sni = "$host_vendor"; then 16427 case $host in 16428 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16429 export_dynamic_flag_spec='$wl-Blargedynsym' 16430 ;; 16431 esac 16432 fi 16433 fi 16434 16435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 16436$as_echo "$ld_shlibs" >&6; } 16437test no = "$ld_shlibs" && can_build_shared=no 16438 16439with_gnu_ld=$with_gnu_ld 16440 16441 16442 16443 16444 16445 16446 16447 16448 16449 16450 16451 16452 16453 16454 16455# 16456# Do we need to explicitly link libc? 16457# 16458case "x$archive_cmds_need_lc" in 16459x|xyes) 16460 # Assume -lc should be added 16461 archive_cmds_need_lc=yes 16462 16463 if test yes,yes = "$GCC,$enable_shared"; then 16464 case $archive_cmds in 16465 *'~'*) 16466 # FIXME: we may have to deal with multi-command sequences. 16467 ;; 16468 '$CC '*) 16469 # Test whether the compiler implicitly links with -lc since on some 16470 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16471 # to ld, don't add -lc before -lgcc. 16472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16473$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16474if ${lt_cv_archive_cmds_need_lc+:} false; then : 16475 $as_echo_n "(cached) " >&6 16476else 16477 $RM conftest* 16478 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16479 16480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16481 (eval $ac_compile) 2>&5 16482 ac_status=$? 16483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16484 test $ac_status = 0; } 2>conftest.err; then 16485 soname=conftest 16486 lib=conftest 16487 libobjs=conftest.$ac_objext 16488 deplibs= 16489 wl=$lt_prog_compiler_wl 16490 pic_flag=$lt_prog_compiler_pic 16491 compiler_flags=-v 16492 linker_flags=-v 16493 verstring= 16494 output_objdir=. 16495 libname=conftest 16496 lt_save_allow_undefined_flag=$allow_undefined_flag 16497 allow_undefined_flag= 16498 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16499 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16500 ac_status=$? 16501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16502 test $ac_status = 0; } 16503 then 16504 lt_cv_archive_cmds_need_lc=no 16505 else 16506 lt_cv_archive_cmds_need_lc=yes 16507 fi 16508 allow_undefined_flag=$lt_save_allow_undefined_flag 16509 else 16510 cat conftest.err 1>&5 16511 fi 16512 $RM conftest* 16513 16514fi 16515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 16516$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 16517 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 16518 ;; 16519 esac 16520 fi 16521 ;; 16522esac 16523 16524 16525 16526 16527 16528 16529 16530 16531 16532 16533 16534 16535 16536 16537 16538 16539 16540 16541 16542 16543 16544 16545 16546 16547 16548 16549 16550 16551 16552 16553 16554 16555 16556 16557 16558 16559 16560 16561 16562 16563 16564 16565 16566 16567 16568 16569 16570 16571 16572 16573 16574 16575 16576 16577 16578 16579 16580 16581 16582 16583 16584 16585 16586 16587 16588 16589 16590 16591 16592 16593 16594 16595 16596 16597 16598 16599 16600 16601 16602 16603 16604 16605 16606 16607 16608 16609 16610 16611 16612 16613 16614 16615 16616 16617 16618 16619 16620 16621 16622 16623 16624 16625 16626 16627 16628 16629 16630 16631 16632 16633 16634 16635 16636 16637 16638 16639 16640 16641 16642 16643 16644 16645 16646 16647 16648 16649 16650 16651 16652 16653 16654 16655 16656 16657 16658 16659 16660 16661 16662 16663 16664 16665 16666 16667 16668 16669 16670 16671 16672 16673 16674 16675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16676$as_echo_n "checking dynamic linker characteristics... " >&6; } 16677 16678if test yes = "$GCC"; then 16679 case $host_os in 16680 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 16681 *) lt_awk_arg='/^libraries:/' ;; 16682 esac 16683 case $host_os in 16684 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 16685 *) lt_sed_strip_eq='s|=/|/|g' ;; 16686 esac 16687 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 16688 case $lt_search_path_spec in 16689 *\;*) 16690 # if the path contains ";" then we assume it to be the separator 16691 # otherwise default to the standard path separator (i.e. ":") - it is 16692 # assumed that no part of a normal pathname contains ";" but that should 16693 # okay in the real world where ";" in dirpaths is itself problematic. 16694 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 16695 ;; 16696 *) 16697 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 16698 ;; 16699 esac 16700 # Ok, now we have the path, separated by spaces, we can step through it 16701 # and add multilib dir if necessary... 16702 lt_tmp_lt_search_path_spec= 16703 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 16704 # ...but if some path component already ends with the multilib dir we assume 16705 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 16706 case "$lt_multi_os_dir; $lt_search_path_spec " in 16707 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 16708 lt_multi_os_dir= 16709 ;; 16710 esac 16711 for lt_sys_path in $lt_search_path_spec; do 16712 if test -d "$lt_sys_path$lt_multi_os_dir"; then 16713 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 16714 elif test -n "$lt_multi_os_dir"; then 16715 test -d "$lt_sys_path" && \ 16716 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 16717 fi 16718 done 16719 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 16720BEGIN {RS = " "; FS = "/|\n";} { 16721 lt_foo = ""; 16722 lt_count = 0; 16723 for (lt_i = NF; lt_i > 0; lt_i--) { 16724 if ($lt_i != "" && $lt_i != ".") { 16725 if ($lt_i == "..") { 16726 lt_count++; 16727 } else { 16728 if (lt_count == 0) { 16729 lt_foo = "/" $lt_i lt_foo; 16730 } else { 16731 lt_count--; 16732 } 16733 } 16734 } 16735 } 16736 if (lt_foo != "") { lt_freq[lt_foo]++; } 16737 if (lt_freq[lt_foo] == 1) { print lt_foo; } 16738}'` 16739 # AWK program above erroneously prepends '/' to C:/dos/paths 16740 # for these hosts. 16741 case $host_os in 16742 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 16743 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 16744 esac 16745 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 16746else 16747 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16748fi 16749library_names_spec= 16750libname_spec='lib$name' 16751soname_spec= 16752shrext_cmds=.so 16753postinstall_cmds= 16754postuninstall_cmds= 16755finish_cmds= 16756finish_eval= 16757shlibpath_var= 16758shlibpath_overrides_runpath=unknown 16759version_type=none 16760dynamic_linker="$host_os ld.so" 16761sys_lib_dlsearch_path_spec="/lib /usr/lib" 16762need_lib_prefix=unknown 16763hardcode_into_libs=no 16764 16765# when you set need_version to no, make sure it does not cause -set_version 16766# flags to be left without arguments 16767need_version=unknown 16768 16769 16770 16771case $host_os in 16772aix3*) 16773 version_type=linux # correct to gnu/linux during the next big refactor 16774 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 16775 shlibpath_var=LIBPATH 16776 16777 # AIX 3 has no versioning support, so we append a major version to the name. 16778 soname_spec='$libname$release$shared_ext$major' 16779 ;; 16780 16781aix[4-9]*) 16782 version_type=linux # correct to gnu/linux during the next big refactor 16783 need_lib_prefix=no 16784 need_version=no 16785 hardcode_into_libs=yes 16786 if test ia64 = "$host_cpu"; then 16787 # AIX 5 supports IA64 16788 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 16789 shlibpath_var=LD_LIBRARY_PATH 16790 else 16791 # With GCC up to 2.95.x, collect2 would create an import file 16792 # for dependence libraries. The import file would start with 16793 # the line '#! .'. This would cause the generated library to 16794 # depend on '.', always an invalid library. This was fixed in 16795 # development snapshots of GCC prior to 3.0. 16796 case $host_os in 16797 aix4 | aix4.[01] | aix4.[01].*) 16798 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16799 echo ' yes ' 16800 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 16801 : 16802 else 16803 can_build_shared=no 16804 fi 16805 ;; 16806 esac 16807 # Using Import Files as archive members, it is possible to support 16808 # filename-based versioning of shared library archives on AIX. While 16809 # this would work for both with and without runtime linking, it will 16810 # prevent static linking of such archives. So we do filename-based 16811 # shared library versioning with .so extension only, which is used 16812 # when both runtime linking and shared linking is enabled. 16813 # Unfortunately, runtime linking may impact performance, so we do 16814 # not want this to be the default eventually. Also, we use the 16815 # versioned .so libs for executables only if there is the -brtl 16816 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 16817 # To allow for filename-based versioning support, we need to create 16818 # libNAME.so.V as an archive file, containing: 16819 # *) an Import File, referring to the versioned filename of the 16820 # archive as well as the shared archive member, telling the 16821 # bitwidth (32 or 64) of that shared object, and providing the 16822 # list of exported symbols of that shared object, eventually 16823 # decorated with the 'weak' keyword 16824 # *) the shared object with the F_LOADONLY flag set, to really avoid 16825 # it being seen by the linker. 16826 # At run time we better use the real file rather than another symlink, 16827 # but for link time we create the symlink libNAME.so -> libNAME.so.V 16828 16829 case $with_aix_soname,$aix_use_runtimelinking in 16830 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 16831 # soname into executable. Probably we can add versioning support to 16832 # collect2, so additional links can be useful in future. 16833 aix,yes) # traditional libtool 16834 dynamic_linker='AIX unversionable lib.so' 16835 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16836 # instead of lib<name>.a to let people know that these are not 16837 # typical AIX shared libraries. 16838 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16839 ;; 16840 aix,no) # traditional AIX only 16841 dynamic_linker='AIX lib.a(lib.so.V)' 16842 # We preserve .a as extension for shared libraries through AIX4.2 16843 # and later when we are not doing run time linking. 16844 library_names_spec='$libname$release.a $libname.a' 16845 soname_spec='$libname$release$shared_ext$major' 16846 ;; 16847 svr4,*) # full svr4 only 16848 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 16849 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16850 # We do not specify a path in Import Files, so LIBPATH fires. 16851 shlibpath_overrides_runpath=yes 16852 ;; 16853 *,yes) # both, prefer svr4 16854 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 16855 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16856 # unpreferred sharedlib libNAME.a needs extra handling 16857 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 16858 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 16859 # We do not specify a path in Import Files, so LIBPATH fires. 16860 shlibpath_overrides_runpath=yes 16861 ;; 16862 *,no) # both, prefer aix 16863 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 16864 library_names_spec='$libname$release.a $libname.a' 16865 soname_spec='$libname$release$shared_ext$major' 16866 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 16867 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 16868 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 16869 ;; 16870 esac 16871 shlibpath_var=LIBPATH 16872 fi 16873 ;; 16874 16875amigaos*) 16876 case $host_cpu in 16877 powerpc) 16878 # Since July 2007 AmigaOS4 officially supports .so libraries. 16879 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16880 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16881 ;; 16882 m68k) 16883 library_names_spec='$libname.ixlibrary $libname.a' 16884 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16885 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 16886 ;; 16887 esac 16888 ;; 16889 16890beos*) 16891 library_names_spec='$libname$shared_ext' 16892 dynamic_linker="$host_os ld.so" 16893 shlibpath_var=LIBRARY_PATH 16894 ;; 16895 16896bsdi[45]*) 16897 version_type=linux # correct to gnu/linux during the next big refactor 16898 need_version=no 16899 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16900 soname_spec='$libname$release$shared_ext$major' 16901 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16902 shlibpath_var=LD_LIBRARY_PATH 16903 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16904 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16905 # the default ld.so.conf also contains /usr/contrib/lib and 16906 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16907 # libtool to hard-code these into programs 16908 ;; 16909 16910cygwin* | mingw* | pw32* | cegcc*) 16911 version_type=windows 16912 shrext_cmds=.dll 16913 need_version=no 16914 need_lib_prefix=no 16915 16916 case $GCC,$cc_basename in 16917 yes,*) 16918 # gcc 16919 library_names_spec='$libname.dll.a' 16920 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16921 postinstall_cmds='base_file=`basename \$file`~ 16922 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16923 dldir=$destdir/`dirname \$dlpath`~ 16924 test -d \$dldir || mkdir -p \$dldir~ 16925 $install_prog $dir/$dlname \$dldir/$dlname~ 16926 chmod a+x \$dldir/$dlname~ 16927 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16928 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16929 fi' 16930 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16931 dlpath=$dir/\$dldll~ 16932 $RM \$dlpath' 16933 shlibpath_overrides_runpath=yes 16934 16935 case $host_os in 16936 cygwin*) 16937 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16938 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16939 16940 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 16941 ;; 16942 mingw* | cegcc*) 16943 # MinGW DLLs use traditional 'lib' prefix 16944 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16945 ;; 16946 pw32*) 16947 # pw32 DLLs use 'pw' prefix rather than 'lib' 16948 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16949 ;; 16950 esac 16951 dynamic_linker='Win32 ld.exe' 16952 ;; 16953 16954 *,cl*) 16955 # Native MSVC 16956 libname_spec='$name' 16957 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16958 library_names_spec='$libname.dll.lib' 16959 16960 case $build_os in 16961 mingw*) 16962 sys_lib_search_path_spec= 16963 lt_save_ifs=$IFS 16964 IFS=';' 16965 for lt_path in $LIB 16966 do 16967 IFS=$lt_save_ifs 16968 # Let DOS variable expansion print the short 8.3 style file name. 16969 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16970 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16971 done 16972 IFS=$lt_save_ifs 16973 # Convert to MSYS style. 16974 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16975 ;; 16976 cygwin*) 16977 # Convert to unix form, then to dos form, then back to unix form 16978 # but this time dos style (no spaces!) so that the unix form looks 16979 # like /cygdrive/c/PROGRA~1:/cygdr... 16980 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16981 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16982 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16983 ;; 16984 *) 16985 sys_lib_search_path_spec=$LIB 16986 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16987 # It is most probably a Windows format PATH. 16988 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16989 else 16990 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16991 fi 16992 # FIXME: find the short name or the path components, as spaces are 16993 # common. (e.g. "Program Files" -> "PROGRA~1") 16994 ;; 16995 esac 16996 16997 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16998 postinstall_cmds='base_file=`basename \$file`~ 16999 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17000 dldir=$destdir/`dirname \$dlpath`~ 17001 test -d \$dldir || mkdir -p \$dldir~ 17002 $install_prog $dir/$dlname \$dldir/$dlname' 17003 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17004 dlpath=$dir/\$dldll~ 17005 $RM \$dlpath' 17006 shlibpath_overrides_runpath=yes 17007 dynamic_linker='Win32 link.exe' 17008 ;; 17009 17010 *) 17011 # Assume MSVC wrapper 17012 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 17013 dynamic_linker='Win32 ld.exe' 17014 ;; 17015 esac 17016 # FIXME: first we should search . and the directory the executable is in 17017 shlibpath_var=PATH 17018 ;; 17019 17020darwin* | rhapsody*) 17021 dynamic_linker="$host_os dyld" 17022 version_type=darwin 17023 need_lib_prefix=no 17024 need_version=no 17025 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 17026 soname_spec='$libname$release$major$shared_ext' 17027 shlibpath_overrides_runpath=yes 17028 shlibpath_var=DYLD_LIBRARY_PATH 17029 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17030 17031 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 17032 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17033 ;; 17034 17035dgux*) 17036 version_type=linux # correct to gnu/linux during the next big refactor 17037 need_lib_prefix=no 17038 need_version=no 17039 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17040 soname_spec='$libname$release$shared_ext$major' 17041 shlibpath_var=LD_LIBRARY_PATH 17042 ;; 17043 17044freebsd* | dragonfly*) 17045 # DragonFly does not have aout. When/if they implement a new 17046 # versioning mechanism, adjust this. 17047 if test -x /usr/bin/objformat; then 17048 objformat=`/usr/bin/objformat` 17049 else 17050 case $host_os in 17051 freebsd[23].*) objformat=aout ;; 17052 *) objformat=elf ;; 17053 esac 17054 fi 17055 version_type=freebsd-$objformat 17056 case $version_type in 17057 freebsd-elf*) 17058 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17059 soname_spec='$libname$release$shared_ext$major' 17060 need_version=no 17061 need_lib_prefix=no 17062 ;; 17063 freebsd-*) 17064 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17065 need_version=yes 17066 ;; 17067 esac 17068 shlibpath_var=LD_LIBRARY_PATH 17069 case $host_os in 17070 freebsd2.*) 17071 shlibpath_overrides_runpath=yes 17072 ;; 17073 freebsd3.[01]* | freebsdelf3.[01]*) 17074 shlibpath_overrides_runpath=yes 17075 hardcode_into_libs=yes 17076 ;; 17077 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17078 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17079 shlibpath_overrides_runpath=no 17080 hardcode_into_libs=yes 17081 ;; 17082 *) # from 4.6 on, and DragonFly 17083 shlibpath_overrides_runpath=yes 17084 hardcode_into_libs=yes 17085 ;; 17086 esac 17087 ;; 17088 17089haiku*) 17090 version_type=linux # correct to gnu/linux during the next big refactor 17091 need_lib_prefix=no 17092 need_version=no 17093 dynamic_linker="$host_os runtime_loader" 17094 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17095 soname_spec='$libname$release$shared_ext$major' 17096 shlibpath_var=LIBRARY_PATH 17097 shlibpath_overrides_runpath=no 17098 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 17099 hardcode_into_libs=yes 17100 ;; 17101 17102hpux9* | hpux10* | hpux11*) 17103 # Give a soname corresponding to the major version so that dld.sl refuses to 17104 # link against other versions. 17105 version_type=sunos 17106 need_lib_prefix=no 17107 need_version=no 17108 case $host_cpu in 17109 ia64*) 17110 shrext_cmds='.so' 17111 hardcode_into_libs=yes 17112 dynamic_linker="$host_os dld.so" 17113 shlibpath_var=LD_LIBRARY_PATH 17114 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17115 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17116 soname_spec='$libname$release$shared_ext$major' 17117 if test 32 = "$HPUX_IA64_MODE"; then 17118 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17119 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 17120 else 17121 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17122 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 17123 fi 17124 ;; 17125 hppa*64*) 17126 shrext_cmds='.sl' 17127 hardcode_into_libs=yes 17128 dynamic_linker="$host_os dld.sl" 17129 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17130 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17131 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17132 soname_spec='$libname$release$shared_ext$major' 17133 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17134 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17135 ;; 17136 *) 17137 shrext_cmds='.sl' 17138 dynamic_linker="$host_os dld.sl" 17139 shlibpath_var=SHLIB_PATH 17140 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17141 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17142 soname_spec='$libname$release$shared_ext$major' 17143 ;; 17144 esac 17145 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 17146 postinstall_cmds='chmod 555 $lib' 17147 # or fails outright, so override atomically: 17148 install_override_mode=555 17149 ;; 17150 17151interix[3-9]*) 17152 version_type=linux # correct to gnu/linux during the next big refactor 17153 need_lib_prefix=no 17154 need_version=no 17155 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17156 soname_spec='$libname$release$shared_ext$major' 17157 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17158 shlibpath_var=LD_LIBRARY_PATH 17159 shlibpath_overrides_runpath=no 17160 hardcode_into_libs=yes 17161 ;; 17162 17163irix5* | irix6* | nonstopux*) 17164 case $host_os in 17165 nonstopux*) version_type=nonstopux ;; 17166 *) 17167 if test yes = "$lt_cv_prog_gnu_ld"; then 17168 version_type=linux # correct to gnu/linux during the next big refactor 17169 else 17170 version_type=irix 17171 fi ;; 17172 esac 17173 need_lib_prefix=no 17174 need_version=no 17175 soname_spec='$libname$release$shared_ext$major' 17176 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 17177 case $host_os in 17178 irix5* | nonstopux*) 17179 libsuff= shlibsuff= 17180 ;; 17181 *) 17182 case $LD in # libtool.m4 will add one of these switches to LD 17183 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17184 libsuff= shlibsuff= libmagic=32-bit;; 17185 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17186 libsuff=32 shlibsuff=N32 libmagic=N32;; 17187 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17188 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17189 *) libsuff= shlibsuff= libmagic=never-match;; 17190 esac 17191 ;; 17192 esac 17193 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17194 shlibpath_overrides_runpath=no 17195 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 17196 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 17197 hardcode_into_libs=yes 17198 ;; 17199 17200# No shared lib support for Linux oldld, aout, or coff. 17201linux*oldld* | linux*aout* | linux*coff*) 17202 dynamic_linker=no 17203 ;; 17204 17205linux*android*) 17206 version_type=none # Android doesn't support versioned libraries. 17207 need_lib_prefix=no 17208 need_version=no 17209 library_names_spec='$libname$release$shared_ext' 17210 soname_spec='$libname$release$shared_ext' 17211 finish_cmds= 17212 shlibpath_var=LD_LIBRARY_PATH 17213 shlibpath_overrides_runpath=yes 17214 17215 # This implies no fast_install, which is unacceptable. 17216 # Some rework will be needed to allow for fast_install 17217 # before this can be enabled. 17218 hardcode_into_libs=yes 17219 17220 dynamic_linker='Android linker' 17221 # Don't embed -rpath directories since the linker doesn't support them. 17222 hardcode_libdir_flag_spec='-L$libdir' 17223 ;; 17224 17225# This must be glibc/ELF. 17226linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17227 version_type=linux # correct to gnu/linux during the next big refactor 17228 need_lib_prefix=no 17229 need_version=no 17230 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17231 soname_spec='$libname$release$shared_ext$major' 17232 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17233 shlibpath_var=LD_LIBRARY_PATH 17234 shlibpath_overrides_runpath=no 17235 17236 # Some binutils ld are patched to set DT_RUNPATH 17237 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 17238 $as_echo_n "(cached) " >&6 17239else 17240 lt_cv_shlibpath_overrides_runpath=no 17241 save_LDFLAGS=$LDFLAGS 17242 save_libdir=$libdir 17243 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 17244 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 17245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17246/* end confdefs.h. */ 17247 17248int 17249main () 17250{ 17251 17252 ; 17253 return 0; 17254} 17255_ACEOF 17256if ac_fn_c_try_link "$LINENO"; then : 17257 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 17258 lt_cv_shlibpath_overrides_runpath=yes 17259fi 17260fi 17261rm -f core conftest.err conftest.$ac_objext \ 17262 conftest$ac_exeext conftest.$ac_ext 17263 LDFLAGS=$save_LDFLAGS 17264 libdir=$save_libdir 17265 17266fi 17267 17268 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 17269 17270 # This implies no fast_install, which is unacceptable. 17271 # Some rework will be needed to allow for fast_install 17272 # before this can be enabled. 17273 hardcode_into_libs=yes 17274 17275 # Add ABI-specific directories to the system library path. 17276 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 17277 17278 # Ideally, we could use ldconfig to report *all* directores which are 17279 # searched for libraries, however this is still not possible. Aside from not 17280 # being certain /sbin/ldconfig is available, command 17281 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 17282 # even though it is searched at run-time. Try to do the best guess by 17283 # appending ld.so.conf contents (and includes) to the search path. 17284 if test -f /etc/ld.so.conf; then 17285 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 17286 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 17287 fi 17288 17289 # We used to test for /lib/ld.so.1 and disable shared libraries on 17290 # powerpc, because MkLinux only supported shared libraries with the 17291 # GNU dynamic linker. Since this was broken with cross compilers, 17292 # most powerpc-linux boxes support dynamic linking these days and 17293 # people can always --disable-shared, the test was removed, and we 17294 # assume the GNU/Linux dynamic linker is in use. 17295 dynamic_linker='GNU/Linux ld.so' 17296 ;; 17297 17298netbsd*) 17299 version_type=sunos 17300 need_lib_prefix=no 17301 need_version=no 17302 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17303 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17304 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17305 dynamic_linker='NetBSD (a.out) ld.so' 17306 else 17307 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17308 soname_spec='$libname$release$shared_ext$major' 17309 dynamic_linker='NetBSD ld.elf_so' 17310 fi 17311 shlibpath_var=LD_LIBRARY_PATH 17312 shlibpath_overrides_runpath=yes 17313 hardcode_into_libs=yes 17314 ;; 17315 17316newsos6) 17317 version_type=linux # correct to gnu/linux during the next big refactor 17318 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17319 shlibpath_var=LD_LIBRARY_PATH 17320 shlibpath_overrides_runpath=yes 17321 ;; 17322 17323*nto* | *qnx*) 17324 version_type=qnx 17325 need_lib_prefix=no 17326 need_version=no 17327 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17328 soname_spec='$libname$release$shared_ext$major' 17329 shlibpath_var=LD_LIBRARY_PATH 17330 shlibpath_overrides_runpath=no 17331 hardcode_into_libs=yes 17332 dynamic_linker='ldqnx.so' 17333 ;; 17334 17335openbsd* | bitrig*) 17336 version_type=sunos 17337 sys_lib_dlsearch_path_spec=/usr/lib 17338 need_lib_prefix=no 17339 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17340 need_version=no 17341 else 17342 need_version=yes 17343 fi 17344 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17345 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17346 shlibpath_var=LD_LIBRARY_PATH 17347 shlibpath_overrides_runpath=yes 17348 ;; 17349 17350os2*) 17351 libname_spec='$name' 17352 version_type=windows 17353 shrext_cmds=.dll 17354 need_version=no 17355 need_lib_prefix=no 17356 # OS/2 can only load a DLL with a base name of 8 characters or less. 17357 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 17358 v=$($ECHO $release$versuffix | tr -d .-); 17359 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 17360 $ECHO $n$v`$shared_ext' 17361 library_names_spec='${libname}_dll.$libext' 17362 dynamic_linker='OS/2 ld.exe' 17363 shlibpath_var=BEGINLIBPATH 17364 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17365 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17366 postinstall_cmds='base_file=`basename \$file`~ 17367 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 17368 dldir=$destdir/`dirname \$dlpath`~ 17369 test -d \$dldir || mkdir -p \$dldir~ 17370 $install_prog $dir/$dlname \$dldir/$dlname~ 17371 chmod a+x \$dldir/$dlname~ 17372 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17373 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17374 fi' 17375 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 17376 dlpath=$dir/\$dldll~ 17377 $RM \$dlpath' 17378 ;; 17379 17380osf3* | osf4* | osf5*) 17381 version_type=osf 17382 need_lib_prefix=no 17383 need_version=no 17384 soname_spec='$libname$release$shared_ext$major' 17385 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17386 shlibpath_var=LD_LIBRARY_PATH 17387 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17388 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17389 ;; 17390 17391rdos*) 17392 dynamic_linker=no 17393 ;; 17394 17395solaris*) 17396 version_type=linux # correct to gnu/linux during the next big refactor 17397 need_lib_prefix=no 17398 need_version=no 17399 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17400 soname_spec='$libname$release$shared_ext$major' 17401 shlibpath_var=LD_LIBRARY_PATH 17402 shlibpath_overrides_runpath=yes 17403 hardcode_into_libs=yes 17404 # ldd complains unless libraries are executable 17405 postinstall_cmds='chmod +x $lib' 17406 ;; 17407 17408sunos4*) 17409 version_type=sunos 17410 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17411 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17412 shlibpath_var=LD_LIBRARY_PATH 17413 shlibpath_overrides_runpath=yes 17414 if test yes = "$with_gnu_ld"; then 17415 need_lib_prefix=no 17416 fi 17417 need_version=yes 17418 ;; 17419 17420sysv4 | sysv4.3*) 17421 version_type=linux # correct to gnu/linux during the next big refactor 17422 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17423 soname_spec='$libname$release$shared_ext$major' 17424 shlibpath_var=LD_LIBRARY_PATH 17425 case $host_vendor in 17426 sni) 17427 shlibpath_overrides_runpath=no 17428 need_lib_prefix=no 17429 runpath_var=LD_RUN_PATH 17430 ;; 17431 siemens) 17432 need_lib_prefix=no 17433 ;; 17434 motorola) 17435 need_lib_prefix=no 17436 need_version=no 17437 shlibpath_overrides_runpath=no 17438 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17439 ;; 17440 esac 17441 ;; 17442 17443sysv4*MP*) 17444 if test -d /usr/nec; then 17445 version_type=linux # correct to gnu/linux during the next big refactor 17446 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 17447 soname_spec='$libname$shared_ext.$major' 17448 shlibpath_var=LD_LIBRARY_PATH 17449 fi 17450 ;; 17451 17452sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17453 version_type=sco 17454 need_lib_prefix=no 17455 need_version=no 17456 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 17457 soname_spec='$libname$release$shared_ext$major' 17458 shlibpath_var=LD_LIBRARY_PATH 17459 shlibpath_overrides_runpath=yes 17460 hardcode_into_libs=yes 17461 if test yes = "$with_gnu_ld"; then 17462 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17463 else 17464 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17465 case $host_os in 17466 sco3.2v5*) 17467 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17468 ;; 17469 esac 17470 fi 17471 sys_lib_dlsearch_path_spec='/usr/lib' 17472 ;; 17473 17474tpf*) 17475 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17476 version_type=linux # correct to gnu/linux during the next big refactor 17477 need_lib_prefix=no 17478 need_version=no 17479 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17480 shlibpath_var=LD_LIBRARY_PATH 17481 shlibpath_overrides_runpath=no 17482 hardcode_into_libs=yes 17483 ;; 17484 17485uts4*) 17486 version_type=linux # correct to gnu/linux during the next big refactor 17487 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17488 soname_spec='$libname$release$shared_ext$major' 17489 shlibpath_var=LD_LIBRARY_PATH 17490 ;; 17491 17492*) 17493 dynamic_linker=no 17494 ;; 17495esac 17496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17497$as_echo "$dynamic_linker" >&6; } 17498test no = "$dynamic_linker" && can_build_shared=no 17499 17500variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17501if test yes = "$GCC"; then 17502 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17503fi 17504 17505if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 17506 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 17507fi 17508 17509if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 17510 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 17511fi 17512 17513# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 17514configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 17515 17516# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 17517func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 17518 17519# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 17520configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 17521 17522 17523 17524 17525 17526 17527 17528 17529 17530 17531 17532 17533 17534 17535 17536 17537 17538 17539 17540 17541 17542 17543 17544 17545 17546 17547 17548 17549 17550 17551 17552 17553 17554 17555 17556 17557 17558 17559 17560 17561 17562 17563 17564 17565 17566 17567 17568 17569 17570 17571 17572 17573 17574 17575 17576 17577 17578 17579 17580 17581 17582 17583 17584 17585 17586 17587 17588 17589 17590 17591 17592 17593 17594 17595 17596 17597 17598 17599 17600 17601 17602 17603 17604 17605 17606 17607 17608 17609 17610 17611 17612 17613 17614 17615 17616 17617 17618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17619$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17620hardcode_action= 17621if test -n "$hardcode_libdir_flag_spec" || 17622 test -n "$runpath_var" || 17623 test yes = "$hardcode_automatic"; then 17624 17625 # We can hardcode non-existent directories. 17626 if test no != "$hardcode_direct" && 17627 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17628 # have to relink, otherwise we might link with an installed library 17629 # when we should be linking with a yet-to-be-installed one 17630 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 17631 test no != "$hardcode_minus_L"; then 17632 # Linking always hardcodes the temporary library directory. 17633 hardcode_action=relink 17634 else 17635 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17636 hardcode_action=immediate 17637 fi 17638else 17639 # We cannot hardcode anything, or else we can only hardcode existing 17640 # directories. 17641 hardcode_action=unsupported 17642fi 17643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 17644$as_echo "$hardcode_action" >&6; } 17645 17646if test relink = "$hardcode_action" || 17647 test yes = "$inherit_rpath"; then 17648 # Fast installation is not supported 17649 enable_fast_install=no 17650elif test yes = "$shlibpath_overrides_runpath" || 17651 test no = "$enable_shared"; then 17652 # Fast installation is not necessary 17653 enable_fast_install=needless 17654fi 17655 17656 17657 17658 17659 17660 17661 if test yes != "$enable_dlopen"; then 17662 enable_dlopen=unknown 17663 enable_dlopen_self=unknown 17664 enable_dlopen_self_static=unknown 17665else 17666 lt_cv_dlopen=no 17667 lt_cv_dlopen_libs= 17668 17669 case $host_os in 17670 beos*) 17671 lt_cv_dlopen=load_add_on 17672 lt_cv_dlopen_libs= 17673 lt_cv_dlopen_self=yes 17674 ;; 17675 17676 mingw* | pw32* | cegcc*) 17677 lt_cv_dlopen=LoadLibrary 17678 lt_cv_dlopen_libs= 17679 ;; 17680 17681 cygwin*) 17682 lt_cv_dlopen=dlopen 17683 lt_cv_dlopen_libs= 17684 ;; 17685 17686 darwin*) 17687 # if libdl is installed we need to link against it 17688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17689$as_echo_n "checking for dlopen in -ldl... " >&6; } 17690if ${ac_cv_lib_dl_dlopen+:} false; then : 17691 $as_echo_n "(cached) " >&6 17692else 17693 ac_check_lib_save_LIBS=$LIBS 17694LIBS="-ldl $LIBS" 17695cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17696/* end confdefs.h. */ 17697 17698/* Override any GCC internal prototype to avoid an error. 17699 Use char because int might match the return type of a GCC 17700 builtin and then its argument prototype would still apply. */ 17701#ifdef __cplusplus 17702extern "C" 17703#endif 17704char dlopen (); 17705int 17706main () 17707{ 17708return dlopen (); 17709 ; 17710 return 0; 17711} 17712_ACEOF 17713if ac_fn_c_try_link "$LINENO"; then : 17714 ac_cv_lib_dl_dlopen=yes 17715else 17716 ac_cv_lib_dl_dlopen=no 17717fi 17718rm -f core conftest.err conftest.$ac_objext \ 17719 conftest$ac_exeext conftest.$ac_ext 17720LIBS=$ac_check_lib_save_LIBS 17721fi 17722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17723$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17724if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17725 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 17726else 17727 17728 lt_cv_dlopen=dyld 17729 lt_cv_dlopen_libs= 17730 lt_cv_dlopen_self=yes 17731 17732fi 17733 17734 ;; 17735 17736 tpf*) 17737 # Don't try to run any link tests for TPF. We know it's impossible 17738 # because TPF is a cross-compiler, and we know how we open DSOs. 17739 lt_cv_dlopen=dlopen 17740 lt_cv_dlopen_libs= 17741 lt_cv_dlopen_self=no 17742 ;; 17743 17744 *) 17745 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 17746if test "x$ac_cv_func_shl_load" = xyes; then : 17747 lt_cv_dlopen=shl_load 17748else 17749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 17750$as_echo_n "checking for shl_load in -ldld... " >&6; } 17751if ${ac_cv_lib_dld_shl_load+:} false; then : 17752 $as_echo_n "(cached) " >&6 17753else 17754 ac_check_lib_save_LIBS=$LIBS 17755LIBS="-ldld $LIBS" 17756cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17757/* end confdefs.h. */ 17758 17759/* Override any GCC internal prototype to avoid an error. 17760 Use char because int might match the return type of a GCC 17761 builtin and then its argument prototype would still apply. */ 17762#ifdef __cplusplus 17763extern "C" 17764#endif 17765char shl_load (); 17766int 17767main () 17768{ 17769return shl_load (); 17770 ; 17771 return 0; 17772} 17773_ACEOF 17774if ac_fn_c_try_link "$LINENO"; then : 17775 ac_cv_lib_dld_shl_load=yes 17776else 17777 ac_cv_lib_dld_shl_load=no 17778fi 17779rm -f core conftest.err conftest.$ac_objext \ 17780 conftest$ac_exeext conftest.$ac_ext 17781LIBS=$ac_check_lib_save_LIBS 17782fi 17783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 17784$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 17785if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 17786 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 17787else 17788 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 17789if test "x$ac_cv_func_dlopen" = xyes; then : 17790 lt_cv_dlopen=dlopen 17791else 17792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17793$as_echo_n "checking for dlopen in -ldl... " >&6; } 17794if ${ac_cv_lib_dl_dlopen+:} false; then : 17795 $as_echo_n "(cached) " >&6 17796else 17797 ac_check_lib_save_LIBS=$LIBS 17798LIBS="-ldl $LIBS" 17799cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17800/* end confdefs.h. */ 17801 17802/* Override any GCC internal prototype to avoid an error. 17803 Use char because int might match the return type of a GCC 17804 builtin and then its argument prototype would still apply. */ 17805#ifdef __cplusplus 17806extern "C" 17807#endif 17808char dlopen (); 17809int 17810main () 17811{ 17812return dlopen (); 17813 ; 17814 return 0; 17815} 17816_ACEOF 17817if ac_fn_c_try_link "$LINENO"; then : 17818 ac_cv_lib_dl_dlopen=yes 17819else 17820 ac_cv_lib_dl_dlopen=no 17821fi 17822rm -f core conftest.err conftest.$ac_objext \ 17823 conftest$ac_exeext conftest.$ac_ext 17824LIBS=$ac_check_lib_save_LIBS 17825fi 17826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17827$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17828if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17829 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 17830else 17831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 17832$as_echo_n "checking for dlopen in -lsvld... " >&6; } 17833if ${ac_cv_lib_svld_dlopen+:} false; then : 17834 $as_echo_n "(cached) " >&6 17835else 17836 ac_check_lib_save_LIBS=$LIBS 17837LIBS="-lsvld $LIBS" 17838cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17839/* end confdefs.h. */ 17840 17841/* Override any GCC internal prototype to avoid an error. 17842 Use char because int might match the return type of a GCC 17843 builtin and then its argument prototype would still apply. */ 17844#ifdef __cplusplus 17845extern "C" 17846#endif 17847char dlopen (); 17848int 17849main () 17850{ 17851return dlopen (); 17852 ; 17853 return 0; 17854} 17855_ACEOF 17856if ac_fn_c_try_link "$LINENO"; then : 17857 ac_cv_lib_svld_dlopen=yes 17858else 17859 ac_cv_lib_svld_dlopen=no 17860fi 17861rm -f core conftest.err conftest.$ac_objext \ 17862 conftest$ac_exeext conftest.$ac_ext 17863LIBS=$ac_check_lib_save_LIBS 17864fi 17865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 17866$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 17867if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 17868 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 17869else 17870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 17871$as_echo_n "checking for dld_link in -ldld... " >&6; } 17872if ${ac_cv_lib_dld_dld_link+:} false; then : 17873 $as_echo_n "(cached) " >&6 17874else 17875 ac_check_lib_save_LIBS=$LIBS 17876LIBS="-ldld $LIBS" 17877cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17878/* end confdefs.h. */ 17879 17880/* Override any GCC internal prototype to avoid an error. 17881 Use char because int might match the return type of a GCC 17882 builtin and then its argument prototype would still apply. */ 17883#ifdef __cplusplus 17884extern "C" 17885#endif 17886char dld_link (); 17887int 17888main () 17889{ 17890return dld_link (); 17891 ; 17892 return 0; 17893} 17894_ACEOF 17895if ac_fn_c_try_link "$LINENO"; then : 17896 ac_cv_lib_dld_dld_link=yes 17897else 17898 ac_cv_lib_dld_dld_link=no 17899fi 17900rm -f core conftest.err conftest.$ac_objext \ 17901 conftest$ac_exeext conftest.$ac_ext 17902LIBS=$ac_check_lib_save_LIBS 17903fi 17904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 17905$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 17906if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 17907 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 17908fi 17909 17910 17911fi 17912 17913 17914fi 17915 17916 17917fi 17918 17919 17920fi 17921 17922 17923fi 17924 17925 ;; 17926 esac 17927 17928 if test no = "$lt_cv_dlopen"; then 17929 enable_dlopen=no 17930 else 17931 enable_dlopen=yes 17932 fi 17933 17934 case $lt_cv_dlopen in 17935 dlopen) 17936 save_CPPFLAGS=$CPPFLAGS 17937 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 17938 17939 save_LDFLAGS=$LDFLAGS 17940 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 17941 17942 save_LIBS=$LIBS 17943 LIBS="$lt_cv_dlopen_libs $LIBS" 17944 17945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 17946$as_echo_n "checking whether a program can dlopen itself... " >&6; } 17947if ${lt_cv_dlopen_self+:} false; then : 17948 $as_echo_n "(cached) " >&6 17949else 17950 if test yes = "$cross_compiling"; then : 17951 lt_cv_dlopen_self=cross 17952else 17953 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17954 lt_status=$lt_dlunknown 17955 cat > conftest.$ac_ext <<_LT_EOF 17956#line $LINENO "configure" 17957#include "confdefs.h" 17958 17959#if HAVE_DLFCN_H 17960#include <dlfcn.h> 17961#endif 17962 17963#include <stdio.h> 17964 17965#ifdef RTLD_GLOBAL 17966# define LT_DLGLOBAL RTLD_GLOBAL 17967#else 17968# ifdef DL_GLOBAL 17969# define LT_DLGLOBAL DL_GLOBAL 17970# else 17971# define LT_DLGLOBAL 0 17972# endif 17973#endif 17974 17975/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17976 find out it does not work in some platform. */ 17977#ifndef LT_DLLAZY_OR_NOW 17978# ifdef RTLD_LAZY 17979# define LT_DLLAZY_OR_NOW RTLD_LAZY 17980# else 17981# ifdef DL_LAZY 17982# define LT_DLLAZY_OR_NOW DL_LAZY 17983# else 17984# ifdef RTLD_NOW 17985# define LT_DLLAZY_OR_NOW RTLD_NOW 17986# else 17987# ifdef DL_NOW 17988# define LT_DLLAZY_OR_NOW DL_NOW 17989# else 17990# define LT_DLLAZY_OR_NOW 0 17991# endif 17992# endif 17993# endif 17994# endif 17995#endif 17996 17997/* When -fvisibility=hidden is used, assume the code has been annotated 17998 correspondingly for the symbols needed. */ 17999#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18000int fnord () __attribute__((visibility("default"))); 18001#endif 18002 18003int fnord () { return 42; } 18004int main () 18005{ 18006 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18007 int status = $lt_dlunknown; 18008 18009 if (self) 18010 { 18011 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18012 else 18013 { 18014 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18015 else puts (dlerror ()); 18016 } 18017 /* dlclose (self); */ 18018 } 18019 else 18020 puts (dlerror ()); 18021 18022 return status; 18023} 18024_LT_EOF 18025 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18026 (eval $ac_link) 2>&5 18027 ac_status=$? 18028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18029 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18030 (./conftest; exit; ) >&5 2>/dev/null 18031 lt_status=$? 18032 case x$lt_status in 18033 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18034 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18035 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 18036 esac 18037 else : 18038 # compilation failed 18039 lt_cv_dlopen_self=no 18040 fi 18041fi 18042rm -fr conftest* 18043 18044 18045fi 18046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 18047$as_echo "$lt_cv_dlopen_self" >&6; } 18048 18049 if test yes = "$lt_cv_dlopen_self"; then 18050 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 18051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 18052$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 18053if ${lt_cv_dlopen_self_static+:} false; then : 18054 $as_echo_n "(cached) " >&6 18055else 18056 if test yes = "$cross_compiling"; then : 18057 lt_cv_dlopen_self_static=cross 18058else 18059 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18060 lt_status=$lt_dlunknown 18061 cat > conftest.$ac_ext <<_LT_EOF 18062#line $LINENO "configure" 18063#include "confdefs.h" 18064 18065#if HAVE_DLFCN_H 18066#include <dlfcn.h> 18067#endif 18068 18069#include <stdio.h> 18070 18071#ifdef RTLD_GLOBAL 18072# define LT_DLGLOBAL RTLD_GLOBAL 18073#else 18074# ifdef DL_GLOBAL 18075# define LT_DLGLOBAL DL_GLOBAL 18076# else 18077# define LT_DLGLOBAL 0 18078# endif 18079#endif 18080 18081/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18082 find out it does not work in some platform. */ 18083#ifndef LT_DLLAZY_OR_NOW 18084# ifdef RTLD_LAZY 18085# define LT_DLLAZY_OR_NOW RTLD_LAZY 18086# else 18087# ifdef DL_LAZY 18088# define LT_DLLAZY_OR_NOW DL_LAZY 18089# else 18090# ifdef RTLD_NOW 18091# define LT_DLLAZY_OR_NOW RTLD_NOW 18092# else 18093# ifdef DL_NOW 18094# define LT_DLLAZY_OR_NOW DL_NOW 18095# else 18096# define LT_DLLAZY_OR_NOW 0 18097# endif 18098# endif 18099# endif 18100# endif 18101#endif 18102 18103/* When -fvisibility=hidden is used, assume the code has been annotated 18104 correspondingly for the symbols needed. */ 18105#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18106int fnord () __attribute__((visibility("default"))); 18107#endif 18108 18109int fnord () { return 42; } 18110int main () 18111{ 18112 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18113 int status = $lt_dlunknown; 18114 18115 if (self) 18116 { 18117 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18118 else 18119 { 18120 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18121 else puts (dlerror ()); 18122 } 18123 /* dlclose (self); */ 18124 } 18125 else 18126 puts (dlerror ()); 18127 18128 return status; 18129} 18130_LT_EOF 18131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18132 (eval $ac_link) 2>&5 18133 ac_status=$? 18134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18135 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 18136 (./conftest; exit; ) >&5 2>/dev/null 18137 lt_status=$? 18138 case x$lt_status in 18139 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18140 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18141 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 18142 esac 18143 else : 18144 # compilation failed 18145 lt_cv_dlopen_self_static=no 18146 fi 18147fi 18148rm -fr conftest* 18149 18150 18151fi 18152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 18153$as_echo "$lt_cv_dlopen_self_static" >&6; } 18154 fi 18155 18156 CPPFLAGS=$save_CPPFLAGS 18157 LDFLAGS=$save_LDFLAGS 18158 LIBS=$save_LIBS 18159 ;; 18160 esac 18161 18162 case $lt_cv_dlopen_self in 18163 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18164 *) enable_dlopen_self=unknown ;; 18165 esac 18166 18167 case $lt_cv_dlopen_self_static in 18168 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18169 *) enable_dlopen_self_static=unknown ;; 18170 esac 18171fi 18172 18173 18174 18175 18176 18177 18178 18179 18180 18181 18182 18183 18184 18185 18186 18187 18188 18189striplib= 18190old_striplib= 18191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 18192$as_echo_n "checking whether stripping libraries is possible... " >&6; } 18193if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 18194 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 18195 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 18196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18197$as_echo "yes" >&6; } 18198else 18199# FIXME - insert some real tests, host_os isn't really good enough 18200 case $host_os in 18201 darwin*) 18202 if test -n "$STRIP"; then 18203 striplib="$STRIP -x" 18204 old_striplib="$STRIP -S" 18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18206$as_echo "yes" >&6; } 18207 else 18208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18209$as_echo "no" >&6; } 18210 fi 18211 ;; 18212 *) 18213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18214$as_echo "no" >&6; } 18215 ;; 18216 esac 18217fi 18218 18219 18220 18221 18222 18223 18224 18225 18226 18227 18228 18229 18230 # Report what library types will actually be built 18231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 18232$as_echo_n "checking if libtool supports shared libraries... " >&6; } 18233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 18234$as_echo "$can_build_shared" >&6; } 18235 18236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 18237$as_echo_n "checking whether to build shared libraries... " >&6; } 18238 test no = "$can_build_shared" && enable_shared=no 18239 18240 # On AIX, shared libraries and static libraries use the same namespace, and 18241 # are all built from PIC. 18242 case $host_os in 18243 aix3*) 18244 test yes = "$enable_shared" && enable_static=no 18245 if test -n "$RANLIB"; then 18246 archive_cmds="$archive_cmds~\$RANLIB \$lib" 18247 postinstall_cmds='$RANLIB $lib' 18248 fi 18249 ;; 18250 18251 aix[4-9]*) 18252 if test ia64 != "$host_cpu"; then 18253 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 18254 yes,aix,yes) ;; # shared object as lib.so file only 18255 yes,svr4,*) ;; # shared object as lib.so archive member only 18256 yes,*) enable_static=no ;; # shared object in lib.a archive as well 18257 esac 18258 fi 18259 ;; 18260 esac 18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 18262$as_echo "$enable_shared" >&6; } 18263 18264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 18265$as_echo_n "checking whether to build static libraries... " >&6; } 18266 # Make sure either enable_shared or enable_static is yes. 18267 test yes = "$enable_shared" || enable_static=yes 18268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 18269$as_echo "$enable_static" >&6; } 18270 18271 18272 18273 18274fi 18275ac_ext=c 18276ac_cpp='$CPP $CPPFLAGS' 18277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18279ac_compiler_gnu=$ac_cv_c_compiler_gnu 18280 18281CC=$lt_save_CC 18282 18283 18284 18285 18286 18287 18288 18289 18290 18291 18292 18293 18294 18295 18296 18297 ac_config_commands="$ac_config_commands libtool" 18298 18299 18300 18301 18302# Only expand once: 18303 18304 18305 # get libtool's setting of shlibpath_var 18306 if test "x$shlibpath_var" = "x"; then 18307 eval `grep "^shlibpath_var=[A-Z_]*$" $apr_builddir/libtool` 18308 fi 18309 if test "x$shlibpath_var" = "x"; then 18310 { $as_echo "$as_me:${as_lineno-$LINENO}: SHLIBPATH variable could not be determined" >&5 18311$as_echo "$as_me: SHLIBPATH variable could not be determined" >&6;} 18312 shlibpath_var=REPLACE_WITH_YOUR_SHLIBPATH_VAR 18313 fi 18314 fi 18315 ;; 18316esac 18317 18318 18319# Check whether --with-installbuilddir was given. 18320if test "${with_installbuilddir+set}" = set; then : 18321 withval=$with_installbuilddir; installbuilddir=$withval 18322fi 18323 18324 18325 18326 18327# Check whether --with-libtool was given. 18328if test "${with_libtool+set}" = set; then : 18329 withval=$with_libtool; use_libtool=$withval 18330else 18331 use_libtool="yes" 18332fi 18333 18334 18335if test "x$use_libtool" = "xyes"; then 18336 lt_compile='$(LIBTOOL) $(LTFLAGS) --mode=compile $(COMPILE) -o $@ -c $< && touch $@' 18337 LT_VERSION="-version-info `$get_version libtool $version_hdr APR`" 18338 link="\$(LIBTOOL) \$(LTFLAGS) --mode=link \$(COMPILE) \$(LT_LDFLAGS) \$(LT_VERSION) \$(ALL_LDFLAGS) -o \$@" 18339 so_ext='lo' 18340 lib_target='-rpath $(libdir) $(OBJECTS)' 18341 export_lib_target='-rpath \$(libdir) \$(OBJECTS)' 18342else 18343 lt_compile='$(COMPILE) -o $@ -c $<' 18344 link='$(AR) cr $(TARGET_LIB) $(OBJECTS); $(RANLIB) $(TARGET_LIB)' 18345 so_ext='o' 18346 lib_target='' 18347 export_lib_target='' 18348fi 18349 18350case $host in 18351 *-solaris2*) 18352 apr_platform_runtime_link_flag="-R" 18353 ;; 18354 *-mingw* | *-cygwin*) 18355 LT_LDFLAGS="$LT_LDFLAGS -no-undefined" 18356 ;; 18357 *) 18358 ;; 18359esac 18360 18361 18362 18363 18364 18365 18366 18367 18368 18369 18370 18371nl=' 18372' 18373echo "${nl}Check for compiler flags..." 18374 18375 18376case $host in 18377 *os390) 18378 if test "$ac_test_CFLAGS" != set; then 18379 18380 if test "x$CFLAGS" = "x-g"; then 18381 test "x$silent" != "xyes" && echo " nulling CFLAGS" 18382 CFLAGS="" 18383 else 18384 apr_new_bugger="" 18385 apr_removed=0 18386 for i in $CFLAGS; do 18387 if test "x$i" != "x-g"; then 18388 apr_new_bugger="$apr_new_bugger $i" 18389 else 18390 apr_removed=1 18391 fi 18392 done 18393 if test $apr_removed = "1"; then 18394 test "x$silent" != "xyes" && echo " removed \"-g\" from CFLAGS" 18395 CFLAGS=$apr_new_bugger 18396 fi 18397 fi 18398 18399 fi 18400 ;; 18401esac 18402 18403# Check whether --enable-debug was given. 18404if test "${enable_debug+set}" = set; then : 18405 enableval=$enable_debug; 18406 if test "x$CFLAGS" = "x"; then 18407 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-g\"" 18408 CFLAGS="-g" 18409 else 18410 apr_addto_bugger="-g" 18411 for i in $apr_addto_bugger; do 18412 apr_addto_duplicate="0" 18413 for j in $CFLAGS; do 18414 if test "x$i" = "x$j"; then 18415 apr_addto_duplicate="1" 18416 break 18417 fi 18418 done 18419 if test $apr_addto_duplicate = "0"; then 18420 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS" 18421 CFLAGS="$CFLAGS $i" 18422 fi 18423 done 18424 fi 18425 18426 if test "$GCC" = "yes"; then 18427 18428 if test "x$CFLAGS" = "x"; then 18429 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wall\"" 18430 CFLAGS="-Wall" 18431 else 18432 apr_addto_bugger="-Wall" 18433 for i in $apr_addto_bugger; do 18434 apr_addto_duplicate="0" 18435 for j in $CFLAGS; do 18436 if test "x$i" = "x$j"; then 18437 apr_addto_duplicate="1" 18438 break 18439 fi 18440 done 18441 if test $apr_addto_duplicate = "0"; then 18442 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS" 18443 CFLAGS="$CFLAGS $i" 18444 fi 18445 done 18446 fi 18447 18448 elif test "$AIX_XLC" = "yes"; then 18449 18450 if test "x$CFLAGS" = "x"; then 18451 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-qfullpath\"" 18452 CFLAGS="-qfullpath" 18453 else 18454 apr_addto_bugger="-qfullpath" 18455 for i in $apr_addto_bugger; do 18456 apr_addto_duplicate="0" 18457 for j in $CFLAGS; do 18458 if test "x$i" = "x$j"; then 18459 apr_addto_duplicate="1" 18460 break 18461 fi 18462 done 18463 if test $apr_addto_duplicate = "0"; then 18464 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS" 18465 CFLAGS="$CFLAGS $i" 18466 fi 18467 done 18468 fi 18469 18470 fi 18471 18472fi 18473 18474# Check whether --enable-maintainer-mode was given. 18475if test "${enable_maintainer_mode+set}" = set; then : 18476 enableval=$enable_maintainer_mode; 18477 if test "x$CFLAGS" = "x"; then 18478 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-g\"" 18479 CFLAGS="-g" 18480 else 18481 apr_addto_bugger="-g" 18482 for i in $apr_addto_bugger; do 18483 apr_addto_duplicate="0" 18484 for j in $CFLAGS; do 18485 if test "x$i" = "x$j"; then 18486 apr_addto_duplicate="1" 18487 break 18488 fi 18489 done 18490 if test $apr_addto_duplicate = "0"; then 18491 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS" 18492 CFLAGS="$CFLAGS $i" 18493 fi 18494 done 18495 fi 18496 18497 if test "$GCC" = "yes"; then 18498 18499 if test "x$CFLAGS" = "x"; then 18500 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations\"" 18501 CFLAGS="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations" 18502 else 18503 apr_addto_bugger="-Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations" 18504 for i in $apr_addto_bugger; do 18505 apr_addto_duplicate="0" 18506 for j in $CFLAGS; do 18507 if test "x$i" = "x$j"; then 18508 apr_addto_duplicate="1" 18509 break 18510 fi 18511 done 18512 if test $apr_addto_duplicate = "0"; then 18513 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS" 18514 CFLAGS="$CFLAGS $i" 18515 fi 18516 done 18517 fi 18518 18519 case `($CC --version) 2>/dev/null` in 18520 *clang-900* | *"clang version 5.0.0"*) 18521 18522 if test "x$CFLAGS" = "x"; then 18523 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Wno-error=strict-prototypes\"" 18524 CFLAGS="-Wno-error=strict-prototypes" 18525 else 18526 apr_addto_bugger="-Wno-error=strict-prototypes" 18527 for i in $apr_addto_bugger; do 18528 apr_addto_duplicate="0" 18529 for j in $CFLAGS; do 18530 if test "x$i" = "x$j"; then 18531 apr_addto_duplicate="1" 18532 break 18533 fi 18534 done 18535 if test $apr_addto_duplicate = "0"; then 18536 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS" 18537 CFLAGS="$CFLAGS $i" 18538 fi 18539 done 18540 fi 18541 18542 ;; 18543 esac 18544 elif test "$AIX_XLC" = "yes"; then 18545 18546 if test "x$CFLAGS" = "x"; then 18547 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro\"" 18548 CFLAGS="-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro" 18549 else 18550 apr_addto_bugger="-qfullpath -qinitauto=FE -qcheck=all -qinfo=pro" 18551 for i in $apr_addto_bugger; do 18552 apr_addto_duplicate="0" 18553 for j in $CFLAGS; do 18554 if test "x$i" = "x$j"; then 18555 apr_addto_duplicate="1" 18556 break 18557 fi 18558 done 18559 if test $apr_addto_duplicate = "0"; then 18560 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS" 18561 CFLAGS="$CFLAGS $i" 18562 fi 18563 done 18564 fi 18565 18566 fi 18567 18568fi 18569 18570# Check whether --enable-profile was given. 18571if test "${enable_profile+set}" = set; then : 18572 enableval=$enable_profile; if test "$GCC" = "yes"; then 18573 18574 if test "x$CFLAGS" = "x"; then 18575 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-pg\"" 18576 CFLAGS="-pg" 18577 else 18578 apr_addto_bugger="-pg" 18579 for i in $apr_addto_bugger; do 18580 apr_addto_duplicate="0" 18581 for j in $CFLAGS; do 18582 if test "x$i" = "x$j"; then 18583 apr_addto_duplicate="1" 18584 break 18585 fi 18586 done 18587 if test $apr_addto_duplicate = "0"; then 18588 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS" 18589 CFLAGS="$CFLAGS $i" 18590 fi 18591 done 18592 fi 18593 18594 18595 if test "x$CFLAGS" = "x-g"; then 18596 test "x$silent" != "xyes" && echo " nulling CFLAGS" 18597 CFLAGS="" 18598 else 18599 apr_new_bugger="" 18600 apr_removed=0 18601 for i in $CFLAGS; do 18602 if test "x$i" != "x-g"; then 18603 apr_new_bugger="$apr_new_bugger $i" 18604 else 18605 apr_removed=1 18606 fi 18607 done 18608 if test $apr_removed = "1"; then 18609 test "x$silent" != "xyes" && echo " removed \"-g\" from CFLAGS" 18610 CFLAGS=$apr_new_bugger 18611 fi 18612 fi 18613 18614 if test "$host" = "i586-pc-beos"; then 18615 18616 if test "x$CFLAGS" = "x-O2"; then 18617 test "x$silent" != "xyes" && echo " nulling CFLAGS" 18618 CFLAGS="" 18619 else 18620 apr_new_bugger="" 18621 apr_removed=0 18622 for i in $CFLAGS; do 18623 if test "x$i" != "x-O2"; then 18624 apr_new_bugger="$apr_new_bugger $i" 18625 else 18626 apr_removed=1 18627 fi 18628 done 18629 if test $apr_removed = "1"; then 18630 test "x$silent" != "xyes" && echo " removed \"-O2\" from CFLAGS" 18631 CFLAGS=$apr_new_bugger 18632 fi 18633 fi 18634 18635 18636 if test "x$CFLAGS" = "x"; then 18637 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-O1\"" 18638 CFLAGS="-O1" 18639 else 18640 apr_addto_bugger="-O1" 18641 for i in $apr_addto_bugger; do 18642 apr_addto_duplicate="0" 18643 for j in $CFLAGS; do 18644 if test "x$i" = "x$j"; then 18645 apr_addto_duplicate="1" 18646 break 18647 fi 18648 done 18649 if test $apr_addto_duplicate = "0"; then 18650 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS" 18651 CFLAGS="$CFLAGS $i" 18652 fi 18653 done 18654 fi 18655 18656 18657 if test "x$LDFLAGS" = "x"; then 18658 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-p\"" 18659 LDFLAGS="-p" 18660 else 18661 apr_addto_bugger="-p" 18662 for i in $apr_addto_bugger; do 18663 apr_addto_duplicate="0" 18664 for j in $LDFLAGS; do 18665 if test "x$i" = "x$j"; then 18666 apr_addto_duplicate="1" 18667 break 18668 fi 18669 done 18670 if test $apr_addto_duplicate = "0"; then 18671 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 18672 LDFLAGS="$LDFLAGS $i" 18673 fi 18674 done 18675 fi 18676 18677 fi 18678 fi 18679 18680fi 18681 18682# Check whether --enable-pool-debug was given. 18683if test "${enable_pool_debug+set}" = set; then : 18684 enableval=$enable_pool_debug; if test -z "$enableval"; then 18685 18686 if test "x$CPPFLAGS" = "x"; then 18687 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DAPR_POOL_DEBUG=1\"" 18688 CPPFLAGS="-DAPR_POOL_DEBUG=1" 18689 else 18690 apr_addto_bugger="-DAPR_POOL_DEBUG=1" 18691 for i in $apr_addto_bugger; do 18692 apr_addto_duplicate="0" 18693 for j in $CPPFLAGS; do 18694 if test "x$i" = "x$j"; then 18695 apr_addto_duplicate="1" 18696 break 18697 fi 18698 done 18699 if test $apr_addto_duplicate = "0"; then 18700 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 18701 CPPFLAGS="$CPPFLAGS $i" 18702 fi 18703 done 18704 fi 18705 18706 elif test ! "$enableval" = "no"; then 18707 apr_pool_debug=1 18708 18709 for i in $enableval 18710 do 18711 flag=0 18712 18713 case $i in 18714 yes) 18715 flag=1 18716 ;; 18717 verbose) 18718 flag=2 18719 ;; 18720 lifetime) 18721 flag=4 18722 ;; 18723 owner) 18724 flag=8 18725 ;; 18726 verbose-alloc) 18727 flag=16 18728 ;; 18729 all) 18730 apr_pool_debug=31 18731 ;; 18732 *) 18733 ;; 18734 esac 18735 18736 if test $flag -gt 0; then 18737 apr_pool_debug=`expr '(' $apr_pool_debug - $apr_pool_debug % \ 18738 '(' $flag '*' 2 ')' ')' + $flag + $apr_pool_debug % $flag` 18739 fi 18740 done 18741 18742 18743 if test "x$CPPFLAGS" = "x"; then 18744 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DAPR_POOL_DEBUG=$apr_pool_debug\"" 18745 CPPFLAGS="-DAPR_POOL_DEBUG=$apr_pool_debug" 18746 else 18747 apr_addto_bugger="-DAPR_POOL_DEBUG=$apr_pool_debug" 18748 for i in $apr_addto_bugger; do 18749 apr_addto_duplicate="0" 18750 for j in $CPPFLAGS; do 18751 if test "x$i" = "x$j"; then 18752 apr_addto_duplicate="1" 18753 break 18754 fi 18755 done 18756 if test $apr_addto_duplicate = "0"; then 18757 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 18758 CPPFLAGS="$CPPFLAGS $i" 18759 fi 18760 done 18761 fi 18762 18763 fi 18764 18765fi 18766 18767 18768if test "$host" = "i586-pc-beos"; then 18769 # Check whether --enable-malloc-debug was given. 18770if test "${enable_malloc_debug+set}" = set; then : 18771 enableval=$enable_malloc_debug; 18772 if test "x$CFLAGS" = "x-O2"; then 18773 test "x$silent" != "xyes" && echo " nulling CFLAGS" 18774 CFLAGS="" 18775 else 18776 apr_new_bugger="" 18777 apr_removed=0 18778 for i in $CFLAGS; do 18779 if test "x$i" != "x-O2"; then 18780 apr_new_bugger="$apr_new_bugger $i" 18781 else 18782 apr_removed=1 18783 fi 18784 done 18785 if test $apr_removed = "1"; then 18786 test "x$silent" != "xyes" && echo " removed \"-O2\" from CFLAGS" 18787 CFLAGS=$apr_new_bugger 18788 fi 18789 fi 18790 18791 18792 if test "x$CPPFLAGS" = "x"; then 18793 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-fcheck-memory-usage -D_KERNEL_MODE\"" 18794 CPPFLAGS="-fcheck-memory-usage -D_KERNEL_MODE" 18795 else 18796 apr_addto_bugger="-fcheck-memory-usage -D_KERNEL_MODE" 18797 for i in $apr_addto_bugger; do 18798 apr_addto_duplicate="0" 18799 for j in $CPPFLAGS; do 18800 if test "x$i" = "x$j"; then 18801 apr_addto_duplicate="1" 18802 break 18803 fi 18804 done 18805 if test $apr_addto_duplicate = "0"; then 18806 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 18807 CPPFLAGS="$CPPFLAGS $i" 18808 fi 18809 done 18810 fi 18811 18812 18813fi 18814 fi 18815 18816# this is the place to put specific options for platform/compiler 18817# combinations 18818case "$host:$CC" in 18819 *-hp-hpux*:cc ) 18820 18821 if test "x$CFLAGS" = "x"; then 18822 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Ae +Z\"" 18823 CFLAGS="-Ae +Z" 18824 else 18825 apr_addto_bugger="-Ae +Z" 18826 for i in $apr_addto_bugger; do 18827 apr_addto_duplicate="0" 18828 for j in $CFLAGS; do 18829 if test "x$i" = "x$j"; then 18830 apr_addto_duplicate="1" 18831 break 18832 fi 18833 done 18834 if test $apr_addto_duplicate = "0"; then 18835 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS" 18836 CFLAGS="$CFLAGS $i" 18837 fi 18838 done 18839 fi 18840 18841 case $host in 18842 ia64-* ) 18843 ;; 18844 * ) 18845 if echo "$CFLAGS " | grep '+DA' >/dev/null; then : 18846 else 18847 18848 if test "x$CFLAGS" = "x"; then 18849 test "x$silent" != "xyes" && echo " setting CFLAGS to \"+DAportable\"" 18850 CFLAGS="+DAportable" 18851 else 18852 apr_addto_bugger="+DAportable" 18853 for i in $apr_addto_bugger; do 18854 apr_addto_duplicate="0" 18855 for j in $CFLAGS; do 18856 if test "x$i" = "x$j"; then 18857 apr_addto_duplicate="1" 18858 break 18859 fi 18860 done 18861 if test $apr_addto_duplicate = "0"; then 18862 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS" 18863 CFLAGS="$CFLAGS $i" 18864 fi 18865 done 18866 fi 18867 18868 fi 18869 ;; 18870 esac 18871 ;; 18872 powerpc-*-beos:mwcc* ) 18873 18874 test "x$silent" != "xyes" && echo " forcing CPP to \"mwcc -E\"" 18875 CPP="mwcc -E" 18876 18877 18878 test "x$silent" != "xyes" && echo " forcing CC to \"mwcc\"" 18879 CC="mwcc" 18880 18881 18882 test "x$silent" != "xyes" && echo " forcing AR to \"ar\"" 18883 AR="ar" 18884 18885 ;; 18886 *-mingw* | *-cygwin*) 18887 if test "$enable_shared" = "yes"; then 18888 18889 if test "x$INTERNAL_CPPFLAGS" = "x"; then 18890 test "x$silent" != "xyes" && echo " setting INTERNAL_CPPFLAGS to \"-DAPR_DECLARE_EXPORT\"" 18891 INTERNAL_CPPFLAGS="-DAPR_DECLARE_EXPORT" 18892 else 18893 apr_addto_bugger="-DAPR_DECLARE_EXPORT" 18894 for i in $apr_addto_bugger; do 18895 apr_addto_duplicate="0" 18896 for j in $INTERNAL_CPPFLAGS; do 18897 if test "x$i" = "x$j"; then 18898 apr_addto_duplicate="1" 18899 break 18900 fi 18901 done 18902 if test $apr_addto_duplicate = "0"; then 18903 test "x$silent" != "xyes" && echo " adding \"$i\" to INTERNAL_CPPFLAGS" 18904 INTERNAL_CPPFLAGS="$INTERNAL_CPPFLAGS $i" 18905 fi 18906 done 18907 fi 18908 18909 else 18910 18911 if test "x$CPPFLAGS" = "x"; then 18912 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DAPR_DECLARE_STATIC\"" 18913 CPPFLAGS="-DAPR_DECLARE_STATIC" 18914 else 18915 apr_addto_bugger="-DAPR_DECLARE_STATIC" 18916 for i in $apr_addto_bugger; do 18917 apr_addto_duplicate="0" 18918 for j in $CPPFLAGS; do 18919 if test "x$i" = "x$j"; then 18920 apr_addto_duplicate="1" 18921 break 18922 fi 18923 done 18924 if test $apr_addto_duplicate = "0"; then 18925 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 18926 CPPFLAGS="$CPPFLAGS $i" 18927 fi 18928 done 18929 fi 18930 18931 fi 18932 ;; 18933esac 18934 18935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler provides atomic builtins" >&5 18936$as_echo_n "checking whether the compiler provides atomic builtins... " >&6; } 18937if ${ap_cv_atomic_builtins+:} false; then : 18938 $as_echo_n "(cached) " >&6 18939else 18940 if test "$cross_compiling" = yes; then : 18941 ap_cv_atomic_builtins=no 18942else 18943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18944/* end confdefs.h. */ 18945 18946int main() 18947{ 18948 unsigned long val = 1010, tmp, *mem = &val; 18949 18950 if (__sync_fetch_and_add(&val, 1010) != 1010 || val != 2020) 18951 return 1; 18952 18953 tmp = val; 18954 18955 if (__sync_fetch_and_sub(mem, 1010) != tmp || val != 1010) 18956 return 1; 18957 18958 if (__sync_sub_and_fetch(&val, 1010) != 0 || val != 0) 18959 return 1; 18960 18961 tmp = 3030; 18962 18963 if (__sync_val_compare_and_swap(mem, 0, tmp) != 0 || val != tmp) 18964 return 1; 18965 18966 if (__sync_lock_test_and_set(&val, 4040) != 3030) 18967 return 1; 18968 18969 mem = &tmp; 18970 18971 if (__sync_val_compare_and_swap(&mem, &tmp, &val) != &tmp) 18972 return 1; 18973 18974 __sync_synchronize(); 18975 18976 if (mem != &val) 18977 return 1; 18978 18979 return 0; 18980} 18981_ACEOF 18982if ac_fn_c_try_run "$LINENO"; then : 18983 ap_cv_atomic_builtins=yes 18984else 18985 ap_cv_atomic_builtins=no 18986fi 18987rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18988 conftest.$ac_objext conftest.beam conftest.$ac_ext 18989fi 18990 18991fi 18992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ap_cv_atomic_builtins" >&5 18993$as_echo "$ap_cv_atomic_builtins" >&6; } 18994 18995if test "$ap_cv_atomic_builtins" = "yes"; then 18996 18997$as_echo "#define HAVE_ATOMIC_BUILTINS 1" >>confdefs.h 18998 18999fi 19000 19001case $host in 19002 powerpc-405-*) 19003 # The IBM ppc405cr processor has a bugged stwcx instruction. 19004 19005$as_echo "#define PPC405_ERRATA 1" >>confdefs.h 19006 19007 ;; 19008 *) 19009 ;; 19010esac 19011 19012 19013if test "$GCC" = "yes"; then 19014 MKDEP='$(CC) -MM' 19015else 19016 rm -f conftest.c 19017 cat > conftest.c <<EOF 19018#include <sys/types.h> 19019 int main() { return 0; } 19020EOF 19021 MKDEP="true" 19022 for i in "$CC -MM" "$CC -M" "$CPP -MM" "$CPP -M" "cpp -M"; do 19023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $i can create proper make dependencies" >&5 19024$as_echo_n "checking if $i can create proper make dependencies... " >&6; } 19025 if $i conftest.c 2>/dev/null | grep 'conftest.o: conftest.c' >/dev/null; then 19026 MKDEP=$i 19027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19028$as_echo "yes" >&6; } 19029 break; 19030 fi 19031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19032$as_echo "no" >&6; } 19033 done 19034 rm -f conftest.c 19035fi 19036 19037 19038 19039 19040proc_mutex_is_global=0 19041 19042config_subdirs="none" 19043INSTALL_SUBDIRS="none" 19044OBJECTS_PLATFORM='$(OBJECTS_unix)' 19045 19046case $host in 19047 i386-ibm-aix* | *-ibm-aix[1-2].* | *-ibm-aix3.* | *-ibm-aix4.1 | *-ibm-aix4.1.* | *-ibm-aix4.2 | *-ibm-aix4.2.*) 19048 OSDIR="aix" 19049 19050 if test "x$LDFLAGS" = "x"; then 19051 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-lld\"" 19052 LDFLAGS="-lld" 19053 else 19054 apr_addto_bugger="-lld" 19055 for i in $apr_addto_bugger; do 19056 apr_addto_duplicate="0" 19057 for j in $LDFLAGS; do 19058 if test "x$i" = "x$j"; then 19059 apr_addto_duplicate="1" 19060 break 19061 fi 19062 done 19063 if test $apr_addto_duplicate = "0"; then 19064 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 19065 LDFLAGS="$LDFLAGS $i" 19066 fi 19067 done 19068 fi 19069 19070 eolstr="\\n" 19071 OBJECTS_PLATFORM='$(OBJECTS_aix)' 19072 ;; 19073 *-os2*) 19074 19075 if test "x$CPPFLAGS" = "x"; then 19076 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DOS2\"" 19077 CPPFLAGS="-DOS2" 19078 else 19079 apr_addto_bugger="-DOS2" 19080 for i in $apr_addto_bugger; do 19081 apr_addto_duplicate="0" 19082 for j in $CPPFLAGS; do 19083 if test "x$i" = "x$j"; then 19084 apr_addto_duplicate="1" 19085 break 19086 fi 19087 done 19088 if test $apr_addto_duplicate = "0"; then 19089 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 19090 CPPFLAGS="$CPPFLAGS $i" 19091 fi 19092 done 19093 fi 19094 19095 19096 if test "x$CFLAGS" = "x"; then 19097 test "x$silent" != "xyes" && echo " setting CFLAGS to \"-Zmt\"" 19098 CFLAGS="-Zmt" 19099 else 19100 apr_addto_bugger="-Zmt" 19101 for i in $apr_addto_bugger; do 19102 apr_addto_duplicate="0" 19103 for j in $CFLAGS; do 19104 if test "x$i" = "x$j"; then 19105 apr_addto_duplicate="1" 19106 break 19107 fi 19108 done 19109 if test $apr_addto_duplicate = "0"; then 19110 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS" 19111 CFLAGS="$CFLAGS $i" 19112 fi 19113 done 19114 fi 19115 19116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random in -lbsd" >&5 19117$as_echo_n "checking for random in -lbsd... " >&6; } 19118if ${ac_cv_lib_bsd_random+:} false; then : 19119 $as_echo_n "(cached) " >&6 19120else 19121 ac_check_lib_save_LIBS=$LIBS 19122LIBS="-lbsd $LIBS" 19123cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19124/* end confdefs.h. */ 19125 19126/* Override any GCC internal prototype to avoid an error. 19127 Use char because int might match the return type of a GCC 19128 builtin and then its argument prototype would still apply. */ 19129#ifdef __cplusplus 19130extern "C" 19131#endif 19132char random (); 19133int 19134main () 19135{ 19136return random (); 19137 ; 19138 return 0; 19139} 19140_ACEOF 19141if ac_fn_c_try_link "$LINENO"; then : 19142 ac_cv_lib_bsd_random=yes 19143else 19144 ac_cv_lib_bsd_random=no 19145fi 19146rm -f core conftest.err conftest.$ac_objext \ 19147 conftest$ac_exeext conftest.$ac_ext 19148LIBS=$ac_check_lib_save_LIBS 19149fi 19150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_random" >&5 19151$as_echo "$ac_cv_lib_bsd_random" >&6; } 19152if test "x$ac_cv_lib_bsd_random" = xyes; then : 19153 cat >>confdefs.h <<_ACEOF 19154#define HAVE_LIBBSD 1 19155_ACEOF 19156 19157 LIBS="-lbsd $LIBS" 19158 19159fi 19160 19161 OSDIR="os2" 19162 enable_threads="system_threads" 19163 eolstr="\\r\\n" 19164 file_as_socket="0" 19165 proc_mutex_is_global=1 19166 OBJECTS_PLATFORM='$(OBJECTS_os2)' 19167 ;; 19168 *beos*) 19169 OSDIR="beos" 19170 19171 if test "x$CPPFLAGS" = "x"; then 19172 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-DBEOS\"" 19173 CPPFLAGS="-DBEOS" 19174 else 19175 apr_addto_bugger="-DBEOS" 19176 for i in $apr_addto_bugger; do 19177 apr_addto_duplicate="0" 19178 for j in $CPPFLAGS; do 19179 if test "x$i" = "x$j"; then 19180 apr_addto_duplicate="1" 19181 break 19182 fi 19183 done 19184 if test $apr_addto_duplicate = "0"; then 19185 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 19186 CPPFLAGS="$CPPFLAGS $i" 19187 fi 19188 done 19189 fi 19190 19191 enable_threads="system_threads" 19192 native_mmap_emul="1" 19193 19194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BONE_VERSION in sys/socket.h" >&5 19195$as_echo_n "checking for BONE_VERSION in sys/socket.h... " >&6; } 19196if ${ac_cv_define_BONE_VERSION+:} false; then : 19197 $as_echo_n "(cached) " >&6 19198else 19199 19200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19201/* end confdefs.h. */ 19202 19203#include <sys/socket.h> 19204#ifdef BONE_VERSION 19205YES_IS_DEFINED 19206#endif 19207 19208_ACEOF 19209if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19210 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then : 19211 ac_cv_define_BONE_VERSION=yes 19212else 19213 ac_cv_define_BONE_VERSION=no 19214fi 19215rm -f conftest* 19216 19217 19218fi 19219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_BONE_VERSION" >&5 19220$as_echo "$ac_cv_define_BONE_VERSION" >&6; } 19221 if test "$ac_cv_define_BONE_VERSION" = "yes"; then 19222 19223$as_echo "#define HAVE_BONE_VERSION 1" >>confdefs.h 19224 19225 fi 19226 19227 eolstr="\\n" 19228 osver=`uname -r` 19229 proc_mutex_is_global=1 19230 OBJECTS_PLATFORM='$(OBJECTS_beos)' 19231 case $osver in 19232 5.0.4) 19233 file_as_socket="1" 19234 ;; 19235 *) 19236 file_as_socket="0" 19237 ;; 19238 esac 19239 ;; 19240 *apple-darwin*) 19241 ac_cv_func_fdatasync="no" # Mac OS X wrongly reports it has fdatasync() 19242 OSDIR="unix" 19243 eolstr="\\n" 19244 ;; 19245 *os390) 19246 OSDIR="os390" 19247 OBJECTS_PLATFORM='$(OBJECTS_os390)' 19248 eolstr="\\n" 19249 ;; 19250 *os400) 19251 OSDIR="as400" 19252 eolstr="\\n" 19253 ;; 19254 *mingw*) 19255 OSDIR="win32" 19256 enable_threads="system_threads" 19257 eolstr="\\r\\n" 19258 file_as_socket=0 19259 proc_mutex_is_global=1 19260 OBJECTS_PLATFORM='$(OBJECTS_win32)' 19261 ;; 19262 *cygwin*) 19263 OSDIR="unix" 19264 enable_threads="no" 19265 eolstr="\\n" 19266 ;; 19267 *hpux10* ) 19268 enable_threads="no" 19269 OSDIR="unix" 19270 eolstr="\\n" 19271 ;; 19272 *darwin* ) 19273 ac_cv_func_fdatasync="no" # Mac OS X wrongly reports it has fdatasync() 19274 OSDIR="unix" 19275 eolstr="\\n" 19276 ;; 19277 *) 19278 OSDIR="unix" 19279 eolstr="\\n" 19280 ;; 19281esac 19282 19283 19284 19285# Check whether LFS has explicitly been disabled 19286# Check whether --enable-lfs was given. 19287if test "${enable_lfs+set}" = set; then : 19288 enableval=$enable_lfs; apr_lfs_choice=$enableval 19289else 19290 apr_lfs_choice=yes 19291fi 19292 19293 19294if test "$apr_lfs_choice" = "yes"; then 19295 # Check whether the transitional LFS API is sufficient 19296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable -D_LARGEFILE64_SOURCE" >&5 19297$as_echo_n "checking whether to enable -D_LARGEFILE64_SOURCE... " >&6; } 19298if ${apr_cv_use_lfs64+:} false; then : 19299 $as_echo_n "(cached) " >&6 19300else 19301 19302 apr_save_CPPFLAGS=$CPPFLAGS 19303 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE" 19304 if test "$cross_compiling" = yes; then : 19305 apr_cv_use_lfs64=no 19306else 19307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19308/* end confdefs.h. */ 19309 19310#include <sys/types.h> 19311#include <sys/stat.h> 19312#include <fcntl.h> 19313#include <stdlib.h> 19314#include <stdio.h> 19315#include <unistd.h> 19316 19317void main(void) 19318{ 19319 int fd, ret = 0; 19320 struct stat64 st; 19321 off64_t off = 4242; 19322 19323 if (sizeof(off64_t) != 8 || sizeof(off_t) != 4) 19324 exit(1); 19325 if ((fd = open("conftest.lfs", O_LARGEFILE|O_CREAT|O_WRONLY, 0644)) < 0) 19326 exit(2); 19327 if (ftruncate64(fd, off) != 0) 19328 ret = 3; 19329 else if (fstat64(fd, &st) != 0 || st.st_size != off) 19330 ret = 4; 19331 else if (lseek64(fd, off, SEEK_SET) != off) 19332 ret = 5; 19333 else if (close(fd) != 0) 19334 ret = 6; 19335 else if (lstat64("conftest.lfs", &st) != 0 || st.st_size != off) 19336 ret = 7; 19337 else if (stat64("conftest.lfs", &st) != 0 || st.st_size != off) 19338 ret = 8; 19339 unlink("conftest.lfs"); 19340 19341 exit(ret); 19342} 19343_ACEOF 19344if ac_fn_c_try_run "$LINENO"; then : 19345 apr_cv_use_lfs64=yes 19346else 19347 apr_cv_use_lfs64=no 19348fi 19349rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19350 conftest.$ac_objext conftest.beam conftest.$ac_ext 19351fi 19352 19353 CPPFLAGS=$apr_save_CPPFLAGS 19354fi 19355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_use_lfs64" >&5 19356$as_echo "$apr_cv_use_lfs64" >&6; } 19357 if test "$apr_cv_use_lfs64" = "yes"; then 19358 19359 if test "x$CPPFLAGS" = "x"; then 19360 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-D_LARGEFILE64_SOURCE\"" 19361 CPPFLAGS="-D_LARGEFILE64_SOURCE" 19362 else 19363 apr_addto_bugger="-D_LARGEFILE64_SOURCE" 19364 for i in $apr_addto_bugger; do 19365 apr_addto_duplicate="0" 19366 for j in $CPPFLAGS; do 19367 if test "x$i" = "x$j"; then 19368 apr_addto_duplicate="1" 19369 break 19370 fi 19371 done 19372 if test $apr_addto_duplicate = "0"; then 19373 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 19374 CPPFLAGS="$CPPFLAGS $i" 19375 fi 19376 done 19377 fi 19378 19379 fi 19380fi 19381 19382# Check whether --enable-nonportable-atomics was given. 19383if test "${enable_nonportable_atomics+set}" = set; then : 19384 enableval=$enable_nonportable_atomics; if test $enableval = yes; then 19385 force_generic_atomics=no 19386 else 19387 force_generic_atomics=yes 19388 fi 19389 19390else 19391 case $host_cpu in 19392 i[456]86) force_generic_atomics=yes ;; 19393 *) force_generic_atomics=no 19394 case $host in 19395 *solaris2.10*) 19396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19397/* end confdefs.h. */ 19398#include <atomic.h> 19399int 19400main () 19401{ 19402void *ptr = NULL; atomic_cas_ptr(&ptr, NULL, NULL); 19403 ; 19404 return 0; 19405} 19406_ACEOF 19407if ac_fn_c_try_compile "$LINENO"; then : 19408 19409else 19410 force_generic_atomics=yes 19411 19412fi 19413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19414 if test $force_generic_atomics = yes; then 19415 { $as_echo "$as_me:${as_lineno-$LINENO}: nonportable atomic support disabled, system needs Patch-ID 118884 or 118885" >&5 19416$as_echo "$as_me: nonportable atomic support disabled, system needs Patch-ID 118884 or 118885" >&6;} 19417 fi 19418 ;; 19419 esac 19420 ;; 19421esac 19422 19423fi 19424 19425 19426if test $force_generic_atomics = yes; then 19427 19428$as_echo "#define USE_ATOMICS_GENERIC 1" >>confdefs.h 19429 19430fi 19431 19432 19433 19434 19435 19436# For some platforms we need a version string which allows easy numeric 19437# comparisons. 19438case $host in 19439 *freebsd*) 19440 if test -x /sbin/sysctl; then 19441 os_version=`/sbin/sysctl -n kern.osreldate` 19442 else 19443 os_version=000000 19444 fi 19445 ;; 19446 *linux*) 19447 os_major=`uname -r | sed -e 's/\([1-9][0-9]*\)\..*/\1/'` 19448 os_minor=`uname -r | sed -e 's/[1-9][0-9]*\.\([0-9]\+\)\..*/\1/'` 19449 if test $os_major -lt 2 -o \( $os_major -eq 2 -a $os_minor -lt 4 \); then 19450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Configured for pre-2.4 Linux $os_major.$os_minor" >&5 19451$as_echo "$as_me: WARNING: Configured for pre-2.4 Linux $os_major.$os_minor" >&2;} 19452 os_pre24linux=1 19453 else 19454 os_pre24linux=0 19455 { $as_echo "$as_me:${as_lineno-$LINENO}: Configured for Linux $os_major.$os_minor" >&5 19456$as_echo "$as_me: Configured for Linux $os_major.$os_minor" >&6;} 19457 fi 19458 ;; 19459 *os390) 19460 os_version=`uname -r | sed -e 's/\.//g'` 19461 ;; 19462 *) 19463 os_version=OS_VERSION_IS_NOT_SET 19464 ;; 19465esac 19466 19467echo "${nl}Checking for libraries..." 19468 19469case $host in 19470 *mingw*) 19471 19472 if test "x$LIBS" = "x"; then 19473 test "x$silent" != "xyes" && echo " setting LIBS to \"-lshell32 -ladvapi32 -lws2_32 -lrpcrt4 -lmswsock\"" 19474 LIBS="-lshell32 -ladvapi32 -lws2_32 -lrpcrt4 -lmswsock" 19475 else 19476 apr_addto_bugger="-lshell32 -ladvapi32 -lws2_32 -lrpcrt4 -lmswsock" 19477 for i in $apr_addto_bugger; do 19478 apr_addto_duplicate="0" 19479 for j in $LIBS; do 19480 if test "x$i" = "x$j"; then 19481 apr_addto_duplicate="1" 19482 break 19483 fi 19484 done 19485 if test $apr_addto_duplicate = "0"; then 19486 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 19487 LIBS="$LIBS $i" 19488 fi 19489 done 19490 fi 19491 19492 ac_cv_func_CreateFileMapping=yes 19493 ;; 19494 *) 19495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 19496$as_echo_n "checking for library containing gethostbyname... " >&6; } 19497if ${ac_cv_search_gethostbyname+:} false; then : 19498 $as_echo_n "(cached) " >&6 19499else 19500 ac_func_search_save_LIBS=$LIBS 19501cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19502/* end confdefs.h. */ 19503 19504/* Override any GCC internal prototype to avoid an error. 19505 Use char because int might match the return type of a GCC 19506 builtin and then its argument prototype would still apply. */ 19507#ifdef __cplusplus 19508extern "C" 19509#endif 19510char gethostbyname (); 19511int 19512main () 19513{ 19514return gethostbyname (); 19515 ; 19516 return 0; 19517} 19518_ACEOF 19519for ac_lib in '' nsl; do 19520 if test -z "$ac_lib"; then 19521 ac_res="none required" 19522 else 19523 ac_res=-l$ac_lib 19524 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19525 fi 19526 if ac_fn_c_try_link "$LINENO"; then : 19527 ac_cv_search_gethostbyname=$ac_res 19528fi 19529rm -f core conftest.err conftest.$ac_objext \ 19530 conftest$ac_exeext 19531 if ${ac_cv_search_gethostbyname+:} false; then : 19532 break 19533fi 19534done 19535if ${ac_cv_search_gethostbyname+:} false; then : 19536 19537else 19538 ac_cv_search_gethostbyname=no 19539fi 19540rm conftest.$ac_ext 19541LIBS=$ac_func_search_save_LIBS 19542fi 19543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 19544$as_echo "$ac_cv_search_gethostbyname" >&6; } 19545ac_res=$ac_cv_search_gethostbyname 19546if test "$ac_res" != no; then : 19547 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19548 19549fi 19550 19551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostname" >&5 19552$as_echo_n "checking for library containing gethostname... " >&6; } 19553if ${ac_cv_search_gethostname+:} false; then : 19554 $as_echo_n "(cached) " >&6 19555else 19556 ac_func_search_save_LIBS=$LIBS 19557cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19558/* end confdefs.h. */ 19559 19560/* Override any GCC internal prototype to avoid an error. 19561 Use char because int might match the return type of a GCC 19562 builtin and then its argument prototype would still apply. */ 19563#ifdef __cplusplus 19564extern "C" 19565#endif 19566char gethostname (); 19567int 19568main () 19569{ 19570return gethostname (); 19571 ; 19572 return 0; 19573} 19574_ACEOF 19575for ac_lib in '' nsl; do 19576 if test -z "$ac_lib"; then 19577 ac_res="none required" 19578 else 19579 ac_res=-l$ac_lib 19580 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19581 fi 19582 if ac_fn_c_try_link "$LINENO"; then : 19583 ac_cv_search_gethostname=$ac_res 19584fi 19585rm -f core conftest.err conftest.$ac_objext \ 19586 conftest$ac_exeext 19587 if ${ac_cv_search_gethostname+:} false; then : 19588 break 19589fi 19590done 19591if ${ac_cv_search_gethostname+:} false; then : 19592 19593else 19594 ac_cv_search_gethostname=no 19595fi 19596rm conftest.$ac_ext 19597LIBS=$ac_func_search_save_LIBS 19598fi 19599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostname" >&5 19600$as_echo "$ac_cv_search_gethostname" >&6; } 19601ac_res=$ac_cv_search_gethostname 19602if test "$ac_res" != no; then : 19603 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19604 19605fi 19606 19607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 19608$as_echo_n "checking for library containing socket... " >&6; } 19609if ${ac_cv_search_socket+:} false; then : 19610 $as_echo_n "(cached) " >&6 19611else 19612 ac_func_search_save_LIBS=$LIBS 19613cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19614/* end confdefs.h. */ 19615 19616/* Override any GCC internal prototype to avoid an error. 19617 Use char because int might match the return type of a GCC 19618 builtin and then its argument prototype would still apply. */ 19619#ifdef __cplusplus 19620extern "C" 19621#endif 19622char socket (); 19623int 19624main () 19625{ 19626return socket (); 19627 ; 19628 return 0; 19629} 19630_ACEOF 19631for ac_lib in '' socket; do 19632 if test -z "$ac_lib"; then 19633 ac_res="none required" 19634 else 19635 ac_res=-l$ac_lib 19636 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19637 fi 19638 if ac_fn_c_try_link "$LINENO"; then : 19639 ac_cv_search_socket=$ac_res 19640fi 19641rm -f core conftest.err conftest.$ac_objext \ 19642 conftest$ac_exeext 19643 if ${ac_cv_search_socket+:} false; then : 19644 break 19645fi 19646done 19647if ${ac_cv_search_socket+:} false; then : 19648 19649else 19650 ac_cv_search_socket=no 19651fi 19652rm conftest.$ac_ext 19653LIBS=$ac_func_search_save_LIBS 19654fi 19655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 19656$as_echo "$ac_cv_search_socket" >&6; } 19657ac_res=$ac_cv_search_socket 19658if test "$ac_res" != no; then : 19659 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19660 19661fi 19662 19663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 19664$as_echo_n "checking for library containing crypt... " >&6; } 19665if ${ac_cv_search_crypt+:} false; then : 19666 $as_echo_n "(cached) " >&6 19667else 19668 ac_func_search_save_LIBS=$LIBS 19669cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19670/* end confdefs.h. */ 19671 19672/* Override any GCC internal prototype to avoid an error. 19673 Use char because int might match the return type of a GCC 19674 builtin and then its argument prototype would still apply. */ 19675#ifdef __cplusplus 19676extern "C" 19677#endif 19678char crypt (); 19679int 19680main () 19681{ 19682return crypt (); 19683 ; 19684 return 0; 19685} 19686_ACEOF 19687for ac_lib in '' crypt ufc; do 19688 if test -z "$ac_lib"; then 19689 ac_res="none required" 19690 else 19691 ac_res=-l$ac_lib 19692 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19693 fi 19694 if ac_fn_c_try_link "$LINENO"; then : 19695 ac_cv_search_crypt=$ac_res 19696fi 19697rm -f core conftest.err conftest.$ac_objext \ 19698 conftest$ac_exeext 19699 if ${ac_cv_search_crypt+:} false; then : 19700 break 19701fi 19702done 19703if ${ac_cv_search_crypt+:} false; then : 19704 19705else 19706 ac_cv_search_crypt=no 19707fi 19708rm conftest.$ac_ext 19709LIBS=$ac_func_search_save_LIBS 19710fi 19711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 19712$as_echo "$ac_cv_search_crypt" >&6; } 19713ac_res=$ac_cv_search_crypt 19714if test "$ac_res" != no; then : 19715 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19716 19717fi 19718 19719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ltruerand" >&5 19720$as_echo_n "checking for main in -ltruerand... " >&6; } 19721if ${ac_cv_lib_truerand_main+:} false; then : 19722 $as_echo_n "(cached) " >&6 19723else 19724 ac_check_lib_save_LIBS=$LIBS 19725LIBS="-ltruerand $LIBS" 19726cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19727/* end confdefs.h. */ 19728 19729 19730int 19731main () 19732{ 19733return main (); 19734 ; 19735 return 0; 19736} 19737_ACEOF 19738if ac_fn_c_try_link "$LINENO"; then : 19739 ac_cv_lib_truerand_main=yes 19740else 19741 ac_cv_lib_truerand_main=no 19742fi 19743rm -f core conftest.err conftest.$ac_objext \ 19744 conftest$ac_exeext conftest.$ac_ext 19745LIBS=$ac_check_lib_save_LIBS 19746fi 19747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_truerand_main" >&5 19748$as_echo "$ac_cv_lib_truerand_main" >&6; } 19749if test "x$ac_cv_lib_truerand_main" = xyes; then : 19750 cat >>confdefs.h <<_ACEOF 19751#define HAVE_LIBTRUERAND 1 19752_ACEOF 19753 19754 LIBS="-ltruerand $LIBS" 19755 19756fi 19757 19758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing modf" >&5 19759$as_echo_n "checking for library containing modf... " >&6; } 19760if ${ac_cv_search_modf+:} false; then : 19761 $as_echo_n "(cached) " >&6 19762else 19763 ac_func_search_save_LIBS=$LIBS 19764cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19765/* end confdefs.h. */ 19766 19767/* Override any GCC internal prototype to avoid an error. 19768 Use char because int might match the return type of a GCC 19769 builtin and then its argument prototype would still apply. */ 19770#ifdef __cplusplus 19771extern "C" 19772#endif 19773char modf (); 19774int 19775main () 19776{ 19777return modf (); 19778 ; 19779 return 0; 19780} 19781_ACEOF 19782for ac_lib in '' m; do 19783 if test -z "$ac_lib"; then 19784 ac_res="none required" 19785 else 19786 ac_res=-l$ac_lib 19787 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19788 fi 19789 if ac_fn_c_try_link "$LINENO"; then : 19790 ac_cv_search_modf=$ac_res 19791fi 19792rm -f core conftest.err conftest.$ac_objext \ 19793 conftest$ac_exeext 19794 if ${ac_cv_search_modf+:} false; then : 19795 break 19796fi 19797done 19798if ${ac_cv_search_modf+:} false; then : 19799 19800else 19801 ac_cv_search_modf=no 19802fi 19803rm conftest.$ac_ext 19804LIBS=$ac_func_search_save_LIBS 19805fi 19806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_modf" >&5 19807$as_echo "$ac_cv_search_modf" >&6; } 19808ac_res=$ac_cv_search_modf 19809if test "$ac_res" != no; then : 19810 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19811 19812fi 19813 19814 ;; 19815esac 19816 19817echo "${nl}Checking for Threads..." 19818 19819if test -z "$enable_threads"; then 19820 # Check whether --enable-threads was given. 19821if test "${enable_threads+set}" = set; then : 19822 enableval=$enable_threads; enable_threads=$enableval 19823else 19824 19825 if test "$GCC" = "yes"; then 19826 SAVE_FL="$CPPFLAGS" 19827 CPPFLAGS="$CPPFLAGS -w" 19828 for ac_header in pthread.h 19829do : 19830 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 19831if test "x$ac_cv_header_pthread_h" = xyes; then : 19832 cat >>confdefs.h <<_ACEOF 19833#define HAVE_PTHREAD_H 1 19834_ACEOF 19835 enable_threads="pthread" 19836else 19837 enable_threads="no" 19838fi 19839 19840done 19841 19842 CPPFLAGS="$SAVE_FL" 19843 else 19844 for ac_header in pthread.h 19845do : 19846 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 19847if test "x$ac_cv_header_pthread_h" = xyes; then : 19848 cat >>confdefs.h <<_ACEOF 19849#define HAVE_PTHREAD_H 1 19850_ACEOF 19851 enable_threads="pthread" 19852else 19853 enable_threads="no" 19854fi 19855 19856done 19857 19858 fi 19859 19860fi 19861 19862fi 19863 19864if test "$enable_threads" = "no"; then 19865 threads="0" 19866 pthreadh="0" 19867 pthreadser="0" 19868else 19869 if test "$enable_threads" = "pthread"; then 19870# We have specified pthreads for our threading library, just make sure 19871# that we have everything we need 19872 19873 apr_pthsv_CFLAGS="$CFLAGS" 19874 apr_pthsv_LIBS="$LIBS" 19875 19876 19877 19878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS needed for pthreads" >&5 19879$as_echo_n "checking for CFLAGS needed for pthreads... " >&6; } 19880if ${apr_cv_pthreads_cflags+:} false; then : 19881 $as_echo_n "(cached) " >&6 19882else 19883 apr_ptc_cflags=$CFLAGS 19884 for flag in none -kthread -pthread -pthreads -mt -mthreads -Kthread -threads; do 19885 CFLAGS=$apr_ptc_cflags 19886 test "x$flag" != "xnone" && CFLAGS="$CFLAGS $flag" 19887 19888if test "$cross_compiling" = yes; then : 19889 apr_p_t_r=no 19890else 19891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19892/* end confdefs.h. */ 19893 19894#include <pthread.h> 19895#include <stddef.h> 19896 19897void *thread_routine(void *data) { 19898 return data; 19899} 19900 19901int main() { 19902 pthread_t thd; 19903 pthread_mutexattr_t mattr; 19904 pthread_once_t once_init = PTHREAD_ONCE_INIT; 19905 int data = 1; 19906 pthread_mutexattr_init(&mattr); 19907 return pthread_create(&thd, NULL, thread_routine, &data); 19908} 19909_ACEOF 19910if ac_fn_c_try_run "$LINENO"; then : 19911 apr_p_t_r=yes 19912else 19913 apr_p_t_r=no 19914fi 19915rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19916 conftest.$ac_objext conftest.beam conftest.$ac_ext 19917fi 19918 19919 19920if test $apr_p_t_r = yes; then 19921 19922 apr_cv_pthreads_cflags="$flag" 19923 break 19924 19925fi 19926 19927 19928 done 19929 CFLAGS=$apr_ptc_cflags 19930 19931fi 19932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_cflags" >&5 19933$as_echo "$apr_cv_pthreads_cflags" >&6; } 19934 19935if test -n "$apr_cv_pthreads_cflags"; then 19936 pthreads_working=yes 19937 if test "x$apr_cv_pthreads_cflags" != "xnone"; then 19938 19939 if test "x$CFLAGS" = "x"; then 19940 test "x$silent" != "xyes" && echo " setting CFLAGS to \"$apr_cv_pthreads_cflags\"" 19941 CFLAGS="$apr_cv_pthreads_cflags" 19942 else 19943 apr_addto_bugger="$apr_cv_pthreads_cflags" 19944 for i in $apr_addto_bugger; do 19945 apr_addto_duplicate="0" 19946 for j in $CFLAGS; do 19947 if test "x$i" = "x$j"; then 19948 apr_addto_duplicate="1" 19949 break 19950 fi 19951 done 19952 if test $apr_addto_duplicate = "0"; then 19953 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS" 19954 CFLAGS="$CFLAGS $i" 19955 fi 19956 done 19957 fi 19958 19959 fi 19960fi 19961 19962# The CFLAGS may or may not be sufficient to ensure that libapr 19963# depends on the pthreads library: some versions of libtool 19964# drop -pthread when passed on the link line; some versions of 19965# gcc ignore -pthread when linking a shared object. So always 19966# try and add the relevant library to LIBS too. 19967 19968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS needed for pthreads" >&5 19969$as_echo_n "checking for LIBS needed for pthreads... " >&6; } 19970if ${apr_cv_pthreads_lib+:} false; then : 19971 $as_echo_n "(cached) " >&6 19972else 19973 19974 apr_ptc_libs=$LIBS 19975 for lib in -lpthread -lpthreads -lc_r; do 19976 LIBS="$apr_ptc_libs $lib" 19977 19978if test "$cross_compiling" = yes; then : 19979 apr_p_t_r=no 19980else 19981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19982/* end confdefs.h. */ 19983 19984#include <pthread.h> 19985#include <stddef.h> 19986 19987void *thread_routine(void *data) { 19988 return data; 19989} 19990 19991int main() { 19992 pthread_t thd; 19993 pthread_mutexattr_t mattr; 19994 pthread_once_t once_init = PTHREAD_ONCE_INIT; 19995 int data = 1; 19996 pthread_mutexattr_init(&mattr); 19997 return pthread_create(&thd, NULL, thread_routine, &data); 19998} 19999_ACEOF 20000if ac_fn_c_try_run "$LINENO"; then : 20001 apr_p_t_r=yes 20002else 20003 apr_p_t_r=no 20004fi 20005rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20006 conftest.$ac_objext conftest.beam conftest.$ac_ext 20007fi 20008 20009 20010if test $apr_p_t_r = yes; then 20011 20012 apr_cv_pthreads_lib=$lib 20013 break 20014 20015fi 20016 20017 20018 done 20019 LIBS=$apr_ptc_libs 20020 20021fi 20022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_lib" >&5 20023$as_echo "$apr_cv_pthreads_lib" >&6; } 20024 20025if test -n "$apr_cv_pthreads_lib"; then 20026 pthreads_working=yes 20027 20028 if test "x$LIBS" = "x"; then 20029 test "x$silent" != "xyes" && echo " setting LIBS to \"$apr_cv_pthreads_lib\"" 20030 LIBS="$apr_cv_pthreads_lib" 20031 else 20032 apr_addto_bugger="$apr_cv_pthreads_lib" 20033 for i in $apr_addto_bugger; do 20034 apr_addto_duplicate="0" 20035 for j in $LIBS; do 20036 if test "x$i" = "x$j"; then 20037 apr_addto_duplicate="1" 20038 break 20039 fi 20040 done 20041 if test $apr_addto_duplicate = "0"; then 20042 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 20043 LIBS="$LIBS $i" 20044 fi 20045 done 20046 fi 20047 20048fi 20049 20050if test "$pthreads_working" = "yes"; then 20051 threads_result="POSIX Threads found" 20052else 20053 threads_result="POSIX Threads not found" 20054fi 20055 20056 20057 if test "$GCC" = "yes"; then 20058 SAVE_FL="$CPPFLAGS" 20059 CPPFLAGS="$CPPFLAGS -w" 20060 for ac_header in pthread.h 20061do : 20062 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 20063if test "x$ac_cv_header_pthread_h" = xyes; then : 20064 cat >>confdefs.h <<_ACEOF 20065#define HAVE_PTHREAD_H 1 20066_ACEOF 20067 20068 threads="1" 20069 pthreadh="1" 20070 pthreadser="1" 20071else 20072 20073 threads="0" 20074 pthreadh="0" 20075 pthreadser="0" 20076 20077 CFLAGS="$apr_pthsv_CFLAGS" 20078 LIBS="$apr_pthsv_LIBS" 20079 20080fi 20081 20082done 20083 20084 CPPFLAGS="$SAVE_FL" 20085 else 20086 for ac_header in pthread.h 20087do : 20088 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 20089if test "x$ac_cv_header_pthread_h" = xyes; then : 20090 cat >>confdefs.h <<_ACEOF 20091#define HAVE_PTHREAD_H 1 20092_ACEOF 20093 20094 threads="1" 20095 pthreadh="1" 20096 pthreadser="1" 20097else 20098 20099 threads="0" 20100 pthreadh="0" 20101 pthreadser="0" 20102 20103 CFLAGS="$apr_pthsv_CFLAGS" 20104 LIBS="$apr_pthsv_LIBS" 20105 20106fi 20107 20108done 20109 20110 fi 20111 20112 elif test "$enable_threads" = "system_threads"; then 20113 threads="1" 20114 pthreadh="0" 20115 pthreadser="0" 20116 else 20117# We basically specified that we wanted threads, but not how to implement 20118# them. In this case, just look for pthreads. In the future, we can check 20119# for other threading libraries as well. 20120 20121 apr_pthsv_CFLAGS="$CFLAGS" 20122 apr_pthsv_LIBS="$LIBS" 20123 20124 20125 20126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS needed for pthreads" >&5 20127$as_echo_n "checking for CFLAGS needed for pthreads... " >&6; } 20128if ${apr_cv_pthreads_cflags+:} false; then : 20129 $as_echo_n "(cached) " >&6 20130else 20131 apr_ptc_cflags=$CFLAGS 20132 for flag in none -kthread -pthread -pthreads -mt -mthreads -Kthread -threads; do 20133 CFLAGS=$apr_ptc_cflags 20134 test "x$flag" != "xnone" && CFLAGS="$CFLAGS $flag" 20135 20136if test "$cross_compiling" = yes; then : 20137 apr_p_t_r=no 20138else 20139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20140/* end confdefs.h. */ 20141 20142#include <pthread.h> 20143#include <stddef.h> 20144 20145void *thread_routine(void *data) { 20146 return data; 20147} 20148 20149int main() { 20150 pthread_t thd; 20151 pthread_mutexattr_t mattr; 20152 pthread_once_t once_init = PTHREAD_ONCE_INIT; 20153 int data = 1; 20154 pthread_mutexattr_init(&mattr); 20155 return pthread_create(&thd, NULL, thread_routine, &data); 20156} 20157_ACEOF 20158if ac_fn_c_try_run "$LINENO"; then : 20159 apr_p_t_r=yes 20160else 20161 apr_p_t_r=no 20162fi 20163rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20164 conftest.$ac_objext conftest.beam conftest.$ac_ext 20165fi 20166 20167 20168if test $apr_p_t_r = yes; then 20169 20170 apr_cv_pthreads_cflags="$flag" 20171 break 20172 20173fi 20174 20175 20176 done 20177 CFLAGS=$apr_ptc_cflags 20178 20179fi 20180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_cflags" >&5 20181$as_echo "$apr_cv_pthreads_cflags" >&6; } 20182 20183if test -n "$apr_cv_pthreads_cflags"; then 20184 pthreads_working=yes 20185 if test "x$apr_cv_pthreads_cflags" != "xnone"; then 20186 20187 if test "x$CFLAGS" = "x"; then 20188 test "x$silent" != "xyes" && echo " setting CFLAGS to \"$apr_cv_pthreads_cflags\"" 20189 CFLAGS="$apr_cv_pthreads_cflags" 20190 else 20191 apr_addto_bugger="$apr_cv_pthreads_cflags" 20192 for i in $apr_addto_bugger; do 20193 apr_addto_duplicate="0" 20194 for j in $CFLAGS; do 20195 if test "x$i" = "x$j"; then 20196 apr_addto_duplicate="1" 20197 break 20198 fi 20199 done 20200 if test $apr_addto_duplicate = "0"; then 20201 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS" 20202 CFLAGS="$CFLAGS $i" 20203 fi 20204 done 20205 fi 20206 20207 fi 20208fi 20209 20210# The CFLAGS may or may not be sufficient to ensure that libapr 20211# depends on the pthreads library: some versions of libtool 20212# drop -pthread when passed on the link line; some versions of 20213# gcc ignore -pthread when linking a shared object. So always 20214# try and add the relevant library to LIBS too. 20215 20216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS needed for pthreads" >&5 20217$as_echo_n "checking for LIBS needed for pthreads... " >&6; } 20218if ${apr_cv_pthreads_lib+:} false; then : 20219 $as_echo_n "(cached) " >&6 20220else 20221 20222 apr_ptc_libs=$LIBS 20223 for lib in -lpthread -lpthreads -lc_r; do 20224 LIBS="$apr_ptc_libs $lib" 20225 20226if test "$cross_compiling" = yes; then : 20227 apr_p_t_r=no 20228else 20229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20230/* end confdefs.h. */ 20231 20232#include <pthread.h> 20233#include <stddef.h> 20234 20235void *thread_routine(void *data) { 20236 return data; 20237} 20238 20239int main() { 20240 pthread_t thd; 20241 pthread_mutexattr_t mattr; 20242 pthread_once_t once_init = PTHREAD_ONCE_INIT; 20243 int data = 1; 20244 pthread_mutexattr_init(&mattr); 20245 return pthread_create(&thd, NULL, thread_routine, &data); 20246} 20247_ACEOF 20248if ac_fn_c_try_run "$LINENO"; then : 20249 apr_p_t_r=yes 20250else 20251 apr_p_t_r=no 20252fi 20253rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20254 conftest.$ac_objext conftest.beam conftest.$ac_ext 20255fi 20256 20257 20258if test $apr_p_t_r = yes; then 20259 20260 apr_cv_pthreads_lib=$lib 20261 break 20262 20263fi 20264 20265 20266 done 20267 LIBS=$apr_ptc_libs 20268 20269fi 20270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_pthreads_lib" >&5 20271$as_echo "$apr_cv_pthreads_lib" >&6; } 20272 20273if test -n "$apr_cv_pthreads_lib"; then 20274 pthreads_working=yes 20275 20276 if test "x$LIBS" = "x"; then 20277 test "x$silent" != "xyes" && echo " setting LIBS to \"$apr_cv_pthreads_lib\"" 20278 LIBS="$apr_cv_pthreads_lib" 20279 else 20280 apr_addto_bugger="$apr_cv_pthreads_lib" 20281 for i in $apr_addto_bugger; do 20282 apr_addto_duplicate="0" 20283 for j in $LIBS; do 20284 if test "x$i" = "x$j"; then 20285 apr_addto_duplicate="1" 20286 break 20287 fi 20288 done 20289 if test $apr_addto_duplicate = "0"; then 20290 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 20291 LIBS="$LIBS $i" 20292 fi 20293 done 20294 fi 20295 20296fi 20297 20298if test "$pthreads_working" = "yes"; then 20299 threads_result="POSIX Threads found" 20300else 20301 threads_result="POSIX Threads not found" 20302fi 20303 20304 20305 if test "$GCC" = "yes"; then 20306 SAVE_FL="$CPPFLAGS" 20307 CPPFLAGS="$CPPFLAGS -w" 20308 for ac_header in pthread.h 20309do : 20310 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 20311if test "x$ac_cv_header_pthread_h" = xyes; then : 20312 cat >>confdefs.h <<_ACEOF 20313#define HAVE_PTHREAD_H 1 20314_ACEOF 20315 20316 threads="1" 20317 pthreadh="1" 20318 pthreadser="1" 20319else 20320 20321 threads="0" 20322 pthreadser="0" 20323 pthreadh="0" 20324 20325 CFLAGS="$apr_pthsv_CFLAGS" 20326 LIBS="$apr_pthsv_LIBS" 20327 20328fi 20329 20330done 20331 20332 CPPFLAGS="$SAVE_FL" 20333 else 20334 for ac_header in pthread.h 20335do : 20336 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 20337if test "x$ac_cv_header_pthread_h" = xyes; then : 20338 cat >>confdefs.h <<_ACEOF 20339#define HAVE_PTHREAD_H 1 20340_ACEOF 20341 20342 threads="1" 20343 pthreadh="1" 20344 pthreadser="1" 20345else 20346 20347 threads="0" 20348 pthreadser="0" 20349 pthreadh="0" 20350 20351 CFLAGS="$apr_pthsv_CFLAGS" 20352 LIBS="$apr_pthsv_LIBS" 20353 20354fi 20355 20356done 20357 20358 fi 20359 20360 fi 20361 if test "$pthreadh" = "1"; then 20362 20363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_getspecific takes two arguments" >&5 20364$as_echo_n "checking whether pthread_getspecific takes two arguments... " >&6; } 20365if ${ac_cv_pthread_getspecific_two_args+:} false; then : 20366 $as_echo_n "(cached) " >&6 20367else 20368 20369cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20370/* end confdefs.h. */ 20371 20372#include <pthread.h> 20373 20374int 20375main () 20376{ 20377 20378pthread_key_t key; 20379void *tmp; 20380pthread_getspecific(key,&tmp); 20381 20382 ; 20383 return 0; 20384} 20385_ACEOF 20386if ac_fn_c_try_compile "$LINENO"; then : 20387 20388 ac_cv_pthread_getspecific_two_args=yes 20389 20390else 20391 20392 ac_cv_pthread_getspecific_two_args=no 20393 20394fi 20395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20396 20397fi 20398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_getspecific_two_args" >&5 20399$as_echo "$ac_cv_pthread_getspecific_two_args" >&6; } 20400 20401if test "$ac_cv_pthread_getspecific_two_args" = "yes"; then 20402 20403$as_echo "#define PTHREAD_GETSPECIFIC_TAKES_TWO_ARGS 1" >>confdefs.h 20404 20405fi 20406 20407 20408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_attr_getdetachstate takes one argument" >&5 20409$as_echo_n "checking whether pthread_attr_getdetachstate takes one argument... " >&6; } 20410if ${ac_cv_pthread_attr_getdetachstate_one_arg+:} false; then : 20411 $as_echo_n "(cached) " >&6 20412else 20413 20414cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20415/* end confdefs.h. */ 20416 20417#include <pthread.h> 20418 20419int 20420main () 20421{ 20422 20423pthread_attr_t *attr; 20424pthread_attr_getdetachstate(attr); 20425 20426 ; 20427 return 0; 20428} 20429_ACEOF 20430if ac_fn_c_try_compile "$LINENO"; then : 20431 20432 ac_cv_pthread_attr_getdetachstate_one_arg=yes 20433 20434else 20435 20436 ac_cv_pthread_attr_getdetachstate_one_arg=no 20437 20438fi 20439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20440 20441fi 20442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_attr_getdetachstate_one_arg" >&5 20443$as_echo "$ac_cv_pthread_attr_getdetachstate_one_arg" >&6; } 20444 20445if test "$ac_cv_pthread_attr_getdetachstate_one_arg" = "yes"; then 20446 20447$as_echo "#define PTHREAD_ATTR_GETDETACHSTATE_TAKES_ONE_ARG 1" >>confdefs.h 20448 20449fi 20450 20451 20452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutex support" >&5 20453$as_echo_n "checking for recursive mutex support... " >&6; } 20454if ${apr_cv_mutex_recursive+:} false; then : 20455 $as_echo_n "(cached) " >&6 20456else 20457 if test "$cross_compiling" = yes; then : 20458 apr_cv_mutex_recursive=no 20459else 20460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20461/* end confdefs.h. */ 20462#include <sys/types.h> 20463#include <pthread.h> 20464#include <stdlib.h> 20465 20466int main() { 20467 pthread_mutexattr_t attr; 20468 pthread_mutex_t m; 20469 20470 exit (pthread_mutexattr_init(&attr) 20471 || pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE) 20472 || pthread_mutex_init(&m, &attr)); 20473} 20474_ACEOF 20475if ac_fn_c_try_run "$LINENO"; then : 20476 apr_cv_mutex_recursive=yes 20477else 20478 apr_cv_mutex_recursive=no 20479fi 20480rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20481 conftest.$ac_objext conftest.beam conftest.$ac_ext 20482fi 20483 20484fi 20485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_mutex_recursive" >&5 20486$as_echo "$apr_cv_mutex_recursive" >&6; } 20487 20488if test "$apr_cv_mutex_recursive" = "yes"; then 20489 20490$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h 20491 20492fi 20493 20494 for ac_func in pthread_key_delete pthread_rwlock_init \ 20495 pthread_attr_setguardsize pthread_yield 20496do : 20497 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20498ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20499if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20500 cat >>confdefs.h <<_ACEOF 20501#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20502_ACEOF 20503 20504fi 20505done 20506 20507 20508 if test "$ac_cv_func_pthread_rwlock_init" = "yes"; then 20509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_t" >&5 20510$as_echo_n "checking for pthread_rwlock_t... " >&6; } 20511if ${apr_cv_type_rwlock_t+:} false; then : 20512 $as_echo_n "(cached) " >&6 20513else 20514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20515/* end confdefs.h. */ 20516#include <sys/types.h> 20517#include <pthread.h> 20518int 20519main () 20520{ 20521pthread_rwlock_t *rwlock; 20522 ; 20523 return 0; 20524} 20525_ACEOF 20526if ac_fn_c_try_compile "$LINENO"; then : 20527 apr_cv_type_rwlock_t=yes 20528else 20529 apr_cv_type_rwlock_t=no 20530fi 20531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20532fi 20533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_type_rwlock_t" >&5 20534$as_echo "$apr_cv_type_rwlock_t" >&6; } 20535 if test "$apr_cv_type_rwlock_t" = "yes"; then 20536 20537$as_echo "#define HAVE_PTHREAD_RWLOCKS 1" >>confdefs.h 20538 20539 fi 20540 fi 20541 20542 if test "$ac_cv_func_pthread_yield" = "no"; then 20543 for ac_header in sched.h 20544do : 20545 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default" 20546if test "x$ac_cv_header_sched_h" = xyes; then : 20547 cat >>confdefs.h <<_ACEOF 20548#define HAVE_SCHED_H 1 20549_ACEOF 20550 20551fi 20552 20553done 20554 20555 for ac_func in sched_yield 20556do : 20557 ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield" 20558if test "x$ac_cv_func_sched_yield" = xyes; then : 20559 cat >>confdefs.h <<_ACEOF 20560#define HAVE_SCHED_YIELD 1 20561_ACEOF 20562 20563fi 20564done 20565 20566 fi 20567 fi 20568fi 20569 20570ac_cv_define_READDIR_IS_THREAD_SAFE=yes 20571ac_cv_define_GETHOSTBYNAME_IS_THREAD_SAFE=no 20572ac_cv_define_GETHOSTBYADDR_IS_THREAD_SAFE=no 20573ac_cv_define_GETSERVBYNAME_IS_THREAD_SAFE=no 20574if test "$threads" = "1"; then 20575 echo "APR will use threads" 20576 20577$as_echo "#define READDIR_IS_THREAD_SAFE 1" >>confdefs.h 20578 20579 if test "x$apr_gethostbyname_is_thread_safe" = "x"; then 20580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lc_r" >&5 20581$as_echo_n "checking for gethostbyname in -lc_r... " >&6; } 20582if ${ac_cv_lib_c_r_gethostbyname+:} false; then : 20583 $as_echo_n "(cached) " >&6 20584else 20585 ac_check_lib_save_LIBS=$LIBS 20586LIBS="-lc_r $LIBS" 20587cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20588/* end confdefs.h. */ 20589 20590/* Override any GCC internal prototype to avoid an error. 20591 Use char because int might match the return type of a GCC 20592 builtin and then its argument prototype would still apply. */ 20593#ifdef __cplusplus 20594extern "C" 20595#endif 20596char gethostbyname (); 20597int 20598main () 20599{ 20600return gethostbyname (); 20601 ; 20602 return 0; 20603} 20604_ACEOF 20605if ac_fn_c_try_link "$LINENO"; then : 20606 ac_cv_lib_c_r_gethostbyname=yes 20607else 20608 ac_cv_lib_c_r_gethostbyname=no 20609fi 20610rm -f core conftest.err conftest.$ac_objext \ 20611 conftest$ac_exeext conftest.$ac_ext 20612LIBS=$ac_check_lib_save_LIBS 20613fi 20614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_gethostbyname" >&5 20615$as_echo "$ac_cv_lib_c_r_gethostbyname" >&6; } 20616if test "x$ac_cv_lib_c_r_gethostbyname" = xyes; then : 20617 apr_gethostbyname_is_thread_safe=yes 20618fi 20619 20620 fi 20621 if test "$apr_gethostbyname_is_thread_safe" = "yes"; then 20622 20623$as_echo "#define GETHOSTBYNAME_IS_THREAD_SAFE 1" >>confdefs.h 20624 20625 fi 20626 if test "x$apr_gethostbyaddr_is_thread_safe" = "x"; then 20627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lc_r" >&5 20628$as_echo_n "checking for gethostbyaddr in -lc_r... " >&6; } 20629if ${ac_cv_lib_c_r_gethostbyaddr+:} false; then : 20630 $as_echo_n "(cached) " >&6 20631else 20632 ac_check_lib_save_LIBS=$LIBS 20633LIBS="-lc_r $LIBS" 20634cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20635/* end confdefs.h. */ 20636 20637/* Override any GCC internal prototype to avoid an error. 20638 Use char because int might match the return type of a GCC 20639 builtin and then its argument prototype would still apply. */ 20640#ifdef __cplusplus 20641extern "C" 20642#endif 20643char gethostbyaddr (); 20644int 20645main () 20646{ 20647return gethostbyaddr (); 20648 ; 20649 return 0; 20650} 20651_ACEOF 20652if ac_fn_c_try_link "$LINENO"; then : 20653 ac_cv_lib_c_r_gethostbyaddr=yes 20654else 20655 ac_cv_lib_c_r_gethostbyaddr=no 20656fi 20657rm -f core conftest.err conftest.$ac_objext \ 20658 conftest$ac_exeext conftest.$ac_ext 20659LIBS=$ac_check_lib_save_LIBS 20660fi 20661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_gethostbyaddr" >&5 20662$as_echo "$ac_cv_lib_c_r_gethostbyaddr" >&6; } 20663if test "x$ac_cv_lib_c_r_gethostbyaddr" = xyes; then : 20664 apr_gethostbyaddr_is_thread_safe=yes 20665fi 20666 20667 fi 20668 if test "$apr_gethostbyaddr_is_thread_safe" = "yes"; then 20669 20670$as_echo "#define GETHOSTBYADDR_IS_THREAD_SAFE 1" >>confdefs.h 20671 20672 fi 20673 if test "x$apr_getservbyname_is_thread_safe" = "x"; then 20674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getservbyname in -lc_r" >&5 20675$as_echo_n "checking for getservbyname in -lc_r... " >&6; } 20676if ${ac_cv_lib_c_r_getservbyname+:} false; then : 20677 $as_echo_n "(cached) " >&6 20678else 20679 ac_check_lib_save_LIBS=$LIBS 20680LIBS="-lc_r $LIBS" 20681cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20682/* end confdefs.h. */ 20683 20684/* Override any GCC internal prototype to avoid an error. 20685 Use char because int might match the return type of a GCC 20686 builtin and then its argument prototype would still apply. */ 20687#ifdef __cplusplus 20688extern "C" 20689#endif 20690char getservbyname (); 20691int 20692main () 20693{ 20694return getservbyname (); 20695 ; 20696 return 0; 20697} 20698_ACEOF 20699if ac_fn_c_try_link "$LINENO"; then : 20700 ac_cv_lib_c_r_getservbyname=yes 20701else 20702 ac_cv_lib_c_r_getservbyname=no 20703fi 20704rm -f core conftest.err conftest.$ac_objext \ 20705 conftest$ac_exeext conftest.$ac_ext 20706LIBS=$ac_check_lib_save_LIBS 20707fi 20708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_getservbyname" >&5 20709$as_echo "$ac_cv_lib_c_r_getservbyname" >&6; } 20710if test "x$ac_cv_lib_c_r_getservbyname" = xyes; then : 20711 apr_getservbyname_is_thread_safe=yes 20712fi 20713 20714 fi 20715 if test "$apr_getservbyname_is_thread_safe" = "yes"; then 20716 20717$as_echo "#define GETSERVBYNAME_IS_THREAD_SAFE 1" >>confdefs.h 20718 20719 fi 20720 for ac_func in gethostbyname_r gethostbyaddr_r getservbyname_r 20721do : 20722 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20723ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20724if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20725 cat >>confdefs.h <<_ACEOF 20726#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20727_ACEOF 20728 20729fi 20730done 20731 20732else 20733 echo "APR will be non-threaded" 20734fi 20735 20736 20737# Check whether --with-efence was given. 20738if test "${with_efence+set}" = set; then : 20739 withval=$with_efence; apr_efence_dir="$withval" 20740 if test "$apr_efence_dir" != "yes"; then 20741 20742 if test "x$LDFLAGS" = "x"; then 20743 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-L$apr_efence_dir/lib\"" 20744 LDFLAGS="-L$apr_efence_dir/lib" 20745 else 20746 apr_addto_bugger="-L$apr_efence_dir/lib" 20747 for i in $apr_addto_bugger; do 20748 apr_addto_duplicate="0" 20749 for j in $LDFLAGS; do 20750 if test "x$i" = "x$j"; then 20751 apr_addto_duplicate="1" 20752 break 20753 fi 20754 done 20755 if test $apr_addto_duplicate = "0"; then 20756 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 20757 LDFLAGS="$LDFLAGS $i" 20758 fi 20759 done 20760 fi 20761 20762 if test "x$apr_platform_runtime_link_flag" != "x"; then 20763 20764 if test "x$LDFLAGS" = "x"; then 20765 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$apr_platform_runtime_link_flag$apr_efence_dir/lib\"" 20766 LDFLAGS="$apr_platform_runtime_link_flag$apr_efence_dir/lib" 20767 else 20768 apr_addto_bugger="$apr_platform_runtime_link_flag$apr_efence_dir/lib" 20769 for i in $apr_addto_bugger; do 20770 apr_addto_duplicate="0" 20771 for j in $LDFLAGS; do 20772 if test "x$i" = "x$j"; then 20773 apr_addto_duplicate="1" 20774 break 20775 fi 20776 done 20777 if test $apr_addto_duplicate = "0"; then 20778 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 20779 LDFLAGS="$LDFLAGS $i" 20780 fi 20781 done 20782 fi 20783 20784 fi 20785 fi 20786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -lefence" >&5 20787$as_echo_n "checking for malloc in -lefence... " >&6; } 20788if ${ac_cv_lib_efence_malloc+:} false; then : 20789 $as_echo_n "(cached) " >&6 20790else 20791 ac_check_lib_save_LIBS=$LIBS 20792LIBS="-lefence $LIBS" 20793cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20794/* end confdefs.h. */ 20795 20796/* Override any GCC internal prototype to avoid an error. 20797 Use char because int might match the return type of a GCC 20798 builtin and then its argument prototype would still apply. */ 20799#ifdef __cplusplus 20800extern "C" 20801#endif 20802char malloc (); 20803int 20804main () 20805{ 20806return malloc (); 20807 ; 20808 return 0; 20809} 20810_ACEOF 20811if ac_fn_c_try_link "$LINENO"; then : 20812 ac_cv_lib_efence_malloc=yes 20813else 20814 ac_cv_lib_efence_malloc=no 20815fi 20816rm -f core conftest.err conftest.$ac_objext \ 20817 conftest$ac_exeext conftest.$ac_ext 20818LIBS=$ac_check_lib_save_LIBS 20819fi 20820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_malloc" >&5 20821$as_echo "$ac_cv_lib_efence_malloc" >&6; } 20822if test "x$ac_cv_lib_efence_malloc" = xyes; then : 20823 20824 if test "x$LIBS" = "x"; then 20825 test "x$silent" != "xyes" && echo " setting LIBS to \"-lefence\"" 20826 LIBS="-lefence" 20827 else 20828 apr_addto_bugger="-lefence" 20829 for i in $apr_addto_bugger; do 20830 apr_addto_duplicate="0" 20831 for j in $LIBS; do 20832 if test "x$i" = "x$j"; then 20833 apr_addto_duplicate="1" 20834 break 20835 fi 20836 done 20837 if test $apr_addto_duplicate = "0"; then 20838 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 20839 LIBS="$LIBS $i" 20840 fi 20841 done 20842 fi 20843 20844else 20845 as_fn_error $? "Electric Fence requested but not detected" "$LINENO" 5 20846fi 20847 20848 20849fi 20850 20851 20852 20853# Check whether --with-valgrind was given. 20854if test "${with_valgrind+set}" = set; then : 20855 withval=$with_valgrind; if test "$withval" != no; then 20856 if test "$withval" = yes; then 20857 withval=/usr/include/valgrind 20858 fi 20859 20860 if test "x$CPPFLAGS" = "x"; then 20861 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-I$withval\"" 20862 CPPFLAGS="-I$withval" 20863 else 20864 apr_addto_bugger="-I$withval" 20865 for i in $apr_addto_bugger; do 20866 apr_addto_duplicate="0" 20867 for j in $CPPFLAGS; do 20868 if test "x$i" = "x$j"; then 20869 apr_addto_duplicate="1" 20870 break 20871 fi 20872 done 20873 if test $apr_addto_duplicate = "0"; then 20874 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 20875 CPPFLAGS="$CPPFLAGS $i" 20876 fi 20877 done 20878 fi 20879 20880 for ac_header in valgrind.h memcheck.h 20881do : 20882 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20883ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 20884if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20885 cat >>confdefs.h <<_ACEOF 20886#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20887_ACEOF 20888 20889fi 20890 20891done 20892 20893 ac_rc=yes 20894for ac_spec in header:valgrind.h header:memcheck.h; do 20895 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` 20896 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` 20897 case $ac_type in 20898 header ) 20899 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 20900 ac_var="ac_cv_header_$ac_item" 20901 ;; 20902 file ) 20903 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 20904 ac_var="ac_cv_file_$ac_item" 20905 ;; 20906 func ) ac_var="ac_cv_func_$ac_item" ;; 20907 struct ) ac_var="ac_cv_struct_$ac_item" ;; 20908 define ) ac_var="ac_cv_define_$ac_item" ;; 20909 custom ) ac_var="$ac_item" ;; 20910 esac 20911 eval "ac_val=\$$ac_var" 20912 if test ".$ac_val" != .yes; then 20913 ac_rc=no 20914 break 20915 fi 20916done 20917if test ".$ac_rc" = .yes; then 20918 : 20919 20920$as_echo "#define HAVE_VALGRIND 1" >>confdefs.h 20921 20922else 20923 : 20924 as_fn_error $? "valgrind headers not found" "$LINENO" 5 20925 20926fi 20927 20928 fi 20929 20930fi 20931 20932 20933for ac_func in sigsuspend 20934do : 20935 ac_fn_c_check_func "$LINENO" "sigsuspend" "ac_cv_func_sigsuspend" 20936if test "x$ac_cv_func_sigsuspend" = xyes; then : 20937 cat >>confdefs.h <<_ACEOF 20938#define HAVE_SIGSUSPEND 1 20939_ACEOF 20940 have_sigsuspend="1" 20941else 20942 have_sigsuspend="0" 20943fi 20944done 20945 20946for ac_func in sigwait 20947do : 20948 ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait" 20949if test "x$ac_cv_func_sigwait" = xyes; then : 20950 cat >>confdefs.h <<_ACEOF 20951#define HAVE_SIGWAIT 1 20952_ACEOF 20953 have_sigwait="1" 20954else 20955 have_sigwait="0" 20956fi 20957done 20958 20959case $host in 20960 *alpha*-dec-osf* ) 20961 have_sigwait="1" 20962 ;; 20963esac 20964 20965 20966 20967 20968 20969for ac_func in poll kqueue port_create 20970do : 20971 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20972ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20973if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20974 cat >>confdefs.h <<_ACEOF 20975#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20976_ACEOF 20977 20978fi 20979done 20980 20981 20982# Check for the Linux epoll interface; epoll* may be available in libc 20983# but return ENOSYS on a pre-2.6 kernel, so do a run-time check. 20984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support" >&5 20985$as_echo_n "checking for epoll support... " >&6; } 20986if ${apr_cv_epoll+:} false; then : 20987 $as_echo_n "(cached) " >&6 20988else 20989 if test "$cross_compiling" = yes; then : 20990 apr_cv_epoll=no 20991else 20992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20993/* end confdefs.h. */ 20994 20995#include <sys/epoll.h> 20996#include <unistd.h> 20997 20998int main() 20999{ 21000 return epoll_create(5) == -1; 21001} 21002_ACEOF 21003if ac_fn_c_try_run "$LINENO"; then : 21004 apr_cv_epoll=yes 21005else 21006 apr_cv_epoll=no 21007fi 21008rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21009 conftest.$ac_objext conftest.beam conftest.$ac_ext 21010fi 21011 21012fi 21013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_epoll" >&5 21014$as_echo "$apr_cv_epoll" >&6; } 21015 21016if test "$apr_cv_epoll" = "yes"; then 21017 21018$as_echo "#define HAVE_EPOLL 1" >>confdefs.h 21019 21020fi 21021 21022# test for epoll_create1 21023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1 support" >&5 21024$as_echo_n "checking for epoll_create1 support... " >&6; } 21025if ${apr_cv_epoll_create1+:} false; then : 21026 $as_echo_n "(cached) " >&6 21027else 21028 if test "$cross_compiling" = yes; then : 21029 apr_cv_epoll_create1=no 21030else 21031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21032/* end confdefs.h. */ 21033 21034#include <sys/epoll.h> 21035#include <unistd.h> 21036 21037int main() 21038{ 21039 return epoll_create1(0) == -1; 21040} 21041_ACEOF 21042if ac_fn_c_try_run "$LINENO"; then : 21043 apr_cv_epoll_create1=yes 21044else 21045 apr_cv_epoll_create1=no 21046fi 21047rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21048 conftest.$ac_objext conftest.beam conftest.$ac_ext 21049fi 21050 21051fi 21052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_epoll_create1" >&5 21053$as_echo "$apr_cv_epoll_create1" >&6; } 21054 21055if test "$apr_cv_epoll_create1" = "yes"; then 21056 21057$as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h 21058 21059fi 21060 21061# test for dup3 21062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dup3 support" >&5 21063$as_echo_n "checking for dup3 support... " >&6; } 21064if ${apr_cv_dup3+:} false; then : 21065 $as_echo_n "(cached) " >&6 21066else 21067 if test "$cross_compiling" = yes; then : 21068 apr_cv_dup3=no 21069else 21070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21071/* end confdefs.h. */ 21072 21073#include <unistd.h> 21074 21075int main() 21076{ 21077 return dup3(STDOUT_FILENO, STDERR_FILENO, 0) == -1; 21078} 21079_ACEOF 21080if ac_fn_c_try_run "$LINENO"; then : 21081 apr_cv_dup3=yes 21082else 21083 apr_cv_dup3=no 21084fi 21085rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21086 conftest.$ac_objext conftest.beam conftest.$ac_ext 21087fi 21088 21089fi 21090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dup3" >&5 21091$as_echo "$apr_cv_dup3" >&6; } 21092 21093if test "$apr_cv_dup3" = "yes"; then 21094 21095$as_echo "#define HAVE_DUP3 1" >>confdefs.h 21096 21097fi 21098 21099# Test for accept4(). Create a non-blocking socket, bind it to 21100# an unspecified port & address (kernel picks), and attempt to 21101# call accept4() on it. If the syscall is wired up (i.e. the 21102# kernel is new enough), it should return EAGAIN. 21103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept4 support" >&5 21104$as_echo_n "checking for accept4 support... " >&6; } 21105if ${apr_cv_accept4+:} false; then : 21106 $as_echo_n "(cached) " >&6 21107else 21108 if test "$cross_compiling" = yes; then : 21109 apr_cv_accept4=no 21110else 21111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21112/* end confdefs.h. */ 21113 21114#include <sys/types.h> 21115#include <sys/socket.h> 21116#include <sys/wait.h> 21117#include <netinet/in.h> 21118#include <netinet/tcp.h> 21119#include <errno.h> 21120#include <string.h> 21121#include <unistd.h> 21122#include <fcntl.h> 21123 21124int main(int argc, char **argv) 21125{ 21126 int fd, flags; 21127 struct sockaddr_in sin; 21128 21129 if ((fd = socket(AF_INET, SOCK_STREAM, 0)) == -1) 21130 return 1; 21131 flags = fcntl(fd, F_GETFL); 21132 if (flags == -1 || fcntl(fd, F_SETFL, flags|O_NONBLOCK) == -1) 21133 return 5; 21134 21135 memset(&sin, 0, sizeof sin); 21136 sin.sin_family = AF_INET; 21137 21138 if (bind(fd, (struct sockaddr *) &sin, sizeof sin) == -1) 21139 return 2; 21140 21141 if (listen(fd, 5) == -1) 21142 return 3; 21143 21144 if (accept4(fd, NULL, 0, SOCK_NONBLOCK) == 0 21145 || errno == EAGAIN || errno == EWOULDBLOCK) 21146 return 0; 21147 21148 return 4; 21149} 21150_ACEOF 21151if ac_fn_c_try_run "$LINENO"; then : 21152 apr_cv_accept4=yes 21153else 21154 apr_cv_accept4=no 21155fi 21156rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21157 conftest.$ac_objext conftest.beam conftest.$ac_ext 21158fi 21159 21160fi 21161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_accept4" >&5 21162$as_echo "$apr_cv_accept4" >&6; } 21163 21164if test "$apr_cv_accept4" = "yes"; then 21165 21166$as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h 21167 21168fi 21169 21170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOCK_CLOEXEC support" >&5 21171$as_echo_n "checking for SOCK_CLOEXEC support... " >&6; } 21172if ${apr_cv_sock_cloexec+:} false; then : 21173 $as_echo_n "(cached) " >&6 21174else 21175 if test "$cross_compiling" = yes; then : 21176 apr_cv_sock_cloexec=no 21177else 21178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21179/* end confdefs.h. */ 21180 21181#include <sys/types.h> 21182#include <sys/socket.h> 21183 21184int main() 21185{ 21186 return socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, 0) == -1; 21187} 21188_ACEOF 21189if ac_fn_c_try_run "$LINENO"; then : 21190 apr_cv_sock_cloexec=yes 21191else 21192 apr_cv_sock_cloexec=no 21193fi 21194rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21195 conftest.$ac_objext conftest.beam conftest.$ac_ext 21196fi 21197 21198fi 21199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_sock_cloexec" >&5 21200$as_echo "$apr_cv_sock_cloexec" >&6; } 21201 21202if test "$apr_cv_sock_cloexec" = "yes"; then 21203 21204$as_echo "#define HAVE_SOCK_CLOEXEC 1" >>confdefs.h 21205 21206fi 21207 21208for ac_func in fdatasync 21209do : 21210 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync" 21211if test "x$ac_cv_func_fdatasync" = xyes; then : 21212 cat >>confdefs.h <<_ACEOF 21213#define HAVE_FDATASYNC 1 21214_ACEOF 21215 21216fi 21217done 21218 21219 21220# test for epoll_create1 21221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1 support" >&5 21222$as_echo_n "checking for epoll_create1 support... " >&6; } 21223if ${apr_cv_epoll_create1+:} false; then : 21224 $as_echo_n "(cached) " >&6 21225else 21226 if test "$cross_compiling" = yes; then : 21227 apr_cv_epoll_create1=no 21228else 21229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21230/* end confdefs.h. */ 21231 21232#include <sys/epoll.h> 21233#include <unistd.h> 21234 21235int main() 21236{ 21237 return epoll_create1(0) == -1; 21238} 21239_ACEOF 21240if ac_fn_c_try_run "$LINENO"; then : 21241 apr_cv_epoll_create1=yes 21242else 21243 apr_cv_epoll_create1=no 21244fi 21245rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21246 conftest.$ac_objext conftest.beam conftest.$ac_ext 21247fi 21248 21249fi 21250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_epoll_create1" >&5 21251$as_echo "$apr_cv_epoll_create1" >&6; } 21252 21253if test "$apr_cv_epoll_create1" = "yes"; then 21254 21255$as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h 21256 21257fi 21258 21259# Check for z/OS async i/o support. 21260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for asio -> message queue support" >&5 21261$as_echo_n "checking for asio -> message queue support... " >&6; } 21262if ${apr_cv_aio_msgq+:} false; then : 21263 $as_echo_n "(cached) " >&6 21264else 21265 if test "$cross_compiling" = yes; then : 21266 apr_cv_aio_msgq=no 21267else 21268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21269/* end confdefs.h. */ 21270 21271#define _AIO_OS390 21272#include <aio.h> 21273 21274int main() 21275{ 21276 struct aiocb a; 21277 21278 a.aio_notifytype = AIO_MSGQ; /* use IPC message queue for notification */ 21279 21280 return aio_cancel(2, NULL) == -1; 21281} 21282_ACEOF 21283if ac_fn_c_try_run "$LINENO"; then : 21284 apr_cv_aio_msgq=yes 21285else 21286 apr_cv_aio_msgq=no 21287fi 21288rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21289 conftest.$ac_objext conftest.beam conftest.$ac_ext 21290fi 21291 21292fi 21293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_aio_msgq" >&5 21294$as_echo "$apr_cv_aio_msgq" >&6; } 21295 21296if test "$apr_cv_aio_msgq" = "yes"; then 21297 21298$as_echo "#define HAVE_AIO_MSGQ 1" >>confdefs.h 21299 21300fi 21301 21302# test for dup3 21303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dup3 support" >&5 21304$as_echo_n "checking for dup3 support... " >&6; } 21305if ${apr_cv_dup3+:} false; then : 21306 $as_echo_n "(cached) " >&6 21307else 21308 if test "$cross_compiling" = yes; then : 21309 apr_cv_dup3=no 21310else 21311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21312/* end confdefs.h. */ 21313 21314#include <unistd.h> 21315 21316int main() 21317{ 21318 return dup3(STDOUT_FILENO, STDERR_FILENO, 0) == -1; 21319} 21320_ACEOF 21321if ac_fn_c_try_run "$LINENO"; then : 21322 apr_cv_dup3=yes 21323else 21324 apr_cv_dup3=no 21325fi 21326rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21327 conftest.$ac_objext conftest.beam conftest.$ac_ext 21328fi 21329 21330fi 21331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dup3" >&5 21332$as_echo "$apr_cv_dup3" >&6; } 21333 21334if test "$apr_cv_dup3" = "yes"; then 21335 21336$as_echo "#define HAVE_DUP3 1" >>confdefs.h 21337 21338fi 21339 21340# test for accept4 21341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept4 support" >&5 21342$as_echo_n "checking for accept4 support... " >&6; } 21343if ${apr_cv_accept4+:} false; then : 21344 $as_echo_n "(cached) " >&6 21345else 21346 if test "$cross_compiling" = yes; then : 21347 apr_cv_accept4=no 21348else 21349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21350/* end confdefs.h. */ 21351 21352#include <unistd.h> 21353#include <sys/types.h> 21354#include <sys/socket.h> 21355#include <sys/un.h> 21356#include <sys/wait.h> 21357#include <signal.h> 21358#include <errno.h> 21359 21360#define A4_SOCK "./apr_accept4_test_socket" 21361 21362int main() 21363{ 21364 pid_t pid; 21365 int fd; 21366 struct sockaddr_un loc, rem; 21367 socklen_t rem_sz; 21368 21369 if ((pid = fork())) { 21370 int status; 21371 21372 unlink(A4_SOCK); 21373 21374 if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) 21375 goto cleanup_failure2; 21376 21377 loc.sun_family = AF_UNIX; 21378 strncpy(loc.sun_path, A4_SOCK, sizeof(loc.sun_path) - 1); 21379 21380 if (bind(fd, (struct sockaddr *) &loc, 21381 sizeof(struct sockaddr_un)) == -1) 21382 goto cleanup_failure; 21383 21384 if (listen(fd, 5) == -1) 21385 goto cleanup_failure; 21386 21387 rem_sz = sizeof(struct sockaddr_un); 21388 if (accept4(fd, (struct sockaddr *) &rem, &rem_sz, 0) == -1) { 21389 goto cleanup_failure; 21390 } 21391 else { 21392 close(fd); 21393 waitpid(pid, &status, 0); 21394 unlink(A4_SOCK); 21395 return 0; 21396 } 21397 21398cleanup_failure: 21399 close(fd); 21400cleanup_failure2: 21401 kill(pid, SIGKILL); 21402 waitpid(pid, &status, 0); 21403 unlink(A4_SOCK); 21404 return 1; 21405 } 21406 else { 21407 if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) 21408 return 1; /* this will be bad: we'll hang */ 21409 21410 loc.sun_family = AF_UNIX; 21411 strncpy(loc.sun_path, A4_SOCK, sizeof(loc.sun_path) - 1); 21412 21413 while(connect(fd, (struct sockaddr *) &loc, 21414 sizeof(struct sockaddr_un)) == -1 && 21415 (errno==ENOENT || errno==ECONNREFUSED)) 21416 ; 21417 21418 close(fd); 21419 return 0; 21420 } 21421} 21422_ACEOF 21423if ac_fn_c_try_run "$LINENO"; then : 21424 apr_cv_accept4=yes 21425else 21426 apr_cv_accept4=no 21427fi 21428rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21429 conftest.$ac_objext conftest.beam conftest.$ac_ext 21430fi 21431 21432fi 21433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_accept4" >&5 21434$as_echo "$apr_cv_accept4" >&6; } 21435 21436if test "$apr_cv_accept4" = "yes"; then 21437 21438$as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h 21439 21440fi 21441 21442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOCK_CLOEXEC support" >&5 21443$as_echo_n "checking for SOCK_CLOEXEC support... " >&6; } 21444if ${apr_cv_sock_cloexec+:} false; then : 21445 $as_echo_n "(cached) " >&6 21446else 21447 if test "$cross_compiling" = yes; then : 21448 apr_cv_sock_cloexec=no 21449else 21450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21451/* end confdefs.h. */ 21452 21453#include <sys/types.h> 21454#include <sys/socket.h> 21455 21456int main() 21457{ 21458 return socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, 0) == -1; 21459} 21460_ACEOF 21461if ac_fn_c_try_run "$LINENO"; then : 21462 apr_cv_sock_cloexec=yes 21463else 21464 apr_cv_sock_cloexec=no 21465fi 21466rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21467 conftest.$ac_objext conftest.beam conftest.$ac_ext 21468fi 21469 21470fi 21471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_sock_cloexec" >&5 21472$as_echo "$apr_cv_sock_cloexec" >&6; } 21473 21474if test "$apr_cv_sock_cloexec" = "yes"; then 21475 21476$as_echo "#define HAVE_SOCK_CLOEXEC 1" >>confdefs.h 21477 21478fi 21479 21480for ac_func in getpwnam_r getpwuid_r getgrnam_r getgrgid_r 21481do : 21482 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 21483ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 21484if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 21485 cat >>confdefs.h <<_ACEOF 21486#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 21487_ACEOF 21488 21489fi 21490done 21491 21492 21493echo "${nl}Checking for Shared Memory Support..." 21494 21495# The real-time POSIX extensions (e.g. shm_*, sem_*) may only 21496# be available if linking against librt. 21497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5 21498$as_echo_n "checking for library containing shm_open... " >&6; } 21499if ${ac_cv_search_shm_open+:} false; then : 21500 $as_echo_n "(cached) " >&6 21501else 21502 ac_func_search_save_LIBS=$LIBS 21503cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21504/* end confdefs.h. */ 21505 21506/* Override any GCC internal prototype to avoid an error. 21507 Use char because int might match the return type of a GCC 21508 builtin and then its argument prototype would still apply. */ 21509#ifdef __cplusplus 21510extern "C" 21511#endif 21512char shm_open (); 21513int 21514main () 21515{ 21516return shm_open (); 21517 ; 21518 return 0; 21519} 21520_ACEOF 21521for ac_lib in '' rt; do 21522 if test -z "$ac_lib"; then 21523 ac_res="none required" 21524 else 21525 ac_res=-l$ac_lib 21526 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21527 fi 21528 if ac_fn_c_try_link "$LINENO"; then : 21529 ac_cv_search_shm_open=$ac_res 21530fi 21531rm -f core conftest.err conftest.$ac_objext \ 21532 conftest$ac_exeext 21533 if ${ac_cv_search_shm_open+:} false; then : 21534 break 21535fi 21536done 21537if ${ac_cv_search_shm_open+:} false; then : 21538 21539else 21540 ac_cv_search_shm_open=no 21541fi 21542rm conftest.$ac_ext 21543LIBS=$ac_func_search_save_LIBS 21544fi 21545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5 21546$as_echo "$ac_cv_search_shm_open" >&6; } 21547ac_res=$ac_cv_search_shm_open 21548if test "$ac_res" != no; then : 21549 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21550 21551fi 21552 21553 21554case $host in 21555 *-sysv*) 21556 ac_includes_default="$ac_includes_default 21557#if HAVE_SYS_MUTEX_H /* needed to define lock_t for sys/shm.h */ 21558# include <sys/mutex.h> 21559#endif";; 21560esac 21561 21562for ac_header in sys/types.h sys/mman.h sys/ipc.h sys/mutex.h \ 21563 sys/shm.h sys/file.h sys/socket.h kernel/OS.h os2.h windows.h 21564do : 21565 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 21566ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 21567if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 21568 cat >>confdefs.h <<_ACEOF 21569#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 21570_ACEOF 21571 21572fi 21573 21574done 21575 21576for ac_header in net/if.h 21577do : 21578 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " 21579#ifdef HAVE_SYS_SOCKET_H 21580#include <sys/socket.h> 21581#endif 21582#include <net/if.h> 21583 21584" 21585if test "x$ac_cv_header_net_if_h" = xyes; then : 21586 cat >>confdefs.h <<_ACEOF 21587#define HAVE_NET_IF_H 1 21588_ACEOF 21589 21590fi 21591 21592done 21593 21594for ac_func in mmap munmap shm_open shm_unlink shmget shmat shmdt shmctl \ 21595 create_area mprotect 21596do : 21597 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 21598ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 21599if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 21600 cat >>confdefs.h <<_ACEOF 21601#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 21602_ACEOF 21603 21604fi 21605done 21606 21607 21608 21609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON in sys/mman.h" >&5 21610$as_echo_n "checking for MAP_ANON in sys/mman.h... " >&6; } 21611if ${ac_cv_define_MAP_ANON+:} false; then : 21612 $as_echo_n "(cached) " >&6 21613else 21614 21615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21616/* end confdefs.h. */ 21617 21618#include <sys/mman.h> 21619#ifdef MAP_ANON 21620YES_IS_DEFINED 21621#endif 21622 21623_ACEOF 21624if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21625 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then : 21626 ac_cv_define_MAP_ANON=yes 21627else 21628 ac_cv_define_MAP_ANON=no 21629fi 21630rm -f conftest* 21631 21632 21633fi 21634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_MAP_ANON" >&5 21635$as_echo "$ac_cv_define_MAP_ANON" >&6; } 21636 if test "$ac_cv_define_MAP_ANON" = "yes"; then 21637 21638$as_echo "#define HAVE_MAP_ANON 1" >>confdefs.h 21639 21640 fi 21641 21642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/zero" >&5 21643$as_echo_n "checking for /dev/zero... " >&6; } 21644if ${ac_cv_file__dev_zero+:} false; then : 21645 $as_echo_n "(cached) " >&6 21646else 21647 test "$cross_compiling" = yes && 21648 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 21649if test -r "/dev/zero"; then 21650 ac_cv_file__dev_zero=yes 21651else 21652 ac_cv_file__dev_zero=no 21653fi 21654fi 21655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_zero" >&5 21656$as_echo "$ac_cv_file__dev_zero" >&6; } 21657if test "x$ac_cv_file__dev_zero" = xyes; then : 21658 21659fi 21660 21661 21662# Not all systems can mmap /dev/zero (such as HP-UX). Check for that. 21663if test "$ac_cv_func_mmap" = "yes" && 21664 test "$ac_cv_file__dev_zero" = "yes"; then 21665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap that can map /dev/zero" >&5 21666$as_echo_n "checking for mmap that can map /dev/zero... " >&6; } 21667 if test "$cross_compiling" = yes; then : 21668 ac_cv_file__dev_zero=no 21669else 21670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21671/* end confdefs.h. */ 21672 21673#include <sys/types.h> 21674#include <sys/stat.h> 21675#include <fcntl.h> 21676#ifdef HAVE_SYS_MMAN_H 21677#include <sys/mman.h> 21678#endif 21679 int main() 21680 { 21681 int fd; 21682 void *m; 21683 fd = open("/dev/zero", O_RDWR); 21684 if (fd < 0) { 21685 return 1; 21686 } 21687 m = mmap(0, sizeof(void*), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); 21688 if (m == (void *)-1) { /* aka MAP_FAILED */ 21689 return 2; 21690 } 21691 if (munmap(m, sizeof(void*)) < 0) { 21692 return 3; 21693 } 21694 return 0; 21695 } 21696_ACEOF 21697if ac_fn_c_try_run "$LINENO"; then : 21698 21699else 21700 ac_cv_file__dev_zero=no 21701fi 21702rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21703 conftest.$ac_objext conftest.beam conftest.$ac_ext 21704fi 21705 21706 21707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_zero" >&5 21708$as_echo "$ac_cv_file__dev_zero" >&6; } 21709fi 21710 21711# Now we determine which one is our anonymous shmem preference. 21712haveshmgetanon="0" 21713havemmapzero="0" 21714havemmapanon="0" 21715ac_decision_item='anonymous shared memory allocation method' 21716ac_decision_msg='FAILED' 21717ac_decision='' 21718 21719ac_rc=yes 21720for ac_spec in header:sys/ipc.h header:sys/shm.h header:sys/file.h func:shmget func:shmat func:shmdt func:shmctl; do 21721 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` 21722 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` 21723 case $ac_type in 21724 header ) 21725 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 21726 ac_var="ac_cv_header_$ac_item" 21727 ;; 21728 file ) 21729 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 21730 ac_var="ac_cv_file_$ac_item" 21731 ;; 21732 func ) ac_var="ac_cv_func_$ac_item" ;; 21733 struct ) ac_var="ac_cv_struct_$ac_item" ;; 21734 define ) ac_var="ac_cv_define_$ac_item" ;; 21735 custom ) ac_var="$ac_item" ;; 21736 esac 21737 eval "ac_val=\$$ac_var" 21738 if test ".$ac_val" != .yes; then 21739 ac_rc=no 21740 break 21741 fi 21742done 21743if test ".$ac_rc" = .yes; then 21744 : 21745 haveshmgetanon="1" 21746 21747ac_decision='USE_SHMEM_SHMGET_ANON' 21748ac_decision_msg='SysV IPC shmget()' 21749ac_decision_USE_SHMEM_SHMGET_ANON=yes 21750ac_decision_USE_SHMEM_SHMGET_ANON_msg='SysV IPC shmget()' 21751 21752else 21753 : 21754 21755fi 21756 21757ac_rc=yes 21758for ac_spec in header:sys/mman.h func:mmap func:munmap file:/dev/zero; do 21759 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` 21760 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` 21761 case $ac_type in 21762 header ) 21763 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 21764 ac_var="ac_cv_header_$ac_item" 21765 ;; 21766 file ) 21767 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 21768 ac_var="ac_cv_file_$ac_item" 21769 ;; 21770 func ) ac_var="ac_cv_func_$ac_item" ;; 21771 struct ) ac_var="ac_cv_struct_$ac_item" ;; 21772 define ) ac_var="ac_cv_define_$ac_item" ;; 21773 custom ) ac_var="$ac_item" ;; 21774 esac 21775 eval "ac_val=\$$ac_var" 21776 if test ".$ac_val" != .yes; then 21777 ac_rc=no 21778 break 21779 fi 21780done 21781if test ".$ac_rc" = .yes; then 21782 : 21783 havemmapzero="1" 21784 21785ac_decision='USE_SHMEM_MMAP_ZERO' 21786ac_decision_msg='SVR4-style mmap() on /dev/zero' 21787ac_decision_USE_SHMEM_MMAP_ZERO=yes 21788ac_decision_USE_SHMEM_MMAP_ZERO_msg='SVR4-style mmap() on /dev/zero' 21789 21790else 21791 : 21792 21793fi 21794 21795ac_rc=yes 21796for ac_spec in header:sys/mman.h func:mmap func:munmap define:MAP_ANON; do 21797 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` 21798 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` 21799 case $ac_type in 21800 header ) 21801 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 21802 ac_var="ac_cv_header_$ac_item" 21803 ;; 21804 file ) 21805 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 21806 ac_var="ac_cv_file_$ac_item" 21807 ;; 21808 func ) ac_var="ac_cv_func_$ac_item" ;; 21809 struct ) ac_var="ac_cv_struct_$ac_item" ;; 21810 define ) ac_var="ac_cv_define_$ac_item" ;; 21811 custom ) ac_var="$ac_item" ;; 21812 esac 21813 eval "ac_val=\$$ac_var" 21814 if test ".$ac_val" != .yes; then 21815 ac_rc=no 21816 break 21817 fi 21818done 21819if test ".$ac_rc" = .yes; then 21820 : 21821 havemmapanon="1" 21822 21823ac_decision='USE_SHMEM_MMAP_ANON' 21824ac_decision_msg='4.4BSD-style mmap() via MAP_ANON' 21825ac_decision_USE_SHMEM_MMAP_ANON=yes 21826ac_decision_USE_SHMEM_MMAP_ANON_msg='4.4BSD-style mmap() via MAP_ANON' 21827 21828else 21829 : 21830 21831fi 21832 21833ac_rc=yes 21834for ac_spec in header:os2.h; do 21835 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` 21836 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` 21837 case $ac_type in 21838 header ) 21839 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 21840 ac_var="ac_cv_header_$ac_item" 21841 ;; 21842 file ) 21843 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 21844 ac_var="ac_cv_file_$ac_item" 21845 ;; 21846 func ) ac_var="ac_cv_func_$ac_item" ;; 21847 struct ) ac_var="ac_cv_struct_$ac_item" ;; 21848 define ) ac_var="ac_cv_define_$ac_item" ;; 21849 custom ) ac_var="$ac_item" ;; 21850 esac 21851 eval "ac_val=\$$ac_var" 21852 if test ".$ac_val" != .yes; then 21853 ac_rc=no 21854 break 21855 fi 21856done 21857if test ".$ac_rc" = .yes; then 21858 : 21859 haveos2shm="1" 21860 21861ac_decision='USE_SHMEM_OS2_ANON' 21862ac_decision_msg='OS/2 DosAllocSharedMem()' 21863ac_decision_USE_SHMEM_OS2_ANON=yes 21864ac_decision_USE_SHMEM_OS2_ANON_msg='OS/2 DosAllocSharedMem()' 21865 21866else 21867 : 21868 21869fi 21870 21871ac_rc=yes 21872for ac_spec in header:kernel/OS.h func:create_area; do 21873 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` 21874 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` 21875 case $ac_type in 21876 header ) 21877 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 21878 ac_var="ac_cv_header_$ac_item" 21879 ;; 21880 file ) 21881 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 21882 ac_var="ac_cv_file_$ac_item" 21883 ;; 21884 func ) ac_var="ac_cv_func_$ac_item" ;; 21885 struct ) ac_var="ac_cv_struct_$ac_item" ;; 21886 define ) ac_var="ac_cv_define_$ac_item" ;; 21887 custom ) ac_var="$ac_item" ;; 21888 esac 21889 eval "ac_val=\$$ac_var" 21890 if test ".$ac_val" != .yes; then 21891 ac_rc=no 21892 break 21893 fi 21894done 21895if test ".$ac_rc" = .yes; then 21896 : 21897 havebeosshm="1" 21898 21899ac_decision='USE_SHMEM_BEOS_ANON' 21900ac_decision_msg='BeOS areas' 21901ac_decision_USE_SHMEM_BEOS_ANON=yes 21902ac_decision_USE_SHMEM_BEOS_ANON_msg='BeOS areas' 21903 21904else 21905 : 21906 21907fi 21908 21909ac_rc=yes 21910for ac_spec in header:windows.h func:CreateFileMapping; do 21911 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` 21912 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` 21913 case $ac_type in 21914 header ) 21915 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 21916 ac_var="ac_cv_header_$ac_item" 21917 ;; 21918 file ) 21919 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 21920 ac_var="ac_cv_file_$ac_item" 21921 ;; 21922 func ) ac_var="ac_cv_func_$ac_item" ;; 21923 struct ) ac_var="ac_cv_struct_$ac_item" ;; 21924 define ) ac_var="ac_cv_define_$ac_item" ;; 21925 custom ) ac_var="$ac_item" ;; 21926 esac 21927 eval "ac_val=\$$ac_var" 21928 if test ".$ac_val" != .yes; then 21929 ac_rc=no 21930 break 21931 fi 21932done 21933if test ".$ac_rc" = .yes; then 21934 : 21935 havewin32shm="1" 21936 21937ac_decision='USE_SHMEM_WIN32_ANON' 21938ac_decision_msg='Windows CreateFileMapping()' 21939ac_decision_USE_SHMEM_WIN32_ANON=yes 21940ac_decision_USE_SHMEM_WIN32_ANON_msg='Windows CreateFileMapping()' 21941 21942else 21943 : 21944 21945fi 21946 21947case $host in 21948 *linux* ) 21949 # Linux has problems with MM_SHMT_MMANON even though it reports 21950 # that it has it. 21951 # FIXME - find exact 2.3 version that MMANON was fixed in. It is 21952 # confirmed fixed in 2.4 series. 21953 if test $os_pre24linux -eq 1; then 21954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling anon mmap() support for Linux pre-2.4" >&5 21955$as_echo "$as_me: WARNING: Disabling anon mmap() support for Linux pre-2.4" >&2;} 21956 ac_decision='' 21957 for ac_item in USE_SHMEM_MMAP_ZERO USE_SHMEM_SHMGET_ANON; do 21958 eval "ac_decision_this=\$ac_decision_${ac_item}" 21959 if test ".$ac_decision_this" = .yes; then 21960 ac_decision=$ac_item 21961 eval "ac_decision_msg=\$ac_decision_${ac_item}_msg" 21962 fi 21963 done 21964 21965 fi 21966 ;; 21967 *hpux11* ) 21968 ac_decision='' 21969 for ac_item in USE_SHMEM_SHMGET_ANON; do 21970 eval "ac_decision_this=\$ac_decision_${ac_item}" 21971 if test ".$ac_decision_this" = .yes; then 21972 ac_decision=$ac_item 21973 eval "ac_decision_msg=\$ac_decision_${ac_item}_msg" 21974 fi 21975 done 21976 21977 ;; 21978esac 21979if test ".$ac_decision" = .; then 21980 echo "$0:Error: decision on $ac_decision_item failed" 1>&2 21981 exit 1 21982else 21983 if test ".$ac_decision_msg" = .; then 21984 ac_decision_msg="$ac_decision" 21985 fi 21986 cat >>confdefs.h <<_ACEOF 21987#define ${ac_decision_item} 1 21988_ACEOF 21989 21990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: decision on $ac_decision_item... $ac_decision_msg" >&5 21991$as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; } 21992fi 21993 21994cat >>confdefs.h <<_ACEOF 21995#define $ac_decision 1 21996_ACEOF 21997 21998 21999useshmgetanon="0" 22000usemmapzero="0" 22001usemmapanon="0" 22002 22003case $ac_decision in 22004 USE_SHMEM_SHMGET_ANON ) 22005 useshmgetanon="1" 22006 ;; 22007 USE_SHMEM_MMAP_ZERO ) 22008 usemmapzero="1" 22009 ;; 22010 USE_SHMEM_MMAP_ANON ) 22011 usemmapanon="1" 22012 ;; 22013esac 22014 22015 22016 22017 22018 22019 22020 22021 22022# Now we determine which one is our name-based shmem preference. 22023havemmaptmp="0" 22024havemmapshm="0" 22025haveshmget="0" 22026havebeosarea="0" 22027haveos2shm="0" 22028havewin32shm="0" 22029ac_decision_item='namebased memory allocation method' 22030ac_decision_msg='FAILED' 22031ac_decision='' 22032 22033ac_rc=yes 22034for ac_spec in header:sys/mman.h func:mmap func:munmap; do 22035 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` 22036 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` 22037 case $ac_type in 22038 header ) 22039 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 22040 ac_var="ac_cv_header_$ac_item" 22041 ;; 22042 file ) 22043 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 22044 ac_var="ac_cv_file_$ac_item" 22045 ;; 22046 func ) ac_var="ac_cv_func_$ac_item" ;; 22047 struct ) ac_var="ac_cv_struct_$ac_item" ;; 22048 define ) ac_var="ac_cv_define_$ac_item" ;; 22049 custom ) ac_var="$ac_item" ;; 22050 esac 22051 eval "ac_val=\$$ac_var" 22052 if test ".$ac_val" != .yes; then 22053 ac_rc=no 22054 break 22055 fi 22056done 22057if test ".$ac_rc" = .yes; then 22058 : 22059 havemmaptmp="1" 22060 22061ac_decision='USE_SHMEM_MMAP_TMP' 22062ac_decision_msg='Classical mmap() on temporary file' 22063ac_decision_USE_SHMEM_MMAP_TMP=yes 22064ac_decision_USE_SHMEM_MMAP_TMP_msg='Classical mmap() on temporary file' 22065 22066else 22067 : 22068 22069fi 22070 22071ac_rc=yes 22072for ac_spec in header:sys/mman.h func:mmap func:munmap func:shm_open func:shm_unlink; do 22073 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` 22074 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` 22075 case $ac_type in 22076 header ) 22077 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 22078 ac_var="ac_cv_header_$ac_item" 22079 ;; 22080 file ) 22081 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 22082 ac_var="ac_cv_file_$ac_item" 22083 ;; 22084 func ) ac_var="ac_cv_func_$ac_item" ;; 22085 struct ) ac_var="ac_cv_struct_$ac_item" ;; 22086 define ) ac_var="ac_cv_define_$ac_item" ;; 22087 custom ) ac_var="$ac_item" ;; 22088 esac 22089 eval "ac_val=\$$ac_var" 22090 if test ".$ac_val" != .yes; then 22091 ac_rc=no 22092 break 22093 fi 22094done 22095if test ".$ac_rc" = .yes; then 22096 : 22097 havemmapshm="1" 22098 22099ac_decision='USE_SHMEM_MMAP_SHM' 22100ac_decision_msg='mmap() via POSIX.1 shm_open() on temporary file' 22101ac_decision_USE_SHMEM_MMAP_SHM=yes 22102ac_decision_USE_SHMEM_MMAP_SHM_msg='mmap() via POSIX.1 shm_open() on temporary file' 22103 22104else 22105 : 22106 22107fi 22108 22109ac_rc=yes 22110for ac_spec in header:sys/ipc.h header:sys/shm.h header:sys/file.h func:shmget func:shmat func:shmdt func:shmctl; do 22111 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` 22112 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` 22113 case $ac_type in 22114 header ) 22115 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 22116 ac_var="ac_cv_header_$ac_item" 22117 ;; 22118 file ) 22119 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 22120 ac_var="ac_cv_file_$ac_item" 22121 ;; 22122 func ) ac_var="ac_cv_func_$ac_item" ;; 22123 struct ) ac_var="ac_cv_struct_$ac_item" ;; 22124 define ) ac_var="ac_cv_define_$ac_item" ;; 22125 custom ) ac_var="$ac_item" ;; 22126 esac 22127 eval "ac_val=\$$ac_var" 22128 if test ".$ac_val" != .yes; then 22129 ac_rc=no 22130 break 22131 fi 22132done 22133if test ".$ac_rc" = .yes; then 22134 : 22135 haveshmget="1" 22136 22137ac_decision='USE_SHMEM_SHMGET' 22138ac_decision_msg='SysV IPC shmget()' 22139ac_decision_USE_SHMEM_SHMGET=yes 22140ac_decision_USE_SHMEM_SHMGET_msg='SysV IPC shmget()' 22141 22142else 22143 : 22144 22145fi 22146 22147ac_rc=yes 22148for ac_spec in header:kernel/OS.h func:create_area; do 22149 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` 22150 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` 22151 case $ac_type in 22152 header ) 22153 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 22154 ac_var="ac_cv_header_$ac_item" 22155 ;; 22156 file ) 22157 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 22158 ac_var="ac_cv_file_$ac_item" 22159 ;; 22160 func ) ac_var="ac_cv_func_$ac_item" ;; 22161 struct ) ac_var="ac_cv_struct_$ac_item" ;; 22162 define ) ac_var="ac_cv_define_$ac_item" ;; 22163 custom ) ac_var="$ac_item" ;; 22164 esac 22165 eval "ac_val=\$$ac_var" 22166 if test ".$ac_val" != .yes; then 22167 ac_rc=no 22168 break 22169 fi 22170done 22171if test ".$ac_rc" = .yes; then 22172 : 22173 havebeosshm="1" 22174 22175ac_decision='USE_SHMEM_BEOS' 22176ac_decision_msg='BeOS areas' 22177ac_decision_USE_SHMEM_BEOS=yes 22178ac_decision_USE_SHMEM_BEOS_msg='BeOS areas' 22179 22180else 22181 : 22182 22183fi 22184 22185ac_rc=yes 22186for ac_spec in header:os2.h; do 22187 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` 22188 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` 22189 case $ac_type in 22190 header ) 22191 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 22192 ac_var="ac_cv_header_$ac_item" 22193 ;; 22194 file ) 22195 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 22196 ac_var="ac_cv_file_$ac_item" 22197 ;; 22198 func ) ac_var="ac_cv_func_$ac_item" ;; 22199 struct ) ac_var="ac_cv_struct_$ac_item" ;; 22200 define ) ac_var="ac_cv_define_$ac_item" ;; 22201 custom ) ac_var="$ac_item" ;; 22202 esac 22203 eval "ac_val=\$$ac_var" 22204 if test ".$ac_val" != .yes; then 22205 ac_rc=no 22206 break 22207 fi 22208done 22209if test ".$ac_rc" = .yes; then 22210 : 22211 haveos2shm="1" 22212 22213ac_decision='USE_SHMEM_OS2' 22214ac_decision_msg='OS/2 DosAllocSharedMem()' 22215ac_decision_USE_SHMEM_OS2=yes 22216ac_decision_USE_SHMEM_OS2_msg='OS/2 DosAllocSharedMem()' 22217 22218else 22219 : 22220 22221fi 22222 22223ac_rc=yes 22224for ac_spec in header:windows.h; do 22225 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` 22226 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` 22227 case $ac_type in 22228 header ) 22229 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 22230 ac_var="ac_cv_header_$ac_item" 22231 ;; 22232 file ) 22233 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 22234 ac_var="ac_cv_file_$ac_item" 22235 ;; 22236 func ) ac_var="ac_cv_func_$ac_item" ;; 22237 struct ) ac_var="ac_cv_struct_$ac_item" ;; 22238 define ) ac_var="ac_cv_define_$ac_item" ;; 22239 custom ) ac_var="$ac_item" ;; 22240 esac 22241 eval "ac_val=\$$ac_var" 22242 if test ".$ac_val" != .yes; then 22243 ac_rc=no 22244 break 22245 fi 22246done 22247if test ".$ac_rc" = .yes; then 22248 : 22249 havewin32shm="1" 22250 22251ac_decision='USE_SHMEM_WIN32' 22252ac_decision_msg='Windows shared memory' 22253ac_decision_USE_SHMEM_WIN32=yes 22254ac_decision_USE_SHMEM_WIN32_msg='Windows shared memory' 22255 22256else 22257 : 22258 22259fi 22260 22261# Check whether --enable-posix-shm was given. 22262if test "${enable_posix_shm+set}" = set; then : 22263 enableval=$enable_posix_shm; 22264if test "$havemmapshm" = "1"; then 22265 ac_decision='' 22266 for ac_item in USE_SHMEM_MMAP_SHM; do 22267 eval "ac_decision_this=\$ac_decision_${ac_item}" 22268 if test ".$ac_decision_this" = .yes; then 22269 ac_decision=$ac_item 22270 eval "ac_decision_msg=\$ac_decision_${ac_item}_msg" 22271 fi 22272 done 22273 22274fi 22275 22276fi 22277 22278case $host in 22279 *linux* ) 22280 # Linux pre-2.4 had problems with MM_SHMT_MMANON even though 22281 # it reports that it has it. 22282 if test $os_pre24linux -eq 1; then 22283 ac_decision='' 22284 for ac_item in USE_SHMEM_MMAP_TMP USE_SHMEM_MMAP_SHM USE_SHMEM_SHMGET; do 22285 eval "ac_decision_this=\$ac_decision_${ac_item}" 22286 if test ".$ac_decision_this" = .yes; then 22287 ac_decision=$ac_item 22288 eval "ac_decision_msg=\$ac_decision_${ac_item}_msg" 22289 fi 22290 done 22291 22292 fi 22293 ;; 22294esac 22295if test ".$ac_decision" = .; then 22296 echo "$0:Error: decision on $ac_decision_item failed" 1>&2 22297 exit 1 22298else 22299 if test ".$ac_decision_msg" = .; then 22300 ac_decision_msg="$ac_decision" 22301 fi 22302 cat >>confdefs.h <<_ACEOF 22303#define ${ac_decision_item} 1 22304_ACEOF 22305 22306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: decision on $ac_decision_item... $ac_decision_msg" >&5 22307$as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; } 22308fi 22309 22310cat >>confdefs.h <<_ACEOF 22311#define $ac_decision 1 22312_ACEOF 22313 22314 22315usemmaptmp="0" 22316usemmapshm="0" 22317useshmget="0" 22318usebeosarea="0" 22319useos2shm="0" 22320usewin32shm="0" 22321 22322case $ac_decision in 22323 USE_SHMEM_MMAP_TMP ) 22324 usemmaptmp="1" 22325 ;; 22326 USE_SHMEM_MMAP_SHM ) 22327 usemmapshm="1" 22328 ;; 22329 USE_SHMEM_SHMGET ) 22330 useshmget="1" 22331 ;; 22332 USE_SHMEM_BEOS ) 22333 usebeosarea="1" 22334 ;; 22335 USE_SHMEM_OS2 ) 22336 useos2shm="1" 22337 ;; 22338 USE_SHMEM_WIN32 ) 22339 usewin32shm="1" 22340 ;; 22341esac 22342 22343# Do we have any shared memory support? 22344if test "$usemmaptmp$usemmapshm$usemmapzero$useshmget$usemmapanon$usebeosarea$useos2shm$usewin32shm" = "00000000"; then 22345 sharedmem="0" 22346else 22347 sharedmem="1" 22348fi 22349 22350 22351 22352 22353 22354 22355 22356 22357 22358 22359 22360 22361 22362 22363 22364 22365ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 22366if test "x$ac_cv_type_size_t" = xyes; then : 22367 22368else 22369 22370cat >>confdefs.h <<_ACEOF 22371#define size_t unsigned int 22372_ACEOF 22373 22374fi 22375 22376# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 22377# for constant arguments. Useless! 22378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 22379$as_echo_n "checking for working alloca.h... " >&6; } 22380if ${ac_cv_working_alloca_h+:} false; then : 22381 $as_echo_n "(cached) " >&6 22382else 22383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22384/* end confdefs.h. */ 22385#include <alloca.h> 22386int 22387main () 22388{ 22389char *p = (char *) alloca (2 * sizeof (int)); 22390 if (p) return 0; 22391 ; 22392 return 0; 22393} 22394_ACEOF 22395if ac_fn_c_try_link "$LINENO"; then : 22396 ac_cv_working_alloca_h=yes 22397else 22398 ac_cv_working_alloca_h=no 22399fi 22400rm -f core conftest.err conftest.$ac_objext \ 22401 conftest$ac_exeext conftest.$ac_ext 22402fi 22403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 22404$as_echo "$ac_cv_working_alloca_h" >&6; } 22405if test $ac_cv_working_alloca_h = yes; then 22406 22407$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 22408 22409fi 22410 22411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 22412$as_echo_n "checking for alloca... " >&6; } 22413if ${ac_cv_func_alloca_works+:} false; then : 22414 $as_echo_n "(cached) " >&6 22415else 22416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22417/* end confdefs.h. */ 22418#ifdef __GNUC__ 22419# define alloca __builtin_alloca 22420#else 22421# ifdef _MSC_VER 22422# include <malloc.h> 22423# define alloca _alloca 22424# else 22425# ifdef HAVE_ALLOCA_H 22426# include <alloca.h> 22427# else 22428# ifdef _AIX 22429 #pragma alloca 22430# else 22431# ifndef alloca /* predefined by HP cc +Olibcalls */ 22432void *alloca (size_t); 22433# endif 22434# endif 22435# endif 22436# endif 22437#endif 22438 22439int 22440main () 22441{ 22442char *p = (char *) alloca (1); 22443 if (p) return 0; 22444 ; 22445 return 0; 22446} 22447_ACEOF 22448if ac_fn_c_try_link "$LINENO"; then : 22449 ac_cv_func_alloca_works=yes 22450else 22451 ac_cv_func_alloca_works=no 22452fi 22453rm -f core conftest.err conftest.$ac_objext \ 22454 conftest$ac_exeext conftest.$ac_ext 22455fi 22456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 22457$as_echo "$ac_cv_func_alloca_works" >&6; } 22458 22459if test $ac_cv_func_alloca_works = yes; then 22460 22461$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 22462 22463else 22464 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 22465# that cause trouble. Some versions do not even contain alloca or 22466# contain a buggy version. If you still want to use their alloca, 22467# use ar to extract alloca.o from them instead of compiling alloca.c. 22468 22469ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 22470 22471$as_echo "#define C_ALLOCA 1" >>confdefs.h 22472 22473 22474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 22475$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 22476if ${ac_cv_os_cray+:} false; then : 22477 $as_echo_n "(cached) " >&6 22478else 22479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22480/* end confdefs.h. */ 22481#if defined CRAY && ! defined CRAY2 22482webecray 22483#else 22484wenotbecray 22485#endif 22486 22487_ACEOF 22488if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22489 $EGREP "webecray" >/dev/null 2>&1; then : 22490 ac_cv_os_cray=yes 22491else 22492 ac_cv_os_cray=no 22493fi 22494rm -f conftest* 22495 22496fi 22497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 22498$as_echo "$ac_cv_os_cray" >&6; } 22499if test $ac_cv_os_cray = yes; then 22500 for ac_func in _getb67 GETB67 getb67; do 22501 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22502ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 22503if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 22504 22505cat >>confdefs.h <<_ACEOF 22506#define CRAY_STACKSEG_END $ac_func 22507_ACEOF 22508 22509 break 22510fi 22511 22512 done 22513fi 22514 22515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 22516$as_echo_n "checking stack direction for C alloca... " >&6; } 22517if ${ac_cv_c_stack_direction+:} false; then : 22518 $as_echo_n "(cached) " >&6 22519else 22520 if test "$cross_compiling" = yes; then : 22521 ac_cv_c_stack_direction=0 22522else 22523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22524/* end confdefs.h. */ 22525$ac_includes_default 22526int 22527find_stack_direction (int *addr, int depth) 22528{ 22529 int dir, dummy = 0; 22530 if (! addr) 22531 addr = &dummy; 22532 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 22533 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 22534 return dir + dummy; 22535} 22536 22537int 22538main (int argc, char **argv) 22539{ 22540 return find_stack_direction (0, argc + !argv + 20) < 0; 22541} 22542_ACEOF 22543if ac_fn_c_try_run "$LINENO"; then : 22544 ac_cv_c_stack_direction=1 22545else 22546 ac_cv_c_stack_direction=-1 22547fi 22548rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22549 conftest.$ac_objext conftest.beam conftest.$ac_ext 22550fi 22551 22552fi 22553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 22554$as_echo "$ac_cv_c_stack_direction" >&6; } 22555cat >>confdefs.h <<_ACEOF 22556#define STACK_DIRECTION $ac_cv_c_stack_direction 22557_ACEOF 22558 22559 22560fi 22561 22562 22563for ac_func in calloc setsid isinf isnan \ 22564 getenv putenv setenv unsetenv \ 22565 writev getifaddrs utime utimes 22566do : 22567 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22568ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 22569if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 22570 cat >>confdefs.h <<_ACEOF 22571#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22572_ACEOF 22573 22574fi 22575done 22576 22577for ac_func in setrlimit 22578do : 22579 ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit" 22580if test "x$ac_cv_func_setrlimit" = xyes; then : 22581 cat >>confdefs.h <<_ACEOF 22582#define HAVE_SETRLIMIT 1 22583_ACEOF 22584 have_setrlimit="1" 22585else 22586 have_setrlimit="0" 22587fi 22588done 22589 22590for ac_func in getrlimit 22591do : 22592 ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit" 22593if test "x$ac_cv_func_getrlimit" = xyes; then : 22594 cat >>confdefs.h <<_ACEOF 22595#define HAVE_GETRLIMIT 1 22596_ACEOF 22597 have_getrlimit="1" 22598else 22599 have_getrlimit="0" 22600fi 22601done 22602 22603sendfile="0" 22604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfilev in -lsendfile" >&5 22605$as_echo_n "checking for sendfilev in -lsendfile... " >&6; } 22606if ${ac_cv_lib_sendfile_sendfilev+:} false; then : 22607 $as_echo_n "(cached) " >&6 22608else 22609 ac_check_lib_save_LIBS=$LIBS 22610LIBS="-lsendfile $LIBS" 22611cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22612/* end confdefs.h. */ 22613 22614/* Override any GCC internal prototype to avoid an error. 22615 Use char because int might match the return type of a GCC 22616 builtin and then its argument prototype would still apply. */ 22617#ifdef __cplusplus 22618extern "C" 22619#endif 22620char sendfilev (); 22621int 22622main () 22623{ 22624return sendfilev (); 22625 ; 22626 return 0; 22627} 22628_ACEOF 22629if ac_fn_c_try_link "$LINENO"; then : 22630 ac_cv_lib_sendfile_sendfilev=yes 22631else 22632 ac_cv_lib_sendfile_sendfilev=no 22633fi 22634rm -f core conftest.err conftest.$ac_objext \ 22635 conftest$ac_exeext conftest.$ac_ext 22636LIBS=$ac_check_lib_save_LIBS 22637fi 22638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfilev" >&5 22639$as_echo "$ac_cv_lib_sendfile_sendfilev" >&6; } 22640if test "x$ac_cv_lib_sendfile_sendfilev" = xyes; then : 22641 cat >>confdefs.h <<_ACEOF 22642#define HAVE_LIBSENDFILE 1 22643_ACEOF 22644 22645 LIBS="-lsendfile $LIBS" 22646 22647fi 22648 22649for ac_func in sendfile send_file sendfilev 22650do : 22651 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22652ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 22653if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 22654 cat >>confdefs.h <<_ACEOF 22655#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22656_ACEOF 22657 sendfile="1" 22658fi 22659done 22660 22661 22662 22663 22664# Check whether --with-sendfile was given. 22665if test "${with_sendfile+set}" = set; then : 22666 withval=$with_sendfile; if test "$withval" = "yes"; then 22667 sendfile="1" 22668 else 22669 sendfile="0" 22670 fi 22671else 22672 22673 orig_sendfile=$sendfile 22674 case $host in 22675 *freebsd*) 22676 # FreeBSD < 4.2 has issues with threads+sendfile 22677 if test $os_version -le "401999"; then 22678 if test "$threads" = "1"; then 22679 sendfile="0" 22680 fi 22681 fi 22682 ;; 22683 *alpha*-dec-osf* ) 22684 sendfile="0" 22685 ;; 22686 s390-*-linux-gnu) 22687 # disable sendfile support for 2.2 on S/390 22688 if test $os_pre24linux -eq 1; then 22689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabled sendfile support for Linux 2.2 on S/390" >&5 22690$as_echo "$as_me: WARNING: Disabled sendfile support for Linux 2.2 on S/390" >&2;} 22691 sendfile="0" 22692 fi 22693 ;; 22694 *aix*) 22695 # compiler-independent check for 64-bit build 22696 # The cast to long int works around a bug in the HP C Compiler 22697# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 22698# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 22699# This bug is HP SR number 8606223364. 22700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5 22701$as_echo_n "checking size of void*... " >&6; } 22702if ${ac_cv_sizeof_voidp+:} false; then : 22703 $as_echo_n "(cached) " >&6 22704else 22705 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then : 22706 22707else 22708 if test "$ac_cv_type_voidp" = yes; then 22709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22710$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22711as_fn_error 77 "cannot compute sizeof (void*) 22712See \`config.log' for more details" "$LINENO" 5; } 22713 else 22714 ac_cv_sizeof_voidp=0 22715 fi 22716fi 22717 22718fi 22719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5 22720$as_echo "$ac_cv_sizeof_voidp" >&6; } 22721 22722 22723 22724cat >>confdefs.h <<_ACEOF 22725#define SIZEOF_VOIDP $ac_cv_sizeof_voidp 22726_ACEOF 22727 22728 22729 if test "x$ac_cv_sizeof_voidp" = "x8"; then 22730 # sendfile not working for 64-bit build 22731 sendfile="0" 22732 fi 22733 ;; 22734 esac 22735 if test "$orig_sendfile" != "$sendfile"; then 22736 echo "sendfile support disabled to avoid system problem" 22737 fi 22738fi 22739 22740 22741 22742for ac_func in sigaction 22743do : 22744 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" 22745if test "x$ac_cv_func_sigaction" = xyes; then : 22746 cat >>confdefs.h <<_ACEOF 22747#define HAVE_SIGACTION 1 22748_ACEOF 22749 have_sigaction="1" 22750else 22751 have_sigaction="0" 22752fi 22753done 22754 22755ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h> 22756/* NetBSD declares sys_siglist in unistd.h. */ 22757#ifdef HAVE_UNISTD_H 22758# include <unistd.h> 22759#endif 22760 22761" 22762if test "x$ac_cv_have_decl_sys_siglist" = xyes; then : 22763 ac_have_decl=1 22764else 22765 ac_have_decl=0 22766fi 22767 22768cat >>confdefs.h <<_ACEOF 22769#define HAVE_DECL_SYS_SIGLIST $ac_have_decl 22770_ACEOF 22771 22772 22773 22774for ac_func in fork 22775do : 22776 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork" 22777if test "x$ac_cv_func_fork" = xyes; then : 22778 cat >>confdefs.h <<_ACEOF 22779#define HAVE_FORK 1 22780_ACEOF 22781 fork="1" 22782else 22783 fork="0" 22784fi 22785done 22786 22787 22788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr" >&5 22789$as_echo_n "checking for inet_addr... " >&6; } 22790if ${ac_cv_func_inet_addr+:} false; then : 22791 $as_echo_n "(cached) " >&6 22792else 22793 22794cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22795/* end confdefs.h. */ 22796 22797#ifdef HAVE_SYS_TYPES_H 22798#include <sys/types.h> 22799#endif 22800#ifdef HAVE_ARPA_INET_H 22801#include <arpa/inet.h> 22802#endif 22803 22804int 22805main () 22806{ 22807 22808inet_addr("127.0.0.1"); 22809 22810 ; 22811 return 0; 22812} 22813_ACEOF 22814if ac_fn_c_try_compile "$LINENO"; then : 22815 22816 ac_cv_func_inet_addr=yes 22817 22818else 22819 22820 ac_cv_func_inet_addr=no 22821 22822fi 22823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22824 22825fi 22826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_addr" >&5 22827$as_echo "$ac_cv_func_inet_addr" >&6; } 22828 22829if test "$ac_cv_func_inet_addr" = "yes"; then 22830 have_inet_addr=1 22831else 22832 have_inet_addr=0 22833fi 22834 22835 22836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_network" >&5 22837$as_echo_n "checking for inet_network... " >&6; } 22838if ${ac_cv_func_inet_network+:} false; then : 22839 $as_echo_n "(cached) " >&6 22840else 22841 22842cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22843/* end confdefs.h. */ 22844 22845#ifdef HAVE_SYS_TYPES_H 22846#include <sys/types.h> 22847#endif 22848#ifdef HAVE_ARPA_INET_H 22849#include <arpa/inet.h> 22850#endif 22851 22852int 22853main () 22854{ 22855 22856inet_network("127.0.0.1"); 22857 22858 ; 22859 return 0; 22860} 22861_ACEOF 22862if ac_fn_c_try_compile "$LINENO"; then : 22863 22864 ac_cv_func_inet_network=yes 22865 22866else 22867 22868 ac_cv_func_inet_network=no 22869 22870fi 22871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22872 22873fi 22874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_network" >&5 22875$as_echo "$ac_cv_func_inet_network" >&6; } 22876 22877if test "$ac_cv_func_inet_network" = "yes"; then 22878 have_inet_network=1 22879else 22880 have_inet_network=0 22881fi 22882 22883 22884ac_fn_c_check_func "$LINENO" "_getch" "ac_cv_func__getch" 22885if test "x$ac_cv_func__getch" = xyes; then : 22886 22887fi 22888 22889for ac_func in strerror_r 22890do : 22891 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 22892if test "x$ac_cv_func_strerror_r" = xyes; then : 22893 cat >>confdefs.h <<_ACEOF 22894#define HAVE_STRERROR_R 1 22895_ACEOF 22896 strerror_r="1" 22897else 22898 strerror_r="0" 22899fi 22900done 22901 22902if test "$strerror_r" = "1"; then 22903 22904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of return code from strerror_r" >&5 22905$as_echo_n "checking for type of return code from strerror_r... " >&6; } 22906if test "$cross_compiling" = yes; then : 22907 22908 ac_cv_strerror_r_rc_int=no 22909else 22910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22911/* end confdefs.h. */ 22912 22913#include <errno.h> 22914#include <string.h> 22915#include <stdio.h> 22916main() 22917{ 22918 char buf[1024]; 22919 if (strerror_r(ERANGE, buf, sizeof buf) < 1) { 22920 exit(0); 22921 } 22922 else { 22923 exit(1); 22924 } 22925} 22926_ACEOF 22927if ac_fn_c_try_run "$LINENO"; then : 22928 22929 ac_cv_strerror_r_rc_int=yes 22930else 22931 22932 ac_cv_strerror_r_rc_int=no 22933fi 22934rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22935 conftest.$ac_objext conftest.beam conftest.$ac_ext 22936fi 22937 22938if test "x$ac_cv_strerror_r_rc_int" = xyes; then 22939 22940$as_echo "#define STRERROR_R_RC_INT 1" >>confdefs.h 22941 22942 msg="int" 22943else 22944 msg="pointer" 22945fi 22946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 22947$as_echo "$msg" >&6; } 22948 22949fi 22950for ac_func in mmap 22951do : 22952 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" 22953if test "x$ac_cv_func_mmap" = xyes; then : 22954 cat >>confdefs.h <<_ACEOF 22955#define HAVE_MMAP 1 22956_ACEOF 22957 mmap="1" 22958else 22959 mmap="0" 22960fi 22961done 22962 22963if test "$native_mmap_emul" = "1"; then 22964 mmap="1" 22965fi 22966for ac_func in memmove 22967do : 22968 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 22969if test "x$ac_cv_func_memmove" = xyes; then : 22970 cat >>confdefs.h <<_ACEOF 22971#define HAVE_MEMMOVE 1 22972_ACEOF 22973 have_memmove="1" 22974else 22975 have_memmove="0" 22976fi 22977done 22978 22979for ac_func in getpass getpassphrase gmtime_r localtime_r 22980do : 22981 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22982ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 22983if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 22984 cat >>confdefs.h <<_ACEOF 22985#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 22986_ACEOF 22987 22988fi 22989done 22990 22991case $host in 22992 *-hp-hpux*) 22993 ;; 22994 *) 22995 for ac_func in mkstemp 22996do : 22997 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 22998if test "x$ac_cv_func_mkstemp" = xyes; then : 22999 cat >>confdefs.h <<_ACEOF 23000#define HAVE_MKSTEMP 1 23001_ACEOF 23002 23003fi 23004done 23005 23006 ;; 23007esac 23008 23009 23010 23011 23012 23013 23014 23015 23016 23017 23018 23019 23020 23021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sigwait takes one argument" >&5 23022$as_echo_n "checking whether sigwait takes one argument... " >&6; } 23023if ${ac_cv_sigwait_one_arg+:} false; then : 23024 $as_echo_n "(cached) " >&6 23025else 23026 23027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23028/* end confdefs.h. */ 23029 23030#if defined(__NETBSD__) || defined(DARWIN) 23031 /* When using the unproven-pthreads package, we need to pull in this 23032 * header to get a prototype for sigwait(). Else things will fail later 23033 * on. XXX Should probably be fixed in the unproven-pthreads package. 23034 * Darwin is declaring sigwait() in the wrong place as well. 23035 */ 23036#include <pthread.h> 23037#endif 23038#include <signal.h> 23039 23040int 23041main () 23042{ 23043 23044 sigset_t set; 23045 23046 sigwait(&set); 23047 23048 ; 23049 return 0; 23050} 23051_ACEOF 23052if ac_fn_c_try_compile "$LINENO"; then : 23053 23054 ac_cv_sigwait_one_arg=yes 23055 23056else 23057 23058 ac_cv_sigwait_one_arg=no 23059 23060fi 23061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23062fi 23063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sigwait_one_arg" >&5 23064$as_echo "$ac_cv_sigwait_one_arg" >&6; } 23065 if test "$ac_cv_sigwait_one_arg" = "yes"; then 23066 23067$as_echo "#define SIGWAIT_TAKES_ONE_ARG 1" >>confdefs.h 23068 23069 fi 23070 23071 23072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 23073$as_echo_n "checking for ANSI C header files... " >&6; } 23074if ${ac_cv_header_stdc+:} false; then : 23075 $as_echo_n "(cached) " >&6 23076else 23077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23078/* end confdefs.h. */ 23079#include <stdlib.h> 23080#include <stdarg.h> 23081#include <string.h> 23082#include <float.h> 23083 23084int 23085main () 23086{ 23087 23088 ; 23089 return 0; 23090} 23091_ACEOF 23092if ac_fn_c_try_compile "$LINENO"; then : 23093 ac_cv_header_stdc=yes 23094else 23095 ac_cv_header_stdc=no 23096fi 23097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23098 23099if test $ac_cv_header_stdc = yes; then 23100 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 23101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23102/* end confdefs.h. */ 23103#include <string.h> 23104 23105_ACEOF 23106if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23107 $EGREP "memchr" >/dev/null 2>&1; then : 23108 23109else 23110 ac_cv_header_stdc=no 23111fi 23112rm -f conftest* 23113 23114fi 23115 23116if test $ac_cv_header_stdc = yes; then 23117 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 23118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23119/* end confdefs.h. */ 23120#include <stdlib.h> 23121 23122_ACEOF 23123if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23124 $EGREP "free" >/dev/null 2>&1; then : 23125 23126else 23127 ac_cv_header_stdc=no 23128fi 23129rm -f conftest* 23130 23131fi 23132 23133if test $ac_cv_header_stdc = yes; then 23134 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 23135 if test "$cross_compiling" = yes; then : 23136 : 23137else 23138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23139/* end confdefs.h. */ 23140#include <ctype.h> 23141#include <stdlib.h> 23142#if ((' ' & 0x0FF) == 0x020) 23143# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 23144# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 23145#else 23146# define ISLOWER(c) \ 23147 (('a' <= (c) && (c) <= 'i') \ 23148 || ('j' <= (c) && (c) <= 'r') \ 23149 || ('s' <= (c) && (c) <= 'z')) 23150# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 23151#endif 23152 23153#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 23154int 23155main () 23156{ 23157 int i; 23158 for (i = 0; i < 256; i++) 23159 if (XOR (islower (i), ISLOWER (i)) 23160 || toupper (i) != TOUPPER (i)) 23161 return 2; 23162 return 0; 23163} 23164_ACEOF 23165if ac_fn_c_try_run "$LINENO"; then : 23166 23167else 23168 ac_cv_header_stdc=no 23169fi 23170rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23171 conftest.$ac_objext conftest.beam conftest.$ac_ext 23172fi 23173 23174fi 23175fi 23176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 23177$as_echo "$ac_cv_header_stdc" >&6; } 23178if test $ac_cv_header_stdc = yes; then 23179 23180$as_echo "#define STDC_HEADERS 1" >>confdefs.h 23181 23182fi 23183 23184 23185 23186for ac_header in ByteOrder.h \ 23187 conio.h \ 23188 crypt.h \ 23189 ctype.h \ 23190 dir.h \ 23191 dirent.h \ 23192 dl.h \ 23193 dlfcn.h \ 23194 errno.h \ 23195 fcntl.h \ 23196 grp.h \ 23197 inttypes.h \ 23198 io.h \ 23199 limits.h \ 23200 mach-o/dyld.h \ 23201 malloc.h \ 23202 memory.h \ 23203 netdb.h \ 23204 osreldate.h \ 23205 poll.h \ 23206 process.h \ 23207 pwd.h \ 23208 semaphore.h \ 23209 signal.h \ 23210 stdarg.h \ 23211 stddef.h \ 23212 stdio.h \ 23213 stdlib.h \ 23214 string.h \ 23215 strings.h \ 23216 sysapi.h \ 23217 sysgtime.h \ 23218 termios.h \ 23219 time.h \ 23220 tpfeq.h \ 23221 tpfio.h \ 23222 unistd.h \ 23223 unix.h \ 23224 windows.h \ 23225 winsock2.h \ 23226 arpa/inet.h \ 23227 kernel/OS.h \ 23228 net/errno.h \ 23229 netinet/in.h \ 23230 netinet/sctp.h \ 23231 netinet/sctp_uio.h \ 23232 sys/file.h \ 23233 sys/ioctl.h \ 23234 sys/mman.h \ 23235 sys/param.h \ 23236 sys/poll.h \ 23237 sys/resource.h \ 23238 sys/select.h \ 23239 sys/sem.h \ 23240 sys/sendfile.h \ 23241 sys/signal.h \ 23242 sys/socket.h \ 23243 sys/sockio.h \ 23244 sys/stat.h \ 23245 sys/sysctl.h \ 23246 sys/syslimits.h \ 23247 sys/time.h \ 23248 sys/types.h \ 23249 sys/uio.h \ 23250 sys/un.h \ 23251 sys/wait.h 23252do : 23253 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23254ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 23255if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 23256 cat >>confdefs.h <<_ACEOF 23257#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23258_ACEOF 23259 23260fi 23261 23262done 23263 23264for aprt_i in ByteOrder.h \ 23265 conio.h \ 23266 crypt.h \ 23267 ctype.h \ 23268 dir.h \ 23269 dirent.h \ 23270 dl.h \ 23271 dlfcn.h \ 23272 errno.h \ 23273 fcntl.h \ 23274 grp.h \ 23275 inttypes.h \ 23276 io.h \ 23277 limits.h \ 23278 mach-o/dyld.h \ 23279 malloc.h \ 23280 memory.h \ 23281 netdb.h \ 23282 osreldate.h \ 23283 poll.h \ 23284 process.h \ 23285 pwd.h \ 23286 semaphore.h \ 23287 signal.h \ 23288 stdarg.h \ 23289 stddef.h \ 23290 stdio.h \ 23291 stdlib.h \ 23292 string.h \ 23293 strings.h \ 23294 sysapi.h \ 23295 sysgtime.h \ 23296 termios.h \ 23297 time.h \ 23298 tpfeq.h \ 23299 tpfio.h \ 23300 unistd.h \ 23301 unix.h \ 23302 windows.h \ 23303 winsock2.h \ 23304 arpa/inet.h \ 23305 kernel/OS.h \ 23306 net/errno.h \ 23307 netinet/in.h \ 23308 netinet/sctp.h \ 23309 netinet/sctp_uio.h \ 23310 sys/file.h \ 23311 sys/ioctl.h \ 23312 sys/mman.h \ 23313 sys/param.h \ 23314 sys/poll.h \ 23315 sys/resource.h \ 23316 sys/select.h \ 23317 sys/sem.h \ 23318 sys/sendfile.h \ 23319 sys/signal.h \ 23320 sys/socket.h \ 23321 sys/sockio.h \ 23322 sys/stat.h \ 23323 sys/sysctl.h \ 23324 sys/syslimits.h \ 23325 sys/time.h \ 23326 sys/types.h \ 23327 sys/uio.h \ 23328 sys/un.h \ 23329 sys/wait.h 23330do 23331 ac_safe=`echo "$aprt_i" | sed 'y%./+-%__p_%'` 23332 aprt_2=`echo "$aprt_i" | sed -e 's%/%_%g' -e 's/\.//g' -e 's/-//g'` 23333 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 23334 eval "$aprt_2=1" 23335 else 23336 eval "$aprt_2=0" 23337 fi 23338done 23339 23340 23341# IRIX 6.5 has a problem in <netinet/tcp.h> which prevents it from 23342# being included by itself. Check for <netinet/tcp.h> manually, 23343# including another header file first. 23344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for netinet/tcp.h" >&5 23345$as_echo_n "checking for netinet/tcp.h... " >&6; } 23346if ${apr_cv_hdr_netinet_tcp_h+:} false; then : 23347 $as_echo_n "(cached) " >&6 23348else 23349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23350/* end confdefs.h. */ 23351#ifdef HAVE_NETINET_IN_H 23352#include <netinet/in.h> 23353#endif 23354#include <netinet/tcp.h> 23355 23356_ACEOF 23357if ac_fn_c_try_cpp "$LINENO"; then : 23358 apr_cv_hdr_netinet_tcp_h=yes 23359else 23360 apr_cv_hdr_netinet_tcp_h=no 23361fi 23362rm -f conftest.err conftest.i conftest.$ac_ext 23363fi 23364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_hdr_netinet_tcp_h" >&5 23365$as_echo "$apr_cv_hdr_netinet_tcp_h" >&6; } 23366if test "$apr_cv_hdr_netinet_tcp_h" = "yes"; then 23367 netinet_tcph=1 23368 23369$as_echo "#define HAVE_NETINET_TCP_H 1" >>confdefs.h 23370 23371else 23372 netinet_tcph=0 23373fi 23374 23375 23376 23377 23378 23379 23380 23381 23382 23383 23384 23385 23386 23387 23388 23389 23390 23391 23392 23393 23394 23395 23396 23397 23398 23399 23400 23401 23402 23403 23404 23405 23406 23407 23408 23409 23410 23411 23412 23413 23414 23415# Checking for h_errno in <netdb.h> 23416if test "$netdbh" = "1"; then 23417 23418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for h_errno in netdb.h" >&5 23419$as_echo_n "checking for h_errno in netdb.h... " >&6; } 23420 if ${ac_cv_h_errno_cppflags+:} false; then : 23421 $as_echo_n "(cached) " >&6 23422else 23423 23424 23425 if test x != x; then 23426 CPPFLAGS="-D $CPPFLAGS" 23427 fi 23428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23429/* end confdefs.h. */ 23430 23431#ifdef HAVE_SYS_TYPES_H 23432#include <sys/types.h> 23433#endif 23434#ifdef HAVE_NETDB_H 23435#include <netdb.h> 23436#endif 23437 23438int 23439main () 23440{ 23441 23442int h_e = h_errno; 23443 23444 ; 23445 return 0; 23446} 23447_ACEOF 23448if ac_fn_c_try_compile "$LINENO"; then : 23449 23450 if test x != x; then 23451 ac_cv_h_errno_cppflags="" 23452 else 23453 ac_cv_h_errno_cppflags=yes 23454 fi 23455 23456else 23457 23458 ac_cv_h_errno_cppflags=no 23459 23460fi 23461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23462 if test "$ac_cv_h_errno_cppflags" = "no"; then 23463 ac_save="$CPPFLAGS" 23464 for flag in _XOPEN_SOURCE_EXTENDED; do 23465 23466 if test x$flag != x; then 23467 CPPFLAGS="-D$flag $CPPFLAGS" 23468 fi 23469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23470/* end confdefs.h. */ 23471 23472#ifdef HAVE_SYS_TYPES_H 23473#include <sys/types.h> 23474#endif 23475#ifdef HAVE_NETDB_H 23476#include <netdb.h> 23477#endif 23478 23479int 23480main () 23481{ 23482 23483int h_e = h_errno; 23484 23485 ; 23486 return 0; 23487} 23488_ACEOF 23489if ac_fn_c_try_compile "$LINENO"; then : 23490 23491 if test x$flag != x; then 23492 ac_cv_h_errno_cppflags="$flag" 23493 else 23494 ac_cv_h_errno_cppflags=yes 23495 fi 23496 23497else 23498 23499 ac_cv_h_errno_cppflags=no 23500 23501fi 23502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23503 if test "$ac_cv_h_errno_cppflags" != "no"; then 23504 break 23505 fi 23506 done 23507 CPPFLAGS="$ac_save" 23508 fi 23509 23510fi 23511 23512 if test "$ac_cv_h_errno_cppflags" != "no"; then 23513 if test "$ac_cv_h_errno_cppflags" != "yes"; then 23514 CPPFLAGS="-D$ac_cv_h_errno_cppflags $CPPFLAGS" 23515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -D$ac_cv_h_errno_cppflags" >&5 23516$as_echo "yes, with -D$ac_cv_h_errno_cppflags" >&6; } 23517 else 23518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_h_errno_cppflags" >&5 23519$as_echo "$ac_cv_h_errno_cppflags" >&6; } 23520 fi 23521 else 23522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_h_errno_cppflags" >&5 23523$as_echo "$ac_cv_h_errno_cppflags" >&6; } 23524 fi 23525 23526 if test "$ac_cv_h_errno_cflags" = "no"; then 23527 as_fn_error $? "can not find h_errno in netdb.h" "$LINENO" 5 23528 fi 23529fi 23530 23531# Check whether --enable-allocator-uses-mmap was given. 23532if test "${enable_allocator_uses_mmap+set}" = set; then : 23533 enableval=$enable_allocator_uses_mmap; if test "$enableval" = "yes"; then 23534 ac_rc=yes 23535for ac_spec in header:sys/mman.h func:mmap func:munmap define:MAP_ANON; do 23536 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` 23537 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` 23538 case $ac_type in 23539 header ) 23540 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 23541 ac_var="ac_cv_header_$ac_item" 23542 ;; 23543 file ) 23544 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 23545 ac_var="ac_cv_file_$ac_item" 23546 ;; 23547 func ) ac_var="ac_cv_func_$ac_item" ;; 23548 struct ) ac_var="ac_cv_struct_$ac_item" ;; 23549 define ) ac_var="ac_cv_define_$ac_item" ;; 23550 custom ) ac_var="$ac_item" ;; 23551 esac 23552 eval "ac_val=\$$ac_var" 23553 if test ".$ac_val" != .yes; then 23554 ac_rc=no 23555 break 23556 fi 23557done 23558if test ".$ac_rc" = .yes; then 23559 : 23560 23561$as_echo "#define APR_ALLOCATOR_USES_MMAP 1" >>confdefs.h 23562 23563else 23564 : 23565 as_fn_error $? "mmap()/MAP_ANON not supported" "$LINENO" 5 23566 23567fi 23568 23569 fi 23570 23571fi 23572 23573 23574# Check whether --enable-allocator-guard-pages was given. 23575if test "${enable_allocator_guard_pages+set}" = set; then : 23576 enableval=$enable_allocator_guard_pages; if test "$enableval" = "yes"; then 23577 ac_rc=yes 23578for ac_spec in header:sys/mman.h func:mmap func:munmap func:mprotect define:MAP_ANON; do 23579 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` 23580 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` 23581 case $ac_type in 23582 header ) 23583 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 23584 ac_var="ac_cv_header_$ac_item" 23585 ;; 23586 file ) 23587 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 23588 ac_var="ac_cv_file_$ac_item" 23589 ;; 23590 func ) ac_var="ac_cv_func_$ac_item" ;; 23591 struct ) ac_var="ac_cv_struct_$ac_item" ;; 23592 define ) ac_var="ac_cv_define_$ac_item" ;; 23593 custom ) ac_var="$ac_item" ;; 23594 esac 23595 eval "ac_val=\$$ac_var" 23596 if test ".$ac_val" != .yes; then 23597 ac_rc=no 23598 break 23599 fi 23600done 23601if test ".$ac_rc" = .yes; then 23602 : 23603 23604$as_echo "#define APR_ALLOCATOR_GUARD_PAGES 1" >>confdefs.h 23605 23606else 23607 : 23608 as_fn_error $? "mmap()/MAP_ANON/mprotect() not supported" "$LINENO" 5 23609 23610fi 23611 23612 fi 23613 23614fi 23615 23616 23617 23618# Check whether --enable-pool-concurrency-check was given. 23619if test "${enable_pool_concurrency_check+set}" = set; then : 23620 enableval=$enable_pool_concurrency_check; if test "$enableval" = "yes"; then 23621 23622$as_echo "#define APR_POOL_CONCURRENCY_CHECK 1" >>confdefs.h 23623 23624 fi 23625 23626fi 23627 23628 23629ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 23630if test "x$ac_cv_type_off_t" = xyes; then : 23631 23632else 23633 23634cat >>confdefs.h <<_ACEOF 23635#define off_t long int 23636_ACEOF 23637 23638fi 23639 23640ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 23641if test "x$ac_cv_type_pid_t" = xyes; then : 23642 23643else 23644 23645cat >>confdefs.h <<_ACEOF 23646#define pid_t int 23647_ACEOF 23648 23649fi 23650 23651ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 23652if test "x$ac_cv_type_size_t" = xyes; then : 23653 23654else 23655 23656cat >>confdefs.h <<_ACEOF 23657#define size_t unsigned int 23658_ACEOF 23659 23660fi 23661 23662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 23663$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 23664if ${ac_cv_type_uid_t+:} false; then : 23665 $as_echo_n "(cached) " >&6 23666else 23667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23668/* end confdefs.h. */ 23669#include <sys/types.h> 23670 23671_ACEOF 23672if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23673 $EGREP "uid_t" >/dev/null 2>&1; then : 23674 ac_cv_type_uid_t=yes 23675else 23676 ac_cv_type_uid_t=no 23677fi 23678rm -f conftest* 23679 23680fi 23681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 23682$as_echo "$ac_cv_type_uid_t" >&6; } 23683if test $ac_cv_type_uid_t = no; then 23684 23685$as_echo "#define uid_t int" >>confdefs.h 23686 23687 23688$as_echo "#define gid_t int" >>confdefs.h 23689 23690fi 23691 23692ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 23693if test "x$ac_cv_type_ssize_t" = xyes; then : 23694 23695else 23696 23697cat >>confdefs.h <<_ACEOF 23698#define ssize_t int 23699_ACEOF 23700 23701fi 23702 23703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 23704$as_echo_n "checking for inline... " >&6; } 23705if ${ac_cv_c_inline+:} false; then : 23706 $as_echo_n "(cached) " >&6 23707else 23708 ac_cv_c_inline=no 23709for ac_kw in inline __inline__ __inline; do 23710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23711/* end confdefs.h. */ 23712#ifndef __cplusplus 23713typedef int foo_t; 23714static $ac_kw foo_t static_foo () {return 0; } 23715$ac_kw foo_t foo () {return 0; } 23716#endif 23717 23718_ACEOF 23719if ac_fn_c_try_compile "$LINENO"; then : 23720 ac_cv_c_inline=$ac_kw 23721fi 23722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23723 test "$ac_cv_c_inline" != no && break 23724done 23725 23726fi 23727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 23728$as_echo "$ac_cv_c_inline" >&6; } 23729 23730case $ac_cv_c_inline in 23731 inline | yes) ;; 23732 *) 23733 case $ac_cv_c_inline in 23734 no) ac_val=;; 23735 *) ac_val=$ac_cv_c_inline;; 23736 esac 23737 cat >>confdefs.h <<_ACEOF 23738#ifndef __cplusplus 23739#define inline $ac_val 23740#endif 23741_ACEOF 23742 ;; 23743esac 23744 23745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 23746$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 23747if ${ac_cv_c_const+:} false; then : 23748 $as_echo_n "(cached) " >&6 23749else 23750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23751/* end confdefs.h. */ 23752 23753int 23754main () 23755{ 23756 23757#ifndef __cplusplus 23758 /* Ultrix mips cc rejects this sort of thing. */ 23759 typedef int charset[2]; 23760 const charset cs = { 0, 0 }; 23761 /* SunOS 4.1.1 cc rejects this. */ 23762 char const *const *pcpcc; 23763 char **ppc; 23764 /* NEC SVR4.0.2 mips cc rejects this. */ 23765 struct point {int x, y;}; 23766 static struct point const zero = {0,0}; 23767 /* AIX XL C 1.02.0.0 rejects this. 23768 It does not let you subtract one const X* pointer from another in 23769 an arm of an if-expression whose if-part is not a constant 23770 expression */ 23771 const char *g = "string"; 23772 pcpcc = &g + (g ? g-g : 0); 23773 /* HPUX 7.0 cc rejects these. */ 23774 ++pcpcc; 23775 ppc = (char**) pcpcc; 23776 pcpcc = (char const *const *) ppc; 23777 { /* SCO 3.2v4 cc rejects this sort of thing. */ 23778 char tx; 23779 char *t = &tx; 23780 char const *s = 0 ? (char *) 0 : (char const *) 0; 23781 23782 *t++ = 0; 23783 if (s) return 0; 23784 } 23785 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 23786 int x[] = {25, 17}; 23787 const int *foo = &x[0]; 23788 ++foo; 23789 } 23790 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 23791 typedef const int *iptr; 23792 iptr p = 0; 23793 ++p; 23794 } 23795 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 23796 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 23797 struct s { int j; const int *ap[3]; } bx; 23798 struct s *b = &bx; b->j = 5; 23799 } 23800 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 23801 const int foo = 10; 23802 if (!foo) return 0; 23803 } 23804 return !cs[0] && !zero.x; 23805#endif 23806 23807 ; 23808 return 0; 23809} 23810_ACEOF 23811if ac_fn_c_try_compile "$LINENO"; then : 23812 ac_cv_c_const=yes 23813else 23814 ac_cv_c_const=no 23815fi 23816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23817fi 23818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 23819$as_echo "$ac_cv_c_const" >&6; } 23820if test $ac_cv_c_const = no; then 23821 23822$as_echo "#define const /**/" >>confdefs.h 23823 23824fi 23825 23826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5 23827$as_echo_n "checking whether setpgrp takes no argument... " >&6; } 23828if ${ac_cv_func_setpgrp_void+:} false; then : 23829 $as_echo_n "(cached) " >&6 23830else 23831 if test "$cross_compiling" = yes; then : 23832 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5 23833else 23834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23835/* end confdefs.h. */ 23836$ac_includes_default 23837int 23838main () 23839{ 23840/* If this system has a BSD-style setpgrp which takes arguments, 23841 setpgrp(1, 1) will fail with ESRCH and return -1, in that case 23842 exit successfully. */ 23843 return setpgrp (1,1) != -1; 23844 ; 23845 return 0; 23846} 23847_ACEOF 23848if ac_fn_c_try_run "$LINENO"; then : 23849 ac_cv_func_setpgrp_void=no 23850else 23851 ac_cv_func_setpgrp_void=yes 23852fi 23853rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23854 conftest.$ac_objext conftest.beam conftest.$ac_ext 23855fi 23856 23857fi 23858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5 23859$as_echo "$ac_cv_func_setpgrp_void" >&6; } 23860if test $ac_cv_func_setpgrp_void = yes; then 23861 23862$as_echo "#define SETPGRP_VOID 1" >>confdefs.h 23863 23864fi 23865 23866 23867 23868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 23869$as_echo_n "checking for socklen_t... " >&6; } 23870if ${ac_cv_socklen_t+:} false; then : 23871 $as_echo_n "(cached) " >&6 23872else 23873 23874cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23875/* end confdefs.h. */ 23876 23877#ifdef HAVE_SYS_TYPES_H 23878#include <sys/types.h> 23879#endif 23880#ifdef HAVE_SYS_SOCKET_H 23881#include <sys/socket.h> 23882#endif 23883 23884int 23885main () 23886{ 23887 23888socklen_t foo = (socklen_t) 0; 23889 23890 ; 23891 return 0; 23892} 23893_ACEOF 23894if ac_fn_c_try_compile "$LINENO"; then : 23895 23896 ac_cv_socklen_t=yes 23897 23898else 23899 23900 ac_cv_socklen_t=no 23901 23902fi 23903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23904 23905fi 23906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_socklen_t" >&5 23907$as_echo "$ac_cv_socklen_t" >&6; } 23908 23909if test "$ac_cv_socklen_t" = "yes"; then 23910 23911$as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h 23912 23913fi 23914 23915 23916# The cast to long int works around a bug in the HP C Compiler 23917# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23918# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23919# This bug is HP SR number 8606223364. 23920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5 23921$as_echo_n "checking size of void*... " >&6; } 23922if ${ac_cv_sizeof_voidp+:} false; then : 23923 $as_echo_n "(cached) " >&6 23924else 23925 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then : 23926 23927else 23928 if test "$ac_cv_type_voidp" = yes; then 23929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23930$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23931as_fn_error 77 "cannot compute sizeof (void*) 23932See \`config.log' for more details" "$LINENO" 5; } 23933 else 23934 ac_cv_sizeof_voidp=0 23935 fi 23936fi 23937 23938fi 23939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5 23940$as_echo "$ac_cv_sizeof_voidp" >&6; } 23941 23942 23943 23944cat >>confdefs.h <<_ACEOF 23945#define SIZEOF_VOIDP $ac_cv_sizeof_voidp 23946_ACEOF 23947 23948 23949 23950if test "x$ac_cv_sizeof_voidp" != "x"; then 23951 voidp_size=$ac_cv_sizeof_voidp 23952else 23953 as_fn_error $? "Cannot determine size of void*" "$LINENO" 5 23954fi 23955 23956# The cast to long int works around a bug in the HP C Compiler 23957# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23958# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23959# This bug is HP SR number 8606223364. 23960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 23961$as_echo_n "checking size of char... " >&6; } 23962if ${ac_cv_sizeof_char+:} false; then : 23963 $as_echo_n "(cached) " >&6 23964else 23965 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : 23966 23967else 23968 if test "$ac_cv_type_char" = yes; then 23969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23970$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23971as_fn_error 77 "cannot compute sizeof (char) 23972See \`config.log' for more details" "$LINENO" 5; } 23973 else 23974 ac_cv_sizeof_char=0 23975 fi 23976fi 23977 23978fi 23979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 23980$as_echo "$ac_cv_sizeof_char" >&6; } 23981 23982 23983 23984cat >>confdefs.h <<_ACEOF 23985#define SIZEOF_CHAR $ac_cv_sizeof_char 23986_ACEOF 23987 23988 23989# The cast to long int works around a bug in the HP C Compiler 23990# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 23991# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 23992# This bug is HP SR number 8606223364. 23993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 23994$as_echo_n "checking size of short... " >&6; } 23995if ${ac_cv_sizeof_short+:} false; then : 23996 $as_echo_n "(cached) " >&6 23997else 23998 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 23999 24000else 24001 if test "$ac_cv_type_short" = yes; then 24002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24003$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24004as_fn_error 77 "cannot compute sizeof (short) 24005See \`config.log' for more details" "$LINENO" 5; } 24006 else 24007 ac_cv_sizeof_short=0 24008 fi 24009fi 24010 24011fi 24012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 24013$as_echo "$ac_cv_sizeof_short" >&6; } 24014 24015 24016 24017cat >>confdefs.h <<_ACEOF 24018#define SIZEOF_SHORT $ac_cv_sizeof_short 24019_ACEOF 24020 24021 24022# The cast to long int works around a bug in the HP C Compiler 24023# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24024# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24025# This bug is HP SR number 8606223364. 24026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 24027$as_echo_n "checking size of int... " >&6; } 24028if ${ac_cv_sizeof_int+:} false; then : 24029 $as_echo_n "(cached) " >&6 24030else 24031 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 24032 24033else 24034 if test "$ac_cv_type_int" = yes; then 24035 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24036$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24037as_fn_error 77 "cannot compute sizeof (int) 24038See \`config.log' for more details" "$LINENO" 5; } 24039 else 24040 ac_cv_sizeof_int=0 24041 fi 24042fi 24043 24044fi 24045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 24046$as_echo "$ac_cv_sizeof_int" >&6; } 24047 24048 24049 24050cat >>confdefs.h <<_ACEOF 24051#define SIZEOF_INT $ac_cv_sizeof_int 24052_ACEOF 24053 24054 24055# The cast to long int works around a bug in the HP C Compiler 24056# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24057# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24058# This bug is HP SR number 8606223364. 24059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 24060$as_echo_n "checking size of long... " >&6; } 24061if ${ac_cv_sizeof_long+:} false; then : 24062 $as_echo_n "(cached) " >&6 24063else 24064 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 24065 24066else 24067 if test "$ac_cv_type_long" = yes; then 24068 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24069$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24070as_fn_error 77 "cannot compute sizeof (long) 24071See \`config.log' for more details" "$LINENO" 5; } 24072 else 24073 ac_cv_sizeof_long=0 24074 fi 24075fi 24076 24077fi 24078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 24079$as_echo "$ac_cv_sizeof_long" >&6; } 24080 24081 24082 24083cat >>confdefs.h <<_ACEOF 24084#define SIZEOF_LONG $ac_cv_sizeof_long 24085_ACEOF 24086 24087 24088# The cast to long int works around a bug in the HP C Compiler 24089# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24090# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24091# This bug is HP SR number 8606223364. 24092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 24093$as_echo_n "checking size of long long... " >&6; } 24094if ${ac_cv_sizeof_long_long+:} false; then : 24095 $as_echo_n "(cached) " >&6 24096else 24097 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 24098 24099else 24100 if test "$ac_cv_type_long_long" = yes; then 24101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24102$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24103as_fn_error 77 "cannot compute sizeof (long long) 24104See \`config.log' for more details" "$LINENO" 5; } 24105 else 24106 ac_cv_sizeof_long_long=0 24107 fi 24108fi 24109 24110fi 24111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 24112$as_echo "$ac_cv_sizeof_long_long" >&6; } 24113 24114 24115 24116cat >>confdefs.h <<_ACEOF 24117#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 24118_ACEOF 24119 24120 24121 24122if test "$ac_cv_sizeof_short" = "2"; then 24123 short_value=short 24124fi 24125if test "$ac_cv_sizeof_int" = "4"; then 24126 int_value=int 24127fi 24128 24129# Now we need to find what apr_int64_t (sizeof == 8) will be. 24130# The first match is our preference (use inttypes if available). 24131ac_rc=yes 24132for ac_spec in header:stdint.h header:inttypes.h; do 24133 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` 24134 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` 24135 case $ac_type in 24136 header ) 24137 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 24138 ac_var="ac_cv_header_$ac_item" 24139 ;; 24140 file ) 24141 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 24142 ac_var="ac_cv_file_$ac_item" 24143 ;; 24144 func ) ac_var="ac_cv_func_$ac_item" ;; 24145 struct ) ac_var="ac_cv_struct_$ac_item" ;; 24146 define ) ac_var="ac_cv_define_$ac_item" ;; 24147 custom ) ac_var="$ac_item" ;; 24148 esac 24149 eval "ac_val=\$$ac_var" 24150 if test ".$ac_val" != .yes; then 24151 ac_rc=no 24152 break 24153 fi 24154done 24155if test ".$ac_rc" = .yes; then 24156 : 24157 hasinttypes="1" 24158else 24159 : 24160 hasinttypes="0" 24161fi 24162 24163if test "$hasinttypes" = "1"; then 24164 int64_literal='#define APR_INT64_C(val) INT64_C(val)' 24165 uint64_literal='#define APR_UINT64_C(val) UINT64_C(val)' 24166 int64_t_fmt='#define APR_INT64_T_FMT PRId64' 24167 uint64_t_fmt='#define APR_UINT64_T_FMT PRIu64' 24168 uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT PRIx64' 24169 int64_value="int64_t" 24170 uint64_value="uint64_t" 24171 24172 24173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether int64_t and int use fmt %d" >&5 24174$as_echo_n "checking whether int64_t and int use fmt %d... " >&6; } 24175if ${apr_cv_typematch_int64_t_int_d+:} false; then : 24176 $as_echo_n "(cached) " >&6 24177else 24178 24179apr_save_CFLAGS=$CFLAGS 24180 CFLAGS="$CFLAGS $CFLAGS_WARN" 24181 if test "$ac_cv_c_compiler_gnu" = "yes"; then 24182 CFLAGS="$CFLAGS -Werror" 24183 fi 24184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24185/* end confdefs.h. */ 24186#include "confdefs.h" 24187 24188 #include <sys/types.h> 24189#include <stdio.h> 24190#ifdef HAVE_STDINT_H 24191#include <stdint.h> 24192#endif 24193 24194 int main(int argc, const char *const *argv) { 24195 24196 int64_t chk1, *ptr1; 24197 int chk2, *ptr2 = &chk1; 24198 ptr1 = &chk2; 24199 *ptr1 = *ptr2 = 0; 24200 printf("%d %d", chk1, chk2); 24201 24202 return 0; } 24203 24204_ACEOF 24205if ac_fn_c_try_compile "$LINENO"; then : 24206 CFLAGS=$apr_save_CFLAGS 24207apr_cv_typematch_int64_t_int_d=yes 24208else 24209 CFLAGS=$apr_save_CFLAGS 24210apr_cv_typematch_int64_t_int_d=no 24211fi 24212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24213 24214fi 24215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_int64_t_int_d" >&5 24216$as_echo "$apr_cv_typematch_int64_t_int_d" >&6; } 24217if test "$apr_cv_typematch_int64_t_int_d" = "yes"; then 24218 : 24219 24220 int64_strfn="strtoi" 24221 24222else 24223 : 24224 24225 24226 24227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether int64_t and long use fmt %ld" >&5 24228$as_echo_n "checking whether int64_t and long use fmt %ld... " >&6; } 24229if ${apr_cv_typematch_int64_t_long_ld+:} false; then : 24230 $as_echo_n "(cached) " >&6 24231else 24232 24233apr_save_CFLAGS=$CFLAGS 24234 CFLAGS="$CFLAGS $CFLAGS_WARN" 24235 if test "$ac_cv_c_compiler_gnu" = "yes"; then 24236 CFLAGS="$CFLAGS -Werror" 24237 fi 24238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24239/* end confdefs.h. */ 24240#include "confdefs.h" 24241 24242 #include <sys/types.h> 24243#include <stdio.h> 24244#ifdef HAVE_STDINT_H 24245#include <stdint.h> 24246#endif 24247 24248 int main(int argc, const char *const *argv) { 24249 24250 int64_t chk1, *ptr1; 24251 long chk2, *ptr2 = &chk1; 24252 ptr1 = &chk2; 24253 *ptr1 = *ptr2 = 0; 24254 printf("%ld %ld", chk1, chk2); 24255 24256 return 0; } 24257 24258_ACEOF 24259if ac_fn_c_try_compile "$LINENO"; then : 24260 CFLAGS=$apr_save_CFLAGS 24261apr_cv_typematch_int64_t_long_ld=yes 24262else 24263 CFLAGS=$apr_save_CFLAGS 24264apr_cv_typematch_int64_t_long_ld=no 24265fi 24266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24267 24268fi 24269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_int64_t_long_ld" >&5 24270$as_echo "$apr_cv_typematch_int64_t_long_ld" >&6; } 24271if test "$apr_cv_typematch_int64_t_long_ld" = "yes"; then 24272 : 24273 24274 int64_strfn="strtol" 24275 24276else 24277 : 24278 24279 24280 24281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether int64_t and long long use fmt %lld" >&5 24282$as_echo_n "checking whether int64_t and long long use fmt %lld... " >&6; } 24283if ${apr_cv_typematch_int64_t_long_long_lld+:} false; then : 24284 $as_echo_n "(cached) " >&6 24285else 24286 24287apr_save_CFLAGS=$CFLAGS 24288 CFLAGS="$CFLAGS $CFLAGS_WARN" 24289 if test "$ac_cv_c_compiler_gnu" = "yes"; then 24290 CFLAGS="$CFLAGS -Werror" 24291 fi 24292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24293/* end confdefs.h. */ 24294#include "confdefs.h" 24295 24296 #include <sys/types.h> 24297#include <stdio.h> 24298#ifdef HAVE_STDINT_H 24299#include <stdint.h> 24300#endif 24301 24302 int main(int argc, const char *const *argv) { 24303 24304 int64_t chk1, *ptr1; 24305 long long chk2, *ptr2 = &chk1; 24306 ptr1 = &chk2; 24307 *ptr1 = *ptr2 = 0; 24308 printf("%lld %lld", chk1, chk2); 24309 24310 return 0; } 24311 24312_ACEOF 24313if ac_fn_c_try_compile "$LINENO"; then : 24314 CFLAGS=$apr_save_CFLAGS 24315apr_cv_typematch_int64_t_long_long_lld=yes 24316else 24317 CFLAGS=$apr_save_CFLAGS 24318apr_cv_typematch_int64_t_long_long_lld=no 24319fi 24320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24321 24322fi 24323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_int64_t_long_long_lld" >&5 24324$as_echo "$apr_cv_typematch_int64_t_long_long_lld" >&6; } 24325if test "$apr_cv_typematch_int64_t_long_long_lld" = "yes"; then 24326 : 24327 24328 int64_strfn="strtoll" 24329 24330else 24331 : 24332 24333 as_fn_error $? "could not determine the string function for int64_t" "$LINENO" 5 24334 24335fi 24336 24337fi 24338 24339fi 24340 24341elif test "$ac_cv_sizeof_int" = "8"; then 24342 int64_literal='#define APR_INT64_C(val) (val)' 24343 uint64_literal='#define APR_UINT64_C(val) (val##U)' 24344 int64_t_fmt='#define APR_INT64_T_FMT "d"' 24345 uint64_t_fmt='#define APR_UINT64_T_FMT "u"' 24346 uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "x"' 24347 int64_value="int" 24348 uint64_value="unsigned int" 24349 int64_strfn="strtoi" 24350elif test "$ac_cv_sizeof_long" = "8"; then 24351 int64_literal='#define APR_INT64_C(val) (val##L)' 24352 uint64_literal='#define APR_UINT64_C(val) (val##UL)' 24353 int64_t_fmt='#define APR_INT64_T_FMT "ld"' 24354 uint64_t_fmt='#define APR_UINT64_T_FMT "lu"' 24355 uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "lx"' 24356 int64_value="long" 24357 uint64_value="unsigned long" 24358 int64_strfn="strtol" 24359elif test "$ac_cv_sizeof_long_long" = "8"; then 24360 int64_literal='#define APR_INT64_C(val) (val##LL)' 24361 uint64_literal='#define APR_UINT64_C(val) (val##ULL)' 24362 # Linux, Solaris, FreeBSD all support ll with printf. 24363 # BSD 4.4 originated 'q'. Solaris is more popular and 24364 # doesn't support 'q'. Solaris wins. Exceptions can 24365 # go to the OS-dependent section. 24366 int64_t_fmt='#define APR_INT64_T_FMT "lld"' 24367 uint64_t_fmt='#define APR_UINT64_T_FMT "llu"' 24368 uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "llx"' 24369 int64_value="long long" 24370 uint64_value="unsigned long long" 24371 int64_strfn="strtoll" 24372elif test "$ac_cv_sizeof_longlong" = "8"; then 24373 int64_literal='#define APR_INT64_C(val) (val##LL)' 24374 uint64_literal='#define APR_UINT64_C(val) (val##ULL)' 24375 int64_t_fmt='#define APR_INT64_T_FMT "qd"' 24376 uint64_t_fmt='#define APR_UINT64_T_FMT "qu"' 24377 uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "qx"' 24378 int64_value="__int64" 24379 uint64_value="unsigned __int64" 24380 int64_strfn="strtoll" 24381else 24382 # int64_literal may be overriden if your compiler thinks you have 24383 # a 64-bit value but APR does not agree. 24384 as_fn_error $? "could not detect a 64-bit integer type" "$LINENO" 5 24385fi 24386 24387# If present, allow the C99 macro INT64_C to override our conversion. 24388# 24389# HP-UX's ANSI C compiler provides this without any includes, so we 24390# will first look for INT64_C without adding stdint.h 24391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for INT64_C" >&5 24392$as_echo_n "checking for INT64_C... " >&6; } 24393if ${apr_cv_define_INT64_C+:} false; then : 24394 $as_echo_n "(cached) " >&6 24395else 24396 24397cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24398/* end confdefs.h. */ 24399#ifdef INT64_C 24400YES_IS_DEFINED 24401#endif 24402_ACEOF 24403if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24404 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then : 24405 apr_cv_define_INT64_C=yes 24406else 24407 24408 # Now check for INT64_C in stdint.h 24409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24410/* end confdefs.h. */ 24411#include <stdint.h> 24412#ifdef INT64_C 24413YES_IS_DEFINED 24414#endif 24415_ACEOF 24416if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24417 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then : 24418 apr_cv_define_INT64_C=yes 24419else 24420 apr_cv_define_INT64_C=no 24421fi 24422rm -f conftest* 24423 24424fi 24425rm -f conftest* 24426 24427fi 24428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_define_INT64_C" >&5 24429$as_echo "$apr_cv_define_INT64_C" >&6; } 24430 24431if test "$apr_cv_define_INT64_C" = "yes"; then 24432 int64_literal='#define APR_INT64_C(val) INT64_C(val)' 24433 uint64_literal='#define APR_UINT64_C(val) UINT64_C(val)' 24434 stdint=1 24435else 24436 stdint=0 24437fi 24438 24439if test "$ac_cv_type_size_t" = "yes"; then 24440 size_t_value="size_t" 24441else 24442 size_t_value="apr_int32_t" 24443fi 24444if test "$ac_cv_type_ssize_t" = "yes"; then 24445 ssize_t_value="ssize_t" 24446else 24447 ssize_t_value="apr_int32_t" 24448fi 24449if test "$ac_cv_socklen_t" = "yes"; then 24450 socklen_t_value="socklen_t" 24451 case $host in 24452 *-hp-hpux*) 24453 if test "$ac_cv_sizeof_long" = "8"; then 24454 # 64-bit HP-UX requires 32-bit socklens in 24455 # kernel, but user-space declarations say 24456 # 64-bit (socklen_t == size_t == long). 24457 # This will result in many compile warnings, 24458 # but we're functionally busted otherwise. 24459 socklen_t_value="int" 24460 fi 24461 ;; 24462 esac 24463else 24464 socklen_t_value="int" 24465fi 24466 24467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 24468$as_echo_n "checking size of pid_t... " >&6; } 24469if ${ac_cv_sizeof_pid_t+:} false; then : 24470 $as_echo_n "(cached) " >&6 24471else 24472 if test "$cross_compiling" = yes; then : 24473 ac_cv_sizeof_pid_t=8 24474else 24475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24476/* end confdefs.h. */ 24477#include <stdio.h> 24478#include <sys/types.h> 24479#ifdef WIN32 24480#define binmode "b" 24481#else 24482#define binmode 24483#endif 24484main() 24485{ 24486 FILE *f=fopen("conftestval", "w" binmode); 24487 if (!f) exit(1); 24488 fprintf(f, "%d\n", sizeof(pid_t)); 24489 exit(0); 24490} 24491_ACEOF 24492if ac_fn_c_try_run "$LINENO"; then : 24493 ac_cv_sizeof_pid_t=`cat conftestval` 24494else 24495 ac_cv_sizeof_pid_t=0 24496fi 24497rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24498 conftest.$ac_objext conftest.beam conftest.$ac_ext 24499fi 24500 24501fi 24502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 24503$as_echo "$ac_cv_sizeof_pid_t" >&6; } 24504 24505cat >>confdefs.h <<_ACEOF 24506#define SIZEOF_PID_T $ac_cv_sizeof_pid_t 24507_ACEOF 24508 24509 24510 24511if test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_short"; then 24512 pid_t_fmt='#define APR_PID_T_FMT "hd"' 24513elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_int"; then 24514 pid_t_fmt='#define APR_PID_T_FMT "d"' 24515elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_long"; then 24516 pid_t_fmt='#define APR_PID_T_FMT "ld"' 24517elif test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_long_long"; then 24518 pid_t_fmt='#define APR_PID_T_FMT APR_INT64_T_FMT' 24519else 24520 pid_t_fmt='#error Can not determine the proper size for pid_t' 24521fi 24522 24523# Basically, we have tried to figure out the correct format strings 24524# for APR types which vary between platforms, but we don't always get 24525# it right. 24526case $host in 24527 s390*linux*) 24528 # uniquely, the 31-bit Linux/s390 uses "unsigned long int" 24529 # for size_t rather than "unsigned int": 24530 size_t_fmt="lu" 24531 ssize_t_fmt="ld" 24532 ;; 24533 *-os2*) 24534 size_t_fmt="lu" 24535 ;; 24536 *-solaris*) 24537 if test "$ac_cv_sizeof_long" = "8"; then 24538 pid_t_fmt='#define APR_PID_T_FMT "d"' 24539 else 24540 pid_t_fmt='#define APR_PID_T_FMT "ld"' 24541 fi 24542 ;; 24543 *aix4*|*aix5*) 24544 ssize_t_fmt="ld" 24545 size_t_fmt="lu" 24546 ;; 24547 *beos*) 24548 ssize_t_fmt="ld" 24549 size_t_fmt="ld" 24550 ;; 24551 *apple-darwin*) 24552 osver=`uname -r` 24553 case $osver in 24554 [0-7].*) 24555 ssize_t_fmt="d" 24556 ;; 24557 *) 24558 ssize_t_fmt="ld" 24559 ;; 24560 esac 24561 size_t_fmt="lu" 24562 ;; 24563 *-mingw*) 24564 int64_t_fmt='#define APR_INT64_T_FMT "I64d"' 24565 uint64_t_fmt='#define APR_UINT64_T_FMT "I64u"' 24566 uint64_t_hex_fmt='#define APR_UINT64_T_HEX_FMT "I64x"' 24567 int64_value="__int64" 24568 uint64_value="unsigned __int64" 24569 int64_strfn="_strtoi64" 24570 ;; 24571esac 24572 24573 24574 24575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ssize_t and long use fmt %ld" >&5 24576$as_echo_n "checking whether ssize_t and long use fmt %ld... " >&6; } 24577if ${apr_cv_typematch_ssize_t_long_ld+:} false; then : 24578 $as_echo_n "(cached) " >&6 24579else 24580 24581apr_save_CFLAGS=$CFLAGS 24582 CFLAGS="$CFLAGS $CFLAGS_WARN" 24583 if test "$ac_cv_c_compiler_gnu" = "yes"; then 24584 CFLAGS="$CFLAGS -Werror" 24585 fi 24586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24587/* end confdefs.h. */ 24588#include "confdefs.h" 24589 24590 #include <sys/types.h> 24591#include <stdio.h> 24592#ifdef HAVE_STDINT_H 24593#include <stdint.h> 24594#endif 24595 24596 int main(int argc, const char *const *argv) { 24597 24598 ssize_t chk1, *ptr1; 24599 long chk2, *ptr2 = &chk1; 24600 ptr1 = &chk2; 24601 *ptr1 = *ptr2 = 0; 24602 printf("%ld %ld", chk1, chk2); 24603 24604 return 0; } 24605 24606_ACEOF 24607if ac_fn_c_try_compile "$LINENO"; then : 24608 CFLAGS=$apr_save_CFLAGS 24609apr_cv_typematch_ssize_t_long_ld=yes 24610else 24611 CFLAGS=$apr_save_CFLAGS 24612apr_cv_typematch_ssize_t_long_ld=no 24613fi 24614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24615 24616fi 24617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_ssize_t_long_ld" >&5 24618$as_echo "$apr_cv_typematch_ssize_t_long_ld" >&6; } 24619if test "$apr_cv_typematch_ssize_t_long_ld" = "yes"; then 24620 : 24621 ssize_t_fmt="ld" 24622else 24623 : 24624 24625 24626 24627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ssize_t and int use fmt %d" >&5 24628$as_echo_n "checking whether ssize_t and int use fmt %d... " >&6; } 24629if ${apr_cv_typematch_ssize_t_int_d+:} false; then : 24630 $as_echo_n "(cached) " >&6 24631else 24632 24633apr_save_CFLAGS=$CFLAGS 24634 CFLAGS="$CFLAGS $CFLAGS_WARN" 24635 if test "$ac_cv_c_compiler_gnu" = "yes"; then 24636 CFLAGS="$CFLAGS -Werror" 24637 fi 24638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24639/* end confdefs.h. */ 24640#include "confdefs.h" 24641 24642 #include <sys/types.h> 24643#include <stdio.h> 24644#ifdef HAVE_STDINT_H 24645#include <stdint.h> 24646#endif 24647 24648 int main(int argc, const char *const *argv) { 24649 24650 ssize_t chk1, *ptr1; 24651 int chk2, *ptr2 = &chk1; 24652 ptr1 = &chk2; 24653 *ptr1 = *ptr2 = 0; 24654 printf("%d %d", chk1, chk2); 24655 24656 return 0; } 24657 24658_ACEOF 24659if ac_fn_c_try_compile "$LINENO"; then : 24660 CFLAGS=$apr_save_CFLAGS 24661apr_cv_typematch_ssize_t_int_d=yes 24662else 24663 CFLAGS=$apr_save_CFLAGS 24664apr_cv_typematch_ssize_t_int_d=no 24665fi 24666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24667 24668fi 24669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_ssize_t_int_d" >&5 24670$as_echo "$apr_cv_typematch_ssize_t_int_d" >&6; } 24671if test "$apr_cv_typematch_ssize_t_int_d" = "yes"; then 24672 : 24673 ssize_t_fmt="d" 24674else 24675 : 24676 24677fi 24678 24679 24680fi 24681 24682 24683 24684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether size_t and unsigned long use fmt %lu" >&5 24685$as_echo_n "checking whether size_t and unsigned long use fmt %lu... " >&6; } 24686if ${apr_cv_typematch_size_t_unsigned_long_lu+:} false; then : 24687 $as_echo_n "(cached) " >&6 24688else 24689 24690apr_save_CFLAGS=$CFLAGS 24691 CFLAGS="$CFLAGS $CFLAGS_WARN" 24692 if test "$ac_cv_c_compiler_gnu" = "yes"; then 24693 CFLAGS="$CFLAGS -Werror" 24694 fi 24695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24696/* end confdefs.h. */ 24697#include "confdefs.h" 24698 24699 #include <sys/types.h> 24700#include <stdio.h> 24701#ifdef HAVE_STDINT_H 24702#include <stdint.h> 24703#endif 24704 24705 int main(int argc, const char *const *argv) { 24706 24707 size_t chk1, *ptr1; 24708 unsigned long chk2, *ptr2 = &chk1; 24709 ptr1 = &chk2; 24710 *ptr1 = *ptr2 = 0; 24711 printf("%lu %lu", chk1, chk2); 24712 24713 return 0; } 24714 24715_ACEOF 24716if ac_fn_c_try_compile "$LINENO"; then : 24717 CFLAGS=$apr_save_CFLAGS 24718apr_cv_typematch_size_t_unsigned_long_lu=yes 24719else 24720 CFLAGS=$apr_save_CFLAGS 24721apr_cv_typematch_size_t_unsigned_long_lu=no 24722fi 24723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24724 24725fi 24726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_size_t_unsigned_long_lu" >&5 24727$as_echo "$apr_cv_typematch_size_t_unsigned_long_lu" >&6; } 24728if test "$apr_cv_typematch_size_t_unsigned_long_lu" = "yes"; then 24729 : 24730 size_t_fmt="lu" 24731else 24732 : 24733 24734 24735 24736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether size_t and unsigned int use fmt %u" >&5 24737$as_echo_n "checking whether size_t and unsigned int use fmt %u... " >&6; } 24738if ${apr_cv_typematch_size_t_unsigned_int_u+:} false; then : 24739 $as_echo_n "(cached) " >&6 24740else 24741 24742apr_save_CFLAGS=$CFLAGS 24743 CFLAGS="$CFLAGS $CFLAGS_WARN" 24744 if test "$ac_cv_c_compiler_gnu" = "yes"; then 24745 CFLAGS="$CFLAGS -Werror" 24746 fi 24747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24748/* end confdefs.h. */ 24749#include "confdefs.h" 24750 24751 #include <sys/types.h> 24752#include <stdio.h> 24753#ifdef HAVE_STDINT_H 24754#include <stdint.h> 24755#endif 24756 24757 int main(int argc, const char *const *argv) { 24758 24759 size_t chk1, *ptr1; 24760 unsigned int chk2, *ptr2 = &chk1; 24761 ptr1 = &chk2; 24762 *ptr1 = *ptr2 = 0; 24763 printf("%u %u", chk1, chk2); 24764 24765 return 0; } 24766 24767_ACEOF 24768if ac_fn_c_try_compile "$LINENO"; then : 24769 CFLAGS=$apr_save_CFLAGS 24770apr_cv_typematch_size_t_unsigned_int_u=yes 24771else 24772 CFLAGS=$apr_save_CFLAGS 24773apr_cv_typematch_size_t_unsigned_int_u=no 24774fi 24775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24776 24777fi 24778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_size_t_unsigned_int_u" >&5 24779$as_echo "$apr_cv_typematch_size_t_unsigned_int_u" >&6; } 24780if test "$apr_cv_typematch_size_t_unsigned_int_u" = "yes"; then 24781 : 24782 size_t_fmt="u" 24783else 24784 : 24785 24786fi 24787 24788 24789fi 24790 24791 24792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5 24793$as_echo_n "checking size of ssize_t... " >&6; } 24794if ${ac_cv_sizeof_ssize_t+:} false; then : 24795 $as_echo_n "(cached) " >&6 24796else 24797 if test "$cross_compiling" = yes; then : 24798 ac_cv_sizeof_ssize_t=8 24799else 24800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24801/* end confdefs.h. */ 24802#include <stdio.h> 24803#include <sys/types.h> 24804#ifdef WIN32 24805#define binmode "b" 24806#else 24807#define binmode 24808#endif 24809main() 24810{ 24811 FILE *f=fopen("conftestval", "w" binmode); 24812 if (!f) exit(1); 24813 fprintf(f, "%d\n", sizeof(ssize_t)); 24814 exit(0); 24815} 24816_ACEOF 24817if ac_fn_c_try_run "$LINENO"; then : 24818 ac_cv_sizeof_ssize_t=`cat conftestval` 24819else 24820 ac_cv_sizeof_ssize_t=0 24821fi 24822rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24823 conftest.$ac_objext conftest.beam conftest.$ac_ext 24824fi 24825 24826fi 24827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5 24828$as_echo "$ac_cv_sizeof_ssize_t" >&6; } 24829 24830cat >>confdefs.h <<_ACEOF 24831#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t 24832_ACEOF 24833 24834 24835 24836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which format to use for apr_ssize_t" >&5 24837$as_echo_n "checking which format to use for apr_ssize_t... " >&6; } 24838if test -n "$ssize_t_fmt"; then 24839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: %$ssize_t_fmt" >&5 24840$as_echo "%$ssize_t_fmt" >&6; } 24841elif test "$ac_cv_sizeof_ssize_t" = "$ac_cv_sizeof_int"; then 24842 ssize_t_fmt="d" 24843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: %d" >&5 24844$as_echo "%d" >&6; } 24845elif test "$ac_cv_sizeof_ssize_t" = "$ac_cv_sizeof_long"; then 24846 ssize_t_fmt="ld" 24847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: %ld" >&5 24848$as_echo "%ld" >&6; } 24849else 24850 as_fn_error $? "could not determine the proper format for apr_ssize_t" "$LINENO" 5 24851fi 24852 24853ssize_t_fmt="#define APR_SSIZE_T_FMT \"$ssize_t_fmt\"" 24854 24855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 24856$as_echo_n "checking size of size_t... " >&6; } 24857if ${ac_cv_sizeof_size_t+:} false; then : 24858 $as_echo_n "(cached) " >&6 24859else 24860 if test "$cross_compiling" = yes; then : 24861 ac_cv_sizeof_size_t=8 24862else 24863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24864/* end confdefs.h. */ 24865#include <stdio.h> 24866#include <stddef.h> 24867#ifdef WIN32 24868#define binmode "b" 24869#else 24870#define binmode 24871#endif 24872main() 24873{ 24874 FILE *f=fopen("conftestval", "w" binmode); 24875 if (!f) exit(1); 24876 fprintf(f, "%d\n", sizeof(size_t)); 24877 exit(0); 24878} 24879_ACEOF 24880if ac_fn_c_try_run "$LINENO"; then : 24881 ac_cv_sizeof_size_t=`cat conftestval` 24882else 24883 ac_cv_sizeof_size_t=0 24884fi 24885rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24886 conftest.$ac_objext conftest.beam conftest.$ac_ext 24887fi 24888 24889fi 24890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 24891$as_echo "$ac_cv_sizeof_size_t" >&6; } 24892 24893cat >>confdefs.h <<_ACEOF 24894#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 24895_ACEOF 24896 24897 24898 24899# else cases below should no longer occur; 24900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which format to use for apr_size_t" >&5 24901$as_echo_n "checking which format to use for apr_size_t... " >&6; } 24902if test -n "$size_t_fmt"; then 24903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: %$size_t_fmt" >&5 24904$as_echo "%$size_t_fmt" >&6; } 24905elif test "$ac_cv_sizeof_size_t" = "$ac_cv_sizeof_int"; then 24906 size_t_fmt="d" 24907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: %d" >&5 24908$as_echo "%d" >&6; } 24909elif test "$ac_cv_sizeof_size_t" = "$ac_cv_sizeof_long"; then 24910 size_t_fmt="ld" 24911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: %ld" >&5 24912$as_echo "%ld" >&6; } 24913else 24914 as_fn_error $? "could not determine the proper format for apr_size_t" "$LINENO" 5 24915fi 24916 24917size_t_fmt="#define APR_SIZE_T_FMT \"$size_t_fmt\"" 24918 24919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 24920$as_echo_n "checking size of off_t... " >&6; } 24921if ${ac_cv_sizeof_off_t+:} false; then : 24922 $as_echo_n "(cached) " >&6 24923else 24924 if test "$cross_compiling" = yes; then : 24925 ac_cv_sizeof_off_t=8 24926else 24927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24928/* end confdefs.h. */ 24929#include <stdio.h> 24930#include <sys/types.h> 24931#ifdef WIN32 24932#define binmode "b" 24933#else 24934#define binmode 24935#endif 24936main() 24937{ 24938 FILE *f=fopen("conftestval", "w" binmode); 24939 if (!f) exit(1); 24940 fprintf(f, "%d\n", sizeof(off_t)); 24941 exit(0); 24942} 24943_ACEOF 24944if ac_fn_c_try_run "$LINENO"; then : 24945 ac_cv_sizeof_off_t=`cat conftestval` 24946else 24947 ac_cv_sizeof_off_t=0 24948fi 24949rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24950 conftest.$ac_objext conftest.beam conftest.$ac_ext 24951fi 24952 24953fi 24954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 24955$as_echo "$ac_cv_sizeof_off_t" >&6; } 24956 24957cat >>confdefs.h <<_ACEOF 24958#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 24959_ACEOF 24960 24961 24962 24963if test "${ac_cv_sizeof_off_t}${apr_cv_use_lfs64}" = "4yes"; then 24964 # Enable LFS 24965 aprlfs=1 24966 for ac_func in mmap64 sendfile64 sendfilev64 readdir64_r 24967do : 24968 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 24969ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 24970if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 24971 cat >>confdefs.h <<_ACEOF 24972#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 24973_ACEOF 24974 24975fi 24976done 24977 24978 case $host in 24979 *-hp-hpux*) 24980 ;; 24981 *) 24982 for ac_func in mkstemp64 24983do : 24984 ac_fn_c_check_func "$LINENO" "mkstemp64" "ac_cv_func_mkstemp64" 24985if test "x$ac_cv_func_mkstemp64" = xyes; then : 24986 cat >>confdefs.h <<_ACEOF 24987#define HAVE_MKSTEMP64 1 24988_ACEOF 24989 24990fi 24991done 24992 24993 ;; 24994 esac 24995elif test "${ac_cv_sizeof_off_t}" != "${ac_cv_sizeof_size_t}"; then 24996 # unsure of using -gt above is as portable, can can't forsee where 24997 # off_t can legitimately be smaller than size_t 24998 aprlfs=1 24999else 25000 aprlfs=0 25001fi 25002 25003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which type to use for apr_off_t" >&5 25004$as_echo_n "checking which type to use for apr_off_t... " >&6; } 25005if test "${ac_cv_sizeof_off_t}${apr_cv_use_lfs64}" = "4yes"; then 25006 # LFS is go! 25007 off_t_fmt='#define APR_OFF_T_FMT APR_INT64_T_FMT' 25008 off_t_value='off64_t' 25009 off_t_strfn='apr_strtoi64' 25010elif test "${ac_cv_sizeof_off_t}x${ac_cv_sizeof_long}" = "4x4"; then 25011 # Special case: off_t may change size with _FILE_OFFSET_BITS 25012 # on 32-bit systems with LFS support. To avoid compatibility 25013 # issues when other packages do define _FILE_OFFSET_BITS, 25014 # hard-code apr_off_t to long. 25015 off_t_value=long 25016 off_t_fmt='#define APR_OFF_T_FMT "ld"' 25017 off_t_strfn='strtol' 25018elif test "$ac_cv_type_off_t" = "yes"; then 25019 # off_t is more commonly a long than an int; prefer that case 25020 # where int and long are the same size and interchangable. 25021 off_t_value=off_t 25022 25023 25024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether off_t and long use fmt %ld" >&5 25025$as_echo_n "checking whether off_t and long use fmt %ld... " >&6; } 25026if ${apr_cv_typematch_off_t_long_ld+:} false; then : 25027 $as_echo_n "(cached) " >&6 25028else 25029 25030apr_save_CFLAGS=$CFLAGS 25031 CFLAGS="$CFLAGS $CFLAGS_WARN" 25032 if test "$ac_cv_c_compiler_gnu" = "yes"; then 25033 CFLAGS="$CFLAGS -Werror" 25034 fi 25035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25036/* end confdefs.h. */ 25037#include "confdefs.h" 25038 25039 #include <sys/types.h> 25040#include <stdio.h> 25041#ifdef HAVE_STDINT_H 25042#include <stdint.h> 25043#endif 25044 25045 int main(int argc, const char *const *argv) { 25046 25047 off_t chk1, *ptr1; 25048 long chk2, *ptr2 = &chk1; 25049 ptr1 = &chk2; 25050 *ptr1 = *ptr2 = 0; 25051 printf("%ld %ld", chk1, chk2); 25052 25053 return 0; } 25054 25055_ACEOF 25056if ac_fn_c_try_compile "$LINENO"; then : 25057 CFLAGS=$apr_save_CFLAGS 25058apr_cv_typematch_off_t_long_ld=yes 25059else 25060 CFLAGS=$apr_save_CFLAGS 25061apr_cv_typematch_off_t_long_ld=no 25062fi 25063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25064 25065fi 25066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_off_t_long_ld" >&5 25067$as_echo "$apr_cv_typematch_off_t_long_ld" >&6; } 25068if test "$apr_cv_typematch_off_t_long_ld" = "yes"; then 25069 : 25070 25071 off_t_fmt="#define APR_OFF_T_FMT \"ld\"" 25072 off_t_strfn='strtol' 25073 25074else 25075 : 25076 25077 25078 25079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether off_t and int use fmt %d" >&5 25080$as_echo_n "checking whether off_t and int use fmt %d... " >&6; } 25081if ${apr_cv_typematch_off_t_int_d+:} false; then : 25082 $as_echo_n "(cached) " >&6 25083else 25084 25085apr_save_CFLAGS=$CFLAGS 25086 CFLAGS="$CFLAGS $CFLAGS_WARN" 25087 if test "$ac_cv_c_compiler_gnu" = "yes"; then 25088 CFLAGS="$CFLAGS -Werror" 25089 fi 25090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25091/* end confdefs.h. */ 25092#include "confdefs.h" 25093 25094 #include <sys/types.h> 25095#include <stdio.h> 25096#ifdef HAVE_STDINT_H 25097#include <stdint.h> 25098#endif 25099 25100 int main(int argc, const char *const *argv) { 25101 25102 off_t chk1, *ptr1; 25103 int chk2, *ptr2 = &chk1; 25104 ptr1 = &chk2; 25105 *ptr1 = *ptr2 = 0; 25106 printf("%d %d", chk1, chk2); 25107 25108 return 0; } 25109 25110_ACEOF 25111if ac_fn_c_try_compile "$LINENO"; then : 25112 CFLAGS=$apr_save_CFLAGS 25113apr_cv_typematch_off_t_int_d=yes 25114else 25115 CFLAGS=$apr_save_CFLAGS 25116apr_cv_typematch_off_t_int_d=no 25117fi 25118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25119 25120fi 25121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_off_t_int_d" >&5 25122$as_echo "$apr_cv_typematch_off_t_int_d" >&6; } 25123if test "$apr_cv_typematch_off_t_int_d" = "yes"; then 25124 : 25125 25126 off_t_fmt="#define APR_OFF_T_FMT \"d\"" 25127 off_t_strfn='strtoi' 25128 25129else 25130 : 25131 25132 25133 25134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether off_t and long long use fmt %lld" >&5 25135$as_echo_n "checking whether off_t and long long use fmt %lld... " >&6; } 25136if ${apr_cv_typematch_off_t_long_long_lld+:} false; then : 25137 $as_echo_n "(cached) " >&6 25138else 25139 25140apr_save_CFLAGS=$CFLAGS 25141 CFLAGS="$CFLAGS $CFLAGS_WARN" 25142 if test "$ac_cv_c_compiler_gnu" = "yes"; then 25143 CFLAGS="$CFLAGS -Werror" 25144 fi 25145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25146/* end confdefs.h. */ 25147#include "confdefs.h" 25148 25149 #include <sys/types.h> 25150#include <stdio.h> 25151#ifdef HAVE_STDINT_H 25152#include <stdint.h> 25153#endif 25154 25155 int main(int argc, const char *const *argv) { 25156 25157 off_t chk1, *ptr1; 25158 long long chk2, *ptr2 = &chk1; 25159 ptr1 = &chk2; 25160 *ptr1 = *ptr2 = 0; 25161 printf("%lld %lld", chk1, chk2); 25162 25163 return 0; } 25164 25165_ACEOF 25166if ac_fn_c_try_compile "$LINENO"; then : 25167 CFLAGS=$apr_save_CFLAGS 25168apr_cv_typematch_off_t_long_long_lld=yes 25169else 25170 CFLAGS=$apr_save_CFLAGS 25171apr_cv_typematch_off_t_long_long_lld=no 25172fi 25173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25174 25175fi 25176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_typematch_off_t_long_long_lld" >&5 25177$as_echo "$apr_cv_typematch_off_t_long_long_lld" >&6; } 25178if test "$apr_cv_typematch_off_t_long_long_lld" = "yes"; then 25179 : 25180 25181 off_t_fmt="#define APR_OFF_T_FMT \"lld\"" 25182 off_t_strfn='strtoll' 25183 25184else 25185 : 25186 25187 25188 25189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether off_t and $int64_value use fmt %I64d" >&5 25190$as_echo_n "checking whether off_t and $int64_value use fmt %I64d... " >&6; } 25191if eval \${apr_cv_typematch_off_t_$int64_value_I64d+:} false; then : 25192 $as_echo_n "(cached) " >&6 25193else 25194 25195apr_save_CFLAGS=$CFLAGS 25196 CFLAGS="$CFLAGS $CFLAGS_WARN" 25197 if test "$ac_cv_c_compiler_gnu" = "yes"; then 25198 CFLAGS="$CFLAGS -Werror" 25199 fi 25200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25201/* end confdefs.h. */ 25202#include "confdefs.h" 25203 25204 #include <sys/types.h> 25205#include <stdio.h> 25206#ifdef HAVE_STDINT_H 25207#include <stdint.h> 25208#endif 25209 25210 int main(int argc, const char *const *argv) { 25211 25212 off_t chk1, *ptr1; 25213 $int64_value chk2, *ptr2 = &chk1; 25214 ptr1 = &chk2; 25215 *ptr1 = *ptr2 = 0; 25216 printf("%I64d %I64d", chk1, chk2); 25217 25218 return 0; } 25219 25220_ACEOF 25221if ac_fn_c_try_compile "$LINENO"; then : 25222 CFLAGS=$apr_save_CFLAGS 25223apr_cv_typematch_off_t_$int64_value_I64d=yes 25224else 25225 CFLAGS=$apr_save_CFLAGS 25226apr_cv_typematch_off_t_$int64_value_I64d=no 25227fi 25228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25229 25230fi 25231eval ac_res=\$apr_cv_typematch_off_t_$int64_value_I64d 25232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 25233$as_echo "$ac_res" >&6; } 25234if test "$apr_cv_typematch_off_t_$int64_value_I64d" = "yes"; then 25235 : 25236 25237 off_t_fmt="#define APR_OFF_T_FMT APR_INT64_T_FMT" 25238 off_t_strfn='apr_strtoi64' 25239else 25240 : 25241 25242 # Per OS tuning... 25243 case $host in 25244 *-mingw*) 25245 off_t_value=apr_int64_t 25246 off_t_fmt='#define APR_OFF_T_FMT "I64d"' 25247 off_t_strfn='_strtoi64' 25248 ;; 25249 *) 25250 as_fn_error $? "could not determine the size of off_t" "$LINENO" 5 25251 ;; 25252 esac 25253 25254fi 25255 25256fi 25257 25258fi 25259 25260fi 25261 25262else 25263 # Fallback on int 25264 off_t_value=apr_int32_t 25265 off_t_fmt=d 25266 off_t_strfn='strtoi' 25267fi 25268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $off_t_value" >&5 25269$as_echo "$off_t_value" >&6; } 25270 25271# Regardless of whether _LARGEFILE64_SOURCE is used, on some 25272# platforms _FILE_OFFSET_BITS will affect the size of ino_t and hence 25273# the build-time ABI may be different from the apparent ABI when using 25274# APR with another package which *does* define _FILE_OFFSET_BITS. 25275# (Exactly as per the case above with off_t where LFS is *not* used) 25276# 25277# To be safe, hard-code apr_ino_t as 'unsigned long' or 'unsigned int' 25278# iff that is exactly the size of ino_t here; otherwise use ino_t as existing 25279# releases did. To be correct, apr_ino_t should have been made an 25280# ino64_t as apr_off_t is off64_t, but this can't be done now without 25281# breaking ABI. 25282 25283# Per OS tuning... 25284case $host in 25285*mingw*) 25286 ino_t_value=apr_int64_t 25287 ;; 25288*) 25289 ino_t_value=ino_t 25290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5 25291$as_echo_n "checking size of ino_t... " >&6; } 25292if ${ac_cv_sizeof_ino_t+:} false; then : 25293 $as_echo_n "(cached) " >&6 25294else 25295 if test "$cross_compiling" = yes; then : 25296 ac_cv_sizeof_ino_t=$ac_cv_sizeof_long 25297else 25298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25299/* end confdefs.h. */ 25300#include <stdio.h> 25301$ac_includes_default 25302#ifdef WIN32 25303#define binmode "b" 25304#else 25305#define binmode 25306#endif 25307main() 25308{ 25309 FILE *f=fopen("conftestval", "w" binmode); 25310 if (!f) exit(1); 25311 fprintf(f, "%d\n", sizeof(ino_t)); 25312 exit(0); 25313} 25314_ACEOF 25315if ac_fn_c_try_run "$LINENO"; then : 25316 ac_cv_sizeof_ino_t=`cat conftestval` 25317else 25318 ac_cv_sizeof_ino_t=0 25319fi 25320rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25321 conftest.$ac_objext conftest.beam conftest.$ac_ext 25322fi 25323 25324fi 25325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5 25326$as_echo "$ac_cv_sizeof_ino_t" >&6; } 25327 25328cat >>confdefs.h <<_ACEOF 25329#define SIZEOF_INO_T $ac_cv_sizeof_ino_t 25330_ACEOF 25331 25332 25333 if test $ac_cv_sizeof_ino_t = 4; then 25334 if test $ac_cv_sizeof_long = 4; then 25335 ino_t_value="unsigned long" 25336 else 25337 ino_t_value="unsigned int" 25338 fi 25339 fi 25340 ;; 25341esac 25342{ $as_echo "$as_me:${as_lineno-$LINENO}: using $ino_t_value for ino_t" >&5 25343$as_echo "$as_me: using $ino_t_value for ino_t" >&6;} 25344 25345# Checks for endianness 25346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 25347$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 25348if ${ac_cv_c_bigendian+:} false; then : 25349 $as_echo_n "(cached) " >&6 25350else 25351 ac_cv_c_bigendian=unknown 25352 # See if we're dealing with a universal compiler. 25353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25354/* end confdefs.h. */ 25355#ifndef __APPLE_CC__ 25356 not a universal capable compiler 25357 #endif 25358 typedef int dummy; 25359 25360_ACEOF 25361if ac_fn_c_try_compile "$LINENO"; then : 25362 25363 # Check for potential -arch flags. It is not universal unless 25364 # there are at least two -arch flags with different values. 25365 ac_arch= 25366 ac_prev= 25367 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 25368 if test -n "$ac_prev"; then 25369 case $ac_word in 25370 i?86 | x86_64 | ppc | ppc64) 25371 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 25372 ac_arch=$ac_word 25373 else 25374 ac_cv_c_bigendian=universal 25375 break 25376 fi 25377 ;; 25378 esac 25379 ac_prev= 25380 elif test "x$ac_word" = "x-arch"; then 25381 ac_prev=arch 25382 fi 25383 done 25384fi 25385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25386 if test $ac_cv_c_bigendian = unknown; then 25387 # See if sys/param.h defines the BYTE_ORDER macro. 25388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25389/* end confdefs.h. */ 25390#include <sys/types.h> 25391 #include <sys/param.h> 25392 25393int 25394main () 25395{ 25396#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 25397 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 25398 && LITTLE_ENDIAN) 25399 bogus endian macros 25400 #endif 25401 25402 ; 25403 return 0; 25404} 25405_ACEOF 25406if ac_fn_c_try_compile "$LINENO"; then : 25407 # It does; now see whether it defined to BIG_ENDIAN or not. 25408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25409/* end confdefs.h. */ 25410#include <sys/types.h> 25411 #include <sys/param.h> 25412 25413int 25414main () 25415{ 25416#if BYTE_ORDER != BIG_ENDIAN 25417 not big endian 25418 #endif 25419 25420 ; 25421 return 0; 25422} 25423_ACEOF 25424if ac_fn_c_try_compile "$LINENO"; then : 25425 ac_cv_c_bigendian=yes 25426else 25427 ac_cv_c_bigendian=no 25428fi 25429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25430fi 25431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25432 fi 25433 if test $ac_cv_c_bigendian = unknown; then 25434 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 25435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25436/* end confdefs.h. */ 25437#include <limits.h> 25438 25439int 25440main () 25441{ 25442#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 25443 bogus endian macros 25444 #endif 25445 25446 ; 25447 return 0; 25448} 25449_ACEOF 25450if ac_fn_c_try_compile "$LINENO"; then : 25451 # It does; now see whether it defined to _BIG_ENDIAN or not. 25452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25453/* end confdefs.h. */ 25454#include <limits.h> 25455 25456int 25457main () 25458{ 25459#ifndef _BIG_ENDIAN 25460 not big endian 25461 #endif 25462 25463 ; 25464 return 0; 25465} 25466_ACEOF 25467if ac_fn_c_try_compile "$LINENO"; then : 25468 ac_cv_c_bigendian=yes 25469else 25470 ac_cv_c_bigendian=no 25471fi 25472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25473fi 25474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25475 fi 25476 if test $ac_cv_c_bigendian = unknown; then 25477 # Compile a test program. 25478 if test "$cross_compiling" = yes; then : 25479 # Try to guess by grepping values from an object file. 25480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25481/* end confdefs.h. */ 25482short int ascii_mm[] = 25483 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 25484 short int ascii_ii[] = 25485 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 25486 int use_ascii (int i) { 25487 return ascii_mm[i] + ascii_ii[i]; 25488 } 25489 short int ebcdic_ii[] = 25490 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 25491 short int ebcdic_mm[] = 25492 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 25493 int use_ebcdic (int i) { 25494 return ebcdic_mm[i] + ebcdic_ii[i]; 25495 } 25496 extern int foo; 25497 25498int 25499main () 25500{ 25501return use_ascii (foo) == use_ebcdic (foo); 25502 ; 25503 return 0; 25504} 25505_ACEOF 25506if ac_fn_c_try_compile "$LINENO"; then : 25507 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 25508 ac_cv_c_bigendian=yes 25509 fi 25510 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 25511 if test "$ac_cv_c_bigendian" = unknown; then 25512 ac_cv_c_bigendian=no 25513 else 25514 # finding both strings is unlikely to happen, but who knows? 25515 ac_cv_c_bigendian=unknown 25516 fi 25517 fi 25518fi 25519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25520else 25521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25522/* end confdefs.h. */ 25523$ac_includes_default 25524int 25525main () 25526{ 25527 25528 /* Are we little or big endian? From Harbison&Steele. */ 25529 union 25530 { 25531 long int l; 25532 char c[sizeof (long int)]; 25533 } u; 25534 u.l = 1; 25535 return u.c[sizeof (long int) - 1] == 1; 25536 25537 ; 25538 return 0; 25539} 25540_ACEOF 25541if ac_fn_c_try_run "$LINENO"; then : 25542 ac_cv_c_bigendian=no 25543else 25544 ac_cv_c_bigendian=yes 25545fi 25546rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25547 conftest.$ac_objext conftest.beam conftest.$ac_ext 25548fi 25549 25550 fi 25551fi 25552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 25553$as_echo "$ac_cv_c_bigendian" >&6; } 25554 case $ac_cv_c_bigendian in #( 25555 yes) 25556 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 25557;; #( 25558 no) 25559 ;; #( 25560 universal) 25561 25562$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 25563 25564 ;; #( 25565 *) 25566 as_fn_error $? "unknown endianness 25567 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 25568 esac 25569 25570if test $ac_cv_c_bigendian = yes; then 25571 bigendian=1 25572else 25573 bigendian=0 25574fi 25575 25576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of struct iovec" >&5 25577$as_echo_n "checking size of struct iovec... " >&6; } 25578if ${ac_cv_sizeof_struct_iovec+:} false; then : 25579 $as_echo_n "(cached) " >&6 25580else 25581 if test "$cross_compiling" = yes; then : 25582 ac_cv_sizeof_struct_iovec=0 25583else 25584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25585/* end confdefs.h. */ 25586#include <stdio.h> 25587#include <sys/types.h> 25588#include <sys/uio.h> 25589#ifdef WIN32 25590#define binmode "b" 25591#else 25592#define binmode 25593#endif 25594main() 25595{ 25596 FILE *f=fopen("conftestval", "w" binmode); 25597 if (!f) exit(1); 25598 fprintf(f, "%d\n", sizeof(struct iovec)); 25599 exit(0); 25600} 25601_ACEOF 25602if ac_fn_c_try_run "$LINENO"; then : 25603 ac_cv_sizeof_struct_iovec=`cat conftestval` 25604else 25605 ac_cv_sizeof_struct_iovec=0 25606fi 25607rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25608 conftest.$ac_objext conftest.beam conftest.$ac_ext 25609fi 25610 25611fi 25612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_iovec" >&5 25613$as_echo "$ac_cv_sizeof_struct_iovec" >&6; } 25614 25615cat >>confdefs.h <<_ACEOF 25616#define SIZEOF_STRUCT_IOVEC $ac_cv_sizeof_struct_iovec 25617_ACEOF 25618 25619 25620if test "$ac_cv_sizeof_struct_iovec" = "0"; then 25621 have_iovec=0 25622else 25623 have_iovec=1 25624fi 25625 25626 25627 25628 25629 25630 25631 25632 25633 25634 25635 25636 25637 25638 25639 25640 25641 25642 25643 25644 25645 25646 25647 25648 25649 25650for ac_func in strnicmp 25651do : 25652 ac_fn_c_check_func "$LINENO" "strnicmp" "ac_cv_func_strnicmp" 25653if test "x$ac_cv_func_strnicmp" = xyes; then : 25654 cat >>confdefs.h <<_ACEOF 25655#define HAVE_STRNICMP 1 25656_ACEOF 25657 have_strnicmp="1" 25658else 25659 have_strnicmp="0" 25660fi 25661done 25662 25663for ac_func in strncasecmp 25664do : 25665 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" 25666if test "x$ac_cv_func_strncasecmp" = xyes; then : 25667 cat >>confdefs.h <<_ACEOF 25668#define HAVE_STRNCASECMP 1 25669_ACEOF 25670 have_strncasecmp="1" 25671else 25672 have_strncasecmp="0" 25673fi 25674done 25675 25676for ac_func in stricmp 25677do : 25678 ac_fn_c_check_func "$LINENO" "stricmp" "ac_cv_func_stricmp" 25679if test "x$ac_cv_func_stricmp" = xyes; then : 25680 cat >>confdefs.h <<_ACEOF 25681#define HAVE_STRICMP 1 25682_ACEOF 25683 have_stricmp="1" 25684else 25685 have_stricmp="0" 25686fi 25687done 25688 25689for ac_func in strcasecmp 25690do : 25691 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 25692if test "x$ac_cv_func_strcasecmp" = xyes; then : 25693 cat >>confdefs.h <<_ACEOF 25694#define HAVE_STRCASECMP 1 25695_ACEOF 25696 have_strcasecmp="1" 25697else 25698 have_strcasecmp="0" 25699fi 25700done 25701 25702for ac_func in strdup 25703do : 25704 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" 25705if test "x$ac_cv_func_strdup" = xyes; then : 25706 cat >>confdefs.h <<_ACEOF 25707#define HAVE_STRDUP 1 25708_ACEOF 25709 have_strdup="1" 25710else 25711 have_strdup="0" 25712fi 25713done 25714 25715for ac_func in strstr 25716do : 25717 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr" 25718if test "x$ac_cv_func_strstr" = xyes; then : 25719 cat >>confdefs.h <<_ACEOF 25720#define HAVE_STRSTR 1 25721_ACEOF 25722 have_strstr="1" 25723else 25724 have_strstr="0" 25725fi 25726done 25727 25728for ac_func in memchr 25729do : 25730 ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr" 25731if test "x$ac_cv_func_memchr" = xyes; then : 25732 cat >>confdefs.h <<_ACEOF 25733#define HAVE_MEMCHR 1 25734_ACEOF 25735 have_memchr="1" 25736else 25737 have_memchr="0" 25738fi 25739done 25740 25741as_ac_var=`$as_echo "ac_cv_func_$int64_strfn" | $as_tr_sh` 25742ac_fn_c_check_func "$LINENO" "$int64_strfn" "$as_ac_var" 25743if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 25744 have_int64_strfn="1" 25745else 25746 have_int64_strfn="0" 25747fi 25748 25749 25750if test "$have_int64_strfn" = "0" && test "$int64_strfn" = "strtoll"; then 25751 int64_strfn="strtoq" 25752 ac_fn_c_check_func "$LINENO" "strtoq" "ac_cv_func_strtoq" 25753if test "x$ac_cv_func_strtoq" = xyes; then : 25754 have_int64_strfn=1 25755else 25756 have_int64_strfn=0 25757fi 25758 25759fi 25760 25761if test "$have_int64_strfn" = "1"; then 25762 25763cat >>confdefs.h <<_ACEOF 25764#define APR_INT64_STRFN $int64_strfn 25765_ACEOF 25766 25767fi 25768 25769 25770 25771 25772 25773 25774 25775 25776 25777if test "$off_t_strfn" = "apr_strtoi64" && test "$have_int64_strfn" = "1"; then 25778 off_t_strfn=$int64_strfn 25779fi 25780 25781cat >>confdefs.h <<_ACEOF 25782#define APR_OFF_T_STRFN $off_t_strfn 25783_ACEOF 25784 25785 25786echo "${nl}Checking for DSO..." 25787# Check whether --enable-dso was given. 25788if test "${enable_dso+set}" = set; then : 25789 enableval=$enable_dso; if test "x$enableval" = "xyes"; then 25790 dsotype=any 25791 else 25792 dsotype=$enableval 25793 fi 25794 25795else 25796 dsotype=any 25797fi 25798 25799 25800if test "$dsotype" = "any"; then 25801 if test "$dsotype" = "any"; then 25802 case $host in 25803 *darwin[0-8]\.*) 25804 # Original Darwin, not for 9.0!: 25805 ac_fn_c_check_func "$LINENO" "NSLinkModule" "ac_cv_func_NSLinkModule" 25806if test "x$ac_cv_func_NSLinkModule" = xyes; then : 25807 dsotype=dyld 25808fi 25809;; 25810 hppa*-hpux[1-9]\.*|hppa*-hpux1[01]*) 25811 # shl is specific to parisc hpux SOM binaries, not used for 64 bit 25812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 25813$as_echo_n "checking for shl_load in -ldld... " >&6; } 25814if ${ac_cv_lib_dld_shl_load+:} false; then : 25815 $as_echo_n "(cached) " >&6 25816else 25817 ac_check_lib_save_LIBS=$LIBS 25818LIBS="-ldld $LIBS" 25819cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25820/* end confdefs.h. */ 25821 25822/* Override any GCC internal prototype to avoid an error. 25823 Use char because int might match the return type of a GCC 25824 builtin and then its argument prototype would still apply. */ 25825#ifdef __cplusplus 25826extern "C" 25827#endif 25828char shl_load (); 25829int 25830main () 25831{ 25832return shl_load (); 25833 ; 25834 return 0; 25835} 25836_ACEOF 25837if ac_fn_c_try_link "$LINENO"; then : 25838 ac_cv_lib_dld_shl_load=yes 25839else 25840 ac_cv_lib_dld_shl_load=no 25841fi 25842rm -f core conftest.err conftest.$ac_objext \ 25843 conftest$ac_exeext conftest.$ac_ext 25844LIBS=$ac_check_lib_save_LIBS 25845fi 25846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 25847$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 25848if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 25849 have_shl=1 25850fi 25851 25852 if test "$ac_cv_sizeof_voidp$have_shl" = "41"; then 25853 dsotype=shl; 25854 if test "x$LIBS" = "x"; then 25855 test "x$silent" != "xyes" && echo " setting LIBS to \"-ldld\"" 25856 LIBS="-ldld" 25857 else 25858 apr_addto_bugger="-ldld" 25859 for i in $apr_addto_bugger; do 25860 apr_addto_duplicate="0" 25861 for j in $LIBS; do 25862 if test "x$i" = "x$j"; then 25863 apr_addto_duplicate="1" 25864 break 25865 fi 25866 done 25867 if test $apr_addto_duplicate = "0"; then 25868 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 25869 LIBS="$LIBS $i" 25870 fi 25871 done 25872 fi 25873 25874 fi;; 25875 *mingw*|*-os2*) 25876 # several 'other's below probably belong up here. If they always 25877 # use a platform implementation and shouldn't test the dlopen/dlfcn 25878 # features, then bring them up here. 25879 # But if they -should- optionally use dlfcn, and/or need the config 25880 # detection of dlopen/dlsym, do not move them up. 25881 dsotype=other ;; 25882 esac 25883 fi 25884 # Normal POSIX: 25885 if test "$dsotype" = "any"; then 25886 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 25887if test "x$ac_cv_func_dlopen" = xyes; then : 25888 dsotype=dlfcn 25889fi 25890 25891 fi 25892 if test "$dsotype" = "any"; then 25893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 25894$as_echo_n "checking for dlopen in -ldl... " >&6; } 25895if ${ac_cv_lib_dl_dlopen+:} false; then : 25896 $as_echo_n "(cached) " >&6 25897else 25898 ac_check_lib_save_LIBS=$LIBS 25899LIBS="-ldl $LIBS" 25900cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25901/* end confdefs.h. */ 25902 25903/* Override any GCC internal prototype to avoid an error. 25904 Use char because int might match the return type of a GCC 25905 builtin and then its argument prototype would still apply. */ 25906#ifdef __cplusplus 25907extern "C" 25908#endif 25909char dlopen (); 25910int 25911main () 25912{ 25913return dlopen (); 25914 ; 25915 return 0; 25916} 25917_ACEOF 25918if ac_fn_c_try_link "$LINENO"; then : 25919 ac_cv_lib_dl_dlopen=yes 25920else 25921 ac_cv_lib_dl_dlopen=no 25922fi 25923rm -f core conftest.err conftest.$ac_objext \ 25924 conftest$ac_exeext conftest.$ac_ext 25925LIBS=$ac_check_lib_save_LIBS 25926fi 25927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 25928$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 25929if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 25930 dsotype=dlfcn; 25931 if test "x$LIBS" = "x"; then 25932 test "x$silent" != "xyes" && echo " setting LIBS to \"-ldl\"" 25933 LIBS="-ldl" 25934 else 25935 apr_addto_bugger="-ldl" 25936 for i in $apr_addto_bugger; do 25937 apr_addto_duplicate="0" 25938 for j in $LIBS; do 25939 if test "x$i" = "x$j"; then 25940 apr_addto_duplicate="1" 25941 break 25942 fi 25943 done 25944 if test $apr_addto_duplicate = "0"; then 25945 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 25946 LIBS="$LIBS $i" 25947 fi 25948 done 25949 fi 25950 25951fi 25952 25953 fi 25954 if test "$dsotype" = "dlfcn"; then 25955 # ReliantUnix has dlopen() in libc but dlsym() in libdl :( 25956 ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym" 25957if test "x$ac_cv_func_dlsym" = xyes; then : 25958 25959else 25960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 25961$as_echo_n "checking for dlsym in -ldl... " >&6; } 25962if ${ac_cv_lib_dl_dlsym+:} false; then : 25963 $as_echo_n "(cached) " >&6 25964else 25965 ac_check_lib_save_LIBS=$LIBS 25966LIBS="-ldl $LIBS" 25967cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25968/* end confdefs.h. */ 25969 25970/* Override any GCC internal prototype to avoid an error. 25971 Use char because int might match the return type of a GCC 25972 builtin and then its argument prototype would still apply. */ 25973#ifdef __cplusplus 25974extern "C" 25975#endif 25976char dlsym (); 25977int 25978main () 25979{ 25980return dlsym (); 25981 ; 25982 return 0; 25983} 25984_ACEOF 25985if ac_fn_c_try_link "$LINENO"; then : 25986 ac_cv_lib_dl_dlsym=yes 25987else 25988 ac_cv_lib_dl_dlsym=no 25989fi 25990rm -f core conftest.err conftest.$ac_objext \ 25991 conftest$ac_exeext conftest.$ac_ext 25992LIBS=$ac_check_lib_save_LIBS 25993fi 25994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 25995$as_echo "$ac_cv_lib_dl_dlsym" >&6; } 25996if test "x$ac_cv_lib_dl_dlsym" = xyes; then : 25997 25998 if test "x$LIBS" = "x"; then 25999 test "x$silent" != "xyes" && echo " setting LIBS to \"-ldl\"" 26000 LIBS="-ldl" 26001 else 26002 apr_addto_bugger="-ldl" 26003 for i in $apr_addto_bugger; do 26004 apr_addto_duplicate="0" 26005 for j in $LIBS; do 26006 if test "x$i" = "x$j"; then 26007 apr_addto_duplicate="1" 26008 break 26009 fi 26010 done 26011 if test $apr_addto_duplicate = "0"; then 26012 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 26013 LIBS="$LIBS $i" 26014 fi 26015 done 26016 fi 26017 26018else 26019 dsotype=any 26020 echo "Weird: dlopen() was found but dlsym() was not found!" 26021fi 26022 26023fi 26024 26025 fi 26026 if test "$dsotype" = "any"; then 26027 # BeOS: 26028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for load_image in -lroot" >&5 26029$as_echo_n "checking for load_image in -lroot... " >&6; } 26030if ${ac_cv_lib_root_load_image+:} false; then : 26031 $as_echo_n "(cached) " >&6 26032else 26033 ac_check_lib_save_LIBS=$LIBS 26034LIBS="-lroot $LIBS" 26035cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26036/* end confdefs.h. */ 26037 26038/* Override any GCC internal prototype to avoid an error. 26039 Use char because int might match the return type of a GCC 26040 builtin and then its argument prototype would still apply. */ 26041#ifdef __cplusplus 26042extern "C" 26043#endif 26044char load_image (); 26045int 26046main () 26047{ 26048return load_image (); 26049 ; 26050 return 0; 26051} 26052_ACEOF 26053if ac_fn_c_try_link "$LINENO"; then : 26054 ac_cv_lib_root_load_image=yes 26055else 26056 ac_cv_lib_root_load_image=no 26057fi 26058rm -f core conftest.err conftest.$ac_objext \ 26059 conftest$ac_exeext conftest.$ac_ext 26060LIBS=$ac_check_lib_save_LIBS 26061fi 26062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_root_load_image" >&5 26063$as_echo "$ac_cv_lib_root_load_image" >&6; } 26064if test "x$ac_cv_lib_root_load_image" = xyes; then : 26065 dsotype=other 26066fi 26067 26068 fi 26069 # Everything else: 26070 if test "$dsotype" = "any"; then 26071 case $host in 26072 *os390|*os400|*-aix*) 26073 # Some -aix5 will use dl, no hassles. Keep that pattern here. 26074 dsotype=other ;; 26075 *-hpux*) 26076 if test "$have_shl" = "1"; then 26077 dsotype=shl; 26078 if test "x$LIBS" = "x"; then 26079 test "x$silent" != "xyes" && echo " setting LIBS to \"-ldld\"" 26080 LIBS="-ldld" 26081 else 26082 apr_addto_bugger="-ldld" 26083 for i in $apr_addto_bugger; do 26084 apr_addto_duplicate="0" 26085 for j in $LIBS; do 26086 if test "x$i" = "x$j"; then 26087 apr_addto_duplicate="1" 26088 break 26089 fi 26090 done 26091 if test $apr_addto_duplicate = "0"; then 26092 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 26093 LIBS="$LIBS $i" 26094 fi 26095 done 26096 fi 26097 26098 fi;; 26099 esac 26100 fi 26101fi 26102 26103if test "$dsotype" = "any"; then 26104 as_fn_error $? "Could not detect suitable DSO implementation" "$LINENO" 5 26105elif test "$dsotype" = "no"; then 26106 aprdso="0" 26107else 26108 case "$dsotype" in 26109 dlfcn) 26110$as_echo "#define DSO_USE_DLFCN 1" >>confdefs.h 26111;; 26112 shl) 26113$as_echo "#define DSO_USE_SHL 1" >>confdefs.h 26114;; 26115 dyld) 26116$as_echo "#define DSO_USE_DYLD 1" >>confdefs.h 26117;; 26118 other) ;; # Use whatever is in dso/OSDIR 26119 *) as_fn_error $? "Unknown DSO implementation \"$dsotype\"" "$LINENO" 5;; 26120 esac 26121 aprdso="1" 26122 apr_modules="$apr_modules dso" 26123fi 26124 26125 26126 26127echo "${nl}Checking for Processes..." 26128 26129for ac_func in waitpid 26130do : 26131 ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid" 26132if test "x$ac_cv_func_waitpid" = xyes; then : 26133 cat >>confdefs.h <<_ACEOF 26134#define HAVE_WAITPID 1 26135_ACEOF 26136 26137fi 26138done 26139 26140 26141# Check whether --enable-other-child was given. 26142if test "${enable_other_child+set}" = set; then : 26143 enableval=$enable_other_child; if test "$enableval" = "yes"; then 26144 oc="1" 26145 else 26146 oc="0" 26147 fi 26148else 26149 oc=1 26150fi 26151 26152 26153 26154 26155if test -z "$have_proc_invoked"; then 26156 have_proc_invoked="0" 26157fi 26158 26159 26160 26161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Variable Length Arrays" >&5 26162$as_echo_n "checking for Variable Length Arrays... " >&6; } 26163apr_save_CFLAGS=$CFLAGS 26164 CFLAGS="$CFLAGS $CFLAGS_WARN" 26165 if test "$ac_cv_c_compiler_gnu" = "yes"; then 26166 CFLAGS="$CFLAGS -Werror" 26167 fi 26168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26169/* end confdefs.h. */ 26170#include "confdefs.h" 26171 26172 26173 int main(int argc, const char *const *argv) { 26174 26175 int foo[argc]; 26176 foo[0] = 0; 26177 26178 return 0; } 26179 26180_ACEOF 26181if ac_fn_c_try_compile "$LINENO"; then : 26182 CFLAGS=$apr_save_CFLAGS 26183vla_msg=yes 26184else 26185 CFLAGS=$apr_save_CFLAGS 26186vla_msg=no 26187fi 26188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26189 26190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vla_msg" >&5 26191$as_echo "$vla_msg" >&6; } 26192if test "$vla_msg" = "yes"; then 26193 26194$as_echo "#define HAVE_VLA 1" >>confdefs.h 26195 26196fi 26197 26198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct rlimit" >&5 26199$as_echo_n "checking struct rlimit... " >&6; } 26200if ${ac_cv_struct_rlimit+:} false; then : 26201 $as_echo_n "(cached) " >&6 26202else 26203 26204if test "$cross_compiling" = yes; then : 26205 26206 ac_cv_struct_rlimit=no 26207else 26208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26209/* end confdefs.h. */ 26210 26211#include <sys/types.h> 26212#include <sys/time.h> 26213#include <sys/resource.h> 26214main() 26215{ 26216 struct rlimit limit; 26217 limit.rlim_cur = 0; 26218 limit.rlim_max = 0; 26219 exit(0); 26220} 26221_ACEOF 26222if ac_fn_c_try_run "$LINENO"; then : 26223 26224 ac_cv_struct_rlimit=yes 26225else 26226 26227 ac_cv_struct_rlimit=no 26228fi 26229rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26230 conftest.$ac_objext conftest.beam conftest.$ac_ext 26231fi 26232 26233fi 26234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_rlimit" >&5 26235$as_echo "$ac_cv_struct_rlimit" >&6; } 26236struct_rlimit=0 26237test "x$ac_cv_struct_rlimit" = xyes && struct_rlimit=1 26238 26239 26240echo "${nl}Checking for Locking..." 26241 26242for ac_func in semget semctl semop semtimedop flock 26243do : 26244 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 26245ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 26246if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 26247 cat >>confdefs.h <<_ACEOF 26248#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 26249_ACEOF 26250 26251fi 26252done 26253 26254ac_rc=yes 26255for ac_spec in func:semtimedop; do 26256 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` 26257 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` 26258 case $ac_type in 26259 header ) 26260 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 26261 ac_var="ac_cv_header_$ac_item" 26262 ;; 26263 file ) 26264 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 26265 ac_var="ac_cv_file_$ac_item" 26266 ;; 26267 func ) ac_var="ac_cv_func_$ac_item" ;; 26268 struct ) ac_var="ac_cv_struct_$ac_item" ;; 26269 define ) ac_var="ac_cv_define_$ac_item" ;; 26270 custom ) ac_var="$ac_item" ;; 26271 esac 26272 eval "ac_val=\$$ac_var" 26273 if test ".$ac_val" != .yes; then 26274 ac_rc=no 26275 break 26276 fi 26277done 26278if test ".$ac_rc" = .yes; then 26279 : 26280 have_semtimedop="1" 26281else 26282 : 26283 have_semtimedop="0" 26284fi 26285 26286 26287for ac_header in semaphore.h 26288do : 26289 ac_fn_c_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default" 26290if test "x$ac_cv_header_semaphore_h" = xyes; then : 26291 cat >>confdefs.h <<_ACEOF 26292#define HAVE_SEMAPHORE_H 1 26293_ACEOF 26294 26295fi 26296 26297done 26298 26299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_open" >&5 26300$as_echo_n "checking for library containing sem_open... " >&6; } 26301if ${ac_cv_search_sem_open+:} false; then : 26302 $as_echo_n "(cached) " >&6 26303else 26304 ac_func_search_save_LIBS=$LIBS 26305cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26306/* end confdefs.h. */ 26307 26308/* Override any GCC internal prototype to avoid an error. 26309 Use char because int might match the return type of a GCC 26310 builtin and then its argument prototype would still apply. */ 26311#ifdef __cplusplus 26312extern "C" 26313#endif 26314char sem_open (); 26315int 26316main () 26317{ 26318return sem_open (); 26319 ; 26320 return 0; 26321} 26322_ACEOF 26323for ac_lib in '' rt; do 26324 if test -z "$ac_lib"; then 26325 ac_res="none required" 26326 else 26327 ac_res=-l$ac_lib 26328 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 26329 fi 26330 if ac_fn_c_try_link "$LINENO"; then : 26331 ac_cv_search_sem_open=$ac_res 26332fi 26333rm -f core conftest.err conftest.$ac_objext \ 26334 conftest$ac_exeext 26335 if ${ac_cv_search_sem_open+:} false; then : 26336 break 26337fi 26338done 26339if ${ac_cv_search_sem_open+:} false; then : 26340 26341else 26342 ac_cv_search_sem_open=no 26343fi 26344rm conftest.$ac_ext 26345LIBS=$ac_func_search_save_LIBS 26346fi 26347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_open" >&5 26348$as_echo "$ac_cv_search_sem_open" >&6; } 26349ac_res=$ac_cv_search_sem_open 26350if test "$ac_res" != no; then : 26351 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 26352 26353fi 26354 26355for ac_func in sem_close sem_unlink sem_post sem_wait sem_timedwait 26356do : 26357 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 26358ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 26359if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 26360 cat >>confdefs.h <<_ACEOF 26361#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 26362_ACEOF 26363 26364fi 26365done 26366 26367ac_rc=yes 26368for ac_spec in func:sem_timedwait; do 26369 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` 26370 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` 26371 case $ac_type in 26372 header ) 26373 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 26374 ac_var="ac_cv_header_$ac_item" 26375 ;; 26376 file ) 26377 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 26378 ac_var="ac_cv_file_$ac_item" 26379 ;; 26380 func ) ac_var="ac_cv_func_$ac_item" ;; 26381 struct ) ac_var="ac_cv_struct_$ac_item" ;; 26382 define ) ac_var="ac_cv_define_$ac_item" ;; 26383 custom ) ac_var="$ac_item" ;; 26384 esac 26385 eval "ac_val=\$$ac_var" 26386 if test ".$ac_val" != .yes; then 26387 ac_rc=no 26388 break 26389 fi 26390done 26391if test ".$ac_rc" = .yes; then 26392 : 26393 have_sem_timedwait="1" 26394else 26395 : 26396 have_sem_timedwait="0" 26397fi 26398 26399 26400for ac_header in OS.h 26401do : 26402 ac_fn_c_check_header_mongrel "$LINENO" "OS.h" "ac_cv_header_OS_h" "$ac_includes_default" 26403if test "x$ac_cv_header_OS_h" = xyes; then : 26404 cat >>confdefs.h <<_ACEOF 26405#define HAVE_OS_H 1 26406_ACEOF 26407 26408fi 26409 26410done 26411 26412for ac_func in create_sem acquire_sem acquire_sem_etc 26413do : 26414 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 26415ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 26416if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 26417 cat >>confdefs.h <<_ACEOF 26418#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 26419_ACEOF 26420 26421fi 26422done 26423 26424ac_rc=yes 26425for ac_spec in header:OS.h func:acquire_sem_etc; do 26426 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` 26427 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` 26428 case $ac_type in 26429 header ) 26430 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 26431 ac_var="ac_cv_header_$ac_item" 26432 ;; 26433 file ) 26434 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 26435 ac_var="ac_cv_file_$ac_item" 26436 ;; 26437 func ) ac_var="ac_cv_func_$ac_item" ;; 26438 struct ) ac_var="ac_cv_struct_$ac_item" ;; 26439 define ) ac_var="ac_cv_define_$ac_item" ;; 26440 custom ) ac_var="$ac_item" ;; 26441 esac 26442 eval "ac_val=\$$ac_var" 26443 if test ".$ac_val" != .yes; then 26444 ac_rc=no 26445 break 26446 fi 26447done 26448if test ".$ac_rc" = .yes; then 26449 : 26450 have_acquire_sem_etc="1" 26451else 26452 : 26453 have_acquire_sem_etc="0" 26454fi 26455 26456 26457# Some systems return ENOSYS from sem_open. 26458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sem_open" >&5 26459$as_echo_n "checking for working sem_open... " >&6; } 26460if ${ac_cv_func_sem_open+:} false; then : 26461 $as_echo_n "(cached) " >&6 26462else 26463 26464if test "$cross_compiling" = yes; then : 26465 ac_cv_func_sem_open=no 26466else 26467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26468/* end confdefs.h. */ 26469 26470#include <errno.h> 26471#include <stdlib.h> 26472#include <fcntl.h> 26473#include <semaphore.h> 26474#ifndef SEM_FAILED 26475#define SEM_FAILED (-1) 26476#endif 26477main() 26478{ 26479 sem_t *psem; 26480 const char *sem_name = "/apr_autoconf"; 26481 26482 psem = sem_open(sem_name, O_CREAT, 0644, 1); 26483 if (psem == (sem_t *)SEM_FAILED) { 26484 exit(1); 26485 } 26486 sem_close(psem); 26487 psem = sem_open(sem_name, O_CREAT | O_EXCL, 0644, 1); 26488 if (psem != (sem_t *)SEM_FAILED) { 26489 sem_close(psem); 26490 exit(1); 26491 } 26492 sem_unlink(sem_name); 26493 exit(0); 26494} 26495_ACEOF 26496if ac_fn_c_try_run "$LINENO"; then : 26497 ac_cv_func_sem_open=yes 26498else 26499 ac_cv_func_sem_open=no 26500fi 26501rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26502 conftest.$ac_objext conftest.beam conftest.$ac_ext 26503fi 26504 26505fi 26506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_sem_open" >&5 26507$as_echo "$ac_cv_func_sem_open" >&6; } 26508 26509# It's stupid, but not all platforms have union semun, even those that need it. 26510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for union semun in sys/sem.h" >&5 26511$as_echo_n "checking for union semun in sys/sem.h... " >&6; } 26512cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26513/* end confdefs.h. */ 26514 26515#include <sys/types.h> 26516#include <sys/ipc.h> 26517#include <sys/sem.h> 26518 26519int 26520main () 26521{ 26522 26523union semun arg; 26524semctl(0, 0, 0, arg); 26525 26526 ; 26527 return 0; 26528} 26529_ACEOF 26530if ac_fn_c_try_compile "$LINENO"; then : 26531 have_union_semun="1" union_semun=yes 26532msg=yes 26533else 26534 26535have_union_semun="0" 26536msg=no 26537fi 26538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 26540$as_echo "$msg" >&6; } 26541 26542 26543 26544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOCK_EX in sys/file.h" >&5 26545$as_echo_n "checking for LOCK_EX in sys/file.h... " >&6; } 26546if ${ac_cv_define_LOCK_EX+:} false; then : 26547 $as_echo_n "(cached) " >&6 26548else 26549 26550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26551/* end confdefs.h. */ 26552 26553#include <sys/file.h> 26554#ifdef LOCK_EX 26555YES_IS_DEFINED 26556#endif 26557 26558_ACEOF 26559if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26560 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then : 26561 ac_cv_define_LOCK_EX=yes 26562else 26563 ac_cv_define_LOCK_EX=no 26564fi 26565rm -f conftest* 26566 26567 26568fi 26569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_LOCK_EX" >&5 26570$as_echo "$ac_cv_define_LOCK_EX" >&6; } 26571 if test "$ac_cv_define_LOCK_EX" = "yes"; then 26572 26573$as_echo "#define HAVE_LOCK_EX 1" >>confdefs.h 26574 26575 fi 26576 26577 26578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLK in fcntl.h" >&5 26579$as_echo_n "checking for F_SETLK in fcntl.h... " >&6; } 26580if ${ac_cv_define_F_SETLK+:} false; then : 26581 $as_echo_n "(cached) " >&6 26582else 26583 26584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26585/* end confdefs.h. */ 26586 26587#include <fcntl.h> 26588#ifdef F_SETLK 26589YES_IS_DEFINED 26590#endif 26591 26592_ACEOF 26593if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26594 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then : 26595 ac_cv_define_F_SETLK=yes 26596else 26597 ac_cv_define_F_SETLK=no 26598fi 26599rm -f conftest* 26600 26601 26602fi 26603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_F_SETLK" >&5 26604$as_echo "$ac_cv_define_F_SETLK" >&6; } 26605 if test "$ac_cv_define_F_SETLK" = "yes"; then 26606 26607$as_echo "#define HAVE_F_SETLK 1" >>confdefs.h 26608 26609 fi 26610 26611 26612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SEM_UNDO in sys/sem.h" >&5 26613$as_echo_n "checking for SEM_UNDO in sys/sem.h... " >&6; } 26614if ${ac_cv_define_SEM_UNDO+:} false; then : 26615 $as_echo_n "(cached) " >&6 26616else 26617 26618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26619/* end confdefs.h. */ 26620 26621#include <sys/sem.h> 26622#ifdef SEM_UNDO 26623YES_IS_DEFINED 26624#endif 26625 26626_ACEOF 26627if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26628 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then : 26629 ac_cv_define_SEM_UNDO=yes 26630else 26631 ac_cv_define_SEM_UNDO=no 26632fi 26633rm -f conftest* 26634 26635 26636fi 26637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_SEM_UNDO" >&5 26638$as_echo "$ac_cv_define_SEM_UNDO" >&6; } 26639 if test "$ac_cv_define_SEM_UNDO" = "yes"; then 26640 26641$as_echo "#define HAVE_SEM_UNDO 1" >>confdefs.h 26642 26643 fi 26644 26645 26646# We are assuming that if the platform doesn't have POLLIN, it doesn't have 26647# any POLL definitions. 26648 26649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POLLIN in poll.h sys/poll.h" >&5 26650$as_echo_n "checking for POLLIN in poll.h sys/poll.h... " >&6; } 26651if ${ac_cv_define_POLLIN+:} false; then : 26652 $as_echo_n "(cached) " >&6 26653else 26654 26655 ac_cv_define_POLLIN=no 26656 for curhdr in poll.h sys/poll.h 26657 do 26658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26659/* end confdefs.h. */ 26660 26661#include <$curhdr> 26662#ifdef POLLIN 26663YES_IS_DEFINED 26664#endif 26665 26666_ACEOF 26667if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26668 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then : 26669 ac_cv_define_POLLIN=yes 26670fi 26671rm -f conftest* 26672 26673 done 26674 26675fi 26676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_POLLIN" >&5 26677$as_echo "$ac_cv_define_POLLIN" >&6; } 26678 if test "$ac_cv_define_POLLIN" = "yes"; then 26679 26680$as_echo "#define HAVE_POLLIN 1" >>confdefs.h 26681 26682 fi 26683 26684 26685if test "$threads" = "1"; then 26686 26687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PROCESS_SHARED in pthread.h" >&5 26688$as_echo_n "checking for PTHREAD_PROCESS_SHARED in pthread.h... " >&6; } 26689if ${ac_cv_define_PTHREAD_PROCESS_SHARED+:} false; then : 26690 $as_echo_n "(cached) " >&6 26691else 26692 26693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26694/* end confdefs.h. */ 26695 26696#include <pthread.h> 26697#ifdef PTHREAD_PROCESS_SHARED 26698YES_IS_DEFINED 26699#endif 26700 26701_ACEOF 26702if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26703 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then : 26704 ac_cv_define_PTHREAD_PROCESS_SHARED=yes 26705else 26706 ac_cv_define_PTHREAD_PROCESS_SHARED=no 26707fi 26708rm -f conftest* 26709 26710 26711fi 26712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_PTHREAD_PROCESS_SHARED" >&5 26713$as_echo "$ac_cv_define_PTHREAD_PROCESS_SHARED" >&6; } 26714 if test "$ac_cv_define_PTHREAD_PROCESS_SHARED" = "yes"; then 26715 26716$as_echo "#define HAVE_PTHREAD_PROCESS_SHARED 1" >>confdefs.h 26717 26718 fi 26719 26720 for ac_func in pthread_mutex_timedlock pthread_mutexattr_setpshared 26721do : 26722 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 26723ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 26724if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 26725 cat >>confdefs.h <<_ACEOF 26726#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 26727_ACEOF 26728 26729fi 26730done 26731 26732 ac_rc=yes 26733for ac_spec in header:pthread.h func:pthread_mutex_timedlock; do 26734 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` 26735 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` 26736 case $ac_type in 26737 header ) 26738 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 26739 ac_var="ac_cv_header_$ac_item" 26740 ;; 26741 file ) 26742 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 26743 ac_var="ac_cv_file_$ac_item" 26744 ;; 26745 func ) ac_var="ac_cv_func_$ac_item" ;; 26746 struct ) ac_var="ac_cv_struct_$ac_item" ;; 26747 define ) ac_var="ac_cv_define_$ac_item" ;; 26748 custom ) ac_var="$ac_item" ;; 26749 esac 26750 eval "ac_val=\$$ac_var" 26751 if test ".$ac_val" != .yes; then 26752 ac_rc=no 26753 break 26754 fi 26755done 26756if test ".$ac_rc" = .yes; then 26757 : 26758 have_pthread_mutex_timedlock="1" 26759else 26760 : 26761 have_pthread_mutex_timedlock="0" 26762fi 26763 26764 26765 # Some systems have setpshared and define PROCESS_SHARED, but don't 26766 # really support PROCESS_SHARED locks. So, we must validate that we 26767 # can go through the steps without receiving some sort of system error. 26768 # Linux and older versions of AIX have this problem. 26769 ac_rc=yes 26770for ac_spec in header:pthread.h define:PTHREAD_PROCESS_SHARED func:pthread_mutexattr_setpshared; do 26771 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` 26772 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` 26773 case $ac_type in 26774 header ) 26775 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 26776 ac_var="ac_cv_header_$ac_item" 26777 ;; 26778 file ) 26779 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 26780 ac_var="ac_cv_file_$ac_item" 26781 ;; 26782 func ) ac_var="ac_cv_func_$ac_item" ;; 26783 struct ) ac_var="ac_cv_struct_$ac_item" ;; 26784 define ) ac_var="ac_cv_define_$ac_item" ;; 26785 custom ) ac_var="$ac_item" ;; 26786 esac 26787 eval "ac_val=\$$ac_var" 26788 if test ".$ac_val" != .yes; then 26789 ac_rc=no 26790 break 26791 fi 26792done 26793if test ".$ac_rc" = .yes; then 26794 : 26795 26796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working PROCESS_SHARED locks" >&5 26797$as_echo_n "checking for working PROCESS_SHARED locks... " >&6; } 26798if ${apr_cv_process_shared_works+:} false; then : 26799 $as_echo_n "(cached) " >&6 26800else 26801 26802 if test "$cross_compiling" = yes; then : 26803 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26804$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26805as_fn_error $? "cannot run test program while cross compiling 26806See \`config.log' for more details" "$LINENO" 5; } 26807else 26808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26809/* end confdefs.h. */ 26810 26811#include <sys/types.h> 26812#include <pthread.h> 26813 int main() 26814 { 26815 pthread_mutex_t mutex; 26816 pthread_mutexattr_t attr; 26817 if (pthread_mutexattr_init(&attr)) 26818 exit(1); 26819 if (pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED)) 26820 exit(2); 26821 if (pthread_mutex_init(&mutex, &attr)) 26822 exit(3); 26823 if (pthread_mutexattr_destroy(&attr)) 26824 exit(4); 26825 if (pthread_mutex_destroy(&mutex)) 26826 exit(5); 26827 exit(0); 26828 } 26829_ACEOF 26830if ac_fn_c_try_run "$LINENO"; then : 26831 apr_cv_process_shared_works=yes 26832else 26833 apr_cv_process_shared_works=no 26834fi 26835rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26836 conftest.$ac_objext conftest.beam conftest.$ac_ext 26837fi 26838 26839fi 26840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_process_shared_works" >&5 26841$as_echo "$apr_cv_process_shared_works" >&6; } 26842 # Override detection of pthread_mutexattr_setpshared 26843 ac_cv_func_pthread_mutexattr_setpshared=$apr_cv_process_shared_works 26844else 26845 : 26846 26847fi 26848 26849 26850 if test "$ac_cv_func_pthread_mutexattr_setpshared" = "yes"; then 26851 26852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for robust cross-process mutex support" >&5 26853$as_echo_n "checking for robust cross-process mutex support... " >&6; } 26854if ${apr_cv_mutex_robust_shared+:} false; then : 26855 $as_echo_n "(cached) " >&6 26856else 26857 if test "$cross_compiling" = yes; then : 26858 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26859$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26860as_fn_error $? "cannot run test program while cross compiling 26861See \`config.log' for more details" "$LINENO" 5; } 26862else 26863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26864/* end confdefs.h. */ 26865 26866#include <sys/types.h> 26867#include <pthread.h> 26868#include <stdlib.h> 26869 26870int main(int argc, char **argv) 26871{ 26872 pthread_mutex_t mutex; 26873 pthread_mutexattr_t attr; 26874 26875 if (pthread_mutexattr_init(&attr)) 26876 exit(1); 26877 if (pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED)) 26878 exit(2); 26879 if (pthread_mutexattr_setrobust(&attr, PTHREAD_MUTEX_ROBUST)) 26880 exit(3); 26881 if (pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT)) 26882 exit(4); 26883 if (pthread_mutex_init(&mutex, &attr)) 26884 exit(5); 26885 if (pthread_mutexattr_destroy(&attr)) 26886 exit(6); 26887 if (pthread_mutex_destroy(&mutex)) 26888 exit(7); 26889 26890 exit(0); 26891} 26892_ACEOF 26893if ac_fn_c_try_run "$LINENO"; then : 26894 apr_cv_mutex_robust_shared=yes 26895else 26896 26897if test "$cross_compiling" = yes; then : 26898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 26899$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 26900as_fn_error $? "cannot run test program while cross compiling 26901See \`config.log' for more details" "$LINENO" 5; } 26902else 26903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26904/* end confdefs.h. */ 26905 26906#include <sys/types.h> 26907#include <pthread.h> 26908#include <stdlib.h> 26909 26910int main(int argc, char **argv) 26911{ 26912 pthread_mutex_t mutex; 26913 pthread_mutexattr_t attr; 26914 26915 if (pthread_mutexattr_init(&attr)) 26916 exit(1); 26917 if (pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_SHARED)) 26918 exit(2); 26919 if (pthread_mutexattr_setrobust_np(&attr, PTHREAD_MUTEX_ROBUST_NP)) 26920 exit(3); 26921 if (pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT)) 26922 exit(4); 26923 if (pthread_mutex_init(&mutex, &attr)) 26924 exit(5); 26925 if (pthread_mutexattr_destroy(&attr)) 26926 exit(6); 26927 if (pthread_mutex_destroy(&mutex)) 26928 exit(7); 26929 26930 exit(0); 26931} 26932_ACEOF 26933if ac_fn_c_try_run "$LINENO"; then : 26934 apr_cv_mutex_robust_shared=np 26935else 26936 apr_cv_mutex_robust_shared=no 26937fi 26938rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26939 conftest.$ac_objext conftest.beam conftest.$ac_ext 26940fi 26941 26942 26943fi 26944rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26945 conftest.$ac_objext conftest.beam conftest.$ac_ext 26946fi 26947 26948fi 26949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_mutex_robust_shared" >&5 26950$as_echo "$apr_cv_mutex_robust_shared" >&6; } 26951 26952if test "$apr_cv_mutex_robust_shared" = "yes"; then 26953 26954$as_echo "#define HAVE_PTHREAD_MUTEX_ROBUST 1" >>confdefs.h 26955 26956elif test "$apr_cv_mutex_robust_shared" = "np"; then 26957 26958$as_echo "#define HAVE_PTHREAD_MUTEX_ROBUST_NP 1" >>confdefs.h 26959 26960fi 26961 26962 fi 26963fi 26964 26965# See which lock mechanisms we can support on this system. 26966ac_rc=yes 26967for ac_spec in header:semaphore.h func:sem_open func:sem_close func:sem_unlink func:sem_post func:sem_wait; do 26968 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` 26969 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` 26970 case $ac_type in 26971 header ) 26972 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 26973 ac_var="ac_cv_header_$ac_item" 26974 ;; 26975 file ) 26976 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 26977 ac_var="ac_cv_file_$ac_item" 26978 ;; 26979 func ) ac_var="ac_cv_func_$ac_item" ;; 26980 struct ) ac_var="ac_cv_struct_$ac_item" ;; 26981 define ) ac_var="ac_cv_define_$ac_item" ;; 26982 custom ) ac_var="$ac_item" ;; 26983 esac 26984 eval "ac_val=\$$ac_var" 26985 if test ".$ac_val" != .yes; then 26986 ac_rc=no 26987 break 26988 fi 26989done 26990if test ".$ac_rc" = .yes; then 26991 : 26992 hasposixser="1" 26993else 26994 : 26995 hasposixser="0" 26996fi 26997 26998ac_rc=yes 26999for ac_spec in func:semget func:semctl func:semop define:SEM_UNDO; do 27000 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` 27001 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` 27002 case $ac_type in 27003 header ) 27004 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 27005 ac_var="ac_cv_header_$ac_item" 27006 ;; 27007 file ) 27008 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 27009 ac_var="ac_cv_file_$ac_item" 27010 ;; 27011 func ) ac_var="ac_cv_func_$ac_item" ;; 27012 struct ) ac_var="ac_cv_struct_$ac_item" ;; 27013 define ) ac_var="ac_cv_define_$ac_item" ;; 27014 custom ) ac_var="$ac_item" ;; 27015 esac 27016 eval "ac_val=\$$ac_var" 27017 if test ".$ac_val" != .yes; then 27018 ac_rc=no 27019 break 27020 fi 27021done 27022if test ".$ac_rc" = .yes; then 27023 : 27024 hassysvser="1" 27025else 27026 : 27027 hassysvser="0" 27028fi 27029 27030ac_rc=yes 27031for ac_spec in func:flock define:LOCK_EX; do 27032 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` 27033 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` 27034 case $ac_type in 27035 header ) 27036 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 27037 ac_var="ac_cv_header_$ac_item" 27038 ;; 27039 file ) 27040 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 27041 ac_var="ac_cv_file_$ac_item" 27042 ;; 27043 func ) ac_var="ac_cv_func_$ac_item" ;; 27044 struct ) ac_var="ac_cv_struct_$ac_item" ;; 27045 define ) ac_var="ac_cv_define_$ac_item" ;; 27046 custom ) ac_var="$ac_item" ;; 27047 esac 27048 eval "ac_val=\$$ac_var" 27049 if test ".$ac_val" != .yes; then 27050 ac_rc=no 27051 break 27052 fi 27053done 27054if test ".$ac_rc" = .yes; then 27055 : 27056 hasflockser="1" 27057else 27058 : 27059 hasflockser="0" 27060fi 27061 27062ac_rc=yes 27063for ac_spec in header:fcntl.h define:F_SETLK; do 27064 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` 27065 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` 27066 case $ac_type in 27067 header ) 27068 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 27069 ac_var="ac_cv_header_$ac_item" 27070 ;; 27071 file ) 27072 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 27073 ac_var="ac_cv_file_$ac_item" 27074 ;; 27075 func ) ac_var="ac_cv_func_$ac_item" ;; 27076 struct ) ac_var="ac_cv_struct_$ac_item" ;; 27077 define ) ac_var="ac_cv_define_$ac_item" ;; 27078 custom ) ac_var="$ac_item" ;; 27079 esac 27080 eval "ac_val=\$$ac_var" 27081 if test ".$ac_val" != .yes; then 27082 ac_rc=no 27083 break 27084 fi 27085done 27086if test ".$ac_rc" = .yes; then 27087 : 27088 hasfcntlser="1" 27089else 27090 : 27091 hasfcntlser="0" 27092fi 27093 27094# note: the current APR use of shared mutex requires /dev/zero 27095ac_rc=yes 27096for ac_spec in header:pthread.h define:PTHREAD_PROCESS_SHARED func:pthread_mutexattr_setpshared file:/dev/zero; do 27097 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` 27098 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` 27099 case $ac_type in 27100 header ) 27101 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 27102 ac_var="ac_cv_header_$ac_item" 27103 ;; 27104 file ) 27105 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 27106 ac_var="ac_cv_file_$ac_item" 27107 ;; 27108 func ) ac_var="ac_cv_func_$ac_item" ;; 27109 struct ) ac_var="ac_cv_struct_$ac_item" ;; 27110 define ) ac_var="ac_cv_define_$ac_item" ;; 27111 custom ) ac_var="$ac_item" ;; 27112 esac 27113 eval "ac_val=\$$ac_var" 27114 if test ".$ac_val" != .yes; then 27115 ac_rc=no 27116 break 27117 fi 27118done 27119if test ".$ac_rc" = .yes; then 27120 : 27121 hasprocpthreadser="1" 27122else 27123 : 27124 hasprocpthreadser="0" 27125fi 27126 27127ac_rc=yes 27128for ac_spec in header:OS.h func:create_sem; do 27129 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` 27130 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` 27131 case $ac_type in 27132 header ) 27133 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 27134 ac_var="ac_cv_header_$ac_item" 27135 ;; 27136 file ) 27137 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 27138 ac_var="ac_cv_file_$ac_item" 27139 ;; 27140 func ) ac_var="ac_cv_func_$ac_item" ;; 27141 struct ) ac_var="ac_cv_struct_$ac_item" ;; 27142 define ) ac_var="ac_cv_define_$ac_item" ;; 27143 custom ) ac_var="$ac_item" ;; 27144 esac 27145 eval "ac_val=\$$ac_var" 27146 if test ".$ac_val" != .yes; then 27147 ac_rc=no 27148 break 27149 fi 27150done 27151if test ".$ac_rc" = .yes; then 27152 : 27153 hasbeossem="1" 27154else 27155 : 27156 hasbeossem="0" 27157fi 27158 27159 27160for ac_func in pthread_condattr_setpshared 27161do : 27162 ac_fn_c_check_func "$LINENO" "pthread_condattr_setpshared" "ac_cv_func_pthread_condattr_setpshared" 27163if test "x$ac_cv_func_pthread_condattr_setpshared" = xyes; then : 27164 cat >>confdefs.h <<_ACEOF 27165#define HAVE_PTHREAD_CONDATTR_SETPSHARED 1 27166_ACEOF 27167 27168fi 27169done 27170 27171ac_rc=yes 27172for ac_spec in header:pthread.h func:pthread_condattr_setpshared; do 27173 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` 27174 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` 27175 case $ac_type in 27176 header ) 27177 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 27178 ac_var="ac_cv_header_$ac_item" 27179 ;; 27180 file ) 27181 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 27182 ac_var="ac_cv_file_$ac_item" 27183 ;; 27184 func ) ac_var="ac_cv_func_$ac_item" ;; 27185 struct ) ac_var="ac_cv_struct_$ac_item" ;; 27186 define ) ac_var="ac_cv_define_$ac_item" ;; 27187 custom ) ac_var="$ac_item" ;; 27188 esac 27189 eval "ac_val=\$$ac_var" 27190 if test ".$ac_val" != .yes; then 27191 ac_rc=no 27192 break 27193 fi 27194done 27195if test ".$ac_rc" = .yes; then 27196 : 27197 have_pthread_condattr_setpshared="1" 27198else 27199 : 27200 have_pthread_condattr_setpshared="0" 27201fi 27202 27203 27204 27205# See which lock mechanism we'll select by default on this system. 27206# The last APR_DECIDE to execute sets the default. 27207# At this stage, we match the ordering in Apache 1.3 27208# which is (highest to lowest): sysvsem -> fcntl -> flock. 27209# POSIX semaphores and cross-process pthread mutexes are not 27210# used by default since they have less desirable behaviour when 27211# e.g. a process holding the mutex segfaults. 27212# The BEOSSEM decision doesn't require any substitutions but is 27213# included here to prevent the fcntl() branch being selected 27214# from the decision making. 27215ac_decision_item='apr_lock implementation method' 27216ac_decision_msg='FAILED' 27217ac_decision='' 27218 27219ac_rc=yes 27220for ac_spec in func:flock define:LOCK_EX; do 27221 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` 27222 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` 27223 case $ac_type in 27224 header ) 27225 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 27226 ac_var="ac_cv_header_$ac_item" 27227 ;; 27228 file ) 27229 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 27230 ac_var="ac_cv_file_$ac_item" 27231 ;; 27232 func ) ac_var="ac_cv_func_$ac_item" ;; 27233 struct ) ac_var="ac_cv_struct_$ac_item" ;; 27234 define ) ac_var="ac_cv_define_$ac_item" ;; 27235 custom ) ac_var="$ac_item" ;; 27236 esac 27237 eval "ac_val=\$$ac_var" 27238 if test ".$ac_val" != .yes; then 27239 ac_rc=no 27240 break 27241 fi 27242done 27243if test ".$ac_rc" = .yes; then 27244 : 27245 27246ac_decision='USE_FLOCK_SERIALIZE' 27247ac_decision_msg='4.2BSD-style flock()' 27248ac_decision_USE_FLOCK_SERIALIZE=yes 27249ac_decision_USE_FLOCK_SERIALIZE_msg='4.2BSD-style flock()' 27250 27251else 27252 : 27253 27254fi 27255 27256ac_rc=yes 27257for ac_spec in header:fcntl.h define:F_SETLK; do 27258 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` 27259 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` 27260 case $ac_type in 27261 header ) 27262 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 27263 ac_var="ac_cv_header_$ac_item" 27264 ;; 27265 file ) 27266 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 27267 ac_var="ac_cv_file_$ac_item" 27268 ;; 27269 func ) ac_var="ac_cv_func_$ac_item" ;; 27270 struct ) ac_var="ac_cv_struct_$ac_item" ;; 27271 define ) ac_var="ac_cv_define_$ac_item" ;; 27272 custom ) ac_var="$ac_item" ;; 27273 esac 27274 eval "ac_val=\$$ac_var" 27275 if test ".$ac_val" != .yes; then 27276 ac_rc=no 27277 break 27278 fi 27279done 27280if test ".$ac_rc" = .yes; then 27281 : 27282 27283ac_decision='USE_FCNTL_SERIALIZE' 27284ac_decision_msg='SVR4-style fcntl()' 27285ac_decision_USE_FCNTL_SERIALIZE=yes 27286ac_decision_USE_FCNTL_SERIALIZE_msg='SVR4-style fcntl()' 27287 27288else 27289 : 27290 27291fi 27292 27293ac_rc=yes 27294for ac_spec in func:semget func:semctl func:semop define:SEM_UNDO; do 27295 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` 27296 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` 27297 case $ac_type in 27298 header ) 27299 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 27300 ac_var="ac_cv_header_$ac_item" 27301 ;; 27302 file ) 27303 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 27304 ac_var="ac_cv_file_$ac_item" 27305 ;; 27306 func ) ac_var="ac_cv_func_$ac_item" ;; 27307 struct ) ac_var="ac_cv_struct_$ac_item" ;; 27308 define ) ac_var="ac_cv_define_$ac_item" ;; 27309 custom ) ac_var="$ac_item" ;; 27310 esac 27311 eval "ac_val=\$$ac_var" 27312 if test ".$ac_val" != .yes; then 27313 ac_rc=no 27314 break 27315 fi 27316done 27317if test ".$ac_rc" = .yes; then 27318 : 27319 27320ac_decision='USE_SYSVSEM_SERIALIZE' 27321ac_decision_msg='SysV IPC semget()' 27322ac_decision_USE_SYSVSEM_SERIALIZE=yes 27323ac_decision_USE_SYSVSEM_SERIALIZE_msg='SysV IPC semget()' 27324 27325else 27326 : 27327 27328fi 27329 27330ac_rc=yes 27331for ac_spec in header:OS.h func:create_sem func:acquire_sem func:acquire_sem_etc; do 27332 ac_type=`echo "$ac_spec" | sed -e 's/:.*$//'` 27333 ac_item=`echo "$ac_spec" | sed -e 's/^.*://'` 27334 case $ac_type in 27335 header ) 27336 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 27337 ac_var="ac_cv_header_$ac_item" 27338 ;; 27339 file ) 27340 ac_item=`echo "$ac_item" | sed 'y%./+-%__p_%'` 27341 ac_var="ac_cv_file_$ac_item" 27342 ;; 27343 func ) ac_var="ac_cv_func_$ac_item" ;; 27344 struct ) ac_var="ac_cv_struct_$ac_item" ;; 27345 define ) ac_var="ac_cv_define_$ac_item" ;; 27346 custom ) ac_var="$ac_item" ;; 27347 esac 27348 eval "ac_val=\$$ac_var" 27349 if test ".$ac_val" != .yes; then 27350 ac_rc=no 27351 break 27352 fi 27353done 27354if test ".$ac_rc" = .yes; then 27355 : 27356 27357ac_decision='USE_BEOSSEM' 27358ac_decision_msg='BeOS Semaphores' 27359ac_decision_USE_BEOSSEM=yes 27360ac_decision_USE_BEOSSEM_msg='BeOS Semaphores' 27361 27362else 27363 : 27364 27365fi 27366 27367# pthread mutex both pshared and robust[_np] is the best default 27368case "$apr_cv_mutex_robust_shared" in 27369"yes"|"np") 27370 27371ac_decision='USE_PROC_PTHREAD_SERIALIZE' 27372ac_decision_msg='pthread pshared mutex' 27373ac_decision_USE_PROC_PTHREAD_SERIALIZE=yes 27374ac_decision_USE_PROC_PTHREAD_SERIALIZE_msg='pthread pshared mutex' 27375 27376 ;; 27377*) 27378 ;; 27379esac 27380if test "x$apr_lock_method" != "x"; then 27381 ac_decision="$apr_lock_method" 27382eval "ac_decision_msg=\"\$ac_decision_${ac_decision}_msg\"" 27383 27384fi 27385if test ".$ac_decision" = .; then 27386 echo "$0:Error: decision on $ac_decision_item failed" 1>&2 27387 exit 1 27388else 27389 if test ".$ac_decision_msg" = .; then 27390 ac_decision_msg="$ac_decision" 27391 fi 27392 cat >>confdefs.h <<_ACEOF 27393#define ${ac_decision_item} 1 27394_ACEOF 27395 27396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: decision on $ac_decision_item... $ac_decision_msg" >&5 27397$as_echo "decision on $ac_decision_item... $ac_decision_msg" >&6; } 27398fi 27399 27400cat >>confdefs.h <<_ACEOF 27401#define $ac_decision 1 27402_ACEOF 27403 27404 27405flockser="0" 27406sysvser="0" 27407posixser="0" 27408procpthreadser="0" 27409fcntlser="0" 27410case $ac_decision in 27411 USE_FLOCK_SERIALIZE ) 27412 flockser="1" 27413 ;; 27414 USE_FCNTL_SERIALIZE ) 27415 fcntlser="1" 27416 ;; 27417 USE_SYSVSEM_SERIALIZE ) 27418 sysvser="1" 27419 ;; 27420 USE_POSIXSEM_SERIALIZE ) 27421 posixser="1" 27422 ;; 27423 USE_PROC_PTHREAD_SERIALIZE ) 27424 procpthreadser="1" 27425 ;; 27426 USE_BEOSSEM ) 27427 beossem="1" 27428 ;; 27429esac 27430 27431if test $hasfcntlser = "1"; then 27432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl returns EACCES when F_SETLK is already held" >&5 27433$as_echo_n "checking if fcntl returns EACCES when F_SETLK is already held... " >&6; } 27434if test "$cross_compiling" = yes; then : 27435 apr_fcntl_tryacquire_eacces=0 27436else 27437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27438/* end confdefs.h. */ 27439 27440#ifdef HAVE_STDLIB_H 27441#include <stdlib.h> 27442#endif 27443#ifdef HAVE_SYS_TYPES_H 27444#include <sys/types.h> 27445#endif 27446#ifdef HAVE_SYS_STAT_H 27447#include <sys/stat.h> 27448#endif 27449#ifdef HAVE_SYS_WAIT_H 27450#include <sys/wait.h> 27451#endif 27452#if defined(HAVE_UNISTD_H) 27453#include <unistd.h> 27454#endif 27455#include <fcntl.h> 27456#include <errno.h> 27457 27458int fd; 27459struct flock proc_mutex_lock_it = {0}; 27460const char *fname = "conftest.fcntl"; 27461 27462int main() 27463{ 27464 int rc, status;; 27465 proc_mutex_lock_it.l_whence = SEEK_SET; /* from current point */ 27466 proc_mutex_lock_it.l_type = F_WRLCK; /* set exclusive/write lock */ 27467 27468 fd = creat(fname, S_IRWXU); 27469 unlink(fname); 27470 27471 if (rc = lockit()) { 27472 exit(-1); 27473 } 27474 27475 if (fork()) { 27476 wait(&status); 27477 } 27478 else { 27479 return(lockit()); 27480 } 27481 27482 close(fd); 27483 exit(WEXITSTATUS(status) != EACCES); 27484} 27485 27486int lockit() { 27487 int rc; 27488 do { 27489 rc = fcntl(fd, F_SETLK, &proc_mutex_lock_it); 27490 } while ( rc < 0 && errno == EINTR); 27491 27492 return (rc < 0) ? errno : 0; 27493} 27494_ACEOF 27495if ac_fn_c_try_run "$LINENO"; then : 27496 apr_fcntl_tryacquire_eacces=1 27497else 27498 apr_fcntl_tryacquire_eacces=0 27499fi 27500rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27501 conftest.$ac_objext conftest.beam conftest.$ac_ext 27502fi 27503 27504fi 27505 27506if test "$apr_fcntl_tryacquire_eacces" = "1"; then 27507 27508$as_echo "#define FCNTL_TRYACQUIRE_EACCES 1" >>confdefs.h 27509 27510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27511$as_echo "yes" >&6; } 27512else 27513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27514$as_echo "no" >&6; } 27515fi 27516 27517 27518 27519 27520 27521 27522 27523 27524 27525 27526 27527 27528 27529 27530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if all interprocess locks affect threads" >&5 27531$as_echo_n "checking if all interprocess locks affect threads... " >&6; } 27532if test "x$apr_process_lock_is_global" = "xyes"; then 27533 proclockglobal="1" 27534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27535$as_echo "yes" >&6; } 27536else 27537 proclockglobal="0" 27538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27539$as_echo "no" >&6; } 27540fi 27541 27542 27543 27544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if POSIX sems affect threads in the same process" >&5 27545$as_echo_n "checking if POSIX sems affect threads in the same process... " >&6; } 27546if test "x$apr_posixsem_is_global" = "xyes"; then 27547 27548$as_echo "#define POSIXSEM_IS_GLOBAL 1" >>confdefs.h 27549 27550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27551$as_echo "yes" >&6; } 27552else 27553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27554$as_echo "no" >&6; } 27555fi 27556 27557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SysV sems affect threads in the same process" >&5 27558$as_echo_n "checking if SysV sems affect threads in the same process... " >&6; } 27559if test "x$apr_sysvsem_is_global" = "xyes"; then 27560 27561$as_echo "#define SYSVSEM_IS_GLOBAL 1" >>confdefs.h 27562 27563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27564$as_echo "yes" >&6; } 27565else 27566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27567$as_echo "no" >&6; } 27568fi 27569 27570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl locks affect threads in the same process" >&5 27571$as_echo_n "checking if fcntl locks affect threads in the same process... " >&6; } 27572if test "x$apr_fcntl_is_global" = "xyes"; then 27573 27574$as_echo "#define FCNTL_IS_GLOBAL 1" >>confdefs.h 27575 27576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27577$as_echo "yes" >&6; } 27578else 27579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27580$as_echo "no" >&6; } 27581fi 27582 27583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if flock locks affect threads in the same process" >&5 27584$as_echo_n "checking if flock locks affect threads in the same process... " >&6; } 27585if test "x$apr_flock_is_global" = "xyes"; then 27586 27587$as_echo "#define FLOCK_IS_GLOBAL 1" >>confdefs.h 27588 27589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27590$as_echo "yes" >&6; } 27591else 27592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27593$as_echo "no" >&6; } 27594fi 27595 27596for ac_header in sys/random.h 27597do : 27598 ac_fn_c_check_header_mongrel "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default" 27599if test "x$ac_cv_header_sys_random_h" = xyes; then : 27600 cat >>confdefs.h <<_ACEOF 27601#define HAVE_SYS_RANDOM_H 1 27602_ACEOF 27603 27604fi 27605 27606done 27607 27608for ac_func in getrandom 27609do : 27610 ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom" 27611if test "x$ac_cv_func_getrandom" = xyes; then : 27612 cat >>confdefs.h <<_ACEOF 27613#define HAVE_GETRANDOM 1 27614_ACEOF 27615 27616fi 27617done 27618 27619 27620for ac_header in sys/syscall.h 27621do : 27622 ac_fn_c_check_header_mongrel "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default" 27623if test "x$ac_cv_header_sys_syscall_h" = xyes; then : 27624 cat >>confdefs.h <<_ACEOF 27625#define HAVE_SYS_SYSCALL_H 1 27626_ACEOF 27627 27628fi 27629 27630done 27631 27632for ac_header in linux/random.h 27633do : 27634 ac_fn_c_check_header_mongrel "$LINENO" "linux/random.h" "ac_cv_header_linux_random_h" "$ac_includes_default" 27635if test "x$ac_cv_header_linux_random_h" = xyes; then : 27636 cat >>confdefs.h <<_ACEOF 27637#define HAVE_LINUX_RANDOM_H 1 27638_ACEOF 27639 27640fi 27641 27642done 27643 27644ac_fn_c_check_decl "$LINENO" "SYS_getrandom" "ac_cv_have_decl_SYS_getrandom" "#include <sys/syscall.h> 27645" 27646if test "x$ac_cv_have_decl_SYS_getrandom" = xyes; then : 27647 ac_have_decl=1 27648else 27649 ac_have_decl=0 27650fi 27651 27652cat >>confdefs.h <<_ACEOF 27653#define HAVE_DECL_SYS_GETRANDOM $ac_have_decl 27654_ACEOF 27655 27656 27657for ac_func in arc4random_buf 27658do : 27659 ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf" 27660if test "x$ac_cv_func_arc4random_buf" = xyes; then : 27661 cat >>confdefs.h <<_ACEOF 27662#define HAVE_ARC4RANDOM_BUF 1 27663_ACEOF 27664 27665fi 27666done 27667 27668 27669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for entropy source" >&5 27670$as_echo_n "checking for entropy source... " >&6; } 27671 27672why_no_rand="" 27673 27674 27675# Check whether --with-egd was given. 27676if test "${with_egd+set}" = set; then : 27677 withval=$with_egd; 27678$as_echo "#define HAVE_EGD 1" >>confdefs.h 27679 27680 if test "$withval" = "yes"; then 27681 27682cat >>confdefs.h <<_ACEOF 27683#define EGD_DEFAULT_SOCKET "/var/run/egd-pool","/dev/egd-pool","/etc/egd-pool","/etc/entropy" 27684_ACEOF 27685 27686 else 27687 cat >>confdefs.h <<_ACEOF 27688#define EGD_DEFAULT_SOCKET "$withval" 27689_ACEOF 27690 27691 fi 27692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: EGD-compatible daemon" >&5 27693$as_echo "EGD-compatible daemon" >&6; } 27694 rand="1" 27695 27696fi 27697 27698 27699if test "$rand" != "1"; then 27700 if test "$ac_cv_func_getrandom" = yes; then 27701 rand="getrandom" 27702 elif test "$ac_cv_have_decl_SYS_getrandom" = yes; then 27703 rand="SYS_getrandom" 27704 elif test "$ac_cv_func_arc4random_buf" = yes; then 27705 rand="arc4random" 27706 fi 27707fi 27708 27709if test "$rand" != "1"; then 27710 27711# Check whether --with-devrandom was given. 27712if test "${with_devrandom+set}" = set; then : 27713 withval=$with_devrandom; apr_devrandom="$withval" 27714else 27715 apr_devrandom="no" 27716fi 27717 27718 if test "$apr_devrandom" = "no"; then 27719 if test -z "$rand"; then 27720 apr_devrandom="yes" 27721 else 27722 apr_devrandom="no" 27723 fi 27724 fi 27725 27726 if test "$apr_devrandom" = "yes"; then 27727 # /dev/random on OpenBSD doesn't provide random data, so 27728 # prefer /dev/arandom, which does; see random(4). 27729 for f in /dev/arandom /dev/urandom /dev/random; do 27730 if test -r $f; then 27731 apr_devrandom=$f 27732 rand="1" 27733 break 27734 fi 27735 done 27736 elif test "$apr_devrandom" != "no"; then 27737 if test -r "$apr_devrandom"; then 27738 rand="1" 27739 else 27740 as_fn_error $? "$apr_devrandom not found or unreadable." "$LINENO" 5 27741 fi 27742 fi 27743 27744 if test "$rand" = "1"; then 27745 case $host in 27746 *os390) 27747 if test $os_version -lt 1700; then 27748 rand="0" 27749 why_no_rand=" ($apr_devrandom unusable on z/OS before V1R7)" 27750 fi 27751 ;; 27752 esac 27753 fi 27754 27755 if test "$rand" = "1"; then 27756 27757cat >>confdefs.h <<_ACEOF 27758#define DEV_RANDOM "$apr_devrandom" 27759_ACEOF 27760 27761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_devrandom" >&5 27762$as_echo "$apr_devrandom" >&6; } 27763 elif test -n "$rand"; then 27764 27765cat >>confdefs.h <<_ACEOF 27766#define SYS_RANDOM "$rand" 27767_ACEOF 27768 27769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rand" >&5 27770$as_echo "$rand" >&6; } 27771 rand="1" 27772 fi 27773fi 27774 27775if test "$rand" != "1"; then 27776 case $host in 27777 # we have built in support for OS/2 27778 *-os2*) 27779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using OS/2 builtin random" >&5 27780$as_echo "Using OS/2 builtin random" >&6; } 27781 rand="1" 27782 ;; 27783 *) 27784 if test "$rand" != "1"; then 27785 if test "$ac_cv_lib_truerand_main" = "yes"; then 27786 27787$as_echo "#define HAVE_TRUERAND 1" >>confdefs.h 27788 27789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: truerand" >&5 27790$as_echo "truerand" >&6; } 27791 rand="1" 27792 else 27793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found$why_no_rand" >&5 27794$as_echo "not found$why_no_rand" >&6; } 27795 rand="0" 27796 fi 27797 fi 27798 ;; 27799 esac 27800fi 27801 27802 27803 27804echo "${nl}Checking for File Info Support..." 27805ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" " 27806#ifdef HAVE_SYS_TYPES_H 27807#include <sys/types.h> 27808#endif 27809#ifdef HAVE_SYS_STAT_H 27810#include <sys/stat.h> 27811#endif 27812#ifdef HAVE_UNISTD_H 27813#include <unistd.h> 27814#endif 27815" 27816if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : 27817 27818cat >>confdefs.h <<_ACEOF 27819#define HAVE_STRUCT_STAT_ST_BLOCKS 1 27820_ACEOF 27821 27822 27823fi 27824ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" " 27825#ifdef HAVE_SYS_TYPES_H 27826#include <sys/types.h> 27827#endif 27828#ifdef HAVE_SYS_STAT_H 27829#include <sys/stat.h> 27830#endif 27831#ifdef HAVE_UNISTD_H 27832#include <unistd.h> 27833#endif 27834" 27835if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then : 27836 27837cat >>confdefs.h <<_ACEOF 27838#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1 27839_ACEOF 27840 27841 27842fi 27843ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimensec" "ac_cv_member_struct_stat_st_ctimensec" " 27844#ifdef HAVE_SYS_TYPES_H 27845#include <sys/types.h> 27846#endif 27847#ifdef HAVE_SYS_STAT_H 27848#include <sys/stat.h> 27849#endif 27850#ifdef HAVE_UNISTD_H 27851#include <unistd.h> 27852#endif 27853" 27854if test "x$ac_cv_member_struct_stat_st_ctimensec" = xyes; then : 27855 27856cat >>confdefs.h <<_ACEOF 27857#define HAVE_STRUCT_STAT_ST_CTIMENSEC 1 27858_ACEOF 27859 27860 27861fi 27862ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" " 27863#ifdef HAVE_SYS_TYPES_H 27864#include <sys/types.h> 27865#endif 27866#ifdef HAVE_SYS_STAT_H 27867#include <sys/stat.h> 27868#endif 27869#ifdef HAVE_UNISTD_H 27870#include <unistd.h> 27871#endif 27872" 27873if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then : 27874 27875cat >>confdefs.h <<_ACEOF 27876#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1 27877_ACEOF 27878 27879 27880fi 27881ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" " 27882#ifdef HAVE_SYS_TYPES_H 27883#include <sys/types.h> 27884#endif 27885#ifdef HAVE_SYS_STAT_H 27886#include <sys/stat.h> 27887#endif 27888#ifdef HAVE_UNISTD_H 27889#include <unistd.h> 27890#endif 27891" 27892if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then : 27893 27894cat >>confdefs.h <<_ACEOF 27895#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1 27896_ACEOF 27897 27898 27899fi 27900ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim.tv_nsec" "ac_cv_member_struct_stat_st_ctim_tv_nsec" " 27901#ifdef HAVE_SYS_TYPES_H 27902#include <sys/types.h> 27903#endif 27904#ifdef HAVE_SYS_STAT_H 27905#include <sys/stat.h> 27906#endif 27907#ifdef HAVE_UNISTD_H 27908#include <unistd.h> 27909#endif 27910" 27911if test "x$ac_cv_member_struct_stat_st_ctim_tv_nsec" = xyes; then : 27912 27913cat >>confdefs.h <<_ACEOF 27914#define HAVE_STRUCT_STAT_ST_CTIM_TV_NSEC 1 27915_ACEOF 27916 27917 27918fi 27919ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" " 27920#ifdef HAVE_SYS_TYPES_H 27921#include <sys/types.h> 27922#endif 27923#ifdef HAVE_SYS_STAT_H 27924#include <sys/stat.h> 27925#endif 27926#ifdef HAVE_UNISTD_H 27927#include <unistd.h> 27928#endif 27929" 27930if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then : 27931 27932cat >>confdefs.h <<_ACEOF 27933#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1 27934_ACEOF 27935 27936 27937fi 27938ac_fn_c_check_member "$LINENO" "struct stat" "st_atime_n" "ac_cv_member_struct_stat_st_atime_n" " 27939#ifdef HAVE_SYS_TYPES_H 27940#include <sys/types.h> 27941#endif 27942#ifdef HAVE_SYS_STAT_H 27943#include <sys/stat.h> 27944#endif 27945#ifdef HAVE_UNISTD_H 27946#include <unistd.h> 27947#endif 27948" 27949if test "x$ac_cv_member_struct_stat_st_atime_n" = xyes; then : 27950 27951cat >>confdefs.h <<_ACEOF 27952#define HAVE_STRUCT_STAT_ST_ATIME_N 1 27953_ACEOF 27954 27955 27956fi 27957ac_fn_c_check_member "$LINENO" "struct stat" "st_ctime_n" "ac_cv_member_struct_stat_st_ctime_n" " 27958#ifdef HAVE_SYS_TYPES_H 27959#include <sys/types.h> 27960#endif 27961#ifdef HAVE_SYS_STAT_H 27962#include <sys/stat.h> 27963#endif 27964#ifdef HAVE_UNISTD_H 27965#include <unistd.h> 27966#endif 27967" 27968if test "x$ac_cv_member_struct_stat_st_ctime_n" = xyes; then : 27969 27970cat >>confdefs.h <<_ACEOF 27971#define HAVE_STRUCT_STAT_ST_CTIME_N 1 27972_ACEOF 27973 27974 27975fi 27976ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime_n" "ac_cv_member_struct_stat_st_mtime_n" " 27977#ifdef HAVE_SYS_TYPES_H 27978#include <sys/types.h> 27979#endif 27980#ifdef HAVE_SYS_STAT_H 27981#include <sys/stat.h> 27982#endif 27983#ifdef HAVE_UNISTD_H 27984#include <unistd.h> 27985#endif 27986" 27987if test "x$ac_cv_member_struct_stat_st_mtime_n" = xyes; then : 27988 27989cat >>confdefs.h <<_ACEOF 27990#define HAVE_STRUCT_STAT_ST_MTIME_N 1 27991_ACEOF 27992 27993 27994fi 27995 27996 27997 27998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inode member of struct dirent" >&5 27999$as_echo_n "checking for inode member of struct dirent... " >&6; } 28000if ${apr_cv_dirent_inode+:} false; then : 28001 $as_echo_n "(cached) " >&6 28002else 28003 28004apr_cv_dirent_inode=no 28005cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28006/* end confdefs.h. */ 28007 28008#include <sys/types.h> 28009#include <dirent.h> 28010 28011int 28012main () 28013{ 28014 28015#ifdef d_ino 28016#undef d_ino 28017#endif 28018struct dirent de; de.d_fileno; 28019 28020 ; 28021 return 0; 28022} 28023_ACEOF 28024if ac_fn_c_try_compile "$LINENO"; then : 28025 apr_cv_dirent_inode=d_fileno 28026fi 28027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28028if test "$apr_cv_dirent_inode" = "no"; then 28029cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28030/* end confdefs.h. */ 28031 28032#include <sys/types.h> 28033#include <dirent.h> 28034 28035int 28036main () 28037{ 28038 28039#ifdef d_fileno 28040#undef d_fileno 28041#endif 28042struct dirent de; de.d_ino; 28043 28044 ; 28045 return 0; 28046} 28047_ACEOF 28048if ac_fn_c_try_compile "$LINENO"; then : 28049 apr_cv_dirent_inode=d_ino 28050fi 28051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28052fi 28053 28054fi 28055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dirent_inode" >&5 28056$as_echo "$apr_cv_dirent_inode" >&6; } 28057if test "$apr_cv_dirent_inode" != "no"; then 28058 28059cat >>confdefs.h <<_ACEOF 28060#define DIRENT_INODE $apr_cv_dirent_inode 28061_ACEOF 28062 28063fi 28064 28065 28066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file type member of struct dirent" >&5 28067$as_echo_n "checking for file type member of struct dirent... " >&6; } 28068if ${apr_cv_dirent_type+:} false; then : 28069 $as_echo_n "(cached) " >&6 28070else 28071 28072apr_cv_dirent_type=no 28073cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28074/* end confdefs.h. */ 28075 28076#include <sys/types.h> 28077#include <dirent.h> 28078 28079int 28080main () 28081{ 28082 28083struct dirent de; de.d_type = DT_REG; 28084 28085 ; 28086 return 0; 28087} 28088_ACEOF 28089if ac_fn_c_try_compile "$LINENO"; then : 28090 apr_cv_dirent_type=d_type 28091fi 28092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28093 28094fi 28095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_dirent_type" >&5 28096$as_echo "$apr_cv_dirent_type" >&6; } 28097if test "$apr_cv_dirent_type" != "no"; then 28098 28099cat >>confdefs.h <<_ACEOF 28100#define DIRENT_TYPE $apr_cv_dirent_type 28101_ACEOF 28102 28103fi 28104 28105 28106echo "${nl}Checking for OS UUID Support..." 28107 28108for ac_header in uuid.h uuid/uuid.h sys/uuid.h 28109do : 28110 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 28111ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 28112if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 28113 cat >>confdefs.h <<_ACEOF 28114#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 28115_ACEOF 28116 break 28117fi 28118 28119done 28120 28121 28122apr_revert_save_LIBS=$LIBS 28123 28124# Prefer the flavor(s) that live in libc; 28125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_create" >&5 28126$as_echo_n "checking for library containing uuid_create... " >&6; } 28127if ${ac_cv_search_uuid_create+:} false; then : 28128 $as_echo_n "(cached) " >&6 28129else 28130 ac_func_search_save_LIBS=$LIBS 28131cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28132/* end confdefs.h. */ 28133 28134/* Override any GCC internal prototype to avoid an error. 28135 Use char because int might match the return type of a GCC 28136 builtin and then its argument prototype would still apply. */ 28137#ifdef __cplusplus 28138extern "C" 28139#endif 28140char uuid_create (); 28141int 28142main () 28143{ 28144return uuid_create (); 28145 ; 28146 return 0; 28147} 28148_ACEOF 28149for ac_lib in '' uuid; do 28150 if test -z "$ac_lib"; then 28151 ac_res="none required" 28152 else 28153 ac_res=-l$ac_lib 28154 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 28155 fi 28156 if ac_fn_c_try_link "$LINENO"; then : 28157 ac_cv_search_uuid_create=$ac_res 28158fi 28159rm -f core conftest.err conftest.$ac_objext \ 28160 conftest$ac_exeext 28161 if ${ac_cv_search_uuid_create+:} false; then : 28162 break 28163fi 28164done 28165if ${ac_cv_search_uuid_create+:} false; then : 28166 28167else 28168 ac_cv_search_uuid_create=no 28169fi 28170rm conftest.$ac_ext 28171LIBS=$ac_func_search_save_LIBS 28172fi 28173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_create" >&5 28174$as_echo "$ac_cv_search_uuid_create" >&6; } 28175ac_res=$ac_cv_search_uuid_create 28176if test "$ac_res" != no; then : 28177 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 28178 28179fi 28180 28181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5 28182$as_echo_n "checking for library containing uuid_generate... " >&6; } 28183if ${ac_cv_search_uuid_generate+:} false; then : 28184 $as_echo_n "(cached) " >&6 28185else 28186 ac_func_search_save_LIBS=$LIBS 28187cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28188/* end confdefs.h. */ 28189 28190/* Override any GCC internal prototype to avoid an error. 28191 Use char because int might match the return type of a GCC 28192 builtin and then its argument prototype would still apply. */ 28193#ifdef __cplusplus 28194extern "C" 28195#endif 28196char uuid_generate (); 28197int 28198main () 28199{ 28200return uuid_generate (); 28201 ; 28202 return 0; 28203} 28204_ACEOF 28205for ac_lib in '' uuid; do 28206 if test -z "$ac_lib"; then 28207 ac_res="none required" 28208 else 28209 ac_res=-l$ac_lib 28210 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 28211 fi 28212 if ac_fn_c_try_link "$LINENO"; then : 28213 ac_cv_search_uuid_generate=$ac_res 28214fi 28215rm -f core conftest.err conftest.$ac_objext \ 28216 conftest$ac_exeext 28217 if ${ac_cv_search_uuid_generate+:} false; then : 28218 break 28219fi 28220done 28221if ${ac_cv_search_uuid_generate+:} false; then : 28222 28223else 28224 ac_cv_search_uuid_generate=no 28225fi 28226rm conftest.$ac_ext 28227LIBS=$ac_func_search_save_LIBS 28228fi 28229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5 28230$as_echo "$ac_cv_search_uuid_generate" >&6; } 28231ac_res=$ac_cv_search_uuid_generate 28232if test "$ac_res" != no; then : 28233 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 28234 28235fi 28236 28237if test "$ac_cv_search_uuid_create" = "none required" -o \ 28238 "$ac_cv_search_uuid_generate" = "none required"; then 28239 LIBS=$apr_revert_save_LIBS 28240fi 28241 28242for ac_func in uuid_create uuid_generate 28243do : 28244 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 28245ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 28246if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 28247 cat >>confdefs.h <<_ACEOF 28248#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 28249_ACEOF 28250 28251fi 28252done 28253 28254 28255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for os uuid usability" >&5 28256$as_echo_n "checking for os uuid usability... " >&6; } 28257if ${apr_cv_osuuid+:} false; then : 28258 $as_echo_n "(cached) " >&6 28259else 28260 28261# Ensure this test closely mirrors misc/unix/rand.c! 28262uuid_includes=" 28263#if defined(HAVE_SYS_TYPES_H) 28264#include <sys/types.h> 28265#endif 28266#if defined(HAVE_UNISTD_H) 28267#include <unistd.h> 28268#endif 28269#if defined(HAVE_UUID_H) 28270#include <uuid.h> 28271#elif defined(HAVE_UUID_UUID_H) 28272#include <uuid/uuid.h> 28273#elif defined(HAVE_SYS_UUID_H) 28274#include <sys/uuid.h> 28275#endif 28276" 28277 apr_cv_osuuid=no 28278 if test $ac_cv_func_uuid_create = yes; then 28279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28280/* end confdefs.h. */ 28281$uuid_includes 28282int 28283main () 28284{ 28285 28286 uuid_t g; 28287 uint32_t s; 28288 uuid_create(&g, &s); 28289 if (s == uuid_s_ok) s = 0; 28290 28291 ; 28292 return 0; 28293} 28294_ACEOF 28295if ac_fn_c_try_link "$LINENO"; then : 28296 apr_cv_osuuid=yes 28297else 28298 apr_cv_func_uuid_create=no 28299fi 28300rm -f core conftest.err conftest.$ac_objext \ 28301 conftest$ac_exeext conftest.$ac_ext 28302 fi 28303 if test $ac_cv_func_uuid_generate = yes; then 28304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28305/* end confdefs.h. */ 28306$uuid_includes 28307int 28308main () 28309{ 28310 28311 uuid_t g; 28312 uuid_generate(g); 28313 28314 ; 28315 return 0; 28316} 28317_ACEOF 28318if ac_fn_c_try_link "$LINENO"; then : 28319 apr_cv_osuuid=yes 28320else 28321 apr_cv_func_uuid_generate=no 28322fi 28323rm -f core conftest.err conftest.$ac_objext \ 28324 conftest$ac_exeext conftest.$ac_ext 28325 fi 28326 28327fi 28328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_osuuid" >&5 28329$as_echo "$apr_cv_osuuid" >&6; } 28330 28331if test $apr_cv_osuuid = yes; then 28332 osuuid="1" 28333else 28334 osuuid="0" 28335 LIBS=$apr_revert_save_LIBS 28336fi 28337 28338 28339 28340echo "${nl}Checking for Time Support..." 28341 28342ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" " 28343#include <sys/types.h> 28344#include <time.h> 28345" 28346if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then : 28347 28348cat >>confdefs.h <<_ACEOF 28349#define HAVE_STRUCT_TM_TM_GMTOFF 1 28350_ACEOF 28351 28352 28353fi 28354ac_fn_c_check_member "$LINENO" "struct tm" "__tm_gmtoff" "ac_cv_member_struct_tm___tm_gmtoff" " 28355#include <sys/types.h> 28356#include <time.h> 28357" 28358if test "x$ac_cv_member_struct_tm___tm_gmtoff" = xyes; then : 28359 28360cat >>confdefs.h <<_ACEOF 28361#define HAVE_STRUCT_TM___TM_GMTOFF 1 28362_ACEOF 28363 28364 28365fi 28366 28367 28368echo "${nl}Checking for Networking support..." 28369 28370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type in_addr" >&5 28371$as_echo_n "checking for type in_addr... " >&6; } 28372if ${ac_cv_type_in_addr+:} false; then : 28373 $as_echo_n "(cached) " >&6 28374else 28375 28376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28377/* end confdefs.h. */ 28378 28379#ifdef HAVE_SYS_TYPES_H 28380#include <sys/types.h> 28381#endif 28382#ifdef HAVE_NETINET_IN_H 28383#include <netinet/in.h> 28384#endif 28385#ifdef HAVE_WINSOCK2_H 28386#include <winsock2.h> 28387#endif 28388 28389int 28390main () 28391{ 28392 28393 struct in_addr arg; 28394 arg.s_addr = htonl(INADDR_ANY); 28395 28396 ; 28397 return 0; 28398} 28399_ACEOF 28400if ac_fn_c_try_compile "$LINENO"; then : 28401 ac_cv_type_in_addr="yes" 28402else 28403 28404ac_cv_type_in_addr="no" 28405fi 28406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28407 28408fi 28409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_in_addr" >&5 28410$as_echo "$ac_cv_type_in_addr" >&6; } 28411 28412if test "$ac_cv_type_in_addr" = "yes"; then 28413 have_in_addr="1" 28414else 28415 have_in_addr="0" 28416fi 28417 28418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if fd == socket on this platform" >&5 28419$as_echo_n "checking if fd == socket on this platform... " >&6; } 28420if test "x$file_as_socket" != "x0" ; then 28421 file_as_socket="1"; 28422 echo "yes" 28423else 28424 echo "no" 28425fi 28426 28427 28428 28429 28430if test "$ac_cv_func_poll $file_as_socket" = "yes 1"; then 28431 28432$as_echo "#define WAITIO_USES_POLL 1" >>confdefs.h 28433 28434fi 28435 28436# Check the types only if we have gethostbyname_r 28437if test "$ac_cv_func_gethostbyname_r" = "yes"; then 28438 28439 28440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking style of gethostbyname_r routine" >&5 28441$as_echo_n "checking style of gethostbyname_r routine... " >&6; } 28442if ${ac_cv_gethostbyname_r_style+:} false; then : 28443 $as_echo_n "(cached) " >&6 28444else 28445 apr_save_CFLAGS=$CFLAGS 28446 CFLAGS="$CFLAGS $CFLAGS_WARN" 28447 if test "$ac_cv_c_compiler_gnu" = "yes"; then 28448 CFLAGS="$CFLAGS -Werror" 28449 fi 28450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28451/* end confdefs.h. */ 28452#include "confdefs.h" 28453 28454 28455#ifdef HAVE_SYS_TYPES_H 28456#include <sys/types.h> 28457#endif 28458#ifdef HAVE_NETINET_IN_H 28459#include <netinet/in.h> 28460#endif 28461#ifdef HAVE_ARPA_INET_H 28462#include <arpa/inet.h> 28463#endif 28464#ifdef HAVE_NETDB_H 28465#include <netdb.h> 28466#endif 28467#ifdef HAVE_STDLIB_H 28468#include <stdlib.h> 28469#endif 28470 28471 int main(int argc, const char *const *argv) { 28472 28473int tmp = gethostbyname_r((const char *) 0, (struct hostent *) 0, 28474 (char *) 0, 0, (struct hostent **) 0, &tmp); 28475/* use tmp to suppress the warning */ 28476tmp=0; 28477 28478 return 0; } 28479 28480_ACEOF 28481if ac_fn_c_try_compile "$LINENO"; then : 28482 CFLAGS=$apr_save_CFLAGS 28483ac_cv_gethostbyname_r_style=glibc2 28484else 28485 CFLAGS=$apr_save_CFLAGS 28486ac_cv_gethostbyname_r_style=none 28487fi 28488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28489 28490fi 28491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gethostbyname_r_style" >&5 28492$as_echo "$ac_cv_gethostbyname_r_style" >&6; } 28493 28494if test "$ac_cv_gethostbyname_r_style" = "glibc2"; then 28495 28496$as_echo "#define GETHOSTBYNAME_R_GLIBC2 1" >>confdefs.h 28497 28498fi 28499 28500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking 3rd argument to the gethostbyname_r routines" >&5 28501$as_echo_n "checking 3rd argument to the gethostbyname_r routines... " >&6; } 28502if ${ac_cv_gethostbyname_r_arg+:} false; then : 28503 $as_echo_n "(cached) " >&6 28504else 28505 apr_save_CFLAGS=$CFLAGS 28506 CFLAGS="$CFLAGS $CFLAGS_WARN" 28507 if test "$ac_cv_c_compiler_gnu" = "yes"; then 28508 CFLAGS="$CFLAGS -Werror" 28509 fi 28510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28511/* end confdefs.h. */ 28512#include "confdefs.h" 28513 28514 28515#ifdef HAVE_SYS_TYPES_H 28516#include <sys/types.h> 28517#endif 28518#ifdef HAVE_NETINET_IN_H 28519#include <netinet/in.h> 28520#endif 28521#ifdef HAVE_ARPA_INET_H 28522#include <arpa/inet.h> 28523#endif 28524#ifdef HAVE_NETDB_H 28525#include <netdb.h> 28526#endif 28527#ifdef HAVE_STDLIB_H 28528#include <stdlib.h> 28529#endif 28530 28531 int main(int argc, const char *const *argv) { 28532 28533int tmp = gethostbyname_r((const char *) 0, (struct hostent *) 0, 28534 (struct hostent_data *) 0); 28535/* use tmp to suppress the warning */ 28536tmp=0; 28537 28538 return 0; } 28539 28540_ACEOF 28541if ac_fn_c_try_compile "$LINENO"; then : 28542 CFLAGS=$apr_save_CFLAGS 28543ac_cv_gethostbyname_r_arg=hostent_data 28544else 28545 CFLAGS=$apr_save_CFLAGS 28546ac_cv_gethostbyname_r_arg=char 28547fi 28548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28549 28550fi 28551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gethostbyname_r_arg" >&5 28552$as_echo "$ac_cv_gethostbyname_r_arg" >&6; } 28553 28554if test "$ac_cv_gethostbyname_r_arg" = "hostent_data"; then 28555 28556$as_echo "#define GETHOSTBYNAME_R_HOSTENT_DATA 1" >>confdefs.h 28557 28558fi 28559 28560fi 28561 28562# Check the types only if we have getservbyname_r 28563if test "$ac_cv_func_getservbyname_r" = "yes"; then 28564 28565 28566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking style of getservbyname_r routine" >&5 28567$as_echo_n "checking style of getservbyname_r routine... " >&6; } 28568if ${ac_cv_getservbyname_r_style+:} false; then : 28569 $as_echo_n "(cached) " >&6 28570else 28571 28572apr_save_CFLAGS=$CFLAGS 28573 CFLAGS="$CFLAGS $CFLAGS_WARN" 28574 if test "$ac_cv_c_compiler_gnu" = "yes"; then 28575 CFLAGS="$CFLAGS -Werror" 28576 fi 28577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28578/* end confdefs.h. */ 28579#include "confdefs.h" 28580 28581 28582#ifdef HAVE_SYS_TYPES_H 28583#include <sys/types.h> 28584#endif 28585#ifdef HAVE_NETINET_IN_H 28586#include <netinet/in.h> 28587#endif 28588#ifdef HAVE_ARPA_INET_H 28589#include <arpa/inet.h> 28590#endif 28591#ifdef HAVE_NETDB_H 28592#include <netdb.h> 28593#endif 28594#ifdef HAVE_STDLIB_H 28595#include <stdlib.h> 28596#endif 28597 28598 int main(int argc, const char *const *argv) { 28599 28600int tmp = getservbyname_r((const char *) 0, (const char *) 0, 28601 (struct servent *) 0, (char *) 0, 0, 28602 (struct servent **) 0); 28603/* use tmp to suppress the warning */ 28604tmp=0; 28605 28606 return 0; } 28607 28608_ACEOF 28609if ac_fn_c_try_compile "$LINENO"; then : 28610 CFLAGS=$apr_save_CFLAGS 28611ac_cv_getservbyname_r_style=glibc2 28612else 28613 CFLAGS=$apr_save_CFLAGS 28614ac_cv_getservbyname_r_style=none 28615fi 28616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28617 28618 28619if test "$ac_cv_getservbyname_r_style" = "none"; then 28620 apr_save_CFLAGS=$CFLAGS 28621 CFLAGS="$CFLAGS $CFLAGS_WARN" 28622 if test "$ac_cv_c_compiler_gnu" = "yes"; then 28623 CFLAGS="$CFLAGS -Werror" 28624 fi 28625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28626/* end confdefs.h. */ 28627#include "confdefs.h" 28628 28629 28630 #ifdef HAVE_SYS_TYPES_H 28631 #include <sys/types.h> 28632 #endif 28633 #ifdef HAVE_NETINET_IN_H 28634 #include <netinet/in.h> 28635 #endif 28636 #ifdef HAVE_ARPA_INET_H 28637 #include <arpa/inet.h> 28638 #endif 28639 #ifdef HAVE_NETDB_H 28640 #include <netdb.h> 28641 #endif 28642 #ifdef HAVE_STDLIB_H 28643 #include <stdlib.h> 28644 #endif 28645 28646 int main(int argc, const char *const *argv) { 28647 28648 struct servent *tmp = getservbyname_r((const char *) 0, (const char *) 0, 28649 (struct servent *) 0, (char *) 0, 0); 28650 /* use tmp to suppress the warning */ 28651 tmp=NULL; 28652 28653 return 0; } 28654 28655_ACEOF 28656if ac_fn_c_try_compile "$LINENO"; then : 28657 CFLAGS=$apr_save_CFLAGS 28658ac_cv_getservbyname_r_style=solaris 28659else 28660 CFLAGS=$apr_save_CFLAGS 28661ac_cv_getservbyname_r_style=none 28662fi 28663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28664 28665fi 28666 28667if test "$ac_cv_getservbyname_r_style" = "none"; then 28668 apr_save_CFLAGS=$CFLAGS 28669 CFLAGS="$CFLAGS $CFLAGS_WARN" 28670 if test "$ac_cv_c_compiler_gnu" = "yes"; then 28671 CFLAGS="$CFLAGS -Werror" 28672 fi 28673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28674/* end confdefs.h. */ 28675#include "confdefs.h" 28676 28677 28678 #ifdef HAVE_SYS_TYPES_H 28679 #include <sys/types.h> 28680 #endif 28681 #ifdef HAVE_NETINET_IN_H 28682 #include <netinet/in.h> 28683 #endif 28684 #ifdef HAVE_ARPA_INET_H 28685 #include <arpa/inet.h> 28686 #endif 28687 #ifdef HAVE_NETDB_H 28688 #include <netdb.h> 28689 #endif 28690 #ifdef HAVE_STDLIB_H 28691 #include <stdlib.h> 28692 #endif 28693 28694 int main(int argc, const char *const *argv) { 28695 28696 int tmp = getservbyname_r((const char *) 0, (const char *) 0, 28697 (struct servent *) 0, (struct servent_data *) 0); 28698 /* use tmp to suppress the warning */ 28699 tmp=0; 28700 28701 return 0; } 28702 28703_ACEOF 28704if ac_fn_c_try_compile "$LINENO"; then : 28705 CFLAGS=$apr_save_CFLAGS 28706ac_cv_getservbyname_r_style=osf1 28707else 28708 CFLAGS=$apr_save_CFLAGS 28709ac_cv_getservbyname_r_style=none 28710fi 28711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28712 28713fi 28714 28715fi 28716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_getservbyname_r_style" >&5 28717$as_echo "$ac_cv_getservbyname_r_style" >&6; } 28718 28719if test "$ac_cv_getservbyname_r_style" = "glibc2"; then 28720 28721$as_echo "#define GETSERVBYNAME_R_GLIBC2 1" >>confdefs.h 28722 28723elif test "$ac_cv_getservbyname_r_style" = "solaris"; then 28724 28725$as_echo "#define GETSERVBYNAME_R_SOLARIS 1" >>confdefs.h 28726 28727elif test "$ac_cv_getservbyname_r_style" = "osf1"; then 28728 28729$as_echo "#define GETSERVBYNAME_R_OSF1 1" >>confdefs.h 28730 28731fi 28732 28733fi 28734 28735 28736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TCP_NODELAY setting is inherited from listening sockets" >&5 28737$as_echo_n "checking if TCP_NODELAY setting is inherited from listening sockets... " >&6; } 28738if ${ac_cv_tcp_nodelay_inherited+:} false; then : 28739 $as_echo_n "(cached) " >&6 28740else 28741 28742 if test "$cross_compiling" = yes; then : 28743 28744 ac_cv_tcp_nodelay_inherited="yes" 28745 28746else 28747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28748/* end confdefs.h. */ 28749 28750#include <stdio.h> 28751#ifdef HAVE_SYS_TYPES_H 28752#include <sys/types.h> 28753#endif 28754#ifdef HAVE_SYS_SOCKET_H 28755#include <sys/socket.h> 28756#endif 28757#ifdef HAVE_NETINET_IN_H 28758#include <netinet/in.h> 28759#endif 28760#ifdef HAVE_NETINET_TCP_H 28761#include <netinet/tcp.h> 28762#endif 28763#ifndef HAVE_SOCKLEN_T 28764typedef int socklen_t; 28765#endif 28766int main(void) { 28767 int listen_s, connected_s, client_s; 28768 int listen_port, rc; 28769 struct sockaddr_in sa; 28770 socklen_t sa_len; 28771 socklen_t option_len; 28772 int option; 28773 28774 listen_s = socket(AF_INET, SOCK_STREAM, 0); 28775 if (listen_s < 0) { 28776 perror("socket"); 28777 exit(1); 28778 } 28779 option = 1; 28780 rc = setsockopt(listen_s, IPPROTO_TCP, TCP_NODELAY, &option, sizeof option); 28781 if (rc < 0) { 28782 perror("setsockopt TCP_NODELAY"); 28783 exit(1); 28784 } 28785 memset(&sa, 0, sizeof sa); 28786 sa.sin_family = AF_INET; 28787#ifdef BEOS 28788 sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK); 28789#endif 28790 /* leave port 0 to get ephemeral */ 28791 rc = bind(listen_s, (struct sockaddr *)&sa, sizeof sa); 28792 if (rc < 0) { 28793 perror("bind for ephemeral port"); 28794 exit(1); 28795 } 28796 /* find ephemeral port */ 28797 sa_len = sizeof(sa); 28798 rc = getsockname(listen_s, (struct sockaddr *)&sa, &sa_len); 28799 if (rc < 0) { 28800 perror("getsockname"); 28801 exit(1); 28802 } 28803 listen_port = sa.sin_port; 28804 rc = listen(listen_s, 5); 28805 if (rc < 0) { 28806 perror("listen"); 28807 exit(1); 28808 } 28809 client_s = socket(AF_INET, SOCK_STREAM, 0); 28810 if (client_s < 0) { 28811 perror("socket"); 28812 exit(1); 28813 } 28814 memset(&sa, 0, sizeof sa); 28815 sa.sin_family = AF_INET; 28816 sa.sin_port = listen_port; 28817#ifdef BEOS 28818 sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK); 28819#endif 28820 /* leave sin_addr all zeros to use loopback */ 28821 rc = connect(client_s, (struct sockaddr *)&sa, sizeof sa); 28822 if (rc < 0) { 28823 perror("connect"); 28824 exit(1); 28825 } 28826 sa_len = sizeof sa; 28827 connected_s = accept(listen_s, (struct sockaddr *)&sa, &sa_len); 28828 if (connected_s < 0) { 28829 perror("accept"); 28830 exit(1); 28831 } 28832 option_len = sizeof option; 28833 rc = getsockopt(connected_s, IPPROTO_TCP, TCP_NODELAY, &option, &option_len); 28834 if (rc < 0) { 28835 perror("getsockopt"); 28836 exit(1); 28837 } 28838 if (!option) { 28839 fprintf(stderr, "TCP_NODELAY is not set in the child.\n"); 28840 exit(1); 28841 } 28842 return 0; 28843} 28844 28845_ACEOF 28846if ac_fn_c_try_run "$LINENO"; then : 28847 28848 ac_cv_tcp_nodelay_inherited="yes" 28849 28850else 28851 28852 ac_cv_tcp_nodelay_inherited="no" 28853 28854fi 28855rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28856 conftest.$ac_objext conftest.beam conftest.$ac_ext 28857fi 28858 28859fi 28860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tcp_nodelay_inherited" >&5 28861$as_echo "$ac_cv_tcp_nodelay_inherited" >&6; } 28862if test "$ac_cv_tcp_nodelay_inherited" = "yes"; then 28863 tcp_nodelay_inherited=1 28864else 28865 tcp_nodelay_inherited=0 28866fi 28867 28868 28869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if O_NONBLOCK setting is inherited from listening sockets" >&5 28870$as_echo_n "checking if O_NONBLOCK setting is inherited from listening sockets... " >&6; } 28871if ${ac_cv_o_nonblock_inherited+:} false; then : 28872 $as_echo_n "(cached) " >&6 28873else 28874 28875 if test "$cross_compiling" = yes; then : 28876 28877 ac_cv_o_nonblock_inherited="yes" 28878 28879else 28880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28881/* end confdefs.h. */ 28882 28883#ifdef HAVE_STDLIB_H 28884#include <stdlib.h> 28885#endif 28886#ifdef HAVE_STRING_H 28887#include <string.h> 28888#endif 28889#ifdef HAVE_STDIO_H 28890#include <stdio.h> 28891#endif 28892#ifdef HAVE_SYS_TYPES_H 28893#include <sys/types.h> 28894#endif 28895#ifdef HAVE_SYS_SOCKET_H 28896#include <sys/socket.h> 28897#endif 28898#ifdef HAVE_SYS_TIME_H 28899#include <sys/time.h> 28900#endif 28901#ifdef HAVE_SYS_SELECT_H 28902#include <sys/select.h> 28903#endif 28904#ifdef HAVE_NETINET_IN_H 28905#include <netinet/in.h> 28906#endif 28907#ifdef HAVE_NETINET_TCP_H 28908#include <netinet/tcp.h> 28909#endif 28910#ifndef HAVE_SOCKLEN_T 28911typedef int socklen_t; 28912#endif 28913#ifdef HAVE_FCNTL_H 28914#include <fcntl.h> 28915#endif 28916int main(void) { 28917 int listen_s, connected_s, client_s; 28918 int listen_port, rc; 28919 struct sockaddr_in sa; 28920 socklen_t sa_len; 28921 fd_set fds; 28922 struct timeval tv; 28923 28924 listen_s = socket(AF_INET, SOCK_STREAM, 0); 28925 if (listen_s < 0) { 28926 perror("socket"); 28927 exit(1); 28928 } 28929 memset(&sa, 0, sizeof sa); 28930 sa.sin_family = AF_INET; 28931#ifdef BEOS 28932 sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK); 28933#endif 28934 /* leave port 0 to get ephemeral */ 28935 rc = bind(listen_s, (struct sockaddr *)&sa, sizeof sa); 28936 if (rc < 0) { 28937 perror("bind for ephemeral port"); 28938 exit(1); 28939 } 28940 /* find ephemeral port */ 28941 sa_len = sizeof(sa); 28942 rc = getsockname(listen_s, (struct sockaddr *)&sa, &sa_len); 28943 if (rc < 0) { 28944 perror("getsockname"); 28945 exit(1); 28946 } 28947 listen_port = sa.sin_port; 28948 rc = listen(listen_s, 5); 28949 if (rc < 0) { 28950 perror("listen"); 28951 exit(1); 28952 } 28953 rc = fcntl(listen_s, F_SETFL, O_NONBLOCK); 28954 if (rc < 0) { 28955 perror("fcntl(F_SETFL)"); 28956 exit(1); 28957 } 28958 client_s = socket(AF_INET, SOCK_STREAM, 0); 28959 if (client_s < 0) { 28960 perror("socket"); 28961 exit(1); 28962 } 28963 memset(&sa, 0, sizeof sa); 28964 sa.sin_family = AF_INET; 28965 sa.sin_port = listen_port; 28966#ifdef BEOS 28967 sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK); 28968#endif 28969 /* leave sin_addr all zeros to use loopback */ 28970 rc = connect(client_s, (struct sockaddr *)&sa, sizeof sa); 28971 if (rc < 0) { 28972 perror("connect"); 28973 exit(1); 28974 } 28975 sa_len = sizeof sa; 28976 /* 1 second select timeout */ 28977 tv.tv_sec = 1; 28978 tv.tv_usec = 0; 28979 /* Set up fd set */ 28980 FD_ZERO(&fds); 28981 FD_SET(listen_s, &fds); 28982 /* Wait for socket to become readable */ 28983 rc = select(listen_s + 1, &fds, NULL, NULL, &tv); 28984 if (rc < 0) { 28985 perror("select"); 28986 exit(1); 28987 } 28988 if (rc == 0) { 28989 fprintf(stderr, "Socket failed to become readable (timeout)\n"); 28990 exit(1); 28991 } 28992 if (!FD_ISSET(listen_s, &fds)) { 28993 fprintf(stderr, "Socket failed to become readable (selected another fd)\n"); 28994 exit(1); 28995 } 28996 connected_s = accept(listen_s, (struct sockaddr *)&sa, &sa_len); 28997 if (connected_s < 0) { 28998 perror("accept"); 28999 exit(1); 29000 } 29001 rc = fcntl(connected_s, F_GETFL, 0); 29002 if (rc < 0) { 29003 perror("fcntl(F_GETFL)"); 29004 exit(1); 29005 } 29006 if (!(rc & O_NONBLOCK)) { 29007 fprintf(stderr, "O_NONBLOCK is not set in the child.\n"); 29008 exit(1); 29009 } 29010 return 0; 29011} 29012 29013_ACEOF 29014if ac_fn_c_try_run "$LINENO"; then : 29015 29016 ac_cv_o_nonblock_inherited="yes" 29017 29018else 29019 29020 ac_cv_o_nonblock_inherited="no" 29021 29022fi 29023rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 29024 conftest.$ac_objext conftest.beam conftest.$ac_ext 29025fi 29026 29027fi 29028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_nonblock_inherited" >&5 29029$as_echo "$ac_cv_o_nonblock_inherited" >&6; } 29030if test "$ac_cv_o_nonblock_inherited" = "yes"; then 29031 o_nonblock_inherited=1 29032else 29033 o_nonblock_inherited=0 29034fi 29035 29036 29037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TCP_NODELAY and TCP_CORK can both be enabled" >&5 29038$as_echo_n "checking whether TCP_NODELAY and TCP_CORK can both be enabled... " >&6; } 29039if ${apr_cv_tcp_nodelay_with_cork+:} false; then : 29040 $as_echo_n "(cached) " >&6 29041else 29042 if test "$cross_compiling" = yes; then : 29043 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29044$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29045as_fn_error $? "cannot run test program while cross compiling 29046See \`config.log' for more details" "$LINENO" 5; } 29047else 29048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29049/* end confdefs.h. */ 29050 29051#ifdef HAVE_SYS_TYPES_H 29052#include <sys/types.h> 29053#endif 29054#ifdef HAVE_SYS_SOCKET_H 29055#include <sys/socket.h> 29056#endif 29057#ifdef HAVE_NETINET_IN_H 29058#include <netinet/in.h> 29059#endif 29060#ifdef HAVE_NETINET_TCP_H 29061#include <netinet/tcp.h> 29062#endif 29063#include <stdio.h> 29064#include <stdlib.h> 29065 29066int 29067main () 29068{ 29069 29070 int fd, flag, rc; 29071 29072 fd = socket(AF_INET, SOCK_STREAM, 0); 29073 if (fd < 0) { 29074 exit(1); 29075 } 29076 29077 flag = 1; 29078 rc = setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &flag, sizeof flag); 29079 if (rc < 0) { 29080 perror("setsockopt TCP_NODELAY"); 29081 exit(2); 29082 } 29083 29084 flag = 1; 29085 rc = setsockopt(fd, IPPROTO_TCP, TCP_CORK, &flag, sizeof flag); 29086 if (rc < 0) { 29087 perror("setsockopt TCP_CORK"); 29088 exit(3); 29089 } 29090 29091 exit(0); 29092 29093 ; 29094 return 0; 29095} 29096_ACEOF 29097if ac_fn_c_try_run "$LINENO"; then : 29098 apr_cv_tcp_nodelay_with_cork=yes 29099else 29100 apr_cv_tcp_nodelay_with_cork=no 29101fi 29102rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 29103 conftest.$ac_objext conftest.beam conftest.$ac_ext 29104fi 29105 29106fi 29107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_tcp_nodelay_with_cork" >&5 29108$as_echo "$apr_cv_tcp_nodelay_with_cork" >&6; } 29109 29110if test "$apr_cv_tcp_nodelay_with_cork" = "yes"; then 29111 29112$as_echo "#define HAVE_TCP_NODELAY_WITH_CORK 1" >>confdefs.h 29113 29114fi 29115 29116 29117# Look for a way of corking TCP... 29118 29119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP_CORK in netinet/tcp.h" >&5 29120$as_echo_n "checking for TCP_CORK in netinet/tcp.h... " >&6; } 29121if ${ac_cv_define_TCP_CORK+:} false; then : 29122 $as_echo_n "(cached) " >&6 29123else 29124 29125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29126/* end confdefs.h. */ 29127 29128#include <netinet/tcp.h> 29129#ifdef TCP_CORK 29130YES_IS_DEFINED 29131#endif 29132 29133_ACEOF 29134if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 29135 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then : 29136 ac_cv_define_TCP_CORK=yes 29137else 29138 ac_cv_define_TCP_CORK=no 29139fi 29140rm -f conftest* 29141 29142 29143fi 29144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_TCP_CORK" >&5 29145$as_echo "$ac_cv_define_TCP_CORK" >&6; } 29146 if test "$ac_cv_define_TCP_CORK" = "yes"; then 29147 29148$as_echo "#define HAVE_TCP_CORK 1" >>confdefs.h 29149 29150 fi 29151 29152 29153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP_NOPUSH in netinet/tcp.h" >&5 29154$as_echo_n "checking for TCP_NOPUSH in netinet/tcp.h... " >&6; } 29155if ${ac_cv_define_TCP_NOPUSH+:} false; then : 29156 $as_echo_n "(cached) " >&6 29157else 29158 29159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29160/* end confdefs.h. */ 29161 29162#include <netinet/tcp.h> 29163#ifdef TCP_NOPUSH 29164YES_IS_DEFINED 29165#endif 29166 29167_ACEOF 29168if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 29169 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then : 29170 ac_cv_define_TCP_NOPUSH=yes 29171else 29172 ac_cv_define_TCP_NOPUSH=no 29173fi 29174rm -f conftest* 29175 29176 29177fi 29178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_TCP_NOPUSH" >&5 29179$as_echo "$ac_cv_define_TCP_NOPUSH" >&6; } 29180 if test "$ac_cv_define_TCP_NOPUSH" = "yes"; then 29181 29182$as_echo "#define HAVE_TCP_NOPUSH 1" >>confdefs.h 29183 29184 fi 29185 29186apr_tcp_nopush_flag="0" 29187have_corkable_tcp="0" 29188if test "x$ac_cv_define_TCP_CORK" = "xyes"; then 29189 apr_tcp_nopush_flag="TCP_CORK" 29190 have_corkable_tcp="1" 29191else 29192 case $host in 29193 *linux*) 29194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29195/* end confdefs.h. */ 29196 29197#include <linux/socket.h> 29198#ifdef TCP_CORK 29199yes 29200#endif 29201 29202_ACEOF 29203if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 29204 $EGREP "yes" >/dev/null 2>&1; then : 29205 29206 apr_tcp_nopush_flag="3" 29207 have_corkable_tcp="1" 29208 29209fi 29210rm -f conftest* 29211 29212 ;; 29213 *) 29214 ;; 29215 esac 29216fi 29217if test "x$ac_cv_define_TCP_NOPUSH" = "xyes"; then 29218 apr_tcp_nopush_flag="TCP_NOPUSH" 29219 have_corkable_tcp="1" 29220fi 29221 29222 29223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_ACCEPTFILTER in sys/socket.h" >&5 29224$as_echo_n "checking for SO_ACCEPTFILTER in sys/socket.h... " >&6; } 29225if ${ac_cv_define_SO_ACCEPTFILTER+:} false; then : 29226 $as_echo_n "(cached) " >&6 29227else 29228 29229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29230/* end confdefs.h. */ 29231 29232#include <sys/socket.h> 29233#ifdef SO_ACCEPTFILTER 29234YES_IS_DEFINED 29235#endif 29236 29237_ACEOF 29238if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 29239 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then : 29240 ac_cv_define_SO_ACCEPTFILTER=yes 29241else 29242 ac_cv_define_SO_ACCEPTFILTER=no 29243fi 29244rm -f conftest* 29245 29246 29247fi 29248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_SO_ACCEPTFILTER" >&5 29249$as_echo "$ac_cv_define_SO_ACCEPTFILTER" >&6; } 29250 if test "$ac_cv_define_SO_ACCEPTFILTER" = "yes"; then 29251 29252$as_echo "#define HAVE_SO_ACCEPTFILTER 1" >>confdefs.h 29253 29254 fi 29255 29256if test "x$ac_cv_define_SO_ACCEPTFILTER" = "xyes"; then 29257 acceptfilter="1" 29258else 29259 acceptfilter="0" 29260fi 29261 29262 29263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SCTP is supported" >&5 29264$as_echo_n "checking whether SCTP is supported... " >&6; } 29265if ${apr_cv_sctp+:} false; then : 29266 $as_echo_n "(cached) " >&6 29267else 29268 29269 if test "$cross_compiling" = yes; then : 29270 apr_cv_sctp=no 29271else 29272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29273/* end confdefs.h. */ 29274 29275#ifdef HAVE_SYS_TYPES_H 29276#include <sys/types.h> 29277#endif 29278#ifdef HAVE_SYS_SOCKET_H 29279#include <sys/socket.h> 29280#endif 29281#ifdef HAVE_NETINET_IN_H 29282#include <netinet/in.h> 29283#endif 29284#ifdef HAVE_NETINET_SCTP_H 29285#include <netinet/sctp.h> 29286#endif 29287#ifdef HAVE_NETINET_SCTP_UIO_H 29288#include <netinet/sctp_uio.h> 29289#endif 29290#include <stdlib.h> 29291int main(void) { 29292 int s, opt = 1; 29293 if ((s = socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP)) < 0) 29294 exit(1); 29295 if (setsockopt(s, IPPROTO_SCTP, SCTP_NODELAY, &opt, sizeof(int)) < 0) 29296 exit(2); 29297 exit(0); 29298} 29299_ACEOF 29300if ac_fn_c_try_run "$LINENO"; then : 29301 apr_cv_sctp=yes 29302else 29303 apr_cv_sctp=no 29304fi 29305rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 29306 conftest.$ac_objext conftest.beam conftest.$ac_ext 29307fi 29308 29309fi 29310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_sctp" >&5 29311$as_echo "$apr_cv_sctp" >&6; } 29312 29313if test "$apr_cv_sctp" = "yes"; then 29314 have_sctp=1 29315else 29316 have_sctp=0 29317fi 29318 29319 29320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ip_mreq" >&5 29321$as_echo_n "checking for struct ip_mreq... " >&6; } 29322if ${apr_cv_struct_ipmreq+:} false; then : 29323 $as_echo_n "(cached) " >&6 29324else 29325 29326cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29327/* end confdefs.h. */ 29328 29329#include <sys/types.h> 29330#include <netinet/in.h> 29331 29332int 29333main () 29334{ 29335 29336 struct ip_mreq mip; 29337 mip.imr_interface.s_addr = INADDR_ANY; 29338 29339 ; 29340 return 0; 29341} 29342_ACEOF 29343if ac_fn_c_try_compile "$LINENO"; then : 29344 apr_cv_struct_ipmreq=yes 29345else 29346 apr_cv_struct_ipmreq=no 29347fi 29348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29349fi 29350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_struct_ipmreq" >&5 29351$as_echo "$apr_cv_struct_ipmreq" >&6; } 29352 29353if test $apr_cv_struct_ipmreq = yes; then 29354 29355$as_echo "#define HAVE_STRUCT_IPMREQ 1" >>confdefs.h 29356 29357fi 29358 29359 29360 29361 29362 29363 29364 29365for ac_func in set_h_errno 29366do : 29367 ac_fn_c_check_func "$LINENO" "set_h_errno" "ac_cv_func_set_h_errno" 29368if test "x$ac_cv_func_set_h_errno" = xyes; then : 29369 cat >>confdefs.h <<_ACEOF 29370#define HAVE_SET_H_ERRNO 1 29371_ACEOF 29372 29373fi 29374done 29375 29376 29377echo "${nl}Checking for IPv6 Networking support..." 29378 29379# Check whether --enable-ipv6 was given. 29380if test "${enable_ipv6+set}" = set; then : 29381 enableval=$enable_ipv6; if test "$enableval" = "no"; then 29382 user_disabled_ipv6=1 29383 fi 29384else 29385 user_disabled_ipv6=0 29386fi 29387 29388 29389case $host in 29390 *) 29391 broken_ipv6=0 29392esac 29393 29394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5 29395$as_echo_n "checking for library containing getaddrinfo... " >&6; } 29396if ${ac_cv_search_getaddrinfo+:} false; then : 29397 $as_echo_n "(cached) " >&6 29398else 29399 ac_func_search_save_LIBS=$LIBS 29400cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29401/* end confdefs.h. */ 29402 29403/* Override any GCC internal prototype to avoid an error. 29404 Use char because int might match the return type of a GCC 29405 builtin and then its argument prototype would still apply. */ 29406#ifdef __cplusplus 29407extern "C" 29408#endif 29409char getaddrinfo (); 29410int 29411main () 29412{ 29413return getaddrinfo (); 29414 ; 29415 return 0; 29416} 29417_ACEOF 29418for ac_lib in '' socket inet6; do 29419 if test -z "$ac_lib"; then 29420 ac_res="none required" 29421 else 29422 ac_res=-l$ac_lib 29423 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 29424 fi 29425 if ac_fn_c_try_link "$LINENO"; then : 29426 ac_cv_search_getaddrinfo=$ac_res 29427fi 29428rm -f core conftest.err conftest.$ac_objext \ 29429 conftest$ac_exeext 29430 if ${ac_cv_search_getaddrinfo+:} false; then : 29431 break 29432fi 29433done 29434if ${ac_cv_search_getaddrinfo+:} false; then : 29435 29436else 29437 ac_cv_search_getaddrinfo=no 29438fi 29439rm conftest.$ac_ext 29440LIBS=$ac_func_search_save_LIBS 29441fi 29442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5 29443$as_echo "$ac_cv_search_getaddrinfo" >&6; } 29444ac_res=$ac_cv_search_getaddrinfo 29445if test "$ac_res" != no; then : 29446 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 29447 29448fi 29449 29450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gai_strerror" >&5 29451$as_echo_n "checking for library containing gai_strerror... " >&6; } 29452if ${ac_cv_search_gai_strerror+:} false; then : 29453 $as_echo_n "(cached) " >&6 29454else 29455 ac_func_search_save_LIBS=$LIBS 29456cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29457/* end confdefs.h. */ 29458 29459/* Override any GCC internal prototype to avoid an error. 29460 Use char because int might match the return type of a GCC 29461 builtin and then its argument prototype would still apply. */ 29462#ifdef __cplusplus 29463extern "C" 29464#endif 29465char gai_strerror (); 29466int 29467main () 29468{ 29469return gai_strerror (); 29470 ; 29471 return 0; 29472} 29473_ACEOF 29474for ac_lib in '' socket inet6; do 29475 if test -z "$ac_lib"; then 29476 ac_res="none required" 29477 else 29478 ac_res=-l$ac_lib 29479 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 29480 fi 29481 if ac_fn_c_try_link "$LINENO"; then : 29482 ac_cv_search_gai_strerror=$ac_res 29483fi 29484rm -f core conftest.err conftest.$ac_objext \ 29485 conftest$ac_exeext 29486 if ${ac_cv_search_gai_strerror+:} false; then : 29487 break 29488fi 29489done 29490if ${ac_cv_search_gai_strerror+:} false; then : 29491 29492else 29493 ac_cv_search_gai_strerror=no 29494fi 29495rm conftest.$ac_ext 29496LIBS=$ac_func_search_save_LIBS 29497fi 29498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gai_strerror" >&5 29499$as_echo "$ac_cv_search_gai_strerror" >&6; } 29500ac_res=$ac_cv_search_gai_strerror 29501if test "$ac_res" != no; then : 29502 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 29503 29504fi 29505 29506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5 29507$as_echo_n "checking for library containing getnameinfo... " >&6; } 29508if ${ac_cv_search_getnameinfo+:} false; then : 29509 $as_echo_n "(cached) " >&6 29510else 29511 ac_func_search_save_LIBS=$LIBS 29512cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29513/* end confdefs.h. */ 29514 29515/* Override any GCC internal prototype to avoid an error. 29516 Use char because int might match the return type of a GCC 29517 builtin and then its argument prototype would still apply. */ 29518#ifdef __cplusplus 29519extern "C" 29520#endif 29521char getnameinfo (); 29522int 29523main () 29524{ 29525return getnameinfo (); 29526 ; 29527 return 0; 29528} 29529_ACEOF 29530for ac_lib in '' socket inet6; do 29531 if test -z "$ac_lib"; then 29532 ac_res="none required" 29533 else 29534 ac_res=-l$ac_lib 29535 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 29536 fi 29537 if ac_fn_c_try_link "$LINENO"; then : 29538 ac_cv_search_getnameinfo=$ac_res 29539fi 29540rm -f core conftest.err conftest.$ac_objext \ 29541 conftest$ac_exeext 29542 if ${ac_cv_search_getnameinfo+:} false; then : 29543 break 29544fi 29545done 29546if ${ac_cv_search_getnameinfo+:} false; then : 29547 29548else 29549 ac_cv_search_getnameinfo=no 29550fi 29551rm conftest.$ac_ext 29552LIBS=$ac_func_search_save_LIBS 29553fi 29554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5 29555$as_echo "$ac_cv_search_getnameinfo" >&6; } 29556ac_res=$ac_cv_search_getnameinfo 29557if test "$ac_res" != no; then : 29558 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 29559 29560fi 29561 29562for ac_func in gai_strerror if_nametoindex if_indextoname 29563do : 29564 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 29565ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 29566if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 29567 cat >>confdefs.h <<_ACEOF 29568#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 29569_ACEOF 29570 29571fi 29572done 29573 29574 29575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5 29576$as_echo_n "checking for working getaddrinfo... " >&6; } 29577if ${ac_cv_working_getaddrinfo+:} false; then : 29578 $as_echo_n "(cached) " >&6 29579else 29580 29581 if test "$cross_compiling" = yes; then : 29582 29583 ac_cv_working_getaddrinfo="yes" 29584 29585else 29586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29587/* end confdefs.h. */ 29588 29589#ifdef HAVE_NETDB_H 29590#include <netdb.h> 29591#endif 29592#ifdef HAVE_STRING_H 29593#include <string.h> 29594#endif 29595#ifdef HAVE_SYS_TYPES_H 29596#include <sys/types.h> 29597#endif 29598#ifdef HAVE_SYS_SOCKET_H 29599#include <sys/socket.h> 29600#endif 29601 29602int main(void) { 29603 struct addrinfo hints, *ai; 29604 int error; 29605 29606 memset(&hints, 0, sizeof(hints)); 29607 hints.ai_family = AF_UNSPEC; 29608 hints.ai_socktype = SOCK_STREAM; 29609 error = getaddrinfo("127.0.0.1", NULL, &hints, &ai); 29610 if (error) { 29611 exit(1); 29612 } 29613 if (ai->ai_addr->sa_family != AF_INET) { 29614 exit(1); 29615 } 29616 exit(0); 29617} 29618 29619_ACEOF 29620if ac_fn_c_try_run "$LINENO"; then : 29621 29622 ac_cv_working_getaddrinfo="yes" 29623 29624else 29625 29626 ac_cv_working_getaddrinfo="no" 29627 29628fi 29629rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 29630 conftest.$ac_objext conftest.beam conftest.$ac_ext 29631fi 29632 29633fi 29634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5 29635$as_echo "$ac_cv_working_getaddrinfo" >&6; } 29636if test "$ac_cv_working_getaddrinfo" = "yes"; then 29637 if test "$ac_cv_func_gai_strerror" != "yes"; then 29638 ac_cv_working_getaddrinfo="no" 29639 else 29640 29641$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h 29642 29643 fi 29644fi 29645 29646 29647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for negative error codes for getaddrinfo" >&5 29648$as_echo_n "checking for negative error codes for getaddrinfo... " >&6; } 29649if ${ac_cv_negative_eai+:} false; then : 29650 $as_echo_n "(cached) " >&6 29651else 29652 29653 if test "$cross_compiling" = yes; then : 29654 29655 ac_cv_negative_eai="no" 29656 29657else 29658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29659/* end confdefs.h. */ 29660 29661#ifdef HAVE_NETDB_H 29662#include <netdb.h> 29663#endif 29664 29665int main(void) { 29666 if (EAI_ADDRFAMILY < 0) { 29667 exit(0); 29668 } 29669 exit(1); 29670} 29671 29672_ACEOF 29673if ac_fn_c_try_run "$LINENO"; then : 29674 29675 ac_cv_negative_eai="yes" 29676 29677else 29678 29679 ac_cv_negative_eai="no" 29680 29681fi 29682rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 29683 conftest.$ac_objext conftest.beam conftest.$ac_ext 29684fi 29685 29686fi 29687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_negative_eai" >&5 29688$as_echo "$ac_cv_negative_eai" >&6; } 29689if test "$ac_cv_negative_eai" = "yes"; then 29690 29691$as_echo "#define NEGATIVE_EAI 1" >>confdefs.h 29692 29693fi 29694 29695 29696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getnameinfo" >&5 29697$as_echo_n "checking for working getnameinfo... " >&6; } 29698if ${ac_cv_working_getnameinfo+:} false; then : 29699 $as_echo_n "(cached) " >&6 29700else 29701 29702 if test "$cross_compiling" = yes; then : 29703 29704 ac_cv_working_getnameinfo="yes" 29705 29706else 29707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29708/* end confdefs.h. */ 29709 29710#ifdef HAVE_NETDB_H 29711#include <netdb.h> 29712#endif 29713#ifdef HAVE_STRING_H 29714#include <string.h> 29715#endif 29716#ifdef HAVE_SYS_TYPES_H 29717#include <sys/types.h> 29718#endif 29719#ifdef HAVE_SYS_SOCKET_H 29720#include <sys/socket.h> 29721#endif 29722#ifdef HAVE_NETINET_IN_H 29723#include <netinet/in.h> 29724#endif 29725 29726int main(void) { 29727 struct sockaddr_in sa; 29728 char hbuf[256]; 29729 int error; 29730 29731 sa.sin_family = AF_INET; 29732 sa.sin_port = 0; 29733 sa.sin_addr.s_addr = inet_addr("127.0.0.1"); 29734#ifdef SIN6_LEN 29735 sa.sin_len = sizeof(sa); 29736#endif 29737 29738 error = getnameinfo((const struct sockaddr *)&sa, sizeof(sa), 29739 hbuf, 256, NULL, 0, 29740 NI_NUMERICHOST); 29741 if (error) { 29742 exit(1); 29743 } else { 29744 exit(0); 29745 } 29746} 29747 29748_ACEOF 29749if ac_fn_c_try_run "$LINENO"; then : 29750 29751 ac_cv_working_getnameinfo="yes" 29752 29753else 29754 29755 ac_cv_working_getnameinfo="no" 29756 29757fi 29758rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 29759 conftest.$ac_objext conftest.beam conftest.$ac_ext 29760fi 29761 29762fi 29763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getnameinfo" >&5 29764$as_echo "$ac_cv_working_getnameinfo" >&6; } 29765if test "$ac_cv_working_getnameinfo" = "yes"; then 29766 29767$as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h 29768 29769fi 29770 29771 29772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6" >&5 29773$as_echo_n "checking for sockaddr_in6... " >&6; } 29774if ${ac_cv_define_sockaddr_in6+:} false; then : 29775 $as_echo_n "(cached) " >&6 29776else 29777 29778cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29779/* end confdefs.h. */ 29780 29781#ifdef HAVE_SYS_TYPES_H 29782#include <sys/types.h> 29783#endif 29784#ifdef HAVE_NETINET_IN_H 29785#include <netinet/in.h> 29786#endif 29787 29788int 29789main () 29790{ 29791 29792struct sockaddr_in6 sa; 29793 29794 ; 29795 return 0; 29796} 29797_ACEOF 29798if ac_fn_c_try_compile "$LINENO"; then : 29799 29800 ac_cv_define_sockaddr_in6=yes 29801 29802else 29803 29804 ac_cv_define_sockaddr_in6=no 29805 29806fi 29807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29808 29809fi 29810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_sockaddr_in6" >&5 29811$as_echo "$ac_cv_define_sockaddr_in6" >&6; } 29812 29813if test "$ac_cv_define_sockaddr_in6" = "yes"; then 29814 have_sockaddr_in6=1 29815else 29816 have_sockaddr_in6=0 29817fi 29818 29819 29820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 29821$as_echo_n "checking for sockaddr_storage... " >&6; } 29822if ${apr_cv_define_sockaddr_storage+:} false; then : 29823 $as_echo_n "(cached) " >&6 29824else 29825 29826cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29827/* end confdefs.h. */ 29828 29829#ifdef HAVE_SYS_TYPES_H 29830#include <sys/types.h> 29831#endif 29832#ifdef HAVE_NETINET_IN_H 29833#include <netinet/in.h> 29834#endif 29835 29836int 29837main () 29838{ 29839struct sockaddr_storage sa; 29840 ; 29841 return 0; 29842} 29843_ACEOF 29844if ac_fn_c_try_compile "$LINENO"; then : 29845 apr_cv_define_sockaddr_storage=yes 29846else 29847 apr_cv_define_sockaddr_storage=no 29848fi 29849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29850fi 29851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_define_sockaddr_storage" >&5 29852$as_echo "$apr_cv_define_sockaddr_storage" >&6; } 29853 29854if test "$apr_cv_define_sockaddr_storage" = "yes"; then 29855 have_sa_storage=1 29856else 29857 have_sa_storage=0 29858fi 29859 29860 29861 29862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_un" >&5 29863$as_echo_n "checking for sockaddr_un... " >&6; } 29864if ${ac_cv_define_sockaddr_un+:} false; then : 29865 $as_echo_n "(cached) " >&6 29866else 29867 29868cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29869/* end confdefs.h. */ 29870 29871#ifdef HAVE_SYS_TYPES_H 29872#include <sys/types.h> 29873#endif 29874#ifdef HAVE_NETINET_IN_H 29875#include <netinet/in.h> 29876#endif 29877#ifdef HAVE_SYS_UN_H 29878#include <sys/un.h> 29879#endif 29880 29881int 29882main () 29883{ 29884 29885struct sockaddr_un sa; 29886 29887 ; 29888 return 0; 29889} 29890_ACEOF 29891if ac_fn_c_try_compile "$LINENO"; then : 29892 29893 ac_cv_define_sockaddr_un=yes 29894 29895else 29896 29897 ac_cv_define_sockaddr_un=no 29898 29899fi 29900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29901 29902fi 29903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_sockaddr_un" >&5 29904$as_echo "$ac_cv_define_sockaddr_un" >&6; } 29905 29906if test "$ac_cv_define_sockaddr_un" = "yes"; then 29907 have_sockaddr_un=1 29908else 29909 have_sockaddr_un=0 29910fi 29911 29912 29913 29914have_ipv6="0" 29915if test "$user_disabled_ipv6" = 1; then 29916 ipv6_result="no -- disabled by user" 29917else 29918 if test "x$broken_ipv6" = "x0"; then 29919 if test "x$have_sockaddr_in6" = "x1"; then 29920 if test "x$ac_cv_working_getaddrinfo" = "xyes"; then 29921 if test "x$ac_cv_working_getnameinfo" = "xyes"; then 29922 29923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working AI_ADDRCONFIG" >&5 29924$as_echo_n "checking for working AI_ADDRCONFIG... " >&6; } 29925if ${apr_cv_gai_addrconfig+:} false; then : 29926 $as_echo_n "(cached) " >&6 29927else 29928 29929 if test "$cross_compiling" = yes; then : 29930 apr_cv_gai_addrconfig=no 29931else 29932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29933/* end confdefs.h. */ 29934 29935#ifdef HAVE_NETDB_H 29936#include <netdb.h> 29937#endif 29938#ifdef HAVE_STRING_H 29939#include <string.h> 29940#endif 29941#ifdef HAVE_SYS_TYPES_H 29942#include <sys/types.h> 29943#endif 29944#ifdef HAVE_SYS_SOCKET_H 29945#include <sys/socket.h> 29946#endif 29947 29948int main(int argc, char **argv) { 29949 struct addrinfo hints, *ai; 29950 29951 memset(&hints, 0, sizeof(hints)); 29952 hints.ai_family = AF_UNSPEC; 29953 hints.ai_socktype = SOCK_STREAM; 29954 hints.ai_flags = AI_ADDRCONFIG; 29955 return getaddrinfo("localhost", NULL, &hints, &ai) != 0; 29956} 29957_ACEOF 29958if ac_fn_c_try_run "$LINENO"; then : 29959 apr_cv_gai_addrconfig=yes 29960else 29961 apr_cv_gai_addrconfig=no 29962fi 29963rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 29964 conftest.$ac_objext conftest.beam conftest.$ac_ext 29965fi 29966 29967fi 29968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_gai_addrconfig" >&5 29969$as_echo "$apr_cv_gai_addrconfig" >&6; } 29970 29971if test $apr_cv_gai_addrconfig = yes; then 29972 29973$as_echo "#define HAVE_GAI_ADDRCONFIG 1" >>confdefs.h 29974 29975fi 29976 29977 have_ipv6="1" 29978 ipv6_result="yes" 29979 else 29980 ipv6_result="no -- no getnameinfo" 29981 fi 29982 else 29983 ipv6_result="no -- no working getaddrinfo" 29984 fi 29985 else 29986 ipv6_result="no -- no sockaddr_in6" 29987 fi 29988 else 29989 ipv6_result="no -- the platform has known problems supporting IPv6" 29990 fi 29991fi 29992 29993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if APR supports IPv6" >&5 29994$as_echo_n "checking if APR supports IPv6... " >&6; } 29995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_result" >&5 29996$as_echo "$ipv6_result" >&6; } 29997 29998 29999 30000# Check whether --enable-timedlocks was given. 30001if test "${enable_timedlocks+set}" = set; then : 30002 enableval=$enable_timedlocks; apr_has_timedlocks="0" 30003else 30004 apr_has_timedlocks="1" 30005 30006fi 30007 30008 30009 30010# hstrerror is only needed if IPv6 is not enabled, 30011# so getaddrinfo/gai_strerror are not used. 30012if test $have_ipv6 = 0; then 30013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5 30014$as_echo_n "checking for library containing hstrerror... " >&6; } 30015if ${ac_cv_search_hstrerror+:} false; then : 30016 $as_echo_n "(cached) " >&6 30017else 30018 ac_func_search_save_LIBS=$LIBS 30019cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30020/* end confdefs.h. */ 30021 30022/* Override any GCC internal prototype to avoid an error. 30023 Use char because int might match the return type of a GCC 30024 builtin and then its argument prototype would still apply. */ 30025#ifdef __cplusplus 30026extern "C" 30027#endif 30028char hstrerror (); 30029int 30030main () 30031{ 30032return hstrerror (); 30033 ; 30034 return 0; 30035} 30036_ACEOF 30037for ac_lib in '' resolv; do 30038 if test -z "$ac_lib"; then 30039 ac_res="none required" 30040 else 30041 ac_res=-l$ac_lib 30042 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 30043 fi 30044 if ac_fn_c_try_link "$LINENO"; then : 30045 ac_cv_search_hstrerror=$ac_res 30046fi 30047rm -f core conftest.err conftest.$ac_objext \ 30048 conftest$ac_exeext 30049 if ${ac_cv_search_hstrerror+:} false; then : 30050 break 30051fi 30052done 30053if ${ac_cv_search_hstrerror+:} false; then : 30054 30055else 30056 ac_cv_search_hstrerror=no 30057fi 30058rm conftest.$ac_ext 30059LIBS=$ac_func_search_save_LIBS 30060fi 30061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5 30062$as_echo "$ac_cv_search_hstrerror" >&6; } 30063ac_res=$ac_cv_search_hstrerror 30064if test "$ac_res" != no; then : 30065 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 30066 30067$as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h 30068 30069fi 30070 30071fi 30072 30073 30074for ac_header in langinfo.h 30075do : 30076 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default" 30077if test "x$ac_cv_header_langinfo_h" = xyes; then : 30078 cat >>confdefs.h <<_ACEOF 30079#define HAVE_LANGINFO_H 1 30080_ACEOF 30081 30082fi 30083 30084done 30085 30086for ac_func in nl_langinfo 30087do : 30088 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo" 30089if test "x$ac_cv_func_nl_langinfo" = xyes; then : 30090 cat >>confdefs.h <<_ACEOF 30091#define HAVE_NL_LANGINFO 1 30092_ACEOF 30093 30094fi 30095done 30096 30097 30098 30099 30100 if test -z "$have_unicode_fs"; then 30101 test "x$silent" != "xyes" && echo " setting have_unicode_fs to \"0\"" 30102 have_unicode_fs="0" 30103 fi 30104 30105 30106 30107 30108 if test -z "$apr_has_xthread_files"; then 30109 test "x$silent" != "xyes" && echo " setting apr_has_xthread_files to \"0\"" 30110 apr_has_xthread_files="0" 30111 fi 30112 30113 30114 30115 30116 if test -z "$apr_procattr_user_set_requires_password"; then 30117 test "x$silent" != "xyes" && echo " setting apr_procattr_user_set_requires_password to \"0\"" 30118 apr_procattr_user_set_requires_password="0" 30119 fi 30120 30121 30122 30123 30124 if test -z "$apr_thread_func"; then 30125 test "x$silent" != "xyes" && echo " setting apr_thread_func to \"\"" 30126 apr_thread_func="" 30127 fi 30128 30129 30130 30131 30132 if test -z "$apr_has_user"; then 30133 test "x$silent" != "xyes" && echo " setting apr_has_user to \"1\"" 30134 apr_has_user="1" 30135 fi 30136 30137 30138 30139 30140echo "${nl}Restore user-defined environment settings..." 30141 30142 30143set X $apr_ste_save_CPPFLAGS 30144if test ${#} -eq 1; then 30145 EXTRA_CPPFLAGS="$CPPFLAGS" 30146 CPPFLAGS= 30147else 30148 if test "x$apr_ste_save_CPPFLAGS" = "x$CPPFLAGS"; then 30149 EXTRA_CPPFLAGS= 30150 else 30151 EXTRA_CPPFLAGS=`echo "$CPPFLAGS" | sed -e "s%${apr_ste_save_CPPFLAGS}%%"` 30152 CPPFLAGS="$apr_ste_save_CPPFLAGS" 30153 fi 30154fi 30155if test "x$silent" != "xyes"; then 30156 echo " restoring CPPFLAGS to \"$CPPFLAGS\"" 30157 echo " setting EXTRA_CPPFLAGS to \"$EXTRA_CPPFLAGS\"" 30158fi 30159 30160 30161 30162set X $apr_ste_save_CFLAGS 30163if test ${#} -eq 1; then 30164 EXTRA_CFLAGS="$CFLAGS" 30165 CFLAGS= 30166else 30167 if test "x$apr_ste_save_CFLAGS" = "x$CFLAGS"; then 30168 EXTRA_CFLAGS= 30169 else 30170 EXTRA_CFLAGS=`echo "$CFLAGS" | sed -e "s%${apr_ste_save_CFLAGS}%%"` 30171 CFLAGS="$apr_ste_save_CFLAGS" 30172 fi 30173fi 30174if test "x$silent" != "xyes"; then 30175 echo " restoring CFLAGS to \"$CFLAGS\"" 30176 echo " setting EXTRA_CFLAGS to \"$EXTRA_CFLAGS\"" 30177fi 30178 30179 30180 30181set X $apr_ste_save_LDFLAGS 30182if test ${#} -eq 1; then 30183 EXTRA_LDFLAGS="$LDFLAGS" 30184 LDFLAGS= 30185else 30186 if test "x$apr_ste_save_LDFLAGS" = "x$LDFLAGS"; then 30187 EXTRA_LDFLAGS= 30188 else 30189 EXTRA_LDFLAGS=`echo "$LDFLAGS" | sed -e "s%${apr_ste_save_LDFLAGS}%%"` 30190 LDFLAGS="$apr_ste_save_LDFLAGS" 30191 fi 30192fi 30193if test "x$silent" != "xyes"; then 30194 echo " restoring LDFLAGS to \"$LDFLAGS\"" 30195 echo " setting EXTRA_LDFLAGS to \"$EXTRA_LDFLAGS\"" 30196fi 30197 30198 30199 30200set X $apr_ste_save_LIBS 30201if test ${#} -eq 1; then 30202 EXTRA_LIBS="$LIBS" 30203 LIBS= 30204else 30205 if test "x$apr_ste_save_LIBS" = "x$LIBS"; then 30206 EXTRA_LIBS= 30207 else 30208 EXTRA_LIBS=`echo "$LIBS" | sed -e "s%${apr_ste_save_LIBS}%%"` 30209 LIBS="$apr_ste_save_LIBS" 30210 fi 30211fi 30212if test "x$silent" != "xyes"; then 30213 echo " restoring LIBS to \"$LIBS\"" 30214 echo " setting EXTRA_LIBS to \"$EXTRA_LIBS\"" 30215fi 30216 30217 30218 30219set X $apr_ste_save_INCLUDES 30220if test ${#} -eq 1; then 30221 EXTRA_INCLUDES="$INCLUDES" 30222 INCLUDES= 30223else 30224 if test "x$apr_ste_save_INCLUDES" = "x$INCLUDES"; then 30225 EXTRA_INCLUDES= 30226 else 30227 EXTRA_INCLUDES=`echo "$INCLUDES" | sed -e "s%${apr_ste_save_INCLUDES}%%"` 30228 INCLUDES="$apr_ste_save_INCLUDES" 30229 fi 30230fi 30231if test "x$silent" != "xyes"; then 30232 echo " restoring INCLUDES to \"$INCLUDES\"" 30233 echo " setting EXTRA_INCLUDES to \"$EXTRA_INCLUDES\"" 30234fi 30235 30236 30237 30238 30239 30240 30241 30242 30243 30244 30245 30246 30247 30248 30249 30250 30251 30252 30253 30254# Use -no-install or -no-fast-install to link the test 30255# programs on all platforms but Darwin, where it would cause 30256# the programs to be linked against installed versions of 30257# libapr instead of those just built. 30258case $host in 30259 *-apple-darwin*) 30260 LT_NO_INSTALL="" 30261 ;; 30262 *-mingw*) 30263 LT_NO_INSTALL="-no-fast-install" 30264 ;; 30265 *) 30266 LT_NO_INSTALL="-no-install" 30267 ;; 30268esac 30269 30270 30271# 30272# BSD/OS (BSDi) needs to use a different include syntax in the Makefiles 30273# 30274case $host in 30275*bsdi*) 30276 # Check whether they've installed GNU make 30277 if make --version > /dev/null 2>&1; then 30278 INCLUDE_RULES="include $apr_buildout/apr_rules.mk" 30279 INCLUDE_OUTPUTS="include $apr_srcdir/build-outputs.mk" 30280 else 30281 # BSDi make 30282 INCLUDE_RULES=".include \"$apr_buildout/apr_rules.mk\"" 30283 INCLUDE_OUTPUTS=".include \"$apr_srcdir/build-outputs.mk\"" 30284 fi 30285 ;; 30286*) 30287 INCLUDE_RULES="include $apr_buildout/apr_rules.mk" 30288 INCLUDE_OUTPUTS="include $apr_srcdir/build-outputs.mk" 30289 ;; 30290esac 30291 30292 30293 30294ac_config_files="$ac_config_files Makefile include/apr.h build/apr_rules.mk build/pkg/pkginfo apr-$APR_MAJOR_VERSION-config:apr-config.in apr.pc" 30295 30296 30297if test -d $srcdir/test; then 30298 ac_config_files="$ac_config_files test/Makefile test/internal/Makefile" 30299 30300fi 30301 30302dir=include/arch/unix 30303test -d $dir || $MKDIR $dir 30304 30305ac_config_commands="$ac_config_commands default" 30306 30307 30308cat >confcache <<\_ACEOF 30309# This file is a shell script that caches the results of configure 30310# tests run on this system so they can be shared between configure 30311# scripts and configure runs, see configure's option --config-cache. 30312# It is not useful on other systems. If it contains results you don't 30313# want to keep, you may remove or edit it. 30314# 30315# config.status only pays attention to the cache file if you give it 30316# the --recheck option to rerun configure. 30317# 30318# `ac_cv_env_foo' variables (set or unset) will be overridden when 30319# loading this file, other *unset* `ac_cv_foo' will be assigned the 30320# following values. 30321 30322_ACEOF 30323 30324# The following way of writing the cache mishandles newlines in values, 30325# but we know of no workaround that is simple, portable, and efficient. 30326# So, we kill variables containing newlines. 30327# Ultrix sh set writes to stderr and can't be redirected directly, 30328# and sets the high bit in the cache file unless we assign to the vars. 30329( 30330 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 30331 eval ac_val=\$$ac_var 30332 case $ac_val in #( 30333 *${as_nl}*) 30334 case $ac_var in #( 30335 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 30336$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 30337 esac 30338 case $ac_var in #( 30339 _ | IFS | as_nl) ;; #( 30340 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 30341 *) { eval $ac_var=; unset $ac_var;} ;; 30342 esac ;; 30343 esac 30344 done 30345 30346 (set) 2>&1 | 30347 case $as_nl`(ac_space=' '; set) 2>&1` in #( 30348 *${as_nl}ac_space=\ *) 30349 # `set' does not quote correctly, so add quotes: double-quote 30350 # substitution turns \\\\ into \\, and sed turns \\ into \. 30351 sed -n \ 30352 "s/'/'\\\\''/g; 30353 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 30354 ;; #( 30355 *) 30356 # `set' quotes correctly as required by POSIX, so do not add quotes. 30357 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 30358 ;; 30359 esac | 30360 sort 30361) | 30362 sed ' 30363 /^ac_cv_env_/b end 30364 t clear 30365 :clear 30366 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 30367 t end 30368 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 30369 :end' >>confcache 30370if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 30371 if test -w "$cache_file"; then 30372 if test "x$cache_file" != "x/dev/null"; then 30373 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 30374$as_echo "$as_me: updating cache $cache_file" >&6;} 30375 if test ! -f "$cache_file" || test -h "$cache_file"; then 30376 cat confcache >"$cache_file" 30377 else 30378 case $cache_file in #( 30379 */* | ?:*) 30380 mv -f confcache "$cache_file"$$ && 30381 mv -f "$cache_file"$$ "$cache_file" ;; #( 30382 *) 30383 mv -f confcache "$cache_file" ;; 30384 esac 30385 fi 30386 fi 30387 else 30388 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 30389$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 30390 fi 30391fi 30392rm -f confcache 30393 30394test "x$prefix" = xNONE && prefix=$ac_default_prefix 30395# Let make expand exec_prefix. 30396test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 30397 30398DEFS=-DHAVE_CONFIG_H 30399 30400ac_libobjs= 30401ac_ltlibobjs= 30402U= 30403for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 30404 # 1. Remove the extension, and $U if already installed. 30405 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 30406 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 30407 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 30408 # will be set to the directory where LIBOBJS objects are built. 30409 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 30410 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 30411done 30412LIBOBJS=$ac_libobjs 30413 30414LTLIBOBJS=$ac_ltlibobjs 30415 30416 30417 30418 30419: "${CONFIG_STATUS=./config.status}" 30420ac_write_fail=0 30421ac_clean_files_save=$ac_clean_files 30422ac_clean_files="$ac_clean_files $CONFIG_STATUS" 30423{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 30424$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 30425as_write_fail=0 30426cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 30427#! $SHELL 30428# Generated by $as_me. 30429# Run this file to recreate the current configuration. 30430# Compiler output produced by configure, useful for debugging 30431# configure, is in config.log if it exists. 30432 30433debug=false 30434ac_cs_recheck=false 30435ac_cs_silent=false 30436 30437SHELL=\${CONFIG_SHELL-$SHELL} 30438export SHELL 30439_ASEOF 30440cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 30441## -------------------- ## 30442## M4sh Initialization. ## 30443## -------------------- ## 30444 30445# Be more Bourne compatible 30446DUALCASE=1; export DUALCASE # for MKS sh 30447if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 30448 emulate sh 30449 NULLCMD=: 30450 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 30451 # is contrary to our usage. Disable this feature. 30452 alias -g '${1+"$@"}'='"$@"' 30453 setopt NO_GLOB_SUBST 30454else 30455 case `(set -o) 2>/dev/null` in #( 30456 *posix*) : 30457 set -o posix ;; #( 30458 *) : 30459 ;; 30460esac 30461fi 30462 30463 30464as_nl=' 30465' 30466export as_nl 30467# Printing a long string crashes Solaris 7 /usr/bin/printf. 30468as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 30469as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 30470as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 30471# Prefer a ksh shell builtin over an external printf program on Solaris, 30472# but without wasting forks for bash or zsh. 30473if test -z "$BASH_VERSION$ZSH_VERSION" \ 30474 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 30475 as_echo='print -r --' 30476 as_echo_n='print -rn --' 30477elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 30478 as_echo='printf %s\n' 30479 as_echo_n='printf %s' 30480else 30481 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 30482 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 30483 as_echo_n='/usr/ucb/echo -n' 30484 else 30485 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 30486 as_echo_n_body='eval 30487 arg=$1; 30488 case $arg in #( 30489 *"$as_nl"*) 30490 expr "X$arg" : "X\\(.*\\)$as_nl"; 30491 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 30492 esac; 30493 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 30494 ' 30495 export as_echo_n_body 30496 as_echo_n='sh -c $as_echo_n_body as_echo' 30497 fi 30498 export as_echo_body 30499 as_echo='sh -c $as_echo_body as_echo' 30500fi 30501 30502# The user is always right. 30503if test "${PATH_SEPARATOR+set}" != set; then 30504 PATH_SEPARATOR=: 30505 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 30506 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 30507 PATH_SEPARATOR=';' 30508 } 30509fi 30510 30511 30512# IFS 30513# We need space, tab and new line, in precisely that order. Quoting is 30514# there to prevent editors from complaining about space-tab. 30515# (If _AS_PATH_WALK were called with IFS unset, it would disable word 30516# splitting by setting IFS to empty value.) 30517IFS=" "" $as_nl" 30518 30519# Find who we are. Look in the path if we contain no directory separator. 30520as_myself= 30521case $0 in #(( 30522 *[\\/]* ) as_myself=$0 ;; 30523 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30524for as_dir in $PATH 30525do 30526 IFS=$as_save_IFS 30527 test -z "$as_dir" && as_dir=. 30528 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 30529 done 30530IFS=$as_save_IFS 30531 30532 ;; 30533esac 30534# We did not find ourselves, most probably we were run as `sh COMMAND' 30535# in which case we are not to be found in the path. 30536if test "x$as_myself" = x; then 30537 as_myself=$0 30538fi 30539if test ! -f "$as_myself"; then 30540 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 30541 exit 1 30542fi 30543 30544# Unset variables that we do not need and which cause bugs (e.g. in 30545# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 30546# suppresses any "Segmentation fault" message there. '((' could 30547# trigger a bug in pdksh 5.2.14. 30548for as_var in BASH_ENV ENV MAIL MAILPATH 30549do eval test x\${$as_var+set} = xset \ 30550 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 30551done 30552PS1='$ ' 30553PS2='> ' 30554PS4='+ ' 30555 30556# NLS nuisances. 30557LC_ALL=C 30558export LC_ALL 30559LANGUAGE=C 30560export LANGUAGE 30561 30562# CDPATH. 30563(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 30564 30565 30566# as_fn_error STATUS ERROR [LINENO LOG_FD] 30567# ---------------------------------------- 30568# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 30569# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 30570# script with STATUS, using 1 if that was 0. 30571as_fn_error () 30572{ 30573 as_status=$1; test $as_status -eq 0 && as_status=1 30574 if test "$4"; then 30575 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 30576 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 30577 fi 30578 $as_echo "$as_me: error: $2" >&2 30579 as_fn_exit $as_status 30580} # as_fn_error 30581 30582 30583# as_fn_set_status STATUS 30584# ----------------------- 30585# Set $? to STATUS, without forking. 30586as_fn_set_status () 30587{ 30588 return $1 30589} # as_fn_set_status 30590 30591# as_fn_exit STATUS 30592# ----------------- 30593# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 30594as_fn_exit () 30595{ 30596 set +e 30597 as_fn_set_status $1 30598 exit $1 30599} # as_fn_exit 30600 30601# as_fn_unset VAR 30602# --------------- 30603# Portably unset VAR. 30604as_fn_unset () 30605{ 30606 { eval $1=; unset $1;} 30607} 30608as_unset=as_fn_unset 30609# as_fn_append VAR VALUE 30610# ---------------------- 30611# Append the text in VALUE to the end of the definition contained in VAR. Take 30612# advantage of any shell optimizations that allow amortized linear growth over 30613# repeated appends, instead of the typical quadratic growth present in naive 30614# implementations. 30615if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 30616 eval 'as_fn_append () 30617 { 30618 eval $1+=\$2 30619 }' 30620else 30621 as_fn_append () 30622 { 30623 eval $1=\$$1\$2 30624 } 30625fi # as_fn_append 30626 30627# as_fn_arith ARG... 30628# ------------------ 30629# Perform arithmetic evaluation on the ARGs, and store the result in the 30630# global $as_val. Take advantage of shells that can avoid forks. The arguments 30631# must be portable across $(()) and expr. 30632if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 30633 eval 'as_fn_arith () 30634 { 30635 as_val=$(( $* )) 30636 }' 30637else 30638 as_fn_arith () 30639 { 30640 as_val=`expr "$@" || test $? -eq 1` 30641 } 30642fi # as_fn_arith 30643 30644 30645if expr a : '\(a\)' >/dev/null 2>&1 && 30646 test "X`expr 00001 : '.*\(...\)'`" = X001; then 30647 as_expr=expr 30648else 30649 as_expr=false 30650fi 30651 30652if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 30653 as_basename=basename 30654else 30655 as_basename=false 30656fi 30657 30658if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 30659 as_dirname=dirname 30660else 30661 as_dirname=false 30662fi 30663 30664as_me=`$as_basename -- "$0" || 30665$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 30666 X"$0" : 'X\(//\)$' \| \ 30667 X"$0" : 'X\(/\)' \| . 2>/dev/null || 30668$as_echo X/"$0" | 30669 sed '/^.*\/\([^/][^/]*\)\/*$/{ 30670 s//\1/ 30671 q 30672 } 30673 /^X\/\(\/\/\)$/{ 30674 s//\1/ 30675 q 30676 } 30677 /^X\/\(\/\).*/{ 30678 s//\1/ 30679 q 30680 } 30681 s/.*/./; q'` 30682 30683# Avoid depending upon Character Ranges. 30684as_cr_letters='abcdefghijklmnopqrstuvwxyz' 30685as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 30686as_cr_Letters=$as_cr_letters$as_cr_LETTERS 30687as_cr_digits='0123456789' 30688as_cr_alnum=$as_cr_Letters$as_cr_digits 30689 30690ECHO_C= ECHO_N= ECHO_T= 30691case `echo -n x` in #((((( 30692-n*) 30693 case `echo 'xy\c'` in 30694 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 30695 xy) ECHO_C='\c';; 30696 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 30697 ECHO_T=' ';; 30698 esac;; 30699*) 30700 ECHO_N='-n';; 30701esac 30702 30703rm -f conf$$ conf$$.exe conf$$.file 30704if test -d conf$$.dir; then 30705 rm -f conf$$.dir/conf$$.file 30706else 30707 rm -f conf$$.dir 30708 mkdir conf$$.dir 2>/dev/null 30709fi 30710if (echo >conf$$.file) 2>/dev/null; then 30711 if ln -s conf$$.file conf$$ 2>/dev/null; then 30712 as_ln_s='ln -s' 30713 # ... but there are two gotchas: 30714 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 30715 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 30716 # In both cases, we have to default to `cp -pR'. 30717 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 30718 as_ln_s='cp -pR' 30719 elif ln conf$$.file conf$$ 2>/dev/null; then 30720 as_ln_s=ln 30721 else 30722 as_ln_s='cp -pR' 30723 fi 30724else 30725 as_ln_s='cp -pR' 30726fi 30727rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 30728rmdir conf$$.dir 2>/dev/null 30729 30730 30731# as_fn_mkdir_p 30732# ------------- 30733# Create "$as_dir" as a directory, including parents if necessary. 30734as_fn_mkdir_p () 30735{ 30736 30737 case $as_dir in #( 30738 -*) as_dir=./$as_dir;; 30739 esac 30740 test -d "$as_dir" || eval $as_mkdir_p || { 30741 as_dirs= 30742 while :; do 30743 case $as_dir in #( 30744 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 30745 *) as_qdir=$as_dir;; 30746 esac 30747 as_dirs="'$as_qdir' $as_dirs" 30748 as_dir=`$as_dirname -- "$as_dir" || 30749$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 30750 X"$as_dir" : 'X\(//\)[^/]' \| \ 30751 X"$as_dir" : 'X\(//\)$' \| \ 30752 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 30753$as_echo X"$as_dir" | 30754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 30755 s//\1/ 30756 q 30757 } 30758 /^X\(\/\/\)[^/].*/{ 30759 s//\1/ 30760 q 30761 } 30762 /^X\(\/\/\)$/{ 30763 s//\1/ 30764 q 30765 } 30766 /^X\(\/\).*/{ 30767 s//\1/ 30768 q 30769 } 30770 s/.*/./; q'` 30771 test -d "$as_dir" && break 30772 done 30773 test -z "$as_dirs" || eval "mkdir $as_dirs" 30774 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 30775 30776 30777} # as_fn_mkdir_p 30778if mkdir -p . 2>/dev/null; then 30779 as_mkdir_p='mkdir -p "$as_dir"' 30780else 30781 test -d ./-p && rmdir ./-p 30782 as_mkdir_p=false 30783fi 30784 30785 30786# as_fn_executable_p FILE 30787# ----------------------- 30788# Test if FILE is an executable regular file. 30789as_fn_executable_p () 30790{ 30791 test -f "$1" && test -x "$1" 30792} # as_fn_executable_p 30793as_test_x='test -x' 30794as_executable_p=as_fn_executable_p 30795 30796# Sed expression to map a string onto a valid CPP name. 30797as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 30798 30799# Sed expression to map a string onto a valid variable name. 30800as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 30801 30802 30803exec 6>&1 30804## ----------------------------------- ## 30805## Main body of $CONFIG_STATUS script. ## 30806## ----------------------------------- ## 30807_ASEOF 30808test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 30809 30810cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30811# Save the log message, to keep $0 and so on meaningful, and to 30812# report actual input values of CONFIG_FILES etc. instead of their 30813# values after options handling. 30814ac_log=" 30815This file was extended by $as_me, which was 30816generated by GNU Autoconf 2.69. Invocation command line was 30817 30818 CONFIG_FILES = $CONFIG_FILES 30819 CONFIG_HEADERS = $CONFIG_HEADERS 30820 CONFIG_LINKS = $CONFIG_LINKS 30821 CONFIG_COMMANDS = $CONFIG_COMMANDS 30822 $ $0 $@ 30823 30824on `(hostname || uname -n) 2>/dev/null | sed 1q` 30825" 30826 30827_ACEOF 30828 30829case $ac_config_files in *" 30830"*) set x $ac_config_files; shift; ac_config_files=$*;; 30831esac 30832 30833case $ac_config_headers in *" 30834"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 30835esac 30836 30837 30838cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30839# Files that config.status was made for. 30840config_files="$ac_config_files" 30841config_headers="$ac_config_headers" 30842config_commands="$ac_config_commands" 30843 30844_ACEOF 30845 30846cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30847ac_cs_usage="\ 30848\`$as_me' instantiates files and other configuration actions 30849from templates according to the current configuration. Unless the files 30850and actions are specified as TAGs, all are instantiated by default. 30851 30852Usage: $0 [OPTION]... [TAG]... 30853 30854 -h, --help print this help, then exit 30855 -V, --version print version number and configuration settings, then exit 30856 --config print configuration, then exit 30857 -q, --quiet, --silent 30858 do not print progress messages 30859 -d, --debug don't remove temporary files 30860 --recheck update $as_me by reconfiguring in the same conditions 30861 --file=FILE[:TEMPLATE] 30862 instantiate the configuration file FILE 30863 --header=FILE[:TEMPLATE] 30864 instantiate the configuration header FILE 30865 30866Configuration files: 30867$config_files 30868 30869Configuration headers: 30870$config_headers 30871 30872Configuration commands: 30873$config_commands 30874 30875Report bugs to the package provider." 30876 30877_ACEOF 30878cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30879ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 30880ac_cs_version="\\ 30881config.status 30882configured by $0, generated by GNU Autoconf 2.69, 30883 with options \\"\$ac_cs_config\\" 30884 30885Copyright (C) 2012 Free Software Foundation, Inc. 30886This config.status script is free software; the Free Software Foundation 30887gives unlimited permission to copy, distribute and modify it." 30888 30889ac_pwd='$ac_pwd' 30890srcdir='$srcdir' 30891INSTALL='$INSTALL' 30892AWK='$AWK' 30893test -n "\$AWK" || AWK=awk 30894_ACEOF 30895 30896cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30897# The default lists apply if the user does not specify any file. 30898ac_need_defaults=: 30899while test $# != 0 30900do 30901 case $1 in 30902 --*=?*) 30903 ac_option=`expr "X$1" : 'X\([^=]*\)='` 30904 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 30905 ac_shift=: 30906 ;; 30907 --*=) 30908 ac_option=`expr "X$1" : 'X\([^=]*\)='` 30909 ac_optarg= 30910 ac_shift=: 30911 ;; 30912 *) 30913 ac_option=$1 30914 ac_optarg=$2 30915 ac_shift=shift 30916 ;; 30917 esac 30918 30919 case $ac_option in 30920 # Handling of the options. 30921 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 30922 ac_cs_recheck=: ;; 30923 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 30924 $as_echo "$ac_cs_version"; exit ;; 30925 --config | --confi | --conf | --con | --co | --c ) 30926 $as_echo "$ac_cs_config"; exit ;; 30927 --debug | --debu | --deb | --de | --d | -d ) 30928 debug=: ;; 30929 --file | --fil | --fi | --f ) 30930 $ac_shift 30931 case $ac_optarg in 30932 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 30933 '') as_fn_error $? "missing file argument" ;; 30934 esac 30935 as_fn_append CONFIG_FILES " '$ac_optarg'" 30936 ac_need_defaults=false;; 30937 --header | --heade | --head | --hea ) 30938 $ac_shift 30939 case $ac_optarg in 30940 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 30941 esac 30942 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 30943 ac_need_defaults=false;; 30944 --he | --h) 30945 # Conflict between --help and --header 30946 as_fn_error $? "ambiguous option: \`$1' 30947Try \`$0 --help' for more information.";; 30948 --help | --hel | -h ) 30949 $as_echo "$ac_cs_usage"; exit ;; 30950 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 30951 | -silent | --silent | --silen | --sile | --sil | --si | --s) 30952 ac_cs_silent=: ;; 30953 30954 # This is an error. 30955 -*) as_fn_error $? "unrecognized option: \`$1' 30956Try \`$0 --help' for more information." ;; 30957 30958 *) as_fn_append ac_config_targets " $1" 30959 ac_need_defaults=false ;; 30960 30961 esac 30962 shift 30963done 30964 30965ac_configure_extra_args= 30966 30967if $ac_cs_silent; then 30968 exec 6>/dev/null 30969 ac_configure_extra_args="$ac_configure_extra_args --silent" 30970fi 30971 30972_ACEOF 30973cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30974if \$ac_cs_recheck; then 30975 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 30976 shift 30977 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 30978 CONFIG_SHELL='$SHELL' 30979 export CONFIG_SHELL 30980 exec "\$@" 30981fi 30982 30983_ACEOF 30984cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30985exec 5>>config.log 30986{ 30987 echo 30988 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 30989## Running $as_me. ## 30990_ASBOX 30991 $as_echo "$ac_log" 30992} >&5 30993 30994_ACEOF 30995cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30996# 30997# INIT-COMMANDS 30998# 30999 31000 31001# The HP-UX ksh and POSIX shell print the target directory to stdout 31002# if CDPATH is set. 31003(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 31004 31005sed_quote_subst='$sed_quote_subst' 31006double_quote_subst='$double_quote_subst' 31007delay_variable_subst='$delay_variable_subst' 31008AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 31009DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 31010OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 31011macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 31012macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 31013enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 31014enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 31015pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 31016enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 31017shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 31018SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 31019ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 31020PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 31021host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 31022host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 31023host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 31024build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 31025build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 31026build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 31027SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 31028Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 31029GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 31030EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 31031FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 31032LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 31033NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 31034LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 31035max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 31036ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 31037exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 31038lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 31039lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 31040lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 31041lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 31042lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 31043reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 31044reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 31045deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 31046file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 31047file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 31048want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 31049sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 31050AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 31051AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 31052archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 31053STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 31054RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 31055old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 31056old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 31057old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 31058lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 31059CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 31060CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 31061compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 31062GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 31063lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 31064lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 31065lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 31066lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 31067lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 31068lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 31069nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 31070lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 31071lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 31072objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 31073MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 31074lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 31075lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 31076lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 31077lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 31078lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 31079need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 31080MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 31081DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 31082NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 31083LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 31084OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 31085OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 31086libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 31087shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 31088extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 31089archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 31090enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 31091export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 31092whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 31093compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 31094old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 31095old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 31096archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 31097archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 31098module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 31099module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 31100with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 31101allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 31102no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 31103hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 31104hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 31105hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 31106hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 31107hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 31108hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 31109hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 31110inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 31111link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 31112always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 31113export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 31114exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 31115include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 31116prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 31117postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 31118file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 31119variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 31120need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 31121need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 31122version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 31123runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 31124shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 31125shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 31126libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 31127library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 31128soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 31129install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 31130postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 31131postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 31132finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 31133finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 31134hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 31135sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 31136configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 31137configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 31138hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 31139enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 31140enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 31141enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 31142old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 31143striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 31144 31145LTCC='$LTCC' 31146LTCFLAGS='$LTCFLAGS' 31147compiler='$compiler_DEFAULT' 31148 31149# A function that is used when there is no print builtin or printf. 31150func_fallback_echo () 31151{ 31152 eval 'cat <<_LTECHO_EOF 31153\$1 31154_LTECHO_EOF' 31155} 31156 31157# Quote evaled strings. 31158for var in AS \ 31159DLLTOOL \ 31160OBJDUMP \ 31161SHELL \ 31162ECHO \ 31163PATH_SEPARATOR \ 31164SED \ 31165GREP \ 31166EGREP \ 31167FGREP \ 31168LD \ 31169NM \ 31170LN_S \ 31171lt_SP2NL \ 31172lt_NL2SP \ 31173reload_flag \ 31174deplibs_check_method \ 31175file_magic_cmd \ 31176file_magic_glob \ 31177want_nocaseglob \ 31178sharedlib_from_linklib_cmd \ 31179AR \ 31180AR_FLAGS \ 31181archiver_list_spec \ 31182STRIP \ 31183RANLIB \ 31184CC \ 31185CFLAGS \ 31186compiler \ 31187lt_cv_sys_global_symbol_pipe \ 31188lt_cv_sys_global_symbol_to_cdecl \ 31189lt_cv_sys_global_symbol_to_import \ 31190lt_cv_sys_global_symbol_to_c_name_address \ 31191lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 31192lt_cv_nm_interface \ 31193nm_file_list_spec \ 31194lt_cv_truncate_bin \ 31195lt_prog_compiler_no_builtin_flag \ 31196lt_prog_compiler_pic \ 31197lt_prog_compiler_wl \ 31198lt_prog_compiler_static \ 31199lt_cv_prog_compiler_c_o \ 31200need_locks \ 31201MANIFEST_TOOL \ 31202DSYMUTIL \ 31203NMEDIT \ 31204LIPO \ 31205OTOOL \ 31206OTOOL64 \ 31207shrext_cmds \ 31208export_dynamic_flag_spec \ 31209whole_archive_flag_spec \ 31210compiler_needs_object \ 31211with_gnu_ld \ 31212allow_undefined_flag \ 31213no_undefined_flag \ 31214hardcode_libdir_flag_spec \ 31215hardcode_libdir_separator \ 31216exclude_expsyms \ 31217include_expsyms \ 31218file_list_spec \ 31219variables_saved_for_relink \ 31220libname_spec \ 31221library_names_spec \ 31222soname_spec \ 31223install_override_mode \ 31224finish_eval \ 31225old_striplib \ 31226striplib; do 31227 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 31228 *[\\\\\\\`\\"\\\$]*) 31229 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 31230 ;; 31231 *) 31232 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 31233 ;; 31234 esac 31235done 31236 31237# Double-quote double-evaled strings. 31238for var in reload_cmds \ 31239old_postinstall_cmds \ 31240old_postuninstall_cmds \ 31241old_archive_cmds \ 31242extract_expsyms_cmds \ 31243old_archive_from_new_cmds \ 31244old_archive_from_expsyms_cmds \ 31245archive_cmds \ 31246archive_expsym_cmds \ 31247module_cmds \ 31248module_expsym_cmds \ 31249export_symbols_cmds \ 31250prelink_cmds \ 31251postlink_cmds \ 31252postinstall_cmds \ 31253postuninstall_cmds \ 31254finish_cmds \ 31255sys_lib_search_path_spec \ 31256configure_time_dlsearch_path \ 31257configure_time_lt_sys_library_path; do 31258 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 31259 *[\\\\\\\`\\"\\\$]*) 31260 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 31261 ;; 31262 *) 31263 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 31264 ;; 31265 esac 31266done 31267 31268ac_aux_dir='$ac_aux_dir' 31269 31270# See if we are running on zsh, and set the options that allow our 31271# commands through without removal of \ escapes INIT. 31272if test -n "\${ZSH_VERSION+set}"; then 31273 setopt NO_GLOB_SUBST 31274fi 31275 31276 31277 PACKAGE='$PACKAGE' 31278 VERSION='$VERSION' 31279 RM='$RM' 31280 ofile='$ofile' 31281 31282 31283 31284 31285 31286# Commands run at the beginning of config.status: 31287APR_SAVE_HEADERS="include/apr.h include/arch/unix/apr_private.h" 31288APR_MAJOR_VERSION=$APR_MAJOR_VERSION 31289APR_PLATFORM=$host 31290 31291for apri in \${APR_SAVE_HEADERS}; do 31292 test -r \${apri} && mv \${apri} \${apri}.save 31293done 31294 31295 31296_ACEOF 31297 31298cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31299 31300# Handling of arguments. 31301for ac_config_target in $ac_config_targets 31302do 31303 case $ac_config_target in 31304 "include/arch/unix/apr_private.h") CONFIG_HEADERS="$CONFIG_HEADERS include/arch/unix/apr_private.h" ;; 31305 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 31306 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 31307 "include/apr.h") CONFIG_FILES="$CONFIG_FILES include/apr.h" ;; 31308 "build/apr_rules.mk") CONFIG_FILES="$CONFIG_FILES build/apr_rules.mk" ;; 31309 "build/pkg/pkginfo") CONFIG_FILES="$CONFIG_FILES build/pkg/pkginfo" ;; 31310 "apr-$APR_MAJOR_VERSION-config") CONFIG_FILES="$CONFIG_FILES apr-$APR_MAJOR_VERSION-config:apr-config.in" ;; 31311 "apr.pc") CONFIG_FILES="$CONFIG_FILES apr.pc" ;; 31312 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 31313 "test/internal/Makefile") CONFIG_FILES="$CONFIG_FILES test/internal/Makefile" ;; 31314 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 31315 31316 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 31317 esac 31318done 31319 31320 31321# If the user did not use the arguments to specify the items to instantiate, 31322# then the envvar interface is used. Set only those that are not. 31323# We use the long form for the default assignment because of an extremely 31324# bizarre bug on SunOS 4.1.3. 31325if $ac_need_defaults; then 31326 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 31327 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 31328 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 31329fi 31330 31331# Have a temporary directory for convenience. Make it in the build tree 31332# simply because there is no reason against having it here, and in addition, 31333# creating and moving files from /tmp can sometimes cause problems. 31334# Hook for its removal unless debugging. 31335# Note that there is a small window in which the directory will not be cleaned: 31336# after its creation but before its name has been assigned to `$tmp'. 31337$debug || 31338{ 31339 tmp= ac_tmp= 31340 trap 'exit_status=$? 31341 : "${ac_tmp:=$tmp}" 31342 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 31343' 0 31344 trap 'as_fn_exit 1' 1 2 13 15 31345} 31346# Create a (secure) tmp directory for tmp files. 31347 31348{ 31349 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 31350 test -d "$tmp" 31351} || 31352{ 31353 tmp=./conf$$-$RANDOM 31354 (umask 077 && mkdir "$tmp") 31355} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 31356ac_tmp=$tmp 31357 31358# Set up the scripts for CONFIG_FILES section. 31359# No need to generate them if there are no CONFIG_FILES. 31360# This happens for instance with `./config.status config.h'. 31361if test -n "$CONFIG_FILES"; then 31362 31363 31364ac_cr=`echo X | tr X '\015'` 31365# On cygwin, bash can eat \r inside `` if the user requested igncr. 31366# But we know of no other shell where ac_cr would be empty at this 31367# point, so we can use a bashism as a fallback. 31368if test "x$ac_cr" = x; then 31369 eval ac_cr=\$\'\\r\' 31370fi 31371ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 31372if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 31373 ac_cs_awk_cr='\\r' 31374else 31375 ac_cs_awk_cr=$ac_cr 31376fi 31377 31378echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 31379_ACEOF 31380 31381 31382{ 31383 echo "cat >conf$$subs.awk <<_ACEOF" && 31384 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 31385 echo "_ACEOF" 31386} >conf$$subs.sh || 31387 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 31388ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 31389ac_delim='%!_!# ' 31390for ac_last_try in false false false false false :; do 31391 . ./conf$$subs.sh || 31392 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 31393 31394 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 31395 if test $ac_delim_n = $ac_delim_num; then 31396 break 31397 elif $ac_last_try; then 31398 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 31399 else 31400 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 31401 fi 31402done 31403rm -f conf$$subs.sh 31404 31405cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31406cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 31407_ACEOF 31408sed -n ' 31409h 31410s/^/S["/; s/!.*/"]=/ 31411p 31412g 31413s/^[^!]*!// 31414:repl 31415t repl 31416s/'"$ac_delim"'$// 31417t delim 31418:nl 31419h 31420s/\(.\{148\}\)..*/\1/ 31421t more1 31422s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 31423p 31424n 31425b repl 31426:more1 31427s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 31428p 31429g 31430s/.\{148\}// 31431t nl 31432:delim 31433h 31434s/\(.\{148\}\)..*/\1/ 31435t more2 31436s/["\\]/\\&/g; s/^/"/; s/$/"/ 31437p 31438b 31439:more2 31440s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 31441p 31442g 31443s/.\{148\}// 31444t delim 31445' <conf$$subs.awk | sed ' 31446/^[^""]/{ 31447 N 31448 s/\n// 31449} 31450' >>$CONFIG_STATUS || ac_write_fail=1 31451rm -f conf$$subs.awk 31452cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31453_ACAWK 31454cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 31455 for (key in S) S_is_set[key] = 1 31456 FS = "" 31457 31458} 31459{ 31460 line = $ 0 31461 nfields = split(line, field, "@") 31462 substed = 0 31463 len = length(field[1]) 31464 for (i = 2; i < nfields; i++) { 31465 key = field[i] 31466 keylen = length(key) 31467 if (S_is_set[key]) { 31468 value = S[key] 31469 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 31470 len += length(value) + length(field[++i]) 31471 substed = 1 31472 } else 31473 len += 1 + keylen 31474 } 31475 31476 print line 31477} 31478 31479_ACAWK 31480_ACEOF 31481cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31482if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 31483 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 31484else 31485 cat 31486fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 31487 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 31488_ACEOF 31489 31490# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 31491# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 31492# trailing colons and then remove the whole line if VPATH becomes empty 31493# (actually we leave an empty line to preserve line numbers). 31494if test "x$srcdir" = x.; then 31495 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 31496h 31497s/// 31498s/^/:/ 31499s/[ ]*$/:/ 31500s/:\$(srcdir):/:/g 31501s/:\${srcdir}:/:/g 31502s/:@srcdir@:/:/g 31503s/^:*// 31504s/:*$// 31505x 31506s/\(=[ ]*\).*/\1/ 31507G 31508s/\n// 31509s/^[^=]*=[ ]*$// 31510}' 31511fi 31512 31513cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31514fi # test -n "$CONFIG_FILES" 31515 31516# Set up the scripts for CONFIG_HEADERS section. 31517# No need to generate them if there are no CONFIG_HEADERS. 31518# This happens for instance with `./config.status Makefile'. 31519if test -n "$CONFIG_HEADERS"; then 31520cat >"$ac_tmp/defines.awk" <<\_ACAWK || 31521BEGIN { 31522_ACEOF 31523 31524# Transform confdefs.h into an awk script `defines.awk', embedded as 31525# here-document in config.status, that substitutes the proper values into 31526# config.h.in to produce config.h. 31527 31528# Create a delimiter string that does not exist in confdefs.h, to ease 31529# handling of long lines. 31530ac_delim='%!_!# ' 31531for ac_last_try in false false :; do 31532 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 31533 if test -z "$ac_tt"; then 31534 break 31535 elif $ac_last_try; then 31536 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 31537 else 31538 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 31539 fi 31540done 31541 31542# For the awk script, D is an array of macro values keyed by name, 31543# likewise P contains macro parameters if any. Preserve backslash 31544# newline sequences. 31545 31546ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 31547sed -n ' 31548s/.\{148\}/&'"$ac_delim"'/g 31549t rset 31550:rset 31551s/^[ ]*#[ ]*define[ ][ ]*/ / 31552t def 31553d 31554:def 31555s/\\$// 31556t bsnl 31557s/["\\]/\\&/g 31558s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 31559D["\1"]=" \3"/p 31560s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 31561d 31562:bsnl 31563s/["\\]/\\&/g 31564s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 31565D["\1"]=" \3\\\\\\n"\\/p 31566t cont 31567s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 31568t cont 31569d 31570:cont 31571n 31572s/.\{148\}/&'"$ac_delim"'/g 31573t clear 31574:clear 31575s/\\$// 31576t bsnlc 31577s/["\\]/\\&/g; s/^/"/; s/$/"/p 31578d 31579:bsnlc 31580s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 31581b cont 31582' <confdefs.h | sed ' 31583s/'"$ac_delim"'/"\\\ 31584"/g' >>$CONFIG_STATUS || ac_write_fail=1 31585 31586cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31587 for (key in D) D_is_set[key] = 1 31588 FS = "" 31589} 31590/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 31591 line = \$ 0 31592 split(line, arg, " ") 31593 if (arg[1] == "#") { 31594 defundef = arg[2] 31595 mac1 = arg[3] 31596 } else { 31597 defundef = substr(arg[1], 2) 31598 mac1 = arg[2] 31599 } 31600 split(mac1, mac2, "(") #) 31601 macro = mac2[1] 31602 prefix = substr(line, 1, index(line, defundef) - 1) 31603 if (D_is_set[macro]) { 31604 # Preserve the white space surrounding the "#". 31605 print prefix "define", macro P[macro] D[macro] 31606 next 31607 } else { 31608 # Replace #undef with comments. This is necessary, for example, 31609 # in the case of _POSIX_SOURCE, which is predefined and required 31610 # on some systems where configure will not decide to define it. 31611 if (defundef == "undef") { 31612 print "/*", prefix defundef, macro, "*/" 31613 next 31614 } 31615 } 31616} 31617{ print } 31618_ACAWK 31619_ACEOF 31620cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31621 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 31622fi # test -n "$CONFIG_HEADERS" 31623 31624 31625eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 31626shift 31627for ac_tag 31628do 31629 case $ac_tag in 31630 :[FHLC]) ac_mode=$ac_tag; continue;; 31631 esac 31632 case $ac_mode$ac_tag in 31633 :[FHL]*:*);; 31634 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 31635 :[FH]-) ac_tag=-:-;; 31636 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 31637 esac 31638 ac_save_IFS=$IFS 31639 IFS=: 31640 set x $ac_tag 31641 IFS=$ac_save_IFS 31642 shift 31643 ac_file=$1 31644 shift 31645 31646 case $ac_mode in 31647 :L) ac_source=$1;; 31648 :[FH]) 31649 ac_file_inputs= 31650 for ac_f 31651 do 31652 case $ac_f in 31653 -) ac_f="$ac_tmp/stdin";; 31654 *) # Look for the file first in the build tree, then in the source tree 31655 # (if the path is not absolute). The absolute path cannot be DOS-style, 31656 # because $ac_f cannot contain `:'. 31657 test -f "$ac_f" || 31658 case $ac_f in 31659 [\\/$]*) false;; 31660 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 31661 esac || 31662 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 31663 esac 31664 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 31665 as_fn_append ac_file_inputs " '$ac_f'" 31666 done 31667 31668 # Let's still pretend it is `configure' which instantiates (i.e., don't 31669 # use $as_me), people would be surprised to read: 31670 # /* config.h. Generated by config.status. */ 31671 configure_input='Generated from '` 31672 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 31673 `' by configure.' 31674 if test x"$ac_file" != x-; then 31675 configure_input="$ac_file. $configure_input" 31676 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 31677$as_echo "$as_me: creating $ac_file" >&6;} 31678 fi 31679 # Neutralize special characters interpreted by sed in replacement strings. 31680 case $configure_input in #( 31681 *\&* | *\|* | *\\* ) 31682 ac_sed_conf_input=`$as_echo "$configure_input" | 31683 sed 's/[\\\\&|]/\\\\&/g'`;; #( 31684 *) ac_sed_conf_input=$configure_input;; 31685 esac 31686 31687 case $ac_tag in 31688 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 31689 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 31690 esac 31691 ;; 31692 esac 31693 31694 ac_dir=`$as_dirname -- "$ac_file" || 31695$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 31696 X"$ac_file" : 'X\(//\)[^/]' \| \ 31697 X"$ac_file" : 'X\(//\)$' \| \ 31698 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 31699$as_echo X"$ac_file" | 31700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 31701 s//\1/ 31702 q 31703 } 31704 /^X\(\/\/\)[^/].*/{ 31705 s//\1/ 31706 q 31707 } 31708 /^X\(\/\/\)$/{ 31709 s//\1/ 31710 q 31711 } 31712 /^X\(\/\).*/{ 31713 s//\1/ 31714 q 31715 } 31716 s/.*/./; q'` 31717 as_dir="$ac_dir"; as_fn_mkdir_p 31718 ac_builddir=. 31719 31720case "$ac_dir" in 31721.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 31722*) 31723 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 31724 # A ".." for each directory in $ac_dir_suffix. 31725 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 31726 case $ac_top_builddir_sub in 31727 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 31728 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 31729 esac ;; 31730esac 31731ac_abs_top_builddir=$ac_pwd 31732ac_abs_builddir=$ac_pwd$ac_dir_suffix 31733# for backward compatibility: 31734ac_top_builddir=$ac_top_build_prefix 31735 31736case $srcdir in 31737 .) # We are building in place. 31738 ac_srcdir=. 31739 ac_top_srcdir=$ac_top_builddir_sub 31740 ac_abs_top_srcdir=$ac_pwd ;; 31741 [\\/]* | ?:[\\/]* ) # Absolute name. 31742 ac_srcdir=$srcdir$ac_dir_suffix; 31743 ac_top_srcdir=$srcdir 31744 ac_abs_top_srcdir=$srcdir ;; 31745 *) # Relative name. 31746 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 31747 ac_top_srcdir=$ac_top_build_prefix$srcdir 31748 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 31749esac 31750ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 31751 31752 31753 case $ac_mode in 31754 :F) 31755 # 31756 # CONFIG_FILE 31757 # 31758 31759 case $INSTALL in 31760 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 31761 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 31762 esac 31763_ACEOF 31764 31765cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31766# If the template does not know about datarootdir, expand it. 31767# FIXME: This hack should be removed a few years after 2.60. 31768ac_datarootdir_hack=; ac_datarootdir_seen= 31769ac_sed_dataroot=' 31770/datarootdir/ { 31771 p 31772 q 31773} 31774/@datadir@/p 31775/@docdir@/p 31776/@infodir@/p 31777/@localedir@/p 31778/@mandir@/p' 31779case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 31780*datarootdir*) ac_datarootdir_seen=yes;; 31781*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 31782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 31783$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 31784_ACEOF 31785cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31786 ac_datarootdir_hack=' 31787 s&@datadir@&$datadir&g 31788 s&@docdir@&$docdir&g 31789 s&@infodir@&$infodir&g 31790 s&@localedir@&$localedir&g 31791 s&@mandir@&$mandir&g 31792 s&\\\${datarootdir}&$datarootdir&g' ;; 31793esac 31794_ACEOF 31795 31796# Neutralize VPATH when `$srcdir' = `.'. 31797# Shell code in configure.ac might set extrasub. 31798# FIXME: do we really want to maintain this feature? 31799cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31800ac_sed_extra="$ac_vpsub 31801$extrasub 31802_ACEOF 31803cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31804:t 31805/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 31806s|@configure_input@|$ac_sed_conf_input|;t t 31807s&@top_builddir@&$ac_top_builddir_sub&;t t 31808s&@top_build_prefix@&$ac_top_build_prefix&;t t 31809s&@srcdir@&$ac_srcdir&;t t 31810s&@abs_srcdir@&$ac_abs_srcdir&;t t 31811s&@top_srcdir@&$ac_top_srcdir&;t t 31812s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 31813s&@builddir@&$ac_builddir&;t t 31814s&@abs_builddir@&$ac_abs_builddir&;t t 31815s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 31816s&@INSTALL@&$ac_INSTALL&;t t 31817$ac_datarootdir_hack 31818" 31819eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 31820 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 31821 31822test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 31823 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 31824 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 31825 "$ac_tmp/out"`; test -z "$ac_out"; } && 31826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 31827which seems to be undefined. Please make sure it is defined" >&5 31828$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 31829which seems to be undefined. Please make sure it is defined" >&2;} 31830 31831 rm -f "$ac_tmp/stdin" 31832 case $ac_file in 31833 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 31834 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 31835 esac \ 31836 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 31837 ;; 31838 :H) 31839 # 31840 # CONFIG_HEADER 31841 # 31842 if test x"$ac_file" != x-; then 31843 { 31844 $as_echo "/* $configure_input */" \ 31845 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 31846 } >"$ac_tmp/config.h" \ 31847 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 31848 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 31849 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 31850$as_echo "$as_me: $ac_file is unchanged" >&6;} 31851 else 31852 rm -f "$ac_file" 31853 mv "$ac_tmp/config.h" "$ac_file" \ 31854 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 31855 fi 31856 else 31857 $as_echo "/* $configure_input */" \ 31858 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 31859 || as_fn_error $? "could not create -" "$LINENO" 5 31860 fi 31861 ;; 31862 31863 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 31864$as_echo "$as_me: executing $ac_file commands" >&6;} 31865 ;; 31866 esac 31867 31868 31869 case $ac_file$ac_mode in 31870 "libtool":C) 31871 31872 # See if we are running on zsh, and set the options that allow our 31873 # commands through without removal of \ escapes. 31874 if test -n "${ZSH_VERSION+set}"; then 31875 setopt NO_GLOB_SUBST 31876 fi 31877 31878 cfgfile=${ofile}T 31879 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 31880 $RM "$cfgfile" 31881 31882 cat <<_LT_EOF >> "$cfgfile" 31883#! $SHELL 31884# Generated automatically by $as_me ($PACKAGE) $VERSION 31885# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 31886# NOTE: Changes made to this file will be lost: look at ltmain.sh. 31887 31888# Provide generalized library-building support services. 31889# Written by Gordon Matzigkeit, 1996 31890 31891# Copyright (C) 2014 Free Software Foundation, Inc. 31892# This is free software; see the source for copying conditions. There is NO 31893# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 31894 31895# GNU Libtool is free software; you can redistribute it and/or modify 31896# it under the terms of the GNU General Public License as published by 31897# the Free Software Foundation; either version 2 of of the License, or 31898# (at your option) any later version. 31899# 31900# As a special exception to the GNU General Public License, if you 31901# distribute this file as part of a program or library that is built 31902# using GNU Libtool, you may include this file under the same 31903# distribution terms that you use for the rest of that program. 31904# 31905# GNU Libtool is distributed in the hope that it will be useful, but 31906# WITHOUT ANY WARRANTY; without even the implied warranty of 31907# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 31908# GNU General Public License for more details. 31909# 31910# You should have received a copy of the GNU General Public License 31911# along with this program. If not, see <http://www.gnu.org/licenses/>. 31912 31913 31914# The names of the tagged configurations supported by this script. 31915available_tags='' 31916 31917# Configured defaults for sys_lib_dlsearch_path munging. 31918: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 31919 31920# ### BEGIN LIBTOOL CONFIG 31921 31922# Assembler program. 31923AS=$lt_AS 31924 31925# DLL creation program. 31926DLLTOOL=$lt_DLLTOOL 31927 31928# Object dumper program. 31929OBJDUMP=$lt_OBJDUMP 31930 31931# Which release of libtool.m4 was used? 31932macro_version=$macro_version 31933macro_revision=$macro_revision 31934 31935# Whether or not to build shared libraries. 31936build_libtool_libs=$enable_shared 31937 31938# Whether or not to build static libraries. 31939build_old_libs=$enable_static 31940 31941# What type of objects to build. 31942pic_mode=$pic_mode 31943 31944# Whether or not to optimize for fast installation. 31945fast_install=$enable_fast_install 31946 31947# Shared archive member basename,for filename based shared library versioning on AIX. 31948shared_archive_member_spec=$shared_archive_member_spec 31949 31950# Shell to use when invoking shell scripts. 31951SHELL=$lt_SHELL 31952 31953# An echo program that protects backslashes. 31954ECHO=$lt_ECHO 31955 31956# The PATH separator for the build system. 31957PATH_SEPARATOR=$lt_PATH_SEPARATOR 31958 31959# The host system. 31960host_alias=$host_alias 31961host=$host 31962host_os=$host_os 31963 31964# The build system. 31965build_alias=$build_alias 31966build=$build 31967build_os=$build_os 31968 31969# A sed program that does not truncate output. 31970SED=$lt_SED 31971 31972# Sed that helps us avoid accidentally triggering echo(1) options like -n. 31973Xsed="\$SED -e 1s/^X//" 31974 31975# A grep program that handles long lines. 31976GREP=$lt_GREP 31977 31978# An ERE matcher. 31979EGREP=$lt_EGREP 31980 31981# A literal string matcher. 31982FGREP=$lt_FGREP 31983 31984# A BSD- or MS-compatible name lister. 31985NM=$lt_NM 31986 31987# Whether we need soft or hard links. 31988LN_S=$lt_LN_S 31989 31990# What is the maximum length of a command? 31991max_cmd_len=$max_cmd_len 31992 31993# Object file suffix (normally "o"). 31994objext=$ac_objext 31995 31996# Executable file suffix (normally ""). 31997exeext=$exeext 31998 31999# whether the shell understands "unset". 32000lt_unset=$lt_unset 32001 32002# turn spaces into newlines. 32003SP2NL=$lt_lt_SP2NL 32004 32005# turn newlines into spaces. 32006NL2SP=$lt_lt_NL2SP 32007 32008# convert \$build file names to \$host format. 32009to_host_file_cmd=$lt_cv_to_host_file_cmd 32010 32011# convert \$build files to toolchain format. 32012to_tool_file_cmd=$lt_cv_to_tool_file_cmd 32013 32014# Method to check whether dependent libraries are shared objects. 32015deplibs_check_method=$lt_deplibs_check_method 32016 32017# Command to use when deplibs_check_method = "file_magic". 32018file_magic_cmd=$lt_file_magic_cmd 32019 32020# How to find potential files when deplibs_check_method = "file_magic". 32021file_magic_glob=$lt_file_magic_glob 32022 32023# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 32024want_nocaseglob=$lt_want_nocaseglob 32025 32026# Command to associate shared and link libraries. 32027sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 32028 32029# The archiver. 32030AR=$lt_AR 32031 32032# Flags to create an archive. 32033AR_FLAGS=$lt_AR_FLAGS 32034 32035# How to feed a file listing to the archiver. 32036archiver_list_spec=$lt_archiver_list_spec 32037 32038# A symbol stripping program. 32039STRIP=$lt_STRIP 32040 32041# Commands used to install an old-style archive. 32042RANLIB=$lt_RANLIB 32043old_postinstall_cmds=$lt_old_postinstall_cmds 32044old_postuninstall_cmds=$lt_old_postuninstall_cmds 32045 32046# Whether to use a lock for old archive extraction. 32047lock_old_archive_extraction=$lock_old_archive_extraction 32048 32049# A C compiler. 32050LTCC=$lt_CC 32051 32052# LTCC compiler flags. 32053LTCFLAGS=$lt_CFLAGS 32054 32055# Take the output of nm and produce a listing of raw symbols and C names. 32056global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 32057 32058# Transform the output of nm in a proper C declaration. 32059global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 32060 32061# Transform the output of nm into a list of symbols to manually relocate. 32062global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 32063 32064# Transform the output of nm in a C name address pair. 32065global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 32066 32067# Transform the output of nm in a C name address pair when lib prefix is needed. 32068global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 32069 32070# The name lister interface. 32071nm_interface=$lt_lt_cv_nm_interface 32072 32073# Specify filename containing input files for \$NM. 32074nm_file_list_spec=$lt_nm_file_list_spec 32075 32076# The root where to search for dependent libraries,and where our libraries should be installed. 32077lt_sysroot=$lt_sysroot 32078 32079# Command to truncate a binary pipe. 32080lt_truncate_bin=$lt_lt_cv_truncate_bin 32081 32082# The name of the directory that contains temporary libtool files. 32083objdir=$objdir 32084 32085# Used to examine libraries when file_magic_cmd begins with "file". 32086MAGIC_CMD=$MAGIC_CMD 32087 32088# Must we lock files when doing compilation? 32089need_locks=$lt_need_locks 32090 32091# Manifest tool. 32092MANIFEST_TOOL=$lt_MANIFEST_TOOL 32093 32094# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 32095DSYMUTIL=$lt_DSYMUTIL 32096 32097# Tool to change global to local symbols on Mac OS X. 32098NMEDIT=$lt_NMEDIT 32099 32100# Tool to manipulate fat objects and archives on Mac OS X. 32101LIPO=$lt_LIPO 32102 32103# ldd/readelf like tool for Mach-O binaries on Mac OS X. 32104OTOOL=$lt_OTOOL 32105 32106# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 32107OTOOL64=$lt_OTOOL64 32108 32109# Old archive suffix (normally "a"). 32110libext=$libext 32111 32112# Shared library suffix (normally ".so"). 32113shrext_cmds=$lt_shrext_cmds 32114 32115# The commands to extract the exported symbol list from a shared archive. 32116extract_expsyms_cmds=$lt_extract_expsyms_cmds 32117 32118# Variables whose values should be saved in libtool wrapper scripts and 32119# restored at link time. 32120variables_saved_for_relink=$lt_variables_saved_for_relink 32121 32122# Do we need the "lib" prefix for modules? 32123need_lib_prefix=$need_lib_prefix 32124 32125# Do we need a version for libraries? 32126need_version=$need_version 32127 32128# Library versioning type. 32129version_type=$version_type 32130 32131# Shared library runtime path variable. 32132runpath_var=$runpath_var 32133 32134# Shared library path variable. 32135shlibpath_var=$shlibpath_var 32136 32137# Is shlibpath searched before the hard-coded library search path? 32138shlibpath_overrides_runpath=$shlibpath_overrides_runpath 32139 32140# Format of library name prefix. 32141libname_spec=$lt_libname_spec 32142 32143# List of archive names. First name is the real one, the rest are links. 32144# The last name is the one that the linker finds with -lNAME 32145library_names_spec=$lt_library_names_spec 32146 32147# The coded name of the library, if different from the real name. 32148soname_spec=$lt_soname_spec 32149 32150# Permission mode override for installation of shared libraries. 32151install_override_mode=$lt_install_override_mode 32152 32153# Command to use after installation of a shared archive. 32154postinstall_cmds=$lt_postinstall_cmds 32155 32156# Command to use after uninstallation of a shared archive. 32157postuninstall_cmds=$lt_postuninstall_cmds 32158 32159# Commands used to finish a libtool library installation in a directory. 32160finish_cmds=$lt_finish_cmds 32161 32162# As "finish_cmds", except a single script fragment to be evaled but 32163# not shown. 32164finish_eval=$lt_finish_eval 32165 32166# Whether we should hardcode library paths into libraries. 32167hardcode_into_libs=$hardcode_into_libs 32168 32169# Compile-time system search path for libraries. 32170sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 32171 32172# Detected run-time system search path for libraries. 32173sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 32174 32175# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 32176configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 32177 32178# Whether dlopen is supported. 32179dlopen_support=$enable_dlopen 32180 32181# Whether dlopen of programs is supported. 32182dlopen_self=$enable_dlopen_self 32183 32184# Whether dlopen of statically linked programs is supported. 32185dlopen_self_static=$enable_dlopen_self_static 32186 32187# Commands to strip libraries. 32188old_striplib=$lt_old_striplib 32189striplib=$lt_striplib 32190 32191 32192# The linker used to build libraries. 32193LD=$lt_LD 32194 32195# How to create reloadable object files. 32196reload_flag=$lt_reload_flag 32197reload_cmds=$lt_reload_cmds 32198 32199# Commands used to build an old-style archive. 32200old_archive_cmds=$lt_old_archive_cmds 32201 32202# A language specific compiler. 32203CC=$lt_compiler 32204 32205# Is the compiler the GNU compiler? 32206with_gcc=$GCC 32207 32208# Compiler flag to turn off builtin functions. 32209no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 32210 32211# Additional compiler flags for building library objects. 32212pic_flag=$lt_lt_prog_compiler_pic 32213 32214# How to pass a linker flag through the compiler. 32215wl=$lt_lt_prog_compiler_wl 32216 32217# Compiler flag to prevent dynamic linking. 32218link_static_flag=$lt_lt_prog_compiler_static 32219 32220# Does compiler simultaneously support -c and -o options? 32221compiler_c_o=$lt_lt_cv_prog_compiler_c_o 32222 32223# Whether or not to add -lc for building shared libraries. 32224build_libtool_need_lc=$archive_cmds_need_lc 32225 32226# Whether or not to disallow shared libs when runtime libs are static. 32227allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 32228 32229# Compiler flag to allow reflexive dlopens. 32230export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 32231 32232# Compiler flag to generate shared objects directly from archives. 32233whole_archive_flag_spec=$lt_whole_archive_flag_spec 32234 32235# Whether the compiler copes with passing no objects directly. 32236compiler_needs_object=$lt_compiler_needs_object 32237 32238# Create an old-style archive from a shared archive. 32239old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 32240 32241# Create a temporary old-style archive to link instead of a shared archive. 32242old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 32243 32244# Commands used to build a shared archive. 32245archive_cmds=$lt_archive_cmds 32246archive_expsym_cmds=$lt_archive_expsym_cmds 32247 32248# Commands used to build a loadable module if different from building 32249# a shared archive. 32250module_cmds=$lt_module_cmds 32251module_expsym_cmds=$lt_module_expsym_cmds 32252 32253# Whether we are building with GNU ld or not. 32254with_gnu_ld=$lt_with_gnu_ld 32255 32256# Flag that allows shared libraries with undefined symbols to be built. 32257allow_undefined_flag=$lt_allow_undefined_flag 32258 32259# Flag that enforces no undefined symbols. 32260no_undefined_flag=$lt_no_undefined_flag 32261 32262# Flag to hardcode \$libdir into a binary during linking. 32263# This must work even if \$libdir does not exist 32264hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 32265 32266# Whether we need a single "-rpath" flag with a separated argument. 32267hardcode_libdir_separator=$lt_hardcode_libdir_separator 32268 32269# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 32270# DIR into the resulting binary. 32271hardcode_direct=$hardcode_direct 32272 32273# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 32274# DIR into the resulting binary and the resulting library dependency is 32275# "absolute",i.e impossible to change by setting \$shlibpath_var if the 32276# library is relocated. 32277hardcode_direct_absolute=$hardcode_direct_absolute 32278 32279# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 32280# into the resulting binary. 32281hardcode_minus_L=$hardcode_minus_L 32282 32283# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 32284# into the resulting binary. 32285hardcode_shlibpath_var=$hardcode_shlibpath_var 32286 32287# Set to "yes" if building a shared library automatically hardcodes DIR 32288# into the library and all subsequent libraries and executables linked 32289# against it. 32290hardcode_automatic=$hardcode_automatic 32291 32292# Set to yes if linker adds runtime paths of dependent libraries 32293# to runtime path list. 32294inherit_rpath=$inherit_rpath 32295 32296# Whether libtool must link a program against all its dependency libraries. 32297link_all_deplibs=$link_all_deplibs 32298 32299# Set to "yes" if exported symbols are required. 32300always_export_symbols=$always_export_symbols 32301 32302# The commands to list exported symbols. 32303export_symbols_cmds=$lt_export_symbols_cmds 32304 32305# Symbols that should not be listed in the preloaded symbols. 32306exclude_expsyms=$lt_exclude_expsyms 32307 32308# Symbols that must always be exported. 32309include_expsyms=$lt_include_expsyms 32310 32311# Commands necessary for linking programs (against libraries) with templates. 32312prelink_cmds=$lt_prelink_cmds 32313 32314# Commands necessary for finishing linking programs. 32315postlink_cmds=$lt_postlink_cmds 32316 32317# Specify filename containing input files. 32318file_list_spec=$lt_file_list_spec 32319 32320# How to hardcode a shared library path into an executable. 32321hardcode_action=$hardcode_action 32322 32323# ### END LIBTOOL CONFIG 32324 32325_LT_EOF 32326 32327 cat <<'_LT_EOF' >> "$cfgfile" 32328 32329# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 32330 32331# func_munge_path_list VARIABLE PATH 32332# ----------------------------------- 32333# VARIABLE is name of variable containing _space_ separated list of 32334# directories to be munged by the contents of PATH, which is string 32335# having a format: 32336# "DIR[:DIR]:" 32337# string "DIR[ DIR]" will be prepended to VARIABLE 32338# ":DIR[:DIR]" 32339# string "DIR[ DIR]" will be appended to VARIABLE 32340# "DIRP[:DIRP]::[DIRA:]DIRA" 32341# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 32342# "DIRA[ DIRA]" will be appended to VARIABLE 32343# "DIR[:DIR]" 32344# VARIABLE will be replaced by "DIR[ DIR]" 32345func_munge_path_list () 32346{ 32347 case x$2 in 32348 x) 32349 ;; 32350 *:) 32351 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 32352 ;; 32353 x:*) 32354 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 32355 ;; 32356 *::*) 32357 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 32358 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 32359 ;; 32360 *) 32361 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 32362 ;; 32363 esac 32364} 32365 32366 32367# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 32368func_cc_basename () 32369{ 32370 for cc_temp in $*""; do 32371 case $cc_temp in 32372 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 32373 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 32374 \-*) ;; 32375 *) break;; 32376 esac 32377 done 32378 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 32379} 32380 32381 32382# ### END FUNCTIONS SHARED WITH CONFIGURE 32383 32384_LT_EOF 32385 32386 case $host_os in 32387 aix3*) 32388 cat <<\_LT_EOF >> "$cfgfile" 32389# AIX sometimes has problems with the GCC collect2 program. For some 32390# reason, if we set the COLLECT_NAMES environment variable, the problems 32391# vanish in a puff of smoke. 32392if test set != "${COLLECT_NAMES+set}"; then 32393 COLLECT_NAMES= 32394 export COLLECT_NAMES 32395fi 32396_LT_EOF 32397 ;; 32398 esac 32399 32400 32401ltmain=$ac_aux_dir/ltmain.sh 32402 32403 32404 # We use sed instead of cat because bash on DJGPP gets confused if 32405 # if finds mixed CR/LF and LF-only lines. Since sed operates in 32406 # text mode, it properly converts lines to CR/LF. This bash problem 32407 # is reportedly fixed, but why not run on old versions too? 32408 sed '$q' "$ltmain" >> "$cfgfile" \ 32409 || (rm -f "$cfgfile"; exit 1) 32410 32411 mv -f "$cfgfile" "$ofile" || 32412 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 32413 chmod +x "$ofile" 32414 32415 ;; 32416 "default":C) 32417# Commands run at the end of config.status: 32418for i in $APR_SAVE_HEADERS; do 32419 if cmp -s $i $i.save 2>/dev/null; then 32420 mv $i.save $i 32421 { $as_echo "$as_me:${as_lineno-$LINENO}: $i is unchanged" >&5 32422$as_echo "$as_me: $i is unchanged" >&6;} 32423 fi 32424 rm -f $i.save 32425done 32426chmod +x apr-$APR_MAJOR_VERSION-config 32427 ;; 32428 32429 esac 32430done # for ac_tag 32431 32432 32433as_fn_exit 0 32434_ACEOF 32435ac_clean_files=$ac_clean_files_save 32436 32437test $ac_write_fail = 0 || 32438 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 32439 32440 32441# configure is writing to config.log, and then calls config.status. 32442# config.status does its own redirection, appending to config.log. 32443# Unfortunately, on DOS this fails, as config.log is still kept open 32444# by configure, so config.status won't be able to write to it; its 32445# output is simply discarded. So we exec the FD to /dev/null, 32446# effectively closing config.log, so it can be properly (re)opened and 32447# appended to by config.status. When coming back to configure, we 32448# need to make the FD available again. 32449if test "$no_create" != yes; then 32450 ac_cs_success=: 32451 ac_config_status_args= 32452 test "$silent" = yes && 32453 ac_config_status_args="$ac_config_status_args --quiet" 32454 exec 5>/dev/null 32455 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 32456 exec 5>>config.log 32457 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 32458 # would make configure fail if this is the last instruction. 32459 $ac_cs_success || as_fn_exit 1 32460fi 32461if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 32462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 32463$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 32464fi 32465 32466