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 if (eval "$as_required") 2>/dev/null; then : 201 as_have_required=yes 202else 203 as_have_required=no 204fi 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206 207else 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209as_found=false 210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211do 212 IFS=$as_save_IFS 213 test -z "$as_dir" && as_dir=. 214 as_found=: 215 case $as_dir in #( 216 /*) 217 for as_base in sh bash ksh sh5; do 218 # Try only shells that exist, to save several forks. 219 as_shell=$as_dir/$as_base 220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 222 CONFIG_SHELL=$as_shell as_have_required=yes 223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 break 2 225fi 226fi 227 done;; 228 esac 229 as_found=false 230done 231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 233 CONFIG_SHELL=$SHELL as_have_required=yes 234fi; } 235IFS=$as_save_IFS 236 237 238 if test "x$CONFIG_SHELL" != x; then : 239 export CONFIG_SHELL 240 # We cannot yet assume a decent shell, so we have to provide a 241# neutralization value for shells without unset; and this also 242# works around shells that cannot unset nonexistent variables. 243# Preserve -v and -x to the replacement shell. 244BASH_ENV=/dev/null 245ENV=/dev/null 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247case $- in # (((( 248 *v*x* | *x*v* ) as_opts=-vx ;; 249 *v* ) as_opts=-v ;; 250 *x* ) as_opts=-x ;; 251 * ) as_opts= ;; 252esac 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254# Admittedly, this is quite paranoid, since all the known shells bail 255# out after a failed `exec'. 256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 257exit 255 258fi 259 260 if test x$as_have_required = xno; then : 261 $as_echo "$0: This script requires a shell more modern than all" 262 $as_echo "$0: the shells that I found on your system." 263 if test x${ZSH_VERSION+set} = xset ; then 264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266 else 267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 268$0: including any error possibly output before this 269$0: message. Then install a modern shell, or manually run 270$0: the script under such a shell if you do have one." 271 fi 272 exit 1 273fi 274fi 275fi 276SHELL=${CONFIG_SHELL-/bin/sh} 277export SHELL 278# Unset more variables known to interfere with behavior of common tools. 279CLICOLOR_FORCE= GREP_OPTIONS= 280unset CLICOLOR_FORCE GREP_OPTIONS 281 282## --------------------- ## 283## M4sh Shell Functions. ## 284## --------------------- ## 285# as_fn_unset VAR 286# --------------- 287# Portably unset VAR. 288as_fn_unset () 289{ 290 { eval $1=; unset $1;} 291} 292as_unset=as_fn_unset 293 294# as_fn_set_status STATUS 295# ----------------------- 296# Set $? to STATUS, without forking. 297as_fn_set_status () 298{ 299 return $1 300} # as_fn_set_status 301 302# as_fn_exit STATUS 303# ----------------- 304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 305as_fn_exit () 306{ 307 set +e 308 as_fn_set_status $1 309 exit $1 310} # as_fn_exit 311 312# as_fn_mkdir_p 313# ------------- 314# Create "$as_dir" as a directory, including parents if necessary. 315as_fn_mkdir_p () 316{ 317 318 case $as_dir in #( 319 -*) as_dir=./$as_dir;; 320 esac 321 test -d "$as_dir" || eval $as_mkdir_p || { 322 as_dirs= 323 while :; do 324 case $as_dir in #( 325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 326 *) as_qdir=$as_dir;; 327 esac 328 as_dirs="'$as_qdir' $as_dirs" 329 as_dir=`$as_dirname -- "$as_dir" || 330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 331 X"$as_dir" : 'X\(//\)[^/]' \| \ 332 X"$as_dir" : 'X\(//\)$' \| \ 333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 334$as_echo X"$as_dir" | 335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 336 s//\1/ 337 q 338 } 339 /^X\(\/\/\)[^/].*/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\).*/{ 348 s//\1/ 349 q 350 } 351 s/.*/./; q'` 352 test -d "$as_dir" && break 353 done 354 test -z "$as_dirs" || eval "mkdir $as_dirs" 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 356 357 358} # as_fn_mkdir_p 359 360# as_fn_executable_p FILE 361# ----------------------- 362# Test if FILE is an executable regular file. 363as_fn_executable_p () 364{ 365 test -f "$1" && test -x "$1" 366} # as_fn_executable_p 367# as_fn_append VAR VALUE 368# ---------------------- 369# Append the text in VALUE to the end of the definition contained in VAR. Take 370# advantage of any shell optimizations that allow amortized linear growth over 371# repeated appends, instead of the typical quadratic growth present in naive 372# implementations. 373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 374 eval 'as_fn_append () 375 { 376 eval $1+=\$2 377 }' 378else 379 as_fn_append () 380 { 381 eval $1=\$$1\$2 382 } 383fi # as_fn_append 384 385# as_fn_arith ARG... 386# ------------------ 387# Perform arithmetic evaluation on the ARGs, and store the result in the 388# global $as_val. Take advantage of shells that can avoid forks. The arguments 389# must be portable across $(()) and expr. 390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391 eval 'as_fn_arith () 392 { 393 as_val=$(( $* )) 394 }' 395else 396 as_fn_arith () 397 { 398 as_val=`expr "$@" || test $? -eq 1` 399 } 400fi # as_fn_arith 401 402 403# as_fn_error STATUS ERROR [LINENO LOG_FD] 404# ---------------------------------------- 405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 407# script with STATUS, using 1 if that was 0. 408as_fn_error () 409{ 410 as_status=$1; test $as_status -eq 0 && as_status=1 411 if test "$4"; then 412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 414 fi 415 $as_echo "$as_me: error: $2" >&2 416 as_fn_exit $as_status 417} # as_fn_error 418 419if expr a : '\(a\)' >/dev/null 2>&1 && 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 421 as_expr=expr 422else 423 as_expr=false 424fi 425 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427 as_basename=basename 428else 429 as_basename=false 430fi 431 432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433 as_dirname=dirname 434else 435 as_dirname=false 436fi 437 438as_me=`$as_basename -- "$0" || 439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 440 X"$0" : 'X\(//\)$' \| \ 441 X"$0" : 'X\(/\)' \| . 2>/dev/null || 442$as_echo X/"$0" | 443 sed '/^.*\/\([^/][^/]*\)\/*$/{ 444 s//\1/ 445 q 446 } 447 /^X\/\(\/\/\)$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\).*/{ 452 s//\1/ 453 q 454 } 455 s/.*/./; q'` 456 457# Avoid depending upon Character Ranges. 458as_cr_letters='abcdefghijklmnopqrstuvwxyz' 459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460as_cr_Letters=$as_cr_letters$as_cr_LETTERS 461as_cr_digits='0123456789' 462as_cr_alnum=$as_cr_Letters$as_cr_digits 463 464 465 as_lineno_1=$LINENO as_lineno_1a=$LINENO 466 as_lineno_2=$LINENO as_lineno_2a=$LINENO 467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 470 sed -n ' 471 p 472 /[$]LINENO/= 473 ' <$as_myself | 474 sed ' 475 s/[$]LINENO.*/&-/ 476 t lineno 477 b 478 :lineno 479 N 480 :loop 481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 482 t loop 483 s/-\n.*// 484 ' >$as_me.lineno && 485 chmod +x "$as_me.lineno" || 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 487 488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 489 # already done that, so ensure we don't try to do so again and fall 490 # in an infinite loop. This has already happened in practice. 491 _as_can_reexec=no; export _as_can_reexec 492 # Don't try to exec as it changes $[0], causing all sort of problems 493 # (the dirname of $[0] is not the place where we might find the 494 # original and so on. Autoconf is especially sensitive to this). 495 . "./$as_me.lineno" 496 # Exit status is that of the last command. 497 exit 498} 499 500ECHO_C= ECHO_N= ECHO_T= 501case `echo -n x` in #((((( 502-n*) 503 case `echo 'xy\c'` in 504 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 505 xy) ECHO_C='\c';; 506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 507 ECHO_T=' ';; 508 esac;; 509*) 510 ECHO_N='-n';; 511esac 512 513rm -f conf$$ conf$$.exe conf$$.file 514if test -d conf$$.dir; then 515 rm -f conf$$.dir/conf$$.file 516else 517 rm -f conf$$.dir 518 mkdir conf$$.dir 2>/dev/null 519fi 520if (echo >conf$$.file) 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then 522 as_ln_s='ln -s' 523 # ... but there are two gotchas: 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 526 # In both cases, we have to default to `cp -pR'. 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 528 as_ln_s='cp -pR' 529 elif ln conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s=ln 531 else 532 as_ln_s='cp -pR' 533 fi 534else 535 as_ln_s='cp -pR' 536fi 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538rmdir conf$$.dir 2>/dev/null 539 540if mkdir -p . 2>/dev/null; then 541 as_mkdir_p='mkdir -p "$as_dir"' 542else 543 test -d ./-p && rmdir ./-p 544 as_mkdir_p=false 545fi 546 547as_test_x='test -x' 548as_executable_p=as_fn_executable_p 549 550# Sed expression to map a string onto a valid CPP name. 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 552 553# Sed expression to map a string onto a valid variable name. 554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555 556 557test -n "$DJDIR" || exec 7<&0 </dev/null 558exec 6>&1 559 560# Name of the host. 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 562# so uname gets run too. 563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 564 565# 566# Initializations. 567# 568ac_default_prefix=/usr/local 569ac_clean_files= 570ac_config_libobj_dir=. 571LIBOBJS= 572cross_compiling=no 573subdirs= 574MFLAGS= 575MAKEFLAGS= 576 577# Identity of this package. 578PACKAGE_NAME= 579PACKAGE_TARNAME= 580PACKAGE_VERSION= 581PACKAGE_STRING= 582PACKAGE_BUGREPORT= 583PACKAGE_URL= 584 585ac_unique_file="export_vars.sh.in" 586# Factoring default headers for most tests. 587ac_includes_default="\ 588#include <stdio.h> 589#ifdef HAVE_SYS_TYPES_H 590# include <sys/types.h> 591#endif 592#ifdef HAVE_SYS_STAT_H 593# include <sys/stat.h> 594#endif 595#ifdef STDC_HEADERS 596# include <stdlib.h> 597# include <stddef.h> 598#else 599# ifdef HAVE_STDLIB_H 600# include <stdlib.h> 601# endif 602#endif 603#ifdef HAVE_STRING_H 604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 605# include <memory.h> 606# endif 607# include <string.h> 608#endif 609#ifdef HAVE_STRINGS_H 610# include <strings.h> 611#endif 612#ifdef HAVE_INTTYPES_H 613# include <inttypes.h> 614#endif 615#ifdef HAVE_STDINT_H 616# include <stdint.h> 617#endif 618#ifdef HAVE_UNISTD_H 619# include <unistd.h> 620#endif" 621 622ac_subst_vars='LTLIBOBJS 623LIBOBJS 624INCLUDE_OUTPUTS 625INCLUDE_RULES 626APRUTIL_LIBS 627APRUTIL_LDFLAGS 628APRUTIL_INCLUDES 629APRUTIL_PRIV_INCLUDES 630APRUTIL_EXPORT_LIBS 631EXTRA_OBJECTS 632APU_MODULES 633APU_DSO_LIBDIR 634APU_HAVE_MODULES 635APRUTIL_LIBNAME 636lib_target 637so_ext 638have_apr_iconv 639have_iconv 640apu_dbd_tests 641LDADD_dbd_odbc 642apu_have_odbc 643ODBC_CONFIG 644LDADD_dbd_oracle 645apu_have_oracle 646LDADD_dbd_sqlite2 647apu_have_sqlite2 648LDADD_dbd_sqlite3 649apu_have_sqlite3 650LDADD_dbd_mysql 651apu_have_mysql 652MYSQL_CONFIG 653LDADD_dbd_pgsql 654apu_have_pgsql 655PGSQL_CONFIG 656LDADD_dbm_ndbm 657LDADD_dbm_gdbm 658LDADD_dbm_db 659apu_db_version 660apu_db_header 661apu_have_db 662apu_have_ndbm 663apu_have_gdbm 664apu_have_sdbm 665apu_use_db 666apu_use_ndbm 667apu_use_gdbm 668apu_use_sdbm 669LDADD_ldap 670apu_has_ldap_other 671apu_has_ldap_zos 672apu_has_ldap_tivoli 673apu_has_ldap_mozilla 674apu_has_ldap_netscape 675apu_has_ldap_microsoft 676apu_has_ldap_novell 677apu_has_ldap_solaris 678apu_has_ldap_openldap 679apu_has_ldap 680apu_has_ldapssl_install_routines 681apu_has_ldap_sslinit 682apu_has_ldapssl_init 683apu_has_ldap_start_tls_s 684apu_has_ldapssl_add_trusted_cert 685apu_has_ldapssl_client_deinit 686apu_has_ldapssl_client_init 687ldap_ssl_h 688lber_h 689ldap_h 690LDADD_crypto_commoncrypto 691apu_have_commoncrypto 692LDADD_crypto_nss 693apu_have_nss 694PKG_CONFIG 695apu_have_crypto 696LDADD_crypto_openssl 697apu_have_openssl 698EGREP 699GREP 700CPP 701APR_ICONV_DIR 702apr_shlibpath_var 703APR_BUILD_DIR 704APR_LIBS 705APR_INCLUDES 706OBJEXT 707EXEEXT 708ac_ct_CC 709CPPFLAGS 710LDFLAGS 711CFLAGS 712CC 713APU_LTVERSION 714APRUTIL_MAJOR_VERSION 715APRUTIL_DOTTED_VERSION 716abs_builddir 717abs_srcdir 718top_builddir 719LT_NO_INSTALL 720INSTALL_DATA 721INSTALL_SCRIPT 722INSTALL_PROGRAM 723target_os 724target_vendor 725target_cpu 726target 727host_os 728host_vendor 729host_cpu 730host 731build_os 732build_vendor 733build_cpu 734build 735APU_CONFIG_LOCATION 736target_alias 737host_alias 738build_alias 739LIBS 740ECHO_T 741ECHO_N 742ECHO_C 743DEFS 744mandir 745localedir 746libdir 747psdir 748pdfdir 749dvidir 750htmldir 751infodir 752docdir 753oldincludedir 754includedir 755localstatedir 756sharedstatedir 757sysconfdir 758datadir 759datarootdir 760libexecdir 761sbindir 762bindir 763program_transform_name 764prefix 765exec_prefix 766PACKAGE_URL 767PACKAGE_BUGREPORT 768PACKAGE_STRING 769PACKAGE_VERSION 770PACKAGE_TARNAME 771PACKAGE_NAME 772PATH_SEPARATOR 773SHELL' 774ac_subst_files='' 775ac_user_opts=' 776enable_option_checking 777enable_layout 778with_apr 779with_apr_iconv 780with_crypto 781with_openssl 782with_nss 783with_commoncrypto 784with_lber 785with_ldap_include 786with_ldap_lib 787with_ldap 788with_dbm 789with_gdbm 790with_ndbm 791with_berkeley_db 792with_pgsql 793with_mysql 794with_sqlite3 795with_sqlite2 796with_oracle_include 797with_oracle 798with_odbc 799with_expat 800with_iconv 801enable_util_dso 802' 803 ac_precious_vars='build_alias 804host_alias 805target_alias 806CC 807CFLAGS 808LDFLAGS 809LIBS 810CPPFLAGS 811CPP' 812 813 814# Initialize some variables set by options. 815ac_init_help= 816ac_init_version=false 817ac_unrecognized_opts= 818ac_unrecognized_sep= 819# The variables have the same names as the options, with 820# dashes changed to underlines. 821cache_file=/dev/null 822exec_prefix=NONE 823no_create= 824no_recursion= 825prefix=NONE 826program_prefix=NONE 827program_suffix=NONE 828program_transform_name=s,x,x, 829silent= 830site= 831srcdir= 832verbose= 833x_includes=NONE 834x_libraries=NONE 835 836# Installation directory options. 837# These are left unexpanded so users can "make install exec_prefix=/foo" 838# and all the variables that are supposed to be based on exec_prefix 839# by default will actually change. 840# Use braces instead of parens because sh, perl, etc. also accept them. 841# (The list follows the same order as the GNU Coding Standards.) 842bindir='${exec_prefix}/bin' 843sbindir='${exec_prefix}/sbin' 844libexecdir='${exec_prefix}/libexec' 845datarootdir='${prefix}/share' 846datadir='${datarootdir}' 847sysconfdir='${prefix}/etc' 848sharedstatedir='${prefix}/com' 849localstatedir='${prefix}/var' 850includedir='${prefix}/include' 851oldincludedir='/usr/include' 852docdir='${datarootdir}/doc/${PACKAGE}' 853infodir='${datarootdir}/info' 854htmldir='${docdir}' 855dvidir='${docdir}' 856pdfdir='${docdir}' 857psdir='${docdir}' 858libdir='${exec_prefix}/lib' 859localedir='${datarootdir}/locale' 860mandir='${datarootdir}/man' 861 862ac_prev= 863ac_dashdash= 864for ac_option 865do 866 # If the previous option needs an argument, assign it. 867 if test -n "$ac_prev"; then 868 eval $ac_prev=\$ac_option 869 ac_prev= 870 continue 871 fi 872 873 case $ac_option in 874 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 875 *=) ac_optarg= ;; 876 *) ac_optarg=yes ;; 877 esac 878 879 # Accept the important Cygnus configure options, so we can diagnose typos. 880 881 case $ac_dashdash$ac_option in 882 --) 883 ac_dashdash=yes ;; 884 885 -bindir | --bindir | --bindi | --bind | --bin | --bi) 886 ac_prev=bindir ;; 887 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 888 bindir=$ac_optarg ;; 889 890 -build | --build | --buil | --bui | --bu) 891 ac_prev=build_alias ;; 892 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 893 build_alias=$ac_optarg ;; 894 895 -cache-file | --cache-file | --cache-fil | --cache-fi \ 896 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 897 ac_prev=cache_file ;; 898 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 899 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 900 cache_file=$ac_optarg ;; 901 902 --config-cache | -C) 903 cache_file=config.cache ;; 904 905 -datadir | --datadir | --datadi | --datad) 906 ac_prev=datadir ;; 907 -datadir=* | --datadir=* | --datadi=* | --datad=*) 908 datadir=$ac_optarg ;; 909 910 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 911 | --dataroo | --dataro | --datar) 912 ac_prev=datarootdir ;; 913 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 914 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 915 datarootdir=$ac_optarg ;; 916 917 -disable-* | --disable-*) 918 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 919 # Reject names that are not valid shell variable names. 920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 921 as_fn_error $? "invalid feature name: $ac_useropt" 922 ac_useropt_orig=$ac_useropt 923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 924 case $ac_user_opts in 925 *" 926"enable_$ac_useropt" 927"*) ;; 928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 929 ac_unrecognized_sep=', ';; 930 esac 931 eval enable_$ac_useropt=no ;; 932 933 -docdir | --docdir | --docdi | --doc | --do) 934 ac_prev=docdir ;; 935 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 936 docdir=$ac_optarg ;; 937 938 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 939 ac_prev=dvidir ;; 940 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 941 dvidir=$ac_optarg ;; 942 943 -enable-* | --enable-*) 944 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 945 # Reject names that are not valid shell variable names. 946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 947 as_fn_error $? "invalid feature name: $ac_useropt" 948 ac_useropt_orig=$ac_useropt 949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 950 case $ac_user_opts in 951 *" 952"enable_$ac_useropt" 953"*) ;; 954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 955 ac_unrecognized_sep=', ';; 956 esac 957 eval enable_$ac_useropt=\$ac_optarg ;; 958 959 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 960 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 961 | --exec | --exe | --ex) 962 ac_prev=exec_prefix ;; 963 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 964 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 965 | --exec=* | --exe=* | --ex=*) 966 exec_prefix=$ac_optarg ;; 967 968 -gas | --gas | --ga | --g) 969 # Obsolete; use --with-gas. 970 with_gas=yes ;; 971 972 -help | --help | --hel | --he | -h) 973 ac_init_help=long ;; 974 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 975 ac_init_help=recursive ;; 976 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 977 ac_init_help=short ;; 978 979 -host | --host | --hos | --ho) 980 ac_prev=host_alias ;; 981 -host=* | --host=* | --hos=* | --ho=*) 982 host_alias=$ac_optarg ;; 983 984 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 985 ac_prev=htmldir ;; 986 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 987 | --ht=*) 988 htmldir=$ac_optarg ;; 989 990 -includedir | --includedir | --includedi | --included | --include \ 991 | --includ | --inclu | --incl | --inc) 992 ac_prev=includedir ;; 993 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 994 | --includ=* | --inclu=* | --incl=* | --inc=*) 995 includedir=$ac_optarg ;; 996 997 -infodir | --infodir | --infodi | --infod | --info | --inf) 998 ac_prev=infodir ;; 999 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1000 infodir=$ac_optarg ;; 1001 1002 -libdir | --libdir | --libdi | --libd) 1003 ac_prev=libdir ;; 1004 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1005 libdir=$ac_optarg ;; 1006 1007 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1008 | --libexe | --libex | --libe) 1009 ac_prev=libexecdir ;; 1010 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1011 | --libexe=* | --libex=* | --libe=*) 1012 libexecdir=$ac_optarg ;; 1013 1014 -localedir | --localedir | --localedi | --localed | --locale) 1015 ac_prev=localedir ;; 1016 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1017 localedir=$ac_optarg ;; 1018 1019 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1020 | --localstate | --localstat | --localsta | --localst | --locals) 1021 ac_prev=localstatedir ;; 1022 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1023 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1024 localstatedir=$ac_optarg ;; 1025 1026 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1027 ac_prev=mandir ;; 1028 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1029 mandir=$ac_optarg ;; 1030 1031 -nfp | --nfp | --nf) 1032 # Obsolete; use --without-fp. 1033 with_fp=no ;; 1034 1035 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1036 | --no-cr | --no-c | -n) 1037 no_create=yes ;; 1038 1039 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1040 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1041 no_recursion=yes ;; 1042 1043 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1044 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1045 | --oldin | --oldi | --old | --ol | --o) 1046 ac_prev=oldincludedir ;; 1047 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1048 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1049 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1050 oldincludedir=$ac_optarg ;; 1051 1052 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1053 ac_prev=prefix ;; 1054 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1055 prefix=$ac_optarg ;; 1056 1057 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1058 | --program-pre | --program-pr | --program-p) 1059 ac_prev=program_prefix ;; 1060 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1061 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1062 program_prefix=$ac_optarg ;; 1063 1064 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1065 | --program-suf | --program-su | --program-s) 1066 ac_prev=program_suffix ;; 1067 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1068 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1069 program_suffix=$ac_optarg ;; 1070 1071 -program-transform-name | --program-transform-name \ 1072 | --program-transform-nam | --program-transform-na \ 1073 | --program-transform-n | --program-transform- \ 1074 | --program-transform | --program-transfor \ 1075 | --program-transfo | --program-transf \ 1076 | --program-trans | --program-tran \ 1077 | --progr-tra | --program-tr | --program-t) 1078 ac_prev=program_transform_name ;; 1079 -program-transform-name=* | --program-transform-name=* \ 1080 | --program-transform-nam=* | --program-transform-na=* \ 1081 | --program-transform-n=* | --program-transform-=* \ 1082 | --program-transform=* | --program-transfor=* \ 1083 | --program-transfo=* | --program-transf=* \ 1084 | --program-trans=* | --program-tran=* \ 1085 | --progr-tra=* | --program-tr=* | --program-t=*) 1086 program_transform_name=$ac_optarg ;; 1087 1088 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1089 ac_prev=pdfdir ;; 1090 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1091 pdfdir=$ac_optarg ;; 1092 1093 -psdir | --psdir | --psdi | --psd | --ps) 1094 ac_prev=psdir ;; 1095 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1096 psdir=$ac_optarg ;; 1097 1098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1099 | -silent | --silent | --silen | --sile | --sil) 1100 silent=yes ;; 1101 1102 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1103 ac_prev=sbindir ;; 1104 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1105 | --sbi=* | --sb=*) 1106 sbindir=$ac_optarg ;; 1107 1108 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1109 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1110 | --sharedst | --shareds | --shared | --share | --shar \ 1111 | --sha | --sh) 1112 ac_prev=sharedstatedir ;; 1113 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1114 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1115 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1116 | --sha=* | --sh=*) 1117 sharedstatedir=$ac_optarg ;; 1118 1119 -site | --site | --sit) 1120 ac_prev=site ;; 1121 -site=* | --site=* | --sit=*) 1122 site=$ac_optarg ;; 1123 1124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1125 ac_prev=srcdir ;; 1126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1127 srcdir=$ac_optarg ;; 1128 1129 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1130 | --syscon | --sysco | --sysc | --sys | --sy) 1131 ac_prev=sysconfdir ;; 1132 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1133 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1134 sysconfdir=$ac_optarg ;; 1135 1136 -target | --target | --targe | --targ | --tar | --ta | --t) 1137 ac_prev=target_alias ;; 1138 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1139 target_alias=$ac_optarg ;; 1140 1141 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1142 verbose=yes ;; 1143 1144 -version | --version | --versio | --versi | --vers | -V) 1145 ac_init_version=: ;; 1146 1147 -with-* | --with-*) 1148 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1149 # Reject names that are not valid shell variable names. 1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1151 as_fn_error $? "invalid package name: $ac_useropt" 1152 ac_useropt_orig=$ac_useropt 1153 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1154 case $ac_user_opts in 1155 *" 1156"with_$ac_useropt" 1157"*) ;; 1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1159 ac_unrecognized_sep=', ';; 1160 esac 1161 eval with_$ac_useropt=\$ac_optarg ;; 1162 1163 -without-* | --without-*) 1164 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1165 # Reject names that are not valid shell variable names. 1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1167 as_fn_error $? "invalid package name: $ac_useropt" 1168 ac_useropt_orig=$ac_useropt 1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1170 case $ac_user_opts in 1171 *" 1172"with_$ac_useropt" 1173"*) ;; 1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1175 ac_unrecognized_sep=', ';; 1176 esac 1177 eval with_$ac_useropt=no ;; 1178 1179 --x) 1180 # Obsolete; use --with-x. 1181 with_x=yes ;; 1182 1183 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1184 | --x-incl | --x-inc | --x-in | --x-i) 1185 ac_prev=x_includes ;; 1186 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1187 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1188 x_includes=$ac_optarg ;; 1189 1190 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1191 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1192 ac_prev=x_libraries ;; 1193 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1194 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1195 x_libraries=$ac_optarg ;; 1196 1197 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1198Try \`$0 --help' for more information" 1199 ;; 1200 1201 *=*) 1202 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1203 # Reject names that are not valid shell variable names. 1204 case $ac_envvar in #( 1205 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1206 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1207 esac 1208 eval $ac_envvar=\$ac_optarg 1209 export $ac_envvar ;; 1210 1211 *) 1212 # FIXME: should be removed in autoconf 3.0. 1213 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1214 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1215 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1216 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1217 ;; 1218 1219 esac 1220done 1221 1222if test -n "$ac_prev"; then 1223 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1224 as_fn_error $? "missing argument to $ac_option" 1225fi 1226 1227if test -n "$ac_unrecognized_opts"; then 1228 case $enable_option_checking in 1229 no) ;; 1230 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1231 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1232 esac 1233fi 1234 1235# Check all directory arguments for consistency. 1236for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1237 datadir sysconfdir sharedstatedir localstatedir includedir \ 1238 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1239 libdir localedir mandir 1240do 1241 eval ac_val=\$$ac_var 1242 # Remove trailing slashes. 1243 case $ac_val in 1244 */ ) 1245 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1246 eval $ac_var=\$ac_val;; 1247 esac 1248 # Be sure to have absolute directory names. 1249 case $ac_val in 1250 [\\/$]* | ?:[\\/]* ) continue;; 1251 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1252 esac 1253 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1254done 1255 1256# There might be people who depend on the old broken behavior: `$host' 1257# used to hold the argument of --host etc. 1258# FIXME: To remove some day. 1259build=$build_alias 1260host=$host_alias 1261target=$target_alias 1262 1263# FIXME: To remove some day. 1264if test "x$host_alias" != x; then 1265 if test "x$build_alias" = x; then 1266 cross_compiling=maybe 1267 elif test "x$build_alias" != "x$host_alias"; then 1268 cross_compiling=yes 1269 fi 1270fi 1271 1272ac_tool_prefix= 1273test -n "$host_alias" && ac_tool_prefix=$host_alias- 1274 1275test "$silent" = yes && exec 6>/dev/null 1276 1277 1278ac_pwd=`pwd` && test -n "$ac_pwd" && 1279ac_ls_di=`ls -di .` && 1280ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1281 as_fn_error $? "working directory cannot be determined" 1282test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1283 as_fn_error $? "pwd does not report name of working directory" 1284 1285 1286# Find the source files, if location was not specified. 1287if test -z "$srcdir"; then 1288 ac_srcdir_defaulted=yes 1289 # Try the directory containing this script, then the parent directory. 1290 ac_confdir=`$as_dirname -- "$as_myself" || 1291$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1292 X"$as_myself" : 'X\(//\)[^/]' \| \ 1293 X"$as_myself" : 'X\(//\)$' \| \ 1294 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1295$as_echo X"$as_myself" | 1296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1297 s//\1/ 1298 q 1299 } 1300 /^X\(\/\/\)[^/].*/{ 1301 s//\1/ 1302 q 1303 } 1304 /^X\(\/\/\)$/{ 1305 s//\1/ 1306 q 1307 } 1308 /^X\(\/\).*/{ 1309 s//\1/ 1310 q 1311 } 1312 s/.*/./; q'` 1313 srcdir=$ac_confdir 1314 if test ! -r "$srcdir/$ac_unique_file"; then 1315 srcdir=.. 1316 fi 1317else 1318 ac_srcdir_defaulted=no 1319fi 1320if test ! -r "$srcdir/$ac_unique_file"; then 1321 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1322 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1323fi 1324ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1325ac_abs_confdir=`( 1326 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1327 pwd)` 1328# When building in place, set srcdir=. 1329if test "$ac_abs_confdir" = "$ac_pwd"; then 1330 srcdir=. 1331fi 1332# Remove unnecessary trailing slashes from srcdir. 1333# Double slashes in file names in object file debugging info 1334# mess up M-x gdb in Emacs. 1335case $srcdir in 1336*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1337esac 1338for ac_var in $ac_precious_vars; do 1339 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1340 eval ac_env_${ac_var}_value=\$${ac_var} 1341 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1342 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1343done 1344 1345# 1346# Report the --help message. 1347# 1348if test "$ac_init_help" = "long"; then 1349 # Omit some internal or obsolete options to make the list less imposing. 1350 # This message is too long to be a string in the A/UX 3.1 sh. 1351 cat <<_ACEOF 1352\`configure' configures this package to adapt to many kinds of systems. 1353 1354Usage: $0 [OPTION]... [VAR=VALUE]... 1355 1356To assign environment variables (e.g., CC, CFLAGS...), specify them as 1357VAR=VALUE. See below for descriptions of some of the useful variables. 1358 1359Defaults for the options are specified in brackets. 1360 1361Configuration: 1362 -h, --help display this help and exit 1363 --help=short display options specific to this package 1364 --help=recursive display the short help of all the included packages 1365 -V, --version display version information and exit 1366 -q, --quiet, --silent do not print \`checking ...' messages 1367 --cache-file=FILE cache test results in FILE [disabled] 1368 -C, --config-cache alias for \`--cache-file=config.cache' 1369 -n, --no-create do not create output files 1370 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1371 1372Installation directories: 1373 --prefix=PREFIX install architecture-independent files in PREFIX 1374 [$ac_default_prefix] 1375 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1376 [PREFIX] 1377 1378By default, \`make install' will install all the files in 1379\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1380an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1381for instance \`--prefix=\$HOME'. 1382 1383For better control, use the options below. 1384 1385Fine tuning of the installation directories: 1386 --bindir=DIR user executables [EPREFIX/bin] 1387 --sbindir=DIR system admin executables [EPREFIX/sbin] 1388 --libexecdir=DIR program executables [EPREFIX/libexec] 1389 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1390 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1391 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1392 --libdir=DIR object code libraries [EPREFIX/lib] 1393 --includedir=DIR C header files [PREFIX/include] 1394 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1395 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1396 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1397 --infodir=DIR info documentation [DATAROOTDIR/info] 1398 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1399 --mandir=DIR man documentation [DATAROOTDIR/man] 1400 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1401 --htmldir=DIR html documentation [DOCDIR] 1402 --dvidir=DIR dvi documentation [DOCDIR] 1403 --pdfdir=DIR pdf documentation [DOCDIR] 1404 --psdir=DIR ps documentation [DOCDIR] 1405_ACEOF 1406 1407 cat <<\_ACEOF 1408 1409System types: 1410 --build=BUILD configure for building on BUILD [guessed] 1411 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1412 --target=TARGET configure for building compilers for TARGET [HOST] 1413_ACEOF 1414fi 1415 1416if test -n "$ac_init_help"; then 1417 1418 cat <<\_ACEOF 1419 1420Optional Features: 1421 --disable-option-checking ignore unrecognized --enable/--with options 1422 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1423 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1424 --enable-layout=LAYOUT 1425 --disable-util-dso disable DSO build of modular components (crypto, 1426 dbd, dbm, ldap) 1427 1428Optional Packages: 1429 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1430 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1431 --with-apr=PATH prefix for installed APR or the full path to 1432 apr-config 1433 --with-apr-iconv=DIR relative path to apr-iconv source 1434 --with-crypto enable crypto support 1435 --with-openssl=DIR specify location of OpenSSL 1436 --with-nss=DIR specify location of NSS 1437 --with-commoncrypto=DIR specify location of CommonCrypto 1438 --with-lber=library lber library to use 1439 --with-ldap-include=path path to ldap include files with trailing slash 1440 --with-ldap-lib=path path to ldap lib file 1441 --with-ldap=library ldap library to use 1442 --with-dbm=DBM choose the DBM type to use. 1443 DBM={sdbm,gdbm,ndbm,db,db1,db185,db2,db3,db4,db4X,db5X,db6X} 1444 for some X=0,...,9 1445 --with-gdbm=DIR enable GDBM support 1446 --with-ndbm=PATH Find the NDBM header and library in `PATH/include' 1447 and `PATH/lib'. If PATH is of the form `HEADER:LIB', 1448 then search for header files in HEADER, and the 1449 library in LIB. If you omit the `=PATH' part 1450 completely, the configure script will search for 1451 NDBM in a number of standard places. 1452 --with-berkeley-db=PATH Find the Berkeley DB header and library in 1453 `PATH/include' and `PATH/lib'. If PATH is of the 1454 form `HEADER:LIB', then search for header files in 1455 HEADER, and the library in LIB. If you omit the 1456 `=PATH' part completely, the configure script will 1457 search for Berkeley DB in a number of standard 1458 places. 1459 --with-pgsql=DIR specify PostgreSQL location 1460 --with-mysql=DIR enable MySQL DBD driver 1461 --with-sqlite3=DIR enable sqlite3 DBD driver 1462 --with-sqlite2=DIR enable sqlite2 DBD driver 1463 --with-oracle-include=DIR 1464 path to Oracle include files 1465 --with-oracle=DIR enable Oracle DBD driver; giving ORACLE_HOME as DIR 1466 --with-odbc=DIR specify ODBC location 1467 --with-expat=DIR specify Expat location 1468 --with-iconv=DIR path to iconv installation 1469 1470Some influential environment variables: 1471 CC C compiler command 1472 CFLAGS C compiler flags 1473 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1474 nonstandard directory <lib dir> 1475 LIBS libraries to pass to the linker, e.g. -l<library> 1476 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1477 you have headers in a nonstandard directory <include dir> 1478 CPP C preprocessor 1479 1480Use these variables to override the choices made by `configure' or to help 1481it to find libraries and programs with nonstandard names/locations. 1482 1483Report bugs to the package provider. 1484_ACEOF 1485ac_status=$? 1486fi 1487 1488if test "$ac_init_help" = "recursive"; then 1489 # If there are subdirs, report their specific --help. 1490 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1491 test -d "$ac_dir" || 1492 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1493 continue 1494 ac_builddir=. 1495 1496case "$ac_dir" in 1497.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1498*) 1499 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1500 # A ".." for each directory in $ac_dir_suffix. 1501 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1502 case $ac_top_builddir_sub in 1503 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1504 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1505 esac ;; 1506esac 1507ac_abs_top_builddir=$ac_pwd 1508ac_abs_builddir=$ac_pwd$ac_dir_suffix 1509# for backward compatibility: 1510ac_top_builddir=$ac_top_build_prefix 1511 1512case $srcdir in 1513 .) # We are building in place. 1514 ac_srcdir=. 1515 ac_top_srcdir=$ac_top_builddir_sub 1516 ac_abs_top_srcdir=$ac_pwd ;; 1517 [\\/]* | ?:[\\/]* ) # Absolute name. 1518 ac_srcdir=$srcdir$ac_dir_suffix; 1519 ac_top_srcdir=$srcdir 1520 ac_abs_top_srcdir=$srcdir ;; 1521 *) # Relative name. 1522 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1523 ac_top_srcdir=$ac_top_build_prefix$srcdir 1524 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1525esac 1526ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1527 1528 cd "$ac_dir" || { ac_status=$?; continue; } 1529 # Check for guested configure. 1530 if test -f "$ac_srcdir/configure.gnu"; then 1531 echo && 1532 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1533 elif test -f "$ac_srcdir/configure"; then 1534 echo && 1535 $SHELL "$ac_srcdir/configure" --help=recursive 1536 else 1537 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1538 fi || ac_status=$? 1539 cd "$ac_pwd" || { ac_status=$?; break; } 1540 done 1541fi 1542 1543test -n "$ac_init_help" && exit $ac_status 1544if $ac_init_version; then 1545 cat <<\_ACEOF 1546configure 1547generated by GNU Autoconf 2.69 1548 1549Copyright (C) 2012 Free Software Foundation, Inc. 1550This configure script is free software; the Free Software Foundation 1551gives unlimited permission to copy, distribute and modify it. 1552_ACEOF 1553 exit 1554fi 1555 1556## ------------------------ ## 1557## Autoconf initialization. ## 1558## ------------------------ ## 1559 1560# ac_fn_c_try_compile LINENO 1561# -------------------------- 1562# Try to compile conftest.$ac_ext, and return whether this succeeded. 1563ac_fn_c_try_compile () 1564{ 1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1566 rm -f conftest.$ac_objext 1567 if { { ac_try="$ac_compile" 1568case "(($ac_try" in 1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1570 *) ac_try_echo=$ac_try;; 1571esac 1572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1573$as_echo "$ac_try_echo"; } >&5 1574 (eval "$ac_compile") 2>conftest.err 1575 ac_status=$? 1576 if test -s conftest.err; then 1577 grep -v '^ *+' conftest.err >conftest.er1 1578 cat conftest.er1 >&5 1579 mv -f conftest.er1 conftest.err 1580 fi 1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1582 test $ac_status = 0; } && { 1583 test -z "$ac_c_werror_flag" || 1584 test ! -s conftest.err 1585 } && test -s conftest.$ac_objext; then : 1586 ac_retval=0 1587else 1588 $as_echo "$as_me: failed program was:" >&5 1589sed 's/^/| /' conftest.$ac_ext >&5 1590 1591 ac_retval=1 1592fi 1593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1594 as_fn_set_status $ac_retval 1595 1596} # ac_fn_c_try_compile 1597 1598# ac_fn_c_try_link LINENO 1599# ----------------------- 1600# Try to link conftest.$ac_ext, and return whether this succeeded. 1601ac_fn_c_try_link () 1602{ 1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1604 rm -f conftest.$ac_objext conftest$ac_exeext 1605 if { { ac_try="$ac_link" 1606case "(($ac_try" in 1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1608 *) ac_try_echo=$ac_try;; 1609esac 1610eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1611$as_echo "$ac_try_echo"; } >&5 1612 (eval "$ac_link") 2>conftest.err 1613 ac_status=$? 1614 if test -s conftest.err; then 1615 grep -v '^ *+' conftest.err >conftest.er1 1616 cat conftest.er1 >&5 1617 mv -f conftest.er1 conftest.err 1618 fi 1619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1620 test $ac_status = 0; } && { 1621 test -z "$ac_c_werror_flag" || 1622 test ! -s conftest.err 1623 } && test -s conftest$ac_exeext && { 1624 test "$cross_compiling" = yes || 1625 test -x conftest$ac_exeext 1626 }; then : 1627 ac_retval=0 1628else 1629 $as_echo "$as_me: failed program was:" >&5 1630sed 's/^/| /' conftest.$ac_ext >&5 1631 1632 ac_retval=1 1633fi 1634 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1635 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1636 # interfere with the next link command; also delete a directory that is 1637 # left behind by Apple's compiler. We do this before executing the actions. 1638 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1640 as_fn_set_status $ac_retval 1641 1642} # ac_fn_c_try_link 1643 1644# ac_fn_c_try_cpp LINENO 1645# ---------------------- 1646# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1647ac_fn_c_try_cpp () 1648{ 1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1650 if { { ac_try="$ac_cpp conftest.$ac_ext" 1651case "(($ac_try" in 1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1653 *) ac_try_echo=$ac_try;; 1654esac 1655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1656$as_echo "$ac_try_echo"; } >&5 1657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1658 ac_status=$? 1659 if test -s conftest.err; then 1660 grep -v '^ *+' conftest.err >conftest.er1 1661 cat conftest.er1 >&5 1662 mv -f conftest.er1 conftest.err 1663 fi 1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1665 test $ac_status = 0; } > conftest.i && { 1666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1667 test ! -s conftest.err 1668 }; then : 1669 ac_retval=0 1670else 1671 $as_echo "$as_me: failed program was:" >&5 1672sed 's/^/| /' conftest.$ac_ext >&5 1673 1674 ac_retval=1 1675fi 1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1677 as_fn_set_status $ac_retval 1678 1679} # ac_fn_c_try_cpp 1680 1681# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1682# ------------------------------------------------------- 1683# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1684# the include files in INCLUDES and setting the cache variable VAR 1685# accordingly. 1686ac_fn_c_check_header_mongrel () 1687{ 1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1689 if eval \${$3+:} false; then : 1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1691$as_echo_n "checking for $2... " >&6; } 1692if eval \${$3+:} false; then : 1693 $as_echo_n "(cached) " >&6 1694fi 1695eval ac_res=\$$3 1696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1697$as_echo "$ac_res" >&6; } 1698else 1699 # Is the header compilable? 1700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1701$as_echo_n "checking $2 usability... " >&6; } 1702cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1703/* end confdefs.h. */ 1704$4 1705#include <$2> 1706_ACEOF 1707if ac_fn_c_try_compile "$LINENO"; then : 1708 ac_header_compiler=yes 1709else 1710 ac_header_compiler=no 1711fi 1712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1714$as_echo "$ac_header_compiler" >&6; } 1715 1716# Is the header present? 1717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1718$as_echo_n "checking $2 presence... " >&6; } 1719cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1720/* end confdefs.h. */ 1721#include <$2> 1722_ACEOF 1723if ac_fn_c_try_cpp "$LINENO"; then : 1724 ac_header_preproc=yes 1725else 1726 ac_header_preproc=no 1727fi 1728rm -f conftest.err conftest.i conftest.$ac_ext 1729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1730$as_echo "$ac_header_preproc" >&6; } 1731 1732# So? What about this header? 1733case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1734 yes:no: ) 1735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1736$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1738$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1739 ;; 1740 no:yes:* ) 1741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1742$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1744$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1746$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1748$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1750$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1751 ;; 1752esac 1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1754$as_echo_n "checking for $2... " >&6; } 1755if eval \${$3+:} false; then : 1756 $as_echo_n "(cached) " >&6 1757else 1758 eval "$3=\$ac_header_compiler" 1759fi 1760eval ac_res=\$$3 1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1762$as_echo "$ac_res" >&6; } 1763fi 1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1765 1766} # ac_fn_c_check_header_mongrel 1767 1768# ac_fn_c_try_run LINENO 1769# ---------------------- 1770# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1771# that executables *can* be run. 1772ac_fn_c_try_run () 1773{ 1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1775 if { { ac_try="$ac_link" 1776case "(($ac_try" in 1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1778 *) ac_try_echo=$ac_try;; 1779esac 1780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1781$as_echo "$ac_try_echo"; } >&5 1782 (eval "$ac_link") 2>&5 1783 ac_status=$? 1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1785 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1786 { { case "(($ac_try" in 1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1788 *) ac_try_echo=$ac_try;; 1789esac 1790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1791$as_echo "$ac_try_echo"; } >&5 1792 (eval "$ac_try") 2>&5 1793 ac_status=$? 1794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1795 test $ac_status = 0; }; }; then : 1796 ac_retval=0 1797else 1798 $as_echo "$as_me: program exited with status $ac_status" >&5 1799 $as_echo "$as_me: failed program was:" >&5 1800sed 's/^/| /' conftest.$ac_ext >&5 1801 1802 ac_retval=$ac_status 1803fi 1804 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1806 as_fn_set_status $ac_retval 1807 1808} # ac_fn_c_try_run 1809 1810# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1811# ------------------------------------------------------- 1812# Tests whether HEADER exists and can be compiled using the include files in 1813# INCLUDES, setting the cache variable VAR accordingly. 1814ac_fn_c_check_header_compile () 1815{ 1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1818$as_echo_n "checking for $2... " >&6; } 1819if eval \${$3+:} false; then : 1820 $as_echo_n "(cached) " >&6 1821else 1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1823/* end confdefs.h. */ 1824$4 1825#include <$2> 1826_ACEOF 1827if ac_fn_c_try_compile "$LINENO"; then : 1828 eval "$3=yes" 1829else 1830 eval "$3=no" 1831fi 1832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1833fi 1834eval ac_res=\$$3 1835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1836$as_echo "$ac_res" >&6; } 1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1838 1839} # ac_fn_c_check_header_compile 1840 1841# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1842# --------------------------------------------- 1843# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1844# accordingly. 1845ac_fn_c_check_decl () 1846{ 1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1848 as_decl_name=`echo $2|sed 's/ *(.*//'` 1849 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1851$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1852if eval \${$3+:} false; then : 1853 $as_echo_n "(cached) " >&6 1854else 1855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1856/* end confdefs.h. */ 1857$4 1858int 1859main () 1860{ 1861#ifndef $as_decl_name 1862#ifdef __cplusplus 1863 (void) $as_decl_use; 1864#else 1865 (void) $as_decl_name; 1866#endif 1867#endif 1868 1869 ; 1870 return 0; 1871} 1872_ACEOF 1873if ac_fn_c_try_compile "$LINENO"; then : 1874 eval "$3=yes" 1875else 1876 eval "$3=no" 1877fi 1878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1879fi 1880eval ac_res=\$$3 1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1882$as_echo "$ac_res" >&6; } 1883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1884 1885} # ac_fn_c_check_decl 1886 1887# ac_fn_c_check_func LINENO FUNC VAR 1888# ---------------------------------- 1889# Tests whether FUNC exists, setting the cache variable VAR accordingly 1890ac_fn_c_check_func () 1891{ 1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1894$as_echo_n "checking for $2... " >&6; } 1895if eval \${$3+:} false; then : 1896 $as_echo_n "(cached) " >&6 1897else 1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1899/* end confdefs.h. */ 1900/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1901 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1902#define $2 innocuous_$2 1903 1904/* System header to define __stub macros and hopefully few prototypes, 1905 which can conflict with char $2 (); below. 1906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1907 <limits.h> exists even on freestanding compilers. */ 1908 1909#ifdef __STDC__ 1910# include <limits.h> 1911#else 1912# include <assert.h> 1913#endif 1914 1915#undef $2 1916 1917/* Override any GCC internal prototype to avoid an error. 1918 Use char because int might match the return type of a GCC 1919 builtin and then its argument prototype would still apply. */ 1920#ifdef __cplusplus 1921extern "C" 1922#endif 1923char $2 (); 1924/* The GNU C library defines this for functions which it implements 1925 to always fail with ENOSYS. Some functions are actually named 1926 something starting with __ and the normal name is an alias. */ 1927#if defined __stub_$2 || defined __stub___$2 1928choke me 1929#endif 1930 1931int 1932main () 1933{ 1934return $2 (); 1935 ; 1936 return 0; 1937} 1938_ACEOF 1939if ac_fn_c_try_link "$LINENO"; then : 1940 eval "$3=yes" 1941else 1942 eval "$3=no" 1943fi 1944rm -f core conftest.err conftest.$ac_objext \ 1945 conftest$ac_exeext conftest.$ac_ext 1946fi 1947eval ac_res=\$$3 1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1949$as_echo "$ac_res" >&6; } 1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1951 1952} # ac_fn_c_check_func 1953cat >config.log <<_ACEOF 1954This file contains any messages produced by compilers while 1955running configure, to aid debugging if configure makes a mistake. 1956 1957It was created by $as_me, which was 1958generated by GNU Autoconf 2.69. Invocation command line was 1959 1960 $ $0 $@ 1961 1962_ACEOF 1963exec 5>>config.log 1964{ 1965cat <<_ASUNAME 1966## --------- ## 1967## Platform. ## 1968## --------- ## 1969 1970hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1971uname -m = `(uname -m) 2>/dev/null || echo unknown` 1972uname -r = `(uname -r) 2>/dev/null || echo unknown` 1973uname -s = `(uname -s) 2>/dev/null || echo unknown` 1974uname -v = `(uname -v) 2>/dev/null || echo unknown` 1975 1976/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1977/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1978 1979/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1980/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1981/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1982/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1983/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1984/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1985/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1986 1987_ASUNAME 1988 1989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1990for as_dir in $PATH 1991do 1992 IFS=$as_save_IFS 1993 test -z "$as_dir" && as_dir=. 1994 $as_echo "PATH: $as_dir" 1995 done 1996IFS=$as_save_IFS 1997 1998} >&5 1999 2000cat >&5 <<_ACEOF 2001 2002 2003## ----------- ## 2004## Core tests. ## 2005## ----------- ## 2006 2007_ACEOF 2008 2009 2010# Keep a trace of the command line. 2011# Strip out --no-create and --no-recursion so they do not pile up. 2012# Strip out --silent because we don't want to record it for future runs. 2013# Also quote any args containing shell meta-characters. 2014# Make two passes to allow for proper duplicate-argument suppression. 2015ac_configure_args= 2016ac_configure_args0= 2017ac_configure_args1= 2018ac_must_keep_next=false 2019for ac_pass in 1 2 2020do 2021 for ac_arg 2022 do 2023 case $ac_arg in 2024 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2025 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2026 | -silent | --silent | --silen | --sile | --sil) 2027 continue ;; 2028 *\'*) 2029 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2030 esac 2031 case $ac_pass in 2032 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2033 2) 2034 as_fn_append ac_configure_args1 " '$ac_arg'" 2035 if test $ac_must_keep_next = true; then 2036 ac_must_keep_next=false # Got value, back to normal. 2037 else 2038 case $ac_arg in 2039 *=* | --config-cache | -C | -disable-* | --disable-* \ 2040 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2041 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2042 | -with-* | --with-* | -without-* | --without-* | --x) 2043 case "$ac_configure_args0 " in 2044 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2045 esac 2046 ;; 2047 -* ) ac_must_keep_next=true ;; 2048 esac 2049 fi 2050 as_fn_append ac_configure_args " '$ac_arg'" 2051 ;; 2052 esac 2053 done 2054done 2055{ ac_configure_args0=; unset ac_configure_args0;} 2056{ ac_configure_args1=; unset ac_configure_args1;} 2057 2058# When interrupted or exit'd, cleanup temporary files, and complete 2059# config.log. We remove comments because anyway the quotes in there 2060# would cause problems or look ugly. 2061# WARNING: Use '\'' to represent an apostrophe within the trap. 2062# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2063trap 'exit_status=$? 2064 # Save into config.log some information that might help in debugging. 2065 { 2066 echo 2067 2068 $as_echo "## ---------------- ## 2069## Cache variables. ## 2070## ---------------- ##" 2071 echo 2072 # The following way of writing the cache mishandles newlines in values, 2073( 2074 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2075 eval ac_val=\$$ac_var 2076 case $ac_val in #( 2077 *${as_nl}*) 2078 case $ac_var in #( 2079 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2080$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2081 esac 2082 case $ac_var in #( 2083 _ | IFS | as_nl) ;; #( 2084 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2085 *) { eval $ac_var=; unset $ac_var;} ;; 2086 esac ;; 2087 esac 2088 done 2089 (set) 2>&1 | 2090 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2091 *${as_nl}ac_space=\ *) 2092 sed -n \ 2093 "s/'\''/'\''\\\\'\'''\''/g; 2094 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2095 ;; #( 2096 *) 2097 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2098 ;; 2099 esac | 2100 sort 2101) 2102 echo 2103 2104 $as_echo "## ----------------- ## 2105## Output variables. ## 2106## ----------------- ##" 2107 echo 2108 for ac_var in $ac_subst_vars 2109 do 2110 eval ac_val=\$$ac_var 2111 case $ac_val in 2112 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2113 esac 2114 $as_echo "$ac_var='\''$ac_val'\''" 2115 done | sort 2116 echo 2117 2118 if test -n "$ac_subst_files"; then 2119 $as_echo "## ------------------- ## 2120## File substitutions. ## 2121## ------------------- ##" 2122 echo 2123 for ac_var in $ac_subst_files 2124 do 2125 eval ac_val=\$$ac_var 2126 case $ac_val in 2127 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2128 esac 2129 $as_echo "$ac_var='\''$ac_val'\''" 2130 done | sort 2131 echo 2132 fi 2133 2134 if test -s confdefs.h; then 2135 $as_echo "## ----------- ## 2136## confdefs.h. ## 2137## ----------- ##" 2138 echo 2139 cat confdefs.h 2140 echo 2141 fi 2142 test "$ac_signal" != 0 && 2143 $as_echo "$as_me: caught signal $ac_signal" 2144 $as_echo "$as_me: exit $exit_status" 2145 } >&5 2146 rm -f core *.core core.conftest.* && 2147 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2148 exit $exit_status 2149' 0 2150for ac_signal in 1 2 13 15; do 2151 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2152done 2153ac_signal=0 2154 2155# confdefs.h avoids OS command line length limits that DEFS can exceed. 2156rm -f -r conftest* confdefs.h 2157 2158$as_echo "/* confdefs.h */" > confdefs.h 2159 2160# Predefined preprocessor variables. 2161 2162cat >>confdefs.h <<_ACEOF 2163#define PACKAGE_NAME "$PACKAGE_NAME" 2164_ACEOF 2165 2166cat >>confdefs.h <<_ACEOF 2167#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2168_ACEOF 2169 2170cat >>confdefs.h <<_ACEOF 2171#define PACKAGE_VERSION "$PACKAGE_VERSION" 2172_ACEOF 2173 2174cat >>confdefs.h <<_ACEOF 2175#define PACKAGE_STRING "$PACKAGE_STRING" 2176_ACEOF 2177 2178cat >>confdefs.h <<_ACEOF 2179#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2180_ACEOF 2181 2182cat >>confdefs.h <<_ACEOF 2183#define PACKAGE_URL "$PACKAGE_URL" 2184_ACEOF 2185 2186 2187# Let the site file select an alternate cache file if it wants to. 2188# Prefer an explicitly selected file to automatically selected ones. 2189ac_site_file1=NONE 2190ac_site_file2=NONE 2191if test -n "$CONFIG_SITE"; then 2192 # We do not want a PATH search for config.site. 2193 case $CONFIG_SITE in #(( 2194 -*) ac_site_file1=./$CONFIG_SITE;; 2195 */*) ac_site_file1=$CONFIG_SITE;; 2196 *) ac_site_file1=./$CONFIG_SITE;; 2197 esac 2198elif test "x$prefix" != xNONE; then 2199 ac_site_file1=$prefix/share/config.site 2200 ac_site_file2=$prefix/etc/config.site 2201else 2202 ac_site_file1=$ac_default_prefix/share/config.site 2203 ac_site_file2=$ac_default_prefix/etc/config.site 2204fi 2205for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2206do 2207 test "x$ac_site_file" = xNONE && continue 2208 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2209 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2210$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2211 sed 's/^/| /' "$ac_site_file" >&5 2212 . "$ac_site_file" \ 2213 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2215as_fn_error $? "failed to load site script $ac_site_file 2216See \`config.log' for more details" "$LINENO" 5; } 2217 fi 2218done 2219 2220if test -r "$cache_file"; then 2221 # Some versions of bash will fail to source /dev/null (special files 2222 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2223 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2224 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2225$as_echo "$as_me: loading cache $cache_file" >&6;} 2226 case $cache_file in 2227 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2228 *) . "./$cache_file";; 2229 esac 2230 fi 2231else 2232 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2233$as_echo "$as_me: creating cache $cache_file" >&6;} 2234 >$cache_file 2235fi 2236 2237# Check that the precious variables saved in the cache have kept the same 2238# value. 2239ac_cache_corrupted=false 2240for ac_var in $ac_precious_vars; do 2241 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2242 eval ac_new_set=\$ac_env_${ac_var}_set 2243 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2244 eval ac_new_val=\$ac_env_${ac_var}_value 2245 case $ac_old_set,$ac_new_set in 2246 set,) 2247 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2248$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2249 ac_cache_corrupted=: ;; 2250 ,set) 2251 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2252$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2253 ac_cache_corrupted=: ;; 2254 ,);; 2255 *) 2256 if test "x$ac_old_val" != "x$ac_new_val"; then 2257 # differences in whitespace do not lead to failure. 2258 ac_old_val_w=`echo x $ac_old_val` 2259 ac_new_val_w=`echo x $ac_new_val` 2260 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2261 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2262$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2263 ac_cache_corrupted=: 2264 else 2265 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2266$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2267 eval $ac_var=\$ac_old_val 2268 fi 2269 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2270$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2271 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2272$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2273 fi;; 2274 esac 2275 # Pass precious variables to config.status. 2276 if test "$ac_new_set" = set; then 2277 case $ac_new_val in 2278 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2279 *) ac_arg=$ac_var=$ac_new_val ;; 2280 esac 2281 case " $ac_configure_args " in 2282 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2283 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2284 esac 2285 fi 2286done 2287if $ac_cache_corrupted; then 2288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2289$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2290 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2291$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2292 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2293fi 2294## -------------------- ## 2295## Main body of script. ## 2296## -------------------- ## 2297 2298ac_ext=c 2299ac_cpp='$CPP $CPPFLAGS' 2300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2302ac_compiler_gnu=$ac_cv_c_compiler_gnu 2303 2304 2305 2306ac_config_headers="$ac_config_headers include/private/apu_config.h" 2307 2308ac_aux_dir= 2309for ac_dir in build "$srcdir"/build; do 2310 if test -f "$ac_dir/install-sh"; then 2311 ac_aux_dir=$ac_dir 2312 ac_install_sh="$ac_aux_dir/install-sh -c" 2313 break 2314 elif test -f "$ac_dir/install.sh"; then 2315 ac_aux_dir=$ac_dir 2316 ac_install_sh="$ac_aux_dir/install.sh -c" 2317 break 2318 elif test -f "$ac_dir/shtool"; then 2319 ac_aux_dir=$ac_dir 2320 ac_install_sh="$ac_aux_dir/shtool install -c" 2321 break 2322 fi 2323done 2324if test -z "$ac_aux_dir"; then 2325 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5 2326fi 2327 2328# These three variables are undocumented and unsupported, 2329# and are intended to be withdrawn in a future Autoconf release. 2330# They can cause serious problems if a builder's source tree is in a directory 2331# whose full name contains unusual characters. 2332ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2333ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2334ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 rm -f config.nice 2515 cat >config.nice<<EOF 2516#! /bin/sh 2517# 2518# Created by configure 2519 2520EOF 2521 if test -n "$CC"; then 2522 echo "CC=\"$CC\"; export CC" >> config.nice 2523 fi 2524 if test -n "$CFLAGS"; then 2525 echo "CFLAGS=\"$CFLAGS\"; export CFLAGS" >> config.nice 2526 fi 2527 if test -n "$CPPFLAGS"; then 2528 echo "CPPFLAGS=\"$CPPFLAGS\"; export CPPFLAGS" >> config.nice 2529 fi 2530 if test -n "$LDFLAGS"; then 2531 echo "LDFLAGS=\"$LDFLAGS\"; export LDFLAGS" >> config.nice 2532 fi 2533 if test -n "$LTFLAGS"; then 2534 echo "LTFLAGS=\"$LTFLAGS\"; export LTFLAGS" >> config.nice 2535 fi 2536 if test -n "$LIBS"; then 2537 echo "LIBS=\"$LIBS\"; export LIBS" >> config.nice 2538 fi 2539 if test -n "$INCLUDES"; then 2540 echo "INCLUDES=\"$INCLUDES\"; export INCLUDES" >> config.nice 2541 fi 2542 if test -n "$NOTEST_CFLAGS"; then 2543 echo "NOTEST_CFLAGS=\"$NOTEST_CFLAGS\"; export NOTEST_CFLAGS" >> config.nice 2544 fi 2545 if test -n "$NOTEST_CPPFLAGS"; then 2546 echo "NOTEST_CPPFLAGS=\"$NOTEST_CPPFLAGS\"; export NOTEST_CPPFLAGS" >> config.nice 2547 fi 2548 if test -n "$NOTEST_LDFLAGS"; then 2549 echo "NOTEST_LDFLAGS=\"$NOTEST_LDFLAGS\"; export NOTEST_LDFLAGS" >> config.nice 2550 fi 2551 if test -n "$NOTEST_LIBS"; then 2552 echo "NOTEST_LIBS=\"$NOTEST_LIBS\"; export NOTEST_LIBS" >> config.nice 2553 fi 2554 2555 # Retrieve command-line arguments. 2556 eval "set x $0 $ac_configure_args" 2557 shift 2558 2559 for arg 2560 do 2561 2562ap_last= 2563ap_cur="$arg" 2564while test "x${ap_cur}" != "x${ap_last}"; 2565do 2566 ap_last="${ap_cur}" 2567 ap_cur=`eval "echo ${ap_cur}"` 2568done 2569arg="${ap_cur}" 2570 2571 echo "\"$arg\" \\" >> config.nice 2572 done 2573 echo '"$@"' >> config.nice 2574 chmod +x config.nice 2575 2576 2577 2578abs_srcdir=`(cd $srcdir && pwd)` 2579abs_builddir=`pwd` 2580 2581if test "$abs_builddir" != "$abs_srcdir"; then 2582 USE_VPATH=1 2583 APU_CONFIG_LOCATION=build 2584else 2585 APU_CONFIG_LOCATION=source 2586fi 2587 2588 2589 2590# Make sure we can run config.sub. 2591$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2592 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2593 2594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2595$as_echo_n "checking build system type... " >&6; } 2596if ${ac_cv_build+:} false; then : 2597 $as_echo_n "(cached) " >&6 2598else 2599 ac_build_alias=$build_alias 2600test "x$ac_build_alias" = x && 2601 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2602test "x$ac_build_alias" = x && 2603 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2604ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2605 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2606 2607fi 2608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2609$as_echo "$ac_cv_build" >&6; } 2610case $ac_cv_build in 2611*-*-*) ;; 2612*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2613esac 2614build=$ac_cv_build 2615ac_save_IFS=$IFS; IFS='-' 2616set x $ac_cv_build 2617shift 2618build_cpu=$1 2619build_vendor=$2 2620shift; shift 2621# Remember, the first character of IFS is used to create $*, 2622# except with old shells: 2623build_os=$* 2624IFS=$ac_save_IFS 2625case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2626 2627 2628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2629$as_echo_n "checking host system type... " >&6; } 2630if ${ac_cv_host+:} false; then : 2631 $as_echo_n "(cached) " >&6 2632else 2633 if test "x$host_alias" = x; then 2634 ac_cv_host=$ac_cv_build 2635else 2636 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2637 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2638fi 2639 2640fi 2641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2642$as_echo "$ac_cv_host" >&6; } 2643case $ac_cv_host in 2644*-*-*) ;; 2645*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2646esac 2647host=$ac_cv_host 2648ac_save_IFS=$IFS; IFS='-' 2649set x $ac_cv_host 2650shift 2651host_cpu=$1 2652host_vendor=$2 2653shift; shift 2654# Remember, the first character of IFS is used to create $*, 2655# except with old shells: 2656host_os=$* 2657IFS=$ac_save_IFS 2658case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2659 2660 2661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2662$as_echo_n "checking target system type... " >&6; } 2663if ${ac_cv_target+:} false; then : 2664 $as_echo_n "(cached) " >&6 2665else 2666 if test "x$target_alias" = x; then 2667 ac_cv_target=$ac_cv_host 2668else 2669 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2670 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2671fi 2672 2673fi 2674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2675$as_echo "$ac_cv_target" >&6; } 2676case $ac_cv_target in 2677*-*-*) ;; 2678*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2679esac 2680target=$ac_cv_target 2681ac_save_IFS=$IFS; IFS='-' 2682set x $ac_cv_target 2683shift 2684target_cpu=$1 2685target_vendor=$2 2686shift; shift 2687# Remember, the first character of IFS is used to create $*, 2688# except with old shells: 2689target_os=$* 2690IFS=$ac_save_IFS 2691case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2692 2693 2694# The aliases save the names the user supplied, while $host etc. 2695# will get canonicalized. 2696test -n "$target_alias" && 2697 test "$program_prefix$program_suffix$program_transform_name" = \ 2698 NONENONEs,x,x, && 2699 program_prefix=${target_alias}- 2700 2701 2702# Find a good install program. We prefer a C program (faster), 2703# so one script is as good as another. But avoid the broken or 2704# incompatible versions: 2705# SysV /etc/install, /usr/sbin/install 2706# SunOS /usr/etc/install 2707# IRIX /sbin/install 2708# AIX /bin/install 2709# AmigaOS /C/install, which installs bootblocks on floppy discs 2710# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2711# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2712# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2713# OS/2's system install, which has a completely different semantic 2714# ./install, which can be erroneously created by make from ./install.sh. 2715# Reject install programs that cannot install multiple files. 2716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2717$as_echo_n "checking for a BSD-compatible install... " >&6; } 2718if test -z "$INSTALL"; then 2719if ${ac_cv_path_install+:} false; then : 2720 $as_echo_n "(cached) " >&6 2721else 2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2723for as_dir in $PATH 2724do 2725 IFS=$as_save_IFS 2726 test -z "$as_dir" && as_dir=. 2727 # Account for people who put trailing slashes in PATH elements. 2728case $as_dir/ in #(( 2729 ./ | .// | /[cC]/* | \ 2730 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2731 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2732 /usr/ucb/* ) ;; 2733 *) 2734 # OSF1 and SCO ODT 3.0 have their own names for install. 2735 # Don't use installbsd from OSF since it installs stuff as root 2736 # by default. 2737 for ac_prog in ginstall scoinst install; do 2738 for ac_exec_ext in '' $ac_executable_extensions; do 2739 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2740 if test $ac_prog = install && 2741 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2742 # AIX install. It has an incompatible calling convention. 2743 : 2744 elif test $ac_prog = install && 2745 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2746 # program-specific install script used by HP pwplus--don't use. 2747 : 2748 else 2749 rm -rf conftest.one conftest.two conftest.dir 2750 echo one > conftest.one 2751 echo two > conftest.two 2752 mkdir conftest.dir 2753 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2754 test -s conftest.one && test -s conftest.two && 2755 test -s conftest.dir/conftest.one && 2756 test -s conftest.dir/conftest.two 2757 then 2758 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2759 break 3 2760 fi 2761 fi 2762 fi 2763 done 2764 done 2765 ;; 2766esac 2767 2768 done 2769IFS=$as_save_IFS 2770 2771rm -rf conftest.one conftest.two conftest.dir 2772 2773fi 2774 if test "${ac_cv_path_install+set}" = set; then 2775 INSTALL=$ac_cv_path_install 2776 else 2777 # As a last resort, use the slow shell script. Don't cache a 2778 # value for INSTALL within a source directory, because that will 2779 # break other packages using the cache if that directory is 2780 # removed, or if the value is a relative name. 2781 INSTALL=$ac_install_sh 2782 fi 2783fi 2784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2785$as_echo "$INSTALL" >&6; } 2786 2787# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2788# It thinks the first close brace ends the variable substitution. 2789test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2790 2791test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2792 2793test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2794 2795 2796# Use -no-install or -no-fast-install to link the test 2797# programs on all platforms but Darwin, where it would cause 2798# the programs to be linked against installed versions of 2799# libapr instead of those just built. 2800case $host in 2801 *-apple-darwin*) 2802 LT_NO_INSTALL="" 2803 ;; 2804 *-mingw*) 2805 LT_NO_INSTALL="-no-fast-install" 2806 ;; 2807 *) 2808 LT_NO_INSTALL="-no-install" 2809 ;; 2810esac 2811 2812 2813top_builddir="$abs_builddir" 2814 2815 2816 2817 2818 2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mkdir -p" >&5 2820$as_echo_n "checking for working mkdir -p... " >&6; } 2821if ${ac_cv_mkdir_p+:} false; then : 2822 $as_echo_n "(cached) " >&6 2823else 2824 2825 test -d conftestdir && rm -rf conftestdir 2826 mkdir -p conftestdir/somedir >/dev/null 2>&1 2827 if test -d conftestdir/somedir; then 2828 ac_cv_mkdir_p=yes 2829 else 2830 ac_cv_mkdir_p=no 2831 fi 2832 rm -rf conftestdir 2833 2834fi 2835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mkdir_p" >&5 2836$as_echo "$ac_cv_mkdir_p" >&6; } 2837 if test "$ac_cv_mkdir_p" = "yes"; then 2838 mkdir_p="mkdir -p" 2839 else 2840 mkdir_p="$abs_srcdir/build/mkdir.sh" 2841 fi 2842 2843 2844get_version="$abs_srcdir/build/get-version.sh" 2845version_hdr="$abs_srcdir/include/apu_version.h" 2846APRUTIL_MAJOR_VERSION="`$get_version major $version_hdr APU`" 2847APRUTIL_DOTTED_VERSION="`$get_version all $version_hdr APU`" 2848 2849APU_LTVERSION="-version-info `$get_version libtool $version_hdr APU`" 2850 2851 2852 2853 2854 2855echo "APR-util Version: ${APRUTIL_DOTTED_VERSION}" 2856 2857 2858# Check whether --enable-layout was given. 2859if test "${enable_layout+set}" = set; then : 2860 enableval=$enable_layout; 2861 LAYOUT=$enableval 2862 2863fi 2864 2865 2866if test -z "$LAYOUT"; then 2867 LAYOUT="apr-util" 2868fi 2869 2870 if test ! -f $srcdir/config.layout; then 2871 echo "** Error: Layout file $srcdir/config.layout not found" 2872 echo "** Error: Cannot use undefined layout '$LAYOUT'" 2873 exit 1 2874 fi 2875 # Catch layout names including a slash which will otherwise 2876 # confuse the heck out of the sed script. 2877 case $LAYOUT in 2878 */*) 2879 echo "** Error: $LAYOUT is not a valid layout name" 2880 exit 1 ;; 2881 esac 2882 pldconf=./config.pld 2883 2884 sed -e "1s/[ ]*<[lL]ayout[ ]*$LAYOUT[ ]*>[ ]*//;1t" \ 2885 -e "1,/[ ]*<[lL]ayout[ ]*$LAYOUT[ ]*>[ ]*/d" \ 2886 -e '/[ ]*<\/Layout>[ ]*/,$d' \ 2887 -e "s/^[ ]*//g" \ 2888 -e "s/:[ ]*/=\'/g" \ 2889 -e "s/[ ]*$/'/g" \ 2890 $srcdir/config.layout > $pldconf 2891 layout_name=$LAYOUT 2892 if test ! -s $pldconf; then 2893 echo "** Error: unable to find layout $layout_name" 2894 exit 1 2895 fi 2896 . $pldconf 2897 rm $pldconf 2898 for var in prefix exec_prefix bindir sbindir libexecdir mandir \ 2899 sysconfdir datadir includedir localstatedir runtimedir \ 2900 logfiledir libdir installbuilddir libsuffix ; do 2901 eval "val=\"\$$var\"" 2902 case $val in 2903 *+) 2904 val=`echo $val | sed -e 's;\+$;;'` 2905 eval "$var=\"\$val\"" 2906 autosuffix=yes 2907 ;; 2908 *) 2909 autosuffix=no 2910 ;; 2911 esac 2912 val=`echo $val | sed -e 's:\(.\)/*$:\1:'` 2913 val=`echo $val | sed -e 's:[\$]\([a-z_]*\):$\1:g'` 2914 if test "$autosuffix" = "yes"; then 2915 if echo $val | grep apache >/dev/null; then 2916 addtarget=no 2917 else 2918 addtarget=yes 2919 fi 2920 if test "$addtarget" = "yes"; then 2921 val="$val/apache2" 2922 fi 2923 fi 2924 eval "$var='$val'" 2925 done 2926 2927 2928 2929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chosen layout" >&5 2930$as_echo_n "checking for chosen layout... " >&6; } 2931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $layout_name" >&5 2932$as_echo "$layout_name" >&6; } 2933 2934 2935ac_prev= 2936# Retrieve the command-line arguments. The eval is needed because 2937# the arguments are quoted to preserve accuracy. 2938eval "set x $ac_configure_args" 2939shift 2940for ac_option 2941do 2942 # If the previous option needs an argument, assign it. 2943 if test -n "$ac_prev"; then 2944 eval "$ac_prev=\$ac_option" 2945 ac_prev= 2946 continue 2947 fi 2948 2949 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 2950 2951 case $ac_option in 2952 2953 -bindir | --bindir | --bindi | --bind | --bin | --bi) 2954 ac_prev=bindir ;; 2955 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 2956 bindir="$ac_optarg" ;; 2957 2958 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 2959 ac_prev=datadir ;; 2960 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 2961 | --da=*) 2962 datadir="$ac_optarg" ;; 2963 2964 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 2965 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 2966 | --exec | --exe | --ex) 2967 ac_prev=exec_prefix ;; 2968 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 2969 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 2970 | --exec=* | --exe=* | --ex=*) 2971 exec_prefix="$ac_optarg" ;; 2972 2973 -includedir | --includedir | --includedi | --included | --include \ 2974 | --includ | --inclu | --incl | --inc) 2975 ac_prev=includedir ;; 2976 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 2977 | --includ=* | --inclu=* | --incl=* | --inc=*) 2978 includedir="$ac_optarg" ;; 2979 2980 -infodir | --infodir | --infodi | --infod | --info | --inf) 2981 ac_prev=infodir ;; 2982 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 2983 infodir="$ac_optarg" ;; 2984 2985 -libdir | --libdir | --libdi | --libd) 2986 ac_prev=libdir ;; 2987 -libdir=* | --libdir=* | --libdi=* | --libd=*) 2988 libdir="$ac_optarg" ;; 2989 2990 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 2991 | --libexe | --libex | --libe) 2992 ac_prev=libexecdir ;; 2993 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 2994 | --libexe=* | --libex=* | --libe=*) 2995 libexecdir="$ac_optarg" ;; 2996 2997 -localstatedir | --localstatedir | --localstatedi | --localstated \ 2998 | --localstate | --localstat | --localsta | --localst \ 2999 | --locals | --local | --loca | --loc | --lo) 3000 ac_prev=localstatedir ;; 3001 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 3002 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 3003 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 3004 localstatedir="$ac_optarg" ;; 3005 3006 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 3007 ac_prev=mandir ;; 3008 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 3009 mandir="$ac_optarg" ;; 3010 3011 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 3012 ac_prev=prefix ;; 3013 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 3014 prefix="$ac_optarg" ;; 3015 3016 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 3017 ac_prev=sbindir ;; 3018 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 3019 | --sbi=* | --sb=*) 3020 sbindir="$ac_optarg" ;; 3021 3022 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 3023 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 3024 | --sharedst | --shareds | --shared | --share | --shar \ 3025 | --sha | --sh) 3026 ac_prev=sharedstatedir ;; 3027 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 3028 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 3029 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 3030 | --sha=* | --sh=*) 3031 sharedstatedir="$ac_optarg" ;; 3032 3033 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 3034 | --syscon | --sysco | --sysc | --sys | --sy) 3035 ac_prev=sysconfdir ;; 3036 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 3037 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 3038 sysconfdir="$ac_optarg" ;; 3039 3040 esac 3041done 3042 3043# Be sure to have absolute paths. 3044for ac_var in exec_prefix prefix 3045do 3046 eval ac_val=$`echo $ac_var` 3047 case $ac_val in 3048 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 3049 *) as_fn_error $? "expected an absolute path for --$ac_var: $ac_val" "$LINENO" 5;; 3050 esac 3051done 3052 3053 3054 3055ac_ext=c 3056ac_cpp='$CPP $CPPFLAGS' 3057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3059ac_compiler_gnu=$ac_cv_c_compiler_gnu 3060if test -n "$ac_tool_prefix"; then 3061 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3062set dummy ${ac_tool_prefix}gcc; ac_word=$2 3063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3064$as_echo_n "checking for $ac_word... " >&6; } 3065if ${ac_cv_prog_CC+:} false; then : 3066 $as_echo_n "(cached) " >&6 3067else 3068 if test -n "$CC"; then 3069 ac_cv_prog_CC="$CC" # Let the user override the test. 3070else 3071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3072for as_dir in $PATH 3073do 3074 IFS=$as_save_IFS 3075 test -z "$as_dir" && as_dir=. 3076 for ac_exec_ext in '' $ac_executable_extensions; do 3077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3078 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3080 break 2 3081 fi 3082done 3083 done 3084IFS=$as_save_IFS 3085 3086fi 3087fi 3088CC=$ac_cv_prog_CC 3089if test -n "$CC"; then 3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3091$as_echo "$CC" >&6; } 3092else 3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3094$as_echo "no" >&6; } 3095fi 3096 3097 3098fi 3099if test -z "$ac_cv_prog_CC"; then 3100 ac_ct_CC=$CC 3101 # Extract the first word of "gcc", so it can be a program name with args. 3102set dummy gcc; ac_word=$2 3103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3104$as_echo_n "checking for $ac_word... " >&6; } 3105if ${ac_cv_prog_ac_ct_CC+:} false; then : 3106 $as_echo_n "(cached) " >&6 3107else 3108 if test -n "$ac_ct_CC"; then 3109 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3110else 3111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3112for as_dir in $PATH 3113do 3114 IFS=$as_save_IFS 3115 test -z "$as_dir" && as_dir=. 3116 for ac_exec_ext in '' $ac_executable_extensions; do 3117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3118 ac_cv_prog_ac_ct_CC="gcc" 3119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3120 break 2 3121 fi 3122done 3123 done 3124IFS=$as_save_IFS 3125 3126fi 3127fi 3128ac_ct_CC=$ac_cv_prog_ac_ct_CC 3129if test -n "$ac_ct_CC"; then 3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3131$as_echo "$ac_ct_CC" >&6; } 3132else 3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3134$as_echo "no" >&6; } 3135fi 3136 3137 if test "x$ac_ct_CC" = x; then 3138 CC="" 3139 else 3140 case $cross_compiling:$ac_tool_warned in 3141yes:) 3142{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3143$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3144ac_tool_warned=yes ;; 3145esac 3146 CC=$ac_ct_CC 3147 fi 3148else 3149 CC="$ac_cv_prog_CC" 3150fi 3151 3152if test -z "$CC"; then 3153 if test -n "$ac_tool_prefix"; then 3154 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3155set dummy ${ac_tool_prefix}cc; ac_word=$2 3156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3157$as_echo_n "checking for $ac_word... " >&6; } 3158if ${ac_cv_prog_CC+:} false; then : 3159 $as_echo_n "(cached) " >&6 3160else 3161 if test -n "$CC"; then 3162 ac_cv_prog_CC="$CC" # Let the user override the test. 3163else 3164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3165for as_dir in $PATH 3166do 3167 IFS=$as_save_IFS 3168 test -z "$as_dir" && as_dir=. 3169 for ac_exec_ext in '' $ac_executable_extensions; do 3170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3171 ac_cv_prog_CC="${ac_tool_prefix}cc" 3172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3173 break 2 3174 fi 3175done 3176 done 3177IFS=$as_save_IFS 3178 3179fi 3180fi 3181CC=$ac_cv_prog_CC 3182if test -n "$CC"; then 3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3184$as_echo "$CC" >&6; } 3185else 3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3187$as_echo "no" >&6; } 3188fi 3189 3190 3191 fi 3192fi 3193if test -z "$CC"; then 3194 # Extract the first word of "cc", so it can be a program name with args. 3195set dummy cc; ac_word=$2 3196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3197$as_echo_n "checking for $ac_word... " >&6; } 3198if ${ac_cv_prog_CC+:} false; then : 3199 $as_echo_n "(cached) " >&6 3200else 3201 if test -n "$CC"; then 3202 ac_cv_prog_CC="$CC" # Let the user override the test. 3203else 3204 ac_prog_rejected=no 3205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3206for as_dir in $PATH 3207do 3208 IFS=$as_save_IFS 3209 test -z "$as_dir" && as_dir=. 3210 for ac_exec_ext in '' $ac_executable_extensions; do 3211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3212 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3213 ac_prog_rejected=yes 3214 continue 3215 fi 3216 ac_cv_prog_CC="cc" 3217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3218 break 2 3219 fi 3220done 3221 done 3222IFS=$as_save_IFS 3223 3224if test $ac_prog_rejected = yes; then 3225 # We found a bogon in the path, so make sure we never use it. 3226 set dummy $ac_cv_prog_CC 3227 shift 3228 if test $# != 0; then 3229 # We chose a different compiler from the bogus one. 3230 # However, it has the same basename, so the bogon will be chosen 3231 # first if we set CC to just the basename; use the full file name. 3232 shift 3233 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3234 fi 3235fi 3236fi 3237fi 3238CC=$ac_cv_prog_CC 3239if test -n "$CC"; then 3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3241$as_echo "$CC" >&6; } 3242else 3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3244$as_echo "no" >&6; } 3245fi 3246 3247 3248fi 3249if test -z "$CC"; then 3250 if test -n "$ac_tool_prefix"; then 3251 for ac_prog in cl.exe 3252 do 3253 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3254set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3256$as_echo_n "checking for $ac_word... " >&6; } 3257if ${ac_cv_prog_CC+:} false; then : 3258 $as_echo_n "(cached) " >&6 3259else 3260 if test -n "$CC"; then 3261 ac_cv_prog_CC="$CC" # Let the user override the test. 3262else 3263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3264for as_dir in $PATH 3265do 3266 IFS=$as_save_IFS 3267 test -z "$as_dir" && as_dir=. 3268 for ac_exec_ext in '' $ac_executable_extensions; do 3269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3270 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3272 break 2 3273 fi 3274done 3275 done 3276IFS=$as_save_IFS 3277 3278fi 3279fi 3280CC=$ac_cv_prog_CC 3281if test -n "$CC"; then 3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3283$as_echo "$CC" >&6; } 3284else 3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3286$as_echo "no" >&6; } 3287fi 3288 3289 3290 test -n "$CC" && break 3291 done 3292fi 3293if test -z "$CC"; then 3294 ac_ct_CC=$CC 3295 for ac_prog in cl.exe 3296do 3297 # Extract the first word of "$ac_prog", so it can be a program name with args. 3298set dummy $ac_prog; ac_word=$2 3299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3300$as_echo_n "checking for $ac_word... " >&6; } 3301if ${ac_cv_prog_ac_ct_CC+:} false; then : 3302 $as_echo_n "(cached) " >&6 3303else 3304 if test -n "$ac_ct_CC"; then 3305 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3306else 3307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3308for as_dir in $PATH 3309do 3310 IFS=$as_save_IFS 3311 test -z "$as_dir" && as_dir=. 3312 for ac_exec_ext in '' $ac_executable_extensions; do 3313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3314 ac_cv_prog_ac_ct_CC="$ac_prog" 3315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3316 break 2 3317 fi 3318done 3319 done 3320IFS=$as_save_IFS 3321 3322fi 3323fi 3324ac_ct_CC=$ac_cv_prog_ac_ct_CC 3325if test -n "$ac_ct_CC"; then 3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3327$as_echo "$ac_ct_CC" >&6; } 3328else 3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3330$as_echo "no" >&6; } 3331fi 3332 3333 3334 test -n "$ac_ct_CC" && break 3335done 3336 3337 if test "x$ac_ct_CC" = x; then 3338 CC="" 3339 else 3340 case $cross_compiling:$ac_tool_warned in 3341yes:) 3342{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3343$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3344ac_tool_warned=yes ;; 3345esac 3346 CC=$ac_ct_CC 3347 fi 3348fi 3349 3350fi 3351 3352 3353test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3354$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3355as_fn_error $? "no acceptable C compiler found in \$PATH 3356See \`config.log' for more details" "$LINENO" 5; } 3357 3358# Provide some information about the compiler. 3359$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3360set X $ac_compile 3361ac_compiler=$2 3362for ac_option in --version -v -V -qversion; do 3363 { { ac_try="$ac_compiler $ac_option >&5" 3364case "(($ac_try" in 3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3366 *) ac_try_echo=$ac_try;; 3367esac 3368eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3369$as_echo "$ac_try_echo"; } >&5 3370 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3371 ac_status=$? 3372 if test -s conftest.err; then 3373 sed '10a\ 3374... rest of stderr output deleted ... 3375 10q' conftest.err >conftest.er1 3376 cat conftest.er1 >&5 3377 fi 3378 rm -f conftest.er1 conftest.err 3379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3380 test $ac_status = 0; } 3381done 3382 3383cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3384/* end confdefs.h. */ 3385 3386int 3387main () 3388{ 3389 3390 ; 3391 return 0; 3392} 3393_ACEOF 3394ac_clean_files_save=$ac_clean_files 3395ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3396# Try to create an executable without -o first, disregard a.out. 3397# It will help us diagnose broken compilers, and finding out an intuition 3398# of exeext. 3399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3400$as_echo_n "checking whether the C compiler works... " >&6; } 3401ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3402 3403# The possible output files: 3404ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3405 3406ac_rmfiles= 3407for ac_file in $ac_files 3408do 3409 case $ac_file in 3410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3411 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3412 esac 3413done 3414rm -f $ac_rmfiles 3415 3416if { { ac_try="$ac_link_default" 3417case "(($ac_try" in 3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3419 *) ac_try_echo=$ac_try;; 3420esac 3421eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3422$as_echo "$ac_try_echo"; } >&5 3423 (eval "$ac_link_default") 2>&5 3424 ac_status=$? 3425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3426 test $ac_status = 0; }; then : 3427 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3428# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3429# in a Makefile. We should not override ac_cv_exeext if it was cached, 3430# so that the user can short-circuit this test for compilers unknown to 3431# Autoconf. 3432for ac_file in $ac_files '' 3433do 3434 test -f "$ac_file" || continue 3435 case $ac_file in 3436 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3437 ;; 3438 [ab].out ) 3439 # We found the default executable, but exeext='' is most 3440 # certainly right. 3441 break;; 3442 *.* ) 3443 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3444 then :; else 3445 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3446 fi 3447 # We set ac_cv_exeext here because the later test for it is not 3448 # safe: cross compilers may not add the suffix if given an `-o' 3449 # argument, so we may need to know it at that point already. 3450 # Even if this section looks crufty: it has the advantage of 3451 # actually working. 3452 break;; 3453 * ) 3454 break;; 3455 esac 3456done 3457test "$ac_cv_exeext" = no && ac_cv_exeext= 3458 3459else 3460 ac_file='' 3461fi 3462if test -z "$ac_file"; then : 3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3464$as_echo "no" >&6; } 3465$as_echo "$as_me: failed program was:" >&5 3466sed 's/^/| /' conftest.$ac_ext >&5 3467 3468{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3470as_fn_error 77 "C compiler cannot create executables 3471See \`config.log' for more details" "$LINENO" 5; } 3472else 3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3474$as_echo "yes" >&6; } 3475fi 3476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3477$as_echo_n "checking for C compiler default output file name... " >&6; } 3478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3479$as_echo "$ac_file" >&6; } 3480ac_exeext=$ac_cv_exeext 3481 3482rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3483ac_clean_files=$ac_clean_files_save 3484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3485$as_echo_n "checking for suffix of executables... " >&6; } 3486if { { ac_try="$ac_link" 3487case "(($ac_try" in 3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3489 *) ac_try_echo=$ac_try;; 3490esac 3491eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3492$as_echo "$ac_try_echo"; } >&5 3493 (eval "$ac_link") 2>&5 3494 ac_status=$? 3495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3496 test $ac_status = 0; }; then : 3497 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3498# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3499# work properly (i.e., refer to `conftest.exe'), while it won't with 3500# `rm'. 3501for ac_file in conftest.exe conftest conftest.*; do 3502 test -f "$ac_file" || continue 3503 case $ac_file in 3504 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3505 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3506 break;; 3507 * ) break;; 3508 esac 3509done 3510else 3511 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3512$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3513as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3514See \`config.log' for more details" "$LINENO" 5; } 3515fi 3516rm -f conftest conftest$ac_cv_exeext 3517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3518$as_echo "$ac_cv_exeext" >&6; } 3519 3520rm -f conftest.$ac_ext 3521EXEEXT=$ac_cv_exeext 3522ac_exeext=$EXEEXT 3523cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3524/* end confdefs.h. */ 3525#include <stdio.h> 3526int 3527main () 3528{ 3529FILE *f = fopen ("conftest.out", "w"); 3530 return ferror (f) || fclose (f) != 0; 3531 3532 ; 3533 return 0; 3534} 3535_ACEOF 3536ac_clean_files="$ac_clean_files conftest.out" 3537# Check that the compiler produces executables we can run. If not, either 3538# the compiler is broken, or we cross compile. 3539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3540$as_echo_n "checking whether we are cross compiling... " >&6; } 3541if test "$cross_compiling" != yes; then 3542 { { ac_try="$ac_link" 3543case "(($ac_try" in 3544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3545 *) ac_try_echo=$ac_try;; 3546esac 3547eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3548$as_echo "$ac_try_echo"; } >&5 3549 (eval "$ac_link") 2>&5 3550 ac_status=$? 3551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3552 test $ac_status = 0; } 3553 if { ac_try='./conftest$ac_cv_exeext' 3554 { { case "(($ac_try" in 3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3556 *) ac_try_echo=$ac_try;; 3557esac 3558eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3559$as_echo "$ac_try_echo"; } >&5 3560 (eval "$ac_try") 2>&5 3561 ac_status=$? 3562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3563 test $ac_status = 0; }; }; then 3564 cross_compiling=no 3565 else 3566 if test "$cross_compiling" = maybe; then 3567 cross_compiling=yes 3568 else 3569 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3570$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3571as_fn_error $? "cannot run C compiled programs. 3572If you meant to cross compile, use \`--host'. 3573See \`config.log' for more details" "$LINENO" 5; } 3574 fi 3575 fi 3576fi 3577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3578$as_echo "$cross_compiling" >&6; } 3579 3580rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3581ac_clean_files=$ac_clean_files_save 3582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3583$as_echo_n "checking for suffix of object files... " >&6; } 3584if ${ac_cv_objext+:} false; then : 3585 $as_echo_n "(cached) " >&6 3586else 3587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3588/* end confdefs.h. */ 3589 3590int 3591main () 3592{ 3593 3594 ; 3595 return 0; 3596} 3597_ACEOF 3598rm -f conftest.o conftest.obj 3599if { { ac_try="$ac_compile" 3600case "(($ac_try" in 3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3602 *) ac_try_echo=$ac_try;; 3603esac 3604eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3605$as_echo "$ac_try_echo"; } >&5 3606 (eval "$ac_compile") 2>&5 3607 ac_status=$? 3608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3609 test $ac_status = 0; }; then : 3610 for ac_file in conftest.o conftest.obj conftest.*; do 3611 test -f "$ac_file" || continue; 3612 case $ac_file in 3613 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3614 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3615 break;; 3616 esac 3617done 3618else 3619 $as_echo "$as_me: failed program was:" >&5 3620sed 's/^/| /' conftest.$ac_ext >&5 3621 3622{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3623$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3624as_fn_error $? "cannot compute suffix of object files: cannot compile 3625See \`config.log' for more details" "$LINENO" 5; } 3626fi 3627rm -f conftest.$ac_cv_objext conftest.$ac_ext 3628fi 3629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3630$as_echo "$ac_cv_objext" >&6; } 3631OBJEXT=$ac_cv_objext 3632ac_objext=$OBJEXT 3633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3634$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3635if ${ac_cv_c_compiler_gnu+:} false; then : 3636 $as_echo_n "(cached) " >&6 3637else 3638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3639/* end confdefs.h. */ 3640 3641int 3642main () 3643{ 3644#ifndef __GNUC__ 3645 choke me 3646#endif 3647 3648 ; 3649 return 0; 3650} 3651_ACEOF 3652if ac_fn_c_try_compile "$LINENO"; then : 3653 ac_compiler_gnu=yes 3654else 3655 ac_compiler_gnu=no 3656fi 3657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3658ac_cv_c_compiler_gnu=$ac_compiler_gnu 3659 3660fi 3661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3662$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3663if test $ac_compiler_gnu = yes; then 3664 GCC=yes 3665else 3666 GCC= 3667fi 3668ac_test_CFLAGS=${CFLAGS+set} 3669ac_save_CFLAGS=$CFLAGS 3670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3671$as_echo_n "checking whether $CC accepts -g... " >&6; } 3672if ${ac_cv_prog_cc_g+:} false; then : 3673 $as_echo_n "(cached) " >&6 3674else 3675 ac_save_c_werror_flag=$ac_c_werror_flag 3676 ac_c_werror_flag=yes 3677 ac_cv_prog_cc_g=no 3678 CFLAGS="-g" 3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3680/* end confdefs.h. */ 3681 3682int 3683main () 3684{ 3685 3686 ; 3687 return 0; 3688} 3689_ACEOF 3690if ac_fn_c_try_compile "$LINENO"; then : 3691 ac_cv_prog_cc_g=yes 3692else 3693 CFLAGS="" 3694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3695/* end confdefs.h. */ 3696 3697int 3698main () 3699{ 3700 3701 ; 3702 return 0; 3703} 3704_ACEOF 3705if ac_fn_c_try_compile "$LINENO"; then : 3706 3707else 3708 ac_c_werror_flag=$ac_save_c_werror_flag 3709 CFLAGS="-g" 3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3711/* end confdefs.h. */ 3712 3713int 3714main () 3715{ 3716 3717 ; 3718 return 0; 3719} 3720_ACEOF 3721if ac_fn_c_try_compile "$LINENO"; then : 3722 ac_cv_prog_cc_g=yes 3723fi 3724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3725fi 3726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3727fi 3728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3729 ac_c_werror_flag=$ac_save_c_werror_flag 3730fi 3731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3732$as_echo "$ac_cv_prog_cc_g" >&6; } 3733if test "$ac_test_CFLAGS" = set; then 3734 CFLAGS=$ac_save_CFLAGS 3735elif test $ac_cv_prog_cc_g = yes; then 3736 if test "$GCC" = yes; then 3737 CFLAGS="-g -O2" 3738 else 3739 CFLAGS="-g" 3740 fi 3741else 3742 if test "$GCC" = yes; then 3743 CFLAGS="-O2" 3744 else 3745 CFLAGS= 3746 fi 3747fi 3748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3749$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3750if ${ac_cv_prog_cc_c89+:} false; then : 3751 $as_echo_n "(cached) " >&6 3752else 3753 ac_cv_prog_cc_c89=no 3754ac_save_CC=$CC 3755cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3756/* end confdefs.h. */ 3757#include <stdarg.h> 3758#include <stdio.h> 3759struct stat; 3760/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3761struct buf { int x; }; 3762FILE * (*rcsopen) (struct buf *, struct stat *, int); 3763static char *e (p, i) 3764 char **p; 3765 int i; 3766{ 3767 return p[i]; 3768} 3769static char *f (char * (*g) (char **, int), char **p, ...) 3770{ 3771 char *s; 3772 va_list v; 3773 va_start (v,p); 3774 s = g (p, va_arg (v,int)); 3775 va_end (v); 3776 return s; 3777} 3778 3779/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3780 function prototypes and stuff, but not '\xHH' hex character constants. 3781 These don't provoke an error unfortunately, instead are silently treated 3782 as 'x'. The following induces an error, until -std is added to get 3783 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3784 array size at least. It's necessary to write '\x00'==0 to get something 3785 that's true only with -std. */ 3786int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3787 3788/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3789 inside strings and character constants. */ 3790#define FOO(x) 'x' 3791int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3792 3793int test (int i, double x); 3794struct s1 {int (*f) (int a);}; 3795struct s2 {int (*f) (double a);}; 3796int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3797int argc; 3798char **argv; 3799int 3800main () 3801{ 3802return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3803 ; 3804 return 0; 3805} 3806_ACEOF 3807for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3808 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3809do 3810 CC="$ac_save_CC $ac_arg" 3811 if ac_fn_c_try_compile "$LINENO"; then : 3812 ac_cv_prog_cc_c89=$ac_arg 3813fi 3814rm -f core conftest.err conftest.$ac_objext 3815 test "x$ac_cv_prog_cc_c89" != "xno" && break 3816done 3817rm -f conftest.$ac_ext 3818CC=$ac_save_CC 3819 3820fi 3821# AC_CACHE_VAL 3822case "x$ac_cv_prog_cc_c89" in 3823 x) 3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3825$as_echo "none needed" >&6; } ;; 3826 xno) 3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3828$as_echo "unsupported" >&6; } ;; 3829 *) 3830 CC="$CC $ac_cv_prog_cc_c89" 3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3832$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3833esac 3834if test "x$ac_cv_prog_cc_c89" != xno; then : 3835 3836fi 3837 3838ac_ext=c 3839ac_cpp='$CPP $CPPFLAGS' 3840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3842ac_compiler_gnu=$ac_cv_c_compiler_gnu 3843 3844 3845 3846if test "x$apu_preload_done" != "xyes" ; then 3847 apu_preload_done="yes" 3848 3849 echo "Applying apr-util hints file rules for $host" 3850 3851 case "$host" in 3852 *-dec-osf*) 3853 3854 if test -z "$apu_crypt_threadsafe"; then 3855 test "x$silent" != "xyes" && echo " setting apu_crypt_threadsafe to \"1\"" 3856 apu_crypt_threadsafe="1" 3857 fi 3858 3859 ;; 3860 *-hp-hpux11.*) 3861 3862 if test -z "$apu_crypt_threadsafe"; then 3863 test "x$silent" != "xyes" && echo " setting apu_crypt_threadsafe to \"1\"" 3864 apu_crypt_threadsafe="1" 3865 fi 3866 3867 ;; 3868 *-ibm-aix4*|*-ibm-aix5.1*) 3869 3870 if test -z "$apu_iconv_inbuf_const"; then 3871 test "x$silent" != "xyes" && echo " setting apu_iconv_inbuf_const to \"1\"" 3872 apu_iconv_inbuf_const="1" 3873 fi 3874 3875 ;; 3876 *-ibm-os390) 3877 3878 if test -z "$apu_crypt_threadsafe"; then 3879 test "x$silent" != "xyes" && echo " setting apu_crypt_threadsafe to \"1\"" 3880 apu_crypt_threadsafe="1" 3881 fi 3882 3883 ;; 3884 *-solaris2*) 3885 3886 if test -z "$apu_iconv_inbuf_const"; then 3887 test "x$silent" != "xyes" && echo " setting apu_iconv_inbuf_const to \"1\"" 3888 apu_iconv_inbuf_const="1" 3889 fi 3890 3891 3892 if test -z "$apu_crypt_threadsafe"; then 3893 test "x$silent" != "xyes" && echo " setting apu_crypt_threadsafe to \"1\"" 3894 apu_crypt_threadsafe="1" 3895 fi 3896 3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5 3898$as_echo_n "checking for library containing fdatasync... " >&6; } 3899if ${ac_cv_search_fdatasync+:} false; then : 3900 $as_echo_n "(cached) " >&6 3901else 3902 ac_func_search_save_LIBS=$LIBS 3903cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3904/* end confdefs.h. */ 3905 3906/* Override any GCC internal prototype to avoid an error. 3907 Use char because int might match the return type of a GCC 3908 builtin and then its argument prototype would still apply. */ 3909#ifdef __cplusplus 3910extern "C" 3911#endif 3912char fdatasync (); 3913int 3914main () 3915{ 3916return fdatasync (); 3917 ; 3918 return 0; 3919} 3920_ACEOF 3921for ac_lib in '' rt posix4; do 3922 if test -z "$ac_lib"; then 3923 ac_res="none required" 3924 else 3925 ac_res=-l$ac_lib 3926 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3927 fi 3928 if ac_fn_c_try_link "$LINENO"; then : 3929 ac_cv_search_fdatasync=$ac_res 3930fi 3931rm -f core conftest.err conftest.$ac_objext \ 3932 conftest$ac_exeext 3933 if ${ac_cv_search_fdatasync+:} false; then : 3934 break 3935fi 3936done 3937if ${ac_cv_search_fdatasync+:} false; then : 3938 3939else 3940 ac_cv_search_fdatasync=no 3941fi 3942rm conftest.$ac_ext 3943LIBS=$ac_func_search_save_LIBS 3944fi 3945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5 3946$as_echo "$ac_cv_search_fdatasync" >&6; } 3947ac_res=$ac_cv_search_fdatasync 3948if test "$ac_res" != no; then : 3949 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3950 3951fi 3952 3953 ;; 3954 *-sco3.2v5*) 3955 3956 if test -z "$apu_db_xtra_libs"; then 3957 test "x$silent" != "xyes" && echo " setting apu_db_xtra_libs to \"-lsocket\"" 3958 apu_db_xtra_libs="-lsocket" 3959 fi 3960 3961 ;; 3962 esac 3963 3964fi 3965 3966 3967 3968APRUTIL_INCLUDES="" 3969APRUTIL_PRIV_INCLUDES="-I$top_builddir/include -I$top_builddir/include/private" 3970if test -n "$USE_VPATH"; then 3971 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES -I$abs_srcdir/include/private -I$abs_srcdir/include" 3972fi 3973 3974 3975 3976 3977 apr_found="no" 3978 3979 if test "$target_os" = "os2-emx"; then 3980 # Scripts don't pass test -x on OS/2 3981 TEST_X="test -f" 3982 else 3983 TEST_X="test -x" 3984 fi 3985 3986 acceptable_majors="1" 3987 3988 apr_temp_acceptable_apr_config="" 3989 for apr_temp_major in $acceptable_majors 3990 do 3991 case $apr_temp_major in 3992 0) 3993 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config" 3994 ;; 3995 *) 3996 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config" 3997 ;; 3998 esac 3999 done 4000 4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5 4002$as_echo_n "checking for APR... " >&6; } 4003 4004# Check whether --with-apr was given. 4005if test "${with_apr+set}" = set; then : 4006 withval=$with_apr; 4007 if test "$withval" = "no" || test "$withval" = "yes"; then 4008 as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5 4009 fi 4010 4011 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config 4012 do 4013 for lookdir in "$withval/bin" "$withval" 4014 do 4015 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then 4016 apr_config="$lookdir/$apr_temp_apr_config_file" 4017 4018 apr_found="yes" 4019 break 2 4020 fi 4021 done 4022 done 4023 4024 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then 4025 apr_config="$withval" 4026 apr_found="yes" 4027 fi 4028 4029 if test "$apr_found" != "yes"; then 4030 as_fn_error $? "the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file." "$LINENO" 5 4031 fi 4032 4033else 4034 4035 if test -n "" && test "" = "1"; then 4036 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config 4037 do 4038 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then 4039 apr_config="$apr_temp_apr_config_file" 4040 4041 apr_found="yes" 4042 break 4043 else 4044 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do 4045 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then 4046 apr_config="$lookdir/bin/$apr_temp_apr_config_file" 4047 4048 apr_found="yes" 4049 break 2 4050 fi 4051 done 4052 fi 4053 done 4054 fi 4055 if test "$apr_found" = "no" && test -d ""; then 4056 apr_temp_abs_srcdir="`cd \"\" && pwd`" 4057 apr_found="reconfig" 4058 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`" 4059 case $apr_bundled_major in 4060 "") 4061 as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5 4062 ;; 4063 0) 4064 apr_temp_apr_config_file="apr-config" 4065 ;; 4066 *) 4067 apr_temp_apr_config_file="apr-$apr_bundled_major-config" 4068 ;; 4069 esac 4070 if test -n ""; then 4071 apr_config="/$apr_temp_apr_config_file" 4072 else 4073 apr_config="/$apr_temp_apr_config_file" 4074 fi 4075 fi 4076 4077fi 4078 4079 4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5 4081$as_echo "$apr_found" >&6; } 4082 4083 if test "$apr_found" = "no"; then 4084 as_fn_error $? "APR could not be located. Please use the --with-apr option." "$LINENO" 5 4085 fi 4086 4087 APR_BUILD_DIR="`$apr_config --installbuilddir`" 4088 4089 APR_BUILD_DIR="`cd $APR_BUILD_DIR && pwd`" 4090 4091 APR_INCLUDES="`$apr_config --includes`" 4092 APR_LIBS="`$apr_config --link-libtool --libs`" 4093 APR_SO_EXT="`$apr_config --apr-so-ext`" 4094 APR_LIB_TARGET="`$apr_config --apr-lib-target`" 4095 4096 4097 4098 4099 4100 4101 4102 if test -z "$CC"; then 4103 test "x$silent" != "xyes" && echo " setting CC to \"`$apr_config --cc`\"" 4104 CC="`$apr_config --cc`" 4105 fi 4106 4107 4108 if test -z "$CPP"; then 4109 test "x$silent" != "xyes" && echo " setting CPP to \"`$apr_config --cpp`\"" 4110 CPP="`$apr_config --cpp`" 4111 fi 4112 4113 4114 if test "x$CFLAGS" = "x"; then 4115 test "x$silent" != "xyes" && echo " setting CFLAGS to \"`$apr_config --cflags`\"" 4116 CFLAGS="`$apr_config --cflags`" 4117 else 4118 apr_addto_bugger="`$apr_config --cflags`" 4119 for i in $apr_addto_bugger; do 4120 apr_addto_duplicate="0" 4121 for j in $CFLAGS; do 4122 if test "x$i" = "x$j"; then 4123 apr_addto_duplicate="1" 4124 break 4125 fi 4126 done 4127 if test $apr_addto_duplicate = "0"; then 4128 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS" 4129 CFLAGS="$CFLAGS $i" 4130 fi 4131 done 4132 fi 4133 4134 4135 if test "x$CPPFLAGS" = "x"; then 4136 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"`$apr_config --cppflags`\"" 4137 CPPFLAGS="`$apr_config --cppflags`" 4138 else 4139 apr_addto_bugger="`$apr_config --cppflags`" 4140 for i in $apr_addto_bugger; do 4141 apr_addto_duplicate="0" 4142 for j in $CPPFLAGS; do 4143 if test "x$i" = "x$j"; then 4144 apr_addto_duplicate="1" 4145 break 4146 fi 4147 done 4148 if test $apr_addto_duplicate = "0"; then 4149 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 4150 CPPFLAGS="$CPPFLAGS $i" 4151 fi 4152 done 4153 fi 4154 4155apr_shlibpath_var=`$apr_config --shlib-path-var` 4156 4157 4158 4159# Check whether --with-apr-iconv was given. 4160if test "${with_apr_iconv+set}" = set; then : 4161 withval=$with_apr_iconv; apu_apriconv_dir="$withval" 4162 if test "$apu_apriconv_dir" != "no"; then 4163 if test -d "$apu_apriconv_dir"; then 4164 4165 # save our work to this point; this allows the sub-package to use it 4166 cat >confcache <<\_ACEOF 4167# This file is a shell script that caches the results of configure 4168# tests run on this system so they can be shared between configure 4169# scripts and configure runs, see configure's option --config-cache. 4170# It is not useful on other systems. If it contains results you don't 4171# want to keep, you may remove or edit it. 4172# 4173# config.status only pays attention to the cache file if you give it 4174# the --recheck option to rerun configure. 4175# 4176# `ac_cv_env_foo' variables (set or unset) will be overridden when 4177# loading this file, other *unset* `ac_cv_foo' will be assigned the 4178# following values. 4179 4180_ACEOF 4181 4182# The following way of writing the cache mishandles newlines in values, 4183# but we know of no workaround that is simple, portable, and efficient. 4184# So, we kill variables containing newlines. 4185# Ultrix sh set writes to stderr and can't be redirected directly, 4186# and sets the high bit in the cache file unless we assign to the vars. 4187( 4188 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 4189 eval ac_val=\$$ac_var 4190 case $ac_val in #( 4191 *${as_nl}*) 4192 case $ac_var in #( 4193 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 4194$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 4195 esac 4196 case $ac_var in #( 4197 _ | IFS | as_nl) ;; #( 4198 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 4199 *) { eval $ac_var=; unset $ac_var;} ;; 4200 esac ;; 4201 esac 4202 done 4203 4204 (set) 2>&1 | 4205 case $as_nl`(ac_space=' '; set) 2>&1` in #( 4206 *${as_nl}ac_space=\ *) 4207 # `set' does not quote correctly, so add quotes: double-quote 4208 # substitution turns \\\\ into \\, and sed turns \\ into \. 4209 sed -n \ 4210 "s/'/'\\\\''/g; 4211 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 4212 ;; #( 4213 *) 4214 # `set' quotes correctly as required by POSIX, so do not add quotes. 4215 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 4216 ;; 4217 esac | 4218 sort 4219) | 4220 sed ' 4221 /^ac_cv_env_/b end 4222 t clear 4223 :clear 4224 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 4225 t end 4226 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 4227 :end' >>confcache 4228if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 4229 if test -w "$cache_file"; then 4230 if test "x$cache_file" != "x/dev/null"; then 4231 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 4232$as_echo "$as_me: updating cache $cache_file" >&6;} 4233 if test ! -f "$cache_file" || test -h "$cache_file"; then 4234 cat confcache >"$cache_file" 4235 else 4236 case $cache_file in #( 4237 */* | ?:*) 4238 mv -f confcache "$cache_file"$$ && 4239 mv -f "$cache_file"$$ "$cache_file" ;; #( 4240 *) 4241 mv -f confcache "$cache_file" ;; 4242 esac 4243 fi 4244 fi 4245 else 4246 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 4247$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 4248 fi 4249fi 4250rm -f confcache 4251 4252 echo "configuring package in "$apu_apriconv_dir" now" 4253 ac_popdir=`pwd` 4254 apr_config_subdirs=""$apu_apriconv_dir"" 4255 test -d "$apu_apriconv_dir" || $mkdir_p "$apu_apriconv_dir" 4256 ac_abs_srcdir=`(cd $srcdir/"$apu_apriconv_dir" && pwd)` 4257 cd "$apu_apriconv_dir" 4258 4259 # A "../" for each directory in /$config_subdirs. 4260 ac_dots=`echo $apr_config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` 4261 4262 # Make the cache file pathname absolute for the subdirs 4263 # required to correctly handle subdirs that might actually 4264 # be symlinks 4265 case "$cache_file" in 4266 /*) # already absolute 4267 ac_sub_cache_file=$cache_file ;; 4268 *) # Was relative path. 4269 ac_sub_cache_file="$ac_popdir/$cache_file" ;; 4270 esac 4271 4272 4273 apr_configure_args= 4274 apr_sep= 4275 for apr_configure_arg in $ac_configure_args 4276 do 4277 case "$apr_configure_arg" in 4278 --enable-layout=*|\'--enable-layout=*) 4279 continue ;; 4280 esac 4281 apr_configure_args="$apr_configure_args$apr_sep'$apr_configure_arg'" 4282 apr_sep=" " 4283 done 4284 4285 4286 test "x$silent" = "xyes" && apr_configure_args="$apr_configure_args --silent" 4287 4288 apr_configure_args="--disable-option-checking $apr_configure_args" 4289 4290 if eval $SHELL $ac_abs_srcdir/configure $apr_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_abs_srcdir $apache_apr_flags \ 4291 --prefix=$prefix \ 4292 --exec-prefix=$exec_prefix \ 4293 --libdir=$libdir \ 4294 --includedir=$includedir \ 4295 --bindir=$bindir \ 4296 --datadir=$datadir \ 4297 --with-installbuilddir=$installbuilddir 4298 then : 4299 echo ""$apu_apriconv_dir" configured properly" 4300 else 4301 echo "configure failed for "$apu_apriconv_dir"" 4302 exit 1 4303 fi 4304 4305 cd $ac_popdir 4306 4307 # grab any updates from the sub-package 4308 if test -r "$cache_file"; then 4309 # Some versions of bash will fail to source /dev/null (special files 4310 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 4311 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 4312 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 4313$as_echo "$as_me: loading cache $cache_file" >&6;} 4314 case $cache_file in 4315 [\\/]* | ?:[\\/]* ) . "$cache_file";; 4316 *) . "./$cache_file";; 4317 esac 4318 fi 4319else 4320 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 4321$as_echo "$as_me: creating cache $cache_file" >&6;} 4322 >$cache_file 4323fi 4324 4325 4326 APRUTIL_EXPORT_LIBS="$abs_srcdir/$apu_apriconv_dir/lib/libapriconv.la \ 4327 $APRUTIL_EXPORT_LIBS" 4328 APRUTIL_INCLUDES="-I$abs_srcdir/$apu_apriconv_dir/include \ 4329 $APRUTIL_INCLUDES" 4330 APR_ICONV_DIR="$apu_apriconv_dir" 4331 else 4332 APR_ICONV_DIR="" 4333 fi 4334 else 4335 APR_ICONV_DIR="" 4336 fi 4337 4338fi 4339 4340 4341 4342ac_ext=c 4343ac_cpp='$CPP $CPPFLAGS' 4344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4346ac_compiler_gnu=$ac_cv_c_compiler_gnu 4347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4348$as_echo_n "checking how to run the C preprocessor... " >&6; } 4349# On Suns, sometimes $CPP names a directory. 4350if test -n "$CPP" && test -d "$CPP"; then 4351 CPP= 4352fi 4353if test -z "$CPP"; then 4354 if ${ac_cv_prog_CPP+:} false; then : 4355 $as_echo_n "(cached) " >&6 4356else 4357 # Double quotes because CPP needs to be expanded 4358 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4359 do 4360 ac_preproc_ok=false 4361for ac_c_preproc_warn_flag in '' yes 4362do 4363 # Use a header file that comes with gcc, so configuring glibc 4364 # with a fresh cross-compiler works. 4365 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4366 # <limits.h> exists even on freestanding compilers. 4367 # On the NeXT, cc -E runs the code through the compiler's parser, 4368 # not just through cpp. "Syntax error" is here to catch this case. 4369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4370/* end confdefs.h. */ 4371#ifdef __STDC__ 4372# include <limits.h> 4373#else 4374# include <assert.h> 4375#endif 4376 Syntax error 4377_ACEOF 4378if ac_fn_c_try_cpp "$LINENO"; then : 4379 4380else 4381 # Broken: fails on valid input. 4382continue 4383fi 4384rm -f conftest.err conftest.i conftest.$ac_ext 4385 4386 # OK, works on sane cases. Now check whether nonexistent headers 4387 # can be detected and how. 4388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4389/* end confdefs.h. */ 4390#include <ac_nonexistent.h> 4391_ACEOF 4392if ac_fn_c_try_cpp "$LINENO"; then : 4393 # Broken: success on invalid input. 4394continue 4395else 4396 # Passes both tests. 4397ac_preproc_ok=: 4398break 4399fi 4400rm -f conftest.err conftest.i conftest.$ac_ext 4401 4402done 4403# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4404rm -f conftest.i conftest.err conftest.$ac_ext 4405if $ac_preproc_ok; then : 4406 break 4407fi 4408 4409 done 4410 ac_cv_prog_CPP=$CPP 4411 4412fi 4413 CPP=$ac_cv_prog_CPP 4414else 4415 ac_cv_prog_CPP=$CPP 4416fi 4417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4418$as_echo "$CPP" >&6; } 4419ac_preproc_ok=false 4420for ac_c_preproc_warn_flag in '' yes 4421do 4422 # Use a header file that comes with gcc, so configuring glibc 4423 # with a fresh cross-compiler works. 4424 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4425 # <limits.h> exists even on freestanding compilers. 4426 # On the NeXT, cc -E runs the code through the compiler's parser, 4427 # not just through cpp. "Syntax error" is here to catch this case. 4428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4429/* end confdefs.h. */ 4430#ifdef __STDC__ 4431# include <limits.h> 4432#else 4433# include <assert.h> 4434#endif 4435 Syntax error 4436_ACEOF 4437if ac_fn_c_try_cpp "$LINENO"; then : 4438 4439else 4440 # Broken: fails on valid input. 4441continue 4442fi 4443rm -f conftest.err conftest.i conftest.$ac_ext 4444 4445 # OK, works on sane cases. Now check whether nonexistent headers 4446 # can be detected and how. 4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4448/* end confdefs.h. */ 4449#include <ac_nonexistent.h> 4450_ACEOF 4451if ac_fn_c_try_cpp "$LINENO"; then : 4452 # Broken: success on invalid input. 4453continue 4454else 4455 # Passes both tests. 4456ac_preproc_ok=: 4457break 4458fi 4459rm -f conftest.err conftest.i conftest.$ac_ext 4460 4461done 4462# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4463rm -f conftest.i conftest.err conftest.$ac_ext 4464if $ac_preproc_ok; then : 4465 4466else 4467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4468$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4469as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4470See \`config.log' for more details" "$LINENO" 5; } 4471fi 4472 4473ac_ext=c 4474ac_cpp='$CPP $CPPFLAGS' 4475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4477ac_compiler_gnu=$ac_cv_c_compiler_gnu 4478 4479 4480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4481$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4482if ${ac_cv_path_GREP+:} false; then : 4483 $as_echo_n "(cached) " >&6 4484else 4485 if test -z "$GREP"; then 4486 ac_path_GREP_found=false 4487 # Loop through the user's path and test for each of PROGNAME-LIST 4488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4489for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4490do 4491 IFS=$as_save_IFS 4492 test -z "$as_dir" && as_dir=. 4493 for ac_prog in grep ggrep; do 4494 for ac_exec_ext in '' $ac_executable_extensions; do 4495 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4496 as_fn_executable_p "$ac_path_GREP" || continue 4497# Check for GNU ac_path_GREP and select it if it is found. 4498 # Check for GNU $ac_path_GREP 4499case `"$ac_path_GREP" --version 2>&1` in 4500*GNU*) 4501 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4502*) 4503 ac_count=0 4504 $as_echo_n 0123456789 >"conftest.in" 4505 while : 4506 do 4507 cat "conftest.in" "conftest.in" >"conftest.tmp" 4508 mv "conftest.tmp" "conftest.in" 4509 cp "conftest.in" "conftest.nl" 4510 $as_echo 'GREP' >> "conftest.nl" 4511 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4512 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4513 as_fn_arith $ac_count + 1 && ac_count=$as_val 4514 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4515 # Best one so far, save it but keep looking for a better one 4516 ac_cv_path_GREP="$ac_path_GREP" 4517 ac_path_GREP_max=$ac_count 4518 fi 4519 # 10*(2^10) chars as input seems more than enough 4520 test $ac_count -gt 10 && break 4521 done 4522 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4523esac 4524 4525 $ac_path_GREP_found && break 3 4526 done 4527 done 4528 done 4529IFS=$as_save_IFS 4530 if test -z "$ac_cv_path_GREP"; then 4531 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4532 fi 4533else 4534 ac_cv_path_GREP=$GREP 4535fi 4536 4537fi 4538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4539$as_echo "$ac_cv_path_GREP" >&6; } 4540 GREP="$ac_cv_path_GREP" 4541 4542 4543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4544$as_echo_n "checking for egrep... " >&6; } 4545if ${ac_cv_path_EGREP+:} false; then : 4546 $as_echo_n "(cached) " >&6 4547else 4548 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4549 then ac_cv_path_EGREP="$GREP -E" 4550 else 4551 if test -z "$EGREP"; then 4552 ac_path_EGREP_found=false 4553 # Loop through the user's path and test for each of PROGNAME-LIST 4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4555for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4556do 4557 IFS=$as_save_IFS 4558 test -z "$as_dir" && as_dir=. 4559 for ac_prog in egrep; do 4560 for ac_exec_ext in '' $ac_executable_extensions; do 4561 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4562 as_fn_executable_p "$ac_path_EGREP" || continue 4563# Check for GNU ac_path_EGREP and select it if it is found. 4564 # Check for GNU $ac_path_EGREP 4565case `"$ac_path_EGREP" --version 2>&1` in 4566*GNU*) 4567 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4568*) 4569 ac_count=0 4570 $as_echo_n 0123456789 >"conftest.in" 4571 while : 4572 do 4573 cat "conftest.in" "conftest.in" >"conftest.tmp" 4574 mv "conftest.tmp" "conftest.in" 4575 cp "conftest.in" "conftest.nl" 4576 $as_echo 'EGREP' >> "conftest.nl" 4577 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4578 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4579 as_fn_arith $ac_count + 1 && ac_count=$as_val 4580 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4581 # Best one so far, save it but keep looking for a better one 4582 ac_cv_path_EGREP="$ac_path_EGREP" 4583 ac_path_EGREP_max=$ac_count 4584 fi 4585 # 10*(2^10) chars as input seems more than enough 4586 test $ac_count -gt 10 && break 4587 done 4588 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4589esac 4590 4591 $ac_path_EGREP_found && break 3 4592 done 4593 done 4594 done 4595IFS=$as_save_IFS 4596 if test -z "$ac_cv_path_EGREP"; then 4597 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4598 fi 4599else 4600 ac_cv_path_EGREP=$EGREP 4601fi 4602 4603 fi 4604fi 4605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4606$as_echo "$ac_cv_path_EGREP" >&6; } 4607 EGREP="$ac_cv_path_EGREP" 4608 4609 4610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4611$as_echo_n "checking for ANSI C header files... " >&6; } 4612if ${ac_cv_header_stdc+:} false; then : 4613 $as_echo_n "(cached) " >&6 4614else 4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4616/* end confdefs.h. */ 4617#include <stdlib.h> 4618#include <stdarg.h> 4619#include <string.h> 4620#include <float.h> 4621 4622int 4623main () 4624{ 4625 4626 ; 4627 return 0; 4628} 4629_ACEOF 4630if ac_fn_c_try_compile "$LINENO"; then : 4631 ac_cv_header_stdc=yes 4632else 4633 ac_cv_header_stdc=no 4634fi 4635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4636 4637if test $ac_cv_header_stdc = yes; then 4638 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4640/* end confdefs.h. */ 4641#include <string.h> 4642 4643_ACEOF 4644if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4645 $EGREP "memchr" >/dev/null 2>&1; then : 4646 4647else 4648 ac_cv_header_stdc=no 4649fi 4650rm -f conftest* 4651 4652fi 4653 4654if test $ac_cv_header_stdc = yes; then 4655 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4657/* end confdefs.h. */ 4658#include <stdlib.h> 4659 4660_ACEOF 4661if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4662 $EGREP "free" >/dev/null 2>&1; then : 4663 4664else 4665 ac_cv_header_stdc=no 4666fi 4667rm -f conftest* 4668 4669fi 4670 4671if test $ac_cv_header_stdc = yes; then 4672 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4673 if test "$cross_compiling" = yes; then : 4674 : 4675else 4676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4677/* end confdefs.h. */ 4678#include <ctype.h> 4679#include <stdlib.h> 4680#if ((' ' & 0x0FF) == 0x020) 4681# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4682# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4683#else 4684# define ISLOWER(c) \ 4685 (('a' <= (c) && (c) <= 'i') \ 4686 || ('j' <= (c) && (c) <= 'r') \ 4687 || ('s' <= (c) && (c) <= 'z')) 4688# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4689#endif 4690 4691#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4692int 4693main () 4694{ 4695 int i; 4696 for (i = 0; i < 256; i++) 4697 if (XOR (islower (i), ISLOWER (i)) 4698 || toupper (i) != TOUPPER (i)) 4699 return 2; 4700 return 0; 4701} 4702_ACEOF 4703if ac_fn_c_try_run "$LINENO"; then : 4704 4705else 4706 ac_cv_header_stdc=no 4707fi 4708rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4709 conftest.$ac_objext conftest.beam conftest.$ac_ext 4710fi 4711 4712fi 4713fi 4714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4715$as_echo "$ac_cv_header_stdc" >&6; } 4716if test $ac_cv_header_stdc = yes; then 4717 4718$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4719 4720fi 4721 4722# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4723for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4724 inttypes.h stdint.h unistd.h 4725do : 4726 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4727ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4728" 4729if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4730 cat >>confdefs.h <<_ACEOF 4731#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4732_ACEOF 4733 4734fi 4735 4736done 4737 4738 4739 4740 apu_have_crypto=0 4741 apu_have_openssl=0 4742 apu_have_nss=0 4743 apu_have_commoncrypto=0 4744 4745 old_libs="$LIBS" 4746 old_cppflags="$CPPFLAGS" 4747 old_ldflags="$LDFLAGS" 4748 4749 4750# Check whether --with-crypto was given. 4751if test "${with_crypto+set}" = set; then : 4752 withval=$with_crypto; 4753 cryptolibs="openssl nss commoncrypto" 4754 4755 if test "$withval" = "yes"; then 4756 4757 crypto_library_enabled=0 4758 for cryptolib in $cryptolibs; do 4759 eval v=\$with_$cryptolib 4760 if test "$v" != "" -a "$v" != "no"; then 4761 crypto_library_enabled=1 4762 fi 4763 done 4764 4765 if test "$crypto_library_enabled" = "0"; then 4766 for cryptolib in $cryptolibs; do 4767 eval v=\$with_$cryptolib 4768 if test "$v" != "no"; then 4769 eval with_$cryptolib=yes 4770 crypto_library_enabled=1 4771 fi 4772 done 4773 if test "$crypto_library_enabled" = "1"; then 4774 { $as_echo "$as_me:${as_lineno-$LINENO}: Crypto was requested but no crypto library was found; autodetecting possible libraries" >&5 4775$as_echo "$as_me: Crypto was requested but no crypto library was found; autodetecting possible libraries" >&6;} 4776 else 4777 as_fn_error $? "Crypto was requested but all possible crypto libraries were disabled." "$LINENO" 5 4778 fi 4779 fi 4780 4781 4782 openssl_have_headers=0 4783 openssl_have_libs=0 4784 4785 old_libs="$LIBS" 4786 old_cppflags="$CPPFLAGS" 4787 old_ldflags="$LDFLAGS" 4788 4789 4790# Check whether --with-openssl was given. 4791if test "${with_openssl+set}" = set; then : 4792 withval=$with_openssl; 4793 if test "$withval" = "yes"; then 4794 for ac_header in openssl/x509.h 4795do : 4796 ac_fn_c_check_header_mongrel "$LINENO" "openssl/x509.h" "ac_cv_header_openssl_x509_h" "$ac_includes_default" 4797if test "x$ac_cv_header_openssl_x509_h" = xyes; then : 4798 cat >>confdefs.h <<_ACEOF 4799#define HAVE_OPENSSL_X509_H 1 4800_ACEOF 4801 openssl_have_headers=1 4802fi 4803 4804done 4805 4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_CIPHER_CTX_new in -lcrypto" >&5 4807$as_echo_n "checking for EVP_CIPHER_CTX_new in -lcrypto... " >&6; } 4808if ${ac_cv_lib_crypto_EVP_CIPHER_CTX_new+:} false; then : 4809 $as_echo_n "(cached) " >&6 4810else 4811 ac_check_lib_save_LIBS=$LIBS 4812LIBS="-lcrypto $LIBS" 4813cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4814/* end confdefs.h. */ 4815 4816/* Override any GCC internal prototype to avoid an error. 4817 Use char because int might match the return type of a GCC 4818 builtin and then its argument prototype would still apply. */ 4819#ifdef __cplusplus 4820extern "C" 4821#endif 4822char EVP_CIPHER_CTX_new (); 4823int 4824main () 4825{ 4826return EVP_CIPHER_CTX_new (); 4827 ; 4828 return 0; 4829} 4830_ACEOF 4831if ac_fn_c_try_link "$LINENO"; then : 4832 ac_cv_lib_crypto_EVP_CIPHER_CTX_new=yes 4833else 4834 ac_cv_lib_crypto_EVP_CIPHER_CTX_new=no 4835fi 4836rm -f core conftest.err conftest.$ac_objext \ 4837 conftest$ac_exeext conftest.$ac_ext 4838LIBS=$ac_check_lib_save_LIBS 4839fi 4840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_CIPHER_CTX_new" >&5 4841$as_echo "$ac_cv_lib_crypto_EVP_CIPHER_CTX_new" >&6; } 4842if test "x$ac_cv_lib_crypto_EVP_CIPHER_CTX_new" = xyes; then : 4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_accept in -lssl" >&5 4844$as_echo_n "checking for SSL_accept in -lssl... " >&6; } 4845if ${ac_cv_lib_ssl_SSL_accept+:} false; then : 4846 $as_echo_n "(cached) " >&6 4847else 4848 ac_check_lib_save_LIBS=$LIBS 4849LIBS="-lssl -lcrypto $LIBS" 4850cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4851/* end confdefs.h. */ 4852 4853/* Override any GCC internal prototype to avoid an error. 4854 Use char because int might match the return type of a GCC 4855 builtin and then its argument prototype would still apply. */ 4856#ifdef __cplusplus 4857extern "C" 4858#endif 4859char SSL_accept (); 4860int 4861main () 4862{ 4863return SSL_accept (); 4864 ; 4865 return 0; 4866} 4867_ACEOF 4868if ac_fn_c_try_link "$LINENO"; then : 4869 ac_cv_lib_ssl_SSL_accept=yes 4870else 4871 ac_cv_lib_ssl_SSL_accept=no 4872fi 4873rm -f core conftest.err conftest.$ac_objext \ 4874 conftest$ac_exeext conftest.$ac_ext 4875LIBS=$ac_check_lib_save_LIBS 4876fi 4877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_accept" >&5 4878$as_echo "$ac_cv_lib_ssl_SSL_accept" >&6; } 4879if test "x$ac_cv_lib_ssl_SSL_accept" = xyes; then : 4880 openssl_have_libs=1 4881fi 4882 4883fi 4884 4885 if test "$openssl_have_headers" != "0" && test "$openssl_have_libs" != "0"; then 4886 apu_have_openssl=1 4887 fi 4888 elif test "$withval" = "no"; then 4889 apu_have_openssl=0 4890 else 4891 4892 openssl_CPPFLAGS="-I$withval/include" 4893 openssl_LDFLAGS="-L$withval/lib " 4894 4895 4896 if test "x$CPPFLAGS" = "x"; then 4897 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$openssl_CPPFLAGS\"" 4898 CPPFLAGS="$openssl_CPPFLAGS" 4899 else 4900 apr_addto_bugger="$openssl_CPPFLAGS" 4901 for i in $apr_addto_bugger; do 4902 apr_addto_duplicate="0" 4903 for j in $CPPFLAGS; do 4904 if test "x$i" = "x$j"; then 4905 apr_addto_duplicate="1" 4906 break 4907 fi 4908 done 4909 if test $apr_addto_duplicate = "0"; then 4910 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 4911 CPPFLAGS="$CPPFLAGS $i" 4912 fi 4913 done 4914 fi 4915 4916 4917 if test "x$LDFLAGS" = "x"; then 4918 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$openssl_LDFLAGS\"" 4919 LDFLAGS="$openssl_LDFLAGS" 4920 else 4921 apr_addto_bugger="$openssl_LDFLAGS" 4922 for i in $apr_addto_bugger; do 4923 apr_addto_duplicate="0" 4924 for j in $LDFLAGS; do 4925 if test "x$i" = "x$j"; then 4926 apr_addto_duplicate="1" 4927 break 4928 fi 4929 done 4930 if test $apr_addto_duplicate = "0"; then 4931 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 4932 LDFLAGS="$LDFLAGS $i" 4933 fi 4934 done 4935 fi 4936 4937 4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl in $withval" >&5 4939$as_echo "$as_me: checking for openssl in $withval" >&6;} 4940 for ac_header in openssl/x509.h 4941do : 4942 ac_fn_c_check_header_mongrel "$LINENO" "openssl/x509.h" "ac_cv_header_openssl_x509_h" "$ac_includes_default" 4943if test "x$ac_cv_header_openssl_x509_h" = xyes; then : 4944 cat >>confdefs.h <<_ACEOF 4945#define HAVE_OPENSSL_X509_H 1 4946_ACEOF 4947 openssl_have_headers=1 4948fi 4949 4950done 4951 4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_CIPHER_CTX_new in -lcrypto" >&5 4953$as_echo_n "checking for EVP_CIPHER_CTX_new in -lcrypto... " >&6; } 4954if ${ac_cv_lib_crypto_EVP_CIPHER_CTX_new+:} false; then : 4955 $as_echo_n "(cached) " >&6 4956else 4957 ac_check_lib_save_LIBS=$LIBS 4958LIBS="-lcrypto $LIBS" 4959cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4960/* end confdefs.h. */ 4961 4962/* Override any GCC internal prototype to avoid an error. 4963 Use char because int might match the return type of a GCC 4964 builtin and then its argument prototype would still apply. */ 4965#ifdef __cplusplus 4966extern "C" 4967#endif 4968char EVP_CIPHER_CTX_new (); 4969int 4970main () 4971{ 4972return EVP_CIPHER_CTX_new (); 4973 ; 4974 return 0; 4975} 4976_ACEOF 4977if ac_fn_c_try_link "$LINENO"; then : 4978 ac_cv_lib_crypto_EVP_CIPHER_CTX_new=yes 4979else 4980 ac_cv_lib_crypto_EVP_CIPHER_CTX_new=no 4981fi 4982rm -f core conftest.err conftest.$ac_objext \ 4983 conftest$ac_exeext conftest.$ac_ext 4984LIBS=$ac_check_lib_save_LIBS 4985fi 4986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_CIPHER_CTX_new" >&5 4987$as_echo "$ac_cv_lib_crypto_EVP_CIPHER_CTX_new" >&6; } 4988if test "x$ac_cv_lib_crypto_EVP_CIPHER_CTX_new" = xyes; then : 4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_accept in -lssl" >&5 4990$as_echo_n "checking for SSL_accept in -lssl... " >&6; } 4991if ${ac_cv_lib_ssl_SSL_accept+:} false; then : 4992 $as_echo_n "(cached) " >&6 4993else 4994 ac_check_lib_save_LIBS=$LIBS 4995LIBS="-lssl -lcrypto $LIBS" 4996cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4997/* end confdefs.h. */ 4998 4999/* Override any GCC internal prototype to avoid an error. 5000 Use char because int might match the return type of a GCC 5001 builtin and then its argument prototype would still apply. */ 5002#ifdef __cplusplus 5003extern "C" 5004#endif 5005char SSL_accept (); 5006int 5007main () 5008{ 5009return SSL_accept (); 5010 ; 5011 return 0; 5012} 5013_ACEOF 5014if ac_fn_c_try_link "$LINENO"; then : 5015 ac_cv_lib_ssl_SSL_accept=yes 5016else 5017 ac_cv_lib_ssl_SSL_accept=no 5018fi 5019rm -f core conftest.err conftest.$ac_objext \ 5020 conftest$ac_exeext conftest.$ac_ext 5021LIBS=$ac_check_lib_save_LIBS 5022fi 5023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_accept" >&5 5024$as_echo "$ac_cv_lib_ssl_SSL_accept" >&6; } 5025if test "x$ac_cv_lib_ssl_SSL_accept" = xyes; then : 5026 openssl_have_libs=1 5027fi 5028 5029fi 5030 5031 if test "$openssl_have_headers" != "0" && test "$openssl_have_libs" != "0"; then 5032 apu_have_openssl=1 5033 5034 if test "x$APRUTIL_LDFLAGS" = "x"; then 5035 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$withval/lib\"" 5036 APRUTIL_LDFLAGS="-L$withval/lib" 5037 else 5038 apr_addto_bugger="-L$withval/lib" 5039 for i in $apr_addto_bugger; do 5040 apr_addto_duplicate="0" 5041 for j in $APRUTIL_LDFLAGS; do 5042 if test "x$i" = "x$j"; then 5043 apr_addto_duplicate="1" 5044 break 5045 fi 5046 done 5047 if test $apr_addto_duplicate = "0"; then 5048 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 5049 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 5050 fi 5051 done 5052 fi 5053 5054 5055 if test "x$APRUTIL_INCLUDES" = "x"; then 5056 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$withval/include\"" 5057 APRUTIL_INCLUDES="-I$withval/include" 5058 else 5059 apr_addto_bugger="-I$withval/include" 5060 for i in $apr_addto_bugger; do 5061 apr_addto_duplicate="0" 5062 for j in $APRUTIL_INCLUDES; do 5063 if test "x$i" = "x$j"; then 5064 apr_addto_duplicate="1" 5065 break 5066 fi 5067 done 5068 if test $apr_addto_duplicate = "0"; then 5069 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 5070 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 5071 fi 5072 done 5073 fi 5074 5075 fi 5076 5077 ac_fn_c_check_decl "$LINENO" "EVP_PKEY_CTX_new" "ac_cv_have_decl_EVP_PKEY_CTX_new" "#include <openssl/evp.h> 5078" 5079if test "x$ac_cv_have_decl_EVP_PKEY_CTX_new" = xyes; then : 5080 ac_have_decl=1 5081else 5082 ac_have_decl=0 5083fi 5084 5085cat >>confdefs.h <<_ACEOF 5086#define HAVE_DECL_EVP_PKEY_CTX_NEW $ac_have_decl 5087_ACEOF 5088 5089 5090 fi 5091 5092else 5093 5094 apu_have_openssl=0 5095 5096fi 5097 5098 5099 5100 5101 if test "$apu_have_openssl" = "1"; then 5102 5103 if test "x$LDADD_crypto_openssl" = "x"; then 5104 test "x$silent" != "xyes" && echo " setting LDADD_crypto_openssl to \"$openssl_LDFLAGS -lssl -lcrypto\"" 5105 LDADD_crypto_openssl="$openssl_LDFLAGS -lssl -lcrypto" 5106 else 5107 apr_addto_bugger="$openssl_LDFLAGS -lssl -lcrypto" 5108 for i in $apr_addto_bugger; do 5109 apr_addto_duplicate="0" 5110 for j in $LDADD_crypto_openssl; do 5111 if test "x$i" = "x$j"; then 5112 apr_addto_duplicate="1" 5113 break 5114 fi 5115 done 5116 if test $apr_addto_duplicate = "0"; then 5117 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_crypto_openssl" 5118 LDADD_crypto_openssl="$LDADD_crypto_openssl $i" 5119 fi 5120 done 5121 fi 5122 5123 apu_have_crypto=1 5124 5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const input buffers in OpenSSL" >&5 5126$as_echo_n "checking for const input buffers in OpenSSL... " >&6; } 5127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5128/* end confdefs.h. */ 5129#include <openssl/rsa.h> 5130int 5131main () 5132{ 5133 const unsigned char * buf; 5134 unsigned char * outbuf; 5135 RSA rsa; 5136 5137 RSA_private_decrypt(1, 5138 buf, 5139 outbuf, 5140 &rsa, 5141 RSA_PKCS1_PADDING); 5142 5143 5144 ; 5145 return 0; 5146} 5147_ACEOF 5148if ac_fn_c_try_compile "$LINENO"; then : 5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5150$as_echo "yes" >&6; } 5151 5152$as_echo "#define CRYPTO_OPENSSL_CONST_BUFFERS 1" >>confdefs.h 5153 5154else 5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5156$as_echo "no" >&6; } 5157fi 5158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5159 5160 fi 5161 5162 5163 5164 LIBS="$old_libs" 5165 CPPFLAGS="$old_cppflags" 5166 LDFLAGS="$old_ldflags" 5167 5168 5169 nss_have_libs=0 5170 5171 old_libs="$LIBS" 5172 old_cppflags="$CPPFLAGS" 5173 old_ldflags="$LDFLAGS" 5174 5175 5176# Check whether --with-nss was given. 5177if test "${with_nss+set}" = set; then : 5178 withval=$with_nss; 5179 if test "$withval" = "yes"; then 5180 if test -n "$ac_tool_prefix"; then 5181 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 5182set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 5183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5184$as_echo_n "checking for $ac_word... " >&6; } 5185if ${ac_cv_path_PKG_CONFIG+:} false; then : 5186 $as_echo_n "(cached) " >&6 5187else 5188 case $PKG_CONFIG in 5189 [\\/]* | ?:[\\/]*) 5190 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5191 ;; 5192 *) 5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5194for as_dir in $PATH 5195do 5196 IFS=$as_save_IFS 5197 test -z "$as_dir" && as_dir=. 5198 for ac_exec_ext in '' $ac_executable_extensions; do 5199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5200 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5202 break 2 5203 fi 5204done 5205 done 5206IFS=$as_save_IFS 5207 5208 ;; 5209esac 5210fi 5211PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5212if test -n "$PKG_CONFIG"; then 5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 5214$as_echo "$PKG_CONFIG" >&6; } 5215else 5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5217$as_echo "no" >&6; } 5218fi 5219 5220 5221fi 5222if test -z "$ac_cv_path_PKG_CONFIG"; then 5223 ac_pt_PKG_CONFIG=$PKG_CONFIG 5224 # Extract the first word of "pkg-config", so it can be a program name with args. 5225set dummy pkg-config; ac_word=$2 5226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5227$as_echo_n "checking for $ac_word... " >&6; } 5228if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 5229 $as_echo_n "(cached) " >&6 5230else 5231 case $ac_pt_PKG_CONFIG in 5232 [\\/]* | ?:[\\/]*) 5233 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 5234 ;; 5235 *) 5236 as_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_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 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 5251 ;; 5252esac 5253fi 5254ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 5255if test -n "$ac_pt_PKG_CONFIG"; then 5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 5257$as_echo "$ac_pt_PKG_CONFIG" >&6; } 5258else 5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5260$as_echo "no" >&6; } 5261fi 5262 5263 if test "x$ac_pt_PKG_CONFIG" = x; then 5264 PKG_CONFIG="" 5265 else 5266 case $cross_compiling:$ac_tool_warned in 5267yes:) 5268{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5269$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5270ac_tool_warned=yes ;; 5271esac 5272 PKG_CONFIG=$ac_pt_PKG_CONFIG 5273 fi 5274else 5275 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5276fi 5277 5278 if test -n "$PKG_CONFIG"; then 5279 nss_CPPFLAGS=`$PKG_CONFIG --cflags-only-I nss` 5280 nss_LDFLAGS=`$PKG_CONFIG --libs nss` 5281 5282 if test "x$CPPFLAGS" = "x"; then 5283 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$nss_CPPFLAGS\"" 5284 CPPFLAGS="$nss_CPPFLAGS" 5285 else 5286 apr_addto_bugger="$nss_CPPFLAGS" 5287 for i in $apr_addto_bugger; do 5288 apr_addto_duplicate="0" 5289 for j in $CPPFLAGS; do 5290 if test "x$i" = "x$j"; then 5291 apr_addto_duplicate="1" 5292 break 5293 fi 5294 done 5295 if test $apr_addto_duplicate = "0"; then 5296 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 5297 CPPFLAGS="$CPPFLAGS $i" 5298 fi 5299 done 5300 fi 5301 5302 5303 if test "x$LDFLAGS" = "x"; then 5304 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$nss_LDFLAGS\"" 5305 LDFLAGS="$nss_LDFLAGS" 5306 else 5307 apr_addto_bugger="$nss_LDFLAGS" 5308 for i in $apr_addto_bugger; do 5309 apr_addto_duplicate="0" 5310 for j in $LDFLAGS; do 5311 if test "x$i" = "x$j"; then 5312 apr_addto_duplicate="1" 5313 break 5314 fi 5315 done 5316 if test $apr_addto_duplicate = "0"; then 5317 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 5318 LDFLAGS="$LDFLAGS $i" 5319 fi 5320 done 5321 fi 5322 5323 fi 5324 nss_have_prerrorh=0 5325 nss_have_nssh=0 5326 nss_have_pk11pubh=0 5327 for ac_header in prerror.h 5328do : 5329 ac_fn_c_check_header_mongrel "$LINENO" "prerror.h" "ac_cv_header_prerror_h" "$ac_includes_default" 5330if test "x$ac_cv_header_prerror_h" = xyes; then : 5331 cat >>confdefs.h <<_ACEOF 5332#define HAVE_PRERROR_H 1 5333_ACEOF 5334 nss_have_prerrorh=1 5335fi 5336 5337done 5338 5339 for ac_header in nss/nss.h nss.h 5340do : 5341 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5342ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5343if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5344 cat >>confdefs.h <<_ACEOF 5345#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5346_ACEOF 5347 nss_have_nssh=1 5348fi 5349 5350done 5351 5352 for ac_header in nss/pk11pub.h pk11pub.h 5353do : 5354 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5355ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5356if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5357 cat >>confdefs.h <<_ACEOF 5358#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5359_ACEOF 5360 nss_have_pk11pubh=1 5361fi 5362 5363done 5364 5365 nss_have_headers=${nss_have_prerrorh}${nss_have_nssh}${nss_have_pk11pubh} 5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Initialize in -lnspr4" >&5 5367$as_echo_n "checking for PR_Initialize in -lnspr4... " >&6; } 5368if ${ac_cv_lib_nspr4_PR_Initialize+:} false; then : 5369 $as_echo_n "(cached) " >&6 5370else 5371 ac_check_lib_save_LIBS=$LIBS 5372LIBS="-lnspr4 $LIBS" 5373cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5374/* end confdefs.h. */ 5375 5376/* Override any GCC internal prototype to avoid an error. 5377 Use char because int might match the return type of a GCC 5378 builtin and then its argument prototype would still apply. */ 5379#ifdef __cplusplus 5380extern "C" 5381#endif 5382char PR_Initialize (); 5383int 5384main () 5385{ 5386return PR_Initialize (); 5387 ; 5388 return 0; 5389} 5390_ACEOF 5391if ac_fn_c_try_link "$LINENO"; then : 5392 ac_cv_lib_nspr4_PR_Initialize=yes 5393else 5394 ac_cv_lib_nspr4_PR_Initialize=no 5395fi 5396rm -f core conftest.err conftest.$ac_objext \ 5397 conftest$ac_exeext conftest.$ac_ext 5398LIBS=$ac_check_lib_save_LIBS 5399fi 5400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr4_PR_Initialize" >&5 5401$as_echo "$ac_cv_lib_nspr4_PR_Initialize" >&6; } 5402if test "x$ac_cv_lib_nspr4_PR_Initialize" = xyes; then : 5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PK11_CreatePBEV2AlgorithmID in -lnss3" >&5 5404$as_echo_n "checking for PK11_CreatePBEV2AlgorithmID in -lnss3... " >&6; } 5405if ${ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID+:} false; then : 5406 $as_echo_n "(cached) " >&6 5407else 5408 ac_check_lib_save_LIBS=$LIBS 5409LIBS="-lnss3 -lnspr4 $LIBS" 5410cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5411/* end confdefs.h. */ 5412 5413/* Override any GCC internal prototype to avoid an error. 5414 Use char because int might match the return type of a GCC 5415 builtin and then its argument prototype would still apply. */ 5416#ifdef __cplusplus 5417extern "C" 5418#endif 5419char PK11_CreatePBEV2AlgorithmID (); 5420int 5421main () 5422{ 5423return PK11_CreatePBEV2AlgorithmID (); 5424 ; 5425 return 0; 5426} 5427_ACEOF 5428if ac_fn_c_try_link "$LINENO"; then : 5429 ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID=yes 5430else 5431 ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID=no 5432fi 5433rm -f core conftest.err conftest.$ac_objext \ 5434 conftest$ac_exeext conftest.$ac_ext 5435LIBS=$ac_check_lib_save_LIBS 5436fi 5437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID" >&5 5438$as_echo "$ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID" >&6; } 5439if test "x$ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID" = xyes; then : 5440 nss_have_libs=1 5441fi 5442 5443fi 5444 5445 if test "$nss_have_headers" = "111" && test "$nss_have_libs" != "0"; then 5446 apu_have_nss=1 5447 fi 5448 elif test "$withval" = "no"; then 5449 apu_have_nss=0 5450 elif test "x$withval" != "x"; then 5451 5452 nss_CPPFLAGS="-I$withval/include/nss -I$withval/include/nss3 -I$withval/include/nspr -I$withval/include/nspr4 -I$withval/include -I$withval/../public" 5453 nss_LDFLAGS="-L$withval/lib " 5454 5455 5456 if test "x$CPPFLAGS" = "x"; then 5457 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$nss_CPPFLAGS\"" 5458 CPPFLAGS="$nss_CPPFLAGS" 5459 else 5460 apr_addto_bugger="$nss_CPPFLAGS" 5461 for i in $apr_addto_bugger; do 5462 apr_addto_duplicate="0" 5463 for j in $CPPFLAGS; do 5464 if test "x$i" = "x$j"; then 5465 apr_addto_duplicate="1" 5466 break 5467 fi 5468 done 5469 if test $apr_addto_duplicate = "0"; then 5470 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 5471 CPPFLAGS="$CPPFLAGS $i" 5472 fi 5473 done 5474 fi 5475 5476 5477 if test "x$LDFLAGS" = "x"; then 5478 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$nss_LDFLAGS\"" 5479 LDFLAGS="$nss_LDFLAGS" 5480 else 5481 apr_addto_bugger="$nss_LDFLAGS" 5482 for i in $apr_addto_bugger; do 5483 apr_addto_duplicate="0" 5484 for j in $LDFLAGS; do 5485 if test "x$i" = "x$j"; then 5486 apr_addto_duplicate="1" 5487 break 5488 fi 5489 done 5490 if test $apr_addto_duplicate = "0"; then 5491 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 5492 LDFLAGS="$LDFLAGS $i" 5493 fi 5494 done 5495 fi 5496 5497 5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss in $withval" >&5 5499$as_echo "$as_me: checking for nss in $withval" >&6;} 5500 nss_have_prerrorh=0 5501 nss_have_nssh=0 5502 nss_have_pk11pubh=0 5503 for ac_header in prerror.h 5504do : 5505 ac_fn_c_check_header_mongrel "$LINENO" "prerror.h" "ac_cv_header_prerror_h" "$ac_includes_default" 5506if test "x$ac_cv_header_prerror_h" = xyes; then : 5507 cat >>confdefs.h <<_ACEOF 5508#define HAVE_PRERROR_H 1 5509_ACEOF 5510 nss_have_prerrorh=1 5511fi 5512 5513done 5514 5515 for ac_header in nss/nss.h nss.h 5516do : 5517 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5518ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5519if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5520 cat >>confdefs.h <<_ACEOF 5521#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5522_ACEOF 5523 nss_have_nssh=1 5524fi 5525 5526done 5527 5528 for ac_header in nss/pk11pub.h pk11pub.h 5529do : 5530 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5531ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5532if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5533 cat >>confdefs.h <<_ACEOF 5534#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5535_ACEOF 5536 nss_have_pk11pubh=1 5537fi 5538 5539done 5540 5541 nss_have_headers=${nss_have_prerrorh}${nss_have_nssh}${nss_have_pk11pubh} 5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Initialize in -lnspr4" >&5 5543$as_echo_n "checking for PR_Initialize in -lnspr4... " >&6; } 5544if ${ac_cv_lib_nspr4_PR_Initialize+:} false; then : 5545 $as_echo_n "(cached) " >&6 5546else 5547 ac_check_lib_save_LIBS=$LIBS 5548LIBS="-lnspr4 $LIBS" 5549cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5550/* end confdefs.h. */ 5551 5552/* Override any GCC internal prototype to avoid an error. 5553 Use char because int might match the return type of a GCC 5554 builtin and then its argument prototype would still apply. */ 5555#ifdef __cplusplus 5556extern "C" 5557#endif 5558char PR_Initialize (); 5559int 5560main () 5561{ 5562return PR_Initialize (); 5563 ; 5564 return 0; 5565} 5566_ACEOF 5567if ac_fn_c_try_link "$LINENO"; then : 5568 ac_cv_lib_nspr4_PR_Initialize=yes 5569else 5570 ac_cv_lib_nspr4_PR_Initialize=no 5571fi 5572rm -f core conftest.err conftest.$ac_objext \ 5573 conftest$ac_exeext conftest.$ac_ext 5574LIBS=$ac_check_lib_save_LIBS 5575fi 5576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr4_PR_Initialize" >&5 5577$as_echo "$ac_cv_lib_nspr4_PR_Initialize" >&6; } 5578if test "x$ac_cv_lib_nspr4_PR_Initialize" = xyes; then : 5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PK11_CreatePBEV2AlgorithmID in -lnss3" >&5 5580$as_echo_n "checking for PK11_CreatePBEV2AlgorithmID in -lnss3... " >&6; } 5581if ${ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID+:} false; then : 5582 $as_echo_n "(cached) " >&6 5583else 5584 ac_check_lib_save_LIBS=$LIBS 5585LIBS="-lnss3 -lnspr4 $LIBS" 5586cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5587/* end confdefs.h. */ 5588 5589/* Override any GCC internal prototype to avoid an error. 5590 Use char because int might match the return type of a GCC 5591 builtin and then its argument prototype would still apply. */ 5592#ifdef __cplusplus 5593extern "C" 5594#endif 5595char PK11_CreatePBEV2AlgorithmID (); 5596int 5597main () 5598{ 5599return PK11_CreatePBEV2AlgorithmID (); 5600 ; 5601 return 0; 5602} 5603_ACEOF 5604if ac_fn_c_try_link "$LINENO"; then : 5605 ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID=yes 5606else 5607 ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID=no 5608fi 5609rm -f core conftest.err conftest.$ac_objext \ 5610 conftest$ac_exeext conftest.$ac_ext 5611LIBS=$ac_check_lib_save_LIBS 5612fi 5613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID" >&5 5614$as_echo "$ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID" >&6; } 5615if test "x$ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID" = xyes; then : 5616 nss_have_libs=1 5617fi 5618 5619fi 5620 5621 if test "$nss_have_headers" = "111" && test "$nss_have_libs" != "0"; then 5622 apu_have_nss=1 5623 fi 5624 5625 fi 5626 if test "$apu_have_nss" != "0"; then 5627 5628 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 5629 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"$nss_CPPFLAGS\"" 5630 APRUTIL_PRIV_INCLUDES="$nss_CPPFLAGS" 5631 else 5632 apr_addto_bugger="$nss_CPPFLAGS" 5633 for i in $apr_addto_bugger; do 5634 apr_addto_duplicate="0" 5635 for j in $APRUTIL_PRIV_INCLUDES; do 5636 if test "x$i" = "x$j"; then 5637 apr_addto_duplicate="1" 5638 break 5639 fi 5640 done 5641 if test $apr_addto_duplicate = "0"; then 5642 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 5643 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 5644 fi 5645 done 5646 fi 5647 5648 fi 5649 5650else 5651 5652 apu_have_nss=0 5653 5654fi 5655 5656 5657 5658 5659 if test "$apu_have_nss" = "1"; then 5660 5661 if test "x$LDADD_crypto_nss" = "x"; then 5662 test "x$silent" != "xyes" && echo " setting LDADD_crypto_nss to \"$nss_LDFLAGS -lnspr4 -lnss3\"" 5663 LDADD_crypto_nss="$nss_LDFLAGS -lnspr4 -lnss3" 5664 else 5665 apr_addto_bugger="$nss_LDFLAGS -lnspr4 -lnss3" 5666 for i in $apr_addto_bugger; do 5667 apr_addto_duplicate="0" 5668 for j in $LDADD_crypto_nss; do 5669 if test "x$i" = "x$j"; then 5670 apr_addto_duplicate="1" 5671 break 5672 fi 5673 done 5674 if test $apr_addto_duplicate = "0"; then 5675 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_crypto_nss" 5676 LDADD_crypto_nss="$LDADD_crypto_nss $i" 5677 fi 5678 done 5679 fi 5680 5681 apu_have_crypto=1 5682 fi 5683 5684 5685 5686 LIBS="$old_libs" 5687 CPPFLAGS="$old_cppflags" 5688 LDFLAGS="$old_ldflags" 5689 5690 5691 apu_have_commoncrypto=0 5692 commoncrypto_have_headers=0 5693 commoncrypto_have_libs=0 5694 5695 old_libs="$LIBS" 5696 old_cppflags="$CPPFLAGS" 5697 old_ldflags="$LDFLAGS" 5698 5699 5700# Check whether --with-commoncrypto was given. 5701if test "${with_commoncrypto+set}" = set; then : 5702 withval=$with_commoncrypto; 5703 if test "$withval" = "yes"; then 5704 for ac_header in CommonCrypto/CommonKeyDerivation.h 5705do : 5706 ac_fn_c_check_header_mongrel "$LINENO" "CommonCrypto/CommonKeyDerivation.h" "ac_cv_header_CommonCrypto_CommonKeyDerivation_h" "$ac_includes_default" 5707if test "x$ac_cv_header_CommonCrypto_CommonKeyDerivation_h" = xyes; then : 5708 cat >>confdefs.h <<_ACEOF 5709#define HAVE_COMMONCRYPTO_COMMONKEYDERIVATION_H 1 5710_ACEOF 5711 commoncrypto_have_headers=1 5712fi 5713 5714done 5715 5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCKeyDerivationPBKDF in -lSystem" >&5 5717$as_echo_n "checking for CCKeyDerivationPBKDF in -lSystem... " >&6; } 5718if ${ac_cv_lib_System_CCKeyDerivationPBKDF+:} false; then : 5719 $as_echo_n "(cached) " >&6 5720else 5721 ac_check_lib_save_LIBS=$LIBS 5722LIBS="-lSystem $LIBS" 5723cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5724/* end confdefs.h. */ 5725 5726/* Override any GCC internal prototype to avoid an error. 5727 Use char because int might match the return type of a GCC 5728 builtin and then its argument prototype would still apply. */ 5729#ifdef __cplusplus 5730extern "C" 5731#endif 5732char CCKeyDerivationPBKDF (); 5733int 5734main () 5735{ 5736return CCKeyDerivationPBKDF (); 5737 ; 5738 return 0; 5739} 5740_ACEOF 5741if ac_fn_c_try_link "$LINENO"; then : 5742 ac_cv_lib_System_CCKeyDerivationPBKDF=yes 5743else 5744 ac_cv_lib_System_CCKeyDerivationPBKDF=no 5745fi 5746rm -f core conftest.err conftest.$ac_objext \ 5747 conftest$ac_exeext conftest.$ac_ext 5748LIBS=$ac_check_lib_save_LIBS 5749fi 5750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_System_CCKeyDerivationPBKDF" >&5 5751$as_echo "$ac_cv_lib_System_CCKeyDerivationPBKDF" >&6; } 5752if test "x$ac_cv_lib_System_CCKeyDerivationPBKDF" = xyes; then : 5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCCryptorCreate in -lSystem" >&5 5754$as_echo_n "checking for CCCryptorCreate in -lSystem... " >&6; } 5755if ${ac_cv_lib_System_CCCryptorCreate+:} false; then : 5756 $as_echo_n "(cached) " >&6 5757else 5758 ac_check_lib_save_LIBS=$LIBS 5759LIBS="-lSystem -lcrypto $LIBS" 5760cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5761/* end confdefs.h. */ 5762 5763/* Override any GCC internal prototype to avoid an error. 5764 Use char because int might match the return type of a GCC 5765 builtin and then its argument prototype would still apply. */ 5766#ifdef __cplusplus 5767extern "C" 5768#endif 5769char CCCryptorCreate (); 5770int 5771main () 5772{ 5773return CCCryptorCreate (); 5774 ; 5775 return 0; 5776} 5777_ACEOF 5778if ac_fn_c_try_link "$LINENO"; then : 5779 ac_cv_lib_System_CCCryptorCreate=yes 5780else 5781 ac_cv_lib_System_CCCryptorCreate=no 5782fi 5783rm -f core conftest.err conftest.$ac_objext \ 5784 conftest$ac_exeext conftest.$ac_ext 5785LIBS=$ac_check_lib_save_LIBS 5786fi 5787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_System_CCCryptorCreate" >&5 5788$as_echo "$ac_cv_lib_System_CCCryptorCreate" >&6; } 5789if test "x$ac_cv_lib_System_CCCryptorCreate" = xyes; then : 5790 commoncrypto_have_libs=1 5791fi 5792 5793fi 5794 5795 if test "$commoncrypto_have_headers" != "0" && test "$commoncrypto_have_libs" != "0"; then 5796 apu_have_commoncrypto=1 5797 fi 5798 elif test "$withval" = "no"; then 5799 apu_have_commoncrypto=0 5800 else 5801 5802 commoncrypto_CPPFLAGS="-I$withval/include" 5803 commoncrypto_LDFLAGS="-L$withval/lib " 5804 5805 5806 if test "x$CPPFLAGS" = "x"; then 5807 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$commoncrypto_CPPFLAGS\"" 5808 CPPFLAGS="$commoncrypto_CPPFLAGS" 5809 else 5810 apr_addto_bugger="$commoncrypto_CPPFLAGS" 5811 for i in $apr_addto_bugger; do 5812 apr_addto_duplicate="0" 5813 for j in $CPPFLAGS; do 5814 if test "x$i" = "x$j"; then 5815 apr_addto_duplicate="1" 5816 break 5817 fi 5818 done 5819 if test $apr_addto_duplicate = "0"; then 5820 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 5821 CPPFLAGS="$CPPFLAGS $i" 5822 fi 5823 done 5824 fi 5825 5826 5827 if test "x$LDFLAGS" = "x"; then 5828 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$commoncrypto_LDFLAGS\"" 5829 LDFLAGS="$commoncrypto_LDFLAGS" 5830 else 5831 apr_addto_bugger="$commoncrypto_LDFLAGS" 5832 for i in $apr_addto_bugger; do 5833 apr_addto_duplicate="0" 5834 for j in $LDFLAGS; do 5835 if test "x$i" = "x$j"; then 5836 apr_addto_duplicate="1" 5837 break 5838 fi 5839 done 5840 if test $apr_addto_duplicate = "0"; then 5841 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 5842 LDFLAGS="$LDFLAGS $i" 5843 fi 5844 done 5845 fi 5846 5847 5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for commoncrypto in $withval" >&5 5849$as_echo "$as_me: checking for commoncrypto in $withval" >&6;} 5850 for ac_header in CommonCrypto/CommonKeyDerivation.h 5851do : 5852 ac_fn_c_check_header_mongrel "$LINENO" "CommonCrypto/CommonKeyDerivation.h" "ac_cv_header_CommonCrypto_CommonKeyDerivation_h" "$ac_includes_default" 5853if test "x$ac_cv_header_CommonCrypto_CommonKeyDerivation_h" = xyes; then : 5854 cat >>confdefs.h <<_ACEOF 5855#define HAVE_COMMONCRYPTO_COMMONKEYDERIVATION_H 1 5856_ACEOF 5857 commoncrypto_have_headers=1 5858fi 5859 5860done 5861 5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCKeyDerivationPBKDF in -lSystem" >&5 5863$as_echo_n "checking for CCKeyDerivationPBKDF in -lSystem... " >&6; } 5864if ${ac_cv_lib_System_CCKeyDerivationPBKDF+:} false; then : 5865 $as_echo_n "(cached) " >&6 5866else 5867 ac_check_lib_save_LIBS=$LIBS 5868LIBS="-lSystem $LIBS" 5869cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5870/* end confdefs.h. */ 5871 5872/* Override any GCC internal prototype to avoid an error. 5873 Use char because int might match the return type of a GCC 5874 builtin and then its argument prototype would still apply. */ 5875#ifdef __cplusplus 5876extern "C" 5877#endif 5878char CCKeyDerivationPBKDF (); 5879int 5880main () 5881{ 5882return CCKeyDerivationPBKDF (); 5883 ; 5884 return 0; 5885} 5886_ACEOF 5887if ac_fn_c_try_link "$LINENO"; then : 5888 ac_cv_lib_System_CCKeyDerivationPBKDF=yes 5889else 5890 ac_cv_lib_System_CCKeyDerivationPBKDF=no 5891fi 5892rm -f core conftest.err conftest.$ac_objext \ 5893 conftest$ac_exeext conftest.$ac_ext 5894LIBS=$ac_check_lib_save_LIBS 5895fi 5896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_System_CCKeyDerivationPBKDF" >&5 5897$as_echo "$ac_cv_lib_System_CCKeyDerivationPBKDF" >&6; } 5898if test "x$ac_cv_lib_System_CCKeyDerivationPBKDF" = xyes; then : 5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCCryptorCreate in -lSystem" >&5 5900$as_echo_n "checking for CCCryptorCreate in -lSystem... " >&6; } 5901if ${ac_cv_lib_System_CCCryptorCreate+:} false; then : 5902 $as_echo_n "(cached) " >&6 5903else 5904 ac_check_lib_save_LIBS=$LIBS 5905LIBS="-lSystem -lcrypto $LIBS" 5906cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5907/* end confdefs.h. */ 5908 5909/* Override any GCC internal prototype to avoid an error. 5910 Use char because int might match the return type of a GCC 5911 builtin and then its argument prototype would still apply. */ 5912#ifdef __cplusplus 5913extern "C" 5914#endif 5915char CCCryptorCreate (); 5916int 5917main () 5918{ 5919return CCCryptorCreate (); 5920 ; 5921 return 0; 5922} 5923_ACEOF 5924if ac_fn_c_try_link "$LINENO"; then : 5925 ac_cv_lib_System_CCCryptorCreate=yes 5926else 5927 ac_cv_lib_System_CCCryptorCreate=no 5928fi 5929rm -f core conftest.err conftest.$ac_objext \ 5930 conftest$ac_exeext conftest.$ac_ext 5931LIBS=$ac_check_lib_save_LIBS 5932fi 5933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_System_CCCryptorCreate" >&5 5934$as_echo "$ac_cv_lib_System_CCCryptorCreate" >&6; } 5935if test "x$ac_cv_lib_System_CCCryptorCreate" = xyes; then : 5936 commoncrypto_have_libs=1 5937fi 5938 5939fi 5940 5941 if test "$commoncrypto_have_headers" != "0" && test "$commoncrypto_have_libs" != "0"; then 5942 apu_have_commoncrypto=1 5943 5944 if test "x$LDFLAGS" = "x"; then 5945 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-L$withval/lib\"" 5946 LDFLAGS="-L$withval/lib" 5947 else 5948 apr_addto_bugger="-L$withval/lib" 5949 for i in $apr_addto_bugger; do 5950 apr_addto_duplicate="0" 5951 for j in $LDFLAGS; do 5952 if test "x$i" = "x$j"; then 5953 apr_addto_duplicate="1" 5954 break 5955 fi 5956 done 5957 if test $apr_addto_duplicate = "0"; then 5958 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 5959 LDFLAGS="$LDFLAGS $i" 5960 fi 5961 done 5962 fi 5963 5964 5965 if test "x$INCLUDES" = "x"; then 5966 test "x$silent" != "xyes" && echo " setting INCLUDES to \"-I$withval/include\"" 5967 INCLUDES="-I$withval/include" 5968 else 5969 apr_addto_bugger="-I$withval/include" 5970 for i in $apr_addto_bugger; do 5971 apr_addto_duplicate="0" 5972 for j in $INCLUDES; do 5973 if test "x$i" = "x$j"; then 5974 apr_addto_duplicate="1" 5975 break 5976 fi 5977 done 5978 if test $apr_addto_duplicate = "0"; then 5979 test "x$silent" != "xyes" && echo " adding \"$i\" to INCLUDES" 5980 INCLUDES="$INCLUDES $i" 5981 fi 5982 done 5983 fi 5984 5985 fi 5986 5987 fi 5988 5989else 5990 5991 apu_have_commoncrypto=0 5992 5993fi 5994 5995 5996 if test "$apu_have_commoncrypto" = "1"; then 5997 apu_have_crypto=1 5998 fi 5999 6000 6001 6002 6003 LIBS="$old_libs" 6004 CPPFLAGS="$old_cppflags" 6005 LDFLAGS="$old_ldflags" 6006 6007 if test "$apu_have_crypto" = "0"; then 6008 as_fn_error $? "Crypto was requested but no crypto library could be enabled; specify the location of a crypto library using --with-openssl, --with-nss, and/or --with-commoncrypto." "$LINENO" 5 6009 fi 6010 fi 6011 6012else 6013 6014 apu_have_crypto=0 6015 6016fi 6017 6018 6019 6020 6021 6022 6023 6024echo $ac_n "${nl}checking for ldap support..." 6025 6026apu_has_ldap="0"; 6027apu_has_ldapssl_client_init="0" 6028apu_has_ldapssl_client_deinit="0" 6029apu_has_ldapssl_add_trusted_cert="0" 6030apu_has_ldap_start_tls_s="0" 6031apu_has_ldapssl_init="0" 6032apu_has_ldap_sslinit="0" 6033apu_has_ldapssl_install_routines="0" 6034apu_has_ldap_openldap="0" 6035apu_has_ldap_solaris="0" 6036apu_has_ldap_novell="0" 6037apu_has_ldap_microsoft="0" 6038apu_has_ldap_netscape="0" 6039apu_has_ldap_mozilla="0" 6040apu_has_ldap_tivoli="0" 6041apu_has_ldap_zos="0" 6042apu_has_ldap_other="0" 6043LDADD_ldap_found="" 6044 6045 6046# Check whether --with-lber was given. 6047if test "${with_lber+set}" = set; then : 6048 withval=$with_lber; 6049 if test "$withval" = "yes"; then 6050 apu_liblber_name="lber" 6051 else 6052 apu_liblber_name="$withval" 6053 fi 6054 6055else 6056 6057 apu_liblber_name="lber" 6058 6059fi 6060 6061 6062 6063# Check whether --with-ldap-include was given. 6064if test "${with_ldap_include+set}" = set; then : 6065 withval=$with_ldap_include; 6066fi 6067 6068 6069# Check whether --with-ldap-lib was given. 6070if test "${with_ldap_lib+set}" = set; then : 6071 withval=$with_ldap_lib; 6072fi 6073 6074 6075# Check whether --with-ldap was given. 6076if test "${with_ldap+set}" = set; then : 6077 withval=$with_ldap; 6078 if test "$with_ldap" != "no"; then 6079 save_cppflags="$CPPFLAGS" 6080 save_ldflags="$LDFLAGS" 6081 save_libs="$LIBS" 6082 if test -n "$with_ldap_include"; then 6083 CPPFLAGS="$CPPFLAGS -I$with_ldap_include" 6084 6085 if test "x$APRUTIL_INCLUDES" = "x"; then 6086 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$with_ldap_include\"" 6087 APRUTIL_INCLUDES="-I$with_ldap_include" 6088 else 6089 apr_addto_bugger="-I$with_ldap_include" 6090 for i in $apr_addto_bugger; do 6091 apr_addto_duplicate="0" 6092 for j in $APRUTIL_INCLUDES; 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 APRUTIL_INCLUDES" 6100 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 6101 fi 6102 done 6103 fi 6104 6105 fi 6106 if test -n "$with_ldap_lib"; then 6107 LDFLAGS="$LDFLAGS -L$with_ldap_lib" 6108 6109 if test "x$APRUTIL_LDFLAGS" = "x"; then 6110 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$with_ldap_lib\"" 6111 APRUTIL_LDFLAGS="-L$with_ldap_lib" 6112 else 6113 apr_addto_bugger="-L$with_ldap_lib" 6114 for i in $apr_addto_bugger; do 6115 apr_addto_duplicate="0" 6116 for j in $APRUTIL_LDFLAGS; do 6117 if test "x$i" = "x$j"; then 6118 apr_addto_duplicate="1" 6119 break 6120 fi 6121 done 6122 if test $apr_addto_duplicate = "0"; then 6123 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 6124 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 6125 fi 6126 done 6127 fi 6128 6129 fi 6130 6131 LIBLDAP="$withval" 6132 if test "$LIBLDAP" = "yes"; then 6133 6134 if test ${apu_has_ldap} != "1"; then 6135 ldaplib="ldap50" 6136 extralib="-lnspr4 -lplc4 -lplds4 -liutil50 -llber50 -lldif50 -lnss3 -lprldap50 -lssl3 -lssldap50" 6137 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 6138 6139 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 6140 6141 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 6142 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 6143 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 6144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 6145$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 6146if eval \${$as_ac_Lib+:} false; then : 6147 $as_echo_n "(cached) " >&6 6148else 6149 ac_check_lib_save_LIBS=$LIBS 6150LIBS="-l${ldaplib} ${extralib} $LIBS" 6151cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6152/* end confdefs.h. */ 6153 6154/* Override any GCC internal prototype to avoid an error. 6155 Use char because int might match the return type of a GCC 6156 builtin and then its argument prototype would still apply. */ 6157#ifdef __cplusplus 6158extern "C" 6159#endif 6160char ldap_init (); 6161int 6162main () 6163{ 6164return ldap_init (); 6165 ; 6166 return 0; 6167} 6168_ACEOF 6169if ac_fn_c_try_link "$LINENO"; then : 6170 eval "$as_ac_Lib=yes" 6171else 6172 eval "$as_ac_Lib=no" 6173fi 6174rm -f core conftest.err conftest.$ac_objext \ 6175 conftest$ac_exeext conftest.$ac_ext 6176LIBS=$ac_check_lib_save_LIBS 6177fi 6178eval ac_res=\$$as_ac_Lib 6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6180$as_echo "$ac_res" >&6; } 6181if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6182 6183 LDADD_ldap_found="-l${ldaplib} ${extralib}" 6184 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 6185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 6186$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 6187if eval \${$as_ac_Lib+:} false; then : 6188 $as_echo_n "(cached) " >&6 6189else 6190 ac_check_lib_save_LIBS=$LIBS 6191LIBS="-l${ldaplib} ${extralib} $LIBS" 6192cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6193/* end confdefs.h. */ 6194 6195/* Override any GCC internal prototype to avoid an error. 6196 Use char because int might match the return type of a GCC 6197 builtin and then its argument prototype would still apply. */ 6198#ifdef __cplusplus 6199extern "C" 6200#endif 6201char ldapssl_client_init (); 6202int 6203main () 6204{ 6205return ldapssl_client_init (); 6206 ; 6207 return 0; 6208} 6209_ACEOF 6210if ac_fn_c_try_link "$LINENO"; then : 6211 eval "$as_ac_Lib=yes" 6212else 6213 eval "$as_ac_Lib=no" 6214fi 6215rm -f core conftest.err conftest.$ac_objext \ 6216 conftest$ac_exeext conftest.$ac_ext 6217LIBS=$ac_check_lib_save_LIBS 6218fi 6219eval ac_res=\$$as_ac_Lib 6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6221$as_echo "$ac_res" >&6; } 6222if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6223 apu_has_ldapssl_client_init="1" 6224fi 6225 6226 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 6227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 6228$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 6229if eval \${$as_ac_Lib+:} false; then : 6230 $as_echo_n "(cached) " >&6 6231else 6232 ac_check_lib_save_LIBS=$LIBS 6233LIBS="-l${ldaplib} ${extralib} $LIBS" 6234cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6235/* end confdefs.h. */ 6236 6237/* Override any GCC internal prototype to avoid an error. 6238 Use char because int might match the return type of a GCC 6239 builtin and then its argument prototype would still apply. */ 6240#ifdef __cplusplus 6241extern "C" 6242#endif 6243char ldapssl_client_deinit (); 6244int 6245main () 6246{ 6247return ldapssl_client_deinit (); 6248 ; 6249 return 0; 6250} 6251_ACEOF 6252if ac_fn_c_try_link "$LINENO"; then : 6253 eval "$as_ac_Lib=yes" 6254else 6255 eval "$as_ac_Lib=no" 6256fi 6257rm -f core conftest.err conftest.$ac_objext \ 6258 conftest$ac_exeext conftest.$ac_ext 6259LIBS=$ac_check_lib_save_LIBS 6260fi 6261eval ac_res=\$$as_ac_Lib 6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6263$as_echo "$ac_res" >&6; } 6264if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6265 apu_has_ldapssl_client_deinit="1" 6266fi 6267 6268 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 6269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 6270$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 6271if eval \${$as_ac_Lib+:} false; then : 6272 $as_echo_n "(cached) " >&6 6273else 6274 ac_check_lib_save_LIBS=$LIBS 6275LIBS="-l${ldaplib} ${extralib} $LIBS" 6276cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6277/* end confdefs.h. */ 6278 6279/* Override any GCC internal prototype to avoid an error. 6280 Use char because int might match the return type of a GCC 6281 builtin and then its argument prototype would still apply. */ 6282#ifdef __cplusplus 6283extern "C" 6284#endif 6285char ldapssl_add_trusted_cert (); 6286int 6287main () 6288{ 6289return ldapssl_add_trusted_cert (); 6290 ; 6291 return 0; 6292} 6293_ACEOF 6294if ac_fn_c_try_link "$LINENO"; then : 6295 eval "$as_ac_Lib=yes" 6296else 6297 eval "$as_ac_Lib=no" 6298fi 6299rm -f core conftest.err conftest.$ac_objext \ 6300 conftest$ac_exeext conftest.$ac_ext 6301LIBS=$ac_check_lib_save_LIBS 6302fi 6303eval ac_res=\$$as_ac_Lib 6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6305$as_echo "$ac_res" >&6; } 6306if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6307 apu_has_ldapssl_add_trusted_cert="1" 6308fi 6309 6310 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 6311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 6312$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 6313if eval \${$as_ac_Lib+:} false; then : 6314 $as_echo_n "(cached) " >&6 6315else 6316 ac_check_lib_save_LIBS=$LIBS 6317LIBS="-l${ldaplib} ${extralib} $LIBS" 6318cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6319/* end confdefs.h. */ 6320 6321/* Override any GCC internal prototype to avoid an error. 6322 Use char because int might match the return type of a GCC 6323 builtin and then its argument prototype would still apply. */ 6324#ifdef __cplusplus 6325extern "C" 6326#endif 6327char ldap_start_tls_s (); 6328int 6329main () 6330{ 6331return ldap_start_tls_s (); 6332 ; 6333 return 0; 6334} 6335_ACEOF 6336if ac_fn_c_try_link "$LINENO"; then : 6337 eval "$as_ac_Lib=yes" 6338else 6339 eval "$as_ac_Lib=no" 6340fi 6341rm -f core conftest.err conftest.$ac_objext \ 6342 conftest$ac_exeext conftest.$ac_ext 6343LIBS=$ac_check_lib_save_LIBS 6344fi 6345eval ac_res=\$$as_ac_Lib 6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6347$as_echo "$ac_res" >&6; } 6348if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6349 apu_has_ldap_start_tls_s="1" 6350fi 6351 6352 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 6353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 6354$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 6355if eval \${$as_ac_Lib+:} false; then : 6356 $as_echo_n "(cached) " >&6 6357else 6358 ac_check_lib_save_LIBS=$LIBS 6359LIBS="-l${ldaplib} ${extralib} $LIBS" 6360cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6361/* end confdefs.h. */ 6362 6363/* Override any GCC internal prototype to avoid an error. 6364 Use char because int might match the return type of a GCC 6365 builtin and then its argument prototype would still apply. */ 6366#ifdef __cplusplus 6367extern "C" 6368#endif 6369char ldap_sslinit (); 6370int 6371main () 6372{ 6373return ldap_sslinit (); 6374 ; 6375 return 0; 6376} 6377_ACEOF 6378if ac_fn_c_try_link "$LINENO"; then : 6379 eval "$as_ac_Lib=yes" 6380else 6381 eval "$as_ac_Lib=no" 6382fi 6383rm -f core conftest.err conftest.$ac_objext \ 6384 conftest$ac_exeext conftest.$ac_ext 6385LIBS=$ac_check_lib_save_LIBS 6386fi 6387eval ac_res=\$$as_ac_Lib 6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6389$as_echo "$ac_res" >&6; } 6390if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6391 apu_has_ldap_sslinit="1" 6392fi 6393 6394 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 6395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 6396$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 6397if eval \${$as_ac_Lib+:} false; then : 6398 $as_echo_n "(cached) " >&6 6399else 6400 ac_check_lib_save_LIBS=$LIBS 6401LIBS="-l${ldaplib} ${extralib} $LIBS" 6402cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6403/* end confdefs.h. */ 6404 6405/* Override any GCC internal prototype to avoid an error. 6406 Use char because int might match the return type of a GCC 6407 builtin and then its argument prototype would still apply. */ 6408#ifdef __cplusplus 6409extern "C" 6410#endif 6411char ldapssl_init (); 6412int 6413main () 6414{ 6415return ldapssl_init (); 6416 ; 6417 return 0; 6418} 6419_ACEOF 6420if ac_fn_c_try_link "$LINENO"; then : 6421 eval "$as_ac_Lib=yes" 6422else 6423 eval "$as_ac_Lib=no" 6424fi 6425rm -f core conftest.err conftest.$ac_objext \ 6426 conftest$ac_exeext conftest.$ac_ext 6427LIBS=$ac_check_lib_save_LIBS 6428fi 6429eval ac_res=\$$as_ac_Lib 6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6431$as_echo "$ac_res" >&6; } 6432if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6433 apu_has_ldapssl_init="1" 6434fi 6435 6436 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 6437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 6438$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 6439if eval \${$as_ac_Lib+:} false; then : 6440 $as_echo_n "(cached) " >&6 6441else 6442 ac_check_lib_save_LIBS=$LIBS 6443LIBS="-l${ldaplib} ${extralib} $LIBS" 6444cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6445/* end confdefs.h. */ 6446 6447/* Override any GCC internal prototype to avoid an error. 6448 Use char because int might match the return type of a GCC 6449 builtin and then its argument prototype would still apply. */ 6450#ifdef __cplusplus 6451extern "C" 6452#endif 6453char ldapssl_install_routines (); 6454int 6455main () 6456{ 6457return ldapssl_install_routines (); 6458 ; 6459 return 0; 6460} 6461_ACEOF 6462if ac_fn_c_try_link "$LINENO"; then : 6463 eval "$as_ac_Lib=yes" 6464else 6465 eval "$as_ac_Lib=no" 6466fi 6467rm -f core conftest.err conftest.$ac_objext \ 6468 conftest$ac_exeext conftest.$ac_ext 6469LIBS=$ac_check_lib_save_LIBS 6470fi 6471eval ac_res=\$$as_ac_Lib 6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6473$as_echo "$ac_res" >&6; } 6474if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6475 apu_has_ldapssl_install_routines="1" 6476fi 6477 6478 apu_has_ldap="1"; 6479 6480fi 6481 6482 fi 6483 6484 6485 if test ${apu_has_ldap} != "1"; then 6486 ldaplib="ldapssl41" 6487 extralib="-lnspr3 -lplc3 -lplds3" 6488 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 6489 6490 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 6491 6492 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 6493 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 6494 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 6495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 6496$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 6497if eval \${$as_ac_Lib+:} false; then : 6498 $as_echo_n "(cached) " >&6 6499else 6500 ac_check_lib_save_LIBS=$LIBS 6501LIBS="-l${ldaplib} ${extralib} $LIBS" 6502cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6503/* end confdefs.h. */ 6504 6505/* Override any GCC internal prototype to avoid an error. 6506 Use char because int might match the return type of a GCC 6507 builtin and then its argument prototype would still apply. */ 6508#ifdef __cplusplus 6509extern "C" 6510#endif 6511char ldap_init (); 6512int 6513main () 6514{ 6515return ldap_init (); 6516 ; 6517 return 0; 6518} 6519_ACEOF 6520if ac_fn_c_try_link "$LINENO"; then : 6521 eval "$as_ac_Lib=yes" 6522else 6523 eval "$as_ac_Lib=no" 6524fi 6525rm -f core conftest.err conftest.$ac_objext \ 6526 conftest$ac_exeext conftest.$ac_ext 6527LIBS=$ac_check_lib_save_LIBS 6528fi 6529eval ac_res=\$$as_ac_Lib 6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6531$as_echo "$ac_res" >&6; } 6532if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6533 6534 LDADD_ldap_found="-l${ldaplib} ${extralib}" 6535 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 6536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 6537$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 6538if eval \${$as_ac_Lib+:} false; then : 6539 $as_echo_n "(cached) " >&6 6540else 6541 ac_check_lib_save_LIBS=$LIBS 6542LIBS="-l${ldaplib} ${extralib} $LIBS" 6543cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6544/* end confdefs.h. */ 6545 6546/* Override any GCC internal prototype to avoid an error. 6547 Use char because int might match the return type of a GCC 6548 builtin and then its argument prototype would still apply. */ 6549#ifdef __cplusplus 6550extern "C" 6551#endif 6552char ldapssl_client_init (); 6553int 6554main () 6555{ 6556return ldapssl_client_init (); 6557 ; 6558 return 0; 6559} 6560_ACEOF 6561if ac_fn_c_try_link "$LINENO"; then : 6562 eval "$as_ac_Lib=yes" 6563else 6564 eval "$as_ac_Lib=no" 6565fi 6566rm -f core conftest.err conftest.$ac_objext \ 6567 conftest$ac_exeext conftest.$ac_ext 6568LIBS=$ac_check_lib_save_LIBS 6569fi 6570eval ac_res=\$$as_ac_Lib 6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6572$as_echo "$ac_res" >&6; } 6573if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6574 apu_has_ldapssl_client_init="1" 6575fi 6576 6577 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 6578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 6579$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 6580if eval \${$as_ac_Lib+:} false; then : 6581 $as_echo_n "(cached) " >&6 6582else 6583 ac_check_lib_save_LIBS=$LIBS 6584LIBS="-l${ldaplib} ${extralib} $LIBS" 6585cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6586/* end confdefs.h. */ 6587 6588/* Override any GCC internal prototype to avoid an error. 6589 Use char because int might match the return type of a GCC 6590 builtin and then its argument prototype would still apply. */ 6591#ifdef __cplusplus 6592extern "C" 6593#endif 6594char ldapssl_client_deinit (); 6595int 6596main () 6597{ 6598return ldapssl_client_deinit (); 6599 ; 6600 return 0; 6601} 6602_ACEOF 6603if ac_fn_c_try_link "$LINENO"; then : 6604 eval "$as_ac_Lib=yes" 6605else 6606 eval "$as_ac_Lib=no" 6607fi 6608rm -f core conftest.err conftest.$ac_objext \ 6609 conftest$ac_exeext conftest.$ac_ext 6610LIBS=$ac_check_lib_save_LIBS 6611fi 6612eval ac_res=\$$as_ac_Lib 6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6614$as_echo "$ac_res" >&6; } 6615if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6616 apu_has_ldapssl_client_deinit="1" 6617fi 6618 6619 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 6620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 6621$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 6622if eval \${$as_ac_Lib+:} false; then : 6623 $as_echo_n "(cached) " >&6 6624else 6625 ac_check_lib_save_LIBS=$LIBS 6626LIBS="-l${ldaplib} ${extralib} $LIBS" 6627cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6628/* end confdefs.h. */ 6629 6630/* Override any GCC internal prototype to avoid an error. 6631 Use char because int might match the return type of a GCC 6632 builtin and then its argument prototype would still apply. */ 6633#ifdef __cplusplus 6634extern "C" 6635#endif 6636char ldapssl_add_trusted_cert (); 6637int 6638main () 6639{ 6640return ldapssl_add_trusted_cert (); 6641 ; 6642 return 0; 6643} 6644_ACEOF 6645if ac_fn_c_try_link "$LINENO"; then : 6646 eval "$as_ac_Lib=yes" 6647else 6648 eval "$as_ac_Lib=no" 6649fi 6650rm -f core conftest.err conftest.$ac_objext \ 6651 conftest$ac_exeext conftest.$ac_ext 6652LIBS=$ac_check_lib_save_LIBS 6653fi 6654eval ac_res=\$$as_ac_Lib 6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6656$as_echo "$ac_res" >&6; } 6657if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6658 apu_has_ldapssl_add_trusted_cert="1" 6659fi 6660 6661 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 6662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 6663$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 6664if eval \${$as_ac_Lib+:} false; then : 6665 $as_echo_n "(cached) " >&6 6666else 6667 ac_check_lib_save_LIBS=$LIBS 6668LIBS="-l${ldaplib} ${extralib} $LIBS" 6669cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6670/* end confdefs.h. */ 6671 6672/* Override any GCC internal prototype to avoid an error. 6673 Use char because int might match the return type of a GCC 6674 builtin and then its argument prototype would still apply. */ 6675#ifdef __cplusplus 6676extern "C" 6677#endif 6678char ldap_start_tls_s (); 6679int 6680main () 6681{ 6682return ldap_start_tls_s (); 6683 ; 6684 return 0; 6685} 6686_ACEOF 6687if ac_fn_c_try_link "$LINENO"; then : 6688 eval "$as_ac_Lib=yes" 6689else 6690 eval "$as_ac_Lib=no" 6691fi 6692rm -f core conftest.err conftest.$ac_objext \ 6693 conftest$ac_exeext conftest.$ac_ext 6694LIBS=$ac_check_lib_save_LIBS 6695fi 6696eval ac_res=\$$as_ac_Lib 6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6698$as_echo "$ac_res" >&6; } 6699if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6700 apu_has_ldap_start_tls_s="1" 6701fi 6702 6703 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 6704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 6705$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 6706if eval \${$as_ac_Lib+:} false; then : 6707 $as_echo_n "(cached) " >&6 6708else 6709 ac_check_lib_save_LIBS=$LIBS 6710LIBS="-l${ldaplib} ${extralib} $LIBS" 6711cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6712/* end confdefs.h. */ 6713 6714/* Override any GCC internal prototype to avoid an error. 6715 Use char because int might match the return type of a GCC 6716 builtin and then its argument prototype would still apply. */ 6717#ifdef __cplusplus 6718extern "C" 6719#endif 6720char ldap_sslinit (); 6721int 6722main () 6723{ 6724return ldap_sslinit (); 6725 ; 6726 return 0; 6727} 6728_ACEOF 6729if ac_fn_c_try_link "$LINENO"; then : 6730 eval "$as_ac_Lib=yes" 6731else 6732 eval "$as_ac_Lib=no" 6733fi 6734rm -f core conftest.err conftest.$ac_objext \ 6735 conftest$ac_exeext conftest.$ac_ext 6736LIBS=$ac_check_lib_save_LIBS 6737fi 6738eval ac_res=\$$as_ac_Lib 6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6740$as_echo "$ac_res" >&6; } 6741if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6742 apu_has_ldap_sslinit="1" 6743fi 6744 6745 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 6746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 6747$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 6748if eval \${$as_ac_Lib+:} false; then : 6749 $as_echo_n "(cached) " >&6 6750else 6751 ac_check_lib_save_LIBS=$LIBS 6752LIBS="-l${ldaplib} ${extralib} $LIBS" 6753cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6754/* end confdefs.h. */ 6755 6756/* Override any GCC internal prototype to avoid an error. 6757 Use char because int might match the return type of a GCC 6758 builtin and then its argument prototype would still apply. */ 6759#ifdef __cplusplus 6760extern "C" 6761#endif 6762char ldapssl_init (); 6763int 6764main () 6765{ 6766return ldapssl_init (); 6767 ; 6768 return 0; 6769} 6770_ACEOF 6771if ac_fn_c_try_link "$LINENO"; then : 6772 eval "$as_ac_Lib=yes" 6773else 6774 eval "$as_ac_Lib=no" 6775fi 6776rm -f core conftest.err conftest.$ac_objext \ 6777 conftest$ac_exeext conftest.$ac_ext 6778LIBS=$ac_check_lib_save_LIBS 6779fi 6780eval ac_res=\$$as_ac_Lib 6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6782$as_echo "$ac_res" >&6; } 6783if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6784 apu_has_ldapssl_init="1" 6785fi 6786 6787 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 6788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 6789$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 6790if eval \${$as_ac_Lib+:} false; then : 6791 $as_echo_n "(cached) " >&6 6792else 6793 ac_check_lib_save_LIBS=$LIBS 6794LIBS="-l${ldaplib} ${extralib} $LIBS" 6795cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6796/* end confdefs.h. */ 6797 6798/* Override any GCC internal prototype to avoid an error. 6799 Use char because int might match the return type of a GCC 6800 builtin and then its argument prototype would still apply. */ 6801#ifdef __cplusplus 6802extern "C" 6803#endif 6804char ldapssl_install_routines (); 6805int 6806main () 6807{ 6808return ldapssl_install_routines (); 6809 ; 6810 return 0; 6811} 6812_ACEOF 6813if ac_fn_c_try_link "$LINENO"; then : 6814 eval "$as_ac_Lib=yes" 6815else 6816 eval "$as_ac_Lib=no" 6817fi 6818rm -f core conftest.err conftest.$ac_objext \ 6819 conftest$ac_exeext conftest.$ac_ext 6820LIBS=$ac_check_lib_save_LIBS 6821fi 6822eval ac_res=\$$as_ac_Lib 6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6824$as_echo "$ac_res" >&6; } 6825if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6826 apu_has_ldapssl_install_routines="1" 6827fi 6828 6829 apu_has_ldap="1"; 6830 6831fi 6832 6833 fi 6834 6835 6836 if test ${apu_has_ldap} != "1"; then 6837 ldaplib="ldapssl40" 6838 extralib= 6839 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 6840 6841 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 6842 6843 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 6844 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 6845 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 6846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 6847$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 6848if eval \${$as_ac_Lib+:} false; then : 6849 $as_echo_n "(cached) " >&6 6850else 6851 ac_check_lib_save_LIBS=$LIBS 6852LIBS="-l${ldaplib} ${extralib} $LIBS" 6853cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6854/* end confdefs.h. */ 6855 6856/* Override any GCC internal prototype to avoid an error. 6857 Use char because int might match the return type of a GCC 6858 builtin and then its argument prototype would still apply. */ 6859#ifdef __cplusplus 6860extern "C" 6861#endif 6862char ldap_init (); 6863int 6864main () 6865{ 6866return ldap_init (); 6867 ; 6868 return 0; 6869} 6870_ACEOF 6871if ac_fn_c_try_link "$LINENO"; then : 6872 eval "$as_ac_Lib=yes" 6873else 6874 eval "$as_ac_Lib=no" 6875fi 6876rm -f core conftest.err conftest.$ac_objext \ 6877 conftest$ac_exeext conftest.$ac_ext 6878LIBS=$ac_check_lib_save_LIBS 6879fi 6880eval ac_res=\$$as_ac_Lib 6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6882$as_echo "$ac_res" >&6; } 6883if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6884 6885 LDADD_ldap_found="-l${ldaplib} ${extralib}" 6886 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 6887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 6888$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 6889if eval \${$as_ac_Lib+:} false; then : 6890 $as_echo_n "(cached) " >&6 6891else 6892 ac_check_lib_save_LIBS=$LIBS 6893LIBS="-l${ldaplib} ${extralib} $LIBS" 6894cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6895/* end confdefs.h. */ 6896 6897/* Override any GCC internal prototype to avoid an error. 6898 Use char because int might match the return type of a GCC 6899 builtin and then its argument prototype would still apply. */ 6900#ifdef __cplusplus 6901extern "C" 6902#endif 6903char ldapssl_client_init (); 6904int 6905main () 6906{ 6907return ldapssl_client_init (); 6908 ; 6909 return 0; 6910} 6911_ACEOF 6912if ac_fn_c_try_link "$LINENO"; then : 6913 eval "$as_ac_Lib=yes" 6914else 6915 eval "$as_ac_Lib=no" 6916fi 6917rm -f core conftest.err conftest.$ac_objext \ 6918 conftest$ac_exeext conftest.$ac_ext 6919LIBS=$ac_check_lib_save_LIBS 6920fi 6921eval ac_res=\$$as_ac_Lib 6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6923$as_echo "$ac_res" >&6; } 6924if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6925 apu_has_ldapssl_client_init="1" 6926fi 6927 6928 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 6929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 6930$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 6931if eval \${$as_ac_Lib+:} false; then : 6932 $as_echo_n "(cached) " >&6 6933else 6934 ac_check_lib_save_LIBS=$LIBS 6935LIBS="-l${ldaplib} ${extralib} $LIBS" 6936cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6937/* end confdefs.h. */ 6938 6939/* Override any GCC internal prototype to avoid an error. 6940 Use char because int might match the return type of a GCC 6941 builtin and then its argument prototype would still apply. */ 6942#ifdef __cplusplus 6943extern "C" 6944#endif 6945char ldapssl_client_deinit (); 6946int 6947main () 6948{ 6949return ldapssl_client_deinit (); 6950 ; 6951 return 0; 6952} 6953_ACEOF 6954if ac_fn_c_try_link "$LINENO"; then : 6955 eval "$as_ac_Lib=yes" 6956else 6957 eval "$as_ac_Lib=no" 6958fi 6959rm -f core conftest.err conftest.$ac_objext \ 6960 conftest$ac_exeext conftest.$ac_ext 6961LIBS=$ac_check_lib_save_LIBS 6962fi 6963eval ac_res=\$$as_ac_Lib 6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6965$as_echo "$ac_res" >&6; } 6966if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6967 apu_has_ldapssl_client_deinit="1" 6968fi 6969 6970 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 6971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 6972$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 6973if eval \${$as_ac_Lib+:} false; then : 6974 $as_echo_n "(cached) " >&6 6975else 6976 ac_check_lib_save_LIBS=$LIBS 6977LIBS="-l${ldaplib} ${extralib} $LIBS" 6978cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6979/* end confdefs.h. */ 6980 6981/* Override any GCC internal prototype to avoid an error. 6982 Use char because int might match the return type of a GCC 6983 builtin and then its argument prototype would still apply. */ 6984#ifdef __cplusplus 6985extern "C" 6986#endif 6987char ldapssl_add_trusted_cert (); 6988int 6989main () 6990{ 6991return ldapssl_add_trusted_cert (); 6992 ; 6993 return 0; 6994} 6995_ACEOF 6996if ac_fn_c_try_link "$LINENO"; then : 6997 eval "$as_ac_Lib=yes" 6998else 6999 eval "$as_ac_Lib=no" 7000fi 7001rm -f core conftest.err conftest.$ac_objext \ 7002 conftest$ac_exeext conftest.$ac_ext 7003LIBS=$ac_check_lib_save_LIBS 7004fi 7005eval ac_res=\$$as_ac_Lib 7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7007$as_echo "$ac_res" >&6; } 7008if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7009 apu_has_ldapssl_add_trusted_cert="1" 7010fi 7011 7012 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 7013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 7014$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 7015if eval \${$as_ac_Lib+:} false; then : 7016 $as_echo_n "(cached) " >&6 7017else 7018 ac_check_lib_save_LIBS=$LIBS 7019LIBS="-l${ldaplib} ${extralib} $LIBS" 7020cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7021/* end confdefs.h. */ 7022 7023/* Override any GCC internal prototype to avoid an error. 7024 Use char because int might match the return type of a GCC 7025 builtin and then its argument prototype would still apply. */ 7026#ifdef __cplusplus 7027extern "C" 7028#endif 7029char ldap_start_tls_s (); 7030int 7031main () 7032{ 7033return ldap_start_tls_s (); 7034 ; 7035 return 0; 7036} 7037_ACEOF 7038if ac_fn_c_try_link "$LINENO"; then : 7039 eval "$as_ac_Lib=yes" 7040else 7041 eval "$as_ac_Lib=no" 7042fi 7043rm -f core conftest.err conftest.$ac_objext \ 7044 conftest$ac_exeext conftest.$ac_ext 7045LIBS=$ac_check_lib_save_LIBS 7046fi 7047eval ac_res=\$$as_ac_Lib 7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7049$as_echo "$ac_res" >&6; } 7050if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7051 apu_has_ldap_start_tls_s="1" 7052fi 7053 7054 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 7055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 7056$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 7057if eval \${$as_ac_Lib+:} false; then : 7058 $as_echo_n "(cached) " >&6 7059else 7060 ac_check_lib_save_LIBS=$LIBS 7061LIBS="-l${ldaplib} ${extralib} $LIBS" 7062cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7063/* end confdefs.h. */ 7064 7065/* Override any GCC internal prototype to avoid an error. 7066 Use char because int might match the return type of a GCC 7067 builtin and then its argument prototype would still apply. */ 7068#ifdef __cplusplus 7069extern "C" 7070#endif 7071char ldap_sslinit (); 7072int 7073main () 7074{ 7075return ldap_sslinit (); 7076 ; 7077 return 0; 7078} 7079_ACEOF 7080if ac_fn_c_try_link "$LINENO"; then : 7081 eval "$as_ac_Lib=yes" 7082else 7083 eval "$as_ac_Lib=no" 7084fi 7085rm -f core conftest.err conftest.$ac_objext \ 7086 conftest$ac_exeext conftest.$ac_ext 7087LIBS=$ac_check_lib_save_LIBS 7088fi 7089eval ac_res=\$$as_ac_Lib 7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7091$as_echo "$ac_res" >&6; } 7092if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7093 apu_has_ldap_sslinit="1" 7094fi 7095 7096 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 7097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 7098$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 7099if eval \${$as_ac_Lib+:} false; then : 7100 $as_echo_n "(cached) " >&6 7101else 7102 ac_check_lib_save_LIBS=$LIBS 7103LIBS="-l${ldaplib} ${extralib} $LIBS" 7104cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7105/* end confdefs.h. */ 7106 7107/* Override any GCC internal prototype to avoid an error. 7108 Use char because int might match the return type of a GCC 7109 builtin and then its argument prototype would still apply. */ 7110#ifdef __cplusplus 7111extern "C" 7112#endif 7113char ldapssl_init (); 7114int 7115main () 7116{ 7117return ldapssl_init (); 7118 ; 7119 return 0; 7120} 7121_ACEOF 7122if ac_fn_c_try_link "$LINENO"; then : 7123 eval "$as_ac_Lib=yes" 7124else 7125 eval "$as_ac_Lib=no" 7126fi 7127rm -f core conftest.err conftest.$ac_objext \ 7128 conftest$ac_exeext conftest.$ac_ext 7129LIBS=$ac_check_lib_save_LIBS 7130fi 7131eval ac_res=\$$as_ac_Lib 7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7133$as_echo "$ac_res" >&6; } 7134if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7135 apu_has_ldapssl_init="1" 7136fi 7137 7138 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 7139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 7140$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 7141if eval \${$as_ac_Lib+:} false; then : 7142 $as_echo_n "(cached) " >&6 7143else 7144 ac_check_lib_save_LIBS=$LIBS 7145LIBS="-l${ldaplib} ${extralib} $LIBS" 7146cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7147/* end confdefs.h. */ 7148 7149/* Override any GCC internal prototype to avoid an error. 7150 Use char because int might match the return type of a GCC 7151 builtin and then its argument prototype would still apply. */ 7152#ifdef __cplusplus 7153extern "C" 7154#endif 7155char ldapssl_install_routines (); 7156int 7157main () 7158{ 7159return ldapssl_install_routines (); 7160 ; 7161 return 0; 7162} 7163_ACEOF 7164if ac_fn_c_try_link "$LINENO"; then : 7165 eval "$as_ac_Lib=yes" 7166else 7167 eval "$as_ac_Lib=no" 7168fi 7169rm -f core conftest.err conftest.$ac_objext \ 7170 conftest$ac_exeext conftest.$ac_ext 7171LIBS=$ac_check_lib_save_LIBS 7172fi 7173eval ac_res=\$$as_ac_Lib 7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7175$as_echo "$ac_res" >&6; } 7176if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7177 apu_has_ldapssl_install_routines="1" 7178fi 7179 7180 apu_has_ldap="1"; 7181 7182fi 7183 7184 fi 7185 7186 7187 if test ${apu_has_ldap} != "1"; then 7188 ldaplib="ldapssl30" 7189 extralib= 7190 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 7191 7192 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 7193 7194 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 7195 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 7196 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 7197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 7198$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 7199if eval \${$as_ac_Lib+:} false; then : 7200 $as_echo_n "(cached) " >&6 7201else 7202 ac_check_lib_save_LIBS=$LIBS 7203LIBS="-l${ldaplib} ${extralib} $LIBS" 7204cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7205/* end confdefs.h. */ 7206 7207/* Override any GCC internal prototype to avoid an error. 7208 Use char because int might match the return type of a GCC 7209 builtin and then its argument prototype would still apply. */ 7210#ifdef __cplusplus 7211extern "C" 7212#endif 7213char ldap_init (); 7214int 7215main () 7216{ 7217return ldap_init (); 7218 ; 7219 return 0; 7220} 7221_ACEOF 7222if ac_fn_c_try_link "$LINENO"; then : 7223 eval "$as_ac_Lib=yes" 7224else 7225 eval "$as_ac_Lib=no" 7226fi 7227rm -f core conftest.err conftest.$ac_objext \ 7228 conftest$ac_exeext conftest.$ac_ext 7229LIBS=$ac_check_lib_save_LIBS 7230fi 7231eval ac_res=\$$as_ac_Lib 7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7233$as_echo "$ac_res" >&6; } 7234if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7235 7236 LDADD_ldap_found="-l${ldaplib} ${extralib}" 7237 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 7238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 7239$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 7240if eval \${$as_ac_Lib+:} false; then : 7241 $as_echo_n "(cached) " >&6 7242else 7243 ac_check_lib_save_LIBS=$LIBS 7244LIBS="-l${ldaplib} ${extralib} $LIBS" 7245cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7246/* end confdefs.h. */ 7247 7248/* Override any GCC internal prototype to avoid an error. 7249 Use char because int might match the return type of a GCC 7250 builtin and then its argument prototype would still apply. */ 7251#ifdef __cplusplus 7252extern "C" 7253#endif 7254char ldapssl_client_init (); 7255int 7256main () 7257{ 7258return ldapssl_client_init (); 7259 ; 7260 return 0; 7261} 7262_ACEOF 7263if ac_fn_c_try_link "$LINENO"; then : 7264 eval "$as_ac_Lib=yes" 7265else 7266 eval "$as_ac_Lib=no" 7267fi 7268rm -f core conftest.err conftest.$ac_objext \ 7269 conftest$ac_exeext conftest.$ac_ext 7270LIBS=$ac_check_lib_save_LIBS 7271fi 7272eval ac_res=\$$as_ac_Lib 7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7274$as_echo "$ac_res" >&6; } 7275if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7276 apu_has_ldapssl_client_init="1" 7277fi 7278 7279 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 7280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 7281$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 7282if eval \${$as_ac_Lib+:} false; then : 7283 $as_echo_n "(cached) " >&6 7284else 7285 ac_check_lib_save_LIBS=$LIBS 7286LIBS="-l${ldaplib} ${extralib} $LIBS" 7287cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7288/* end confdefs.h. */ 7289 7290/* Override any GCC internal prototype to avoid an error. 7291 Use char because int might match the return type of a GCC 7292 builtin and then its argument prototype would still apply. */ 7293#ifdef __cplusplus 7294extern "C" 7295#endif 7296char ldapssl_client_deinit (); 7297int 7298main () 7299{ 7300return ldapssl_client_deinit (); 7301 ; 7302 return 0; 7303} 7304_ACEOF 7305if ac_fn_c_try_link "$LINENO"; then : 7306 eval "$as_ac_Lib=yes" 7307else 7308 eval "$as_ac_Lib=no" 7309fi 7310rm -f core conftest.err conftest.$ac_objext \ 7311 conftest$ac_exeext conftest.$ac_ext 7312LIBS=$ac_check_lib_save_LIBS 7313fi 7314eval ac_res=\$$as_ac_Lib 7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7316$as_echo "$ac_res" >&6; } 7317if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7318 apu_has_ldapssl_client_deinit="1" 7319fi 7320 7321 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 7322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 7323$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 7324if eval \${$as_ac_Lib+:} false; then : 7325 $as_echo_n "(cached) " >&6 7326else 7327 ac_check_lib_save_LIBS=$LIBS 7328LIBS="-l${ldaplib} ${extralib} $LIBS" 7329cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7330/* end confdefs.h. */ 7331 7332/* Override any GCC internal prototype to avoid an error. 7333 Use char because int might match the return type of a GCC 7334 builtin and then its argument prototype would still apply. */ 7335#ifdef __cplusplus 7336extern "C" 7337#endif 7338char ldapssl_add_trusted_cert (); 7339int 7340main () 7341{ 7342return ldapssl_add_trusted_cert (); 7343 ; 7344 return 0; 7345} 7346_ACEOF 7347if ac_fn_c_try_link "$LINENO"; then : 7348 eval "$as_ac_Lib=yes" 7349else 7350 eval "$as_ac_Lib=no" 7351fi 7352rm -f core conftest.err conftest.$ac_objext \ 7353 conftest$ac_exeext conftest.$ac_ext 7354LIBS=$ac_check_lib_save_LIBS 7355fi 7356eval ac_res=\$$as_ac_Lib 7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7358$as_echo "$ac_res" >&6; } 7359if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7360 apu_has_ldapssl_add_trusted_cert="1" 7361fi 7362 7363 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 7364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 7365$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 7366if eval \${$as_ac_Lib+:} false; then : 7367 $as_echo_n "(cached) " >&6 7368else 7369 ac_check_lib_save_LIBS=$LIBS 7370LIBS="-l${ldaplib} ${extralib} $LIBS" 7371cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7372/* end confdefs.h. */ 7373 7374/* Override any GCC internal prototype to avoid an error. 7375 Use char because int might match the return type of a GCC 7376 builtin and then its argument prototype would still apply. */ 7377#ifdef __cplusplus 7378extern "C" 7379#endif 7380char ldap_start_tls_s (); 7381int 7382main () 7383{ 7384return ldap_start_tls_s (); 7385 ; 7386 return 0; 7387} 7388_ACEOF 7389if ac_fn_c_try_link "$LINENO"; then : 7390 eval "$as_ac_Lib=yes" 7391else 7392 eval "$as_ac_Lib=no" 7393fi 7394rm -f core conftest.err conftest.$ac_objext \ 7395 conftest$ac_exeext conftest.$ac_ext 7396LIBS=$ac_check_lib_save_LIBS 7397fi 7398eval ac_res=\$$as_ac_Lib 7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7400$as_echo "$ac_res" >&6; } 7401if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7402 apu_has_ldap_start_tls_s="1" 7403fi 7404 7405 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 7406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 7407$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 7408if eval \${$as_ac_Lib+:} false; then : 7409 $as_echo_n "(cached) " >&6 7410else 7411 ac_check_lib_save_LIBS=$LIBS 7412LIBS="-l${ldaplib} ${extralib} $LIBS" 7413cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7414/* end confdefs.h. */ 7415 7416/* Override any GCC internal prototype to avoid an error. 7417 Use char because int might match the return type of a GCC 7418 builtin and then its argument prototype would still apply. */ 7419#ifdef __cplusplus 7420extern "C" 7421#endif 7422char ldap_sslinit (); 7423int 7424main () 7425{ 7426return ldap_sslinit (); 7427 ; 7428 return 0; 7429} 7430_ACEOF 7431if ac_fn_c_try_link "$LINENO"; then : 7432 eval "$as_ac_Lib=yes" 7433else 7434 eval "$as_ac_Lib=no" 7435fi 7436rm -f core conftest.err conftest.$ac_objext \ 7437 conftest$ac_exeext conftest.$ac_ext 7438LIBS=$ac_check_lib_save_LIBS 7439fi 7440eval ac_res=\$$as_ac_Lib 7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7442$as_echo "$ac_res" >&6; } 7443if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7444 apu_has_ldap_sslinit="1" 7445fi 7446 7447 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 7448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 7449$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 7450if eval \${$as_ac_Lib+:} false; then : 7451 $as_echo_n "(cached) " >&6 7452else 7453 ac_check_lib_save_LIBS=$LIBS 7454LIBS="-l${ldaplib} ${extralib} $LIBS" 7455cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7456/* end confdefs.h. */ 7457 7458/* Override any GCC internal prototype to avoid an error. 7459 Use char because int might match the return type of a GCC 7460 builtin and then its argument prototype would still apply. */ 7461#ifdef __cplusplus 7462extern "C" 7463#endif 7464char ldapssl_init (); 7465int 7466main () 7467{ 7468return ldapssl_init (); 7469 ; 7470 return 0; 7471} 7472_ACEOF 7473if ac_fn_c_try_link "$LINENO"; then : 7474 eval "$as_ac_Lib=yes" 7475else 7476 eval "$as_ac_Lib=no" 7477fi 7478rm -f core conftest.err conftest.$ac_objext \ 7479 conftest$ac_exeext conftest.$ac_ext 7480LIBS=$ac_check_lib_save_LIBS 7481fi 7482eval ac_res=\$$as_ac_Lib 7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7484$as_echo "$ac_res" >&6; } 7485if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7486 apu_has_ldapssl_init="1" 7487fi 7488 7489 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 7490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 7491$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 7492if eval \${$as_ac_Lib+:} false; then : 7493 $as_echo_n "(cached) " >&6 7494else 7495 ac_check_lib_save_LIBS=$LIBS 7496LIBS="-l${ldaplib} ${extralib} $LIBS" 7497cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7498/* end confdefs.h. */ 7499 7500/* Override any GCC internal prototype to avoid an error. 7501 Use char because int might match the return type of a GCC 7502 builtin and then its argument prototype would still apply. */ 7503#ifdef __cplusplus 7504extern "C" 7505#endif 7506char ldapssl_install_routines (); 7507int 7508main () 7509{ 7510return ldapssl_install_routines (); 7511 ; 7512 return 0; 7513} 7514_ACEOF 7515if ac_fn_c_try_link "$LINENO"; then : 7516 eval "$as_ac_Lib=yes" 7517else 7518 eval "$as_ac_Lib=no" 7519fi 7520rm -f core conftest.err conftest.$ac_objext \ 7521 conftest$ac_exeext conftest.$ac_ext 7522LIBS=$ac_check_lib_save_LIBS 7523fi 7524eval ac_res=\$$as_ac_Lib 7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7526$as_echo "$ac_res" >&6; } 7527if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7528 apu_has_ldapssl_install_routines="1" 7529fi 7530 7531 apu_has_ldap="1"; 7532 7533fi 7534 7535 fi 7536 7537 7538 if test ${apu_has_ldap} != "1"; then 7539 ldaplib="ldapssl20" 7540 extralib= 7541 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 7542 7543 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 7544 7545 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 7546 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 7547 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 7548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 7549$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 7550if eval \${$as_ac_Lib+:} false; then : 7551 $as_echo_n "(cached) " >&6 7552else 7553 ac_check_lib_save_LIBS=$LIBS 7554LIBS="-l${ldaplib} ${extralib} $LIBS" 7555cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7556/* end confdefs.h. */ 7557 7558/* Override any GCC internal prototype to avoid an error. 7559 Use char because int might match the return type of a GCC 7560 builtin and then its argument prototype would still apply. */ 7561#ifdef __cplusplus 7562extern "C" 7563#endif 7564char ldap_init (); 7565int 7566main () 7567{ 7568return ldap_init (); 7569 ; 7570 return 0; 7571} 7572_ACEOF 7573if ac_fn_c_try_link "$LINENO"; then : 7574 eval "$as_ac_Lib=yes" 7575else 7576 eval "$as_ac_Lib=no" 7577fi 7578rm -f core conftest.err conftest.$ac_objext \ 7579 conftest$ac_exeext conftest.$ac_ext 7580LIBS=$ac_check_lib_save_LIBS 7581fi 7582eval ac_res=\$$as_ac_Lib 7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7584$as_echo "$ac_res" >&6; } 7585if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7586 7587 LDADD_ldap_found="-l${ldaplib} ${extralib}" 7588 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 7589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 7590$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 7591if eval \${$as_ac_Lib+:} false; then : 7592 $as_echo_n "(cached) " >&6 7593else 7594 ac_check_lib_save_LIBS=$LIBS 7595LIBS="-l${ldaplib} ${extralib} $LIBS" 7596cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7597/* end confdefs.h. */ 7598 7599/* Override any GCC internal prototype to avoid an error. 7600 Use char because int might match the return type of a GCC 7601 builtin and then its argument prototype would still apply. */ 7602#ifdef __cplusplus 7603extern "C" 7604#endif 7605char ldapssl_client_init (); 7606int 7607main () 7608{ 7609return ldapssl_client_init (); 7610 ; 7611 return 0; 7612} 7613_ACEOF 7614if ac_fn_c_try_link "$LINENO"; then : 7615 eval "$as_ac_Lib=yes" 7616else 7617 eval "$as_ac_Lib=no" 7618fi 7619rm -f core conftest.err conftest.$ac_objext \ 7620 conftest$ac_exeext conftest.$ac_ext 7621LIBS=$ac_check_lib_save_LIBS 7622fi 7623eval ac_res=\$$as_ac_Lib 7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7625$as_echo "$ac_res" >&6; } 7626if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7627 apu_has_ldapssl_client_init="1" 7628fi 7629 7630 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 7631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 7632$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 7633if eval \${$as_ac_Lib+:} false; then : 7634 $as_echo_n "(cached) " >&6 7635else 7636 ac_check_lib_save_LIBS=$LIBS 7637LIBS="-l${ldaplib} ${extralib} $LIBS" 7638cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7639/* end confdefs.h. */ 7640 7641/* Override any GCC internal prototype to avoid an error. 7642 Use char because int might match the return type of a GCC 7643 builtin and then its argument prototype would still apply. */ 7644#ifdef __cplusplus 7645extern "C" 7646#endif 7647char ldapssl_client_deinit (); 7648int 7649main () 7650{ 7651return ldapssl_client_deinit (); 7652 ; 7653 return 0; 7654} 7655_ACEOF 7656if ac_fn_c_try_link "$LINENO"; then : 7657 eval "$as_ac_Lib=yes" 7658else 7659 eval "$as_ac_Lib=no" 7660fi 7661rm -f core conftest.err conftest.$ac_objext \ 7662 conftest$ac_exeext conftest.$ac_ext 7663LIBS=$ac_check_lib_save_LIBS 7664fi 7665eval ac_res=\$$as_ac_Lib 7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7667$as_echo "$ac_res" >&6; } 7668if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7669 apu_has_ldapssl_client_deinit="1" 7670fi 7671 7672 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 7673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 7674$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 7675if eval \${$as_ac_Lib+:} false; then : 7676 $as_echo_n "(cached) " >&6 7677else 7678 ac_check_lib_save_LIBS=$LIBS 7679LIBS="-l${ldaplib} ${extralib} $LIBS" 7680cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7681/* end confdefs.h. */ 7682 7683/* Override any GCC internal prototype to avoid an error. 7684 Use char because int might match the return type of a GCC 7685 builtin and then its argument prototype would still apply. */ 7686#ifdef __cplusplus 7687extern "C" 7688#endif 7689char ldapssl_add_trusted_cert (); 7690int 7691main () 7692{ 7693return ldapssl_add_trusted_cert (); 7694 ; 7695 return 0; 7696} 7697_ACEOF 7698if ac_fn_c_try_link "$LINENO"; then : 7699 eval "$as_ac_Lib=yes" 7700else 7701 eval "$as_ac_Lib=no" 7702fi 7703rm -f core conftest.err conftest.$ac_objext \ 7704 conftest$ac_exeext conftest.$ac_ext 7705LIBS=$ac_check_lib_save_LIBS 7706fi 7707eval ac_res=\$$as_ac_Lib 7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7709$as_echo "$ac_res" >&6; } 7710if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7711 apu_has_ldapssl_add_trusted_cert="1" 7712fi 7713 7714 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 7715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 7716$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 7717if eval \${$as_ac_Lib+:} false; then : 7718 $as_echo_n "(cached) " >&6 7719else 7720 ac_check_lib_save_LIBS=$LIBS 7721LIBS="-l${ldaplib} ${extralib} $LIBS" 7722cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7723/* end confdefs.h. */ 7724 7725/* Override any GCC internal prototype to avoid an error. 7726 Use char because int might match the return type of a GCC 7727 builtin and then its argument prototype would still apply. */ 7728#ifdef __cplusplus 7729extern "C" 7730#endif 7731char ldap_start_tls_s (); 7732int 7733main () 7734{ 7735return ldap_start_tls_s (); 7736 ; 7737 return 0; 7738} 7739_ACEOF 7740if ac_fn_c_try_link "$LINENO"; then : 7741 eval "$as_ac_Lib=yes" 7742else 7743 eval "$as_ac_Lib=no" 7744fi 7745rm -f core conftest.err conftest.$ac_objext \ 7746 conftest$ac_exeext conftest.$ac_ext 7747LIBS=$ac_check_lib_save_LIBS 7748fi 7749eval ac_res=\$$as_ac_Lib 7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7751$as_echo "$ac_res" >&6; } 7752if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7753 apu_has_ldap_start_tls_s="1" 7754fi 7755 7756 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 7757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 7758$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 7759if eval \${$as_ac_Lib+:} false; then : 7760 $as_echo_n "(cached) " >&6 7761else 7762 ac_check_lib_save_LIBS=$LIBS 7763LIBS="-l${ldaplib} ${extralib} $LIBS" 7764cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7765/* end confdefs.h. */ 7766 7767/* Override any GCC internal prototype to avoid an error. 7768 Use char because int might match the return type of a GCC 7769 builtin and then its argument prototype would still apply. */ 7770#ifdef __cplusplus 7771extern "C" 7772#endif 7773char ldap_sslinit (); 7774int 7775main () 7776{ 7777return ldap_sslinit (); 7778 ; 7779 return 0; 7780} 7781_ACEOF 7782if ac_fn_c_try_link "$LINENO"; then : 7783 eval "$as_ac_Lib=yes" 7784else 7785 eval "$as_ac_Lib=no" 7786fi 7787rm -f core conftest.err conftest.$ac_objext \ 7788 conftest$ac_exeext conftest.$ac_ext 7789LIBS=$ac_check_lib_save_LIBS 7790fi 7791eval ac_res=\$$as_ac_Lib 7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7793$as_echo "$ac_res" >&6; } 7794if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7795 apu_has_ldap_sslinit="1" 7796fi 7797 7798 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 7799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 7800$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 7801if eval \${$as_ac_Lib+:} false; then : 7802 $as_echo_n "(cached) " >&6 7803else 7804 ac_check_lib_save_LIBS=$LIBS 7805LIBS="-l${ldaplib} ${extralib} $LIBS" 7806cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7807/* end confdefs.h. */ 7808 7809/* Override any GCC internal prototype to avoid an error. 7810 Use char because int might match the return type of a GCC 7811 builtin and then its argument prototype would still apply. */ 7812#ifdef __cplusplus 7813extern "C" 7814#endif 7815char ldapssl_init (); 7816int 7817main () 7818{ 7819return ldapssl_init (); 7820 ; 7821 return 0; 7822} 7823_ACEOF 7824if ac_fn_c_try_link "$LINENO"; then : 7825 eval "$as_ac_Lib=yes" 7826else 7827 eval "$as_ac_Lib=no" 7828fi 7829rm -f core conftest.err conftest.$ac_objext \ 7830 conftest$ac_exeext conftest.$ac_ext 7831LIBS=$ac_check_lib_save_LIBS 7832fi 7833eval ac_res=\$$as_ac_Lib 7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7835$as_echo "$ac_res" >&6; } 7836if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7837 apu_has_ldapssl_init="1" 7838fi 7839 7840 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 7841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 7842$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 7843if eval \${$as_ac_Lib+:} false; then : 7844 $as_echo_n "(cached) " >&6 7845else 7846 ac_check_lib_save_LIBS=$LIBS 7847LIBS="-l${ldaplib} ${extralib} $LIBS" 7848cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7849/* end confdefs.h. */ 7850 7851/* Override any GCC internal prototype to avoid an error. 7852 Use char because int might match the return type of a GCC 7853 builtin and then its argument prototype would still apply. */ 7854#ifdef __cplusplus 7855extern "C" 7856#endif 7857char ldapssl_install_routines (); 7858int 7859main () 7860{ 7861return ldapssl_install_routines (); 7862 ; 7863 return 0; 7864} 7865_ACEOF 7866if ac_fn_c_try_link "$LINENO"; then : 7867 eval "$as_ac_Lib=yes" 7868else 7869 eval "$as_ac_Lib=no" 7870fi 7871rm -f core conftest.err conftest.$ac_objext \ 7872 conftest$ac_exeext conftest.$ac_ext 7873LIBS=$ac_check_lib_save_LIBS 7874fi 7875eval ac_res=\$$as_ac_Lib 7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7877$as_echo "$ac_res" >&6; } 7878if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7879 apu_has_ldapssl_install_routines="1" 7880fi 7881 7882 apu_has_ldap="1"; 7883 7884fi 7885 7886 fi 7887 7888 7889 if test ${apu_has_ldap} != "1"; then 7890 ldaplib="ldapsdk" 7891 extralib="-lldapx -lldapssl -lldapgss -lgssapi_krb5" 7892 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 7893 7894 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 7895 7896 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 7897 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 7898 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 7899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 7900$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 7901if eval \${$as_ac_Lib+:} false; then : 7902 $as_echo_n "(cached) " >&6 7903else 7904 ac_check_lib_save_LIBS=$LIBS 7905LIBS="-l${ldaplib} ${extralib} $LIBS" 7906cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7907/* end confdefs.h. */ 7908 7909/* Override any GCC internal prototype to avoid an error. 7910 Use char because int might match the return type of a GCC 7911 builtin and then its argument prototype would still apply. */ 7912#ifdef __cplusplus 7913extern "C" 7914#endif 7915char ldap_init (); 7916int 7917main () 7918{ 7919return ldap_init (); 7920 ; 7921 return 0; 7922} 7923_ACEOF 7924if ac_fn_c_try_link "$LINENO"; then : 7925 eval "$as_ac_Lib=yes" 7926else 7927 eval "$as_ac_Lib=no" 7928fi 7929rm -f core conftest.err conftest.$ac_objext \ 7930 conftest$ac_exeext conftest.$ac_ext 7931LIBS=$ac_check_lib_save_LIBS 7932fi 7933eval ac_res=\$$as_ac_Lib 7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7935$as_echo "$ac_res" >&6; } 7936if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7937 7938 LDADD_ldap_found="-l${ldaplib} ${extralib}" 7939 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 7940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 7941$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 7942if eval \${$as_ac_Lib+:} false; then : 7943 $as_echo_n "(cached) " >&6 7944else 7945 ac_check_lib_save_LIBS=$LIBS 7946LIBS="-l${ldaplib} ${extralib} $LIBS" 7947cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7948/* end confdefs.h. */ 7949 7950/* Override any GCC internal prototype to avoid an error. 7951 Use char because int might match the return type of a GCC 7952 builtin and then its argument prototype would still apply. */ 7953#ifdef __cplusplus 7954extern "C" 7955#endif 7956char ldapssl_client_init (); 7957int 7958main () 7959{ 7960return ldapssl_client_init (); 7961 ; 7962 return 0; 7963} 7964_ACEOF 7965if ac_fn_c_try_link "$LINENO"; then : 7966 eval "$as_ac_Lib=yes" 7967else 7968 eval "$as_ac_Lib=no" 7969fi 7970rm -f core conftest.err conftest.$ac_objext \ 7971 conftest$ac_exeext conftest.$ac_ext 7972LIBS=$ac_check_lib_save_LIBS 7973fi 7974eval ac_res=\$$as_ac_Lib 7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7976$as_echo "$ac_res" >&6; } 7977if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7978 apu_has_ldapssl_client_init="1" 7979fi 7980 7981 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 7982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 7983$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 7984if eval \${$as_ac_Lib+:} false; then : 7985 $as_echo_n "(cached) " >&6 7986else 7987 ac_check_lib_save_LIBS=$LIBS 7988LIBS="-l${ldaplib} ${extralib} $LIBS" 7989cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7990/* end confdefs.h. */ 7991 7992/* Override any GCC internal prototype to avoid an error. 7993 Use char because int might match the return type of a GCC 7994 builtin and then its argument prototype would still apply. */ 7995#ifdef __cplusplus 7996extern "C" 7997#endif 7998char ldapssl_client_deinit (); 7999int 8000main () 8001{ 8002return ldapssl_client_deinit (); 8003 ; 8004 return 0; 8005} 8006_ACEOF 8007if ac_fn_c_try_link "$LINENO"; then : 8008 eval "$as_ac_Lib=yes" 8009else 8010 eval "$as_ac_Lib=no" 8011fi 8012rm -f core conftest.err conftest.$ac_objext \ 8013 conftest$ac_exeext conftest.$ac_ext 8014LIBS=$ac_check_lib_save_LIBS 8015fi 8016eval ac_res=\$$as_ac_Lib 8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8018$as_echo "$ac_res" >&6; } 8019if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8020 apu_has_ldapssl_client_deinit="1" 8021fi 8022 8023 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 8024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 8025$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 8026if eval \${$as_ac_Lib+:} false; then : 8027 $as_echo_n "(cached) " >&6 8028else 8029 ac_check_lib_save_LIBS=$LIBS 8030LIBS="-l${ldaplib} ${extralib} $LIBS" 8031cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8032/* end confdefs.h. */ 8033 8034/* Override any GCC internal prototype to avoid an error. 8035 Use char because int might match the return type of a GCC 8036 builtin and then its argument prototype would still apply. */ 8037#ifdef __cplusplus 8038extern "C" 8039#endif 8040char ldapssl_add_trusted_cert (); 8041int 8042main () 8043{ 8044return ldapssl_add_trusted_cert (); 8045 ; 8046 return 0; 8047} 8048_ACEOF 8049if ac_fn_c_try_link "$LINENO"; then : 8050 eval "$as_ac_Lib=yes" 8051else 8052 eval "$as_ac_Lib=no" 8053fi 8054rm -f core conftest.err conftest.$ac_objext \ 8055 conftest$ac_exeext conftest.$ac_ext 8056LIBS=$ac_check_lib_save_LIBS 8057fi 8058eval ac_res=\$$as_ac_Lib 8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8060$as_echo "$ac_res" >&6; } 8061if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8062 apu_has_ldapssl_add_trusted_cert="1" 8063fi 8064 8065 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 8066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 8067$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 8068if eval \${$as_ac_Lib+:} false; then : 8069 $as_echo_n "(cached) " >&6 8070else 8071 ac_check_lib_save_LIBS=$LIBS 8072LIBS="-l${ldaplib} ${extralib} $LIBS" 8073cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8074/* end confdefs.h. */ 8075 8076/* Override any GCC internal prototype to avoid an error. 8077 Use char because int might match the return type of a GCC 8078 builtin and then its argument prototype would still apply. */ 8079#ifdef __cplusplus 8080extern "C" 8081#endif 8082char ldap_start_tls_s (); 8083int 8084main () 8085{ 8086return ldap_start_tls_s (); 8087 ; 8088 return 0; 8089} 8090_ACEOF 8091if ac_fn_c_try_link "$LINENO"; then : 8092 eval "$as_ac_Lib=yes" 8093else 8094 eval "$as_ac_Lib=no" 8095fi 8096rm -f core conftest.err conftest.$ac_objext \ 8097 conftest$ac_exeext conftest.$ac_ext 8098LIBS=$ac_check_lib_save_LIBS 8099fi 8100eval ac_res=\$$as_ac_Lib 8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8102$as_echo "$ac_res" >&6; } 8103if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8104 apu_has_ldap_start_tls_s="1" 8105fi 8106 8107 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 8108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 8109$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 8110if eval \${$as_ac_Lib+:} false; then : 8111 $as_echo_n "(cached) " >&6 8112else 8113 ac_check_lib_save_LIBS=$LIBS 8114LIBS="-l${ldaplib} ${extralib} $LIBS" 8115cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8116/* end confdefs.h. */ 8117 8118/* Override any GCC internal prototype to avoid an error. 8119 Use char because int might match the return type of a GCC 8120 builtin and then its argument prototype would still apply. */ 8121#ifdef __cplusplus 8122extern "C" 8123#endif 8124char ldap_sslinit (); 8125int 8126main () 8127{ 8128return ldap_sslinit (); 8129 ; 8130 return 0; 8131} 8132_ACEOF 8133if ac_fn_c_try_link "$LINENO"; then : 8134 eval "$as_ac_Lib=yes" 8135else 8136 eval "$as_ac_Lib=no" 8137fi 8138rm -f core conftest.err conftest.$ac_objext \ 8139 conftest$ac_exeext conftest.$ac_ext 8140LIBS=$ac_check_lib_save_LIBS 8141fi 8142eval ac_res=\$$as_ac_Lib 8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8144$as_echo "$ac_res" >&6; } 8145if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8146 apu_has_ldap_sslinit="1" 8147fi 8148 8149 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 8150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 8151$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 8152if eval \${$as_ac_Lib+:} false; then : 8153 $as_echo_n "(cached) " >&6 8154else 8155 ac_check_lib_save_LIBS=$LIBS 8156LIBS="-l${ldaplib} ${extralib} $LIBS" 8157cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8158/* end confdefs.h. */ 8159 8160/* Override any GCC internal prototype to avoid an error. 8161 Use char because int might match the return type of a GCC 8162 builtin and then its argument prototype would still apply. */ 8163#ifdef __cplusplus 8164extern "C" 8165#endif 8166char ldapssl_init (); 8167int 8168main () 8169{ 8170return ldapssl_init (); 8171 ; 8172 return 0; 8173} 8174_ACEOF 8175if ac_fn_c_try_link "$LINENO"; then : 8176 eval "$as_ac_Lib=yes" 8177else 8178 eval "$as_ac_Lib=no" 8179fi 8180rm -f core conftest.err conftest.$ac_objext \ 8181 conftest$ac_exeext conftest.$ac_ext 8182LIBS=$ac_check_lib_save_LIBS 8183fi 8184eval ac_res=\$$as_ac_Lib 8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8186$as_echo "$ac_res" >&6; } 8187if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8188 apu_has_ldapssl_init="1" 8189fi 8190 8191 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 8192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 8193$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 8194if eval \${$as_ac_Lib+:} false; then : 8195 $as_echo_n "(cached) " >&6 8196else 8197 ac_check_lib_save_LIBS=$LIBS 8198LIBS="-l${ldaplib} ${extralib} $LIBS" 8199cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8200/* end confdefs.h. */ 8201 8202/* Override any GCC internal prototype to avoid an error. 8203 Use char because int might match the return type of a GCC 8204 builtin and then its argument prototype would still apply. */ 8205#ifdef __cplusplus 8206extern "C" 8207#endif 8208char ldapssl_install_routines (); 8209int 8210main () 8211{ 8212return ldapssl_install_routines (); 8213 ; 8214 return 0; 8215} 8216_ACEOF 8217if ac_fn_c_try_link "$LINENO"; then : 8218 eval "$as_ac_Lib=yes" 8219else 8220 eval "$as_ac_Lib=no" 8221fi 8222rm -f core conftest.err conftest.$ac_objext \ 8223 conftest$ac_exeext conftest.$ac_ext 8224LIBS=$ac_check_lib_save_LIBS 8225fi 8226eval ac_res=\$$as_ac_Lib 8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8228$as_echo "$ac_res" >&6; } 8229if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8230 apu_has_ldapssl_install_routines="1" 8231fi 8232 8233 apu_has_ldap="1"; 8234 8235fi 8236 8237 fi 8238 8239 8240 if test ${apu_has_ldap} != "1"; then 8241 ldaplib="ldapsdk" 8242 extralib="-lldapx -lldapssl -lldapgss -lgss -lresolv -lsocket" 8243 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 8244 8245 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 8246 8247 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 8248 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 8249 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 8250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 8251$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 8252if eval \${$as_ac_Lib+:} false; then : 8253 $as_echo_n "(cached) " >&6 8254else 8255 ac_check_lib_save_LIBS=$LIBS 8256LIBS="-l${ldaplib} ${extralib} $LIBS" 8257cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8258/* end confdefs.h. */ 8259 8260/* Override any GCC internal prototype to avoid an error. 8261 Use char because int might match the return type of a GCC 8262 builtin and then its argument prototype would still apply. */ 8263#ifdef __cplusplus 8264extern "C" 8265#endif 8266char ldap_init (); 8267int 8268main () 8269{ 8270return ldap_init (); 8271 ; 8272 return 0; 8273} 8274_ACEOF 8275if ac_fn_c_try_link "$LINENO"; then : 8276 eval "$as_ac_Lib=yes" 8277else 8278 eval "$as_ac_Lib=no" 8279fi 8280rm -f core conftest.err conftest.$ac_objext \ 8281 conftest$ac_exeext conftest.$ac_ext 8282LIBS=$ac_check_lib_save_LIBS 8283fi 8284eval ac_res=\$$as_ac_Lib 8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8286$as_echo "$ac_res" >&6; } 8287if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8288 8289 LDADD_ldap_found="-l${ldaplib} ${extralib}" 8290 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 8291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 8292$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 8293if eval \${$as_ac_Lib+:} false; then : 8294 $as_echo_n "(cached) " >&6 8295else 8296 ac_check_lib_save_LIBS=$LIBS 8297LIBS="-l${ldaplib} ${extralib} $LIBS" 8298cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8299/* end confdefs.h. */ 8300 8301/* Override any GCC internal prototype to avoid an error. 8302 Use char because int might match the return type of a GCC 8303 builtin and then its argument prototype would still apply. */ 8304#ifdef __cplusplus 8305extern "C" 8306#endif 8307char ldapssl_client_init (); 8308int 8309main () 8310{ 8311return ldapssl_client_init (); 8312 ; 8313 return 0; 8314} 8315_ACEOF 8316if ac_fn_c_try_link "$LINENO"; then : 8317 eval "$as_ac_Lib=yes" 8318else 8319 eval "$as_ac_Lib=no" 8320fi 8321rm -f core conftest.err conftest.$ac_objext \ 8322 conftest$ac_exeext conftest.$ac_ext 8323LIBS=$ac_check_lib_save_LIBS 8324fi 8325eval ac_res=\$$as_ac_Lib 8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8327$as_echo "$ac_res" >&6; } 8328if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8329 apu_has_ldapssl_client_init="1" 8330fi 8331 8332 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 8333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 8334$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 8335if eval \${$as_ac_Lib+:} false; then : 8336 $as_echo_n "(cached) " >&6 8337else 8338 ac_check_lib_save_LIBS=$LIBS 8339LIBS="-l${ldaplib} ${extralib} $LIBS" 8340cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8341/* end confdefs.h. */ 8342 8343/* Override any GCC internal prototype to avoid an error. 8344 Use char because int might match the return type of a GCC 8345 builtin and then its argument prototype would still apply. */ 8346#ifdef __cplusplus 8347extern "C" 8348#endif 8349char ldapssl_client_deinit (); 8350int 8351main () 8352{ 8353return ldapssl_client_deinit (); 8354 ; 8355 return 0; 8356} 8357_ACEOF 8358if ac_fn_c_try_link "$LINENO"; then : 8359 eval "$as_ac_Lib=yes" 8360else 8361 eval "$as_ac_Lib=no" 8362fi 8363rm -f core conftest.err conftest.$ac_objext \ 8364 conftest$ac_exeext conftest.$ac_ext 8365LIBS=$ac_check_lib_save_LIBS 8366fi 8367eval ac_res=\$$as_ac_Lib 8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8369$as_echo "$ac_res" >&6; } 8370if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8371 apu_has_ldapssl_client_deinit="1" 8372fi 8373 8374 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 8375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 8376$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 8377if eval \${$as_ac_Lib+:} false; then : 8378 $as_echo_n "(cached) " >&6 8379else 8380 ac_check_lib_save_LIBS=$LIBS 8381LIBS="-l${ldaplib} ${extralib} $LIBS" 8382cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8383/* end confdefs.h. */ 8384 8385/* Override any GCC internal prototype to avoid an error. 8386 Use char because int might match the return type of a GCC 8387 builtin and then its argument prototype would still apply. */ 8388#ifdef __cplusplus 8389extern "C" 8390#endif 8391char ldapssl_add_trusted_cert (); 8392int 8393main () 8394{ 8395return ldapssl_add_trusted_cert (); 8396 ; 8397 return 0; 8398} 8399_ACEOF 8400if ac_fn_c_try_link "$LINENO"; then : 8401 eval "$as_ac_Lib=yes" 8402else 8403 eval "$as_ac_Lib=no" 8404fi 8405rm -f core conftest.err conftest.$ac_objext \ 8406 conftest$ac_exeext conftest.$ac_ext 8407LIBS=$ac_check_lib_save_LIBS 8408fi 8409eval ac_res=\$$as_ac_Lib 8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8411$as_echo "$ac_res" >&6; } 8412if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8413 apu_has_ldapssl_add_trusted_cert="1" 8414fi 8415 8416 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 8417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 8418$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 8419if eval \${$as_ac_Lib+:} false; then : 8420 $as_echo_n "(cached) " >&6 8421else 8422 ac_check_lib_save_LIBS=$LIBS 8423LIBS="-l${ldaplib} ${extralib} $LIBS" 8424cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8425/* end confdefs.h. */ 8426 8427/* Override any GCC internal prototype to avoid an error. 8428 Use char because int might match the return type of a GCC 8429 builtin and then its argument prototype would still apply. */ 8430#ifdef __cplusplus 8431extern "C" 8432#endif 8433char ldap_start_tls_s (); 8434int 8435main () 8436{ 8437return ldap_start_tls_s (); 8438 ; 8439 return 0; 8440} 8441_ACEOF 8442if ac_fn_c_try_link "$LINENO"; then : 8443 eval "$as_ac_Lib=yes" 8444else 8445 eval "$as_ac_Lib=no" 8446fi 8447rm -f core conftest.err conftest.$ac_objext \ 8448 conftest$ac_exeext conftest.$ac_ext 8449LIBS=$ac_check_lib_save_LIBS 8450fi 8451eval ac_res=\$$as_ac_Lib 8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8453$as_echo "$ac_res" >&6; } 8454if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8455 apu_has_ldap_start_tls_s="1" 8456fi 8457 8458 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 8459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 8460$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 8461if eval \${$as_ac_Lib+:} false; then : 8462 $as_echo_n "(cached) " >&6 8463else 8464 ac_check_lib_save_LIBS=$LIBS 8465LIBS="-l${ldaplib} ${extralib} $LIBS" 8466cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8467/* end confdefs.h. */ 8468 8469/* Override any GCC internal prototype to avoid an error. 8470 Use char because int might match the return type of a GCC 8471 builtin and then its argument prototype would still apply. */ 8472#ifdef __cplusplus 8473extern "C" 8474#endif 8475char ldap_sslinit (); 8476int 8477main () 8478{ 8479return ldap_sslinit (); 8480 ; 8481 return 0; 8482} 8483_ACEOF 8484if ac_fn_c_try_link "$LINENO"; then : 8485 eval "$as_ac_Lib=yes" 8486else 8487 eval "$as_ac_Lib=no" 8488fi 8489rm -f core conftest.err conftest.$ac_objext \ 8490 conftest$ac_exeext conftest.$ac_ext 8491LIBS=$ac_check_lib_save_LIBS 8492fi 8493eval ac_res=\$$as_ac_Lib 8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8495$as_echo "$ac_res" >&6; } 8496if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8497 apu_has_ldap_sslinit="1" 8498fi 8499 8500 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 8501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 8502$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 8503if eval \${$as_ac_Lib+:} false; then : 8504 $as_echo_n "(cached) " >&6 8505else 8506 ac_check_lib_save_LIBS=$LIBS 8507LIBS="-l${ldaplib} ${extralib} $LIBS" 8508cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8509/* end confdefs.h. */ 8510 8511/* Override any GCC internal prototype to avoid an error. 8512 Use char because int might match the return type of a GCC 8513 builtin and then its argument prototype would still apply. */ 8514#ifdef __cplusplus 8515extern "C" 8516#endif 8517char ldapssl_init (); 8518int 8519main () 8520{ 8521return ldapssl_init (); 8522 ; 8523 return 0; 8524} 8525_ACEOF 8526if ac_fn_c_try_link "$LINENO"; then : 8527 eval "$as_ac_Lib=yes" 8528else 8529 eval "$as_ac_Lib=no" 8530fi 8531rm -f core conftest.err conftest.$ac_objext \ 8532 conftest$ac_exeext conftest.$ac_ext 8533LIBS=$ac_check_lib_save_LIBS 8534fi 8535eval ac_res=\$$as_ac_Lib 8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8537$as_echo "$ac_res" >&6; } 8538if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8539 apu_has_ldapssl_init="1" 8540fi 8541 8542 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 8543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 8544$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 8545if eval \${$as_ac_Lib+:} false; then : 8546 $as_echo_n "(cached) " >&6 8547else 8548 ac_check_lib_save_LIBS=$LIBS 8549LIBS="-l${ldaplib} ${extralib} $LIBS" 8550cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8551/* end confdefs.h. */ 8552 8553/* Override any GCC internal prototype to avoid an error. 8554 Use char because int might match the return type of a GCC 8555 builtin and then its argument prototype would still apply. */ 8556#ifdef __cplusplus 8557extern "C" 8558#endif 8559char ldapssl_install_routines (); 8560int 8561main () 8562{ 8563return ldapssl_install_routines (); 8564 ; 8565 return 0; 8566} 8567_ACEOF 8568if ac_fn_c_try_link "$LINENO"; then : 8569 eval "$as_ac_Lib=yes" 8570else 8571 eval "$as_ac_Lib=no" 8572fi 8573rm -f core conftest.err conftest.$ac_objext \ 8574 conftest$ac_exeext conftest.$ac_ext 8575LIBS=$ac_check_lib_save_LIBS 8576fi 8577eval ac_res=\$$as_ac_Lib 8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8579$as_echo "$ac_res" >&6; } 8580if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8581 apu_has_ldapssl_install_routines="1" 8582fi 8583 8584 apu_has_ldap="1"; 8585 8586fi 8587 8588 fi 8589 8590 8591 if test ${apu_has_ldap} != "1"; then 8592 ldaplib="ldap" 8593 extralib="-llber" 8594 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 8595 8596 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 8597 8598 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 8599 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 8600 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 8601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 8602$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 8603if eval \${$as_ac_Lib+:} false; then : 8604 $as_echo_n "(cached) " >&6 8605else 8606 ac_check_lib_save_LIBS=$LIBS 8607LIBS="-l${ldaplib} ${extralib} $LIBS" 8608cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8609/* end confdefs.h. */ 8610 8611/* Override any GCC internal prototype to avoid an error. 8612 Use char because int might match the return type of a GCC 8613 builtin and then its argument prototype would still apply. */ 8614#ifdef __cplusplus 8615extern "C" 8616#endif 8617char ldap_init (); 8618int 8619main () 8620{ 8621return ldap_init (); 8622 ; 8623 return 0; 8624} 8625_ACEOF 8626if ac_fn_c_try_link "$LINENO"; then : 8627 eval "$as_ac_Lib=yes" 8628else 8629 eval "$as_ac_Lib=no" 8630fi 8631rm -f core conftest.err conftest.$ac_objext \ 8632 conftest$ac_exeext conftest.$ac_ext 8633LIBS=$ac_check_lib_save_LIBS 8634fi 8635eval ac_res=\$$as_ac_Lib 8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8637$as_echo "$ac_res" >&6; } 8638if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8639 8640 LDADD_ldap_found="-l${ldaplib} ${extralib}" 8641 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 8642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 8643$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 8644if eval \${$as_ac_Lib+:} false; then : 8645 $as_echo_n "(cached) " >&6 8646else 8647 ac_check_lib_save_LIBS=$LIBS 8648LIBS="-l${ldaplib} ${extralib} $LIBS" 8649cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8650/* end confdefs.h. */ 8651 8652/* Override any GCC internal prototype to avoid an error. 8653 Use char because int might match the return type of a GCC 8654 builtin and then its argument prototype would still apply. */ 8655#ifdef __cplusplus 8656extern "C" 8657#endif 8658char ldapssl_client_init (); 8659int 8660main () 8661{ 8662return ldapssl_client_init (); 8663 ; 8664 return 0; 8665} 8666_ACEOF 8667if ac_fn_c_try_link "$LINENO"; then : 8668 eval "$as_ac_Lib=yes" 8669else 8670 eval "$as_ac_Lib=no" 8671fi 8672rm -f core conftest.err conftest.$ac_objext \ 8673 conftest$ac_exeext conftest.$ac_ext 8674LIBS=$ac_check_lib_save_LIBS 8675fi 8676eval ac_res=\$$as_ac_Lib 8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8678$as_echo "$ac_res" >&6; } 8679if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8680 apu_has_ldapssl_client_init="1" 8681fi 8682 8683 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 8684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 8685$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 8686if eval \${$as_ac_Lib+:} false; then : 8687 $as_echo_n "(cached) " >&6 8688else 8689 ac_check_lib_save_LIBS=$LIBS 8690LIBS="-l${ldaplib} ${extralib} $LIBS" 8691cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8692/* end confdefs.h. */ 8693 8694/* Override any GCC internal prototype to avoid an error. 8695 Use char because int might match the return type of a GCC 8696 builtin and then its argument prototype would still apply. */ 8697#ifdef __cplusplus 8698extern "C" 8699#endif 8700char ldapssl_client_deinit (); 8701int 8702main () 8703{ 8704return ldapssl_client_deinit (); 8705 ; 8706 return 0; 8707} 8708_ACEOF 8709if ac_fn_c_try_link "$LINENO"; then : 8710 eval "$as_ac_Lib=yes" 8711else 8712 eval "$as_ac_Lib=no" 8713fi 8714rm -f core conftest.err conftest.$ac_objext \ 8715 conftest$ac_exeext conftest.$ac_ext 8716LIBS=$ac_check_lib_save_LIBS 8717fi 8718eval ac_res=\$$as_ac_Lib 8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8720$as_echo "$ac_res" >&6; } 8721if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8722 apu_has_ldapssl_client_deinit="1" 8723fi 8724 8725 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 8726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 8727$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 8728if eval \${$as_ac_Lib+:} false; then : 8729 $as_echo_n "(cached) " >&6 8730else 8731 ac_check_lib_save_LIBS=$LIBS 8732LIBS="-l${ldaplib} ${extralib} $LIBS" 8733cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8734/* end confdefs.h. */ 8735 8736/* Override any GCC internal prototype to avoid an error. 8737 Use char because int might match the return type of a GCC 8738 builtin and then its argument prototype would still apply. */ 8739#ifdef __cplusplus 8740extern "C" 8741#endif 8742char ldapssl_add_trusted_cert (); 8743int 8744main () 8745{ 8746return ldapssl_add_trusted_cert (); 8747 ; 8748 return 0; 8749} 8750_ACEOF 8751if ac_fn_c_try_link "$LINENO"; then : 8752 eval "$as_ac_Lib=yes" 8753else 8754 eval "$as_ac_Lib=no" 8755fi 8756rm -f core conftest.err conftest.$ac_objext \ 8757 conftest$ac_exeext conftest.$ac_ext 8758LIBS=$ac_check_lib_save_LIBS 8759fi 8760eval ac_res=\$$as_ac_Lib 8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8762$as_echo "$ac_res" >&6; } 8763if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8764 apu_has_ldapssl_add_trusted_cert="1" 8765fi 8766 8767 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 8768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 8769$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 8770if eval \${$as_ac_Lib+:} false; then : 8771 $as_echo_n "(cached) " >&6 8772else 8773 ac_check_lib_save_LIBS=$LIBS 8774LIBS="-l${ldaplib} ${extralib} $LIBS" 8775cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8776/* end confdefs.h. */ 8777 8778/* Override any GCC internal prototype to avoid an error. 8779 Use char because int might match the return type of a GCC 8780 builtin and then its argument prototype would still apply. */ 8781#ifdef __cplusplus 8782extern "C" 8783#endif 8784char ldap_start_tls_s (); 8785int 8786main () 8787{ 8788return ldap_start_tls_s (); 8789 ; 8790 return 0; 8791} 8792_ACEOF 8793if ac_fn_c_try_link "$LINENO"; then : 8794 eval "$as_ac_Lib=yes" 8795else 8796 eval "$as_ac_Lib=no" 8797fi 8798rm -f core conftest.err conftest.$ac_objext \ 8799 conftest$ac_exeext conftest.$ac_ext 8800LIBS=$ac_check_lib_save_LIBS 8801fi 8802eval ac_res=\$$as_ac_Lib 8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8804$as_echo "$ac_res" >&6; } 8805if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8806 apu_has_ldap_start_tls_s="1" 8807fi 8808 8809 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 8810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 8811$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 8812if eval \${$as_ac_Lib+:} false; then : 8813 $as_echo_n "(cached) " >&6 8814else 8815 ac_check_lib_save_LIBS=$LIBS 8816LIBS="-l${ldaplib} ${extralib} $LIBS" 8817cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8818/* end confdefs.h. */ 8819 8820/* Override any GCC internal prototype to avoid an error. 8821 Use char because int might match the return type of a GCC 8822 builtin and then its argument prototype would still apply. */ 8823#ifdef __cplusplus 8824extern "C" 8825#endif 8826char ldap_sslinit (); 8827int 8828main () 8829{ 8830return ldap_sslinit (); 8831 ; 8832 return 0; 8833} 8834_ACEOF 8835if ac_fn_c_try_link "$LINENO"; then : 8836 eval "$as_ac_Lib=yes" 8837else 8838 eval "$as_ac_Lib=no" 8839fi 8840rm -f core conftest.err conftest.$ac_objext \ 8841 conftest$ac_exeext conftest.$ac_ext 8842LIBS=$ac_check_lib_save_LIBS 8843fi 8844eval ac_res=\$$as_ac_Lib 8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8846$as_echo "$ac_res" >&6; } 8847if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8848 apu_has_ldap_sslinit="1" 8849fi 8850 8851 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 8852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 8853$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 8854if eval \${$as_ac_Lib+:} false; then : 8855 $as_echo_n "(cached) " >&6 8856else 8857 ac_check_lib_save_LIBS=$LIBS 8858LIBS="-l${ldaplib} ${extralib} $LIBS" 8859cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8860/* end confdefs.h. */ 8861 8862/* Override any GCC internal prototype to avoid an error. 8863 Use char because int might match the return type of a GCC 8864 builtin and then its argument prototype would still apply. */ 8865#ifdef __cplusplus 8866extern "C" 8867#endif 8868char ldapssl_init (); 8869int 8870main () 8871{ 8872return ldapssl_init (); 8873 ; 8874 return 0; 8875} 8876_ACEOF 8877if ac_fn_c_try_link "$LINENO"; then : 8878 eval "$as_ac_Lib=yes" 8879else 8880 eval "$as_ac_Lib=no" 8881fi 8882rm -f core conftest.err conftest.$ac_objext \ 8883 conftest$ac_exeext conftest.$ac_ext 8884LIBS=$ac_check_lib_save_LIBS 8885fi 8886eval ac_res=\$$as_ac_Lib 8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8888$as_echo "$ac_res" >&6; } 8889if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8890 apu_has_ldapssl_init="1" 8891fi 8892 8893 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 8894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 8895$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 8896if eval \${$as_ac_Lib+:} false; then : 8897 $as_echo_n "(cached) " >&6 8898else 8899 ac_check_lib_save_LIBS=$LIBS 8900LIBS="-l${ldaplib} ${extralib} $LIBS" 8901cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8902/* end confdefs.h. */ 8903 8904/* Override any GCC internal prototype to avoid an error. 8905 Use char because int might match the return type of a GCC 8906 builtin and then its argument prototype would still apply. */ 8907#ifdef __cplusplus 8908extern "C" 8909#endif 8910char ldapssl_install_routines (); 8911int 8912main () 8913{ 8914return ldapssl_install_routines (); 8915 ; 8916 return 0; 8917} 8918_ACEOF 8919if ac_fn_c_try_link "$LINENO"; then : 8920 eval "$as_ac_Lib=yes" 8921else 8922 eval "$as_ac_Lib=no" 8923fi 8924rm -f core conftest.err conftest.$ac_objext \ 8925 conftest$ac_exeext conftest.$ac_ext 8926LIBS=$ac_check_lib_save_LIBS 8927fi 8928eval ac_res=\$$as_ac_Lib 8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8930$as_echo "$ac_res" >&6; } 8931if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8932 apu_has_ldapssl_install_routines="1" 8933fi 8934 8935 apu_has_ldap="1"; 8936 8937fi 8938 8939 fi 8940 8941 8942 if test ${apu_has_ldap} != "1"; then 8943 ldaplib="ldap" 8944 extralib="-llber -lresolv" 8945 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 8946 8947 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 8948 8949 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 8950 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 8951 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 8952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 8953$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 8954if eval \${$as_ac_Lib+:} false; then : 8955 $as_echo_n "(cached) " >&6 8956else 8957 ac_check_lib_save_LIBS=$LIBS 8958LIBS="-l${ldaplib} ${extralib} $LIBS" 8959cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8960/* end confdefs.h. */ 8961 8962/* Override any GCC internal prototype to avoid an error. 8963 Use char because int might match the return type of a GCC 8964 builtin and then its argument prototype would still apply. */ 8965#ifdef __cplusplus 8966extern "C" 8967#endif 8968char ldap_init (); 8969int 8970main () 8971{ 8972return ldap_init (); 8973 ; 8974 return 0; 8975} 8976_ACEOF 8977if ac_fn_c_try_link "$LINENO"; then : 8978 eval "$as_ac_Lib=yes" 8979else 8980 eval "$as_ac_Lib=no" 8981fi 8982rm -f core conftest.err conftest.$ac_objext \ 8983 conftest$ac_exeext conftest.$ac_ext 8984LIBS=$ac_check_lib_save_LIBS 8985fi 8986eval ac_res=\$$as_ac_Lib 8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8988$as_echo "$ac_res" >&6; } 8989if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8990 8991 LDADD_ldap_found="-l${ldaplib} ${extralib}" 8992 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 8993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 8994$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 8995if eval \${$as_ac_Lib+:} false; then : 8996 $as_echo_n "(cached) " >&6 8997else 8998 ac_check_lib_save_LIBS=$LIBS 8999LIBS="-l${ldaplib} ${extralib} $LIBS" 9000cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9001/* end confdefs.h. */ 9002 9003/* Override any GCC internal prototype to avoid an error. 9004 Use char because int might match the return type of a GCC 9005 builtin and then its argument prototype would still apply. */ 9006#ifdef __cplusplus 9007extern "C" 9008#endif 9009char ldapssl_client_init (); 9010int 9011main () 9012{ 9013return ldapssl_client_init (); 9014 ; 9015 return 0; 9016} 9017_ACEOF 9018if ac_fn_c_try_link "$LINENO"; then : 9019 eval "$as_ac_Lib=yes" 9020else 9021 eval "$as_ac_Lib=no" 9022fi 9023rm -f core conftest.err conftest.$ac_objext \ 9024 conftest$ac_exeext conftest.$ac_ext 9025LIBS=$ac_check_lib_save_LIBS 9026fi 9027eval ac_res=\$$as_ac_Lib 9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9029$as_echo "$ac_res" >&6; } 9030if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9031 apu_has_ldapssl_client_init="1" 9032fi 9033 9034 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 9035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 9036$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 9037if eval \${$as_ac_Lib+:} false; then : 9038 $as_echo_n "(cached) " >&6 9039else 9040 ac_check_lib_save_LIBS=$LIBS 9041LIBS="-l${ldaplib} ${extralib} $LIBS" 9042cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9043/* end confdefs.h. */ 9044 9045/* Override any GCC internal prototype to avoid an error. 9046 Use char because int might match the return type of a GCC 9047 builtin and then its argument prototype would still apply. */ 9048#ifdef __cplusplus 9049extern "C" 9050#endif 9051char ldapssl_client_deinit (); 9052int 9053main () 9054{ 9055return ldapssl_client_deinit (); 9056 ; 9057 return 0; 9058} 9059_ACEOF 9060if ac_fn_c_try_link "$LINENO"; then : 9061 eval "$as_ac_Lib=yes" 9062else 9063 eval "$as_ac_Lib=no" 9064fi 9065rm -f core conftest.err conftest.$ac_objext \ 9066 conftest$ac_exeext conftest.$ac_ext 9067LIBS=$ac_check_lib_save_LIBS 9068fi 9069eval ac_res=\$$as_ac_Lib 9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9071$as_echo "$ac_res" >&6; } 9072if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9073 apu_has_ldapssl_client_deinit="1" 9074fi 9075 9076 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 9077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 9078$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 9079if eval \${$as_ac_Lib+:} false; then : 9080 $as_echo_n "(cached) " >&6 9081else 9082 ac_check_lib_save_LIBS=$LIBS 9083LIBS="-l${ldaplib} ${extralib} $LIBS" 9084cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9085/* end confdefs.h. */ 9086 9087/* Override any GCC internal prototype to avoid an error. 9088 Use char because int might match the return type of a GCC 9089 builtin and then its argument prototype would still apply. */ 9090#ifdef __cplusplus 9091extern "C" 9092#endif 9093char ldapssl_add_trusted_cert (); 9094int 9095main () 9096{ 9097return ldapssl_add_trusted_cert (); 9098 ; 9099 return 0; 9100} 9101_ACEOF 9102if ac_fn_c_try_link "$LINENO"; then : 9103 eval "$as_ac_Lib=yes" 9104else 9105 eval "$as_ac_Lib=no" 9106fi 9107rm -f core conftest.err conftest.$ac_objext \ 9108 conftest$ac_exeext conftest.$ac_ext 9109LIBS=$ac_check_lib_save_LIBS 9110fi 9111eval ac_res=\$$as_ac_Lib 9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9113$as_echo "$ac_res" >&6; } 9114if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9115 apu_has_ldapssl_add_trusted_cert="1" 9116fi 9117 9118 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 9119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 9120$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 9121if eval \${$as_ac_Lib+:} false; then : 9122 $as_echo_n "(cached) " >&6 9123else 9124 ac_check_lib_save_LIBS=$LIBS 9125LIBS="-l${ldaplib} ${extralib} $LIBS" 9126cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9127/* end confdefs.h. */ 9128 9129/* Override any GCC internal prototype to avoid an error. 9130 Use char because int might match the return type of a GCC 9131 builtin and then its argument prototype would still apply. */ 9132#ifdef __cplusplus 9133extern "C" 9134#endif 9135char ldap_start_tls_s (); 9136int 9137main () 9138{ 9139return ldap_start_tls_s (); 9140 ; 9141 return 0; 9142} 9143_ACEOF 9144if ac_fn_c_try_link "$LINENO"; then : 9145 eval "$as_ac_Lib=yes" 9146else 9147 eval "$as_ac_Lib=no" 9148fi 9149rm -f core conftest.err conftest.$ac_objext \ 9150 conftest$ac_exeext conftest.$ac_ext 9151LIBS=$ac_check_lib_save_LIBS 9152fi 9153eval ac_res=\$$as_ac_Lib 9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9155$as_echo "$ac_res" >&6; } 9156if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9157 apu_has_ldap_start_tls_s="1" 9158fi 9159 9160 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 9161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 9162$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 9163if eval \${$as_ac_Lib+:} false; then : 9164 $as_echo_n "(cached) " >&6 9165else 9166 ac_check_lib_save_LIBS=$LIBS 9167LIBS="-l${ldaplib} ${extralib} $LIBS" 9168cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9169/* end confdefs.h. */ 9170 9171/* Override any GCC internal prototype to avoid an error. 9172 Use char because int might match the return type of a GCC 9173 builtin and then its argument prototype would still apply. */ 9174#ifdef __cplusplus 9175extern "C" 9176#endif 9177char ldap_sslinit (); 9178int 9179main () 9180{ 9181return ldap_sslinit (); 9182 ; 9183 return 0; 9184} 9185_ACEOF 9186if ac_fn_c_try_link "$LINENO"; then : 9187 eval "$as_ac_Lib=yes" 9188else 9189 eval "$as_ac_Lib=no" 9190fi 9191rm -f core conftest.err conftest.$ac_objext \ 9192 conftest$ac_exeext conftest.$ac_ext 9193LIBS=$ac_check_lib_save_LIBS 9194fi 9195eval ac_res=\$$as_ac_Lib 9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9197$as_echo "$ac_res" >&6; } 9198if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9199 apu_has_ldap_sslinit="1" 9200fi 9201 9202 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 9203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 9204$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 9205if eval \${$as_ac_Lib+:} false; then : 9206 $as_echo_n "(cached) " >&6 9207else 9208 ac_check_lib_save_LIBS=$LIBS 9209LIBS="-l${ldaplib} ${extralib} $LIBS" 9210cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9211/* end confdefs.h. */ 9212 9213/* Override any GCC internal prototype to avoid an error. 9214 Use char because int might match the return type of a GCC 9215 builtin and then its argument prototype would still apply. */ 9216#ifdef __cplusplus 9217extern "C" 9218#endif 9219char ldapssl_init (); 9220int 9221main () 9222{ 9223return ldapssl_init (); 9224 ; 9225 return 0; 9226} 9227_ACEOF 9228if ac_fn_c_try_link "$LINENO"; then : 9229 eval "$as_ac_Lib=yes" 9230else 9231 eval "$as_ac_Lib=no" 9232fi 9233rm -f core conftest.err conftest.$ac_objext \ 9234 conftest$ac_exeext conftest.$ac_ext 9235LIBS=$ac_check_lib_save_LIBS 9236fi 9237eval ac_res=\$$as_ac_Lib 9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9239$as_echo "$ac_res" >&6; } 9240if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9241 apu_has_ldapssl_init="1" 9242fi 9243 9244 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 9245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 9246$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 9247if eval \${$as_ac_Lib+:} false; then : 9248 $as_echo_n "(cached) " >&6 9249else 9250 ac_check_lib_save_LIBS=$LIBS 9251LIBS="-l${ldaplib} ${extralib} $LIBS" 9252cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9253/* end confdefs.h. */ 9254 9255/* Override any GCC internal prototype to avoid an error. 9256 Use char because int might match the return type of a GCC 9257 builtin and then its argument prototype would still apply. */ 9258#ifdef __cplusplus 9259extern "C" 9260#endif 9261char ldapssl_install_routines (); 9262int 9263main () 9264{ 9265return ldapssl_install_routines (); 9266 ; 9267 return 0; 9268} 9269_ACEOF 9270if ac_fn_c_try_link "$LINENO"; then : 9271 eval "$as_ac_Lib=yes" 9272else 9273 eval "$as_ac_Lib=no" 9274fi 9275rm -f core conftest.err conftest.$ac_objext \ 9276 conftest$ac_exeext conftest.$ac_ext 9277LIBS=$ac_check_lib_save_LIBS 9278fi 9279eval ac_res=\$$as_ac_Lib 9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9281$as_echo "$ac_res" >&6; } 9282if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9283 apu_has_ldapssl_install_routines="1" 9284fi 9285 9286 apu_has_ldap="1"; 9287 9288fi 9289 9290 fi 9291 9292 9293 if test ${apu_has_ldap} != "1"; then 9294 ldaplib="ldap" 9295 extralib="-llber -lresolv -lsocket -lnsl" 9296 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 9297 9298 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 9299 9300 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 9301 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 9302 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 9303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 9304$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 9305if eval \${$as_ac_Lib+:} false; then : 9306 $as_echo_n "(cached) " >&6 9307else 9308 ac_check_lib_save_LIBS=$LIBS 9309LIBS="-l${ldaplib} ${extralib} $LIBS" 9310cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9311/* end confdefs.h. */ 9312 9313/* Override any GCC internal prototype to avoid an error. 9314 Use char because int might match the return type of a GCC 9315 builtin and then its argument prototype would still apply. */ 9316#ifdef __cplusplus 9317extern "C" 9318#endif 9319char ldap_init (); 9320int 9321main () 9322{ 9323return ldap_init (); 9324 ; 9325 return 0; 9326} 9327_ACEOF 9328if ac_fn_c_try_link "$LINENO"; then : 9329 eval "$as_ac_Lib=yes" 9330else 9331 eval "$as_ac_Lib=no" 9332fi 9333rm -f core conftest.err conftest.$ac_objext \ 9334 conftest$ac_exeext conftest.$ac_ext 9335LIBS=$ac_check_lib_save_LIBS 9336fi 9337eval ac_res=\$$as_ac_Lib 9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9339$as_echo "$ac_res" >&6; } 9340if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9341 9342 LDADD_ldap_found="-l${ldaplib} ${extralib}" 9343 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 9344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 9345$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 9346if eval \${$as_ac_Lib+:} false; then : 9347 $as_echo_n "(cached) " >&6 9348else 9349 ac_check_lib_save_LIBS=$LIBS 9350LIBS="-l${ldaplib} ${extralib} $LIBS" 9351cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9352/* end confdefs.h. */ 9353 9354/* Override any GCC internal prototype to avoid an error. 9355 Use char because int might match the return type of a GCC 9356 builtin and then its argument prototype would still apply. */ 9357#ifdef __cplusplus 9358extern "C" 9359#endif 9360char ldapssl_client_init (); 9361int 9362main () 9363{ 9364return ldapssl_client_init (); 9365 ; 9366 return 0; 9367} 9368_ACEOF 9369if ac_fn_c_try_link "$LINENO"; then : 9370 eval "$as_ac_Lib=yes" 9371else 9372 eval "$as_ac_Lib=no" 9373fi 9374rm -f core conftest.err conftest.$ac_objext \ 9375 conftest$ac_exeext conftest.$ac_ext 9376LIBS=$ac_check_lib_save_LIBS 9377fi 9378eval ac_res=\$$as_ac_Lib 9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9380$as_echo "$ac_res" >&6; } 9381if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9382 apu_has_ldapssl_client_init="1" 9383fi 9384 9385 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 9386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 9387$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 9388if eval \${$as_ac_Lib+:} false; then : 9389 $as_echo_n "(cached) " >&6 9390else 9391 ac_check_lib_save_LIBS=$LIBS 9392LIBS="-l${ldaplib} ${extralib} $LIBS" 9393cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9394/* end confdefs.h. */ 9395 9396/* Override any GCC internal prototype to avoid an error. 9397 Use char because int might match the return type of a GCC 9398 builtin and then its argument prototype would still apply. */ 9399#ifdef __cplusplus 9400extern "C" 9401#endif 9402char ldapssl_client_deinit (); 9403int 9404main () 9405{ 9406return ldapssl_client_deinit (); 9407 ; 9408 return 0; 9409} 9410_ACEOF 9411if ac_fn_c_try_link "$LINENO"; then : 9412 eval "$as_ac_Lib=yes" 9413else 9414 eval "$as_ac_Lib=no" 9415fi 9416rm -f core conftest.err conftest.$ac_objext \ 9417 conftest$ac_exeext conftest.$ac_ext 9418LIBS=$ac_check_lib_save_LIBS 9419fi 9420eval ac_res=\$$as_ac_Lib 9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9422$as_echo "$ac_res" >&6; } 9423if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9424 apu_has_ldapssl_client_deinit="1" 9425fi 9426 9427 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 9428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 9429$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 9430if eval \${$as_ac_Lib+:} false; then : 9431 $as_echo_n "(cached) " >&6 9432else 9433 ac_check_lib_save_LIBS=$LIBS 9434LIBS="-l${ldaplib} ${extralib} $LIBS" 9435cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9436/* end confdefs.h. */ 9437 9438/* Override any GCC internal prototype to avoid an error. 9439 Use char because int might match the return type of a GCC 9440 builtin and then its argument prototype would still apply. */ 9441#ifdef __cplusplus 9442extern "C" 9443#endif 9444char ldapssl_add_trusted_cert (); 9445int 9446main () 9447{ 9448return ldapssl_add_trusted_cert (); 9449 ; 9450 return 0; 9451} 9452_ACEOF 9453if ac_fn_c_try_link "$LINENO"; then : 9454 eval "$as_ac_Lib=yes" 9455else 9456 eval "$as_ac_Lib=no" 9457fi 9458rm -f core conftest.err conftest.$ac_objext \ 9459 conftest$ac_exeext conftest.$ac_ext 9460LIBS=$ac_check_lib_save_LIBS 9461fi 9462eval ac_res=\$$as_ac_Lib 9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9464$as_echo "$ac_res" >&6; } 9465if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9466 apu_has_ldapssl_add_trusted_cert="1" 9467fi 9468 9469 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 9470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 9471$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 9472if eval \${$as_ac_Lib+:} false; then : 9473 $as_echo_n "(cached) " >&6 9474else 9475 ac_check_lib_save_LIBS=$LIBS 9476LIBS="-l${ldaplib} ${extralib} $LIBS" 9477cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9478/* end confdefs.h. */ 9479 9480/* Override any GCC internal prototype to avoid an error. 9481 Use char because int might match the return type of a GCC 9482 builtin and then its argument prototype would still apply. */ 9483#ifdef __cplusplus 9484extern "C" 9485#endif 9486char ldap_start_tls_s (); 9487int 9488main () 9489{ 9490return ldap_start_tls_s (); 9491 ; 9492 return 0; 9493} 9494_ACEOF 9495if ac_fn_c_try_link "$LINENO"; then : 9496 eval "$as_ac_Lib=yes" 9497else 9498 eval "$as_ac_Lib=no" 9499fi 9500rm -f core conftest.err conftest.$ac_objext \ 9501 conftest$ac_exeext conftest.$ac_ext 9502LIBS=$ac_check_lib_save_LIBS 9503fi 9504eval ac_res=\$$as_ac_Lib 9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9506$as_echo "$ac_res" >&6; } 9507if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9508 apu_has_ldap_start_tls_s="1" 9509fi 9510 9511 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 9512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 9513$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 9514if eval \${$as_ac_Lib+:} false; then : 9515 $as_echo_n "(cached) " >&6 9516else 9517 ac_check_lib_save_LIBS=$LIBS 9518LIBS="-l${ldaplib} ${extralib} $LIBS" 9519cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9520/* end confdefs.h. */ 9521 9522/* Override any GCC internal prototype to avoid an error. 9523 Use char because int might match the return type of a GCC 9524 builtin and then its argument prototype would still apply. */ 9525#ifdef __cplusplus 9526extern "C" 9527#endif 9528char ldap_sslinit (); 9529int 9530main () 9531{ 9532return ldap_sslinit (); 9533 ; 9534 return 0; 9535} 9536_ACEOF 9537if ac_fn_c_try_link "$LINENO"; then : 9538 eval "$as_ac_Lib=yes" 9539else 9540 eval "$as_ac_Lib=no" 9541fi 9542rm -f core conftest.err conftest.$ac_objext \ 9543 conftest$ac_exeext conftest.$ac_ext 9544LIBS=$ac_check_lib_save_LIBS 9545fi 9546eval ac_res=\$$as_ac_Lib 9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9548$as_echo "$ac_res" >&6; } 9549if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9550 apu_has_ldap_sslinit="1" 9551fi 9552 9553 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 9554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 9555$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 9556if eval \${$as_ac_Lib+:} false; then : 9557 $as_echo_n "(cached) " >&6 9558else 9559 ac_check_lib_save_LIBS=$LIBS 9560LIBS="-l${ldaplib} ${extralib} $LIBS" 9561cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9562/* end confdefs.h. */ 9563 9564/* Override any GCC internal prototype to avoid an error. 9565 Use char because int might match the return type of a GCC 9566 builtin and then its argument prototype would still apply. */ 9567#ifdef __cplusplus 9568extern "C" 9569#endif 9570char ldapssl_init (); 9571int 9572main () 9573{ 9574return ldapssl_init (); 9575 ; 9576 return 0; 9577} 9578_ACEOF 9579if ac_fn_c_try_link "$LINENO"; then : 9580 eval "$as_ac_Lib=yes" 9581else 9582 eval "$as_ac_Lib=no" 9583fi 9584rm -f core conftest.err conftest.$ac_objext \ 9585 conftest$ac_exeext conftest.$ac_ext 9586LIBS=$ac_check_lib_save_LIBS 9587fi 9588eval ac_res=\$$as_ac_Lib 9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9590$as_echo "$ac_res" >&6; } 9591if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9592 apu_has_ldapssl_init="1" 9593fi 9594 9595 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 9596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 9597$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 9598if eval \${$as_ac_Lib+:} false; then : 9599 $as_echo_n "(cached) " >&6 9600else 9601 ac_check_lib_save_LIBS=$LIBS 9602LIBS="-l${ldaplib} ${extralib} $LIBS" 9603cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9604/* end confdefs.h. */ 9605 9606/* Override any GCC internal prototype to avoid an error. 9607 Use char because int might match the return type of a GCC 9608 builtin and then its argument prototype would still apply. */ 9609#ifdef __cplusplus 9610extern "C" 9611#endif 9612char ldapssl_install_routines (); 9613int 9614main () 9615{ 9616return ldapssl_install_routines (); 9617 ; 9618 return 0; 9619} 9620_ACEOF 9621if ac_fn_c_try_link "$LINENO"; then : 9622 eval "$as_ac_Lib=yes" 9623else 9624 eval "$as_ac_Lib=no" 9625fi 9626rm -f core conftest.err conftest.$ac_objext \ 9627 conftest$ac_exeext conftest.$ac_ext 9628LIBS=$ac_check_lib_save_LIBS 9629fi 9630eval ac_res=\$$as_ac_Lib 9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9632$as_echo "$ac_res" >&6; } 9633if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9634 apu_has_ldapssl_install_routines="1" 9635fi 9636 9637 apu_has_ldap="1"; 9638 9639fi 9640 9641 fi 9642 9643 9644 if test ${apu_has_ldap} != "1"; then 9645 ldaplib="ldap" 9646 extralib="-ldl -lpthread" 9647 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 9648 9649 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 9650 9651 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 9652 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 9653 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 9654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 9655$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 9656if eval \${$as_ac_Lib+:} false; then : 9657 $as_echo_n "(cached) " >&6 9658else 9659 ac_check_lib_save_LIBS=$LIBS 9660LIBS="-l${ldaplib} ${extralib} $LIBS" 9661cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9662/* end confdefs.h. */ 9663 9664/* Override any GCC internal prototype to avoid an error. 9665 Use char because int might match the return type of a GCC 9666 builtin and then its argument prototype would still apply. */ 9667#ifdef __cplusplus 9668extern "C" 9669#endif 9670char ldap_init (); 9671int 9672main () 9673{ 9674return ldap_init (); 9675 ; 9676 return 0; 9677} 9678_ACEOF 9679if ac_fn_c_try_link "$LINENO"; then : 9680 eval "$as_ac_Lib=yes" 9681else 9682 eval "$as_ac_Lib=no" 9683fi 9684rm -f core conftest.err conftest.$ac_objext \ 9685 conftest$ac_exeext conftest.$ac_ext 9686LIBS=$ac_check_lib_save_LIBS 9687fi 9688eval ac_res=\$$as_ac_Lib 9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9690$as_echo "$ac_res" >&6; } 9691if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9692 9693 LDADD_ldap_found="-l${ldaplib} ${extralib}" 9694 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 9695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 9696$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 9697if eval \${$as_ac_Lib+:} false; then : 9698 $as_echo_n "(cached) " >&6 9699else 9700 ac_check_lib_save_LIBS=$LIBS 9701LIBS="-l${ldaplib} ${extralib} $LIBS" 9702cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9703/* end confdefs.h. */ 9704 9705/* Override any GCC internal prototype to avoid an error. 9706 Use char because int might match the return type of a GCC 9707 builtin and then its argument prototype would still apply. */ 9708#ifdef __cplusplus 9709extern "C" 9710#endif 9711char ldapssl_client_init (); 9712int 9713main () 9714{ 9715return ldapssl_client_init (); 9716 ; 9717 return 0; 9718} 9719_ACEOF 9720if ac_fn_c_try_link "$LINENO"; then : 9721 eval "$as_ac_Lib=yes" 9722else 9723 eval "$as_ac_Lib=no" 9724fi 9725rm -f core conftest.err conftest.$ac_objext \ 9726 conftest$ac_exeext conftest.$ac_ext 9727LIBS=$ac_check_lib_save_LIBS 9728fi 9729eval ac_res=\$$as_ac_Lib 9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9731$as_echo "$ac_res" >&6; } 9732if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9733 apu_has_ldapssl_client_init="1" 9734fi 9735 9736 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 9737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 9738$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 9739if eval \${$as_ac_Lib+:} false; then : 9740 $as_echo_n "(cached) " >&6 9741else 9742 ac_check_lib_save_LIBS=$LIBS 9743LIBS="-l${ldaplib} ${extralib} $LIBS" 9744cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9745/* end confdefs.h. */ 9746 9747/* Override any GCC internal prototype to avoid an error. 9748 Use char because int might match the return type of a GCC 9749 builtin and then its argument prototype would still apply. */ 9750#ifdef __cplusplus 9751extern "C" 9752#endif 9753char ldapssl_client_deinit (); 9754int 9755main () 9756{ 9757return ldapssl_client_deinit (); 9758 ; 9759 return 0; 9760} 9761_ACEOF 9762if ac_fn_c_try_link "$LINENO"; then : 9763 eval "$as_ac_Lib=yes" 9764else 9765 eval "$as_ac_Lib=no" 9766fi 9767rm -f core conftest.err conftest.$ac_objext \ 9768 conftest$ac_exeext conftest.$ac_ext 9769LIBS=$ac_check_lib_save_LIBS 9770fi 9771eval ac_res=\$$as_ac_Lib 9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9773$as_echo "$ac_res" >&6; } 9774if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9775 apu_has_ldapssl_client_deinit="1" 9776fi 9777 9778 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 9779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 9780$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 9781if eval \${$as_ac_Lib+:} false; then : 9782 $as_echo_n "(cached) " >&6 9783else 9784 ac_check_lib_save_LIBS=$LIBS 9785LIBS="-l${ldaplib} ${extralib} $LIBS" 9786cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9787/* end confdefs.h. */ 9788 9789/* Override any GCC internal prototype to avoid an error. 9790 Use char because int might match the return type of a GCC 9791 builtin and then its argument prototype would still apply. */ 9792#ifdef __cplusplus 9793extern "C" 9794#endif 9795char ldapssl_add_trusted_cert (); 9796int 9797main () 9798{ 9799return ldapssl_add_trusted_cert (); 9800 ; 9801 return 0; 9802} 9803_ACEOF 9804if ac_fn_c_try_link "$LINENO"; then : 9805 eval "$as_ac_Lib=yes" 9806else 9807 eval "$as_ac_Lib=no" 9808fi 9809rm -f core conftest.err conftest.$ac_objext \ 9810 conftest$ac_exeext conftest.$ac_ext 9811LIBS=$ac_check_lib_save_LIBS 9812fi 9813eval ac_res=\$$as_ac_Lib 9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9815$as_echo "$ac_res" >&6; } 9816if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9817 apu_has_ldapssl_add_trusted_cert="1" 9818fi 9819 9820 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 9821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 9822$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 9823if eval \${$as_ac_Lib+:} false; then : 9824 $as_echo_n "(cached) " >&6 9825else 9826 ac_check_lib_save_LIBS=$LIBS 9827LIBS="-l${ldaplib} ${extralib} $LIBS" 9828cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9829/* end confdefs.h. */ 9830 9831/* Override any GCC internal prototype to avoid an error. 9832 Use char because int might match the return type of a GCC 9833 builtin and then its argument prototype would still apply. */ 9834#ifdef __cplusplus 9835extern "C" 9836#endif 9837char ldap_start_tls_s (); 9838int 9839main () 9840{ 9841return ldap_start_tls_s (); 9842 ; 9843 return 0; 9844} 9845_ACEOF 9846if ac_fn_c_try_link "$LINENO"; then : 9847 eval "$as_ac_Lib=yes" 9848else 9849 eval "$as_ac_Lib=no" 9850fi 9851rm -f core conftest.err conftest.$ac_objext \ 9852 conftest$ac_exeext conftest.$ac_ext 9853LIBS=$ac_check_lib_save_LIBS 9854fi 9855eval ac_res=\$$as_ac_Lib 9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9857$as_echo "$ac_res" >&6; } 9858if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9859 apu_has_ldap_start_tls_s="1" 9860fi 9861 9862 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 9863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 9864$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 9865if eval \${$as_ac_Lib+:} false; then : 9866 $as_echo_n "(cached) " >&6 9867else 9868 ac_check_lib_save_LIBS=$LIBS 9869LIBS="-l${ldaplib} ${extralib} $LIBS" 9870cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9871/* end confdefs.h. */ 9872 9873/* Override any GCC internal prototype to avoid an error. 9874 Use char because int might match the return type of a GCC 9875 builtin and then its argument prototype would still apply. */ 9876#ifdef __cplusplus 9877extern "C" 9878#endif 9879char ldap_sslinit (); 9880int 9881main () 9882{ 9883return ldap_sslinit (); 9884 ; 9885 return 0; 9886} 9887_ACEOF 9888if ac_fn_c_try_link "$LINENO"; then : 9889 eval "$as_ac_Lib=yes" 9890else 9891 eval "$as_ac_Lib=no" 9892fi 9893rm -f core conftest.err conftest.$ac_objext \ 9894 conftest$ac_exeext conftest.$ac_ext 9895LIBS=$ac_check_lib_save_LIBS 9896fi 9897eval ac_res=\$$as_ac_Lib 9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9899$as_echo "$ac_res" >&6; } 9900if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9901 apu_has_ldap_sslinit="1" 9902fi 9903 9904 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 9905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 9906$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 9907if eval \${$as_ac_Lib+:} false; then : 9908 $as_echo_n "(cached) " >&6 9909else 9910 ac_check_lib_save_LIBS=$LIBS 9911LIBS="-l${ldaplib} ${extralib} $LIBS" 9912cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9913/* end confdefs.h. */ 9914 9915/* Override any GCC internal prototype to avoid an error. 9916 Use char because int might match the return type of a GCC 9917 builtin and then its argument prototype would still apply. */ 9918#ifdef __cplusplus 9919extern "C" 9920#endif 9921char ldapssl_init (); 9922int 9923main () 9924{ 9925return ldapssl_init (); 9926 ; 9927 return 0; 9928} 9929_ACEOF 9930if ac_fn_c_try_link "$LINENO"; then : 9931 eval "$as_ac_Lib=yes" 9932else 9933 eval "$as_ac_Lib=no" 9934fi 9935rm -f core conftest.err conftest.$ac_objext \ 9936 conftest$ac_exeext conftest.$ac_ext 9937LIBS=$ac_check_lib_save_LIBS 9938fi 9939eval ac_res=\$$as_ac_Lib 9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9941$as_echo "$ac_res" >&6; } 9942if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9943 apu_has_ldapssl_init="1" 9944fi 9945 9946 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 9947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 9948$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 9949if eval \${$as_ac_Lib+:} false; then : 9950 $as_echo_n "(cached) " >&6 9951else 9952 ac_check_lib_save_LIBS=$LIBS 9953LIBS="-l${ldaplib} ${extralib} $LIBS" 9954cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9955/* end confdefs.h. */ 9956 9957/* Override any GCC internal prototype to avoid an error. 9958 Use char because int might match the return type of a GCC 9959 builtin and then its argument prototype would still apply. */ 9960#ifdef __cplusplus 9961extern "C" 9962#endif 9963char ldapssl_install_routines (); 9964int 9965main () 9966{ 9967return ldapssl_install_routines (); 9968 ; 9969 return 0; 9970} 9971_ACEOF 9972if ac_fn_c_try_link "$LINENO"; then : 9973 eval "$as_ac_Lib=yes" 9974else 9975 eval "$as_ac_Lib=no" 9976fi 9977rm -f core conftest.err conftest.$ac_objext \ 9978 conftest$ac_exeext conftest.$ac_ext 9979LIBS=$ac_check_lib_save_LIBS 9980fi 9981eval ac_res=\$$as_ac_Lib 9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9983$as_echo "$ac_res" >&6; } 9984if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9985 apu_has_ldapssl_install_routines="1" 9986fi 9987 9988 apu_has_ldap="1"; 9989 9990fi 9991 9992 fi 9993 9994 else 9995 9996 if test ${apu_has_ldap} != "1"; then 9997 ldaplib=$LIBLDAP 9998 extralib= 9999 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 10000 10001 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 10002 10003 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 10004 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 10005 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 10006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 10007$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 10008if eval \${$as_ac_Lib+:} false; then : 10009 $as_echo_n "(cached) " >&6 10010else 10011 ac_check_lib_save_LIBS=$LIBS 10012LIBS="-l${ldaplib} ${extralib} $LIBS" 10013cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10014/* end confdefs.h. */ 10015 10016/* Override any GCC internal prototype to avoid an error. 10017 Use char because int might match the return type of a GCC 10018 builtin and then its argument prototype would still apply. */ 10019#ifdef __cplusplus 10020extern "C" 10021#endif 10022char ldap_init (); 10023int 10024main () 10025{ 10026return ldap_init (); 10027 ; 10028 return 0; 10029} 10030_ACEOF 10031if ac_fn_c_try_link "$LINENO"; then : 10032 eval "$as_ac_Lib=yes" 10033else 10034 eval "$as_ac_Lib=no" 10035fi 10036rm -f core conftest.err conftest.$ac_objext \ 10037 conftest$ac_exeext conftest.$ac_ext 10038LIBS=$ac_check_lib_save_LIBS 10039fi 10040eval ac_res=\$$as_ac_Lib 10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10042$as_echo "$ac_res" >&6; } 10043if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10044 10045 LDADD_ldap_found="-l${ldaplib} ${extralib}" 10046 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 10047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 10048$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 10049if eval \${$as_ac_Lib+:} false; then : 10050 $as_echo_n "(cached) " >&6 10051else 10052 ac_check_lib_save_LIBS=$LIBS 10053LIBS="-l${ldaplib} ${extralib} $LIBS" 10054cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10055/* end confdefs.h. */ 10056 10057/* Override any GCC internal prototype to avoid an error. 10058 Use char because int might match the return type of a GCC 10059 builtin and then its argument prototype would still apply. */ 10060#ifdef __cplusplus 10061extern "C" 10062#endif 10063char ldapssl_client_init (); 10064int 10065main () 10066{ 10067return ldapssl_client_init (); 10068 ; 10069 return 0; 10070} 10071_ACEOF 10072if ac_fn_c_try_link "$LINENO"; then : 10073 eval "$as_ac_Lib=yes" 10074else 10075 eval "$as_ac_Lib=no" 10076fi 10077rm -f core conftest.err conftest.$ac_objext \ 10078 conftest$ac_exeext conftest.$ac_ext 10079LIBS=$ac_check_lib_save_LIBS 10080fi 10081eval ac_res=\$$as_ac_Lib 10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10083$as_echo "$ac_res" >&6; } 10084if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10085 apu_has_ldapssl_client_init="1" 10086fi 10087 10088 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 10089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 10090$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 10091if eval \${$as_ac_Lib+:} false; then : 10092 $as_echo_n "(cached) " >&6 10093else 10094 ac_check_lib_save_LIBS=$LIBS 10095LIBS="-l${ldaplib} ${extralib} $LIBS" 10096cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10097/* end confdefs.h. */ 10098 10099/* Override any GCC internal prototype to avoid an error. 10100 Use char because int might match the return type of a GCC 10101 builtin and then its argument prototype would still apply. */ 10102#ifdef __cplusplus 10103extern "C" 10104#endif 10105char ldapssl_client_deinit (); 10106int 10107main () 10108{ 10109return ldapssl_client_deinit (); 10110 ; 10111 return 0; 10112} 10113_ACEOF 10114if ac_fn_c_try_link "$LINENO"; then : 10115 eval "$as_ac_Lib=yes" 10116else 10117 eval "$as_ac_Lib=no" 10118fi 10119rm -f core conftest.err conftest.$ac_objext \ 10120 conftest$ac_exeext conftest.$ac_ext 10121LIBS=$ac_check_lib_save_LIBS 10122fi 10123eval ac_res=\$$as_ac_Lib 10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10125$as_echo "$ac_res" >&6; } 10126if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10127 apu_has_ldapssl_client_deinit="1" 10128fi 10129 10130 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 10131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 10132$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 10133if eval \${$as_ac_Lib+:} false; then : 10134 $as_echo_n "(cached) " >&6 10135else 10136 ac_check_lib_save_LIBS=$LIBS 10137LIBS="-l${ldaplib} ${extralib} $LIBS" 10138cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10139/* end confdefs.h. */ 10140 10141/* Override any GCC internal prototype to avoid an error. 10142 Use char because int might match the return type of a GCC 10143 builtin and then its argument prototype would still apply. */ 10144#ifdef __cplusplus 10145extern "C" 10146#endif 10147char ldapssl_add_trusted_cert (); 10148int 10149main () 10150{ 10151return ldapssl_add_trusted_cert (); 10152 ; 10153 return 0; 10154} 10155_ACEOF 10156if ac_fn_c_try_link "$LINENO"; then : 10157 eval "$as_ac_Lib=yes" 10158else 10159 eval "$as_ac_Lib=no" 10160fi 10161rm -f core conftest.err conftest.$ac_objext \ 10162 conftest$ac_exeext conftest.$ac_ext 10163LIBS=$ac_check_lib_save_LIBS 10164fi 10165eval ac_res=\$$as_ac_Lib 10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10167$as_echo "$ac_res" >&6; } 10168if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10169 apu_has_ldapssl_add_trusted_cert="1" 10170fi 10171 10172 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 10173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 10174$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 10175if eval \${$as_ac_Lib+:} false; then : 10176 $as_echo_n "(cached) " >&6 10177else 10178 ac_check_lib_save_LIBS=$LIBS 10179LIBS="-l${ldaplib} ${extralib} $LIBS" 10180cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10181/* end confdefs.h. */ 10182 10183/* Override any GCC internal prototype to avoid an error. 10184 Use char because int might match the return type of a GCC 10185 builtin and then its argument prototype would still apply. */ 10186#ifdef __cplusplus 10187extern "C" 10188#endif 10189char ldap_start_tls_s (); 10190int 10191main () 10192{ 10193return ldap_start_tls_s (); 10194 ; 10195 return 0; 10196} 10197_ACEOF 10198if ac_fn_c_try_link "$LINENO"; then : 10199 eval "$as_ac_Lib=yes" 10200else 10201 eval "$as_ac_Lib=no" 10202fi 10203rm -f core conftest.err conftest.$ac_objext \ 10204 conftest$ac_exeext conftest.$ac_ext 10205LIBS=$ac_check_lib_save_LIBS 10206fi 10207eval ac_res=\$$as_ac_Lib 10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10209$as_echo "$ac_res" >&6; } 10210if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10211 apu_has_ldap_start_tls_s="1" 10212fi 10213 10214 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 10215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 10216$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 10217if eval \${$as_ac_Lib+:} false; then : 10218 $as_echo_n "(cached) " >&6 10219else 10220 ac_check_lib_save_LIBS=$LIBS 10221LIBS="-l${ldaplib} ${extralib} $LIBS" 10222cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10223/* end confdefs.h. */ 10224 10225/* Override any GCC internal prototype to avoid an error. 10226 Use char because int might match the return type of a GCC 10227 builtin and then its argument prototype would still apply. */ 10228#ifdef __cplusplus 10229extern "C" 10230#endif 10231char ldap_sslinit (); 10232int 10233main () 10234{ 10235return ldap_sslinit (); 10236 ; 10237 return 0; 10238} 10239_ACEOF 10240if ac_fn_c_try_link "$LINENO"; then : 10241 eval "$as_ac_Lib=yes" 10242else 10243 eval "$as_ac_Lib=no" 10244fi 10245rm -f core conftest.err conftest.$ac_objext \ 10246 conftest$ac_exeext conftest.$ac_ext 10247LIBS=$ac_check_lib_save_LIBS 10248fi 10249eval ac_res=\$$as_ac_Lib 10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10251$as_echo "$ac_res" >&6; } 10252if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10253 apu_has_ldap_sslinit="1" 10254fi 10255 10256 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 10257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 10258$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 10259if eval \${$as_ac_Lib+:} false; then : 10260 $as_echo_n "(cached) " >&6 10261else 10262 ac_check_lib_save_LIBS=$LIBS 10263LIBS="-l${ldaplib} ${extralib} $LIBS" 10264cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10265/* end confdefs.h. */ 10266 10267/* Override any GCC internal prototype to avoid an error. 10268 Use char because int might match the return type of a GCC 10269 builtin and then its argument prototype would still apply. */ 10270#ifdef __cplusplus 10271extern "C" 10272#endif 10273char ldapssl_init (); 10274int 10275main () 10276{ 10277return ldapssl_init (); 10278 ; 10279 return 0; 10280} 10281_ACEOF 10282if ac_fn_c_try_link "$LINENO"; then : 10283 eval "$as_ac_Lib=yes" 10284else 10285 eval "$as_ac_Lib=no" 10286fi 10287rm -f core conftest.err conftest.$ac_objext \ 10288 conftest$ac_exeext conftest.$ac_ext 10289LIBS=$ac_check_lib_save_LIBS 10290fi 10291eval ac_res=\$$as_ac_Lib 10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10293$as_echo "$ac_res" >&6; } 10294if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10295 apu_has_ldapssl_init="1" 10296fi 10297 10298 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 10299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 10300$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 10301if eval \${$as_ac_Lib+:} false; then : 10302 $as_echo_n "(cached) " >&6 10303else 10304 ac_check_lib_save_LIBS=$LIBS 10305LIBS="-l${ldaplib} ${extralib} $LIBS" 10306cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10307/* end confdefs.h. */ 10308 10309/* Override any GCC internal prototype to avoid an error. 10310 Use char because int might match the return type of a GCC 10311 builtin and then its argument prototype would still apply. */ 10312#ifdef __cplusplus 10313extern "C" 10314#endif 10315char ldapssl_install_routines (); 10316int 10317main () 10318{ 10319return ldapssl_install_routines (); 10320 ; 10321 return 0; 10322} 10323_ACEOF 10324if ac_fn_c_try_link "$LINENO"; then : 10325 eval "$as_ac_Lib=yes" 10326else 10327 eval "$as_ac_Lib=no" 10328fi 10329rm -f core conftest.err conftest.$ac_objext \ 10330 conftest$ac_exeext conftest.$ac_ext 10331LIBS=$ac_check_lib_save_LIBS 10332fi 10333eval ac_res=\$$as_ac_Lib 10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10335$as_echo "$ac_res" >&6; } 10336if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10337 apu_has_ldapssl_install_routines="1" 10338fi 10339 10340 apu_has_ldap="1"; 10341 10342fi 10343 10344 fi 10345 10346 10347 if test ${apu_has_ldap} != "1"; then 10348 ldaplib=$LIBLDAP 10349 extralib="-lresolv" 10350 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 10351 10352 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 10353 10354 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 10355 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 10356 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 10357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 10358$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 10359if eval \${$as_ac_Lib+:} false; then : 10360 $as_echo_n "(cached) " >&6 10361else 10362 ac_check_lib_save_LIBS=$LIBS 10363LIBS="-l${ldaplib} ${extralib} $LIBS" 10364cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10365/* end confdefs.h. */ 10366 10367/* Override any GCC internal prototype to avoid an error. 10368 Use char because int might match the return type of a GCC 10369 builtin and then its argument prototype would still apply. */ 10370#ifdef __cplusplus 10371extern "C" 10372#endif 10373char ldap_init (); 10374int 10375main () 10376{ 10377return ldap_init (); 10378 ; 10379 return 0; 10380} 10381_ACEOF 10382if ac_fn_c_try_link "$LINENO"; then : 10383 eval "$as_ac_Lib=yes" 10384else 10385 eval "$as_ac_Lib=no" 10386fi 10387rm -f core conftest.err conftest.$ac_objext \ 10388 conftest$ac_exeext conftest.$ac_ext 10389LIBS=$ac_check_lib_save_LIBS 10390fi 10391eval ac_res=\$$as_ac_Lib 10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10393$as_echo "$ac_res" >&6; } 10394if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10395 10396 LDADD_ldap_found="-l${ldaplib} ${extralib}" 10397 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 10398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 10399$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 10400if eval \${$as_ac_Lib+:} false; then : 10401 $as_echo_n "(cached) " >&6 10402else 10403 ac_check_lib_save_LIBS=$LIBS 10404LIBS="-l${ldaplib} ${extralib} $LIBS" 10405cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10406/* end confdefs.h. */ 10407 10408/* Override any GCC internal prototype to avoid an error. 10409 Use char because int might match the return type of a GCC 10410 builtin and then its argument prototype would still apply. */ 10411#ifdef __cplusplus 10412extern "C" 10413#endif 10414char ldapssl_client_init (); 10415int 10416main () 10417{ 10418return ldapssl_client_init (); 10419 ; 10420 return 0; 10421} 10422_ACEOF 10423if ac_fn_c_try_link "$LINENO"; then : 10424 eval "$as_ac_Lib=yes" 10425else 10426 eval "$as_ac_Lib=no" 10427fi 10428rm -f core conftest.err conftest.$ac_objext \ 10429 conftest$ac_exeext conftest.$ac_ext 10430LIBS=$ac_check_lib_save_LIBS 10431fi 10432eval ac_res=\$$as_ac_Lib 10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10434$as_echo "$ac_res" >&6; } 10435if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10436 apu_has_ldapssl_client_init="1" 10437fi 10438 10439 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 10440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 10441$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 10442if eval \${$as_ac_Lib+:} false; then : 10443 $as_echo_n "(cached) " >&6 10444else 10445 ac_check_lib_save_LIBS=$LIBS 10446LIBS="-l${ldaplib} ${extralib} $LIBS" 10447cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10448/* end confdefs.h. */ 10449 10450/* Override any GCC internal prototype to avoid an error. 10451 Use char because int might match the return type of a GCC 10452 builtin and then its argument prototype would still apply. */ 10453#ifdef __cplusplus 10454extern "C" 10455#endif 10456char ldapssl_client_deinit (); 10457int 10458main () 10459{ 10460return ldapssl_client_deinit (); 10461 ; 10462 return 0; 10463} 10464_ACEOF 10465if ac_fn_c_try_link "$LINENO"; then : 10466 eval "$as_ac_Lib=yes" 10467else 10468 eval "$as_ac_Lib=no" 10469fi 10470rm -f core conftest.err conftest.$ac_objext \ 10471 conftest$ac_exeext conftest.$ac_ext 10472LIBS=$ac_check_lib_save_LIBS 10473fi 10474eval ac_res=\$$as_ac_Lib 10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10476$as_echo "$ac_res" >&6; } 10477if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10478 apu_has_ldapssl_client_deinit="1" 10479fi 10480 10481 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 10482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 10483$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 10484if eval \${$as_ac_Lib+:} false; then : 10485 $as_echo_n "(cached) " >&6 10486else 10487 ac_check_lib_save_LIBS=$LIBS 10488LIBS="-l${ldaplib} ${extralib} $LIBS" 10489cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10490/* end confdefs.h. */ 10491 10492/* Override any GCC internal prototype to avoid an error. 10493 Use char because int might match the return type of a GCC 10494 builtin and then its argument prototype would still apply. */ 10495#ifdef __cplusplus 10496extern "C" 10497#endif 10498char ldapssl_add_trusted_cert (); 10499int 10500main () 10501{ 10502return ldapssl_add_trusted_cert (); 10503 ; 10504 return 0; 10505} 10506_ACEOF 10507if ac_fn_c_try_link "$LINENO"; then : 10508 eval "$as_ac_Lib=yes" 10509else 10510 eval "$as_ac_Lib=no" 10511fi 10512rm -f core conftest.err conftest.$ac_objext \ 10513 conftest$ac_exeext conftest.$ac_ext 10514LIBS=$ac_check_lib_save_LIBS 10515fi 10516eval ac_res=\$$as_ac_Lib 10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10518$as_echo "$ac_res" >&6; } 10519if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10520 apu_has_ldapssl_add_trusted_cert="1" 10521fi 10522 10523 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 10524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 10525$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 10526if eval \${$as_ac_Lib+:} false; then : 10527 $as_echo_n "(cached) " >&6 10528else 10529 ac_check_lib_save_LIBS=$LIBS 10530LIBS="-l${ldaplib} ${extralib} $LIBS" 10531cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10532/* end confdefs.h. */ 10533 10534/* Override any GCC internal prototype to avoid an error. 10535 Use char because int might match the return type of a GCC 10536 builtin and then its argument prototype would still apply. */ 10537#ifdef __cplusplus 10538extern "C" 10539#endif 10540char ldap_start_tls_s (); 10541int 10542main () 10543{ 10544return ldap_start_tls_s (); 10545 ; 10546 return 0; 10547} 10548_ACEOF 10549if ac_fn_c_try_link "$LINENO"; then : 10550 eval "$as_ac_Lib=yes" 10551else 10552 eval "$as_ac_Lib=no" 10553fi 10554rm -f core conftest.err conftest.$ac_objext \ 10555 conftest$ac_exeext conftest.$ac_ext 10556LIBS=$ac_check_lib_save_LIBS 10557fi 10558eval ac_res=\$$as_ac_Lib 10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10560$as_echo "$ac_res" >&6; } 10561if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10562 apu_has_ldap_start_tls_s="1" 10563fi 10564 10565 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 10566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 10567$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 10568if eval \${$as_ac_Lib+:} false; then : 10569 $as_echo_n "(cached) " >&6 10570else 10571 ac_check_lib_save_LIBS=$LIBS 10572LIBS="-l${ldaplib} ${extralib} $LIBS" 10573cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10574/* end confdefs.h. */ 10575 10576/* Override any GCC internal prototype to avoid an error. 10577 Use char because int might match the return type of a GCC 10578 builtin and then its argument prototype would still apply. */ 10579#ifdef __cplusplus 10580extern "C" 10581#endif 10582char ldap_sslinit (); 10583int 10584main () 10585{ 10586return ldap_sslinit (); 10587 ; 10588 return 0; 10589} 10590_ACEOF 10591if ac_fn_c_try_link "$LINENO"; then : 10592 eval "$as_ac_Lib=yes" 10593else 10594 eval "$as_ac_Lib=no" 10595fi 10596rm -f core conftest.err conftest.$ac_objext \ 10597 conftest$ac_exeext conftest.$ac_ext 10598LIBS=$ac_check_lib_save_LIBS 10599fi 10600eval ac_res=\$$as_ac_Lib 10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10602$as_echo "$ac_res" >&6; } 10603if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10604 apu_has_ldap_sslinit="1" 10605fi 10606 10607 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 10608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 10609$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 10610if eval \${$as_ac_Lib+:} false; then : 10611 $as_echo_n "(cached) " >&6 10612else 10613 ac_check_lib_save_LIBS=$LIBS 10614LIBS="-l${ldaplib} ${extralib} $LIBS" 10615cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10616/* end confdefs.h. */ 10617 10618/* Override any GCC internal prototype to avoid an error. 10619 Use char because int might match the return type of a GCC 10620 builtin and then its argument prototype would still apply. */ 10621#ifdef __cplusplus 10622extern "C" 10623#endif 10624char ldapssl_init (); 10625int 10626main () 10627{ 10628return ldapssl_init (); 10629 ; 10630 return 0; 10631} 10632_ACEOF 10633if ac_fn_c_try_link "$LINENO"; then : 10634 eval "$as_ac_Lib=yes" 10635else 10636 eval "$as_ac_Lib=no" 10637fi 10638rm -f core conftest.err conftest.$ac_objext \ 10639 conftest$ac_exeext conftest.$ac_ext 10640LIBS=$ac_check_lib_save_LIBS 10641fi 10642eval ac_res=\$$as_ac_Lib 10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10644$as_echo "$ac_res" >&6; } 10645if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10646 apu_has_ldapssl_init="1" 10647fi 10648 10649 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 10650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 10651$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 10652if eval \${$as_ac_Lib+:} false; then : 10653 $as_echo_n "(cached) " >&6 10654else 10655 ac_check_lib_save_LIBS=$LIBS 10656LIBS="-l${ldaplib} ${extralib} $LIBS" 10657cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10658/* end confdefs.h. */ 10659 10660/* Override any GCC internal prototype to avoid an error. 10661 Use char because int might match the return type of a GCC 10662 builtin and then its argument prototype would still apply. */ 10663#ifdef __cplusplus 10664extern "C" 10665#endif 10666char ldapssl_install_routines (); 10667int 10668main () 10669{ 10670return ldapssl_install_routines (); 10671 ; 10672 return 0; 10673} 10674_ACEOF 10675if ac_fn_c_try_link "$LINENO"; then : 10676 eval "$as_ac_Lib=yes" 10677else 10678 eval "$as_ac_Lib=no" 10679fi 10680rm -f core conftest.err conftest.$ac_objext \ 10681 conftest$ac_exeext conftest.$ac_ext 10682LIBS=$ac_check_lib_save_LIBS 10683fi 10684eval ac_res=\$$as_ac_Lib 10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10686$as_echo "$ac_res" >&6; } 10687if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10688 apu_has_ldapssl_install_routines="1" 10689fi 10690 10691 apu_has_ldap="1"; 10692 10693fi 10694 10695 fi 10696 10697 10698 if test ${apu_has_ldap} != "1"; then 10699 ldaplib=$LIBLDAP 10700 extralib="-lresolv -lsocket -lnsl" 10701 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 10702 10703 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 10704 10705 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 10706 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 10707 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 10708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 10709$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 10710if eval \${$as_ac_Lib+:} false; then : 10711 $as_echo_n "(cached) " >&6 10712else 10713 ac_check_lib_save_LIBS=$LIBS 10714LIBS="-l${ldaplib} ${extralib} $LIBS" 10715cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10716/* end confdefs.h. */ 10717 10718/* Override any GCC internal prototype to avoid an error. 10719 Use char because int might match the return type of a GCC 10720 builtin and then its argument prototype would still apply. */ 10721#ifdef __cplusplus 10722extern "C" 10723#endif 10724char ldap_init (); 10725int 10726main () 10727{ 10728return ldap_init (); 10729 ; 10730 return 0; 10731} 10732_ACEOF 10733if ac_fn_c_try_link "$LINENO"; then : 10734 eval "$as_ac_Lib=yes" 10735else 10736 eval "$as_ac_Lib=no" 10737fi 10738rm -f core conftest.err conftest.$ac_objext \ 10739 conftest$ac_exeext conftest.$ac_ext 10740LIBS=$ac_check_lib_save_LIBS 10741fi 10742eval ac_res=\$$as_ac_Lib 10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10744$as_echo "$ac_res" >&6; } 10745if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10746 10747 LDADD_ldap_found="-l${ldaplib} ${extralib}" 10748 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 10749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 10750$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 10751if eval \${$as_ac_Lib+:} false; then : 10752 $as_echo_n "(cached) " >&6 10753else 10754 ac_check_lib_save_LIBS=$LIBS 10755LIBS="-l${ldaplib} ${extralib} $LIBS" 10756cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10757/* end confdefs.h. */ 10758 10759/* Override any GCC internal prototype to avoid an error. 10760 Use char because int might match the return type of a GCC 10761 builtin and then its argument prototype would still apply. */ 10762#ifdef __cplusplus 10763extern "C" 10764#endif 10765char ldapssl_client_init (); 10766int 10767main () 10768{ 10769return ldapssl_client_init (); 10770 ; 10771 return 0; 10772} 10773_ACEOF 10774if ac_fn_c_try_link "$LINENO"; then : 10775 eval "$as_ac_Lib=yes" 10776else 10777 eval "$as_ac_Lib=no" 10778fi 10779rm -f core conftest.err conftest.$ac_objext \ 10780 conftest$ac_exeext conftest.$ac_ext 10781LIBS=$ac_check_lib_save_LIBS 10782fi 10783eval ac_res=\$$as_ac_Lib 10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10785$as_echo "$ac_res" >&6; } 10786if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10787 apu_has_ldapssl_client_init="1" 10788fi 10789 10790 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 10791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 10792$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 10793if eval \${$as_ac_Lib+:} false; then : 10794 $as_echo_n "(cached) " >&6 10795else 10796 ac_check_lib_save_LIBS=$LIBS 10797LIBS="-l${ldaplib} ${extralib} $LIBS" 10798cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10799/* end confdefs.h. */ 10800 10801/* Override any GCC internal prototype to avoid an error. 10802 Use char because int might match the return type of a GCC 10803 builtin and then its argument prototype would still apply. */ 10804#ifdef __cplusplus 10805extern "C" 10806#endif 10807char ldapssl_client_deinit (); 10808int 10809main () 10810{ 10811return ldapssl_client_deinit (); 10812 ; 10813 return 0; 10814} 10815_ACEOF 10816if ac_fn_c_try_link "$LINENO"; then : 10817 eval "$as_ac_Lib=yes" 10818else 10819 eval "$as_ac_Lib=no" 10820fi 10821rm -f core conftest.err conftest.$ac_objext \ 10822 conftest$ac_exeext conftest.$ac_ext 10823LIBS=$ac_check_lib_save_LIBS 10824fi 10825eval ac_res=\$$as_ac_Lib 10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10827$as_echo "$ac_res" >&6; } 10828if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10829 apu_has_ldapssl_client_deinit="1" 10830fi 10831 10832 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 10833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 10834$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 10835if eval \${$as_ac_Lib+:} false; then : 10836 $as_echo_n "(cached) " >&6 10837else 10838 ac_check_lib_save_LIBS=$LIBS 10839LIBS="-l${ldaplib} ${extralib} $LIBS" 10840cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10841/* end confdefs.h. */ 10842 10843/* Override any GCC internal prototype to avoid an error. 10844 Use char because int might match the return type of a GCC 10845 builtin and then its argument prototype would still apply. */ 10846#ifdef __cplusplus 10847extern "C" 10848#endif 10849char ldapssl_add_trusted_cert (); 10850int 10851main () 10852{ 10853return ldapssl_add_trusted_cert (); 10854 ; 10855 return 0; 10856} 10857_ACEOF 10858if ac_fn_c_try_link "$LINENO"; then : 10859 eval "$as_ac_Lib=yes" 10860else 10861 eval "$as_ac_Lib=no" 10862fi 10863rm -f core conftest.err conftest.$ac_objext \ 10864 conftest$ac_exeext conftest.$ac_ext 10865LIBS=$ac_check_lib_save_LIBS 10866fi 10867eval ac_res=\$$as_ac_Lib 10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10869$as_echo "$ac_res" >&6; } 10870if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10871 apu_has_ldapssl_add_trusted_cert="1" 10872fi 10873 10874 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 10875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 10876$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 10877if eval \${$as_ac_Lib+:} false; then : 10878 $as_echo_n "(cached) " >&6 10879else 10880 ac_check_lib_save_LIBS=$LIBS 10881LIBS="-l${ldaplib} ${extralib} $LIBS" 10882cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10883/* end confdefs.h. */ 10884 10885/* Override any GCC internal prototype to avoid an error. 10886 Use char because int might match the return type of a GCC 10887 builtin and then its argument prototype would still apply. */ 10888#ifdef __cplusplus 10889extern "C" 10890#endif 10891char ldap_start_tls_s (); 10892int 10893main () 10894{ 10895return ldap_start_tls_s (); 10896 ; 10897 return 0; 10898} 10899_ACEOF 10900if ac_fn_c_try_link "$LINENO"; then : 10901 eval "$as_ac_Lib=yes" 10902else 10903 eval "$as_ac_Lib=no" 10904fi 10905rm -f core conftest.err conftest.$ac_objext \ 10906 conftest$ac_exeext conftest.$ac_ext 10907LIBS=$ac_check_lib_save_LIBS 10908fi 10909eval ac_res=\$$as_ac_Lib 10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10911$as_echo "$ac_res" >&6; } 10912if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10913 apu_has_ldap_start_tls_s="1" 10914fi 10915 10916 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 10917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 10918$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 10919if eval \${$as_ac_Lib+:} false; then : 10920 $as_echo_n "(cached) " >&6 10921else 10922 ac_check_lib_save_LIBS=$LIBS 10923LIBS="-l${ldaplib} ${extralib} $LIBS" 10924cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10925/* end confdefs.h. */ 10926 10927/* Override any GCC internal prototype to avoid an error. 10928 Use char because int might match the return type of a GCC 10929 builtin and then its argument prototype would still apply. */ 10930#ifdef __cplusplus 10931extern "C" 10932#endif 10933char ldap_sslinit (); 10934int 10935main () 10936{ 10937return ldap_sslinit (); 10938 ; 10939 return 0; 10940} 10941_ACEOF 10942if ac_fn_c_try_link "$LINENO"; then : 10943 eval "$as_ac_Lib=yes" 10944else 10945 eval "$as_ac_Lib=no" 10946fi 10947rm -f core conftest.err conftest.$ac_objext \ 10948 conftest$ac_exeext conftest.$ac_ext 10949LIBS=$ac_check_lib_save_LIBS 10950fi 10951eval ac_res=\$$as_ac_Lib 10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10953$as_echo "$ac_res" >&6; } 10954if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10955 apu_has_ldap_sslinit="1" 10956fi 10957 10958 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 10959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 10960$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 10961if eval \${$as_ac_Lib+:} false; then : 10962 $as_echo_n "(cached) " >&6 10963else 10964 ac_check_lib_save_LIBS=$LIBS 10965LIBS="-l${ldaplib} ${extralib} $LIBS" 10966cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10967/* end confdefs.h. */ 10968 10969/* Override any GCC internal prototype to avoid an error. 10970 Use char because int might match the return type of a GCC 10971 builtin and then its argument prototype would still apply. */ 10972#ifdef __cplusplus 10973extern "C" 10974#endif 10975char ldapssl_init (); 10976int 10977main () 10978{ 10979return ldapssl_init (); 10980 ; 10981 return 0; 10982} 10983_ACEOF 10984if ac_fn_c_try_link "$LINENO"; then : 10985 eval "$as_ac_Lib=yes" 10986else 10987 eval "$as_ac_Lib=no" 10988fi 10989rm -f core conftest.err conftest.$ac_objext \ 10990 conftest$ac_exeext conftest.$ac_ext 10991LIBS=$ac_check_lib_save_LIBS 10992fi 10993eval ac_res=\$$as_ac_Lib 10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10995$as_echo "$ac_res" >&6; } 10996if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10997 apu_has_ldapssl_init="1" 10998fi 10999 11000 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 11001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 11002$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 11003if eval \${$as_ac_Lib+:} false; then : 11004 $as_echo_n "(cached) " >&6 11005else 11006 ac_check_lib_save_LIBS=$LIBS 11007LIBS="-l${ldaplib} ${extralib} $LIBS" 11008cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11009/* end confdefs.h. */ 11010 11011/* Override any GCC internal prototype to avoid an error. 11012 Use char because int might match the return type of a GCC 11013 builtin and then its argument prototype would still apply. */ 11014#ifdef __cplusplus 11015extern "C" 11016#endif 11017char ldapssl_install_routines (); 11018int 11019main () 11020{ 11021return ldapssl_install_routines (); 11022 ; 11023 return 0; 11024} 11025_ACEOF 11026if ac_fn_c_try_link "$LINENO"; then : 11027 eval "$as_ac_Lib=yes" 11028else 11029 eval "$as_ac_Lib=no" 11030fi 11031rm -f core conftest.err conftest.$ac_objext \ 11032 conftest$ac_exeext conftest.$ac_ext 11033LIBS=$ac_check_lib_save_LIBS 11034fi 11035eval ac_res=\$$as_ac_Lib 11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11037$as_echo "$ac_res" >&6; } 11038if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 11039 apu_has_ldapssl_install_routines="1" 11040fi 11041 11042 apu_has_ldap="1"; 11043 11044fi 11045 11046 fi 11047 11048 11049 if test ${apu_has_ldap} != "1"; then 11050 ldaplib=$LIBLDAP 11051 extralib="-ldl -lpthread" 11052 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 11053 11054 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 11055 11056 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 11057 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 11058 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 11059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 11060$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 11061if eval \${$as_ac_Lib+:} false; then : 11062 $as_echo_n "(cached) " >&6 11063else 11064 ac_check_lib_save_LIBS=$LIBS 11065LIBS="-l${ldaplib} ${extralib} $LIBS" 11066cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11067/* end confdefs.h. */ 11068 11069/* Override any GCC internal prototype to avoid an error. 11070 Use char because int might match the return type of a GCC 11071 builtin and then its argument prototype would still apply. */ 11072#ifdef __cplusplus 11073extern "C" 11074#endif 11075char ldap_init (); 11076int 11077main () 11078{ 11079return ldap_init (); 11080 ; 11081 return 0; 11082} 11083_ACEOF 11084if ac_fn_c_try_link "$LINENO"; then : 11085 eval "$as_ac_Lib=yes" 11086else 11087 eval "$as_ac_Lib=no" 11088fi 11089rm -f core conftest.err conftest.$ac_objext \ 11090 conftest$ac_exeext conftest.$ac_ext 11091LIBS=$ac_check_lib_save_LIBS 11092fi 11093eval ac_res=\$$as_ac_Lib 11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11095$as_echo "$ac_res" >&6; } 11096if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 11097 11098 LDADD_ldap_found="-l${ldaplib} ${extralib}" 11099 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 11100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 11101$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 11102if eval \${$as_ac_Lib+:} false; then : 11103 $as_echo_n "(cached) " >&6 11104else 11105 ac_check_lib_save_LIBS=$LIBS 11106LIBS="-l${ldaplib} ${extralib} $LIBS" 11107cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11108/* end confdefs.h. */ 11109 11110/* Override any GCC internal prototype to avoid an error. 11111 Use char because int might match the return type of a GCC 11112 builtin and then its argument prototype would still apply. */ 11113#ifdef __cplusplus 11114extern "C" 11115#endif 11116char ldapssl_client_init (); 11117int 11118main () 11119{ 11120return ldapssl_client_init (); 11121 ; 11122 return 0; 11123} 11124_ACEOF 11125if ac_fn_c_try_link "$LINENO"; then : 11126 eval "$as_ac_Lib=yes" 11127else 11128 eval "$as_ac_Lib=no" 11129fi 11130rm -f core conftest.err conftest.$ac_objext \ 11131 conftest$ac_exeext conftest.$ac_ext 11132LIBS=$ac_check_lib_save_LIBS 11133fi 11134eval ac_res=\$$as_ac_Lib 11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11136$as_echo "$ac_res" >&6; } 11137if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 11138 apu_has_ldapssl_client_init="1" 11139fi 11140 11141 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 11142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 11143$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 11144if eval \${$as_ac_Lib+:} false; then : 11145 $as_echo_n "(cached) " >&6 11146else 11147 ac_check_lib_save_LIBS=$LIBS 11148LIBS="-l${ldaplib} ${extralib} $LIBS" 11149cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11150/* end confdefs.h. */ 11151 11152/* Override any GCC internal prototype to avoid an error. 11153 Use char because int might match the return type of a GCC 11154 builtin and then its argument prototype would still apply. */ 11155#ifdef __cplusplus 11156extern "C" 11157#endif 11158char ldapssl_client_deinit (); 11159int 11160main () 11161{ 11162return ldapssl_client_deinit (); 11163 ; 11164 return 0; 11165} 11166_ACEOF 11167if ac_fn_c_try_link "$LINENO"; then : 11168 eval "$as_ac_Lib=yes" 11169else 11170 eval "$as_ac_Lib=no" 11171fi 11172rm -f core conftest.err conftest.$ac_objext \ 11173 conftest$ac_exeext conftest.$ac_ext 11174LIBS=$ac_check_lib_save_LIBS 11175fi 11176eval ac_res=\$$as_ac_Lib 11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11178$as_echo "$ac_res" >&6; } 11179if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 11180 apu_has_ldapssl_client_deinit="1" 11181fi 11182 11183 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 11184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 11185$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 11186if eval \${$as_ac_Lib+:} false; then : 11187 $as_echo_n "(cached) " >&6 11188else 11189 ac_check_lib_save_LIBS=$LIBS 11190LIBS="-l${ldaplib} ${extralib} $LIBS" 11191cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11192/* end confdefs.h. */ 11193 11194/* Override any GCC internal prototype to avoid an error. 11195 Use char because int might match the return type of a GCC 11196 builtin and then its argument prototype would still apply. */ 11197#ifdef __cplusplus 11198extern "C" 11199#endif 11200char ldapssl_add_trusted_cert (); 11201int 11202main () 11203{ 11204return ldapssl_add_trusted_cert (); 11205 ; 11206 return 0; 11207} 11208_ACEOF 11209if ac_fn_c_try_link "$LINENO"; then : 11210 eval "$as_ac_Lib=yes" 11211else 11212 eval "$as_ac_Lib=no" 11213fi 11214rm -f core conftest.err conftest.$ac_objext \ 11215 conftest$ac_exeext conftest.$ac_ext 11216LIBS=$ac_check_lib_save_LIBS 11217fi 11218eval ac_res=\$$as_ac_Lib 11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11220$as_echo "$ac_res" >&6; } 11221if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 11222 apu_has_ldapssl_add_trusted_cert="1" 11223fi 11224 11225 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 11226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 11227$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 11228if eval \${$as_ac_Lib+:} false; then : 11229 $as_echo_n "(cached) " >&6 11230else 11231 ac_check_lib_save_LIBS=$LIBS 11232LIBS="-l${ldaplib} ${extralib} $LIBS" 11233cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11234/* end confdefs.h. */ 11235 11236/* Override any GCC internal prototype to avoid an error. 11237 Use char because int might match the return type of a GCC 11238 builtin and then its argument prototype would still apply. */ 11239#ifdef __cplusplus 11240extern "C" 11241#endif 11242char ldap_start_tls_s (); 11243int 11244main () 11245{ 11246return ldap_start_tls_s (); 11247 ; 11248 return 0; 11249} 11250_ACEOF 11251if ac_fn_c_try_link "$LINENO"; then : 11252 eval "$as_ac_Lib=yes" 11253else 11254 eval "$as_ac_Lib=no" 11255fi 11256rm -f core conftest.err conftest.$ac_objext \ 11257 conftest$ac_exeext conftest.$ac_ext 11258LIBS=$ac_check_lib_save_LIBS 11259fi 11260eval ac_res=\$$as_ac_Lib 11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11262$as_echo "$ac_res" >&6; } 11263if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 11264 apu_has_ldap_start_tls_s="1" 11265fi 11266 11267 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 11268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 11269$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 11270if eval \${$as_ac_Lib+:} false; then : 11271 $as_echo_n "(cached) " >&6 11272else 11273 ac_check_lib_save_LIBS=$LIBS 11274LIBS="-l${ldaplib} ${extralib} $LIBS" 11275cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11276/* end confdefs.h. */ 11277 11278/* Override any GCC internal prototype to avoid an error. 11279 Use char because int might match the return type of a GCC 11280 builtin and then its argument prototype would still apply. */ 11281#ifdef __cplusplus 11282extern "C" 11283#endif 11284char ldap_sslinit (); 11285int 11286main () 11287{ 11288return ldap_sslinit (); 11289 ; 11290 return 0; 11291} 11292_ACEOF 11293if ac_fn_c_try_link "$LINENO"; then : 11294 eval "$as_ac_Lib=yes" 11295else 11296 eval "$as_ac_Lib=no" 11297fi 11298rm -f core conftest.err conftest.$ac_objext \ 11299 conftest$ac_exeext conftest.$ac_ext 11300LIBS=$ac_check_lib_save_LIBS 11301fi 11302eval ac_res=\$$as_ac_Lib 11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11304$as_echo "$ac_res" >&6; } 11305if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 11306 apu_has_ldap_sslinit="1" 11307fi 11308 11309 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 11310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 11311$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 11312if eval \${$as_ac_Lib+:} false; then : 11313 $as_echo_n "(cached) " >&6 11314else 11315 ac_check_lib_save_LIBS=$LIBS 11316LIBS="-l${ldaplib} ${extralib} $LIBS" 11317cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11318/* end confdefs.h. */ 11319 11320/* Override any GCC internal prototype to avoid an error. 11321 Use char because int might match the return type of a GCC 11322 builtin and then its argument prototype would still apply. */ 11323#ifdef __cplusplus 11324extern "C" 11325#endif 11326char ldapssl_init (); 11327int 11328main () 11329{ 11330return ldapssl_init (); 11331 ; 11332 return 0; 11333} 11334_ACEOF 11335if ac_fn_c_try_link "$LINENO"; then : 11336 eval "$as_ac_Lib=yes" 11337else 11338 eval "$as_ac_Lib=no" 11339fi 11340rm -f core conftest.err conftest.$ac_objext \ 11341 conftest$ac_exeext conftest.$ac_ext 11342LIBS=$ac_check_lib_save_LIBS 11343fi 11344eval ac_res=\$$as_ac_Lib 11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11346$as_echo "$ac_res" >&6; } 11347if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 11348 apu_has_ldapssl_init="1" 11349fi 11350 11351 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 11352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 11353$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 11354if eval \${$as_ac_Lib+:} false; then : 11355 $as_echo_n "(cached) " >&6 11356else 11357 ac_check_lib_save_LIBS=$LIBS 11358LIBS="-l${ldaplib} ${extralib} $LIBS" 11359cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11360/* end confdefs.h. */ 11361 11362/* Override any GCC internal prototype to avoid an error. 11363 Use char because int might match the return type of a GCC 11364 builtin and then its argument prototype would still apply. */ 11365#ifdef __cplusplus 11366extern "C" 11367#endif 11368char ldapssl_install_routines (); 11369int 11370main () 11371{ 11372return ldapssl_install_routines (); 11373 ; 11374 return 0; 11375} 11376_ACEOF 11377if ac_fn_c_try_link "$LINENO"; then : 11378 eval "$as_ac_Lib=yes" 11379else 11380 eval "$as_ac_Lib=no" 11381fi 11382rm -f core conftest.err conftest.$ac_objext \ 11383 conftest$ac_exeext conftest.$ac_ext 11384LIBS=$ac_check_lib_save_LIBS 11385fi 11386eval ac_res=\$$as_ac_Lib 11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11388$as_echo "$ac_res" >&6; } 11389if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 11390 apu_has_ldapssl_install_routines="1" 11391fi 11392 11393 apu_has_ldap="1"; 11394 11395fi 11396 11397 fi 11398 11399 fi 11400 11401 if test ${apu_has_ldap} != "1"; then 11402 as_fn_error $? "could not find an LDAP library" "$LINENO" 5 11403 else 11404 11405 if test "x$LDADD_ldap" = "x"; then 11406 test "x$silent" != "xyes" && echo " setting LDADD_ldap to \"$LDADD_ldap_found\"" 11407 LDADD_ldap="$LDADD_ldap_found" 11408 else 11409 apr_addto_bugger="$LDADD_ldap_found" 11410 for i in $apr_addto_bugger; do 11411 apr_addto_duplicate="0" 11412 for j in $LDADD_ldap; do 11413 if test "x$i" = "x$j"; then 11414 apr_addto_duplicate="1" 11415 break 11416 fi 11417 done 11418 if test $apr_addto_duplicate = "0"; then 11419 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_ldap" 11420 LDADD_ldap="$LDADD_ldap $i" 11421 fi 11422 done 11423 fi 11424 11425 fi 11426 as_ac_Lib=`$as_echo "ac_cv_lib_$apu_liblber_name''_ber_init" | $as_tr_sh` 11427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -l$apu_liblber_name" >&5 11428$as_echo_n "checking for ber_init in -l$apu_liblber_name... " >&6; } 11429if eval \${$as_ac_Lib+:} false; then : 11430 $as_echo_n "(cached) " >&6 11431else 11432 ac_check_lib_save_LIBS=$LIBS 11433LIBS="-l$apu_liblber_name $LIBS" 11434cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11435/* end confdefs.h. */ 11436 11437/* Override any GCC internal prototype to avoid an error. 11438 Use char because int might match the return type of a GCC 11439 builtin and then its argument prototype would still apply. */ 11440#ifdef __cplusplus 11441extern "C" 11442#endif 11443char ber_init (); 11444int 11445main () 11446{ 11447return ber_init (); 11448 ; 11449 return 0; 11450} 11451_ACEOF 11452if ac_fn_c_try_link "$LINENO"; then : 11453 eval "$as_ac_Lib=yes" 11454else 11455 eval "$as_ac_Lib=no" 11456fi 11457rm -f core conftest.err conftest.$ac_objext \ 11458 conftest$ac_exeext conftest.$ac_ext 11459LIBS=$ac_check_lib_save_LIBS 11460fi 11461eval ac_res=\$$as_ac_Lib 11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11463$as_echo "$ac_res" >&6; } 11464if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 11465 11466 if test "x$LDADD_ldap" = "x"; then 11467 test "x$silent" != "xyes" && echo " setting LDADD_ldap to \"-l${apu_liblber_name}\"" 11468 LDADD_ldap="-l${apu_liblber_name}" 11469 else 11470 apr_addto_bugger="-l${apu_liblber_name}" 11471 for i in $apr_addto_bugger; do 11472 apr_addto_duplicate="0" 11473 for j in $LDADD_ldap; do 11474 if test "x$i" = "x$j"; then 11475 apr_addto_duplicate="1" 11476 break 11477 fi 11478 done 11479 if test $apr_addto_duplicate = "0"; then 11480 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_ldap" 11481 LDADD_ldap="$LDADD_ldap $i" 11482 fi 11483 done 11484 fi 11485 11486fi 11487 11488 11489 for ac_header in lber.h 11490do : 11491 ac_fn_c_check_header_mongrel "$LINENO" "lber.h" "ac_cv_header_lber_h" "$ac_includes_default" 11492if test "x$ac_cv_header_lber_h" = xyes; then : 11493 cat >>confdefs.h <<_ACEOF 11494#define HAVE_LBER_H 1 11495_ACEOF 11496 lber_h="#include <lber.h>" 11497fi 11498 11499done 11500 11501 11502 # Solaris has a problem in <ldap.h> which prevents it from 11503 # being included by itself. Check for <ldap.h> manually, 11504 # including lber.h first. 11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5 11506$as_echo_n "checking for ldap.h... " >&6; } 11507if ${apr_cv_hdr_ldap_h+:} false; then : 11508 $as_echo_n "(cached) " >&6 11509else 11510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11511/* end confdefs.h. */ 11512#ifdef HAVE_LBER_H 11513 #include <lber.h> 11514 #endif 11515 #include <ldap.h> 11516 11517_ACEOF 11518if ac_fn_c_try_cpp "$LINENO"; then : 11519 apr_cv_hdr_ldap_h=yes 11520else 11521 apr_cv_hdr_ldap_h=no 11522fi 11523rm -f conftest.err conftest.i conftest.$ac_ext 11524fi 11525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_hdr_ldap_h" >&5 11526$as_echo "$apr_cv_hdr_ldap_h" >&6; } 11527 if test "$apr_cv_hdr_ldap_h" = "yes"; then 11528 ldap_h="#include <ldap.h>" 11529 11530$as_echo "#define HAVE_LDAP_H 1" >>confdefs.h 11531 11532 fi 11533 11534 for ac_header in ldap_ssl.h 11535do : 11536 ac_fn_c_check_header_mongrel "$LINENO" "ldap_ssl.h" "ac_cv_header_ldap_ssl_h" "$ac_includes_default" 11537if test "x$ac_cv_header_ldap_ssl_h" = xyes; then : 11538 cat >>confdefs.h <<_ACEOF 11539#define HAVE_LDAP_SSL_H 1 11540_ACEOF 11541 ldap_ssl_h="#include <ldap_ssl.h>" 11542fi 11543 11544done 11545 11546 11547 if test "$apr_cv_hdr_ldap_h" = "yes"; then 11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP toolkit" >&5 11549$as_echo_n "checking for LDAP toolkit... " >&6; } 11550if ${apr_cv_ldap_toolkit+:} false; then : 11551 $as_echo_n "(cached) " >&6 11552else 11553 11554 if test "x$apr_cv_ldap_toolkit" = "x"; then 11555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11556/* end confdefs.h. */ 11557$lber_h 11558 $ldap_h 11559 LDAP_VENDOR_NAME 11560_ACEOF 11561if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11562 $EGREP "OpenLDAP" >/dev/null 2>&1; then : 11563 apu_has_ldap_openldap="1" 11564 apr_cv_ldap_toolkit="OpenLDAP" 11565fi 11566rm -f conftest* 11567 11568 fi 11569 if test "x$apr_cv_ldap_toolkit" = "x"; then 11570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11571/* end confdefs.h. */ 11572$lber_h 11573 $ldap_h 11574 LDAP_VENDOR_NAME 11575_ACEOF 11576if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11577 $EGREP "Sun Microsystems Inc." >/dev/null 2>&1; then : 11578 apu_has_ldap_solaris="1" 11579 apr_cv_ldap_toolkit="Solaris" 11580fi 11581rm -f conftest* 11582 11583 fi 11584 if test "x$apr_cv_ldap_toolkit" = "x"; then 11585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11586/* end confdefs.h. */ 11587$lber_h 11588 $ldap_h 11589 LDAP_VENDOR_NAME 11590_ACEOF 11591if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11592 $EGREP "Novell" >/dev/null 2>&1; then : 11593 apu_has_ldap_novell="1" 11594 apr_cv_ldap_toolkit="Novell" 11595fi 11596rm -f conftest* 11597 11598 fi 11599 if test "x$apr_cv_ldap_toolkit" = "x"; then 11600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11601/* end confdefs.h. */ 11602$lber_h 11603 $ldap_h 11604 LDAP_VENDOR_NAME 11605_ACEOF 11606if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11607 $EGREP "Microsoft Corporation." >/dev/null 2>&1; then : 11608 apu_has_ldap_microsoft="1" 11609 apr_cv_ldap_toolkit="Microsoft" 11610fi 11611rm -f conftest* 11612 11613 fi 11614 if test "x$apr_cv_ldap_toolkit" = "x"; then 11615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11616/* end confdefs.h. */ 11617$lber_h 11618 $ldap_h 11619 LDAP_VENDOR_NAME 11620_ACEOF 11621if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11622 $EGREP "Netscape Communications Corp." >/dev/null 2>&1; then : 11623 apu_has_ldap_netscape="1" 11624 apr_cv_ldap_toolkit="Netscape" 11625fi 11626rm -f conftest* 11627 11628 fi 11629 if test "x$apr_cv_ldap_toolkit" = "x"; then 11630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11631/* end confdefs.h. */ 11632$lber_h 11633 $ldap_h 11634 LDAP_VENDOR_NAME 11635_ACEOF 11636if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11637 $EGREP "mozilla.org" >/dev/null 2>&1; then : 11638 apu_has_ldap_mozilla="1" 11639 apr_cv_ldap_toolkit="Mozilla" 11640fi 11641rm -f conftest* 11642 11643 fi 11644 if test "x$apr_cv_ldap_toolkit" = "x"; then 11645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11646/* end confdefs.h. */ 11647$lber_h 11648 $ldap_h 11649 LDAP_VENDOR_NAME 11650_ACEOF 11651if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11652 $EGREP "International Business Machines" >/dev/null 2>&1; then : 11653 apu_has_ldap_tivoli="1" 11654 apr_cv_ldap_toolkit="Tivoli" 11655fi 11656rm -f conftest* 11657 11658 fi 11659 if test "x$apr_cv_ldap_toolkit" = "x"; then 11660 case "$host" in 11661 *-ibm-os390) 11662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11663/* end confdefs.h. */ 11664$lber_h 11665 $ldap_h 11666_ACEOF 11667if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11668 $EGREP "IBM" >/dev/null 2>&1; then : 11669 apu_has_ldap_zos="1" 11670 apr_cv_ldap_toolkit="z/OS" 11671fi 11672rm -f conftest* 11673 11674 ;; 11675 esac 11676 fi 11677 if test "x$apr_cv_ldap_toolkit" = "x"; then 11678 apu_has_ldap_other="1" 11679 apr_cv_ldap_toolkit="unknown" 11680 fi 11681 11682fi 11683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_ldap_toolkit" >&5 11684$as_echo "$apr_cv_ldap_toolkit" >&6; } 11685 fi 11686 11687 CPPFLAGS=$save_cppflags 11688 LDFLAGS=$save_ldflags 11689 LIBS=$save_libs 11690 fi 11691 11692fi 11693 11694 11695if test "$apu_has_ldap_openldap" = "1"; then 11696 save_cppflags="$CPPFLAGS" 11697 save_ldflags="$LDFLAGS" 11698 save_libs="$LIBS" 11699 11700 CPPFLAGS="$CPPFLAGS $APRUTIL_INCLUDES" 11701 LDFLAGS="$LDFLAGS $APRUTIL_LDFLAGS" 11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking style of ldap_set_rebind_proc routine" >&5 11703$as_echo_n "checking style of ldap_set_rebind_proc routine... " >&6; } 11704if ${ac_cv_ldap_set_rebind_proc_style+:} false; then : 11705 $as_echo_n "(cached) " >&6 11706else 11707 apr_save_CFLAGS=$CFLAGS 11708 CFLAGS="$CFLAGS $CFLAGS_WARN" 11709 if test "$ac_cv_c_compiler_gnu" = "yes"; then 11710 CFLAGS="$CFLAGS -Werror" 11711 fi 11712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11713/* end confdefs.h. */ 11714#include "confdefs.h" 11715 11716 11717 #ifdef HAVE_LBER_H 11718 #include <lber.h> 11719 #endif 11720 #ifdef HAVE_LDAP_H 11721 #include <ldap.h> 11722 #endif 11723 11724 int main(int argc, const char *const *argv) { 11725 11726 ldap_set_rebind_proc((LDAP *)0, (LDAP_REBIND_PROC *)0, (void *)0); 11727 11728 return 0; } 11729 11730_ACEOF 11731if ac_fn_c_try_compile "$LINENO"; then : 11732 ac_cv_ldap_set_rebind_proc_style=three 11733else 11734 ac_cv_ldap_set_rebind_proc_style=two 11735fi 11736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11737 CFLAGS=$apr_save_CFLAGS 11738 11739fi 11740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ldap_set_rebind_proc_style" >&5 11741$as_echo "$ac_cv_ldap_set_rebind_proc_style" >&6; } 11742 11743 if test "$ac_cv_ldap_set_rebind_proc_style" = "three"; then 11744 11745$as_echo "#define LDAP_SET_REBIND_PROC_THREE 1" >>confdefs.h 11746 11747 fi 11748 11749 CPPFLAGS="$save_cppflags" 11750 LDFLAGS="$save_ldflags" 11751 LIBS="$save_libs" 11752fi 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 apu_use_sdbm=0 11779 apu_use_ndbm=0 11780 apu_use_gdbm=0 11781 apu_use_db=0 11782 apu_have_sdbm=1 11783 apu_have_gdbm=0 11784 apu_have_ndbm=0 11785 apu_have_db=0 11786 11787 apu_db_header=db.h # default so apu_select_dbm.h is syntactically correct 11788 apu_db_version=0 11789 11790 # Maximum supported version announced in help string. 11791 # Although we search for all versions up to 6.9, 11792 # we should only include existing versions in our 11793 # help string. 11794 dbm_list="sdbm, gdbm, ndbm, db, db1, db185, db2, db3, db4" 11795 db_max_version=48 11796 db_min_version=41 11797 db_version="$db_min_version" 11798 while [ $db_version -le $db_max_version ] 11799 do 11800 dbm_list="$dbm_list, db$db_version" 11801 db_version=`expr $db_version + 1` 11802 done 11803 db_max_version=53 11804 db_min_version=50 11805 db_version="$db_min_version" 11806 while [ $db_version -le $db_max_version ] 11807 do 11808 dbm_list="$dbm_list, db$db_version" 11809 db_version=`expr $db_version + 1` 11810 done 11811 db_max_version=60 11812 db_min_version=60 11813 db_version="$db_min_version" 11814 while [ $db_version -le $db_max_version ] 11815 do 11816 dbm_list="$dbm_list, db$db_version" 11817 db_version=`expr $db_version + 1` 11818 done 11819 11820 11821# Check whether --with-dbm was given. 11822if test "${with_dbm+set}" = set; then : 11823 withval=$with_dbm; 11824 if test "$withval" = "yes"; then 11825 as_fn_error $? "--with-dbm needs to specify a DBM type to use. 11826 One of: $dbm_list" "$LINENO" 5 11827 fi 11828 requested="$withval" 11829 11830else 11831 11832 requested=default 11833 11834fi 11835 11836 11837 11838# Check whether --with-gdbm was given. 11839if test "${with_gdbm+set}" = set; then : 11840 withval=$with_gdbm; 11841 apu_have_gdbm=0 11842 if test "$withval" = "yes"; then 11843 ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default" 11844if test "x$ac_cv_header_gdbm_h" = xyes; then : 11845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5 11846$as_echo_n "checking for gdbm_open in -lgdbm... " >&6; } 11847if ${ac_cv_lib_gdbm_gdbm_open+:} false; then : 11848 $as_echo_n "(cached) " >&6 11849else 11850 ac_check_lib_save_LIBS=$LIBS 11851LIBS="-lgdbm $LIBS" 11852cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11853/* end confdefs.h. */ 11854 11855/* Override any GCC internal prototype to avoid an error. 11856 Use char because int might match the return type of a GCC 11857 builtin and then its argument prototype would still apply. */ 11858#ifdef __cplusplus 11859extern "C" 11860#endif 11861char gdbm_open (); 11862int 11863main () 11864{ 11865return gdbm_open (); 11866 ; 11867 return 0; 11868} 11869_ACEOF 11870if ac_fn_c_try_link "$LINENO"; then : 11871 ac_cv_lib_gdbm_gdbm_open=yes 11872else 11873 ac_cv_lib_gdbm_gdbm_open=no 11874fi 11875rm -f core conftest.err conftest.$ac_objext \ 11876 conftest$ac_exeext conftest.$ac_ext 11877LIBS=$ac_check_lib_save_LIBS 11878fi 11879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5 11880$as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; } 11881if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then : 11882 apu_have_gdbm=1 11883fi 11884 11885fi 11886 11887 11888 elif test "$withval" = "no"; then 11889 apu_have_gdbm=0 11890 else 11891 saved_cppflags="$CPPFLAGS" 11892 saved_ldflags="$LDFLAGS" 11893 CPPFLAGS="$CPPFLAGS -I$withval/include" 11894 LDFLAGS="$LDFLAGS -L$withval/lib " 11895 11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for gdbm in $withval" >&5 11897$as_echo_n "checking checking for gdbm in $withval... " >&6; } 11898 ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default" 11899if test "x$ac_cv_header_gdbm_h" = xyes; then : 11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5 11901$as_echo_n "checking for gdbm_open in -lgdbm... " >&6; } 11902if ${ac_cv_lib_gdbm_gdbm_open+:} false; then : 11903 $as_echo_n "(cached) " >&6 11904else 11905 ac_check_lib_save_LIBS=$LIBS 11906LIBS="-lgdbm $LIBS" 11907cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11908/* end confdefs.h. */ 11909 11910/* Override any GCC internal prototype to avoid an error. 11911 Use char because int might match the return type of a GCC 11912 builtin and then its argument prototype would still apply. */ 11913#ifdef __cplusplus 11914extern "C" 11915#endif 11916char gdbm_open (); 11917int 11918main () 11919{ 11920return gdbm_open (); 11921 ; 11922 return 0; 11923} 11924_ACEOF 11925if ac_fn_c_try_link "$LINENO"; then : 11926 ac_cv_lib_gdbm_gdbm_open=yes 11927else 11928 ac_cv_lib_gdbm_gdbm_open=no 11929fi 11930rm -f core conftest.err conftest.$ac_objext \ 11931 conftest$ac_exeext conftest.$ac_ext 11932LIBS=$ac_check_lib_save_LIBS 11933fi 11934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5 11935$as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; } 11936if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then : 11937 apu_have_gdbm=1 11938fi 11939 11940fi 11941 11942 11943 if test "$apu_have_gdbm" != "0"; then 11944 11945 if test "x$APRUTIL_LDFLAGS" = "x"; then 11946 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$withval/lib\"" 11947 APRUTIL_LDFLAGS="-L$withval/lib" 11948 else 11949 apr_addto_bugger="-L$withval/lib" 11950 for i in $apr_addto_bugger; do 11951 apr_addto_duplicate="0" 11952 for j in $APRUTIL_LDFLAGS; do 11953 if test "x$i" = "x$j"; then 11954 apr_addto_duplicate="1" 11955 break 11956 fi 11957 done 11958 if test $apr_addto_duplicate = "0"; then 11959 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 11960 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 11961 fi 11962 done 11963 fi 11964 11965 11966 if test "x$APRUTIL_INCLUDES" = "x"; then 11967 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$withval/include\"" 11968 APRUTIL_INCLUDES="-I$withval/include" 11969 else 11970 apr_addto_bugger="-I$withval/include" 11971 for i in $apr_addto_bugger; do 11972 apr_addto_duplicate="0" 11973 for j in $APRUTIL_INCLUDES; do 11974 if test "x$i" = "x$j"; then 11975 apr_addto_duplicate="1" 11976 break 11977 fi 11978 done 11979 if test $apr_addto_duplicate = "0"; then 11980 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 11981 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 11982 fi 11983 done 11984 fi 11985 11986 fi 11987 CPPFLAGS="$saved_cppflags" 11988 LDFLAGS="$saved_ldflags" 11989 fi 11990 11991fi 11992 11993 11994 11995# Check whether --with-ndbm was given. 11996if test "${with_ndbm+set}" = set; then : 11997 withval=$with_ndbm; 11998 apu_have_ndbm=0 11999 if test "$withval" = "yes"; then 12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for ndbm in the usual places" >&5 12001$as_echo_n "checking checking for ndbm in the usual places... " >&6; } 12002 apu_want_ndbm=1 12003 NDBM_INC="" 12004 NDBM_LDFLAGS="" 12005 elif test "$withval" = "no"; then 12006 apu_want_ndbm=0 12007 else 12008 apu_want_ndbm=1 12009 case "$withval" in 12010 *":"*) 12011 NDBM_INC="-I`echo $withval |sed -e 's/:.*$//'`" 12012 NDBM_LDFLAGS="-L`echo $withval |sed -e 's/^.*://'`" 12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for ndbm includes with $NDBM_INC libs with $NDBM_LDFLAGS " >&5 12014$as_echo_n "checking checking for ndbm includes with $NDBM_INC libs with $NDBM_LDFLAGS ... " >&6; } 12015 ;; 12016 *) 12017 NDBM_INC="-I$withval/include" 12018 NDBM_LDFLAGS="-L$withval/lib" 12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for ndbm includes in $withval" >&5 12020$as_echo_n "checking checking for ndbm includes in $withval... " >&6; } 12021 ;; 12022 esac 12023 fi 12024 12025 save_cppflags="$CPPFLAGS" 12026 save_ldflags="$LDFLAGS" 12027 CPPFLAGS="$CPPFLAGS $NDBM_INC" 12028 LDFLAGS="$LDFLAGS $NDBM_LDFLAGS" 12029 if test "$apu_want_ndbm" != "0"; then 12030 ac_fn_c_check_header_mongrel "$LINENO" "ndbm.h" "ac_cv_header_ndbm_h" "$ac_includes_default" 12031if test "x$ac_cv_header_ndbm_h" = xyes; then : 12032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -lc" >&5 12033$as_echo_n "checking for dbm_open in -lc... " >&6; } 12034if ${ac_cv_lib_c_dbm_open+:} false; then : 12035 $as_echo_n "(cached) " >&6 12036else 12037 ac_check_lib_save_LIBS=$LIBS 12038LIBS="-lc $LIBS" 12039cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12040/* end confdefs.h. */ 12041 12042/* Override any GCC internal prototype to avoid an error. 12043 Use char because int might match the return type of a GCC 12044 builtin and then its argument prototype would still apply. */ 12045#ifdef __cplusplus 12046extern "C" 12047#endif 12048char dbm_open (); 12049int 12050main () 12051{ 12052return dbm_open (); 12053 ; 12054 return 0; 12055} 12056_ACEOF 12057if ac_fn_c_try_link "$LINENO"; then : 12058 ac_cv_lib_c_dbm_open=yes 12059else 12060 ac_cv_lib_c_dbm_open=no 12061fi 12062rm -f core conftest.err conftest.$ac_objext \ 12063 conftest$ac_exeext conftest.$ac_ext 12064LIBS=$ac_check_lib_save_LIBS 12065fi 12066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dbm_open" >&5 12067$as_echo "$ac_cv_lib_c_dbm_open" >&6; } 12068if test "x$ac_cv_lib_c_dbm_open" = xyes; then : 12069 apu_have_ndbm=1;apu_ndbm_lib=c 12070else 12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -ldbm" >&5 12072$as_echo_n "checking for dbm_open in -ldbm... " >&6; } 12073if ${ac_cv_lib_dbm_dbm_open+:} false; then : 12074 $as_echo_n "(cached) " >&6 12075else 12076 ac_check_lib_save_LIBS=$LIBS 12077LIBS="-ldbm $LIBS" 12078cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12079/* end confdefs.h. */ 12080 12081/* Override any GCC internal prototype to avoid an error. 12082 Use char because int might match the return type of a GCC 12083 builtin and then its argument prototype would still apply. */ 12084#ifdef __cplusplus 12085extern "C" 12086#endif 12087char dbm_open (); 12088int 12089main () 12090{ 12091return dbm_open (); 12092 ; 12093 return 0; 12094} 12095_ACEOF 12096if ac_fn_c_try_link "$LINENO"; then : 12097 ac_cv_lib_dbm_dbm_open=yes 12098else 12099 ac_cv_lib_dbm_dbm_open=no 12100fi 12101rm -f core conftest.err conftest.$ac_objext \ 12102 conftest$ac_exeext conftest.$ac_ext 12103LIBS=$ac_check_lib_save_LIBS 12104fi 12105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbm_dbm_open" >&5 12106$as_echo "$ac_cv_lib_dbm_dbm_open" >&6; } 12107if test "x$ac_cv_lib_dbm_dbm_open" = xyes; then : 12108 apu_have_ndbm=1;apu_ndbm_lib=dbm 12109else 12110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -ldb" >&5 12111$as_echo_n "checking for dbm_open in -ldb... " >&6; } 12112if ${ac_cv_lib_db_dbm_open+:} false; then : 12113 $as_echo_n "(cached) " >&6 12114else 12115 ac_check_lib_save_LIBS=$LIBS 12116LIBS="-ldb $LIBS" 12117cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12118/* end confdefs.h. */ 12119 12120/* Override any GCC internal prototype to avoid an error. 12121 Use char because int might match the return type of a GCC 12122 builtin and then its argument prototype would still apply. */ 12123#ifdef __cplusplus 12124extern "C" 12125#endif 12126char dbm_open (); 12127int 12128main () 12129{ 12130return dbm_open (); 12131 ; 12132 return 0; 12133} 12134_ACEOF 12135if ac_fn_c_try_link "$LINENO"; then : 12136 ac_cv_lib_db_dbm_open=yes 12137else 12138 ac_cv_lib_db_dbm_open=no 12139fi 12140rm -f core conftest.err conftest.$ac_objext \ 12141 conftest$ac_exeext conftest.$ac_ext 12142LIBS=$ac_check_lib_save_LIBS 12143fi 12144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_dbm_open" >&5 12145$as_echo "$ac_cv_lib_db_dbm_open" >&6; } 12146if test "x$ac_cv_lib_db_dbm_open" = xyes; then : 12147 apu_have_ndbm=1;apu_ndbm_lib=db 12148else 12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __db_ndbm_open in -ldb" >&5 12150$as_echo_n "checking for __db_ndbm_open in -ldb... " >&6; } 12151if ${ac_cv_lib_db___db_ndbm_open+:} false; then : 12152 $as_echo_n "(cached) " >&6 12153else 12154 ac_check_lib_save_LIBS=$LIBS 12155LIBS="-ldb $LIBS" 12156cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12157/* end confdefs.h. */ 12158 12159/* Override any GCC internal prototype to avoid an error. 12160 Use char because int might match the return type of a GCC 12161 builtin and then its argument prototype would still apply. */ 12162#ifdef __cplusplus 12163extern "C" 12164#endif 12165char __db_ndbm_open (); 12166int 12167main () 12168{ 12169return __db_ndbm_open (); 12170 ; 12171 return 0; 12172} 12173_ACEOF 12174if ac_fn_c_try_link "$LINENO"; then : 12175 ac_cv_lib_db___db_ndbm_open=yes 12176else 12177 ac_cv_lib_db___db_ndbm_open=no 12178fi 12179rm -f core conftest.err conftest.$ac_objext \ 12180 conftest$ac_exeext conftest.$ac_ext 12181LIBS=$ac_check_lib_save_LIBS 12182fi 12183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db___db_ndbm_open" >&5 12184$as_echo "$ac_cv_lib_db___db_ndbm_open" >&6; } 12185if test "x$ac_cv_lib_db___db_ndbm_open" = xyes; then : 12186 apu_have_ndbm=1;apu_ndbm_lib=db 12187fi 12188 12189 12190fi 12191 12192 12193fi 12194 12195 12196fi 12197 12198 12199fi 12200 12201 12202 if test "$apu_have_ndbm" != "0"; then 12203 if test "$withval" != "yes"; then 12204 12205 if test "x$APRUTIL_INCLUDES" = "x"; then 12206 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"$NDBM_INC\"" 12207 APRUTIL_INCLUDES="$NDBM_INC" 12208 else 12209 apr_addto_bugger="$NDBM_INC" 12210 for i in $apr_addto_bugger; do 12211 apr_addto_duplicate="0" 12212 for j in $APRUTIL_INCLUDES; do 12213 if test "x$i" = "x$j"; then 12214 apr_addto_duplicate="1" 12215 break 12216 fi 12217 done 12218 if test $apr_addto_duplicate = "0"; then 12219 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 12220 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 12221 fi 12222 done 12223 fi 12224 12225 12226 if test "x$APRUTIL_LDFLAGS" = "x"; then 12227 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"$NDBM_LDFLAGS\"" 12228 APRUTIL_LDFLAGS="$NDBM_LDFLAGS" 12229 else 12230 apr_addto_bugger="$NDBM_LDFLAGS" 12231 for i in $apr_addto_bugger; do 12232 apr_addto_duplicate="0" 12233 for j in $APRUTIL_LDFLAGS; do 12234 if test "x$i" = "x$j"; then 12235 apr_addto_duplicate="1" 12236 break 12237 fi 12238 done 12239 if test $apr_addto_duplicate = "0"; then 12240 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 12241 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 12242 fi 12243 done 12244 fi 12245 12246 fi 12247 elif test "$withval" != "yes"; then 12248 as_fn_error $? "NDBM not found in the specified directory" "$LINENO" 5 12249 fi 12250 fi 12251 CPPFLAGS="$save_cppflags" 12252 LDFLAGS="$save_ldflags" 12253 12254else 12255 12256 apu_have_ndbm=0 12257 12258fi 12259 12260 12261 12262 if test -n "$apu_db_xtra_libs"; then 12263 saveddbxtralibs="$LIBS" 12264 LIBS="$apu_db_xtra_libs $LIBS" 12265 fi 12266 12267 12268# Check whether --with-berkeley-db was given. 12269if test "${with_berkeley_db+set}" = set; then : 12270 withval=$with_berkeley_db; 12271 if test "$withval" = "yes"; then 12272 apu_want_db=1 12273 user_places="" 12274 elif test "$withval" = "no"; then 12275 apu_want_db=0 12276 else 12277 apu_want_db=1 12278 user_places="$withval" 12279 fi 12280 12281 if test "$apu_want_db" != "0"; then 12282 12283 requested=$requested 12284 check_places=$user_places 12285 12286 case "$requested" in 12287 db) 12288 12289 all_places="$check_places" 12290 12291 # Start version search at version 6.9 12292 db_version=69 12293 while [ $db_version -ge 40 ] 12294 do 12295 db_major=`echo $db_version | sed -e 's/.$//'` 12296 db_minor=`echo $db_version | sed -e 's/.//'` 12297 12298 places="$all_places" 12299 db_major="$db_major" 12300 db_minor="$db_minor" 12301 if test -z "$places"; then 12302 places="std /usr/local /usr/local/BerkeleyDB.${db_major}.${db_minor} /boot/home/config" 12303 fi 12304 12305 bdb_version="${db_major}" 12306 if test ""${db_minor}"" != "-1"; then 12307 bdb_version="$bdb_version."${db_minor}"" 12308 if test ""-1"" != "-1"; then 12309 bdb_version="$bdb_version."-1"" 12310 fi 12311 fi 12312 bdb_places="$places" 12313 bdb_default_search_headers="db${db_major}${db_minor}/db.h db${db_major}/db.h db.h" 12314 bdb_default_search_lib_names="db-${db_major}.${db_minor} db${db_major}-${db_major}.${db_minor} db${db_major}${db_minor} db-${db_major} db${db_major} db" 12315 12316 12317 apu_have_db=0 12318 12319 # Save the original values of the flags we tweak. 12320 apu_check_lib_save_libs="$LIBS" 12321 apu_check_lib_save_ldflags="$LDFLAGS" 12322 apu_check_lib_save_cppflags="$CPPFLAGS" 12323 12324 # The variable `found' is the prefix under which we've found 12325 # Berkeley DB, or `not' if we haven't found it anywhere yet. 12326 found=not 12327 for bdb_place in $bdb_places; do 12328 12329 LDFLAGS="$apu_check_lib_save_ldflags" 12330 CPPFLAGS="$apu_check_lib_save_cppflags" 12331 case "$bdb_place" in 12332 "std" ) 12333 description="the standard places" 12334 ;; 12335 *":"* ) 12336 header="`echo $bdb_place | sed -e 's/:.*$//'`" 12337 lib="`echo $bdb_place | sed -e 's/^.*://'`" 12338 CPPFLAGS="$CPPFLAGS -I$header" 12339 LDFLAGS="$LDFLAGS -L$lib" 12340 description="$header and $lib" 12341 ;; 12342 * ) 12343 if test -d $bdb_place; then 12344 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 12345 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 12346 else 12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 12348$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 12350$as_echo "directory not found" >&6; } 12351 continue 12352 fi 12353 description="$bdb_place" 12354 ;; 12355 esac 12356 12357 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 12358 # trick to display a message instead. 12359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 12360$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 12362$as_echo "" >&6; } 12363 12364 for bdb_libname in $bdb_default_search_lib_names; do 12365 for bdb_header in $bdb_default_search_headers; do 12366 # Clear the header cache variable for each location 12367 12368 cache_id="`echo ac_cv_header_${bdb_header} \ 12369 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 12370 12371 unset $cache_id 12372 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 12373ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 12374if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12375 12376 if test ""${db_major}"" = "3" -o ""${db_major}"" = "4" -o ""${db_major}"" = "5" -o ""${db_major}"" = "6"; then 12377 # We generate a separate cache variable for each prefix and libname 12378 # we search under. That way, we avoid caching information that 12379 # changes if the user runs `configure' with a different set of 12380 # switches. 12381 12382 cache_id="`echo apu_cv_check_berkeley_db_"${db_major}"_"${db_minor}"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 12383 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 12384 12385 12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 12387$as_echo_n "checking for -l$bdb_libname... " >&6; } 12388 if eval \${$cache_id+:} false; then : 12389 $as_echo_n "(cached) " >&6 12390else 12391 12392 12393 apu_try_berkeley_db_save_libs="$LIBS" 12394 12395 apu_check_berkeley_db_major="${db_major}" 12396 apu_check_berkeley_db_minor="${db_minor}" 12397 apu_check_berkeley_db_patch="-1" 12398 apu_try_berkeley_db_header=$bdb_header 12399 apu_try_berkeley_db_libname=$bdb_libname 12400 12401 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 12402 if test "$cross_compiling" = yes; then : 12403 apu_try_berkeley_db=yes 12404 12405else 12406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12407/* end confdefs.h. */ 12408 12409#include <stdlib.h> 12410#include <stdio.h> 12411#include <$apu_try_berkeley_db_header> 12412main () 12413{ 12414 int major, minor, patch; 12415 12416 db_version(&major, &minor, &patch); 12417 12418 /* Sanity check: ensure that db.h constants actually match the db library */ 12419 if (major != DB_VERSION_MAJOR 12420 || minor != DB_VERSION_MINOR 12421 || patch != DB_VERSION_PATCH) 12422 exit (1); 12423 12424 /* Run-time check: ensure the library claims to be the correct version. */ 12425 12426 if ($apu_check_berkeley_db_major != -1) { 12427 if (major < $apu_check_berkeley_db_major) 12428 exit (1); 12429 if (major > $apu_check_berkeley_db_major) 12430 exit (0); 12431 } 12432 12433 if ($apu_check_berkeley_db_minor != -1) { 12434 if (minor < $apu_check_berkeley_db_minor) 12435 exit (1); 12436 if (minor > $apu_check_berkeley_db_minor) 12437 exit (0); 12438 } 12439 12440 if ($apu_check_berkeley_db_patch == -1 12441 || patch >= $apu_check_berkeley_db_patch) 12442 exit (0); 12443 else 12444 exit (1); 12445} 12446 12447_ACEOF 12448if ac_fn_c_try_run "$LINENO"; then : 12449 apu_try_berkeley_db=yes 12450else 12451 apu_try_berkeley_db=no 12452fi 12453rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12454 conftest.$ac_objext conftest.beam conftest.$ac_ext 12455fi 12456 12457 12458 LIBS="$apu_try_berkeley_db_save_libs" 12459 12460 12461 eval "$cache_id=$apu_try_berkeley_db" 12462 12463fi 12464 12465 result="`eval echo '$'$cache_id`" 12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 12467$as_echo "$result" >&6; } 12468 elif test ""${db_major}"" = "1"; then 12469 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 12470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 12471$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 12472if eval \${$as_ac_Lib+:} false; then : 12473 $as_echo_n "(cached) " >&6 12474else 12475 ac_check_lib_save_LIBS=$LIBS 12476LIBS="-l$bdb_libname $LIBS" 12477cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12478/* end confdefs.h. */ 12479 12480/* Override any GCC internal prototype to avoid an error. 12481 Use char because int might match the return type of a GCC 12482 builtin and then its argument prototype would still apply. */ 12483#ifdef __cplusplus 12484extern "C" 12485#endif 12486char dbopen (); 12487int 12488main () 12489{ 12490return dbopen (); 12491 ; 12492 return 0; 12493} 12494_ACEOF 12495if ac_fn_c_try_link "$LINENO"; then : 12496 eval "$as_ac_Lib=yes" 12497else 12498 eval "$as_ac_Lib=no" 12499fi 12500rm -f core conftest.err conftest.$ac_objext \ 12501 conftest$ac_exeext conftest.$ac_ext 12502LIBS=$ac_check_lib_save_LIBS 12503fi 12504eval ac_res=\$$as_ac_Lib 12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12506$as_echo "$ac_res" >&6; } 12507if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 12508 result=yes 12509else 12510 result=no 12511 12512fi 12513 12514 elif test ""${db_major}"" = "2"; then 12515 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 12516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 12517$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 12518if eval \${$as_ac_Lib+:} false; then : 12519 $as_echo_n "(cached) " >&6 12520else 12521 ac_check_lib_save_LIBS=$LIBS 12522LIBS="-l$bdb_libname $LIBS" 12523cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12524/* end confdefs.h. */ 12525 12526/* Override any GCC internal prototype to avoid an error. 12527 Use char because int might match the return type of a GCC 12528 builtin and then its argument prototype would still apply. */ 12529#ifdef __cplusplus 12530extern "C" 12531#endif 12532char db_open (); 12533int 12534main () 12535{ 12536return db_open (); 12537 ; 12538 return 0; 12539} 12540_ACEOF 12541if ac_fn_c_try_link "$LINENO"; then : 12542 eval "$as_ac_Lib=yes" 12543else 12544 eval "$as_ac_Lib=no" 12545fi 12546rm -f core conftest.err conftest.$ac_objext \ 12547 conftest$ac_exeext conftest.$ac_ext 12548LIBS=$ac_check_lib_save_LIBS 12549fi 12550eval ac_res=\$$as_ac_Lib 12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12552$as_echo "$ac_res" >&6; } 12553if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 12554 result=yes 12555else 12556 result=no 12557 12558fi 12559 12560 fi 12561 12562else 12563 result="no" 12564fi 12565 12566 12567 12568 # If we found it, no need to search any more. 12569 if test "$result" = "yes"; then 12570 found="$bdb_place" 12571 break 12572 fi 12573 done 12574 test "$found" != "not" && break 12575 done 12576 test "$found" != "not" && break 12577 done 12578 12579 # Restore the original values of the flags we tweak. 12580 LDFLAGS="$apu_check_lib_save_ldflags" 12581 CPPFLAGS="$apu_check_lib_save_cppflags" 12582 12583 case "$found" in 12584 "not") 12585 apu_have_db=0 12586 ;; 12587 "std") 12588 apu_db_header=$bdb_header 12589 apu_db_lib=$bdb_libname 12590 apu_have_db=1 12591 ;; 12592 *":"*) 12593 header="`echo $found | sed -e 's/:.*$//'`" 12594 lib="`echo $found | sed -e 's/^.*://'`" 12595 12596 12597 if test "x$APRUTIL_INCLUDES" = "x"; then 12598 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 12599 APRUTIL_INCLUDES="-I$header" 12600 else 12601 apr_addto_bugger="-I$header" 12602 for i in $apr_addto_bugger; do 12603 apr_addto_duplicate="0" 12604 for j in $APRUTIL_INCLUDES; do 12605 if test "x$i" = "x$j"; then 12606 apr_addto_duplicate="1" 12607 break 12608 fi 12609 done 12610 if test $apr_addto_duplicate = "0"; then 12611 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 12612 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 12613 fi 12614 done 12615 fi 12616 12617 12618 if test "x$APRUTIL_LDFLAGS" = "x"; then 12619 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 12620 APRUTIL_LDFLAGS="-L$lib" 12621 else 12622 apr_addto_bugger="-L$lib" 12623 for i in $apr_addto_bugger; do 12624 apr_addto_duplicate="0" 12625 for j in $APRUTIL_LDFLAGS; do 12626 if test "x$i" = "x$j"; then 12627 apr_addto_duplicate="1" 12628 break 12629 fi 12630 done 12631 if test $apr_addto_duplicate = "0"; then 12632 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 12633 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 12634 fi 12635 done 12636 fi 12637 12638 apu_db_header=$bdb_header 12639 apu_db_lib=$bdb_libname 12640 apu_have_db=1 12641 ;; 12642 *) 12643 12644 if test "x$APRUTIL_INCLUDES" = "x"; then 12645 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 12646 APRUTIL_INCLUDES="-I$found/include" 12647 else 12648 apr_addto_bugger="-I$found/include" 12649 for i in $apr_addto_bugger; do 12650 apr_addto_duplicate="0" 12651 for j in $APRUTIL_INCLUDES; do 12652 if test "x$i" = "x$j"; then 12653 apr_addto_duplicate="1" 12654 break 12655 fi 12656 done 12657 if test $apr_addto_duplicate = "0"; then 12658 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 12659 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 12660 fi 12661 done 12662 fi 12663 12664 12665 if test "x$APRUTIL_LDFLAGS" = "x"; then 12666 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 12667 APRUTIL_LDFLAGS="-L$found/lib" 12668 else 12669 apr_addto_bugger="-L$found/lib" 12670 for i in $apr_addto_bugger; do 12671 apr_addto_duplicate="0" 12672 for j in $APRUTIL_LDFLAGS; do 12673 if test "x$i" = "x$j"; then 12674 apr_addto_duplicate="1" 12675 break 12676 fi 12677 done 12678 if test $apr_addto_duplicate = "0"; then 12679 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 12680 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 12681 fi 12682 done 12683 fi 12684 12685 apu_db_header=$bdb_header 12686 apu_db_lib=$bdb_libname 12687 apu_have_db=1 12688 ;; 12689 esac 12690 12691 if test "$apu_have_db" = "1"; then 12692 apu_db_version=${db_major} 12693 fi 12694 12695 if test "$apu_have_db" = "1"; then 12696 break 12697 fi 12698 db_version=`expr $db_version - 1` 12699 done 12700 if test "$apu_have_db" = "0"; then 12701 12702 places="$all_places" 12703 if test -z "$places"; then 12704 places="std" 12705 fi 12706 12707 bdb_version=3 12708 if test "-1" != "-1"; then 12709 bdb_version="$bdb_version.-1" 12710 if test "-1" != "-1"; then 12711 bdb_version="$bdb_version.-1" 12712 fi 12713 fi 12714 bdb_places="$places" 12715 bdb_default_search_headers="db3/db.h db.h" 12716 bdb_default_search_lib_names="db3 db" 12717 12718 12719 apu_have_db=0 12720 12721 # Save the original values of the flags we tweak. 12722 apu_check_lib_save_libs="$LIBS" 12723 apu_check_lib_save_ldflags="$LDFLAGS" 12724 apu_check_lib_save_cppflags="$CPPFLAGS" 12725 12726 # The variable `found' is the prefix under which we've found 12727 # Berkeley DB, or `not' if we haven't found it anywhere yet. 12728 found=not 12729 for bdb_place in $bdb_places; do 12730 12731 LDFLAGS="$apu_check_lib_save_ldflags" 12732 CPPFLAGS="$apu_check_lib_save_cppflags" 12733 case "$bdb_place" in 12734 "std" ) 12735 description="the standard places" 12736 ;; 12737 *":"* ) 12738 header="`echo $bdb_place | sed -e 's/:.*$//'`" 12739 lib="`echo $bdb_place | sed -e 's/^.*://'`" 12740 CPPFLAGS="$CPPFLAGS -I$header" 12741 LDFLAGS="$LDFLAGS -L$lib" 12742 description="$header and $lib" 12743 ;; 12744 * ) 12745 if test -d $bdb_place; then 12746 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 12747 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 12748 else 12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 12750$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 12752$as_echo "directory not found" >&6; } 12753 continue 12754 fi 12755 description="$bdb_place" 12756 ;; 12757 esac 12758 12759 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 12760 # trick to display a message instead. 12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 12762$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 12764$as_echo "" >&6; } 12765 12766 for bdb_libname in $bdb_default_search_lib_names; do 12767 for bdb_header in $bdb_default_search_headers; do 12768 # Clear the header cache variable for each location 12769 12770 cache_id="`echo ac_cv_header_${bdb_header} \ 12771 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 12772 12773 unset $cache_id 12774 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 12775ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 12776if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12777 12778 if test "3" = "3" -o "3" = "4" -o "3" = "5" -o "3" = "6"; then 12779 # We generate a separate cache variable for each prefix and libname 12780 # we search under. That way, we avoid caching information that 12781 # changes if the user runs `configure' with a different set of 12782 # switches. 12783 12784 cache_id="`echo apu_cv_check_berkeley_db_3_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 12785 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 12786 12787 12788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 12789$as_echo_n "checking for -l$bdb_libname... " >&6; } 12790 if eval \${$cache_id+:} false; then : 12791 $as_echo_n "(cached) " >&6 12792else 12793 12794 12795 apu_try_berkeley_db_save_libs="$LIBS" 12796 12797 apu_check_berkeley_db_major=3 12798 apu_check_berkeley_db_minor=-1 12799 apu_check_berkeley_db_patch=-1 12800 apu_try_berkeley_db_header=$bdb_header 12801 apu_try_berkeley_db_libname=$bdb_libname 12802 12803 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 12804 if test "$cross_compiling" = yes; then : 12805 apu_try_berkeley_db=yes 12806 12807else 12808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12809/* end confdefs.h. */ 12810 12811#include <stdlib.h> 12812#include <stdio.h> 12813#include <$apu_try_berkeley_db_header> 12814main () 12815{ 12816 int major, minor, patch; 12817 12818 db_version(&major, &minor, &patch); 12819 12820 /* Sanity check: ensure that db.h constants actually match the db library */ 12821 if (major != DB_VERSION_MAJOR 12822 || minor != DB_VERSION_MINOR 12823 || patch != DB_VERSION_PATCH) 12824 exit (1); 12825 12826 /* Run-time check: ensure the library claims to be the correct version. */ 12827 12828 if ($apu_check_berkeley_db_major != -1) { 12829 if (major < $apu_check_berkeley_db_major) 12830 exit (1); 12831 if (major > $apu_check_berkeley_db_major) 12832 exit (0); 12833 } 12834 12835 if ($apu_check_berkeley_db_minor != -1) { 12836 if (minor < $apu_check_berkeley_db_minor) 12837 exit (1); 12838 if (minor > $apu_check_berkeley_db_minor) 12839 exit (0); 12840 } 12841 12842 if ($apu_check_berkeley_db_patch == -1 12843 || patch >= $apu_check_berkeley_db_patch) 12844 exit (0); 12845 else 12846 exit (1); 12847} 12848 12849_ACEOF 12850if ac_fn_c_try_run "$LINENO"; then : 12851 apu_try_berkeley_db=yes 12852else 12853 apu_try_berkeley_db=no 12854fi 12855rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12856 conftest.$ac_objext conftest.beam conftest.$ac_ext 12857fi 12858 12859 12860 LIBS="$apu_try_berkeley_db_save_libs" 12861 12862 12863 eval "$cache_id=$apu_try_berkeley_db" 12864 12865fi 12866 12867 result="`eval echo '$'$cache_id`" 12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 12869$as_echo "$result" >&6; } 12870 elif test "3" = "1"; then 12871 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 12872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 12873$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 12874if eval \${$as_ac_Lib+:} false; then : 12875 $as_echo_n "(cached) " >&6 12876else 12877 ac_check_lib_save_LIBS=$LIBS 12878LIBS="-l$bdb_libname $LIBS" 12879cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12880/* end confdefs.h. */ 12881 12882/* Override any GCC internal prototype to avoid an error. 12883 Use char because int might match the return type of a GCC 12884 builtin and then its argument prototype would still apply. */ 12885#ifdef __cplusplus 12886extern "C" 12887#endif 12888char dbopen (); 12889int 12890main () 12891{ 12892return dbopen (); 12893 ; 12894 return 0; 12895} 12896_ACEOF 12897if ac_fn_c_try_link "$LINENO"; then : 12898 eval "$as_ac_Lib=yes" 12899else 12900 eval "$as_ac_Lib=no" 12901fi 12902rm -f core conftest.err conftest.$ac_objext \ 12903 conftest$ac_exeext conftest.$ac_ext 12904LIBS=$ac_check_lib_save_LIBS 12905fi 12906eval ac_res=\$$as_ac_Lib 12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12908$as_echo "$ac_res" >&6; } 12909if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 12910 result=yes 12911else 12912 result=no 12913 12914fi 12915 12916 elif test "3" = "2"; then 12917 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 12918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 12919$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 12920if eval \${$as_ac_Lib+:} false; then : 12921 $as_echo_n "(cached) " >&6 12922else 12923 ac_check_lib_save_LIBS=$LIBS 12924LIBS="-l$bdb_libname $LIBS" 12925cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12926/* end confdefs.h. */ 12927 12928/* Override any GCC internal prototype to avoid an error. 12929 Use char because int might match the return type of a GCC 12930 builtin and then its argument prototype would still apply. */ 12931#ifdef __cplusplus 12932extern "C" 12933#endif 12934char db_open (); 12935int 12936main () 12937{ 12938return db_open (); 12939 ; 12940 return 0; 12941} 12942_ACEOF 12943if ac_fn_c_try_link "$LINENO"; then : 12944 eval "$as_ac_Lib=yes" 12945else 12946 eval "$as_ac_Lib=no" 12947fi 12948rm -f core conftest.err conftest.$ac_objext \ 12949 conftest$ac_exeext conftest.$ac_ext 12950LIBS=$ac_check_lib_save_LIBS 12951fi 12952eval ac_res=\$$as_ac_Lib 12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12954$as_echo "$ac_res" >&6; } 12955if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 12956 result=yes 12957else 12958 result=no 12959 12960fi 12961 12962 fi 12963 12964else 12965 result="no" 12966fi 12967 12968 12969 12970 # If we found it, no need to search any more. 12971 if test "$result" = "yes"; then 12972 found="$bdb_place" 12973 break 12974 fi 12975 done 12976 test "$found" != "not" && break 12977 done 12978 test "$found" != "not" && break 12979 done 12980 12981 # Restore the original values of the flags we tweak. 12982 LDFLAGS="$apu_check_lib_save_ldflags" 12983 CPPFLAGS="$apu_check_lib_save_cppflags" 12984 12985 case "$found" in 12986 "not") 12987 apu_have_db=0 12988 ;; 12989 "std") 12990 apu_db_header=$bdb_header 12991 apu_db_lib=$bdb_libname 12992 apu_have_db=1 12993 ;; 12994 *":"*) 12995 header="`echo $found | sed -e 's/:.*$//'`" 12996 lib="`echo $found | sed -e 's/^.*://'`" 12997 12998 12999 if test "x$APRUTIL_INCLUDES" = "x"; then 13000 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 13001 APRUTIL_INCLUDES="-I$header" 13002 else 13003 apr_addto_bugger="-I$header" 13004 for i in $apr_addto_bugger; do 13005 apr_addto_duplicate="0" 13006 for j in $APRUTIL_INCLUDES; do 13007 if test "x$i" = "x$j"; then 13008 apr_addto_duplicate="1" 13009 break 13010 fi 13011 done 13012 if test $apr_addto_duplicate = "0"; then 13013 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 13014 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 13015 fi 13016 done 13017 fi 13018 13019 13020 if test "x$APRUTIL_LDFLAGS" = "x"; then 13021 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 13022 APRUTIL_LDFLAGS="-L$lib" 13023 else 13024 apr_addto_bugger="-L$lib" 13025 for i in $apr_addto_bugger; do 13026 apr_addto_duplicate="0" 13027 for j in $APRUTIL_LDFLAGS; do 13028 if test "x$i" = "x$j"; then 13029 apr_addto_duplicate="1" 13030 break 13031 fi 13032 done 13033 if test $apr_addto_duplicate = "0"; then 13034 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 13035 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 13036 fi 13037 done 13038 fi 13039 13040 apu_db_header=$bdb_header 13041 apu_db_lib=$bdb_libname 13042 apu_have_db=1 13043 ;; 13044 *) 13045 13046 if test "x$APRUTIL_INCLUDES" = "x"; then 13047 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 13048 APRUTIL_INCLUDES="-I$found/include" 13049 else 13050 apr_addto_bugger="-I$found/include" 13051 for i in $apr_addto_bugger; do 13052 apr_addto_duplicate="0" 13053 for j in $APRUTIL_INCLUDES; do 13054 if test "x$i" = "x$j"; then 13055 apr_addto_duplicate="1" 13056 break 13057 fi 13058 done 13059 if test $apr_addto_duplicate = "0"; then 13060 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 13061 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 13062 fi 13063 done 13064 fi 13065 13066 13067 if test "x$APRUTIL_LDFLAGS" = "x"; then 13068 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 13069 APRUTIL_LDFLAGS="-L$found/lib" 13070 else 13071 apr_addto_bugger="-L$found/lib" 13072 for i in $apr_addto_bugger; do 13073 apr_addto_duplicate="0" 13074 for j in $APRUTIL_LDFLAGS; do 13075 if test "x$i" = "x$j"; then 13076 apr_addto_duplicate="1" 13077 break 13078 fi 13079 done 13080 if test $apr_addto_duplicate = "0"; then 13081 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 13082 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 13083 fi 13084 done 13085 fi 13086 13087 apu_db_header=$bdb_header 13088 apu_db_lib=$bdb_libname 13089 apu_have_db=1 13090 ;; 13091 esac 13092 13093 if test "$apu_have_db" = "1"; then 13094 apu_db_version=3 13095 fi 13096 13097 fi 13098 if test "$apu_have_db" = "0"; then 13099 13100 places="$all_places" 13101 if test -z "$places"; then 13102 places="std" 13103 fi 13104 13105 bdb_version=2 13106 if test "-1" != "-1"; then 13107 bdb_version="$bdb_version.-1" 13108 if test "-1" != "-1"; then 13109 bdb_version="$bdb_version.-1" 13110 fi 13111 fi 13112 bdb_places="$places" 13113 bdb_default_search_headers="db2/db.h db.h" 13114 bdb_default_search_lib_names="db2 db" 13115 13116 13117 apu_have_db=0 13118 13119 # Save the original values of the flags we tweak. 13120 apu_check_lib_save_libs="$LIBS" 13121 apu_check_lib_save_ldflags="$LDFLAGS" 13122 apu_check_lib_save_cppflags="$CPPFLAGS" 13123 13124 # The variable `found' is the prefix under which we've found 13125 # Berkeley DB, or `not' if we haven't found it anywhere yet. 13126 found=not 13127 for bdb_place in $bdb_places; do 13128 13129 LDFLAGS="$apu_check_lib_save_ldflags" 13130 CPPFLAGS="$apu_check_lib_save_cppflags" 13131 case "$bdb_place" in 13132 "std" ) 13133 description="the standard places" 13134 ;; 13135 *":"* ) 13136 header="`echo $bdb_place | sed -e 's/:.*$//'`" 13137 lib="`echo $bdb_place | sed -e 's/^.*://'`" 13138 CPPFLAGS="$CPPFLAGS -I$header" 13139 LDFLAGS="$LDFLAGS -L$lib" 13140 description="$header and $lib" 13141 ;; 13142 * ) 13143 if test -d $bdb_place; then 13144 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 13145 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 13146 else 13147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 13148$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 13150$as_echo "directory not found" >&6; } 13151 continue 13152 fi 13153 description="$bdb_place" 13154 ;; 13155 esac 13156 13157 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 13158 # trick to display a message instead. 13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 13160$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 13162$as_echo "" >&6; } 13163 13164 for bdb_libname in $bdb_default_search_lib_names; do 13165 for bdb_header in $bdb_default_search_headers; do 13166 # Clear the header cache variable for each location 13167 13168 cache_id="`echo ac_cv_header_${bdb_header} \ 13169 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 13170 13171 unset $cache_id 13172 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 13173ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 13174if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13175 13176 if test "2" = "3" -o "2" = "4" -o "2" = "5" -o "2" = "6"; then 13177 # We generate a separate cache variable for each prefix and libname 13178 # we search under. That way, we avoid caching information that 13179 # changes if the user runs `configure' with a different set of 13180 # switches. 13181 13182 cache_id="`echo apu_cv_check_berkeley_db_2_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 13183 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 13184 13185 13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 13187$as_echo_n "checking for -l$bdb_libname... " >&6; } 13188 if eval \${$cache_id+:} false; then : 13189 $as_echo_n "(cached) " >&6 13190else 13191 13192 13193 apu_try_berkeley_db_save_libs="$LIBS" 13194 13195 apu_check_berkeley_db_major=2 13196 apu_check_berkeley_db_minor=-1 13197 apu_check_berkeley_db_patch=-1 13198 apu_try_berkeley_db_header=$bdb_header 13199 apu_try_berkeley_db_libname=$bdb_libname 13200 13201 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 13202 if test "$cross_compiling" = yes; then : 13203 apu_try_berkeley_db=yes 13204 13205else 13206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13207/* end confdefs.h. */ 13208 13209#include <stdlib.h> 13210#include <stdio.h> 13211#include <$apu_try_berkeley_db_header> 13212main () 13213{ 13214 int major, minor, patch; 13215 13216 db_version(&major, &minor, &patch); 13217 13218 /* Sanity check: ensure that db.h constants actually match the db library */ 13219 if (major != DB_VERSION_MAJOR 13220 || minor != DB_VERSION_MINOR 13221 || patch != DB_VERSION_PATCH) 13222 exit (1); 13223 13224 /* Run-time check: ensure the library claims to be the correct version. */ 13225 13226 if ($apu_check_berkeley_db_major != -1) { 13227 if (major < $apu_check_berkeley_db_major) 13228 exit (1); 13229 if (major > $apu_check_berkeley_db_major) 13230 exit (0); 13231 } 13232 13233 if ($apu_check_berkeley_db_minor != -1) { 13234 if (minor < $apu_check_berkeley_db_minor) 13235 exit (1); 13236 if (minor > $apu_check_berkeley_db_minor) 13237 exit (0); 13238 } 13239 13240 if ($apu_check_berkeley_db_patch == -1 13241 || patch >= $apu_check_berkeley_db_patch) 13242 exit (0); 13243 else 13244 exit (1); 13245} 13246 13247_ACEOF 13248if ac_fn_c_try_run "$LINENO"; then : 13249 apu_try_berkeley_db=yes 13250else 13251 apu_try_berkeley_db=no 13252fi 13253rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13254 conftest.$ac_objext conftest.beam conftest.$ac_ext 13255fi 13256 13257 13258 LIBS="$apu_try_berkeley_db_save_libs" 13259 13260 13261 eval "$cache_id=$apu_try_berkeley_db" 13262 13263fi 13264 13265 result="`eval echo '$'$cache_id`" 13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 13267$as_echo "$result" >&6; } 13268 elif test "2" = "1"; then 13269 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 13270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 13271$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 13272if eval \${$as_ac_Lib+:} false; then : 13273 $as_echo_n "(cached) " >&6 13274else 13275 ac_check_lib_save_LIBS=$LIBS 13276LIBS="-l$bdb_libname $LIBS" 13277cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13278/* end confdefs.h. */ 13279 13280/* Override any GCC internal prototype to avoid an error. 13281 Use char because int might match the return type of a GCC 13282 builtin and then its argument prototype would still apply. */ 13283#ifdef __cplusplus 13284extern "C" 13285#endif 13286char dbopen (); 13287int 13288main () 13289{ 13290return dbopen (); 13291 ; 13292 return 0; 13293} 13294_ACEOF 13295if ac_fn_c_try_link "$LINENO"; then : 13296 eval "$as_ac_Lib=yes" 13297else 13298 eval "$as_ac_Lib=no" 13299fi 13300rm -f core conftest.err conftest.$ac_objext \ 13301 conftest$ac_exeext conftest.$ac_ext 13302LIBS=$ac_check_lib_save_LIBS 13303fi 13304eval ac_res=\$$as_ac_Lib 13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13306$as_echo "$ac_res" >&6; } 13307if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 13308 result=yes 13309else 13310 result=no 13311 13312fi 13313 13314 elif test "2" = "2"; then 13315 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 13316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 13317$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 13318if eval \${$as_ac_Lib+:} false; then : 13319 $as_echo_n "(cached) " >&6 13320else 13321 ac_check_lib_save_LIBS=$LIBS 13322LIBS="-l$bdb_libname $LIBS" 13323cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13324/* end confdefs.h. */ 13325 13326/* Override any GCC internal prototype to avoid an error. 13327 Use char because int might match the return type of a GCC 13328 builtin and then its argument prototype would still apply. */ 13329#ifdef __cplusplus 13330extern "C" 13331#endif 13332char db_open (); 13333int 13334main () 13335{ 13336return db_open (); 13337 ; 13338 return 0; 13339} 13340_ACEOF 13341if ac_fn_c_try_link "$LINENO"; then : 13342 eval "$as_ac_Lib=yes" 13343else 13344 eval "$as_ac_Lib=no" 13345fi 13346rm -f core conftest.err conftest.$ac_objext \ 13347 conftest$ac_exeext conftest.$ac_ext 13348LIBS=$ac_check_lib_save_LIBS 13349fi 13350eval ac_res=\$$as_ac_Lib 13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13352$as_echo "$ac_res" >&6; } 13353if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 13354 result=yes 13355else 13356 result=no 13357 13358fi 13359 13360 fi 13361 13362else 13363 result="no" 13364fi 13365 13366 13367 13368 # If we found it, no need to search any more. 13369 if test "$result" = "yes"; then 13370 found="$bdb_place" 13371 break 13372 fi 13373 done 13374 test "$found" != "not" && break 13375 done 13376 test "$found" != "not" && break 13377 done 13378 13379 # Restore the original values of the flags we tweak. 13380 LDFLAGS="$apu_check_lib_save_ldflags" 13381 CPPFLAGS="$apu_check_lib_save_cppflags" 13382 13383 case "$found" in 13384 "not") 13385 apu_have_db=0 13386 ;; 13387 "std") 13388 apu_db_header=$bdb_header 13389 apu_db_lib=$bdb_libname 13390 apu_have_db=1 13391 ;; 13392 *":"*) 13393 header="`echo $found | sed -e 's/:.*$//'`" 13394 lib="`echo $found | sed -e 's/^.*://'`" 13395 13396 13397 if test "x$APRUTIL_INCLUDES" = "x"; then 13398 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 13399 APRUTIL_INCLUDES="-I$header" 13400 else 13401 apr_addto_bugger="-I$header" 13402 for i in $apr_addto_bugger; do 13403 apr_addto_duplicate="0" 13404 for j in $APRUTIL_INCLUDES; do 13405 if test "x$i" = "x$j"; then 13406 apr_addto_duplicate="1" 13407 break 13408 fi 13409 done 13410 if test $apr_addto_duplicate = "0"; then 13411 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 13412 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 13413 fi 13414 done 13415 fi 13416 13417 13418 if test "x$APRUTIL_LDFLAGS" = "x"; then 13419 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 13420 APRUTIL_LDFLAGS="-L$lib" 13421 else 13422 apr_addto_bugger="-L$lib" 13423 for i in $apr_addto_bugger; do 13424 apr_addto_duplicate="0" 13425 for j in $APRUTIL_LDFLAGS; do 13426 if test "x$i" = "x$j"; then 13427 apr_addto_duplicate="1" 13428 break 13429 fi 13430 done 13431 if test $apr_addto_duplicate = "0"; then 13432 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 13433 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 13434 fi 13435 done 13436 fi 13437 13438 apu_db_header=$bdb_header 13439 apu_db_lib=$bdb_libname 13440 apu_have_db=1 13441 ;; 13442 *) 13443 13444 if test "x$APRUTIL_INCLUDES" = "x"; then 13445 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 13446 APRUTIL_INCLUDES="-I$found/include" 13447 else 13448 apr_addto_bugger="-I$found/include" 13449 for i in $apr_addto_bugger; do 13450 apr_addto_duplicate="0" 13451 for j in $APRUTIL_INCLUDES; do 13452 if test "x$i" = "x$j"; then 13453 apr_addto_duplicate="1" 13454 break 13455 fi 13456 done 13457 if test $apr_addto_duplicate = "0"; then 13458 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 13459 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 13460 fi 13461 done 13462 fi 13463 13464 13465 if test "x$APRUTIL_LDFLAGS" = "x"; then 13466 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 13467 APRUTIL_LDFLAGS="-L$found/lib" 13468 else 13469 apr_addto_bugger="-L$found/lib" 13470 for i in $apr_addto_bugger; do 13471 apr_addto_duplicate="0" 13472 for j in $APRUTIL_LDFLAGS; do 13473 if test "x$i" = "x$j"; then 13474 apr_addto_duplicate="1" 13475 break 13476 fi 13477 done 13478 if test $apr_addto_duplicate = "0"; then 13479 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 13480 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 13481 fi 13482 done 13483 fi 13484 13485 apu_db_header=$bdb_header 13486 apu_db_lib=$bdb_libname 13487 apu_have_db=1 13488 ;; 13489 esac 13490 13491 if test "$apu_have_db" = "1"; then 13492 apu_db_version=2 13493 fi 13494 13495 fi 13496 if test "$apu_have_db" = "0"; then 13497 13498 places="$all_places" 13499 if test -z "$places"; then 13500 places="std" 13501 fi 13502 13503 bdb_version=1 13504 if test "0" != "-1"; then 13505 bdb_version="$bdb_version.0" 13506 if test "0" != "-1"; then 13507 bdb_version="$bdb_version.0" 13508 fi 13509 fi 13510 bdb_places="$places" 13511 bdb_default_search_headers="db1/db.h db.h" 13512 bdb_default_search_lib_names="db1" 13513 13514 13515 apu_have_db=0 13516 13517 # Save the original values of the flags we tweak. 13518 apu_check_lib_save_libs="$LIBS" 13519 apu_check_lib_save_ldflags="$LDFLAGS" 13520 apu_check_lib_save_cppflags="$CPPFLAGS" 13521 13522 # The variable `found' is the prefix under which we've found 13523 # Berkeley DB, or `not' if we haven't found it anywhere yet. 13524 found=not 13525 for bdb_place in $bdb_places; do 13526 13527 LDFLAGS="$apu_check_lib_save_ldflags" 13528 CPPFLAGS="$apu_check_lib_save_cppflags" 13529 case "$bdb_place" in 13530 "std" ) 13531 description="the standard places" 13532 ;; 13533 *":"* ) 13534 header="`echo $bdb_place | sed -e 's/:.*$//'`" 13535 lib="`echo $bdb_place | sed -e 's/^.*://'`" 13536 CPPFLAGS="$CPPFLAGS -I$header" 13537 LDFLAGS="$LDFLAGS -L$lib" 13538 description="$header and $lib" 13539 ;; 13540 * ) 13541 if test -d $bdb_place; then 13542 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 13543 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 13544 else 13545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 13546$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 13548$as_echo "directory not found" >&6; } 13549 continue 13550 fi 13551 description="$bdb_place" 13552 ;; 13553 esac 13554 13555 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 13556 # trick to display a message instead. 13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 13558$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 13560$as_echo "" >&6; } 13561 13562 for bdb_libname in $bdb_default_search_lib_names; do 13563 for bdb_header in $bdb_default_search_headers; do 13564 # Clear the header cache variable for each location 13565 13566 cache_id="`echo ac_cv_header_${bdb_header} \ 13567 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 13568 13569 unset $cache_id 13570 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 13571ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 13572if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13573 13574 if test "1" = "3" -o "1" = "4" -o "1" = "5" -o "1" = "6"; then 13575 # We generate a separate cache variable for each prefix and libname 13576 # we search under. That way, we avoid caching information that 13577 # changes if the user runs `configure' with a different set of 13578 # switches. 13579 13580 cache_id="`echo apu_cv_check_berkeley_db_1_0_0_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 13581 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 13582 13583 13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 13585$as_echo_n "checking for -l$bdb_libname... " >&6; } 13586 if eval \${$cache_id+:} false; then : 13587 $as_echo_n "(cached) " >&6 13588else 13589 13590 13591 apu_try_berkeley_db_save_libs="$LIBS" 13592 13593 apu_check_berkeley_db_major=1 13594 apu_check_berkeley_db_minor=0 13595 apu_check_berkeley_db_patch=0 13596 apu_try_berkeley_db_header=$bdb_header 13597 apu_try_berkeley_db_libname=$bdb_libname 13598 13599 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 13600 if test "$cross_compiling" = yes; then : 13601 apu_try_berkeley_db=yes 13602 13603else 13604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13605/* end confdefs.h. */ 13606 13607#include <stdlib.h> 13608#include <stdio.h> 13609#include <$apu_try_berkeley_db_header> 13610main () 13611{ 13612 int major, minor, patch; 13613 13614 db_version(&major, &minor, &patch); 13615 13616 /* Sanity check: ensure that db.h constants actually match the db library */ 13617 if (major != DB_VERSION_MAJOR 13618 || minor != DB_VERSION_MINOR 13619 || patch != DB_VERSION_PATCH) 13620 exit (1); 13621 13622 /* Run-time check: ensure the library claims to be the correct version. */ 13623 13624 if ($apu_check_berkeley_db_major != -1) { 13625 if (major < $apu_check_berkeley_db_major) 13626 exit (1); 13627 if (major > $apu_check_berkeley_db_major) 13628 exit (0); 13629 } 13630 13631 if ($apu_check_berkeley_db_minor != -1) { 13632 if (minor < $apu_check_berkeley_db_minor) 13633 exit (1); 13634 if (minor > $apu_check_berkeley_db_minor) 13635 exit (0); 13636 } 13637 13638 if ($apu_check_berkeley_db_patch == -1 13639 || patch >= $apu_check_berkeley_db_patch) 13640 exit (0); 13641 else 13642 exit (1); 13643} 13644 13645_ACEOF 13646if ac_fn_c_try_run "$LINENO"; then : 13647 apu_try_berkeley_db=yes 13648else 13649 apu_try_berkeley_db=no 13650fi 13651rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13652 conftest.$ac_objext conftest.beam conftest.$ac_ext 13653fi 13654 13655 13656 LIBS="$apu_try_berkeley_db_save_libs" 13657 13658 13659 eval "$cache_id=$apu_try_berkeley_db" 13660 13661fi 13662 13663 result="`eval echo '$'$cache_id`" 13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 13665$as_echo "$result" >&6; } 13666 elif test "1" = "1"; then 13667 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 13668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 13669$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 13670if eval \${$as_ac_Lib+:} false; then : 13671 $as_echo_n "(cached) " >&6 13672else 13673 ac_check_lib_save_LIBS=$LIBS 13674LIBS="-l$bdb_libname $LIBS" 13675cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13676/* end confdefs.h. */ 13677 13678/* Override any GCC internal prototype to avoid an error. 13679 Use char because int might match the return type of a GCC 13680 builtin and then its argument prototype would still apply. */ 13681#ifdef __cplusplus 13682extern "C" 13683#endif 13684char dbopen (); 13685int 13686main () 13687{ 13688return dbopen (); 13689 ; 13690 return 0; 13691} 13692_ACEOF 13693if ac_fn_c_try_link "$LINENO"; then : 13694 eval "$as_ac_Lib=yes" 13695else 13696 eval "$as_ac_Lib=no" 13697fi 13698rm -f core conftest.err conftest.$ac_objext \ 13699 conftest$ac_exeext conftest.$ac_ext 13700LIBS=$ac_check_lib_save_LIBS 13701fi 13702eval ac_res=\$$as_ac_Lib 13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13704$as_echo "$ac_res" >&6; } 13705if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 13706 result=yes 13707else 13708 result=no 13709 13710fi 13711 13712 elif test "1" = "2"; then 13713 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 13714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 13715$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 13716if eval \${$as_ac_Lib+:} false; then : 13717 $as_echo_n "(cached) " >&6 13718else 13719 ac_check_lib_save_LIBS=$LIBS 13720LIBS="-l$bdb_libname $LIBS" 13721cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13722/* end confdefs.h. */ 13723 13724/* Override any GCC internal prototype to avoid an error. 13725 Use char because int might match the return type of a GCC 13726 builtin and then its argument prototype would still apply. */ 13727#ifdef __cplusplus 13728extern "C" 13729#endif 13730char db_open (); 13731int 13732main () 13733{ 13734return db_open (); 13735 ; 13736 return 0; 13737} 13738_ACEOF 13739if ac_fn_c_try_link "$LINENO"; then : 13740 eval "$as_ac_Lib=yes" 13741else 13742 eval "$as_ac_Lib=no" 13743fi 13744rm -f core conftest.err conftest.$ac_objext \ 13745 conftest$ac_exeext conftest.$ac_ext 13746LIBS=$ac_check_lib_save_LIBS 13747fi 13748eval ac_res=\$$as_ac_Lib 13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13750$as_echo "$ac_res" >&6; } 13751if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 13752 result=yes 13753else 13754 result=no 13755 13756fi 13757 13758 fi 13759 13760else 13761 result="no" 13762fi 13763 13764 13765 13766 # If we found it, no need to search any more. 13767 if test "$result" = "yes"; then 13768 found="$bdb_place" 13769 break 13770 fi 13771 done 13772 test "$found" != "not" && break 13773 done 13774 test "$found" != "not" && break 13775 done 13776 13777 # Restore the original values of the flags we tweak. 13778 LDFLAGS="$apu_check_lib_save_ldflags" 13779 CPPFLAGS="$apu_check_lib_save_cppflags" 13780 13781 case "$found" in 13782 "not") 13783 apu_have_db=0 13784 ;; 13785 "std") 13786 apu_db_header=$bdb_header 13787 apu_db_lib=$bdb_libname 13788 apu_have_db=1 13789 ;; 13790 *":"*) 13791 header="`echo $found | sed -e 's/:.*$//'`" 13792 lib="`echo $found | sed -e 's/^.*://'`" 13793 13794 13795 if test "x$APRUTIL_INCLUDES" = "x"; then 13796 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 13797 APRUTIL_INCLUDES="-I$header" 13798 else 13799 apr_addto_bugger="-I$header" 13800 for i in $apr_addto_bugger; do 13801 apr_addto_duplicate="0" 13802 for j in $APRUTIL_INCLUDES; do 13803 if test "x$i" = "x$j"; then 13804 apr_addto_duplicate="1" 13805 break 13806 fi 13807 done 13808 if test $apr_addto_duplicate = "0"; then 13809 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 13810 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 13811 fi 13812 done 13813 fi 13814 13815 13816 if test "x$APRUTIL_LDFLAGS" = "x"; then 13817 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 13818 APRUTIL_LDFLAGS="-L$lib" 13819 else 13820 apr_addto_bugger="-L$lib" 13821 for i in $apr_addto_bugger; do 13822 apr_addto_duplicate="0" 13823 for j in $APRUTIL_LDFLAGS; do 13824 if test "x$i" = "x$j"; then 13825 apr_addto_duplicate="1" 13826 break 13827 fi 13828 done 13829 if test $apr_addto_duplicate = "0"; then 13830 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 13831 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 13832 fi 13833 done 13834 fi 13835 13836 apu_db_header=$bdb_header 13837 apu_db_lib=$bdb_libname 13838 apu_have_db=1 13839 ;; 13840 *) 13841 13842 if test "x$APRUTIL_INCLUDES" = "x"; then 13843 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 13844 APRUTIL_INCLUDES="-I$found/include" 13845 else 13846 apr_addto_bugger="-I$found/include" 13847 for i in $apr_addto_bugger; do 13848 apr_addto_duplicate="0" 13849 for j in $APRUTIL_INCLUDES; do 13850 if test "x$i" = "x$j"; then 13851 apr_addto_duplicate="1" 13852 break 13853 fi 13854 done 13855 if test $apr_addto_duplicate = "0"; then 13856 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 13857 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 13858 fi 13859 done 13860 fi 13861 13862 13863 if test "x$APRUTIL_LDFLAGS" = "x"; then 13864 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 13865 APRUTIL_LDFLAGS="-L$found/lib" 13866 else 13867 apr_addto_bugger="-L$found/lib" 13868 for i in $apr_addto_bugger; do 13869 apr_addto_duplicate="0" 13870 for j in $APRUTIL_LDFLAGS; do 13871 if test "x$i" = "x$j"; then 13872 apr_addto_duplicate="1" 13873 break 13874 fi 13875 done 13876 if test $apr_addto_duplicate = "0"; then 13877 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 13878 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 13879 fi 13880 done 13881 fi 13882 13883 apu_db_header=$bdb_header 13884 apu_db_lib=$bdb_libname 13885 apu_have_db=1 13886 ;; 13887 esac 13888 13889 if test "$apu_have_db" = "1"; then 13890 apu_db_version=1 13891 fi 13892 13893 fi 13894 if test "$apu_have_db" = "0"; then 13895 13896 places="$all_places" 13897 if test -z "$places"; then 13898 places="std" 13899 fi 13900 13901 bdb_version=1 13902 if test "-1" != "-1"; then 13903 bdb_version="$bdb_version.-1" 13904 if test "-1" != "-1"; then 13905 bdb_version="$bdb_version.-1" 13906 fi 13907 fi 13908 bdb_places="$places" 13909 bdb_default_search_headers="db_185.h" 13910 bdb_default_search_lib_names="db" 13911 13912 13913 apu_have_db=0 13914 13915 # Save the original values of the flags we tweak. 13916 apu_check_lib_save_libs="$LIBS" 13917 apu_check_lib_save_ldflags="$LDFLAGS" 13918 apu_check_lib_save_cppflags="$CPPFLAGS" 13919 13920 # The variable `found' is the prefix under which we've found 13921 # Berkeley DB, or `not' if we haven't found it anywhere yet. 13922 found=not 13923 for bdb_place in $bdb_places; do 13924 13925 LDFLAGS="$apu_check_lib_save_ldflags" 13926 CPPFLAGS="$apu_check_lib_save_cppflags" 13927 case "$bdb_place" in 13928 "std" ) 13929 description="the standard places" 13930 ;; 13931 *":"* ) 13932 header="`echo $bdb_place | sed -e 's/:.*$//'`" 13933 lib="`echo $bdb_place | sed -e 's/^.*://'`" 13934 CPPFLAGS="$CPPFLAGS -I$header" 13935 LDFLAGS="$LDFLAGS -L$lib" 13936 description="$header and $lib" 13937 ;; 13938 * ) 13939 if test -d $bdb_place; then 13940 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 13941 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 13942 else 13943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 13944$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 13946$as_echo "directory not found" >&6; } 13947 continue 13948 fi 13949 description="$bdb_place" 13950 ;; 13951 esac 13952 13953 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 13954 # trick to display a message instead. 13955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 13956$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 13958$as_echo "" >&6; } 13959 13960 for bdb_libname in $bdb_default_search_lib_names; do 13961 for bdb_header in $bdb_default_search_headers; do 13962 # Clear the header cache variable for each location 13963 13964 cache_id="`echo ac_cv_header_${bdb_header} \ 13965 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 13966 13967 unset $cache_id 13968 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 13969ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 13970if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13971 13972 if test "1" = "3" -o "1" = "4" -o "1" = "5" -o "1" = "6"; then 13973 # We generate a separate cache variable for each prefix and libname 13974 # we search under. That way, we avoid caching information that 13975 # changes if the user runs `configure' with a different set of 13976 # switches. 13977 13978 cache_id="`echo apu_cv_check_berkeley_db_1_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 13979 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 13980 13981 13982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 13983$as_echo_n "checking for -l$bdb_libname... " >&6; } 13984 if eval \${$cache_id+:} false; then : 13985 $as_echo_n "(cached) " >&6 13986else 13987 13988 13989 apu_try_berkeley_db_save_libs="$LIBS" 13990 13991 apu_check_berkeley_db_major=1 13992 apu_check_berkeley_db_minor=-1 13993 apu_check_berkeley_db_patch=-1 13994 apu_try_berkeley_db_header=$bdb_header 13995 apu_try_berkeley_db_libname=$bdb_libname 13996 13997 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 13998 if test "$cross_compiling" = yes; then : 13999 apu_try_berkeley_db=yes 14000 14001else 14002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14003/* end confdefs.h. */ 14004 14005#include <stdlib.h> 14006#include <stdio.h> 14007#include <$apu_try_berkeley_db_header> 14008main () 14009{ 14010 int major, minor, patch; 14011 14012 db_version(&major, &minor, &patch); 14013 14014 /* Sanity check: ensure that db.h constants actually match the db library */ 14015 if (major != DB_VERSION_MAJOR 14016 || minor != DB_VERSION_MINOR 14017 || patch != DB_VERSION_PATCH) 14018 exit (1); 14019 14020 /* Run-time check: ensure the library claims to be the correct version. */ 14021 14022 if ($apu_check_berkeley_db_major != -1) { 14023 if (major < $apu_check_berkeley_db_major) 14024 exit (1); 14025 if (major > $apu_check_berkeley_db_major) 14026 exit (0); 14027 } 14028 14029 if ($apu_check_berkeley_db_minor != -1) { 14030 if (minor < $apu_check_berkeley_db_minor) 14031 exit (1); 14032 if (minor > $apu_check_berkeley_db_minor) 14033 exit (0); 14034 } 14035 14036 if ($apu_check_berkeley_db_patch == -1 14037 || patch >= $apu_check_berkeley_db_patch) 14038 exit (0); 14039 else 14040 exit (1); 14041} 14042 14043_ACEOF 14044if ac_fn_c_try_run "$LINENO"; then : 14045 apu_try_berkeley_db=yes 14046else 14047 apu_try_berkeley_db=no 14048fi 14049rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14050 conftest.$ac_objext conftest.beam conftest.$ac_ext 14051fi 14052 14053 14054 LIBS="$apu_try_berkeley_db_save_libs" 14055 14056 14057 eval "$cache_id=$apu_try_berkeley_db" 14058 14059fi 14060 14061 result="`eval echo '$'$cache_id`" 14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 14063$as_echo "$result" >&6; } 14064 elif test "1" = "1"; then 14065 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 14066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 14067$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 14068if eval \${$as_ac_Lib+:} false; then : 14069 $as_echo_n "(cached) " >&6 14070else 14071 ac_check_lib_save_LIBS=$LIBS 14072LIBS="-l$bdb_libname $LIBS" 14073cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14074/* end confdefs.h. */ 14075 14076/* Override any GCC internal prototype to avoid an error. 14077 Use char because int might match the return type of a GCC 14078 builtin and then its argument prototype would still apply. */ 14079#ifdef __cplusplus 14080extern "C" 14081#endif 14082char dbopen (); 14083int 14084main () 14085{ 14086return dbopen (); 14087 ; 14088 return 0; 14089} 14090_ACEOF 14091if ac_fn_c_try_link "$LINENO"; then : 14092 eval "$as_ac_Lib=yes" 14093else 14094 eval "$as_ac_Lib=no" 14095fi 14096rm -f core conftest.err conftest.$ac_objext \ 14097 conftest$ac_exeext conftest.$ac_ext 14098LIBS=$ac_check_lib_save_LIBS 14099fi 14100eval ac_res=\$$as_ac_Lib 14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14102$as_echo "$ac_res" >&6; } 14103if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 14104 result=yes 14105else 14106 result=no 14107 14108fi 14109 14110 elif test "1" = "2"; then 14111 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 14112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 14113$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 14114if eval \${$as_ac_Lib+:} false; then : 14115 $as_echo_n "(cached) " >&6 14116else 14117 ac_check_lib_save_LIBS=$LIBS 14118LIBS="-l$bdb_libname $LIBS" 14119cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14120/* end confdefs.h. */ 14121 14122/* Override any GCC internal prototype to avoid an error. 14123 Use char because int might match the return type of a GCC 14124 builtin and then its argument prototype would still apply. */ 14125#ifdef __cplusplus 14126extern "C" 14127#endif 14128char db_open (); 14129int 14130main () 14131{ 14132return db_open (); 14133 ; 14134 return 0; 14135} 14136_ACEOF 14137if ac_fn_c_try_link "$LINENO"; then : 14138 eval "$as_ac_Lib=yes" 14139else 14140 eval "$as_ac_Lib=no" 14141fi 14142rm -f core conftest.err conftest.$ac_objext \ 14143 conftest$ac_exeext conftest.$ac_ext 14144LIBS=$ac_check_lib_save_LIBS 14145fi 14146eval ac_res=\$$as_ac_Lib 14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14148$as_echo "$ac_res" >&6; } 14149if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 14150 result=yes 14151else 14152 result=no 14153 14154fi 14155 14156 fi 14157 14158else 14159 result="no" 14160fi 14161 14162 14163 14164 # If we found it, no need to search any more. 14165 if test "$result" = "yes"; then 14166 found="$bdb_place" 14167 break 14168 fi 14169 done 14170 test "$found" != "not" && break 14171 done 14172 test "$found" != "not" && break 14173 done 14174 14175 # Restore the original values of the flags we tweak. 14176 LDFLAGS="$apu_check_lib_save_ldflags" 14177 CPPFLAGS="$apu_check_lib_save_cppflags" 14178 14179 case "$found" in 14180 "not") 14181 apu_have_db=0 14182 ;; 14183 "std") 14184 apu_db_header=$bdb_header 14185 apu_db_lib=$bdb_libname 14186 apu_have_db=1 14187 ;; 14188 *":"*) 14189 header="`echo $found | sed -e 's/:.*$//'`" 14190 lib="`echo $found | sed -e 's/^.*://'`" 14191 14192 14193 if test "x$APRUTIL_INCLUDES" = "x"; then 14194 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 14195 APRUTIL_INCLUDES="-I$header" 14196 else 14197 apr_addto_bugger="-I$header" 14198 for i in $apr_addto_bugger; do 14199 apr_addto_duplicate="0" 14200 for j in $APRUTIL_INCLUDES; do 14201 if test "x$i" = "x$j"; then 14202 apr_addto_duplicate="1" 14203 break 14204 fi 14205 done 14206 if test $apr_addto_duplicate = "0"; then 14207 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 14208 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 14209 fi 14210 done 14211 fi 14212 14213 14214 if test "x$APRUTIL_LDFLAGS" = "x"; then 14215 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 14216 APRUTIL_LDFLAGS="-L$lib" 14217 else 14218 apr_addto_bugger="-L$lib" 14219 for i in $apr_addto_bugger; do 14220 apr_addto_duplicate="0" 14221 for j in $APRUTIL_LDFLAGS; do 14222 if test "x$i" = "x$j"; then 14223 apr_addto_duplicate="1" 14224 break 14225 fi 14226 done 14227 if test $apr_addto_duplicate = "0"; then 14228 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 14229 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 14230 fi 14231 done 14232 fi 14233 14234 apu_db_header=$bdb_header 14235 apu_db_lib=$bdb_libname 14236 apu_have_db=1 14237 ;; 14238 *) 14239 14240 if test "x$APRUTIL_INCLUDES" = "x"; then 14241 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 14242 APRUTIL_INCLUDES="-I$found/include" 14243 else 14244 apr_addto_bugger="-I$found/include" 14245 for i in $apr_addto_bugger; do 14246 apr_addto_duplicate="0" 14247 for j in $APRUTIL_INCLUDES; do 14248 if test "x$i" = "x$j"; then 14249 apr_addto_duplicate="1" 14250 break 14251 fi 14252 done 14253 if test $apr_addto_duplicate = "0"; then 14254 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 14255 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 14256 fi 14257 done 14258 fi 14259 14260 14261 if test "x$APRUTIL_LDFLAGS" = "x"; then 14262 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 14263 APRUTIL_LDFLAGS="-L$found/lib" 14264 else 14265 apr_addto_bugger="-L$found/lib" 14266 for i in $apr_addto_bugger; do 14267 apr_addto_duplicate="0" 14268 for j in $APRUTIL_LDFLAGS; do 14269 if test "x$i" = "x$j"; then 14270 apr_addto_duplicate="1" 14271 break 14272 fi 14273 done 14274 if test $apr_addto_duplicate = "0"; then 14275 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 14276 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 14277 fi 14278 done 14279 fi 14280 14281 apu_db_header=$bdb_header 14282 apu_db_lib=$bdb_libname 14283 apu_have_db=1 14284 ;; 14285 esac 14286 14287 if test "$apu_have_db" = "1"; then 14288 apu_db_version=185 14289 fi 14290 14291 fi 14292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB" >&5 14293$as_echo_n "checking for Berkeley DB... " >&6; } 14294 if test "$apu_have_db" = "1"; then 14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found db$apu_db_version" >&5 14296$as_echo "found db$apu_db_version" >&6; } 14297 else 14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14299$as_echo "not found" >&6; } 14300 fi 14301 14302 if test "$apu_have_db" = "0"; then 14303 as_fn_error but not found "Berkeley db requested" "$LINENO" 5 14304 fi 14305 ;; 14306 db1) 14307 14308 places="$check_places" 14309 if test -z "$places"; then 14310 places="std" 14311 fi 14312 14313 bdb_version=1 14314 if test "0" != "-1"; then 14315 bdb_version="$bdb_version.0" 14316 if test "0" != "-1"; then 14317 bdb_version="$bdb_version.0" 14318 fi 14319 fi 14320 bdb_places="$places" 14321 bdb_default_search_headers="db1/db.h db.h" 14322 bdb_default_search_lib_names="db1" 14323 14324 14325 apu_have_db=0 14326 14327 # Save the original values of the flags we tweak. 14328 apu_check_lib_save_libs="$LIBS" 14329 apu_check_lib_save_ldflags="$LDFLAGS" 14330 apu_check_lib_save_cppflags="$CPPFLAGS" 14331 14332 # The variable `found' is the prefix under which we've found 14333 # Berkeley DB, or `not' if we haven't found it anywhere yet. 14334 found=not 14335 for bdb_place in $bdb_places; do 14336 14337 LDFLAGS="$apu_check_lib_save_ldflags" 14338 CPPFLAGS="$apu_check_lib_save_cppflags" 14339 case "$bdb_place" in 14340 "std" ) 14341 description="the standard places" 14342 ;; 14343 *":"* ) 14344 header="`echo $bdb_place | sed -e 's/:.*$//'`" 14345 lib="`echo $bdb_place | sed -e 's/^.*://'`" 14346 CPPFLAGS="$CPPFLAGS -I$header" 14347 LDFLAGS="$LDFLAGS -L$lib" 14348 description="$header and $lib" 14349 ;; 14350 * ) 14351 if test -d $bdb_place; then 14352 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 14353 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 14354 else 14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 14356$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 14358$as_echo "directory not found" >&6; } 14359 continue 14360 fi 14361 description="$bdb_place" 14362 ;; 14363 esac 14364 14365 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 14366 # trick to display a message instead. 14367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 14368$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 14370$as_echo "" >&6; } 14371 14372 for bdb_libname in $bdb_default_search_lib_names; do 14373 for bdb_header in $bdb_default_search_headers; do 14374 # Clear the header cache variable for each location 14375 14376 cache_id="`echo ac_cv_header_${bdb_header} \ 14377 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 14378 14379 unset $cache_id 14380 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 14381ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 14382if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14383 14384 if test "1" = "3" -o "1" = "4" -o "1" = "5" -o "1" = "6"; then 14385 # We generate a separate cache variable for each prefix and libname 14386 # we search under. That way, we avoid caching information that 14387 # changes if the user runs `configure' with a different set of 14388 # switches. 14389 14390 cache_id="`echo apu_cv_check_berkeley_db_1_0_0_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 14391 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 14392 14393 14394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 14395$as_echo_n "checking for -l$bdb_libname... " >&6; } 14396 if eval \${$cache_id+:} false; then : 14397 $as_echo_n "(cached) " >&6 14398else 14399 14400 14401 apu_try_berkeley_db_save_libs="$LIBS" 14402 14403 apu_check_berkeley_db_major=1 14404 apu_check_berkeley_db_minor=0 14405 apu_check_berkeley_db_patch=0 14406 apu_try_berkeley_db_header=$bdb_header 14407 apu_try_berkeley_db_libname=$bdb_libname 14408 14409 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 14410 if test "$cross_compiling" = yes; then : 14411 apu_try_berkeley_db=yes 14412 14413else 14414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14415/* end confdefs.h. */ 14416 14417#include <stdlib.h> 14418#include <stdio.h> 14419#include <$apu_try_berkeley_db_header> 14420main () 14421{ 14422 int major, minor, patch; 14423 14424 db_version(&major, &minor, &patch); 14425 14426 /* Sanity check: ensure that db.h constants actually match the db library */ 14427 if (major != DB_VERSION_MAJOR 14428 || minor != DB_VERSION_MINOR 14429 || patch != DB_VERSION_PATCH) 14430 exit (1); 14431 14432 /* Run-time check: ensure the library claims to be the correct version. */ 14433 14434 if ($apu_check_berkeley_db_major != -1) { 14435 if (major < $apu_check_berkeley_db_major) 14436 exit (1); 14437 if (major > $apu_check_berkeley_db_major) 14438 exit (0); 14439 } 14440 14441 if ($apu_check_berkeley_db_minor != -1) { 14442 if (minor < $apu_check_berkeley_db_minor) 14443 exit (1); 14444 if (minor > $apu_check_berkeley_db_minor) 14445 exit (0); 14446 } 14447 14448 if ($apu_check_berkeley_db_patch == -1 14449 || patch >= $apu_check_berkeley_db_patch) 14450 exit (0); 14451 else 14452 exit (1); 14453} 14454 14455_ACEOF 14456if ac_fn_c_try_run "$LINENO"; then : 14457 apu_try_berkeley_db=yes 14458else 14459 apu_try_berkeley_db=no 14460fi 14461rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14462 conftest.$ac_objext conftest.beam conftest.$ac_ext 14463fi 14464 14465 14466 LIBS="$apu_try_berkeley_db_save_libs" 14467 14468 14469 eval "$cache_id=$apu_try_berkeley_db" 14470 14471fi 14472 14473 result="`eval echo '$'$cache_id`" 14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 14475$as_echo "$result" >&6; } 14476 elif test "1" = "1"; then 14477 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 14478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 14479$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 14480if eval \${$as_ac_Lib+:} false; then : 14481 $as_echo_n "(cached) " >&6 14482else 14483 ac_check_lib_save_LIBS=$LIBS 14484LIBS="-l$bdb_libname $LIBS" 14485cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14486/* end confdefs.h. */ 14487 14488/* Override any GCC internal prototype to avoid an error. 14489 Use char because int might match the return type of a GCC 14490 builtin and then its argument prototype would still apply. */ 14491#ifdef __cplusplus 14492extern "C" 14493#endif 14494char dbopen (); 14495int 14496main () 14497{ 14498return dbopen (); 14499 ; 14500 return 0; 14501} 14502_ACEOF 14503if ac_fn_c_try_link "$LINENO"; then : 14504 eval "$as_ac_Lib=yes" 14505else 14506 eval "$as_ac_Lib=no" 14507fi 14508rm -f core conftest.err conftest.$ac_objext \ 14509 conftest$ac_exeext conftest.$ac_ext 14510LIBS=$ac_check_lib_save_LIBS 14511fi 14512eval ac_res=\$$as_ac_Lib 14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14514$as_echo "$ac_res" >&6; } 14515if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 14516 result=yes 14517else 14518 result=no 14519 14520fi 14521 14522 elif test "1" = "2"; then 14523 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 14524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 14525$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 14526if eval \${$as_ac_Lib+:} false; then : 14527 $as_echo_n "(cached) " >&6 14528else 14529 ac_check_lib_save_LIBS=$LIBS 14530LIBS="-l$bdb_libname $LIBS" 14531cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14532/* end confdefs.h. */ 14533 14534/* Override any GCC internal prototype to avoid an error. 14535 Use char because int might match the return type of a GCC 14536 builtin and then its argument prototype would still apply. */ 14537#ifdef __cplusplus 14538extern "C" 14539#endif 14540char db_open (); 14541int 14542main () 14543{ 14544return db_open (); 14545 ; 14546 return 0; 14547} 14548_ACEOF 14549if ac_fn_c_try_link "$LINENO"; then : 14550 eval "$as_ac_Lib=yes" 14551else 14552 eval "$as_ac_Lib=no" 14553fi 14554rm -f core conftest.err conftest.$ac_objext \ 14555 conftest$ac_exeext conftest.$ac_ext 14556LIBS=$ac_check_lib_save_LIBS 14557fi 14558eval ac_res=\$$as_ac_Lib 14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14560$as_echo "$ac_res" >&6; } 14561if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 14562 result=yes 14563else 14564 result=no 14565 14566fi 14567 14568 fi 14569 14570else 14571 result="no" 14572fi 14573 14574 14575 14576 # If we found it, no need to search any more. 14577 if test "$result" = "yes"; then 14578 found="$bdb_place" 14579 break 14580 fi 14581 done 14582 test "$found" != "not" && break 14583 done 14584 test "$found" != "not" && break 14585 done 14586 14587 # Restore the original values of the flags we tweak. 14588 LDFLAGS="$apu_check_lib_save_ldflags" 14589 CPPFLAGS="$apu_check_lib_save_cppflags" 14590 14591 case "$found" in 14592 "not") 14593 apu_have_db=0 14594 ;; 14595 "std") 14596 apu_db_header=$bdb_header 14597 apu_db_lib=$bdb_libname 14598 apu_have_db=1 14599 ;; 14600 *":"*) 14601 header="`echo $found | sed -e 's/:.*$//'`" 14602 lib="`echo $found | sed -e 's/^.*://'`" 14603 14604 14605 if test "x$APRUTIL_INCLUDES" = "x"; then 14606 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 14607 APRUTIL_INCLUDES="-I$header" 14608 else 14609 apr_addto_bugger="-I$header" 14610 for i in $apr_addto_bugger; do 14611 apr_addto_duplicate="0" 14612 for j in $APRUTIL_INCLUDES; do 14613 if test "x$i" = "x$j"; then 14614 apr_addto_duplicate="1" 14615 break 14616 fi 14617 done 14618 if test $apr_addto_duplicate = "0"; then 14619 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 14620 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 14621 fi 14622 done 14623 fi 14624 14625 14626 if test "x$APRUTIL_LDFLAGS" = "x"; then 14627 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 14628 APRUTIL_LDFLAGS="-L$lib" 14629 else 14630 apr_addto_bugger="-L$lib" 14631 for i in $apr_addto_bugger; do 14632 apr_addto_duplicate="0" 14633 for j in $APRUTIL_LDFLAGS; do 14634 if test "x$i" = "x$j"; then 14635 apr_addto_duplicate="1" 14636 break 14637 fi 14638 done 14639 if test $apr_addto_duplicate = "0"; then 14640 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 14641 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 14642 fi 14643 done 14644 fi 14645 14646 apu_db_header=$bdb_header 14647 apu_db_lib=$bdb_libname 14648 apu_have_db=1 14649 ;; 14650 *) 14651 14652 if test "x$APRUTIL_INCLUDES" = "x"; then 14653 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 14654 APRUTIL_INCLUDES="-I$found/include" 14655 else 14656 apr_addto_bugger="-I$found/include" 14657 for i in $apr_addto_bugger; do 14658 apr_addto_duplicate="0" 14659 for j in $APRUTIL_INCLUDES; do 14660 if test "x$i" = "x$j"; then 14661 apr_addto_duplicate="1" 14662 break 14663 fi 14664 done 14665 if test $apr_addto_duplicate = "0"; then 14666 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 14667 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 14668 fi 14669 done 14670 fi 14671 14672 14673 if test "x$APRUTIL_LDFLAGS" = "x"; then 14674 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 14675 APRUTIL_LDFLAGS="-L$found/lib" 14676 else 14677 apr_addto_bugger="-L$found/lib" 14678 for i in $apr_addto_bugger; do 14679 apr_addto_duplicate="0" 14680 for j in $APRUTIL_LDFLAGS; do 14681 if test "x$i" = "x$j"; then 14682 apr_addto_duplicate="1" 14683 break 14684 fi 14685 done 14686 if test $apr_addto_duplicate = "0"; then 14687 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 14688 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 14689 fi 14690 done 14691 fi 14692 14693 apu_db_header=$bdb_header 14694 apu_db_lib=$bdb_libname 14695 apu_have_db=1 14696 ;; 14697 esac 14698 14699 if test "$apu_have_db" = "1"; then 14700 apu_db_version=1 14701 fi 14702 14703 if test "$apu_db_version" != "1"; then 14704 as_fn_error $? "Berkeley db1 not found" "$LINENO" 5 14705 fi 14706 ;; 14707 db185) 14708 14709 places="$check_places" 14710 if test -z "$places"; then 14711 places="std" 14712 fi 14713 14714 bdb_version=1 14715 if test "-1" != "-1"; then 14716 bdb_version="$bdb_version.-1" 14717 if test "-1" != "-1"; then 14718 bdb_version="$bdb_version.-1" 14719 fi 14720 fi 14721 bdb_places="$places" 14722 bdb_default_search_headers="db_185.h" 14723 bdb_default_search_lib_names="db" 14724 14725 14726 apu_have_db=0 14727 14728 # Save the original values of the flags we tweak. 14729 apu_check_lib_save_libs="$LIBS" 14730 apu_check_lib_save_ldflags="$LDFLAGS" 14731 apu_check_lib_save_cppflags="$CPPFLAGS" 14732 14733 # The variable `found' is the prefix under which we've found 14734 # Berkeley DB, or `not' if we haven't found it anywhere yet. 14735 found=not 14736 for bdb_place in $bdb_places; do 14737 14738 LDFLAGS="$apu_check_lib_save_ldflags" 14739 CPPFLAGS="$apu_check_lib_save_cppflags" 14740 case "$bdb_place" in 14741 "std" ) 14742 description="the standard places" 14743 ;; 14744 *":"* ) 14745 header="`echo $bdb_place | sed -e 's/:.*$//'`" 14746 lib="`echo $bdb_place | sed -e 's/^.*://'`" 14747 CPPFLAGS="$CPPFLAGS -I$header" 14748 LDFLAGS="$LDFLAGS -L$lib" 14749 description="$header and $lib" 14750 ;; 14751 * ) 14752 if test -d $bdb_place; then 14753 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 14754 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 14755 else 14756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 14757$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 14759$as_echo "directory not found" >&6; } 14760 continue 14761 fi 14762 description="$bdb_place" 14763 ;; 14764 esac 14765 14766 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 14767 # trick to display a message instead. 14768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 14769$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 14771$as_echo "" >&6; } 14772 14773 for bdb_libname in $bdb_default_search_lib_names; do 14774 for bdb_header in $bdb_default_search_headers; do 14775 # Clear the header cache variable for each location 14776 14777 cache_id="`echo ac_cv_header_${bdb_header} \ 14778 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 14779 14780 unset $cache_id 14781 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 14782ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 14783if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14784 14785 if test "1" = "3" -o "1" = "4" -o "1" = "5" -o "1" = "6"; then 14786 # We generate a separate cache variable for each prefix and libname 14787 # we search under. That way, we avoid caching information that 14788 # changes if the user runs `configure' with a different set of 14789 # switches. 14790 14791 cache_id="`echo apu_cv_check_berkeley_db_1_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 14792 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 14793 14794 14795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 14796$as_echo_n "checking for -l$bdb_libname... " >&6; } 14797 if eval \${$cache_id+:} false; then : 14798 $as_echo_n "(cached) " >&6 14799else 14800 14801 14802 apu_try_berkeley_db_save_libs="$LIBS" 14803 14804 apu_check_berkeley_db_major=1 14805 apu_check_berkeley_db_minor=-1 14806 apu_check_berkeley_db_patch=-1 14807 apu_try_berkeley_db_header=$bdb_header 14808 apu_try_berkeley_db_libname=$bdb_libname 14809 14810 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 14811 if test "$cross_compiling" = yes; then : 14812 apu_try_berkeley_db=yes 14813 14814else 14815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14816/* end confdefs.h. */ 14817 14818#include <stdlib.h> 14819#include <stdio.h> 14820#include <$apu_try_berkeley_db_header> 14821main () 14822{ 14823 int major, minor, patch; 14824 14825 db_version(&major, &minor, &patch); 14826 14827 /* Sanity check: ensure that db.h constants actually match the db library */ 14828 if (major != DB_VERSION_MAJOR 14829 || minor != DB_VERSION_MINOR 14830 || patch != DB_VERSION_PATCH) 14831 exit (1); 14832 14833 /* Run-time check: ensure the library claims to be the correct version. */ 14834 14835 if ($apu_check_berkeley_db_major != -1) { 14836 if (major < $apu_check_berkeley_db_major) 14837 exit (1); 14838 if (major > $apu_check_berkeley_db_major) 14839 exit (0); 14840 } 14841 14842 if ($apu_check_berkeley_db_minor != -1) { 14843 if (minor < $apu_check_berkeley_db_minor) 14844 exit (1); 14845 if (minor > $apu_check_berkeley_db_minor) 14846 exit (0); 14847 } 14848 14849 if ($apu_check_berkeley_db_patch == -1 14850 || patch >= $apu_check_berkeley_db_patch) 14851 exit (0); 14852 else 14853 exit (1); 14854} 14855 14856_ACEOF 14857if ac_fn_c_try_run "$LINENO"; then : 14858 apu_try_berkeley_db=yes 14859else 14860 apu_try_berkeley_db=no 14861fi 14862rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14863 conftest.$ac_objext conftest.beam conftest.$ac_ext 14864fi 14865 14866 14867 LIBS="$apu_try_berkeley_db_save_libs" 14868 14869 14870 eval "$cache_id=$apu_try_berkeley_db" 14871 14872fi 14873 14874 result="`eval echo '$'$cache_id`" 14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 14876$as_echo "$result" >&6; } 14877 elif test "1" = "1"; then 14878 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 14879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 14880$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 14881if eval \${$as_ac_Lib+:} false; then : 14882 $as_echo_n "(cached) " >&6 14883else 14884 ac_check_lib_save_LIBS=$LIBS 14885LIBS="-l$bdb_libname $LIBS" 14886cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14887/* end confdefs.h. */ 14888 14889/* Override any GCC internal prototype to avoid an error. 14890 Use char because int might match the return type of a GCC 14891 builtin and then its argument prototype would still apply. */ 14892#ifdef __cplusplus 14893extern "C" 14894#endif 14895char dbopen (); 14896int 14897main () 14898{ 14899return dbopen (); 14900 ; 14901 return 0; 14902} 14903_ACEOF 14904if ac_fn_c_try_link "$LINENO"; then : 14905 eval "$as_ac_Lib=yes" 14906else 14907 eval "$as_ac_Lib=no" 14908fi 14909rm -f core conftest.err conftest.$ac_objext \ 14910 conftest$ac_exeext conftest.$ac_ext 14911LIBS=$ac_check_lib_save_LIBS 14912fi 14913eval ac_res=\$$as_ac_Lib 14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14915$as_echo "$ac_res" >&6; } 14916if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 14917 result=yes 14918else 14919 result=no 14920 14921fi 14922 14923 elif test "1" = "2"; then 14924 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 14925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 14926$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 14927if eval \${$as_ac_Lib+:} false; then : 14928 $as_echo_n "(cached) " >&6 14929else 14930 ac_check_lib_save_LIBS=$LIBS 14931LIBS="-l$bdb_libname $LIBS" 14932cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14933/* end confdefs.h. */ 14934 14935/* Override any GCC internal prototype to avoid an error. 14936 Use char because int might match the return type of a GCC 14937 builtin and then its argument prototype would still apply. */ 14938#ifdef __cplusplus 14939extern "C" 14940#endif 14941char db_open (); 14942int 14943main () 14944{ 14945return db_open (); 14946 ; 14947 return 0; 14948} 14949_ACEOF 14950if ac_fn_c_try_link "$LINENO"; then : 14951 eval "$as_ac_Lib=yes" 14952else 14953 eval "$as_ac_Lib=no" 14954fi 14955rm -f core conftest.err conftest.$ac_objext \ 14956 conftest$ac_exeext conftest.$ac_ext 14957LIBS=$ac_check_lib_save_LIBS 14958fi 14959eval ac_res=\$$as_ac_Lib 14960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14961$as_echo "$ac_res" >&6; } 14962if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 14963 result=yes 14964else 14965 result=no 14966 14967fi 14968 14969 fi 14970 14971else 14972 result="no" 14973fi 14974 14975 14976 14977 # If we found it, no need to search any more. 14978 if test "$result" = "yes"; then 14979 found="$bdb_place" 14980 break 14981 fi 14982 done 14983 test "$found" != "not" && break 14984 done 14985 test "$found" != "not" && break 14986 done 14987 14988 # Restore the original values of the flags we tweak. 14989 LDFLAGS="$apu_check_lib_save_ldflags" 14990 CPPFLAGS="$apu_check_lib_save_cppflags" 14991 14992 case "$found" in 14993 "not") 14994 apu_have_db=0 14995 ;; 14996 "std") 14997 apu_db_header=$bdb_header 14998 apu_db_lib=$bdb_libname 14999 apu_have_db=1 15000 ;; 15001 *":"*) 15002 header="`echo $found | sed -e 's/:.*$//'`" 15003 lib="`echo $found | sed -e 's/^.*://'`" 15004 15005 15006 if test "x$APRUTIL_INCLUDES" = "x"; then 15007 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 15008 APRUTIL_INCLUDES="-I$header" 15009 else 15010 apr_addto_bugger="-I$header" 15011 for i in $apr_addto_bugger; do 15012 apr_addto_duplicate="0" 15013 for j in $APRUTIL_INCLUDES; do 15014 if test "x$i" = "x$j"; then 15015 apr_addto_duplicate="1" 15016 break 15017 fi 15018 done 15019 if test $apr_addto_duplicate = "0"; then 15020 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 15021 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 15022 fi 15023 done 15024 fi 15025 15026 15027 if test "x$APRUTIL_LDFLAGS" = "x"; then 15028 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 15029 APRUTIL_LDFLAGS="-L$lib" 15030 else 15031 apr_addto_bugger="-L$lib" 15032 for i in $apr_addto_bugger; do 15033 apr_addto_duplicate="0" 15034 for j in $APRUTIL_LDFLAGS; do 15035 if test "x$i" = "x$j"; then 15036 apr_addto_duplicate="1" 15037 break 15038 fi 15039 done 15040 if test $apr_addto_duplicate = "0"; then 15041 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 15042 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 15043 fi 15044 done 15045 fi 15046 15047 apu_db_header=$bdb_header 15048 apu_db_lib=$bdb_libname 15049 apu_have_db=1 15050 ;; 15051 *) 15052 15053 if test "x$APRUTIL_INCLUDES" = "x"; then 15054 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 15055 APRUTIL_INCLUDES="-I$found/include" 15056 else 15057 apr_addto_bugger="-I$found/include" 15058 for i in $apr_addto_bugger; do 15059 apr_addto_duplicate="0" 15060 for j in $APRUTIL_INCLUDES; do 15061 if test "x$i" = "x$j"; then 15062 apr_addto_duplicate="1" 15063 break 15064 fi 15065 done 15066 if test $apr_addto_duplicate = "0"; then 15067 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 15068 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 15069 fi 15070 done 15071 fi 15072 15073 15074 if test "x$APRUTIL_LDFLAGS" = "x"; then 15075 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 15076 APRUTIL_LDFLAGS="-L$found/lib" 15077 else 15078 apr_addto_bugger="-L$found/lib" 15079 for i in $apr_addto_bugger; do 15080 apr_addto_duplicate="0" 15081 for j in $APRUTIL_LDFLAGS; do 15082 if test "x$i" = "x$j"; then 15083 apr_addto_duplicate="1" 15084 break 15085 fi 15086 done 15087 if test $apr_addto_duplicate = "0"; then 15088 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 15089 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 15090 fi 15091 done 15092 fi 15093 15094 apu_db_header=$bdb_header 15095 apu_db_lib=$bdb_libname 15096 apu_have_db=1 15097 ;; 15098 esac 15099 15100 if test "$apu_have_db" = "1"; then 15101 apu_db_version=185 15102 fi 15103 15104 if test "$apu_db_version" != "185"; then 15105 as_fn_error $? "Berkeley db185 not found" "$LINENO" 5 15106 fi 15107 ;; 15108 db2) 15109 15110 places="$check_places" 15111 if test -z "$places"; then 15112 places="std" 15113 fi 15114 15115 bdb_version=2 15116 if test "-1" != "-1"; then 15117 bdb_version="$bdb_version.-1" 15118 if test "-1" != "-1"; then 15119 bdb_version="$bdb_version.-1" 15120 fi 15121 fi 15122 bdb_places="$places" 15123 bdb_default_search_headers="db2/db.h db.h" 15124 bdb_default_search_lib_names="db2 db" 15125 15126 15127 apu_have_db=0 15128 15129 # Save the original values of the flags we tweak. 15130 apu_check_lib_save_libs="$LIBS" 15131 apu_check_lib_save_ldflags="$LDFLAGS" 15132 apu_check_lib_save_cppflags="$CPPFLAGS" 15133 15134 # The variable `found' is the prefix under which we've found 15135 # Berkeley DB, or `not' if we haven't found it anywhere yet. 15136 found=not 15137 for bdb_place in $bdb_places; do 15138 15139 LDFLAGS="$apu_check_lib_save_ldflags" 15140 CPPFLAGS="$apu_check_lib_save_cppflags" 15141 case "$bdb_place" in 15142 "std" ) 15143 description="the standard places" 15144 ;; 15145 *":"* ) 15146 header="`echo $bdb_place | sed -e 's/:.*$//'`" 15147 lib="`echo $bdb_place | sed -e 's/^.*://'`" 15148 CPPFLAGS="$CPPFLAGS -I$header" 15149 LDFLAGS="$LDFLAGS -L$lib" 15150 description="$header and $lib" 15151 ;; 15152 * ) 15153 if test -d $bdb_place; then 15154 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 15155 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 15156 else 15157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 15158$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 15159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 15160$as_echo "directory not found" >&6; } 15161 continue 15162 fi 15163 description="$bdb_place" 15164 ;; 15165 esac 15166 15167 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 15168 # trick to display a message instead. 15169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 15170$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 15172$as_echo "" >&6; } 15173 15174 for bdb_libname in $bdb_default_search_lib_names; do 15175 for bdb_header in $bdb_default_search_headers; do 15176 # Clear the header cache variable for each location 15177 15178 cache_id="`echo ac_cv_header_${bdb_header} \ 15179 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 15180 15181 unset $cache_id 15182 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 15183ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 15184if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15185 15186 if test "2" = "3" -o "2" = "4" -o "2" = "5" -o "2" = "6"; then 15187 # We generate a separate cache variable for each prefix and libname 15188 # we search under. That way, we avoid caching information that 15189 # changes if the user runs `configure' with a different set of 15190 # switches. 15191 15192 cache_id="`echo apu_cv_check_berkeley_db_2_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 15193 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 15194 15195 15196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 15197$as_echo_n "checking for -l$bdb_libname... " >&6; } 15198 if eval \${$cache_id+:} false; then : 15199 $as_echo_n "(cached) " >&6 15200else 15201 15202 15203 apu_try_berkeley_db_save_libs="$LIBS" 15204 15205 apu_check_berkeley_db_major=2 15206 apu_check_berkeley_db_minor=-1 15207 apu_check_berkeley_db_patch=-1 15208 apu_try_berkeley_db_header=$bdb_header 15209 apu_try_berkeley_db_libname=$bdb_libname 15210 15211 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 15212 if test "$cross_compiling" = yes; then : 15213 apu_try_berkeley_db=yes 15214 15215else 15216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15217/* end confdefs.h. */ 15218 15219#include <stdlib.h> 15220#include <stdio.h> 15221#include <$apu_try_berkeley_db_header> 15222main () 15223{ 15224 int major, minor, patch; 15225 15226 db_version(&major, &minor, &patch); 15227 15228 /* Sanity check: ensure that db.h constants actually match the db library */ 15229 if (major != DB_VERSION_MAJOR 15230 || minor != DB_VERSION_MINOR 15231 || patch != DB_VERSION_PATCH) 15232 exit (1); 15233 15234 /* Run-time check: ensure the library claims to be the correct version. */ 15235 15236 if ($apu_check_berkeley_db_major != -1) { 15237 if (major < $apu_check_berkeley_db_major) 15238 exit (1); 15239 if (major > $apu_check_berkeley_db_major) 15240 exit (0); 15241 } 15242 15243 if ($apu_check_berkeley_db_minor != -1) { 15244 if (minor < $apu_check_berkeley_db_minor) 15245 exit (1); 15246 if (minor > $apu_check_berkeley_db_minor) 15247 exit (0); 15248 } 15249 15250 if ($apu_check_berkeley_db_patch == -1 15251 || patch >= $apu_check_berkeley_db_patch) 15252 exit (0); 15253 else 15254 exit (1); 15255} 15256 15257_ACEOF 15258if ac_fn_c_try_run "$LINENO"; then : 15259 apu_try_berkeley_db=yes 15260else 15261 apu_try_berkeley_db=no 15262fi 15263rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15264 conftest.$ac_objext conftest.beam conftest.$ac_ext 15265fi 15266 15267 15268 LIBS="$apu_try_berkeley_db_save_libs" 15269 15270 15271 eval "$cache_id=$apu_try_berkeley_db" 15272 15273fi 15274 15275 result="`eval echo '$'$cache_id`" 15276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 15277$as_echo "$result" >&6; } 15278 elif test "2" = "1"; then 15279 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 15280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 15281$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 15282if eval \${$as_ac_Lib+:} false; then : 15283 $as_echo_n "(cached) " >&6 15284else 15285 ac_check_lib_save_LIBS=$LIBS 15286LIBS="-l$bdb_libname $LIBS" 15287cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15288/* end confdefs.h. */ 15289 15290/* Override any GCC internal prototype to avoid an error. 15291 Use char because int might match the return type of a GCC 15292 builtin and then its argument prototype would still apply. */ 15293#ifdef __cplusplus 15294extern "C" 15295#endif 15296char dbopen (); 15297int 15298main () 15299{ 15300return dbopen (); 15301 ; 15302 return 0; 15303} 15304_ACEOF 15305if ac_fn_c_try_link "$LINENO"; then : 15306 eval "$as_ac_Lib=yes" 15307else 15308 eval "$as_ac_Lib=no" 15309fi 15310rm -f core conftest.err conftest.$ac_objext \ 15311 conftest$ac_exeext conftest.$ac_ext 15312LIBS=$ac_check_lib_save_LIBS 15313fi 15314eval ac_res=\$$as_ac_Lib 15315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15316$as_echo "$ac_res" >&6; } 15317if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 15318 result=yes 15319else 15320 result=no 15321 15322fi 15323 15324 elif test "2" = "2"; then 15325 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 15326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 15327$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 15328if eval \${$as_ac_Lib+:} false; then : 15329 $as_echo_n "(cached) " >&6 15330else 15331 ac_check_lib_save_LIBS=$LIBS 15332LIBS="-l$bdb_libname $LIBS" 15333cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15334/* end confdefs.h. */ 15335 15336/* Override any GCC internal prototype to avoid an error. 15337 Use char because int might match the return type of a GCC 15338 builtin and then its argument prototype would still apply. */ 15339#ifdef __cplusplus 15340extern "C" 15341#endif 15342char db_open (); 15343int 15344main () 15345{ 15346return db_open (); 15347 ; 15348 return 0; 15349} 15350_ACEOF 15351if ac_fn_c_try_link "$LINENO"; then : 15352 eval "$as_ac_Lib=yes" 15353else 15354 eval "$as_ac_Lib=no" 15355fi 15356rm -f core conftest.err conftest.$ac_objext \ 15357 conftest$ac_exeext conftest.$ac_ext 15358LIBS=$ac_check_lib_save_LIBS 15359fi 15360eval ac_res=\$$as_ac_Lib 15361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15362$as_echo "$ac_res" >&6; } 15363if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 15364 result=yes 15365else 15366 result=no 15367 15368fi 15369 15370 fi 15371 15372else 15373 result="no" 15374fi 15375 15376 15377 15378 # If we found it, no need to search any more. 15379 if test "$result" = "yes"; then 15380 found="$bdb_place" 15381 break 15382 fi 15383 done 15384 test "$found" != "not" && break 15385 done 15386 test "$found" != "not" && break 15387 done 15388 15389 # Restore the original values of the flags we tweak. 15390 LDFLAGS="$apu_check_lib_save_ldflags" 15391 CPPFLAGS="$apu_check_lib_save_cppflags" 15392 15393 case "$found" in 15394 "not") 15395 apu_have_db=0 15396 ;; 15397 "std") 15398 apu_db_header=$bdb_header 15399 apu_db_lib=$bdb_libname 15400 apu_have_db=1 15401 ;; 15402 *":"*) 15403 header="`echo $found | sed -e 's/:.*$//'`" 15404 lib="`echo $found | sed -e 's/^.*://'`" 15405 15406 15407 if test "x$APRUTIL_INCLUDES" = "x"; then 15408 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 15409 APRUTIL_INCLUDES="-I$header" 15410 else 15411 apr_addto_bugger="-I$header" 15412 for i in $apr_addto_bugger; do 15413 apr_addto_duplicate="0" 15414 for j in $APRUTIL_INCLUDES; do 15415 if test "x$i" = "x$j"; then 15416 apr_addto_duplicate="1" 15417 break 15418 fi 15419 done 15420 if test $apr_addto_duplicate = "0"; then 15421 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 15422 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 15423 fi 15424 done 15425 fi 15426 15427 15428 if test "x$APRUTIL_LDFLAGS" = "x"; then 15429 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 15430 APRUTIL_LDFLAGS="-L$lib" 15431 else 15432 apr_addto_bugger="-L$lib" 15433 for i in $apr_addto_bugger; do 15434 apr_addto_duplicate="0" 15435 for j in $APRUTIL_LDFLAGS; do 15436 if test "x$i" = "x$j"; then 15437 apr_addto_duplicate="1" 15438 break 15439 fi 15440 done 15441 if test $apr_addto_duplicate = "0"; then 15442 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 15443 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 15444 fi 15445 done 15446 fi 15447 15448 apu_db_header=$bdb_header 15449 apu_db_lib=$bdb_libname 15450 apu_have_db=1 15451 ;; 15452 *) 15453 15454 if test "x$APRUTIL_INCLUDES" = "x"; then 15455 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 15456 APRUTIL_INCLUDES="-I$found/include" 15457 else 15458 apr_addto_bugger="-I$found/include" 15459 for i in $apr_addto_bugger; do 15460 apr_addto_duplicate="0" 15461 for j in $APRUTIL_INCLUDES; do 15462 if test "x$i" = "x$j"; then 15463 apr_addto_duplicate="1" 15464 break 15465 fi 15466 done 15467 if test $apr_addto_duplicate = "0"; then 15468 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 15469 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 15470 fi 15471 done 15472 fi 15473 15474 15475 if test "x$APRUTIL_LDFLAGS" = "x"; then 15476 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 15477 APRUTIL_LDFLAGS="-L$found/lib" 15478 else 15479 apr_addto_bugger="-L$found/lib" 15480 for i in $apr_addto_bugger; do 15481 apr_addto_duplicate="0" 15482 for j in $APRUTIL_LDFLAGS; do 15483 if test "x$i" = "x$j"; then 15484 apr_addto_duplicate="1" 15485 break 15486 fi 15487 done 15488 if test $apr_addto_duplicate = "0"; then 15489 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 15490 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 15491 fi 15492 done 15493 fi 15494 15495 apu_db_header=$bdb_header 15496 apu_db_lib=$bdb_libname 15497 apu_have_db=1 15498 ;; 15499 esac 15500 15501 if test "$apu_have_db" = "1"; then 15502 apu_db_version=2 15503 fi 15504 15505 if test "$apu_db_version" != "2"; then 15506 as_fn_error $? "Berkeley db2 not found" "$LINENO" 5 15507 fi 15508 ;; 15509 db3) 15510 15511 places="$check_places" 15512 if test -z "$places"; then 15513 places="std" 15514 fi 15515 15516 bdb_version=3 15517 if test "-1" != "-1"; then 15518 bdb_version="$bdb_version.-1" 15519 if test "-1" != "-1"; then 15520 bdb_version="$bdb_version.-1" 15521 fi 15522 fi 15523 bdb_places="$places" 15524 bdb_default_search_headers="db3/db.h db.h" 15525 bdb_default_search_lib_names="db3 db" 15526 15527 15528 apu_have_db=0 15529 15530 # Save the original values of the flags we tweak. 15531 apu_check_lib_save_libs="$LIBS" 15532 apu_check_lib_save_ldflags="$LDFLAGS" 15533 apu_check_lib_save_cppflags="$CPPFLAGS" 15534 15535 # The variable `found' is the prefix under which we've found 15536 # Berkeley DB, or `not' if we haven't found it anywhere yet. 15537 found=not 15538 for bdb_place in $bdb_places; do 15539 15540 LDFLAGS="$apu_check_lib_save_ldflags" 15541 CPPFLAGS="$apu_check_lib_save_cppflags" 15542 case "$bdb_place" in 15543 "std" ) 15544 description="the standard places" 15545 ;; 15546 *":"* ) 15547 header="`echo $bdb_place | sed -e 's/:.*$//'`" 15548 lib="`echo $bdb_place | sed -e 's/^.*://'`" 15549 CPPFLAGS="$CPPFLAGS -I$header" 15550 LDFLAGS="$LDFLAGS -L$lib" 15551 description="$header and $lib" 15552 ;; 15553 * ) 15554 if test -d $bdb_place; then 15555 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 15556 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 15557 else 15558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 15559$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 15560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 15561$as_echo "directory not found" >&6; } 15562 continue 15563 fi 15564 description="$bdb_place" 15565 ;; 15566 esac 15567 15568 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 15569 # trick to display a message instead. 15570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 15571$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 15572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 15573$as_echo "" >&6; } 15574 15575 for bdb_libname in $bdb_default_search_lib_names; do 15576 for bdb_header in $bdb_default_search_headers; do 15577 # Clear the header cache variable for each location 15578 15579 cache_id="`echo ac_cv_header_${bdb_header} \ 15580 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 15581 15582 unset $cache_id 15583 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 15584ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 15585if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15586 15587 if test "3" = "3" -o "3" = "4" -o "3" = "5" -o "3" = "6"; then 15588 # We generate a separate cache variable for each prefix and libname 15589 # we search under. That way, we avoid caching information that 15590 # changes if the user runs `configure' with a different set of 15591 # switches. 15592 15593 cache_id="`echo apu_cv_check_berkeley_db_3_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 15594 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 15595 15596 15597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 15598$as_echo_n "checking for -l$bdb_libname... " >&6; } 15599 if eval \${$cache_id+:} false; then : 15600 $as_echo_n "(cached) " >&6 15601else 15602 15603 15604 apu_try_berkeley_db_save_libs="$LIBS" 15605 15606 apu_check_berkeley_db_major=3 15607 apu_check_berkeley_db_minor=-1 15608 apu_check_berkeley_db_patch=-1 15609 apu_try_berkeley_db_header=$bdb_header 15610 apu_try_berkeley_db_libname=$bdb_libname 15611 15612 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 15613 if test "$cross_compiling" = yes; then : 15614 apu_try_berkeley_db=yes 15615 15616else 15617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15618/* end confdefs.h. */ 15619 15620#include <stdlib.h> 15621#include <stdio.h> 15622#include <$apu_try_berkeley_db_header> 15623main () 15624{ 15625 int major, minor, patch; 15626 15627 db_version(&major, &minor, &patch); 15628 15629 /* Sanity check: ensure that db.h constants actually match the db library */ 15630 if (major != DB_VERSION_MAJOR 15631 || minor != DB_VERSION_MINOR 15632 || patch != DB_VERSION_PATCH) 15633 exit (1); 15634 15635 /* Run-time check: ensure the library claims to be the correct version. */ 15636 15637 if ($apu_check_berkeley_db_major != -1) { 15638 if (major < $apu_check_berkeley_db_major) 15639 exit (1); 15640 if (major > $apu_check_berkeley_db_major) 15641 exit (0); 15642 } 15643 15644 if ($apu_check_berkeley_db_minor != -1) { 15645 if (minor < $apu_check_berkeley_db_minor) 15646 exit (1); 15647 if (minor > $apu_check_berkeley_db_minor) 15648 exit (0); 15649 } 15650 15651 if ($apu_check_berkeley_db_patch == -1 15652 || patch >= $apu_check_berkeley_db_patch) 15653 exit (0); 15654 else 15655 exit (1); 15656} 15657 15658_ACEOF 15659if ac_fn_c_try_run "$LINENO"; then : 15660 apu_try_berkeley_db=yes 15661else 15662 apu_try_berkeley_db=no 15663fi 15664rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15665 conftest.$ac_objext conftest.beam conftest.$ac_ext 15666fi 15667 15668 15669 LIBS="$apu_try_berkeley_db_save_libs" 15670 15671 15672 eval "$cache_id=$apu_try_berkeley_db" 15673 15674fi 15675 15676 result="`eval echo '$'$cache_id`" 15677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 15678$as_echo "$result" >&6; } 15679 elif test "3" = "1"; then 15680 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 15681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 15682$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 15683if eval \${$as_ac_Lib+:} false; then : 15684 $as_echo_n "(cached) " >&6 15685else 15686 ac_check_lib_save_LIBS=$LIBS 15687LIBS="-l$bdb_libname $LIBS" 15688cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15689/* end confdefs.h. */ 15690 15691/* Override any GCC internal prototype to avoid an error. 15692 Use char because int might match the return type of a GCC 15693 builtin and then its argument prototype would still apply. */ 15694#ifdef __cplusplus 15695extern "C" 15696#endif 15697char dbopen (); 15698int 15699main () 15700{ 15701return dbopen (); 15702 ; 15703 return 0; 15704} 15705_ACEOF 15706if ac_fn_c_try_link "$LINENO"; then : 15707 eval "$as_ac_Lib=yes" 15708else 15709 eval "$as_ac_Lib=no" 15710fi 15711rm -f core conftest.err conftest.$ac_objext \ 15712 conftest$ac_exeext conftest.$ac_ext 15713LIBS=$ac_check_lib_save_LIBS 15714fi 15715eval ac_res=\$$as_ac_Lib 15716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15717$as_echo "$ac_res" >&6; } 15718if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 15719 result=yes 15720else 15721 result=no 15722 15723fi 15724 15725 elif test "3" = "2"; then 15726 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 15727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 15728$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 15729if eval \${$as_ac_Lib+:} false; then : 15730 $as_echo_n "(cached) " >&6 15731else 15732 ac_check_lib_save_LIBS=$LIBS 15733LIBS="-l$bdb_libname $LIBS" 15734cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15735/* end confdefs.h. */ 15736 15737/* Override any GCC internal prototype to avoid an error. 15738 Use char because int might match the return type of a GCC 15739 builtin and then its argument prototype would still apply. */ 15740#ifdef __cplusplus 15741extern "C" 15742#endif 15743char db_open (); 15744int 15745main () 15746{ 15747return db_open (); 15748 ; 15749 return 0; 15750} 15751_ACEOF 15752if ac_fn_c_try_link "$LINENO"; then : 15753 eval "$as_ac_Lib=yes" 15754else 15755 eval "$as_ac_Lib=no" 15756fi 15757rm -f core conftest.err conftest.$ac_objext \ 15758 conftest$ac_exeext conftest.$ac_ext 15759LIBS=$ac_check_lib_save_LIBS 15760fi 15761eval ac_res=\$$as_ac_Lib 15762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15763$as_echo "$ac_res" >&6; } 15764if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 15765 result=yes 15766else 15767 result=no 15768 15769fi 15770 15771 fi 15772 15773else 15774 result="no" 15775fi 15776 15777 15778 15779 # If we found it, no need to search any more. 15780 if test "$result" = "yes"; then 15781 found="$bdb_place" 15782 break 15783 fi 15784 done 15785 test "$found" != "not" && break 15786 done 15787 test "$found" != "not" && break 15788 done 15789 15790 # Restore the original values of the flags we tweak. 15791 LDFLAGS="$apu_check_lib_save_ldflags" 15792 CPPFLAGS="$apu_check_lib_save_cppflags" 15793 15794 case "$found" in 15795 "not") 15796 apu_have_db=0 15797 ;; 15798 "std") 15799 apu_db_header=$bdb_header 15800 apu_db_lib=$bdb_libname 15801 apu_have_db=1 15802 ;; 15803 *":"*) 15804 header="`echo $found | sed -e 's/:.*$//'`" 15805 lib="`echo $found | sed -e 's/^.*://'`" 15806 15807 15808 if test "x$APRUTIL_INCLUDES" = "x"; then 15809 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 15810 APRUTIL_INCLUDES="-I$header" 15811 else 15812 apr_addto_bugger="-I$header" 15813 for i in $apr_addto_bugger; do 15814 apr_addto_duplicate="0" 15815 for j in $APRUTIL_INCLUDES; do 15816 if test "x$i" = "x$j"; then 15817 apr_addto_duplicate="1" 15818 break 15819 fi 15820 done 15821 if test $apr_addto_duplicate = "0"; then 15822 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 15823 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 15824 fi 15825 done 15826 fi 15827 15828 15829 if test "x$APRUTIL_LDFLAGS" = "x"; then 15830 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 15831 APRUTIL_LDFLAGS="-L$lib" 15832 else 15833 apr_addto_bugger="-L$lib" 15834 for i in $apr_addto_bugger; do 15835 apr_addto_duplicate="0" 15836 for j in $APRUTIL_LDFLAGS; do 15837 if test "x$i" = "x$j"; then 15838 apr_addto_duplicate="1" 15839 break 15840 fi 15841 done 15842 if test $apr_addto_duplicate = "0"; then 15843 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 15844 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 15845 fi 15846 done 15847 fi 15848 15849 apu_db_header=$bdb_header 15850 apu_db_lib=$bdb_libname 15851 apu_have_db=1 15852 ;; 15853 *) 15854 15855 if test "x$APRUTIL_INCLUDES" = "x"; then 15856 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 15857 APRUTIL_INCLUDES="-I$found/include" 15858 else 15859 apr_addto_bugger="-I$found/include" 15860 for i in $apr_addto_bugger; do 15861 apr_addto_duplicate="0" 15862 for j in $APRUTIL_INCLUDES; do 15863 if test "x$i" = "x$j"; then 15864 apr_addto_duplicate="1" 15865 break 15866 fi 15867 done 15868 if test $apr_addto_duplicate = "0"; then 15869 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 15870 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 15871 fi 15872 done 15873 fi 15874 15875 15876 if test "x$APRUTIL_LDFLAGS" = "x"; then 15877 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 15878 APRUTIL_LDFLAGS="-L$found/lib" 15879 else 15880 apr_addto_bugger="-L$found/lib" 15881 for i in $apr_addto_bugger; do 15882 apr_addto_duplicate="0" 15883 for j in $APRUTIL_LDFLAGS; do 15884 if test "x$i" = "x$j"; then 15885 apr_addto_duplicate="1" 15886 break 15887 fi 15888 done 15889 if test $apr_addto_duplicate = "0"; then 15890 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 15891 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 15892 fi 15893 done 15894 fi 15895 15896 apu_db_header=$bdb_header 15897 apu_db_lib=$bdb_libname 15898 apu_have_db=1 15899 ;; 15900 esac 15901 15902 if test "$apu_have_db" = "1"; then 15903 apu_db_version=3 15904 fi 15905 15906 if test "$apu_db_version" != "3"; then 15907 as_fn_error $? "Berkeley db3 not found" "$LINENO" 5 15908 fi 15909 ;; 15910 db[456][0-9]) 15911 db_major=`echo "$requested" | sed -e 's/db//' -e 's/.$//'` 15912 db_minor=`echo "$requested" | sed -e 's/db//' -e 's/.//'` 15913 15914 places="$check_places" 15915 db_major="$db_major" 15916 db_minor="$db_minor" 15917 if test -z "$places"; then 15918 places="std /usr/local /usr/local/BerkeleyDB.${db_major}.${db_minor} /boot/home/config" 15919 fi 15920 15921 bdb_version="${db_major}" 15922 if test ""${db_minor}"" != "-1"; then 15923 bdb_version="$bdb_version."${db_minor}"" 15924 if test ""-1"" != "-1"; then 15925 bdb_version="$bdb_version."-1"" 15926 fi 15927 fi 15928 bdb_places="$places" 15929 bdb_default_search_headers="db${db_major}${db_minor}/db.h db${db_major}/db.h db.h" 15930 bdb_default_search_lib_names="db-${db_major}.${db_minor} db${db_major}-${db_major}.${db_minor} db${db_major}${db_minor} db-${db_major} db${db_major} db" 15931 15932 15933 apu_have_db=0 15934 15935 # Save the original values of the flags we tweak. 15936 apu_check_lib_save_libs="$LIBS" 15937 apu_check_lib_save_ldflags="$LDFLAGS" 15938 apu_check_lib_save_cppflags="$CPPFLAGS" 15939 15940 # The variable `found' is the prefix under which we've found 15941 # Berkeley DB, or `not' if we haven't found it anywhere yet. 15942 found=not 15943 for bdb_place in $bdb_places; do 15944 15945 LDFLAGS="$apu_check_lib_save_ldflags" 15946 CPPFLAGS="$apu_check_lib_save_cppflags" 15947 case "$bdb_place" in 15948 "std" ) 15949 description="the standard places" 15950 ;; 15951 *":"* ) 15952 header="`echo $bdb_place | sed -e 's/:.*$//'`" 15953 lib="`echo $bdb_place | sed -e 's/^.*://'`" 15954 CPPFLAGS="$CPPFLAGS -I$header" 15955 LDFLAGS="$LDFLAGS -L$lib" 15956 description="$header and $lib" 15957 ;; 15958 * ) 15959 if test -d $bdb_place; then 15960 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 15961 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 15962 else 15963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 15964$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 15966$as_echo "directory not found" >&6; } 15967 continue 15968 fi 15969 description="$bdb_place" 15970 ;; 15971 esac 15972 15973 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 15974 # trick to display a message instead. 15975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 15976$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 15977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 15978$as_echo "" >&6; } 15979 15980 for bdb_libname in $bdb_default_search_lib_names; do 15981 for bdb_header in $bdb_default_search_headers; do 15982 # Clear the header cache variable for each location 15983 15984 cache_id="`echo ac_cv_header_${bdb_header} \ 15985 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 15986 15987 unset $cache_id 15988 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 15989ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 15990if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15991 15992 if test ""${db_major}"" = "3" -o ""${db_major}"" = "4" -o ""${db_major}"" = "5" -o ""${db_major}"" = "6"; then 15993 # We generate a separate cache variable for each prefix and libname 15994 # we search under. That way, we avoid caching information that 15995 # changes if the user runs `configure' with a different set of 15996 # switches. 15997 15998 cache_id="`echo apu_cv_check_berkeley_db_"${db_major}"_"${db_minor}"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 15999 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 16000 16001 16002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 16003$as_echo_n "checking for -l$bdb_libname... " >&6; } 16004 if eval \${$cache_id+:} false; then : 16005 $as_echo_n "(cached) " >&6 16006else 16007 16008 16009 apu_try_berkeley_db_save_libs="$LIBS" 16010 16011 apu_check_berkeley_db_major="${db_major}" 16012 apu_check_berkeley_db_minor="${db_minor}" 16013 apu_check_berkeley_db_patch="-1" 16014 apu_try_berkeley_db_header=$bdb_header 16015 apu_try_berkeley_db_libname=$bdb_libname 16016 16017 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 16018 if test "$cross_compiling" = yes; then : 16019 apu_try_berkeley_db=yes 16020 16021else 16022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16023/* end confdefs.h. */ 16024 16025#include <stdlib.h> 16026#include <stdio.h> 16027#include <$apu_try_berkeley_db_header> 16028main () 16029{ 16030 int major, minor, patch; 16031 16032 db_version(&major, &minor, &patch); 16033 16034 /* Sanity check: ensure that db.h constants actually match the db library */ 16035 if (major != DB_VERSION_MAJOR 16036 || minor != DB_VERSION_MINOR 16037 || patch != DB_VERSION_PATCH) 16038 exit (1); 16039 16040 /* Run-time check: ensure the library claims to be the correct version. */ 16041 16042 if ($apu_check_berkeley_db_major != -1) { 16043 if (major < $apu_check_berkeley_db_major) 16044 exit (1); 16045 if (major > $apu_check_berkeley_db_major) 16046 exit (0); 16047 } 16048 16049 if ($apu_check_berkeley_db_minor != -1) { 16050 if (minor < $apu_check_berkeley_db_minor) 16051 exit (1); 16052 if (minor > $apu_check_berkeley_db_minor) 16053 exit (0); 16054 } 16055 16056 if ($apu_check_berkeley_db_patch == -1 16057 || patch >= $apu_check_berkeley_db_patch) 16058 exit (0); 16059 else 16060 exit (1); 16061} 16062 16063_ACEOF 16064if ac_fn_c_try_run "$LINENO"; then : 16065 apu_try_berkeley_db=yes 16066else 16067 apu_try_berkeley_db=no 16068fi 16069rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16070 conftest.$ac_objext conftest.beam conftest.$ac_ext 16071fi 16072 16073 16074 LIBS="$apu_try_berkeley_db_save_libs" 16075 16076 16077 eval "$cache_id=$apu_try_berkeley_db" 16078 16079fi 16080 16081 result="`eval echo '$'$cache_id`" 16082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 16083$as_echo "$result" >&6; } 16084 elif test ""${db_major}"" = "1"; then 16085 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 16086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 16087$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 16088if eval \${$as_ac_Lib+:} false; then : 16089 $as_echo_n "(cached) " >&6 16090else 16091 ac_check_lib_save_LIBS=$LIBS 16092LIBS="-l$bdb_libname $LIBS" 16093cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16094/* end confdefs.h. */ 16095 16096/* Override any GCC internal prototype to avoid an error. 16097 Use char because int might match the return type of a GCC 16098 builtin and then its argument prototype would still apply. */ 16099#ifdef __cplusplus 16100extern "C" 16101#endif 16102char dbopen (); 16103int 16104main () 16105{ 16106return dbopen (); 16107 ; 16108 return 0; 16109} 16110_ACEOF 16111if ac_fn_c_try_link "$LINENO"; then : 16112 eval "$as_ac_Lib=yes" 16113else 16114 eval "$as_ac_Lib=no" 16115fi 16116rm -f core conftest.err conftest.$ac_objext \ 16117 conftest$ac_exeext conftest.$ac_ext 16118LIBS=$ac_check_lib_save_LIBS 16119fi 16120eval ac_res=\$$as_ac_Lib 16121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16122$as_echo "$ac_res" >&6; } 16123if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 16124 result=yes 16125else 16126 result=no 16127 16128fi 16129 16130 elif test ""${db_major}"" = "2"; then 16131 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 16132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 16133$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 16134if eval \${$as_ac_Lib+:} false; then : 16135 $as_echo_n "(cached) " >&6 16136else 16137 ac_check_lib_save_LIBS=$LIBS 16138LIBS="-l$bdb_libname $LIBS" 16139cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16140/* end confdefs.h. */ 16141 16142/* Override any GCC internal prototype to avoid an error. 16143 Use char because int might match the return type of a GCC 16144 builtin and then its argument prototype would still apply. */ 16145#ifdef __cplusplus 16146extern "C" 16147#endif 16148char db_open (); 16149int 16150main () 16151{ 16152return db_open (); 16153 ; 16154 return 0; 16155} 16156_ACEOF 16157if ac_fn_c_try_link "$LINENO"; then : 16158 eval "$as_ac_Lib=yes" 16159else 16160 eval "$as_ac_Lib=no" 16161fi 16162rm -f core conftest.err conftest.$ac_objext \ 16163 conftest$ac_exeext conftest.$ac_ext 16164LIBS=$ac_check_lib_save_LIBS 16165fi 16166eval ac_res=\$$as_ac_Lib 16167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16168$as_echo "$ac_res" >&6; } 16169if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 16170 result=yes 16171else 16172 result=no 16173 16174fi 16175 16176 fi 16177 16178else 16179 result="no" 16180fi 16181 16182 16183 16184 # If we found it, no need to search any more. 16185 if test "$result" = "yes"; then 16186 found="$bdb_place" 16187 break 16188 fi 16189 done 16190 test "$found" != "not" && break 16191 done 16192 test "$found" != "not" && break 16193 done 16194 16195 # Restore the original values of the flags we tweak. 16196 LDFLAGS="$apu_check_lib_save_ldflags" 16197 CPPFLAGS="$apu_check_lib_save_cppflags" 16198 16199 case "$found" in 16200 "not") 16201 apu_have_db=0 16202 ;; 16203 "std") 16204 apu_db_header=$bdb_header 16205 apu_db_lib=$bdb_libname 16206 apu_have_db=1 16207 ;; 16208 *":"*) 16209 header="`echo $found | sed -e 's/:.*$//'`" 16210 lib="`echo $found | sed -e 's/^.*://'`" 16211 16212 16213 if test "x$APRUTIL_INCLUDES" = "x"; then 16214 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 16215 APRUTIL_INCLUDES="-I$header" 16216 else 16217 apr_addto_bugger="-I$header" 16218 for i in $apr_addto_bugger; do 16219 apr_addto_duplicate="0" 16220 for j in $APRUTIL_INCLUDES; do 16221 if test "x$i" = "x$j"; then 16222 apr_addto_duplicate="1" 16223 break 16224 fi 16225 done 16226 if test $apr_addto_duplicate = "0"; then 16227 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 16228 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 16229 fi 16230 done 16231 fi 16232 16233 16234 if test "x$APRUTIL_LDFLAGS" = "x"; then 16235 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 16236 APRUTIL_LDFLAGS="-L$lib" 16237 else 16238 apr_addto_bugger="-L$lib" 16239 for i in $apr_addto_bugger; do 16240 apr_addto_duplicate="0" 16241 for j in $APRUTIL_LDFLAGS; do 16242 if test "x$i" = "x$j"; then 16243 apr_addto_duplicate="1" 16244 break 16245 fi 16246 done 16247 if test $apr_addto_duplicate = "0"; then 16248 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 16249 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 16250 fi 16251 done 16252 fi 16253 16254 apu_db_header=$bdb_header 16255 apu_db_lib=$bdb_libname 16256 apu_have_db=1 16257 ;; 16258 *) 16259 16260 if test "x$APRUTIL_INCLUDES" = "x"; then 16261 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 16262 APRUTIL_INCLUDES="-I$found/include" 16263 else 16264 apr_addto_bugger="-I$found/include" 16265 for i in $apr_addto_bugger; do 16266 apr_addto_duplicate="0" 16267 for j in $APRUTIL_INCLUDES; do 16268 if test "x$i" = "x$j"; then 16269 apr_addto_duplicate="1" 16270 break 16271 fi 16272 done 16273 if test $apr_addto_duplicate = "0"; then 16274 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 16275 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 16276 fi 16277 done 16278 fi 16279 16280 16281 if test "x$APRUTIL_LDFLAGS" = "x"; then 16282 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 16283 APRUTIL_LDFLAGS="-L$found/lib" 16284 else 16285 apr_addto_bugger="-L$found/lib" 16286 for i in $apr_addto_bugger; do 16287 apr_addto_duplicate="0" 16288 for j in $APRUTIL_LDFLAGS; do 16289 if test "x$i" = "x$j"; then 16290 apr_addto_duplicate="1" 16291 break 16292 fi 16293 done 16294 if test $apr_addto_duplicate = "0"; then 16295 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 16296 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 16297 fi 16298 done 16299 fi 16300 16301 apu_db_header=$bdb_header 16302 apu_db_lib=$bdb_libname 16303 apu_have_db=1 16304 ;; 16305 esac 16306 16307 if test "$apu_have_db" = "1"; then 16308 apu_db_version=${db_major} 16309 fi 16310 16311 if test "$apu_db_version" != "$db_major"; then 16312 as_fn_error $? "Berkeley db$db_major not found" "$LINENO" 5 16313 fi 16314 ;; 16315 db[456]) 16316 db_major=`echo "$requested" | sed -e 's/db//'` 16317 # Start version search at version x.9 16318 db_minor=9 16319 while [ $db_minor -ge 0 ] 16320 do 16321 16322 places="$check_places" 16323 db_major="$db_major" 16324 db_minor="$db_minor" 16325 if test -z "$places"; then 16326 places="std /usr/local /usr/local/BerkeleyDB.${db_major}.${db_minor} /boot/home/config" 16327 fi 16328 16329 bdb_version="${db_major}" 16330 if test ""${db_minor}"" != "-1"; then 16331 bdb_version="$bdb_version."${db_minor}"" 16332 if test ""-1"" != "-1"; then 16333 bdb_version="$bdb_version."-1"" 16334 fi 16335 fi 16336 bdb_places="$places" 16337 bdb_default_search_headers="db${db_major}${db_minor}/db.h db${db_major}/db.h db.h" 16338 bdb_default_search_lib_names="db-${db_major}.${db_minor} db${db_major}-${db_major}.${db_minor} db${db_major}${db_minor} db-${db_major} db${db_major} db" 16339 16340 16341 apu_have_db=0 16342 16343 # Save the original values of the flags we tweak. 16344 apu_check_lib_save_libs="$LIBS" 16345 apu_check_lib_save_ldflags="$LDFLAGS" 16346 apu_check_lib_save_cppflags="$CPPFLAGS" 16347 16348 # The variable `found' is the prefix under which we've found 16349 # Berkeley DB, or `not' if we haven't found it anywhere yet. 16350 found=not 16351 for bdb_place in $bdb_places; do 16352 16353 LDFLAGS="$apu_check_lib_save_ldflags" 16354 CPPFLAGS="$apu_check_lib_save_cppflags" 16355 case "$bdb_place" in 16356 "std" ) 16357 description="the standard places" 16358 ;; 16359 *":"* ) 16360 header="`echo $bdb_place | sed -e 's/:.*$//'`" 16361 lib="`echo $bdb_place | sed -e 's/^.*://'`" 16362 CPPFLAGS="$CPPFLAGS -I$header" 16363 LDFLAGS="$LDFLAGS -L$lib" 16364 description="$header and $lib" 16365 ;; 16366 * ) 16367 if test -d $bdb_place; then 16368 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 16369 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 16370 else 16371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 16372$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 16373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 16374$as_echo "directory not found" >&6; } 16375 continue 16376 fi 16377 description="$bdb_place" 16378 ;; 16379 esac 16380 16381 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 16382 # trick to display a message instead. 16383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 16384$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 16385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 16386$as_echo "" >&6; } 16387 16388 for bdb_libname in $bdb_default_search_lib_names; do 16389 for bdb_header in $bdb_default_search_headers; do 16390 # Clear the header cache variable for each location 16391 16392 cache_id="`echo ac_cv_header_${bdb_header} \ 16393 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 16394 16395 unset $cache_id 16396 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 16397ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 16398if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16399 16400 if test ""${db_major}"" = "3" -o ""${db_major}"" = "4" -o ""${db_major}"" = "5" -o ""${db_major}"" = "6"; then 16401 # We generate a separate cache variable for each prefix and libname 16402 # we search under. That way, we avoid caching information that 16403 # changes if the user runs `configure' with a different set of 16404 # switches. 16405 16406 cache_id="`echo apu_cv_check_berkeley_db_"${db_major}"_"${db_minor}"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 16407 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 16408 16409 16410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 16411$as_echo_n "checking for -l$bdb_libname... " >&6; } 16412 if eval \${$cache_id+:} false; then : 16413 $as_echo_n "(cached) " >&6 16414else 16415 16416 16417 apu_try_berkeley_db_save_libs="$LIBS" 16418 16419 apu_check_berkeley_db_major="${db_major}" 16420 apu_check_berkeley_db_minor="${db_minor}" 16421 apu_check_berkeley_db_patch="-1" 16422 apu_try_berkeley_db_header=$bdb_header 16423 apu_try_berkeley_db_libname=$bdb_libname 16424 16425 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 16426 if test "$cross_compiling" = yes; then : 16427 apu_try_berkeley_db=yes 16428 16429else 16430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16431/* end confdefs.h. */ 16432 16433#include <stdlib.h> 16434#include <stdio.h> 16435#include <$apu_try_berkeley_db_header> 16436main () 16437{ 16438 int major, minor, patch; 16439 16440 db_version(&major, &minor, &patch); 16441 16442 /* Sanity check: ensure that db.h constants actually match the db library */ 16443 if (major != DB_VERSION_MAJOR 16444 || minor != DB_VERSION_MINOR 16445 || patch != DB_VERSION_PATCH) 16446 exit (1); 16447 16448 /* Run-time check: ensure the library claims to be the correct version. */ 16449 16450 if ($apu_check_berkeley_db_major != -1) { 16451 if (major < $apu_check_berkeley_db_major) 16452 exit (1); 16453 if (major > $apu_check_berkeley_db_major) 16454 exit (0); 16455 } 16456 16457 if ($apu_check_berkeley_db_minor != -1) { 16458 if (minor < $apu_check_berkeley_db_minor) 16459 exit (1); 16460 if (minor > $apu_check_berkeley_db_minor) 16461 exit (0); 16462 } 16463 16464 if ($apu_check_berkeley_db_patch == -1 16465 || patch >= $apu_check_berkeley_db_patch) 16466 exit (0); 16467 else 16468 exit (1); 16469} 16470 16471_ACEOF 16472if ac_fn_c_try_run "$LINENO"; then : 16473 apu_try_berkeley_db=yes 16474else 16475 apu_try_berkeley_db=no 16476fi 16477rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16478 conftest.$ac_objext conftest.beam conftest.$ac_ext 16479fi 16480 16481 16482 LIBS="$apu_try_berkeley_db_save_libs" 16483 16484 16485 eval "$cache_id=$apu_try_berkeley_db" 16486 16487fi 16488 16489 result="`eval echo '$'$cache_id`" 16490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 16491$as_echo "$result" >&6; } 16492 elif test ""${db_major}"" = "1"; then 16493 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 16494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 16495$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 16496if eval \${$as_ac_Lib+:} false; then : 16497 $as_echo_n "(cached) " >&6 16498else 16499 ac_check_lib_save_LIBS=$LIBS 16500LIBS="-l$bdb_libname $LIBS" 16501cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16502/* end confdefs.h. */ 16503 16504/* Override any GCC internal prototype to avoid an error. 16505 Use char because int might match the return type of a GCC 16506 builtin and then its argument prototype would still apply. */ 16507#ifdef __cplusplus 16508extern "C" 16509#endif 16510char dbopen (); 16511int 16512main () 16513{ 16514return dbopen (); 16515 ; 16516 return 0; 16517} 16518_ACEOF 16519if ac_fn_c_try_link "$LINENO"; then : 16520 eval "$as_ac_Lib=yes" 16521else 16522 eval "$as_ac_Lib=no" 16523fi 16524rm -f core conftest.err conftest.$ac_objext \ 16525 conftest$ac_exeext conftest.$ac_ext 16526LIBS=$ac_check_lib_save_LIBS 16527fi 16528eval ac_res=\$$as_ac_Lib 16529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16530$as_echo "$ac_res" >&6; } 16531if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 16532 result=yes 16533else 16534 result=no 16535 16536fi 16537 16538 elif test ""${db_major}"" = "2"; then 16539 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 16540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 16541$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 16542if eval \${$as_ac_Lib+:} false; then : 16543 $as_echo_n "(cached) " >&6 16544else 16545 ac_check_lib_save_LIBS=$LIBS 16546LIBS="-l$bdb_libname $LIBS" 16547cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16548/* end confdefs.h. */ 16549 16550/* Override any GCC internal prototype to avoid an error. 16551 Use char because int might match the return type of a GCC 16552 builtin and then its argument prototype would still apply. */ 16553#ifdef __cplusplus 16554extern "C" 16555#endif 16556char db_open (); 16557int 16558main () 16559{ 16560return db_open (); 16561 ; 16562 return 0; 16563} 16564_ACEOF 16565if ac_fn_c_try_link "$LINENO"; then : 16566 eval "$as_ac_Lib=yes" 16567else 16568 eval "$as_ac_Lib=no" 16569fi 16570rm -f core conftest.err conftest.$ac_objext \ 16571 conftest$ac_exeext conftest.$ac_ext 16572LIBS=$ac_check_lib_save_LIBS 16573fi 16574eval ac_res=\$$as_ac_Lib 16575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16576$as_echo "$ac_res" >&6; } 16577if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 16578 result=yes 16579else 16580 result=no 16581 16582fi 16583 16584 fi 16585 16586else 16587 result="no" 16588fi 16589 16590 16591 16592 # If we found it, no need to search any more. 16593 if test "$result" = "yes"; then 16594 found="$bdb_place" 16595 break 16596 fi 16597 done 16598 test "$found" != "not" && break 16599 done 16600 test "$found" != "not" && break 16601 done 16602 16603 # Restore the original values of the flags we tweak. 16604 LDFLAGS="$apu_check_lib_save_ldflags" 16605 CPPFLAGS="$apu_check_lib_save_cppflags" 16606 16607 case "$found" in 16608 "not") 16609 apu_have_db=0 16610 ;; 16611 "std") 16612 apu_db_header=$bdb_header 16613 apu_db_lib=$bdb_libname 16614 apu_have_db=1 16615 ;; 16616 *":"*) 16617 header="`echo $found | sed -e 's/:.*$//'`" 16618 lib="`echo $found | sed -e 's/^.*://'`" 16619 16620 16621 if test "x$APRUTIL_INCLUDES" = "x"; then 16622 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 16623 APRUTIL_INCLUDES="-I$header" 16624 else 16625 apr_addto_bugger="-I$header" 16626 for i in $apr_addto_bugger; do 16627 apr_addto_duplicate="0" 16628 for j in $APRUTIL_INCLUDES; do 16629 if test "x$i" = "x$j"; then 16630 apr_addto_duplicate="1" 16631 break 16632 fi 16633 done 16634 if test $apr_addto_duplicate = "0"; then 16635 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 16636 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 16637 fi 16638 done 16639 fi 16640 16641 16642 if test "x$APRUTIL_LDFLAGS" = "x"; then 16643 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 16644 APRUTIL_LDFLAGS="-L$lib" 16645 else 16646 apr_addto_bugger="-L$lib" 16647 for i in $apr_addto_bugger; do 16648 apr_addto_duplicate="0" 16649 for j in $APRUTIL_LDFLAGS; do 16650 if test "x$i" = "x$j"; then 16651 apr_addto_duplicate="1" 16652 break 16653 fi 16654 done 16655 if test $apr_addto_duplicate = "0"; then 16656 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 16657 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 16658 fi 16659 done 16660 fi 16661 16662 apu_db_header=$bdb_header 16663 apu_db_lib=$bdb_libname 16664 apu_have_db=1 16665 ;; 16666 *) 16667 16668 if test "x$APRUTIL_INCLUDES" = "x"; then 16669 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 16670 APRUTIL_INCLUDES="-I$found/include" 16671 else 16672 apr_addto_bugger="-I$found/include" 16673 for i in $apr_addto_bugger; do 16674 apr_addto_duplicate="0" 16675 for j in $APRUTIL_INCLUDES; do 16676 if test "x$i" = "x$j"; then 16677 apr_addto_duplicate="1" 16678 break 16679 fi 16680 done 16681 if test $apr_addto_duplicate = "0"; then 16682 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 16683 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 16684 fi 16685 done 16686 fi 16687 16688 16689 if test "x$APRUTIL_LDFLAGS" = "x"; then 16690 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 16691 APRUTIL_LDFLAGS="-L$found/lib" 16692 else 16693 apr_addto_bugger="-L$found/lib" 16694 for i in $apr_addto_bugger; do 16695 apr_addto_duplicate="0" 16696 for j in $APRUTIL_LDFLAGS; do 16697 if test "x$i" = "x$j"; then 16698 apr_addto_duplicate="1" 16699 break 16700 fi 16701 done 16702 if test $apr_addto_duplicate = "0"; then 16703 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 16704 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 16705 fi 16706 done 16707 fi 16708 16709 apu_db_header=$bdb_header 16710 apu_db_lib=$bdb_libname 16711 apu_have_db=1 16712 ;; 16713 esac 16714 16715 if test "$apu_have_db" = "1"; then 16716 apu_db_version=${db_major} 16717 fi 16718 16719 if test "$apu_have_db" = "1"; then 16720 break 16721 fi 16722 db_minor=`expr $db_minor - 1` 16723 done 16724 if test "$apu_db_version" != "$db_major"; then 16725 as_fn_error $? "Berkeley db$db_major not found" "$LINENO" 5 16726 fi 16727 ;; 16728 default) 16729 16730 all_places="$check_places" 16731 16732 # Start version search at version 6.9 16733 db_version=69 16734 while [ $db_version -ge 40 ] 16735 do 16736 db_major=`echo $db_version | sed -e 's/.$//'` 16737 db_minor=`echo $db_version | sed -e 's/.//'` 16738 16739 places="$all_places" 16740 db_major="$db_major" 16741 db_minor="$db_minor" 16742 if test -z "$places"; then 16743 places="std /usr/local /usr/local/BerkeleyDB.${db_major}.${db_minor} /boot/home/config" 16744 fi 16745 16746 bdb_version="${db_major}" 16747 if test ""${db_minor}"" != "-1"; then 16748 bdb_version="$bdb_version."${db_minor}"" 16749 if test ""-1"" != "-1"; then 16750 bdb_version="$bdb_version."-1"" 16751 fi 16752 fi 16753 bdb_places="$places" 16754 bdb_default_search_headers="db${db_major}${db_minor}/db.h db${db_major}/db.h db.h" 16755 bdb_default_search_lib_names="db-${db_major}.${db_minor} db${db_major}-${db_major}.${db_minor} db${db_major}${db_minor} db-${db_major} db${db_major} db" 16756 16757 16758 apu_have_db=0 16759 16760 # Save the original values of the flags we tweak. 16761 apu_check_lib_save_libs="$LIBS" 16762 apu_check_lib_save_ldflags="$LDFLAGS" 16763 apu_check_lib_save_cppflags="$CPPFLAGS" 16764 16765 # The variable `found' is the prefix under which we've found 16766 # Berkeley DB, or `not' if we haven't found it anywhere yet. 16767 found=not 16768 for bdb_place in $bdb_places; do 16769 16770 LDFLAGS="$apu_check_lib_save_ldflags" 16771 CPPFLAGS="$apu_check_lib_save_cppflags" 16772 case "$bdb_place" in 16773 "std" ) 16774 description="the standard places" 16775 ;; 16776 *":"* ) 16777 header="`echo $bdb_place | sed -e 's/:.*$//'`" 16778 lib="`echo $bdb_place | sed -e 's/^.*://'`" 16779 CPPFLAGS="$CPPFLAGS -I$header" 16780 LDFLAGS="$LDFLAGS -L$lib" 16781 description="$header and $lib" 16782 ;; 16783 * ) 16784 if test -d $bdb_place; then 16785 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 16786 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 16787 else 16788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 16789$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 16790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 16791$as_echo "directory not found" >&6; } 16792 continue 16793 fi 16794 description="$bdb_place" 16795 ;; 16796 esac 16797 16798 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 16799 # trick to display a message instead. 16800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 16801$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 16802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 16803$as_echo "" >&6; } 16804 16805 for bdb_libname in $bdb_default_search_lib_names; do 16806 for bdb_header in $bdb_default_search_headers; do 16807 # Clear the header cache variable for each location 16808 16809 cache_id="`echo ac_cv_header_${bdb_header} \ 16810 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 16811 16812 unset $cache_id 16813 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 16814ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 16815if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16816 16817 if test ""${db_major}"" = "3" -o ""${db_major}"" = "4" -o ""${db_major}"" = "5" -o ""${db_major}"" = "6"; then 16818 # We generate a separate cache variable for each prefix and libname 16819 # we search under. That way, we avoid caching information that 16820 # changes if the user runs `configure' with a different set of 16821 # switches. 16822 16823 cache_id="`echo apu_cv_check_berkeley_db_"${db_major}"_"${db_minor}"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 16824 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 16825 16826 16827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 16828$as_echo_n "checking for -l$bdb_libname... " >&6; } 16829 if eval \${$cache_id+:} false; then : 16830 $as_echo_n "(cached) " >&6 16831else 16832 16833 16834 apu_try_berkeley_db_save_libs="$LIBS" 16835 16836 apu_check_berkeley_db_major="${db_major}" 16837 apu_check_berkeley_db_minor="${db_minor}" 16838 apu_check_berkeley_db_patch="-1" 16839 apu_try_berkeley_db_header=$bdb_header 16840 apu_try_berkeley_db_libname=$bdb_libname 16841 16842 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 16843 if test "$cross_compiling" = yes; then : 16844 apu_try_berkeley_db=yes 16845 16846else 16847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16848/* end confdefs.h. */ 16849 16850#include <stdlib.h> 16851#include <stdio.h> 16852#include <$apu_try_berkeley_db_header> 16853main () 16854{ 16855 int major, minor, patch; 16856 16857 db_version(&major, &minor, &patch); 16858 16859 /* Sanity check: ensure that db.h constants actually match the db library */ 16860 if (major != DB_VERSION_MAJOR 16861 || minor != DB_VERSION_MINOR 16862 || patch != DB_VERSION_PATCH) 16863 exit (1); 16864 16865 /* Run-time check: ensure the library claims to be the correct version. */ 16866 16867 if ($apu_check_berkeley_db_major != -1) { 16868 if (major < $apu_check_berkeley_db_major) 16869 exit (1); 16870 if (major > $apu_check_berkeley_db_major) 16871 exit (0); 16872 } 16873 16874 if ($apu_check_berkeley_db_minor != -1) { 16875 if (minor < $apu_check_berkeley_db_minor) 16876 exit (1); 16877 if (minor > $apu_check_berkeley_db_minor) 16878 exit (0); 16879 } 16880 16881 if ($apu_check_berkeley_db_patch == -1 16882 || patch >= $apu_check_berkeley_db_patch) 16883 exit (0); 16884 else 16885 exit (1); 16886} 16887 16888_ACEOF 16889if ac_fn_c_try_run "$LINENO"; then : 16890 apu_try_berkeley_db=yes 16891else 16892 apu_try_berkeley_db=no 16893fi 16894rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16895 conftest.$ac_objext conftest.beam conftest.$ac_ext 16896fi 16897 16898 16899 LIBS="$apu_try_berkeley_db_save_libs" 16900 16901 16902 eval "$cache_id=$apu_try_berkeley_db" 16903 16904fi 16905 16906 result="`eval echo '$'$cache_id`" 16907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 16908$as_echo "$result" >&6; } 16909 elif test ""${db_major}"" = "1"; then 16910 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 16911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 16912$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 16913if eval \${$as_ac_Lib+:} false; then : 16914 $as_echo_n "(cached) " >&6 16915else 16916 ac_check_lib_save_LIBS=$LIBS 16917LIBS="-l$bdb_libname $LIBS" 16918cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16919/* end confdefs.h. */ 16920 16921/* Override any GCC internal prototype to avoid an error. 16922 Use char because int might match the return type of a GCC 16923 builtin and then its argument prototype would still apply. */ 16924#ifdef __cplusplus 16925extern "C" 16926#endif 16927char dbopen (); 16928int 16929main () 16930{ 16931return dbopen (); 16932 ; 16933 return 0; 16934} 16935_ACEOF 16936if ac_fn_c_try_link "$LINENO"; then : 16937 eval "$as_ac_Lib=yes" 16938else 16939 eval "$as_ac_Lib=no" 16940fi 16941rm -f core conftest.err conftest.$ac_objext \ 16942 conftest$ac_exeext conftest.$ac_ext 16943LIBS=$ac_check_lib_save_LIBS 16944fi 16945eval ac_res=\$$as_ac_Lib 16946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16947$as_echo "$ac_res" >&6; } 16948if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 16949 result=yes 16950else 16951 result=no 16952 16953fi 16954 16955 elif test ""${db_major}"" = "2"; then 16956 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 16957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 16958$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 16959if eval \${$as_ac_Lib+:} false; then : 16960 $as_echo_n "(cached) " >&6 16961else 16962 ac_check_lib_save_LIBS=$LIBS 16963LIBS="-l$bdb_libname $LIBS" 16964cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16965/* end confdefs.h. */ 16966 16967/* Override any GCC internal prototype to avoid an error. 16968 Use char because int might match the return type of a GCC 16969 builtin and then its argument prototype would still apply. */ 16970#ifdef __cplusplus 16971extern "C" 16972#endif 16973char db_open (); 16974int 16975main () 16976{ 16977return db_open (); 16978 ; 16979 return 0; 16980} 16981_ACEOF 16982if ac_fn_c_try_link "$LINENO"; then : 16983 eval "$as_ac_Lib=yes" 16984else 16985 eval "$as_ac_Lib=no" 16986fi 16987rm -f core conftest.err conftest.$ac_objext \ 16988 conftest$ac_exeext conftest.$ac_ext 16989LIBS=$ac_check_lib_save_LIBS 16990fi 16991eval ac_res=\$$as_ac_Lib 16992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16993$as_echo "$ac_res" >&6; } 16994if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 16995 result=yes 16996else 16997 result=no 16998 16999fi 17000 17001 fi 17002 17003else 17004 result="no" 17005fi 17006 17007 17008 17009 # If we found it, no need to search any more. 17010 if test "$result" = "yes"; then 17011 found="$bdb_place" 17012 break 17013 fi 17014 done 17015 test "$found" != "not" && break 17016 done 17017 test "$found" != "not" && break 17018 done 17019 17020 # Restore the original values of the flags we tweak. 17021 LDFLAGS="$apu_check_lib_save_ldflags" 17022 CPPFLAGS="$apu_check_lib_save_cppflags" 17023 17024 case "$found" in 17025 "not") 17026 apu_have_db=0 17027 ;; 17028 "std") 17029 apu_db_header=$bdb_header 17030 apu_db_lib=$bdb_libname 17031 apu_have_db=1 17032 ;; 17033 *":"*) 17034 header="`echo $found | sed -e 's/:.*$//'`" 17035 lib="`echo $found | sed -e 's/^.*://'`" 17036 17037 17038 if test "x$APRUTIL_INCLUDES" = "x"; then 17039 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 17040 APRUTIL_INCLUDES="-I$header" 17041 else 17042 apr_addto_bugger="-I$header" 17043 for i in $apr_addto_bugger; do 17044 apr_addto_duplicate="0" 17045 for j in $APRUTIL_INCLUDES; do 17046 if test "x$i" = "x$j"; then 17047 apr_addto_duplicate="1" 17048 break 17049 fi 17050 done 17051 if test $apr_addto_duplicate = "0"; then 17052 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 17053 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 17054 fi 17055 done 17056 fi 17057 17058 17059 if test "x$APRUTIL_LDFLAGS" = "x"; then 17060 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 17061 APRUTIL_LDFLAGS="-L$lib" 17062 else 17063 apr_addto_bugger="-L$lib" 17064 for i in $apr_addto_bugger; do 17065 apr_addto_duplicate="0" 17066 for j in $APRUTIL_LDFLAGS; do 17067 if test "x$i" = "x$j"; then 17068 apr_addto_duplicate="1" 17069 break 17070 fi 17071 done 17072 if test $apr_addto_duplicate = "0"; then 17073 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 17074 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 17075 fi 17076 done 17077 fi 17078 17079 apu_db_header=$bdb_header 17080 apu_db_lib=$bdb_libname 17081 apu_have_db=1 17082 ;; 17083 *) 17084 17085 if test "x$APRUTIL_INCLUDES" = "x"; then 17086 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 17087 APRUTIL_INCLUDES="-I$found/include" 17088 else 17089 apr_addto_bugger="-I$found/include" 17090 for i in $apr_addto_bugger; do 17091 apr_addto_duplicate="0" 17092 for j in $APRUTIL_INCLUDES; do 17093 if test "x$i" = "x$j"; then 17094 apr_addto_duplicate="1" 17095 break 17096 fi 17097 done 17098 if test $apr_addto_duplicate = "0"; then 17099 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 17100 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 17101 fi 17102 done 17103 fi 17104 17105 17106 if test "x$APRUTIL_LDFLAGS" = "x"; then 17107 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 17108 APRUTIL_LDFLAGS="-L$found/lib" 17109 else 17110 apr_addto_bugger="-L$found/lib" 17111 for i in $apr_addto_bugger; do 17112 apr_addto_duplicate="0" 17113 for j in $APRUTIL_LDFLAGS; do 17114 if test "x$i" = "x$j"; then 17115 apr_addto_duplicate="1" 17116 break 17117 fi 17118 done 17119 if test $apr_addto_duplicate = "0"; then 17120 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 17121 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 17122 fi 17123 done 17124 fi 17125 17126 apu_db_header=$bdb_header 17127 apu_db_lib=$bdb_libname 17128 apu_have_db=1 17129 ;; 17130 esac 17131 17132 if test "$apu_have_db" = "1"; then 17133 apu_db_version=${db_major} 17134 fi 17135 17136 if test "$apu_have_db" = "1"; then 17137 break 17138 fi 17139 db_version=`expr $db_version - 1` 17140 done 17141 if test "$apu_have_db" = "0"; then 17142 17143 places="$all_places" 17144 if test -z "$places"; then 17145 places="std" 17146 fi 17147 17148 bdb_version=3 17149 if test "-1" != "-1"; then 17150 bdb_version="$bdb_version.-1" 17151 if test "-1" != "-1"; then 17152 bdb_version="$bdb_version.-1" 17153 fi 17154 fi 17155 bdb_places="$places" 17156 bdb_default_search_headers="db3/db.h db.h" 17157 bdb_default_search_lib_names="db3 db" 17158 17159 17160 apu_have_db=0 17161 17162 # Save the original values of the flags we tweak. 17163 apu_check_lib_save_libs="$LIBS" 17164 apu_check_lib_save_ldflags="$LDFLAGS" 17165 apu_check_lib_save_cppflags="$CPPFLAGS" 17166 17167 # The variable `found' is the prefix under which we've found 17168 # Berkeley DB, or `not' if we haven't found it anywhere yet. 17169 found=not 17170 for bdb_place in $bdb_places; do 17171 17172 LDFLAGS="$apu_check_lib_save_ldflags" 17173 CPPFLAGS="$apu_check_lib_save_cppflags" 17174 case "$bdb_place" in 17175 "std" ) 17176 description="the standard places" 17177 ;; 17178 *":"* ) 17179 header="`echo $bdb_place | sed -e 's/:.*$//'`" 17180 lib="`echo $bdb_place | sed -e 's/^.*://'`" 17181 CPPFLAGS="$CPPFLAGS -I$header" 17182 LDFLAGS="$LDFLAGS -L$lib" 17183 description="$header and $lib" 17184 ;; 17185 * ) 17186 if test -d $bdb_place; then 17187 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 17188 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 17189 else 17190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 17191$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 17192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 17193$as_echo "directory not found" >&6; } 17194 continue 17195 fi 17196 description="$bdb_place" 17197 ;; 17198 esac 17199 17200 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 17201 # trick to display a message instead. 17202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 17203$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 17204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 17205$as_echo "" >&6; } 17206 17207 for bdb_libname in $bdb_default_search_lib_names; do 17208 for bdb_header in $bdb_default_search_headers; do 17209 # Clear the header cache variable for each location 17210 17211 cache_id="`echo ac_cv_header_${bdb_header} \ 17212 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 17213 17214 unset $cache_id 17215 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 17216ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 17217if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17218 17219 if test "3" = "3" -o "3" = "4" -o "3" = "5" -o "3" = "6"; then 17220 # We generate a separate cache variable for each prefix and libname 17221 # we search under. That way, we avoid caching information that 17222 # changes if the user runs `configure' with a different set of 17223 # switches. 17224 17225 cache_id="`echo apu_cv_check_berkeley_db_3_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 17226 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 17227 17228 17229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 17230$as_echo_n "checking for -l$bdb_libname... " >&6; } 17231 if eval \${$cache_id+:} false; then : 17232 $as_echo_n "(cached) " >&6 17233else 17234 17235 17236 apu_try_berkeley_db_save_libs="$LIBS" 17237 17238 apu_check_berkeley_db_major=3 17239 apu_check_berkeley_db_minor=-1 17240 apu_check_berkeley_db_patch=-1 17241 apu_try_berkeley_db_header=$bdb_header 17242 apu_try_berkeley_db_libname=$bdb_libname 17243 17244 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 17245 if test "$cross_compiling" = yes; then : 17246 apu_try_berkeley_db=yes 17247 17248else 17249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17250/* end confdefs.h. */ 17251 17252#include <stdlib.h> 17253#include <stdio.h> 17254#include <$apu_try_berkeley_db_header> 17255main () 17256{ 17257 int major, minor, patch; 17258 17259 db_version(&major, &minor, &patch); 17260 17261 /* Sanity check: ensure that db.h constants actually match the db library */ 17262 if (major != DB_VERSION_MAJOR 17263 || minor != DB_VERSION_MINOR 17264 || patch != DB_VERSION_PATCH) 17265 exit (1); 17266 17267 /* Run-time check: ensure the library claims to be the correct version. */ 17268 17269 if ($apu_check_berkeley_db_major != -1) { 17270 if (major < $apu_check_berkeley_db_major) 17271 exit (1); 17272 if (major > $apu_check_berkeley_db_major) 17273 exit (0); 17274 } 17275 17276 if ($apu_check_berkeley_db_minor != -1) { 17277 if (minor < $apu_check_berkeley_db_minor) 17278 exit (1); 17279 if (minor > $apu_check_berkeley_db_minor) 17280 exit (0); 17281 } 17282 17283 if ($apu_check_berkeley_db_patch == -1 17284 || patch >= $apu_check_berkeley_db_patch) 17285 exit (0); 17286 else 17287 exit (1); 17288} 17289 17290_ACEOF 17291if ac_fn_c_try_run "$LINENO"; then : 17292 apu_try_berkeley_db=yes 17293else 17294 apu_try_berkeley_db=no 17295fi 17296rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17297 conftest.$ac_objext conftest.beam conftest.$ac_ext 17298fi 17299 17300 17301 LIBS="$apu_try_berkeley_db_save_libs" 17302 17303 17304 eval "$cache_id=$apu_try_berkeley_db" 17305 17306fi 17307 17308 result="`eval echo '$'$cache_id`" 17309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 17310$as_echo "$result" >&6; } 17311 elif test "3" = "1"; then 17312 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 17313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 17314$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 17315if eval \${$as_ac_Lib+:} false; then : 17316 $as_echo_n "(cached) " >&6 17317else 17318 ac_check_lib_save_LIBS=$LIBS 17319LIBS="-l$bdb_libname $LIBS" 17320cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17321/* end confdefs.h. */ 17322 17323/* Override any GCC internal prototype to avoid an error. 17324 Use char because int might match the return type of a GCC 17325 builtin and then its argument prototype would still apply. */ 17326#ifdef __cplusplus 17327extern "C" 17328#endif 17329char dbopen (); 17330int 17331main () 17332{ 17333return dbopen (); 17334 ; 17335 return 0; 17336} 17337_ACEOF 17338if ac_fn_c_try_link "$LINENO"; then : 17339 eval "$as_ac_Lib=yes" 17340else 17341 eval "$as_ac_Lib=no" 17342fi 17343rm -f core conftest.err conftest.$ac_objext \ 17344 conftest$ac_exeext conftest.$ac_ext 17345LIBS=$ac_check_lib_save_LIBS 17346fi 17347eval ac_res=\$$as_ac_Lib 17348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17349$as_echo "$ac_res" >&6; } 17350if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 17351 result=yes 17352else 17353 result=no 17354 17355fi 17356 17357 elif test "3" = "2"; then 17358 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 17359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 17360$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 17361if eval \${$as_ac_Lib+:} false; then : 17362 $as_echo_n "(cached) " >&6 17363else 17364 ac_check_lib_save_LIBS=$LIBS 17365LIBS="-l$bdb_libname $LIBS" 17366cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17367/* end confdefs.h. */ 17368 17369/* Override any GCC internal prototype to avoid an error. 17370 Use char because int might match the return type of a GCC 17371 builtin and then its argument prototype would still apply. */ 17372#ifdef __cplusplus 17373extern "C" 17374#endif 17375char db_open (); 17376int 17377main () 17378{ 17379return db_open (); 17380 ; 17381 return 0; 17382} 17383_ACEOF 17384if ac_fn_c_try_link "$LINENO"; then : 17385 eval "$as_ac_Lib=yes" 17386else 17387 eval "$as_ac_Lib=no" 17388fi 17389rm -f core conftest.err conftest.$ac_objext \ 17390 conftest$ac_exeext conftest.$ac_ext 17391LIBS=$ac_check_lib_save_LIBS 17392fi 17393eval ac_res=\$$as_ac_Lib 17394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17395$as_echo "$ac_res" >&6; } 17396if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 17397 result=yes 17398else 17399 result=no 17400 17401fi 17402 17403 fi 17404 17405else 17406 result="no" 17407fi 17408 17409 17410 17411 # If we found it, no need to search any more. 17412 if test "$result" = "yes"; then 17413 found="$bdb_place" 17414 break 17415 fi 17416 done 17417 test "$found" != "not" && break 17418 done 17419 test "$found" != "not" && break 17420 done 17421 17422 # Restore the original values of the flags we tweak. 17423 LDFLAGS="$apu_check_lib_save_ldflags" 17424 CPPFLAGS="$apu_check_lib_save_cppflags" 17425 17426 case "$found" in 17427 "not") 17428 apu_have_db=0 17429 ;; 17430 "std") 17431 apu_db_header=$bdb_header 17432 apu_db_lib=$bdb_libname 17433 apu_have_db=1 17434 ;; 17435 *":"*) 17436 header="`echo $found | sed -e 's/:.*$//'`" 17437 lib="`echo $found | sed -e 's/^.*://'`" 17438 17439 17440 if test "x$APRUTIL_INCLUDES" = "x"; then 17441 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 17442 APRUTIL_INCLUDES="-I$header" 17443 else 17444 apr_addto_bugger="-I$header" 17445 for i in $apr_addto_bugger; do 17446 apr_addto_duplicate="0" 17447 for j in $APRUTIL_INCLUDES; do 17448 if test "x$i" = "x$j"; then 17449 apr_addto_duplicate="1" 17450 break 17451 fi 17452 done 17453 if test $apr_addto_duplicate = "0"; then 17454 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 17455 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 17456 fi 17457 done 17458 fi 17459 17460 17461 if test "x$APRUTIL_LDFLAGS" = "x"; then 17462 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 17463 APRUTIL_LDFLAGS="-L$lib" 17464 else 17465 apr_addto_bugger="-L$lib" 17466 for i in $apr_addto_bugger; do 17467 apr_addto_duplicate="0" 17468 for j in $APRUTIL_LDFLAGS; do 17469 if test "x$i" = "x$j"; then 17470 apr_addto_duplicate="1" 17471 break 17472 fi 17473 done 17474 if test $apr_addto_duplicate = "0"; then 17475 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 17476 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 17477 fi 17478 done 17479 fi 17480 17481 apu_db_header=$bdb_header 17482 apu_db_lib=$bdb_libname 17483 apu_have_db=1 17484 ;; 17485 *) 17486 17487 if test "x$APRUTIL_INCLUDES" = "x"; then 17488 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 17489 APRUTIL_INCLUDES="-I$found/include" 17490 else 17491 apr_addto_bugger="-I$found/include" 17492 for i in $apr_addto_bugger; do 17493 apr_addto_duplicate="0" 17494 for j in $APRUTIL_INCLUDES; do 17495 if test "x$i" = "x$j"; then 17496 apr_addto_duplicate="1" 17497 break 17498 fi 17499 done 17500 if test $apr_addto_duplicate = "0"; then 17501 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 17502 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 17503 fi 17504 done 17505 fi 17506 17507 17508 if test "x$APRUTIL_LDFLAGS" = "x"; then 17509 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 17510 APRUTIL_LDFLAGS="-L$found/lib" 17511 else 17512 apr_addto_bugger="-L$found/lib" 17513 for i in $apr_addto_bugger; do 17514 apr_addto_duplicate="0" 17515 for j in $APRUTIL_LDFLAGS; do 17516 if test "x$i" = "x$j"; then 17517 apr_addto_duplicate="1" 17518 break 17519 fi 17520 done 17521 if test $apr_addto_duplicate = "0"; then 17522 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 17523 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 17524 fi 17525 done 17526 fi 17527 17528 apu_db_header=$bdb_header 17529 apu_db_lib=$bdb_libname 17530 apu_have_db=1 17531 ;; 17532 esac 17533 17534 if test "$apu_have_db" = "1"; then 17535 apu_db_version=3 17536 fi 17537 17538 fi 17539 if test "$apu_have_db" = "0"; then 17540 17541 places="$all_places" 17542 if test -z "$places"; then 17543 places="std" 17544 fi 17545 17546 bdb_version=2 17547 if test "-1" != "-1"; then 17548 bdb_version="$bdb_version.-1" 17549 if test "-1" != "-1"; then 17550 bdb_version="$bdb_version.-1" 17551 fi 17552 fi 17553 bdb_places="$places" 17554 bdb_default_search_headers="db2/db.h db.h" 17555 bdb_default_search_lib_names="db2 db" 17556 17557 17558 apu_have_db=0 17559 17560 # Save the original values of the flags we tweak. 17561 apu_check_lib_save_libs="$LIBS" 17562 apu_check_lib_save_ldflags="$LDFLAGS" 17563 apu_check_lib_save_cppflags="$CPPFLAGS" 17564 17565 # The variable `found' is the prefix under which we've found 17566 # Berkeley DB, or `not' if we haven't found it anywhere yet. 17567 found=not 17568 for bdb_place in $bdb_places; do 17569 17570 LDFLAGS="$apu_check_lib_save_ldflags" 17571 CPPFLAGS="$apu_check_lib_save_cppflags" 17572 case "$bdb_place" in 17573 "std" ) 17574 description="the standard places" 17575 ;; 17576 *":"* ) 17577 header="`echo $bdb_place | sed -e 's/:.*$//'`" 17578 lib="`echo $bdb_place | sed -e 's/^.*://'`" 17579 CPPFLAGS="$CPPFLAGS -I$header" 17580 LDFLAGS="$LDFLAGS -L$lib" 17581 description="$header and $lib" 17582 ;; 17583 * ) 17584 if test -d $bdb_place; then 17585 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 17586 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 17587 else 17588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 17589$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 17590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 17591$as_echo "directory not found" >&6; } 17592 continue 17593 fi 17594 description="$bdb_place" 17595 ;; 17596 esac 17597 17598 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 17599 # trick to display a message instead. 17600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 17601$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 17603$as_echo "" >&6; } 17604 17605 for bdb_libname in $bdb_default_search_lib_names; do 17606 for bdb_header in $bdb_default_search_headers; do 17607 # Clear the header cache variable for each location 17608 17609 cache_id="`echo ac_cv_header_${bdb_header} \ 17610 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 17611 17612 unset $cache_id 17613 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 17614ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 17615if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17616 17617 if test "2" = "3" -o "2" = "4" -o "2" = "5" -o "2" = "6"; then 17618 # We generate a separate cache variable for each prefix and libname 17619 # we search under. That way, we avoid caching information that 17620 # changes if the user runs `configure' with a different set of 17621 # switches. 17622 17623 cache_id="`echo apu_cv_check_berkeley_db_2_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 17624 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 17625 17626 17627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 17628$as_echo_n "checking for -l$bdb_libname... " >&6; } 17629 if eval \${$cache_id+:} false; then : 17630 $as_echo_n "(cached) " >&6 17631else 17632 17633 17634 apu_try_berkeley_db_save_libs="$LIBS" 17635 17636 apu_check_berkeley_db_major=2 17637 apu_check_berkeley_db_minor=-1 17638 apu_check_berkeley_db_patch=-1 17639 apu_try_berkeley_db_header=$bdb_header 17640 apu_try_berkeley_db_libname=$bdb_libname 17641 17642 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 17643 if test "$cross_compiling" = yes; then : 17644 apu_try_berkeley_db=yes 17645 17646else 17647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17648/* end confdefs.h. */ 17649 17650#include <stdlib.h> 17651#include <stdio.h> 17652#include <$apu_try_berkeley_db_header> 17653main () 17654{ 17655 int major, minor, patch; 17656 17657 db_version(&major, &minor, &patch); 17658 17659 /* Sanity check: ensure that db.h constants actually match the db library */ 17660 if (major != DB_VERSION_MAJOR 17661 || minor != DB_VERSION_MINOR 17662 || patch != DB_VERSION_PATCH) 17663 exit (1); 17664 17665 /* Run-time check: ensure the library claims to be the correct version. */ 17666 17667 if ($apu_check_berkeley_db_major != -1) { 17668 if (major < $apu_check_berkeley_db_major) 17669 exit (1); 17670 if (major > $apu_check_berkeley_db_major) 17671 exit (0); 17672 } 17673 17674 if ($apu_check_berkeley_db_minor != -1) { 17675 if (minor < $apu_check_berkeley_db_minor) 17676 exit (1); 17677 if (minor > $apu_check_berkeley_db_minor) 17678 exit (0); 17679 } 17680 17681 if ($apu_check_berkeley_db_patch == -1 17682 || patch >= $apu_check_berkeley_db_patch) 17683 exit (0); 17684 else 17685 exit (1); 17686} 17687 17688_ACEOF 17689if ac_fn_c_try_run "$LINENO"; then : 17690 apu_try_berkeley_db=yes 17691else 17692 apu_try_berkeley_db=no 17693fi 17694rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17695 conftest.$ac_objext conftest.beam conftest.$ac_ext 17696fi 17697 17698 17699 LIBS="$apu_try_berkeley_db_save_libs" 17700 17701 17702 eval "$cache_id=$apu_try_berkeley_db" 17703 17704fi 17705 17706 result="`eval echo '$'$cache_id`" 17707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 17708$as_echo "$result" >&6; } 17709 elif test "2" = "1"; then 17710 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 17711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 17712$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 17713if eval \${$as_ac_Lib+:} false; then : 17714 $as_echo_n "(cached) " >&6 17715else 17716 ac_check_lib_save_LIBS=$LIBS 17717LIBS="-l$bdb_libname $LIBS" 17718cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17719/* end confdefs.h. */ 17720 17721/* Override any GCC internal prototype to avoid an error. 17722 Use char because int might match the return type of a GCC 17723 builtin and then its argument prototype would still apply. */ 17724#ifdef __cplusplus 17725extern "C" 17726#endif 17727char dbopen (); 17728int 17729main () 17730{ 17731return dbopen (); 17732 ; 17733 return 0; 17734} 17735_ACEOF 17736if ac_fn_c_try_link "$LINENO"; then : 17737 eval "$as_ac_Lib=yes" 17738else 17739 eval "$as_ac_Lib=no" 17740fi 17741rm -f core conftest.err conftest.$ac_objext \ 17742 conftest$ac_exeext conftest.$ac_ext 17743LIBS=$ac_check_lib_save_LIBS 17744fi 17745eval ac_res=\$$as_ac_Lib 17746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17747$as_echo "$ac_res" >&6; } 17748if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 17749 result=yes 17750else 17751 result=no 17752 17753fi 17754 17755 elif test "2" = "2"; then 17756 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 17757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 17758$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 17759if eval \${$as_ac_Lib+:} false; then : 17760 $as_echo_n "(cached) " >&6 17761else 17762 ac_check_lib_save_LIBS=$LIBS 17763LIBS="-l$bdb_libname $LIBS" 17764cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17765/* end confdefs.h. */ 17766 17767/* Override any GCC internal prototype to avoid an error. 17768 Use char because int might match the return type of a GCC 17769 builtin and then its argument prototype would still apply. */ 17770#ifdef __cplusplus 17771extern "C" 17772#endif 17773char db_open (); 17774int 17775main () 17776{ 17777return db_open (); 17778 ; 17779 return 0; 17780} 17781_ACEOF 17782if ac_fn_c_try_link "$LINENO"; then : 17783 eval "$as_ac_Lib=yes" 17784else 17785 eval "$as_ac_Lib=no" 17786fi 17787rm -f core conftest.err conftest.$ac_objext \ 17788 conftest$ac_exeext conftest.$ac_ext 17789LIBS=$ac_check_lib_save_LIBS 17790fi 17791eval ac_res=\$$as_ac_Lib 17792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17793$as_echo "$ac_res" >&6; } 17794if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 17795 result=yes 17796else 17797 result=no 17798 17799fi 17800 17801 fi 17802 17803else 17804 result="no" 17805fi 17806 17807 17808 17809 # If we found it, no need to search any more. 17810 if test "$result" = "yes"; then 17811 found="$bdb_place" 17812 break 17813 fi 17814 done 17815 test "$found" != "not" && break 17816 done 17817 test "$found" != "not" && break 17818 done 17819 17820 # Restore the original values of the flags we tweak. 17821 LDFLAGS="$apu_check_lib_save_ldflags" 17822 CPPFLAGS="$apu_check_lib_save_cppflags" 17823 17824 case "$found" in 17825 "not") 17826 apu_have_db=0 17827 ;; 17828 "std") 17829 apu_db_header=$bdb_header 17830 apu_db_lib=$bdb_libname 17831 apu_have_db=1 17832 ;; 17833 *":"*) 17834 header="`echo $found | sed -e 's/:.*$//'`" 17835 lib="`echo $found | sed -e 's/^.*://'`" 17836 17837 17838 if test "x$APRUTIL_INCLUDES" = "x"; then 17839 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 17840 APRUTIL_INCLUDES="-I$header" 17841 else 17842 apr_addto_bugger="-I$header" 17843 for i in $apr_addto_bugger; do 17844 apr_addto_duplicate="0" 17845 for j in $APRUTIL_INCLUDES; do 17846 if test "x$i" = "x$j"; then 17847 apr_addto_duplicate="1" 17848 break 17849 fi 17850 done 17851 if test $apr_addto_duplicate = "0"; then 17852 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 17853 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 17854 fi 17855 done 17856 fi 17857 17858 17859 if test "x$APRUTIL_LDFLAGS" = "x"; then 17860 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 17861 APRUTIL_LDFLAGS="-L$lib" 17862 else 17863 apr_addto_bugger="-L$lib" 17864 for i in $apr_addto_bugger; do 17865 apr_addto_duplicate="0" 17866 for j in $APRUTIL_LDFLAGS; do 17867 if test "x$i" = "x$j"; then 17868 apr_addto_duplicate="1" 17869 break 17870 fi 17871 done 17872 if test $apr_addto_duplicate = "0"; then 17873 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 17874 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 17875 fi 17876 done 17877 fi 17878 17879 apu_db_header=$bdb_header 17880 apu_db_lib=$bdb_libname 17881 apu_have_db=1 17882 ;; 17883 *) 17884 17885 if test "x$APRUTIL_INCLUDES" = "x"; then 17886 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 17887 APRUTIL_INCLUDES="-I$found/include" 17888 else 17889 apr_addto_bugger="-I$found/include" 17890 for i in $apr_addto_bugger; do 17891 apr_addto_duplicate="0" 17892 for j in $APRUTIL_INCLUDES; do 17893 if test "x$i" = "x$j"; then 17894 apr_addto_duplicate="1" 17895 break 17896 fi 17897 done 17898 if test $apr_addto_duplicate = "0"; then 17899 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 17900 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 17901 fi 17902 done 17903 fi 17904 17905 17906 if test "x$APRUTIL_LDFLAGS" = "x"; then 17907 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 17908 APRUTIL_LDFLAGS="-L$found/lib" 17909 else 17910 apr_addto_bugger="-L$found/lib" 17911 for i in $apr_addto_bugger; do 17912 apr_addto_duplicate="0" 17913 for j in $APRUTIL_LDFLAGS; do 17914 if test "x$i" = "x$j"; then 17915 apr_addto_duplicate="1" 17916 break 17917 fi 17918 done 17919 if test $apr_addto_duplicate = "0"; then 17920 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 17921 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 17922 fi 17923 done 17924 fi 17925 17926 apu_db_header=$bdb_header 17927 apu_db_lib=$bdb_libname 17928 apu_have_db=1 17929 ;; 17930 esac 17931 17932 if test "$apu_have_db" = "1"; then 17933 apu_db_version=2 17934 fi 17935 17936 fi 17937 if test "$apu_have_db" = "0"; then 17938 17939 places="$all_places" 17940 if test -z "$places"; then 17941 places="std" 17942 fi 17943 17944 bdb_version=1 17945 if test "0" != "-1"; then 17946 bdb_version="$bdb_version.0" 17947 if test "0" != "-1"; then 17948 bdb_version="$bdb_version.0" 17949 fi 17950 fi 17951 bdb_places="$places" 17952 bdb_default_search_headers="db1/db.h db.h" 17953 bdb_default_search_lib_names="db1" 17954 17955 17956 apu_have_db=0 17957 17958 # Save the original values of the flags we tweak. 17959 apu_check_lib_save_libs="$LIBS" 17960 apu_check_lib_save_ldflags="$LDFLAGS" 17961 apu_check_lib_save_cppflags="$CPPFLAGS" 17962 17963 # The variable `found' is the prefix under which we've found 17964 # Berkeley DB, or `not' if we haven't found it anywhere yet. 17965 found=not 17966 for bdb_place in $bdb_places; do 17967 17968 LDFLAGS="$apu_check_lib_save_ldflags" 17969 CPPFLAGS="$apu_check_lib_save_cppflags" 17970 case "$bdb_place" in 17971 "std" ) 17972 description="the standard places" 17973 ;; 17974 *":"* ) 17975 header="`echo $bdb_place | sed -e 's/:.*$//'`" 17976 lib="`echo $bdb_place | sed -e 's/^.*://'`" 17977 CPPFLAGS="$CPPFLAGS -I$header" 17978 LDFLAGS="$LDFLAGS -L$lib" 17979 description="$header and $lib" 17980 ;; 17981 * ) 17982 if test -d $bdb_place; then 17983 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 17984 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 17985 else 17986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 17987$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 17988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 17989$as_echo "directory not found" >&6; } 17990 continue 17991 fi 17992 description="$bdb_place" 17993 ;; 17994 esac 17995 17996 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 17997 # trick to display a message instead. 17998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 17999$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 18000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 18001$as_echo "" >&6; } 18002 18003 for bdb_libname in $bdb_default_search_lib_names; do 18004 for bdb_header in $bdb_default_search_headers; do 18005 # Clear the header cache variable for each location 18006 18007 cache_id="`echo ac_cv_header_${bdb_header} \ 18008 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 18009 18010 unset $cache_id 18011 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 18012ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 18013if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18014 18015 if test "1" = "3" -o "1" = "4" -o "1" = "5" -o "1" = "6"; then 18016 # We generate a separate cache variable for each prefix and libname 18017 # we search under. That way, we avoid caching information that 18018 # changes if the user runs `configure' with a different set of 18019 # switches. 18020 18021 cache_id="`echo apu_cv_check_berkeley_db_1_0_0_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 18022 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 18023 18024 18025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 18026$as_echo_n "checking for -l$bdb_libname... " >&6; } 18027 if eval \${$cache_id+:} false; then : 18028 $as_echo_n "(cached) " >&6 18029else 18030 18031 18032 apu_try_berkeley_db_save_libs="$LIBS" 18033 18034 apu_check_berkeley_db_major=1 18035 apu_check_berkeley_db_minor=0 18036 apu_check_berkeley_db_patch=0 18037 apu_try_berkeley_db_header=$bdb_header 18038 apu_try_berkeley_db_libname=$bdb_libname 18039 18040 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 18041 if test "$cross_compiling" = yes; then : 18042 apu_try_berkeley_db=yes 18043 18044else 18045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18046/* end confdefs.h. */ 18047 18048#include <stdlib.h> 18049#include <stdio.h> 18050#include <$apu_try_berkeley_db_header> 18051main () 18052{ 18053 int major, minor, patch; 18054 18055 db_version(&major, &minor, &patch); 18056 18057 /* Sanity check: ensure that db.h constants actually match the db library */ 18058 if (major != DB_VERSION_MAJOR 18059 || minor != DB_VERSION_MINOR 18060 || patch != DB_VERSION_PATCH) 18061 exit (1); 18062 18063 /* Run-time check: ensure the library claims to be the correct version. */ 18064 18065 if ($apu_check_berkeley_db_major != -1) { 18066 if (major < $apu_check_berkeley_db_major) 18067 exit (1); 18068 if (major > $apu_check_berkeley_db_major) 18069 exit (0); 18070 } 18071 18072 if ($apu_check_berkeley_db_minor != -1) { 18073 if (minor < $apu_check_berkeley_db_minor) 18074 exit (1); 18075 if (minor > $apu_check_berkeley_db_minor) 18076 exit (0); 18077 } 18078 18079 if ($apu_check_berkeley_db_patch == -1 18080 || patch >= $apu_check_berkeley_db_patch) 18081 exit (0); 18082 else 18083 exit (1); 18084} 18085 18086_ACEOF 18087if ac_fn_c_try_run "$LINENO"; then : 18088 apu_try_berkeley_db=yes 18089else 18090 apu_try_berkeley_db=no 18091fi 18092rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18093 conftest.$ac_objext conftest.beam conftest.$ac_ext 18094fi 18095 18096 18097 LIBS="$apu_try_berkeley_db_save_libs" 18098 18099 18100 eval "$cache_id=$apu_try_berkeley_db" 18101 18102fi 18103 18104 result="`eval echo '$'$cache_id`" 18105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 18106$as_echo "$result" >&6; } 18107 elif test "1" = "1"; then 18108 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 18109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 18110$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 18111if eval \${$as_ac_Lib+:} false; then : 18112 $as_echo_n "(cached) " >&6 18113else 18114 ac_check_lib_save_LIBS=$LIBS 18115LIBS="-l$bdb_libname $LIBS" 18116cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18117/* end confdefs.h. */ 18118 18119/* Override any GCC internal prototype to avoid an error. 18120 Use char because int might match the return type of a GCC 18121 builtin and then its argument prototype would still apply. */ 18122#ifdef __cplusplus 18123extern "C" 18124#endif 18125char dbopen (); 18126int 18127main () 18128{ 18129return dbopen (); 18130 ; 18131 return 0; 18132} 18133_ACEOF 18134if ac_fn_c_try_link "$LINENO"; then : 18135 eval "$as_ac_Lib=yes" 18136else 18137 eval "$as_ac_Lib=no" 18138fi 18139rm -f core conftest.err conftest.$ac_objext \ 18140 conftest$ac_exeext conftest.$ac_ext 18141LIBS=$ac_check_lib_save_LIBS 18142fi 18143eval ac_res=\$$as_ac_Lib 18144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18145$as_echo "$ac_res" >&6; } 18146if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 18147 result=yes 18148else 18149 result=no 18150 18151fi 18152 18153 elif test "1" = "2"; then 18154 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 18155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 18156$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 18157if eval \${$as_ac_Lib+:} false; then : 18158 $as_echo_n "(cached) " >&6 18159else 18160 ac_check_lib_save_LIBS=$LIBS 18161LIBS="-l$bdb_libname $LIBS" 18162cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18163/* end confdefs.h. */ 18164 18165/* Override any GCC internal prototype to avoid an error. 18166 Use char because int might match the return type of a GCC 18167 builtin and then its argument prototype would still apply. */ 18168#ifdef __cplusplus 18169extern "C" 18170#endif 18171char db_open (); 18172int 18173main () 18174{ 18175return db_open (); 18176 ; 18177 return 0; 18178} 18179_ACEOF 18180if ac_fn_c_try_link "$LINENO"; then : 18181 eval "$as_ac_Lib=yes" 18182else 18183 eval "$as_ac_Lib=no" 18184fi 18185rm -f core conftest.err conftest.$ac_objext \ 18186 conftest$ac_exeext conftest.$ac_ext 18187LIBS=$ac_check_lib_save_LIBS 18188fi 18189eval ac_res=\$$as_ac_Lib 18190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18191$as_echo "$ac_res" >&6; } 18192if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 18193 result=yes 18194else 18195 result=no 18196 18197fi 18198 18199 fi 18200 18201else 18202 result="no" 18203fi 18204 18205 18206 18207 # If we found it, no need to search any more. 18208 if test "$result" = "yes"; then 18209 found="$bdb_place" 18210 break 18211 fi 18212 done 18213 test "$found" != "not" && break 18214 done 18215 test "$found" != "not" && break 18216 done 18217 18218 # Restore the original values of the flags we tweak. 18219 LDFLAGS="$apu_check_lib_save_ldflags" 18220 CPPFLAGS="$apu_check_lib_save_cppflags" 18221 18222 case "$found" in 18223 "not") 18224 apu_have_db=0 18225 ;; 18226 "std") 18227 apu_db_header=$bdb_header 18228 apu_db_lib=$bdb_libname 18229 apu_have_db=1 18230 ;; 18231 *":"*) 18232 header="`echo $found | sed -e 's/:.*$//'`" 18233 lib="`echo $found | sed -e 's/^.*://'`" 18234 18235 18236 if test "x$APRUTIL_INCLUDES" = "x"; then 18237 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 18238 APRUTIL_INCLUDES="-I$header" 18239 else 18240 apr_addto_bugger="-I$header" 18241 for i in $apr_addto_bugger; do 18242 apr_addto_duplicate="0" 18243 for j in $APRUTIL_INCLUDES; do 18244 if test "x$i" = "x$j"; then 18245 apr_addto_duplicate="1" 18246 break 18247 fi 18248 done 18249 if test $apr_addto_duplicate = "0"; then 18250 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 18251 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 18252 fi 18253 done 18254 fi 18255 18256 18257 if test "x$APRUTIL_LDFLAGS" = "x"; then 18258 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 18259 APRUTIL_LDFLAGS="-L$lib" 18260 else 18261 apr_addto_bugger="-L$lib" 18262 for i in $apr_addto_bugger; do 18263 apr_addto_duplicate="0" 18264 for j in $APRUTIL_LDFLAGS; do 18265 if test "x$i" = "x$j"; then 18266 apr_addto_duplicate="1" 18267 break 18268 fi 18269 done 18270 if test $apr_addto_duplicate = "0"; then 18271 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 18272 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 18273 fi 18274 done 18275 fi 18276 18277 apu_db_header=$bdb_header 18278 apu_db_lib=$bdb_libname 18279 apu_have_db=1 18280 ;; 18281 *) 18282 18283 if test "x$APRUTIL_INCLUDES" = "x"; then 18284 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 18285 APRUTIL_INCLUDES="-I$found/include" 18286 else 18287 apr_addto_bugger="-I$found/include" 18288 for i in $apr_addto_bugger; do 18289 apr_addto_duplicate="0" 18290 for j in $APRUTIL_INCLUDES; do 18291 if test "x$i" = "x$j"; then 18292 apr_addto_duplicate="1" 18293 break 18294 fi 18295 done 18296 if test $apr_addto_duplicate = "0"; then 18297 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 18298 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 18299 fi 18300 done 18301 fi 18302 18303 18304 if test "x$APRUTIL_LDFLAGS" = "x"; then 18305 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 18306 APRUTIL_LDFLAGS="-L$found/lib" 18307 else 18308 apr_addto_bugger="-L$found/lib" 18309 for i in $apr_addto_bugger; do 18310 apr_addto_duplicate="0" 18311 for j in $APRUTIL_LDFLAGS; do 18312 if test "x$i" = "x$j"; then 18313 apr_addto_duplicate="1" 18314 break 18315 fi 18316 done 18317 if test $apr_addto_duplicate = "0"; then 18318 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 18319 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 18320 fi 18321 done 18322 fi 18323 18324 apu_db_header=$bdb_header 18325 apu_db_lib=$bdb_libname 18326 apu_have_db=1 18327 ;; 18328 esac 18329 18330 if test "$apu_have_db" = "1"; then 18331 apu_db_version=1 18332 fi 18333 18334 fi 18335 if test "$apu_have_db" = "0"; then 18336 18337 places="$all_places" 18338 if test -z "$places"; then 18339 places="std" 18340 fi 18341 18342 bdb_version=1 18343 if test "-1" != "-1"; then 18344 bdb_version="$bdb_version.-1" 18345 if test "-1" != "-1"; then 18346 bdb_version="$bdb_version.-1" 18347 fi 18348 fi 18349 bdb_places="$places" 18350 bdb_default_search_headers="db_185.h" 18351 bdb_default_search_lib_names="db" 18352 18353 18354 apu_have_db=0 18355 18356 # Save the original values of the flags we tweak. 18357 apu_check_lib_save_libs="$LIBS" 18358 apu_check_lib_save_ldflags="$LDFLAGS" 18359 apu_check_lib_save_cppflags="$CPPFLAGS" 18360 18361 # The variable `found' is the prefix under which we've found 18362 # Berkeley DB, or `not' if we haven't found it anywhere yet. 18363 found=not 18364 for bdb_place in $bdb_places; do 18365 18366 LDFLAGS="$apu_check_lib_save_ldflags" 18367 CPPFLAGS="$apu_check_lib_save_cppflags" 18368 case "$bdb_place" in 18369 "std" ) 18370 description="the standard places" 18371 ;; 18372 *":"* ) 18373 header="`echo $bdb_place | sed -e 's/:.*$//'`" 18374 lib="`echo $bdb_place | sed -e 's/^.*://'`" 18375 CPPFLAGS="$CPPFLAGS -I$header" 18376 LDFLAGS="$LDFLAGS -L$lib" 18377 description="$header and $lib" 18378 ;; 18379 * ) 18380 if test -d $bdb_place; then 18381 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 18382 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 18383 else 18384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 18385$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 18386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 18387$as_echo "directory not found" >&6; } 18388 continue 18389 fi 18390 description="$bdb_place" 18391 ;; 18392 esac 18393 18394 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 18395 # trick to display a message instead. 18396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 18397$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 18398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 18399$as_echo "" >&6; } 18400 18401 for bdb_libname in $bdb_default_search_lib_names; do 18402 for bdb_header in $bdb_default_search_headers; do 18403 # Clear the header cache variable for each location 18404 18405 cache_id="`echo ac_cv_header_${bdb_header} \ 18406 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 18407 18408 unset $cache_id 18409 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 18410ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 18411if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18412 18413 if test "1" = "3" -o "1" = "4" -o "1" = "5" -o "1" = "6"; then 18414 # We generate a separate cache variable for each prefix and libname 18415 # we search under. That way, we avoid caching information that 18416 # changes if the user runs `configure' with a different set of 18417 # switches. 18418 18419 cache_id="`echo apu_cv_check_berkeley_db_1_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 18420 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 18421 18422 18423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 18424$as_echo_n "checking for -l$bdb_libname... " >&6; } 18425 if eval \${$cache_id+:} false; then : 18426 $as_echo_n "(cached) " >&6 18427else 18428 18429 18430 apu_try_berkeley_db_save_libs="$LIBS" 18431 18432 apu_check_berkeley_db_major=1 18433 apu_check_berkeley_db_minor=-1 18434 apu_check_berkeley_db_patch=-1 18435 apu_try_berkeley_db_header=$bdb_header 18436 apu_try_berkeley_db_libname=$bdb_libname 18437 18438 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 18439 if test "$cross_compiling" = yes; then : 18440 apu_try_berkeley_db=yes 18441 18442else 18443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18444/* end confdefs.h. */ 18445 18446#include <stdlib.h> 18447#include <stdio.h> 18448#include <$apu_try_berkeley_db_header> 18449main () 18450{ 18451 int major, minor, patch; 18452 18453 db_version(&major, &minor, &patch); 18454 18455 /* Sanity check: ensure that db.h constants actually match the db library */ 18456 if (major != DB_VERSION_MAJOR 18457 || minor != DB_VERSION_MINOR 18458 || patch != DB_VERSION_PATCH) 18459 exit (1); 18460 18461 /* Run-time check: ensure the library claims to be the correct version. */ 18462 18463 if ($apu_check_berkeley_db_major != -1) { 18464 if (major < $apu_check_berkeley_db_major) 18465 exit (1); 18466 if (major > $apu_check_berkeley_db_major) 18467 exit (0); 18468 } 18469 18470 if ($apu_check_berkeley_db_minor != -1) { 18471 if (minor < $apu_check_berkeley_db_minor) 18472 exit (1); 18473 if (minor > $apu_check_berkeley_db_minor) 18474 exit (0); 18475 } 18476 18477 if ($apu_check_berkeley_db_patch == -1 18478 || patch >= $apu_check_berkeley_db_patch) 18479 exit (0); 18480 else 18481 exit (1); 18482} 18483 18484_ACEOF 18485if ac_fn_c_try_run "$LINENO"; then : 18486 apu_try_berkeley_db=yes 18487else 18488 apu_try_berkeley_db=no 18489fi 18490rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18491 conftest.$ac_objext conftest.beam conftest.$ac_ext 18492fi 18493 18494 18495 LIBS="$apu_try_berkeley_db_save_libs" 18496 18497 18498 eval "$cache_id=$apu_try_berkeley_db" 18499 18500fi 18501 18502 result="`eval echo '$'$cache_id`" 18503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 18504$as_echo "$result" >&6; } 18505 elif test "1" = "1"; then 18506 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 18507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 18508$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 18509if eval \${$as_ac_Lib+:} false; then : 18510 $as_echo_n "(cached) " >&6 18511else 18512 ac_check_lib_save_LIBS=$LIBS 18513LIBS="-l$bdb_libname $LIBS" 18514cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18515/* end confdefs.h. */ 18516 18517/* Override any GCC internal prototype to avoid an error. 18518 Use char because int might match the return type of a GCC 18519 builtin and then its argument prototype would still apply. */ 18520#ifdef __cplusplus 18521extern "C" 18522#endif 18523char dbopen (); 18524int 18525main () 18526{ 18527return dbopen (); 18528 ; 18529 return 0; 18530} 18531_ACEOF 18532if ac_fn_c_try_link "$LINENO"; then : 18533 eval "$as_ac_Lib=yes" 18534else 18535 eval "$as_ac_Lib=no" 18536fi 18537rm -f core conftest.err conftest.$ac_objext \ 18538 conftest$ac_exeext conftest.$ac_ext 18539LIBS=$ac_check_lib_save_LIBS 18540fi 18541eval ac_res=\$$as_ac_Lib 18542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18543$as_echo "$ac_res" >&6; } 18544if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 18545 result=yes 18546else 18547 result=no 18548 18549fi 18550 18551 elif test "1" = "2"; then 18552 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 18553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 18554$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 18555if eval \${$as_ac_Lib+:} false; then : 18556 $as_echo_n "(cached) " >&6 18557else 18558 ac_check_lib_save_LIBS=$LIBS 18559LIBS="-l$bdb_libname $LIBS" 18560cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18561/* end confdefs.h. */ 18562 18563/* Override any GCC internal prototype to avoid an error. 18564 Use char because int might match the return type of a GCC 18565 builtin and then its argument prototype would still apply. */ 18566#ifdef __cplusplus 18567extern "C" 18568#endif 18569char db_open (); 18570int 18571main () 18572{ 18573return db_open (); 18574 ; 18575 return 0; 18576} 18577_ACEOF 18578if ac_fn_c_try_link "$LINENO"; then : 18579 eval "$as_ac_Lib=yes" 18580else 18581 eval "$as_ac_Lib=no" 18582fi 18583rm -f core conftest.err conftest.$ac_objext \ 18584 conftest$ac_exeext conftest.$ac_ext 18585LIBS=$ac_check_lib_save_LIBS 18586fi 18587eval ac_res=\$$as_ac_Lib 18588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18589$as_echo "$ac_res" >&6; } 18590if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 18591 result=yes 18592else 18593 result=no 18594 18595fi 18596 18597 fi 18598 18599else 18600 result="no" 18601fi 18602 18603 18604 18605 # If we found it, no need to search any more. 18606 if test "$result" = "yes"; then 18607 found="$bdb_place" 18608 break 18609 fi 18610 done 18611 test "$found" != "not" && break 18612 done 18613 test "$found" != "not" && break 18614 done 18615 18616 # Restore the original values of the flags we tweak. 18617 LDFLAGS="$apu_check_lib_save_ldflags" 18618 CPPFLAGS="$apu_check_lib_save_cppflags" 18619 18620 case "$found" in 18621 "not") 18622 apu_have_db=0 18623 ;; 18624 "std") 18625 apu_db_header=$bdb_header 18626 apu_db_lib=$bdb_libname 18627 apu_have_db=1 18628 ;; 18629 *":"*) 18630 header="`echo $found | sed -e 's/:.*$//'`" 18631 lib="`echo $found | sed -e 's/^.*://'`" 18632 18633 18634 if test "x$APRUTIL_INCLUDES" = "x"; then 18635 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 18636 APRUTIL_INCLUDES="-I$header" 18637 else 18638 apr_addto_bugger="-I$header" 18639 for i in $apr_addto_bugger; do 18640 apr_addto_duplicate="0" 18641 for j in $APRUTIL_INCLUDES; do 18642 if test "x$i" = "x$j"; then 18643 apr_addto_duplicate="1" 18644 break 18645 fi 18646 done 18647 if test $apr_addto_duplicate = "0"; then 18648 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 18649 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 18650 fi 18651 done 18652 fi 18653 18654 18655 if test "x$APRUTIL_LDFLAGS" = "x"; then 18656 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 18657 APRUTIL_LDFLAGS="-L$lib" 18658 else 18659 apr_addto_bugger="-L$lib" 18660 for i in $apr_addto_bugger; do 18661 apr_addto_duplicate="0" 18662 for j in $APRUTIL_LDFLAGS; do 18663 if test "x$i" = "x$j"; then 18664 apr_addto_duplicate="1" 18665 break 18666 fi 18667 done 18668 if test $apr_addto_duplicate = "0"; then 18669 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 18670 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 18671 fi 18672 done 18673 fi 18674 18675 apu_db_header=$bdb_header 18676 apu_db_lib=$bdb_libname 18677 apu_have_db=1 18678 ;; 18679 *) 18680 18681 if test "x$APRUTIL_INCLUDES" = "x"; then 18682 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 18683 APRUTIL_INCLUDES="-I$found/include" 18684 else 18685 apr_addto_bugger="-I$found/include" 18686 for i in $apr_addto_bugger; do 18687 apr_addto_duplicate="0" 18688 for j in $APRUTIL_INCLUDES; do 18689 if test "x$i" = "x$j"; then 18690 apr_addto_duplicate="1" 18691 break 18692 fi 18693 done 18694 if test $apr_addto_duplicate = "0"; then 18695 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 18696 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 18697 fi 18698 done 18699 fi 18700 18701 18702 if test "x$APRUTIL_LDFLAGS" = "x"; then 18703 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 18704 APRUTIL_LDFLAGS="-L$found/lib" 18705 else 18706 apr_addto_bugger="-L$found/lib" 18707 for i in $apr_addto_bugger; do 18708 apr_addto_duplicate="0" 18709 for j in $APRUTIL_LDFLAGS; do 18710 if test "x$i" = "x$j"; then 18711 apr_addto_duplicate="1" 18712 break 18713 fi 18714 done 18715 if test $apr_addto_duplicate = "0"; then 18716 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 18717 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 18718 fi 18719 done 18720 fi 18721 18722 apu_db_header=$bdb_header 18723 apu_db_lib=$bdb_libname 18724 apu_have_db=1 18725 ;; 18726 esac 18727 18728 if test "$apu_have_db" = "1"; then 18729 apu_db_version=185 18730 fi 18731 18732 fi 18733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB" >&5 18734$as_echo_n "checking for Berkeley DB... " >&6; } 18735 if test "$apu_have_db" = "1"; then 18736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found db$apu_db_version" >&5 18737$as_echo "found db$apu_db_version" >&6; } 18738 else 18739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18740$as_echo "not found" >&6; } 18741 fi 18742 18743 ;; 18744 esac 18745 18746 if test "$apu_have_db" = "0"; then 18747 as_fn_error $? "Berkeley DB not found." "$LINENO" 5 18748 fi 18749 fi 18750 18751fi 18752 18753 18754 if test -n "$apu_db_xtra_libs"; then 18755 LIBS="$saveddbxtralibs" 18756 fi 18757 18758 case "$requested" in 18759 sdbm | gdbm | ndbm | db) 18760 eval "apu_use_$requested=1" 18761 apu_default_dbm=$requested 18762 ;; 18763 db185 | db[123456]) 18764 apu_use_db=1 18765 apu_default_dbm=$requested 18766 ;; 18767 db[456][0-9]) 18768 apu_use_db=1 18769 apu_default_dbm=`echo $requested | sed -e 's/.$//'` 18770 ;; 18771 default) 18772 apu_default_dbm="sdbm (default)" 18773 apu_use_sdbm=1 18774 ;; 18775 *) 18776 as_fn_error $? "--with-dbm=$requested is an unknown DBM type. 18777 Use one of: $dbm_list" "$LINENO" 5 18778 ;; 18779 esac 18780 18781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default DBM" >&5 18782$as_echo_n "checking for default DBM... " >&6; } 18783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_default_dbm" >&5 18784$as_echo "$apu_default_dbm" >&6; } 18785 18786 18787 18788 18789 18790 18791 18792 18793 18794 18795 18796 18797 18798 if test "$apu_have_db" = "1"; then 18799 18800 if test "x$LDADD_dbm_db" = "x"; then 18801 test "x$silent" != "xyes" && echo " setting LDADD_dbm_db to \"-l$apu_db_lib\"" 18802 LDADD_dbm_db="-l$apu_db_lib" 18803 else 18804 apr_addto_bugger="-l$apu_db_lib" 18805 for i in $apr_addto_bugger; do 18806 apr_addto_duplicate="0" 18807 for j in $LDADD_dbm_db; do 18808 if test "x$i" = "x$j"; then 18809 apr_addto_duplicate="1" 18810 break 18811 fi 18812 done 18813 if test $apr_addto_duplicate = "0"; then 18814 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbm_db" 18815 LDADD_dbm_db="$LDADD_dbm_db $i" 18816 fi 18817 done 18818 fi 18819 18820 if test -n "apu_db_xtra_libs"; then 18821 18822 if test "x$LDADD_dbm_db" = "x"; then 18823 test "x$silent" != "xyes" && echo " setting LDADD_dbm_db to \"$apu_db_xtra_libs\"" 18824 LDADD_dbm_db="$apu_db_xtra_libs" 18825 else 18826 apr_addto_bugger="$apu_db_xtra_libs" 18827 for i in $apr_addto_bugger; do 18828 apr_addto_duplicate="0" 18829 for j in $LDADD_dbm_db; do 18830 if test "x$i" = "x$j"; then 18831 apr_addto_duplicate="1" 18832 break 18833 fi 18834 done 18835 if test $apr_addto_duplicate = "0"; then 18836 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbm_db" 18837 LDADD_dbm_db="$LDADD_dbm_db $i" 18838 fi 18839 done 18840 fi 18841 18842 fi 18843 fi 18844 18845 if test "$apu_have_gdbm" = "1"; then 18846 18847 if test "x$LDADD_dbm_gdbm" = "x"; then 18848 test "x$silent" != "xyes" && echo " setting LDADD_dbm_gdbm to \"-lgdbm\"" 18849 LDADD_dbm_gdbm="-lgdbm" 18850 else 18851 apr_addto_bugger="-lgdbm" 18852 for i in $apr_addto_bugger; do 18853 apr_addto_duplicate="0" 18854 for j in $LDADD_dbm_gdbm; do 18855 if test "x$i" = "x$j"; then 18856 apr_addto_duplicate="1" 18857 break 18858 fi 18859 done 18860 if test $apr_addto_duplicate = "0"; then 18861 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbm_gdbm" 18862 LDADD_dbm_gdbm="$LDADD_dbm_gdbm $i" 18863 fi 18864 done 18865 fi 18866 18867 fi 18868 18869 if test "$apu_have_ndbm" = "1"; then 18870 18871 if test "x$LDADD_dbm_ndbm" = "x"; then 18872 test "x$silent" != "xyes" && echo " setting LDADD_dbm_ndbm to \"-l$apu_ndbm_lib\"" 18873 LDADD_dbm_ndbm="-l$apu_ndbm_lib" 18874 else 18875 apr_addto_bugger="-l$apu_ndbm_lib" 18876 for i in $apr_addto_bugger; do 18877 apr_addto_duplicate="0" 18878 for j in $LDADD_dbm_ndbm; do 18879 if test "x$i" = "x$j"; then 18880 apr_addto_duplicate="1" 18881 break 18882 fi 18883 done 18884 if test $apr_addto_duplicate = "0"; then 18885 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbm_ndbm" 18886 LDADD_dbm_ndbm="$LDADD_dbm_ndbm $i" 18887 fi 18888 done 18889 fi 18890 18891 fi 18892 18893 18894 18895 18896 18897 18898 apu_have_pgsql=0 18899 18900 old_libs="$LIBS" 18901 old_cppflags="$CPPFLAGS" 18902 old_ldflags="$LDFLAGS" 18903 18904 18905# Check whether --with-pgsql was given. 18906if test "${with_pgsql+set}" = set; then : 18907 withval=$with_pgsql; 18908 if test "$withval" = "yes"; then 18909 # Extract the first word of "pg_config", so it can be a program name with args. 18910set dummy pg_config; ac_word=$2 18911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18912$as_echo_n "checking for $ac_word... " >&6; } 18913if ${ac_cv_path_PGSQL_CONFIG+:} false; then : 18914 $as_echo_n "(cached) " >&6 18915else 18916 case $PGSQL_CONFIG in 18917 [\\/]* | ?:[\\/]*) 18918 ac_cv_path_PGSQL_CONFIG="$PGSQL_CONFIG" # Let the user override the test with a path. 18919 ;; 18920 *) 18921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18922for as_dir in $PATH 18923do 18924 IFS=$as_save_IFS 18925 test -z "$as_dir" && as_dir=. 18926 for ac_exec_ext in '' $ac_executable_extensions; do 18927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18928 ac_cv_path_PGSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18930 break 2 18931 fi 18932done 18933 done 18934IFS=$as_save_IFS 18935 18936 ;; 18937esac 18938fi 18939PGSQL_CONFIG=$ac_cv_path_PGSQL_CONFIG 18940if test -n "$PGSQL_CONFIG"; then 18941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGSQL_CONFIG" >&5 18942$as_echo "$PGSQL_CONFIG" >&6; } 18943else 18944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18945$as_echo "no" >&6; } 18946fi 18947 18948 18949 if test "x$PGSQL_CONFIG" != 'x'; then 18950 pgsql_CPPFLAGS="-I`$PGSQL_CONFIG --includedir`" 18951 pgsql_LDFLAGS="-L`$PGSQL_CONFIG --libdir`" 18952 18953 18954 if test "x$CPPFLAGS" = "x"; then 18955 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$pgsql_CPPFLAGS\"" 18956 CPPFLAGS="$pgsql_CPPFLAGS" 18957 else 18958 apr_addto_bugger="$pgsql_CPPFLAGS" 18959 for i in $apr_addto_bugger; do 18960 apr_addto_duplicate="0" 18961 for j in $CPPFLAGS; do 18962 if test "x$i" = "x$j"; then 18963 apr_addto_duplicate="1" 18964 break 18965 fi 18966 done 18967 if test $apr_addto_duplicate = "0"; then 18968 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 18969 CPPFLAGS="$CPPFLAGS $i" 18970 fi 18971 done 18972 fi 18973 18974 18975 if test "x$LDFLAGS" = "x"; then 18976 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$pgsql_LDFLAGS\"" 18977 LDFLAGS="$pgsql_LDFLAGS" 18978 else 18979 apr_addto_bugger="$pgsql_LDFLAGS" 18980 for i in $apr_addto_bugger; do 18981 apr_addto_duplicate="0" 18982 for j in $LDFLAGS; do 18983 if test "x$i" = "x$j"; then 18984 apr_addto_duplicate="1" 18985 break 18986 fi 18987 done 18988 if test $apr_addto_duplicate = "0"; then 18989 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 18990 LDFLAGS="$LDFLAGS $i" 18991 fi 18992 done 18993 fi 18994 18995 fi 18996 18997 for ac_header in libpq-fe.h 18998do : 18999 ac_fn_c_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default" 19000if test "x$ac_cv_header_libpq_fe_h" = xyes; then : 19001 cat >>confdefs.h <<_ACEOF 19002#define HAVE_LIBPQ_FE_H 1 19003_ACEOF 19004 19005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 19006$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } 19007if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : 19008 $as_echo_n "(cached) " >&6 19009else 19010 ac_check_lib_save_LIBS=$LIBS 19011LIBS="-lpq $LIBS" 19012cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19013/* end confdefs.h. */ 19014 19015/* Override any GCC internal prototype to avoid an error. 19016 Use char because int might match the return type of a GCC 19017 builtin and then its argument prototype would still apply. */ 19018#ifdef __cplusplus 19019extern "C" 19020#endif 19021char PQsendQueryPrepared (); 19022int 19023main () 19024{ 19025return PQsendQueryPrepared (); 19026 ; 19027 return 0; 19028} 19029_ACEOF 19030if ac_fn_c_try_link "$LINENO"; then : 19031 ac_cv_lib_pq_PQsendQueryPrepared=yes 19032else 19033 ac_cv_lib_pq_PQsendQueryPrepared=no 19034fi 19035rm -f core conftest.err conftest.$ac_objext \ 19036 conftest$ac_exeext conftest.$ac_ext 19037LIBS=$ac_check_lib_save_LIBS 19038fi 19039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 19040$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } 19041if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : 19042 apu_have_pgsql=1 19043else 19044 19045 if test "x$PGSQL_CONFIG" != 'x'; then 19046 unset ac_cv_lib_pq_PQsendQueryPrepared 19047 pgsql_LIBS="`$PGSQL_CONFIG --libs`" 19048 19049 if test "x$LIBS" = "x"; then 19050 test "x$silent" != "xyes" && echo " setting LIBS to \"$pgsql_LIBS\"" 19051 LIBS="$pgsql_LIBS" 19052 else 19053 apr_addto_bugger="$pgsql_LIBS" 19054 for i in $apr_addto_bugger; do 19055 apr_addto_duplicate="0" 19056 for j in $LIBS; do 19057 if test "x$i" = "x$j"; then 19058 apr_addto_duplicate="1" 19059 break 19060 fi 19061 done 19062 if test $apr_addto_duplicate = "0"; then 19063 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 19064 LIBS="$LIBS $i" 19065 fi 19066 done 19067 fi 19068 19069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 19070$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } 19071if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : 19072 $as_echo_n "(cached) " >&6 19073else 19074 ac_check_lib_save_LIBS=$LIBS 19075LIBS="-lpq $LIBS" 19076cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19077/* end confdefs.h. */ 19078 19079/* Override any GCC internal prototype to avoid an error. 19080 Use char because int might match the return type of a GCC 19081 builtin and then its argument prototype would still apply. */ 19082#ifdef __cplusplus 19083extern "C" 19084#endif 19085char PQsendQueryPrepared (); 19086int 19087main () 19088{ 19089return PQsendQueryPrepared (); 19090 ; 19091 return 0; 19092} 19093_ACEOF 19094if ac_fn_c_try_link "$LINENO"; then : 19095 ac_cv_lib_pq_PQsendQueryPrepared=yes 19096else 19097 ac_cv_lib_pq_PQsendQueryPrepared=no 19098fi 19099rm -f core conftest.err conftest.$ac_objext \ 19100 conftest$ac_exeext conftest.$ac_ext 19101LIBS=$ac_check_lib_save_LIBS 19102fi 19103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 19104$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } 19105if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : 19106 apu_have_pgsql=1 19107fi 19108 19109 fi 19110 19111fi 19112 19113 19114fi 19115 19116done 19117 19118 if test "$apu_have_pgsql" = "0"; then 19119 for ac_header in postgresql/libpq-fe.h 19120do : 19121 ac_fn_c_check_header_mongrel "$LINENO" "postgresql/libpq-fe.h" "ac_cv_header_postgresql_libpq_fe_h" "$ac_includes_default" 19122if test "x$ac_cv_header_postgresql_libpq_fe_h" = xyes; then : 19123 cat >>confdefs.h <<_ACEOF 19124#define HAVE_POSTGRESQL_LIBPQ_FE_H 1 19125_ACEOF 19126 19127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 19128$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } 19129if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : 19130 $as_echo_n "(cached) " >&6 19131else 19132 ac_check_lib_save_LIBS=$LIBS 19133LIBS="-lpq $LIBS" 19134cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19135/* end confdefs.h. */ 19136 19137/* Override any GCC internal prototype to avoid an error. 19138 Use char because int might match the return type of a GCC 19139 builtin and then its argument prototype would still apply. */ 19140#ifdef __cplusplus 19141extern "C" 19142#endif 19143char PQsendQueryPrepared (); 19144int 19145main () 19146{ 19147return PQsendQueryPrepared (); 19148 ; 19149 return 0; 19150} 19151_ACEOF 19152if ac_fn_c_try_link "$LINENO"; then : 19153 ac_cv_lib_pq_PQsendQueryPrepared=yes 19154else 19155 ac_cv_lib_pq_PQsendQueryPrepared=no 19156fi 19157rm -f core conftest.err conftest.$ac_objext \ 19158 conftest$ac_exeext conftest.$ac_ext 19159LIBS=$ac_check_lib_save_LIBS 19160fi 19161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 19162$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } 19163if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : 19164 apu_have_pgsql=1 19165else 19166 19167 if test "x$PGSQL_CONFIG" != 'x'; then 19168 unset ac_cv_lib_pq_PQsendQueryPrepared 19169 pgsql_LIBS="`$PGSQL_CONFIG --libs`" 19170 19171 if test "x$LIBS" = "x"; then 19172 test "x$silent" != "xyes" && echo " setting LIBS to \"$pgsql_LIBS\"" 19173 LIBS="$pgsql_LIBS" 19174 else 19175 apr_addto_bugger="$pgsql_LIBS" 19176 for i in $apr_addto_bugger; do 19177 apr_addto_duplicate="0" 19178 for j in $LIBS; 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 LIBS" 19186 LIBS="$LIBS $i" 19187 fi 19188 done 19189 fi 19190 19191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 19192$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } 19193if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : 19194 $as_echo_n "(cached) " >&6 19195else 19196 ac_check_lib_save_LIBS=$LIBS 19197LIBS="-lpq $LIBS" 19198cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19199/* end confdefs.h. */ 19200 19201/* Override any GCC internal prototype to avoid an error. 19202 Use char because int might match the return type of a GCC 19203 builtin and then its argument prototype would still apply. */ 19204#ifdef __cplusplus 19205extern "C" 19206#endif 19207char PQsendQueryPrepared (); 19208int 19209main () 19210{ 19211return PQsendQueryPrepared (); 19212 ; 19213 return 0; 19214} 19215_ACEOF 19216if ac_fn_c_try_link "$LINENO"; then : 19217 ac_cv_lib_pq_PQsendQueryPrepared=yes 19218else 19219 ac_cv_lib_pq_PQsendQueryPrepared=no 19220fi 19221rm -f core conftest.err conftest.$ac_objext \ 19222 conftest$ac_exeext conftest.$ac_ext 19223LIBS=$ac_check_lib_save_LIBS 19224fi 19225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 19226$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } 19227if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : 19228 apu_have_pgsql=1 19229fi 19230 19231 fi 19232 19233fi 19234 19235 19236fi 19237 19238done 19239 19240 fi 19241 if test "$apu_have_pgsql" != "0" && test "x$PGSQL_CONFIG" != 'x'; then 19242 19243 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 19244 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"$pgsql_CPPFLAGS\"" 19245 APRUTIL_PRIV_INCLUDES="$pgsql_CPPFLAGS" 19246 else 19247 apr_addto_bugger="$pgsql_CPPFLAGS" 19248 for i in $apr_addto_bugger; do 19249 apr_addto_duplicate="0" 19250 for j in $APRUTIL_PRIV_INCLUDES; do 19251 if test "x$i" = "x$j"; then 19252 apr_addto_duplicate="1" 19253 break 19254 fi 19255 done 19256 if test $apr_addto_duplicate = "0"; then 19257 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 19258 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 19259 fi 19260 done 19261 fi 19262 19263 fi 19264 elif test "$withval" = "no"; then 19265 : 19266 else 19267 # Extract the first word of "pg_config", so it can be a program name with args. 19268set dummy pg_config; ac_word=$2 19269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19270$as_echo_n "checking for $ac_word... " >&6; } 19271if ${ac_cv_path_PGSQL_CONFIG+:} false; then : 19272 $as_echo_n "(cached) " >&6 19273else 19274 case $PGSQL_CONFIG in 19275 [\\/]* | ?:[\\/]*) 19276 ac_cv_path_PGSQL_CONFIG="$PGSQL_CONFIG" # Let the user override the test with a path. 19277 ;; 19278 *) 19279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19280for as_dir in $withval/bin 19281do 19282 IFS=$as_save_IFS 19283 test -z "$as_dir" && as_dir=. 19284 for ac_exec_ext in '' $ac_executable_extensions; do 19285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19286 ac_cv_path_PGSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19288 break 2 19289 fi 19290done 19291 done 19292IFS=$as_save_IFS 19293 19294 ;; 19295esac 19296fi 19297PGSQL_CONFIG=$ac_cv_path_PGSQL_CONFIG 19298if test -n "$PGSQL_CONFIG"; then 19299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGSQL_CONFIG" >&5 19300$as_echo "$PGSQL_CONFIG" >&6; } 19301else 19302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19303$as_echo "no" >&6; } 19304fi 19305 19306 19307 if test "x$PGSQL_CONFIG" != 'x'; then 19308 pgsql_CPPFLAGS="-I`$PGSQL_CONFIG --includedir`" 19309 pgsql_LDFLAGS="-L`$PGSQL_CONFIG --libdir`" 19310 else 19311 pgsql_CPPFLAGS="-I$withval/include" 19312 pgsql_LDFLAGS="-L$withval/lib " 19313 fi 19314 19315 19316 if test "x$CPPFLAGS" = "x"; then 19317 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$pgsql_CPPFLAGS\"" 19318 CPPFLAGS="$pgsql_CPPFLAGS" 19319 else 19320 apr_addto_bugger="$pgsql_CPPFLAGS" 19321 for i in $apr_addto_bugger; do 19322 apr_addto_duplicate="0" 19323 for j in $CPPFLAGS; do 19324 if test "x$i" = "x$j"; then 19325 apr_addto_duplicate="1" 19326 break 19327 fi 19328 done 19329 if test $apr_addto_duplicate = "0"; then 19330 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 19331 CPPFLAGS="$CPPFLAGS $i" 19332 fi 19333 done 19334 fi 19335 19336 19337 if test "x$LDFLAGS" = "x"; then 19338 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$pgsql_LDFLAGS\"" 19339 LDFLAGS="$pgsql_LDFLAGS" 19340 else 19341 apr_addto_bugger="$pgsql_LDFLAGS" 19342 for i in $apr_addto_bugger; do 19343 apr_addto_duplicate="0" 19344 for j in $LDFLAGS; do 19345 if test "x$i" = "x$j"; then 19346 apr_addto_duplicate="1" 19347 break 19348 fi 19349 done 19350 if test $apr_addto_duplicate = "0"; then 19351 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 19352 LDFLAGS="$LDFLAGS $i" 19353 fi 19354 done 19355 fi 19356 19357 19358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pgsql in $withval" >&5 19359$as_echo "$as_me: checking for pgsql in $withval" >&6;} 19360 for ac_header in libpq-fe.h 19361do : 19362 ac_fn_c_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default" 19363if test "x$ac_cv_header_libpq_fe_h" = xyes; then : 19364 cat >>confdefs.h <<_ACEOF 19365#define HAVE_LIBPQ_FE_H 1 19366_ACEOF 19367 19368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 19369$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } 19370if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : 19371 $as_echo_n "(cached) " >&6 19372else 19373 ac_check_lib_save_LIBS=$LIBS 19374LIBS="-lpq $LIBS" 19375cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19376/* end confdefs.h. */ 19377 19378/* Override any GCC internal prototype to avoid an error. 19379 Use char because int might match the return type of a GCC 19380 builtin and then its argument prototype would still apply. */ 19381#ifdef __cplusplus 19382extern "C" 19383#endif 19384char PQsendQueryPrepared (); 19385int 19386main () 19387{ 19388return PQsendQueryPrepared (); 19389 ; 19390 return 0; 19391} 19392_ACEOF 19393if ac_fn_c_try_link "$LINENO"; then : 19394 ac_cv_lib_pq_PQsendQueryPrepared=yes 19395else 19396 ac_cv_lib_pq_PQsendQueryPrepared=no 19397fi 19398rm -f core conftest.err conftest.$ac_objext \ 19399 conftest$ac_exeext conftest.$ac_ext 19400LIBS=$ac_check_lib_save_LIBS 19401fi 19402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 19403$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } 19404if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : 19405 apu_have_pgsql=1 19406else 19407 19408 if test "x$PGSQL_CONFIG" != 'x'; then 19409 unset ac_cv_lib_pq_PQsendQueryPrepared 19410 pgsql_LIBS="`$PGSQL_CONFIG --libs`" 19411 19412 if test "x$LIBS" = "x"; then 19413 test "x$silent" != "xyes" && echo " setting LIBS to \"$pgsql_LIBS\"" 19414 LIBS="$pgsql_LIBS" 19415 else 19416 apr_addto_bugger="$pgsql_LIBS" 19417 for i in $apr_addto_bugger; do 19418 apr_addto_duplicate="0" 19419 for j in $LIBS; do 19420 if test "x$i" = "x$j"; then 19421 apr_addto_duplicate="1" 19422 break 19423 fi 19424 done 19425 if test $apr_addto_duplicate = "0"; then 19426 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 19427 LIBS="$LIBS $i" 19428 fi 19429 done 19430 fi 19431 19432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 19433$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } 19434if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : 19435 $as_echo_n "(cached) " >&6 19436else 19437 ac_check_lib_save_LIBS=$LIBS 19438LIBS="-lpq $LIBS" 19439cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19440/* end confdefs.h. */ 19441 19442/* Override any GCC internal prototype to avoid an error. 19443 Use char because int might match the return type of a GCC 19444 builtin and then its argument prototype would still apply. */ 19445#ifdef __cplusplus 19446extern "C" 19447#endif 19448char PQsendQueryPrepared (); 19449int 19450main () 19451{ 19452return PQsendQueryPrepared (); 19453 ; 19454 return 0; 19455} 19456_ACEOF 19457if ac_fn_c_try_link "$LINENO"; then : 19458 ac_cv_lib_pq_PQsendQueryPrepared=yes 19459else 19460 ac_cv_lib_pq_PQsendQueryPrepared=no 19461fi 19462rm -f core conftest.err conftest.$ac_objext \ 19463 conftest$ac_exeext conftest.$ac_ext 19464LIBS=$ac_check_lib_save_LIBS 19465fi 19466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 19467$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } 19468if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : 19469 apu_have_pgsql=1 19470fi 19471 19472 fi 19473 19474fi 19475 19476 19477fi 19478 19479done 19480 19481 if test "$apu_have_pgsql" != "1"; then 19482 for ac_header in postgresql/libpq-fe.h 19483do : 19484 ac_fn_c_check_header_mongrel "$LINENO" "postgresql/libpq-fe.h" "ac_cv_header_postgresql_libpq_fe_h" "$ac_includes_default" 19485if test "x$ac_cv_header_postgresql_libpq_fe_h" = xyes; then : 19486 cat >>confdefs.h <<_ACEOF 19487#define HAVE_POSTGRESQL_LIBPQ_FE_H 1 19488_ACEOF 19489 19490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 19491$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } 19492if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : 19493 $as_echo_n "(cached) " >&6 19494else 19495 ac_check_lib_save_LIBS=$LIBS 19496LIBS="-lpq $LIBS" 19497cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19498/* end confdefs.h. */ 19499 19500/* Override any GCC internal prototype to avoid an error. 19501 Use char because int might match the return type of a GCC 19502 builtin and then its argument prototype would still apply. */ 19503#ifdef __cplusplus 19504extern "C" 19505#endif 19506char PQsendQueryPrepared (); 19507int 19508main () 19509{ 19510return PQsendQueryPrepared (); 19511 ; 19512 return 0; 19513} 19514_ACEOF 19515if ac_fn_c_try_link "$LINENO"; then : 19516 ac_cv_lib_pq_PQsendQueryPrepared=yes 19517else 19518 ac_cv_lib_pq_PQsendQueryPrepared=no 19519fi 19520rm -f core conftest.err conftest.$ac_objext \ 19521 conftest$ac_exeext conftest.$ac_ext 19522LIBS=$ac_check_lib_save_LIBS 19523fi 19524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 19525$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } 19526if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : 19527 apu_have_pgsql=1 19528else 19529 19530 if test "x$PGSQL_CONFIG" != 'x'; then 19531 unset ac_cv_lib_pq_PQsendQueryPrepared 19532 pgsql_LIBS="`$PGSQL_CONFIG --libs`" 19533 19534 if test "x$LIBS" = "x"; then 19535 test "x$silent" != "xyes" && echo " setting LIBS to \"$pgsql_LIBS\"" 19536 LIBS="$pgsql_LIBS" 19537 else 19538 apr_addto_bugger="$pgsql_LIBS" 19539 for i in $apr_addto_bugger; do 19540 apr_addto_duplicate="0" 19541 for j in $LIBS; do 19542 if test "x$i" = "x$j"; then 19543 apr_addto_duplicate="1" 19544 break 19545 fi 19546 done 19547 if test $apr_addto_duplicate = "0"; then 19548 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 19549 LIBS="$LIBS $i" 19550 fi 19551 done 19552 fi 19553 19554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 19555$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } 19556if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : 19557 $as_echo_n "(cached) " >&6 19558else 19559 ac_check_lib_save_LIBS=$LIBS 19560LIBS="-lpq $LIBS" 19561cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19562/* end confdefs.h. */ 19563 19564/* Override any GCC internal prototype to avoid an error. 19565 Use char because int might match the return type of a GCC 19566 builtin and then its argument prototype would still apply. */ 19567#ifdef __cplusplus 19568extern "C" 19569#endif 19570char PQsendQueryPrepared (); 19571int 19572main () 19573{ 19574return PQsendQueryPrepared (); 19575 ; 19576 return 0; 19577} 19578_ACEOF 19579if ac_fn_c_try_link "$LINENO"; then : 19580 ac_cv_lib_pq_PQsendQueryPrepared=yes 19581else 19582 ac_cv_lib_pq_PQsendQueryPrepared=no 19583fi 19584rm -f core conftest.err conftest.$ac_objext \ 19585 conftest$ac_exeext conftest.$ac_ext 19586LIBS=$ac_check_lib_save_LIBS 19587fi 19588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 19589$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } 19590if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : 19591 apu_have_pgsql=1 19592fi 19593 19594 fi 19595 19596fi 19597 19598 19599fi 19600 19601done 19602 19603 fi 19604 if test "$apu_have_pgsql" != "0"; then 19605 19606 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 19607 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"$pgsql_CPPFLAGS\"" 19608 APRUTIL_PRIV_INCLUDES="$pgsql_CPPFLAGS" 19609 else 19610 apr_addto_bugger="$pgsql_CPPFLAGS" 19611 for i in $apr_addto_bugger; do 19612 apr_addto_duplicate="0" 19613 for j in $APRUTIL_PRIV_INCLUDES; do 19614 if test "x$i" = "x$j"; then 19615 apr_addto_duplicate="1" 19616 break 19617 fi 19618 done 19619 if test $apr_addto_duplicate = "0"; then 19620 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 19621 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 19622 fi 19623 done 19624 fi 19625 19626 fi 19627 fi 19628 19629else 19630 19631 # Extract the first word of "pg_config", so it can be a program name with args. 19632set dummy pg_config; ac_word=$2 19633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19634$as_echo_n "checking for $ac_word... " >&6; } 19635if ${ac_cv_path_PGSQL_CONFIG+:} false; then : 19636 $as_echo_n "(cached) " >&6 19637else 19638 case $PGSQL_CONFIG in 19639 [\\/]* | ?:[\\/]*) 19640 ac_cv_path_PGSQL_CONFIG="$PGSQL_CONFIG" # Let the user override the test with a path. 19641 ;; 19642 *) 19643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19644for as_dir in $PATH 19645do 19646 IFS=$as_save_IFS 19647 test -z "$as_dir" && as_dir=. 19648 for ac_exec_ext in '' $ac_executable_extensions; do 19649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19650 ac_cv_path_PGSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19652 break 2 19653 fi 19654done 19655 done 19656IFS=$as_save_IFS 19657 19658 ;; 19659esac 19660fi 19661PGSQL_CONFIG=$ac_cv_path_PGSQL_CONFIG 19662if test -n "$PGSQL_CONFIG"; then 19663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGSQL_CONFIG" >&5 19664$as_echo "$PGSQL_CONFIG" >&6; } 19665else 19666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19667$as_echo "no" >&6; } 19668fi 19669 19670 19671 if test "x$PGSQL_CONFIG" != 'x'; then 19672 pgsql_CPPFLAGS="-I`$PGSQL_CONFIG --includedir`" 19673 pgsql_LDFLAGS="-L`$PGSQL_CONFIG --libdir`" 19674 19675 19676 if test "x$CPPFLAGS" = "x"; then 19677 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$pgsql_CPPFLAGS\"" 19678 CPPFLAGS="$pgsql_CPPFLAGS" 19679 else 19680 apr_addto_bugger="$pgsql_CPPFLAGS" 19681 for i in $apr_addto_bugger; do 19682 apr_addto_duplicate="0" 19683 for j in $CPPFLAGS; do 19684 if test "x$i" = "x$j"; then 19685 apr_addto_duplicate="1" 19686 break 19687 fi 19688 done 19689 if test $apr_addto_duplicate = "0"; then 19690 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 19691 CPPFLAGS="$CPPFLAGS $i" 19692 fi 19693 done 19694 fi 19695 19696 19697 if test "x$LDFLAGS" = "x"; then 19698 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$pgsql_LDFLAGS\"" 19699 LDFLAGS="$pgsql_LDFLAGS" 19700 else 19701 apr_addto_bugger="$pgsql_LDFLAGS" 19702 for i in $apr_addto_bugger; do 19703 apr_addto_duplicate="0" 19704 for j in $LDFLAGS; do 19705 if test "x$i" = "x$j"; then 19706 apr_addto_duplicate="1" 19707 break 19708 fi 19709 done 19710 if test $apr_addto_duplicate = "0"; then 19711 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 19712 LDFLAGS="$LDFLAGS $i" 19713 fi 19714 done 19715 fi 19716 19717 fi 19718 19719 for ac_header in libpq-fe.h 19720do : 19721 ac_fn_c_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default" 19722if test "x$ac_cv_header_libpq_fe_h" = xyes; then : 19723 cat >>confdefs.h <<_ACEOF 19724#define HAVE_LIBPQ_FE_H 1 19725_ACEOF 19726 19727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 19728$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } 19729if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : 19730 $as_echo_n "(cached) " >&6 19731else 19732 ac_check_lib_save_LIBS=$LIBS 19733LIBS="-lpq $LIBS" 19734cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19735/* end confdefs.h. */ 19736 19737/* Override any GCC internal prototype to avoid an error. 19738 Use char because int might match the return type of a GCC 19739 builtin and then its argument prototype would still apply. */ 19740#ifdef __cplusplus 19741extern "C" 19742#endif 19743char PQsendQueryPrepared (); 19744int 19745main () 19746{ 19747return PQsendQueryPrepared (); 19748 ; 19749 return 0; 19750} 19751_ACEOF 19752if ac_fn_c_try_link "$LINENO"; then : 19753 ac_cv_lib_pq_PQsendQueryPrepared=yes 19754else 19755 ac_cv_lib_pq_PQsendQueryPrepared=no 19756fi 19757rm -f core conftest.err conftest.$ac_objext \ 19758 conftest$ac_exeext conftest.$ac_ext 19759LIBS=$ac_check_lib_save_LIBS 19760fi 19761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 19762$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } 19763if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : 19764 apu_have_pgsql=1 19765else 19766 19767 if test "x$PGSQL_CONFIG" != 'x'; then 19768 unset ac_cv_lib_pq_PQsendQueryPrepared 19769 pgsql_LIBS="`$PGSQL_CONFIG --libs`" 19770 19771 if test "x$LIBS" = "x"; then 19772 test "x$silent" != "xyes" && echo " setting LIBS to \"$pgsql_LIBS\"" 19773 LIBS="$pgsql_LIBS" 19774 else 19775 apr_addto_bugger="$pgsql_LIBS" 19776 for i in $apr_addto_bugger; do 19777 apr_addto_duplicate="0" 19778 for j in $LIBS; do 19779 if test "x$i" = "x$j"; then 19780 apr_addto_duplicate="1" 19781 break 19782 fi 19783 done 19784 if test $apr_addto_duplicate = "0"; then 19785 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 19786 LIBS="$LIBS $i" 19787 fi 19788 done 19789 fi 19790 19791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 19792$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } 19793if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : 19794 $as_echo_n "(cached) " >&6 19795else 19796 ac_check_lib_save_LIBS=$LIBS 19797LIBS="-lpq $LIBS" 19798cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19799/* end confdefs.h. */ 19800 19801/* Override any GCC internal prototype to avoid an error. 19802 Use char because int might match the return type of a GCC 19803 builtin and then its argument prototype would still apply. */ 19804#ifdef __cplusplus 19805extern "C" 19806#endif 19807char PQsendQueryPrepared (); 19808int 19809main () 19810{ 19811return PQsendQueryPrepared (); 19812 ; 19813 return 0; 19814} 19815_ACEOF 19816if ac_fn_c_try_link "$LINENO"; then : 19817 ac_cv_lib_pq_PQsendQueryPrepared=yes 19818else 19819 ac_cv_lib_pq_PQsendQueryPrepared=no 19820fi 19821rm -f core conftest.err conftest.$ac_objext \ 19822 conftest$ac_exeext conftest.$ac_ext 19823LIBS=$ac_check_lib_save_LIBS 19824fi 19825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 19826$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } 19827if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : 19828 apu_have_pgsql=1 19829fi 19830 19831 fi 19832 19833fi 19834 19835 19836fi 19837 19838done 19839 19840 if test "$apu_have_pgsql" = "0"; then 19841 for ac_header in postgresql/libpq-fe.h 19842do : 19843 ac_fn_c_check_header_mongrel "$LINENO" "postgresql/libpq-fe.h" "ac_cv_header_postgresql_libpq_fe_h" "$ac_includes_default" 19844if test "x$ac_cv_header_postgresql_libpq_fe_h" = xyes; then : 19845 cat >>confdefs.h <<_ACEOF 19846#define HAVE_POSTGRESQL_LIBPQ_FE_H 1 19847_ACEOF 19848 19849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 19850$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } 19851if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : 19852 $as_echo_n "(cached) " >&6 19853else 19854 ac_check_lib_save_LIBS=$LIBS 19855LIBS="-lpq $LIBS" 19856cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19857/* end confdefs.h. */ 19858 19859/* Override any GCC internal prototype to avoid an error. 19860 Use char because int might match the return type of a GCC 19861 builtin and then its argument prototype would still apply. */ 19862#ifdef __cplusplus 19863extern "C" 19864#endif 19865char PQsendQueryPrepared (); 19866int 19867main () 19868{ 19869return PQsendQueryPrepared (); 19870 ; 19871 return 0; 19872} 19873_ACEOF 19874if ac_fn_c_try_link "$LINENO"; then : 19875 ac_cv_lib_pq_PQsendQueryPrepared=yes 19876else 19877 ac_cv_lib_pq_PQsendQueryPrepared=no 19878fi 19879rm -f core conftest.err conftest.$ac_objext \ 19880 conftest$ac_exeext conftest.$ac_ext 19881LIBS=$ac_check_lib_save_LIBS 19882fi 19883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 19884$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } 19885if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : 19886 apu_have_pgsql=1 19887else 19888 19889 if test "x$PGSQL_CONFIG" != 'x'; then 19890 unset ac_cv_lib_pq_PQsendQueryPrepared 19891 pgsql_LIBS="`$PGSQL_CONFIG --libs`" 19892 19893 if test "x$LIBS" = "x"; then 19894 test "x$silent" != "xyes" && echo " setting LIBS to \"$pgsql_LIBS\"" 19895 LIBS="$pgsql_LIBS" 19896 else 19897 apr_addto_bugger="$pgsql_LIBS" 19898 for i in $apr_addto_bugger; do 19899 apr_addto_duplicate="0" 19900 for j in $LIBS; do 19901 if test "x$i" = "x$j"; then 19902 apr_addto_duplicate="1" 19903 break 19904 fi 19905 done 19906 if test $apr_addto_duplicate = "0"; then 19907 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 19908 LIBS="$LIBS $i" 19909 fi 19910 done 19911 fi 19912 19913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 19914$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } 19915if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : 19916 $as_echo_n "(cached) " >&6 19917else 19918 ac_check_lib_save_LIBS=$LIBS 19919LIBS="-lpq $LIBS" 19920cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19921/* end confdefs.h. */ 19922 19923/* Override any GCC internal prototype to avoid an error. 19924 Use char because int might match the return type of a GCC 19925 builtin and then its argument prototype would still apply. */ 19926#ifdef __cplusplus 19927extern "C" 19928#endif 19929char PQsendQueryPrepared (); 19930int 19931main () 19932{ 19933return PQsendQueryPrepared (); 19934 ; 19935 return 0; 19936} 19937_ACEOF 19938if ac_fn_c_try_link "$LINENO"; then : 19939 ac_cv_lib_pq_PQsendQueryPrepared=yes 19940else 19941 ac_cv_lib_pq_PQsendQueryPrepared=no 19942fi 19943rm -f core conftest.err conftest.$ac_objext \ 19944 conftest$ac_exeext conftest.$ac_ext 19945LIBS=$ac_check_lib_save_LIBS 19946fi 19947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 19948$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } 19949if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : 19950 apu_have_pgsql=1 19951fi 19952 19953 fi 19954 19955fi 19956 19957 19958fi 19959 19960done 19961 19962 fi 19963 if test "$apu_have_pgsql" != "0" && test "x$PGSQL_CONFIG" != 'x'; then 19964 19965 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 19966 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"$pgsql_CPPFLAGS\"" 19967 APRUTIL_PRIV_INCLUDES="$pgsql_CPPFLAGS" 19968 else 19969 apr_addto_bugger="$pgsql_CPPFLAGS" 19970 for i in $apr_addto_bugger; do 19971 apr_addto_duplicate="0" 19972 for j in $APRUTIL_PRIV_INCLUDES; do 19973 if test "x$i" = "x$j"; then 19974 apr_addto_duplicate="1" 19975 break 19976 fi 19977 done 19978 if test $apr_addto_duplicate = "0"; then 19979 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 19980 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 19981 fi 19982 done 19983 fi 19984 19985 fi 19986 19987fi 19988 19989 19990 if test "$apu_have_pgsql" = "1"; then 19991 19992 if test "x$LDADD_dbd_pgsql" = "x"; then 19993 test "x$silent" != "xyes" && echo " setting LDADD_dbd_pgsql to \"$pgsql_LDFLAGS -lpq $pgsql_LIBS\"" 19994 LDADD_dbd_pgsql="$pgsql_LDFLAGS -lpq $pgsql_LIBS" 19995 else 19996 apr_addto_bugger="$pgsql_LDFLAGS -lpq $pgsql_LIBS" 19997 for i in $apr_addto_bugger; do 19998 apr_addto_duplicate="0" 19999 for j in $LDADD_dbd_pgsql; do 20000 if test "x$i" = "x$j"; then 20001 apr_addto_duplicate="1" 20002 break 20003 fi 20004 done 20005 if test $apr_addto_duplicate = "0"; then 20006 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbd_pgsql" 20007 LDADD_dbd_pgsql="$LDADD_dbd_pgsql $i" 20008 fi 20009 done 20010 fi 20011 20012 fi 20013 20014 20015 LIBS="$old_libs" 20016 CPPFLAGS="$old_cppflags" 20017 LDFLAGS="$old_ldflags" 20018 20019 20020 apu_have_mysql=0 20021 20022 old_libs="$LIBS" 20023 old_cppflags="$CPPFLAGS" 20024 old_ldflags="$LDFLAGS" 20025 20026 20027# Check whether --with-mysql was given. 20028if test "${with_mysql+set}" = set; then : 20029 withval=$with_mysql; 20030 if test "$withval" = "yes"; then 20031 # Extract the first word of "mysql_config", so it can be a program name with args. 20032set dummy mysql_config; ac_word=$2 20033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20034$as_echo_n "checking for $ac_word... " >&6; } 20035if ${ac_cv_path_MYSQL_CONFIG+:} false; then : 20036 $as_echo_n "(cached) " >&6 20037else 20038 case $MYSQL_CONFIG in 20039 [\\/]* | ?:[\\/]*) 20040 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path. 20041 ;; 20042 *) 20043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20044for as_dir in $PATH 20045do 20046 IFS=$as_save_IFS 20047 test -z "$as_dir" && as_dir=. 20048 for ac_exec_ext in '' $ac_executable_extensions; do 20049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20050 ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20052 break 2 20053 fi 20054done 20055 done 20056IFS=$as_save_IFS 20057 20058 ;; 20059esac 20060fi 20061MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG 20062if test -n "$MYSQL_CONFIG"; then 20063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5 20064$as_echo "$MYSQL_CONFIG" >&6; } 20065else 20066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20067$as_echo "no" >&6; } 20068fi 20069 20070 20071 if test "x$MYSQL_CONFIG" != 'x'; then 20072 mysql_CPPFLAGS="`$MYSQL_CONFIG --include`" 20073 mysql_LDFLAGS="`$MYSQL_CONFIG --libs_r | sed -e 's/-l[^ ]\+//g'`" 20074 mysql_LIBS="`$MYSQL_CONFIG --libs_r`" 20075 20076 20077 if test "x$CPPFLAGS" = "x"; then 20078 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$mysql_CPPFLAGS\"" 20079 CPPFLAGS="$mysql_CPPFLAGS" 20080 else 20081 apr_addto_bugger="$mysql_CPPFLAGS" 20082 for i in $apr_addto_bugger; do 20083 apr_addto_duplicate="0" 20084 for j in $CPPFLAGS; do 20085 if test "x$i" = "x$j"; then 20086 apr_addto_duplicate="1" 20087 break 20088 fi 20089 done 20090 if test $apr_addto_duplicate = "0"; then 20091 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 20092 CPPFLAGS="$CPPFLAGS $i" 20093 fi 20094 done 20095 fi 20096 20097 20098 if test "x$LIBS" = "x"; then 20099 test "x$silent" != "xyes" && echo " setting LIBS to \"$mysql_LIBS\"" 20100 LIBS="$mysql_LIBS" 20101 else 20102 apr_addto_bugger="$mysql_LIBS" 20103 for i in $apr_addto_bugger; do 20104 apr_addto_duplicate="0" 20105 for j in $LIBS; do 20106 if test "x$i" = "x$j"; then 20107 apr_addto_duplicate="1" 20108 break 20109 fi 20110 done 20111 if test $apr_addto_duplicate = "0"; then 20112 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 20113 LIBS="$LIBS $i" 20114 fi 20115 done 20116 fi 20117 20118 fi 20119 20120 for ac_header in mysql.h my_global.h my_sys.h 20121do : 20122 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20123ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <my_global.h> 20124" 20125if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20126 cat >>confdefs.h <<_ACEOF 20127#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20128_ACEOF 20129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient" >&5 20130$as_echo_n "checking for mysql_init in -lmysqlclient... " >&6; } 20131if ${ac_cv_lib_mysqlclient_mysql_init+:} false; then : 20132 $as_echo_n "(cached) " >&6 20133else 20134 ac_check_lib_save_LIBS=$LIBS 20135LIBS="-lmysqlclient $LIBS" 20136cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20137/* end confdefs.h. */ 20138 20139/* Override any GCC internal prototype to avoid an error. 20140 Use char because int might match the return type of a GCC 20141 builtin and then its argument prototype would still apply. */ 20142#ifdef __cplusplus 20143extern "C" 20144#endif 20145char mysql_init (); 20146int 20147main () 20148{ 20149return mysql_init (); 20150 ; 20151 return 0; 20152} 20153_ACEOF 20154if ac_fn_c_try_link "$LINENO"; then : 20155 ac_cv_lib_mysqlclient_mysql_init=yes 20156else 20157 ac_cv_lib_mysqlclient_mysql_init=no 20158fi 20159rm -f core conftest.err conftest.$ac_objext \ 20160 conftest$ac_exeext conftest.$ac_ext 20161LIBS=$ac_check_lib_save_LIBS 20162fi 20163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_init" >&5 20164$as_echo "$ac_cv_lib_mysqlclient_mysql_init" >&6; } 20165if test "x$ac_cv_lib_mysqlclient_mysql_init" = xyes; then : 20166 apu_have_mysql=1 20167fi 20168 20169else 20170 apu_have_mysql=0; break 20171fi 20172 20173done 20174 20175 if test "$apu_have_mysql" = "0"; then 20176 for ac_header in mysql/mysql.h mysql/my_global.h mysql/my_sys.h 20177do : 20178 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20179ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <mysql/my_global.h> 20180" 20181if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20182 cat >>confdefs.h <<_ACEOF 20183#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20184_ACEOF 20185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient" >&5 20186$as_echo_n "checking for mysql_init in -lmysqlclient... " >&6; } 20187if ${ac_cv_lib_mysqlclient_mysql_init+:} false; then : 20188 $as_echo_n "(cached) " >&6 20189else 20190 ac_check_lib_save_LIBS=$LIBS 20191LIBS="-lmysqlclient $LIBS" 20192cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20193/* end confdefs.h. */ 20194 20195/* Override any GCC internal prototype to avoid an error. 20196 Use char because int might match the return type of a GCC 20197 builtin and then its argument prototype would still apply. */ 20198#ifdef __cplusplus 20199extern "C" 20200#endif 20201char mysql_init (); 20202int 20203main () 20204{ 20205return mysql_init (); 20206 ; 20207 return 0; 20208} 20209_ACEOF 20210if ac_fn_c_try_link "$LINENO"; then : 20211 ac_cv_lib_mysqlclient_mysql_init=yes 20212else 20213 ac_cv_lib_mysqlclient_mysql_init=no 20214fi 20215rm -f core conftest.err conftest.$ac_objext \ 20216 conftest$ac_exeext conftest.$ac_ext 20217LIBS=$ac_check_lib_save_LIBS 20218fi 20219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_init" >&5 20220$as_echo "$ac_cv_lib_mysqlclient_mysql_init" >&6; } 20221if test "x$ac_cv_lib_mysqlclient_mysql_init" = xyes; then : 20222 apu_have_mysql=1 20223fi 20224 20225else 20226 apu_have_mysql=0; break 20227fi 20228 20229done 20230 20231 fi 20232 if test "$apu_have_mysql" != "0" && test "x$MYSQL_CONFIG" != 'x'; then 20233 20234 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 20235 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"$mysql_CPPFLAGS\"" 20236 APRUTIL_PRIV_INCLUDES="$mysql_CPPFLAGS" 20237 else 20238 apr_addto_bugger="$mysql_CPPFLAGS" 20239 for i in $apr_addto_bugger; do 20240 apr_addto_duplicate="0" 20241 for j in $APRUTIL_PRIV_INCLUDES; do 20242 if test "x$i" = "x$j"; then 20243 apr_addto_duplicate="1" 20244 break 20245 fi 20246 done 20247 if test $apr_addto_duplicate = "0"; then 20248 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 20249 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 20250 fi 20251 done 20252 fi 20253 20254 fi 20255 elif test "$withval" = "no"; then 20256 : 20257 else 20258 # Extract the first word of "mysql_config", so it can be a program name with args. 20259set dummy mysql_config; ac_word=$2 20260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20261$as_echo_n "checking for $ac_word... " >&6; } 20262if ${ac_cv_path_MYSQL_CONFIG+:} false; then : 20263 $as_echo_n "(cached) " >&6 20264else 20265 case $MYSQL_CONFIG in 20266 [\\/]* | ?:[\\/]*) 20267 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path. 20268 ;; 20269 *) 20270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20271for as_dir in $withval/bin 20272do 20273 IFS=$as_save_IFS 20274 test -z "$as_dir" && as_dir=. 20275 for ac_exec_ext in '' $ac_executable_extensions; do 20276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20277 ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20279 break 2 20280 fi 20281done 20282 done 20283IFS=$as_save_IFS 20284 20285 ;; 20286esac 20287fi 20288MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG 20289if test -n "$MYSQL_CONFIG"; then 20290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5 20291$as_echo "$MYSQL_CONFIG" >&6; } 20292else 20293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20294$as_echo "no" >&6; } 20295fi 20296 20297 20298 if test "x$MYSQL_CONFIG" != 'x'; then 20299 mysql_CPPFLAGS="`$MYSQL_CONFIG --include`" 20300 mysql_LDFLAGS="`$MYSQL_CONFIG --libs_r | sed -e 's/-l[^ ]\+//g'`" 20301 mysql_LIBS="`$MYSQL_CONFIG --libs_r`" 20302 else 20303 mysql_CPPFLAGS="-I$withval/include" 20304 mysql_LDFLAGS="-L$withval/lib " 20305 fi 20306 20307 20308 if test "x$CPPFLAGS" = "x"; then 20309 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$mysql_CPPFLAGS\"" 20310 CPPFLAGS="$mysql_CPPFLAGS" 20311 else 20312 apr_addto_bugger="$mysql_CPPFLAGS" 20313 for i in $apr_addto_bugger; do 20314 apr_addto_duplicate="0" 20315 for j in $CPPFLAGS; do 20316 if test "x$i" = "x$j"; then 20317 apr_addto_duplicate="1" 20318 break 20319 fi 20320 done 20321 if test $apr_addto_duplicate = "0"; then 20322 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 20323 CPPFLAGS="$CPPFLAGS $i" 20324 fi 20325 done 20326 fi 20327 20328 20329 if test "x$LDFLAGS" = "x"; then 20330 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$mysql_LDFLAGS\"" 20331 LDFLAGS="$mysql_LDFLAGS" 20332 else 20333 apr_addto_bugger="$mysql_LDFLAGS" 20334 for i in $apr_addto_bugger; do 20335 apr_addto_duplicate="0" 20336 for j in $LDFLAGS; do 20337 if test "x$i" = "x$j"; then 20338 apr_addto_duplicate="1" 20339 break 20340 fi 20341 done 20342 if test $apr_addto_duplicate = "0"; then 20343 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 20344 LDFLAGS="$LDFLAGS $i" 20345 fi 20346 done 20347 fi 20348 20349 20350 if test "x$LIBS" = "x"; then 20351 test "x$silent" != "xyes" && echo " setting LIBS to \"$mysql_LIBS\"" 20352 LIBS="$mysql_LIBS" 20353 else 20354 apr_addto_bugger="$mysql_LIBS" 20355 for i in $apr_addto_bugger; do 20356 apr_addto_duplicate="0" 20357 for j in $LIBS; do 20358 if test "x$i" = "x$j"; then 20359 apr_addto_duplicate="1" 20360 break 20361 fi 20362 done 20363 if test $apr_addto_duplicate = "0"; then 20364 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 20365 LIBS="$LIBS $i" 20366 fi 20367 done 20368 fi 20369 20370 20371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql in $withval" >&5 20372$as_echo "$as_me: checking for mysql in $withval" >&6;} 20373 for ac_header in mysql.h my_global.h my_sys.h 20374do : 20375 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20376ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <my_global.h> 20377" 20378if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20379 cat >>confdefs.h <<_ACEOF 20380#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20381_ACEOF 20382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient" >&5 20383$as_echo_n "checking for mysql_init in -lmysqlclient... " >&6; } 20384if ${ac_cv_lib_mysqlclient_mysql_init+:} false; then : 20385 $as_echo_n "(cached) " >&6 20386else 20387 ac_check_lib_save_LIBS=$LIBS 20388LIBS="-lmysqlclient $LIBS" 20389cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20390/* end confdefs.h. */ 20391 20392/* Override any GCC internal prototype to avoid an error. 20393 Use char because int might match the return type of a GCC 20394 builtin and then its argument prototype would still apply. */ 20395#ifdef __cplusplus 20396extern "C" 20397#endif 20398char mysql_init (); 20399int 20400main () 20401{ 20402return mysql_init (); 20403 ; 20404 return 0; 20405} 20406_ACEOF 20407if ac_fn_c_try_link "$LINENO"; then : 20408 ac_cv_lib_mysqlclient_mysql_init=yes 20409else 20410 ac_cv_lib_mysqlclient_mysql_init=no 20411fi 20412rm -f core conftest.err conftest.$ac_objext \ 20413 conftest$ac_exeext conftest.$ac_ext 20414LIBS=$ac_check_lib_save_LIBS 20415fi 20416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_init" >&5 20417$as_echo "$ac_cv_lib_mysqlclient_mysql_init" >&6; } 20418if test "x$ac_cv_lib_mysqlclient_mysql_init" = xyes; then : 20419 apu_have_mysql=1 20420fi 20421 20422else 20423 apu_have_mysql=0; break 20424fi 20425 20426done 20427 20428 20429 if test "$apu_have_mysql" != "1"; then 20430 for ac_header in mysql/mysql.h mysql/my_global.h mysql/my_sys.h 20431do : 20432 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20433ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <mysql/my_global.h> 20434" 20435if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20436 cat >>confdefs.h <<_ACEOF 20437#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20438_ACEOF 20439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient" >&5 20440$as_echo_n "checking for mysql_init in -lmysqlclient... " >&6; } 20441if ${ac_cv_lib_mysqlclient_mysql_init+:} false; then : 20442 $as_echo_n "(cached) " >&6 20443else 20444 ac_check_lib_save_LIBS=$LIBS 20445LIBS="-lmysqlclient $LIBS" 20446cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20447/* end confdefs.h. */ 20448 20449/* Override any GCC internal prototype to avoid an error. 20450 Use char because int might match the return type of a GCC 20451 builtin and then its argument prototype would still apply. */ 20452#ifdef __cplusplus 20453extern "C" 20454#endif 20455char mysql_init (); 20456int 20457main () 20458{ 20459return mysql_init (); 20460 ; 20461 return 0; 20462} 20463_ACEOF 20464if ac_fn_c_try_link "$LINENO"; then : 20465 ac_cv_lib_mysqlclient_mysql_init=yes 20466else 20467 ac_cv_lib_mysqlclient_mysql_init=no 20468fi 20469rm -f core conftest.err conftest.$ac_objext \ 20470 conftest$ac_exeext conftest.$ac_ext 20471LIBS=$ac_check_lib_save_LIBS 20472fi 20473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_init" >&5 20474$as_echo "$ac_cv_lib_mysqlclient_mysql_init" >&6; } 20475if test "x$ac_cv_lib_mysqlclient_mysql_init" = xyes; then : 20476 apu_have_mysql=1 20477fi 20478 20479else 20480 apu_have_mysql=0; break 20481fi 20482 20483done 20484 20485 fi 20486 if test "$apu_have_mysql" != "0"; then 20487 20488 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 20489 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"$mysql_CPPFLAGS\"" 20490 APRUTIL_PRIV_INCLUDES="$mysql_CPPFLAGS" 20491 else 20492 apr_addto_bugger="$mysql_CPPFLAGS" 20493 for i in $apr_addto_bugger; do 20494 apr_addto_duplicate="0" 20495 for j in $APRUTIL_PRIV_INCLUDES; do 20496 if test "x$i" = "x$j"; then 20497 apr_addto_duplicate="1" 20498 break 20499 fi 20500 done 20501 if test $apr_addto_duplicate = "0"; then 20502 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 20503 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 20504 fi 20505 done 20506 fi 20507 20508 fi 20509 fi 20510 20511fi 20512 20513 20514 20515 20516 if test "$apu_have_mysql" = "1"; then 20517 20518 if test "x$LDADD_dbd_mysql" = "x"; then 20519 test "x$silent" != "xyes" && echo " setting LDADD_dbd_mysql to \"$mysql_LDFLAGS -lmysqlclient $mysql_LIBS\"" 20520 LDADD_dbd_mysql="$mysql_LDFLAGS -lmysqlclient $mysql_LIBS" 20521 else 20522 apr_addto_bugger="$mysql_LDFLAGS -lmysqlclient $mysql_LIBS" 20523 for i in $apr_addto_bugger; do 20524 apr_addto_duplicate="0" 20525 for j in $LDADD_dbd_mysql; do 20526 if test "x$i" = "x$j"; then 20527 apr_addto_duplicate="1" 20528 break 20529 fi 20530 done 20531 if test $apr_addto_duplicate = "0"; then 20532 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbd_mysql" 20533 LDADD_dbd_mysql="$LDADD_dbd_mysql $i" 20534 fi 20535 done 20536 fi 20537 20538 fi 20539 20540 20541 LIBS="$old_libs" 20542 CPPFLAGS="$old_cppflags" 20543 LDFLAGS="$old_ldflags" 20544 20545 20546 apu_have_sqlite3=0 20547 20548 old_libs="$LIBS" 20549 old_cppflags="$CPPFLAGS" 20550 old_ldflags="$LDFLAGS" 20551 20552 20553# Check whether --with-sqlite3 was given. 20554if test "${with_sqlite3+set}" = set; then : 20555 withval=$with_sqlite3; 20556 if test "$withval" = "yes"; then 20557 for ac_header in sqlite3.h 20558do : 20559 ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default" 20560if test "x$ac_cv_header_sqlite3_h" = xyes; then : 20561 cat >>confdefs.h <<_ACEOF 20562#define HAVE_SQLITE3_H 1 20563_ACEOF 20564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5 20565$as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; } 20566if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then : 20567 $as_echo_n "(cached) " >&6 20568else 20569 ac_check_lib_save_LIBS=$LIBS 20570LIBS="-lsqlite3 $LIBS" 20571cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20572/* end confdefs.h. */ 20573 20574/* Override any GCC internal prototype to avoid an error. 20575 Use char because int might match the return type of a GCC 20576 builtin and then its argument prototype would still apply. */ 20577#ifdef __cplusplus 20578extern "C" 20579#endif 20580char sqlite3_open (); 20581int 20582main () 20583{ 20584return sqlite3_open (); 20585 ; 20586 return 0; 20587} 20588_ACEOF 20589if ac_fn_c_try_link "$LINENO"; then : 20590 ac_cv_lib_sqlite3_sqlite3_open=yes 20591else 20592 ac_cv_lib_sqlite3_sqlite3_open=no 20593fi 20594rm -f core conftest.err conftest.$ac_objext \ 20595 conftest$ac_exeext conftest.$ac_ext 20596LIBS=$ac_check_lib_save_LIBS 20597fi 20598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5 20599$as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; } 20600if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then : 20601 apu_have_sqlite3=1 20602fi 20603 20604fi 20605 20606done 20607 20608 elif test "$withval" = "no"; then 20609 : 20610 else 20611 sqlite3_CPPFLAGS="-I$withval/include" 20612 sqlite3_LDFLAGS="-L$withval/lib " 20613 20614 20615 if test "x$CPPFLAGS" = "x"; then 20616 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$sqlite3_CPPFLAGS\"" 20617 CPPFLAGS="$sqlite3_CPPFLAGS" 20618 else 20619 apr_addto_bugger="$sqlite3_CPPFLAGS" 20620 for i in $apr_addto_bugger; do 20621 apr_addto_duplicate="0" 20622 for j in $CPPFLAGS; do 20623 if test "x$i" = "x$j"; then 20624 apr_addto_duplicate="1" 20625 break 20626 fi 20627 done 20628 if test $apr_addto_duplicate = "0"; then 20629 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 20630 CPPFLAGS="$CPPFLAGS $i" 20631 fi 20632 done 20633 fi 20634 20635 20636 if test "x$LDFLAGS" = "x"; then 20637 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$sqlite3_LDFLAGS\"" 20638 LDFLAGS="$sqlite3_LDFLAGS" 20639 else 20640 apr_addto_bugger="$sqlite3_LDFLAGS" 20641 for i in $apr_addto_bugger; do 20642 apr_addto_duplicate="0" 20643 for j in $LDFLAGS; do 20644 if test "x$i" = "x$j"; then 20645 apr_addto_duplicate="1" 20646 break 20647 fi 20648 done 20649 if test $apr_addto_duplicate = "0"; then 20650 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 20651 LDFLAGS="$LDFLAGS $i" 20652 fi 20653 done 20654 fi 20655 20656 20657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3 in $withval" >&5 20658$as_echo "$as_me: checking for sqlite3 in $withval" >&6;} 20659 for ac_header in sqlite3.h 20660do : 20661 ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default" 20662if test "x$ac_cv_header_sqlite3_h" = xyes; then : 20663 cat >>confdefs.h <<_ACEOF 20664#define HAVE_SQLITE3_H 1 20665_ACEOF 20666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5 20667$as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; } 20668if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then : 20669 $as_echo_n "(cached) " >&6 20670else 20671 ac_check_lib_save_LIBS=$LIBS 20672LIBS="-lsqlite3 $LIBS" 20673cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20674/* end confdefs.h. */ 20675 20676/* Override any GCC internal prototype to avoid an error. 20677 Use char because int might match the return type of a GCC 20678 builtin and then its argument prototype would still apply. */ 20679#ifdef __cplusplus 20680extern "C" 20681#endif 20682char sqlite3_open (); 20683int 20684main () 20685{ 20686return sqlite3_open (); 20687 ; 20688 return 0; 20689} 20690_ACEOF 20691if ac_fn_c_try_link "$LINENO"; then : 20692 ac_cv_lib_sqlite3_sqlite3_open=yes 20693else 20694 ac_cv_lib_sqlite3_sqlite3_open=no 20695fi 20696rm -f core conftest.err conftest.$ac_objext \ 20697 conftest$ac_exeext conftest.$ac_ext 20698LIBS=$ac_check_lib_save_LIBS 20699fi 20700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5 20701$as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; } 20702if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then : 20703 apu_have_sqlite3=1 20704fi 20705 20706fi 20707 20708done 20709 20710 if test "$apu_have_sqlite3" != "0"; then 20711 20712 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 20713 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"-I$withval/include\"" 20714 APRUTIL_PRIV_INCLUDES="-I$withval/include" 20715 else 20716 apr_addto_bugger="-I$withval/include" 20717 for i in $apr_addto_bugger; do 20718 apr_addto_duplicate="0" 20719 for j in $APRUTIL_PRIV_INCLUDES; do 20720 if test "x$i" = "x$j"; then 20721 apr_addto_duplicate="1" 20722 break 20723 fi 20724 done 20725 if test $apr_addto_duplicate = "0"; then 20726 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 20727 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 20728 fi 20729 done 20730 fi 20731 20732 fi 20733 fi 20734 20735else 20736 20737 for ac_header in sqlite3.h 20738do : 20739 ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default" 20740if test "x$ac_cv_header_sqlite3_h" = xyes; then : 20741 cat >>confdefs.h <<_ACEOF 20742#define HAVE_SQLITE3_H 1 20743_ACEOF 20744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5 20745$as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; } 20746if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then : 20747 $as_echo_n "(cached) " >&6 20748else 20749 ac_check_lib_save_LIBS=$LIBS 20750LIBS="-lsqlite3 $LIBS" 20751cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20752/* end confdefs.h. */ 20753 20754/* Override any GCC internal prototype to avoid an error. 20755 Use char because int might match the return type of a GCC 20756 builtin and then its argument prototype would still apply. */ 20757#ifdef __cplusplus 20758extern "C" 20759#endif 20760char sqlite3_open (); 20761int 20762main () 20763{ 20764return sqlite3_open (); 20765 ; 20766 return 0; 20767} 20768_ACEOF 20769if ac_fn_c_try_link "$LINENO"; then : 20770 ac_cv_lib_sqlite3_sqlite3_open=yes 20771else 20772 ac_cv_lib_sqlite3_sqlite3_open=no 20773fi 20774rm -f core conftest.err conftest.$ac_objext \ 20775 conftest$ac_exeext conftest.$ac_ext 20776LIBS=$ac_check_lib_save_LIBS 20777fi 20778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5 20779$as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; } 20780if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then : 20781 apu_have_sqlite3=1 20782fi 20783 20784fi 20785 20786done 20787 20788 20789fi 20790 20791 20792 20793 20794 if test "$apu_have_sqlite3" = "1"; then 20795 20796 if test "x$LDADD_dbd_sqlite3" = "x"; then 20797 test "x$silent" != "xyes" && echo " setting LDADD_dbd_sqlite3 to \"$sqlite3_LDFLAGS -lsqlite3\"" 20798 LDADD_dbd_sqlite3="$sqlite3_LDFLAGS -lsqlite3" 20799 else 20800 apr_addto_bugger="$sqlite3_LDFLAGS -lsqlite3" 20801 for i in $apr_addto_bugger; do 20802 apr_addto_duplicate="0" 20803 for j in $LDADD_dbd_sqlite3; do 20804 if test "x$i" = "x$j"; then 20805 apr_addto_duplicate="1" 20806 break 20807 fi 20808 done 20809 if test $apr_addto_duplicate = "0"; then 20810 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbd_sqlite3" 20811 LDADD_dbd_sqlite3="$LDADD_dbd_sqlite3 $i" 20812 fi 20813 done 20814 fi 20815 20816 fi 20817 20818 20819 LIBS="$old_libs" 20820 CPPFLAGS="$old_cppflags" 20821 LDFLAGS="$old_ldflags" 20822 20823 20824 apu_have_sqlite2=0 20825 20826 old_libs="$LIBS" 20827 old_cppflags="$CPPFLAGS" 20828 old_ldflags="$LDFLAGS" 20829 20830 20831# Check whether --with-sqlite2 was given. 20832if test "${with_sqlite2+set}" = set; then : 20833 withval=$with_sqlite2; 20834 if test "$withval" = "yes"; then 20835 for ac_header in sqlite.h 20836do : 20837 ac_fn_c_check_header_mongrel "$LINENO" "sqlite.h" "ac_cv_header_sqlite_h" "$ac_includes_default" 20838if test "x$ac_cv_header_sqlite_h" = xyes; then : 20839 cat >>confdefs.h <<_ACEOF 20840#define HAVE_SQLITE_H 1 20841_ACEOF 20842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite_open in -lsqlite" >&5 20843$as_echo_n "checking for sqlite_open in -lsqlite... " >&6; } 20844if ${ac_cv_lib_sqlite_sqlite_open+:} false; then : 20845 $as_echo_n "(cached) " >&6 20846else 20847 ac_check_lib_save_LIBS=$LIBS 20848LIBS="-lsqlite $LIBS" 20849cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20850/* end confdefs.h. */ 20851 20852/* Override any GCC internal prototype to avoid an error. 20853 Use char because int might match the return type of a GCC 20854 builtin and then its argument prototype would still apply. */ 20855#ifdef __cplusplus 20856extern "C" 20857#endif 20858char sqlite_open (); 20859int 20860main () 20861{ 20862return sqlite_open (); 20863 ; 20864 return 0; 20865} 20866_ACEOF 20867if ac_fn_c_try_link "$LINENO"; then : 20868 ac_cv_lib_sqlite_sqlite_open=yes 20869else 20870 ac_cv_lib_sqlite_sqlite_open=no 20871fi 20872rm -f core conftest.err conftest.$ac_objext \ 20873 conftest$ac_exeext conftest.$ac_ext 20874LIBS=$ac_check_lib_save_LIBS 20875fi 20876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite_sqlite_open" >&5 20877$as_echo "$ac_cv_lib_sqlite_sqlite_open" >&6; } 20878if test "x$ac_cv_lib_sqlite_sqlite_open" = xyes; then : 20879 apu_have_sqlite2=1 20880fi 20881 20882fi 20883 20884done 20885 20886 elif test "$withval" = "no"; then 20887 : 20888 else 20889 sqlite2_CPPFLAGS="-I$withval/include" 20890 sqlite2_LDFLAGS="-L$withval/lib " 20891 20892 20893 if test "x$CPPFLAGS" = "x"; then 20894 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$sqlite2_CPPFLAGS\"" 20895 CPPFLAGS="$sqlite2_CPPFLAGS" 20896 else 20897 apr_addto_bugger="$sqlite2_CPPFLAGS" 20898 for i in $apr_addto_bugger; do 20899 apr_addto_duplicate="0" 20900 for j in $CPPFLAGS; do 20901 if test "x$i" = "x$j"; then 20902 apr_addto_duplicate="1" 20903 break 20904 fi 20905 done 20906 if test $apr_addto_duplicate = "0"; then 20907 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 20908 CPPFLAGS="$CPPFLAGS $i" 20909 fi 20910 done 20911 fi 20912 20913 20914 if test "x$LDFLAGS" = "x"; then 20915 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$sqlite2_LDFLAGS\"" 20916 LDFLAGS="$sqlite2_LDFLAGS" 20917 else 20918 apr_addto_bugger="$sqlite2_LDFLAGS" 20919 for i in $apr_addto_bugger; do 20920 apr_addto_duplicate="0" 20921 for j in $LDFLAGS; do 20922 if test "x$i" = "x$j"; then 20923 apr_addto_duplicate="1" 20924 break 20925 fi 20926 done 20927 if test $apr_addto_duplicate = "0"; then 20928 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 20929 LDFLAGS="$LDFLAGS $i" 20930 fi 20931 done 20932 fi 20933 20934 20935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite2 in $withval" >&5 20936$as_echo "$as_me: checking for sqlite2 in $withval" >&6;} 20937 for ac_header in sqlite.h 20938do : 20939 ac_fn_c_check_header_mongrel "$LINENO" "sqlite.h" "ac_cv_header_sqlite_h" "$ac_includes_default" 20940if test "x$ac_cv_header_sqlite_h" = xyes; then : 20941 cat >>confdefs.h <<_ACEOF 20942#define HAVE_SQLITE_H 1 20943_ACEOF 20944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite_open in -lsqlite" >&5 20945$as_echo_n "checking for sqlite_open in -lsqlite... " >&6; } 20946if ${ac_cv_lib_sqlite_sqlite_open+:} false; then : 20947 $as_echo_n "(cached) " >&6 20948else 20949 ac_check_lib_save_LIBS=$LIBS 20950LIBS="-lsqlite $LIBS" 20951cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20952/* end confdefs.h. */ 20953 20954/* Override any GCC internal prototype to avoid an error. 20955 Use char because int might match the return type of a GCC 20956 builtin and then its argument prototype would still apply. */ 20957#ifdef __cplusplus 20958extern "C" 20959#endif 20960char sqlite_open (); 20961int 20962main () 20963{ 20964return sqlite_open (); 20965 ; 20966 return 0; 20967} 20968_ACEOF 20969if ac_fn_c_try_link "$LINENO"; then : 20970 ac_cv_lib_sqlite_sqlite_open=yes 20971else 20972 ac_cv_lib_sqlite_sqlite_open=no 20973fi 20974rm -f core conftest.err conftest.$ac_objext \ 20975 conftest$ac_exeext conftest.$ac_ext 20976LIBS=$ac_check_lib_save_LIBS 20977fi 20978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite_sqlite_open" >&5 20979$as_echo "$ac_cv_lib_sqlite_sqlite_open" >&6; } 20980if test "x$ac_cv_lib_sqlite_sqlite_open" = xyes; then : 20981 apu_have_sqlite2=1 20982fi 20983 20984fi 20985 20986done 20987 20988 if test "$apu_have_sqlite2" != "0"; then 20989 20990 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 20991 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"-I$withval/include\"" 20992 APRUTIL_PRIV_INCLUDES="-I$withval/include" 20993 else 20994 apr_addto_bugger="-I$withval/include" 20995 for i in $apr_addto_bugger; do 20996 apr_addto_duplicate="0" 20997 for j in $APRUTIL_PRIV_INCLUDES; do 20998 if test "x$i" = "x$j"; then 20999 apr_addto_duplicate="1" 21000 break 21001 fi 21002 done 21003 if test $apr_addto_duplicate = "0"; then 21004 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 21005 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 21006 fi 21007 done 21008 fi 21009 21010 fi 21011 fi 21012 21013else 21014 21015 for ac_header in sqlite.h 21016do : 21017 ac_fn_c_check_header_mongrel "$LINENO" "sqlite.h" "ac_cv_header_sqlite_h" "$ac_includes_default" 21018if test "x$ac_cv_header_sqlite_h" = xyes; then : 21019 cat >>confdefs.h <<_ACEOF 21020#define HAVE_SQLITE_H 1 21021_ACEOF 21022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite_open in -lsqlite" >&5 21023$as_echo_n "checking for sqlite_open in -lsqlite... " >&6; } 21024if ${ac_cv_lib_sqlite_sqlite_open+:} false; then : 21025 $as_echo_n "(cached) " >&6 21026else 21027 ac_check_lib_save_LIBS=$LIBS 21028LIBS="-lsqlite $LIBS" 21029cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21030/* end confdefs.h. */ 21031 21032/* Override any GCC internal prototype to avoid an error. 21033 Use char because int might match the return type of a GCC 21034 builtin and then its argument prototype would still apply. */ 21035#ifdef __cplusplus 21036extern "C" 21037#endif 21038char sqlite_open (); 21039int 21040main () 21041{ 21042return sqlite_open (); 21043 ; 21044 return 0; 21045} 21046_ACEOF 21047if ac_fn_c_try_link "$LINENO"; then : 21048 ac_cv_lib_sqlite_sqlite_open=yes 21049else 21050 ac_cv_lib_sqlite_sqlite_open=no 21051fi 21052rm -f core conftest.err conftest.$ac_objext \ 21053 conftest$ac_exeext conftest.$ac_ext 21054LIBS=$ac_check_lib_save_LIBS 21055fi 21056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite_sqlite_open" >&5 21057$as_echo "$ac_cv_lib_sqlite_sqlite_open" >&6; } 21058if test "x$ac_cv_lib_sqlite_sqlite_open" = xyes; then : 21059 apu_have_sqlite2=1 21060fi 21061 21062fi 21063 21064done 21065 21066 21067fi 21068 21069 21070 21071 21072 if test "$apu_have_sqlite2" = "1"; then 21073 21074 if test "x$LDADD_dbd_sqlite2" = "x"; then 21075 test "x$silent" != "xyes" && echo " setting LDADD_dbd_sqlite2 to \"$sqlite2_LDFLAGS -lsqlite\"" 21076 LDADD_dbd_sqlite2="$sqlite2_LDFLAGS -lsqlite" 21077 else 21078 apr_addto_bugger="$sqlite2_LDFLAGS -lsqlite" 21079 for i in $apr_addto_bugger; do 21080 apr_addto_duplicate="0" 21081 for j in $LDADD_dbd_sqlite2; do 21082 if test "x$i" = "x$j"; then 21083 apr_addto_duplicate="1" 21084 break 21085 fi 21086 done 21087 if test $apr_addto_duplicate = "0"; then 21088 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbd_sqlite2" 21089 LDADD_dbd_sqlite2="$LDADD_dbd_sqlite2 $i" 21090 fi 21091 done 21092 fi 21093 21094 fi 21095 21096 21097 LIBS="$old_libs" 21098 CPPFLAGS="$old_cppflags" 21099 LDFLAGS="$old_ldflags" 21100 21101 21102 apu_have_oracle=0 21103 21104 old_libs="$LIBS" 21105 old_cppflags="$CPPFLAGS" 21106 old_ldflags="$LDFLAGS" 21107 21108 21109# Check whether --with-oracle-include was given. 21110if test "${with_oracle_include+set}" = set; then : 21111 withval=$with_oracle_include; 21112fi 21113 21114 21115# Check whether --with-oracle was given. 21116if test "${with_oracle+set}" = set; then : 21117 withval=$with_oracle; 21118 if test "$withval" = "yes"; then 21119 if test -n "$with_oracle_include"; then 21120 oracle_CPPFLAGS="$CPPFLAGS -I$with_oracle_include" 21121 21122 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 21123 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"-I$with_oracle_include\"" 21124 APRUTIL_PRIV_INCLUDES="-I$with_oracle_include" 21125 else 21126 apr_addto_bugger="-I$with_oracle_include" 21127 for i in $apr_addto_bugger; do 21128 apr_addto_duplicate="0" 21129 for j in $APRUTIL_PRIV_INCLUDES; do 21130 if test "x$i" = "x$j"; then 21131 apr_addto_duplicate="1" 21132 break 21133 fi 21134 done 21135 if test $apr_addto_duplicate = "0"; then 21136 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 21137 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 21138 fi 21139 done 21140 fi 21141 21142 fi 21143 21144 21145 if test "x$CPPFLAGS" = "x"; then 21146 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$oracle_CPPFLAGS\"" 21147 CPPFLAGS="$oracle_CPPFLAGS" 21148 else 21149 apr_addto_bugger="$oracle_CPPFLAGS" 21150 for i in $apr_addto_bugger; do 21151 apr_addto_duplicate="0" 21152 for j in $CPPFLAGS; do 21153 if test "x$i" = "x$j"; then 21154 apr_addto_duplicate="1" 21155 break 21156 fi 21157 done 21158 if test $apr_addto_duplicate = "0"; then 21159 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 21160 CPPFLAGS="$CPPFLAGS $i" 21161 fi 21162 done 21163 fi 21164 21165 21166 for ac_header in oci.h 21167do : 21168 ac_fn_c_check_header_mongrel "$LINENO" "oci.h" "ac_cv_header_oci_h" "$ac_includes_default" 21169if test "x$ac_cv_header_oci_h" = xyes; then : 21170 cat >>confdefs.h <<_ACEOF 21171#define HAVE_OCI_H 1 21172_ACEOF 21173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvCreate in -lclntsh" >&5 21174$as_echo_n "checking for OCIEnvCreate in -lclntsh... " >&6; } 21175if ${ac_cv_lib_clntsh_OCIEnvCreate+:} false; then : 21176 $as_echo_n "(cached) " >&6 21177else 21178 ac_check_lib_save_LIBS=$LIBS 21179LIBS="-lclntsh $LIBS" 21180cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21181/* end confdefs.h. */ 21182 21183/* Override any GCC internal prototype to avoid an error. 21184 Use char because int might match the return type of a GCC 21185 builtin and then its argument prototype would still apply. */ 21186#ifdef __cplusplus 21187extern "C" 21188#endif 21189char OCIEnvCreate (); 21190int 21191main () 21192{ 21193return OCIEnvCreate (); 21194 ; 21195 return 0; 21196} 21197_ACEOF 21198if ac_fn_c_try_link "$LINENO"; then : 21199 ac_cv_lib_clntsh_OCIEnvCreate=yes 21200else 21201 ac_cv_lib_clntsh_OCIEnvCreate=no 21202fi 21203rm -f core conftest.err conftest.$ac_objext \ 21204 conftest$ac_exeext conftest.$ac_ext 21205LIBS=$ac_check_lib_save_LIBS 21206fi 21207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvCreate" >&5 21208$as_echo "$ac_cv_lib_clntsh_OCIEnvCreate" >&6; } 21209if test "x$ac_cv_lib_clntsh_OCIEnvCreate" = xyes; then : 21210 apu_have_oracle=1 21211else 21212 21213 unset ac_cv_lib_clntsh_OCIEnvCreate 21214 oracle_LIBS="-lnnz11" 21215 21216 if test "x$LIBS" = "x"; then 21217 test "x$silent" != "xyes" && echo " setting LIBS to \"$oracle_LIBS\"" 21218 LIBS="$oracle_LIBS" 21219 else 21220 apr_addto_bugger="$oracle_LIBS" 21221 for i in $apr_addto_bugger; do 21222 apr_addto_duplicate="0" 21223 for j in $LIBS; do 21224 if test "x$i" = "x$j"; then 21225 apr_addto_duplicate="1" 21226 break 21227 fi 21228 done 21229 if test $apr_addto_duplicate = "0"; then 21230 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 21231 LIBS="$LIBS $i" 21232 fi 21233 done 21234 fi 21235 21236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvCreate in -lclntsh" >&5 21237$as_echo_n "checking for OCIEnvCreate in -lclntsh... " >&6; } 21238if ${ac_cv_lib_clntsh_OCIEnvCreate+:} false; then : 21239 $as_echo_n "(cached) " >&6 21240else 21241 ac_check_lib_save_LIBS=$LIBS 21242LIBS="-lclntsh $LIBS" 21243cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21244/* end confdefs.h. */ 21245 21246/* Override any GCC internal prototype to avoid an error. 21247 Use char because int might match the return type of a GCC 21248 builtin and then its argument prototype would still apply. */ 21249#ifdef __cplusplus 21250extern "C" 21251#endif 21252char OCIEnvCreate (); 21253int 21254main () 21255{ 21256return OCIEnvCreate (); 21257 ; 21258 return 0; 21259} 21260_ACEOF 21261if ac_fn_c_try_link "$LINENO"; then : 21262 ac_cv_lib_clntsh_OCIEnvCreate=yes 21263else 21264 ac_cv_lib_clntsh_OCIEnvCreate=no 21265fi 21266rm -f core conftest.err conftest.$ac_objext \ 21267 conftest$ac_exeext conftest.$ac_ext 21268LIBS=$ac_check_lib_save_LIBS 21269fi 21270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvCreate" >&5 21271$as_echo "$ac_cv_lib_clntsh_OCIEnvCreate" >&6; } 21272if test "x$ac_cv_lib_clntsh_OCIEnvCreate" = xyes; then : 21273 apu_have_oracle=1 21274else 21275 21276 unset ac_cv_lib_clntsh_OCIEnvCreate 21277 21278 if test "x$LIBS" = "x$oracle_LIBS"; then 21279 test "x$silent" != "xyes" && echo " nulling LIBS" 21280 LIBS="" 21281 else 21282 apr_new_bugger="" 21283 apr_removed=0 21284 for i in $LIBS; do 21285 if test "x$i" != "x$oracle_LIBS"; then 21286 apr_new_bugger="$apr_new_bugger $i" 21287 else 21288 apr_removed=1 21289 fi 21290 done 21291 if test $apr_removed = "1"; then 21292 test "x$silent" != "xyes" && echo " removed \"$oracle_LIBS\" from LIBS" 21293 LIBS=$apr_new_bugger 21294 fi 21295 fi 21296 21297 oracle_LIBS="-lnnz10" 21298 21299 if test "x$LIBS" = "x"; then 21300 test "x$silent" != "xyes" && echo " setting LIBS to \"$oracle_LIBS\"" 21301 LIBS="$oracle_LIBS" 21302 else 21303 apr_addto_bugger="$oracle_LIBS" 21304 for i in $apr_addto_bugger; do 21305 apr_addto_duplicate="0" 21306 for j in $LIBS; do 21307 if test "x$i" = "x$j"; then 21308 apr_addto_duplicate="1" 21309 break 21310 fi 21311 done 21312 if test $apr_addto_duplicate = "0"; then 21313 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 21314 LIBS="$LIBS $i" 21315 fi 21316 done 21317 fi 21318 21319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvCreate in -lclntsh" >&5 21320$as_echo_n "checking for OCIEnvCreate in -lclntsh... " >&6; } 21321if ${ac_cv_lib_clntsh_OCIEnvCreate+:} false; then : 21322 $as_echo_n "(cached) " >&6 21323else 21324 ac_check_lib_save_LIBS=$LIBS 21325LIBS="-lclntsh $LIBS" 21326cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21327/* end confdefs.h. */ 21328 21329/* Override any GCC internal prototype to avoid an error. 21330 Use char because int might match the return type of a GCC 21331 builtin and then its argument prototype would still apply. */ 21332#ifdef __cplusplus 21333extern "C" 21334#endif 21335char OCIEnvCreate (); 21336int 21337main () 21338{ 21339return OCIEnvCreate (); 21340 ; 21341 return 0; 21342} 21343_ACEOF 21344if ac_fn_c_try_link "$LINENO"; then : 21345 ac_cv_lib_clntsh_OCIEnvCreate=yes 21346else 21347 ac_cv_lib_clntsh_OCIEnvCreate=no 21348fi 21349rm -f core conftest.err conftest.$ac_objext \ 21350 conftest$ac_exeext conftest.$ac_ext 21351LIBS=$ac_check_lib_save_LIBS 21352fi 21353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvCreate" >&5 21354$as_echo "$ac_cv_lib_clntsh_OCIEnvCreate" >&6; } 21355if test "x$ac_cv_lib_clntsh_OCIEnvCreate" = xyes; then : 21356 apu_have_oracle=1 21357fi 21358 21359 21360fi 21361 21362 21363fi 21364 21365fi 21366 21367done 21368 21369 elif test "$withval" = "no"; then 21370 : 21371 else 21372 if test -n "$with_oracle_include"; then 21373 oracle_CPPFLAGS="$CPPFLAGS -I$with_oracle_include" 21374 21375 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 21376 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"-I$with_oracle_include\"" 21377 APRUTIL_PRIV_INCLUDES="-I$with_oracle_include" 21378 else 21379 apr_addto_bugger="-I$with_oracle_include" 21380 for i in $apr_addto_bugger; do 21381 apr_addto_duplicate="0" 21382 for j in $APRUTIL_PRIV_INCLUDES; do 21383 if test "x$i" = "x$j"; then 21384 apr_addto_duplicate="1" 21385 break 21386 fi 21387 done 21388 if test $apr_addto_duplicate = "0"; then 21389 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 21390 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 21391 fi 21392 done 21393 fi 21394 21395 else 21396 oracle_CPPFLAGS="-I$withval/rdbms/demo -I$withval/rdbms/public" 21397 fi 21398 oracle_LDFLAGS="-L$withval/lib " 21399 21400 21401 if test "x$CPPFLAGS" = "x"; then 21402 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$oracle_CPPFLAGS\"" 21403 CPPFLAGS="$oracle_CPPFLAGS" 21404 else 21405 apr_addto_bugger="$oracle_CPPFLAGS" 21406 for i in $apr_addto_bugger; do 21407 apr_addto_duplicate="0" 21408 for j in $CPPFLAGS; do 21409 if test "x$i" = "x$j"; then 21410 apr_addto_duplicate="1" 21411 break 21412 fi 21413 done 21414 if test $apr_addto_duplicate = "0"; then 21415 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 21416 CPPFLAGS="$CPPFLAGS $i" 21417 fi 21418 done 21419 fi 21420 21421 21422 if test "x$LDFLAGS" = "x"; then 21423 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$oracle_LDFLAGS\"" 21424 LDFLAGS="$oracle_LDFLAGS" 21425 else 21426 apr_addto_bugger="$oracle_LDFLAGS" 21427 for i in $apr_addto_bugger; do 21428 apr_addto_duplicate="0" 21429 for j in $LDFLAGS; do 21430 if test "x$i" = "x$j"; then 21431 apr_addto_duplicate="1" 21432 break 21433 fi 21434 done 21435 if test $apr_addto_duplicate = "0"; then 21436 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 21437 LDFLAGS="$LDFLAGS $i" 21438 fi 21439 done 21440 fi 21441 21442 21443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for oracle in $withval" >&5 21444$as_echo "$as_me: checking for oracle in $withval" >&6;} 21445 for ac_header in oci.h 21446do : 21447 ac_fn_c_check_header_mongrel "$LINENO" "oci.h" "ac_cv_header_oci_h" "$ac_includes_default" 21448if test "x$ac_cv_header_oci_h" = xyes; then : 21449 cat >>confdefs.h <<_ACEOF 21450#define HAVE_OCI_H 1 21451_ACEOF 21452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvCreate in -lclntsh" >&5 21453$as_echo_n "checking for OCIEnvCreate in -lclntsh... " >&6; } 21454if ${ac_cv_lib_clntsh_OCIEnvCreate+:} false; then : 21455 $as_echo_n "(cached) " >&6 21456else 21457 ac_check_lib_save_LIBS=$LIBS 21458LIBS="-lclntsh $LIBS" 21459cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21460/* end confdefs.h. */ 21461 21462/* Override any GCC internal prototype to avoid an error. 21463 Use char because int might match the return type of a GCC 21464 builtin and then its argument prototype would still apply. */ 21465#ifdef __cplusplus 21466extern "C" 21467#endif 21468char OCIEnvCreate (); 21469int 21470main () 21471{ 21472return OCIEnvCreate (); 21473 ; 21474 return 0; 21475} 21476_ACEOF 21477if ac_fn_c_try_link "$LINENO"; then : 21478 ac_cv_lib_clntsh_OCIEnvCreate=yes 21479else 21480 ac_cv_lib_clntsh_OCIEnvCreate=no 21481fi 21482rm -f core conftest.err conftest.$ac_objext \ 21483 conftest$ac_exeext conftest.$ac_ext 21484LIBS=$ac_check_lib_save_LIBS 21485fi 21486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvCreate" >&5 21487$as_echo "$ac_cv_lib_clntsh_OCIEnvCreate" >&6; } 21488if test "x$ac_cv_lib_clntsh_OCIEnvCreate" = xyes; then : 21489 apu_have_oracle=1 21490else 21491 21492 unset ac_cv_lib_clntsh_OCIEnvCreate 21493 oracle_LIBS="-lnnz11" 21494 21495 if test "x$LIBS" = "x"; then 21496 test "x$silent" != "xyes" && echo " setting LIBS to \"$oracle_LIBS\"" 21497 LIBS="$oracle_LIBS" 21498 else 21499 apr_addto_bugger="$oracle_LIBS" 21500 for i in $apr_addto_bugger; do 21501 apr_addto_duplicate="0" 21502 for j in $LIBS; do 21503 if test "x$i" = "x$j"; then 21504 apr_addto_duplicate="1" 21505 break 21506 fi 21507 done 21508 if test $apr_addto_duplicate = "0"; then 21509 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 21510 LIBS="$LIBS $i" 21511 fi 21512 done 21513 fi 21514 21515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvCreate in -lclntsh" >&5 21516$as_echo_n "checking for OCIEnvCreate in -lclntsh... " >&6; } 21517if ${ac_cv_lib_clntsh_OCIEnvCreate+:} false; then : 21518 $as_echo_n "(cached) " >&6 21519else 21520 ac_check_lib_save_LIBS=$LIBS 21521LIBS="-lclntsh $LIBS" 21522cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21523/* end confdefs.h. */ 21524 21525/* Override any GCC internal prototype to avoid an error. 21526 Use char because int might match the return type of a GCC 21527 builtin and then its argument prototype would still apply. */ 21528#ifdef __cplusplus 21529extern "C" 21530#endif 21531char OCIEnvCreate (); 21532int 21533main () 21534{ 21535return OCIEnvCreate (); 21536 ; 21537 return 0; 21538} 21539_ACEOF 21540if ac_fn_c_try_link "$LINENO"; then : 21541 ac_cv_lib_clntsh_OCIEnvCreate=yes 21542else 21543 ac_cv_lib_clntsh_OCIEnvCreate=no 21544fi 21545rm -f core conftest.err conftest.$ac_objext \ 21546 conftest$ac_exeext conftest.$ac_ext 21547LIBS=$ac_check_lib_save_LIBS 21548fi 21549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvCreate" >&5 21550$as_echo "$ac_cv_lib_clntsh_OCIEnvCreate" >&6; } 21551if test "x$ac_cv_lib_clntsh_OCIEnvCreate" = xyes; then : 21552 apu_have_oracle=1 21553else 21554 21555 unset ac_cv_lib_clntsh_OCIEnvCreate 21556 21557 if test "x$LIBS" = "x$oracle_LIBS"; then 21558 test "x$silent" != "xyes" && echo " nulling LIBS" 21559 LIBS="" 21560 else 21561 apr_new_bugger="" 21562 apr_removed=0 21563 for i in $LIBS; do 21564 if test "x$i" != "x$oracle_LIBS"; then 21565 apr_new_bugger="$apr_new_bugger $i" 21566 else 21567 apr_removed=1 21568 fi 21569 done 21570 if test $apr_removed = "1"; then 21571 test "x$silent" != "xyes" && echo " removed \"$oracle_LIBS\" from LIBS" 21572 LIBS=$apr_new_bugger 21573 fi 21574 fi 21575 21576 oracle_LIBS="-lnnz10" 21577 21578 if test "x$LIBS" = "x"; then 21579 test "x$silent" != "xyes" && echo " setting LIBS to \"$oracle_LIBS\"" 21580 LIBS="$oracle_LIBS" 21581 else 21582 apr_addto_bugger="$oracle_LIBS" 21583 for i in $apr_addto_bugger; do 21584 apr_addto_duplicate="0" 21585 for j in $LIBS; do 21586 if test "x$i" = "x$j"; then 21587 apr_addto_duplicate="1" 21588 break 21589 fi 21590 done 21591 if test $apr_addto_duplicate = "0"; then 21592 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 21593 LIBS="$LIBS $i" 21594 fi 21595 done 21596 fi 21597 21598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvCreate in -lclntsh" >&5 21599$as_echo_n "checking for OCIEnvCreate in -lclntsh... " >&6; } 21600if ${ac_cv_lib_clntsh_OCIEnvCreate+:} false; then : 21601 $as_echo_n "(cached) " >&6 21602else 21603 ac_check_lib_save_LIBS=$LIBS 21604LIBS="-lclntsh $LIBS" 21605cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21606/* end confdefs.h. */ 21607 21608/* Override any GCC internal prototype to avoid an error. 21609 Use char because int might match the return type of a GCC 21610 builtin and then its argument prototype would still apply. */ 21611#ifdef __cplusplus 21612extern "C" 21613#endif 21614char OCIEnvCreate (); 21615int 21616main () 21617{ 21618return OCIEnvCreate (); 21619 ; 21620 return 0; 21621} 21622_ACEOF 21623if ac_fn_c_try_link "$LINENO"; then : 21624 ac_cv_lib_clntsh_OCIEnvCreate=yes 21625else 21626 ac_cv_lib_clntsh_OCIEnvCreate=no 21627fi 21628rm -f core conftest.err conftest.$ac_objext \ 21629 conftest$ac_exeext conftest.$ac_ext 21630LIBS=$ac_check_lib_save_LIBS 21631fi 21632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvCreate" >&5 21633$as_echo "$ac_cv_lib_clntsh_OCIEnvCreate" >&6; } 21634if test "x$ac_cv_lib_clntsh_OCIEnvCreate" = xyes; then : 21635 apu_have_oracle=1 21636fi 21637 21638 21639fi 21640 21641 21642fi 21643 21644fi 21645 21646done 21647 21648 if test "$apu_have_oracle" != "0"; then 21649 oracle_LDFLAGS="$oracle_LDFLAGS -R$withval/lib" 21650 if test -z "$with_oracle_include"; then 21651 21652 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 21653 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"-I$withval/rdbms/demo\"" 21654 APRUTIL_PRIV_INCLUDES="-I$withval/rdbms/demo" 21655 else 21656 apr_addto_bugger="-I$withval/rdbms/demo" 21657 for i in $apr_addto_bugger; do 21658 apr_addto_duplicate="0" 21659 for j in $APRUTIL_PRIV_INCLUDES; do 21660 if test "x$i" = "x$j"; then 21661 apr_addto_duplicate="1" 21662 break 21663 fi 21664 done 21665 if test $apr_addto_duplicate = "0"; then 21666 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 21667 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 21668 fi 21669 done 21670 fi 21671 21672 21673 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 21674 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"-I$withval/rdbms/public\"" 21675 APRUTIL_PRIV_INCLUDES="-I$withval/rdbms/public" 21676 else 21677 apr_addto_bugger="-I$withval/rdbms/public" 21678 for i in $apr_addto_bugger; do 21679 apr_addto_duplicate="0" 21680 for j in $APRUTIL_PRIV_INCLUDES; do 21681 if test "x$i" = "x$j"; then 21682 apr_addto_duplicate="1" 21683 break 21684 fi 21685 done 21686 if test $apr_addto_duplicate = "0"; then 21687 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 21688 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 21689 fi 21690 done 21691 fi 21692 21693 fi 21694 fi 21695 fi 21696 21697fi 21698 21699 21700 21701 21702 if test "$apu_have_oracle" = "1"; then 21703 21704 if test "x$LDADD_dbd_oracle" = "x"; then 21705 test "x$silent" != "xyes" && echo " setting LDADD_dbd_oracle to \"$oracle_LDFLAGS -lclntsh $oracle_LIBS\"" 21706 LDADD_dbd_oracle="$oracle_LDFLAGS -lclntsh $oracle_LIBS" 21707 else 21708 apr_addto_bugger="$oracle_LDFLAGS -lclntsh $oracle_LIBS" 21709 for i in $apr_addto_bugger; do 21710 apr_addto_duplicate="0" 21711 for j in $LDADD_dbd_oracle; do 21712 if test "x$i" = "x$j"; then 21713 apr_addto_duplicate="1" 21714 break 21715 fi 21716 done 21717 if test $apr_addto_duplicate = "0"; then 21718 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbd_oracle" 21719 LDADD_dbd_oracle="$LDADD_dbd_oracle $i" 21720 fi 21721 done 21722 fi 21723 21724 fi 21725 21726 21727 LIBS="$old_libs" 21728 CPPFLAGS="$old_cppflags" 21729 LDFLAGS="$old_ldflags" 21730 21731 21732 apu_have_odbc=0 21733 21734 old_libs="$LIBS" 21735 old_cppflags="$CPPFLAGS" 21736 old_ldflags="$LDFLAGS" 21737 21738 21739# Check whether --with-odbc was given. 21740if test "${with_odbc+set}" = set; then : 21741 withval=$with_odbc; 21742 if test "$withval" = "yes"; then 21743 # Extract the first word of "odbc_config", so it can be a program name with args. 21744set dummy odbc_config; ac_word=$2 21745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21746$as_echo_n "checking for $ac_word... " >&6; } 21747if ${ac_cv_path_ODBC_CONFIG+:} false; then : 21748 $as_echo_n "(cached) " >&6 21749else 21750 case $ODBC_CONFIG in 21751 [\\/]* | ?:[\\/]*) 21752 ac_cv_path_ODBC_CONFIG="$ODBC_CONFIG" # Let the user override the test with a path. 21753 ;; 21754 *) 21755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21756for as_dir in $PATH 21757do 21758 IFS=$as_save_IFS 21759 test -z "$as_dir" && as_dir=. 21760 for ac_exec_ext in '' $ac_executable_extensions; do 21761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21762 ac_cv_path_ODBC_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21764 break 2 21765 fi 21766done 21767 done 21768IFS=$as_save_IFS 21769 21770 ;; 21771esac 21772fi 21773ODBC_CONFIG=$ac_cv_path_ODBC_CONFIG 21774if test -n "$ODBC_CONFIG"; then 21775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODBC_CONFIG" >&5 21776$as_echo "$ODBC_CONFIG" >&6; } 21777else 21778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21779$as_echo "no" >&6; } 21780fi 21781 21782 21783 if test "x$ODBC_CONFIG" != 'x'; then 21784 odbc_CPPFLAGS="-I`$ODBC_CONFIG --include-prefix`" 21785 odbc_LDFLAGS="-L`$ODBC_CONFIG --lib-prefix`" 21786 odbc_LIBS="`$ODBC_CONFIG --libs`" 21787 21788 21789 if test "x$CPPFLAGS" = "x"; then 21790 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$odbc_CPPFLAGS\"" 21791 CPPFLAGS="$odbc_CPPFLAGS" 21792 else 21793 apr_addto_bugger="$odbc_CPPFLAGS" 21794 for i in $apr_addto_bugger; do 21795 apr_addto_duplicate="0" 21796 for j in $CPPFLAGS; do 21797 if test "x$i" = "x$j"; then 21798 apr_addto_duplicate="1" 21799 break 21800 fi 21801 done 21802 if test $apr_addto_duplicate = "0"; then 21803 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 21804 CPPFLAGS="$CPPFLAGS $i" 21805 fi 21806 done 21807 fi 21808 21809 21810 if test "x$LDFLAGS" = "x"; then 21811 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$odbc_LDFLAGS\"" 21812 LDFLAGS="$odbc_LDFLAGS" 21813 else 21814 apr_addto_bugger="$odbc_LDFLAGS" 21815 for i in $apr_addto_bugger; do 21816 apr_addto_duplicate="0" 21817 for j in $LDFLAGS; do 21818 if test "x$i" = "x$j"; then 21819 apr_addto_duplicate="1" 21820 break 21821 fi 21822 done 21823 if test $apr_addto_duplicate = "0"; then 21824 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 21825 LDFLAGS="$LDFLAGS $i" 21826 fi 21827 done 21828 fi 21829 21830 21831 if test "x$LIBS" = "x"; then 21832 test "x$silent" != "xyes" && echo " setting LIBS to \"$odbc_LIBS\"" 21833 LIBS="$odbc_LIBS" 21834 else 21835 apr_addto_bugger="$odbc_LIBS" 21836 for i in $apr_addto_bugger; do 21837 apr_addto_duplicate="0" 21838 for j in $LIBS; do 21839 if test "x$i" = "x$j"; then 21840 apr_addto_duplicate="1" 21841 break 21842 fi 21843 done 21844 if test $apr_addto_duplicate = "0"; then 21845 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 21846 LIBS="$LIBS $i" 21847 fi 21848 done 21849 fi 21850 21851 fi 21852 21853 for ac_header in sql.h 21854do : 21855 ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default" 21856if test "x$ac_cv_header_sql_h" = xyes; then : 21857 cat >>confdefs.h <<_ACEOF 21858#define HAVE_SQL_H 1 21859_ACEOF 21860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLAllocHandle in -lodbc" >&5 21861$as_echo_n "checking for SQLAllocHandle in -lodbc... " >&6; } 21862if ${ac_cv_lib_odbc_SQLAllocHandle+:} false; then : 21863 $as_echo_n "(cached) " >&6 21864else 21865 ac_check_lib_save_LIBS=$LIBS 21866LIBS="-lodbc $LIBS" 21867cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21868/* end confdefs.h. */ 21869 21870/* Override any GCC internal prototype to avoid an error. 21871 Use char because int might match the return type of a GCC 21872 builtin and then its argument prototype would still apply. */ 21873#ifdef __cplusplus 21874extern "C" 21875#endif 21876char SQLAllocHandle (); 21877int 21878main () 21879{ 21880return SQLAllocHandle (); 21881 ; 21882 return 0; 21883} 21884_ACEOF 21885if ac_fn_c_try_link "$LINENO"; then : 21886 ac_cv_lib_odbc_SQLAllocHandle=yes 21887else 21888 ac_cv_lib_odbc_SQLAllocHandle=no 21889fi 21890rm -f core conftest.err conftest.$ac_objext \ 21891 conftest$ac_exeext conftest.$ac_ext 21892LIBS=$ac_check_lib_save_LIBS 21893fi 21894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLAllocHandle" >&5 21895$as_echo "$ac_cv_lib_odbc_SQLAllocHandle" >&6; } 21896if test "x$ac_cv_lib_odbc_SQLAllocHandle" = xyes; then : 21897 apu_have_odbc=1 21898fi 21899 21900fi 21901 21902done 21903 21904 if test "$apu_have_odbc" = "0"; then 21905 for ac_header in odbc/sql.h 21906do : 21907 ac_fn_c_check_header_mongrel "$LINENO" "odbc/sql.h" "ac_cv_header_odbc_sql_h" "$ac_includes_default" 21908if test "x$ac_cv_header_odbc_sql_h" = xyes; then : 21909 cat >>confdefs.h <<_ACEOF 21910#define HAVE_ODBC_SQL_H 1 21911_ACEOF 21912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLAllocHandle in -lodbc" >&5 21913$as_echo_n "checking for SQLAllocHandle in -lodbc... " >&6; } 21914if ${ac_cv_lib_odbc_SQLAllocHandle+:} false; then : 21915 $as_echo_n "(cached) " >&6 21916else 21917 ac_check_lib_save_LIBS=$LIBS 21918LIBS="-lodbc $LIBS" 21919cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21920/* end confdefs.h. */ 21921 21922/* Override any GCC internal prototype to avoid an error. 21923 Use char because int might match the return type of a GCC 21924 builtin and then its argument prototype would still apply. */ 21925#ifdef __cplusplus 21926extern "C" 21927#endif 21928char SQLAllocHandle (); 21929int 21930main () 21931{ 21932return SQLAllocHandle (); 21933 ; 21934 return 0; 21935} 21936_ACEOF 21937if ac_fn_c_try_link "$LINENO"; then : 21938 ac_cv_lib_odbc_SQLAllocHandle=yes 21939else 21940 ac_cv_lib_odbc_SQLAllocHandle=no 21941fi 21942rm -f core conftest.err conftest.$ac_objext \ 21943 conftest$ac_exeext conftest.$ac_ext 21944LIBS=$ac_check_lib_save_LIBS 21945fi 21946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLAllocHandle" >&5 21947$as_echo "$ac_cv_lib_odbc_SQLAllocHandle" >&6; } 21948if test "x$ac_cv_lib_odbc_SQLAllocHandle" = xyes; then : 21949 apu_have_odbc=1 21950fi 21951 21952fi 21953 21954done 21955 21956 fi 21957 if test "$apu_have_odbc" != "0" && test "x$ODBC_CONFIG" != 'x'; then 21958 21959 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 21960 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"$odbc_CPPFLAGS\"" 21961 APRUTIL_PRIV_INCLUDES="$odbc_CPPFLAGS" 21962 else 21963 apr_addto_bugger="$odbc_CPPFLAGS" 21964 for i in $apr_addto_bugger; do 21965 apr_addto_duplicate="0" 21966 for j in $APRUTIL_PRIV_INCLUDES; do 21967 if test "x$i" = "x$j"; then 21968 apr_addto_duplicate="1" 21969 break 21970 fi 21971 done 21972 if test $apr_addto_duplicate = "0"; then 21973 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 21974 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 21975 fi 21976 done 21977 fi 21978 21979 fi 21980 elif test "$withval" = "no"; then 21981 : 21982 else 21983 # Extract the first word of "odbc_config", so it can be a program name with args. 21984set dummy odbc_config; ac_word=$2 21985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21986$as_echo_n "checking for $ac_word... " >&6; } 21987if ${ac_cv_path_ODBC_CONFIG+:} false; then : 21988 $as_echo_n "(cached) " >&6 21989else 21990 case $ODBC_CONFIG in 21991 [\\/]* | ?:[\\/]*) 21992 ac_cv_path_ODBC_CONFIG="$ODBC_CONFIG" # Let the user override the test with a path. 21993 ;; 21994 *) 21995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21996for as_dir in $withval/bin 21997do 21998 IFS=$as_save_IFS 21999 test -z "$as_dir" && as_dir=. 22000 for ac_exec_ext in '' $ac_executable_extensions; do 22001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22002 ac_cv_path_ODBC_CONFIG="$as_dir/$ac_word$ac_exec_ext" 22003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22004 break 2 22005 fi 22006done 22007 done 22008IFS=$as_save_IFS 22009 22010 ;; 22011esac 22012fi 22013ODBC_CONFIG=$ac_cv_path_ODBC_CONFIG 22014if test -n "$ODBC_CONFIG"; then 22015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODBC_CONFIG" >&5 22016$as_echo "$ODBC_CONFIG" >&6; } 22017else 22018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22019$as_echo "no" >&6; } 22020fi 22021 22022 22023 if test "x$ODBC_CONFIG" != 'x'; then 22024 odbc_CPPFLAGS="-I`$ODBC_CONFIG --include-prefix`" 22025 odbc_LDFLAGS="-L`$ODBC_CONFIG --lib-prefix`" 22026 odbc_LIBS="`$ODBC_CONFIG --libs`" 22027 else 22028 if test -f "$withval" && test -x "$withval"; then 22029 odbc_CPPFLAGS="-I`$withval --include-prefix`" 22030 odbc_LDFLAGS="-L`$withval --lib-prefix`" 22031 odbc_LIBS="`$withval --libs`" 22032 else 22033 odbc_CPPFLAGS="-I$withval/include" 22034 odbc_LDFLAGS="-L$withval/lib " 22035 fi 22036 fi 22037 22038 22039 if test "x$CPPFLAGS" = "x"; then 22040 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$odbc_CPPFLAGS\"" 22041 CPPFLAGS="$odbc_CPPFLAGS" 22042 else 22043 apr_addto_bugger="$odbc_CPPFLAGS" 22044 for i in $apr_addto_bugger; do 22045 apr_addto_duplicate="0" 22046 for j in $CPPFLAGS; do 22047 if test "x$i" = "x$j"; then 22048 apr_addto_duplicate="1" 22049 break 22050 fi 22051 done 22052 if test $apr_addto_duplicate = "0"; then 22053 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 22054 CPPFLAGS="$CPPFLAGS $i" 22055 fi 22056 done 22057 fi 22058 22059 22060 if test "x$LDFLAGS" = "x"; then 22061 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$odbc_LDFLAGS\"" 22062 LDFLAGS="$odbc_LDFLAGS" 22063 else 22064 apr_addto_bugger="$odbc_LDFLAGS" 22065 for i in $apr_addto_bugger; do 22066 apr_addto_duplicate="0" 22067 for j in $LDFLAGS; do 22068 if test "x$i" = "x$j"; then 22069 apr_addto_duplicate="1" 22070 break 22071 fi 22072 done 22073 if test $apr_addto_duplicate = "0"; then 22074 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 22075 LDFLAGS="$LDFLAGS $i" 22076 fi 22077 done 22078 fi 22079 22080 22081 if test "x$LIBS" = "x"; then 22082 test "x$silent" != "xyes" && echo " setting LIBS to \"$odbc_LIBS\"" 22083 LIBS="$odbc_LIBS" 22084 else 22085 apr_addto_bugger="$odbc_LIBS" 22086 for i in $apr_addto_bugger; do 22087 apr_addto_duplicate="0" 22088 for j in $LIBS; do 22089 if test "x$i" = "x$j"; then 22090 apr_addto_duplicate="1" 22091 break 22092 fi 22093 done 22094 if test $apr_addto_duplicate = "0"; then 22095 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 22096 LIBS="$LIBS $i" 22097 fi 22098 done 22099 fi 22100 22101 22102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for odbc in $withval" >&5 22103$as_echo "$as_me: checking for odbc in $withval" >&6;} 22104 for ac_header in sql.h 22105do : 22106 ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default" 22107if test "x$ac_cv_header_sql_h" = xyes; then : 22108 cat >>confdefs.h <<_ACEOF 22109#define HAVE_SQL_H 1 22110_ACEOF 22111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLAllocHandle in -lodbc" >&5 22112$as_echo_n "checking for SQLAllocHandle in -lodbc... " >&6; } 22113if ${ac_cv_lib_odbc_SQLAllocHandle+:} false; then : 22114 $as_echo_n "(cached) " >&6 22115else 22116 ac_check_lib_save_LIBS=$LIBS 22117LIBS="-lodbc $LIBS" 22118cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22119/* end confdefs.h. */ 22120 22121/* Override any GCC internal prototype to avoid an error. 22122 Use char because int might match the return type of a GCC 22123 builtin and then its argument prototype would still apply. */ 22124#ifdef __cplusplus 22125extern "C" 22126#endif 22127char SQLAllocHandle (); 22128int 22129main () 22130{ 22131return SQLAllocHandle (); 22132 ; 22133 return 0; 22134} 22135_ACEOF 22136if ac_fn_c_try_link "$LINENO"; then : 22137 ac_cv_lib_odbc_SQLAllocHandle=yes 22138else 22139 ac_cv_lib_odbc_SQLAllocHandle=no 22140fi 22141rm -f core conftest.err conftest.$ac_objext \ 22142 conftest$ac_exeext conftest.$ac_ext 22143LIBS=$ac_check_lib_save_LIBS 22144fi 22145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLAllocHandle" >&5 22146$as_echo "$ac_cv_lib_odbc_SQLAllocHandle" >&6; } 22147if test "x$ac_cv_lib_odbc_SQLAllocHandle" = xyes; then : 22148 apu_have_odbc=1 22149fi 22150 22151fi 22152 22153done 22154 22155 if test "$apu_have_odbc" = "0"; then 22156 for ac_header in odbc/sql.h 22157do : 22158 ac_fn_c_check_header_mongrel "$LINENO" "odbc/sql.h" "ac_cv_header_odbc_sql_h" "$ac_includes_default" 22159if test "x$ac_cv_header_odbc_sql_h" = xyes; then : 22160 cat >>confdefs.h <<_ACEOF 22161#define HAVE_ODBC_SQL_H 1 22162_ACEOF 22163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLAllocHandle in -lodbc" >&5 22164$as_echo_n "checking for SQLAllocHandle in -lodbc... " >&6; } 22165if ${ac_cv_lib_odbc_SQLAllocHandle+:} false; then : 22166 $as_echo_n "(cached) " >&6 22167else 22168 ac_check_lib_save_LIBS=$LIBS 22169LIBS="-lodbc $LIBS" 22170cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22171/* end confdefs.h. */ 22172 22173/* Override any GCC internal prototype to avoid an error. 22174 Use char because int might match the return type of a GCC 22175 builtin and then its argument prototype would still apply. */ 22176#ifdef __cplusplus 22177extern "C" 22178#endif 22179char SQLAllocHandle (); 22180int 22181main () 22182{ 22183return SQLAllocHandle (); 22184 ; 22185 return 0; 22186} 22187_ACEOF 22188if ac_fn_c_try_link "$LINENO"; then : 22189 ac_cv_lib_odbc_SQLAllocHandle=yes 22190else 22191 ac_cv_lib_odbc_SQLAllocHandle=no 22192fi 22193rm -f core conftest.err conftest.$ac_objext \ 22194 conftest$ac_exeext conftest.$ac_ext 22195LIBS=$ac_check_lib_save_LIBS 22196fi 22197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLAllocHandle" >&5 22198$as_echo "$ac_cv_lib_odbc_SQLAllocHandle" >&6; } 22199if test "x$ac_cv_lib_odbc_SQLAllocHandle" = xyes; then : 22200 apu_have_odbc=1 22201fi 22202 22203fi 22204 22205done 22206 22207 fi 22208 if test "$apu_have_odbc" != "0" && test "x$ODBC_CONFIG" != 'x'; then 22209 22210 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 22211 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"$odbc_CPPFLAGS\"" 22212 APRUTIL_PRIV_INCLUDES="$odbc_CPPFLAGS" 22213 else 22214 apr_addto_bugger="$odbc_CPPFLAGS" 22215 for i in $apr_addto_bugger; do 22216 apr_addto_duplicate="0" 22217 for j in $APRUTIL_PRIV_INCLUDES; do 22218 if test "x$i" = "x$j"; then 22219 apr_addto_duplicate="1" 22220 break 22221 fi 22222 done 22223 if test $apr_addto_duplicate = "0"; then 22224 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 22225 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 22226 fi 22227 done 22228 fi 22229 22230 fi 22231 fi 22232 22233else 22234 22235 # Extract the first word of "odbc_config", so it can be a program name with args. 22236set dummy odbc_config; ac_word=$2 22237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22238$as_echo_n "checking for $ac_word... " >&6; } 22239if ${ac_cv_path_ODBC_CONFIG+:} false; then : 22240 $as_echo_n "(cached) " >&6 22241else 22242 case $ODBC_CONFIG in 22243 [\\/]* | ?:[\\/]*) 22244 ac_cv_path_ODBC_CONFIG="$ODBC_CONFIG" # Let the user override the test with a path. 22245 ;; 22246 *) 22247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22248for as_dir in $PATH 22249do 22250 IFS=$as_save_IFS 22251 test -z "$as_dir" && as_dir=. 22252 for ac_exec_ext in '' $ac_executable_extensions; do 22253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22254 ac_cv_path_ODBC_CONFIG="$as_dir/$ac_word$ac_exec_ext" 22255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22256 break 2 22257 fi 22258done 22259 done 22260IFS=$as_save_IFS 22261 22262 ;; 22263esac 22264fi 22265ODBC_CONFIG=$ac_cv_path_ODBC_CONFIG 22266if test -n "$ODBC_CONFIG"; then 22267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODBC_CONFIG" >&5 22268$as_echo "$ODBC_CONFIG" >&6; } 22269else 22270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22271$as_echo "no" >&6; } 22272fi 22273 22274 22275 if test "x$ODBC_CONFIG" != 'x'; then 22276 odbc_CPPFLAGS="-I`$ODBC_CONFIG --include-prefix`" 22277 odbc_LDFLAGS="-L`$ODBC_CONFIG --lib-prefix`" 22278 odbc_LIBS="`$ODBC_CONFIG --libs`" 22279 22280 22281 if test "x$CPPFLAGS" = "x"; then 22282 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$odbc_CPPFLAGS\"" 22283 CPPFLAGS="$odbc_CPPFLAGS" 22284 else 22285 apr_addto_bugger="$odbc_CPPFLAGS" 22286 for i in $apr_addto_bugger; do 22287 apr_addto_duplicate="0" 22288 for j in $CPPFLAGS; do 22289 if test "x$i" = "x$j"; then 22290 apr_addto_duplicate="1" 22291 break 22292 fi 22293 done 22294 if test $apr_addto_duplicate = "0"; then 22295 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 22296 CPPFLAGS="$CPPFLAGS $i" 22297 fi 22298 done 22299 fi 22300 22301 22302 if test "x$LDFLAGS" = "x"; then 22303 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$odbc_LDFLAGS\"" 22304 LDFLAGS="$odbc_LDFLAGS" 22305 else 22306 apr_addto_bugger="$odbc_LDFLAGS" 22307 for i in $apr_addto_bugger; do 22308 apr_addto_duplicate="0" 22309 for j in $LDFLAGS; do 22310 if test "x$i" = "x$j"; then 22311 apr_addto_duplicate="1" 22312 break 22313 fi 22314 done 22315 if test $apr_addto_duplicate = "0"; then 22316 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 22317 LDFLAGS="$LDFLAGS $i" 22318 fi 22319 done 22320 fi 22321 22322 22323 if test "x$LIBS" = "x"; then 22324 test "x$silent" != "xyes" && echo " setting LIBS to \"$odbc_LIBS\"" 22325 LIBS="$odbc_LIBS" 22326 else 22327 apr_addto_bugger="$odbc_LIBS" 22328 for i in $apr_addto_bugger; do 22329 apr_addto_duplicate="0" 22330 for j in $LIBS; do 22331 if test "x$i" = "x$j"; then 22332 apr_addto_duplicate="1" 22333 break 22334 fi 22335 done 22336 if test $apr_addto_duplicate = "0"; then 22337 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 22338 LIBS="$LIBS $i" 22339 fi 22340 done 22341 fi 22342 22343 fi 22344 22345 for ac_header in sql.h 22346do : 22347 ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default" 22348if test "x$ac_cv_header_sql_h" = xyes; then : 22349 cat >>confdefs.h <<_ACEOF 22350#define HAVE_SQL_H 1 22351_ACEOF 22352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLAllocHandle in -lodbc" >&5 22353$as_echo_n "checking for SQLAllocHandle in -lodbc... " >&6; } 22354if ${ac_cv_lib_odbc_SQLAllocHandle+:} false; then : 22355 $as_echo_n "(cached) " >&6 22356else 22357 ac_check_lib_save_LIBS=$LIBS 22358LIBS="-lodbc $LIBS" 22359cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22360/* end confdefs.h. */ 22361 22362/* Override any GCC internal prototype to avoid an error. 22363 Use char because int might match the return type of a GCC 22364 builtin and then its argument prototype would still apply. */ 22365#ifdef __cplusplus 22366extern "C" 22367#endif 22368char SQLAllocHandle (); 22369int 22370main () 22371{ 22372return SQLAllocHandle (); 22373 ; 22374 return 0; 22375} 22376_ACEOF 22377if ac_fn_c_try_link "$LINENO"; then : 22378 ac_cv_lib_odbc_SQLAllocHandle=yes 22379else 22380 ac_cv_lib_odbc_SQLAllocHandle=no 22381fi 22382rm -f core conftest.err conftest.$ac_objext \ 22383 conftest$ac_exeext conftest.$ac_ext 22384LIBS=$ac_check_lib_save_LIBS 22385fi 22386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLAllocHandle" >&5 22387$as_echo "$ac_cv_lib_odbc_SQLAllocHandle" >&6; } 22388if test "x$ac_cv_lib_odbc_SQLAllocHandle" = xyes; then : 22389 apu_have_odbc=1 22390fi 22391 22392fi 22393 22394done 22395 22396 if test "$apu_have_odbc" = "0"; then 22397 for ac_header in odbc/sql.h 22398do : 22399 ac_fn_c_check_header_mongrel "$LINENO" "odbc/sql.h" "ac_cv_header_odbc_sql_h" "$ac_includes_default" 22400if test "x$ac_cv_header_odbc_sql_h" = xyes; then : 22401 cat >>confdefs.h <<_ACEOF 22402#define HAVE_ODBC_SQL_H 1 22403_ACEOF 22404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLAllocHandle in -lodbc" >&5 22405$as_echo_n "checking for SQLAllocHandle in -lodbc... " >&6; } 22406if ${ac_cv_lib_odbc_SQLAllocHandle+:} false; then : 22407 $as_echo_n "(cached) " >&6 22408else 22409 ac_check_lib_save_LIBS=$LIBS 22410LIBS="-lodbc $LIBS" 22411cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22412/* end confdefs.h. */ 22413 22414/* Override any GCC internal prototype to avoid an error. 22415 Use char because int might match the return type of a GCC 22416 builtin and then its argument prototype would still apply. */ 22417#ifdef __cplusplus 22418extern "C" 22419#endif 22420char SQLAllocHandle (); 22421int 22422main () 22423{ 22424return SQLAllocHandle (); 22425 ; 22426 return 0; 22427} 22428_ACEOF 22429if ac_fn_c_try_link "$LINENO"; then : 22430 ac_cv_lib_odbc_SQLAllocHandle=yes 22431else 22432 ac_cv_lib_odbc_SQLAllocHandle=no 22433fi 22434rm -f core conftest.err conftest.$ac_objext \ 22435 conftest$ac_exeext conftest.$ac_ext 22436LIBS=$ac_check_lib_save_LIBS 22437fi 22438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLAllocHandle" >&5 22439$as_echo "$ac_cv_lib_odbc_SQLAllocHandle" >&6; } 22440if test "x$ac_cv_lib_odbc_SQLAllocHandle" = xyes; then : 22441 apu_have_odbc=1 22442fi 22443 22444fi 22445 22446done 22447 22448 fi 22449 if test "$apu_have_odbc" != "0" && test "x$ODBC_CONFIG" != 'x'; then 22450 22451 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 22452 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"$odbc_CPPFLAGS\"" 22453 APRUTIL_PRIV_INCLUDES="$odbc_CPPFLAGS" 22454 else 22455 apr_addto_bugger="$odbc_CPPFLAGS" 22456 for i in $apr_addto_bugger; do 22457 apr_addto_duplicate="0" 22458 for j in $APRUTIL_PRIV_INCLUDES; do 22459 if test "x$i" = "x$j"; then 22460 apr_addto_duplicate="1" 22461 break 22462 fi 22463 done 22464 if test $apr_addto_duplicate = "0"; then 22465 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 22466 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 22467 fi 22468 done 22469 fi 22470 22471 fi 22472 22473fi 22474 22475 22476 if test "$apu_have_odbc" = "1"; then 22477 22478 if test "x$LDADD_dbd_odbc" = "x"; then 22479 test "x$silent" != "xyes" && echo " setting LDADD_dbd_odbc to \"$odbc_LDFLAGS -lodbc $odbc_LIBS\"" 22480 LDADD_dbd_odbc="$odbc_LDFLAGS -lodbc $odbc_LIBS" 22481 else 22482 apr_addto_bugger="$odbc_LDFLAGS -lodbc $odbc_LIBS" 22483 for i in $apr_addto_bugger; do 22484 apr_addto_duplicate="0" 22485 for j in $LDADD_dbd_odbc; do 22486 if test "x$i" = "x$j"; then 22487 apr_addto_duplicate="1" 22488 break 22489 fi 22490 done 22491 if test $apr_addto_duplicate = "0"; then 22492 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbd_odbc" 22493 LDADD_dbd_odbc="$LDADD_dbd_odbc $i" 22494 fi 22495 done 22496 fi 22497 22498 fi 22499 22500 22501 LIBS="$old_libs" 22502 CPPFLAGS="$old_cppflags" 22503 LDFLAGS="$old_ldflags" 22504 22505 apu_dbd_tests="" 22506 test $apu_have_oracle = 1 && apu_dbd_tests="$apu_dbd_tests oracle" 22507 test $apu_have_pgsql = 1 && apu_dbd_tests="$apu_dbd_tests pgsql" 22508 test $apu_have_mysql = 1 && apu_dbd_tests="$apu_dbd_tests mysql" 22509 test $apu_have_sqlite2 = 1 && apu_dbd_tests="$apu_dbd_tests sqlite2" 22510 test $apu_have_sqlite3 = 1 && apu_dbd_tests="$apu_dbd_tests sqlite3" 22511 test $apu_have_odbc = 1 && apu_dbd_tests="$apu_dbd_tests odbc" 22512 22513 22514 22515 22516save_cppflags="$CPPFLAGS" 22517save_ldflags="$LDFLAGS" 22518 22519apu_has_expat=0 22520 22521apu_try_external_expat=1 22522 22523 22524# Check whether --with-expat was given. 22525if test "${with_expat+set}" = set; then : 22526 withval=$with_expat; 22527 if test "$withval" = "yes"; then 22528 as_fn_error $? "a directory must be specified for --with-expat" "$LINENO" 5 22529 elif test "$withval" = "no"; then 22530 as_fn_error $? "Expat cannot be disabled (at this time)" "$LINENO" 5 22531 else 22532 # Add given path to standard search paths if appropriate: 22533 if test "$withval" != "/usr"; then 22534 22535 if test "x$LDFLAGS" = "x"; then 22536 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-L$withval/lib\"" 22537 LDFLAGS="-L$withval/lib" 22538 else 22539 apr_addto_bugger="-L$withval/lib" 22540 for i in $apr_addto_bugger; do 22541 apr_addto_duplicate="0" 22542 for j in $LDFLAGS; do 22543 if test "x$i" = "x$j"; then 22544 apr_addto_duplicate="1" 22545 break 22546 fi 22547 done 22548 if test $apr_addto_duplicate = "0"; then 22549 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 22550 LDFLAGS="$LDFLAGS $i" 22551 fi 22552 done 22553 fi 22554 22555 22556 if test "x$CPPFLAGS" = "x"; then 22557 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-I$withval/include\"" 22558 CPPFLAGS="-I$withval/include" 22559 else 22560 apr_addto_bugger="-I$withval/include" 22561 for i in $apr_addto_bugger; do 22562 apr_addto_duplicate="0" 22563 for j in $CPPFLAGS; do 22564 if test "x$i" = "x$j"; then 22565 apr_addto_duplicate="1" 22566 break 22567 fi 22568 done 22569 if test $apr_addto_duplicate = "0"; then 22570 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 22571 CPPFLAGS="$CPPFLAGS $i" 22572 fi 22573 done 22574 fi 22575 22576 22577 if test "x$APRUTIL_INCLUDES" = "x"; then 22578 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$withval/include\"" 22579 APRUTIL_INCLUDES="-I$withval/include" 22580 else 22581 apr_addto_bugger="-I$withval/include" 22582 for i in $apr_addto_bugger; do 22583 apr_addto_duplicate="0" 22584 for j in $APRUTIL_INCLUDES; do 22585 if test "x$i" = "x$j"; then 22586 apr_addto_duplicate="1" 22587 break 22588 fi 22589 done 22590 if test $apr_addto_duplicate = "0"; then 22591 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 22592 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 22593 fi 22594 done 22595 fi 22596 22597 22598 if test "x$APRUTIL_LDFLAGS" = "x"; then 22599 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$withval/lib\"" 22600 APRUTIL_LDFLAGS="-L$withval/lib" 22601 else 22602 apr_addto_bugger="-L$withval/lib" 22603 for i in $apr_addto_bugger; do 22604 apr_addto_duplicate="0" 22605 for j in $APRUTIL_LDFLAGS; do 22606 if test "x$i" = "x$j"; then 22607 apr_addto_duplicate="1" 22608 break 22609 fi 22610 done 22611 if test $apr_addto_duplicate = "0"; then 22612 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 22613 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 22614 fi 22615 done 22616 fi 22617 22618 fi 22619 fi 22620 22621fi 22622 22623 22624if test $apu_try_external_expat = 1; then 22625 22626 22627 22628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Expat 1.95.x" >&5 22629$as_echo_n "checking Expat 1.95.x... " >&6; } 22630if ${apu_cv_expat_system+:} false; then : 22631 $as_echo_n "(cached) " >&6 22632else 22633 22634 apu_expat_LIBS=$LIBS 22635 LIBS="$LIBS -lexpat" 22636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22637/* end confdefs.h. */ 22638#include <stdlib.h> 22639#include <expat.h> 22640int 22641main () 22642{ 22643XML_ParserCreate(NULL); 22644 ; 22645 return 0; 22646} 22647_ACEOF 22648if ac_fn_c_try_link "$LINENO"; then : 22649 apu_cv_expat_system=yes 22650else 22651 apu_cv_expat_system=no 22652fi 22653rm -f core conftest.err conftest.$ac_objext \ 22654 conftest$ac_exeext conftest.$ac_ext 22655 LIBS=$apu_expat_LIBS 22656 22657fi 22658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_cv_expat_system" >&5 22659$as_echo "$apu_cv_expat_system" >&6; } 22660 22661if test $apu_cv_expat_system = yes; then 22662 22663$as_echo "#define HAVE_EXPAT_H 1" >>confdefs.h 22664 22665 apu_expat_libs="-lexpat" 22666 apu_has_expat=1 22667 22668else 22669 apu_has_expat=0 22670 22671fi 22672 22673 22674 if test $apu_has_expat = 0; then 22675 22676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking old Debian-packaged expat" >&5 22677$as_echo_n "checking old Debian-packaged expat... " >&6; } 22678if ${apu_cv_expat_debian+:} false; then : 22679 $as_echo_n "(cached) " >&6 22680else 22681 22682 apu_expat_LIBS=$LIBS 22683 LIBS="$LIBS -lxmlparse -lxmltok" 22684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22685/* end confdefs.h. */ 22686#include <stdlib.h> 22687#include <xmltok/xmlparse.h> 22688int 22689main () 22690{ 22691XML_ParserCreate(NULL); 22692 ; 22693 return 0; 22694} 22695_ACEOF 22696if ac_fn_c_try_link "$LINENO"; then : 22697 apu_cv_expat_debian=yes 22698else 22699 apu_cv_expat_debian=no 22700fi 22701rm -f core conftest.err conftest.$ac_objext \ 22702 conftest$ac_exeext conftest.$ac_ext 22703 LIBS=$apu_expat_LIBS 22704 22705fi 22706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_cv_expat_debian" >&5 22707$as_echo "$apu_cv_expat_debian" >&6; } 22708 22709if test $apu_cv_expat_debian = yes; then 22710 22711$as_echo "#define HAVE_XMLTOK_XMLPARSE_H 1" >>confdefs.h 22712 22713 apu_expat_libs="-lxmlparse -lxmltok" 22714 apu_has_expat=1 22715 22716else 22717 apu_has_expat=0 22718 22719fi 22720 22721 fi 22722 22723 if test $apu_has_expat = 0; then 22724 22725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking old FreeBSD-packaged expat" >&5 22726$as_echo_n "checking old FreeBSD-packaged expat... " >&6; } 22727if ${apu_cv_expat_freebsd+:} false; then : 22728 $as_echo_n "(cached) " >&6 22729else 22730 22731 apu_expat_LIBS=$LIBS 22732 LIBS="$LIBS -lexpat" 22733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22734/* end confdefs.h. */ 22735#include <stdlib.h> 22736#include <xml/xmlparse.h> 22737int 22738main () 22739{ 22740XML_ParserCreate(NULL); 22741 ; 22742 return 0; 22743} 22744_ACEOF 22745if ac_fn_c_try_link "$LINENO"; then : 22746 apu_cv_expat_freebsd=yes 22747else 22748 apu_cv_expat_freebsd=no 22749fi 22750rm -f core conftest.err conftest.$ac_objext \ 22751 conftest$ac_exeext conftest.$ac_ext 22752 LIBS=$apu_expat_LIBS 22753 22754fi 22755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_cv_expat_freebsd" >&5 22756$as_echo "$apu_cv_expat_freebsd" >&6; } 22757 22758if test $apu_cv_expat_freebsd = yes; then 22759 22760$as_echo "#define HAVE_XML_XMLPARSE_H 1" >>confdefs.h 22761 22762 apu_expat_libs="-lexpat" 22763 apu_has_expat=1 22764 22765else 22766 apu_has_expat=0 22767 22768fi 22769 22770 fi 22771 22772 if test $apu_has_expat = 0; then 22773 22774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Expat 1.0/1.1" >&5 22775$as_echo_n "checking Expat 1.0/1.1... " >&6; } 22776if ${apu_cv_expat_1011+:} false; then : 22777 $as_echo_n "(cached) " >&6 22778else 22779 22780 apu_expat_LIBS=$LIBS 22781 LIBS="$LIBS -lexpat" 22782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22783/* end confdefs.h. */ 22784#include <stdlib.h> 22785#include <xmlparse/xmlparse.h> 22786int 22787main () 22788{ 22789XML_ParserCreate(NULL); 22790 ; 22791 return 0; 22792} 22793_ACEOF 22794if ac_fn_c_try_link "$LINENO"; then : 22795 apu_cv_expat_1011=yes 22796else 22797 apu_cv_expat_1011=no 22798fi 22799rm -f core conftest.err conftest.$ac_objext \ 22800 conftest$ac_exeext conftest.$ac_ext 22801 LIBS=$apu_expat_LIBS 22802 22803fi 22804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_cv_expat_1011" >&5 22805$as_echo "$apu_cv_expat_1011" >&6; } 22806 22807if test $apu_cv_expat_1011 = yes; then 22808 22809$as_echo "#define HAVE_XMLPARSE_XMLPARSE_H 1" >>confdefs.h 22810 22811 apu_expat_libs="-lexpat" 22812 apu_has_expat=1 22813 22814else 22815 apu_has_expat=0 22816 22817fi 22818 22819 fi 22820 22821 if test $apu_has_expat = 0; then 22822 22823 if test "x$LDFLAGS" = "x"; then 22824 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-L/usr/local/lib\"" 22825 LDFLAGS="-L/usr/local/lib" 22826 else 22827 apr_addto_bugger="-L/usr/local/lib" 22828 for i in $apr_addto_bugger; do 22829 apr_addto_duplicate="0" 22830 for j in $LDFLAGS; do 22831 if test "x$i" = "x$j"; then 22832 apr_addto_duplicate="1" 22833 break 22834 fi 22835 done 22836 if test $apr_addto_duplicate = "0"; then 22837 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 22838 LDFLAGS="$LDFLAGS $i" 22839 fi 22840 done 22841 fi 22842 22843 22844 if test "x$CPPFLAGS" = "x"; then 22845 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-I/usr/local/include\"" 22846 CPPFLAGS="-I/usr/local/include" 22847 else 22848 apr_addto_bugger="-I/usr/local/include" 22849 for i in $apr_addto_bugger; do 22850 apr_addto_duplicate="0" 22851 for j in $CPPFLAGS; do 22852 if test "x$i" = "x$j"; then 22853 apr_addto_duplicate="1" 22854 break 22855 fi 22856 done 22857 if test $apr_addto_duplicate = "0"; then 22858 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 22859 CPPFLAGS="$CPPFLAGS $i" 22860 fi 22861 done 22862 fi 22863 22864 22865 22866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Expat 1.95.x in /usr/local" >&5 22867$as_echo_n "checking Expat 1.95.x in /usr/local... " >&6; } 22868if ${apu_cv_expat_usrlocal+:} false; then : 22869 $as_echo_n "(cached) " >&6 22870else 22871 22872 apu_expat_LIBS=$LIBS 22873 LIBS="$LIBS -lexpat" 22874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22875/* end confdefs.h. */ 22876#include <stdlib.h> 22877#include <expat.h> 22878int 22879main () 22880{ 22881XML_ParserCreate(NULL); 22882 ; 22883 return 0; 22884} 22885_ACEOF 22886if ac_fn_c_try_link "$LINENO"; then : 22887 apu_cv_expat_usrlocal=yes 22888else 22889 apu_cv_expat_usrlocal=no 22890fi 22891rm -f core conftest.err conftest.$ac_objext \ 22892 conftest$ac_exeext conftest.$ac_ext 22893 LIBS=$apu_expat_LIBS 22894 22895fi 22896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_cv_expat_usrlocal" >&5 22897$as_echo "$apu_cv_expat_usrlocal" >&6; } 22898 22899if test $apu_cv_expat_usrlocal = yes; then 22900 22901$as_echo "#define HAVE_EXPAT_H 1" >>confdefs.h 22902 22903 apu_expat_libs="-lexpat" 22904 apu_has_expat=1 22905 22906 if test "x$APRUTIL_INCLUDES" = "x"; then 22907 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I/usr/local/include\"" 22908 APRUTIL_INCLUDES="-I/usr/local/include" 22909 else 22910 apr_addto_bugger="-I/usr/local/include" 22911 for i in $apr_addto_bugger; do 22912 apr_addto_duplicate="0" 22913 for j in $APRUTIL_INCLUDES; do 22914 if test "x$i" = "x$j"; then 22915 apr_addto_duplicate="1" 22916 break 22917 fi 22918 done 22919 if test $apr_addto_duplicate = "0"; then 22920 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 22921 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 22922 fi 22923 done 22924 fi 22925 22926 22927 if test "x$APRUTIL_LDFLAGS" = "x"; then 22928 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L/usr/local/lib\"" 22929 APRUTIL_LDFLAGS="-L/usr/local/lib" 22930 else 22931 apr_addto_bugger="-L/usr/local/lib" 22932 for i in $apr_addto_bugger; do 22933 apr_addto_duplicate="0" 22934 for j in $APRUTIL_LDFLAGS; do 22935 if test "x$i" = "x$j"; then 22936 apr_addto_duplicate="1" 22937 break 22938 fi 22939 done 22940 if test $apr_addto_duplicate = "0"; then 22941 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 22942 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 22943 fi 22944 done 22945 fi 22946 22947else 22948 apu_has_expat=0 22949 22950 22951 if test "x$LDFLAGS" = "x-L/usr/local/lib"; then 22952 test "x$silent" != "xyes" && echo " nulling LDFLAGS" 22953 LDFLAGS="" 22954 else 22955 apr_new_bugger="" 22956 apr_removed=0 22957 for i in $LDFLAGS; do 22958 if test "x$i" != "x-L/usr/local/lib"; then 22959 apr_new_bugger="$apr_new_bugger $i" 22960 else 22961 apr_removed=1 22962 fi 22963 done 22964 if test $apr_removed = "1"; then 22965 test "x$silent" != "xyes" && echo " removed \"-L/usr/local/lib\" from LDFLAGS" 22966 LDFLAGS=$apr_new_bugger 22967 fi 22968 fi 22969 22970 22971 if test "x$CPPFLAGS" = "x-I/usr/local/include"; then 22972 test "x$silent" != "xyes" && echo " nulling CPPFLAGS" 22973 CPPFLAGS="" 22974 else 22975 apr_new_bugger="" 22976 apr_removed=0 22977 for i in $CPPFLAGS; do 22978 if test "x$i" != "x-I/usr/local/include"; then 22979 apr_new_bugger="$apr_new_bugger $i" 22980 else 22981 apr_removed=1 22982 fi 22983 done 22984 if test $apr_removed = "1"; then 22985 test "x$silent" != "xyes" && echo " removed \"-I/usr/local/include\" from CPPFLAGS" 22986 CPPFLAGS=$apr_new_bugger 22987 fi 22988 fi 22989 22990 22991fi 22992 22993 fi 22994 22995fi 22996 22997 22998 if test "x$APRUTIL_EXPORT_LIBS" = "x"; then 22999 test "x$silent" != "xyes" && echo " setting APRUTIL_EXPORT_LIBS to \"$apu_expat_libs\"" 23000 APRUTIL_EXPORT_LIBS="$apu_expat_libs" 23001 else 23002 apr_addto_bugger="$apu_expat_libs" 23003 for i in $apr_addto_bugger; do 23004 apr_addto_duplicate="0" 23005 for j in $APRUTIL_EXPORT_LIBS; do 23006 if test "x$i" = "x$j"; then 23007 apr_addto_duplicate="1" 23008 break 23009 fi 23010 done 23011 if test $apr_addto_duplicate = "0"; then 23012 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_EXPORT_LIBS" 23013 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i" 23014 fi 23015 done 23016 fi 23017 23018 23019 if test "x$APRUTIL_LIBS" = "x"; then 23020 test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"$apu_expat_libs\"" 23021 APRUTIL_LIBS="$apu_expat_libs" 23022 else 23023 apr_addto_bugger="$apu_expat_libs" 23024 for i in $apr_addto_bugger; do 23025 apr_addto_duplicate="0" 23026 for j in $APRUTIL_LIBS; do 23027 if test "x$i" = "x$j"; then 23028 apr_addto_duplicate="1" 23029 break 23030 fi 23031 done 23032 if test $apr_addto_duplicate = "0"; then 23033 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS" 23034 APRUTIL_LIBS="$APRUTIL_LIBS $i" 23035 fi 23036 done 23037 fi 23038 23039 23040CPPFLAGS=$save_cppflags 23041LDFLAGS=$save_ldflags 23042 23043 23044 23045apu_iconv_dir="unknown" 23046have_apr_iconv="0" 23047want_iconv="1" 23048 23049# Check whether --with-iconv was given. 23050if test "${with_iconv+set}" = set; then : 23051 withval=$with_iconv; apu_iconv_dir="$withval" 23052 if test "$apu_iconv_dir" = "no"; then 23053 have_apr_iconv="0" 23054 have_iconv="0" 23055 want_iconv="0" 23056 elif test "$apu_iconv_dir" != "yes"; then 23057 if test -f "$apu_iconv_dir/include/apr-1/api_version.h"; then 23058 have_apr_iconv="1" 23059 have_iconv="0" 23060 23061 if test "x$APRUTIL_INCLUDES" = "x"; then 23062 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$apu_iconv_dir/include/apr-1\"" 23063 APRUTIL_INCLUDES="-I$apu_iconv_dir/include/apr-1" 23064 else 23065 apr_addto_bugger="-I$apu_iconv_dir/include/apr-1" 23066 for i in $apr_addto_bugger; do 23067 apr_addto_duplicate="0" 23068 for j in $APRUTIL_INCLUDES; do 23069 if test "x$i" = "x$j"; then 23070 apr_addto_duplicate="1" 23071 break 23072 fi 23073 done 23074 if test $apr_addto_duplicate = "0"; then 23075 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 23076 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 23077 fi 23078 done 23079 fi 23080 23081 23082 if test "x$APRUTIL_LIBS" = "x"; then 23083 test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"$apu_iconv_dir/lib/libapriconv-1.la\"" 23084 APRUTIL_LIBS="$apu_iconv_dir/lib/libapriconv-1.la" 23085 else 23086 apr_addto_bugger="$apu_iconv_dir/lib/libapriconv-1.la" 23087 for i in $apr_addto_bugger; do 23088 apr_addto_duplicate="0" 23089 for j in $APRUTIL_LIBS; do 23090 if test "x$i" = "x$j"; then 23091 apr_addto_duplicate="1" 23092 break 23093 fi 23094 done 23095 if test $apr_addto_duplicate = "0"; then 23096 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS" 23097 APRUTIL_LIBS="$APRUTIL_LIBS $i" 23098 fi 23099 done 23100 fi 23101 23102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using apr-iconv" >&5 23103$as_echo "using apr-iconv" >&6; } 23104 elif test -f "$apu_iconv_dir/include/iconv.h"; then 23105 have_apr_iconv="0" 23106 have_iconv="1" 23107 23108 if test "x$CPPFLAGS" = "x"; then 23109 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-I$apu_iconv_dir/include\"" 23110 CPPFLAGS="-I$apu_iconv_dir/include" 23111 else 23112 apr_addto_bugger="-I$apu_iconv_dir/include" 23113 for i in $apr_addto_bugger; do 23114 apr_addto_duplicate="0" 23115 for j in $CPPFLAGS; do 23116 if test "x$i" = "x$j"; then 23117 apr_addto_duplicate="1" 23118 break 23119 fi 23120 done 23121 if test $apr_addto_duplicate = "0"; then 23122 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 23123 CPPFLAGS="$CPPFLAGS $i" 23124 fi 23125 done 23126 fi 23127 23128 23129 if test "x$LDFLAGS" = "x"; then 23130 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-L$apu_iconv_dir/lib\"" 23131 LDFLAGS="-L$apu_iconv_dir/lib" 23132 else 23133 apr_addto_bugger="-L$apu_iconv_dir/lib" 23134 for i in $apr_addto_bugger; do 23135 apr_addto_duplicate="0" 23136 for j in $LDFLAGS; do 23137 if test "x$i" = "x$j"; then 23138 apr_addto_duplicate="1" 23139 break 23140 fi 23141 done 23142 if test $apr_addto_duplicate = "0"; then 23143 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 23144 LDFLAGS="$LDFLAGS $i" 23145 fi 23146 done 23147 fi 23148 23149 fi 23150 fi 23151 23152fi 23153 23154 23155if test "$want_iconv" = "1" -a "$have_apr_iconv" != "1"; then 23156 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default" 23157if test "x$ac_cv_header_iconv_h" = xyes; then : 23158 23159 23160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23161/* end confdefs.h. */ 23162 23163#include <stdlib.h> 23164#include <iconv.h> 23165 23166int 23167main () 23168{ 23169 23170 iconv_t cd = iconv_open("", ""); 23171 iconv(cd, NULL, NULL, NULL, NULL); 23172 23173 ; 23174 return 0; 23175} 23176_ACEOF 23177if ac_fn_c_try_link "$LINENO"; then : 23178 have_iconv="1" 23179else 23180 23181 23182 23183 if test "x$LIBS" = "x"; then 23184 test "x$silent" != "xyes" && echo " setting LIBS to \"-liconv\"" 23185 LIBS="-liconv" 23186 else 23187 apr_addto_bugger="-liconv" 23188 for i in $apr_addto_bugger; do 23189 apr_addto_duplicate="0" 23190 for j in $LIBS; do 23191 if test "x$i" = "x$j"; then 23192 apr_addto_duplicate="1" 23193 break 23194 fi 23195 done 23196 if test $apr_addto_duplicate = "0"; then 23197 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 23198 LIBS="$LIBS $i" 23199 fi 23200 done 23201 fi 23202 23203 23204 23205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23206/* end confdefs.h. */ 23207 23208#include <stdlib.h> 23209#include <iconv.h> 23210 23211int 23212main () 23213{ 23214 23215 iconv_t cd = iconv_open("", ""); 23216 iconv(cd, NULL, NULL, NULL, NULL); 23217 23218 ; 23219 return 0; 23220} 23221_ACEOF 23222if ac_fn_c_try_link "$LINENO"; then : 23223 23224 23225 if test "x$APRUTIL_LIBS" = "x"; then 23226 test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"-liconv\"" 23227 APRUTIL_LIBS="-liconv" 23228 else 23229 apr_addto_bugger="-liconv" 23230 for i in $apr_addto_bugger; do 23231 apr_addto_duplicate="0" 23232 for j in $APRUTIL_LIBS; do 23233 if test "x$i" = "x$j"; then 23234 apr_addto_duplicate="1" 23235 break 23236 fi 23237 done 23238 if test $apr_addto_duplicate = "0"; then 23239 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS" 23240 APRUTIL_LIBS="$APRUTIL_LIBS $i" 23241 fi 23242 done 23243 fi 23244 23245 23246 if test "x$APRUTIL_EXPORT_LIBS" = "x"; then 23247 test "x$silent" != "xyes" && echo " setting APRUTIL_EXPORT_LIBS to \"-liconv\"" 23248 APRUTIL_EXPORT_LIBS="-liconv" 23249 else 23250 apr_addto_bugger="-liconv" 23251 for i in $apr_addto_bugger; do 23252 apr_addto_duplicate="0" 23253 for j in $APRUTIL_EXPORT_LIBS; do 23254 if test "x$i" = "x$j"; then 23255 apr_addto_duplicate="1" 23256 break 23257 fi 23258 done 23259 if test $apr_addto_duplicate = "0"; then 23260 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_EXPORT_LIBS" 23261 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i" 23262 fi 23263 done 23264 fi 23265 23266 have_iconv="1" 23267else 23268 have_iconv="0" 23269fi 23270rm -f core conftest.err conftest.$ac_objext \ 23271 conftest$ac_exeext conftest.$ac_ext 23272 23273 23274 23275 if test "x$LIBS" = "x-liconv"; then 23276 test "x$silent" != "xyes" && echo " nulling LIBS" 23277 LIBS="" 23278 else 23279 apr_new_bugger="" 23280 apr_removed=0 23281 for i in $LIBS; do 23282 if test "x$i" != "x-liconv"; then 23283 apr_new_bugger="$apr_new_bugger $i" 23284 else 23285 apr_removed=1 23286 fi 23287 done 23288 if test $apr_removed = "1"; then 23289 test "x$silent" != "xyes" && echo " removed \"-liconv\" from LIBS" 23290 LIBS=$apr_new_bugger 23291 fi 23292 fi 23293 23294 23295 23296fi 23297rm -f core conftest.err conftest.$ac_objext \ 23298 conftest$ac_exeext conftest.$ac_ext 23299 23300 23301else 23302 have_iconv="0" 23303fi 23304 23305 23306fi 23307 23308if test "$want_iconv" = "1" -a "$apu_iconv_dir" != "unknown"; then 23309 if test "$have_iconv" != "1"; then 23310 if test "$have_apr_iconv" != "1"; then 23311 as_fn_error $? "iconv support requested, but not found" "$LINENO" 5 23312 fi 23313 fi 23314 23315 if test "x$CPPFLAGS" = "x-I$apu_iconv_dir/include"; then 23316 test "x$silent" != "xyes" && echo " nulling CPPFLAGS" 23317 CPPFLAGS="" 23318 else 23319 apr_new_bugger="" 23320 apr_removed=0 23321 for i in $CPPFLAGS; do 23322 if test "x$i" != "x-I$apu_iconv_dir/include"; then 23323 apr_new_bugger="$apr_new_bugger $i" 23324 else 23325 apr_removed=1 23326 fi 23327 done 23328 if test $apr_removed = "1"; then 23329 test "x$silent" != "xyes" && echo " removed \"-I$apu_iconv_dir/include\" from CPPFLAGS" 23330 CPPFLAGS=$apr_new_bugger 23331 fi 23332 fi 23333 23334 23335 if test "x$LDFLAGS" = "x-L$apu_iconv_dir/lib"; then 23336 test "x$silent" != "xyes" && echo " nulling LDFLAGS" 23337 LDFLAGS="" 23338 else 23339 apr_new_bugger="" 23340 apr_removed=0 23341 for i in $LDFLAGS; do 23342 if test "x$i" != "x-L$apu_iconv_dir/lib"; then 23343 apr_new_bugger="$apr_new_bugger $i" 23344 else 23345 apr_removed=1 23346 fi 23347 done 23348 if test $apr_removed = "1"; then 23349 test "x$silent" != "xyes" && echo " removed \"-L$apu_iconv_dir/lib\" from LDFLAGS" 23350 LDFLAGS=$apr_new_bugger 23351 fi 23352 fi 23353 23354 23355 if test "x$APRUTIL_INCLUDES" = "x"; then 23356 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$apu_iconv_dir/include\"" 23357 APRUTIL_INCLUDES="-I$apu_iconv_dir/include" 23358 else 23359 apr_addto_bugger="-I$apu_iconv_dir/include" 23360 for i in $apr_addto_bugger; do 23361 apr_addto_duplicate="0" 23362 for j in $APRUTIL_INCLUDES; do 23363 if test "x$i" = "x$j"; then 23364 apr_addto_duplicate="1" 23365 break 23366 fi 23367 done 23368 if test $apr_addto_duplicate = "0"; then 23369 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 23370 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 23371 fi 23372 done 23373 fi 23374 23375 23376 if test "x$APRUTIL_LDFLAGS" = "x"; then 23377 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$apu_iconv_dir/lib\"" 23378 APRUTIL_LDFLAGS="-L$apu_iconv_dir/lib" 23379 else 23380 apr_addto_bugger="-L$apu_iconv_dir/lib" 23381 for i in $apr_addto_bugger; do 23382 apr_addto_duplicate="0" 23383 for j in $APRUTIL_LDFLAGS; do 23384 if test "x$i" = "x$j"; then 23385 apr_addto_duplicate="1" 23386 break 23387 fi 23388 done 23389 if test $apr_addto_duplicate = "0"; then 23390 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 23391 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 23392 fi 23393 done 23394 fi 23395 23396fi 23397 23398if test "$have_iconv" = "1"; then 23399 23400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of inbuf parameter to iconv" >&5 23401$as_echo_n "checking for type of inbuf parameter to iconv... " >&6; } 23402if test "x$apu_iconv_inbuf_const" = "x"; then 23403 apr_save_CFLAGS=$CFLAGS 23404 CFLAGS="$CFLAGS $CFLAGS_WARN" 23405 if test "$ac_cv_c_compiler_gnu" = "yes"; then 23406 CFLAGS="$CFLAGS -Werror" 23407 fi 23408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23409/* end confdefs.h. */ 23410#include "confdefs.h" 23411 23412 23413 #include <stddef.h> 23414 #include <iconv.h> 23415 23416 int main(int argc, const char *const *argv) { 23417 23418 iconv(0,(char **)0,(size_t *)0,(char **)0,(size_t *)0); 23419 23420 return 0; } 23421 23422_ACEOF 23423if ac_fn_c_try_compile "$LINENO"; then : 23424 apu_iconv_inbuf_const="0" 23425else 23426 apu_iconv_inbuf_const="1" 23427fi 23428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23429 CFLAGS=$apr_save_CFLAGS 23430 23431fi 23432if test "$apu_iconv_inbuf_const" = "1"; then 23433 23434$as_echo "#define APU_ICONV_INBUF_CONST 1" >>confdefs.h 23435 23436 msg="const char **" 23437else 23438 msg="char **" 23439fi 23440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 23441$as_echo "$msg" >&6; } 23442 23443fi 23444 23445 23446for ac_header in iconv.h langinfo.h 23447do : 23448 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23449ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 23450if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 23451 cat >>confdefs.h <<_ACEOF 23452#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23453_ACEOF 23454 23455fi 23456 23457done 23458 23459for aprt_i in iconv.h langinfo.h 23460do 23461 ac_safe=`echo "$aprt_i" | sed 'y%./+-%__p_%'` 23462 aprt_2=`echo "$aprt_i" | sed -e 's%/%_%g' -e 's/\.//g' -e 's/-//g'` 23463 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 23464 eval "$aprt_2=1" 23465 else 23466 eval "$aprt_2=0" 23467 fi 23468done 23469 23470 23471for ac_func in nl_langinfo 23472do : 23473 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo" 23474if test "x$ac_cv_func_nl_langinfo" = xyes; then : 23475 cat >>confdefs.h <<_ACEOF 23476#define HAVE_NL_LANGINFO 1 23477_ACEOF 23478 23479fi 23480done 23481 23482for aprt_j in nl_langinfo 23483do 23484 aprt_3="have_$aprt_j" 23485 if eval "test \"`echo '$ac_cv_func_'$aprt_j`\" = yes"; then 23486 eval "$aprt_3=1" 23487 else 23488 eval "$aprt_3=0" 23489 fi 23490done 23491 23492 23493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESET in langinfo.h" >&5 23494$as_echo_n "checking for CODESET in langinfo.h... " >&6; } 23495if ${ac_cv_define_CODESET+:} false; then : 23496 $as_echo_n "(cached) " >&6 23497else 23498 23499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23500/* end confdefs.h. */ 23501 23502#include <langinfo.h> 23503#ifdef CODESET 23504YES_IS_DEFINED 23505#endif 23506 23507_ACEOF 23508if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23509 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then : 23510 ac_cv_define_CODESET=yes 23511else 23512 ac_cv_define_CODESET=no 23513fi 23514rm -f conftest* 23515 23516 23517fi 23518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_CODESET" >&5 23519$as_echo "$ac_cv_define_CODESET" >&6; } 23520 if test "$ac_cv_define_CODESET" = "yes"; then 23521 23522$as_echo "#define HAVE_CODESET 1" >>confdefs.h 23523 23524 fi 23525 23526 23527 23528 23529 23530 23531 23532 23533 # Check whether --enable-util-dso was given. 23534if test "${enable_util_dso+set}" = set; then : 23535 enableval=$enable_util_dso; 23536fi 23537 23538 23539 if test "$enable_util_dso" = "no"; then 23540 apu_dso_build="0" 23541 else 23542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether APR has DSO support" >&5 23543$as_echo_n "checking whether APR has DSO support... " >&6; } 23544if ${apu_cv_aprdso+:} false; then : 23545 $as_echo_n "(cached) " >&6 23546else 23547 apu_save_CPPFLAGS=$CPPFLAGS 23548 CPPFLAGS="$CPPFLAGS $APR_INCLUDES" 23549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23550/* end confdefs.h. */ 23551#include "apr.h" 23552#if APR_HAS_DSO 23553yes 23554#endif 23555 23556_ACEOF 23557if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23558 $EGREP "yes" >/dev/null 2>&1; then : 23559 apu_cv_aprdso=yes 23560else 23561 apu_cv_aprdso=no 23562fi 23563rm -f conftest* 23564 23565 CPPFLAGS=$apu_save_CPPFLAGS 23566fi 23567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_cv_aprdso" >&5 23568$as_echo "$apu_cv_aprdso" >&6; } 23569 23570 if test $apu_cv_aprdso = yes; then 23571 apu_dso_build=1 23572 else 23573 apu_dso_build=0 23574 fi 23575 fi 23576 23577 if test "$apu_dso_build" = "0"; then 23578 23579 # Statically link the drivers: 23580 objs= 23581 test $apu_have_openssl = 1 && objs="$objs crypto/apr_crypto_openssl.lo" 23582 test $apu_have_nss = 1 && objs="$objs crypto/apr_crypto_nss.lo" 23583 test $apu_have_commoncrypto = 1 && objs="$objs crypto/apr_crypto_commoncrypto.lo" 23584 test $apu_have_oracle = 1 && objs="$objs dbd/apr_dbd_oracle.lo" 23585 test $apu_have_pgsql = 1 && objs="$objs dbd/apr_dbd_pgsql.lo" 23586 test $apu_have_mysql = 1 && objs="$objs dbd/apr_dbd_mysql.lo" 23587 test $apu_have_sqlite2 = 1 && objs="$objs dbd/apr_dbd_sqlite2.lo" 23588 test $apu_have_sqlite3 = 1 && objs="$objs dbd/apr_dbd_sqlite3.lo" 23589 test $apu_have_odbc = 1 && objs="$objs dbd/apr_dbd_odbc.lo" 23590 test $apu_have_db = 1 && objs="$objs dbm/apr_dbm_berkeleydb.lo" 23591 test $apu_have_gdbm = 1 && objs="$objs dbm/apr_dbm_gdbm.lo" 23592 test $apu_have_ndbm = 1 && objs="$objs dbm/apr_dbm_ndbm.lo" 23593 test $apu_has_ldap = 1 && objs="$objs ldap/apr_ldap_init.lo" 23594 test $apu_has_ldap = 1 && objs="$objs ldap/apr_ldap_option.lo" 23595 test $apu_has_ldap = 1 && objs="$objs ldap/apr_ldap_rebind.lo" 23596 EXTRA_OBJECTS="$EXTRA_OBJECTS $objs" 23597 23598 # Use libtool *.la for mysql if available 23599 if test $apu_have_mysql = 1; then 23600 for flag in $LDADD_dbd_mysql 23601 do 23602 dir=`echo $flag | grep "^-L" | sed s:-L::` 23603 if test "x$dir" != 'x'; then 23604 if test -f "$dir/libmysqlclient_r.la"; then 23605 LDADD_dbd_mysql=$dir/libmysqlclient_r.la 23606 break 23607 fi 23608 fi 23609 done 23610 fi 23611 23612 APRUTIL_LIBS="$APRUTIL_LIBS $LDADD_crypto_openssl $LDADD_crypto_nss $LDADD_crypto_commoncrypto" 23613 APRUTIL_LIBS="$APRUTIL_LIBS $LDADD_dbd_pgsql $LDADD_dbd_sqlite2 $LDADD_dbd_sqlite3 $LDADD_dbd_oracle $LDADD_dbd_mysql $LDADD_dbd_odbc" 23614 APRUTIL_LIBS="$APRUTIL_LIBS $LDADD_dbm_db $LDADD_dbm_gdbm $LDADD_dbm_ndbm" 23615 APRUTIL_LIBS="$APRUTIL_LIBS $LDADD_ldap" 23616 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $LDADD_crypto_openssl $LDADD_crypto_nss $LDADD_crypto_commoncrypto" 23617 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $LDADD_dbd_pgsql $LDADD_dbd_sqlite2 $LDADD_dbd_sqlite3 $LDADD_dbd_oracle $LDADD_dbd_mysql $LDADD_dbd_odbc" 23618 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $LDADD_dbm_db $LDADD_dbm_gdbm $LDADD_dbm_ndbm" 23619 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $LDADD_ldap" 23620 23621 else 23622 23623 # Build the drivers as loadable modules: 23624 dsos= 23625 test $apu_have_openssl = 1 && dsos="$dsos crypto/apr_crypto_openssl.la" 23626 test $apu_have_nss = 1 && dsos="$dsos crypto/apr_crypto_nss.la" 23627 test $apu_have_commoncrypto = 1 && dsos="$dsos crypto/apr_crypto_commoncrypto.la" 23628 test $apu_have_oracle = 1 && dsos="$dsos dbd/apr_dbd_oracle.la" 23629 test $apu_have_pgsql = 1 && dsos="$dsos dbd/apr_dbd_pgsql.la" 23630 test $apu_have_mysql = 1 && dsos="$dsos dbd/apr_dbd_mysql.la" 23631 test $apu_have_sqlite2 = 1 && dsos="$dsos dbd/apr_dbd_sqlite2.la" 23632 test $apu_have_sqlite3 = 1 && dsos="$dsos dbd/apr_dbd_sqlite3.la" 23633 test $apu_have_odbc = 1 && dsos="$dsos dbd/apr_dbd_odbc.la" 23634 test $apu_have_db = 1 && dsos="$dsos dbm/apr_dbm_db.la" 23635 test $apu_have_gdbm = 1 && dsos="$dsos dbm/apr_dbm_gdbm.la" 23636 test $apu_have_ndbm = 1 && dsos="$dsos dbm/apr_dbm_ndbm.la" 23637 test $apu_has_ldap = 1 && dsos="$dsos ldap/apr_ldap.la" 23638 23639 if test -n "$dsos"; then 23640 APU_MODULES="$APU_MODULES $dsos" 23641 fi 23642 23643 fi 23644 23645 23646cat >>confdefs.h <<_ACEOF 23647#define APU_DSO_BUILD $apu_dso_build 23648_ACEOF 23649 23650 23651 23652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 23653$as_echo_n "checking for library containing crypt... " >&6; } 23654if ${ac_cv_search_crypt+:} false; then : 23655 $as_echo_n "(cached) " >&6 23656else 23657 ac_func_search_save_LIBS=$LIBS 23658cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23659/* end confdefs.h. */ 23660 23661/* Override any GCC internal prototype to avoid an error. 23662 Use char because int might match the return type of a GCC 23663 builtin and then its argument prototype would still apply. */ 23664#ifdef __cplusplus 23665extern "C" 23666#endif 23667char crypt (); 23668int 23669main () 23670{ 23671return crypt (); 23672 ; 23673 return 0; 23674} 23675_ACEOF 23676for ac_lib in '' crypt ufc; do 23677 if test -z "$ac_lib"; then 23678 ac_res="none required" 23679 else 23680 ac_res=-l$ac_lib 23681 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 23682 fi 23683 if ac_fn_c_try_link "$LINENO"; then : 23684 ac_cv_search_crypt=$ac_res 23685fi 23686rm -f core conftest.err conftest.$ac_objext \ 23687 conftest$ac_exeext 23688 if ${ac_cv_search_crypt+:} false; then : 23689 break 23690fi 23691done 23692if ${ac_cv_search_crypt+:} false; then : 23693 23694else 23695 ac_cv_search_crypt=no 23696fi 23697rm conftest.$ac_ext 23698LIBS=$ac_func_search_save_LIBS 23699fi 23700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 23701$as_echo "$ac_cv_search_crypt" >&6; } 23702ac_res=$ac_cv_search_crypt 23703if test "$ac_res" != no; then : 23704 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 23705 23706fi 23707 23708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if system crypt() function is threadsafe" >&5 23709$as_echo_n "checking if system crypt() function is threadsafe... " >&6; } 23710if test "x$apu_crypt_threadsafe" = "x1"; then 23711 23712$as_echo "#define APU_CRYPT_THREADSAFE 1" >>confdefs.h 23713 23714 msg="yes" 23715else 23716 msg="no" 23717fi 23718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 23719$as_echo "$msg" >&6; } 23720 23721for ac_func in crypt_r 23722do : 23723 ac_fn_c_check_func "$LINENO" "crypt_r" "ac_cv_func_crypt_r" 23724if test "x$ac_cv_func_crypt_r" = xyes; then : 23725 cat >>confdefs.h <<_ACEOF 23726#define HAVE_CRYPT_R 1 23727_ACEOF 23728 crypt_r="1" 23729else 23730 crypt_r="0" 23731fi 23732done 23733 23734if test "$crypt_r" = "1"; then 23735 23736 23737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking style of crypt_r" >&5 23738$as_echo_n "checking style of crypt_r... " >&6; } 23739if ${apr_cv_crypt_r_style+:} false; then : 23740 $as_echo_n "(cached) " >&6 23741else 23742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23743/* end confdefs.h. */ 23744#include <crypt.h> 23745int 23746main () 23747{ 23748CRYPTD buffer; 23749 crypt_r("passwd", "hash", &buffer); 23750 ; 23751 return 0; 23752} 23753_ACEOF 23754if ac_fn_c_try_compile "$LINENO"; then : 23755 apr_cv_crypt_r_style=cryptd 23756else 23757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23758/* end confdefs.h. */ 23759#include <crypt.h> 23760int 23761main () 23762{ 23763struct crypt_data buffer; 23764 crypt_r("passwd", "hash", &buffer); 23765 ; 23766 return 0; 23767} 23768_ACEOF 23769if ac_fn_c_try_compile "$LINENO"; then : 23770 apr_cv_crypt_r_style=struct_crypt_data 23771else 23772 apr_cv_crypt_r_style=none 23773fi 23774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23775fi 23776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23777fi 23778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_crypt_r_style" >&5 23779$as_echo "$apr_cv_crypt_r_style" >&6; } 23780 23781if test "$apr_cv_crypt_r_style" = "cryptd"; then 23782 23783$as_echo "#define CRYPT_R_CRYPTD 1" >>confdefs.h 23784 23785elif test "$apr_cv_crypt_r_style" = "struct_crypt_data"; then 23786 23787$as_echo "#define CRYPT_R_STRUCT_CRYPT_DATA 1" >>confdefs.h 23788 23789fi 23790 23791fi 23792 23793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler handles weak symbols" >&5 23794$as_echo_n "checking whether the compiler handles weak symbols... " >&6; } 23795if ${apu_cv_weak_symbols+:} false; then : 23796 $as_echo_n "(cached) " >&6 23797else 23798 if test "$cross_compiling" = yes; then : 23799 apu_cv_weak_symbols=no 23800else 23801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23802/* end confdefs.h. */ 23803 23804__attribute__ ((weak)) 23805int weak_noop(void) 23806{ 23807 return 0; 23808} 23809int main() 23810{ 23811 return weak_noop(); 23812} 23813_ACEOF 23814if ac_fn_c_try_run "$LINENO"; then : 23815 apu_cv_weak_symbols=yes 23816else 23817 apu_cv_weak_symbols=no 23818fi 23819rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23820 conftest.$ac_objext conftest.beam conftest.$ac_ext 23821fi 23822 23823fi 23824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_cv_weak_symbols" >&5 23825$as_echo "$apu_cv_weak_symbols" >&6; } 23826 23827if test "$apu_cv_weak_symbols" = "yes"; then 23828 23829$as_echo "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h 23830 23831fi 23832 23833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memset_s support" >&5 23834$as_echo_n "checking for memset_s support... " >&6; } 23835if ${apu_cv_memset_s+:} false; then : 23836 $as_echo_n "(cached) " >&6 23837else 23838 if test "$cross_compiling" = yes; then : 23839 apu_cv_memset_s=no 23840else 23841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23842/* end confdefs.h. */ 23843 23844#ifdef HAVE_STRING_H 23845#define __STDC_WANT_LIB_EXT1__ 1 23846#include <string.h> 23847#endif 23848 23849int main(int argc, const char **argv) 23850{ 23851 char buf[1] = {1}; 23852 return memset_s(buf, sizeof buf, 0, sizeof buf) != 0 || *buf != '\0'; 23853} 23854_ACEOF 23855if ac_fn_c_try_run "$LINENO"; then : 23856 apu_cv_memset_s=yes 23857else 23858 apu_cv_memset_s=no 23859fi 23860rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23861 conftest.$ac_objext conftest.beam conftest.$ac_ext 23862fi 23863 23864fi 23865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_cv_memset_s" >&5 23866$as_echo "$apu_cv_memset_s" >&6; } 23867 23868if test "$apu_cv_memset_s" = "yes"; then 23869 23870$as_echo "#define HAVE_MEMSET_S 1" >>confdefs.h 23871 23872fi 23873 23874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for explicit_bzero support" >&5 23875$as_echo_n "checking for explicit_bzero support... " >&6; } 23876if ${apu_cv_explicit_bzero+:} false; then : 23877 $as_echo_n "(cached) " >&6 23878else 23879 if test "$cross_compiling" = yes; then : 23880 apu_cv_explicit_bzero=no 23881else 23882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23883/* end confdefs.h. */ 23884 23885#ifdef HAVE_STRING_H 23886#include <string.h> 23887#endif 23888#ifdef HAVE_STRINGS_H 23889#include <strings.h> 23890#endif 23891 23892int main(int argc, const char **argv) 23893{ 23894 char buf[1] = {1}; 23895 explicit_bzero(buf, sizeof buf); 23896 return *buf != '\0'; 23897} 23898_ACEOF 23899if ac_fn_c_try_run "$LINENO"; then : 23900 apu_cv_explicit_bzero=yes 23901else 23902 apu_cv_explicit_bzero=no 23903fi 23904rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23905 conftest.$ac_objext conftest.beam conftest.$ac_ext 23906fi 23907 23908fi 23909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_cv_explicit_bzero" >&5 23910$as_echo "$apu_cv_explicit_bzero" >&6; } 23911 23912if test "$apu_cv_explicit_bzero" = "yes"; then 23913 23914$as_echo "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h 23915 23916fi 23917 23918so_ext=$APR_SO_EXT 23919lib_target=$APR_LIB_TARGET 23920 23921 23922 23923APRUTIL_LIBNAME="aprutil${libsuffix}" 23924 23925 23926# Set up destination directory for DSOs. 23927APU_DSO_LIBDIR="\${libdir}/apr-util-${APRUTIL_MAJOR_VERSION}" 23928# Set APU_HAVE_MODULES appropriately for the Makefile 23929if test -n "$APU_MODULES"; then 23930 APU_HAVE_MODULES=yes 23931else 23932 APU_HAVE_MODULES=no 23933fi 23934# Define expanded libdir for apu_config.h 23935 23936ap_last= 23937ap_cur="$APU_DSO_LIBDIR" 23938while test "x${ap_cur}" != "x${ap_last}"; 23939do 23940 ap_last="${ap_cur}" 23941 ap_cur=`eval "echo ${ap_cur}"` 23942done 23943abs_dso_libdir="${ap_cur}" 23944 23945 23946cat >>confdefs.h <<_ACEOF 23947#define APU_DSO_LIBDIR "$abs_dso_libdir" 23948_ACEOF 23949 23950 23951 23952 23953 23954 23955 23956 if test "x$APRUTIL_LIBS" = "x"; then 23957 test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"$APR_LIBS\"" 23958 APRUTIL_LIBS="$APR_LIBS" 23959 else 23960 apr_addto_bugger="$APR_LIBS" 23961 for i in $apr_addto_bugger; do 23962 apr_addto_duplicate="0" 23963 for j in $APRUTIL_LIBS; do 23964 if test "x$i" = "x$j"; then 23965 apr_addto_duplicate="1" 23966 break 23967 fi 23968 done 23969 if test $apr_addto_duplicate = "0"; then 23970 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS" 23971 APRUTIL_LIBS="$APRUTIL_LIBS $i" 23972 fi 23973 done 23974 fi 23975 23976 23977 23978 23979 23980 23981 23982 23983 23984if test ! -d ./build; then 23985 $mkdir_p build 23986fi 23987case $host in 23988 *-mingw*) 23989 sed -e 's/-DAPR_DECLARE_EXPORT/-DAPU_DECLARE_EXPORT/' \ 23990 -e 's/-DAPR_DECLARE_STATIC/-DAPU_DECLARE_STATIC -DAPR_DECLARE_STATIC/' \ 23991 < $APR_BUILD_DIR/apr_rules.mk > $abs_builddir/build/rules.mk 23992 ;; 23993 *) 23994 cp $APR_BUILD_DIR/apr_rules.mk $abs_builddir/build/rules.mk 23995 ;; 23996esac 23997 23998case "$host_alias" in 23999*bsdi* | BSD/OS) 24000 # Check whether they've installed GNU make 24001 if make --version > /dev/null 2>&1; then 24002 INCLUDE_RULES="include $abs_builddir/build/rules.mk" 24003 INCLUDE_OUTPUTS="include $abs_srcdir/build-outputs.mk" 24004 else 24005 INCLUDE_RULES=".include \"$abs_builddir/build/rules.mk\"" 24006 INCLUDE_OUTPUTS=".include \"$abs_srcdir/build-outputs.mk\"" 24007 fi 24008 ;; 24009*) 24010 INCLUDE_RULES="include $abs_builddir/build/rules.mk" 24011 INCLUDE_OUTPUTS="include $abs_srcdir/build-outputs.mk" 24012 ;; 24013esac 24014 24015 24016 24017for d in include include/private; do 24018 test -d $top_builddir/$d || mkdir $top_builddir/$d 24019done 24020 24021ac_config_files="$ac_config_files Makefile export_vars.sh build/pkg/pkginfo apr-util.pc apu-$APRUTIL_MAJOR_VERSION-config:apu-config.in include/private/apu_select_dbm.h include/apr_ldap.h include/apu.h include/apu_want.h" 24022 24023 24024ac_config_commands="$ac_config_commands default" 24025 24026 24027if test -d $srcdir/test; then 24028 ac_config_files="$ac_config_files test/Makefile" 24029 24030fi 24031 24032cat >confcache <<\_ACEOF 24033# This file is a shell script that caches the results of configure 24034# tests run on this system so they can be shared between configure 24035# scripts and configure runs, see configure's option --config-cache. 24036# It is not useful on other systems. If it contains results you don't 24037# want to keep, you may remove or edit it. 24038# 24039# config.status only pays attention to the cache file if you give it 24040# the --recheck option to rerun configure. 24041# 24042# `ac_cv_env_foo' variables (set or unset) will be overridden when 24043# loading this file, other *unset* `ac_cv_foo' will be assigned the 24044# following values. 24045 24046_ACEOF 24047 24048# The following way of writing the cache mishandles newlines in values, 24049# but we know of no workaround that is simple, portable, and efficient. 24050# So, we kill variables containing newlines. 24051# Ultrix sh set writes to stderr and can't be redirected directly, 24052# and sets the high bit in the cache file unless we assign to the vars. 24053( 24054 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 24055 eval ac_val=\$$ac_var 24056 case $ac_val in #( 24057 *${as_nl}*) 24058 case $ac_var in #( 24059 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 24060$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 24061 esac 24062 case $ac_var in #( 24063 _ | IFS | as_nl) ;; #( 24064 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 24065 *) { eval $ac_var=; unset $ac_var;} ;; 24066 esac ;; 24067 esac 24068 done 24069 24070 (set) 2>&1 | 24071 case $as_nl`(ac_space=' '; set) 2>&1` in #( 24072 *${as_nl}ac_space=\ *) 24073 # `set' does not quote correctly, so add quotes: double-quote 24074 # substitution turns \\\\ into \\, and sed turns \\ into \. 24075 sed -n \ 24076 "s/'/'\\\\''/g; 24077 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 24078 ;; #( 24079 *) 24080 # `set' quotes correctly as required by POSIX, so do not add quotes. 24081 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 24082 ;; 24083 esac | 24084 sort 24085) | 24086 sed ' 24087 /^ac_cv_env_/b end 24088 t clear 24089 :clear 24090 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 24091 t end 24092 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 24093 :end' >>confcache 24094if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 24095 if test -w "$cache_file"; then 24096 if test "x$cache_file" != "x/dev/null"; then 24097 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 24098$as_echo "$as_me: updating cache $cache_file" >&6;} 24099 if test ! -f "$cache_file" || test -h "$cache_file"; then 24100 cat confcache >"$cache_file" 24101 else 24102 case $cache_file in #( 24103 */* | ?:*) 24104 mv -f confcache "$cache_file"$$ && 24105 mv -f "$cache_file"$$ "$cache_file" ;; #( 24106 *) 24107 mv -f confcache "$cache_file" ;; 24108 esac 24109 fi 24110 fi 24111 else 24112 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 24113$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 24114 fi 24115fi 24116rm -f confcache 24117 24118test "x$prefix" = xNONE && prefix=$ac_default_prefix 24119# Let make expand exec_prefix. 24120test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 24121 24122DEFS=-DHAVE_CONFIG_H 24123 24124ac_libobjs= 24125ac_ltlibobjs= 24126U= 24127for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 24128 # 1. Remove the extension, and $U if already installed. 24129 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 24130 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 24131 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 24132 # will be set to the directory where LIBOBJS objects are built. 24133 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 24134 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 24135done 24136LIBOBJS=$ac_libobjs 24137 24138LTLIBOBJS=$ac_ltlibobjs 24139 24140 24141 24142: "${CONFIG_STATUS=./config.status}" 24143ac_write_fail=0 24144ac_clean_files_save=$ac_clean_files 24145ac_clean_files="$ac_clean_files $CONFIG_STATUS" 24146{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 24147$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 24148as_write_fail=0 24149cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 24150#! $SHELL 24151# Generated by $as_me. 24152# Run this file to recreate the current configuration. 24153# Compiler output produced by configure, useful for debugging 24154# configure, is in config.log if it exists. 24155 24156debug=false 24157ac_cs_recheck=false 24158ac_cs_silent=false 24159 24160SHELL=\${CONFIG_SHELL-$SHELL} 24161export SHELL 24162_ASEOF 24163cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 24164## -------------------- ## 24165## M4sh Initialization. ## 24166## -------------------- ## 24167 24168# Be more Bourne compatible 24169DUALCASE=1; export DUALCASE # for MKS sh 24170if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 24171 emulate sh 24172 NULLCMD=: 24173 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 24174 # is contrary to our usage. Disable this feature. 24175 alias -g '${1+"$@"}'='"$@"' 24176 setopt NO_GLOB_SUBST 24177else 24178 case `(set -o) 2>/dev/null` in #( 24179 *posix*) : 24180 set -o posix ;; #( 24181 *) : 24182 ;; 24183esac 24184fi 24185 24186 24187as_nl=' 24188' 24189export as_nl 24190# Printing a long string crashes Solaris 7 /usr/bin/printf. 24191as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 24192as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 24193as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 24194# Prefer a ksh shell builtin over an external printf program on Solaris, 24195# but without wasting forks for bash or zsh. 24196if test -z "$BASH_VERSION$ZSH_VERSION" \ 24197 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 24198 as_echo='print -r --' 24199 as_echo_n='print -rn --' 24200elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 24201 as_echo='printf %s\n' 24202 as_echo_n='printf %s' 24203else 24204 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 24205 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 24206 as_echo_n='/usr/ucb/echo -n' 24207 else 24208 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 24209 as_echo_n_body='eval 24210 arg=$1; 24211 case $arg in #( 24212 *"$as_nl"*) 24213 expr "X$arg" : "X\\(.*\\)$as_nl"; 24214 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 24215 esac; 24216 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 24217 ' 24218 export as_echo_n_body 24219 as_echo_n='sh -c $as_echo_n_body as_echo' 24220 fi 24221 export as_echo_body 24222 as_echo='sh -c $as_echo_body as_echo' 24223fi 24224 24225# The user is always right. 24226if test "${PATH_SEPARATOR+set}" != set; then 24227 PATH_SEPARATOR=: 24228 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 24229 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 24230 PATH_SEPARATOR=';' 24231 } 24232fi 24233 24234 24235# IFS 24236# We need space, tab and new line, in precisely that order. Quoting is 24237# there to prevent editors from complaining about space-tab. 24238# (If _AS_PATH_WALK were called with IFS unset, it would disable word 24239# splitting by setting IFS to empty value.) 24240IFS=" "" $as_nl" 24241 24242# Find who we are. Look in the path if we contain no directory separator. 24243as_myself= 24244case $0 in #(( 24245 *[\\/]* ) as_myself=$0 ;; 24246 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24247for as_dir in $PATH 24248do 24249 IFS=$as_save_IFS 24250 test -z "$as_dir" && as_dir=. 24251 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 24252 done 24253IFS=$as_save_IFS 24254 24255 ;; 24256esac 24257# We did not find ourselves, most probably we were run as `sh COMMAND' 24258# in which case we are not to be found in the path. 24259if test "x$as_myself" = x; then 24260 as_myself=$0 24261fi 24262if test ! -f "$as_myself"; then 24263 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 24264 exit 1 24265fi 24266 24267# Unset variables that we do not need and which cause bugs (e.g. in 24268# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 24269# suppresses any "Segmentation fault" message there. '((' could 24270# trigger a bug in pdksh 5.2.14. 24271for as_var in BASH_ENV ENV MAIL MAILPATH 24272do eval test x\${$as_var+set} = xset \ 24273 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 24274done 24275PS1='$ ' 24276PS2='> ' 24277PS4='+ ' 24278 24279# NLS nuisances. 24280LC_ALL=C 24281export LC_ALL 24282LANGUAGE=C 24283export LANGUAGE 24284 24285# CDPATH. 24286(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 24287 24288 24289# as_fn_error STATUS ERROR [LINENO LOG_FD] 24290# ---------------------------------------- 24291# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 24292# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 24293# script with STATUS, using 1 if that was 0. 24294as_fn_error () 24295{ 24296 as_status=$1; test $as_status -eq 0 && as_status=1 24297 if test "$4"; then 24298 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 24299 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 24300 fi 24301 $as_echo "$as_me: error: $2" >&2 24302 as_fn_exit $as_status 24303} # as_fn_error 24304 24305 24306# as_fn_set_status STATUS 24307# ----------------------- 24308# Set $? to STATUS, without forking. 24309as_fn_set_status () 24310{ 24311 return $1 24312} # as_fn_set_status 24313 24314# as_fn_exit STATUS 24315# ----------------- 24316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 24317as_fn_exit () 24318{ 24319 set +e 24320 as_fn_set_status $1 24321 exit $1 24322} # as_fn_exit 24323 24324# as_fn_unset VAR 24325# --------------- 24326# Portably unset VAR. 24327as_fn_unset () 24328{ 24329 { eval $1=; unset $1;} 24330} 24331as_unset=as_fn_unset 24332# as_fn_append VAR VALUE 24333# ---------------------- 24334# Append the text in VALUE to the end of the definition contained in VAR. Take 24335# advantage of any shell optimizations that allow amortized linear growth over 24336# repeated appends, instead of the typical quadratic growth present in naive 24337# implementations. 24338if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 24339 eval 'as_fn_append () 24340 { 24341 eval $1+=\$2 24342 }' 24343else 24344 as_fn_append () 24345 { 24346 eval $1=\$$1\$2 24347 } 24348fi # as_fn_append 24349 24350# as_fn_arith ARG... 24351# ------------------ 24352# Perform arithmetic evaluation on the ARGs, and store the result in the 24353# global $as_val. Take advantage of shells that can avoid forks. The arguments 24354# must be portable across $(()) and expr. 24355if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 24356 eval 'as_fn_arith () 24357 { 24358 as_val=$(( $* )) 24359 }' 24360else 24361 as_fn_arith () 24362 { 24363 as_val=`expr "$@" || test $? -eq 1` 24364 } 24365fi # as_fn_arith 24366 24367 24368if expr a : '\(a\)' >/dev/null 2>&1 && 24369 test "X`expr 00001 : '.*\(...\)'`" = X001; then 24370 as_expr=expr 24371else 24372 as_expr=false 24373fi 24374 24375if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 24376 as_basename=basename 24377else 24378 as_basename=false 24379fi 24380 24381if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 24382 as_dirname=dirname 24383else 24384 as_dirname=false 24385fi 24386 24387as_me=`$as_basename -- "$0" || 24388$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 24389 X"$0" : 'X\(//\)$' \| \ 24390 X"$0" : 'X\(/\)' \| . 2>/dev/null || 24391$as_echo X/"$0" | 24392 sed '/^.*\/\([^/][^/]*\)\/*$/{ 24393 s//\1/ 24394 q 24395 } 24396 /^X\/\(\/\/\)$/{ 24397 s//\1/ 24398 q 24399 } 24400 /^X\/\(\/\).*/{ 24401 s//\1/ 24402 q 24403 } 24404 s/.*/./; q'` 24405 24406# Avoid depending upon Character Ranges. 24407as_cr_letters='abcdefghijklmnopqrstuvwxyz' 24408as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 24409as_cr_Letters=$as_cr_letters$as_cr_LETTERS 24410as_cr_digits='0123456789' 24411as_cr_alnum=$as_cr_Letters$as_cr_digits 24412 24413ECHO_C= ECHO_N= ECHO_T= 24414case `echo -n x` in #((((( 24415-n*) 24416 case `echo 'xy\c'` in 24417 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 24418 xy) ECHO_C='\c';; 24419 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 24420 ECHO_T=' ';; 24421 esac;; 24422*) 24423 ECHO_N='-n';; 24424esac 24425 24426rm -f conf$$ conf$$.exe conf$$.file 24427if test -d conf$$.dir; then 24428 rm -f conf$$.dir/conf$$.file 24429else 24430 rm -f conf$$.dir 24431 mkdir conf$$.dir 2>/dev/null 24432fi 24433if (echo >conf$$.file) 2>/dev/null; then 24434 if ln -s conf$$.file conf$$ 2>/dev/null; then 24435 as_ln_s='ln -s' 24436 # ... but there are two gotchas: 24437 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 24438 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 24439 # In both cases, we have to default to `cp -pR'. 24440 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 24441 as_ln_s='cp -pR' 24442 elif ln conf$$.file conf$$ 2>/dev/null; then 24443 as_ln_s=ln 24444 else 24445 as_ln_s='cp -pR' 24446 fi 24447else 24448 as_ln_s='cp -pR' 24449fi 24450rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 24451rmdir conf$$.dir 2>/dev/null 24452 24453 24454# as_fn_mkdir_p 24455# ------------- 24456# Create "$as_dir" as a directory, including parents if necessary. 24457as_fn_mkdir_p () 24458{ 24459 24460 case $as_dir in #( 24461 -*) as_dir=./$as_dir;; 24462 esac 24463 test -d "$as_dir" || eval $as_mkdir_p || { 24464 as_dirs= 24465 while :; do 24466 case $as_dir in #( 24467 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 24468 *) as_qdir=$as_dir;; 24469 esac 24470 as_dirs="'$as_qdir' $as_dirs" 24471 as_dir=`$as_dirname -- "$as_dir" || 24472$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24473 X"$as_dir" : 'X\(//\)[^/]' \| \ 24474 X"$as_dir" : 'X\(//\)$' \| \ 24475 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 24476$as_echo X"$as_dir" | 24477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24478 s//\1/ 24479 q 24480 } 24481 /^X\(\/\/\)[^/].*/{ 24482 s//\1/ 24483 q 24484 } 24485 /^X\(\/\/\)$/{ 24486 s//\1/ 24487 q 24488 } 24489 /^X\(\/\).*/{ 24490 s//\1/ 24491 q 24492 } 24493 s/.*/./; q'` 24494 test -d "$as_dir" && break 24495 done 24496 test -z "$as_dirs" || eval "mkdir $as_dirs" 24497 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 24498 24499 24500} # as_fn_mkdir_p 24501if mkdir -p . 2>/dev/null; then 24502 as_mkdir_p='mkdir -p "$as_dir"' 24503else 24504 test -d ./-p && rmdir ./-p 24505 as_mkdir_p=false 24506fi 24507 24508 24509# as_fn_executable_p FILE 24510# ----------------------- 24511# Test if FILE is an executable regular file. 24512as_fn_executable_p () 24513{ 24514 test -f "$1" && test -x "$1" 24515} # as_fn_executable_p 24516as_test_x='test -x' 24517as_executable_p=as_fn_executable_p 24518 24519# Sed expression to map a string onto a valid CPP name. 24520as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 24521 24522# Sed expression to map a string onto a valid variable name. 24523as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 24524 24525 24526exec 6>&1 24527## ----------------------------------- ## 24528## Main body of $CONFIG_STATUS script. ## 24529## ----------------------------------- ## 24530_ASEOF 24531test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 24532 24533cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24534# Save the log message, to keep $0 and so on meaningful, and to 24535# report actual input values of CONFIG_FILES etc. instead of their 24536# values after options handling. 24537ac_log=" 24538This file was extended by $as_me, which was 24539generated by GNU Autoconf 2.69. Invocation command line was 24540 24541 CONFIG_FILES = $CONFIG_FILES 24542 CONFIG_HEADERS = $CONFIG_HEADERS 24543 CONFIG_LINKS = $CONFIG_LINKS 24544 CONFIG_COMMANDS = $CONFIG_COMMANDS 24545 $ $0 $@ 24546 24547on `(hostname || uname -n) 2>/dev/null | sed 1q` 24548" 24549 24550_ACEOF 24551 24552case $ac_config_files in *" 24553"*) set x $ac_config_files; shift; ac_config_files=$*;; 24554esac 24555 24556case $ac_config_headers in *" 24557"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 24558esac 24559 24560 24561cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24562# Files that config.status was made for. 24563config_files="$ac_config_files" 24564config_headers="$ac_config_headers" 24565config_commands="$ac_config_commands" 24566 24567_ACEOF 24568 24569cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24570ac_cs_usage="\ 24571\`$as_me' instantiates files and other configuration actions 24572from templates according to the current configuration. Unless the files 24573and actions are specified as TAGs, all are instantiated by default. 24574 24575Usage: $0 [OPTION]... [TAG]... 24576 24577 -h, --help print this help, then exit 24578 -V, --version print version number and configuration settings, then exit 24579 --config print configuration, then exit 24580 -q, --quiet, --silent 24581 do not print progress messages 24582 -d, --debug don't remove temporary files 24583 --recheck update $as_me by reconfiguring in the same conditions 24584 --file=FILE[:TEMPLATE] 24585 instantiate the configuration file FILE 24586 --header=FILE[:TEMPLATE] 24587 instantiate the configuration header FILE 24588 24589Configuration files: 24590$config_files 24591 24592Configuration headers: 24593$config_headers 24594 24595Configuration commands: 24596$config_commands 24597 24598Report bugs to the package provider." 24599 24600_ACEOF 24601cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24602ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 24603ac_cs_version="\\ 24604config.status 24605configured by $0, generated by GNU Autoconf 2.69, 24606 with options \\"\$ac_cs_config\\" 24607 24608Copyright (C) 2012 Free Software Foundation, Inc. 24609This config.status script is free software; the Free Software Foundation 24610gives unlimited permission to copy, distribute and modify it." 24611 24612ac_pwd='$ac_pwd' 24613srcdir='$srcdir' 24614INSTALL='$INSTALL' 24615test -n "\$AWK" || AWK=awk 24616_ACEOF 24617 24618cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24619# The default lists apply if the user does not specify any file. 24620ac_need_defaults=: 24621while test $# != 0 24622do 24623 case $1 in 24624 --*=?*) 24625 ac_option=`expr "X$1" : 'X\([^=]*\)='` 24626 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 24627 ac_shift=: 24628 ;; 24629 --*=) 24630 ac_option=`expr "X$1" : 'X\([^=]*\)='` 24631 ac_optarg= 24632 ac_shift=: 24633 ;; 24634 *) 24635 ac_option=$1 24636 ac_optarg=$2 24637 ac_shift=shift 24638 ;; 24639 esac 24640 24641 case $ac_option in 24642 # Handling of the options. 24643 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 24644 ac_cs_recheck=: ;; 24645 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 24646 $as_echo "$ac_cs_version"; exit ;; 24647 --config | --confi | --conf | --con | --co | --c ) 24648 $as_echo "$ac_cs_config"; exit ;; 24649 --debug | --debu | --deb | --de | --d | -d ) 24650 debug=: ;; 24651 --file | --fil | --fi | --f ) 24652 $ac_shift 24653 case $ac_optarg in 24654 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 24655 '') as_fn_error $? "missing file argument" ;; 24656 esac 24657 as_fn_append CONFIG_FILES " '$ac_optarg'" 24658 ac_need_defaults=false;; 24659 --header | --heade | --head | --hea ) 24660 $ac_shift 24661 case $ac_optarg in 24662 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 24663 esac 24664 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 24665 ac_need_defaults=false;; 24666 --he | --h) 24667 # Conflict between --help and --header 24668 as_fn_error $? "ambiguous option: \`$1' 24669Try \`$0 --help' for more information.";; 24670 --help | --hel | -h ) 24671 $as_echo "$ac_cs_usage"; exit ;; 24672 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 24673 | -silent | --silent | --silen | --sile | --sil | --si | --s) 24674 ac_cs_silent=: ;; 24675 24676 # This is an error. 24677 -*) as_fn_error $? "unrecognized option: \`$1' 24678Try \`$0 --help' for more information." ;; 24679 24680 *) as_fn_append ac_config_targets " $1" 24681 ac_need_defaults=false ;; 24682 24683 esac 24684 shift 24685done 24686 24687ac_configure_extra_args= 24688 24689if $ac_cs_silent; then 24690 exec 6>/dev/null 24691 ac_configure_extra_args="$ac_configure_extra_args --silent" 24692fi 24693 24694_ACEOF 24695cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24696if \$ac_cs_recheck; then 24697 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 24698 shift 24699 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 24700 CONFIG_SHELL='$SHELL' 24701 export CONFIG_SHELL 24702 exec "\$@" 24703fi 24704 24705_ACEOF 24706cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24707exec 5>>config.log 24708{ 24709 echo 24710 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 24711## Running $as_me. ## 24712_ASBOX 24713 $as_echo "$ac_log" 24714} >&5 24715 24716_ACEOF 24717cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24718# 24719# INIT-COMMANDS 24720# 24721 24722APRUTIL_MAJOR_VERSION=$APRUTIL_MAJOR_VERSION 24723 24724 24725_ACEOF 24726 24727cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24728 24729# Handling of arguments. 24730for ac_config_target in $ac_config_targets 24731do 24732 case $ac_config_target in 24733 "include/private/apu_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/private/apu_config.h" ;; 24734 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 24735 "export_vars.sh") CONFIG_FILES="$CONFIG_FILES export_vars.sh" ;; 24736 "build/pkg/pkginfo") CONFIG_FILES="$CONFIG_FILES build/pkg/pkginfo" ;; 24737 "apr-util.pc") CONFIG_FILES="$CONFIG_FILES apr-util.pc" ;; 24738 "apu-$APRUTIL_MAJOR_VERSION-config") CONFIG_FILES="$CONFIG_FILES apu-$APRUTIL_MAJOR_VERSION-config:apu-config.in" ;; 24739 "include/private/apu_select_dbm.h") CONFIG_FILES="$CONFIG_FILES include/private/apu_select_dbm.h" ;; 24740 "include/apr_ldap.h") CONFIG_FILES="$CONFIG_FILES include/apr_ldap.h" ;; 24741 "include/apu.h") CONFIG_FILES="$CONFIG_FILES include/apu.h" ;; 24742 "include/apu_want.h") CONFIG_FILES="$CONFIG_FILES include/apu_want.h" ;; 24743 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 24744 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 24745 24746 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 24747 esac 24748done 24749 24750 24751# If the user did not use the arguments to specify the items to instantiate, 24752# then the envvar interface is used. Set only those that are not. 24753# We use the long form for the default assignment because of an extremely 24754# bizarre bug on SunOS 4.1.3. 24755if $ac_need_defaults; then 24756 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 24757 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 24758 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 24759fi 24760 24761# Have a temporary directory for convenience. Make it in the build tree 24762# simply because there is no reason against having it here, and in addition, 24763# creating and moving files from /tmp can sometimes cause problems. 24764# Hook for its removal unless debugging. 24765# Note that there is a small window in which the directory will not be cleaned: 24766# after its creation but before its name has been assigned to `$tmp'. 24767$debug || 24768{ 24769 tmp= ac_tmp= 24770 trap 'exit_status=$? 24771 : "${ac_tmp:=$tmp}" 24772 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 24773' 0 24774 trap 'as_fn_exit 1' 1 2 13 15 24775} 24776# Create a (secure) tmp directory for tmp files. 24777 24778{ 24779 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 24780 test -d "$tmp" 24781} || 24782{ 24783 tmp=./conf$$-$RANDOM 24784 (umask 077 && mkdir "$tmp") 24785} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 24786ac_tmp=$tmp 24787 24788# Set up the scripts for CONFIG_FILES section. 24789# No need to generate them if there are no CONFIG_FILES. 24790# This happens for instance with `./config.status config.h'. 24791if test -n "$CONFIG_FILES"; then 24792 24793 24794ac_cr=`echo X | tr X '\015'` 24795# On cygwin, bash can eat \r inside `` if the user requested igncr. 24796# But we know of no other shell where ac_cr would be empty at this 24797# point, so we can use a bashism as a fallback. 24798if test "x$ac_cr" = x; then 24799 eval ac_cr=\$\'\\r\' 24800fi 24801ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 24802if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 24803 ac_cs_awk_cr='\\r' 24804else 24805 ac_cs_awk_cr=$ac_cr 24806fi 24807 24808echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 24809_ACEOF 24810 24811 24812{ 24813 echo "cat >conf$$subs.awk <<_ACEOF" && 24814 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 24815 echo "_ACEOF" 24816} >conf$$subs.sh || 24817 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 24818ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 24819ac_delim='%!_!# ' 24820for ac_last_try in false false false false false :; do 24821 . ./conf$$subs.sh || 24822 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 24823 24824 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 24825 if test $ac_delim_n = $ac_delim_num; then 24826 break 24827 elif $ac_last_try; then 24828 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 24829 else 24830 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 24831 fi 24832done 24833rm -f conf$$subs.sh 24834 24835cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24836cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 24837_ACEOF 24838sed -n ' 24839h 24840s/^/S["/; s/!.*/"]=/ 24841p 24842g 24843s/^[^!]*!// 24844:repl 24845t repl 24846s/'"$ac_delim"'$// 24847t delim 24848:nl 24849h 24850s/\(.\{148\}\)..*/\1/ 24851t more1 24852s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 24853p 24854n 24855b repl 24856:more1 24857s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 24858p 24859g 24860s/.\{148\}// 24861t nl 24862:delim 24863h 24864s/\(.\{148\}\)..*/\1/ 24865t more2 24866s/["\\]/\\&/g; s/^/"/; s/$/"/ 24867p 24868b 24869:more2 24870s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 24871p 24872g 24873s/.\{148\}// 24874t delim 24875' <conf$$subs.awk | sed ' 24876/^[^""]/{ 24877 N 24878 s/\n// 24879} 24880' >>$CONFIG_STATUS || ac_write_fail=1 24881rm -f conf$$subs.awk 24882cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24883_ACAWK 24884cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 24885 for (key in S) S_is_set[key] = 1 24886 FS = "" 24887 24888} 24889{ 24890 line = $ 0 24891 nfields = split(line, field, "@") 24892 substed = 0 24893 len = length(field[1]) 24894 for (i = 2; i < nfields; i++) { 24895 key = field[i] 24896 keylen = length(key) 24897 if (S_is_set[key]) { 24898 value = S[key] 24899 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 24900 len += length(value) + length(field[++i]) 24901 substed = 1 24902 } else 24903 len += 1 + keylen 24904 } 24905 24906 print line 24907} 24908 24909_ACAWK 24910_ACEOF 24911cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24912if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 24913 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 24914else 24915 cat 24916fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 24917 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 24918_ACEOF 24919 24920# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 24921# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 24922# trailing colons and then remove the whole line if VPATH becomes empty 24923# (actually we leave an empty line to preserve line numbers). 24924if test "x$srcdir" = x.; then 24925 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 24926h 24927s/// 24928s/^/:/ 24929s/[ ]*$/:/ 24930s/:\$(srcdir):/:/g 24931s/:\${srcdir}:/:/g 24932s/:@srcdir@:/:/g 24933s/^:*// 24934s/:*$// 24935x 24936s/\(=[ ]*\).*/\1/ 24937G 24938s/\n// 24939s/^[^=]*=[ ]*$// 24940}' 24941fi 24942 24943cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24944fi # test -n "$CONFIG_FILES" 24945 24946# Set up the scripts for CONFIG_HEADERS section. 24947# No need to generate them if there are no CONFIG_HEADERS. 24948# This happens for instance with `./config.status Makefile'. 24949if test -n "$CONFIG_HEADERS"; then 24950cat >"$ac_tmp/defines.awk" <<\_ACAWK || 24951BEGIN { 24952_ACEOF 24953 24954# Transform confdefs.h into an awk script `defines.awk', embedded as 24955# here-document in config.status, that substitutes the proper values into 24956# config.h.in to produce config.h. 24957 24958# Create a delimiter string that does not exist in confdefs.h, to ease 24959# handling of long lines. 24960ac_delim='%!_!# ' 24961for ac_last_try in false false :; do 24962 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 24963 if test -z "$ac_tt"; then 24964 break 24965 elif $ac_last_try; then 24966 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 24967 else 24968 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 24969 fi 24970done 24971 24972# For the awk script, D is an array of macro values keyed by name, 24973# likewise P contains macro parameters if any. Preserve backslash 24974# newline sequences. 24975 24976ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 24977sed -n ' 24978s/.\{148\}/&'"$ac_delim"'/g 24979t rset 24980:rset 24981s/^[ ]*#[ ]*define[ ][ ]*/ / 24982t def 24983d 24984:def 24985s/\\$// 24986t bsnl 24987s/["\\]/\\&/g 24988s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 24989D["\1"]=" \3"/p 24990s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 24991d 24992:bsnl 24993s/["\\]/\\&/g 24994s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 24995D["\1"]=" \3\\\\\\n"\\/p 24996t cont 24997s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 24998t cont 24999d 25000:cont 25001n 25002s/.\{148\}/&'"$ac_delim"'/g 25003t clear 25004:clear 25005s/\\$// 25006t bsnlc 25007s/["\\]/\\&/g; s/^/"/; s/$/"/p 25008d 25009:bsnlc 25010s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 25011b cont 25012' <confdefs.h | sed ' 25013s/'"$ac_delim"'/"\\\ 25014"/g' >>$CONFIG_STATUS || ac_write_fail=1 25015 25016cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25017 for (key in D) D_is_set[key] = 1 25018 FS = "" 25019} 25020/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 25021 line = \$ 0 25022 split(line, arg, " ") 25023 if (arg[1] == "#") { 25024 defundef = arg[2] 25025 mac1 = arg[3] 25026 } else { 25027 defundef = substr(arg[1], 2) 25028 mac1 = arg[2] 25029 } 25030 split(mac1, mac2, "(") #) 25031 macro = mac2[1] 25032 prefix = substr(line, 1, index(line, defundef) - 1) 25033 if (D_is_set[macro]) { 25034 # Preserve the white space surrounding the "#". 25035 print prefix "define", macro P[macro] D[macro] 25036 next 25037 } else { 25038 # Replace #undef with comments. This is necessary, for example, 25039 # in the case of _POSIX_SOURCE, which is predefined and required 25040 # on some systems where configure will not decide to define it. 25041 if (defundef == "undef") { 25042 print "/*", prefix defundef, macro, "*/" 25043 next 25044 } 25045 } 25046} 25047{ print } 25048_ACAWK 25049_ACEOF 25050cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25051 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 25052fi # test -n "$CONFIG_HEADERS" 25053 25054 25055eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 25056shift 25057for ac_tag 25058do 25059 case $ac_tag in 25060 :[FHLC]) ac_mode=$ac_tag; continue;; 25061 esac 25062 case $ac_mode$ac_tag in 25063 :[FHL]*:*);; 25064 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 25065 :[FH]-) ac_tag=-:-;; 25066 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 25067 esac 25068 ac_save_IFS=$IFS 25069 IFS=: 25070 set x $ac_tag 25071 IFS=$ac_save_IFS 25072 shift 25073 ac_file=$1 25074 shift 25075 25076 case $ac_mode in 25077 :L) ac_source=$1;; 25078 :[FH]) 25079 ac_file_inputs= 25080 for ac_f 25081 do 25082 case $ac_f in 25083 -) ac_f="$ac_tmp/stdin";; 25084 *) # Look for the file first in the build tree, then in the source tree 25085 # (if the path is not absolute). The absolute path cannot be DOS-style, 25086 # because $ac_f cannot contain `:'. 25087 test -f "$ac_f" || 25088 case $ac_f in 25089 [\\/$]*) false;; 25090 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 25091 esac || 25092 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 25093 esac 25094 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 25095 as_fn_append ac_file_inputs " '$ac_f'" 25096 done 25097 25098 # Let's still pretend it is `configure' which instantiates (i.e., don't 25099 # use $as_me), people would be surprised to read: 25100 # /* config.h. Generated by config.status. */ 25101 configure_input='Generated from '` 25102 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 25103 `' by configure.' 25104 if test x"$ac_file" != x-; then 25105 configure_input="$ac_file. $configure_input" 25106 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 25107$as_echo "$as_me: creating $ac_file" >&6;} 25108 fi 25109 # Neutralize special characters interpreted by sed in replacement strings. 25110 case $configure_input in #( 25111 *\&* | *\|* | *\\* ) 25112 ac_sed_conf_input=`$as_echo "$configure_input" | 25113 sed 's/[\\\\&|]/\\\\&/g'`;; #( 25114 *) ac_sed_conf_input=$configure_input;; 25115 esac 25116 25117 case $ac_tag in 25118 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 25119 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 25120 esac 25121 ;; 25122 esac 25123 25124 ac_dir=`$as_dirname -- "$ac_file" || 25125$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25126 X"$ac_file" : 'X\(//\)[^/]' \| \ 25127 X"$ac_file" : 'X\(//\)$' \| \ 25128 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 25129$as_echo X"$ac_file" | 25130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25131 s//\1/ 25132 q 25133 } 25134 /^X\(\/\/\)[^/].*/{ 25135 s//\1/ 25136 q 25137 } 25138 /^X\(\/\/\)$/{ 25139 s//\1/ 25140 q 25141 } 25142 /^X\(\/\).*/{ 25143 s//\1/ 25144 q 25145 } 25146 s/.*/./; q'` 25147 as_dir="$ac_dir"; as_fn_mkdir_p 25148 ac_builddir=. 25149 25150case "$ac_dir" in 25151.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 25152*) 25153 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 25154 # A ".." for each directory in $ac_dir_suffix. 25155 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 25156 case $ac_top_builddir_sub in 25157 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 25158 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 25159 esac ;; 25160esac 25161ac_abs_top_builddir=$ac_pwd 25162ac_abs_builddir=$ac_pwd$ac_dir_suffix 25163# for backward compatibility: 25164ac_top_builddir=$ac_top_build_prefix 25165 25166case $srcdir in 25167 .) # We are building in place. 25168 ac_srcdir=. 25169 ac_top_srcdir=$ac_top_builddir_sub 25170 ac_abs_top_srcdir=$ac_pwd ;; 25171 [\\/]* | ?:[\\/]* ) # Absolute name. 25172 ac_srcdir=$srcdir$ac_dir_suffix; 25173 ac_top_srcdir=$srcdir 25174 ac_abs_top_srcdir=$srcdir ;; 25175 *) # Relative name. 25176 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 25177 ac_top_srcdir=$ac_top_build_prefix$srcdir 25178 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 25179esac 25180ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 25181 25182 25183 case $ac_mode in 25184 :F) 25185 # 25186 # CONFIG_FILE 25187 # 25188 25189 case $INSTALL in 25190 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 25191 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 25192 esac 25193_ACEOF 25194 25195cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25196# If the template does not know about datarootdir, expand it. 25197# FIXME: This hack should be removed a few years after 2.60. 25198ac_datarootdir_hack=; ac_datarootdir_seen= 25199ac_sed_dataroot=' 25200/datarootdir/ { 25201 p 25202 q 25203} 25204/@datadir@/p 25205/@docdir@/p 25206/@infodir@/p 25207/@localedir@/p 25208/@mandir@/p' 25209case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 25210*datarootdir*) ac_datarootdir_seen=yes;; 25211*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 25212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 25213$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 25214_ACEOF 25215cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25216 ac_datarootdir_hack=' 25217 s&@datadir@&$datadir&g 25218 s&@docdir@&$docdir&g 25219 s&@infodir@&$infodir&g 25220 s&@localedir@&$localedir&g 25221 s&@mandir@&$mandir&g 25222 s&\\\${datarootdir}&$datarootdir&g' ;; 25223esac 25224_ACEOF 25225 25226# Neutralize VPATH when `$srcdir' = `.'. 25227# Shell code in configure.ac might set extrasub. 25228# FIXME: do we really want to maintain this feature? 25229cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25230ac_sed_extra="$ac_vpsub 25231$extrasub 25232_ACEOF 25233cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25234:t 25235/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 25236s|@configure_input@|$ac_sed_conf_input|;t t 25237s&@top_builddir@&$ac_top_builddir_sub&;t t 25238s&@top_build_prefix@&$ac_top_build_prefix&;t t 25239s&@srcdir@&$ac_srcdir&;t t 25240s&@abs_srcdir@&$ac_abs_srcdir&;t t 25241s&@top_srcdir@&$ac_top_srcdir&;t t 25242s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 25243s&@builddir@&$ac_builddir&;t t 25244s&@abs_builddir@&$ac_abs_builddir&;t t 25245s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 25246s&@INSTALL@&$ac_INSTALL&;t t 25247$ac_datarootdir_hack 25248" 25249eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 25250 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 25251 25252test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 25253 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 25254 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 25255 "$ac_tmp/out"`; test -z "$ac_out"; } && 25256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 25257which seems to be undefined. Please make sure it is defined" >&5 25258$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 25259which seems to be undefined. Please make sure it is defined" >&2;} 25260 25261 rm -f "$ac_tmp/stdin" 25262 case $ac_file in 25263 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 25264 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 25265 esac \ 25266 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 25267 ;; 25268 :H) 25269 # 25270 # CONFIG_HEADER 25271 # 25272 if test x"$ac_file" != x-; then 25273 { 25274 $as_echo "/* $configure_input */" \ 25275 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 25276 } >"$ac_tmp/config.h" \ 25277 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 25278 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 25279 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 25280$as_echo "$as_me: $ac_file is unchanged" >&6;} 25281 else 25282 rm -f "$ac_file" 25283 mv "$ac_tmp/config.h" "$ac_file" \ 25284 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 25285 fi 25286 else 25287 $as_echo "/* $configure_input */" \ 25288 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 25289 || as_fn_error $? "could not create -" "$LINENO" 5 25290 fi 25291 ;; 25292 25293 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 25294$as_echo "$as_me: executing $ac_file commands" >&6;} 25295 ;; 25296 esac 25297 25298 25299 case $ac_file$ac_mode in 25300 "default":C) 25301chmod +x apu-$APRUTIL_MAJOR_VERSION-config 25302 ;; 25303 25304 esac 25305done # for ac_tag 25306 25307 25308as_fn_exit 0 25309_ACEOF 25310ac_clean_files=$ac_clean_files_save 25311 25312test $ac_write_fail = 0 || 25313 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 25314 25315 25316# configure is writing to config.log, and then calls config.status. 25317# config.status does its own redirection, appending to config.log. 25318# Unfortunately, on DOS this fails, as config.log is still kept open 25319# by configure, so config.status won't be able to write to it; its 25320# output is simply discarded. So we exec the FD to /dev/null, 25321# effectively closing config.log, so it can be properly (re)opened and 25322# appended to by config.status. When coming back to configure, we 25323# need to make the FD available again. 25324if test "$no_create" != yes; then 25325 ac_cs_success=: 25326 ac_config_status_args= 25327 test "$silent" = yes && 25328 ac_config_status_args="$ac_config_status_args --quiet" 25329 exec 5>/dev/null 25330 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 25331 exec 5>>config.log 25332 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 25333 # would make configure fail if this is the last instruction. 25334 $ac_cs_success || as_fn_exit 1 25335fi 25336if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 25337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 25338$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 25339fi 25340 25341