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 640APR_XML_DIR 641apu_dbd_tests 642LDADD_dbd_odbc 643apu_have_odbc 644ODBC_CONFIG 645LDADD_dbd_freetds 646apu_have_freetds 647LDADD_dbd_oracle 648apu_have_oracle 649LDADD_dbd_sqlite2 650apu_have_sqlite2 651LDADD_dbd_sqlite3 652apu_have_sqlite3 653LDADD_dbd_mysql 654apu_have_mysql 655MYSQL_CONFIG 656LDADD_dbd_pgsql 657apu_have_pgsql 658PGSQL_CONFIG 659LDADD_dbm_ndbm 660LDADD_dbm_gdbm 661LDADD_dbm_db 662apu_db_version 663apu_db_header 664apu_have_db 665apu_have_ndbm 666apu_have_gdbm 667apu_have_sdbm 668apu_use_db 669apu_use_ndbm 670apu_use_gdbm 671apu_use_sdbm 672LDADD_ldap 673apu_has_ldap_other 674apu_has_ldap_zos 675apu_has_ldap_tivoli 676apu_has_ldap_mozilla 677apu_has_ldap_netscape 678apu_has_ldap_microsoft 679apu_has_ldap_novell 680apu_has_ldap_solaris 681apu_has_ldap_openldap 682apu_has_ldap 683apu_has_ldapssl_install_routines 684apu_has_ldap_sslinit 685apu_has_ldapssl_init 686apu_has_ldap_start_tls_s 687apu_has_ldapssl_add_trusted_cert 688apu_has_ldapssl_client_deinit 689apu_has_ldapssl_client_init 690ldap_ssl_h 691lber_h 692ldap_h 693LDADD_crypto_nss 694apu_have_nss 695PKG_CONFIG 696apu_have_crypto 697LDADD_crypto_openssl 698apu_have_openssl 699EGREP 700GREP 701CPP 702APR_ICONV_DIR 703apr_shlibpath_var 704APR_BUILD_DIR 705APR_LIBS 706APR_INCLUDES 707OBJEXT 708EXEEXT 709ac_ct_CC 710CPPFLAGS 711LDFLAGS 712CFLAGS 713CC 714APU_LTVERSION 715APRUTIL_MAJOR_VERSION 716APRUTIL_DOTTED_VERSION 717abs_builddir 718abs_srcdir 719top_builddir 720LT_NO_INSTALL 721INSTALL_DATA 722INSTALL_SCRIPT 723INSTALL_PROGRAM 724target_os 725target_vendor 726target_cpu 727target 728host_os 729host_vendor 730host_cpu 731host 732build_os 733build_vendor 734build_cpu 735build 736APU_CONFIG_LOCATION 737target_alias 738host_alias 739build_alias 740LIBS 741ECHO_T 742ECHO_N 743ECHO_C 744DEFS 745mandir 746localedir 747libdir 748psdir 749pdfdir 750dvidir 751htmldir 752infodir 753docdir 754oldincludedir 755includedir 756localstatedir 757sharedstatedir 758sysconfdir 759datadir 760datarootdir 761libexecdir 762sbindir 763bindir 764program_transform_name 765prefix 766exec_prefix 767PACKAGE_URL 768PACKAGE_BUGREPORT 769PACKAGE_STRING 770PACKAGE_VERSION 771PACKAGE_TARNAME 772PACKAGE_NAME 773PATH_SEPARATOR 774SHELL' 775ac_subst_files='' 776ac_user_opts=' 777enable_option_checking 778enable_layout 779with_apr 780with_apr_iconv 781with_crypto 782with_openssl 783with_nss 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_freetds 799with_odbc 800with_expat 801with_iconv 802enable_util_dso 803' 804 ac_precious_vars='build_alias 805host_alias 806target_alias 807CC 808CFLAGS 809LDFLAGS 810LIBS 811CPPFLAGS 812CPP' 813 814 815# Initialize some variables set by options. 816ac_init_help= 817ac_init_version=false 818ac_unrecognized_opts= 819ac_unrecognized_sep= 820# The variables have the same names as the options, with 821# dashes changed to underlines. 822cache_file=/dev/null 823exec_prefix=NONE 824no_create= 825no_recursion= 826prefix=NONE 827program_prefix=NONE 828program_suffix=NONE 829program_transform_name=s,x,x, 830silent= 831site= 832srcdir= 833verbose= 834x_includes=NONE 835x_libraries=NONE 836 837# Installation directory options. 838# These are left unexpanded so users can "make install exec_prefix=/foo" 839# and all the variables that are supposed to be based on exec_prefix 840# by default will actually change. 841# Use braces instead of parens because sh, perl, etc. also accept them. 842# (The list follows the same order as the GNU Coding Standards.) 843bindir='${exec_prefix}/bin' 844sbindir='${exec_prefix}/sbin' 845libexecdir='${exec_prefix}/libexec' 846datarootdir='${prefix}/share' 847datadir='${datarootdir}' 848sysconfdir='${prefix}/etc' 849sharedstatedir='${prefix}/com' 850localstatedir='${prefix}/var' 851includedir='${prefix}/include' 852oldincludedir='/usr/include' 853docdir='${datarootdir}/doc/${PACKAGE}' 854infodir='${datarootdir}/info' 855htmldir='${docdir}' 856dvidir='${docdir}' 857pdfdir='${docdir}' 858psdir='${docdir}' 859libdir='${exec_prefix}/lib' 860localedir='${datarootdir}/locale' 861mandir='${datarootdir}/man' 862 863ac_prev= 864ac_dashdash= 865for ac_option 866do 867 # If the previous option needs an argument, assign it. 868 if test -n "$ac_prev"; then 869 eval $ac_prev=\$ac_option 870 ac_prev= 871 continue 872 fi 873 874 case $ac_option in 875 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 876 *=) ac_optarg= ;; 877 *) ac_optarg=yes ;; 878 esac 879 880 # Accept the important Cygnus configure options, so we can diagnose typos. 881 882 case $ac_dashdash$ac_option in 883 --) 884 ac_dashdash=yes ;; 885 886 -bindir | --bindir | --bindi | --bind | --bin | --bi) 887 ac_prev=bindir ;; 888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 889 bindir=$ac_optarg ;; 890 891 -build | --build | --buil | --bui | --bu) 892 ac_prev=build_alias ;; 893 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 894 build_alias=$ac_optarg ;; 895 896 -cache-file | --cache-file | --cache-fil | --cache-fi \ 897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 898 ac_prev=cache_file ;; 899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 901 cache_file=$ac_optarg ;; 902 903 --config-cache | -C) 904 cache_file=config.cache ;; 905 906 -datadir | --datadir | --datadi | --datad) 907 ac_prev=datadir ;; 908 -datadir=* | --datadir=* | --datadi=* | --datad=*) 909 datadir=$ac_optarg ;; 910 911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 912 | --dataroo | --dataro | --datar) 913 ac_prev=datarootdir ;; 914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 916 datarootdir=$ac_optarg ;; 917 918 -disable-* | --disable-*) 919 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 920 # Reject names that are not valid shell variable names. 921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 922 as_fn_error $? "invalid feature name: $ac_useropt" 923 ac_useropt_orig=$ac_useropt 924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 925 case $ac_user_opts in 926 *" 927"enable_$ac_useropt" 928"*) ;; 929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 930 ac_unrecognized_sep=', ';; 931 esac 932 eval enable_$ac_useropt=no ;; 933 934 -docdir | --docdir | --docdi | --doc | --do) 935 ac_prev=docdir ;; 936 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 937 docdir=$ac_optarg ;; 938 939 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 940 ac_prev=dvidir ;; 941 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 942 dvidir=$ac_optarg ;; 943 944 -enable-* | --enable-*) 945 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 946 # Reject names that are not valid shell variable names. 947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 948 as_fn_error $? "invalid feature name: $ac_useropt" 949 ac_useropt_orig=$ac_useropt 950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 951 case $ac_user_opts in 952 *" 953"enable_$ac_useropt" 954"*) ;; 955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 956 ac_unrecognized_sep=', ';; 957 esac 958 eval enable_$ac_useropt=\$ac_optarg ;; 959 960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 962 | --exec | --exe | --ex) 963 ac_prev=exec_prefix ;; 964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 966 | --exec=* | --exe=* | --ex=*) 967 exec_prefix=$ac_optarg ;; 968 969 -gas | --gas | --ga | --g) 970 # Obsolete; use --with-gas. 971 with_gas=yes ;; 972 973 -help | --help | --hel | --he | -h) 974 ac_init_help=long ;; 975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 976 ac_init_help=recursive ;; 977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 978 ac_init_help=short ;; 979 980 -host | --host | --hos | --ho) 981 ac_prev=host_alias ;; 982 -host=* | --host=* | --hos=* | --ho=*) 983 host_alias=$ac_optarg ;; 984 985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 986 ac_prev=htmldir ;; 987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 988 | --ht=*) 989 htmldir=$ac_optarg ;; 990 991 -includedir | --includedir | --includedi | --included | --include \ 992 | --includ | --inclu | --incl | --inc) 993 ac_prev=includedir ;; 994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 995 | --includ=* | --inclu=* | --incl=* | --inc=*) 996 includedir=$ac_optarg ;; 997 998 -infodir | --infodir | --infodi | --infod | --info | --inf) 999 ac_prev=infodir ;; 1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1001 infodir=$ac_optarg ;; 1002 1003 -libdir | --libdir | --libdi | --libd) 1004 ac_prev=libdir ;; 1005 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1006 libdir=$ac_optarg ;; 1007 1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1009 | --libexe | --libex | --libe) 1010 ac_prev=libexecdir ;; 1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1012 | --libexe=* | --libex=* | --libe=*) 1013 libexecdir=$ac_optarg ;; 1014 1015 -localedir | --localedir | --localedi | --localed | --locale) 1016 ac_prev=localedir ;; 1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1018 localedir=$ac_optarg ;; 1019 1020 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1021 | --localstate | --localstat | --localsta | --localst | --locals) 1022 ac_prev=localstatedir ;; 1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1025 localstatedir=$ac_optarg ;; 1026 1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1028 ac_prev=mandir ;; 1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1030 mandir=$ac_optarg ;; 1031 1032 -nfp | --nfp | --nf) 1033 # Obsolete; use --without-fp. 1034 with_fp=no ;; 1035 1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1037 | --no-cr | --no-c | -n) 1038 no_create=yes ;; 1039 1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1042 no_recursion=yes ;; 1043 1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1046 | --oldin | --oldi | --old | --ol | --o) 1047 ac_prev=oldincludedir ;; 1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1051 oldincludedir=$ac_optarg ;; 1052 1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1054 ac_prev=prefix ;; 1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1056 prefix=$ac_optarg ;; 1057 1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1059 | --program-pre | --program-pr | --program-p) 1060 ac_prev=program_prefix ;; 1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1063 program_prefix=$ac_optarg ;; 1064 1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1066 | --program-suf | --program-su | --program-s) 1067 ac_prev=program_suffix ;; 1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1070 program_suffix=$ac_optarg ;; 1071 1072 -program-transform-name | --program-transform-name \ 1073 | --program-transform-nam | --program-transform-na \ 1074 | --program-transform-n | --program-transform- \ 1075 | --program-transform | --program-transfor \ 1076 | --program-transfo | --program-transf \ 1077 | --program-trans | --program-tran \ 1078 | --progr-tra | --program-tr | --program-t) 1079 ac_prev=program_transform_name ;; 1080 -program-transform-name=* | --program-transform-name=* \ 1081 | --program-transform-nam=* | --program-transform-na=* \ 1082 | --program-transform-n=* | --program-transform-=* \ 1083 | --program-transform=* | --program-transfor=* \ 1084 | --program-transfo=* | --program-transf=* \ 1085 | --program-trans=* | --program-tran=* \ 1086 | --progr-tra=* | --program-tr=* | --program-t=*) 1087 program_transform_name=$ac_optarg ;; 1088 1089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1090 ac_prev=pdfdir ;; 1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1092 pdfdir=$ac_optarg ;; 1093 1094 -psdir | --psdir | --psdi | --psd | --ps) 1095 ac_prev=psdir ;; 1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1097 psdir=$ac_optarg ;; 1098 1099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1100 | -silent | --silent | --silen | --sile | --sil) 1101 silent=yes ;; 1102 1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1104 ac_prev=sbindir ;; 1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1106 | --sbi=* | --sb=*) 1107 sbindir=$ac_optarg ;; 1108 1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1111 | --sharedst | --shareds | --shared | --share | --shar \ 1112 | --sha | --sh) 1113 ac_prev=sharedstatedir ;; 1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1117 | --sha=* | --sh=*) 1118 sharedstatedir=$ac_optarg ;; 1119 1120 -site | --site | --sit) 1121 ac_prev=site ;; 1122 -site=* | --site=* | --sit=*) 1123 site=$ac_optarg ;; 1124 1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1126 ac_prev=srcdir ;; 1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1128 srcdir=$ac_optarg ;; 1129 1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1131 | --syscon | --sysco | --sysc | --sys | --sy) 1132 ac_prev=sysconfdir ;; 1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1135 sysconfdir=$ac_optarg ;; 1136 1137 -target | --target | --targe | --targ | --tar | --ta | --t) 1138 ac_prev=target_alias ;; 1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1140 target_alias=$ac_optarg ;; 1141 1142 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1143 verbose=yes ;; 1144 1145 -version | --version | --versio | --versi | --vers | -V) 1146 ac_init_version=: ;; 1147 1148 -with-* | --with-*) 1149 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1150 # Reject names that are not valid shell variable names. 1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1152 as_fn_error $? "invalid package name: $ac_useropt" 1153 ac_useropt_orig=$ac_useropt 1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1155 case $ac_user_opts in 1156 *" 1157"with_$ac_useropt" 1158"*) ;; 1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1160 ac_unrecognized_sep=', ';; 1161 esac 1162 eval with_$ac_useropt=\$ac_optarg ;; 1163 1164 -without-* | --without-*) 1165 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1166 # Reject names that are not valid shell variable names. 1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1168 as_fn_error $? "invalid package name: $ac_useropt" 1169 ac_useropt_orig=$ac_useropt 1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1171 case $ac_user_opts in 1172 *" 1173"with_$ac_useropt" 1174"*) ;; 1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1176 ac_unrecognized_sep=', ';; 1177 esac 1178 eval with_$ac_useropt=no ;; 1179 1180 --x) 1181 # Obsolete; use --with-x. 1182 with_x=yes ;; 1183 1184 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1185 | --x-incl | --x-inc | --x-in | --x-i) 1186 ac_prev=x_includes ;; 1187 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1188 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1189 x_includes=$ac_optarg ;; 1190 1191 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1192 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1193 ac_prev=x_libraries ;; 1194 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1195 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1196 x_libraries=$ac_optarg ;; 1197 1198 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1199Try \`$0 --help' for more information" 1200 ;; 1201 1202 *=*) 1203 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1204 # Reject names that are not valid shell variable names. 1205 case $ac_envvar in #( 1206 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1207 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1208 esac 1209 eval $ac_envvar=\$ac_optarg 1210 export $ac_envvar ;; 1211 1212 *) 1213 # FIXME: should be removed in autoconf 3.0. 1214 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1215 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1216 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1217 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1218 ;; 1219 1220 esac 1221done 1222 1223if test -n "$ac_prev"; then 1224 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1225 as_fn_error $? "missing argument to $ac_option" 1226fi 1227 1228if test -n "$ac_unrecognized_opts"; then 1229 case $enable_option_checking in 1230 no) ;; 1231 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1232 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1233 esac 1234fi 1235 1236# Check all directory arguments for consistency. 1237for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1238 datadir sysconfdir sharedstatedir localstatedir includedir \ 1239 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1240 libdir localedir mandir 1241do 1242 eval ac_val=\$$ac_var 1243 # Remove trailing slashes. 1244 case $ac_val in 1245 */ ) 1246 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1247 eval $ac_var=\$ac_val;; 1248 esac 1249 # Be sure to have absolute directory names. 1250 case $ac_val in 1251 [\\/$]* | ?:[\\/]* ) continue;; 1252 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1253 esac 1254 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1255done 1256 1257# There might be people who depend on the old broken behavior: `$host' 1258# used to hold the argument of --host etc. 1259# FIXME: To remove some day. 1260build=$build_alias 1261host=$host_alias 1262target=$target_alias 1263 1264# FIXME: To remove some day. 1265if test "x$host_alias" != x; then 1266 if test "x$build_alias" = x; then 1267 cross_compiling=maybe 1268 elif test "x$build_alias" != "x$host_alias"; then 1269 cross_compiling=yes 1270 fi 1271fi 1272 1273ac_tool_prefix= 1274test -n "$host_alias" && ac_tool_prefix=$host_alias- 1275 1276test "$silent" = yes && exec 6>/dev/null 1277 1278 1279ac_pwd=`pwd` && test -n "$ac_pwd" && 1280ac_ls_di=`ls -di .` && 1281ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1282 as_fn_error $? "working directory cannot be determined" 1283test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1284 as_fn_error $? "pwd does not report name of working directory" 1285 1286 1287# Find the source files, if location was not specified. 1288if test -z "$srcdir"; then 1289 ac_srcdir_defaulted=yes 1290 # Try the directory containing this script, then the parent directory. 1291 ac_confdir=`$as_dirname -- "$as_myself" || 1292$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1293 X"$as_myself" : 'X\(//\)[^/]' \| \ 1294 X"$as_myself" : 'X\(//\)$' \| \ 1295 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1296$as_echo X"$as_myself" | 1297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1298 s//\1/ 1299 q 1300 } 1301 /^X\(\/\/\)[^/].*/{ 1302 s//\1/ 1303 q 1304 } 1305 /^X\(\/\/\)$/{ 1306 s//\1/ 1307 q 1308 } 1309 /^X\(\/\).*/{ 1310 s//\1/ 1311 q 1312 } 1313 s/.*/./; q'` 1314 srcdir=$ac_confdir 1315 if test ! -r "$srcdir/$ac_unique_file"; then 1316 srcdir=.. 1317 fi 1318else 1319 ac_srcdir_defaulted=no 1320fi 1321if test ! -r "$srcdir/$ac_unique_file"; then 1322 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1323 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1324fi 1325ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1326ac_abs_confdir=`( 1327 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1328 pwd)` 1329# When building in place, set srcdir=. 1330if test "$ac_abs_confdir" = "$ac_pwd"; then 1331 srcdir=. 1332fi 1333# Remove unnecessary trailing slashes from srcdir. 1334# Double slashes in file names in object file debugging info 1335# mess up M-x gdb in Emacs. 1336case $srcdir in 1337*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1338esac 1339for ac_var in $ac_precious_vars; do 1340 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1341 eval ac_env_${ac_var}_value=\$${ac_var} 1342 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1343 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1344done 1345 1346# 1347# Report the --help message. 1348# 1349if test "$ac_init_help" = "long"; then 1350 # Omit some internal or obsolete options to make the list less imposing. 1351 # This message is too long to be a string in the A/UX 3.1 sh. 1352 cat <<_ACEOF 1353\`configure' configures this package to adapt to many kinds of systems. 1354 1355Usage: $0 [OPTION]... [VAR=VALUE]... 1356 1357To assign environment variables (e.g., CC, CFLAGS...), specify them as 1358VAR=VALUE. See below for descriptions of some of the useful variables. 1359 1360Defaults for the options are specified in brackets. 1361 1362Configuration: 1363 -h, --help display this help and exit 1364 --help=short display options specific to this package 1365 --help=recursive display the short help of all the included packages 1366 -V, --version display version information and exit 1367 -q, --quiet, --silent do not print \`checking ...' messages 1368 --cache-file=FILE cache test results in FILE [disabled] 1369 -C, --config-cache alias for \`--cache-file=config.cache' 1370 -n, --no-create do not create output files 1371 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1372 1373Installation directories: 1374 --prefix=PREFIX install architecture-independent files in PREFIX 1375 [$ac_default_prefix] 1376 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1377 [PREFIX] 1378 1379By default, \`make install' will install all the files in 1380\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1381an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1382for instance \`--prefix=\$HOME'. 1383 1384For better control, use the options below. 1385 1386Fine tuning of the installation directories: 1387 --bindir=DIR user executables [EPREFIX/bin] 1388 --sbindir=DIR system admin executables [EPREFIX/sbin] 1389 --libexecdir=DIR program executables [EPREFIX/libexec] 1390 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1391 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1392 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1393 --libdir=DIR object code libraries [EPREFIX/lib] 1394 --includedir=DIR C header files [PREFIX/include] 1395 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1396 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1397 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1398 --infodir=DIR info documentation [DATAROOTDIR/info] 1399 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1400 --mandir=DIR man documentation [DATAROOTDIR/man] 1401 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1402 --htmldir=DIR html documentation [DOCDIR] 1403 --dvidir=DIR dvi documentation [DOCDIR] 1404 --pdfdir=DIR pdf documentation [DOCDIR] 1405 --psdir=DIR ps documentation [DOCDIR] 1406_ACEOF 1407 1408 cat <<\_ACEOF 1409 1410System types: 1411 --build=BUILD configure for building on BUILD [guessed] 1412 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1413 --target=TARGET configure for building compilers for TARGET [HOST] 1414_ACEOF 1415fi 1416 1417if test -n "$ac_init_help"; then 1418 1419 cat <<\_ACEOF 1420 1421Optional Features: 1422 --disable-option-checking ignore unrecognized --enable/--with options 1423 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1424 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1425 --enable-layout=LAYOUT 1426 --disable-util-dso disable DSO build of modular components (crypto, 1427 dbd, dbm, ldap) 1428 1429Optional Packages: 1430 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1431 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1432 --with-apr=PATH prefix for installed APR or the full path to 1433 apr-config 1434 --with-apr-iconv=DIR relative path to apr-iconv source 1435 --with-crypto enable crypto support 1436 --with-openssl=DIR specify location of OpenSSL 1437 --with-nss=DIR specify location of NSS 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-freetds=DIR specify FreeTDS location 1467 --with-odbc=DIR specify ODBC location 1468 --with-expat=DIR specify Expat location, or 'builtin' 1469 --with-iconv=DIR path to iconv installation 1470 1471Some influential environment variables: 1472 CC C compiler command 1473 CFLAGS C compiler flags 1474 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1475 nonstandard directory <lib dir> 1476 LIBS libraries to pass to the linker, e.g. -l<library> 1477 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1478 you have headers in a nonstandard directory <include dir> 1479 CPP C preprocessor 1480 1481Use these variables to override the choices made by `configure' or to help 1482it to find libraries and programs with nonstandard names/locations. 1483 1484Report bugs to the package provider. 1485_ACEOF 1486ac_status=$? 1487fi 1488 1489if test "$ac_init_help" = "recursive"; then 1490 # If there are subdirs, report their specific --help. 1491 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1492 test -d "$ac_dir" || 1493 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1494 continue 1495 ac_builddir=. 1496 1497case "$ac_dir" in 1498.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1499*) 1500 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1501 # A ".." for each directory in $ac_dir_suffix. 1502 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1503 case $ac_top_builddir_sub in 1504 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1505 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1506 esac ;; 1507esac 1508ac_abs_top_builddir=$ac_pwd 1509ac_abs_builddir=$ac_pwd$ac_dir_suffix 1510# for backward compatibility: 1511ac_top_builddir=$ac_top_build_prefix 1512 1513case $srcdir in 1514 .) # We are building in place. 1515 ac_srcdir=. 1516 ac_top_srcdir=$ac_top_builddir_sub 1517 ac_abs_top_srcdir=$ac_pwd ;; 1518 [\\/]* | ?:[\\/]* ) # Absolute name. 1519 ac_srcdir=$srcdir$ac_dir_suffix; 1520 ac_top_srcdir=$srcdir 1521 ac_abs_top_srcdir=$srcdir ;; 1522 *) # Relative name. 1523 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1524 ac_top_srcdir=$ac_top_build_prefix$srcdir 1525 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1526esac 1527ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1528 1529 cd "$ac_dir" || { ac_status=$?; continue; } 1530 # Check for guested configure. 1531 if test -f "$ac_srcdir/configure.gnu"; then 1532 echo && 1533 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1534 elif test -f "$ac_srcdir/configure"; then 1535 echo && 1536 $SHELL "$ac_srcdir/configure" --help=recursive 1537 else 1538 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1539 fi || ac_status=$? 1540 cd "$ac_pwd" || { ac_status=$?; break; } 1541 done 1542fi 1543 1544test -n "$ac_init_help" && exit $ac_status 1545if $ac_init_version; then 1546 cat <<\_ACEOF 1547configure 1548generated by GNU Autoconf 2.69 1549 1550Copyright (C) 2012 Free Software Foundation, Inc. 1551This configure script is free software; the Free Software Foundation 1552gives unlimited permission to copy, distribute and modify it. 1553_ACEOF 1554 exit 1555fi 1556 1557## ------------------------ ## 1558## Autoconf initialization. ## 1559## ------------------------ ## 1560 1561# ac_fn_c_try_compile LINENO 1562# -------------------------- 1563# Try to compile conftest.$ac_ext, and return whether this succeeded. 1564ac_fn_c_try_compile () 1565{ 1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1567 rm -f conftest.$ac_objext 1568 if { { ac_try="$ac_compile" 1569case "(($ac_try" in 1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1571 *) ac_try_echo=$ac_try;; 1572esac 1573eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1574$as_echo "$ac_try_echo"; } >&5 1575 (eval "$ac_compile") 2>conftest.err 1576 ac_status=$? 1577 if test -s conftest.err; then 1578 grep -v '^ *+' conftest.err >conftest.er1 1579 cat conftest.er1 >&5 1580 mv -f conftest.er1 conftest.err 1581 fi 1582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1583 test $ac_status = 0; } && { 1584 test -z "$ac_c_werror_flag" || 1585 test ! -s conftest.err 1586 } && test -s conftest.$ac_objext; then : 1587 ac_retval=0 1588else 1589 $as_echo "$as_me: failed program was:" >&5 1590sed 's/^/| /' conftest.$ac_ext >&5 1591 1592 ac_retval=1 1593fi 1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1595 as_fn_set_status $ac_retval 1596 1597} # ac_fn_c_try_compile 1598 1599# ac_fn_c_try_link LINENO 1600# ----------------------- 1601# Try to link conftest.$ac_ext, and return whether this succeeded. 1602ac_fn_c_try_link () 1603{ 1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1605 rm -f conftest.$ac_objext conftest$ac_exeext 1606 if { { ac_try="$ac_link" 1607case "(($ac_try" in 1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1609 *) ac_try_echo=$ac_try;; 1610esac 1611eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1612$as_echo "$ac_try_echo"; } >&5 1613 (eval "$ac_link") 2>conftest.err 1614 ac_status=$? 1615 if test -s conftest.err; then 1616 grep -v '^ *+' conftest.err >conftest.er1 1617 cat conftest.er1 >&5 1618 mv -f conftest.er1 conftest.err 1619 fi 1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1621 test $ac_status = 0; } && { 1622 test -z "$ac_c_werror_flag" || 1623 test ! -s conftest.err 1624 } && test -s conftest$ac_exeext && { 1625 test "$cross_compiling" = yes || 1626 test -x conftest$ac_exeext 1627 }; then : 1628 ac_retval=0 1629else 1630 $as_echo "$as_me: failed program was:" >&5 1631sed 's/^/| /' conftest.$ac_ext >&5 1632 1633 ac_retval=1 1634fi 1635 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1636 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1637 # interfere with the next link command; also delete a directory that is 1638 # left behind by Apple's compiler. We do this before executing the actions. 1639 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1641 as_fn_set_status $ac_retval 1642 1643} # ac_fn_c_try_link 1644 1645# ac_fn_c_try_cpp LINENO 1646# ---------------------- 1647# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1648ac_fn_c_try_cpp () 1649{ 1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1651 if { { ac_try="$ac_cpp conftest.$ac_ext" 1652case "(($ac_try" in 1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1654 *) ac_try_echo=$ac_try;; 1655esac 1656eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1657$as_echo "$ac_try_echo"; } >&5 1658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1659 ac_status=$? 1660 if test -s conftest.err; then 1661 grep -v '^ *+' conftest.err >conftest.er1 1662 cat conftest.er1 >&5 1663 mv -f conftest.er1 conftest.err 1664 fi 1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1666 test $ac_status = 0; } > conftest.i && { 1667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1668 test ! -s conftest.err 1669 }; then : 1670 ac_retval=0 1671else 1672 $as_echo "$as_me: failed program was:" >&5 1673sed 's/^/| /' conftest.$ac_ext >&5 1674 1675 ac_retval=1 1676fi 1677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1678 as_fn_set_status $ac_retval 1679 1680} # ac_fn_c_try_cpp 1681 1682# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1683# ------------------------------------------------------- 1684# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1685# the include files in INCLUDES and setting the cache variable VAR 1686# accordingly. 1687ac_fn_c_check_header_mongrel () 1688{ 1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1690 if eval \${$3+:} false; then : 1691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1692$as_echo_n "checking for $2... " >&6; } 1693if eval \${$3+:} false; then : 1694 $as_echo_n "(cached) " >&6 1695fi 1696eval ac_res=\$$3 1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1698$as_echo "$ac_res" >&6; } 1699else 1700 # Is the header compilable? 1701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1702$as_echo_n "checking $2 usability... " >&6; } 1703cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1704/* end confdefs.h. */ 1705$4 1706#include <$2> 1707_ACEOF 1708if ac_fn_c_try_compile "$LINENO"; then : 1709 ac_header_compiler=yes 1710else 1711 ac_header_compiler=no 1712fi 1713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1715$as_echo "$ac_header_compiler" >&6; } 1716 1717# Is the header present? 1718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1719$as_echo_n "checking $2 presence... " >&6; } 1720cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1721/* end confdefs.h. */ 1722#include <$2> 1723_ACEOF 1724if ac_fn_c_try_cpp "$LINENO"; then : 1725 ac_header_preproc=yes 1726else 1727 ac_header_preproc=no 1728fi 1729rm -f conftest.err conftest.i conftest.$ac_ext 1730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1731$as_echo "$ac_header_preproc" >&6; } 1732 1733# So? What about this header? 1734case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1735 yes:no: ) 1736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1737$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1739$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1740 ;; 1741 no:yes:* ) 1742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1743$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1745$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1747$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1749$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1751$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1752 ;; 1753esac 1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1755$as_echo_n "checking for $2... " >&6; } 1756if eval \${$3+:} false; then : 1757 $as_echo_n "(cached) " >&6 1758else 1759 eval "$3=\$ac_header_compiler" 1760fi 1761eval ac_res=\$$3 1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1763$as_echo "$ac_res" >&6; } 1764fi 1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1766 1767} # ac_fn_c_check_header_mongrel 1768 1769# ac_fn_c_try_run LINENO 1770# ---------------------- 1771# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1772# that executables *can* be run. 1773ac_fn_c_try_run () 1774{ 1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1776 if { { ac_try="$ac_link" 1777case "(($ac_try" in 1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1779 *) ac_try_echo=$ac_try;; 1780esac 1781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1782$as_echo "$ac_try_echo"; } >&5 1783 (eval "$ac_link") 2>&5 1784 ac_status=$? 1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1786 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1787 { { case "(($ac_try" in 1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1789 *) ac_try_echo=$ac_try;; 1790esac 1791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1792$as_echo "$ac_try_echo"; } >&5 1793 (eval "$ac_try") 2>&5 1794 ac_status=$? 1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1796 test $ac_status = 0; }; }; then : 1797 ac_retval=0 1798else 1799 $as_echo "$as_me: program exited with status $ac_status" >&5 1800 $as_echo "$as_me: failed program was:" >&5 1801sed 's/^/| /' conftest.$ac_ext >&5 1802 1803 ac_retval=$ac_status 1804fi 1805 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1807 as_fn_set_status $ac_retval 1808 1809} # ac_fn_c_try_run 1810 1811# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1812# ------------------------------------------------------- 1813# Tests whether HEADER exists and can be compiled using the include files in 1814# INCLUDES, setting the cache variable VAR accordingly. 1815ac_fn_c_check_header_compile () 1816{ 1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1819$as_echo_n "checking for $2... " >&6; } 1820if eval \${$3+:} false; then : 1821 $as_echo_n "(cached) " >&6 1822else 1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1824/* end confdefs.h. */ 1825$4 1826#include <$2> 1827_ACEOF 1828if ac_fn_c_try_compile "$LINENO"; then : 1829 eval "$3=yes" 1830else 1831 eval "$3=no" 1832fi 1833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1834fi 1835eval ac_res=\$$3 1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1837$as_echo "$ac_res" >&6; } 1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1839 1840} # ac_fn_c_check_header_compile 1841 1842# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1843# --------------------------------------------- 1844# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1845# accordingly. 1846ac_fn_c_check_decl () 1847{ 1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1849 as_decl_name=`echo $2|sed 's/ *(.*//'` 1850 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1852$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1853if eval \${$3+:} false; then : 1854 $as_echo_n "(cached) " >&6 1855else 1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1857/* end confdefs.h. */ 1858$4 1859int 1860main () 1861{ 1862#ifndef $as_decl_name 1863#ifdef __cplusplus 1864 (void) $as_decl_use; 1865#else 1866 (void) $as_decl_name; 1867#endif 1868#endif 1869 1870 ; 1871 return 0; 1872} 1873_ACEOF 1874if ac_fn_c_try_compile "$LINENO"; then : 1875 eval "$3=yes" 1876else 1877 eval "$3=no" 1878fi 1879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1880fi 1881eval ac_res=\$$3 1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1883$as_echo "$ac_res" >&6; } 1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1885 1886} # ac_fn_c_check_decl 1887 1888# ac_fn_c_check_func LINENO FUNC VAR 1889# ---------------------------------- 1890# Tests whether FUNC exists, setting the cache variable VAR accordingly 1891ac_fn_c_check_func () 1892{ 1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1895$as_echo_n "checking for $2... " >&6; } 1896if eval \${$3+:} false; then : 1897 $as_echo_n "(cached) " >&6 1898else 1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1900/* end confdefs.h. */ 1901/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1902 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1903#define $2 innocuous_$2 1904 1905/* System header to define __stub macros and hopefully few prototypes, 1906 which can conflict with char $2 (); below. 1907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1908 <limits.h> exists even on freestanding compilers. */ 1909 1910#ifdef __STDC__ 1911# include <limits.h> 1912#else 1913# include <assert.h> 1914#endif 1915 1916#undef $2 1917 1918/* Override any GCC internal prototype to avoid an error. 1919 Use char because int might match the return type of a GCC 1920 builtin and then its argument prototype would still apply. */ 1921#ifdef __cplusplus 1922extern "C" 1923#endif 1924char $2 (); 1925/* The GNU C library defines this for functions which it implements 1926 to always fail with ENOSYS. Some functions are actually named 1927 something starting with __ and the normal name is an alias. */ 1928#if defined __stub_$2 || defined __stub___$2 1929choke me 1930#endif 1931 1932int 1933main () 1934{ 1935return $2 (); 1936 ; 1937 return 0; 1938} 1939_ACEOF 1940if ac_fn_c_try_link "$LINENO"; then : 1941 eval "$3=yes" 1942else 1943 eval "$3=no" 1944fi 1945rm -f core conftest.err conftest.$ac_objext \ 1946 conftest$ac_exeext conftest.$ac_ext 1947fi 1948eval ac_res=\$$3 1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1950$as_echo "$ac_res" >&6; } 1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1952 1953} # ac_fn_c_check_func 1954cat >config.log <<_ACEOF 1955This file contains any messages produced by compilers while 1956running configure, to aid debugging if configure makes a mistake. 1957 1958It was created by $as_me, which was 1959generated by GNU Autoconf 2.69. Invocation command line was 1960 1961 $ $0 $@ 1962 1963_ACEOF 1964exec 5>>config.log 1965{ 1966cat <<_ASUNAME 1967## --------- ## 1968## Platform. ## 1969## --------- ## 1970 1971hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1972uname -m = `(uname -m) 2>/dev/null || echo unknown` 1973uname -r = `(uname -r) 2>/dev/null || echo unknown` 1974uname -s = `(uname -s) 2>/dev/null || echo unknown` 1975uname -v = `(uname -v) 2>/dev/null || echo unknown` 1976 1977/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1978/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1979 1980/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1981/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1982/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1983/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1984/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1985/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1986/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1987 1988_ASUNAME 1989 1990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1991for as_dir in $PATH 1992do 1993 IFS=$as_save_IFS 1994 test -z "$as_dir" && as_dir=. 1995 $as_echo "PATH: $as_dir" 1996 done 1997IFS=$as_save_IFS 1998 1999} >&5 2000 2001cat >&5 <<_ACEOF 2002 2003 2004## ----------- ## 2005## Core tests. ## 2006## ----------- ## 2007 2008_ACEOF 2009 2010 2011# Keep a trace of the command line. 2012# Strip out --no-create and --no-recursion so they do not pile up. 2013# Strip out --silent because we don't want to record it for future runs. 2014# Also quote any args containing shell meta-characters. 2015# Make two passes to allow for proper duplicate-argument suppression. 2016ac_configure_args= 2017ac_configure_args0= 2018ac_configure_args1= 2019ac_must_keep_next=false 2020for ac_pass in 1 2 2021do 2022 for ac_arg 2023 do 2024 case $ac_arg in 2025 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2027 | -silent | --silent | --silen | --sile | --sil) 2028 continue ;; 2029 *\'*) 2030 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2031 esac 2032 case $ac_pass in 2033 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2034 2) 2035 as_fn_append ac_configure_args1 " '$ac_arg'" 2036 if test $ac_must_keep_next = true; then 2037 ac_must_keep_next=false # Got value, back to normal. 2038 else 2039 case $ac_arg in 2040 *=* | --config-cache | -C | -disable-* | --disable-* \ 2041 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2042 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2043 | -with-* | --with-* | -without-* | --without-* | --x) 2044 case "$ac_configure_args0 " in 2045 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2046 esac 2047 ;; 2048 -* ) ac_must_keep_next=true ;; 2049 esac 2050 fi 2051 as_fn_append ac_configure_args " '$ac_arg'" 2052 ;; 2053 esac 2054 done 2055done 2056{ ac_configure_args0=; unset ac_configure_args0;} 2057{ ac_configure_args1=; unset ac_configure_args1;} 2058 2059# When interrupted or exit'd, cleanup temporary files, and complete 2060# config.log. We remove comments because anyway the quotes in there 2061# would cause problems or look ugly. 2062# WARNING: Use '\'' to represent an apostrophe within the trap. 2063# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2064trap 'exit_status=$? 2065 # Save into config.log some information that might help in debugging. 2066 { 2067 echo 2068 2069 $as_echo "## ---------------- ## 2070## Cache variables. ## 2071## ---------------- ##" 2072 echo 2073 # The following way of writing the cache mishandles newlines in values, 2074( 2075 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2076 eval ac_val=\$$ac_var 2077 case $ac_val in #( 2078 *${as_nl}*) 2079 case $ac_var in #( 2080 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2081$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2082 esac 2083 case $ac_var in #( 2084 _ | IFS | as_nl) ;; #( 2085 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2086 *) { eval $ac_var=; unset $ac_var;} ;; 2087 esac ;; 2088 esac 2089 done 2090 (set) 2>&1 | 2091 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2092 *${as_nl}ac_space=\ *) 2093 sed -n \ 2094 "s/'\''/'\''\\\\'\'''\''/g; 2095 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2096 ;; #( 2097 *) 2098 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2099 ;; 2100 esac | 2101 sort 2102) 2103 echo 2104 2105 $as_echo "## ----------------- ## 2106## Output variables. ## 2107## ----------------- ##" 2108 echo 2109 for ac_var in $ac_subst_vars 2110 do 2111 eval ac_val=\$$ac_var 2112 case $ac_val in 2113 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2114 esac 2115 $as_echo "$ac_var='\''$ac_val'\''" 2116 done | sort 2117 echo 2118 2119 if test -n "$ac_subst_files"; then 2120 $as_echo "## ------------------- ## 2121## File substitutions. ## 2122## ------------------- ##" 2123 echo 2124 for ac_var in $ac_subst_files 2125 do 2126 eval ac_val=\$$ac_var 2127 case $ac_val in 2128 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2129 esac 2130 $as_echo "$ac_var='\''$ac_val'\''" 2131 done | sort 2132 echo 2133 fi 2134 2135 if test -s confdefs.h; then 2136 $as_echo "## ----------- ## 2137## confdefs.h. ## 2138## ----------- ##" 2139 echo 2140 cat confdefs.h 2141 echo 2142 fi 2143 test "$ac_signal" != 0 && 2144 $as_echo "$as_me: caught signal $ac_signal" 2145 $as_echo "$as_me: exit $exit_status" 2146 } >&5 2147 rm -f core *.core core.conftest.* && 2148 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2149 exit $exit_status 2150' 0 2151for ac_signal in 1 2 13 15; do 2152 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2153done 2154ac_signal=0 2155 2156# confdefs.h avoids OS command line length limits that DEFS can exceed. 2157rm -f -r conftest* confdefs.h 2158 2159$as_echo "/* confdefs.h */" > confdefs.h 2160 2161# Predefined preprocessor variables. 2162 2163cat >>confdefs.h <<_ACEOF 2164#define PACKAGE_NAME "$PACKAGE_NAME" 2165_ACEOF 2166 2167cat >>confdefs.h <<_ACEOF 2168#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2169_ACEOF 2170 2171cat >>confdefs.h <<_ACEOF 2172#define PACKAGE_VERSION "$PACKAGE_VERSION" 2173_ACEOF 2174 2175cat >>confdefs.h <<_ACEOF 2176#define PACKAGE_STRING "$PACKAGE_STRING" 2177_ACEOF 2178 2179cat >>confdefs.h <<_ACEOF 2180#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2181_ACEOF 2182 2183cat >>confdefs.h <<_ACEOF 2184#define PACKAGE_URL "$PACKAGE_URL" 2185_ACEOF 2186 2187 2188# Let the site file select an alternate cache file if it wants to. 2189# Prefer an explicitly selected file to automatically selected ones. 2190ac_site_file1=NONE 2191ac_site_file2=NONE 2192if test -n "$CONFIG_SITE"; then 2193 # We do not want a PATH search for config.site. 2194 case $CONFIG_SITE in #(( 2195 -*) ac_site_file1=./$CONFIG_SITE;; 2196 */*) ac_site_file1=$CONFIG_SITE;; 2197 *) ac_site_file1=./$CONFIG_SITE;; 2198 esac 2199elif test "x$prefix" != xNONE; then 2200 ac_site_file1=$prefix/share/config.site 2201 ac_site_file2=$prefix/etc/config.site 2202else 2203 ac_site_file1=$ac_default_prefix/share/config.site 2204 ac_site_file2=$ac_default_prefix/etc/config.site 2205fi 2206for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2207do 2208 test "x$ac_site_file" = xNONE && continue 2209 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2210 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2211$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2212 sed 's/^/| /' "$ac_site_file" >&5 2213 . "$ac_site_file" \ 2214 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2215$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2216as_fn_error $? "failed to load site script $ac_site_file 2217See \`config.log' for more details" "$LINENO" 5; } 2218 fi 2219done 2220 2221if test -r "$cache_file"; then 2222 # Some versions of bash will fail to source /dev/null (special files 2223 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2224 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2225 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2226$as_echo "$as_me: loading cache $cache_file" >&6;} 2227 case $cache_file in 2228 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2229 *) . "./$cache_file";; 2230 esac 2231 fi 2232else 2233 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2234$as_echo "$as_me: creating cache $cache_file" >&6;} 2235 >$cache_file 2236fi 2237 2238# Check that the precious variables saved in the cache have kept the same 2239# value. 2240ac_cache_corrupted=false 2241for ac_var in $ac_precious_vars; do 2242 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2243 eval ac_new_set=\$ac_env_${ac_var}_set 2244 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2245 eval ac_new_val=\$ac_env_${ac_var}_value 2246 case $ac_old_set,$ac_new_set in 2247 set,) 2248 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2249$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2250 ac_cache_corrupted=: ;; 2251 ,set) 2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2253$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2254 ac_cache_corrupted=: ;; 2255 ,);; 2256 *) 2257 if test "x$ac_old_val" != "x$ac_new_val"; then 2258 # differences in whitespace do not lead to failure. 2259 ac_old_val_w=`echo x $ac_old_val` 2260 ac_new_val_w=`echo x $ac_new_val` 2261 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2262 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2263$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2264 ac_cache_corrupted=: 2265 else 2266 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2267$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2268 eval $ac_var=\$ac_old_val 2269 fi 2270 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2271$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2272 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2273$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2274 fi;; 2275 esac 2276 # Pass precious variables to config.status. 2277 if test "$ac_new_set" = set; then 2278 case $ac_new_val in 2279 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2280 *) ac_arg=$ac_var=$ac_new_val ;; 2281 esac 2282 case " $ac_configure_args " in 2283 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2284 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2285 esac 2286 fi 2287done 2288if $ac_cache_corrupted; then 2289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2290$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2292$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2293 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2294fi 2295## -------------------- ## 2296## Main body of script. ## 2297## -------------------- ## 2298 2299ac_ext=c 2300ac_cpp='$CPP $CPPFLAGS' 2301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2303ac_compiler_gnu=$ac_cv_c_compiler_gnu 2304 2305 2306 2307ac_config_headers="$ac_config_headers include/private/apu_config.h" 2308 2309ac_aux_dir= 2310for ac_dir in build "$srcdir"/build; do 2311 if test -f "$ac_dir/install-sh"; then 2312 ac_aux_dir=$ac_dir 2313 ac_install_sh="$ac_aux_dir/install-sh -c" 2314 break 2315 elif test -f "$ac_dir/install.sh"; then 2316 ac_aux_dir=$ac_dir 2317 ac_install_sh="$ac_aux_dir/install.sh -c" 2318 break 2319 elif test -f "$ac_dir/shtool"; then 2320 ac_aux_dir=$ac_dir 2321 ac_install_sh="$ac_aux_dir/shtool install -c" 2322 break 2323 fi 2324done 2325if test -z "$ac_aux_dir"; then 2326 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5 2327fi 2328 2329# These three variables are undocumented and unsupported, 2330# and are intended to be withdrawn in a future Autoconf release. 2331# They can cause serious problems if a builder's source tree is in a directory 2332# whose full name contains unusual characters. 2333ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2334ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2335ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 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 rm -f config.nice 2514 cat >config.nice<<EOF 2515#! /bin/sh 2516# 2517# Created by configure 2518 2519EOF 2520 if test -n "$CC"; then 2521 echo "CC=\"$CC\"; export CC" >> config.nice 2522 fi 2523 if test -n "$CFLAGS"; then 2524 echo "CFLAGS=\"$CFLAGS\"; export CFLAGS" >> config.nice 2525 fi 2526 if test -n "$CPPFLAGS"; then 2527 echo "CPPFLAGS=\"$CPPFLAGS\"; export CPPFLAGS" >> config.nice 2528 fi 2529 if test -n "$LDFLAGS"; then 2530 echo "LDFLAGS=\"$LDFLAGS\"; export LDFLAGS" >> config.nice 2531 fi 2532 if test -n "$LTFLAGS"; then 2533 echo "LTFLAGS=\"$LTFLAGS\"; export LTFLAGS" >> config.nice 2534 fi 2535 if test -n "$LIBS"; then 2536 echo "LIBS=\"$LIBS\"; export LIBS" >> config.nice 2537 fi 2538 if test -n "$INCLUDES"; then 2539 echo "INCLUDES=\"$INCLUDES\"; export INCLUDES" >> config.nice 2540 fi 2541 if test -n "$NOTEST_CFLAGS"; then 2542 echo "NOTEST_CFLAGS=\"$NOTEST_CFLAGS\"; export NOTEST_CFLAGS" >> config.nice 2543 fi 2544 if test -n "$NOTEST_CPPFLAGS"; then 2545 echo "NOTEST_CPPFLAGS=\"$NOTEST_CPPFLAGS\"; export NOTEST_CPPFLAGS" >> config.nice 2546 fi 2547 if test -n "$NOTEST_LDFLAGS"; then 2548 echo "NOTEST_LDFLAGS=\"$NOTEST_LDFLAGS\"; export NOTEST_LDFLAGS" >> config.nice 2549 fi 2550 if test -n "$NOTEST_LIBS"; then 2551 echo "NOTEST_LIBS=\"$NOTEST_LIBS\"; export NOTEST_LIBS" >> config.nice 2552 fi 2553 2554 # Retrieve command-line arguments. 2555 eval "set x $0 $ac_configure_args" 2556 shift 2557 2558 for arg 2559 do 2560 2561ap_last= 2562ap_cur="$arg" 2563while test "x${ap_cur}" != "x${ap_last}"; 2564do 2565 ap_last="${ap_cur}" 2566 ap_cur=`eval "echo ${ap_cur}"` 2567done 2568arg="${ap_cur}" 2569 2570 echo "\"$arg\" \\" >> config.nice 2571 done 2572 echo '"$@"' >> config.nice 2573 chmod +x config.nice 2574 2575 2576 2577abs_srcdir=`(cd $srcdir && pwd)` 2578abs_builddir=`pwd` 2579 2580if test "$abs_builddir" != "$abs_srcdir"; then 2581 USE_VPATH=1 2582 APU_CONFIG_LOCATION=build 2583else 2584 APU_CONFIG_LOCATION=source 2585fi 2586 2587 2588 2589# Make sure we can run config.sub. 2590$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2591 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2592 2593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2594$as_echo_n "checking build system type... " >&6; } 2595if ${ac_cv_build+:} false; then : 2596 $as_echo_n "(cached) " >&6 2597else 2598 ac_build_alias=$build_alias 2599test "x$ac_build_alias" = x && 2600 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2601test "x$ac_build_alias" = x && 2602 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2603ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2604 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2605 2606fi 2607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2608$as_echo "$ac_cv_build" >&6; } 2609case $ac_cv_build in 2610*-*-*) ;; 2611*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2612esac 2613build=$ac_cv_build 2614ac_save_IFS=$IFS; IFS='-' 2615set x $ac_cv_build 2616shift 2617build_cpu=$1 2618build_vendor=$2 2619shift; shift 2620# Remember, the first character of IFS is used to create $*, 2621# except with old shells: 2622build_os=$* 2623IFS=$ac_save_IFS 2624case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2625 2626 2627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2628$as_echo_n "checking host system type... " >&6; } 2629if ${ac_cv_host+:} false; then : 2630 $as_echo_n "(cached) " >&6 2631else 2632 if test "x$host_alias" = x; then 2633 ac_cv_host=$ac_cv_build 2634else 2635 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2636 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2637fi 2638 2639fi 2640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2641$as_echo "$ac_cv_host" >&6; } 2642case $ac_cv_host in 2643*-*-*) ;; 2644*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2645esac 2646host=$ac_cv_host 2647ac_save_IFS=$IFS; IFS='-' 2648set x $ac_cv_host 2649shift 2650host_cpu=$1 2651host_vendor=$2 2652shift; shift 2653# Remember, the first character of IFS is used to create $*, 2654# except with old shells: 2655host_os=$* 2656IFS=$ac_save_IFS 2657case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2658 2659 2660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2661$as_echo_n "checking target system type... " >&6; } 2662if ${ac_cv_target+:} false; then : 2663 $as_echo_n "(cached) " >&6 2664else 2665 if test "x$target_alias" = x; then 2666 ac_cv_target=$ac_cv_host 2667else 2668 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2669 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2670fi 2671 2672fi 2673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2674$as_echo "$ac_cv_target" >&6; } 2675case $ac_cv_target in 2676*-*-*) ;; 2677*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2678esac 2679target=$ac_cv_target 2680ac_save_IFS=$IFS; IFS='-' 2681set x $ac_cv_target 2682shift 2683target_cpu=$1 2684target_vendor=$2 2685shift; shift 2686# Remember, the first character of IFS is used to create $*, 2687# except with old shells: 2688target_os=$* 2689IFS=$ac_save_IFS 2690case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2691 2692 2693# The aliases save the names the user supplied, while $host etc. 2694# will get canonicalized. 2695test -n "$target_alias" && 2696 test "$program_prefix$program_suffix$program_transform_name" = \ 2697 NONENONEs,x,x, && 2698 program_prefix=${target_alias}- 2699 2700 2701# Find a good install program. We prefer a C program (faster), 2702# so one script is as good as another. But avoid the broken or 2703# incompatible versions: 2704# SysV /etc/install, /usr/sbin/install 2705# SunOS /usr/etc/install 2706# IRIX /sbin/install 2707# AIX /bin/install 2708# AmigaOS /C/install, which installs bootblocks on floppy discs 2709# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2710# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2711# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2712# OS/2's system install, which has a completely different semantic 2713# ./install, which can be erroneously created by make from ./install.sh. 2714# Reject install programs that cannot install multiple files. 2715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2716$as_echo_n "checking for a BSD-compatible install... " >&6; } 2717if test -z "$INSTALL"; then 2718if ${ac_cv_path_install+:} false; then : 2719 $as_echo_n "(cached) " >&6 2720else 2721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2722for as_dir in $PATH 2723do 2724 IFS=$as_save_IFS 2725 test -z "$as_dir" && as_dir=. 2726 # Account for people who put trailing slashes in PATH elements. 2727case $as_dir/ in #(( 2728 ./ | .// | /[cC]/* | \ 2729 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2730 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2731 /usr/ucb/* ) ;; 2732 *) 2733 # OSF1 and SCO ODT 3.0 have their own names for install. 2734 # Don't use installbsd from OSF since it installs stuff as root 2735 # by default. 2736 for ac_prog in ginstall scoinst install; do 2737 for ac_exec_ext in '' $ac_executable_extensions; do 2738 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2739 if test $ac_prog = install && 2740 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2741 # AIX install. It has an incompatible calling convention. 2742 : 2743 elif test $ac_prog = install && 2744 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2745 # program-specific install script used by HP pwplus--don't use. 2746 : 2747 else 2748 rm -rf conftest.one conftest.two conftest.dir 2749 echo one > conftest.one 2750 echo two > conftest.two 2751 mkdir conftest.dir 2752 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2753 test -s conftest.one && test -s conftest.two && 2754 test -s conftest.dir/conftest.one && 2755 test -s conftest.dir/conftest.two 2756 then 2757 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2758 break 3 2759 fi 2760 fi 2761 fi 2762 done 2763 done 2764 ;; 2765esac 2766 2767 done 2768IFS=$as_save_IFS 2769 2770rm -rf conftest.one conftest.two conftest.dir 2771 2772fi 2773 if test "${ac_cv_path_install+set}" = set; then 2774 INSTALL=$ac_cv_path_install 2775 else 2776 # As a last resort, use the slow shell script. Don't cache a 2777 # value for INSTALL within a source directory, because that will 2778 # break other packages using the cache if that directory is 2779 # removed, or if the value is a relative name. 2780 INSTALL=$ac_install_sh 2781 fi 2782fi 2783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2784$as_echo "$INSTALL" >&6; } 2785 2786# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2787# It thinks the first close brace ends the variable substitution. 2788test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2789 2790test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2791 2792test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2793 2794 2795# Use -no-install or -no-fast-install to link the test 2796# programs on all platforms but Darwin, where it would cause 2797# the programs to be linked against installed versions of 2798# libapr instead of those just built. 2799case $host in 2800 *-apple-darwin*) 2801 LT_NO_INSTALL="" 2802 ;; 2803 *-mingw*) 2804 LT_NO_INSTALL="-no-fast-install" 2805 ;; 2806 *) 2807 LT_NO_INSTALL="-no-install" 2808 ;; 2809esac 2810 2811 2812top_builddir="$abs_builddir" 2813 2814 2815 2816 2817 2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mkdir -p" >&5 2819$as_echo_n "checking for working mkdir -p... " >&6; } 2820if ${ac_cv_mkdir_p+:} false; then : 2821 $as_echo_n "(cached) " >&6 2822else 2823 2824 test -d conftestdir && rm -rf conftestdir 2825 mkdir -p conftestdir/somedir >/dev/null 2>&1 2826 if test -d conftestdir/somedir; then 2827 ac_cv_mkdir_p=yes 2828 else 2829 ac_cv_mkdir_p=no 2830 fi 2831 rm -rf conftestdir 2832 2833fi 2834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mkdir_p" >&5 2835$as_echo "$ac_cv_mkdir_p" >&6; } 2836 if test "$ac_cv_mkdir_p" = "yes"; then 2837 mkdir_p="mkdir -p" 2838 else 2839 mkdir_p="$abs_srcdir/build/mkdir.sh" 2840 fi 2841 2842 2843get_version="$abs_srcdir/build/get-version.sh" 2844version_hdr="$abs_srcdir/include/apu_version.h" 2845APRUTIL_MAJOR_VERSION="`$get_version major $version_hdr APU`" 2846APRUTIL_DOTTED_VERSION="`$get_version all $version_hdr APU`" 2847 2848APU_LTVERSION="-version-info `$get_version libtool $version_hdr APU`" 2849 2850 2851 2852 2853 2854echo "APR-util Version: ${APRUTIL_DOTTED_VERSION}" 2855 2856 2857# Check whether --enable-layout was given. 2858if test "${enable_layout+set}" = set; then : 2859 enableval=$enable_layout; 2860 LAYOUT=$enableval 2861 2862fi 2863 2864 2865if test -z "$LAYOUT"; then 2866 LAYOUT="apr-util" 2867fi 2868 2869 if test ! -f $srcdir/config.layout; then 2870 echo "** Error: Layout file $srcdir/config.layout not found" 2871 echo "** Error: Cannot use undefined layout '$LAYOUT'" 2872 exit 1 2873 fi 2874 # Catch layout names including a slash which will otherwise 2875 # confuse the heck out of the sed script. 2876 case $LAYOUT in 2877 */*) 2878 echo "** Error: $LAYOUT is not a valid layout name" 2879 exit 1 ;; 2880 esac 2881 pldconf=./config.pld 2882 2883 sed -e "1s/[ ]*<[lL]ayout[ ]*$LAYOUT[ ]*>[ ]*//;1t" \ 2884 -e "1,/[ ]*<[lL]ayout[ ]*$LAYOUT[ ]*>[ ]*/d" \ 2885 -e '/[ ]*<\/Layout>[ ]*/,$d' \ 2886 -e "s/^[ ]*//g" \ 2887 -e "s/:[ ]*/=\'/g" \ 2888 -e "s/[ ]*$/'/g" \ 2889 $srcdir/config.layout > $pldconf 2890 layout_name=$LAYOUT 2891 if test ! -s $pldconf; then 2892 echo "** Error: unable to find layout $layout_name" 2893 exit 1 2894 fi 2895 . $pldconf 2896 rm $pldconf 2897 for var in prefix exec_prefix bindir sbindir libexecdir mandir \ 2898 sysconfdir datadir includedir localstatedir runtimedir \ 2899 logfiledir libdir installbuilddir libsuffix ; do 2900 eval "val=\"\$$var\"" 2901 case $val in 2902 *+) 2903 val=`echo $val | sed -e 's;\+$;;'` 2904 eval "$var=\"\$val\"" 2905 autosuffix=yes 2906 ;; 2907 *) 2908 autosuffix=no 2909 ;; 2910 esac 2911 val=`echo $val | sed -e 's:\(.\)/*$:\1:'` 2912 val=`echo $val | sed -e 's:[\$]\([a-z_]*\):$\1:g'` 2913 if test "$autosuffix" = "yes"; then 2914 if echo $val | grep apache >/dev/null; then 2915 addtarget=no 2916 else 2917 addtarget=yes 2918 fi 2919 if test "$addtarget" = "yes"; then 2920 val="$val/apache2" 2921 fi 2922 fi 2923 eval "$var='$val'" 2924 done 2925 2926 2927 2928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chosen layout" >&5 2929$as_echo_n "checking for chosen layout... " >&6; } 2930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $layout_name" >&5 2931$as_echo "$layout_name" >&6; } 2932 2933 2934ac_prev= 2935# Retrieve the command-line arguments. The eval is needed because 2936# the arguments are quoted to preserve accuracy. 2937eval "set x $ac_configure_args" 2938shift 2939for ac_option 2940do 2941 # If the previous option needs an argument, assign it. 2942 if test -n "$ac_prev"; then 2943 eval "$ac_prev=\$ac_option" 2944 ac_prev= 2945 continue 2946 fi 2947 2948 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 2949 2950 case $ac_option in 2951 2952 -bindir | --bindir | --bindi | --bind | --bin | --bi) 2953 ac_prev=bindir ;; 2954 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 2955 bindir="$ac_optarg" ;; 2956 2957 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 2958 ac_prev=datadir ;; 2959 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 2960 | --da=*) 2961 datadir="$ac_optarg" ;; 2962 2963 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 2964 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 2965 | --exec | --exe | --ex) 2966 ac_prev=exec_prefix ;; 2967 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 2968 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 2969 | --exec=* | --exe=* | --ex=*) 2970 exec_prefix="$ac_optarg" ;; 2971 2972 -includedir | --includedir | --includedi | --included | --include \ 2973 | --includ | --inclu | --incl | --inc) 2974 ac_prev=includedir ;; 2975 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 2976 | --includ=* | --inclu=* | --incl=* | --inc=*) 2977 includedir="$ac_optarg" ;; 2978 2979 -infodir | --infodir | --infodi | --infod | --info | --inf) 2980 ac_prev=infodir ;; 2981 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 2982 infodir="$ac_optarg" ;; 2983 2984 -libdir | --libdir | --libdi | --libd) 2985 ac_prev=libdir ;; 2986 -libdir=* | --libdir=* | --libdi=* | --libd=*) 2987 libdir="$ac_optarg" ;; 2988 2989 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 2990 | --libexe | --libex | --libe) 2991 ac_prev=libexecdir ;; 2992 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 2993 | --libexe=* | --libex=* | --libe=*) 2994 libexecdir="$ac_optarg" ;; 2995 2996 -localstatedir | --localstatedir | --localstatedi | --localstated \ 2997 | --localstate | --localstat | --localsta | --localst \ 2998 | --locals | --local | --loca | --loc | --lo) 2999 ac_prev=localstatedir ;; 3000 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 3001 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 3002 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 3003 localstatedir="$ac_optarg" ;; 3004 3005 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 3006 ac_prev=mandir ;; 3007 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 3008 mandir="$ac_optarg" ;; 3009 3010 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 3011 ac_prev=prefix ;; 3012 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 3013 prefix="$ac_optarg" ;; 3014 3015 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 3016 ac_prev=sbindir ;; 3017 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 3018 | --sbi=* | --sb=*) 3019 sbindir="$ac_optarg" ;; 3020 3021 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 3022 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 3023 | --sharedst | --shareds | --shared | --share | --shar \ 3024 | --sha | --sh) 3025 ac_prev=sharedstatedir ;; 3026 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 3027 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 3028 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 3029 | --sha=* | --sh=*) 3030 sharedstatedir="$ac_optarg" ;; 3031 3032 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 3033 | --syscon | --sysco | --sysc | --sys | --sy) 3034 ac_prev=sysconfdir ;; 3035 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 3036 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 3037 sysconfdir="$ac_optarg" ;; 3038 3039 esac 3040done 3041 3042# Be sure to have absolute paths. 3043for ac_var in exec_prefix prefix 3044do 3045 eval ac_val=$`echo $ac_var` 3046 case $ac_val in 3047 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 3048 *) as_fn_error $? "expected an absolute path for --$ac_var: $ac_val" "$LINENO" 5;; 3049 esac 3050done 3051 3052 3053 3054ac_ext=c 3055ac_cpp='$CPP $CPPFLAGS' 3056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3058ac_compiler_gnu=$ac_cv_c_compiler_gnu 3059if test -n "$ac_tool_prefix"; then 3060 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3061set dummy ${ac_tool_prefix}gcc; ac_word=$2 3062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3063$as_echo_n "checking for $ac_word... " >&6; } 3064if ${ac_cv_prog_CC+:} false; then : 3065 $as_echo_n "(cached) " >&6 3066else 3067 if test -n "$CC"; then 3068 ac_cv_prog_CC="$CC" # Let the user override the test. 3069else 3070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3071for as_dir in $PATH 3072do 3073 IFS=$as_save_IFS 3074 test -z "$as_dir" && as_dir=. 3075 for ac_exec_ext in '' $ac_executable_extensions; do 3076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3077 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3079 break 2 3080 fi 3081done 3082 done 3083IFS=$as_save_IFS 3084 3085fi 3086fi 3087CC=$ac_cv_prog_CC 3088if test -n "$CC"; then 3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3090$as_echo "$CC" >&6; } 3091else 3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3093$as_echo "no" >&6; } 3094fi 3095 3096 3097fi 3098if test -z "$ac_cv_prog_CC"; then 3099 ac_ct_CC=$CC 3100 # Extract the first word of "gcc", so it can be a program name with args. 3101set dummy gcc; ac_word=$2 3102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3103$as_echo_n "checking for $ac_word... " >&6; } 3104if ${ac_cv_prog_ac_ct_CC+:} false; then : 3105 $as_echo_n "(cached) " >&6 3106else 3107 if test -n "$ac_ct_CC"; then 3108 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3109else 3110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3111for as_dir in $PATH 3112do 3113 IFS=$as_save_IFS 3114 test -z "$as_dir" && as_dir=. 3115 for ac_exec_ext in '' $ac_executable_extensions; do 3116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3117 ac_cv_prog_ac_ct_CC="gcc" 3118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3119 break 2 3120 fi 3121done 3122 done 3123IFS=$as_save_IFS 3124 3125fi 3126fi 3127ac_ct_CC=$ac_cv_prog_ac_ct_CC 3128if test -n "$ac_ct_CC"; then 3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3130$as_echo "$ac_ct_CC" >&6; } 3131else 3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3133$as_echo "no" >&6; } 3134fi 3135 3136 if test "x$ac_ct_CC" = x; then 3137 CC="" 3138 else 3139 case $cross_compiling:$ac_tool_warned in 3140yes:) 3141{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3142$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3143ac_tool_warned=yes ;; 3144esac 3145 CC=$ac_ct_CC 3146 fi 3147else 3148 CC="$ac_cv_prog_CC" 3149fi 3150 3151if test -z "$CC"; then 3152 if test -n "$ac_tool_prefix"; then 3153 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3154set dummy ${ac_tool_prefix}cc; ac_word=$2 3155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3156$as_echo_n "checking for $ac_word... " >&6; } 3157if ${ac_cv_prog_CC+:} false; then : 3158 $as_echo_n "(cached) " >&6 3159else 3160 if test -n "$CC"; then 3161 ac_cv_prog_CC="$CC" # Let the user override the test. 3162else 3163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3164for as_dir in $PATH 3165do 3166 IFS=$as_save_IFS 3167 test -z "$as_dir" && as_dir=. 3168 for ac_exec_ext in '' $ac_executable_extensions; do 3169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3170 ac_cv_prog_CC="${ac_tool_prefix}cc" 3171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3172 break 2 3173 fi 3174done 3175 done 3176IFS=$as_save_IFS 3177 3178fi 3179fi 3180CC=$ac_cv_prog_CC 3181if test -n "$CC"; then 3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3183$as_echo "$CC" >&6; } 3184else 3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3186$as_echo "no" >&6; } 3187fi 3188 3189 3190 fi 3191fi 3192if test -z "$CC"; then 3193 # Extract the first word of "cc", so it can be a program name with args. 3194set dummy cc; ac_word=$2 3195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3196$as_echo_n "checking for $ac_word... " >&6; } 3197if ${ac_cv_prog_CC+:} false; then : 3198 $as_echo_n "(cached) " >&6 3199else 3200 if test -n "$CC"; then 3201 ac_cv_prog_CC="$CC" # Let the user override the test. 3202else 3203 ac_prog_rejected=no 3204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3205for as_dir in $PATH 3206do 3207 IFS=$as_save_IFS 3208 test -z "$as_dir" && as_dir=. 3209 for ac_exec_ext in '' $ac_executable_extensions; do 3210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3211 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3212 ac_prog_rejected=yes 3213 continue 3214 fi 3215 ac_cv_prog_CC="cc" 3216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3217 break 2 3218 fi 3219done 3220 done 3221IFS=$as_save_IFS 3222 3223if test $ac_prog_rejected = yes; then 3224 # We found a bogon in the path, so make sure we never use it. 3225 set dummy $ac_cv_prog_CC 3226 shift 3227 if test $# != 0; then 3228 # We chose a different compiler from the bogus one. 3229 # However, it has the same basename, so the bogon will be chosen 3230 # first if we set CC to just the basename; use the full file name. 3231 shift 3232 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3233 fi 3234fi 3235fi 3236fi 3237CC=$ac_cv_prog_CC 3238if test -n "$CC"; then 3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3240$as_echo "$CC" >&6; } 3241else 3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3243$as_echo "no" >&6; } 3244fi 3245 3246 3247fi 3248if test -z "$CC"; then 3249 if test -n "$ac_tool_prefix"; then 3250 for ac_prog in cl.exe 3251 do 3252 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3253set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3255$as_echo_n "checking for $ac_word... " >&6; } 3256if ${ac_cv_prog_CC+:} false; then : 3257 $as_echo_n "(cached) " >&6 3258else 3259 if test -n "$CC"; then 3260 ac_cv_prog_CC="$CC" # Let the user override the test. 3261else 3262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3263for as_dir in $PATH 3264do 3265 IFS=$as_save_IFS 3266 test -z "$as_dir" && as_dir=. 3267 for ac_exec_ext in '' $ac_executable_extensions; do 3268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3269 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3271 break 2 3272 fi 3273done 3274 done 3275IFS=$as_save_IFS 3276 3277fi 3278fi 3279CC=$ac_cv_prog_CC 3280if test -n "$CC"; then 3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3282$as_echo "$CC" >&6; } 3283else 3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3285$as_echo "no" >&6; } 3286fi 3287 3288 3289 test -n "$CC" && break 3290 done 3291fi 3292if test -z "$CC"; then 3293 ac_ct_CC=$CC 3294 for ac_prog in cl.exe 3295do 3296 # Extract the first word of "$ac_prog", so it can be a program name with args. 3297set dummy $ac_prog; ac_word=$2 3298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3299$as_echo_n "checking for $ac_word... " >&6; } 3300if ${ac_cv_prog_ac_ct_CC+:} false; then : 3301 $as_echo_n "(cached) " >&6 3302else 3303 if test -n "$ac_ct_CC"; then 3304 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3305else 3306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3307for as_dir in $PATH 3308do 3309 IFS=$as_save_IFS 3310 test -z "$as_dir" && as_dir=. 3311 for ac_exec_ext in '' $ac_executable_extensions; do 3312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3313 ac_cv_prog_ac_ct_CC="$ac_prog" 3314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3315 break 2 3316 fi 3317done 3318 done 3319IFS=$as_save_IFS 3320 3321fi 3322fi 3323ac_ct_CC=$ac_cv_prog_ac_ct_CC 3324if test -n "$ac_ct_CC"; then 3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3326$as_echo "$ac_ct_CC" >&6; } 3327else 3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3329$as_echo "no" >&6; } 3330fi 3331 3332 3333 test -n "$ac_ct_CC" && break 3334done 3335 3336 if test "x$ac_ct_CC" = x; then 3337 CC="" 3338 else 3339 case $cross_compiling:$ac_tool_warned in 3340yes:) 3341{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3342$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3343ac_tool_warned=yes ;; 3344esac 3345 CC=$ac_ct_CC 3346 fi 3347fi 3348 3349fi 3350 3351 3352test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3353$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3354as_fn_error $? "no acceptable C compiler found in \$PATH 3355See \`config.log' for more details" "$LINENO" 5; } 3356 3357# Provide some information about the compiler. 3358$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3359set X $ac_compile 3360ac_compiler=$2 3361for ac_option in --version -v -V -qversion; do 3362 { { ac_try="$ac_compiler $ac_option >&5" 3363case "(($ac_try" in 3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3365 *) ac_try_echo=$ac_try;; 3366esac 3367eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3368$as_echo "$ac_try_echo"; } >&5 3369 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3370 ac_status=$? 3371 if test -s conftest.err; then 3372 sed '10a\ 3373... rest of stderr output deleted ... 3374 10q' conftest.err >conftest.er1 3375 cat conftest.er1 >&5 3376 fi 3377 rm -f conftest.er1 conftest.err 3378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3379 test $ac_status = 0; } 3380done 3381 3382cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3383/* end confdefs.h. */ 3384 3385int 3386main () 3387{ 3388 3389 ; 3390 return 0; 3391} 3392_ACEOF 3393ac_clean_files_save=$ac_clean_files 3394ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3395# Try to create an executable without -o first, disregard a.out. 3396# It will help us diagnose broken compilers, and finding out an intuition 3397# of exeext. 3398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3399$as_echo_n "checking whether the C compiler works... " >&6; } 3400ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3401 3402# The possible output files: 3403ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3404 3405ac_rmfiles= 3406for ac_file in $ac_files 3407do 3408 case $ac_file in 3409 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3410 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3411 esac 3412done 3413rm -f $ac_rmfiles 3414 3415if { { ac_try="$ac_link_default" 3416case "(($ac_try" in 3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3418 *) ac_try_echo=$ac_try;; 3419esac 3420eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3421$as_echo "$ac_try_echo"; } >&5 3422 (eval "$ac_link_default") 2>&5 3423 ac_status=$? 3424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3425 test $ac_status = 0; }; then : 3426 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3427# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3428# in a Makefile. We should not override ac_cv_exeext if it was cached, 3429# so that the user can short-circuit this test for compilers unknown to 3430# Autoconf. 3431for ac_file in $ac_files '' 3432do 3433 test -f "$ac_file" || continue 3434 case $ac_file in 3435 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3436 ;; 3437 [ab].out ) 3438 # We found the default executable, but exeext='' is most 3439 # certainly right. 3440 break;; 3441 *.* ) 3442 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3443 then :; else 3444 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3445 fi 3446 # We set ac_cv_exeext here because the later test for it is not 3447 # safe: cross compilers may not add the suffix if given an `-o' 3448 # argument, so we may need to know it at that point already. 3449 # Even if this section looks crufty: it has the advantage of 3450 # actually working. 3451 break;; 3452 * ) 3453 break;; 3454 esac 3455done 3456test "$ac_cv_exeext" = no && ac_cv_exeext= 3457 3458else 3459 ac_file='' 3460fi 3461if test -z "$ac_file"; then : 3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3463$as_echo "no" >&6; } 3464$as_echo "$as_me: failed program was:" >&5 3465sed 's/^/| /' conftest.$ac_ext >&5 3466 3467{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3468$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3469as_fn_error 77 "C compiler cannot create executables 3470See \`config.log' for more details" "$LINENO" 5; } 3471else 3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3473$as_echo "yes" >&6; } 3474fi 3475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3476$as_echo_n "checking for C compiler default output file name... " >&6; } 3477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3478$as_echo "$ac_file" >&6; } 3479ac_exeext=$ac_cv_exeext 3480 3481rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3482ac_clean_files=$ac_clean_files_save 3483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3484$as_echo_n "checking for suffix of executables... " >&6; } 3485if { { ac_try="$ac_link" 3486case "(($ac_try" in 3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3488 *) ac_try_echo=$ac_try;; 3489esac 3490eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3491$as_echo "$ac_try_echo"; } >&5 3492 (eval "$ac_link") 2>&5 3493 ac_status=$? 3494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3495 test $ac_status = 0; }; then : 3496 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3497# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3498# work properly (i.e., refer to `conftest.exe'), while it won't with 3499# `rm'. 3500for ac_file in conftest.exe conftest conftest.*; do 3501 test -f "$ac_file" || continue 3502 case $ac_file in 3503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3504 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3505 break;; 3506 * ) break;; 3507 esac 3508done 3509else 3510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3511$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3512as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3513See \`config.log' for more details" "$LINENO" 5; } 3514fi 3515rm -f conftest conftest$ac_cv_exeext 3516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3517$as_echo "$ac_cv_exeext" >&6; } 3518 3519rm -f conftest.$ac_ext 3520EXEEXT=$ac_cv_exeext 3521ac_exeext=$EXEEXT 3522cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3523/* end confdefs.h. */ 3524#include <stdio.h> 3525int 3526main () 3527{ 3528FILE *f = fopen ("conftest.out", "w"); 3529 return ferror (f) || fclose (f) != 0; 3530 3531 ; 3532 return 0; 3533} 3534_ACEOF 3535ac_clean_files="$ac_clean_files conftest.out" 3536# Check that the compiler produces executables we can run. If not, either 3537# the compiler is broken, or we cross compile. 3538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3539$as_echo_n "checking whether we are cross compiling... " >&6; } 3540if test "$cross_compiling" != yes; then 3541 { { ac_try="$ac_link" 3542case "(($ac_try" in 3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3544 *) ac_try_echo=$ac_try;; 3545esac 3546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3547$as_echo "$ac_try_echo"; } >&5 3548 (eval "$ac_link") 2>&5 3549 ac_status=$? 3550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3551 test $ac_status = 0; } 3552 if { ac_try='./conftest$ac_cv_exeext' 3553 { { case "(($ac_try" in 3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3555 *) ac_try_echo=$ac_try;; 3556esac 3557eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3558$as_echo "$ac_try_echo"; } >&5 3559 (eval "$ac_try") 2>&5 3560 ac_status=$? 3561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3562 test $ac_status = 0; }; }; then 3563 cross_compiling=no 3564 else 3565 if test "$cross_compiling" = maybe; then 3566 cross_compiling=yes 3567 else 3568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3569$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3570as_fn_error $? "cannot run C compiled programs. 3571If you meant to cross compile, use \`--host'. 3572See \`config.log' for more details" "$LINENO" 5; } 3573 fi 3574 fi 3575fi 3576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3577$as_echo "$cross_compiling" >&6; } 3578 3579rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3580ac_clean_files=$ac_clean_files_save 3581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3582$as_echo_n "checking for suffix of object files... " >&6; } 3583if ${ac_cv_objext+:} false; then : 3584 $as_echo_n "(cached) " >&6 3585else 3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3587/* end confdefs.h. */ 3588 3589int 3590main () 3591{ 3592 3593 ; 3594 return 0; 3595} 3596_ACEOF 3597rm -f conftest.o conftest.obj 3598if { { ac_try="$ac_compile" 3599case "(($ac_try" in 3600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3601 *) ac_try_echo=$ac_try;; 3602esac 3603eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3604$as_echo "$ac_try_echo"; } >&5 3605 (eval "$ac_compile") 2>&5 3606 ac_status=$? 3607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3608 test $ac_status = 0; }; then : 3609 for ac_file in conftest.o conftest.obj conftest.*; do 3610 test -f "$ac_file" || continue; 3611 case $ac_file in 3612 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3613 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3614 break;; 3615 esac 3616done 3617else 3618 $as_echo "$as_me: failed program was:" >&5 3619sed 's/^/| /' conftest.$ac_ext >&5 3620 3621{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3622$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3623as_fn_error $? "cannot compute suffix of object files: cannot compile 3624See \`config.log' for more details" "$LINENO" 5; } 3625fi 3626rm -f conftest.$ac_cv_objext conftest.$ac_ext 3627fi 3628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3629$as_echo "$ac_cv_objext" >&6; } 3630OBJEXT=$ac_cv_objext 3631ac_objext=$OBJEXT 3632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3633$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3634if ${ac_cv_c_compiler_gnu+:} false; then : 3635 $as_echo_n "(cached) " >&6 3636else 3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3638/* end confdefs.h. */ 3639 3640int 3641main () 3642{ 3643#ifndef __GNUC__ 3644 choke me 3645#endif 3646 3647 ; 3648 return 0; 3649} 3650_ACEOF 3651if ac_fn_c_try_compile "$LINENO"; then : 3652 ac_compiler_gnu=yes 3653else 3654 ac_compiler_gnu=no 3655fi 3656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3657ac_cv_c_compiler_gnu=$ac_compiler_gnu 3658 3659fi 3660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3661$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3662if test $ac_compiler_gnu = yes; then 3663 GCC=yes 3664else 3665 GCC= 3666fi 3667ac_test_CFLAGS=${CFLAGS+set} 3668ac_save_CFLAGS=$CFLAGS 3669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3670$as_echo_n "checking whether $CC accepts -g... " >&6; } 3671if ${ac_cv_prog_cc_g+:} false; then : 3672 $as_echo_n "(cached) " >&6 3673else 3674 ac_save_c_werror_flag=$ac_c_werror_flag 3675 ac_c_werror_flag=yes 3676 ac_cv_prog_cc_g=no 3677 CFLAGS="-g" 3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3679/* end confdefs.h. */ 3680 3681int 3682main () 3683{ 3684 3685 ; 3686 return 0; 3687} 3688_ACEOF 3689if ac_fn_c_try_compile "$LINENO"; then : 3690 ac_cv_prog_cc_g=yes 3691else 3692 CFLAGS="" 3693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3694/* end confdefs.h. */ 3695 3696int 3697main () 3698{ 3699 3700 ; 3701 return 0; 3702} 3703_ACEOF 3704if ac_fn_c_try_compile "$LINENO"; then : 3705 3706else 3707 ac_c_werror_flag=$ac_save_c_werror_flag 3708 CFLAGS="-g" 3709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3710/* end confdefs.h. */ 3711 3712int 3713main () 3714{ 3715 3716 ; 3717 return 0; 3718} 3719_ACEOF 3720if ac_fn_c_try_compile "$LINENO"; then : 3721 ac_cv_prog_cc_g=yes 3722fi 3723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3724fi 3725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3726fi 3727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3728 ac_c_werror_flag=$ac_save_c_werror_flag 3729fi 3730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3731$as_echo "$ac_cv_prog_cc_g" >&6; } 3732if test "$ac_test_CFLAGS" = set; then 3733 CFLAGS=$ac_save_CFLAGS 3734elif test $ac_cv_prog_cc_g = yes; then 3735 if test "$GCC" = yes; then 3736 CFLAGS="-g -O2" 3737 else 3738 CFLAGS="-g" 3739 fi 3740else 3741 if test "$GCC" = yes; then 3742 CFLAGS="-O2" 3743 else 3744 CFLAGS= 3745 fi 3746fi 3747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3748$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3749if ${ac_cv_prog_cc_c89+:} false; then : 3750 $as_echo_n "(cached) " >&6 3751else 3752 ac_cv_prog_cc_c89=no 3753ac_save_CC=$CC 3754cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3755/* end confdefs.h. */ 3756#include <stdarg.h> 3757#include <stdio.h> 3758struct stat; 3759/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3760struct buf { int x; }; 3761FILE * (*rcsopen) (struct buf *, struct stat *, int); 3762static char *e (p, i) 3763 char **p; 3764 int i; 3765{ 3766 return p[i]; 3767} 3768static char *f (char * (*g) (char **, int), char **p, ...) 3769{ 3770 char *s; 3771 va_list v; 3772 va_start (v,p); 3773 s = g (p, va_arg (v,int)); 3774 va_end (v); 3775 return s; 3776} 3777 3778/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3779 function prototypes and stuff, but not '\xHH' hex character constants. 3780 These don't provoke an error unfortunately, instead are silently treated 3781 as 'x'. The following induces an error, until -std is added to get 3782 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3783 array size at least. It's necessary to write '\x00'==0 to get something 3784 that's true only with -std. */ 3785int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3786 3787/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3788 inside strings and character constants. */ 3789#define FOO(x) 'x' 3790int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3791 3792int test (int i, double x); 3793struct s1 {int (*f) (int a);}; 3794struct s2 {int (*f) (double a);}; 3795int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3796int argc; 3797char **argv; 3798int 3799main () 3800{ 3801return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3802 ; 3803 return 0; 3804} 3805_ACEOF 3806for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3807 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3808do 3809 CC="$ac_save_CC $ac_arg" 3810 if ac_fn_c_try_compile "$LINENO"; then : 3811 ac_cv_prog_cc_c89=$ac_arg 3812fi 3813rm -f core conftest.err conftest.$ac_objext 3814 test "x$ac_cv_prog_cc_c89" != "xno" && break 3815done 3816rm -f conftest.$ac_ext 3817CC=$ac_save_CC 3818 3819fi 3820# AC_CACHE_VAL 3821case "x$ac_cv_prog_cc_c89" in 3822 x) 3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3824$as_echo "none needed" >&6; } ;; 3825 xno) 3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3827$as_echo "unsupported" >&6; } ;; 3828 *) 3829 CC="$CC $ac_cv_prog_cc_c89" 3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3831$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3832esac 3833if test "x$ac_cv_prog_cc_c89" != xno; then : 3834 3835fi 3836 3837ac_ext=c 3838ac_cpp='$CPP $CPPFLAGS' 3839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3841ac_compiler_gnu=$ac_cv_c_compiler_gnu 3842 3843 3844 3845if test "x$apu_preload_done" != "xyes" ; then 3846 apu_preload_done="yes" 3847 3848 echo "Applying apr-util hints file rules for $host" 3849 3850 case "$host" in 3851 *-dec-osf*) 3852 3853 if test -z "$apu_crypt_threadsafe"; then 3854 test "x$silent" != "xyes" && echo " setting apu_crypt_threadsafe to \"1\"" 3855 apu_crypt_threadsafe="1" 3856 fi 3857 3858 ;; 3859 *-hp-hpux11.*) 3860 3861 if test -z "$apu_crypt_threadsafe"; then 3862 test "x$silent" != "xyes" && echo " setting apu_crypt_threadsafe to \"1\"" 3863 apu_crypt_threadsafe="1" 3864 fi 3865 3866 ;; 3867 *-ibm-aix4*|*-ibm-aix5.1*) 3868 3869 if test -z "$apu_iconv_inbuf_const"; then 3870 test "x$silent" != "xyes" && echo " setting apu_iconv_inbuf_const to \"1\"" 3871 apu_iconv_inbuf_const="1" 3872 fi 3873 3874 ;; 3875 *-ibm-os390) 3876 3877 if test -z "$apu_crypt_threadsafe"; then 3878 test "x$silent" != "xyes" && echo " setting apu_crypt_threadsafe to \"1\"" 3879 apu_crypt_threadsafe="1" 3880 fi 3881 3882 ;; 3883 *-solaris2*) 3884 3885 if test -z "$apu_iconv_inbuf_const"; then 3886 test "x$silent" != "xyes" && echo " setting apu_iconv_inbuf_const to \"1\"" 3887 apu_iconv_inbuf_const="1" 3888 fi 3889 3890 3891 if test -z "$apu_crypt_threadsafe"; then 3892 test "x$silent" != "xyes" && echo " setting apu_crypt_threadsafe to \"1\"" 3893 apu_crypt_threadsafe="1" 3894 fi 3895 3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5 3897$as_echo_n "checking for library containing fdatasync... " >&6; } 3898if ${ac_cv_search_fdatasync+:} false; then : 3899 $as_echo_n "(cached) " >&6 3900else 3901 ac_func_search_save_LIBS=$LIBS 3902cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3903/* end confdefs.h. */ 3904 3905/* Override any GCC internal prototype to avoid an error. 3906 Use char because int might match the return type of a GCC 3907 builtin and then its argument prototype would still apply. */ 3908#ifdef __cplusplus 3909extern "C" 3910#endif 3911char fdatasync (); 3912int 3913main () 3914{ 3915return fdatasync (); 3916 ; 3917 return 0; 3918} 3919_ACEOF 3920for ac_lib in '' rt posix4; do 3921 if test -z "$ac_lib"; then 3922 ac_res="none required" 3923 else 3924 ac_res=-l$ac_lib 3925 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3926 fi 3927 if ac_fn_c_try_link "$LINENO"; then : 3928 ac_cv_search_fdatasync=$ac_res 3929fi 3930rm -f core conftest.err conftest.$ac_objext \ 3931 conftest$ac_exeext 3932 if ${ac_cv_search_fdatasync+:} false; then : 3933 break 3934fi 3935done 3936if ${ac_cv_search_fdatasync+:} false; then : 3937 3938else 3939 ac_cv_search_fdatasync=no 3940fi 3941rm conftest.$ac_ext 3942LIBS=$ac_func_search_save_LIBS 3943fi 3944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5 3945$as_echo "$ac_cv_search_fdatasync" >&6; } 3946ac_res=$ac_cv_search_fdatasync 3947if test "$ac_res" != no; then : 3948 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3949 3950fi 3951 3952 ;; 3953 *-sco3.2v5*) 3954 3955 if test -z "$apu_db_xtra_libs"; then 3956 test "x$silent" != "xyes" && echo " setting apu_db_xtra_libs to \"-lsocket\"" 3957 apu_db_xtra_libs="-lsocket" 3958 fi 3959 3960 ;; 3961 esac 3962 3963fi 3964 3965 3966 3967APRUTIL_INCLUDES="" 3968APRUTIL_PRIV_INCLUDES="-I$top_builddir/include -I$top_builddir/include/private" 3969if test -n "$USE_VPATH"; then 3970 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES -I$abs_srcdir/include/private -I$abs_srcdir/include" 3971fi 3972 3973 3974 3975 3976 apr_found="no" 3977 3978 if test "$target_os" = "os2-emx"; then 3979 # Scripts don't pass test -x on OS/2 3980 TEST_X="test -f" 3981 else 3982 TEST_X="test -x" 3983 fi 3984 3985 acceptable_majors="1" 3986 3987 apr_temp_acceptable_apr_config="" 3988 for apr_temp_major in $acceptable_majors 3989 do 3990 case $apr_temp_major in 3991 0) 3992 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config" 3993 ;; 3994 *) 3995 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config" 3996 ;; 3997 esac 3998 done 3999 4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5 4001$as_echo_n "checking for APR... " >&6; } 4002 4003# Check whether --with-apr was given. 4004if test "${with_apr+set}" = set; then : 4005 withval=$with_apr; 4006 if test "$withval" = "no" || test "$withval" = "yes"; then 4007 as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5 4008 fi 4009 4010 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config 4011 do 4012 for lookdir in "$withval/bin" "$withval" 4013 do 4014 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then 4015 apr_config="$lookdir/$apr_temp_apr_config_file" 4016 4017 apr_found="yes" 4018 break 2 4019 fi 4020 done 4021 done 4022 4023 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then 4024 apr_config="$withval" 4025 apr_found="yes" 4026 fi 4027 4028 if test "$apr_found" != "yes"; then 4029 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 4030 fi 4031 4032else 4033 4034 if test -n "" && test "" = "1"; then 4035 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config 4036 do 4037 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then 4038 apr_config="$apr_temp_apr_config_file" 4039 4040 apr_found="yes" 4041 break 4042 else 4043 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do 4044 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then 4045 apr_config="$lookdir/bin/$apr_temp_apr_config_file" 4046 4047 apr_found="yes" 4048 break 2 4049 fi 4050 done 4051 fi 4052 done 4053 fi 4054 if test "$apr_found" = "no" && test -d ""; then 4055 apr_temp_abs_srcdir="`cd \"\" && pwd`" 4056 apr_found="reconfig" 4057 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`" 4058 case $apr_bundled_major in 4059 "") 4060 as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5 4061 ;; 4062 0) 4063 apr_temp_apr_config_file="apr-config" 4064 ;; 4065 *) 4066 apr_temp_apr_config_file="apr-$apr_bundled_major-config" 4067 ;; 4068 esac 4069 if test -n ""; then 4070 apr_config="/$apr_temp_apr_config_file" 4071 else 4072 apr_config="/$apr_temp_apr_config_file" 4073 fi 4074 fi 4075 4076fi 4077 4078 4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5 4080$as_echo "$apr_found" >&6; } 4081 4082 if test "$apr_found" = "no"; then 4083 as_fn_error $? "APR could not be located. Please use the --with-apr option." "$LINENO" 5 4084 fi 4085 4086 APR_BUILD_DIR="`$apr_config --installbuilddir`" 4087 4088 APR_BUILD_DIR="`cd $APR_BUILD_DIR && pwd`" 4089 4090 APR_INCLUDES="`$apr_config --includes`" 4091 APR_LIBS="`$apr_config --link-libtool --libs`" 4092 APR_SO_EXT="`$apr_config --apr-so-ext`" 4093 APR_LIB_TARGET="`$apr_config --apr-lib-target`" 4094 4095 4096 4097 4098 4099 4100 4101 if test -z "$CC"; then 4102 test "x$silent" != "xyes" && echo " setting CC to \"`$apr_config --cc`\"" 4103 CC="`$apr_config --cc`" 4104 fi 4105 4106 4107 if test -z "$CPP"; then 4108 test "x$silent" != "xyes" && echo " setting CPP to \"`$apr_config --cpp`\"" 4109 CPP="`$apr_config --cpp`" 4110 fi 4111 4112 4113 if test "x$CFLAGS" = "x"; then 4114 test "x$silent" != "xyes" && echo " setting CFLAGS to \"`$apr_config --cflags`\"" 4115 CFLAGS="`$apr_config --cflags`" 4116 else 4117 apr_addto_bugger="`$apr_config --cflags`" 4118 for i in $apr_addto_bugger; do 4119 apr_addto_duplicate="0" 4120 for j in $CFLAGS; do 4121 if test "x$i" = "x$j"; then 4122 apr_addto_duplicate="1" 4123 break 4124 fi 4125 done 4126 if test $apr_addto_duplicate = "0"; then 4127 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS" 4128 CFLAGS="$CFLAGS $i" 4129 fi 4130 done 4131 fi 4132 4133 4134 if test "x$CPPFLAGS" = "x"; then 4135 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"`$apr_config --cppflags`\"" 4136 CPPFLAGS="`$apr_config --cppflags`" 4137 else 4138 apr_addto_bugger="`$apr_config --cppflags`" 4139 for i in $apr_addto_bugger; do 4140 apr_addto_duplicate="0" 4141 for j in $CPPFLAGS; do 4142 if test "x$i" = "x$j"; then 4143 apr_addto_duplicate="1" 4144 break 4145 fi 4146 done 4147 if test $apr_addto_duplicate = "0"; then 4148 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 4149 CPPFLAGS="$CPPFLAGS $i" 4150 fi 4151 done 4152 fi 4153 4154apr_shlibpath_var=`$apr_config --shlib-path-var` 4155 4156 4157 4158# Check whether --with-apr-iconv was given. 4159if test "${with_apr_iconv+set}" = set; then : 4160 withval=$with_apr_iconv; apu_apriconv_dir="$withval" 4161 if test "$apu_apriconv_dir" != "no"; then 4162 if test -d "$apu_apriconv_dir"; then 4163 4164 # save our work to this point; this allows the sub-package to use it 4165 cat >confcache <<\_ACEOF 4166# This file is a shell script that caches the results of configure 4167# tests run on this system so they can be shared between configure 4168# scripts and configure runs, see configure's option --config-cache. 4169# It is not useful on other systems. If it contains results you don't 4170# want to keep, you may remove or edit it. 4171# 4172# config.status only pays attention to the cache file if you give it 4173# the --recheck option to rerun configure. 4174# 4175# `ac_cv_env_foo' variables (set or unset) will be overridden when 4176# loading this file, other *unset* `ac_cv_foo' will be assigned the 4177# following values. 4178 4179_ACEOF 4180 4181# The following way of writing the cache mishandles newlines in values, 4182# but we know of no workaround that is simple, portable, and efficient. 4183# So, we kill variables containing newlines. 4184# Ultrix sh set writes to stderr and can't be redirected directly, 4185# and sets the high bit in the cache file unless we assign to the vars. 4186( 4187 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 4188 eval ac_val=\$$ac_var 4189 case $ac_val in #( 4190 *${as_nl}*) 4191 case $ac_var in #( 4192 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 4193$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 4194 esac 4195 case $ac_var in #( 4196 _ | IFS | as_nl) ;; #( 4197 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 4198 *) { eval $ac_var=; unset $ac_var;} ;; 4199 esac ;; 4200 esac 4201 done 4202 4203 (set) 2>&1 | 4204 case $as_nl`(ac_space=' '; set) 2>&1` in #( 4205 *${as_nl}ac_space=\ *) 4206 # `set' does not quote correctly, so add quotes: double-quote 4207 # substitution turns \\\\ into \\, and sed turns \\ into \. 4208 sed -n \ 4209 "s/'/'\\\\''/g; 4210 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 4211 ;; #( 4212 *) 4213 # `set' quotes correctly as required by POSIX, so do not add quotes. 4214 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 4215 ;; 4216 esac | 4217 sort 4218) | 4219 sed ' 4220 /^ac_cv_env_/b end 4221 t clear 4222 :clear 4223 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 4224 t end 4225 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 4226 :end' >>confcache 4227if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 4228 if test -w "$cache_file"; then 4229 if test "x$cache_file" != "x/dev/null"; then 4230 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 4231$as_echo "$as_me: updating cache $cache_file" >&6;} 4232 if test ! -f "$cache_file" || test -h "$cache_file"; then 4233 cat confcache >"$cache_file" 4234 else 4235 case $cache_file in #( 4236 */* | ?:*) 4237 mv -f confcache "$cache_file"$$ && 4238 mv -f "$cache_file"$$ "$cache_file" ;; #( 4239 *) 4240 mv -f confcache "$cache_file" ;; 4241 esac 4242 fi 4243 fi 4244 else 4245 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 4246$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 4247 fi 4248fi 4249rm -f confcache 4250 4251 echo "configuring package in "$apu_apriconv_dir" now" 4252 ac_popdir=`pwd` 4253 apr_config_subdirs=""$apu_apriconv_dir"" 4254 test -d "$apu_apriconv_dir" || $mkdir_p "$apu_apriconv_dir" 4255 ac_abs_srcdir=`(cd $srcdir/"$apu_apriconv_dir" && pwd)` 4256 cd "$apu_apriconv_dir" 4257 4258 # A "../" for each directory in /$config_subdirs. 4259 ac_dots=`echo $apr_config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` 4260 4261 # Make the cache file pathname absolute for the subdirs 4262 # required to correctly handle subdirs that might actually 4263 # be symlinks 4264 case "$cache_file" in 4265 /*) # already absolute 4266 ac_sub_cache_file=$cache_file ;; 4267 *) # Was relative path. 4268 ac_sub_cache_file="$ac_popdir/$cache_file" ;; 4269 esac 4270 4271 4272 apr_configure_args= 4273 apr_sep= 4274 for apr_configure_arg in $ac_configure_args 4275 do 4276 case "$apr_configure_arg" in 4277 --enable-layout=*|\'--enable-layout=*) 4278 continue ;; 4279 esac 4280 apr_configure_args="$apr_configure_args$apr_sep'$apr_configure_arg'" 4281 apr_sep=" " 4282 done 4283 4284 4285 test "x$silent" = "xyes" && apr_configure_args="$apr_configure_args --silent" 4286 4287 apr_configure_args="--disable-option-checking $apr_configure_args" 4288 4289 if eval $SHELL $ac_abs_srcdir/configure $apr_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_abs_srcdir $apache_apr_flags \ 4290 --prefix=$prefix \ 4291 --exec-prefix=$exec_prefix \ 4292 --libdir=$libdir \ 4293 --includedir=$includedir \ 4294 --bindir=$bindir \ 4295 --datadir=$datadir \ 4296 --with-installbuilddir=$installbuilddir 4297 then : 4298 echo ""$apu_apriconv_dir" configured properly" 4299 else 4300 echo "configure failed for "$apu_apriconv_dir"" 4301 exit 1 4302 fi 4303 4304 cd $ac_popdir 4305 4306 # grab any updates from the sub-package 4307 if test -r "$cache_file"; then 4308 # Some versions of bash will fail to source /dev/null (special files 4309 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 4310 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 4311 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 4312$as_echo "$as_me: loading cache $cache_file" >&6;} 4313 case $cache_file in 4314 [\\/]* | ?:[\\/]* ) . "$cache_file";; 4315 *) . "./$cache_file";; 4316 esac 4317 fi 4318else 4319 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 4320$as_echo "$as_me: creating cache $cache_file" >&6;} 4321 >$cache_file 4322fi 4323 4324 4325 APRUTIL_EXPORT_LIBS="$abs_srcdir/$apu_apriconv_dir/lib/libapriconv.la \ 4326 $APRUTIL_EXPORT_LIBS" 4327 APRUTIL_INCLUDES="-I$abs_srcdir/$apu_apriconv_dir/include \ 4328 $APRUTIL_INCLUDES" 4329 APR_ICONV_DIR="$apu_apriconv_dir" 4330 else 4331 APR_ICONV_DIR="" 4332 fi 4333 else 4334 APR_ICONV_DIR="" 4335 fi 4336 4337fi 4338 4339 4340 4341ac_ext=c 4342ac_cpp='$CPP $CPPFLAGS' 4343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4345ac_compiler_gnu=$ac_cv_c_compiler_gnu 4346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4347$as_echo_n "checking how to run the C preprocessor... " >&6; } 4348# On Suns, sometimes $CPP names a directory. 4349if test -n "$CPP" && test -d "$CPP"; then 4350 CPP= 4351fi 4352if test -z "$CPP"; then 4353 if ${ac_cv_prog_CPP+:} false; then : 4354 $as_echo_n "(cached) " >&6 4355else 4356 # Double quotes because CPP needs to be expanded 4357 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4358 do 4359 ac_preproc_ok=false 4360for ac_c_preproc_warn_flag in '' yes 4361do 4362 # Use a header file that comes with gcc, so configuring glibc 4363 # with a fresh cross-compiler works. 4364 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4365 # <limits.h> exists even on freestanding compilers. 4366 # On the NeXT, cc -E runs the code through the compiler's parser, 4367 # not just through cpp. "Syntax error" is here to catch this case. 4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4369/* end confdefs.h. */ 4370#ifdef __STDC__ 4371# include <limits.h> 4372#else 4373# include <assert.h> 4374#endif 4375 Syntax error 4376_ACEOF 4377if ac_fn_c_try_cpp "$LINENO"; then : 4378 4379else 4380 # Broken: fails on valid input. 4381continue 4382fi 4383rm -f conftest.err conftest.i conftest.$ac_ext 4384 4385 # OK, works on sane cases. Now check whether nonexistent headers 4386 # can be detected and how. 4387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4388/* end confdefs.h. */ 4389#include <ac_nonexistent.h> 4390_ACEOF 4391if ac_fn_c_try_cpp "$LINENO"; then : 4392 # Broken: success on invalid input. 4393continue 4394else 4395 # Passes both tests. 4396ac_preproc_ok=: 4397break 4398fi 4399rm -f conftest.err conftest.i conftest.$ac_ext 4400 4401done 4402# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4403rm -f conftest.i conftest.err conftest.$ac_ext 4404if $ac_preproc_ok; then : 4405 break 4406fi 4407 4408 done 4409 ac_cv_prog_CPP=$CPP 4410 4411fi 4412 CPP=$ac_cv_prog_CPP 4413else 4414 ac_cv_prog_CPP=$CPP 4415fi 4416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4417$as_echo "$CPP" >&6; } 4418ac_preproc_ok=false 4419for ac_c_preproc_warn_flag in '' yes 4420do 4421 # Use a header file that comes with gcc, so configuring glibc 4422 # with a fresh cross-compiler works. 4423 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4424 # <limits.h> exists even on freestanding compilers. 4425 # On the NeXT, cc -E runs the code through the compiler's parser, 4426 # not just through cpp. "Syntax error" is here to catch this case. 4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4428/* end confdefs.h. */ 4429#ifdef __STDC__ 4430# include <limits.h> 4431#else 4432# include <assert.h> 4433#endif 4434 Syntax error 4435_ACEOF 4436if ac_fn_c_try_cpp "$LINENO"; then : 4437 4438else 4439 # Broken: fails on valid input. 4440continue 4441fi 4442rm -f conftest.err conftest.i conftest.$ac_ext 4443 4444 # OK, works on sane cases. Now check whether nonexistent headers 4445 # can be detected and how. 4446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4447/* end confdefs.h. */ 4448#include <ac_nonexistent.h> 4449_ACEOF 4450if ac_fn_c_try_cpp "$LINENO"; then : 4451 # Broken: success on invalid input. 4452continue 4453else 4454 # Passes both tests. 4455ac_preproc_ok=: 4456break 4457fi 4458rm -f conftest.err conftest.i conftest.$ac_ext 4459 4460done 4461# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4462rm -f conftest.i conftest.err conftest.$ac_ext 4463if $ac_preproc_ok; then : 4464 4465else 4466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4467$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4468as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4469See \`config.log' for more details" "$LINENO" 5; } 4470fi 4471 4472ac_ext=c 4473ac_cpp='$CPP $CPPFLAGS' 4474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4476ac_compiler_gnu=$ac_cv_c_compiler_gnu 4477 4478 4479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4480$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4481if ${ac_cv_path_GREP+:} false; then : 4482 $as_echo_n "(cached) " >&6 4483else 4484 if test -z "$GREP"; then 4485 ac_path_GREP_found=false 4486 # Loop through the user's path and test for each of PROGNAME-LIST 4487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4488for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4489do 4490 IFS=$as_save_IFS 4491 test -z "$as_dir" && as_dir=. 4492 for ac_prog in grep ggrep; do 4493 for ac_exec_ext in '' $ac_executable_extensions; do 4494 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4495 as_fn_executable_p "$ac_path_GREP" || continue 4496# Check for GNU ac_path_GREP and select it if it is found. 4497 # Check for GNU $ac_path_GREP 4498case `"$ac_path_GREP" --version 2>&1` in 4499*GNU*) 4500 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4501*) 4502 ac_count=0 4503 $as_echo_n 0123456789 >"conftest.in" 4504 while : 4505 do 4506 cat "conftest.in" "conftest.in" >"conftest.tmp" 4507 mv "conftest.tmp" "conftest.in" 4508 cp "conftest.in" "conftest.nl" 4509 $as_echo 'GREP' >> "conftest.nl" 4510 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4511 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4512 as_fn_arith $ac_count + 1 && ac_count=$as_val 4513 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4514 # Best one so far, save it but keep looking for a better one 4515 ac_cv_path_GREP="$ac_path_GREP" 4516 ac_path_GREP_max=$ac_count 4517 fi 4518 # 10*(2^10) chars as input seems more than enough 4519 test $ac_count -gt 10 && break 4520 done 4521 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4522esac 4523 4524 $ac_path_GREP_found && break 3 4525 done 4526 done 4527 done 4528IFS=$as_save_IFS 4529 if test -z "$ac_cv_path_GREP"; then 4530 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4531 fi 4532else 4533 ac_cv_path_GREP=$GREP 4534fi 4535 4536fi 4537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4538$as_echo "$ac_cv_path_GREP" >&6; } 4539 GREP="$ac_cv_path_GREP" 4540 4541 4542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4543$as_echo_n "checking for egrep... " >&6; } 4544if ${ac_cv_path_EGREP+:} false; then : 4545 $as_echo_n "(cached) " >&6 4546else 4547 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4548 then ac_cv_path_EGREP="$GREP -E" 4549 else 4550 if test -z "$EGREP"; then 4551 ac_path_EGREP_found=false 4552 # Loop through the user's path and test for each of PROGNAME-LIST 4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4554for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4555do 4556 IFS=$as_save_IFS 4557 test -z "$as_dir" && as_dir=. 4558 for ac_prog in egrep; do 4559 for ac_exec_ext in '' $ac_executable_extensions; do 4560 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4561 as_fn_executable_p "$ac_path_EGREP" || continue 4562# Check for GNU ac_path_EGREP and select it if it is found. 4563 # Check for GNU $ac_path_EGREP 4564case `"$ac_path_EGREP" --version 2>&1` in 4565*GNU*) 4566 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4567*) 4568 ac_count=0 4569 $as_echo_n 0123456789 >"conftest.in" 4570 while : 4571 do 4572 cat "conftest.in" "conftest.in" >"conftest.tmp" 4573 mv "conftest.tmp" "conftest.in" 4574 cp "conftest.in" "conftest.nl" 4575 $as_echo 'EGREP' >> "conftest.nl" 4576 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4577 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4578 as_fn_arith $ac_count + 1 && ac_count=$as_val 4579 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4580 # Best one so far, save it but keep looking for a better one 4581 ac_cv_path_EGREP="$ac_path_EGREP" 4582 ac_path_EGREP_max=$ac_count 4583 fi 4584 # 10*(2^10) chars as input seems more than enough 4585 test $ac_count -gt 10 && break 4586 done 4587 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4588esac 4589 4590 $ac_path_EGREP_found && break 3 4591 done 4592 done 4593 done 4594IFS=$as_save_IFS 4595 if test -z "$ac_cv_path_EGREP"; then 4596 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4597 fi 4598else 4599 ac_cv_path_EGREP=$EGREP 4600fi 4601 4602 fi 4603fi 4604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4605$as_echo "$ac_cv_path_EGREP" >&6; } 4606 EGREP="$ac_cv_path_EGREP" 4607 4608 4609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4610$as_echo_n "checking for ANSI C header files... " >&6; } 4611if ${ac_cv_header_stdc+:} false; then : 4612 $as_echo_n "(cached) " >&6 4613else 4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4615/* end confdefs.h. */ 4616#include <stdlib.h> 4617#include <stdarg.h> 4618#include <string.h> 4619#include <float.h> 4620 4621int 4622main () 4623{ 4624 4625 ; 4626 return 0; 4627} 4628_ACEOF 4629if ac_fn_c_try_compile "$LINENO"; then : 4630 ac_cv_header_stdc=yes 4631else 4632 ac_cv_header_stdc=no 4633fi 4634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4635 4636if test $ac_cv_header_stdc = yes; then 4637 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4639/* end confdefs.h. */ 4640#include <string.h> 4641 4642_ACEOF 4643if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4644 $EGREP "memchr" >/dev/null 2>&1; then : 4645 4646else 4647 ac_cv_header_stdc=no 4648fi 4649rm -f conftest* 4650 4651fi 4652 4653if test $ac_cv_header_stdc = yes; then 4654 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4656/* end confdefs.h. */ 4657#include <stdlib.h> 4658 4659_ACEOF 4660if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4661 $EGREP "free" >/dev/null 2>&1; then : 4662 4663else 4664 ac_cv_header_stdc=no 4665fi 4666rm -f conftest* 4667 4668fi 4669 4670if test $ac_cv_header_stdc = yes; then 4671 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4672 if test "$cross_compiling" = yes; then : 4673 : 4674else 4675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4676/* end confdefs.h. */ 4677#include <ctype.h> 4678#include <stdlib.h> 4679#if ((' ' & 0x0FF) == 0x020) 4680# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4681# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4682#else 4683# define ISLOWER(c) \ 4684 (('a' <= (c) && (c) <= 'i') \ 4685 || ('j' <= (c) && (c) <= 'r') \ 4686 || ('s' <= (c) && (c) <= 'z')) 4687# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4688#endif 4689 4690#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4691int 4692main () 4693{ 4694 int i; 4695 for (i = 0; i < 256; i++) 4696 if (XOR (islower (i), ISLOWER (i)) 4697 || toupper (i) != TOUPPER (i)) 4698 return 2; 4699 return 0; 4700} 4701_ACEOF 4702if ac_fn_c_try_run "$LINENO"; then : 4703 4704else 4705 ac_cv_header_stdc=no 4706fi 4707rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4708 conftest.$ac_objext conftest.beam conftest.$ac_ext 4709fi 4710 4711fi 4712fi 4713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4714$as_echo "$ac_cv_header_stdc" >&6; } 4715if test $ac_cv_header_stdc = yes; then 4716 4717$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4718 4719fi 4720 4721# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4722for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4723 inttypes.h stdint.h unistd.h 4724do : 4725 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4726ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4727" 4728if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4729 cat >>confdefs.h <<_ACEOF 4730#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4731_ACEOF 4732 4733fi 4734 4735done 4736 4737 4738 4739 apu_have_crypto=0 4740 apu_have_openssl=0 4741 apu_have_nss=0 4742 4743 old_libs="$LIBS" 4744 old_cppflags="$CPPFLAGS" 4745 old_ldflags="$LDFLAGS" 4746 4747 4748# Check whether --with-crypto was given. 4749if test "${with_crypto+set}" = set; then : 4750 withval=$with_crypto; 4751 cryptolibs="openssl nss" 4752 4753 if test "$withval" = "yes"; then 4754 4755 crypto_library_enabled=0 4756 for cryptolib in $cryptolibs; do 4757 eval v=\$with_$cryptolib 4758 if test "$v" != "" -a "$v" != "no"; then 4759 crypto_library_enabled=1 4760 fi 4761 done 4762 4763 if test "$crypto_library_enabled" = "0"; then 4764 for cryptolib in $cryptolibs; do 4765 eval v=\$with_$cryptolib 4766 if test "$v" != "no"; then 4767 eval with_$cryptolib=yes 4768 crypto_library_enabled=1 4769 fi 4770 done 4771 if test "$crypto_library_enabled" = "1"; then 4772 { $as_echo "$as_me:${as_lineno-$LINENO}: Crypto was requested but no crypto library was found; autodetecting possible libraries" >&5 4773$as_echo "$as_me: Crypto was requested but no crypto library was found; autodetecting possible libraries" >&6;} 4774 else 4775 as_fn_error $? "Crypto was requested but all possible crypto libraries were disabled." "$LINENO" 5 4776 fi 4777 fi 4778 4779 4780 openssl_have_headers=0 4781 openssl_have_libs=0 4782 4783 old_libs="$LIBS" 4784 old_cppflags="$CPPFLAGS" 4785 old_ldflags="$LDFLAGS" 4786 4787 4788# Check whether --with-openssl was given. 4789if test "${with_openssl+set}" = set; then : 4790 withval=$with_openssl; 4791 if test "$withval" = "yes"; then 4792 for ac_header in openssl/x509.h 4793do : 4794 ac_fn_c_check_header_mongrel "$LINENO" "openssl/x509.h" "ac_cv_header_openssl_x509_h" "$ac_includes_default" 4795if test "x$ac_cv_header_openssl_x509_h" = xyes; then : 4796 cat >>confdefs.h <<_ACEOF 4797#define HAVE_OPENSSL_X509_H 1 4798_ACEOF 4799 openssl_have_headers=1 4800fi 4801 4802done 4803 4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BN_init in -lcrypto" >&5 4805$as_echo_n "checking for BN_init in -lcrypto... " >&6; } 4806if ${ac_cv_lib_crypto_BN_init+:} false; then : 4807 $as_echo_n "(cached) " >&6 4808else 4809 ac_check_lib_save_LIBS=$LIBS 4810LIBS="-lcrypto $LIBS" 4811cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4812/* end confdefs.h. */ 4813 4814/* Override any GCC internal prototype to avoid an error. 4815 Use char because int might match the return type of a GCC 4816 builtin and then its argument prototype would still apply. */ 4817#ifdef __cplusplus 4818extern "C" 4819#endif 4820char BN_init (); 4821int 4822main () 4823{ 4824return BN_init (); 4825 ; 4826 return 0; 4827} 4828_ACEOF 4829if ac_fn_c_try_link "$LINENO"; then : 4830 ac_cv_lib_crypto_BN_init=yes 4831else 4832 ac_cv_lib_crypto_BN_init=no 4833fi 4834rm -f core conftest.err conftest.$ac_objext \ 4835 conftest$ac_exeext conftest.$ac_ext 4836LIBS=$ac_check_lib_save_LIBS 4837fi 4838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BN_init" >&5 4839$as_echo "$ac_cv_lib_crypto_BN_init" >&6; } 4840if test "x$ac_cv_lib_crypto_BN_init" = xyes; then : 4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_accept in -lssl" >&5 4842$as_echo_n "checking for SSL_accept in -lssl... " >&6; } 4843if ${ac_cv_lib_ssl_SSL_accept+:} false; then : 4844 $as_echo_n "(cached) " >&6 4845else 4846 ac_check_lib_save_LIBS=$LIBS 4847LIBS="-lssl -lcrypto $LIBS" 4848cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4849/* end confdefs.h. */ 4850 4851/* Override any GCC internal prototype to avoid an error. 4852 Use char because int might match the return type of a GCC 4853 builtin and then its argument prototype would still apply. */ 4854#ifdef __cplusplus 4855extern "C" 4856#endif 4857char SSL_accept (); 4858int 4859main () 4860{ 4861return SSL_accept (); 4862 ; 4863 return 0; 4864} 4865_ACEOF 4866if ac_fn_c_try_link "$LINENO"; then : 4867 ac_cv_lib_ssl_SSL_accept=yes 4868else 4869 ac_cv_lib_ssl_SSL_accept=no 4870fi 4871rm -f core conftest.err conftest.$ac_objext \ 4872 conftest$ac_exeext conftest.$ac_ext 4873LIBS=$ac_check_lib_save_LIBS 4874fi 4875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_accept" >&5 4876$as_echo "$ac_cv_lib_ssl_SSL_accept" >&6; } 4877if test "x$ac_cv_lib_ssl_SSL_accept" = xyes; then : 4878 openssl_have_libs=1 4879fi 4880 4881fi 4882 4883 if test "$openssl_have_headers" != "0" && test "$openssl_have_libs" != "0"; then 4884 apu_have_openssl=1 4885 fi 4886 elif test "$withval" = "no"; then 4887 apu_have_openssl=0 4888 else 4889 4890 openssl_CPPFLAGS="-I$withval/include" 4891 openssl_LDFLAGS="-L$withval/lib " 4892 4893 4894 if test "x$CPPFLAGS" = "x"; then 4895 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$openssl_CPPFLAGS\"" 4896 CPPFLAGS="$openssl_CPPFLAGS" 4897 else 4898 apr_addto_bugger="$openssl_CPPFLAGS" 4899 for i in $apr_addto_bugger; do 4900 apr_addto_duplicate="0" 4901 for j in $CPPFLAGS; do 4902 if test "x$i" = "x$j"; then 4903 apr_addto_duplicate="1" 4904 break 4905 fi 4906 done 4907 if test $apr_addto_duplicate = "0"; then 4908 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 4909 CPPFLAGS="$CPPFLAGS $i" 4910 fi 4911 done 4912 fi 4913 4914 4915 if test "x$LDFLAGS" = "x"; then 4916 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$openssl_LDFLAGS\"" 4917 LDFLAGS="$openssl_LDFLAGS" 4918 else 4919 apr_addto_bugger="$openssl_LDFLAGS" 4920 for i in $apr_addto_bugger; do 4921 apr_addto_duplicate="0" 4922 for j in $LDFLAGS; do 4923 if test "x$i" = "x$j"; then 4924 apr_addto_duplicate="1" 4925 break 4926 fi 4927 done 4928 if test $apr_addto_duplicate = "0"; then 4929 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 4930 LDFLAGS="$LDFLAGS $i" 4931 fi 4932 done 4933 fi 4934 4935 4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl in $withval" >&5 4937$as_echo "$as_me: checking for openssl in $withval" >&6;} 4938 for ac_header in openssl/x509.h 4939do : 4940 ac_fn_c_check_header_mongrel "$LINENO" "openssl/x509.h" "ac_cv_header_openssl_x509_h" "$ac_includes_default" 4941if test "x$ac_cv_header_openssl_x509_h" = xyes; then : 4942 cat >>confdefs.h <<_ACEOF 4943#define HAVE_OPENSSL_X509_H 1 4944_ACEOF 4945 openssl_have_headers=1 4946fi 4947 4948done 4949 4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BN_init in -lcrypto" >&5 4951$as_echo_n "checking for BN_init in -lcrypto... " >&6; } 4952if ${ac_cv_lib_crypto_BN_init+:} false; then : 4953 $as_echo_n "(cached) " >&6 4954else 4955 ac_check_lib_save_LIBS=$LIBS 4956LIBS="-lcrypto $LIBS" 4957cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4958/* end confdefs.h. */ 4959 4960/* Override any GCC internal prototype to avoid an error. 4961 Use char because int might match the return type of a GCC 4962 builtin and then its argument prototype would still apply. */ 4963#ifdef __cplusplus 4964extern "C" 4965#endif 4966char BN_init (); 4967int 4968main () 4969{ 4970return BN_init (); 4971 ; 4972 return 0; 4973} 4974_ACEOF 4975if ac_fn_c_try_link "$LINENO"; then : 4976 ac_cv_lib_crypto_BN_init=yes 4977else 4978 ac_cv_lib_crypto_BN_init=no 4979fi 4980rm -f core conftest.err conftest.$ac_objext \ 4981 conftest$ac_exeext conftest.$ac_ext 4982LIBS=$ac_check_lib_save_LIBS 4983fi 4984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BN_init" >&5 4985$as_echo "$ac_cv_lib_crypto_BN_init" >&6; } 4986if test "x$ac_cv_lib_crypto_BN_init" = xyes; then : 4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_accept in -lssl" >&5 4988$as_echo_n "checking for SSL_accept in -lssl... " >&6; } 4989if ${ac_cv_lib_ssl_SSL_accept+:} false; then : 4990 $as_echo_n "(cached) " >&6 4991else 4992 ac_check_lib_save_LIBS=$LIBS 4993LIBS="-lssl -lcrypto $LIBS" 4994cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4995/* end confdefs.h. */ 4996 4997/* Override any GCC internal prototype to avoid an error. 4998 Use char because int might match the return type of a GCC 4999 builtin and then its argument prototype would still apply. */ 5000#ifdef __cplusplus 5001extern "C" 5002#endif 5003char SSL_accept (); 5004int 5005main () 5006{ 5007return SSL_accept (); 5008 ; 5009 return 0; 5010} 5011_ACEOF 5012if ac_fn_c_try_link "$LINENO"; then : 5013 ac_cv_lib_ssl_SSL_accept=yes 5014else 5015 ac_cv_lib_ssl_SSL_accept=no 5016fi 5017rm -f core conftest.err conftest.$ac_objext \ 5018 conftest$ac_exeext conftest.$ac_ext 5019LIBS=$ac_check_lib_save_LIBS 5020fi 5021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_accept" >&5 5022$as_echo "$ac_cv_lib_ssl_SSL_accept" >&6; } 5023if test "x$ac_cv_lib_ssl_SSL_accept" = xyes; then : 5024 openssl_have_libs=1 5025fi 5026 5027fi 5028 5029 if test "$openssl_have_headers" != "0" && test "$openssl_have_libs" != "0"; then 5030 apu_have_openssl=1 5031 5032 if test "x$APRUTIL_LDFLAGS" = "x"; then 5033 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$withval/lib\"" 5034 APRUTIL_LDFLAGS="-L$withval/lib" 5035 else 5036 apr_addto_bugger="-L$withval/lib" 5037 for i in $apr_addto_bugger; do 5038 apr_addto_duplicate="0" 5039 for j in $APRUTIL_LDFLAGS; do 5040 if test "x$i" = "x$j"; then 5041 apr_addto_duplicate="1" 5042 break 5043 fi 5044 done 5045 if test $apr_addto_duplicate = "0"; then 5046 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 5047 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 5048 fi 5049 done 5050 fi 5051 5052 5053 if test "x$APRUTIL_INCLUDES" = "x"; then 5054 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$withval/include\"" 5055 APRUTIL_INCLUDES="-I$withval/include" 5056 else 5057 apr_addto_bugger="-I$withval/include" 5058 for i in $apr_addto_bugger; do 5059 apr_addto_duplicate="0" 5060 for j in $APRUTIL_INCLUDES; do 5061 if test "x$i" = "x$j"; then 5062 apr_addto_duplicate="1" 5063 break 5064 fi 5065 done 5066 if test $apr_addto_duplicate = "0"; then 5067 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 5068 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 5069 fi 5070 done 5071 fi 5072 5073 fi 5074 5075 if test "$apu_have_openssl" != "1"; then 5076 for ac_header in openssl/x509.h 5077do : 5078 ac_fn_c_check_header_mongrel "$LINENO" "openssl/x509.h" "ac_cv_header_openssl_x509_h" "$ac_includes_default" 5079if test "x$ac_cv_header_openssl_x509_h" = xyes; then : 5080 cat >>confdefs.h <<_ACEOF 5081#define HAVE_OPENSSL_X509_H 1 5082_ACEOF 5083 openssl_have_headers=1 5084fi 5085 5086done 5087 5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BN_init in -lcrypto" >&5 5089$as_echo_n "checking for BN_init in -lcrypto... " >&6; } 5090if ${ac_cv_lib_crypto_BN_init+:} false; then : 5091 $as_echo_n "(cached) " >&6 5092else 5093 ac_check_lib_save_LIBS=$LIBS 5094LIBS="-lcrypto $LIBS" 5095cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5096/* end confdefs.h. */ 5097 5098/* Override any GCC internal prototype to avoid an error. 5099 Use char because int might match the return type of a GCC 5100 builtin and then its argument prototype would still apply. */ 5101#ifdef __cplusplus 5102extern "C" 5103#endif 5104char BN_init (); 5105int 5106main () 5107{ 5108return BN_init (); 5109 ; 5110 return 0; 5111} 5112_ACEOF 5113if ac_fn_c_try_link "$LINENO"; then : 5114 ac_cv_lib_crypto_BN_init=yes 5115else 5116 ac_cv_lib_crypto_BN_init=no 5117fi 5118rm -f core conftest.err conftest.$ac_objext \ 5119 conftest$ac_exeext conftest.$ac_ext 5120LIBS=$ac_check_lib_save_LIBS 5121fi 5122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BN_init" >&5 5123$as_echo "$ac_cv_lib_crypto_BN_init" >&6; } 5124if test "x$ac_cv_lib_crypto_BN_init" = xyes; then : 5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_accept in -lssl" >&5 5126$as_echo_n "checking for SSL_accept in -lssl... " >&6; } 5127if ${ac_cv_lib_ssl_SSL_accept+:} false; then : 5128 $as_echo_n "(cached) " >&6 5129else 5130 ac_check_lib_save_LIBS=$LIBS 5131LIBS="-lssl -lcrypto $LIBS" 5132cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5133/* end confdefs.h. */ 5134 5135/* Override any GCC internal prototype to avoid an error. 5136 Use char because int might match the return type of a GCC 5137 builtin and then its argument prototype would still apply. */ 5138#ifdef __cplusplus 5139extern "C" 5140#endif 5141char SSL_accept (); 5142int 5143main () 5144{ 5145return SSL_accept (); 5146 ; 5147 return 0; 5148} 5149_ACEOF 5150if ac_fn_c_try_link "$LINENO"; then : 5151 ac_cv_lib_ssl_SSL_accept=yes 5152else 5153 ac_cv_lib_ssl_SSL_accept=no 5154fi 5155rm -f core conftest.err conftest.$ac_objext \ 5156 conftest$ac_exeext conftest.$ac_ext 5157LIBS=$ac_check_lib_save_LIBS 5158fi 5159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_accept" >&5 5160$as_echo "$ac_cv_lib_ssl_SSL_accept" >&6; } 5161if test "x$ac_cv_lib_ssl_SSL_accept" = xyes; then : 5162 openssl_have_libs=1 5163fi 5164 5165fi 5166 5167 if test "$openssl_have_headers" != "0" && test "$openssl_have_libs" != "0"; then 5168 apu_have_openssl=1 5169 5170 if test "x$APRUTIL_LDFLAGS" = "x"; then 5171 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$withval/lib\"" 5172 APRUTIL_LDFLAGS="-L$withval/lib" 5173 else 5174 apr_addto_bugger="-L$withval/lib" 5175 for i in $apr_addto_bugger; do 5176 apr_addto_duplicate="0" 5177 for j in $APRUTIL_LDFLAGS; do 5178 if test "x$i" = "x$j"; then 5179 apr_addto_duplicate="1" 5180 break 5181 fi 5182 done 5183 if test $apr_addto_duplicate = "0"; then 5184 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 5185 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 5186 fi 5187 done 5188 fi 5189 5190 5191 if test "x$APRUTIL_INCLUDES" = "x"; then 5192 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$withval/include\"" 5193 APRUTIL_INCLUDES="-I$withval/include" 5194 else 5195 apr_addto_bugger="-I$withval/include" 5196 for i in $apr_addto_bugger; do 5197 apr_addto_duplicate="0" 5198 for j in $APRUTIL_INCLUDES; do 5199 if test "x$i" = "x$j"; then 5200 apr_addto_duplicate="1" 5201 break 5202 fi 5203 done 5204 if test $apr_addto_duplicate = "0"; then 5205 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 5206 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 5207 fi 5208 done 5209 fi 5210 5211 fi 5212 fi 5213 5214 ac_fn_c_check_decl "$LINENO" "EVP_PKEY_CTX_new" "ac_cv_have_decl_EVP_PKEY_CTX_new" "#include <openssl/evp.h> 5215" 5216if test "x$ac_cv_have_decl_EVP_PKEY_CTX_new" = xyes; then : 5217 ac_have_decl=1 5218else 5219 ac_have_decl=0 5220fi 5221 5222cat >>confdefs.h <<_ACEOF 5223#define HAVE_DECL_EVP_PKEY_CTX_NEW $ac_have_decl 5224_ACEOF 5225 5226 5227 fi 5228 5229else 5230 5231 apu_have_openssl=0 5232 5233fi 5234 5235 5236 5237 5238 if test "$apu_have_openssl" = "1"; then 5239 5240 if test "x$LDADD_crypto_openssl" = "x"; then 5241 test "x$silent" != "xyes" && echo " setting LDADD_crypto_openssl to \"$openssl_LDFLAGS -lssl -lcrypto\"" 5242 LDADD_crypto_openssl="$openssl_LDFLAGS -lssl -lcrypto" 5243 else 5244 apr_addto_bugger="$openssl_LDFLAGS -lssl -lcrypto" 5245 for i in $apr_addto_bugger; do 5246 apr_addto_duplicate="0" 5247 for j in $LDADD_crypto_openssl; do 5248 if test "x$i" = "x$j"; then 5249 apr_addto_duplicate="1" 5250 break 5251 fi 5252 done 5253 if test $apr_addto_duplicate = "0"; then 5254 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_crypto_openssl" 5255 LDADD_crypto_openssl="$LDADD_crypto_openssl $i" 5256 fi 5257 done 5258 fi 5259 5260 apu_have_crypto=1 5261 5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const input buffers in OpenSSL" >&5 5263$as_echo_n "checking for const input buffers in OpenSSL... " >&6; } 5264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5265/* end confdefs.h. */ 5266#include <openssl/rsa.h> 5267int 5268main () 5269{ 5270 const unsigned char * buf; 5271 unsigned char * outbuf; 5272 RSA rsa; 5273 5274 RSA_private_decrypt(1, 5275 buf, 5276 outbuf, 5277 &rsa, 5278 RSA_PKCS1_PADDING); 5279 5280 5281 ; 5282 return 0; 5283} 5284_ACEOF 5285if ac_fn_c_try_compile "$LINENO"; then : 5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5287$as_echo "yes" >&6; } 5288 5289$as_echo "#define CRYPTO_OPENSSL_CONST_BUFFERS 1" >>confdefs.h 5290 5291else 5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5293$as_echo "no" >&6; } 5294fi 5295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5296 5297 fi 5298 5299 5300 5301 LIBS="$old_libs" 5302 CPPFLAGS="$old_cppflags" 5303 LDFLAGS="$old_ldflags" 5304 5305 5306 nss_have_libs=0 5307 5308 old_libs="$LIBS" 5309 old_cppflags="$CPPFLAGS" 5310 old_ldflags="$LDFLAGS" 5311 5312 5313# Check whether --with-nss was given. 5314if test "${with_nss+set}" = set; then : 5315 withval=$with_nss; 5316 if test "$withval" = "yes"; then 5317 if test -n "$ac_tool_prefix"; then 5318 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 5319set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 5320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5321$as_echo_n "checking for $ac_word... " >&6; } 5322if ${ac_cv_path_PKG_CONFIG+:} false; then : 5323 $as_echo_n "(cached) " >&6 5324else 5325 case $PKG_CONFIG in 5326 [\\/]* | ?:[\\/]*) 5327 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5328 ;; 5329 *) 5330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5331for as_dir in $PATH 5332do 5333 IFS=$as_save_IFS 5334 test -z "$as_dir" && as_dir=. 5335 for ac_exec_ext in '' $ac_executable_extensions; do 5336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5337 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5339 break 2 5340 fi 5341done 5342 done 5343IFS=$as_save_IFS 5344 5345 ;; 5346esac 5347fi 5348PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5349if test -n "$PKG_CONFIG"; then 5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 5351$as_echo "$PKG_CONFIG" >&6; } 5352else 5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5354$as_echo "no" >&6; } 5355fi 5356 5357 5358fi 5359if test -z "$ac_cv_path_PKG_CONFIG"; then 5360 ac_pt_PKG_CONFIG=$PKG_CONFIG 5361 # Extract the first word of "pkg-config", so it can be a program name with args. 5362set dummy pkg-config; ac_word=$2 5363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5364$as_echo_n "checking for $ac_word... " >&6; } 5365if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 5366 $as_echo_n "(cached) " >&6 5367else 5368 case $ac_pt_PKG_CONFIG in 5369 [\\/]* | ?:[\\/]*) 5370 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 5371 ;; 5372 *) 5373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5374for as_dir in $PATH 5375do 5376 IFS=$as_save_IFS 5377 test -z "$as_dir" && as_dir=. 5378 for ac_exec_ext in '' $ac_executable_extensions; do 5379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5380 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5382 break 2 5383 fi 5384done 5385 done 5386IFS=$as_save_IFS 5387 5388 ;; 5389esac 5390fi 5391ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 5392if test -n "$ac_pt_PKG_CONFIG"; then 5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 5394$as_echo "$ac_pt_PKG_CONFIG" >&6; } 5395else 5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5397$as_echo "no" >&6; } 5398fi 5399 5400 if test "x$ac_pt_PKG_CONFIG" = x; then 5401 PKG_CONFIG="" 5402 else 5403 case $cross_compiling:$ac_tool_warned in 5404yes:) 5405{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5406$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5407ac_tool_warned=yes ;; 5408esac 5409 PKG_CONFIG=$ac_pt_PKG_CONFIG 5410 fi 5411else 5412 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5413fi 5414 5415 if test -n "$PKG_CONFIG"; then 5416 nss_CPPFLAGS=`$PKG_CONFIG --cflags-only-I nss` 5417 nss_LDFLAGS=`$PKG_CONFIG --libs nss` 5418 5419 if test "x$CPPFLAGS" = "x"; then 5420 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$nss_CPPFLAGS\"" 5421 CPPFLAGS="$nss_CPPFLAGS" 5422 else 5423 apr_addto_bugger="$nss_CPPFLAGS" 5424 for i in $apr_addto_bugger; do 5425 apr_addto_duplicate="0" 5426 for j in $CPPFLAGS; do 5427 if test "x$i" = "x$j"; then 5428 apr_addto_duplicate="1" 5429 break 5430 fi 5431 done 5432 if test $apr_addto_duplicate = "0"; then 5433 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 5434 CPPFLAGS="$CPPFLAGS $i" 5435 fi 5436 done 5437 fi 5438 5439 5440 if test "x$LDFLAGS" = "x"; then 5441 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$nss_LDFLAGS\"" 5442 LDFLAGS="$nss_LDFLAGS" 5443 else 5444 apr_addto_bugger="$nss_LDFLAGS" 5445 for i in $apr_addto_bugger; do 5446 apr_addto_duplicate="0" 5447 for j in $LDFLAGS; do 5448 if test "x$i" = "x$j"; then 5449 apr_addto_duplicate="1" 5450 break 5451 fi 5452 done 5453 if test $apr_addto_duplicate = "0"; then 5454 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 5455 LDFLAGS="$LDFLAGS $i" 5456 fi 5457 done 5458 fi 5459 5460 fi 5461 nss_have_prerrorh=0 5462 nss_have_nssh=0 5463 nss_have_pk11pubh=0 5464 for ac_header in prerror.h 5465do : 5466 ac_fn_c_check_header_mongrel "$LINENO" "prerror.h" "ac_cv_header_prerror_h" "$ac_includes_default" 5467if test "x$ac_cv_header_prerror_h" = xyes; then : 5468 cat >>confdefs.h <<_ACEOF 5469#define HAVE_PRERROR_H 1 5470_ACEOF 5471 nss_have_prerrorh=1 5472fi 5473 5474done 5475 5476 for ac_header in nss/nss.h nss.h 5477do : 5478 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5479ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5480if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5481 cat >>confdefs.h <<_ACEOF 5482#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5483_ACEOF 5484 nss_have_nssh=1 5485fi 5486 5487done 5488 5489 for ac_header in nss/pk11pub.h pk11pub.h 5490do : 5491 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5492ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5493if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5494 cat >>confdefs.h <<_ACEOF 5495#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5496_ACEOF 5497 nss_have_pk11pubh=1 5498fi 5499 5500done 5501 5502 nss_have_headers=${nss_have_prerrorh}${nss_have_nssh}${nss_have_pk11pubh} 5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Initialize in -lnspr4" >&5 5504$as_echo_n "checking for PR_Initialize in -lnspr4... " >&6; } 5505if ${ac_cv_lib_nspr4_PR_Initialize+:} false; then : 5506 $as_echo_n "(cached) " >&6 5507else 5508 ac_check_lib_save_LIBS=$LIBS 5509LIBS="-lnspr4 $LIBS" 5510cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5511/* end confdefs.h. */ 5512 5513/* Override any GCC internal prototype to avoid an error. 5514 Use char because int might match the return type of a GCC 5515 builtin and then its argument prototype would still apply. */ 5516#ifdef __cplusplus 5517extern "C" 5518#endif 5519char PR_Initialize (); 5520int 5521main () 5522{ 5523return PR_Initialize (); 5524 ; 5525 return 0; 5526} 5527_ACEOF 5528if ac_fn_c_try_link "$LINENO"; then : 5529 ac_cv_lib_nspr4_PR_Initialize=yes 5530else 5531 ac_cv_lib_nspr4_PR_Initialize=no 5532fi 5533rm -f core conftest.err conftest.$ac_objext \ 5534 conftest$ac_exeext conftest.$ac_ext 5535LIBS=$ac_check_lib_save_LIBS 5536fi 5537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr4_PR_Initialize" >&5 5538$as_echo "$ac_cv_lib_nspr4_PR_Initialize" >&6; } 5539if test "x$ac_cv_lib_nspr4_PR_Initialize" = xyes; then : 5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PK11_CreatePBEV2AlgorithmID in -lnss3" >&5 5541$as_echo_n "checking for PK11_CreatePBEV2AlgorithmID in -lnss3... " >&6; } 5542if ${ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID+:} false; then : 5543 $as_echo_n "(cached) " >&6 5544else 5545 ac_check_lib_save_LIBS=$LIBS 5546LIBS="-lnss3 -lnspr4 $LIBS" 5547cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5548/* end confdefs.h. */ 5549 5550/* Override any GCC internal prototype to avoid an error. 5551 Use char because int might match the return type of a GCC 5552 builtin and then its argument prototype would still apply. */ 5553#ifdef __cplusplus 5554extern "C" 5555#endif 5556char PK11_CreatePBEV2AlgorithmID (); 5557int 5558main () 5559{ 5560return PK11_CreatePBEV2AlgorithmID (); 5561 ; 5562 return 0; 5563} 5564_ACEOF 5565if ac_fn_c_try_link "$LINENO"; then : 5566 ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID=yes 5567else 5568 ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID=no 5569fi 5570rm -f core conftest.err conftest.$ac_objext \ 5571 conftest$ac_exeext conftest.$ac_ext 5572LIBS=$ac_check_lib_save_LIBS 5573fi 5574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID" >&5 5575$as_echo "$ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID" >&6; } 5576if test "x$ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID" = xyes; then : 5577 nss_have_libs=1 5578fi 5579 5580fi 5581 5582 if test "$nss_have_headers" = "111" && test "$nss_have_libs" != "0"; then 5583 apu_have_nss=1 5584 fi 5585 elif test "$withval" = "no"; then 5586 apu_have_nss=0 5587 elif test "x$withval" != "x"; then 5588 5589 nss_CPPFLAGS="-I$withval/include/nss -I$withval/include/nss3 -I$withval/include/nspr -I$withval/include/nspr4 -I$withval/include -I$withval/../public" 5590 nss_LDFLAGS="-L$withval/lib " 5591 5592 5593 if test "x$CPPFLAGS" = "x"; then 5594 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$nss_CPPFLAGS\"" 5595 CPPFLAGS="$nss_CPPFLAGS" 5596 else 5597 apr_addto_bugger="$nss_CPPFLAGS" 5598 for i in $apr_addto_bugger; do 5599 apr_addto_duplicate="0" 5600 for j in $CPPFLAGS; do 5601 if test "x$i" = "x$j"; then 5602 apr_addto_duplicate="1" 5603 break 5604 fi 5605 done 5606 if test $apr_addto_duplicate = "0"; then 5607 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 5608 CPPFLAGS="$CPPFLAGS $i" 5609 fi 5610 done 5611 fi 5612 5613 5614 if test "x$LDFLAGS" = "x"; then 5615 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$nss_LDFLAGS\"" 5616 LDFLAGS="$nss_LDFLAGS" 5617 else 5618 apr_addto_bugger="$nss_LDFLAGS" 5619 for i in $apr_addto_bugger; do 5620 apr_addto_duplicate="0" 5621 for j in $LDFLAGS; do 5622 if test "x$i" = "x$j"; then 5623 apr_addto_duplicate="1" 5624 break 5625 fi 5626 done 5627 if test $apr_addto_duplicate = "0"; then 5628 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 5629 LDFLAGS="$LDFLAGS $i" 5630 fi 5631 done 5632 fi 5633 5634 5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss in $withval" >&5 5636$as_echo "$as_me: checking for nss in $withval" >&6;} 5637 nss_have_prerrorh=0 5638 nss_have_nssh=0 5639 nss_have_pk11pubh=0 5640 for ac_header in prerror.h 5641do : 5642 ac_fn_c_check_header_mongrel "$LINENO" "prerror.h" "ac_cv_header_prerror_h" "$ac_includes_default" 5643if test "x$ac_cv_header_prerror_h" = xyes; then : 5644 cat >>confdefs.h <<_ACEOF 5645#define HAVE_PRERROR_H 1 5646_ACEOF 5647 nss_have_prerrorh=1 5648fi 5649 5650done 5651 5652 for ac_header in nss/nss.h nss.h 5653do : 5654 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5655ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5656if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5657 cat >>confdefs.h <<_ACEOF 5658#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5659_ACEOF 5660 nss_have_nssh=1 5661fi 5662 5663done 5664 5665 for ac_header in nss/pk11pub.h pk11pub.h 5666do : 5667 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5668ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5669if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5670 cat >>confdefs.h <<_ACEOF 5671#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5672_ACEOF 5673 nss_have_pk11pubh=1 5674fi 5675 5676done 5677 5678 nss_have_headers=${nss_have_prerrorh}${nss_have_nssh}${nss_have_pk11pubh} 5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Initialize in -lnspr4" >&5 5680$as_echo_n "checking for PR_Initialize in -lnspr4... " >&6; } 5681if ${ac_cv_lib_nspr4_PR_Initialize+:} false; then : 5682 $as_echo_n "(cached) " >&6 5683else 5684 ac_check_lib_save_LIBS=$LIBS 5685LIBS="-lnspr4 $LIBS" 5686cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5687/* end confdefs.h. */ 5688 5689/* Override any GCC internal prototype to avoid an error. 5690 Use char because int might match the return type of a GCC 5691 builtin and then its argument prototype would still apply. */ 5692#ifdef __cplusplus 5693extern "C" 5694#endif 5695char PR_Initialize (); 5696int 5697main () 5698{ 5699return PR_Initialize (); 5700 ; 5701 return 0; 5702} 5703_ACEOF 5704if ac_fn_c_try_link "$LINENO"; then : 5705 ac_cv_lib_nspr4_PR_Initialize=yes 5706else 5707 ac_cv_lib_nspr4_PR_Initialize=no 5708fi 5709rm -f core conftest.err conftest.$ac_objext \ 5710 conftest$ac_exeext conftest.$ac_ext 5711LIBS=$ac_check_lib_save_LIBS 5712fi 5713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr4_PR_Initialize" >&5 5714$as_echo "$ac_cv_lib_nspr4_PR_Initialize" >&6; } 5715if test "x$ac_cv_lib_nspr4_PR_Initialize" = xyes; then : 5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PK11_CreatePBEV2AlgorithmID in -lnss3" >&5 5717$as_echo_n "checking for PK11_CreatePBEV2AlgorithmID in -lnss3... " >&6; } 5718if ${ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID+:} false; then : 5719 $as_echo_n "(cached) " >&6 5720else 5721 ac_check_lib_save_LIBS=$LIBS 5722LIBS="-lnss3 -lnspr4 $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 PK11_CreatePBEV2AlgorithmID (); 5733int 5734main () 5735{ 5736return PK11_CreatePBEV2AlgorithmID (); 5737 ; 5738 return 0; 5739} 5740_ACEOF 5741if ac_fn_c_try_link "$LINENO"; then : 5742 ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID=yes 5743else 5744 ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID=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_nss3_PK11_CreatePBEV2AlgorithmID" >&5 5751$as_echo "$ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID" >&6; } 5752if test "x$ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID" = xyes; then : 5753 nss_have_libs=1 5754fi 5755 5756fi 5757 5758 if test "$nss_have_headers" = "111" && test "$nss_have_libs" != "0"; then 5759 apu_have_nss=1 5760 fi 5761 5762 fi 5763 if test "$apu_have_nss" != "0"; then 5764 5765 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 5766 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"$nss_CPPFLAGS\"" 5767 APRUTIL_PRIV_INCLUDES="$nss_CPPFLAGS" 5768 else 5769 apr_addto_bugger="$nss_CPPFLAGS" 5770 for i in $apr_addto_bugger; do 5771 apr_addto_duplicate="0" 5772 for j in $APRUTIL_PRIV_INCLUDES; do 5773 if test "x$i" = "x$j"; then 5774 apr_addto_duplicate="1" 5775 break 5776 fi 5777 done 5778 if test $apr_addto_duplicate = "0"; then 5779 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 5780 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 5781 fi 5782 done 5783 fi 5784 5785 fi 5786 5787else 5788 5789 apu_have_nss=0 5790 5791fi 5792 5793 5794 5795 5796 if test "$apu_have_nss" = "1"; then 5797 5798 if test "x$LDADD_crypto_nss" = "x"; then 5799 test "x$silent" != "xyes" && echo " setting LDADD_crypto_nss to \"$nss_LDFLAGS -lnspr4 -lnss3\"" 5800 LDADD_crypto_nss="$nss_LDFLAGS -lnspr4 -lnss3" 5801 else 5802 apr_addto_bugger="$nss_LDFLAGS -lnspr4 -lnss3" 5803 for i in $apr_addto_bugger; do 5804 apr_addto_duplicate="0" 5805 for j in $LDADD_crypto_nss; do 5806 if test "x$i" = "x$j"; then 5807 apr_addto_duplicate="1" 5808 break 5809 fi 5810 done 5811 if test $apr_addto_duplicate = "0"; then 5812 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_crypto_nss" 5813 LDADD_crypto_nss="$LDADD_crypto_nss $i" 5814 fi 5815 done 5816 fi 5817 5818 apu_have_crypto=1 5819 fi 5820 5821 5822 5823 LIBS="$old_libs" 5824 CPPFLAGS="$old_cppflags" 5825 LDFLAGS="$old_ldflags" 5826 5827 if test "$apu_have_crypto" = "0"; then 5828 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, etc." "$LINENO" 5 5829 fi 5830 fi 5831 5832else 5833 5834 apu_have_crypto=0 5835 5836fi 5837 5838 5839 5840 5841 5842 5843 5844echo $ac_n "${nl}checking for ldap support..." 5845 5846apu_has_ldap="0"; 5847apu_has_ldapssl_client_init="0" 5848apu_has_ldapssl_client_deinit="0" 5849apu_has_ldapssl_add_trusted_cert="0" 5850apu_has_ldap_start_tls_s="0" 5851apu_has_ldapssl_init="0" 5852apu_has_ldap_sslinit="0" 5853apu_has_ldapssl_install_routines="0" 5854apu_has_ldap_openldap="0" 5855apu_has_ldap_solaris="0" 5856apu_has_ldap_novell="0" 5857apu_has_ldap_microsoft="0" 5858apu_has_ldap_netscape="0" 5859apu_has_ldap_mozilla="0" 5860apu_has_ldap_tivoli="0" 5861apu_has_ldap_zos="0" 5862apu_has_ldap_other="0" 5863LDADD_ldap_found="" 5864 5865 5866# Check whether --with-lber was given. 5867if test "${with_lber+set}" = set; then : 5868 withval=$with_lber; 5869 if test "$withval" = "yes"; then 5870 apu_liblber_name="lber" 5871 else 5872 apu_liblber_name="$withval" 5873 fi 5874 5875else 5876 5877 apu_liblber_name="lber" 5878 5879fi 5880 5881 5882 5883# Check whether --with-ldap-include was given. 5884if test "${with_ldap_include+set}" = set; then : 5885 withval=$with_ldap_include; 5886fi 5887 5888 5889# Check whether --with-ldap-lib was given. 5890if test "${with_ldap_lib+set}" = set; then : 5891 withval=$with_ldap_lib; 5892fi 5893 5894 5895# Check whether --with-ldap was given. 5896if test "${with_ldap+set}" = set; then : 5897 withval=$with_ldap; 5898 if test "$with_ldap" != "no"; then 5899 save_cppflags="$CPPFLAGS" 5900 save_ldflags="$LDFLAGS" 5901 save_libs="$LIBS" 5902 if test -n "$with_ldap_include"; then 5903 CPPFLAGS="$CPPFLAGS -I$with_ldap_include" 5904 5905 if test "x$APRUTIL_INCLUDES" = "x"; then 5906 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$with_ldap_include\"" 5907 APRUTIL_INCLUDES="-I$with_ldap_include" 5908 else 5909 apr_addto_bugger="-I$with_ldap_include" 5910 for i in $apr_addto_bugger; do 5911 apr_addto_duplicate="0" 5912 for j in $APRUTIL_INCLUDES; do 5913 if test "x$i" = "x$j"; then 5914 apr_addto_duplicate="1" 5915 break 5916 fi 5917 done 5918 if test $apr_addto_duplicate = "0"; then 5919 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 5920 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 5921 fi 5922 done 5923 fi 5924 5925 fi 5926 if test -n "$with_ldap_lib"; then 5927 LDFLAGS="$LDFLAGS -L$with_ldap_lib" 5928 5929 if test "x$APRUTIL_LDFLAGS" = "x"; then 5930 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$with_ldap_lib\"" 5931 APRUTIL_LDFLAGS="-L$with_ldap_lib" 5932 else 5933 apr_addto_bugger="-L$with_ldap_lib" 5934 for i in $apr_addto_bugger; do 5935 apr_addto_duplicate="0" 5936 for j in $APRUTIL_LDFLAGS; do 5937 if test "x$i" = "x$j"; then 5938 apr_addto_duplicate="1" 5939 break 5940 fi 5941 done 5942 if test $apr_addto_duplicate = "0"; then 5943 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 5944 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 5945 fi 5946 done 5947 fi 5948 5949 fi 5950 5951 LIBLDAP="$withval" 5952 if test "$LIBLDAP" = "yes"; then 5953 5954 if test ${apu_has_ldap} != "1"; then 5955 ldaplib="ldap50" 5956 extralib="-lnspr4 -lplc4 -lplds4 -liutil50 -llber50 -lldif50 -lnss3 -lprldap50 -lssl3 -lssldap50" 5957 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 5958 5959 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 5960 5961 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 5962 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 5963 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 5964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 5965$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 5966if eval \${$as_ac_Lib+:} false; then : 5967 $as_echo_n "(cached) " >&6 5968else 5969 ac_check_lib_save_LIBS=$LIBS 5970LIBS="-l${ldaplib} ${extralib} $LIBS" 5971cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5972/* end confdefs.h. */ 5973 5974/* Override any GCC internal prototype to avoid an error. 5975 Use char because int might match the return type of a GCC 5976 builtin and then its argument prototype would still apply. */ 5977#ifdef __cplusplus 5978extern "C" 5979#endif 5980char ldap_init (); 5981int 5982main () 5983{ 5984return ldap_init (); 5985 ; 5986 return 0; 5987} 5988_ACEOF 5989if ac_fn_c_try_link "$LINENO"; then : 5990 eval "$as_ac_Lib=yes" 5991else 5992 eval "$as_ac_Lib=no" 5993fi 5994rm -f core conftest.err conftest.$ac_objext \ 5995 conftest$ac_exeext conftest.$ac_ext 5996LIBS=$ac_check_lib_save_LIBS 5997fi 5998eval ac_res=\$$as_ac_Lib 5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6000$as_echo "$ac_res" >&6; } 6001if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6002 6003 LDADD_ldap_found="-l${ldaplib} ${extralib}" 6004 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 6005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 6006$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 6007if eval \${$as_ac_Lib+:} false; then : 6008 $as_echo_n "(cached) " >&6 6009else 6010 ac_check_lib_save_LIBS=$LIBS 6011LIBS="-l${ldaplib} ${extralib} $LIBS" 6012cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6013/* end confdefs.h. */ 6014 6015/* Override any GCC internal prototype to avoid an error. 6016 Use char because int might match the return type of a GCC 6017 builtin and then its argument prototype would still apply. */ 6018#ifdef __cplusplus 6019extern "C" 6020#endif 6021char ldapssl_client_init (); 6022int 6023main () 6024{ 6025return ldapssl_client_init (); 6026 ; 6027 return 0; 6028} 6029_ACEOF 6030if ac_fn_c_try_link "$LINENO"; then : 6031 eval "$as_ac_Lib=yes" 6032else 6033 eval "$as_ac_Lib=no" 6034fi 6035rm -f core conftest.err conftest.$ac_objext \ 6036 conftest$ac_exeext conftest.$ac_ext 6037LIBS=$ac_check_lib_save_LIBS 6038fi 6039eval ac_res=\$$as_ac_Lib 6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6041$as_echo "$ac_res" >&6; } 6042if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6043 apu_has_ldapssl_client_init="1" 6044fi 6045 6046 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 6047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 6048$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 6049if eval \${$as_ac_Lib+:} false; then : 6050 $as_echo_n "(cached) " >&6 6051else 6052 ac_check_lib_save_LIBS=$LIBS 6053LIBS="-l${ldaplib} ${extralib} $LIBS" 6054cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6055/* end confdefs.h. */ 6056 6057/* Override any GCC internal prototype to avoid an error. 6058 Use char because int might match the return type of a GCC 6059 builtin and then its argument prototype would still apply. */ 6060#ifdef __cplusplus 6061extern "C" 6062#endif 6063char ldapssl_client_deinit (); 6064int 6065main () 6066{ 6067return ldapssl_client_deinit (); 6068 ; 6069 return 0; 6070} 6071_ACEOF 6072if ac_fn_c_try_link "$LINENO"; then : 6073 eval "$as_ac_Lib=yes" 6074else 6075 eval "$as_ac_Lib=no" 6076fi 6077rm -f core conftest.err conftest.$ac_objext \ 6078 conftest$ac_exeext conftest.$ac_ext 6079LIBS=$ac_check_lib_save_LIBS 6080fi 6081eval ac_res=\$$as_ac_Lib 6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6083$as_echo "$ac_res" >&6; } 6084if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6085 apu_has_ldapssl_client_deinit="1" 6086fi 6087 6088 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 6089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 6090$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 6091if eval \${$as_ac_Lib+:} false; then : 6092 $as_echo_n "(cached) " >&6 6093else 6094 ac_check_lib_save_LIBS=$LIBS 6095LIBS="-l${ldaplib} ${extralib} $LIBS" 6096cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6097/* end confdefs.h. */ 6098 6099/* Override any GCC internal prototype to avoid an error. 6100 Use char because int might match the return type of a GCC 6101 builtin and then its argument prototype would still apply. */ 6102#ifdef __cplusplus 6103extern "C" 6104#endif 6105char ldapssl_add_trusted_cert (); 6106int 6107main () 6108{ 6109return ldapssl_add_trusted_cert (); 6110 ; 6111 return 0; 6112} 6113_ACEOF 6114if ac_fn_c_try_link "$LINENO"; then : 6115 eval "$as_ac_Lib=yes" 6116else 6117 eval "$as_ac_Lib=no" 6118fi 6119rm -f core conftest.err conftest.$ac_objext \ 6120 conftest$ac_exeext conftest.$ac_ext 6121LIBS=$ac_check_lib_save_LIBS 6122fi 6123eval ac_res=\$$as_ac_Lib 6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6125$as_echo "$ac_res" >&6; } 6126if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6127 apu_has_ldapssl_add_trusted_cert="1" 6128fi 6129 6130 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 6131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 6132$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 6133if eval \${$as_ac_Lib+:} false; then : 6134 $as_echo_n "(cached) " >&6 6135else 6136 ac_check_lib_save_LIBS=$LIBS 6137LIBS="-l${ldaplib} ${extralib} $LIBS" 6138cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6139/* end confdefs.h. */ 6140 6141/* Override any GCC internal prototype to avoid an error. 6142 Use char because int might match the return type of a GCC 6143 builtin and then its argument prototype would still apply. */ 6144#ifdef __cplusplus 6145extern "C" 6146#endif 6147char ldap_start_tls_s (); 6148int 6149main () 6150{ 6151return ldap_start_tls_s (); 6152 ; 6153 return 0; 6154} 6155_ACEOF 6156if ac_fn_c_try_link "$LINENO"; then : 6157 eval "$as_ac_Lib=yes" 6158else 6159 eval "$as_ac_Lib=no" 6160fi 6161rm -f core conftest.err conftest.$ac_objext \ 6162 conftest$ac_exeext conftest.$ac_ext 6163LIBS=$ac_check_lib_save_LIBS 6164fi 6165eval ac_res=\$$as_ac_Lib 6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6167$as_echo "$ac_res" >&6; } 6168if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6169 apu_has_ldap_start_tls_s="1" 6170fi 6171 6172 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 6173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 6174$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 6175if eval \${$as_ac_Lib+:} false; then : 6176 $as_echo_n "(cached) " >&6 6177else 6178 ac_check_lib_save_LIBS=$LIBS 6179LIBS="-l${ldaplib} ${extralib} $LIBS" 6180cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6181/* end confdefs.h. */ 6182 6183/* Override any GCC internal prototype to avoid an error. 6184 Use char because int might match the return type of a GCC 6185 builtin and then its argument prototype would still apply. */ 6186#ifdef __cplusplus 6187extern "C" 6188#endif 6189char ldap_sslinit (); 6190int 6191main () 6192{ 6193return ldap_sslinit (); 6194 ; 6195 return 0; 6196} 6197_ACEOF 6198if ac_fn_c_try_link "$LINENO"; then : 6199 eval "$as_ac_Lib=yes" 6200else 6201 eval "$as_ac_Lib=no" 6202fi 6203rm -f core conftest.err conftest.$ac_objext \ 6204 conftest$ac_exeext conftest.$ac_ext 6205LIBS=$ac_check_lib_save_LIBS 6206fi 6207eval ac_res=\$$as_ac_Lib 6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6209$as_echo "$ac_res" >&6; } 6210if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6211 apu_has_ldap_sslinit="1" 6212fi 6213 6214 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 6215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 6216$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 6217if eval \${$as_ac_Lib+:} false; then : 6218 $as_echo_n "(cached) " >&6 6219else 6220 ac_check_lib_save_LIBS=$LIBS 6221LIBS="-l${ldaplib} ${extralib} $LIBS" 6222cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6223/* end confdefs.h. */ 6224 6225/* Override any GCC internal prototype to avoid an error. 6226 Use char because int might match the return type of a GCC 6227 builtin and then its argument prototype would still apply. */ 6228#ifdef __cplusplus 6229extern "C" 6230#endif 6231char ldapssl_init (); 6232int 6233main () 6234{ 6235return ldapssl_init (); 6236 ; 6237 return 0; 6238} 6239_ACEOF 6240if ac_fn_c_try_link "$LINENO"; then : 6241 eval "$as_ac_Lib=yes" 6242else 6243 eval "$as_ac_Lib=no" 6244fi 6245rm -f core conftest.err conftest.$ac_objext \ 6246 conftest$ac_exeext conftest.$ac_ext 6247LIBS=$ac_check_lib_save_LIBS 6248fi 6249eval ac_res=\$$as_ac_Lib 6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6251$as_echo "$ac_res" >&6; } 6252if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6253 apu_has_ldapssl_init="1" 6254fi 6255 6256 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 6257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 6258$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 6259if eval \${$as_ac_Lib+:} false; then : 6260 $as_echo_n "(cached) " >&6 6261else 6262 ac_check_lib_save_LIBS=$LIBS 6263LIBS="-l${ldaplib} ${extralib} $LIBS" 6264cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6265/* end confdefs.h. */ 6266 6267/* Override any GCC internal prototype to avoid an error. 6268 Use char because int might match the return type of a GCC 6269 builtin and then its argument prototype would still apply. */ 6270#ifdef __cplusplus 6271extern "C" 6272#endif 6273char ldapssl_install_routines (); 6274int 6275main () 6276{ 6277return ldapssl_install_routines (); 6278 ; 6279 return 0; 6280} 6281_ACEOF 6282if ac_fn_c_try_link "$LINENO"; then : 6283 eval "$as_ac_Lib=yes" 6284else 6285 eval "$as_ac_Lib=no" 6286fi 6287rm -f core conftest.err conftest.$ac_objext \ 6288 conftest$ac_exeext conftest.$ac_ext 6289LIBS=$ac_check_lib_save_LIBS 6290fi 6291eval ac_res=\$$as_ac_Lib 6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6293$as_echo "$ac_res" >&6; } 6294if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6295 apu_has_ldapssl_install_routines="1" 6296fi 6297 6298 apu_has_ldap="1"; 6299 6300fi 6301 6302 fi 6303 6304 6305 if test ${apu_has_ldap} != "1"; then 6306 ldaplib="ldapssl41" 6307 extralib="-lnspr3 -lplc3 -lplds3" 6308 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 6309 6310 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 6311 6312 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 6313 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 6314 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 6315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 6316$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 6317if eval \${$as_ac_Lib+:} false; then : 6318 $as_echo_n "(cached) " >&6 6319else 6320 ac_check_lib_save_LIBS=$LIBS 6321LIBS="-l${ldaplib} ${extralib} $LIBS" 6322cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6323/* end confdefs.h. */ 6324 6325/* Override any GCC internal prototype to avoid an error. 6326 Use char because int might match the return type of a GCC 6327 builtin and then its argument prototype would still apply. */ 6328#ifdef __cplusplus 6329extern "C" 6330#endif 6331char ldap_init (); 6332int 6333main () 6334{ 6335return ldap_init (); 6336 ; 6337 return 0; 6338} 6339_ACEOF 6340if ac_fn_c_try_link "$LINENO"; then : 6341 eval "$as_ac_Lib=yes" 6342else 6343 eval "$as_ac_Lib=no" 6344fi 6345rm -f core conftest.err conftest.$ac_objext \ 6346 conftest$ac_exeext conftest.$ac_ext 6347LIBS=$ac_check_lib_save_LIBS 6348fi 6349eval ac_res=\$$as_ac_Lib 6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6351$as_echo "$ac_res" >&6; } 6352if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6353 6354 LDADD_ldap_found="-l${ldaplib} ${extralib}" 6355 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 6356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 6357$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 6358if eval \${$as_ac_Lib+:} false; then : 6359 $as_echo_n "(cached) " >&6 6360else 6361 ac_check_lib_save_LIBS=$LIBS 6362LIBS="-l${ldaplib} ${extralib} $LIBS" 6363cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6364/* end confdefs.h. */ 6365 6366/* Override any GCC internal prototype to avoid an error. 6367 Use char because int might match the return type of a GCC 6368 builtin and then its argument prototype would still apply. */ 6369#ifdef __cplusplus 6370extern "C" 6371#endif 6372char ldapssl_client_init (); 6373int 6374main () 6375{ 6376return ldapssl_client_init (); 6377 ; 6378 return 0; 6379} 6380_ACEOF 6381if ac_fn_c_try_link "$LINENO"; then : 6382 eval "$as_ac_Lib=yes" 6383else 6384 eval "$as_ac_Lib=no" 6385fi 6386rm -f core conftest.err conftest.$ac_objext \ 6387 conftest$ac_exeext conftest.$ac_ext 6388LIBS=$ac_check_lib_save_LIBS 6389fi 6390eval ac_res=\$$as_ac_Lib 6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6392$as_echo "$ac_res" >&6; } 6393if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6394 apu_has_ldapssl_client_init="1" 6395fi 6396 6397 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 6398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 6399$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 6400if eval \${$as_ac_Lib+:} false; then : 6401 $as_echo_n "(cached) " >&6 6402else 6403 ac_check_lib_save_LIBS=$LIBS 6404LIBS="-l${ldaplib} ${extralib} $LIBS" 6405cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6406/* end confdefs.h. */ 6407 6408/* Override any GCC internal prototype to avoid an error. 6409 Use char because int might match the return type of a GCC 6410 builtin and then its argument prototype would still apply. */ 6411#ifdef __cplusplus 6412extern "C" 6413#endif 6414char ldapssl_client_deinit (); 6415int 6416main () 6417{ 6418return ldapssl_client_deinit (); 6419 ; 6420 return 0; 6421} 6422_ACEOF 6423if ac_fn_c_try_link "$LINENO"; then : 6424 eval "$as_ac_Lib=yes" 6425else 6426 eval "$as_ac_Lib=no" 6427fi 6428rm -f core conftest.err conftest.$ac_objext \ 6429 conftest$ac_exeext conftest.$ac_ext 6430LIBS=$ac_check_lib_save_LIBS 6431fi 6432eval ac_res=\$$as_ac_Lib 6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6434$as_echo "$ac_res" >&6; } 6435if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6436 apu_has_ldapssl_client_deinit="1" 6437fi 6438 6439 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 6440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 6441$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 6442if eval \${$as_ac_Lib+:} false; then : 6443 $as_echo_n "(cached) " >&6 6444else 6445 ac_check_lib_save_LIBS=$LIBS 6446LIBS="-l${ldaplib} ${extralib} $LIBS" 6447cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6448/* end confdefs.h. */ 6449 6450/* Override any GCC internal prototype to avoid an error. 6451 Use char because int might match the return type of a GCC 6452 builtin and then its argument prototype would still apply. */ 6453#ifdef __cplusplus 6454extern "C" 6455#endif 6456char ldapssl_add_trusted_cert (); 6457int 6458main () 6459{ 6460return ldapssl_add_trusted_cert (); 6461 ; 6462 return 0; 6463} 6464_ACEOF 6465if ac_fn_c_try_link "$LINENO"; then : 6466 eval "$as_ac_Lib=yes" 6467else 6468 eval "$as_ac_Lib=no" 6469fi 6470rm -f core conftest.err conftest.$ac_objext \ 6471 conftest$ac_exeext conftest.$ac_ext 6472LIBS=$ac_check_lib_save_LIBS 6473fi 6474eval ac_res=\$$as_ac_Lib 6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6476$as_echo "$ac_res" >&6; } 6477if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6478 apu_has_ldapssl_add_trusted_cert="1" 6479fi 6480 6481 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 6482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 6483$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 6484if eval \${$as_ac_Lib+:} false; then : 6485 $as_echo_n "(cached) " >&6 6486else 6487 ac_check_lib_save_LIBS=$LIBS 6488LIBS="-l${ldaplib} ${extralib} $LIBS" 6489cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6490/* end confdefs.h. */ 6491 6492/* Override any GCC internal prototype to avoid an error. 6493 Use char because int might match the return type of a GCC 6494 builtin and then its argument prototype would still apply. */ 6495#ifdef __cplusplus 6496extern "C" 6497#endif 6498char ldap_start_tls_s (); 6499int 6500main () 6501{ 6502return ldap_start_tls_s (); 6503 ; 6504 return 0; 6505} 6506_ACEOF 6507if ac_fn_c_try_link "$LINENO"; then : 6508 eval "$as_ac_Lib=yes" 6509else 6510 eval "$as_ac_Lib=no" 6511fi 6512rm -f core conftest.err conftest.$ac_objext \ 6513 conftest$ac_exeext conftest.$ac_ext 6514LIBS=$ac_check_lib_save_LIBS 6515fi 6516eval ac_res=\$$as_ac_Lib 6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6518$as_echo "$ac_res" >&6; } 6519if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6520 apu_has_ldap_start_tls_s="1" 6521fi 6522 6523 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 6524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 6525$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 6526if eval \${$as_ac_Lib+:} false; then : 6527 $as_echo_n "(cached) " >&6 6528else 6529 ac_check_lib_save_LIBS=$LIBS 6530LIBS="-l${ldaplib} ${extralib} $LIBS" 6531cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6532/* end confdefs.h. */ 6533 6534/* Override any GCC internal prototype to avoid an error. 6535 Use char because int might match the return type of a GCC 6536 builtin and then its argument prototype would still apply. */ 6537#ifdef __cplusplus 6538extern "C" 6539#endif 6540char ldap_sslinit (); 6541int 6542main () 6543{ 6544return ldap_sslinit (); 6545 ; 6546 return 0; 6547} 6548_ACEOF 6549if ac_fn_c_try_link "$LINENO"; then : 6550 eval "$as_ac_Lib=yes" 6551else 6552 eval "$as_ac_Lib=no" 6553fi 6554rm -f core conftest.err conftest.$ac_objext \ 6555 conftest$ac_exeext conftest.$ac_ext 6556LIBS=$ac_check_lib_save_LIBS 6557fi 6558eval ac_res=\$$as_ac_Lib 6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6560$as_echo "$ac_res" >&6; } 6561if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6562 apu_has_ldap_sslinit="1" 6563fi 6564 6565 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 6566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 6567$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 6568if eval \${$as_ac_Lib+:} false; then : 6569 $as_echo_n "(cached) " >&6 6570else 6571 ac_check_lib_save_LIBS=$LIBS 6572LIBS="-l${ldaplib} ${extralib} $LIBS" 6573cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6574/* end confdefs.h. */ 6575 6576/* Override any GCC internal prototype to avoid an error. 6577 Use char because int might match the return type of a GCC 6578 builtin and then its argument prototype would still apply. */ 6579#ifdef __cplusplus 6580extern "C" 6581#endif 6582char ldapssl_init (); 6583int 6584main () 6585{ 6586return ldapssl_init (); 6587 ; 6588 return 0; 6589} 6590_ACEOF 6591if ac_fn_c_try_link "$LINENO"; then : 6592 eval "$as_ac_Lib=yes" 6593else 6594 eval "$as_ac_Lib=no" 6595fi 6596rm -f core conftest.err conftest.$ac_objext \ 6597 conftest$ac_exeext conftest.$ac_ext 6598LIBS=$ac_check_lib_save_LIBS 6599fi 6600eval ac_res=\$$as_ac_Lib 6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6602$as_echo "$ac_res" >&6; } 6603if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6604 apu_has_ldapssl_init="1" 6605fi 6606 6607 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 6608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 6609$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 6610if eval \${$as_ac_Lib+:} false; then : 6611 $as_echo_n "(cached) " >&6 6612else 6613 ac_check_lib_save_LIBS=$LIBS 6614LIBS="-l${ldaplib} ${extralib} $LIBS" 6615cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6616/* end confdefs.h. */ 6617 6618/* Override any GCC internal prototype to avoid an error. 6619 Use char because int might match the return type of a GCC 6620 builtin and then its argument prototype would still apply. */ 6621#ifdef __cplusplus 6622extern "C" 6623#endif 6624char ldapssl_install_routines (); 6625int 6626main () 6627{ 6628return ldapssl_install_routines (); 6629 ; 6630 return 0; 6631} 6632_ACEOF 6633if ac_fn_c_try_link "$LINENO"; then : 6634 eval "$as_ac_Lib=yes" 6635else 6636 eval "$as_ac_Lib=no" 6637fi 6638rm -f core conftest.err conftest.$ac_objext \ 6639 conftest$ac_exeext conftest.$ac_ext 6640LIBS=$ac_check_lib_save_LIBS 6641fi 6642eval ac_res=\$$as_ac_Lib 6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6644$as_echo "$ac_res" >&6; } 6645if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6646 apu_has_ldapssl_install_routines="1" 6647fi 6648 6649 apu_has_ldap="1"; 6650 6651fi 6652 6653 fi 6654 6655 6656 if test ${apu_has_ldap} != "1"; then 6657 ldaplib="ldapssl40" 6658 extralib= 6659 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 6660 6661 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 6662 6663 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 6664 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 6665 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 6666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 6667$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 6668if eval \${$as_ac_Lib+:} false; then : 6669 $as_echo_n "(cached) " >&6 6670else 6671 ac_check_lib_save_LIBS=$LIBS 6672LIBS="-l${ldaplib} ${extralib} $LIBS" 6673cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6674/* end confdefs.h. */ 6675 6676/* Override any GCC internal prototype to avoid an error. 6677 Use char because int might match the return type of a GCC 6678 builtin and then its argument prototype would still apply. */ 6679#ifdef __cplusplus 6680extern "C" 6681#endif 6682char ldap_init (); 6683int 6684main () 6685{ 6686return ldap_init (); 6687 ; 6688 return 0; 6689} 6690_ACEOF 6691if ac_fn_c_try_link "$LINENO"; then : 6692 eval "$as_ac_Lib=yes" 6693else 6694 eval "$as_ac_Lib=no" 6695fi 6696rm -f core conftest.err conftest.$ac_objext \ 6697 conftest$ac_exeext conftest.$ac_ext 6698LIBS=$ac_check_lib_save_LIBS 6699fi 6700eval ac_res=\$$as_ac_Lib 6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6702$as_echo "$ac_res" >&6; } 6703if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6704 6705 LDADD_ldap_found="-l${ldaplib} ${extralib}" 6706 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 6707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 6708$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 6709if eval \${$as_ac_Lib+:} false; then : 6710 $as_echo_n "(cached) " >&6 6711else 6712 ac_check_lib_save_LIBS=$LIBS 6713LIBS="-l${ldaplib} ${extralib} $LIBS" 6714cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6715/* end confdefs.h. */ 6716 6717/* Override any GCC internal prototype to avoid an error. 6718 Use char because int might match the return type of a GCC 6719 builtin and then its argument prototype would still apply. */ 6720#ifdef __cplusplus 6721extern "C" 6722#endif 6723char ldapssl_client_init (); 6724int 6725main () 6726{ 6727return ldapssl_client_init (); 6728 ; 6729 return 0; 6730} 6731_ACEOF 6732if ac_fn_c_try_link "$LINENO"; then : 6733 eval "$as_ac_Lib=yes" 6734else 6735 eval "$as_ac_Lib=no" 6736fi 6737rm -f core conftest.err conftest.$ac_objext \ 6738 conftest$ac_exeext conftest.$ac_ext 6739LIBS=$ac_check_lib_save_LIBS 6740fi 6741eval ac_res=\$$as_ac_Lib 6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6743$as_echo "$ac_res" >&6; } 6744if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6745 apu_has_ldapssl_client_init="1" 6746fi 6747 6748 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 6749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 6750$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 6751if eval \${$as_ac_Lib+:} false; then : 6752 $as_echo_n "(cached) " >&6 6753else 6754 ac_check_lib_save_LIBS=$LIBS 6755LIBS="-l${ldaplib} ${extralib} $LIBS" 6756cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6757/* end confdefs.h. */ 6758 6759/* Override any GCC internal prototype to avoid an error. 6760 Use char because int might match the return type of a GCC 6761 builtin and then its argument prototype would still apply. */ 6762#ifdef __cplusplus 6763extern "C" 6764#endif 6765char ldapssl_client_deinit (); 6766int 6767main () 6768{ 6769return ldapssl_client_deinit (); 6770 ; 6771 return 0; 6772} 6773_ACEOF 6774if ac_fn_c_try_link "$LINENO"; then : 6775 eval "$as_ac_Lib=yes" 6776else 6777 eval "$as_ac_Lib=no" 6778fi 6779rm -f core conftest.err conftest.$ac_objext \ 6780 conftest$ac_exeext conftest.$ac_ext 6781LIBS=$ac_check_lib_save_LIBS 6782fi 6783eval ac_res=\$$as_ac_Lib 6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6785$as_echo "$ac_res" >&6; } 6786if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6787 apu_has_ldapssl_client_deinit="1" 6788fi 6789 6790 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 6791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 6792$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 6793if eval \${$as_ac_Lib+:} false; then : 6794 $as_echo_n "(cached) " >&6 6795else 6796 ac_check_lib_save_LIBS=$LIBS 6797LIBS="-l${ldaplib} ${extralib} $LIBS" 6798cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6799/* end confdefs.h. */ 6800 6801/* Override any GCC internal prototype to avoid an error. 6802 Use char because int might match the return type of a GCC 6803 builtin and then its argument prototype would still apply. */ 6804#ifdef __cplusplus 6805extern "C" 6806#endif 6807char ldapssl_add_trusted_cert (); 6808int 6809main () 6810{ 6811return ldapssl_add_trusted_cert (); 6812 ; 6813 return 0; 6814} 6815_ACEOF 6816if ac_fn_c_try_link "$LINENO"; then : 6817 eval "$as_ac_Lib=yes" 6818else 6819 eval "$as_ac_Lib=no" 6820fi 6821rm -f core conftest.err conftest.$ac_objext \ 6822 conftest$ac_exeext conftest.$ac_ext 6823LIBS=$ac_check_lib_save_LIBS 6824fi 6825eval ac_res=\$$as_ac_Lib 6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6827$as_echo "$ac_res" >&6; } 6828if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6829 apu_has_ldapssl_add_trusted_cert="1" 6830fi 6831 6832 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 6833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 6834$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 6835if eval \${$as_ac_Lib+:} false; then : 6836 $as_echo_n "(cached) " >&6 6837else 6838 ac_check_lib_save_LIBS=$LIBS 6839LIBS="-l${ldaplib} ${extralib} $LIBS" 6840cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6841/* end confdefs.h. */ 6842 6843/* Override any GCC internal prototype to avoid an error. 6844 Use char because int might match the return type of a GCC 6845 builtin and then its argument prototype would still apply. */ 6846#ifdef __cplusplus 6847extern "C" 6848#endif 6849char ldap_start_tls_s (); 6850int 6851main () 6852{ 6853return ldap_start_tls_s (); 6854 ; 6855 return 0; 6856} 6857_ACEOF 6858if ac_fn_c_try_link "$LINENO"; then : 6859 eval "$as_ac_Lib=yes" 6860else 6861 eval "$as_ac_Lib=no" 6862fi 6863rm -f core conftest.err conftest.$ac_objext \ 6864 conftest$ac_exeext conftest.$ac_ext 6865LIBS=$ac_check_lib_save_LIBS 6866fi 6867eval ac_res=\$$as_ac_Lib 6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6869$as_echo "$ac_res" >&6; } 6870if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6871 apu_has_ldap_start_tls_s="1" 6872fi 6873 6874 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 6875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 6876$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 6877if eval \${$as_ac_Lib+:} false; then : 6878 $as_echo_n "(cached) " >&6 6879else 6880 ac_check_lib_save_LIBS=$LIBS 6881LIBS="-l${ldaplib} ${extralib} $LIBS" 6882cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6883/* end confdefs.h. */ 6884 6885/* Override any GCC internal prototype to avoid an error. 6886 Use char because int might match the return type of a GCC 6887 builtin and then its argument prototype would still apply. */ 6888#ifdef __cplusplus 6889extern "C" 6890#endif 6891char ldap_sslinit (); 6892int 6893main () 6894{ 6895return ldap_sslinit (); 6896 ; 6897 return 0; 6898} 6899_ACEOF 6900if ac_fn_c_try_link "$LINENO"; then : 6901 eval "$as_ac_Lib=yes" 6902else 6903 eval "$as_ac_Lib=no" 6904fi 6905rm -f core conftest.err conftest.$ac_objext \ 6906 conftest$ac_exeext conftest.$ac_ext 6907LIBS=$ac_check_lib_save_LIBS 6908fi 6909eval ac_res=\$$as_ac_Lib 6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6911$as_echo "$ac_res" >&6; } 6912if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6913 apu_has_ldap_sslinit="1" 6914fi 6915 6916 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 6917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 6918$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 6919if eval \${$as_ac_Lib+:} false; then : 6920 $as_echo_n "(cached) " >&6 6921else 6922 ac_check_lib_save_LIBS=$LIBS 6923LIBS="-l${ldaplib} ${extralib} $LIBS" 6924cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6925/* end confdefs.h. */ 6926 6927/* Override any GCC internal prototype to avoid an error. 6928 Use char because int might match the return type of a GCC 6929 builtin and then its argument prototype would still apply. */ 6930#ifdef __cplusplus 6931extern "C" 6932#endif 6933char ldapssl_init (); 6934int 6935main () 6936{ 6937return ldapssl_init (); 6938 ; 6939 return 0; 6940} 6941_ACEOF 6942if ac_fn_c_try_link "$LINENO"; then : 6943 eval "$as_ac_Lib=yes" 6944else 6945 eval "$as_ac_Lib=no" 6946fi 6947rm -f core conftest.err conftest.$ac_objext \ 6948 conftest$ac_exeext conftest.$ac_ext 6949LIBS=$ac_check_lib_save_LIBS 6950fi 6951eval ac_res=\$$as_ac_Lib 6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6953$as_echo "$ac_res" >&6; } 6954if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6955 apu_has_ldapssl_init="1" 6956fi 6957 6958 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 6959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 6960$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 6961if eval \${$as_ac_Lib+:} false; then : 6962 $as_echo_n "(cached) " >&6 6963else 6964 ac_check_lib_save_LIBS=$LIBS 6965LIBS="-l${ldaplib} ${extralib} $LIBS" 6966cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6967/* end confdefs.h. */ 6968 6969/* Override any GCC internal prototype to avoid an error. 6970 Use char because int might match the return type of a GCC 6971 builtin and then its argument prototype would still apply. */ 6972#ifdef __cplusplus 6973extern "C" 6974#endif 6975char ldapssl_install_routines (); 6976int 6977main () 6978{ 6979return ldapssl_install_routines (); 6980 ; 6981 return 0; 6982} 6983_ACEOF 6984if ac_fn_c_try_link "$LINENO"; then : 6985 eval "$as_ac_Lib=yes" 6986else 6987 eval "$as_ac_Lib=no" 6988fi 6989rm -f core conftest.err conftest.$ac_objext \ 6990 conftest$ac_exeext conftest.$ac_ext 6991LIBS=$ac_check_lib_save_LIBS 6992fi 6993eval ac_res=\$$as_ac_Lib 6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6995$as_echo "$ac_res" >&6; } 6996if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6997 apu_has_ldapssl_install_routines="1" 6998fi 6999 7000 apu_has_ldap="1"; 7001 7002fi 7003 7004 fi 7005 7006 7007 if test ${apu_has_ldap} != "1"; then 7008 ldaplib="ldapssl30" 7009 extralib= 7010 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 7011 7012 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 7013 7014 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 7015 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 7016 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 7017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 7018$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 7019if eval \${$as_ac_Lib+:} false; then : 7020 $as_echo_n "(cached) " >&6 7021else 7022 ac_check_lib_save_LIBS=$LIBS 7023LIBS="-l${ldaplib} ${extralib} $LIBS" 7024cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7025/* end confdefs.h. */ 7026 7027/* Override any GCC internal prototype to avoid an error. 7028 Use char because int might match the return type of a GCC 7029 builtin and then its argument prototype would still apply. */ 7030#ifdef __cplusplus 7031extern "C" 7032#endif 7033char ldap_init (); 7034int 7035main () 7036{ 7037return ldap_init (); 7038 ; 7039 return 0; 7040} 7041_ACEOF 7042if ac_fn_c_try_link "$LINENO"; then : 7043 eval "$as_ac_Lib=yes" 7044else 7045 eval "$as_ac_Lib=no" 7046fi 7047rm -f core conftest.err conftest.$ac_objext \ 7048 conftest$ac_exeext conftest.$ac_ext 7049LIBS=$ac_check_lib_save_LIBS 7050fi 7051eval ac_res=\$$as_ac_Lib 7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7053$as_echo "$ac_res" >&6; } 7054if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7055 7056 LDADD_ldap_found="-l${ldaplib} ${extralib}" 7057 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 7058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 7059$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 7060if eval \${$as_ac_Lib+:} false; then : 7061 $as_echo_n "(cached) " >&6 7062else 7063 ac_check_lib_save_LIBS=$LIBS 7064LIBS="-l${ldaplib} ${extralib} $LIBS" 7065cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7066/* end confdefs.h. */ 7067 7068/* Override any GCC internal prototype to avoid an error. 7069 Use char because int might match the return type of a GCC 7070 builtin and then its argument prototype would still apply. */ 7071#ifdef __cplusplus 7072extern "C" 7073#endif 7074char ldapssl_client_init (); 7075int 7076main () 7077{ 7078return ldapssl_client_init (); 7079 ; 7080 return 0; 7081} 7082_ACEOF 7083if ac_fn_c_try_link "$LINENO"; then : 7084 eval "$as_ac_Lib=yes" 7085else 7086 eval "$as_ac_Lib=no" 7087fi 7088rm -f core conftest.err conftest.$ac_objext \ 7089 conftest$ac_exeext conftest.$ac_ext 7090LIBS=$ac_check_lib_save_LIBS 7091fi 7092eval ac_res=\$$as_ac_Lib 7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7094$as_echo "$ac_res" >&6; } 7095if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7096 apu_has_ldapssl_client_init="1" 7097fi 7098 7099 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 7100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 7101$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 7102if eval \${$as_ac_Lib+:} false; then : 7103 $as_echo_n "(cached) " >&6 7104else 7105 ac_check_lib_save_LIBS=$LIBS 7106LIBS="-l${ldaplib} ${extralib} $LIBS" 7107cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7108/* end confdefs.h. */ 7109 7110/* Override any GCC internal prototype to avoid an error. 7111 Use char because int might match the return type of a GCC 7112 builtin and then its argument prototype would still apply. */ 7113#ifdef __cplusplus 7114extern "C" 7115#endif 7116char ldapssl_client_deinit (); 7117int 7118main () 7119{ 7120return ldapssl_client_deinit (); 7121 ; 7122 return 0; 7123} 7124_ACEOF 7125if ac_fn_c_try_link "$LINENO"; then : 7126 eval "$as_ac_Lib=yes" 7127else 7128 eval "$as_ac_Lib=no" 7129fi 7130rm -f core conftest.err conftest.$ac_objext \ 7131 conftest$ac_exeext conftest.$ac_ext 7132LIBS=$ac_check_lib_save_LIBS 7133fi 7134eval ac_res=\$$as_ac_Lib 7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7136$as_echo "$ac_res" >&6; } 7137if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7138 apu_has_ldapssl_client_deinit="1" 7139fi 7140 7141 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 7142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 7143$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 7144if eval \${$as_ac_Lib+:} false; then : 7145 $as_echo_n "(cached) " >&6 7146else 7147 ac_check_lib_save_LIBS=$LIBS 7148LIBS="-l${ldaplib} ${extralib} $LIBS" 7149cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7150/* end confdefs.h. */ 7151 7152/* Override any GCC internal prototype to avoid an error. 7153 Use char because int might match the return type of a GCC 7154 builtin and then its argument prototype would still apply. */ 7155#ifdef __cplusplus 7156extern "C" 7157#endif 7158char ldapssl_add_trusted_cert (); 7159int 7160main () 7161{ 7162return ldapssl_add_trusted_cert (); 7163 ; 7164 return 0; 7165} 7166_ACEOF 7167if ac_fn_c_try_link "$LINENO"; then : 7168 eval "$as_ac_Lib=yes" 7169else 7170 eval "$as_ac_Lib=no" 7171fi 7172rm -f core conftest.err conftest.$ac_objext \ 7173 conftest$ac_exeext conftest.$ac_ext 7174LIBS=$ac_check_lib_save_LIBS 7175fi 7176eval ac_res=\$$as_ac_Lib 7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7178$as_echo "$ac_res" >&6; } 7179if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7180 apu_has_ldapssl_add_trusted_cert="1" 7181fi 7182 7183 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 7184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 7185$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 7186if eval \${$as_ac_Lib+:} false; then : 7187 $as_echo_n "(cached) " >&6 7188else 7189 ac_check_lib_save_LIBS=$LIBS 7190LIBS="-l${ldaplib} ${extralib} $LIBS" 7191cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7192/* end confdefs.h. */ 7193 7194/* Override any GCC internal prototype to avoid an error. 7195 Use char because int might match the return type of a GCC 7196 builtin and then its argument prototype would still apply. */ 7197#ifdef __cplusplus 7198extern "C" 7199#endif 7200char ldap_start_tls_s (); 7201int 7202main () 7203{ 7204return ldap_start_tls_s (); 7205 ; 7206 return 0; 7207} 7208_ACEOF 7209if ac_fn_c_try_link "$LINENO"; then : 7210 eval "$as_ac_Lib=yes" 7211else 7212 eval "$as_ac_Lib=no" 7213fi 7214rm -f core conftest.err conftest.$ac_objext \ 7215 conftest$ac_exeext conftest.$ac_ext 7216LIBS=$ac_check_lib_save_LIBS 7217fi 7218eval ac_res=\$$as_ac_Lib 7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7220$as_echo "$ac_res" >&6; } 7221if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7222 apu_has_ldap_start_tls_s="1" 7223fi 7224 7225 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 7226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 7227$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 7228if eval \${$as_ac_Lib+:} false; then : 7229 $as_echo_n "(cached) " >&6 7230else 7231 ac_check_lib_save_LIBS=$LIBS 7232LIBS="-l${ldaplib} ${extralib} $LIBS" 7233cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7234/* end confdefs.h. */ 7235 7236/* Override any GCC internal prototype to avoid an error. 7237 Use char because int might match the return type of a GCC 7238 builtin and then its argument prototype would still apply. */ 7239#ifdef __cplusplus 7240extern "C" 7241#endif 7242char ldap_sslinit (); 7243int 7244main () 7245{ 7246return ldap_sslinit (); 7247 ; 7248 return 0; 7249} 7250_ACEOF 7251if ac_fn_c_try_link "$LINENO"; then : 7252 eval "$as_ac_Lib=yes" 7253else 7254 eval "$as_ac_Lib=no" 7255fi 7256rm -f core conftest.err conftest.$ac_objext \ 7257 conftest$ac_exeext conftest.$ac_ext 7258LIBS=$ac_check_lib_save_LIBS 7259fi 7260eval ac_res=\$$as_ac_Lib 7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7262$as_echo "$ac_res" >&6; } 7263if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7264 apu_has_ldap_sslinit="1" 7265fi 7266 7267 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 7268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 7269$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 7270if eval \${$as_ac_Lib+:} false; then : 7271 $as_echo_n "(cached) " >&6 7272else 7273 ac_check_lib_save_LIBS=$LIBS 7274LIBS="-l${ldaplib} ${extralib} $LIBS" 7275cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7276/* end confdefs.h. */ 7277 7278/* Override any GCC internal prototype to avoid an error. 7279 Use char because int might match the return type of a GCC 7280 builtin and then its argument prototype would still apply. */ 7281#ifdef __cplusplus 7282extern "C" 7283#endif 7284char ldapssl_init (); 7285int 7286main () 7287{ 7288return ldapssl_init (); 7289 ; 7290 return 0; 7291} 7292_ACEOF 7293if ac_fn_c_try_link "$LINENO"; then : 7294 eval "$as_ac_Lib=yes" 7295else 7296 eval "$as_ac_Lib=no" 7297fi 7298rm -f core conftest.err conftest.$ac_objext \ 7299 conftest$ac_exeext conftest.$ac_ext 7300LIBS=$ac_check_lib_save_LIBS 7301fi 7302eval ac_res=\$$as_ac_Lib 7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7304$as_echo "$ac_res" >&6; } 7305if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7306 apu_has_ldapssl_init="1" 7307fi 7308 7309 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 7310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 7311$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 7312if eval \${$as_ac_Lib+:} false; then : 7313 $as_echo_n "(cached) " >&6 7314else 7315 ac_check_lib_save_LIBS=$LIBS 7316LIBS="-l${ldaplib} ${extralib} $LIBS" 7317cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7318/* end confdefs.h. */ 7319 7320/* Override any GCC internal prototype to avoid an error. 7321 Use char because int might match the return type of a GCC 7322 builtin and then its argument prototype would still apply. */ 7323#ifdef __cplusplus 7324extern "C" 7325#endif 7326char ldapssl_install_routines (); 7327int 7328main () 7329{ 7330return ldapssl_install_routines (); 7331 ; 7332 return 0; 7333} 7334_ACEOF 7335if ac_fn_c_try_link "$LINENO"; then : 7336 eval "$as_ac_Lib=yes" 7337else 7338 eval "$as_ac_Lib=no" 7339fi 7340rm -f core conftest.err conftest.$ac_objext \ 7341 conftest$ac_exeext conftest.$ac_ext 7342LIBS=$ac_check_lib_save_LIBS 7343fi 7344eval ac_res=\$$as_ac_Lib 7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7346$as_echo "$ac_res" >&6; } 7347if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7348 apu_has_ldapssl_install_routines="1" 7349fi 7350 7351 apu_has_ldap="1"; 7352 7353fi 7354 7355 fi 7356 7357 7358 if test ${apu_has_ldap} != "1"; then 7359 ldaplib="ldapssl20" 7360 extralib= 7361 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 7362 7363 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 7364 7365 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 7366 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 7367 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 7368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 7369$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 7370if eval \${$as_ac_Lib+:} false; then : 7371 $as_echo_n "(cached) " >&6 7372else 7373 ac_check_lib_save_LIBS=$LIBS 7374LIBS="-l${ldaplib} ${extralib} $LIBS" 7375cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7376/* end confdefs.h. */ 7377 7378/* Override any GCC internal prototype to avoid an error. 7379 Use char because int might match the return type of a GCC 7380 builtin and then its argument prototype would still apply. */ 7381#ifdef __cplusplus 7382extern "C" 7383#endif 7384char ldap_init (); 7385int 7386main () 7387{ 7388return ldap_init (); 7389 ; 7390 return 0; 7391} 7392_ACEOF 7393if ac_fn_c_try_link "$LINENO"; then : 7394 eval "$as_ac_Lib=yes" 7395else 7396 eval "$as_ac_Lib=no" 7397fi 7398rm -f core conftest.err conftest.$ac_objext \ 7399 conftest$ac_exeext conftest.$ac_ext 7400LIBS=$ac_check_lib_save_LIBS 7401fi 7402eval ac_res=\$$as_ac_Lib 7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7404$as_echo "$ac_res" >&6; } 7405if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7406 7407 LDADD_ldap_found="-l${ldaplib} ${extralib}" 7408 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 7409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 7410$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 7411if eval \${$as_ac_Lib+:} false; then : 7412 $as_echo_n "(cached) " >&6 7413else 7414 ac_check_lib_save_LIBS=$LIBS 7415LIBS="-l${ldaplib} ${extralib} $LIBS" 7416cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7417/* end confdefs.h. */ 7418 7419/* Override any GCC internal prototype to avoid an error. 7420 Use char because int might match the return type of a GCC 7421 builtin and then its argument prototype would still apply. */ 7422#ifdef __cplusplus 7423extern "C" 7424#endif 7425char ldapssl_client_init (); 7426int 7427main () 7428{ 7429return ldapssl_client_init (); 7430 ; 7431 return 0; 7432} 7433_ACEOF 7434if ac_fn_c_try_link "$LINENO"; then : 7435 eval "$as_ac_Lib=yes" 7436else 7437 eval "$as_ac_Lib=no" 7438fi 7439rm -f core conftest.err conftest.$ac_objext \ 7440 conftest$ac_exeext conftest.$ac_ext 7441LIBS=$ac_check_lib_save_LIBS 7442fi 7443eval ac_res=\$$as_ac_Lib 7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7445$as_echo "$ac_res" >&6; } 7446if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7447 apu_has_ldapssl_client_init="1" 7448fi 7449 7450 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 7451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 7452$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 7453if eval \${$as_ac_Lib+:} false; then : 7454 $as_echo_n "(cached) " >&6 7455else 7456 ac_check_lib_save_LIBS=$LIBS 7457LIBS="-l${ldaplib} ${extralib} $LIBS" 7458cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7459/* end confdefs.h. */ 7460 7461/* Override any GCC internal prototype to avoid an error. 7462 Use char because int might match the return type of a GCC 7463 builtin and then its argument prototype would still apply. */ 7464#ifdef __cplusplus 7465extern "C" 7466#endif 7467char ldapssl_client_deinit (); 7468int 7469main () 7470{ 7471return ldapssl_client_deinit (); 7472 ; 7473 return 0; 7474} 7475_ACEOF 7476if ac_fn_c_try_link "$LINENO"; then : 7477 eval "$as_ac_Lib=yes" 7478else 7479 eval "$as_ac_Lib=no" 7480fi 7481rm -f core conftest.err conftest.$ac_objext \ 7482 conftest$ac_exeext conftest.$ac_ext 7483LIBS=$ac_check_lib_save_LIBS 7484fi 7485eval ac_res=\$$as_ac_Lib 7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7487$as_echo "$ac_res" >&6; } 7488if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7489 apu_has_ldapssl_client_deinit="1" 7490fi 7491 7492 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 7493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 7494$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 7495if eval \${$as_ac_Lib+:} false; then : 7496 $as_echo_n "(cached) " >&6 7497else 7498 ac_check_lib_save_LIBS=$LIBS 7499LIBS="-l${ldaplib} ${extralib} $LIBS" 7500cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7501/* end confdefs.h. */ 7502 7503/* Override any GCC internal prototype to avoid an error. 7504 Use char because int might match the return type of a GCC 7505 builtin and then its argument prototype would still apply. */ 7506#ifdef __cplusplus 7507extern "C" 7508#endif 7509char ldapssl_add_trusted_cert (); 7510int 7511main () 7512{ 7513return ldapssl_add_trusted_cert (); 7514 ; 7515 return 0; 7516} 7517_ACEOF 7518if ac_fn_c_try_link "$LINENO"; then : 7519 eval "$as_ac_Lib=yes" 7520else 7521 eval "$as_ac_Lib=no" 7522fi 7523rm -f core conftest.err conftest.$ac_objext \ 7524 conftest$ac_exeext conftest.$ac_ext 7525LIBS=$ac_check_lib_save_LIBS 7526fi 7527eval ac_res=\$$as_ac_Lib 7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7529$as_echo "$ac_res" >&6; } 7530if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7531 apu_has_ldapssl_add_trusted_cert="1" 7532fi 7533 7534 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 7535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 7536$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 7537if eval \${$as_ac_Lib+:} false; then : 7538 $as_echo_n "(cached) " >&6 7539else 7540 ac_check_lib_save_LIBS=$LIBS 7541LIBS="-l${ldaplib} ${extralib} $LIBS" 7542cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7543/* end confdefs.h. */ 7544 7545/* Override any GCC internal prototype to avoid an error. 7546 Use char because int might match the return type of a GCC 7547 builtin and then its argument prototype would still apply. */ 7548#ifdef __cplusplus 7549extern "C" 7550#endif 7551char ldap_start_tls_s (); 7552int 7553main () 7554{ 7555return ldap_start_tls_s (); 7556 ; 7557 return 0; 7558} 7559_ACEOF 7560if ac_fn_c_try_link "$LINENO"; then : 7561 eval "$as_ac_Lib=yes" 7562else 7563 eval "$as_ac_Lib=no" 7564fi 7565rm -f core conftest.err conftest.$ac_objext \ 7566 conftest$ac_exeext conftest.$ac_ext 7567LIBS=$ac_check_lib_save_LIBS 7568fi 7569eval ac_res=\$$as_ac_Lib 7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7571$as_echo "$ac_res" >&6; } 7572if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7573 apu_has_ldap_start_tls_s="1" 7574fi 7575 7576 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 7577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 7578$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 7579if eval \${$as_ac_Lib+:} false; then : 7580 $as_echo_n "(cached) " >&6 7581else 7582 ac_check_lib_save_LIBS=$LIBS 7583LIBS="-l${ldaplib} ${extralib} $LIBS" 7584cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7585/* end confdefs.h. */ 7586 7587/* Override any GCC internal prototype to avoid an error. 7588 Use char because int might match the return type of a GCC 7589 builtin and then its argument prototype would still apply. */ 7590#ifdef __cplusplus 7591extern "C" 7592#endif 7593char ldap_sslinit (); 7594int 7595main () 7596{ 7597return ldap_sslinit (); 7598 ; 7599 return 0; 7600} 7601_ACEOF 7602if ac_fn_c_try_link "$LINENO"; then : 7603 eval "$as_ac_Lib=yes" 7604else 7605 eval "$as_ac_Lib=no" 7606fi 7607rm -f core conftest.err conftest.$ac_objext \ 7608 conftest$ac_exeext conftest.$ac_ext 7609LIBS=$ac_check_lib_save_LIBS 7610fi 7611eval ac_res=\$$as_ac_Lib 7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7613$as_echo "$ac_res" >&6; } 7614if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7615 apu_has_ldap_sslinit="1" 7616fi 7617 7618 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 7619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 7620$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 7621if eval \${$as_ac_Lib+:} false; then : 7622 $as_echo_n "(cached) " >&6 7623else 7624 ac_check_lib_save_LIBS=$LIBS 7625LIBS="-l${ldaplib} ${extralib} $LIBS" 7626cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7627/* end confdefs.h. */ 7628 7629/* Override any GCC internal prototype to avoid an error. 7630 Use char because int might match the return type of a GCC 7631 builtin and then its argument prototype would still apply. */ 7632#ifdef __cplusplus 7633extern "C" 7634#endif 7635char ldapssl_init (); 7636int 7637main () 7638{ 7639return ldapssl_init (); 7640 ; 7641 return 0; 7642} 7643_ACEOF 7644if ac_fn_c_try_link "$LINENO"; then : 7645 eval "$as_ac_Lib=yes" 7646else 7647 eval "$as_ac_Lib=no" 7648fi 7649rm -f core conftest.err conftest.$ac_objext \ 7650 conftest$ac_exeext conftest.$ac_ext 7651LIBS=$ac_check_lib_save_LIBS 7652fi 7653eval ac_res=\$$as_ac_Lib 7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7655$as_echo "$ac_res" >&6; } 7656if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7657 apu_has_ldapssl_init="1" 7658fi 7659 7660 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 7661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 7662$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 7663if eval \${$as_ac_Lib+:} false; then : 7664 $as_echo_n "(cached) " >&6 7665else 7666 ac_check_lib_save_LIBS=$LIBS 7667LIBS="-l${ldaplib} ${extralib} $LIBS" 7668cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7669/* end confdefs.h. */ 7670 7671/* Override any GCC internal prototype to avoid an error. 7672 Use char because int might match the return type of a GCC 7673 builtin and then its argument prototype would still apply. */ 7674#ifdef __cplusplus 7675extern "C" 7676#endif 7677char ldapssl_install_routines (); 7678int 7679main () 7680{ 7681return ldapssl_install_routines (); 7682 ; 7683 return 0; 7684} 7685_ACEOF 7686if ac_fn_c_try_link "$LINENO"; then : 7687 eval "$as_ac_Lib=yes" 7688else 7689 eval "$as_ac_Lib=no" 7690fi 7691rm -f core conftest.err conftest.$ac_objext \ 7692 conftest$ac_exeext conftest.$ac_ext 7693LIBS=$ac_check_lib_save_LIBS 7694fi 7695eval ac_res=\$$as_ac_Lib 7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7697$as_echo "$ac_res" >&6; } 7698if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7699 apu_has_ldapssl_install_routines="1" 7700fi 7701 7702 apu_has_ldap="1"; 7703 7704fi 7705 7706 fi 7707 7708 7709 if test ${apu_has_ldap} != "1"; then 7710 ldaplib="ldapsdk" 7711 extralib="-lldapx -lldapssl -lldapgss -lgssapi_krb5" 7712 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 7713 7714 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 7715 7716 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 7717 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 7718 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 7719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 7720$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 7721if eval \${$as_ac_Lib+:} false; then : 7722 $as_echo_n "(cached) " >&6 7723else 7724 ac_check_lib_save_LIBS=$LIBS 7725LIBS="-l${ldaplib} ${extralib} $LIBS" 7726cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7727/* end confdefs.h. */ 7728 7729/* Override any GCC internal prototype to avoid an error. 7730 Use char because int might match the return type of a GCC 7731 builtin and then its argument prototype would still apply. */ 7732#ifdef __cplusplus 7733extern "C" 7734#endif 7735char ldap_init (); 7736int 7737main () 7738{ 7739return ldap_init (); 7740 ; 7741 return 0; 7742} 7743_ACEOF 7744if ac_fn_c_try_link "$LINENO"; then : 7745 eval "$as_ac_Lib=yes" 7746else 7747 eval "$as_ac_Lib=no" 7748fi 7749rm -f core conftest.err conftest.$ac_objext \ 7750 conftest$ac_exeext conftest.$ac_ext 7751LIBS=$ac_check_lib_save_LIBS 7752fi 7753eval ac_res=\$$as_ac_Lib 7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7755$as_echo "$ac_res" >&6; } 7756if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7757 7758 LDADD_ldap_found="-l${ldaplib} ${extralib}" 7759 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 7760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 7761$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 7762if eval \${$as_ac_Lib+:} false; then : 7763 $as_echo_n "(cached) " >&6 7764else 7765 ac_check_lib_save_LIBS=$LIBS 7766LIBS="-l${ldaplib} ${extralib} $LIBS" 7767cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7768/* end confdefs.h. */ 7769 7770/* Override any GCC internal prototype to avoid an error. 7771 Use char because int might match the return type of a GCC 7772 builtin and then its argument prototype would still apply. */ 7773#ifdef __cplusplus 7774extern "C" 7775#endif 7776char ldapssl_client_init (); 7777int 7778main () 7779{ 7780return ldapssl_client_init (); 7781 ; 7782 return 0; 7783} 7784_ACEOF 7785if ac_fn_c_try_link "$LINENO"; then : 7786 eval "$as_ac_Lib=yes" 7787else 7788 eval "$as_ac_Lib=no" 7789fi 7790rm -f core conftest.err conftest.$ac_objext \ 7791 conftest$ac_exeext conftest.$ac_ext 7792LIBS=$ac_check_lib_save_LIBS 7793fi 7794eval ac_res=\$$as_ac_Lib 7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7796$as_echo "$ac_res" >&6; } 7797if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7798 apu_has_ldapssl_client_init="1" 7799fi 7800 7801 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 7802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 7803$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 7804if eval \${$as_ac_Lib+:} false; then : 7805 $as_echo_n "(cached) " >&6 7806else 7807 ac_check_lib_save_LIBS=$LIBS 7808LIBS="-l${ldaplib} ${extralib} $LIBS" 7809cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7810/* end confdefs.h. */ 7811 7812/* Override any GCC internal prototype to avoid an error. 7813 Use char because int might match the return type of a GCC 7814 builtin and then its argument prototype would still apply. */ 7815#ifdef __cplusplus 7816extern "C" 7817#endif 7818char ldapssl_client_deinit (); 7819int 7820main () 7821{ 7822return ldapssl_client_deinit (); 7823 ; 7824 return 0; 7825} 7826_ACEOF 7827if ac_fn_c_try_link "$LINENO"; then : 7828 eval "$as_ac_Lib=yes" 7829else 7830 eval "$as_ac_Lib=no" 7831fi 7832rm -f core conftest.err conftest.$ac_objext \ 7833 conftest$ac_exeext conftest.$ac_ext 7834LIBS=$ac_check_lib_save_LIBS 7835fi 7836eval ac_res=\$$as_ac_Lib 7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7838$as_echo "$ac_res" >&6; } 7839if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7840 apu_has_ldapssl_client_deinit="1" 7841fi 7842 7843 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 7844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 7845$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 7846if eval \${$as_ac_Lib+:} false; then : 7847 $as_echo_n "(cached) " >&6 7848else 7849 ac_check_lib_save_LIBS=$LIBS 7850LIBS="-l${ldaplib} ${extralib} $LIBS" 7851cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7852/* end confdefs.h. */ 7853 7854/* Override any GCC internal prototype to avoid an error. 7855 Use char because int might match the return type of a GCC 7856 builtin and then its argument prototype would still apply. */ 7857#ifdef __cplusplus 7858extern "C" 7859#endif 7860char ldapssl_add_trusted_cert (); 7861int 7862main () 7863{ 7864return ldapssl_add_trusted_cert (); 7865 ; 7866 return 0; 7867} 7868_ACEOF 7869if ac_fn_c_try_link "$LINENO"; then : 7870 eval "$as_ac_Lib=yes" 7871else 7872 eval "$as_ac_Lib=no" 7873fi 7874rm -f core conftest.err conftest.$ac_objext \ 7875 conftest$ac_exeext conftest.$ac_ext 7876LIBS=$ac_check_lib_save_LIBS 7877fi 7878eval ac_res=\$$as_ac_Lib 7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7880$as_echo "$ac_res" >&6; } 7881if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7882 apu_has_ldapssl_add_trusted_cert="1" 7883fi 7884 7885 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 7886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 7887$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 7888if eval \${$as_ac_Lib+:} false; then : 7889 $as_echo_n "(cached) " >&6 7890else 7891 ac_check_lib_save_LIBS=$LIBS 7892LIBS="-l${ldaplib} ${extralib} $LIBS" 7893cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7894/* end confdefs.h. */ 7895 7896/* Override any GCC internal prototype to avoid an error. 7897 Use char because int might match the return type of a GCC 7898 builtin and then its argument prototype would still apply. */ 7899#ifdef __cplusplus 7900extern "C" 7901#endif 7902char ldap_start_tls_s (); 7903int 7904main () 7905{ 7906return ldap_start_tls_s (); 7907 ; 7908 return 0; 7909} 7910_ACEOF 7911if ac_fn_c_try_link "$LINENO"; then : 7912 eval "$as_ac_Lib=yes" 7913else 7914 eval "$as_ac_Lib=no" 7915fi 7916rm -f core conftest.err conftest.$ac_objext \ 7917 conftest$ac_exeext conftest.$ac_ext 7918LIBS=$ac_check_lib_save_LIBS 7919fi 7920eval ac_res=\$$as_ac_Lib 7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7922$as_echo "$ac_res" >&6; } 7923if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7924 apu_has_ldap_start_tls_s="1" 7925fi 7926 7927 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 7928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 7929$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 7930if eval \${$as_ac_Lib+:} false; then : 7931 $as_echo_n "(cached) " >&6 7932else 7933 ac_check_lib_save_LIBS=$LIBS 7934LIBS="-l${ldaplib} ${extralib} $LIBS" 7935cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7936/* end confdefs.h. */ 7937 7938/* Override any GCC internal prototype to avoid an error. 7939 Use char because int might match the return type of a GCC 7940 builtin and then its argument prototype would still apply. */ 7941#ifdef __cplusplus 7942extern "C" 7943#endif 7944char ldap_sslinit (); 7945int 7946main () 7947{ 7948return ldap_sslinit (); 7949 ; 7950 return 0; 7951} 7952_ACEOF 7953if ac_fn_c_try_link "$LINENO"; then : 7954 eval "$as_ac_Lib=yes" 7955else 7956 eval "$as_ac_Lib=no" 7957fi 7958rm -f core conftest.err conftest.$ac_objext \ 7959 conftest$ac_exeext conftest.$ac_ext 7960LIBS=$ac_check_lib_save_LIBS 7961fi 7962eval ac_res=\$$as_ac_Lib 7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7964$as_echo "$ac_res" >&6; } 7965if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7966 apu_has_ldap_sslinit="1" 7967fi 7968 7969 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 7970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 7971$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 7972if eval \${$as_ac_Lib+:} false; then : 7973 $as_echo_n "(cached) " >&6 7974else 7975 ac_check_lib_save_LIBS=$LIBS 7976LIBS="-l${ldaplib} ${extralib} $LIBS" 7977cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7978/* end confdefs.h. */ 7979 7980/* Override any GCC internal prototype to avoid an error. 7981 Use char because int might match the return type of a GCC 7982 builtin and then its argument prototype would still apply. */ 7983#ifdef __cplusplus 7984extern "C" 7985#endif 7986char ldapssl_init (); 7987int 7988main () 7989{ 7990return ldapssl_init (); 7991 ; 7992 return 0; 7993} 7994_ACEOF 7995if ac_fn_c_try_link "$LINENO"; then : 7996 eval "$as_ac_Lib=yes" 7997else 7998 eval "$as_ac_Lib=no" 7999fi 8000rm -f core conftest.err conftest.$ac_objext \ 8001 conftest$ac_exeext conftest.$ac_ext 8002LIBS=$ac_check_lib_save_LIBS 8003fi 8004eval ac_res=\$$as_ac_Lib 8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8006$as_echo "$ac_res" >&6; } 8007if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8008 apu_has_ldapssl_init="1" 8009fi 8010 8011 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 8012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 8013$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 8014if eval \${$as_ac_Lib+:} false; then : 8015 $as_echo_n "(cached) " >&6 8016else 8017 ac_check_lib_save_LIBS=$LIBS 8018LIBS="-l${ldaplib} ${extralib} $LIBS" 8019cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8020/* end confdefs.h. */ 8021 8022/* Override any GCC internal prototype to avoid an error. 8023 Use char because int might match the return type of a GCC 8024 builtin and then its argument prototype would still apply. */ 8025#ifdef __cplusplus 8026extern "C" 8027#endif 8028char ldapssl_install_routines (); 8029int 8030main () 8031{ 8032return ldapssl_install_routines (); 8033 ; 8034 return 0; 8035} 8036_ACEOF 8037if ac_fn_c_try_link "$LINENO"; then : 8038 eval "$as_ac_Lib=yes" 8039else 8040 eval "$as_ac_Lib=no" 8041fi 8042rm -f core conftest.err conftest.$ac_objext \ 8043 conftest$ac_exeext conftest.$ac_ext 8044LIBS=$ac_check_lib_save_LIBS 8045fi 8046eval ac_res=\$$as_ac_Lib 8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8048$as_echo "$ac_res" >&6; } 8049if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8050 apu_has_ldapssl_install_routines="1" 8051fi 8052 8053 apu_has_ldap="1"; 8054 8055fi 8056 8057 fi 8058 8059 8060 if test ${apu_has_ldap} != "1"; then 8061 ldaplib="ldapsdk" 8062 extralib="-lldapx -lldapssl -lldapgss -lgss -lresolv -lsocket" 8063 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 8064 8065 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 8066 8067 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 8068 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 8069 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 8070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 8071$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 8072if eval \${$as_ac_Lib+:} false; then : 8073 $as_echo_n "(cached) " >&6 8074else 8075 ac_check_lib_save_LIBS=$LIBS 8076LIBS="-l${ldaplib} ${extralib} $LIBS" 8077cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8078/* end confdefs.h. */ 8079 8080/* Override any GCC internal prototype to avoid an error. 8081 Use char because int might match the return type of a GCC 8082 builtin and then its argument prototype would still apply. */ 8083#ifdef __cplusplus 8084extern "C" 8085#endif 8086char ldap_init (); 8087int 8088main () 8089{ 8090return ldap_init (); 8091 ; 8092 return 0; 8093} 8094_ACEOF 8095if ac_fn_c_try_link "$LINENO"; then : 8096 eval "$as_ac_Lib=yes" 8097else 8098 eval "$as_ac_Lib=no" 8099fi 8100rm -f core conftest.err conftest.$ac_objext \ 8101 conftest$ac_exeext conftest.$ac_ext 8102LIBS=$ac_check_lib_save_LIBS 8103fi 8104eval ac_res=\$$as_ac_Lib 8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8106$as_echo "$ac_res" >&6; } 8107if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8108 8109 LDADD_ldap_found="-l${ldaplib} ${extralib}" 8110 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 8111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 8112$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 8113if eval \${$as_ac_Lib+:} false; then : 8114 $as_echo_n "(cached) " >&6 8115else 8116 ac_check_lib_save_LIBS=$LIBS 8117LIBS="-l${ldaplib} ${extralib} $LIBS" 8118cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8119/* end confdefs.h. */ 8120 8121/* Override any GCC internal prototype to avoid an error. 8122 Use char because int might match the return type of a GCC 8123 builtin and then its argument prototype would still apply. */ 8124#ifdef __cplusplus 8125extern "C" 8126#endif 8127char ldapssl_client_init (); 8128int 8129main () 8130{ 8131return ldapssl_client_init (); 8132 ; 8133 return 0; 8134} 8135_ACEOF 8136if ac_fn_c_try_link "$LINENO"; then : 8137 eval "$as_ac_Lib=yes" 8138else 8139 eval "$as_ac_Lib=no" 8140fi 8141rm -f core conftest.err conftest.$ac_objext \ 8142 conftest$ac_exeext conftest.$ac_ext 8143LIBS=$ac_check_lib_save_LIBS 8144fi 8145eval ac_res=\$$as_ac_Lib 8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8147$as_echo "$ac_res" >&6; } 8148if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8149 apu_has_ldapssl_client_init="1" 8150fi 8151 8152 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 8153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 8154$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 8155if eval \${$as_ac_Lib+:} false; then : 8156 $as_echo_n "(cached) " >&6 8157else 8158 ac_check_lib_save_LIBS=$LIBS 8159LIBS="-l${ldaplib} ${extralib} $LIBS" 8160cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8161/* end confdefs.h. */ 8162 8163/* Override any GCC internal prototype to avoid an error. 8164 Use char because int might match the return type of a GCC 8165 builtin and then its argument prototype would still apply. */ 8166#ifdef __cplusplus 8167extern "C" 8168#endif 8169char ldapssl_client_deinit (); 8170int 8171main () 8172{ 8173return ldapssl_client_deinit (); 8174 ; 8175 return 0; 8176} 8177_ACEOF 8178if ac_fn_c_try_link "$LINENO"; then : 8179 eval "$as_ac_Lib=yes" 8180else 8181 eval "$as_ac_Lib=no" 8182fi 8183rm -f core conftest.err conftest.$ac_objext \ 8184 conftest$ac_exeext conftest.$ac_ext 8185LIBS=$ac_check_lib_save_LIBS 8186fi 8187eval ac_res=\$$as_ac_Lib 8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8189$as_echo "$ac_res" >&6; } 8190if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8191 apu_has_ldapssl_client_deinit="1" 8192fi 8193 8194 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 8195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 8196$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 8197if eval \${$as_ac_Lib+:} false; then : 8198 $as_echo_n "(cached) " >&6 8199else 8200 ac_check_lib_save_LIBS=$LIBS 8201LIBS="-l${ldaplib} ${extralib} $LIBS" 8202cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8203/* end confdefs.h. */ 8204 8205/* Override any GCC internal prototype to avoid an error. 8206 Use char because int might match the return type of a GCC 8207 builtin and then its argument prototype would still apply. */ 8208#ifdef __cplusplus 8209extern "C" 8210#endif 8211char ldapssl_add_trusted_cert (); 8212int 8213main () 8214{ 8215return ldapssl_add_trusted_cert (); 8216 ; 8217 return 0; 8218} 8219_ACEOF 8220if ac_fn_c_try_link "$LINENO"; then : 8221 eval "$as_ac_Lib=yes" 8222else 8223 eval "$as_ac_Lib=no" 8224fi 8225rm -f core conftest.err conftest.$ac_objext \ 8226 conftest$ac_exeext conftest.$ac_ext 8227LIBS=$ac_check_lib_save_LIBS 8228fi 8229eval ac_res=\$$as_ac_Lib 8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8231$as_echo "$ac_res" >&6; } 8232if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8233 apu_has_ldapssl_add_trusted_cert="1" 8234fi 8235 8236 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 8237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 8238$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 8239if eval \${$as_ac_Lib+:} false; then : 8240 $as_echo_n "(cached) " >&6 8241else 8242 ac_check_lib_save_LIBS=$LIBS 8243LIBS="-l${ldaplib} ${extralib} $LIBS" 8244cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8245/* end confdefs.h. */ 8246 8247/* Override any GCC internal prototype to avoid an error. 8248 Use char because int might match the return type of a GCC 8249 builtin and then its argument prototype would still apply. */ 8250#ifdef __cplusplus 8251extern "C" 8252#endif 8253char ldap_start_tls_s (); 8254int 8255main () 8256{ 8257return ldap_start_tls_s (); 8258 ; 8259 return 0; 8260} 8261_ACEOF 8262if ac_fn_c_try_link "$LINENO"; then : 8263 eval "$as_ac_Lib=yes" 8264else 8265 eval "$as_ac_Lib=no" 8266fi 8267rm -f core conftest.err conftest.$ac_objext \ 8268 conftest$ac_exeext conftest.$ac_ext 8269LIBS=$ac_check_lib_save_LIBS 8270fi 8271eval ac_res=\$$as_ac_Lib 8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8273$as_echo "$ac_res" >&6; } 8274if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8275 apu_has_ldap_start_tls_s="1" 8276fi 8277 8278 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 8279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 8280$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 8281if eval \${$as_ac_Lib+:} false; then : 8282 $as_echo_n "(cached) " >&6 8283else 8284 ac_check_lib_save_LIBS=$LIBS 8285LIBS="-l${ldaplib} ${extralib} $LIBS" 8286cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8287/* end confdefs.h. */ 8288 8289/* Override any GCC internal prototype to avoid an error. 8290 Use char because int might match the return type of a GCC 8291 builtin and then its argument prototype would still apply. */ 8292#ifdef __cplusplus 8293extern "C" 8294#endif 8295char ldap_sslinit (); 8296int 8297main () 8298{ 8299return ldap_sslinit (); 8300 ; 8301 return 0; 8302} 8303_ACEOF 8304if ac_fn_c_try_link "$LINENO"; then : 8305 eval "$as_ac_Lib=yes" 8306else 8307 eval "$as_ac_Lib=no" 8308fi 8309rm -f core conftest.err conftest.$ac_objext \ 8310 conftest$ac_exeext conftest.$ac_ext 8311LIBS=$ac_check_lib_save_LIBS 8312fi 8313eval ac_res=\$$as_ac_Lib 8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8315$as_echo "$ac_res" >&6; } 8316if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8317 apu_has_ldap_sslinit="1" 8318fi 8319 8320 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 8321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 8322$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 8323if eval \${$as_ac_Lib+:} false; then : 8324 $as_echo_n "(cached) " >&6 8325else 8326 ac_check_lib_save_LIBS=$LIBS 8327LIBS="-l${ldaplib} ${extralib} $LIBS" 8328cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8329/* end confdefs.h. */ 8330 8331/* Override any GCC internal prototype to avoid an error. 8332 Use char because int might match the return type of a GCC 8333 builtin and then its argument prototype would still apply. */ 8334#ifdef __cplusplus 8335extern "C" 8336#endif 8337char ldapssl_init (); 8338int 8339main () 8340{ 8341return ldapssl_init (); 8342 ; 8343 return 0; 8344} 8345_ACEOF 8346if ac_fn_c_try_link "$LINENO"; then : 8347 eval "$as_ac_Lib=yes" 8348else 8349 eval "$as_ac_Lib=no" 8350fi 8351rm -f core conftest.err conftest.$ac_objext \ 8352 conftest$ac_exeext conftest.$ac_ext 8353LIBS=$ac_check_lib_save_LIBS 8354fi 8355eval ac_res=\$$as_ac_Lib 8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8357$as_echo "$ac_res" >&6; } 8358if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8359 apu_has_ldapssl_init="1" 8360fi 8361 8362 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 8363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 8364$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 8365if eval \${$as_ac_Lib+:} false; then : 8366 $as_echo_n "(cached) " >&6 8367else 8368 ac_check_lib_save_LIBS=$LIBS 8369LIBS="-l${ldaplib} ${extralib} $LIBS" 8370cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8371/* end confdefs.h. */ 8372 8373/* Override any GCC internal prototype to avoid an error. 8374 Use char because int might match the return type of a GCC 8375 builtin and then its argument prototype would still apply. */ 8376#ifdef __cplusplus 8377extern "C" 8378#endif 8379char ldapssl_install_routines (); 8380int 8381main () 8382{ 8383return ldapssl_install_routines (); 8384 ; 8385 return 0; 8386} 8387_ACEOF 8388if ac_fn_c_try_link "$LINENO"; then : 8389 eval "$as_ac_Lib=yes" 8390else 8391 eval "$as_ac_Lib=no" 8392fi 8393rm -f core conftest.err conftest.$ac_objext \ 8394 conftest$ac_exeext conftest.$ac_ext 8395LIBS=$ac_check_lib_save_LIBS 8396fi 8397eval ac_res=\$$as_ac_Lib 8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8399$as_echo "$ac_res" >&6; } 8400if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8401 apu_has_ldapssl_install_routines="1" 8402fi 8403 8404 apu_has_ldap="1"; 8405 8406fi 8407 8408 fi 8409 8410 8411 if test ${apu_has_ldap} != "1"; then 8412 ldaplib="ldap" 8413 extralib="-llber" 8414 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 8415 8416 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 8417 8418 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 8419 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 8420 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 8421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 8422$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 8423if eval \${$as_ac_Lib+:} false; then : 8424 $as_echo_n "(cached) " >&6 8425else 8426 ac_check_lib_save_LIBS=$LIBS 8427LIBS="-l${ldaplib} ${extralib} $LIBS" 8428cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8429/* end confdefs.h. */ 8430 8431/* Override any GCC internal prototype to avoid an error. 8432 Use char because int might match the return type of a GCC 8433 builtin and then its argument prototype would still apply. */ 8434#ifdef __cplusplus 8435extern "C" 8436#endif 8437char ldap_init (); 8438int 8439main () 8440{ 8441return ldap_init (); 8442 ; 8443 return 0; 8444} 8445_ACEOF 8446if ac_fn_c_try_link "$LINENO"; then : 8447 eval "$as_ac_Lib=yes" 8448else 8449 eval "$as_ac_Lib=no" 8450fi 8451rm -f core conftest.err conftest.$ac_objext \ 8452 conftest$ac_exeext conftest.$ac_ext 8453LIBS=$ac_check_lib_save_LIBS 8454fi 8455eval ac_res=\$$as_ac_Lib 8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8457$as_echo "$ac_res" >&6; } 8458if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8459 8460 LDADD_ldap_found="-l${ldaplib} ${extralib}" 8461 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 8462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 8463$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 8464if eval \${$as_ac_Lib+:} false; then : 8465 $as_echo_n "(cached) " >&6 8466else 8467 ac_check_lib_save_LIBS=$LIBS 8468LIBS="-l${ldaplib} ${extralib} $LIBS" 8469cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8470/* end confdefs.h. */ 8471 8472/* Override any GCC internal prototype to avoid an error. 8473 Use char because int might match the return type of a GCC 8474 builtin and then its argument prototype would still apply. */ 8475#ifdef __cplusplus 8476extern "C" 8477#endif 8478char ldapssl_client_init (); 8479int 8480main () 8481{ 8482return ldapssl_client_init (); 8483 ; 8484 return 0; 8485} 8486_ACEOF 8487if ac_fn_c_try_link "$LINENO"; then : 8488 eval "$as_ac_Lib=yes" 8489else 8490 eval "$as_ac_Lib=no" 8491fi 8492rm -f core conftest.err conftest.$ac_objext \ 8493 conftest$ac_exeext conftest.$ac_ext 8494LIBS=$ac_check_lib_save_LIBS 8495fi 8496eval ac_res=\$$as_ac_Lib 8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8498$as_echo "$ac_res" >&6; } 8499if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8500 apu_has_ldapssl_client_init="1" 8501fi 8502 8503 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 8504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 8505$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 8506if eval \${$as_ac_Lib+:} false; then : 8507 $as_echo_n "(cached) " >&6 8508else 8509 ac_check_lib_save_LIBS=$LIBS 8510LIBS="-l${ldaplib} ${extralib} $LIBS" 8511cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8512/* end confdefs.h. */ 8513 8514/* Override any GCC internal prototype to avoid an error. 8515 Use char because int might match the return type of a GCC 8516 builtin and then its argument prototype would still apply. */ 8517#ifdef __cplusplus 8518extern "C" 8519#endif 8520char ldapssl_client_deinit (); 8521int 8522main () 8523{ 8524return ldapssl_client_deinit (); 8525 ; 8526 return 0; 8527} 8528_ACEOF 8529if ac_fn_c_try_link "$LINENO"; then : 8530 eval "$as_ac_Lib=yes" 8531else 8532 eval "$as_ac_Lib=no" 8533fi 8534rm -f core conftest.err conftest.$ac_objext \ 8535 conftest$ac_exeext conftest.$ac_ext 8536LIBS=$ac_check_lib_save_LIBS 8537fi 8538eval ac_res=\$$as_ac_Lib 8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8540$as_echo "$ac_res" >&6; } 8541if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8542 apu_has_ldapssl_client_deinit="1" 8543fi 8544 8545 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 8546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 8547$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 8548if eval \${$as_ac_Lib+:} false; then : 8549 $as_echo_n "(cached) " >&6 8550else 8551 ac_check_lib_save_LIBS=$LIBS 8552LIBS="-l${ldaplib} ${extralib} $LIBS" 8553cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8554/* end confdefs.h. */ 8555 8556/* Override any GCC internal prototype to avoid an error. 8557 Use char because int might match the return type of a GCC 8558 builtin and then its argument prototype would still apply. */ 8559#ifdef __cplusplus 8560extern "C" 8561#endif 8562char ldapssl_add_trusted_cert (); 8563int 8564main () 8565{ 8566return ldapssl_add_trusted_cert (); 8567 ; 8568 return 0; 8569} 8570_ACEOF 8571if ac_fn_c_try_link "$LINENO"; then : 8572 eval "$as_ac_Lib=yes" 8573else 8574 eval "$as_ac_Lib=no" 8575fi 8576rm -f core conftest.err conftest.$ac_objext \ 8577 conftest$ac_exeext conftest.$ac_ext 8578LIBS=$ac_check_lib_save_LIBS 8579fi 8580eval ac_res=\$$as_ac_Lib 8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8582$as_echo "$ac_res" >&6; } 8583if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8584 apu_has_ldapssl_add_trusted_cert="1" 8585fi 8586 8587 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 8588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 8589$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 8590if eval \${$as_ac_Lib+:} false; then : 8591 $as_echo_n "(cached) " >&6 8592else 8593 ac_check_lib_save_LIBS=$LIBS 8594LIBS="-l${ldaplib} ${extralib} $LIBS" 8595cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8596/* end confdefs.h. */ 8597 8598/* Override any GCC internal prototype to avoid an error. 8599 Use char because int might match the return type of a GCC 8600 builtin and then its argument prototype would still apply. */ 8601#ifdef __cplusplus 8602extern "C" 8603#endif 8604char ldap_start_tls_s (); 8605int 8606main () 8607{ 8608return ldap_start_tls_s (); 8609 ; 8610 return 0; 8611} 8612_ACEOF 8613if ac_fn_c_try_link "$LINENO"; then : 8614 eval "$as_ac_Lib=yes" 8615else 8616 eval "$as_ac_Lib=no" 8617fi 8618rm -f core conftest.err conftest.$ac_objext \ 8619 conftest$ac_exeext conftest.$ac_ext 8620LIBS=$ac_check_lib_save_LIBS 8621fi 8622eval ac_res=\$$as_ac_Lib 8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8624$as_echo "$ac_res" >&6; } 8625if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8626 apu_has_ldap_start_tls_s="1" 8627fi 8628 8629 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 8630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 8631$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 8632if eval \${$as_ac_Lib+:} false; then : 8633 $as_echo_n "(cached) " >&6 8634else 8635 ac_check_lib_save_LIBS=$LIBS 8636LIBS="-l${ldaplib} ${extralib} $LIBS" 8637cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8638/* end confdefs.h. */ 8639 8640/* Override any GCC internal prototype to avoid an error. 8641 Use char because int might match the return type of a GCC 8642 builtin and then its argument prototype would still apply. */ 8643#ifdef __cplusplus 8644extern "C" 8645#endif 8646char ldap_sslinit (); 8647int 8648main () 8649{ 8650return ldap_sslinit (); 8651 ; 8652 return 0; 8653} 8654_ACEOF 8655if ac_fn_c_try_link "$LINENO"; then : 8656 eval "$as_ac_Lib=yes" 8657else 8658 eval "$as_ac_Lib=no" 8659fi 8660rm -f core conftest.err conftest.$ac_objext \ 8661 conftest$ac_exeext conftest.$ac_ext 8662LIBS=$ac_check_lib_save_LIBS 8663fi 8664eval ac_res=\$$as_ac_Lib 8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8666$as_echo "$ac_res" >&6; } 8667if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8668 apu_has_ldap_sslinit="1" 8669fi 8670 8671 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 8672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 8673$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 8674if eval \${$as_ac_Lib+:} false; then : 8675 $as_echo_n "(cached) " >&6 8676else 8677 ac_check_lib_save_LIBS=$LIBS 8678LIBS="-l${ldaplib} ${extralib} $LIBS" 8679cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8680/* end confdefs.h. */ 8681 8682/* Override any GCC internal prototype to avoid an error. 8683 Use char because int might match the return type of a GCC 8684 builtin and then its argument prototype would still apply. */ 8685#ifdef __cplusplus 8686extern "C" 8687#endif 8688char ldapssl_init (); 8689int 8690main () 8691{ 8692return ldapssl_init (); 8693 ; 8694 return 0; 8695} 8696_ACEOF 8697if ac_fn_c_try_link "$LINENO"; then : 8698 eval "$as_ac_Lib=yes" 8699else 8700 eval "$as_ac_Lib=no" 8701fi 8702rm -f core conftest.err conftest.$ac_objext \ 8703 conftest$ac_exeext conftest.$ac_ext 8704LIBS=$ac_check_lib_save_LIBS 8705fi 8706eval ac_res=\$$as_ac_Lib 8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8708$as_echo "$ac_res" >&6; } 8709if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8710 apu_has_ldapssl_init="1" 8711fi 8712 8713 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 8714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 8715$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 8716if eval \${$as_ac_Lib+:} false; then : 8717 $as_echo_n "(cached) " >&6 8718else 8719 ac_check_lib_save_LIBS=$LIBS 8720LIBS="-l${ldaplib} ${extralib} $LIBS" 8721cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8722/* end confdefs.h. */ 8723 8724/* Override any GCC internal prototype to avoid an error. 8725 Use char because int might match the return type of a GCC 8726 builtin and then its argument prototype would still apply. */ 8727#ifdef __cplusplus 8728extern "C" 8729#endif 8730char ldapssl_install_routines (); 8731int 8732main () 8733{ 8734return ldapssl_install_routines (); 8735 ; 8736 return 0; 8737} 8738_ACEOF 8739if ac_fn_c_try_link "$LINENO"; then : 8740 eval "$as_ac_Lib=yes" 8741else 8742 eval "$as_ac_Lib=no" 8743fi 8744rm -f core conftest.err conftest.$ac_objext \ 8745 conftest$ac_exeext conftest.$ac_ext 8746LIBS=$ac_check_lib_save_LIBS 8747fi 8748eval ac_res=\$$as_ac_Lib 8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8750$as_echo "$ac_res" >&6; } 8751if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8752 apu_has_ldapssl_install_routines="1" 8753fi 8754 8755 apu_has_ldap="1"; 8756 8757fi 8758 8759 fi 8760 8761 8762 if test ${apu_has_ldap} != "1"; then 8763 ldaplib="ldap" 8764 extralib="-llber -lresolv" 8765 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 8766 8767 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 8768 8769 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 8770 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 8771 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 8772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 8773$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 8774if eval \${$as_ac_Lib+:} false; then : 8775 $as_echo_n "(cached) " >&6 8776else 8777 ac_check_lib_save_LIBS=$LIBS 8778LIBS="-l${ldaplib} ${extralib} $LIBS" 8779cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8780/* end confdefs.h. */ 8781 8782/* Override any GCC internal prototype to avoid an error. 8783 Use char because int might match the return type of a GCC 8784 builtin and then its argument prototype would still apply. */ 8785#ifdef __cplusplus 8786extern "C" 8787#endif 8788char ldap_init (); 8789int 8790main () 8791{ 8792return ldap_init (); 8793 ; 8794 return 0; 8795} 8796_ACEOF 8797if ac_fn_c_try_link "$LINENO"; then : 8798 eval "$as_ac_Lib=yes" 8799else 8800 eval "$as_ac_Lib=no" 8801fi 8802rm -f core conftest.err conftest.$ac_objext \ 8803 conftest$ac_exeext conftest.$ac_ext 8804LIBS=$ac_check_lib_save_LIBS 8805fi 8806eval ac_res=\$$as_ac_Lib 8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8808$as_echo "$ac_res" >&6; } 8809if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8810 8811 LDADD_ldap_found="-l${ldaplib} ${extralib}" 8812 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 8813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 8814$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 8815if eval \${$as_ac_Lib+:} false; then : 8816 $as_echo_n "(cached) " >&6 8817else 8818 ac_check_lib_save_LIBS=$LIBS 8819LIBS="-l${ldaplib} ${extralib} $LIBS" 8820cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8821/* end confdefs.h. */ 8822 8823/* Override any GCC internal prototype to avoid an error. 8824 Use char because int might match the return type of a GCC 8825 builtin and then its argument prototype would still apply. */ 8826#ifdef __cplusplus 8827extern "C" 8828#endif 8829char ldapssl_client_init (); 8830int 8831main () 8832{ 8833return ldapssl_client_init (); 8834 ; 8835 return 0; 8836} 8837_ACEOF 8838if ac_fn_c_try_link "$LINENO"; then : 8839 eval "$as_ac_Lib=yes" 8840else 8841 eval "$as_ac_Lib=no" 8842fi 8843rm -f core conftest.err conftest.$ac_objext \ 8844 conftest$ac_exeext conftest.$ac_ext 8845LIBS=$ac_check_lib_save_LIBS 8846fi 8847eval ac_res=\$$as_ac_Lib 8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8849$as_echo "$ac_res" >&6; } 8850if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8851 apu_has_ldapssl_client_init="1" 8852fi 8853 8854 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 8855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 8856$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 8857if eval \${$as_ac_Lib+:} false; then : 8858 $as_echo_n "(cached) " >&6 8859else 8860 ac_check_lib_save_LIBS=$LIBS 8861LIBS="-l${ldaplib} ${extralib} $LIBS" 8862cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8863/* end confdefs.h. */ 8864 8865/* Override any GCC internal prototype to avoid an error. 8866 Use char because int might match the return type of a GCC 8867 builtin and then its argument prototype would still apply. */ 8868#ifdef __cplusplus 8869extern "C" 8870#endif 8871char ldapssl_client_deinit (); 8872int 8873main () 8874{ 8875return ldapssl_client_deinit (); 8876 ; 8877 return 0; 8878} 8879_ACEOF 8880if ac_fn_c_try_link "$LINENO"; then : 8881 eval "$as_ac_Lib=yes" 8882else 8883 eval "$as_ac_Lib=no" 8884fi 8885rm -f core conftest.err conftest.$ac_objext \ 8886 conftest$ac_exeext conftest.$ac_ext 8887LIBS=$ac_check_lib_save_LIBS 8888fi 8889eval ac_res=\$$as_ac_Lib 8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8891$as_echo "$ac_res" >&6; } 8892if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8893 apu_has_ldapssl_client_deinit="1" 8894fi 8895 8896 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 8897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 8898$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 8899if eval \${$as_ac_Lib+:} false; then : 8900 $as_echo_n "(cached) " >&6 8901else 8902 ac_check_lib_save_LIBS=$LIBS 8903LIBS="-l${ldaplib} ${extralib} $LIBS" 8904cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8905/* end confdefs.h. */ 8906 8907/* Override any GCC internal prototype to avoid an error. 8908 Use char because int might match the return type of a GCC 8909 builtin and then its argument prototype would still apply. */ 8910#ifdef __cplusplus 8911extern "C" 8912#endif 8913char ldapssl_add_trusted_cert (); 8914int 8915main () 8916{ 8917return ldapssl_add_trusted_cert (); 8918 ; 8919 return 0; 8920} 8921_ACEOF 8922if ac_fn_c_try_link "$LINENO"; then : 8923 eval "$as_ac_Lib=yes" 8924else 8925 eval "$as_ac_Lib=no" 8926fi 8927rm -f core conftest.err conftest.$ac_objext \ 8928 conftest$ac_exeext conftest.$ac_ext 8929LIBS=$ac_check_lib_save_LIBS 8930fi 8931eval ac_res=\$$as_ac_Lib 8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8933$as_echo "$ac_res" >&6; } 8934if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8935 apu_has_ldapssl_add_trusted_cert="1" 8936fi 8937 8938 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 8939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 8940$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 8941if eval \${$as_ac_Lib+:} false; then : 8942 $as_echo_n "(cached) " >&6 8943else 8944 ac_check_lib_save_LIBS=$LIBS 8945LIBS="-l${ldaplib} ${extralib} $LIBS" 8946cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8947/* end confdefs.h. */ 8948 8949/* Override any GCC internal prototype to avoid an error. 8950 Use char because int might match the return type of a GCC 8951 builtin and then its argument prototype would still apply. */ 8952#ifdef __cplusplus 8953extern "C" 8954#endif 8955char ldap_start_tls_s (); 8956int 8957main () 8958{ 8959return ldap_start_tls_s (); 8960 ; 8961 return 0; 8962} 8963_ACEOF 8964if ac_fn_c_try_link "$LINENO"; then : 8965 eval "$as_ac_Lib=yes" 8966else 8967 eval "$as_ac_Lib=no" 8968fi 8969rm -f core conftest.err conftest.$ac_objext \ 8970 conftest$ac_exeext conftest.$ac_ext 8971LIBS=$ac_check_lib_save_LIBS 8972fi 8973eval ac_res=\$$as_ac_Lib 8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8975$as_echo "$ac_res" >&6; } 8976if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8977 apu_has_ldap_start_tls_s="1" 8978fi 8979 8980 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 8981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 8982$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 8983if eval \${$as_ac_Lib+:} false; then : 8984 $as_echo_n "(cached) " >&6 8985else 8986 ac_check_lib_save_LIBS=$LIBS 8987LIBS="-l${ldaplib} ${extralib} $LIBS" 8988cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8989/* end confdefs.h. */ 8990 8991/* Override any GCC internal prototype to avoid an error. 8992 Use char because int might match the return type of a GCC 8993 builtin and then its argument prototype would still apply. */ 8994#ifdef __cplusplus 8995extern "C" 8996#endif 8997char ldap_sslinit (); 8998int 8999main () 9000{ 9001return ldap_sslinit (); 9002 ; 9003 return 0; 9004} 9005_ACEOF 9006if ac_fn_c_try_link "$LINENO"; then : 9007 eval "$as_ac_Lib=yes" 9008else 9009 eval "$as_ac_Lib=no" 9010fi 9011rm -f core conftest.err conftest.$ac_objext \ 9012 conftest$ac_exeext conftest.$ac_ext 9013LIBS=$ac_check_lib_save_LIBS 9014fi 9015eval ac_res=\$$as_ac_Lib 9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9017$as_echo "$ac_res" >&6; } 9018if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9019 apu_has_ldap_sslinit="1" 9020fi 9021 9022 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 9023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 9024$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 9025if eval \${$as_ac_Lib+:} false; then : 9026 $as_echo_n "(cached) " >&6 9027else 9028 ac_check_lib_save_LIBS=$LIBS 9029LIBS="-l${ldaplib} ${extralib} $LIBS" 9030cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9031/* end confdefs.h. */ 9032 9033/* Override any GCC internal prototype to avoid an error. 9034 Use char because int might match the return type of a GCC 9035 builtin and then its argument prototype would still apply. */ 9036#ifdef __cplusplus 9037extern "C" 9038#endif 9039char ldapssl_init (); 9040int 9041main () 9042{ 9043return ldapssl_init (); 9044 ; 9045 return 0; 9046} 9047_ACEOF 9048if ac_fn_c_try_link "$LINENO"; then : 9049 eval "$as_ac_Lib=yes" 9050else 9051 eval "$as_ac_Lib=no" 9052fi 9053rm -f core conftest.err conftest.$ac_objext \ 9054 conftest$ac_exeext conftest.$ac_ext 9055LIBS=$ac_check_lib_save_LIBS 9056fi 9057eval ac_res=\$$as_ac_Lib 9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9059$as_echo "$ac_res" >&6; } 9060if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9061 apu_has_ldapssl_init="1" 9062fi 9063 9064 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 9065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 9066$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 9067if eval \${$as_ac_Lib+:} false; then : 9068 $as_echo_n "(cached) " >&6 9069else 9070 ac_check_lib_save_LIBS=$LIBS 9071LIBS="-l${ldaplib} ${extralib} $LIBS" 9072cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9073/* end confdefs.h. */ 9074 9075/* Override any GCC internal prototype to avoid an error. 9076 Use char because int might match the return type of a GCC 9077 builtin and then its argument prototype would still apply. */ 9078#ifdef __cplusplus 9079extern "C" 9080#endif 9081char ldapssl_install_routines (); 9082int 9083main () 9084{ 9085return ldapssl_install_routines (); 9086 ; 9087 return 0; 9088} 9089_ACEOF 9090if ac_fn_c_try_link "$LINENO"; then : 9091 eval "$as_ac_Lib=yes" 9092else 9093 eval "$as_ac_Lib=no" 9094fi 9095rm -f core conftest.err conftest.$ac_objext \ 9096 conftest$ac_exeext conftest.$ac_ext 9097LIBS=$ac_check_lib_save_LIBS 9098fi 9099eval ac_res=\$$as_ac_Lib 9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9101$as_echo "$ac_res" >&6; } 9102if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9103 apu_has_ldapssl_install_routines="1" 9104fi 9105 9106 apu_has_ldap="1"; 9107 9108fi 9109 9110 fi 9111 9112 9113 if test ${apu_has_ldap} != "1"; then 9114 ldaplib="ldap" 9115 extralib="-llber -lresolv -lsocket -lnsl" 9116 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 9117 9118 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 9119 9120 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 9121 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 9122 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 9123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 9124$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 9125if eval \${$as_ac_Lib+:} false; then : 9126 $as_echo_n "(cached) " >&6 9127else 9128 ac_check_lib_save_LIBS=$LIBS 9129LIBS="-l${ldaplib} ${extralib} $LIBS" 9130cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9131/* end confdefs.h. */ 9132 9133/* Override any GCC internal prototype to avoid an error. 9134 Use char because int might match the return type of a GCC 9135 builtin and then its argument prototype would still apply. */ 9136#ifdef __cplusplus 9137extern "C" 9138#endif 9139char ldap_init (); 9140int 9141main () 9142{ 9143return ldap_init (); 9144 ; 9145 return 0; 9146} 9147_ACEOF 9148if ac_fn_c_try_link "$LINENO"; then : 9149 eval "$as_ac_Lib=yes" 9150else 9151 eval "$as_ac_Lib=no" 9152fi 9153rm -f core conftest.err conftest.$ac_objext \ 9154 conftest$ac_exeext conftest.$ac_ext 9155LIBS=$ac_check_lib_save_LIBS 9156fi 9157eval ac_res=\$$as_ac_Lib 9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9159$as_echo "$ac_res" >&6; } 9160if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9161 9162 LDADD_ldap_found="-l${ldaplib} ${extralib}" 9163 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 9164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 9165$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 9166if eval \${$as_ac_Lib+:} false; then : 9167 $as_echo_n "(cached) " >&6 9168else 9169 ac_check_lib_save_LIBS=$LIBS 9170LIBS="-l${ldaplib} ${extralib} $LIBS" 9171cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9172/* end confdefs.h. */ 9173 9174/* Override any GCC internal prototype to avoid an error. 9175 Use char because int might match the return type of a GCC 9176 builtin and then its argument prototype would still apply. */ 9177#ifdef __cplusplus 9178extern "C" 9179#endif 9180char ldapssl_client_init (); 9181int 9182main () 9183{ 9184return ldapssl_client_init (); 9185 ; 9186 return 0; 9187} 9188_ACEOF 9189if ac_fn_c_try_link "$LINENO"; then : 9190 eval "$as_ac_Lib=yes" 9191else 9192 eval "$as_ac_Lib=no" 9193fi 9194rm -f core conftest.err conftest.$ac_objext \ 9195 conftest$ac_exeext conftest.$ac_ext 9196LIBS=$ac_check_lib_save_LIBS 9197fi 9198eval ac_res=\$$as_ac_Lib 9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9200$as_echo "$ac_res" >&6; } 9201if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9202 apu_has_ldapssl_client_init="1" 9203fi 9204 9205 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 9206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 9207$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 9208if eval \${$as_ac_Lib+:} false; then : 9209 $as_echo_n "(cached) " >&6 9210else 9211 ac_check_lib_save_LIBS=$LIBS 9212LIBS="-l${ldaplib} ${extralib} $LIBS" 9213cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9214/* end confdefs.h. */ 9215 9216/* Override any GCC internal prototype to avoid an error. 9217 Use char because int might match the return type of a GCC 9218 builtin and then its argument prototype would still apply. */ 9219#ifdef __cplusplus 9220extern "C" 9221#endif 9222char ldapssl_client_deinit (); 9223int 9224main () 9225{ 9226return ldapssl_client_deinit (); 9227 ; 9228 return 0; 9229} 9230_ACEOF 9231if ac_fn_c_try_link "$LINENO"; then : 9232 eval "$as_ac_Lib=yes" 9233else 9234 eval "$as_ac_Lib=no" 9235fi 9236rm -f core conftest.err conftest.$ac_objext \ 9237 conftest$ac_exeext conftest.$ac_ext 9238LIBS=$ac_check_lib_save_LIBS 9239fi 9240eval ac_res=\$$as_ac_Lib 9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9242$as_echo "$ac_res" >&6; } 9243if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9244 apu_has_ldapssl_client_deinit="1" 9245fi 9246 9247 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 9248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 9249$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 9250if eval \${$as_ac_Lib+:} false; then : 9251 $as_echo_n "(cached) " >&6 9252else 9253 ac_check_lib_save_LIBS=$LIBS 9254LIBS="-l${ldaplib} ${extralib} $LIBS" 9255cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9256/* end confdefs.h. */ 9257 9258/* Override any GCC internal prototype to avoid an error. 9259 Use char because int might match the return type of a GCC 9260 builtin and then its argument prototype would still apply. */ 9261#ifdef __cplusplus 9262extern "C" 9263#endif 9264char ldapssl_add_trusted_cert (); 9265int 9266main () 9267{ 9268return ldapssl_add_trusted_cert (); 9269 ; 9270 return 0; 9271} 9272_ACEOF 9273if ac_fn_c_try_link "$LINENO"; then : 9274 eval "$as_ac_Lib=yes" 9275else 9276 eval "$as_ac_Lib=no" 9277fi 9278rm -f core conftest.err conftest.$ac_objext \ 9279 conftest$ac_exeext conftest.$ac_ext 9280LIBS=$ac_check_lib_save_LIBS 9281fi 9282eval ac_res=\$$as_ac_Lib 9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9284$as_echo "$ac_res" >&6; } 9285if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9286 apu_has_ldapssl_add_trusted_cert="1" 9287fi 9288 9289 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 9290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 9291$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 9292if eval \${$as_ac_Lib+:} false; then : 9293 $as_echo_n "(cached) " >&6 9294else 9295 ac_check_lib_save_LIBS=$LIBS 9296LIBS="-l${ldaplib} ${extralib} $LIBS" 9297cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9298/* end confdefs.h. */ 9299 9300/* Override any GCC internal prototype to avoid an error. 9301 Use char because int might match the return type of a GCC 9302 builtin and then its argument prototype would still apply. */ 9303#ifdef __cplusplus 9304extern "C" 9305#endif 9306char ldap_start_tls_s (); 9307int 9308main () 9309{ 9310return ldap_start_tls_s (); 9311 ; 9312 return 0; 9313} 9314_ACEOF 9315if ac_fn_c_try_link "$LINENO"; then : 9316 eval "$as_ac_Lib=yes" 9317else 9318 eval "$as_ac_Lib=no" 9319fi 9320rm -f core conftest.err conftest.$ac_objext \ 9321 conftest$ac_exeext conftest.$ac_ext 9322LIBS=$ac_check_lib_save_LIBS 9323fi 9324eval ac_res=\$$as_ac_Lib 9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9326$as_echo "$ac_res" >&6; } 9327if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9328 apu_has_ldap_start_tls_s="1" 9329fi 9330 9331 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 9332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 9333$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 9334if eval \${$as_ac_Lib+:} false; then : 9335 $as_echo_n "(cached) " >&6 9336else 9337 ac_check_lib_save_LIBS=$LIBS 9338LIBS="-l${ldaplib} ${extralib} $LIBS" 9339cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9340/* end confdefs.h. */ 9341 9342/* Override any GCC internal prototype to avoid an error. 9343 Use char because int might match the return type of a GCC 9344 builtin and then its argument prototype would still apply. */ 9345#ifdef __cplusplus 9346extern "C" 9347#endif 9348char ldap_sslinit (); 9349int 9350main () 9351{ 9352return ldap_sslinit (); 9353 ; 9354 return 0; 9355} 9356_ACEOF 9357if ac_fn_c_try_link "$LINENO"; then : 9358 eval "$as_ac_Lib=yes" 9359else 9360 eval "$as_ac_Lib=no" 9361fi 9362rm -f core conftest.err conftest.$ac_objext \ 9363 conftest$ac_exeext conftest.$ac_ext 9364LIBS=$ac_check_lib_save_LIBS 9365fi 9366eval ac_res=\$$as_ac_Lib 9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9368$as_echo "$ac_res" >&6; } 9369if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9370 apu_has_ldap_sslinit="1" 9371fi 9372 9373 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 9374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 9375$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 9376if eval \${$as_ac_Lib+:} false; then : 9377 $as_echo_n "(cached) " >&6 9378else 9379 ac_check_lib_save_LIBS=$LIBS 9380LIBS="-l${ldaplib} ${extralib} $LIBS" 9381cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9382/* end confdefs.h. */ 9383 9384/* Override any GCC internal prototype to avoid an error. 9385 Use char because int might match the return type of a GCC 9386 builtin and then its argument prototype would still apply. */ 9387#ifdef __cplusplus 9388extern "C" 9389#endif 9390char ldapssl_init (); 9391int 9392main () 9393{ 9394return ldapssl_init (); 9395 ; 9396 return 0; 9397} 9398_ACEOF 9399if ac_fn_c_try_link "$LINENO"; then : 9400 eval "$as_ac_Lib=yes" 9401else 9402 eval "$as_ac_Lib=no" 9403fi 9404rm -f core conftest.err conftest.$ac_objext \ 9405 conftest$ac_exeext conftest.$ac_ext 9406LIBS=$ac_check_lib_save_LIBS 9407fi 9408eval ac_res=\$$as_ac_Lib 9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9410$as_echo "$ac_res" >&6; } 9411if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9412 apu_has_ldapssl_init="1" 9413fi 9414 9415 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 9416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 9417$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 9418if eval \${$as_ac_Lib+:} false; then : 9419 $as_echo_n "(cached) " >&6 9420else 9421 ac_check_lib_save_LIBS=$LIBS 9422LIBS="-l${ldaplib} ${extralib} $LIBS" 9423cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9424/* end confdefs.h. */ 9425 9426/* Override any GCC internal prototype to avoid an error. 9427 Use char because int might match the return type of a GCC 9428 builtin and then its argument prototype would still apply. */ 9429#ifdef __cplusplus 9430extern "C" 9431#endif 9432char ldapssl_install_routines (); 9433int 9434main () 9435{ 9436return ldapssl_install_routines (); 9437 ; 9438 return 0; 9439} 9440_ACEOF 9441if ac_fn_c_try_link "$LINENO"; then : 9442 eval "$as_ac_Lib=yes" 9443else 9444 eval "$as_ac_Lib=no" 9445fi 9446rm -f core conftest.err conftest.$ac_objext \ 9447 conftest$ac_exeext conftest.$ac_ext 9448LIBS=$ac_check_lib_save_LIBS 9449fi 9450eval ac_res=\$$as_ac_Lib 9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9452$as_echo "$ac_res" >&6; } 9453if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9454 apu_has_ldapssl_install_routines="1" 9455fi 9456 9457 apu_has_ldap="1"; 9458 9459fi 9460 9461 fi 9462 9463 9464 if test ${apu_has_ldap} != "1"; then 9465 ldaplib="ldap" 9466 extralib="-ldl -lpthread" 9467 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 9468 9469 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 9470 9471 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 9472 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 9473 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 9474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 9475$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 9476if eval \${$as_ac_Lib+:} false; then : 9477 $as_echo_n "(cached) " >&6 9478else 9479 ac_check_lib_save_LIBS=$LIBS 9480LIBS="-l${ldaplib} ${extralib} $LIBS" 9481cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9482/* end confdefs.h. */ 9483 9484/* Override any GCC internal prototype to avoid an error. 9485 Use char because int might match the return type of a GCC 9486 builtin and then its argument prototype would still apply. */ 9487#ifdef __cplusplus 9488extern "C" 9489#endif 9490char ldap_init (); 9491int 9492main () 9493{ 9494return ldap_init (); 9495 ; 9496 return 0; 9497} 9498_ACEOF 9499if ac_fn_c_try_link "$LINENO"; then : 9500 eval "$as_ac_Lib=yes" 9501else 9502 eval "$as_ac_Lib=no" 9503fi 9504rm -f core conftest.err conftest.$ac_objext \ 9505 conftest$ac_exeext conftest.$ac_ext 9506LIBS=$ac_check_lib_save_LIBS 9507fi 9508eval ac_res=\$$as_ac_Lib 9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9510$as_echo "$ac_res" >&6; } 9511if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9512 9513 LDADD_ldap_found="-l${ldaplib} ${extralib}" 9514 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 9515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 9516$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 9517if eval \${$as_ac_Lib+:} false; then : 9518 $as_echo_n "(cached) " >&6 9519else 9520 ac_check_lib_save_LIBS=$LIBS 9521LIBS="-l${ldaplib} ${extralib} $LIBS" 9522cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9523/* end confdefs.h. */ 9524 9525/* Override any GCC internal prototype to avoid an error. 9526 Use char because int might match the return type of a GCC 9527 builtin and then its argument prototype would still apply. */ 9528#ifdef __cplusplus 9529extern "C" 9530#endif 9531char ldapssl_client_init (); 9532int 9533main () 9534{ 9535return ldapssl_client_init (); 9536 ; 9537 return 0; 9538} 9539_ACEOF 9540if ac_fn_c_try_link "$LINENO"; then : 9541 eval "$as_ac_Lib=yes" 9542else 9543 eval "$as_ac_Lib=no" 9544fi 9545rm -f core conftest.err conftest.$ac_objext \ 9546 conftest$ac_exeext conftest.$ac_ext 9547LIBS=$ac_check_lib_save_LIBS 9548fi 9549eval ac_res=\$$as_ac_Lib 9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9551$as_echo "$ac_res" >&6; } 9552if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9553 apu_has_ldapssl_client_init="1" 9554fi 9555 9556 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 9557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 9558$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 9559if eval \${$as_ac_Lib+:} false; then : 9560 $as_echo_n "(cached) " >&6 9561else 9562 ac_check_lib_save_LIBS=$LIBS 9563LIBS="-l${ldaplib} ${extralib} $LIBS" 9564cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9565/* end confdefs.h. */ 9566 9567/* Override any GCC internal prototype to avoid an error. 9568 Use char because int might match the return type of a GCC 9569 builtin and then its argument prototype would still apply. */ 9570#ifdef __cplusplus 9571extern "C" 9572#endif 9573char ldapssl_client_deinit (); 9574int 9575main () 9576{ 9577return ldapssl_client_deinit (); 9578 ; 9579 return 0; 9580} 9581_ACEOF 9582if ac_fn_c_try_link "$LINENO"; then : 9583 eval "$as_ac_Lib=yes" 9584else 9585 eval "$as_ac_Lib=no" 9586fi 9587rm -f core conftest.err conftest.$ac_objext \ 9588 conftest$ac_exeext conftest.$ac_ext 9589LIBS=$ac_check_lib_save_LIBS 9590fi 9591eval ac_res=\$$as_ac_Lib 9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9593$as_echo "$ac_res" >&6; } 9594if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9595 apu_has_ldapssl_client_deinit="1" 9596fi 9597 9598 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 9599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 9600$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 9601if eval \${$as_ac_Lib+:} false; then : 9602 $as_echo_n "(cached) " >&6 9603else 9604 ac_check_lib_save_LIBS=$LIBS 9605LIBS="-l${ldaplib} ${extralib} $LIBS" 9606cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9607/* end confdefs.h. */ 9608 9609/* Override any GCC internal prototype to avoid an error. 9610 Use char because int might match the return type of a GCC 9611 builtin and then its argument prototype would still apply. */ 9612#ifdef __cplusplus 9613extern "C" 9614#endif 9615char ldapssl_add_trusted_cert (); 9616int 9617main () 9618{ 9619return ldapssl_add_trusted_cert (); 9620 ; 9621 return 0; 9622} 9623_ACEOF 9624if ac_fn_c_try_link "$LINENO"; then : 9625 eval "$as_ac_Lib=yes" 9626else 9627 eval "$as_ac_Lib=no" 9628fi 9629rm -f core conftest.err conftest.$ac_objext \ 9630 conftest$ac_exeext conftest.$ac_ext 9631LIBS=$ac_check_lib_save_LIBS 9632fi 9633eval ac_res=\$$as_ac_Lib 9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9635$as_echo "$ac_res" >&6; } 9636if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9637 apu_has_ldapssl_add_trusted_cert="1" 9638fi 9639 9640 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 9641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 9642$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 9643if eval \${$as_ac_Lib+:} false; then : 9644 $as_echo_n "(cached) " >&6 9645else 9646 ac_check_lib_save_LIBS=$LIBS 9647LIBS="-l${ldaplib} ${extralib} $LIBS" 9648cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9649/* end confdefs.h. */ 9650 9651/* Override any GCC internal prototype to avoid an error. 9652 Use char because int might match the return type of a GCC 9653 builtin and then its argument prototype would still apply. */ 9654#ifdef __cplusplus 9655extern "C" 9656#endif 9657char ldap_start_tls_s (); 9658int 9659main () 9660{ 9661return ldap_start_tls_s (); 9662 ; 9663 return 0; 9664} 9665_ACEOF 9666if ac_fn_c_try_link "$LINENO"; then : 9667 eval "$as_ac_Lib=yes" 9668else 9669 eval "$as_ac_Lib=no" 9670fi 9671rm -f core conftest.err conftest.$ac_objext \ 9672 conftest$ac_exeext conftest.$ac_ext 9673LIBS=$ac_check_lib_save_LIBS 9674fi 9675eval ac_res=\$$as_ac_Lib 9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9677$as_echo "$ac_res" >&6; } 9678if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9679 apu_has_ldap_start_tls_s="1" 9680fi 9681 9682 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 9683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 9684$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 9685if eval \${$as_ac_Lib+:} false; then : 9686 $as_echo_n "(cached) " >&6 9687else 9688 ac_check_lib_save_LIBS=$LIBS 9689LIBS="-l${ldaplib} ${extralib} $LIBS" 9690cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9691/* end confdefs.h. */ 9692 9693/* Override any GCC internal prototype to avoid an error. 9694 Use char because int might match the return type of a GCC 9695 builtin and then its argument prototype would still apply. */ 9696#ifdef __cplusplus 9697extern "C" 9698#endif 9699char ldap_sslinit (); 9700int 9701main () 9702{ 9703return ldap_sslinit (); 9704 ; 9705 return 0; 9706} 9707_ACEOF 9708if ac_fn_c_try_link "$LINENO"; then : 9709 eval "$as_ac_Lib=yes" 9710else 9711 eval "$as_ac_Lib=no" 9712fi 9713rm -f core conftest.err conftest.$ac_objext \ 9714 conftest$ac_exeext conftest.$ac_ext 9715LIBS=$ac_check_lib_save_LIBS 9716fi 9717eval ac_res=\$$as_ac_Lib 9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9719$as_echo "$ac_res" >&6; } 9720if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9721 apu_has_ldap_sslinit="1" 9722fi 9723 9724 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 9725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 9726$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 9727if eval \${$as_ac_Lib+:} false; then : 9728 $as_echo_n "(cached) " >&6 9729else 9730 ac_check_lib_save_LIBS=$LIBS 9731LIBS="-l${ldaplib} ${extralib} $LIBS" 9732cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9733/* end confdefs.h. */ 9734 9735/* Override any GCC internal prototype to avoid an error. 9736 Use char because int might match the return type of a GCC 9737 builtin and then its argument prototype would still apply. */ 9738#ifdef __cplusplus 9739extern "C" 9740#endif 9741char ldapssl_init (); 9742int 9743main () 9744{ 9745return ldapssl_init (); 9746 ; 9747 return 0; 9748} 9749_ACEOF 9750if ac_fn_c_try_link "$LINENO"; then : 9751 eval "$as_ac_Lib=yes" 9752else 9753 eval "$as_ac_Lib=no" 9754fi 9755rm -f core conftest.err conftest.$ac_objext \ 9756 conftest$ac_exeext conftest.$ac_ext 9757LIBS=$ac_check_lib_save_LIBS 9758fi 9759eval ac_res=\$$as_ac_Lib 9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9761$as_echo "$ac_res" >&6; } 9762if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9763 apu_has_ldapssl_init="1" 9764fi 9765 9766 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 9767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 9768$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 9769if eval \${$as_ac_Lib+:} false; then : 9770 $as_echo_n "(cached) " >&6 9771else 9772 ac_check_lib_save_LIBS=$LIBS 9773LIBS="-l${ldaplib} ${extralib} $LIBS" 9774cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9775/* end confdefs.h. */ 9776 9777/* Override any GCC internal prototype to avoid an error. 9778 Use char because int might match the return type of a GCC 9779 builtin and then its argument prototype would still apply. */ 9780#ifdef __cplusplus 9781extern "C" 9782#endif 9783char ldapssl_install_routines (); 9784int 9785main () 9786{ 9787return ldapssl_install_routines (); 9788 ; 9789 return 0; 9790} 9791_ACEOF 9792if ac_fn_c_try_link "$LINENO"; then : 9793 eval "$as_ac_Lib=yes" 9794else 9795 eval "$as_ac_Lib=no" 9796fi 9797rm -f core conftest.err conftest.$ac_objext \ 9798 conftest$ac_exeext conftest.$ac_ext 9799LIBS=$ac_check_lib_save_LIBS 9800fi 9801eval ac_res=\$$as_ac_Lib 9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9803$as_echo "$ac_res" >&6; } 9804if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9805 apu_has_ldapssl_install_routines="1" 9806fi 9807 9808 apu_has_ldap="1"; 9809 9810fi 9811 9812 fi 9813 9814 else 9815 9816 if test ${apu_has_ldap} != "1"; then 9817 ldaplib=$LIBLDAP 9818 extralib= 9819 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 9820 9821 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 9822 9823 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 9824 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 9825 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 9826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 9827$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 9828if eval \${$as_ac_Lib+:} false; then : 9829 $as_echo_n "(cached) " >&6 9830else 9831 ac_check_lib_save_LIBS=$LIBS 9832LIBS="-l${ldaplib} ${extralib} $LIBS" 9833cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9834/* end confdefs.h. */ 9835 9836/* Override any GCC internal prototype to avoid an error. 9837 Use char because int might match the return type of a GCC 9838 builtin and then its argument prototype would still apply. */ 9839#ifdef __cplusplus 9840extern "C" 9841#endif 9842char ldap_init (); 9843int 9844main () 9845{ 9846return ldap_init (); 9847 ; 9848 return 0; 9849} 9850_ACEOF 9851if ac_fn_c_try_link "$LINENO"; then : 9852 eval "$as_ac_Lib=yes" 9853else 9854 eval "$as_ac_Lib=no" 9855fi 9856rm -f core conftest.err conftest.$ac_objext \ 9857 conftest$ac_exeext conftest.$ac_ext 9858LIBS=$ac_check_lib_save_LIBS 9859fi 9860eval ac_res=\$$as_ac_Lib 9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9862$as_echo "$ac_res" >&6; } 9863if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9864 9865 LDADD_ldap_found="-l${ldaplib} ${extralib}" 9866 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 9867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 9868$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 9869if eval \${$as_ac_Lib+:} false; then : 9870 $as_echo_n "(cached) " >&6 9871else 9872 ac_check_lib_save_LIBS=$LIBS 9873LIBS="-l${ldaplib} ${extralib} $LIBS" 9874cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9875/* end confdefs.h. */ 9876 9877/* Override any GCC internal prototype to avoid an error. 9878 Use char because int might match the return type of a GCC 9879 builtin and then its argument prototype would still apply. */ 9880#ifdef __cplusplus 9881extern "C" 9882#endif 9883char ldapssl_client_init (); 9884int 9885main () 9886{ 9887return ldapssl_client_init (); 9888 ; 9889 return 0; 9890} 9891_ACEOF 9892if ac_fn_c_try_link "$LINENO"; then : 9893 eval "$as_ac_Lib=yes" 9894else 9895 eval "$as_ac_Lib=no" 9896fi 9897rm -f core conftest.err conftest.$ac_objext \ 9898 conftest$ac_exeext conftest.$ac_ext 9899LIBS=$ac_check_lib_save_LIBS 9900fi 9901eval ac_res=\$$as_ac_Lib 9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9903$as_echo "$ac_res" >&6; } 9904if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9905 apu_has_ldapssl_client_init="1" 9906fi 9907 9908 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 9909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 9910$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 9911if eval \${$as_ac_Lib+:} false; then : 9912 $as_echo_n "(cached) " >&6 9913else 9914 ac_check_lib_save_LIBS=$LIBS 9915LIBS="-l${ldaplib} ${extralib} $LIBS" 9916cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9917/* end confdefs.h. */ 9918 9919/* Override any GCC internal prototype to avoid an error. 9920 Use char because int might match the return type of a GCC 9921 builtin and then its argument prototype would still apply. */ 9922#ifdef __cplusplus 9923extern "C" 9924#endif 9925char ldapssl_client_deinit (); 9926int 9927main () 9928{ 9929return ldapssl_client_deinit (); 9930 ; 9931 return 0; 9932} 9933_ACEOF 9934if ac_fn_c_try_link "$LINENO"; then : 9935 eval "$as_ac_Lib=yes" 9936else 9937 eval "$as_ac_Lib=no" 9938fi 9939rm -f core conftest.err conftest.$ac_objext \ 9940 conftest$ac_exeext conftest.$ac_ext 9941LIBS=$ac_check_lib_save_LIBS 9942fi 9943eval ac_res=\$$as_ac_Lib 9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9945$as_echo "$ac_res" >&6; } 9946if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9947 apu_has_ldapssl_client_deinit="1" 9948fi 9949 9950 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 9951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 9952$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 9953if eval \${$as_ac_Lib+:} false; then : 9954 $as_echo_n "(cached) " >&6 9955else 9956 ac_check_lib_save_LIBS=$LIBS 9957LIBS="-l${ldaplib} ${extralib} $LIBS" 9958cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9959/* end confdefs.h. */ 9960 9961/* Override any GCC internal prototype to avoid an error. 9962 Use char because int might match the return type of a GCC 9963 builtin and then its argument prototype would still apply. */ 9964#ifdef __cplusplus 9965extern "C" 9966#endif 9967char ldapssl_add_trusted_cert (); 9968int 9969main () 9970{ 9971return ldapssl_add_trusted_cert (); 9972 ; 9973 return 0; 9974} 9975_ACEOF 9976if ac_fn_c_try_link "$LINENO"; then : 9977 eval "$as_ac_Lib=yes" 9978else 9979 eval "$as_ac_Lib=no" 9980fi 9981rm -f core conftest.err conftest.$ac_objext \ 9982 conftest$ac_exeext conftest.$ac_ext 9983LIBS=$ac_check_lib_save_LIBS 9984fi 9985eval ac_res=\$$as_ac_Lib 9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9987$as_echo "$ac_res" >&6; } 9988if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9989 apu_has_ldapssl_add_trusted_cert="1" 9990fi 9991 9992 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 9993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 9994$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 9995if eval \${$as_ac_Lib+:} false; then : 9996 $as_echo_n "(cached) " >&6 9997else 9998 ac_check_lib_save_LIBS=$LIBS 9999LIBS="-l${ldaplib} ${extralib} $LIBS" 10000cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10001/* end confdefs.h. */ 10002 10003/* Override any GCC internal prototype to avoid an error. 10004 Use char because int might match the return type of a GCC 10005 builtin and then its argument prototype would still apply. */ 10006#ifdef __cplusplus 10007extern "C" 10008#endif 10009char ldap_start_tls_s (); 10010int 10011main () 10012{ 10013return ldap_start_tls_s (); 10014 ; 10015 return 0; 10016} 10017_ACEOF 10018if ac_fn_c_try_link "$LINENO"; then : 10019 eval "$as_ac_Lib=yes" 10020else 10021 eval "$as_ac_Lib=no" 10022fi 10023rm -f core conftest.err conftest.$ac_objext \ 10024 conftest$ac_exeext conftest.$ac_ext 10025LIBS=$ac_check_lib_save_LIBS 10026fi 10027eval ac_res=\$$as_ac_Lib 10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10029$as_echo "$ac_res" >&6; } 10030if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10031 apu_has_ldap_start_tls_s="1" 10032fi 10033 10034 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 10035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 10036$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 10037if eval \${$as_ac_Lib+:} false; then : 10038 $as_echo_n "(cached) " >&6 10039else 10040 ac_check_lib_save_LIBS=$LIBS 10041LIBS="-l${ldaplib} ${extralib} $LIBS" 10042cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10043/* end confdefs.h. */ 10044 10045/* Override any GCC internal prototype to avoid an error. 10046 Use char because int might match the return type of a GCC 10047 builtin and then its argument prototype would still apply. */ 10048#ifdef __cplusplus 10049extern "C" 10050#endif 10051char ldap_sslinit (); 10052int 10053main () 10054{ 10055return ldap_sslinit (); 10056 ; 10057 return 0; 10058} 10059_ACEOF 10060if ac_fn_c_try_link "$LINENO"; then : 10061 eval "$as_ac_Lib=yes" 10062else 10063 eval "$as_ac_Lib=no" 10064fi 10065rm -f core conftest.err conftest.$ac_objext \ 10066 conftest$ac_exeext conftest.$ac_ext 10067LIBS=$ac_check_lib_save_LIBS 10068fi 10069eval ac_res=\$$as_ac_Lib 10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10071$as_echo "$ac_res" >&6; } 10072if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10073 apu_has_ldap_sslinit="1" 10074fi 10075 10076 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 10077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 10078$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 10079if eval \${$as_ac_Lib+:} false; then : 10080 $as_echo_n "(cached) " >&6 10081else 10082 ac_check_lib_save_LIBS=$LIBS 10083LIBS="-l${ldaplib} ${extralib} $LIBS" 10084cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10085/* end confdefs.h. */ 10086 10087/* Override any GCC internal prototype to avoid an error. 10088 Use char because int might match the return type of a GCC 10089 builtin and then its argument prototype would still apply. */ 10090#ifdef __cplusplus 10091extern "C" 10092#endif 10093char ldapssl_init (); 10094int 10095main () 10096{ 10097return ldapssl_init (); 10098 ; 10099 return 0; 10100} 10101_ACEOF 10102if ac_fn_c_try_link "$LINENO"; then : 10103 eval "$as_ac_Lib=yes" 10104else 10105 eval "$as_ac_Lib=no" 10106fi 10107rm -f core conftest.err conftest.$ac_objext \ 10108 conftest$ac_exeext conftest.$ac_ext 10109LIBS=$ac_check_lib_save_LIBS 10110fi 10111eval ac_res=\$$as_ac_Lib 10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10113$as_echo "$ac_res" >&6; } 10114if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10115 apu_has_ldapssl_init="1" 10116fi 10117 10118 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 10119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 10120$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 10121if eval \${$as_ac_Lib+:} false; then : 10122 $as_echo_n "(cached) " >&6 10123else 10124 ac_check_lib_save_LIBS=$LIBS 10125LIBS="-l${ldaplib} ${extralib} $LIBS" 10126cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10127/* end confdefs.h. */ 10128 10129/* Override any GCC internal prototype to avoid an error. 10130 Use char because int might match the return type of a GCC 10131 builtin and then its argument prototype would still apply. */ 10132#ifdef __cplusplus 10133extern "C" 10134#endif 10135char ldapssl_install_routines (); 10136int 10137main () 10138{ 10139return ldapssl_install_routines (); 10140 ; 10141 return 0; 10142} 10143_ACEOF 10144if ac_fn_c_try_link "$LINENO"; then : 10145 eval "$as_ac_Lib=yes" 10146else 10147 eval "$as_ac_Lib=no" 10148fi 10149rm -f core conftest.err conftest.$ac_objext \ 10150 conftest$ac_exeext conftest.$ac_ext 10151LIBS=$ac_check_lib_save_LIBS 10152fi 10153eval ac_res=\$$as_ac_Lib 10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10155$as_echo "$ac_res" >&6; } 10156if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10157 apu_has_ldapssl_install_routines="1" 10158fi 10159 10160 apu_has_ldap="1"; 10161 10162fi 10163 10164 fi 10165 10166 10167 if test ${apu_has_ldap} != "1"; then 10168 ldaplib=$LIBLDAP 10169 extralib="-lresolv" 10170 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 10171 10172 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 10173 10174 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 10175 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 10176 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 10177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 10178$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 10179if eval \${$as_ac_Lib+:} false; then : 10180 $as_echo_n "(cached) " >&6 10181else 10182 ac_check_lib_save_LIBS=$LIBS 10183LIBS="-l${ldaplib} ${extralib} $LIBS" 10184cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10185/* end confdefs.h. */ 10186 10187/* Override any GCC internal prototype to avoid an error. 10188 Use char because int might match the return type of a GCC 10189 builtin and then its argument prototype would still apply. */ 10190#ifdef __cplusplus 10191extern "C" 10192#endif 10193char ldap_init (); 10194int 10195main () 10196{ 10197return ldap_init (); 10198 ; 10199 return 0; 10200} 10201_ACEOF 10202if ac_fn_c_try_link "$LINENO"; then : 10203 eval "$as_ac_Lib=yes" 10204else 10205 eval "$as_ac_Lib=no" 10206fi 10207rm -f core conftest.err conftest.$ac_objext \ 10208 conftest$ac_exeext conftest.$ac_ext 10209LIBS=$ac_check_lib_save_LIBS 10210fi 10211eval ac_res=\$$as_ac_Lib 10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10213$as_echo "$ac_res" >&6; } 10214if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10215 10216 LDADD_ldap_found="-l${ldaplib} ${extralib}" 10217 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 10218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 10219$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 10220if eval \${$as_ac_Lib+:} false; then : 10221 $as_echo_n "(cached) " >&6 10222else 10223 ac_check_lib_save_LIBS=$LIBS 10224LIBS="-l${ldaplib} ${extralib} $LIBS" 10225cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10226/* end confdefs.h. */ 10227 10228/* Override any GCC internal prototype to avoid an error. 10229 Use char because int might match the return type of a GCC 10230 builtin and then its argument prototype would still apply. */ 10231#ifdef __cplusplus 10232extern "C" 10233#endif 10234char ldapssl_client_init (); 10235int 10236main () 10237{ 10238return ldapssl_client_init (); 10239 ; 10240 return 0; 10241} 10242_ACEOF 10243if ac_fn_c_try_link "$LINENO"; then : 10244 eval "$as_ac_Lib=yes" 10245else 10246 eval "$as_ac_Lib=no" 10247fi 10248rm -f core conftest.err conftest.$ac_objext \ 10249 conftest$ac_exeext conftest.$ac_ext 10250LIBS=$ac_check_lib_save_LIBS 10251fi 10252eval ac_res=\$$as_ac_Lib 10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10254$as_echo "$ac_res" >&6; } 10255if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10256 apu_has_ldapssl_client_init="1" 10257fi 10258 10259 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 10260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 10261$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 10262if eval \${$as_ac_Lib+:} false; then : 10263 $as_echo_n "(cached) " >&6 10264else 10265 ac_check_lib_save_LIBS=$LIBS 10266LIBS="-l${ldaplib} ${extralib} $LIBS" 10267cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10268/* end confdefs.h. */ 10269 10270/* Override any GCC internal prototype to avoid an error. 10271 Use char because int might match the return type of a GCC 10272 builtin and then its argument prototype would still apply. */ 10273#ifdef __cplusplus 10274extern "C" 10275#endif 10276char ldapssl_client_deinit (); 10277int 10278main () 10279{ 10280return ldapssl_client_deinit (); 10281 ; 10282 return 0; 10283} 10284_ACEOF 10285if ac_fn_c_try_link "$LINENO"; then : 10286 eval "$as_ac_Lib=yes" 10287else 10288 eval "$as_ac_Lib=no" 10289fi 10290rm -f core conftest.err conftest.$ac_objext \ 10291 conftest$ac_exeext conftest.$ac_ext 10292LIBS=$ac_check_lib_save_LIBS 10293fi 10294eval ac_res=\$$as_ac_Lib 10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10296$as_echo "$ac_res" >&6; } 10297if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10298 apu_has_ldapssl_client_deinit="1" 10299fi 10300 10301 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 10302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 10303$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 10304if eval \${$as_ac_Lib+:} false; then : 10305 $as_echo_n "(cached) " >&6 10306else 10307 ac_check_lib_save_LIBS=$LIBS 10308LIBS="-l${ldaplib} ${extralib} $LIBS" 10309cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10310/* end confdefs.h. */ 10311 10312/* Override any GCC internal prototype to avoid an error. 10313 Use char because int might match the return type of a GCC 10314 builtin and then its argument prototype would still apply. */ 10315#ifdef __cplusplus 10316extern "C" 10317#endif 10318char ldapssl_add_trusted_cert (); 10319int 10320main () 10321{ 10322return ldapssl_add_trusted_cert (); 10323 ; 10324 return 0; 10325} 10326_ACEOF 10327if ac_fn_c_try_link "$LINENO"; then : 10328 eval "$as_ac_Lib=yes" 10329else 10330 eval "$as_ac_Lib=no" 10331fi 10332rm -f core conftest.err conftest.$ac_objext \ 10333 conftest$ac_exeext conftest.$ac_ext 10334LIBS=$ac_check_lib_save_LIBS 10335fi 10336eval ac_res=\$$as_ac_Lib 10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10338$as_echo "$ac_res" >&6; } 10339if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10340 apu_has_ldapssl_add_trusted_cert="1" 10341fi 10342 10343 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 10344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 10345$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 10346if eval \${$as_ac_Lib+:} false; then : 10347 $as_echo_n "(cached) " >&6 10348else 10349 ac_check_lib_save_LIBS=$LIBS 10350LIBS="-l${ldaplib} ${extralib} $LIBS" 10351cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10352/* end confdefs.h. */ 10353 10354/* Override any GCC internal prototype to avoid an error. 10355 Use char because int might match the return type of a GCC 10356 builtin and then its argument prototype would still apply. */ 10357#ifdef __cplusplus 10358extern "C" 10359#endif 10360char ldap_start_tls_s (); 10361int 10362main () 10363{ 10364return ldap_start_tls_s (); 10365 ; 10366 return 0; 10367} 10368_ACEOF 10369if ac_fn_c_try_link "$LINENO"; then : 10370 eval "$as_ac_Lib=yes" 10371else 10372 eval "$as_ac_Lib=no" 10373fi 10374rm -f core conftest.err conftest.$ac_objext \ 10375 conftest$ac_exeext conftest.$ac_ext 10376LIBS=$ac_check_lib_save_LIBS 10377fi 10378eval ac_res=\$$as_ac_Lib 10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10380$as_echo "$ac_res" >&6; } 10381if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10382 apu_has_ldap_start_tls_s="1" 10383fi 10384 10385 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 10386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 10387$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 10388if eval \${$as_ac_Lib+:} false; then : 10389 $as_echo_n "(cached) " >&6 10390else 10391 ac_check_lib_save_LIBS=$LIBS 10392LIBS="-l${ldaplib} ${extralib} $LIBS" 10393cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10394/* end confdefs.h. */ 10395 10396/* Override any GCC internal prototype to avoid an error. 10397 Use char because int might match the return type of a GCC 10398 builtin and then its argument prototype would still apply. */ 10399#ifdef __cplusplus 10400extern "C" 10401#endif 10402char ldap_sslinit (); 10403int 10404main () 10405{ 10406return ldap_sslinit (); 10407 ; 10408 return 0; 10409} 10410_ACEOF 10411if ac_fn_c_try_link "$LINENO"; then : 10412 eval "$as_ac_Lib=yes" 10413else 10414 eval "$as_ac_Lib=no" 10415fi 10416rm -f core conftest.err conftest.$ac_objext \ 10417 conftest$ac_exeext conftest.$ac_ext 10418LIBS=$ac_check_lib_save_LIBS 10419fi 10420eval ac_res=\$$as_ac_Lib 10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10422$as_echo "$ac_res" >&6; } 10423if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10424 apu_has_ldap_sslinit="1" 10425fi 10426 10427 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 10428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 10429$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 10430if eval \${$as_ac_Lib+:} false; then : 10431 $as_echo_n "(cached) " >&6 10432else 10433 ac_check_lib_save_LIBS=$LIBS 10434LIBS="-l${ldaplib} ${extralib} $LIBS" 10435cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10436/* end confdefs.h. */ 10437 10438/* Override any GCC internal prototype to avoid an error. 10439 Use char because int might match the return type of a GCC 10440 builtin and then its argument prototype would still apply. */ 10441#ifdef __cplusplus 10442extern "C" 10443#endif 10444char ldapssl_init (); 10445int 10446main () 10447{ 10448return ldapssl_init (); 10449 ; 10450 return 0; 10451} 10452_ACEOF 10453if ac_fn_c_try_link "$LINENO"; then : 10454 eval "$as_ac_Lib=yes" 10455else 10456 eval "$as_ac_Lib=no" 10457fi 10458rm -f core conftest.err conftest.$ac_objext \ 10459 conftest$ac_exeext conftest.$ac_ext 10460LIBS=$ac_check_lib_save_LIBS 10461fi 10462eval ac_res=\$$as_ac_Lib 10463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10464$as_echo "$ac_res" >&6; } 10465if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10466 apu_has_ldapssl_init="1" 10467fi 10468 10469 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 10470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 10471$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 10472if eval \${$as_ac_Lib+:} false; then : 10473 $as_echo_n "(cached) " >&6 10474else 10475 ac_check_lib_save_LIBS=$LIBS 10476LIBS="-l${ldaplib} ${extralib} $LIBS" 10477cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10478/* end confdefs.h. */ 10479 10480/* Override any GCC internal prototype to avoid an error. 10481 Use char because int might match the return type of a GCC 10482 builtin and then its argument prototype would still apply. */ 10483#ifdef __cplusplus 10484extern "C" 10485#endif 10486char ldapssl_install_routines (); 10487int 10488main () 10489{ 10490return ldapssl_install_routines (); 10491 ; 10492 return 0; 10493} 10494_ACEOF 10495if ac_fn_c_try_link "$LINENO"; then : 10496 eval "$as_ac_Lib=yes" 10497else 10498 eval "$as_ac_Lib=no" 10499fi 10500rm -f core conftest.err conftest.$ac_objext \ 10501 conftest$ac_exeext conftest.$ac_ext 10502LIBS=$ac_check_lib_save_LIBS 10503fi 10504eval ac_res=\$$as_ac_Lib 10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10506$as_echo "$ac_res" >&6; } 10507if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10508 apu_has_ldapssl_install_routines="1" 10509fi 10510 10511 apu_has_ldap="1"; 10512 10513fi 10514 10515 fi 10516 10517 10518 if test ${apu_has_ldap} != "1"; then 10519 ldaplib=$LIBLDAP 10520 extralib="-lresolv -lsocket -lnsl" 10521 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 10522 10523 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 10524 10525 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 10526 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 10527 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 10528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 10529$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 10530if eval \${$as_ac_Lib+:} false; then : 10531 $as_echo_n "(cached) " >&6 10532else 10533 ac_check_lib_save_LIBS=$LIBS 10534LIBS="-l${ldaplib} ${extralib} $LIBS" 10535cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10536/* end confdefs.h. */ 10537 10538/* Override any GCC internal prototype to avoid an error. 10539 Use char because int might match the return type of a GCC 10540 builtin and then its argument prototype would still apply. */ 10541#ifdef __cplusplus 10542extern "C" 10543#endif 10544char ldap_init (); 10545int 10546main () 10547{ 10548return ldap_init (); 10549 ; 10550 return 0; 10551} 10552_ACEOF 10553if ac_fn_c_try_link "$LINENO"; then : 10554 eval "$as_ac_Lib=yes" 10555else 10556 eval "$as_ac_Lib=no" 10557fi 10558rm -f core conftest.err conftest.$ac_objext \ 10559 conftest$ac_exeext conftest.$ac_ext 10560LIBS=$ac_check_lib_save_LIBS 10561fi 10562eval ac_res=\$$as_ac_Lib 10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10564$as_echo "$ac_res" >&6; } 10565if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10566 10567 LDADD_ldap_found="-l${ldaplib} ${extralib}" 10568 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 10569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 10570$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 10571if eval \${$as_ac_Lib+:} false; then : 10572 $as_echo_n "(cached) " >&6 10573else 10574 ac_check_lib_save_LIBS=$LIBS 10575LIBS="-l${ldaplib} ${extralib} $LIBS" 10576cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10577/* end confdefs.h. */ 10578 10579/* Override any GCC internal prototype to avoid an error. 10580 Use char because int might match the return type of a GCC 10581 builtin and then its argument prototype would still apply. */ 10582#ifdef __cplusplus 10583extern "C" 10584#endif 10585char ldapssl_client_init (); 10586int 10587main () 10588{ 10589return ldapssl_client_init (); 10590 ; 10591 return 0; 10592} 10593_ACEOF 10594if ac_fn_c_try_link "$LINENO"; then : 10595 eval "$as_ac_Lib=yes" 10596else 10597 eval "$as_ac_Lib=no" 10598fi 10599rm -f core conftest.err conftest.$ac_objext \ 10600 conftest$ac_exeext conftest.$ac_ext 10601LIBS=$ac_check_lib_save_LIBS 10602fi 10603eval ac_res=\$$as_ac_Lib 10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10605$as_echo "$ac_res" >&6; } 10606if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10607 apu_has_ldapssl_client_init="1" 10608fi 10609 10610 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 10611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 10612$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 10613if eval \${$as_ac_Lib+:} false; then : 10614 $as_echo_n "(cached) " >&6 10615else 10616 ac_check_lib_save_LIBS=$LIBS 10617LIBS="-l${ldaplib} ${extralib} $LIBS" 10618cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10619/* end confdefs.h. */ 10620 10621/* Override any GCC internal prototype to avoid an error. 10622 Use char because int might match the return type of a GCC 10623 builtin and then its argument prototype would still apply. */ 10624#ifdef __cplusplus 10625extern "C" 10626#endif 10627char ldapssl_client_deinit (); 10628int 10629main () 10630{ 10631return ldapssl_client_deinit (); 10632 ; 10633 return 0; 10634} 10635_ACEOF 10636if ac_fn_c_try_link "$LINENO"; then : 10637 eval "$as_ac_Lib=yes" 10638else 10639 eval "$as_ac_Lib=no" 10640fi 10641rm -f core conftest.err conftest.$ac_objext \ 10642 conftest$ac_exeext conftest.$ac_ext 10643LIBS=$ac_check_lib_save_LIBS 10644fi 10645eval ac_res=\$$as_ac_Lib 10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10647$as_echo "$ac_res" >&6; } 10648if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10649 apu_has_ldapssl_client_deinit="1" 10650fi 10651 10652 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 10653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 10654$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 10655if eval \${$as_ac_Lib+:} false; then : 10656 $as_echo_n "(cached) " >&6 10657else 10658 ac_check_lib_save_LIBS=$LIBS 10659LIBS="-l${ldaplib} ${extralib} $LIBS" 10660cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10661/* end confdefs.h. */ 10662 10663/* Override any GCC internal prototype to avoid an error. 10664 Use char because int might match the return type of a GCC 10665 builtin and then its argument prototype would still apply. */ 10666#ifdef __cplusplus 10667extern "C" 10668#endif 10669char ldapssl_add_trusted_cert (); 10670int 10671main () 10672{ 10673return ldapssl_add_trusted_cert (); 10674 ; 10675 return 0; 10676} 10677_ACEOF 10678if ac_fn_c_try_link "$LINENO"; then : 10679 eval "$as_ac_Lib=yes" 10680else 10681 eval "$as_ac_Lib=no" 10682fi 10683rm -f core conftest.err conftest.$ac_objext \ 10684 conftest$ac_exeext conftest.$ac_ext 10685LIBS=$ac_check_lib_save_LIBS 10686fi 10687eval ac_res=\$$as_ac_Lib 10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10689$as_echo "$ac_res" >&6; } 10690if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10691 apu_has_ldapssl_add_trusted_cert="1" 10692fi 10693 10694 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 10695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 10696$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 10697if eval \${$as_ac_Lib+:} false; then : 10698 $as_echo_n "(cached) " >&6 10699else 10700 ac_check_lib_save_LIBS=$LIBS 10701LIBS="-l${ldaplib} ${extralib} $LIBS" 10702cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10703/* end confdefs.h. */ 10704 10705/* Override any GCC internal prototype to avoid an error. 10706 Use char because int might match the return type of a GCC 10707 builtin and then its argument prototype would still apply. */ 10708#ifdef __cplusplus 10709extern "C" 10710#endif 10711char ldap_start_tls_s (); 10712int 10713main () 10714{ 10715return ldap_start_tls_s (); 10716 ; 10717 return 0; 10718} 10719_ACEOF 10720if ac_fn_c_try_link "$LINENO"; then : 10721 eval "$as_ac_Lib=yes" 10722else 10723 eval "$as_ac_Lib=no" 10724fi 10725rm -f core conftest.err conftest.$ac_objext \ 10726 conftest$ac_exeext conftest.$ac_ext 10727LIBS=$ac_check_lib_save_LIBS 10728fi 10729eval ac_res=\$$as_ac_Lib 10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10731$as_echo "$ac_res" >&6; } 10732if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10733 apu_has_ldap_start_tls_s="1" 10734fi 10735 10736 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 10737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 10738$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 10739if eval \${$as_ac_Lib+:} false; then : 10740 $as_echo_n "(cached) " >&6 10741else 10742 ac_check_lib_save_LIBS=$LIBS 10743LIBS="-l${ldaplib} ${extralib} $LIBS" 10744cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10745/* end confdefs.h. */ 10746 10747/* Override any GCC internal prototype to avoid an error. 10748 Use char because int might match the return type of a GCC 10749 builtin and then its argument prototype would still apply. */ 10750#ifdef __cplusplus 10751extern "C" 10752#endif 10753char ldap_sslinit (); 10754int 10755main () 10756{ 10757return ldap_sslinit (); 10758 ; 10759 return 0; 10760} 10761_ACEOF 10762if ac_fn_c_try_link "$LINENO"; then : 10763 eval "$as_ac_Lib=yes" 10764else 10765 eval "$as_ac_Lib=no" 10766fi 10767rm -f core conftest.err conftest.$ac_objext \ 10768 conftest$ac_exeext conftest.$ac_ext 10769LIBS=$ac_check_lib_save_LIBS 10770fi 10771eval ac_res=\$$as_ac_Lib 10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10773$as_echo "$ac_res" >&6; } 10774if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10775 apu_has_ldap_sslinit="1" 10776fi 10777 10778 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 10779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 10780$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 10781if eval \${$as_ac_Lib+:} false; then : 10782 $as_echo_n "(cached) " >&6 10783else 10784 ac_check_lib_save_LIBS=$LIBS 10785LIBS="-l${ldaplib} ${extralib} $LIBS" 10786cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10787/* end confdefs.h. */ 10788 10789/* Override any GCC internal prototype to avoid an error. 10790 Use char because int might match the return type of a GCC 10791 builtin and then its argument prototype would still apply. */ 10792#ifdef __cplusplus 10793extern "C" 10794#endif 10795char ldapssl_init (); 10796int 10797main () 10798{ 10799return ldapssl_init (); 10800 ; 10801 return 0; 10802} 10803_ACEOF 10804if ac_fn_c_try_link "$LINENO"; then : 10805 eval "$as_ac_Lib=yes" 10806else 10807 eval "$as_ac_Lib=no" 10808fi 10809rm -f core conftest.err conftest.$ac_objext \ 10810 conftest$ac_exeext conftest.$ac_ext 10811LIBS=$ac_check_lib_save_LIBS 10812fi 10813eval ac_res=\$$as_ac_Lib 10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10815$as_echo "$ac_res" >&6; } 10816if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10817 apu_has_ldapssl_init="1" 10818fi 10819 10820 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 10821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 10822$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 10823if eval \${$as_ac_Lib+:} false; then : 10824 $as_echo_n "(cached) " >&6 10825else 10826 ac_check_lib_save_LIBS=$LIBS 10827LIBS="-l${ldaplib} ${extralib} $LIBS" 10828cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10829/* end confdefs.h. */ 10830 10831/* Override any GCC internal prototype to avoid an error. 10832 Use char because int might match the return type of a GCC 10833 builtin and then its argument prototype would still apply. */ 10834#ifdef __cplusplus 10835extern "C" 10836#endif 10837char ldapssl_install_routines (); 10838int 10839main () 10840{ 10841return ldapssl_install_routines (); 10842 ; 10843 return 0; 10844} 10845_ACEOF 10846if ac_fn_c_try_link "$LINENO"; then : 10847 eval "$as_ac_Lib=yes" 10848else 10849 eval "$as_ac_Lib=no" 10850fi 10851rm -f core conftest.err conftest.$ac_objext \ 10852 conftest$ac_exeext conftest.$ac_ext 10853LIBS=$ac_check_lib_save_LIBS 10854fi 10855eval ac_res=\$$as_ac_Lib 10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10857$as_echo "$ac_res" >&6; } 10858if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10859 apu_has_ldapssl_install_routines="1" 10860fi 10861 10862 apu_has_ldap="1"; 10863 10864fi 10865 10866 fi 10867 10868 10869 if test ${apu_has_ldap} != "1"; then 10870 ldaplib=$LIBLDAP 10871 extralib="-ldl -lpthread" 10872 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 10873 10874 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 10875 10876 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 10877 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 10878 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 10879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 10880$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 10881if eval \${$as_ac_Lib+:} false; then : 10882 $as_echo_n "(cached) " >&6 10883else 10884 ac_check_lib_save_LIBS=$LIBS 10885LIBS="-l${ldaplib} ${extralib} $LIBS" 10886cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10887/* end confdefs.h. */ 10888 10889/* Override any GCC internal prototype to avoid an error. 10890 Use char because int might match the return type of a GCC 10891 builtin and then its argument prototype would still apply. */ 10892#ifdef __cplusplus 10893extern "C" 10894#endif 10895char ldap_init (); 10896int 10897main () 10898{ 10899return ldap_init (); 10900 ; 10901 return 0; 10902} 10903_ACEOF 10904if ac_fn_c_try_link "$LINENO"; then : 10905 eval "$as_ac_Lib=yes" 10906else 10907 eval "$as_ac_Lib=no" 10908fi 10909rm -f core conftest.err conftest.$ac_objext \ 10910 conftest$ac_exeext conftest.$ac_ext 10911LIBS=$ac_check_lib_save_LIBS 10912fi 10913eval ac_res=\$$as_ac_Lib 10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10915$as_echo "$ac_res" >&6; } 10916if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10917 10918 LDADD_ldap_found="-l${ldaplib} ${extralib}" 10919 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 10920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 10921$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 10922if eval \${$as_ac_Lib+:} false; then : 10923 $as_echo_n "(cached) " >&6 10924else 10925 ac_check_lib_save_LIBS=$LIBS 10926LIBS="-l${ldaplib} ${extralib} $LIBS" 10927cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10928/* end confdefs.h. */ 10929 10930/* Override any GCC internal prototype to avoid an error. 10931 Use char because int might match the return type of a GCC 10932 builtin and then its argument prototype would still apply. */ 10933#ifdef __cplusplus 10934extern "C" 10935#endif 10936char ldapssl_client_init (); 10937int 10938main () 10939{ 10940return ldapssl_client_init (); 10941 ; 10942 return 0; 10943} 10944_ACEOF 10945if ac_fn_c_try_link "$LINENO"; then : 10946 eval "$as_ac_Lib=yes" 10947else 10948 eval "$as_ac_Lib=no" 10949fi 10950rm -f core conftest.err conftest.$ac_objext \ 10951 conftest$ac_exeext conftest.$ac_ext 10952LIBS=$ac_check_lib_save_LIBS 10953fi 10954eval ac_res=\$$as_ac_Lib 10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10956$as_echo "$ac_res" >&6; } 10957if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10958 apu_has_ldapssl_client_init="1" 10959fi 10960 10961 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 10962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 10963$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 10964if eval \${$as_ac_Lib+:} false; then : 10965 $as_echo_n "(cached) " >&6 10966else 10967 ac_check_lib_save_LIBS=$LIBS 10968LIBS="-l${ldaplib} ${extralib} $LIBS" 10969cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10970/* end confdefs.h. */ 10971 10972/* Override any GCC internal prototype to avoid an error. 10973 Use char because int might match the return type of a GCC 10974 builtin and then its argument prototype would still apply. */ 10975#ifdef __cplusplus 10976extern "C" 10977#endif 10978char ldapssl_client_deinit (); 10979int 10980main () 10981{ 10982return ldapssl_client_deinit (); 10983 ; 10984 return 0; 10985} 10986_ACEOF 10987if ac_fn_c_try_link "$LINENO"; then : 10988 eval "$as_ac_Lib=yes" 10989else 10990 eval "$as_ac_Lib=no" 10991fi 10992rm -f core conftest.err conftest.$ac_objext \ 10993 conftest$ac_exeext conftest.$ac_ext 10994LIBS=$ac_check_lib_save_LIBS 10995fi 10996eval ac_res=\$$as_ac_Lib 10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10998$as_echo "$ac_res" >&6; } 10999if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 11000 apu_has_ldapssl_client_deinit="1" 11001fi 11002 11003 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 11004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 11005$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 11006if eval \${$as_ac_Lib+:} false; then : 11007 $as_echo_n "(cached) " >&6 11008else 11009 ac_check_lib_save_LIBS=$LIBS 11010LIBS="-l${ldaplib} ${extralib} $LIBS" 11011cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11012/* end confdefs.h. */ 11013 11014/* Override any GCC internal prototype to avoid an error. 11015 Use char because int might match the return type of a GCC 11016 builtin and then its argument prototype would still apply. */ 11017#ifdef __cplusplus 11018extern "C" 11019#endif 11020char ldapssl_add_trusted_cert (); 11021int 11022main () 11023{ 11024return ldapssl_add_trusted_cert (); 11025 ; 11026 return 0; 11027} 11028_ACEOF 11029if ac_fn_c_try_link "$LINENO"; then : 11030 eval "$as_ac_Lib=yes" 11031else 11032 eval "$as_ac_Lib=no" 11033fi 11034rm -f core conftest.err conftest.$ac_objext \ 11035 conftest$ac_exeext conftest.$ac_ext 11036LIBS=$ac_check_lib_save_LIBS 11037fi 11038eval ac_res=\$$as_ac_Lib 11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11040$as_echo "$ac_res" >&6; } 11041if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 11042 apu_has_ldapssl_add_trusted_cert="1" 11043fi 11044 11045 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 11046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 11047$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 11048if eval \${$as_ac_Lib+:} false; then : 11049 $as_echo_n "(cached) " >&6 11050else 11051 ac_check_lib_save_LIBS=$LIBS 11052LIBS="-l${ldaplib} ${extralib} $LIBS" 11053cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11054/* end confdefs.h. */ 11055 11056/* Override any GCC internal prototype to avoid an error. 11057 Use char because int might match the return type of a GCC 11058 builtin and then its argument prototype would still apply. */ 11059#ifdef __cplusplus 11060extern "C" 11061#endif 11062char ldap_start_tls_s (); 11063int 11064main () 11065{ 11066return ldap_start_tls_s (); 11067 ; 11068 return 0; 11069} 11070_ACEOF 11071if ac_fn_c_try_link "$LINENO"; then : 11072 eval "$as_ac_Lib=yes" 11073else 11074 eval "$as_ac_Lib=no" 11075fi 11076rm -f core conftest.err conftest.$ac_objext \ 11077 conftest$ac_exeext conftest.$ac_ext 11078LIBS=$ac_check_lib_save_LIBS 11079fi 11080eval ac_res=\$$as_ac_Lib 11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11082$as_echo "$ac_res" >&6; } 11083if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 11084 apu_has_ldap_start_tls_s="1" 11085fi 11086 11087 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 11088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 11089$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 11090if eval \${$as_ac_Lib+:} false; then : 11091 $as_echo_n "(cached) " >&6 11092else 11093 ac_check_lib_save_LIBS=$LIBS 11094LIBS="-l${ldaplib} ${extralib} $LIBS" 11095cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11096/* end confdefs.h. */ 11097 11098/* Override any GCC internal prototype to avoid an error. 11099 Use char because int might match the return type of a GCC 11100 builtin and then its argument prototype would still apply. */ 11101#ifdef __cplusplus 11102extern "C" 11103#endif 11104char ldap_sslinit (); 11105int 11106main () 11107{ 11108return ldap_sslinit (); 11109 ; 11110 return 0; 11111} 11112_ACEOF 11113if ac_fn_c_try_link "$LINENO"; then : 11114 eval "$as_ac_Lib=yes" 11115else 11116 eval "$as_ac_Lib=no" 11117fi 11118rm -f core conftest.err conftest.$ac_objext \ 11119 conftest$ac_exeext conftest.$ac_ext 11120LIBS=$ac_check_lib_save_LIBS 11121fi 11122eval ac_res=\$$as_ac_Lib 11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11124$as_echo "$ac_res" >&6; } 11125if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 11126 apu_has_ldap_sslinit="1" 11127fi 11128 11129 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 11130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 11131$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 11132if eval \${$as_ac_Lib+:} false; then : 11133 $as_echo_n "(cached) " >&6 11134else 11135 ac_check_lib_save_LIBS=$LIBS 11136LIBS="-l${ldaplib} ${extralib} $LIBS" 11137cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11138/* end confdefs.h. */ 11139 11140/* Override any GCC internal prototype to avoid an error. 11141 Use char because int might match the return type of a GCC 11142 builtin and then its argument prototype would still apply. */ 11143#ifdef __cplusplus 11144extern "C" 11145#endif 11146char ldapssl_init (); 11147int 11148main () 11149{ 11150return ldapssl_init (); 11151 ; 11152 return 0; 11153} 11154_ACEOF 11155if ac_fn_c_try_link "$LINENO"; then : 11156 eval "$as_ac_Lib=yes" 11157else 11158 eval "$as_ac_Lib=no" 11159fi 11160rm -f core conftest.err conftest.$ac_objext \ 11161 conftest$ac_exeext conftest.$ac_ext 11162LIBS=$ac_check_lib_save_LIBS 11163fi 11164eval ac_res=\$$as_ac_Lib 11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11166$as_echo "$ac_res" >&6; } 11167if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 11168 apu_has_ldapssl_init="1" 11169fi 11170 11171 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 11172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 11173$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 11174if eval \${$as_ac_Lib+:} false; then : 11175 $as_echo_n "(cached) " >&6 11176else 11177 ac_check_lib_save_LIBS=$LIBS 11178LIBS="-l${ldaplib} ${extralib} $LIBS" 11179cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11180/* end confdefs.h. */ 11181 11182/* Override any GCC internal prototype to avoid an error. 11183 Use char because int might match the return type of a GCC 11184 builtin and then its argument prototype would still apply. */ 11185#ifdef __cplusplus 11186extern "C" 11187#endif 11188char ldapssl_install_routines (); 11189int 11190main () 11191{ 11192return ldapssl_install_routines (); 11193 ; 11194 return 0; 11195} 11196_ACEOF 11197if ac_fn_c_try_link "$LINENO"; then : 11198 eval "$as_ac_Lib=yes" 11199else 11200 eval "$as_ac_Lib=no" 11201fi 11202rm -f core conftest.err conftest.$ac_objext \ 11203 conftest$ac_exeext conftest.$ac_ext 11204LIBS=$ac_check_lib_save_LIBS 11205fi 11206eval ac_res=\$$as_ac_Lib 11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11208$as_echo "$ac_res" >&6; } 11209if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 11210 apu_has_ldapssl_install_routines="1" 11211fi 11212 11213 apu_has_ldap="1"; 11214 11215fi 11216 11217 fi 11218 11219 fi 11220 11221 if test ${apu_has_ldap} != "1"; then 11222 as_fn_error $? "could not find an LDAP library" "$LINENO" 5 11223 else 11224 11225 if test "x$LDADD_ldap" = "x"; then 11226 test "x$silent" != "xyes" && echo " setting LDADD_ldap to \"$LDADD_ldap_found\"" 11227 LDADD_ldap="$LDADD_ldap_found" 11228 else 11229 apr_addto_bugger="$LDADD_ldap_found" 11230 for i in $apr_addto_bugger; do 11231 apr_addto_duplicate="0" 11232 for j in $LDADD_ldap; do 11233 if test "x$i" = "x$j"; then 11234 apr_addto_duplicate="1" 11235 break 11236 fi 11237 done 11238 if test $apr_addto_duplicate = "0"; then 11239 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_ldap" 11240 LDADD_ldap="$LDADD_ldap $i" 11241 fi 11242 done 11243 fi 11244 11245 fi 11246 as_ac_Lib=`$as_echo "ac_cv_lib_$apu_liblber_name''_ber_init" | $as_tr_sh` 11247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -l$apu_liblber_name" >&5 11248$as_echo_n "checking for ber_init in -l$apu_liblber_name... " >&6; } 11249if eval \${$as_ac_Lib+:} false; then : 11250 $as_echo_n "(cached) " >&6 11251else 11252 ac_check_lib_save_LIBS=$LIBS 11253LIBS="-l$apu_liblber_name $LIBS" 11254cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11255/* end confdefs.h. */ 11256 11257/* Override any GCC internal prototype to avoid an error. 11258 Use char because int might match the return type of a GCC 11259 builtin and then its argument prototype would still apply. */ 11260#ifdef __cplusplus 11261extern "C" 11262#endif 11263char ber_init (); 11264int 11265main () 11266{ 11267return ber_init (); 11268 ; 11269 return 0; 11270} 11271_ACEOF 11272if ac_fn_c_try_link "$LINENO"; then : 11273 eval "$as_ac_Lib=yes" 11274else 11275 eval "$as_ac_Lib=no" 11276fi 11277rm -f core conftest.err conftest.$ac_objext \ 11278 conftest$ac_exeext conftest.$ac_ext 11279LIBS=$ac_check_lib_save_LIBS 11280fi 11281eval ac_res=\$$as_ac_Lib 11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11283$as_echo "$ac_res" >&6; } 11284if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 11285 11286 if test "x$LDADD_ldap" = "x"; then 11287 test "x$silent" != "xyes" && echo " setting LDADD_ldap to \"-l${apu_liblber_name}\"" 11288 LDADD_ldap="-l${apu_liblber_name}" 11289 else 11290 apr_addto_bugger="-l${apu_liblber_name}" 11291 for i in $apr_addto_bugger; do 11292 apr_addto_duplicate="0" 11293 for j in $LDADD_ldap; do 11294 if test "x$i" = "x$j"; then 11295 apr_addto_duplicate="1" 11296 break 11297 fi 11298 done 11299 if test $apr_addto_duplicate = "0"; then 11300 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_ldap" 11301 LDADD_ldap="$LDADD_ldap $i" 11302 fi 11303 done 11304 fi 11305 11306fi 11307 11308 11309 for ac_header in lber.h 11310do : 11311 ac_fn_c_check_header_mongrel "$LINENO" "lber.h" "ac_cv_header_lber_h" "$ac_includes_default" 11312if test "x$ac_cv_header_lber_h" = xyes; then : 11313 cat >>confdefs.h <<_ACEOF 11314#define HAVE_LBER_H 1 11315_ACEOF 11316 lber_h="#include <lber.h>" 11317fi 11318 11319done 11320 11321 11322 # Solaris has a problem in <ldap.h> which prevents it from 11323 # being included by itself. Check for <ldap.h> manually, 11324 # including lber.h first. 11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5 11326$as_echo_n "checking for ldap.h... " >&6; } 11327if ${apr_cv_hdr_ldap_h+:} false; then : 11328 $as_echo_n "(cached) " >&6 11329else 11330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11331/* end confdefs.h. */ 11332#ifdef HAVE_LBER_H 11333 #include <lber.h> 11334 #endif 11335 #include <ldap.h> 11336 11337_ACEOF 11338if ac_fn_c_try_cpp "$LINENO"; then : 11339 apr_cv_hdr_ldap_h=yes 11340else 11341 apr_cv_hdr_ldap_h=no 11342fi 11343rm -f conftest.err conftest.i conftest.$ac_ext 11344fi 11345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_hdr_ldap_h" >&5 11346$as_echo "$apr_cv_hdr_ldap_h" >&6; } 11347 if test "$apr_cv_hdr_ldap_h" = "yes"; then 11348 ldap_h="#include <ldap.h>" 11349 11350$as_echo "#define HAVE_LDAP_H 1" >>confdefs.h 11351 11352 fi 11353 11354 for ac_header in ldap_ssl.h 11355do : 11356 ac_fn_c_check_header_mongrel "$LINENO" "ldap_ssl.h" "ac_cv_header_ldap_ssl_h" "$ac_includes_default" 11357if test "x$ac_cv_header_ldap_ssl_h" = xyes; then : 11358 cat >>confdefs.h <<_ACEOF 11359#define HAVE_LDAP_SSL_H 1 11360_ACEOF 11361 ldap_ssl_h="#include <ldap_ssl.h>" 11362fi 11363 11364done 11365 11366 11367 if test "$apr_cv_hdr_ldap_h" = "yes"; then 11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP toolkit" >&5 11369$as_echo_n "checking for LDAP toolkit... " >&6; } 11370if ${apr_cv_ldap_toolkit+:} false; then : 11371 $as_echo_n "(cached) " >&6 11372else 11373 11374 if test "x$apr_cv_ldap_toolkit" = "x"; then 11375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11376/* end confdefs.h. */ 11377$lber_h 11378 $ldap_h 11379 LDAP_VENDOR_NAME 11380_ACEOF 11381if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11382 $EGREP "OpenLDAP" >/dev/null 2>&1; then : 11383 apu_has_ldap_openldap="1" 11384 apr_cv_ldap_toolkit="OpenLDAP" 11385fi 11386rm -f conftest* 11387 11388 fi 11389 if test "x$apr_cv_ldap_toolkit" = "x"; then 11390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11391/* end confdefs.h. */ 11392$lber_h 11393 $ldap_h 11394 LDAP_VENDOR_NAME 11395_ACEOF 11396if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11397 $EGREP "Sun Microsystems Inc." >/dev/null 2>&1; then : 11398 apu_has_ldap_solaris="1" 11399 apr_cv_ldap_toolkit="Solaris" 11400fi 11401rm -f conftest* 11402 11403 fi 11404 if test "x$apr_cv_ldap_toolkit" = "x"; then 11405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11406/* end confdefs.h. */ 11407$lber_h 11408 $ldap_h 11409 LDAP_VENDOR_NAME 11410_ACEOF 11411if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11412 $EGREP "Novell" >/dev/null 2>&1; then : 11413 apu_has_ldap_novell="1" 11414 apr_cv_ldap_toolkit="Novell" 11415fi 11416rm -f conftest* 11417 11418 fi 11419 if test "x$apr_cv_ldap_toolkit" = "x"; then 11420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11421/* end confdefs.h. */ 11422$lber_h 11423 $ldap_h 11424 LDAP_VENDOR_NAME 11425_ACEOF 11426if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11427 $EGREP "Microsoft Corporation." >/dev/null 2>&1; then : 11428 apu_has_ldap_microsoft="1" 11429 apr_cv_ldap_toolkit="Microsoft" 11430fi 11431rm -f conftest* 11432 11433 fi 11434 if test "x$apr_cv_ldap_toolkit" = "x"; then 11435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11436/* end confdefs.h. */ 11437$lber_h 11438 $ldap_h 11439 LDAP_VENDOR_NAME 11440_ACEOF 11441if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11442 $EGREP "Netscape Communications Corp." >/dev/null 2>&1; then : 11443 apu_has_ldap_netscape="1" 11444 apr_cv_ldap_toolkit="Netscape" 11445fi 11446rm -f conftest* 11447 11448 fi 11449 if test "x$apr_cv_ldap_toolkit" = "x"; then 11450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11451/* end confdefs.h. */ 11452$lber_h 11453 $ldap_h 11454 LDAP_VENDOR_NAME 11455_ACEOF 11456if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11457 $EGREP "mozilla.org" >/dev/null 2>&1; then : 11458 apu_has_ldap_mozilla="1" 11459 apr_cv_ldap_toolkit="Mozilla" 11460fi 11461rm -f conftest* 11462 11463 fi 11464 if test "x$apr_cv_ldap_toolkit" = "x"; then 11465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11466/* end confdefs.h. */ 11467$lber_h 11468 $ldap_h 11469 LDAP_VENDOR_NAME 11470_ACEOF 11471if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11472 $EGREP "International Business Machines" >/dev/null 2>&1; then : 11473 apu_has_ldap_tivoli="1" 11474 apr_cv_ldap_toolkit="Tivoli" 11475fi 11476rm -f conftest* 11477 11478 fi 11479 if test "x$apr_cv_ldap_toolkit" = "x"; then 11480 case "$host" in 11481 *-ibm-os390) 11482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11483/* end confdefs.h. */ 11484$lber_h 11485 $ldap_h 11486_ACEOF 11487if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11488 $EGREP "IBM" >/dev/null 2>&1; then : 11489 apu_has_ldap_zos="1" 11490 apr_cv_ldap_toolkit="z/OS" 11491fi 11492rm -f conftest* 11493 11494 ;; 11495 esac 11496 fi 11497 if test "x$apr_cv_ldap_toolkit" = "x"; then 11498 apu_has_ldap_other="1" 11499 apr_cv_ldap_toolkit="unknown" 11500 fi 11501 11502fi 11503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_ldap_toolkit" >&5 11504$as_echo "$apr_cv_ldap_toolkit" >&6; } 11505 fi 11506 11507 CPPFLAGS=$save_cppflags 11508 LDFLAGS=$save_ldflags 11509 LIBS=$save_libs 11510 fi 11511 11512fi 11513 11514 11515if test "$apu_has_ldap_openldap" = "1"; then 11516 save_cppflags="$CPPFLAGS" 11517 save_ldflags="$LDFLAGS" 11518 save_libs="$LIBS" 11519 11520 CPPFLAGS="$CPPFLAGS $APRUTIL_INCLUDES" 11521 LDFLAGS="$LDFLAGS $APRUTIL_LDFLAGS" 11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking style of ldap_set_rebind_proc routine" >&5 11523$as_echo_n "checking style of ldap_set_rebind_proc routine... " >&6; } 11524if ${ac_cv_ldap_set_rebind_proc_style+:} false; then : 11525 $as_echo_n "(cached) " >&6 11526else 11527 apr_save_CFLAGS=$CFLAGS 11528 CFLAGS="$CFLAGS $CFLAGS_WARN" 11529 if test "$ac_cv_c_compiler_gnu" = "yes"; then 11530 CFLAGS="$CFLAGS -Werror" 11531 fi 11532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11533/* end confdefs.h. */ 11534#include "confdefs.h" 11535 11536 11537 #ifdef HAVE_LBER_H 11538 #include <lber.h> 11539 #endif 11540 #ifdef HAVE_LDAP_H 11541 #include <ldap.h> 11542 #endif 11543 11544 int main(int argc, const char *const *argv) { 11545 11546 ldap_set_rebind_proc((LDAP *)0, (LDAP_REBIND_PROC *)0, (void *)0); 11547 11548 return 0; } 11549 11550_ACEOF 11551if ac_fn_c_try_compile "$LINENO"; then : 11552 ac_cv_ldap_set_rebind_proc_style=three 11553else 11554 ac_cv_ldap_set_rebind_proc_style=two 11555fi 11556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11557 CFLAGS=$apr_save_CFLAGS 11558 11559fi 11560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ldap_set_rebind_proc_style" >&5 11561$as_echo "$ac_cv_ldap_set_rebind_proc_style" >&6; } 11562 11563 if test "$ac_cv_ldap_set_rebind_proc_style" = "three"; then 11564 11565$as_echo "#define LDAP_SET_REBIND_PROC_THREE 1" >>confdefs.h 11566 11567 fi 11568 11569 CPPFLAGS="$save_cppflags" 11570 LDFLAGS="$save_ldflags" 11571 LIBS="$save_libs" 11572fi 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 apu_use_sdbm=0 11599 apu_use_ndbm=0 11600 apu_use_gdbm=0 11601 apu_use_db=0 11602 apu_have_sdbm=1 11603 apu_have_gdbm=0 11604 apu_have_ndbm=0 11605 apu_have_db=0 11606 11607 apu_db_header=db.h # default so apu_select_dbm.h is syntactically correct 11608 apu_db_version=0 11609 11610 # Maximum supported version announced in help string.
| 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 640APR_XML_DIR 641apu_dbd_tests 642LDADD_dbd_odbc 643apu_have_odbc 644ODBC_CONFIG 645LDADD_dbd_freetds 646apu_have_freetds 647LDADD_dbd_oracle 648apu_have_oracle 649LDADD_dbd_sqlite2 650apu_have_sqlite2 651LDADD_dbd_sqlite3 652apu_have_sqlite3 653LDADD_dbd_mysql 654apu_have_mysql 655MYSQL_CONFIG 656LDADD_dbd_pgsql 657apu_have_pgsql 658PGSQL_CONFIG 659LDADD_dbm_ndbm 660LDADD_dbm_gdbm 661LDADD_dbm_db 662apu_db_version 663apu_db_header 664apu_have_db 665apu_have_ndbm 666apu_have_gdbm 667apu_have_sdbm 668apu_use_db 669apu_use_ndbm 670apu_use_gdbm 671apu_use_sdbm 672LDADD_ldap 673apu_has_ldap_other 674apu_has_ldap_zos 675apu_has_ldap_tivoli 676apu_has_ldap_mozilla 677apu_has_ldap_netscape 678apu_has_ldap_microsoft 679apu_has_ldap_novell 680apu_has_ldap_solaris 681apu_has_ldap_openldap 682apu_has_ldap 683apu_has_ldapssl_install_routines 684apu_has_ldap_sslinit 685apu_has_ldapssl_init 686apu_has_ldap_start_tls_s 687apu_has_ldapssl_add_trusted_cert 688apu_has_ldapssl_client_deinit 689apu_has_ldapssl_client_init 690ldap_ssl_h 691lber_h 692ldap_h 693LDADD_crypto_nss 694apu_have_nss 695PKG_CONFIG 696apu_have_crypto 697LDADD_crypto_openssl 698apu_have_openssl 699EGREP 700GREP 701CPP 702APR_ICONV_DIR 703apr_shlibpath_var 704APR_BUILD_DIR 705APR_LIBS 706APR_INCLUDES 707OBJEXT 708EXEEXT 709ac_ct_CC 710CPPFLAGS 711LDFLAGS 712CFLAGS 713CC 714APU_LTVERSION 715APRUTIL_MAJOR_VERSION 716APRUTIL_DOTTED_VERSION 717abs_builddir 718abs_srcdir 719top_builddir 720LT_NO_INSTALL 721INSTALL_DATA 722INSTALL_SCRIPT 723INSTALL_PROGRAM 724target_os 725target_vendor 726target_cpu 727target 728host_os 729host_vendor 730host_cpu 731host 732build_os 733build_vendor 734build_cpu 735build 736APU_CONFIG_LOCATION 737target_alias 738host_alias 739build_alias 740LIBS 741ECHO_T 742ECHO_N 743ECHO_C 744DEFS 745mandir 746localedir 747libdir 748psdir 749pdfdir 750dvidir 751htmldir 752infodir 753docdir 754oldincludedir 755includedir 756localstatedir 757sharedstatedir 758sysconfdir 759datadir 760datarootdir 761libexecdir 762sbindir 763bindir 764program_transform_name 765prefix 766exec_prefix 767PACKAGE_URL 768PACKAGE_BUGREPORT 769PACKAGE_STRING 770PACKAGE_VERSION 771PACKAGE_TARNAME 772PACKAGE_NAME 773PATH_SEPARATOR 774SHELL' 775ac_subst_files='' 776ac_user_opts=' 777enable_option_checking 778enable_layout 779with_apr 780with_apr_iconv 781with_crypto 782with_openssl 783with_nss 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_freetds 799with_odbc 800with_expat 801with_iconv 802enable_util_dso 803' 804 ac_precious_vars='build_alias 805host_alias 806target_alias 807CC 808CFLAGS 809LDFLAGS 810LIBS 811CPPFLAGS 812CPP' 813 814 815# Initialize some variables set by options. 816ac_init_help= 817ac_init_version=false 818ac_unrecognized_opts= 819ac_unrecognized_sep= 820# The variables have the same names as the options, with 821# dashes changed to underlines. 822cache_file=/dev/null 823exec_prefix=NONE 824no_create= 825no_recursion= 826prefix=NONE 827program_prefix=NONE 828program_suffix=NONE 829program_transform_name=s,x,x, 830silent= 831site= 832srcdir= 833verbose= 834x_includes=NONE 835x_libraries=NONE 836 837# Installation directory options. 838# These are left unexpanded so users can "make install exec_prefix=/foo" 839# and all the variables that are supposed to be based on exec_prefix 840# by default will actually change. 841# Use braces instead of parens because sh, perl, etc. also accept them. 842# (The list follows the same order as the GNU Coding Standards.) 843bindir='${exec_prefix}/bin' 844sbindir='${exec_prefix}/sbin' 845libexecdir='${exec_prefix}/libexec' 846datarootdir='${prefix}/share' 847datadir='${datarootdir}' 848sysconfdir='${prefix}/etc' 849sharedstatedir='${prefix}/com' 850localstatedir='${prefix}/var' 851includedir='${prefix}/include' 852oldincludedir='/usr/include' 853docdir='${datarootdir}/doc/${PACKAGE}' 854infodir='${datarootdir}/info' 855htmldir='${docdir}' 856dvidir='${docdir}' 857pdfdir='${docdir}' 858psdir='${docdir}' 859libdir='${exec_prefix}/lib' 860localedir='${datarootdir}/locale' 861mandir='${datarootdir}/man' 862 863ac_prev= 864ac_dashdash= 865for ac_option 866do 867 # If the previous option needs an argument, assign it. 868 if test -n "$ac_prev"; then 869 eval $ac_prev=\$ac_option 870 ac_prev= 871 continue 872 fi 873 874 case $ac_option in 875 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 876 *=) ac_optarg= ;; 877 *) ac_optarg=yes ;; 878 esac 879 880 # Accept the important Cygnus configure options, so we can diagnose typos. 881 882 case $ac_dashdash$ac_option in 883 --) 884 ac_dashdash=yes ;; 885 886 -bindir | --bindir | --bindi | --bind | --bin | --bi) 887 ac_prev=bindir ;; 888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 889 bindir=$ac_optarg ;; 890 891 -build | --build | --buil | --bui | --bu) 892 ac_prev=build_alias ;; 893 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 894 build_alias=$ac_optarg ;; 895 896 -cache-file | --cache-file | --cache-fil | --cache-fi \ 897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 898 ac_prev=cache_file ;; 899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 901 cache_file=$ac_optarg ;; 902 903 --config-cache | -C) 904 cache_file=config.cache ;; 905 906 -datadir | --datadir | --datadi | --datad) 907 ac_prev=datadir ;; 908 -datadir=* | --datadir=* | --datadi=* | --datad=*) 909 datadir=$ac_optarg ;; 910 911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 912 | --dataroo | --dataro | --datar) 913 ac_prev=datarootdir ;; 914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 916 datarootdir=$ac_optarg ;; 917 918 -disable-* | --disable-*) 919 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 920 # Reject names that are not valid shell variable names. 921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 922 as_fn_error $? "invalid feature name: $ac_useropt" 923 ac_useropt_orig=$ac_useropt 924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 925 case $ac_user_opts in 926 *" 927"enable_$ac_useropt" 928"*) ;; 929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 930 ac_unrecognized_sep=', ';; 931 esac 932 eval enable_$ac_useropt=no ;; 933 934 -docdir | --docdir | --docdi | --doc | --do) 935 ac_prev=docdir ;; 936 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 937 docdir=$ac_optarg ;; 938 939 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 940 ac_prev=dvidir ;; 941 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 942 dvidir=$ac_optarg ;; 943 944 -enable-* | --enable-*) 945 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 946 # Reject names that are not valid shell variable names. 947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 948 as_fn_error $? "invalid feature name: $ac_useropt" 949 ac_useropt_orig=$ac_useropt 950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 951 case $ac_user_opts in 952 *" 953"enable_$ac_useropt" 954"*) ;; 955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 956 ac_unrecognized_sep=', ';; 957 esac 958 eval enable_$ac_useropt=\$ac_optarg ;; 959 960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 962 | --exec | --exe | --ex) 963 ac_prev=exec_prefix ;; 964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 966 | --exec=* | --exe=* | --ex=*) 967 exec_prefix=$ac_optarg ;; 968 969 -gas | --gas | --ga | --g) 970 # Obsolete; use --with-gas. 971 with_gas=yes ;; 972 973 -help | --help | --hel | --he | -h) 974 ac_init_help=long ;; 975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 976 ac_init_help=recursive ;; 977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 978 ac_init_help=short ;; 979 980 -host | --host | --hos | --ho) 981 ac_prev=host_alias ;; 982 -host=* | --host=* | --hos=* | --ho=*) 983 host_alias=$ac_optarg ;; 984 985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 986 ac_prev=htmldir ;; 987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 988 | --ht=*) 989 htmldir=$ac_optarg ;; 990 991 -includedir | --includedir | --includedi | --included | --include \ 992 | --includ | --inclu | --incl | --inc) 993 ac_prev=includedir ;; 994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 995 | --includ=* | --inclu=* | --incl=* | --inc=*) 996 includedir=$ac_optarg ;; 997 998 -infodir | --infodir | --infodi | --infod | --info | --inf) 999 ac_prev=infodir ;; 1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1001 infodir=$ac_optarg ;; 1002 1003 -libdir | --libdir | --libdi | --libd) 1004 ac_prev=libdir ;; 1005 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1006 libdir=$ac_optarg ;; 1007 1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1009 | --libexe | --libex | --libe) 1010 ac_prev=libexecdir ;; 1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1012 | --libexe=* | --libex=* | --libe=*) 1013 libexecdir=$ac_optarg ;; 1014 1015 -localedir | --localedir | --localedi | --localed | --locale) 1016 ac_prev=localedir ;; 1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1018 localedir=$ac_optarg ;; 1019 1020 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1021 | --localstate | --localstat | --localsta | --localst | --locals) 1022 ac_prev=localstatedir ;; 1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1025 localstatedir=$ac_optarg ;; 1026 1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1028 ac_prev=mandir ;; 1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1030 mandir=$ac_optarg ;; 1031 1032 -nfp | --nfp | --nf) 1033 # Obsolete; use --without-fp. 1034 with_fp=no ;; 1035 1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1037 | --no-cr | --no-c | -n) 1038 no_create=yes ;; 1039 1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1042 no_recursion=yes ;; 1043 1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1046 | --oldin | --oldi | --old | --ol | --o) 1047 ac_prev=oldincludedir ;; 1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1051 oldincludedir=$ac_optarg ;; 1052 1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1054 ac_prev=prefix ;; 1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1056 prefix=$ac_optarg ;; 1057 1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1059 | --program-pre | --program-pr | --program-p) 1060 ac_prev=program_prefix ;; 1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1063 program_prefix=$ac_optarg ;; 1064 1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1066 | --program-suf | --program-su | --program-s) 1067 ac_prev=program_suffix ;; 1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1070 program_suffix=$ac_optarg ;; 1071 1072 -program-transform-name | --program-transform-name \ 1073 | --program-transform-nam | --program-transform-na \ 1074 | --program-transform-n | --program-transform- \ 1075 | --program-transform | --program-transfor \ 1076 | --program-transfo | --program-transf \ 1077 | --program-trans | --program-tran \ 1078 | --progr-tra | --program-tr | --program-t) 1079 ac_prev=program_transform_name ;; 1080 -program-transform-name=* | --program-transform-name=* \ 1081 | --program-transform-nam=* | --program-transform-na=* \ 1082 | --program-transform-n=* | --program-transform-=* \ 1083 | --program-transform=* | --program-transfor=* \ 1084 | --program-transfo=* | --program-transf=* \ 1085 | --program-trans=* | --program-tran=* \ 1086 | --progr-tra=* | --program-tr=* | --program-t=*) 1087 program_transform_name=$ac_optarg ;; 1088 1089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1090 ac_prev=pdfdir ;; 1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1092 pdfdir=$ac_optarg ;; 1093 1094 -psdir | --psdir | --psdi | --psd | --ps) 1095 ac_prev=psdir ;; 1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1097 psdir=$ac_optarg ;; 1098 1099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1100 | -silent | --silent | --silen | --sile | --sil) 1101 silent=yes ;; 1102 1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1104 ac_prev=sbindir ;; 1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1106 | --sbi=* | --sb=*) 1107 sbindir=$ac_optarg ;; 1108 1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1111 | --sharedst | --shareds | --shared | --share | --shar \ 1112 | --sha | --sh) 1113 ac_prev=sharedstatedir ;; 1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1117 | --sha=* | --sh=*) 1118 sharedstatedir=$ac_optarg ;; 1119 1120 -site | --site | --sit) 1121 ac_prev=site ;; 1122 -site=* | --site=* | --sit=*) 1123 site=$ac_optarg ;; 1124 1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1126 ac_prev=srcdir ;; 1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1128 srcdir=$ac_optarg ;; 1129 1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1131 | --syscon | --sysco | --sysc | --sys | --sy) 1132 ac_prev=sysconfdir ;; 1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1135 sysconfdir=$ac_optarg ;; 1136 1137 -target | --target | --targe | --targ | --tar | --ta | --t) 1138 ac_prev=target_alias ;; 1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1140 target_alias=$ac_optarg ;; 1141 1142 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1143 verbose=yes ;; 1144 1145 -version | --version | --versio | --versi | --vers | -V) 1146 ac_init_version=: ;; 1147 1148 -with-* | --with-*) 1149 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1150 # Reject names that are not valid shell variable names. 1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1152 as_fn_error $? "invalid package name: $ac_useropt" 1153 ac_useropt_orig=$ac_useropt 1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1155 case $ac_user_opts in 1156 *" 1157"with_$ac_useropt" 1158"*) ;; 1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1160 ac_unrecognized_sep=', ';; 1161 esac 1162 eval with_$ac_useropt=\$ac_optarg ;; 1163 1164 -without-* | --without-*) 1165 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1166 # Reject names that are not valid shell variable names. 1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1168 as_fn_error $? "invalid package name: $ac_useropt" 1169 ac_useropt_orig=$ac_useropt 1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1171 case $ac_user_opts in 1172 *" 1173"with_$ac_useropt" 1174"*) ;; 1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1176 ac_unrecognized_sep=', ';; 1177 esac 1178 eval with_$ac_useropt=no ;; 1179 1180 --x) 1181 # Obsolete; use --with-x. 1182 with_x=yes ;; 1183 1184 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1185 | --x-incl | --x-inc | --x-in | --x-i) 1186 ac_prev=x_includes ;; 1187 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1188 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1189 x_includes=$ac_optarg ;; 1190 1191 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1192 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1193 ac_prev=x_libraries ;; 1194 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1195 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1196 x_libraries=$ac_optarg ;; 1197 1198 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1199Try \`$0 --help' for more information" 1200 ;; 1201 1202 *=*) 1203 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1204 # Reject names that are not valid shell variable names. 1205 case $ac_envvar in #( 1206 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1207 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1208 esac 1209 eval $ac_envvar=\$ac_optarg 1210 export $ac_envvar ;; 1211 1212 *) 1213 # FIXME: should be removed in autoconf 3.0. 1214 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1215 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1216 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1217 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1218 ;; 1219 1220 esac 1221done 1222 1223if test -n "$ac_prev"; then 1224 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1225 as_fn_error $? "missing argument to $ac_option" 1226fi 1227 1228if test -n "$ac_unrecognized_opts"; then 1229 case $enable_option_checking in 1230 no) ;; 1231 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1232 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1233 esac 1234fi 1235 1236# Check all directory arguments for consistency. 1237for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1238 datadir sysconfdir sharedstatedir localstatedir includedir \ 1239 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1240 libdir localedir mandir 1241do 1242 eval ac_val=\$$ac_var 1243 # Remove trailing slashes. 1244 case $ac_val in 1245 */ ) 1246 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1247 eval $ac_var=\$ac_val;; 1248 esac 1249 # Be sure to have absolute directory names. 1250 case $ac_val in 1251 [\\/$]* | ?:[\\/]* ) continue;; 1252 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1253 esac 1254 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1255done 1256 1257# There might be people who depend on the old broken behavior: `$host' 1258# used to hold the argument of --host etc. 1259# FIXME: To remove some day. 1260build=$build_alias 1261host=$host_alias 1262target=$target_alias 1263 1264# FIXME: To remove some day. 1265if test "x$host_alias" != x; then 1266 if test "x$build_alias" = x; then 1267 cross_compiling=maybe 1268 elif test "x$build_alias" != "x$host_alias"; then 1269 cross_compiling=yes 1270 fi 1271fi 1272 1273ac_tool_prefix= 1274test -n "$host_alias" && ac_tool_prefix=$host_alias- 1275 1276test "$silent" = yes && exec 6>/dev/null 1277 1278 1279ac_pwd=`pwd` && test -n "$ac_pwd" && 1280ac_ls_di=`ls -di .` && 1281ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1282 as_fn_error $? "working directory cannot be determined" 1283test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1284 as_fn_error $? "pwd does not report name of working directory" 1285 1286 1287# Find the source files, if location was not specified. 1288if test -z "$srcdir"; then 1289 ac_srcdir_defaulted=yes 1290 # Try the directory containing this script, then the parent directory. 1291 ac_confdir=`$as_dirname -- "$as_myself" || 1292$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1293 X"$as_myself" : 'X\(//\)[^/]' \| \ 1294 X"$as_myself" : 'X\(//\)$' \| \ 1295 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1296$as_echo X"$as_myself" | 1297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1298 s//\1/ 1299 q 1300 } 1301 /^X\(\/\/\)[^/].*/{ 1302 s//\1/ 1303 q 1304 } 1305 /^X\(\/\/\)$/{ 1306 s//\1/ 1307 q 1308 } 1309 /^X\(\/\).*/{ 1310 s//\1/ 1311 q 1312 } 1313 s/.*/./; q'` 1314 srcdir=$ac_confdir 1315 if test ! -r "$srcdir/$ac_unique_file"; then 1316 srcdir=.. 1317 fi 1318else 1319 ac_srcdir_defaulted=no 1320fi 1321if test ! -r "$srcdir/$ac_unique_file"; then 1322 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1323 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1324fi 1325ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1326ac_abs_confdir=`( 1327 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1328 pwd)` 1329# When building in place, set srcdir=. 1330if test "$ac_abs_confdir" = "$ac_pwd"; then 1331 srcdir=. 1332fi 1333# Remove unnecessary trailing slashes from srcdir. 1334# Double slashes in file names in object file debugging info 1335# mess up M-x gdb in Emacs. 1336case $srcdir in 1337*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1338esac 1339for ac_var in $ac_precious_vars; do 1340 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1341 eval ac_env_${ac_var}_value=\$${ac_var} 1342 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1343 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1344done 1345 1346# 1347# Report the --help message. 1348# 1349if test "$ac_init_help" = "long"; then 1350 # Omit some internal or obsolete options to make the list less imposing. 1351 # This message is too long to be a string in the A/UX 3.1 sh. 1352 cat <<_ACEOF 1353\`configure' configures this package to adapt to many kinds of systems. 1354 1355Usage: $0 [OPTION]... [VAR=VALUE]... 1356 1357To assign environment variables (e.g., CC, CFLAGS...), specify them as 1358VAR=VALUE. See below for descriptions of some of the useful variables. 1359 1360Defaults for the options are specified in brackets. 1361 1362Configuration: 1363 -h, --help display this help and exit 1364 --help=short display options specific to this package 1365 --help=recursive display the short help of all the included packages 1366 -V, --version display version information and exit 1367 -q, --quiet, --silent do not print \`checking ...' messages 1368 --cache-file=FILE cache test results in FILE [disabled] 1369 -C, --config-cache alias for \`--cache-file=config.cache' 1370 -n, --no-create do not create output files 1371 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1372 1373Installation directories: 1374 --prefix=PREFIX install architecture-independent files in PREFIX 1375 [$ac_default_prefix] 1376 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1377 [PREFIX] 1378 1379By default, \`make install' will install all the files in 1380\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1381an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1382for instance \`--prefix=\$HOME'. 1383 1384For better control, use the options below. 1385 1386Fine tuning of the installation directories: 1387 --bindir=DIR user executables [EPREFIX/bin] 1388 --sbindir=DIR system admin executables [EPREFIX/sbin] 1389 --libexecdir=DIR program executables [EPREFIX/libexec] 1390 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1391 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1392 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1393 --libdir=DIR object code libraries [EPREFIX/lib] 1394 --includedir=DIR C header files [PREFIX/include] 1395 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1396 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1397 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1398 --infodir=DIR info documentation [DATAROOTDIR/info] 1399 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1400 --mandir=DIR man documentation [DATAROOTDIR/man] 1401 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1402 --htmldir=DIR html documentation [DOCDIR] 1403 --dvidir=DIR dvi documentation [DOCDIR] 1404 --pdfdir=DIR pdf documentation [DOCDIR] 1405 --psdir=DIR ps documentation [DOCDIR] 1406_ACEOF 1407 1408 cat <<\_ACEOF 1409 1410System types: 1411 --build=BUILD configure for building on BUILD [guessed] 1412 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1413 --target=TARGET configure for building compilers for TARGET [HOST] 1414_ACEOF 1415fi 1416 1417if test -n "$ac_init_help"; then 1418 1419 cat <<\_ACEOF 1420 1421Optional Features: 1422 --disable-option-checking ignore unrecognized --enable/--with options 1423 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1424 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1425 --enable-layout=LAYOUT 1426 --disable-util-dso disable DSO build of modular components (crypto, 1427 dbd, dbm, ldap) 1428 1429Optional Packages: 1430 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1431 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1432 --with-apr=PATH prefix for installed APR or the full path to 1433 apr-config 1434 --with-apr-iconv=DIR relative path to apr-iconv source 1435 --with-crypto enable crypto support 1436 --with-openssl=DIR specify location of OpenSSL 1437 --with-nss=DIR specify location of NSS 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-freetds=DIR specify FreeTDS location 1467 --with-odbc=DIR specify ODBC location 1468 --with-expat=DIR specify Expat location, or 'builtin' 1469 --with-iconv=DIR path to iconv installation 1470 1471Some influential environment variables: 1472 CC C compiler command 1473 CFLAGS C compiler flags 1474 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1475 nonstandard directory <lib dir> 1476 LIBS libraries to pass to the linker, e.g. -l<library> 1477 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1478 you have headers in a nonstandard directory <include dir> 1479 CPP C preprocessor 1480 1481Use these variables to override the choices made by `configure' or to help 1482it to find libraries and programs with nonstandard names/locations. 1483 1484Report bugs to the package provider. 1485_ACEOF 1486ac_status=$? 1487fi 1488 1489if test "$ac_init_help" = "recursive"; then 1490 # If there are subdirs, report their specific --help. 1491 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1492 test -d "$ac_dir" || 1493 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1494 continue 1495 ac_builddir=. 1496 1497case "$ac_dir" in 1498.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1499*) 1500 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1501 # A ".." for each directory in $ac_dir_suffix. 1502 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1503 case $ac_top_builddir_sub in 1504 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1505 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1506 esac ;; 1507esac 1508ac_abs_top_builddir=$ac_pwd 1509ac_abs_builddir=$ac_pwd$ac_dir_suffix 1510# for backward compatibility: 1511ac_top_builddir=$ac_top_build_prefix 1512 1513case $srcdir in 1514 .) # We are building in place. 1515 ac_srcdir=. 1516 ac_top_srcdir=$ac_top_builddir_sub 1517 ac_abs_top_srcdir=$ac_pwd ;; 1518 [\\/]* | ?:[\\/]* ) # Absolute name. 1519 ac_srcdir=$srcdir$ac_dir_suffix; 1520 ac_top_srcdir=$srcdir 1521 ac_abs_top_srcdir=$srcdir ;; 1522 *) # Relative name. 1523 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1524 ac_top_srcdir=$ac_top_build_prefix$srcdir 1525 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1526esac 1527ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1528 1529 cd "$ac_dir" || { ac_status=$?; continue; } 1530 # Check for guested configure. 1531 if test -f "$ac_srcdir/configure.gnu"; then 1532 echo && 1533 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1534 elif test -f "$ac_srcdir/configure"; then 1535 echo && 1536 $SHELL "$ac_srcdir/configure" --help=recursive 1537 else 1538 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1539 fi || ac_status=$? 1540 cd "$ac_pwd" || { ac_status=$?; break; } 1541 done 1542fi 1543 1544test -n "$ac_init_help" && exit $ac_status 1545if $ac_init_version; then 1546 cat <<\_ACEOF 1547configure 1548generated by GNU Autoconf 2.69 1549 1550Copyright (C) 2012 Free Software Foundation, Inc. 1551This configure script is free software; the Free Software Foundation 1552gives unlimited permission to copy, distribute and modify it. 1553_ACEOF 1554 exit 1555fi 1556 1557## ------------------------ ## 1558## Autoconf initialization. ## 1559## ------------------------ ## 1560 1561# ac_fn_c_try_compile LINENO 1562# -------------------------- 1563# Try to compile conftest.$ac_ext, and return whether this succeeded. 1564ac_fn_c_try_compile () 1565{ 1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1567 rm -f conftest.$ac_objext 1568 if { { ac_try="$ac_compile" 1569case "(($ac_try" in 1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1571 *) ac_try_echo=$ac_try;; 1572esac 1573eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1574$as_echo "$ac_try_echo"; } >&5 1575 (eval "$ac_compile") 2>conftest.err 1576 ac_status=$? 1577 if test -s conftest.err; then 1578 grep -v '^ *+' conftest.err >conftest.er1 1579 cat conftest.er1 >&5 1580 mv -f conftest.er1 conftest.err 1581 fi 1582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1583 test $ac_status = 0; } && { 1584 test -z "$ac_c_werror_flag" || 1585 test ! -s conftest.err 1586 } && test -s conftest.$ac_objext; then : 1587 ac_retval=0 1588else 1589 $as_echo "$as_me: failed program was:" >&5 1590sed 's/^/| /' conftest.$ac_ext >&5 1591 1592 ac_retval=1 1593fi 1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1595 as_fn_set_status $ac_retval 1596 1597} # ac_fn_c_try_compile 1598 1599# ac_fn_c_try_link LINENO 1600# ----------------------- 1601# Try to link conftest.$ac_ext, and return whether this succeeded. 1602ac_fn_c_try_link () 1603{ 1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1605 rm -f conftest.$ac_objext conftest$ac_exeext 1606 if { { ac_try="$ac_link" 1607case "(($ac_try" in 1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1609 *) ac_try_echo=$ac_try;; 1610esac 1611eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1612$as_echo "$ac_try_echo"; } >&5 1613 (eval "$ac_link") 2>conftest.err 1614 ac_status=$? 1615 if test -s conftest.err; then 1616 grep -v '^ *+' conftest.err >conftest.er1 1617 cat conftest.er1 >&5 1618 mv -f conftest.er1 conftest.err 1619 fi 1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1621 test $ac_status = 0; } && { 1622 test -z "$ac_c_werror_flag" || 1623 test ! -s conftest.err 1624 } && test -s conftest$ac_exeext && { 1625 test "$cross_compiling" = yes || 1626 test -x conftest$ac_exeext 1627 }; then : 1628 ac_retval=0 1629else 1630 $as_echo "$as_me: failed program was:" >&5 1631sed 's/^/| /' conftest.$ac_ext >&5 1632 1633 ac_retval=1 1634fi 1635 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1636 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1637 # interfere with the next link command; also delete a directory that is 1638 # left behind by Apple's compiler. We do this before executing the actions. 1639 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1641 as_fn_set_status $ac_retval 1642 1643} # ac_fn_c_try_link 1644 1645# ac_fn_c_try_cpp LINENO 1646# ---------------------- 1647# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1648ac_fn_c_try_cpp () 1649{ 1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1651 if { { ac_try="$ac_cpp conftest.$ac_ext" 1652case "(($ac_try" in 1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1654 *) ac_try_echo=$ac_try;; 1655esac 1656eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1657$as_echo "$ac_try_echo"; } >&5 1658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1659 ac_status=$? 1660 if test -s conftest.err; then 1661 grep -v '^ *+' conftest.err >conftest.er1 1662 cat conftest.er1 >&5 1663 mv -f conftest.er1 conftest.err 1664 fi 1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1666 test $ac_status = 0; } > conftest.i && { 1667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1668 test ! -s conftest.err 1669 }; then : 1670 ac_retval=0 1671else 1672 $as_echo "$as_me: failed program was:" >&5 1673sed 's/^/| /' conftest.$ac_ext >&5 1674 1675 ac_retval=1 1676fi 1677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1678 as_fn_set_status $ac_retval 1679 1680} # ac_fn_c_try_cpp 1681 1682# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1683# ------------------------------------------------------- 1684# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1685# the include files in INCLUDES and setting the cache variable VAR 1686# accordingly. 1687ac_fn_c_check_header_mongrel () 1688{ 1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1690 if eval \${$3+:} false; then : 1691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1692$as_echo_n "checking for $2... " >&6; } 1693if eval \${$3+:} false; then : 1694 $as_echo_n "(cached) " >&6 1695fi 1696eval ac_res=\$$3 1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1698$as_echo "$ac_res" >&6; } 1699else 1700 # Is the header compilable? 1701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1702$as_echo_n "checking $2 usability... " >&6; } 1703cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1704/* end confdefs.h. */ 1705$4 1706#include <$2> 1707_ACEOF 1708if ac_fn_c_try_compile "$LINENO"; then : 1709 ac_header_compiler=yes 1710else 1711 ac_header_compiler=no 1712fi 1713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1715$as_echo "$ac_header_compiler" >&6; } 1716 1717# Is the header present? 1718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1719$as_echo_n "checking $2 presence... " >&6; } 1720cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1721/* end confdefs.h. */ 1722#include <$2> 1723_ACEOF 1724if ac_fn_c_try_cpp "$LINENO"; then : 1725 ac_header_preproc=yes 1726else 1727 ac_header_preproc=no 1728fi 1729rm -f conftest.err conftest.i conftest.$ac_ext 1730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1731$as_echo "$ac_header_preproc" >&6; } 1732 1733# So? What about this header? 1734case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1735 yes:no: ) 1736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1737$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1739$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1740 ;; 1741 no:yes:* ) 1742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1743$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1745$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1747$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1749$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1751$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1752 ;; 1753esac 1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1755$as_echo_n "checking for $2... " >&6; } 1756if eval \${$3+:} false; then : 1757 $as_echo_n "(cached) " >&6 1758else 1759 eval "$3=\$ac_header_compiler" 1760fi 1761eval ac_res=\$$3 1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1763$as_echo "$ac_res" >&6; } 1764fi 1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1766 1767} # ac_fn_c_check_header_mongrel 1768 1769# ac_fn_c_try_run LINENO 1770# ---------------------- 1771# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1772# that executables *can* be run. 1773ac_fn_c_try_run () 1774{ 1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1776 if { { ac_try="$ac_link" 1777case "(($ac_try" in 1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1779 *) ac_try_echo=$ac_try;; 1780esac 1781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1782$as_echo "$ac_try_echo"; } >&5 1783 (eval "$ac_link") 2>&5 1784 ac_status=$? 1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1786 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1787 { { case "(($ac_try" in 1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1789 *) ac_try_echo=$ac_try;; 1790esac 1791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1792$as_echo "$ac_try_echo"; } >&5 1793 (eval "$ac_try") 2>&5 1794 ac_status=$? 1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1796 test $ac_status = 0; }; }; then : 1797 ac_retval=0 1798else 1799 $as_echo "$as_me: program exited with status $ac_status" >&5 1800 $as_echo "$as_me: failed program was:" >&5 1801sed 's/^/| /' conftest.$ac_ext >&5 1802 1803 ac_retval=$ac_status 1804fi 1805 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1807 as_fn_set_status $ac_retval 1808 1809} # ac_fn_c_try_run 1810 1811# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1812# ------------------------------------------------------- 1813# Tests whether HEADER exists and can be compiled using the include files in 1814# INCLUDES, setting the cache variable VAR accordingly. 1815ac_fn_c_check_header_compile () 1816{ 1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1819$as_echo_n "checking for $2... " >&6; } 1820if eval \${$3+:} false; then : 1821 $as_echo_n "(cached) " >&6 1822else 1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1824/* end confdefs.h. */ 1825$4 1826#include <$2> 1827_ACEOF 1828if ac_fn_c_try_compile "$LINENO"; then : 1829 eval "$3=yes" 1830else 1831 eval "$3=no" 1832fi 1833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1834fi 1835eval ac_res=\$$3 1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1837$as_echo "$ac_res" >&6; } 1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1839 1840} # ac_fn_c_check_header_compile 1841 1842# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1843# --------------------------------------------- 1844# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1845# accordingly. 1846ac_fn_c_check_decl () 1847{ 1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1849 as_decl_name=`echo $2|sed 's/ *(.*//'` 1850 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1852$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1853if eval \${$3+:} false; then : 1854 $as_echo_n "(cached) " >&6 1855else 1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1857/* end confdefs.h. */ 1858$4 1859int 1860main () 1861{ 1862#ifndef $as_decl_name 1863#ifdef __cplusplus 1864 (void) $as_decl_use; 1865#else 1866 (void) $as_decl_name; 1867#endif 1868#endif 1869 1870 ; 1871 return 0; 1872} 1873_ACEOF 1874if ac_fn_c_try_compile "$LINENO"; then : 1875 eval "$3=yes" 1876else 1877 eval "$3=no" 1878fi 1879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1880fi 1881eval ac_res=\$$3 1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1883$as_echo "$ac_res" >&6; } 1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1885 1886} # ac_fn_c_check_decl 1887 1888# ac_fn_c_check_func LINENO FUNC VAR 1889# ---------------------------------- 1890# Tests whether FUNC exists, setting the cache variable VAR accordingly 1891ac_fn_c_check_func () 1892{ 1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1895$as_echo_n "checking for $2... " >&6; } 1896if eval \${$3+:} false; then : 1897 $as_echo_n "(cached) " >&6 1898else 1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1900/* end confdefs.h. */ 1901/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1902 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1903#define $2 innocuous_$2 1904 1905/* System header to define __stub macros and hopefully few prototypes, 1906 which can conflict with char $2 (); below. 1907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1908 <limits.h> exists even on freestanding compilers. */ 1909 1910#ifdef __STDC__ 1911# include <limits.h> 1912#else 1913# include <assert.h> 1914#endif 1915 1916#undef $2 1917 1918/* Override any GCC internal prototype to avoid an error. 1919 Use char because int might match the return type of a GCC 1920 builtin and then its argument prototype would still apply. */ 1921#ifdef __cplusplus 1922extern "C" 1923#endif 1924char $2 (); 1925/* The GNU C library defines this for functions which it implements 1926 to always fail with ENOSYS. Some functions are actually named 1927 something starting with __ and the normal name is an alias. */ 1928#if defined __stub_$2 || defined __stub___$2 1929choke me 1930#endif 1931 1932int 1933main () 1934{ 1935return $2 (); 1936 ; 1937 return 0; 1938} 1939_ACEOF 1940if ac_fn_c_try_link "$LINENO"; then : 1941 eval "$3=yes" 1942else 1943 eval "$3=no" 1944fi 1945rm -f core conftest.err conftest.$ac_objext \ 1946 conftest$ac_exeext conftest.$ac_ext 1947fi 1948eval ac_res=\$$3 1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1950$as_echo "$ac_res" >&6; } 1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1952 1953} # ac_fn_c_check_func 1954cat >config.log <<_ACEOF 1955This file contains any messages produced by compilers while 1956running configure, to aid debugging if configure makes a mistake. 1957 1958It was created by $as_me, which was 1959generated by GNU Autoconf 2.69. Invocation command line was 1960 1961 $ $0 $@ 1962 1963_ACEOF 1964exec 5>>config.log 1965{ 1966cat <<_ASUNAME 1967## --------- ## 1968## Platform. ## 1969## --------- ## 1970 1971hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1972uname -m = `(uname -m) 2>/dev/null || echo unknown` 1973uname -r = `(uname -r) 2>/dev/null || echo unknown` 1974uname -s = `(uname -s) 2>/dev/null || echo unknown` 1975uname -v = `(uname -v) 2>/dev/null || echo unknown` 1976 1977/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1978/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1979 1980/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1981/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1982/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1983/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1984/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1985/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1986/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1987 1988_ASUNAME 1989 1990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1991for as_dir in $PATH 1992do 1993 IFS=$as_save_IFS 1994 test -z "$as_dir" && as_dir=. 1995 $as_echo "PATH: $as_dir" 1996 done 1997IFS=$as_save_IFS 1998 1999} >&5 2000 2001cat >&5 <<_ACEOF 2002 2003 2004## ----------- ## 2005## Core tests. ## 2006## ----------- ## 2007 2008_ACEOF 2009 2010 2011# Keep a trace of the command line. 2012# Strip out --no-create and --no-recursion so they do not pile up. 2013# Strip out --silent because we don't want to record it for future runs. 2014# Also quote any args containing shell meta-characters. 2015# Make two passes to allow for proper duplicate-argument suppression. 2016ac_configure_args= 2017ac_configure_args0= 2018ac_configure_args1= 2019ac_must_keep_next=false 2020for ac_pass in 1 2 2021do 2022 for ac_arg 2023 do 2024 case $ac_arg in 2025 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2027 | -silent | --silent | --silen | --sile | --sil) 2028 continue ;; 2029 *\'*) 2030 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2031 esac 2032 case $ac_pass in 2033 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2034 2) 2035 as_fn_append ac_configure_args1 " '$ac_arg'" 2036 if test $ac_must_keep_next = true; then 2037 ac_must_keep_next=false # Got value, back to normal. 2038 else 2039 case $ac_arg in 2040 *=* | --config-cache | -C | -disable-* | --disable-* \ 2041 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2042 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2043 | -with-* | --with-* | -without-* | --without-* | --x) 2044 case "$ac_configure_args0 " in 2045 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2046 esac 2047 ;; 2048 -* ) ac_must_keep_next=true ;; 2049 esac 2050 fi 2051 as_fn_append ac_configure_args " '$ac_arg'" 2052 ;; 2053 esac 2054 done 2055done 2056{ ac_configure_args0=; unset ac_configure_args0;} 2057{ ac_configure_args1=; unset ac_configure_args1;} 2058 2059# When interrupted or exit'd, cleanup temporary files, and complete 2060# config.log. We remove comments because anyway the quotes in there 2061# would cause problems or look ugly. 2062# WARNING: Use '\'' to represent an apostrophe within the trap. 2063# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2064trap 'exit_status=$? 2065 # Save into config.log some information that might help in debugging. 2066 { 2067 echo 2068 2069 $as_echo "## ---------------- ## 2070## Cache variables. ## 2071## ---------------- ##" 2072 echo 2073 # The following way of writing the cache mishandles newlines in values, 2074( 2075 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2076 eval ac_val=\$$ac_var 2077 case $ac_val in #( 2078 *${as_nl}*) 2079 case $ac_var in #( 2080 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2081$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2082 esac 2083 case $ac_var in #( 2084 _ | IFS | as_nl) ;; #( 2085 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2086 *) { eval $ac_var=; unset $ac_var;} ;; 2087 esac ;; 2088 esac 2089 done 2090 (set) 2>&1 | 2091 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2092 *${as_nl}ac_space=\ *) 2093 sed -n \ 2094 "s/'\''/'\''\\\\'\'''\''/g; 2095 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2096 ;; #( 2097 *) 2098 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2099 ;; 2100 esac | 2101 sort 2102) 2103 echo 2104 2105 $as_echo "## ----------------- ## 2106## Output variables. ## 2107## ----------------- ##" 2108 echo 2109 for ac_var in $ac_subst_vars 2110 do 2111 eval ac_val=\$$ac_var 2112 case $ac_val in 2113 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2114 esac 2115 $as_echo "$ac_var='\''$ac_val'\''" 2116 done | sort 2117 echo 2118 2119 if test -n "$ac_subst_files"; then 2120 $as_echo "## ------------------- ## 2121## File substitutions. ## 2122## ------------------- ##" 2123 echo 2124 for ac_var in $ac_subst_files 2125 do 2126 eval ac_val=\$$ac_var 2127 case $ac_val in 2128 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2129 esac 2130 $as_echo "$ac_var='\''$ac_val'\''" 2131 done | sort 2132 echo 2133 fi 2134 2135 if test -s confdefs.h; then 2136 $as_echo "## ----------- ## 2137## confdefs.h. ## 2138## ----------- ##" 2139 echo 2140 cat confdefs.h 2141 echo 2142 fi 2143 test "$ac_signal" != 0 && 2144 $as_echo "$as_me: caught signal $ac_signal" 2145 $as_echo "$as_me: exit $exit_status" 2146 } >&5 2147 rm -f core *.core core.conftest.* && 2148 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2149 exit $exit_status 2150' 0 2151for ac_signal in 1 2 13 15; do 2152 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2153done 2154ac_signal=0 2155 2156# confdefs.h avoids OS command line length limits that DEFS can exceed. 2157rm -f -r conftest* confdefs.h 2158 2159$as_echo "/* confdefs.h */" > confdefs.h 2160 2161# Predefined preprocessor variables. 2162 2163cat >>confdefs.h <<_ACEOF 2164#define PACKAGE_NAME "$PACKAGE_NAME" 2165_ACEOF 2166 2167cat >>confdefs.h <<_ACEOF 2168#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2169_ACEOF 2170 2171cat >>confdefs.h <<_ACEOF 2172#define PACKAGE_VERSION "$PACKAGE_VERSION" 2173_ACEOF 2174 2175cat >>confdefs.h <<_ACEOF 2176#define PACKAGE_STRING "$PACKAGE_STRING" 2177_ACEOF 2178 2179cat >>confdefs.h <<_ACEOF 2180#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2181_ACEOF 2182 2183cat >>confdefs.h <<_ACEOF 2184#define PACKAGE_URL "$PACKAGE_URL" 2185_ACEOF 2186 2187 2188# Let the site file select an alternate cache file if it wants to. 2189# Prefer an explicitly selected file to automatically selected ones. 2190ac_site_file1=NONE 2191ac_site_file2=NONE 2192if test -n "$CONFIG_SITE"; then 2193 # We do not want a PATH search for config.site. 2194 case $CONFIG_SITE in #(( 2195 -*) ac_site_file1=./$CONFIG_SITE;; 2196 */*) ac_site_file1=$CONFIG_SITE;; 2197 *) ac_site_file1=./$CONFIG_SITE;; 2198 esac 2199elif test "x$prefix" != xNONE; then 2200 ac_site_file1=$prefix/share/config.site 2201 ac_site_file2=$prefix/etc/config.site 2202else 2203 ac_site_file1=$ac_default_prefix/share/config.site 2204 ac_site_file2=$ac_default_prefix/etc/config.site 2205fi 2206for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2207do 2208 test "x$ac_site_file" = xNONE && continue 2209 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2210 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2211$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2212 sed 's/^/| /' "$ac_site_file" >&5 2213 . "$ac_site_file" \ 2214 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2215$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2216as_fn_error $? "failed to load site script $ac_site_file 2217See \`config.log' for more details" "$LINENO" 5; } 2218 fi 2219done 2220 2221if test -r "$cache_file"; then 2222 # Some versions of bash will fail to source /dev/null (special files 2223 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2224 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2225 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2226$as_echo "$as_me: loading cache $cache_file" >&6;} 2227 case $cache_file in 2228 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2229 *) . "./$cache_file";; 2230 esac 2231 fi 2232else 2233 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2234$as_echo "$as_me: creating cache $cache_file" >&6;} 2235 >$cache_file 2236fi 2237 2238# Check that the precious variables saved in the cache have kept the same 2239# value. 2240ac_cache_corrupted=false 2241for ac_var in $ac_precious_vars; do 2242 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2243 eval ac_new_set=\$ac_env_${ac_var}_set 2244 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2245 eval ac_new_val=\$ac_env_${ac_var}_value 2246 case $ac_old_set,$ac_new_set in 2247 set,) 2248 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2249$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2250 ac_cache_corrupted=: ;; 2251 ,set) 2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2253$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2254 ac_cache_corrupted=: ;; 2255 ,);; 2256 *) 2257 if test "x$ac_old_val" != "x$ac_new_val"; then 2258 # differences in whitespace do not lead to failure. 2259 ac_old_val_w=`echo x $ac_old_val` 2260 ac_new_val_w=`echo x $ac_new_val` 2261 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2262 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2263$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2264 ac_cache_corrupted=: 2265 else 2266 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2267$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2268 eval $ac_var=\$ac_old_val 2269 fi 2270 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2271$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2272 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2273$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2274 fi;; 2275 esac 2276 # Pass precious variables to config.status. 2277 if test "$ac_new_set" = set; then 2278 case $ac_new_val in 2279 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2280 *) ac_arg=$ac_var=$ac_new_val ;; 2281 esac 2282 case " $ac_configure_args " in 2283 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2284 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2285 esac 2286 fi 2287done 2288if $ac_cache_corrupted; then 2289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2290$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2292$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2293 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2294fi 2295## -------------------- ## 2296## Main body of script. ## 2297## -------------------- ## 2298 2299ac_ext=c 2300ac_cpp='$CPP $CPPFLAGS' 2301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2303ac_compiler_gnu=$ac_cv_c_compiler_gnu 2304 2305 2306 2307ac_config_headers="$ac_config_headers include/private/apu_config.h" 2308 2309ac_aux_dir= 2310for ac_dir in build "$srcdir"/build; do 2311 if test -f "$ac_dir/install-sh"; then 2312 ac_aux_dir=$ac_dir 2313 ac_install_sh="$ac_aux_dir/install-sh -c" 2314 break 2315 elif test -f "$ac_dir/install.sh"; then 2316 ac_aux_dir=$ac_dir 2317 ac_install_sh="$ac_aux_dir/install.sh -c" 2318 break 2319 elif test -f "$ac_dir/shtool"; then 2320 ac_aux_dir=$ac_dir 2321 ac_install_sh="$ac_aux_dir/shtool install -c" 2322 break 2323 fi 2324done 2325if test -z "$ac_aux_dir"; then 2326 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5 2327fi 2328 2329# These three variables are undocumented and unsupported, 2330# and are intended to be withdrawn in a future Autoconf release. 2331# They can cause serious problems if a builder's source tree is in a directory 2332# whose full name contains unusual characters. 2333ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2334ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2335ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 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 rm -f config.nice 2514 cat >config.nice<<EOF 2515#! /bin/sh 2516# 2517# Created by configure 2518 2519EOF 2520 if test -n "$CC"; then 2521 echo "CC=\"$CC\"; export CC" >> config.nice 2522 fi 2523 if test -n "$CFLAGS"; then 2524 echo "CFLAGS=\"$CFLAGS\"; export CFLAGS" >> config.nice 2525 fi 2526 if test -n "$CPPFLAGS"; then 2527 echo "CPPFLAGS=\"$CPPFLAGS\"; export CPPFLAGS" >> config.nice 2528 fi 2529 if test -n "$LDFLAGS"; then 2530 echo "LDFLAGS=\"$LDFLAGS\"; export LDFLAGS" >> config.nice 2531 fi 2532 if test -n "$LTFLAGS"; then 2533 echo "LTFLAGS=\"$LTFLAGS\"; export LTFLAGS" >> config.nice 2534 fi 2535 if test -n "$LIBS"; then 2536 echo "LIBS=\"$LIBS\"; export LIBS" >> config.nice 2537 fi 2538 if test -n "$INCLUDES"; then 2539 echo "INCLUDES=\"$INCLUDES\"; export INCLUDES" >> config.nice 2540 fi 2541 if test -n "$NOTEST_CFLAGS"; then 2542 echo "NOTEST_CFLAGS=\"$NOTEST_CFLAGS\"; export NOTEST_CFLAGS" >> config.nice 2543 fi 2544 if test -n "$NOTEST_CPPFLAGS"; then 2545 echo "NOTEST_CPPFLAGS=\"$NOTEST_CPPFLAGS\"; export NOTEST_CPPFLAGS" >> config.nice 2546 fi 2547 if test -n "$NOTEST_LDFLAGS"; then 2548 echo "NOTEST_LDFLAGS=\"$NOTEST_LDFLAGS\"; export NOTEST_LDFLAGS" >> config.nice 2549 fi 2550 if test -n "$NOTEST_LIBS"; then 2551 echo "NOTEST_LIBS=\"$NOTEST_LIBS\"; export NOTEST_LIBS" >> config.nice 2552 fi 2553 2554 # Retrieve command-line arguments. 2555 eval "set x $0 $ac_configure_args" 2556 shift 2557 2558 for arg 2559 do 2560 2561ap_last= 2562ap_cur="$arg" 2563while test "x${ap_cur}" != "x${ap_last}"; 2564do 2565 ap_last="${ap_cur}" 2566 ap_cur=`eval "echo ${ap_cur}"` 2567done 2568arg="${ap_cur}" 2569 2570 echo "\"$arg\" \\" >> config.nice 2571 done 2572 echo '"$@"' >> config.nice 2573 chmod +x config.nice 2574 2575 2576 2577abs_srcdir=`(cd $srcdir && pwd)` 2578abs_builddir=`pwd` 2579 2580if test "$abs_builddir" != "$abs_srcdir"; then 2581 USE_VPATH=1 2582 APU_CONFIG_LOCATION=build 2583else 2584 APU_CONFIG_LOCATION=source 2585fi 2586 2587 2588 2589# Make sure we can run config.sub. 2590$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2591 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2592 2593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2594$as_echo_n "checking build system type... " >&6; } 2595if ${ac_cv_build+:} false; then : 2596 $as_echo_n "(cached) " >&6 2597else 2598 ac_build_alias=$build_alias 2599test "x$ac_build_alias" = x && 2600 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2601test "x$ac_build_alias" = x && 2602 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2603ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2604 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2605 2606fi 2607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2608$as_echo "$ac_cv_build" >&6; } 2609case $ac_cv_build in 2610*-*-*) ;; 2611*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2612esac 2613build=$ac_cv_build 2614ac_save_IFS=$IFS; IFS='-' 2615set x $ac_cv_build 2616shift 2617build_cpu=$1 2618build_vendor=$2 2619shift; shift 2620# Remember, the first character of IFS is used to create $*, 2621# except with old shells: 2622build_os=$* 2623IFS=$ac_save_IFS 2624case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2625 2626 2627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2628$as_echo_n "checking host system type... " >&6; } 2629if ${ac_cv_host+:} false; then : 2630 $as_echo_n "(cached) " >&6 2631else 2632 if test "x$host_alias" = x; then 2633 ac_cv_host=$ac_cv_build 2634else 2635 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2636 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2637fi 2638 2639fi 2640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2641$as_echo "$ac_cv_host" >&6; } 2642case $ac_cv_host in 2643*-*-*) ;; 2644*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2645esac 2646host=$ac_cv_host 2647ac_save_IFS=$IFS; IFS='-' 2648set x $ac_cv_host 2649shift 2650host_cpu=$1 2651host_vendor=$2 2652shift; shift 2653# Remember, the first character of IFS is used to create $*, 2654# except with old shells: 2655host_os=$* 2656IFS=$ac_save_IFS 2657case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2658 2659 2660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2661$as_echo_n "checking target system type... " >&6; } 2662if ${ac_cv_target+:} false; then : 2663 $as_echo_n "(cached) " >&6 2664else 2665 if test "x$target_alias" = x; then 2666 ac_cv_target=$ac_cv_host 2667else 2668 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2669 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2670fi 2671 2672fi 2673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2674$as_echo "$ac_cv_target" >&6; } 2675case $ac_cv_target in 2676*-*-*) ;; 2677*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2678esac 2679target=$ac_cv_target 2680ac_save_IFS=$IFS; IFS='-' 2681set x $ac_cv_target 2682shift 2683target_cpu=$1 2684target_vendor=$2 2685shift; shift 2686# Remember, the first character of IFS is used to create $*, 2687# except with old shells: 2688target_os=$* 2689IFS=$ac_save_IFS 2690case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2691 2692 2693# The aliases save the names the user supplied, while $host etc. 2694# will get canonicalized. 2695test -n "$target_alias" && 2696 test "$program_prefix$program_suffix$program_transform_name" = \ 2697 NONENONEs,x,x, && 2698 program_prefix=${target_alias}- 2699 2700 2701# Find a good install program. We prefer a C program (faster), 2702# so one script is as good as another. But avoid the broken or 2703# incompatible versions: 2704# SysV /etc/install, /usr/sbin/install 2705# SunOS /usr/etc/install 2706# IRIX /sbin/install 2707# AIX /bin/install 2708# AmigaOS /C/install, which installs bootblocks on floppy discs 2709# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2710# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2711# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2712# OS/2's system install, which has a completely different semantic 2713# ./install, which can be erroneously created by make from ./install.sh. 2714# Reject install programs that cannot install multiple files. 2715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2716$as_echo_n "checking for a BSD-compatible install... " >&6; } 2717if test -z "$INSTALL"; then 2718if ${ac_cv_path_install+:} false; then : 2719 $as_echo_n "(cached) " >&6 2720else 2721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2722for as_dir in $PATH 2723do 2724 IFS=$as_save_IFS 2725 test -z "$as_dir" && as_dir=. 2726 # Account for people who put trailing slashes in PATH elements. 2727case $as_dir/ in #(( 2728 ./ | .// | /[cC]/* | \ 2729 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2730 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2731 /usr/ucb/* ) ;; 2732 *) 2733 # OSF1 and SCO ODT 3.0 have their own names for install. 2734 # Don't use installbsd from OSF since it installs stuff as root 2735 # by default. 2736 for ac_prog in ginstall scoinst install; do 2737 for ac_exec_ext in '' $ac_executable_extensions; do 2738 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2739 if test $ac_prog = install && 2740 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2741 # AIX install. It has an incompatible calling convention. 2742 : 2743 elif test $ac_prog = install && 2744 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2745 # program-specific install script used by HP pwplus--don't use. 2746 : 2747 else 2748 rm -rf conftest.one conftest.two conftest.dir 2749 echo one > conftest.one 2750 echo two > conftest.two 2751 mkdir conftest.dir 2752 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2753 test -s conftest.one && test -s conftest.two && 2754 test -s conftest.dir/conftest.one && 2755 test -s conftest.dir/conftest.two 2756 then 2757 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2758 break 3 2759 fi 2760 fi 2761 fi 2762 done 2763 done 2764 ;; 2765esac 2766 2767 done 2768IFS=$as_save_IFS 2769 2770rm -rf conftest.one conftest.two conftest.dir 2771 2772fi 2773 if test "${ac_cv_path_install+set}" = set; then 2774 INSTALL=$ac_cv_path_install 2775 else 2776 # As a last resort, use the slow shell script. Don't cache a 2777 # value for INSTALL within a source directory, because that will 2778 # break other packages using the cache if that directory is 2779 # removed, or if the value is a relative name. 2780 INSTALL=$ac_install_sh 2781 fi 2782fi 2783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2784$as_echo "$INSTALL" >&6; } 2785 2786# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2787# It thinks the first close brace ends the variable substitution. 2788test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2789 2790test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2791 2792test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2793 2794 2795# Use -no-install or -no-fast-install to link the test 2796# programs on all platforms but Darwin, where it would cause 2797# the programs to be linked against installed versions of 2798# libapr instead of those just built. 2799case $host in 2800 *-apple-darwin*) 2801 LT_NO_INSTALL="" 2802 ;; 2803 *-mingw*) 2804 LT_NO_INSTALL="-no-fast-install" 2805 ;; 2806 *) 2807 LT_NO_INSTALL="-no-install" 2808 ;; 2809esac 2810 2811 2812top_builddir="$abs_builddir" 2813 2814 2815 2816 2817 2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mkdir -p" >&5 2819$as_echo_n "checking for working mkdir -p... " >&6; } 2820if ${ac_cv_mkdir_p+:} false; then : 2821 $as_echo_n "(cached) " >&6 2822else 2823 2824 test -d conftestdir && rm -rf conftestdir 2825 mkdir -p conftestdir/somedir >/dev/null 2>&1 2826 if test -d conftestdir/somedir; then 2827 ac_cv_mkdir_p=yes 2828 else 2829 ac_cv_mkdir_p=no 2830 fi 2831 rm -rf conftestdir 2832 2833fi 2834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mkdir_p" >&5 2835$as_echo "$ac_cv_mkdir_p" >&6; } 2836 if test "$ac_cv_mkdir_p" = "yes"; then 2837 mkdir_p="mkdir -p" 2838 else 2839 mkdir_p="$abs_srcdir/build/mkdir.sh" 2840 fi 2841 2842 2843get_version="$abs_srcdir/build/get-version.sh" 2844version_hdr="$abs_srcdir/include/apu_version.h" 2845APRUTIL_MAJOR_VERSION="`$get_version major $version_hdr APU`" 2846APRUTIL_DOTTED_VERSION="`$get_version all $version_hdr APU`" 2847 2848APU_LTVERSION="-version-info `$get_version libtool $version_hdr APU`" 2849 2850 2851 2852 2853 2854echo "APR-util Version: ${APRUTIL_DOTTED_VERSION}" 2855 2856 2857# Check whether --enable-layout was given. 2858if test "${enable_layout+set}" = set; then : 2859 enableval=$enable_layout; 2860 LAYOUT=$enableval 2861 2862fi 2863 2864 2865if test -z "$LAYOUT"; then 2866 LAYOUT="apr-util" 2867fi 2868 2869 if test ! -f $srcdir/config.layout; then 2870 echo "** Error: Layout file $srcdir/config.layout not found" 2871 echo "** Error: Cannot use undefined layout '$LAYOUT'" 2872 exit 1 2873 fi 2874 # Catch layout names including a slash which will otherwise 2875 # confuse the heck out of the sed script. 2876 case $LAYOUT in 2877 */*) 2878 echo "** Error: $LAYOUT is not a valid layout name" 2879 exit 1 ;; 2880 esac 2881 pldconf=./config.pld 2882 2883 sed -e "1s/[ ]*<[lL]ayout[ ]*$LAYOUT[ ]*>[ ]*//;1t" \ 2884 -e "1,/[ ]*<[lL]ayout[ ]*$LAYOUT[ ]*>[ ]*/d" \ 2885 -e '/[ ]*<\/Layout>[ ]*/,$d' \ 2886 -e "s/^[ ]*//g" \ 2887 -e "s/:[ ]*/=\'/g" \ 2888 -e "s/[ ]*$/'/g" \ 2889 $srcdir/config.layout > $pldconf 2890 layout_name=$LAYOUT 2891 if test ! -s $pldconf; then 2892 echo "** Error: unable to find layout $layout_name" 2893 exit 1 2894 fi 2895 . $pldconf 2896 rm $pldconf 2897 for var in prefix exec_prefix bindir sbindir libexecdir mandir \ 2898 sysconfdir datadir includedir localstatedir runtimedir \ 2899 logfiledir libdir installbuilddir libsuffix ; do 2900 eval "val=\"\$$var\"" 2901 case $val in 2902 *+) 2903 val=`echo $val | sed -e 's;\+$;;'` 2904 eval "$var=\"\$val\"" 2905 autosuffix=yes 2906 ;; 2907 *) 2908 autosuffix=no 2909 ;; 2910 esac 2911 val=`echo $val | sed -e 's:\(.\)/*$:\1:'` 2912 val=`echo $val | sed -e 's:[\$]\([a-z_]*\):$\1:g'` 2913 if test "$autosuffix" = "yes"; then 2914 if echo $val | grep apache >/dev/null; then 2915 addtarget=no 2916 else 2917 addtarget=yes 2918 fi 2919 if test "$addtarget" = "yes"; then 2920 val="$val/apache2" 2921 fi 2922 fi 2923 eval "$var='$val'" 2924 done 2925 2926 2927 2928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chosen layout" >&5 2929$as_echo_n "checking for chosen layout... " >&6; } 2930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $layout_name" >&5 2931$as_echo "$layout_name" >&6; } 2932 2933 2934ac_prev= 2935# Retrieve the command-line arguments. The eval is needed because 2936# the arguments are quoted to preserve accuracy. 2937eval "set x $ac_configure_args" 2938shift 2939for ac_option 2940do 2941 # If the previous option needs an argument, assign it. 2942 if test -n "$ac_prev"; then 2943 eval "$ac_prev=\$ac_option" 2944 ac_prev= 2945 continue 2946 fi 2947 2948 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 2949 2950 case $ac_option in 2951 2952 -bindir | --bindir | --bindi | --bind | --bin | --bi) 2953 ac_prev=bindir ;; 2954 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 2955 bindir="$ac_optarg" ;; 2956 2957 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 2958 ac_prev=datadir ;; 2959 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 2960 | --da=*) 2961 datadir="$ac_optarg" ;; 2962 2963 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 2964 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 2965 | --exec | --exe | --ex) 2966 ac_prev=exec_prefix ;; 2967 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 2968 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 2969 | --exec=* | --exe=* | --ex=*) 2970 exec_prefix="$ac_optarg" ;; 2971 2972 -includedir | --includedir | --includedi | --included | --include \ 2973 | --includ | --inclu | --incl | --inc) 2974 ac_prev=includedir ;; 2975 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 2976 | --includ=* | --inclu=* | --incl=* | --inc=*) 2977 includedir="$ac_optarg" ;; 2978 2979 -infodir | --infodir | --infodi | --infod | --info | --inf) 2980 ac_prev=infodir ;; 2981 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 2982 infodir="$ac_optarg" ;; 2983 2984 -libdir | --libdir | --libdi | --libd) 2985 ac_prev=libdir ;; 2986 -libdir=* | --libdir=* | --libdi=* | --libd=*) 2987 libdir="$ac_optarg" ;; 2988 2989 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 2990 | --libexe | --libex | --libe) 2991 ac_prev=libexecdir ;; 2992 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 2993 | --libexe=* | --libex=* | --libe=*) 2994 libexecdir="$ac_optarg" ;; 2995 2996 -localstatedir | --localstatedir | --localstatedi | --localstated \ 2997 | --localstate | --localstat | --localsta | --localst \ 2998 | --locals | --local | --loca | --loc | --lo) 2999 ac_prev=localstatedir ;; 3000 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 3001 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 3002 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 3003 localstatedir="$ac_optarg" ;; 3004 3005 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 3006 ac_prev=mandir ;; 3007 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 3008 mandir="$ac_optarg" ;; 3009 3010 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 3011 ac_prev=prefix ;; 3012 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 3013 prefix="$ac_optarg" ;; 3014 3015 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 3016 ac_prev=sbindir ;; 3017 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 3018 | --sbi=* | --sb=*) 3019 sbindir="$ac_optarg" ;; 3020 3021 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 3022 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 3023 | --sharedst | --shareds | --shared | --share | --shar \ 3024 | --sha | --sh) 3025 ac_prev=sharedstatedir ;; 3026 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 3027 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 3028 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 3029 | --sha=* | --sh=*) 3030 sharedstatedir="$ac_optarg" ;; 3031 3032 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 3033 | --syscon | --sysco | --sysc | --sys | --sy) 3034 ac_prev=sysconfdir ;; 3035 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 3036 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 3037 sysconfdir="$ac_optarg" ;; 3038 3039 esac 3040done 3041 3042# Be sure to have absolute paths. 3043for ac_var in exec_prefix prefix 3044do 3045 eval ac_val=$`echo $ac_var` 3046 case $ac_val in 3047 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 3048 *) as_fn_error $? "expected an absolute path for --$ac_var: $ac_val" "$LINENO" 5;; 3049 esac 3050done 3051 3052 3053 3054ac_ext=c 3055ac_cpp='$CPP $CPPFLAGS' 3056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3058ac_compiler_gnu=$ac_cv_c_compiler_gnu 3059if test -n "$ac_tool_prefix"; then 3060 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3061set dummy ${ac_tool_prefix}gcc; ac_word=$2 3062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3063$as_echo_n "checking for $ac_word... " >&6; } 3064if ${ac_cv_prog_CC+:} false; then : 3065 $as_echo_n "(cached) " >&6 3066else 3067 if test -n "$CC"; then 3068 ac_cv_prog_CC="$CC" # Let the user override the test. 3069else 3070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3071for as_dir in $PATH 3072do 3073 IFS=$as_save_IFS 3074 test -z "$as_dir" && as_dir=. 3075 for ac_exec_ext in '' $ac_executable_extensions; do 3076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3077 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3079 break 2 3080 fi 3081done 3082 done 3083IFS=$as_save_IFS 3084 3085fi 3086fi 3087CC=$ac_cv_prog_CC 3088if test -n "$CC"; then 3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3090$as_echo "$CC" >&6; } 3091else 3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3093$as_echo "no" >&6; } 3094fi 3095 3096 3097fi 3098if test -z "$ac_cv_prog_CC"; then 3099 ac_ct_CC=$CC 3100 # Extract the first word of "gcc", so it can be a program name with args. 3101set dummy gcc; ac_word=$2 3102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3103$as_echo_n "checking for $ac_word... " >&6; } 3104if ${ac_cv_prog_ac_ct_CC+:} false; then : 3105 $as_echo_n "(cached) " >&6 3106else 3107 if test -n "$ac_ct_CC"; then 3108 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3109else 3110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3111for as_dir in $PATH 3112do 3113 IFS=$as_save_IFS 3114 test -z "$as_dir" && as_dir=. 3115 for ac_exec_ext in '' $ac_executable_extensions; do 3116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3117 ac_cv_prog_ac_ct_CC="gcc" 3118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3119 break 2 3120 fi 3121done 3122 done 3123IFS=$as_save_IFS 3124 3125fi 3126fi 3127ac_ct_CC=$ac_cv_prog_ac_ct_CC 3128if test -n "$ac_ct_CC"; then 3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3130$as_echo "$ac_ct_CC" >&6; } 3131else 3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3133$as_echo "no" >&6; } 3134fi 3135 3136 if test "x$ac_ct_CC" = x; then 3137 CC="" 3138 else 3139 case $cross_compiling:$ac_tool_warned in 3140yes:) 3141{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3142$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3143ac_tool_warned=yes ;; 3144esac 3145 CC=$ac_ct_CC 3146 fi 3147else 3148 CC="$ac_cv_prog_CC" 3149fi 3150 3151if test -z "$CC"; then 3152 if test -n "$ac_tool_prefix"; then 3153 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3154set dummy ${ac_tool_prefix}cc; ac_word=$2 3155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3156$as_echo_n "checking for $ac_word... " >&6; } 3157if ${ac_cv_prog_CC+:} false; then : 3158 $as_echo_n "(cached) " >&6 3159else 3160 if test -n "$CC"; then 3161 ac_cv_prog_CC="$CC" # Let the user override the test. 3162else 3163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3164for as_dir in $PATH 3165do 3166 IFS=$as_save_IFS 3167 test -z "$as_dir" && as_dir=. 3168 for ac_exec_ext in '' $ac_executable_extensions; do 3169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3170 ac_cv_prog_CC="${ac_tool_prefix}cc" 3171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3172 break 2 3173 fi 3174done 3175 done 3176IFS=$as_save_IFS 3177 3178fi 3179fi 3180CC=$ac_cv_prog_CC 3181if test -n "$CC"; then 3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3183$as_echo "$CC" >&6; } 3184else 3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3186$as_echo "no" >&6; } 3187fi 3188 3189 3190 fi 3191fi 3192if test -z "$CC"; then 3193 # Extract the first word of "cc", so it can be a program name with args. 3194set dummy cc; ac_word=$2 3195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3196$as_echo_n "checking for $ac_word... " >&6; } 3197if ${ac_cv_prog_CC+:} false; then : 3198 $as_echo_n "(cached) " >&6 3199else 3200 if test -n "$CC"; then 3201 ac_cv_prog_CC="$CC" # Let the user override the test. 3202else 3203 ac_prog_rejected=no 3204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3205for as_dir in $PATH 3206do 3207 IFS=$as_save_IFS 3208 test -z "$as_dir" && as_dir=. 3209 for ac_exec_ext in '' $ac_executable_extensions; do 3210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3211 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3212 ac_prog_rejected=yes 3213 continue 3214 fi 3215 ac_cv_prog_CC="cc" 3216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3217 break 2 3218 fi 3219done 3220 done 3221IFS=$as_save_IFS 3222 3223if test $ac_prog_rejected = yes; then 3224 # We found a bogon in the path, so make sure we never use it. 3225 set dummy $ac_cv_prog_CC 3226 shift 3227 if test $# != 0; then 3228 # We chose a different compiler from the bogus one. 3229 # However, it has the same basename, so the bogon will be chosen 3230 # first if we set CC to just the basename; use the full file name. 3231 shift 3232 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3233 fi 3234fi 3235fi 3236fi 3237CC=$ac_cv_prog_CC 3238if test -n "$CC"; then 3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3240$as_echo "$CC" >&6; } 3241else 3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3243$as_echo "no" >&6; } 3244fi 3245 3246 3247fi 3248if test -z "$CC"; then 3249 if test -n "$ac_tool_prefix"; then 3250 for ac_prog in cl.exe 3251 do 3252 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3253set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3255$as_echo_n "checking for $ac_word... " >&6; } 3256if ${ac_cv_prog_CC+:} false; then : 3257 $as_echo_n "(cached) " >&6 3258else 3259 if test -n "$CC"; then 3260 ac_cv_prog_CC="$CC" # Let the user override the test. 3261else 3262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3263for as_dir in $PATH 3264do 3265 IFS=$as_save_IFS 3266 test -z "$as_dir" && as_dir=. 3267 for ac_exec_ext in '' $ac_executable_extensions; do 3268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3269 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3271 break 2 3272 fi 3273done 3274 done 3275IFS=$as_save_IFS 3276 3277fi 3278fi 3279CC=$ac_cv_prog_CC 3280if test -n "$CC"; then 3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3282$as_echo "$CC" >&6; } 3283else 3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3285$as_echo "no" >&6; } 3286fi 3287 3288 3289 test -n "$CC" && break 3290 done 3291fi 3292if test -z "$CC"; then 3293 ac_ct_CC=$CC 3294 for ac_prog in cl.exe 3295do 3296 # Extract the first word of "$ac_prog", so it can be a program name with args. 3297set dummy $ac_prog; ac_word=$2 3298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3299$as_echo_n "checking for $ac_word... " >&6; } 3300if ${ac_cv_prog_ac_ct_CC+:} false; then : 3301 $as_echo_n "(cached) " >&6 3302else 3303 if test -n "$ac_ct_CC"; then 3304 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3305else 3306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3307for as_dir in $PATH 3308do 3309 IFS=$as_save_IFS 3310 test -z "$as_dir" && as_dir=. 3311 for ac_exec_ext in '' $ac_executable_extensions; do 3312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3313 ac_cv_prog_ac_ct_CC="$ac_prog" 3314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3315 break 2 3316 fi 3317done 3318 done 3319IFS=$as_save_IFS 3320 3321fi 3322fi 3323ac_ct_CC=$ac_cv_prog_ac_ct_CC 3324if test -n "$ac_ct_CC"; then 3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3326$as_echo "$ac_ct_CC" >&6; } 3327else 3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3329$as_echo "no" >&6; } 3330fi 3331 3332 3333 test -n "$ac_ct_CC" && break 3334done 3335 3336 if test "x$ac_ct_CC" = x; then 3337 CC="" 3338 else 3339 case $cross_compiling:$ac_tool_warned in 3340yes:) 3341{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3342$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3343ac_tool_warned=yes ;; 3344esac 3345 CC=$ac_ct_CC 3346 fi 3347fi 3348 3349fi 3350 3351 3352test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3353$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3354as_fn_error $? "no acceptable C compiler found in \$PATH 3355See \`config.log' for more details" "$LINENO" 5; } 3356 3357# Provide some information about the compiler. 3358$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3359set X $ac_compile 3360ac_compiler=$2 3361for ac_option in --version -v -V -qversion; do 3362 { { ac_try="$ac_compiler $ac_option >&5" 3363case "(($ac_try" in 3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3365 *) ac_try_echo=$ac_try;; 3366esac 3367eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3368$as_echo "$ac_try_echo"; } >&5 3369 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3370 ac_status=$? 3371 if test -s conftest.err; then 3372 sed '10a\ 3373... rest of stderr output deleted ... 3374 10q' conftest.err >conftest.er1 3375 cat conftest.er1 >&5 3376 fi 3377 rm -f conftest.er1 conftest.err 3378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3379 test $ac_status = 0; } 3380done 3381 3382cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3383/* end confdefs.h. */ 3384 3385int 3386main () 3387{ 3388 3389 ; 3390 return 0; 3391} 3392_ACEOF 3393ac_clean_files_save=$ac_clean_files 3394ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3395# Try to create an executable without -o first, disregard a.out. 3396# It will help us diagnose broken compilers, and finding out an intuition 3397# of exeext. 3398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3399$as_echo_n "checking whether the C compiler works... " >&6; } 3400ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3401 3402# The possible output files: 3403ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3404 3405ac_rmfiles= 3406for ac_file in $ac_files 3407do 3408 case $ac_file in 3409 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3410 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3411 esac 3412done 3413rm -f $ac_rmfiles 3414 3415if { { ac_try="$ac_link_default" 3416case "(($ac_try" in 3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3418 *) ac_try_echo=$ac_try;; 3419esac 3420eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3421$as_echo "$ac_try_echo"; } >&5 3422 (eval "$ac_link_default") 2>&5 3423 ac_status=$? 3424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3425 test $ac_status = 0; }; then : 3426 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3427# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3428# in a Makefile. We should not override ac_cv_exeext if it was cached, 3429# so that the user can short-circuit this test for compilers unknown to 3430# Autoconf. 3431for ac_file in $ac_files '' 3432do 3433 test -f "$ac_file" || continue 3434 case $ac_file in 3435 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3436 ;; 3437 [ab].out ) 3438 # We found the default executable, but exeext='' is most 3439 # certainly right. 3440 break;; 3441 *.* ) 3442 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3443 then :; else 3444 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3445 fi 3446 # We set ac_cv_exeext here because the later test for it is not 3447 # safe: cross compilers may not add the suffix if given an `-o' 3448 # argument, so we may need to know it at that point already. 3449 # Even if this section looks crufty: it has the advantage of 3450 # actually working. 3451 break;; 3452 * ) 3453 break;; 3454 esac 3455done 3456test "$ac_cv_exeext" = no && ac_cv_exeext= 3457 3458else 3459 ac_file='' 3460fi 3461if test -z "$ac_file"; then : 3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3463$as_echo "no" >&6; } 3464$as_echo "$as_me: failed program was:" >&5 3465sed 's/^/| /' conftest.$ac_ext >&5 3466 3467{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3468$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3469as_fn_error 77 "C compiler cannot create executables 3470See \`config.log' for more details" "$LINENO" 5; } 3471else 3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3473$as_echo "yes" >&6; } 3474fi 3475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3476$as_echo_n "checking for C compiler default output file name... " >&6; } 3477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3478$as_echo "$ac_file" >&6; } 3479ac_exeext=$ac_cv_exeext 3480 3481rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3482ac_clean_files=$ac_clean_files_save 3483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3484$as_echo_n "checking for suffix of executables... " >&6; } 3485if { { ac_try="$ac_link" 3486case "(($ac_try" in 3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3488 *) ac_try_echo=$ac_try;; 3489esac 3490eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3491$as_echo "$ac_try_echo"; } >&5 3492 (eval "$ac_link") 2>&5 3493 ac_status=$? 3494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3495 test $ac_status = 0; }; then : 3496 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3497# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3498# work properly (i.e., refer to `conftest.exe'), while it won't with 3499# `rm'. 3500for ac_file in conftest.exe conftest conftest.*; do 3501 test -f "$ac_file" || continue 3502 case $ac_file in 3503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3504 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3505 break;; 3506 * ) break;; 3507 esac 3508done 3509else 3510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3511$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3512as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3513See \`config.log' for more details" "$LINENO" 5; } 3514fi 3515rm -f conftest conftest$ac_cv_exeext 3516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3517$as_echo "$ac_cv_exeext" >&6; } 3518 3519rm -f conftest.$ac_ext 3520EXEEXT=$ac_cv_exeext 3521ac_exeext=$EXEEXT 3522cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3523/* end confdefs.h. */ 3524#include <stdio.h> 3525int 3526main () 3527{ 3528FILE *f = fopen ("conftest.out", "w"); 3529 return ferror (f) || fclose (f) != 0; 3530 3531 ; 3532 return 0; 3533} 3534_ACEOF 3535ac_clean_files="$ac_clean_files conftest.out" 3536# Check that the compiler produces executables we can run. If not, either 3537# the compiler is broken, or we cross compile. 3538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3539$as_echo_n "checking whether we are cross compiling... " >&6; } 3540if test "$cross_compiling" != yes; then 3541 { { ac_try="$ac_link" 3542case "(($ac_try" in 3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3544 *) ac_try_echo=$ac_try;; 3545esac 3546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3547$as_echo "$ac_try_echo"; } >&5 3548 (eval "$ac_link") 2>&5 3549 ac_status=$? 3550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3551 test $ac_status = 0; } 3552 if { ac_try='./conftest$ac_cv_exeext' 3553 { { case "(($ac_try" in 3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3555 *) ac_try_echo=$ac_try;; 3556esac 3557eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3558$as_echo "$ac_try_echo"; } >&5 3559 (eval "$ac_try") 2>&5 3560 ac_status=$? 3561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3562 test $ac_status = 0; }; }; then 3563 cross_compiling=no 3564 else 3565 if test "$cross_compiling" = maybe; then 3566 cross_compiling=yes 3567 else 3568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3569$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3570as_fn_error $? "cannot run C compiled programs. 3571If you meant to cross compile, use \`--host'. 3572See \`config.log' for more details" "$LINENO" 5; } 3573 fi 3574 fi 3575fi 3576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3577$as_echo "$cross_compiling" >&6; } 3578 3579rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3580ac_clean_files=$ac_clean_files_save 3581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3582$as_echo_n "checking for suffix of object files... " >&6; } 3583if ${ac_cv_objext+:} false; then : 3584 $as_echo_n "(cached) " >&6 3585else 3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3587/* end confdefs.h. */ 3588 3589int 3590main () 3591{ 3592 3593 ; 3594 return 0; 3595} 3596_ACEOF 3597rm -f conftest.o conftest.obj 3598if { { ac_try="$ac_compile" 3599case "(($ac_try" in 3600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3601 *) ac_try_echo=$ac_try;; 3602esac 3603eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3604$as_echo "$ac_try_echo"; } >&5 3605 (eval "$ac_compile") 2>&5 3606 ac_status=$? 3607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3608 test $ac_status = 0; }; then : 3609 for ac_file in conftest.o conftest.obj conftest.*; do 3610 test -f "$ac_file" || continue; 3611 case $ac_file in 3612 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3613 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3614 break;; 3615 esac 3616done 3617else 3618 $as_echo "$as_me: failed program was:" >&5 3619sed 's/^/| /' conftest.$ac_ext >&5 3620 3621{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3622$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3623as_fn_error $? "cannot compute suffix of object files: cannot compile 3624See \`config.log' for more details" "$LINENO" 5; } 3625fi 3626rm -f conftest.$ac_cv_objext conftest.$ac_ext 3627fi 3628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3629$as_echo "$ac_cv_objext" >&6; } 3630OBJEXT=$ac_cv_objext 3631ac_objext=$OBJEXT 3632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3633$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3634if ${ac_cv_c_compiler_gnu+:} false; then : 3635 $as_echo_n "(cached) " >&6 3636else 3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3638/* end confdefs.h. */ 3639 3640int 3641main () 3642{ 3643#ifndef __GNUC__ 3644 choke me 3645#endif 3646 3647 ; 3648 return 0; 3649} 3650_ACEOF 3651if ac_fn_c_try_compile "$LINENO"; then : 3652 ac_compiler_gnu=yes 3653else 3654 ac_compiler_gnu=no 3655fi 3656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3657ac_cv_c_compiler_gnu=$ac_compiler_gnu 3658 3659fi 3660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3661$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3662if test $ac_compiler_gnu = yes; then 3663 GCC=yes 3664else 3665 GCC= 3666fi 3667ac_test_CFLAGS=${CFLAGS+set} 3668ac_save_CFLAGS=$CFLAGS 3669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3670$as_echo_n "checking whether $CC accepts -g... " >&6; } 3671if ${ac_cv_prog_cc_g+:} false; then : 3672 $as_echo_n "(cached) " >&6 3673else 3674 ac_save_c_werror_flag=$ac_c_werror_flag 3675 ac_c_werror_flag=yes 3676 ac_cv_prog_cc_g=no 3677 CFLAGS="-g" 3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3679/* end confdefs.h. */ 3680 3681int 3682main () 3683{ 3684 3685 ; 3686 return 0; 3687} 3688_ACEOF 3689if ac_fn_c_try_compile "$LINENO"; then : 3690 ac_cv_prog_cc_g=yes 3691else 3692 CFLAGS="" 3693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3694/* end confdefs.h. */ 3695 3696int 3697main () 3698{ 3699 3700 ; 3701 return 0; 3702} 3703_ACEOF 3704if ac_fn_c_try_compile "$LINENO"; then : 3705 3706else 3707 ac_c_werror_flag=$ac_save_c_werror_flag 3708 CFLAGS="-g" 3709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3710/* end confdefs.h. */ 3711 3712int 3713main () 3714{ 3715 3716 ; 3717 return 0; 3718} 3719_ACEOF 3720if ac_fn_c_try_compile "$LINENO"; then : 3721 ac_cv_prog_cc_g=yes 3722fi 3723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3724fi 3725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3726fi 3727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3728 ac_c_werror_flag=$ac_save_c_werror_flag 3729fi 3730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3731$as_echo "$ac_cv_prog_cc_g" >&6; } 3732if test "$ac_test_CFLAGS" = set; then 3733 CFLAGS=$ac_save_CFLAGS 3734elif test $ac_cv_prog_cc_g = yes; then 3735 if test "$GCC" = yes; then 3736 CFLAGS="-g -O2" 3737 else 3738 CFLAGS="-g" 3739 fi 3740else 3741 if test "$GCC" = yes; then 3742 CFLAGS="-O2" 3743 else 3744 CFLAGS= 3745 fi 3746fi 3747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3748$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3749if ${ac_cv_prog_cc_c89+:} false; then : 3750 $as_echo_n "(cached) " >&6 3751else 3752 ac_cv_prog_cc_c89=no 3753ac_save_CC=$CC 3754cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3755/* end confdefs.h. */ 3756#include <stdarg.h> 3757#include <stdio.h> 3758struct stat; 3759/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3760struct buf { int x; }; 3761FILE * (*rcsopen) (struct buf *, struct stat *, int); 3762static char *e (p, i) 3763 char **p; 3764 int i; 3765{ 3766 return p[i]; 3767} 3768static char *f (char * (*g) (char **, int), char **p, ...) 3769{ 3770 char *s; 3771 va_list v; 3772 va_start (v,p); 3773 s = g (p, va_arg (v,int)); 3774 va_end (v); 3775 return s; 3776} 3777 3778/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3779 function prototypes and stuff, but not '\xHH' hex character constants. 3780 These don't provoke an error unfortunately, instead are silently treated 3781 as 'x'. The following induces an error, until -std is added to get 3782 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3783 array size at least. It's necessary to write '\x00'==0 to get something 3784 that's true only with -std. */ 3785int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3786 3787/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3788 inside strings and character constants. */ 3789#define FOO(x) 'x' 3790int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3791 3792int test (int i, double x); 3793struct s1 {int (*f) (int a);}; 3794struct s2 {int (*f) (double a);}; 3795int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3796int argc; 3797char **argv; 3798int 3799main () 3800{ 3801return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3802 ; 3803 return 0; 3804} 3805_ACEOF 3806for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3807 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3808do 3809 CC="$ac_save_CC $ac_arg" 3810 if ac_fn_c_try_compile "$LINENO"; then : 3811 ac_cv_prog_cc_c89=$ac_arg 3812fi 3813rm -f core conftest.err conftest.$ac_objext 3814 test "x$ac_cv_prog_cc_c89" != "xno" && break 3815done 3816rm -f conftest.$ac_ext 3817CC=$ac_save_CC 3818 3819fi 3820# AC_CACHE_VAL 3821case "x$ac_cv_prog_cc_c89" in 3822 x) 3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3824$as_echo "none needed" >&6; } ;; 3825 xno) 3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3827$as_echo "unsupported" >&6; } ;; 3828 *) 3829 CC="$CC $ac_cv_prog_cc_c89" 3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3831$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3832esac 3833if test "x$ac_cv_prog_cc_c89" != xno; then : 3834 3835fi 3836 3837ac_ext=c 3838ac_cpp='$CPP $CPPFLAGS' 3839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3841ac_compiler_gnu=$ac_cv_c_compiler_gnu 3842 3843 3844 3845if test "x$apu_preload_done" != "xyes" ; then 3846 apu_preload_done="yes" 3847 3848 echo "Applying apr-util hints file rules for $host" 3849 3850 case "$host" in 3851 *-dec-osf*) 3852 3853 if test -z "$apu_crypt_threadsafe"; then 3854 test "x$silent" != "xyes" && echo " setting apu_crypt_threadsafe to \"1\"" 3855 apu_crypt_threadsafe="1" 3856 fi 3857 3858 ;; 3859 *-hp-hpux11.*) 3860 3861 if test -z "$apu_crypt_threadsafe"; then 3862 test "x$silent" != "xyes" && echo " setting apu_crypt_threadsafe to \"1\"" 3863 apu_crypt_threadsafe="1" 3864 fi 3865 3866 ;; 3867 *-ibm-aix4*|*-ibm-aix5.1*) 3868 3869 if test -z "$apu_iconv_inbuf_const"; then 3870 test "x$silent" != "xyes" && echo " setting apu_iconv_inbuf_const to \"1\"" 3871 apu_iconv_inbuf_const="1" 3872 fi 3873 3874 ;; 3875 *-ibm-os390) 3876 3877 if test -z "$apu_crypt_threadsafe"; then 3878 test "x$silent" != "xyes" && echo " setting apu_crypt_threadsafe to \"1\"" 3879 apu_crypt_threadsafe="1" 3880 fi 3881 3882 ;; 3883 *-solaris2*) 3884 3885 if test -z "$apu_iconv_inbuf_const"; then 3886 test "x$silent" != "xyes" && echo " setting apu_iconv_inbuf_const to \"1\"" 3887 apu_iconv_inbuf_const="1" 3888 fi 3889 3890 3891 if test -z "$apu_crypt_threadsafe"; then 3892 test "x$silent" != "xyes" && echo " setting apu_crypt_threadsafe to \"1\"" 3893 apu_crypt_threadsafe="1" 3894 fi 3895 3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5 3897$as_echo_n "checking for library containing fdatasync... " >&6; } 3898if ${ac_cv_search_fdatasync+:} false; then : 3899 $as_echo_n "(cached) " >&6 3900else 3901 ac_func_search_save_LIBS=$LIBS 3902cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3903/* end confdefs.h. */ 3904 3905/* Override any GCC internal prototype to avoid an error. 3906 Use char because int might match the return type of a GCC 3907 builtin and then its argument prototype would still apply. */ 3908#ifdef __cplusplus 3909extern "C" 3910#endif 3911char fdatasync (); 3912int 3913main () 3914{ 3915return fdatasync (); 3916 ; 3917 return 0; 3918} 3919_ACEOF 3920for ac_lib in '' rt posix4; do 3921 if test -z "$ac_lib"; then 3922 ac_res="none required" 3923 else 3924 ac_res=-l$ac_lib 3925 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3926 fi 3927 if ac_fn_c_try_link "$LINENO"; then : 3928 ac_cv_search_fdatasync=$ac_res 3929fi 3930rm -f core conftest.err conftest.$ac_objext \ 3931 conftest$ac_exeext 3932 if ${ac_cv_search_fdatasync+:} false; then : 3933 break 3934fi 3935done 3936if ${ac_cv_search_fdatasync+:} false; then : 3937 3938else 3939 ac_cv_search_fdatasync=no 3940fi 3941rm conftest.$ac_ext 3942LIBS=$ac_func_search_save_LIBS 3943fi 3944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5 3945$as_echo "$ac_cv_search_fdatasync" >&6; } 3946ac_res=$ac_cv_search_fdatasync 3947if test "$ac_res" != no; then : 3948 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3949 3950fi 3951 3952 ;; 3953 *-sco3.2v5*) 3954 3955 if test -z "$apu_db_xtra_libs"; then 3956 test "x$silent" != "xyes" && echo " setting apu_db_xtra_libs to \"-lsocket\"" 3957 apu_db_xtra_libs="-lsocket" 3958 fi 3959 3960 ;; 3961 esac 3962 3963fi 3964 3965 3966 3967APRUTIL_INCLUDES="" 3968APRUTIL_PRIV_INCLUDES="-I$top_builddir/include -I$top_builddir/include/private" 3969if test -n "$USE_VPATH"; then 3970 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES -I$abs_srcdir/include/private -I$abs_srcdir/include" 3971fi 3972 3973 3974 3975 3976 apr_found="no" 3977 3978 if test "$target_os" = "os2-emx"; then 3979 # Scripts don't pass test -x on OS/2 3980 TEST_X="test -f" 3981 else 3982 TEST_X="test -x" 3983 fi 3984 3985 acceptable_majors="1" 3986 3987 apr_temp_acceptable_apr_config="" 3988 for apr_temp_major in $acceptable_majors 3989 do 3990 case $apr_temp_major in 3991 0) 3992 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config" 3993 ;; 3994 *) 3995 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config" 3996 ;; 3997 esac 3998 done 3999 4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5 4001$as_echo_n "checking for APR... " >&6; } 4002 4003# Check whether --with-apr was given. 4004if test "${with_apr+set}" = set; then : 4005 withval=$with_apr; 4006 if test "$withval" = "no" || test "$withval" = "yes"; then 4007 as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5 4008 fi 4009 4010 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config 4011 do 4012 for lookdir in "$withval/bin" "$withval" 4013 do 4014 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then 4015 apr_config="$lookdir/$apr_temp_apr_config_file" 4016 4017 apr_found="yes" 4018 break 2 4019 fi 4020 done 4021 done 4022 4023 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then 4024 apr_config="$withval" 4025 apr_found="yes" 4026 fi 4027 4028 if test "$apr_found" != "yes"; then 4029 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 4030 fi 4031 4032else 4033 4034 if test -n "" && test "" = "1"; then 4035 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config 4036 do 4037 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then 4038 apr_config="$apr_temp_apr_config_file" 4039 4040 apr_found="yes" 4041 break 4042 else 4043 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do 4044 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then 4045 apr_config="$lookdir/bin/$apr_temp_apr_config_file" 4046 4047 apr_found="yes" 4048 break 2 4049 fi 4050 done 4051 fi 4052 done 4053 fi 4054 if test "$apr_found" = "no" && test -d ""; then 4055 apr_temp_abs_srcdir="`cd \"\" && pwd`" 4056 apr_found="reconfig" 4057 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`" 4058 case $apr_bundled_major in 4059 "") 4060 as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5 4061 ;; 4062 0) 4063 apr_temp_apr_config_file="apr-config" 4064 ;; 4065 *) 4066 apr_temp_apr_config_file="apr-$apr_bundled_major-config" 4067 ;; 4068 esac 4069 if test -n ""; then 4070 apr_config="/$apr_temp_apr_config_file" 4071 else 4072 apr_config="/$apr_temp_apr_config_file" 4073 fi 4074 fi 4075 4076fi 4077 4078 4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5 4080$as_echo "$apr_found" >&6; } 4081 4082 if test "$apr_found" = "no"; then 4083 as_fn_error $? "APR could not be located. Please use the --with-apr option." "$LINENO" 5 4084 fi 4085 4086 APR_BUILD_DIR="`$apr_config --installbuilddir`" 4087 4088 APR_BUILD_DIR="`cd $APR_BUILD_DIR && pwd`" 4089 4090 APR_INCLUDES="`$apr_config --includes`" 4091 APR_LIBS="`$apr_config --link-libtool --libs`" 4092 APR_SO_EXT="`$apr_config --apr-so-ext`" 4093 APR_LIB_TARGET="`$apr_config --apr-lib-target`" 4094 4095 4096 4097 4098 4099 4100 4101 if test -z "$CC"; then 4102 test "x$silent" != "xyes" && echo " setting CC to \"`$apr_config --cc`\"" 4103 CC="`$apr_config --cc`" 4104 fi 4105 4106 4107 if test -z "$CPP"; then 4108 test "x$silent" != "xyes" && echo " setting CPP to \"`$apr_config --cpp`\"" 4109 CPP="`$apr_config --cpp`" 4110 fi 4111 4112 4113 if test "x$CFLAGS" = "x"; then 4114 test "x$silent" != "xyes" && echo " setting CFLAGS to \"`$apr_config --cflags`\"" 4115 CFLAGS="`$apr_config --cflags`" 4116 else 4117 apr_addto_bugger="`$apr_config --cflags`" 4118 for i in $apr_addto_bugger; do 4119 apr_addto_duplicate="0" 4120 for j in $CFLAGS; do 4121 if test "x$i" = "x$j"; then 4122 apr_addto_duplicate="1" 4123 break 4124 fi 4125 done 4126 if test $apr_addto_duplicate = "0"; then 4127 test "x$silent" != "xyes" && echo " adding \"$i\" to CFLAGS" 4128 CFLAGS="$CFLAGS $i" 4129 fi 4130 done 4131 fi 4132 4133 4134 if test "x$CPPFLAGS" = "x"; then 4135 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"`$apr_config --cppflags`\"" 4136 CPPFLAGS="`$apr_config --cppflags`" 4137 else 4138 apr_addto_bugger="`$apr_config --cppflags`" 4139 for i in $apr_addto_bugger; do 4140 apr_addto_duplicate="0" 4141 for j in $CPPFLAGS; do 4142 if test "x$i" = "x$j"; then 4143 apr_addto_duplicate="1" 4144 break 4145 fi 4146 done 4147 if test $apr_addto_duplicate = "0"; then 4148 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 4149 CPPFLAGS="$CPPFLAGS $i" 4150 fi 4151 done 4152 fi 4153 4154apr_shlibpath_var=`$apr_config --shlib-path-var` 4155 4156 4157 4158# Check whether --with-apr-iconv was given. 4159if test "${with_apr_iconv+set}" = set; then : 4160 withval=$with_apr_iconv; apu_apriconv_dir="$withval" 4161 if test "$apu_apriconv_dir" != "no"; then 4162 if test -d "$apu_apriconv_dir"; then 4163 4164 # save our work to this point; this allows the sub-package to use it 4165 cat >confcache <<\_ACEOF 4166# This file is a shell script that caches the results of configure 4167# tests run on this system so they can be shared between configure 4168# scripts and configure runs, see configure's option --config-cache. 4169# It is not useful on other systems. If it contains results you don't 4170# want to keep, you may remove or edit it. 4171# 4172# config.status only pays attention to the cache file if you give it 4173# the --recheck option to rerun configure. 4174# 4175# `ac_cv_env_foo' variables (set or unset) will be overridden when 4176# loading this file, other *unset* `ac_cv_foo' will be assigned the 4177# following values. 4178 4179_ACEOF 4180 4181# The following way of writing the cache mishandles newlines in values, 4182# but we know of no workaround that is simple, portable, and efficient. 4183# So, we kill variables containing newlines. 4184# Ultrix sh set writes to stderr and can't be redirected directly, 4185# and sets the high bit in the cache file unless we assign to the vars. 4186( 4187 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 4188 eval ac_val=\$$ac_var 4189 case $ac_val in #( 4190 *${as_nl}*) 4191 case $ac_var in #( 4192 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 4193$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 4194 esac 4195 case $ac_var in #( 4196 _ | IFS | as_nl) ;; #( 4197 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 4198 *) { eval $ac_var=; unset $ac_var;} ;; 4199 esac ;; 4200 esac 4201 done 4202 4203 (set) 2>&1 | 4204 case $as_nl`(ac_space=' '; set) 2>&1` in #( 4205 *${as_nl}ac_space=\ *) 4206 # `set' does not quote correctly, so add quotes: double-quote 4207 # substitution turns \\\\ into \\, and sed turns \\ into \. 4208 sed -n \ 4209 "s/'/'\\\\''/g; 4210 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 4211 ;; #( 4212 *) 4213 # `set' quotes correctly as required by POSIX, so do not add quotes. 4214 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 4215 ;; 4216 esac | 4217 sort 4218) | 4219 sed ' 4220 /^ac_cv_env_/b end 4221 t clear 4222 :clear 4223 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 4224 t end 4225 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 4226 :end' >>confcache 4227if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 4228 if test -w "$cache_file"; then 4229 if test "x$cache_file" != "x/dev/null"; then 4230 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 4231$as_echo "$as_me: updating cache $cache_file" >&6;} 4232 if test ! -f "$cache_file" || test -h "$cache_file"; then 4233 cat confcache >"$cache_file" 4234 else 4235 case $cache_file in #( 4236 */* | ?:*) 4237 mv -f confcache "$cache_file"$$ && 4238 mv -f "$cache_file"$$ "$cache_file" ;; #( 4239 *) 4240 mv -f confcache "$cache_file" ;; 4241 esac 4242 fi 4243 fi 4244 else 4245 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 4246$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 4247 fi 4248fi 4249rm -f confcache 4250 4251 echo "configuring package in "$apu_apriconv_dir" now" 4252 ac_popdir=`pwd` 4253 apr_config_subdirs=""$apu_apriconv_dir"" 4254 test -d "$apu_apriconv_dir" || $mkdir_p "$apu_apriconv_dir" 4255 ac_abs_srcdir=`(cd $srcdir/"$apu_apriconv_dir" && pwd)` 4256 cd "$apu_apriconv_dir" 4257 4258 # A "../" for each directory in /$config_subdirs. 4259 ac_dots=`echo $apr_config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` 4260 4261 # Make the cache file pathname absolute for the subdirs 4262 # required to correctly handle subdirs that might actually 4263 # be symlinks 4264 case "$cache_file" in 4265 /*) # already absolute 4266 ac_sub_cache_file=$cache_file ;; 4267 *) # Was relative path. 4268 ac_sub_cache_file="$ac_popdir/$cache_file" ;; 4269 esac 4270 4271 4272 apr_configure_args= 4273 apr_sep= 4274 for apr_configure_arg in $ac_configure_args 4275 do 4276 case "$apr_configure_arg" in 4277 --enable-layout=*|\'--enable-layout=*) 4278 continue ;; 4279 esac 4280 apr_configure_args="$apr_configure_args$apr_sep'$apr_configure_arg'" 4281 apr_sep=" " 4282 done 4283 4284 4285 test "x$silent" = "xyes" && apr_configure_args="$apr_configure_args --silent" 4286 4287 apr_configure_args="--disable-option-checking $apr_configure_args" 4288 4289 if eval $SHELL $ac_abs_srcdir/configure $apr_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_abs_srcdir $apache_apr_flags \ 4290 --prefix=$prefix \ 4291 --exec-prefix=$exec_prefix \ 4292 --libdir=$libdir \ 4293 --includedir=$includedir \ 4294 --bindir=$bindir \ 4295 --datadir=$datadir \ 4296 --with-installbuilddir=$installbuilddir 4297 then : 4298 echo ""$apu_apriconv_dir" configured properly" 4299 else 4300 echo "configure failed for "$apu_apriconv_dir"" 4301 exit 1 4302 fi 4303 4304 cd $ac_popdir 4305 4306 # grab any updates from the sub-package 4307 if test -r "$cache_file"; then 4308 # Some versions of bash will fail to source /dev/null (special files 4309 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 4310 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 4311 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 4312$as_echo "$as_me: loading cache $cache_file" >&6;} 4313 case $cache_file in 4314 [\\/]* | ?:[\\/]* ) . "$cache_file";; 4315 *) . "./$cache_file";; 4316 esac 4317 fi 4318else 4319 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 4320$as_echo "$as_me: creating cache $cache_file" >&6;} 4321 >$cache_file 4322fi 4323 4324 4325 APRUTIL_EXPORT_LIBS="$abs_srcdir/$apu_apriconv_dir/lib/libapriconv.la \ 4326 $APRUTIL_EXPORT_LIBS" 4327 APRUTIL_INCLUDES="-I$abs_srcdir/$apu_apriconv_dir/include \ 4328 $APRUTIL_INCLUDES" 4329 APR_ICONV_DIR="$apu_apriconv_dir" 4330 else 4331 APR_ICONV_DIR="" 4332 fi 4333 else 4334 APR_ICONV_DIR="" 4335 fi 4336 4337fi 4338 4339 4340 4341ac_ext=c 4342ac_cpp='$CPP $CPPFLAGS' 4343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4345ac_compiler_gnu=$ac_cv_c_compiler_gnu 4346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4347$as_echo_n "checking how to run the C preprocessor... " >&6; } 4348# On Suns, sometimes $CPP names a directory. 4349if test -n "$CPP" && test -d "$CPP"; then 4350 CPP= 4351fi 4352if test -z "$CPP"; then 4353 if ${ac_cv_prog_CPP+:} false; then : 4354 $as_echo_n "(cached) " >&6 4355else 4356 # Double quotes because CPP needs to be expanded 4357 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4358 do 4359 ac_preproc_ok=false 4360for ac_c_preproc_warn_flag in '' yes 4361do 4362 # Use a header file that comes with gcc, so configuring glibc 4363 # with a fresh cross-compiler works. 4364 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4365 # <limits.h> exists even on freestanding compilers. 4366 # On the NeXT, cc -E runs the code through the compiler's parser, 4367 # not just through cpp. "Syntax error" is here to catch this case. 4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4369/* end confdefs.h. */ 4370#ifdef __STDC__ 4371# include <limits.h> 4372#else 4373# include <assert.h> 4374#endif 4375 Syntax error 4376_ACEOF 4377if ac_fn_c_try_cpp "$LINENO"; then : 4378 4379else 4380 # Broken: fails on valid input. 4381continue 4382fi 4383rm -f conftest.err conftest.i conftest.$ac_ext 4384 4385 # OK, works on sane cases. Now check whether nonexistent headers 4386 # can be detected and how. 4387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4388/* end confdefs.h. */ 4389#include <ac_nonexistent.h> 4390_ACEOF 4391if ac_fn_c_try_cpp "$LINENO"; then : 4392 # Broken: success on invalid input. 4393continue 4394else 4395 # Passes both tests. 4396ac_preproc_ok=: 4397break 4398fi 4399rm -f conftest.err conftest.i conftest.$ac_ext 4400 4401done 4402# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4403rm -f conftest.i conftest.err conftest.$ac_ext 4404if $ac_preproc_ok; then : 4405 break 4406fi 4407 4408 done 4409 ac_cv_prog_CPP=$CPP 4410 4411fi 4412 CPP=$ac_cv_prog_CPP 4413else 4414 ac_cv_prog_CPP=$CPP 4415fi 4416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4417$as_echo "$CPP" >&6; } 4418ac_preproc_ok=false 4419for ac_c_preproc_warn_flag in '' yes 4420do 4421 # Use a header file that comes with gcc, so configuring glibc 4422 # with a fresh cross-compiler works. 4423 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4424 # <limits.h> exists even on freestanding compilers. 4425 # On the NeXT, cc -E runs the code through the compiler's parser, 4426 # not just through cpp. "Syntax error" is here to catch this case. 4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4428/* end confdefs.h. */ 4429#ifdef __STDC__ 4430# include <limits.h> 4431#else 4432# include <assert.h> 4433#endif 4434 Syntax error 4435_ACEOF 4436if ac_fn_c_try_cpp "$LINENO"; then : 4437 4438else 4439 # Broken: fails on valid input. 4440continue 4441fi 4442rm -f conftest.err conftest.i conftest.$ac_ext 4443 4444 # OK, works on sane cases. Now check whether nonexistent headers 4445 # can be detected and how. 4446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4447/* end confdefs.h. */ 4448#include <ac_nonexistent.h> 4449_ACEOF 4450if ac_fn_c_try_cpp "$LINENO"; then : 4451 # Broken: success on invalid input. 4452continue 4453else 4454 # Passes both tests. 4455ac_preproc_ok=: 4456break 4457fi 4458rm -f conftest.err conftest.i conftest.$ac_ext 4459 4460done 4461# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4462rm -f conftest.i conftest.err conftest.$ac_ext 4463if $ac_preproc_ok; then : 4464 4465else 4466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4467$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4468as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4469See \`config.log' for more details" "$LINENO" 5; } 4470fi 4471 4472ac_ext=c 4473ac_cpp='$CPP $CPPFLAGS' 4474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4476ac_compiler_gnu=$ac_cv_c_compiler_gnu 4477 4478 4479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4480$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4481if ${ac_cv_path_GREP+:} false; then : 4482 $as_echo_n "(cached) " >&6 4483else 4484 if test -z "$GREP"; then 4485 ac_path_GREP_found=false 4486 # Loop through the user's path and test for each of PROGNAME-LIST 4487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4488for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4489do 4490 IFS=$as_save_IFS 4491 test -z "$as_dir" && as_dir=. 4492 for ac_prog in grep ggrep; do 4493 for ac_exec_ext in '' $ac_executable_extensions; do 4494 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4495 as_fn_executable_p "$ac_path_GREP" || continue 4496# Check for GNU ac_path_GREP and select it if it is found. 4497 # Check for GNU $ac_path_GREP 4498case `"$ac_path_GREP" --version 2>&1` in 4499*GNU*) 4500 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4501*) 4502 ac_count=0 4503 $as_echo_n 0123456789 >"conftest.in" 4504 while : 4505 do 4506 cat "conftest.in" "conftest.in" >"conftest.tmp" 4507 mv "conftest.tmp" "conftest.in" 4508 cp "conftest.in" "conftest.nl" 4509 $as_echo 'GREP' >> "conftest.nl" 4510 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4511 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4512 as_fn_arith $ac_count + 1 && ac_count=$as_val 4513 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4514 # Best one so far, save it but keep looking for a better one 4515 ac_cv_path_GREP="$ac_path_GREP" 4516 ac_path_GREP_max=$ac_count 4517 fi 4518 # 10*(2^10) chars as input seems more than enough 4519 test $ac_count -gt 10 && break 4520 done 4521 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4522esac 4523 4524 $ac_path_GREP_found && break 3 4525 done 4526 done 4527 done 4528IFS=$as_save_IFS 4529 if test -z "$ac_cv_path_GREP"; then 4530 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4531 fi 4532else 4533 ac_cv_path_GREP=$GREP 4534fi 4535 4536fi 4537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4538$as_echo "$ac_cv_path_GREP" >&6; } 4539 GREP="$ac_cv_path_GREP" 4540 4541 4542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4543$as_echo_n "checking for egrep... " >&6; } 4544if ${ac_cv_path_EGREP+:} false; then : 4545 $as_echo_n "(cached) " >&6 4546else 4547 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4548 then ac_cv_path_EGREP="$GREP -E" 4549 else 4550 if test -z "$EGREP"; then 4551 ac_path_EGREP_found=false 4552 # Loop through the user's path and test for each of PROGNAME-LIST 4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4554for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4555do 4556 IFS=$as_save_IFS 4557 test -z "$as_dir" && as_dir=. 4558 for ac_prog in egrep; do 4559 for ac_exec_ext in '' $ac_executable_extensions; do 4560 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4561 as_fn_executable_p "$ac_path_EGREP" || continue 4562# Check for GNU ac_path_EGREP and select it if it is found. 4563 # Check for GNU $ac_path_EGREP 4564case `"$ac_path_EGREP" --version 2>&1` in 4565*GNU*) 4566 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4567*) 4568 ac_count=0 4569 $as_echo_n 0123456789 >"conftest.in" 4570 while : 4571 do 4572 cat "conftest.in" "conftest.in" >"conftest.tmp" 4573 mv "conftest.tmp" "conftest.in" 4574 cp "conftest.in" "conftest.nl" 4575 $as_echo 'EGREP' >> "conftest.nl" 4576 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4577 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4578 as_fn_arith $ac_count + 1 && ac_count=$as_val 4579 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4580 # Best one so far, save it but keep looking for a better one 4581 ac_cv_path_EGREP="$ac_path_EGREP" 4582 ac_path_EGREP_max=$ac_count 4583 fi 4584 # 10*(2^10) chars as input seems more than enough 4585 test $ac_count -gt 10 && break 4586 done 4587 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4588esac 4589 4590 $ac_path_EGREP_found && break 3 4591 done 4592 done 4593 done 4594IFS=$as_save_IFS 4595 if test -z "$ac_cv_path_EGREP"; then 4596 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4597 fi 4598else 4599 ac_cv_path_EGREP=$EGREP 4600fi 4601 4602 fi 4603fi 4604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4605$as_echo "$ac_cv_path_EGREP" >&6; } 4606 EGREP="$ac_cv_path_EGREP" 4607 4608 4609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4610$as_echo_n "checking for ANSI C header files... " >&6; } 4611if ${ac_cv_header_stdc+:} false; then : 4612 $as_echo_n "(cached) " >&6 4613else 4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4615/* end confdefs.h. */ 4616#include <stdlib.h> 4617#include <stdarg.h> 4618#include <string.h> 4619#include <float.h> 4620 4621int 4622main () 4623{ 4624 4625 ; 4626 return 0; 4627} 4628_ACEOF 4629if ac_fn_c_try_compile "$LINENO"; then : 4630 ac_cv_header_stdc=yes 4631else 4632 ac_cv_header_stdc=no 4633fi 4634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4635 4636if test $ac_cv_header_stdc = yes; then 4637 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4639/* end confdefs.h. */ 4640#include <string.h> 4641 4642_ACEOF 4643if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4644 $EGREP "memchr" >/dev/null 2>&1; then : 4645 4646else 4647 ac_cv_header_stdc=no 4648fi 4649rm -f conftest* 4650 4651fi 4652 4653if test $ac_cv_header_stdc = yes; then 4654 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4656/* end confdefs.h. */ 4657#include <stdlib.h> 4658 4659_ACEOF 4660if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4661 $EGREP "free" >/dev/null 2>&1; then : 4662 4663else 4664 ac_cv_header_stdc=no 4665fi 4666rm -f conftest* 4667 4668fi 4669 4670if test $ac_cv_header_stdc = yes; then 4671 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4672 if test "$cross_compiling" = yes; then : 4673 : 4674else 4675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4676/* end confdefs.h. */ 4677#include <ctype.h> 4678#include <stdlib.h> 4679#if ((' ' & 0x0FF) == 0x020) 4680# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4681# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4682#else 4683# define ISLOWER(c) \ 4684 (('a' <= (c) && (c) <= 'i') \ 4685 || ('j' <= (c) && (c) <= 'r') \ 4686 || ('s' <= (c) && (c) <= 'z')) 4687# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4688#endif 4689 4690#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4691int 4692main () 4693{ 4694 int i; 4695 for (i = 0; i < 256; i++) 4696 if (XOR (islower (i), ISLOWER (i)) 4697 || toupper (i) != TOUPPER (i)) 4698 return 2; 4699 return 0; 4700} 4701_ACEOF 4702if ac_fn_c_try_run "$LINENO"; then : 4703 4704else 4705 ac_cv_header_stdc=no 4706fi 4707rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4708 conftest.$ac_objext conftest.beam conftest.$ac_ext 4709fi 4710 4711fi 4712fi 4713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4714$as_echo "$ac_cv_header_stdc" >&6; } 4715if test $ac_cv_header_stdc = yes; then 4716 4717$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4718 4719fi 4720 4721# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4722for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4723 inttypes.h stdint.h unistd.h 4724do : 4725 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4726ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4727" 4728if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4729 cat >>confdefs.h <<_ACEOF 4730#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4731_ACEOF 4732 4733fi 4734 4735done 4736 4737 4738 4739 apu_have_crypto=0 4740 apu_have_openssl=0 4741 apu_have_nss=0 4742 4743 old_libs="$LIBS" 4744 old_cppflags="$CPPFLAGS" 4745 old_ldflags="$LDFLAGS" 4746 4747 4748# Check whether --with-crypto was given. 4749if test "${with_crypto+set}" = set; then : 4750 withval=$with_crypto; 4751 cryptolibs="openssl nss" 4752 4753 if test "$withval" = "yes"; then 4754 4755 crypto_library_enabled=0 4756 for cryptolib in $cryptolibs; do 4757 eval v=\$with_$cryptolib 4758 if test "$v" != "" -a "$v" != "no"; then 4759 crypto_library_enabled=1 4760 fi 4761 done 4762 4763 if test "$crypto_library_enabled" = "0"; then 4764 for cryptolib in $cryptolibs; do 4765 eval v=\$with_$cryptolib 4766 if test "$v" != "no"; then 4767 eval with_$cryptolib=yes 4768 crypto_library_enabled=1 4769 fi 4770 done 4771 if test "$crypto_library_enabled" = "1"; then 4772 { $as_echo "$as_me:${as_lineno-$LINENO}: Crypto was requested but no crypto library was found; autodetecting possible libraries" >&5 4773$as_echo "$as_me: Crypto was requested but no crypto library was found; autodetecting possible libraries" >&6;} 4774 else 4775 as_fn_error $? "Crypto was requested but all possible crypto libraries were disabled." "$LINENO" 5 4776 fi 4777 fi 4778 4779 4780 openssl_have_headers=0 4781 openssl_have_libs=0 4782 4783 old_libs="$LIBS" 4784 old_cppflags="$CPPFLAGS" 4785 old_ldflags="$LDFLAGS" 4786 4787 4788# Check whether --with-openssl was given. 4789if test "${with_openssl+set}" = set; then : 4790 withval=$with_openssl; 4791 if test "$withval" = "yes"; then 4792 for ac_header in openssl/x509.h 4793do : 4794 ac_fn_c_check_header_mongrel "$LINENO" "openssl/x509.h" "ac_cv_header_openssl_x509_h" "$ac_includes_default" 4795if test "x$ac_cv_header_openssl_x509_h" = xyes; then : 4796 cat >>confdefs.h <<_ACEOF 4797#define HAVE_OPENSSL_X509_H 1 4798_ACEOF 4799 openssl_have_headers=1 4800fi 4801 4802done 4803 4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BN_init in -lcrypto" >&5 4805$as_echo_n "checking for BN_init in -lcrypto... " >&6; } 4806if ${ac_cv_lib_crypto_BN_init+:} false; then : 4807 $as_echo_n "(cached) " >&6 4808else 4809 ac_check_lib_save_LIBS=$LIBS 4810LIBS="-lcrypto $LIBS" 4811cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4812/* end confdefs.h. */ 4813 4814/* Override any GCC internal prototype to avoid an error. 4815 Use char because int might match the return type of a GCC 4816 builtin and then its argument prototype would still apply. */ 4817#ifdef __cplusplus 4818extern "C" 4819#endif 4820char BN_init (); 4821int 4822main () 4823{ 4824return BN_init (); 4825 ; 4826 return 0; 4827} 4828_ACEOF 4829if ac_fn_c_try_link "$LINENO"; then : 4830 ac_cv_lib_crypto_BN_init=yes 4831else 4832 ac_cv_lib_crypto_BN_init=no 4833fi 4834rm -f core conftest.err conftest.$ac_objext \ 4835 conftest$ac_exeext conftest.$ac_ext 4836LIBS=$ac_check_lib_save_LIBS 4837fi 4838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BN_init" >&5 4839$as_echo "$ac_cv_lib_crypto_BN_init" >&6; } 4840if test "x$ac_cv_lib_crypto_BN_init" = xyes; then : 4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_accept in -lssl" >&5 4842$as_echo_n "checking for SSL_accept in -lssl... " >&6; } 4843if ${ac_cv_lib_ssl_SSL_accept+:} false; then : 4844 $as_echo_n "(cached) " >&6 4845else 4846 ac_check_lib_save_LIBS=$LIBS 4847LIBS="-lssl -lcrypto $LIBS" 4848cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4849/* end confdefs.h. */ 4850 4851/* Override any GCC internal prototype to avoid an error. 4852 Use char because int might match the return type of a GCC 4853 builtin and then its argument prototype would still apply. */ 4854#ifdef __cplusplus 4855extern "C" 4856#endif 4857char SSL_accept (); 4858int 4859main () 4860{ 4861return SSL_accept (); 4862 ; 4863 return 0; 4864} 4865_ACEOF 4866if ac_fn_c_try_link "$LINENO"; then : 4867 ac_cv_lib_ssl_SSL_accept=yes 4868else 4869 ac_cv_lib_ssl_SSL_accept=no 4870fi 4871rm -f core conftest.err conftest.$ac_objext \ 4872 conftest$ac_exeext conftest.$ac_ext 4873LIBS=$ac_check_lib_save_LIBS 4874fi 4875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_accept" >&5 4876$as_echo "$ac_cv_lib_ssl_SSL_accept" >&6; } 4877if test "x$ac_cv_lib_ssl_SSL_accept" = xyes; then : 4878 openssl_have_libs=1 4879fi 4880 4881fi 4882 4883 if test "$openssl_have_headers" != "0" && test "$openssl_have_libs" != "0"; then 4884 apu_have_openssl=1 4885 fi 4886 elif test "$withval" = "no"; then 4887 apu_have_openssl=0 4888 else 4889 4890 openssl_CPPFLAGS="-I$withval/include" 4891 openssl_LDFLAGS="-L$withval/lib " 4892 4893 4894 if test "x$CPPFLAGS" = "x"; then 4895 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$openssl_CPPFLAGS\"" 4896 CPPFLAGS="$openssl_CPPFLAGS" 4897 else 4898 apr_addto_bugger="$openssl_CPPFLAGS" 4899 for i in $apr_addto_bugger; do 4900 apr_addto_duplicate="0" 4901 for j in $CPPFLAGS; do 4902 if test "x$i" = "x$j"; then 4903 apr_addto_duplicate="1" 4904 break 4905 fi 4906 done 4907 if test $apr_addto_duplicate = "0"; then 4908 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 4909 CPPFLAGS="$CPPFLAGS $i" 4910 fi 4911 done 4912 fi 4913 4914 4915 if test "x$LDFLAGS" = "x"; then 4916 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$openssl_LDFLAGS\"" 4917 LDFLAGS="$openssl_LDFLAGS" 4918 else 4919 apr_addto_bugger="$openssl_LDFLAGS" 4920 for i in $apr_addto_bugger; do 4921 apr_addto_duplicate="0" 4922 for j in $LDFLAGS; do 4923 if test "x$i" = "x$j"; then 4924 apr_addto_duplicate="1" 4925 break 4926 fi 4927 done 4928 if test $apr_addto_duplicate = "0"; then 4929 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 4930 LDFLAGS="$LDFLAGS $i" 4931 fi 4932 done 4933 fi 4934 4935 4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl in $withval" >&5 4937$as_echo "$as_me: checking for openssl in $withval" >&6;} 4938 for ac_header in openssl/x509.h 4939do : 4940 ac_fn_c_check_header_mongrel "$LINENO" "openssl/x509.h" "ac_cv_header_openssl_x509_h" "$ac_includes_default" 4941if test "x$ac_cv_header_openssl_x509_h" = xyes; then : 4942 cat >>confdefs.h <<_ACEOF 4943#define HAVE_OPENSSL_X509_H 1 4944_ACEOF 4945 openssl_have_headers=1 4946fi 4947 4948done 4949 4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BN_init in -lcrypto" >&5 4951$as_echo_n "checking for BN_init in -lcrypto... " >&6; } 4952if ${ac_cv_lib_crypto_BN_init+:} false; then : 4953 $as_echo_n "(cached) " >&6 4954else 4955 ac_check_lib_save_LIBS=$LIBS 4956LIBS="-lcrypto $LIBS" 4957cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4958/* end confdefs.h. */ 4959 4960/* Override any GCC internal prototype to avoid an error. 4961 Use char because int might match the return type of a GCC 4962 builtin and then its argument prototype would still apply. */ 4963#ifdef __cplusplus 4964extern "C" 4965#endif 4966char BN_init (); 4967int 4968main () 4969{ 4970return BN_init (); 4971 ; 4972 return 0; 4973} 4974_ACEOF 4975if ac_fn_c_try_link "$LINENO"; then : 4976 ac_cv_lib_crypto_BN_init=yes 4977else 4978 ac_cv_lib_crypto_BN_init=no 4979fi 4980rm -f core conftest.err conftest.$ac_objext \ 4981 conftest$ac_exeext conftest.$ac_ext 4982LIBS=$ac_check_lib_save_LIBS 4983fi 4984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BN_init" >&5 4985$as_echo "$ac_cv_lib_crypto_BN_init" >&6; } 4986if test "x$ac_cv_lib_crypto_BN_init" = xyes; then : 4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_accept in -lssl" >&5 4988$as_echo_n "checking for SSL_accept in -lssl... " >&6; } 4989if ${ac_cv_lib_ssl_SSL_accept+:} false; then : 4990 $as_echo_n "(cached) " >&6 4991else 4992 ac_check_lib_save_LIBS=$LIBS 4993LIBS="-lssl -lcrypto $LIBS" 4994cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4995/* end confdefs.h. */ 4996 4997/* Override any GCC internal prototype to avoid an error. 4998 Use char because int might match the return type of a GCC 4999 builtin and then its argument prototype would still apply. */ 5000#ifdef __cplusplus 5001extern "C" 5002#endif 5003char SSL_accept (); 5004int 5005main () 5006{ 5007return SSL_accept (); 5008 ; 5009 return 0; 5010} 5011_ACEOF 5012if ac_fn_c_try_link "$LINENO"; then : 5013 ac_cv_lib_ssl_SSL_accept=yes 5014else 5015 ac_cv_lib_ssl_SSL_accept=no 5016fi 5017rm -f core conftest.err conftest.$ac_objext \ 5018 conftest$ac_exeext conftest.$ac_ext 5019LIBS=$ac_check_lib_save_LIBS 5020fi 5021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_accept" >&5 5022$as_echo "$ac_cv_lib_ssl_SSL_accept" >&6; } 5023if test "x$ac_cv_lib_ssl_SSL_accept" = xyes; then : 5024 openssl_have_libs=1 5025fi 5026 5027fi 5028 5029 if test "$openssl_have_headers" != "0" && test "$openssl_have_libs" != "0"; then 5030 apu_have_openssl=1 5031 5032 if test "x$APRUTIL_LDFLAGS" = "x"; then 5033 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$withval/lib\"" 5034 APRUTIL_LDFLAGS="-L$withval/lib" 5035 else 5036 apr_addto_bugger="-L$withval/lib" 5037 for i in $apr_addto_bugger; do 5038 apr_addto_duplicate="0" 5039 for j in $APRUTIL_LDFLAGS; do 5040 if test "x$i" = "x$j"; then 5041 apr_addto_duplicate="1" 5042 break 5043 fi 5044 done 5045 if test $apr_addto_duplicate = "0"; then 5046 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 5047 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 5048 fi 5049 done 5050 fi 5051 5052 5053 if test "x$APRUTIL_INCLUDES" = "x"; then 5054 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$withval/include\"" 5055 APRUTIL_INCLUDES="-I$withval/include" 5056 else 5057 apr_addto_bugger="-I$withval/include" 5058 for i in $apr_addto_bugger; do 5059 apr_addto_duplicate="0" 5060 for j in $APRUTIL_INCLUDES; do 5061 if test "x$i" = "x$j"; then 5062 apr_addto_duplicate="1" 5063 break 5064 fi 5065 done 5066 if test $apr_addto_duplicate = "0"; then 5067 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 5068 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 5069 fi 5070 done 5071 fi 5072 5073 fi 5074 5075 if test "$apu_have_openssl" != "1"; then 5076 for ac_header in openssl/x509.h 5077do : 5078 ac_fn_c_check_header_mongrel "$LINENO" "openssl/x509.h" "ac_cv_header_openssl_x509_h" "$ac_includes_default" 5079if test "x$ac_cv_header_openssl_x509_h" = xyes; then : 5080 cat >>confdefs.h <<_ACEOF 5081#define HAVE_OPENSSL_X509_H 1 5082_ACEOF 5083 openssl_have_headers=1 5084fi 5085 5086done 5087 5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BN_init in -lcrypto" >&5 5089$as_echo_n "checking for BN_init in -lcrypto... " >&6; } 5090if ${ac_cv_lib_crypto_BN_init+:} false; then : 5091 $as_echo_n "(cached) " >&6 5092else 5093 ac_check_lib_save_LIBS=$LIBS 5094LIBS="-lcrypto $LIBS" 5095cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5096/* end confdefs.h. */ 5097 5098/* Override any GCC internal prototype to avoid an error. 5099 Use char because int might match the return type of a GCC 5100 builtin and then its argument prototype would still apply. */ 5101#ifdef __cplusplus 5102extern "C" 5103#endif 5104char BN_init (); 5105int 5106main () 5107{ 5108return BN_init (); 5109 ; 5110 return 0; 5111} 5112_ACEOF 5113if ac_fn_c_try_link "$LINENO"; then : 5114 ac_cv_lib_crypto_BN_init=yes 5115else 5116 ac_cv_lib_crypto_BN_init=no 5117fi 5118rm -f core conftest.err conftest.$ac_objext \ 5119 conftest$ac_exeext conftest.$ac_ext 5120LIBS=$ac_check_lib_save_LIBS 5121fi 5122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BN_init" >&5 5123$as_echo "$ac_cv_lib_crypto_BN_init" >&6; } 5124if test "x$ac_cv_lib_crypto_BN_init" = xyes; then : 5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_accept in -lssl" >&5 5126$as_echo_n "checking for SSL_accept in -lssl... " >&6; } 5127if ${ac_cv_lib_ssl_SSL_accept+:} false; then : 5128 $as_echo_n "(cached) " >&6 5129else 5130 ac_check_lib_save_LIBS=$LIBS 5131LIBS="-lssl -lcrypto $LIBS" 5132cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5133/* end confdefs.h. */ 5134 5135/* Override any GCC internal prototype to avoid an error. 5136 Use char because int might match the return type of a GCC 5137 builtin and then its argument prototype would still apply. */ 5138#ifdef __cplusplus 5139extern "C" 5140#endif 5141char SSL_accept (); 5142int 5143main () 5144{ 5145return SSL_accept (); 5146 ; 5147 return 0; 5148} 5149_ACEOF 5150if ac_fn_c_try_link "$LINENO"; then : 5151 ac_cv_lib_ssl_SSL_accept=yes 5152else 5153 ac_cv_lib_ssl_SSL_accept=no 5154fi 5155rm -f core conftest.err conftest.$ac_objext \ 5156 conftest$ac_exeext conftest.$ac_ext 5157LIBS=$ac_check_lib_save_LIBS 5158fi 5159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_accept" >&5 5160$as_echo "$ac_cv_lib_ssl_SSL_accept" >&6; } 5161if test "x$ac_cv_lib_ssl_SSL_accept" = xyes; then : 5162 openssl_have_libs=1 5163fi 5164 5165fi 5166 5167 if test "$openssl_have_headers" != "0" && test "$openssl_have_libs" != "0"; then 5168 apu_have_openssl=1 5169 5170 if test "x$APRUTIL_LDFLAGS" = "x"; then 5171 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$withval/lib\"" 5172 APRUTIL_LDFLAGS="-L$withval/lib" 5173 else 5174 apr_addto_bugger="-L$withval/lib" 5175 for i in $apr_addto_bugger; do 5176 apr_addto_duplicate="0" 5177 for j in $APRUTIL_LDFLAGS; do 5178 if test "x$i" = "x$j"; then 5179 apr_addto_duplicate="1" 5180 break 5181 fi 5182 done 5183 if test $apr_addto_duplicate = "0"; then 5184 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 5185 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 5186 fi 5187 done 5188 fi 5189 5190 5191 if test "x$APRUTIL_INCLUDES" = "x"; then 5192 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$withval/include\"" 5193 APRUTIL_INCLUDES="-I$withval/include" 5194 else 5195 apr_addto_bugger="-I$withval/include" 5196 for i in $apr_addto_bugger; do 5197 apr_addto_duplicate="0" 5198 for j in $APRUTIL_INCLUDES; do 5199 if test "x$i" = "x$j"; then 5200 apr_addto_duplicate="1" 5201 break 5202 fi 5203 done 5204 if test $apr_addto_duplicate = "0"; then 5205 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 5206 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 5207 fi 5208 done 5209 fi 5210 5211 fi 5212 fi 5213 5214 ac_fn_c_check_decl "$LINENO" "EVP_PKEY_CTX_new" "ac_cv_have_decl_EVP_PKEY_CTX_new" "#include <openssl/evp.h> 5215" 5216if test "x$ac_cv_have_decl_EVP_PKEY_CTX_new" = xyes; then : 5217 ac_have_decl=1 5218else 5219 ac_have_decl=0 5220fi 5221 5222cat >>confdefs.h <<_ACEOF 5223#define HAVE_DECL_EVP_PKEY_CTX_NEW $ac_have_decl 5224_ACEOF 5225 5226 5227 fi 5228 5229else 5230 5231 apu_have_openssl=0 5232 5233fi 5234 5235 5236 5237 5238 if test "$apu_have_openssl" = "1"; then 5239 5240 if test "x$LDADD_crypto_openssl" = "x"; then 5241 test "x$silent" != "xyes" && echo " setting LDADD_crypto_openssl to \"$openssl_LDFLAGS -lssl -lcrypto\"" 5242 LDADD_crypto_openssl="$openssl_LDFLAGS -lssl -lcrypto" 5243 else 5244 apr_addto_bugger="$openssl_LDFLAGS -lssl -lcrypto" 5245 for i in $apr_addto_bugger; do 5246 apr_addto_duplicate="0" 5247 for j in $LDADD_crypto_openssl; do 5248 if test "x$i" = "x$j"; then 5249 apr_addto_duplicate="1" 5250 break 5251 fi 5252 done 5253 if test $apr_addto_duplicate = "0"; then 5254 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_crypto_openssl" 5255 LDADD_crypto_openssl="$LDADD_crypto_openssl $i" 5256 fi 5257 done 5258 fi 5259 5260 apu_have_crypto=1 5261 5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const input buffers in OpenSSL" >&5 5263$as_echo_n "checking for const input buffers in OpenSSL... " >&6; } 5264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5265/* end confdefs.h. */ 5266#include <openssl/rsa.h> 5267int 5268main () 5269{ 5270 const unsigned char * buf; 5271 unsigned char * outbuf; 5272 RSA rsa; 5273 5274 RSA_private_decrypt(1, 5275 buf, 5276 outbuf, 5277 &rsa, 5278 RSA_PKCS1_PADDING); 5279 5280 5281 ; 5282 return 0; 5283} 5284_ACEOF 5285if ac_fn_c_try_compile "$LINENO"; then : 5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5287$as_echo "yes" >&6; } 5288 5289$as_echo "#define CRYPTO_OPENSSL_CONST_BUFFERS 1" >>confdefs.h 5290 5291else 5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5293$as_echo "no" >&6; } 5294fi 5295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5296 5297 fi 5298 5299 5300 5301 LIBS="$old_libs" 5302 CPPFLAGS="$old_cppflags" 5303 LDFLAGS="$old_ldflags" 5304 5305 5306 nss_have_libs=0 5307 5308 old_libs="$LIBS" 5309 old_cppflags="$CPPFLAGS" 5310 old_ldflags="$LDFLAGS" 5311 5312 5313# Check whether --with-nss was given. 5314if test "${with_nss+set}" = set; then : 5315 withval=$with_nss; 5316 if test "$withval" = "yes"; then 5317 if test -n "$ac_tool_prefix"; then 5318 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 5319set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 5320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5321$as_echo_n "checking for $ac_word... " >&6; } 5322if ${ac_cv_path_PKG_CONFIG+:} false; then : 5323 $as_echo_n "(cached) " >&6 5324else 5325 case $PKG_CONFIG in 5326 [\\/]* | ?:[\\/]*) 5327 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5328 ;; 5329 *) 5330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5331for as_dir in $PATH 5332do 5333 IFS=$as_save_IFS 5334 test -z "$as_dir" && as_dir=. 5335 for ac_exec_ext in '' $ac_executable_extensions; do 5336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5337 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5339 break 2 5340 fi 5341done 5342 done 5343IFS=$as_save_IFS 5344 5345 ;; 5346esac 5347fi 5348PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5349if test -n "$PKG_CONFIG"; then 5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 5351$as_echo "$PKG_CONFIG" >&6; } 5352else 5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5354$as_echo "no" >&6; } 5355fi 5356 5357 5358fi 5359if test -z "$ac_cv_path_PKG_CONFIG"; then 5360 ac_pt_PKG_CONFIG=$PKG_CONFIG 5361 # Extract the first word of "pkg-config", so it can be a program name with args. 5362set dummy pkg-config; ac_word=$2 5363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5364$as_echo_n "checking for $ac_word... " >&6; } 5365if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 5366 $as_echo_n "(cached) " >&6 5367else 5368 case $ac_pt_PKG_CONFIG in 5369 [\\/]* | ?:[\\/]*) 5370 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 5371 ;; 5372 *) 5373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5374for as_dir in $PATH 5375do 5376 IFS=$as_save_IFS 5377 test -z "$as_dir" && as_dir=. 5378 for ac_exec_ext in '' $ac_executable_extensions; do 5379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5380 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5382 break 2 5383 fi 5384done 5385 done 5386IFS=$as_save_IFS 5387 5388 ;; 5389esac 5390fi 5391ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 5392if test -n "$ac_pt_PKG_CONFIG"; then 5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 5394$as_echo "$ac_pt_PKG_CONFIG" >&6; } 5395else 5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5397$as_echo "no" >&6; } 5398fi 5399 5400 if test "x$ac_pt_PKG_CONFIG" = x; then 5401 PKG_CONFIG="" 5402 else 5403 case $cross_compiling:$ac_tool_warned in 5404yes:) 5405{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5406$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5407ac_tool_warned=yes ;; 5408esac 5409 PKG_CONFIG=$ac_pt_PKG_CONFIG 5410 fi 5411else 5412 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5413fi 5414 5415 if test -n "$PKG_CONFIG"; then 5416 nss_CPPFLAGS=`$PKG_CONFIG --cflags-only-I nss` 5417 nss_LDFLAGS=`$PKG_CONFIG --libs nss` 5418 5419 if test "x$CPPFLAGS" = "x"; then 5420 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$nss_CPPFLAGS\"" 5421 CPPFLAGS="$nss_CPPFLAGS" 5422 else 5423 apr_addto_bugger="$nss_CPPFLAGS" 5424 for i in $apr_addto_bugger; do 5425 apr_addto_duplicate="0" 5426 for j in $CPPFLAGS; do 5427 if test "x$i" = "x$j"; then 5428 apr_addto_duplicate="1" 5429 break 5430 fi 5431 done 5432 if test $apr_addto_duplicate = "0"; then 5433 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 5434 CPPFLAGS="$CPPFLAGS $i" 5435 fi 5436 done 5437 fi 5438 5439 5440 if test "x$LDFLAGS" = "x"; then 5441 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$nss_LDFLAGS\"" 5442 LDFLAGS="$nss_LDFLAGS" 5443 else 5444 apr_addto_bugger="$nss_LDFLAGS" 5445 for i in $apr_addto_bugger; do 5446 apr_addto_duplicate="0" 5447 for j in $LDFLAGS; do 5448 if test "x$i" = "x$j"; then 5449 apr_addto_duplicate="1" 5450 break 5451 fi 5452 done 5453 if test $apr_addto_duplicate = "0"; then 5454 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 5455 LDFLAGS="$LDFLAGS $i" 5456 fi 5457 done 5458 fi 5459 5460 fi 5461 nss_have_prerrorh=0 5462 nss_have_nssh=0 5463 nss_have_pk11pubh=0 5464 for ac_header in prerror.h 5465do : 5466 ac_fn_c_check_header_mongrel "$LINENO" "prerror.h" "ac_cv_header_prerror_h" "$ac_includes_default" 5467if test "x$ac_cv_header_prerror_h" = xyes; then : 5468 cat >>confdefs.h <<_ACEOF 5469#define HAVE_PRERROR_H 1 5470_ACEOF 5471 nss_have_prerrorh=1 5472fi 5473 5474done 5475 5476 for ac_header in nss/nss.h nss.h 5477do : 5478 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5479ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5480if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5481 cat >>confdefs.h <<_ACEOF 5482#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5483_ACEOF 5484 nss_have_nssh=1 5485fi 5486 5487done 5488 5489 for ac_header in nss/pk11pub.h pk11pub.h 5490do : 5491 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5492ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5493if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5494 cat >>confdefs.h <<_ACEOF 5495#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5496_ACEOF 5497 nss_have_pk11pubh=1 5498fi 5499 5500done 5501 5502 nss_have_headers=${nss_have_prerrorh}${nss_have_nssh}${nss_have_pk11pubh} 5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Initialize in -lnspr4" >&5 5504$as_echo_n "checking for PR_Initialize in -lnspr4... " >&6; } 5505if ${ac_cv_lib_nspr4_PR_Initialize+:} false; then : 5506 $as_echo_n "(cached) " >&6 5507else 5508 ac_check_lib_save_LIBS=$LIBS 5509LIBS="-lnspr4 $LIBS" 5510cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5511/* end confdefs.h. */ 5512 5513/* Override any GCC internal prototype to avoid an error. 5514 Use char because int might match the return type of a GCC 5515 builtin and then its argument prototype would still apply. */ 5516#ifdef __cplusplus 5517extern "C" 5518#endif 5519char PR_Initialize (); 5520int 5521main () 5522{ 5523return PR_Initialize (); 5524 ; 5525 return 0; 5526} 5527_ACEOF 5528if ac_fn_c_try_link "$LINENO"; then : 5529 ac_cv_lib_nspr4_PR_Initialize=yes 5530else 5531 ac_cv_lib_nspr4_PR_Initialize=no 5532fi 5533rm -f core conftest.err conftest.$ac_objext \ 5534 conftest$ac_exeext conftest.$ac_ext 5535LIBS=$ac_check_lib_save_LIBS 5536fi 5537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr4_PR_Initialize" >&5 5538$as_echo "$ac_cv_lib_nspr4_PR_Initialize" >&6; } 5539if test "x$ac_cv_lib_nspr4_PR_Initialize" = xyes; then : 5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PK11_CreatePBEV2AlgorithmID in -lnss3" >&5 5541$as_echo_n "checking for PK11_CreatePBEV2AlgorithmID in -lnss3... " >&6; } 5542if ${ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID+:} false; then : 5543 $as_echo_n "(cached) " >&6 5544else 5545 ac_check_lib_save_LIBS=$LIBS 5546LIBS="-lnss3 -lnspr4 $LIBS" 5547cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5548/* end confdefs.h. */ 5549 5550/* Override any GCC internal prototype to avoid an error. 5551 Use char because int might match the return type of a GCC 5552 builtin and then its argument prototype would still apply. */ 5553#ifdef __cplusplus 5554extern "C" 5555#endif 5556char PK11_CreatePBEV2AlgorithmID (); 5557int 5558main () 5559{ 5560return PK11_CreatePBEV2AlgorithmID (); 5561 ; 5562 return 0; 5563} 5564_ACEOF 5565if ac_fn_c_try_link "$LINENO"; then : 5566 ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID=yes 5567else 5568 ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID=no 5569fi 5570rm -f core conftest.err conftest.$ac_objext \ 5571 conftest$ac_exeext conftest.$ac_ext 5572LIBS=$ac_check_lib_save_LIBS 5573fi 5574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID" >&5 5575$as_echo "$ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID" >&6; } 5576if test "x$ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID" = xyes; then : 5577 nss_have_libs=1 5578fi 5579 5580fi 5581 5582 if test "$nss_have_headers" = "111" && test "$nss_have_libs" != "0"; then 5583 apu_have_nss=1 5584 fi 5585 elif test "$withval" = "no"; then 5586 apu_have_nss=0 5587 elif test "x$withval" != "x"; then 5588 5589 nss_CPPFLAGS="-I$withval/include/nss -I$withval/include/nss3 -I$withval/include/nspr -I$withval/include/nspr4 -I$withval/include -I$withval/../public" 5590 nss_LDFLAGS="-L$withval/lib " 5591 5592 5593 if test "x$CPPFLAGS" = "x"; then 5594 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$nss_CPPFLAGS\"" 5595 CPPFLAGS="$nss_CPPFLAGS" 5596 else 5597 apr_addto_bugger="$nss_CPPFLAGS" 5598 for i in $apr_addto_bugger; do 5599 apr_addto_duplicate="0" 5600 for j in $CPPFLAGS; do 5601 if test "x$i" = "x$j"; then 5602 apr_addto_duplicate="1" 5603 break 5604 fi 5605 done 5606 if test $apr_addto_duplicate = "0"; then 5607 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 5608 CPPFLAGS="$CPPFLAGS $i" 5609 fi 5610 done 5611 fi 5612 5613 5614 if test "x$LDFLAGS" = "x"; then 5615 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$nss_LDFLAGS\"" 5616 LDFLAGS="$nss_LDFLAGS" 5617 else 5618 apr_addto_bugger="$nss_LDFLAGS" 5619 for i in $apr_addto_bugger; do 5620 apr_addto_duplicate="0" 5621 for j in $LDFLAGS; do 5622 if test "x$i" = "x$j"; then 5623 apr_addto_duplicate="1" 5624 break 5625 fi 5626 done 5627 if test $apr_addto_duplicate = "0"; then 5628 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 5629 LDFLAGS="$LDFLAGS $i" 5630 fi 5631 done 5632 fi 5633 5634 5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss in $withval" >&5 5636$as_echo "$as_me: checking for nss in $withval" >&6;} 5637 nss_have_prerrorh=0 5638 nss_have_nssh=0 5639 nss_have_pk11pubh=0 5640 for ac_header in prerror.h 5641do : 5642 ac_fn_c_check_header_mongrel "$LINENO" "prerror.h" "ac_cv_header_prerror_h" "$ac_includes_default" 5643if test "x$ac_cv_header_prerror_h" = xyes; then : 5644 cat >>confdefs.h <<_ACEOF 5645#define HAVE_PRERROR_H 1 5646_ACEOF 5647 nss_have_prerrorh=1 5648fi 5649 5650done 5651 5652 for ac_header in nss/nss.h nss.h 5653do : 5654 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5655ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5656if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5657 cat >>confdefs.h <<_ACEOF 5658#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5659_ACEOF 5660 nss_have_nssh=1 5661fi 5662 5663done 5664 5665 for ac_header in nss/pk11pub.h pk11pub.h 5666do : 5667 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5668ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5669if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5670 cat >>confdefs.h <<_ACEOF 5671#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5672_ACEOF 5673 nss_have_pk11pubh=1 5674fi 5675 5676done 5677 5678 nss_have_headers=${nss_have_prerrorh}${nss_have_nssh}${nss_have_pk11pubh} 5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Initialize in -lnspr4" >&5 5680$as_echo_n "checking for PR_Initialize in -lnspr4... " >&6; } 5681if ${ac_cv_lib_nspr4_PR_Initialize+:} false; then : 5682 $as_echo_n "(cached) " >&6 5683else 5684 ac_check_lib_save_LIBS=$LIBS 5685LIBS="-lnspr4 $LIBS" 5686cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5687/* end confdefs.h. */ 5688 5689/* Override any GCC internal prototype to avoid an error. 5690 Use char because int might match the return type of a GCC 5691 builtin and then its argument prototype would still apply. */ 5692#ifdef __cplusplus 5693extern "C" 5694#endif 5695char PR_Initialize (); 5696int 5697main () 5698{ 5699return PR_Initialize (); 5700 ; 5701 return 0; 5702} 5703_ACEOF 5704if ac_fn_c_try_link "$LINENO"; then : 5705 ac_cv_lib_nspr4_PR_Initialize=yes 5706else 5707 ac_cv_lib_nspr4_PR_Initialize=no 5708fi 5709rm -f core conftest.err conftest.$ac_objext \ 5710 conftest$ac_exeext conftest.$ac_ext 5711LIBS=$ac_check_lib_save_LIBS 5712fi 5713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr4_PR_Initialize" >&5 5714$as_echo "$ac_cv_lib_nspr4_PR_Initialize" >&6; } 5715if test "x$ac_cv_lib_nspr4_PR_Initialize" = xyes; then : 5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PK11_CreatePBEV2AlgorithmID in -lnss3" >&5 5717$as_echo_n "checking for PK11_CreatePBEV2AlgorithmID in -lnss3... " >&6; } 5718if ${ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID+:} false; then : 5719 $as_echo_n "(cached) " >&6 5720else 5721 ac_check_lib_save_LIBS=$LIBS 5722LIBS="-lnss3 -lnspr4 $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 PK11_CreatePBEV2AlgorithmID (); 5733int 5734main () 5735{ 5736return PK11_CreatePBEV2AlgorithmID (); 5737 ; 5738 return 0; 5739} 5740_ACEOF 5741if ac_fn_c_try_link "$LINENO"; then : 5742 ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID=yes 5743else 5744 ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID=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_nss3_PK11_CreatePBEV2AlgorithmID" >&5 5751$as_echo "$ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID" >&6; } 5752if test "x$ac_cv_lib_nss3_PK11_CreatePBEV2AlgorithmID" = xyes; then : 5753 nss_have_libs=1 5754fi 5755 5756fi 5757 5758 if test "$nss_have_headers" = "111" && test "$nss_have_libs" != "0"; then 5759 apu_have_nss=1 5760 fi 5761 5762 fi 5763 if test "$apu_have_nss" != "0"; then 5764 5765 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 5766 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"$nss_CPPFLAGS\"" 5767 APRUTIL_PRIV_INCLUDES="$nss_CPPFLAGS" 5768 else 5769 apr_addto_bugger="$nss_CPPFLAGS" 5770 for i in $apr_addto_bugger; do 5771 apr_addto_duplicate="0" 5772 for j in $APRUTIL_PRIV_INCLUDES; do 5773 if test "x$i" = "x$j"; then 5774 apr_addto_duplicate="1" 5775 break 5776 fi 5777 done 5778 if test $apr_addto_duplicate = "0"; then 5779 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 5780 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 5781 fi 5782 done 5783 fi 5784 5785 fi 5786 5787else 5788 5789 apu_have_nss=0 5790 5791fi 5792 5793 5794 5795 5796 if test "$apu_have_nss" = "1"; then 5797 5798 if test "x$LDADD_crypto_nss" = "x"; then 5799 test "x$silent" != "xyes" && echo " setting LDADD_crypto_nss to \"$nss_LDFLAGS -lnspr4 -lnss3\"" 5800 LDADD_crypto_nss="$nss_LDFLAGS -lnspr4 -lnss3" 5801 else 5802 apr_addto_bugger="$nss_LDFLAGS -lnspr4 -lnss3" 5803 for i in $apr_addto_bugger; do 5804 apr_addto_duplicate="0" 5805 for j in $LDADD_crypto_nss; do 5806 if test "x$i" = "x$j"; then 5807 apr_addto_duplicate="1" 5808 break 5809 fi 5810 done 5811 if test $apr_addto_duplicate = "0"; then 5812 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_crypto_nss" 5813 LDADD_crypto_nss="$LDADD_crypto_nss $i" 5814 fi 5815 done 5816 fi 5817 5818 apu_have_crypto=1 5819 fi 5820 5821 5822 5823 LIBS="$old_libs" 5824 CPPFLAGS="$old_cppflags" 5825 LDFLAGS="$old_ldflags" 5826 5827 if test "$apu_have_crypto" = "0"; then 5828 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, etc." "$LINENO" 5 5829 fi 5830 fi 5831 5832else 5833 5834 apu_have_crypto=0 5835 5836fi 5837 5838 5839 5840 5841 5842 5843 5844echo $ac_n "${nl}checking for ldap support..." 5845 5846apu_has_ldap="0"; 5847apu_has_ldapssl_client_init="0" 5848apu_has_ldapssl_client_deinit="0" 5849apu_has_ldapssl_add_trusted_cert="0" 5850apu_has_ldap_start_tls_s="0" 5851apu_has_ldapssl_init="0" 5852apu_has_ldap_sslinit="0" 5853apu_has_ldapssl_install_routines="0" 5854apu_has_ldap_openldap="0" 5855apu_has_ldap_solaris="0" 5856apu_has_ldap_novell="0" 5857apu_has_ldap_microsoft="0" 5858apu_has_ldap_netscape="0" 5859apu_has_ldap_mozilla="0" 5860apu_has_ldap_tivoli="0" 5861apu_has_ldap_zos="0" 5862apu_has_ldap_other="0" 5863LDADD_ldap_found="" 5864 5865 5866# Check whether --with-lber was given. 5867if test "${with_lber+set}" = set; then : 5868 withval=$with_lber; 5869 if test "$withval" = "yes"; then 5870 apu_liblber_name="lber" 5871 else 5872 apu_liblber_name="$withval" 5873 fi 5874 5875else 5876 5877 apu_liblber_name="lber" 5878 5879fi 5880 5881 5882 5883# Check whether --with-ldap-include was given. 5884if test "${with_ldap_include+set}" = set; then : 5885 withval=$with_ldap_include; 5886fi 5887 5888 5889# Check whether --with-ldap-lib was given. 5890if test "${with_ldap_lib+set}" = set; then : 5891 withval=$with_ldap_lib; 5892fi 5893 5894 5895# Check whether --with-ldap was given. 5896if test "${with_ldap+set}" = set; then : 5897 withval=$with_ldap; 5898 if test "$with_ldap" != "no"; then 5899 save_cppflags="$CPPFLAGS" 5900 save_ldflags="$LDFLAGS" 5901 save_libs="$LIBS" 5902 if test -n "$with_ldap_include"; then 5903 CPPFLAGS="$CPPFLAGS -I$with_ldap_include" 5904 5905 if test "x$APRUTIL_INCLUDES" = "x"; then 5906 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$with_ldap_include\"" 5907 APRUTIL_INCLUDES="-I$with_ldap_include" 5908 else 5909 apr_addto_bugger="-I$with_ldap_include" 5910 for i in $apr_addto_bugger; do 5911 apr_addto_duplicate="0" 5912 for j in $APRUTIL_INCLUDES; do 5913 if test "x$i" = "x$j"; then 5914 apr_addto_duplicate="1" 5915 break 5916 fi 5917 done 5918 if test $apr_addto_duplicate = "0"; then 5919 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 5920 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 5921 fi 5922 done 5923 fi 5924 5925 fi 5926 if test -n "$with_ldap_lib"; then 5927 LDFLAGS="$LDFLAGS -L$with_ldap_lib" 5928 5929 if test "x$APRUTIL_LDFLAGS" = "x"; then 5930 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$with_ldap_lib\"" 5931 APRUTIL_LDFLAGS="-L$with_ldap_lib" 5932 else 5933 apr_addto_bugger="-L$with_ldap_lib" 5934 for i in $apr_addto_bugger; do 5935 apr_addto_duplicate="0" 5936 for j in $APRUTIL_LDFLAGS; do 5937 if test "x$i" = "x$j"; then 5938 apr_addto_duplicate="1" 5939 break 5940 fi 5941 done 5942 if test $apr_addto_duplicate = "0"; then 5943 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 5944 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 5945 fi 5946 done 5947 fi 5948 5949 fi 5950 5951 LIBLDAP="$withval" 5952 if test "$LIBLDAP" = "yes"; then 5953 5954 if test ${apu_has_ldap} != "1"; then 5955 ldaplib="ldap50" 5956 extralib="-lnspr4 -lplc4 -lplds4 -liutil50 -llber50 -lldif50 -lnss3 -lprldap50 -lssl3 -lssldap50" 5957 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 5958 5959 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 5960 5961 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 5962 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 5963 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 5964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 5965$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 5966if eval \${$as_ac_Lib+:} false; then : 5967 $as_echo_n "(cached) " >&6 5968else 5969 ac_check_lib_save_LIBS=$LIBS 5970LIBS="-l${ldaplib} ${extralib} $LIBS" 5971cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5972/* end confdefs.h. */ 5973 5974/* Override any GCC internal prototype to avoid an error. 5975 Use char because int might match the return type of a GCC 5976 builtin and then its argument prototype would still apply. */ 5977#ifdef __cplusplus 5978extern "C" 5979#endif 5980char ldap_init (); 5981int 5982main () 5983{ 5984return ldap_init (); 5985 ; 5986 return 0; 5987} 5988_ACEOF 5989if ac_fn_c_try_link "$LINENO"; then : 5990 eval "$as_ac_Lib=yes" 5991else 5992 eval "$as_ac_Lib=no" 5993fi 5994rm -f core conftest.err conftest.$ac_objext \ 5995 conftest$ac_exeext conftest.$ac_ext 5996LIBS=$ac_check_lib_save_LIBS 5997fi 5998eval ac_res=\$$as_ac_Lib 5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6000$as_echo "$ac_res" >&6; } 6001if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6002 6003 LDADD_ldap_found="-l${ldaplib} ${extralib}" 6004 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 6005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 6006$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 6007if eval \${$as_ac_Lib+:} false; then : 6008 $as_echo_n "(cached) " >&6 6009else 6010 ac_check_lib_save_LIBS=$LIBS 6011LIBS="-l${ldaplib} ${extralib} $LIBS" 6012cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6013/* end confdefs.h. */ 6014 6015/* Override any GCC internal prototype to avoid an error. 6016 Use char because int might match the return type of a GCC 6017 builtin and then its argument prototype would still apply. */ 6018#ifdef __cplusplus 6019extern "C" 6020#endif 6021char ldapssl_client_init (); 6022int 6023main () 6024{ 6025return ldapssl_client_init (); 6026 ; 6027 return 0; 6028} 6029_ACEOF 6030if ac_fn_c_try_link "$LINENO"; then : 6031 eval "$as_ac_Lib=yes" 6032else 6033 eval "$as_ac_Lib=no" 6034fi 6035rm -f core conftest.err conftest.$ac_objext \ 6036 conftest$ac_exeext conftest.$ac_ext 6037LIBS=$ac_check_lib_save_LIBS 6038fi 6039eval ac_res=\$$as_ac_Lib 6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6041$as_echo "$ac_res" >&6; } 6042if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6043 apu_has_ldapssl_client_init="1" 6044fi 6045 6046 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 6047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 6048$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 6049if eval \${$as_ac_Lib+:} false; then : 6050 $as_echo_n "(cached) " >&6 6051else 6052 ac_check_lib_save_LIBS=$LIBS 6053LIBS="-l${ldaplib} ${extralib} $LIBS" 6054cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6055/* end confdefs.h. */ 6056 6057/* Override any GCC internal prototype to avoid an error. 6058 Use char because int might match the return type of a GCC 6059 builtin and then its argument prototype would still apply. */ 6060#ifdef __cplusplus 6061extern "C" 6062#endif 6063char ldapssl_client_deinit (); 6064int 6065main () 6066{ 6067return ldapssl_client_deinit (); 6068 ; 6069 return 0; 6070} 6071_ACEOF 6072if ac_fn_c_try_link "$LINENO"; then : 6073 eval "$as_ac_Lib=yes" 6074else 6075 eval "$as_ac_Lib=no" 6076fi 6077rm -f core conftest.err conftest.$ac_objext \ 6078 conftest$ac_exeext conftest.$ac_ext 6079LIBS=$ac_check_lib_save_LIBS 6080fi 6081eval ac_res=\$$as_ac_Lib 6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6083$as_echo "$ac_res" >&6; } 6084if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6085 apu_has_ldapssl_client_deinit="1" 6086fi 6087 6088 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 6089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 6090$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 6091if eval \${$as_ac_Lib+:} false; then : 6092 $as_echo_n "(cached) " >&6 6093else 6094 ac_check_lib_save_LIBS=$LIBS 6095LIBS="-l${ldaplib} ${extralib} $LIBS" 6096cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6097/* end confdefs.h. */ 6098 6099/* Override any GCC internal prototype to avoid an error. 6100 Use char because int might match the return type of a GCC 6101 builtin and then its argument prototype would still apply. */ 6102#ifdef __cplusplus 6103extern "C" 6104#endif 6105char ldapssl_add_trusted_cert (); 6106int 6107main () 6108{ 6109return ldapssl_add_trusted_cert (); 6110 ; 6111 return 0; 6112} 6113_ACEOF 6114if ac_fn_c_try_link "$LINENO"; then : 6115 eval "$as_ac_Lib=yes" 6116else 6117 eval "$as_ac_Lib=no" 6118fi 6119rm -f core conftest.err conftest.$ac_objext \ 6120 conftest$ac_exeext conftest.$ac_ext 6121LIBS=$ac_check_lib_save_LIBS 6122fi 6123eval ac_res=\$$as_ac_Lib 6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6125$as_echo "$ac_res" >&6; } 6126if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6127 apu_has_ldapssl_add_trusted_cert="1" 6128fi 6129 6130 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 6131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 6132$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 6133if eval \${$as_ac_Lib+:} false; then : 6134 $as_echo_n "(cached) " >&6 6135else 6136 ac_check_lib_save_LIBS=$LIBS 6137LIBS="-l${ldaplib} ${extralib} $LIBS" 6138cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6139/* end confdefs.h. */ 6140 6141/* Override any GCC internal prototype to avoid an error. 6142 Use char because int might match the return type of a GCC 6143 builtin and then its argument prototype would still apply. */ 6144#ifdef __cplusplus 6145extern "C" 6146#endif 6147char ldap_start_tls_s (); 6148int 6149main () 6150{ 6151return ldap_start_tls_s (); 6152 ; 6153 return 0; 6154} 6155_ACEOF 6156if ac_fn_c_try_link "$LINENO"; then : 6157 eval "$as_ac_Lib=yes" 6158else 6159 eval "$as_ac_Lib=no" 6160fi 6161rm -f core conftest.err conftest.$ac_objext \ 6162 conftest$ac_exeext conftest.$ac_ext 6163LIBS=$ac_check_lib_save_LIBS 6164fi 6165eval ac_res=\$$as_ac_Lib 6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6167$as_echo "$ac_res" >&6; } 6168if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6169 apu_has_ldap_start_tls_s="1" 6170fi 6171 6172 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 6173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 6174$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 6175if eval \${$as_ac_Lib+:} false; then : 6176 $as_echo_n "(cached) " >&6 6177else 6178 ac_check_lib_save_LIBS=$LIBS 6179LIBS="-l${ldaplib} ${extralib} $LIBS" 6180cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6181/* end confdefs.h. */ 6182 6183/* Override any GCC internal prototype to avoid an error. 6184 Use char because int might match the return type of a GCC 6185 builtin and then its argument prototype would still apply. */ 6186#ifdef __cplusplus 6187extern "C" 6188#endif 6189char ldap_sslinit (); 6190int 6191main () 6192{ 6193return ldap_sslinit (); 6194 ; 6195 return 0; 6196} 6197_ACEOF 6198if ac_fn_c_try_link "$LINENO"; then : 6199 eval "$as_ac_Lib=yes" 6200else 6201 eval "$as_ac_Lib=no" 6202fi 6203rm -f core conftest.err conftest.$ac_objext \ 6204 conftest$ac_exeext conftest.$ac_ext 6205LIBS=$ac_check_lib_save_LIBS 6206fi 6207eval ac_res=\$$as_ac_Lib 6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6209$as_echo "$ac_res" >&6; } 6210if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6211 apu_has_ldap_sslinit="1" 6212fi 6213 6214 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 6215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 6216$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 6217if eval \${$as_ac_Lib+:} false; then : 6218 $as_echo_n "(cached) " >&6 6219else 6220 ac_check_lib_save_LIBS=$LIBS 6221LIBS="-l${ldaplib} ${extralib} $LIBS" 6222cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6223/* end confdefs.h. */ 6224 6225/* Override any GCC internal prototype to avoid an error. 6226 Use char because int might match the return type of a GCC 6227 builtin and then its argument prototype would still apply. */ 6228#ifdef __cplusplus 6229extern "C" 6230#endif 6231char ldapssl_init (); 6232int 6233main () 6234{ 6235return ldapssl_init (); 6236 ; 6237 return 0; 6238} 6239_ACEOF 6240if ac_fn_c_try_link "$LINENO"; then : 6241 eval "$as_ac_Lib=yes" 6242else 6243 eval "$as_ac_Lib=no" 6244fi 6245rm -f core conftest.err conftest.$ac_objext \ 6246 conftest$ac_exeext conftest.$ac_ext 6247LIBS=$ac_check_lib_save_LIBS 6248fi 6249eval ac_res=\$$as_ac_Lib 6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6251$as_echo "$ac_res" >&6; } 6252if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6253 apu_has_ldapssl_init="1" 6254fi 6255 6256 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 6257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 6258$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 6259if eval \${$as_ac_Lib+:} false; then : 6260 $as_echo_n "(cached) " >&6 6261else 6262 ac_check_lib_save_LIBS=$LIBS 6263LIBS="-l${ldaplib} ${extralib} $LIBS" 6264cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6265/* end confdefs.h. */ 6266 6267/* Override any GCC internal prototype to avoid an error. 6268 Use char because int might match the return type of a GCC 6269 builtin and then its argument prototype would still apply. */ 6270#ifdef __cplusplus 6271extern "C" 6272#endif 6273char ldapssl_install_routines (); 6274int 6275main () 6276{ 6277return ldapssl_install_routines (); 6278 ; 6279 return 0; 6280} 6281_ACEOF 6282if ac_fn_c_try_link "$LINENO"; then : 6283 eval "$as_ac_Lib=yes" 6284else 6285 eval "$as_ac_Lib=no" 6286fi 6287rm -f core conftest.err conftest.$ac_objext \ 6288 conftest$ac_exeext conftest.$ac_ext 6289LIBS=$ac_check_lib_save_LIBS 6290fi 6291eval ac_res=\$$as_ac_Lib 6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6293$as_echo "$ac_res" >&6; } 6294if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6295 apu_has_ldapssl_install_routines="1" 6296fi 6297 6298 apu_has_ldap="1"; 6299 6300fi 6301 6302 fi 6303 6304 6305 if test ${apu_has_ldap} != "1"; then 6306 ldaplib="ldapssl41" 6307 extralib="-lnspr3 -lplc3 -lplds3" 6308 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 6309 6310 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 6311 6312 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 6313 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 6314 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 6315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 6316$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 6317if eval \${$as_ac_Lib+:} false; then : 6318 $as_echo_n "(cached) " >&6 6319else 6320 ac_check_lib_save_LIBS=$LIBS 6321LIBS="-l${ldaplib} ${extralib} $LIBS" 6322cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6323/* end confdefs.h. */ 6324 6325/* Override any GCC internal prototype to avoid an error. 6326 Use char because int might match the return type of a GCC 6327 builtin and then its argument prototype would still apply. */ 6328#ifdef __cplusplus 6329extern "C" 6330#endif 6331char ldap_init (); 6332int 6333main () 6334{ 6335return ldap_init (); 6336 ; 6337 return 0; 6338} 6339_ACEOF 6340if ac_fn_c_try_link "$LINENO"; then : 6341 eval "$as_ac_Lib=yes" 6342else 6343 eval "$as_ac_Lib=no" 6344fi 6345rm -f core conftest.err conftest.$ac_objext \ 6346 conftest$ac_exeext conftest.$ac_ext 6347LIBS=$ac_check_lib_save_LIBS 6348fi 6349eval ac_res=\$$as_ac_Lib 6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6351$as_echo "$ac_res" >&6; } 6352if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6353 6354 LDADD_ldap_found="-l${ldaplib} ${extralib}" 6355 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 6356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 6357$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 6358if eval \${$as_ac_Lib+:} false; then : 6359 $as_echo_n "(cached) " >&6 6360else 6361 ac_check_lib_save_LIBS=$LIBS 6362LIBS="-l${ldaplib} ${extralib} $LIBS" 6363cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6364/* end confdefs.h. */ 6365 6366/* Override any GCC internal prototype to avoid an error. 6367 Use char because int might match the return type of a GCC 6368 builtin and then its argument prototype would still apply. */ 6369#ifdef __cplusplus 6370extern "C" 6371#endif 6372char ldapssl_client_init (); 6373int 6374main () 6375{ 6376return ldapssl_client_init (); 6377 ; 6378 return 0; 6379} 6380_ACEOF 6381if ac_fn_c_try_link "$LINENO"; then : 6382 eval "$as_ac_Lib=yes" 6383else 6384 eval "$as_ac_Lib=no" 6385fi 6386rm -f core conftest.err conftest.$ac_objext \ 6387 conftest$ac_exeext conftest.$ac_ext 6388LIBS=$ac_check_lib_save_LIBS 6389fi 6390eval ac_res=\$$as_ac_Lib 6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6392$as_echo "$ac_res" >&6; } 6393if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6394 apu_has_ldapssl_client_init="1" 6395fi 6396 6397 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 6398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 6399$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 6400if eval \${$as_ac_Lib+:} false; then : 6401 $as_echo_n "(cached) " >&6 6402else 6403 ac_check_lib_save_LIBS=$LIBS 6404LIBS="-l${ldaplib} ${extralib} $LIBS" 6405cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6406/* end confdefs.h. */ 6407 6408/* Override any GCC internal prototype to avoid an error. 6409 Use char because int might match the return type of a GCC 6410 builtin and then its argument prototype would still apply. */ 6411#ifdef __cplusplus 6412extern "C" 6413#endif 6414char ldapssl_client_deinit (); 6415int 6416main () 6417{ 6418return ldapssl_client_deinit (); 6419 ; 6420 return 0; 6421} 6422_ACEOF 6423if ac_fn_c_try_link "$LINENO"; then : 6424 eval "$as_ac_Lib=yes" 6425else 6426 eval "$as_ac_Lib=no" 6427fi 6428rm -f core conftest.err conftest.$ac_objext \ 6429 conftest$ac_exeext conftest.$ac_ext 6430LIBS=$ac_check_lib_save_LIBS 6431fi 6432eval ac_res=\$$as_ac_Lib 6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6434$as_echo "$ac_res" >&6; } 6435if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6436 apu_has_ldapssl_client_deinit="1" 6437fi 6438 6439 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 6440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 6441$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 6442if eval \${$as_ac_Lib+:} false; then : 6443 $as_echo_n "(cached) " >&6 6444else 6445 ac_check_lib_save_LIBS=$LIBS 6446LIBS="-l${ldaplib} ${extralib} $LIBS" 6447cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6448/* end confdefs.h. */ 6449 6450/* Override any GCC internal prototype to avoid an error. 6451 Use char because int might match the return type of a GCC 6452 builtin and then its argument prototype would still apply. */ 6453#ifdef __cplusplus 6454extern "C" 6455#endif 6456char ldapssl_add_trusted_cert (); 6457int 6458main () 6459{ 6460return ldapssl_add_trusted_cert (); 6461 ; 6462 return 0; 6463} 6464_ACEOF 6465if ac_fn_c_try_link "$LINENO"; then : 6466 eval "$as_ac_Lib=yes" 6467else 6468 eval "$as_ac_Lib=no" 6469fi 6470rm -f core conftest.err conftest.$ac_objext \ 6471 conftest$ac_exeext conftest.$ac_ext 6472LIBS=$ac_check_lib_save_LIBS 6473fi 6474eval ac_res=\$$as_ac_Lib 6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6476$as_echo "$ac_res" >&6; } 6477if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6478 apu_has_ldapssl_add_trusted_cert="1" 6479fi 6480 6481 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 6482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 6483$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 6484if eval \${$as_ac_Lib+:} false; then : 6485 $as_echo_n "(cached) " >&6 6486else 6487 ac_check_lib_save_LIBS=$LIBS 6488LIBS="-l${ldaplib} ${extralib} $LIBS" 6489cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6490/* end confdefs.h. */ 6491 6492/* Override any GCC internal prototype to avoid an error. 6493 Use char because int might match the return type of a GCC 6494 builtin and then its argument prototype would still apply. */ 6495#ifdef __cplusplus 6496extern "C" 6497#endif 6498char ldap_start_tls_s (); 6499int 6500main () 6501{ 6502return ldap_start_tls_s (); 6503 ; 6504 return 0; 6505} 6506_ACEOF 6507if ac_fn_c_try_link "$LINENO"; then : 6508 eval "$as_ac_Lib=yes" 6509else 6510 eval "$as_ac_Lib=no" 6511fi 6512rm -f core conftest.err conftest.$ac_objext \ 6513 conftest$ac_exeext conftest.$ac_ext 6514LIBS=$ac_check_lib_save_LIBS 6515fi 6516eval ac_res=\$$as_ac_Lib 6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6518$as_echo "$ac_res" >&6; } 6519if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6520 apu_has_ldap_start_tls_s="1" 6521fi 6522 6523 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 6524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 6525$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 6526if eval \${$as_ac_Lib+:} false; then : 6527 $as_echo_n "(cached) " >&6 6528else 6529 ac_check_lib_save_LIBS=$LIBS 6530LIBS="-l${ldaplib} ${extralib} $LIBS" 6531cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6532/* end confdefs.h. */ 6533 6534/* Override any GCC internal prototype to avoid an error. 6535 Use char because int might match the return type of a GCC 6536 builtin and then its argument prototype would still apply. */ 6537#ifdef __cplusplus 6538extern "C" 6539#endif 6540char ldap_sslinit (); 6541int 6542main () 6543{ 6544return ldap_sslinit (); 6545 ; 6546 return 0; 6547} 6548_ACEOF 6549if ac_fn_c_try_link "$LINENO"; then : 6550 eval "$as_ac_Lib=yes" 6551else 6552 eval "$as_ac_Lib=no" 6553fi 6554rm -f core conftest.err conftest.$ac_objext \ 6555 conftest$ac_exeext conftest.$ac_ext 6556LIBS=$ac_check_lib_save_LIBS 6557fi 6558eval ac_res=\$$as_ac_Lib 6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6560$as_echo "$ac_res" >&6; } 6561if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6562 apu_has_ldap_sslinit="1" 6563fi 6564 6565 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 6566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 6567$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 6568if eval \${$as_ac_Lib+:} false; then : 6569 $as_echo_n "(cached) " >&6 6570else 6571 ac_check_lib_save_LIBS=$LIBS 6572LIBS="-l${ldaplib} ${extralib} $LIBS" 6573cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6574/* end confdefs.h. */ 6575 6576/* Override any GCC internal prototype to avoid an error. 6577 Use char because int might match the return type of a GCC 6578 builtin and then its argument prototype would still apply. */ 6579#ifdef __cplusplus 6580extern "C" 6581#endif 6582char ldapssl_init (); 6583int 6584main () 6585{ 6586return ldapssl_init (); 6587 ; 6588 return 0; 6589} 6590_ACEOF 6591if ac_fn_c_try_link "$LINENO"; then : 6592 eval "$as_ac_Lib=yes" 6593else 6594 eval "$as_ac_Lib=no" 6595fi 6596rm -f core conftest.err conftest.$ac_objext \ 6597 conftest$ac_exeext conftest.$ac_ext 6598LIBS=$ac_check_lib_save_LIBS 6599fi 6600eval ac_res=\$$as_ac_Lib 6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6602$as_echo "$ac_res" >&6; } 6603if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6604 apu_has_ldapssl_init="1" 6605fi 6606 6607 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 6608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 6609$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 6610if eval \${$as_ac_Lib+:} false; then : 6611 $as_echo_n "(cached) " >&6 6612else 6613 ac_check_lib_save_LIBS=$LIBS 6614LIBS="-l${ldaplib} ${extralib} $LIBS" 6615cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6616/* end confdefs.h. */ 6617 6618/* Override any GCC internal prototype to avoid an error. 6619 Use char because int might match the return type of a GCC 6620 builtin and then its argument prototype would still apply. */ 6621#ifdef __cplusplus 6622extern "C" 6623#endif 6624char ldapssl_install_routines (); 6625int 6626main () 6627{ 6628return ldapssl_install_routines (); 6629 ; 6630 return 0; 6631} 6632_ACEOF 6633if ac_fn_c_try_link "$LINENO"; then : 6634 eval "$as_ac_Lib=yes" 6635else 6636 eval "$as_ac_Lib=no" 6637fi 6638rm -f core conftest.err conftest.$ac_objext \ 6639 conftest$ac_exeext conftest.$ac_ext 6640LIBS=$ac_check_lib_save_LIBS 6641fi 6642eval ac_res=\$$as_ac_Lib 6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6644$as_echo "$ac_res" >&6; } 6645if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6646 apu_has_ldapssl_install_routines="1" 6647fi 6648 6649 apu_has_ldap="1"; 6650 6651fi 6652 6653 fi 6654 6655 6656 if test ${apu_has_ldap} != "1"; then 6657 ldaplib="ldapssl40" 6658 extralib= 6659 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 6660 6661 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 6662 6663 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 6664 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 6665 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 6666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 6667$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 6668if eval \${$as_ac_Lib+:} false; then : 6669 $as_echo_n "(cached) " >&6 6670else 6671 ac_check_lib_save_LIBS=$LIBS 6672LIBS="-l${ldaplib} ${extralib} $LIBS" 6673cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6674/* end confdefs.h. */ 6675 6676/* Override any GCC internal prototype to avoid an error. 6677 Use char because int might match the return type of a GCC 6678 builtin and then its argument prototype would still apply. */ 6679#ifdef __cplusplus 6680extern "C" 6681#endif 6682char ldap_init (); 6683int 6684main () 6685{ 6686return ldap_init (); 6687 ; 6688 return 0; 6689} 6690_ACEOF 6691if ac_fn_c_try_link "$LINENO"; then : 6692 eval "$as_ac_Lib=yes" 6693else 6694 eval "$as_ac_Lib=no" 6695fi 6696rm -f core conftest.err conftest.$ac_objext \ 6697 conftest$ac_exeext conftest.$ac_ext 6698LIBS=$ac_check_lib_save_LIBS 6699fi 6700eval ac_res=\$$as_ac_Lib 6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6702$as_echo "$ac_res" >&6; } 6703if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6704 6705 LDADD_ldap_found="-l${ldaplib} ${extralib}" 6706 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 6707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 6708$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 6709if eval \${$as_ac_Lib+:} false; then : 6710 $as_echo_n "(cached) " >&6 6711else 6712 ac_check_lib_save_LIBS=$LIBS 6713LIBS="-l${ldaplib} ${extralib} $LIBS" 6714cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6715/* end confdefs.h. */ 6716 6717/* Override any GCC internal prototype to avoid an error. 6718 Use char because int might match the return type of a GCC 6719 builtin and then its argument prototype would still apply. */ 6720#ifdef __cplusplus 6721extern "C" 6722#endif 6723char ldapssl_client_init (); 6724int 6725main () 6726{ 6727return ldapssl_client_init (); 6728 ; 6729 return 0; 6730} 6731_ACEOF 6732if ac_fn_c_try_link "$LINENO"; then : 6733 eval "$as_ac_Lib=yes" 6734else 6735 eval "$as_ac_Lib=no" 6736fi 6737rm -f core conftest.err conftest.$ac_objext \ 6738 conftest$ac_exeext conftest.$ac_ext 6739LIBS=$ac_check_lib_save_LIBS 6740fi 6741eval ac_res=\$$as_ac_Lib 6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6743$as_echo "$ac_res" >&6; } 6744if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6745 apu_has_ldapssl_client_init="1" 6746fi 6747 6748 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 6749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 6750$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 6751if eval \${$as_ac_Lib+:} false; then : 6752 $as_echo_n "(cached) " >&6 6753else 6754 ac_check_lib_save_LIBS=$LIBS 6755LIBS="-l${ldaplib} ${extralib} $LIBS" 6756cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6757/* end confdefs.h. */ 6758 6759/* Override any GCC internal prototype to avoid an error. 6760 Use char because int might match the return type of a GCC 6761 builtin and then its argument prototype would still apply. */ 6762#ifdef __cplusplus 6763extern "C" 6764#endif 6765char ldapssl_client_deinit (); 6766int 6767main () 6768{ 6769return ldapssl_client_deinit (); 6770 ; 6771 return 0; 6772} 6773_ACEOF 6774if ac_fn_c_try_link "$LINENO"; then : 6775 eval "$as_ac_Lib=yes" 6776else 6777 eval "$as_ac_Lib=no" 6778fi 6779rm -f core conftest.err conftest.$ac_objext \ 6780 conftest$ac_exeext conftest.$ac_ext 6781LIBS=$ac_check_lib_save_LIBS 6782fi 6783eval ac_res=\$$as_ac_Lib 6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6785$as_echo "$ac_res" >&6; } 6786if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6787 apu_has_ldapssl_client_deinit="1" 6788fi 6789 6790 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 6791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 6792$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 6793if eval \${$as_ac_Lib+:} false; then : 6794 $as_echo_n "(cached) " >&6 6795else 6796 ac_check_lib_save_LIBS=$LIBS 6797LIBS="-l${ldaplib} ${extralib} $LIBS" 6798cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6799/* end confdefs.h. */ 6800 6801/* Override any GCC internal prototype to avoid an error. 6802 Use char because int might match the return type of a GCC 6803 builtin and then its argument prototype would still apply. */ 6804#ifdef __cplusplus 6805extern "C" 6806#endif 6807char ldapssl_add_trusted_cert (); 6808int 6809main () 6810{ 6811return ldapssl_add_trusted_cert (); 6812 ; 6813 return 0; 6814} 6815_ACEOF 6816if ac_fn_c_try_link "$LINENO"; then : 6817 eval "$as_ac_Lib=yes" 6818else 6819 eval "$as_ac_Lib=no" 6820fi 6821rm -f core conftest.err conftest.$ac_objext \ 6822 conftest$ac_exeext conftest.$ac_ext 6823LIBS=$ac_check_lib_save_LIBS 6824fi 6825eval ac_res=\$$as_ac_Lib 6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6827$as_echo "$ac_res" >&6; } 6828if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6829 apu_has_ldapssl_add_trusted_cert="1" 6830fi 6831 6832 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 6833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 6834$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 6835if eval \${$as_ac_Lib+:} false; then : 6836 $as_echo_n "(cached) " >&6 6837else 6838 ac_check_lib_save_LIBS=$LIBS 6839LIBS="-l${ldaplib} ${extralib} $LIBS" 6840cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6841/* end confdefs.h. */ 6842 6843/* Override any GCC internal prototype to avoid an error. 6844 Use char because int might match the return type of a GCC 6845 builtin and then its argument prototype would still apply. */ 6846#ifdef __cplusplus 6847extern "C" 6848#endif 6849char ldap_start_tls_s (); 6850int 6851main () 6852{ 6853return ldap_start_tls_s (); 6854 ; 6855 return 0; 6856} 6857_ACEOF 6858if ac_fn_c_try_link "$LINENO"; then : 6859 eval "$as_ac_Lib=yes" 6860else 6861 eval "$as_ac_Lib=no" 6862fi 6863rm -f core conftest.err conftest.$ac_objext \ 6864 conftest$ac_exeext conftest.$ac_ext 6865LIBS=$ac_check_lib_save_LIBS 6866fi 6867eval ac_res=\$$as_ac_Lib 6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6869$as_echo "$ac_res" >&6; } 6870if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6871 apu_has_ldap_start_tls_s="1" 6872fi 6873 6874 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 6875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 6876$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 6877if eval \${$as_ac_Lib+:} false; then : 6878 $as_echo_n "(cached) " >&6 6879else 6880 ac_check_lib_save_LIBS=$LIBS 6881LIBS="-l${ldaplib} ${extralib} $LIBS" 6882cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6883/* end confdefs.h. */ 6884 6885/* Override any GCC internal prototype to avoid an error. 6886 Use char because int might match the return type of a GCC 6887 builtin and then its argument prototype would still apply. */ 6888#ifdef __cplusplus 6889extern "C" 6890#endif 6891char ldap_sslinit (); 6892int 6893main () 6894{ 6895return ldap_sslinit (); 6896 ; 6897 return 0; 6898} 6899_ACEOF 6900if ac_fn_c_try_link "$LINENO"; then : 6901 eval "$as_ac_Lib=yes" 6902else 6903 eval "$as_ac_Lib=no" 6904fi 6905rm -f core conftest.err conftest.$ac_objext \ 6906 conftest$ac_exeext conftest.$ac_ext 6907LIBS=$ac_check_lib_save_LIBS 6908fi 6909eval ac_res=\$$as_ac_Lib 6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6911$as_echo "$ac_res" >&6; } 6912if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6913 apu_has_ldap_sslinit="1" 6914fi 6915 6916 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 6917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 6918$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 6919if eval \${$as_ac_Lib+:} false; then : 6920 $as_echo_n "(cached) " >&6 6921else 6922 ac_check_lib_save_LIBS=$LIBS 6923LIBS="-l${ldaplib} ${extralib} $LIBS" 6924cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6925/* end confdefs.h. */ 6926 6927/* Override any GCC internal prototype to avoid an error. 6928 Use char because int might match the return type of a GCC 6929 builtin and then its argument prototype would still apply. */ 6930#ifdef __cplusplus 6931extern "C" 6932#endif 6933char ldapssl_init (); 6934int 6935main () 6936{ 6937return ldapssl_init (); 6938 ; 6939 return 0; 6940} 6941_ACEOF 6942if ac_fn_c_try_link "$LINENO"; then : 6943 eval "$as_ac_Lib=yes" 6944else 6945 eval "$as_ac_Lib=no" 6946fi 6947rm -f core conftest.err conftest.$ac_objext \ 6948 conftest$ac_exeext conftest.$ac_ext 6949LIBS=$ac_check_lib_save_LIBS 6950fi 6951eval ac_res=\$$as_ac_Lib 6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6953$as_echo "$ac_res" >&6; } 6954if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6955 apu_has_ldapssl_init="1" 6956fi 6957 6958 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 6959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 6960$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 6961if eval \${$as_ac_Lib+:} false; then : 6962 $as_echo_n "(cached) " >&6 6963else 6964 ac_check_lib_save_LIBS=$LIBS 6965LIBS="-l${ldaplib} ${extralib} $LIBS" 6966cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6967/* end confdefs.h. */ 6968 6969/* Override any GCC internal prototype to avoid an error. 6970 Use char because int might match the return type of a GCC 6971 builtin and then its argument prototype would still apply. */ 6972#ifdef __cplusplus 6973extern "C" 6974#endif 6975char ldapssl_install_routines (); 6976int 6977main () 6978{ 6979return ldapssl_install_routines (); 6980 ; 6981 return 0; 6982} 6983_ACEOF 6984if ac_fn_c_try_link "$LINENO"; then : 6985 eval "$as_ac_Lib=yes" 6986else 6987 eval "$as_ac_Lib=no" 6988fi 6989rm -f core conftest.err conftest.$ac_objext \ 6990 conftest$ac_exeext conftest.$ac_ext 6991LIBS=$ac_check_lib_save_LIBS 6992fi 6993eval ac_res=\$$as_ac_Lib 6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6995$as_echo "$ac_res" >&6; } 6996if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 6997 apu_has_ldapssl_install_routines="1" 6998fi 6999 7000 apu_has_ldap="1"; 7001 7002fi 7003 7004 fi 7005 7006 7007 if test ${apu_has_ldap} != "1"; then 7008 ldaplib="ldapssl30" 7009 extralib= 7010 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 7011 7012 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 7013 7014 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 7015 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 7016 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 7017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 7018$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 7019if eval \${$as_ac_Lib+:} false; then : 7020 $as_echo_n "(cached) " >&6 7021else 7022 ac_check_lib_save_LIBS=$LIBS 7023LIBS="-l${ldaplib} ${extralib} $LIBS" 7024cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7025/* end confdefs.h. */ 7026 7027/* Override any GCC internal prototype to avoid an error. 7028 Use char because int might match the return type of a GCC 7029 builtin and then its argument prototype would still apply. */ 7030#ifdef __cplusplus 7031extern "C" 7032#endif 7033char ldap_init (); 7034int 7035main () 7036{ 7037return ldap_init (); 7038 ; 7039 return 0; 7040} 7041_ACEOF 7042if ac_fn_c_try_link "$LINENO"; then : 7043 eval "$as_ac_Lib=yes" 7044else 7045 eval "$as_ac_Lib=no" 7046fi 7047rm -f core conftest.err conftest.$ac_objext \ 7048 conftest$ac_exeext conftest.$ac_ext 7049LIBS=$ac_check_lib_save_LIBS 7050fi 7051eval ac_res=\$$as_ac_Lib 7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7053$as_echo "$ac_res" >&6; } 7054if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7055 7056 LDADD_ldap_found="-l${ldaplib} ${extralib}" 7057 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 7058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 7059$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 7060if eval \${$as_ac_Lib+:} false; then : 7061 $as_echo_n "(cached) " >&6 7062else 7063 ac_check_lib_save_LIBS=$LIBS 7064LIBS="-l${ldaplib} ${extralib} $LIBS" 7065cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7066/* end confdefs.h. */ 7067 7068/* Override any GCC internal prototype to avoid an error. 7069 Use char because int might match the return type of a GCC 7070 builtin and then its argument prototype would still apply. */ 7071#ifdef __cplusplus 7072extern "C" 7073#endif 7074char ldapssl_client_init (); 7075int 7076main () 7077{ 7078return ldapssl_client_init (); 7079 ; 7080 return 0; 7081} 7082_ACEOF 7083if ac_fn_c_try_link "$LINENO"; then : 7084 eval "$as_ac_Lib=yes" 7085else 7086 eval "$as_ac_Lib=no" 7087fi 7088rm -f core conftest.err conftest.$ac_objext \ 7089 conftest$ac_exeext conftest.$ac_ext 7090LIBS=$ac_check_lib_save_LIBS 7091fi 7092eval ac_res=\$$as_ac_Lib 7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7094$as_echo "$ac_res" >&6; } 7095if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7096 apu_has_ldapssl_client_init="1" 7097fi 7098 7099 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 7100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 7101$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 7102if eval \${$as_ac_Lib+:} false; then : 7103 $as_echo_n "(cached) " >&6 7104else 7105 ac_check_lib_save_LIBS=$LIBS 7106LIBS="-l${ldaplib} ${extralib} $LIBS" 7107cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7108/* end confdefs.h. */ 7109 7110/* Override any GCC internal prototype to avoid an error. 7111 Use char because int might match the return type of a GCC 7112 builtin and then its argument prototype would still apply. */ 7113#ifdef __cplusplus 7114extern "C" 7115#endif 7116char ldapssl_client_deinit (); 7117int 7118main () 7119{ 7120return ldapssl_client_deinit (); 7121 ; 7122 return 0; 7123} 7124_ACEOF 7125if ac_fn_c_try_link "$LINENO"; then : 7126 eval "$as_ac_Lib=yes" 7127else 7128 eval "$as_ac_Lib=no" 7129fi 7130rm -f core conftest.err conftest.$ac_objext \ 7131 conftest$ac_exeext conftest.$ac_ext 7132LIBS=$ac_check_lib_save_LIBS 7133fi 7134eval ac_res=\$$as_ac_Lib 7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7136$as_echo "$ac_res" >&6; } 7137if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7138 apu_has_ldapssl_client_deinit="1" 7139fi 7140 7141 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 7142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 7143$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 7144if eval \${$as_ac_Lib+:} false; then : 7145 $as_echo_n "(cached) " >&6 7146else 7147 ac_check_lib_save_LIBS=$LIBS 7148LIBS="-l${ldaplib} ${extralib} $LIBS" 7149cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7150/* end confdefs.h. */ 7151 7152/* Override any GCC internal prototype to avoid an error. 7153 Use char because int might match the return type of a GCC 7154 builtin and then its argument prototype would still apply. */ 7155#ifdef __cplusplus 7156extern "C" 7157#endif 7158char ldapssl_add_trusted_cert (); 7159int 7160main () 7161{ 7162return ldapssl_add_trusted_cert (); 7163 ; 7164 return 0; 7165} 7166_ACEOF 7167if ac_fn_c_try_link "$LINENO"; then : 7168 eval "$as_ac_Lib=yes" 7169else 7170 eval "$as_ac_Lib=no" 7171fi 7172rm -f core conftest.err conftest.$ac_objext \ 7173 conftest$ac_exeext conftest.$ac_ext 7174LIBS=$ac_check_lib_save_LIBS 7175fi 7176eval ac_res=\$$as_ac_Lib 7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7178$as_echo "$ac_res" >&6; } 7179if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7180 apu_has_ldapssl_add_trusted_cert="1" 7181fi 7182 7183 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 7184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 7185$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 7186if eval \${$as_ac_Lib+:} false; then : 7187 $as_echo_n "(cached) " >&6 7188else 7189 ac_check_lib_save_LIBS=$LIBS 7190LIBS="-l${ldaplib} ${extralib} $LIBS" 7191cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7192/* end confdefs.h. */ 7193 7194/* Override any GCC internal prototype to avoid an error. 7195 Use char because int might match the return type of a GCC 7196 builtin and then its argument prototype would still apply. */ 7197#ifdef __cplusplus 7198extern "C" 7199#endif 7200char ldap_start_tls_s (); 7201int 7202main () 7203{ 7204return ldap_start_tls_s (); 7205 ; 7206 return 0; 7207} 7208_ACEOF 7209if ac_fn_c_try_link "$LINENO"; then : 7210 eval "$as_ac_Lib=yes" 7211else 7212 eval "$as_ac_Lib=no" 7213fi 7214rm -f core conftest.err conftest.$ac_objext \ 7215 conftest$ac_exeext conftest.$ac_ext 7216LIBS=$ac_check_lib_save_LIBS 7217fi 7218eval ac_res=\$$as_ac_Lib 7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7220$as_echo "$ac_res" >&6; } 7221if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7222 apu_has_ldap_start_tls_s="1" 7223fi 7224 7225 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 7226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 7227$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 7228if eval \${$as_ac_Lib+:} false; then : 7229 $as_echo_n "(cached) " >&6 7230else 7231 ac_check_lib_save_LIBS=$LIBS 7232LIBS="-l${ldaplib} ${extralib} $LIBS" 7233cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7234/* end confdefs.h. */ 7235 7236/* Override any GCC internal prototype to avoid an error. 7237 Use char because int might match the return type of a GCC 7238 builtin and then its argument prototype would still apply. */ 7239#ifdef __cplusplus 7240extern "C" 7241#endif 7242char ldap_sslinit (); 7243int 7244main () 7245{ 7246return ldap_sslinit (); 7247 ; 7248 return 0; 7249} 7250_ACEOF 7251if ac_fn_c_try_link "$LINENO"; then : 7252 eval "$as_ac_Lib=yes" 7253else 7254 eval "$as_ac_Lib=no" 7255fi 7256rm -f core conftest.err conftest.$ac_objext \ 7257 conftest$ac_exeext conftest.$ac_ext 7258LIBS=$ac_check_lib_save_LIBS 7259fi 7260eval ac_res=\$$as_ac_Lib 7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7262$as_echo "$ac_res" >&6; } 7263if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7264 apu_has_ldap_sslinit="1" 7265fi 7266 7267 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 7268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 7269$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 7270if eval \${$as_ac_Lib+:} false; then : 7271 $as_echo_n "(cached) " >&6 7272else 7273 ac_check_lib_save_LIBS=$LIBS 7274LIBS="-l${ldaplib} ${extralib} $LIBS" 7275cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7276/* end confdefs.h. */ 7277 7278/* Override any GCC internal prototype to avoid an error. 7279 Use char because int might match the return type of a GCC 7280 builtin and then its argument prototype would still apply. */ 7281#ifdef __cplusplus 7282extern "C" 7283#endif 7284char ldapssl_init (); 7285int 7286main () 7287{ 7288return ldapssl_init (); 7289 ; 7290 return 0; 7291} 7292_ACEOF 7293if ac_fn_c_try_link "$LINENO"; then : 7294 eval "$as_ac_Lib=yes" 7295else 7296 eval "$as_ac_Lib=no" 7297fi 7298rm -f core conftest.err conftest.$ac_objext \ 7299 conftest$ac_exeext conftest.$ac_ext 7300LIBS=$ac_check_lib_save_LIBS 7301fi 7302eval ac_res=\$$as_ac_Lib 7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7304$as_echo "$ac_res" >&6; } 7305if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7306 apu_has_ldapssl_init="1" 7307fi 7308 7309 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 7310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 7311$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 7312if eval \${$as_ac_Lib+:} false; then : 7313 $as_echo_n "(cached) " >&6 7314else 7315 ac_check_lib_save_LIBS=$LIBS 7316LIBS="-l${ldaplib} ${extralib} $LIBS" 7317cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7318/* end confdefs.h. */ 7319 7320/* Override any GCC internal prototype to avoid an error. 7321 Use char because int might match the return type of a GCC 7322 builtin and then its argument prototype would still apply. */ 7323#ifdef __cplusplus 7324extern "C" 7325#endif 7326char ldapssl_install_routines (); 7327int 7328main () 7329{ 7330return ldapssl_install_routines (); 7331 ; 7332 return 0; 7333} 7334_ACEOF 7335if ac_fn_c_try_link "$LINENO"; then : 7336 eval "$as_ac_Lib=yes" 7337else 7338 eval "$as_ac_Lib=no" 7339fi 7340rm -f core conftest.err conftest.$ac_objext \ 7341 conftest$ac_exeext conftest.$ac_ext 7342LIBS=$ac_check_lib_save_LIBS 7343fi 7344eval ac_res=\$$as_ac_Lib 7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7346$as_echo "$ac_res" >&6; } 7347if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7348 apu_has_ldapssl_install_routines="1" 7349fi 7350 7351 apu_has_ldap="1"; 7352 7353fi 7354 7355 fi 7356 7357 7358 if test ${apu_has_ldap} != "1"; then 7359 ldaplib="ldapssl20" 7360 extralib= 7361 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 7362 7363 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 7364 7365 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 7366 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 7367 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 7368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 7369$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 7370if eval \${$as_ac_Lib+:} false; then : 7371 $as_echo_n "(cached) " >&6 7372else 7373 ac_check_lib_save_LIBS=$LIBS 7374LIBS="-l${ldaplib} ${extralib} $LIBS" 7375cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7376/* end confdefs.h. */ 7377 7378/* Override any GCC internal prototype to avoid an error. 7379 Use char because int might match the return type of a GCC 7380 builtin and then its argument prototype would still apply. */ 7381#ifdef __cplusplus 7382extern "C" 7383#endif 7384char ldap_init (); 7385int 7386main () 7387{ 7388return ldap_init (); 7389 ; 7390 return 0; 7391} 7392_ACEOF 7393if ac_fn_c_try_link "$LINENO"; then : 7394 eval "$as_ac_Lib=yes" 7395else 7396 eval "$as_ac_Lib=no" 7397fi 7398rm -f core conftest.err conftest.$ac_objext \ 7399 conftest$ac_exeext conftest.$ac_ext 7400LIBS=$ac_check_lib_save_LIBS 7401fi 7402eval ac_res=\$$as_ac_Lib 7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7404$as_echo "$ac_res" >&6; } 7405if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7406 7407 LDADD_ldap_found="-l${ldaplib} ${extralib}" 7408 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 7409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 7410$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 7411if eval \${$as_ac_Lib+:} false; then : 7412 $as_echo_n "(cached) " >&6 7413else 7414 ac_check_lib_save_LIBS=$LIBS 7415LIBS="-l${ldaplib} ${extralib} $LIBS" 7416cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7417/* end confdefs.h. */ 7418 7419/* Override any GCC internal prototype to avoid an error. 7420 Use char because int might match the return type of a GCC 7421 builtin and then its argument prototype would still apply. */ 7422#ifdef __cplusplus 7423extern "C" 7424#endif 7425char ldapssl_client_init (); 7426int 7427main () 7428{ 7429return ldapssl_client_init (); 7430 ; 7431 return 0; 7432} 7433_ACEOF 7434if ac_fn_c_try_link "$LINENO"; then : 7435 eval "$as_ac_Lib=yes" 7436else 7437 eval "$as_ac_Lib=no" 7438fi 7439rm -f core conftest.err conftest.$ac_objext \ 7440 conftest$ac_exeext conftest.$ac_ext 7441LIBS=$ac_check_lib_save_LIBS 7442fi 7443eval ac_res=\$$as_ac_Lib 7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7445$as_echo "$ac_res" >&6; } 7446if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7447 apu_has_ldapssl_client_init="1" 7448fi 7449 7450 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 7451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 7452$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 7453if eval \${$as_ac_Lib+:} false; then : 7454 $as_echo_n "(cached) " >&6 7455else 7456 ac_check_lib_save_LIBS=$LIBS 7457LIBS="-l${ldaplib} ${extralib} $LIBS" 7458cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7459/* end confdefs.h. */ 7460 7461/* Override any GCC internal prototype to avoid an error. 7462 Use char because int might match the return type of a GCC 7463 builtin and then its argument prototype would still apply. */ 7464#ifdef __cplusplus 7465extern "C" 7466#endif 7467char ldapssl_client_deinit (); 7468int 7469main () 7470{ 7471return ldapssl_client_deinit (); 7472 ; 7473 return 0; 7474} 7475_ACEOF 7476if ac_fn_c_try_link "$LINENO"; then : 7477 eval "$as_ac_Lib=yes" 7478else 7479 eval "$as_ac_Lib=no" 7480fi 7481rm -f core conftest.err conftest.$ac_objext \ 7482 conftest$ac_exeext conftest.$ac_ext 7483LIBS=$ac_check_lib_save_LIBS 7484fi 7485eval ac_res=\$$as_ac_Lib 7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7487$as_echo "$ac_res" >&6; } 7488if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7489 apu_has_ldapssl_client_deinit="1" 7490fi 7491 7492 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 7493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 7494$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 7495if eval \${$as_ac_Lib+:} false; then : 7496 $as_echo_n "(cached) " >&6 7497else 7498 ac_check_lib_save_LIBS=$LIBS 7499LIBS="-l${ldaplib} ${extralib} $LIBS" 7500cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7501/* end confdefs.h. */ 7502 7503/* Override any GCC internal prototype to avoid an error. 7504 Use char because int might match the return type of a GCC 7505 builtin and then its argument prototype would still apply. */ 7506#ifdef __cplusplus 7507extern "C" 7508#endif 7509char ldapssl_add_trusted_cert (); 7510int 7511main () 7512{ 7513return ldapssl_add_trusted_cert (); 7514 ; 7515 return 0; 7516} 7517_ACEOF 7518if ac_fn_c_try_link "$LINENO"; then : 7519 eval "$as_ac_Lib=yes" 7520else 7521 eval "$as_ac_Lib=no" 7522fi 7523rm -f core conftest.err conftest.$ac_objext \ 7524 conftest$ac_exeext conftest.$ac_ext 7525LIBS=$ac_check_lib_save_LIBS 7526fi 7527eval ac_res=\$$as_ac_Lib 7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7529$as_echo "$ac_res" >&6; } 7530if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7531 apu_has_ldapssl_add_trusted_cert="1" 7532fi 7533 7534 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 7535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 7536$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 7537if eval \${$as_ac_Lib+:} false; then : 7538 $as_echo_n "(cached) " >&6 7539else 7540 ac_check_lib_save_LIBS=$LIBS 7541LIBS="-l${ldaplib} ${extralib} $LIBS" 7542cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7543/* end confdefs.h. */ 7544 7545/* Override any GCC internal prototype to avoid an error. 7546 Use char because int might match the return type of a GCC 7547 builtin and then its argument prototype would still apply. */ 7548#ifdef __cplusplus 7549extern "C" 7550#endif 7551char ldap_start_tls_s (); 7552int 7553main () 7554{ 7555return ldap_start_tls_s (); 7556 ; 7557 return 0; 7558} 7559_ACEOF 7560if ac_fn_c_try_link "$LINENO"; then : 7561 eval "$as_ac_Lib=yes" 7562else 7563 eval "$as_ac_Lib=no" 7564fi 7565rm -f core conftest.err conftest.$ac_objext \ 7566 conftest$ac_exeext conftest.$ac_ext 7567LIBS=$ac_check_lib_save_LIBS 7568fi 7569eval ac_res=\$$as_ac_Lib 7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7571$as_echo "$ac_res" >&6; } 7572if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7573 apu_has_ldap_start_tls_s="1" 7574fi 7575 7576 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 7577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 7578$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 7579if eval \${$as_ac_Lib+:} false; then : 7580 $as_echo_n "(cached) " >&6 7581else 7582 ac_check_lib_save_LIBS=$LIBS 7583LIBS="-l${ldaplib} ${extralib} $LIBS" 7584cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7585/* end confdefs.h. */ 7586 7587/* Override any GCC internal prototype to avoid an error. 7588 Use char because int might match the return type of a GCC 7589 builtin and then its argument prototype would still apply. */ 7590#ifdef __cplusplus 7591extern "C" 7592#endif 7593char ldap_sslinit (); 7594int 7595main () 7596{ 7597return ldap_sslinit (); 7598 ; 7599 return 0; 7600} 7601_ACEOF 7602if ac_fn_c_try_link "$LINENO"; then : 7603 eval "$as_ac_Lib=yes" 7604else 7605 eval "$as_ac_Lib=no" 7606fi 7607rm -f core conftest.err conftest.$ac_objext \ 7608 conftest$ac_exeext conftest.$ac_ext 7609LIBS=$ac_check_lib_save_LIBS 7610fi 7611eval ac_res=\$$as_ac_Lib 7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7613$as_echo "$ac_res" >&6; } 7614if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7615 apu_has_ldap_sslinit="1" 7616fi 7617 7618 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 7619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 7620$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 7621if eval \${$as_ac_Lib+:} false; then : 7622 $as_echo_n "(cached) " >&6 7623else 7624 ac_check_lib_save_LIBS=$LIBS 7625LIBS="-l${ldaplib} ${extralib} $LIBS" 7626cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7627/* end confdefs.h. */ 7628 7629/* Override any GCC internal prototype to avoid an error. 7630 Use char because int might match the return type of a GCC 7631 builtin and then its argument prototype would still apply. */ 7632#ifdef __cplusplus 7633extern "C" 7634#endif 7635char ldapssl_init (); 7636int 7637main () 7638{ 7639return ldapssl_init (); 7640 ; 7641 return 0; 7642} 7643_ACEOF 7644if ac_fn_c_try_link "$LINENO"; then : 7645 eval "$as_ac_Lib=yes" 7646else 7647 eval "$as_ac_Lib=no" 7648fi 7649rm -f core conftest.err conftest.$ac_objext \ 7650 conftest$ac_exeext conftest.$ac_ext 7651LIBS=$ac_check_lib_save_LIBS 7652fi 7653eval ac_res=\$$as_ac_Lib 7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7655$as_echo "$ac_res" >&6; } 7656if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7657 apu_has_ldapssl_init="1" 7658fi 7659 7660 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 7661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 7662$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 7663if eval \${$as_ac_Lib+:} false; then : 7664 $as_echo_n "(cached) " >&6 7665else 7666 ac_check_lib_save_LIBS=$LIBS 7667LIBS="-l${ldaplib} ${extralib} $LIBS" 7668cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7669/* end confdefs.h. */ 7670 7671/* Override any GCC internal prototype to avoid an error. 7672 Use char because int might match the return type of a GCC 7673 builtin and then its argument prototype would still apply. */ 7674#ifdef __cplusplus 7675extern "C" 7676#endif 7677char ldapssl_install_routines (); 7678int 7679main () 7680{ 7681return ldapssl_install_routines (); 7682 ; 7683 return 0; 7684} 7685_ACEOF 7686if ac_fn_c_try_link "$LINENO"; then : 7687 eval "$as_ac_Lib=yes" 7688else 7689 eval "$as_ac_Lib=no" 7690fi 7691rm -f core conftest.err conftest.$ac_objext \ 7692 conftest$ac_exeext conftest.$ac_ext 7693LIBS=$ac_check_lib_save_LIBS 7694fi 7695eval ac_res=\$$as_ac_Lib 7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7697$as_echo "$ac_res" >&6; } 7698if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7699 apu_has_ldapssl_install_routines="1" 7700fi 7701 7702 apu_has_ldap="1"; 7703 7704fi 7705 7706 fi 7707 7708 7709 if test ${apu_has_ldap} != "1"; then 7710 ldaplib="ldapsdk" 7711 extralib="-lldapx -lldapssl -lldapgss -lgssapi_krb5" 7712 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 7713 7714 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 7715 7716 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 7717 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 7718 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 7719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 7720$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 7721if eval \${$as_ac_Lib+:} false; then : 7722 $as_echo_n "(cached) " >&6 7723else 7724 ac_check_lib_save_LIBS=$LIBS 7725LIBS="-l${ldaplib} ${extralib} $LIBS" 7726cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7727/* end confdefs.h. */ 7728 7729/* Override any GCC internal prototype to avoid an error. 7730 Use char because int might match the return type of a GCC 7731 builtin and then its argument prototype would still apply. */ 7732#ifdef __cplusplus 7733extern "C" 7734#endif 7735char ldap_init (); 7736int 7737main () 7738{ 7739return ldap_init (); 7740 ; 7741 return 0; 7742} 7743_ACEOF 7744if ac_fn_c_try_link "$LINENO"; then : 7745 eval "$as_ac_Lib=yes" 7746else 7747 eval "$as_ac_Lib=no" 7748fi 7749rm -f core conftest.err conftest.$ac_objext \ 7750 conftest$ac_exeext conftest.$ac_ext 7751LIBS=$ac_check_lib_save_LIBS 7752fi 7753eval ac_res=\$$as_ac_Lib 7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7755$as_echo "$ac_res" >&6; } 7756if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7757 7758 LDADD_ldap_found="-l${ldaplib} ${extralib}" 7759 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 7760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 7761$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 7762if eval \${$as_ac_Lib+:} false; then : 7763 $as_echo_n "(cached) " >&6 7764else 7765 ac_check_lib_save_LIBS=$LIBS 7766LIBS="-l${ldaplib} ${extralib} $LIBS" 7767cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7768/* end confdefs.h. */ 7769 7770/* Override any GCC internal prototype to avoid an error. 7771 Use char because int might match the return type of a GCC 7772 builtin and then its argument prototype would still apply. */ 7773#ifdef __cplusplus 7774extern "C" 7775#endif 7776char ldapssl_client_init (); 7777int 7778main () 7779{ 7780return ldapssl_client_init (); 7781 ; 7782 return 0; 7783} 7784_ACEOF 7785if ac_fn_c_try_link "$LINENO"; then : 7786 eval "$as_ac_Lib=yes" 7787else 7788 eval "$as_ac_Lib=no" 7789fi 7790rm -f core conftest.err conftest.$ac_objext \ 7791 conftest$ac_exeext conftest.$ac_ext 7792LIBS=$ac_check_lib_save_LIBS 7793fi 7794eval ac_res=\$$as_ac_Lib 7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7796$as_echo "$ac_res" >&6; } 7797if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7798 apu_has_ldapssl_client_init="1" 7799fi 7800 7801 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 7802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 7803$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 7804if eval \${$as_ac_Lib+:} false; then : 7805 $as_echo_n "(cached) " >&6 7806else 7807 ac_check_lib_save_LIBS=$LIBS 7808LIBS="-l${ldaplib} ${extralib} $LIBS" 7809cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7810/* end confdefs.h. */ 7811 7812/* Override any GCC internal prototype to avoid an error. 7813 Use char because int might match the return type of a GCC 7814 builtin and then its argument prototype would still apply. */ 7815#ifdef __cplusplus 7816extern "C" 7817#endif 7818char ldapssl_client_deinit (); 7819int 7820main () 7821{ 7822return ldapssl_client_deinit (); 7823 ; 7824 return 0; 7825} 7826_ACEOF 7827if ac_fn_c_try_link "$LINENO"; then : 7828 eval "$as_ac_Lib=yes" 7829else 7830 eval "$as_ac_Lib=no" 7831fi 7832rm -f core conftest.err conftest.$ac_objext \ 7833 conftest$ac_exeext conftest.$ac_ext 7834LIBS=$ac_check_lib_save_LIBS 7835fi 7836eval ac_res=\$$as_ac_Lib 7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7838$as_echo "$ac_res" >&6; } 7839if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7840 apu_has_ldapssl_client_deinit="1" 7841fi 7842 7843 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 7844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 7845$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 7846if eval \${$as_ac_Lib+:} false; then : 7847 $as_echo_n "(cached) " >&6 7848else 7849 ac_check_lib_save_LIBS=$LIBS 7850LIBS="-l${ldaplib} ${extralib} $LIBS" 7851cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7852/* end confdefs.h. */ 7853 7854/* Override any GCC internal prototype to avoid an error. 7855 Use char because int might match the return type of a GCC 7856 builtin and then its argument prototype would still apply. */ 7857#ifdef __cplusplus 7858extern "C" 7859#endif 7860char ldapssl_add_trusted_cert (); 7861int 7862main () 7863{ 7864return ldapssl_add_trusted_cert (); 7865 ; 7866 return 0; 7867} 7868_ACEOF 7869if ac_fn_c_try_link "$LINENO"; then : 7870 eval "$as_ac_Lib=yes" 7871else 7872 eval "$as_ac_Lib=no" 7873fi 7874rm -f core conftest.err conftest.$ac_objext \ 7875 conftest$ac_exeext conftest.$ac_ext 7876LIBS=$ac_check_lib_save_LIBS 7877fi 7878eval ac_res=\$$as_ac_Lib 7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7880$as_echo "$ac_res" >&6; } 7881if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7882 apu_has_ldapssl_add_trusted_cert="1" 7883fi 7884 7885 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 7886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 7887$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 7888if eval \${$as_ac_Lib+:} false; then : 7889 $as_echo_n "(cached) " >&6 7890else 7891 ac_check_lib_save_LIBS=$LIBS 7892LIBS="-l${ldaplib} ${extralib} $LIBS" 7893cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7894/* end confdefs.h. */ 7895 7896/* Override any GCC internal prototype to avoid an error. 7897 Use char because int might match the return type of a GCC 7898 builtin and then its argument prototype would still apply. */ 7899#ifdef __cplusplus 7900extern "C" 7901#endif 7902char ldap_start_tls_s (); 7903int 7904main () 7905{ 7906return ldap_start_tls_s (); 7907 ; 7908 return 0; 7909} 7910_ACEOF 7911if ac_fn_c_try_link "$LINENO"; then : 7912 eval "$as_ac_Lib=yes" 7913else 7914 eval "$as_ac_Lib=no" 7915fi 7916rm -f core conftest.err conftest.$ac_objext \ 7917 conftest$ac_exeext conftest.$ac_ext 7918LIBS=$ac_check_lib_save_LIBS 7919fi 7920eval ac_res=\$$as_ac_Lib 7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7922$as_echo "$ac_res" >&6; } 7923if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7924 apu_has_ldap_start_tls_s="1" 7925fi 7926 7927 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 7928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 7929$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 7930if eval \${$as_ac_Lib+:} false; then : 7931 $as_echo_n "(cached) " >&6 7932else 7933 ac_check_lib_save_LIBS=$LIBS 7934LIBS="-l${ldaplib} ${extralib} $LIBS" 7935cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7936/* end confdefs.h. */ 7937 7938/* Override any GCC internal prototype to avoid an error. 7939 Use char because int might match the return type of a GCC 7940 builtin and then its argument prototype would still apply. */ 7941#ifdef __cplusplus 7942extern "C" 7943#endif 7944char ldap_sslinit (); 7945int 7946main () 7947{ 7948return ldap_sslinit (); 7949 ; 7950 return 0; 7951} 7952_ACEOF 7953if ac_fn_c_try_link "$LINENO"; then : 7954 eval "$as_ac_Lib=yes" 7955else 7956 eval "$as_ac_Lib=no" 7957fi 7958rm -f core conftest.err conftest.$ac_objext \ 7959 conftest$ac_exeext conftest.$ac_ext 7960LIBS=$ac_check_lib_save_LIBS 7961fi 7962eval ac_res=\$$as_ac_Lib 7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7964$as_echo "$ac_res" >&6; } 7965if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 7966 apu_has_ldap_sslinit="1" 7967fi 7968 7969 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 7970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 7971$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 7972if eval \${$as_ac_Lib+:} false; then : 7973 $as_echo_n "(cached) " >&6 7974else 7975 ac_check_lib_save_LIBS=$LIBS 7976LIBS="-l${ldaplib} ${extralib} $LIBS" 7977cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7978/* end confdefs.h. */ 7979 7980/* Override any GCC internal prototype to avoid an error. 7981 Use char because int might match the return type of a GCC 7982 builtin and then its argument prototype would still apply. */ 7983#ifdef __cplusplus 7984extern "C" 7985#endif 7986char ldapssl_init (); 7987int 7988main () 7989{ 7990return ldapssl_init (); 7991 ; 7992 return 0; 7993} 7994_ACEOF 7995if ac_fn_c_try_link "$LINENO"; then : 7996 eval "$as_ac_Lib=yes" 7997else 7998 eval "$as_ac_Lib=no" 7999fi 8000rm -f core conftest.err conftest.$ac_objext \ 8001 conftest$ac_exeext conftest.$ac_ext 8002LIBS=$ac_check_lib_save_LIBS 8003fi 8004eval ac_res=\$$as_ac_Lib 8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8006$as_echo "$ac_res" >&6; } 8007if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8008 apu_has_ldapssl_init="1" 8009fi 8010 8011 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 8012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 8013$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 8014if eval \${$as_ac_Lib+:} false; then : 8015 $as_echo_n "(cached) " >&6 8016else 8017 ac_check_lib_save_LIBS=$LIBS 8018LIBS="-l${ldaplib} ${extralib} $LIBS" 8019cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8020/* end confdefs.h. */ 8021 8022/* Override any GCC internal prototype to avoid an error. 8023 Use char because int might match the return type of a GCC 8024 builtin and then its argument prototype would still apply. */ 8025#ifdef __cplusplus 8026extern "C" 8027#endif 8028char ldapssl_install_routines (); 8029int 8030main () 8031{ 8032return ldapssl_install_routines (); 8033 ; 8034 return 0; 8035} 8036_ACEOF 8037if ac_fn_c_try_link "$LINENO"; then : 8038 eval "$as_ac_Lib=yes" 8039else 8040 eval "$as_ac_Lib=no" 8041fi 8042rm -f core conftest.err conftest.$ac_objext \ 8043 conftest$ac_exeext conftest.$ac_ext 8044LIBS=$ac_check_lib_save_LIBS 8045fi 8046eval ac_res=\$$as_ac_Lib 8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8048$as_echo "$ac_res" >&6; } 8049if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8050 apu_has_ldapssl_install_routines="1" 8051fi 8052 8053 apu_has_ldap="1"; 8054 8055fi 8056 8057 fi 8058 8059 8060 if test ${apu_has_ldap} != "1"; then 8061 ldaplib="ldapsdk" 8062 extralib="-lldapx -lldapssl -lldapgss -lgss -lresolv -lsocket" 8063 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 8064 8065 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 8066 8067 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 8068 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 8069 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 8070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 8071$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 8072if eval \${$as_ac_Lib+:} false; then : 8073 $as_echo_n "(cached) " >&6 8074else 8075 ac_check_lib_save_LIBS=$LIBS 8076LIBS="-l${ldaplib} ${extralib} $LIBS" 8077cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8078/* end confdefs.h. */ 8079 8080/* Override any GCC internal prototype to avoid an error. 8081 Use char because int might match the return type of a GCC 8082 builtin and then its argument prototype would still apply. */ 8083#ifdef __cplusplus 8084extern "C" 8085#endif 8086char ldap_init (); 8087int 8088main () 8089{ 8090return ldap_init (); 8091 ; 8092 return 0; 8093} 8094_ACEOF 8095if ac_fn_c_try_link "$LINENO"; then : 8096 eval "$as_ac_Lib=yes" 8097else 8098 eval "$as_ac_Lib=no" 8099fi 8100rm -f core conftest.err conftest.$ac_objext \ 8101 conftest$ac_exeext conftest.$ac_ext 8102LIBS=$ac_check_lib_save_LIBS 8103fi 8104eval ac_res=\$$as_ac_Lib 8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8106$as_echo "$ac_res" >&6; } 8107if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8108 8109 LDADD_ldap_found="-l${ldaplib} ${extralib}" 8110 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 8111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 8112$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 8113if eval \${$as_ac_Lib+:} false; then : 8114 $as_echo_n "(cached) " >&6 8115else 8116 ac_check_lib_save_LIBS=$LIBS 8117LIBS="-l${ldaplib} ${extralib} $LIBS" 8118cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8119/* end confdefs.h. */ 8120 8121/* Override any GCC internal prototype to avoid an error. 8122 Use char because int might match the return type of a GCC 8123 builtin and then its argument prototype would still apply. */ 8124#ifdef __cplusplus 8125extern "C" 8126#endif 8127char ldapssl_client_init (); 8128int 8129main () 8130{ 8131return ldapssl_client_init (); 8132 ; 8133 return 0; 8134} 8135_ACEOF 8136if ac_fn_c_try_link "$LINENO"; then : 8137 eval "$as_ac_Lib=yes" 8138else 8139 eval "$as_ac_Lib=no" 8140fi 8141rm -f core conftest.err conftest.$ac_objext \ 8142 conftest$ac_exeext conftest.$ac_ext 8143LIBS=$ac_check_lib_save_LIBS 8144fi 8145eval ac_res=\$$as_ac_Lib 8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8147$as_echo "$ac_res" >&6; } 8148if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8149 apu_has_ldapssl_client_init="1" 8150fi 8151 8152 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 8153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 8154$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 8155if eval \${$as_ac_Lib+:} false; then : 8156 $as_echo_n "(cached) " >&6 8157else 8158 ac_check_lib_save_LIBS=$LIBS 8159LIBS="-l${ldaplib} ${extralib} $LIBS" 8160cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8161/* end confdefs.h. */ 8162 8163/* Override any GCC internal prototype to avoid an error. 8164 Use char because int might match the return type of a GCC 8165 builtin and then its argument prototype would still apply. */ 8166#ifdef __cplusplus 8167extern "C" 8168#endif 8169char ldapssl_client_deinit (); 8170int 8171main () 8172{ 8173return ldapssl_client_deinit (); 8174 ; 8175 return 0; 8176} 8177_ACEOF 8178if ac_fn_c_try_link "$LINENO"; then : 8179 eval "$as_ac_Lib=yes" 8180else 8181 eval "$as_ac_Lib=no" 8182fi 8183rm -f core conftest.err conftest.$ac_objext \ 8184 conftest$ac_exeext conftest.$ac_ext 8185LIBS=$ac_check_lib_save_LIBS 8186fi 8187eval ac_res=\$$as_ac_Lib 8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8189$as_echo "$ac_res" >&6; } 8190if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8191 apu_has_ldapssl_client_deinit="1" 8192fi 8193 8194 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 8195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 8196$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 8197if eval \${$as_ac_Lib+:} false; then : 8198 $as_echo_n "(cached) " >&6 8199else 8200 ac_check_lib_save_LIBS=$LIBS 8201LIBS="-l${ldaplib} ${extralib} $LIBS" 8202cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8203/* end confdefs.h. */ 8204 8205/* Override any GCC internal prototype to avoid an error. 8206 Use char because int might match the return type of a GCC 8207 builtin and then its argument prototype would still apply. */ 8208#ifdef __cplusplus 8209extern "C" 8210#endif 8211char ldapssl_add_trusted_cert (); 8212int 8213main () 8214{ 8215return ldapssl_add_trusted_cert (); 8216 ; 8217 return 0; 8218} 8219_ACEOF 8220if ac_fn_c_try_link "$LINENO"; then : 8221 eval "$as_ac_Lib=yes" 8222else 8223 eval "$as_ac_Lib=no" 8224fi 8225rm -f core conftest.err conftest.$ac_objext \ 8226 conftest$ac_exeext conftest.$ac_ext 8227LIBS=$ac_check_lib_save_LIBS 8228fi 8229eval ac_res=\$$as_ac_Lib 8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8231$as_echo "$ac_res" >&6; } 8232if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8233 apu_has_ldapssl_add_trusted_cert="1" 8234fi 8235 8236 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 8237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 8238$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 8239if eval \${$as_ac_Lib+:} false; then : 8240 $as_echo_n "(cached) " >&6 8241else 8242 ac_check_lib_save_LIBS=$LIBS 8243LIBS="-l${ldaplib} ${extralib} $LIBS" 8244cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8245/* end confdefs.h. */ 8246 8247/* Override any GCC internal prototype to avoid an error. 8248 Use char because int might match the return type of a GCC 8249 builtin and then its argument prototype would still apply. */ 8250#ifdef __cplusplus 8251extern "C" 8252#endif 8253char ldap_start_tls_s (); 8254int 8255main () 8256{ 8257return ldap_start_tls_s (); 8258 ; 8259 return 0; 8260} 8261_ACEOF 8262if ac_fn_c_try_link "$LINENO"; then : 8263 eval "$as_ac_Lib=yes" 8264else 8265 eval "$as_ac_Lib=no" 8266fi 8267rm -f core conftest.err conftest.$ac_objext \ 8268 conftest$ac_exeext conftest.$ac_ext 8269LIBS=$ac_check_lib_save_LIBS 8270fi 8271eval ac_res=\$$as_ac_Lib 8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8273$as_echo "$ac_res" >&6; } 8274if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8275 apu_has_ldap_start_tls_s="1" 8276fi 8277 8278 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 8279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 8280$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 8281if eval \${$as_ac_Lib+:} false; then : 8282 $as_echo_n "(cached) " >&6 8283else 8284 ac_check_lib_save_LIBS=$LIBS 8285LIBS="-l${ldaplib} ${extralib} $LIBS" 8286cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8287/* end confdefs.h. */ 8288 8289/* Override any GCC internal prototype to avoid an error. 8290 Use char because int might match the return type of a GCC 8291 builtin and then its argument prototype would still apply. */ 8292#ifdef __cplusplus 8293extern "C" 8294#endif 8295char ldap_sslinit (); 8296int 8297main () 8298{ 8299return ldap_sslinit (); 8300 ; 8301 return 0; 8302} 8303_ACEOF 8304if ac_fn_c_try_link "$LINENO"; then : 8305 eval "$as_ac_Lib=yes" 8306else 8307 eval "$as_ac_Lib=no" 8308fi 8309rm -f core conftest.err conftest.$ac_objext \ 8310 conftest$ac_exeext conftest.$ac_ext 8311LIBS=$ac_check_lib_save_LIBS 8312fi 8313eval ac_res=\$$as_ac_Lib 8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8315$as_echo "$ac_res" >&6; } 8316if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8317 apu_has_ldap_sslinit="1" 8318fi 8319 8320 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 8321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 8322$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 8323if eval \${$as_ac_Lib+:} false; then : 8324 $as_echo_n "(cached) " >&6 8325else 8326 ac_check_lib_save_LIBS=$LIBS 8327LIBS="-l${ldaplib} ${extralib} $LIBS" 8328cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8329/* end confdefs.h. */ 8330 8331/* Override any GCC internal prototype to avoid an error. 8332 Use char because int might match the return type of a GCC 8333 builtin and then its argument prototype would still apply. */ 8334#ifdef __cplusplus 8335extern "C" 8336#endif 8337char ldapssl_init (); 8338int 8339main () 8340{ 8341return ldapssl_init (); 8342 ; 8343 return 0; 8344} 8345_ACEOF 8346if ac_fn_c_try_link "$LINENO"; then : 8347 eval "$as_ac_Lib=yes" 8348else 8349 eval "$as_ac_Lib=no" 8350fi 8351rm -f core conftest.err conftest.$ac_objext \ 8352 conftest$ac_exeext conftest.$ac_ext 8353LIBS=$ac_check_lib_save_LIBS 8354fi 8355eval ac_res=\$$as_ac_Lib 8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8357$as_echo "$ac_res" >&6; } 8358if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8359 apu_has_ldapssl_init="1" 8360fi 8361 8362 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 8363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 8364$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 8365if eval \${$as_ac_Lib+:} false; then : 8366 $as_echo_n "(cached) " >&6 8367else 8368 ac_check_lib_save_LIBS=$LIBS 8369LIBS="-l${ldaplib} ${extralib} $LIBS" 8370cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8371/* end confdefs.h. */ 8372 8373/* Override any GCC internal prototype to avoid an error. 8374 Use char because int might match the return type of a GCC 8375 builtin and then its argument prototype would still apply. */ 8376#ifdef __cplusplus 8377extern "C" 8378#endif 8379char ldapssl_install_routines (); 8380int 8381main () 8382{ 8383return ldapssl_install_routines (); 8384 ; 8385 return 0; 8386} 8387_ACEOF 8388if ac_fn_c_try_link "$LINENO"; then : 8389 eval "$as_ac_Lib=yes" 8390else 8391 eval "$as_ac_Lib=no" 8392fi 8393rm -f core conftest.err conftest.$ac_objext \ 8394 conftest$ac_exeext conftest.$ac_ext 8395LIBS=$ac_check_lib_save_LIBS 8396fi 8397eval ac_res=\$$as_ac_Lib 8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8399$as_echo "$ac_res" >&6; } 8400if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8401 apu_has_ldapssl_install_routines="1" 8402fi 8403 8404 apu_has_ldap="1"; 8405 8406fi 8407 8408 fi 8409 8410 8411 if test ${apu_has_ldap} != "1"; then 8412 ldaplib="ldap" 8413 extralib="-llber" 8414 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 8415 8416 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 8417 8418 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 8419 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 8420 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 8421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 8422$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 8423if eval \${$as_ac_Lib+:} false; then : 8424 $as_echo_n "(cached) " >&6 8425else 8426 ac_check_lib_save_LIBS=$LIBS 8427LIBS="-l${ldaplib} ${extralib} $LIBS" 8428cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8429/* end confdefs.h. */ 8430 8431/* Override any GCC internal prototype to avoid an error. 8432 Use char because int might match the return type of a GCC 8433 builtin and then its argument prototype would still apply. */ 8434#ifdef __cplusplus 8435extern "C" 8436#endif 8437char ldap_init (); 8438int 8439main () 8440{ 8441return ldap_init (); 8442 ; 8443 return 0; 8444} 8445_ACEOF 8446if ac_fn_c_try_link "$LINENO"; then : 8447 eval "$as_ac_Lib=yes" 8448else 8449 eval "$as_ac_Lib=no" 8450fi 8451rm -f core conftest.err conftest.$ac_objext \ 8452 conftest$ac_exeext conftest.$ac_ext 8453LIBS=$ac_check_lib_save_LIBS 8454fi 8455eval ac_res=\$$as_ac_Lib 8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8457$as_echo "$ac_res" >&6; } 8458if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8459 8460 LDADD_ldap_found="-l${ldaplib} ${extralib}" 8461 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 8462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 8463$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 8464if eval \${$as_ac_Lib+:} false; then : 8465 $as_echo_n "(cached) " >&6 8466else 8467 ac_check_lib_save_LIBS=$LIBS 8468LIBS="-l${ldaplib} ${extralib} $LIBS" 8469cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8470/* end confdefs.h. */ 8471 8472/* Override any GCC internal prototype to avoid an error. 8473 Use char because int might match the return type of a GCC 8474 builtin and then its argument prototype would still apply. */ 8475#ifdef __cplusplus 8476extern "C" 8477#endif 8478char ldapssl_client_init (); 8479int 8480main () 8481{ 8482return ldapssl_client_init (); 8483 ; 8484 return 0; 8485} 8486_ACEOF 8487if ac_fn_c_try_link "$LINENO"; then : 8488 eval "$as_ac_Lib=yes" 8489else 8490 eval "$as_ac_Lib=no" 8491fi 8492rm -f core conftest.err conftest.$ac_objext \ 8493 conftest$ac_exeext conftest.$ac_ext 8494LIBS=$ac_check_lib_save_LIBS 8495fi 8496eval ac_res=\$$as_ac_Lib 8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8498$as_echo "$ac_res" >&6; } 8499if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8500 apu_has_ldapssl_client_init="1" 8501fi 8502 8503 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 8504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 8505$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 8506if eval \${$as_ac_Lib+:} false; then : 8507 $as_echo_n "(cached) " >&6 8508else 8509 ac_check_lib_save_LIBS=$LIBS 8510LIBS="-l${ldaplib} ${extralib} $LIBS" 8511cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8512/* end confdefs.h. */ 8513 8514/* Override any GCC internal prototype to avoid an error. 8515 Use char because int might match the return type of a GCC 8516 builtin and then its argument prototype would still apply. */ 8517#ifdef __cplusplus 8518extern "C" 8519#endif 8520char ldapssl_client_deinit (); 8521int 8522main () 8523{ 8524return ldapssl_client_deinit (); 8525 ; 8526 return 0; 8527} 8528_ACEOF 8529if ac_fn_c_try_link "$LINENO"; then : 8530 eval "$as_ac_Lib=yes" 8531else 8532 eval "$as_ac_Lib=no" 8533fi 8534rm -f core conftest.err conftest.$ac_objext \ 8535 conftest$ac_exeext conftest.$ac_ext 8536LIBS=$ac_check_lib_save_LIBS 8537fi 8538eval ac_res=\$$as_ac_Lib 8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8540$as_echo "$ac_res" >&6; } 8541if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8542 apu_has_ldapssl_client_deinit="1" 8543fi 8544 8545 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 8546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 8547$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 8548if eval \${$as_ac_Lib+:} false; then : 8549 $as_echo_n "(cached) " >&6 8550else 8551 ac_check_lib_save_LIBS=$LIBS 8552LIBS="-l${ldaplib} ${extralib} $LIBS" 8553cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8554/* end confdefs.h. */ 8555 8556/* Override any GCC internal prototype to avoid an error. 8557 Use char because int might match the return type of a GCC 8558 builtin and then its argument prototype would still apply. */ 8559#ifdef __cplusplus 8560extern "C" 8561#endif 8562char ldapssl_add_trusted_cert (); 8563int 8564main () 8565{ 8566return ldapssl_add_trusted_cert (); 8567 ; 8568 return 0; 8569} 8570_ACEOF 8571if ac_fn_c_try_link "$LINENO"; then : 8572 eval "$as_ac_Lib=yes" 8573else 8574 eval "$as_ac_Lib=no" 8575fi 8576rm -f core conftest.err conftest.$ac_objext \ 8577 conftest$ac_exeext conftest.$ac_ext 8578LIBS=$ac_check_lib_save_LIBS 8579fi 8580eval ac_res=\$$as_ac_Lib 8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8582$as_echo "$ac_res" >&6; } 8583if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8584 apu_has_ldapssl_add_trusted_cert="1" 8585fi 8586 8587 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 8588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 8589$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 8590if eval \${$as_ac_Lib+:} false; then : 8591 $as_echo_n "(cached) " >&6 8592else 8593 ac_check_lib_save_LIBS=$LIBS 8594LIBS="-l${ldaplib} ${extralib} $LIBS" 8595cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8596/* end confdefs.h. */ 8597 8598/* Override any GCC internal prototype to avoid an error. 8599 Use char because int might match the return type of a GCC 8600 builtin and then its argument prototype would still apply. */ 8601#ifdef __cplusplus 8602extern "C" 8603#endif 8604char ldap_start_tls_s (); 8605int 8606main () 8607{ 8608return ldap_start_tls_s (); 8609 ; 8610 return 0; 8611} 8612_ACEOF 8613if ac_fn_c_try_link "$LINENO"; then : 8614 eval "$as_ac_Lib=yes" 8615else 8616 eval "$as_ac_Lib=no" 8617fi 8618rm -f core conftest.err conftest.$ac_objext \ 8619 conftest$ac_exeext conftest.$ac_ext 8620LIBS=$ac_check_lib_save_LIBS 8621fi 8622eval ac_res=\$$as_ac_Lib 8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8624$as_echo "$ac_res" >&6; } 8625if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8626 apu_has_ldap_start_tls_s="1" 8627fi 8628 8629 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 8630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 8631$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 8632if eval \${$as_ac_Lib+:} false; then : 8633 $as_echo_n "(cached) " >&6 8634else 8635 ac_check_lib_save_LIBS=$LIBS 8636LIBS="-l${ldaplib} ${extralib} $LIBS" 8637cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8638/* end confdefs.h. */ 8639 8640/* Override any GCC internal prototype to avoid an error. 8641 Use char because int might match the return type of a GCC 8642 builtin and then its argument prototype would still apply. */ 8643#ifdef __cplusplus 8644extern "C" 8645#endif 8646char ldap_sslinit (); 8647int 8648main () 8649{ 8650return ldap_sslinit (); 8651 ; 8652 return 0; 8653} 8654_ACEOF 8655if ac_fn_c_try_link "$LINENO"; then : 8656 eval "$as_ac_Lib=yes" 8657else 8658 eval "$as_ac_Lib=no" 8659fi 8660rm -f core conftest.err conftest.$ac_objext \ 8661 conftest$ac_exeext conftest.$ac_ext 8662LIBS=$ac_check_lib_save_LIBS 8663fi 8664eval ac_res=\$$as_ac_Lib 8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8666$as_echo "$ac_res" >&6; } 8667if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8668 apu_has_ldap_sslinit="1" 8669fi 8670 8671 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 8672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 8673$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 8674if eval \${$as_ac_Lib+:} false; then : 8675 $as_echo_n "(cached) " >&6 8676else 8677 ac_check_lib_save_LIBS=$LIBS 8678LIBS="-l${ldaplib} ${extralib} $LIBS" 8679cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8680/* end confdefs.h. */ 8681 8682/* Override any GCC internal prototype to avoid an error. 8683 Use char because int might match the return type of a GCC 8684 builtin and then its argument prototype would still apply. */ 8685#ifdef __cplusplus 8686extern "C" 8687#endif 8688char ldapssl_init (); 8689int 8690main () 8691{ 8692return ldapssl_init (); 8693 ; 8694 return 0; 8695} 8696_ACEOF 8697if ac_fn_c_try_link "$LINENO"; then : 8698 eval "$as_ac_Lib=yes" 8699else 8700 eval "$as_ac_Lib=no" 8701fi 8702rm -f core conftest.err conftest.$ac_objext \ 8703 conftest$ac_exeext conftest.$ac_ext 8704LIBS=$ac_check_lib_save_LIBS 8705fi 8706eval ac_res=\$$as_ac_Lib 8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8708$as_echo "$ac_res" >&6; } 8709if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8710 apu_has_ldapssl_init="1" 8711fi 8712 8713 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 8714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 8715$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 8716if eval \${$as_ac_Lib+:} false; then : 8717 $as_echo_n "(cached) " >&6 8718else 8719 ac_check_lib_save_LIBS=$LIBS 8720LIBS="-l${ldaplib} ${extralib} $LIBS" 8721cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8722/* end confdefs.h. */ 8723 8724/* Override any GCC internal prototype to avoid an error. 8725 Use char because int might match the return type of a GCC 8726 builtin and then its argument prototype would still apply. */ 8727#ifdef __cplusplus 8728extern "C" 8729#endif 8730char ldapssl_install_routines (); 8731int 8732main () 8733{ 8734return ldapssl_install_routines (); 8735 ; 8736 return 0; 8737} 8738_ACEOF 8739if ac_fn_c_try_link "$LINENO"; then : 8740 eval "$as_ac_Lib=yes" 8741else 8742 eval "$as_ac_Lib=no" 8743fi 8744rm -f core conftest.err conftest.$ac_objext \ 8745 conftest$ac_exeext conftest.$ac_ext 8746LIBS=$ac_check_lib_save_LIBS 8747fi 8748eval ac_res=\$$as_ac_Lib 8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8750$as_echo "$ac_res" >&6; } 8751if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8752 apu_has_ldapssl_install_routines="1" 8753fi 8754 8755 apu_has_ldap="1"; 8756 8757fi 8758 8759 fi 8760 8761 8762 if test ${apu_has_ldap} != "1"; then 8763 ldaplib="ldap" 8764 extralib="-llber -lresolv" 8765 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 8766 8767 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 8768 8769 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 8770 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 8771 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 8772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 8773$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 8774if eval \${$as_ac_Lib+:} false; then : 8775 $as_echo_n "(cached) " >&6 8776else 8777 ac_check_lib_save_LIBS=$LIBS 8778LIBS="-l${ldaplib} ${extralib} $LIBS" 8779cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8780/* end confdefs.h. */ 8781 8782/* Override any GCC internal prototype to avoid an error. 8783 Use char because int might match the return type of a GCC 8784 builtin and then its argument prototype would still apply. */ 8785#ifdef __cplusplus 8786extern "C" 8787#endif 8788char ldap_init (); 8789int 8790main () 8791{ 8792return ldap_init (); 8793 ; 8794 return 0; 8795} 8796_ACEOF 8797if ac_fn_c_try_link "$LINENO"; then : 8798 eval "$as_ac_Lib=yes" 8799else 8800 eval "$as_ac_Lib=no" 8801fi 8802rm -f core conftest.err conftest.$ac_objext \ 8803 conftest$ac_exeext conftest.$ac_ext 8804LIBS=$ac_check_lib_save_LIBS 8805fi 8806eval ac_res=\$$as_ac_Lib 8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8808$as_echo "$ac_res" >&6; } 8809if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8810 8811 LDADD_ldap_found="-l${ldaplib} ${extralib}" 8812 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 8813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 8814$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 8815if eval \${$as_ac_Lib+:} false; then : 8816 $as_echo_n "(cached) " >&6 8817else 8818 ac_check_lib_save_LIBS=$LIBS 8819LIBS="-l${ldaplib} ${extralib} $LIBS" 8820cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8821/* end confdefs.h. */ 8822 8823/* Override any GCC internal prototype to avoid an error. 8824 Use char because int might match the return type of a GCC 8825 builtin and then its argument prototype would still apply. */ 8826#ifdef __cplusplus 8827extern "C" 8828#endif 8829char ldapssl_client_init (); 8830int 8831main () 8832{ 8833return ldapssl_client_init (); 8834 ; 8835 return 0; 8836} 8837_ACEOF 8838if ac_fn_c_try_link "$LINENO"; then : 8839 eval "$as_ac_Lib=yes" 8840else 8841 eval "$as_ac_Lib=no" 8842fi 8843rm -f core conftest.err conftest.$ac_objext \ 8844 conftest$ac_exeext conftest.$ac_ext 8845LIBS=$ac_check_lib_save_LIBS 8846fi 8847eval ac_res=\$$as_ac_Lib 8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8849$as_echo "$ac_res" >&6; } 8850if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8851 apu_has_ldapssl_client_init="1" 8852fi 8853 8854 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 8855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 8856$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 8857if eval \${$as_ac_Lib+:} false; then : 8858 $as_echo_n "(cached) " >&6 8859else 8860 ac_check_lib_save_LIBS=$LIBS 8861LIBS="-l${ldaplib} ${extralib} $LIBS" 8862cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8863/* end confdefs.h. */ 8864 8865/* Override any GCC internal prototype to avoid an error. 8866 Use char because int might match the return type of a GCC 8867 builtin and then its argument prototype would still apply. */ 8868#ifdef __cplusplus 8869extern "C" 8870#endif 8871char ldapssl_client_deinit (); 8872int 8873main () 8874{ 8875return ldapssl_client_deinit (); 8876 ; 8877 return 0; 8878} 8879_ACEOF 8880if ac_fn_c_try_link "$LINENO"; then : 8881 eval "$as_ac_Lib=yes" 8882else 8883 eval "$as_ac_Lib=no" 8884fi 8885rm -f core conftest.err conftest.$ac_objext \ 8886 conftest$ac_exeext conftest.$ac_ext 8887LIBS=$ac_check_lib_save_LIBS 8888fi 8889eval ac_res=\$$as_ac_Lib 8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8891$as_echo "$ac_res" >&6; } 8892if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8893 apu_has_ldapssl_client_deinit="1" 8894fi 8895 8896 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 8897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 8898$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 8899if eval \${$as_ac_Lib+:} false; then : 8900 $as_echo_n "(cached) " >&6 8901else 8902 ac_check_lib_save_LIBS=$LIBS 8903LIBS="-l${ldaplib} ${extralib} $LIBS" 8904cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8905/* end confdefs.h. */ 8906 8907/* Override any GCC internal prototype to avoid an error. 8908 Use char because int might match the return type of a GCC 8909 builtin and then its argument prototype would still apply. */ 8910#ifdef __cplusplus 8911extern "C" 8912#endif 8913char ldapssl_add_trusted_cert (); 8914int 8915main () 8916{ 8917return ldapssl_add_trusted_cert (); 8918 ; 8919 return 0; 8920} 8921_ACEOF 8922if ac_fn_c_try_link "$LINENO"; then : 8923 eval "$as_ac_Lib=yes" 8924else 8925 eval "$as_ac_Lib=no" 8926fi 8927rm -f core conftest.err conftest.$ac_objext \ 8928 conftest$ac_exeext conftest.$ac_ext 8929LIBS=$ac_check_lib_save_LIBS 8930fi 8931eval ac_res=\$$as_ac_Lib 8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8933$as_echo "$ac_res" >&6; } 8934if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8935 apu_has_ldapssl_add_trusted_cert="1" 8936fi 8937 8938 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 8939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 8940$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 8941if eval \${$as_ac_Lib+:} false; then : 8942 $as_echo_n "(cached) " >&6 8943else 8944 ac_check_lib_save_LIBS=$LIBS 8945LIBS="-l${ldaplib} ${extralib} $LIBS" 8946cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8947/* end confdefs.h. */ 8948 8949/* Override any GCC internal prototype to avoid an error. 8950 Use char because int might match the return type of a GCC 8951 builtin and then its argument prototype would still apply. */ 8952#ifdef __cplusplus 8953extern "C" 8954#endif 8955char ldap_start_tls_s (); 8956int 8957main () 8958{ 8959return ldap_start_tls_s (); 8960 ; 8961 return 0; 8962} 8963_ACEOF 8964if ac_fn_c_try_link "$LINENO"; then : 8965 eval "$as_ac_Lib=yes" 8966else 8967 eval "$as_ac_Lib=no" 8968fi 8969rm -f core conftest.err conftest.$ac_objext \ 8970 conftest$ac_exeext conftest.$ac_ext 8971LIBS=$ac_check_lib_save_LIBS 8972fi 8973eval ac_res=\$$as_ac_Lib 8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8975$as_echo "$ac_res" >&6; } 8976if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 8977 apu_has_ldap_start_tls_s="1" 8978fi 8979 8980 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 8981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 8982$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 8983if eval \${$as_ac_Lib+:} false; then : 8984 $as_echo_n "(cached) " >&6 8985else 8986 ac_check_lib_save_LIBS=$LIBS 8987LIBS="-l${ldaplib} ${extralib} $LIBS" 8988cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8989/* end confdefs.h. */ 8990 8991/* Override any GCC internal prototype to avoid an error. 8992 Use char because int might match the return type of a GCC 8993 builtin and then its argument prototype would still apply. */ 8994#ifdef __cplusplus 8995extern "C" 8996#endif 8997char ldap_sslinit (); 8998int 8999main () 9000{ 9001return ldap_sslinit (); 9002 ; 9003 return 0; 9004} 9005_ACEOF 9006if ac_fn_c_try_link "$LINENO"; then : 9007 eval "$as_ac_Lib=yes" 9008else 9009 eval "$as_ac_Lib=no" 9010fi 9011rm -f core conftest.err conftest.$ac_objext \ 9012 conftest$ac_exeext conftest.$ac_ext 9013LIBS=$ac_check_lib_save_LIBS 9014fi 9015eval ac_res=\$$as_ac_Lib 9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9017$as_echo "$ac_res" >&6; } 9018if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9019 apu_has_ldap_sslinit="1" 9020fi 9021 9022 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 9023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 9024$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 9025if eval \${$as_ac_Lib+:} false; then : 9026 $as_echo_n "(cached) " >&6 9027else 9028 ac_check_lib_save_LIBS=$LIBS 9029LIBS="-l${ldaplib} ${extralib} $LIBS" 9030cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9031/* end confdefs.h. */ 9032 9033/* Override any GCC internal prototype to avoid an error. 9034 Use char because int might match the return type of a GCC 9035 builtin and then its argument prototype would still apply. */ 9036#ifdef __cplusplus 9037extern "C" 9038#endif 9039char ldapssl_init (); 9040int 9041main () 9042{ 9043return ldapssl_init (); 9044 ; 9045 return 0; 9046} 9047_ACEOF 9048if ac_fn_c_try_link "$LINENO"; then : 9049 eval "$as_ac_Lib=yes" 9050else 9051 eval "$as_ac_Lib=no" 9052fi 9053rm -f core conftest.err conftest.$ac_objext \ 9054 conftest$ac_exeext conftest.$ac_ext 9055LIBS=$ac_check_lib_save_LIBS 9056fi 9057eval ac_res=\$$as_ac_Lib 9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9059$as_echo "$ac_res" >&6; } 9060if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9061 apu_has_ldapssl_init="1" 9062fi 9063 9064 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 9065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 9066$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 9067if eval \${$as_ac_Lib+:} false; then : 9068 $as_echo_n "(cached) " >&6 9069else 9070 ac_check_lib_save_LIBS=$LIBS 9071LIBS="-l${ldaplib} ${extralib} $LIBS" 9072cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9073/* end confdefs.h. */ 9074 9075/* Override any GCC internal prototype to avoid an error. 9076 Use char because int might match the return type of a GCC 9077 builtin and then its argument prototype would still apply. */ 9078#ifdef __cplusplus 9079extern "C" 9080#endif 9081char ldapssl_install_routines (); 9082int 9083main () 9084{ 9085return ldapssl_install_routines (); 9086 ; 9087 return 0; 9088} 9089_ACEOF 9090if ac_fn_c_try_link "$LINENO"; then : 9091 eval "$as_ac_Lib=yes" 9092else 9093 eval "$as_ac_Lib=no" 9094fi 9095rm -f core conftest.err conftest.$ac_objext \ 9096 conftest$ac_exeext conftest.$ac_ext 9097LIBS=$ac_check_lib_save_LIBS 9098fi 9099eval ac_res=\$$as_ac_Lib 9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9101$as_echo "$ac_res" >&6; } 9102if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9103 apu_has_ldapssl_install_routines="1" 9104fi 9105 9106 apu_has_ldap="1"; 9107 9108fi 9109 9110 fi 9111 9112 9113 if test ${apu_has_ldap} != "1"; then 9114 ldaplib="ldap" 9115 extralib="-llber -lresolv -lsocket -lnsl" 9116 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 9117 9118 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 9119 9120 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 9121 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 9122 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 9123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 9124$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 9125if eval \${$as_ac_Lib+:} false; then : 9126 $as_echo_n "(cached) " >&6 9127else 9128 ac_check_lib_save_LIBS=$LIBS 9129LIBS="-l${ldaplib} ${extralib} $LIBS" 9130cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9131/* end confdefs.h. */ 9132 9133/* Override any GCC internal prototype to avoid an error. 9134 Use char because int might match the return type of a GCC 9135 builtin and then its argument prototype would still apply. */ 9136#ifdef __cplusplus 9137extern "C" 9138#endif 9139char ldap_init (); 9140int 9141main () 9142{ 9143return ldap_init (); 9144 ; 9145 return 0; 9146} 9147_ACEOF 9148if ac_fn_c_try_link "$LINENO"; then : 9149 eval "$as_ac_Lib=yes" 9150else 9151 eval "$as_ac_Lib=no" 9152fi 9153rm -f core conftest.err conftest.$ac_objext \ 9154 conftest$ac_exeext conftest.$ac_ext 9155LIBS=$ac_check_lib_save_LIBS 9156fi 9157eval ac_res=\$$as_ac_Lib 9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9159$as_echo "$ac_res" >&6; } 9160if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9161 9162 LDADD_ldap_found="-l${ldaplib} ${extralib}" 9163 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 9164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 9165$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 9166if eval \${$as_ac_Lib+:} false; then : 9167 $as_echo_n "(cached) " >&6 9168else 9169 ac_check_lib_save_LIBS=$LIBS 9170LIBS="-l${ldaplib} ${extralib} $LIBS" 9171cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9172/* end confdefs.h. */ 9173 9174/* Override any GCC internal prototype to avoid an error. 9175 Use char because int might match the return type of a GCC 9176 builtin and then its argument prototype would still apply. */ 9177#ifdef __cplusplus 9178extern "C" 9179#endif 9180char ldapssl_client_init (); 9181int 9182main () 9183{ 9184return ldapssl_client_init (); 9185 ; 9186 return 0; 9187} 9188_ACEOF 9189if ac_fn_c_try_link "$LINENO"; then : 9190 eval "$as_ac_Lib=yes" 9191else 9192 eval "$as_ac_Lib=no" 9193fi 9194rm -f core conftest.err conftest.$ac_objext \ 9195 conftest$ac_exeext conftest.$ac_ext 9196LIBS=$ac_check_lib_save_LIBS 9197fi 9198eval ac_res=\$$as_ac_Lib 9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9200$as_echo "$ac_res" >&6; } 9201if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9202 apu_has_ldapssl_client_init="1" 9203fi 9204 9205 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 9206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 9207$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 9208if eval \${$as_ac_Lib+:} false; then : 9209 $as_echo_n "(cached) " >&6 9210else 9211 ac_check_lib_save_LIBS=$LIBS 9212LIBS="-l${ldaplib} ${extralib} $LIBS" 9213cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9214/* end confdefs.h. */ 9215 9216/* Override any GCC internal prototype to avoid an error. 9217 Use char because int might match the return type of a GCC 9218 builtin and then its argument prototype would still apply. */ 9219#ifdef __cplusplus 9220extern "C" 9221#endif 9222char ldapssl_client_deinit (); 9223int 9224main () 9225{ 9226return ldapssl_client_deinit (); 9227 ; 9228 return 0; 9229} 9230_ACEOF 9231if ac_fn_c_try_link "$LINENO"; then : 9232 eval "$as_ac_Lib=yes" 9233else 9234 eval "$as_ac_Lib=no" 9235fi 9236rm -f core conftest.err conftest.$ac_objext \ 9237 conftest$ac_exeext conftest.$ac_ext 9238LIBS=$ac_check_lib_save_LIBS 9239fi 9240eval ac_res=\$$as_ac_Lib 9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9242$as_echo "$ac_res" >&6; } 9243if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9244 apu_has_ldapssl_client_deinit="1" 9245fi 9246 9247 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 9248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 9249$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 9250if eval \${$as_ac_Lib+:} false; then : 9251 $as_echo_n "(cached) " >&6 9252else 9253 ac_check_lib_save_LIBS=$LIBS 9254LIBS="-l${ldaplib} ${extralib} $LIBS" 9255cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9256/* end confdefs.h. */ 9257 9258/* Override any GCC internal prototype to avoid an error. 9259 Use char because int might match the return type of a GCC 9260 builtin and then its argument prototype would still apply. */ 9261#ifdef __cplusplus 9262extern "C" 9263#endif 9264char ldapssl_add_trusted_cert (); 9265int 9266main () 9267{ 9268return ldapssl_add_trusted_cert (); 9269 ; 9270 return 0; 9271} 9272_ACEOF 9273if ac_fn_c_try_link "$LINENO"; then : 9274 eval "$as_ac_Lib=yes" 9275else 9276 eval "$as_ac_Lib=no" 9277fi 9278rm -f core conftest.err conftest.$ac_objext \ 9279 conftest$ac_exeext conftest.$ac_ext 9280LIBS=$ac_check_lib_save_LIBS 9281fi 9282eval ac_res=\$$as_ac_Lib 9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9284$as_echo "$ac_res" >&6; } 9285if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9286 apu_has_ldapssl_add_trusted_cert="1" 9287fi 9288 9289 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 9290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 9291$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 9292if eval \${$as_ac_Lib+:} false; then : 9293 $as_echo_n "(cached) " >&6 9294else 9295 ac_check_lib_save_LIBS=$LIBS 9296LIBS="-l${ldaplib} ${extralib} $LIBS" 9297cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9298/* end confdefs.h. */ 9299 9300/* Override any GCC internal prototype to avoid an error. 9301 Use char because int might match the return type of a GCC 9302 builtin and then its argument prototype would still apply. */ 9303#ifdef __cplusplus 9304extern "C" 9305#endif 9306char ldap_start_tls_s (); 9307int 9308main () 9309{ 9310return ldap_start_tls_s (); 9311 ; 9312 return 0; 9313} 9314_ACEOF 9315if ac_fn_c_try_link "$LINENO"; then : 9316 eval "$as_ac_Lib=yes" 9317else 9318 eval "$as_ac_Lib=no" 9319fi 9320rm -f core conftest.err conftest.$ac_objext \ 9321 conftest$ac_exeext conftest.$ac_ext 9322LIBS=$ac_check_lib_save_LIBS 9323fi 9324eval ac_res=\$$as_ac_Lib 9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9326$as_echo "$ac_res" >&6; } 9327if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9328 apu_has_ldap_start_tls_s="1" 9329fi 9330 9331 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 9332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 9333$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 9334if eval \${$as_ac_Lib+:} false; then : 9335 $as_echo_n "(cached) " >&6 9336else 9337 ac_check_lib_save_LIBS=$LIBS 9338LIBS="-l${ldaplib} ${extralib} $LIBS" 9339cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9340/* end confdefs.h. */ 9341 9342/* Override any GCC internal prototype to avoid an error. 9343 Use char because int might match the return type of a GCC 9344 builtin and then its argument prototype would still apply. */ 9345#ifdef __cplusplus 9346extern "C" 9347#endif 9348char ldap_sslinit (); 9349int 9350main () 9351{ 9352return ldap_sslinit (); 9353 ; 9354 return 0; 9355} 9356_ACEOF 9357if ac_fn_c_try_link "$LINENO"; then : 9358 eval "$as_ac_Lib=yes" 9359else 9360 eval "$as_ac_Lib=no" 9361fi 9362rm -f core conftest.err conftest.$ac_objext \ 9363 conftest$ac_exeext conftest.$ac_ext 9364LIBS=$ac_check_lib_save_LIBS 9365fi 9366eval ac_res=\$$as_ac_Lib 9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9368$as_echo "$ac_res" >&6; } 9369if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9370 apu_has_ldap_sslinit="1" 9371fi 9372 9373 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 9374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 9375$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 9376if eval \${$as_ac_Lib+:} false; then : 9377 $as_echo_n "(cached) " >&6 9378else 9379 ac_check_lib_save_LIBS=$LIBS 9380LIBS="-l${ldaplib} ${extralib} $LIBS" 9381cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9382/* end confdefs.h. */ 9383 9384/* Override any GCC internal prototype to avoid an error. 9385 Use char because int might match the return type of a GCC 9386 builtin and then its argument prototype would still apply. */ 9387#ifdef __cplusplus 9388extern "C" 9389#endif 9390char ldapssl_init (); 9391int 9392main () 9393{ 9394return ldapssl_init (); 9395 ; 9396 return 0; 9397} 9398_ACEOF 9399if ac_fn_c_try_link "$LINENO"; then : 9400 eval "$as_ac_Lib=yes" 9401else 9402 eval "$as_ac_Lib=no" 9403fi 9404rm -f core conftest.err conftest.$ac_objext \ 9405 conftest$ac_exeext conftest.$ac_ext 9406LIBS=$ac_check_lib_save_LIBS 9407fi 9408eval ac_res=\$$as_ac_Lib 9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9410$as_echo "$ac_res" >&6; } 9411if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9412 apu_has_ldapssl_init="1" 9413fi 9414 9415 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 9416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 9417$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 9418if eval \${$as_ac_Lib+:} false; then : 9419 $as_echo_n "(cached) " >&6 9420else 9421 ac_check_lib_save_LIBS=$LIBS 9422LIBS="-l${ldaplib} ${extralib} $LIBS" 9423cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9424/* end confdefs.h. */ 9425 9426/* Override any GCC internal prototype to avoid an error. 9427 Use char because int might match the return type of a GCC 9428 builtin and then its argument prototype would still apply. */ 9429#ifdef __cplusplus 9430extern "C" 9431#endif 9432char ldapssl_install_routines (); 9433int 9434main () 9435{ 9436return ldapssl_install_routines (); 9437 ; 9438 return 0; 9439} 9440_ACEOF 9441if ac_fn_c_try_link "$LINENO"; then : 9442 eval "$as_ac_Lib=yes" 9443else 9444 eval "$as_ac_Lib=no" 9445fi 9446rm -f core conftest.err conftest.$ac_objext \ 9447 conftest$ac_exeext conftest.$ac_ext 9448LIBS=$ac_check_lib_save_LIBS 9449fi 9450eval ac_res=\$$as_ac_Lib 9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9452$as_echo "$ac_res" >&6; } 9453if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9454 apu_has_ldapssl_install_routines="1" 9455fi 9456 9457 apu_has_ldap="1"; 9458 9459fi 9460 9461 fi 9462 9463 9464 if test ${apu_has_ldap} != "1"; then 9465 ldaplib="ldap" 9466 extralib="-ldl -lpthread" 9467 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 9468 9469 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 9470 9471 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 9472 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 9473 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 9474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 9475$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 9476if eval \${$as_ac_Lib+:} false; then : 9477 $as_echo_n "(cached) " >&6 9478else 9479 ac_check_lib_save_LIBS=$LIBS 9480LIBS="-l${ldaplib} ${extralib} $LIBS" 9481cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9482/* end confdefs.h. */ 9483 9484/* Override any GCC internal prototype to avoid an error. 9485 Use char because int might match the return type of a GCC 9486 builtin and then its argument prototype would still apply. */ 9487#ifdef __cplusplus 9488extern "C" 9489#endif 9490char ldap_init (); 9491int 9492main () 9493{ 9494return ldap_init (); 9495 ; 9496 return 0; 9497} 9498_ACEOF 9499if ac_fn_c_try_link "$LINENO"; then : 9500 eval "$as_ac_Lib=yes" 9501else 9502 eval "$as_ac_Lib=no" 9503fi 9504rm -f core conftest.err conftest.$ac_objext \ 9505 conftest$ac_exeext conftest.$ac_ext 9506LIBS=$ac_check_lib_save_LIBS 9507fi 9508eval ac_res=\$$as_ac_Lib 9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9510$as_echo "$ac_res" >&6; } 9511if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9512 9513 LDADD_ldap_found="-l${ldaplib} ${extralib}" 9514 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 9515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 9516$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 9517if eval \${$as_ac_Lib+:} false; then : 9518 $as_echo_n "(cached) " >&6 9519else 9520 ac_check_lib_save_LIBS=$LIBS 9521LIBS="-l${ldaplib} ${extralib} $LIBS" 9522cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9523/* end confdefs.h. */ 9524 9525/* Override any GCC internal prototype to avoid an error. 9526 Use char because int might match the return type of a GCC 9527 builtin and then its argument prototype would still apply. */ 9528#ifdef __cplusplus 9529extern "C" 9530#endif 9531char ldapssl_client_init (); 9532int 9533main () 9534{ 9535return ldapssl_client_init (); 9536 ; 9537 return 0; 9538} 9539_ACEOF 9540if ac_fn_c_try_link "$LINENO"; then : 9541 eval "$as_ac_Lib=yes" 9542else 9543 eval "$as_ac_Lib=no" 9544fi 9545rm -f core conftest.err conftest.$ac_objext \ 9546 conftest$ac_exeext conftest.$ac_ext 9547LIBS=$ac_check_lib_save_LIBS 9548fi 9549eval ac_res=\$$as_ac_Lib 9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9551$as_echo "$ac_res" >&6; } 9552if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9553 apu_has_ldapssl_client_init="1" 9554fi 9555 9556 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 9557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 9558$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 9559if eval \${$as_ac_Lib+:} false; then : 9560 $as_echo_n "(cached) " >&6 9561else 9562 ac_check_lib_save_LIBS=$LIBS 9563LIBS="-l${ldaplib} ${extralib} $LIBS" 9564cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9565/* end confdefs.h. */ 9566 9567/* Override any GCC internal prototype to avoid an error. 9568 Use char because int might match the return type of a GCC 9569 builtin and then its argument prototype would still apply. */ 9570#ifdef __cplusplus 9571extern "C" 9572#endif 9573char ldapssl_client_deinit (); 9574int 9575main () 9576{ 9577return ldapssl_client_deinit (); 9578 ; 9579 return 0; 9580} 9581_ACEOF 9582if ac_fn_c_try_link "$LINENO"; then : 9583 eval "$as_ac_Lib=yes" 9584else 9585 eval "$as_ac_Lib=no" 9586fi 9587rm -f core conftest.err conftest.$ac_objext \ 9588 conftest$ac_exeext conftest.$ac_ext 9589LIBS=$ac_check_lib_save_LIBS 9590fi 9591eval ac_res=\$$as_ac_Lib 9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9593$as_echo "$ac_res" >&6; } 9594if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9595 apu_has_ldapssl_client_deinit="1" 9596fi 9597 9598 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 9599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 9600$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 9601if eval \${$as_ac_Lib+:} false; then : 9602 $as_echo_n "(cached) " >&6 9603else 9604 ac_check_lib_save_LIBS=$LIBS 9605LIBS="-l${ldaplib} ${extralib} $LIBS" 9606cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9607/* end confdefs.h. */ 9608 9609/* Override any GCC internal prototype to avoid an error. 9610 Use char because int might match the return type of a GCC 9611 builtin and then its argument prototype would still apply. */ 9612#ifdef __cplusplus 9613extern "C" 9614#endif 9615char ldapssl_add_trusted_cert (); 9616int 9617main () 9618{ 9619return ldapssl_add_trusted_cert (); 9620 ; 9621 return 0; 9622} 9623_ACEOF 9624if ac_fn_c_try_link "$LINENO"; then : 9625 eval "$as_ac_Lib=yes" 9626else 9627 eval "$as_ac_Lib=no" 9628fi 9629rm -f core conftest.err conftest.$ac_objext \ 9630 conftest$ac_exeext conftest.$ac_ext 9631LIBS=$ac_check_lib_save_LIBS 9632fi 9633eval ac_res=\$$as_ac_Lib 9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9635$as_echo "$ac_res" >&6; } 9636if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9637 apu_has_ldapssl_add_trusted_cert="1" 9638fi 9639 9640 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 9641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 9642$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 9643if eval \${$as_ac_Lib+:} false; then : 9644 $as_echo_n "(cached) " >&6 9645else 9646 ac_check_lib_save_LIBS=$LIBS 9647LIBS="-l${ldaplib} ${extralib} $LIBS" 9648cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9649/* end confdefs.h. */ 9650 9651/* Override any GCC internal prototype to avoid an error. 9652 Use char because int might match the return type of a GCC 9653 builtin and then its argument prototype would still apply. */ 9654#ifdef __cplusplus 9655extern "C" 9656#endif 9657char ldap_start_tls_s (); 9658int 9659main () 9660{ 9661return ldap_start_tls_s (); 9662 ; 9663 return 0; 9664} 9665_ACEOF 9666if ac_fn_c_try_link "$LINENO"; then : 9667 eval "$as_ac_Lib=yes" 9668else 9669 eval "$as_ac_Lib=no" 9670fi 9671rm -f core conftest.err conftest.$ac_objext \ 9672 conftest$ac_exeext conftest.$ac_ext 9673LIBS=$ac_check_lib_save_LIBS 9674fi 9675eval ac_res=\$$as_ac_Lib 9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9677$as_echo "$ac_res" >&6; } 9678if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9679 apu_has_ldap_start_tls_s="1" 9680fi 9681 9682 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 9683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 9684$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 9685if eval \${$as_ac_Lib+:} false; then : 9686 $as_echo_n "(cached) " >&6 9687else 9688 ac_check_lib_save_LIBS=$LIBS 9689LIBS="-l${ldaplib} ${extralib} $LIBS" 9690cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9691/* end confdefs.h. */ 9692 9693/* Override any GCC internal prototype to avoid an error. 9694 Use char because int might match the return type of a GCC 9695 builtin and then its argument prototype would still apply. */ 9696#ifdef __cplusplus 9697extern "C" 9698#endif 9699char ldap_sslinit (); 9700int 9701main () 9702{ 9703return ldap_sslinit (); 9704 ; 9705 return 0; 9706} 9707_ACEOF 9708if ac_fn_c_try_link "$LINENO"; then : 9709 eval "$as_ac_Lib=yes" 9710else 9711 eval "$as_ac_Lib=no" 9712fi 9713rm -f core conftest.err conftest.$ac_objext \ 9714 conftest$ac_exeext conftest.$ac_ext 9715LIBS=$ac_check_lib_save_LIBS 9716fi 9717eval ac_res=\$$as_ac_Lib 9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9719$as_echo "$ac_res" >&6; } 9720if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9721 apu_has_ldap_sslinit="1" 9722fi 9723 9724 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 9725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 9726$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 9727if eval \${$as_ac_Lib+:} false; then : 9728 $as_echo_n "(cached) " >&6 9729else 9730 ac_check_lib_save_LIBS=$LIBS 9731LIBS="-l${ldaplib} ${extralib} $LIBS" 9732cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9733/* end confdefs.h. */ 9734 9735/* Override any GCC internal prototype to avoid an error. 9736 Use char because int might match the return type of a GCC 9737 builtin and then its argument prototype would still apply. */ 9738#ifdef __cplusplus 9739extern "C" 9740#endif 9741char ldapssl_init (); 9742int 9743main () 9744{ 9745return ldapssl_init (); 9746 ; 9747 return 0; 9748} 9749_ACEOF 9750if ac_fn_c_try_link "$LINENO"; then : 9751 eval "$as_ac_Lib=yes" 9752else 9753 eval "$as_ac_Lib=no" 9754fi 9755rm -f core conftest.err conftest.$ac_objext \ 9756 conftest$ac_exeext conftest.$ac_ext 9757LIBS=$ac_check_lib_save_LIBS 9758fi 9759eval ac_res=\$$as_ac_Lib 9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9761$as_echo "$ac_res" >&6; } 9762if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9763 apu_has_ldapssl_init="1" 9764fi 9765 9766 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 9767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 9768$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 9769if eval \${$as_ac_Lib+:} false; then : 9770 $as_echo_n "(cached) " >&6 9771else 9772 ac_check_lib_save_LIBS=$LIBS 9773LIBS="-l${ldaplib} ${extralib} $LIBS" 9774cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9775/* end confdefs.h. */ 9776 9777/* Override any GCC internal prototype to avoid an error. 9778 Use char because int might match the return type of a GCC 9779 builtin and then its argument prototype would still apply. */ 9780#ifdef __cplusplus 9781extern "C" 9782#endif 9783char ldapssl_install_routines (); 9784int 9785main () 9786{ 9787return ldapssl_install_routines (); 9788 ; 9789 return 0; 9790} 9791_ACEOF 9792if ac_fn_c_try_link "$LINENO"; then : 9793 eval "$as_ac_Lib=yes" 9794else 9795 eval "$as_ac_Lib=no" 9796fi 9797rm -f core conftest.err conftest.$ac_objext \ 9798 conftest$ac_exeext conftest.$ac_ext 9799LIBS=$ac_check_lib_save_LIBS 9800fi 9801eval ac_res=\$$as_ac_Lib 9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9803$as_echo "$ac_res" >&6; } 9804if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9805 apu_has_ldapssl_install_routines="1" 9806fi 9807 9808 apu_has_ldap="1"; 9809 9810fi 9811 9812 fi 9813 9814 else 9815 9816 if test ${apu_has_ldap} != "1"; then 9817 ldaplib=$LIBLDAP 9818 extralib= 9819 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 9820 9821 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 9822 9823 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 9824 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 9825 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 9826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 9827$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 9828if eval \${$as_ac_Lib+:} false; then : 9829 $as_echo_n "(cached) " >&6 9830else 9831 ac_check_lib_save_LIBS=$LIBS 9832LIBS="-l${ldaplib} ${extralib} $LIBS" 9833cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9834/* end confdefs.h. */ 9835 9836/* Override any GCC internal prototype to avoid an error. 9837 Use char because int might match the return type of a GCC 9838 builtin and then its argument prototype would still apply. */ 9839#ifdef __cplusplus 9840extern "C" 9841#endif 9842char ldap_init (); 9843int 9844main () 9845{ 9846return ldap_init (); 9847 ; 9848 return 0; 9849} 9850_ACEOF 9851if ac_fn_c_try_link "$LINENO"; then : 9852 eval "$as_ac_Lib=yes" 9853else 9854 eval "$as_ac_Lib=no" 9855fi 9856rm -f core conftest.err conftest.$ac_objext \ 9857 conftest$ac_exeext conftest.$ac_ext 9858LIBS=$ac_check_lib_save_LIBS 9859fi 9860eval ac_res=\$$as_ac_Lib 9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9862$as_echo "$ac_res" >&6; } 9863if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9864 9865 LDADD_ldap_found="-l${ldaplib} ${extralib}" 9866 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 9867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 9868$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 9869if eval \${$as_ac_Lib+:} false; then : 9870 $as_echo_n "(cached) " >&6 9871else 9872 ac_check_lib_save_LIBS=$LIBS 9873LIBS="-l${ldaplib} ${extralib} $LIBS" 9874cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9875/* end confdefs.h. */ 9876 9877/* Override any GCC internal prototype to avoid an error. 9878 Use char because int might match the return type of a GCC 9879 builtin and then its argument prototype would still apply. */ 9880#ifdef __cplusplus 9881extern "C" 9882#endif 9883char ldapssl_client_init (); 9884int 9885main () 9886{ 9887return ldapssl_client_init (); 9888 ; 9889 return 0; 9890} 9891_ACEOF 9892if ac_fn_c_try_link "$LINENO"; then : 9893 eval "$as_ac_Lib=yes" 9894else 9895 eval "$as_ac_Lib=no" 9896fi 9897rm -f core conftest.err conftest.$ac_objext \ 9898 conftest$ac_exeext conftest.$ac_ext 9899LIBS=$ac_check_lib_save_LIBS 9900fi 9901eval ac_res=\$$as_ac_Lib 9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9903$as_echo "$ac_res" >&6; } 9904if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9905 apu_has_ldapssl_client_init="1" 9906fi 9907 9908 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 9909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 9910$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 9911if eval \${$as_ac_Lib+:} false; then : 9912 $as_echo_n "(cached) " >&6 9913else 9914 ac_check_lib_save_LIBS=$LIBS 9915LIBS="-l${ldaplib} ${extralib} $LIBS" 9916cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9917/* end confdefs.h. */ 9918 9919/* Override any GCC internal prototype to avoid an error. 9920 Use char because int might match the return type of a GCC 9921 builtin and then its argument prototype would still apply. */ 9922#ifdef __cplusplus 9923extern "C" 9924#endif 9925char ldapssl_client_deinit (); 9926int 9927main () 9928{ 9929return ldapssl_client_deinit (); 9930 ; 9931 return 0; 9932} 9933_ACEOF 9934if ac_fn_c_try_link "$LINENO"; then : 9935 eval "$as_ac_Lib=yes" 9936else 9937 eval "$as_ac_Lib=no" 9938fi 9939rm -f core conftest.err conftest.$ac_objext \ 9940 conftest$ac_exeext conftest.$ac_ext 9941LIBS=$ac_check_lib_save_LIBS 9942fi 9943eval ac_res=\$$as_ac_Lib 9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9945$as_echo "$ac_res" >&6; } 9946if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9947 apu_has_ldapssl_client_deinit="1" 9948fi 9949 9950 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 9951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 9952$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 9953if eval \${$as_ac_Lib+:} false; then : 9954 $as_echo_n "(cached) " >&6 9955else 9956 ac_check_lib_save_LIBS=$LIBS 9957LIBS="-l${ldaplib} ${extralib} $LIBS" 9958cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9959/* end confdefs.h. */ 9960 9961/* Override any GCC internal prototype to avoid an error. 9962 Use char because int might match the return type of a GCC 9963 builtin and then its argument prototype would still apply. */ 9964#ifdef __cplusplus 9965extern "C" 9966#endif 9967char ldapssl_add_trusted_cert (); 9968int 9969main () 9970{ 9971return ldapssl_add_trusted_cert (); 9972 ; 9973 return 0; 9974} 9975_ACEOF 9976if ac_fn_c_try_link "$LINENO"; then : 9977 eval "$as_ac_Lib=yes" 9978else 9979 eval "$as_ac_Lib=no" 9980fi 9981rm -f core conftest.err conftest.$ac_objext \ 9982 conftest$ac_exeext conftest.$ac_ext 9983LIBS=$ac_check_lib_save_LIBS 9984fi 9985eval ac_res=\$$as_ac_Lib 9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9987$as_echo "$ac_res" >&6; } 9988if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 9989 apu_has_ldapssl_add_trusted_cert="1" 9990fi 9991 9992 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 9993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 9994$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 9995if eval \${$as_ac_Lib+:} false; then : 9996 $as_echo_n "(cached) " >&6 9997else 9998 ac_check_lib_save_LIBS=$LIBS 9999LIBS="-l${ldaplib} ${extralib} $LIBS" 10000cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10001/* end confdefs.h. */ 10002 10003/* Override any GCC internal prototype to avoid an error. 10004 Use char because int might match the return type of a GCC 10005 builtin and then its argument prototype would still apply. */ 10006#ifdef __cplusplus 10007extern "C" 10008#endif 10009char ldap_start_tls_s (); 10010int 10011main () 10012{ 10013return ldap_start_tls_s (); 10014 ; 10015 return 0; 10016} 10017_ACEOF 10018if ac_fn_c_try_link "$LINENO"; then : 10019 eval "$as_ac_Lib=yes" 10020else 10021 eval "$as_ac_Lib=no" 10022fi 10023rm -f core conftest.err conftest.$ac_objext \ 10024 conftest$ac_exeext conftest.$ac_ext 10025LIBS=$ac_check_lib_save_LIBS 10026fi 10027eval ac_res=\$$as_ac_Lib 10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10029$as_echo "$ac_res" >&6; } 10030if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10031 apu_has_ldap_start_tls_s="1" 10032fi 10033 10034 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 10035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 10036$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 10037if eval \${$as_ac_Lib+:} false; then : 10038 $as_echo_n "(cached) " >&6 10039else 10040 ac_check_lib_save_LIBS=$LIBS 10041LIBS="-l${ldaplib} ${extralib} $LIBS" 10042cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10043/* end confdefs.h. */ 10044 10045/* Override any GCC internal prototype to avoid an error. 10046 Use char because int might match the return type of a GCC 10047 builtin and then its argument prototype would still apply. */ 10048#ifdef __cplusplus 10049extern "C" 10050#endif 10051char ldap_sslinit (); 10052int 10053main () 10054{ 10055return ldap_sslinit (); 10056 ; 10057 return 0; 10058} 10059_ACEOF 10060if ac_fn_c_try_link "$LINENO"; then : 10061 eval "$as_ac_Lib=yes" 10062else 10063 eval "$as_ac_Lib=no" 10064fi 10065rm -f core conftest.err conftest.$ac_objext \ 10066 conftest$ac_exeext conftest.$ac_ext 10067LIBS=$ac_check_lib_save_LIBS 10068fi 10069eval ac_res=\$$as_ac_Lib 10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10071$as_echo "$ac_res" >&6; } 10072if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10073 apu_has_ldap_sslinit="1" 10074fi 10075 10076 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 10077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 10078$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 10079if eval \${$as_ac_Lib+:} false; then : 10080 $as_echo_n "(cached) " >&6 10081else 10082 ac_check_lib_save_LIBS=$LIBS 10083LIBS="-l${ldaplib} ${extralib} $LIBS" 10084cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10085/* end confdefs.h. */ 10086 10087/* Override any GCC internal prototype to avoid an error. 10088 Use char because int might match the return type of a GCC 10089 builtin and then its argument prototype would still apply. */ 10090#ifdef __cplusplus 10091extern "C" 10092#endif 10093char ldapssl_init (); 10094int 10095main () 10096{ 10097return ldapssl_init (); 10098 ; 10099 return 0; 10100} 10101_ACEOF 10102if ac_fn_c_try_link "$LINENO"; then : 10103 eval "$as_ac_Lib=yes" 10104else 10105 eval "$as_ac_Lib=no" 10106fi 10107rm -f core conftest.err conftest.$ac_objext \ 10108 conftest$ac_exeext conftest.$ac_ext 10109LIBS=$ac_check_lib_save_LIBS 10110fi 10111eval ac_res=\$$as_ac_Lib 10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10113$as_echo "$ac_res" >&6; } 10114if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10115 apu_has_ldapssl_init="1" 10116fi 10117 10118 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 10119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 10120$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 10121if eval \${$as_ac_Lib+:} false; then : 10122 $as_echo_n "(cached) " >&6 10123else 10124 ac_check_lib_save_LIBS=$LIBS 10125LIBS="-l${ldaplib} ${extralib} $LIBS" 10126cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10127/* end confdefs.h. */ 10128 10129/* Override any GCC internal prototype to avoid an error. 10130 Use char because int might match the return type of a GCC 10131 builtin and then its argument prototype would still apply. */ 10132#ifdef __cplusplus 10133extern "C" 10134#endif 10135char ldapssl_install_routines (); 10136int 10137main () 10138{ 10139return ldapssl_install_routines (); 10140 ; 10141 return 0; 10142} 10143_ACEOF 10144if ac_fn_c_try_link "$LINENO"; then : 10145 eval "$as_ac_Lib=yes" 10146else 10147 eval "$as_ac_Lib=no" 10148fi 10149rm -f core conftest.err conftest.$ac_objext \ 10150 conftest$ac_exeext conftest.$ac_ext 10151LIBS=$ac_check_lib_save_LIBS 10152fi 10153eval ac_res=\$$as_ac_Lib 10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10155$as_echo "$ac_res" >&6; } 10156if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10157 apu_has_ldapssl_install_routines="1" 10158fi 10159 10160 apu_has_ldap="1"; 10161 10162fi 10163 10164 fi 10165 10166 10167 if test ${apu_has_ldap} != "1"; then 10168 ldaplib=$LIBLDAP 10169 extralib="-lresolv" 10170 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 10171 10172 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 10173 10174 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 10175 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 10176 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 10177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 10178$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 10179if eval \${$as_ac_Lib+:} false; then : 10180 $as_echo_n "(cached) " >&6 10181else 10182 ac_check_lib_save_LIBS=$LIBS 10183LIBS="-l${ldaplib} ${extralib} $LIBS" 10184cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10185/* end confdefs.h. */ 10186 10187/* Override any GCC internal prototype to avoid an error. 10188 Use char because int might match the return type of a GCC 10189 builtin and then its argument prototype would still apply. */ 10190#ifdef __cplusplus 10191extern "C" 10192#endif 10193char ldap_init (); 10194int 10195main () 10196{ 10197return ldap_init (); 10198 ; 10199 return 0; 10200} 10201_ACEOF 10202if ac_fn_c_try_link "$LINENO"; then : 10203 eval "$as_ac_Lib=yes" 10204else 10205 eval "$as_ac_Lib=no" 10206fi 10207rm -f core conftest.err conftest.$ac_objext \ 10208 conftest$ac_exeext conftest.$ac_ext 10209LIBS=$ac_check_lib_save_LIBS 10210fi 10211eval ac_res=\$$as_ac_Lib 10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10213$as_echo "$ac_res" >&6; } 10214if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10215 10216 LDADD_ldap_found="-l${ldaplib} ${extralib}" 10217 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 10218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 10219$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 10220if eval \${$as_ac_Lib+:} false; then : 10221 $as_echo_n "(cached) " >&6 10222else 10223 ac_check_lib_save_LIBS=$LIBS 10224LIBS="-l${ldaplib} ${extralib} $LIBS" 10225cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10226/* end confdefs.h. */ 10227 10228/* Override any GCC internal prototype to avoid an error. 10229 Use char because int might match the return type of a GCC 10230 builtin and then its argument prototype would still apply. */ 10231#ifdef __cplusplus 10232extern "C" 10233#endif 10234char ldapssl_client_init (); 10235int 10236main () 10237{ 10238return ldapssl_client_init (); 10239 ; 10240 return 0; 10241} 10242_ACEOF 10243if ac_fn_c_try_link "$LINENO"; then : 10244 eval "$as_ac_Lib=yes" 10245else 10246 eval "$as_ac_Lib=no" 10247fi 10248rm -f core conftest.err conftest.$ac_objext \ 10249 conftest$ac_exeext conftest.$ac_ext 10250LIBS=$ac_check_lib_save_LIBS 10251fi 10252eval ac_res=\$$as_ac_Lib 10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10254$as_echo "$ac_res" >&6; } 10255if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10256 apu_has_ldapssl_client_init="1" 10257fi 10258 10259 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 10260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 10261$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 10262if eval \${$as_ac_Lib+:} false; then : 10263 $as_echo_n "(cached) " >&6 10264else 10265 ac_check_lib_save_LIBS=$LIBS 10266LIBS="-l${ldaplib} ${extralib} $LIBS" 10267cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10268/* end confdefs.h. */ 10269 10270/* Override any GCC internal prototype to avoid an error. 10271 Use char because int might match the return type of a GCC 10272 builtin and then its argument prototype would still apply. */ 10273#ifdef __cplusplus 10274extern "C" 10275#endif 10276char ldapssl_client_deinit (); 10277int 10278main () 10279{ 10280return ldapssl_client_deinit (); 10281 ; 10282 return 0; 10283} 10284_ACEOF 10285if ac_fn_c_try_link "$LINENO"; then : 10286 eval "$as_ac_Lib=yes" 10287else 10288 eval "$as_ac_Lib=no" 10289fi 10290rm -f core conftest.err conftest.$ac_objext \ 10291 conftest$ac_exeext conftest.$ac_ext 10292LIBS=$ac_check_lib_save_LIBS 10293fi 10294eval ac_res=\$$as_ac_Lib 10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10296$as_echo "$ac_res" >&6; } 10297if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10298 apu_has_ldapssl_client_deinit="1" 10299fi 10300 10301 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 10302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 10303$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 10304if eval \${$as_ac_Lib+:} false; then : 10305 $as_echo_n "(cached) " >&6 10306else 10307 ac_check_lib_save_LIBS=$LIBS 10308LIBS="-l${ldaplib} ${extralib} $LIBS" 10309cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10310/* end confdefs.h. */ 10311 10312/* Override any GCC internal prototype to avoid an error. 10313 Use char because int might match the return type of a GCC 10314 builtin and then its argument prototype would still apply. */ 10315#ifdef __cplusplus 10316extern "C" 10317#endif 10318char ldapssl_add_trusted_cert (); 10319int 10320main () 10321{ 10322return ldapssl_add_trusted_cert (); 10323 ; 10324 return 0; 10325} 10326_ACEOF 10327if ac_fn_c_try_link "$LINENO"; then : 10328 eval "$as_ac_Lib=yes" 10329else 10330 eval "$as_ac_Lib=no" 10331fi 10332rm -f core conftest.err conftest.$ac_objext \ 10333 conftest$ac_exeext conftest.$ac_ext 10334LIBS=$ac_check_lib_save_LIBS 10335fi 10336eval ac_res=\$$as_ac_Lib 10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10338$as_echo "$ac_res" >&6; } 10339if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10340 apu_has_ldapssl_add_trusted_cert="1" 10341fi 10342 10343 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 10344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 10345$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 10346if eval \${$as_ac_Lib+:} false; then : 10347 $as_echo_n "(cached) " >&6 10348else 10349 ac_check_lib_save_LIBS=$LIBS 10350LIBS="-l${ldaplib} ${extralib} $LIBS" 10351cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10352/* end confdefs.h. */ 10353 10354/* Override any GCC internal prototype to avoid an error. 10355 Use char because int might match the return type of a GCC 10356 builtin and then its argument prototype would still apply. */ 10357#ifdef __cplusplus 10358extern "C" 10359#endif 10360char ldap_start_tls_s (); 10361int 10362main () 10363{ 10364return ldap_start_tls_s (); 10365 ; 10366 return 0; 10367} 10368_ACEOF 10369if ac_fn_c_try_link "$LINENO"; then : 10370 eval "$as_ac_Lib=yes" 10371else 10372 eval "$as_ac_Lib=no" 10373fi 10374rm -f core conftest.err conftest.$ac_objext \ 10375 conftest$ac_exeext conftest.$ac_ext 10376LIBS=$ac_check_lib_save_LIBS 10377fi 10378eval ac_res=\$$as_ac_Lib 10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10380$as_echo "$ac_res" >&6; } 10381if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10382 apu_has_ldap_start_tls_s="1" 10383fi 10384 10385 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 10386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 10387$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 10388if eval \${$as_ac_Lib+:} false; then : 10389 $as_echo_n "(cached) " >&6 10390else 10391 ac_check_lib_save_LIBS=$LIBS 10392LIBS="-l${ldaplib} ${extralib} $LIBS" 10393cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10394/* end confdefs.h. */ 10395 10396/* Override any GCC internal prototype to avoid an error. 10397 Use char because int might match the return type of a GCC 10398 builtin and then its argument prototype would still apply. */ 10399#ifdef __cplusplus 10400extern "C" 10401#endif 10402char ldap_sslinit (); 10403int 10404main () 10405{ 10406return ldap_sslinit (); 10407 ; 10408 return 0; 10409} 10410_ACEOF 10411if ac_fn_c_try_link "$LINENO"; then : 10412 eval "$as_ac_Lib=yes" 10413else 10414 eval "$as_ac_Lib=no" 10415fi 10416rm -f core conftest.err conftest.$ac_objext \ 10417 conftest$ac_exeext conftest.$ac_ext 10418LIBS=$ac_check_lib_save_LIBS 10419fi 10420eval ac_res=\$$as_ac_Lib 10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10422$as_echo "$ac_res" >&6; } 10423if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10424 apu_has_ldap_sslinit="1" 10425fi 10426 10427 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 10428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 10429$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 10430if eval \${$as_ac_Lib+:} false; then : 10431 $as_echo_n "(cached) " >&6 10432else 10433 ac_check_lib_save_LIBS=$LIBS 10434LIBS="-l${ldaplib} ${extralib} $LIBS" 10435cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10436/* end confdefs.h. */ 10437 10438/* Override any GCC internal prototype to avoid an error. 10439 Use char because int might match the return type of a GCC 10440 builtin and then its argument prototype would still apply. */ 10441#ifdef __cplusplus 10442extern "C" 10443#endif 10444char ldapssl_init (); 10445int 10446main () 10447{ 10448return ldapssl_init (); 10449 ; 10450 return 0; 10451} 10452_ACEOF 10453if ac_fn_c_try_link "$LINENO"; then : 10454 eval "$as_ac_Lib=yes" 10455else 10456 eval "$as_ac_Lib=no" 10457fi 10458rm -f core conftest.err conftest.$ac_objext \ 10459 conftest$ac_exeext conftest.$ac_ext 10460LIBS=$ac_check_lib_save_LIBS 10461fi 10462eval ac_res=\$$as_ac_Lib 10463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10464$as_echo "$ac_res" >&6; } 10465if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10466 apu_has_ldapssl_init="1" 10467fi 10468 10469 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 10470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 10471$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 10472if eval \${$as_ac_Lib+:} false; then : 10473 $as_echo_n "(cached) " >&6 10474else 10475 ac_check_lib_save_LIBS=$LIBS 10476LIBS="-l${ldaplib} ${extralib} $LIBS" 10477cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10478/* end confdefs.h. */ 10479 10480/* Override any GCC internal prototype to avoid an error. 10481 Use char because int might match the return type of a GCC 10482 builtin and then its argument prototype would still apply. */ 10483#ifdef __cplusplus 10484extern "C" 10485#endif 10486char ldapssl_install_routines (); 10487int 10488main () 10489{ 10490return ldapssl_install_routines (); 10491 ; 10492 return 0; 10493} 10494_ACEOF 10495if ac_fn_c_try_link "$LINENO"; then : 10496 eval "$as_ac_Lib=yes" 10497else 10498 eval "$as_ac_Lib=no" 10499fi 10500rm -f core conftest.err conftest.$ac_objext \ 10501 conftest$ac_exeext conftest.$ac_ext 10502LIBS=$ac_check_lib_save_LIBS 10503fi 10504eval ac_res=\$$as_ac_Lib 10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10506$as_echo "$ac_res" >&6; } 10507if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10508 apu_has_ldapssl_install_routines="1" 10509fi 10510 10511 apu_has_ldap="1"; 10512 10513fi 10514 10515 fi 10516 10517 10518 if test ${apu_has_ldap} != "1"; then 10519 ldaplib=$LIBLDAP 10520 extralib="-lresolv -lsocket -lnsl" 10521 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 10522 10523 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 10524 10525 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 10526 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 10527 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 10528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 10529$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 10530if eval \${$as_ac_Lib+:} false; then : 10531 $as_echo_n "(cached) " >&6 10532else 10533 ac_check_lib_save_LIBS=$LIBS 10534LIBS="-l${ldaplib} ${extralib} $LIBS" 10535cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10536/* end confdefs.h. */ 10537 10538/* Override any GCC internal prototype to avoid an error. 10539 Use char because int might match the return type of a GCC 10540 builtin and then its argument prototype would still apply. */ 10541#ifdef __cplusplus 10542extern "C" 10543#endif 10544char ldap_init (); 10545int 10546main () 10547{ 10548return ldap_init (); 10549 ; 10550 return 0; 10551} 10552_ACEOF 10553if ac_fn_c_try_link "$LINENO"; then : 10554 eval "$as_ac_Lib=yes" 10555else 10556 eval "$as_ac_Lib=no" 10557fi 10558rm -f core conftest.err conftest.$ac_objext \ 10559 conftest$ac_exeext conftest.$ac_ext 10560LIBS=$ac_check_lib_save_LIBS 10561fi 10562eval ac_res=\$$as_ac_Lib 10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10564$as_echo "$ac_res" >&6; } 10565if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10566 10567 LDADD_ldap_found="-l${ldaplib} ${extralib}" 10568 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 10569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 10570$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 10571if eval \${$as_ac_Lib+:} false; then : 10572 $as_echo_n "(cached) " >&6 10573else 10574 ac_check_lib_save_LIBS=$LIBS 10575LIBS="-l${ldaplib} ${extralib} $LIBS" 10576cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10577/* end confdefs.h. */ 10578 10579/* Override any GCC internal prototype to avoid an error. 10580 Use char because int might match the return type of a GCC 10581 builtin and then its argument prototype would still apply. */ 10582#ifdef __cplusplus 10583extern "C" 10584#endif 10585char ldapssl_client_init (); 10586int 10587main () 10588{ 10589return ldapssl_client_init (); 10590 ; 10591 return 0; 10592} 10593_ACEOF 10594if ac_fn_c_try_link "$LINENO"; then : 10595 eval "$as_ac_Lib=yes" 10596else 10597 eval "$as_ac_Lib=no" 10598fi 10599rm -f core conftest.err conftest.$ac_objext \ 10600 conftest$ac_exeext conftest.$ac_ext 10601LIBS=$ac_check_lib_save_LIBS 10602fi 10603eval ac_res=\$$as_ac_Lib 10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10605$as_echo "$ac_res" >&6; } 10606if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10607 apu_has_ldapssl_client_init="1" 10608fi 10609 10610 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 10611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 10612$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 10613if eval \${$as_ac_Lib+:} false; then : 10614 $as_echo_n "(cached) " >&6 10615else 10616 ac_check_lib_save_LIBS=$LIBS 10617LIBS="-l${ldaplib} ${extralib} $LIBS" 10618cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10619/* end confdefs.h. */ 10620 10621/* Override any GCC internal prototype to avoid an error. 10622 Use char because int might match the return type of a GCC 10623 builtin and then its argument prototype would still apply. */ 10624#ifdef __cplusplus 10625extern "C" 10626#endif 10627char ldapssl_client_deinit (); 10628int 10629main () 10630{ 10631return ldapssl_client_deinit (); 10632 ; 10633 return 0; 10634} 10635_ACEOF 10636if ac_fn_c_try_link "$LINENO"; then : 10637 eval "$as_ac_Lib=yes" 10638else 10639 eval "$as_ac_Lib=no" 10640fi 10641rm -f core conftest.err conftest.$ac_objext \ 10642 conftest$ac_exeext conftest.$ac_ext 10643LIBS=$ac_check_lib_save_LIBS 10644fi 10645eval ac_res=\$$as_ac_Lib 10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10647$as_echo "$ac_res" >&6; } 10648if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10649 apu_has_ldapssl_client_deinit="1" 10650fi 10651 10652 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 10653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 10654$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 10655if eval \${$as_ac_Lib+:} false; then : 10656 $as_echo_n "(cached) " >&6 10657else 10658 ac_check_lib_save_LIBS=$LIBS 10659LIBS="-l${ldaplib} ${extralib} $LIBS" 10660cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10661/* end confdefs.h. */ 10662 10663/* Override any GCC internal prototype to avoid an error. 10664 Use char because int might match the return type of a GCC 10665 builtin and then its argument prototype would still apply. */ 10666#ifdef __cplusplus 10667extern "C" 10668#endif 10669char ldapssl_add_trusted_cert (); 10670int 10671main () 10672{ 10673return ldapssl_add_trusted_cert (); 10674 ; 10675 return 0; 10676} 10677_ACEOF 10678if ac_fn_c_try_link "$LINENO"; then : 10679 eval "$as_ac_Lib=yes" 10680else 10681 eval "$as_ac_Lib=no" 10682fi 10683rm -f core conftest.err conftest.$ac_objext \ 10684 conftest$ac_exeext conftest.$ac_ext 10685LIBS=$ac_check_lib_save_LIBS 10686fi 10687eval ac_res=\$$as_ac_Lib 10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10689$as_echo "$ac_res" >&6; } 10690if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10691 apu_has_ldapssl_add_trusted_cert="1" 10692fi 10693 10694 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 10695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 10696$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 10697if eval \${$as_ac_Lib+:} false; then : 10698 $as_echo_n "(cached) " >&6 10699else 10700 ac_check_lib_save_LIBS=$LIBS 10701LIBS="-l${ldaplib} ${extralib} $LIBS" 10702cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10703/* end confdefs.h. */ 10704 10705/* Override any GCC internal prototype to avoid an error. 10706 Use char because int might match the return type of a GCC 10707 builtin and then its argument prototype would still apply. */ 10708#ifdef __cplusplus 10709extern "C" 10710#endif 10711char ldap_start_tls_s (); 10712int 10713main () 10714{ 10715return ldap_start_tls_s (); 10716 ; 10717 return 0; 10718} 10719_ACEOF 10720if ac_fn_c_try_link "$LINENO"; then : 10721 eval "$as_ac_Lib=yes" 10722else 10723 eval "$as_ac_Lib=no" 10724fi 10725rm -f core conftest.err conftest.$ac_objext \ 10726 conftest$ac_exeext conftest.$ac_ext 10727LIBS=$ac_check_lib_save_LIBS 10728fi 10729eval ac_res=\$$as_ac_Lib 10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10731$as_echo "$ac_res" >&6; } 10732if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10733 apu_has_ldap_start_tls_s="1" 10734fi 10735 10736 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 10737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 10738$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 10739if eval \${$as_ac_Lib+:} false; then : 10740 $as_echo_n "(cached) " >&6 10741else 10742 ac_check_lib_save_LIBS=$LIBS 10743LIBS="-l${ldaplib} ${extralib} $LIBS" 10744cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10745/* end confdefs.h. */ 10746 10747/* Override any GCC internal prototype to avoid an error. 10748 Use char because int might match the return type of a GCC 10749 builtin and then its argument prototype would still apply. */ 10750#ifdef __cplusplus 10751extern "C" 10752#endif 10753char ldap_sslinit (); 10754int 10755main () 10756{ 10757return ldap_sslinit (); 10758 ; 10759 return 0; 10760} 10761_ACEOF 10762if ac_fn_c_try_link "$LINENO"; then : 10763 eval "$as_ac_Lib=yes" 10764else 10765 eval "$as_ac_Lib=no" 10766fi 10767rm -f core conftest.err conftest.$ac_objext \ 10768 conftest$ac_exeext conftest.$ac_ext 10769LIBS=$ac_check_lib_save_LIBS 10770fi 10771eval ac_res=\$$as_ac_Lib 10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10773$as_echo "$ac_res" >&6; } 10774if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10775 apu_has_ldap_sslinit="1" 10776fi 10777 10778 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 10779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 10780$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 10781if eval \${$as_ac_Lib+:} false; then : 10782 $as_echo_n "(cached) " >&6 10783else 10784 ac_check_lib_save_LIBS=$LIBS 10785LIBS="-l${ldaplib} ${extralib} $LIBS" 10786cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10787/* end confdefs.h. */ 10788 10789/* Override any GCC internal prototype to avoid an error. 10790 Use char because int might match the return type of a GCC 10791 builtin and then its argument prototype would still apply. */ 10792#ifdef __cplusplus 10793extern "C" 10794#endif 10795char ldapssl_init (); 10796int 10797main () 10798{ 10799return ldapssl_init (); 10800 ; 10801 return 0; 10802} 10803_ACEOF 10804if ac_fn_c_try_link "$LINENO"; then : 10805 eval "$as_ac_Lib=yes" 10806else 10807 eval "$as_ac_Lib=no" 10808fi 10809rm -f core conftest.err conftest.$ac_objext \ 10810 conftest$ac_exeext conftest.$ac_ext 10811LIBS=$ac_check_lib_save_LIBS 10812fi 10813eval ac_res=\$$as_ac_Lib 10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10815$as_echo "$ac_res" >&6; } 10816if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10817 apu_has_ldapssl_init="1" 10818fi 10819 10820 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 10821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 10822$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 10823if eval \${$as_ac_Lib+:} false; then : 10824 $as_echo_n "(cached) " >&6 10825else 10826 ac_check_lib_save_LIBS=$LIBS 10827LIBS="-l${ldaplib} ${extralib} $LIBS" 10828cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10829/* end confdefs.h. */ 10830 10831/* Override any GCC internal prototype to avoid an error. 10832 Use char because int might match the return type of a GCC 10833 builtin and then its argument prototype would still apply. */ 10834#ifdef __cplusplus 10835extern "C" 10836#endif 10837char ldapssl_install_routines (); 10838int 10839main () 10840{ 10841return ldapssl_install_routines (); 10842 ; 10843 return 0; 10844} 10845_ACEOF 10846if ac_fn_c_try_link "$LINENO"; then : 10847 eval "$as_ac_Lib=yes" 10848else 10849 eval "$as_ac_Lib=no" 10850fi 10851rm -f core conftest.err conftest.$ac_objext \ 10852 conftest$ac_exeext conftest.$ac_ext 10853LIBS=$ac_check_lib_save_LIBS 10854fi 10855eval ac_res=\$$as_ac_Lib 10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10857$as_echo "$ac_res" >&6; } 10858if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10859 apu_has_ldapssl_install_routines="1" 10860fi 10861 10862 apu_has_ldap="1"; 10863 10864fi 10865 10866 fi 10867 10868 10869 if test ${apu_has_ldap} != "1"; then 10870 ldaplib=$LIBLDAP 10871 extralib="-ldl -lpthread" 10872 # Clear the cache entry for subsequent APU_FIND_LDAPLIB invocations. 10873 10874 ldaplib_cache_id="`echo $ldaplib | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 10875 10876 unset ac_cv_lib_${ldaplib_cache_id}_ldap_init 10877 unset ac_cv_lib_${ldaplib_cache_id}___ldap_init 10878 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_init" | $as_tr_sh` 10879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l${ldaplib}" >&5 10880$as_echo_n "checking for ldap_init in -l${ldaplib}... " >&6; } 10881if eval \${$as_ac_Lib+:} false; then : 10882 $as_echo_n "(cached) " >&6 10883else 10884 ac_check_lib_save_LIBS=$LIBS 10885LIBS="-l${ldaplib} ${extralib} $LIBS" 10886cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10887/* end confdefs.h. */ 10888 10889/* Override any GCC internal prototype to avoid an error. 10890 Use char because int might match the return type of a GCC 10891 builtin and then its argument prototype would still apply. */ 10892#ifdef __cplusplus 10893extern "C" 10894#endif 10895char ldap_init (); 10896int 10897main () 10898{ 10899return ldap_init (); 10900 ; 10901 return 0; 10902} 10903_ACEOF 10904if ac_fn_c_try_link "$LINENO"; then : 10905 eval "$as_ac_Lib=yes" 10906else 10907 eval "$as_ac_Lib=no" 10908fi 10909rm -f core conftest.err conftest.$ac_objext \ 10910 conftest$ac_exeext conftest.$ac_ext 10911LIBS=$ac_check_lib_save_LIBS 10912fi 10913eval ac_res=\$$as_ac_Lib 10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10915$as_echo "$ac_res" >&6; } 10916if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10917 10918 LDADD_ldap_found="-l${ldaplib} ${extralib}" 10919 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_init" | $as_tr_sh` 10920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_init in -l${ldaplib}" >&5 10921$as_echo_n "checking for ldapssl_client_init in -l${ldaplib}... " >&6; } 10922if eval \${$as_ac_Lib+:} false; then : 10923 $as_echo_n "(cached) " >&6 10924else 10925 ac_check_lib_save_LIBS=$LIBS 10926LIBS="-l${ldaplib} ${extralib} $LIBS" 10927cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10928/* end confdefs.h. */ 10929 10930/* Override any GCC internal prototype to avoid an error. 10931 Use char because int might match the return type of a GCC 10932 builtin and then its argument prototype would still apply. */ 10933#ifdef __cplusplus 10934extern "C" 10935#endif 10936char ldapssl_client_init (); 10937int 10938main () 10939{ 10940return ldapssl_client_init (); 10941 ; 10942 return 0; 10943} 10944_ACEOF 10945if ac_fn_c_try_link "$LINENO"; then : 10946 eval "$as_ac_Lib=yes" 10947else 10948 eval "$as_ac_Lib=no" 10949fi 10950rm -f core conftest.err conftest.$ac_objext \ 10951 conftest$ac_exeext conftest.$ac_ext 10952LIBS=$ac_check_lib_save_LIBS 10953fi 10954eval ac_res=\$$as_ac_Lib 10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10956$as_echo "$ac_res" >&6; } 10957if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 10958 apu_has_ldapssl_client_init="1" 10959fi 10960 10961 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_client_deinit" | $as_tr_sh` 10962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_client_deinit in -l${ldaplib}" >&5 10963$as_echo_n "checking for ldapssl_client_deinit in -l${ldaplib}... " >&6; } 10964if eval \${$as_ac_Lib+:} false; then : 10965 $as_echo_n "(cached) " >&6 10966else 10967 ac_check_lib_save_LIBS=$LIBS 10968LIBS="-l${ldaplib} ${extralib} $LIBS" 10969cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10970/* end confdefs.h. */ 10971 10972/* Override any GCC internal prototype to avoid an error. 10973 Use char because int might match the return type of a GCC 10974 builtin and then its argument prototype would still apply. */ 10975#ifdef __cplusplus 10976extern "C" 10977#endif 10978char ldapssl_client_deinit (); 10979int 10980main () 10981{ 10982return ldapssl_client_deinit (); 10983 ; 10984 return 0; 10985} 10986_ACEOF 10987if ac_fn_c_try_link "$LINENO"; then : 10988 eval "$as_ac_Lib=yes" 10989else 10990 eval "$as_ac_Lib=no" 10991fi 10992rm -f core conftest.err conftest.$ac_objext \ 10993 conftest$ac_exeext conftest.$ac_ext 10994LIBS=$ac_check_lib_save_LIBS 10995fi 10996eval ac_res=\$$as_ac_Lib 10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10998$as_echo "$ac_res" >&6; } 10999if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 11000 apu_has_ldapssl_client_deinit="1" 11001fi 11002 11003 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_add_trusted_cert" | $as_tr_sh` 11004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_add_trusted_cert in -l${ldaplib}" >&5 11005$as_echo_n "checking for ldapssl_add_trusted_cert in -l${ldaplib}... " >&6; } 11006if eval \${$as_ac_Lib+:} false; then : 11007 $as_echo_n "(cached) " >&6 11008else 11009 ac_check_lib_save_LIBS=$LIBS 11010LIBS="-l${ldaplib} ${extralib} $LIBS" 11011cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11012/* end confdefs.h. */ 11013 11014/* Override any GCC internal prototype to avoid an error. 11015 Use char because int might match the return type of a GCC 11016 builtin and then its argument prototype would still apply. */ 11017#ifdef __cplusplus 11018extern "C" 11019#endif 11020char ldapssl_add_trusted_cert (); 11021int 11022main () 11023{ 11024return ldapssl_add_trusted_cert (); 11025 ; 11026 return 0; 11027} 11028_ACEOF 11029if ac_fn_c_try_link "$LINENO"; then : 11030 eval "$as_ac_Lib=yes" 11031else 11032 eval "$as_ac_Lib=no" 11033fi 11034rm -f core conftest.err conftest.$ac_objext \ 11035 conftest$ac_exeext conftest.$ac_ext 11036LIBS=$ac_check_lib_save_LIBS 11037fi 11038eval ac_res=\$$as_ac_Lib 11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11040$as_echo "$ac_res" >&6; } 11041if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 11042 apu_has_ldapssl_add_trusted_cert="1" 11043fi 11044 11045 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_start_tls_s" | $as_tr_sh` 11046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls_s in -l${ldaplib}" >&5 11047$as_echo_n "checking for ldap_start_tls_s in -l${ldaplib}... " >&6; } 11048if eval \${$as_ac_Lib+:} false; then : 11049 $as_echo_n "(cached) " >&6 11050else 11051 ac_check_lib_save_LIBS=$LIBS 11052LIBS="-l${ldaplib} ${extralib} $LIBS" 11053cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11054/* end confdefs.h. */ 11055 11056/* Override any GCC internal prototype to avoid an error. 11057 Use char because int might match the return type of a GCC 11058 builtin and then its argument prototype would still apply. */ 11059#ifdef __cplusplus 11060extern "C" 11061#endif 11062char ldap_start_tls_s (); 11063int 11064main () 11065{ 11066return ldap_start_tls_s (); 11067 ; 11068 return 0; 11069} 11070_ACEOF 11071if ac_fn_c_try_link "$LINENO"; then : 11072 eval "$as_ac_Lib=yes" 11073else 11074 eval "$as_ac_Lib=no" 11075fi 11076rm -f core conftest.err conftest.$ac_objext \ 11077 conftest$ac_exeext conftest.$ac_ext 11078LIBS=$ac_check_lib_save_LIBS 11079fi 11080eval ac_res=\$$as_ac_Lib 11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11082$as_echo "$ac_res" >&6; } 11083if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 11084 apu_has_ldap_start_tls_s="1" 11085fi 11086 11087 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldap_sslinit" | $as_tr_sh` 11088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_sslinit in -l${ldaplib}" >&5 11089$as_echo_n "checking for ldap_sslinit in -l${ldaplib}... " >&6; } 11090if eval \${$as_ac_Lib+:} false; then : 11091 $as_echo_n "(cached) " >&6 11092else 11093 ac_check_lib_save_LIBS=$LIBS 11094LIBS="-l${ldaplib} ${extralib} $LIBS" 11095cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11096/* end confdefs.h. */ 11097 11098/* Override any GCC internal prototype to avoid an error. 11099 Use char because int might match the return type of a GCC 11100 builtin and then its argument prototype would still apply. */ 11101#ifdef __cplusplus 11102extern "C" 11103#endif 11104char ldap_sslinit (); 11105int 11106main () 11107{ 11108return ldap_sslinit (); 11109 ; 11110 return 0; 11111} 11112_ACEOF 11113if ac_fn_c_try_link "$LINENO"; then : 11114 eval "$as_ac_Lib=yes" 11115else 11116 eval "$as_ac_Lib=no" 11117fi 11118rm -f core conftest.err conftest.$ac_objext \ 11119 conftest$ac_exeext conftest.$ac_ext 11120LIBS=$ac_check_lib_save_LIBS 11121fi 11122eval ac_res=\$$as_ac_Lib 11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11124$as_echo "$ac_res" >&6; } 11125if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 11126 apu_has_ldap_sslinit="1" 11127fi 11128 11129 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_init" | $as_tr_sh` 11130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -l${ldaplib}" >&5 11131$as_echo_n "checking for ldapssl_init in -l${ldaplib}... " >&6; } 11132if eval \${$as_ac_Lib+:} false; then : 11133 $as_echo_n "(cached) " >&6 11134else 11135 ac_check_lib_save_LIBS=$LIBS 11136LIBS="-l${ldaplib} ${extralib} $LIBS" 11137cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11138/* end confdefs.h. */ 11139 11140/* Override any GCC internal prototype to avoid an error. 11141 Use char because int might match the return type of a GCC 11142 builtin and then its argument prototype would still apply. */ 11143#ifdef __cplusplus 11144extern "C" 11145#endif 11146char ldapssl_init (); 11147int 11148main () 11149{ 11150return ldapssl_init (); 11151 ; 11152 return 0; 11153} 11154_ACEOF 11155if ac_fn_c_try_link "$LINENO"; then : 11156 eval "$as_ac_Lib=yes" 11157else 11158 eval "$as_ac_Lib=no" 11159fi 11160rm -f core conftest.err conftest.$ac_objext \ 11161 conftest$ac_exeext conftest.$ac_ext 11162LIBS=$ac_check_lib_save_LIBS 11163fi 11164eval ac_res=\$$as_ac_Lib 11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11166$as_echo "$ac_res" >&6; } 11167if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 11168 apu_has_ldapssl_init="1" 11169fi 11170 11171 as_ac_Lib=`$as_echo "ac_cv_lib_${ldaplib}''_ldapssl_install_routines" | $as_tr_sh` 11172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_install_routines in -l${ldaplib}" >&5 11173$as_echo_n "checking for ldapssl_install_routines in -l${ldaplib}... " >&6; } 11174if eval \${$as_ac_Lib+:} false; then : 11175 $as_echo_n "(cached) " >&6 11176else 11177 ac_check_lib_save_LIBS=$LIBS 11178LIBS="-l${ldaplib} ${extralib} $LIBS" 11179cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11180/* end confdefs.h. */ 11181 11182/* Override any GCC internal prototype to avoid an error. 11183 Use char because int might match the return type of a GCC 11184 builtin and then its argument prototype would still apply. */ 11185#ifdef __cplusplus 11186extern "C" 11187#endif 11188char ldapssl_install_routines (); 11189int 11190main () 11191{ 11192return ldapssl_install_routines (); 11193 ; 11194 return 0; 11195} 11196_ACEOF 11197if ac_fn_c_try_link "$LINENO"; then : 11198 eval "$as_ac_Lib=yes" 11199else 11200 eval "$as_ac_Lib=no" 11201fi 11202rm -f core conftest.err conftest.$ac_objext \ 11203 conftest$ac_exeext conftest.$ac_ext 11204LIBS=$ac_check_lib_save_LIBS 11205fi 11206eval ac_res=\$$as_ac_Lib 11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11208$as_echo "$ac_res" >&6; } 11209if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 11210 apu_has_ldapssl_install_routines="1" 11211fi 11212 11213 apu_has_ldap="1"; 11214 11215fi 11216 11217 fi 11218 11219 fi 11220 11221 if test ${apu_has_ldap} != "1"; then 11222 as_fn_error $? "could not find an LDAP library" "$LINENO" 5 11223 else 11224 11225 if test "x$LDADD_ldap" = "x"; then 11226 test "x$silent" != "xyes" && echo " setting LDADD_ldap to \"$LDADD_ldap_found\"" 11227 LDADD_ldap="$LDADD_ldap_found" 11228 else 11229 apr_addto_bugger="$LDADD_ldap_found" 11230 for i in $apr_addto_bugger; do 11231 apr_addto_duplicate="0" 11232 for j in $LDADD_ldap; do 11233 if test "x$i" = "x$j"; then 11234 apr_addto_duplicate="1" 11235 break 11236 fi 11237 done 11238 if test $apr_addto_duplicate = "0"; then 11239 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_ldap" 11240 LDADD_ldap="$LDADD_ldap $i" 11241 fi 11242 done 11243 fi 11244 11245 fi 11246 as_ac_Lib=`$as_echo "ac_cv_lib_$apu_liblber_name''_ber_init" | $as_tr_sh` 11247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -l$apu_liblber_name" >&5 11248$as_echo_n "checking for ber_init in -l$apu_liblber_name... " >&6; } 11249if eval \${$as_ac_Lib+:} false; then : 11250 $as_echo_n "(cached) " >&6 11251else 11252 ac_check_lib_save_LIBS=$LIBS 11253LIBS="-l$apu_liblber_name $LIBS" 11254cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11255/* end confdefs.h. */ 11256 11257/* Override any GCC internal prototype to avoid an error. 11258 Use char because int might match the return type of a GCC 11259 builtin and then its argument prototype would still apply. */ 11260#ifdef __cplusplus 11261extern "C" 11262#endif 11263char ber_init (); 11264int 11265main () 11266{ 11267return ber_init (); 11268 ; 11269 return 0; 11270} 11271_ACEOF 11272if ac_fn_c_try_link "$LINENO"; then : 11273 eval "$as_ac_Lib=yes" 11274else 11275 eval "$as_ac_Lib=no" 11276fi 11277rm -f core conftest.err conftest.$ac_objext \ 11278 conftest$ac_exeext conftest.$ac_ext 11279LIBS=$ac_check_lib_save_LIBS 11280fi 11281eval ac_res=\$$as_ac_Lib 11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11283$as_echo "$ac_res" >&6; } 11284if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 11285 11286 if test "x$LDADD_ldap" = "x"; then 11287 test "x$silent" != "xyes" && echo " setting LDADD_ldap to \"-l${apu_liblber_name}\"" 11288 LDADD_ldap="-l${apu_liblber_name}" 11289 else 11290 apr_addto_bugger="-l${apu_liblber_name}" 11291 for i in $apr_addto_bugger; do 11292 apr_addto_duplicate="0" 11293 for j in $LDADD_ldap; do 11294 if test "x$i" = "x$j"; then 11295 apr_addto_duplicate="1" 11296 break 11297 fi 11298 done 11299 if test $apr_addto_duplicate = "0"; then 11300 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_ldap" 11301 LDADD_ldap="$LDADD_ldap $i" 11302 fi 11303 done 11304 fi 11305 11306fi 11307 11308 11309 for ac_header in lber.h 11310do : 11311 ac_fn_c_check_header_mongrel "$LINENO" "lber.h" "ac_cv_header_lber_h" "$ac_includes_default" 11312if test "x$ac_cv_header_lber_h" = xyes; then : 11313 cat >>confdefs.h <<_ACEOF 11314#define HAVE_LBER_H 1 11315_ACEOF 11316 lber_h="#include <lber.h>" 11317fi 11318 11319done 11320 11321 11322 # Solaris has a problem in <ldap.h> which prevents it from 11323 # being included by itself. Check for <ldap.h> manually, 11324 # including lber.h first. 11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5 11326$as_echo_n "checking for ldap.h... " >&6; } 11327if ${apr_cv_hdr_ldap_h+:} false; then : 11328 $as_echo_n "(cached) " >&6 11329else 11330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11331/* end confdefs.h. */ 11332#ifdef HAVE_LBER_H 11333 #include <lber.h> 11334 #endif 11335 #include <ldap.h> 11336 11337_ACEOF 11338if ac_fn_c_try_cpp "$LINENO"; then : 11339 apr_cv_hdr_ldap_h=yes 11340else 11341 apr_cv_hdr_ldap_h=no 11342fi 11343rm -f conftest.err conftest.i conftest.$ac_ext 11344fi 11345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_hdr_ldap_h" >&5 11346$as_echo "$apr_cv_hdr_ldap_h" >&6; } 11347 if test "$apr_cv_hdr_ldap_h" = "yes"; then 11348 ldap_h="#include <ldap.h>" 11349 11350$as_echo "#define HAVE_LDAP_H 1" >>confdefs.h 11351 11352 fi 11353 11354 for ac_header in ldap_ssl.h 11355do : 11356 ac_fn_c_check_header_mongrel "$LINENO" "ldap_ssl.h" "ac_cv_header_ldap_ssl_h" "$ac_includes_default" 11357if test "x$ac_cv_header_ldap_ssl_h" = xyes; then : 11358 cat >>confdefs.h <<_ACEOF 11359#define HAVE_LDAP_SSL_H 1 11360_ACEOF 11361 ldap_ssl_h="#include <ldap_ssl.h>" 11362fi 11363 11364done 11365 11366 11367 if test "$apr_cv_hdr_ldap_h" = "yes"; then 11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP toolkit" >&5 11369$as_echo_n "checking for LDAP toolkit... " >&6; } 11370if ${apr_cv_ldap_toolkit+:} false; then : 11371 $as_echo_n "(cached) " >&6 11372else 11373 11374 if test "x$apr_cv_ldap_toolkit" = "x"; then 11375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11376/* end confdefs.h. */ 11377$lber_h 11378 $ldap_h 11379 LDAP_VENDOR_NAME 11380_ACEOF 11381if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11382 $EGREP "OpenLDAP" >/dev/null 2>&1; then : 11383 apu_has_ldap_openldap="1" 11384 apr_cv_ldap_toolkit="OpenLDAP" 11385fi 11386rm -f conftest* 11387 11388 fi 11389 if test "x$apr_cv_ldap_toolkit" = "x"; then 11390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11391/* end confdefs.h. */ 11392$lber_h 11393 $ldap_h 11394 LDAP_VENDOR_NAME 11395_ACEOF 11396if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11397 $EGREP "Sun Microsystems Inc." >/dev/null 2>&1; then : 11398 apu_has_ldap_solaris="1" 11399 apr_cv_ldap_toolkit="Solaris" 11400fi 11401rm -f conftest* 11402 11403 fi 11404 if test "x$apr_cv_ldap_toolkit" = "x"; then 11405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11406/* end confdefs.h. */ 11407$lber_h 11408 $ldap_h 11409 LDAP_VENDOR_NAME 11410_ACEOF 11411if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11412 $EGREP "Novell" >/dev/null 2>&1; then : 11413 apu_has_ldap_novell="1" 11414 apr_cv_ldap_toolkit="Novell" 11415fi 11416rm -f conftest* 11417 11418 fi 11419 if test "x$apr_cv_ldap_toolkit" = "x"; then 11420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11421/* end confdefs.h. */ 11422$lber_h 11423 $ldap_h 11424 LDAP_VENDOR_NAME 11425_ACEOF 11426if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11427 $EGREP "Microsoft Corporation." >/dev/null 2>&1; then : 11428 apu_has_ldap_microsoft="1" 11429 apr_cv_ldap_toolkit="Microsoft" 11430fi 11431rm -f conftest* 11432 11433 fi 11434 if test "x$apr_cv_ldap_toolkit" = "x"; then 11435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11436/* end confdefs.h. */ 11437$lber_h 11438 $ldap_h 11439 LDAP_VENDOR_NAME 11440_ACEOF 11441if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11442 $EGREP "Netscape Communications Corp." >/dev/null 2>&1; then : 11443 apu_has_ldap_netscape="1" 11444 apr_cv_ldap_toolkit="Netscape" 11445fi 11446rm -f conftest* 11447 11448 fi 11449 if test "x$apr_cv_ldap_toolkit" = "x"; then 11450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11451/* end confdefs.h. */ 11452$lber_h 11453 $ldap_h 11454 LDAP_VENDOR_NAME 11455_ACEOF 11456if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11457 $EGREP "mozilla.org" >/dev/null 2>&1; then : 11458 apu_has_ldap_mozilla="1" 11459 apr_cv_ldap_toolkit="Mozilla" 11460fi 11461rm -f conftest* 11462 11463 fi 11464 if test "x$apr_cv_ldap_toolkit" = "x"; then 11465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11466/* end confdefs.h. */ 11467$lber_h 11468 $ldap_h 11469 LDAP_VENDOR_NAME 11470_ACEOF 11471if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11472 $EGREP "International Business Machines" >/dev/null 2>&1; then : 11473 apu_has_ldap_tivoli="1" 11474 apr_cv_ldap_toolkit="Tivoli" 11475fi 11476rm -f conftest* 11477 11478 fi 11479 if test "x$apr_cv_ldap_toolkit" = "x"; then 11480 case "$host" in 11481 *-ibm-os390) 11482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11483/* end confdefs.h. */ 11484$lber_h 11485 $ldap_h 11486_ACEOF 11487if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11488 $EGREP "IBM" >/dev/null 2>&1; then : 11489 apu_has_ldap_zos="1" 11490 apr_cv_ldap_toolkit="z/OS" 11491fi 11492rm -f conftest* 11493 11494 ;; 11495 esac 11496 fi 11497 if test "x$apr_cv_ldap_toolkit" = "x"; then 11498 apu_has_ldap_other="1" 11499 apr_cv_ldap_toolkit="unknown" 11500 fi 11501 11502fi 11503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_ldap_toolkit" >&5 11504$as_echo "$apr_cv_ldap_toolkit" >&6; } 11505 fi 11506 11507 CPPFLAGS=$save_cppflags 11508 LDFLAGS=$save_ldflags 11509 LIBS=$save_libs 11510 fi 11511 11512fi 11513 11514 11515if test "$apu_has_ldap_openldap" = "1"; then 11516 save_cppflags="$CPPFLAGS" 11517 save_ldflags="$LDFLAGS" 11518 save_libs="$LIBS" 11519 11520 CPPFLAGS="$CPPFLAGS $APRUTIL_INCLUDES" 11521 LDFLAGS="$LDFLAGS $APRUTIL_LDFLAGS" 11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking style of ldap_set_rebind_proc routine" >&5 11523$as_echo_n "checking style of ldap_set_rebind_proc routine... " >&6; } 11524if ${ac_cv_ldap_set_rebind_proc_style+:} false; then : 11525 $as_echo_n "(cached) " >&6 11526else 11527 apr_save_CFLAGS=$CFLAGS 11528 CFLAGS="$CFLAGS $CFLAGS_WARN" 11529 if test "$ac_cv_c_compiler_gnu" = "yes"; then 11530 CFLAGS="$CFLAGS -Werror" 11531 fi 11532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11533/* end confdefs.h. */ 11534#include "confdefs.h" 11535 11536 11537 #ifdef HAVE_LBER_H 11538 #include <lber.h> 11539 #endif 11540 #ifdef HAVE_LDAP_H 11541 #include <ldap.h> 11542 #endif 11543 11544 int main(int argc, const char *const *argv) { 11545 11546 ldap_set_rebind_proc((LDAP *)0, (LDAP_REBIND_PROC *)0, (void *)0); 11547 11548 return 0; } 11549 11550_ACEOF 11551if ac_fn_c_try_compile "$LINENO"; then : 11552 ac_cv_ldap_set_rebind_proc_style=three 11553else 11554 ac_cv_ldap_set_rebind_proc_style=two 11555fi 11556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11557 CFLAGS=$apr_save_CFLAGS 11558 11559fi 11560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ldap_set_rebind_proc_style" >&5 11561$as_echo "$ac_cv_ldap_set_rebind_proc_style" >&6; } 11562 11563 if test "$ac_cv_ldap_set_rebind_proc_style" = "three"; then 11564 11565$as_echo "#define LDAP_SET_REBIND_PROC_THREE 1" >>confdefs.h 11566 11567 fi 11568 11569 CPPFLAGS="$save_cppflags" 11570 LDFLAGS="$save_ldflags" 11571 LIBS="$save_libs" 11572fi 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 apu_use_sdbm=0 11599 apu_use_ndbm=0 11600 apu_use_gdbm=0 11601 apu_use_db=0 11602 apu_have_sdbm=1 11603 apu_have_gdbm=0 11604 apu_have_ndbm=0 11605 apu_have_db=0 11606 11607 apu_db_header=db.h # default so apu_select_dbm.h is syntactically correct 11608 apu_db_version=0 11609 11610 # Maximum supported version announced in help string.
|
11611 # Although we search for all versions up to 5.9,
| 11611 # Although we search for all versions up to 6.9,
|
11612 # we should only include existing versions in our 11613 # help string.
| 11612 # we should only include existing versions in our 11613 # help string.
|
11614 db_max_version=53 11615 db_min_version=41
| |
11616 dbm_list="sdbm, gdbm, ndbm, db, db1, db185, db2, db3, db4"
| 11614 dbm_list="sdbm, gdbm, ndbm, db, db1, db185, db2, db3, db4"
|
| 11615 db_max_version=48 11616 db_min_version=41
|
11617 db_version="$db_min_version" 11618 while [ $db_version -le $db_max_version ] 11619 do 11620 dbm_list="$dbm_list, db$db_version" 11621 db_version=`expr $db_version + 1` 11622 done
| 11617 db_version="$db_min_version" 11618 while [ $db_version -le $db_max_version ] 11619 do 11620 dbm_list="$dbm_list, db$db_version" 11621 db_version=`expr $db_version + 1` 11622 done
|
11623 dbm_list="$dbm_list, db60"
| 11623 db_max_version=53 11624 db_min_version=50 11625 db_version="$db_min_version" 11626 while [ $db_version -le $db_max_version ] 11627 do 11628 dbm_list="$dbm_list, db$db_version" 11629 db_version=`expr $db_version + 1` 11630 done 11631 db_max_version=60 11632 db_min_version=60 11633 db_version="$db_min_version" 11634 while [ $db_version -le $db_max_version ] 11635 do 11636 dbm_list="$dbm_list, db$db_version" 11637 db_version=`expr $db_version + 1` 11638 done
|
11624 11625 11626# Check whether --with-dbm was given. 11627if test "${with_dbm+set}" = set; then : 11628 withval=$with_dbm; 11629 if test "$withval" = "yes"; then 11630 as_fn_error $? "--with-dbm needs to specify a DBM type to use. 11631 One of: $dbm_list" "$LINENO" 5 11632 fi 11633 requested="$withval" 11634 11635else 11636 11637 requested=default 11638 11639fi 11640 11641 11642 11643# Check whether --with-gdbm was given. 11644if test "${with_gdbm+set}" = set; then : 11645 withval=$with_gdbm; 11646 apu_have_gdbm=0 11647 if test "$withval" = "yes"; then 11648 ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default" 11649if test "x$ac_cv_header_gdbm_h" = xyes; then : 11650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5 11651$as_echo_n "checking for gdbm_open in -lgdbm... " >&6; } 11652if ${ac_cv_lib_gdbm_gdbm_open+:} false; then : 11653 $as_echo_n "(cached) " >&6 11654else 11655 ac_check_lib_save_LIBS=$LIBS 11656LIBS="-lgdbm $LIBS" 11657cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11658/* end confdefs.h. */ 11659 11660/* Override any GCC internal prototype to avoid an error. 11661 Use char because int might match the return type of a GCC 11662 builtin and then its argument prototype would still apply. */ 11663#ifdef __cplusplus 11664extern "C" 11665#endif 11666char gdbm_open (); 11667int 11668main () 11669{ 11670return gdbm_open (); 11671 ; 11672 return 0; 11673} 11674_ACEOF 11675if ac_fn_c_try_link "$LINENO"; then : 11676 ac_cv_lib_gdbm_gdbm_open=yes 11677else 11678 ac_cv_lib_gdbm_gdbm_open=no 11679fi 11680rm -f core conftest.err conftest.$ac_objext \ 11681 conftest$ac_exeext conftest.$ac_ext 11682LIBS=$ac_check_lib_save_LIBS 11683fi 11684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5 11685$as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; } 11686if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then : 11687 apu_have_gdbm=1 11688fi 11689 11690fi 11691 11692 11693 elif test "$withval" = "no"; then 11694 apu_have_gdbm=0 11695 else 11696 saved_cppflags="$CPPFLAGS" 11697 saved_ldflags="$LDFLAGS" 11698 CPPFLAGS="$CPPFLAGS -I$withval/include" 11699 LDFLAGS="$LDFLAGS -L$withval/lib " 11700 11701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for gdbm in $withval" >&5 11702$as_echo_n "checking checking for gdbm in $withval... " >&6; } 11703 ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default" 11704if test "x$ac_cv_header_gdbm_h" = xyes; then : 11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5 11706$as_echo_n "checking for gdbm_open in -lgdbm... " >&6; } 11707if ${ac_cv_lib_gdbm_gdbm_open+:} false; then : 11708 $as_echo_n "(cached) " >&6 11709else 11710 ac_check_lib_save_LIBS=$LIBS 11711LIBS="-lgdbm $LIBS" 11712cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11713/* end confdefs.h. */ 11714 11715/* Override any GCC internal prototype to avoid an error. 11716 Use char because int might match the return type of a GCC 11717 builtin and then its argument prototype would still apply. */ 11718#ifdef __cplusplus 11719extern "C" 11720#endif 11721char gdbm_open (); 11722int 11723main () 11724{ 11725return gdbm_open (); 11726 ; 11727 return 0; 11728} 11729_ACEOF 11730if ac_fn_c_try_link "$LINENO"; then : 11731 ac_cv_lib_gdbm_gdbm_open=yes 11732else 11733 ac_cv_lib_gdbm_gdbm_open=no 11734fi 11735rm -f core conftest.err conftest.$ac_objext \ 11736 conftest$ac_exeext conftest.$ac_ext 11737LIBS=$ac_check_lib_save_LIBS 11738fi 11739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5 11740$as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; } 11741if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then : 11742 apu_have_gdbm=1 11743fi 11744 11745fi 11746 11747 11748 if test "$apu_have_gdbm" != "0"; then 11749 11750 if test "x$APRUTIL_LDFLAGS" = "x"; then 11751 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$withval/lib\"" 11752 APRUTIL_LDFLAGS="-L$withval/lib" 11753 else 11754 apr_addto_bugger="-L$withval/lib" 11755 for i in $apr_addto_bugger; do 11756 apr_addto_duplicate="0" 11757 for j in $APRUTIL_LDFLAGS; do 11758 if test "x$i" = "x$j"; then 11759 apr_addto_duplicate="1" 11760 break 11761 fi 11762 done 11763 if test $apr_addto_duplicate = "0"; then 11764 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 11765 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 11766 fi 11767 done 11768 fi 11769 11770 11771 if test "x$APRUTIL_INCLUDES" = "x"; then 11772 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$withval/include\"" 11773 APRUTIL_INCLUDES="-I$withval/include" 11774 else 11775 apr_addto_bugger="-I$withval/include" 11776 for i in $apr_addto_bugger; do 11777 apr_addto_duplicate="0" 11778 for j in $APRUTIL_INCLUDES; do 11779 if test "x$i" = "x$j"; then 11780 apr_addto_duplicate="1" 11781 break 11782 fi 11783 done 11784 if test $apr_addto_duplicate = "0"; then 11785 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 11786 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 11787 fi 11788 done 11789 fi 11790 11791 fi 11792 CPPFLAGS="$saved_cppflags" 11793 LDFLAGS="$saved_ldflags" 11794 fi 11795 11796fi 11797 11798 11799 11800# Check whether --with-ndbm was given. 11801if test "${with_ndbm+set}" = set; then : 11802 withval=$with_ndbm; 11803 apu_have_ndbm=0 11804 if test "$withval" = "yes"; then 11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for ndbm in the usual places" >&5 11806$as_echo_n "checking checking for ndbm in the usual places... " >&6; } 11807 apu_want_ndbm=1 11808 NDBM_INC="" 11809 NDBM_LDFLAGS="" 11810 elif test "$withval" = "no"; then 11811 apu_want_ndbm=0 11812 else 11813 apu_want_ndbm=1 11814 case "$withval" in 11815 *":"*) 11816 NDBM_INC="-I`echo $withval |sed -e 's/:.*$//'`" 11817 NDBM_LDFLAGS="-L`echo $withval |sed -e 's/^.*://'`" 11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for ndbm includes with $NDBM_INC libs with $NDBM_LDFLAGS " >&5 11819$as_echo_n "checking checking for ndbm includes with $NDBM_INC libs with $NDBM_LDFLAGS ... " >&6; } 11820 ;; 11821 *) 11822 NDBM_INC="-I$withval/include" 11823 NDBM_LDFLAGS="-L$withval/lib" 11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for ndbm includes in $withval" >&5 11825$as_echo_n "checking checking for ndbm includes in $withval... " >&6; } 11826 ;; 11827 esac 11828 fi 11829 11830 save_cppflags="$CPPFLAGS" 11831 save_ldflags="$LDFLAGS" 11832 CPPFLAGS="$CPPFLAGS $NDBM_INC" 11833 LDFLAGS="$LDFLAGS $NDBM_LDFLAGS" 11834 if test "$apu_want_ndbm" != "0"; then 11835 ac_fn_c_check_header_mongrel "$LINENO" "ndbm.h" "ac_cv_header_ndbm_h" "$ac_includes_default" 11836if test "x$ac_cv_header_ndbm_h" = xyes; then : 11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -lc" >&5 11838$as_echo_n "checking for dbm_open in -lc... " >&6; } 11839if ${ac_cv_lib_c_dbm_open+:} false; then : 11840 $as_echo_n "(cached) " >&6 11841else 11842 ac_check_lib_save_LIBS=$LIBS 11843LIBS="-lc $LIBS" 11844cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11845/* end confdefs.h. */ 11846 11847/* Override any GCC internal prototype to avoid an error. 11848 Use char because int might match the return type of a GCC 11849 builtin and then its argument prototype would still apply. */ 11850#ifdef __cplusplus 11851extern "C" 11852#endif 11853char dbm_open (); 11854int 11855main () 11856{ 11857return dbm_open (); 11858 ; 11859 return 0; 11860} 11861_ACEOF 11862if ac_fn_c_try_link "$LINENO"; then : 11863 ac_cv_lib_c_dbm_open=yes 11864else 11865 ac_cv_lib_c_dbm_open=no 11866fi 11867rm -f core conftest.err conftest.$ac_objext \ 11868 conftest$ac_exeext conftest.$ac_ext 11869LIBS=$ac_check_lib_save_LIBS 11870fi 11871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dbm_open" >&5 11872$as_echo "$ac_cv_lib_c_dbm_open" >&6; } 11873if test "x$ac_cv_lib_c_dbm_open" = xyes; then : 11874 apu_have_ndbm=1;apu_ndbm_lib=c 11875else 11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -ldbm" >&5 11877$as_echo_n "checking for dbm_open in -ldbm... " >&6; } 11878if ${ac_cv_lib_dbm_dbm_open+:} false; then : 11879 $as_echo_n "(cached) " >&6 11880else 11881 ac_check_lib_save_LIBS=$LIBS 11882LIBS="-ldbm $LIBS" 11883cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11884/* end confdefs.h. */ 11885 11886/* Override any GCC internal prototype to avoid an error. 11887 Use char because int might match the return type of a GCC 11888 builtin and then its argument prototype would still apply. */ 11889#ifdef __cplusplus 11890extern "C" 11891#endif 11892char dbm_open (); 11893int 11894main () 11895{ 11896return dbm_open (); 11897 ; 11898 return 0; 11899} 11900_ACEOF 11901if ac_fn_c_try_link "$LINENO"; then : 11902 ac_cv_lib_dbm_dbm_open=yes 11903else 11904 ac_cv_lib_dbm_dbm_open=no 11905fi 11906rm -f core conftest.err conftest.$ac_objext \ 11907 conftest$ac_exeext conftest.$ac_ext 11908LIBS=$ac_check_lib_save_LIBS 11909fi 11910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbm_dbm_open" >&5 11911$as_echo "$ac_cv_lib_dbm_dbm_open" >&6; } 11912if test "x$ac_cv_lib_dbm_dbm_open" = xyes; then : 11913 apu_have_ndbm=1;apu_ndbm_lib=dbm 11914else 11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -ldb" >&5 11916$as_echo_n "checking for dbm_open in -ldb... " >&6; } 11917if ${ac_cv_lib_db_dbm_open+:} false; then : 11918 $as_echo_n "(cached) " >&6 11919else 11920 ac_check_lib_save_LIBS=$LIBS 11921LIBS="-ldb $LIBS" 11922cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11923/* end confdefs.h. */ 11924 11925/* Override any GCC internal prototype to avoid an error. 11926 Use char because int might match the return type of a GCC 11927 builtin and then its argument prototype would still apply. */ 11928#ifdef __cplusplus 11929extern "C" 11930#endif 11931char dbm_open (); 11932int 11933main () 11934{ 11935return dbm_open (); 11936 ; 11937 return 0; 11938} 11939_ACEOF 11940if ac_fn_c_try_link "$LINENO"; then : 11941 ac_cv_lib_db_dbm_open=yes 11942else 11943 ac_cv_lib_db_dbm_open=no 11944fi 11945rm -f core conftest.err conftest.$ac_objext \ 11946 conftest$ac_exeext conftest.$ac_ext 11947LIBS=$ac_check_lib_save_LIBS 11948fi 11949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_dbm_open" >&5 11950$as_echo "$ac_cv_lib_db_dbm_open" >&6; } 11951if test "x$ac_cv_lib_db_dbm_open" = xyes; then : 11952 apu_have_ndbm=1;apu_ndbm_lib=db 11953else 11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __db_ndbm_open in -ldb" >&5 11955$as_echo_n "checking for __db_ndbm_open in -ldb... " >&6; } 11956if ${ac_cv_lib_db___db_ndbm_open+:} false; then : 11957 $as_echo_n "(cached) " >&6 11958else 11959 ac_check_lib_save_LIBS=$LIBS 11960LIBS="-ldb $LIBS" 11961cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11962/* end confdefs.h. */ 11963 11964/* Override any GCC internal prototype to avoid an error. 11965 Use char because int might match the return type of a GCC 11966 builtin and then its argument prototype would still apply. */ 11967#ifdef __cplusplus 11968extern "C" 11969#endif 11970char __db_ndbm_open (); 11971int 11972main () 11973{ 11974return __db_ndbm_open (); 11975 ; 11976 return 0; 11977} 11978_ACEOF 11979if ac_fn_c_try_link "$LINENO"; then : 11980 ac_cv_lib_db___db_ndbm_open=yes 11981else 11982 ac_cv_lib_db___db_ndbm_open=no 11983fi 11984rm -f core conftest.err conftest.$ac_objext \ 11985 conftest$ac_exeext conftest.$ac_ext 11986LIBS=$ac_check_lib_save_LIBS 11987fi 11988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db___db_ndbm_open" >&5 11989$as_echo "$ac_cv_lib_db___db_ndbm_open" >&6; } 11990if test "x$ac_cv_lib_db___db_ndbm_open" = xyes; then : 11991 apu_have_ndbm=1;apu_ndbm_lib=db 11992fi 11993 11994 11995fi 11996 11997 11998fi 11999 12000 12001fi 12002 12003 12004fi 12005 12006 12007 if test "$apu_have_ndbm" != "0"; then 12008 if test "$withval" != "yes"; then 12009 12010 if test "x$APRUTIL_INCLUDES" = "x"; then 12011 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"$NDBM_INC\"" 12012 APRUTIL_INCLUDES="$NDBM_INC" 12013 else 12014 apr_addto_bugger="$NDBM_INC" 12015 for i in $apr_addto_bugger; do 12016 apr_addto_duplicate="0" 12017 for j in $APRUTIL_INCLUDES; do 12018 if test "x$i" = "x$j"; then 12019 apr_addto_duplicate="1" 12020 break 12021 fi 12022 done 12023 if test $apr_addto_duplicate = "0"; then 12024 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 12025 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 12026 fi 12027 done 12028 fi 12029 12030 12031 if test "x$APRUTIL_LDFLAGS" = "x"; then 12032 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"$NDBM_LDFLAGS\"" 12033 APRUTIL_LDFLAGS="$NDBM_LDFLAGS" 12034 else 12035 apr_addto_bugger="$NDBM_LDFLAGS" 12036 for i in $apr_addto_bugger; do 12037 apr_addto_duplicate="0" 12038 for j in $APRUTIL_LDFLAGS; do 12039 if test "x$i" = "x$j"; then 12040 apr_addto_duplicate="1" 12041 break 12042 fi 12043 done 12044 if test $apr_addto_duplicate = "0"; then 12045 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 12046 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 12047 fi 12048 done 12049 fi 12050 12051 fi 12052 elif test "$withval" != "yes"; then 12053 as_fn_error $? "NDBM not found in the specified directory" "$LINENO" 5 12054 fi 12055 fi 12056 CPPFLAGS="$save_cppflags" 12057 LDFLAGS="$save_ldflags" 12058 12059else 12060 12061 apu_have_ndbm=0 12062 12063fi 12064 12065 12066 12067 if test -n "$apu_db_xtra_libs"; then 12068 saveddbxtralibs="$LIBS" 12069 LIBS="$apu_db_xtra_libs $LIBS" 12070 fi 12071 12072 12073# Check whether --with-berkeley-db was given. 12074if test "${with_berkeley_db+set}" = set; then : 12075 withval=$with_berkeley_db; 12076 if test "$withval" = "yes"; then 12077 apu_want_db=1 12078 user_places="" 12079 elif test "$withval" = "no"; then 12080 apu_want_db=0 12081 else 12082 apu_want_db=1 12083 user_places="$withval" 12084 fi 12085 12086 if test "$apu_want_db" != "0"; then 12087 12088 requested=$requested 12089 check_places=$user_places 12090 12091 case "$requested" in 12092 db) 12093 12094 all_places="$check_places" 12095
| 11639 11640 11641# Check whether --with-dbm was given. 11642if test "${with_dbm+set}" = set; then : 11643 withval=$with_dbm; 11644 if test "$withval" = "yes"; then 11645 as_fn_error $? "--with-dbm needs to specify a DBM type to use. 11646 One of: $dbm_list" "$LINENO" 5 11647 fi 11648 requested="$withval" 11649 11650else 11651 11652 requested=default 11653 11654fi 11655 11656 11657 11658# Check whether --with-gdbm was given. 11659if test "${with_gdbm+set}" = set; then : 11660 withval=$with_gdbm; 11661 apu_have_gdbm=0 11662 if test "$withval" = "yes"; then 11663 ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default" 11664if test "x$ac_cv_header_gdbm_h" = xyes; then : 11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5 11666$as_echo_n "checking for gdbm_open in -lgdbm... " >&6; } 11667if ${ac_cv_lib_gdbm_gdbm_open+:} false; then : 11668 $as_echo_n "(cached) " >&6 11669else 11670 ac_check_lib_save_LIBS=$LIBS 11671LIBS="-lgdbm $LIBS" 11672cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11673/* end confdefs.h. */ 11674 11675/* Override any GCC internal prototype to avoid an error. 11676 Use char because int might match the return type of a GCC 11677 builtin and then its argument prototype would still apply. */ 11678#ifdef __cplusplus 11679extern "C" 11680#endif 11681char gdbm_open (); 11682int 11683main () 11684{ 11685return gdbm_open (); 11686 ; 11687 return 0; 11688} 11689_ACEOF 11690if ac_fn_c_try_link "$LINENO"; then : 11691 ac_cv_lib_gdbm_gdbm_open=yes 11692else 11693 ac_cv_lib_gdbm_gdbm_open=no 11694fi 11695rm -f core conftest.err conftest.$ac_objext \ 11696 conftest$ac_exeext conftest.$ac_ext 11697LIBS=$ac_check_lib_save_LIBS 11698fi 11699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5 11700$as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; } 11701if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then : 11702 apu_have_gdbm=1 11703fi 11704 11705fi 11706 11707 11708 elif test "$withval" = "no"; then 11709 apu_have_gdbm=0 11710 else 11711 saved_cppflags="$CPPFLAGS" 11712 saved_ldflags="$LDFLAGS" 11713 CPPFLAGS="$CPPFLAGS -I$withval/include" 11714 LDFLAGS="$LDFLAGS -L$withval/lib " 11715 11716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for gdbm in $withval" >&5 11717$as_echo_n "checking checking for gdbm in $withval... " >&6; } 11718 ac_fn_c_check_header_mongrel "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default" 11719if test "x$ac_cv_header_gdbm_h" = xyes; then : 11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5 11721$as_echo_n "checking for gdbm_open in -lgdbm... " >&6; } 11722if ${ac_cv_lib_gdbm_gdbm_open+:} false; then : 11723 $as_echo_n "(cached) " >&6 11724else 11725 ac_check_lib_save_LIBS=$LIBS 11726LIBS="-lgdbm $LIBS" 11727cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11728/* end confdefs.h. */ 11729 11730/* Override any GCC internal prototype to avoid an error. 11731 Use char because int might match the return type of a GCC 11732 builtin and then its argument prototype would still apply. */ 11733#ifdef __cplusplus 11734extern "C" 11735#endif 11736char gdbm_open (); 11737int 11738main () 11739{ 11740return gdbm_open (); 11741 ; 11742 return 0; 11743} 11744_ACEOF 11745if ac_fn_c_try_link "$LINENO"; then : 11746 ac_cv_lib_gdbm_gdbm_open=yes 11747else 11748 ac_cv_lib_gdbm_gdbm_open=no 11749fi 11750rm -f core conftest.err conftest.$ac_objext \ 11751 conftest$ac_exeext conftest.$ac_ext 11752LIBS=$ac_check_lib_save_LIBS 11753fi 11754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5 11755$as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; } 11756if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then : 11757 apu_have_gdbm=1 11758fi 11759 11760fi 11761 11762 11763 if test "$apu_have_gdbm" != "0"; then 11764 11765 if test "x$APRUTIL_LDFLAGS" = "x"; then 11766 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$withval/lib\"" 11767 APRUTIL_LDFLAGS="-L$withval/lib" 11768 else 11769 apr_addto_bugger="-L$withval/lib" 11770 for i in $apr_addto_bugger; do 11771 apr_addto_duplicate="0" 11772 for j in $APRUTIL_LDFLAGS; do 11773 if test "x$i" = "x$j"; then 11774 apr_addto_duplicate="1" 11775 break 11776 fi 11777 done 11778 if test $apr_addto_duplicate = "0"; then 11779 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 11780 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 11781 fi 11782 done 11783 fi 11784 11785 11786 if test "x$APRUTIL_INCLUDES" = "x"; then 11787 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$withval/include\"" 11788 APRUTIL_INCLUDES="-I$withval/include" 11789 else 11790 apr_addto_bugger="-I$withval/include" 11791 for i in $apr_addto_bugger; do 11792 apr_addto_duplicate="0" 11793 for j in $APRUTIL_INCLUDES; do 11794 if test "x$i" = "x$j"; then 11795 apr_addto_duplicate="1" 11796 break 11797 fi 11798 done 11799 if test $apr_addto_duplicate = "0"; then 11800 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 11801 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 11802 fi 11803 done 11804 fi 11805 11806 fi 11807 CPPFLAGS="$saved_cppflags" 11808 LDFLAGS="$saved_ldflags" 11809 fi 11810 11811fi 11812 11813 11814 11815# Check whether --with-ndbm was given. 11816if test "${with_ndbm+set}" = set; then : 11817 withval=$with_ndbm; 11818 apu_have_ndbm=0 11819 if test "$withval" = "yes"; then 11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for ndbm in the usual places" >&5 11821$as_echo_n "checking checking for ndbm in the usual places... " >&6; } 11822 apu_want_ndbm=1 11823 NDBM_INC="" 11824 NDBM_LDFLAGS="" 11825 elif test "$withval" = "no"; then 11826 apu_want_ndbm=0 11827 else 11828 apu_want_ndbm=1 11829 case "$withval" in 11830 *":"*) 11831 NDBM_INC="-I`echo $withval |sed -e 's/:.*$//'`" 11832 NDBM_LDFLAGS="-L`echo $withval |sed -e 's/^.*://'`" 11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for ndbm includes with $NDBM_INC libs with $NDBM_LDFLAGS " >&5 11834$as_echo_n "checking checking for ndbm includes with $NDBM_INC libs with $NDBM_LDFLAGS ... " >&6; } 11835 ;; 11836 *) 11837 NDBM_INC="-I$withval/include" 11838 NDBM_LDFLAGS="-L$withval/lib" 11839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for ndbm includes in $withval" >&5 11840$as_echo_n "checking checking for ndbm includes in $withval... " >&6; } 11841 ;; 11842 esac 11843 fi 11844 11845 save_cppflags="$CPPFLAGS" 11846 save_ldflags="$LDFLAGS" 11847 CPPFLAGS="$CPPFLAGS $NDBM_INC" 11848 LDFLAGS="$LDFLAGS $NDBM_LDFLAGS" 11849 if test "$apu_want_ndbm" != "0"; then 11850 ac_fn_c_check_header_mongrel "$LINENO" "ndbm.h" "ac_cv_header_ndbm_h" "$ac_includes_default" 11851if test "x$ac_cv_header_ndbm_h" = xyes; then : 11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -lc" >&5 11853$as_echo_n "checking for dbm_open in -lc... " >&6; } 11854if ${ac_cv_lib_c_dbm_open+:} false; then : 11855 $as_echo_n "(cached) " >&6 11856else 11857 ac_check_lib_save_LIBS=$LIBS 11858LIBS="-lc $LIBS" 11859cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11860/* end confdefs.h. */ 11861 11862/* Override any GCC internal prototype to avoid an error. 11863 Use char because int might match the return type of a GCC 11864 builtin and then its argument prototype would still apply. */ 11865#ifdef __cplusplus 11866extern "C" 11867#endif 11868char dbm_open (); 11869int 11870main () 11871{ 11872return dbm_open (); 11873 ; 11874 return 0; 11875} 11876_ACEOF 11877if ac_fn_c_try_link "$LINENO"; then : 11878 ac_cv_lib_c_dbm_open=yes 11879else 11880 ac_cv_lib_c_dbm_open=no 11881fi 11882rm -f core conftest.err conftest.$ac_objext \ 11883 conftest$ac_exeext conftest.$ac_ext 11884LIBS=$ac_check_lib_save_LIBS 11885fi 11886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dbm_open" >&5 11887$as_echo "$ac_cv_lib_c_dbm_open" >&6; } 11888if test "x$ac_cv_lib_c_dbm_open" = xyes; then : 11889 apu_have_ndbm=1;apu_ndbm_lib=c 11890else 11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -ldbm" >&5 11892$as_echo_n "checking for dbm_open in -ldbm... " >&6; } 11893if ${ac_cv_lib_dbm_dbm_open+:} false; then : 11894 $as_echo_n "(cached) " >&6 11895else 11896 ac_check_lib_save_LIBS=$LIBS 11897LIBS="-ldbm $LIBS" 11898cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11899/* end confdefs.h. */ 11900 11901/* Override any GCC internal prototype to avoid an error. 11902 Use char because int might match the return type of a GCC 11903 builtin and then its argument prototype would still apply. */ 11904#ifdef __cplusplus 11905extern "C" 11906#endif 11907char dbm_open (); 11908int 11909main () 11910{ 11911return dbm_open (); 11912 ; 11913 return 0; 11914} 11915_ACEOF 11916if ac_fn_c_try_link "$LINENO"; then : 11917 ac_cv_lib_dbm_dbm_open=yes 11918else 11919 ac_cv_lib_dbm_dbm_open=no 11920fi 11921rm -f core conftest.err conftest.$ac_objext \ 11922 conftest$ac_exeext conftest.$ac_ext 11923LIBS=$ac_check_lib_save_LIBS 11924fi 11925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbm_dbm_open" >&5 11926$as_echo "$ac_cv_lib_dbm_dbm_open" >&6; } 11927if test "x$ac_cv_lib_dbm_dbm_open" = xyes; then : 11928 apu_have_ndbm=1;apu_ndbm_lib=dbm 11929else 11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -ldb" >&5 11931$as_echo_n "checking for dbm_open in -ldb... " >&6; } 11932if ${ac_cv_lib_db_dbm_open+:} false; then : 11933 $as_echo_n "(cached) " >&6 11934else 11935 ac_check_lib_save_LIBS=$LIBS 11936LIBS="-ldb $LIBS" 11937cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11938/* end confdefs.h. */ 11939 11940/* Override any GCC internal prototype to avoid an error. 11941 Use char because int might match the return type of a GCC 11942 builtin and then its argument prototype would still apply. */ 11943#ifdef __cplusplus 11944extern "C" 11945#endif 11946char dbm_open (); 11947int 11948main () 11949{ 11950return dbm_open (); 11951 ; 11952 return 0; 11953} 11954_ACEOF 11955if ac_fn_c_try_link "$LINENO"; then : 11956 ac_cv_lib_db_dbm_open=yes 11957else 11958 ac_cv_lib_db_dbm_open=no 11959fi 11960rm -f core conftest.err conftest.$ac_objext \ 11961 conftest$ac_exeext conftest.$ac_ext 11962LIBS=$ac_check_lib_save_LIBS 11963fi 11964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_dbm_open" >&5 11965$as_echo "$ac_cv_lib_db_dbm_open" >&6; } 11966if test "x$ac_cv_lib_db_dbm_open" = xyes; then : 11967 apu_have_ndbm=1;apu_ndbm_lib=db 11968else 11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __db_ndbm_open in -ldb" >&5 11970$as_echo_n "checking for __db_ndbm_open in -ldb... " >&6; } 11971if ${ac_cv_lib_db___db_ndbm_open+:} false; then : 11972 $as_echo_n "(cached) " >&6 11973else 11974 ac_check_lib_save_LIBS=$LIBS 11975LIBS="-ldb $LIBS" 11976cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11977/* end confdefs.h. */ 11978 11979/* Override any GCC internal prototype to avoid an error. 11980 Use char because int might match the return type of a GCC 11981 builtin and then its argument prototype would still apply. */ 11982#ifdef __cplusplus 11983extern "C" 11984#endif 11985char __db_ndbm_open (); 11986int 11987main () 11988{ 11989return __db_ndbm_open (); 11990 ; 11991 return 0; 11992} 11993_ACEOF 11994if ac_fn_c_try_link "$LINENO"; then : 11995 ac_cv_lib_db___db_ndbm_open=yes 11996else 11997 ac_cv_lib_db___db_ndbm_open=no 11998fi 11999rm -f core conftest.err conftest.$ac_objext \ 12000 conftest$ac_exeext conftest.$ac_ext 12001LIBS=$ac_check_lib_save_LIBS 12002fi 12003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db___db_ndbm_open" >&5 12004$as_echo "$ac_cv_lib_db___db_ndbm_open" >&6; } 12005if test "x$ac_cv_lib_db___db_ndbm_open" = xyes; then : 12006 apu_have_ndbm=1;apu_ndbm_lib=db 12007fi 12008 12009 12010fi 12011 12012 12013fi 12014 12015 12016fi 12017 12018 12019fi 12020 12021 12022 if test "$apu_have_ndbm" != "0"; then 12023 if test "$withval" != "yes"; then 12024 12025 if test "x$APRUTIL_INCLUDES" = "x"; then 12026 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"$NDBM_INC\"" 12027 APRUTIL_INCLUDES="$NDBM_INC" 12028 else 12029 apr_addto_bugger="$NDBM_INC" 12030 for i in $apr_addto_bugger; do 12031 apr_addto_duplicate="0" 12032 for j in $APRUTIL_INCLUDES; do 12033 if test "x$i" = "x$j"; then 12034 apr_addto_duplicate="1" 12035 break 12036 fi 12037 done 12038 if test $apr_addto_duplicate = "0"; then 12039 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 12040 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 12041 fi 12042 done 12043 fi 12044 12045 12046 if test "x$APRUTIL_LDFLAGS" = "x"; then 12047 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"$NDBM_LDFLAGS\"" 12048 APRUTIL_LDFLAGS="$NDBM_LDFLAGS" 12049 else 12050 apr_addto_bugger="$NDBM_LDFLAGS" 12051 for i in $apr_addto_bugger; do 12052 apr_addto_duplicate="0" 12053 for j in $APRUTIL_LDFLAGS; do 12054 if test "x$i" = "x$j"; then 12055 apr_addto_duplicate="1" 12056 break 12057 fi 12058 done 12059 if test $apr_addto_duplicate = "0"; then 12060 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 12061 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 12062 fi 12063 done 12064 fi 12065 12066 fi 12067 elif test "$withval" != "yes"; then 12068 as_fn_error $? "NDBM not found in the specified directory" "$LINENO" 5 12069 fi 12070 fi 12071 CPPFLAGS="$save_cppflags" 12072 LDFLAGS="$save_ldflags" 12073 12074else 12075 12076 apu_have_ndbm=0 12077 12078fi 12079 12080 12081 12082 if test -n "$apu_db_xtra_libs"; then 12083 saveddbxtralibs="$LIBS" 12084 LIBS="$apu_db_xtra_libs $LIBS" 12085 fi 12086 12087 12088# Check whether --with-berkeley-db was given. 12089if test "${with_berkeley_db+set}" = set; then : 12090 withval=$with_berkeley_db; 12091 if test "$withval" = "yes"; then 12092 apu_want_db=1 12093 user_places="" 12094 elif test "$withval" = "no"; then 12095 apu_want_db=0 12096 else 12097 apu_want_db=1 12098 user_places="$withval" 12099 fi 12100 12101 if test "$apu_want_db" != "0"; then 12102 12103 requested=$requested 12104 check_places=$user_places 12105 12106 case "$requested" in 12107 db) 12108 12109 all_places="$check_places" 12110
|
12096 # Start version search at version 5.9 12097 db_version=59
| 12111 # Start version search at version 6.9 12112 db_version=69
|
12098 while [ $db_version -ge 40 ] 12099 do 12100 db_major=`echo $db_version | sed -e 's/.$//'` 12101 db_minor=`echo $db_version | sed -e 's/.//'` 12102 12103 places="$all_places" 12104 db_major="$db_major" 12105 db_minor="$db_minor" 12106 if test -z "$places"; then 12107 places="std /usr/local /usr/local/BerkeleyDB.${db_major}.${db_minor} /boot/home/config" 12108 fi 12109 12110 bdb_version="${db_major}" 12111 if test ""${db_minor}"" != "-1"; then 12112 bdb_version="$bdb_version."${db_minor}"" 12113 if test ""-1"" != "-1"; then 12114 bdb_version="$bdb_version."-1"" 12115 fi 12116 fi 12117 bdb_places="$places" 12118 bdb_default_search_headers="db${db_major}${db_minor}/db.h db${db_major}/db.h db.h" 12119 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" 12120 12121 12122 apu_have_db=0 12123 12124 # Save the original values of the flags we tweak. 12125 apu_check_lib_save_libs="$LIBS" 12126 apu_check_lib_save_ldflags="$LDFLAGS" 12127 apu_check_lib_save_cppflags="$CPPFLAGS" 12128 12129 # The variable `found' is the prefix under which we've found 12130 # Berkeley DB, or `not' if we haven't found it anywhere yet. 12131 found=not 12132 for bdb_place in $bdb_places; do 12133 12134 LDFLAGS="$apu_check_lib_save_ldflags" 12135 CPPFLAGS="$apu_check_lib_save_cppflags" 12136 case "$bdb_place" in 12137 "std" ) 12138 description="the standard places" 12139 ;; 12140 *":"* ) 12141 header="`echo $bdb_place | sed -e 's/:.*$//'`" 12142 lib="`echo $bdb_place | sed -e 's/^.*://'`" 12143 CPPFLAGS="$CPPFLAGS -I$header" 12144 LDFLAGS="$LDFLAGS -L$lib" 12145 description="$header and $lib" 12146 ;; 12147 * ) 12148 if test -d $bdb_place; then 12149 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 12150 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 12151 else 12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 12153$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 12155$as_echo "directory not found" >&6; } 12156 continue 12157 fi 12158 description="$bdb_place" 12159 ;; 12160 esac 12161 12162 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 12163 # trick to display a message instead. 12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 12165$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 12167$as_echo "" >&6; } 12168 12169 for bdb_libname in $bdb_default_search_lib_names; do 12170 for bdb_header in $bdb_default_search_headers; do 12171 # Clear the header cache variable for each location 12172 12173 cache_id="`echo ac_cv_header_${bdb_header} \ 12174 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 12175 12176 unset $cache_id 12177 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 12178ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 12179if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12180
| 12113 while [ $db_version -ge 40 ] 12114 do 12115 db_major=`echo $db_version | sed -e 's/.$//'` 12116 db_minor=`echo $db_version | sed -e 's/.//'` 12117 12118 places="$all_places" 12119 db_major="$db_major" 12120 db_minor="$db_minor" 12121 if test -z "$places"; then 12122 places="std /usr/local /usr/local/BerkeleyDB.${db_major}.${db_minor} /boot/home/config" 12123 fi 12124 12125 bdb_version="${db_major}" 12126 if test ""${db_minor}"" != "-1"; then 12127 bdb_version="$bdb_version."${db_minor}"" 12128 if test ""-1"" != "-1"; then 12129 bdb_version="$bdb_version."-1"" 12130 fi 12131 fi 12132 bdb_places="$places" 12133 bdb_default_search_headers="db${db_major}${db_minor}/db.h db${db_major}/db.h db.h" 12134 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" 12135 12136 12137 apu_have_db=0 12138 12139 # Save the original values of the flags we tweak. 12140 apu_check_lib_save_libs="$LIBS" 12141 apu_check_lib_save_ldflags="$LDFLAGS" 12142 apu_check_lib_save_cppflags="$CPPFLAGS" 12143 12144 # The variable `found' is the prefix under which we've found 12145 # Berkeley DB, or `not' if we haven't found it anywhere yet. 12146 found=not 12147 for bdb_place in $bdb_places; do 12148 12149 LDFLAGS="$apu_check_lib_save_ldflags" 12150 CPPFLAGS="$apu_check_lib_save_cppflags" 12151 case "$bdb_place" in 12152 "std" ) 12153 description="the standard places" 12154 ;; 12155 *":"* ) 12156 header="`echo $bdb_place | sed -e 's/:.*$//'`" 12157 lib="`echo $bdb_place | sed -e 's/^.*://'`" 12158 CPPFLAGS="$CPPFLAGS -I$header" 12159 LDFLAGS="$LDFLAGS -L$lib" 12160 description="$header and $lib" 12161 ;; 12162 * ) 12163 if test -d $bdb_place; then 12164 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 12165 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 12166 else 12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 12168$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 12170$as_echo "directory not found" >&6; } 12171 continue 12172 fi 12173 description="$bdb_place" 12174 ;; 12175 esac 12176 12177 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 12178 # trick to display a message instead. 12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 12180$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 12182$as_echo "" >&6; } 12183 12184 for bdb_libname in $bdb_default_search_lib_names; do 12185 for bdb_header in $bdb_default_search_headers; do 12186 # Clear the header cache variable for each location 12187 12188 cache_id="`echo ac_cv_header_${bdb_header} \ 12189 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 12190 12191 unset $cache_id 12192 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 12193ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 12194if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12195
|
12181 if test ""${db_major}"" = "3" -o ""${db_major}"" = "4" -o ""${db_major}"" = "5"; then
| 12196 if test ""${db_major}"" = "3" -o ""${db_major}"" = "4" -o ""${db_major}"" = "5" -o ""${db_major}"" = "6"; then
|
12182 # We generate a separate cache variable for each prefix and libname 12183 # we search under. That way, we avoid caching information that 12184 # changes if the user runs `configure' with a different set of 12185 # switches. 12186 12187 cache_id="`echo apu_cv_check_berkeley_db_"${db_major}"_"${db_minor}"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 12188 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 12189 12190 12191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 12192$as_echo_n "checking for -l$bdb_libname... " >&6; } 12193 if eval \${$cache_id+:} false; then : 12194 $as_echo_n "(cached) " >&6 12195else 12196 12197 12198 apu_try_berkeley_db_save_libs="$LIBS" 12199 12200 apu_check_berkeley_db_major="${db_major}" 12201 apu_check_berkeley_db_minor="${db_minor}" 12202 apu_check_berkeley_db_patch="-1" 12203 apu_try_berkeley_db_header=$bdb_header 12204 apu_try_berkeley_db_libname=$bdb_libname 12205 12206 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 12207 if test "$cross_compiling" = yes; then : 12208 apu_try_berkeley_db=yes 12209 12210else 12211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12212/* end confdefs.h. */ 12213 12214#include <stdlib.h> 12215#include <stdio.h> 12216#include <$apu_try_berkeley_db_header> 12217main () 12218{ 12219 int major, minor, patch; 12220 12221 db_version(&major, &minor, &patch); 12222 12223 /* Sanity check: ensure that db.h constants actually match the db library */ 12224 if (major != DB_VERSION_MAJOR 12225 || minor != DB_VERSION_MINOR 12226 || patch != DB_VERSION_PATCH) 12227 exit (1); 12228 12229 /* Run-time check: ensure the library claims to be the correct version. */ 12230 12231 if ($apu_check_berkeley_db_major != -1) { 12232 if (major < $apu_check_berkeley_db_major) 12233 exit (1); 12234 if (major > $apu_check_berkeley_db_major) 12235 exit (0); 12236 } 12237 12238 if ($apu_check_berkeley_db_minor != -1) { 12239 if (minor < $apu_check_berkeley_db_minor) 12240 exit (1); 12241 if (minor > $apu_check_berkeley_db_minor) 12242 exit (0); 12243 } 12244 12245 if ($apu_check_berkeley_db_patch == -1 12246 || patch >= $apu_check_berkeley_db_patch) 12247 exit (0); 12248 else 12249 exit (1); 12250} 12251 12252_ACEOF 12253if ac_fn_c_try_run "$LINENO"; then : 12254 apu_try_berkeley_db=yes 12255else 12256 apu_try_berkeley_db=no 12257fi 12258rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12259 conftest.$ac_objext conftest.beam conftest.$ac_ext 12260fi 12261 12262 12263 LIBS="$apu_try_berkeley_db_save_libs" 12264 12265 12266 eval "$cache_id=$apu_try_berkeley_db" 12267 12268fi 12269 12270 result="`eval echo '$'$cache_id`" 12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 12272$as_echo "$result" >&6; } 12273 elif test ""${db_major}"" = "1"; then 12274 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 12275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 12276$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 12277if eval \${$as_ac_Lib+:} false; then : 12278 $as_echo_n "(cached) " >&6 12279else 12280 ac_check_lib_save_LIBS=$LIBS 12281LIBS="-l$bdb_libname $LIBS" 12282cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12283/* end confdefs.h. */ 12284 12285/* Override any GCC internal prototype to avoid an error. 12286 Use char because int might match the return type of a GCC 12287 builtin and then its argument prototype would still apply. */ 12288#ifdef __cplusplus 12289extern "C" 12290#endif 12291char dbopen (); 12292int 12293main () 12294{ 12295return dbopen (); 12296 ; 12297 return 0; 12298} 12299_ACEOF 12300if ac_fn_c_try_link "$LINENO"; then : 12301 eval "$as_ac_Lib=yes" 12302else 12303 eval "$as_ac_Lib=no" 12304fi 12305rm -f core conftest.err conftest.$ac_objext \ 12306 conftest$ac_exeext conftest.$ac_ext 12307LIBS=$ac_check_lib_save_LIBS 12308fi 12309eval ac_res=\$$as_ac_Lib 12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12311$as_echo "$ac_res" >&6; } 12312if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 12313 result=yes 12314else 12315 result=no 12316 12317fi 12318 12319 elif test ""${db_major}"" = "2"; then 12320 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 12321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 12322$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 12323if eval \${$as_ac_Lib+:} false; then : 12324 $as_echo_n "(cached) " >&6 12325else 12326 ac_check_lib_save_LIBS=$LIBS 12327LIBS="-l$bdb_libname $LIBS" 12328cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12329/* end confdefs.h. */ 12330 12331/* Override any GCC internal prototype to avoid an error. 12332 Use char because int might match the return type of a GCC 12333 builtin and then its argument prototype would still apply. */ 12334#ifdef __cplusplus 12335extern "C" 12336#endif 12337char db_open (); 12338int 12339main () 12340{ 12341return db_open (); 12342 ; 12343 return 0; 12344} 12345_ACEOF 12346if ac_fn_c_try_link "$LINENO"; then : 12347 eval "$as_ac_Lib=yes" 12348else 12349 eval "$as_ac_Lib=no" 12350fi 12351rm -f core conftest.err conftest.$ac_objext \ 12352 conftest$ac_exeext conftest.$ac_ext 12353LIBS=$ac_check_lib_save_LIBS 12354fi 12355eval ac_res=\$$as_ac_Lib 12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12357$as_echo "$ac_res" >&6; } 12358if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 12359 result=yes 12360else 12361 result=no 12362 12363fi 12364 12365 fi 12366 12367else 12368 result="no" 12369fi 12370 12371 12372 12373 # If we found it, no need to search any more. 12374 if test "$result" = "yes"; then 12375 found="$bdb_place" 12376 break 12377 fi 12378 done 12379 test "$found" != "not" && break 12380 done 12381 test "$found" != "not" && break 12382 done 12383 12384 # Restore the original values of the flags we tweak. 12385 LDFLAGS="$apu_check_lib_save_ldflags" 12386 CPPFLAGS="$apu_check_lib_save_cppflags" 12387 12388 case "$found" in 12389 "not") 12390 apu_have_db=0 12391 ;; 12392 "std") 12393 apu_db_header=$bdb_header 12394 apu_db_lib=$bdb_libname 12395 apu_have_db=1 12396 ;; 12397 *":"*) 12398 header="`echo $found | sed -e 's/:.*$//'`" 12399 lib="`echo $found | sed -e 's/^.*://'`" 12400 12401 12402 if test "x$APRUTIL_INCLUDES" = "x"; then 12403 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 12404 APRUTIL_INCLUDES="-I$header" 12405 else 12406 apr_addto_bugger="-I$header" 12407 for i in $apr_addto_bugger; do 12408 apr_addto_duplicate="0" 12409 for j in $APRUTIL_INCLUDES; do 12410 if test "x$i" = "x$j"; then 12411 apr_addto_duplicate="1" 12412 break 12413 fi 12414 done 12415 if test $apr_addto_duplicate = "0"; then 12416 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 12417 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 12418 fi 12419 done 12420 fi 12421 12422 12423 if test "x$APRUTIL_LDFLAGS" = "x"; then 12424 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 12425 APRUTIL_LDFLAGS="-L$lib" 12426 else 12427 apr_addto_bugger="-L$lib" 12428 for i in $apr_addto_bugger; do 12429 apr_addto_duplicate="0" 12430 for j in $APRUTIL_LDFLAGS; do 12431 if test "x$i" = "x$j"; then 12432 apr_addto_duplicate="1" 12433 break 12434 fi 12435 done 12436 if test $apr_addto_duplicate = "0"; then 12437 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 12438 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 12439 fi 12440 done 12441 fi 12442 12443 apu_db_header=$bdb_header 12444 apu_db_lib=$bdb_libname 12445 apu_have_db=1 12446 ;; 12447 *) 12448 12449 if test "x$APRUTIL_INCLUDES" = "x"; then 12450 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 12451 APRUTIL_INCLUDES="-I$found/include" 12452 else 12453 apr_addto_bugger="-I$found/include" 12454 for i in $apr_addto_bugger; do 12455 apr_addto_duplicate="0" 12456 for j in $APRUTIL_INCLUDES; do 12457 if test "x$i" = "x$j"; then 12458 apr_addto_duplicate="1" 12459 break 12460 fi 12461 done 12462 if test $apr_addto_duplicate = "0"; then 12463 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 12464 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 12465 fi 12466 done 12467 fi 12468 12469 12470 if test "x$APRUTIL_LDFLAGS" = "x"; then 12471 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 12472 APRUTIL_LDFLAGS="-L$found/lib" 12473 else 12474 apr_addto_bugger="-L$found/lib" 12475 for i in $apr_addto_bugger; do 12476 apr_addto_duplicate="0" 12477 for j in $APRUTIL_LDFLAGS; do 12478 if test "x$i" = "x$j"; then 12479 apr_addto_duplicate="1" 12480 break 12481 fi 12482 done 12483 if test $apr_addto_duplicate = "0"; then 12484 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 12485 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 12486 fi 12487 done 12488 fi 12489 12490 apu_db_header=$bdb_header 12491 apu_db_lib=$bdb_libname 12492 apu_have_db=1 12493 ;; 12494 esac 12495 12496 if test "$apu_have_db" = "1"; then 12497 apu_db_version=${db_major} 12498 fi 12499 12500 if test "$apu_have_db" = "1"; then 12501 break 12502 fi 12503 db_version=`expr $db_version - 1` 12504 done 12505 if test "$apu_have_db" = "0"; then 12506 12507 places="$all_places" 12508 if test -z "$places"; then 12509 places="std" 12510 fi 12511 12512 bdb_version=3 12513 if test "-1" != "-1"; then 12514 bdb_version="$bdb_version.-1" 12515 if test "-1" != "-1"; then 12516 bdb_version="$bdb_version.-1" 12517 fi 12518 fi 12519 bdb_places="$places" 12520 bdb_default_search_headers="db3/db.h db.h" 12521 bdb_default_search_lib_names="db3 db" 12522 12523 12524 apu_have_db=0 12525 12526 # Save the original values of the flags we tweak. 12527 apu_check_lib_save_libs="$LIBS" 12528 apu_check_lib_save_ldflags="$LDFLAGS" 12529 apu_check_lib_save_cppflags="$CPPFLAGS" 12530 12531 # The variable `found' is the prefix under which we've found 12532 # Berkeley DB, or `not' if we haven't found it anywhere yet. 12533 found=not 12534 for bdb_place in $bdb_places; do 12535 12536 LDFLAGS="$apu_check_lib_save_ldflags" 12537 CPPFLAGS="$apu_check_lib_save_cppflags" 12538 case "$bdb_place" in 12539 "std" ) 12540 description="the standard places" 12541 ;; 12542 *":"* ) 12543 header="`echo $bdb_place | sed -e 's/:.*$//'`" 12544 lib="`echo $bdb_place | sed -e 's/^.*://'`" 12545 CPPFLAGS="$CPPFLAGS -I$header" 12546 LDFLAGS="$LDFLAGS -L$lib" 12547 description="$header and $lib" 12548 ;; 12549 * ) 12550 if test -d $bdb_place; then 12551 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 12552 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 12553 else 12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 12555$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 12557$as_echo "directory not found" >&6; } 12558 continue 12559 fi 12560 description="$bdb_place" 12561 ;; 12562 esac 12563 12564 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 12565 # trick to display a message instead. 12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 12567$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 12569$as_echo "" >&6; } 12570 12571 for bdb_libname in $bdb_default_search_lib_names; do 12572 for bdb_header in $bdb_default_search_headers; do 12573 # Clear the header cache variable for each location 12574 12575 cache_id="`echo ac_cv_header_${bdb_header} \ 12576 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 12577 12578 unset $cache_id 12579 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 12580ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 12581if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12582
| 12197 # We generate a separate cache variable for each prefix and libname 12198 # we search under. That way, we avoid caching information that 12199 # changes if the user runs `configure' with a different set of 12200 # switches. 12201 12202 cache_id="`echo apu_cv_check_berkeley_db_"${db_major}"_"${db_minor}"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 12203 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 12204 12205 12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 12207$as_echo_n "checking for -l$bdb_libname... " >&6; } 12208 if eval \${$cache_id+:} false; then : 12209 $as_echo_n "(cached) " >&6 12210else 12211 12212 12213 apu_try_berkeley_db_save_libs="$LIBS" 12214 12215 apu_check_berkeley_db_major="${db_major}" 12216 apu_check_berkeley_db_minor="${db_minor}" 12217 apu_check_berkeley_db_patch="-1" 12218 apu_try_berkeley_db_header=$bdb_header 12219 apu_try_berkeley_db_libname=$bdb_libname 12220 12221 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 12222 if test "$cross_compiling" = yes; then : 12223 apu_try_berkeley_db=yes 12224 12225else 12226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12227/* end confdefs.h. */ 12228 12229#include <stdlib.h> 12230#include <stdio.h> 12231#include <$apu_try_berkeley_db_header> 12232main () 12233{ 12234 int major, minor, patch; 12235 12236 db_version(&major, &minor, &patch); 12237 12238 /* Sanity check: ensure that db.h constants actually match the db library */ 12239 if (major != DB_VERSION_MAJOR 12240 || minor != DB_VERSION_MINOR 12241 || patch != DB_VERSION_PATCH) 12242 exit (1); 12243 12244 /* Run-time check: ensure the library claims to be the correct version. */ 12245 12246 if ($apu_check_berkeley_db_major != -1) { 12247 if (major < $apu_check_berkeley_db_major) 12248 exit (1); 12249 if (major > $apu_check_berkeley_db_major) 12250 exit (0); 12251 } 12252 12253 if ($apu_check_berkeley_db_minor != -1) { 12254 if (minor < $apu_check_berkeley_db_minor) 12255 exit (1); 12256 if (minor > $apu_check_berkeley_db_minor) 12257 exit (0); 12258 } 12259 12260 if ($apu_check_berkeley_db_patch == -1 12261 || patch >= $apu_check_berkeley_db_patch) 12262 exit (0); 12263 else 12264 exit (1); 12265} 12266 12267_ACEOF 12268if ac_fn_c_try_run "$LINENO"; then : 12269 apu_try_berkeley_db=yes 12270else 12271 apu_try_berkeley_db=no 12272fi 12273rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12274 conftest.$ac_objext conftest.beam conftest.$ac_ext 12275fi 12276 12277 12278 LIBS="$apu_try_berkeley_db_save_libs" 12279 12280 12281 eval "$cache_id=$apu_try_berkeley_db" 12282 12283fi 12284 12285 result="`eval echo '$'$cache_id`" 12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 12287$as_echo "$result" >&6; } 12288 elif test ""${db_major}"" = "1"; then 12289 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 12290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 12291$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 12292if eval \${$as_ac_Lib+:} false; then : 12293 $as_echo_n "(cached) " >&6 12294else 12295 ac_check_lib_save_LIBS=$LIBS 12296LIBS="-l$bdb_libname $LIBS" 12297cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12298/* end confdefs.h. */ 12299 12300/* Override any GCC internal prototype to avoid an error. 12301 Use char because int might match the return type of a GCC 12302 builtin and then its argument prototype would still apply. */ 12303#ifdef __cplusplus 12304extern "C" 12305#endif 12306char dbopen (); 12307int 12308main () 12309{ 12310return dbopen (); 12311 ; 12312 return 0; 12313} 12314_ACEOF 12315if ac_fn_c_try_link "$LINENO"; then : 12316 eval "$as_ac_Lib=yes" 12317else 12318 eval "$as_ac_Lib=no" 12319fi 12320rm -f core conftest.err conftest.$ac_objext \ 12321 conftest$ac_exeext conftest.$ac_ext 12322LIBS=$ac_check_lib_save_LIBS 12323fi 12324eval ac_res=\$$as_ac_Lib 12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12326$as_echo "$ac_res" >&6; } 12327if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 12328 result=yes 12329else 12330 result=no 12331 12332fi 12333 12334 elif test ""${db_major}"" = "2"; then 12335 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 12336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 12337$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 12338if eval \${$as_ac_Lib+:} false; then : 12339 $as_echo_n "(cached) " >&6 12340else 12341 ac_check_lib_save_LIBS=$LIBS 12342LIBS="-l$bdb_libname $LIBS" 12343cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12344/* end confdefs.h. */ 12345 12346/* Override any GCC internal prototype to avoid an error. 12347 Use char because int might match the return type of a GCC 12348 builtin and then its argument prototype would still apply. */ 12349#ifdef __cplusplus 12350extern "C" 12351#endif 12352char db_open (); 12353int 12354main () 12355{ 12356return db_open (); 12357 ; 12358 return 0; 12359} 12360_ACEOF 12361if ac_fn_c_try_link "$LINENO"; then : 12362 eval "$as_ac_Lib=yes" 12363else 12364 eval "$as_ac_Lib=no" 12365fi 12366rm -f core conftest.err conftest.$ac_objext \ 12367 conftest$ac_exeext conftest.$ac_ext 12368LIBS=$ac_check_lib_save_LIBS 12369fi 12370eval ac_res=\$$as_ac_Lib 12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12372$as_echo "$ac_res" >&6; } 12373if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 12374 result=yes 12375else 12376 result=no 12377 12378fi 12379 12380 fi 12381 12382else 12383 result="no" 12384fi 12385 12386 12387 12388 # If we found it, no need to search any more. 12389 if test "$result" = "yes"; then 12390 found="$bdb_place" 12391 break 12392 fi 12393 done 12394 test "$found" != "not" && break 12395 done 12396 test "$found" != "not" && break 12397 done 12398 12399 # Restore the original values of the flags we tweak. 12400 LDFLAGS="$apu_check_lib_save_ldflags" 12401 CPPFLAGS="$apu_check_lib_save_cppflags" 12402 12403 case "$found" in 12404 "not") 12405 apu_have_db=0 12406 ;; 12407 "std") 12408 apu_db_header=$bdb_header 12409 apu_db_lib=$bdb_libname 12410 apu_have_db=1 12411 ;; 12412 *":"*) 12413 header="`echo $found | sed -e 's/:.*$//'`" 12414 lib="`echo $found | sed -e 's/^.*://'`" 12415 12416 12417 if test "x$APRUTIL_INCLUDES" = "x"; then 12418 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 12419 APRUTIL_INCLUDES="-I$header" 12420 else 12421 apr_addto_bugger="-I$header" 12422 for i in $apr_addto_bugger; do 12423 apr_addto_duplicate="0" 12424 for j in $APRUTIL_INCLUDES; do 12425 if test "x$i" = "x$j"; then 12426 apr_addto_duplicate="1" 12427 break 12428 fi 12429 done 12430 if test $apr_addto_duplicate = "0"; then 12431 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 12432 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 12433 fi 12434 done 12435 fi 12436 12437 12438 if test "x$APRUTIL_LDFLAGS" = "x"; then 12439 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 12440 APRUTIL_LDFLAGS="-L$lib" 12441 else 12442 apr_addto_bugger="-L$lib" 12443 for i in $apr_addto_bugger; do 12444 apr_addto_duplicate="0" 12445 for j in $APRUTIL_LDFLAGS; do 12446 if test "x$i" = "x$j"; then 12447 apr_addto_duplicate="1" 12448 break 12449 fi 12450 done 12451 if test $apr_addto_duplicate = "0"; then 12452 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 12453 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 12454 fi 12455 done 12456 fi 12457 12458 apu_db_header=$bdb_header 12459 apu_db_lib=$bdb_libname 12460 apu_have_db=1 12461 ;; 12462 *) 12463 12464 if test "x$APRUTIL_INCLUDES" = "x"; then 12465 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 12466 APRUTIL_INCLUDES="-I$found/include" 12467 else 12468 apr_addto_bugger="-I$found/include" 12469 for i in $apr_addto_bugger; do 12470 apr_addto_duplicate="0" 12471 for j in $APRUTIL_INCLUDES; do 12472 if test "x$i" = "x$j"; then 12473 apr_addto_duplicate="1" 12474 break 12475 fi 12476 done 12477 if test $apr_addto_duplicate = "0"; then 12478 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 12479 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 12480 fi 12481 done 12482 fi 12483 12484 12485 if test "x$APRUTIL_LDFLAGS" = "x"; then 12486 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 12487 APRUTIL_LDFLAGS="-L$found/lib" 12488 else 12489 apr_addto_bugger="-L$found/lib" 12490 for i in $apr_addto_bugger; do 12491 apr_addto_duplicate="0" 12492 for j in $APRUTIL_LDFLAGS; do 12493 if test "x$i" = "x$j"; then 12494 apr_addto_duplicate="1" 12495 break 12496 fi 12497 done 12498 if test $apr_addto_duplicate = "0"; then 12499 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 12500 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 12501 fi 12502 done 12503 fi 12504 12505 apu_db_header=$bdb_header 12506 apu_db_lib=$bdb_libname 12507 apu_have_db=1 12508 ;; 12509 esac 12510 12511 if test "$apu_have_db" = "1"; then 12512 apu_db_version=${db_major} 12513 fi 12514 12515 if test "$apu_have_db" = "1"; then 12516 break 12517 fi 12518 db_version=`expr $db_version - 1` 12519 done 12520 if test "$apu_have_db" = "0"; then 12521 12522 places="$all_places" 12523 if test -z "$places"; then 12524 places="std" 12525 fi 12526 12527 bdb_version=3 12528 if test "-1" != "-1"; then 12529 bdb_version="$bdb_version.-1" 12530 if test "-1" != "-1"; then 12531 bdb_version="$bdb_version.-1" 12532 fi 12533 fi 12534 bdb_places="$places" 12535 bdb_default_search_headers="db3/db.h db.h" 12536 bdb_default_search_lib_names="db3 db" 12537 12538 12539 apu_have_db=0 12540 12541 # Save the original values of the flags we tweak. 12542 apu_check_lib_save_libs="$LIBS" 12543 apu_check_lib_save_ldflags="$LDFLAGS" 12544 apu_check_lib_save_cppflags="$CPPFLAGS" 12545 12546 # The variable `found' is the prefix under which we've found 12547 # Berkeley DB, or `not' if we haven't found it anywhere yet. 12548 found=not 12549 for bdb_place in $bdb_places; do 12550 12551 LDFLAGS="$apu_check_lib_save_ldflags" 12552 CPPFLAGS="$apu_check_lib_save_cppflags" 12553 case "$bdb_place" in 12554 "std" ) 12555 description="the standard places" 12556 ;; 12557 *":"* ) 12558 header="`echo $bdb_place | sed -e 's/:.*$//'`" 12559 lib="`echo $bdb_place | sed -e 's/^.*://'`" 12560 CPPFLAGS="$CPPFLAGS -I$header" 12561 LDFLAGS="$LDFLAGS -L$lib" 12562 description="$header and $lib" 12563 ;; 12564 * ) 12565 if test -d $bdb_place; then 12566 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 12567 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 12568 else 12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 12570$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 12572$as_echo "directory not found" >&6; } 12573 continue 12574 fi 12575 description="$bdb_place" 12576 ;; 12577 esac 12578 12579 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 12580 # trick to display a message instead. 12581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 12582$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 12584$as_echo "" >&6; } 12585 12586 for bdb_libname in $bdb_default_search_lib_names; do 12587 for bdb_header in $bdb_default_search_headers; do 12588 # Clear the header cache variable for each location 12589 12590 cache_id="`echo ac_cv_header_${bdb_header} \ 12591 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 12592 12593 unset $cache_id 12594 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 12595ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 12596if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12597
|
12583 if test "3" = "3" -o "3" = "4" -o "3" = "5"; then
| 12598 if test "3" = "3" -o "3" = "4" -o "3" = "5" -o "3" = "6"; then
|
12584 # We generate a separate cache variable for each prefix and libname 12585 # we search under. That way, we avoid caching information that 12586 # changes if the user runs `configure' with a different set of 12587 # switches. 12588 12589 cache_id="`echo apu_cv_check_berkeley_db_3_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 12590 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 12591 12592 12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 12594$as_echo_n "checking for -l$bdb_libname... " >&6; } 12595 if eval \${$cache_id+:} false; then : 12596 $as_echo_n "(cached) " >&6 12597else 12598 12599 12600 apu_try_berkeley_db_save_libs="$LIBS" 12601 12602 apu_check_berkeley_db_major=3 12603 apu_check_berkeley_db_minor=-1 12604 apu_check_berkeley_db_patch=-1 12605 apu_try_berkeley_db_header=$bdb_header 12606 apu_try_berkeley_db_libname=$bdb_libname 12607 12608 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 12609 if test "$cross_compiling" = yes; then : 12610 apu_try_berkeley_db=yes 12611 12612else 12613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12614/* end confdefs.h. */ 12615 12616#include <stdlib.h> 12617#include <stdio.h> 12618#include <$apu_try_berkeley_db_header> 12619main () 12620{ 12621 int major, minor, patch; 12622 12623 db_version(&major, &minor, &patch); 12624 12625 /* Sanity check: ensure that db.h constants actually match the db library */ 12626 if (major != DB_VERSION_MAJOR 12627 || minor != DB_VERSION_MINOR 12628 || patch != DB_VERSION_PATCH) 12629 exit (1); 12630 12631 /* Run-time check: ensure the library claims to be the correct version. */ 12632 12633 if ($apu_check_berkeley_db_major != -1) { 12634 if (major < $apu_check_berkeley_db_major) 12635 exit (1); 12636 if (major > $apu_check_berkeley_db_major) 12637 exit (0); 12638 } 12639 12640 if ($apu_check_berkeley_db_minor != -1) { 12641 if (minor < $apu_check_berkeley_db_minor) 12642 exit (1); 12643 if (minor > $apu_check_berkeley_db_minor) 12644 exit (0); 12645 } 12646 12647 if ($apu_check_berkeley_db_patch == -1 12648 || patch >= $apu_check_berkeley_db_patch) 12649 exit (0); 12650 else 12651 exit (1); 12652} 12653 12654_ACEOF 12655if ac_fn_c_try_run "$LINENO"; then : 12656 apu_try_berkeley_db=yes 12657else 12658 apu_try_berkeley_db=no 12659fi 12660rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12661 conftest.$ac_objext conftest.beam conftest.$ac_ext 12662fi 12663 12664 12665 LIBS="$apu_try_berkeley_db_save_libs" 12666 12667 12668 eval "$cache_id=$apu_try_berkeley_db" 12669 12670fi 12671 12672 result="`eval echo '$'$cache_id`" 12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 12674$as_echo "$result" >&6; } 12675 elif test "3" = "1"; then 12676 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 12677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 12678$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 12679if eval \${$as_ac_Lib+:} false; then : 12680 $as_echo_n "(cached) " >&6 12681else 12682 ac_check_lib_save_LIBS=$LIBS 12683LIBS="-l$bdb_libname $LIBS" 12684cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12685/* end confdefs.h. */ 12686 12687/* Override any GCC internal prototype to avoid an error. 12688 Use char because int might match the return type of a GCC 12689 builtin and then its argument prototype would still apply. */ 12690#ifdef __cplusplus 12691extern "C" 12692#endif 12693char dbopen (); 12694int 12695main () 12696{ 12697return dbopen (); 12698 ; 12699 return 0; 12700} 12701_ACEOF 12702if ac_fn_c_try_link "$LINENO"; then : 12703 eval "$as_ac_Lib=yes" 12704else 12705 eval "$as_ac_Lib=no" 12706fi 12707rm -f core conftest.err conftest.$ac_objext \ 12708 conftest$ac_exeext conftest.$ac_ext 12709LIBS=$ac_check_lib_save_LIBS 12710fi 12711eval ac_res=\$$as_ac_Lib 12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12713$as_echo "$ac_res" >&6; } 12714if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 12715 result=yes 12716else 12717 result=no 12718 12719fi 12720 12721 elif test "3" = "2"; then 12722 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 12723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 12724$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 12725if eval \${$as_ac_Lib+:} false; then : 12726 $as_echo_n "(cached) " >&6 12727else 12728 ac_check_lib_save_LIBS=$LIBS 12729LIBS="-l$bdb_libname $LIBS" 12730cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12731/* end confdefs.h. */ 12732 12733/* Override any GCC internal prototype to avoid an error. 12734 Use char because int might match the return type of a GCC 12735 builtin and then its argument prototype would still apply. */ 12736#ifdef __cplusplus 12737extern "C" 12738#endif 12739char db_open (); 12740int 12741main () 12742{ 12743return db_open (); 12744 ; 12745 return 0; 12746} 12747_ACEOF 12748if ac_fn_c_try_link "$LINENO"; then : 12749 eval "$as_ac_Lib=yes" 12750else 12751 eval "$as_ac_Lib=no" 12752fi 12753rm -f core conftest.err conftest.$ac_objext \ 12754 conftest$ac_exeext conftest.$ac_ext 12755LIBS=$ac_check_lib_save_LIBS 12756fi 12757eval ac_res=\$$as_ac_Lib 12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12759$as_echo "$ac_res" >&6; } 12760if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 12761 result=yes 12762else 12763 result=no 12764 12765fi 12766 12767 fi 12768 12769else 12770 result="no" 12771fi 12772 12773 12774 12775 # If we found it, no need to search any more. 12776 if test "$result" = "yes"; then 12777 found="$bdb_place" 12778 break 12779 fi 12780 done 12781 test "$found" != "not" && break 12782 done 12783 test "$found" != "not" && break 12784 done 12785 12786 # Restore the original values of the flags we tweak. 12787 LDFLAGS="$apu_check_lib_save_ldflags" 12788 CPPFLAGS="$apu_check_lib_save_cppflags" 12789 12790 case "$found" in 12791 "not") 12792 apu_have_db=0 12793 ;; 12794 "std") 12795 apu_db_header=$bdb_header 12796 apu_db_lib=$bdb_libname 12797 apu_have_db=1 12798 ;; 12799 *":"*) 12800 header="`echo $found | sed -e 's/:.*$//'`" 12801 lib="`echo $found | sed -e 's/^.*://'`" 12802 12803 12804 if test "x$APRUTIL_INCLUDES" = "x"; then 12805 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 12806 APRUTIL_INCLUDES="-I$header" 12807 else 12808 apr_addto_bugger="-I$header" 12809 for i in $apr_addto_bugger; do 12810 apr_addto_duplicate="0" 12811 for j in $APRUTIL_INCLUDES; do 12812 if test "x$i" = "x$j"; then 12813 apr_addto_duplicate="1" 12814 break 12815 fi 12816 done 12817 if test $apr_addto_duplicate = "0"; then 12818 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 12819 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 12820 fi 12821 done 12822 fi 12823 12824 12825 if test "x$APRUTIL_LDFLAGS" = "x"; then 12826 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 12827 APRUTIL_LDFLAGS="-L$lib" 12828 else 12829 apr_addto_bugger="-L$lib" 12830 for i in $apr_addto_bugger; do 12831 apr_addto_duplicate="0" 12832 for j in $APRUTIL_LDFLAGS; do 12833 if test "x$i" = "x$j"; then 12834 apr_addto_duplicate="1" 12835 break 12836 fi 12837 done 12838 if test $apr_addto_duplicate = "0"; then 12839 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 12840 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 12841 fi 12842 done 12843 fi 12844 12845 apu_db_header=$bdb_header 12846 apu_db_lib=$bdb_libname 12847 apu_have_db=1 12848 ;; 12849 *) 12850 12851 if test "x$APRUTIL_INCLUDES" = "x"; then 12852 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 12853 APRUTIL_INCLUDES="-I$found/include" 12854 else 12855 apr_addto_bugger="-I$found/include" 12856 for i in $apr_addto_bugger; do 12857 apr_addto_duplicate="0" 12858 for j in $APRUTIL_INCLUDES; do 12859 if test "x$i" = "x$j"; then 12860 apr_addto_duplicate="1" 12861 break 12862 fi 12863 done 12864 if test $apr_addto_duplicate = "0"; then 12865 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 12866 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 12867 fi 12868 done 12869 fi 12870 12871 12872 if test "x$APRUTIL_LDFLAGS" = "x"; then 12873 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 12874 APRUTIL_LDFLAGS="-L$found/lib" 12875 else 12876 apr_addto_bugger="-L$found/lib" 12877 for i in $apr_addto_bugger; do 12878 apr_addto_duplicate="0" 12879 for j in $APRUTIL_LDFLAGS; do 12880 if test "x$i" = "x$j"; then 12881 apr_addto_duplicate="1" 12882 break 12883 fi 12884 done 12885 if test $apr_addto_duplicate = "0"; then 12886 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 12887 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 12888 fi 12889 done 12890 fi 12891 12892 apu_db_header=$bdb_header 12893 apu_db_lib=$bdb_libname 12894 apu_have_db=1 12895 ;; 12896 esac 12897 12898 if test "$apu_have_db" = "1"; then 12899 apu_db_version=3 12900 fi 12901 12902 fi 12903 if test "$apu_have_db" = "0"; then 12904 12905 places="$all_places" 12906 if test -z "$places"; then 12907 places="std" 12908 fi 12909 12910 bdb_version=2 12911 if test "-1" != "-1"; then 12912 bdb_version="$bdb_version.-1" 12913 if test "-1" != "-1"; then 12914 bdb_version="$bdb_version.-1" 12915 fi 12916 fi 12917 bdb_places="$places" 12918 bdb_default_search_headers="db2/db.h db.h" 12919 bdb_default_search_lib_names="db2 db" 12920 12921 12922 apu_have_db=0 12923 12924 # Save the original values of the flags we tweak. 12925 apu_check_lib_save_libs="$LIBS" 12926 apu_check_lib_save_ldflags="$LDFLAGS" 12927 apu_check_lib_save_cppflags="$CPPFLAGS" 12928 12929 # The variable `found' is the prefix under which we've found 12930 # Berkeley DB, or `not' if we haven't found it anywhere yet. 12931 found=not 12932 for bdb_place in $bdb_places; do 12933 12934 LDFLAGS="$apu_check_lib_save_ldflags" 12935 CPPFLAGS="$apu_check_lib_save_cppflags" 12936 case "$bdb_place" in 12937 "std" ) 12938 description="the standard places" 12939 ;; 12940 *":"* ) 12941 header="`echo $bdb_place | sed -e 's/:.*$//'`" 12942 lib="`echo $bdb_place | sed -e 's/^.*://'`" 12943 CPPFLAGS="$CPPFLAGS -I$header" 12944 LDFLAGS="$LDFLAGS -L$lib" 12945 description="$header and $lib" 12946 ;; 12947 * ) 12948 if test -d $bdb_place; then 12949 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 12950 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 12951 else 12952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 12953$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 12955$as_echo "directory not found" >&6; } 12956 continue 12957 fi 12958 description="$bdb_place" 12959 ;; 12960 esac 12961 12962 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 12963 # trick to display a message instead. 12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 12965$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 12967$as_echo "" >&6; } 12968 12969 for bdb_libname in $bdb_default_search_lib_names; do 12970 for bdb_header in $bdb_default_search_headers; do 12971 # Clear the header cache variable for each location 12972 12973 cache_id="`echo ac_cv_header_${bdb_header} \ 12974 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 12975 12976 unset $cache_id 12977 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 12978ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 12979if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12980
| 12599 # We generate a separate cache variable for each prefix and libname 12600 # we search under. That way, we avoid caching information that 12601 # changes if the user runs `configure' with a different set of 12602 # switches. 12603 12604 cache_id="`echo apu_cv_check_berkeley_db_3_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 12605 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 12606 12607 12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 12609$as_echo_n "checking for -l$bdb_libname... " >&6; } 12610 if eval \${$cache_id+:} false; then : 12611 $as_echo_n "(cached) " >&6 12612else 12613 12614 12615 apu_try_berkeley_db_save_libs="$LIBS" 12616 12617 apu_check_berkeley_db_major=3 12618 apu_check_berkeley_db_minor=-1 12619 apu_check_berkeley_db_patch=-1 12620 apu_try_berkeley_db_header=$bdb_header 12621 apu_try_berkeley_db_libname=$bdb_libname 12622 12623 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 12624 if test "$cross_compiling" = yes; then : 12625 apu_try_berkeley_db=yes 12626 12627else 12628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12629/* end confdefs.h. */ 12630 12631#include <stdlib.h> 12632#include <stdio.h> 12633#include <$apu_try_berkeley_db_header> 12634main () 12635{ 12636 int major, minor, patch; 12637 12638 db_version(&major, &minor, &patch); 12639 12640 /* Sanity check: ensure that db.h constants actually match the db library */ 12641 if (major != DB_VERSION_MAJOR 12642 || minor != DB_VERSION_MINOR 12643 || patch != DB_VERSION_PATCH) 12644 exit (1); 12645 12646 /* Run-time check: ensure the library claims to be the correct version. */ 12647 12648 if ($apu_check_berkeley_db_major != -1) { 12649 if (major < $apu_check_berkeley_db_major) 12650 exit (1); 12651 if (major > $apu_check_berkeley_db_major) 12652 exit (0); 12653 } 12654 12655 if ($apu_check_berkeley_db_minor != -1) { 12656 if (minor < $apu_check_berkeley_db_minor) 12657 exit (1); 12658 if (minor > $apu_check_berkeley_db_minor) 12659 exit (0); 12660 } 12661 12662 if ($apu_check_berkeley_db_patch == -1 12663 || patch >= $apu_check_berkeley_db_patch) 12664 exit (0); 12665 else 12666 exit (1); 12667} 12668 12669_ACEOF 12670if ac_fn_c_try_run "$LINENO"; then : 12671 apu_try_berkeley_db=yes 12672else 12673 apu_try_berkeley_db=no 12674fi 12675rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12676 conftest.$ac_objext conftest.beam conftest.$ac_ext 12677fi 12678 12679 12680 LIBS="$apu_try_berkeley_db_save_libs" 12681 12682 12683 eval "$cache_id=$apu_try_berkeley_db" 12684 12685fi 12686 12687 result="`eval echo '$'$cache_id`" 12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 12689$as_echo "$result" >&6; } 12690 elif test "3" = "1"; then 12691 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 12692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 12693$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 12694if eval \${$as_ac_Lib+:} false; then : 12695 $as_echo_n "(cached) " >&6 12696else 12697 ac_check_lib_save_LIBS=$LIBS 12698LIBS="-l$bdb_libname $LIBS" 12699cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12700/* end confdefs.h. */ 12701 12702/* Override any GCC internal prototype to avoid an error. 12703 Use char because int might match the return type of a GCC 12704 builtin and then its argument prototype would still apply. */ 12705#ifdef __cplusplus 12706extern "C" 12707#endif 12708char dbopen (); 12709int 12710main () 12711{ 12712return dbopen (); 12713 ; 12714 return 0; 12715} 12716_ACEOF 12717if ac_fn_c_try_link "$LINENO"; then : 12718 eval "$as_ac_Lib=yes" 12719else 12720 eval "$as_ac_Lib=no" 12721fi 12722rm -f core conftest.err conftest.$ac_objext \ 12723 conftest$ac_exeext conftest.$ac_ext 12724LIBS=$ac_check_lib_save_LIBS 12725fi 12726eval ac_res=\$$as_ac_Lib 12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12728$as_echo "$ac_res" >&6; } 12729if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 12730 result=yes 12731else 12732 result=no 12733 12734fi 12735 12736 elif test "3" = "2"; then 12737 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 12738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 12739$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 12740if eval \${$as_ac_Lib+:} false; then : 12741 $as_echo_n "(cached) " >&6 12742else 12743 ac_check_lib_save_LIBS=$LIBS 12744LIBS="-l$bdb_libname $LIBS" 12745cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12746/* end confdefs.h. */ 12747 12748/* Override any GCC internal prototype to avoid an error. 12749 Use char because int might match the return type of a GCC 12750 builtin and then its argument prototype would still apply. */ 12751#ifdef __cplusplus 12752extern "C" 12753#endif 12754char db_open (); 12755int 12756main () 12757{ 12758return db_open (); 12759 ; 12760 return 0; 12761} 12762_ACEOF 12763if ac_fn_c_try_link "$LINENO"; then : 12764 eval "$as_ac_Lib=yes" 12765else 12766 eval "$as_ac_Lib=no" 12767fi 12768rm -f core conftest.err conftest.$ac_objext \ 12769 conftest$ac_exeext conftest.$ac_ext 12770LIBS=$ac_check_lib_save_LIBS 12771fi 12772eval ac_res=\$$as_ac_Lib 12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12774$as_echo "$ac_res" >&6; } 12775if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 12776 result=yes 12777else 12778 result=no 12779 12780fi 12781 12782 fi 12783 12784else 12785 result="no" 12786fi 12787 12788 12789 12790 # If we found it, no need to search any more. 12791 if test "$result" = "yes"; then 12792 found="$bdb_place" 12793 break 12794 fi 12795 done 12796 test "$found" != "not" && break 12797 done 12798 test "$found" != "not" && break 12799 done 12800 12801 # Restore the original values of the flags we tweak. 12802 LDFLAGS="$apu_check_lib_save_ldflags" 12803 CPPFLAGS="$apu_check_lib_save_cppflags" 12804 12805 case "$found" in 12806 "not") 12807 apu_have_db=0 12808 ;; 12809 "std") 12810 apu_db_header=$bdb_header 12811 apu_db_lib=$bdb_libname 12812 apu_have_db=1 12813 ;; 12814 *":"*) 12815 header="`echo $found | sed -e 's/:.*$//'`" 12816 lib="`echo $found | sed -e 's/^.*://'`" 12817 12818 12819 if test "x$APRUTIL_INCLUDES" = "x"; then 12820 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 12821 APRUTIL_INCLUDES="-I$header" 12822 else 12823 apr_addto_bugger="-I$header" 12824 for i in $apr_addto_bugger; do 12825 apr_addto_duplicate="0" 12826 for j in $APRUTIL_INCLUDES; do 12827 if test "x$i" = "x$j"; then 12828 apr_addto_duplicate="1" 12829 break 12830 fi 12831 done 12832 if test $apr_addto_duplicate = "0"; then 12833 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 12834 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 12835 fi 12836 done 12837 fi 12838 12839 12840 if test "x$APRUTIL_LDFLAGS" = "x"; then 12841 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 12842 APRUTIL_LDFLAGS="-L$lib" 12843 else 12844 apr_addto_bugger="-L$lib" 12845 for i in $apr_addto_bugger; do 12846 apr_addto_duplicate="0" 12847 for j in $APRUTIL_LDFLAGS; do 12848 if test "x$i" = "x$j"; then 12849 apr_addto_duplicate="1" 12850 break 12851 fi 12852 done 12853 if test $apr_addto_duplicate = "0"; then 12854 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 12855 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 12856 fi 12857 done 12858 fi 12859 12860 apu_db_header=$bdb_header 12861 apu_db_lib=$bdb_libname 12862 apu_have_db=1 12863 ;; 12864 *) 12865 12866 if test "x$APRUTIL_INCLUDES" = "x"; then 12867 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 12868 APRUTIL_INCLUDES="-I$found/include" 12869 else 12870 apr_addto_bugger="-I$found/include" 12871 for i in $apr_addto_bugger; do 12872 apr_addto_duplicate="0" 12873 for j in $APRUTIL_INCLUDES; do 12874 if test "x$i" = "x$j"; then 12875 apr_addto_duplicate="1" 12876 break 12877 fi 12878 done 12879 if test $apr_addto_duplicate = "0"; then 12880 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 12881 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 12882 fi 12883 done 12884 fi 12885 12886 12887 if test "x$APRUTIL_LDFLAGS" = "x"; then 12888 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 12889 APRUTIL_LDFLAGS="-L$found/lib" 12890 else 12891 apr_addto_bugger="-L$found/lib" 12892 for i in $apr_addto_bugger; do 12893 apr_addto_duplicate="0" 12894 for j in $APRUTIL_LDFLAGS; do 12895 if test "x$i" = "x$j"; then 12896 apr_addto_duplicate="1" 12897 break 12898 fi 12899 done 12900 if test $apr_addto_duplicate = "0"; then 12901 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 12902 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 12903 fi 12904 done 12905 fi 12906 12907 apu_db_header=$bdb_header 12908 apu_db_lib=$bdb_libname 12909 apu_have_db=1 12910 ;; 12911 esac 12912 12913 if test "$apu_have_db" = "1"; then 12914 apu_db_version=3 12915 fi 12916 12917 fi 12918 if test "$apu_have_db" = "0"; then 12919 12920 places="$all_places" 12921 if test -z "$places"; then 12922 places="std" 12923 fi 12924 12925 bdb_version=2 12926 if test "-1" != "-1"; then 12927 bdb_version="$bdb_version.-1" 12928 if test "-1" != "-1"; then 12929 bdb_version="$bdb_version.-1" 12930 fi 12931 fi 12932 bdb_places="$places" 12933 bdb_default_search_headers="db2/db.h db.h" 12934 bdb_default_search_lib_names="db2 db" 12935 12936 12937 apu_have_db=0 12938 12939 # Save the original values of the flags we tweak. 12940 apu_check_lib_save_libs="$LIBS" 12941 apu_check_lib_save_ldflags="$LDFLAGS" 12942 apu_check_lib_save_cppflags="$CPPFLAGS" 12943 12944 # The variable `found' is the prefix under which we've found 12945 # Berkeley DB, or `not' if we haven't found it anywhere yet. 12946 found=not 12947 for bdb_place in $bdb_places; do 12948 12949 LDFLAGS="$apu_check_lib_save_ldflags" 12950 CPPFLAGS="$apu_check_lib_save_cppflags" 12951 case "$bdb_place" in 12952 "std" ) 12953 description="the standard places" 12954 ;; 12955 *":"* ) 12956 header="`echo $bdb_place | sed -e 's/:.*$//'`" 12957 lib="`echo $bdb_place | sed -e 's/^.*://'`" 12958 CPPFLAGS="$CPPFLAGS -I$header" 12959 LDFLAGS="$LDFLAGS -L$lib" 12960 description="$header and $lib" 12961 ;; 12962 * ) 12963 if test -d $bdb_place; then 12964 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 12965 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 12966 else 12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 12968$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 12970$as_echo "directory not found" >&6; } 12971 continue 12972 fi 12973 description="$bdb_place" 12974 ;; 12975 esac 12976 12977 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 12978 # trick to display a message instead. 12979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 12980$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 12982$as_echo "" >&6; } 12983 12984 for bdb_libname in $bdb_default_search_lib_names; do 12985 for bdb_header in $bdb_default_search_headers; do 12986 # Clear the header cache variable for each location 12987 12988 cache_id="`echo ac_cv_header_${bdb_header} \ 12989 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 12990 12991 unset $cache_id 12992 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 12993ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 12994if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12995
|
12981 if test "2" = "3" -o "2" = "4" -o "2" = "5"; then
| 12996 if test "2" = "3" -o "2" = "4" -o "2" = "5" -o "2" = "6"; then
|
12982 # We generate a separate cache variable for each prefix and libname 12983 # we search under. That way, we avoid caching information that 12984 # changes if the user runs `configure' with a different set of 12985 # switches. 12986 12987 cache_id="`echo apu_cv_check_berkeley_db_2_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 12988 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 12989 12990 12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 12992$as_echo_n "checking for -l$bdb_libname... " >&6; } 12993 if eval \${$cache_id+:} false; then : 12994 $as_echo_n "(cached) " >&6 12995else 12996 12997 12998 apu_try_berkeley_db_save_libs="$LIBS" 12999 13000 apu_check_berkeley_db_major=2 13001 apu_check_berkeley_db_minor=-1 13002 apu_check_berkeley_db_patch=-1 13003 apu_try_berkeley_db_header=$bdb_header 13004 apu_try_berkeley_db_libname=$bdb_libname 13005 13006 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 13007 if test "$cross_compiling" = yes; then : 13008 apu_try_berkeley_db=yes 13009 13010else 13011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13012/* end confdefs.h. */ 13013 13014#include <stdlib.h> 13015#include <stdio.h> 13016#include <$apu_try_berkeley_db_header> 13017main () 13018{ 13019 int major, minor, patch; 13020 13021 db_version(&major, &minor, &patch); 13022 13023 /* Sanity check: ensure that db.h constants actually match the db library */ 13024 if (major != DB_VERSION_MAJOR 13025 || minor != DB_VERSION_MINOR 13026 || patch != DB_VERSION_PATCH) 13027 exit (1); 13028 13029 /* Run-time check: ensure the library claims to be the correct version. */ 13030 13031 if ($apu_check_berkeley_db_major != -1) { 13032 if (major < $apu_check_berkeley_db_major) 13033 exit (1); 13034 if (major > $apu_check_berkeley_db_major) 13035 exit (0); 13036 } 13037 13038 if ($apu_check_berkeley_db_minor != -1) { 13039 if (minor < $apu_check_berkeley_db_minor) 13040 exit (1); 13041 if (minor > $apu_check_berkeley_db_minor) 13042 exit (0); 13043 } 13044 13045 if ($apu_check_berkeley_db_patch == -1 13046 || patch >= $apu_check_berkeley_db_patch) 13047 exit (0); 13048 else 13049 exit (1); 13050} 13051 13052_ACEOF 13053if ac_fn_c_try_run "$LINENO"; then : 13054 apu_try_berkeley_db=yes 13055else 13056 apu_try_berkeley_db=no 13057fi 13058rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13059 conftest.$ac_objext conftest.beam conftest.$ac_ext 13060fi 13061 13062 13063 LIBS="$apu_try_berkeley_db_save_libs" 13064 13065 13066 eval "$cache_id=$apu_try_berkeley_db" 13067 13068fi 13069 13070 result="`eval echo '$'$cache_id`" 13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 13072$as_echo "$result" >&6; } 13073 elif test "2" = "1"; then 13074 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 13075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 13076$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 13077if eval \${$as_ac_Lib+:} false; then : 13078 $as_echo_n "(cached) " >&6 13079else 13080 ac_check_lib_save_LIBS=$LIBS 13081LIBS="-l$bdb_libname $LIBS" 13082cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13083/* end confdefs.h. */ 13084 13085/* Override any GCC internal prototype to avoid an error. 13086 Use char because int might match the return type of a GCC 13087 builtin and then its argument prototype would still apply. */ 13088#ifdef __cplusplus 13089extern "C" 13090#endif 13091char dbopen (); 13092int 13093main () 13094{ 13095return dbopen (); 13096 ; 13097 return 0; 13098} 13099_ACEOF 13100if ac_fn_c_try_link "$LINENO"; then : 13101 eval "$as_ac_Lib=yes" 13102else 13103 eval "$as_ac_Lib=no" 13104fi 13105rm -f core conftest.err conftest.$ac_objext \ 13106 conftest$ac_exeext conftest.$ac_ext 13107LIBS=$ac_check_lib_save_LIBS 13108fi 13109eval ac_res=\$$as_ac_Lib 13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13111$as_echo "$ac_res" >&6; } 13112if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 13113 result=yes 13114else 13115 result=no 13116 13117fi 13118 13119 elif test "2" = "2"; then 13120 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 13121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 13122$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 13123if eval \${$as_ac_Lib+:} false; then : 13124 $as_echo_n "(cached) " >&6 13125else 13126 ac_check_lib_save_LIBS=$LIBS 13127LIBS="-l$bdb_libname $LIBS" 13128cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13129/* end confdefs.h. */ 13130 13131/* Override any GCC internal prototype to avoid an error. 13132 Use char because int might match the return type of a GCC 13133 builtin and then its argument prototype would still apply. */ 13134#ifdef __cplusplus 13135extern "C" 13136#endif 13137char db_open (); 13138int 13139main () 13140{ 13141return db_open (); 13142 ; 13143 return 0; 13144} 13145_ACEOF 13146if ac_fn_c_try_link "$LINENO"; then : 13147 eval "$as_ac_Lib=yes" 13148else 13149 eval "$as_ac_Lib=no" 13150fi 13151rm -f core conftest.err conftest.$ac_objext \ 13152 conftest$ac_exeext conftest.$ac_ext 13153LIBS=$ac_check_lib_save_LIBS 13154fi 13155eval ac_res=\$$as_ac_Lib 13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13157$as_echo "$ac_res" >&6; } 13158if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 13159 result=yes 13160else 13161 result=no 13162 13163fi 13164 13165 fi 13166 13167else 13168 result="no" 13169fi 13170 13171 13172 13173 # If we found it, no need to search any more. 13174 if test "$result" = "yes"; then 13175 found="$bdb_place" 13176 break 13177 fi 13178 done 13179 test "$found" != "not" && break 13180 done 13181 test "$found" != "not" && break 13182 done 13183 13184 # Restore the original values of the flags we tweak. 13185 LDFLAGS="$apu_check_lib_save_ldflags" 13186 CPPFLAGS="$apu_check_lib_save_cppflags" 13187 13188 case "$found" in 13189 "not") 13190 apu_have_db=0 13191 ;; 13192 "std") 13193 apu_db_header=$bdb_header 13194 apu_db_lib=$bdb_libname 13195 apu_have_db=1 13196 ;; 13197 *":"*) 13198 header="`echo $found | sed -e 's/:.*$//'`" 13199 lib="`echo $found | sed -e 's/^.*://'`" 13200 13201 13202 if test "x$APRUTIL_INCLUDES" = "x"; then 13203 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 13204 APRUTIL_INCLUDES="-I$header" 13205 else 13206 apr_addto_bugger="-I$header" 13207 for i in $apr_addto_bugger; do 13208 apr_addto_duplicate="0" 13209 for j in $APRUTIL_INCLUDES; do 13210 if test "x$i" = "x$j"; then 13211 apr_addto_duplicate="1" 13212 break 13213 fi 13214 done 13215 if test $apr_addto_duplicate = "0"; then 13216 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 13217 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 13218 fi 13219 done 13220 fi 13221 13222 13223 if test "x$APRUTIL_LDFLAGS" = "x"; then 13224 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 13225 APRUTIL_LDFLAGS="-L$lib" 13226 else 13227 apr_addto_bugger="-L$lib" 13228 for i in $apr_addto_bugger; do 13229 apr_addto_duplicate="0" 13230 for j in $APRUTIL_LDFLAGS; do 13231 if test "x$i" = "x$j"; then 13232 apr_addto_duplicate="1" 13233 break 13234 fi 13235 done 13236 if test $apr_addto_duplicate = "0"; then 13237 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 13238 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 13239 fi 13240 done 13241 fi 13242 13243 apu_db_header=$bdb_header 13244 apu_db_lib=$bdb_libname 13245 apu_have_db=1 13246 ;; 13247 *) 13248 13249 if test "x$APRUTIL_INCLUDES" = "x"; then 13250 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 13251 APRUTIL_INCLUDES="-I$found/include" 13252 else 13253 apr_addto_bugger="-I$found/include" 13254 for i in $apr_addto_bugger; do 13255 apr_addto_duplicate="0" 13256 for j in $APRUTIL_INCLUDES; do 13257 if test "x$i" = "x$j"; then 13258 apr_addto_duplicate="1" 13259 break 13260 fi 13261 done 13262 if test $apr_addto_duplicate = "0"; then 13263 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 13264 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 13265 fi 13266 done 13267 fi 13268 13269 13270 if test "x$APRUTIL_LDFLAGS" = "x"; then 13271 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 13272 APRUTIL_LDFLAGS="-L$found/lib" 13273 else 13274 apr_addto_bugger="-L$found/lib" 13275 for i in $apr_addto_bugger; do 13276 apr_addto_duplicate="0" 13277 for j in $APRUTIL_LDFLAGS; do 13278 if test "x$i" = "x$j"; then 13279 apr_addto_duplicate="1" 13280 break 13281 fi 13282 done 13283 if test $apr_addto_duplicate = "0"; then 13284 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 13285 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 13286 fi 13287 done 13288 fi 13289 13290 apu_db_header=$bdb_header 13291 apu_db_lib=$bdb_libname 13292 apu_have_db=1 13293 ;; 13294 esac 13295 13296 if test "$apu_have_db" = "1"; then 13297 apu_db_version=2 13298 fi 13299 13300 fi 13301 if test "$apu_have_db" = "0"; then 13302 13303 places="$all_places" 13304 if test -z "$places"; then 13305 places="std" 13306 fi 13307 13308 bdb_version=1 13309 if test "0" != "-1"; then 13310 bdb_version="$bdb_version.0" 13311 if test "0" != "-1"; then 13312 bdb_version="$bdb_version.0" 13313 fi 13314 fi 13315 bdb_places="$places" 13316 bdb_default_search_headers="db1/db.h db.h" 13317 bdb_default_search_lib_names="db1" 13318 13319 13320 apu_have_db=0 13321 13322 # Save the original values of the flags we tweak. 13323 apu_check_lib_save_libs="$LIBS" 13324 apu_check_lib_save_ldflags="$LDFLAGS" 13325 apu_check_lib_save_cppflags="$CPPFLAGS" 13326 13327 # The variable `found' is the prefix under which we've found 13328 # Berkeley DB, or `not' if we haven't found it anywhere yet. 13329 found=not 13330 for bdb_place in $bdb_places; do 13331 13332 LDFLAGS="$apu_check_lib_save_ldflags" 13333 CPPFLAGS="$apu_check_lib_save_cppflags" 13334 case "$bdb_place" in 13335 "std" ) 13336 description="the standard places" 13337 ;; 13338 *":"* ) 13339 header="`echo $bdb_place | sed -e 's/:.*$//'`" 13340 lib="`echo $bdb_place | sed -e 's/^.*://'`" 13341 CPPFLAGS="$CPPFLAGS -I$header" 13342 LDFLAGS="$LDFLAGS -L$lib" 13343 description="$header and $lib" 13344 ;; 13345 * ) 13346 if test -d $bdb_place; then 13347 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 13348 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 13349 else 13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 13351$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 13353$as_echo "directory not found" >&6; } 13354 continue 13355 fi 13356 description="$bdb_place" 13357 ;; 13358 esac 13359 13360 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 13361 # trick to display a message instead. 13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 13363$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 13365$as_echo "" >&6; } 13366 13367 for bdb_libname in $bdb_default_search_lib_names; do 13368 for bdb_header in $bdb_default_search_headers; do 13369 # Clear the header cache variable for each location 13370 13371 cache_id="`echo ac_cv_header_${bdb_header} \ 13372 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 13373 13374 unset $cache_id 13375 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 13376ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 13377if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13378
| 12997 # We generate a separate cache variable for each prefix and libname 12998 # we search under. That way, we avoid caching information that 12999 # changes if the user runs `configure' with a different set of 13000 # switches. 13001 13002 cache_id="`echo apu_cv_check_berkeley_db_2_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 13003 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 13004 13005 13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 13007$as_echo_n "checking for -l$bdb_libname... " >&6; } 13008 if eval \${$cache_id+:} false; then : 13009 $as_echo_n "(cached) " >&6 13010else 13011 13012 13013 apu_try_berkeley_db_save_libs="$LIBS" 13014 13015 apu_check_berkeley_db_major=2 13016 apu_check_berkeley_db_minor=-1 13017 apu_check_berkeley_db_patch=-1 13018 apu_try_berkeley_db_header=$bdb_header 13019 apu_try_berkeley_db_libname=$bdb_libname 13020 13021 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 13022 if test "$cross_compiling" = yes; then : 13023 apu_try_berkeley_db=yes 13024 13025else 13026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13027/* end confdefs.h. */ 13028 13029#include <stdlib.h> 13030#include <stdio.h> 13031#include <$apu_try_berkeley_db_header> 13032main () 13033{ 13034 int major, minor, patch; 13035 13036 db_version(&major, &minor, &patch); 13037 13038 /* Sanity check: ensure that db.h constants actually match the db library */ 13039 if (major != DB_VERSION_MAJOR 13040 || minor != DB_VERSION_MINOR 13041 || patch != DB_VERSION_PATCH) 13042 exit (1); 13043 13044 /* Run-time check: ensure the library claims to be the correct version. */ 13045 13046 if ($apu_check_berkeley_db_major != -1) { 13047 if (major < $apu_check_berkeley_db_major) 13048 exit (1); 13049 if (major > $apu_check_berkeley_db_major) 13050 exit (0); 13051 } 13052 13053 if ($apu_check_berkeley_db_minor != -1) { 13054 if (minor < $apu_check_berkeley_db_minor) 13055 exit (1); 13056 if (minor > $apu_check_berkeley_db_minor) 13057 exit (0); 13058 } 13059 13060 if ($apu_check_berkeley_db_patch == -1 13061 || patch >= $apu_check_berkeley_db_patch) 13062 exit (0); 13063 else 13064 exit (1); 13065} 13066 13067_ACEOF 13068if ac_fn_c_try_run "$LINENO"; then : 13069 apu_try_berkeley_db=yes 13070else 13071 apu_try_berkeley_db=no 13072fi 13073rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13074 conftest.$ac_objext conftest.beam conftest.$ac_ext 13075fi 13076 13077 13078 LIBS="$apu_try_berkeley_db_save_libs" 13079 13080 13081 eval "$cache_id=$apu_try_berkeley_db" 13082 13083fi 13084 13085 result="`eval echo '$'$cache_id`" 13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 13087$as_echo "$result" >&6; } 13088 elif test "2" = "1"; then 13089 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 13090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 13091$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 13092if eval \${$as_ac_Lib+:} false; then : 13093 $as_echo_n "(cached) " >&6 13094else 13095 ac_check_lib_save_LIBS=$LIBS 13096LIBS="-l$bdb_libname $LIBS" 13097cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13098/* end confdefs.h. */ 13099 13100/* Override any GCC internal prototype to avoid an error. 13101 Use char because int might match the return type of a GCC 13102 builtin and then its argument prototype would still apply. */ 13103#ifdef __cplusplus 13104extern "C" 13105#endif 13106char dbopen (); 13107int 13108main () 13109{ 13110return dbopen (); 13111 ; 13112 return 0; 13113} 13114_ACEOF 13115if ac_fn_c_try_link "$LINENO"; then : 13116 eval "$as_ac_Lib=yes" 13117else 13118 eval "$as_ac_Lib=no" 13119fi 13120rm -f core conftest.err conftest.$ac_objext \ 13121 conftest$ac_exeext conftest.$ac_ext 13122LIBS=$ac_check_lib_save_LIBS 13123fi 13124eval ac_res=\$$as_ac_Lib 13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13126$as_echo "$ac_res" >&6; } 13127if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 13128 result=yes 13129else 13130 result=no 13131 13132fi 13133 13134 elif test "2" = "2"; then 13135 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 13136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 13137$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 13138if eval \${$as_ac_Lib+:} false; then : 13139 $as_echo_n "(cached) " >&6 13140else 13141 ac_check_lib_save_LIBS=$LIBS 13142LIBS="-l$bdb_libname $LIBS" 13143cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13144/* end confdefs.h. */ 13145 13146/* Override any GCC internal prototype to avoid an error. 13147 Use char because int might match the return type of a GCC 13148 builtin and then its argument prototype would still apply. */ 13149#ifdef __cplusplus 13150extern "C" 13151#endif 13152char db_open (); 13153int 13154main () 13155{ 13156return db_open (); 13157 ; 13158 return 0; 13159} 13160_ACEOF 13161if ac_fn_c_try_link "$LINENO"; then : 13162 eval "$as_ac_Lib=yes" 13163else 13164 eval "$as_ac_Lib=no" 13165fi 13166rm -f core conftest.err conftest.$ac_objext \ 13167 conftest$ac_exeext conftest.$ac_ext 13168LIBS=$ac_check_lib_save_LIBS 13169fi 13170eval ac_res=\$$as_ac_Lib 13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13172$as_echo "$ac_res" >&6; } 13173if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 13174 result=yes 13175else 13176 result=no 13177 13178fi 13179 13180 fi 13181 13182else 13183 result="no" 13184fi 13185 13186 13187 13188 # If we found it, no need to search any more. 13189 if test "$result" = "yes"; then 13190 found="$bdb_place" 13191 break 13192 fi 13193 done 13194 test "$found" != "not" && break 13195 done 13196 test "$found" != "not" && break 13197 done 13198 13199 # Restore the original values of the flags we tweak. 13200 LDFLAGS="$apu_check_lib_save_ldflags" 13201 CPPFLAGS="$apu_check_lib_save_cppflags" 13202 13203 case "$found" in 13204 "not") 13205 apu_have_db=0 13206 ;; 13207 "std") 13208 apu_db_header=$bdb_header 13209 apu_db_lib=$bdb_libname 13210 apu_have_db=1 13211 ;; 13212 *":"*) 13213 header="`echo $found | sed -e 's/:.*$//'`" 13214 lib="`echo $found | sed -e 's/^.*://'`" 13215 13216 13217 if test "x$APRUTIL_INCLUDES" = "x"; then 13218 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 13219 APRUTIL_INCLUDES="-I$header" 13220 else 13221 apr_addto_bugger="-I$header" 13222 for i in $apr_addto_bugger; do 13223 apr_addto_duplicate="0" 13224 for j in $APRUTIL_INCLUDES; do 13225 if test "x$i" = "x$j"; then 13226 apr_addto_duplicate="1" 13227 break 13228 fi 13229 done 13230 if test $apr_addto_duplicate = "0"; then 13231 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 13232 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 13233 fi 13234 done 13235 fi 13236 13237 13238 if test "x$APRUTIL_LDFLAGS" = "x"; then 13239 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 13240 APRUTIL_LDFLAGS="-L$lib" 13241 else 13242 apr_addto_bugger="-L$lib" 13243 for i in $apr_addto_bugger; do 13244 apr_addto_duplicate="0" 13245 for j in $APRUTIL_LDFLAGS; do 13246 if test "x$i" = "x$j"; then 13247 apr_addto_duplicate="1" 13248 break 13249 fi 13250 done 13251 if test $apr_addto_duplicate = "0"; then 13252 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 13253 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 13254 fi 13255 done 13256 fi 13257 13258 apu_db_header=$bdb_header 13259 apu_db_lib=$bdb_libname 13260 apu_have_db=1 13261 ;; 13262 *) 13263 13264 if test "x$APRUTIL_INCLUDES" = "x"; then 13265 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 13266 APRUTIL_INCLUDES="-I$found/include" 13267 else 13268 apr_addto_bugger="-I$found/include" 13269 for i in $apr_addto_bugger; do 13270 apr_addto_duplicate="0" 13271 for j in $APRUTIL_INCLUDES; do 13272 if test "x$i" = "x$j"; then 13273 apr_addto_duplicate="1" 13274 break 13275 fi 13276 done 13277 if test $apr_addto_duplicate = "0"; then 13278 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 13279 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 13280 fi 13281 done 13282 fi 13283 13284 13285 if test "x$APRUTIL_LDFLAGS" = "x"; then 13286 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 13287 APRUTIL_LDFLAGS="-L$found/lib" 13288 else 13289 apr_addto_bugger="-L$found/lib" 13290 for i in $apr_addto_bugger; do 13291 apr_addto_duplicate="0" 13292 for j in $APRUTIL_LDFLAGS; do 13293 if test "x$i" = "x$j"; then 13294 apr_addto_duplicate="1" 13295 break 13296 fi 13297 done 13298 if test $apr_addto_duplicate = "0"; then 13299 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 13300 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 13301 fi 13302 done 13303 fi 13304 13305 apu_db_header=$bdb_header 13306 apu_db_lib=$bdb_libname 13307 apu_have_db=1 13308 ;; 13309 esac 13310 13311 if test "$apu_have_db" = "1"; then 13312 apu_db_version=2 13313 fi 13314 13315 fi 13316 if test "$apu_have_db" = "0"; then 13317 13318 places="$all_places" 13319 if test -z "$places"; then 13320 places="std" 13321 fi 13322 13323 bdb_version=1 13324 if test "0" != "-1"; then 13325 bdb_version="$bdb_version.0" 13326 if test "0" != "-1"; then 13327 bdb_version="$bdb_version.0" 13328 fi 13329 fi 13330 bdb_places="$places" 13331 bdb_default_search_headers="db1/db.h db.h" 13332 bdb_default_search_lib_names="db1" 13333 13334 13335 apu_have_db=0 13336 13337 # Save the original values of the flags we tweak. 13338 apu_check_lib_save_libs="$LIBS" 13339 apu_check_lib_save_ldflags="$LDFLAGS" 13340 apu_check_lib_save_cppflags="$CPPFLAGS" 13341 13342 # The variable `found' is the prefix under which we've found 13343 # Berkeley DB, or `not' if we haven't found it anywhere yet. 13344 found=not 13345 for bdb_place in $bdb_places; do 13346 13347 LDFLAGS="$apu_check_lib_save_ldflags" 13348 CPPFLAGS="$apu_check_lib_save_cppflags" 13349 case "$bdb_place" in 13350 "std" ) 13351 description="the standard places" 13352 ;; 13353 *":"* ) 13354 header="`echo $bdb_place | sed -e 's/:.*$//'`" 13355 lib="`echo $bdb_place | sed -e 's/^.*://'`" 13356 CPPFLAGS="$CPPFLAGS -I$header" 13357 LDFLAGS="$LDFLAGS -L$lib" 13358 description="$header and $lib" 13359 ;; 13360 * ) 13361 if test -d $bdb_place; then 13362 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 13363 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 13364 else 13365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 13366$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 13368$as_echo "directory not found" >&6; } 13369 continue 13370 fi 13371 description="$bdb_place" 13372 ;; 13373 esac 13374 13375 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 13376 # trick to display a message instead. 13377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 13378$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 13380$as_echo "" >&6; } 13381 13382 for bdb_libname in $bdb_default_search_lib_names; do 13383 for bdb_header in $bdb_default_search_headers; do 13384 # Clear the header cache variable for each location 13385 13386 cache_id="`echo ac_cv_header_${bdb_header} \ 13387 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 13388 13389 unset $cache_id 13390 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 13391ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 13392if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13393
|
13379 if test "1" = "3" -o "1" = "4" -o "1" = "5"; then
| 13394 if test "1" = "3" -o "1" = "4" -o "1" = "5" -o "1" = "6"; then
|
13380 # We generate a separate cache variable for each prefix and libname 13381 # we search under. That way, we avoid caching information that 13382 # changes if the user runs `configure' with a different set of 13383 # switches. 13384 13385 cache_id="`echo apu_cv_check_berkeley_db_1_0_0_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 13386 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 13387 13388 13389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 13390$as_echo_n "checking for -l$bdb_libname... " >&6; } 13391 if eval \${$cache_id+:} false; then : 13392 $as_echo_n "(cached) " >&6 13393else 13394 13395 13396 apu_try_berkeley_db_save_libs="$LIBS" 13397 13398 apu_check_berkeley_db_major=1 13399 apu_check_berkeley_db_minor=0 13400 apu_check_berkeley_db_patch=0 13401 apu_try_berkeley_db_header=$bdb_header 13402 apu_try_berkeley_db_libname=$bdb_libname 13403 13404 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 13405 if test "$cross_compiling" = yes; then : 13406 apu_try_berkeley_db=yes 13407 13408else 13409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13410/* end confdefs.h. */ 13411 13412#include <stdlib.h> 13413#include <stdio.h> 13414#include <$apu_try_berkeley_db_header> 13415main () 13416{ 13417 int major, minor, patch; 13418 13419 db_version(&major, &minor, &patch); 13420 13421 /* Sanity check: ensure that db.h constants actually match the db library */ 13422 if (major != DB_VERSION_MAJOR 13423 || minor != DB_VERSION_MINOR 13424 || patch != DB_VERSION_PATCH) 13425 exit (1); 13426 13427 /* Run-time check: ensure the library claims to be the correct version. */ 13428 13429 if ($apu_check_berkeley_db_major != -1) { 13430 if (major < $apu_check_berkeley_db_major) 13431 exit (1); 13432 if (major > $apu_check_berkeley_db_major) 13433 exit (0); 13434 } 13435 13436 if ($apu_check_berkeley_db_minor != -1) { 13437 if (minor < $apu_check_berkeley_db_minor) 13438 exit (1); 13439 if (minor > $apu_check_berkeley_db_minor) 13440 exit (0); 13441 } 13442 13443 if ($apu_check_berkeley_db_patch == -1 13444 || patch >= $apu_check_berkeley_db_patch) 13445 exit (0); 13446 else 13447 exit (1); 13448} 13449 13450_ACEOF 13451if ac_fn_c_try_run "$LINENO"; then : 13452 apu_try_berkeley_db=yes 13453else 13454 apu_try_berkeley_db=no 13455fi 13456rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13457 conftest.$ac_objext conftest.beam conftest.$ac_ext 13458fi 13459 13460 13461 LIBS="$apu_try_berkeley_db_save_libs" 13462 13463 13464 eval "$cache_id=$apu_try_berkeley_db" 13465 13466fi 13467 13468 result="`eval echo '$'$cache_id`" 13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 13470$as_echo "$result" >&6; } 13471 elif test "1" = "1"; then 13472 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 13473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 13474$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 13475if eval \${$as_ac_Lib+:} false; then : 13476 $as_echo_n "(cached) " >&6 13477else 13478 ac_check_lib_save_LIBS=$LIBS 13479LIBS="-l$bdb_libname $LIBS" 13480cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13481/* end confdefs.h. */ 13482 13483/* Override any GCC internal prototype to avoid an error. 13484 Use char because int might match the return type of a GCC 13485 builtin and then its argument prototype would still apply. */ 13486#ifdef __cplusplus 13487extern "C" 13488#endif 13489char dbopen (); 13490int 13491main () 13492{ 13493return dbopen (); 13494 ; 13495 return 0; 13496} 13497_ACEOF 13498if ac_fn_c_try_link "$LINENO"; then : 13499 eval "$as_ac_Lib=yes" 13500else 13501 eval "$as_ac_Lib=no" 13502fi 13503rm -f core conftest.err conftest.$ac_objext \ 13504 conftest$ac_exeext conftest.$ac_ext 13505LIBS=$ac_check_lib_save_LIBS 13506fi 13507eval ac_res=\$$as_ac_Lib 13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13509$as_echo "$ac_res" >&6; } 13510if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 13511 result=yes 13512else 13513 result=no 13514 13515fi 13516 13517 elif test "1" = "2"; then 13518 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 13519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 13520$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 13521if eval \${$as_ac_Lib+:} false; then : 13522 $as_echo_n "(cached) " >&6 13523else 13524 ac_check_lib_save_LIBS=$LIBS 13525LIBS="-l$bdb_libname $LIBS" 13526cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13527/* end confdefs.h. */ 13528 13529/* Override any GCC internal prototype to avoid an error. 13530 Use char because int might match the return type of a GCC 13531 builtin and then its argument prototype would still apply. */ 13532#ifdef __cplusplus 13533extern "C" 13534#endif 13535char db_open (); 13536int 13537main () 13538{ 13539return db_open (); 13540 ; 13541 return 0; 13542} 13543_ACEOF 13544if ac_fn_c_try_link "$LINENO"; then : 13545 eval "$as_ac_Lib=yes" 13546else 13547 eval "$as_ac_Lib=no" 13548fi 13549rm -f core conftest.err conftest.$ac_objext \ 13550 conftest$ac_exeext conftest.$ac_ext 13551LIBS=$ac_check_lib_save_LIBS 13552fi 13553eval ac_res=\$$as_ac_Lib 13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13555$as_echo "$ac_res" >&6; } 13556if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 13557 result=yes 13558else 13559 result=no 13560 13561fi 13562 13563 fi 13564 13565else 13566 result="no" 13567fi 13568 13569 13570 13571 # If we found it, no need to search any more. 13572 if test "$result" = "yes"; then 13573 found="$bdb_place" 13574 break 13575 fi 13576 done 13577 test "$found" != "not" && break 13578 done 13579 test "$found" != "not" && break 13580 done 13581 13582 # Restore the original values of the flags we tweak. 13583 LDFLAGS="$apu_check_lib_save_ldflags" 13584 CPPFLAGS="$apu_check_lib_save_cppflags" 13585 13586 case "$found" in 13587 "not") 13588 apu_have_db=0 13589 ;; 13590 "std") 13591 apu_db_header=$bdb_header 13592 apu_db_lib=$bdb_libname 13593 apu_have_db=1 13594 ;; 13595 *":"*) 13596 header="`echo $found | sed -e 's/:.*$//'`" 13597 lib="`echo $found | sed -e 's/^.*://'`" 13598 13599 13600 if test "x$APRUTIL_INCLUDES" = "x"; then 13601 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 13602 APRUTIL_INCLUDES="-I$header" 13603 else 13604 apr_addto_bugger="-I$header" 13605 for i in $apr_addto_bugger; do 13606 apr_addto_duplicate="0" 13607 for j in $APRUTIL_INCLUDES; do 13608 if test "x$i" = "x$j"; then 13609 apr_addto_duplicate="1" 13610 break 13611 fi 13612 done 13613 if test $apr_addto_duplicate = "0"; then 13614 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 13615 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 13616 fi 13617 done 13618 fi 13619 13620 13621 if test "x$APRUTIL_LDFLAGS" = "x"; then 13622 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 13623 APRUTIL_LDFLAGS="-L$lib" 13624 else 13625 apr_addto_bugger="-L$lib" 13626 for i in $apr_addto_bugger; do 13627 apr_addto_duplicate="0" 13628 for j in $APRUTIL_LDFLAGS; do 13629 if test "x$i" = "x$j"; then 13630 apr_addto_duplicate="1" 13631 break 13632 fi 13633 done 13634 if test $apr_addto_duplicate = "0"; then 13635 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 13636 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 13637 fi 13638 done 13639 fi 13640 13641 apu_db_header=$bdb_header 13642 apu_db_lib=$bdb_libname 13643 apu_have_db=1 13644 ;; 13645 *) 13646 13647 if test "x$APRUTIL_INCLUDES" = "x"; then 13648 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 13649 APRUTIL_INCLUDES="-I$found/include" 13650 else 13651 apr_addto_bugger="-I$found/include" 13652 for i in $apr_addto_bugger; do 13653 apr_addto_duplicate="0" 13654 for j in $APRUTIL_INCLUDES; do 13655 if test "x$i" = "x$j"; then 13656 apr_addto_duplicate="1" 13657 break 13658 fi 13659 done 13660 if test $apr_addto_duplicate = "0"; then 13661 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 13662 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 13663 fi 13664 done 13665 fi 13666 13667 13668 if test "x$APRUTIL_LDFLAGS" = "x"; then 13669 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 13670 APRUTIL_LDFLAGS="-L$found/lib" 13671 else 13672 apr_addto_bugger="-L$found/lib" 13673 for i in $apr_addto_bugger; do 13674 apr_addto_duplicate="0" 13675 for j in $APRUTIL_LDFLAGS; do 13676 if test "x$i" = "x$j"; then 13677 apr_addto_duplicate="1" 13678 break 13679 fi 13680 done 13681 if test $apr_addto_duplicate = "0"; then 13682 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 13683 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 13684 fi 13685 done 13686 fi 13687 13688 apu_db_header=$bdb_header 13689 apu_db_lib=$bdb_libname 13690 apu_have_db=1 13691 ;; 13692 esac 13693 13694 if test "$apu_have_db" = "1"; then 13695 apu_db_version=1 13696 fi 13697 13698 fi 13699 if test "$apu_have_db" = "0"; then 13700 13701 places="$all_places" 13702 if test -z "$places"; then 13703 places="std" 13704 fi 13705 13706 bdb_version=1 13707 if test "-1" != "-1"; then 13708 bdb_version="$bdb_version.-1" 13709 if test "-1" != "-1"; then 13710 bdb_version="$bdb_version.-1" 13711 fi 13712 fi 13713 bdb_places="$places" 13714 bdb_default_search_headers="db_185.h" 13715 bdb_default_search_lib_names="db" 13716 13717 13718 apu_have_db=0 13719 13720 # Save the original values of the flags we tweak. 13721 apu_check_lib_save_libs="$LIBS" 13722 apu_check_lib_save_ldflags="$LDFLAGS" 13723 apu_check_lib_save_cppflags="$CPPFLAGS" 13724 13725 # The variable `found' is the prefix under which we've found 13726 # Berkeley DB, or `not' if we haven't found it anywhere yet. 13727 found=not 13728 for bdb_place in $bdb_places; do 13729 13730 LDFLAGS="$apu_check_lib_save_ldflags" 13731 CPPFLAGS="$apu_check_lib_save_cppflags" 13732 case "$bdb_place" in 13733 "std" ) 13734 description="the standard places" 13735 ;; 13736 *":"* ) 13737 header="`echo $bdb_place | sed -e 's/:.*$//'`" 13738 lib="`echo $bdb_place | sed -e 's/^.*://'`" 13739 CPPFLAGS="$CPPFLAGS -I$header" 13740 LDFLAGS="$LDFLAGS -L$lib" 13741 description="$header and $lib" 13742 ;; 13743 * ) 13744 if test -d $bdb_place; then 13745 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 13746 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 13747 else 13748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 13749$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 13751$as_echo "directory not found" >&6; } 13752 continue 13753 fi 13754 description="$bdb_place" 13755 ;; 13756 esac 13757 13758 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 13759 # trick to display a message instead. 13760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 13761$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 13763$as_echo "" >&6; } 13764 13765 for bdb_libname in $bdb_default_search_lib_names; do 13766 for bdb_header in $bdb_default_search_headers; do 13767 # Clear the header cache variable for each location 13768 13769 cache_id="`echo ac_cv_header_${bdb_header} \ 13770 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 13771 13772 unset $cache_id 13773 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 13774ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 13775if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13776
| 13395 # We generate a separate cache variable for each prefix and libname 13396 # we search under. That way, we avoid caching information that 13397 # changes if the user runs `configure' with a different set of 13398 # switches. 13399 13400 cache_id="`echo apu_cv_check_berkeley_db_1_0_0_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 13401 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 13402 13403 13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 13405$as_echo_n "checking for -l$bdb_libname... " >&6; } 13406 if eval \${$cache_id+:} false; then : 13407 $as_echo_n "(cached) " >&6 13408else 13409 13410 13411 apu_try_berkeley_db_save_libs="$LIBS" 13412 13413 apu_check_berkeley_db_major=1 13414 apu_check_berkeley_db_minor=0 13415 apu_check_berkeley_db_patch=0 13416 apu_try_berkeley_db_header=$bdb_header 13417 apu_try_berkeley_db_libname=$bdb_libname 13418 13419 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 13420 if test "$cross_compiling" = yes; then : 13421 apu_try_berkeley_db=yes 13422 13423else 13424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13425/* end confdefs.h. */ 13426 13427#include <stdlib.h> 13428#include <stdio.h> 13429#include <$apu_try_berkeley_db_header> 13430main () 13431{ 13432 int major, minor, patch; 13433 13434 db_version(&major, &minor, &patch); 13435 13436 /* Sanity check: ensure that db.h constants actually match the db library */ 13437 if (major != DB_VERSION_MAJOR 13438 || minor != DB_VERSION_MINOR 13439 || patch != DB_VERSION_PATCH) 13440 exit (1); 13441 13442 /* Run-time check: ensure the library claims to be the correct version. */ 13443 13444 if ($apu_check_berkeley_db_major != -1) { 13445 if (major < $apu_check_berkeley_db_major) 13446 exit (1); 13447 if (major > $apu_check_berkeley_db_major) 13448 exit (0); 13449 } 13450 13451 if ($apu_check_berkeley_db_minor != -1) { 13452 if (minor < $apu_check_berkeley_db_minor) 13453 exit (1); 13454 if (minor > $apu_check_berkeley_db_minor) 13455 exit (0); 13456 } 13457 13458 if ($apu_check_berkeley_db_patch == -1 13459 || patch >= $apu_check_berkeley_db_patch) 13460 exit (0); 13461 else 13462 exit (1); 13463} 13464 13465_ACEOF 13466if ac_fn_c_try_run "$LINENO"; then : 13467 apu_try_berkeley_db=yes 13468else 13469 apu_try_berkeley_db=no 13470fi 13471rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13472 conftest.$ac_objext conftest.beam conftest.$ac_ext 13473fi 13474 13475 13476 LIBS="$apu_try_berkeley_db_save_libs" 13477 13478 13479 eval "$cache_id=$apu_try_berkeley_db" 13480 13481fi 13482 13483 result="`eval echo '$'$cache_id`" 13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 13485$as_echo "$result" >&6; } 13486 elif test "1" = "1"; then 13487 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 13488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 13489$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 13490if eval \${$as_ac_Lib+:} false; then : 13491 $as_echo_n "(cached) " >&6 13492else 13493 ac_check_lib_save_LIBS=$LIBS 13494LIBS="-l$bdb_libname $LIBS" 13495cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13496/* end confdefs.h. */ 13497 13498/* Override any GCC internal prototype to avoid an error. 13499 Use char because int might match the return type of a GCC 13500 builtin and then its argument prototype would still apply. */ 13501#ifdef __cplusplus 13502extern "C" 13503#endif 13504char dbopen (); 13505int 13506main () 13507{ 13508return dbopen (); 13509 ; 13510 return 0; 13511} 13512_ACEOF 13513if ac_fn_c_try_link "$LINENO"; then : 13514 eval "$as_ac_Lib=yes" 13515else 13516 eval "$as_ac_Lib=no" 13517fi 13518rm -f core conftest.err conftest.$ac_objext \ 13519 conftest$ac_exeext conftest.$ac_ext 13520LIBS=$ac_check_lib_save_LIBS 13521fi 13522eval ac_res=\$$as_ac_Lib 13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13524$as_echo "$ac_res" >&6; } 13525if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 13526 result=yes 13527else 13528 result=no 13529 13530fi 13531 13532 elif test "1" = "2"; then 13533 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 13534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 13535$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 13536if eval \${$as_ac_Lib+:} false; then : 13537 $as_echo_n "(cached) " >&6 13538else 13539 ac_check_lib_save_LIBS=$LIBS 13540LIBS="-l$bdb_libname $LIBS" 13541cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13542/* end confdefs.h. */ 13543 13544/* Override any GCC internal prototype to avoid an error. 13545 Use char because int might match the return type of a GCC 13546 builtin and then its argument prototype would still apply. */ 13547#ifdef __cplusplus 13548extern "C" 13549#endif 13550char db_open (); 13551int 13552main () 13553{ 13554return db_open (); 13555 ; 13556 return 0; 13557} 13558_ACEOF 13559if ac_fn_c_try_link "$LINENO"; then : 13560 eval "$as_ac_Lib=yes" 13561else 13562 eval "$as_ac_Lib=no" 13563fi 13564rm -f core conftest.err conftest.$ac_objext \ 13565 conftest$ac_exeext conftest.$ac_ext 13566LIBS=$ac_check_lib_save_LIBS 13567fi 13568eval ac_res=\$$as_ac_Lib 13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13570$as_echo "$ac_res" >&6; } 13571if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 13572 result=yes 13573else 13574 result=no 13575 13576fi 13577 13578 fi 13579 13580else 13581 result="no" 13582fi 13583 13584 13585 13586 # If we found it, no need to search any more. 13587 if test "$result" = "yes"; then 13588 found="$bdb_place" 13589 break 13590 fi 13591 done 13592 test "$found" != "not" && break 13593 done 13594 test "$found" != "not" && break 13595 done 13596 13597 # Restore the original values of the flags we tweak. 13598 LDFLAGS="$apu_check_lib_save_ldflags" 13599 CPPFLAGS="$apu_check_lib_save_cppflags" 13600 13601 case "$found" in 13602 "not") 13603 apu_have_db=0 13604 ;; 13605 "std") 13606 apu_db_header=$bdb_header 13607 apu_db_lib=$bdb_libname 13608 apu_have_db=1 13609 ;; 13610 *":"*) 13611 header="`echo $found | sed -e 's/:.*$//'`" 13612 lib="`echo $found | sed -e 's/^.*://'`" 13613 13614 13615 if test "x$APRUTIL_INCLUDES" = "x"; then 13616 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 13617 APRUTIL_INCLUDES="-I$header" 13618 else 13619 apr_addto_bugger="-I$header" 13620 for i in $apr_addto_bugger; do 13621 apr_addto_duplicate="0" 13622 for j in $APRUTIL_INCLUDES; do 13623 if test "x$i" = "x$j"; then 13624 apr_addto_duplicate="1" 13625 break 13626 fi 13627 done 13628 if test $apr_addto_duplicate = "0"; then 13629 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 13630 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 13631 fi 13632 done 13633 fi 13634 13635 13636 if test "x$APRUTIL_LDFLAGS" = "x"; then 13637 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 13638 APRUTIL_LDFLAGS="-L$lib" 13639 else 13640 apr_addto_bugger="-L$lib" 13641 for i in $apr_addto_bugger; do 13642 apr_addto_duplicate="0" 13643 for j in $APRUTIL_LDFLAGS; do 13644 if test "x$i" = "x$j"; then 13645 apr_addto_duplicate="1" 13646 break 13647 fi 13648 done 13649 if test $apr_addto_duplicate = "0"; then 13650 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 13651 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 13652 fi 13653 done 13654 fi 13655 13656 apu_db_header=$bdb_header 13657 apu_db_lib=$bdb_libname 13658 apu_have_db=1 13659 ;; 13660 *) 13661 13662 if test "x$APRUTIL_INCLUDES" = "x"; then 13663 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 13664 APRUTIL_INCLUDES="-I$found/include" 13665 else 13666 apr_addto_bugger="-I$found/include" 13667 for i in $apr_addto_bugger; do 13668 apr_addto_duplicate="0" 13669 for j in $APRUTIL_INCLUDES; do 13670 if test "x$i" = "x$j"; then 13671 apr_addto_duplicate="1" 13672 break 13673 fi 13674 done 13675 if test $apr_addto_duplicate = "0"; then 13676 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 13677 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 13678 fi 13679 done 13680 fi 13681 13682 13683 if test "x$APRUTIL_LDFLAGS" = "x"; then 13684 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 13685 APRUTIL_LDFLAGS="-L$found/lib" 13686 else 13687 apr_addto_bugger="-L$found/lib" 13688 for i in $apr_addto_bugger; do 13689 apr_addto_duplicate="0" 13690 for j in $APRUTIL_LDFLAGS; do 13691 if test "x$i" = "x$j"; then 13692 apr_addto_duplicate="1" 13693 break 13694 fi 13695 done 13696 if test $apr_addto_duplicate = "0"; then 13697 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 13698 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 13699 fi 13700 done 13701 fi 13702 13703 apu_db_header=$bdb_header 13704 apu_db_lib=$bdb_libname 13705 apu_have_db=1 13706 ;; 13707 esac 13708 13709 if test "$apu_have_db" = "1"; then 13710 apu_db_version=1 13711 fi 13712 13713 fi 13714 if test "$apu_have_db" = "0"; then 13715 13716 places="$all_places" 13717 if test -z "$places"; then 13718 places="std" 13719 fi 13720 13721 bdb_version=1 13722 if test "-1" != "-1"; then 13723 bdb_version="$bdb_version.-1" 13724 if test "-1" != "-1"; then 13725 bdb_version="$bdb_version.-1" 13726 fi 13727 fi 13728 bdb_places="$places" 13729 bdb_default_search_headers="db_185.h" 13730 bdb_default_search_lib_names="db" 13731 13732 13733 apu_have_db=0 13734 13735 # Save the original values of the flags we tweak. 13736 apu_check_lib_save_libs="$LIBS" 13737 apu_check_lib_save_ldflags="$LDFLAGS" 13738 apu_check_lib_save_cppflags="$CPPFLAGS" 13739 13740 # The variable `found' is the prefix under which we've found 13741 # Berkeley DB, or `not' if we haven't found it anywhere yet. 13742 found=not 13743 for bdb_place in $bdb_places; do 13744 13745 LDFLAGS="$apu_check_lib_save_ldflags" 13746 CPPFLAGS="$apu_check_lib_save_cppflags" 13747 case "$bdb_place" in 13748 "std" ) 13749 description="the standard places" 13750 ;; 13751 *":"* ) 13752 header="`echo $bdb_place | sed -e 's/:.*$//'`" 13753 lib="`echo $bdb_place | sed -e 's/^.*://'`" 13754 CPPFLAGS="$CPPFLAGS -I$header" 13755 LDFLAGS="$LDFLAGS -L$lib" 13756 description="$header and $lib" 13757 ;; 13758 * ) 13759 if test -d $bdb_place; then 13760 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 13761 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 13762 else 13763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 13764$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 13766$as_echo "directory not found" >&6; } 13767 continue 13768 fi 13769 description="$bdb_place" 13770 ;; 13771 esac 13772 13773 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 13774 # trick to display a message instead. 13775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 13776$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 13778$as_echo "" >&6; } 13779 13780 for bdb_libname in $bdb_default_search_lib_names; do 13781 for bdb_header in $bdb_default_search_headers; do 13782 # Clear the header cache variable for each location 13783 13784 cache_id="`echo ac_cv_header_${bdb_header} \ 13785 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 13786 13787 unset $cache_id 13788 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 13789ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 13790if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13791
|
13777 if test "1" = "3" -o "1" = "4" -o "1" = "5"; then
| 13792 if test "1" = "3" -o "1" = "4" -o "1" = "5" -o "1" = "6"; then
|
13778 # We generate a separate cache variable for each prefix and libname 13779 # we search under. That way, we avoid caching information that 13780 # changes if the user runs `configure' with a different set of 13781 # switches. 13782 13783 cache_id="`echo apu_cv_check_berkeley_db_1_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 13784 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 13785 13786 13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 13788$as_echo_n "checking for -l$bdb_libname... " >&6; } 13789 if eval \${$cache_id+:} false; then : 13790 $as_echo_n "(cached) " >&6 13791else 13792 13793 13794 apu_try_berkeley_db_save_libs="$LIBS" 13795 13796 apu_check_berkeley_db_major=1 13797 apu_check_berkeley_db_minor=-1 13798 apu_check_berkeley_db_patch=-1 13799 apu_try_berkeley_db_header=$bdb_header 13800 apu_try_berkeley_db_libname=$bdb_libname 13801 13802 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 13803 if test "$cross_compiling" = yes; then : 13804 apu_try_berkeley_db=yes 13805 13806else 13807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13808/* end confdefs.h. */ 13809 13810#include <stdlib.h> 13811#include <stdio.h> 13812#include <$apu_try_berkeley_db_header> 13813main () 13814{ 13815 int major, minor, patch; 13816 13817 db_version(&major, &minor, &patch); 13818 13819 /* Sanity check: ensure that db.h constants actually match the db library */ 13820 if (major != DB_VERSION_MAJOR 13821 || minor != DB_VERSION_MINOR 13822 || patch != DB_VERSION_PATCH) 13823 exit (1); 13824 13825 /* Run-time check: ensure the library claims to be the correct version. */ 13826 13827 if ($apu_check_berkeley_db_major != -1) { 13828 if (major < $apu_check_berkeley_db_major) 13829 exit (1); 13830 if (major > $apu_check_berkeley_db_major) 13831 exit (0); 13832 } 13833 13834 if ($apu_check_berkeley_db_minor != -1) { 13835 if (minor < $apu_check_berkeley_db_minor) 13836 exit (1); 13837 if (minor > $apu_check_berkeley_db_minor) 13838 exit (0); 13839 } 13840 13841 if ($apu_check_berkeley_db_patch == -1 13842 || patch >= $apu_check_berkeley_db_patch) 13843 exit (0); 13844 else 13845 exit (1); 13846} 13847 13848_ACEOF 13849if ac_fn_c_try_run "$LINENO"; then : 13850 apu_try_berkeley_db=yes 13851else 13852 apu_try_berkeley_db=no 13853fi 13854rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13855 conftest.$ac_objext conftest.beam conftest.$ac_ext 13856fi 13857 13858 13859 LIBS="$apu_try_berkeley_db_save_libs" 13860 13861 13862 eval "$cache_id=$apu_try_berkeley_db" 13863 13864fi 13865 13866 result="`eval echo '$'$cache_id`" 13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 13868$as_echo "$result" >&6; } 13869 elif test "1" = "1"; then 13870 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 13871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 13872$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 13873if eval \${$as_ac_Lib+:} false; then : 13874 $as_echo_n "(cached) " >&6 13875else 13876 ac_check_lib_save_LIBS=$LIBS 13877LIBS="-l$bdb_libname $LIBS" 13878cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13879/* end confdefs.h. */ 13880 13881/* Override any GCC internal prototype to avoid an error. 13882 Use char because int might match the return type of a GCC 13883 builtin and then its argument prototype would still apply. */ 13884#ifdef __cplusplus 13885extern "C" 13886#endif 13887char dbopen (); 13888int 13889main () 13890{ 13891return dbopen (); 13892 ; 13893 return 0; 13894} 13895_ACEOF 13896if ac_fn_c_try_link "$LINENO"; then : 13897 eval "$as_ac_Lib=yes" 13898else 13899 eval "$as_ac_Lib=no" 13900fi 13901rm -f core conftest.err conftest.$ac_objext \ 13902 conftest$ac_exeext conftest.$ac_ext 13903LIBS=$ac_check_lib_save_LIBS 13904fi 13905eval ac_res=\$$as_ac_Lib 13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13907$as_echo "$ac_res" >&6; } 13908if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 13909 result=yes 13910else 13911 result=no 13912 13913fi 13914 13915 elif test "1" = "2"; then 13916 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 13917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 13918$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 13919if eval \${$as_ac_Lib+:} false; then : 13920 $as_echo_n "(cached) " >&6 13921else 13922 ac_check_lib_save_LIBS=$LIBS 13923LIBS="-l$bdb_libname $LIBS" 13924cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13925/* end confdefs.h. */ 13926 13927/* Override any GCC internal prototype to avoid an error. 13928 Use char because int might match the return type of a GCC 13929 builtin and then its argument prototype would still apply. */ 13930#ifdef __cplusplus 13931extern "C" 13932#endif 13933char db_open (); 13934int 13935main () 13936{ 13937return db_open (); 13938 ; 13939 return 0; 13940} 13941_ACEOF 13942if ac_fn_c_try_link "$LINENO"; then : 13943 eval "$as_ac_Lib=yes" 13944else 13945 eval "$as_ac_Lib=no" 13946fi 13947rm -f core conftest.err conftest.$ac_objext \ 13948 conftest$ac_exeext conftest.$ac_ext 13949LIBS=$ac_check_lib_save_LIBS 13950fi 13951eval ac_res=\$$as_ac_Lib 13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13953$as_echo "$ac_res" >&6; } 13954if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 13955 result=yes 13956else 13957 result=no 13958 13959fi 13960 13961 fi 13962 13963else 13964 result="no" 13965fi 13966 13967 13968 13969 # If we found it, no need to search any more. 13970 if test "$result" = "yes"; then 13971 found="$bdb_place" 13972 break 13973 fi 13974 done 13975 test "$found" != "not" && break 13976 done 13977 test "$found" != "not" && break 13978 done 13979 13980 # Restore the original values of the flags we tweak. 13981 LDFLAGS="$apu_check_lib_save_ldflags" 13982 CPPFLAGS="$apu_check_lib_save_cppflags" 13983 13984 case "$found" in 13985 "not") 13986 apu_have_db=0 13987 ;; 13988 "std") 13989 apu_db_header=$bdb_header 13990 apu_db_lib=$bdb_libname 13991 apu_have_db=1 13992 ;; 13993 *":"*) 13994 header="`echo $found | sed -e 's/:.*$//'`" 13995 lib="`echo $found | sed -e 's/^.*://'`" 13996 13997 13998 if test "x$APRUTIL_INCLUDES" = "x"; then 13999 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 14000 APRUTIL_INCLUDES="-I$header" 14001 else 14002 apr_addto_bugger="-I$header" 14003 for i in $apr_addto_bugger; do 14004 apr_addto_duplicate="0" 14005 for j in $APRUTIL_INCLUDES; do 14006 if test "x$i" = "x$j"; then 14007 apr_addto_duplicate="1" 14008 break 14009 fi 14010 done 14011 if test $apr_addto_duplicate = "0"; then 14012 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 14013 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 14014 fi 14015 done 14016 fi 14017 14018 14019 if test "x$APRUTIL_LDFLAGS" = "x"; then 14020 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 14021 APRUTIL_LDFLAGS="-L$lib" 14022 else 14023 apr_addto_bugger="-L$lib" 14024 for i in $apr_addto_bugger; do 14025 apr_addto_duplicate="0" 14026 for j in $APRUTIL_LDFLAGS; do 14027 if test "x$i" = "x$j"; then 14028 apr_addto_duplicate="1" 14029 break 14030 fi 14031 done 14032 if test $apr_addto_duplicate = "0"; then 14033 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 14034 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 14035 fi 14036 done 14037 fi 14038 14039 apu_db_header=$bdb_header 14040 apu_db_lib=$bdb_libname 14041 apu_have_db=1 14042 ;; 14043 *) 14044 14045 if test "x$APRUTIL_INCLUDES" = "x"; then 14046 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 14047 APRUTIL_INCLUDES="-I$found/include" 14048 else 14049 apr_addto_bugger="-I$found/include" 14050 for i in $apr_addto_bugger; do 14051 apr_addto_duplicate="0" 14052 for j in $APRUTIL_INCLUDES; do 14053 if test "x$i" = "x$j"; then 14054 apr_addto_duplicate="1" 14055 break 14056 fi 14057 done 14058 if test $apr_addto_duplicate = "0"; then 14059 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 14060 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 14061 fi 14062 done 14063 fi 14064 14065 14066 if test "x$APRUTIL_LDFLAGS" = "x"; then 14067 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 14068 APRUTIL_LDFLAGS="-L$found/lib" 14069 else 14070 apr_addto_bugger="-L$found/lib" 14071 for i in $apr_addto_bugger; do 14072 apr_addto_duplicate="0" 14073 for j in $APRUTIL_LDFLAGS; do 14074 if test "x$i" = "x$j"; then 14075 apr_addto_duplicate="1" 14076 break 14077 fi 14078 done 14079 if test $apr_addto_duplicate = "0"; then 14080 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 14081 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 14082 fi 14083 done 14084 fi 14085 14086 apu_db_header=$bdb_header 14087 apu_db_lib=$bdb_libname 14088 apu_have_db=1 14089 ;; 14090 esac 14091 14092 if test "$apu_have_db" = "1"; then 14093 apu_db_version=185 14094 fi 14095 14096 fi 14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB" >&5 14098$as_echo_n "checking for Berkeley DB... " >&6; } 14099 if test "$apu_have_db" = "1"; then 14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found db$apu_db_version" >&5 14101$as_echo "found db$apu_db_version" >&6; } 14102 else 14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14104$as_echo "not found" >&6; } 14105 fi 14106 14107 if test "$apu_have_db" = "0"; then 14108 as_fn_error but not found "Berkeley db requested" "$LINENO" 5 14109 fi 14110 ;; 14111 db1) 14112 14113 places="$check_places" 14114 if test -z "$places"; then 14115 places="std" 14116 fi 14117 14118 bdb_version=1 14119 if test "0" != "-1"; then 14120 bdb_version="$bdb_version.0" 14121 if test "0" != "-1"; then 14122 bdb_version="$bdb_version.0" 14123 fi 14124 fi 14125 bdb_places="$places" 14126 bdb_default_search_headers="db1/db.h db.h" 14127 bdb_default_search_lib_names="db1" 14128 14129 14130 apu_have_db=0 14131 14132 # Save the original values of the flags we tweak. 14133 apu_check_lib_save_libs="$LIBS" 14134 apu_check_lib_save_ldflags="$LDFLAGS" 14135 apu_check_lib_save_cppflags="$CPPFLAGS" 14136 14137 # The variable `found' is the prefix under which we've found 14138 # Berkeley DB, or `not' if we haven't found it anywhere yet. 14139 found=not 14140 for bdb_place in $bdb_places; do 14141 14142 LDFLAGS="$apu_check_lib_save_ldflags" 14143 CPPFLAGS="$apu_check_lib_save_cppflags" 14144 case "$bdb_place" in 14145 "std" ) 14146 description="the standard places" 14147 ;; 14148 *":"* ) 14149 header="`echo $bdb_place | sed -e 's/:.*$//'`" 14150 lib="`echo $bdb_place | sed -e 's/^.*://'`" 14151 CPPFLAGS="$CPPFLAGS -I$header" 14152 LDFLAGS="$LDFLAGS -L$lib" 14153 description="$header and $lib" 14154 ;; 14155 * ) 14156 if test -d $bdb_place; then 14157 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 14158 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 14159 else 14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 14161$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 14163$as_echo "directory not found" >&6; } 14164 continue 14165 fi 14166 description="$bdb_place" 14167 ;; 14168 esac 14169 14170 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 14171 # trick to display a message instead. 14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 14173$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 14175$as_echo "" >&6; } 14176 14177 for bdb_libname in $bdb_default_search_lib_names; do 14178 for bdb_header in $bdb_default_search_headers; do 14179 # Clear the header cache variable for each location 14180 14181 cache_id="`echo ac_cv_header_${bdb_header} \ 14182 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 14183 14184 unset $cache_id 14185 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 14186ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 14187if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14188
| 13793 # We generate a separate cache variable for each prefix and libname 13794 # we search under. That way, we avoid caching information that 13795 # changes if the user runs `configure' with a different set of 13796 # switches. 13797 13798 cache_id="`echo apu_cv_check_berkeley_db_1_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 13799 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 13800 13801 13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 13803$as_echo_n "checking for -l$bdb_libname... " >&6; } 13804 if eval \${$cache_id+:} false; then : 13805 $as_echo_n "(cached) " >&6 13806else 13807 13808 13809 apu_try_berkeley_db_save_libs="$LIBS" 13810 13811 apu_check_berkeley_db_major=1 13812 apu_check_berkeley_db_minor=-1 13813 apu_check_berkeley_db_patch=-1 13814 apu_try_berkeley_db_header=$bdb_header 13815 apu_try_berkeley_db_libname=$bdb_libname 13816 13817 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 13818 if test "$cross_compiling" = yes; then : 13819 apu_try_berkeley_db=yes 13820 13821else 13822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13823/* end confdefs.h. */ 13824 13825#include <stdlib.h> 13826#include <stdio.h> 13827#include <$apu_try_berkeley_db_header> 13828main () 13829{ 13830 int major, minor, patch; 13831 13832 db_version(&major, &minor, &patch); 13833 13834 /* Sanity check: ensure that db.h constants actually match the db library */ 13835 if (major != DB_VERSION_MAJOR 13836 || minor != DB_VERSION_MINOR 13837 || patch != DB_VERSION_PATCH) 13838 exit (1); 13839 13840 /* Run-time check: ensure the library claims to be the correct version. */ 13841 13842 if ($apu_check_berkeley_db_major != -1) { 13843 if (major < $apu_check_berkeley_db_major) 13844 exit (1); 13845 if (major > $apu_check_berkeley_db_major) 13846 exit (0); 13847 } 13848 13849 if ($apu_check_berkeley_db_minor != -1) { 13850 if (minor < $apu_check_berkeley_db_minor) 13851 exit (1); 13852 if (minor > $apu_check_berkeley_db_minor) 13853 exit (0); 13854 } 13855 13856 if ($apu_check_berkeley_db_patch == -1 13857 || patch >= $apu_check_berkeley_db_patch) 13858 exit (0); 13859 else 13860 exit (1); 13861} 13862 13863_ACEOF 13864if ac_fn_c_try_run "$LINENO"; then : 13865 apu_try_berkeley_db=yes 13866else 13867 apu_try_berkeley_db=no 13868fi 13869rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13870 conftest.$ac_objext conftest.beam conftest.$ac_ext 13871fi 13872 13873 13874 LIBS="$apu_try_berkeley_db_save_libs" 13875 13876 13877 eval "$cache_id=$apu_try_berkeley_db" 13878 13879fi 13880 13881 result="`eval echo '$'$cache_id`" 13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 13883$as_echo "$result" >&6; } 13884 elif test "1" = "1"; then 13885 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 13886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 13887$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 13888if eval \${$as_ac_Lib+:} false; then : 13889 $as_echo_n "(cached) " >&6 13890else 13891 ac_check_lib_save_LIBS=$LIBS 13892LIBS="-l$bdb_libname $LIBS" 13893cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13894/* end confdefs.h. */ 13895 13896/* Override any GCC internal prototype to avoid an error. 13897 Use char because int might match the return type of a GCC 13898 builtin and then its argument prototype would still apply. */ 13899#ifdef __cplusplus 13900extern "C" 13901#endif 13902char dbopen (); 13903int 13904main () 13905{ 13906return dbopen (); 13907 ; 13908 return 0; 13909} 13910_ACEOF 13911if ac_fn_c_try_link "$LINENO"; then : 13912 eval "$as_ac_Lib=yes" 13913else 13914 eval "$as_ac_Lib=no" 13915fi 13916rm -f core conftest.err conftest.$ac_objext \ 13917 conftest$ac_exeext conftest.$ac_ext 13918LIBS=$ac_check_lib_save_LIBS 13919fi 13920eval ac_res=\$$as_ac_Lib 13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13922$as_echo "$ac_res" >&6; } 13923if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 13924 result=yes 13925else 13926 result=no 13927 13928fi 13929 13930 elif test "1" = "2"; then 13931 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 13932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 13933$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 13934if eval \${$as_ac_Lib+:} false; then : 13935 $as_echo_n "(cached) " >&6 13936else 13937 ac_check_lib_save_LIBS=$LIBS 13938LIBS="-l$bdb_libname $LIBS" 13939cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13940/* end confdefs.h. */ 13941 13942/* Override any GCC internal prototype to avoid an error. 13943 Use char because int might match the return type of a GCC 13944 builtin and then its argument prototype would still apply. */ 13945#ifdef __cplusplus 13946extern "C" 13947#endif 13948char db_open (); 13949int 13950main () 13951{ 13952return db_open (); 13953 ; 13954 return 0; 13955} 13956_ACEOF 13957if ac_fn_c_try_link "$LINENO"; then : 13958 eval "$as_ac_Lib=yes" 13959else 13960 eval "$as_ac_Lib=no" 13961fi 13962rm -f core conftest.err conftest.$ac_objext \ 13963 conftest$ac_exeext conftest.$ac_ext 13964LIBS=$ac_check_lib_save_LIBS 13965fi 13966eval ac_res=\$$as_ac_Lib 13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13968$as_echo "$ac_res" >&6; } 13969if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 13970 result=yes 13971else 13972 result=no 13973 13974fi 13975 13976 fi 13977 13978else 13979 result="no" 13980fi 13981 13982 13983 13984 # If we found it, no need to search any more. 13985 if test "$result" = "yes"; then 13986 found="$bdb_place" 13987 break 13988 fi 13989 done 13990 test "$found" != "not" && break 13991 done 13992 test "$found" != "not" && break 13993 done 13994 13995 # Restore the original values of the flags we tweak. 13996 LDFLAGS="$apu_check_lib_save_ldflags" 13997 CPPFLAGS="$apu_check_lib_save_cppflags" 13998 13999 case "$found" in 14000 "not") 14001 apu_have_db=0 14002 ;; 14003 "std") 14004 apu_db_header=$bdb_header 14005 apu_db_lib=$bdb_libname 14006 apu_have_db=1 14007 ;; 14008 *":"*) 14009 header="`echo $found | sed -e 's/:.*$//'`" 14010 lib="`echo $found | sed -e 's/^.*://'`" 14011 14012 14013 if test "x$APRUTIL_INCLUDES" = "x"; then 14014 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 14015 APRUTIL_INCLUDES="-I$header" 14016 else 14017 apr_addto_bugger="-I$header" 14018 for i in $apr_addto_bugger; do 14019 apr_addto_duplicate="0" 14020 for j in $APRUTIL_INCLUDES; do 14021 if test "x$i" = "x$j"; then 14022 apr_addto_duplicate="1" 14023 break 14024 fi 14025 done 14026 if test $apr_addto_duplicate = "0"; then 14027 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 14028 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 14029 fi 14030 done 14031 fi 14032 14033 14034 if test "x$APRUTIL_LDFLAGS" = "x"; then 14035 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 14036 APRUTIL_LDFLAGS="-L$lib" 14037 else 14038 apr_addto_bugger="-L$lib" 14039 for i in $apr_addto_bugger; do 14040 apr_addto_duplicate="0" 14041 for j in $APRUTIL_LDFLAGS; do 14042 if test "x$i" = "x$j"; then 14043 apr_addto_duplicate="1" 14044 break 14045 fi 14046 done 14047 if test $apr_addto_duplicate = "0"; then 14048 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 14049 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 14050 fi 14051 done 14052 fi 14053 14054 apu_db_header=$bdb_header 14055 apu_db_lib=$bdb_libname 14056 apu_have_db=1 14057 ;; 14058 *) 14059 14060 if test "x$APRUTIL_INCLUDES" = "x"; then 14061 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 14062 APRUTIL_INCLUDES="-I$found/include" 14063 else 14064 apr_addto_bugger="-I$found/include" 14065 for i in $apr_addto_bugger; do 14066 apr_addto_duplicate="0" 14067 for j in $APRUTIL_INCLUDES; do 14068 if test "x$i" = "x$j"; then 14069 apr_addto_duplicate="1" 14070 break 14071 fi 14072 done 14073 if test $apr_addto_duplicate = "0"; then 14074 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 14075 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 14076 fi 14077 done 14078 fi 14079 14080 14081 if test "x$APRUTIL_LDFLAGS" = "x"; then 14082 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 14083 APRUTIL_LDFLAGS="-L$found/lib" 14084 else 14085 apr_addto_bugger="-L$found/lib" 14086 for i in $apr_addto_bugger; do 14087 apr_addto_duplicate="0" 14088 for j in $APRUTIL_LDFLAGS; do 14089 if test "x$i" = "x$j"; then 14090 apr_addto_duplicate="1" 14091 break 14092 fi 14093 done 14094 if test $apr_addto_duplicate = "0"; then 14095 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 14096 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 14097 fi 14098 done 14099 fi 14100 14101 apu_db_header=$bdb_header 14102 apu_db_lib=$bdb_libname 14103 apu_have_db=1 14104 ;; 14105 esac 14106 14107 if test "$apu_have_db" = "1"; then 14108 apu_db_version=185 14109 fi 14110 14111 fi 14112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB" >&5 14113$as_echo_n "checking for Berkeley DB... " >&6; } 14114 if test "$apu_have_db" = "1"; then 14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found db$apu_db_version" >&5 14116$as_echo "found db$apu_db_version" >&6; } 14117 else 14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14119$as_echo "not found" >&6; } 14120 fi 14121 14122 if test "$apu_have_db" = "0"; then 14123 as_fn_error but not found "Berkeley db requested" "$LINENO" 5 14124 fi 14125 ;; 14126 db1) 14127 14128 places="$check_places" 14129 if test -z "$places"; then 14130 places="std" 14131 fi 14132 14133 bdb_version=1 14134 if test "0" != "-1"; then 14135 bdb_version="$bdb_version.0" 14136 if test "0" != "-1"; then 14137 bdb_version="$bdb_version.0" 14138 fi 14139 fi 14140 bdb_places="$places" 14141 bdb_default_search_headers="db1/db.h db.h" 14142 bdb_default_search_lib_names="db1" 14143 14144 14145 apu_have_db=0 14146 14147 # Save the original values of the flags we tweak. 14148 apu_check_lib_save_libs="$LIBS" 14149 apu_check_lib_save_ldflags="$LDFLAGS" 14150 apu_check_lib_save_cppflags="$CPPFLAGS" 14151 14152 # The variable `found' is the prefix under which we've found 14153 # Berkeley DB, or `not' if we haven't found it anywhere yet. 14154 found=not 14155 for bdb_place in $bdb_places; do 14156 14157 LDFLAGS="$apu_check_lib_save_ldflags" 14158 CPPFLAGS="$apu_check_lib_save_cppflags" 14159 case "$bdb_place" in 14160 "std" ) 14161 description="the standard places" 14162 ;; 14163 *":"* ) 14164 header="`echo $bdb_place | sed -e 's/:.*$//'`" 14165 lib="`echo $bdb_place | sed -e 's/^.*://'`" 14166 CPPFLAGS="$CPPFLAGS -I$header" 14167 LDFLAGS="$LDFLAGS -L$lib" 14168 description="$header and $lib" 14169 ;; 14170 * ) 14171 if test -d $bdb_place; then 14172 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 14173 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 14174 else 14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 14176$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 14178$as_echo "directory not found" >&6; } 14179 continue 14180 fi 14181 description="$bdb_place" 14182 ;; 14183 esac 14184 14185 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 14186 # trick to display a message instead. 14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 14188$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 14190$as_echo "" >&6; } 14191 14192 for bdb_libname in $bdb_default_search_lib_names; do 14193 for bdb_header in $bdb_default_search_headers; do 14194 # Clear the header cache variable for each location 14195 14196 cache_id="`echo ac_cv_header_${bdb_header} \ 14197 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 14198 14199 unset $cache_id 14200 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 14201ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 14202if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14203
|
14189 if test "1" = "3" -o "1" = "4" -o "1" = "5"; then
| 14204 if test "1" = "3" -o "1" = "4" -o "1" = "5" -o "1" = "6"; then
|
14190 # We generate a separate cache variable for each prefix and libname 14191 # we search under. That way, we avoid caching information that 14192 # changes if the user runs `configure' with a different set of 14193 # switches. 14194 14195 cache_id="`echo apu_cv_check_berkeley_db_1_0_0_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 14196 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 14197 14198 14199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 14200$as_echo_n "checking for -l$bdb_libname... " >&6; } 14201 if eval \${$cache_id+:} false; then : 14202 $as_echo_n "(cached) " >&6 14203else 14204 14205 14206 apu_try_berkeley_db_save_libs="$LIBS" 14207 14208 apu_check_berkeley_db_major=1 14209 apu_check_berkeley_db_minor=0 14210 apu_check_berkeley_db_patch=0 14211 apu_try_berkeley_db_header=$bdb_header 14212 apu_try_berkeley_db_libname=$bdb_libname 14213 14214 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 14215 if test "$cross_compiling" = yes; then : 14216 apu_try_berkeley_db=yes 14217 14218else 14219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14220/* end confdefs.h. */ 14221 14222#include <stdlib.h> 14223#include <stdio.h> 14224#include <$apu_try_berkeley_db_header> 14225main () 14226{ 14227 int major, minor, patch; 14228 14229 db_version(&major, &minor, &patch); 14230 14231 /* Sanity check: ensure that db.h constants actually match the db library */ 14232 if (major != DB_VERSION_MAJOR 14233 || minor != DB_VERSION_MINOR 14234 || patch != DB_VERSION_PATCH) 14235 exit (1); 14236 14237 /* Run-time check: ensure the library claims to be the correct version. */ 14238 14239 if ($apu_check_berkeley_db_major != -1) { 14240 if (major < $apu_check_berkeley_db_major) 14241 exit (1); 14242 if (major > $apu_check_berkeley_db_major) 14243 exit (0); 14244 } 14245 14246 if ($apu_check_berkeley_db_minor != -1) { 14247 if (minor < $apu_check_berkeley_db_minor) 14248 exit (1); 14249 if (minor > $apu_check_berkeley_db_minor) 14250 exit (0); 14251 } 14252 14253 if ($apu_check_berkeley_db_patch == -1 14254 || patch >= $apu_check_berkeley_db_patch) 14255 exit (0); 14256 else 14257 exit (1); 14258} 14259 14260_ACEOF 14261if ac_fn_c_try_run "$LINENO"; then : 14262 apu_try_berkeley_db=yes 14263else 14264 apu_try_berkeley_db=no 14265fi 14266rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14267 conftest.$ac_objext conftest.beam conftest.$ac_ext 14268fi 14269 14270 14271 LIBS="$apu_try_berkeley_db_save_libs" 14272 14273 14274 eval "$cache_id=$apu_try_berkeley_db" 14275 14276fi 14277 14278 result="`eval echo '$'$cache_id`" 14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 14280$as_echo "$result" >&6; } 14281 elif test "1" = "1"; then 14282 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 14283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 14284$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 14285if eval \${$as_ac_Lib+:} false; then : 14286 $as_echo_n "(cached) " >&6 14287else 14288 ac_check_lib_save_LIBS=$LIBS 14289LIBS="-l$bdb_libname $LIBS" 14290cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14291/* end confdefs.h. */ 14292 14293/* Override any GCC internal prototype to avoid an error. 14294 Use char because int might match the return type of a GCC 14295 builtin and then its argument prototype would still apply. */ 14296#ifdef __cplusplus 14297extern "C" 14298#endif 14299char dbopen (); 14300int 14301main () 14302{ 14303return dbopen (); 14304 ; 14305 return 0; 14306} 14307_ACEOF 14308if ac_fn_c_try_link "$LINENO"; then : 14309 eval "$as_ac_Lib=yes" 14310else 14311 eval "$as_ac_Lib=no" 14312fi 14313rm -f core conftest.err conftest.$ac_objext \ 14314 conftest$ac_exeext conftest.$ac_ext 14315LIBS=$ac_check_lib_save_LIBS 14316fi 14317eval ac_res=\$$as_ac_Lib 14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14319$as_echo "$ac_res" >&6; } 14320if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 14321 result=yes 14322else 14323 result=no 14324 14325fi 14326 14327 elif test "1" = "2"; then 14328 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 14329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 14330$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 14331if eval \${$as_ac_Lib+:} false; then : 14332 $as_echo_n "(cached) " >&6 14333else 14334 ac_check_lib_save_LIBS=$LIBS 14335LIBS="-l$bdb_libname $LIBS" 14336cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14337/* end confdefs.h. */ 14338 14339/* Override any GCC internal prototype to avoid an error. 14340 Use char because int might match the return type of a GCC 14341 builtin and then its argument prototype would still apply. */ 14342#ifdef __cplusplus 14343extern "C" 14344#endif 14345char db_open (); 14346int 14347main () 14348{ 14349return db_open (); 14350 ; 14351 return 0; 14352} 14353_ACEOF 14354if ac_fn_c_try_link "$LINENO"; then : 14355 eval "$as_ac_Lib=yes" 14356else 14357 eval "$as_ac_Lib=no" 14358fi 14359rm -f core conftest.err conftest.$ac_objext \ 14360 conftest$ac_exeext conftest.$ac_ext 14361LIBS=$ac_check_lib_save_LIBS 14362fi 14363eval ac_res=\$$as_ac_Lib 14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14365$as_echo "$ac_res" >&6; } 14366if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 14367 result=yes 14368else 14369 result=no 14370 14371fi 14372 14373 fi 14374 14375else 14376 result="no" 14377fi 14378 14379 14380 14381 # If we found it, no need to search any more. 14382 if test "$result" = "yes"; then 14383 found="$bdb_place" 14384 break 14385 fi 14386 done 14387 test "$found" != "not" && break 14388 done 14389 test "$found" != "not" && break 14390 done 14391 14392 # Restore the original values of the flags we tweak. 14393 LDFLAGS="$apu_check_lib_save_ldflags" 14394 CPPFLAGS="$apu_check_lib_save_cppflags" 14395 14396 case "$found" in 14397 "not") 14398 apu_have_db=0 14399 ;; 14400 "std") 14401 apu_db_header=$bdb_header 14402 apu_db_lib=$bdb_libname 14403 apu_have_db=1 14404 ;; 14405 *":"*) 14406 header="`echo $found | sed -e 's/:.*$//'`" 14407 lib="`echo $found | sed -e 's/^.*://'`" 14408 14409 14410 if test "x$APRUTIL_INCLUDES" = "x"; then 14411 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 14412 APRUTIL_INCLUDES="-I$header" 14413 else 14414 apr_addto_bugger="-I$header" 14415 for i in $apr_addto_bugger; do 14416 apr_addto_duplicate="0" 14417 for j in $APRUTIL_INCLUDES; do 14418 if test "x$i" = "x$j"; then 14419 apr_addto_duplicate="1" 14420 break 14421 fi 14422 done 14423 if test $apr_addto_duplicate = "0"; then 14424 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 14425 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 14426 fi 14427 done 14428 fi 14429 14430 14431 if test "x$APRUTIL_LDFLAGS" = "x"; then 14432 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 14433 APRUTIL_LDFLAGS="-L$lib" 14434 else 14435 apr_addto_bugger="-L$lib" 14436 for i in $apr_addto_bugger; do 14437 apr_addto_duplicate="0" 14438 for j in $APRUTIL_LDFLAGS; do 14439 if test "x$i" = "x$j"; then 14440 apr_addto_duplicate="1" 14441 break 14442 fi 14443 done 14444 if test $apr_addto_duplicate = "0"; then 14445 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 14446 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 14447 fi 14448 done 14449 fi 14450 14451 apu_db_header=$bdb_header 14452 apu_db_lib=$bdb_libname 14453 apu_have_db=1 14454 ;; 14455 *) 14456 14457 if test "x$APRUTIL_INCLUDES" = "x"; then 14458 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 14459 APRUTIL_INCLUDES="-I$found/include" 14460 else 14461 apr_addto_bugger="-I$found/include" 14462 for i in $apr_addto_bugger; do 14463 apr_addto_duplicate="0" 14464 for j in $APRUTIL_INCLUDES; do 14465 if test "x$i" = "x$j"; then 14466 apr_addto_duplicate="1" 14467 break 14468 fi 14469 done 14470 if test $apr_addto_duplicate = "0"; then 14471 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 14472 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 14473 fi 14474 done 14475 fi 14476 14477 14478 if test "x$APRUTIL_LDFLAGS" = "x"; then 14479 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 14480 APRUTIL_LDFLAGS="-L$found/lib" 14481 else 14482 apr_addto_bugger="-L$found/lib" 14483 for i in $apr_addto_bugger; do 14484 apr_addto_duplicate="0" 14485 for j in $APRUTIL_LDFLAGS; do 14486 if test "x$i" = "x$j"; then 14487 apr_addto_duplicate="1" 14488 break 14489 fi 14490 done 14491 if test $apr_addto_duplicate = "0"; then 14492 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 14493 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 14494 fi 14495 done 14496 fi 14497 14498 apu_db_header=$bdb_header 14499 apu_db_lib=$bdb_libname 14500 apu_have_db=1 14501 ;; 14502 esac 14503 14504 if test "$apu_have_db" = "1"; then 14505 apu_db_version=1 14506 fi 14507 14508 if test "$apu_db_version" != "1"; then 14509 as_fn_error $? "Berkeley db1 not found" "$LINENO" 5 14510 fi 14511 ;; 14512 db185) 14513 14514 places="$check_places" 14515 if test -z "$places"; then 14516 places="std" 14517 fi 14518 14519 bdb_version=1 14520 if test "-1" != "-1"; then 14521 bdb_version="$bdb_version.-1" 14522 if test "-1" != "-1"; then 14523 bdb_version="$bdb_version.-1" 14524 fi 14525 fi 14526 bdb_places="$places" 14527 bdb_default_search_headers="db_185.h" 14528 bdb_default_search_lib_names="db" 14529 14530 14531 apu_have_db=0 14532 14533 # Save the original values of the flags we tweak. 14534 apu_check_lib_save_libs="$LIBS" 14535 apu_check_lib_save_ldflags="$LDFLAGS" 14536 apu_check_lib_save_cppflags="$CPPFLAGS" 14537 14538 # The variable `found' is the prefix under which we've found 14539 # Berkeley DB, or `not' if we haven't found it anywhere yet. 14540 found=not 14541 for bdb_place in $bdb_places; do 14542 14543 LDFLAGS="$apu_check_lib_save_ldflags" 14544 CPPFLAGS="$apu_check_lib_save_cppflags" 14545 case "$bdb_place" in 14546 "std" ) 14547 description="the standard places" 14548 ;; 14549 *":"* ) 14550 header="`echo $bdb_place | sed -e 's/:.*$//'`" 14551 lib="`echo $bdb_place | sed -e 's/^.*://'`" 14552 CPPFLAGS="$CPPFLAGS -I$header" 14553 LDFLAGS="$LDFLAGS -L$lib" 14554 description="$header and $lib" 14555 ;; 14556 * ) 14557 if test -d $bdb_place; then 14558 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 14559 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 14560 else 14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 14562$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 14564$as_echo "directory not found" >&6; } 14565 continue 14566 fi 14567 description="$bdb_place" 14568 ;; 14569 esac 14570 14571 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 14572 # trick to display a message instead. 14573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 14574$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 14576$as_echo "" >&6; } 14577 14578 for bdb_libname in $bdb_default_search_lib_names; do 14579 for bdb_header in $bdb_default_search_headers; do 14580 # Clear the header cache variable for each location 14581 14582 cache_id="`echo ac_cv_header_${bdb_header} \ 14583 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 14584 14585 unset $cache_id 14586 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 14587ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 14588if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14589
| 14205 # We generate a separate cache variable for each prefix and libname 14206 # we search under. That way, we avoid caching information that 14207 # changes if the user runs `configure' with a different set of 14208 # switches. 14209 14210 cache_id="`echo apu_cv_check_berkeley_db_1_0_0_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 14211 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 14212 14213 14214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 14215$as_echo_n "checking for -l$bdb_libname... " >&6; } 14216 if eval \${$cache_id+:} false; then : 14217 $as_echo_n "(cached) " >&6 14218else 14219 14220 14221 apu_try_berkeley_db_save_libs="$LIBS" 14222 14223 apu_check_berkeley_db_major=1 14224 apu_check_berkeley_db_minor=0 14225 apu_check_berkeley_db_patch=0 14226 apu_try_berkeley_db_header=$bdb_header 14227 apu_try_berkeley_db_libname=$bdb_libname 14228 14229 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 14230 if test "$cross_compiling" = yes; then : 14231 apu_try_berkeley_db=yes 14232 14233else 14234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14235/* end confdefs.h. */ 14236 14237#include <stdlib.h> 14238#include <stdio.h> 14239#include <$apu_try_berkeley_db_header> 14240main () 14241{ 14242 int major, minor, patch; 14243 14244 db_version(&major, &minor, &patch); 14245 14246 /* Sanity check: ensure that db.h constants actually match the db library */ 14247 if (major != DB_VERSION_MAJOR 14248 || minor != DB_VERSION_MINOR 14249 || patch != DB_VERSION_PATCH) 14250 exit (1); 14251 14252 /* Run-time check: ensure the library claims to be the correct version. */ 14253 14254 if ($apu_check_berkeley_db_major != -1) { 14255 if (major < $apu_check_berkeley_db_major) 14256 exit (1); 14257 if (major > $apu_check_berkeley_db_major) 14258 exit (0); 14259 } 14260 14261 if ($apu_check_berkeley_db_minor != -1) { 14262 if (minor < $apu_check_berkeley_db_minor) 14263 exit (1); 14264 if (minor > $apu_check_berkeley_db_minor) 14265 exit (0); 14266 } 14267 14268 if ($apu_check_berkeley_db_patch == -1 14269 || patch >= $apu_check_berkeley_db_patch) 14270 exit (0); 14271 else 14272 exit (1); 14273} 14274 14275_ACEOF 14276if ac_fn_c_try_run "$LINENO"; then : 14277 apu_try_berkeley_db=yes 14278else 14279 apu_try_berkeley_db=no 14280fi 14281rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14282 conftest.$ac_objext conftest.beam conftest.$ac_ext 14283fi 14284 14285 14286 LIBS="$apu_try_berkeley_db_save_libs" 14287 14288 14289 eval "$cache_id=$apu_try_berkeley_db" 14290 14291fi 14292 14293 result="`eval echo '$'$cache_id`" 14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 14295$as_echo "$result" >&6; } 14296 elif test "1" = "1"; then 14297 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 14298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 14299$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 14300if eval \${$as_ac_Lib+:} false; then : 14301 $as_echo_n "(cached) " >&6 14302else 14303 ac_check_lib_save_LIBS=$LIBS 14304LIBS="-l$bdb_libname $LIBS" 14305cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14306/* end confdefs.h. */ 14307 14308/* Override any GCC internal prototype to avoid an error. 14309 Use char because int might match the return type of a GCC 14310 builtin and then its argument prototype would still apply. */ 14311#ifdef __cplusplus 14312extern "C" 14313#endif 14314char dbopen (); 14315int 14316main () 14317{ 14318return dbopen (); 14319 ; 14320 return 0; 14321} 14322_ACEOF 14323if ac_fn_c_try_link "$LINENO"; then : 14324 eval "$as_ac_Lib=yes" 14325else 14326 eval "$as_ac_Lib=no" 14327fi 14328rm -f core conftest.err conftest.$ac_objext \ 14329 conftest$ac_exeext conftest.$ac_ext 14330LIBS=$ac_check_lib_save_LIBS 14331fi 14332eval ac_res=\$$as_ac_Lib 14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14334$as_echo "$ac_res" >&6; } 14335if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 14336 result=yes 14337else 14338 result=no 14339 14340fi 14341 14342 elif test "1" = "2"; then 14343 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 14344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 14345$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 14346if eval \${$as_ac_Lib+:} false; then : 14347 $as_echo_n "(cached) " >&6 14348else 14349 ac_check_lib_save_LIBS=$LIBS 14350LIBS="-l$bdb_libname $LIBS" 14351cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14352/* end confdefs.h. */ 14353 14354/* Override any GCC internal prototype to avoid an error. 14355 Use char because int might match the return type of a GCC 14356 builtin and then its argument prototype would still apply. */ 14357#ifdef __cplusplus 14358extern "C" 14359#endif 14360char db_open (); 14361int 14362main () 14363{ 14364return db_open (); 14365 ; 14366 return 0; 14367} 14368_ACEOF 14369if ac_fn_c_try_link "$LINENO"; then : 14370 eval "$as_ac_Lib=yes" 14371else 14372 eval "$as_ac_Lib=no" 14373fi 14374rm -f core conftest.err conftest.$ac_objext \ 14375 conftest$ac_exeext conftest.$ac_ext 14376LIBS=$ac_check_lib_save_LIBS 14377fi 14378eval ac_res=\$$as_ac_Lib 14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14380$as_echo "$ac_res" >&6; } 14381if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 14382 result=yes 14383else 14384 result=no 14385 14386fi 14387 14388 fi 14389 14390else 14391 result="no" 14392fi 14393 14394 14395 14396 # If we found it, no need to search any more. 14397 if test "$result" = "yes"; then 14398 found="$bdb_place" 14399 break 14400 fi 14401 done 14402 test "$found" != "not" && break 14403 done 14404 test "$found" != "not" && break 14405 done 14406 14407 # Restore the original values of the flags we tweak. 14408 LDFLAGS="$apu_check_lib_save_ldflags" 14409 CPPFLAGS="$apu_check_lib_save_cppflags" 14410 14411 case "$found" in 14412 "not") 14413 apu_have_db=0 14414 ;; 14415 "std") 14416 apu_db_header=$bdb_header 14417 apu_db_lib=$bdb_libname 14418 apu_have_db=1 14419 ;; 14420 *":"*) 14421 header="`echo $found | sed -e 's/:.*$//'`" 14422 lib="`echo $found | sed -e 's/^.*://'`" 14423 14424 14425 if test "x$APRUTIL_INCLUDES" = "x"; then 14426 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 14427 APRUTIL_INCLUDES="-I$header" 14428 else 14429 apr_addto_bugger="-I$header" 14430 for i in $apr_addto_bugger; do 14431 apr_addto_duplicate="0" 14432 for j in $APRUTIL_INCLUDES; do 14433 if test "x$i" = "x$j"; then 14434 apr_addto_duplicate="1" 14435 break 14436 fi 14437 done 14438 if test $apr_addto_duplicate = "0"; then 14439 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 14440 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 14441 fi 14442 done 14443 fi 14444 14445 14446 if test "x$APRUTIL_LDFLAGS" = "x"; then 14447 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 14448 APRUTIL_LDFLAGS="-L$lib" 14449 else 14450 apr_addto_bugger="-L$lib" 14451 for i in $apr_addto_bugger; do 14452 apr_addto_duplicate="0" 14453 for j in $APRUTIL_LDFLAGS; do 14454 if test "x$i" = "x$j"; then 14455 apr_addto_duplicate="1" 14456 break 14457 fi 14458 done 14459 if test $apr_addto_duplicate = "0"; then 14460 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 14461 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 14462 fi 14463 done 14464 fi 14465 14466 apu_db_header=$bdb_header 14467 apu_db_lib=$bdb_libname 14468 apu_have_db=1 14469 ;; 14470 *) 14471 14472 if test "x$APRUTIL_INCLUDES" = "x"; then 14473 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 14474 APRUTIL_INCLUDES="-I$found/include" 14475 else 14476 apr_addto_bugger="-I$found/include" 14477 for i in $apr_addto_bugger; do 14478 apr_addto_duplicate="0" 14479 for j in $APRUTIL_INCLUDES; do 14480 if test "x$i" = "x$j"; then 14481 apr_addto_duplicate="1" 14482 break 14483 fi 14484 done 14485 if test $apr_addto_duplicate = "0"; then 14486 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 14487 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 14488 fi 14489 done 14490 fi 14491 14492 14493 if test "x$APRUTIL_LDFLAGS" = "x"; then 14494 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 14495 APRUTIL_LDFLAGS="-L$found/lib" 14496 else 14497 apr_addto_bugger="-L$found/lib" 14498 for i in $apr_addto_bugger; do 14499 apr_addto_duplicate="0" 14500 for j in $APRUTIL_LDFLAGS; do 14501 if test "x$i" = "x$j"; then 14502 apr_addto_duplicate="1" 14503 break 14504 fi 14505 done 14506 if test $apr_addto_duplicate = "0"; then 14507 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 14508 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 14509 fi 14510 done 14511 fi 14512 14513 apu_db_header=$bdb_header 14514 apu_db_lib=$bdb_libname 14515 apu_have_db=1 14516 ;; 14517 esac 14518 14519 if test "$apu_have_db" = "1"; then 14520 apu_db_version=1 14521 fi 14522 14523 if test "$apu_db_version" != "1"; then 14524 as_fn_error $? "Berkeley db1 not found" "$LINENO" 5 14525 fi 14526 ;; 14527 db185) 14528 14529 places="$check_places" 14530 if test -z "$places"; then 14531 places="std" 14532 fi 14533 14534 bdb_version=1 14535 if test "-1" != "-1"; then 14536 bdb_version="$bdb_version.-1" 14537 if test "-1" != "-1"; then 14538 bdb_version="$bdb_version.-1" 14539 fi 14540 fi 14541 bdb_places="$places" 14542 bdb_default_search_headers="db_185.h" 14543 bdb_default_search_lib_names="db" 14544 14545 14546 apu_have_db=0 14547 14548 # Save the original values of the flags we tweak. 14549 apu_check_lib_save_libs="$LIBS" 14550 apu_check_lib_save_ldflags="$LDFLAGS" 14551 apu_check_lib_save_cppflags="$CPPFLAGS" 14552 14553 # The variable `found' is the prefix under which we've found 14554 # Berkeley DB, or `not' if we haven't found it anywhere yet. 14555 found=not 14556 for bdb_place in $bdb_places; do 14557 14558 LDFLAGS="$apu_check_lib_save_ldflags" 14559 CPPFLAGS="$apu_check_lib_save_cppflags" 14560 case "$bdb_place" in 14561 "std" ) 14562 description="the standard places" 14563 ;; 14564 *":"* ) 14565 header="`echo $bdb_place | sed -e 's/:.*$//'`" 14566 lib="`echo $bdb_place | sed -e 's/^.*://'`" 14567 CPPFLAGS="$CPPFLAGS -I$header" 14568 LDFLAGS="$LDFLAGS -L$lib" 14569 description="$header and $lib" 14570 ;; 14571 * ) 14572 if test -d $bdb_place; then 14573 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 14574 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 14575 else 14576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 14577$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 14579$as_echo "directory not found" >&6; } 14580 continue 14581 fi 14582 description="$bdb_place" 14583 ;; 14584 esac 14585 14586 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 14587 # trick to display a message instead. 14588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 14589$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 14591$as_echo "" >&6; } 14592 14593 for bdb_libname in $bdb_default_search_lib_names; do 14594 for bdb_header in $bdb_default_search_headers; do 14595 # Clear the header cache variable for each location 14596 14597 cache_id="`echo ac_cv_header_${bdb_header} \ 14598 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 14599 14600 unset $cache_id 14601 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 14602ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 14603if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14604
|
14590 if test "1" = "3" -o "1" = "4" -o "1" = "5"; then
| 14605 if test "1" = "3" -o "1" = "4" -o "1" = "5" -o "1" = "6"; then
|
14591 # We generate a separate cache variable for each prefix and libname 14592 # we search under. That way, we avoid caching information that 14593 # changes if the user runs `configure' with a different set of 14594 # switches. 14595 14596 cache_id="`echo apu_cv_check_berkeley_db_1_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 14597 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 14598 14599 14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 14601$as_echo_n "checking for -l$bdb_libname... " >&6; } 14602 if eval \${$cache_id+:} false; then : 14603 $as_echo_n "(cached) " >&6 14604else 14605 14606 14607 apu_try_berkeley_db_save_libs="$LIBS" 14608 14609 apu_check_berkeley_db_major=1 14610 apu_check_berkeley_db_minor=-1 14611 apu_check_berkeley_db_patch=-1 14612 apu_try_berkeley_db_header=$bdb_header 14613 apu_try_berkeley_db_libname=$bdb_libname 14614 14615 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 14616 if test "$cross_compiling" = yes; then : 14617 apu_try_berkeley_db=yes 14618 14619else 14620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14621/* end confdefs.h. */ 14622 14623#include <stdlib.h> 14624#include <stdio.h> 14625#include <$apu_try_berkeley_db_header> 14626main () 14627{ 14628 int major, minor, patch; 14629 14630 db_version(&major, &minor, &patch); 14631 14632 /* Sanity check: ensure that db.h constants actually match the db library */ 14633 if (major != DB_VERSION_MAJOR 14634 || minor != DB_VERSION_MINOR 14635 || patch != DB_VERSION_PATCH) 14636 exit (1); 14637 14638 /* Run-time check: ensure the library claims to be the correct version. */ 14639 14640 if ($apu_check_berkeley_db_major != -1) { 14641 if (major < $apu_check_berkeley_db_major) 14642 exit (1); 14643 if (major > $apu_check_berkeley_db_major) 14644 exit (0); 14645 } 14646 14647 if ($apu_check_berkeley_db_minor != -1) { 14648 if (minor < $apu_check_berkeley_db_minor) 14649 exit (1); 14650 if (minor > $apu_check_berkeley_db_minor) 14651 exit (0); 14652 } 14653 14654 if ($apu_check_berkeley_db_patch == -1 14655 || patch >= $apu_check_berkeley_db_patch) 14656 exit (0); 14657 else 14658 exit (1); 14659} 14660 14661_ACEOF 14662if ac_fn_c_try_run "$LINENO"; then : 14663 apu_try_berkeley_db=yes 14664else 14665 apu_try_berkeley_db=no 14666fi 14667rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14668 conftest.$ac_objext conftest.beam conftest.$ac_ext 14669fi 14670 14671 14672 LIBS="$apu_try_berkeley_db_save_libs" 14673 14674 14675 eval "$cache_id=$apu_try_berkeley_db" 14676 14677fi 14678 14679 result="`eval echo '$'$cache_id`" 14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 14681$as_echo "$result" >&6; } 14682 elif test "1" = "1"; then 14683 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 14684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 14685$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 14686if eval \${$as_ac_Lib+:} false; then : 14687 $as_echo_n "(cached) " >&6 14688else 14689 ac_check_lib_save_LIBS=$LIBS 14690LIBS="-l$bdb_libname $LIBS" 14691cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14692/* end confdefs.h. */ 14693 14694/* Override any GCC internal prototype to avoid an error. 14695 Use char because int might match the return type of a GCC 14696 builtin and then its argument prototype would still apply. */ 14697#ifdef __cplusplus 14698extern "C" 14699#endif 14700char dbopen (); 14701int 14702main () 14703{ 14704return dbopen (); 14705 ; 14706 return 0; 14707} 14708_ACEOF 14709if ac_fn_c_try_link "$LINENO"; then : 14710 eval "$as_ac_Lib=yes" 14711else 14712 eval "$as_ac_Lib=no" 14713fi 14714rm -f core conftest.err conftest.$ac_objext \ 14715 conftest$ac_exeext conftest.$ac_ext 14716LIBS=$ac_check_lib_save_LIBS 14717fi 14718eval ac_res=\$$as_ac_Lib 14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14720$as_echo "$ac_res" >&6; } 14721if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 14722 result=yes 14723else 14724 result=no 14725 14726fi 14727 14728 elif test "1" = "2"; then 14729 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 14730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 14731$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 14732if eval \${$as_ac_Lib+:} false; then : 14733 $as_echo_n "(cached) " >&6 14734else 14735 ac_check_lib_save_LIBS=$LIBS 14736LIBS="-l$bdb_libname $LIBS" 14737cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14738/* end confdefs.h. */ 14739 14740/* Override any GCC internal prototype to avoid an error. 14741 Use char because int might match the return type of a GCC 14742 builtin and then its argument prototype would still apply. */ 14743#ifdef __cplusplus 14744extern "C" 14745#endif 14746char db_open (); 14747int 14748main () 14749{ 14750return db_open (); 14751 ; 14752 return 0; 14753} 14754_ACEOF 14755if ac_fn_c_try_link "$LINENO"; then : 14756 eval "$as_ac_Lib=yes" 14757else 14758 eval "$as_ac_Lib=no" 14759fi 14760rm -f core conftest.err conftest.$ac_objext \ 14761 conftest$ac_exeext conftest.$ac_ext 14762LIBS=$ac_check_lib_save_LIBS 14763fi 14764eval ac_res=\$$as_ac_Lib 14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14766$as_echo "$ac_res" >&6; } 14767if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 14768 result=yes 14769else 14770 result=no 14771 14772fi 14773 14774 fi 14775 14776else 14777 result="no" 14778fi 14779 14780 14781 14782 # If we found it, no need to search any more. 14783 if test "$result" = "yes"; then 14784 found="$bdb_place" 14785 break 14786 fi 14787 done 14788 test "$found" != "not" && break 14789 done 14790 test "$found" != "not" && break 14791 done 14792 14793 # Restore the original values of the flags we tweak. 14794 LDFLAGS="$apu_check_lib_save_ldflags" 14795 CPPFLAGS="$apu_check_lib_save_cppflags" 14796 14797 case "$found" in 14798 "not") 14799 apu_have_db=0 14800 ;; 14801 "std") 14802 apu_db_header=$bdb_header 14803 apu_db_lib=$bdb_libname 14804 apu_have_db=1 14805 ;; 14806 *":"*) 14807 header="`echo $found | sed -e 's/:.*$//'`" 14808 lib="`echo $found | sed -e 's/^.*://'`" 14809 14810 14811 if test "x$APRUTIL_INCLUDES" = "x"; then 14812 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 14813 APRUTIL_INCLUDES="-I$header" 14814 else 14815 apr_addto_bugger="-I$header" 14816 for i in $apr_addto_bugger; do 14817 apr_addto_duplicate="0" 14818 for j in $APRUTIL_INCLUDES; do 14819 if test "x$i" = "x$j"; then 14820 apr_addto_duplicate="1" 14821 break 14822 fi 14823 done 14824 if test $apr_addto_duplicate = "0"; then 14825 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 14826 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 14827 fi 14828 done 14829 fi 14830 14831 14832 if test "x$APRUTIL_LDFLAGS" = "x"; then 14833 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 14834 APRUTIL_LDFLAGS="-L$lib" 14835 else 14836 apr_addto_bugger="-L$lib" 14837 for i in $apr_addto_bugger; do 14838 apr_addto_duplicate="0" 14839 for j in $APRUTIL_LDFLAGS; do 14840 if test "x$i" = "x$j"; then 14841 apr_addto_duplicate="1" 14842 break 14843 fi 14844 done 14845 if test $apr_addto_duplicate = "0"; then 14846 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 14847 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 14848 fi 14849 done 14850 fi 14851 14852 apu_db_header=$bdb_header 14853 apu_db_lib=$bdb_libname 14854 apu_have_db=1 14855 ;; 14856 *) 14857 14858 if test "x$APRUTIL_INCLUDES" = "x"; then 14859 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 14860 APRUTIL_INCLUDES="-I$found/include" 14861 else 14862 apr_addto_bugger="-I$found/include" 14863 for i in $apr_addto_bugger; do 14864 apr_addto_duplicate="0" 14865 for j in $APRUTIL_INCLUDES; do 14866 if test "x$i" = "x$j"; then 14867 apr_addto_duplicate="1" 14868 break 14869 fi 14870 done 14871 if test $apr_addto_duplicate = "0"; then 14872 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 14873 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 14874 fi 14875 done 14876 fi 14877 14878 14879 if test "x$APRUTIL_LDFLAGS" = "x"; then 14880 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 14881 APRUTIL_LDFLAGS="-L$found/lib" 14882 else 14883 apr_addto_bugger="-L$found/lib" 14884 for i in $apr_addto_bugger; do 14885 apr_addto_duplicate="0" 14886 for j in $APRUTIL_LDFLAGS; do 14887 if test "x$i" = "x$j"; then 14888 apr_addto_duplicate="1" 14889 break 14890 fi 14891 done 14892 if test $apr_addto_duplicate = "0"; then 14893 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 14894 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 14895 fi 14896 done 14897 fi 14898 14899 apu_db_header=$bdb_header 14900 apu_db_lib=$bdb_libname 14901 apu_have_db=1 14902 ;; 14903 esac 14904 14905 if test "$apu_have_db" = "1"; then 14906 apu_db_version=185 14907 fi 14908 14909 if test "$apu_db_version" != "185"; then 14910 as_fn_error $? "Berkeley db185 not found" "$LINENO" 5 14911 fi 14912 ;; 14913 db2) 14914 14915 places="$check_places" 14916 if test -z "$places"; then 14917 places="std" 14918 fi 14919 14920 bdb_version=2 14921 if test "-1" != "-1"; then 14922 bdb_version="$bdb_version.-1" 14923 if test "-1" != "-1"; then 14924 bdb_version="$bdb_version.-1" 14925 fi 14926 fi 14927 bdb_places="$places" 14928 bdb_default_search_headers="db2/db.h db.h" 14929 bdb_default_search_lib_names="db2 db" 14930 14931 14932 apu_have_db=0 14933 14934 # Save the original values of the flags we tweak. 14935 apu_check_lib_save_libs="$LIBS" 14936 apu_check_lib_save_ldflags="$LDFLAGS" 14937 apu_check_lib_save_cppflags="$CPPFLAGS" 14938 14939 # The variable `found' is the prefix under which we've found 14940 # Berkeley DB, or `not' if we haven't found it anywhere yet. 14941 found=not 14942 for bdb_place in $bdb_places; do 14943 14944 LDFLAGS="$apu_check_lib_save_ldflags" 14945 CPPFLAGS="$apu_check_lib_save_cppflags" 14946 case "$bdb_place" in 14947 "std" ) 14948 description="the standard places" 14949 ;; 14950 *":"* ) 14951 header="`echo $bdb_place | sed -e 's/:.*$//'`" 14952 lib="`echo $bdb_place | sed -e 's/^.*://'`" 14953 CPPFLAGS="$CPPFLAGS -I$header" 14954 LDFLAGS="$LDFLAGS -L$lib" 14955 description="$header and $lib" 14956 ;; 14957 * ) 14958 if test -d $bdb_place; then 14959 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 14960 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 14961 else 14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 14963$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 14964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 14965$as_echo "directory not found" >&6; } 14966 continue 14967 fi 14968 description="$bdb_place" 14969 ;; 14970 esac 14971 14972 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 14973 # trick to display a message instead. 14974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 14975$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 14977$as_echo "" >&6; } 14978 14979 for bdb_libname in $bdb_default_search_lib_names; do 14980 for bdb_header in $bdb_default_search_headers; do 14981 # Clear the header cache variable for each location 14982 14983 cache_id="`echo ac_cv_header_${bdb_header} \ 14984 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 14985 14986 unset $cache_id 14987 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 14988ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 14989if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14990
| 14606 # We generate a separate cache variable for each prefix and libname 14607 # we search under. That way, we avoid caching information that 14608 # changes if the user runs `configure' with a different set of 14609 # switches. 14610 14611 cache_id="`echo apu_cv_check_berkeley_db_1_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 14612 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 14613 14614 14615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 14616$as_echo_n "checking for -l$bdb_libname... " >&6; } 14617 if eval \${$cache_id+:} false; then : 14618 $as_echo_n "(cached) " >&6 14619else 14620 14621 14622 apu_try_berkeley_db_save_libs="$LIBS" 14623 14624 apu_check_berkeley_db_major=1 14625 apu_check_berkeley_db_minor=-1 14626 apu_check_berkeley_db_patch=-1 14627 apu_try_berkeley_db_header=$bdb_header 14628 apu_try_berkeley_db_libname=$bdb_libname 14629 14630 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 14631 if test "$cross_compiling" = yes; then : 14632 apu_try_berkeley_db=yes 14633 14634else 14635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14636/* end confdefs.h. */ 14637 14638#include <stdlib.h> 14639#include <stdio.h> 14640#include <$apu_try_berkeley_db_header> 14641main () 14642{ 14643 int major, minor, patch; 14644 14645 db_version(&major, &minor, &patch); 14646 14647 /* Sanity check: ensure that db.h constants actually match the db library */ 14648 if (major != DB_VERSION_MAJOR 14649 || minor != DB_VERSION_MINOR 14650 || patch != DB_VERSION_PATCH) 14651 exit (1); 14652 14653 /* Run-time check: ensure the library claims to be the correct version. */ 14654 14655 if ($apu_check_berkeley_db_major != -1) { 14656 if (major < $apu_check_berkeley_db_major) 14657 exit (1); 14658 if (major > $apu_check_berkeley_db_major) 14659 exit (0); 14660 } 14661 14662 if ($apu_check_berkeley_db_minor != -1) { 14663 if (minor < $apu_check_berkeley_db_minor) 14664 exit (1); 14665 if (minor > $apu_check_berkeley_db_minor) 14666 exit (0); 14667 } 14668 14669 if ($apu_check_berkeley_db_patch == -1 14670 || patch >= $apu_check_berkeley_db_patch) 14671 exit (0); 14672 else 14673 exit (1); 14674} 14675 14676_ACEOF 14677if ac_fn_c_try_run "$LINENO"; then : 14678 apu_try_berkeley_db=yes 14679else 14680 apu_try_berkeley_db=no 14681fi 14682rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14683 conftest.$ac_objext conftest.beam conftest.$ac_ext 14684fi 14685 14686 14687 LIBS="$apu_try_berkeley_db_save_libs" 14688 14689 14690 eval "$cache_id=$apu_try_berkeley_db" 14691 14692fi 14693 14694 result="`eval echo '$'$cache_id`" 14695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 14696$as_echo "$result" >&6; } 14697 elif test "1" = "1"; then 14698 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 14699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 14700$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 14701if eval \${$as_ac_Lib+:} false; then : 14702 $as_echo_n "(cached) " >&6 14703else 14704 ac_check_lib_save_LIBS=$LIBS 14705LIBS="-l$bdb_libname $LIBS" 14706cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14707/* end confdefs.h. */ 14708 14709/* Override any GCC internal prototype to avoid an error. 14710 Use char because int might match the return type of a GCC 14711 builtin and then its argument prototype would still apply. */ 14712#ifdef __cplusplus 14713extern "C" 14714#endif 14715char dbopen (); 14716int 14717main () 14718{ 14719return dbopen (); 14720 ; 14721 return 0; 14722} 14723_ACEOF 14724if ac_fn_c_try_link "$LINENO"; then : 14725 eval "$as_ac_Lib=yes" 14726else 14727 eval "$as_ac_Lib=no" 14728fi 14729rm -f core conftest.err conftest.$ac_objext \ 14730 conftest$ac_exeext conftest.$ac_ext 14731LIBS=$ac_check_lib_save_LIBS 14732fi 14733eval ac_res=\$$as_ac_Lib 14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14735$as_echo "$ac_res" >&6; } 14736if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 14737 result=yes 14738else 14739 result=no 14740 14741fi 14742 14743 elif test "1" = "2"; then 14744 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 14745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 14746$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 14747if eval \${$as_ac_Lib+:} false; then : 14748 $as_echo_n "(cached) " >&6 14749else 14750 ac_check_lib_save_LIBS=$LIBS 14751LIBS="-l$bdb_libname $LIBS" 14752cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14753/* end confdefs.h. */ 14754 14755/* Override any GCC internal prototype to avoid an error. 14756 Use char because int might match the return type of a GCC 14757 builtin and then its argument prototype would still apply. */ 14758#ifdef __cplusplus 14759extern "C" 14760#endif 14761char db_open (); 14762int 14763main () 14764{ 14765return db_open (); 14766 ; 14767 return 0; 14768} 14769_ACEOF 14770if ac_fn_c_try_link "$LINENO"; then : 14771 eval "$as_ac_Lib=yes" 14772else 14773 eval "$as_ac_Lib=no" 14774fi 14775rm -f core conftest.err conftest.$ac_objext \ 14776 conftest$ac_exeext conftest.$ac_ext 14777LIBS=$ac_check_lib_save_LIBS 14778fi 14779eval ac_res=\$$as_ac_Lib 14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14781$as_echo "$ac_res" >&6; } 14782if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 14783 result=yes 14784else 14785 result=no 14786 14787fi 14788 14789 fi 14790 14791else 14792 result="no" 14793fi 14794 14795 14796 14797 # If we found it, no need to search any more. 14798 if test "$result" = "yes"; then 14799 found="$bdb_place" 14800 break 14801 fi 14802 done 14803 test "$found" != "not" && break 14804 done 14805 test "$found" != "not" && break 14806 done 14807 14808 # Restore the original values of the flags we tweak. 14809 LDFLAGS="$apu_check_lib_save_ldflags" 14810 CPPFLAGS="$apu_check_lib_save_cppflags" 14811 14812 case "$found" in 14813 "not") 14814 apu_have_db=0 14815 ;; 14816 "std") 14817 apu_db_header=$bdb_header 14818 apu_db_lib=$bdb_libname 14819 apu_have_db=1 14820 ;; 14821 *":"*) 14822 header="`echo $found | sed -e 's/:.*$//'`" 14823 lib="`echo $found | sed -e 's/^.*://'`" 14824 14825 14826 if test "x$APRUTIL_INCLUDES" = "x"; then 14827 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 14828 APRUTIL_INCLUDES="-I$header" 14829 else 14830 apr_addto_bugger="-I$header" 14831 for i in $apr_addto_bugger; do 14832 apr_addto_duplicate="0" 14833 for j in $APRUTIL_INCLUDES; do 14834 if test "x$i" = "x$j"; then 14835 apr_addto_duplicate="1" 14836 break 14837 fi 14838 done 14839 if test $apr_addto_duplicate = "0"; then 14840 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 14841 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 14842 fi 14843 done 14844 fi 14845 14846 14847 if test "x$APRUTIL_LDFLAGS" = "x"; then 14848 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 14849 APRUTIL_LDFLAGS="-L$lib" 14850 else 14851 apr_addto_bugger="-L$lib" 14852 for i in $apr_addto_bugger; do 14853 apr_addto_duplicate="0" 14854 for j in $APRUTIL_LDFLAGS; do 14855 if test "x$i" = "x$j"; then 14856 apr_addto_duplicate="1" 14857 break 14858 fi 14859 done 14860 if test $apr_addto_duplicate = "0"; then 14861 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 14862 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 14863 fi 14864 done 14865 fi 14866 14867 apu_db_header=$bdb_header 14868 apu_db_lib=$bdb_libname 14869 apu_have_db=1 14870 ;; 14871 *) 14872 14873 if test "x$APRUTIL_INCLUDES" = "x"; then 14874 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 14875 APRUTIL_INCLUDES="-I$found/include" 14876 else 14877 apr_addto_bugger="-I$found/include" 14878 for i in $apr_addto_bugger; do 14879 apr_addto_duplicate="0" 14880 for j in $APRUTIL_INCLUDES; do 14881 if test "x$i" = "x$j"; then 14882 apr_addto_duplicate="1" 14883 break 14884 fi 14885 done 14886 if test $apr_addto_duplicate = "0"; then 14887 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 14888 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 14889 fi 14890 done 14891 fi 14892 14893 14894 if test "x$APRUTIL_LDFLAGS" = "x"; then 14895 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 14896 APRUTIL_LDFLAGS="-L$found/lib" 14897 else 14898 apr_addto_bugger="-L$found/lib" 14899 for i in $apr_addto_bugger; do 14900 apr_addto_duplicate="0" 14901 for j in $APRUTIL_LDFLAGS; do 14902 if test "x$i" = "x$j"; then 14903 apr_addto_duplicate="1" 14904 break 14905 fi 14906 done 14907 if test $apr_addto_duplicate = "0"; then 14908 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 14909 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 14910 fi 14911 done 14912 fi 14913 14914 apu_db_header=$bdb_header 14915 apu_db_lib=$bdb_libname 14916 apu_have_db=1 14917 ;; 14918 esac 14919 14920 if test "$apu_have_db" = "1"; then 14921 apu_db_version=185 14922 fi 14923 14924 if test "$apu_db_version" != "185"; then 14925 as_fn_error $? "Berkeley db185 not found" "$LINENO" 5 14926 fi 14927 ;; 14928 db2) 14929 14930 places="$check_places" 14931 if test -z "$places"; then 14932 places="std" 14933 fi 14934 14935 bdb_version=2 14936 if test "-1" != "-1"; then 14937 bdb_version="$bdb_version.-1" 14938 if test "-1" != "-1"; then 14939 bdb_version="$bdb_version.-1" 14940 fi 14941 fi 14942 bdb_places="$places" 14943 bdb_default_search_headers="db2/db.h db.h" 14944 bdb_default_search_lib_names="db2 db" 14945 14946 14947 apu_have_db=0 14948 14949 # Save the original values of the flags we tweak. 14950 apu_check_lib_save_libs="$LIBS" 14951 apu_check_lib_save_ldflags="$LDFLAGS" 14952 apu_check_lib_save_cppflags="$CPPFLAGS" 14953 14954 # The variable `found' is the prefix under which we've found 14955 # Berkeley DB, or `not' if we haven't found it anywhere yet. 14956 found=not 14957 for bdb_place in $bdb_places; do 14958 14959 LDFLAGS="$apu_check_lib_save_ldflags" 14960 CPPFLAGS="$apu_check_lib_save_cppflags" 14961 case "$bdb_place" in 14962 "std" ) 14963 description="the standard places" 14964 ;; 14965 *":"* ) 14966 header="`echo $bdb_place | sed -e 's/:.*$//'`" 14967 lib="`echo $bdb_place | sed -e 's/^.*://'`" 14968 CPPFLAGS="$CPPFLAGS -I$header" 14969 LDFLAGS="$LDFLAGS -L$lib" 14970 description="$header and $lib" 14971 ;; 14972 * ) 14973 if test -d $bdb_place; then 14974 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 14975 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 14976 else 14977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 14978$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 14980$as_echo "directory not found" >&6; } 14981 continue 14982 fi 14983 description="$bdb_place" 14984 ;; 14985 esac 14986 14987 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 14988 # trick to display a message instead. 14989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 14990$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 14992$as_echo "" >&6; } 14993 14994 for bdb_libname in $bdb_default_search_lib_names; do 14995 for bdb_header in $bdb_default_search_headers; do 14996 # Clear the header cache variable for each location 14997 14998 cache_id="`echo ac_cv_header_${bdb_header} \ 14999 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 15000 15001 unset $cache_id 15002 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 15003ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 15004if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15005
|
14991 if test "2" = "3" -o "2" = "4" -o "2" = "5"; then
| 15006 if test "2" = "3" -o "2" = "4" -o "2" = "5" -o "2" = "6"; then
|
14992 # We generate a separate cache variable for each prefix and libname 14993 # we search under. That way, we avoid caching information that 14994 # changes if the user runs `configure' with a different set of 14995 # switches. 14996 14997 cache_id="`echo apu_cv_check_berkeley_db_2_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 14998 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 14999 15000 15001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 15002$as_echo_n "checking for -l$bdb_libname... " >&6; } 15003 if eval \${$cache_id+:} false; then : 15004 $as_echo_n "(cached) " >&6 15005else 15006 15007 15008 apu_try_berkeley_db_save_libs="$LIBS" 15009 15010 apu_check_berkeley_db_major=2 15011 apu_check_berkeley_db_minor=-1 15012 apu_check_berkeley_db_patch=-1 15013 apu_try_berkeley_db_header=$bdb_header 15014 apu_try_berkeley_db_libname=$bdb_libname 15015 15016 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 15017 if test "$cross_compiling" = yes; then : 15018 apu_try_berkeley_db=yes 15019 15020else 15021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15022/* end confdefs.h. */ 15023 15024#include <stdlib.h> 15025#include <stdio.h> 15026#include <$apu_try_berkeley_db_header> 15027main () 15028{ 15029 int major, minor, patch; 15030 15031 db_version(&major, &minor, &patch); 15032 15033 /* Sanity check: ensure that db.h constants actually match the db library */ 15034 if (major != DB_VERSION_MAJOR 15035 || minor != DB_VERSION_MINOR 15036 || patch != DB_VERSION_PATCH) 15037 exit (1); 15038 15039 /* Run-time check: ensure the library claims to be the correct version. */ 15040 15041 if ($apu_check_berkeley_db_major != -1) { 15042 if (major < $apu_check_berkeley_db_major) 15043 exit (1); 15044 if (major > $apu_check_berkeley_db_major) 15045 exit (0); 15046 } 15047 15048 if ($apu_check_berkeley_db_minor != -1) { 15049 if (minor < $apu_check_berkeley_db_minor) 15050 exit (1); 15051 if (minor > $apu_check_berkeley_db_minor) 15052 exit (0); 15053 } 15054 15055 if ($apu_check_berkeley_db_patch == -1 15056 || patch >= $apu_check_berkeley_db_patch) 15057 exit (0); 15058 else 15059 exit (1); 15060} 15061 15062_ACEOF 15063if ac_fn_c_try_run "$LINENO"; then : 15064 apu_try_berkeley_db=yes 15065else 15066 apu_try_berkeley_db=no 15067fi 15068rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15069 conftest.$ac_objext conftest.beam conftest.$ac_ext 15070fi 15071 15072 15073 LIBS="$apu_try_berkeley_db_save_libs" 15074 15075 15076 eval "$cache_id=$apu_try_berkeley_db" 15077 15078fi 15079 15080 result="`eval echo '$'$cache_id`" 15081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 15082$as_echo "$result" >&6; } 15083 elif test "2" = "1"; then 15084 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 15085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 15086$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 15087if eval \${$as_ac_Lib+:} false; then : 15088 $as_echo_n "(cached) " >&6 15089else 15090 ac_check_lib_save_LIBS=$LIBS 15091LIBS="-l$bdb_libname $LIBS" 15092cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15093/* end confdefs.h. */ 15094 15095/* Override any GCC internal prototype to avoid an error. 15096 Use char because int might match the return type of a GCC 15097 builtin and then its argument prototype would still apply. */ 15098#ifdef __cplusplus 15099extern "C" 15100#endif 15101char dbopen (); 15102int 15103main () 15104{ 15105return dbopen (); 15106 ; 15107 return 0; 15108} 15109_ACEOF 15110if ac_fn_c_try_link "$LINENO"; then : 15111 eval "$as_ac_Lib=yes" 15112else 15113 eval "$as_ac_Lib=no" 15114fi 15115rm -f core conftest.err conftest.$ac_objext \ 15116 conftest$ac_exeext conftest.$ac_ext 15117LIBS=$ac_check_lib_save_LIBS 15118fi 15119eval ac_res=\$$as_ac_Lib 15120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15121$as_echo "$ac_res" >&6; } 15122if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 15123 result=yes 15124else 15125 result=no 15126 15127fi 15128 15129 elif test "2" = "2"; then 15130 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 15131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 15132$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 15133if eval \${$as_ac_Lib+:} false; then : 15134 $as_echo_n "(cached) " >&6 15135else 15136 ac_check_lib_save_LIBS=$LIBS 15137LIBS="-l$bdb_libname $LIBS" 15138cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15139/* end confdefs.h. */ 15140 15141/* Override any GCC internal prototype to avoid an error. 15142 Use char because int might match the return type of a GCC 15143 builtin and then its argument prototype would still apply. */ 15144#ifdef __cplusplus 15145extern "C" 15146#endif 15147char db_open (); 15148int 15149main () 15150{ 15151return db_open (); 15152 ; 15153 return 0; 15154} 15155_ACEOF 15156if ac_fn_c_try_link "$LINENO"; then : 15157 eval "$as_ac_Lib=yes" 15158else 15159 eval "$as_ac_Lib=no" 15160fi 15161rm -f core conftest.err conftest.$ac_objext \ 15162 conftest$ac_exeext conftest.$ac_ext 15163LIBS=$ac_check_lib_save_LIBS 15164fi 15165eval ac_res=\$$as_ac_Lib 15166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15167$as_echo "$ac_res" >&6; } 15168if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 15169 result=yes 15170else 15171 result=no 15172 15173fi 15174 15175 fi 15176 15177else 15178 result="no" 15179fi 15180 15181 15182 15183 # If we found it, no need to search any more. 15184 if test "$result" = "yes"; then 15185 found="$bdb_place" 15186 break 15187 fi 15188 done 15189 test "$found" != "not" && break 15190 done 15191 test "$found" != "not" && break 15192 done 15193 15194 # Restore the original values of the flags we tweak. 15195 LDFLAGS="$apu_check_lib_save_ldflags" 15196 CPPFLAGS="$apu_check_lib_save_cppflags" 15197 15198 case "$found" in 15199 "not") 15200 apu_have_db=0 15201 ;; 15202 "std") 15203 apu_db_header=$bdb_header 15204 apu_db_lib=$bdb_libname 15205 apu_have_db=1 15206 ;; 15207 *":"*) 15208 header="`echo $found | sed -e 's/:.*$//'`" 15209 lib="`echo $found | sed -e 's/^.*://'`" 15210 15211 15212 if test "x$APRUTIL_INCLUDES" = "x"; then 15213 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 15214 APRUTIL_INCLUDES="-I$header" 15215 else 15216 apr_addto_bugger="-I$header" 15217 for i in $apr_addto_bugger; do 15218 apr_addto_duplicate="0" 15219 for j in $APRUTIL_INCLUDES; do 15220 if test "x$i" = "x$j"; then 15221 apr_addto_duplicate="1" 15222 break 15223 fi 15224 done 15225 if test $apr_addto_duplicate = "0"; then 15226 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 15227 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 15228 fi 15229 done 15230 fi 15231 15232 15233 if test "x$APRUTIL_LDFLAGS" = "x"; then 15234 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 15235 APRUTIL_LDFLAGS="-L$lib" 15236 else 15237 apr_addto_bugger="-L$lib" 15238 for i in $apr_addto_bugger; do 15239 apr_addto_duplicate="0" 15240 for j in $APRUTIL_LDFLAGS; do 15241 if test "x$i" = "x$j"; then 15242 apr_addto_duplicate="1" 15243 break 15244 fi 15245 done 15246 if test $apr_addto_duplicate = "0"; then 15247 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 15248 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 15249 fi 15250 done 15251 fi 15252 15253 apu_db_header=$bdb_header 15254 apu_db_lib=$bdb_libname 15255 apu_have_db=1 15256 ;; 15257 *) 15258 15259 if test "x$APRUTIL_INCLUDES" = "x"; then 15260 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 15261 APRUTIL_INCLUDES="-I$found/include" 15262 else 15263 apr_addto_bugger="-I$found/include" 15264 for i in $apr_addto_bugger; do 15265 apr_addto_duplicate="0" 15266 for j in $APRUTIL_INCLUDES; do 15267 if test "x$i" = "x$j"; then 15268 apr_addto_duplicate="1" 15269 break 15270 fi 15271 done 15272 if test $apr_addto_duplicate = "0"; then 15273 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 15274 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 15275 fi 15276 done 15277 fi 15278 15279 15280 if test "x$APRUTIL_LDFLAGS" = "x"; then 15281 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 15282 APRUTIL_LDFLAGS="-L$found/lib" 15283 else 15284 apr_addto_bugger="-L$found/lib" 15285 for i in $apr_addto_bugger; do 15286 apr_addto_duplicate="0" 15287 for j in $APRUTIL_LDFLAGS; do 15288 if test "x$i" = "x$j"; then 15289 apr_addto_duplicate="1" 15290 break 15291 fi 15292 done 15293 if test $apr_addto_duplicate = "0"; then 15294 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 15295 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 15296 fi 15297 done 15298 fi 15299 15300 apu_db_header=$bdb_header 15301 apu_db_lib=$bdb_libname 15302 apu_have_db=1 15303 ;; 15304 esac 15305 15306 if test "$apu_have_db" = "1"; then 15307 apu_db_version=2 15308 fi 15309 15310 if test "$apu_db_version" != "2"; then 15311 as_fn_error $? "Berkeley db2 not found" "$LINENO" 5 15312 fi 15313 ;; 15314 db3) 15315 15316 places="$check_places" 15317 if test -z "$places"; then 15318 places="std" 15319 fi 15320 15321 bdb_version=3 15322 if test "-1" != "-1"; then 15323 bdb_version="$bdb_version.-1" 15324 if test "-1" != "-1"; then 15325 bdb_version="$bdb_version.-1" 15326 fi 15327 fi 15328 bdb_places="$places" 15329 bdb_default_search_headers="db3/db.h db.h" 15330 bdb_default_search_lib_names="db3 db" 15331 15332 15333 apu_have_db=0 15334 15335 # Save the original values of the flags we tweak. 15336 apu_check_lib_save_libs="$LIBS" 15337 apu_check_lib_save_ldflags="$LDFLAGS" 15338 apu_check_lib_save_cppflags="$CPPFLAGS" 15339 15340 # The variable `found' is the prefix under which we've found 15341 # Berkeley DB, or `not' if we haven't found it anywhere yet. 15342 found=not 15343 for bdb_place in $bdb_places; do 15344 15345 LDFLAGS="$apu_check_lib_save_ldflags" 15346 CPPFLAGS="$apu_check_lib_save_cppflags" 15347 case "$bdb_place" in 15348 "std" ) 15349 description="the standard places" 15350 ;; 15351 *":"* ) 15352 header="`echo $bdb_place | sed -e 's/:.*$//'`" 15353 lib="`echo $bdb_place | sed -e 's/^.*://'`" 15354 CPPFLAGS="$CPPFLAGS -I$header" 15355 LDFLAGS="$LDFLAGS -L$lib" 15356 description="$header and $lib" 15357 ;; 15358 * ) 15359 if test -d $bdb_place; then 15360 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 15361 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 15362 else 15363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 15364$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 15366$as_echo "directory not found" >&6; } 15367 continue 15368 fi 15369 description="$bdb_place" 15370 ;; 15371 esac 15372 15373 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 15374 # trick to display a message instead. 15375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 15376$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 15377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 15378$as_echo "" >&6; } 15379 15380 for bdb_libname in $bdb_default_search_lib_names; do 15381 for bdb_header in $bdb_default_search_headers; do 15382 # Clear the header cache variable for each location 15383 15384 cache_id="`echo ac_cv_header_${bdb_header} \ 15385 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 15386 15387 unset $cache_id 15388 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 15389ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 15390if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15391
| 15007 # We generate a separate cache variable for each prefix and libname 15008 # we search under. That way, we avoid caching information that 15009 # changes if the user runs `configure' with a different set of 15010 # switches. 15011 15012 cache_id="`echo apu_cv_check_berkeley_db_2_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 15013 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 15014 15015 15016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 15017$as_echo_n "checking for -l$bdb_libname... " >&6; } 15018 if eval \${$cache_id+:} false; then : 15019 $as_echo_n "(cached) " >&6 15020else 15021 15022 15023 apu_try_berkeley_db_save_libs="$LIBS" 15024 15025 apu_check_berkeley_db_major=2 15026 apu_check_berkeley_db_minor=-1 15027 apu_check_berkeley_db_patch=-1 15028 apu_try_berkeley_db_header=$bdb_header 15029 apu_try_berkeley_db_libname=$bdb_libname 15030 15031 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 15032 if test "$cross_compiling" = yes; then : 15033 apu_try_berkeley_db=yes 15034 15035else 15036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15037/* end confdefs.h. */ 15038 15039#include <stdlib.h> 15040#include <stdio.h> 15041#include <$apu_try_berkeley_db_header> 15042main () 15043{ 15044 int major, minor, patch; 15045 15046 db_version(&major, &minor, &patch); 15047 15048 /* Sanity check: ensure that db.h constants actually match the db library */ 15049 if (major != DB_VERSION_MAJOR 15050 || minor != DB_VERSION_MINOR 15051 || patch != DB_VERSION_PATCH) 15052 exit (1); 15053 15054 /* Run-time check: ensure the library claims to be the correct version. */ 15055 15056 if ($apu_check_berkeley_db_major != -1) { 15057 if (major < $apu_check_berkeley_db_major) 15058 exit (1); 15059 if (major > $apu_check_berkeley_db_major) 15060 exit (0); 15061 } 15062 15063 if ($apu_check_berkeley_db_minor != -1) { 15064 if (minor < $apu_check_berkeley_db_minor) 15065 exit (1); 15066 if (minor > $apu_check_berkeley_db_minor) 15067 exit (0); 15068 } 15069 15070 if ($apu_check_berkeley_db_patch == -1 15071 || patch >= $apu_check_berkeley_db_patch) 15072 exit (0); 15073 else 15074 exit (1); 15075} 15076 15077_ACEOF 15078if ac_fn_c_try_run "$LINENO"; then : 15079 apu_try_berkeley_db=yes 15080else 15081 apu_try_berkeley_db=no 15082fi 15083rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15084 conftest.$ac_objext conftest.beam conftest.$ac_ext 15085fi 15086 15087 15088 LIBS="$apu_try_berkeley_db_save_libs" 15089 15090 15091 eval "$cache_id=$apu_try_berkeley_db" 15092 15093fi 15094 15095 result="`eval echo '$'$cache_id`" 15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 15097$as_echo "$result" >&6; } 15098 elif test "2" = "1"; then 15099 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 15100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 15101$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 15102if eval \${$as_ac_Lib+:} false; then : 15103 $as_echo_n "(cached) " >&6 15104else 15105 ac_check_lib_save_LIBS=$LIBS 15106LIBS="-l$bdb_libname $LIBS" 15107cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15108/* end confdefs.h. */ 15109 15110/* Override any GCC internal prototype to avoid an error. 15111 Use char because int might match the return type of a GCC 15112 builtin and then its argument prototype would still apply. */ 15113#ifdef __cplusplus 15114extern "C" 15115#endif 15116char dbopen (); 15117int 15118main () 15119{ 15120return dbopen (); 15121 ; 15122 return 0; 15123} 15124_ACEOF 15125if ac_fn_c_try_link "$LINENO"; then : 15126 eval "$as_ac_Lib=yes" 15127else 15128 eval "$as_ac_Lib=no" 15129fi 15130rm -f core conftest.err conftest.$ac_objext \ 15131 conftest$ac_exeext conftest.$ac_ext 15132LIBS=$ac_check_lib_save_LIBS 15133fi 15134eval ac_res=\$$as_ac_Lib 15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15136$as_echo "$ac_res" >&6; } 15137if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 15138 result=yes 15139else 15140 result=no 15141 15142fi 15143 15144 elif test "2" = "2"; then 15145 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 15146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 15147$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 15148if eval \${$as_ac_Lib+:} false; then : 15149 $as_echo_n "(cached) " >&6 15150else 15151 ac_check_lib_save_LIBS=$LIBS 15152LIBS="-l$bdb_libname $LIBS" 15153cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15154/* end confdefs.h. */ 15155 15156/* Override any GCC internal prototype to avoid an error. 15157 Use char because int might match the return type of a GCC 15158 builtin and then its argument prototype would still apply. */ 15159#ifdef __cplusplus 15160extern "C" 15161#endif 15162char db_open (); 15163int 15164main () 15165{ 15166return db_open (); 15167 ; 15168 return 0; 15169} 15170_ACEOF 15171if ac_fn_c_try_link "$LINENO"; then : 15172 eval "$as_ac_Lib=yes" 15173else 15174 eval "$as_ac_Lib=no" 15175fi 15176rm -f core conftest.err conftest.$ac_objext \ 15177 conftest$ac_exeext conftest.$ac_ext 15178LIBS=$ac_check_lib_save_LIBS 15179fi 15180eval ac_res=\$$as_ac_Lib 15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15182$as_echo "$ac_res" >&6; } 15183if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 15184 result=yes 15185else 15186 result=no 15187 15188fi 15189 15190 fi 15191 15192else 15193 result="no" 15194fi 15195 15196 15197 15198 # If we found it, no need to search any more. 15199 if test "$result" = "yes"; then 15200 found="$bdb_place" 15201 break 15202 fi 15203 done 15204 test "$found" != "not" && break 15205 done 15206 test "$found" != "not" && break 15207 done 15208 15209 # Restore the original values of the flags we tweak. 15210 LDFLAGS="$apu_check_lib_save_ldflags" 15211 CPPFLAGS="$apu_check_lib_save_cppflags" 15212 15213 case "$found" in 15214 "not") 15215 apu_have_db=0 15216 ;; 15217 "std") 15218 apu_db_header=$bdb_header 15219 apu_db_lib=$bdb_libname 15220 apu_have_db=1 15221 ;; 15222 *":"*) 15223 header="`echo $found | sed -e 's/:.*$//'`" 15224 lib="`echo $found | sed -e 's/^.*://'`" 15225 15226 15227 if test "x$APRUTIL_INCLUDES" = "x"; then 15228 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 15229 APRUTIL_INCLUDES="-I$header" 15230 else 15231 apr_addto_bugger="-I$header" 15232 for i in $apr_addto_bugger; do 15233 apr_addto_duplicate="0" 15234 for j in $APRUTIL_INCLUDES; do 15235 if test "x$i" = "x$j"; then 15236 apr_addto_duplicate="1" 15237 break 15238 fi 15239 done 15240 if test $apr_addto_duplicate = "0"; then 15241 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 15242 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 15243 fi 15244 done 15245 fi 15246 15247 15248 if test "x$APRUTIL_LDFLAGS" = "x"; then 15249 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 15250 APRUTIL_LDFLAGS="-L$lib" 15251 else 15252 apr_addto_bugger="-L$lib" 15253 for i in $apr_addto_bugger; do 15254 apr_addto_duplicate="0" 15255 for j in $APRUTIL_LDFLAGS; do 15256 if test "x$i" = "x$j"; then 15257 apr_addto_duplicate="1" 15258 break 15259 fi 15260 done 15261 if test $apr_addto_duplicate = "0"; then 15262 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 15263 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 15264 fi 15265 done 15266 fi 15267 15268 apu_db_header=$bdb_header 15269 apu_db_lib=$bdb_libname 15270 apu_have_db=1 15271 ;; 15272 *) 15273 15274 if test "x$APRUTIL_INCLUDES" = "x"; then 15275 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 15276 APRUTIL_INCLUDES="-I$found/include" 15277 else 15278 apr_addto_bugger="-I$found/include" 15279 for i in $apr_addto_bugger; do 15280 apr_addto_duplicate="0" 15281 for j in $APRUTIL_INCLUDES; do 15282 if test "x$i" = "x$j"; then 15283 apr_addto_duplicate="1" 15284 break 15285 fi 15286 done 15287 if test $apr_addto_duplicate = "0"; then 15288 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 15289 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 15290 fi 15291 done 15292 fi 15293 15294 15295 if test "x$APRUTIL_LDFLAGS" = "x"; then 15296 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 15297 APRUTIL_LDFLAGS="-L$found/lib" 15298 else 15299 apr_addto_bugger="-L$found/lib" 15300 for i in $apr_addto_bugger; do 15301 apr_addto_duplicate="0" 15302 for j in $APRUTIL_LDFLAGS; do 15303 if test "x$i" = "x$j"; then 15304 apr_addto_duplicate="1" 15305 break 15306 fi 15307 done 15308 if test $apr_addto_duplicate = "0"; then 15309 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 15310 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 15311 fi 15312 done 15313 fi 15314 15315 apu_db_header=$bdb_header 15316 apu_db_lib=$bdb_libname 15317 apu_have_db=1 15318 ;; 15319 esac 15320 15321 if test "$apu_have_db" = "1"; then 15322 apu_db_version=2 15323 fi 15324 15325 if test "$apu_db_version" != "2"; then 15326 as_fn_error $? "Berkeley db2 not found" "$LINENO" 5 15327 fi 15328 ;; 15329 db3) 15330 15331 places="$check_places" 15332 if test -z "$places"; then 15333 places="std" 15334 fi 15335 15336 bdb_version=3 15337 if test "-1" != "-1"; then 15338 bdb_version="$bdb_version.-1" 15339 if test "-1" != "-1"; then 15340 bdb_version="$bdb_version.-1" 15341 fi 15342 fi 15343 bdb_places="$places" 15344 bdb_default_search_headers="db3/db.h db.h" 15345 bdb_default_search_lib_names="db3 db" 15346 15347 15348 apu_have_db=0 15349 15350 # Save the original values of the flags we tweak. 15351 apu_check_lib_save_libs="$LIBS" 15352 apu_check_lib_save_ldflags="$LDFLAGS" 15353 apu_check_lib_save_cppflags="$CPPFLAGS" 15354 15355 # The variable `found' is the prefix under which we've found 15356 # Berkeley DB, or `not' if we haven't found it anywhere yet. 15357 found=not 15358 for bdb_place in $bdb_places; do 15359 15360 LDFLAGS="$apu_check_lib_save_ldflags" 15361 CPPFLAGS="$apu_check_lib_save_cppflags" 15362 case "$bdb_place" in 15363 "std" ) 15364 description="the standard places" 15365 ;; 15366 *":"* ) 15367 header="`echo $bdb_place | sed -e 's/:.*$//'`" 15368 lib="`echo $bdb_place | sed -e 's/^.*://'`" 15369 CPPFLAGS="$CPPFLAGS -I$header" 15370 LDFLAGS="$LDFLAGS -L$lib" 15371 description="$header and $lib" 15372 ;; 15373 * ) 15374 if test -d $bdb_place; then 15375 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 15376 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 15377 else 15378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 15379$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 15381$as_echo "directory not found" >&6; } 15382 continue 15383 fi 15384 description="$bdb_place" 15385 ;; 15386 esac 15387 15388 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 15389 # trick to display a message instead. 15390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 15391$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 15392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 15393$as_echo "" >&6; } 15394 15395 for bdb_libname in $bdb_default_search_lib_names; do 15396 for bdb_header in $bdb_default_search_headers; do 15397 # Clear the header cache variable for each location 15398 15399 cache_id="`echo ac_cv_header_${bdb_header} \ 15400 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 15401 15402 unset $cache_id 15403 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 15404ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 15405if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15406
|
15392 if test "3" = "3" -o "3" = "4" -o "3" = "5"; then
| 15407 if test "3" = "3" -o "3" = "4" -o "3" = "5" -o "3" = "6"; then
|
15393 # We generate a separate cache variable for each prefix and libname 15394 # we search under. That way, we avoid caching information that 15395 # changes if the user runs `configure' with a different set of 15396 # switches. 15397 15398 cache_id="`echo apu_cv_check_berkeley_db_3_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 15399 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 15400 15401 15402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 15403$as_echo_n "checking for -l$bdb_libname... " >&6; } 15404 if eval \${$cache_id+:} false; then : 15405 $as_echo_n "(cached) " >&6 15406else 15407 15408 15409 apu_try_berkeley_db_save_libs="$LIBS" 15410 15411 apu_check_berkeley_db_major=3 15412 apu_check_berkeley_db_minor=-1 15413 apu_check_berkeley_db_patch=-1 15414 apu_try_berkeley_db_header=$bdb_header 15415 apu_try_berkeley_db_libname=$bdb_libname 15416 15417 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 15418 if test "$cross_compiling" = yes; then : 15419 apu_try_berkeley_db=yes 15420 15421else 15422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15423/* end confdefs.h. */ 15424 15425#include <stdlib.h> 15426#include <stdio.h> 15427#include <$apu_try_berkeley_db_header> 15428main () 15429{ 15430 int major, minor, patch; 15431 15432 db_version(&major, &minor, &patch); 15433 15434 /* Sanity check: ensure that db.h constants actually match the db library */ 15435 if (major != DB_VERSION_MAJOR 15436 || minor != DB_VERSION_MINOR 15437 || patch != DB_VERSION_PATCH) 15438 exit (1); 15439 15440 /* Run-time check: ensure the library claims to be the correct version. */ 15441 15442 if ($apu_check_berkeley_db_major != -1) { 15443 if (major < $apu_check_berkeley_db_major) 15444 exit (1); 15445 if (major > $apu_check_berkeley_db_major) 15446 exit (0); 15447 } 15448 15449 if ($apu_check_berkeley_db_minor != -1) { 15450 if (minor < $apu_check_berkeley_db_minor) 15451 exit (1); 15452 if (minor > $apu_check_berkeley_db_minor) 15453 exit (0); 15454 } 15455 15456 if ($apu_check_berkeley_db_patch == -1 15457 || patch >= $apu_check_berkeley_db_patch) 15458 exit (0); 15459 else 15460 exit (1); 15461} 15462 15463_ACEOF 15464if ac_fn_c_try_run "$LINENO"; then : 15465 apu_try_berkeley_db=yes 15466else 15467 apu_try_berkeley_db=no 15468fi 15469rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15470 conftest.$ac_objext conftest.beam conftest.$ac_ext 15471fi 15472 15473 15474 LIBS="$apu_try_berkeley_db_save_libs" 15475 15476 15477 eval "$cache_id=$apu_try_berkeley_db" 15478 15479fi 15480 15481 result="`eval echo '$'$cache_id`" 15482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 15483$as_echo "$result" >&6; } 15484 elif test "3" = "1"; then 15485 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 15486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 15487$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 15488if eval \${$as_ac_Lib+:} false; then : 15489 $as_echo_n "(cached) " >&6 15490else 15491 ac_check_lib_save_LIBS=$LIBS 15492LIBS="-l$bdb_libname $LIBS" 15493cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15494/* end confdefs.h. */ 15495 15496/* Override any GCC internal prototype to avoid an error. 15497 Use char because int might match the return type of a GCC 15498 builtin and then its argument prototype would still apply. */ 15499#ifdef __cplusplus 15500extern "C" 15501#endif 15502char dbopen (); 15503int 15504main () 15505{ 15506return dbopen (); 15507 ; 15508 return 0; 15509} 15510_ACEOF 15511if ac_fn_c_try_link "$LINENO"; then : 15512 eval "$as_ac_Lib=yes" 15513else 15514 eval "$as_ac_Lib=no" 15515fi 15516rm -f core conftest.err conftest.$ac_objext \ 15517 conftest$ac_exeext conftest.$ac_ext 15518LIBS=$ac_check_lib_save_LIBS 15519fi 15520eval ac_res=\$$as_ac_Lib 15521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15522$as_echo "$ac_res" >&6; } 15523if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 15524 result=yes 15525else 15526 result=no 15527 15528fi 15529 15530 elif test "3" = "2"; then 15531 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 15532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 15533$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 15534if eval \${$as_ac_Lib+:} false; then : 15535 $as_echo_n "(cached) " >&6 15536else 15537 ac_check_lib_save_LIBS=$LIBS 15538LIBS="-l$bdb_libname $LIBS" 15539cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15540/* end confdefs.h. */ 15541 15542/* Override any GCC internal prototype to avoid an error. 15543 Use char because int might match the return type of a GCC 15544 builtin and then its argument prototype would still apply. */ 15545#ifdef __cplusplus 15546extern "C" 15547#endif 15548char db_open (); 15549int 15550main () 15551{ 15552return db_open (); 15553 ; 15554 return 0; 15555} 15556_ACEOF 15557if ac_fn_c_try_link "$LINENO"; then : 15558 eval "$as_ac_Lib=yes" 15559else 15560 eval "$as_ac_Lib=no" 15561fi 15562rm -f core conftest.err conftest.$ac_objext \ 15563 conftest$ac_exeext conftest.$ac_ext 15564LIBS=$ac_check_lib_save_LIBS 15565fi 15566eval ac_res=\$$as_ac_Lib 15567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15568$as_echo "$ac_res" >&6; } 15569if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 15570 result=yes 15571else 15572 result=no 15573 15574fi 15575 15576 fi 15577 15578else 15579 result="no" 15580fi 15581 15582 15583 15584 # If we found it, no need to search any more. 15585 if test "$result" = "yes"; then 15586 found="$bdb_place" 15587 break 15588 fi 15589 done 15590 test "$found" != "not" && break 15591 done 15592 test "$found" != "not" && break 15593 done 15594 15595 # Restore the original values of the flags we tweak. 15596 LDFLAGS="$apu_check_lib_save_ldflags" 15597 CPPFLAGS="$apu_check_lib_save_cppflags" 15598 15599 case "$found" in 15600 "not") 15601 apu_have_db=0 15602 ;; 15603 "std") 15604 apu_db_header=$bdb_header 15605 apu_db_lib=$bdb_libname 15606 apu_have_db=1 15607 ;; 15608 *":"*) 15609 header="`echo $found | sed -e 's/:.*$//'`" 15610 lib="`echo $found | sed -e 's/^.*://'`" 15611 15612 15613 if test "x$APRUTIL_INCLUDES" = "x"; then 15614 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 15615 APRUTIL_INCLUDES="-I$header" 15616 else 15617 apr_addto_bugger="-I$header" 15618 for i in $apr_addto_bugger; do 15619 apr_addto_duplicate="0" 15620 for j in $APRUTIL_INCLUDES; do 15621 if test "x$i" = "x$j"; then 15622 apr_addto_duplicate="1" 15623 break 15624 fi 15625 done 15626 if test $apr_addto_duplicate = "0"; then 15627 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 15628 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 15629 fi 15630 done 15631 fi 15632 15633 15634 if test "x$APRUTIL_LDFLAGS" = "x"; then 15635 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 15636 APRUTIL_LDFLAGS="-L$lib" 15637 else 15638 apr_addto_bugger="-L$lib" 15639 for i in $apr_addto_bugger; do 15640 apr_addto_duplicate="0" 15641 for j in $APRUTIL_LDFLAGS; do 15642 if test "x$i" = "x$j"; then 15643 apr_addto_duplicate="1" 15644 break 15645 fi 15646 done 15647 if test $apr_addto_duplicate = "0"; then 15648 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 15649 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 15650 fi 15651 done 15652 fi 15653 15654 apu_db_header=$bdb_header 15655 apu_db_lib=$bdb_libname 15656 apu_have_db=1 15657 ;; 15658 *) 15659 15660 if test "x$APRUTIL_INCLUDES" = "x"; then 15661 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 15662 APRUTIL_INCLUDES="-I$found/include" 15663 else 15664 apr_addto_bugger="-I$found/include" 15665 for i in $apr_addto_bugger; do 15666 apr_addto_duplicate="0" 15667 for j in $APRUTIL_INCLUDES; do 15668 if test "x$i" = "x$j"; then 15669 apr_addto_duplicate="1" 15670 break 15671 fi 15672 done 15673 if test $apr_addto_duplicate = "0"; then 15674 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 15675 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 15676 fi 15677 done 15678 fi 15679 15680 15681 if test "x$APRUTIL_LDFLAGS" = "x"; then 15682 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 15683 APRUTIL_LDFLAGS="-L$found/lib" 15684 else 15685 apr_addto_bugger="-L$found/lib" 15686 for i in $apr_addto_bugger; do 15687 apr_addto_duplicate="0" 15688 for j in $APRUTIL_LDFLAGS; do 15689 if test "x$i" = "x$j"; then 15690 apr_addto_duplicate="1" 15691 break 15692 fi 15693 done 15694 if test $apr_addto_duplicate = "0"; then 15695 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 15696 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 15697 fi 15698 done 15699 fi 15700 15701 apu_db_header=$bdb_header 15702 apu_db_lib=$bdb_libname 15703 apu_have_db=1 15704 ;; 15705 esac 15706 15707 if test "$apu_have_db" = "1"; then 15708 apu_db_version=3 15709 fi 15710 15711 if test "$apu_db_version" != "3"; then 15712 as_fn_error $? "Berkeley db3 not found" "$LINENO" 5 15713 fi 15714 ;; 15715 db[456][0-9]) 15716 db_major=`echo "$requested" | sed -e 's/db//' -e 's/.$//'` 15717 db_minor=`echo "$requested" | sed -e 's/db//' -e 's/.//'` 15718 15719 places="$check_places" 15720 db_major="$db_major" 15721 db_minor="$db_minor" 15722 if test -z "$places"; then 15723 places="std /usr/local /usr/local/BerkeleyDB.${db_major}.${db_minor} /boot/home/config" 15724 fi 15725 15726 bdb_version="${db_major}" 15727 if test ""${db_minor}"" != "-1"; then 15728 bdb_version="$bdb_version."${db_minor}"" 15729 if test ""-1"" != "-1"; then 15730 bdb_version="$bdb_version."-1"" 15731 fi 15732 fi 15733 bdb_places="$places" 15734 bdb_default_search_headers="db${db_major}${db_minor}/db.h db${db_major}/db.h db.h" 15735 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" 15736 15737 15738 apu_have_db=0 15739 15740 # Save the original values of the flags we tweak. 15741 apu_check_lib_save_libs="$LIBS" 15742 apu_check_lib_save_ldflags="$LDFLAGS" 15743 apu_check_lib_save_cppflags="$CPPFLAGS" 15744 15745 # The variable `found' is the prefix under which we've found 15746 # Berkeley DB, or `not' if we haven't found it anywhere yet. 15747 found=not 15748 for bdb_place in $bdb_places; do 15749 15750 LDFLAGS="$apu_check_lib_save_ldflags" 15751 CPPFLAGS="$apu_check_lib_save_cppflags" 15752 case "$bdb_place" in 15753 "std" ) 15754 description="the standard places" 15755 ;; 15756 *":"* ) 15757 header="`echo $bdb_place | sed -e 's/:.*$//'`" 15758 lib="`echo $bdb_place | sed -e 's/^.*://'`" 15759 CPPFLAGS="$CPPFLAGS -I$header" 15760 LDFLAGS="$LDFLAGS -L$lib" 15761 description="$header and $lib" 15762 ;; 15763 * ) 15764 if test -d $bdb_place; then 15765 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 15766 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 15767 else 15768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 15769$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 15770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 15771$as_echo "directory not found" >&6; } 15772 continue 15773 fi 15774 description="$bdb_place" 15775 ;; 15776 esac 15777 15778 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 15779 # trick to display a message instead. 15780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 15781$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 15782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 15783$as_echo "" >&6; } 15784 15785 for bdb_libname in $bdb_default_search_lib_names; do 15786 for bdb_header in $bdb_default_search_headers; do 15787 # Clear the header cache variable for each location 15788 15789 cache_id="`echo ac_cv_header_${bdb_header} \ 15790 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 15791 15792 unset $cache_id 15793 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 15794ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 15795if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15796
| 15408 # We generate a separate cache variable for each prefix and libname 15409 # we search under. That way, we avoid caching information that 15410 # changes if the user runs `configure' with a different set of 15411 # switches. 15412 15413 cache_id="`echo apu_cv_check_berkeley_db_3_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 15414 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 15415 15416 15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 15418$as_echo_n "checking for -l$bdb_libname... " >&6; } 15419 if eval \${$cache_id+:} false; then : 15420 $as_echo_n "(cached) " >&6 15421else 15422 15423 15424 apu_try_berkeley_db_save_libs="$LIBS" 15425 15426 apu_check_berkeley_db_major=3 15427 apu_check_berkeley_db_minor=-1 15428 apu_check_berkeley_db_patch=-1 15429 apu_try_berkeley_db_header=$bdb_header 15430 apu_try_berkeley_db_libname=$bdb_libname 15431 15432 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 15433 if test "$cross_compiling" = yes; then : 15434 apu_try_berkeley_db=yes 15435 15436else 15437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15438/* end confdefs.h. */ 15439 15440#include <stdlib.h> 15441#include <stdio.h> 15442#include <$apu_try_berkeley_db_header> 15443main () 15444{ 15445 int major, minor, patch; 15446 15447 db_version(&major, &minor, &patch); 15448 15449 /* Sanity check: ensure that db.h constants actually match the db library */ 15450 if (major != DB_VERSION_MAJOR 15451 || minor != DB_VERSION_MINOR 15452 || patch != DB_VERSION_PATCH) 15453 exit (1); 15454 15455 /* Run-time check: ensure the library claims to be the correct version. */ 15456 15457 if ($apu_check_berkeley_db_major != -1) { 15458 if (major < $apu_check_berkeley_db_major) 15459 exit (1); 15460 if (major > $apu_check_berkeley_db_major) 15461 exit (0); 15462 } 15463 15464 if ($apu_check_berkeley_db_minor != -1) { 15465 if (minor < $apu_check_berkeley_db_minor) 15466 exit (1); 15467 if (minor > $apu_check_berkeley_db_minor) 15468 exit (0); 15469 } 15470 15471 if ($apu_check_berkeley_db_patch == -1 15472 || patch >= $apu_check_berkeley_db_patch) 15473 exit (0); 15474 else 15475 exit (1); 15476} 15477 15478_ACEOF 15479if ac_fn_c_try_run "$LINENO"; then : 15480 apu_try_berkeley_db=yes 15481else 15482 apu_try_berkeley_db=no 15483fi 15484rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15485 conftest.$ac_objext conftest.beam conftest.$ac_ext 15486fi 15487 15488 15489 LIBS="$apu_try_berkeley_db_save_libs" 15490 15491 15492 eval "$cache_id=$apu_try_berkeley_db" 15493 15494fi 15495 15496 result="`eval echo '$'$cache_id`" 15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 15498$as_echo "$result" >&6; } 15499 elif test "3" = "1"; then 15500 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 15501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 15502$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 15503if eval \${$as_ac_Lib+:} false; then : 15504 $as_echo_n "(cached) " >&6 15505else 15506 ac_check_lib_save_LIBS=$LIBS 15507LIBS="-l$bdb_libname $LIBS" 15508cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15509/* end confdefs.h. */ 15510 15511/* Override any GCC internal prototype to avoid an error. 15512 Use char because int might match the return type of a GCC 15513 builtin and then its argument prototype would still apply. */ 15514#ifdef __cplusplus 15515extern "C" 15516#endif 15517char dbopen (); 15518int 15519main () 15520{ 15521return dbopen (); 15522 ; 15523 return 0; 15524} 15525_ACEOF 15526if ac_fn_c_try_link "$LINENO"; then : 15527 eval "$as_ac_Lib=yes" 15528else 15529 eval "$as_ac_Lib=no" 15530fi 15531rm -f core conftest.err conftest.$ac_objext \ 15532 conftest$ac_exeext conftest.$ac_ext 15533LIBS=$ac_check_lib_save_LIBS 15534fi 15535eval ac_res=\$$as_ac_Lib 15536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15537$as_echo "$ac_res" >&6; } 15538if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 15539 result=yes 15540else 15541 result=no 15542 15543fi 15544 15545 elif test "3" = "2"; then 15546 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 15547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 15548$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 15549if eval \${$as_ac_Lib+:} false; then : 15550 $as_echo_n "(cached) " >&6 15551else 15552 ac_check_lib_save_LIBS=$LIBS 15553LIBS="-l$bdb_libname $LIBS" 15554cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15555/* end confdefs.h. */ 15556 15557/* Override any GCC internal prototype to avoid an error. 15558 Use char because int might match the return type of a GCC 15559 builtin and then its argument prototype would still apply. */ 15560#ifdef __cplusplus 15561extern "C" 15562#endif 15563char db_open (); 15564int 15565main () 15566{ 15567return db_open (); 15568 ; 15569 return 0; 15570} 15571_ACEOF 15572if ac_fn_c_try_link "$LINENO"; then : 15573 eval "$as_ac_Lib=yes" 15574else 15575 eval "$as_ac_Lib=no" 15576fi 15577rm -f core conftest.err conftest.$ac_objext \ 15578 conftest$ac_exeext conftest.$ac_ext 15579LIBS=$ac_check_lib_save_LIBS 15580fi 15581eval ac_res=\$$as_ac_Lib 15582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15583$as_echo "$ac_res" >&6; } 15584if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 15585 result=yes 15586else 15587 result=no 15588 15589fi 15590 15591 fi 15592 15593else 15594 result="no" 15595fi 15596 15597 15598 15599 # If we found it, no need to search any more. 15600 if test "$result" = "yes"; then 15601 found="$bdb_place" 15602 break 15603 fi 15604 done 15605 test "$found" != "not" && break 15606 done 15607 test "$found" != "not" && break 15608 done 15609 15610 # Restore the original values of the flags we tweak. 15611 LDFLAGS="$apu_check_lib_save_ldflags" 15612 CPPFLAGS="$apu_check_lib_save_cppflags" 15613 15614 case "$found" in 15615 "not") 15616 apu_have_db=0 15617 ;; 15618 "std") 15619 apu_db_header=$bdb_header 15620 apu_db_lib=$bdb_libname 15621 apu_have_db=1 15622 ;; 15623 *":"*) 15624 header="`echo $found | sed -e 's/:.*$//'`" 15625 lib="`echo $found | sed -e 's/^.*://'`" 15626 15627 15628 if test "x$APRUTIL_INCLUDES" = "x"; then 15629 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 15630 APRUTIL_INCLUDES="-I$header" 15631 else 15632 apr_addto_bugger="-I$header" 15633 for i in $apr_addto_bugger; do 15634 apr_addto_duplicate="0" 15635 for j in $APRUTIL_INCLUDES; do 15636 if test "x$i" = "x$j"; then 15637 apr_addto_duplicate="1" 15638 break 15639 fi 15640 done 15641 if test $apr_addto_duplicate = "0"; then 15642 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 15643 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 15644 fi 15645 done 15646 fi 15647 15648 15649 if test "x$APRUTIL_LDFLAGS" = "x"; then 15650 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 15651 APRUTIL_LDFLAGS="-L$lib" 15652 else 15653 apr_addto_bugger="-L$lib" 15654 for i in $apr_addto_bugger; do 15655 apr_addto_duplicate="0" 15656 for j in $APRUTIL_LDFLAGS; do 15657 if test "x$i" = "x$j"; then 15658 apr_addto_duplicate="1" 15659 break 15660 fi 15661 done 15662 if test $apr_addto_duplicate = "0"; then 15663 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 15664 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 15665 fi 15666 done 15667 fi 15668 15669 apu_db_header=$bdb_header 15670 apu_db_lib=$bdb_libname 15671 apu_have_db=1 15672 ;; 15673 *) 15674 15675 if test "x$APRUTIL_INCLUDES" = "x"; then 15676 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 15677 APRUTIL_INCLUDES="-I$found/include" 15678 else 15679 apr_addto_bugger="-I$found/include" 15680 for i in $apr_addto_bugger; do 15681 apr_addto_duplicate="0" 15682 for j in $APRUTIL_INCLUDES; do 15683 if test "x$i" = "x$j"; then 15684 apr_addto_duplicate="1" 15685 break 15686 fi 15687 done 15688 if test $apr_addto_duplicate = "0"; then 15689 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 15690 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 15691 fi 15692 done 15693 fi 15694 15695 15696 if test "x$APRUTIL_LDFLAGS" = "x"; then 15697 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 15698 APRUTIL_LDFLAGS="-L$found/lib" 15699 else 15700 apr_addto_bugger="-L$found/lib" 15701 for i in $apr_addto_bugger; do 15702 apr_addto_duplicate="0" 15703 for j in $APRUTIL_LDFLAGS; do 15704 if test "x$i" = "x$j"; then 15705 apr_addto_duplicate="1" 15706 break 15707 fi 15708 done 15709 if test $apr_addto_duplicate = "0"; then 15710 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 15711 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 15712 fi 15713 done 15714 fi 15715 15716 apu_db_header=$bdb_header 15717 apu_db_lib=$bdb_libname 15718 apu_have_db=1 15719 ;; 15720 esac 15721 15722 if test "$apu_have_db" = "1"; then 15723 apu_db_version=3 15724 fi 15725 15726 if test "$apu_db_version" != "3"; then 15727 as_fn_error $? "Berkeley db3 not found" "$LINENO" 5 15728 fi 15729 ;; 15730 db[456][0-9]) 15731 db_major=`echo "$requested" | sed -e 's/db//' -e 's/.$//'` 15732 db_minor=`echo "$requested" | sed -e 's/db//' -e 's/.//'` 15733 15734 places="$check_places" 15735 db_major="$db_major" 15736 db_minor="$db_minor" 15737 if test -z "$places"; then 15738 places="std /usr/local /usr/local/BerkeleyDB.${db_major}.${db_minor} /boot/home/config" 15739 fi 15740 15741 bdb_version="${db_major}" 15742 if test ""${db_minor}"" != "-1"; then 15743 bdb_version="$bdb_version."${db_minor}"" 15744 if test ""-1"" != "-1"; then 15745 bdb_version="$bdb_version."-1"" 15746 fi 15747 fi 15748 bdb_places="$places" 15749 bdb_default_search_headers="db${db_major}${db_minor}/db.h db${db_major}/db.h db.h" 15750 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" 15751 15752 15753 apu_have_db=0 15754 15755 # Save the original values of the flags we tweak. 15756 apu_check_lib_save_libs="$LIBS" 15757 apu_check_lib_save_ldflags="$LDFLAGS" 15758 apu_check_lib_save_cppflags="$CPPFLAGS" 15759 15760 # The variable `found' is the prefix under which we've found 15761 # Berkeley DB, or `not' if we haven't found it anywhere yet. 15762 found=not 15763 for bdb_place in $bdb_places; do 15764 15765 LDFLAGS="$apu_check_lib_save_ldflags" 15766 CPPFLAGS="$apu_check_lib_save_cppflags" 15767 case "$bdb_place" in 15768 "std" ) 15769 description="the standard places" 15770 ;; 15771 *":"* ) 15772 header="`echo $bdb_place | sed -e 's/:.*$//'`" 15773 lib="`echo $bdb_place | sed -e 's/^.*://'`" 15774 CPPFLAGS="$CPPFLAGS -I$header" 15775 LDFLAGS="$LDFLAGS -L$lib" 15776 description="$header and $lib" 15777 ;; 15778 * ) 15779 if test -d $bdb_place; then 15780 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 15781 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 15782 else 15783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 15784$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 15785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 15786$as_echo "directory not found" >&6; } 15787 continue 15788 fi 15789 description="$bdb_place" 15790 ;; 15791 esac 15792 15793 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 15794 # trick to display a message instead. 15795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 15796$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 15798$as_echo "" >&6; } 15799 15800 for bdb_libname in $bdb_default_search_lib_names; do 15801 for bdb_header in $bdb_default_search_headers; do 15802 # Clear the header cache variable for each location 15803 15804 cache_id="`echo ac_cv_header_${bdb_header} \ 15805 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 15806 15807 unset $cache_id 15808 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 15809ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 15810if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15811
|
15797 if test ""${db_major}"" = "3" -o ""${db_major}"" = "4" -o ""${db_major}"" = "5"; then
| 15812 if test ""${db_major}"" = "3" -o ""${db_major}"" = "4" -o ""${db_major}"" = "5" -o ""${db_major}"" = "6"; then
|
15798 # We generate a separate cache variable for each prefix and libname 15799 # we search under. That way, we avoid caching information that 15800 # changes if the user runs `configure' with a different set of 15801 # switches. 15802 15803 cache_id="`echo apu_cv_check_berkeley_db_"${db_major}"_"${db_minor}"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 15804 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 15805 15806 15807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 15808$as_echo_n "checking for -l$bdb_libname... " >&6; } 15809 if eval \${$cache_id+:} false; then : 15810 $as_echo_n "(cached) " >&6 15811else 15812 15813 15814 apu_try_berkeley_db_save_libs="$LIBS" 15815 15816 apu_check_berkeley_db_major="${db_major}" 15817 apu_check_berkeley_db_minor="${db_minor}" 15818 apu_check_berkeley_db_patch="-1" 15819 apu_try_berkeley_db_header=$bdb_header 15820 apu_try_berkeley_db_libname=$bdb_libname 15821 15822 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 15823 if test "$cross_compiling" = yes; then : 15824 apu_try_berkeley_db=yes 15825 15826else 15827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15828/* end confdefs.h. */ 15829 15830#include <stdlib.h> 15831#include <stdio.h> 15832#include <$apu_try_berkeley_db_header> 15833main () 15834{ 15835 int major, minor, patch; 15836 15837 db_version(&major, &minor, &patch); 15838 15839 /* Sanity check: ensure that db.h constants actually match the db library */ 15840 if (major != DB_VERSION_MAJOR 15841 || minor != DB_VERSION_MINOR 15842 || patch != DB_VERSION_PATCH) 15843 exit (1); 15844 15845 /* Run-time check: ensure the library claims to be the correct version. */ 15846 15847 if ($apu_check_berkeley_db_major != -1) { 15848 if (major < $apu_check_berkeley_db_major) 15849 exit (1); 15850 if (major > $apu_check_berkeley_db_major) 15851 exit (0); 15852 } 15853 15854 if ($apu_check_berkeley_db_minor != -1) { 15855 if (minor < $apu_check_berkeley_db_minor) 15856 exit (1); 15857 if (minor > $apu_check_berkeley_db_minor) 15858 exit (0); 15859 } 15860 15861 if ($apu_check_berkeley_db_patch == -1 15862 || patch >= $apu_check_berkeley_db_patch) 15863 exit (0); 15864 else 15865 exit (1); 15866} 15867 15868_ACEOF 15869if ac_fn_c_try_run "$LINENO"; then : 15870 apu_try_berkeley_db=yes 15871else 15872 apu_try_berkeley_db=no 15873fi 15874rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15875 conftest.$ac_objext conftest.beam conftest.$ac_ext 15876fi 15877 15878 15879 LIBS="$apu_try_berkeley_db_save_libs" 15880 15881 15882 eval "$cache_id=$apu_try_berkeley_db" 15883 15884fi 15885 15886 result="`eval echo '$'$cache_id`" 15887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 15888$as_echo "$result" >&6; } 15889 elif test ""${db_major}"" = "1"; then 15890 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 15891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 15892$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 15893if eval \${$as_ac_Lib+:} false; then : 15894 $as_echo_n "(cached) " >&6 15895else 15896 ac_check_lib_save_LIBS=$LIBS 15897LIBS="-l$bdb_libname $LIBS" 15898cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15899/* end confdefs.h. */ 15900 15901/* Override any GCC internal prototype to avoid an error. 15902 Use char because int might match the return type of a GCC 15903 builtin and then its argument prototype would still apply. */ 15904#ifdef __cplusplus 15905extern "C" 15906#endif 15907char dbopen (); 15908int 15909main () 15910{ 15911return dbopen (); 15912 ; 15913 return 0; 15914} 15915_ACEOF 15916if ac_fn_c_try_link "$LINENO"; then : 15917 eval "$as_ac_Lib=yes" 15918else 15919 eval "$as_ac_Lib=no" 15920fi 15921rm -f core conftest.err conftest.$ac_objext \ 15922 conftest$ac_exeext conftest.$ac_ext 15923LIBS=$ac_check_lib_save_LIBS 15924fi 15925eval ac_res=\$$as_ac_Lib 15926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15927$as_echo "$ac_res" >&6; } 15928if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 15929 result=yes 15930else 15931 result=no 15932 15933fi 15934 15935 elif test ""${db_major}"" = "2"; then 15936 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 15937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 15938$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 15939if eval \${$as_ac_Lib+:} false; then : 15940 $as_echo_n "(cached) " >&6 15941else 15942 ac_check_lib_save_LIBS=$LIBS 15943LIBS="-l$bdb_libname $LIBS" 15944cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15945/* end confdefs.h. */ 15946 15947/* Override any GCC internal prototype to avoid an error. 15948 Use char because int might match the return type of a GCC 15949 builtin and then its argument prototype would still apply. */ 15950#ifdef __cplusplus 15951extern "C" 15952#endif 15953char db_open (); 15954int 15955main () 15956{ 15957return db_open (); 15958 ; 15959 return 0; 15960} 15961_ACEOF 15962if ac_fn_c_try_link "$LINENO"; then : 15963 eval "$as_ac_Lib=yes" 15964else 15965 eval "$as_ac_Lib=no" 15966fi 15967rm -f core conftest.err conftest.$ac_objext \ 15968 conftest$ac_exeext conftest.$ac_ext 15969LIBS=$ac_check_lib_save_LIBS 15970fi 15971eval ac_res=\$$as_ac_Lib 15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15973$as_echo "$ac_res" >&6; } 15974if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 15975 result=yes 15976else 15977 result=no 15978 15979fi 15980 15981 fi 15982 15983else 15984 result="no" 15985fi 15986 15987 15988 15989 # If we found it, no need to search any more. 15990 if test "$result" = "yes"; then 15991 found="$bdb_place" 15992 break 15993 fi 15994 done 15995 test "$found" != "not" && break 15996 done 15997 test "$found" != "not" && break 15998 done 15999 16000 # Restore the original values of the flags we tweak. 16001 LDFLAGS="$apu_check_lib_save_ldflags" 16002 CPPFLAGS="$apu_check_lib_save_cppflags" 16003 16004 case "$found" in 16005 "not") 16006 apu_have_db=0 16007 ;; 16008 "std") 16009 apu_db_header=$bdb_header 16010 apu_db_lib=$bdb_libname 16011 apu_have_db=1 16012 ;; 16013 *":"*) 16014 header="`echo $found | sed -e 's/:.*$//'`" 16015 lib="`echo $found | sed -e 's/^.*://'`" 16016 16017 16018 if test "x$APRUTIL_INCLUDES" = "x"; then 16019 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 16020 APRUTIL_INCLUDES="-I$header" 16021 else 16022 apr_addto_bugger="-I$header" 16023 for i in $apr_addto_bugger; do 16024 apr_addto_duplicate="0" 16025 for j in $APRUTIL_INCLUDES; do 16026 if test "x$i" = "x$j"; then 16027 apr_addto_duplicate="1" 16028 break 16029 fi 16030 done 16031 if test $apr_addto_duplicate = "0"; then 16032 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 16033 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 16034 fi 16035 done 16036 fi 16037 16038 16039 if test "x$APRUTIL_LDFLAGS" = "x"; then 16040 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 16041 APRUTIL_LDFLAGS="-L$lib" 16042 else 16043 apr_addto_bugger="-L$lib" 16044 for i in $apr_addto_bugger; do 16045 apr_addto_duplicate="0" 16046 for j in $APRUTIL_LDFLAGS; do 16047 if test "x$i" = "x$j"; then 16048 apr_addto_duplicate="1" 16049 break 16050 fi 16051 done 16052 if test $apr_addto_duplicate = "0"; then 16053 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 16054 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 16055 fi 16056 done 16057 fi 16058 16059 apu_db_header=$bdb_header 16060 apu_db_lib=$bdb_libname 16061 apu_have_db=1 16062 ;; 16063 *) 16064 16065 if test "x$APRUTIL_INCLUDES" = "x"; then 16066 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 16067 APRUTIL_INCLUDES="-I$found/include" 16068 else 16069 apr_addto_bugger="-I$found/include" 16070 for i in $apr_addto_bugger; do 16071 apr_addto_duplicate="0" 16072 for j in $APRUTIL_INCLUDES; do 16073 if test "x$i" = "x$j"; then 16074 apr_addto_duplicate="1" 16075 break 16076 fi 16077 done 16078 if test $apr_addto_duplicate = "0"; then 16079 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 16080 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 16081 fi 16082 done 16083 fi 16084 16085 16086 if test "x$APRUTIL_LDFLAGS" = "x"; then 16087 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 16088 APRUTIL_LDFLAGS="-L$found/lib" 16089 else 16090 apr_addto_bugger="-L$found/lib" 16091 for i in $apr_addto_bugger; do 16092 apr_addto_duplicate="0" 16093 for j in $APRUTIL_LDFLAGS; do 16094 if test "x$i" = "x$j"; then 16095 apr_addto_duplicate="1" 16096 break 16097 fi 16098 done 16099 if test $apr_addto_duplicate = "0"; then 16100 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 16101 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 16102 fi 16103 done 16104 fi 16105 16106 apu_db_header=$bdb_header 16107 apu_db_lib=$bdb_libname 16108 apu_have_db=1 16109 ;; 16110 esac 16111 16112 if test "$apu_have_db" = "1"; then 16113 apu_db_version=${db_major} 16114 fi 16115 16116 if test "$apu_db_version" != "$db_major"; then 16117 as_fn_error $? "Berkeley db$db_major not found" "$LINENO" 5 16118 fi 16119 ;; 16120 db[456]) 16121 db_major=`echo "$requested" | sed -e 's/db//'` 16122 # Start version search at version x.9 16123 db_minor=9 16124 while [ $db_minor -ge 0 ] 16125 do 16126 16127 places="$check_places" 16128 db_major="$db_major" 16129 db_minor="$db_minor" 16130 if test -z "$places"; then 16131 places="std /usr/local /usr/local/BerkeleyDB.${db_major}.${db_minor} /boot/home/config" 16132 fi 16133 16134 bdb_version="${db_major}" 16135 if test ""${db_minor}"" != "-1"; then 16136 bdb_version="$bdb_version."${db_minor}"" 16137 if test ""-1"" != "-1"; then 16138 bdb_version="$bdb_version."-1"" 16139 fi 16140 fi 16141 bdb_places="$places" 16142 bdb_default_search_headers="db${db_major}${db_minor}/db.h db${db_major}/db.h db.h" 16143 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" 16144 16145 16146 apu_have_db=0 16147 16148 # Save the original values of the flags we tweak. 16149 apu_check_lib_save_libs="$LIBS" 16150 apu_check_lib_save_ldflags="$LDFLAGS" 16151 apu_check_lib_save_cppflags="$CPPFLAGS" 16152 16153 # The variable `found' is the prefix under which we've found 16154 # Berkeley DB, or `not' if we haven't found it anywhere yet. 16155 found=not 16156 for bdb_place in $bdb_places; do 16157 16158 LDFLAGS="$apu_check_lib_save_ldflags" 16159 CPPFLAGS="$apu_check_lib_save_cppflags" 16160 case "$bdb_place" in 16161 "std" ) 16162 description="the standard places" 16163 ;; 16164 *":"* ) 16165 header="`echo $bdb_place | sed -e 's/:.*$//'`" 16166 lib="`echo $bdb_place | sed -e 's/^.*://'`" 16167 CPPFLAGS="$CPPFLAGS -I$header" 16168 LDFLAGS="$LDFLAGS -L$lib" 16169 description="$header and $lib" 16170 ;; 16171 * ) 16172 if test -d $bdb_place; then 16173 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 16174 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 16175 else 16176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 16177$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 16178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 16179$as_echo "directory not found" >&6; } 16180 continue 16181 fi 16182 description="$bdb_place" 16183 ;; 16184 esac 16185 16186 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 16187 # trick to display a message instead. 16188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 16189$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 16190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 16191$as_echo "" >&6; } 16192 16193 for bdb_libname in $bdb_default_search_lib_names; do 16194 for bdb_header in $bdb_default_search_headers; do 16195 # Clear the header cache variable for each location 16196 16197 cache_id="`echo ac_cv_header_${bdb_header} \ 16198 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 16199 16200 unset $cache_id 16201 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 16202ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 16203if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16204
| 15813 # We generate a separate cache variable for each prefix and libname 15814 # we search under. That way, we avoid caching information that 15815 # changes if the user runs `configure' with a different set of 15816 # switches. 15817 15818 cache_id="`echo apu_cv_check_berkeley_db_"${db_major}"_"${db_minor}"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 15819 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 15820 15821 15822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 15823$as_echo_n "checking for -l$bdb_libname... " >&6; } 15824 if eval \${$cache_id+:} false; then : 15825 $as_echo_n "(cached) " >&6 15826else 15827 15828 15829 apu_try_berkeley_db_save_libs="$LIBS" 15830 15831 apu_check_berkeley_db_major="${db_major}" 15832 apu_check_berkeley_db_minor="${db_minor}" 15833 apu_check_berkeley_db_patch="-1" 15834 apu_try_berkeley_db_header=$bdb_header 15835 apu_try_berkeley_db_libname=$bdb_libname 15836 15837 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 15838 if test "$cross_compiling" = yes; then : 15839 apu_try_berkeley_db=yes 15840 15841else 15842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15843/* end confdefs.h. */ 15844 15845#include <stdlib.h> 15846#include <stdio.h> 15847#include <$apu_try_berkeley_db_header> 15848main () 15849{ 15850 int major, minor, patch; 15851 15852 db_version(&major, &minor, &patch); 15853 15854 /* Sanity check: ensure that db.h constants actually match the db library */ 15855 if (major != DB_VERSION_MAJOR 15856 || minor != DB_VERSION_MINOR 15857 || patch != DB_VERSION_PATCH) 15858 exit (1); 15859 15860 /* Run-time check: ensure the library claims to be the correct version. */ 15861 15862 if ($apu_check_berkeley_db_major != -1) { 15863 if (major < $apu_check_berkeley_db_major) 15864 exit (1); 15865 if (major > $apu_check_berkeley_db_major) 15866 exit (0); 15867 } 15868 15869 if ($apu_check_berkeley_db_minor != -1) { 15870 if (minor < $apu_check_berkeley_db_minor) 15871 exit (1); 15872 if (minor > $apu_check_berkeley_db_minor) 15873 exit (0); 15874 } 15875 15876 if ($apu_check_berkeley_db_patch == -1 15877 || patch >= $apu_check_berkeley_db_patch) 15878 exit (0); 15879 else 15880 exit (1); 15881} 15882 15883_ACEOF 15884if ac_fn_c_try_run "$LINENO"; then : 15885 apu_try_berkeley_db=yes 15886else 15887 apu_try_berkeley_db=no 15888fi 15889rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15890 conftest.$ac_objext conftest.beam conftest.$ac_ext 15891fi 15892 15893 15894 LIBS="$apu_try_berkeley_db_save_libs" 15895 15896 15897 eval "$cache_id=$apu_try_berkeley_db" 15898 15899fi 15900 15901 result="`eval echo '$'$cache_id`" 15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 15903$as_echo "$result" >&6; } 15904 elif test ""${db_major}"" = "1"; then 15905 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 15906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 15907$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 15908if eval \${$as_ac_Lib+:} false; then : 15909 $as_echo_n "(cached) " >&6 15910else 15911 ac_check_lib_save_LIBS=$LIBS 15912LIBS="-l$bdb_libname $LIBS" 15913cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15914/* end confdefs.h. */ 15915 15916/* Override any GCC internal prototype to avoid an error. 15917 Use char because int might match the return type of a GCC 15918 builtin and then its argument prototype would still apply. */ 15919#ifdef __cplusplus 15920extern "C" 15921#endif 15922char dbopen (); 15923int 15924main () 15925{ 15926return dbopen (); 15927 ; 15928 return 0; 15929} 15930_ACEOF 15931if ac_fn_c_try_link "$LINENO"; then : 15932 eval "$as_ac_Lib=yes" 15933else 15934 eval "$as_ac_Lib=no" 15935fi 15936rm -f core conftest.err conftest.$ac_objext \ 15937 conftest$ac_exeext conftest.$ac_ext 15938LIBS=$ac_check_lib_save_LIBS 15939fi 15940eval ac_res=\$$as_ac_Lib 15941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15942$as_echo "$ac_res" >&6; } 15943if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 15944 result=yes 15945else 15946 result=no 15947 15948fi 15949 15950 elif test ""${db_major}"" = "2"; then 15951 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 15952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 15953$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 15954if eval \${$as_ac_Lib+:} false; then : 15955 $as_echo_n "(cached) " >&6 15956else 15957 ac_check_lib_save_LIBS=$LIBS 15958LIBS="-l$bdb_libname $LIBS" 15959cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15960/* end confdefs.h. */ 15961 15962/* Override any GCC internal prototype to avoid an error. 15963 Use char because int might match the return type of a GCC 15964 builtin and then its argument prototype would still apply. */ 15965#ifdef __cplusplus 15966extern "C" 15967#endif 15968char db_open (); 15969int 15970main () 15971{ 15972return db_open (); 15973 ; 15974 return 0; 15975} 15976_ACEOF 15977if ac_fn_c_try_link "$LINENO"; then : 15978 eval "$as_ac_Lib=yes" 15979else 15980 eval "$as_ac_Lib=no" 15981fi 15982rm -f core conftest.err conftest.$ac_objext \ 15983 conftest$ac_exeext conftest.$ac_ext 15984LIBS=$ac_check_lib_save_LIBS 15985fi 15986eval ac_res=\$$as_ac_Lib 15987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15988$as_echo "$ac_res" >&6; } 15989if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 15990 result=yes 15991else 15992 result=no 15993 15994fi 15995 15996 fi 15997 15998else 15999 result="no" 16000fi 16001 16002 16003 16004 # If we found it, no need to search any more. 16005 if test "$result" = "yes"; then 16006 found="$bdb_place" 16007 break 16008 fi 16009 done 16010 test "$found" != "not" && break 16011 done 16012 test "$found" != "not" && break 16013 done 16014 16015 # Restore the original values of the flags we tweak. 16016 LDFLAGS="$apu_check_lib_save_ldflags" 16017 CPPFLAGS="$apu_check_lib_save_cppflags" 16018 16019 case "$found" in 16020 "not") 16021 apu_have_db=0 16022 ;; 16023 "std") 16024 apu_db_header=$bdb_header 16025 apu_db_lib=$bdb_libname 16026 apu_have_db=1 16027 ;; 16028 *":"*) 16029 header="`echo $found | sed -e 's/:.*$//'`" 16030 lib="`echo $found | sed -e 's/^.*://'`" 16031 16032 16033 if test "x$APRUTIL_INCLUDES" = "x"; then 16034 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 16035 APRUTIL_INCLUDES="-I$header" 16036 else 16037 apr_addto_bugger="-I$header" 16038 for i in $apr_addto_bugger; do 16039 apr_addto_duplicate="0" 16040 for j in $APRUTIL_INCLUDES; do 16041 if test "x$i" = "x$j"; then 16042 apr_addto_duplicate="1" 16043 break 16044 fi 16045 done 16046 if test $apr_addto_duplicate = "0"; then 16047 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 16048 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 16049 fi 16050 done 16051 fi 16052 16053 16054 if test "x$APRUTIL_LDFLAGS" = "x"; then 16055 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 16056 APRUTIL_LDFLAGS="-L$lib" 16057 else 16058 apr_addto_bugger="-L$lib" 16059 for i in $apr_addto_bugger; do 16060 apr_addto_duplicate="0" 16061 for j in $APRUTIL_LDFLAGS; do 16062 if test "x$i" = "x$j"; then 16063 apr_addto_duplicate="1" 16064 break 16065 fi 16066 done 16067 if test $apr_addto_duplicate = "0"; then 16068 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 16069 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 16070 fi 16071 done 16072 fi 16073 16074 apu_db_header=$bdb_header 16075 apu_db_lib=$bdb_libname 16076 apu_have_db=1 16077 ;; 16078 *) 16079 16080 if test "x$APRUTIL_INCLUDES" = "x"; then 16081 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 16082 APRUTIL_INCLUDES="-I$found/include" 16083 else 16084 apr_addto_bugger="-I$found/include" 16085 for i in $apr_addto_bugger; do 16086 apr_addto_duplicate="0" 16087 for j in $APRUTIL_INCLUDES; do 16088 if test "x$i" = "x$j"; then 16089 apr_addto_duplicate="1" 16090 break 16091 fi 16092 done 16093 if test $apr_addto_duplicate = "0"; then 16094 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 16095 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 16096 fi 16097 done 16098 fi 16099 16100 16101 if test "x$APRUTIL_LDFLAGS" = "x"; then 16102 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 16103 APRUTIL_LDFLAGS="-L$found/lib" 16104 else 16105 apr_addto_bugger="-L$found/lib" 16106 for i in $apr_addto_bugger; do 16107 apr_addto_duplicate="0" 16108 for j in $APRUTIL_LDFLAGS; do 16109 if test "x$i" = "x$j"; then 16110 apr_addto_duplicate="1" 16111 break 16112 fi 16113 done 16114 if test $apr_addto_duplicate = "0"; then 16115 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 16116 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 16117 fi 16118 done 16119 fi 16120 16121 apu_db_header=$bdb_header 16122 apu_db_lib=$bdb_libname 16123 apu_have_db=1 16124 ;; 16125 esac 16126 16127 if test "$apu_have_db" = "1"; then 16128 apu_db_version=${db_major} 16129 fi 16130 16131 if test "$apu_db_version" != "$db_major"; then 16132 as_fn_error $? "Berkeley db$db_major not found" "$LINENO" 5 16133 fi 16134 ;; 16135 db[456]) 16136 db_major=`echo "$requested" | sed -e 's/db//'` 16137 # Start version search at version x.9 16138 db_minor=9 16139 while [ $db_minor -ge 0 ] 16140 do 16141 16142 places="$check_places" 16143 db_major="$db_major" 16144 db_minor="$db_minor" 16145 if test -z "$places"; then 16146 places="std /usr/local /usr/local/BerkeleyDB.${db_major}.${db_minor} /boot/home/config" 16147 fi 16148 16149 bdb_version="${db_major}" 16150 if test ""${db_minor}"" != "-1"; then 16151 bdb_version="$bdb_version."${db_minor}"" 16152 if test ""-1"" != "-1"; then 16153 bdb_version="$bdb_version."-1"" 16154 fi 16155 fi 16156 bdb_places="$places" 16157 bdb_default_search_headers="db${db_major}${db_minor}/db.h db${db_major}/db.h db.h" 16158 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" 16159 16160 16161 apu_have_db=0 16162 16163 # Save the original values of the flags we tweak. 16164 apu_check_lib_save_libs="$LIBS" 16165 apu_check_lib_save_ldflags="$LDFLAGS" 16166 apu_check_lib_save_cppflags="$CPPFLAGS" 16167 16168 # The variable `found' is the prefix under which we've found 16169 # Berkeley DB, or `not' if we haven't found it anywhere yet. 16170 found=not 16171 for bdb_place in $bdb_places; do 16172 16173 LDFLAGS="$apu_check_lib_save_ldflags" 16174 CPPFLAGS="$apu_check_lib_save_cppflags" 16175 case "$bdb_place" in 16176 "std" ) 16177 description="the standard places" 16178 ;; 16179 *":"* ) 16180 header="`echo $bdb_place | sed -e 's/:.*$//'`" 16181 lib="`echo $bdb_place | sed -e 's/^.*://'`" 16182 CPPFLAGS="$CPPFLAGS -I$header" 16183 LDFLAGS="$LDFLAGS -L$lib" 16184 description="$header and $lib" 16185 ;; 16186 * ) 16187 if test -d $bdb_place; then 16188 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 16189 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 16190 else 16191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 16192$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 16193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 16194$as_echo "directory not found" >&6; } 16195 continue 16196 fi 16197 description="$bdb_place" 16198 ;; 16199 esac 16200 16201 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 16202 # trick to display a message instead. 16203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 16204$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 16205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 16206$as_echo "" >&6; } 16207 16208 for bdb_libname in $bdb_default_search_lib_names; do 16209 for bdb_header in $bdb_default_search_headers; do 16210 # Clear the header cache variable for each location 16211 16212 cache_id="`echo ac_cv_header_${bdb_header} \ 16213 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 16214 16215 unset $cache_id 16216 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 16217ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 16218if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16219
|
16205 if test ""${db_major}"" = "3" -o ""${db_major}"" = "4" -o ""${db_major}"" = "5"; then
| 16220 if test ""${db_major}"" = "3" -o ""${db_major}"" = "4" -o ""${db_major}"" = "5" -o ""${db_major}"" = "6"; then
|
16206 # We generate a separate cache variable for each prefix and libname 16207 # we search under. That way, we avoid caching information that 16208 # changes if the user runs `configure' with a different set of 16209 # switches. 16210 16211 cache_id="`echo apu_cv_check_berkeley_db_"${db_major}"_"${db_minor}"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 16212 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 16213 16214 16215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 16216$as_echo_n "checking for -l$bdb_libname... " >&6; } 16217 if eval \${$cache_id+:} false; then : 16218 $as_echo_n "(cached) " >&6 16219else 16220 16221 16222 apu_try_berkeley_db_save_libs="$LIBS" 16223 16224 apu_check_berkeley_db_major="${db_major}" 16225 apu_check_berkeley_db_minor="${db_minor}" 16226 apu_check_berkeley_db_patch="-1" 16227 apu_try_berkeley_db_header=$bdb_header 16228 apu_try_berkeley_db_libname=$bdb_libname 16229 16230 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 16231 if test "$cross_compiling" = yes; then : 16232 apu_try_berkeley_db=yes 16233 16234else 16235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16236/* end confdefs.h. */ 16237 16238#include <stdlib.h> 16239#include <stdio.h> 16240#include <$apu_try_berkeley_db_header> 16241main () 16242{ 16243 int major, minor, patch; 16244 16245 db_version(&major, &minor, &patch); 16246 16247 /* Sanity check: ensure that db.h constants actually match the db library */ 16248 if (major != DB_VERSION_MAJOR 16249 || minor != DB_VERSION_MINOR 16250 || patch != DB_VERSION_PATCH) 16251 exit (1); 16252 16253 /* Run-time check: ensure the library claims to be the correct version. */ 16254 16255 if ($apu_check_berkeley_db_major != -1) { 16256 if (major < $apu_check_berkeley_db_major) 16257 exit (1); 16258 if (major > $apu_check_berkeley_db_major) 16259 exit (0); 16260 } 16261 16262 if ($apu_check_berkeley_db_minor != -1) { 16263 if (minor < $apu_check_berkeley_db_minor) 16264 exit (1); 16265 if (minor > $apu_check_berkeley_db_minor) 16266 exit (0); 16267 } 16268 16269 if ($apu_check_berkeley_db_patch == -1 16270 || patch >= $apu_check_berkeley_db_patch) 16271 exit (0); 16272 else 16273 exit (1); 16274} 16275 16276_ACEOF 16277if ac_fn_c_try_run "$LINENO"; then : 16278 apu_try_berkeley_db=yes 16279else 16280 apu_try_berkeley_db=no 16281fi 16282rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16283 conftest.$ac_objext conftest.beam conftest.$ac_ext 16284fi 16285 16286 16287 LIBS="$apu_try_berkeley_db_save_libs" 16288 16289 16290 eval "$cache_id=$apu_try_berkeley_db" 16291 16292fi 16293 16294 result="`eval echo '$'$cache_id`" 16295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 16296$as_echo "$result" >&6; } 16297 elif test ""${db_major}"" = "1"; then 16298 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 16299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 16300$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 16301if eval \${$as_ac_Lib+:} false; then : 16302 $as_echo_n "(cached) " >&6 16303else 16304 ac_check_lib_save_LIBS=$LIBS 16305LIBS="-l$bdb_libname $LIBS" 16306cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16307/* end confdefs.h. */ 16308 16309/* Override any GCC internal prototype to avoid an error. 16310 Use char because int might match the return type of a GCC 16311 builtin and then its argument prototype would still apply. */ 16312#ifdef __cplusplus 16313extern "C" 16314#endif 16315char dbopen (); 16316int 16317main () 16318{ 16319return dbopen (); 16320 ; 16321 return 0; 16322} 16323_ACEOF 16324if ac_fn_c_try_link "$LINENO"; then : 16325 eval "$as_ac_Lib=yes" 16326else 16327 eval "$as_ac_Lib=no" 16328fi 16329rm -f core conftest.err conftest.$ac_objext \ 16330 conftest$ac_exeext conftest.$ac_ext 16331LIBS=$ac_check_lib_save_LIBS 16332fi 16333eval ac_res=\$$as_ac_Lib 16334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16335$as_echo "$ac_res" >&6; } 16336if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 16337 result=yes 16338else 16339 result=no 16340 16341fi 16342 16343 elif test ""${db_major}"" = "2"; then 16344 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 16345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 16346$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 16347if eval \${$as_ac_Lib+:} false; then : 16348 $as_echo_n "(cached) " >&6 16349else 16350 ac_check_lib_save_LIBS=$LIBS 16351LIBS="-l$bdb_libname $LIBS" 16352cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16353/* end confdefs.h. */ 16354 16355/* Override any GCC internal prototype to avoid an error. 16356 Use char because int might match the return type of a GCC 16357 builtin and then its argument prototype would still apply. */ 16358#ifdef __cplusplus 16359extern "C" 16360#endif 16361char db_open (); 16362int 16363main () 16364{ 16365return db_open (); 16366 ; 16367 return 0; 16368} 16369_ACEOF 16370if ac_fn_c_try_link "$LINENO"; then : 16371 eval "$as_ac_Lib=yes" 16372else 16373 eval "$as_ac_Lib=no" 16374fi 16375rm -f core conftest.err conftest.$ac_objext \ 16376 conftest$ac_exeext conftest.$ac_ext 16377LIBS=$ac_check_lib_save_LIBS 16378fi 16379eval ac_res=\$$as_ac_Lib 16380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16381$as_echo "$ac_res" >&6; } 16382if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 16383 result=yes 16384else 16385 result=no 16386 16387fi 16388 16389 fi 16390 16391else 16392 result="no" 16393fi 16394 16395 16396 16397 # If we found it, no need to search any more. 16398 if test "$result" = "yes"; then 16399 found="$bdb_place" 16400 break 16401 fi 16402 done 16403 test "$found" != "not" && break 16404 done 16405 test "$found" != "not" && break 16406 done 16407 16408 # Restore the original values of the flags we tweak. 16409 LDFLAGS="$apu_check_lib_save_ldflags" 16410 CPPFLAGS="$apu_check_lib_save_cppflags" 16411 16412 case "$found" in 16413 "not") 16414 apu_have_db=0 16415 ;; 16416 "std") 16417 apu_db_header=$bdb_header 16418 apu_db_lib=$bdb_libname 16419 apu_have_db=1 16420 ;; 16421 *":"*) 16422 header="`echo $found | sed -e 's/:.*$//'`" 16423 lib="`echo $found | sed -e 's/^.*://'`" 16424 16425 16426 if test "x$APRUTIL_INCLUDES" = "x"; then 16427 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 16428 APRUTIL_INCLUDES="-I$header" 16429 else 16430 apr_addto_bugger="-I$header" 16431 for i in $apr_addto_bugger; do 16432 apr_addto_duplicate="0" 16433 for j in $APRUTIL_INCLUDES; do 16434 if test "x$i" = "x$j"; then 16435 apr_addto_duplicate="1" 16436 break 16437 fi 16438 done 16439 if test $apr_addto_duplicate = "0"; then 16440 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 16441 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 16442 fi 16443 done 16444 fi 16445 16446 16447 if test "x$APRUTIL_LDFLAGS" = "x"; then 16448 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 16449 APRUTIL_LDFLAGS="-L$lib" 16450 else 16451 apr_addto_bugger="-L$lib" 16452 for i in $apr_addto_bugger; do 16453 apr_addto_duplicate="0" 16454 for j in $APRUTIL_LDFLAGS; do 16455 if test "x$i" = "x$j"; then 16456 apr_addto_duplicate="1" 16457 break 16458 fi 16459 done 16460 if test $apr_addto_duplicate = "0"; then 16461 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 16462 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 16463 fi 16464 done 16465 fi 16466 16467 apu_db_header=$bdb_header 16468 apu_db_lib=$bdb_libname 16469 apu_have_db=1 16470 ;; 16471 *) 16472 16473 if test "x$APRUTIL_INCLUDES" = "x"; then 16474 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 16475 APRUTIL_INCLUDES="-I$found/include" 16476 else 16477 apr_addto_bugger="-I$found/include" 16478 for i in $apr_addto_bugger; do 16479 apr_addto_duplicate="0" 16480 for j in $APRUTIL_INCLUDES; do 16481 if test "x$i" = "x$j"; then 16482 apr_addto_duplicate="1" 16483 break 16484 fi 16485 done 16486 if test $apr_addto_duplicate = "0"; then 16487 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 16488 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 16489 fi 16490 done 16491 fi 16492 16493 16494 if test "x$APRUTIL_LDFLAGS" = "x"; then 16495 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 16496 APRUTIL_LDFLAGS="-L$found/lib" 16497 else 16498 apr_addto_bugger="-L$found/lib" 16499 for i in $apr_addto_bugger; do 16500 apr_addto_duplicate="0" 16501 for j in $APRUTIL_LDFLAGS; do 16502 if test "x$i" = "x$j"; then 16503 apr_addto_duplicate="1" 16504 break 16505 fi 16506 done 16507 if test $apr_addto_duplicate = "0"; then 16508 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 16509 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 16510 fi 16511 done 16512 fi 16513 16514 apu_db_header=$bdb_header 16515 apu_db_lib=$bdb_libname 16516 apu_have_db=1 16517 ;; 16518 esac 16519 16520 if test "$apu_have_db" = "1"; then 16521 apu_db_version=${db_major} 16522 fi 16523 16524 if test "$apu_have_db" = "1"; then 16525 break 16526 fi 16527 db_minor=`expr $db_minor - 1` 16528 done 16529 if test "$apu_db_version" != "$db_major"; then 16530 as_fn_error $? "Berkeley db$db_major not found" "$LINENO" 5 16531 fi 16532 ;; 16533 default) 16534 16535 all_places="$check_places" 16536
| 16221 # We generate a separate cache variable for each prefix and libname 16222 # we search under. That way, we avoid caching information that 16223 # changes if the user runs `configure' with a different set of 16224 # switches. 16225 16226 cache_id="`echo apu_cv_check_berkeley_db_"${db_major}"_"${db_minor}"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 16227 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 16228 16229 16230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 16231$as_echo_n "checking for -l$bdb_libname... " >&6; } 16232 if eval \${$cache_id+:} false; then : 16233 $as_echo_n "(cached) " >&6 16234else 16235 16236 16237 apu_try_berkeley_db_save_libs="$LIBS" 16238 16239 apu_check_berkeley_db_major="${db_major}" 16240 apu_check_berkeley_db_minor="${db_minor}" 16241 apu_check_berkeley_db_patch="-1" 16242 apu_try_berkeley_db_header=$bdb_header 16243 apu_try_berkeley_db_libname=$bdb_libname 16244 16245 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 16246 if test "$cross_compiling" = yes; then : 16247 apu_try_berkeley_db=yes 16248 16249else 16250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16251/* end confdefs.h. */ 16252 16253#include <stdlib.h> 16254#include <stdio.h> 16255#include <$apu_try_berkeley_db_header> 16256main () 16257{ 16258 int major, minor, patch; 16259 16260 db_version(&major, &minor, &patch); 16261 16262 /* Sanity check: ensure that db.h constants actually match the db library */ 16263 if (major != DB_VERSION_MAJOR 16264 || minor != DB_VERSION_MINOR 16265 || patch != DB_VERSION_PATCH) 16266 exit (1); 16267 16268 /* Run-time check: ensure the library claims to be the correct version. */ 16269 16270 if ($apu_check_berkeley_db_major != -1) { 16271 if (major < $apu_check_berkeley_db_major) 16272 exit (1); 16273 if (major > $apu_check_berkeley_db_major) 16274 exit (0); 16275 } 16276 16277 if ($apu_check_berkeley_db_minor != -1) { 16278 if (minor < $apu_check_berkeley_db_minor) 16279 exit (1); 16280 if (minor > $apu_check_berkeley_db_minor) 16281 exit (0); 16282 } 16283 16284 if ($apu_check_berkeley_db_patch == -1 16285 || patch >= $apu_check_berkeley_db_patch) 16286 exit (0); 16287 else 16288 exit (1); 16289} 16290 16291_ACEOF 16292if ac_fn_c_try_run "$LINENO"; then : 16293 apu_try_berkeley_db=yes 16294else 16295 apu_try_berkeley_db=no 16296fi 16297rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16298 conftest.$ac_objext conftest.beam conftest.$ac_ext 16299fi 16300 16301 16302 LIBS="$apu_try_berkeley_db_save_libs" 16303 16304 16305 eval "$cache_id=$apu_try_berkeley_db" 16306 16307fi 16308 16309 result="`eval echo '$'$cache_id`" 16310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 16311$as_echo "$result" >&6; } 16312 elif test ""${db_major}"" = "1"; then 16313 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 16314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 16315$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 16316if eval \${$as_ac_Lib+:} false; then : 16317 $as_echo_n "(cached) " >&6 16318else 16319 ac_check_lib_save_LIBS=$LIBS 16320LIBS="-l$bdb_libname $LIBS" 16321cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16322/* end confdefs.h. */ 16323 16324/* Override any GCC internal prototype to avoid an error. 16325 Use char because int might match the return type of a GCC 16326 builtin and then its argument prototype would still apply. */ 16327#ifdef __cplusplus 16328extern "C" 16329#endif 16330char dbopen (); 16331int 16332main () 16333{ 16334return dbopen (); 16335 ; 16336 return 0; 16337} 16338_ACEOF 16339if ac_fn_c_try_link "$LINENO"; then : 16340 eval "$as_ac_Lib=yes" 16341else 16342 eval "$as_ac_Lib=no" 16343fi 16344rm -f core conftest.err conftest.$ac_objext \ 16345 conftest$ac_exeext conftest.$ac_ext 16346LIBS=$ac_check_lib_save_LIBS 16347fi 16348eval ac_res=\$$as_ac_Lib 16349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16350$as_echo "$ac_res" >&6; } 16351if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 16352 result=yes 16353else 16354 result=no 16355 16356fi 16357 16358 elif test ""${db_major}"" = "2"; then 16359 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 16360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 16361$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 16362if eval \${$as_ac_Lib+:} false; then : 16363 $as_echo_n "(cached) " >&6 16364else 16365 ac_check_lib_save_LIBS=$LIBS 16366LIBS="-l$bdb_libname $LIBS" 16367cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16368/* end confdefs.h. */ 16369 16370/* Override any GCC internal prototype to avoid an error. 16371 Use char because int might match the return type of a GCC 16372 builtin and then its argument prototype would still apply. */ 16373#ifdef __cplusplus 16374extern "C" 16375#endif 16376char db_open (); 16377int 16378main () 16379{ 16380return db_open (); 16381 ; 16382 return 0; 16383} 16384_ACEOF 16385if ac_fn_c_try_link "$LINENO"; then : 16386 eval "$as_ac_Lib=yes" 16387else 16388 eval "$as_ac_Lib=no" 16389fi 16390rm -f core conftest.err conftest.$ac_objext \ 16391 conftest$ac_exeext conftest.$ac_ext 16392LIBS=$ac_check_lib_save_LIBS 16393fi 16394eval ac_res=\$$as_ac_Lib 16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16396$as_echo "$ac_res" >&6; } 16397if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 16398 result=yes 16399else 16400 result=no 16401 16402fi 16403 16404 fi 16405 16406else 16407 result="no" 16408fi 16409 16410 16411 16412 # If we found it, no need to search any more. 16413 if test "$result" = "yes"; then 16414 found="$bdb_place" 16415 break 16416 fi 16417 done 16418 test "$found" != "not" && break 16419 done 16420 test "$found" != "not" && break 16421 done 16422 16423 # Restore the original values of the flags we tweak. 16424 LDFLAGS="$apu_check_lib_save_ldflags" 16425 CPPFLAGS="$apu_check_lib_save_cppflags" 16426 16427 case "$found" in 16428 "not") 16429 apu_have_db=0 16430 ;; 16431 "std") 16432 apu_db_header=$bdb_header 16433 apu_db_lib=$bdb_libname 16434 apu_have_db=1 16435 ;; 16436 *":"*) 16437 header="`echo $found | sed -e 's/:.*$//'`" 16438 lib="`echo $found | sed -e 's/^.*://'`" 16439 16440 16441 if test "x$APRUTIL_INCLUDES" = "x"; then 16442 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 16443 APRUTIL_INCLUDES="-I$header" 16444 else 16445 apr_addto_bugger="-I$header" 16446 for i in $apr_addto_bugger; do 16447 apr_addto_duplicate="0" 16448 for j in $APRUTIL_INCLUDES; do 16449 if test "x$i" = "x$j"; then 16450 apr_addto_duplicate="1" 16451 break 16452 fi 16453 done 16454 if test $apr_addto_duplicate = "0"; then 16455 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 16456 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 16457 fi 16458 done 16459 fi 16460 16461 16462 if test "x$APRUTIL_LDFLAGS" = "x"; then 16463 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 16464 APRUTIL_LDFLAGS="-L$lib" 16465 else 16466 apr_addto_bugger="-L$lib" 16467 for i in $apr_addto_bugger; do 16468 apr_addto_duplicate="0" 16469 for j in $APRUTIL_LDFLAGS; do 16470 if test "x$i" = "x$j"; then 16471 apr_addto_duplicate="1" 16472 break 16473 fi 16474 done 16475 if test $apr_addto_duplicate = "0"; then 16476 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 16477 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 16478 fi 16479 done 16480 fi 16481 16482 apu_db_header=$bdb_header 16483 apu_db_lib=$bdb_libname 16484 apu_have_db=1 16485 ;; 16486 *) 16487 16488 if test "x$APRUTIL_INCLUDES" = "x"; then 16489 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 16490 APRUTIL_INCLUDES="-I$found/include" 16491 else 16492 apr_addto_bugger="-I$found/include" 16493 for i in $apr_addto_bugger; do 16494 apr_addto_duplicate="0" 16495 for j in $APRUTIL_INCLUDES; do 16496 if test "x$i" = "x$j"; then 16497 apr_addto_duplicate="1" 16498 break 16499 fi 16500 done 16501 if test $apr_addto_duplicate = "0"; then 16502 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 16503 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 16504 fi 16505 done 16506 fi 16507 16508 16509 if test "x$APRUTIL_LDFLAGS" = "x"; then 16510 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 16511 APRUTIL_LDFLAGS="-L$found/lib" 16512 else 16513 apr_addto_bugger="-L$found/lib" 16514 for i in $apr_addto_bugger; do 16515 apr_addto_duplicate="0" 16516 for j in $APRUTIL_LDFLAGS; do 16517 if test "x$i" = "x$j"; then 16518 apr_addto_duplicate="1" 16519 break 16520 fi 16521 done 16522 if test $apr_addto_duplicate = "0"; then 16523 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 16524 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 16525 fi 16526 done 16527 fi 16528 16529 apu_db_header=$bdb_header 16530 apu_db_lib=$bdb_libname 16531 apu_have_db=1 16532 ;; 16533 esac 16534 16535 if test "$apu_have_db" = "1"; then 16536 apu_db_version=${db_major} 16537 fi 16538 16539 if test "$apu_have_db" = "1"; then 16540 break 16541 fi 16542 db_minor=`expr $db_minor - 1` 16543 done 16544 if test "$apu_db_version" != "$db_major"; then 16545 as_fn_error $? "Berkeley db$db_major not found" "$LINENO" 5 16546 fi 16547 ;; 16548 default) 16549 16550 all_places="$check_places" 16551
|
16537 # Start version search at version 5.9 16538 db_version=59
| 16552 # Start version search at version 6.9 16553 db_version=69
|
16539 while [ $db_version -ge 40 ] 16540 do 16541 db_major=`echo $db_version | sed -e 's/.$//'` 16542 db_minor=`echo $db_version | sed -e 's/.//'` 16543 16544 places="$all_places" 16545 db_major="$db_major" 16546 db_minor="$db_minor" 16547 if test -z "$places"; then 16548 places="std /usr/local /usr/local/BerkeleyDB.${db_major}.${db_minor} /boot/home/config" 16549 fi 16550 16551 bdb_version="${db_major}" 16552 if test ""${db_minor}"" != "-1"; then 16553 bdb_version="$bdb_version."${db_minor}"" 16554 if test ""-1"" != "-1"; then 16555 bdb_version="$bdb_version."-1"" 16556 fi 16557 fi 16558 bdb_places="$places" 16559 bdb_default_search_headers="db${db_major}${db_minor}/db.h db${db_major}/db.h db.h" 16560 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" 16561 16562 16563 apu_have_db=0 16564 16565 # Save the original values of the flags we tweak. 16566 apu_check_lib_save_libs="$LIBS" 16567 apu_check_lib_save_ldflags="$LDFLAGS" 16568 apu_check_lib_save_cppflags="$CPPFLAGS" 16569 16570 # The variable `found' is the prefix under which we've found 16571 # Berkeley DB, or `not' if we haven't found it anywhere yet. 16572 found=not 16573 for bdb_place in $bdb_places; do 16574 16575 LDFLAGS="$apu_check_lib_save_ldflags" 16576 CPPFLAGS="$apu_check_lib_save_cppflags" 16577 case "$bdb_place" in 16578 "std" ) 16579 description="the standard places" 16580 ;; 16581 *":"* ) 16582 header="`echo $bdb_place | sed -e 's/:.*$//'`" 16583 lib="`echo $bdb_place | sed -e 's/^.*://'`" 16584 CPPFLAGS="$CPPFLAGS -I$header" 16585 LDFLAGS="$LDFLAGS -L$lib" 16586 description="$header and $lib" 16587 ;; 16588 * ) 16589 if test -d $bdb_place; then 16590 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 16591 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 16592 else 16593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 16594$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 16595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 16596$as_echo "directory not found" >&6; } 16597 continue 16598 fi 16599 description="$bdb_place" 16600 ;; 16601 esac 16602 16603 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 16604 # trick to display a message instead. 16605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 16606$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 16607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 16608$as_echo "" >&6; } 16609 16610 for bdb_libname in $bdb_default_search_lib_names; do 16611 for bdb_header in $bdb_default_search_headers; do 16612 # Clear the header cache variable for each location 16613 16614 cache_id="`echo ac_cv_header_${bdb_header} \ 16615 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 16616 16617 unset $cache_id 16618 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 16619ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 16620if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16621
| 16554 while [ $db_version -ge 40 ] 16555 do 16556 db_major=`echo $db_version | sed -e 's/.$//'` 16557 db_minor=`echo $db_version | sed -e 's/.//'` 16558 16559 places="$all_places" 16560 db_major="$db_major" 16561 db_minor="$db_minor" 16562 if test -z "$places"; then 16563 places="std /usr/local /usr/local/BerkeleyDB.${db_major}.${db_minor} /boot/home/config" 16564 fi 16565 16566 bdb_version="${db_major}" 16567 if test ""${db_minor}"" != "-1"; then 16568 bdb_version="$bdb_version."${db_minor}"" 16569 if test ""-1"" != "-1"; then 16570 bdb_version="$bdb_version."-1"" 16571 fi 16572 fi 16573 bdb_places="$places" 16574 bdb_default_search_headers="db${db_major}${db_minor}/db.h db${db_major}/db.h db.h" 16575 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" 16576 16577 16578 apu_have_db=0 16579 16580 # Save the original values of the flags we tweak. 16581 apu_check_lib_save_libs="$LIBS" 16582 apu_check_lib_save_ldflags="$LDFLAGS" 16583 apu_check_lib_save_cppflags="$CPPFLAGS" 16584 16585 # The variable `found' is the prefix under which we've found 16586 # Berkeley DB, or `not' if we haven't found it anywhere yet. 16587 found=not 16588 for bdb_place in $bdb_places; do 16589 16590 LDFLAGS="$apu_check_lib_save_ldflags" 16591 CPPFLAGS="$apu_check_lib_save_cppflags" 16592 case "$bdb_place" in 16593 "std" ) 16594 description="the standard places" 16595 ;; 16596 *":"* ) 16597 header="`echo $bdb_place | sed -e 's/:.*$//'`" 16598 lib="`echo $bdb_place | sed -e 's/^.*://'`" 16599 CPPFLAGS="$CPPFLAGS -I$header" 16600 LDFLAGS="$LDFLAGS -L$lib" 16601 description="$header and $lib" 16602 ;; 16603 * ) 16604 if test -d $bdb_place; then 16605 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 16606 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 16607 else 16608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 16609$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 16610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 16611$as_echo "directory not found" >&6; } 16612 continue 16613 fi 16614 description="$bdb_place" 16615 ;; 16616 esac 16617 16618 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 16619 # trick to display a message instead. 16620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 16621$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 16622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 16623$as_echo "" >&6; } 16624 16625 for bdb_libname in $bdb_default_search_lib_names; do 16626 for bdb_header in $bdb_default_search_headers; do 16627 # Clear the header cache variable for each location 16628 16629 cache_id="`echo ac_cv_header_${bdb_header} \ 16630 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 16631 16632 unset $cache_id 16633 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 16634ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 16635if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16636
|
16622 if test ""${db_major}"" = "3" -o ""${db_major}"" = "4" -o ""${db_major}"" = "5"; then
| 16637 if test ""${db_major}"" = "3" -o ""${db_major}"" = "4" -o ""${db_major}"" = "5" -o ""${db_major}"" = "6"; then
|
16623 # We generate a separate cache variable for each prefix and libname 16624 # we search under. That way, we avoid caching information that 16625 # changes if the user runs `configure' with a different set of 16626 # switches. 16627 16628 cache_id="`echo apu_cv_check_berkeley_db_"${db_major}"_"${db_minor}"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 16629 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 16630 16631 16632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 16633$as_echo_n "checking for -l$bdb_libname... " >&6; } 16634 if eval \${$cache_id+:} false; then : 16635 $as_echo_n "(cached) " >&6 16636else 16637 16638 16639 apu_try_berkeley_db_save_libs="$LIBS" 16640 16641 apu_check_berkeley_db_major="${db_major}" 16642 apu_check_berkeley_db_minor="${db_minor}" 16643 apu_check_berkeley_db_patch="-1" 16644 apu_try_berkeley_db_header=$bdb_header 16645 apu_try_berkeley_db_libname=$bdb_libname 16646 16647 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 16648 if test "$cross_compiling" = yes; then : 16649 apu_try_berkeley_db=yes 16650 16651else 16652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16653/* end confdefs.h. */ 16654 16655#include <stdlib.h> 16656#include <stdio.h> 16657#include <$apu_try_berkeley_db_header> 16658main () 16659{ 16660 int major, minor, patch; 16661 16662 db_version(&major, &minor, &patch); 16663 16664 /* Sanity check: ensure that db.h constants actually match the db library */ 16665 if (major != DB_VERSION_MAJOR 16666 || minor != DB_VERSION_MINOR 16667 || patch != DB_VERSION_PATCH) 16668 exit (1); 16669 16670 /* Run-time check: ensure the library claims to be the correct version. */ 16671 16672 if ($apu_check_berkeley_db_major != -1) { 16673 if (major < $apu_check_berkeley_db_major) 16674 exit (1); 16675 if (major > $apu_check_berkeley_db_major) 16676 exit (0); 16677 } 16678 16679 if ($apu_check_berkeley_db_minor != -1) { 16680 if (minor < $apu_check_berkeley_db_minor) 16681 exit (1); 16682 if (minor > $apu_check_berkeley_db_minor) 16683 exit (0); 16684 } 16685 16686 if ($apu_check_berkeley_db_patch == -1 16687 || patch >= $apu_check_berkeley_db_patch) 16688 exit (0); 16689 else 16690 exit (1); 16691} 16692 16693_ACEOF 16694if ac_fn_c_try_run "$LINENO"; then : 16695 apu_try_berkeley_db=yes 16696else 16697 apu_try_berkeley_db=no 16698fi 16699rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16700 conftest.$ac_objext conftest.beam conftest.$ac_ext 16701fi 16702 16703 16704 LIBS="$apu_try_berkeley_db_save_libs" 16705 16706 16707 eval "$cache_id=$apu_try_berkeley_db" 16708 16709fi 16710 16711 result="`eval echo '$'$cache_id`" 16712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 16713$as_echo "$result" >&6; } 16714 elif test ""${db_major}"" = "1"; then 16715 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 16716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 16717$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 16718if eval \${$as_ac_Lib+:} false; then : 16719 $as_echo_n "(cached) " >&6 16720else 16721 ac_check_lib_save_LIBS=$LIBS 16722LIBS="-l$bdb_libname $LIBS" 16723cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16724/* end confdefs.h. */ 16725 16726/* Override any GCC internal prototype to avoid an error. 16727 Use char because int might match the return type of a GCC 16728 builtin and then its argument prototype would still apply. */ 16729#ifdef __cplusplus 16730extern "C" 16731#endif 16732char dbopen (); 16733int 16734main () 16735{ 16736return dbopen (); 16737 ; 16738 return 0; 16739} 16740_ACEOF 16741if ac_fn_c_try_link "$LINENO"; then : 16742 eval "$as_ac_Lib=yes" 16743else 16744 eval "$as_ac_Lib=no" 16745fi 16746rm -f core conftest.err conftest.$ac_objext \ 16747 conftest$ac_exeext conftest.$ac_ext 16748LIBS=$ac_check_lib_save_LIBS 16749fi 16750eval ac_res=\$$as_ac_Lib 16751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16752$as_echo "$ac_res" >&6; } 16753if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 16754 result=yes 16755else 16756 result=no 16757 16758fi 16759 16760 elif test ""${db_major}"" = "2"; then 16761 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 16762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 16763$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 16764if eval \${$as_ac_Lib+:} false; then : 16765 $as_echo_n "(cached) " >&6 16766else 16767 ac_check_lib_save_LIBS=$LIBS 16768LIBS="-l$bdb_libname $LIBS" 16769cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16770/* end confdefs.h. */ 16771 16772/* Override any GCC internal prototype to avoid an error. 16773 Use char because int might match the return type of a GCC 16774 builtin and then its argument prototype would still apply. */ 16775#ifdef __cplusplus 16776extern "C" 16777#endif 16778char db_open (); 16779int 16780main () 16781{ 16782return db_open (); 16783 ; 16784 return 0; 16785} 16786_ACEOF 16787if ac_fn_c_try_link "$LINENO"; then : 16788 eval "$as_ac_Lib=yes" 16789else 16790 eval "$as_ac_Lib=no" 16791fi 16792rm -f core conftest.err conftest.$ac_objext \ 16793 conftest$ac_exeext conftest.$ac_ext 16794LIBS=$ac_check_lib_save_LIBS 16795fi 16796eval ac_res=\$$as_ac_Lib 16797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16798$as_echo "$ac_res" >&6; } 16799if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 16800 result=yes 16801else 16802 result=no 16803 16804fi 16805 16806 fi 16807 16808else 16809 result="no" 16810fi 16811 16812 16813 16814 # If we found it, no need to search any more. 16815 if test "$result" = "yes"; then 16816 found="$bdb_place" 16817 break 16818 fi 16819 done 16820 test "$found" != "not" && break 16821 done 16822 test "$found" != "not" && break 16823 done 16824 16825 # Restore the original values of the flags we tweak. 16826 LDFLAGS="$apu_check_lib_save_ldflags" 16827 CPPFLAGS="$apu_check_lib_save_cppflags" 16828 16829 case "$found" in 16830 "not") 16831 apu_have_db=0 16832 ;; 16833 "std") 16834 apu_db_header=$bdb_header 16835 apu_db_lib=$bdb_libname 16836 apu_have_db=1 16837 ;; 16838 *":"*) 16839 header="`echo $found | sed -e 's/:.*$//'`" 16840 lib="`echo $found | sed -e 's/^.*://'`" 16841 16842 16843 if test "x$APRUTIL_INCLUDES" = "x"; then 16844 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 16845 APRUTIL_INCLUDES="-I$header" 16846 else 16847 apr_addto_bugger="-I$header" 16848 for i in $apr_addto_bugger; do 16849 apr_addto_duplicate="0" 16850 for j in $APRUTIL_INCLUDES; do 16851 if test "x$i" = "x$j"; then 16852 apr_addto_duplicate="1" 16853 break 16854 fi 16855 done 16856 if test $apr_addto_duplicate = "0"; then 16857 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 16858 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 16859 fi 16860 done 16861 fi 16862 16863 16864 if test "x$APRUTIL_LDFLAGS" = "x"; then 16865 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 16866 APRUTIL_LDFLAGS="-L$lib" 16867 else 16868 apr_addto_bugger="-L$lib" 16869 for i in $apr_addto_bugger; do 16870 apr_addto_duplicate="0" 16871 for j in $APRUTIL_LDFLAGS; do 16872 if test "x$i" = "x$j"; then 16873 apr_addto_duplicate="1" 16874 break 16875 fi 16876 done 16877 if test $apr_addto_duplicate = "0"; then 16878 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 16879 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 16880 fi 16881 done 16882 fi 16883 16884 apu_db_header=$bdb_header 16885 apu_db_lib=$bdb_libname 16886 apu_have_db=1 16887 ;; 16888 *) 16889 16890 if test "x$APRUTIL_INCLUDES" = "x"; then 16891 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 16892 APRUTIL_INCLUDES="-I$found/include" 16893 else 16894 apr_addto_bugger="-I$found/include" 16895 for i in $apr_addto_bugger; do 16896 apr_addto_duplicate="0" 16897 for j in $APRUTIL_INCLUDES; do 16898 if test "x$i" = "x$j"; then 16899 apr_addto_duplicate="1" 16900 break 16901 fi 16902 done 16903 if test $apr_addto_duplicate = "0"; then 16904 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 16905 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 16906 fi 16907 done 16908 fi 16909 16910 16911 if test "x$APRUTIL_LDFLAGS" = "x"; then 16912 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 16913 APRUTIL_LDFLAGS="-L$found/lib" 16914 else 16915 apr_addto_bugger="-L$found/lib" 16916 for i in $apr_addto_bugger; do 16917 apr_addto_duplicate="0" 16918 for j in $APRUTIL_LDFLAGS; do 16919 if test "x$i" = "x$j"; then 16920 apr_addto_duplicate="1" 16921 break 16922 fi 16923 done 16924 if test $apr_addto_duplicate = "0"; then 16925 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 16926 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 16927 fi 16928 done 16929 fi 16930 16931 apu_db_header=$bdb_header 16932 apu_db_lib=$bdb_libname 16933 apu_have_db=1 16934 ;; 16935 esac 16936 16937 if test "$apu_have_db" = "1"; then 16938 apu_db_version=${db_major} 16939 fi 16940 16941 if test "$apu_have_db" = "1"; then 16942 break 16943 fi 16944 db_version=`expr $db_version - 1` 16945 done 16946 if test "$apu_have_db" = "0"; then 16947 16948 places="$all_places" 16949 if test -z "$places"; then 16950 places="std" 16951 fi 16952 16953 bdb_version=3 16954 if test "-1" != "-1"; then 16955 bdb_version="$bdb_version.-1" 16956 if test "-1" != "-1"; then 16957 bdb_version="$bdb_version.-1" 16958 fi 16959 fi 16960 bdb_places="$places" 16961 bdb_default_search_headers="db3/db.h db.h" 16962 bdb_default_search_lib_names="db3 db" 16963 16964 16965 apu_have_db=0 16966 16967 # Save the original values of the flags we tweak. 16968 apu_check_lib_save_libs="$LIBS" 16969 apu_check_lib_save_ldflags="$LDFLAGS" 16970 apu_check_lib_save_cppflags="$CPPFLAGS" 16971 16972 # The variable `found' is the prefix under which we've found 16973 # Berkeley DB, or `not' if we haven't found it anywhere yet. 16974 found=not 16975 for bdb_place in $bdb_places; do 16976 16977 LDFLAGS="$apu_check_lib_save_ldflags" 16978 CPPFLAGS="$apu_check_lib_save_cppflags" 16979 case "$bdb_place" in 16980 "std" ) 16981 description="the standard places" 16982 ;; 16983 *":"* ) 16984 header="`echo $bdb_place | sed -e 's/:.*$//'`" 16985 lib="`echo $bdb_place | sed -e 's/^.*://'`" 16986 CPPFLAGS="$CPPFLAGS -I$header" 16987 LDFLAGS="$LDFLAGS -L$lib" 16988 description="$header and $lib" 16989 ;; 16990 * ) 16991 if test -d $bdb_place; then 16992 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 16993 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 16994 else 16995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 16996$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 16997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 16998$as_echo "directory not found" >&6; } 16999 continue 17000 fi 17001 description="$bdb_place" 17002 ;; 17003 esac 17004 17005 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 17006 # trick to display a message instead. 17007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 17008$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 17009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 17010$as_echo "" >&6; } 17011 17012 for bdb_libname in $bdb_default_search_lib_names; do 17013 for bdb_header in $bdb_default_search_headers; do 17014 # Clear the header cache variable for each location 17015 17016 cache_id="`echo ac_cv_header_${bdb_header} \ 17017 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 17018 17019 unset $cache_id 17020 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 17021ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 17022if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17023
| 16638 # We generate a separate cache variable for each prefix and libname 16639 # we search under. That way, we avoid caching information that 16640 # changes if the user runs `configure' with a different set of 16641 # switches. 16642 16643 cache_id="`echo apu_cv_check_berkeley_db_"${db_major}"_"${db_minor}"_"-1"_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 16644 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 16645 16646 16647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 16648$as_echo_n "checking for -l$bdb_libname... " >&6; } 16649 if eval \${$cache_id+:} false; then : 16650 $as_echo_n "(cached) " >&6 16651else 16652 16653 16654 apu_try_berkeley_db_save_libs="$LIBS" 16655 16656 apu_check_berkeley_db_major="${db_major}" 16657 apu_check_berkeley_db_minor="${db_minor}" 16658 apu_check_berkeley_db_patch="-1" 16659 apu_try_berkeley_db_header=$bdb_header 16660 apu_try_berkeley_db_libname=$bdb_libname 16661 16662 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 16663 if test "$cross_compiling" = yes; then : 16664 apu_try_berkeley_db=yes 16665 16666else 16667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16668/* end confdefs.h. */ 16669 16670#include <stdlib.h> 16671#include <stdio.h> 16672#include <$apu_try_berkeley_db_header> 16673main () 16674{ 16675 int major, minor, patch; 16676 16677 db_version(&major, &minor, &patch); 16678 16679 /* Sanity check: ensure that db.h constants actually match the db library */ 16680 if (major != DB_VERSION_MAJOR 16681 || minor != DB_VERSION_MINOR 16682 || patch != DB_VERSION_PATCH) 16683 exit (1); 16684 16685 /* Run-time check: ensure the library claims to be the correct version. */ 16686 16687 if ($apu_check_berkeley_db_major != -1) { 16688 if (major < $apu_check_berkeley_db_major) 16689 exit (1); 16690 if (major > $apu_check_berkeley_db_major) 16691 exit (0); 16692 } 16693 16694 if ($apu_check_berkeley_db_minor != -1) { 16695 if (minor < $apu_check_berkeley_db_minor) 16696 exit (1); 16697 if (minor > $apu_check_berkeley_db_minor) 16698 exit (0); 16699 } 16700 16701 if ($apu_check_berkeley_db_patch == -1 16702 || patch >= $apu_check_berkeley_db_patch) 16703 exit (0); 16704 else 16705 exit (1); 16706} 16707 16708_ACEOF 16709if ac_fn_c_try_run "$LINENO"; then : 16710 apu_try_berkeley_db=yes 16711else 16712 apu_try_berkeley_db=no 16713fi 16714rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16715 conftest.$ac_objext conftest.beam conftest.$ac_ext 16716fi 16717 16718 16719 LIBS="$apu_try_berkeley_db_save_libs" 16720 16721 16722 eval "$cache_id=$apu_try_berkeley_db" 16723 16724fi 16725 16726 result="`eval echo '$'$cache_id`" 16727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 16728$as_echo "$result" >&6; } 16729 elif test ""${db_major}"" = "1"; then 16730 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 16731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 16732$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 16733if eval \${$as_ac_Lib+:} false; then : 16734 $as_echo_n "(cached) " >&6 16735else 16736 ac_check_lib_save_LIBS=$LIBS 16737LIBS="-l$bdb_libname $LIBS" 16738cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16739/* end confdefs.h. */ 16740 16741/* Override any GCC internal prototype to avoid an error. 16742 Use char because int might match the return type of a GCC 16743 builtin and then its argument prototype would still apply. */ 16744#ifdef __cplusplus 16745extern "C" 16746#endif 16747char dbopen (); 16748int 16749main () 16750{ 16751return dbopen (); 16752 ; 16753 return 0; 16754} 16755_ACEOF 16756if ac_fn_c_try_link "$LINENO"; then : 16757 eval "$as_ac_Lib=yes" 16758else 16759 eval "$as_ac_Lib=no" 16760fi 16761rm -f core conftest.err conftest.$ac_objext \ 16762 conftest$ac_exeext conftest.$ac_ext 16763LIBS=$ac_check_lib_save_LIBS 16764fi 16765eval ac_res=\$$as_ac_Lib 16766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16767$as_echo "$ac_res" >&6; } 16768if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 16769 result=yes 16770else 16771 result=no 16772 16773fi 16774 16775 elif test ""${db_major}"" = "2"; then 16776 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 16777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 16778$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 16779if eval \${$as_ac_Lib+:} false; then : 16780 $as_echo_n "(cached) " >&6 16781else 16782 ac_check_lib_save_LIBS=$LIBS 16783LIBS="-l$bdb_libname $LIBS" 16784cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16785/* end confdefs.h. */ 16786 16787/* Override any GCC internal prototype to avoid an error. 16788 Use char because int might match the return type of a GCC 16789 builtin and then its argument prototype would still apply. */ 16790#ifdef __cplusplus 16791extern "C" 16792#endif 16793char db_open (); 16794int 16795main () 16796{ 16797return db_open (); 16798 ; 16799 return 0; 16800} 16801_ACEOF 16802if ac_fn_c_try_link "$LINENO"; then : 16803 eval "$as_ac_Lib=yes" 16804else 16805 eval "$as_ac_Lib=no" 16806fi 16807rm -f core conftest.err conftest.$ac_objext \ 16808 conftest$ac_exeext conftest.$ac_ext 16809LIBS=$ac_check_lib_save_LIBS 16810fi 16811eval ac_res=\$$as_ac_Lib 16812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16813$as_echo "$ac_res" >&6; } 16814if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 16815 result=yes 16816else 16817 result=no 16818 16819fi 16820 16821 fi 16822 16823else 16824 result="no" 16825fi 16826 16827 16828 16829 # If we found it, no need to search any more. 16830 if test "$result" = "yes"; then 16831 found="$bdb_place" 16832 break 16833 fi 16834 done 16835 test "$found" != "not" && break 16836 done 16837 test "$found" != "not" && break 16838 done 16839 16840 # Restore the original values of the flags we tweak. 16841 LDFLAGS="$apu_check_lib_save_ldflags" 16842 CPPFLAGS="$apu_check_lib_save_cppflags" 16843 16844 case "$found" in 16845 "not") 16846 apu_have_db=0 16847 ;; 16848 "std") 16849 apu_db_header=$bdb_header 16850 apu_db_lib=$bdb_libname 16851 apu_have_db=1 16852 ;; 16853 *":"*) 16854 header="`echo $found | sed -e 's/:.*$//'`" 16855 lib="`echo $found | sed -e 's/^.*://'`" 16856 16857 16858 if test "x$APRUTIL_INCLUDES" = "x"; then 16859 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 16860 APRUTIL_INCLUDES="-I$header" 16861 else 16862 apr_addto_bugger="-I$header" 16863 for i in $apr_addto_bugger; do 16864 apr_addto_duplicate="0" 16865 for j in $APRUTIL_INCLUDES; do 16866 if test "x$i" = "x$j"; then 16867 apr_addto_duplicate="1" 16868 break 16869 fi 16870 done 16871 if test $apr_addto_duplicate = "0"; then 16872 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 16873 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 16874 fi 16875 done 16876 fi 16877 16878 16879 if test "x$APRUTIL_LDFLAGS" = "x"; then 16880 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 16881 APRUTIL_LDFLAGS="-L$lib" 16882 else 16883 apr_addto_bugger="-L$lib" 16884 for i in $apr_addto_bugger; do 16885 apr_addto_duplicate="0" 16886 for j in $APRUTIL_LDFLAGS; do 16887 if test "x$i" = "x$j"; then 16888 apr_addto_duplicate="1" 16889 break 16890 fi 16891 done 16892 if test $apr_addto_duplicate = "0"; then 16893 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 16894 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 16895 fi 16896 done 16897 fi 16898 16899 apu_db_header=$bdb_header 16900 apu_db_lib=$bdb_libname 16901 apu_have_db=1 16902 ;; 16903 *) 16904 16905 if test "x$APRUTIL_INCLUDES" = "x"; then 16906 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 16907 APRUTIL_INCLUDES="-I$found/include" 16908 else 16909 apr_addto_bugger="-I$found/include" 16910 for i in $apr_addto_bugger; do 16911 apr_addto_duplicate="0" 16912 for j in $APRUTIL_INCLUDES; do 16913 if test "x$i" = "x$j"; then 16914 apr_addto_duplicate="1" 16915 break 16916 fi 16917 done 16918 if test $apr_addto_duplicate = "0"; then 16919 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 16920 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 16921 fi 16922 done 16923 fi 16924 16925 16926 if test "x$APRUTIL_LDFLAGS" = "x"; then 16927 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 16928 APRUTIL_LDFLAGS="-L$found/lib" 16929 else 16930 apr_addto_bugger="-L$found/lib" 16931 for i in $apr_addto_bugger; do 16932 apr_addto_duplicate="0" 16933 for j in $APRUTIL_LDFLAGS; do 16934 if test "x$i" = "x$j"; then 16935 apr_addto_duplicate="1" 16936 break 16937 fi 16938 done 16939 if test $apr_addto_duplicate = "0"; then 16940 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 16941 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 16942 fi 16943 done 16944 fi 16945 16946 apu_db_header=$bdb_header 16947 apu_db_lib=$bdb_libname 16948 apu_have_db=1 16949 ;; 16950 esac 16951 16952 if test "$apu_have_db" = "1"; then 16953 apu_db_version=${db_major} 16954 fi 16955 16956 if test "$apu_have_db" = "1"; then 16957 break 16958 fi 16959 db_version=`expr $db_version - 1` 16960 done 16961 if test "$apu_have_db" = "0"; then 16962 16963 places="$all_places" 16964 if test -z "$places"; then 16965 places="std" 16966 fi 16967 16968 bdb_version=3 16969 if test "-1" != "-1"; then 16970 bdb_version="$bdb_version.-1" 16971 if test "-1" != "-1"; then 16972 bdb_version="$bdb_version.-1" 16973 fi 16974 fi 16975 bdb_places="$places" 16976 bdb_default_search_headers="db3/db.h db.h" 16977 bdb_default_search_lib_names="db3 db" 16978 16979 16980 apu_have_db=0 16981 16982 # Save the original values of the flags we tweak. 16983 apu_check_lib_save_libs="$LIBS" 16984 apu_check_lib_save_ldflags="$LDFLAGS" 16985 apu_check_lib_save_cppflags="$CPPFLAGS" 16986 16987 # The variable `found' is the prefix under which we've found 16988 # Berkeley DB, or `not' if we haven't found it anywhere yet. 16989 found=not 16990 for bdb_place in $bdb_places; do 16991 16992 LDFLAGS="$apu_check_lib_save_ldflags" 16993 CPPFLAGS="$apu_check_lib_save_cppflags" 16994 case "$bdb_place" in 16995 "std" ) 16996 description="the standard places" 16997 ;; 16998 *":"* ) 16999 header="`echo $bdb_place | sed -e 's/:.*$//'`" 17000 lib="`echo $bdb_place | sed -e 's/^.*://'`" 17001 CPPFLAGS="$CPPFLAGS -I$header" 17002 LDFLAGS="$LDFLAGS -L$lib" 17003 description="$header and $lib" 17004 ;; 17005 * ) 17006 if test -d $bdb_place; then 17007 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 17008 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 17009 else 17010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 17011$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 17012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 17013$as_echo "directory not found" >&6; } 17014 continue 17015 fi 17016 description="$bdb_place" 17017 ;; 17018 esac 17019 17020 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 17021 # trick to display a message instead. 17022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 17023$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 17024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 17025$as_echo "" >&6; } 17026 17027 for bdb_libname in $bdb_default_search_lib_names; do 17028 for bdb_header in $bdb_default_search_headers; do 17029 # Clear the header cache variable for each location 17030 17031 cache_id="`echo ac_cv_header_${bdb_header} \ 17032 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 17033 17034 unset $cache_id 17035 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 17036ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 17037if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17038
|
17024 if test "3" = "3" -o "3" = "4" -o "3" = "5"; then
| 17039 if test "3" = "3" -o "3" = "4" -o "3" = "5" -o "3" = "6"; then
|
17025 # We generate a separate cache variable for each prefix and libname 17026 # we search under. That way, we avoid caching information that 17027 # changes if the user runs `configure' with a different set of 17028 # switches. 17029 17030 cache_id="`echo apu_cv_check_berkeley_db_3_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 17031 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 17032 17033 17034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 17035$as_echo_n "checking for -l$bdb_libname... " >&6; } 17036 if eval \${$cache_id+:} false; then : 17037 $as_echo_n "(cached) " >&6 17038else 17039 17040 17041 apu_try_berkeley_db_save_libs="$LIBS" 17042 17043 apu_check_berkeley_db_major=3 17044 apu_check_berkeley_db_minor=-1 17045 apu_check_berkeley_db_patch=-1 17046 apu_try_berkeley_db_header=$bdb_header 17047 apu_try_berkeley_db_libname=$bdb_libname 17048 17049 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 17050 if test "$cross_compiling" = yes; then : 17051 apu_try_berkeley_db=yes 17052 17053else 17054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17055/* end confdefs.h. */ 17056 17057#include <stdlib.h> 17058#include <stdio.h> 17059#include <$apu_try_berkeley_db_header> 17060main () 17061{ 17062 int major, minor, patch; 17063 17064 db_version(&major, &minor, &patch); 17065 17066 /* Sanity check: ensure that db.h constants actually match the db library */ 17067 if (major != DB_VERSION_MAJOR 17068 || minor != DB_VERSION_MINOR 17069 || patch != DB_VERSION_PATCH) 17070 exit (1); 17071 17072 /* Run-time check: ensure the library claims to be the correct version. */ 17073 17074 if ($apu_check_berkeley_db_major != -1) { 17075 if (major < $apu_check_berkeley_db_major) 17076 exit (1); 17077 if (major > $apu_check_berkeley_db_major) 17078 exit (0); 17079 } 17080 17081 if ($apu_check_berkeley_db_minor != -1) { 17082 if (minor < $apu_check_berkeley_db_minor) 17083 exit (1); 17084 if (minor > $apu_check_berkeley_db_minor) 17085 exit (0); 17086 } 17087 17088 if ($apu_check_berkeley_db_patch == -1 17089 || patch >= $apu_check_berkeley_db_patch) 17090 exit (0); 17091 else 17092 exit (1); 17093} 17094 17095_ACEOF 17096if ac_fn_c_try_run "$LINENO"; then : 17097 apu_try_berkeley_db=yes 17098else 17099 apu_try_berkeley_db=no 17100fi 17101rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17102 conftest.$ac_objext conftest.beam conftest.$ac_ext 17103fi 17104 17105 17106 LIBS="$apu_try_berkeley_db_save_libs" 17107 17108 17109 eval "$cache_id=$apu_try_berkeley_db" 17110 17111fi 17112 17113 result="`eval echo '$'$cache_id`" 17114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 17115$as_echo "$result" >&6; } 17116 elif test "3" = "1"; then 17117 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 17118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 17119$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 17120if eval \${$as_ac_Lib+:} false; then : 17121 $as_echo_n "(cached) " >&6 17122else 17123 ac_check_lib_save_LIBS=$LIBS 17124LIBS="-l$bdb_libname $LIBS" 17125cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17126/* end confdefs.h. */ 17127 17128/* Override any GCC internal prototype to avoid an error. 17129 Use char because int might match the return type of a GCC 17130 builtin and then its argument prototype would still apply. */ 17131#ifdef __cplusplus 17132extern "C" 17133#endif 17134char dbopen (); 17135int 17136main () 17137{ 17138return dbopen (); 17139 ; 17140 return 0; 17141} 17142_ACEOF 17143if ac_fn_c_try_link "$LINENO"; then : 17144 eval "$as_ac_Lib=yes" 17145else 17146 eval "$as_ac_Lib=no" 17147fi 17148rm -f core conftest.err conftest.$ac_objext \ 17149 conftest$ac_exeext conftest.$ac_ext 17150LIBS=$ac_check_lib_save_LIBS 17151fi 17152eval ac_res=\$$as_ac_Lib 17153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17154$as_echo "$ac_res" >&6; } 17155if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 17156 result=yes 17157else 17158 result=no 17159 17160fi 17161 17162 elif test "3" = "2"; then 17163 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 17164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 17165$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 17166if eval \${$as_ac_Lib+:} false; then : 17167 $as_echo_n "(cached) " >&6 17168else 17169 ac_check_lib_save_LIBS=$LIBS 17170LIBS="-l$bdb_libname $LIBS" 17171cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17172/* end confdefs.h. */ 17173 17174/* Override any GCC internal prototype to avoid an error. 17175 Use char because int might match the return type of a GCC 17176 builtin and then its argument prototype would still apply. */ 17177#ifdef __cplusplus 17178extern "C" 17179#endif 17180char db_open (); 17181int 17182main () 17183{ 17184return db_open (); 17185 ; 17186 return 0; 17187} 17188_ACEOF 17189if ac_fn_c_try_link "$LINENO"; then : 17190 eval "$as_ac_Lib=yes" 17191else 17192 eval "$as_ac_Lib=no" 17193fi 17194rm -f core conftest.err conftest.$ac_objext \ 17195 conftest$ac_exeext conftest.$ac_ext 17196LIBS=$ac_check_lib_save_LIBS 17197fi 17198eval ac_res=\$$as_ac_Lib 17199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17200$as_echo "$ac_res" >&6; } 17201if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 17202 result=yes 17203else 17204 result=no 17205 17206fi 17207 17208 fi 17209 17210else 17211 result="no" 17212fi 17213 17214 17215 17216 # If we found it, no need to search any more. 17217 if test "$result" = "yes"; then 17218 found="$bdb_place" 17219 break 17220 fi 17221 done 17222 test "$found" != "not" && break 17223 done 17224 test "$found" != "not" && break 17225 done 17226 17227 # Restore the original values of the flags we tweak. 17228 LDFLAGS="$apu_check_lib_save_ldflags" 17229 CPPFLAGS="$apu_check_lib_save_cppflags" 17230 17231 case "$found" in 17232 "not") 17233 apu_have_db=0 17234 ;; 17235 "std") 17236 apu_db_header=$bdb_header 17237 apu_db_lib=$bdb_libname 17238 apu_have_db=1 17239 ;; 17240 *":"*) 17241 header="`echo $found | sed -e 's/:.*$//'`" 17242 lib="`echo $found | sed -e 's/^.*://'`" 17243 17244 17245 if test "x$APRUTIL_INCLUDES" = "x"; then 17246 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 17247 APRUTIL_INCLUDES="-I$header" 17248 else 17249 apr_addto_bugger="-I$header" 17250 for i in $apr_addto_bugger; do 17251 apr_addto_duplicate="0" 17252 for j in $APRUTIL_INCLUDES; do 17253 if test "x$i" = "x$j"; then 17254 apr_addto_duplicate="1" 17255 break 17256 fi 17257 done 17258 if test $apr_addto_duplicate = "0"; then 17259 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 17260 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 17261 fi 17262 done 17263 fi 17264 17265 17266 if test "x$APRUTIL_LDFLAGS" = "x"; then 17267 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 17268 APRUTIL_LDFLAGS="-L$lib" 17269 else 17270 apr_addto_bugger="-L$lib" 17271 for i in $apr_addto_bugger; do 17272 apr_addto_duplicate="0" 17273 for j in $APRUTIL_LDFLAGS; do 17274 if test "x$i" = "x$j"; then 17275 apr_addto_duplicate="1" 17276 break 17277 fi 17278 done 17279 if test $apr_addto_duplicate = "0"; then 17280 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 17281 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 17282 fi 17283 done 17284 fi 17285 17286 apu_db_header=$bdb_header 17287 apu_db_lib=$bdb_libname 17288 apu_have_db=1 17289 ;; 17290 *) 17291 17292 if test "x$APRUTIL_INCLUDES" = "x"; then 17293 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 17294 APRUTIL_INCLUDES="-I$found/include" 17295 else 17296 apr_addto_bugger="-I$found/include" 17297 for i in $apr_addto_bugger; do 17298 apr_addto_duplicate="0" 17299 for j in $APRUTIL_INCLUDES; do 17300 if test "x$i" = "x$j"; then 17301 apr_addto_duplicate="1" 17302 break 17303 fi 17304 done 17305 if test $apr_addto_duplicate = "0"; then 17306 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 17307 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 17308 fi 17309 done 17310 fi 17311 17312 17313 if test "x$APRUTIL_LDFLAGS" = "x"; then 17314 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 17315 APRUTIL_LDFLAGS="-L$found/lib" 17316 else 17317 apr_addto_bugger="-L$found/lib" 17318 for i in $apr_addto_bugger; do 17319 apr_addto_duplicate="0" 17320 for j in $APRUTIL_LDFLAGS; do 17321 if test "x$i" = "x$j"; then 17322 apr_addto_duplicate="1" 17323 break 17324 fi 17325 done 17326 if test $apr_addto_duplicate = "0"; then 17327 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 17328 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 17329 fi 17330 done 17331 fi 17332 17333 apu_db_header=$bdb_header 17334 apu_db_lib=$bdb_libname 17335 apu_have_db=1 17336 ;; 17337 esac 17338 17339 if test "$apu_have_db" = "1"; then 17340 apu_db_version=3 17341 fi 17342 17343 fi 17344 if test "$apu_have_db" = "0"; then 17345 17346 places="$all_places" 17347 if test -z "$places"; then 17348 places="std" 17349 fi 17350 17351 bdb_version=2 17352 if test "-1" != "-1"; then 17353 bdb_version="$bdb_version.-1" 17354 if test "-1" != "-1"; then 17355 bdb_version="$bdb_version.-1" 17356 fi 17357 fi 17358 bdb_places="$places" 17359 bdb_default_search_headers="db2/db.h db.h" 17360 bdb_default_search_lib_names="db2 db" 17361 17362 17363 apu_have_db=0 17364 17365 # Save the original values of the flags we tweak. 17366 apu_check_lib_save_libs="$LIBS" 17367 apu_check_lib_save_ldflags="$LDFLAGS" 17368 apu_check_lib_save_cppflags="$CPPFLAGS" 17369 17370 # The variable `found' is the prefix under which we've found 17371 # Berkeley DB, or `not' if we haven't found it anywhere yet. 17372 found=not 17373 for bdb_place in $bdb_places; do 17374 17375 LDFLAGS="$apu_check_lib_save_ldflags" 17376 CPPFLAGS="$apu_check_lib_save_cppflags" 17377 case "$bdb_place" in 17378 "std" ) 17379 description="the standard places" 17380 ;; 17381 *":"* ) 17382 header="`echo $bdb_place | sed -e 's/:.*$//'`" 17383 lib="`echo $bdb_place | sed -e 's/^.*://'`" 17384 CPPFLAGS="$CPPFLAGS -I$header" 17385 LDFLAGS="$LDFLAGS -L$lib" 17386 description="$header and $lib" 17387 ;; 17388 * ) 17389 if test -d $bdb_place; then 17390 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 17391 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 17392 else 17393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 17394$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 17395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 17396$as_echo "directory not found" >&6; } 17397 continue 17398 fi 17399 description="$bdb_place" 17400 ;; 17401 esac 17402 17403 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 17404 # trick to display a message instead. 17405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 17406$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 17407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 17408$as_echo "" >&6; } 17409 17410 for bdb_libname in $bdb_default_search_lib_names; do 17411 for bdb_header in $bdb_default_search_headers; do 17412 # Clear the header cache variable for each location 17413 17414 cache_id="`echo ac_cv_header_${bdb_header} \ 17415 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 17416 17417 unset $cache_id 17418 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 17419ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 17420if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17421
| 17040 # We generate a separate cache variable for each prefix and libname 17041 # we search under. That way, we avoid caching information that 17042 # changes if the user runs `configure' with a different set of 17043 # switches. 17044 17045 cache_id="`echo apu_cv_check_berkeley_db_3_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 17046 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 17047 17048 17049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 17050$as_echo_n "checking for -l$bdb_libname... " >&6; } 17051 if eval \${$cache_id+:} false; then : 17052 $as_echo_n "(cached) " >&6 17053else 17054 17055 17056 apu_try_berkeley_db_save_libs="$LIBS" 17057 17058 apu_check_berkeley_db_major=3 17059 apu_check_berkeley_db_minor=-1 17060 apu_check_berkeley_db_patch=-1 17061 apu_try_berkeley_db_header=$bdb_header 17062 apu_try_berkeley_db_libname=$bdb_libname 17063 17064 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 17065 if test "$cross_compiling" = yes; then : 17066 apu_try_berkeley_db=yes 17067 17068else 17069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17070/* end confdefs.h. */ 17071 17072#include <stdlib.h> 17073#include <stdio.h> 17074#include <$apu_try_berkeley_db_header> 17075main () 17076{ 17077 int major, minor, patch; 17078 17079 db_version(&major, &minor, &patch); 17080 17081 /* Sanity check: ensure that db.h constants actually match the db library */ 17082 if (major != DB_VERSION_MAJOR 17083 || minor != DB_VERSION_MINOR 17084 || patch != DB_VERSION_PATCH) 17085 exit (1); 17086 17087 /* Run-time check: ensure the library claims to be the correct version. */ 17088 17089 if ($apu_check_berkeley_db_major != -1) { 17090 if (major < $apu_check_berkeley_db_major) 17091 exit (1); 17092 if (major > $apu_check_berkeley_db_major) 17093 exit (0); 17094 } 17095 17096 if ($apu_check_berkeley_db_minor != -1) { 17097 if (minor < $apu_check_berkeley_db_minor) 17098 exit (1); 17099 if (minor > $apu_check_berkeley_db_minor) 17100 exit (0); 17101 } 17102 17103 if ($apu_check_berkeley_db_patch == -1 17104 || patch >= $apu_check_berkeley_db_patch) 17105 exit (0); 17106 else 17107 exit (1); 17108} 17109 17110_ACEOF 17111if ac_fn_c_try_run "$LINENO"; then : 17112 apu_try_berkeley_db=yes 17113else 17114 apu_try_berkeley_db=no 17115fi 17116rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17117 conftest.$ac_objext conftest.beam conftest.$ac_ext 17118fi 17119 17120 17121 LIBS="$apu_try_berkeley_db_save_libs" 17122 17123 17124 eval "$cache_id=$apu_try_berkeley_db" 17125 17126fi 17127 17128 result="`eval echo '$'$cache_id`" 17129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 17130$as_echo "$result" >&6; } 17131 elif test "3" = "1"; then 17132 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 17133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 17134$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 17135if eval \${$as_ac_Lib+:} false; then : 17136 $as_echo_n "(cached) " >&6 17137else 17138 ac_check_lib_save_LIBS=$LIBS 17139LIBS="-l$bdb_libname $LIBS" 17140cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17141/* end confdefs.h. */ 17142 17143/* Override any GCC internal prototype to avoid an error. 17144 Use char because int might match the return type of a GCC 17145 builtin and then its argument prototype would still apply. */ 17146#ifdef __cplusplus 17147extern "C" 17148#endif 17149char dbopen (); 17150int 17151main () 17152{ 17153return dbopen (); 17154 ; 17155 return 0; 17156} 17157_ACEOF 17158if ac_fn_c_try_link "$LINENO"; then : 17159 eval "$as_ac_Lib=yes" 17160else 17161 eval "$as_ac_Lib=no" 17162fi 17163rm -f core conftest.err conftest.$ac_objext \ 17164 conftest$ac_exeext conftest.$ac_ext 17165LIBS=$ac_check_lib_save_LIBS 17166fi 17167eval ac_res=\$$as_ac_Lib 17168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17169$as_echo "$ac_res" >&6; } 17170if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 17171 result=yes 17172else 17173 result=no 17174 17175fi 17176 17177 elif test "3" = "2"; then 17178 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 17179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 17180$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 17181if eval \${$as_ac_Lib+:} false; then : 17182 $as_echo_n "(cached) " >&6 17183else 17184 ac_check_lib_save_LIBS=$LIBS 17185LIBS="-l$bdb_libname $LIBS" 17186cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17187/* end confdefs.h. */ 17188 17189/* Override any GCC internal prototype to avoid an error. 17190 Use char because int might match the return type of a GCC 17191 builtin and then its argument prototype would still apply. */ 17192#ifdef __cplusplus 17193extern "C" 17194#endif 17195char db_open (); 17196int 17197main () 17198{ 17199return db_open (); 17200 ; 17201 return 0; 17202} 17203_ACEOF 17204if ac_fn_c_try_link "$LINENO"; then : 17205 eval "$as_ac_Lib=yes" 17206else 17207 eval "$as_ac_Lib=no" 17208fi 17209rm -f core conftest.err conftest.$ac_objext \ 17210 conftest$ac_exeext conftest.$ac_ext 17211LIBS=$ac_check_lib_save_LIBS 17212fi 17213eval ac_res=\$$as_ac_Lib 17214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17215$as_echo "$ac_res" >&6; } 17216if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 17217 result=yes 17218else 17219 result=no 17220 17221fi 17222 17223 fi 17224 17225else 17226 result="no" 17227fi 17228 17229 17230 17231 # If we found it, no need to search any more. 17232 if test "$result" = "yes"; then 17233 found="$bdb_place" 17234 break 17235 fi 17236 done 17237 test "$found" != "not" && break 17238 done 17239 test "$found" != "not" && break 17240 done 17241 17242 # Restore the original values of the flags we tweak. 17243 LDFLAGS="$apu_check_lib_save_ldflags" 17244 CPPFLAGS="$apu_check_lib_save_cppflags" 17245 17246 case "$found" in 17247 "not") 17248 apu_have_db=0 17249 ;; 17250 "std") 17251 apu_db_header=$bdb_header 17252 apu_db_lib=$bdb_libname 17253 apu_have_db=1 17254 ;; 17255 *":"*) 17256 header="`echo $found | sed -e 's/:.*$//'`" 17257 lib="`echo $found | sed -e 's/^.*://'`" 17258 17259 17260 if test "x$APRUTIL_INCLUDES" = "x"; then 17261 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 17262 APRUTIL_INCLUDES="-I$header" 17263 else 17264 apr_addto_bugger="-I$header" 17265 for i in $apr_addto_bugger; do 17266 apr_addto_duplicate="0" 17267 for j in $APRUTIL_INCLUDES; do 17268 if test "x$i" = "x$j"; then 17269 apr_addto_duplicate="1" 17270 break 17271 fi 17272 done 17273 if test $apr_addto_duplicate = "0"; then 17274 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 17275 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 17276 fi 17277 done 17278 fi 17279 17280 17281 if test "x$APRUTIL_LDFLAGS" = "x"; then 17282 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 17283 APRUTIL_LDFLAGS="-L$lib" 17284 else 17285 apr_addto_bugger="-L$lib" 17286 for i in $apr_addto_bugger; do 17287 apr_addto_duplicate="0" 17288 for j in $APRUTIL_LDFLAGS; do 17289 if test "x$i" = "x$j"; then 17290 apr_addto_duplicate="1" 17291 break 17292 fi 17293 done 17294 if test $apr_addto_duplicate = "0"; then 17295 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 17296 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 17297 fi 17298 done 17299 fi 17300 17301 apu_db_header=$bdb_header 17302 apu_db_lib=$bdb_libname 17303 apu_have_db=1 17304 ;; 17305 *) 17306 17307 if test "x$APRUTIL_INCLUDES" = "x"; then 17308 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 17309 APRUTIL_INCLUDES="-I$found/include" 17310 else 17311 apr_addto_bugger="-I$found/include" 17312 for i in $apr_addto_bugger; do 17313 apr_addto_duplicate="0" 17314 for j in $APRUTIL_INCLUDES; do 17315 if test "x$i" = "x$j"; then 17316 apr_addto_duplicate="1" 17317 break 17318 fi 17319 done 17320 if test $apr_addto_duplicate = "0"; then 17321 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 17322 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 17323 fi 17324 done 17325 fi 17326 17327 17328 if test "x$APRUTIL_LDFLAGS" = "x"; then 17329 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 17330 APRUTIL_LDFLAGS="-L$found/lib" 17331 else 17332 apr_addto_bugger="-L$found/lib" 17333 for i in $apr_addto_bugger; do 17334 apr_addto_duplicate="0" 17335 for j in $APRUTIL_LDFLAGS; do 17336 if test "x$i" = "x$j"; then 17337 apr_addto_duplicate="1" 17338 break 17339 fi 17340 done 17341 if test $apr_addto_duplicate = "0"; then 17342 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 17343 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 17344 fi 17345 done 17346 fi 17347 17348 apu_db_header=$bdb_header 17349 apu_db_lib=$bdb_libname 17350 apu_have_db=1 17351 ;; 17352 esac 17353 17354 if test "$apu_have_db" = "1"; then 17355 apu_db_version=3 17356 fi 17357 17358 fi 17359 if test "$apu_have_db" = "0"; then 17360 17361 places="$all_places" 17362 if test -z "$places"; then 17363 places="std" 17364 fi 17365 17366 bdb_version=2 17367 if test "-1" != "-1"; then 17368 bdb_version="$bdb_version.-1" 17369 if test "-1" != "-1"; then 17370 bdb_version="$bdb_version.-1" 17371 fi 17372 fi 17373 bdb_places="$places" 17374 bdb_default_search_headers="db2/db.h db.h" 17375 bdb_default_search_lib_names="db2 db" 17376 17377 17378 apu_have_db=0 17379 17380 # Save the original values of the flags we tweak. 17381 apu_check_lib_save_libs="$LIBS" 17382 apu_check_lib_save_ldflags="$LDFLAGS" 17383 apu_check_lib_save_cppflags="$CPPFLAGS" 17384 17385 # The variable `found' is the prefix under which we've found 17386 # Berkeley DB, or `not' if we haven't found it anywhere yet. 17387 found=not 17388 for bdb_place in $bdb_places; do 17389 17390 LDFLAGS="$apu_check_lib_save_ldflags" 17391 CPPFLAGS="$apu_check_lib_save_cppflags" 17392 case "$bdb_place" in 17393 "std" ) 17394 description="the standard places" 17395 ;; 17396 *":"* ) 17397 header="`echo $bdb_place | sed -e 's/:.*$//'`" 17398 lib="`echo $bdb_place | sed -e 's/^.*://'`" 17399 CPPFLAGS="$CPPFLAGS -I$header" 17400 LDFLAGS="$LDFLAGS -L$lib" 17401 description="$header and $lib" 17402 ;; 17403 * ) 17404 if test -d $bdb_place; then 17405 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 17406 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 17407 else 17408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 17409$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 17410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 17411$as_echo "directory not found" >&6; } 17412 continue 17413 fi 17414 description="$bdb_place" 17415 ;; 17416 esac 17417 17418 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 17419 # trick to display a message instead. 17420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 17421$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 17422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 17423$as_echo "" >&6; } 17424 17425 for bdb_libname in $bdb_default_search_lib_names; do 17426 for bdb_header in $bdb_default_search_headers; do 17427 # Clear the header cache variable for each location 17428 17429 cache_id="`echo ac_cv_header_${bdb_header} \ 17430 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 17431 17432 unset $cache_id 17433 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 17434ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 17435if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17436
|
17422 if test "2" = "3" -o "2" = "4" -o "2" = "5"; then
| 17437 if test "2" = "3" -o "2" = "4" -o "2" = "5" -o "2" = "6"; then
|
17423 # We generate a separate cache variable for each prefix and libname 17424 # we search under. That way, we avoid caching information that 17425 # changes if the user runs `configure' with a different set of 17426 # switches. 17427 17428 cache_id="`echo apu_cv_check_berkeley_db_2_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 17429 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 17430 17431 17432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 17433$as_echo_n "checking for -l$bdb_libname... " >&6; } 17434 if eval \${$cache_id+:} false; then : 17435 $as_echo_n "(cached) " >&6 17436else 17437 17438 17439 apu_try_berkeley_db_save_libs="$LIBS" 17440 17441 apu_check_berkeley_db_major=2 17442 apu_check_berkeley_db_minor=-1 17443 apu_check_berkeley_db_patch=-1 17444 apu_try_berkeley_db_header=$bdb_header 17445 apu_try_berkeley_db_libname=$bdb_libname 17446 17447 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 17448 if test "$cross_compiling" = yes; then : 17449 apu_try_berkeley_db=yes 17450 17451else 17452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17453/* end confdefs.h. */ 17454 17455#include <stdlib.h> 17456#include <stdio.h> 17457#include <$apu_try_berkeley_db_header> 17458main () 17459{ 17460 int major, minor, patch; 17461 17462 db_version(&major, &minor, &patch); 17463 17464 /* Sanity check: ensure that db.h constants actually match the db library */ 17465 if (major != DB_VERSION_MAJOR 17466 || minor != DB_VERSION_MINOR 17467 || patch != DB_VERSION_PATCH) 17468 exit (1); 17469 17470 /* Run-time check: ensure the library claims to be the correct version. */ 17471 17472 if ($apu_check_berkeley_db_major != -1) { 17473 if (major < $apu_check_berkeley_db_major) 17474 exit (1); 17475 if (major > $apu_check_berkeley_db_major) 17476 exit (0); 17477 } 17478 17479 if ($apu_check_berkeley_db_minor != -1) { 17480 if (minor < $apu_check_berkeley_db_minor) 17481 exit (1); 17482 if (minor > $apu_check_berkeley_db_minor) 17483 exit (0); 17484 } 17485 17486 if ($apu_check_berkeley_db_patch == -1 17487 || patch >= $apu_check_berkeley_db_patch) 17488 exit (0); 17489 else 17490 exit (1); 17491} 17492 17493_ACEOF 17494if ac_fn_c_try_run "$LINENO"; then : 17495 apu_try_berkeley_db=yes 17496else 17497 apu_try_berkeley_db=no 17498fi 17499rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17500 conftest.$ac_objext conftest.beam conftest.$ac_ext 17501fi 17502 17503 17504 LIBS="$apu_try_berkeley_db_save_libs" 17505 17506 17507 eval "$cache_id=$apu_try_berkeley_db" 17508 17509fi 17510 17511 result="`eval echo '$'$cache_id`" 17512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 17513$as_echo "$result" >&6; } 17514 elif test "2" = "1"; then 17515 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 17516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 17517$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 17518if eval \${$as_ac_Lib+:} false; then : 17519 $as_echo_n "(cached) " >&6 17520else 17521 ac_check_lib_save_LIBS=$LIBS 17522LIBS="-l$bdb_libname $LIBS" 17523cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17524/* end confdefs.h. */ 17525 17526/* Override any GCC internal prototype to avoid an error. 17527 Use char because int might match the return type of a GCC 17528 builtin and then its argument prototype would still apply. */ 17529#ifdef __cplusplus 17530extern "C" 17531#endif 17532char dbopen (); 17533int 17534main () 17535{ 17536return dbopen (); 17537 ; 17538 return 0; 17539} 17540_ACEOF 17541if ac_fn_c_try_link "$LINENO"; then : 17542 eval "$as_ac_Lib=yes" 17543else 17544 eval "$as_ac_Lib=no" 17545fi 17546rm -f core conftest.err conftest.$ac_objext \ 17547 conftest$ac_exeext conftest.$ac_ext 17548LIBS=$ac_check_lib_save_LIBS 17549fi 17550eval ac_res=\$$as_ac_Lib 17551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17552$as_echo "$ac_res" >&6; } 17553if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 17554 result=yes 17555else 17556 result=no 17557 17558fi 17559 17560 elif test "2" = "2"; then 17561 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 17562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 17563$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 17564if eval \${$as_ac_Lib+:} false; then : 17565 $as_echo_n "(cached) " >&6 17566else 17567 ac_check_lib_save_LIBS=$LIBS 17568LIBS="-l$bdb_libname $LIBS" 17569cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17570/* end confdefs.h. */ 17571 17572/* Override any GCC internal prototype to avoid an error. 17573 Use char because int might match the return type of a GCC 17574 builtin and then its argument prototype would still apply. */ 17575#ifdef __cplusplus 17576extern "C" 17577#endif 17578char db_open (); 17579int 17580main () 17581{ 17582return db_open (); 17583 ; 17584 return 0; 17585} 17586_ACEOF 17587if ac_fn_c_try_link "$LINENO"; then : 17588 eval "$as_ac_Lib=yes" 17589else 17590 eval "$as_ac_Lib=no" 17591fi 17592rm -f core conftest.err conftest.$ac_objext \ 17593 conftest$ac_exeext conftest.$ac_ext 17594LIBS=$ac_check_lib_save_LIBS 17595fi 17596eval ac_res=\$$as_ac_Lib 17597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17598$as_echo "$ac_res" >&6; } 17599if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 17600 result=yes 17601else 17602 result=no 17603 17604fi 17605 17606 fi 17607 17608else 17609 result="no" 17610fi 17611 17612 17613 17614 # If we found it, no need to search any more. 17615 if test "$result" = "yes"; then 17616 found="$bdb_place" 17617 break 17618 fi 17619 done 17620 test "$found" != "not" && break 17621 done 17622 test "$found" != "not" && break 17623 done 17624 17625 # Restore the original values of the flags we tweak. 17626 LDFLAGS="$apu_check_lib_save_ldflags" 17627 CPPFLAGS="$apu_check_lib_save_cppflags" 17628 17629 case "$found" in 17630 "not") 17631 apu_have_db=0 17632 ;; 17633 "std") 17634 apu_db_header=$bdb_header 17635 apu_db_lib=$bdb_libname 17636 apu_have_db=1 17637 ;; 17638 *":"*) 17639 header="`echo $found | sed -e 's/:.*$//'`" 17640 lib="`echo $found | sed -e 's/^.*://'`" 17641 17642 17643 if test "x$APRUTIL_INCLUDES" = "x"; then 17644 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 17645 APRUTIL_INCLUDES="-I$header" 17646 else 17647 apr_addto_bugger="-I$header" 17648 for i in $apr_addto_bugger; do 17649 apr_addto_duplicate="0" 17650 for j in $APRUTIL_INCLUDES; do 17651 if test "x$i" = "x$j"; then 17652 apr_addto_duplicate="1" 17653 break 17654 fi 17655 done 17656 if test $apr_addto_duplicate = "0"; then 17657 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 17658 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 17659 fi 17660 done 17661 fi 17662 17663 17664 if test "x$APRUTIL_LDFLAGS" = "x"; then 17665 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 17666 APRUTIL_LDFLAGS="-L$lib" 17667 else 17668 apr_addto_bugger="-L$lib" 17669 for i in $apr_addto_bugger; do 17670 apr_addto_duplicate="0" 17671 for j in $APRUTIL_LDFLAGS; do 17672 if test "x$i" = "x$j"; then 17673 apr_addto_duplicate="1" 17674 break 17675 fi 17676 done 17677 if test $apr_addto_duplicate = "0"; then 17678 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 17679 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 17680 fi 17681 done 17682 fi 17683 17684 apu_db_header=$bdb_header 17685 apu_db_lib=$bdb_libname 17686 apu_have_db=1 17687 ;; 17688 *) 17689 17690 if test "x$APRUTIL_INCLUDES" = "x"; then 17691 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 17692 APRUTIL_INCLUDES="-I$found/include" 17693 else 17694 apr_addto_bugger="-I$found/include" 17695 for i in $apr_addto_bugger; do 17696 apr_addto_duplicate="0" 17697 for j in $APRUTIL_INCLUDES; do 17698 if test "x$i" = "x$j"; then 17699 apr_addto_duplicate="1" 17700 break 17701 fi 17702 done 17703 if test $apr_addto_duplicate = "0"; then 17704 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 17705 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 17706 fi 17707 done 17708 fi 17709 17710 17711 if test "x$APRUTIL_LDFLAGS" = "x"; then 17712 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 17713 APRUTIL_LDFLAGS="-L$found/lib" 17714 else 17715 apr_addto_bugger="-L$found/lib" 17716 for i in $apr_addto_bugger; do 17717 apr_addto_duplicate="0" 17718 for j in $APRUTIL_LDFLAGS; do 17719 if test "x$i" = "x$j"; then 17720 apr_addto_duplicate="1" 17721 break 17722 fi 17723 done 17724 if test $apr_addto_duplicate = "0"; then 17725 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 17726 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 17727 fi 17728 done 17729 fi 17730 17731 apu_db_header=$bdb_header 17732 apu_db_lib=$bdb_libname 17733 apu_have_db=1 17734 ;; 17735 esac 17736 17737 if test "$apu_have_db" = "1"; then 17738 apu_db_version=2 17739 fi 17740 17741 fi 17742 if test "$apu_have_db" = "0"; then 17743 17744 places="$all_places" 17745 if test -z "$places"; then 17746 places="std" 17747 fi 17748 17749 bdb_version=1 17750 if test "0" != "-1"; then 17751 bdb_version="$bdb_version.0" 17752 if test "0" != "-1"; then 17753 bdb_version="$bdb_version.0" 17754 fi 17755 fi 17756 bdb_places="$places" 17757 bdb_default_search_headers="db1/db.h db.h" 17758 bdb_default_search_lib_names="db1" 17759 17760 17761 apu_have_db=0 17762 17763 # Save the original values of the flags we tweak. 17764 apu_check_lib_save_libs="$LIBS" 17765 apu_check_lib_save_ldflags="$LDFLAGS" 17766 apu_check_lib_save_cppflags="$CPPFLAGS" 17767 17768 # The variable `found' is the prefix under which we've found 17769 # Berkeley DB, or `not' if we haven't found it anywhere yet. 17770 found=not 17771 for bdb_place in $bdb_places; do 17772 17773 LDFLAGS="$apu_check_lib_save_ldflags" 17774 CPPFLAGS="$apu_check_lib_save_cppflags" 17775 case "$bdb_place" in 17776 "std" ) 17777 description="the standard places" 17778 ;; 17779 *":"* ) 17780 header="`echo $bdb_place | sed -e 's/:.*$//'`" 17781 lib="`echo $bdb_place | sed -e 's/^.*://'`" 17782 CPPFLAGS="$CPPFLAGS -I$header" 17783 LDFLAGS="$LDFLAGS -L$lib" 17784 description="$header and $lib" 17785 ;; 17786 * ) 17787 if test -d $bdb_place; then 17788 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 17789 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 17790 else 17791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 17792$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 17793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 17794$as_echo "directory not found" >&6; } 17795 continue 17796 fi 17797 description="$bdb_place" 17798 ;; 17799 esac 17800 17801 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 17802 # trick to display a message instead. 17803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 17804$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 17805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 17806$as_echo "" >&6; } 17807 17808 for bdb_libname in $bdb_default_search_lib_names; do 17809 for bdb_header in $bdb_default_search_headers; do 17810 # Clear the header cache variable for each location 17811 17812 cache_id="`echo ac_cv_header_${bdb_header} \ 17813 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 17814 17815 unset $cache_id 17816 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 17817ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 17818if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17819
| 17438 # We generate a separate cache variable for each prefix and libname 17439 # we search under. That way, we avoid caching information that 17440 # changes if the user runs `configure' with a different set of 17441 # switches. 17442 17443 cache_id="`echo apu_cv_check_berkeley_db_2_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 17444 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 17445 17446 17447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 17448$as_echo_n "checking for -l$bdb_libname... " >&6; } 17449 if eval \${$cache_id+:} false; then : 17450 $as_echo_n "(cached) " >&6 17451else 17452 17453 17454 apu_try_berkeley_db_save_libs="$LIBS" 17455 17456 apu_check_berkeley_db_major=2 17457 apu_check_berkeley_db_minor=-1 17458 apu_check_berkeley_db_patch=-1 17459 apu_try_berkeley_db_header=$bdb_header 17460 apu_try_berkeley_db_libname=$bdb_libname 17461 17462 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 17463 if test "$cross_compiling" = yes; then : 17464 apu_try_berkeley_db=yes 17465 17466else 17467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17468/* end confdefs.h. */ 17469 17470#include <stdlib.h> 17471#include <stdio.h> 17472#include <$apu_try_berkeley_db_header> 17473main () 17474{ 17475 int major, minor, patch; 17476 17477 db_version(&major, &minor, &patch); 17478 17479 /* Sanity check: ensure that db.h constants actually match the db library */ 17480 if (major != DB_VERSION_MAJOR 17481 || minor != DB_VERSION_MINOR 17482 || patch != DB_VERSION_PATCH) 17483 exit (1); 17484 17485 /* Run-time check: ensure the library claims to be the correct version. */ 17486 17487 if ($apu_check_berkeley_db_major != -1) { 17488 if (major < $apu_check_berkeley_db_major) 17489 exit (1); 17490 if (major > $apu_check_berkeley_db_major) 17491 exit (0); 17492 } 17493 17494 if ($apu_check_berkeley_db_minor != -1) { 17495 if (minor < $apu_check_berkeley_db_minor) 17496 exit (1); 17497 if (minor > $apu_check_berkeley_db_minor) 17498 exit (0); 17499 } 17500 17501 if ($apu_check_berkeley_db_patch == -1 17502 || patch >= $apu_check_berkeley_db_patch) 17503 exit (0); 17504 else 17505 exit (1); 17506} 17507 17508_ACEOF 17509if ac_fn_c_try_run "$LINENO"; then : 17510 apu_try_berkeley_db=yes 17511else 17512 apu_try_berkeley_db=no 17513fi 17514rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17515 conftest.$ac_objext conftest.beam conftest.$ac_ext 17516fi 17517 17518 17519 LIBS="$apu_try_berkeley_db_save_libs" 17520 17521 17522 eval "$cache_id=$apu_try_berkeley_db" 17523 17524fi 17525 17526 result="`eval echo '$'$cache_id`" 17527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 17528$as_echo "$result" >&6; } 17529 elif test "2" = "1"; then 17530 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 17531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 17532$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 17533if eval \${$as_ac_Lib+:} false; then : 17534 $as_echo_n "(cached) " >&6 17535else 17536 ac_check_lib_save_LIBS=$LIBS 17537LIBS="-l$bdb_libname $LIBS" 17538cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17539/* end confdefs.h. */ 17540 17541/* Override any GCC internal prototype to avoid an error. 17542 Use char because int might match the return type of a GCC 17543 builtin and then its argument prototype would still apply. */ 17544#ifdef __cplusplus 17545extern "C" 17546#endif 17547char dbopen (); 17548int 17549main () 17550{ 17551return dbopen (); 17552 ; 17553 return 0; 17554} 17555_ACEOF 17556if ac_fn_c_try_link "$LINENO"; then : 17557 eval "$as_ac_Lib=yes" 17558else 17559 eval "$as_ac_Lib=no" 17560fi 17561rm -f core conftest.err conftest.$ac_objext \ 17562 conftest$ac_exeext conftest.$ac_ext 17563LIBS=$ac_check_lib_save_LIBS 17564fi 17565eval ac_res=\$$as_ac_Lib 17566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17567$as_echo "$ac_res" >&6; } 17568if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 17569 result=yes 17570else 17571 result=no 17572 17573fi 17574 17575 elif test "2" = "2"; then 17576 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 17577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 17578$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 17579if eval \${$as_ac_Lib+:} false; then : 17580 $as_echo_n "(cached) " >&6 17581else 17582 ac_check_lib_save_LIBS=$LIBS 17583LIBS="-l$bdb_libname $LIBS" 17584cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17585/* end confdefs.h. */ 17586 17587/* Override any GCC internal prototype to avoid an error. 17588 Use char because int might match the return type of a GCC 17589 builtin and then its argument prototype would still apply. */ 17590#ifdef __cplusplus 17591extern "C" 17592#endif 17593char db_open (); 17594int 17595main () 17596{ 17597return db_open (); 17598 ; 17599 return 0; 17600} 17601_ACEOF 17602if ac_fn_c_try_link "$LINENO"; then : 17603 eval "$as_ac_Lib=yes" 17604else 17605 eval "$as_ac_Lib=no" 17606fi 17607rm -f core conftest.err conftest.$ac_objext \ 17608 conftest$ac_exeext conftest.$ac_ext 17609LIBS=$ac_check_lib_save_LIBS 17610fi 17611eval ac_res=\$$as_ac_Lib 17612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17613$as_echo "$ac_res" >&6; } 17614if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 17615 result=yes 17616else 17617 result=no 17618 17619fi 17620 17621 fi 17622 17623else 17624 result="no" 17625fi 17626 17627 17628 17629 # If we found it, no need to search any more. 17630 if test "$result" = "yes"; then 17631 found="$bdb_place" 17632 break 17633 fi 17634 done 17635 test "$found" != "not" && break 17636 done 17637 test "$found" != "not" && break 17638 done 17639 17640 # Restore the original values of the flags we tweak. 17641 LDFLAGS="$apu_check_lib_save_ldflags" 17642 CPPFLAGS="$apu_check_lib_save_cppflags" 17643 17644 case "$found" in 17645 "not") 17646 apu_have_db=0 17647 ;; 17648 "std") 17649 apu_db_header=$bdb_header 17650 apu_db_lib=$bdb_libname 17651 apu_have_db=1 17652 ;; 17653 *":"*) 17654 header="`echo $found | sed -e 's/:.*$//'`" 17655 lib="`echo $found | sed -e 's/^.*://'`" 17656 17657 17658 if test "x$APRUTIL_INCLUDES" = "x"; then 17659 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 17660 APRUTIL_INCLUDES="-I$header" 17661 else 17662 apr_addto_bugger="-I$header" 17663 for i in $apr_addto_bugger; do 17664 apr_addto_duplicate="0" 17665 for j in $APRUTIL_INCLUDES; do 17666 if test "x$i" = "x$j"; then 17667 apr_addto_duplicate="1" 17668 break 17669 fi 17670 done 17671 if test $apr_addto_duplicate = "0"; then 17672 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 17673 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 17674 fi 17675 done 17676 fi 17677 17678 17679 if test "x$APRUTIL_LDFLAGS" = "x"; then 17680 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 17681 APRUTIL_LDFLAGS="-L$lib" 17682 else 17683 apr_addto_bugger="-L$lib" 17684 for i in $apr_addto_bugger; do 17685 apr_addto_duplicate="0" 17686 for j in $APRUTIL_LDFLAGS; do 17687 if test "x$i" = "x$j"; then 17688 apr_addto_duplicate="1" 17689 break 17690 fi 17691 done 17692 if test $apr_addto_duplicate = "0"; then 17693 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 17694 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 17695 fi 17696 done 17697 fi 17698 17699 apu_db_header=$bdb_header 17700 apu_db_lib=$bdb_libname 17701 apu_have_db=1 17702 ;; 17703 *) 17704 17705 if test "x$APRUTIL_INCLUDES" = "x"; then 17706 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 17707 APRUTIL_INCLUDES="-I$found/include" 17708 else 17709 apr_addto_bugger="-I$found/include" 17710 for i in $apr_addto_bugger; do 17711 apr_addto_duplicate="0" 17712 for j in $APRUTIL_INCLUDES; do 17713 if test "x$i" = "x$j"; then 17714 apr_addto_duplicate="1" 17715 break 17716 fi 17717 done 17718 if test $apr_addto_duplicate = "0"; then 17719 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 17720 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 17721 fi 17722 done 17723 fi 17724 17725 17726 if test "x$APRUTIL_LDFLAGS" = "x"; then 17727 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 17728 APRUTIL_LDFLAGS="-L$found/lib" 17729 else 17730 apr_addto_bugger="-L$found/lib" 17731 for i in $apr_addto_bugger; do 17732 apr_addto_duplicate="0" 17733 for j in $APRUTIL_LDFLAGS; do 17734 if test "x$i" = "x$j"; then 17735 apr_addto_duplicate="1" 17736 break 17737 fi 17738 done 17739 if test $apr_addto_duplicate = "0"; then 17740 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 17741 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 17742 fi 17743 done 17744 fi 17745 17746 apu_db_header=$bdb_header 17747 apu_db_lib=$bdb_libname 17748 apu_have_db=1 17749 ;; 17750 esac 17751 17752 if test "$apu_have_db" = "1"; then 17753 apu_db_version=2 17754 fi 17755 17756 fi 17757 if test "$apu_have_db" = "0"; then 17758 17759 places="$all_places" 17760 if test -z "$places"; then 17761 places="std" 17762 fi 17763 17764 bdb_version=1 17765 if test "0" != "-1"; then 17766 bdb_version="$bdb_version.0" 17767 if test "0" != "-1"; then 17768 bdb_version="$bdb_version.0" 17769 fi 17770 fi 17771 bdb_places="$places" 17772 bdb_default_search_headers="db1/db.h db.h" 17773 bdb_default_search_lib_names="db1" 17774 17775 17776 apu_have_db=0 17777 17778 # Save the original values of the flags we tweak. 17779 apu_check_lib_save_libs="$LIBS" 17780 apu_check_lib_save_ldflags="$LDFLAGS" 17781 apu_check_lib_save_cppflags="$CPPFLAGS" 17782 17783 # The variable `found' is the prefix under which we've found 17784 # Berkeley DB, or `not' if we haven't found it anywhere yet. 17785 found=not 17786 for bdb_place in $bdb_places; do 17787 17788 LDFLAGS="$apu_check_lib_save_ldflags" 17789 CPPFLAGS="$apu_check_lib_save_cppflags" 17790 case "$bdb_place" in 17791 "std" ) 17792 description="the standard places" 17793 ;; 17794 *":"* ) 17795 header="`echo $bdb_place | sed -e 's/:.*$//'`" 17796 lib="`echo $bdb_place | sed -e 's/^.*://'`" 17797 CPPFLAGS="$CPPFLAGS -I$header" 17798 LDFLAGS="$LDFLAGS -L$lib" 17799 description="$header and $lib" 17800 ;; 17801 * ) 17802 if test -d $bdb_place; then 17803 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 17804 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 17805 else 17806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 17807$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 17808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 17809$as_echo "directory not found" >&6; } 17810 continue 17811 fi 17812 description="$bdb_place" 17813 ;; 17814 esac 17815 17816 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 17817 # trick to display a message instead. 17818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 17819$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 17821$as_echo "" >&6; } 17822 17823 for bdb_libname in $bdb_default_search_lib_names; do 17824 for bdb_header in $bdb_default_search_headers; do 17825 # Clear the header cache variable for each location 17826 17827 cache_id="`echo ac_cv_header_${bdb_header} \ 17828 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 17829 17830 unset $cache_id 17831 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 17832ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 17833if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17834
|
17820 if test "1" = "3" -o "1" = "4" -o "1" = "5"; then
| 17835 if test "1" = "3" -o "1" = "4" -o "1" = "5" -o "1" = "6"; then
|
17821 # We generate a separate cache variable for each prefix and libname 17822 # we search under. That way, we avoid caching information that 17823 # changes if the user runs `configure' with a different set of 17824 # switches. 17825 17826 cache_id="`echo apu_cv_check_berkeley_db_1_0_0_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 17827 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 17828 17829 17830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 17831$as_echo_n "checking for -l$bdb_libname... " >&6; } 17832 if eval \${$cache_id+:} false; then : 17833 $as_echo_n "(cached) " >&6 17834else 17835 17836 17837 apu_try_berkeley_db_save_libs="$LIBS" 17838 17839 apu_check_berkeley_db_major=1 17840 apu_check_berkeley_db_minor=0 17841 apu_check_berkeley_db_patch=0 17842 apu_try_berkeley_db_header=$bdb_header 17843 apu_try_berkeley_db_libname=$bdb_libname 17844 17845 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 17846 if test "$cross_compiling" = yes; then : 17847 apu_try_berkeley_db=yes 17848 17849else 17850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17851/* end confdefs.h. */ 17852 17853#include <stdlib.h> 17854#include <stdio.h> 17855#include <$apu_try_berkeley_db_header> 17856main () 17857{ 17858 int major, minor, patch; 17859 17860 db_version(&major, &minor, &patch); 17861 17862 /* Sanity check: ensure that db.h constants actually match the db library */ 17863 if (major != DB_VERSION_MAJOR 17864 || minor != DB_VERSION_MINOR 17865 || patch != DB_VERSION_PATCH) 17866 exit (1); 17867 17868 /* Run-time check: ensure the library claims to be the correct version. */ 17869 17870 if ($apu_check_berkeley_db_major != -1) { 17871 if (major < $apu_check_berkeley_db_major) 17872 exit (1); 17873 if (major > $apu_check_berkeley_db_major) 17874 exit (0); 17875 } 17876 17877 if ($apu_check_berkeley_db_minor != -1) { 17878 if (minor < $apu_check_berkeley_db_minor) 17879 exit (1); 17880 if (minor > $apu_check_berkeley_db_minor) 17881 exit (0); 17882 } 17883 17884 if ($apu_check_berkeley_db_patch == -1 17885 || patch >= $apu_check_berkeley_db_patch) 17886 exit (0); 17887 else 17888 exit (1); 17889} 17890 17891_ACEOF 17892if ac_fn_c_try_run "$LINENO"; then : 17893 apu_try_berkeley_db=yes 17894else 17895 apu_try_berkeley_db=no 17896fi 17897rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17898 conftest.$ac_objext conftest.beam conftest.$ac_ext 17899fi 17900 17901 17902 LIBS="$apu_try_berkeley_db_save_libs" 17903 17904 17905 eval "$cache_id=$apu_try_berkeley_db" 17906 17907fi 17908 17909 result="`eval echo '$'$cache_id`" 17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 17911$as_echo "$result" >&6; } 17912 elif test "1" = "1"; then 17913 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 17914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 17915$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 17916if eval \${$as_ac_Lib+:} false; then : 17917 $as_echo_n "(cached) " >&6 17918else 17919 ac_check_lib_save_LIBS=$LIBS 17920LIBS="-l$bdb_libname $LIBS" 17921cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17922/* end confdefs.h. */ 17923 17924/* Override any GCC internal prototype to avoid an error. 17925 Use char because int might match the return type of a GCC 17926 builtin and then its argument prototype would still apply. */ 17927#ifdef __cplusplus 17928extern "C" 17929#endif 17930char dbopen (); 17931int 17932main () 17933{ 17934return dbopen (); 17935 ; 17936 return 0; 17937} 17938_ACEOF 17939if ac_fn_c_try_link "$LINENO"; then : 17940 eval "$as_ac_Lib=yes" 17941else 17942 eval "$as_ac_Lib=no" 17943fi 17944rm -f core conftest.err conftest.$ac_objext \ 17945 conftest$ac_exeext conftest.$ac_ext 17946LIBS=$ac_check_lib_save_LIBS 17947fi 17948eval ac_res=\$$as_ac_Lib 17949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17950$as_echo "$ac_res" >&6; } 17951if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 17952 result=yes 17953else 17954 result=no 17955 17956fi 17957 17958 elif test "1" = "2"; then 17959 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 17960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 17961$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 17962if eval \${$as_ac_Lib+:} false; then : 17963 $as_echo_n "(cached) " >&6 17964else 17965 ac_check_lib_save_LIBS=$LIBS 17966LIBS="-l$bdb_libname $LIBS" 17967cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17968/* end confdefs.h. */ 17969 17970/* Override any GCC internal prototype to avoid an error. 17971 Use char because int might match the return type of a GCC 17972 builtin and then its argument prototype would still apply. */ 17973#ifdef __cplusplus 17974extern "C" 17975#endif 17976char db_open (); 17977int 17978main () 17979{ 17980return db_open (); 17981 ; 17982 return 0; 17983} 17984_ACEOF 17985if ac_fn_c_try_link "$LINENO"; then : 17986 eval "$as_ac_Lib=yes" 17987else 17988 eval "$as_ac_Lib=no" 17989fi 17990rm -f core conftest.err conftest.$ac_objext \ 17991 conftest$ac_exeext conftest.$ac_ext 17992LIBS=$ac_check_lib_save_LIBS 17993fi 17994eval ac_res=\$$as_ac_Lib 17995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17996$as_echo "$ac_res" >&6; } 17997if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 17998 result=yes 17999else 18000 result=no 18001 18002fi 18003 18004 fi 18005 18006else 18007 result="no" 18008fi 18009 18010 18011 18012 # If we found it, no need to search any more. 18013 if test "$result" = "yes"; then 18014 found="$bdb_place" 18015 break 18016 fi 18017 done 18018 test "$found" != "not" && break 18019 done 18020 test "$found" != "not" && break 18021 done 18022 18023 # Restore the original values of the flags we tweak. 18024 LDFLAGS="$apu_check_lib_save_ldflags" 18025 CPPFLAGS="$apu_check_lib_save_cppflags" 18026 18027 case "$found" in 18028 "not") 18029 apu_have_db=0 18030 ;; 18031 "std") 18032 apu_db_header=$bdb_header 18033 apu_db_lib=$bdb_libname 18034 apu_have_db=1 18035 ;; 18036 *":"*) 18037 header="`echo $found | sed -e 's/:.*$//'`" 18038 lib="`echo $found | sed -e 's/^.*://'`" 18039 18040 18041 if test "x$APRUTIL_INCLUDES" = "x"; then 18042 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 18043 APRUTIL_INCLUDES="-I$header" 18044 else 18045 apr_addto_bugger="-I$header" 18046 for i in $apr_addto_bugger; do 18047 apr_addto_duplicate="0" 18048 for j in $APRUTIL_INCLUDES; do 18049 if test "x$i" = "x$j"; then 18050 apr_addto_duplicate="1" 18051 break 18052 fi 18053 done 18054 if test $apr_addto_duplicate = "0"; then 18055 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 18056 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 18057 fi 18058 done 18059 fi 18060 18061 18062 if test "x$APRUTIL_LDFLAGS" = "x"; then 18063 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 18064 APRUTIL_LDFLAGS="-L$lib" 18065 else 18066 apr_addto_bugger="-L$lib" 18067 for i in $apr_addto_bugger; do 18068 apr_addto_duplicate="0" 18069 for j in $APRUTIL_LDFLAGS; do 18070 if test "x$i" = "x$j"; then 18071 apr_addto_duplicate="1" 18072 break 18073 fi 18074 done 18075 if test $apr_addto_duplicate = "0"; then 18076 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 18077 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 18078 fi 18079 done 18080 fi 18081 18082 apu_db_header=$bdb_header 18083 apu_db_lib=$bdb_libname 18084 apu_have_db=1 18085 ;; 18086 *) 18087 18088 if test "x$APRUTIL_INCLUDES" = "x"; then 18089 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 18090 APRUTIL_INCLUDES="-I$found/include" 18091 else 18092 apr_addto_bugger="-I$found/include" 18093 for i in $apr_addto_bugger; do 18094 apr_addto_duplicate="0" 18095 for j in $APRUTIL_INCLUDES; do 18096 if test "x$i" = "x$j"; then 18097 apr_addto_duplicate="1" 18098 break 18099 fi 18100 done 18101 if test $apr_addto_duplicate = "0"; then 18102 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 18103 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 18104 fi 18105 done 18106 fi 18107 18108 18109 if test "x$APRUTIL_LDFLAGS" = "x"; then 18110 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 18111 APRUTIL_LDFLAGS="-L$found/lib" 18112 else 18113 apr_addto_bugger="-L$found/lib" 18114 for i in $apr_addto_bugger; do 18115 apr_addto_duplicate="0" 18116 for j in $APRUTIL_LDFLAGS; do 18117 if test "x$i" = "x$j"; then 18118 apr_addto_duplicate="1" 18119 break 18120 fi 18121 done 18122 if test $apr_addto_duplicate = "0"; then 18123 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 18124 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 18125 fi 18126 done 18127 fi 18128 18129 apu_db_header=$bdb_header 18130 apu_db_lib=$bdb_libname 18131 apu_have_db=1 18132 ;; 18133 esac 18134 18135 if test "$apu_have_db" = "1"; then 18136 apu_db_version=1 18137 fi 18138 18139 fi 18140 if test "$apu_have_db" = "0"; then 18141 18142 places="$all_places" 18143 if test -z "$places"; then 18144 places="std" 18145 fi 18146 18147 bdb_version=1 18148 if test "-1" != "-1"; then 18149 bdb_version="$bdb_version.-1" 18150 if test "-1" != "-1"; then 18151 bdb_version="$bdb_version.-1" 18152 fi 18153 fi 18154 bdb_places="$places" 18155 bdb_default_search_headers="db_185.h" 18156 bdb_default_search_lib_names="db" 18157 18158 18159 apu_have_db=0 18160 18161 # Save the original values of the flags we tweak. 18162 apu_check_lib_save_libs="$LIBS" 18163 apu_check_lib_save_ldflags="$LDFLAGS" 18164 apu_check_lib_save_cppflags="$CPPFLAGS" 18165 18166 # The variable `found' is the prefix under which we've found 18167 # Berkeley DB, or `not' if we haven't found it anywhere yet. 18168 found=not 18169 for bdb_place in $bdb_places; do 18170 18171 LDFLAGS="$apu_check_lib_save_ldflags" 18172 CPPFLAGS="$apu_check_lib_save_cppflags" 18173 case "$bdb_place" in 18174 "std" ) 18175 description="the standard places" 18176 ;; 18177 *":"* ) 18178 header="`echo $bdb_place | sed -e 's/:.*$//'`" 18179 lib="`echo $bdb_place | sed -e 's/^.*://'`" 18180 CPPFLAGS="$CPPFLAGS -I$header" 18181 LDFLAGS="$LDFLAGS -L$lib" 18182 description="$header and $lib" 18183 ;; 18184 * ) 18185 if test -d $bdb_place; then 18186 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 18187 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 18188 else 18189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 18190$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 18191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 18192$as_echo "directory not found" >&6; } 18193 continue 18194 fi 18195 description="$bdb_place" 18196 ;; 18197 esac 18198 18199 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 18200 # trick to display a message instead. 18201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 18202$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 18203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 18204$as_echo "" >&6; } 18205 18206 for bdb_libname in $bdb_default_search_lib_names; do 18207 for bdb_header in $bdb_default_search_headers; do 18208 # Clear the header cache variable for each location 18209 18210 cache_id="`echo ac_cv_header_${bdb_header} \ 18211 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 18212 18213 unset $cache_id 18214 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 18215ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 18216if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18217
| 17836 # We generate a separate cache variable for each prefix and libname 17837 # we search under. That way, we avoid caching information that 17838 # changes if the user runs `configure' with a different set of 17839 # switches. 17840 17841 cache_id="`echo apu_cv_check_berkeley_db_1_0_0_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 17842 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 17843 17844 17845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 17846$as_echo_n "checking for -l$bdb_libname... " >&6; } 17847 if eval \${$cache_id+:} false; then : 17848 $as_echo_n "(cached) " >&6 17849else 17850 17851 17852 apu_try_berkeley_db_save_libs="$LIBS" 17853 17854 apu_check_berkeley_db_major=1 17855 apu_check_berkeley_db_minor=0 17856 apu_check_berkeley_db_patch=0 17857 apu_try_berkeley_db_header=$bdb_header 17858 apu_try_berkeley_db_libname=$bdb_libname 17859 17860 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 17861 if test "$cross_compiling" = yes; then : 17862 apu_try_berkeley_db=yes 17863 17864else 17865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17866/* end confdefs.h. */ 17867 17868#include <stdlib.h> 17869#include <stdio.h> 17870#include <$apu_try_berkeley_db_header> 17871main () 17872{ 17873 int major, minor, patch; 17874 17875 db_version(&major, &minor, &patch); 17876 17877 /* Sanity check: ensure that db.h constants actually match the db library */ 17878 if (major != DB_VERSION_MAJOR 17879 || minor != DB_VERSION_MINOR 17880 || patch != DB_VERSION_PATCH) 17881 exit (1); 17882 17883 /* Run-time check: ensure the library claims to be the correct version. */ 17884 17885 if ($apu_check_berkeley_db_major != -1) { 17886 if (major < $apu_check_berkeley_db_major) 17887 exit (1); 17888 if (major > $apu_check_berkeley_db_major) 17889 exit (0); 17890 } 17891 17892 if ($apu_check_berkeley_db_minor != -1) { 17893 if (minor < $apu_check_berkeley_db_minor) 17894 exit (1); 17895 if (minor > $apu_check_berkeley_db_minor) 17896 exit (0); 17897 } 17898 17899 if ($apu_check_berkeley_db_patch == -1 17900 || patch >= $apu_check_berkeley_db_patch) 17901 exit (0); 17902 else 17903 exit (1); 17904} 17905 17906_ACEOF 17907if ac_fn_c_try_run "$LINENO"; then : 17908 apu_try_berkeley_db=yes 17909else 17910 apu_try_berkeley_db=no 17911fi 17912rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17913 conftest.$ac_objext conftest.beam conftest.$ac_ext 17914fi 17915 17916 17917 LIBS="$apu_try_berkeley_db_save_libs" 17918 17919 17920 eval "$cache_id=$apu_try_berkeley_db" 17921 17922fi 17923 17924 result="`eval echo '$'$cache_id`" 17925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 17926$as_echo "$result" >&6; } 17927 elif test "1" = "1"; then 17928 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 17929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 17930$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 17931if eval \${$as_ac_Lib+:} false; then : 17932 $as_echo_n "(cached) " >&6 17933else 17934 ac_check_lib_save_LIBS=$LIBS 17935LIBS="-l$bdb_libname $LIBS" 17936cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17937/* end confdefs.h. */ 17938 17939/* Override any GCC internal prototype to avoid an error. 17940 Use char because int might match the return type of a GCC 17941 builtin and then its argument prototype would still apply. */ 17942#ifdef __cplusplus 17943extern "C" 17944#endif 17945char dbopen (); 17946int 17947main () 17948{ 17949return dbopen (); 17950 ; 17951 return 0; 17952} 17953_ACEOF 17954if ac_fn_c_try_link "$LINENO"; then : 17955 eval "$as_ac_Lib=yes" 17956else 17957 eval "$as_ac_Lib=no" 17958fi 17959rm -f core conftest.err conftest.$ac_objext \ 17960 conftest$ac_exeext conftest.$ac_ext 17961LIBS=$ac_check_lib_save_LIBS 17962fi 17963eval ac_res=\$$as_ac_Lib 17964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17965$as_echo "$ac_res" >&6; } 17966if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 17967 result=yes 17968else 17969 result=no 17970 17971fi 17972 17973 elif test "1" = "2"; then 17974 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 17975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 17976$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 17977if eval \${$as_ac_Lib+:} false; then : 17978 $as_echo_n "(cached) " >&6 17979else 17980 ac_check_lib_save_LIBS=$LIBS 17981LIBS="-l$bdb_libname $LIBS" 17982cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17983/* end confdefs.h. */ 17984 17985/* Override any GCC internal prototype to avoid an error. 17986 Use char because int might match the return type of a GCC 17987 builtin and then its argument prototype would still apply. */ 17988#ifdef __cplusplus 17989extern "C" 17990#endif 17991char db_open (); 17992int 17993main () 17994{ 17995return db_open (); 17996 ; 17997 return 0; 17998} 17999_ACEOF 18000if ac_fn_c_try_link "$LINENO"; then : 18001 eval "$as_ac_Lib=yes" 18002else 18003 eval "$as_ac_Lib=no" 18004fi 18005rm -f core conftest.err conftest.$ac_objext \ 18006 conftest$ac_exeext conftest.$ac_ext 18007LIBS=$ac_check_lib_save_LIBS 18008fi 18009eval ac_res=\$$as_ac_Lib 18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18011$as_echo "$ac_res" >&6; } 18012if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 18013 result=yes 18014else 18015 result=no 18016 18017fi 18018 18019 fi 18020 18021else 18022 result="no" 18023fi 18024 18025 18026 18027 # If we found it, no need to search any more. 18028 if test "$result" = "yes"; then 18029 found="$bdb_place" 18030 break 18031 fi 18032 done 18033 test "$found" != "not" && break 18034 done 18035 test "$found" != "not" && break 18036 done 18037 18038 # Restore the original values of the flags we tweak. 18039 LDFLAGS="$apu_check_lib_save_ldflags" 18040 CPPFLAGS="$apu_check_lib_save_cppflags" 18041 18042 case "$found" in 18043 "not") 18044 apu_have_db=0 18045 ;; 18046 "std") 18047 apu_db_header=$bdb_header 18048 apu_db_lib=$bdb_libname 18049 apu_have_db=1 18050 ;; 18051 *":"*) 18052 header="`echo $found | sed -e 's/:.*$//'`" 18053 lib="`echo $found | sed -e 's/^.*://'`" 18054 18055 18056 if test "x$APRUTIL_INCLUDES" = "x"; then 18057 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 18058 APRUTIL_INCLUDES="-I$header" 18059 else 18060 apr_addto_bugger="-I$header" 18061 for i in $apr_addto_bugger; do 18062 apr_addto_duplicate="0" 18063 for j in $APRUTIL_INCLUDES; do 18064 if test "x$i" = "x$j"; then 18065 apr_addto_duplicate="1" 18066 break 18067 fi 18068 done 18069 if test $apr_addto_duplicate = "0"; then 18070 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 18071 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 18072 fi 18073 done 18074 fi 18075 18076 18077 if test "x$APRUTIL_LDFLAGS" = "x"; then 18078 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 18079 APRUTIL_LDFLAGS="-L$lib" 18080 else 18081 apr_addto_bugger="-L$lib" 18082 for i in $apr_addto_bugger; do 18083 apr_addto_duplicate="0" 18084 for j in $APRUTIL_LDFLAGS; do 18085 if test "x$i" = "x$j"; then 18086 apr_addto_duplicate="1" 18087 break 18088 fi 18089 done 18090 if test $apr_addto_duplicate = "0"; then 18091 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 18092 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 18093 fi 18094 done 18095 fi 18096 18097 apu_db_header=$bdb_header 18098 apu_db_lib=$bdb_libname 18099 apu_have_db=1 18100 ;; 18101 *) 18102 18103 if test "x$APRUTIL_INCLUDES" = "x"; then 18104 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 18105 APRUTIL_INCLUDES="-I$found/include" 18106 else 18107 apr_addto_bugger="-I$found/include" 18108 for i in $apr_addto_bugger; do 18109 apr_addto_duplicate="0" 18110 for j in $APRUTIL_INCLUDES; do 18111 if test "x$i" = "x$j"; then 18112 apr_addto_duplicate="1" 18113 break 18114 fi 18115 done 18116 if test $apr_addto_duplicate = "0"; then 18117 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 18118 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 18119 fi 18120 done 18121 fi 18122 18123 18124 if test "x$APRUTIL_LDFLAGS" = "x"; then 18125 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 18126 APRUTIL_LDFLAGS="-L$found/lib" 18127 else 18128 apr_addto_bugger="-L$found/lib" 18129 for i in $apr_addto_bugger; do 18130 apr_addto_duplicate="0" 18131 for j in $APRUTIL_LDFLAGS; do 18132 if test "x$i" = "x$j"; then 18133 apr_addto_duplicate="1" 18134 break 18135 fi 18136 done 18137 if test $apr_addto_duplicate = "0"; then 18138 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 18139 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 18140 fi 18141 done 18142 fi 18143 18144 apu_db_header=$bdb_header 18145 apu_db_lib=$bdb_libname 18146 apu_have_db=1 18147 ;; 18148 esac 18149 18150 if test "$apu_have_db" = "1"; then 18151 apu_db_version=1 18152 fi 18153 18154 fi 18155 if test "$apu_have_db" = "0"; then 18156 18157 places="$all_places" 18158 if test -z "$places"; then 18159 places="std" 18160 fi 18161 18162 bdb_version=1 18163 if test "-1" != "-1"; then 18164 bdb_version="$bdb_version.-1" 18165 if test "-1" != "-1"; then 18166 bdb_version="$bdb_version.-1" 18167 fi 18168 fi 18169 bdb_places="$places" 18170 bdb_default_search_headers="db_185.h" 18171 bdb_default_search_lib_names="db" 18172 18173 18174 apu_have_db=0 18175 18176 # Save the original values of the flags we tweak. 18177 apu_check_lib_save_libs="$LIBS" 18178 apu_check_lib_save_ldflags="$LDFLAGS" 18179 apu_check_lib_save_cppflags="$CPPFLAGS" 18180 18181 # The variable `found' is the prefix under which we've found 18182 # Berkeley DB, or `not' if we haven't found it anywhere yet. 18183 found=not 18184 for bdb_place in $bdb_places; do 18185 18186 LDFLAGS="$apu_check_lib_save_ldflags" 18187 CPPFLAGS="$apu_check_lib_save_cppflags" 18188 case "$bdb_place" in 18189 "std" ) 18190 description="the standard places" 18191 ;; 18192 *":"* ) 18193 header="`echo $bdb_place | sed -e 's/:.*$//'`" 18194 lib="`echo $bdb_place | sed -e 's/^.*://'`" 18195 CPPFLAGS="$CPPFLAGS -I$header" 18196 LDFLAGS="$LDFLAGS -L$lib" 18197 description="$header and $lib" 18198 ;; 18199 * ) 18200 if test -d $bdb_place; then 18201 LDFLAGS="$LDFLAGS -L$bdb_place/lib" 18202 CPPFLAGS="$CPPFLAGS -I$bdb_place/include" 18203 else 18204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $bdb_place" >&5 18205$as_echo_n "checking for Berkeley DB $bdb_version in $bdb_place... " >&6; } 18206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: directory not found" >&5 18207$as_echo "directory not found" >&6; } 18208 continue 18209 fi 18210 description="$bdb_place" 18211 ;; 18212 esac 18213 18214 # Since there is no AC_MSG_NOTICE in autoconf 2.13, we use this 18215 # trick to display a message instead. 18216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB $bdb_version in $description" >&5 18217$as_echo_n "checking for Berkeley DB $bdb_version in $description... " >&6; } 18218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 18219$as_echo "" >&6; } 18220 18221 for bdb_libname in $bdb_default_search_lib_names; do 18222 for bdb_header in $bdb_default_search_headers; do 18223 # Clear the header cache variable for each location 18224 18225 cache_id="`echo ac_cv_header_${bdb_header} \ 18226 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 18227 18228 unset $cache_id 18229 as_ac_Header=`$as_echo "ac_cv_header_$bdb_header" | $as_tr_sh` 18230ac_fn_c_check_header_mongrel "$LINENO" "$bdb_header" "$as_ac_Header" "$ac_includes_default" 18231if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18232
|
18218 if test "1" = "3" -o "1" = "4" -o "1" = "5"; then
| 18233 if test "1" = "3" -o "1" = "4" -o "1" = "5" -o "1" = "6"; then
|
18219 # We generate a separate cache variable for each prefix and libname 18220 # we search under. That way, we avoid caching information that 18221 # changes if the user runs `configure' with a different set of 18222 # switches. 18223 18224 cache_id="`echo apu_cv_check_berkeley_db_1_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 18225 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 18226 18227 18228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 18229$as_echo_n "checking for -l$bdb_libname... " >&6; } 18230 if eval \${$cache_id+:} false; then : 18231 $as_echo_n "(cached) " >&6 18232else 18233 18234 18235 apu_try_berkeley_db_save_libs="$LIBS" 18236 18237 apu_check_berkeley_db_major=1 18238 apu_check_berkeley_db_minor=-1 18239 apu_check_berkeley_db_patch=-1 18240 apu_try_berkeley_db_header=$bdb_header 18241 apu_try_berkeley_db_libname=$bdb_libname 18242 18243 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 18244 if test "$cross_compiling" = yes; then : 18245 apu_try_berkeley_db=yes 18246 18247else 18248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18249/* end confdefs.h. */ 18250 18251#include <stdlib.h> 18252#include <stdio.h> 18253#include <$apu_try_berkeley_db_header> 18254main () 18255{ 18256 int major, minor, patch; 18257 18258 db_version(&major, &minor, &patch); 18259 18260 /* Sanity check: ensure that db.h constants actually match the db library */ 18261 if (major != DB_VERSION_MAJOR 18262 || minor != DB_VERSION_MINOR 18263 || patch != DB_VERSION_PATCH) 18264 exit (1); 18265 18266 /* Run-time check: ensure the library claims to be the correct version. */ 18267 18268 if ($apu_check_berkeley_db_major != -1) { 18269 if (major < $apu_check_berkeley_db_major) 18270 exit (1); 18271 if (major > $apu_check_berkeley_db_major) 18272 exit (0); 18273 } 18274 18275 if ($apu_check_berkeley_db_minor != -1) { 18276 if (minor < $apu_check_berkeley_db_minor) 18277 exit (1); 18278 if (minor > $apu_check_berkeley_db_minor) 18279 exit (0); 18280 } 18281 18282 if ($apu_check_berkeley_db_patch == -1 18283 || patch >= $apu_check_berkeley_db_patch) 18284 exit (0); 18285 else 18286 exit (1); 18287} 18288 18289_ACEOF 18290if ac_fn_c_try_run "$LINENO"; then : 18291 apu_try_berkeley_db=yes 18292else 18293 apu_try_berkeley_db=no 18294fi 18295rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18296 conftest.$ac_objext conftest.beam conftest.$ac_ext 18297fi 18298 18299 18300 LIBS="$apu_try_berkeley_db_save_libs" 18301 18302 18303 eval "$cache_id=$apu_try_berkeley_db" 18304 18305fi 18306 18307 result="`eval echo '$'$cache_id`" 18308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 18309$as_echo "$result" >&6; } 18310 elif test "1" = "1"; then 18311 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 18312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 18313$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 18314if eval \${$as_ac_Lib+:} false; then : 18315 $as_echo_n "(cached) " >&6 18316else 18317 ac_check_lib_save_LIBS=$LIBS 18318LIBS="-l$bdb_libname $LIBS" 18319cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18320/* end confdefs.h. */ 18321 18322/* Override any GCC internal prototype to avoid an error. 18323 Use char because int might match the return type of a GCC 18324 builtin and then its argument prototype would still apply. */ 18325#ifdef __cplusplus 18326extern "C" 18327#endif 18328char dbopen (); 18329int 18330main () 18331{ 18332return dbopen (); 18333 ; 18334 return 0; 18335} 18336_ACEOF 18337if ac_fn_c_try_link "$LINENO"; then : 18338 eval "$as_ac_Lib=yes" 18339else 18340 eval "$as_ac_Lib=no" 18341fi 18342rm -f core conftest.err conftest.$ac_objext \ 18343 conftest$ac_exeext conftest.$ac_ext 18344LIBS=$ac_check_lib_save_LIBS 18345fi 18346eval ac_res=\$$as_ac_Lib 18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18348$as_echo "$ac_res" >&6; } 18349if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 18350 result=yes 18351else 18352 result=no 18353 18354fi 18355 18356 elif test "1" = "2"; then 18357 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 18358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 18359$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 18360if eval \${$as_ac_Lib+:} false; then : 18361 $as_echo_n "(cached) " >&6 18362else 18363 ac_check_lib_save_LIBS=$LIBS 18364LIBS="-l$bdb_libname $LIBS" 18365cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18366/* end confdefs.h. */ 18367 18368/* Override any GCC internal prototype to avoid an error. 18369 Use char because int might match the return type of a GCC 18370 builtin and then its argument prototype would still apply. */ 18371#ifdef __cplusplus 18372extern "C" 18373#endif 18374char db_open (); 18375int 18376main () 18377{ 18378return db_open (); 18379 ; 18380 return 0; 18381} 18382_ACEOF 18383if ac_fn_c_try_link "$LINENO"; then : 18384 eval "$as_ac_Lib=yes" 18385else 18386 eval "$as_ac_Lib=no" 18387fi 18388rm -f core conftest.err conftest.$ac_objext \ 18389 conftest$ac_exeext conftest.$ac_ext 18390LIBS=$ac_check_lib_save_LIBS 18391fi 18392eval ac_res=\$$as_ac_Lib 18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18394$as_echo "$ac_res" >&6; } 18395if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 18396 result=yes 18397else 18398 result=no 18399 18400fi 18401 18402 fi 18403 18404else 18405 result="no" 18406fi 18407 18408 18409 18410 # If we found it, no need to search any more. 18411 if test "$result" = "yes"; then 18412 found="$bdb_place" 18413 break 18414 fi 18415 done 18416 test "$found" != "not" && break 18417 done 18418 test "$found" != "not" && break 18419 done 18420 18421 # Restore the original values of the flags we tweak. 18422 LDFLAGS="$apu_check_lib_save_ldflags" 18423 CPPFLAGS="$apu_check_lib_save_cppflags" 18424 18425 case "$found" in 18426 "not") 18427 apu_have_db=0 18428 ;; 18429 "std") 18430 apu_db_header=$bdb_header 18431 apu_db_lib=$bdb_libname 18432 apu_have_db=1 18433 ;; 18434 *":"*) 18435 header="`echo $found | sed -e 's/:.*$//'`" 18436 lib="`echo $found | sed -e 's/^.*://'`" 18437 18438 18439 if test "x$APRUTIL_INCLUDES" = "x"; then 18440 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 18441 APRUTIL_INCLUDES="-I$header" 18442 else 18443 apr_addto_bugger="-I$header" 18444 for i in $apr_addto_bugger; do 18445 apr_addto_duplicate="0" 18446 for j in $APRUTIL_INCLUDES; do 18447 if test "x$i" = "x$j"; then 18448 apr_addto_duplicate="1" 18449 break 18450 fi 18451 done 18452 if test $apr_addto_duplicate = "0"; then 18453 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 18454 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 18455 fi 18456 done 18457 fi 18458 18459 18460 if test "x$APRUTIL_LDFLAGS" = "x"; then 18461 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 18462 APRUTIL_LDFLAGS="-L$lib" 18463 else 18464 apr_addto_bugger="-L$lib" 18465 for i in $apr_addto_bugger; do 18466 apr_addto_duplicate="0" 18467 for j in $APRUTIL_LDFLAGS; do 18468 if test "x$i" = "x$j"; then 18469 apr_addto_duplicate="1" 18470 break 18471 fi 18472 done 18473 if test $apr_addto_duplicate = "0"; then 18474 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 18475 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 18476 fi 18477 done 18478 fi 18479 18480 apu_db_header=$bdb_header 18481 apu_db_lib=$bdb_libname 18482 apu_have_db=1 18483 ;; 18484 *) 18485 18486 if test "x$APRUTIL_INCLUDES" = "x"; then 18487 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 18488 APRUTIL_INCLUDES="-I$found/include" 18489 else 18490 apr_addto_bugger="-I$found/include" 18491 for i in $apr_addto_bugger; do 18492 apr_addto_duplicate="0" 18493 for j in $APRUTIL_INCLUDES; do 18494 if test "x$i" = "x$j"; then 18495 apr_addto_duplicate="1" 18496 break 18497 fi 18498 done 18499 if test $apr_addto_duplicate = "0"; then 18500 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 18501 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 18502 fi 18503 done 18504 fi 18505 18506 18507 if test "x$APRUTIL_LDFLAGS" = "x"; then 18508 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 18509 APRUTIL_LDFLAGS="-L$found/lib" 18510 else 18511 apr_addto_bugger="-L$found/lib" 18512 for i in $apr_addto_bugger; do 18513 apr_addto_duplicate="0" 18514 for j in $APRUTIL_LDFLAGS; do 18515 if test "x$i" = "x$j"; then 18516 apr_addto_duplicate="1" 18517 break 18518 fi 18519 done 18520 if test $apr_addto_duplicate = "0"; then 18521 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 18522 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 18523 fi 18524 done 18525 fi 18526 18527 apu_db_header=$bdb_header 18528 apu_db_lib=$bdb_libname 18529 apu_have_db=1 18530 ;; 18531 esac 18532 18533 if test "$apu_have_db" = "1"; then 18534 apu_db_version=185 18535 fi 18536 18537 fi 18538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB" >&5 18539$as_echo_n "checking for Berkeley DB... " >&6; } 18540 if test "$apu_have_db" = "1"; then 18541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found db$apu_db_version" >&5 18542$as_echo "found db$apu_db_version" >&6; } 18543 else 18544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18545$as_echo "not found" >&6; } 18546 fi 18547 18548 ;; 18549 esac 18550 18551 if test "$apu_have_db" = "0"; then 18552 as_fn_error $? "Berkeley DB not found." "$LINENO" 5 18553 fi 18554 fi 18555 18556fi 18557 18558 18559 if test -n "$apu_db_xtra_libs"; then 18560 LIBS="$saveddbxtralibs" 18561 fi 18562 18563 case "$requested" in 18564 sdbm | gdbm | ndbm | db) 18565 eval "apu_use_$requested=1" 18566 apu_default_dbm=$requested 18567 ;; 18568 db185 | db[123456]) 18569 apu_use_db=1 18570 apu_default_dbm=$requested 18571 ;; 18572 db[456][0-9]) 18573 apu_use_db=1 18574 apu_default_dbm=`echo $requested | sed -e 's/.$//'` 18575 ;; 18576 default) 18577 apu_default_dbm="sdbm (default)" 18578 apu_use_sdbm=1 18579 ;; 18580 *) 18581 as_fn_error $? "--with-dbm=$requested is an unknown DBM type. 18582 Use one of: $dbm_list" "$LINENO" 5 18583 ;; 18584 esac 18585 18586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default DBM" >&5 18587$as_echo_n "checking for default DBM... " >&6; } 18588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_default_dbm" >&5 18589$as_echo "$apu_default_dbm" >&6; } 18590 18591 18592 18593 18594 18595 18596 18597 18598 18599 18600 18601 18602 18603 if test "$apu_have_db" = "1"; then 18604 18605 if test "x$LDADD_dbm_db" = "x"; then 18606 test "x$silent" != "xyes" && echo " setting LDADD_dbm_db to \"-l$apu_db_lib\"" 18607 LDADD_dbm_db="-l$apu_db_lib" 18608 else 18609 apr_addto_bugger="-l$apu_db_lib" 18610 for i in $apr_addto_bugger; do 18611 apr_addto_duplicate="0" 18612 for j in $LDADD_dbm_db; do 18613 if test "x$i" = "x$j"; then 18614 apr_addto_duplicate="1" 18615 break 18616 fi 18617 done 18618 if test $apr_addto_duplicate = "0"; then 18619 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbm_db" 18620 LDADD_dbm_db="$LDADD_dbm_db $i" 18621 fi 18622 done 18623 fi 18624 18625 if test -n "apu_db_xtra_libs"; then 18626 18627 if test "x$LDADD_dbm_db" = "x"; then 18628 test "x$silent" != "xyes" && echo " setting LDADD_dbm_db to \"$apu_db_xtra_libs\"" 18629 LDADD_dbm_db="$apu_db_xtra_libs" 18630 else 18631 apr_addto_bugger="$apu_db_xtra_libs" 18632 for i in $apr_addto_bugger; do 18633 apr_addto_duplicate="0" 18634 for j in $LDADD_dbm_db; do 18635 if test "x$i" = "x$j"; then 18636 apr_addto_duplicate="1" 18637 break 18638 fi 18639 done 18640 if test $apr_addto_duplicate = "0"; then 18641 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbm_db" 18642 LDADD_dbm_db="$LDADD_dbm_db $i" 18643 fi 18644 done 18645 fi 18646 18647 fi 18648 fi 18649 18650 if test "$apu_have_gdbm" = "1"; then 18651 18652 if test "x$LDADD_dbm_gdbm" = "x"; then 18653 test "x$silent" != "xyes" && echo " setting LDADD_dbm_gdbm to \"-lgdbm\"" 18654 LDADD_dbm_gdbm="-lgdbm" 18655 else 18656 apr_addto_bugger="-lgdbm" 18657 for i in $apr_addto_bugger; do 18658 apr_addto_duplicate="0" 18659 for j in $LDADD_dbm_gdbm; do 18660 if test "x$i" = "x$j"; then 18661 apr_addto_duplicate="1" 18662 break 18663 fi 18664 done 18665 if test $apr_addto_duplicate = "0"; then 18666 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbm_gdbm" 18667 LDADD_dbm_gdbm="$LDADD_dbm_gdbm $i" 18668 fi 18669 done 18670 fi 18671 18672 fi 18673 18674 if test "$apu_have_ndbm" = "1"; then 18675 18676 if test "x$LDADD_dbm_ndbm" = "x"; then 18677 test "x$silent" != "xyes" && echo " setting LDADD_dbm_ndbm to \"-l$apu_ndbm_lib\"" 18678 LDADD_dbm_ndbm="-l$apu_ndbm_lib" 18679 else 18680 apr_addto_bugger="-l$apu_ndbm_lib" 18681 for i in $apr_addto_bugger; do 18682 apr_addto_duplicate="0" 18683 for j in $LDADD_dbm_ndbm; do 18684 if test "x$i" = "x$j"; then 18685 apr_addto_duplicate="1" 18686 break 18687 fi 18688 done 18689 if test $apr_addto_duplicate = "0"; then 18690 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbm_ndbm" 18691 LDADD_dbm_ndbm="$LDADD_dbm_ndbm $i" 18692 fi 18693 done 18694 fi 18695 18696 fi 18697 18698 18699 18700 18701 18702 18703 apu_have_pgsql=0 18704 18705 old_libs="$LIBS" 18706 old_cppflags="$CPPFLAGS" 18707 old_ldflags="$LDFLAGS" 18708 18709 18710# Check whether --with-pgsql was given. 18711if test "${with_pgsql+set}" = set; then : 18712 withval=$with_pgsql; 18713 if test "$withval" = "yes"; then 18714 # Extract the first word of "pg_config", so it can be a program name with args. 18715set dummy pg_config; ac_word=$2 18716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18717$as_echo_n "checking for $ac_word... " >&6; } 18718if ${ac_cv_path_PGSQL_CONFIG+:} false; then : 18719 $as_echo_n "(cached) " >&6 18720else 18721 case $PGSQL_CONFIG in 18722 [\\/]* | ?:[\\/]*) 18723 ac_cv_path_PGSQL_CONFIG="$PGSQL_CONFIG" # Let the user override the test with a path. 18724 ;; 18725 *) 18726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18727for as_dir in $PATH 18728do 18729 IFS=$as_save_IFS 18730 test -z "$as_dir" && as_dir=. 18731 for ac_exec_ext in '' $ac_executable_extensions; do 18732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18733 ac_cv_path_PGSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18735 break 2 18736 fi 18737done 18738 done 18739IFS=$as_save_IFS 18740 18741 ;; 18742esac 18743fi 18744PGSQL_CONFIG=$ac_cv_path_PGSQL_CONFIG 18745if test -n "$PGSQL_CONFIG"; then 18746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGSQL_CONFIG" >&5 18747$as_echo "$PGSQL_CONFIG" >&6; } 18748else 18749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18750$as_echo "no" >&6; } 18751fi 18752 18753 18754 if test "x$PGSQL_CONFIG" != 'x'; then 18755 pgsql_CPPFLAGS="-I`$PGSQL_CONFIG --includedir`" 18756 pgsql_LDFLAGS="-L`$PGSQL_CONFIG --libdir`" 18757 18758 18759 if test "x$CPPFLAGS" = "x"; then 18760 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$pgsql_CPPFLAGS\"" 18761 CPPFLAGS="$pgsql_CPPFLAGS" 18762 else 18763 apr_addto_bugger="$pgsql_CPPFLAGS" 18764 for i in $apr_addto_bugger; do 18765 apr_addto_duplicate="0" 18766 for j in $CPPFLAGS; do 18767 if test "x$i" = "x$j"; then 18768 apr_addto_duplicate="1" 18769 break 18770 fi 18771 done 18772 if test $apr_addto_duplicate = "0"; then 18773 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 18774 CPPFLAGS="$CPPFLAGS $i" 18775 fi 18776 done 18777 fi 18778 18779 18780 if test "x$LDFLAGS" = "x"; then 18781 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$pgsql_LDFLAGS\"" 18782 LDFLAGS="$pgsql_LDFLAGS" 18783 else 18784 apr_addto_bugger="$pgsql_LDFLAGS" 18785 for i in $apr_addto_bugger; do 18786 apr_addto_duplicate="0" 18787 for j in $LDFLAGS; do 18788 if test "x$i" = "x$j"; then 18789 apr_addto_duplicate="1" 18790 break 18791 fi 18792 done 18793 if test $apr_addto_duplicate = "0"; then 18794 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 18795 LDFLAGS="$LDFLAGS $i" 18796 fi 18797 done 18798 fi 18799 18800 fi 18801 18802 for ac_header in libpq-fe.h 18803do : 18804 ac_fn_c_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default" 18805if test "x$ac_cv_header_libpq_fe_h" = xyes; then : 18806 cat >>confdefs.h <<_ACEOF 18807#define HAVE_LIBPQ_FE_H 1 18808_ACEOF 18809 18810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 18811$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } 18812if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : 18813 $as_echo_n "(cached) " >&6 18814else 18815 ac_check_lib_save_LIBS=$LIBS 18816LIBS="-lpq $LIBS" 18817cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18818/* end confdefs.h. */ 18819 18820/* Override any GCC internal prototype to avoid an error. 18821 Use char because int might match the return type of a GCC 18822 builtin and then its argument prototype would still apply. */ 18823#ifdef __cplusplus 18824extern "C" 18825#endif 18826char PQsendQueryPrepared (); 18827int 18828main () 18829{ 18830return PQsendQueryPrepared (); 18831 ; 18832 return 0; 18833} 18834_ACEOF 18835if ac_fn_c_try_link "$LINENO"; then : 18836 ac_cv_lib_pq_PQsendQueryPrepared=yes 18837else 18838 ac_cv_lib_pq_PQsendQueryPrepared=no 18839fi 18840rm -f core conftest.err conftest.$ac_objext \ 18841 conftest$ac_exeext conftest.$ac_ext 18842LIBS=$ac_check_lib_save_LIBS 18843fi 18844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 18845$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } 18846if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : 18847 apu_have_pgsql=1 18848else 18849 18850 if test "x$PGSQL_CONFIG" != 'x'; then 18851 unset ac_cv_lib_pq_PQsendQueryPrepared 18852 pgsql_LIBS="`$PGSQL_CONFIG --libs`" 18853 18854 if test "x$LIBS" = "x"; then 18855 test "x$silent" != "xyes" && echo " setting LIBS to \"$pgsql_LIBS\"" 18856 LIBS="$pgsql_LIBS" 18857 else 18858 apr_addto_bugger="$pgsql_LIBS" 18859 for i in $apr_addto_bugger; do 18860 apr_addto_duplicate="0" 18861 for j in $LIBS; do 18862 if test "x$i" = "x$j"; then 18863 apr_addto_duplicate="1" 18864 break 18865 fi 18866 done 18867 if test $apr_addto_duplicate = "0"; then 18868 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 18869 LIBS="$LIBS $i" 18870 fi 18871 done 18872 fi 18873 18874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 18875$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } 18876if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : 18877 $as_echo_n "(cached) " >&6 18878else 18879 ac_check_lib_save_LIBS=$LIBS 18880LIBS="-lpq $LIBS" 18881cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18882/* end confdefs.h. */ 18883 18884/* Override any GCC internal prototype to avoid an error. 18885 Use char because int might match the return type of a GCC 18886 builtin and then its argument prototype would still apply. */ 18887#ifdef __cplusplus 18888extern "C" 18889#endif 18890char PQsendQueryPrepared (); 18891int 18892main () 18893{ 18894return PQsendQueryPrepared (); 18895 ; 18896 return 0; 18897} 18898_ACEOF 18899if ac_fn_c_try_link "$LINENO"; then : 18900 ac_cv_lib_pq_PQsendQueryPrepared=yes 18901else 18902 ac_cv_lib_pq_PQsendQueryPrepared=no 18903fi 18904rm -f core conftest.err conftest.$ac_objext \ 18905 conftest$ac_exeext conftest.$ac_ext 18906LIBS=$ac_check_lib_save_LIBS 18907fi 18908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 18909$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } 18910if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : 18911 apu_have_pgsql=1 18912fi 18913 18914 fi 18915 18916fi 18917 18918 18919fi 18920 18921done 18922 18923 if test "$apu_have_pgsql" = "0"; then 18924 for ac_header in postgresql/libpq-fe.h 18925do : 18926 ac_fn_c_check_header_mongrel "$LINENO" "postgresql/libpq-fe.h" "ac_cv_header_postgresql_libpq_fe_h" "$ac_includes_default" 18927if test "x$ac_cv_header_postgresql_libpq_fe_h" = xyes; then : 18928 cat >>confdefs.h <<_ACEOF 18929#define HAVE_POSTGRESQL_LIBPQ_FE_H 1 18930_ACEOF 18931 18932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 18933$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } 18934if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : 18935 $as_echo_n "(cached) " >&6 18936else 18937 ac_check_lib_save_LIBS=$LIBS 18938LIBS="-lpq $LIBS" 18939cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18940/* end confdefs.h. */ 18941 18942/* Override any GCC internal prototype to avoid an error. 18943 Use char because int might match the return type of a GCC 18944 builtin and then its argument prototype would still apply. */ 18945#ifdef __cplusplus 18946extern "C" 18947#endif 18948char PQsendQueryPrepared (); 18949int 18950main () 18951{ 18952return PQsendQueryPrepared (); 18953 ; 18954 return 0; 18955} 18956_ACEOF 18957if ac_fn_c_try_link "$LINENO"; then : 18958 ac_cv_lib_pq_PQsendQueryPrepared=yes 18959else 18960 ac_cv_lib_pq_PQsendQueryPrepared=no 18961fi 18962rm -f core conftest.err conftest.$ac_objext \ 18963 conftest$ac_exeext conftest.$ac_ext 18964LIBS=$ac_check_lib_save_LIBS 18965fi 18966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 18967$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } 18968if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : 18969 apu_have_pgsql=1 18970else 18971 18972 if test "x$PGSQL_CONFIG" != 'x'; then 18973 unset ac_cv_lib_pq_PQsendQueryPrepared 18974 pgsql_LIBS="`$PGSQL_CONFIG --libs`" 18975 18976 if test "x$LIBS" = "x"; then 18977 test "x$silent" != "xyes" && echo " setting LIBS to \"$pgsql_LIBS\"" 18978 LIBS="$pgsql_LIBS" 18979 else 18980 apr_addto_bugger="$pgsql_LIBS" 18981 for i in $apr_addto_bugger; do 18982 apr_addto_duplicate="0" 18983 for j in $LIBS; do 18984 if test "x$i" = "x$j"; then 18985 apr_addto_duplicate="1" 18986 break 18987 fi 18988 done 18989 if test $apr_addto_duplicate = "0"; then 18990 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 18991 LIBS="$LIBS $i" 18992 fi 18993 done 18994 fi 18995 18996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 18997$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } 18998if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : 18999 $as_echo_n "(cached) " >&6 19000else 19001 ac_check_lib_save_LIBS=$LIBS 19002LIBS="-lpq $LIBS" 19003cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19004/* end confdefs.h. */ 19005 19006/* Override any GCC internal prototype to avoid an error. 19007 Use char because int might match the return type of a GCC 19008 builtin and then its argument prototype would still apply. */ 19009#ifdef __cplusplus 19010extern "C" 19011#endif 19012char PQsendQueryPrepared (); 19013int 19014main () 19015{ 19016return PQsendQueryPrepared (); 19017 ; 19018 return 0; 19019} 19020_ACEOF 19021if ac_fn_c_try_link "$LINENO"; then : 19022 ac_cv_lib_pq_PQsendQueryPrepared=yes 19023else 19024 ac_cv_lib_pq_PQsendQueryPrepared=no 19025fi 19026rm -f core conftest.err conftest.$ac_objext \ 19027 conftest$ac_exeext conftest.$ac_ext 19028LIBS=$ac_check_lib_save_LIBS 19029fi 19030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 19031$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } 19032if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : 19033 apu_have_pgsql=1 19034fi 19035 19036 fi 19037 19038fi 19039 19040 19041fi 19042 19043done 19044 19045 fi 19046 if test "$apu_have_pgsql" != "0" && test "x$PGSQL_CONFIG" != 'x'; then 19047 19048 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 19049 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"$pgsql_CPPFLAGS\"" 19050 APRUTIL_PRIV_INCLUDES="$pgsql_CPPFLAGS" 19051 else 19052 apr_addto_bugger="$pgsql_CPPFLAGS" 19053 for i in $apr_addto_bugger; do 19054 apr_addto_duplicate="0" 19055 for j in $APRUTIL_PRIV_INCLUDES; do 19056 if test "x$i" = "x$j"; then 19057 apr_addto_duplicate="1" 19058 break 19059 fi 19060 done 19061 if test $apr_addto_duplicate = "0"; then 19062 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 19063 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 19064 fi 19065 done 19066 fi 19067 19068 fi 19069 elif test "$withval" = "no"; then 19070 : 19071 else 19072 # Extract the first word of "pg_config", so it can be a program name with args. 19073set dummy pg_config; ac_word=$2 19074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19075$as_echo_n "checking for $ac_word... " >&6; } 19076if ${ac_cv_path_PGSQL_CONFIG+:} false; then : 19077 $as_echo_n "(cached) " >&6 19078else 19079 case $PGSQL_CONFIG in 19080 [\\/]* | ?:[\\/]*) 19081 ac_cv_path_PGSQL_CONFIG="$PGSQL_CONFIG" # Let the user override the test with a path. 19082 ;; 19083 *) 19084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19085for as_dir in $withval/bin 19086do 19087 IFS=$as_save_IFS 19088 test -z "$as_dir" && as_dir=. 19089 for ac_exec_ext in '' $ac_executable_extensions; do 19090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19091 ac_cv_path_PGSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19093 break 2 19094 fi 19095done 19096 done 19097IFS=$as_save_IFS 19098 19099 ;; 19100esac 19101fi 19102PGSQL_CONFIG=$ac_cv_path_PGSQL_CONFIG 19103if test -n "$PGSQL_CONFIG"; then 19104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGSQL_CONFIG" >&5 19105$as_echo "$PGSQL_CONFIG" >&6; } 19106else 19107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19108$as_echo "no" >&6; } 19109fi 19110 19111 19112 if test "x$PGSQL_CONFIG" != 'x'; then 19113 pgsql_CPPFLAGS="-I`$PGSQL_CONFIG --includedir`" 19114 pgsql_LDFLAGS="-L`$PGSQL_CONFIG --libdir`" 19115 else 19116 pgsql_CPPFLAGS="-I$withval/include" 19117 pgsql_LDFLAGS="-L$withval/lib " 19118 fi 19119 19120 19121 if test "x$CPPFLAGS" = "x"; then 19122 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$pgsql_CPPFLAGS\"" 19123 CPPFLAGS="$pgsql_CPPFLAGS" 19124 else 19125 apr_addto_bugger="$pgsql_CPPFLAGS" 19126 for i in $apr_addto_bugger; do 19127 apr_addto_duplicate="0" 19128 for j in $CPPFLAGS; do 19129 if test "x$i" = "x$j"; then 19130 apr_addto_duplicate="1" 19131 break 19132 fi 19133 done 19134 if test $apr_addto_duplicate = "0"; then 19135 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 19136 CPPFLAGS="$CPPFLAGS $i" 19137 fi 19138 done 19139 fi 19140 19141 19142 if test "x$LDFLAGS" = "x"; then 19143 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$pgsql_LDFLAGS\"" 19144 LDFLAGS="$pgsql_LDFLAGS" 19145 else 19146 apr_addto_bugger="$pgsql_LDFLAGS" 19147 for i in $apr_addto_bugger; do 19148 apr_addto_duplicate="0" 19149 for j in $LDFLAGS; do 19150 if test "x$i" = "x$j"; then 19151 apr_addto_duplicate="1" 19152 break 19153 fi 19154 done 19155 if test $apr_addto_duplicate = "0"; then 19156 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 19157 LDFLAGS="$LDFLAGS $i" 19158 fi 19159 done 19160 fi 19161 19162 19163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pgsql in $withval" >&5 19164$as_echo "$as_me: checking for pgsql in $withval" >&6;} 19165 for ac_header in libpq-fe.h 19166do : 19167 ac_fn_c_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default" 19168if test "x$ac_cv_header_libpq_fe_h" = xyes; then : 19169 cat >>confdefs.h <<_ACEOF 19170#define HAVE_LIBPQ_FE_H 1 19171_ACEOF 19172 19173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 19174$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } 19175if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : 19176 $as_echo_n "(cached) " >&6 19177else 19178 ac_check_lib_save_LIBS=$LIBS 19179LIBS="-lpq $LIBS" 19180cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19181/* end confdefs.h. */ 19182 19183/* Override any GCC internal prototype to avoid an error. 19184 Use char because int might match the return type of a GCC 19185 builtin and then its argument prototype would still apply. */ 19186#ifdef __cplusplus 19187extern "C" 19188#endif 19189char PQsendQueryPrepared (); 19190int 19191main () 19192{ 19193return PQsendQueryPrepared (); 19194 ; 19195 return 0; 19196} 19197_ACEOF 19198if ac_fn_c_try_link "$LINENO"; then : 19199 ac_cv_lib_pq_PQsendQueryPrepared=yes 19200else 19201 ac_cv_lib_pq_PQsendQueryPrepared=no 19202fi 19203rm -f core conftest.err conftest.$ac_objext \ 19204 conftest$ac_exeext conftest.$ac_ext 19205LIBS=$ac_check_lib_save_LIBS 19206fi 19207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 19208$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } 19209if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : 19210 apu_have_pgsql=1 19211else 19212 19213 if test "x$PGSQL_CONFIG" != 'x'; then 19214 unset ac_cv_lib_pq_PQsendQueryPrepared 19215 pgsql_LIBS="`$PGSQL_CONFIG --libs`" 19216 19217 if test "x$LIBS" = "x"; then 19218 test "x$silent" != "xyes" && echo " setting LIBS to \"$pgsql_LIBS\"" 19219 LIBS="$pgsql_LIBS" 19220 else 19221 apr_addto_bugger="$pgsql_LIBS" 19222 for i in $apr_addto_bugger; do 19223 apr_addto_duplicate="0" 19224 for j in $LIBS; do 19225 if test "x$i" = "x$j"; then 19226 apr_addto_duplicate="1" 19227 break 19228 fi 19229 done 19230 if test $apr_addto_duplicate = "0"; then 19231 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 19232 LIBS="$LIBS $i" 19233 fi 19234 done 19235 fi 19236 19237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 19238$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } 19239if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : 19240 $as_echo_n "(cached) " >&6 19241else 19242 ac_check_lib_save_LIBS=$LIBS 19243LIBS="-lpq $LIBS" 19244cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19245/* end confdefs.h. */ 19246 19247/* Override any GCC internal prototype to avoid an error. 19248 Use char because int might match the return type of a GCC 19249 builtin and then its argument prototype would still apply. */ 19250#ifdef __cplusplus 19251extern "C" 19252#endif 19253char PQsendQueryPrepared (); 19254int 19255main () 19256{ 19257return PQsendQueryPrepared (); 19258 ; 19259 return 0; 19260} 19261_ACEOF 19262if ac_fn_c_try_link "$LINENO"; then : 19263 ac_cv_lib_pq_PQsendQueryPrepared=yes 19264else 19265 ac_cv_lib_pq_PQsendQueryPrepared=no 19266fi 19267rm -f core conftest.err conftest.$ac_objext \ 19268 conftest$ac_exeext conftest.$ac_ext 19269LIBS=$ac_check_lib_save_LIBS 19270fi 19271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 19272$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } 19273if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : 19274 apu_have_pgsql=1 19275fi 19276 19277 fi 19278 19279fi 19280 19281 19282fi 19283 19284done 19285 19286 if test "$apu_have_pgsql" != "1"; then 19287 for ac_header in postgresql/libpq-fe.h 19288do : 19289 ac_fn_c_check_header_mongrel "$LINENO" "postgresql/libpq-fe.h" "ac_cv_header_postgresql_libpq_fe_h" "$ac_includes_default" 19290if test "x$ac_cv_header_postgresql_libpq_fe_h" = xyes; then : 19291 cat >>confdefs.h <<_ACEOF 19292#define HAVE_POSTGRESQL_LIBPQ_FE_H 1 19293_ACEOF 19294 19295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 19296$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } 19297if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : 19298 $as_echo_n "(cached) " >&6 19299else 19300 ac_check_lib_save_LIBS=$LIBS 19301LIBS="-lpq $LIBS" 19302cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19303/* end confdefs.h. */ 19304 19305/* Override any GCC internal prototype to avoid an error. 19306 Use char because int might match the return type of a GCC 19307 builtin and then its argument prototype would still apply. */ 19308#ifdef __cplusplus 19309extern "C" 19310#endif 19311char PQsendQueryPrepared (); 19312int 19313main () 19314{ 19315return PQsendQueryPrepared (); 19316 ; 19317 return 0; 19318} 19319_ACEOF 19320if ac_fn_c_try_link "$LINENO"; then : 19321 ac_cv_lib_pq_PQsendQueryPrepared=yes 19322else 19323 ac_cv_lib_pq_PQsendQueryPrepared=no 19324fi 19325rm -f core conftest.err conftest.$ac_objext \ 19326 conftest$ac_exeext conftest.$ac_ext 19327LIBS=$ac_check_lib_save_LIBS 19328fi 19329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 19330$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } 19331if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : 19332 apu_have_pgsql=1 19333else 19334 19335 if test "x$PGSQL_CONFIG" != 'x'; then 19336 unset ac_cv_lib_pq_PQsendQueryPrepared 19337 pgsql_LIBS="`$PGSQL_CONFIG --libs`" 19338 19339 if test "x$LIBS" = "x"; then 19340 test "x$silent" != "xyes" && echo " setting LIBS to \"$pgsql_LIBS\"" 19341 LIBS="$pgsql_LIBS" 19342 else 19343 apr_addto_bugger="$pgsql_LIBS" 19344 for i in $apr_addto_bugger; do 19345 apr_addto_duplicate="0" 19346 for j in $LIBS; do 19347 if test "x$i" = "x$j"; then 19348 apr_addto_duplicate="1" 19349 break 19350 fi 19351 done 19352 if test $apr_addto_duplicate = "0"; then 19353 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 19354 LIBS="$LIBS $i" 19355 fi 19356 done 19357 fi 19358 19359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 19360$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } 19361if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : 19362 $as_echo_n "(cached) " >&6 19363else 19364 ac_check_lib_save_LIBS=$LIBS 19365LIBS="-lpq $LIBS" 19366cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19367/* end confdefs.h. */ 19368 19369/* Override any GCC internal prototype to avoid an error. 19370 Use char because int might match the return type of a GCC 19371 builtin and then its argument prototype would still apply. */ 19372#ifdef __cplusplus 19373extern "C" 19374#endif 19375char PQsendQueryPrepared (); 19376int 19377main () 19378{ 19379return PQsendQueryPrepared (); 19380 ; 19381 return 0; 19382} 19383_ACEOF 19384if ac_fn_c_try_link "$LINENO"; then : 19385 ac_cv_lib_pq_PQsendQueryPrepared=yes 19386else 19387 ac_cv_lib_pq_PQsendQueryPrepared=no 19388fi 19389rm -f core conftest.err conftest.$ac_objext \ 19390 conftest$ac_exeext conftest.$ac_ext 19391LIBS=$ac_check_lib_save_LIBS 19392fi 19393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 19394$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } 19395if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : 19396 apu_have_pgsql=1 19397fi 19398 19399 fi 19400 19401fi 19402 19403 19404fi 19405 19406done 19407 19408 fi 19409 if test "$apu_have_pgsql" != "0"; then 19410 19411 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 19412 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"$pgsql_CPPFLAGS\"" 19413 APRUTIL_PRIV_INCLUDES="$pgsql_CPPFLAGS" 19414 else 19415 apr_addto_bugger="$pgsql_CPPFLAGS" 19416 for i in $apr_addto_bugger; do 19417 apr_addto_duplicate="0" 19418 for j in $APRUTIL_PRIV_INCLUDES; do 19419 if test "x$i" = "x$j"; then 19420 apr_addto_duplicate="1" 19421 break 19422 fi 19423 done 19424 if test $apr_addto_duplicate = "0"; then 19425 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 19426 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 19427 fi 19428 done 19429 fi 19430 19431 fi 19432 fi 19433 19434else 19435 19436 # Extract the first word of "pg_config", so it can be a program name with args. 19437set dummy pg_config; ac_word=$2 19438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19439$as_echo_n "checking for $ac_word... " >&6; } 19440if ${ac_cv_path_PGSQL_CONFIG+:} false; then : 19441 $as_echo_n "(cached) " >&6 19442else 19443 case $PGSQL_CONFIG in 19444 [\\/]* | ?:[\\/]*) 19445 ac_cv_path_PGSQL_CONFIG="$PGSQL_CONFIG" # Let the user override the test with a path. 19446 ;; 19447 *) 19448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19449for as_dir in $PATH 19450do 19451 IFS=$as_save_IFS 19452 test -z "$as_dir" && as_dir=. 19453 for ac_exec_ext in '' $ac_executable_extensions; do 19454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19455 ac_cv_path_PGSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19457 break 2 19458 fi 19459done 19460 done 19461IFS=$as_save_IFS 19462 19463 ;; 19464esac 19465fi 19466PGSQL_CONFIG=$ac_cv_path_PGSQL_CONFIG 19467if test -n "$PGSQL_CONFIG"; then 19468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGSQL_CONFIG" >&5 19469$as_echo "$PGSQL_CONFIG" >&6; } 19470else 19471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19472$as_echo "no" >&6; } 19473fi 19474 19475 19476 if test "x$PGSQL_CONFIG" != 'x'; then 19477 pgsql_CPPFLAGS="-I`$PGSQL_CONFIG --includedir`" 19478 pgsql_LDFLAGS="-L`$PGSQL_CONFIG --libdir`" 19479 19480 19481 if test "x$CPPFLAGS" = "x"; then 19482 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$pgsql_CPPFLAGS\"" 19483 CPPFLAGS="$pgsql_CPPFLAGS" 19484 else 19485 apr_addto_bugger="$pgsql_CPPFLAGS" 19486 for i in $apr_addto_bugger; do 19487 apr_addto_duplicate="0" 19488 for j in $CPPFLAGS; do 19489 if test "x$i" = "x$j"; then 19490 apr_addto_duplicate="1" 19491 break 19492 fi 19493 done 19494 if test $apr_addto_duplicate = "0"; then 19495 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 19496 CPPFLAGS="$CPPFLAGS $i" 19497 fi 19498 done 19499 fi 19500 19501 19502 if test "x$LDFLAGS" = "x"; then 19503 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$pgsql_LDFLAGS\"" 19504 LDFLAGS="$pgsql_LDFLAGS" 19505 else 19506 apr_addto_bugger="$pgsql_LDFLAGS" 19507 for i in $apr_addto_bugger; do 19508 apr_addto_duplicate="0" 19509 for j in $LDFLAGS; do 19510 if test "x$i" = "x$j"; then 19511 apr_addto_duplicate="1" 19512 break 19513 fi 19514 done 19515 if test $apr_addto_duplicate = "0"; then 19516 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 19517 LDFLAGS="$LDFLAGS $i" 19518 fi 19519 done 19520 fi 19521 19522 fi 19523 19524 for ac_header in libpq-fe.h 19525do : 19526 ac_fn_c_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default" 19527if test "x$ac_cv_header_libpq_fe_h" = xyes; then : 19528 cat >>confdefs.h <<_ACEOF 19529#define HAVE_LIBPQ_FE_H 1 19530_ACEOF 19531 19532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 19533$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } 19534if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : 19535 $as_echo_n "(cached) " >&6 19536else 19537 ac_check_lib_save_LIBS=$LIBS 19538LIBS="-lpq $LIBS" 19539cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19540/* end confdefs.h. */ 19541 19542/* Override any GCC internal prototype to avoid an error. 19543 Use char because int might match the return type of a GCC 19544 builtin and then its argument prototype would still apply. */ 19545#ifdef __cplusplus 19546extern "C" 19547#endif 19548char PQsendQueryPrepared (); 19549int 19550main () 19551{ 19552return PQsendQueryPrepared (); 19553 ; 19554 return 0; 19555} 19556_ACEOF 19557if ac_fn_c_try_link "$LINENO"; then : 19558 ac_cv_lib_pq_PQsendQueryPrepared=yes 19559else 19560 ac_cv_lib_pq_PQsendQueryPrepared=no 19561fi 19562rm -f core conftest.err conftest.$ac_objext \ 19563 conftest$ac_exeext conftest.$ac_ext 19564LIBS=$ac_check_lib_save_LIBS 19565fi 19566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 19567$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } 19568if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : 19569 apu_have_pgsql=1 19570else 19571 19572 if test "x$PGSQL_CONFIG" != 'x'; then 19573 unset ac_cv_lib_pq_PQsendQueryPrepared 19574 pgsql_LIBS="`$PGSQL_CONFIG --libs`" 19575 19576 if test "x$LIBS" = "x"; then 19577 test "x$silent" != "xyes" && echo " setting LIBS to \"$pgsql_LIBS\"" 19578 LIBS="$pgsql_LIBS" 19579 else 19580 apr_addto_bugger="$pgsql_LIBS" 19581 for i in $apr_addto_bugger; do 19582 apr_addto_duplicate="0" 19583 for j in $LIBS; do 19584 if test "x$i" = "x$j"; then 19585 apr_addto_duplicate="1" 19586 break 19587 fi 19588 done 19589 if test $apr_addto_duplicate = "0"; then 19590 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 19591 LIBS="$LIBS $i" 19592 fi 19593 done 19594 fi 19595 19596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 19597$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } 19598if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : 19599 $as_echo_n "(cached) " >&6 19600else 19601 ac_check_lib_save_LIBS=$LIBS 19602LIBS="-lpq $LIBS" 19603cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19604/* end confdefs.h. */ 19605 19606/* Override any GCC internal prototype to avoid an error. 19607 Use char because int might match the return type of a GCC 19608 builtin and then its argument prototype would still apply. */ 19609#ifdef __cplusplus 19610extern "C" 19611#endif 19612char PQsendQueryPrepared (); 19613int 19614main () 19615{ 19616return PQsendQueryPrepared (); 19617 ; 19618 return 0; 19619} 19620_ACEOF 19621if ac_fn_c_try_link "$LINENO"; then : 19622 ac_cv_lib_pq_PQsendQueryPrepared=yes 19623else 19624 ac_cv_lib_pq_PQsendQueryPrepared=no 19625fi 19626rm -f core conftest.err conftest.$ac_objext \ 19627 conftest$ac_exeext conftest.$ac_ext 19628LIBS=$ac_check_lib_save_LIBS 19629fi 19630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 19631$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } 19632if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : 19633 apu_have_pgsql=1 19634fi 19635 19636 fi 19637 19638fi 19639 19640 19641fi 19642 19643done 19644 19645 if test "$apu_have_pgsql" = "0"; then 19646 for ac_header in postgresql/libpq-fe.h 19647do : 19648 ac_fn_c_check_header_mongrel "$LINENO" "postgresql/libpq-fe.h" "ac_cv_header_postgresql_libpq_fe_h" "$ac_includes_default" 19649if test "x$ac_cv_header_postgresql_libpq_fe_h" = xyes; then : 19650 cat >>confdefs.h <<_ACEOF 19651#define HAVE_POSTGRESQL_LIBPQ_FE_H 1 19652_ACEOF 19653 19654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 19655$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } 19656if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : 19657 $as_echo_n "(cached) " >&6 19658else 19659 ac_check_lib_save_LIBS=$LIBS 19660LIBS="-lpq $LIBS" 19661cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19662/* end confdefs.h. */ 19663 19664/* Override any GCC internal prototype to avoid an error. 19665 Use char because int might match the return type of a GCC 19666 builtin and then its argument prototype would still apply. */ 19667#ifdef __cplusplus 19668extern "C" 19669#endif 19670char PQsendQueryPrepared (); 19671int 19672main () 19673{ 19674return PQsendQueryPrepared (); 19675 ; 19676 return 0; 19677} 19678_ACEOF 19679if ac_fn_c_try_link "$LINENO"; then : 19680 ac_cv_lib_pq_PQsendQueryPrepared=yes 19681else 19682 ac_cv_lib_pq_PQsendQueryPrepared=no 19683fi 19684rm -f core conftest.err conftest.$ac_objext \ 19685 conftest$ac_exeext conftest.$ac_ext 19686LIBS=$ac_check_lib_save_LIBS 19687fi 19688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 19689$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } 19690if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : 19691 apu_have_pgsql=1 19692else 19693 19694 if test "x$PGSQL_CONFIG" != 'x'; then 19695 unset ac_cv_lib_pq_PQsendQueryPrepared 19696 pgsql_LIBS="`$PGSQL_CONFIG --libs`" 19697 19698 if test "x$LIBS" = "x"; then 19699 test "x$silent" != "xyes" && echo " setting LIBS to \"$pgsql_LIBS\"" 19700 LIBS="$pgsql_LIBS" 19701 else 19702 apr_addto_bugger="$pgsql_LIBS" 19703 for i in $apr_addto_bugger; do 19704 apr_addto_duplicate="0" 19705 for j in $LIBS; do 19706 if test "x$i" = "x$j"; then 19707 apr_addto_duplicate="1" 19708 break 19709 fi 19710 done 19711 if test $apr_addto_duplicate = "0"; then 19712 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 19713 LIBS="$LIBS $i" 19714 fi 19715 done 19716 fi 19717 19718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 19719$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } 19720if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : 19721 $as_echo_n "(cached) " >&6 19722else 19723 ac_check_lib_save_LIBS=$LIBS 19724LIBS="-lpq $LIBS" 19725cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19726/* end confdefs.h. */ 19727 19728/* Override any GCC internal prototype to avoid an error. 19729 Use char because int might match the return type of a GCC 19730 builtin and then its argument prototype would still apply. */ 19731#ifdef __cplusplus 19732extern "C" 19733#endif 19734char PQsendQueryPrepared (); 19735int 19736main () 19737{ 19738return PQsendQueryPrepared (); 19739 ; 19740 return 0; 19741} 19742_ACEOF 19743if ac_fn_c_try_link "$LINENO"; then : 19744 ac_cv_lib_pq_PQsendQueryPrepared=yes 19745else 19746 ac_cv_lib_pq_PQsendQueryPrepared=no 19747fi 19748rm -f core conftest.err conftest.$ac_objext \ 19749 conftest$ac_exeext conftest.$ac_ext 19750LIBS=$ac_check_lib_save_LIBS 19751fi 19752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 19753$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } 19754if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : 19755 apu_have_pgsql=1 19756fi 19757 19758 fi 19759 19760fi 19761 19762 19763fi 19764 19765done 19766 19767 fi 19768 if test "$apu_have_pgsql" != "0" && test "x$PGSQL_CONFIG" != 'x'; then 19769 19770 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 19771 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"$pgsql_CPPFLAGS\"" 19772 APRUTIL_PRIV_INCLUDES="$pgsql_CPPFLAGS" 19773 else 19774 apr_addto_bugger="$pgsql_CPPFLAGS" 19775 for i in $apr_addto_bugger; do 19776 apr_addto_duplicate="0" 19777 for j in $APRUTIL_PRIV_INCLUDES; do 19778 if test "x$i" = "x$j"; then 19779 apr_addto_duplicate="1" 19780 break 19781 fi 19782 done 19783 if test $apr_addto_duplicate = "0"; then 19784 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 19785 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 19786 fi 19787 done 19788 fi 19789 19790 fi 19791 19792fi 19793 19794 19795 if test "$apu_have_pgsql" = "1"; then 19796 19797 if test "x$LDADD_dbd_pgsql" = "x"; then 19798 test "x$silent" != "xyes" && echo " setting LDADD_dbd_pgsql to \"$pgsql_LDFLAGS -lpq $pgsql_LIBS\"" 19799 LDADD_dbd_pgsql="$pgsql_LDFLAGS -lpq $pgsql_LIBS" 19800 else 19801 apr_addto_bugger="$pgsql_LDFLAGS -lpq $pgsql_LIBS" 19802 for i in $apr_addto_bugger; do 19803 apr_addto_duplicate="0" 19804 for j in $LDADD_dbd_pgsql; do 19805 if test "x$i" = "x$j"; then 19806 apr_addto_duplicate="1" 19807 break 19808 fi 19809 done 19810 if test $apr_addto_duplicate = "0"; then 19811 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbd_pgsql" 19812 LDADD_dbd_pgsql="$LDADD_dbd_pgsql $i" 19813 fi 19814 done 19815 fi 19816 19817 fi 19818 19819 19820 LIBS="$old_libs" 19821 CPPFLAGS="$old_cppflags" 19822 LDFLAGS="$old_ldflags" 19823 19824 19825 apu_have_mysql=0 19826 19827 old_libs="$LIBS" 19828 old_cppflags="$CPPFLAGS" 19829 old_ldflags="$LDFLAGS" 19830 19831 19832# Check whether --with-mysql was given. 19833if test "${with_mysql+set}" = set; then : 19834 withval=$with_mysql; 19835 if test "$withval" = "yes"; then 19836 # Extract the first word of "mysql_config", so it can be a program name with args. 19837set dummy mysql_config; ac_word=$2 19838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19839$as_echo_n "checking for $ac_word... " >&6; } 19840if ${ac_cv_path_MYSQL_CONFIG+:} false; then : 19841 $as_echo_n "(cached) " >&6 19842else 19843 case $MYSQL_CONFIG in 19844 [\\/]* | ?:[\\/]*) 19845 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path. 19846 ;; 19847 *) 19848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19849for as_dir in $PATH 19850do 19851 IFS=$as_save_IFS 19852 test -z "$as_dir" && as_dir=. 19853 for ac_exec_ext in '' $ac_executable_extensions; do 19854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19855 ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19857 break 2 19858 fi 19859done 19860 done 19861IFS=$as_save_IFS 19862 19863 ;; 19864esac 19865fi 19866MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG 19867if test -n "$MYSQL_CONFIG"; then 19868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5 19869$as_echo "$MYSQL_CONFIG" >&6; } 19870else 19871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19872$as_echo "no" >&6; } 19873fi 19874 19875 19876 if test "x$MYSQL_CONFIG" != 'x'; then 19877 mysql_CPPFLAGS="`$MYSQL_CONFIG --include`" 19878 mysql_LDFLAGS="`$MYSQL_CONFIG --libs_r | sed -e 's/-l[^ ]\+//g'`" 19879 mysql_LIBS="`$MYSQL_CONFIG --libs_r`" 19880 19881 19882 if test "x$CPPFLAGS" = "x"; then 19883 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$mysql_CPPFLAGS\"" 19884 CPPFLAGS="$mysql_CPPFLAGS" 19885 else 19886 apr_addto_bugger="$mysql_CPPFLAGS" 19887 for i in $apr_addto_bugger; do 19888 apr_addto_duplicate="0" 19889 for j in $CPPFLAGS; do 19890 if test "x$i" = "x$j"; then 19891 apr_addto_duplicate="1" 19892 break 19893 fi 19894 done 19895 if test $apr_addto_duplicate = "0"; then 19896 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 19897 CPPFLAGS="$CPPFLAGS $i" 19898 fi 19899 done 19900 fi 19901 19902 19903 if test "x$LIBS" = "x"; then 19904 test "x$silent" != "xyes" && echo " setting LIBS to \"$mysql_LIBS\"" 19905 LIBS="$mysql_LIBS" 19906 else 19907 apr_addto_bugger="$mysql_LIBS" 19908 for i in $apr_addto_bugger; do 19909 apr_addto_duplicate="0" 19910 for j in $LIBS; do 19911 if test "x$i" = "x$j"; then 19912 apr_addto_duplicate="1" 19913 break 19914 fi 19915 done 19916 if test $apr_addto_duplicate = "0"; then 19917 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 19918 LIBS="$LIBS $i" 19919 fi 19920 done 19921 fi 19922 19923 fi 19924 19925 for ac_header in mysql.h my_global.h my_sys.h 19926do : 19927 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19928ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <my_global.h> 19929" 19930if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19931 cat >>confdefs.h <<_ACEOF 19932#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19933_ACEOF 19934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient_r" >&5 19935$as_echo_n "checking for mysql_init in -lmysqlclient_r... " >&6; } 19936if ${ac_cv_lib_mysqlclient_r_mysql_init+:} false; then : 19937 $as_echo_n "(cached) " >&6 19938else 19939 ac_check_lib_save_LIBS=$LIBS 19940LIBS="-lmysqlclient_r $LIBS" 19941cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19942/* end confdefs.h. */ 19943 19944/* Override any GCC internal prototype to avoid an error. 19945 Use char because int might match the return type of a GCC 19946 builtin and then its argument prototype would still apply. */ 19947#ifdef __cplusplus 19948extern "C" 19949#endif 19950char mysql_init (); 19951int 19952main () 19953{ 19954return mysql_init (); 19955 ; 19956 return 0; 19957} 19958_ACEOF 19959if ac_fn_c_try_link "$LINENO"; then : 19960 ac_cv_lib_mysqlclient_r_mysql_init=yes 19961else 19962 ac_cv_lib_mysqlclient_r_mysql_init=no 19963fi 19964rm -f core conftest.err conftest.$ac_objext \ 19965 conftest$ac_exeext conftest.$ac_ext 19966LIBS=$ac_check_lib_save_LIBS 19967fi 19968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_init" >&5 19969$as_echo "$ac_cv_lib_mysqlclient_r_mysql_init" >&6; } 19970if test "x$ac_cv_lib_mysqlclient_r_mysql_init" = xyes; then : 19971 apu_have_mysql=1 19972fi 19973 19974else 19975 apu_have_mysql=0; break 19976fi 19977 19978done 19979 19980 if test "$apu_have_mysql" = "0"; then 19981 for ac_header in mysql/mysql.h mysql/my_global.h mysql/my_sys.h 19982do : 19983 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19984ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <mysql/my_global.h> 19985" 19986if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19987 cat >>confdefs.h <<_ACEOF 19988#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19989_ACEOF 19990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient_r" >&5 19991$as_echo_n "checking for mysql_init in -lmysqlclient_r... " >&6; } 19992if ${ac_cv_lib_mysqlclient_r_mysql_init+:} false; then : 19993 $as_echo_n "(cached) " >&6 19994else 19995 ac_check_lib_save_LIBS=$LIBS 19996LIBS="-lmysqlclient_r $LIBS" 19997cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19998/* end confdefs.h. */ 19999 20000/* Override any GCC internal prototype to avoid an error. 20001 Use char because int might match the return type of a GCC 20002 builtin and then its argument prototype would still apply. */ 20003#ifdef __cplusplus 20004extern "C" 20005#endif 20006char mysql_init (); 20007int 20008main () 20009{ 20010return mysql_init (); 20011 ; 20012 return 0; 20013} 20014_ACEOF 20015if ac_fn_c_try_link "$LINENO"; then : 20016 ac_cv_lib_mysqlclient_r_mysql_init=yes 20017else 20018 ac_cv_lib_mysqlclient_r_mysql_init=no 20019fi 20020rm -f core conftest.err conftest.$ac_objext \ 20021 conftest$ac_exeext conftest.$ac_ext 20022LIBS=$ac_check_lib_save_LIBS 20023fi 20024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_init" >&5 20025$as_echo "$ac_cv_lib_mysqlclient_r_mysql_init" >&6; } 20026if test "x$ac_cv_lib_mysqlclient_r_mysql_init" = xyes; then : 20027 apu_have_mysql=1 20028fi 20029 20030else 20031 apu_have_mysql=0; break 20032fi 20033 20034done 20035 20036 fi 20037 if test "$apu_have_mysql" != "0" && test "x$MYSQL_CONFIG" != 'x'; then 20038 20039 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 20040 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"$mysql_CPPFLAGS\"" 20041 APRUTIL_PRIV_INCLUDES="$mysql_CPPFLAGS" 20042 else 20043 apr_addto_bugger="$mysql_CPPFLAGS" 20044 for i in $apr_addto_bugger; do 20045 apr_addto_duplicate="0" 20046 for j in $APRUTIL_PRIV_INCLUDES; do 20047 if test "x$i" = "x$j"; then 20048 apr_addto_duplicate="1" 20049 break 20050 fi 20051 done 20052 if test $apr_addto_duplicate = "0"; then 20053 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 20054 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 20055 fi 20056 done 20057 fi 20058 20059 fi 20060 elif test "$withval" = "no"; then 20061 : 20062 else 20063 # Extract the first word of "mysql_config", so it can be a program name with args. 20064set dummy mysql_config; ac_word=$2 20065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20066$as_echo_n "checking for $ac_word... " >&6; } 20067if ${ac_cv_path_MYSQL_CONFIG+:} false; then : 20068 $as_echo_n "(cached) " >&6 20069else 20070 case $MYSQL_CONFIG in 20071 [\\/]* | ?:[\\/]*) 20072 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path. 20073 ;; 20074 *) 20075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20076for as_dir in $withval/bin 20077do 20078 IFS=$as_save_IFS 20079 test -z "$as_dir" && as_dir=. 20080 for ac_exec_ext in '' $ac_executable_extensions; do 20081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20082 ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20084 break 2 20085 fi 20086done 20087 done 20088IFS=$as_save_IFS 20089 20090 ;; 20091esac 20092fi 20093MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG 20094if test -n "$MYSQL_CONFIG"; then 20095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5 20096$as_echo "$MYSQL_CONFIG" >&6; } 20097else 20098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20099$as_echo "no" >&6; } 20100fi 20101 20102 20103 if test "x$MYSQL_CONFIG" != 'x'; then 20104 mysql_CPPFLAGS="`$MYSQL_CONFIG --include`" 20105 mysql_LDFLAGS="`$MYSQL_CONFIG --libs_r | sed -e 's/-l[^ ]\+//g'`" 20106 mysql_LIBS="`$MYSQL_CONFIG --libs_r`" 20107 else 20108 mysql_CPPFLAGS="-I$withval/include" 20109 mysql_LDFLAGS="-L$withval/lib " 20110 fi 20111 20112 20113 if test "x$CPPFLAGS" = "x"; then 20114 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$mysql_CPPFLAGS\"" 20115 CPPFLAGS="$mysql_CPPFLAGS" 20116 else 20117 apr_addto_bugger="$mysql_CPPFLAGS" 20118 for i in $apr_addto_bugger; do 20119 apr_addto_duplicate="0" 20120 for j in $CPPFLAGS; do 20121 if test "x$i" = "x$j"; then 20122 apr_addto_duplicate="1" 20123 break 20124 fi 20125 done 20126 if test $apr_addto_duplicate = "0"; then 20127 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 20128 CPPFLAGS="$CPPFLAGS $i" 20129 fi 20130 done 20131 fi 20132 20133 20134 if test "x$LDFLAGS" = "x"; then 20135 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$mysql_LDFLAGS\"" 20136 LDFLAGS="$mysql_LDFLAGS" 20137 else 20138 apr_addto_bugger="$mysql_LDFLAGS" 20139 for i in $apr_addto_bugger; do 20140 apr_addto_duplicate="0" 20141 for j in $LDFLAGS; do 20142 if test "x$i" = "x$j"; then 20143 apr_addto_duplicate="1" 20144 break 20145 fi 20146 done 20147 if test $apr_addto_duplicate = "0"; then 20148 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 20149 LDFLAGS="$LDFLAGS $i" 20150 fi 20151 done 20152 fi 20153 20154 20155 if test "x$LIBS" = "x"; then 20156 test "x$silent" != "xyes" && echo " setting LIBS to \"$mysql_LIBS\"" 20157 LIBS="$mysql_LIBS" 20158 else 20159 apr_addto_bugger="$mysql_LIBS" 20160 for i in $apr_addto_bugger; do 20161 apr_addto_duplicate="0" 20162 for j in $LIBS; do 20163 if test "x$i" = "x$j"; then 20164 apr_addto_duplicate="1" 20165 break 20166 fi 20167 done 20168 if test $apr_addto_duplicate = "0"; then 20169 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 20170 LIBS="$LIBS $i" 20171 fi 20172 done 20173 fi 20174 20175 20176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql in $withval" >&5 20177$as_echo "$as_me: checking for mysql in $withval" >&6;} 20178 for ac_header in mysql.h my_global.h my_sys.h 20179do : 20180 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20181ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <my_global.h> 20182" 20183if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20184 cat >>confdefs.h <<_ACEOF 20185#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20186_ACEOF 20187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient_r" >&5 20188$as_echo_n "checking for mysql_init in -lmysqlclient_r... " >&6; } 20189if ${ac_cv_lib_mysqlclient_r_mysql_init+:} false; then : 20190 $as_echo_n "(cached) " >&6 20191else 20192 ac_check_lib_save_LIBS=$LIBS 20193LIBS="-lmysqlclient_r $LIBS" 20194cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20195/* end confdefs.h. */ 20196 20197/* Override any GCC internal prototype to avoid an error. 20198 Use char because int might match the return type of a GCC 20199 builtin and then its argument prototype would still apply. */ 20200#ifdef __cplusplus 20201extern "C" 20202#endif 20203char mysql_init (); 20204int 20205main () 20206{ 20207return mysql_init (); 20208 ; 20209 return 0; 20210} 20211_ACEOF 20212if ac_fn_c_try_link "$LINENO"; then : 20213 ac_cv_lib_mysqlclient_r_mysql_init=yes 20214else 20215 ac_cv_lib_mysqlclient_r_mysql_init=no 20216fi 20217rm -f core conftest.err conftest.$ac_objext \ 20218 conftest$ac_exeext conftest.$ac_ext 20219LIBS=$ac_check_lib_save_LIBS 20220fi 20221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_init" >&5 20222$as_echo "$ac_cv_lib_mysqlclient_r_mysql_init" >&6; } 20223if test "x$ac_cv_lib_mysqlclient_r_mysql_init" = xyes; then : 20224 apu_have_mysql=1 20225fi 20226 20227else 20228 apu_have_mysql=0; break 20229fi 20230 20231done 20232 20233 20234 if test "$apu_have_mysql" != "1"; then 20235 for ac_header in mysql/mysql.h mysql/my_global.h mysql/my_sys.h 20236do : 20237 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20238ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <mysql/my_global.h> 20239" 20240if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20241 cat >>confdefs.h <<_ACEOF 20242#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20243_ACEOF 20244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient_r" >&5 20245$as_echo_n "checking for mysql_init in -lmysqlclient_r... " >&6; } 20246if ${ac_cv_lib_mysqlclient_r_mysql_init+:} false; then : 20247 $as_echo_n "(cached) " >&6 20248else 20249 ac_check_lib_save_LIBS=$LIBS 20250LIBS="-lmysqlclient_r $LIBS" 20251cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20252/* end confdefs.h. */ 20253 20254/* Override any GCC internal prototype to avoid an error. 20255 Use char because int might match the return type of a GCC 20256 builtin and then its argument prototype would still apply. */ 20257#ifdef __cplusplus 20258extern "C" 20259#endif 20260char mysql_init (); 20261int 20262main () 20263{ 20264return mysql_init (); 20265 ; 20266 return 0; 20267} 20268_ACEOF 20269if ac_fn_c_try_link "$LINENO"; then : 20270 ac_cv_lib_mysqlclient_r_mysql_init=yes 20271else 20272 ac_cv_lib_mysqlclient_r_mysql_init=no 20273fi 20274rm -f core conftest.err conftest.$ac_objext \ 20275 conftest$ac_exeext conftest.$ac_ext 20276LIBS=$ac_check_lib_save_LIBS 20277fi 20278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_init" >&5 20279$as_echo "$ac_cv_lib_mysqlclient_r_mysql_init" >&6; } 20280if test "x$ac_cv_lib_mysqlclient_r_mysql_init" = xyes; then : 20281 apu_have_mysql=1 20282fi 20283 20284else 20285 apu_have_mysql=0; break 20286fi 20287 20288done 20289 20290 fi 20291 if test "$apu_have_mysql" != "0"; then 20292 20293 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 20294 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"$mysql_CPPFLAGS\"" 20295 APRUTIL_PRIV_INCLUDES="$mysql_CPPFLAGS" 20296 else 20297 apr_addto_bugger="$mysql_CPPFLAGS" 20298 for i in $apr_addto_bugger; do 20299 apr_addto_duplicate="0" 20300 for j in $APRUTIL_PRIV_INCLUDES; do 20301 if test "x$i" = "x$j"; then 20302 apr_addto_duplicate="1" 20303 break 20304 fi 20305 done 20306 if test $apr_addto_duplicate = "0"; then 20307 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 20308 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 20309 fi 20310 done 20311 fi 20312 20313 fi 20314 fi 20315 20316fi 20317 20318 20319 20320 20321 if test "$apu_have_mysql" = "1"; then 20322 20323 if test "x$LDADD_dbd_mysql" = "x"; then 20324 test "x$silent" != "xyes" && echo " setting LDADD_dbd_mysql to \"$mysql_LDFLAGS -lmysqlclient_r $mysql_LIBS\"" 20325 LDADD_dbd_mysql="$mysql_LDFLAGS -lmysqlclient_r $mysql_LIBS" 20326 else 20327 apr_addto_bugger="$mysql_LDFLAGS -lmysqlclient_r $mysql_LIBS" 20328 for i in $apr_addto_bugger; do 20329 apr_addto_duplicate="0" 20330 for j in $LDADD_dbd_mysql; do 20331 if test "x$i" = "x$j"; then 20332 apr_addto_duplicate="1" 20333 break 20334 fi 20335 done 20336 if test $apr_addto_duplicate = "0"; then 20337 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbd_mysql" 20338 LDADD_dbd_mysql="$LDADD_dbd_mysql $i" 20339 fi 20340 done 20341 fi 20342 20343 fi 20344 20345 20346 LIBS="$old_libs" 20347 CPPFLAGS="$old_cppflags" 20348 LDFLAGS="$old_ldflags" 20349 20350 20351 apu_have_sqlite3=0 20352 20353 old_libs="$LIBS" 20354 old_cppflags="$CPPFLAGS" 20355 old_ldflags="$LDFLAGS" 20356 20357 20358# Check whether --with-sqlite3 was given. 20359if test "${with_sqlite3+set}" = set; then : 20360 withval=$with_sqlite3; 20361 if test "$withval" = "yes"; then 20362 for ac_header in sqlite3.h 20363do : 20364 ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default" 20365if test "x$ac_cv_header_sqlite3_h" = xyes; then : 20366 cat >>confdefs.h <<_ACEOF 20367#define HAVE_SQLITE3_H 1 20368_ACEOF 20369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5 20370$as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; } 20371if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then : 20372 $as_echo_n "(cached) " >&6 20373else 20374 ac_check_lib_save_LIBS=$LIBS 20375LIBS="-lsqlite3 $LIBS" 20376cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20377/* end confdefs.h. */ 20378 20379/* Override any GCC internal prototype to avoid an error. 20380 Use char because int might match the return type of a GCC 20381 builtin and then its argument prototype would still apply. */ 20382#ifdef __cplusplus 20383extern "C" 20384#endif 20385char sqlite3_open (); 20386int 20387main () 20388{ 20389return sqlite3_open (); 20390 ; 20391 return 0; 20392} 20393_ACEOF 20394if ac_fn_c_try_link "$LINENO"; then : 20395 ac_cv_lib_sqlite3_sqlite3_open=yes 20396else 20397 ac_cv_lib_sqlite3_sqlite3_open=no 20398fi 20399rm -f core conftest.err conftest.$ac_objext \ 20400 conftest$ac_exeext conftest.$ac_ext 20401LIBS=$ac_check_lib_save_LIBS 20402fi 20403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5 20404$as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; } 20405if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then : 20406 apu_have_sqlite3=1 20407fi 20408 20409fi 20410 20411done 20412 20413 elif test "$withval" = "no"; then 20414 : 20415 else 20416 sqlite3_CPPFLAGS="-I$withval/include" 20417 sqlite3_LDFLAGS="-L$withval/lib " 20418 20419 20420 if test "x$CPPFLAGS" = "x"; then 20421 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$sqlite3_CPPFLAGS\"" 20422 CPPFLAGS="$sqlite3_CPPFLAGS" 20423 else 20424 apr_addto_bugger="$sqlite3_CPPFLAGS" 20425 for i in $apr_addto_bugger; do 20426 apr_addto_duplicate="0" 20427 for j in $CPPFLAGS; do 20428 if test "x$i" = "x$j"; then 20429 apr_addto_duplicate="1" 20430 break 20431 fi 20432 done 20433 if test $apr_addto_duplicate = "0"; then 20434 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 20435 CPPFLAGS="$CPPFLAGS $i" 20436 fi 20437 done 20438 fi 20439 20440 20441 if test "x$LDFLAGS" = "x"; then 20442 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$sqlite3_LDFLAGS\"" 20443 LDFLAGS="$sqlite3_LDFLAGS" 20444 else 20445 apr_addto_bugger="$sqlite3_LDFLAGS" 20446 for i in $apr_addto_bugger; do 20447 apr_addto_duplicate="0" 20448 for j in $LDFLAGS; do 20449 if test "x$i" = "x$j"; then 20450 apr_addto_duplicate="1" 20451 break 20452 fi 20453 done 20454 if test $apr_addto_duplicate = "0"; then 20455 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 20456 LDFLAGS="$LDFLAGS $i" 20457 fi 20458 done 20459 fi 20460 20461 20462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3 in $withval" >&5 20463$as_echo "$as_me: checking for sqlite3 in $withval" >&6;} 20464 for ac_header in sqlite3.h 20465do : 20466 ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default" 20467if test "x$ac_cv_header_sqlite3_h" = xyes; then : 20468 cat >>confdefs.h <<_ACEOF 20469#define HAVE_SQLITE3_H 1 20470_ACEOF 20471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5 20472$as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; } 20473if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then : 20474 $as_echo_n "(cached) " >&6 20475else 20476 ac_check_lib_save_LIBS=$LIBS 20477LIBS="-lsqlite3 $LIBS" 20478cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20479/* end confdefs.h. */ 20480 20481/* Override any GCC internal prototype to avoid an error. 20482 Use char because int might match the return type of a GCC 20483 builtin and then its argument prototype would still apply. */ 20484#ifdef __cplusplus 20485extern "C" 20486#endif 20487char sqlite3_open (); 20488int 20489main () 20490{ 20491return sqlite3_open (); 20492 ; 20493 return 0; 20494} 20495_ACEOF 20496if ac_fn_c_try_link "$LINENO"; then : 20497 ac_cv_lib_sqlite3_sqlite3_open=yes 20498else 20499 ac_cv_lib_sqlite3_sqlite3_open=no 20500fi 20501rm -f core conftest.err conftest.$ac_objext \ 20502 conftest$ac_exeext conftest.$ac_ext 20503LIBS=$ac_check_lib_save_LIBS 20504fi 20505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5 20506$as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; } 20507if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then : 20508 apu_have_sqlite3=1 20509fi 20510 20511fi 20512 20513done 20514 20515 if test "$apu_have_sqlite3" != "0"; then 20516 20517 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 20518 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"-I$withval/include\"" 20519 APRUTIL_PRIV_INCLUDES="-I$withval/include" 20520 else 20521 apr_addto_bugger="-I$withval/include" 20522 for i in $apr_addto_bugger; do 20523 apr_addto_duplicate="0" 20524 for j in $APRUTIL_PRIV_INCLUDES; do 20525 if test "x$i" = "x$j"; then 20526 apr_addto_duplicate="1" 20527 break 20528 fi 20529 done 20530 if test $apr_addto_duplicate = "0"; then 20531 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 20532 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 20533 fi 20534 done 20535 fi 20536 20537 fi 20538 fi 20539 20540else 20541 20542 for ac_header in sqlite3.h 20543do : 20544 ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default" 20545if test "x$ac_cv_header_sqlite3_h" = xyes; then : 20546 cat >>confdefs.h <<_ACEOF 20547#define HAVE_SQLITE3_H 1 20548_ACEOF 20549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5 20550$as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; } 20551if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then : 20552 $as_echo_n "(cached) " >&6 20553else 20554 ac_check_lib_save_LIBS=$LIBS 20555LIBS="-lsqlite3 $LIBS" 20556cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20557/* end confdefs.h. */ 20558 20559/* Override any GCC internal prototype to avoid an error. 20560 Use char because int might match the return type of a GCC 20561 builtin and then its argument prototype would still apply. */ 20562#ifdef __cplusplus 20563extern "C" 20564#endif 20565char sqlite3_open (); 20566int 20567main () 20568{ 20569return sqlite3_open (); 20570 ; 20571 return 0; 20572} 20573_ACEOF 20574if ac_fn_c_try_link "$LINENO"; then : 20575 ac_cv_lib_sqlite3_sqlite3_open=yes 20576else 20577 ac_cv_lib_sqlite3_sqlite3_open=no 20578fi 20579rm -f core conftest.err conftest.$ac_objext \ 20580 conftest$ac_exeext conftest.$ac_ext 20581LIBS=$ac_check_lib_save_LIBS 20582fi 20583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5 20584$as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; } 20585if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then : 20586 apu_have_sqlite3=1 20587fi 20588 20589fi 20590 20591done 20592 20593 20594fi 20595 20596 20597 20598 20599 if test "$apu_have_sqlite3" = "1"; then 20600 20601 if test "x$LDADD_dbd_sqlite3" = "x"; then 20602 test "x$silent" != "xyes" && echo " setting LDADD_dbd_sqlite3 to \"$sqlite3_LDFLAGS -lsqlite3\"" 20603 LDADD_dbd_sqlite3="$sqlite3_LDFLAGS -lsqlite3" 20604 else 20605 apr_addto_bugger="$sqlite3_LDFLAGS -lsqlite3" 20606 for i in $apr_addto_bugger; do 20607 apr_addto_duplicate="0" 20608 for j in $LDADD_dbd_sqlite3; do 20609 if test "x$i" = "x$j"; then 20610 apr_addto_duplicate="1" 20611 break 20612 fi 20613 done 20614 if test $apr_addto_duplicate = "0"; then 20615 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbd_sqlite3" 20616 LDADD_dbd_sqlite3="$LDADD_dbd_sqlite3 $i" 20617 fi 20618 done 20619 fi 20620 20621 fi 20622 20623 20624 LIBS="$old_libs" 20625 CPPFLAGS="$old_cppflags" 20626 LDFLAGS="$old_ldflags" 20627 20628 20629 apu_have_sqlite2=0 20630 20631 old_libs="$LIBS" 20632 old_cppflags="$CPPFLAGS" 20633 old_ldflags="$LDFLAGS" 20634 20635 20636# Check whether --with-sqlite2 was given. 20637if test "${with_sqlite2+set}" = set; then : 20638 withval=$with_sqlite2; 20639 if test "$withval" = "yes"; then 20640 for ac_header in sqlite.h 20641do : 20642 ac_fn_c_check_header_mongrel "$LINENO" "sqlite.h" "ac_cv_header_sqlite_h" "$ac_includes_default" 20643if test "x$ac_cv_header_sqlite_h" = xyes; then : 20644 cat >>confdefs.h <<_ACEOF 20645#define HAVE_SQLITE_H 1 20646_ACEOF 20647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite_open in -lsqlite" >&5 20648$as_echo_n "checking for sqlite_open in -lsqlite... " >&6; } 20649if ${ac_cv_lib_sqlite_sqlite_open+:} false; then : 20650 $as_echo_n "(cached) " >&6 20651else 20652 ac_check_lib_save_LIBS=$LIBS 20653LIBS="-lsqlite $LIBS" 20654cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20655/* end confdefs.h. */ 20656 20657/* Override any GCC internal prototype to avoid an error. 20658 Use char because int might match the return type of a GCC 20659 builtin and then its argument prototype would still apply. */ 20660#ifdef __cplusplus 20661extern "C" 20662#endif 20663char sqlite_open (); 20664int 20665main () 20666{ 20667return sqlite_open (); 20668 ; 20669 return 0; 20670} 20671_ACEOF 20672if ac_fn_c_try_link "$LINENO"; then : 20673 ac_cv_lib_sqlite_sqlite_open=yes 20674else 20675 ac_cv_lib_sqlite_sqlite_open=no 20676fi 20677rm -f core conftest.err conftest.$ac_objext \ 20678 conftest$ac_exeext conftest.$ac_ext 20679LIBS=$ac_check_lib_save_LIBS 20680fi 20681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite_sqlite_open" >&5 20682$as_echo "$ac_cv_lib_sqlite_sqlite_open" >&6; } 20683if test "x$ac_cv_lib_sqlite_sqlite_open" = xyes; then : 20684 apu_have_sqlite2=1 20685fi 20686 20687fi 20688 20689done 20690 20691 elif test "$withval" = "no"; then 20692 : 20693 else 20694 sqlite2_CPPFLAGS="-I$withval/include" 20695 sqlite2_LDFLAGS="-L$withval/lib " 20696 20697 20698 if test "x$CPPFLAGS" = "x"; then 20699 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$sqlite2_CPPFLAGS\"" 20700 CPPFLAGS="$sqlite2_CPPFLAGS" 20701 else 20702 apr_addto_bugger="$sqlite2_CPPFLAGS" 20703 for i in $apr_addto_bugger; do 20704 apr_addto_duplicate="0" 20705 for j in $CPPFLAGS; do 20706 if test "x$i" = "x$j"; then 20707 apr_addto_duplicate="1" 20708 break 20709 fi 20710 done 20711 if test $apr_addto_duplicate = "0"; then 20712 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 20713 CPPFLAGS="$CPPFLAGS $i" 20714 fi 20715 done 20716 fi 20717 20718 20719 if test "x$LDFLAGS" = "x"; then 20720 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$sqlite2_LDFLAGS\"" 20721 LDFLAGS="$sqlite2_LDFLAGS" 20722 else 20723 apr_addto_bugger="$sqlite2_LDFLAGS" 20724 for i in $apr_addto_bugger; do 20725 apr_addto_duplicate="0" 20726 for j in $LDFLAGS; do 20727 if test "x$i" = "x$j"; then 20728 apr_addto_duplicate="1" 20729 break 20730 fi 20731 done 20732 if test $apr_addto_duplicate = "0"; then 20733 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 20734 LDFLAGS="$LDFLAGS $i" 20735 fi 20736 done 20737 fi 20738 20739 20740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite2 in $withval" >&5 20741$as_echo "$as_me: checking for sqlite2 in $withval" >&6;} 20742 for ac_header in sqlite.h 20743do : 20744 ac_fn_c_check_header_mongrel "$LINENO" "sqlite.h" "ac_cv_header_sqlite_h" "$ac_includes_default" 20745if test "x$ac_cv_header_sqlite_h" = xyes; then : 20746 cat >>confdefs.h <<_ACEOF 20747#define HAVE_SQLITE_H 1 20748_ACEOF 20749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite_open in -lsqlite" >&5 20750$as_echo_n "checking for sqlite_open in -lsqlite... " >&6; } 20751if ${ac_cv_lib_sqlite_sqlite_open+:} false; then : 20752 $as_echo_n "(cached) " >&6 20753else 20754 ac_check_lib_save_LIBS=$LIBS 20755LIBS="-lsqlite $LIBS" 20756cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20757/* end confdefs.h. */ 20758 20759/* Override any GCC internal prototype to avoid an error. 20760 Use char because int might match the return type of a GCC 20761 builtin and then its argument prototype would still apply. */ 20762#ifdef __cplusplus 20763extern "C" 20764#endif 20765char sqlite_open (); 20766int 20767main () 20768{ 20769return sqlite_open (); 20770 ; 20771 return 0; 20772} 20773_ACEOF 20774if ac_fn_c_try_link "$LINENO"; then : 20775 ac_cv_lib_sqlite_sqlite_open=yes 20776else 20777 ac_cv_lib_sqlite_sqlite_open=no 20778fi 20779rm -f core conftest.err conftest.$ac_objext \ 20780 conftest$ac_exeext conftest.$ac_ext 20781LIBS=$ac_check_lib_save_LIBS 20782fi 20783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite_sqlite_open" >&5 20784$as_echo "$ac_cv_lib_sqlite_sqlite_open" >&6; } 20785if test "x$ac_cv_lib_sqlite_sqlite_open" = xyes; then : 20786 apu_have_sqlite2=1 20787fi 20788 20789fi 20790 20791done 20792 20793 if test "$apu_have_sqlite2" != "0"; then 20794 20795 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 20796 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"-I$withval/include\"" 20797 APRUTIL_PRIV_INCLUDES="-I$withval/include" 20798 else 20799 apr_addto_bugger="-I$withval/include" 20800 for i in $apr_addto_bugger; do 20801 apr_addto_duplicate="0" 20802 for j in $APRUTIL_PRIV_INCLUDES; do 20803 if test "x$i" = "x$j"; then 20804 apr_addto_duplicate="1" 20805 break 20806 fi 20807 done 20808 if test $apr_addto_duplicate = "0"; then 20809 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 20810 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 20811 fi 20812 done 20813 fi 20814 20815 fi 20816 fi 20817 20818else 20819 20820 for ac_header in sqlite.h 20821do : 20822 ac_fn_c_check_header_mongrel "$LINENO" "sqlite.h" "ac_cv_header_sqlite_h" "$ac_includes_default" 20823if test "x$ac_cv_header_sqlite_h" = xyes; then : 20824 cat >>confdefs.h <<_ACEOF 20825#define HAVE_SQLITE_H 1 20826_ACEOF 20827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite_open in -lsqlite" >&5 20828$as_echo_n "checking for sqlite_open in -lsqlite... " >&6; } 20829if ${ac_cv_lib_sqlite_sqlite_open+:} false; then : 20830 $as_echo_n "(cached) " >&6 20831else 20832 ac_check_lib_save_LIBS=$LIBS 20833LIBS="-lsqlite $LIBS" 20834cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20835/* end confdefs.h. */ 20836 20837/* Override any GCC internal prototype to avoid an error. 20838 Use char because int might match the return type of a GCC 20839 builtin and then its argument prototype would still apply. */ 20840#ifdef __cplusplus 20841extern "C" 20842#endif 20843char sqlite_open (); 20844int 20845main () 20846{ 20847return sqlite_open (); 20848 ; 20849 return 0; 20850} 20851_ACEOF 20852if ac_fn_c_try_link "$LINENO"; then : 20853 ac_cv_lib_sqlite_sqlite_open=yes 20854else 20855 ac_cv_lib_sqlite_sqlite_open=no 20856fi 20857rm -f core conftest.err conftest.$ac_objext \ 20858 conftest$ac_exeext conftest.$ac_ext 20859LIBS=$ac_check_lib_save_LIBS 20860fi 20861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite_sqlite_open" >&5 20862$as_echo "$ac_cv_lib_sqlite_sqlite_open" >&6; } 20863if test "x$ac_cv_lib_sqlite_sqlite_open" = xyes; then : 20864 apu_have_sqlite2=1 20865fi 20866 20867fi 20868 20869done 20870 20871 20872fi 20873 20874 20875 20876 20877 if test "$apu_have_sqlite2" = "1"; then 20878 20879 if test "x$LDADD_dbd_sqlite2" = "x"; then 20880 test "x$silent" != "xyes" && echo " setting LDADD_dbd_sqlite2 to \"$sqlite2_LDFLAGS -lsqlite\"" 20881 LDADD_dbd_sqlite2="$sqlite2_LDFLAGS -lsqlite" 20882 else 20883 apr_addto_bugger="$sqlite2_LDFLAGS -lsqlite" 20884 for i in $apr_addto_bugger; do 20885 apr_addto_duplicate="0" 20886 for j in $LDADD_dbd_sqlite2; do 20887 if test "x$i" = "x$j"; then 20888 apr_addto_duplicate="1" 20889 break 20890 fi 20891 done 20892 if test $apr_addto_duplicate = "0"; then 20893 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbd_sqlite2" 20894 LDADD_dbd_sqlite2="$LDADD_dbd_sqlite2 $i" 20895 fi 20896 done 20897 fi 20898 20899 fi 20900 20901 20902 LIBS="$old_libs" 20903 CPPFLAGS="$old_cppflags" 20904 LDFLAGS="$old_ldflags" 20905 20906 20907 apu_have_oracle=0 20908 20909 old_libs="$LIBS" 20910 old_cppflags="$CPPFLAGS" 20911 old_ldflags="$LDFLAGS" 20912 20913 20914# Check whether --with-oracle-include was given. 20915if test "${with_oracle_include+set}" = set; then : 20916 withval=$with_oracle_include; 20917fi 20918 20919 20920# Check whether --with-oracle was given. 20921if test "${with_oracle+set}" = set; then : 20922 withval=$with_oracle; 20923 if test "$withval" = "yes"; then 20924 if test -n "$with_oracle_include"; then 20925 oracle_CPPFLAGS="$CPPFLAGS -I$with_oracle_include" 20926 20927 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 20928 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"-I$with_oracle_include\"" 20929 APRUTIL_PRIV_INCLUDES="-I$with_oracle_include" 20930 else 20931 apr_addto_bugger="-I$with_oracle_include" 20932 for i in $apr_addto_bugger; do 20933 apr_addto_duplicate="0" 20934 for j in $APRUTIL_PRIV_INCLUDES; do 20935 if test "x$i" = "x$j"; then 20936 apr_addto_duplicate="1" 20937 break 20938 fi 20939 done 20940 if test $apr_addto_duplicate = "0"; then 20941 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 20942 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 20943 fi 20944 done 20945 fi 20946 20947 fi 20948 20949 20950 if test "x$CPPFLAGS" = "x"; then 20951 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$oracle_CPPFLAGS\"" 20952 CPPFLAGS="$oracle_CPPFLAGS" 20953 else 20954 apr_addto_bugger="$oracle_CPPFLAGS" 20955 for i in $apr_addto_bugger; do 20956 apr_addto_duplicate="0" 20957 for j in $CPPFLAGS; do 20958 if test "x$i" = "x$j"; then 20959 apr_addto_duplicate="1" 20960 break 20961 fi 20962 done 20963 if test $apr_addto_duplicate = "0"; then 20964 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 20965 CPPFLAGS="$CPPFLAGS $i" 20966 fi 20967 done 20968 fi 20969 20970 20971 for ac_header in oci.h 20972do : 20973 ac_fn_c_check_header_mongrel "$LINENO" "oci.h" "ac_cv_header_oci_h" "$ac_includes_default" 20974if test "x$ac_cv_header_oci_h" = xyes; then : 20975 cat >>confdefs.h <<_ACEOF 20976#define HAVE_OCI_H 1 20977_ACEOF 20978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvCreate in -lclntsh" >&5 20979$as_echo_n "checking for OCIEnvCreate in -lclntsh... " >&6; } 20980if ${ac_cv_lib_clntsh_OCIEnvCreate+:} false; then : 20981 $as_echo_n "(cached) " >&6 20982else 20983 ac_check_lib_save_LIBS=$LIBS 20984LIBS="-lclntsh $LIBS" 20985cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20986/* end confdefs.h. */ 20987 20988/* Override any GCC internal prototype to avoid an error. 20989 Use char because int might match the return type of a GCC 20990 builtin and then its argument prototype would still apply. */ 20991#ifdef __cplusplus 20992extern "C" 20993#endif 20994char OCIEnvCreate (); 20995int 20996main () 20997{ 20998return OCIEnvCreate (); 20999 ; 21000 return 0; 21001} 21002_ACEOF 21003if ac_fn_c_try_link "$LINENO"; then : 21004 ac_cv_lib_clntsh_OCIEnvCreate=yes 21005else 21006 ac_cv_lib_clntsh_OCIEnvCreate=no 21007fi 21008rm -f core conftest.err conftest.$ac_objext \ 21009 conftest$ac_exeext conftest.$ac_ext 21010LIBS=$ac_check_lib_save_LIBS 21011fi 21012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvCreate" >&5 21013$as_echo "$ac_cv_lib_clntsh_OCIEnvCreate" >&6; } 21014if test "x$ac_cv_lib_clntsh_OCIEnvCreate" = xyes; then : 21015 apu_have_oracle=1 21016else 21017 21018 unset ac_cv_lib_clntsh_OCIEnvCreate 21019 oracle_LIBS="-lnnz11" 21020 21021 if test "x$LIBS" = "x"; then 21022 test "x$silent" != "xyes" && echo " setting LIBS to \"$oracle_LIBS\"" 21023 LIBS="$oracle_LIBS" 21024 else 21025 apr_addto_bugger="$oracle_LIBS" 21026 for i in $apr_addto_bugger; do 21027 apr_addto_duplicate="0" 21028 for j in $LIBS; do 21029 if test "x$i" = "x$j"; then 21030 apr_addto_duplicate="1" 21031 break 21032 fi 21033 done 21034 if test $apr_addto_duplicate = "0"; then 21035 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 21036 LIBS="$LIBS $i" 21037 fi 21038 done 21039 fi 21040 21041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvCreate in -lclntsh" >&5 21042$as_echo_n "checking for OCIEnvCreate in -lclntsh... " >&6; } 21043if ${ac_cv_lib_clntsh_OCIEnvCreate+:} false; then : 21044 $as_echo_n "(cached) " >&6 21045else 21046 ac_check_lib_save_LIBS=$LIBS 21047LIBS="-lclntsh $LIBS" 21048cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21049/* end confdefs.h. */ 21050 21051/* Override any GCC internal prototype to avoid an error. 21052 Use char because int might match the return type of a GCC 21053 builtin and then its argument prototype would still apply. */ 21054#ifdef __cplusplus 21055extern "C" 21056#endif 21057char OCIEnvCreate (); 21058int 21059main () 21060{ 21061return OCIEnvCreate (); 21062 ; 21063 return 0; 21064} 21065_ACEOF 21066if ac_fn_c_try_link "$LINENO"; then : 21067 ac_cv_lib_clntsh_OCIEnvCreate=yes 21068else 21069 ac_cv_lib_clntsh_OCIEnvCreate=no 21070fi 21071rm -f core conftest.err conftest.$ac_objext \ 21072 conftest$ac_exeext conftest.$ac_ext 21073LIBS=$ac_check_lib_save_LIBS 21074fi 21075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvCreate" >&5 21076$as_echo "$ac_cv_lib_clntsh_OCIEnvCreate" >&6; } 21077if test "x$ac_cv_lib_clntsh_OCIEnvCreate" = xyes; then : 21078 apu_have_oracle=1 21079else 21080 21081 unset ac_cv_lib_clntsh_OCIEnvCreate 21082 21083 if test "x$LIBS" = "x$oracle_LIBS"; then 21084 test "x$silent" != "xyes" && echo " nulling LIBS" 21085 LIBS="" 21086 else 21087 apr_new_bugger="" 21088 apr_removed=0 21089 for i in $LIBS; do 21090 if test "x$i" != "x$oracle_LIBS"; then 21091 apr_new_bugger="$apr_new_bugger $i" 21092 else 21093 apr_removed=1 21094 fi 21095 done 21096 if test $apr_removed = "1"; then 21097 test "x$silent" != "xyes" && echo " removed \"$oracle_LIBS\" from LIBS" 21098 LIBS=$apr_new_bugger 21099 fi 21100 fi 21101 21102 oracle_LIBS="-lnnz10" 21103 21104 if test "x$LIBS" = "x"; then 21105 test "x$silent" != "xyes" && echo " setting LIBS to \"$oracle_LIBS\"" 21106 LIBS="$oracle_LIBS" 21107 else 21108 apr_addto_bugger="$oracle_LIBS" 21109 for i in $apr_addto_bugger; do 21110 apr_addto_duplicate="0" 21111 for j in $LIBS; do 21112 if test "x$i" = "x$j"; then 21113 apr_addto_duplicate="1" 21114 break 21115 fi 21116 done 21117 if test $apr_addto_duplicate = "0"; then 21118 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 21119 LIBS="$LIBS $i" 21120 fi 21121 done 21122 fi 21123 21124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvCreate in -lclntsh" >&5 21125$as_echo_n "checking for OCIEnvCreate in -lclntsh... " >&6; } 21126if ${ac_cv_lib_clntsh_OCIEnvCreate+:} false; then : 21127 $as_echo_n "(cached) " >&6 21128else 21129 ac_check_lib_save_LIBS=$LIBS 21130LIBS="-lclntsh $LIBS" 21131cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21132/* end confdefs.h. */ 21133 21134/* Override any GCC internal prototype to avoid an error. 21135 Use char because int might match the return type of a GCC 21136 builtin and then its argument prototype would still apply. */ 21137#ifdef __cplusplus 21138extern "C" 21139#endif 21140char OCIEnvCreate (); 21141int 21142main () 21143{ 21144return OCIEnvCreate (); 21145 ; 21146 return 0; 21147} 21148_ACEOF 21149if ac_fn_c_try_link "$LINENO"; then : 21150 ac_cv_lib_clntsh_OCIEnvCreate=yes 21151else 21152 ac_cv_lib_clntsh_OCIEnvCreate=no 21153fi 21154rm -f core conftest.err conftest.$ac_objext \ 21155 conftest$ac_exeext conftest.$ac_ext 21156LIBS=$ac_check_lib_save_LIBS 21157fi 21158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvCreate" >&5 21159$as_echo "$ac_cv_lib_clntsh_OCIEnvCreate" >&6; } 21160if test "x$ac_cv_lib_clntsh_OCIEnvCreate" = xyes; then : 21161 apu_have_oracle=1 21162fi 21163 21164 21165fi 21166 21167 21168fi 21169 21170fi 21171 21172done 21173 21174 elif test "$withval" = "no"; then 21175 : 21176 else 21177 if test -n "$with_oracle_include"; then 21178 oracle_CPPFLAGS="$CPPFLAGS -I$with_oracle_include" 21179 21180 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 21181 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"-I$with_oracle_include\"" 21182 APRUTIL_PRIV_INCLUDES="-I$with_oracle_include" 21183 else 21184 apr_addto_bugger="-I$with_oracle_include" 21185 for i in $apr_addto_bugger; do 21186 apr_addto_duplicate="0" 21187 for j in $APRUTIL_PRIV_INCLUDES; do 21188 if test "x$i" = "x$j"; then 21189 apr_addto_duplicate="1" 21190 break 21191 fi 21192 done 21193 if test $apr_addto_duplicate = "0"; then 21194 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 21195 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 21196 fi 21197 done 21198 fi 21199 21200 else 21201 oracle_CPPFLAGS="-I$withval/rdbms/demo -I$withval/rdbms/public" 21202 fi 21203 oracle_LDFLAGS="-L$withval/lib " 21204 21205 21206 if test "x$CPPFLAGS" = "x"; then 21207 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$oracle_CPPFLAGS\"" 21208 CPPFLAGS="$oracle_CPPFLAGS" 21209 else 21210 apr_addto_bugger="$oracle_CPPFLAGS" 21211 for i in $apr_addto_bugger; do 21212 apr_addto_duplicate="0" 21213 for j in $CPPFLAGS; do 21214 if test "x$i" = "x$j"; then 21215 apr_addto_duplicate="1" 21216 break 21217 fi 21218 done 21219 if test $apr_addto_duplicate = "0"; then 21220 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 21221 CPPFLAGS="$CPPFLAGS $i" 21222 fi 21223 done 21224 fi 21225 21226 21227 if test "x$LDFLAGS" = "x"; then 21228 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$oracle_LDFLAGS\"" 21229 LDFLAGS="$oracle_LDFLAGS" 21230 else 21231 apr_addto_bugger="$oracle_LDFLAGS" 21232 for i in $apr_addto_bugger; do 21233 apr_addto_duplicate="0" 21234 for j in $LDFLAGS; do 21235 if test "x$i" = "x$j"; then 21236 apr_addto_duplicate="1" 21237 break 21238 fi 21239 done 21240 if test $apr_addto_duplicate = "0"; then 21241 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 21242 LDFLAGS="$LDFLAGS $i" 21243 fi 21244 done 21245 fi 21246 21247 21248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for oracle in $withval" >&5 21249$as_echo "$as_me: checking for oracle in $withval" >&6;} 21250 for ac_header in oci.h 21251do : 21252 ac_fn_c_check_header_mongrel "$LINENO" "oci.h" "ac_cv_header_oci_h" "$ac_includes_default" 21253if test "x$ac_cv_header_oci_h" = xyes; then : 21254 cat >>confdefs.h <<_ACEOF 21255#define HAVE_OCI_H 1 21256_ACEOF 21257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvCreate in -lclntsh" >&5 21258$as_echo_n "checking for OCIEnvCreate in -lclntsh... " >&6; } 21259if ${ac_cv_lib_clntsh_OCIEnvCreate+:} false; then : 21260 $as_echo_n "(cached) " >&6 21261else 21262 ac_check_lib_save_LIBS=$LIBS 21263LIBS="-lclntsh $LIBS" 21264cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21265/* end confdefs.h. */ 21266 21267/* Override any GCC internal prototype to avoid an error. 21268 Use char because int might match the return type of a GCC 21269 builtin and then its argument prototype would still apply. */ 21270#ifdef __cplusplus 21271extern "C" 21272#endif 21273char OCIEnvCreate (); 21274int 21275main () 21276{ 21277return OCIEnvCreate (); 21278 ; 21279 return 0; 21280} 21281_ACEOF 21282if ac_fn_c_try_link "$LINENO"; then : 21283 ac_cv_lib_clntsh_OCIEnvCreate=yes 21284else 21285 ac_cv_lib_clntsh_OCIEnvCreate=no 21286fi 21287rm -f core conftest.err conftest.$ac_objext \ 21288 conftest$ac_exeext conftest.$ac_ext 21289LIBS=$ac_check_lib_save_LIBS 21290fi 21291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvCreate" >&5 21292$as_echo "$ac_cv_lib_clntsh_OCIEnvCreate" >&6; } 21293if test "x$ac_cv_lib_clntsh_OCIEnvCreate" = xyes; then : 21294 apu_have_oracle=1 21295else 21296 21297 unset ac_cv_lib_clntsh_OCIEnvCreate 21298 oracle_LIBS="-lnnz11" 21299 21300 if test "x$LIBS" = "x"; then 21301 test "x$silent" != "xyes" && echo " setting LIBS to \"$oracle_LIBS\"" 21302 LIBS="$oracle_LIBS" 21303 else 21304 apr_addto_bugger="$oracle_LIBS" 21305 for i in $apr_addto_bugger; do 21306 apr_addto_duplicate="0" 21307 for j in $LIBS; do 21308 if test "x$i" = "x$j"; then 21309 apr_addto_duplicate="1" 21310 break 21311 fi 21312 done 21313 if test $apr_addto_duplicate = "0"; then 21314 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 21315 LIBS="$LIBS $i" 21316 fi 21317 done 21318 fi 21319 21320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvCreate in -lclntsh" >&5 21321$as_echo_n "checking for OCIEnvCreate in -lclntsh... " >&6; } 21322if ${ac_cv_lib_clntsh_OCIEnvCreate+:} false; then : 21323 $as_echo_n "(cached) " >&6 21324else 21325 ac_check_lib_save_LIBS=$LIBS 21326LIBS="-lclntsh $LIBS" 21327cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21328/* end confdefs.h. */ 21329 21330/* Override any GCC internal prototype to avoid an error. 21331 Use char because int might match the return type of a GCC 21332 builtin and then its argument prototype would still apply. */ 21333#ifdef __cplusplus 21334extern "C" 21335#endif 21336char OCIEnvCreate (); 21337int 21338main () 21339{ 21340return OCIEnvCreate (); 21341 ; 21342 return 0; 21343} 21344_ACEOF 21345if ac_fn_c_try_link "$LINENO"; then : 21346 ac_cv_lib_clntsh_OCIEnvCreate=yes 21347else 21348 ac_cv_lib_clntsh_OCIEnvCreate=no 21349fi 21350rm -f core conftest.err conftest.$ac_objext \ 21351 conftest$ac_exeext conftest.$ac_ext 21352LIBS=$ac_check_lib_save_LIBS 21353fi 21354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvCreate" >&5 21355$as_echo "$ac_cv_lib_clntsh_OCIEnvCreate" >&6; } 21356if test "x$ac_cv_lib_clntsh_OCIEnvCreate" = xyes; then : 21357 apu_have_oracle=1 21358else 21359 21360 unset ac_cv_lib_clntsh_OCIEnvCreate 21361 21362 if test "x$LIBS" = "x$oracle_LIBS"; then 21363 test "x$silent" != "xyes" && echo " nulling LIBS" 21364 LIBS="" 21365 else 21366 apr_new_bugger="" 21367 apr_removed=0 21368 for i in $LIBS; do 21369 if test "x$i" != "x$oracle_LIBS"; then 21370 apr_new_bugger="$apr_new_bugger $i" 21371 else 21372 apr_removed=1 21373 fi 21374 done 21375 if test $apr_removed = "1"; then 21376 test "x$silent" != "xyes" && echo " removed \"$oracle_LIBS\" from LIBS" 21377 LIBS=$apr_new_bugger 21378 fi 21379 fi 21380 21381 oracle_LIBS="-lnnz10" 21382 21383 if test "x$LIBS" = "x"; then 21384 test "x$silent" != "xyes" && echo " setting LIBS to \"$oracle_LIBS\"" 21385 LIBS="$oracle_LIBS" 21386 else 21387 apr_addto_bugger="$oracle_LIBS" 21388 for i in $apr_addto_bugger; do 21389 apr_addto_duplicate="0" 21390 for j in $LIBS; do 21391 if test "x$i" = "x$j"; then 21392 apr_addto_duplicate="1" 21393 break 21394 fi 21395 done 21396 if test $apr_addto_duplicate = "0"; then 21397 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 21398 LIBS="$LIBS $i" 21399 fi 21400 done 21401 fi 21402 21403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvCreate in -lclntsh" >&5 21404$as_echo_n "checking for OCIEnvCreate in -lclntsh... " >&6; } 21405if ${ac_cv_lib_clntsh_OCIEnvCreate+:} false; then : 21406 $as_echo_n "(cached) " >&6 21407else 21408 ac_check_lib_save_LIBS=$LIBS 21409LIBS="-lclntsh $LIBS" 21410cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21411/* end confdefs.h. */ 21412 21413/* Override any GCC internal prototype to avoid an error. 21414 Use char because int might match the return type of a GCC 21415 builtin and then its argument prototype would still apply. */ 21416#ifdef __cplusplus 21417extern "C" 21418#endif 21419char OCIEnvCreate (); 21420int 21421main () 21422{ 21423return OCIEnvCreate (); 21424 ; 21425 return 0; 21426} 21427_ACEOF 21428if ac_fn_c_try_link "$LINENO"; then : 21429 ac_cv_lib_clntsh_OCIEnvCreate=yes 21430else 21431 ac_cv_lib_clntsh_OCIEnvCreate=no 21432fi 21433rm -f core conftest.err conftest.$ac_objext \ 21434 conftest$ac_exeext conftest.$ac_ext 21435LIBS=$ac_check_lib_save_LIBS 21436fi 21437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvCreate" >&5 21438$as_echo "$ac_cv_lib_clntsh_OCIEnvCreate" >&6; } 21439if test "x$ac_cv_lib_clntsh_OCIEnvCreate" = xyes; then : 21440 apu_have_oracle=1 21441fi 21442 21443 21444fi 21445 21446 21447fi 21448 21449fi 21450 21451done 21452 21453 if test "$apu_have_oracle" != "0"; then 21454 oracle_LDFLAGS="$oracle_LDFLAGS -R$withval/lib" 21455 if test -z "$with_oracle_include"; then 21456 21457 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 21458 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"-I$withval/rdbms/demo\"" 21459 APRUTIL_PRIV_INCLUDES="-I$withval/rdbms/demo" 21460 else 21461 apr_addto_bugger="-I$withval/rdbms/demo" 21462 for i in $apr_addto_bugger; do 21463 apr_addto_duplicate="0" 21464 for j in $APRUTIL_PRIV_INCLUDES; do 21465 if test "x$i" = "x$j"; then 21466 apr_addto_duplicate="1" 21467 break 21468 fi 21469 done 21470 if test $apr_addto_duplicate = "0"; then 21471 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 21472 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 21473 fi 21474 done 21475 fi 21476 21477 21478 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 21479 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"-I$withval/rdbms/public\"" 21480 APRUTIL_PRIV_INCLUDES="-I$withval/rdbms/public" 21481 else 21482 apr_addto_bugger="-I$withval/rdbms/public" 21483 for i in $apr_addto_bugger; do 21484 apr_addto_duplicate="0" 21485 for j in $APRUTIL_PRIV_INCLUDES; do 21486 if test "x$i" = "x$j"; then 21487 apr_addto_duplicate="1" 21488 break 21489 fi 21490 done 21491 if test $apr_addto_duplicate = "0"; then 21492 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 21493 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 21494 fi 21495 done 21496 fi 21497 21498 fi 21499 fi 21500 fi 21501 21502fi 21503 21504 21505 21506 21507 if test "$apu_have_oracle" = "1"; then 21508 21509 if test "x$LDADD_dbd_oracle" = "x"; then 21510 test "x$silent" != "xyes" && echo " setting LDADD_dbd_oracle to \"$oracle_LDFLAGS -lclntsh $oracle_LIBS\"" 21511 LDADD_dbd_oracle="$oracle_LDFLAGS -lclntsh $oracle_LIBS" 21512 else 21513 apr_addto_bugger="$oracle_LDFLAGS -lclntsh $oracle_LIBS" 21514 for i in $apr_addto_bugger; do 21515 apr_addto_duplicate="0" 21516 for j in $LDADD_dbd_oracle; do 21517 if test "x$i" = "x$j"; then 21518 apr_addto_duplicate="1" 21519 break 21520 fi 21521 done 21522 if test $apr_addto_duplicate = "0"; then 21523 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbd_oracle" 21524 LDADD_dbd_oracle="$LDADD_dbd_oracle $i" 21525 fi 21526 done 21527 fi 21528 21529 fi 21530 21531 21532 LIBS="$old_libs" 21533 CPPFLAGS="$old_cppflags" 21534 LDFLAGS="$old_ldflags" 21535 21536 21537 apu_have_freetds=0 21538 21539 old_libs="$LIBS" 21540 old_cppflags="$CPPFLAGS" 21541 old_ldflags="$LDFLAGS" 21542 21543 21544# Check whether --with-freetds was given. 21545if test "${with_freetds+set}" = set; then : 21546 withval=$with_freetds; 21547 if test "$withval" = "yes"; then 21548 for ac_header in sybdb.h 21549do : 21550 ac_fn_c_check_header_mongrel "$LINENO" "sybdb.h" "ac_cv_header_sybdb_h" "$ac_includes_default" 21551if test "x$ac_cv_header_sybdb_h" = xyes; then : 21552 cat >>confdefs.h <<_ACEOF 21553#define HAVE_SYBDB_H 1 21554_ACEOF 21555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tdsdbopen in -lsybdb" >&5 21556$as_echo_n "checking for tdsdbopen in -lsybdb... " >&6; } 21557if ${ac_cv_lib_sybdb_tdsdbopen+:} false; then : 21558 $as_echo_n "(cached) " >&6 21559else 21560 ac_check_lib_save_LIBS=$LIBS 21561LIBS="-lsybdb $LIBS" 21562cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21563/* end confdefs.h. */ 21564 21565/* Override any GCC internal prototype to avoid an error. 21566 Use char because int might match the return type of a GCC 21567 builtin and then its argument prototype would still apply. */ 21568#ifdef __cplusplus 21569extern "C" 21570#endif 21571char tdsdbopen (); 21572int 21573main () 21574{ 21575return tdsdbopen (); 21576 ; 21577 return 0; 21578} 21579_ACEOF 21580if ac_fn_c_try_link "$LINENO"; then : 21581 ac_cv_lib_sybdb_tdsdbopen=yes 21582else 21583 ac_cv_lib_sybdb_tdsdbopen=no 21584fi 21585rm -f core conftest.err conftest.$ac_objext \ 21586 conftest$ac_exeext conftest.$ac_ext 21587LIBS=$ac_check_lib_save_LIBS 21588fi 21589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sybdb_tdsdbopen" >&5 21590$as_echo "$ac_cv_lib_sybdb_tdsdbopen" >&6; } 21591if test "x$ac_cv_lib_sybdb_tdsdbopen" = xyes; then : 21592 apu_have_freetds=1 21593fi 21594 21595fi 21596 21597done 21598 21599 if test "$apu_have_freetds" = "0"; then 21600 for ac_header in freetds/sybdb.h 21601do : 21602 ac_fn_c_check_header_mongrel "$LINENO" "freetds/sybdb.h" "ac_cv_header_freetds_sybdb_h" "$ac_includes_default" 21603if test "x$ac_cv_header_freetds_sybdb_h" = xyes; then : 21604 cat >>confdefs.h <<_ACEOF 21605#define HAVE_FREETDS_SYBDB_H 1 21606_ACEOF 21607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tdsdbopen in -lsybdb" >&5 21608$as_echo_n "checking for tdsdbopen in -lsybdb... " >&6; } 21609if ${ac_cv_lib_sybdb_tdsdbopen+:} false; then : 21610 $as_echo_n "(cached) " >&6 21611else 21612 ac_check_lib_save_LIBS=$LIBS 21613LIBS="-lsybdb $LIBS" 21614cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21615/* end confdefs.h. */ 21616 21617/* Override any GCC internal prototype to avoid an error. 21618 Use char because int might match the return type of a GCC 21619 builtin and then its argument prototype would still apply. */ 21620#ifdef __cplusplus 21621extern "C" 21622#endif 21623char tdsdbopen (); 21624int 21625main () 21626{ 21627return tdsdbopen (); 21628 ; 21629 return 0; 21630} 21631_ACEOF 21632if ac_fn_c_try_link "$LINENO"; then : 21633 ac_cv_lib_sybdb_tdsdbopen=yes 21634else 21635 ac_cv_lib_sybdb_tdsdbopen=no 21636fi 21637rm -f core conftest.err conftest.$ac_objext \ 21638 conftest$ac_exeext conftest.$ac_ext 21639LIBS=$ac_check_lib_save_LIBS 21640fi 21641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sybdb_tdsdbopen" >&5 21642$as_echo "$ac_cv_lib_sybdb_tdsdbopen" >&6; } 21643if test "x$ac_cv_lib_sybdb_tdsdbopen" = xyes; then : 21644 apu_have_freetds=1 21645fi 21646 21647fi 21648 21649done 21650 21651 fi 21652 elif test "$withval" = "no"; then 21653 : 21654 else 21655 sybdb_CPPFLAGS="-I$withval/include" 21656 sybdb_LDFLAGS="-L$withval/lib " 21657 21658 21659 if test "x$CPPFLAGS" = "x"; then 21660 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$sybdb_CPPFLAGS\"" 21661 CPPFLAGS="$sybdb_CPPFLAGS" 21662 else 21663 apr_addto_bugger="$sybdb_CPPFLAGS" 21664 for i in $apr_addto_bugger; do 21665 apr_addto_duplicate="0" 21666 for j in $CPPFLAGS; do 21667 if test "x$i" = "x$j"; then 21668 apr_addto_duplicate="1" 21669 break 21670 fi 21671 done 21672 if test $apr_addto_duplicate = "0"; then 21673 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 21674 CPPFLAGS="$CPPFLAGS $i" 21675 fi 21676 done 21677 fi 21678 21679 21680 if test "x$LDFLAGS" = "x"; then 21681 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$sybdb_LDFLAGS\"" 21682 LDFLAGS="$sybdb_LDFLAGS" 21683 else 21684 apr_addto_bugger="$sybdb_LDFLAGS" 21685 for i in $apr_addto_bugger; do 21686 apr_addto_duplicate="0" 21687 for j in $LDFLAGS; do 21688 if test "x$i" = "x$j"; then 21689 apr_addto_duplicate="1" 21690 break 21691 fi 21692 done 21693 if test $apr_addto_duplicate = "0"; then 21694 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 21695 LDFLAGS="$LDFLAGS $i" 21696 fi 21697 done 21698 fi 21699 21700 21701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetds in $withval" >&5 21702$as_echo "$as_me: checking for freetds in $withval" >&6;} 21703 for ac_header in sybdb.h 21704do : 21705 ac_fn_c_check_header_mongrel "$LINENO" "sybdb.h" "ac_cv_header_sybdb_h" "$ac_includes_default" 21706if test "x$ac_cv_header_sybdb_h" = xyes; then : 21707 cat >>confdefs.h <<_ACEOF 21708#define HAVE_SYBDB_H 1 21709_ACEOF 21710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tdsdbopen in -lsybdb" >&5 21711$as_echo_n "checking for tdsdbopen in -lsybdb... " >&6; } 21712if ${ac_cv_lib_sybdb_tdsdbopen+:} false; then : 21713 $as_echo_n "(cached) " >&6 21714else 21715 ac_check_lib_save_LIBS=$LIBS 21716LIBS="-lsybdb $LIBS" 21717cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21718/* end confdefs.h. */ 21719 21720/* Override any GCC internal prototype to avoid an error. 21721 Use char because int might match the return type of a GCC 21722 builtin and then its argument prototype would still apply. */ 21723#ifdef __cplusplus 21724extern "C" 21725#endif 21726char tdsdbopen (); 21727int 21728main () 21729{ 21730return tdsdbopen (); 21731 ; 21732 return 0; 21733} 21734_ACEOF 21735if ac_fn_c_try_link "$LINENO"; then : 21736 ac_cv_lib_sybdb_tdsdbopen=yes 21737else 21738 ac_cv_lib_sybdb_tdsdbopen=no 21739fi 21740rm -f core conftest.err conftest.$ac_objext \ 21741 conftest$ac_exeext conftest.$ac_ext 21742LIBS=$ac_check_lib_save_LIBS 21743fi 21744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sybdb_tdsdbopen" >&5 21745$as_echo "$ac_cv_lib_sybdb_tdsdbopen" >&6; } 21746if test "x$ac_cv_lib_sybdb_tdsdbopen" = xyes; then : 21747 apu_have_freetds=1 21748fi 21749 21750fi 21751 21752done 21753 21754 if test "$apu_have_freetds" = "0"; then 21755 for ac_header in freetds/sybdb.h 21756do : 21757 ac_fn_c_check_header_mongrel "$LINENO" "freetds/sybdb.h" "ac_cv_header_freetds_sybdb_h" "$ac_includes_default" 21758if test "x$ac_cv_header_freetds_sybdb_h" = xyes; then : 21759 cat >>confdefs.h <<_ACEOF 21760#define HAVE_FREETDS_SYBDB_H 1 21761_ACEOF 21762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tdsdbopen in -lsybdb" >&5 21763$as_echo_n "checking for tdsdbopen in -lsybdb... " >&6; } 21764if ${ac_cv_lib_sybdb_tdsdbopen+:} false; then : 21765 $as_echo_n "(cached) " >&6 21766else 21767 ac_check_lib_save_LIBS=$LIBS 21768LIBS="-lsybdb $LIBS" 21769cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21770/* end confdefs.h. */ 21771 21772/* Override any GCC internal prototype to avoid an error. 21773 Use char because int might match the return type of a GCC 21774 builtin and then its argument prototype would still apply. */ 21775#ifdef __cplusplus 21776extern "C" 21777#endif 21778char tdsdbopen (); 21779int 21780main () 21781{ 21782return tdsdbopen (); 21783 ; 21784 return 0; 21785} 21786_ACEOF 21787if ac_fn_c_try_link "$LINENO"; then : 21788 ac_cv_lib_sybdb_tdsdbopen=yes 21789else 21790 ac_cv_lib_sybdb_tdsdbopen=no 21791fi 21792rm -f core conftest.err conftest.$ac_objext \ 21793 conftest$ac_exeext conftest.$ac_ext 21794LIBS=$ac_check_lib_save_LIBS 21795fi 21796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sybdb_tdsdbopen" >&5 21797$as_echo "$ac_cv_lib_sybdb_tdsdbopen" >&6; } 21798if test "x$ac_cv_lib_sybdb_tdsdbopen" = xyes; then : 21799 apu_have_freetds=1 21800fi 21801 21802fi 21803 21804done 21805 21806 fi 21807 if test "$apu_have_freetds" != "0"; then 21808 21809 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 21810 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"-I$withval/include\"" 21811 APRUTIL_PRIV_INCLUDES="-I$withval/include" 21812 else 21813 apr_addto_bugger="-I$withval/include" 21814 for i in $apr_addto_bugger; do 21815 apr_addto_duplicate="0" 21816 for j in $APRUTIL_PRIV_INCLUDES; do 21817 if test "x$i" = "x$j"; then 21818 apr_addto_duplicate="1" 21819 break 21820 fi 21821 done 21822 if test $apr_addto_duplicate = "0"; then 21823 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 21824 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 21825 fi 21826 done 21827 fi 21828 21829 fi 21830 fi 21831 21832else 21833 21834 for ac_header in sybdb.h 21835do : 21836 ac_fn_c_check_header_mongrel "$LINENO" "sybdb.h" "ac_cv_header_sybdb_h" "$ac_includes_default" 21837if test "x$ac_cv_header_sybdb_h" = xyes; then : 21838 cat >>confdefs.h <<_ACEOF 21839#define HAVE_SYBDB_H 1 21840_ACEOF 21841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tdsdbopen in -lsybdb" >&5 21842$as_echo_n "checking for tdsdbopen in -lsybdb... " >&6; } 21843if ${ac_cv_lib_sybdb_tdsdbopen+:} false; then : 21844 $as_echo_n "(cached) " >&6 21845else 21846 ac_check_lib_save_LIBS=$LIBS 21847LIBS="-lsybdb $LIBS" 21848cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21849/* end confdefs.h. */ 21850 21851/* Override any GCC internal prototype to avoid an error. 21852 Use char because int might match the return type of a GCC 21853 builtin and then its argument prototype would still apply. */ 21854#ifdef __cplusplus 21855extern "C" 21856#endif 21857char tdsdbopen (); 21858int 21859main () 21860{ 21861return tdsdbopen (); 21862 ; 21863 return 0; 21864} 21865_ACEOF 21866if ac_fn_c_try_link "$LINENO"; then : 21867 ac_cv_lib_sybdb_tdsdbopen=yes 21868else 21869 ac_cv_lib_sybdb_tdsdbopen=no 21870fi 21871rm -f core conftest.err conftest.$ac_objext \ 21872 conftest$ac_exeext conftest.$ac_ext 21873LIBS=$ac_check_lib_save_LIBS 21874fi 21875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sybdb_tdsdbopen" >&5 21876$as_echo "$ac_cv_lib_sybdb_tdsdbopen" >&6; } 21877if test "x$ac_cv_lib_sybdb_tdsdbopen" = xyes; then : 21878 apu_have_freetds=1 21879fi 21880 21881fi 21882 21883done 21884 21885 if test "$apu_have_freetds" = "0"; then 21886 for ac_header in freetds/sybdb.h 21887do : 21888 ac_fn_c_check_header_mongrel "$LINENO" "freetds/sybdb.h" "ac_cv_header_freetds_sybdb_h" "$ac_includes_default" 21889if test "x$ac_cv_header_freetds_sybdb_h" = xyes; then : 21890 cat >>confdefs.h <<_ACEOF 21891#define HAVE_FREETDS_SYBDB_H 1 21892_ACEOF 21893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tdsdbopen in -lsybdb" >&5 21894$as_echo_n "checking for tdsdbopen in -lsybdb... " >&6; } 21895if ${ac_cv_lib_sybdb_tdsdbopen+:} false; then : 21896 $as_echo_n "(cached) " >&6 21897else 21898 ac_check_lib_save_LIBS=$LIBS 21899LIBS="-lsybdb $LIBS" 21900cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21901/* end confdefs.h. */ 21902 21903/* Override any GCC internal prototype to avoid an error. 21904 Use char because int might match the return type of a GCC 21905 builtin and then its argument prototype would still apply. */ 21906#ifdef __cplusplus 21907extern "C" 21908#endif 21909char tdsdbopen (); 21910int 21911main () 21912{ 21913return tdsdbopen (); 21914 ; 21915 return 0; 21916} 21917_ACEOF 21918if ac_fn_c_try_link "$LINENO"; then : 21919 ac_cv_lib_sybdb_tdsdbopen=yes 21920else 21921 ac_cv_lib_sybdb_tdsdbopen=no 21922fi 21923rm -f core conftest.err conftest.$ac_objext \ 21924 conftest$ac_exeext conftest.$ac_ext 21925LIBS=$ac_check_lib_save_LIBS 21926fi 21927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sybdb_tdsdbopen" >&5 21928$as_echo "$ac_cv_lib_sybdb_tdsdbopen" >&6; } 21929if test "x$ac_cv_lib_sybdb_tdsdbopen" = xyes; then : 21930 apu_have_freetds=1 21931fi 21932 21933fi 21934 21935done 21936 21937 fi 21938 21939fi 21940 21941 21942 21943 21944 if test "$apu_have_freetds" = "1"; then 21945 21946 if test "x$LDADD_dbd_freetds" = "x"; then 21947 test "x$silent" != "xyes" && echo " setting LDADD_dbd_freetds to \"$sybdb_LDFLAGS -lsybdb\"" 21948 LDADD_dbd_freetds="$sybdb_LDFLAGS -lsybdb" 21949 else 21950 apr_addto_bugger="$sybdb_LDFLAGS -lsybdb" 21951 for i in $apr_addto_bugger; do 21952 apr_addto_duplicate="0" 21953 for j in $LDADD_dbd_freetds; do 21954 if test "x$i" = "x$j"; then 21955 apr_addto_duplicate="1" 21956 break 21957 fi 21958 done 21959 if test $apr_addto_duplicate = "0"; then 21960 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbd_freetds" 21961 LDADD_dbd_freetds="$LDADD_dbd_freetds $i" 21962 fi 21963 done 21964 fi 21965 21966 fi 21967 21968 21969 LIBS="$old_libs" 21970 CPPFLAGS="$old_cppflags" 21971 LDFLAGS="$old_ldflags" 21972 21973 21974 apu_have_odbc=0 21975 21976 old_libs="$LIBS" 21977 old_cppflags="$CPPFLAGS" 21978 old_ldflags="$LDFLAGS" 21979 21980 21981# Check whether --with-odbc was given. 21982if test "${with_odbc+set}" = set; then : 21983 withval=$with_odbc; 21984 if test "$withval" = "yes"; then 21985 # Extract the first word of "odbc_config", so it can be a program name with args. 21986set dummy odbc_config; ac_word=$2 21987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21988$as_echo_n "checking for $ac_word... " >&6; } 21989if ${ac_cv_path_ODBC_CONFIG+:} false; then : 21990 $as_echo_n "(cached) " >&6 21991else 21992 case $ODBC_CONFIG in 21993 [\\/]* | ?:[\\/]*) 21994 ac_cv_path_ODBC_CONFIG="$ODBC_CONFIG" # Let the user override the test with a path. 21995 ;; 21996 *) 21997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21998for as_dir in $PATH 21999do 22000 IFS=$as_save_IFS 22001 test -z "$as_dir" && as_dir=. 22002 for ac_exec_ext in '' $ac_executable_extensions; do 22003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22004 ac_cv_path_ODBC_CONFIG="$as_dir/$ac_word$ac_exec_ext" 22005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22006 break 2 22007 fi 22008done 22009 done 22010IFS=$as_save_IFS 22011 22012 ;; 22013esac 22014fi 22015ODBC_CONFIG=$ac_cv_path_ODBC_CONFIG 22016if test -n "$ODBC_CONFIG"; then 22017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODBC_CONFIG" >&5 22018$as_echo "$ODBC_CONFIG" >&6; } 22019else 22020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22021$as_echo "no" >&6; } 22022fi 22023 22024 22025 if test "x$ODBC_CONFIG" != 'x'; then 22026 odbc_CPPFLAGS="-I`$ODBC_CONFIG --include-prefix`" 22027 odbc_LDFLAGS="-L`$ODBC_CONFIG --lib-prefix`" 22028 odbc_LIBS="`$ODBC_CONFIG --libs`" 22029 22030 22031 if test "x$CPPFLAGS" = "x"; then 22032 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$odbc_CPPFLAGS\"" 22033 CPPFLAGS="$odbc_CPPFLAGS" 22034 else 22035 apr_addto_bugger="$odbc_CPPFLAGS" 22036 for i in $apr_addto_bugger; do 22037 apr_addto_duplicate="0" 22038 for j in $CPPFLAGS; do 22039 if test "x$i" = "x$j"; then 22040 apr_addto_duplicate="1" 22041 break 22042 fi 22043 done 22044 if test $apr_addto_duplicate = "0"; then 22045 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 22046 CPPFLAGS="$CPPFLAGS $i" 22047 fi 22048 done 22049 fi 22050 22051 22052 if test "x$LDFLAGS" = "x"; then 22053 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$odbc_LDFLAGS\"" 22054 LDFLAGS="$odbc_LDFLAGS" 22055 else 22056 apr_addto_bugger="$odbc_LDFLAGS" 22057 for i in $apr_addto_bugger; do 22058 apr_addto_duplicate="0" 22059 for j in $LDFLAGS; do 22060 if test "x$i" = "x$j"; then 22061 apr_addto_duplicate="1" 22062 break 22063 fi 22064 done 22065 if test $apr_addto_duplicate = "0"; then 22066 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 22067 LDFLAGS="$LDFLAGS $i" 22068 fi 22069 done 22070 fi 22071 22072 22073 if test "x$LIBS" = "x"; then 22074 test "x$silent" != "xyes" && echo " setting LIBS to \"$odbc_LIBS\"" 22075 LIBS="$odbc_LIBS" 22076 else 22077 apr_addto_bugger="$odbc_LIBS" 22078 for i in $apr_addto_bugger; do 22079 apr_addto_duplicate="0" 22080 for j in $LIBS; do 22081 if test "x$i" = "x$j"; then 22082 apr_addto_duplicate="1" 22083 break 22084 fi 22085 done 22086 if test $apr_addto_duplicate = "0"; then 22087 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 22088 LIBS="$LIBS $i" 22089 fi 22090 done 22091 fi 22092 22093 fi 22094 22095 for ac_header in sql.h 22096do : 22097 ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default" 22098if test "x$ac_cv_header_sql_h" = xyes; then : 22099 cat >>confdefs.h <<_ACEOF 22100#define HAVE_SQL_H 1 22101_ACEOF 22102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLAllocHandle in -lodbc" >&5 22103$as_echo_n "checking for SQLAllocHandle in -lodbc... " >&6; } 22104if ${ac_cv_lib_odbc_SQLAllocHandle+:} false; then : 22105 $as_echo_n "(cached) " >&6 22106else 22107 ac_check_lib_save_LIBS=$LIBS 22108LIBS="-lodbc $LIBS" 22109cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22110/* end confdefs.h. */ 22111 22112/* Override any GCC internal prototype to avoid an error. 22113 Use char because int might match the return type of a GCC 22114 builtin and then its argument prototype would still apply. */ 22115#ifdef __cplusplus 22116extern "C" 22117#endif 22118char SQLAllocHandle (); 22119int 22120main () 22121{ 22122return SQLAllocHandle (); 22123 ; 22124 return 0; 22125} 22126_ACEOF 22127if ac_fn_c_try_link "$LINENO"; then : 22128 ac_cv_lib_odbc_SQLAllocHandle=yes 22129else 22130 ac_cv_lib_odbc_SQLAllocHandle=no 22131fi 22132rm -f core conftest.err conftest.$ac_objext \ 22133 conftest$ac_exeext conftest.$ac_ext 22134LIBS=$ac_check_lib_save_LIBS 22135fi 22136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLAllocHandle" >&5 22137$as_echo "$ac_cv_lib_odbc_SQLAllocHandle" >&6; } 22138if test "x$ac_cv_lib_odbc_SQLAllocHandle" = xyes; then : 22139 apu_have_odbc=1 22140fi 22141 22142fi 22143 22144done 22145 22146 if test "$apu_have_odbc" = "0"; then 22147 for ac_header in odbc/sql.h 22148do : 22149 ac_fn_c_check_header_mongrel "$LINENO" "odbc/sql.h" "ac_cv_header_odbc_sql_h" "$ac_includes_default" 22150if test "x$ac_cv_header_odbc_sql_h" = xyes; then : 22151 cat >>confdefs.h <<_ACEOF 22152#define HAVE_ODBC_SQL_H 1 22153_ACEOF 22154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLAllocHandle in -lodbc" >&5 22155$as_echo_n "checking for SQLAllocHandle in -lodbc... " >&6; } 22156if ${ac_cv_lib_odbc_SQLAllocHandle+:} false; then : 22157 $as_echo_n "(cached) " >&6 22158else 22159 ac_check_lib_save_LIBS=$LIBS 22160LIBS="-lodbc $LIBS" 22161cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22162/* end confdefs.h. */ 22163 22164/* Override any GCC internal prototype to avoid an error. 22165 Use char because int might match the return type of a GCC 22166 builtin and then its argument prototype would still apply. */ 22167#ifdef __cplusplus 22168extern "C" 22169#endif 22170char SQLAllocHandle (); 22171int 22172main () 22173{ 22174return SQLAllocHandle (); 22175 ; 22176 return 0; 22177} 22178_ACEOF 22179if ac_fn_c_try_link "$LINENO"; then : 22180 ac_cv_lib_odbc_SQLAllocHandle=yes 22181else 22182 ac_cv_lib_odbc_SQLAllocHandle=no 22183fi 22184rm -f core conftest.err conftest.$ac_objext \ 22185 conftest$ac_exeext conftest.$ac_ext 22186LIBS=$ac_check_lib_save_LIBS 22187fi 22188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLAllocHandle" >&5 22189$as_echo "$ac_cv_lib_odbc_SQLAllocHandle" >&6; } 22190if test "x$ac_cv_lib_odbc_SQLAllocHandle" = xyes; then : 22191 apu_have_odbc=1 22192fi 22193 22194fi 22195 22196done 22197 22198 fi 22199 if test "$apu_have_odbc" != "0" && test "x$ODBC_CONFIG" != 'x'; then 22200 22201 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 22202 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"$odbc_CPPFLAGS\"" 22203 APRUTIL_PRIV_INCLUDES="$odbc_CPPFLAGS" 22204 else 22205 apr_addto_bugger="$odbc_CPPFLAGS" 22206 for i in $apr_addto_bugger; do 22207 apr_addto_duplicate="0" 22208 for j in $APRUTIL_PRIV_INCLUDES; do 22209 if test "x$i" = "x$j"; then 22210 apr_addto_duplicate="1" 22211 break 22212 fi 22213 done 22214 if test $apr_addto_duplicate = "0"; then 22215 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 22216 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 22217 fi 22218 done 22219 fi 22220 22221 fi 22222 elif test "$withval" = "no"; then 22223 : 22224 else 22225 # Extract the first word of "odbc_config", so it can be a program name with args. 22226set dummy odbc_config; ac_word=$2 22227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22228$as_echo_n "checking for $ac_word... " >&6; } 22229if ${ac_cv_path_ODBC_CONFIG+:} false; then : 22230 $as_echo_n "(cached) " >&6 22231else 22232 case $ODBC_CONFIG in 22233 [\\/]* | ?:[\\/]*) 22234 ac_cv_path_ODBC_CONFIG="$ODBC_CONFIG" # Let the user override the test with a path. 22235 ;; 22236 *) 22237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22238for as_dir in $withval/bin 22239do 22240 IFS=$as_save_IFS 22241 test -z "$as_dir" && as_dir=. 22242 for ac_exec_ext in '' $ac_executable_extensions; do 22243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22244 ac_cv_path_ODBC_CONFIG="$as_dir/$ac_word$ac_exec_ext" 22245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22246 break 2 22247 fi 22248done 22249 done 22250IFS=$as_save_IFS 22251 22252 ;; 22253esac 22254fi 22255ODBC_CONFIG=$ac_cv_path_ODBC_CONFIG 22256if test -n "$ODBC_CONFIG"; then 22257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODBC_CONFIG" >&5 22258$as_echo "$ODBC_CONFIG" >&6; } 22259else 22260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22261$as_echo "no" >&6; } 22262fi 22263 22264 22265 if test "x$ODBC_CONFIG" != 'x'; then 22266 odbc_CPPFLAGS="-I`$ODBC_CONFIG --include-prefix`" 22267 odbc_LDFLAGS="-L`$ODBC_CONFIG --lib-prefix`" 22268 odbc_LIBS="`$ODBC_CONFIG --libs`" 22269 else 22270 if test -f "$withval" && test -x "$withval"; then 22271 odbc_CPPFLAGS="-I`$withval --include-prefix`" 22272 odbc_LDFLAGS="-L`$withval --lib-prefix`" 22273 odbc_LIBS="`$withval --libs`" 22274 else 22275 odbc_CPPFLAGS="-I$withval/include" 22276 odbc_LDFLAGS="-L$withval/lib " 22277 fi 22278 fi 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 22344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for odbc in $withval" >&5 22345$as_echo "$as_me: checking for odbc in $withval" >&6;} 22346 for ac_header in sql.h 22347do : 22348 ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default" 22349if test "x$ac_cv_header_sql_h" = xyes; then : 22350 cat >>confdefs.h <<_ACEOF 22351#define HAVE_SQL_H 1 22352_ACEOF 22353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLAllocHandle in -lodbc" >&5 22354$as_echo_n "checking for SQLAllocHandle in -lodbc... " >&6; } 22355if ${ac_cv_lib_odbc_SQLAllocHandle+:} false; then : 22356 $as_echo_n "(cached) " >&6 22357else 22358 ac_check_lib_save_LIBS=$LIBS 22359LIBS="-lodbc $LIBS" 22360cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22361/* end confdefs.h. */ 22362 22363/* Override any GCC internal prototype to avoid an error. 22364 Use char because int might match the return type of a GCC 22365 builtin and then its argument prototype would still apply. */ 22366#ifdef __cplusplus 22367extern "C" 22368#endif 22369char SQLAllocHandle (); 22370int 22371main () 22372{ 22373return SQLAllocHandle (); 22374 ; 22375 return 0; 22376} 22377_ACEOF 22378if ac_fn_c_try_link "$LINENO"; then : 22379 ac_cv_lib_odbc_SQLAllocHandle=yes 22380else 22381 ac_cv_lib_odbc_SQLAllocHandle=no 22382fi 22383rm -f core conftest.err conftest.$ac_objext \ 22384 conftest$ac_exeext conftest.$ac_ext 22385LIBS=$ac_check_lib_save_LIBS 22386fi 22387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLAllocHandle" >&5 22388$as_echo "$ac_cv_lib_odbc_SQLAllocHandle" >&6; } 22389if test "x$ac_cv_lib_odbc_SQLAllocHandle" = xyes; then : 22390 apu_have_odbc=1 22391fi 22392 22393fi 22394 22395done 22396 22397 if test "$apu_have_odbc" = "0"; then 22398 for ac_header in odbc/sql.h 22399do : 22400 ac_fn_c_check_header_mongrel "$LINENO" "odbc/sql.h" "ac_cv_header_odbc_sql_h" "$ac_includes_default" 22401if test "x$ac_cv_header_odbc_sql_h" = xyes; then : 22402 cat >>confdefs.h <<_ACEOF 22403#define HAVE_ODBC_SQL_H 1 22404_ACEOF 22405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLAllocHandle in -lodbc" >&5 22406$as_echo_n "checking for SQLAllocHandle in -lodbc... " >&6; } 22407if ${ac_cv_lib_odbc_SQLAllocHandle+:} false; then : 22408 $as_echo_n "(cached) " >&6 22409else 22410 ac_check_lib_save_LIBS=$LIBS 22411LIBS="-lodbc $LIBS" 22412cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22413/* end confdefs.h. */ 22414 22415/* Override any GCC internal prototype to avoid an error. 22416 Use char because int might match the return type of a GCC 22417 builtin and then its argument prototype would still apply. */ 22418#ifdef __cplusplus 22419extern "C" 22420#endif 22421char SQLAllocHandle (); 22422int 22423main () 22424{ 22425return SQLAllocHandle (); 22426 ; 22427 return 0; 22428} 22429_ACEOF 22430if ac_fn_c_try_link "$LINENO"; then : 22431 ac_cv_lib_odbc_SQLAllocHandle=yes 22432else 22433 ac_cv_lib_odbc_SQLAllocHandle=no 22434fi 22435rm -f core conftest.err conftest.$ac_objext \ 22436 conftest$ac_exeext conftest.$ac_ext 22437LIBS=$ac_check_lib_save_LIBS 22438fi 22439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLAllocHandle" >&5 22440$as_echo "$ac_cv_lib_odbc_SQLAllocHandle" >&6; } 22441if test "x$ac_cv_lib_odbc_SQLAllocHandle" = xyes; then : 22442 apu_have_odbc=1 22443fi 22444 22445fi 22446 22447done 22448 22449 fi 22450 if test "$apu_have_odbc" != "0" && test "x$ODBC_CONFIG" != 'x'; then 22451 22452 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 22453 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"$odbc_CPPFLAGS\"" 22454 APRUTIL_PRIV_INCLUDES="$odbc_CPPFLAGS" 22455 else 22456 apr_addto_bugger="$odbc_CPPFLAGS" 22457 for i in $apr_addto_bugger; do 22458 apr_addto_duplicate="0" 22459 for j in $APRUTIL_PRIV_INCLUDES; do 22460 if test "x$i" = "x$j"; then 22461 apr_addto_duplicate="1" 22462 break 22463 fi 22464 done 22465 if test $apr_addto_duplicate = "0"; then 22466 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 22467 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 22468 fi 22469 done 22470 fi 22471 22472 fi 22473 fi 22474 22475else 22476 22477 # Extract the first word of "odbc_config", so it can be a program name with args. 22478set dummy odbc_config; ac_word=$2 22479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22480$as_echo_n "checking for $ac_word... " >&6; } 22481if ${ac_cv_path_ODBC_CONFIG+:} false; then : 22482 $as_echo_n "(cached) " >&6 22483else 22484 case $ODBC_CONFIG in 22485 [\\/]* | ?:[\\/]*) 22486 ac_cv_path_ODBC_CONFIG="$ODBC_CONFIG" # Let the user override the test with a path. 22487 ;; 22488 *) 22489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22490for as_dir in $PATH 22491do 22492 IFS=$as_save_IFS 22493 test -z "$as_dir" && as_dir=. 22494 for ac_exec_ext in '' $ac_executable_extensions; do 22495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22496 ac_cv_path_ODBC_CONFIG="$as_dir/$ac_word$ac_exec_ext" 22497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22498 break 2 22499 fi 22500done 22501 done 22502IFS=$as_save_IFS 22503 22504 ;; 22505esac 22506fi 22507ODBC_CONFIG=$ac_cv_path_ODBC_CONFIG 22508if test -n "$ODBC_CONFIG"; then 22509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODBC_CONFIG" >&5 22510$as_echo "$ODBC_CONFIG" >&6; } 22511else 22512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22513$as_echo "no" >&6; } 22514fi 22515 22516 22517 if test "x$ODBC_CONFIG" != 'x'; then 22518 odbc_CPPFLAGS="-I`$ODBC_CONFIG --include-prefix`" 22519 odbc_LDFLAGS="-L`$ODBC_CONFIG --lib-prefix`" 22520 odbc_LIBS="`$ODBC_CONFIG --libs`" 22521 22522 22523 if test "x$CPPFLAGS" = "x"; then 22524 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$odbc_CPPFLAGS\"" 22525 CPPFLAGS="$odbc_CPPFLAGS" 22526 else 22527 apr_addto_bugger="$odbc_CPPFLAGS" 22528 for i in $apr_addto_bugger; do 22529 apr_addto_duplicate="0" 22530 for j in $CPPFLAGS; do 22531 if test "x$i" = "x$j"; then 22532 apr_addto_duplicate="1" 22533 break 22534 fi 22535 done 22536 if test $apr_addto_duplicate = "0"; then 22537 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 22538 CPPFLAGS="$CPPFLAGS $i" 22539 fi 22540 done 22541 fi 22542 22543 22544 if test "x$LDFLAGS" = "x"; then 22545 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$odbc_LDFLAGS\"" 22546 LDFLAGS="$odbc_LDFLAGS" 22547 else 22548 apr_addto_bugger="$odbc_LDFLAGS" 22549 for i in $apr_addto_bugger; do 22550 apr_addto_duplicate="0" 22551 for j in $LDFLAGS; do 22552 if test "x$i" = "x$j"; then 22553 apr_addto_duplicate="1" 22554 break 22555 fi 22556 done 22557 if test $apr_addto_duplicate = "0"; then 22558 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 22559 LDFLAGS="$LDFLAGS $i" 22560 fi 22561 done 22562 fi 22563 22564 22565 if test "x$LIBS" = "x"; then 22566 test "x$silent" != "xyes" && echo " setting LIBS to \"$odbc_LIBS\"" 22567 LIBS="$odbc_LIBS" 22568 else 22569 apr_addto_bugger="$odbc_LIBS" 22570 for i in $apr_addto_bugger; do 22571 apr_addto_duplicate="0" 22572 for j in $LIBS; do 22573 if test "x$i" = "x$j"; then 22574 apr_addto_duplicate="1" 22575 break 22576 fi 22577 done 22578 if test $apr_addto_duplicate = "0"; then 22579 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 22580 LIBS="$LIBS $i" 22581 fi 22582 done 22583 fi 22584 22585 fi 22586 22587 for ac_header in sql.h 22588do : 22589 ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default" 22590if test "x$ac_cv_header_sql_h" = xyes; then : 22591 cat >>confdefs.h <<_ACEOF 22592#define HAVE_SQL_H 1 22593_ACEOF 22594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLAllocHandle in -lodbc" >&5 22595$as_echo_n "checking for SQLAllocHandle in -lodbc... " >&6; } 22596if ${ac_cv_lib_odbc_SQLAllocHandle+:} false; then : 22597 $as_echo_n "(cached) " >&6 22598else 22599 ac_check_lib_save_LIBS=$LIBS 22600LIBS="-lodbc $LIBS" 22601cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22602/* end confdefs.h. */ 22603 22604/* Override any GCC internal prototype to avoid an error. 22605 Use char because int might match the return type of a GCC 22606 builtin and then its argument prototype would still apply. */ 22607#ifdef __cplusplus 22608extern "C" 22609#endif 22610char SQLAllocHandle (); 22611int 22612main () 22613{ 22614return SQLAllocHandle (); 22615 ; 22616 return 0; 22617} 22618_ACEOF 22619if ac_fn_c_try_link "$LINENO"; then : 22620 ac_cv_lib_odbc_SQLAllocHandle=yes 22621else 22622 ac_cv_lib_odbc_SQLAllocHandle=no 22623fi 22624rm -f core conftest.err conftest.$ac_objext \ 22625 conftest$ac_exeext conftest.$ac_ext 22626LIBS=$ac_check_lib_save_LIBS 22627fi 22628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLAllocHandle" >&5 22629$as_echo "$ac_cv_lib_odbc_SQLAllocHandle" >&6; } 22630if test "x$ac_cv_lib_odbc_SQLAllocHandle" = xyes; then : 22631 apu_have_odbc=1 22632fi 22633 22634fi 22635 22636done 22637 22638 if test "$apu_have_odbc" = "0"; then 22639 for ac_header in odbc/sql.h 22640do : 22641 ac_fn_c_check_header_mongrel "$LINENO" "odbc/sql.h" "ac_cv_header_odbc_sql_h" "$ac_includes_default" 22642if test "x$ac_cv_header_odbc_sql_h" = xyes; then : 22643 cat >>confdefs.h <<_ACEOF 22644#define HAVE_ODBC_SQL_H 1 22645_ACEOF 22646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLAllocHandle in -lodbc" >&5 22647$as_echo_n "checking for SQLAllocHandle in -lodbc... " >&6; } 22648if ${ac_cv_lib_odbc_SQLAllocHandle+:} false; then : 22649 $as_echo_n "(cached) " >&6 22650else 22651 ac_check_lib_save_LIBS=$LIBS 22652LIBS="-lodbc $LIBS" 22653cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22654/* end confdefs.h. */ 22655 22656/* Override any GCC internal prototype to avoid an error. 22657 Use char because int might match the return type of a GCC 22658 builtin and then its argument prototype would still apply. */ 22659#ifdef __cplusplus 22660extern "C" 22661#endif 22662char SQLAllocHandle (); 22663int 22664main () 22665{ 22666return SQLAllocHandle (); 22667 ; 22668 return 0; 22669} 22670_ACEOF 22671if ac_fn_c_try_link "$LINENO"; then : 22672 ac_cv_lib_odbc_SQLAllocHandle=yes 22673else 22674 ac_cv_lib_odbc_SQLAllocHandle=no 22675fi 22676rm -f core conftest.err conftest.$ac_objext \ 22677 conftest$ac_exeext conftest.$ac_ext 22678LIBS=$ac_check_lib_save_LIBS 22679fi 22680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLAllocHandle" >&5 22681$as_echo "$ac_cv_lib_odbc_SQLAllocHandle" >&6; } 22682if test "x$ac_cv_lib_odbc_SQLAllocHandle" = xyes; then : 22683 apu_have_odbc=1 22684fi 22685 22686fi 22687 22688done 22689 22690 fi 22691 if test "$apu_have_odbc" != "0" && test "x$ODBC_CONFIG" != 'x'; then 22692 22693 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 22694 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"$odbc_CPPFLAGS\"" 22695 APRUTIL_PRIV_INCLUDES="$odbc_CPPFLAGS" 22696 else 22697 apr_addto_bugger="$odbc_CPPFLAGS" 22698 for i in $apr_addto_bugger; do 22699 apr_addto_duplicate="0" 22700 for j in $APRUTIL_PRIV_INCLUDES; do 22701 if test "x$i" = "x$j"; then 22702 apr_addto_duplicate="1" 22703 break 22704 fi 22705 done 22706 if test $apr_addto_duplicate = "0"; then 22707 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 22708 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 22709 fi 22710 done 22711 fi 22712 22713 fi 22714 22715fi 22716 22717 22718 if test "$apu_have_odbc" = "1"; then 22719 22720 if test "x$LDADD_dbd_odbc" = "x"; then 22721 test "x$silent" != "xyes" && echo " setting LDADD_dbd_odbc to \"$odbc_LDFLAGS -lodbc $odbc_LIBS\"" 22722 LDADD_dbd_odbc="$odbc_LDFLAGS -lodbc $odbc_LIBS" 22723 else 22724 apr_addto_bugger="$odbc_LDFLAGS -lodbc $odbc_LIBS" 22725 for i in $apr_addto_bugger; do 22726 apr_addto_duplicate="0" 22727 for j in $LDADD_dbd_odbc; do 22728 if test "x$i" = "x$j"; then 22729 apr_addto_duplicate="1" 22730 break 22731 fi 22732 done 22733 if test $apr_addto_duplicate = "0"; then 22734 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbd_odbc" 22735 LDADD_dbd_odbc="$LDADD_dbd_odbc $i" 22736 fi 22737 done 22738 fi 22739 22740 fi 22741 22742 22743 LIBS="$old_libs" 22744 CPPFLAGS="$old_cppflags" 22745 LDFLAGS="$old_ldflags" 22746 22747 apu_dbd_tests="" 22748 test $apu_have_oracle = 1 && apu_dbd_tests="$apu_dbd_tests oracle" 22749 test $apu_have_pgsql = 1 && apu_dbd_tests="$apu_dbd_tests pgsql" 22750 test $apu_have_mysql = 1 && apu_dbd_tests="$apu_dbd_tests mysql" 22751 test $apu_have_sqlite2 = 1 && apu_dbd_tests="$apu_dbd_tests sqlite2" 22752 test $apu_have_sqlite3 = 1 && apu_dbd_tests="$apu_dbd_tests sqlite3" 22753 test $apu_have_freetds = 1 && apu_dbd_tests="$apu_dbd_tests freetds" 22754 test $apu_have_odbc = 1 && apu_dbd_tests="$apu_dbd_tests odbc" 22755 22756 22757 22758 22759save_cppflags="$CPPFLAGS" 22760save_ldflags="$LDFLAGS" 22761 22762apu_has_expat=0 22763 22764# Default: will use either external or bundled expat. 22765apu_try_external_expat=1 22766apu_try_builtin_expat=1 22767 22768 22769# Check whether --with-expat was given. 22770if test "${with_expat+set}" = set; then : 22771 withval=$with_expat; 22772 if test "$withval" = "yes"; then 22773 as_fn_error $? "a directory must be specified for --with-expat" "$LINENO" 5 22774 elif test "$withval" = "no"; then 22775 as_fn_error $? "Expat cannot be disabled (at this time)" "$LINENO" 5 22776 elif test "$withval" = "builtin"; then 22777 apu_try_external_expat=0 22778 else 22779 # Add given path to standard search paths if appropriate: 22780 if test "$withval" != "/usr"; then 22781 22782 if test "x$LDFLAGS" = "x"; then 22783 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-L$withval/lib\"" 22784 LDFLAGS="-L$withval/lib" 22785 else 22786 apr_addto_bugger="-L$withval/lib" 22787 for i in $apr_addto_bugger; do 22788 apr_addto_duplicate="0" 22789 for j in $LDFLAGS; do 22790 if test "x$i" = "x$j"; then 22791 apr_addto_duplicate="1" 22792 break 22793 fi 22794 done 22795 if test $apr_addto_duplicate = "0"; then 22796 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 22797 LDFLAGS="$LDFLAGS $i" 22798 fi 22799 done 22800 fi 22801 22802 22803 if test "x$CPPFLAGS" = "x"; then 22804 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-I$withval/include\"" 22805 CPPFLAGS="-I$withval/include" 22806 else 22807 apr_addto_bugger="-I$withval/include" 22808 for i in $apr_addto_bugger; do 22809 apr_addto_duplicate="0" 22810 for j in $CPPFLAGS; do 22811 if test "x$i" = "x$j"; then 22812 apr_addto_duplicate="1" 22813 break 22814 fi 22815 done 22816 if test $apr_addto_duplicate = "0"; then 22817 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 22818 CPPFLAGS="$CPPFLAGS $i" 22819 fi 22820 done 22821 fi 22822 22823 22824 if test "x$APRUTIL_INCLUDES" = "x"; then 22825 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$withval/include\"" 22826 APRUTIL_INCLUDES="-I$withval/include" 22827 else 22828 apr_addto_bugger="-I$withval/include" 22829 for i in $apr_addto_bugger; do 22830 apr_addto_duplicate="0" 22831 for j in $APRUTIL_INCLUDES; do 22832 if test "x$i" = "x$j"; then 22833 apr_addto_duplicate="1" 22834 break 22835 fi 22836 done 22837 if test $apr_addto_duplicate = "0"; then 22838 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 22839 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 22840 fi 22841 done 22842 fi 22843 22844 22845 if test "x$APRUTIL_LDFLAGS" = "x"; then 22846 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$withval/lib\"" 22847 APRUTIL_LDFLAGS="-L$withval/lib" 22848 else 22849 apr_addto_bugger="-L$withval/lib" 22850 for i in $apr_addto_bugger; do 22851 apr_addto_duplicate="0" 22852 for j in $APRUTIL_LDFLAGS; do 22853 if test "x$i" = "x$j"; then 22854 apr_addto_duplicate="1" 22855 break 22856 fi 22857 done 22858 if test $apr_addto_duplicate = "0"; then 22859 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 22860 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 22861 fi 22862 done 22863 fi 22864 22865 fi 22866 # ...and refuse to fall back on the builtin expat. 22867 apu_try_builtin_expat=0 22868 fi 22869 22870fi 22871 22872 22873if test $apu_try_external_expat = 1; then 22874 22875 22876 22877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Expat 1.95.x" >&5 22878$as_echo_n "checking Expat 1.95.x... " >&6; } 22879if ${apu_cv_expat_system+:} false; then : 22880 $as_echo_n "(cached) " >&6 22881else 22882 22883 apu_expat_LIBS=$LIBS 22884 LIBS="$LIBS -lexpat" 22885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22886/* end confdefs.h. */ 22887#include <stdlib.h> 22888#include <expat.h> 22889int 22890main () 22891{ 22892XML_ParserCreate(NULL); 22893 ; 22894 return 0; 22895} 22896_ACEOF 22897if ac_fn_c_try_link "$LINENO"; then : 22898 apu_cv_expat_system=yes 22899else 22900 apu_cv_expat_system=no 22901fi 22902rm -f core conftest.err conftest.$ac_objext \ 22903 conftest$ac_exeext conftest.$ac_ext 22904 LIBS=$apu_expat_LIBS 22905 22906fi 22907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_cv_expat_system" >&5 22908$as_echo "$apu_cv_expat_system" >&6; } 22909 22910if test $apu_cv_expat_system = yes; then 22911 22912$as_echo "#define HAVE_EXPAT_H 1" >>confdefs.h 22913 22914 apu_expat_libs="-lexpat" 22915 apu_has_expat=1 22916 22917else 22918 apu_has_expat=0 22919 22920fi 22921 22922 22923 if test $apu_has_expat = 0; then 22924 22925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking old Debian-packaged expat" >&5 22926$as_echo_n "checking old Debian-packaged expat... " >&6; } 22927if ${apu_cv_expat_debian+:} false; then : 22928 $as_echo_n "(cached) " >&6 22929else 22930 22931 apu_expat_LIBS=$LIBS 22932 LIBS="$LIBS -lxmlparse -lxmltok" 22933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22934/* end confdefs.h. */ 22935#include <stdlib.h> 22936#include <xmltok/xmlparse.h> 22937int 22938main () 22939{ 22940XML_ParserCreate(NULL); 22941 ; 22942 return 0; 22943} 22944_ACEOF 22945if ac_fn_c_try_link "$LINENO"; then : 22946 apu_cv_expat_debian=yes 22947else 22948 apu_cv_expat_debian=no 22949fi 22950rm -f core conftest.err conftest.$ac_objext \ 22951 conftest$ac_exeext conftest.$ac_ext 22952 LIBS=$apu_expat_LIBS 22953 22954fi 22955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_cv_expat_debian" >&5 22956$as_echo "$apu_cv_expat_debian" >&6; } 22957 22958if test $apu_cv_expat_debian = yes; then 22959 22960$as_echo "#define HAVE_XMLTOK_XMLPARSE_H 1" >>confdefs.h 22961 22962 apu_expat_libs="-lxmlparse -lxmltok" 22963 apu_has_expat=1 22964 22965else 22966 apu_has_expat=0 22967 22968fi 22969 22970 fi 22971 22972 if test $apu_has_expat = 0; then 22973 22974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking old FreeBSD-packaged expat" >&5 22975$as_echo_n "checking old FreeBSD-packaged expat... " >&6; } 22976if ${apu_cv_expat_freebsd+:} false; then : 22977 $as_echo_n "(cached) " >&6 22978else 22979 22980 apu_expat_LIBS=$LIBS 22981 LIBS="$LIBS -lexpat" 22982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22983/* end confdefs.h. */ 22984#include <stdlib.h> 22985#include <xml/xmlparse.h> 22986int 22987main () 22988{ 22989XML_ParserCreate(NULL); 22990 ; 22991 return 0; 22992} 22993_ACEOF 22994if ac_fn_c_try_link "$LINENO"; then : 22995 apu_cv_expat_freebsd=yes 22996else 22997 apu_cv_expat_freebsd=no 22998fi 22999rm -f core conftest.err conftest.$ac_objext \ 23000 conftest$ac_exeext conftest.$ac_ext 23001 LIBS=$apu_expat_LIBS 23002 23003fi 23004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_cv_expat_freebsd" >&5 23005$as_echo "$apu_cv_expat_freebsd" >&6; } 23006 23007if test $apu_cv_expat_freebsd = yes; then 23008 23009$as_echo "#define HAVE_XML_XMLPARSE_H 1" >>confdefs.h 23010 23011 apu_expat_libs="-lexpat" 23012 apu_has_expat=1 23013 23014else 23015 apu_has_expat=0 23016 23017fi 23018 23019 fi 23020 23021 if test $apu_has_expat = 0; then 23022 23023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Expat 1.0/1.1" >&5 23024$as_echo_n "checking Expat 1.0/1.1... " >&6; } 23025if ${apu_cv_expat_1011+:} false; then : 23026 $as_echo_n "(cached) " >&6 23027else 23028 23029 apu_expat_LIBS=$LIBS 23030 LIBS="$LIBS -lexpat" 23031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23032/* end confdefs.h. */ 23033#include <stdlib.h> 23034#include <xmlparse/xmlparse.h> 23035int 23036main () 23037{ 23038XML_ParserCreate(NULL); 23039 ; 23040 return 0; 23041} 23042_ACEOF 23043if ac_fn_c_try_link "$LINENO"; then : 23044 apu_cv_expat_1011=yes 23045else 23046 apu_cv_expat_1011=no 23047fi 23048rm -f core conftest.err conftest.$ac_objext \ 23049 conftest$ac_exeext conftest.$ac_ext 23050 LIBS=$apu_expat_LIBS 23051 23052fi 23053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_cv_expat_1011" >&5 23054$as_echo "$apu_cv_expat_1011" >&6; } 23055 23056if test $apu_cv_expat_1011 = yes; then 23057 23058$as_echo "#define HAVE_XMLPARSE_XMLPARSE_H 1" >>confdefs.h 23059 23060 apu_expat_libs="-lexpat" 23061 apu_has_expat=1 23062 23063else 23064 apu_has_expat=0 23065 23066fi 23067 23068 fi 23069 23070 if test $apu_has_expat = 0; then 23071 23072 if test "x$LDFLAGS" = "x"; then 23073 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-L/usr/local/lib\"" 23074 LDFLAGS="-L/usr/local/lib" 23075 else 23076 apr_addto_bugger="-L/usr/local/lib" 23077 for i in $apr_addto_bugger; do 23078 apr_addto_duplicate="0" 23079 for j in $LDFLAGS; do 23080 if test "x$i" = "x$j"; then 23081 apr_addto_duplicate="1" 23082 break 23083 fi 23084 done 23085 if test $apr_addto_duplicate = "0"; then 23086 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 23087 LDFLAGS="$LDFLAGS $i" 23088 fi 23089 done 23090 fi 23091 23092 23093 if test "x$CPPFLAGS" = "x"; then 23094 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-I/usr/local/include\"" 23095 CPPFLAGS="-I/usr/local/include" 23096 else 23097 apr_addto_bugger="-I/usr/local/include" 23098 for i in $apr_addto_bugger; do 23099 apr_addto_duplicate="0" 23100 for j in $CPPFLAGS; do 23101 if test "x$i" = "x$j"; then 23102 apr_addto_duplicate="1" 23103 break 23104 fi 23105 done 23106 if test $apr_addto_duplicate = "0"; then 23107 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 23108 CPPFLAGS="$CPPFLAGS $i" 23109 fi 23110 done 23111 fi 23112 23113 23114 23115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Expat 1.95.x in /usr/local" >&5 23116$as_echo_n "checking Expat 1.95.x in /usr/local... " >&6; } 23117if ${apu_cv_expat_usrlocal+:} false; then : 23118 $as_echo_n "(cached) " >&6 23119else 23120 23121 apu_expat_LIBS=$LIBS 23122 LIBS="$LIBS -lexpat" 23123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23124/* end confdefs.h. */ 23125#include <stdlib.h> 23126#include <expat.h> 23127int 23128main () 23129{ 23130XML_ParserCreate(NULL); 23131 ; 23132 return 0; 23133} 23134_ACEOF 23135if ac_fn_c_try_link "$LINENO"; then : 23136 apu_cv_expat_usrlocal=yes 23137else 23138 apu_cv_expat_usrlocal=no 23139fi 23140rm -f core conftest.err conftest.$ac_objext \ 23141 conftest$ac_exeext conftest.$ac_ext 23142 LIBS=$apu_expat_LIBS 23143 23144fi 23145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_cv_expat_usrlocal" >&5 23146$as_echo "$apu_cv_expat_usrlocal" >&6; } 23147 23148if test $apu_cv_expat_usrlocal = yes; then 23149 23150$as_echo "#define HAVE_EXPAT_H 1" >>confdefs.h 23151 23152 apu_expat_libs="-lexpat" 23153 apu_has_expat=1 23154 23155 if test "x$APRUTIL_INCLUDES" = "x"; then 23156 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I/usr/local/include\"" 23157 APRUTIL_INCLUDES="-I/usr/local/include" 23158 else 23159 apr_addto_bugger="-I/usr/local/include" 23160 for i in $apr_addto_bugger; do 23161 apr_addto_duplicate="0" 23162 for j in $APRUTIL_INCLUDES; do 23163 if test "x$i" = "x$j"; then 23164 apr_addto_duplicate="1" 23165 break 23166 fi 23167 done 23168 if test $apr_addto_duplicate = "0"; then 23169 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 23170 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 23171 fi 23172 done 23173 fi 23174 23175 23176 if test "x$APRUTIL_LDFLAGS" = "x"; then 23177 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L/usr/local/lib\"" 23178 APRUTIL_LDFLAGS="-L/usr/local/lib" 23179 else 23180 apr_addto_bugger="-L/usr/local/lib" 23181 for i in $apr_addto_bugger; do 23182 apr_addto_duplicate="0" 23183 for j in $APRUTIL_LDFLAGS; do 23184 if test "x$i" = "x$j"; then 23185 apr_addto_duplicate="1" 23186 break 23187 fi 23188 done 23189 if test $apr_addto_duplicate = "0"; then 23190 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 23191 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 23192 fi 23193 done 23194 fi 23195 23196else 23197 apu_has_expat=0 23198 23199 23200 if test "x$LDFLAGS" = "x-L/usr/local/lib"; then 23201 test "x$silent" != "xyes" && echo " nulling LDFLAGS" 23202 LDFLAGS="" 23203 else 23204 apr_new_bugger="" 23205 apr_removed=0 23206 for i in $LDFLAGS; do 23207 if test "x$i" != "x-L/usr/local/lib"; then 23208 apr_new_bugger="$apr_new_bugger $i" 23209 else 23210 apr_removed=1 23211 fi 23212 done 23213 if test $apr_removed = "1"; then 23214 test "x$silent" != "xyes" && echo " removed \"-L/usr/local/lib\" from LDFLAGS" 23215 LDFLAGS=$apr_new_bugger 23216 fi 23217 fi 23218 23219 23220 if test "x$CPPFLAGS" = "x-I/usr/local/include"; then 23221 test "x$silent" != "xyes" && echo " nulling CPPFLAGS" 23222 CPPFLAGS="" 23223 else 23224 apr_new_bugger="" 23225 apr_removed=0 23226 for i in $CPPFLAGS; do 23227 if test "x$i" != "x-I/usr/local/include"; then 23228 apr_new_bugger="$apr_new_bugger $i" 23229 else 23230 apr_removed=1 23231 fi 23232 done 23233 if test $apr_removed = "1"; then 23234 test "x$silent" != "xyes" && echo " removed \"-I/usr/local/include\" from CPPFLAGS" 23235 CPPFLAGS=$apr_new_bugger 23236 fi 23237 fi 23238 23239 23240fi 23241 23242 fi 23243 23244fi 23245 23246if test "${apu_has_expat}${apu_try_builtin_expat}" = "01"; then 23247 bundled_subdir="xml/expat" 23248 23249 # save our work to this point; this allows the sub-package to use it 23250 cat >confcache <<\_ACEOF 23251# This file is a shell script that caches the results of configure 23252# tests run on this system so they can be shared between configure 23253# scripts and configure runs, see configure's option --config-cache. 23254# It is not useful on other systems. If it contains results you don't 23255# want to keep, you may remove or edit it. 23256# 23257# config.status only pays attention to the cache file if you give it 23258# the --recheck option to rerun configure. 23259# 23260# `ac_cv_env_foo' variables (set or unset) will be overridden when 23261# loading this file, other *unset* `ac_cv_foo' will be assigned the 23262# following values. 23263 23264_ACEOF 23265 23266# The following way of writing the cache mishandles newlines in values, 23267# but we know of no workaround that is simple, portable, and efficient. 23268# So, we kill variables containing newlines. 23269# Ultrix sh set writes to stderr and can't be redirected directly, 23270# and sets the high bit in the cache file unless we assign to the vars. 23271( 23272 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 23273 eval ac_val=\$$ac_var 23274 case $ac_val in #( 23275 *${as_nl}*) 23276 case $ac_var in #( 23277 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 23278$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 23279 esac 23280 case $ac_var in #( 23281 _ | IFS | as_nl) ;; #( 23282 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 23283 *) { eval $ac_var=; unset $ac_var;} ;; 23284 esac ;; 23285 esac 23286 done 23287 23288 (set) 2>&1 | 23289 case $as_nl`(ac_space=' '; set) 2>&1` in #( 23290 *${as_nl}ac_space=\ *) 23291 # `set' does not quote correctly, so add quotes: double-quote 23292 # substitution turns \\\\ into \\, and sed turns \\ into \. 23293 sed -n \ 23294 "s/'/'\\\\''/g; 23295 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 23296 ;; #( 23297 *) 23298 # `set' quotes correctly as required by POSIX, so do not add quotes. 23299 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 23300 ;; 23301 esac | 23302 sort 23303) | 23304 sed ' 23305 /^ac_cv_env_/b end 23306 t clear 23307 :clear 23308 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 23309 t end 23310 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 23311 :end' >>confcache 23312if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 23313 if test -w "$cache_file"; then 23314 if test "x$cache_file" != "x/dev/null"; then 23315 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 23316$as_echo "$as_me: updating cache $cache_file" >&6;} 23317 if test ! -f "$cache_file" || test -h "$cache_file"; then 23318 cat confcache >"$cache_file" 23319 else 23320 case $cache_file in #( 23321 */* | ?:*) 23322 mv -f confcache "$cache_file"$$ && 23323 mv -f "$cache_file"$$ "$cache_file" ;; #( 23324 *) 23325 mv -f confcache "$cache_file" ;; 23326 esac 23327 fi 23328 fi 23329 else 23330 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 23331$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 23332 fi 23333fi 23334rm -f confcache 23335 23336 echo "configuring package in $bundled_subdir now" 23337 ac_popdir=`pwd` 23338 apr_config_subdirs="$bundled_subdir" 23339 test -d $bundled_subdir || $mkdir_p $bundled_subdir 23340 ac_abs_srcdir=`(cd $srcdir/$bundled_subdir && pwd)` 23341 cd $bundled_subdir 23342 23343 # A "../" for each directory in /$config_subdirs. 23344 ac_dots=`echo $apr_config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` 23345 23346 # Make the cache file pathname absolute for the subdirs 23347 # required to correctly handle subdirs that might actually 23348 # be symlinks 23349 case "$cache_file" in 23350 /*) # already absolute 23351 ac_sub_cache_file=$cache_file ;; 23352 *) # Was relative path. 23353 ac_sub_cache_file="$ac_popdir/$cache_file" ;; 23354 esac 23355 23356 apr_configure_args=$ac_configure_args 23357 23358 test "x$silent" = "xyes" && apr_configure_args="$apr_configure_args --silent" 23359 23360 apr_configure_args="--disable-option-checking $apr_configure_args" 23361 23362 if eval $SHELL $ac_abs_srcdir/configure $apr_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_abs_srcdir --prefix=$prefix --exec-prefix=$exec_prefix --libdir=$libdir --includedir=$includedir --bindir=$bindir 23363 then : 23364 echo "$bundled_subdir configured properly" 23365 else 23366 echo "configure failed for $bundled_subdir" 23367 exit 1 23368 fi 23369 23370 cd $ac_popdir 23371 23372 # grab any updates from the sub-package 23373 if test -r "$cache_file"; then 23374 # Some versions of bash will fail to source /dev/null (special files 23375 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 23376 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 23377 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 23378$as_echo "$as_me: loading cache $cache_file" >&6;} 23379 case $cache_file in 23380 [\\/]* | ?:[\\/]* ) . "$cache_file";; 23381 *) . "./$cache_file";; 23382 esac 23383 fi 23384else 23385 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 23386$as_echo "$as_me: creating cache $cache_file" >&6;} 23387 >$cache_file 23388fi 23389 23390 23391 23392 if test "x$APRUTIL_INCLUDES" = "x"; then 23393 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$abs_srcdir/$bundled_subdir/lib\"" 23394 APRUTIL_INCLUDES="-I$abs_srcdir/$bundled_subdir/lib" 23395 else 23396 apr_addto_bugger="-I$abs_srcdir/$bundled_subdir/lib" 23397 for i in $apr_addto_bugger; do 23398 apr_addto_duplicate="0" 23399 for j in $APRUTIL_INCLUDES; do 23400 if test "x$i" = "x$j"; then 23401 apr_addto_duplicate="1" 23402 break 23403 fi 23404 done 23405 if test $apr_addto_duplicate = "0"; then 23406 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 23407 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 23408 fi 23409 done 23410 fi 23411 23412 23413 if test "x$LDFLAGS" = "x"; then 23414 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-L$top_builddir/$bundled_subdir/lib\"" 23415 LDFLAGS="-L$top_builddir/$bundled_subdir/lib" 23416 else 23417 apr_addto_bugger="-L$top_builddir/$bundled_subdir/lib" 23418 for i in $apr_addto_bugger; do 23419 apr_addto_duplicate="0" 23420 for j in $LDFLAGS; do 23421 if test "x$i" = "x$j"; then 23422 apr_addto_duplicate="1" 23423 break 23424 fi 23425 done 23426 if test $apr_addto_duplicate = "0"; then 23427 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 23428 LDFLAGS="$LDFLAGS $i" 23429 fi 23430 done 23431 fi 23432 23433 apu_expat_libs="$top_builddir/$bundled_subdir/libexpat.la" 23434fi 23435 23436 23437 if test "x$APRUTIL_EXPORT_LIBS" = "x"; then 23438 test "x$silent" != "xyes" && echo " setting APRUTIL_EXPORT_LIBS to \"$apu_expat_libs\"" 23439 APRUTIL_EXPORT_LIBS="$apu_expat_libs" 23440 else 23441 apr_addto_bugger="$apu_expat_libs" 23442 for i in $apr_addto_bugger; do 23443 apr_addto_duplicate="0" 23444 for j in $APRUTIL_EXPORT_LIBS; do 23445 if test "x$i" = "x$j"; then 23446 apr_addto_duplicate="1" 23447 break 23448 fi 23449 done 23450 if test $apr_addto_duplicate = "0"; then 23451 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_EXPORT_LIBS" 23452 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i" 23453 fi 23454 done 23455 fi 23456 23457 23458 if test "x$APRUTIL_LIBS" = "x"; then 23459 test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"$apu_expat_libs\"" 23460 APRUTIL_LIBS="$apu_expat_libs" 23461 else 23462 apr_addto_bugger="$apu_expat_libs" 23463 for i in $apr_addto_bugger; do 23464 apr_addto_duplicate="0" 23465 for j in $APRUTIL_LIBS; do 23466 if test "x$i" = "x$j"; then 23467 apr_addto_duplicate="1" 23468 break 23469 fi 23470 done 23471 if test $apr_addto_duplicate = "0"; then 23472 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS" 23473 APRUTIL_LIBS="$APRUTIL_LIBS $i" 23474 fi 23475 done 23476 fi 23477 23478 23479APR_XML_DIR=$bundled_subdir 23480 23481 23482CPPFLAGS=$save_cppflags 23483LDFLAGS=$save_ldflags 23484 23485 23486 23487apu_iconv_dir="unknown" 23488have_apr_iconv="0" 23489want_iconv="1" 23490 23491# Check whether --with-iconv was given. 23492if test "${with_iconv+set}" = set; then : 23493 withval=$with_iconv; apu_iconv_dir="$withval" 23494 if test "$apu_iconv_dir" = "no"; then 23495 have_apr_iconv="0" 23496 have_iconv="0" 23497 want_iconv="0" 23498 elif test "$apu_iconv_dir" != "yes"; then 23499 if test -f "$apu_iconv_dir/include/apr-1/api_version.h"; then 23500 have_apr_iconv="1" 23501 have_iconv="0" 23502 23503 if test "x$APRUTIL_INCLUDES" = "x"; then 23504 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$apu_iconv_dir/include/apr-1\"" 23505 APRUTIL_INCLUDES="-I$apu_iconv_dir/include/apr-1" 23506 else 23507 apr_addto_bugger="-I$apu_iconv_dir/include/apr-1" 23508 for i in $apr_addto_bugger; do 23509 apr_addto_duplicate="0" 23510 for j in $APRUTIL_INCLUDES; do 23511 if test "x$i" = "x$j"; then 23512 apr_addto_duplicate="1" 23513 break 23514 fi 23515 done 23516 if test $apr_addto_duplicate = "0"; then 23517 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 23518 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 23519 fi 23520 done 23521 fi 23522 23523 23524 if test "x$APRUTIL_LIBS" = "x"; then 23525 test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"$apu_iconv_dir/lib/libapriconv-1.la\"" 23526 APRUTIL_LIBS="$apu_iconv_dir/lib/libapriconv-1.la" 23527 else 23528 apr_addto_bugger="$apu_iconv_dir/lib/libapriconv-1.la" 23529 for i in $apr_addto_bugger; do 23530 apr_addto_duplicate="0" 23531 for j in $APRUTIL_LIBS; do 23532 if test "x$i" = "x$j"; then 23533 apr_addto_duplicate="1" 23534 break 23535 fi 23536 done 23537 if test $apr_addto_duplicate = "0"; then 23538 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS" 23539 APRUTIL_LIBS="$APRUTIL_LIBS $i" 23540 fi 23541 done 23542 fi 23543 23544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using apr-iconv" >&5 23545$as_echo "using apr-iconv" >&6; } 23546 elif test -f "$apu_iconv_dir/include/iconv.h"; then 23547 have_apr_iconv="0" 23548 have_iconv="1" 23549 23550 if test "x$CPPFLAGS" = "x"; then 23551 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-I$apu_iconv_dir/include\"" 23552 CPPFLAGS="-I$apu_iconv_dir/include" 23553 else 23554 apr_addto_bugger="-I$apu_iconv_dir/include" 23555 for i in $apr_addto_bugger; do 23556 apr_addto_duplicate="0" 23557 for j in $CPPFLAGS; do 23558 if test "x$i" = "x$j"; then 23559 apr_addto_duplicate="1" 23560 break 23561 fi 23562 done 23563 if test $apr_addto_duplicate = "0"; then 23564 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 23565 CPPFLAGS="$CPPFLAGS $i" 23566 fi 23567 done 23568 fi 23569 23570 23571 if test "x$LDFLAGS" = "x"; then 23572 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-L$apu_iconv_dir/lib\"" 23573 LDFLAGS="-L$apu_iconv_dir/lib" 23574 else 23575 apr_addto_bugger="-L$apu_iconv_dir/lib" 23576 for i in $apr_addto_bugger; do 23577 apr_addto_duplicate="0" 23578 for j in $LDFLAGS; do 23579 if test "x$i" = "x$j"; then 23580 apr_addto_duplicate="1" 23581 break 23582 fi 23583 done 23584 if test $apr_addto_duplicate = "0"; then 23585 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 23586 LDFLAGS="$LDFLAGS $i" 23587 fi 23588 done 23589 fi 23590 23591 fi 23592 fi 23593 23594fi 23595 23596 23597if test "$want_iconv" = "1" -a "$have_apr_iconv" != "1"; then 23598 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default" 23599if test "x$ac_cv_header_iconv_h" = xyes; then : 23600 23601 23602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23603/* end confdefs.h. */ 23604 23605#include <stdlib.h> 23606#include <iconv.h> 23607 23608int 23609main () 23610{ 23611 23612 iconv_t cd = iconv_open("", ""); 23613 iconv(cd, NULL, NULL, NULL, NULL); 23614 23615 ; 23616 return 0; 23617} 23618_ACEOF 23619if ac_fn_c_try_link "$LINENO"; then : 23620 have_iconv="1" 23621else 23622 23623 23624 23625 if test "x$LIBS" = "x"; then 23626 test "x$silent" != "xyes" && echo " setting LIBS to \"-liconv\"" 23627 LIBS="-liconv" 23628 else 23629 apr_addto_bugger="-liconv" 23630 for i in $apr_addto_bugger; do 23631 apr_addto_duplicate="0" 23632 for j in $LIBS; do 23633 if test "x$i" = "x$j"; then 23634 apr_addto_duplicate="1" 23635 break 23636 fi 23637 done 23638 if test $apr_addto_duplicate = "0"; then 23639 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 23640 LIBS="$LIBS $i" 23641 fi 23642 done 23643 fi 23644 23645 23646 23647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23648/* end confdefs.h. */ 23649 23650#include <stdlib.h> 23651#include <iconv.h> 23652 23653int 23654main () 23655{ 23656 23657 iconv_t cd = iconv_open("", ""); 23658 iconv(cd, NULL, NULL, NULL, NULL); 23659 23660 ; 23661 return 0; 23662} 23663_ACEOF 23664if ac_fn_c_try_link "$LINENO"; then : 23665 23666 23667 if test "x$APRUTIL_LIBS" = "x"; then 23668 test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"-liconv\"" 23669 APRUTIL_LIBS="-liconv" 23670 else 23671 apr_addto_bugger="-liconv" 23672 for i in $apr_addto_bugger; do 23673 apr_addto_duplicate="0" 23674 for j in $APRUTIL_LIBS; do 23675 if test "x$i" = "x$j"; then 23676 apr_addto_duplicate="1" 23677 break 23678 fi 23679 done 23680 if test $apr_addto_duplicate = "0"; then 23681 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS" 23682 APRUTIL_LIBS="$APRUTIL_LIBS $i" 23683 fi 23684 done 23685 fi 23686 23687 23688 if test "x$APRUTIL_EXPORT_LIBS" = "x"; then 23689 test "x$silent" != "xyes" && echo " setting APRUTIL_EXPORT_LIBS to \"-liconv\"" 23690 APRUTIL_EXPORT_LIBS="-liconv" 23691 else 23692 apr_addto_bugger="-liconv" 23693 for i in $apr_addto_bugger; do 23694 apr_addto_duplicate="0" 23695 for j in $APRUTIL_EXPORT_LIBS; do 23696 if test "x$i" = "x$j"; then 23697 apr_addto_duplicate="1" 23698 break 23699 fi 23700 done 23701 if test $apr_addto_duplicate = "0"; then 23702 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_EXPORT_LIBS" 23703 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i" 23704 fi 23705 done 23706 fi 23707 23708 have_iconv="1" 23709else 23710 have_iconv="0" 23711fi 23712rm -f core conftest.err conftest.$ac_objext \ 23713 conftest$ac_exeext conftest.$ac_ext 23714 23715 23716 23717 if test "x$LIBS" = "x-liconv"; then 23718 test "x$silent" != "xyes" && echo " nulling LIBS" 23719 LIBS="" 23720 else 23721 apr_new_bugger="" 23722 apr_removed=0 23723 for i in $LIBS; do 23724 if test "x$i" != "x-liconv"; then 23725 apr_new_bugger="$apr_new_bugger $i" 23726 else 23727 apr_removed=1 23728 fi 23729 done 23730 if test $apr_removed = "1"; then 23731 test "x$silent" != "xyes" && echo " removed \"-liconv\" from LIBS" 23732 LIBS=$apr_new_bugger 23733 fi 23734 fi 23735 23736 23737 23738fi 23739rm -f core conftest.err conftest.$ac_objext \ 23740 conftest$ac_exeext conftest.$ac_ext 23741 23742 23743else 23744 have_iconv="0" 23745fi 23746 23747 23748fi 23749 23750if test "$want_iconv" = "1" -a "$apu_iconv_dir" != "unknown"; then 23751 if test "$have_iconv" != "1"; then 23752 if test "$have_apr_iconv" != "1"; then 23753 as_fn_error $? "iconv support requested, but not found" "$LINENO" 5 23754 fi 23755 fi 23756 23757 if test "x$CPPFLAGS" = "x-I$apu_iconv_dir/include"; then 23758 test "x$silent" != "xyes" && echo " nulling CPPFLAGS" 23759 CPPFLAGS="" 23760 else 23761 apr_new_bugger="" 23762 apr_removed=0 23763 for i in $CPPFLAGS; do 23764 if test "x$i" != "x-I$apu_iconv_dir/include"; then 23765 apr_new_bugger="$apr_new_bugger $i" 23766 else 23767 apr_removed=1 23768 fi 23769 done 23770 if test $apr_removed = "1"; then 23771 test "x$silent" != "xyes" && echo " removed \"-I$apu_iconv_dir/include\" from CPPFLAGS" 23772 CPPFLAGS=$apr_new_bugger 23773 fi 23774 fi 23775 23776 23777 if test "x$LDFLAGS" = "x-L$apu_iconv_dir/lib"; then 23778 test "x$silent" != "xyes" && echo " nulling LDFLAGS" 23779 LDFLAGS="" 23780 else 23781 apr_new_bugger="" 23782 apr_removed=0 23783 for i in $LDFLAGS; do 23784 if test "x$i" != "x-L$apu_iconv_dir/lib"; then 23785 apr_new_bugger="$apr_new_bugger $i" 23786 else 23787 apr_removed=1 23788 fi 23789 done 23790 if test $apr_removed = "1"; then 23791 test "x$silent" != "xyes" && echo " removed \"-L$apu_iconv_dir/lib\" from LDFLAGS" 23792 LDFLAGS=$apr_new_bugger 23793 fi 23794 fi 23795 23796 23797 if test "x$APRUTIL_INCLUDES" = "x"; then 23798 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$apu_iconv_dir/include\"" 23799 APRUTIL_INCLUDES="-I$apu_iconv_dir/include" 23800 else 23801 apr_addto_bugger="-I$apu_iconv_dir/include" 23802 for i in $apr_addto_bugger; do 23803 apr_addto_duplicate="0" 23804 for j in $APRUTIL_INCLUDES; do 23805 if test "x$i" = "x$j"; then 23806 apr_addto_duplicate="1" 23807 break 23808 fi 23809 done 23810 if test $apr_addto_duplicate = "0"; then 23811 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 23812 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 23813 fi 23814 done 23815 fi 23816 23817 23818 if test "x$APRUTIL_LDFLAGS" = "x"; then 23819 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$apu_iconv_dir/lib\"" 23820 APRUTIL_LDFLAGS="-L$apu_iconv_dir/lib" 23821 else 23822 apr_addto_bugger="-L$apu_iconv_dir/lib" 23823 for i in $apr_addto_bugger; do 23824 apr_addto_duplicate="0" 23825 for j in $APRUTIL_LDFLAGS; do 23826 if test "x$i" = "x$j"; then 23827 apr_addto_duplicate="1" 23828 break 23829 fi 23830 done 23831 if test $apr_addto_duplicate = "0"; then 23832 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 23833 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 23834 fi 23835 done 23836 fi 23837 23838fi 23839 23840if test "$have_iconv" = "1"; then 23841 23842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of inbuf parameter to iconv" >&5 23843$as_echo_n "checking for type of inbuf parameter to iconv... " >&6; } 23844if test "x$apu_iconv_inbuf_const" = "x"; then 23845 apr_save_CFLAGS=$CFLAGS 23846 CFLAGS="$CFLAGS $CFLAGS_WARN" 23847 if test "$ac_cv_c_compiler_gnu" = "yes"; then 23848 CFLAGS="$CFLAGS -Werror" 23849 fi 23850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23851/* end confdefs.h. */ 23852#include "confdefs.h" 23853 23854 23855 #include <stddef.h> 23856 #include <iconv.h> 23857 23858 int main(int argc, const char *const *argv) { 23859 23860 iconv(0,(char **)0,(size_t *)0,(char **)0,(size_t *)0); 23861 23862 return 0; } 23863 23864_ACEOF 23865if ac_fn_c_try_compile "$LINENO"; then : 23866 apu_iconv_inbuf_const="0" 23867else 23868 apu_iconv_inbuf_const="1" 23869fi 23870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23871 CFLAGS=$apr_save_CFLAGS 23872 23873fi 23874if test "$apu_iconv_inbuf_const" = "1"; then 23875 23876$as_echo "#define APU_ICONV_INBUF_CONST 1" >>confdefs.h 23877 23878 msg="const char **" 23879else 23880 msg="char **" 23881fi 23882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 23883$as_echo "$msg" >&6; } 23884 23885fi 23886 23887 23888for ac_header in iconv.h langinfo.h 23889do : 23890 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23891ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 23892if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 23893 cat >>confdefs.h <<_ACEOF 23894#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23895_ACEOF 23896 23897fi 23898 23899done 23900 23901for aprt_i in iconv.h langinfo.h 23902do 23903 ac_safe=`echo "$aprt_i" | sed 'y%./+-%__p_%'` 23904 aprt_2=`echo "$aprt_i" | sed -e 's%/%_%g' -e 's/\.//g' -e 's/-//g'` 23905 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 23906 eval "$aprt_2=1" 23907 else 23908 eval "$aprt_2=0" 23909 fi 23910done 23911 23912 23913for ac_func in nl_langinfo 23914do : 23915 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo" 23916if test "x$ac_cv_func_nl_langinfo" = xyes; then : 23917 cat >>confdefs.h <<_ACEOF 23918#define HAVE_NL_LANGINFO 1 23919_ACEOF 23920 23921fi 23922done 23923 23924for aprt_j in nl_langinfo 23925do 23926 aprt_3="have_$aprt_j" 23927 if eval "test \"`echo '$ac_cv_func_'$aprt_j`\" = yes"; then 23928 eval "$aprt_3=1" 23929 else 23930 eval "$aprt_3=0" 23931 fi 23932done 23933 23934 23935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESET in langinfo.h" >&5 23936$as_echo_n "checking for CODESET in langinfo.h... " >&6; } 23937if ${ac_cv_define_CODESET+:} false; then : 23938 $as_echo_n "(cached) " >&6 23939else 23940 23941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23942/* end confdefs.h. */ 23943 23944#include <langinfo.h> 23945#ifdef CODESET 23946YES_IS_DEFINED 23947#endif 23948 23949_ACEOF 23950if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23951 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then : 23952 ac_cv_define_CODESET=yes 23953else 23954 ac_cv_define_CODESET=no 23955fi 23956rm -f conftest* 23957 23958 23959fi 23960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_CODESET" >&5 23961$as_echo "$ac_cv_define_CODESET" >&6; } 23962 if test "$ac_cv_define_CODESET" = "yes"; then 23963 23964$as_echo "#define HAVE_CODESET 1" >>confdefs.h 23965 23966 fi 23967 23968 23969 23970 23971 23972 23973 23974 23975 # Check whether --enable-util-dso was given. 23976if test "${enable_util_dso+set}" = set; then : 23977 enableval=$enable_util_dso; 23978fi 23979 23980 23981 if test "$enable_util_dso" = "no"; then 23982 apu_dso_build="0" 23983 else 23984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether APR has DSO support" >&5 23985$as_echo_n "checking whether APR has DSO support... " >&6; } 23986if ${apu_cv_aprdso+:} false; then : 23987 $as_echo_n "(cached) " >&6 23988else 23989 apu_save_CPPFLAGS=$CPPFLAGS 23990 CPPFLAGS="$CPPFLAGS $APR_INCLUDES" 23991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23992/* end confdefs.h. */ 23993#include "apr.h" 23994#if APR_HAS_DSO 23995yes 23996#endif 23997 23998_ACEOF 23999if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24000 $EGREP "yes" >/dev/null 2>&1; then : 24001 apu_cv_aprdso=yes 24002else 24003 apu_cv_aprdso=no 24004fi 24005rm -f conftest* 24006 24007 CPPFLAGS=$apu_save_CPPFLAGS 24008fi 24009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_cv_aprdso" >&5 24010$as_echo "$apu_cv_aprdso" >&6; } 24011 24012 if test $apu_cv_aprdso = yes; then 24013 apu_dso_build=1 24014 else 24015 apu_dso_build=0 24016 fi 24017 fi 24018 24019 if test "$apu_dso_build" = "0"; then 24020 24021 # Statically link the drivers: 24022 objs= 24023 test $apu_have_openssl = 1 && objs="$objs crypto/apr_crypto_openssl.lo" 24024 test $apu_have_nss = 1 && objs="$objs crypto/apr_crypto_nss.lo" 24025 test $apu_have_oracle = 1 && objs="$objs dbd/apr_dbd_oracle.lo" 24026 test $apu_have_pgsql = 1 && objs="$objs dbd/apr_dbd_pgsql.lo" 24027 test $apu_have_mysql = 1 && objs="$objs dbd/apr_dbd_mysql.lo" 24028 test $apu_have_sqlite2 = 1 && objs="$objs dbd/apr_dbd_sqlite2.lo" 24029 test $apu_have_sqlite3 = 1 && objs="$objs dbd/apr_dbd_sqlite3.lo" 24030 test $apu_have_freetds = 1 && objs="$objs dbd/apr_dbd_freetds.lo" 24031 test $apu_have_odbc = 1 && objs="$objs dbd/apr_dbd_odbc.lo" 24032 test $apu_have_db = 1 && objs="$objs dbm/apr_dbm_berkeleydb.lo" 24033 test $apu_have_gdbm = 1 && objs="$objs dbm/apr_dbm_gdbm.lo" 24034 test $apu_have_ndbm = 1 && objs="$objs dbm/apr_dbm_ndbm.lo" 24035 test $apu_has_ldap = 1 && objs="$objs ldap/apr_ldap_init.lo" 24036 test $apu_has_ldap = 1 && objs="$objs ldap/apr_ldap_option.lo" 24037 test $apu_has_ldap = 1 && objs="$objs ldap/apr_ldap_rebind.lo" 24038 EXTRA_OBJECTS="$EXTRA_OBJECTS $objs" 24039 24040 # Use libtool *.la for mysql if available 24041 if test $apu_have_mysql = 1; then 24042 for flag in $LDADD_dbd_mysql 24043 do 24044 dir=`echo $flag | grep "^-L" | sed s:-L::` 24045 if test "x$dir" != 'x'; then 24046 if test -f "$dir/libmysqlclient_r.la"; then 24047 LDADD_dbd_mysql=$dir/libmysqlclient_r.la 24048 break 24049 fi 24050 fi 24051 done 24052 fi 24053 24054 APRUTIL_LIBS="$APRUTIL_LIBS $LDADD_crypto_openssl $LDADD_crypto_nss" 24055 APRUTIL_LIBS="$APRUTIL_LIBS $LDADD_dbd_pgsql $LDADD_dbd_sqlite2 $LDADD_dbd_sqlite3 $LDADD_dbd_oracle $LDADD_dbd_mysql $LDADD_dbd_freetds $LDADD_dbd_odbc" 24056 APRUTIL_LIBS="$APRUTIL_LIBS $LDADD_dbm_db $LDADD_dbm_gdbm $LDADD_dbm_ndbm" 24057 APRUTIL_LIBS="$APRUTIL_LIBS $LDADD_ldap" 24058 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $LDADD_crypto_openssl $LDADD_crypto_nss" 24059 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $LDADD_dbd_pgsql $LDADD_dbd_sqlite2 $LDADD_dbd_sqlite3 $LDADD_dbd_oracle $LDADD_dbd_mysql $LDADD_dbd_freetds $LDADD_dbd_odbc" 24060 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $LDADD_dbm_db $LDADD_dbm_gdbm $LDADD_dbm_ndbm" 24061 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $LDADD_ldap" 24062 24063 else 24064 24065 # Build the drivers as loadable modules: 24066 dsos= 24067 test $apu_have_openssl = 1 && dsos="$dsos crypto/apr_crypto_openssl.la" 24068 test $apu_have_nss = 1 && dsos="$dsos crypto/apr_crypto_nss.la" 24069 test $apu_have_oracle = 1 && dsos="$dsos dbd/apr_dbd_oracle.la" 24070 test $apu_have_pgsql = 1 && dsos="$dsos dbd/apr_dbd_pgsql.la" 24071 test $apu_have_mysql = 1 && dsos="$dsos dbd/apr_dbd_mysql.la" 24072 test $apu_have_sqlite2 = 1 && dsos="$dsos dbd/apr_dbd_sqlite2.la" 24073 test $apu_have_sqlite3 = 1 && dsos="$dsos dbd/apr_dbd_sqlite3.la" 24074 test $apu_have_freetds = 1 && dsos="$dsos dbd/apr_dbd_freetds.la" 24075 test $apu_have_odbc = 1 && dsos="$dsos dbd/apr_dbd_odbc.la" 24076 test $apu_have_db = 1 && dsos="$dsos dbm/apr_dbm_db.la" 24077 test $apu_have_gdbm = 1 && dsos="$dsos dbm/apr_dbm_gdbm.la" 24078 test $apu_have_ndbm = 1 && dsos="$dsos dbm/apr_dbm_ndbm.la" 24079 test $apu_has_ldap = 1 && dsos="$dsos ldap/apr_ldap.la" 24080 24081 if test -n "$dsos"; then 24082 APU_MODULES="$APU_MODULES $dsos" 24083 fi 24084 24085 fi 24086 24087 24088cat >>confdefs.h <<_ACEOF 24089#define APU_DSO_BUILD $apu_dso_build 24090_ACEOF 24091 24092 24093 24094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 24095$as_echo_n "checking for library containing crypt... " >&6; } 24096if ${ac_cv_search_crypt+:} false; then : 24097 $as_echo_n "(cached) " >&6 24098else 24099 ac_func_search_save_LIBS=$LIBS 24100cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24101/* end confdefs.h. */ 24102 24103/* Override any GCC internal prototype to avoid an error. 24104 Use char because int might match the return type of a GCC 24105 builtin and then its argument prototype would still apply. */ 24106#ifdef __cplusplus 24107extern "C" 24108#endif 24109char crypt (); 24110int 24111main () 24112{ 24113return crypt (); 24114 ; 24115 return 0; 24116} 24117_ACEOF 24118for ac_lib in '' crypt ufc; do 24119 if test -z "$ac_lib"; then 24120 ac_res="none required" 24121 else 24122 ac_res=-l$ac_lib 24123 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24124 fi 24125 if ac_fn_c_try_link "$LINENO"; then : 24126 ac_cv_search_crypt=$ac_res 24127fi 24128rm -f core conftest.err conftest.$ac_objext \ 24129 conftest$ac_exeext 24130 if ${ac_cv_search_crypt+:} false; then : 24131 break 24132fi 24133done 24134if ${ac_cv_search_crypt+:} false; then : 24135 24136else 24137 ac_cv_search_crypt=no 24138fi 24139rm conftest.$ac_ext 24140LIBS=$ac_func_search_save_LIBS 24141fi 24142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 24143$as_echo "$ac_cv_search_crypt" >&6; } 24144ac_res=$ac_cv_search_crypt 24145if test "$ac_res" != no; then : 24146 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24147 24148fi 24149 24150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if system crypt() function is threadsafe" >&5 24151$as_echo_n "checking if system crypt() function is threadsafe... " >&6; } 24152if test "x$apu_crypt_threadsafe" = "x1"; then 24153 24154$as_echo "#define APU_CRYPT_THREADSAFE 1" >>confdefs.h 24155 24156 msg="yes" 24157else 24158 msg="no" 24159fi 24160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 24161$as_echo "$msg" >&6; } 24162 24163for ac_func in crypt_r 24164do : 24165 ac_fn_c_check_func "$LINENO" "crypt_r" "ac_cv_func_crypt_r" 24166if test "x$ac_cv_func_crypt_r" = xyes; then : 24167 cat >>confdefs.h <<_ACEOF 24168#define HAVE_CRYPT_R 1 24169_ACEOF 24170 crypt_r="1" 24171else 24172 crypt_r="0" 24173fi 24174done 24175 24176if test "$crypt_r" = "1"; then 24177 24178 24179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking style of crypt_r" >&5 24180$as_echo_n "checking style of crypt_r... " >&6; } 24181if ${apr_cv_crypt_r_style+:} false; then : 24182 $as_echo_n "(cached) " >&6 24183else 24184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24185/* end confdefs.h. */ 24186#include <crypt.h> 24187int 24188main () 24189{ 24190CRYPTD buffer; 24191 crypt_r("passwd", "hash", &buffer); 24192 ; 24193 return 0; 24194} 24195_ACEOF 24196if ac_fn_c_try_compile "$LINENO"; then : 24197 apr_cv_crypt_r_style=cryptd 24198else 24199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24200/* end confdefs.h. */ 24201#include <crypt.h> 24202int 24203main () 24204{ 24205struct crypt_data buffer; 24206 crypt_r("passwd", "hash", &buffer); 24207 ; 24208 return 0; 24209} 24210_ACEOF 24211if ac_fn_c_try_compile "$LINENO"; then : 24212 apr_cv_crypt_r_style=struct_crypt_data 24213else 24214 apr_cv_crypt_r_style=none 24215fi 24216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24217fi 24218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24219fi 24220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_crypt_r_style" >&5 24221$as_echo "$apr_cv_crypt_r_style" >&6; } 24222 24223if test "$apr_cv_crypt_r_style" = "cryptd"; then 24224 24225$as_echo "#define CRYPT_R_CRYPTD 1" >>confdefs.h 24226 24227elif test "$apr_cv_crypt_r_style" = "struct_crypt_data"; then 24228 24229$as_echo "#define CRYPT_R_STRUCT_CRYPT_DATA 1" >>confdefs.h 24230 24231fi 24232 24233fi 24234 24235so_ext=$APR_SO_EXT 24236lib_target=$APR_LIB_TARGET 24237 24238 24239 24240APRUTIL_LIBNAME="aprutil${libsuffix}" 24241 24242 24243# Set up destination directory for DSOs. 24244APU_DSO_LIBDIR="\${libdir}/apr-util-${APRUTIL_MAJOR_VERSION}" 24245# Set APU_HAVE_MODULES appropriately for the Makefile 24246if test -n "$APU_MODULES"; then 24247 APU_HAVE_MODULES=yes 24248else 24249 APU_HAVE_MODULES=no 24250fi 24251# Define expanded libdir for apu_config.h 24252 24253ap_last= 24254ap_cur="$APU_DSO_LIBDIR" 24255while test "x${ap_cur}" != "x${ap_last}"; 24256do 24257 ap_last="${ap_cur}" 24258 ap_cur=`eval "echo ${ap_cur}"` 24259done 24260abs_dso_libdir="${ap_cur}" 24261 24262 24263cat >>confdefs.h <<_ACEOF 24264#define APU_DSO_LIBDIR "$abs_dso_libdir" 24265_ACEOF 24266 24267 24268 24269 24270 24271 24272 24273 if test "x$APRUTIL_LIBS" = "x"; then 24274 test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"$APR_LIBS\"" 24275 APRUTIL_LIBS="$APR_LIBS" 24276 else 24277 apr_addto_bugger="$APR_LIBS" 24278 for i in $apr_addto_bugger; do 24279 apr_addto_duplicate="0" 24280 for j in $APRUTIL_LIBS; do 24281 if test "x$i" = "x$j"; then 24282 apr_addto_duplicate="1" 24283 break 24284 fi 24285 done 24286 if test $apr_addto_duplicate = "0"; then 24287 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS" 24288 APRUTIL_LIBS="$APRUTIL_LIBS $i" 24289 fi 24290 done 24291 fi 24292 24293 24294 24295 24296 24297 24298 24299 24300 24301if test ! -d ./build; then 24302 $mkdir_p build 24303fi 24304case $host in 24305 *-mingw*) 24306 sed -e 's/-DAPR_DECLARE_EXPORT/-DAPU_DECLARE_EXPORT/' \ 24307 -e 's/-DAPR_DECLARE_STATIC/-DAPU_DECLARE_STATIC -DAPR_DECLARE_STATIC/' \ 24308 < $APR_BUILD_DIR/apr_rules.mk > $abs_builddir/build/rules.mk 24309 ;; 24310 *) 24311 cp $APR_BUILD_DIR/apr_rules.mk $abs_builddir/build/rules.mk 24312 ;; 24313esac 24314 24315case "$host_alias" in 24316*bsdi* | BSD/OS) 24317 # Check whether they've installed GNU make 24318 if make --version > /dev/null 2>&1; then 24319 INCLUDE_RULES="include $abs_builddir/build/rules.mk" 24320 INCLUDE_OUTPUTS="include $abs_srcdir/build-outputs.mk" 24321 else 24322 INCLUDE_RULES=".include \"$abs_builddir/build/rules.mk\"" 24323 INCLUDE_OUTPUTS=".include \"$abs_srcdir/build-outputs.mk\"" 24324 fi 24325 ;; 24326*) 24327 INCLUDE_RULES="include $abs_builddir/build/rules.mk" 24328 INCLUDE_OUTPUTS="include $abs_srcdir/build-outputs.mk" 24329 ;; 24330esac 24331 24332 24333 24334for d in include include/private; do 24335 test -d $top_builddir/$d || mkdir $top_builddir/$d 24336done 24337 24338ac_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" 24339 24340 24341ac_config_commands="$ac_config_commands default" 24342 24343 24344if test -d $srcdir/test; then 24345 ac_config_files="$ac_config_files test/Makefile" 24346 24347fi 24348 24349cat >confcache <<\_ACEOF 24350# This file is a shell script that caches the results of configure 24351# tests run on this system so they can be shared between configure 24352# scripts and configure runs, see configure's option --config-cache. 24353# It is not useful on other systems. If it contains results you don't 24354# want to keep, you may remove or edit it. 24355# 24356# config.status only pays attention to the cache file if you give it 24357# the --recheck option to rerun configure. 24358# 24359# `ac_cv_env_foo' variables (set or unset) will be overridden when 24360# loading this file, other *unset* `ac_cv_foo' will be assigned the 24361# following values. 24362 24363_ACEOF 24364 24365# The following way of writing the cache mishandles newlines in values, 24366# but we know of no workaround that is simple, portable, and efficient. 24367# So, we kill variables containing newlines. 24368# Ultrix sh set writes to stderr and can't be redirected directly, 24369# and sets the high bit in the cache file unless we assign to the vars. 24370( 24371 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 24372 eval ac_val=\$$ac_var 24373 case $ac_val in #( 24374 *${as_nl}*) 24375 case $ac_var in #( 24376 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 24377$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 24378 esac 24379 case $ac_var in #( 24380 _ | IFS | as_nl) ;; #( 24381 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 24382 *) { eval $ac_var=; unset $ac_var;} ;; 24383 esac ;; 24384 esac 24385 done 24386 24387 (set) 2>&1 | 24388 case $as_nl`(ac_space=' '; set) 2>&1` in #( 24389 *${as_nl}ac_space=\ *) 24390 # `set' does not quote correctly, so add quotes: double-quote 24391 # substitution turns \\\\ into \\, and sed turns \\ into \. 24392 sed -n \ 24393 "s/'/'\\\\''/g; 24394 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 24395 ;; #( 24396 *) 24397 # `set' quotes correctly as required by POSIX, so do not add quotes. 24398 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 24399 ;; 24400 esac | 24401 sort 24402) | 24403 sed ' 24404 /^ac_cv_env_/b end 24405 t clear 24406 :clear 24407 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 24408 t end 24409 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 24410 :end' >>confcache 24411if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 24412 if test -w "$cache_file"; then 24413 if test "x$cache_file" != "x/dev/null"; then 24414 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 24415$as_echo "$as_me: updating cache $cache_file" >&6;} 24416 if test ! -f "$cache_file" || test -h "$cache_file"; then 24417 cat confcache >"$cache_file" 24418 else 24419 case $cache_file in #( 24420 */* | ?:*) 24421 mv -f confcache "$cache_file"$$ && 24422 mv -f "$cache_file"$$ "$cache_file" ;; #( 24423 *) 24424 mv -f confcache "$cache_file" ;; 24425 esac 24426 fi 24427 fi 24428 else 24429 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 24430$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 24431 fi 24432fi 24433rm -f confcache 24434 24435test "x$prefix" = xNONE && prefix=$ac_default_prefix 24436# Let make expand exec_prefix. 24437test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 24438 24439DEFS=-DHAVE_CONFIG_H 24440 24441ac_libobjs= 24442ac_ltlibobjs= 24443U= 24444for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 24445 # 1. Remove the extension, and $U if already installed. 24446 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 24447 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 24448 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 24449 # will be set to the directory where LIBOBJS objects are built. 24450 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 24451 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 24452done 24453LIBOBJS=$ac_libobjs 24454 24455LTLIBOBJS=$ac_ltlibobjs 24456 24457 24458 24459: "${CONFIG_STATUS=./config.status}" 24460ac_write_fail=0 24461ac_clean_files_save=$ac_clean_files 24462ac_clean_files="$ac_clean_files $CONFIG_STATUS" 24463{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 24464$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 24465as_write_fail=0 24466cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 24467#! $SHELL 24468# Generated by $as_me. 24469# Run this file to recreate the current configuration. 24470# Compiler output produced by configure, useful for debugging 24471# configure, is in config.log if it exists. 24472 24473debug=false 24474ac_cs_recheck=false 24475ac_cs_silent=false 24476 24477SHELL=\${CONFIG_SHELL-$SHELL} 24478export SHELL 24479_ASEOF 24480cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 24481## -------------------- ## 24482## M4sh Initialization. ## 24483## -------------------- ## 24484 24485# Be more Bourne compatible 24486DUALCASE=1; export DUALCASE # for MKS sh 24487if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 24488 emulate sh 24489 NULLCMD=: 24490 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 24491 # is contrary to our usage. Disable this feature. 24492 alias -g '${1+"$@"}'='"$@"' 24493 setopt NO_GLOB_SUBST 24494else 24495 case `(set -o) 2>/dev/null` in #( 24496 *posix*) : 24497 set -o posix ;; #( 24498 *) : 24499 ;; 24500esac 24501fi 24502 24503 24504as_nl=' 24505' 24506export as_nl 24507# Printing a long string crashes Solaris 7 /usr/bin/printf. 24508as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 24509as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 24510as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 24511# Prefer a ksh shell builtin over an external printf program on Solaris, 24512# but without wasting forks for bash or zsh. 24513if test -z "$BASH_VERSION$ZSH_VERSION" \ 24514 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 24515 as_echo='print -r --' 24516 as_echo_n='print -rn --' 24517elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 24518 as_echo='printf %s\n' 24519 as_echo_n='printf %s' 24520else 24521 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 24522 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 24523 as_echo_n='/usr/ucb/echo -n' 24524 else 24525 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 24526 as_echo_n_body='eval 24527 arg=$1; 24528 case $arg in #( 24529 *"$as_nl"*) 24530 expr "X$arg" : "X\\(.*\\)$as_nl"; 24531 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 24532 esac; 24533 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 24534 ' 24535 export as_echo_n_body 24536 as_echo_n='sh -c $as_echo_n_body as_echo' 24537 fi 24538 export as_echo_body 24539 as_echo='sh -c $as_echo_body as_echo' 24540fi 24541 24542# The user is always right. 24543if test "${PATH_SEPARATOR+set}" != set; then 24544 PATH_SEPARATOR=: 24545 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 24546 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 24547 PATH_SEPARATOR=';' 24548 } 24549fi 24550 24551 24552# IFS 24553# We need space, tab and new line, in precisely that order. Quoting is 24554# there to prevent editors from complaining about space-tab. 24555# (If _AS_PATH_WALK were called with IFS unset, it would disable word 24556# splitting by setting IFS to empty value.) 24557IFS=" "" $as_nl" 24558 24559# Find who we are. Look in the path if we contain no directory separator. 24560as_myself= 24561case $0 in #(( 24562 *[\\/]* ) as_myself=$0 ;; 24563 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24564for as_dir in $PATH 24565do 24566 IFS=$as_save_IFS 24567 test -z "$as_dir" && as_dir=. 24568 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 24569 done 24570IFS=$as_save_IFS 24571 24572 ;; 24573esac 24574# We did not find ourselves, most probably we were run as `sh COMMAND' 24575# in which case we are not to be found in the path. 24576if test "x$as_myself" = x; then 24577 as_myself=$0 24578fi 24579if test ! -f "$as_myself"; then 24580 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 24581 exit 1 24582fi 24583 24584# Unset variables that we do not need and which cause bugs (e.g. in 24585# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 24586# suppresses any "Segmentation fault" message there. '((' could 24587# trigger a bug in pdksh 5.2.14. 24588for as_var in BASH_ENV ENV MAIL MAILPATH 24589do eval test x\${$as_var+set} = xset \ 24590 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 24591done 24592PS1='$ ' 24593PS2='> ' 24594PS4='+ ' 24595 24596# NLS nuisances. 24597LC_ALL=C 24598export LC_ALL 24599LANGUAGE=C 24600export LANGUAGE 24601 24602# CDPATH. 24603(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 24604 24605 24606# as_fn_error STATUS ERROR [LINENO LOG_FD] 24607# ---------------------------------------- 24608# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 24609# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 24610# script with STATUS, using 1 if that was 0. 24611as_fn_error () 24612{ 24613 as_status=$1; test $as_status -eq 0 && as_status=1 24614 if test "$4"; then 24615 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 24616 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 24617 fi 24618 $as_echo "$as_me: error: $2" >&2 24619 as_fn_exit $as_status 24620} # as_fn_error 24621 24622 24623# as_fn_set_status STATUS 24624# ----------------------- 24625# Set $? to STATUS, without forking. 24626as_fn_set_status () 24627{ 24628 return $1 24629} # as_fn_set_status 24630 24631# as_fn_exit STATUS 24632# ----------------- 24633# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 24634as_fn_exit () 24635{ 24636 set +e 24637 as_fn_set_status $1 24638 exit $1 24639} # as_fn_exit 24640 24641# as_fn_unset VAR 24642# --------------- 24643# Portably unset VAR. 24644as_fn_unset () 24645{ 24646 { eval $1=; unset $1;} 24647} 24648as_unset=as_fn_unset 24649# as_fn_append VAR VALUE 24650# ---------------------- 24651# Append the text in VALUE to the end of the definition contained in VAR. Take 24652# advantage of any shell optimizations that allow amortized linear growth over 24653# repeated appends, instead of the typical quadratic growth present in naive 24654# implementations. 24655if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 24656 eval 'as_fn_append () 24657 { 24658 eval $1+=\$2 24659 }' 24660else 24661 as_fn_append () 24662 { 24663 eval $1=\$$1\$2 24664 } 24665fi # as_fn_append 24666 24667# as_fn_arith ARG... 24668# ------------------ 24669# Perform arithmetic evaluation on the ARGs, and store the result in the 24670# global $as_val. Take advantage of shells that can avoid forks. The arguments 24671# must be portable across $(()) and expr. 24672if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 24673 eval 'as_fn_arith () 24674 { 24675 as_val=$(( $* )) 24676 }' 24677else 24678 as_fn_arith () 24679 { 24680 as_val=`expr "$@" || test $? -eq 1` 24681 } 24682fi # as_fn_arith 24683 24684 24685if expr a : '\(a\)' >/dev/null 2>&1 && 24686 test "X`expr 00001 : '.*\(...\)'`" = X001; then 24687 as_expr=expr 24688else 24689 as_expr=false 24690fi 24691 24692if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 24693 as_basename=basename 24694else 24695 as_basename=false 24696fi 24697 24698if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 24699 as_dirname=dirname 24700else 24701 as_dirname=false 24702fi 24703 24704as_me=`$as_basename -- "$0" || 24705$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 24706 X"$0" : 'X\(//\)$' \| \ 24707 X"$0" : 'X\(/\)' \| . 2>/dev/null || 24708$as_echo X/"$0" | 24709 sed '/^.*\/\([^/][^/]*\)\/*$/{ 24710 s//\1/ 24711 q 24712 } 24713 /^X\/\(\/\/\)$/{ 24714 s//\1/ 24715 q 24716 } 24717 /^X\/\(\/\).*/{ 24718 s//\1/ 24719 q 24720 } 24721 s/.*/./; q'` 24722 24723# Avoid depending upon Character Ranges. 24724as_cr_letters='abcdefghijklmnopqrstuvwxyz' 24725as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 24726as_cr_Letters=$as_cr_letters$as_cr_LETTERS 24727as_cr_digits='0123456789' 24728as_cr_alnum=$as_cr_Letters$as_cr_digits 24729 24730ECHO_C= ECHO_N= ECHO_T= 24731case `echo -n x` in #((((( 24732-n*) 24733 case `echo 'xy\c'` in 24734 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 24735 xy) ECHO_C='\c';; 24736 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 24737 ECHO_T=' ';; 24738 esac;; 24739*) 24740 ECHO_N='-n';; 24741esac 24742 24743rm -f conf$$ conf$$.exe conf$$.file 24744if test -d conf$$.dir; then 24745 rm -f conf$$.dir/conf$$.file 24746else 24747 rm -f conf$$.dir 24748 mkdir conf$$.dir 2>/dev/null 24749fi 24750if (echo >conf$$.file) 2>/dev/null; then 24751 if ln -s conf$$.file conf$$ 2>/dev/null; then 24752 as_ln_s='ln -s' 24753 # ... but there are two gotchas: 24754 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 24755 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 24756 # In both cases, we have to default to `cp -pR'. 24757 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 24758 as_ln_s='cp -pR' 24759 elif ln conf$$.file conf$$ 2>/dev/null; then 24760 as_ln_s=ln 24761 else 24762 as_ln_s='cp -pR' 24763 fi 24764else 24765 as_ln_s='cp -pR' 24766fi 24767rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 24768rmdir conf$$.dir 2>/dev/null 24769 24770 24771# as_fn_mkdir_p 24772# ------------- 24773# Create "$as_dir" as a directory, including parents if necessary. 24774as_fn_mkdir_p () 24775{ 24776 24777 case $as_dir in #( 24778 -*) as_dir=./$as_dir;; 24779 esac 24780 test -d "$as_dir" || eval $as_mkdir_p || { 24781 as_dirs= 24782 while :; do 24783 case $as_dir in #( 24784 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 24785 *) as_qdir=$as_dir;; 24786 esac 24787 as_dirs="'$as_qdir' $as_dirs" 24788 as_dir=`$as_dirname -- "$as_dir" || 24789$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24790 X"$as_dir" : 'X\(//\)[^/]' \| \ 24791 X"$as_dir" : 'X\(//\)$' \| \ 24792 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 24793$as_echo X"$as_dir" | 24794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24795 s//\1/ 24796 q 24797 } 24798 /^X\(\/\/\)[^/].*/{ 24799 s//\1/ 24800 q 24801 } 24802 /^X\(\/\/\)$/{ 24803 s//\1/ 24804 q 24805 } 24806 /^X\(\/\).*/{ 24807 s//\1/ 24808 q 24809 } 24810 s/.*/./; q'` 24811 test -d "$as_dir" && break 24812 done 24813 test -z "$as_dirs" || eval "mkdir $as_dirs" 24814 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 24815 24816 24817} # as_fn_mkdir_p 24818if mkdir -p . 2>/dev/null; then 24819 as_mkdir_p='mkdir -p "$as_dir"' 24820else 24821 test -d ./-p && rmdir ./-p 24822 as_mkdir_p=false 24823fi 24824 24825 24826# as_fn_executable_p FILE 24827# ----------------------- 24828# Test if FILE is an executable regular file. 24829as_fn_executable_p () 24830{ 24831 test -f "$1" && test -x "$1" 24832} # as_fn_executable_p 24833as_test_x='test -x' 24834as_executable_p=as_fn_executable_p 24835 24836# Sed expression to map a string onto a valid CPP name. 24837as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 24838 24839# Sed expression to map a string onto a valid variable name. 24840as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 24841 24842 24843exec 6>&1 24844## ----------------------------------- ## 24845## Main body of $CONFIG_STATUS script. ## 24846## ----------------------------------- ## 24847_ASEOF 24848test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 24849 24850cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24851# Save the log message, to keep $0 and so on meaningful, and to 24852# report actual input values of CONFIG_FILES etc. instead of their 24853# values after options handling. 24854ac_log=" 24855This file was extended by $as_me, which was 24856generated by GNU Autoconf 2.69. Invocation command line was 24857 24858 CONFIG_FILES = $CONFIG_FILES 24859 CONFIG_HEADERS = $CONFIG_HEADERS 24860 CONFIG_LINKS = $CONFIG_LINKS 24861 CONFIG_COMMANDS = $CONFIG_COMMANDS 24862 $ $0 $@ 24863 24864on `(hostname || uname -n) 2>/dev/null | sed 1q` 24865" 24866 24867_ACEOF 24868 24869case $ac_config_files in *" 24870"*) set x $ac_config_files; shift; ac_config_files=$*;; 24871esac 24872 24873case $ac_config_headers in *" 24874"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 24875esac 24876 24877 24878cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24879# Files that config.status was made for. 24880config_files="$ac_config_files" 24881config_headers="$ac_config_headers" 24882config_commands="$ac_config_commands" 24883 24884_ACEOF 24885 24886cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24887ac_cs_usage="\ 24888\`$as_me' instantiates files and other configuration actions 24889from templates according to the current configuration. Unless the files 24890and actions are specified as TAGs, all are instantiated by default. 24891 24892Usage: $0 [OPTION]... [TAG]... 24893 24894 -h, --help print this help, then exit 24895 -V, --version print version number and configuration settings, then exit 24896 --config print configuration, then exit 24897 -q, --quiet, --silent 24898 do not print progress messages 24899 -d, --debug don't remove temporary files 24900 --recheck update $as_me by reconfiguring in the same conditions 24901 --file=FILE[:TEMPLATE] 24902 instantiate the configuration file FILE 24903 --header=FILE[:TEMPLATE] 24904 instantiate the configuration header FILE 24905 24906Configuration files: 24907$config_files 24908 24909Configuration headers: 24910$config_headers 24911 24912Configuration commands: 24913$config_commands 24914 24915Report bugs to the package provider." 24916 24917_ACEOF 24918cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24919ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 24920ac_cs_version="\\ 24921config.status 24922configured by $0, generated by GNU Autoconf 2.69, 24923 with options \\"\$ac_cs_config\\" 24924 24925Copyright (C) 2012 Free Software Foundation, Inc. 24926This config.status script is free software; the Free Software Foundation 24927gives unlimited permission to copy, distribute and modify it." 24928 24929ac_pwd='$ac_pwd' 24930srcdir='$srcdir' 24931INSTALL='$INSTALL' 24932test -n "\$AWK" || AWK=awk 24933_ACEOF 24934 24935cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24936# The default lists apply if the user does not specify any file. 24937ac_need_defaults=: 24938while test $# != 0 24939do 24940 case $1 in 24941 --*=?*) 24942 ac_option=`expr "X$1" : 'X\([^=]*\)='` 24943 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 24944 ac_shift=: 24945 ;; 24946 --*=) 24947 ac_option=`expr "X$1" : 'X\([^=]*\)='` 24948 ac_optarg= 24949 ac_shift=: 24950 ;; 24951 *) 24952 ac_option=$1 24953 ac_optarg=$2 24954 ac_shift=shift 24955 ;; 24956 esac 24957 24958 case $ac_option in 24959 # Handling of the options. 24960 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 24961 ac_cs_recheck=: ;; 24962 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 24963 $as_echo "$ac_cs_version"; exit ;; 24964 --config | --confi | --conf | --con | --co | --c ) 24965 $as_echo "$ac_cs_config"; exit ;; 24966 --debug | --debu | --deb | --de | --d | -d ) 24967 debug=: ;; 24968 --file | --fil | --fi | --f ) 24969 $ac_shift 24970 case $ac_optarg in 24971 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 24972 '') as_fn_error $? "missing file argument" ;; 24973 esac 24974 as_fn_append CONFIG_FILES " '$ac_optarg'" 24975 ac_need_defaults=false;; 24976 --header | --heade | --head | --hea ) 24977 $ac_shift 24978 case $ac_optarg in 24979 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 24980 esac 24981 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 24982 ac_need_defaults=false;; 24983 --he | --h) 24984 # Conflict between --help and --header 24985 as_fn_error $? "ambiguous option: \`$1' 24986Try \`$0 --help' for more information.";; 24987 --help | --hel | -h ) 24988 $as_echo "$ac_cs_usage"; exit ;; 24989 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 24990 | -silent | --silent | --silen | --sile | --sil | --si | --s) 24991 ac_cs_silent=: ;; 24992 24993 # This is an error. 24994 -*) as_fn_error $? "unrecognized option: \`$1' 24995Try \`$0 --help' for more information." ;; 24996 24997 *) as_fn_append ac_config_targets " $1" 24998 ac_need_defaults=false ;; 24999 25000 esac 25001 shift 25002done 25003 25004ac_configure_extra_args= 25005 25006if $ac_cs_silent; then 25007 exec 6>/dev/null 25008 ac_configure_extra_args="$ac_configure_extra_args --silent" 25009fi 25010 25011_ACEOF 25012cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25013if \$ac_cs_recheck; then 25014 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 25015 shift 25016 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 25017 CONFIG_SHELL='$SHELL' 25018 export CONFIG_SHELL 25019 exec "\$@" 25020fi 25021 25022_ACEOF 25023cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25024exec 5>>config.log 25025{ 25026 echo 25027 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 25028## Running $as_me. ## 25029_ASBOX 25030 $as_echo "$ac_log" 25031} >&5 25032 25033_ACEOF 25034cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25035# 25036# INIT-COMMANDS 25037# 25038 25039APRUTIL_MAJOR_VERSION=$APRUTIL_MAJOR_VERSION 25040 25041 25042_ACEOF 25043 25044cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25045 25046# Handling of arguments. 25047for ac_config_target in $ac_config_targets 25048do 25049 case $ac_config_target in 25050 "include/private/apu_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/private/apu_config.h" ;; 25051 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 25052 "export_vars.sh") CONFIG_FILES="$CONFIG_FILES export_vars.sh" ;; 25053 "build/pkg/pkginfo") CONFIG_FILES="$CONFIG_FILES build/pkg/pkginfo" ;; 25054 "apr-util.pc") CONFIG_FILES="$CONFIG_FILES apr-util.pc" ;; 25055 "apu-$APRUTIL_MAJOR_VERSION-config") CONFIG_FILES="$CONFIG_FILES apu-$APRUTIL_MAJOR_VERSION-config:apu-config.in" ;; 25056 "include/private/apu_select_dbm.h") CONFIG_FILES="$CONFIG_FILES include/private/apu_select_dbm.h" ;; 25057 "include/apr_ldap.h") CONFIG_FILES="$CONFIG_FILES include/apr_ldap.h" ;; 25058 "include/apu.h") CONFIG_FILES="$CONFIG_FILES include/apu.h" ;; 25059 "include/apu_want.h") CONFIG_FILES="$CONFIG_FILES include/apu_want.h" ;; 25060 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 25061 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 25062 25063 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 25064 esac 25065done 25066 25067 25068# If the user did not use the arguments to specify the items to instantiate, 25069# then the envvar interface is used. Set only those that are not. 25070# We use the long form for the default assignment because of an extremely 25071# bizarre bug on SunOS 4.1.3. 25072if $ac_need_defaults; then 25073 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 25074 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 25075 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 25076fi 25077 25078# Have a temporary directory for convenience. Make it in the build tree 25079# simply because there is no reason against having it here, and in addition, 25080# creating and moving files from /tmp can sometimes cause problems. 25081# Hook for its removal unless debugging. 25082# Note that there is a small window in which the directory will not be cleaned: 25083# after its creation but before its name has been assigned to `$tmp'. 25084$debug || 25085{ 25086 tmp= ac_tmp= 25087 trap 'exit_status=$? 25088 : "${ac_tmp:=$tmp}" 25089 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 25090' 0 25091 trap 'as_fn_exit 1' 1 2 13 15 25092} 25093# Create a (secure) tmp directory for tmp files. 25094 25095{ 25096 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 25097 test -d "$tmp" 25098} || 25099{ 25100 tmp=./conf$$-$RANDOM 25101 (umask 077 && mkdir "$tmp") 25102} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 25103ac_tmp=$tmp 25104 25105# Set up the scripts for CONFIG_FILES section. 25106# No need to generate them if there are no CONFIG_FILES. 25107# This happens for instance with `./config.status config.h'. 25108if test -n "$CONFIG_FILES"; then 25109 25110 25111ac_cr=`echo X | tr X '\015'` 25112# On cygwin, bash can eat \r inside `` if the user requested igncr. 25113# But we know of no other shell where ac_cr would be empty at this 25114# point, so we can use a bashism as a fallback. 25115if test "x$ac_cr" = x; then 25116 eval ac_cr=\$\'\\r\' 25117fi 25118ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 25119if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 25120 ac_cs_awk_cr='\\r' 25121else 25122 ac_cs_awk_cr=$ac_cr 25123fi 25124 25125echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 25126_ACEOF 25127 25128 25129{ 25130 echo "cat >conf$$subs.awk <<_ACEOF" && 25131 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 25132 echo "_ACEOF" 25133} >conf$$subs.sh || 25134 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 25135ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 25136ac_delim='%!_!# ' 25137for ac_last_try in false false false false false :; do 25138 . ./conf$$subs.sh || 25139 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 25140 25141 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 25142 if test $ac_delim_n = $ac_delim_num; then 25143 break 25144 elif $ac_last_try; then 25145 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 25146 else 25147 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 25148 fi 25149done 25150rm -f conf$$subs.sh 25151 25152cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25153cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 25154_ACEOF 25155sed -n ' 25156h 25157s/^/S["/; s/!.*/"]=/ 25158p 25159g 25160s/^[^!]*!// 25161:repl 25162t repl 25163s/'"$ac_delim"'$// 25164t delim 25165:nl 25166h 25167s/\(.\{148\}\)..*/\1/ 25168t more1 25169s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 25170p 25171n 25172b repl 25173:more1 25174s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 25175p 25176g 25177s/.\{148\}// 25178t nl 25179:delim 25180h 25181s/\(.\{148\}\)..*/\1/ 25182t more2 25183s/["\\]/\\&/g; s/^/"/; s/$/"/ 25184p 25185b 25186:more2 25187s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 25188p 25189g 25190s/.\{148\}// 25191t delim 25192' <conf$$subs.awk | sed ' 25193/^[^""]/{ 25194 N 25195 s/\n// 25196} 25197' >>$CONFIG_STATUS || ac_write_fail=1 25198rm -f conf$$subs.awk 25199cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25200_ACAWK 25201cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 25202 for (key in S) S_is_set[key] = 1 25203 FS = "" 25204 25205} 25206{ 25207 line = $ 0 25208 nfields = split(line, field, "@") 25209 substed = 0 25210 len = length(field[1]) 25211 for (i = 2; i < nfields; i++) { 25212 key = field[i] 25213 keylen = length(key) 25214 if (S_is_set[key]) { 25215 value = S[key] 25216 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 25217 len += length(value) + length(field[++i]) 25218 substed = 1 25219 } else 25220 len += 1 + keylen 25221 } 25222 25223 print line 25224} 25225 25226_ACAWK 25227_ACEOF 25228cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25229if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 25230 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 25231else 25232 cat 25233fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 25234 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 25235_ACEOF 25236 25237# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 25238# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 25239# trailing colons and then remove the whole line if VPATH becomes empty 25240# (actually we leave an empty line to preserve line numbers). 25241if test "x$srcdir" = x.; then 25242 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 25243h 25244s/// 25245s/^/:/ 25246s/[ ]*$/:/ 25247s/:\$(srcdir):/:/g 25248s/:\${srcdir}:/:/g 25249s/:@srcdir@:/:/g 25250s/^:*// 25251s/:*$// 25252x 25253s/\(=[ ]*\).*/\1/ 25254G 25255s/\n// 25256s/^[^=]*=[ ]*$// 25257}' 25258fi 25259 25260cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25261fi # test -n "$CONFIG_FILES" 25262 25263# Set up the scripts for CONFIG_HEADERS section. 25264# No need to generate them if there are no CONFIG_HEADERS. 25265# This happens for instance with `./config.status Makefile'. 25266if test -n "$CONFIG_HEADERS"; then 25267cat >"$ac_tmp/defines.awk" <<\_ACAWK || 25268BEGIN { 25269_ACEOF 25270 25271# Transform confdefs.h into an awk script `defines.awk', embedded as 25272# here-document in config.status, that substitutes the proper values into 25273# config.h.in to produce config.h. 25274 25275# Create a delimiter string that does not exist in confdefs.h, to ease 25276# handling of long lines. 25277ac_delim='%!_!# ' 25278for ac_last_try in false false :; do 25279 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 25280 if test -z "$ac_tt"; then 25281 break 25282 elif $ac_last_try; then 25283 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 25284 else 25285 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 25286 fi 25287done 25288 25289# For the awk script, D is an array of macro values keyed by name, 25290# likewise P contains macro parameters if any. Preserve backslash 25291# newline sequences. 25292 25293ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 25294sed -n ' 25295s/.\{148\}/&'"$ac_delim"'/g 25296t rset 25297:rset 25298s/^[ ]*#[ ]*define[ ][ ]*/ / 25299t def 25300d 25301:def 25302s/\\$// 25303t bsnl 25304s/["\\]/\\&/g 25305s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 25306D["\1"]=" \3"/p 25307s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 25308d 25309:bsnl 25310s/["\\]/\\&/g 25311s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 25312D["\1"]=" \3\\\\\\n"\\/p 25313t cont 25314s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 25315t cont 25316d 25317:cont 25318n 25319s/.\{148\}/&'"$ac_delim"'/g 25320t clear 25321:clear 25322s/\\$// 25323t bsnlc 25324s/["\\]/\\&/g; s/^/"/; s/$/"/p 25325d 25326:bsnlc 25327s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 25328b cont 25329' <confdefs.h | sed ' 25330s/'"$ac_delim"'/"\\\ 25331"/g' >>$CONFIG_STATUS || ac_write_fail=1 25332 25333cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25334 for (key in D) D_is_set[key] = 1 25335 FS = "" 25336} 25337/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 25338 line = \$ 0 25339 split(line, arg, " ") 25340 if (arg[1] == "#") { 25341 defundef = arg[2] 25342 mac1 = arg[3] 25343 } else { 25344 defundef = substr(arg[1], 2) 25345 mac1 = arg[2] 25346 } 25347 split(mac1, mac2, "(") #) 25348 macro = mac2[1] 25349 prefix = substr(line, 1, index(line, defundef) - 1) 25350 if (D_is_set[macro]) { 25351 # Preserve the white space surrounding the "#". 25352 print prefix "define", macro P[macro] D[macro] 25353 next 25354 } else { 25355 # Replace #undef with comments. This is necessary, for example, 25356 # in the case of _POSIX_SOURCE, which is predefined and required 25357 # on some systems where configure will not decide to define it. 25358 if (defundef == "undef") { 25359 print "/*", prefix defundef, macro, "*/" 25360 next 25361 } 25362 } 25363} 25364{ print } 25365_ACAWK 25366_ACEOF 25367cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25368 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 25369fi # test -n "$CONFIG_HEADERS" 25370 25371 25372eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 25373shift 25374for ac_tag 25375do 25376 case $ac_tag in 25377 :[FHLC]) ac_mode=$ac_tag; continue;; 25378 esac 25379 case $ac_mode$ac_tag in 25380 :[FHL]*:*);; 25381 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 25382 :[FH]-) ac_tag=-:-;; 25383 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 25384 esac 25385 ac_save_IFS=$IFS 25386 IFS=: 25387 set x $ac_tag 25388 IFS=$ac_save_IFS 25389 shift 25390 ac_file=$1 25391 shift 25392 25393 case $ac_mode in 25394 :L) ac_source=$1;; 25395 :[FH]) 25396 ac_file_inputs= 25397 for ac_f 25398 do 25399 case $ac_f in 25400 -) ac_f="$ac_tmp/stdin";; 25401 *) # Look for the file first in the build tree, then in the source tree 25402 # (if the path is not absolute). The absolute path cannot be DOS-style, 25403 # because $ac_f cannot contain `:'. 25404 test -f "$ac_f" || 25405 case $ac_f in 25406 [\\/$]*) false;; 25407 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 25408 esac || 25409 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 25410 esac 25411 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 25412 as_fn_append ac_file_inputs " '$ac_f'" 25413 done 25414 25415 # Let's still pretend it is `configure' which instantiates (i.e., don't 25416 # use $as_me), people would be surprised to read: 25417 # /* config.h. Generated by config.status. */ 25418 configure_input='Generated from '` 25419 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 25420 `' by configure.' 25421 if test x"$ac_file" != x-; then 25422 configure_input="$ac_file. $configure_input" 25423 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 25424$as_echo "$as_me: creating $ac_file" >&6;} 25425 fi 25426 # Neutralize special characters interpreted by sed in replacement strings. 25427 case $configure_input in #( 25428 *\&* | *\|* | *\\* ) 25429 ac_sed_conf_input=`$as_echo "$configure_input" | 25430 sed 's/[\\\\&|]/\\\\&/g'`;; #( 25431 *) ac_sed_conf_input=$configure_input;; 25432 esac 25433 25434 case $ac_tag in 25435 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 25436 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 25437 esac 25438 ;; 25439 esac 25440 25441 ac_dir=`$as_dirname -- "$ac_file" || 25442$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25443 X"$ac_file" : 'X\(//\)[^/]' \| \ 25444 X"$ac_file" : 'X\(//\)$' \| \ 25445 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 25446$as_echo X"$ac_file" | 25447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25448 s//\1/ 25449 q 25450 } 25451 /^X\(\/\/\)[^/].*/{ 25452 s//\1/ 25453 q 25454 } 25455 /^X\(\/\/\)$/{ 25456 s//\1/ 25457 q 25458 } 25459 /^X\(\/\).*/{ 25460 s//\1/ 25461 q 25462 } 25463 s/.*/./; q'` 25464 as_dir="$ac_dir"; as_fn_mkdir_p 25465 ac_builddir=. 25466 25467case "$ac_dir" in 25468.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 25469*) 25470 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 25471 # A ".." for each directory in $ac_dir_suffix. 25472 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 25473 case $ac_top_builddir_sub in 25474 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 25475 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 25476 esac ;; 25477esac 25478ac_abs_top_builddir=$ac_pwd 25479ac_abs_builddir=$ac_pwd$ac_dir_suffix 25480# for backward compatibility: 25481ac_top_builddir=$ac_top_build_prefix 25482 25483case $srcdir in 25484 .) # We are building in place. 25485 ac_srcdir=. 25486 ac_top_srcdir=$ac_top_builddir_sub 25487 ac_abs_top_srcdir=$ac_pwd ;; 25488 [\\/]* | ?:[\\/]* ) # Absolute name. 25489 ac_srcdir=$srcdir$ac_dir_suffix; 25490 ac_top_srcdir=$srcdir 25491 ac_abs_top_srcdir=$srcdir ;; 25492 *) # Relative name. 25493 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 25494 ac_top_srcdir=$ac_top_build_prefix$srcdir 25495 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 25496esac 25497ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 25498 25499 25500 case $ac_mode in 25501 :F) 25502 # 25503 # CONFIG_FILE 25504 # 25505 25506 case $INSTALL in 25507 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 25508 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 25509 esac 25510_ACEOF 25511 25512cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25513# If the template does not know about datarootdir, expand it. 25514# FIXME: This hack should be removed a few years after 2.60. 25515ac_datarootdir_hack=; ac_datarootdir_seen= 25516ac_sed_dataroot=' 25517/datarootdir/ { 25518 p 25519 q 25520} 25521/@datadir@/p 25522/@docdir@/p 25523/@infodir@/p 25524/@localedir@/p 25525/@mandir@/p' 25526case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 25527*datarootdir*) ac_datarootdir_seen=yes;; 25528*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 25529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 25530$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 25531_ACEOF 25532cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25533 ac_datarootdir_hack=' 25534 s&@datadir@&$datadir&g 25535 s&@docdir@&$docdir&g 25536 s&@infodir@&$infodir&g 25537 s&@localedir@&$localedir&g 25538 s&@mandir@&$mandir&g 25539 s&\\\${datarootdir}&$datarootdir&g' ;; 25540esac 25541_ACEOF 25542 25543# Neutralize VPATH when `$srcdir' = `.'. 25544# Shell code in configure.ac might set extrasub. 25545# FIXME: do we really want to maintain this feature? 25546cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25547ac_sed_extra="$ac_vpsub 25548$extrasub 25549_ACEOF 25550cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25551:t 25552/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 25553s|@configure_input@|$ac_sed_conf_input|;t t 25554s&@top_builddir@&$ac_top_builddir_sub&;t t 25555s&@top_build_prefix@&$ac_top_build_prefix&;t t 25556s&@srcdir@&$ac_srcdir&;t t 25557s&@abs_srcdir@&$ac_abs_srcdir&;t t 25558s&@top_srcdir@&$ac_top_srcdir&;t t 25559s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 25560s&@builddir@&$ac_builddir&;t t 25561s&@abs_builddir@&$ac_abs_builddir&;t t 25562s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 25563s&@INSTALL@&$ac_INSTALL&;t t 25564$ac_datarootdir_hack 25565" 25566eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 25567 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 25568 25569test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 25570 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 25571 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 25572 "$ac_tmp/out"`; test -z "$ac_out"; } && 25573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 25574which seems to be undefined. Please make sure it is defined" >&5 25575$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 25576which seems to be undefined. Please make sure it is defined" >&2;} 25577 25578 rm -f "$ac_tmp/stdin" 25579 case $ac_file in 25580 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 25581 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 25582 esac \ 25583 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 25584 ;; 25585 :H) 25586 # 25587 # CONFIG_HEADER 25588 # 25589 if test x"$ac_file" != x-; then 25590 { 25591 $as_echo "/* $configure_input */" \ 25592 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 25593 } >"$ac_tmp/config.h" \ 25594 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 25595 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 25596 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 25597$as_echo "$as_me: $ac_file is unchanged" >&6;} 25598 else 25599 rm -f "$ac_file" 25600 mv "$ac_tmp/config.h" "$ac_file" \ 25601 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 25602 fi 25603 else 25604 $as_echo "/* $configure_input */" \ 25605 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 25606 || as_fn_error $? "could not create -" "$LINENO" 5 25607 fi 25608 ;; 25609 25610 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 25611$as_echo "$as_me: executing $ac_file commands" >&6;} 25612 ;; 25613 esac 25614 25615 25616 case $ac_file$ac_mode in 25617 "default":C) 25618chmod +x apu-$APRUTIL_MAJOR_VERSION-config 25619 ;; 25620 25621 esac 25622done # for ac_tag 25623 25624 25625as_fn_exit 0 25626_ACEOF 25627ac_clean_files=$ac_clean_files_save 25628 25629test $ac_write_fail = 0 || 25630 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 25631 25632 25633# configure is writing to config.log, and then calls config.status. 25634# config.status does its own redirection, appending to config.log. 25635# Unfortunately, on DOS this fails, as config.log is still kept open 25636# by configure, so config.status won't be able to write to it; its 25637# output is simply discarded. So we exec the FD to /dev/null, 25638# effectively closing config.log, so it can be properly (re)opened and 25639# appended to by config.status. When coming back to configure, we 25640# need to make the FD available again. 25641if test "$no_create" != yes; then 25642 ac_cs_success=: 25643 ac_config_status_args= 25644 test "$silent" = yes && 25645 ac_config_status_args="$ac_config_status_args --quiet" 25646 exec 5>/dev/null 25647 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 25648 exec 5>>config.log 25649 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 25650 # would make configure fail if this is the last instruction. 25651 $ac_cs_success || as_fn_exit 1 25652fi 25653if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 25654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 25655$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 25656fi 25657
| 18234 # We generate a separate cache variable for each prefix and libname 18235 # we search under. That way, we avoid caching information that 18236 # changes if the user runs `configure' with a different set of 18237 # switches. 18238 18239 cache_id="`echo apu_cv_check_berkeley_db_1_-1_-1_${bdb_header}_${bdb_libname}_in_${bdb_place} \ 18240 | sed -e 's/[^a-zA-Z0-9_]/_/g'`" 18241 18242 18243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -l$bdb_libname" >&5 18244$as_echo_n "checking for -l$bdb_libname... " >&6; } 18245 if eval \${$cache_id+:} false; then : 18246 $as_echo_n "(cached) " >&6 18247else 18248 18249 18250 apu_try_berkeley_db_save_libs="$LIBS" 18251 18252 apu_check_berkeley_db_major=1 18253 apu_check_berkeley_db_minor=-1 18254 apu_check_berkeley_db_patch=-1 18255 apu_try_berkeley_db_header=$bdb_header 18256 apu_try_berkeley_db_libname=$bdb_libname 18257 18258 LIBS="$LIBS -l$apu_try_berkeley_db_libname" 18259 if test "$cross_compiling" = yes; then : 18260 apu_try_berkeley_db=yes 18261 18262else 18263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18264/* end confdefs.h. */ 18265 18266#include <stdlib.h> 18267#include <stdio.h> 18268#include <$apu_try_berkeley_db_header> 18269main () 18270{ 18271 int major, minor, patch; 18272 18273 db_version(&major, &minor, &patch); 18274 18275 /* Sanity check: ensure that db.h constants actually match the db library */ 18276 if (major != DB_VERSION_MAJOR 18277 || minor != DB_VERSION_MINOR 18278 || patch != DB_VERSION_PATCH) 18279 exit (1); 18280 18281 /* Run-time check: ensure the library claims to be the correct version. */ 18282 18283 if ($apu_check_berkeley_db_major != -1) { 18284 if (major < $apu_check_berkeley_db_major) 18285 exit (1); 18286 if (major > $apu_check_berkeley_db_major) 18287 exit (0); 18288 } 18289 18290 if ($apu_check_berkeley_db_minor != -1) { 18291 if (minor < $apu_check_berkeley_db_minor) 18292 exit (1); 18293 if (minor > $apu_check_berkeley_db_minor) 18294 exit (0); 18295 } 18296 18297 if ($apu_check_berkeley_db_patch == -1 18298 || patch >= $apu_check_berkeley_db_patch) 18299 exit (0); 18300 else 18301 exit (1); 18302} 18303 18304_ACEOF 18305if ac_fn_c_try_run "$LINENO"; then : 18306 apu_try_berkeley_db=yes 18307else 18308 apu_try_berkeley_db=no 18309fi 18310rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18311 conftest.$ac_objext conftest.beam conftest.$ac_ext 18312fi 18313 18314 18315 LIBS="$apu_try_berkeley_db_save_libs" 18316 18317 18318 eval "$cache_id=$apu_try_berkeley_db" 18319 18320fi 18321 18322 result="`eval echo '$'$cache_id`" 18323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 18324$as_echo "$result" >&6; } 18325 elif test "1" = "1"; then 18326 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_dbopen" | $as_tr_sh` 18327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -l$bdb_libname" >&5 18328$as_echo_n "checking for dbopen in -l$bdb_libname... " >&6; } 18329if eval \${$as_ac_Lib+:} false; then : 18330 $as_echo_n "(cached) " >&6 18331else 18332 ac_check_lib_save_LIBS=$LIBS 18333LIBS="-l$bdb_libname $LIBS" 18334cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18335/* end confdefs.h. */ 18336 18337/* Override any GCC internal prototype to avoid an error. 18338 Use char because int might match the return type of a GCC 18339 builtin and then its argument prototype would still apply. */ 18340#ifdef __cplusplus 18341extern "C" 18342#endif 18343char dbopen (); 18344int 18345main () 18346{ 18347return dbopen (); 18348 ; 18349 return 0; 18350} 18351_ACEOF 18352if ac_fn_c_try_link "$LINENO"; then : 18353 eval "$as_ac_Lib=yes" 18354else 18355 eval "$as_ac_Lib=no" 18356fi 18357rm -f core conftest.err conftest.$ac_objext \ 18358 conftest$ac_exeext conftest.$ac_ext 18359LIBS=$ac_check_lib_save_LIBS 18360fi 18361eval ac_res=\$$as_ac_Lib 18362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18363$as_echo "$ac_res" >&6; } 18364if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 18365 result=yes 18366else 18367 result=no 18368 18369fi 18370 18371 elif test "1" = "2"; then 18372 as_ac_Lib=`$as_echo "ac_cv_lib_$bdb_libname''_db_open" | $as_tr_sh` 18373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -l$bdb_libname" >&5 18374$as_echo_n "checking for db_open in -l$bdb_libname... " >&6; } 18375if eval \${$as_ac_Lib+:} false; then : 18376 $as_echo_n "(cached) " >&6 18377else 18378 ac_check_lib_save_LIBS=$LIBS 18379LIBS="-l$bdb_libname $LIBS" 18380cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18381/* end confdefs.h. */ 18382 18383/* Override any GCC internal prototype to avoid an error. 18384 Use char because int might match the return type of a GCC 18385 builtin and then its argument prototype would still apply. */ 18386#ifdef __cplusplus 18387extern "C" 18388#endif 18389char db_open (); 18390int 18391main () 18392{ 18393return db_open (); 18394 ; 18395 return 0; 18396} 18397_ACEOF 18398if ac_fn_c_try_link "$LINENO"; then : 18399 eval "$as_ac_Lib=yes" 18400else 18401 eval "$as_ac_Lib=no" 18402fi 18403rm -f core conftest.err conftest.$ac_objext \ 18404 conftest$ac_exeext conftest.$ac_ext 18405LIBS=$ac_check_lib_save_LIBS 18406fi 18407eval ac_res=\$$as_ac_Lib 18408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18409$as_echo "$ac_res" >&6; } 18410if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 18411 result=yes 18412else 18413 result=no 18414 18415fi 18416 18417 fi 18418 18419else 18420 result="no" 18421fi 18422 18423 18424 18425 # If we found it, no need to search any more. 18426 if test "$result" = "yes"; then 18427 found="$bdb_place" 18428 break 18429 fi 18430 done 18431 test "$found" != "not" && break 18432 done 18433 test "$found" != "not" && break 18434 done 18435 18436 # Restore the original values of the flags we tweak. 18437 LDFLAGS="$apu_check_lib_save_ldflags" 18438 CPPFLAGS="$apu_check_lib_save_cppflags" 18439 18440 case "$found" in 18441 "not") 18442 apu_have_db=0 18443 ;; 18444 "std") 18445 apu_db_header=$bdb_header 18446 apu_db_lib=$bdb_libname 18447 apu_have_db=1 18448 ;; 18449 *":"*) 18450 header="`echo $found | sed -e 's/:.*$//'`" 18451 lib="`echo $found | sed -e 's/^.*://'`" 18452 18453 18454 if test "x$APRUTIL_INCLUDES" = "x"; then 18455 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$header\"" 18456 APRUTIL_INCLUDES="-I$header" 18457 else 18458 apr_addto_bugger="-I$header" 18459 for i in $apr_addto_bugger; do 18460 apr_addto_duplicate="0" 18461 for j in $APRUTIL_INCLUDES; do 18462 if test "x$i" = "x$j"; then 18463 apr_addto_duplicate="1" 18464 break 18465 fi 18466 done 18467 if test $apr_addto_duplicate = "0"; then 18468 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 18469 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 18470 fi 18471 done 18472 fi 18473 18474 18475 if test "x$APRUTIL_LDFLAGS" = "x"; then 18476 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$lib\"" 18477 APRUTIL_LDFLAGS="-L$lib" 18478 else 18479 apr_addto_bugger="-L$lib" 18480 for i in $apr_addto_bugger; do 18481 apr_addto_duplicate="0" 18482 for j in $APRUTIL_LDFLAGS; do 18483 if test "x$i" = "x$j"; then 18484 apr_addto_duplicate="1" 18485 break 18486 fi 18487 done 18488 if test $apr_addto_duplicate = "0"; then 18489 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 18490 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 18491 fi 18492 done 18493 fi 18494 18495 apu_db_header=$bdb_header 18496 apu_db_lib=$bdb_libname 18497 apu_have_db=1 18498 ;; 18499 *) 18500 18501 if test "x$APRUTIL_INCLUDES" = "x"; then 18502 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$found/include\"" 18503 APRUTIL_INCLUDES="-I$found/include" 18504 else 18505 apr_addto_bugger="-I$found/include" 18506 for i in $apr_addto_bugger; do 18507 apr_addto_duplicate="0" 18508 for j in $APRUTIL_INCLUDES; do 18509 if test "x$i" = "x$j"; then 18510 apr_addto_duplicate="1" 18511 break 18512 fi 18513 done 18514 if test $apr_addto_duplicate = "0"; then 18515 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 18516 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 18517 fi 18518 done 18519 fi 18520 18521 18522 if test "x$APRUTIL_LDFLAGS" = "x"; then 18523 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$found/lib\"" 18524 APRUTIL_LDFLAGS="-L$found/lib" 18525 else 18526 apr_addto_bugger="-L$found/lib" 18527 for i in $apr_addto_bugger; do 18528 apr_addto_duplicate="0" 18529 for j in $APRUTIL_LDFLAGS; do 18530 if test "x$i" = "x$j"; then 18531 apr_addto_duplicate="1" 18532 break 18533 fi 18534 done 18535 if test $apr_addto_duplicate = "0"; then 18536 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 18537 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 18538 fi 18539 done 18540 fi 18541 18542 apu_db_header=$bdb_header 18543 apu_db_lib=$bdb_libname 18544 apu_have_db=1 18545 ;; 18546 esac 18547 18548 if test "$apu_have_db" = "1"; then 18549 apu_db_version=185 18550 fi 18551 18552 fi 18553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB" >&5 18554$as_echo_n "checking for Berkeley DB... " >&6; } 18555 if test "$apu_have_db" = "1"; then 18556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found db$apu_db_version" >&5 18557$as_echo "found db$apu_db_version" >&6; } 18558 else 18559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18560$as_echo "not found" >&6; } 18561 fi 18562 18563 ;; 18564 esac 18565 18566 if test "$apu_have_db" = "0"; then 18567 as_fn_error $? "Berkeley DB not found." "$LINENO" 5 18568 fi 18569 fi 18570 18571fi 18572 18573 18574 if test -n "$apu_db_xtra_libs"; then 18575 LIBS="$saveddbxtralibs" 18576 fi 18577 18578 case "$requested" in 18579 sdbm | gdbm | ndbm | db) 18580 eval "apu_use_$requested=1" 18581 apu_default_dbm=$requested 18582 ;; 18583 db185 | db[123456]) 18584 apu_use_db=1 18585 apu_default_dbm=$requested 18586 ;; 18587 db[456][0-9]) 18588 apu_use_db=1 18589 apu_default_dbm=`echo $requested | sed -e 's/.$//'` 18590 ;; 18591 default) 18592 apu_default_dbm="sdbm (default)" 18593 apu_use_sdbm=1 18594 ;; 18595 *) 18596 as_fn_error $? "--with-dbm=$requested is an unknown DBM type. 18597 Use one of: $dbm_list" "$LINENO" 5 18598 ;; 18599 esac 18600 18601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default DBM" >&5 18602$as_echo_n "checking for default DBM... " >&6; } 18603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_default_dbm" >&5 18604$as_echo "$apu_default_dbm" >&6; } 18605 18606 18607 18608 18609 18610 18611 18612 18613 18614 18615 18616 18617 18618 if test "$apu_have_db" = "1"; then 18619 18620 if test "x$LDADD_dbm_db" = "x"; then 18621 test "x$silent" != "xyes" && echo " setting LDADD_dbm_db to \"-l$apu_db_lib\"" 18622 LDADD_dbm_db="-l$apu_db_lib" 18623 else 18624 apr_addto_bugger="-l$apu_db_lib" 18625 for i in $apr_addto_bugger; do 18626 apr_addto_duplicate="0" 18627 for j in $LDADD_dbm_db; do 18628 if test "x$i" = "x$j"; then 18629 apr_addto_duplicate="1" 18630 break 18631 fi 18632 done 18633 if test $apr_addto_duplicate = "0"; then 18634 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbm_db" 18635 LDADD_dbm_db="$LDADD_dbm_db $i" 18636 fi 18637 done 18638 fi 18639 18640 if test -n "apu_db_xtra_libs"; then 18641 18642 if test "x$LDADD_dbm_db" = "x"; then 18643 test "x$silent" != "xyes" && echo " setting LDADD_dbm_db to \"$apu_db_xtra_libs\"" 18644 LDADD_dbm_db="$apu_db_xtra_libs" 18645 else 18646 apr_addto_bugger="$apu_db_xtra_libs" 18647 for i in $apr_addto_bugger; do 18648 apr_addto_duplicate="0" 18649 for j in $LDADD_dbm_db; do 18650 if test "x$i" = "x$j"; then 18651 apr_addto_duplicate="1" 18652 break 18653 fi 18654 done 18655 if test $apr_addto_duplicate = "0"; then 18656 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbm_db" 18657 LDADD_dbm_db="$LDADD_dbm_db $i" 18658 fi 18659 done 18660 fi 18661 18662 fi 18663 fi 18664 18665 if test "$apu_have_gdbm" = "1"; then 18666 18667 if test "x$LDADD_dbm_gdbm" = "x"; then 18668 test "x$silent" != "xyes" && echo " setting LDADD_dbm_gdbm to \"-lgdbm\"" 18669 LDADD_dbm_gdbm="-lgdbm" 18670 else 18671 apr_addto_bugger="-lgdbm" 18672 for i in $apr_addto_bugger; do 18673 apr_addto_duplicate="0" 18674 for j in $LDADD_dbm_gdbm; do 18675 if test "x$i" = "x$j"; then 18676 apr_addto_duplicate="1" 18677 break 18678 fi 18679 done 18680 if test $apr_addto_duplicate = "0"; then 18681 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbm_gdbm" 18682 LDADD_dbm_gdbm="$LDADD_dbm_gdbm $i" 18683 fi 18684 done 18685 fi 18686 18687 fi 18688 18689 if test "$apu_have_ndbm" = "1"; then 18690 18691 if test "x$LDADD_dbm_ndbm" = "x"; then 18692 test "x$silent" != "xyes" && echo " setting LDADD_dbm_ndbm to \"-l$apu_ndbm_lib\"" 18693 LDADD_dbm_ndbm="-l$apu_ndbm_lib" 18694 else 18695 apr_addto_bugger="-l$apu_ndbm_lib" 18696 for i in $apr_addto_bugger; do 18697 apr_addto_duplicate="0" 18698 for j in $LDADD_dbm_ndbm; do 18699 if test "x$i" = "x$j"; then 18700 apr_addto_duplicate="1" 18701 break 18702 fi 18703 done 18704 if test $apr_addto_duplicate = "0"; then 18705 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbm_ndbm" 18706 LDADD_dbm_ndbm="$LDADD_dbm_ndbm $i" 18707 fi 18708 done 18709 fi 18710 18711 fi 18712 18713 18714 18715 18716 18717 18718 apu_have_pgsql=0 18719 18720 old_libs="$LIBS" 18721 old_cppflags="$CPPFLAGS" 18722 old_ldflags="$LDFLAGS" 18723 18724 18725# Check whether --with-pgsql was given. 18726if test "${with_pgsql+set}" = set; then : 18727 withval=$with_pgsql; 18728 if test "$withval" = "yes"; then 18729 # Extract the first word of "pg_config", so it can be a program name with args. 18730set dummy pg_config; ac_word=$2 18731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18732$as_echo_n "checking for $ac_word... " >&6; } 18733if ${ac_cv_path_PGSQL_CONFIG+:} false; then : 18734 $as_echo_n "(cached) " >&6 18735else 18736 case $PGSQL_CONFIG in 18737 [\\/]* | ?:[\\/]*) 18738 ac_cv_path_PGSQL_CONFIG="$PGSQL_CONFIG" # Let the user override the test with a path. 18739 ;; 18740 *) 18741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18742for as_dir in $PATH 18743do 18744 IFS=$as_save_IFS 18745 test -z "$as_dir" && as_dir=. 18746 for ac_exec_ext in '' $ac_executable_extensions; do 18747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18748 ac_cv_path_PGSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext" 18749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18750 break 2 18751 fi 18752done 18753 done 18754IFS=$as_save_IFS 18755 18756 ;; 18757esac 18758fi 18759PGSQL_CONFIG=$ac_cv_path_PGSQL_CONFIG 18760if test -n "$PGSQL_CONFIG"; then 18761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGSQL_CONFIG" >&5 18762$as_echo "$PGSQL_CONFIG" >&6; } 18763else 18764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18765$as_echo "no" >&6; } 18766fi 18767 18768 18769 if test "x$PGSQL_CONFIG" != 'x'; then 18770 pgsql_CPPFLAGS="-I`$PGSQL_CONFIG --includedir`" 18771 pgsql_LDFLAGS="-L`$PGSQL_CONFIG --libdir`" 18772 18773 18774 if test "x$CPPFLAGS" = "x"; then 18775 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$pgsql_CPPFLAGS\"" 18776 CPPFLAGS="$pgsql_CPPFLAGS" 18777 else 18778 apr_addto_bugger="$pgsql_CPPFLAGS" 18779 for i in $apr_addto_bugger; do 18780 apr_addto_duplicate="0" 18781 for j in $CPPFLAGS; do 18782 if test "x$i" = "x$j"; then 18783 apr_addto_duplicate="1" 18784 break 18785 fi 18786 done 18787 if test $apr_addto_duplicate = "0"; then 18788 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 18789 CPPFLAGS="$CPPFLAGS $i" 18790 fi 18791 done 18792 fi 18793 18794 18795 if test "x$LDFLAGS" = "x"; then 18796 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$pgsql_LDFLAGS\"" 18797 LDFLAGS="$pgsql_LDFLAGS" 18798 else 18799 apr_addto_bugger="$pgsql_LDFLAGS" 18800 for i in $apr_addto_bugger; do 18801 apr_addto_duplicate="0" 18802 for j in $LDFLAGS; do 18803 if test "x$i" = "x$j"; then 18804 apr_addto_duplicate="1" 18805 break 18806 fi 18807 done 18808 if test $apr_addto_duplicate = "0"; then 18809 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 18810 LDFLAGS="$LDFLAGS $i" 18811 fi 18812 done 18813 fi 18814 18815 fi 18816 18817 for ac_header in libpq-fe.h 18818do : 18819 ac_fn_c_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default" 18820if test "x$ac_cv_header_libpq_fe_h" = xyes; then : 18821 cat >>confdefs.h <<_ACEOF 18822#define HAVE_LIBPQ_FE_H 1 18823_ACEOF 18824 18825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 18826$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } 18827if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : 18828 $as_echo_n "(cached) " >&6 18829else 18830 ac_check_lib_save_LIBS=$LIBS 18831LIBS="-lpq $LIBS" 18832cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18833/* end confdefs.h. */ 18834 18835/* Override any GCC internal prototype to avoid an error. 18836 Use char because int might match the return type of a GCC 18837 builtin and then its argument prototype would still apply. */ 18838#ifdef __cplusplus 18839extern "C" 18840#endif 18841char PQsendQueryPrepared (); 18842int 18843main () 18844{ 18845return PQsendQueryPrepared (); 18846 ; 18847 return 0; 18848} 18849_ACEOF 18850if ac_fn_c_try_link "$LINENO"; then : 18851 ac_cv_lib_pq_PQsendQueryPrepared=yes 18852else 18853 ac_cv_lib_pq_PQsendQueryPrepared=no 18854fi 18855rm -f core conftest.err conftest.$ac_objext \ 18856 conftest$ac_exeext conftest.$ac_ext 18857LIBS=$ac_check_lib_save_LIBS 18858fi 18859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 18860$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } 18861if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : 18862 apu_have_pgsql=1 18863else 18864 18865 if test "x$PGSQL_CONFIG" != 'x'; then 18866 unset ac_cv_lib_pq_PQsendQueryPrepared 18867 pgsql_LIBS="`$PGSQL_CONFIG --libs`" 18868 18869 if test "x$LIBS" = "x"; then 18870 test "x$silent" != "xyes" && echo " setting LIBS to \"$pgsql_LIBS\"" 18871 LIBS="$pgsql_LIBS" 18872 else 18873 apr_addto_bugger="$pgsql_LIBS" 18874 for i in $apr_addto_bugger; do 18875 apr_addto_duplicate="0" 18876 for j in $LIBS; do 18877 if test "x$i" = "x$j"; then 18878 apr_addto_duplicate="1" 18879 break 18880 fi 18881 done 18882 if test $apr_addto_duplicate = "0"; then 18883 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 18884 LIBS="$LIBS $i" 18885 fi 18886 done 18887 fi 18888 18889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 18890$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } 18891if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : 18892 $as_echo_n "(cached) " >&6 18893else 18894 ac_check_lib_save_LIBS=$LIBS 18895LIBS="-lpq $LIBS" 18896cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18897/* end confdefs.h. */ 18898 18899/* Override any GCC internal prototype to avoid an error. 18900 Use char because int might match the return type of a GCC 18901 builtin and then its argument prototype would still apply. */ 18902#ifdef __cplusplus 18903extern "C" 18904#endif 18905char PQsendQueryPrepared (); 18906int 18907main () 18908{ 18909return PQsendQueryPrepared (); 18910 ; 18911 return 0; 18912} 18913_ACEOF 18914if ac_fn_c_try_link "$LINENO"; then : 18915 ac_cv_lib_pq_PQsendQueryPrepared=yes 18916else 18917 ac_cv_lib_pq_PQsendQueryPrepared=no 18918fi 18919rm -f core conftest.err conftest.$ac_objext \ 18920 conftest$ac_exeext conftest.$ac_ext 18921LIBS=$ac_check_lib_save_LIBS 18922fi 18923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 18924$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } 18925if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : 18926 apu_have_pgsql=1 18927fi 18928 18929 fi 18930 18931fi 18932 18933 18934fi 18935 18936done 18937 18938 if test "$apu_have_pgsql" = "0"; then 18939 for ac_header in postgresql/libpq-fe.h 18940do : 18941 ac_fn_c_check_header_mongrel "$LINENO" "postgresql/libpq-fe.h" "ac_cv_header_postgresql_libpq_fe_h" "$ac_includes_default" 18942if test "x$ac_cv_header_postgresql_libpq_fe_h" = xyes; then : 18943 cat >>confdefs.h <<_ACEOF 18944#define HAVE_POSTGRESQL_LIBPQ_FE_H 1 18945_ACEOF 18946 18947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 18948$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } 18949if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : 18950 $as_echo_n "(cached) " >&6 18951else 18952 ac_check_lib_save_LIBS=$LIBS 18953LIBS="-lpq $LIBS" 18954cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18955/* end confdefs.h. */ 18956 18957/* Override any GCC internal prototype to avoid an error. 18958 Use char because int might match the return type of a GCC 18959 builtin and then its argument prototype would still apply. */ 18960#ifdef __cplusplus 18961extern "C" 18962#endif 18963char PQsendQueryPrepared (); 18964int 18965main () 18966{ 18967return PQsendQueryPrepared (); 18968 ; 18969 return 0; 18970} 18971_ACEOF 18972if ac_fn_c_try_link "$LINENO"; then : 18973 ac_cv_lib_pq_PQsendQueryPrepared=yes 18974else 18975 ac_cv_lib_pq_PQsendQueryPrepared=no 18976fi 18977rm -f core conftest.err conftest.$ac_objext \ 18978 conftest$ac_exeext conftest.$ac_ext 18979LIBS=$ac_check_lib_save_LIBS 18980fi 18981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 18982$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } 18983if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : 18984 apu_have_pgsql=1 18985else 18986 18987 if test "x$PGSQL_CONFIG" != 'x'; then 18988 unset ac_cv_lib_pq_PQsendQueryPrepared 18989 pgsql_LIBS="`$PGSQL_CONFIG --libs`" 18990 18991 if test "x$LIBS" = "x"; then 18992 test "x$silent" != "xyes" && echo " setting LIBS to \"$pgsql_LIBS\"" 18993 LIBS="$pgsql_LIBS" 18994 else 18995 apr_addto_bugger="$pgsql_LIBS" 18996 for i in $apr_addto_bugger; do 18997 apr_addto_duplicate="0" 18998 for j in $LIBS; do 18999 if test "x$i" = "x$j"; then 19000 apr_addto_duplicate="1" 19001 break 19002 fi 19003 done 19004 if test $apr_addto_duplicate = "0"; then 19005 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 19006 LIBS="$LIBS $i" 19007 fi 19008 done 19009 fi 19010 19011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 19012$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } 19013if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : 19014 $as_echo_n "(cached) " >&6 19015else 19016 ac_check_lib_save_LIBS=$LIBS 19017LIBS="-lpq $LIBS" 19018cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19019/* end confdefs.h. */ 19020 19021/* Override any GCC internal prototype to avoid an error. 19022 Use char because int might match the return type of a GCC 19023 builtin and then its argument prototype would still apply. */ 19024#ifdef __cplusplus 19025extern "C" 19026#endif 19027char PQsendQueryPrepared (); 19028int 19029main () 19030{ 19031return PQsendQueryPrepared (); 19032 ; 19033 return 0; 19034} 19035_ACEOF 19036if ac_fn_c_try_link "$LINENO"; then : 19037 ac_cv_lib_pq_PQsendQueryPrepared=yes 19038else 19039 ac_cv_lib_pq_PQsendQueryPrepared=no 19040fi 19041rm -f core conftest.err conftest.$ac_objext \ 19042 conftest$ac_exeext conftest.$ac_ext 19043LIBS=$ac_check_lib_save_LIBS 19044fi 19045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 19046$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } 19047if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : 19048 apu_have_pgsql=1 19049fi 19050 19051 fi 19052 19053fi 19054 19055 19056fi 19057 19058done 19059 19060 fi 19061 if test "$apu_have_pgsql" != "0" && test "x$PGSQL_CONFIG" != 'x'; then 19062 19063 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 19064 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"$pgsql_CPPFLAGS\"" 19065 APRUTIL_PRIV_INCLUDES="$pgsql_CPPFLAGS" 19066 else 19067 apr_addto_bugger="$pgsql_CPPFLAGS" 19068 for i in $apr_addto_bugger; do 19069 apr_addto_duplicate="0" 19070 for j in $APRUTIL_PRIV_INCLUDES; do 19071 if test "x$i" = "x$j"; then 19072 apr_addto_duplicate="1" 19073 break 19074 fi 19075 done 19076 if test $apr_addto_duplicate = "0"; then 19077 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 19078 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 19079 fi 19080 done 19081 fi 19082 19083 fi 19084 elif test "$withval" = "no"; then 19085 : 19086 else 19087 # Extract the first word of "pg_config", so it can be a program name with args. 19088set dummy pg_config; ac_word=$2 19089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19090$as_echo_n "checking for $ac_word... " >&6; } 19091if ${ac_cv_path_PGSQL_CONFIG+:} false; then : 19092 $as_echo_n "(cached) " >&6 19093else 19094 case $PGSQL_CONFIG in 19095 [\\/]* | ?:[\\/]*) 19096 ac_cv_path_PGSQL_CONFIG="$PGSQL_CONFIG" # Let the user override the test with a path. 19097 ;; 19098 *) 19099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19100for as_dir in $withval/bin 19101do 19102 IFS=$as_save_IFS 19103 test -z "$as_dir" && as_dir=. 19104 for ac_exec_ext in '' $ac_executable_extensions; do 19105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19106 ac_cv_path_PGSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19108 break 2 19109 fi 19110done 19111 done 19112IFS=$as_save_IFS 19113 19114 ;; 19115esac 19116fi 19117PGSQL_CONFIG=$ac_cv_path_PGSQL_CONFIG 19118if test -n "$PGSQL_CONFIG"; then 19119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGSQL_CONFIG" >&5 19120$as_echo "$PGSQL_CONFIG" >&6; } 19121else 19122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19123$as_echo "no" >&6; } 19124fi 19125 19126 19127 if test "x$PGSQL_CONFIG" != 'x'; then 19128 pgsql_CPPFLAGS="-I`$PGSQL_CONFIG --includedir`" 19129 pgsql_LDFLAGS="-L`$PGSQL_CONFIG --libdir`" 19130 else 19131 pgsql_CPPFLAGS="-I$withval/include" 19132 pgsql_LDFLAGS="-L$withval/lib " 19133 fi 19134 19135 19136 if test "x$CPPFLAGS" = "x"; then 19137 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$pgsql_CPPFLAGS\"" 19138 CPPFLAGS="$pgsql_CPPFLAGS" 19139 else 19140 apr_addto_bugger="$pgsql_CPPFLAGS" 19141 for i in $apr_addto_bugger; do 19142 apr_addto_duplicate="0" 19143 for j in $CPPFLAGS; do 19144 if test "x$i" = "x$j"; then 19145 apr_addto_duplicate="1" 19146 break 19147 fi 19148 done 19149 if test $apr_addto_duplicate = "0"; then 19150 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 19151 CPPFLAGS="$CPPFLAGS $i" 19152 fi 19153 done 19154 fi 19155 19156 19157 if test "x$LDFLAGS" = "x"; then 19158 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$pgsql_LDFLAGS\"" 19159 LDFLAGS="$pgsql_LDFLAGS" 19160 else 19161 apr_addto_bugger="$pgsql_LDFLAGS" 19162 for i in $apr_addto_bugger; do 19163 apr_addto_duplicate="0" 19164 for j in $LDFLAGS; do 19165 if test "x$i" = "x$j"; then 19166 apr_addto_duplicate="1" 19167 break 19168 fi 19169 done 19170 if test $apr_addto_duplicate = "0"; then 19171 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 19172 LDFLAGS="$LDFLAGS $i" 19173 fi 19174 done 19175 fi 19176 19177 19178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pgsql in $withval" >&5 19179$as_echo "$as_me: checking for pgsql in $withval" >&6;} 19180 for ac_header in libpq-fe.h 19181do : 19182 ac_fn_c_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default" 19183if test "x$ac_cv_header_libpq_fe_h" = xyes; then : 19184 cat >>confdefs.h <<_ACEOF 19185#define HAVE_LIBPQ_FE_H 1 19186_ACEOF 19187 19188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 19189$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } 19190if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : 19191 $as_echo_n "(cached) " >&6 19192else 19193 ac_check_lib_save_LIBS=$LIBS 19194LIBS="-lpq $LIBS" 19195cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19196/* end confdefs.h. */ 19197 19198/* Override any GCC internal prototype to avoid an error. 19199 Use char because int might match the return type of a GCC 19200 builtin and then its argument prototype would still apply. */ 19201#ifdef __cplusplus 19202extern "C" 19203#endif 19204char PQsendQueryPrepared (); 19205int 19206main () 19207{ 19208return PQsendQueryPrepared (); 19209 ; 19210 return 0; 19211} 19212_ACEOF 19213if ac_fn_c_try_link "$LINENO"; then : 19214 ac_cv_lib_pq_PQsendQueryPrepared=yes 19215else 19216 ac_cv_lib_pq_PQsendQueryPrepared=no 19217fi 19218rm -f core conftest.err conftest.$ac_objext \ 19219 conftest$ac_exeext conftest.$ac_ext 19220LIBS=$ac_check_lib_save_LIBS 19221fi 19222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 19223$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } 19224if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : 19225 apu_have_pgsql=1 19226else 19227 19228 if test "x$PGSQL_CONFIG" != 'x'; then 19229 unset ac_cv_lib_pq_PQsendQueryPrepared 19230 pgsql_LIBS="`$PGSQL_CONFIG --libs`" 19231 19232 if test "x$LIBS" = "x"; then 19233 test "x$silent" != "xyes" && echo " setting LIBS to \"$pgsql_LIBS\"" 19234 LIBS="$pgsql_LIBS" 19235 else 19236 apr_addto_bugger="$pgsql_LIBS" 19237 for i in $apr_addto_bugger; do 19238 apr_addto_duplicate="0" 19239 for j in $LIBS; do 19240 if test "x$i" = "x$j"; then 19241 apr_addto_duplicate="1" 19242 break 19243 fi 19244 done 19245 if test $apr_addto_duplicate = "0"; then 19246 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 19247 LIBS="$LIBS $i" 19248 fi 19249 done 19250 fi 19251 19252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 19253$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } 19254if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : 19255 $as_echo_n "(cached) " >&6 19256else 19257 ac_check_lib_save_LIBS=$LIBS 19258LIBS="-lpq $LIBS" 19259cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19260/* end confdefs.h. */ 19261 19262/* Override any GCC internal prototype to avoid an error. 19263 Use char because int might match the return type of a GCC 19264 builtin and then its argument prototype would still apply. */ 19265#ifdef __cplusplus 19266extern "C" 19267#endif 19268char PQsendQueryPrepared (); 19269int 19270main () 19271{ 19272return PQsendQueryPrepared (); 19273 ; 19274 return 0; 19275} 19276_ACEOF 19277if ac_fn_c_try_link "$LINENO"; then : 19278 ac_cv_lib_pq_PQsendQueryPrepared=yes 19279else 19280 ac_cv_lib_pq_PQsendQueryPrepared=no 19281fi 19282rm -f core conftest.err conftest.$ac_objext \ 19283 conftest$ac_exeext conftest.$ac_ext 19284LIBS=$ac_check_lib_save_LIBS 19285fi 19286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 19287$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } 19288if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : 19289 apu_have_pgsql=1 19290fi 19291 19292 fi 19293 19294fi 19295 19296 19297fi 19298 19299done 19300 19301 if test "$apu_have_pgsql" != "1"; then 19302 for ac_header in postgresql/libpq-fe.h 19303do : 19304 ac_fn_c_check_header_mongrel "$LINENO" "postgresql/libpq-fe.h" "ac_cv_header_postgresql_libpq_fe_h" "$ac_includes_default" 19305if test "x$ac_cv_header_postgresql_libpq_fe_h" = xyes; then : 19306 cat >>confdefs.h <<_ACEOF 19307#define HAVE_POSTGRESQL_LIBPQ_FE_H 1 19308_ACEOF 19309 19310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 19311$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } 19312if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : 19313 $as_echo_n "(cached) " >&6 19314else 19315 ac_check_lib_save_LIBS=$LIBS 19316LIBS="-lpq $LIBS" 19317cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19318/* end confdefs.h. */ 19319 19320/* Override any GCC internal prototype to avoid an error. 19321 Use char because int might match the return type of a GCC 19322 builtin and then its argument prototype would still apply. */ 19323#ifdef __cplusplus 19324extern "C" 19325#endif 19326char PQsendQueryPrepared (); 19327int 19328main () 19329{ 19330return PQsendQueryPrepared (); 19331 ; 19332 return 0; 19333} 19334_ACEOF 19335if ac_fn_c_try_link "$LINENO"; then : 19336 ac_cv_lib_pq_PQsendQueryPrepared=yes 19337else 19338 ac_cv_lib_pq_PQsendQueryPrepared=no 19339fi 19340rm -f core conftest.err conftest.$ac_objext \ 19341 conftest$ac_exeext conftest.$ac_ext 19342LIBS=$ac_check_lib_save_LIBS 19343fi 19344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 19345$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } 19346if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : 19347 apu_have_pgsql=1 19348else 19349 19350 if test "x$PGSQL_CONFIG" != 'x'; then 19351 unset ac_cv_lib_pq_PQsendQueryPrepared 19352 pgsql_LIBS="`$PGSQL_CONFIG --libs`" 19353 19354 if test "x$LIBS" = "x"; then 19355 test "x$silent" != "xyes" && echo " setting LIBS to \"$pgsql_LIBS\"" 19356 LIBS="$pgsql_LIBS" 19357 else 19358 apr_addto_bugger="$pgsql_LIBS" 19359 for i in $apr_addto_bugger; do 19360 apr_addto_duplicate="0" 19361 for j in $LIBS; do 19362 if test "x$i" = "x$j"; then 19363 apr_addto_duplicate="1" 19364 break 19365 fi 19366 done 19367 if test $apr_addto_duplicate = "0"; then 19368 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 19369 LIBS="$LIBS $i" 19370 fi 19371 done 19372 fi 19373 19374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 19375$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } 19376if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : 19377 $as_echo_n "(cached) " >&6 19378else 19379 ac_check_lib_save_LIBS=$LIBS 19380LIBS="-lpq $LIBS" 19381cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19382/* end confdefs.h. */ 19383 19384/* Override any GCC internal prototype to avoid an error. 19385 Use char because int might match the return type of a GCC 19386 builtin and then its argument prototype would still apply. */ 19387#ifdef __cplusplus 19388extern "C" 19389#endif 19390char PQsendQueryPrepared (); 19391int 19392main () 19393{ 19394return PQsendQueryPrepared (); 19395 ; 19396 return 0; 19397} 19398_ACEOF 19399if ac_fn_c_try_link "$LINENO"; then : 19400 ac_cv_lib_pq_PQsendQueryPrepared=yes 19401else 19402 ac_cv_lib_pq_PQsendQueryPrepared=no 19403fi 19404rm -f core conftest.err conftest.$ac_objext \ 19405 conftest$ac_exeext conftest.$ac_ext 19406LIBS=$ac_check_lib_save_LIBS 19407fi 19408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 19409$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } 19410if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : 19411 apu_have_pgsql=1 19412fi 19413 19414 fi 19415 19416fi 19417 19418 19419fi 19420 19421done 19422 19423 fi 19424 if test "$apu_have_pgsql" != "0"; then 19425 19426 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 19427 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"$pgsql_CPPFLAGS\"" 19428 APRUTIL_PRIV_INCLUDES="$pgsql_CPPFLAGS" 19429 else 19430 apr_addto_bugger="$pgsql_CPPFLAGS" 19431 for i in $apr_addto_bugger; do 19432 apr_addto_duplicate="0" 19433 for j in $APRUTIL_PRIV_INCLUDES; do 19434 if test "x$i" = "x$j"; then 19435 apr_addto_duplicate="1" 19436 break 19437 fi 19438 done 19439 if test $apr_addto_duplicate = "0"; then 19440 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 19441 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 19442 fi 19443 done 19444 fi 19445 19446 fi 19447 fi 19448 19449else 19450 19451 # Extract the first word of "pg_config", so it can be a program name with args. 19452set dummy pg_config; ac_word=$2 19453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19454$as_echo_n "checking for $ac_word... " >&6; } 19455if ${ac_cv_path_PGSQL_CONFIG+:} false; then : 19456 $as_echo_n "(cached) " >&6 19457else 19458 case $PGSQL_CONFIG in 19459 [\\/]* | ?:[\\/]*) 19460 ac_cv_path_PGSQL_CONFIG="$PGSQL_CONFIG" # Let the user override the test with a path. 19461 ;; 19462 *) 19463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19464for as_dir in $PATH 19465do 19466 IFS=$as_save_IFS 19467 test -z "$as_dir" && as_dir=. 19468 for ac_exec_ext in '' $ac_executable_extensions; do 19469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19470 ac_cv_path_PGSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19472 break 2 19473 fi 19474done 19475 done 19476IFS=$as_save_IFS 19477 19478 ;; 19479esac 19480fi 19481PGSQL_CONFIG=$ac_cv_path_PGSQL_CONFIG 19482if test -n "$PGSQL_CONFIG"; then 19483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGSQL_CONFIG" >&5 19484$as_echo "$PGSQL_CONFIG" >&6; } 19485else 19486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19487$as_echo "no" >&6; } 19488fi 19489 19490 19491 if test "x$PGSQL_CONFIG" != 'x'; then 19492 pgsql_CPPFLAGS="-I`$PGSQL_CONFIG --includedir`" 19493 pgsql_LDFLAGS="-L`$PGSQL_CONFIG --libdir`" 19494 19495 19496 if test "x$CPPFLAGS" = "x"; then 19497 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$pgsql_CPPFLAGS\"" 19498 CPPFLAGS="$pgsql_CPPFLAGS" 19499 else 19500 apr_addto_bugger="$pgsql_CPPFLAGS" 19501 for i in $apr_addto_bugger; do 19502 apr_addto_duplicate="0" 19503 for j in $CPPFLAGS; do 19504 if test "x$i" = "x$j"; then 19505 apr_addto_duplicate="1" 19506 break 19507 fi 19508 done 19509 if test $apr_addto_duplicate = "0"; then 19510 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 19511 CPPFLAGS="$CPPFLAGS $i" 19512 fi 19513 done 19514 fi 19515 19516 19517 if test "x$LDFLAGS" = "x"; then 19518 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$pgsql_LDFLAGS\"" 19519 LDFLAGS="$pgsql_LDFLAGS" 19520 else 19521 apr_addto_bugger="$pgsql_LDFLAGS" 19522 for i in $apr_addto_bugger; do 19523 apr_addto_duplicate="0" 19524 for j in $LDFLAGS; do 19525 if test "x$i" = "x$j"; then 19526 apr_addto_duplicate="1" 19527 break 19528 fi 19529 done 19530 if test $apr_addto_duplicate = "0"; then 19531 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 19532 LDFLAGS="$LDFLAGS $i" 19533 fi 19534 done 19535 fi 19536 19537 fi 19538 19539 for ac_header in libpq-fe.h 19540do : 19541 ac_fn_c_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default" 19542if test "x$ac_cv_header_libpq_fe_h" = xyes; then : 19543 cat >>confdefs.h <<_ACEOF 19544#define HAVE_LIBPQ_FE_H 1 19545_ACEOF 19546 19547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 19548$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } 19549if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : 19550 $as_echo_n "(cached) " >&6 19551else 19552 ac_check_lib_save_LIBS=$LIBS 19553LIBS="-lpq $LIBS" 19554cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19555/* end confdefs.h. */ 19556 19557/* Override any GCC internal prototype to avoid an error. 19558 Use char because int might match the return type of a GCC 19559 builtin and then its argument prototype would still apply. */ 19560#ifdef __cplusplus 19561extern "C" 19562#endif 19563char PQsendQueryPrepared (); 19564int 19565main () 19566{ 19567return PQsendQueryPrepared (); 19568 ; 19569 return 0; 19570} 19571_ACEOF 19572if ac_fn_c_try_link "$LINENO"; then : 19573 ac_cv_lib_pq_PQsendQueryPrepared=yes 19574else 19575 ac_cv_lib_pq_PQsendQueryPrepared=no 19576fi 19577rm -f core conftest.err conftest.$ac_objext \ 19578 conftest$ac_exeext conftest.$ac_ext 19579LIBS=$ac_check_lib_save_LIBS 19580fi 19581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 19582$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } 19583if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : 19584 apu_have_pgsql=1 19585else 19586 19587 if test "x$PGSQL_CONFIG" != 'x'; then 19588 unset ac_cv_lib_pq_PQsendQueryPrepared 19589 pgsql_LIBS="`$PGSQL_CONFIG --libs`" 19590 19591 if test "x$LIBS" = "x"; then 19592 test "x$silent" != "xyes" && echo " setting LIBS to \"$pgsql_LIBS\"" 19593 LIBS="$pgsql_LIBS" 19594 else 19595 apr_addto_bugger="$pgsql_LIBS" 19596 for i in $apr_addto_bugger; do 19597 apr_addto_duplicate="0" 19598 for j in $LIBS; do 19599 if test "x$i" = "x$j"; then 19600 apr_addto_duplicate="1" 19601 break 19602 fi 19603 done 19604 if test $apr_addto_duplicate = "0"; then 19605 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 19606 LIBS="$LIBS $i" 19607 fi 19608 done 19609 fi 19610 19611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 19612$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } 19613if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : 19614 $as_echo_n "(cached) " >&6 19615else 19616 ac_check_lib_save_LIBS=$LIBS 19617LIBS="-lpq $LIBS" 19618cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19619/* end confdefs.h. */ 19620 19621/* Override any GCC internal prototype to avoid an error. 19622 Use char because int might match the return type of a GCC 19623 builtin and then its argument prototype would still apply. */ 19624#ifdef __cplusplus 19625extern "C" 19626#endif 19627char PQsendQueryPrepared (); 19628int 19629main () 19630{ 19631return PQsendQueryPrepared (); 19632 ; 19633 return 0; 19634} 19635_ACEOF 19636if ac_fn_c_try_link "$LINENO"; then : 19637 ac_cv_lib_pq_PQsendQueryPrepared=yes 19638else 19639 ac_cv_lib_pq_PQsendQueryPrepared=no 19640fi 19641rm -f core conftest.err conftest.$ac_objext \ 19642 conftest$ac_exeext conftest.$ac_ext 19643LIBS=$ac_check_lib_save_LIBS 19644fi 19645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 19646$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } 19647if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : 19648 apu_have_pgsql=1 19649fi 19650 19651 fi 19652 19653fi 19654 19655 19656fi 19657 19658done 19659 19660 if test "$apu_have_pgsql" = "0"; then 19661 for ac_header in postgresql/libpq-fe.h 19662do : 19663 ac_fn_c_check_header_mongrel "$LINENO" "postgresql/libpq-fe.h" "ac_cv_header_postgresql_libpq_fe_h" "$ac_includes_default" 19664if test "x$ac_cv_header_postgresql_libpq_fe_h" = xyes; then : 19665 cat >>confdefs.h <<_ACEOF 19666#define HAVE_POSTGRESQL_LIBPQ_FE_H 1 19667_ACEOF 19668 19669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 19670$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } 19671if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : 19672 $as_echo_n "(cached) " >&6 19673else 19674 ac_check_lib_save_LIBS=$LIBS 19675LIBS="-lpq $LIBS" 19676cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19677/* end confdefs.h. */ 19678 19679/* Override any GCC internal prototype to avoid an error. 19680 Use char because int might match the return type of a GCC 19681 builtin and then its argument prototype would still apply. */ 19682#ifdef __cplusplus 19683extern "C" 19684#endif 19685char PQsendQueryPrepared (); 19686int 19687main () 19688{ 19689return PQsendQueryPrepared (); 19690 ; 19691 return 0; 19692} 19693_ACEOF 19694if ac_fn_c_try_link "$LINENO"; then : 19695 ac_cv_lib_pq_PQsendQueryPrepared=yes 19696else 19697 ac_cv_lib_pq_PQsendQueryPrepared=no 19698fi 19699rm -f core conftest.err conftest.$ac_objext \ 19700 conftest$ac_exeext conftest.$ac_ext 19701LIBS=$ac_check_lib_save_LIBS 19702fi 19703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 19704$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } 19705if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : 19706 apu_have_pgsql=1 19707else 19708 19709 if test "x$PGSQL_CONFIG" != 'x'; then 19710 unset ac_cv_lib_pq_PQsendQueryPrepared 19711 pgsql_LIBS="`$PGSQL_CONFIG --libs`" 19712 19713 if test "x$LIBS" = "x"; then 19714 test "x$silent" != "xyes" && echo " setting LIBS to \"$pgsql_LIBS\"" 19715 LIBS="$pgsql_LIBS" 19716 else 19717 apr_addto_bugger="$pgsql_LIBS" 19718 for i in $apr_addto_bugger; do 19719 apr_addto_duplicate="0" 19720 for j in $LIBS; do 19721 if test "x$i" = "x$j"; then 19722 apr_addto_duplicate="1" 19723 break 19724 fi 19725 done 19726 if test $apr_addto_duplicate = "0"; then 19727 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 19728 LIBS="$LIBS $i" 19729 fi 19730 done 19731 fi 19732 19733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5 19734$as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; } 19735if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then : 19736 $as_echo_n "(cached) " >&6 19737else 19738 ac_check_lib_save_LIBS=$LIBS 19739LIBS="-lpq $LIBS" 19740cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19741/* end confdefs.h. */ 19742 19743/* Override any GCC internal prototype to avoid an error. 19744 Use char because int might match the return type of a GCC 19745 builtin and then its argument prototype would still apply. */ 19746#ifdef __cplusplus 19747extern "C" 19748#endif 19749char PQsendQueryPrepared (); 19750int 19751main () 19752{ 19753return PQsendQueryPrepared (); 19754 ; 19755 return 0; 19756} 19757_ACEOF 19758if ac_fn_c_try_link "$LINENO"; then : 19759 ac_cv_lib_pq_PQsendQueryPrepared=yes 19760else 19761 ac_cv_lib_pq_PQsendQueryPrepared=no 19762fi 19763rm -f core conftest.err conftest.$ac_objext \ 19764 conftest$ac_exeext conftest.$ac_ext 19765LIBS=$ac_check_lib_save_LIBS 19766fi 19767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5 19768$as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; } 19769if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then : 19770 apu_have_pgsql=1 19771fi 19772 19773 fi 19774 19775fi 19776 19777 19778fi 19779 19780done 19781 19782 fi 19783 if test "$apu_have_pgsql" != "0" && test "x$PGSQL_CONFIG" != 'x'; then 19784 19785 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 19786 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"$pgsql_CPPFLAGS\"" 19787 APRUTIL_PRIV_INCLUDES="$pgsql_CPPFLAGS" 19788 else 19789 apr_addto_bugger="$pgsql_CPPFLAGS" 19790 for i in $apr_addto_bugger; do 19791 apr_addto_duplicate="0" 19792 for j in $APRUTIL_PRIV_INCLUDES; do 19793 if test "x$i" = "x$j"; then 19794 apr_addto_duplicate="1" 19795 break 19796 fi 19797 done 19798 if test $apr_addto_duplicate = "0"; then 19799 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 19800 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 19801 fi 19802 done 19803 fi 19804 19805 fi 19806 19807fi 19808 19809 19810 if test "$apu_have_pgsql" = "1"; then 19811 19812 if test "x$LDADD_dbd_pgsql" = "x"; then 19813 test "x$silent" != "xyes" && echo " setting LDADD_dbd_pgsql to \"$pgsql_LDFLAGS -lpq $pgsql_LIBS\"" 19814 LDADD_dbd_pgsql="$pgsql_LDFLAGS -lpq $pgsql_LIBS" 19815 else 19816 apr_addto_bugger="$pgsql_LDFLAGS -lpq $pgsql_LIBS" 19817 for i in $apr_addto_bugger; do 19818 apr_addto_duplicate="0" 19819 for j in $LDADD_dbd_pgsql; do 19820 if test "x$i" = "x$j"; then 19821 apr_addto_duplicate="1" 19822 break 19823 fi 19824 done 19825 if test $apr_addto_duplicate = "0"; then 19826 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbd_pgsql" 19827 LDADD_dbd_pgsql="$LDADD_dbd_pgsql $i" 19828 fi 19829 done 19830 fi 19831 19832 fi 19833 19834 19835 LIBS="$old_libs" 19836 CPPFLAGS="$old_cppflags" 19837 LDFLAGS="$old_ldflags" 19838 19839 19840 apu_have_mysql=0 19841 19842 old_libs="$LIBS" 19843 old_cppflags="$CPPFLAGS" 19844 old_ldflags="$LDFLAGS" 19845 19846 19847# Check whether --with-mysql was given. 19848if test "${with_mysql+set}" = set; then : 19849 withval=$with_mysql; 19850 if test "$withval" = "yes"; then 19851 # Extract the first word of "mysql_config", so it can be a program name with args. 19852set dummy mysql_config; ac_word=$2 19853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19854$as_echo_n "checking for $ac_word... " >&6; } 19855if ${ac_cv_path_MYSQL_CONFIG+:} false; then : 19856 $as_echo_n "(cached) " >&6 19857else 19858 case $MYSQL_CONFIG in 19859 [\\/]* | ?:[\\/]*) 19860 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path. 19861 ;; 19862 *) 19863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19864for as_dir in $PATH 19865do 19866 IFS=$as_save_IFS 19867 test -z "$as_dir" && as_dir=. 19868 for ac_exec_ext in '' $ac_executable_extensions; do 19869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19870 ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19872 break 2 19873 fi 19874done 19875 done 19876IFS=$as_save_IFS 19877 19878 ;; 19879esac 19880fi 19881MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG 19882if test -n "$MYSQL_CONFIG"; then 19883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5 19884$as_echo "$MYSQL_CONFIG" >&6; } 19885else 19886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19887$as_echo "no" >&6; } 19888fi 19889 19890 19891 if test "x$MYSQL_CONFIG" != 'x'; then 19892 mysql_CPPFLAGS="`$MYSQL_CONFIG --include`" 19893 mysql_LDFLAGS="`$MYSQL_CONFIG --libs_r | sed -e 's/-l[^ ]\+//g'`" 19894 mysql_LIBS="`$MYSQL_CONFIG --libs_r`" 19895 19896 19897 if test "x$CPPFLAGS" = "x"; then 19898 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$mysql_CPPFLAGS\"" 19899 CPPFLAGS="$mysql_CPPFLAGS" 19900 else 19901 apr_addto_bugger="$mysql_CPPFLAGS" 19902 for i in $apr_addto_bugger; do 19903 apr_addto_duplicate="0" 19904 for j in $CPPFLAGS; do 19905 if test "x$i" = "x$j"; then 19906 apr_addto_duplicate="1" 19907 break 19908 fi 19909 done 19910 if test $apr_addto_duplicate = "0"; then 19911 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 19912 CPPFLAGS="$CPPFLAGS $i" 19913 fi 19914 done 19915 fi 19916 19917 19918 if test "x$LIBS" = "x"; then 19919 test "x$silent" != "xyes" && echo " setting LIBS to \"$mysql_LIBS\"" 19920 LIBS="$mysql_LIBS" 19921 else 19922 apr_addto_bugger="$mysql_LIBS" 19923 for i in $apr_addto_bugger; do 19924 apr_addto_duplicate="0" 19925 for j in $LIBS; do 19926 if test "x$i" = "x$j"; then 19927 apr_addto_duplicate="1" 19928 break 19929 fi 19930 done 19931 if test $apr_addto_duplicate = "0"; then 19932 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 19933 LIBS="$LIBS $i" 19934 fi 19935 done 19936 fi 19937 19938 fi 19939 19940 for ac_header in mysql.h my_global.h my_sys.h 19941do : 19942 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19943ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <my_global.h> 19944" 19945if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19946 cat >>confdefs.h <<_ACEOF 19947#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19948_ACEOF 19949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient_r" >&5 19950$as_echo_n "checking for mysql_init in -lmysqlclient_r... " >&6; } 19951if ${ac_cv_lib_mysqlclient_r_mysql_init+:} false; then : 19952 $as_echo_n "(cached) " >&6 19953else 19954 ac_check_lib_save_LIBS=$LIBS 19955LIBS="-lmysqlclient_r $LIBS" 19956cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19957/* end confdefs.h. */ 19958 19959/* Override any GCC internal prototype to avoid an error. 19960 Use char because int might match the return type of a GCC 19961 builtin and then its argument prototype would still apply. */ 19962#ifdef __cplusplus 19963extern "C" 19964#endif 19965char mysql_init (); 19966int 19967main () 19968{ 19969return mysql_init (); 19970 ; 19971 return 0; 19972} 19973_ACEOF 19974if ac_fn_c_try_link "$LINENO"; then : 19975 ac_cv_lib_mysqlclient_r_mysql_init=yes 19976else 19977 ac_cv_lib_mysqlclient_r_mysql_init=no 19978fi 19979rm -f core conftest.err conftest.$ac_objext \ 19980 conftest$ac_exeext conftest.$ac_ext 19981LIBS=$ac_check_lib_save_LIBS 19982fi 19983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_init" >&5 19984$as_echo "$ac_cv_lib_mysqlclient_r_mysql_init" >&6; } 19985if test "x$ac_cv_lib_mysqlclient_r_mysql_init" = xyes; then : 19986 apu_have_mysql=1 19987fi 19988 19989else 19990 apu_have_mysql=0; break 19991fi 19992 19993done 19994 19995 if test "$apu_have_mysql" = "0"; then 19996 for ac_header in mysql/mysql.h mysql/my_global.h mysql/my_sys.h 19997do : 19998 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19999ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <mysql/my_global.h> 20000" 20001if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20002 cat >>confdefs.h <<_ACEOF 20003#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20004_ACEOF 20005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient_r" >&5 20006$as_echo_n "checking for mysql_init in -lmysqlclient_r... " >&6; } 20007if ${ac_cv_lib_mysqlclient_r_mysql_init+:} false; then : 20008 $as_echo_n "(cached) " >&6 20009else 20010 ac_check_lib_save_LIBS=$LIBS 20011LIBS="-lmysqlclient_r $LIBS" 20012cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20013/* end confdefs.h. */ 20014 20015/* Override any GCC internal prototype to avoid an error. 20016 Use char because int might match the return type of a GCC 20017 builtin and then its argument prototype would still apply. */ 20018#ifdef __cplusplus 20019extern "C" 20020#endif 20021char mysql_init (); 20022int 20023main () 20024{ 20025return mysql_init (); 20026 ; 20027 return 0; 20028} 20029_ACEOF 20030if ac_fn_c_try_link "$LINENO"; then : 20031 ac_cv_lib_mysqlclient_r_mysql_init=yes 20032else 20033 ac_cv_lib_mysqlclient_r_mysql_init=no 20034fi 20035rm -f core conftest.err conftest.$ac_objext \ 20036 conftest$ac_exeext conftest.$ac_ext 20037LIBS=$ac_check_lib_save_LIBS 20038fi 20039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_init" >&5 20040$as_echo "$ac_cv_lib_mysqlclient_r_mysql_init" >&6; } 20041if test "x$ac_cv_lib_mysqlclient_r_mysql_init" = xyes; then : 20042 apu_have_mysql=1 20043fi 20044 20045else 20046 apu_have_mysql=0; break 20047fi 20048 20049done 20050 20051 fi 20052 if test "$apu_have_mysql" != "0" && test "x$MYSQL_CONFIG" != 'x'; then 20053 20054 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 20055 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"$mysql_CPPFLAGS\"" 20056 APRUTIL_PRIV_INCLUDES="$mysql_CPPFLAGS" 20057 else 20058 apr_addto_bugger="$mysql_CPPFLAGS" 20059 for i in $apr_addto_bugger; do 20060 apr_addto_duplicate="0" 20061 for j in $APRUTIL_PRIV_INCLUDES; do 20062 if test "x$i" = "x$j"; then 20063 apr_addto_duplicate="1" 20064 break 20065 fi 20066 done 20067 if test $apr_addto_duplicate = "0"; then 20068 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 20069 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 20070 fi 20071 done 20072 fi 20073 20074 fi 20075 elif test "$withval" = "no"; then 20076 : 20077 else 20078 # Extract the first word of "mysql_config", so it can be a program name with args. 20079set dummy mysql_config; ac_word=$2 20080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20081$as_echo_n "checking for $ac_word... " >&6; } 20082if ${ac_cv_path_MYSQL_CONFIG+:} false; then : 20083 $as_echo_n "(cached) " >&6 20084else 20085 case $MYSQL_CONFIG in 20086 [\\/]* | ?:[\\/]*) 20087 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path. 20088 ;; 20089 *) 20090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20091for as_dir in $withval/bin 20092do 20093 IFS=$as_save_IFS 20094 test -z "$as_dir" && as_dir=. 20095 for ac_exec_ext in '' $ac_executable_extensions; do 20096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20097 ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20099 break 2 20100 fi 20101done 20102 done 20103IFS=$as_save_IFS 20104 20105 ;; 20106esac 20107fi 20108MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG 20109if test -n "$MYSQL_CONFIG"; then 20110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5 20111$as_echo "$MYSQL_CONFIG" >&6; } 20112else 20113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20114$as_echo "no" >&6; } 20115fi 20116 20117 20118 if test "x$MYSQL_CONFIG" != 'x'; then 20119 mysql_CPPFLAGS="`$MYSQL_CONFIG --include`" 20120 mysql_LDFLAGS="`$MYSQL_CONFIG --libs_r | sed -e 's/-l[^ ]\+//g'`" 20121 mysql_LIBS="`$MYSQL_CONFIG --libs_r`" 20122 else 20123 mysql_CPPFLAGS="-I$withval/include" 20124 mysql_LDFLAGS="-L$withval/lib " 20125 fi 20126 20127 20128 if test "x$CPPFLAGS" = "x"; then 20129 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$mysql_CPPFLAGS\"" 20130 CPPFLAGS="$mysql_CPPFLAGS" 20131 else 20132 apr_addto_bugger="$mysql_CPPFLAGS" 20133 for i in $apr_addto_bugger; do 20134 apr_addto_duplicate="0" 20135 for j in $CPPFLAGS; do 20136 if test "x$i" = "x$j"; then 20137 apr_addto_duplicate="1" 20138 break 20139 fi 20140 done 20141 if test $apr_addto_duplicate = "0"; then 20142 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 20143 CPPFLAGS="$CPPFLAGS $i" 20144 fi 20145 done 20146 fi 20147 20148 20149 if test "x$LDFLAGS" = "x"; then 20150 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$mysql_LDFLAGS\"" 20151 LDFLAGS="$mysql_LDFLAGS" 20152 else 20153 apr_addto_bugger="$mysql_LDFLAGS" 20154 for i in $apr_addto_bugger; do 20155 apr_addto_duplicate="0" 20156 for j in $LDFLAGS; do 20157 if test "x$i" = "x$j"; then 20158 apr_addto_duplicate="1" 20159 break 20160 fi 20161 done 20162 if test $apr_addto_duplicate = "0"; then 20163 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 20164 LDFLAGS="$LDFLAGS $i" 20165 fi 20166 done 20167 fi 20168 20169 20170 if test "x$LIBS" = "x"; then 20171 test "x$silent" != "xyes" && echo " setting LIBS to \"$mysql_LIBS\"" 20172 LIBS="$mysql_LIBS" 20173 else 20174 apr_addto_bugger="$mysql_LIBS" 20175 for i in $apr_addto_bugger; do 20176 apr_addto_duplicate="0" 20177 for j in $LIBS; do 20178 if test "x$i" = "x$j"; then 20179 apr_addto_duplicate="1" 20180 break 20181 fi 20182 done 20183 if test $apr_addto_duplicate = "0"; then 20184 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 20185 LIBS="$LIBS $i" 20186 fi 20187 done 20188 fi 20189 20190 20191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql in $withval" >&5 20192$as_echo "$as_me: checking for mysql in $withval" >&6;} 20193 for ac_header in mysql.h my_global.h my_sys.h 20194do : 20195 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20196ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <my_global.h> 20197" 20198if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20199 cat >>confdefs.h <<_ACEOF 20200#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20201_ACEOF 20202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient_r" >&5 20203$as_echo_n "checking for mysql_init in -lmysqlclient_r... " >&6; } 20204if ${ac_cv_lib_mysqlclient_r_mysql_init+:} false; then : 20205 $as_echo_n "(cached) " >&6 20206else 20207 ac_check_lib_save_LIBS=$LIBS 20208LIBS="-lmysqlclient_r $LIBS" 20209cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20210/* end confdefs.h. */ 20211 20212/* Override any GCC internal prototype to avoid an error. 20213 Use char because int might match the return type of a GCC 20214 builtin and then its argument prototype would still apply. */ 20215#ifdef __cplusplus 20216extern "C" 20217#endif 20218char mysql_init (); 20219int 20220main () 20221{ 20222return mysql_init (); 20223 ; 20224 return 0; 20225} 20226_ACEOF 20227if ac_fn_c_try_link "$LINENO"; then : 20228 ac_cv_lib_mysqlclient_r_mysql_init=yes 20229else 20230 ac_cv_lib_mysqlclient_r_mysql_init=no 20231fi 20232rm -f core conftest.err conftest.$ac_objext \ 20233 conftest$ac_exeext conftest.$ac_ext 20234LIBS=$ac_check_lib_save_LIBS 20235fi 20236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_init" >&5 20237$as_echo "$ac_cv_lib_mysqlclient_r_mysql_init" >&6; } 20238if test "x$ac_cv_lib_mysqlclient_r_mysql_init" = xyes; then : 20239 apu_have_mysql=1 20240fi 20241 20242else 20243 apu_have_mysql=0; break 20244fi 20245 20246done 20247 20248 20249 if test "$apu_have_mysql" != "1"; then 20250 for ac_header in mysql/mysql.h mysql/my_global.h mysql/my_sys.h 20251do : 20252 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20253ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <mysql/my_global.h> 20254" 20255if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20256 cat >>confdefs.h <<_ACEOF 20257#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20258_ACEOF 20259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient_r" >&5 20260$as_echo_n "checking for mysql_init in -lmysqlclient_r... " >&6; } 20261if ${ac_cv_lib_mysqlclient_r_mysql_init+:} false; then : 20262 $as_echo_n "(cached) " >&6 20263else 20264 ac_check_lib_save_LIBS=$LIBS 20265LIBS="-lmysqlclient_r $LIBS" 20266cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20267/* end confdefs.h. */ 20268 20269/* Override any GCC internal prototype to avoid an error. 20270 Use char because int might match the return type of a GCC 20271 builtin and then its argument prototype would still apply. */ 20272#ifdef __cplusplus 20273extern "C" 20274#endif 20275char mysql_init (); 20276int 20277main () 20278{ 20279return mysql_init (); 20280 ; 20281 return 0; 20282} 20283_ACEOF 20284if ac_fn_c_try_link "$LINENO"; then : 20285 ac_cv_lib_mysqlclient_r_mysql_init=yes 20286else 20287 ac_cv_lib_mysqlclient_r_mysql_init=no 20288fi 20289rm -f core conftest.err conftest.$ac_objext \ 20290 conftest$ac_exeext conftest.$ac_ext 20291LIBS=$ac_check_lib_save_LIBS 20292fi 20293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_init" >&5 20294$as_echo "$ac_cv_lib_mysqlclient_r_mysql_init" >&6; } 20295if test "x$ac_cv_lib_mysqlclient_r_mysql_init" = xyes; then : 20296 apu_have_mysql=1 20297fi 20298 20299else 20300 apu_have_mysql=0; break 20301fi 20302 20303done 20304 20305 fi 20306 if test "$apu_have_mysql" != "0"; then 20307 20308 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 20309 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"$mysql_CPPFLAGS\"" 20310 APRUTIL_PRIV_INCLUDES="$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 $APRUTIL_PRIV_INCLUDES; 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 APRUTIL_PRIV_INCLUDES" 20323 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 20324 fi 20325 done 20326 fi 20327 20328 fi 20329 fi 20330 20331fi 20332 20333 20334 20335 20336 if test "$apu_have_mysql" = "1"; then 20337 20338 if test "x$LDADD_dbd_mysql" = "x"; then 20339 test "x$silent" != "xyes" && echo " setting LDADD_dbd_mysql to \"$mysql_LDFLAGS -lmysqlclient_r $mysql_LIBS\"" 20340 LDADD_dbd_mysql="$mysql_LDFLAGS -lmysqlclient_r $mysql_LIBS" 20341 else 20342 apr_addto_bugger="$mysql_LDFLAGS -lmysqlclient_r $mysql_LIBS" 20343 for i in $apr_addto_bugger; do 20344 apr_addto_duplicate="0" 20345 for j in $LDADD_dbd_mysql; do 20346 if test "x$i" = "x$j"; then 20347 apr_addto_duplicate="1" 20348 break 20349 fi 20350 done 20351 if test $apr_addto_duplicate = "0"; then 20352 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbd_mysql" 20353 LDADD_dbd_mysql="$LDADD_dbd_mysql $i" 20354 fi 20355 done 20356 fi 20357 20358 fi 20359 20360 20361 LIBS="$old_libs" 20362 CPPFLAGS="$old_cppflags" 20363 LDFLAGS="$old_ldflags" 20364 20365 20366 apu_have_sqlite3=0 20367 20368 old_libs="$LIBS" 20369 old_cppflags="$CPPFLAGS" 20370 old_ldflags="$LDFLAGS" 20371 20372 20373# Check whether --with-sqlite3 was given. 20374if test "${with_sqlite3+set}" = set; then : 20375 withval=$with_sqlite3; 20376 if test "$withval" = "yes"; then 20377 for ac_header in sqlite3.h 20378do : 20379 ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default" 20380if test "x$ac_cv_header_sqlite3_h" = xyes; then : 20381 cat >>confdefs.h <<_ACEOF 20382#define HAVE_SQLITE3_H 1 20383_ACEOF 20384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5 20385$as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; } 20386if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then : 20387 $as_echo_n "(cached) " >&6 20388else 20389 ac_check_lib_save_LIBS=$LIBS 20390LIBS="-lsqlite3 $LIBS" 20391cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20392/* end confdefs.h. */ 20393 20394/* Override any GCC internal prototype to avoid an error. 20395 Use char because int might match the return type of a GCC 20396 builtin and then its argument prototype would still apply. */ 20397#ifdef __cplusplus 20398extern "C" 20399#endif 20400char sqlite3_open (); 20401int 20402main () 20403{ 20404return sqlite3_open (); 20405 ; 20406 return 0; 20407} 20408_ACEOF 20409if ac_fn_c_try_link "$LINENO"; then : 20410 ac_cv_lib_sqlite3_sqlite3_open=yes 20411else 20412 ac_cv_lib_sqlite3_sqlite3_open=no 20413fi 20414rm -f core conftest.err conftest.$ac_objext \ 20415 conftest$ac_exeext conftest.$ac_ext 20416LIBS=$ac_check_lib_save_LIBS 20417fi 20418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5 20419$as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; } 20420if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then : 20421 apu_have_sqlite3=1 20422fi 20423 20424fi 20425 20426done 20427 20428 elif test "$withval" = "no"; then 20429 : 20430 else 20431 sqlite3_CPPFLAGS="-I$withval/include" 20432 sqlite3_LDFLAGS="-L$withval/lib " 20433 20434 20435 if test "x$CPPFLAGS" = "x"; then 20436 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$sqlite3_CPPFLAGS\"" 20437 CPPFLAGS="$sqlite3_CPPFLAGS" 20438 else 20439 apr_addto_bugger="$sqlite3_CPPFLAGS" 20440 for i in $apr_addto_bugger; do 20441 apr_addto_duplicate="0" 20442 for j in $CPPFLAGS; do 20443 if test "x$i" = "x$j"; then 20444 apr_addto_duplicate="1" 20445 break 20446 fi 20447 done 20448 if test $apr_addto_duplicate = "0"; then 20449 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 20450 CPPFLAGS="$CPPFLAGS $i" 20451 fi 20452 done 20453 fi 20454 20455 20456 if test "x$LDFLAGS" = "x"; then 20457 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$sqlite3_LDFLAGS\"" 20458 LDFLAGS="$sqlite3_LDFLAGS" 20459 else 20460 apr_addto_bugger="$sqlite3_LDFLAGS" 20461 for i in $apr_addto_bugger; do 20462 apr_addto_duplicate="0" 20463 for j in $LDFLAGS; do 20464 if test "x$i" = "x$j"; then 20465 apr_addto_duplicate="1" 20466 break 20467 fi 20468 done 20469 if test $apr_addto_duplicate = "0"; then 20470 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 20471 LDFLAGS="$LDFLAGS $i" 20472 fi 20473 done 20474 fi 20475 20476 20477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3 in $withval" >&5 20478$as_echo "$as_me: checking for sqlite3 in $withval" >&6;} 20479 for ac_header in sqlite3.h 20480do : 20481 ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default" 20482if test "x$ac_cv_header_sqlite3_h" = xyes; then : 20483 cat >>confdefs.h <<_ACEOF 20484#define HAVE_SQLITE3_H 1 20485_ACEOF 20486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5 20487$as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; } 20488if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then : 20489 $as_echo_n "(cached) " >&6 20490else 20491 ac_check_lib_save_LIBS=$LIBS 20492LIBS="-lsqlite3 $LIBS" 20493cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20494/* end confdefs.h. */ 20495 20496/* Override any GCC internal prototype to avoid an error. 20497 Use char because int might match the return type of a GCC 20498 builtin and then its argument prototype would still apply. */ 20499#ifdef __cplusplus 20500extern "C" 20501#endif 20502char sqlite3_open (); 20503int 20504main () 20505{ 20506return sqlite3_open (); 20507 ; 20508 return 0; 20509} 20510_ACEOF 20511if ac_fn_c_try_link "$LINENO"; then : 20512 ac_cv_lib_sqlite3_sqlite3_open=yes 20513else 20514 ac_cv_lib_sqlite3_sqlite3_open=no 20515fi 20516rm -f core conftest.err conftest.$ac_objext \ 20517 conftest$ac_exeext conftest.$ac_ext 20518LIBS=$ac_check_lib_save_LIBS 20519fi 20520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5 20521$as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; } 20522if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then : 20523 apu_have_sqlite3=1 20524fi 20525 20526fi 20527 20528done 20529 20530 if test "$apu_have_sqlite3" != "0"; then 20531 20532 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 20533 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"-I$withval/include\"" 20534 APRUTIL_PRIV_INCLUDES="-I$withval/include" 20535 else 20536 apr_addto_bugger="-I$withval/include" 20537 for i in $apr_addto_bugger; do 20538 apr_addto_duplicate="0" 20539 for j in $APRUTIL_PRIV_INCLUDES; do 20540 if test "x$i" = "x$j"; then 20541 apr_addto_duplicate="1" 20542 break 20543 fi 20544 done 20545 if test $apr_addto_duplicate = "0"; then 20546 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 20547 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 20548 fi 20549 done 20550 fi 20551 20552 fi 20553 fi 20554 20555else 20556 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 20609fi 20610 20611 20612 20613 20614 if test "$apu_have_sqlite3" = "1"; then 20615 20616 if test "x$LDADD_dbd_sqlite3" = "x"; then 20617 test "x$silent" != "xyes" && echo " setting LDADD_dbd_sqlite3 to \"$sqlite3_LDFLAGS -lsqlite3\"" 20618 LDADD_dbd_sqlite3="$sqlite3_LDFLAGS -lsqlite3" 20619 else 20620 apr_addto_bugger="$sqlite3_LDFLAGS -lsqlite3" 20621 for i in $apr_addto_bugger; do 20622 apr_addto_duplicate="0" 20623 for j in $LDADD_dbd_sqlite3; do 20624 if test "x$i" = "x$j"; then 20625 apr_addto_duplicate="1" 20626 break 20627 fi 20628 done 20629 if test $apr_addto_duplicate = "0"; then 20630 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbd_sqlite3" 20631 LDADD_dbd_sqlite3="$LDADD_dbd_sqlite3 $i" 20632 fi 20633 done 20634 fi 20635 20636 fi 20637 20638 20639 LIBS="$old_libs" 20640 CPPFLAGS="$old_cppflags" 20641 LDFLAGS="$old_ldflags" 20642 20643 20644 apu_have_sqlite2=0 20645 20646 old_libs="$LIBS" 20647 old_cppflags="$CPPFLAGS" 20648 old_ldflags="$LDFLAGS" 20649 20650 20651# Check whether --with-sqlite2 was given. 20652if test "${with_sqlite2+set}" = set; then : 20653 withval=$with_sqlite2; 20654 if test "$withval" = "yes"; then 20655 for ac_header in sqlite.h 20656do : 20657 ac_fn_c_check_header_mongrel "$LINENO" "sqlite.h" "ac_cv_header_sqlite_h" "$ac_includes_default" 20658if test "x$ac_cv_header_sqlite_h" = xyes; then : 20659 cat >>confdefs.h <<_ACEOF 20660#define HAVE_SQLITE_H 1 20661_ACEOF 20662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite_open in -lsqlite" >&5 20663$as_echo_n "checking for sqlite_open in -lsqlite... " >&6; } 20664if ${ac_cv_lib_sqlite_sqlite_open+:} false; then : 20665 $as_echo_n "(cached) " >&6 20666else 20667 ac_check_lib_save_LIBS=$LIBS 20668LIBS="-lsqlite $LIBS" 20669cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20670/* end confdefs.h. */ 20671 20672/* Override any GCC internal prototype to avoid an error. 20673 Use char because int might match the return type of a GCC 20674 builtin and then its argument prototype would still apply. */ 20675#ifdef __cplusplus 20676extern "C" 20677#endif 20678char sqlite_open (); 20679int 20680main () 20681{ 20682return sqlite_open (); 20683 ; 20684 return 0; 20685} 20686_ACEOF 20687if ac_fn_c_try_link "$LINENO"; then : 20688 ac_cv_lib_sqlite_sqlite_open=yes 20689else 20690 ac_cv_lib_sqlite_sqlite_open=no 20691fi 20692rm -f core conftest.err conftest.$ac_objext \ 20693 conftest$ac_exeext conftest.$ac_ext 20694LIBS=$ac_check_lib_save_LIBS 20695fi 20696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite_sqlite_open" >&5 20697$as_echo "$ac_cv_lib_sqlite_sqlite_open" >&6; } 20698if test "x$ac_cv_lib_sqlite_sqlite_open" = xyes; then : 20699 apu_have_sqlite2=1 20700fi 20701 20702fi 20703 20704done 20705 20706 elif test "$withval" = "no"; then 20707 : 20708 else 20709 sqlite2_CPPFLAGS="-I$withval/include" 20710 sqlite2_LDFLAGS="-L$withval/lib " 20711 20712 20713 if test "x$CPPFLAGS" = "x"; then 20714 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$sqlite2_CPPFLAGS\"" 20715 CPPFLAGS="$sqlite2_CPPFLAGS" 20716 else 20717 apr_addto_bugger="$sqlite2_CPPFLAGS" 20718 for i in $apr_addto_bugger; do 20719 apr_addto_duplicate="0" 20720 for j in $CPPFLAGS; do 20721 if test "x$i" = "x$j"; then 20722 apr_addto_duplicate="1" 20723 break 20724 fi 20725 done 20726 if test $apr_addto_duplicate = "0"; then 20727 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 20728 CPPFLAGS="$CPPFLAGS $i" 20729 fi 20730 done 20731 fi 20732 20733 20734 if test "x$LDFLAGS" = "x"; then 20735 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$sqlite2_LDFLAGS\"" 20736 LDFLAGS="$sqlite2_LDFLAGS" 20737 else 20738 apr_addto_bugger="$sqlite2_LDFLAGS" 20739 for i in $apr_addto_bugger; do 20740 apr_addto_duplicate="0" 20741 for j in $LDFLAGS; do 20742 if test "x$i" = "x$j"; then 20743 apr_addto_duplicate="1" 20744 break 20745 fi 20746 done 20747 if test $apr_addto_duplicate = "0"; then 20748 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 20749 LDFLAGS="$LDFLAGS $i" 20750 fi 20751 done 20752 fi 20753 20754 20755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite2 in $withval" >&5 20756$as_echo "$as_me: checking for sqlite2 in $withval" >&6;} 20757 for ac_header in sqlite.h 20758do : 20759 ac_fn_c_check_header_mongrel "$LINENO" "sqlite.h" "ac_cv_header_sqlite_h" "$ac_includes_default" 20760if test "x$ac_cv_header_sqlite_h" = xyes; then : 20761 cat >>confdefs.h <<_ACEOF 20762#define HAVE_SQLITE_H 1 20763_ACEOF 20764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite_open in -lsqlite" >&5 20765$as_echo_n "checking for sqlite_open in -lsqlite... " >&6; } 20766if ${ac_cv_lib_sqlite_sqlite_open+:} false; then : 20767 $as_echo_n "(cached) " >&6 20768else 20769 ac_check_lib_save_LIBS=$LIBS 20770LIBS="-lsqlite $LIBS" 20771cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20772/* end confdefs.h. */ 20773 20774/* Override any GCC internal prototype to avoid an error. 20775 Use char because int might match the return type of a GCC 20776 builtin and then its argument prototype would still apply. */ 20777#ifdef __cplusplus 20778extern "C" 20779#endif 20780char sqlite_open (); 20781int 20782main () 20783{ 20784return sqlite_open (); 20785 ; 20786 return 0; 20787} 20788_ACEOF 20789if ac_fn_c_try_link "$LINENO"; then : 20790 ac_cv_lib_sqlite_sqlite_open=yes 20791else 20792 ac_cv_lib_sqlite_sqlite_open=no 20793fi 20794rm -f core conftest.err conftest.$ac_objext \ 20795 conftest$ac_exeext conftest.$ac_ext 20796LIBS=$ac_check_lib_save_LIBS 20797fi 20798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite_sqlite_open" >&5 20799$as_echo "$ac_cv_lib_sqlite_sqlite_open" >&6; } 20800if test "x$ac_cv_lib_sqlite_sqlite_open" = xyes; then : 20801 apu_have_sqlite2=1 20802fi 20803 20804fi 20805 20806done 20807 20808 if test "$apu_have_sqlite2" != "0"; then 20809 20810 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 20811 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"-I$withval/include\"" 20812 APRUTIL_PRIV_INCLUDES="-I$withval/include" 20813 else 20814 apr_addto_bugger="-I$withval/include" 20815 for i in $apr_addto_bugger; do 20816 apr_addto_duplicate="0" 20817 for j in $APRUTIL_PRIV_INCLUDES; do 20818 if test "x$i" = "x$j"; then 20819 apr_addto_duplicate="1" 20820 break 20821 fi 20822 done 20823 if test $apr_addto_duplicate = "0"; then 20824 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 20825 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 20826 fi 20827 done 20828 fi 20829 20830 fi 20831 fi 20832 20833else 20834 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 20887fi 20888 20889 20890 20891 20892 if test "$apu_have_sqlite2" = "1"; then 20893 20894 if test "x$LDADD_dbd_sqlite2" = "x"; then 20895 test "x$silent" != "xyes" && echo " setting LDADD_dbd_sqlite2 to \"$sqlite2_LDFLAGS -lsqlite\"" 20896 LDADD_dbd_sqlite2="$sqlite2_LDFLAGS -lsqlite" 20897 else 20898 apr_addto_bugger="$sqlite2_LDFLAGS -lsqlite" 20899 for i in $apr_addto_bugger; do 20900 apr_addto_duplicate="0" 20901 for j in $LDADD_dbd_sqlite2; do 20902 if test "x$i" = "x$j"; then 20903 apr_addto_duplicate="1" 20904 break 20905 fi 20906 done 20907 if test $apr_addto_duplicate = "0"; then 20908 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbd_sqlite2" 20909 LDADD_dbd_sqlite2="$LDADD_dbd_sqlite2 $i" 20910 fi 20911 done 20912 fi 20913 20914 fi 20915 20916 20917 LIBS="$old_libs" 20918 CPPFLAGS="$old_cppflags" 20919 LDFLAGS="$old_ldflags" 20920 20921 20922 apu_have_oracle=0 20923 20924 old_libs="$LIBS" 20925 old_cppflags="$CPPFLAGS" 20926 old_ldflags="$LDFLAGS" 20927 20928 20929# Check whether --with-oracle-include was given. 20930if test "${with_oracle_include+set}" = set; then : 20931 withval=$with_oracle_include; 20932fi 20933 20934 20935# Check whether --with-oracle was given. 20936if test "${with_oracle+set}" = set; then : 20937 withval=$with_oracle; 20938 if test "$withval" = "yes"; then 20939 if test -n "$with_oracle_include"; then 20940 oracle_CPPFLAGS="$CPPFLAGS -I$with_oracle_include" 20941 20942 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 20943 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"-I$with_oracle_include\"" 20944 APRUTIL_PRIV_INCLUDES="-I$with_oracle_include" 20945 else 20946 apr_addto_bugger="-I$with_oracle_include" 20947 for i in $apr_addto_bugger; do 20948 apr_addto_duplicate="0" 20949 for j in $APRUTIL_PRIV_INCLUDES; do 20950 if test "x$i" = "x$j"; then 20951 apr_addto_duplicate="1" 20952 break 20953 fi 20954 done 20955 if test $apr_addto_duplicate = "0"; then 20956 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 20957 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 20958 fi 20959 done 20960 fi 20961 20962 fi 20963 20964 20965 if test "x$CPPFLAGS" = "x"; then 20966 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$oracle_CPPFLAGS\"" 20967 CPPFLAGS="$oracle_CPPFLAGS" 20968 else 20969 apr_addto_bugger="$oracle_CPPFLAGS" 20970 for i in $apr_addto_bugger; do 20971 apr_addto_duplicate="0" 20972 for j in $CPPFLAGS; do 20973 if test "x$i" = "x$j"; then 20974 apr_addto_duplicate="1" 20975 break 20976 fi 20977 done 20978 if test $apr_addto_duplicate = "0"; then 20979 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 20980 CPPFLAGS="$CPPFLAGS $i" 20981 fi 20982 done 20983 fi 20984 20985 20986 for ac_header in oci.h 20987do : 20988 ac_fn_c_check_header_mongrel "$LINENO" "oci.h" "ac_cv_header_oci_h" "$ac_includes_default" 20989if test "x$ac_cv_header_oci_h" = xyes; then : 20990 cat >>confdefs.h <<_ACEOF 20991#define HAVE_OCI_H 1 20992_ACEOF 20993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvCreate in -lclntsh" >&5 20994$as_echo_n "checking for OCIEnvCreate in -lclntsh... " >&6; } 20995if ${ac_cv_lib_clntsh_OCIEnvCreate+:} false; then : 20996 $as_echo_n "(cached) " >&6 20997else 20998 ac_check_lib_save_LIBS=$LIBS 20999LIBS="-lclntsh $LIBS" 21000cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21001/* end confdefs.h. */ 21002 21003/* Override any GCC internal prototype to avoid an error. 21004 Use char because int might match the return type of a GCC 21005 builtin and then its argument prototype would still apply. */ 21006#ifdef __cplusplus 21007extern "C" 21008#endif 21009char OCIEnvCreate (); 21010int 21011main () 21012{ 21013return OCIEnvCreate (); 21014 ; 21015 return 0; 21016} 21017_ACEOF 21018if ac_fn_c_try_link "$LINENO"; then : 21019 ac_cv_lib_clntsh_OCIEnvCreate=yes 21020else 21021 ac_cv_lib_clntsh_OCIEnvCreate=no 21022fi 21023rm -f core conftest.err conftest.$ac_objext \ 21024 conftest$ac_exeext conftest.$ac_ext 21025LIBS=$ac_check_lib_save_LIBS 21026fi 21027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvCreate" >&5 21028$as_echo "$ac_cv_lib_clntsh_OCIEnvCreate" >&6; } 21029if test "x$ac_cv_lib_clntsh_OCIEnvCreate" = xyes; then : 21030 apu_have_oracle=1 21031else 21032 21033 unset ac_cv_lib_clntsh_OCIEnvCreate 21034 oracle_LIBS="-lnnz11" 21035 21036 if test "x$LIBS" = "x"; then 21037 test "x$silent" != "xyes" && echo " setting LIBS to \"$oracle_LIBS\"" 21038 LIBS="$oracle_LIBS" 21039 else 21040 apr_addto_bugger="$oracle_LIBS" 21041 for i in $apr_addto_bugger; do 21042 apr_addto_duplicate="0" 21043 for j in $LIBS; do 21044 if test "x$i" = "x$j"; then 21045 apr_addto_duplicate="1" 21046 break 21047 fi 21048 done 21049 if test $apr_addto_duplicate = "0"; then 21050 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 21051 LIBS="$LIBS $i" 21052 fi 21053 done 21054 fi 21055 21056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvCreate in -lclntsh" >&5 21057$as_echo_n "checking for OCIEnvCreate in -lclntsh... " >&6; } 21058if ${ac_cv_lib_clntsh_OCIEnvCreate+:} false; then : 21059 $as_echo_n "(cached) " >&6 21060else 21061 ac_check_lib_save_LIBS=$LIBS 21062LIBS="-lclntsh $LIBS" 21063cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21064/* end confdefs.h. */ 21065 21066/* Override any GCC internal prototype to avoid an error. 21067 Use char because int might match the return type of a GCC 21068 builtin and then its argument prototype would still apply. */ 21069#ifdef __cplusplus 21070extern "C" 21071#endif 21072char OCIEnvCreate (); 21073int 21074main () 21075{ 21076return OCIEnvCreate (); 21077 ; 21078 return 0; 21079} 21080_ACEOF 21081if ac_fn_c_try_link "$LINENO"; then : 21082 ac_cv_lib_clntsh_OCIEnvCreate=yes 21083else 21084 ac_cv_lib_clntsh_OCIEnvCreate=no 21085fi 21086rm -f core conftest.err conftest.$ac_objext \ 21087 conftest$ac_exeext conftest.$ac_ext 21088LIBS=$ac_check_lib_save_LIBS 21089fi 21090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvCreate" >&5 21091$as_echo "$ac_cv_lib_clntsh_OCIEnvCreate" >&6; } 21092if test "x$ac_cv_lib_clntsh_OCIEnvCreate" = xyes; then : 21093 apu_have_oracle=1 21094else 21095 21096 unset ac_cv_lib_clntsh_OCIEnvCreate 21097 21098 if test "x$LIBS" = "x$oracle_LIBS"; then 21099 test "x$silent" != "xyes" && echo " nulling LIBS" 21100 LIBS="" 21101 else 21102 apr_new_bugger="" 21103 apr_removed=0 21104 for i in $LIBS; do 21105 if test "x$i" != "x$oracle_LIBS"; then 21106 apr_new_bugger="$apr_new_bugger $i" 21107 else 21108 apr_removed=1 21109 fi 21110 done 21111 if test $apr_removed = "1"; then 21112 test "x$silent" != "xyes" && echo " removed \"$oracle_LIBS\" from LIBS" 21113 LIBS=$apr_new_bugger 21114 fi 21115 fi 21116 21117 oracle_LIBS="-lnnz10" 21118 21119 if test "x$LIBS" = "x"; then 21120 test "x$silent" != "xyes" && echo " setting LIBS to \"$oracle_LIBS\"" 21121 LIBS="$oracle_LIBS" 21122 else 21123 apr_addto_bugger="$oracle_LIBS" 21124 for i in $apr_addto_bugger; do 21125 apr_addto_duplicate="0" 21126 for j in $LIBS; do 21127 if test "x$i" = "x$j"; then 21128 apr_addto_duplicate="1" 21129 break 21130 fi 21131 done 21132 if test $apr_addto_duplicate = "0"; then 21133 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 21134 LIBS="$LIBS $i" 21135 fi 21136 done 21137 fi 21138 21139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvCreate in -lclntsh" >&5 21140$as_echo_n "checking for OCIEnvCreate in -lclntsh... " >&6; } 21141if ${ac_cv_lib_clntsh_OCIEnvCreate+:} false; then : 21142 $as_echo_n "(cached) " >&6 21143else 21144 ac_check_lib_save_LIBS=$LIBS 21145LIBS="-lclntsh $LIBS" 21146cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21147/* end confdefs.h. */ 21148 21149/* Override any GCC internal prototype to avoid an error. 21150 Use char because int might match the return type of a GCC 21151 builtin and then its argument prototype would still apply. */ 21152#ifdef __cplusplus 21153extern "C" 21154#endif 21155char OCIEnvCreate (); 21156int 21157main () 21158{ 21159return OCIEnvCreate (); 21160 ; 21161 return 0; 21162} 21163_ACEOF 21164if ac_fn_c_try_link "$LINENO"; then : 21165 ac_cv_lib_clntsh_OCIEnvCreate=yes 21166else 21167 ac_cv_lib_clntsh_OCIEnvCreate=no 21168fi 21169rm -f core conftest.err conftest.$ac_objext \ 21170 conftest$ac_exeext conftest.$ac_ext 21171LIBS=$ac_check_lib_save_LIBS 21172fi 21173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvCreate" >&5 21174$as_echo "$ac_cv_lib_clntsh_OCIEnvCreate" >&6; } 21175if test "x$ac_cv_lib_clntsh_OCIEnvCreate" = xyes; then : 21176 apu_have_oracle=1 21177fi 21178 21179 21180fi 21181 21182 21183fi 21184 21185fi 21186 21187done 21188 21189 elif test "$withval" = "no"; then 21190 : 21191 else 21192 if test -n "$with_oracle_include"; then 21193 oracle_CPPFLAGS="$CPPFLAGS -I$with_oracle_include" 21194 21195 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 21196 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"-I$with_oracle_include\"" 21197 APRUTIL_PRIV_INCLUDES="-I$with_oracle_include" 21198 else 21199 apr_addto_bugger="-I$with_oracle_include" 21200 for i in $apr_addto_bugger; do 21201 apr_addto_duplicate="0" 21202 for j in $APRUTIL_PRIV_INCLUDES; do 21203 if test "x$i" = "x$j"; then 21204 apr_addto_duplicate="1" 21205 break 21206 fi 21207 done 21208 if test $apr_addto_duplicate = "0"; then 21209 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 21210 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 21211 fi 21212 done 21213 fi 21214 21215 else 21216 oracle_CPPFLAGS="-I$withval/rdbms/demo -I$withval/rdbms/public" 21217 fi 21218 oracle_LDFLAGS="-L$withval/lib " 21219 21220 21221 if test "x$CPPFLAGS" = "x"; then 21222 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$oracle_CPPFLAGS\"" 21223 CPPFLAGS="$oracle_CPPFLAGS" 21224 else 21225 apr_addto_bugger="$oracle_CPPFLAGS" 21226 for i in $apr_addto_bugger; do 21227 apr_addto_duplicate="0" 21228 for j in $CPPFLAGS; do 21229 if test "x$i" = "x$j"; then 21230 apr_addto_duplicate="1" 21231 break 21232 fi 21233 done 21234 if test $apr_addto_duplicate = "0"; then 21235 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 21236 CPPFLAGS="$CPPFLAGS $i" 21237 fi 21238 done 21239 fi 21240 21241 21242 if test "x$LDFLAGS" = "x"; then 21243 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$oracle_LDFLAGS\"" 21244 LDFLAGS="$oracle_LDFLAGS" 21245 else 21246 apr_addto_bugger="$oracle_LDFLAGS" 21247 for i in $apr_addto_bugger; do 21248 apr_addto_duplicate="0" 21249 for j in $LDFLAGS; do 21250 if test "x$i" = "x$j"; then 21251 apr_addto_duplicate="1" 21252 break 21253 fi 21254 done 21255 if test $apr_addto_duplicate = "0"; then 21256 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 21257 LDFLAGS="$LDFLAGS $i" 21258 fi 21259 done 21260 fi 21261 21262 21263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for oracle in $withval" >&5 21264$as_echo "$as_me: checking for oracle in $withval" >&6;} 21265 for ac_header in oci.h 21266do : 21267 ac_fn_c_check_header_mongrel "$LINENO" "oci.h" "ac_cv_header_oci_h" "$ac_includes_default" 21268if test "x$ac_cv_header_oci_h" = xyes; then : 21269 cat >>confdefs.h <<_ACEOF 21270#define HAVE_OCI_H 1 21271_ACEOF 21272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvCreate in -lclntsh" >&5 21273$as_echo_n "checking for OCIEnvCreate in -lclntsh... " >&6; } 21274if ${ac_cv_lib_clntsh_OCIEnvCreate+:} false; then : 21275 $as_echo_n "(cached) " >&6 21276else 21277 ac_check_lib_save_LIBS=$LIBS 21278LIBS="-lclntsh $LIBS" 21279cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21280/* end confdefs.h. */ 21281 21282/* Override any GCC internal prototype to avoid an error. 21283 Use char because int might match the return type of a GCC 21284 builtin and then its argument prototype would still apply. */ 21285#ifdef __cplusplus 21286extern "C" 21287#endif 21288char OCIEnvCreate (); 21289int 21290main () 21291{ 21292return OCIEnvCreate (); 21293 ; 21294 return 0; 21295} 21296_ACEOF 21297if ac_fn_c_try_link "$LINENO"; then : 21298 ac_cv_lib_clntsh_OCIEnvCreate=yes 21299else 21300 ac_cv_lib_clntsh_OCIEnvCreate=no 21301fi 21302rm -f core conftest.err conftest.$ac_objext \ 21303 conftest$ac_exeext conftest.$ac_ext 21304LIBS=$ac_check_lib_save_LIBS 21305fi 21306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvCreate" >&5 21307$as_echo "$ac_cv_lib_clntsh_OCIEnvCreate" >&6; } 21308if test "x$ac_cv_lib_clntsh_OCIEnvCreate" = xyes; then : 21309 apu_have_oracle=1 21310else 21311 21312 unset ac_cv_lib_clntsh_OCIEnvCreate 21313 oracle_LIBS="-lnnz11" 21314 21315 if test "x$LIBS" = "x"; then 21316 test "x$silent" != "xyes" && echo " setting LIBS to \"$oracle_LIBS\"" 21317 LIBS="$oracle_LIBS" 21318 else 21319 apr_addto_bugger="$oracle_LIBS" 21320 for i in $apr_addto_bugger; do 21321 apr_addto_duplicate="0" 21322 for j in $LIBS; do 21323 if test "x$i" = "x$j"; then 21324 apr_addto_duplicate="1" 21325 break 21326 fi 21327 done 21328 if test $apr_addto_duplicate = "0"; then 21329 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 21330 LIBS="$LIBS $i" 21331 fi 21332 done 21333 fi 21334 21335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvCreate in -lclntsh" >&5 21336$as_echo_n "checking for OCIEnvCreate in -lclntsh... " >&6; } 21337if ${ac_cv_lib_clntsh_OCIEnvCreate+:} false; then : 21338 $as_echo_n "(cached) " >&6 21339else 21340 ac_check_lib_save_LIBS=$LIBS 21341LIBS="-lclntsh $LIBS" 21342cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21343/* end confdefs.h. */ 21344 21345/* Override any GCC internal prototype to avoid an error. 21346 Use char because int might match the return type of a GCC 21347 builtin and then its argument prototype would still apply. */ 21348#ifdef __cplusplus 21349extern "C" 21350#endif 21351char OCIEnvCreate (); 21352int 21353main () 21354{ 21355return OCIEnvCreate (); 21356 ; 21357 return 0; 21358} 21359_ACEOF 21360if ac_fn_c_try_link "$LINENO"; then : 21361 ac_cv_lib_clntsh_OCIEnvCreate=yes 21362else 21363 ac_cv_lib_clntsh_OCIEnvCreate=no 21364fi 21365rm -f core conftest.err conftest.$ac_objext \ 21366 conftest$ac_exeext conftest.$ac_ext 21367LIBS=$ac_check_lib_save_LIBS 21368fi 21369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvCreate" >&5 21370$as_echo "$ac_cv_lib_clntsh_OCIEnvCreate" >&6; } 21371if test "x$ac_cv_lib_clntsh_OCIEnvCreate" = xyes; then : 21372 apu_have_oracle=1 21373else 21374 21375 unset ac_cv_lib_clntsh_OCIEnvCreate 21376 21377 if test "x$LIBS" = "x$oracle_LIBS"; then 21378 test "x$silent" != "xyes" && echo " nulling LIBS" 21379 LIBS="" 21380 else 21381 apr_new_bugger="" 21382 apr_removed=0 21383 for i in $LIBS; do 21384 if test "x$i" != "x$oracle_LIBS"; then 21385 apr_new_bugger="$apr_new_bugger $i" 21386 else 21387 apr_removed=1 21388 fi 21389 done 21390 if test $apr_removed = "1"; then 21391 test "x$silent" != "xyes" && echo " removed \"$oracle_LIBS\" from LIBS" 21392 LIBS=$apr_new_bugger 21393 fi 21394 fi 21395 21396 oracle_LIBS="-lnnz10" 21397 21398 if test "x$LIBS" = "x"; then 21399 test "x$silent" != "xyes" && echo " setting LIBS to \"$oracle_LIBS\"" 21400 LIBS="$oracle_LIBS" 21401 else 21402 apr_addto_bugger="$oracle_LIBS" 21403 for i in $apr_addto_bugger; do 21404 apr_addto_duplicate="0" 21405 for j in $LIBS; do 21406 if test "x$i" = "x$j"; then 21407 apr_addto_duplicate="1" 21408 break 21409 fi 21410 done 21411 if test $apr_addto_duplicate = "0"; then 21412 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 21413 LIBS="$LIBS $i" 21414 fi 21415 done 21416 fi 21417 21418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvCreate in -lclntsh" >&5 21419$as_echo_n "checking for OCIEnvCreate in -lclntsh... " >&6; } 21420if ${ac_cv_lib_clntsh_OCIEnvCreate+:} false; then : 21421 $as_echo_n "(cached) " >&6 21422else 21423 ac_check_lib_save_LIBS=$LIBS 21424LIBS="-lclntsh $LIBS" 21425cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21426/* end confdefs.h. */ 21427 21428/* Override any GCC internal prototype to avoid an error. 21429 Use char because int might match the return type of a GCC 21430 builtin and then its argument prototype would still apply. */ 21431#ifdef __cplusplus 21432extern "C" 21433#endif 21434char OCIEnvCreate (); 21435int 21436main () 21437{ 21438return OCIEnvCreate (); 21439 ; 21440 return 0; 21441} 21442_ACEOF 21443if ac_fn_c_try_link "$LINENO"; then : 21444 ac_cv_lib_clntsh_OCIEnvCreate=yes 21445else 21446 ac_cv_lib_clntsh_OCIEnvCreate=no 21447fi 21448rm -f core conftest.err conftest.$ac_objext \ 21449 conftest$ac_exeext conftest.$ac_ext 21450LIBS=$ac_check_lib_save_LIBS 21451fi 21452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvCreate" >&5 21453$as_echo "$ac_cv_lib_clntsh_OCIEnvCreate" >&6; } 21454if test "x$ac_cv_lib_clntsh_OCIEnvCreate" = xyes; then : 21455 apu_have_oracle=1 21456fi 21457 21458 21459fi 21460 21461 21462fi 21463 21464fi 21465 21466done 21467 21468 if test "$apu_have_oracle" != "0"; then 21469 oracle_LDFLAGS="$oracle_LDFLAGS -R$withval/lib" 21470 if test -z "$with_oracle_include"; then 21471 21472 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 21473 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"-I$withval/rdbms/demo\"" 21474 APRUTIL_PRIV_INCLUDES="-I$withval/rdbms/demo" 21475 else 21476 apr_addto_bugger="-I$withval/rdbms/demo" 21477 for i in $apr_addto_bugger; do 21478 apr_addto_duplicate="0" 21479 for j in $APRUTIL_PRIV_INCLUDES; do 21480 if test "x$i" = "x$j"; then 21481 apr_addto_duplicate="1" 21482 break 21483 fi 21484 done 21485 if test $apr_addto_duplicate = "0"; then 21486 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 21487 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 21488 fi 21489 done 21490 fi 21491 21492 21493 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 21494 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"-I$withval/rdbms/public\"" 21495 APRUTIL_PRIV_INCLUDES="-I$withval/rdbms/public" 21496 else 21497 apr_addto_bugger="-I$withval/rdbms/public" 21498 for i in $apr_addto_bugger; do 21499 apr_addto_duplicate="0" 21500 for j in $APRUTIL_PRIV_INCLUDES; do 21501 if test "x$i" = "x$j"; then 21502 apr_addto_duplicate="1" 21503 break 21504 fi 21505 done 21506 if test $apr_addto_duplicate = "0"; then 21507 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 21508 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 21509 fi 21510 done 21511 fi 21512 21513 fi 21514 fi 21515 fi 21516 21517fi 21518 21519 21520 21521 21522 if test "$apu_have_oracle" = "1"; then 21523 21524 if test "x$LDADD_dbd_oracle" = "x"; then 21525 test "x$silent" != "xyes" && echo " setting LDADD_dbd_oracle to \"$oracle_LDFLAGS -lclntsh $oracle_LIBS\"" 21526 LDADD_dbd_oracle="$oracle_LDFLAGS -lclntsh $oracle_LIBS" 21527 else 21528 apr_addto_bugger="$oracle_LDFLAGS -lclntsh $oracle_LIBS" 21529 for i in $apr_addto_bugger; do 21530 apr_addto_duplicate="0" 21531 for j in $LDADD_dbd_oracle; do 21532 if test "x$i" = "x$j"; then 21533 apr_addto_duplicate="1" 21534 break 21535 fi 21536 done 21537 if test $apr_addto_duplicate = "0"; then 21538 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbd_oracle" 21539 LDADD_dbd_oracle="$LDADD_dbd_oracle $i" 21540 fi 21541 done 21542 fi 21543 21544 fi 21545 21546 21547 LIBS="$old_libs" 21548 CPPFLAGS="$old_cppflags" 21549 LDFLAGS="$old_ldflags" 21550 21551 21552 apu_have_freetds=0 21553 21554 old_libs="$LIBS" 21555 old_cppflags="$CPPFLAGS" 21556 old_ldflags="$LDFLAGS" 21557 21558 21559# Check whether --with-freetds was given. 21560if test "${with_freetds+set}" = set; then : 21561 withval=$with_freetds; 21562 if test "$withval" = "yes"; then 21563 for ac_header in sybdb.h 21564do : 21565 ac_fn_c_check_header_mongrel "$LINENO" "sybdb.h" "ac_cv_header_sybdb_h" "$ac_includes_default" 21566if test "x$ac_cv_header_sybdb_h" = xyes; then : 21567 cat >>confdefs.h <<_ACEOF 21568#define HAVE_SYBDB_H 1 21569_ACEOF 21570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tdsdbopen in -lsybdb" >&5 21571$as_echo_n "checking for tdsdbopen in -lsybdb... " >&6; } 21572if ${ac_cv_lib_sybdb_tdsdbopen+:} false; then : 21573 $as_echo_n "(cached) " >&6 21574else 21575 ac_check_lib_save_LIBS=$LIBS 21576LIBS="-lsybdb $LIBS" 21577cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21578/* end confdefs.h. */ 21579 21580/* Override any GCC internal prototype to avoid an error. 21581 Use char because int might match the return type of a GCC 21582 builtin and then its argument prototype would still apply. */ 21583#ifdef __cplusplus 21584extern "C" 21585#endif 21586char tdsdbopen (); 21587int 21588main () 21589{ 21590return tdsdbopen (); 21591 ; 21592 return 0; 21593} 21594_ACEOF 21595if ac_fn_c_try_link "$LINENO"; then : 21596 ac_cv_lib_sybdb_tdsdbopen=yes 21597else 21598 ac_cv_lib_sybdb_tdsdbopen=no 21599fi 21600rm -f core conftest.err conftest.$ac_objext \ 21601 conftest$ac_exeext conftest.$ac_ext 21602LIBS=$ac_check_lib_save_LIBS 21603fi 21604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sybdb_tdsdbopen" >&5 21605$as_echo "$ac_cv_lib_sybdb_tdsdbopen" >&6; } 21606if test "x$ac_cv_lib_sybdb_tdsdbopen" = xyes; then : 21607 apu_have_freetds=1 21608fi 21609 21610fi 21611 21612done 21613 21614 if test "$apu_have_freetds" = "0"; then 21615 for ac_header in freetds/sybdb.h 21616do : 21617 ac_fn_c_check_header_mongrel "$LINENO" "freetds/sybdb.h" "ac_cv_header_freetds_sybdb_h" "$ac_includes_default" 21618if test "x$ac_cv_header_freetds_sybdb_h" = xyes; then : 21619 cat >>confdefs.h <<_ACEOF 21620#define HAVE_FREETDS_SYBDB_H 1 21621_ACEOF 21622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tdsdbopen in -lsybdb" >&5 21623$as_echo_n "checking for tdsdbopen in -lsybdb... " >&6; } 21624if ${ac_cv_lib_sybdb_tdsdbopen+:} false; then : 21625 $as_echo_n "(cached) " >&6 21626else 21627 ac_check_lib_save_LIBS=$LIBS 21628LIBS="-lsybdb $LIBS" 21629cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21630/* end confdefs.h. */ 21631 21632/* Override any GCC internal prototype to avoid an error. 21633 Use char because int might match the return type of a GCC 21634 builtin and then its argument prototype would still apply. */ 21635#ifdef __cplusplus 21636extern "C" 21637#endif 21638char tdsdbopen (); 21639int 21640main () 21641{ 21642return tdsdbopen (); 21643 ; 21644 return 0; 21645} 21646_ACEOF 21647if ac_fn_c_try_link "$LINENO"; then : 21648 ac_cv_lib_sybdb_tdsdbopen=yes 21649else 21650 ac_cv_lib_sybdb_tdsdbopen=no 21651fi 21652rm -f core conftest.err conftest.$ac_objext \ 21653 conftest$ac_exeext conftest.$ac_ext 21654LIBS=$ac_check_lib_save_LIBS 21655fi 21656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sybdb_tdsdbopen" >&5 21657$as_echo "$ac_cv_lib_sybdb_tdsdbopen" >&6; } 21658if test "x$ac_cv_lib_sybdb_tdsdbopen" = xyes; then : 21659 apu_have_freetds=1 21660fi 21661 21662fi 21663 21664done 21665 21666 fi 21667 elif test "$withval" = "no"; then 21668 : 21669 else 21670 sybdb_CPPFLAGS="-I$withval/include" 21671 sybdb_LDFLAGS="-L$withval/lib " 21672 21673 21674 if test "x$CPPFLAGS" = "x"; then 21675 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$sybdb_CPPFLAGS\"" 21676 CPPFLAGS="$sybdb_CPPFLAGS" 21677 else 21678 apr_addto_bugger="$sybdb_CPPFLAGS" 21679 for i in $apr_addto_bugger; do 21680 apr_addto_duplicate="0" 21681 for j in $CPPFLAGS; do 21682 if test "x$i" = "x$j"; then 21683 apr_addto_duplicate="1" 21684 break 21685 fi 21686 done 21687 if test $apr_addto_duplicate = "0"; then 21688 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 21689 CPPFLAGS="$CPPFLAGS $i" 21690 fi 21691 done 21692 fi 21693 21694 21695 if test "x$LDFLAGS" = "x"; then 21696 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$sybdb_LDFLAGS\"" 21697 LDFLAGS="$sybdb_LDFLAGS" 21698 else 21699 apr_addto_bugger="$sybdb_LDFLAGS" 21700 for i in $apr_addto_bugger; do 21701 apr_addto_duplicate="0" 21702 for j in $LDFLAGS; do 21703 if test "x$i" = "x$j"; then 21704 apr_addto_duplicate="1" 21705 break 21706 fi 21707 done 21708 if test $apr_addto_duplicate = "0"; then 21709 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 21710 LDFLAGS="$LDFLAGS $i" 21711 fi 21712 done 21713 fi 21714 21715 21716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetds in $withval" >&5 21717$as_echo "$as_me: checking for freetds in $withval" >&6;} 21718 for ac_header in sybdb.h 21719do : 21720 ac_fn_c_check_header_mongrel "$LINENO" "sybdb.h" "ac_cv_header_sybdb_h" "$ac_includes_default" 21721if test "x$ac_cv_header_sybdb_h" = xyes; then : 21722 cat >>confdefs.h <<_ACEOF 21723#define HAVE_SYBDB_H 1 21724_ACEOF 21725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tdsdbopen in -lsybdb" >&5 21726$as_echo_n "checking for tdsdbopen in -lsybdb... " >&6; } 21727if ${ac_cv_lib_sybdb_tdsdbopen+:} false; then : 21728 $as_echo_n "(cached) " >&6 21729else 21730 ac_check_lib_save_LIBS=$LIBS 21731LIBS="-lsybdb $LIBS" 21732cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21733/* end confdefs.h. */ 21734 21735/* Override any GCC internal prototype to avoid an error. 21736 Use char because int might match the return type of a GCC 21737 builtin and then its argument prototype would still apply. */ 21738#ifdef __cplusplus 21739extern "C" 21740#endif 21741char tdsdbopen (); 21742int 21743main () 21744{ 21745return tdsdbopen (); 21746 ; 21747 return 0; 21748} 21749_ACEOF 21750if ac_fn_c_try_link "$LINENO"; then : 21751 ac_cv_lib_sybdb_tdsdbopen=yes 21752else 21753 ac_cv_lib_sybdb_tdsdbopen=no 21754fi 21755rm -f core conftest.err conftest.$ac_objext \ 21756 conftest$ac_exeext conftest.$ac_ext 21757LIBS=$ac_check_lib_save_LIBS 21758fi 21759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sybdb_tdsdbopen" >&5 21760$as_echo "$ac_cv_lib_sybdb_tdsdbopen" >&6; } 21761if test "x$ac_cv_lib_sybdb_tdsdbopen" = xyes; then : 21762 apu_have_freetds=1 21763fi 21764 21765fi 21766 21767done 21768 21769 if test "$apu_have_freetds" = "0"; then 21770 for ac_header in freetds/sybdb.h 21771do : 21772 ac_fn_c_check_header_mongrel "$LINENO" "freetds/sybdb.h" "ac_cv_header_freetds_sybdb_h" "$ac_includes_default" 21773if test "x$ac_cv_header_freetds_sybdb_h" = xyes; then : 21774 cat >>confdefs.h <<_ACEOF 21775#define HAVE_FREETDS_SYBDB_H 1 21776_ACEOF 21777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tdsdbopen in -lsybdb" >&5 21778$as_echo_n "checking for tdsdbopen in -lsybdb... " >&6; } 21779if ${ac_cv_lib_sybdb_tdsdbopen+:} false; then : 21780 $as_echo_n "(cached) " >&6 21781else 21782 ac_check_lib_save_LIBS=$LIBS 21783LIBS="-lsybdb $LIBS" 21784cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21785/* end confdefs.h. */ 21786 21787/* Override any GCC internal prototype to avoid an error. 21788 Use char because int might match the return type of a GCC 21789 builtin and then its argument prototype would still apply. */ 21790#ifdef __cplusplus 21791extern "C" 21792#endif 21793char tdsdbopen (); 21794int 21795main () 21796{ 21797return tdsdbopen (); 21798 ; 21799 return 0; 21800} 21801_ACEOF 21802if ac_fn_c_try_link "$LINENO"; then : 21803 ac_cv_lib_sybdb_tdsdbopen=yes 21804else 21805 ac_cv_lib_sybdb_tdsdbopen=no 21806fi 21807rm -f core conftest.err conftest.$ac_objext \ 21808 conftest$ac_exeext conftest.$ac_ext 21809LIBS=$ac_check_lib_save_LIBS 21810fi 21811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sybdb_tdsdbopen" >&5 21812$as_echo "$ac_cv_lib_sybdb_tdsdbopen" >&6; } 21813if test "x$ac_cv_lib_sybdb_tdsdbopen" = xyes; then : 21814 apu_have_freetds=1 21815fi 21816 21817fi 21818 21819done 21820 21821 fi 21822 if test "$apu_have_freetds" != "0"; then 21823 21824 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 21825 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"-I$withval/include\"" 21826 APRUTIL_PRIV_INCLUDES="-I$withval/include" 21827 else 21828 apr_addto_bugger="-I$withval/include" 21829 for i in $apr_addto_bugger; do 21830 apr_addto_duplicate="0" 21831 for j in $APRUTIL_PRIV_INCLUDES; do 21832 if test "x$i" = "x$j"; then 21833 apr_addto_duplicate="1" 21834 break 21835 fi 21836 done 21837 if test $apr_addto_duplicate = "0"; then 21838 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 21839 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 21840 fi 21841 done 21842 fi 21843 21844 fi 21845 fi 21846 21847else 21848 21849 for ac_header in sybdb.h 21850do : 21851 ac_fn_c_check_header_mongrel "$LINENO" "sybdb.h" "ac_cv_header_sybdb_h" "$ac_includes_default" 21852if test "x$ac_cv_header_sybdb_h" = xyes; then : 21853 cat >>confdefs.h <<_ACEOF 21854#define HAVE_SYBDB_H 1 21855_ACEOF 21856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tdsdbopen in -lsybdb" >&5 21857$as_echo_n "checking for tdsdbopen in -lsybdb... " >&6; } 21858if ${ac_cv_lib_sybdb_tdsdbopen+:} false; then : 21859 $as_echo_n "(cached) " >&6 21860else 21861 ac_check_lib_save_LIBS=$LIBS 21862LIBS="-lsybdb $LIBS" 21863cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21864/* end confdefs.h. */ 21865 21866/* Override any GCC internal prototype to avoid an error. 21867 Use char because int might match the return type of a GCC 21868 builtin and then its argument prototype would still apply. */ 21869#ifdef __cplusplus 21870extern "C" 21871#endif 21872char tdsdbopen (); 21873int 21874main () 21875{ 21876return tdsdbopen (); 21877 ; 21878 return 0; 21879} 21880_ACEOF 21881if ac_fn_c_try_link "$LINENO"; then : 21882 ac_cv_lib_sybdb_tdsdbopen=yes 21883else 21884 ac_cv_lib_sybdb_tdsdbopen=no 21885fi 21886rm -f core conftest.err conftest.$ac_objext \ 21887 conftest$ac_exeext conftest.$ac_ext 21888LIBS=$ac_check_lib_save_LIBS 21889fi 21890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sybdb_tdsdbopen" >&5 21891$as_echo "$ac_cv_lib_sybdb_tdsdbopen" >&6; } 21892if test "x$ac_cv_lib_sybdb_tdsdbopen" = xyes; then : 21893 apu_have_freetds=1 21894fi 21895 21896fi 21897 21898done 21899 21900 if test "$apu_have_freetds" = "0"; then 21901 for ac_header in freetds/sybdb.h 21902do : 21903 ac_fn_c_check_header_mongrel "$LINENO" "freetds/sybdb.h" "ac_cv_header_freetds_sybdb_h" "$ac_includes_default" 21904if test "x$ac_cv_header_freetds_sybdb_h" = xyes; then : 21905 cat >>confdefs.h <<_ACEOF 21906#define HAVE_FREETDS_SYBDB_H 1 21907_ACEOF 21908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tdsdbopen in -lsybdb" >&5 21909$as_echo_n "checking for tdsdbopen in -lsybdb... " >&6; } 21910if ${ac_cv_lib_sybdb_tdsdbopen+:} false; then : 21911 $as_echo_n "(cached) " >&6 21912else 21913 ac_check_lib_save_LIBS=$LIBS 21914LIBS="-lsybdb $LIBS" 21915cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21916/* end confdefs.h. */ 21917 21918/* Override any GCC internal prototype to avoid an error. 21919 Use char because int might match the return type of a GCC 21920 builtin and then its argument prototype would still apply. */ 21921#ifdef __cplusplus 21922extern "C" 21923#endif 21924char tdsdbopen (); 21925int 21926main () 21927{ 21928return tdsdbopen (); 21929 ; 21930 return 0; 21931} 21932_ACEOF 21933if ac_fn_c_try_link "$LINENO"; then : 21934 ac_cv_lib_sybdb_tdsdbopen=yes 21935else 21936 ac_cv_lib_sybdb_tdsdbopen=no 21937fi 21938rm -f core conftest.err conftest.$ac_objext \ 21939 conftest$ac_exeext conftest.$ac_ext 21940LIBS=$ac_check_lib_save_LIBS 21941fi 21942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sybdb_tdsdbopen" >&5 21943$as_echo "$ac_cv_lib_sybdb_tdsdbopen" >&6; } 21944if test "x$ac_cv_lib_sybdb_tdsdbopen" = xyes; then : 21945 apu_have_freetds=1 21946fi 21947 21948fi 21949 21950done 21951 21952 fi 21953 21954fi 21955 21956 21957 21958 21959 if test "$apu_have_freetds" = "1"; then 21960 21961 if test "x$LDADD_dbd_freetds" = "x"; then 21962 test "x$silent" != "xyes" && echo " setting LDADD_dbd_freetds to \"$sybdb_LDFLAGS -lsybdb\"" 21963 LDADD_dbd_freetds="$sybdb_LDFLAGS -lsybdb" 21964 else 21965 apr_addto_bugger="$sybdb_LDFLAGS -lsybdb" 21966 for i in $apr_addto_bugger; do 21967 apr_addto_duplicate="0" 21968 for j in $LDADD_dbd_freetds; do 21969 if test "x$i" = "x$j"; then 21970 apr_addto_duplicate="1" 21971 break 21972 fi 21973 done 21974 if test $apr_addto_duplicate = "0"; then 21975 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbd_freetds" 21976 LDADD_dbd_freetds="$LDADD_dbd_freetds $i" 21977 fi 21978 done 21979 fi 21980 21981 fi 21982 21983 21984 LIBS="$old_libs" 21985 CPPFLAGS="$old_cppflags" 21986 LDFLAGS="$old_ldflags" 21987 21988 21989 apu_have_odbc=0 21990 21991 old_libs="$LIBS" 21992 old_cppflags="$CPPFLAGS" 21993 old_ldflags="$LDFLAGS" 21994 21995 21996# Check whether --with-odbc was given. 21997if test "${with_odbc+set}" = set; then : 21998 withval=$with_odbc; 21999 if test "$withval" = "yes"; then 22000 # Extract the first word of "odbc_config", so it can be a program name with args. 22001set dummy odbc_config; ac_word=$2 22002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22003$as_echo_n "checking for $ac_word... " >&6; } 22004if ${ac_cv_path_ODBC_CONFIG+:} false; then : 22005 $as_echo_n "(cached) " >&6 22006else 22007 case $ODBC_CONFIG in 22008 [\\/]* | ?:[\\/]*) 22009 ac_cv_path_ODBC_CONFIG="$ODBC_CONFIG" # Let the user override the test with a path. 22010 ;; 22011 *) 22012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22013for as_dir in $PATH 22014do 22015 IFS=$as_save_IFS 22016 test -z "$as_dir" && as_dir=. 22017 for ac_exec_ext in '' $ac_executable_extensions; do 22018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22019 ac_cv_path_ODBC_CONFIG="$as_dir/$ac_word$ac_exec_ext" 22020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22021 break 2 22022 fi 22023done 22024 done 22025IFS=$as_save_IFS 22026 22027 ;; 22028esac 22029fi 22030ODBC_CONFIG=$ac_cv_path_ODBC_CONFIG 22031if test -n "$ODBC_CONFIG"; then 22032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODBC_CONFIG" >&5 22033$as_echo "$ODBC_CONFIG" >&6; } 22034else 22035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22036$as_echo "no" >&6; } 22037fi 22038 22039 22040 if test "x$ODBC_CONFIG" != 'x'; then 22041 odbc_CPPFLAGS="-I`$ODBC_CONFIG --include-prefix`" 22042 odbc_LDFLAGS="-L`$ODBC_CONFIG --lib-prefix`" 22043 odbc_LIBS="`$ODBC_CONFIG --libs`" 22044 22045 22046 if test "x$CPPFLAGS" = "x"; then 22047 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$odbc_CPPFLAGS\"" 22048 CPPFLAGS="$odbc_CPPFLAGS" 22049 else 22050 apr_addto_bugger="$odbc_CPPFLAGS" 22051 for i in $apr_addto_bugger; do 22052 apr_addto_duplicate="0" 22053 for j in $CPPFLAGS; do 22054 if test "x$i" = "x$j"; then 22055 apr_addto_duplicate="1" 22056 break 22057 fi 22058 done 22059 if test $apr_addto_duplicate = "0"; then 22060 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 22061 CPPFLAGS="$CPPFLAGS $i" 22062 fi 22063 done 22064 fi 22065 22066 22067 if test "x$LDFLAGS" = "x"; then 22068 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$odbc_LDFLAGS\"" 22069 LDFLAGS="$odbc_LDFLAGS" 22070 else 22071 apr_addto_bugger="$odbc_LDFLAGS" 22072 for i in $apr_addto_bugger; do 22073 apr_addto_duplicate="0" 22074 for j in $LDFLAGS; do 22075 if test "x$i" = "x$j"; then 22076 apr_addto_duplicate="1" 22077 break 22078 fi 22079 done 22080 if test $apr_addto_duplicate = "0"; then 22081 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 22082 LDFLAGS="$LDFLAGS $i" 22083 fi 22084 done 22085 fi 22086 22087 22088 if test "x$LIBS" = "x"; then 22089 test "x$silent" != "xyes" && echo " setting LIBS to \"$odbc_LIBS\"" 22090 LIBS="$odbc_LIBS" 22091 else 22092 apr_addto_bugger="$odbc_LIBS" 22093 for i in $apr_addto_bugger; do 22094 apr_addto_duplicate="0" 22095 for j in $LIBS; do 22096 if test "x$i" = "x$j"; then 22097 apr_addto_duplicate="1" 22098 break 22099 fi 22100 done 22101 if test $apr_addto_duplicate = "0"; then 22102 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 22103 LIBS="$LIBS $i" 22104 fi 22105 done 22106 fi 22107 22108 fi 22109 22110 for ac_header in sql.h 22111do : 22112 ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default" 22113if test "x$ac_cv_header_sql_h" = xyes; then : 22114 cat >>confdefs.h <<_ACEOF 22115#define HAVE_SQL_H 1 22116_ACEOF 22117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLAllocHandle in -lodbc" >&5 22118$as_echo_n "checking for SQLAllocHandle in -lodbc... " >&6; } 22119if ${ac_cv_lib_odbc_SQLAllocHandle+:} false; then : 22120 $as_echo_n "(cached) " >&6 22121else 22122 ac_check_lib_save_LIBS=$LIBS 22123LIBS="-lodbc $LIBS" 22124cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22125/* end confdefs.h. */ 22126 22127/* Override any GCC internal prototype to avoid an error. 22128 Use char because int might match the return type of a GCC 22129 builtin and then its argument prototype would still apply. */ 22130#ifdef __cplusplus 22131extern "C" 22132#endif 22133char SQLAllocHandle (); 22134int 22135main () 22136{ 22137return SQLAllocHandle (); 22138 ; 22139 return 0; 22140} 22141_ACEOF 22142if ac_fn_c_try_link "$LINENO"; then : 22143 ac_cv_lib_odbc_SQLAllocHandle=yes 22144else 22145 ac_cv_lib_odbc_SQLAllocHandle=no 22146fi 22147rm -f core conftest.err conftest.$ac_objext \ 22148 conftest$ac_exeext conftest.$ac_ext 22149LIBS=$ac_check_lib_save_LIBS 22150fi 22151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLAllocHandle" >&5 22152$as_echo "$ac_cv_lib_odbc_SQLAllocHandle" >&6; } 22153if test "x$ac_cv_lib_odbc_SQLAllocHandle" = xyes; then : 22154 apu_have_odbc=1 22155fi 22156 22157fi 22158 22159done 22160 22161 if test "$apu_have_odbc" = "0"; then 22162 for ac_header in odbc/sql.h 22163do : 22164 ac_fn_c_check_header_mongrel "$LINENO" "odbc/sql.h" "ac_cv_header_odbc_sql_h" "$ac_includes_default" 22165if test "x$ac_cv_header_odbc_sql_h" = xyes; then : 22166 cat >>confdefs.h <<_ACEOF 22167#define HAVE_ODBC_SQL_H 1 22168_ACEOF 22169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLAllocHandle in -lodbc" >&5 22170$as_echo_n "checking for SQLAllocHandle in -lodbc... " >&6; } 22171if ${ac_cv_lib_odbc_SQLAllocHandle+:} false; then : 22172 $as_echo_n "(cached) " >&6 22173else 22174 ac_check_lib_save_LIBS=$LIBS 22175LIBS="-lodbc $LIBS" 22176cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22177/* end confdefs.h. */ 22178 22179/* Override any GCC internal prototype to avoid an error. 22180 Use char because int might match the return type of a GCC 22181 builtin and then its argument prototype would still apply. */ 22182#ifdef __cplusplus 22183extern "C" 22184#endif 22185char SQLAllocHandle (); 22186int 22187main () 22188{ 22189return SQLAllocHandle (); 22190 ; 22191 return 0; 22192} 22193_ACEOF 22194if ac_fn_c_try_link "$LINENO"; then : 22195 ac_cv_lib_odbc_SQLAllocHandle=yes 22196else 22197 ac_cv_lib_odbc_SQLAllocHandle=no 22198fi 22199rm -f core conftest.err conftest.$ac_objext \ 22200 conftest$ac_exeext conftest.$ac_ext 22201LIBS=$ac_check_lib_save_LIBS 22202fi 22203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLAllocHandle" >&5 22204$as_echo "$ac_cv_lib_odbc_SQLAllocHandle" >&6; } 22205if test "x$ac_cv_lib_odbc_SQLAllocHandle" = xyes; then : 22206 apu_have_odbc=1 22207fi 22208 22209fi 22210 22211done 22212 22213 fi 22214 if test "$apu_have_odbc" != "0" && test "x$ODBC_CONFIG" != 'x'; then 22215 22216 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 22217 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"$odbc_CPPFLAGS\"" 22218 APRUTIL_PRIV_INCLUDES="$odbc_CPPFLAGS" 22219 else 22220 apr_addto_bugger="$odbc_CPPFLAGS" 22221 for i in $apr_addto_bugger; do 22222 apr_addto_duplicate="0" 22223 for j in $APRUTIL_PRIV_INCLUDES; do 22224 if test "x$i" = "x$j"; then 22225 apr_addto_duplicate="1" 22226 break 22227 fi 22228 done 22229 if test $apr_addto_duplicate = "0"; then 22230 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 22231 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 22232 fi 22233 done 22234 fi 22235 22236 fi 22237 elif test "$withval" = "no"; then 22238 : 22239 else 22240 # Extract the first word of "odbc_config", so it can be a program name with args. 22241set dummy odbc_config; ac_word=$2 22242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22243$as_echo_n "checking for $ac_word... " >&6; } 22244if ${ac_cv_path_ODBC_CONFIG+:} false; then : 22245 $as_echo_n "(cached) " >&6 22246else 22247 case $ODBC_CONFIG in 22248 [\\/]* | ?:[\\/]*) 22249 ac_cv_path_ODBC_CONFIG="$ODBC_CONFIG" # Let the user override the test with a path. 22250 ;; 22251 *) 22252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22253for as_dir in $withval/bin 22254do 22255 IFS=$as_save_IFS 22256 test -z "$as_dir" && as_dir=. 22257 for ac_exec_ext in '' $ac_executable_extensions; do 22258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22259 ac_cv_path_ODBC_CONFIG="$as_dir/$ac_word$ac_exec_ext" 22260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22261 break 2 22262 fi 22263done 22264 done 22265IFS=$as_save_IFS 22266 22267 ;; 22268esac 22269fi 22270ODBC_CONFIG=$ac_cv_path_ODBC_CONFIG 22271if test -n "$ODBC_CONFIG"; then 22272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODBC_CONFIG" >&5 22273$as_echo "$ODBC_CONFIG" >&6; } 22274else 22275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22276$as_echo "no" >&6; } 22277fi 22278 22279 22280 if test "x$ODBC_CONFIG" != 'x'; then 22281 odbc_CPPFLAGS="-I`$ODBC_CONFIG --include-prefix`" 22282 odbc_LDFLAGS="-L`$ODBC_CONFIG --lib-prefix`" 22283 odbc_LIBS="`$ODBC_CONFIG --libs`" 22284 else 22285 if test -f "$withval" && test -x "$withval"; then 22286 odbc_CPPFLAGS="-I`$withval --include-prefix`" 22287 odbc_LDFLAGS="-L`$withval --lib-prefix`" 22288 odbc_LIBS="`$withval --libs`" 22289 else 22290 odbc_CPPFLAGS="-I$withval/include" 22291 odbc_LDFLAGS="-L$withval/lib " 22292 fi 22293 fi 22294 22295 22296 if test "x$CPPFLAGS" = "x"; then 22297 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$odbc_CPPFLAGS\"" 22298 CPPFLAGS="$odbc_CPPFLAGS" 22299 else 22300 apr_addto_bugger="$odbc_CPPFLAGS" 22301 for i in $apr_addto_bugger; do 22302 apr_addto_duplicate="0" 22303 for j in $CPPFLAGS; do 22304 if test "x$i" = "x$j"; then 22305 apr_addto_duplicate="1" 22306 break 22307 fi 22308 done 22309 if test $apr_addto_duplicate = "0"; then 22310 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 22311 CPPFLAGS="$CPPFLAGS $i" 22312 fi 22313 done 22314 fi 22315 22316 22317 if test "x$LDFLAGS" = "x"; then 22318 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$odbc_LDFLAGS\"" 22319 LDFLAGS="$odbc_LDFLAGS" 22320 else 22321 apr_addto_bugger="$odbc_LDFLAGS" 22322 for i in $apr_addto_bugger; do 22323 apr_addto_duplicate="0" 22324 for j in $LDFLAGS; do 22325 if test "x$i" = "x$j"; then 22326 apr_addto_duplicate="1" 22327 break 22328 fi 22329 done 22330 if test $apr_addto_duplicate = "0"; then 22331 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 22332 LDFLAGS="$LDFLAGS $i" 22333 fi 22334 done 22335 fi 22336 22337 22338 if test "x$LIBS" = "x"; then 22339 test "x$silent" != "xyes" && echo " setting LIBS to \"$odbc_LIBS\"" 22340 LIBS="$odbc_LIBS" 22341 else 22342 apr_addto_bugger="$odbc_LIBS" 22343 for i in $apr_addto_bugger; do 22344 apr_addto_duplicate="0" 22345 for j in $LIBS; do 22346 if test "x$i" = "x$j"; then 22347 apr_addto_duplicate="1" 22348 break 22349 fi 22350 done 22351 if test $apr_addto_duplicate = "0"; then 22352 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 22353 LIBS="$LIBS $i" 22354 fi 22355 done 22356 fi 22357 22358 22359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for odbc in $withval" >&5 22360$as_echo "$as_me: checking for odbc in $withval" >&6;} 22361 for ac_header in sql.h 22362do : 22363 ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default" 22364if test "x$ac_cv_header_sql_h" = xyes; then : 22365 cat >>confdefs.h <<_ACEOF 22366#define HAVE_SQL_H 1 22367_ACEOF 22368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLAllocHandle in -lodbc" >&5 22369$as_echo_n "checking for SQLAllocHandle in -lodbc... " >&6; } 22370if ${ac_cv_lib_odbc_SQLAllocHandle+:} false; then : 22371 $as_echo_n "(cached) " >&6 22372else 22373 ac_check_lib_save_LIBS=$LIBS 22374LIBS="-lodbc $LIBS" 22375cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22376/* end confdefs.h. */ 22377 22378/* Override any GCC internal prototype to avoid an error. 22379 Use char because int might match the return type of a GCC 22380 builtin and then its argument prototype would still apply. */ 22381#ifdef __cplusplus 22382extern "C" 22383#endif 22384char SQLAllocHandle (); 22385int 22386main () 22387{ 22388return SQLAllocHandle (); 22389 ; 22390 return 0; 22391} 22392_ACEOF 22393if ac_fn_c_try_link "$LINENO"; then : 22394 ac_cv_lib_odbc_SQLAllocHandle=yes 22395else 22396 ac_cv_lib_odbc_SQLAllocHandle=no 22397fi 22398rm -f core conftest.err conftest.$ac_objext \ 22399 conftest$ac_exeext conftest.$ac_ext 22400LIBS=$ac_check_lib_save_LIBS 22401fi 22402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLAllocHandle" >&5 22403$as_echo "$ac_cv_lib_odbc_SQLAllocHandle" >&6; } 22404if test "x$ac_cv_lib_odbc_SQLAllocHandle" = xyes; then : 22405 apu_have_odbc=1 22406fi 22407 22408fi 22409 22410done 22411 22412 if test "$apu_have_odbc" = "0"; then 22413 for ac_header in odbc/sql.h 22414do : 22415 ac_fn_c_check_header_mongrel "$LINENO" "odbc/sql.h" "ac_cv_header_odbc_sql_h" "$ac_includes_default" 22416if test "x$ac_cv_header_odbc_sql_h" = xyes; then : 22417 cat >>confdefs.h <<_ACEOF 22418#define HAVE_ODBC_SQL_H 1 22419_ACEOF 22420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLAllocHandle in -lodbc" >&5 22421$as_echo_n "checking for SQLAllocHandle in -lodbc... " >&6; } 22422if ${ac_cv_lib_odbc_SQLAllocHandle+:} false; then : 22423 $as_echo_n "(cached) " >&6 22424else 22425 ac_check_lib_save_LIBS=$LIBS 22426LIBS="-lodbc $LIBS" 22427cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22428/* end confdefs.h. */ 22429 22430/* Override any GCC internal prototype to avoid an error. 22431 Use char because int might match the return type of a GCC 22432 builtin and then its argument prototype would still apply. */ 22433#ifdef __cplusplus 22434extern "C" 22435#endif 22436char SQLAllocHandle (); 22437int 22438main () 22439{ 22440return SQLAllocHandle (); 22441 ; 22442 return 0; 22443} 22444_ACEOF 22445if ac_fn_c_try_link "$LINENO"; then : 22446 ac_cv_lib_odbc_SQLAllocHandle=yes 22447else 22448 ac_cv_lib_odbc_SQLAllocHandle=no 22449fi 22450rm -f core conftest.err conftest.$ac_objext \ 22451 conftest$ac_exeext conftest.$ac_ext 22452LIBS=$ac_check_lib_save_LIBS 22453fi 22454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLAllocHandle" >&5 22455$as_echo "$ac_cv_lib_odbc_SQLAllocHandle" >&6; } 22456if test "x$ac_cv_lib_odbc_SQLAllocHandle" = xyes; then : 22457 apu_have_odbc=1 22458fi 22459 22460fi 22461 22462done 22463 22464 fi 22465 if test "$apu_have_odbc" != "0" && test "x$ODBC_CONFIG" != 'x'; then 22466 22467 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 22468 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"$odbc_CPPFLAGS\"" 22469 APRUTIL_PRIV_INCLUDES="$odbc_CPPFLAGS" 22470 else 22471 apr_addto_bugger="$odbc_CPPFLAGS" 22472 for i in $apr_addto_bugger; do 22473 apr_addto_duplicate="0" 22474 for j in $APRUTIL_PRIV_INCLUDES; do 22475 if test "x$i" = "x$j"; then 22476 apr_addto_duplicate="1" 22477 break 22478 fi 22479 done 22480 if test $apr_addto_duplicate = "0"; then 22481 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 22482 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 22483 fi 22484 done 22485 fi 22486 22487 fi 22488 fi 22489 22490else 22491 22492 # Extract the first word of "odbc_config", so it can be a program name with args. 22493set dummy odbc_config; ac_word=$2 22494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22495$as_echo_n "checking for $ac_word... " >&6; } 22496if ${ac_cv_path_ODBC_CONFIG+:} false; then : 22497 $as_echo_n "(cached) " >&6 22498else 22499 case $ODBC_CONFIG in 22500 [\\/]* | ?:[\\/]*) 22501 ac_cv_path_ODBC_CONFIG="$ODBC_CONFIG" # Let the user override the test with a path. 22502 ;; 22503 *) 22504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22505for as_dir in $PATH 22506do 22507 IFS=$as_save_IFS 22508 test -z "$as_dir" && as_dir=. 22509 for ac_exec_ext in '' $ac_executable_extensions; do 22510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22511 ac_cv_path_ODBC_CONFIG="$as_dir/$ac_word$ac_exec_ext" 22512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22513 break 2 22514 fi 22515done 22516 done 22517IFS=$as_save_IFS 22518 22519 ;; 22520esac 22521fi 22522ODBC_CONFIG=$ac_cv_path_ODBC_CONFIG 22523if test -n "$ODBC_CONFIG"; then 22524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODBC_CONFIG" >&5 22525$as_echo "$ODBC_CONFIG" >&6; } 22526else 22527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22528$as_echo "no" >&6; } 22529fi 22530 22531 22532 if test "x$ODBC_CONFIG" != 'x'; then 22533 odbc_CPPFLAGS="-I`$ODBC_CONFIG --include-prefix`" 22534 odbc_LDFLAGS="-L`$ODBC_CONFIG --lib-prefix`" 22535 odbc_LIBS="`$ODBC_CONFIG --libs`" 22536 22537 22538 if test "x$CPPFLAGS" = "x"; then 22539 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"$odbc_CPPFLAGS\"" 22540 CPPFLAGS="$odbc_CPPFLAGS" 22541 else 22542 apr_addto_bugger="$odbc_CPPFLAGS" 22543 for i in $apr_addto_bugger; do 22544 apr_addto_duplicate="0" 22545 for j in $CPPFLAGS; do 22546 if test "x$i" = "x$j"; then 22547 apr_addto_duplicate="1" 22548 break 22549 fi 22550 done 22551 if test $apr_addto_duplicate = "0"; then 22552 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 22553 CPPFLAGS="$CPPFLAGS $i" 22554 fi 22555 done 22556 fi 22557 22558 22559 if test "x$LDFLAGS" = "x"; then 22560 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"$odbc_LDFLAGS\"" 22561 LDFLAGS="$odbc_LDFLAGS" 22562 else 22563 apr_addto_bugger="$odbc_LDFLAGS" 22564 for i in $apr_addto_bugger; do 22565 apr_addto_duplicate="0" 22566 for j in $LDFLAGS; do 22567 if test "x$i" = "x$j"; then 22568 apr_addto_duplicate="1" 22569 break 22570 fi 22571 done 22572 if test $apr_addto_duplicate = "0"; then 22573 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 22574 LDFLAGS="$LDFLAGS $i" 22575 fi 22576 done 22577 fi 22578 22579 22580 if test "x$LIBS" = "x"; then 22581 test "x$silent" != "xyes" && echo " setting LIBS to \"$odbc_LIBS\"" 22582 LIBS="$odbc_LIBS" 22583 else 22584 apr_addto_bugger="$odbc_LIBS" 22585 for i in $apr_addto_bugger; do 22586 apr_addto_duplicate="0" 22587 for j in $LIBS; do 22588 if test "x$i" = "x$j"; then 22589 apr_addto_duplicate="1" 22590 break 22591 fi 22592 done 22593 if test $apr_addto_duplicate = "0"; then 22594 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 22595 LIBS="$LIBS $i" 22596 fi 22597 done 22598 fi 22599 22600 fi 22601 22602 for ac_header in sql.h 22603do : 22604 ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default" 22605if test "x$ac_cv_header_sql_h" = xyes; then : 22606 cat >>confdefs.h <<_ACEOF 22607#define HAVE_SQL_H 1 22608_ACEOF 22609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLAllocHandle in -lodbc" >&5 22610$as_echo_n "checking for SQLAllocHandle in -lodbc... " >&6; } 22611if ${ac_cv_lib_odbc_SQLAllocHandle+:} false; then : 22612 $as_echo_n "(cached) " >&6 22613else 22614 ac_check_lib_save_LIBS=$LIBS 22615LIBS="-lodbc $LIBS" 22616cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22617/* end confdefs.h. */ 22618 22619/* Override any GCC internal prototype to avoid an error. 22620 Use char because int might match the return type of a GCC 22621 builtin and then its argument prototype would still apply. */ 22622#ifdef __cplusplus 22623extern "C" 22624#endif 22625char SQLAllocHandle (); 22626int 22627main () 22628{ 22629return SQLAllocHandle (); 22630 ; 22631 return 0; 22632} 22633_ACEOF 22634if ac_fn_c_try_link "$LINENO"; then : 22635 ac_cv_lib_odbc_SQLAllocHandle=yes 22636else 22637 ac_cv_lib_odbc_SQLAllocHandle=no 22638fi 22639rm -f core conftest.err conftest.$ac_objext \ 22640 conftest$ac_exeext conftest.$ac_ext 22641LIBS=$ac_check_lib_save_LIBS 22642fi 22643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLAllocHandle" >&5 22644$as_echo "$ac_cv_lib_odbc_SQLAllocHandle" >&6; } 22645if test "x$ac_cv_lib_odbc_SQLAllocHandle" = xyes; then : 22646 apu_have_odbc=1 22647fi 22648 22649fi 22650 22651done 22652 22653 if test "$apu_have_odbc" = "0"; then 22654 for ac_header in odbc/sql.h 22655do : 22656 ac_fn_c_check_header_mongrel "$LINENO" "odbc/sql.h" "ac_cv_header_odbc_sql_h" "$ac_includes_default" 22657if test "x$ac_cv_header_odbc_sql_h" = xyes; then : 22658 cat >>confdefs.h <<_ACEOF 22659#define HAVE_ODBC_SQL_H 1 22660_ACEOF 22661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLAllocHandle in -lodbc" >&5 22662$as_echo_n "checking for SQLAllocHandle in -lodbc... " >&6; } 22663if ${ac_cv_lib_odbc_SQLAllocHandle+:} false; then : 22664 $as_echo_n "(cached) " >&6 22665else 22666 ac_check_lib_save_LIBS=$LIBS 22667LIBS="-lodbc $LIBS" 22668cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22669/* end confdefs.h. */ 22670 22671/* Override any GCC internal prototype to avoid an error. 22672 Use char because int might match the return type of a GCC 22673 builtin and then its argument prototype would still apply. */ 22674#ifdef __cplusplus 22675extern "C" 22676#endif 22677char SQLAllocHandle (); 22678int 22679main () 22680{ 22681return SQLAllocHandle (); 22682 ; 22683 return 0; 22684} 22685_ACEOF 22686if ac_fn_c_try_link "$LINENO"; then : 22687 ac_cv_lib_odbc_SQLAllocHandle=yes 22688else 22689 ac_cv_lib_odbc_SQLAllocHandle=no 22690fi 22691rm -f core conftest.err conftest.$ac_objext \ 22692 conftest$ac_exeext conftest.$ac_ext 22693LIBS=$ac_check_lib_save_LIBS 22694fi 22695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLAllocHandle" >&5 22696$as_echo "$ac_cv_lib_odbc_SQLAllocHandle" >&6; } 22697if test "x$ac_cv_lib_odbc_SQLAllocHandle" = xyes; then : 22698 apu_have_odbc=1 22699fi 22700 22701fi 22702 22703done 22704 22705 fi 22706 if test "$apu_have_odbc" != "0" && test "x$ODBC_CONFIG" != 'x'; then 22707 22708 if test "x$APRUTIL_PRIV_INCLUDES" = "x"; then 22709 test "x$silent" != "xyes" && echo " setting APRUTIL_PRIV_INCLUDES to \"$odbc_CPPFLAGS\"" 22710 APRUTIL_PRIV_INCLUDES="$odbc_CPPFLAGS" 22711 else 22712 apr_addto_bugger="$odbc_CPPFLAGS" 22713 for i in $apr_addto_bugger; do 22714 apr_addto_duplicate="0" 22715 for j in $APRUTIL_PRIV_INCLUDES; do 22716 if test "x$i" = "x$j"; then 22717 apr_addto_duplicate="1" 22718 break 22719 fi 22720 done 22721 if test $apr_addto_duplicate = "0"; then 22722 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_PRIV_INCLUDES" 22723 APRUTIL_PRIV_INCLUDES="$APRUTIL_PRIV_INCLUDES $i" 22724 fi 22725 done 22726 fi 22727 22728 fi 22729 22730fi 22731 22732 22733 if test "$apu_have_odbc" = "1"; then 22734 22735 if test "x$LDADD_dbd_odbc" = "x"; then 22736 test "x$silent" != "xyes" && echo " setting LDADD_dbd_odbc to \"$odbc_LDFLAGS -lodbc $odbc_LIBS\"" 22737 LDADD_dbd_odbc="$odbc_LDFLAGS -lodbc $odbc_LIBS" 22738 else 22739 apr_addto_bugger="$odbc_LDFLAGS -lodbc $odbc_LIBS" 22740 for i in $apr_addto_bugger; do 22741 apr_addto_duplicate="0" 22742 for j in $LDADD_dbd_odbc; do 22743 if test "x$i" = "x$j"; then 22744 apr_addto_duplicate="1" 22745 break 22746 fi 22747 done 22748 if test $apr_addto_duplicate = "0"; then 22749 test "x$silent" != "xyes" && echo " adding \"$i\" to LDADD_dbd_odbc" 22750 LDADD_dbd_odbc="$LDADD_dbd_odbc $i" 22751 fi 22752 done 22753 fi 22754 22755 fi 22756 22757 22758 LIBS="$old_libs" 22759 CPPFLAGS="$old_cppflags" 22760 LDFLAGS="$old_ldflags" 22761 22762 apu_dbd_tests="" 22763 test $apu_have_oracle = 1 && apu_dbd_tests="$apu_dbd_tests oracle" 22764 test $apu_have_pgsql = 1 && apu_dbd_tests="$apu_dbd_tests pgsql" 22765 test $apu_have_mysql = 1 && apu_dbd_tests="$apu_dbd_tests mysql" 22766 test $apu_have_sqlite2 = 1 && apu_dbd_tests="$apu_dbd_tests sqlite2" 22767 test $apu_have_sqlite3 = 1 && apu_dbd_tests="$apu_dbd_tests sqlite3" 22768 test $apu_have_freetds = 1 && apu_dbd_tests="$apu_dbd_tests freetds" 22769 test $apu_have_odbc = 1 && apu_dbd_tests="$apu_dbd_tests odbc" 22770 22771 22772 22773 22774save_cppflags="$CPPFLAGS" 22775save_ldflags="$LDFLAGS" 22776 22777apu_has_expat=0 22778 22779# Default: will use either external or bundled expat. 22780apu_try_external_expat=1 22781apu_try_builtin_expat=1 22782 22783 22784# Check whether --with-expat was given. 22785if test "${with_expat+set}" = set; then : 22786 withval=$with_expat; 22787 if test "$withval" = "yes"; then 22788 as_fn_error $? "a directory must be specified for --with-expat" "$LINENO" 5 22789 elif test "$withval" = "no"; then 22790 as_fn_error $? "Expat cannot be disabled (at this time)" "$LINENO" 5 22791 elif test "$withval" = "builtin"; then 22792 apu_try_external_expat=0 22793 else 22794 # Add given path to standard search paths if appropriate: 22795 if test "$withval" != "/usr"; then 22796 22797 if test "x$LDFLAGS" = "x"; then 22798 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-L$withval/lib\"" 22799 LDFLAGS="-L$withval/lib" 22800 else 22801 apr_addto_bugger="-L$withval/lib" 22802 for i in $apr_addto_bugger; do 22803 apr_addto_duplicate="0" 22804 for j in $LDFLAGS; do 22805 if test "x$i" = "x$j"; then 22806 apr_addto_duplicate="1" 22807 break 22808 fi 22809 done 22810 if test $apr_addto_duplicate = "0"; then 22811 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 22812 LDFLAGS="$LDFLAGS $i" 22813 fi 22814 done 22815 fi 22816 22817 22818 if test "x$CPPFLAGS" = "x"; then 22819 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-I$withval/include\"" 22820 CPPFLAGS="-I$withval/include" 22821 else 22822 apr_addto_bugger="-I$withval/include" 22823 for i in $apr_addto_bugger; do 22824 apr_addto_duplicate="0" 22825 for j in $CPPFLAGS; do 22826 if test "x$i" = "x$j"; then 22827 apr_addto_duplicate="1" 22828 break 22829 fi 22830 done 22831 if test $apr_addto_duplicate = "0"; then 22832 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 22833 CPPFLAGS="$CPPFLAGS $i" 22834 fi 22835 done 22836 fi 22837 22838 22839 if test "x$APRUTIL_INCLUDES" = "x"; then 22840 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$withval/include\"" 22841 APRUTIL_INCLUDES="-I$withval/include" 22842 else 22843 apr_addto_bugger="-I$withval/include" 22844 for i in $apr_addto_bugger; do 22845 apr_addto_duplicate="0" 22846 for j in $APRUTIL_INCLUDES; do 22847 if test "x$i" = "x$j"; then 22848 apr_addto_duplicate="1" 22849 break 22850 fi 22851 done 22852 if test $apr_addto_duplicate = "0"; then 22853 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 22854 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 22855 fi 22856 done 22857 fi 22858 22859 22860 if test "x$APRUTIL_LDFLAGS" = "x"; then 22861 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$withval/lib\"" 22862 APRUTIL_LDFLAGS="-L$withval/lib" 22863 else 22864 apr_addto_bugger="-L$withval/lib" 22865 for i in $apr_addto_bugger; do 22866 apr_addto_duplicate="0" 22867 for j in $APRUTIL_LDFLAGS; do 22868 if test "x$i" = "x$j"; then 22869 apr_addto_duplicate="1" 22870 break 22871 fi 22872 done 22873 if test $apr_addto_duplicate = "0"; then 22874 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 22875 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 22876 fi 22877 done 22878 fi 22879 22880 fi 22881 # ...and refuse to fall back on the builtin expat. 22882 apu_try_builtin_expat=0 22883 fi 22884 22885fi 22886 22887 22888if test $apu_try_external_expat = 1; then 22889 22890 22891 22892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Expat 1.95.x" >&5 22893$as_echo_n "checking Expat 1.95.x... " >&6; } 22894if ${apu_cv_expat_system+:} false; then : 22895 $as_echo_n "(cached) " >&6 22896else 22897 22898 apu_expat_LIBS=$LIBS 22899 LIBS="$LIBS -lexpat" 22900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22901/* end confdefs.h. */ 22902#include <stdlib.h> 22903#include <expat.h> 22904int 22905main () 22906{ 22907XML_ParserCreate(NULL); 22908 ; 22909 return 0; 22910} 22911_ACEOF 22912if ac_fn_c_try_link "$LINENO"; then : 22913 apu_cv_expat_system=yes 22914else 22915 apu_cv_expat_system=no 22916fi 22917rm -f core conftest.err conftest.$ac_objext \ 22918 conftest$ac_exeext conftest.$ac_ext 22919 LIBS=$apu_expat_LIBS 22920 22921fi 22922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_cv_expat_system" >&5 22923$as_echo "$apu_cv_expat_system" >&6; } 22924 22925if test $apu_cv_expat_system = yes; then 22926 22927$as_echo "#define HAVE_EXPAT_H 1" >>confdefs.h 22928 22929 apu_expat_libs="-lexpat" 22930 apu_has_expat=1 22931 22932else 22933 apu_has_expat=0 22934 22935fi 22936 22937 22938 if test $apu_has_expat = 0; then 22939 22940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking old Debian-packaged expat" >&5 22941$as_echo_n "checking old Debian-packaged expat... " >&6; } 22942if ${apu_cv_expat_debian+:} false; then : 22943 $as_echo_n "(cached) " >&6 22944else 22945 22946 apu_expat_LIBS=$LIBS 22947 LIBS="$LIBS -lxmlparse -lxmltok" 22948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22949/* end confdefs.h. */ 22950#include <stdlib.h> 22951#include <xmltok/xmlparse.h> 22952int 22953main () 22954{ 22955XML_ParserCreate(NULL); 22956 ; 22957 return 0; 22958} 22959_ACEOF 22960if ac_fn_c_try_link "$LINENO"; then : 22961 apu_cv_expat_debian=yes 22962else 22963 apu_cv_expat_debian=no 22964fi 22965rm -f core conftest.err conftest.$ac_objext \ 22966 conftest$ac_exeext conftest.$ac_ext 22967 LIBS=$apu_expat_LIBS 22968 22969fi 22970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_cv_expat_debian" >&5 22971$as_echo "$apu_cv_expat_debian" >&6; } 22972 22973if test $apu_cv_expat_debian = yes; then 22974 22975$as_echo "#define HAVE_XMLTOK_XMLPARSE_H 1" >>confdefs.h 22976 22977 apu_expat_libs="-lxmlparse -lxmltok" 22978 apu_has_expat=1 22979 22980else 22981 apu_has_expat=0 22982 22983fi 22984 22985 fi 22986 22987 if test $apu_has_expat = 0; then 22988 22989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking old FreeBSD-packaged expat" >&5 22990$as_echo_n "checking old FreeBSD-packaged expat... " >&6; } 22991if ${apu_cv_expat_freebsd+:} false; then : 22992 $as_echo_n "(cached) " >&6 22993else 22994 22995 apu_expat_LIBS=$LIBS 22996 LIBS="$LIBS -lexpat" 22997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22998/* end confdefs.h. */ 22999#include <stdlib.h> 23000#include <xml/xmlparse.h> 23001int 23002main () 23003{ 23004XML_ParserCreate(NULL); 23005 ; 23006 return 0; 23007} 23008_ACEOF 23009if ac_fn_c_try_link "$LINENO"; then : 23010 apu_cv_expat_freebsd=yes 23011else 23012 apu_cv_expat_freebsd=no 23013fi 23014rm -f core conftest.err conftest.$ac_objext \ 23015 conftest$ac_exeext conftest.$ac_ext 23016 LIBS=$apu_expat_LIBS 23017 23018fi 23019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_cv_expat_freebsd" >&5 23020$as_echo "$apu_cv_expat_freebsd" >&6; } 23021 23022if test $apu_cv_expat_freebsd = yes; then 23023 23024$as_echo "#define HAVE_XML_XMLPARSE_H 1" >>confdefs.h 23025 23026 apu_expat_libs="-lexpat" 23027 apu_has_expat=1 23028 23029else 23030 apu_has_expat=0 23031 23032fi 23033 23034 fi 23035 23036 if test $apu_has_expat = 0; then 23037 23038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Expat 1.0/1.1" >&5 23039$as_echo_n "checking Expat 1.0/1.1... " >&6; } 23040if ${apu_cv_expat_1011+:} false; then : 23041 $as_echo_n "(cached) " >&6 23042else 23043 23044 apu_expat_LIBS=$LIBS 23045 LIBS="$LIBS -lexpat" 23046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23047/* end confdefs.h. */ 23048#include <stdlib.h> 23049#include <xmlparse/xmlparse.h> 23050int 23051main () 23052{ 23053XML_ParserCreate(NULL); 23054 ; 23055 return 0; 23056} 23057_ACEOF 23058if ac_fn_c_try_link "$LINENO"; then : 23059 apu_cv_expat_1011=yes 23060else 23061 apu_cv_expat_1011=no 23062fi 23063rm -f core conftest.err conftest.$ac_objext \ 23064 conftest$ac_exeext conftest.$ac_ext 23065 LIBS=$apu_expat_LIBS 23066 23067fi 23068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_cv_expat_1011" >&5 23069$as_echo "$apu_cv_expat_1011" >&6; } 23070 23071if test $apu_cv_expat_1011 = yes; then 23072 23073$as_echo "#define HAVE_XMLPARSE_XMLPARSE_H 1" >>confdefs.h 23074 23075 apu_expat_libs="-lexpat" 23076 apu_has_expat=1 23077 23078else 23079 apu_has_expat=0 23080 23081fi 23082 23083 fi 23084 23085 if test $apu_has_expat = 0; then 23086 23087 if test "x$LDFLAGS" = "x"; then 23088 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-L/usr/local/lib\"" 23089 LDFLAGS="-L/usr/local/lib" 23090 else 23091 apr_addto_bugger="-L/usr/local/lib" 23092 for i in $apr_addto_bugger; do 23093 apr_addto_duplicate="0" 23094 for j in $LDFLAGS; do 23095 if test "x$i" = "x$j"; then 23096 apr_addto_duplicate="1" 23097 break 23098 fi 23099 done 23100 if test $apr_addto_duplicate = "0"; then 23101 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 23102 LDFLAGS="$LDFLAGS $i" 23103 fi 23104 done 23105 fi 23106 23107 23108 if test "x$CPPFLAGS" = "x"; then 23109 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-I/usr/local/include\"" 23110 CPPFLAGS="-I/usr/local/include" 23111 else 23112 apr_addto_bugger="-I/usr/local/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 23130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Expat 1.95.x in /usr/local" >&5 23131$as_echo_n "checking Expat 1.95.x in /usr/local... " >&6; } 23132if ${apu_cv_expat_usrlocal+:} false; then : 23133 $as_echo_n "(cached) " >&6 23134else 23135 23136 apu_expat_LIBS=$LIBS 23137 LIBS="$LIBS -lexpat" 23138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23139/* end confdefs.h. */ 23140#include <stdlib.h> 23141#include <expat.h> 23142int 23143main () 23144{ 23145XML_ParserCreate(NULL); 23146 ; 23147 return 0; 23148} 23149_ACEOF 23150if ac_fn_c_try_link "$LINENO"; then : 23151 apu_cv_expat_usrlocal=yes 23152else 23153 apu_cv_expat_usrlocal=no 23154fi 23155rm -f core conftest.err conftest.$ac_objext \ 23156 conftest$ac_exeext conftest.$ac_ext 23157 LIBS=$apu_expat_LIBS 23158 23159fi 23160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_cv_expat_usrlocal" >&5 23161$as_echo "$apu_cv_expat_usrlocal" >&6; } 23162 23163if test $apu_cv_expat_usrlocal = yes; then 23164 23165$as_echo "#define HAVE_EXPAT_H 1" >>confdefs.h 23166 23167 apu_expat_libs="-lexpat" 23168 apu_has_expat=1 23169 23170 if test "x$APRUTIL_INCLUDES" = "x"; then 23171 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I/usr/local/include\"" 23172 APRUTIL_INCLUDES="-I/usr/local/include" 23173 else 23174 apr_addto_bugger="-I/usr/local/include" 23175 for i in $apr_addto_bugger; do 23176 apr_addto_duplicate="0" 23177 for j in $APRUTIL_INCLUDES; do 23178 if test "x$i" = "x$j"; then 23179 apr_addto_duplicate="1" 23180 break 23181 fi 23182 done 23183 if test $apr_addto_duplicate = "0"; then 23184 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 23185 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 23186 fi 23187 done 23188 fi 23189 23190 23191 if test "x$APRUTIL_LDFLAGS" = "x"; then 23192 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L/usr/local/lib\"" 23193 APRUTIL_LDFLAGS="-L/usr/local/lib" 23194 else 23195 apr_addto_bugger="-L/usr/local/lib" 23196 for i in $apr_addto_bugger; do 23197 apr_addto_duplicate="0" 23198 for j in $APRUTIL_LDFLAGS; do 23199 if test "x$i" = "x$j"; then 23200 apr_addto_duplicate="1" 23201 break 23202 fi 23203 done 23204 if test $apr_addto_duplicate = "0"; then 23205 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 23206 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 23207 fi 23208 done 23209 fi 23210 23211else 23212 apu_has_expat=0 23213 23214 23215 if test "x$LDFLAGS" = "x-L/usr/local/lib"; then 23216 test "x$silent" != "xyes" && echo " nulling LDFLAGS" 23217 LDFLAGS="" 23218 else 23219 apr_new_bugger="" 23220 apr_removed=0 23221 for i in $LDFLAGS; do 23222 if test "x$i" != "x-L/usr/local/lib"; then 23223 apr_new_bugger="$apr_new_bugger $i" 23224 else 23225 apr_removed=1 23226 fi 23227 done 23228 if test $apr_removed = "1"; then 23229 test "x$silent" != "xyes" && echo " removed \"-L/usr/local/lib\" from LDFLAGS" 23230 LDFLAGS=$apr_new_bugger 23231 fi 23232 fi 23233 23234 23235 if test "x$CPPFLAGS" = "x-I/usr/local/include"; then 23236 test "x$silent" != "xyes" && echo " nulling CPPFLAGS" 23237 CPPFLAGS="" 23238 else 23239 apr_new_bugger="" 23240 apr_removed=0 23241 for i in $CPPFLAGS; do 23242 if test "x$i" != "x-I/usr/local/include"; then 23243 apr_new_bugger="$apr_new_bugger $i" 23244 else 23245 apr_removed=1 23246 fi 23247 done 23248 if test $apr_removed = "1"; then 23249 test "x$silent" != "xyes" && echo " removed \"-I/usr/local/include\" from CPPFLAGS" 23250 CPPFLAGS=$apr_new_bugger 23251 fi 23252 fi 23253 23254 23255fi 23256 23257 fi 23258 23259fi 23260 23261if test "${apu_has_expat}${apu_try_builtin_expat}" = "01"; then 23262 bundled_subdir="xml/expat" 23263 23264 # save our work to this point; this allows the sub-package to use it 23265 cat >confcache <<\_ACEOF 23266# This file is a shell script that caches the results of configure 23267# tests run on this system so they can be shared between configure 23268# scripts and configure runs, see configure's option --config-cache. 23269# It is not useful on other systems. If it contains results you don't 23270# want to keep, you may remove or edit it. 23271# 23272# config.status only pays attention to the cache file if you give it 23273# the --recheck option to rerun configure. 23274# 23275# `ac_cv_env_foo' variables (set or unset) will be overridden when 23276# loading this file, other *unset* `ac_cv_foo' will be assigned the 23277# following values. 23278 23279_ACEOF 23280 23281# The following way of writing the cache mishandles newlines in values, 23282# but we know of no workaround that is simple, portable, and efficient. 23283# So, we kill variables containing newlines. 23284# Ultrix sh set writes to stderr and can't be redirected directly, 23285# and sets the high bit in the cache file unless we assign to the vars. 23286( 23287 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 23288 eval ac_val=\$$ac_var 23289 case $ac_val in #( 23290 *${as_nl}*) 23291 case $ac_var in #( 23292 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 23293$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 23294 esac 23295 case $ac_var in #( 23296 _ | IFS | as_nl) ;; #( 23297 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 23298 *) { eval $ac_var=; unset $ac_var;} ;; 23299 esac ;; 23300 esac 23301 done 23302 23303 (set) 2>&1 | 23304 case $as_nl`(ac_space=' '; set) 2>&1` in #( 23305 *${as_nl}ac_space=\ *) 23306 # `set' does not quote correctly, so add quotes: double-quote 23307 # substitution turns \\\\ into \\, and sed turns \\ into \. 23308 sed -n \ 23309 "s/'/'\\\\''/g; 23310 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 23311 ;; #( 23312 *) 23313 # `set' quotes correctly as required by POSIX, so do not add quotes. 23314 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 23315 ;; 23316 esac | 23317 sort 23318) | 23319 sed ' 23320 /^ac_cv_env_/b end 23321 t clear 23322 :clear 23323 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 23324 t end 23325 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 23326 :end' >>confcache 23327if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 23328 if test -w "$cache_file"; then 23329 if test "x$cache_file" != "x/dev/null"; then 23330 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 23331$as_echo "$as_me: updating cache $cache_file" >&6;} 23332 if test ! -f "$cache_file" || test -h "$cache_file"; then 23333 cat confcache >"$cache_file" 23334 else 23335 case $cache_file in #( 23336 */* | ?:*) 23337 mv -f confcache "$cache_file"$$ && 23338 mv -f "$cache_file"$$ "$cache_file" ;; #( 23339 *) 23340 mv -f confcache "$cache_file" ;; 23341 esac 23342 fi 23343 fi 23344 else 23345 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 23346$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 23347 fi 23348fi 23349rm -f confcache 23350 23351 echo "configuring package in $bundled_subdir now" 23352 ac_popdir=`pwd` 23353 apr_config_subdirs="$bundled_subdir" 23354 test -d $bundled_subdir || $mkdir_p $bundled_subdir 23355 ac_abs_srcdir=`(cd $srcdir/$bundled_subdir && pwd)` 23356 cd $bundled_subdir 23357 23358 # A "../" for each directory in /$config_subdirs. 23359 ac_dots=`echo $apr_config_subdirs|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` 23360 23361 # Make the cache file pathname absolute for the subdirs 23362 # required to correctly handle subdirs that might actually 23363 # be symlinks 23364 case "$cache_file" in 23365 /*) # already absolute 23366 ac_sub_cache_file=$cache_file ;; 23367 *) # Was relative path. 23368 ac_sub_cache_file="$ac_popdir/$cache_file" ;; 23369 esac 23370 23371 apr_configure_args=$ac_configure_args 23372 23373 test "x$silent" = "xyes" && apr_configure_args="$apr_configure_args --silent" 23374 23375 apr_configure_args="--disable-option-checking $apr_configure_args" 23376 23377 if eval $SHELL $ac_abs_srcdir/configure $apr_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_abs_srcdir --prefix=$prefix --exec-prefix=$exec_prefix --libdir=$libdir --includedir=$includedir --bindir=$bindir 23378 then : 23379 echo "$bundled_subdir configured properly" 23380 else 23381 echo "configure failed for $bundled_subdir" 23382 exit 1 23383 fi 23384 23385 cd $ac_popdir 23386 23387 # grab any updates from the sub-package 23388 if test -r "$cache_file"; then 23389 # Some versions of bash will fail to source /dev/null (special files 23390 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 23391 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 23392 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 23393$as_echo "$as_me: loading cache $cache_file" >&6;} 23394 case $cache_file in 23395 [\\/]* | ?:[\\/]* ) . "$cache_file";; 23396 *) . "./$cache_file";; 23397 esac 23398 fi 23399else 23400 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 23401$as_echo "$as_me: creating cache $cache_file" >&6;} 23402 >$cache_file 23403fi 23404 23405 23406 23407 if test "x$APRUTIL_INCLUDES" = "x"; then 23408 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$abs_srcdir/$bundled_subdir/lib\"" 23409 APRUTIL_INCLUDES="-I$abs_srcdir/$bundled_subdir/lib" 23410 else 23411 apr_addto_bugger="-I$abs_srcdir/$bundled_subdir/lib" 23412 for i in $apr_addto_bugger; do 23413 apr_addto_duplicate="0" 23414 for j in $APRUTIL_INCLUDES; do 23415 if test "x$i" = "x$j"; then 23416 apr_addto_duplicate="1" 23417 break 23418 fi 23419 done 23420 if test $apr_addto_duplicate = "0"; then 23421 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 23422 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 23423 fi 23424 done 23425 fi 23426 23427 23428 if test "x$LDFLAGS" = "x"; then 23429 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-L$top_builddir/$bundled_subdir/lib\"" 23430 LDFLAGS="-L$top_builddir/$bundled_subdir/lib" 23431 else 23432 apr_addto_bugger="-L$top_builddir/$bundled_subdir/lib" 23433 for i in $apr_addto_bugger; do 23434 apr_addto_duplicate="0" 23435 for j in $LDFLAGS; do 23436 if test "x$i" = "x$j"; then 23437 apr_addto_duplicate="1" 23438 break 23439 fi 23440 done 23441 if test $apr_addto_duplicate = "0"; then 23442 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 23443 LDFLAGS="$LDFLAGS $i" 23444 fi 23445 done 23446 fi 23447 23448 apu_expat_libs="$top_builddir/$bundled_subdir/libexpat.la" 23449fi 23450 23451 23452 if test "x$APRUTIL_EXPORT_LIBS" = "x"; then 23453 test "x$silent" != "xyes" && echo " setting APRUTIL_EXPORT_LIBS to \"$apu_expat_libs\"" 23454 APRUTIL_EXPORT_LIBS="$apu_expat_libs" 23455 else 23456 apr_addto_bugger="$apu_expat_libs" 23457 for i in $apr_addto_bugger; do 23458 apr_addto_duplicate="0" 23459 for j in $APRUTIL_EXPORT_LIBS; do 23460 if test "x$i" = "x$j"; then 23461 apr_addto_duplicate="1" 23462 break 23463 fi 23464 done 23465 if test $apr_addto_duplicate = "0"; then 23466 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_EXPORT_LIBS" 23467 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i" 23468 fi 23469 done 23470 fi 23471 23472 23473 if test "x$APRUTIL_LIBS" = "x"; then 23474 test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"$apu_expat_libs\"" 23475 APRUTIL_LIBS="$apu_expat_libs" 23476 else 23477 apr_addto_bugger="$apu_expat_libs" 23478 for i in $apr_addto_bugger; do 23479 apr_addto_duplicate="0" 23480 for j in $APRUTIL_LIBS; do 23481 if test "x$i" = "x$j"; then 23482 apr_addto_duplicate="1" 23483 break 23484 fi 23485 done 23486 if test $apr_addto_duplicate = "0"; then 23487 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS" 23488 APRUTIL_LIBS="$APRUTIL_LIBS $i" 23489 fi 23490 done 23491 fi 23492 23493 23494APR_XML_DIR=$bundled_subdir 23495 23496 23497CPPFLAGS=$save_cppflags 23498LDFLAGS=$save_ldflags 23499 23500 23501 23502apu_iconv_dir="unknown" 23503have_apr_iconv="0" 23504want_iconv="1" 23505 23506# Check whether --with-iconv was given. 23507if test "${with_iconv+set}" = set; then : 23508 withval=$with_iconv; apu_iconv_dir="$withval" 23509 if test "$apu_iconv_dir" = "no"; then 23510 have_apr_iconv="0" 23511 have_iconv="0" 23512 want_iconv="0" 23513 elif test "$apu_iconv_dir" != "yes"; then 23514 if test -f "$apu_iconv_dir/include/apr-1/api_version.h"; then 23515 have_apr_iconv="1" 23516 have_iconv="0" 23517 23518 if test "x$APRUTIL_INCLUDES" = "x"; then 23519 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$apu_iconv_dir/include/apr-1\"" 23520 APRUTIL_INCLUDES="-I$apu_iconv_dir/include/apr-1" 23521 else 23522 apr_addto_bugger="-I$apu_iconv_dir/include/apr-1" 23523 for i in $apr_addto_bugger; do 23524 apr_addto_duplicate="0" 23525 for j in $APRUTIL_INCLUDES; do 23526 if test "x$i" = "x$j"; then 23527 apr_addto_duplicate="1" 23528 break 23529 fi 23530 done 23531 if test $apr_addto_duplicate = "0"; then 23532 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 23533 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 23534 fi 23535 done 23536 fi 23537 23538 23539 if test "x$APRUTIL_LIBS" = "x"; then 23540 test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"$apu_iconv_dir/lib/libapriconv-1.la\"" 23541 APRUTIL_LIBS="$apu_iconv_dir/lib/libapriconv-1.la" 23542 else 23543 apr_addto_bugger="$apu_iconv_dir/lib/libapriconv-1.la" 23544 for i in $apr_addto_bugger; do 23545 apr_addto_duplicate="0" 23546 for j in $APRUTIL_LIBS; do 23547 if test "x$i" = "x$j"; then 23548 apr_addto_duplicate="1" 23549 break 23550 fi 23551 done 23552 if test $apr_addto_duplicate = "0"; then 23553 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS" 23554 APRUTIL_LIBS="$APRUTIL_LIBS $i" 23555 fi 23556 done 23557 fi 23558 23559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using apr-iconv" >&5 23560$as_echo "using apr-iconv" >&6; } 23561 elif test -f "$apu_iconv_dir/include/iconv.h"; then 23562 have_apr_iconv="0" 23563 have_iconv="1" 23564 23565 if test "x$CPPFLAGS" = "x"; then 23566 test "x$silent" != "xyes" && echo " setting CPPFLAGS to \"-I$apu_iconv_dir/include\"" 23567 CPPFLAGS="-I$apu_iconv_dir/include" 23568 else 23569 apr_addto_bugger="-I$apu_iconv_dir/include" 23570 for i in $apr_addto_bugger; do 23571 apr_addto_duplicate="0" 23572 for j in $CPPFLAGS; do 23573 if test "x$i" = "x$j"; then 23574 apr_addto_duplicate="1" 23575 break 23576 fi 23577 done 23578 if test $apr_addto_duplicate = "0"; then 23579 test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS" 23580 CPPFLAGS="$CPPFLAGS $i" 23581 fi 23582 done 23583 fi 23584 23585 23586 if test "x$LDFLAGS" = "x"; then 23587 test "x$silent" != "xyes" && echo " setting LDFLAGS to \"-L$apu_iconv_dir/lib\"" 23588 LDFLAGS="-L$apu_iconv_dir/lib" 23589 else 23590 apr_addto_bugger="-L$apu_iconv_dir/lib" 23591 for i in $apr_addto_bugger; do 23592 apr_addto_duplicate="0" 23593 for j in $LDFLAGS; do 23594 if test "x$i" = "x$j"; then 23595 apr_addto_duplicate="1" 23596 break 23597 fi 23598 done 23599 if test $apr_addto_duplicate = "0"; then 23600 test "x$silent" != "xyes" && echo " adding \"$i\" to LDFLAGS" 23601 LDFLAGS="$LDFLAGS $i" 23602 fi 23603 done 23604 fi 23605 23606 fi 23607 fi 23608 23609fi 23610 23611 23612if test "$want_iconv" = "1" -a "$have_apr_iconv" != "1"; then 23613 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default" 23614if test "x$ac_cv_header_iconv_h" = xyes; then : 23615 23616 23617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23618/* end confdefs.h. */ 23619 23620#include <stdlib.h> 23621#include <iconv.h> 23622 23623int 23624main () 23625{ 23626 23627 iconv_t cd = iconv_open("", ""); 23628 iconv(cd, NULL, NULL, NULL, NULL); 23629 23630 ; 23631 return 0; 23632} 23633_ACEOF 23634if ac_fn_c_try_link "$LINENO"; then : 23635 have_iconv="1" 23636else 23637 23638 23639 23640 if test "x$LIBS" = "x"; then 23641 test "x$silent" != "xyes" && echo " setting LIBS to \"-liconv\"" 23642 LIBS="-liconv" 23643 else 23644 apr_addto_bugger="-liconv" 23645 for i in $apr_addto_bugger; do 23646 apr_addto_duplicate="0" 23647 for j in $LIBS; do 23648 if test "x$i" = "x$j"; then 23649 apr_addto_duplicate="1" 23650 break 23651 fi 23652 done 23653 if test $apr_addto_duplicate = "0"; then 23654 test "x$silent" != "xyes" && echo " adding \"$i\" to LIBS" 23655 LIBS="$LIBS $i" 23656 fi 23657 done 23658 fi 23659 23660 23661 23662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23663/* end confdefs.h. */ 23664 23665#include <stdlib.h> 23666#include <iconv.h> 23667 23668int 23669main () 23670{ 23671 23672 iconv_t cd = iconv_open("", ""); 23673 iconv(cd, NULL, NULL, NULL, NULL); 23674 23675 ; 23676 return 0; 23677} 23678_ACEOF 23679if ac_fn_c_try_link "$LINENO"; then : 23680 23681 23682 if test "x$APRUTIL_LIBS" = "x"; then 23683 test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"-liconv\"" 23684 APRUTIL_LIBS="-liconv" 23685 else 23686 apr_addto_bugger="-liconv" 23687 for i in $apr_addto_bugger; do 23688 apr_addto_duplicate="0" 23689 for j in $APRUTIL_LIBS; do 23690 if test "x$i" = "x$j"; then 23691 apr_addto_duplicate="1" 23692 break 23693 fi 23694 done 23695 if test $apr_addto_duplicate = "0"; then 23696 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS" 23697 APRUTIL_LIBS="$APRUTIL_LIBS $i" 23698 fi 23699 done 23700 fi 23701 23702 23703 if test "x$APRUTIL_EXPORT_LIBS" = "x"; then 23704 test "x$silent" != "xyes" && echo " setting APRUTIL_EXPORT_LIBS to \"-liconv\"" 23705 APRUTIL_EXPORT_LIBS="-liconv" 23706 else 23707 apr_addto_bugger="-liconv" 23708 for i in $apr_addto_bugger; do 23709 apr_addto_duplicate="0" 23710 for j in $APRUTIL_EXPORT_LIBS; do 23711 if test "x$i" = "x$j"; then 23712 apr_addto_duplicate="1" 23713 break 23714 fi 23715 done 23716 if test $apr_addto_duplicate = "0"; then 23717 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_EXPORT_LIBS" 23718 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $i" 23719 fi 23720 done 23721 fi 23722 23723 have_iconv="1" 23724else 23725 have_iconv="0" 23726fi 23727rm -f core conftest.err conftest.$ac_objext \ 23728 conftest$ac_exeext conftest.$ac_ext 23729 23730 23731 23732 if test "x$LIBS" = "x-liconv"; then 23733 test "x$silent" != "xyes" && echo " nulling LIBS" 23734 LIBS="" 23735 else 23736 apr_new_bugger="" 23737 apr_removed=0 23738 for i in $LIBS; do 23739 if test "x$i" != "x-liconv"; then 23740 apr_new_bugger="$apr_new_bugger $i" 23741 else 23742 apr_removed=1 23743 fi 23744 done 23745 if test $apr_removed = "1"; then 23746 test "x$silent" != "xyes" && echo " removed \"-liconv\" from LIBS" 23747 LIBS=$apr_new_bugger 23748 fi 23749 fi 23750 23751 23752 23753fi 23754rm -f core conftest.err conftest.$ac_objext \ 23755 conftest$ac_exeext conftest.$ac_ext 23756 23757 23758else 23759 have_iconv="0" 23760fi 23761 23762 23763fi 23764 23765if test "$want_iconv" = "1" -a "$apu_iconv_dir" != "unknown"; then 23766 if test "$have_iconv" != "1"; then 23767 if test "$have_apr_iconv" != "1"; then 23768 as_fn_error $? "iconv support requested, but not found" "$LINENO" 5 23769 fi 23770 fi 23771 23772 if test "x$CPPFLAGS" = "x-I$apu_iconv_dir/include"; then 23773 test "x$silent" != "xyes" && echo " nulling CPPFLAGS" 23774 CPPFLAGS="" 23775 else 23776 apr_new_bugger="" 23777 apr_removed=0 23778 for i in $CPPFLAGS; do 23779 if test "x$i" != "x-I$apu_iconv_dir/include"; then 23780 apr_new_bugger="$apr_new_bugger $i" 23781 else 23782 apr_removed=1 23783 fi 23784 done 23785 if test $apr_removed = "1"; then 23786 test "x$silent" != "xyes" && echo " removed \"-I$apu_iconv_dir/include\" from CPPFLAGS" 23787 CPPFLAGS=$apr_new_bugger 23788 fi 23789 fi 23790 23791 23792 if test "x$LDFLAGS" = "x-L$apu_iconv_dir/lib"; then 23793 test "x$silent" != "xyes" && echo " nulling LDFLAGS" 23794 LDFLAGS="" 23795 else 23796 apr_new_bugger="" 23797 apr_removed=0 23798 for i in $LDFLAGS; do 23799 if test "x$i" != "x-L$apu_iconv_dir/lib"; then 23800 apr_new_bugger="$apr_new_bugger $i" 23801 else 23802 apr_removed=1 23803 fi 23804 done 23805 if test $apr_removed = "1"; then 23806 test "x$silent" != "xyes" && echo " removed \"-L$apu_iconv_dir/lib\" from LDFLAGS" 23807 LDFLAGS=$apr_new_bugger 23808 fi 23809 fi 23810 23811 23812 if test "x$APRUTIL_INCLUDES" = "x"; then 23813 test "x$silent" != "xyes" && echo " setting APRUTIL_INCLUDES to \"-I$apu_iconv_dir/include\"" 23814 APRUTIL_INCLUDES="-I$apu_iconv_dir/include" 23815 else 23816 apr_addto_bugger="-I$apu_iconv_dir/include" 23817 for i in $apr_addto_bugger; do 23818 apr_addto_duplicate="0" 23819 for j in $APRUTIL_INCLUDES; do 23820 if test "x$i" = "x$j"; then 23821 apr_addto_duplicate="1" 23822 break 23823 fi 23824 done 23825 if test $apr_addto_duplicate = "0"; then 23826 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_INCLUDES" 23827 APRUTIL_INCLUDES="$APRUTIL_INCLUDES $i" 23828 fi 23829 done 23830 fi 23831 23832 23833 if test "x$APRUTIL_LDFLAGS" = "x"; then 23834 test "x$silent" != "xyes" && echo " setting APRUTIL_LDFLAGS to \"-L$apu_iconv_dir/lib\"" 23835 APRUTIL_LDFLAGS="-L$apu_iconv_dir/lib" 23836 else 23837 apr_addto_bugger="-L$apu_iconv_dir/lib" 23838 for i in $apr_addto_bugger; do 23839 apr_addto_duplicate="0" 23840 for j in $APRUTIL_LDFLAGS; do 23841 if test "x$i" = "x$j"; then 23842 apr_addto_duplicate="1" 23843 break 23844 fi 23845 done 23846 if test $apr_addto_duplicate = "0"; then 23847 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LDFLAGS" 23848 APRUTIL_LDFLAGS="$APRUTIL_LDFLAGS $i" 23849 fi 23850 done 23851 fi 23852 23853fi 23854 23855if test "$have_iconv" = "1"; then 23856 23857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of inbuf parameter to iconv" >&5 23858$as_echo_n "checking for type of inbuf parameter to iconv... " >&6; } 23859if test "x$apu_iconv_inbuf_const" = "x"; then 23860 apr_save_CFLAGS=$CFLAGS 23861 CFLAGS="$CFLAGS $CFLAGS_WARN" 23862 if test "$ac_cv_c_compiler_gnu" = "yes"; then 23863 CFLAGS="$CFLAGS -Werror" 23864 fi 23865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23866/* end confdefs.h. */ 23867#include "confdefs.h" 23868 23869 23870 #include <stddef.h> 23871 #include <iconv.h> 23872 23873 int main(int argc, const char *const *argv) { 23874 23875 iconv(0,(char **)0,(size_t *)0,(char **)0,(size_t *)0); 23876 23877 return 0; } 23878 23879_ACEOF 23880if ac_fn_c_try_compile "$LINENO"; then : 23881 apu_iconv_inbuf_const="0" 23882else 23883 apu_iconv_inbuf_const="1" 23884fi 23885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23886 CFLAGS=$apr_save_CFLAGS 23887 23888fi 23889if test "$apu_iconv_inbuf_const" = "1"; then 23890 23891$as_echo "#define APU_ICONV_INBUF_CONST 1" >>confdefs.h 23892 23893 msg="const char **" 23894else 23895 msg="char **" 23896fi 23897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 23898$as_echo "$msg" >&6; } 23899 23900fi 23901 23902 23903for ac_header in iconv.h langinfo.h 23904do : 23905 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 23906ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 23907if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 23908 cat >>confdefs.h <<_ACEOF 23909#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 23910_ACEOF 23911 23912fi 23913 23914done 23915 23916for aprt_i in iconv.h langinfo.h 23917do 23918 ac_safe=`echo "$aprt_i" | sed 'y%./+-%__p_%'` 23919 aprt_2=`echo "$aprt_i" | sed -e 's%/%_%g' -e 's/\.//g' -e 's/-//g'` 23920 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 23921 eval "$aprt_2=1" 23922 else 23923 eval "$aprt_2=0" 23924 fi 23925done 23926 23927 23928for ac_func in nl_langinfo 23929do : 23930 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo" 23931if test "x$ac_cv_func_nl_langinfo" = xyes; then : 23932 cat >>confdefs.h <<_ACEOF 23933#define HAVE_NL_LANGINFO 1 23934_ACEOF 23935 23936fi 23937done 23938 23939for aprt_j in nl_langinfo 23940do 23941 aprt_3="have_$aprt_j" 23942 if eval "test \"`echo '$ac_cv_func_'$aprt_j`\" = yes"; then 23943 eval "$aprt_3=1" 23944 else 23945 eval "$aprt_3=0" 23946 fi 23947done 23948 23949 23950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESET in langinfo.h" >&5 23951$as_echo_n "checking for CODESET in langinfo.h... " >&6; } 23952if ${ac_cv_define_CODESET+:} false; then : 23953 $as_echo_n "(cached) " >&6 23954else 23955 23956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23957/* end confdefs.h. */ 23958 23959#include <langinfo.h> 23960#ifdef CODESET 23961YES_IS_DEFINED 23962#endif 23963 23964_ACEOF 23965if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23966 $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then : 23967 ac_cv_define_CODESET=yes 23968else 23969 ac_cv_define_CODESET=no 23970fi 23971rm -f conftest* 23972 23973 23974fi 23975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_CODESET" >&5 23976$as_echo "$ac_cv_define_CODESET" >&6; } 23977 if test "$ac_cv_define_CODESET" = "yes"; then 23978 23979$as_echo "#define HAVE_CODESET 1" >>confdefs.h 23980 23981 fi 23982 23983 23984 23985 23986 23987 23988 23989 23990 # Check whether --enable-util-dso was given. 23991if test "${enable_util_dso+set}" = set; then : 23992 enableval=$enable_util_dso; 23993fi 23994 23995 23996 if test "$enable_util_dso" = "no"; then 23997 apu_dso_build="0" 23998 else 23999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether APR has DSO support" >&5 24000$as_echo_n "checking whether APR has DSO support... " >&6; } 24001if ${apu_cv_aprdso+:} false; then : 24002 $as_echo_n "(cached) " >&6 24003else 24004 apu_save_CPPFLAGS=$CPPFLAGS 24005 CPPFLAGS="$CPPFLAGS $APR_INCLUDES" 24006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24007/* end confdefs.h. */ 24008#include "apr.h" 24009#if APR_HAS_DSO 24010yes 24011#endif 24012 24013_ACEOF 24014if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24015 $EGREP "yes" >/dev/null 2>&1; then : 24016 apu_cv_aprdso=yes 24017else 24018 apu_cv_aprdso=no 24019fi 24020rm -f conftest* 24021 24022 CPPFLAGS=$apu_save_CPPFLAGS 24023fi 24024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_cv_aprdso" >&5 24025$as_echo "$apu_cv_aprdso" >&6; } 24026 24027 if test $apu_cv_aprdso = yes; then 24028 apu_dso_build=1 24029 else 24030 apu_dso_build=0 24031 fi 24032 fi 24033 24034 if test "$apu_dso_build" = "0"; then 24035 24036 # Statically link the drivers: 24037 objs= 24038 test $apu_have_openssl = 1 && objs="$objs crypto/apr_crypto_openssl.lo" 24039 test $apu_have_nss = 1 && objs="$objs crypto/apr_crypto_nss.lo" 24040 test $apu_have_oracle = 1 && objs="$objs dbd/apr_dbd_oracle.lo" 24041 test $apu_have_pgsql = 1 && objs="$objs dbd/apr_dbd_pgsql.lo" 24042 test $apu_have_mysql = 1 && objs="$objs dbd/apr_dbd_mysql.lo" 24043 test $apu_have_sqlite2 = 1 && objs="$objs dbd/apr_dbd_sqlite2.lo" 24044 test $apu_have_sqlite3 = 1 && objs="$objs dbd/apr_dbd_sqlite3.lo" 24045 test $apu_have_freetds = 1 && objs="$objs dbd/apr_dbd_freetds.lo" 24046 test $apu_have_odbc = 1 && objs="$objs dbd/apr_dbd_odbc.lo" 24047 test $apu_have_db = 1 && objs="$objs dbm/apr_dbm_berkeleydb.lo" 24048 test $apu_have_gdbm = 1 && objs="$objs dbm/apr_dbm_gdbm.lo" 24049 test $apu_have_ndbm = 1 && objs="$objs dbm/apr_dbm_ndbm.lo" 24050 test $apu_has_ldap = 1 && objs="$objs ldap/apr_ldap_init.lo" 24051 test $apu_has_ldap = 1 && objs="$objs ldap/apr_ldap_option.lo" 24052 test $apu_has_ldap = 1 && objs="$objs ldap/apr_ldap_rebind.lo" 24053 EXTRA_OBJECTS="$EXTRA_OBJECTS $objs" 24054 24055 # Use libtool *.la for mysql if available 24056 if test $apu_have_mysql = 1; then 24057 for flag in $LDADD_dbd_mysql 24058 do 24059 dir=`echo $flag | grep "^-L" | sed s:-L::` 24060 if test "x$dir" != 'x'; then 24061 if test -f "$dir/libmysqlclient_r.la"; then 24062 LDADD_dbd_mysql=$dir/libmysqlclient_r.la 24063 break 24064 fi 24065 fi 24066 done 24067 fi 24068 24069 APRUTIL_LIBS="$APRUTIL_LIBS $LDADD_crypto_openssl $LDADD_crypto_nss" 24070 APRUTIL_LIBS="$APRUTIL_LIBS $LDADD_dbd_pgsql $LDADD_dbd_sqlite2 $LDADD_dbd_sqlite3 $LDADD_dbd_oracle $LDADD_dbd_mysql $LDADD_dbd_freetds $LDADD_dbd_odbc" 24071 APRUTIL_LIBS="$APRUTIL_LIBS $LDADD_dbm_db $LDADD_dbm_gdbm $LDADD_dbm_ndbm" 24072 APRUTIL_LIBS="$APRUTIL_LIBS $LDADD_ldap" 24073 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $LDADD_crypto_openssl $LDADD_crypto_nss" 24074 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $LDADD_dbd_pgsql $LDADD_dbd_sqlite2 $LDADD_dbd_sqlite3 $LDADD_dbd_oracle $LDADD_dbd_mysql $LDADD_dbd_freetds $LDADD_dbd_odbc" 24075 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $LDADD_dbm_db $LDADD_dbm_gdbm $LDADD_dbm_ndbm" 24076 APRUTIL_EXPORT_LIBS="$APRUTIL_EXPORT_LIBS $LDADD_ldap" 24077 24078 else 24079 24080 # Build the drivers as loadable modules: 24081 dsos= 24082 test $apu_have_openssl = 1 && dsos="$dsos crypto/apr_crypto_openssl.la" 24083 test $apu_have_nss = 1 && dsos="$dsos crypto/apr_crypto_nss.la" 24084 test $apu_have_oracle = 1 && dsos="$dsos dbd/apr_dbd_oracle.la" 24085 test $apu_have_pgsql = 1 && dsos="$dsos dbd/apr_dbd_pgsql.la" 24086 test $apu_have_mysql = 1 && dsos="$dsos dbd/apr_dbd_mysql.la" 24087 test $apu_have_sqlite2 = 1 && dsos="$dsos dbd/apr_dbd_sqlite2.la" 24088 test $apu_have_sqlite3 = 1 && dsos="$dsos dbd/apr_dbd_sqlite3.la" 24089 test $apu_have_freetds = 1 && dsos="$dsos dbd/apr_dbd_freetds.la" 24090 test $apu_have_odbc = 1 && dsos="$dsos dbd/apr_dbd_odbc.la" 24091 test $apu_have_db = 1 && dsos="$dsos dbm/apr_dbm_db.la" 24092 test $apu_have_gdbm = 1 && dsos="$dsos dbm/apr_dbm_gdbm.la" 24093 test $apu_have_ndbm = 1 && dsos="$dsos dbm/apr_dbm_ndbm.la" 24094 test $apu_has_ldap = 1 && dsos="$dsos ldap/apr_ldap.la" 24095 24096 if test -n "$dsos"; then 24097 APU_MODULES="$APU_MODULES $dsos" 24098 fi 24099 24100 fi 24101 24102 24103cat >>confdefs.h <<_ACEOF 24104#define APU_DSO_BUILD $apu_dso_build 24105_ACEOF 24106 24107 24108 24109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 24110$as_echo_n "checking for library containing crypt... " >&6; } 24111if ${ac_cv_search_crypt+:} false; then : 24112 $as_echo_n "(cached) " >&6 24113else 24114 ac_func_search_save_LIBS=$LIBS 24115cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24116/* end confdefs.h. */ 24117 24118/* Override any GCC internal prototype to avoid an error. 24119 Use char because int might match the return type of a GCC 24120 builtin and then its argument prototype would still apply. */ 24121#ifdef __cplusplus 24122extern "C" 24123#endif 24124char crypt (); 24125int 24126main () 24127{ 24128return crypt (); 24129 ; 24130 return 0; 24131} 24132_ACEOF 24133for ac_lib in '' crypt ufc; do 24134 if test -z "$ac_lib"; then 24135 ac_res="none required" 24136 else 24137 ac_res=-l$ac_lib 24138 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 24139 fi 24140 if ac_fn_c_try_link "$LINENO"; then : 24141 ac_cv_search_crypt=$ac_res 24142fi 24143rm -f core conftest.err conftest.$ac_objext \ 24144 conftest$ac_exeext 24145 if ${ac_cv_search_crypt+:} false; then : 24146 break 24147fi 24148done 24149if ${ac_cv_search_crypt+:} false; then : 24150 24151else 24152 ac_cv_search_crypt=no 24153fi 24154rm conftest.$ac_ext 24155LIBS=$ac_func_search_save_LIBS 24156fi 24157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 24158$as_echo "$ac_cv_search_crypt" >&6; } 24159ac_res=$ac_cv_search_crypt 24160if test "$ac_res" != no; then : 24161 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 24162 24163fi 24164 24165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if system crypt() function is threadsafe" >&5 24166$as_echo_n "checking if system crypt() function is threadsafe... " >&6; } 24167if test "x$apu_crypt_threadsafe" = "x1"; then 24168 24169$as_echo "#define APU_CRYPT_THREADSAFE 1" >>confdefs.h 24170 24171 msg="yes" 24172else 24173 msg="no" 24174fi 24175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 24176$as_echo "$msg" >&6; } 24177 24178for ac_func in crypt_r 24179do : 24180 ac_fn_c_check_func "$LINENO" "crypt_r" "ac_cv_func_crypt_r" 24181if test "x$ac_cv_func_crypt_r" = xyes; then : 24182 cat >>confdefs.h <<_ACEOF 24183#define HAVE_CRYPT_R 1 24184_ACEOF 24185 crypt_r="1" 24186else 24187 crypt_r="0" 24188fi 24189done 24190 24191if test "$crypt_r" = "1"; then 24192 24193 24194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking style of crypt_r" >&5 24195$as_echo_n "checking style of crypt_r... " >&6; } 24196if ${apr_cv_crypt_r_style+:} false; then : 24197 $as_echo_n "(cached) " >&6 24198else 24199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24200/* end confdefs.h. */ 24201#include <crypt.h> 24202int 24203main () 24204{ 24205CRYPTD buffer; 24206 crypt_r("passwd", "hash", &buffer); 24207 ; 24208 return 0; 24209} 24210_ACEOF 24211if ac_fn_c_try_compile "$LINENO"; then : 24212 apr_cv_crypt_r_style=cryptd 24213else 24214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24215/* end confdefs.h. */ 24216#include <crypt.h> 24217int 24218main () 24219{ 24220struct crypt_data buffer; 24221 crypt_r("passwd", "hash", &buffer); 24222 ; 24223 return 0; 24224} 24225_ACEOF 24226if ac_fn_c_try_compile "$LINENO"; then : 24227 apr_cv_crypt_r_style=struct_crypt_data 24228else 24229 apr_cv_crypt_r_style=none 24230fi 24231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24232fi 24233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24234fi 24235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_cv_crypt_r_style" >&5 24236$as_echo "$apr_cv_crypt_r_style" >&6; } 24237 24238if test "$apr_cv_crypt_r_style" = "cryptd"; then 24239 24240$as_echo "#define CRYPT_R_CRYPTD 1" >>confdefs.h 24241 24242elif test "$apr_cv_crypt_r_style" = "struct_crypt_data"; then 24243 24244$as_echo "#define CRYPT_R_STRUCT_CRYPT_DATA 1" >>confdefs.h 24245 24246fi 24247 24248fi 24249 24250so_ext=$APR_SO_EXT 24251lib_target=$APR_LIB_TARGET 24252 24253 24254 24255APRUTIL_LIBNAME="aprutil${libsuffix}" 24256 24257 24258# Set up destination directory for DSOs. 24259APU_DSO_LIBDIR="\${libdir}/apr-util-${APRUTIL_MAJOR_VERSION}" 24260# Set APU_HAVE_MODULES appropriately for the Makefile 24261if test -n "$APU_MODULES"; then 24262 APU_HAVE_MODULES=yes 24263else 24264 APU_HAVE_MODULES=no 24265fi 24266# Define expanded libdir for apu_config.h 24267 24268ap_last= 24269ap_cur="$APU_DSO_LIBDIR" 24270while test "x${ap_cur}" != "x${ap_last}"; 24271do 24272 ap_last="${ap_cur}" 24273 ap_cur=`eval "echo ${ap_cur}"` 24274done 24275abs_dso_libdir="${ap_cur}" 24276 24277 24278cat >>confdefs.h <<_ACEOF 24279#define APU_DSO_LIBDIR "$abs_dso_libdir" 24280_ACEOF 24281 24282 24283 24284 24285 24286 24287 24288 if test "x$APRUTIL_LIBS" = "x"; then 24289 test "x$silent" != "xyes" && echo " setting APRUTIL_LIBS to \"$APR_LIBS\"" 24290 APRUTIL_LIBS="$APR_LIBS" 24291 else 24292 apr_addto_bugger="$APR_LIBS" 24293 for i in $apr_addto_bugger; do 24294 apr_addto_duplicate="0" 24295 for j in $APRUTIL_LIBS; do 24296 if test "x$i" = "x$j"; then 24297 apr_addto_duplicate="1" 24298 break 24299 fi 24300 done 24301 if test $apr_addto_duplicate = "0"; then 24302 test "x$silent" != "xyes" && echo " adding \"$i\" to APRUTIL_LIBS" 24303 APRUTIL_LIBS="$APRUTIL_LIBS $i" 24304 fi 24305 done 24306 fi 24307 24308 24309 24310 24311 24312 24313 24314 24315 24316if test ! -d ./build; then 24317 $mkdir_p build 24318fi 24319case $host in 24320 *-mingw*) 24321 sed -e 's/-DAPR_DECLARE_EXPORT/-DAPU_DECLARE_EXPORT/' \ 24322 -e 's/-DAPR_DECLARE_STATIC/-DAPU_DECLARE_STATIC -DAPR_DECLARE_STATIC/' \ 24323 < $APR_BUILD_DIR/apr_rules.mk > $abs_builddir/build/rules.mk 24324 ;; 24325 *) 24326 cp $APR_BUILD_DIR/apr_rules.mk $abs_builddir/build/rules.mk 24327 ;; 24328esac 24329 24330case "$host_alias" in 24331*bsdi* | BSD/OS) 24332 # Check whether they've installed GNU make 24333 if make --version > /dev/null 2>&1; then 24334 INCLUDE_RULES="include $abs_builddir/build/rules.mk" 24335 INCLUDE_OUTPUTS="include $abs_srcdir/build-outputs.mk" 24336 else 24337 INCLUDE_RULES=".include \"$abs_builddir/build/rules.mk\"" 24338 INCLUDE_OUTPUTS=".include \"$abs_srcdir/build-outputs.mk\"" 24339 fi 24340 ;; 24341*) 24342 INCLUDE_RULES="include $abs_builddir/build/rules.mk" 24343 INCLUDE_OUTPUTS="include $abs_srcdir/build-outputs.mk" 24344 ;; 24345esac 24346 24347 24348 24349for d in include include/private; do 24350 test -d $top_builddir/$d || mkdir $top_builddir/$d 24351done 24352 24353ac_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" 24354 24355 24356ac_config_commands="$ac_config_commands default" 24357 24358 24359if test -d $srcdir/test; then 24360 ac_config_files="$ac_config_files test/Makefile" 24361 24362fi 24363 24364cat >confcache <<\_ACEOF 24365# This file is a shell script that caches the results of configure 24366# tests run on this system so they can be shared between configure 24367# scripts and configure runs, see configure's option --config-cache. 24368# It is not useful on other systems. If it contains results you don't 24369# want to keep, you may remove or edit it. 24370# 24371# config.status only pays attention to the cache file if you give it 24372# the --recheck option to rerun configure. 24373# 24374# `ac_cv_env_foo' variables (set or unset) will be overridden when 24375# loading this file, other *unset* `ac_cv_foo' will be assigned the 24376# following values. 24377 24378_ACEOF 24379 24380# The following way of writing the cache mishandles newlines in values, 24381# but we know of no workaround that is simple, portable, and efficient. 24382# So, we kill variables containing newlines. 24383# Ultrix sh set writes to stderr and can't be redirected directly, 24384# and sets the high bit in the cache file unless we assign to the vars. 24385( 24386 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 24387 eval ac_val=\$$ac_var 24388 case $ac_val in #( 24389 *${as_nl}*) 24390 case $ac_var in #( 24391 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 24392$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 24393 esac 24394 case $ac_var in #( 24395 _ | IFS | as_nl) ;; #( 24396 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 24397 *) { eval $ac_var=; unset $ac_var;} ;; 24398 esac ;; 24399 esac 24400 done 24401 24402 (set) 2>&1 | 24403 case $as_nl`(ac_space=' '; set) 2>&1` in #( 24404 *${as_nl}ac_space=\ *) 24405 # `set' does not quote correctly, so add quotes: double-quote 24406 # substitution turns \\\\ into \\, and sed turns \\ into \. 24407 sed -n \ 24408 "s/'/'\\\\''/g; 24409 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 24410 ;; #( 24411 *) 24412 # `set' quotes correctly as required by POSIX, so do not add quotes. 24413 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 24414 ;; 24415 esac | 24416 sort 24417) | 24418 sed ' 24419 /^ac_cv_env_/b end 24420 t clear 24421 :clear 24422 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 24423 t end 24424 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 24425 :end' >>confcache 24426if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 24427 if test -w "$cache_file"; then 24428 if test "x$cache_file" != "x/dev/null"; then 24429 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 24430$as_echo "$as_me: updating cache $cache_file" >&6;} 24431 if test ! -f "$cache_file" || test -h "$cache_file"; then 24432 cat confcache >"$cache_file" 24433 else 24434 case $cache_file in #( 24435 */* | ?:*) 24436 mv -f confcache "$cache_file"$$ && 24437 mv -f "$cache_file"$$ "$cache_file" ;; #( 24438 *) 24439 mv -f confcache "$cache_file" ;; 24440 esac 24441 fi 24442 fi 24443 else 24444 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 24445$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 24446 fi 24447fi 24448rm -f confcache 24449 24450test "x$prefix" = xNONE && prefix=$ac_default_prefix 24451# Let make expand exec_prefix. 24452test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 24453 24454DEFS=-DHAVE_CONFIG_H 24455 24456ac_libobjs= 24457ac_ltlibobjs= 24458U= 24459for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 24460 # 1. Remove the extension, and $U if already installed. 24461 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 24462 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 24463 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 24464 # will be set to the directory where LIBOBJS objects are built. 24465 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 24466 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 24467done 24468LIBOBJS=$ac_libobjs 24469 24470LTLIBOBJS=$ac_ltlibobjs 24471 24472 24473 24474: "${CONFIG_STATUS=./config.status}" 24475ac_write_fail=0 24476ac_clean_files_save=$ac_clean_files 24477ac_clean_files="$ac_clean_files $CONFIG_STATUS" 24478{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 24479$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 24480as_write_fail=0 24481cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 24482#! $SHELL 24483# Generated by $as_me. 24484# Run this file to recreate the current configuration. 24485# Compiler output produced by configure, useful for debugging 24486# configure, is in config.log if it exists. 24487 24488debug=false 24489ac_cs_recheck=false 24490ac_cs_silent=false 24491 24492SHELL=\${CONFIG_SHELL-$SHELL} 24493export SHELL 24494_ASEOF 24495cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 24496## -------------------- ## 24497## M4sh Initialization. ## 24498## -------------------- ## 24499 24500# Be more Bourne compatible 24501DUALCASE=1; export DUALCASE # for MKS sh 24502if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 24503 emulate sh 24504 NULLCMD=: 24505 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 24506 # is contrary to our usage. Disable this feature. 24507 alias -g '${1+"$@"}'='"$@"' 24508 setopt NO_GLOB_SUBST 24509else 24510 case `(set -o) 2>/dev/null` in #( 24511 *posix*) : 24512 set -o posix ;; #( 24513 *) : 24514 ;; 24515esac 24516fi 24517 24518 24519as_nl=' 24520' 24521export as_nl 24522# Printing a long string crashes Solaris 7 /usr/bin/printf. 24523as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 24524as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 24525as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 24526# Prefer a ksh shell builtin over an external printf program on Solaris, 24527# but without wasting forks for bash or zsh. 24528if test -z "$BASH_VERSION$ZSH_VERSION" \ 24529 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 24530 as_echo='print -r --' 24531 as_echo_n='print -rn --' 24532elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 24533 as_echo='printf %s\n' 24534 as_echo_n='printf %s' 24535else 24536 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 24537 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 24538 as_echo_n='/usr/ucb/echo -n' 24539 else 24540 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 24541 as_echo_n_body='eval 24542 arg=$1; 24543 case $arg in #( 24544 *"$as_nl"*) 24545 expr "X$arg" : "X\\(.*\\)$as_nl"; 24546 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 24547 esac; 24548 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 24549 ' 24550 export as_echo_n_body 24551 as_echo_n='sh -c $as_echo_n_body as_echo' 24552 fi 24553 export as_echo_body 24554 as_echo='sh -c $as_echo_body as_echo' 24555fi 24556 24557# The user is always right. 24558if test "${PATH_SEPARATOR+set}" != set; then 24559 PATH_SEPARATOR=: 24560 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 24561 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 24562 PATH_SEPARATOR=';' 24563 } 24564fi 24565 24566 24567# IFS 24568# We need space, tab and new line, in precisely that order. Quoting is 24569# there to prevent editors from complaining about space-tab. 24570# (If _AS_PATH_WALK were called with IFS unset, it would disable word 24571# splitting by setting IFS to empty value.) 24572IFS=" "" $as_nl" 24573 24574# Find who we are. Look in the path if we contain no directory separator. 24575as_myself= 24576case $0 in #(( 24577 *[\\/]* ) as_myself=$0 ;; 24578 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24579for as_dir in $PATH 24580do 24581 IFS=$as_save_IFS 24582 test -z "$as_dir" && as_dir=. 24583 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 24584 done 24585IFS=$as_save_IFS 24586 24587 ;; 24588esac 24589# We did not find ourselves, most probably we were run as `sh COMMAND' 24590# in which case we are not to be found in the path. 24591if test "x$as_myself" = x; then 24592 as_myself=$0 24593fi 24594if test ! -f "$as_myself"; then 24595 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 24596 exit 1 24597fi 24598 24599# Unset variables that we do not need and which cause bugs (e.g. in 24600# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 24601# suppresses any "Segmentation fault" message there. '((' could 24602# trigger a bug in pdksh 5.2.14. 24603for as_var in BASH_ENV ENV MAIL MAILPATH 24604do eval test x\${$as_var+set} = xset \ 24605 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 24606done 24607PS1='$ ' 24608PS2='> ' 24609PS4='+ ' 24610 24611# NLS nuisances. 24612LC_ALL=C 24613export LC_ALL 24614LANGUAGE=C 24615export LANGUAGE 24616 24617# CDPATH. 24618(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 24619 24620 24621# as_fn_error STATUS ERROR [LINENO LOG_FD] 24622# ---------------------------------------- 24623# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 24624# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 24625# script with STATUS, using 1 if that was 0. 24626as_fn_error () 24627{ 24628 as_status=$1; test $as_status -eq 0 && as_status=1 24629 if test "$4"; then 24630 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 24631 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 24632 fi 24633 $as_echo "$as_me: error: $2" >&2 24634 as_fn_exit $as_status 24635} # as_fn_error 24636 24637 24638# as_fn_set_status STATUS 24639# ----------------------- 24640# Set $? to STATUS, without forking. 24641as_fn_set_status () 24642{ 24643 return $1 24644} # as_fn_set_status 24645 24646# as_fn_exit STATUS 24647# ----------------- 24648# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 24649as_fn_exit () 24650{ 24651 set +e 24652 as_fn_set_status $1 24653 exit $1 24654} # as_fn_exit 24655 24656# as_fn_unset VAR 24657# --------------- 24658# Portably unset VAR. 24659as_fn_unset () 24660{ 24661 { eval $1=; unset $1;} 24662} 24663as_unset=as_fn_unset 24664# as_fn_append VAR VALUE 24665# ---------------------- 24666# Append the text in VALUE to the end of the definition contained in VAR. Take 24667# advantage of any shell optimizations that allow amortized linear growth over 24668# repeated appends, instead of the typical quadratic growth present in naive 24669# implementations. 24670if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 24671 eval 'as_fn_append () 24672 { 24673 eval $1+=\$2 24674 }' 24675else 24676 as_fn_append () 24677 { 24678 eval $1=\$$1\$2 24679 } 24680fi # as_fn_append 24681 24682# as_fn_arith ARG... 24683# ------------------ 24684# Perform arithmetic evaluation on the ARGs, and store the result in the 24685# global $as_val. Take advantage of shells that can avoid forks. The arguments 24686# must be portable across $(()) and expr. 24687if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 24688 eval 'as_fn_arith () 24689 { 24690 as_val=$(( $* )) 24691 }' 24692else 24693 as_fn_arith () 24694 { 24695 as_val=`expr "$@" || test $? -eq 1` 24696 } 24697fi # as_fn_arith 24698 24699 24700if expr a : '\(a\)' >/dev/null 2>&1 && 24701 test "X`expr 00001 : '.*\(...\)'`" = X001; then 24702 as_expr=expr 24703else 24704 as_expr=false 24705fi 24706 24707if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 24708 as_basename=basename 24709else 24710 as_basename=false 24711fi 24712 24713if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 24714 as_dirname=dirname 24715else 24716 as_dirname=false 24717fi 24718 24719as_me=`$as_basename -- "$0" || 24720$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 24721 X"$0" : 'X\(//\)$' \| \ 24722 X"$0" : 'X\(/\)' \| . 2>/dev/null || 24723$as_echo X/"$0" | 24724 sed '/^.*\/\([^/][^/]*\)\/*$/{ 24725 s//\1/ 24726 q 24727 } 24728 /^X\/\(\/\/\)$/{ 24729 s//\1/ 24730 q 24731 } 24732 /^X\/\(\/\).*/{ 24733 s//\1/ 24734 q 24735 } 24736 s/.*/./; q'` 24737 24738# Avoid depending upon Character Ranges. 24739as_cr_letters='abcdefghijklmnopqrstuvwxyz' 24740as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 24741as_cr_Letters=$as_cr_letters$as_cr_LETTERS 24742as_cr_digits='0123456789' 24743as_cr_alnum=$as_cr_Letters$as_cr_digits 24744 24745ECHO_C= ECHO_N= ECHO_T= 24746case `echo -n x` in #((((( 24747-n*) 24748 case `echo 'xy\c'` in 24749 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 24750 xy) ECHO_C='\c';; 24751 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 24752 ECHO_T=' ';; 24753 esac;; 24754*) 24755 ECHO_N='-n';; 24756esac 24757 24758rm -f conf$$ conf$$.exe conf$$.file 24759if test -d conf$$.dir; then 24760 rm -f conf$$.dir/conf$$.file 24761else 24762 rm -f conf$$.dir 24763 mkdir conf$$.dir 2>/dev/null 24764fi 24765if (echo >conf$$.file) 2>/dev/null; then 24766 if ln -s conf$$.file conf$$ 2>/dev/null; then 24767 as_ln_s='ln -s' 24768 # ... but there are two gotchas: 24769 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 24770 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 24771 # In both cases, we have to default to `cp -pR'. 24772 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 24773 as_ln_s='cp -pR' 24774 elif ln conf$$.file conf$$ 2>/dev/null; then 24775 as_ln_s=ln 24776 else 24777 as_ln_s='cp -pR' 24778 fi 24779else 24780 as_ln_s='cp -pR' 24781fi 24782rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 24783rmdir conf$$.dir 2>/dev/null 24784 24785 24786# as_fn_mkdir_p 24787# ------------- 24788# Create "$as_dir" as a directory, including parents if necessary. 24789as_fn_mkdir_p () 24790{ 24791 24792 case $as_dir in #( 24793 -*) as_dir=./$as_dir;; 24794 esac 24795 test -d "$as_dir" || eval $as_mkdir_p || { 24796 as_dirs= 24797 while :; do 24798 case $as_dir in #( 24799 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 24800 *) as_qdir=$as_dir;; 24801 esac 24802 as_dirs="'$as_qdir' $as_dirs" 24803 as_dir=`$as_dirname -- "$as_dir" || 24804$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24805 X"$as_dir" : 'X\(//\)[^/]' \| \ 24806 X"$as_dir" : 'X\(//\)$' \| \ 24807 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 24808$as_echo X"$as_dir" | 24809 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24810 s//\1/ 24811 q 24812 } 24813 /^X\(\/\/\)[^/].*/{ 24814 s//\1/ 24815 q 24816 } 24817 /^X\(\/\/\)$/{ 24818 s//\1/ 24819 q 24820 } 24821 /^X\(\/\).*/{ 24822 s//\1/ 24823 q 24824 } 24825 s/.*/./; q'` 24826 test -d "$as_dir" && break 24827 done 24828 test -z "$as_dirs" || eval "mkdir $as_dirs" 24829 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 24830 24831 24832} # as_fn_mkdir_p 24833if mkdir -p . 2>/dev/null; then 24834 as_mkdir_p='mkdir -p "$as_dir"' 24835else 24836 test -d ./-p && rmdir ./-p 24837 as_mkdir_p=false 24838fi 24839 24840 24841# as_fn_executable_p FILE 24842# ----------------------- 24843# Test if FILE is an executable regular file. 24844as_fn_executable_p () 24845{ 24846 test -f "$1" && test -x "$1" 24847} # as_fn_executable_p 24848as_test_x='test -x' 24849as_executable_p=as_fn_executable_p 24850 24851# Sed expression to map a string onto a valid CPP name. 24852as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 24853 24854# Sed expression to map a string onto a valid variable name. 24855as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 24856 24857 24858exec 6>&1 24859## ----------------------------------- ## 24860## Main body of $CONFIG_STATUS script. ## 24861## ----------------------------------- ## 24862_ASEOF 24863test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 24864 24865cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24866# Save the log message, to keep $0 and so on meaningful, and to 24867# report actual input values of CONFIG_FILES etc. instead of their 24868# values after options handling. 24869ac_log=" 24870This file was extended by $as_me, which was 24871generated by GNU Autoconf 2.69. Invocation command line was 24872 24873 CONFIG_FILES = $CONFIG_FILES 24874 CONFIG_HEADERS = $CONFIG_HEADERS 24875 CONFIG_LINKS = $CONFIG_LINKS 24876 CONFIG_COMMANDS = $CONFIG_COMMANDS 24877 $ $0 $@ 24878 24879on `(hostname || uname -n) 2>/dev/null | sed 1q` 24880" 24881 24882_ACEOF 24883 24884case $ac_config_files in *" 24885"*) set x $ac_config_files; shift; ac_config_files=$*;; 24886esac 24887 24888case $ac_config_headers in *" 24889"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 24890esac 24891 24892 24893cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24894# Files that config.status was made for. 24895config_files="$ac_config_files" 24896config_headers="$ac_config_headers" 24897config_commands="$ac_config_commands" 24898 24899_ACEOF 24900 24901cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24902ac_cs_usage="\ 24903\`$as_me' instantiates files and other configuration actions 24904from templates according to the current configuration. Unless the files 24905and actions are specified as TAGs, all are instantiated by default. 24906 24907Usage: $0 [OPTION]... [TAG]... 24908 24909 -h, --help print this help, then exit 24910 -V, --version print version number and configuration settings, then exit 24911 --config print configuration, then exit 24912 -q, --quiet, --silent 24913 do not print progress messages 24914 -d, --debug don't remove temporary files 24915 --recheck update $as_me by reconfiguring in the same conditions 24916 --file=FILE[:TEMPLATE] 24917 instantiate the configuration file FILE 24918 --header=FILE[:TEMPLATE] 24919 instantiate the configuration header FILE 24920 24921Configuration files: 24922$config_files 24923 24924Configuration headers: 24925$config_headers 24926 24927Configuration commands: 24928$config_commands 24929 24930Report bugs to the package provider." 24931 24932_ACEOF 24933cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24934ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 24935ac_cs_version="\\ 24936config.status 24937configured by $0, generated by GNU Autoconf 2.69, 24938 with options \\"\$ac_cs_config\\" 24939 24940Copyright (C) 2012 Free Software Foundation, Inc. 24941This config.status script is free software; the Free Software Foundation 24942gives unlimited permission to copy, distribute and modify it." 24943 24944ac_pwd='$ac_pwd' 24945srcdir='$srcdir' 24946INSTALL='$INSTALL' 24947test -n "\$AWK" || AWK=awk 24948_ACEOF 24949 24950cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24951# The default lists apply if the user does not specify any file. 24952ac_need_defaults=: 24953while test $# != 0 24954do 24955 case $1 in 24956 --*=?*) 24957 ac_option=`expr "X$1" : 'X\([^=]*\)='` 24958 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 24959 ac_shift=: 24960 ;; 24961 --*=) 24962 ac_option=`expr "X$1" : 'X\([^=]*\)='` 24963 ac_optarg= 24964 ac_shift=: 24965 ;; 24966 *) 24967 ac_option=$1 24968 ac_optarg=$2 24969 ac_shift=shift 24970 ;; 24971 esac 24972 24973 case $ac_option in 24974 # Handling of the options. 24975 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 24976 ac_cs_recheck=: ;; 24977 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 24978 $as_echo "$ac_cs_version"; exit ;; 24979 --config | --confi | --conf | --con | --co | --c ) 24980 $as_echo "$ac_cs_config"; exit ;; 24981 --debug | --debu | --deb | --de | --d | -d ) 24982 debug=: ;; 24983 --file | --fil | --fi | --f ) 24984 $ac_shift 24985 case $ac_optarg in 24986 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 24987 '') as_fn_error $? "missing file argument" ;; 24988 esac 24989 as_fn_append CONFIG_FILES " '$ac_optarg'" 24990 ac_need_defaults=false;; 24991 --header | --heade | --head | --hea ) 24992 $ac_shift 24993 case $ac_optarg in 24994 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 24995 esac 24996 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 24997 ac_need_defaults=false;; 24998 --he | --h) 24999 # Conflict between --help and --header 25000 as_fn_error $? "ambiguous option: \`$1' 25001Try \`$0 --help' for more information.";; 25002 --help | --hel | -h ) 25003 $as_echo "$ac_cs_usage"; exit ;; 25004 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 25005 | -silent | --silent | --silen | --sile | --sil | --si | --s) 25006 ac_cs_silent=: ;; 25007 25008 # This is an error. 25009 -*) as_fn_error $? "unrecognized option: \`$1' 25010Try \`$0 --help' for more information." ;; 25011 25012 *) as_fn_append ac_config_targets " $1" 25013 ac_need_defaults=false ;; 25014 25015 esac 25016 shift 25017done 25018 25019ac_configure_extra_args= 25020 25021if $ac_cs_silent; then 25022 exec 6>/dev/null 25023 ac_configure_extra_args="$ac_configure_extra_args --silent" 25024fi 25025 25026_ACEOF 25027cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25028if \$ac_cs_recheck; then 25029 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 25030 shift 25031 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 25032 CONFIG_SHELL='$SHELL' 25033 export CONFIG_SHELL 25034 exec "\$@" 25035fi 25036 25037_ACEOF 25038cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25039exec 5>>config.log 25040{ 25041 echo 25042 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 25043## Running $as_me. ## 25044_ASBOX 25045 $as_echo "$ac_log" 25046} >&5 25047 25048_ACEOF 25049cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25050# 25051# INIT-COMMANDS 25052# 25053 25054APRUTIL_MAJOR_VERSION=$APRUTIL_MAJOR_VERSION 25055 25056 25057_ACEOF 25058 25059cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25060 25061# Handling of arguments. 25062for ac_config_target in $ac_config_targets 25063do 25064 case $ac_config_target in 25065 "include/private/apu_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/private/apu_config.h" ;; 25066 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 25067 "export_vars.sh") CONFIG_FILES="$CONFIG_FILES export_vars.sh" ;; 25068 "build/pkg/pkginfo") CONFIG_FILES="$CONFIG_FILES build/pkg/pkginfo" ;; 25069 "apr-util.pc") CONFIG_FILES="$CONFIG_FILES apr-util.pc" ;; 25070 "apu-$APRUTIL_MAJOR_VERSION-config") CONFIG_FILES="$CONFIG_FILES apu-$APRUTIL_MAJOR_VERSION-config:apu-config.in" ;; 25071 "include/private/apu_select_dbm.h") CONFIG_FILES="$CONFIG_FILES include/private/apu_select_dbm.h" ;; 25072 "include/apr_ldap.h") CONFIG_FILES="$CONFIG_FILES include/apr_ldap.h" ;; 25073 "include/apu.h") CONFIG_FILES="$CONFIG_FILES include/apu.h" ;; 25074 "include/apu_want.h") CONFIG_FILES="$CONFIG_FILES include/apu_want.h" ;; 25075 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 25076 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 25077 25078 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 25079 esac 25080done 25081 25082 25083# If the user did not use the arguments to specify the items to instantiate, 25084# then the envvar interface is used. Set only those that are not. 25085# We use the long form for the default assignment because of an extremely 25086# bizarre bug on SunOS 4.1.3. 25087if $ac_need_defaults; then 25088 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 25089 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 25090 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 25091fi 25092 25093# Have a temporary directory for convenience. Make it in the build tree 25094# simply because there is no reason against having it here, and in addition, 25095# creating and moving files from /tmp can sometimes cause problems. 25096# Hook for its removal unless debugging. 25097# Note that there is a small window in which the directory will not be cleaned: 25098# after its creation but before its name has been assigned to `$tmp'. 25099$debug || 25100{ 25101 tmp= ac_tmp= 25102 trap 'exit_status=$? 25103 : "${ac_tmp:=$tmp}" 25104 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 25105' 0 25106 trap 'as_fn_exit 1' 1 2 13 15 25107} 25108# Create a (secure) tmp directory for tmp files. 25109 25110{ 25111 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 25112 test -d "$tmp" 25113} || 25114{ 25115 tmp=./conf$$-$RANDOM 25116 (umask 077 && mkdir "$tmp") 25117} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 25118ac_tmp=$tmp 25119 25120# Set up the scripts for CONFIG_FILES section. 25121# No need to generate them if there are no CONFIG_FILES. 25122# This happens for instance with `./config.status config.h'. 25123if test -n "$CONFIG_FILES"; then 25124 25125 25126ac_cr=`echo X | tr X '\015'` 25127# On cygwin, bash can eat \r inside `` if the user requested igncr. 25128# But we know of no other shell where ac_cr would be empty at this 25129# point, so we can use a bashism as a fallback. 25130if test "x$ac_cr" = x; then 25131 eval ac_cr=\$\'\\r\' 25132fi 25133ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 25134if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 25135 ac_cs_awk_cr='\\r' 25136else 25137 ac_cs_awk_cr=$ac_cr 25138fi 25139 25140echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 25141_ACEOF 25142 25143 25144{ 25145 echo "cat >conf$$subs.awk <<_ACEOF" && 25146 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 25147 echo "_ACEOF" 25148} >conf$$subs.sh || 25149 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 25150ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 25151ac_delim='%!_!# ' 25152for ac_last_try in false false false false false :; do 25153 . ./conf$$subs.sh || 25154 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 25155 25156 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 25157 if test $ac_delim_n = $ac_delim_num; then 25158 break 25159 elif $ac_last_try; then 25160 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 25161 else 25162 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 25163 fi 25164done 25165rm -f conf$$subs.sh 25166 25167cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25168cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 25169_ACEOF 25170sed -n ' 25171h 25172s/^/S["/; s/!.*/"]=/ 25173p 25174g 25175s/^[^!]*!// 25176:repl 25177t repl 25178s/'"$ac_delim"'$// 25179t delim 25180:nl 25181h 25182s/\(.\{148\}\)..*/\1/ 25183t more1 25184s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 25185p 25186n 25187b repl 25188:more1 25189s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 25190p 25191g 25192s/.\{148\}// 25193t nl 25194:delim 25195h 25196s/\(.\{148\}\)..*/\1/ 25197t more2 25198s/["\\]/\\&/g; s/^/"/; s/$/"/ 25199p 25200b 25201:more2 25202s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 25203p 25204g 25205s/.\{148\}// 25206t delim 25207' <conf$$subs.awk | sed ' 25208/^[^""]/{ 25209 N 25210 s/\n// 25211} 25212' >>$CONFIG_STATUS || ac_write_fail=1 25213rm -f conf$$subs.awk 25214cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25215_ACAWK 25216cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 25217 for (key in S) S_is_set[key] = 1 25218 FS = "" 25219 25220} 25221{ 25222 line = $ 0 25223 nfields = split(line, field, "@") 25224 substed = 0 25225 len = length(field[1]) 25226 for (i = 2; i < nfields; i++) { 25227 key = field[i] 25228 keylen = length(key) 25229 if (S_is_set[key]) { 25230 value = S[key] 25231 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 25232 len += length(value) + length(field[++i]) 25233 substed = 1 25234 } else 25235 len += 1 + keylen 25236 } 25237 25238 print line 25239} 25240 25241_ACAWK 25242_ACEOF 25243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25244if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 25245 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 25246else 25247 cat 25248fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 25249 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 25250_ACEOF 25251 25252# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 25253# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 25254# trailing colons and then remove the whole line if VPATH becomes empty 25255# (actually we leave an empty line to preserve line numbers). 25256if test "x$srcdir" = x.; then 25257 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 25258h 25259s/// 25260s/^/:/ 25261s/[ ]*$/:/ 25262s/:\$(srcdir):/:/g 25263s/:\${srcdir}:/:/g 25264s/:@srcdir@:/:/g 25265s/^:*// 25266s/:*$// 25267x 25268s/\(=[ ]*\).*/\1/ 25269G 25270s/\n// 25271s/^[^=]*=[ ]*$// 25272}' 25273fi 25274 25275cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25276fi # test -n "$CONFIG_FILES" 25277 25278# Set up the scripts for CONFIG_HEADERS section. 25279# No need to generate them if there are no CONFIG_HEADERS. 25280# This happens for instance with `./config.status Makefile'. 25281if test -n "$CONFIG_HEADERS"; then 25282cat >"$ac_tmp/defines.awk" <<\_ACAWK || 25283BEGIN { 25284_ACEOF 25285 25286# Transform confdefs.h into an awk script `defines.awk', embedded as 25287# here-document in config.status, that substitutes the proper values into 25288# config.h.in to produce config.h. 25289 25290# Create a delimiter string that does not exist in confdefs.h, to ease 25291# handling of long lines. 25292ac_delim='%!_!# ' 25293for ac_last_try in false false :; do 25294 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 25295 if test -z "$ac_tt"; then 25296 break 25297 elif $ac_last_try; then 25298 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 25299 else 25300 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 25301 fi 25302done 25303 25304# For the awk script, D is an array of macro values keyed by name, 25305# likewise P contains macro parameters if any. Preserve backslash 25306# newline sequences. 25307 25308ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 25309sed -n ' 25310s/.\{148\}/&'"$ac_delim"'/g 25311t rset 25312:rset 25313s/^[ ]*#[ ]*define[ ][ ]*/ / 25314t def 25315d 25316:def 25317s/\\$// 25318t bsnl 25319s/["\\]/\\&/g 25320s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 25321D["\1"]=" \3"/p 25322s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 25323d 25324:bsnl 25325s/["\\]/\\&/g 25326s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 25327D["\1"]=" \3\\\\\\n"\\/p 25328t cont 25329s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 25330t cont 25331d 25332:cont 25333n 25334s/.\{148\}/&'"$ac_delim"'/g 25335t clear 25336:clear 25337s/\\$// 25338t bsnlc 25339s/["\\]/\\&/g; s/^/"/; s/$/"/p 25340d 25341:bsnlc 25342s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 25343b cont 25344' <confdefs.h | sed ' 25345s/'"$ac_delim"'/"\\\ 25346"/g' >>$CONFIG_STATUS || ac_write_fail=1 25347 25348cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25349 for (key in D) D_is_set[key] = 1 25350 FS = "" 25351} 25352/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 25353 line = \$ 0 25354 split(line, arg, " ") 25355 if (arg[1] == "#") { 25356 defundef = arg[2] 25357 mac1 = arg[3] 25358 } else { 25359 defundef = substr(arg[1], 2) 25360 mac1 = arg[2] 25361 } 25362 split(mac1, mac2, "(") #) 25363 macro = mac2[1] 25364 prefix = substr(line, 1, index(line, defundef) - 1) 25365 if (D_is_set[macro]) { 25366 # Preserve the white space surrounding the "#". 25367 print prefix "define", macro P[macro] D[macro] 25368 next 25369 } else { 25370 # Replace #undef with comments. This is necessary, for example, 25371 # in the case of _POSIX_SOURCE, which is predefined and required 25372 # on some systems where configure will not decide to define it. 25373 if (defundef == "undef") { 25374 print "/*", prefix defundef, macro, "*/" 25375 next 25376 } 25377 } 25378} 25379{ print } 25380_ACAWK 25381_ACEOF 25382cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25383 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 25384fi # test -n "$CONFIG_HEADERS" 25385 25386 25387eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 25388shift 25389for ac_tag 25390do 25391 case $ac_tag in 25392 :[FHLC]) ac_mode=$ac_tag; continue;; 25393 esac 25394 case $ac_mode$ac_tag in 25395 :[FHL]*:*);; 25396 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 25397 :[FH]-) ac_tag=-:-;; 25398 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 25399 esac 25400 ac_save_IFS=$IFS 25401 IFS=: 25402 set x $ac_tag 25403 IFS=$ac_save_IFS 25404 shift 25405 ac_file=$1 25406 shift 25407 25408 case $ac_mode in 25409 :L) ac_source=$1;; 25410 :[FH]) 25411 ac_file_inputs= 25412 for ac_f 25413 do 25414 case $ac_f in 25415 -) ac_f="$ac_tmp/stdin";; 25416 *) # Look for the file first in the build tree, then in the source tree 25417 # (if the path is not absolute). The absolute path cannot be DOS-style, 25418 # because $ac_f cannot contain `:'. 25419 test -f "$ac_f" || 25420 case $ac_f in 25421 [\\/$]*) false;; 25422 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 25423 esac || 25424 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 25425 esac 25426 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 25427 as_fn_append ac_file_inputs " '$ac_f'" 25428 done 25429 25430 # Let's still pretend it is `configure' which instantiates (i.e., don't 25431 # use $as_me), people would be surprised to read: 25432 # /* config.h. Generated by config.status. */ 25433 configure_input='Generated from '` 25434 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 25435 `' by configure.' 25436 if test x"$ac_file" != x-; then 25437 configure_input="$ac_file. $configure_input" 25438 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 25439$as_echo "$as_me: creating $ac_file" >&6;} 25440 fi 25441 # Neutralize special characters interpreted by sed in replacement strings. 25442 case $configure_input in #( 25443 *\&* | *\|* | *\\* ) 25444 ac_sed_conf_input=`$as_echo "$configure_input" | 25445 sed 's/[\\\\&|]/\\\\&/g'`;; #( 25446 *) ac_sed_conf_input=$configure_input;; 25447 esac 25448 25449 case $ac_tag in 25450 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 25451 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 25452 esac 25453 ;; 25454 esac 25455 25456 ac_dir=`$as_dirname -- "$ac_file" || 25457$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25458 X"$ac_file" : 'X\(//\)[^/]' \| \ 25459 X"$ac_file" : 'X\(//\)$' \| \ 25460 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 25461$as_echo X"$ac_file" | 25462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25463 s//\1/ 25464 q 25465 } 25466 /^X\(\/\/\)[^/].*/{ 25467 s//\1/ 25468 q 25469 } 25470 /^X\(\/\/\)$/{ 25471 s//\1/ 25472 q 25473 } 25474 /^X\(\/\).*/{ 25475 s//\1/ 25476 q 25477 } 25478 s/.*/./; q'` 25479 as_dir="$ac_dir"; as_fn_mkdir_p 25480 ac_builddir=. 25481 25482case "$ac_dir" in 25483.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 25484*) 25485 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 25486 # A ".." for each directory in $ac_dir_suffix. 25487 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 25488 case $ac_top_builddir_sub in 25489 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 25490 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 25491 esac ;; 25492esac 25493ac_abs_top_builddir=$ac_pwd 25494ac_abs_builddir=$ac_pwd$ac_dir_suffix 25495# for backward compatibility: 25496ac_top_builddir=$ac_top_build_prefix 25497 25498case $srcdir in 25499 .) # We are building in place. 25500 ac_srcdir=. 25501 ac_top_srcdir=$ac_top_builddir_sub 25502 ac_abs_top_srcdir=$ac_pwd ;; 25503 [\\/]* | ?:[\\/]* ) # Absolute name. 25504 ac_srcdir=$srcdir$ac_dir_suffix; 25505 ac_top_srcdir=$srcdir 25506 ac_abs_top_srcdir=$srcdir ;; 25507 *) # Relative name. 25508 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 25509 ac_top_srcdir=$ac_top_build_prefix$srcdir 25510 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 25511esac 25512ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 25513 25514 25515 case $ac_mode in 25516 :F) 25517 # 25518 # CONFIG_FILE 25519 # 25520 25521 case $INSTALL in 25522 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 25523 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 25524 esac 25525_ACEOF 25526 25527cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25528# If the template does not know about datarootdir, expand it. 25529# FIXME: This hack should be removed a few years after 2.60. 25530ac_datarootdir_hack=; ac_datarootdir_seen= 25531ac_sed_dataroot=' 25532/datarootdir/ { 25533 p 25534 q 25535} 25536/@datadir@/p 25537/@docdir@/p 25538/@infodir@/p 25539/@localedir@/p 25540/@mandir@/p' 25541case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 25542*datarootdir*) ac_datarootdir_seen=yes;; 25543*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 25544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 25545$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 25546_ACEOF 25547cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25548 ac_datarootdir_hack=' 25549 s&@datadir@&$datadir&g 25550 s&@docdir@&$docdir&g 25551 s&@infodir@&$infodir&g 25552 s&@localedir@&$localedir&g 25553 s&@mandir@&$mandir&g 25554 s&\\\${datarootdir}&$datarootdir&g' ;; 25555esac 25556_ACEOF 25557 25558# Neutralize VPATH when `$srcdir' = `.'. 25559# Shell code in configure.ac might set extrasub. 25560# FIXME: do we really want to maintain this feature? 25561cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25562ac_sed_extra="$ac_vpsub 25563$extrasub 25564_ACEOF 25565cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25566:t 25567/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 25568s|@configure_input@|$ac_sed_conf_input|;t t 25569s&@top_builddir@&$ac_top_builddir_sub&;t t 25570s&@top_build_prefix@&$ac_top_build_prefix&;t t 25571s&@srcdir@&$ac_srcdir&;t t 25572s&@abs_srcdir@&$ac_abs_srcdir&;t t 25573s&@top_srcdir@&$ac_top_srcdir&;t t 25574s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 25575s&@builddir@&$ac_builddir&;t t 25576s&@abs_builddir@&$ac_abs_builddir&;t t 25577s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 25578s&@INSTALL@&$ac_INSTALL&;t t 25579$ac_datarootdir_hack 25580" 25581eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 25582 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 25583 25584test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 25585 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 25586 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 25587 "$ac_tmp/out"`; test -z "$ac_out"; } && 25588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 25589which seems to be undefined. Please make sure it is defined" >&5 25590$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 25591which seems to be undefined. Please make sure it is defined" >&2;} 25592 25593 rm -f "$ac_tmp/stdin" 25594 case $ac_file in 25595 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 25596 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 25597 esac \ 25598 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 25599 ;; 25600 :H) 25601 # 25602 # CONFIG_HEADER 25603 # 25604 if test x"$ac_file" != x-; then 25605 { 25606 $as_echo "/* $configure_input */" \ 25607 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 25608 } >"$ac_tmp/config.h" \ 25609 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 25610 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 25611 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 25612$as_echo "$as_me: $ac_file is unchanged" >&6;} 25613 else 25614 rm -f "$ac_file" 25615 mv "$ac_tmp/config.h" "$ac_file" \ 25616 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 25617 fi 25618 else 25619 $as_echo "/* $configure_input */" \ 25620 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 25621 || as_fn_error $? "could not create -" "$LINENO" 5 25622 fi 25623 ;; 25624 25625 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 25626$as_echo "$as_me: executing $ac_file commands" >&6;} 25627 ;; 25628 esac 25629 25630 25631 case $ac_file$ac_mode in 25632 "default":C) 25633chmod +x apu-$APRUTIL_MAJOR_VERSION-config 25634 ;; 25635 25636 esac 25637done # for ac_tag 25638 25639 25640as_fn_exit 0 25641_ACEOF 25642ac_clean_files=$ac_clean_files_save 25643 25644test $ac_write_fail = 0 || 25645 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 25646 25647 25648# configure is writing to config.log, and then calls config.status. 25649# config.status does its own redirection, appending to config.log. 25650# Unfortunately, on DOS this fails, as config.log is still kept open 25651# by configure, so config.status won't be able to write to it; its 25652# output is simply discarded. So we exec the FD to /dev/null, 25653# effectively closing config.log, so it can be properly (re)opened and 25654# appended to by config.status. When coming back to configure, we 25655# need to make the FD available again. 25656if test "$no_create" != yes; then 25657 ac_cs_success=: 25658 ac_config_status_args= 25659 test "$silent" = yes && 25660 ac_config_status_args="$ac_config_status_args --quiet" 25661 exec 5>/dev/null 25662 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 25663 exec 5>>config.log 25664 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 25665 # would make configure fail if this is the last instruction. 25666 $ac_cs_success || as_fn_exit 1 25667fi 25668if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 25669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 25670$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 25671fi 25672
|