1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for subversion 1.14.1. 4# 5# Report bugs to <http://subversion.apache.org/>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: http://subversion.apache.org/ about your system, 279$0: including any error possibly output before this 280$0: message. Then install a modern shell, or manually run 281$0: the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='subversion' 592PACKAGE_TARNAME='subversion' 593PACKAGE_VERSION='1.14.1' 594PACKAGE_STRING='subversion 1.14.1' 595PACKAGE_BUGREPORT='http://subversion.apache.org/' 596PACKAGE_URL='' 597 598ac_unique_file="subversion/include/svn_types.h" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='LTLIBOBJS 636SVN_CONFIG_SCRIPT_FILES 637INCLUDE_OUTPUTS 638JAVAHL_COMPAT_TESTS_TARGET 639JAVAHL_TESTS_TARGET 640JAVA_CLASSPATH 641LT_CXX_LIBADD 642FIX_JAVAHL_LIB 643JAVAHL_OBJDIR 644INSTALL_EXTRA_JAVAHL_LIB 645SVN_BUILD_SVNXX_TESTS 646SVN_BUILD_SVNXX 647BOOST_LDFLAGS 648BOOST_CPPFLAGS 649BOOST_UNIT_TEST_FRAMEWORK_LIB 650SVN_FS_LIB_LINK 651SVN_FS_LIB_INSTALL_DEPS 652SVN_FS_LIB_DEPS 653SVN_RA_LIB_LINK 654SVN_RA_LIB_INSTALL_DEPS 655SVN_RA_LIB_DEPS 656CTYPESGEN 657SWIG_PY_FEATURES 658SWIG_PL_FEATURES 659SWIG_RB_FEATURES 660SWIG_FEATURES 661SWIG_RB_ERRMSG 662SWIG_RB_TEST_VERBOSE 663SWIG_RB_SITE_ARCH_DIR 664SWIG_RB_SITE_LIB_DIR 665SWIG_RB_COMPILE 666SWIG_RB_INCLUDES 667SWIG_RB_LIBS 668SWIG_RB_LINK 669SWIG_PL_ERRMSG 670SWIG_PL_LINK 671SWIG_PL_INCLUDES 672SWIG_PY_ERRMSG 673SWIG_PY_OPTS 674SWIG_PY_LIBS 675SWIG_PY_LINK 676SWIG_PY_COMPILE 677SWIG_PY_INCLUDES 678SVN_PY3C_INCLUDES 679SWIG 680RUBY_TEENY 681RUBY_MINOR 682RUBY_MAJOR 683RDOC 684RUBY 685PERL 686JNI_INCLUDES 687JAR 688JAVAH 689JAVADOC 690JAVAC_COMPAT_FLAGS 691JAVAC_FLAGS 692JAVAC 693JAVA 694JDK 695PYTHON 696MOD_ACTIVATION 697SVN_UTF8PROC_LIBS 698SVN_UTF8PROC_INCLUDES 699SVN_LZ4_LIBS 700SVN_LZ4_INCLUDES 701SVN_ZLIB_LIBS 702SVN_ZLIB_INCLUDES 703shared_only_LDFLAGS 704libsvn_wc_LDFLAGS 705libsvn_subr_LDFLAGS 706libsvn_repos_LDFLAGS 707libsvn_ra_svn_LDFLAGS 708libsvn_ra_serf_LDFLAGS 709libsvn_ra_local_LDFLAGS 710libsvn_ra_LDFLAGS 711libsvn_fs_util_LDFLAGS 712libsvn_fs_fs_LDFLAGS 713libsvn_fs_base_LDFLAGS 714libsvn_fs_LDFLAGS 715libsvn_diff_LDFLAGS 716libsvn_delta_LDFLAGS 717libsvn_client_LDFLAGS 718LIBOBJS 719BDB_TEST_PROGRAMS 720BDB_TEST_DEPS 721INSTALL_RULES 722INSTALL_STATIC_RULES 723BUILD_RULES 724SVN_KWALLET_LIBS 725SVN_KWALLET_INCLUDES 726KDE_CONFIG 727SVN_MAGIC_LIBS 728SVN_MAGIC_INCLUDES 729MSGFMTFLAGS 730NO_GETTEXT_CODESET 731GETTEXT_CODESET 732SVN_INTL_LIBS 733XGETTEXT 734MSGMERGE 735MSGFMT 736SVN_GNOME_KEYRING_PCLIBS 737SVN_GNOME_KEYRING_LIBS 738SVN_GNOME_KEYRING_INCLUDES 739SVN_HAVE_GPG_AGENT 740SVN_MACOS_KEYCHAIN_LIBS 741SVN_MACOS_PLIST_LIBS 742SVN_SASL_LIBS 743SVN_SASL_INCLUDES 744SVN_DB_LIBS 745SVN_DB_INCLUDES 746SVN_XML_LIBS 747SVN_XML_INCLUDES 748DOXYGEN 749TRANG 750LT_NO_UNDEFINED 751TRANSFORM_LIBTOOL_SCRIPTS 752LT_LDFLAGS 753LT_CFLAGS 754SVN_LIBTOOL 755CXXCPP 756LT_SYS_LIBRARY_PATH 757OTOOL64 758OTOOL 759LIPO 760NMEDIT 761DSYMUTIL 762MANIFEST_TOOL 763AWK 764RANLIB 765STRIP 766ac_ct_AR 767AR 768DLLTOOL 769OBJDUMP 770NM 771ac_ct_DUMPBIN 772DUMPBIN 773LD 774FGREP 775LIBTOOL 776SVN_BINDIR 777SVN_SQLITE_LIBS 778SVN_SQLITE_INCLUDES 779HTTPD_VERSION 780INSTALL_APACHE_MODS 781APACHE_LIBEXECDIR 782APACHE_INCLUDES 783APACHE_LDFLAGS 784APXS 785HTTPD_WHITELIST 786SVN_APR_MEMCACHE_LIBS 787SVN_APR_MEMCACHE_INCLUDES 788SVN_SERF_LIBS 789SVN_SERF_INCLUDES 790PKG_CONFIG 791SVN_LT_SOVERSION 792SVN_APR_MAJOR_VERSION 793SVN_APRUTIL_LIBS 794SVN_APRUTIL_CONFIG 795SVN_APRUTIL_INCLUDES 796SVN_APR_SHLIB_PATH_VAR 797SVN_APR_LIBS 798SVN_APR_INCLUDES 799SVN_APR_CONFIG 800MKDIR 801INSTALL_DATA 802INSTALL_SCRIPT 803INSTALL_PROGRAM 804LN_S 805EGREP 806GREP 807target_os 808target_vendor 809target_cpu 810target 811host_os 812host_vendor 813host_cpu 814host 815build_os 816build_vendor 817build_cpu 818build 819SED 820CPP 821CXXUSERFLAGS 822CXXMAINTAINERFLAGS 823CXXNOWARNFLAGS 824CXXMODEFLAGS 825ac_ct_CXX 826CXXFLAGS 827CXX 828CUSERFLAGS 829CMAINTAINERFLAGS 830CNOWARNFLAGS 831CMODEFLAGS 832OBJEXT 833EXEEXT 834ac_ct_CC 835CPPFLAGS 836LDFLAGS 837CFLAGS 838CC 839SWIG_LDFLAGS 840canonicalized_srcdir 841abs_builddir 842abs_srcdir 843target_alias 844host_alias 845build_alias 846LIBS 847ECHO_T 848ECHO_N 849ECHO_C 850DEFS 851mandir 852localedir 853libdir 854psdir 855pdfdir 856dvidir 857htmldir 858infodir 859docdir 860oldincludedir 861includedir 862localstatedir 863sharedstatedir 864sysconfdir 865datadir 866datarootdir 867libexecdir 868sbindir 869bindir 870program_transform_name 871prefix 872exec_prefix 873PACKAGE_URL 874PACKAGE_BUGREPORT 875PACKAGE_STRING 876PACKAGE_VERSION 877PACKAGE_TARNAME 878PACKAGE_NAME 879PATH_SEPARATOR 880SHELL' 881ac_subst_files='' 882ac_user_opts=' 883enable_option_checking 884with_apr 885with_apr_util 886with_serf 887with_apr_memcache 888enable_apache_whitelist 889with_apxs 890with_apache_libexecdir 891enable_broken_httpd_auth 892with_sqlite 893enable_sqlite_compatibility_version 894enable_shared 895enable_static 896with_pic 897enable_fast_install 898with_aix_soname 899with_gnu_ld 900with_sysroot 901enable_libtool_lock 902enable_experimental_libtool 903enable_all_static 904enable_local_library_preloading 905with_trang 906with_doxygen 907with_expat 908with_berkeley_db 909enable_bdb6 910with_sasl 911enable_keychain 912with_gpg_agent 913with_old_gnome_keyring 914with_gnome_keyring 915enable_ev2_impl 916enable_nls 917with_libmagic 918with_kwallet 919enable_plaintext_password_storage 920enable_debug 921enable_optimize 922enable_disallowing_of_undefined_references 923enable_maintainer_mode 924enable_full_version_match 925with_editor 926with_zlib 927with_lz4 928with_utf8proc 929enable_mod_activation 930enable_gcov 931enable_gprof 932with_jdk 933with_jikes 934with_swig 935with_py3c 936with_ruby_sitedir 937with_ruby_test_verbose 938with_ctypesgen 939enable_runtime_module_search 940enable_svnxx 941enable_svnxx_tests 942with_boost 943with_boost_libdir 944with_boost_unit_test_framework 945enable_javahl 946with_junit 947' 948 ac_precious_vars='build_alias 949host_alias 950target_alias 951CC 952CFLAGS 953LDFLAGS 954LIBS 955CPPFLAGS 956CXX 957CXXFLAGS 958CCC 959CPP 960LT_SYS_LIBRARY_PATH 961CXXCPP 962PYTHON 963SWIG_FEATURES 964SWIG_RB_FEATURES 965SWIG_PL_FEATURES 966SWIG_PY_FEATURES' 967 968 969# Initialize some variables set by options. 970ac_init_help= 971ac_init_version=false 972ac_unrecognized_opts= 973ac_unrecognized_sep= 974# The variables have the same names as the options, with 975# dashes changed to underlines. 976cache_file=/dev/null 977exec_prefix=NONE 978no_create= 979no_recursion= 980prefix=NONE 981program_prefix=NONE 982program_suffix=NONE 983program_transform_name=s,x,x, 984silent= 985site= 986srcdir= 987verbose= 988x_includes=NONE 989x_libraries=NONE 990 991# Installation directory options. 992# These are left unexpanded so users can "make install exec_prefix=/foo" 993# and all the variables that are supposed to be based on exec_prefix 994# by default will actually change. 995# Use braces instead of parens because sh, perl, etc. also accept them. 996# (The list follows the same order as the GNU Coding Standards.) 997bindir='${exec_prefix}/bin' 998sbindir='${exec_prefix}/sbin' 999libexecdir='${exec_prefix}/libexec' 1000datarootdir='${prefix}/share' 1001datadir='${datarootdir}' 1002sysconfdir='${prefix}/etc' 1003sharedstatedir='${prefix}/com' 1004localstatedir='${prefix}/var' 1005includedir='${prefix}/include' 1006oldincludedir='/usr/include' 1007docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1008infodir='${datarootdir}/info' 1009htmldir='${docdir}' 1010dvidir='${docdir}' 1011pdfdir='${docdir}' 1012psdir='${docdir}' 1013libdir='${exec_prefix}/lib' 1014localedir='${datarootdir}/locale' 1015mandir='${datarootdir}/man' 1016 1017ac_prev= 1018ac_dashdash= 1019for ac_option 1020do 1021 # If the previous option needs an argument, assign it. 1022 if test -n "$ac_prev"; then 1023 eval $ac_prev=\$ac_option 1024 ac_prev= 1025 continue 1026 fi 1027 1028 case $ac_option in 1029 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1030 *=) ac_optarg= ;; 1031 *) ac_optarg=yes ;; 1032 esac 1033 1034 # Accept the important Cygnus configure options, so we can diagnose typos. 1035 1036 case $ac_dashdash$ac_option in 1037 --) 1038 ac_dashdash=yes ;; 1039 1040 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1041 ac_prev=bindir ;; 1042 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1043 bindir=$ac_optarg ;; 1044 1045 -build | --build | --buil | --bui | --bu) 1046 ac_prev=build_alias ;; 1047 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1048 build_alias=$ac_optarg ;; 1049 1050 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1051 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1052 ac_prev=cache_file ;; 1053 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1054 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1055 cache_file=$ac_optarg ;; 1056 1057 --config-cache | -C) 1058 cache_file=config.cache ;; 1059 1060 -datadir | --datadir | --datadi | --datad) 1061 ac_prev=datadir ;; 1062 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1063 datadir=$ac_optarg ;; 1064 1065 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1066 | --dataroo | --dataro | --datar) 1067 ac_prev=datarootdir ;; 1068 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1069 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1070 datarootdir=$ac_optarg ;; 1071 1072 -disable-* | --disable-*) 1073 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1074 # Reject names that are not valid shell variable names. 1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1076 as_fn_error $? "invalid feature name: $ac_useropt" 1077 ac_useropt_orig=$ac_useropt 1078 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1079 case $ac_user_opts in 1080 *" 1081"enable_$ac_useropt" 1082"*) ;; 1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1084 ac_unrecognized_sep=', ';; 1085 esac 1086 eval enable_$ac_useropt=no ;; 1087 1088 -docdir | --docdir | --docdi | --doc | --do) 1089 ac_prev=docdir ;; 1090 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1091 docdir=$ac_optarg ;; 1092 1093 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1094 ac_prev=dvidir ;; 1095 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1096 dvidir=$ac_optarg ;; 1097 1098 -enable-* | --enable-*) 1099 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1100 # Reject names that are not valid shell variable names. 1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1102 as_fn_error $? "invalid feature name: $ac_useropt" 1103 ac_useropt_orig=$ac_useropt 1104 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1105 case $ac_user_opts in 1106 *" 1107"enable_$ac_useropt" 1108"*) ;; 1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1110 ac_unrecognized_sep=', ';; 1111 esac 1112 eval enable_$ac_useropt=\$ac_optarg ;; 1113 1114 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1115 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1116 | --exec | --exe | --ex) 1117 ac_prev=exec_prefix ;; 1118 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1119 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1120 | --exec=* | --exe=* | --ex=*) 1121 exec_prefix=$ac_optarg ;; 1122 1123 -gas | --gas | --ga | --g) 1124 # Obsolete; use --with-gas. 1125 with_gas=yes ;; 1126 1127 -help | --help | --hel | --he | -h) 1128 ac_init_help=long ;; 1129 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1130 ac_init_help=recursive ;; 1131 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1132 ac_init_help=short ;; 1133 1134 -host | --host | --hos | --ho) 1135 ac_prev=host_alias ;; 1136 -host=* | --host=* | --hos=* | --ho=*) 1137 host_alias=$ac_optarg ;; 1138 1139 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1140 ac_prev=htmldir ;; 1141 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1142 | --ht=*) 1143 htmldir=$ac_optarg ;; 1144 1145 -includedir | --includedir | --includedi | --included | --include \ 1146 | --includ | --inclu | --incl | --inc) 1147 ac_prev=includedir ;; 1148 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1149 | --includ=* | --inclu=* | --incl=* | --inc=*) 1150 includedir=$ac_optarg ;; 1151 1152 -infodir | --infodir | --infodi | --infod | --info | --inf) 1153 ac_prev=infodir ;; 1154 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1155 infodir=$ac_optarg ;; 1156 1157 -libdir | --libdir | --libdi | --libd) 1158 ac_prev=libdir ;; 1159 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1160 libdir=$ac_optarg ;; 1161 1162 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1163 | --libexe | --libex | --libe) 1164 ac_prev=libexecdir ;; 1165 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1166 | --libexe=* | --libex=* | --libe=*) 1167 libexecdir=$ac_optarg ;; 1168 1169 -localedir | --localedir | --localedi | --localed | --locale) 1170 ac_prev=localedir ;; 1171 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1172 localedir=$ac_optarg ;; 1173 1174 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1175 | --localstate | --localstat | --localsta | --localst | --locals) 1176 ac_prev=localstatedir ;; 1177 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1178 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1179 localstatedir=$ac_optarg ;; 1180 1181 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1182 ac_prev=mandir ;; 1183 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1184 mandir=$ac_optarg ;; 1185 1186 -nfp | --nfp | --nf) 1187 # Obsolete; use --without-fp. 1188 with_fp=no ;; 1189 1190 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1191 | --no-cr | --no-c | -n) 1192 no_create=yes ;; 1193 1194 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1195 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1196 no_recursion=yes ;; 1197 1198 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1199 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1200 | --oldin | --oldi | --old | --ol | --o) 1201 ac_prev=oldincludedir ;; 1202 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1203 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1204 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1205 oldincludedir=$ac_optarg ;; 1206 1207 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1208 ac_prev=prefix ;; 1209 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1210 prefix=$ac_optarg ;; 1211 1212 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1213 | --program-pre | --program-pr | --program-p) 1214 ac_prev=program_prefix ;; 1215 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1216 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1217 program_prefix=$ac_optarg ;; 1218 1219 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1220 | --program-suf | --program-su | --program-s) 1221 ac_prev=program_suffix ;; 1222 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1223 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1224 program_suffix=$ac_optarg ;; 1225 1226 -program-transform-name | --program-transform-name \ 1227 | --program-transform-nam | --program-transform-na \ 1228 | --program-transform-n | --program-transform- \ 1229 | --program-transform | --program-transfor \ 1230 | --program-transfo | --program-transf \ 1231 | --program-trans | --program-tran \ 1232 | --progr-tra | --program-tr | --program-t) 1233 ac_prev=program_transform_name ;; 1234 -program-transform-name=* | --program-transform-name=* \ 1235 | --program-transform-nam=* | --program-transform-na=* \ 1236 | --program-transform-n=* | --program-transform-=* \ 1237 | --program-transform=* | --program-transfor=* \ 1238 | --program-transfo=* | --program-transf=* \ 1239 | --program-trans=* | --program-tran=* \ 1240 | --progr-tra=* | --program-tr=* | --program-t=*) 1241 program_transform_name=$ac_optarg ;; 1242 1243 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1244 ac_prev=pdfdir ;; 1245 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1246 pdfdir=$ac_optarg ;; 1247 1248 -psdir | --psdir | --psdi | --psd | --ps) 1249 ac_prev=psdir ;; 1250 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1251 psdir=$ac_optarg ;; 1252 1253 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1254 | -silent | --silent | --silen | --sile | --sil) 1255 silent=yes ;; 1256 1257 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1258 ac_prev=sbindir ;; 1259 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1260 | --sbi=* | --sb=*) 1261 sbindir=$ac_optarg ;; 1262 1263 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1264 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1265 | --sharedst | --shareds | --shared | --share | --shar \ 1266 | --sha | --sh) 1267 ac_prev=sharedstatedir ;; 1268 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1269 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1270 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1271 | --sha=* | --sh=*) 1272 sharedstatedir=$ac_optarg ;; 1273 1274 -site | --site | --sit) 1275 ac_prev=site ;; 1276 -site=* | --site=* | --sit=*) 1277 site=$ac_optarg ;; 1278 1279 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1280 ac_prev=srcdir ;; 1281 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1282 srcdir=$ac_optarg ;; 1283 1284 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1285 | --syscon | --sysco | --sysc | --sys | --sy) 1286 ac_prev=sysconfdir ;; 1287 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1288 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1289 sysconfdir=$ac_optarg ;; 1290 1291 -target | --target | --targe | --targ | --tar | --ta | --t) 1292 ac_prev=target_alias ;; 1293 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1294 target_alias=$ac_optarg ;; 1295 1296 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1297 verbose=yes ;; 1298 1299 -version | --version | --versio | --versi | --vers | -V) 1300 ac_init_version=: ;; 1301 1302 -with-* | --with-*) 1303 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1304 # Reject names that are not valid shell variable names. 1305 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1306 as_fn_error $? "invalid package name: $ac_useropt" 1307 ac_useropt_orig=$ac_useropt 1308 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1309 case $ac_user_opts in 1310 *" 1311"with_$ac_useropt" 1312"*) ;; 1313 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1314 ac_unrecognized_sep=', ';; 1315 esac 1316 eval with_$ac_useropt=\$ac_optarg ;; 1317 1318 -without-* | --without-*) 1319 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1320 # Reject names that are not valid shell variable names. 1321 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1322 as_fn_error $? "invalid package name: $ac_useropt" 1323 ac_useropt_orig=$ac_useropt 1324 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1325 case $ac_user_opts in 1326 *" 1327"with_$ac_useropt" 1328"*) ;; 1329 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1330 ac_unrecognized_sep=', ';; 1331 esac 1332 eval with_$ac_useropt=no ;; 1333 1334 --x) 1335 # Obsolete; use --with-x. 1336 with_x=yes ;; 1337 1338 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1339 | --x-incl | --x-inc | --x-in | --x-i) 1340 ac_prev=x_includes ;; 1341 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1342 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1343 x_includes=$ac_optarg ;; 1344 1345 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1346 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1347 ac_prev=x_libraries ;; 1348 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1349 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1350 x_libraries=$ac_optarg ;; 1351 1352 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1353Try \`$0 --help' for more information" 1354 ;; 1355 1356 *=*) 1357 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1358 # Reject names that are not valid shell variable names. 1359 case $ac_envvar in #( 1360 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1361 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1362 esac 1363 eval $ac_envvar=\$ac_optarg 1364 export $ac_envvar ;; 1365 1366 *) 1367 # FIXME: should be removed in autoconf 3.0. 1368 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1369 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1370 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1371 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1372 ;; 1373 1374 esac 1375done 1376 1377if test -n "$ac_prev"; then 1378 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1379 as_fn_error $? "missing argument to $ac_option" 1380fi 1381 1382if test -n "$ac_unrecognized_opts"; then 1383 case $enable_option_checking in 1384 no) ;; 1385 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1386 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1387 esac 1388fi 1389 1390# Check all directory arguments for consistency. 1391for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1392 datadir sysconfdir sharedstatedir localstatedir includedir \ 1393 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1394 libdir localedir mandir 1395do 1396 eval ac_val=\$$ac_var 1397 # Remove trailing slashes. 1398 case $ac_val in 1399 */ ) 1400 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1401 eval $ac_var=\$ac_val;; 1402 esac 1403 # Be sure to have absolute directory names. 1404 case $ac_val in 1405 [\\/$]* | ?:[\\/]* ) continue;; 1406 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1407 esac 1408 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1409done 1410 1411# There might be people who depend on the old broken behavior: `$host' 1412# used to hold the argument of --host etc. 1413# FIXME: To remove some day. 1414build=$build_alias 1415host=$host_alias 1416target=$target_alias 1417 1418# FIXME: To remove some day. 1419if test "x$host_alias" != x; then 1420 if test "x$build_alias" = x; then 1421 cross_compiling=maybe 1422 elif test "x$build_alias" != "x$host_alias"; then 1423 cross_compiling=yes 1424 fi 1425fi 1426 1427ac_tool_prefix= 1428test -n "$host_alias" && ac_tool_prefix=$host_alias- 1429 1430test "$silent" = yes && exec 6>/dev/null 1431 1432 1433ac_pwd=`pwd` && test -n "$ac_pwd" && 1434ac_ls_di=`ls -di .` && 1435ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1436 as_fn_error $? "working directory cannot be determined" 1437test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1438 as_fn_error $? "pwd does not report name of working directory" 1439 1440 1441# Find the source files, if location was not specified. 1442if test -z "$srcdir"; then 1443 ac_srcdir_defaulted=yes 1444 # Try the directory containing this script, then the parent directory. 1445 ac_confdir=`$as_dirname -- "$as_myself" || 1446$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1447 X"$as_myself" : 'X\(//\)[^/]' \| \ 1448 X"$as_myself" : 'X\(//\)$' \| \ 1449 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1450$as_echo X"$as_myself" | 1451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1452 s//\1/ 1453 q 1454 } 1455 /^X\(\/\/\)[^/].*/{ 1456 s//\1/ 1457 q 1458 } 1459 /^X\(\/\/\)$/{ 1460 s//\1/ 1461 q 1462 } 1463 /^X\(\/\).*/{ 1464 s//\1/ 1465 q 1466 } 1467 s/.*/./; q'` 1468 srcdir=$ac_confdir 1469 if test ! -r "$srcdir/$ac_unique_file"; then 1470 srcdir=.. 1471 fi 1472else 1473 ac_srcdir_defaulted=no 1474fi 1475if test ! -r "$srcdir/$ac_unique_file"; then 1476 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1477 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1478fi 1479ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1480ac_abs_confdir=`( 1481 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1482 pwd)` 1483# When building in place, set srcdir=. 1484if test "$ac_abs_confdir" = "$ac_pwd"; then 1485 srcdir=. 1486fi 1487# Remove unnecessary trailing slashes from srcdir. 1488# Double slashes in file names in object file debugging info 1489# mess up M-x gdb in Emacs. 1490case $srcdir in 1491*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1492esac 1493for ac_var in $ac_precious_vars; do 1494 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1495 eval ac_env_${ac_var}_value=\$${ac_var} 1496 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1497 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1498done 1499 1500# 1501# Report the --help message. 1502# 1503if test "$ac_init_help" = "long"; then 1504 # Omit some internal or obsolete options to make the list less imposing. 1505 # This message is too long to be a string in the A/UX 3.1 sh. 1506 cat <<_ACEOF 1507\`configure' configures subversion 1.14.1 to adapt to many kinds of systems. 1508 1509Usage: $0 [OPTION]... [VAR=VALUE]... 1510 1511To assign environment variables (e.g., CC, CFLAGS...), specify them as 1512VAR=VALUE. See below for descriptions of some of the useful variables. 1513 1514Defaults for the options are specified in brackets. 1515 1516Configuration: 1517 -h, --help display this help and exit 1518 --help=short display options specific to this package 1519 --help=recursive display the short help of all the included packages 1520 -V, --version display version information and exit 1521 -q, --quiet, --silent do not print \`checking ...' messages 1522 --cache-file=FILE cache test results in FILE [disabled] 1523 -C, --config-cache alias for \`--cache-file=config.cache' 1524 -n, --no-create do not create output files 1525 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1526 1527Installation directories: 1528 --prefix=PREFIX install architecture-independent files in PREFIX 1529 [$ac_default_prefix] 1530 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1531 [PREFIX] 1532 1533By default, \`make install' will install all the files in 1534\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1535an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1536for instance \`--prefix=\$HOME'. 1537 1538For better control, use the options below. 1539 1540Fine tuning of the installation directories: 1541 --bindir=DIR user executables [EPREFIX/bin] 1542 --sbindir=DIR system admin executables [EPREFIX/sbin] 1543 --libexecdir=DIR program executables [EPREFIX/libexec] 1544 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1545 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1546 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1547 --libdir=DIR object code libraries [EPREFIX/lib] 1548 --includedir=DIR C header files [PREFIX/include] 1549 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1550 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1551 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1552 --infodir=DIR info documentation [DATAROOTDIR/info] 1553 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1554 --mandir=DIR man documentation [DATAROOTDIR/man] 1555 --docdir=DIR documentation root [DATAROOTDIR/doc/subversion] 1556 --htmldir=DIR html documentation [DOCDIR] 1557 --dvidir=DIR dvi documentation [DOCDIR] 1558 --pdfdir=DIR pdf documentation [DOCDIR] 1559 --psdir=DIR ps documentation [DOCDIR] 1560_ACEOF 1561 1562 cat <<\_ACEOF 1563 1564System types: 1565 --build=BUILD configure for building on BUILD [guessed] 1566 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1567 --target=TARGET configure for building compilers for TARGET [HOST] 1568_ACEOF 1569fi 1570 1571if test -n "$ac_init_help"; then 1572 case $ac_init_help in 1573 short | recursive ) echo "Configuration of subversion 1.14.1:";; 1574 esac 1575 cat <<\_ACEOF 1576 1577Optional Features: 1578 --disable-option-checking ignore unrecognized --enable/--with options 1579 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1580 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1581 --enable-apache-whitelist=VER 1582 Whitelist a particular Apache version number, 1583 typically used to enable the use of a old version 1584 patched by a distribution. 1585 --enable-broken-httpd-auth 1586 Force build against httpd 2.4 with broken auth. 1587 (This is not recommended as Subversion will be 1588 vulnerable to CVE-2015-3184.) 1589 --enable-sqlite-compatibility-version=X.Y.Z 1590 Allow binary to run against SQLite as old as ARG 1591 --enable-shared[=PKGS] build shared libraries [default=yes] 1592 --enable-static[=PKGS] build static libraries [default=yes] 1593 --enable-fast-install[=PKGS] 1594 optimize for fast installation [default=yes] 1595 --disable-libtool-lock avoid locking (might break parallel builds) 1596 --enable-experimental-libtool 1597 Use APR's libtool 1598 --enable-static Build static libraries 1599 --enable-shared Build shared libraries 1600 --enable-all-static Build completely static (standalone) binaries. 1601 --enable-local-library-preloading 1602 Enable preloading of locally built libraries in 1603 locally built executables. This may be necessary for 1604 testing prior to installation on some platforms. It 1605 does not work on some platforms (Darwin, OpenBSD, 1606 ...). 1607 --enable-bdb6 Allow building against BDB 6+. See 1608 --with-berkeley-db for specifying the location of 1609 the Berkeley DB installation. Using BDB 6 will fail 1610 if this option is not used. 1611 --disable-keychain Disable use of Mac OS KeyChain for auth credentials 1612 --enable-ev2-impl Use Ev2 implementations, where available 1613 [EXPERIMENTAL] 1614 --disable-nls Disable gettext functionality 1615 --enable-plaintext-password-storage 1616 Enable on-disk caching of plaintext passwords and 1617 passphrases. (Enabling this functionality will not 1618 force Subversion to store passwords in plaintext, 1619 but does permit users to explicitly allow that 1620 behavior via runtime configuration.) 1621 --enable-debug Turn on debugging 1622 --enable-optimize Turn on optimizations 1623 --enable-disallowing-of-undefined-references 1624 Use -Wl,--no-undefined flag during linking of some 1625 libraries to disallow undefined references 1626 --enable-maintainer-mode 1627 Turn on debugging and very strict compile-time 1628 warnings 1629 --disable-full-version-match 1630 Disable the full version match rules when checking 1631 Subversion library compatibility. 1632 --enable-mod-activation Enable mod_dav_svn in httpd.conf 1633 --enable-gcov Turn on gcov coverage testing (GCC only). 1634 --enable-gprof Produce gprof profiling data in 'gmon.out' (GCC 1635 only). 1636 --enable-runtime-module-search 1637 Turn on dynamic loading of RA/FS libraries including 1638 third-party FS libraries 1639 --enable-svnxx Enable compilation of the C++ bindings (requires 1640 C++) 1641 --enable-svnxx-tests Enable compilation of tests for the C++ bindings 1642 (implies --enable-svnxx, requires Boost and 1643 Boost.Test) 1644 --enable-javahl Enable compilation of Java high-level bindings 1645 (requires C++) 1646 1647Optional Packages: 1648 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1649 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1650 --with-apr=PATH prefix for installed APR or the full path to 1651 apr-config 1652 --with-apr-util=PATH prefix for installed APU or the full path to 1653 apu-config 1654 --with-serf=PREFIX Serf HTTP client library (enabled by default if 1655 found) 1656 --with-apr_memcache=PREFIX 1657 Standalone apr_memcache client library 1658 --with-apxs[=FILE] Build shared Apache modules. FILE is the optional 1659 pathname to the Apache apxs tool; defaults to 1660 "apxs". 1661 --with-apache-libexecdir[=PATH] 1662 Install Apache modules to Apache's configured 1663 modules directory instead of LIBEXECDIR; if PATH is 1664 given, install to PATH. 1665 --with-sqlite=PREFIX Use installed SQLite library or amalgamation file. 1666 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1667 both] 1668 --with-aix-soname=aix|svr4|both 1669 shared library versioning (aka "SONAME") variant to 1670 provide on AIX, [default=aix]. 1671 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1672 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1673 compiler's sysroot if not specified). 1674 --with-trang=PATH Specify the command to run the trang schema 1675 converter 1676 --with-doxygen=PATH Specify the command to run doxygen 1677 --with-expat=INCLUDES:LIB_SEARCH_DIRS:LIBS 1678 Specify location of Expat 1679 --with-berkeley-db[=HEADER:INCLUDES:LIB_SEARCH_DIRS:LIBS] 1680 The Subversion Berkeley DB based filesystem library 1681 requires Berkeley DB $db_version or $db_alt_version. 1682 If you specify `--without-berkeley-db', that library 1683 will not be built. If you omit the argument of this 1684 option completely, the configure script will use 1685 Berkeley DB used by APR-UTIL. 1686 --with-sasl=PATH Compile with libsasl2 in PATH 1687 --without-gpg-agent Disable support for GPG-Agent 1688 --with-old-gnome-keyring 1689 Enable old GNOME Keyring for auth credentials 1690 (prefer --with-gnome-keyring) 1691 --with-gnome-keyring Enable GNOME Keyring for auth credentials (enabled 1692 by default if found) 1693 --with-libmagic=PREFIX libmagic filetype detection library 1694 --with-kwallet[=PATH|INCDIR:LIBDIR] 1695 Enable use of KWallet (KDE 5 or 4) for auth 1696 credentials. PATH is the KDE install path, 1697 alternatively INCDIR:LIBDIR are the header and 1698 library install paths. 1699 --with-editor=PATH Specify a default editor for the subversion client. 1700 --with-zlib=PREFIX zlib compression library 1701 --with-lz4=PREFIX|internal 1702 look for lz4 in PREFIX or use the internal code 1703 --with-utf8proc=PREFIX|internal 1704 look for utf8proc in PREFIX or use the internal code 1705 --with-jdk=PATH Try to use 'PATH/include' to find the JNI headers. 1706 If PATH is not specified, look for a Java 1707 Development Kit at JAVA_HOME. 1708 --with-jikes=PATH Deprecated. Provided for backward compatibility. 1709 --with-swig=PATH Try to use 'PATH/bin/swig' to build the swig 1710 bindings. If PATH is not specified, look for a 1711 'swig' binary in your PATH. 1712 --with-py3c=PREFIX py3c python extension compatibility library 1713 --with-ruby-sitedir=SITEDIR 1714 install Ruby bindings in SITEDIR (default is same as 1715 ruby's one) 1716 --with-ruby-test-verbose=LEVEL 1717 how to use output level for Ruby bindings tests 1718 (default is normal) 1719 --with-ctypesgen=PATH Specify the path to ctypesgen. This can either be 1720 the full path to a ctypesgen installation, the full 1721 path to a ctypesgen source tree or the full path to 1722 ctypesgen.py. 1723 --with-boost[=ARG] use Boost library from a standard location 1724 (ARG=yes), from the specified location (ARG=<path>), 1725 or disable it (ARG=no) [ARG=yes] 1726 --with-boost-libdir=LIB_DIR 1727 Force given directory for boost libraries. Note that 1728 this will override library path detection, so use 1729 this parameter only if default library detection 1730 fails and you know exactly where your boost 1731 libraries are located. 1732 --with-boost-unit-test-framework[=special-lib] 1733 use the Unit_Test_Framework library from boost - it 1734 is possible to specify a certain library for the 1735 linker e.g. 1736 --with-boost-unit-test-framework=boost_unit_test_framework-gcc 1737 --with-junit=PATH Specify a path to the junit JAR file. 1738 1739Some influential environment variables: 1740 CC C compiler command 1741 CFLAGS C compiler flags 1742 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1743 nonstandard directory <lib dir> 1744 LIBS libraries to pass to the linker, e.g. -l<library> 1745 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1746 you have headers in a nonstandard directory <include dir> 1747 CXX C++ compiler command 1748 CXXFLAGS C++ compiler flags 1749 CPP C preprocessor 1750 LT_SYS_LIBRARY_PATH 1751 User-defined run-time library search path. 1752 CXXCPP C++ preprocessor 1753 PYTHON Python interpreter command 1754 SWIG_FEATURES 1755 SWIG feature flags common to all bindings 1756 SWIG_RB_FEATURES 1757 SWIG feature flags specific to Ruby bindings 1758 SWIG_PL_FEATURES 1759 SWIG feature flags specific to Perl bindings 1760 SWIG_PY_FEATURES 1761 SWIG feature flags specific to Python bindings 1762 1763Use these variables to override the choices made by `configure' or to help 1764it to find libraries and programs with nonstandard names/locations. 1765 1766Report bugs to <http://subversion.apache.org/>. 1767_ACEOF 1768ac_status=$? 1769fi 1770 1771if test "$ac_init_help" = "recursive"; then 1772 # If there are subdirs, report their specific --help. 1773 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1774 test -d "$ac_dir" || 1775 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1776 continue 1777 ac_builddir=. 1778 1779case "$ac_dir" in 1780.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1781*) 1782 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1783 # A ".." for each directory in $ac_dir_suffix. 1784 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1785 case $ac_top_builddir_sub in 1786 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1787 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1788 esac ;; 1789esac 1790ac_abs_top_builddir=$ac_pwd 1791ac_abs_builddir=$ac_pwd$ac_dir_suffix 1792# for backward compatibility: 1793ac_top_builddir=$ac_top_build_prefix 1794 1795case $srcdir in 1796 .) # We are building in place. 1797 ac_srcdir=. 1798 ac_top_srcdir=$ac_top_builddir_sub 1799 ac_abs_top_srcdir=$ac_pwd ;; 1800 [\\/]* | ?:[\\/]* ) # Absolute name. 1801 ac_srcdir=$srcdir$ac_dir_suffix; 1802 ac_top_srcdir=$srcdir 1803 ac_abs_top_srcdir=$srcdir ;; 1804 *) # Relative name. 1805 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1806 ac_top_srcdir=$ac_top_build_prefix$srcdir 1807 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1808esac 1809ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1810 1811 cd "$ac_dir" || { ac_status=$?; continue; } 1812 # Check for guested configure. 1813 if test -f "$ac_srcdir/configure.gnu"; then 1814 echo && 1815 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1816 elif test -f "$ac_srcdir/configure"; then 1817 echo && 1818 $SHELL "$ac_srcdir/configure" --help=recursive 1819 else 1820 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1821 fi || ac_status=$? 1822 cd "$ac_pwd" || { ac_status=$?; break; } 1823 done 1824fi 1825 1826test -n "$ac_init_help" && exit $ac_status 1827if $ac_init_version; then 1828 cat <<\_ACEOF 1829subversion configure 1.14.1 1830generated by GNU Autoconf 2.69 1831 1832Copyright (C) 2012 Free Software Foundation, Inc. 1833This configure script is free software; the Free Software Foundation 1834gives unlimited permission to copy, distribute and modify it. 1835_ACEOF 1836 exit 1837fi 1838 1839## ------------------------ ## 1840## Autoconf initialization. ## 1841## ------------------------ ## 1842 1843# ac_fn_c_try_compile LINENO 1844# -------------------------- 1845# Try to compile conftest.$ac_ext, and return whether this succeeded. 1846ac_fn_c_try_compile () 1847{ 1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1849 rm -f conftest.$ac_objext 1850 if { { ac_try="$ac_compile" 1851case "(($ac_try" in 1852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1853 *) ac_try_echo=$ac_try;; 1854esac 1855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1856$as_echo "$ac_try_echo"; } >&5 1857 (eval "$ac_compile") 2>conftest.err 1858 ac_status=$? 1859 if test -s conftest.err; then 1860 grep -v '^ *+' conftest.err >conftest.er1 1861 cat conftest.er1 >&5 1862 mv -f conftest.er1 conftest.err 1863 fi 1864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1865 test $ac_status = 0; } && { 1866 test -z "$ac_c_werror_flag" || 1867 test ! -s conftest.err 1868 } && test -s conftest.$ac_objext; then : 1869 ac_retval=0 1870else 1871 $as_echo "$as_me: failed program was:" >&5 1872sed 's/^/| /' conftest.$ac_ext >&5 1873 1874 ac_retval=1 1875fi 1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1877 as_fn_set_status $ac_retval 1878 1879} # ac_fn_c_try_compile 1880 1881# ac_fn_c_try_link LINENO 1882# ----------------------- 1883# Try to link conftest.$ac_ext, and return whether this succeeded. 1884ac_fn_c_try_link () 1885{ 1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1887 rm -f conftest.$ac_objext conftest$ac_exeext 1888 if { { ac_try="$ac_link" 1889case "(($ac_try" in 1890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1891 *) ac_try_echo=$ac_try;; 1892esac 1893eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1894$as_echo "$ac_try_echo"; } >&5 1895 (eval "$ac_link") 2>conftest.err 1896 ac_status=$? 1897 if test -s conftest.err; then 1898 grep -v '^ *+' conftest.err >conftest.er1 1899 cat conftest.er1 >&5 1900 mv -f conftest.er1 conftest.err 1901 fi 1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1903 test $ac_status = 0; } && { 1904 test -z "$ac_c_werror_flag" || 1905 test ! -s conftest.err 1906 } && test -s conftest$ac_exeext && { 1907 test "$cross_compiling" = yes || 1908 test -x conftest$ac_exeext 1909 }; then : 1910 ac_retval=0 1911else 1912 $as_echo "$as_me: failed program was:" >&5 1913sed 's/^/| /' conftest.$ac_ext >&5 1914 1915 ac_retval=1 1916fi 1917 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1918 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1919 # interfere with the next link command; also delete a directory that is 1920 # left behind by Apple's compiler. We do this before executing the actions. 1921 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1923 as_fn_set_status $ac_retval 1924 1925} # ac_fn_c_try_link 1926 1927# ac_fn_cxx_try_compile LINENO 1928# ---------------------------- 1929# Try to compile conftest.$ac_ext, and return whether this succeeded. 1930ac_fn_cxx_try_compile () 1931{ 1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1933 rm -f conftest.$ac_objext 1934 if { { ac_try="$ac_compile" 1935case "(($ac_try" in 1936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1937 *) ac_try_echo=$ac_try;; 1938esac 1939eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1940$as_echo "$ac_try_echo"; } >&5 1941 (eval "$ac_compile") 2>conftest.err 1942 ac_status=$? 1943 if test -s conftest.err; then 1944 grep -v '^ *+' conftest.err >conftest.er1 1945 cat conftest.er1 >&5 1946 mv -f conftest.er1 conftest.err 1947 fi 1948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1949 test $ac_status = 0; } && { 1950 test -z "$ac_cxx_werror_flag" || 1951 test ! -s conftest.err 1952 } && test -s conftest.$ac_objext; then : 1953 ac_retval=0 1954else 1955 $as_echo "$as_me: failed program was:" >&5 1956sed 's/^/| /' conftest.$ac_ext >&5 1957 1958 ac_retval=1 1959fi 1960 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1961 as_fn_set_status $ac_retval 1962 1963} # ac_fn_cxx_try_compile 1964 1965# ac_fn_cxx_try_link LINENO 1966# ------------------------- 1967# Try to link conftest.$ac_ext, and return whether this succeeded. 1968ac_fn_cxx_try_link () 1969{ 1970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1971 rm -f conftest.$ac_objext conftest$ac_exeext 1972 if { { ac_try="$ac_link" 1973case "(($ac_try" in 1974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1975 *) ac_try_echo=$ac_try;; 1976esac 1977eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1978$as_echo "$ac_try_echo"; } >&5 1979 (eval "$ac_link") 2>conftest.err 1980 ac_status=$? 1981 if test -s conftest.err; then 1982 grep -v '^ *+' conftest.err >conftest.er1 1983 cat conftest.er1 >&5 1984 mv -f conftest.er1 conftest.err 1985 fi 1986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1987 test $ac_status = 0; } && { 1988 test -z "$ac_cxx_werror_flag" || 1989 test ! -s conftest.err 1990 } && test -s conftest$ac_exeext && { 1991 test "$cross_compiling" = yes || 1992 test -x conftest$ac_exeext 1993 }; then : 1994 ac_retval=0 1995else 1996 $as_echo "$as_me: failed program was:" >&5 1997sed 's/^/| /' conftest.$ac_ext >&5 1998 1999 ac_retval=1 2000fi 2001 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2002 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2003 # interfere with the next link command; also delete a directory that is 2004 # left behind by Apple's compiler. We do this before executing the actions. 2005 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2006 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2007 as_fn_set_status $ac_retval 2008 2009} # ac_fn_cxx_try_link 2010 2011# ac_fn_c_try_cpp LINENO 2012# ---------------------- 2013# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2014ac_fn_c_try_cpp () 2015{ 2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2017 if { { ac_try="$ac_cpp conftest.$ac_ext" 2018case "(($ac_try" in 2019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2020 *) ac_try_echo=$ac_try;; 2021esac 2022eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2023$as_echo "$ac_try_echo"; } >&5 2024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2025 ac_status=$? 2026 if test -s conftest.err; then 2027 grep -v '^ *+' conftest.err >conftest.er1 2028 cat conftest.er1 >&5 2029 mv -f conftest.er1 conftest.err 2030 fi 2031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2032 test $ac_status = 0; } > conftest.i && { 2033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2034 test ! -s conftest.err 2035 }; then : 2036 ac_retval=0 2037else 2038 $as_echo "$as_me: failed program was:" >&5 2039sed 's/^/| /' conftest.$ac_ext >&5 2040 2041 ac_retval=1 2042fi 2043 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2044 as_fn_set_status $ac_retval 2045 2046} # ac_fn_c_try_cpp 2047 2048# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2049# ------------------------------------------------------- 2050# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2051# the include files in INCLUDES and setting the cache variable VAR 2052# accordingly. 2053ac_fn_c_check_header_mongrel () 2054{ 2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2056 if eval \${$3+:} false; then : 2057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2058$as_echo_n "checking for $2... " >&6; } 2059if eval \${$3+:} false; then : 2060 $as_echo_n "(cached) " >&6 2061fi 2062eval ac_res=\$$3 2063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2064$as_echo "$ac_res" >&6; } 2065else 2066 # Is the header compilable? 2067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2068$as_echo_n "checking $2 usability... " >&6; } 2069cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2070/* end confdefs.h. */ 2071$4 2072#include <$2> 2073_ACEOF 2074if ac_fn_c_try_compile "$LINENO"; then : 2075 ac_header_compiler=yes 2076else 2077 ac_header_compiler=no 2078fi 2079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2081$as_echo "$ac_header_compiler" >&6; } 2082 2083# Is the header present? 2084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2085$as_echo_n "checking $2 presence... " >&6; } 2086cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2087/* end confdefs.h. */ 2088#include <$2> 2089_ACEOF 2090if ac_fn_c_try_cpp "$LINENO"; then : 2091 ac_header_preproc=yes 2092else 2093 ac_header_preproc=no 2094fi 2095rm -f conftest.err conftest.i conftest.$ac_ext 2096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2097$as_echo "$ac_header_preproc" >&6; } 2098 2099# So? What about this header? 2100case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2101 yes:no: ) 2102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2103$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2105$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2106 ;; 2107 no:yes:* ) 2108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2109$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2111$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2113$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2115$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2117$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2118( $as_echo "## -------------------------------------------- ## 2119## Report this to http://subversion.apache.org/ ## 2120## -------------------------------------------- ##" 2121 ) | sed "s/^/$as_me: WARNING: /" >&2 2122 ;; 2123esac 2124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2125$as_echo_n "checking for $2... " >&6; } 2126if eval \${$3+:} false; then : 2127 $as_echo_n "(cached) " >&6 2128else 2129 eval "$3=\$ac_header_compiler" 2130fi 2131eval ac_res=\$$3 2132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2133$as_echo "$ac_res" >&6; } 2134fi 2135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2136 2137} # ac_fn_c_check_header_mongrel 2138 2139# ac_fn_c_try_run LINENO 2140# ---------------------- 2141# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2142# that executables *can* be run. 2143ac_fn_c_try_run () 2144{ 2145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2146 if { { ac_try="$ac_link" 2147case "(($ac_try" in 2148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2149 *) ac_try_echo=$ac_try;; 2150esac 2151eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2152$as_echo "$ac_try_echo"; } >&5 2153 (eval "$ac_link") 2>&5 2154 ac_status=$? 2155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2156 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2157 { { case "(($ac_try" in 2158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2159 *) ac_try_echo=$ac_try;; 2160esac 2161eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2162$as_echo "$ac_try_echo"; } >&5 2163 (eval "$ac_try") 2>&5 2164 ac_status=$? 2165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2166 test $ac_status = 0; }; }; then : 2167 ac_retval=0 2168else 2169 $as_echo "$as_me: program exited with status $ac_status" >&5 2170 $as_echo "$as_me: failed program was:" >&5 2171sed 's/^/| /' conftest.$ac_ext >&5 2172 2173 ac_retval=$ac_status 2174fi 2175 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2176 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2177 as_fn_set_status $ac_retval 2178 2179} # ac_fn_c_try_run 2180 2181# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2182# ------------------------------------------------------- 2183# Tests whether HEADER exists and can be compiled using the include files in 2184# INCLUDES, setting the cache variable VAR accordingly. 2185ac_fn_c_check_header_compile () 2186{ 2187 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2189$as_echo_n "checking for $2... " >&6; } 2190if eval \${$3+:} false; then : 2191 $as_echo_n "(cached) " >&6 2192else 2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2194/* end confdefs.h. */ 2195$4 2196#include <$2> 2197_ACEOF 2198if ac_fn_c_try_compile "$LINENO"; then : 2199 eval "$3=yes" 2200else 2201 eval "$3=no" 2202fi 2203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2204fi 2205eval ac_res=\$$3 2206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2207$as_echo "$ac_res" >&6; } 2208 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2209 2210} # ac_fn_c_check_header_compile 2211 2212# ac_fn_c_check_func LINENO FUNC VAR 2213# ---------------------------------- 2214# Tests whether FUNC exists, setting the cache variable VAR accordingly 2215ac_fn_c_check_func () 2216{ 2217 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2219$as_echo_n "checking for $2... " >&6; } 2220if eval \${$3+:} false; then : 2221 $as_echo_n "(cached) " >&6 2222else 2223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2224/* end confdefs.h. */ 2225/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2226 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2227#define $2 innocuous_$2 2228 2229/* System header to define __stub macros and hopefully few prototypes, 2230 which can conflict with char $2 (); below. 2231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2232 <limits.h> exists even on freestanding compilers. */ 2233 2234#ifdef __STDC__ 2235# include <limits.h> 2236#else 2237# include <assert.h> 2238#endif 2239 2240#undef $2 2241 2242/* Override any GCC internal prototype to avoid an error. 2243 Use char because int might match the return type of a GCC 2244 builtin and then its argument prototype would still apply. */ 2245#ifdef __cplusplus 2246extern "C" 2247#endif 2248char $2 (); 2249/* The GNU C library defines this for functions which it implements 2250 to always fail with ENOSYS. Some functions are actually named 2251 something starting with __ and the normal name is an alias. */ 2252#if defined __stub_$2 || defined __stub___$2 2253choke me 2254#endif 2255 2256int 2257main () 2258{ 2259return $2 (); 2260 ; 2261 return 0; 2262} 2263_ACEOF 2264if ac_fn_c_try_link "$LINENO"; then : 2265 eval "$3=yes" 2266else 2267 eval "$3=no" 2268fi 2269rm -f core conftest.err conftest.$ac_objext \ 2270 conftest$ac_exeext conftest.$ac_ext 2271fi 2272eval ac_res=\$$3 2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2274$as_echo "$ac_res" >&6; } 2275 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2276 2277} # ac_fn_c_check_func 2278 2279# ac_fn_cxx_try_cpp LINENO 2280# ------------------------ 2281# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2282ac_fn_cxx_try_cpp () 2283{ 2284 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2285 if { { ac_try="$ac_cpp conftest.$ac_ext" 2286case "(($ac_try" in 2287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2288 *) ac_try_echo=$ac_try;; 2289esac 2290eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2291$as_echo "$ac_try_echo"; } >&5 2292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2293 ac_status=$? 2294 if test -s conftest.err; then 2295 grep -v '^ *+' conftest.err >conftest.er1 2296 cat conftest.er1 >&5 2297 mv -f conftest.er1 conftest.err 2298 fi 2299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2300 test $ac_status = 0; } > conftest.i && { 2301 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2302 test ! -s conftest.err 2303 }; then : 2304 ac_retval=0 2305else 2306 $as_echo "$as_me: failed program was:" >&5 2307sed 's/^/| /' conftest.$ac_ext >&5 2308 2309 ac_retval=1 2310fi 2311 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2312 as_fn_set_status $ac_retval 2313 2314} # ac_fn_cxx_try_cpp 2315 2316# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2317# ------------------------------------------- 2318# Tests whether TYPE exists after having included INCLUDES, setting cache 2319# variable VAR accordingly. 2320ac_fn_c_check_type () 2321{ 2322 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2324$as_echo_n "checking for $2... " >&6; } 2325if eval \${$3+:} false; then : 2326 $as_echo_n "(cached) " >&6 2327else 2328 eval "$3=no" 2329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2330/* end confdefs.h. */ 2331$4 2332int 2333main () 2334{ 2335if (sizeof ($2)) 2336 return 0; 2337 ; 2338 return 0; 2339} 2340_ACEOF 2341if ac_fn_c_try_compile "$LINENO"; then : 2342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2343/* end confdefs.h. */ 2344$4 2345int 2346main () 2347{ 2348if (sizeof (($2))) 2349 return 0; 2350 ; 2351 return 0; 2352} 2353_ACEOF 2354if ac_fn_c_try_compile "$LINENO"; then : 2355 2356else 2357 eval "$3=yes" 2358fi 2359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2360fi 2361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2362fi 2363eval ac_res=\$$3 2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2365$as_echo "$ac_res" >&6; } 2366 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2367 2368} # ac_fn_c_check_type 2369cat >config.log <<_ACEOF 2370This file contains any messages produced by compilers while 2371running configure, to aid debugging if configure makes a mistake. 2372 2373It was created by subversion $as_me 1.14.1, which was 2374generated by GNU Autoconf 2.69. Invocation command line was 2375 2376 $ $0 $@ 2377 2378_ACEOF 2379exec 5>>config.log 2380{ 2381cat <<_ASUNAME 2382## --------- ## 2383## Platform. ## 2384## --------- ## 2385 2386hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2387uname -m = `(uname -m) 2>/dev/null || echo unknown` 2388uname -r = `(uname -r) 2>/dev/null || echo unknown` 2389uname -s = `(uname -s) 2>/dev/null || echo unknown` 2390uname -v = `(uname -v) 2>/dev/null || echo unknown` 2391 2392/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2393/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2394 2395/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2396/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2397/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2398/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2399/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2400/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2401/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2402 2403_ASUNAME 2404 2405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2406for as_dir in $PATH 2407do 2408 IFS=$as_save_IFS 2409 test -z "$as_dir" && as_dir=. 2410 $as_echo "PATH: $as_dir" 2411 done 2412IFS=$as_save_IFS 2413 2414} >&5 2415 2416cat >&5 <<_ACEOF 2417 2418 2419## ----------- ## 2420## Core tests. ## 2421## ----------- ## 2422 2423_ACEOF 2424 2425 2426# Keep a trace of the command line. 2427# Strip out --no-create and --no-recursion so they do not pile up. 2428# Strip out --silent because we don't want to record it for future runs. 2429# Also quote any args containing shell meta-characters. 2430# Make two passes to allow for proper duplicate-argument suppression. 2431ac_configure_args= 2432ac_configure_args0= 2433ac_configure_args1= 2434ac_must_keep_next=false 2435for ac_pass in 1 2 2436do 2437 for ac_arg 2438 do 2439 case $ac_arg in 2440 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2441 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2442 | -silent | --silent | --silen | --sile | --sil) 2443 continue ;; 2444 *\'*) 2445 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2446 esac 2447 case $ac_pass in 2448 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2449 2) 2450 as_fn_append ac_configure_args1 " '$ac_arg'" 2451 if test $ac_must_keep_next = true; then 2452 ac_must_keep_next=false # Got value, back to normal. 2453 else 2454 case $ac_arg in 2455 *=* | --config-cache | -C | -disable-* | --disable-* \ 2456 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2457 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2458 | -with-* | --with-* | -without-* | --without-* | --x) 2459 case "$ac_configure_args0 " in 2460 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2461 esac 2462 ;; 2463 -* ) ac_must_keep_next=true ;; 2464 esac 2465 fi 2466 as_fn_append ac_configure_args " '$ac_arg'" 2467 ;; 2468 esac 2469 done 2470done 2471{ ac_configure_args0=; unset ac_configure_args0;} 2472{ ac_configure_args1=; unset ac_configure_args1;} 2473 2474# When interrupted or exit'd, cleanup temporary files, and complete 2475# config.log. We remove comments because anyway the quotes in there 2476# would cause problems or look ugly. 2477# WARNING: Use '\'' to represent an apostrophe within the trap. 2478# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2479trap 'exit_status=$? 2480 # Save into config.log some information that might help in debugging. 2481 { 2482 echo 2483 2484 $as_echo "## ---------------- ## 2485## Cache variables. ## 2486## ---------------- ##" 2487 echo 2488 # The following way of writing the cache mishandles newlines in values, 2489( 2490 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2491 eval ac_val=\$$ac_var 2492 case $ac_val in #( 2493 *${as_nl}*) 2494 case $ac_var in #( 2495 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2496$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2497 esac 2498 case $ac_var in #( 2499 _ | IFS | as_nl) ;; #( 2500 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2501 *) { eval $ac_var=; unset $ac_var;} ;; 2502 esac ;; 2503 esac 2504 done 2505 (set) 2>&1 | 2506 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2507 *${as_nl}ac_space=\ *) 2508 sed -n \ 2509 "s/'\''/'\''\\\\'\'''\''/g; 2510 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2511 ;; #( 2512 *) 2513 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2514 ;; 2515 esac | 2516 sort 2517) 2518 echo 2519 2520 $as_echo "## ----------------- ## 2521## Output variables. ## 2522## ----------------- ##" 2523 echo 2524 for ac_var in $ac_subst_vars 2525 do 2526 eval ac_val=\$$ac_var 2527 case $ac_val in 2528 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2529 esac 2530 $as_echo "$ac_var='\''$ac_val'\''" 2531 done | sort 2532 echo 2533 2534 if test -n "$ac_subst_files"; then 2535 $as_echo "## ------------------- ## 2536## File substitutions. ## 2537## ------------------- ##" 2538 echo 2539 for ac_var in $ac_subst_files 2540 do 2541 eval ac_val=\$$ac_var 2542 case $ac_val in 2543 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2544 esac 2545 $as_echo "$ac_var='\''$ac_val'\''" 2546 done | sort 2547 echo 2548 fi 2549 2550 if test -s confdefs.h; then 2551 $as_echo "## ----------- ## 2552## confdefs.h. ## 2553## ----------- ##" 2554 echo 2555 cat confdefs.h 2556 echo 2557 fi 2558 test "$ac_signal" != 0 && 2559 $as_echo "$as_me: caught signal $ac_signal" 2560 $as_echo "$as_me: exit $exit_status" 2561 } >&5 2562 rm -f core *.core core.conftest.* && 2563 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2564 exit $exit_status 2565' 0 2566for ac_signal in 1 2 13 15; do 2567 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2568done 2569ac_signal=0 2570 2571# confdefs.h avoids OS command line length limits that DEFS can exceed. 2572rm -f -r conftest* confdefs.h 2573 2574$as_echo "/* confdefs.h */" > confdefs.h 2575 2576# Predefined preprocessor variables. 2577 2578cat >>confdefs.h <<_ACEOF 2579#define PACKAGE_NAME "$PACKAGE_NAME" 2580_ACEOF 2581 2582cat >>confdefs.h <<_ACEOF 2583#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2584_ACEOF 2585 2586cat >>confdefs.h <<_ACEOF 2587#define PACKAGE_VERSION "$PACKAGE_VERSION" 2588_ACEOF 2589 2590cat >>confdefs.h <<_ACEOF 2591#define PACKAGE_STRING "$PACKAGE_STRING" 2592_ACEOF 2593 2594cat >>confdefs.h <<_ACEOF 2595#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2596_ACEOF 2597 2598cat >>confdefs.h <<_ACEOF 2599#define PACKAGE_URL "$PACKAGE_URL" 2600_ACEOF 2601 2602 2603# Let the site file select an alternate cache file if it wants to. 2604# Prefer an explicitly selected file to automatically selected ones. 2605ac_site_file1=NONE 2606ac_site_file2=NONE 2607if test -n "$CONFIG_SITE"; then 2608 # We do not want a PATH search for config.site. 2609 case $CONFIG_SITE in #(( 2610 -*) ac_site_file1=./$CONFIG_SITE;; 2611 */*) ac_site_file1=$CONFIG_SITE;; 2612 *) ac_site_file1=./$CONFIG_SITE;; 2613 esac 2614elif test "x$prefix" != xNONE; then 2615 ac_site_file1=$prefix/share/config.site 2616 ac_site_file2=$prefix/etc/config.site 2617else 2618 ac_site_file1=$ac_default_prefix/share/config.site 2619 ac_site_file2=$ac_default_prefix/etc/config.site 2620fi 2621for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2622do 2623 test "x$ac_site_file" = xNONE && continue 2624 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2625 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2626$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2627 sed 's/^/| /' "$ac_site_file" >&5 2628 . "$ac_site_file" \ 2629 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2630$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2631as_fn_error $? "failed to load site script $ac_site_file 2632See \`config.log' for more details" "$LINENO" 5; } 2633 fi 2634done 2635 2636if test -r "$cache_file"; then 2637 # Some versions of bash will fail to source /dev/null (special files 2638 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2639 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2640 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2641$as_echo "$as_me: loading cache $cache_file" >&6;} 2642 case $cache_file in 2643 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2644 *) . "./$cache_file";; 2645 esac 2646 fi 2647else 2648 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2649$as_echo "$as_me: creating cache $cache_file" >&6;} 2650 >$cache_file 2651fi 2652 2653# Check that the precious variables saved in the cache have kept the same 2654# value. 2655ac_cache_corrupted=false 2656for ac_var in $ac_precious_vars; do 2657 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2658 eval ac_new_set=\$ac_env_${ac_var}_set 2659 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2660 eval ac_new_val=\$ac_env_${ac_var}_value 2661 case $ac_old_set,$ac_new_set in 2662 set,) 2663 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2664$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2665 ac_cache_corrupted=: ;; 2666 ,set) 2667 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2668$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2669 ac_cache_corrupted=: ;; 2670 ,);; 2671 *) 2672 if test "x$ac_old_val" != "x$ac_new_val"; then 2673 # differences in whitespace do not lead to failure. 2674 ac_old_val_w=`echo x $ac_old_val` 2675 ac_new_val_w=`echo x $ac_new_val` 2676 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2677 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2678$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2679 ac_cache_corrupted=: 2680 else 2681 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2682$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2683 eval $ac_var=\$ac_old_val 2684 fi 2685 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2686$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2687 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2688$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2689 fi;; 2690 esac 2691 # Pass precious variables to config.status. 2692 if test "$ac_new_set" = set; then 2693 case $ac_new_val in 2694 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2695 *) ac_arg=$ac_var=$ac_new_val ;; 2696 esac 2697 case " $ac_configure_args " in 2698 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2699 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2700 esac 2701 fi 2702done 2703if $ac_cache_corrupted; then 2704 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2705$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2706 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2707$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2708 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2709fi 2710## -------------------- ## 2711## Main body of script. ## 2712## -------------------- ## 2713 2714ac_ext=c 2715ac_cpp='$CPP $CPPFLAGS' 2716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2718ac_compiler_gnu=$ac_cv_c_compiler_gnu 2719 2720 2721 2722 2723ac_aux_dir= 2724for ac_dir in build "$srcdir"/build; do 2725 if test -f "$ac_dir/install-sh"; then 2726 ac_aux_dir=$ac_dir 2727 ac_install_sh="$ac_aux_dir/install-sh -c" 2728 break 2729 elif test -f "$ac_dir/install.sh"; then 2730 ac_aux_dir=$ac_dir 2731 ac_install_sh="$ac_aux_dir/install.sh -c" 2732 break 2733 elif test -f "$ac_dir/shtool"; then 2734 ac_aux_dir=$ac_dir 2735 ac_install_sh="$ac_aux_dir/shtool install -c" 2736 break 2737 fi 2738done 2739if test -z "$ac_aux_dir"; then 2740 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5 2741fi 2742 2743# These three variables are undocumented and unsupported, 2744# and are intended to be withdrawn in a future Autoconf release. 2745# They can cause serious problems if a builder's source tree is in a directory 2746# whose full name contains unusual characters. 2747ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2748ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2749ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2750 2751 2752 2753{ $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Subversion 1.14.1" >&5 2754$as_echo "$as_me: Configuring Subversion 1.14.1" >&6;} 2755 2756abs_srcdir="`cd $srcdir && pwd`" 2757 2758abs_builddir="`pwd`" 2759 2760if test "$abs_srcdir" = "$abs_builddir"; then 2761 canonicalized_srcdir="" 2762else 2763 canonicalized_srcdir="$srcdir/" 2764fi 2765 2766 2767SWIG_LDFLAGS="$LDFLAGS" 2768 2769 2770# Generate config.nice early (before the arguments are munged) 2771 2772 { $as_echo "$as_me:${as_lineno-$LINENO}: creating config.nice" >&5 2773$as_echo "$as_me: creating config.nice" >&6;} 2774 # This little dance satisfies Cygwin, which cannot overwrite in-use files. 2775 if test -f "config.nice"; then 2776 mv "config.nice" "config.nice.old" 2777 fi 2778 2779 cat >"config.nice" <<EOF 2780#! /bin/sh 2781# 2782# Created by configure 2783 2784'$0' $ac_configure_args "\$@" 2785EOF 2786 2787 chmod +x "config.nice" 2788 rm -f "config.nice.old" 2789 2790 2791# ==== Check for programs ==================================================== 2792 2793# Look for a C compiler (before anything can set CFLAGS) 2794CUSERFLAGS="$CFLAGS" 2795ac_ext=c 2796ac_cpp='$CPP $CPPFLAGS' 2797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2799ac_compiler_gnu=$ac_cv_c_compiler_gnu 2800if test -n "$ac_tool_prefix"; then 2801 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2802set dummy ${ac_tool_prefix}gcc; ac_word=$2 2803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2804$as_echo_n "checking for $ac_word... " >&6; } 2805if ${ac_cv_prog_CC+:} false; then : 2806 $as_echo_n "(cached) " >&6 2807else 2808 if test -n "$CC"; then 2809 ac_cv_prog_CC="$CC" # Let the user override the test. 2810else 2811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2812for as_dir in $PATH 2813do 2814 IFS=$as_save_IFS 2815 test -z "$as_dir" && as_dir=. 2816 for ac_exec_ext in '' $ac_executable_extensions; do 2817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2818 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2820 break 2 2821 fi 2822done 2823 done 2824IFS=$as_save_IFS 2825 2826fi 2827fi 2828CC=$ac_cv_prog_CC 2829if test -n "$CC"; then 2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2831$as_echo "$CC" >&6; } 2832else 2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2834$as_echo "no" >&6; } 2835fi 2836 2837 2838fi 2839if test -z "$ac_cv_prog_CC"; then 2840 ac_ct_CC=$CC 2841 # Extract the first word of "gcc", so it can be a program name with args. 2842set dummy gcc; ac_word=$2 2843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2844$as_echo_n "checking for $ac_word... " >&6; } 2845if ${ac_cv_prog_ac_ct_CC+:} false; then : 2846 $as_echo_n "(cached) " >&6 2847else 2848 if test -n "$ac_ct_CC"; then 2849 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2850else 2851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2852for as_dir in $PATH 2853do 2854 IFS=$as_save_IFS 2855 test -z "$as_dir" && as_dir=. 2856 for ac_exec_ext in '' $ac_executable_extensions; do 2857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2858 ac_cv_prog_ac_ct_CC="gcc" 2859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2860 break 2 2861 fi 2862done 2863 done 2864IFS=$as_save_IFS 2865 2866fi 2867fi 2868ac_ct_CC=$ac_cv_prog_ac_ct_CC 2869if test -n "$ac_ct_CC"; then 2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2871$as_echo "$ac_ct_CC" >&6; } 2872else 2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2874$as_echo "no" >&6; } 2875fi 2876 2877 if test "x$ac_ct_CC" = x; then 2878 CC="" 2879 else 2880 case $cross_compiling:$ac_tool_warned in 2881yes:) 2882{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2884ac_tool_warned=yes ;; 2885esac 2886 CC=$ac_ct_CC 2887 fi 2888else 2889 CC="$ac_cv_prog_CC" 2890fi 2891 2892if test -z "$CC"; then 2893 if test -n "$ac_tool_prefix"; then 2894 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2895set dummy ${ac_tool_prefix}cc; ac_word=$2 2896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2897$as_echo_n "checking for $ac_word... " >&6; } 2898if ${ac_cv_prog_CC+:} false; then : 2899 $as_echo_n "(cached) " >&6 2900else 2901 if test -n "$CC"; then 2902 ac_cv_prog_CC="$CC" # Let the user override the test. 2903else 2904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2905for as_dir in $PATH 2906do 2907 IFS=$as_save_IFS 2908 test -z "$as_dir" && as_dir=. 2909 for ac_exec_ext in '' $ac_executable_extensions; do 2910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2911 ac_cv_prog_CC="${ac_tool_prefix}cc" 2912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2913 break 2 2914 fi 2915done 2916 done 2917IFS=$as_save_IFS 2918 2919fi 2920fi 2921CC=$ac_cv_prog_CC 2922if test -n "$CC"; then 2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2924$as_echo "$CC" >&6; } 2925else 2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2927$as_echo "no" >&6; } 2928fi 2929 2930 2931 fi 2932fi 2933if test -z "$CC"; then 2934 # Extract the first word of "cc", so it can be a program name with args. 2935set dummy cc; ac_word=$2 2936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2937$as_echo_n "checking for $ac_word... " >&6; } 2938if ${ac_cv_prog_CC+:} false; then : 2939 $as_echo_n "(cached) " >&6 2940else 2941 if test -n "$CC"; then 2942 ac_cv_prog_CC="$CC" # Let the user override the test. 2943else 2944 ac_prog_rejected=no 2945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2946for as_dir in $PATH 2947do 2948 IFS=$as_save_IFS 2949 test -z "$as_dir" && as_dir=. 2950 for ac_exec_ext in '' $ac_executable_extensions; do 2951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2952 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2953 ac_prog_rejected=yes 2954 continue 2955 fi 2956 ac_cv_prog_CC="cc" 2957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2958 break 2 2959 fi 2960done 2961 done 2962IFS=$as_save_IFS 2963 2964if test $ac_prog_rejected = yes; then 2965 # We found a bogon in the path, so make sure we never use it. 2966 set dummy $ac_cv_prog_CC 2967 shift 2968 if test $# != 0; then 2969 # We chose a different compiler from the bogus one. 2970 # However, it has the same basename, so the bogon will be chosen 2971 # first if we set CC to just the basename; use the full file name. 2972 shift 2973 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2974 fi 2975fi 2976fi 2977fi 2978CC=$ac_cv_prog_CC 2979if test -n "$CC"; then 2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2981$as_echo "$CC" >&6; } 2982else 2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2984$as_echo "no" >&6; } 2985fi 2986 2987 2988fi 2989if test -z "$CC"; then 2990 if test -n "$ac_tool_prefix"; then 2991 for ac_prog in cl.exe 2992 do 2993 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2994set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2996$as_echo_n "checking for $ac_word... " >&6; } 2997if ${ac_cv_prog_CC+:} false; then : 2998 $as_echo_n "(cached) " >&6 2999else 3000 if test -n "$CC"; then 3001 ac_cv_prog_CC="$CC" # Let the user override the test. 3002else 3003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3004for as_dir in $PATH 3005do 3006 IFS=$as_save_IFS 3007 test -z "$as_dir" && as_dir=. 3008 for ac_exec_ext in '' $ac_executable_extensions; do 3009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3010 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3012 break 2 3013 fi 3014done 3015 done 3016IFS=$as_save_IFS 3017 3018fi 3019fi 3020CC=$ac_cv_prog_CC 3021if test -n "$CC"; then 3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3023$as_echo "$CC" >&6; } 3024else 3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3026$as_echo "no" >&6; } 3027fi 3028 3029 3030 test -n "$CC" && break 3031 done 3032fi 3033if test -z "$CC"; then 3034 ac_ct_CC=$CC 3035 for ac_prog in cl.exe 3036do 3037 # Extract the first word of "$ac_prog", so it can be a program name with args. 3038set dummy $ac_prog; ac_word=$2 3039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3040$as_echo_n "checking for $ac_word... " >&6; } 3041if ${ac_cv_prog_ac_ct_CC+:} false; then : 3042 $as_echo_n "(cached) " >&6 3043else 3044 if test -n "$ac_ct_CC"; then 3045 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3046else 3047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3048for as_dir in $PATH 3049do 3050 IFS=$as_save_IFS 3051 test -z "$as_dir" && as_dir=. 3052 for ac_exec_ext in '' $ac_executable_extensions; do 3053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3054 ac_cv_prog_ac_ct_CC="$ac_prog" 3055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3056 break 2 3057 fi 3058done 3059 done 3060IFS=$as_save_IFS 3061 3062fi 3063fi 3064ac_ct_CC=$ac_cv_prog_ac_ct_CC 3065if test -n "$ac_ct_CC"; then 3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3067$as_echo "$ac_ct_CC" >&6; } 3068else 3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3070$as_echo "no" >&6; } 3071fi 3072 3073 3074 test -n "$ac_ct_CC" && break 3075done 3076 3077 if test "x$ac_ct_CC" = x; then 3078 CC="" 3079 else 3080 case $cross_compiling:$ac_tool_warned in 3081yes:) 3082{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3083$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3084ac_tool_warned=yes ;; 3085esac 3086 CC=$ac_ct_CC 3087 fi 3088fi 3089 3090fi 3091 3092 3093test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3094$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3095as_fn_error $? "no acceptable C compiler found in \$PATH 3096See \`config.log' for more details" "$LINENO" 5; } 3097 3098# Provide some information about the compiler. 3099$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3100set X $ac_compile 3101ac_compiler=$2 3102for ac_option in --version -v -V -qversion; do 3103 { { ac_try="$ac_compiler $ac_option >&5" 3104case "(($ac_try" in 3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3106 *) ac_try_echo=$ac_try;; 3107esac 3108eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3109$as_echo "$ac_try_echo"; } >&5 3110 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3111 ac_status=$? 3112 if test -s conftest.err; then 3113 sed '10a\ 3114... rest of stderr output deleted ... 3115 10q' conftest.err >conftest.er1 3116 cat conftest.er1 >&5 3117 fi 3118 rm -f conftest.er1 conftest.err 3119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3120 test $ac_status = 0; } 3121done 3122 3123cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3124/* end confdefs.h. */ 3125 3126int 3127main () 3128{ 3129 3130 ; 3131 return 0; 3132} 3133_ACEOF 3134ac_clean_files_save=$ac_clean_files 3135ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3136# Try to create an executable without -o first, disregard a.out. 3137# It will help us diagnose broken compilers, and finding out an intuition 3138# of exeext. 3139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3140$as_echo_n "checking whether the C compiler works... " >&6; } 3141ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3142 3143# The possible output files: 3144ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3145 3146ac_rmfiles= 3147for ac_file in $ac_files 3148do 3149 case $ac_file in 3150 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3151 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3152 esac 3153done 3154rm -f $ac_rmfiles 3155 3156if { { ac_try="$ac_link_default" 3157case "(($ac_try" in 3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3159 *) ac_try_echo=$ac_try;; 3160esac 3161eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3162$as_echo "$ac_try_echo"; } >&5 3163 (eval "$ac_link_default") 2>&5 3164 ac_status=$? 3165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3166 test $ac_status = 0; }; then : 3167 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3168# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3169# in a Makefile. We should not override ac_cv_exeext if it was cached, 3170# so that the user can short-circuit this test for compilers unknown to 3171# Autoconf. 3172for ac_file in $ac_files '' 3173do 3174 test -f "$ac_file" || continue 3175 case $ac_file in 3176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3177 ;; 3178 [ab].out ) 3179 # We found the default executable, but exeext='' is most 3180 # certainly right. 3181 break;; 3182 *.* ) 3183 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3184 then :; else 3185 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3186 fi 3187 # We set ac_cv_exeext here because the later test for it is not 3188 # safe: cross compilers may not add the suffix if given an `-o' 3189 # argument, so we may need to know it at that point already. 3190 # Even if this section looks crufty: it has the advantage of 3191 # actually working. 3192 break;; 3193 * ) 3194 break;; 3195 esac 3196done 3197test "$ac_cv_exeext" = no && ac_cv_exeext= 3198 3199else 3200 ac_file='' 3201fi 3202if test -z "$ac_file"; then : 3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3204$as_echo "no" >&6; } 3205$as_echo "$as_me: failed program was:" >&5 3206sed 's/^/| /' conftest.$ac_ext >&5 3207 3208{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3209$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3210as_fn_error 77 "C compiler cannot create executables 3211See \`config.log' for more details" "$LINENO" 5; } 3212else 3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3214$as_echo "yes" >&6; } 3215fi 3216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3217$as_echo_n "checking for C compiler default output file name... " >&6; } 3218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3219$as_echo "$ac_file" >&6; } 3220ac_exeext=$ac_cv_exeext 3221 3222rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3223ac_clean_files=$ac_clean_files_save 3224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3225$as_echo_n "checking for suffix of executables... " >&6; } 3226if { { ac_try="$ac_link" 3227case "(($ac_try" in 3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3229 *) ac_try_echo=$ac_try;; 3230esac 3231eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3232$as_echo "$ac_try_echo"; } >&5 3233 (eval "$ac_link") 2>&5 3234 ac_status=$? 3235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3236 test $ac_status = 0; }; then : 3237 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3238# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3239# work properly (i.e., refer to `conftest.exe'), while it won't with 3240# `rm'. 3241for ac_file in conftest.exe conftest conftest.*; do 3242 test -f "$ac_file" || continue 3243 case $ac_file in 3244 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3245 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3246 break;; 3247 * ) break;; 3248 esac 3249done 3250else 3251 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3252$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3253as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3254See \`config.log' for more details" "$LINENO" 5; } 3255fi 3256rm -f conftest conftest$ac_cv_exeext 3257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3258$as_echo "$ac_cv_exeext" >&6; } 3259 3260rm -f conftest.$ac_ext 3261EXEEXT=$ac_cv_exeext 3262ac_exeext=$EXEEXT 3263cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3264/* end confdefs.h. */ 3265#include <stdio.h> 3266int 3267main () 3268{ 3269FILE *f = fopen ("conftest.out", "w"); 3270 return ferror (f) || fclose (f) != 0; 3271 3272 ; 3273 return 0; 3274} 3275_ACEOF 3276ac_clean_files="$ac_clean_files conftest.out" 3277# Check that the compiler produces executables we can run. If not, either 3278# the compiler is broken, or we cross compile. 3279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3280$as_echo_n "checking whether we are cross compiling... " >&6; } 3281if test "$cross_compiling" != yes; then 3282 { { ac_try="$ac_link" 3283case "(($ac_try" in 3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3285 *) ac_try_echo=$ac_try;; 3286esac 3287eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3288$as_echo "$ac_try_echo"; } >&5 3289 (eval "$ac_link") 2>&5 3290 ac_status=$? 3291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3292 test $ac_status = 0; } 3293 if { ac_try='./conftest$ac_cv_exeext' 3294 { { case "(($ac_try" in 3295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3296 *) ac_try_echo=$ac_try;; 3297esac 3298eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3299$as_echo "$ac_try_echo"; } >&5 3300 (eval "$ac_try") 2>&5 3301 ac_status=$? 3302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3303 test $ac_status = 0; }; }; then 3304 cross_compiling=no 3305 else 3306 if test "$cross_compiling" = maybe; then 3307 cross_compiling=yes 3308 else 3309 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3310$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3311as_fn_error $? "cannot run C compiled programs. 3312If you meant to cross compile, use \`--host'. 3313See \`config.log' for more details" "$LINENO" 5; } 3314 fi 3315 fi 3316fi 3317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3318$as_echo "$cross_compiling" >&6; } 3319 3320rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3321ac_clean_files=$ac_clean_files_save 3322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3323$as_echo_n "checking for suffix of object files... " >&6; } 3324if ${ac_cv_objext+:} false; then : 3325 $as_echo_n "(cached) " >&6 3326else 3327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3328/* end confdefs.h. */ 3329 3330int 3331main () 3332{ 3333 3334 ; 3335 return 0; 3336} 3337_ACEOF 3338rm -f conftest.o conftest.obj 3339if { { ac_try="$ac_compile" 3340case "(($ac_try" in 3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3342 *) ac_try_echo=$ac_try;; 3343esac 3344eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3345$as_echo "$ac_try_echo"; } >&5 3346 (eval "$ac_compile") 2>&5 3347 ac_status=$? 3348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3349 test $ac_status = 0; }; then : 3350 for ac_file in conftest.o conftest.obj conftest.*; do 3351 test -f "$ac_file" || continue; 3352 case $ac_file in 3353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3354 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3355 break;; 3356 esac 3357done 3358else 3359 $as_echo "$as_me: failed program was:" >&5 3360sed 's/^/| /' conftest.$ac_ext >&5 3361 3362{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3363$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3364as_fn_error $? "cannot compute suffix of object files: cannot compile 3365See \`config.log' for more details" "$LINENO" 5; } 3366fi 3367rm -f conftest.$ac_cv_objext conftest.$ac_ext 3368fi 3369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3370$as_echo "$ac_cv_objext" >&6; } 3371OBJEXT=$ac_cv_objext 3372ac_objext=$OBJEXT 3373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3374$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3375if ${ac_cv_c_compiler_gnu+:} false; then : 3376 $as_echo_n "(cached) " >&6 3377else 3378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3379/* end confdefs.h. */ 3380 3381int 3382main () 3383{ 3384#ifndef __GNUC__ 3385 choke me 3386#endif 3387 3388 ; 3389 return 0; 3390} 3391_ACEOF 3392if ac_fn_c_try_compile "$LINENO"; then : 3393 ac_compiler_gnu=yes 3394else 3395 ac_compiler_gnu=no 3396fi 3397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3398ac_cv_c_compiler_gnu=$ac_compiler_gnu 3399 3400fi 3401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3402$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3403if test $ac_compiler_gnu = yes; then 3404 GCC=yes 3405else 3406 GCC= 3407fi 3408ac_test_CFLAGS=${CFLAGS+set} 3409ac_save_CFLAGS=$CFLAGS 3410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3411$as_echo_n "checking whether $CC accepts -g... " >&6; } 3412if ${ac_cv_prog_cc_g+:} false; then : 3413 $as_echo_n "(cached) " >&6 3414else 3415 ac_save_c_werror_flag=$ac_c_werror_flag 3416 ac_c_werror_flag=yes 3417 ac_cv_prog_cc_g=no 3418 CFLAGS="-g" 3419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3420/* end confdefs.h. */ 3421 3422int 3423main () 3424{ 3425 3426 ; 3427 return 0; 3428} 3429_ACEOF 3430if ac_fn_c_try_compile "$LINENO"; then : 3431 ac_cv_prog_cc_g=yes 3432else 3433 CFLAGS="" 3434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3435/* end confdefs.h. */ 3436 3437int 3438main () 3439{ 3440 3441 ; 3442 return 0; 3443} 3444_ACEOF 3445if ac_fn_c_try_compile "$LINENO"; then : 3446 3447else 3448 ac_c_werror_flag=$ac_save_c_werror_flag 3449 CFLAGS="-g" 3450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3451/* end confdefs.h. */ 3452 3453int 3454main () 3455{ 3456 3457 ; 3458 return 0; 3459} 3460_ACEOF 3461if ac_fn_c_try_compile "$LINENO"; then : 3462 ac_cv_prog_cc_g=yes 3463fi 3464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3465fi 3466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3467fi 3468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3469 ac_c_werror_flag=$ac_save_c_werror_flag 3470fi 3471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3472$as_echo "$ac_cv_prog_cc_g" >&6; } 3473if test "$ac_test_CFLAGS" = set; then 3474 CFLAGS=$ac_save_CFLAGS 3475elif test $ac_cv_prog_cc_g = yes; then 3476 if test "$GCC" = yes; then 3477 CFLAGS="-g -O2" 3478 else 3479 CFLAGS="-g" 3480 fi 3481else 3482 if test "$GCC" = yes; then 3483 CFLAGS="-O2" 3484 else 3485 CFLAGS= 3486 fi 3487fi 3488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3489$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3490if ${ac_cv_prog_cc_c89+:} false; then : 3491 $as_echo_n "(cached) " >&6 3492else 3493 ac_cv_prog_cc_c89=no 3494ac_save_CC=$CC 3495cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3496/* end confdefs.h. */ 3497#include <stdarg.h> 3498#include <stdio.h> 3499struct stat; 3500/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3501struct buf { int x; }; 3502FILE * (*rcsopen) (struct buf *, struct stat *, int); 3503static char *e (p, i) 3504 char **p; 3505 int i; 3506{ 3507 return p[i]; 3508} 3509static char *f (char * (*g) (char **, int), char **p, ...) 3510{ 3511 char *s; 3512 va_list v; 3513 va_start (v,p); 3514 s = g (p, va_arg (v,int)); 3515 va_end (v); 3516 return s; 3517} 3518 3519/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3520 function prototypes and stuff, but not '\xHH' hex character constants. 3521 These don't provoke an error unfortunately, instead are silently treated 3522 as 'x'. The following induces an error, until -std is added to get 3523 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3524 array size at least. It's necessary to write '\x00'==0 to get something 3525 that's true only with -std. */ 3526int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3527 3528/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3529 inside strings and character constants. */ 3530#define FOO(x) 'x' 3531int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3532 3533int test (int i, double x); 3534struct s1 {int (*f) (int a);}; 3535struct s2 {int (*f) (double a);}; 3536int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3537int argc; 3538char **argv; 3539int 3540main () 3541{ 3542return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3543 ; 3544 return 0; 3545} 3546_ACEOF 3547for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3548 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3549do 3550 CC="$ac_save_CC $ac_arg" 3551 if ac_fn_c_try_compile "$LINENO"; then : 3552 ac_cv_prog_cc_c89=$ac_arg 3553fi 3554rm -f core conftest.err conftest.$ac_objext 3555 test "x$ac_cv_prog_cc_c89" != "xno" && break 3556done 3557rm -f conftest.$ac_ext 3558CC=$ac_save_CC 3559 3560fi 3561# AC_CACHE_VAL 3562case "x$ac_cv_prog_cc_c89" in 3563 x) 3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3565$as_echo "none needed" >&6; } ;; 3566 xno) 3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3568$as_echo "unsupported" >&6; } ;; 3569 *) 3570 CC="$CC $ac_cv_prog_cc_c89" 3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3572$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3573esac 3574if test "x$ac_cv_prog_cc_c89" != xno; then : 3575 3576fi 3577 3578ac_ext=c 3579ac_cpp='$CPP $CPPFLAGS' 3580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3582ac_compiler_gnu=$ac_cv_c_compiler_gnu 3583 3584 3585 3586 CFLAGS_KEEP="$CFLAGS" 3587 CFLAGS="" 3588 3589 if test "$GCC" = "yes"; then 3590 3591 _svn_xxflags__save="$CFLAGS" 3592 ac_ext=c 3593ac_cpp='$CPP $CPPFLAGS' 3594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3596ac_compiler_gnu=$ac_cv_c_compiler_gnu 3597 3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -std=c90" >&5 3599$as_echo_n "checking if $CC accepts -std=c90... " >&6; } 3600 CFLAGS="-std=c90 $CFLAGS" 3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3602/* end confdefs.h. */ 3603int main(void){return 0;} 3604_ACEOF 3605if ac_fn_c_try_link "$LINENO"; then : 3606 3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3608$as_echo "yes" >&6; } 3609 3610 3611else 3612 3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3614$as_echo "no" >&6; } 3615 CFLAGS="$_svn_xxflags__save" 3616 3617 3618 _svn_xxflags__save="$CFLAGS" 3619 ac_ext=c 3620ac_cpp='$CPP $CPPFLAGS' 3621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3623ac_compiler_gnu=$ac_cv_c_compiler_gnu 3624 3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -std=c89" >&5 3626$as_echo_n "checking if $CC accepts -std=c89... " >&6; } 3627 CFLAGS="-std=c89 $CFLAGS" 3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3629/* end confdefs.h. */ 3630int main(void){return 0;} 3631_ACEOF 3632if ac_fn_c_try_link "$LINENO"; then : 3633 3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3635$as_echo "yes" >&6; } 3636 3637 3638else 3639 3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3641$as_echo "no" >&6; } 3642 CFLAGS="$_svn_xxflags__save" 3643 3644 3645 _svn_xxflags__save="$CFLAGS" 3646 ac_ext=c 3647ac_cpp='$CPP $CPPFLAGS' 3648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3650ac_compiler_gnu=$ac_cv_c_compiler_gnu 3651 3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -ansi" >&5 3653$as_echo_n "checking if $CC accepts -ansi... " >&6; } 3654 CFLAGS="-ansi $CFLAGS" 3655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3656/* end confdefs.h. */ 3657int main(void){return 0;} 3658_ACEOF 3659if ac_fn_c_try_link "$LINENO"; then : 3660 3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3662$as_echo "yes" >&6; } 3663 3664 3665else 3666 3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3668$as_echo "no" >&6; } 3669 CFLAGS="$_svn_xxflags__save" 3670 3671 3672fi 3673rm -f core conftest.err conftest.$ac_objext \ 3674 conftest$ac_exeext conftest.$ac_ext 3675 ac_ext=c 3676ac_cpp='$CPP $CPPFLAGS' 3677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3679ac_compiler_gnu=$ac_cv_c_compiler_gnu 3680 3681 3682 3683 3684fi 3685rm -f core conftest.err conftest.$ac_objext \ 3686 conftest$ac_exeext conftest.$ac_ext 3687 ac_ext=c 3688ac_cpp='$CPP $CPPFLAGS' 3689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3691ac_compiler_gnu=$ac_cv_c_compiler_gnu 3692 3693 3694 3695 3696fi 3697rm -f core conftest.err conftest.$ac_objext \ 3698 conftest$ac_exeext conftest.$ac_ext 3699 ac_ext=c 3700ac_cpp='$CPP $CPPFLAGS' 3701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3703ac_compiler_gnu=$ac_cv_c_compiler_gnu 3704 3705 3706 fi 3707 3708 CMODEFLAGS="$CFLAGS" 3709 CFLAGS="" 3710 3711 if test "$GCC" = "yes"; then 3712 3713 _svn_xxflags__save="$CFLAGS" 3714 ac_ext=c 3715ac_cpp='$CPP $CPPFLAGS' 3716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3718ac_compiler_gnu=$ac_cv_c_compiler_gnu 3719 3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -w" >&5 3721$as_echo_n "checking if $CC accepts -w... " >&6; } 3722 CFLAGS="-w $CFLAGS" 3723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3724/* end confdefs.h. */ 3725int main(void){return 0;} 3726_ACEOF 3727if ac_fn_c_try_link "$LINENO"; then : 3728 3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3730$as_echo "yes" >&6; } 3731 3732 3733else 3734 3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3736$as_echo "no" >&6; } 3737 CFLAGS="$_svn_xxflags__save" 3738 3739 3740fi 3741rm -f core conftest.err conftest.$ac_objext \ 3742 conftest$ac_exeext conftest.$ac_ext 3743 ac_ext=c 3744ac_cpp='$CPP $CPPFLAGS' 3745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3747ac_compiler_gnu=$ac_cv_c_compiler_gnu 3748 3749 3750 fi 3751 3752 CNOWARNFLAGS="$CFLAGS" 3753 CFLAGS="$CFLAGS_KEEP" 3754 3755 3756 3757 3758 3759 3760 if test "$GCC" = "yes"; then 3761 3762 _svn_xxflags__save="$CFLAGS" 3763 ac_ext=c 3764ac_cpp='$CPP $CPPFLAGS' 3765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3767ac_compiler_gnu=$ac_cv_c_compiler_gnu 3768 3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=unknown-warning-option" >&5 3770$as_echo_n "checking if $CC accepts -Werror=unknown-warning-option... " >&6; } 3771 CFLAGS="-Werror=unknown-warning-option $CFLAGS" 3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3773/* end confdefs.h. */ 3774int main(void){return 0;} 3775_ACEOF 3776if ac_fn_c_try_link "$LINENO"; then : 3777 3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3779$as_echo "yes" >&6; } 3780 3781 3782else 3783 3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3785$as_echo "no" >&6; } 3786 CFLAGS="$_svn_xxflags__save" 3787 3788 3789fi 3790rm -f core conftest.err conftest.$ac_objext \ 3791 conftest$ac_exeext conftest.$ac_ext 3792 ac_ext=c 3793ac_cpp='$CPP $CPPFLAGS' 3794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3796ac_compiler_gnu=$ac_cv_c_compiler_gnu 3797 3798 3799 fi 3800 3801 3802# Look for a C++ compiler (before anything can set CXXFLAGS) 3803CXXUSERFLAGS="$CXXFLAGS" 3804ac_ext=cpp 3805ac_cpp='$CXXCPP $CPPFLAGS' 3806ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3807ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3808ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3809if test -z "$CXX"; then 3810 if test -n "$CCC"; then 3811 CXX=$CCC 3812 else 3813 if test -n "$ac_tool_prefix"; then 3814 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3815 do 3816 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3817set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3819$as_echo_n "checking for $ac_word... " >&6; } 3820if ${ac_cv_prog_CXX+:} false; then : 3821 $as_echo_n "(cached) " >&6 3822else 3823 if test -n "$CXX"; then 3824 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3825else 3826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3827for as_dir in $PATH 3828do 3829 IFS=$as_save_IFS 3830 test -z "$as_dir" && as_dir=. 3831 for ac_exec_ext in '' $ac_executable_extensions; do 3832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3833 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3835 break 2 3836 fi 3837done 3838 done 3839IFS=$as_save_IFS 3840 3841fi 3842fi 3843CXX=$ac_cv_prog_CXX 3844if test -n "$CXX"; then 3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 3846$as_echo "$CXX" >&6; } 3847else 3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3849$as_echo "no" >&6; } 3850fi 3851 3852 3853 test -n "$CXX" && break 3854 done 3855fi 3856if test -z "$CXX"; then 3857 ac_ct_CXX=$CXX 3858 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3859do 3860 # Extract the first word of "$ac_prog", so it can be a program name with args. 3861set dummy $ac_prog; ac_word=$2 3862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3863$as_echo_n "checking for $ac_word... " >&6; } 3864if ${ac_cv_prog_ac_ct_CXX+:} false; then : 3865 $as_echo_n "(cached) " >&6 3866else 3867 if test -n "$ac_ct_CXX"; then 3868 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3869else 3870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3871for as_dir in $PATH 3872do 3873 IFS=$as_save_IFS 3874 test -z "$as_dir" && as_dir=. 3875 for ac_exec_ext in '' $ac_executable_extensions; do 3876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3877 ac_cv_prog_ac_ct_CXX="$ac_prog" 3878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3879 break 2 3880 fi 3881done 3882 done 3883IFS=$as_save_IFS 3884 3885fi 3886fi 3887ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3888if test -n "$ac_ct_CXX"; then 3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 3890$as_echo "$ac_ct_CXX" >&6; } 3891else 3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3893$as_echo "no" >&6; } 3894fi 3895 3896 3897 test -n "$ac_ct_CXX" && break 3898done 3899 3900 if test "x$ac_ct_CXX" = x; then 3901 CXX="g++" 3902 else 3903 case $cross_compiling:$ac_tool_warned in 3904yes:) 3905{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3906$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3907ac_tool_warned=yes ;; 3908esac 3909 CXX=$ac_ct_CXX 3910 fi 3911fi 3912 3913 fi 3914fi 3915# Provide some information about the compiler. 3916$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 3917set X $ac_compile 3918ac_compiler=$2 3919for ac_option in --version -v -V -qversion; do 3920 { { ac_try="$ac_compiler $ac_option >&5" 3921case "(($ac_try" in 3922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3923 *) ac_try_echo=$ac_try;; 3924esac 3925eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3926$as_echo "$ac_try_echo"; } >&5 3927 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3928 ac_status=$? 3929 if test -s conftest.err; then 3930 sed '10a\ 3931... rest of stderr output deleted ... 3932 10q' conftest.err >conftest.er1 3933 cat conftest.er1 >&5 3934 fi 3935 rm -f conftest.er1 conftest.err 3936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3937 test $ac_status = 0; } 3938done 3939 3940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 3941$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 3942if ${ac_cv_cxx_compiler_gnu+:} false; then : 3943 $as_echo_n "(cached) " >&6 3944else 3945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3946/* end confdefs.h. */ 3947 3948int 3949main () 3950{ 3951#ifndef __GNUC__ 3952 choke me 3953#endif 3954 3955 ; 3956 return 0; 3957} 3958_ACEOF 3959if ac_fn_cxx_try_compile "$LINENO"; then : 3960 ac_compiler_gnu=yes 3961else 3962 ac_compiler_gnu=no 3963fi 3964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3965ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3966 3967fi 3968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 3969$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 3970if test $ac_compiler_gnu = yes; then 3971 GXX=yes 3972else 3973 GXX= 3974fi 3975ac_test_CXXFLAGS=${CXXFLAGS+set} 3976ac_save_CXXFLAGS=$CXXFLAGS 3977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 3978$as_echo_n "checking whether $CXX accepts -g... " >&6; } 3979if ${ac_cv_prog_cxx_g+:} false; then : 3980 $as_echo_n "(cached) " >&6 3981else 3982 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3983 ac_cxx_werror_flag=yes 3984 ac_cv_prog_cxx_g=no 3985 CXXFLAGS="-g" 3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3987/* end confdefs.h. */ 3988 3989int 3990main () 3991{ 3992 3993 ; 3994 return 0; 3995} 3996_ACEOF 3997if ac_fn_cxx_try_compile "$LINENO"; then : 3998 ac_cv_prog_cxx_g=yes 3999else 4000 CXXFLAGS="" 4001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4002/* end confdefs.h. */ 4003 4004int 4005main () 4006{ 4007 4008 ; 4009 return 0; 4010} 4011_ACEOF 4012if ac_fn_cxx_try_compile "$LINENO"; then : 4013 4014else 4015 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4016 CXXFLAGS="-g" 4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4018/* end confdefs.h. */ 4019 4020int 4021main () 4022{ 4023 4024 ; 4025 return 0; 4026} 4027_ACEOF 4028if ac_fn_cxx_try_compile "$LINENO"; then : 4029 ac_cv_prog_cxx_g=yes 4030fi 4031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4032fi 4033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4034fi 4035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4036 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4037fi 4038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4039$as_echo "$ac_cv_prog_cxx_g" >&6; } 4040if test "$ac_test_CXXFLAGS" = set; then 4041 CXXFLAGS=$ac_save_CXXFLAGS 4042elif test $ac_cv_prog_cxx_g = yes; then 4043 if test "$GXX" = yes; then 4044 CXXFLAGS="-g -O2" 4045 else 4046 CXXFLAGS="-g" 4047 fi 4048else 4049 if test "$GXX" = yes; then 4050 CXXFLAGS="-O2" 4051 else 4052 CXXFLAGS= 4053 fi 4054fi 4055ac_ext=c 4056ac_cpp='$CPP $CPPFLAGS' 4057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4059ac_compiler_gnu=$ac_cv_c_compiler_gnu 4060 4061 4062 4063 CXXFLAGS_KEEP="$CXXFLAGS" 4064 CXXFLAGS="" 4065 4066 if test "$GXX" = "yes"; then 4067 4068 _svn_xxflags__save="$CXXFLAGS" 4069 ac_ext=cpp 4070ac_cpp='$CXXCPP $CPPFLAGS' 4071ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4072ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4073ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4074 4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -std=c++11" >&5 4076$as_echo_n "checking if $CXX accepts -std=c++11... " >&6; } 4077 CXXFLAGS="-std=c++11 $CXXFLAGS" 4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4079/* end confdefs.h. */ 4080int main(){} 4081_ACEOF 4082if ac_fn_cxx_try_link "$LINENO"; then : 4083 4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4085$as_echo "yes" >&6; } 4086 4087 4088else 4089 4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4091$as_echo "no" >&6; } 4092 CXXFLAGS="$_svn_xxflags__save" 4093 4094 4095fi 4096rm -f core conftest.err conftest.$ac_objext \ 4097 conftest$ac_exeext conftest.$ac_ext 4098 ac_ext=c 4099ac_cpp='$CPP $CPPFLAGS' 4100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4102ac_compiler_gnu=$ac_cv_c_compiler_gnu 4103 4104 4105 fi 4106 4107 CXXMODEFLAGS="$CXXFLAGS" 4108 CXXFLAGS="" 4109 4110 if test "$GXX" = "yes"; then 4111 4112 _svn_xxflags__save="$CXXFLAGS" 4113 ac_ext=cpp 4114ac_cpp='$CXXCPP $CPPFLAGS' 4115ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4116ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4117ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4118 4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -w" >&5 4120$as_echo_n "checking if $CXX accepts -w... " >&6; } 4121 CXXFLAGS="-w $CXXFLAGS" 4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4123/* end confdefs.h. */ 4124int main(){} 4125_ACEOF 4126if ac_fn_cxx_try_link "$LINENO"; then : 4127 4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4129$as_echo "yes" >&6; } 4130 4131 4132else 4133 4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4135$as_echo "no" >&6; } 4136 CXXFLAGS="$_svn_xxflags__save" 4137 4138 4139fi 4140rm -f core conftest.err conftest.$ac_objext \ 4141 conftest$ac_exeext conftest.$ac_ext 4142 ac_ext=c 4143ac_cpp='$CPP $CPPFLAGS' 4144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4146ac_compiler_gnu=$ac_cv_c_compiler_gnu 4147 4148 4149 fi 4150 4151 CXXNOWARNFLAGS="$CXXFLAGS" 4152 CXXFLAGS="$CXXFLAGS_KEEP" 4153 4154 4155 4156 4157 4158 4159 if test "$GXX" = "yes"; then 4160 4161 _svn_xxflags__save="$CXXFLAGS" 4162 ac_ext=cpp 4163ac_cpp='$CXXCPP $CPPFLAGS' 4164ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4165ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4166ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4167 4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Werror=unknown-warning-option" >&5 4169$as_echo_n "checking if $CXX accepts -Werror=unknown-warning-option... " >&6; } 4170 CXXFLAGS="-Werror=unknown-warning-option $CXXFLAGS" 4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4172/* end confdefs.h. */ 4173int main(){} 4174_ACEOF 4175if ac_fn_cxx_try_link "$LINENO"; then : 4176 4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4178$as_echo "yes" >&6; } 4179 4180 4181else 4182 4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4184$as_echo "no" >&6; } 4185 CXXFLAGS="$_svn_xxflags__save" 4186 4187 4188fi 4189rm -f core conftest.err conftest.$ac_objext \ 4190 conftest$ac_exeext conftest.$ac_ext 4191 ac_ext=c 4192ac_cpp='$CPP $CPPFLAGS' 4193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4195ac_compiler_gnu=$ac_cv_c_compiler_gnu 4196 4197 4198 fi 4199 4200 4201# Look for a C pre-processor 4202ac_ext=c 4203ac_cpp='$CPP $CPPFLAGS' 4204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4206ac_compiler_gnu=$ac_cv_c_compiler_gnu 4207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4208$as_echo_n "checking how to run the C preprocessor... " >&6; } 4209# On Suns, sometimes $CPP names a directory. 4210if test -n "$CPP" && test -d "$CPP"; then 4211 CPP= 4212fi 4213if test -z "$CPP"; then 4214 if ${ac_cv_prog_CPP+:} false; then : 4215 $as_echo_n "(cached) " >&6 4216else 4217 # Double quotes because CPP needs to be expanded 4218 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4219 do 4220 ac_preproc_ok=false 4221for ac_c_preproc_warn_flag in '' yes 4222do 4223 # Use a header file that comes with gcc, so configuring glibc 4224 # with a fresh cross-compiler works. 4225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4226 # <limits.h> exists even on freestanding compilers. 4227 # On the NeXT, cc -E runs the code through the compiler's parser, 4228 # not just through cpp. "Syntax error" is here to catch this case. 4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4230/* end confdefs.h. */ 4231#ifdef __STDC__ 4232# include <limits.h> 4233#else 4234# include <assert.h> 4235#endif 4236 Syntax error 4237_ACEOF 4238if ac_fn_c_try_cpp "$LINENO"; then : 4239 4240else 4241 # Broken: fails on valid input. 4242continue 4243fi 4244rm -f conftest.err conftest.i conftest.$ac_ext 4245 4246 # OK, works on sane cases. Now check whether nonexistent headers 4247 # can be detected and how. 4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4249/* end confdefs.h. */ 4250#include <ac_nonexistent.h> 4251_ACEOF 4252if ac_fn_c_try_cpp "$LINENO"; then : 4253 # Broken: success on invalid input. 4254continue 4255else 4256 # Passes both tests. 4257ac_preproc_ok=: 4258break 4259fi 4260rm -f conftest.err conftest.i conftest.$ac_ext 4261 4262done 4263# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4264rm -f conftest.i conftest.err conftest.$ac_ext 4265if $ac_preproc_ok; then : 4266 break 4267fi 4268 4269 done 4270 ac_cv_prog_CPP=$CPP 4271 4272fi 4273 CPP=$ac_cv_prog_CPP 4274else 4275 ac_cv_prog_CPP=$CPP 4276fi 4277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4278$as_echo "$CPP" >&6; } 4279ac_preproc_ok=false 4280for ac_c_preproc_warn_flag in '' yes 4281do 4282 # Use a header file that comes with gcc, so configuring glibc 4283 # with a fresh cross-compiler works. 4284 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4285 # <limits.h> exists even on freestanding compilers. 4286 # On the NeXT, cc -E runs the code through the compiler's parser, 4287 # not just through cpp. "Syntax error" is here to catch this case. 4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4289/* end confdefs.h. */ 4290#ifdef __STDC__ 4291# include <limits.h> 4292#else 4293# include <assert.h> 4294#endif 4295 Syntax error 4296_ACEOF 4297if ac_fn_c_try_cpp "$LINENO"; then : 4298 4299else 4300 # Broken: fails on valid input. 4301continue 4302fi 4303rm -f conftest.err conftest.i conftest.$ac_ext 4304 4305 # OK, works on sane cases. Now check whether nonexistent headers 4306 # can be detected and how. 4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4308/* end confdefs.h. */ 4309#include <ac_nonexistent.h> 4310_ACEOF 4311if ac_fn_c_try_cpp "$LINENO"; then : 4312 # Broken: success on invalid input. 4313continue 4314else 4315 # Passes both tests. 4316ac_preproc_ok=: 4317break 4318fi 4319rm -f conftest.err conftest.i conftest.$ac_ext 4320 4321done 4322# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4323rm -f conftest.i conftest.err conftest.$ac_ext 4324if $ac_preproc_ok; then : 4325 4326else 4327 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4328$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4329as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4330See \`config.log' for more details" "$LINENO" 5; } 4331fi 4332 4333ac_ext=c 4334ac_cpp='$CPP $CPPFLAGS' 4335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4337ac_compiler_gnu=$ac_cv_c_compiler_gnu 4338 4339 4340# Look for a good sed 4341# AC_PROG_SED was introduced in Autoconf 2.59b 4342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4343$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4344if ${ac_cv_path_SED+:} false; then : 4345 $as_echo_n "(cached) " >&6 4346else 4347 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4348 for ac_i in 1 2 3 4 5 6 7; do 4349 ac_script="$ac_script$as_nl$ac_script" 4350 done 4351 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4352 { ac_script=; unset ac_script;} 4353 if test -z "$SED"; then 4354 ac_path_SED_found=false 4355 # Loop through the user's path and test for each of PROGNAME-LIST 4356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4357for as_dir in $PATH 4358do 4359 IFS=$as_save_IFS 4360 test -z "$as_dir" && as_dir=. 4361 for ac_prog in sed gsed; do 4362 for ac_exec_ext in '' $ac_executable_extensions; do 4363 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4364 as_fn_executable_p "$ac_path_SED" || continue 4365# Check for GNU ac_path_SED and select it if it is found. 4366 # Check for GNU $ac_path_SED 4367case `"$ac_path_SED" --version 2>&1` in 4368*GNU*) 4369 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4370*) 4371 ac_count=0 4372 $as_echo_n 0123456789 >"conftest.in" 4373 while : 4374 do 4375 cat "conftest.in" "conftest.in" >"conftest.tmp" 4376 mv "conftest.tmp" "conftest.in" 4377 cp "conftest.in" "conftest.nl" 4378 $as_echo '' >> "conftest.nl" 4379 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4380 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4381 as_fn_arith $ac_count + 1 && ac_count=$as_val 4382 if test $ac_count -gt ${ac_path_SED_max-0}; then 4383 # Best one so far, save it but keep looking for a better one 4384 ac_cv_path_SED="$ac_path_SED" 4385 ac_path_SED_max=$ac_count 4386 fi 4387 # 10*(2^10) chars as input seems more than enough 4388 test $ac_count -gt 10 && break 4389 done 4390 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4391esac 4392 4393 $ac_path_SED_found && break 3 4394 done 4395 done 4396 done 4397IFS=$as_save_IFS 4398 if test -z "$ac_cv_path_SED"; then 4399 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4400 fi 4401else 4402 ac_cv_path_SED=$SED 4403fi 4404 4405fi 4406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4407$as_echo "$ac_cv_path_SED" >&6; } 4408 SED="$ac_cv_path_SED" 4409 rm -f conftest.sed 4410 4411 4412# Grab target_cpu, so we can use it in the Solaris pkginfo file 4413# Make sure we can run config.sub. 4414$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4415 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4416 4417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4418$as_echo_n "checking build system type... " >&6; } 4419if ${ac_cv_build+:} false; then : 4420 $as_echo_n "(cached) " >&6 4421else 4422 ac_build_alias=$build_alias 4423test "x$ac_build_alias" = x && 4424 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4425test "x$ac_build_alias" = x && 4426 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4427ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4428 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4429 4430fi 4431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4432$as_echo "$ac_cv_build" >&6; } 4433case $ac_cv_build in 4434*-*-*) ;; 4435*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4436esac 4437build=$ac_cv_build 4438ac_save_IFS=$IFS; IFS='-' 4439set x $ac_cv_build 4440shift 4441build_cpu=$1 4442build_vendor=$2 4443shift; shift 4444# Remember, the first character of IFS is used to create $*, 4445# except with old shells: 4446build_os=$* 4447IFS=$ac_save_IFS 4448case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4449 4450 4451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4452$as_echo_n "checking host system type... " >&6; } 4453if ${ac_cv_host+:} false; then : 4454 $as_echo_n "(cached) " >&6 4455else 4456 if test "x$host_alias" = x; then 4457 ac_cv_host=$ac_cv_build 4458else 4459 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4460 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4461fi 4462 4463fi 4464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4465$as_echo "$ac_cv_host" >&6; } 4466case $ac_cv_host in 4467*-*-*) ;; 4468*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4469esac 4470host=$ac_cv_host 4471ac_save_IFS=$IFS; IFS='-' 4472set x $ac_cv_host 4473shift 4474host_cpu=$1 4475host_vendor=$2 4476shift; shift 4477# Remember, the first character of IFS is used to create $*, 4478# except with old shells: 4479host_os=$* 4480IFS=$ac_save_IFS 4481case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4482 4483 4484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 4485$as_echo_n "checking target system type... " >&6; } 4486if ${ac_cv_target+:} false; then : 4487 $as_echo_n "(cached) " >&6 4488else 4489 if test "x$target_alias" = x; then 4490 ac_cv_target=$ac_cv_host 4491else 4492 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 4493 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 4494fi 4495 4496fi 4497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 4498$as_echo "$ac_cv_target" >&6; } 4499case $ac_cv_target in 4500*-*-*) ;; 4501*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 4502esac 4503target=$ac_cv_target 4504ac_save_IFS=$IFS; IFS='-' 4505set x $ac_cv_target 4506shift 4507target_cpu=$1 4508target_vendor=$2 4509shift; shift 4510# Remember, the first character of IFS is used to create $*, 4511# except with old shells: 4512target_os=$* 4513IFS=$ac_save_IFS 4514case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 4515 4516 4517# The aliases save the names the user supplied, while $host etc. 4518# will get canonicalized. 4519test -n "$target_alias" && 4520 test "$program_prefix$program_suffix$program_transform_name" = \ 4521 NONENONEs,x,x, && 4522 program_prefix=${target_alias}- 4523 4524# Look for an extended grep 4525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4526$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4527if ${ac_cv_path_GREP+:} false; then : 4528 $as_echo_n "(cached) " >&6 4529else 4530 if test -z "$GREP"; then 4531 ac_path_GREP_found=false 4532 # Loop through the user's path and test for each of PROGNAME-LIST 4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4534for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4535do 4536 IFS=$as_save_IFS 4537 test -z "$as_dir" && as_dir=. 4538 for ac_prog in grep ggrep; do 4539 for ac_exec_ext in '' $ac_executable_extensions; do 4540 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4541 as_fn_executable_p "$ac_path_GREP" || continue 4542# Check for GNU ac_path_GREP and select it if it is found. 4543 # Check for GNU $ac_path_GREP 4544case `"$ac_path_GREP" --version 2>&1` in 4545*GNU*) 4546 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4547*) 4548 ac_count=0 4549 $as_echo_n 0123456789 >"conftest.in" 4550 while : 4551 do 4552 cat "conftest.in" "conftest.in" >"conftest.tmp" 4553 mv "conftest.tmp" "conftest.in" 4554 cp "conftest.in" "conftest.nl" 4555 $as_echo 'GREP' >> "conftest.nl" 4556 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4557 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4558 as_fn_arith $ac_count + 1 && ac_count=$as_val 4559 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4560 # Best one so far, save it but keep looking for a better one 4561 ac_cv_path_GREP="$ac_path_GREP" 4562 ac_path_GREP_max=$ac_count 4563 fi 4564 # 10*(2^10) chars as input seems more than enough 4565 test $ac_count -gt 10 && break 4566 done 4567 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4568esac 4569 4570 $ac_path_GREP_found && break 3 4571 done 4572 done 4573 done 4574IFS=$as_save_IFS 4575 if test -z "$ac_cv_path_GREP"; then 4576 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4577 fi 4578else 4579 ac_cv_path_GREP=$GREP 4580fi 4581 4582fi 4583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4584$as_echo "$ac_cv_path_GREP" >&6; } 4585 GREP="$ac_cv_path_GREP" 4586 4587 4588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4589$as_echo_n "checking for egrep... " >&6; } 4590if ${ac_cv_path_EGREP+:} false; then : 4591 $as_echo_n "(cached) " >&6 4592else 4593 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4594 then ac_cv_path_EGREP="$GREP -E" 4595 else 4596 if test -z "$EGREP"; then 4597 ac_path_EGREP_found=false 4598 # Loop through the user's path and test for each of PROGNAME-LIST 4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4600for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4601do 4602 IFS=$as_save_IFS 4603 test -z "$as_dir" && as_dir=. 4604 for ac_prog in egrep; do 4605 for ac_exec_ext in '' $ac_executable_extensions; do 4606 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4607 as_fn_executable_p "$ac_path_EGREP" || continue 4608# Check for GNU ac_path_EGREP and select it if it is found. 4609 # Check for GNU $ac_path_EGREP 4610case `"$ac_path_EGREP" --version 2>&1` in 4611*GNU*) 4612 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4613*) 4614 ac_count=0 4615 $as_echo_n 0123456789 >"conftest.in" 4616 while : 4617 do 4618 cat "conftest.in" "conftest.in" >"conftest.tmp" 4619 mv "conftest.tmp" "conftest.in" 4620 cp "conftest.in" "conftest.nl" 4621 $as_echo 'EGREP' >> "conftest.nl" 4622 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4623 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4624 as_fn_arith $ac_count + 1 && ac_count=$as_val 4625 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4626 # Best one so far, save it but keep looking for a better one 4627 ac_cv_path_EGREP="$ac_path_EGREP" 4628 ac_path_EGREP_max=$ac_count 4629 fi 4630 # 10*(2^10) chars as input seems more than enough 4631 test $ac_count -gt 10 && break 4632 done 4633 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4634esac 4635 4636 $ac_path_EGREP_found && break 3 4637 done 4638 done 4639 done 4640IFS=$as_save_IFS 4641 if test -z "$ac_cv_path_EGREP"; then 4642 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4643 fi 4644else 4645 ac_cv_path_EGREP=$EGREP 4646fi 4647 4648 fi 4649fi 4650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4651$as_echo "$ac_cv_path_EGREP" >&6; } 4652 EGREP="$ac_cv_path_EGREP" 4653 4654 4655 4656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4657$as_echo_n "checking whether ln -s works... " >&6; } 4658LN_S=$as_ln_s 4659if test "$LN_S" = "ln -s"; then 4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4661$as_echo "yes" >&6; } 4662else 4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4664$as_echo "no, using $LN_S" >&6; } 4665fi 4666 4667 4668# Find a good install program. We prefer a C program (faster), 4669# so one script is as good as another. But avoid the broken or 4670# incompatible versions: 4671# SysV /etc/install, /usr/sbin/install 4672# SunOS /usr/etc/install 4673# IRIX /sbin/install 4674# AIX /bin/install 4675# AmigaOS /C/install, which installs bootblocks on floppy discs 4676# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4677# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4678# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4679# OS/2's system install, which has a completely different semantic 4680# ./install, which can be erroneously created by make from ./install.sh. 4681# Reject install programs that cannot install multiple files. 4682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4683$as_echo_n "checking for a BSD-compatible install... " >&6; } 4684if test -z "$INSTALL"; then 4685if ${ac_cv_path_install+:} false; then : 4686 $as_echo_n "(cached) " >&6 4687else 4688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4689for as_dir in $PATH 4690do 4691 IFS=$as_save_IFS 4692 test -z "$as_dir" && as_dir=. 4693 # Account for people who put trailing slashes in PATH elements. 4694case $as_dir/ in #(( 4695 ./ | .// | /[cC]/* | \ 4696 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4697 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4698 /usr/ucb/* ) ;; 4699 *) 4700 # OSF1 and SCO ODT 3.0 have their own names for install. 4701 # Don't use installbsd from OSF since it installs stuff as root 4702 # by default. 4703 for ac_prog in ginstall scoinst install; do 4704 for ac_exec_ext in '' $ac_executable_extensions; do 4705 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 4706 if test $ac_prog = install && 4707 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4708 # AIX install. It has an incompatible calling convention. 4709 : 4710 elif test $ac_prog = install && 4711 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4712 # program-specific install script used by HP pwplus--don't use. 4713 : 4714 else 4715 rm -rf conftest.one conftest.two conftest.dir 4716 echo one > conftest.one 4717 echo two > conftest.two 4718 mkdir conftest.dir 4719 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 4720 test -s conftest.one && test -s conftest.two && 4721 test -s conftest.dir/conftest.one && 4722 test -s conftest.dir/conftest.two 4723 then 4724 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4725 break 3 4726 fi 4727 fi 4728 fi 4729 done 4730 done 4731 ;; 4732esac 4733 4734 done 4735IFS=$as_save_IFS 4736 4737rm -rf conftest.one conftest.two conftest.dir 4738 4739fi 4740 if test "${ac_cv_path_install+set}" = set; then 4741 INSTALL=$ac_cv_path_install 4742 else 4743 # As a last resort, use the slow shell script. Don't cache a 4744 # value for INSTALL within a source directory, because that will 4745 # break other packages using the cache if that directory is 4746 # removed, or if the value is a relative name. 4747 INSTALL=$ac_install_sh 4748 fi 4749fi 4750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4751$as_echo "$INSTALL" >&6; } 4752 4753# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4754# It thinks the first close brace ends the variable substitution. 4755test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4756 4757test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4758 4759test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4760 4761# If $INSTALL is relative path to our fallback install-sh, then convert 4762# to an absolute path, as in some cases (e.g. Solaris VPATH build), libtool 4763# may try to use it from a changed working directory. 4764if test "$INSTALL" = "build/install-sh -c"; then 4765 INSTALL="$abs_srcdir/$INSTALL" 4766fi 4767 4768if test -z "$MKDIR"; then 4769 MKDIR="$INSTALL -d" 4770fi 4771 4772 4773# ==== Libraries, for which we may have source to build ====================== 4774 4775 4776APR_VER_REGEXES="1\.[4-9]\. 2\." 4777 4778 4779 APR_WANTED_REGEXES="$APR_VER_REGEXES" 4780 4781 { $as_echo "$as_me:${as_lineno-$LINENO}: Apache Portable Runtime (APR) library configuration" >&5 4782$as_echo "$as_me: Apache Portable Runtime (APR) library configuration" >&6;} 4783 4784 4785 apr_found="no" 4786 4787 if test "$target_os" = "os2-emx"; then 4788 # Scripts don't pass test -x on OS/2 4789 TEST_X="test -f" 4790 else 4791 TEST_X="test -x" 4792 fi 4793 4794 acceptable_majors="2 1 0" 4795 4796 apr_temp_acceptable_apr_config="" 4797 for apr_temp_major in $acceptable_majors 4798 do 4799 case $apr_temp_major in 4800 0) 4801 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config" 4802 ;; 4803 *) 4804 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config" 4805 ;; 4806 esac 4807 done 4808 4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5 4810$as_echo_n "checking for APR... " >&6; } 4811 4812# Check whether --with-apr was given. 4813if test "${with_apr+set}" = set; then : 4814 withval=$with_apr; 4815 if test "$withval" = "no" || test "$withval" = "yes"; then 4816 as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5 4817 fi 4818 4819 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config 4820 do 4821 for lookdir in "$withval/bin" "$withval" 4822 do 4823 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then 4824 apr_config="$lookdir/$apr_temp_apr_config_file" 4825 4826 apr_found="yes" 4827 break 2 4828 fi 4829 done 4830 done 4831 4832 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then 4833 apr_config="$withval" 4834 apr_found="yes" 4835 fi 4836 4837 if test "$apr_found" != "yes"; then 4838 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 4839 fi 4840 4841else 4842 4843 if test -n "1" && test "1" = "1"; then 4844 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config 4845 do 4846 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then 4847 apr_config="$apr_temp_apr_config_file" 4848 4849 apr_found="yes" 4850 break 4851 else 4852 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do 4853 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then 4854 apr_config="$lookdir/bin/$apr_temp_apr_config_file" 4855 4856 apr_found="yes" 4857 break 2 4858 fi 4859 done 4860 fi 4861 done 4862 fi 4863 if test "$apr_found" = "no" && test -d """"; then 4864 apr_temp_abs_srcdir="`cd \"""\" && pwd`" 4865 apr_found="reconfig" 4866 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"""/include/apr_version.h\"`" 4867 case $apr_bundled_major in 4868 "") 4869 as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5 4870 ;; 4871 0) 4872 apr_temp_apr_config_file="apr-config" 4873 ;; 4874 *) 4875 apr_temp_apr_config_file="apr-$apr_bundled_major-config" 4876 ;; 4877 esac 4878 if test -n """"; then 4879 apr_config="""/$apr_temp_apr_config_file" 4880 else 4881 apr_config="""/$apr_temp_apr_config_file" 4882 fi 4883 fi 4884 4885fi 4886 4887 4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5 4889$as_echo "$apr_found" >&6; } 4890 4891 4892 if test $apr_found = "no"; then 4893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APR not found" >&5 4894$as_echo "$as_me: WARNING: APR not found" >&2;} 4895 4896 echo "The Apache Portable Runtime (APR) library cannot be found." 4897 echo "Please install APR on this system and configure Subversion" 4898 echo "with the appropriate --with-apr option." 4899 echo "" 4900 echo "You probably need to do something similar with the Apache" 4901 echo "Portable Runtime Utility (APRUTIL) library and then configure" 4902 echo "Subversion with both the --with-apr and --with-apr-util options." 4903 echo "" 4904 as_fn_error $? "no suitable APR found" "$LINENO" 5 4905 4906 fi 4907 4908 if test $apr_found = "reconfig"; then 4909 as_fn_error $? "Unexpected APR reconfig" "$LINENO" 5 4910 fi 4911 4912 4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking APR version" >&5 4914$as_echo_n "checking APR version... " >&6; } 4915 apr_version="`$apr_config --version`" 4916 if test $? -ne 0; then 4917 as_fn_error $? "apr-config --version failed" "$LINENO" 5 4918 fi 4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_version" >&5 4920$as_echo "$apr_version" >&6; } 4921 4922 APR_WANTED_REGEX_MATCH=0 4923 for apr_wanted_regex in $APR_WANTED_REGEXES; do 4924 if test `expr $apr_version : $apr_wanted_regex` -ne 0; then 4925 APR_WANTED_REGEX_MATCH=1 4926 break 4927 fi 4928 done 4929 4930 if test $APR_WANTED_REGEX_MATCH -eq 0; then 4931 echo "wanted regexes are $APR_WANTED_REGEXES" 4932 as_fn_error $? "invalid apr version found" "$LINENO" 5 4933 fi 4934 4935 4936 CPPFLAGS="$CPPFLAGS `$apr_config --cppflags`" 4937 if test $? -ne 0; then 4938 as_fn_error $? "apr-config --cppflags failed" "$LINENO" 5 4939 fi 4940 4941 CFLAGS="$CFLAGS `$apr_config --cflags`" 4942 if test $? -ne 0; then 4943 as_fn_error $? "apr-config --cflags failed" "$LINENO" 5 4944 fi 4945 4946 apr_ldflags="`$apr_config --ldflags`" 4947 if test $? -ne 0; then 4948 as_fn_error $? "apr-config --ldflags failed" "$LINENO" 5 4949 fi 4950 LDFLAGS="$LDFLAGS ` 4951 input_flags="$apr_ldflags" 4952 output_flags="" 4953 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 4954 for flag in $input_flags; do 4955 filter="no" 4956 for dir in $filtered_dirs; do 4957 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 4958 filter="yes" 4959 break 4960 fi 4961 done 4962 if test "$filter" = "no"; then 4963 output_flags="$output_flags $flag" 4964 fi 4965 done 4966 if test -n "$output_flags"; then 4967 printf "%s" "${output_flags# }" 4968 fi 4969`" 4970 4971 SVN_APR_INCLUDES="`$apr_config --includes`" 4972 if test $? -ne 0; then 4973 as_fn_error $? "apr-config --includes failed" "$LINENO" 5 4974 fi 4975 4976 if test "$enable_all_static" = "yes"; then 4977 SVN_APR_LIBS="`$apr_config --link-ld --libs`" 4978 if test $? -ne 0; then 4979 as_fn_error $? "apr-config --link-ld --libs failed" "$LINENO" 5 4980 fi 4981 else 4982 SVN_APR_LIBS="`$apr_config --link-ld`" 4983 if test $? -ne 0; then 4984 as_fn_error $? "apr-config --link-ld failed" "$LINENO" 5 4985 fi 4986 fi 4987 SVN_APR_LIBS="` 4988 input_flags="$SVN_APR_LIBS" 4989 output_flags="" 4990 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 4991 for flag in $input_flags; do 4992 filter="no" 4993 for dir in $filtered_dirs; do 4994 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 4995 filter="yes" 4996 break 4997 fi 4998 done 4999 if test "$filter" = "no"; then 5000 output_flags="$output_flags $flag" 5001 fi 5002 done 5003 if test -n "$output_flags"; then 5004 printf "%s" "${output_flags# }" 5005 fi 5006`" 5007 5008 SVN_APR_SHLIB_PATH_VAR="`$apr_config --shlib-path-var`" 5009 if test $? -ne 0; then 5010 as_fn_error $? "apr-config --shlib-path-var failed" "$LINENO" 5 5011 fi 5012 5013 SVN_APR_CONFIG="$apr_config" 5014 5015 5016 5017 5018 5019 5020if test `expr $apr_version : 2` -ne 0; then 5021 svn_lib_ver=2 5022 apu_config=$apr_config 5023 5024 SVN_APRUTIL_CONFIG="$apu_config" 5025 5026 5027 SVN_APR_MAJOR_VERSION=2 5028else 5029 svn_lib_ver=0 5030 APU_VER_REGEXES="1\.[3-9]\." 5031 5032 APRUTIL_WANTED_REGEXES="$APU_VER_REGEXES" 5033 5034 { $as_echo "$as_me:${as_lineno-$LINENO}: Apache Portable Runtime Utility (APRUTIL) library configuration" >&5 5035$as_echo "$as_me: Apache Portable Runtime Utility (APRUTIL) library configuration" >&6;} 5036 5037 5038 apu_found="no" 5039 5040 if test "$target_os" = "os2-emx"; then 5041 # Scripts don't pass test -x on OS/2 5042 TEST_X="test -f" 5043 else 5044 TEST_X="test -x" 5045 fi 5046 5047 acceptable_majors="1 0" 5048 5049 apu_temp_acceptable_apu_config="" 5050 for apu_temp_major in $acceptable_majors 5051 do 5052 case $apu_temp_major in 5053 0) 5054 apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-config" 5055 ;; 5056 *) 5057 apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-$apu_temp_major-config" 5058 ;; 5059 esac 5060 done 5061 5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR-util" >&5 5063$as_echo_n "checking for APR-util... " >&6; } 5064 5065# Check whether --with-apr-util was given. 5066if test "${with_apr_util+set}" = set; then : 5067 withval=$with_apr_util; 5068 if test "$withval" = "no" || test "$withval" = "yes"; then 5069 as_fn_error $? "--with-apr-util requires a directory or file to be provided" "$LINENO" 5 5070 fi 5071 5072 for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config 5073 do 5074 for lookdir in "$withval/bin" "$withval" 5075 do 5076 if $TEST_X "$lookdir/$apu_temp_apu_config_file"; then 5077 apu_config="$lookdir/$apu_temp_apu_config_file" 5078 5079 apu_found="yes" 5080 break 2 5081 fi 5082 done 5083 done 5084 5085 if test "$apu_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then 5086 apu_config="$withval" 5087 apu_found="yes" 5088 fi 5089 5090 if test "$apu_found" != "yes"; then 5091 as_fn_error $? "the --with-apr-util parameter is incorrect. It must specify an install prefix, a build directory, or an apu-config file." "$LINENO" 5 5092 fi 5093 5094else 5095 5096 if test -n "1" && test "1" = "1"; then 5097 for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config 5098 do 5099 if $apu_temp_apu_config_file --help > /dev/null 2>&1 ; then 5100 apu_config="$apu_temp_apu_config_file" 5101 5102 apu_found="yes" 5103 break 5104 else 5105 for lookdir in /usr /usr/local /usr/local/apr /opt/apr; do 5106 if $TEST_X "$lookdir/bin/$apu_temp_apu_config_file"; then 5107 apu_config="$lookdir/bin/$apu_temp_apu_config_file" 5108 5109 apu_found="yes" 5110 break 2 5111 fi 5112 done 5113 fi 5114 done 5115 fi 5116 if test "$apu_found" = "no" && test -d """"; then 5117 apu_temp_abs_srcdir="`cd \"""\" && pwd`" 5118 apu_found="reconfig" 5119 apu_bundled_major="`sed -n '/#define.*APU_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"""/include/apu_version.h\"`" 5120 case $apu_bundled_major in 5121 "") 5122 as_fn_error $? "failed to find major version of bundled APU" "$LINENO" 5 5123 ;; 5124 0) 5125 apu_temp_apu_config_file="apu-config" 5126 ;; 5127 *) 5128 apu_temp_apu_config_file="apu-$apu_bundled_major-config" 5129 ;; 5130 esac 5131 if test -n """"; then 5132 apu_config="""/$apu_temp_apu_config_file" 5133 else 5134 apu_config="""/$apu_temp_apu_config_file" 5135 fi 5136 fi 5137 5138fi 5139 5140 5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_found" >&5 5142$as_echo "$apu_found" >&6; } 5143 5144 5145 if test $apu_found = "no"; then 5146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APRUTIL not found" >&5 5147$as_echo "$as_me: WARNING: APRUTIL not found" >&2;} 5148 5149 echo "The Apache Portable Runtime Utility (APRUTIL) library cannot be found." 5150 echo "Install APRUTIL on this system and configure Subversion with the" 5151 echo " appropriate --with-apr-util option." 5152 echo "" 5153 as_fn_error $? "no suitable APRUTIL found" "$LINENO" 5 5154 5155 fi 5156 5157 if test $apu_found = "reconfig"; then 5158 as_fn_error $? "Unexpected APRUTIL reconfig" "$LINENO" 5 5159 fi 5160 5161 5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking APRUTIL version" >&5 5163$as_echo_n "checking APRUTIL version... " >&6; } 5164 apu_version="`$apu_config --version`" 5165 if test $? -ne 0; then 5166 # This is a hack as suggested by Ben Collins-Sussman. It can be 5167 # removed after apache 2.0.44 has been released. (The apu-config 5168 # shipped in 2.0.43 contains a correct version number, but 5169 # stupidly doesn't understand the --version switch.) 5170 apu_version=`grep "APRUTIL_DOTTED_VERSION=" $(which $apu_config) | tr -d "APRUTIL_DOTTED_VERSION="| tr -d '"'` 5171 #AC_MSG_ERROR([ 5172 # apu-config --version failed. 5173 # Your apu-config doesn't support the --version switch, please upgrade 5174 # to APR-UTIL more recent than 2002-Nov-05.]) 5175 fi 5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_version" >&5 5177$as_echo "$apu_version" >&6; } 5178 5179 APU_WANTED_REGEX_MATCH=0 5180 for apu_wanted_regex in $APRUTIL_WANTED_REGEXES; do 5181 if test `expr $apu_version : $apu_wanted_regex` -ne 0; then 5182 APU_WANTED_REGEX_MATCH=1 5183 break 5184 fi 5185 done 5186 5187 if test $APU_WANTED_REGEX_MATCH -eq 0; then 5188 echo "wanted regexes are $APRUTIL_WANTED_REGEXES" 5189 as_fn_error $? "invalid APRUTIL version found" "$LINENO" 5 5190 fi 5191 5192 5193 apu_ldflags="`$apu_config --ldflags`" 5194 if test $? -ne 0; then 5195 as_fn_error $? "apu-config --ldflags failed" "$LINENO" 5 5196 fi 5197 LDFLAGS="$LDFLAGS ` 5198 input_flags="$apu_ldflags" 5199 output_flags="" 5200 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 5201 for flag in $input_flags; do 5202 filter="no" 5203 for dir in $filtered_dirs; do 5204 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 5205 filter="yes" 5206 break 5207 fi 5208 done 5209 if test "$filter" = "no"; then 5210 output_flags="$output_flags $flag" 5211 fi 5212 done 5213 if test -n "$output_flags"; then 5214 printf "%s" "${output_flags# }" 5215 fi 5216`" 5217 5218 SVN_APRUTIL_INCLUDES="`$apu_config --includes`" 5219 if test $? -ne 0; then 5220 as_fn_error $? "apu-config --includes failed" "$LINENO" 5 5221 fi 5222 5223 if test "$enable_all_static" = "yes"; then 5224 SVN_APRUTIL_LIBS="`$apu_config --link-ld --libs`" 5225 if test $? -ne 0; then 5226 as_fn_error $? "apu-config --link-ld --libs failed" "$LINENO" 5 5227 fi 5228 else 5229 SVN_APRUTIL_LIBS="`$apu_config --link-ld`" 5230 if test $? -ne 0; then 5231 as_fn_error $? "apu-config --link-ld failed" "$LINENO" 5 5232 fi 5233 fi 5234 SVN_APRUTIL_LIBS="` 5235 input_flags="$SVN_APRUTIL_LIBS" 5236 output_flags="" 5237 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 5238 for flag in $input_flags; do 5239 filter="no" 5240 for dir in $filtered_dirs; do 5241 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 5242 filter="yes" 5243 break 5244 fi 5245 done 5246 if test "$filter" = "no"; then 5247 output_flags="$output_flags $flag" 5248 fi 5249 done 5250 if test -n "$output_flags"; then 5251 printf "%s" "${output_flags# }" 5252 fi 5253`" 5254 5255 5256 SVN_APRUTIL_CONFIG="$apu_config" 5257 5258 5259 5260 SVN_HAVE_OLD_EXPAT="`$apu_config --old-expat`" 5261 if test "$SVN_HAVE_OLD_EXPAT" = "yes"; then 5262 5263$as_echo "#define SVN_HAVE_OLD_EXPAT 1" >>confdefs.h 5264 5265 fi 5266 5267 SVN_APR_MAJOR_VERSION=1 5268fi 5269 5270SVN_LT_SOVERSION="-version-info $svn_lib_ver" 5271 5272 5273cat >>confdefs.h <<_ACEOF 5274#define SVN_SOVERSION $svn_lib_ver 5275_ACEOF 5276 5277 5278# Extract the first word of "pkg-config", so it can be a program name with args. 5279set dummy pkg-config; ac_word=$2 5280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5281$as_echo_n "checking for $ac_word... " >&6; } 5282if ${ac_cv_path_PKG_CONFIG+:} false; then : 5283 $as_echo_n "(cached) " >&6 5284else 5285 case $PKG_CONFIG in 5286 [\\/]* | ?:[\\/]*) 5287 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5288 ;; 5289 *) 5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5291for as_dir in $PATH 5292do 5293 IFS=$as_save_IFS 5294 test -z "$as_dir" && as_dir=. 5295 for ac_exec_ext in '' $ac_executable_extensions; do 5296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5297 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5299 break 2 5300 fi 5301done 5302 done 5303IFS=$as_save_IFS 5304 5305 ;; 5306esac 5307fi 5308PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5309if test -n "$PKG_CONFIG"; then 5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 5311$as_echo "$PKG_CONFIG" >&6; } 5312else 5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5314$as_echo "no" >&6; } 5315fi 5316 5317 5318 5319 5320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5321$as_echo_n "checking for ANSI C header files... " >&6; } 5322if ${ac_cv_header_stdc+:} false; then : 5323 $as_echo_n "(cached) " >&6 5324else 5325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5326/* end confdefs.h. */ 5327#include <stdlib.h> 5328#include <stdarg.h> 5329#include <string.h> 5330#include <float.h> 5331 5332int 5333main () 5334{ 5335 5336 ; 5337 return 0; 5338} 5339_ACEOF 5340if ac_fn_c_try_compile "$LINENO"; then : 5341 ac_cv_header_stdc=yes 5342else 5343 ac_cv_header_stdc=no 5344fi 5345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5346 5347if test $ac_cv_header_stdc = yes; then 5348 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5350/* end confdefs.h. */ 5351#include <string.h> 5352 5353_ACEOF 5354if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5355 $EGREP "memchr" >/dev/null 2>&1; then : 5356 5357else 5358 ac_cv_header_stdc=no 5359fi 5360rm -f conftest* 5361 5362fi 5363 5364if test $ac_cv_header_stdc = yes; then 5365 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5367/* end confdefs.h. */ 5368#include <stdlib.h> 5369 5370_ACEOF 5371if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5372 $EGREP "free" >/dev/null 2>&1; then : 5373 5374else 5375 ac_cv_header_stdc=no 5376fi 5377rm -f conftest* 5378 5379fi 5380 5381if test $ac_cv_header_stdc = yes; then 5382 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5383 if test "$cross_compiling" = yes; then : 5384 : 5385else 5386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5387/* end confdefs.h. */ 5388#include <ctype.h> 5389#include <stdlib.h> 5390#if ((' ' & 0x0FF) == 0x020) 5391# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5392# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5393#else 5394# define ISLOWER(c) \ 5395 (('a' <= (c) && (c) <= 'i') \ 5396 || ('j' <= (c) && (c) <= 'r') \ 5397 || ('s' <= (c) && (c) <= 'z')) 5398# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5399#endif 5400 5401#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5402int 5403main () 5404{ 5405 int i; 5406 for (i = 0; i < 256; i++) 5407 if (XOR (islower (i), ISLOWER (i)) 5408 || toupper (i) != TOUPPER (i)) 5409 return 2; 5410 return 0; 5411} 5412_ACEOF 5413if ac_fn_c_try_run "$LINENO"; then : 5414 5415else 5416 ac_cv_header_stdc=no 5417fi 5418rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5419 conftest.$ac_objext conftest.beam conftest.$ac_ext 5420fi 5421 5422fi 5423fi 5424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5425$as_echo "$ac_cv_header_stdc" >&6; } 5426if test $ac_cv_header_stdc = yes; then 5427 5428$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5429 5430fi 5431 5432# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5433for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5434 inttypes.h stdint.h unistd.h 5435do : 5436 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5437ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5438" 5439if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5440 cat >>confdefs.h <<_ACEOF 5441#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5442_ACEOF 5443 5444fi 5445 5446done 5447 5448 5449 5450 serf_found=no 5451 serf_required=no 5452 serf_skip=no 5453 5454 serf_check_major="1" 5455 serf_check_minor="3" 5456 serf_check_patch="4" 5457 serf_check_version="1.3.4" 5458 5459 5460# Check whether --with-serf was given. 5461if test "${with_serf+set}" = set; then : 5462 withval=$with_serf; 5463 if test "$withval" = "yes" ; then 5464 serf_required=yes 5465 elif test "$withval" = "no" ; then 5466 serf_skip=yes 5467 else 5468 serf_required=yes 5469 serf_prefix="$withval" 5470 fi 5471 5472fi 5473 5474 5475 if test "$serf_skip" = "no" ; then 5476 5477 { $as_echo "$as_me:${as_lineno-$LINENO}: serf library configuration via pkg-config" >&5 5478$as_echo "$as_me: serf library configuration via pkg-config" >&6;} 5479 if test -n "$PKG_CONFIG"; then 5480 for serf_major in serf-2 serf-1; do 5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $serf_major library" >&5 5482$as_echo_n "checking for $serf_major library... " >&6; } 5483 if test -n "$serf_prefix" ; then 5484 if test -e "$serf_prefix/$serf_major.pc" ; then 5485 serf_pc_arg="$serf_prefix/$serf_major.pc" 5486 elif test -e "$serf_prefix/lib/pkgconfig/$serf_major.pc" ; then 5487 serf_pc_arg="$serf_prefix/lib/pkgconfig/$serf_major.pc" 5488 else 5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5490$as_echo "no" >&6; } 5491 continue 5492 fi 5493 else 5494 serf_pc_arg="$serf_major" 5495 fi 5496 if $PKG_CONFIG $serf_pc_arg --exists; then 5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5498$as_echo "yes" >&6; } 5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking serf library version" >&5 5500$as_echo_n "checking serf library version... " >&6; } 5501 SERF_VERSION=`$PKG_CONFIG $serf_pc_arg --modversion` 5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SERF_VERSION" >&5 5503$as_echo "$SERF_VERSION" >&6; } 5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking serf version is suitable" >&5 5505$as_echo_n "checking serf version is suitable... " >&6; } 5506 if $PKG_CONFIG $serf_pc_arg --atleast-version=$serf_check_version; then 5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5508$as_echo "yes" >&6; } 5509 serf_found=yes 5510 SVN_SERF_INCLUDES=`$PKG_CONFIG $serf_pc_arg --cflags-only-I` 5511 SVN_SERF_LIBS=`$PKG_CONFIG $serf_pc_arg --libs-only-l` 5512 LDFLAGS="$LDFLAGS `$PKG_CONFIG $serf_pc_arg --libs | $SED -e 's/-l[^ ]*//g'`" 5513 break 5514 else 5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5516$as_echo "no" >&6; } 5517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Serf version too old: need $serf_check_version" >&5 5518$as_echo "$as_me: WARNING: Serf version too old: need $serf_check_version" >&2;} 5519 fi 5520 else 5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5522$as_echo "no" >&6; } 5523 fi 5524 done 5525 fi 5526 5527 if test -n "$serf_prefix" && test "$serf_found" = "no" ; then 5528 5529 { $as_echo "$as_me:${as_lineno-$LINENO}: serf library configuration via prefix" >&5 5530$as_echo "$as_me: serf library configuration via prefix" >&6;} 5531 serf_required=yes 5532 for serf_major in serf-2 serf-1; do 5533 if ! test -d $serf_prefix/include/$serf_major; then continue; fi 5534 save_cppflags="$CPPFLAGS" 5535 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES -I$serf_prefix/include/$serf_major" 5536 for ac_header in serf.h 5537do : 5538 ac_fn_c_check_header_mongrel "$LINENO" "serf.h" "ac_cv_header_serf_h" "$ac_includes_default" 5539if test "x$ac_cv_header_serf_h" = xyes; then : 5540 cat >>confdefs.h <<_ACEOF 5541#define HAVE_SERF_H 1 5542_ACEOF 5543 5544 save_ldflags="$LDFLAGS" 5545 LDFLAGS="$LDFLAGS ` 5546 input_flags="-L$serf_prefix/lib" 5547 output_flags="" 5548 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 5549 for flag in $input_flags; do 5550 filter="no" 5551 for dir in $filtered_dirs; do 5552 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 5553 filter="yes" 5554 break 5555 fi 5556 done 5557 if test "$filter" = "no"; then 5558 output_flags="$output_flags $flag" 5559 fi 5560 done 5561 if test -n "$output_flags"; then 5562 printf "%s" "${output_flags# }" 5563 fi 5564`" 5565 as_ac_Lib=`$as_echo "ac_cv_lib_$serf_major''_serf_context_create" | $as_tr_sh` 5566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for serf_context_create in -l$serf_major" >&5 5567$as_echo_n "checking for serf_context_create in -l$serf_major... " >&6; } 5568if eval \${$as_ac_Lib+:} false; then : 5569 $as_echo_n "(cached) " >&6 5570else 5571 ac_check_lib_save_LIBS=$LIBS 5572LIBS="-l$serf_major $SVN_APRUTIL_LIBS $SVN_APR_LIBS -lz $LIBS" 5573cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5574/* end confdefs.h. */ 5575 5576/* Override any GCC internal prototype to avoid an error. 5577 Use char because int might match the return type of a GCC 5578 builtin and then its argument prototype would still apply. */ 5579#ifdef __cplusplus 5580extern "C" 5581#endif 5582char serf_context_create (); 5583int 5584main () 5585{ 5586return serf_context_create (); 5587 ; 5588 return 0; 5589} 5590_ACEOF 5591if ac_fn_c_try_link "$LINENO"; then : 5592 eval "$as_ac_Lib=yes" 5593else 5594 eval "$as_ac_Lib=no" 5595fi 5596rm -f core conftest.err conftest.$ac_objext \ 5597 conftest$ac_exeext conftest.$ac_ext 5598LIBS=$ac_check_lib_save_LIBS 5599fi 5600eval ac_res=\$$as_ac_Lib 5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5602$as_echo "$ac_res" >&6; } 5603if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 5604 5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5606/* end confdefs.h. */ 5607 5608#include <stdlib.h> 5609#include "serf.h" 5610 5611int 5612main () 5613{ 5614 5615#if ! SERF_VERSION_AT_LEAST($serf_check_major, $serf_check_minor, $serf_check_patch) 5616#error Serf version too old: need $serf_check_version 5617#endif 5618 5619 ; 5620 return 0; 5621} 5622_ACEOF 5623if ac_fn_c_try_compile "$LINENO"; then : 5624 serf_found=yes 5625else 5626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Serf version too old: need $serf_check_version" >&5 5627$as_echo "$as_me: WARNING: Serf version too old: need $serf_check_version" >&2;} 5628 serf_found=no 5629fi 5630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5631fi 5632 5633 LDFLAGS="$save_ldflags" 5634fi 5635 5636done 5637 5638 CPPFLAGS="$save_cppflags" 5639 test $serf_found = yes && break 5640 done 5641 5642 if test $serf_found = "yes"; then 5643 SVN_SERF_INCLUDES="-I$serf_prefix/include/$serf_major" 5644 if test -e "$serf_prefix/lib/lib$serf_major.la"; then 5645 SVN_SERF_LIBS="$serf_prefix/lib/lib$serf_major.la" 5646 else 5647 SVN_SERF_LIBS="-l$serf_major" 5648 LDFLAGS="$LDFLAGS ` 5649 input_flags="-L$serf_prefix/lib" 5650 output_flags="" 5651 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 5652 for flag in $input_flags; do 5653 filter="no" 5654 for dir in $filtered_dirs; do 5655 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 5656 filter="yes" 5657 break 5658 fi 5659 done 5660 if test "$filter" = "no"; then 5661 output_flags="$output_flags $flag" 5662 fi 5663 done 5664 if test -n "$output_flags"; then 5665 printf "%s" "${output_flags# }" 5666 fi 5667`" 5668 fi 5669 fi 5670 5671 fi 5672 5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking was serf enabled" >&5 5674$as_echo_n "checking was serf enabled... " >&6; } 5675 if test "$serf_found" = "yes"; then 5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5677$as_echo "yes" >&6; } 5678 else 5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5680$as_echo "no" >&6; } 5681 5682 echo "" 5683 echo "An appropriate version of serf could not be found, so libsvn_ra_serf" 5684 echo "will not be built. If you want to build libsvn_ra_serf, please" 5685 echo "install serf $serf_check_version or newer." 5686 echo "" 5687 5688 if test "$serf_required" = "yes"; then 5689 as_fn_error $? "Serf was explicitly enabled but an appropriate version was not found." "$LINENO" 5 5690 fi 5691 fi 5692 fi 5693 5694 svn_lib_serf=$serf_found 5695 5696 5697 5698 5699 5700if test "$svn_lib_serf" = "yes"; then 5701 5702$as_echo "#define SVN_HAVE_SERF 1" >>confdefs.h 5703 5704fi 5705 5706 5707 apr_memcache_found=no 5708 5709 5710# Check whether --with-apr_memcache was given. 5711if test "${with_apr_memcache+set}" = set; then : 5712 withval=$with_apr_memcache; 5713 if test "$withval" = "yes" ; then 5714 as_fn_error $? "--with-apr_memcache requires an argument." "$LINENO" 5 5715 else 5716 { $as_echo "$as_me:${as_lineno-$LINENO}: looking for separate apr_memcache package" >&5 5717$as_echo "$as_me: looking for separate apr_memcache package" >&6;} 5718 apr_memcache_prefix=$withval 5719 save_cppflags="$CPPFLAGS" 5720 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES -I$apr_memcache_prefix/include/apr_memcache-0" 5721 ac_fn_c_check_header_mongrel "$LINENO" "apr_memcache.h" "ac_cv_header_apr_memcache_h" "$ac_includes_default" 5722if test "x$ac_cv_header_apr_memcache_h" = xyes; then : 5723 5724 save_ldflags="$LDFLAGS" 5725 LDFLAGS="$LDFLAGS -L$apr_memcache_prefix/lib" 5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_memcache_create in -lapr_memcache" >&5 5727$as_echo_n "checking for apr_memcache_create in -lapr_memcache... " >&6; } 5728if ${ac_cv_lib_apr_memcache_apr_memcache_create+:} false; then : 5729 $as_echo_n "(cached) " >&6 5730else 5731 ac_check_lib_save_LIBS=$LIBS 5732LIBS="-lapr_memcache $LIBS" 5733cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5734/* end confdefs.h. */ 5735 5736/* Override any GCC internal prototype to avoid an error. 5737 Use char because int might match the return type of a GCC 5738 builtin and then its argument prototype would still apply. */ 5739#ifdef __cplusplus 5740extern "C" 5741#endif 5742char apr_memcache_create (); 5743int 5744main () 5745{ 5746return apr_memcache_create (); 5747 ; 5748 return 0; 5749} 5750_ACEOF 5751if ac_fn_c_try_link "$LINENO"; then : 5752 ac_cv_lib_apr_memcache_apr_memcache_create=yes 5753else 5754 ac_cv_lib_apr_memcache_apr_memcache_create=no 5755fi 5756rm -f core conftest.err conftest.$ac_objext \ 5757 conftest$ac_exeext conftest.$ac_ext 5758LIBS=$ac_check_lib_save_LIBS 5759fi 5760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_apr_memcache_apr_memcache_create" >&5 5761$as_echo "$ac_cv_lib_apr_memcache_apr_memcache_create" >&6; } 5762if test "x$ac_cv_lib_apr_memcache_apr_memcache_create" = xyes; then : 5763 apr_memcache_found="standalone" 5764fi 5765 5766 LDFLAGS="$save_ldflags" 5767fi 5768 5769 5770 CPPFLAGS="$save_cppflags" 5771 fi 5772 5773else 5774 5775 { $as_echo "$as_me:${as_lineno-$LINENO}: looking for apr_memcache as part of apr-util" >&5 5776$as_echo "$as_me: looking for apr_memcache as part of apr-util" >&6;} 5777 save_cppflags="$CPPFLAGS" 5778 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES" 5779 ac_fn_c_check_header_mongrel "$LINENO" "apr_memcache.h" "ac_cv_header_apr_memcache_h" "$ac_includes_default" 5780if test "x$ac_cv_header_apr_memcache_h" = xyes; then : 5781 5782 save_ldflags="$LDFLAGS" 5783 LDFLAGS="$LDFLAGS $SVN_APRUTIL_LIBS" 5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_memcache_create in -laprutil-1" >&5 5785$as_echo_n "checking for apr_memcache_create in -laprutil-1... " >&6; } 5786if ${ac_cv_lib_aprutil_1_apr_memcache_create+:} false; then : 5787 $as_echo_n "(cached) " >&6 5788else 5789 ac_check_lib_save_LIBS=$LIBS 5790LIBS="-laprutil-1 $LIBS" 5791cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5792/* end confdefs.h. */ 5793 5794/* Override any GCC internal prototype to avoid an error. 5795 Use char because int might match the return type of a GCC 5796 builtin and then its argument prototype would still apply. */ 5797#ifdef __cplusplus 5798extern "C" 5799#endif 5800char apr_memcache_create (); 5801int 5802main () 5803{ 5804return apr_memcache_create (); 5805 ; 5806 return 0; 5807} 5808_ACEOF 5809if ac_fn_c_try_link "$LINENO"; then : 5810 ac_cv_lib_aprutil_1_apr_memcache_create=yes 5811else 5812 ac_cv_lib_aprutil_1_apr_memcache_create=no 5813fi 5814rm -f core conftest.err conftest.$ac_objext \ 5815 conftest$ac_exeext conftest.$ac_ext 5816LIBS=$ac_check_lib_save_LIBS 5817fi 5818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aprutil_1_apr_memcache_create" >&5 5819$as_echo "$ac_cv_lib_aprutil_1_apr_memcache_create" >&6; } 5820if test "x$ac_cv_lib_aprutil_1_apr_memcache_create" = xyes; then : 5821 apr_memcache_found="aprutil" 5822fi 5823 5824 LDFLAGS="$save_ldflags" 5825fi 5826 5827 5828 CPPFLAGS="$save_cppflags" 5829 5830fi 5831 5832 5833 5834 if test $apr_memcache_found = "standalone"; then 5835 SVN_APR_MEMCACHE_INCLUDES="-I$apr_memcache_prefix/include/apr_memcache-0" 5836 SVN_APR_MEMCACHE_LIBS="$apr_memcache_prefix/lib/libapr_memcache.la" 5837 svn_lib_apr_memcache=yes 5838 elif test $apr_memcache_found = "aprutil"; then 5839 SVN_APR_MEMCACHE_INCLUDES="" 5840 SVN_APR_MEMCACHE_LIBS="" 5841 svn_lib_apr_memcache=yes 5842 elif test $apr_memcache_found = "reconfig"; then 5843 svn_lib_apr_memcache=yes 5844 else 5845 svn_lib_apr_memcache=no 5846 fi 5847 5848 5849 5850 5851 5852if test "$svn_lib_apr_memcache" = "yes"; then 5853 5854$as_echo "#define SVN_HAVE_MEMCACHE 1" >>confdefs.h 5855 5856fi 5857 5858# Check whether --enable-apache-whitelist was given. 5859if test "${enable_apache_whitelist+set}" = set; then : 5860 enableval=$enable_apache_whitelist; apache_whitelist_ver=$enableval 5861else 5862 apache_whitelist_ver=no 5863fi 5864 5865HTTPD_WHITELIST="$apache_whitelist_ver" 5866 5867 5868 5869 5870 5871HTTPD_WANTED_MMN="20051115" 5872 5873HTTPD_WHITELIST_VER="$apache_whitelist_ver" 5874 5875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache module support via DSO through APXS" >&5 5876$as_echo_n "checking for Apache module support via DSO through APXS... " >&6; } 5877 5878# Check whether --with-apxs was given. 5879if test "${with_apxs+set}" = set; then : 5880 withval=$with_apxs; 5881 if test "$withval" = "yes"; then 5882 APXS=apxs 5883 else 5884 APXS="$withval" 5885 fi 5886 APXS_EXPLICIT=1 5887 5888fi 5889 5890 5891if test -z "$APXS"; then 5892 for i in /usr/local/apache2/bin /usr/local/apache/bin /usr/bin /usr/sbin ; do 5893 if test -f "$i/apxs2"; then 5894 APXS="$i/apxs2" 5895 break 5896 fi 5897 if test -f "$i/apxs"; then 5898 APXS="$i/apxs" 5899 break 5900 fi 5901 done 5902fi 5903 5904if test -n "$APXS" && test "$APXS" != "no"; then 5905 APXS_INCLUDE="`$APXS -q INCLUDEDIR`" 5906 if test -r $APXS_INCLUDE/mod_dav.h; then 5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at $APXS" >&5 5908$as_echo "found at $APXS" >&6; } 5909 5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking httpd version" >&5 5911$as_echo_n "checking httpd version... " >&6; } 5912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5913/* end confdefs.h. */ 5914 5915#include "$APXS_INCLUDE/ap_mmn.h" 5916#if AP_MODULE_MAGIC_AT_LEAST($HTTPD_WANTED_MMN,0) 5917VERSION_OKAY 5918#endif 5919_ACEOF 5920if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5921 $EGREP "VERSION_OKAY" >/dev/null 2>&1; then : 5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: recent enough" >&5 5923$as_echo "recent enough" >&6; } 5924else 5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: apache too old: mmn must be at least $HTTPD_WANTED_MMN" >&5 5926$as_echo "apache too old: mmn must be at least $HTTPD_WANTED_MMN" >&6; } 5927 if test "$APXS_EXPLICIT" != ""; then 5928 as_fn_error $? "Apache APXS build explicitly requested, but apache version is too old" "$LINENO" 5 5929 fi 5930 APXS="" 5931 5932fi 5933rm -f conftest* 5934 5935 5936 elif test "$APXS_EXPLICIT" != ""; then 5937 as_fn_error $? "no - APXS refers to an old version of Apache 5938 Unable to locate $APXS_INCLUDE/mod_dav.h" "$LINENO" 5 5939 else 5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - Unable to locate $APXS_INCLUDE/mod_dav.h" >&5 5941$as_echo "no - Unable to locate $APXS_INCLUDE/mod_dav.h" >&6; } 5942 APXS="" 5943 fi 5944else 5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5946$as_echo "no" >&6; } 5947fi 5948 5949# check for some busted versions of mod_dav 5950# in particular 2.2.25, 2.4.5, and 2.4.6 had the following bugs which are 5951# troublesome for Subversion: 5952# PR 55304: https://issues.apache.org/bugzilla/show_bug.cgi?id=55304 5953# PR 55306: https://issues.apache.org/bugzilla/show_bug.cgi?id=55306 5954# PR 55397: https://issues.apache.org/bugzilla/show_bug.cgi?id=55397 5955if test -n "$APXS" && test "$APXS" != "no"; then 5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mod_dav version" >&5 5957$as_echo_n "checking mod_dav version... " >&6; } 5958 HTTPD_MAJOR=`$SED -ne '/^#define AP_SERVER_MAJORVERSION_NUMBER/p' "$APXS_INCLUDE/ap_release.h" | $SED -e 's/^.*NUMBER *//'` 5959 HTTPD_MINOR=`$SED -ne '/^#define AP_SERVER_MINORVERSION_NUMBER/p' "$APXS_INCLUDE/ap_release.h" | $SED -e 's/^.*NUMBER *//'` 5960 HTTPD_PATCH=`$SED -ne '/^#define AP_SERVER_PATCHLEVEL_NUMBER/p' "$APXS_INCLUDE/ap_release.h" | $SED -e 's/^.*NUMBER *//'` 5961 HTTPD_VERSION="${HTTPD_MAJOR}.${HTTPD_MINOR}.${HTTPD_PATCH}" 5962 case "$HTTPD_VERSION" in 5963 $HTTPD_WHITELIST_VER) 5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: acceptable (whitelist)" >&5 5965$as_echo "acceptable (whitelist)" >&6; } 5966 ;; 5967 2.2.25 | 2.4.[5-6]) 5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken" >&5 5969$as_echo "broken" >&6; } 5970 as_fn_error $? "Apache httpd version $HTTPD_VERSION includes a broken mod_dav; use a newer version of httpd" "$LINENO" 5 5971 ;; 5972 2.[0-9]*.[0-9]*) 5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: acceptable" >&5 5974$as_echo "acceptable" >&6; } 5975 ;; 5976 *) 5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unrecognised" >&5 5978$as_echo "unrecognised" >&6; } 5979 as_fn_error $? "Apache httpd version $HTTPD_VERSION not recognised" "$LINENO" 5 5980 ;; 5981 esac 5982fi 5983 5984if test -n "$APXS" && test "$APXS" != "no"; then 5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Apache version is compatible with APR version" >&5 5986$as_echo_n "checking whether Apache version is compatible with APR version... " >&6; } 5987 apr_major_version="${apr_version%%.*}" 5988 case "$apr_major_version" in 5989 0) 5990 apache_minor_version_wanted_regex="0" 5991 ;; 5992 1) 5993 apache_minor_version_wanted_regex="[1-5]" 5994 ;; 5995 2) 5996 apache_minor_version_wanted_regex="[3-5]" 5997 ;; 5998 *) 5999 as_fn_error $? "unknown APR version" "$LINENO" 5 6000 ;; 6001 esac 6002 case $HTTPD_MINOR in 6003 $apache_minor_version_wanted_regex) 6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6005$as_echo "yes" >&6; } 6006 ;; 6007 *) 6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6009$as_echo "no" >&6; } 6010 as_fn_error $? "Apache version $HTTPD_VERSION incompatible with APR version $apr_version" "$LINENO" 5 6011 ;; 6012 esac 6013fi 6014 6015 6016# Check whether --with-apache-libexecdir was given. 6017if test "${with_apache_libexecdir+set}" = set; then : 6018 withval=$with_apache_libexecdir; APACHE_LIBEXECDIR="$withval" 6019else 6020 APACHE_LIBEXECDIR='no' 6021fi 6022 6023 6024INSTALL_APACHE_MODS=false 6025if test -n "$APXS" && test "$APXS" != "no"; then 6026 APXS_CC="`$APXS -q CC`" 6027 APACHE_INCLUDES="$APACHE_INCLUDES -I$APXS_INCLUDE" 6028 6029 if test "$APACHE_LIBEXECDIR" = 'no'; then 6030 APACHE_LIBEXECDIR="$libexecdir" 6031 elif test "$APACHE_LIBEXECDIR" = 'yes'; then 6032 APACHE_LIBEXECDIR="`$APXS -q libexecdir`" 6033 fi 6034 6035 for ac_header in unistd.h 6036do : 6037 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 6038if test "x$ac_cv_header_unistd_h" = xyes; then : 6039 cat >>confdefs.h <<_ACEOF 6040#define HAVE_UNISTD_H 1 6041_ACEOF 6042 for ac_func in getpid 6043do : 6044 ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid" 6045if test "x$ac_cv_func_getpid" = xyes; then : 6046 cat >>confdefs.h <<_ACEOF 6047#define HAVE_GETPID 1 6048_ACEOF 6049 6050fi 6051done 6052 6053fi 6054 6055done 6056 6057 6058 MMN_MAJOR=`$SED -ne '/^#define MODULE_MAGIC_NUMBER_MAJOR/p' "$APXS_INCLUDE/ap_mmn.h" | $SED -e 's/^.*MAJOR *//'` 6059 MMN_MINOR=`$SED -ne '/^#define MODULE_MAGIC_NUMBER_MINOR/p' "$APXS_INCLUDE/ap_mmn.h" | $SED -e 's/^.*MINOR *//' | $SED -e 's/ .*//'` 6060 if test "$MMN_MAJOR" = "20120211" && test "$MMN_MINOR" -lt "47" ; then 6061 # This is httpd 2.4 and it doesn't appear to have the required 6062 # API but the installation may have been patched. 6063 # Check whether --enable-broken-httpd-auth was given. 6064if test "${enable_broken_httpd_auth+set}" = set; then : 6065 enableval=$enable_broken_httpd_auth; broken_httpd_auth=$enableval 6066else 6067 broken_httpd_auth=no 6068fi 6069 6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ap_some_authn_required" >&5 6071$as_echo_n "checking for ap_some_authn_required... " >&6; } 6072 old_CPPFLAGS="$CPPFLAGS" 6073 CPPFLAGS="$CPPFLAGS $APACHE_INCLUDES $SVN_APR_INCLUDES" 6074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6075/* end confdefs.h. */ 6076#include "http_request.h" 6077_ACEOF 6078if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6079 $EGREP "int.*\sap_some_authn_required\s*\(" >/dev/null 2>&1; then : 6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6081$as_echo "yes" >&6; } 6082 working_auth=yes 6083else 6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6085$as_echo "no" >&6; } 6086fi 6087rm -f conftest* 6088 6089 CPPFLAGS="$old_CPPFLAGS" 6090 if test "$working_auth" = "yes" ; then 6091 6092$as_echo "#define SVN_USE_FORCE_AUTHN 1" >>confdefs.h 6093 6094 elif test "$enable_broken_httpd_auth" = "yes"; then 6095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ==============================================" >&5 6096$as_echo "$as_me: WARNING: ==============================================" >&2;} 6097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache httpd $HTTPD_VERSION MMN $MMN_MAJOR.$MMN_MINOR" >&5 6098$as_echo "$as_me: WARNING: Apache httpd $HTTPD_VERSION MMN $MMN_MAJOR.$MMN_MINOR" >&2;} 6099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion will be vulnerable to CVE-2015-3184" >&5 6100$as_echo "$as_me: WARNING: Subversion will be vulnerable to CVE-2015-3184" >&2;} 6101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ==============================================" >&5 6102$as_echo "$as_me: WARNING: ==============================================" >&2;} 6103 6104$as_echo "#define SVN_ALLOW_BROKEN_HTTPD_AUTH 1" >>confdefs.h 6105 6106 else 6107 as_fn_error $? "Apache httpd $HTTPD_VERSION MMN $MMN_MAJOR.$MMN_MINOR has broken auth (CVE-2015-3184)" "$LINENO" 5 6108 fi 6109 fi 6110 6111 BUILD_APACHE_RULE=apache-mod 6112 INSTALL_APACHE_RULE=install-mods-shared 6113 INSTALL_APACHE_MODS=true 6114 case $host in 6115 *-*-cygwin*) 6116 APACHE_LDFLAGS="-shrext .so" 6117 ;; 6118 esac 6119elif test x"$APXS" != x"no"; then 6120 echo "==================================================================" 6121 echo "WARNING: skipping the build of mod_dav_svn" 6122 echo " try using --with-apxs" 6123 echo "==================================================================" 6124fi 6125 6126 6127 6128 6129 6130 6131 6132 6133# there aren't any flags that interest us ... 6134#if test -n "$APXS" && test "$APXS" != "no"; then 6135# CFLAGS="$CFLAGS `$APXS -q CFLAGS CFLAGS_SHLIB`" 6136#fi 6137 6138if test -n "$APXS_CC" && test "$APXS_CC" != "$CC" ; then 6139 echo "==================================================================" 6140 echo "WARNING: You have chosen to compile Subversion with a different" 6141 echo " compiler than the one used to compile Apache." 6142 echo "" 6143 echo " Current compiler: $CC" 6144 echo " Apache's compiler: $APXS_CC" 6145 echo "" 6146 echo "This could cause some problems." 6147 echo "==================================================================" 6148fi 6149 6150 6151 6152SQLITE_MINIMUM_VER="3.8.2" 6153SQLITE_RECOMMENDED_VER="3.8.11.1" 6154SQLITE_RECOMMENDED_VER_REL_YEAR="2015" 6155SQLITE_URL="https://www.sqlite.org/$SQLITE_RECOMMENDED_VER_REL_YEAR/sqlite-amalgamation-$(printf %d%02d%02d%02d $(echo ${SQLITE_RECOMMENDED_VER} | sed -e 's/\./ /g')).zip" 6156 6157 6158 SQLITE_MINIMUM_VER="${SQLITE_MINIMUM_VER}" 6159 SQLITE_RECOMMENDED_VER="${SQLITE_RECOMMENDED_VER}" 6160 SQLITE_URL="${SQLITE_URL}" 6161 SQLITE_PKGNAME="sqlite3" 6162 6163 6164 6165 version_string="$SQLITE_MINIMUM_VER" 6166 6167 major=`expr $version_string : '\([0-9]*\)'` 6168 minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'` 6169 micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'` 6170 if test -z "$micro"; then 6171 micro=0 6172 fi 6173 sqlite_min_ver_num=`expr $major \* 1000000 \ 6174 \+ $minor \* 1000 \ 6175 \+ $micro` 6176 6177 6178 6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library" >&5 6180$as_echo "$as_me: checking sqlite library" >&6;} 6181 6182 6183# Check whether --with-sqlite was given. 6184if test "${with_sqlite+set}" = set; then : 6185 withval=$with_sqlite; 6186 if test "$withval" = "yes" ; then 6187 as_fn_error $? "--with-sqlite requires an argument." "$LINENO" 5 6188 else 6189 sqlite_dir="$withval" 6190 fi 6191 6192 if test -d $sqlite_dir; then 6193 6194 if test -z "$sqlite_dir"; then 6195 sqlite_dir="" 6196 sqlite_include="sqlite3.h" 6197 else 6198 sqlite_dir="$sqlite_dir" 6199 sqlite_include="$sqlite_dir/include/sqlite3.h" 6200 fi 6201 6202 save_CPPFLAGS="$CPPFLAGS" 6203 save_LDFLAGS="$LDFLAGS" 6204 6205 if test ! -z "$sqlite_dir"; then 6206 CPPFLAGS="$CPPFLAGS -I$sqlite_dir/include" 6207 LDFLAGS="$LDFLAGS -L$sqlite_dir/lib" 6208 fi 6209 6210 ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default" 6211if test "x$ac_cv_header_sqlite3_h" = xyes; then : 6212 6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via header)" >&5 6214$as_echo_n "checking sqlite library version (via header)... " >&6; } 6215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6216/* end confdefs.h. */ 6217 6218#include "$sqlite_include" 6219#if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num 6220SQLITE_VERSION_OKAY 6221#endif 6222_ACEOF 6223if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6224 $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then : 6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5 6226$as_echo "okay" >&6; } 6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_close in -lsqlite3" >&5 6228$as_echo_n "checking for sqlite3_close in -lsqlite3... " >&6; } 6229if ${ac_cv_lib_sqlite3_sqlite3_close+:} false; then : 6230 $as_echo_n "(cached) " >&6 6231else 6232 ac_check_lib_save_LIBS=$LIBS 6233LIBS="-lsqlite3 $LIBS" 6234cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6235/* end confdefs.h. */ 6236 6237/* Override any GCC internal prototype to avoid an error. 6238 Use char because int might match the return type of a GCC 6239 builtin and then its argument prototype would still apply. */ 6240#ifdef __cplusplus 6241extern "C" 6242#endif 6243char sqlite3_close (); 6244int 6245main () 6246{ 6247return sqlite3_close (); 6248 ; 6249 return 0; 6250} 6251_ACEOF 6252if ac_fn_c_try_link "$LINENO"; then : 6253 ac_cv_lib_sqlite3_sqlite3_close=yes 6254else 6255 ac_cv_lib_sqlite3_sqlite3_close=no 6256fi 6257rm -f core conftest.err conftest.$ac_objext \ 6258 conftest$ac_exeext conftest.$ac_ext 6259LIBS=$ac_check_lib_save_LIBS 6260fi 6261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_close" >&5 6262$as_echo "$ac_cv_lib_sqlite3_sqlite3_close" >&6; } 6263if test "x$ac_cv_lib_sqlite3_sqlite3_close" = xyes; then : 6264 6265 svn_lib_sqlite="yes" 6266 if test -z "$sqlite_dir" -o ! -d "$sqlite_dir"; then 6267 SVN_SQLITE_LIBS="-lsqlite3" 6268 else 6269 SVN_SQLITE_INCLUDES="-I$sqlite_dir/include" 6270 SVN_SQLITE_LIBS="` 6271 input_flags="-L$sqlite_dir/lib -lsqlite3" 6272 output_flags="" 6273 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 6274 for flag in $input_flags; do 6275 filter="no" 6276 for dir in $filtered_dirs; do 6277 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 6278 filter="yes" 6279 break 6280 fi 6281 done 6282 if test "$filter" = "no"; then 6283 output_flags="$output_flags $flag" 6284 fi 6285 done 6286 if test -n "$output_flags"; then 6287 printf "%s" "${output_flags# }" 6288 fi 6289`" 6290 fi 6291 6292fi 6293 6294else 6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported SQLite version" >&5 6296$as_echo "unsupported SQLite version" >&6; } 6297fi 6298rm -f conftest* 6299 6300 6301fi 6302 6303 6304 6305 CPPFLAGS="$save_CPPFLAGS" 6306 LDFLAGS="$save_LDFLAGS" 6307 6308 else 6309 6310 sqlite_amalg="$sqlite_dir" 6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5 6312$as_echo_n "checking sqlite amalgamation... " >&6; } 6313 if test ! -e $sqlite_amalg; then 6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6315$as_echo "no" >&6; } 6316 else 6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6318$as_echo "yes" >&6; } 6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5 6320$as_echo_n "checking sqlite amalgamation file version... " >&6; } 6321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6322/* end confdefs.h. */ 6323 6324#include "$sqlite_amalg" 6325#if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num 6326SQLITE_VERSION_OKAY 6327#endif 6328_ACEOF 6329if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6330 $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then : 6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5 6332$as_echo "amalgamation found and is okay" >&6; } 6333 6334 case $host_os in 6335 beos* | mingw* | pw32* | cegcc* | cygwin*) 6336 svn_sqlite_dso_ldflags= 6337 ;; 6338 6339 darwin*) 6340 # if libdl is installed we need to link against it 6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 6342$as_echo_n "checking for dlopen in -ldl... " >&6; } 6343if ${ac_cv_lib_dl_dlopen+:} false; then : 6344 $as_echo_n "(cached) " >&6 6345else 6346 ac_check_lib_save_LIBS=$LIBS 6347LIBS="-ldl $LIBS" 6348cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6349/* end confdefs.h. */ 6350 6351/* Override any GCC internal prototype to avoid an error. 6352 Use char because int might match the return type of a GCC 6353 builtin and then its argument prototype would still apply. */ 6354#ifdef __cplusplus 6355extern "C" 6356#endif 6357char dlopen (); 6358int 6359main () 6360{ 6361return dlopen (); 6362 ; 6363 return 0; 6364} 6365_ACEOF 6366if ac_fn_c_try_link "$LINENO"; then : 6367 ac_cv_lib_dl_dlopen=yes 6368else 6369 ac_cv_lib_dl_dlopen=no 6370fi 6371rm -f core conftest.err conftest.$ac_objext \ 6372 conftest$ac_exeext conftest.$ac_ext 6373LIBS=$ac_check_lib_save_LIBS 6374fi 6375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 6376$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 6377if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 6378 lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl" 6379else 6380 6381 svn_sqlite_dso_ldflags= 6382 6383fi 6384 6385 ;; 6386 6387 *) 6388 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 6389if test "x$ac_cv_func_shl_load" = xyes; then : 6390 svn_sqlite_dso_ldflags= 6391else 6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 6393$as_echo_n "checking for shl_load in -ldld... " >&6; } 6394if ${ac_cv_lib_dld_shl_load+:} false; then : 6395 $as_echo_n "(cached) " >&6 6396else 6397 ac_check_lib_save_LIBS=$LIBS 6398LIBS="-ldld $LIBS" 6399cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6400/* end confdefs.h. */ 6401 6402/* Override any GCC internal prototype to avoid an error. 6403 Use char because int might match the return type of a GCC 6404 builtin and then its argument prototype would still apply. */ 6405#ifdef __cplusplus 6406extern "C" 6407#endif 6408char shl_load (); 6409int 6410main () 6411{ 6412return shl_load (); 6413 ; 6414 return 0; 6415} 6416_ACEOF 6417if ac_fn_c_try_link "$LINENO"; then : 6418 ac_cv_lib_dld_shl_load=yes 6419else 6420 ac_cv_lib_dld_shl_load=no 6421fi 6422rm -f core conftest.err conftest.$ac_objext \ 6423 conftest$ac_exeext conftest.$ac_ext 6424LIBS=$ac_check_lib_save_LIBS 6425fi 6426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 6427$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 6428if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 6429 svn_sqlite_dso_ldflags="-ldld" 6430else 6431 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 6432if test "x$ac_cv_func_dlopen" = xyes; then : 6433 svn_sqlite_dso_ldflags= 6434else 6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 6436$as_echo_n "checking for dlopen in -ldl... " >&6; } 6437if ${ac_cv_lib_dl_dlopen+:} false; then : 6438 $as_echo_n "(cached) " >&6 6439else 6440 ac_check_lib_save_LIBS=$LIBS 6441LIBS="-ldl $LIBS" 6442cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6443/* end confdefs.h. */ 6444 6445/* Override any GCC internal prototype to avoid an error. 6446 Use char because int might match the return type of a GCC 6447 builtin and then its argument prototype would still apply. */ 6448#ifdef __cplusplus 6449extern "C" 6450#endif 6451char dlopen (); 6452int 6453main () 6454{ 6455return dlopen (); 6456 ; 6457 return 0; 6458} 6459_ACEOF 6460if ac_fn_c_try_link "$LINENO"; then : 6461 ac_cv_lib_dl_dlopen=yes 6462else 6463 ac_cv_lib_dl_dlopen=no 6464fi 6465rm -f core conftest.err conftest.$ac_objext \ 6466 conftest$ac_exeext conftest.$ac_ext 6467LIBS=$ac_check_lib_save_LIBS 6468fi 6469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 6470$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 6471if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 6472 svn_sqlite_dso_ldflags="-ldl" 6473else 6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 6475$as_echo_n "checking for dlopen in -lsvld... " >&6; } 6476if ${ac_cv_lib_svld_dlopen+:} false; then : 6477 $as_echo_n "(cached) " >&6 6478else 6479 ac_check_lib_save_LIBS=$LIBS 6480LIBS="-lsvld $LIBS" 6481cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6482/* end confdefs.h. */ 6483 6484/* Override any GCC internal prototype to avoid an error. 6485 Use char because int might match the return type of a GCC 6486 builtin and then its argument prototype would still apply. */ 6487#ifdef __cplusplus 6488extern "C" 6489#endif 6490char dlopen (); 6491int 6492main () 6493{ 6494return dlopen (); 6495 ; 6496 return 0; 6497} 6498_ACEOF 6499if ac_fn_c_try_link "$LINENO"; then : 6500 ac_cv_lib_svld_dlopen=yes 6501else 6502 ac_cv_lib_svld_dlopen=no 6503fi 6504rm -f core conftest.err conftest.$ac_objext \ 6505 conftest$ac_exeext conftest.$ac_ext 6506LIBS=$ac_check_lib_save_LIBS 6507fi 6508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 6509$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 6510if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 6511 svn_sqlite_dso_ldflags="-lsvld" 6512else 6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 6514$as_echo_n "checking for dld_link in -ldld... " >&6; } 6515if ${ac_cv_lib_dld_dld_link+:} false; then : 6516 $as_echo_n "(cached) " >&6 6517else 6518 ac_check_lib_save_LIBS=$LIBS 6519LIBS="-ldld $LIBS" 6520cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6521/* end confdefs.h. */ 6522 6523/* Override any GCC internal prototype to avoid an error. 6524 Use char because int might match the return type of a GCC 6525 builtin and then its argument prototype would still apply. */ 6526#ifdef __cplusplus 6527extern "C" 6528#endif 6529char dld_link (); 6530int 6531main () 6532{ 6533return dld_link (); 6534 ; 6535 return 0; 6536} 6537_ACEOF 6538if ac_fn_c_try_link "$LINENO"; then : 6539 ac_cv_lib_dld_dld_link=yes 6540else 6541 ac_cv_lib_dld_dld_link=no 6542fi 6543rm -f core conftest.err conftest.$ac_objext \ 6544 conftest$ac_exeext conftest.$ac_ext 6545LIBS=$ac_check_lib_save_LIBS 6546fi 6547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 6548$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 6549if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 6550 svn_sqlite_dso_ldflags="-ldld" 6551fi 6552 6553 6554fi 6555 6556 6557fi 6558 6559 6560fi 6561 6562 6563fi 6564 6565 6566fi 6567 6568 ;; 6569 esac 6570 6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5 6572$as_echo_n "checking additional libraries for sqlite... " >&6; } 6573 if test -n "$svn_sqlite_dso_ldflags"; then 6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5 6575$as_echo "${svn_sqlite_dso_ldflags}" >&6; } 6576 else 6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6578$as_echo "none" >&6; } 6579 fi 6580 6581 6582$as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h 6583 6584 SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`" 6585 if test -n "$svn_sqlite_dso_ldflags"; then 6586 SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread" 6587 else 6588 SVN_SQLITE_LIBS="-lpthread" 6589 fi 6590 svn_lib_sqlite="yes" 6591else 6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5 6593$as_echo "unsupported amalgamation SQLite version" >&6; } 6594fi 6595rm -f conftest* 6596 6597 fi 6598 6599 fi 6600 6601 if test -z "$svn_lib_sqlite"; then 6602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable sqlite found in $sqlite_dir" >&5 6603$as_echo "$as_me: WARNING: no suitable sqlite found in $sqlite_dir" >&2;} 6604 6605 echo "" 6606 echo "An appropriate version of sqlite could not be found. We recommmend" 6607 echo "${SQLITE_RECOMMENDED_VER}, but require at least ${SQLITE_MINIMUM_VER}." 6608 echo "Please either install a newer sqlite on this system" 6609 echo "" 6610 echo "or" 6611 echo "" 6612 echo "get the sqlite ${SQLITE_RECOMMENDED_VER} amalgamation from:" 6613 echo " ${SQLITE_URL}" 6614 echo "unpack the archive using unzip and rename the resulting" 6615 echo "directory to:" 6616 echo "$abs_srcdir/sqlite-amalgamation" 6617 if test x"$abs_srcdir" != x"$abs_builddir"; then 6618 echo "or to:" 6619 echo "$abs_builddir/sqlite-amalgamation" 6620 fi 6621 echo "" 6622 as_fn_error $? "Subversion requires SQLite" "$LINENO" 5 6623 6624 fi 6625 6626else 6627 6628 6629 sqlite_amalg="$abs_srcdir/sqlite-amalgamation/sqlite3.c" 6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5 6631$as_echo_n "checking sqlite amalgamation... " >&6; } 6632 if test ! -e $sqlite_amalg; then 6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6634$as_echo "no" >&6; } 6635 else 6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6637$as_echo "yes" >&6; } 6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5 6639$as_echo_n "checking sqlite amalgamation file version... " >&6; } 6640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6641/* end confdefs.h. */ 6642 6643#include "$sqlite_amalg" 6644#if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num 6645SQLITE_VERSION_OKAY 6646#endif 6647_ACEOF 6648if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6649 $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then : 6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5 6651$as_echo "amalgamation found and is okay" >&6; } 6652 6653 case $host_os in 6654 beos* | mingw* | pw32* | cegcc* | cygwin*) 6655 svn_sqlite_dso_ldflags= 6656 ;; 6657 6658 darwin*) 6659 # if libdl is installed we need to link against it 6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 6661$as_echo_n "checking for dlopen in -ldl... " >&6; } 6662if ${ac_cv_lib_dl_dlopen+:} false; then : 6663 $as_echo_n "(cached) " >&6 6664else 6665 ac_check_lib_save_LIBS=$LIBS 6666LIBS="-ldl $LIBS" 6667cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6668/* end confdefs.h. */ 6669 6670/* Override any GCC internal prototype to avoid an error. 6671 Use char because int might match the return type of a GCC 6672 builtin and then its argument prototype would still apply. */ 6673#ifdef __cplusplus 6674extern "C" 6675#endif 6676char dlopen (); 6677int 6678main () 6679{ 6680return dlopen (); 6681 ; 6682 return 0; 6683} 6684_ACEOF 6685if ac_fn_c_try_link "$LINENO"; then : 6686 ac_cv_lib_dl_dlopen=yes 6687else 6688 ac_cv_lib_dl_dlopen=no 6689fi 6690rm -f core conftest.err conftest.$ac_objext \ 6691 conftest$ac_exeext conftest.$ac_ext 6692LIBS=$ac_check_lib_save_LIBS 6693fi 6694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 6695$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 6696if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 6697 lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl" 6698else 6699 6700 svn_sqlite_dso_ldflags= 6701 6702fi 6703 6704 ;; 6705 6706 *) 6707 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 6708if test "x$ac_cv_func_shl_load" = xyes; then : 6709 svn_sqlite_dso_ldflags= 6710else 6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 6712$as_echo_n "checking for shl_load in -ldld... " >&6; } 6713if ${ac_cv_lib_dld_shl_load+:} false; then : 6714 $as_echo_n "(cached) " >&6 6715else 6716 ac_check_lib_save_LIBS=$LIBS 6717LIBS="-ldld $LIBS" 6718cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6719/* end confdefs.h. */ 6720 6721/* Override any GCC internal prototype to avoid an error. 6722 Use char because int might match the return type of a GCC 6723 builtin and then its argument prototype would still apply. */ 6724#ifdef __cplusplus 6725extern "C" 6726#endif 6727char shl_load (); 6728int 6729main () 6730{ 6731return shl_load (); 6732 ; 6733 return 0; 6734} 6735_ACEOF 6736if ac_fn_c_try_link "$LINENO"; then : 6737 ac_cv_lib_dld_shl_load=yes 6738else 6739 ac_cv_lib_dld_shl_load=no 6740fi 6741rm -f core conftest.err conftest.$ac_objext \ 6742 conftest$ac_exeext conftest.$ac_ext 6743LIBS=$ac_check_lib_save_LIBS 6744fi 6745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 6746$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 6747if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 6748 svn_sqlite_dso_ldflags="-ldld" 6749else 6750 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 6751if test "x$ac_cv_func_dlopen" = xyes; then : 6752 svn_sqlite_dso_ldflags= 6753else 6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 6755$as_echo_n "checking for dlopen in -ldl... " >&6; } 6756if ${ac_cv_lib_dl_dlopen+:} false; then : 6757 $as_echo_n "(cached) " >&6 6758else 6759 ac_check_lib_save_LIBS=$LIBS 6760LIBS="-ldl $LIBS" 6761cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6762/* end confdefs.h. */ 6763 6764/* Override any GCC internal prototype to avoid an error. 6765 Use char because int might match the return type of a GCC 6766 builtin and then its argument prototype would still apply. */ 6767#ifdef __cplusplus 6768extern "C" 6769#endif 6770char dlopen (); 6771int 6772main () 6773{ 6774return dlopen (); 6775 ; 6776 return 0; 6777} 6778_ACEOF 6779if ac_fn_c_try_link "$LINENO"; then : 6780 ac_cv_lib_dl_dlopen=yes 6781else 6782 ac_cv_lib_dl_dlopen=no 6783fi 6784rm -f core conftest.err conftest.$ac_objext \ 6785 conftest$ac_exeext conftest.$ac_ext 6786LIBS=$ac_check_lib_save_LIBS 6787fi 6788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 6789$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 6790if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 6791 svn_sqlite_dso_ldflags="-ldl" 6792else 6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 6794$as_echo_n "checking for dlopen in -lsvld... " >&6; } 6795if ${ac_cv_lib_svld_dlopen+:} false; then : 6796 $as_echo_n "(cached) " >&6 6797else 6798 ac_check_lib_save_LIBS=$LIBS 6799LIBS="-lsvld $LIBS" 6800cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6801/* end confdefs.h. */ 6802 6803/* Override any GCC internal prototype to avoid an error. 6804 Use char because int might match the return type of a GCC 6805 builtin and then its argument prototype would still apply. */ 6806#ifdef __cplusplus 6807extern "C" 6808#endif 6809char dlopen (); 6810int 6811main () 6812{ 6813return dlopen (); 6814 ; 6815 return 0; 6816} 6817_ACEOF 6818if ac_fn_c_try_link "$LINENO"; then : 6819 ac_cv_lib_svld_dlopen=yes 6820else 6821 ac_cv_lib_svld_dlopen=no 6822fi 6823rm -f core conftest.err conftest.$ac_objext \ 6824 conftest$ac_exeext conftest.$ac_ext 6825LIBS=$ac_check_lib_save_LIBS 6826fi 6827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 6828$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 6829if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 6830 svn_sqlite_dso_ldflags="-lsvld" 6831else 6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 6833$as_echo_n "checking for dld_link in -ldld... " >&6; } 6834if ${ac_cv_lib_dld_dld_link+:} false; then : 6835 $as_echo_n "(cached) " >&6 6836else 6837 ac_check_lib_save_LIBS=$LIBS 6838LIBS="-ldld $LIBS" 6839cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6840/* end confdefs.h. */ 6841 6842/* Override any GCC internal prototype to avoid an error. 6843 Use char because int might match the return type of a GCC 6844 builtin and then its argument prototype would still apply. */ 6845#ifdef __cplusplus 6846extern "C" 6847#endif 6848char dld_link (); 6849int 6850main () 6851{ 6852return dld_link (); 6853 ; 6854 return 0; 6855} 6856_ACEOF 6857if ac_fn_c_try_link "$LINENO"; then : 6858 ac_cv_lib_dld_dld_link=yes 6859else 6860 ac_cv_lib_dld_dld_link=no 6861fi 6862rm -f core conftest.err conftest.$ac_objext \ 6863 conftest$ac_exeext conftest.$ac_ext 6864LIBS=$ac_check_lib_save_LIBS 6865fi 6866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 6867$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 6868if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 6869 svn_sqlite_dso_ldflags="-ldld" 6870fi 6871 6872 6873fi 6874 6875 6876fi 6877 6878 6879fi 6880 6881 6882fi 6883 6884 6885fi 6886 6887 ;; 6888 esac 6889 6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5 6891$as_echo_n "checking additional libraries for sqlite... " >&6; } 6892 if test -n "$svn_sqlite_dso_ldflags"; then 6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5 6894$as_echo "${svn_sqlite_dso_ldflags}" >&6; } 6895 else 6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6897$as_echo "none" >&6; } 6898 fi 6899 6900 6901$as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h 6902 6903 SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`" 6904 if test -n "$svn_sqlite_dso_ldflags"; then 6905 SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread" 6906 else 6907 SVN_SQLITE_LIBS="-lpthread" 6908 fi 6909 svn_lib_sqlite="yes" 6910else 6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5 6912$as_echo "unsupported amalgamation SQLite version" >&6; } 6913fi 6914rm -f conftest* 6915 6916 fi 6917 6918 6919 if test -z "$svn_lib_sqlite"; then 6920 6921 sqlite_amalg="$abs_builddir/sqlite-amalgamation/sqlite3.c" 6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5 6923$as_echo_n "checking sqlite amalgamation... " >&6; } 6924 if test ! -e $sqlite_amalg; then 6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6926$as_echo "no" >&6; } 6927 else 6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6929$as_echo "yes" >&6; } 6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5 6931$as_echo_n "checking sqlite amalgamation file version... " >&6; } 6932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6933/* end confdefs.h. */ 6934 6935#include "$sqlite_amalg" 6936#if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num 6937SQLITE_VERSION_OKAY 6938#endif 6939_ACEOF 6940if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6941 $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then : 6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5 6943$as_echo "amalgamation found and is okay" >&6; } 6944 6945 case $host_os in 6946 beos* | mingw* | pw32* | cegcc* | cygwin*) 6947 svn_sqlite_dso_ldflags= 6948 ;; 6949 6950 darwin*) 6951 # if libdl is installed we need to link against it 6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 6953$as_echo_n "checking for dlopen in -ldl... " >&6; } 6954if ${ac_cv_lib_dl_dlopen+:} false; then : 6955 $as_echo_n "(cached) " >&6 6956else 6957 ac_check_lib_save_LIBS=$LIBS 6958LIBS="-ldl $LIBS" 6959cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6960/* end confdefs.h. */ 6961 6962/* Override any GCC internal prototype to avoid an error. 6963 Use char because int might match the return type of a GCC 6964 builtin and then its argument prototype would still apply. */ 6965#ifdef __cplusplus 6966extern "C" 6967#endif 6968char dlopen (); 6969int 6970main () 6971{ 6972return dlopen (); 6973 ; 6974 return 0; 6975} 6976_ACEOF 6977if ac_fn_c_try_link "$LINENO"; then : 6978 ac_cv_lib_dl_dlopen=yes 6979else 6980 ac_cv_lib_dl_dlopen=no 6981fi 6982rm -f core conftest.err conftest.$ac_objext \ 6983 conftest$ac_exeext conftest.$ac_ext 6984LIBS=$ac_check_lib_save_LIBS 6985fi 6986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 6987$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 6988if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 6989 lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl" 6990else 6991 6992 svn_sqlite_dso_ldflags= 6993 6994fi 6995 6996 ;; 6997 6998 *) 6999 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 7000if test "x$ac_cv_func_shl_load" = xyes; then : 7001 svn_sqlite_dso_ldflags= 7002else 7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 7004$as_echo_n "checking for shl_load in -ldld... " >&6; } 7005if ${ac_cv_lib_dld_shl_load+:} false; then : 7006 $as_echo_n "(cached) " >&6 7007else 7008 ac_check_lib_save_LIBS=$LIBS 7009LIBS="-ldld $LIBS" 7010cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7011/* end confdefs.h. */ 7012 7013/* Override any GCC internal prototype to avoid an error. 7014 Use char because int might match the return type of a GCC 7015 builtin and then its argument prototype would still apply. */ 7016#ifdef __cplusplus 7017extern "C" 7018#endif 7019char shl_load (); 7020int 7021main () 7022{ 7023return shl_load (); 7024 ; 7025 return 0; 7026} 7027_ACEOF 7028if ac_fn_c_try_link "$LINENO"; then : 7029 ac_cv_lib_dld_shl_load=yes 7030else 7031 ac_cv_lib_dld_shl_load=no 7032fi 7033rm -f core conftest.err conftest.$ac_objext \ 7034 conftest$ac_exeext conftest.$ac_ext 7035LIBS=$ac_check_lib_save_LIBS 7036fi 7037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 7038$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 7039if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 7040 svn_sqlite_dso_ldflags="-ldld" 7041else 7042 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 7043if test "x$ac_cv_func_dlopen" = xyes; then : 7044 svn_sqlite_dso_ldflags= 7045else 7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 7047$as_echo_n "checking for dlopen in -ldl... " >&6; } 7048if ${ac_cv_lib_dl_dlopen+:} false; then : 7049 $as_echo_n "(cached) " >&6 7050else 7051 ac_check_lib_save_LIBS=$LIBS 7052LIBS="-ldl $LIBS" 7053cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7054/* end confdefs.h. */ 7055 7056/* Override any GCC internal prototype to avoid an error. 7057 Use char because int might match the return type of a GCC 7058 builtin and then its argument prototype would still apply. */ 7059#ifdef __cplusplus 7060extern "C" 7061#endif 7062char dlopen (); 7063int 7064main () 7065{ 7066return dlopen (); 7067 ; 7068 return 0; 7069} 7070_ACEOF 7071if ac_fn_c_try_link "$LINENO"; then : 7072 ac_cv_lib_dl_dlopen=yes 7073else 7074 ac_cv_lib_dl_dlopen=no 7075fi 7076rm -f core conftest.err conftest.$ac_objext \ 7077 conftest$ac_exeext conftest.$ac_ext 7078LIBS=$ac_check_lib_save_LIBS 7079fi 7080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 7081$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 7082if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 7083 svn_sqlite_dso_ldflags="-ldl" 7084else 7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 7086$as_echo_n "checking for dlopen in -lsvld... " >&6; } 7087if ${ac_cv_lib_svld_dlopen+:} false; then : 7088 $as_echo_n "(cached) " >&6 7089else 7090 ac_check_lib_save_LIBS=$LIBS 7091LIBS="-lsvld $LIBS" 7092cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7093/* end confdefs.h. */ 7094 7095/* Override any GCC internal prototype to avoid an error. 7096 Use char because int might match the return type of a GCC 7097 builtin and then its argument prototype would still apply. */ 7098#ifdef __cplusplus 7099extern "C" 7100#endif 7101char dlopen (); 7102int 7103main () 7104{ 7105return dlopen (); 7106 ; 7107 return 0; 7108} 7109_ACEOF 7110if ac_fn_c_try_link "$LINENO"; then : 7111 ac_cv_lib_svld_dlopen=yes 7112else 7113 ac_cv_lib_svld_dlopen=no 7114fi 7115rm -f core conftest.err conftest.$ac_objext \ 7116 conftest$ac_exeext conftest.$ac_ext 7117LIBS=$ac_check_lib_save_LIBS 7118fi 7119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 7120$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 7121if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 7122 svn_sqlite_dso_ldflags="-lsvld" 7123else 7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 7125$as_echo_n "checking for dld_link in -ldld... " >&6; } 7126if ${ac_cv_lib_dld_dld_link+:} false; then : 7127 $as_echo_n "(cached) " >&6 7128else 7129 ac_check_lib_save_LIBS=$LIBS 7130LIBS="-ldld $LIBS" 7131cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7132/* end confdefs.h. */ 7133 7134/* Override any GCC internal prototype to avoid an error. 7135 Use char because int might match the return type of a GCC 7136 builtin and then its argument prototype would still apply. */ 7137#ifdef __cplusplus 7138extern "C" 7139#endif 7140char dld_link (); 7141int 7142main () 7143{ 7144return dld_link (); 7145 ; 7146 return 0; 7147} 7148_ACEOF 7149if ac_fn_c_try_link "$LINENO"; then : 7150 ac_cv_lib_dld_dld_link=yes 7151else 7152 ac_cv_lib_dld_dld_link=no 7153fi 7154rm -f core conftest.err conftest.$ac_objext \ 7155 conftest$ac_exeext conftest.$ac_ext 7156LIBS=$ac_check_lib_save_LIBS 7157fi 7158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 7159$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 7160if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 7161 svn_sqlite_dso_ldflags="-ldld" 7162fi 7163 7164 7165fi 7166 7167 7168fi 7169 7170 7171fi 7172 7173 7174fi 7175 7176 7177fi 7178 7179 ;; 7180 esac 7181 7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5 7183$as_echo_n "checking additional libraries for sqlite... " >&6; } 7184 if test -n "$svn_sqlite_dso_ldflags"; then 7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5 7186$as_echo "${svn_sqlite_dso_ldflags}" >&6; } 7187 else 7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7189$as_echo "none" >&6; } 7190 fi 7191 7192 7193$as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h 7194 7195 SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`" 7196 if test -n "$svn_sqlite_dso_ldflags"; then 7197 SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread" 7198 else 7199 SVN_SQLITE_LIBS="-lpthread" 7200 fi 7201 svn_lib_sqlite="yes" 7202else 7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5 7204$as_echo "unsupported amalgamation SQLite version" >&6; } 7205fi 7206rm -f conftest* 7207 7208 fi 7209 7210 fi 7211 7212 if test -z "$svn_lib_sqlite"; then 7213 7214 if test -z ""; then 7215 sqlite_dir="" 7216 sqlite_include="sqlite3.h" 7217 else 7218 sqlite_dir="" 7219 sqlite_include="/include/sqlite3.h" 7220 fi 7221 7222 save_CPPFLAGS="$CPPFLAGS" 7223 save_LDFLAGS="$LDFLAGS" 7224 7225 if test ! -z ""; then 7226 CPPFLAGS="$CPPFLAGS -I$sqlite_dir/include" 7227 LDFLAGS="$LDFLAGS -L$sqlite_dir/lib" 7228 fi 7229 7230 ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default" 7231if test "x$ac_cv_header_sqlite3_h" = xyes; then : 7232 7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via header)" >&5 7234$as_echo_n "checking sqlite library version (via header)... " >&6; } 7235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7236/* end confdefs.h. */ 7237 7238#include "$sqlite_include" 7239#if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num 7240SQLITE_VERSION_OKAY 7241#endif 7242_ACEOF 7243if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7244 $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then : 7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5 7246$as_echo "okay" >&6; } 7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_close in -lsqlite3" >&5 7248$as_echo_n "checking for sqlite3_close in -lsqlite3... " >&6; } 7249if ${ac_cv_lib_sqlite3_sqlite3_close+:} false; then : 7250 $as_echo_n "(cached) " >&6 7251else 7252 ac_check_lib_save_LIBS=$LIBS 7253LIBS="-lsqlite3 $LIBS" 7254cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7255/* end confdefs.h. */ 7256 7257/* Override any GCC internal prototype to avoid an error. 7258 Use char because int might match the return type of a GCC 7259 builtin and then its argument prototype would still apply. */ 7260#ifdef __cplusplus 7261extern "C" 7262#endif 7263char sqlite3_close (); 7264int 7265main () 7266{ 7267return sqlite3_close (); 7268 ; 7269 return 0; 7270} 7271_ACEOF 7272if ac_fn_c_try_link "$LINENO"; then : 7273 ac_cv_lib_sqlite3_sqlite3_close=yes 7274else 7275 ac_cv_lib_sqlite3_sqlite3_close=no 7276fi 7277rm -f core conftest.err conftest.$ac_objext \ 7278 conftest$ac_exeext conftest.$ac_ext 7279LIBS=$ac_check_lib_save_LIBS 7280fi 7281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_close" >&5 7282$as_echo "$ac_cv_lib_sqlite3_sqlite3_close" >&6; } 7283if test "x$ac_cv_lib_sqlite3_sqlite3_close" = xyes; then : 7284 7285 svn_lib_sqlite="yes" 7286 if test -z "$sqlite_dir" -o ! -d "$sqlite_dir"; then 7287 SVN_SQLITE_LIBS="-lsqlite3" 7288 else 7289 SVN_SQLITE_INCLUDES="-I$sqlite_dir/include" 7290 SVN_SQLITE_LIBS="` 7291 input_flags="-L$sqlite_dir/lib -lsqlite3" 7292 output_flags="" 7293 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 7294 for flag in $input_flags; do 7295 filter="no" 7296 for dir in $filtered_dirs; do 7297 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 7298 filter="yes" 7299 break 7300 fi 7301 done 7302 if test "$filter" = "no"; then 7303 output_flags="$output_flags $flag" 7304 fi 7305 done 7306 if test -n "$output_flags"; then 7307 printf "%s" "${output_flags# }" 7308 fi 7309`" 7310 fi 7311 7312fi 7313 7314else 7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported SQLite version" >&5 7316$as_echo "unsupported SQLite version" >&6; } 7317fi 7318rm -f conftest* 7319 7320 7321fi 7322 7323 7324 7325 CPPFLAGS="$save_CPPFLAGS" 7326 LDFLAGS="$save_LDFLAGS" 7327 7328 fi 7329 7330 if test -z "$svn_lib_sqlite"; then 7331 7332 if test -n "$PKG_CONFIG"; then 7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via pkg-config)" >&5 7334$as_echo_n "checking sqlite library version (via pkg-config)... " >&6; } 7335 sqlite_version=`$PKG_CONFIG $SQLITE_PKGNAME --modversion --silence-errors` 7336 7337 if test -n "$sqlite_version"; then 7338 7339 version_string="$sqlite_version" 7340 7341 major=`expr $version_string : '\([0-9]*\)'` 7342 minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'` 7343 micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'` 7344 if test -z "$micro"; then 7345 micro=0 7346 fi 7347 sqlite_ver_num=`expr $major \* 1000000 \ 7348 \+ $minor \* 1000 \ 7349 \+ $micro` 7350 7351 7352 if test "$sqlite_ver_num" -ge "$sqlite_min_ver_num"; then 7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sqlite_version" >&5 7354$as_echo "$sqlite_version" >&6; } 7355 svn_lib_sqlite="yes" 7356 SVN_SQLITE_INCLUDES="`$PKG_CONFIG $SQLITE_PKGNAME --cflags`" 7357 SVN_SQLITE_LIBS="`$PKG_CONFIG $SQLITE_PKGNAME --libs`" 7358 else 7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none or unsupported $sqlite_version" >&5 7360$as_echo "none or unsupported $sqlite_version" >&6; } 7361 fi 7362 fi 7363 fi 7364 7365 if test -z "$svn_lib_sqlite"; then 7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7367$as_echo "no" >&6; } 7368 fi 7369 7370 fi 7371 7372 if test -z "$svn_lib_sqlite"; then 7373 7374 echo "" 7375 echo "An appropriate version of sqlite could not be found. We recommmend" 7376 echo "${SQLITE_RECOMMENDED_VER}, but require at least ${SQLITE_MINIMUM_VER}." 7377 echo "Please either install a newer sqlite on this system" 7378 echo "" 7379 echo "or" 7380 echo "" 7381 echo "get the sqlite ${SQLITE_RECOMMENDED_VER} amalgamation from:" 7382 echo " ${SQLITE_URL}" 7383 echo "unpack the archive using unzip and rename the resulting" 7384 echo "directory to:" 7385 echo "$abs_srcdir/sqlite-amalgamation" 7386 if test x"$abs_srcdir" != x"$abs_builddir"; then 7387 echo "or to:" 7388 echo "$abs_builddir/sqlite-amalgamation" 7389 fi 7390 echo "" 7391 as_fn_error $? "Subversion requires SQLite" "$LINENO" 5 7392 7393 fi 7394 7395fi 7396 7397 7398 7399 7400 7401 7402# Check whether --enable-sqlite-compatibility-version was given. 7403if test "${enable_sqlite_compatibility_version+set}" = set; then : 7404 enableval=$enable_sqlite_compatibility_version; sqlite_compat_ver=$enableval 7405else 7406 sqlite_compat_ver=no 7407fi 7408 7409 7410if test -n "$sqlite_compat_ver" && test "$sqlite_compat_ver" != no; then 7411 7412 version_string="$sqlite_compat_ver" 7413 7414 major=`expr $version_string : '\([0-9]*\)'` 7415 minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'` 7416 micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'` 7417 if test -z "$micro"; then 7418 micro=0 7419 fi 7420 sqlite_compat_ver_num=`expr $major \* 1000000 \ 7421 \+ $minor \* 1000 \ 7422 \+ $micro` 7423 7424 CFLAGS="-DSVN_SQLITE_MIN_VERSION='\"$sqlite_compat_ver\"' $CFLAGS" 7425 CFLAGS="-DSVN_SQLITE_MIN_VERSION_NUMBER=$sqlite_compat_ver_num $CFLAGS" 7426fi 7427 7428 7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler provides atomic builtins" >&5 7430$as_echo_n "checking whether the compiler provides atomic builtins... " >&6; } 7431if ${svn_cv_atomic_builtins+:} false; then : 7432 $as_echo_n "(cached) " >&6 7433else 7434 if test "$cross_compiling" = yes; then : 7435 svn_cv_atomic_builtins=no 7436else 7437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7438/* end confdefs.h. */ 7439 7440 int main() 7441 { 7442 unsigned long long val = 1010, tmp, *mem = &val; 7443 7444 if (__sync_fetch_and_add(&val, 1010) != 1010 || val != 2020) 7445 return 1; 7446 7447 tmp = val; 7448 7449 if (__sync_fetch_and_sub(mem, 1010) != tmp || val != 1010) 7450 return 1; 7451 7452 if (__sync_sub_and_fetch(&val, 1010) != 0 || val != 0) 7453 return 1; 7454 7455 tmp = 3030; 7456 7457 if (__sync_val_compare_and_swap(mem, 0, tmp) != 0 || val != tmp) 7458 return 1; 7459 7460 if (__sync_lock_test_and_set(&val, 4040) != 3030) 7461 return 1; 7462 7463 mem = &tmp; 7464 7465 if (__sync_val_compare_and_swap(&mem, &tmp, &val) != &tmp) 7466 return 1; 7467 7468 __sync_synchronize(); 7469 7470 if (mem != &val) 7471 return 1; 7472 7473 return 0; 7474 } 7475_ACEOF 7476if ac_fn_c_try_run "$LINENO"; then : 7477 svn_cv_atomic_builtins=yes 7478else 7479 svn_cv_atomic_builtins=no 7480fi 7481rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7482 conftest.$ac_objext conftest.beam conftest.$ac_ext 7483fi 7484 7485fi 7486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_atomic_builtins" >&5 7487$as_echo "$svn_cv_atomic_builtins" >&6; } 7488 7489if test "$svn_cv_atomic_builtins" = "yes"; then 7490 7491$as_echo "#define SVN_HAS_ATOMIC_BUILTINS 1" >>confdefs.h 7492 7493fi 7494 7495 7496if test "${bindir}" = '${exec_prefix}/bin'; then 7497 if test "${exec_prefix}" = "NONE"; then 7498 if test "${prefix}" = "NONE"; then 7499 SVN_BINDIR="${ac_default_prefix}/bin" 7500 else 7501 SVN_BINDIR="${prefix}/bin" 7502 fi 7503 else 7504 SVN_BINDIR="${exec_prefix}/bin" 7505 fi 7506else 7507 SVN_BINDIR="${bindir}" 7508fi 7509 7510SVN_BINDIR="`eval echo ${SVN_BINDIR}`" 7511 7512 7513 7514cat >>confdefs.h <<_ACEOF 7515#define SVN_BINDIR "${SVN_BINDIR}" 7516_ACEOF 7517 7518 7519localedir='${datadir}/locale' 7520 7521 7522if test "${prefix}" = "NONE" \ 7523 && ( test "${datadir}" = '${prefix}/share' \ 7524 || ( test "${datadir}" = '${datarootdir}' \ 7525 && test "${datarootdir}" = '${prefix}/share' ) ); then 7526 exp_localedir='${ac_default_prefix}/share/locale' 7527else 7528 exp_localedir=$localedir 7529fi 7530 7531svn_last= 7532svn_cur=""${exp_localedir}"" 7533while test "x${svn_cur}" != "x${svn_last}"; 7534do 7535 svn_last="${svn_cur}" 7536 svn_cur=`eval "echo ${svn_cur}"` 7537done 7538svn_localedir="${svn_cur}" 7539 7540 7541cat >>confdefs.h <<_ACEOF 7542#define SVN_LOCALE_DIR "${svn_localedir}" 7543_ACEOF 7544 7545 7546{ $as_echo "$as_me:${as_lineno-$LINENO}: configuring libtool now" >&5 7547$as_echo "$as_me: configuring libtool now" >&6;} 7548case `pwd` in 7549 *\ * | *\ *) 7550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 7551$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 7552esac 7553 7554 7555 7556macro_version='2.4.6' 7557macro_revision='2.4.6' 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571ltmain=$ac_aux_dir/ltmain.sh 7572 7573# Backslashify metacharacters that are still active within 7574# double-quoted strings. 7575sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7576 7577# Same as above, but do not quote variable references. 7578double_quote_subst='s/\(["`\\]\)/\\\1/g' 7579 7580# Sed substitution to delay expansion of an escaped shell variable in a 7581# double_quote_subst'ed string. 7582delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7583 7584# Sed substitution to delay expansion of an escaped single quote. 7585delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7586 7587# Sed substitution to avoid accidental globbing in evaled expressions 7588no_glob_subst='s/\*/\\\*/g' 7589 7590ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7591ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 7592ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 7593 7594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 7595$as_echo_n "checking how to print strings... " >&6; } 7596# Test print first, because it will be a builtin if present. 7597if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 7598 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 7599 ECHO='print -r --' 7600elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 7601 ECHO='printf %s\n' 7602else 7603 # Use this function as a fallback that always works. 7604 func_fallback_echo () 7605 { 7606 eval 'cat <<_LTECHO_EOF 7607$1 7608_LTECHO_EOF' 7609 } 7610 ECHO='func_fallback_echo' 7611fi 7612 7613# func_echo_all arg... 7614# Invoke $ECHO with all args, space-separated. 7615func_echo_all () 7616{ 7617 $ECHO "" 7618} 7619 7620case $ECHO in 7621 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 7622$as_echo "printf" >&6; } ;; 7623 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 7624$as_echo "print -r" >&6; } ;; 7625 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 7626$as_echo "cat" >&6; } ;; 7627esac 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7643$as_echo_n "checking for a sed that does not truncate output... " >&6; } 7644if ${ac_cv_path_SED+:} false; then : 7645 $as_echo_n "(cached) " >&6 7646else 7647 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7648 for ac_i in 1 2 3 4 5 6 7; do 7649 ac_script="$ac_script$as_nl$ac_script" 7650 done 7651 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7652 { ac_script=; unset ac_script;} 7653 if test -z "$SED"; then 7654 ac_path_SED_found=false 7655 # Loop through the user's path and test for each of PROGNAME-LIST 7656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7657for as_dir in $PATH 7658do 7659 IFS=$as_save_IFS 7660 test -z "$as_dir" && as_dir=. 7661 for ac_prog in sed gsed; do 7662 for ac_exec_ext in '' $ac_executable_extensions; do 7663 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 7664 as_fn_executable_p "$ac_path_SED" || continue 7665# Check for GNU ac_path_SED and select it if it is found. 7666 # Check for GNU $ac_path_SED 7667case `"$ac_path_SED" --version 2>&1` in 7668*GNU*) 7669 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7670*) 7671 ac_count=0 7672 $as_echo_n 0123456789 >"conftest.in" 7673 while : 7674 do 7675 cat "conftest.in" "conftest.in" >"conftest.tmp" 7676 mv "conftest.tmp" "conftest.in" 7677 cp "conftest.in" "conftest.nl" 7678 $as_echo '' >> "conftest.nl" 7679 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7680 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7681 as_fn_arith $ac_count + 1 && ac_count=$as_val 7682 if test $ac_count -gt ${ac_path_SED_max-0}; then 7683 # Best one so far, save it but keep looking for a better one 7684 ac_cv_path_SED="$ac_path_SED" 7685 ac_path_SED_max=$ac_count 7686 fi 7687 # 10*(2^10) chars as input seems more than enough 7688 test $ac_count -gt 10 && break 7689 done 7690 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7691esac 7692 7693 $ac_path_SED_found && break 3 7694 done 7695 done 7696 done 7697IFS=$as_save_IFS 7698 if test -z "$ac_cv_path_SED"; then 7699 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 7700 fi 7701else 7702 ac_cv_path_SED=$SED 7703fi 7704 7705fi 7706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7707$as_echo "$ac_cv_path_SED" >&6; } 7708 SED="$ac_cv_path_SED" 7709 rm -f conftest.sed 7710 7711test -z "$SED" && SED=sed 7712Xsed="$SED -e 1s/^X//" 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 7725$as_echo_n "checking for fgrep... " >&6; } 7726if ${ac_cv_path_FGREP+:} false; then : 7727 $as_echo_n "(cached) " >&6 7728else 7729 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 7730 then ac_cv_path_FGREP="$GREP -F" 7731 else 7732 if test -z "$FGREP"; then 7733 ac_path_FGREP_found=false 7734 # Loop through the user's path and test for each of PROGNAME-LIST 7735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7736for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7737do 7738 IFS=$as_save_IFS 7739 test -z "$as_dir" && as_dir=. 7740 for ac_prog in fgrep; do 7741 for ac_exec_ext in '' $ac_executable_extensions; do 7742 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 7743 as_fn_executable_p "$ac_path_FGREP" || continue 7744# Check for GNU ac_path_FGREP and select it if it is found. 7745 # Check for GNU $ac_path_FGREP 7746case `"$ac_path_FGREP" --version 2>&1` in 7747*GNU*) 7748 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 7749*) 7750 ac_count=0 7751 $as_echo_n 0123456789 >"conftest.in" 7752 while : 7753 do 7754 cat "conftest.in" "conftest.in" >"conftest.tmp" 7755 mv "conftest.tmp" "conftest.in" 7756 cp "conftest.in" "conftest.nl" 7757 $as_echo 'FGREP' >> "conftest.nl" 7758 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 7759 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7760 as_fn_arith $ac_count + 1 && ac_count=$as_val 7761 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 7762 # Best one so far, save it but keep looking for a better one 7763 ac_cv_path_FGREP="$ac_path_FGREP" 7764 ac_path_FGREP_max=$ac_count 7765 fi 7766 # 10*(2^10) chars as input seems more than enough 7767 test $ac_count -gt 10 && break 7768 done 7769 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7770esac 7771 7772 $ac_path_FGREP_found && break 3 7773 done 7774 done 7775 done 7776IFS=$as_save_IFS 7777 if test -z "$ac_cv_path_FGREP"; then 7778 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7779 fi 7780else 7781 ac_cv_path_FGREP=$FGREP 7782fi 7783 7784 fi 7785fi 7786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 7787$as_echo "$ac_cv_path_FGREP" >&6; } 7788 FGREP="$ac_cv_path_FGREP" 7789 7790 7791test -z "$GREP" && GREP=grep 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811# Check whether --with-gnu-ld was given. 7812if test "${with_gnu_ld+set}" = set; then : 7813 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 7814else 7815 with_gnu_ld=no 7816fi 7817 7818ac_prog=ld 7819if test yes = "$GCC"; then 7820 # Check if gcc -print-prog-name=ld gives a path. 7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 7822$as_echo_n "checking for ld used by $CC... " >&6; } 7823 case $host in 7824 *-*-mingw*) 7825 # gcc leaves a trailing carriage return, which upsets mingw 7826 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7827 *) 7828 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7829 esac 7830 case $ac_prog in 7831 # Accept absolute paths. 7832 [\\/]* | ?:[\\/]*) 7833 re_direlt='/[^/][^/]*/\.\./' 7834 # Canonicalize the pathname of ld 7835 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 7836 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 7837 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 7838 done 7839 test -z "$LD" && LD=$ac_prog 7840 ;; 7841 "") 7842 # If it fails, then pretend we aren't using GCC. 7843 ac_prog=ld 7844 ;; 7845 *) 7846 # If it is relative, then search for the first ld in PATH. 7847 with_gnu_ld=unknown 7848 ;; 7849 esac 7850elif test yes = "$with_gnu_ld"; then 7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7852$as_echo_n "checking for GNU ld... " >&6; } 7853else 7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 7855$as_echo_n "checking for non-GNU ld... " >&6; } 7856fi 7857if ${lt_cv_path_LD+:} false; then : 7858 $as_echo_n "(cached) " >&6 7859else 7860 if test -z "$LD"; then 7861 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7862 for ac_dir in $PATH; do 7863 IFS=$lt_save_ifs 7864 test -z "$ac_dir" && ac_dir=. 7865 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7866 lt_cv_path_LD=$ac_dir/$ac_prog 7867 # Check to see if the program is GNU ld. I'd rather use --version, 7868 # but apparently some variants of GNU ld only accept -v. 7869 # Break only if it was the GNU/non-GNU ld that we prefer. 7870 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 7871 *GNU* | *'with BFD'*) 7872 test no != "$with_gnu_ld" && break 7873 ;; 7874 *) 7875 test yes != "$with_gnu_ld" && break 7876 ;; 7877 esac 7878 fi 7879 done 7880 IFS=$lt_save_ifs 7881else 7882 lt_cv_path_LD=$LD # Let the user override the test with a path. 7883fi 7884fi 7885 7886LD=$lt_cv_path_LD 7887if test -n "$LD"; then 7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7889$as_echo "$LD" >&6; } 7890else 7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7892$as_echo "no" >&6; } 7893fi 7894test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 7895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7896$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 7897if ${lt_cv_prog_gnu_ld+:} false; then : 7898 $as_echo_n "(cached) " >&6 7899else 7900 # I'd rather use --version here, but apparently some GNU lds only accept -v. 7901case `$LD -v 2>&1 </dev/null` in 7902*GNU* | *'with BFD'*) 7903 lt_cv_prog_gnu_ld=yes 7904 ;; 7905*) 7906 lt_cv_prog_gnu_ld=no 7907 ;; 7908esac 7909fi 7910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 7911$as_echo "$lt_cv_prog_gnu_ld" >&6; } 7912with_gnu_ld=$lt_cv_prog_gnu_ld 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 7923$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 7924if ${lt_cv_path_NM+:} false; then : 7925 $as_echo_n "(cached) " >&6 7926else 7927 if test -n "$NM"; then 7928 # Let the user override the test. 7929 lt_cv_path_NM=$NM 7930else 7931 lt_nm_to_check=${ac_tool_prefix}nm 7932 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 7933 lt_nm_to_check="$lt_nm_to_check nm" 7934 fi 7935 for lt_tmp_nm in $lt_nm_to_check; do 7936 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7937 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 7938 IFS=$lt_save_ifs 7939 test -z "$ac_dir" && ac_dir=. 7940 tmp_nm=$ac_dir/$lt_tmp_nm 7941 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 7942 # Check to see if the nm accepts a BSD-compat flag. 7943 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 7944 # nm: unknown option "B" ignored 7945 # Tru64's nm complains that /dev/null is an invalid object file 7946 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 7947 case $build_os in 7948 mingw*) lt_bad_file=conftest.nm/nofile ;; 7949 *) lt_bad_file=/dev/null ;; 7950 esac 7951 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 7952 *$lt_bad_file* | *'Invalid file or object type'*) 7953 lt_cv_path_NM="$tmp_nm -B" 7954 break 2 7955 ;; 7956 *) 7957 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 7958 */dev/null*) 7959 lt_cv_path_NM="$tmp_nm -p" 7960 break 2 7961 ;; 7962 *) 7963 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 7964 continue # so that we can try to find one that supports BSD flags 7965 ;; 7966 esac 7967 ;; 7968 esac 7969 fi 7970 done 7971 IFS=$lt_save_ifs 7972 done 7973 : ${lt_cv_path_NM=no} 7974fi 7975fi 7976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 7977$as_echo "$lt_cv_path_NM" >&6; } 7978if test no != "$lt_cv_path_NM"; then 7979 NM=$lt_cv_path_NM 7980else 7981 # Didn't find any BSD compatible name lister, look for dumpbin. 7982 if test -n "$DUMPBIN"; then : 7983 # Let the user override the test. 7984 else 7985 if test -n "$ac_tool_prefix"; then 7986 for ac_prog in dumpbin "link -dump" 7987 do 7988 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7989set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7991$as_echo_n "checking for $ac_word... " >&6; } 7992if ${ac_cv_prog_DUMPBIN+:} false; then : 7993 $as_echo_n "(cached) " >&6 7994else 7995 if test -n "$DUMPBIN"; then 7996 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 7997else 7998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7999for as_dir in $PATH 8000do 8001 IFS=$as_save_IFS 8002 test -z "$as_dir" && as_dir=. 8003 for ac_exec_ext in '' $ac_executable_extensions; do 8004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8005 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 8006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8007 break 2 8008 fi 8009done 8010 done 8011IFS=$as_save_IFS 8012 8013fi 8014fi 8015DUMPBIN=$ac_cv_prog_DUMPBIN 8016if test -n "$DUMPBIN"; then 8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 8018$as_echo "$DUMPBIN" >&6; } 8019else 8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8021$as_echo "no" >&6; } 8022fi 8023 8024 8025 test -n "$DUMPBIN" && break 8026 done 8027fi 8028if test -z "$DUMPBIN"; then 8029 ac_ct_DUMPBIN=$DUMPBIN 8030 for ac_prog in dumpbin "link -dump" 8031do 8032 # Extract the first word of "$ac_prog", so it can be a program name with args. 8033set dummy $ac_prog; ac_word=$2 8034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8035$as_echo_n "checking for $ac_word... " >&6; } 8036if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 8037 $as_echo_n "(cached) " >&6 8038else 8039 if test -n "$ac_ct_DUMPBIN"; then 8040 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 8041else 8042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8043for as_dir in $PATH 8044do 8045 IFS=$as_save_IFS 8046 test -z "$as_dir" && as_dir=. 8047 for ac_exec_ext in '' $ac_executable_extensions; do 8048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8049 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 8050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8051 break 2 8052 fi 8053done 8054 done 8055IFS=$as_save_IFS 8056 8057fi 8058fi 8059ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 8060if test -n "$ac_ct_DUMPBIN"; then 8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 8062$as_echo "$ac_ct_DUMPBIN" >&6; } 8063else 8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8065$as_echo "no" >&6; } 8066fi 8067 8068 8069 test -n "$ac_ct_DUMPBIN" && break 8070done 8071 8072 if test "x$ac_ct_DUMPBIN" = x; then 8073 DUMPBIN=":" 8074 else 8075 case $cross_compiling:$ac_tool_warned in 8076yes:) 8077{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8078$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8079ac_tool_warned=yes ;; 8080esac 8081 DUMPBIN=$ac_ct_DUMPBIN 8082 fi 8083fi 8084 8085 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 8086 *COFF*) 8087 DUMPBIN="$DUMPBIN -symbols -headers" 8088 ;; 8089 *) 8090 DUMPBIN=: 8091 ;; 8092 esac 8093 fi 8094 8095 if test : != "$DUMPBIN"; then 8096 NM=$DUMPBIN 8097 fi 8098fi 8099test -z "$NM" && NM=nm 8100 8101 8102 8103 8104 8105 8106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 8107$as_echo_n "checking the name lister ($NM) interface... " >&6; } 8108if ${lt_cv_nm_interface+:} false; then : 8109 $as_echo_n "(cached) " >&6 8110else 8111 lt_cv_nm_interface="BSD nm" 8112 echo "int some_variable = 0;" > conftest.$ac_ext 8113 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 8114 (eval "$ac_compile" 2>conftest.err) 8115 cat conftest.err >&5 8116 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 8117 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 8118 cat conftest.err >&5 8119 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 8120 cat conftest.out >&5 8121 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 8122 lt_cv_nm_interface="MS dumpbin" 8123 fi 8124 rm -f conftest* 8125fi 8126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 8127$as_echo "$lt_cv_nm_interface" >&6; } 8128 8129# find the maximum length of command line arguments 8130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 8131$as_echo_n "checking the maximum length of command line arguments... " >&6; } 8132if ${lt_cv_sys_max_cmd_len+:} false; then : 8133 $as_echo_n "(cached) " >&6 8134else 8135 i=0 8136 teststring=ABCD 8137 8138 case $build_os in 8139 msdosdjgpp*) 8140 # On DJGPP, this test can blow up pretty badly due to problems in libc 8141 # (any single argument exceeding 2000 bytes causes a buffer overrun 8142 # during glob expansion). Even if it were fixed, the result of this 8143 # check would be larger than it should be. 8144 lt_cv_sys_max_cmd_len=12288; # 12K is about right 8145 ;; 8146 8147 gnu*) 8148 # Under GNU Hurd, this test is not required because there is 8149 # no limit to the length of command line arguments. 8150 # Libtool will interpret -1 as no limit whatsoever 8151 lt_cv_sys_max_cmd_len=-1; 8152 ;; 8153 8154 cygwin* | mingw* | cegcc*) 8155 # On Win9x/ME, this test blows up -- it succeeds, but takes 8156 # about 5 minutes as the teststring grows exponentially. 8157 # Worse, since 9x/ME are not pre-emptively multitasking, 8158 # you end up with a "frozen" computer, even though with patience 8159 # the test eventually succeeds (with a max line length of 256k). 8160 # Instead, let's just punt: use the minimum linelength reported by 8161 # all of the supported platforms: 8192 (on NT/2K/XP). 8162 lt_cv_sys_max_cmd_len=8192; 8163 ;; 8164 8165 mint*) 8166 # On MiNT this can take a long time and run out of memory. 8167 lt_cv_sys_max_cmd_len=8192; 8168 ;; 8169 8170 amigaos*) 8171 # On AmigaOS with pdksh, this test takes hours, literally. 8172 # So we just punt and use a minimum line length of 8192. 8173 lt_cv_sys_max_cmd_len=8192; 8174 ;; 8175 8176 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 8177 # This has been around since 386BSD, at least. Likely further. 8178 if test -x /sbin/sysctl; then 8179 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 8180 elif test -x /usr/sbin/sysctl; then 8181 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 8182 else 8183 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 8184 fi 8185 # And add a safety zone 8186 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8187 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8188 ;; 8189 8190 interix*) 8191 # We know the value 262144 and hardcode it with a safety zone (like BSD) 8192 lt_cv_sys_max_cmd_len=196608 8193 ;; 8194 8195 os2*) 8196 # The test takes a long time on OS/2. 8197 lt_cv_sys_max_cmd_len=8192 8198 ;; 8199 8200 osf*) 8201 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 8202 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 8203 # nice to cause kernel panics so lets avoid the loop below. 8204 # First set a reasonable default. 8205 lt_cv_sys_max_cmd_len=16384 8206 # 8207 if test -x /sbin/sysconfig; then 8208 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 8209 *1*) lt_cv_sys_max_cmd_len=-1 ;; 8210 esac 8211 fi 8212 ;; 8213 sco3.2v5*) 8214 lt_cv_sys_max_cmd_len=102400 8215 ;; 8216 sysv5* | sco5v6* | sysv4.2uw2*) 8217 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 8218 if test -n "$kargmax"; then 8219 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 8220 else 8221 lt_cv_sys_max_cmd_len=32768 8222 fi 8223 ;; 8224 *) 8225 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 8226 if test -n "$lt_cv_sys_max_cmd_len" && \ 8227 test undefined != "$lt_cv_sys_max_cmd_len"; then 8228 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8229 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8230 else 8231 # Make teststring a little bigger before we do anything with it. 8232 # a 1K string should be a reasonable start. 8233 for i in 1 2 3 4 5 6 7 8; do 8234 teststring=$teststring$teststring 8235 done 8236 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 8237 # If test is not a shell built-in, we'll probably end up computing a 8238 # maximum length that is only half of the actual maximum length, but 8239 # we can't tell. 8240 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 8241 = "X$teststring$teststring"; } >/dev/null 2>&1 && 8242 test 17 != "$i" # 1/2 MB should be enough 8243 do 8244 i=`expr $i + 1` 8245 teststring=$teststring$teststring 8246 done 8247 # Only check the string length outside the loop. 8248 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 8249 teststring= 8250 # Add a significant safety factor because C++ compilers can tack on 8251 # massive amounts of additional arguments before passing them to the 8252 # linker. It appears as though 1/2 is a usable value. 8253 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 8254 fi 8255 ;; 8256 esac 8257 8258fi 8259 8260if test -n "$lt_cv_sys_max_cmd_len"; then 8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 8262$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 8263else 8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 8265$as_echo "none" >&6; } 8266fi 8267max_cmd_len=$lt_cv_sys_max_cmd_len 8268 8269 8270 8271 8272 8273 8274: ${CP="cp -f"} 8275: ${MV="mv -f"} 8276: ${RM="rm -f"} 8277 8278if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8279 lt_unset=unset 8280else 8281 lt_unset=false 8282fi 8283 8284 8285 8286 8287 8288# test EBCDIC or ASCII 8289case `echo X|tr X '\101'` in 8290 A) # ASCII based system 8291 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 8292 lt_SP2NL='tr \040 \012' 8293 lt_NL2SP='tr \015\012 \040\040' 8294 ;; 8295 *) # EBCDIC based system 8296 lt_SP2NL='tr \100 \n' 8297 lt_NL2SP='tr \r\n \100\100' 8298 ;; 8299esac 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 8310$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 8311if ${lt_cv_to_host_file_cmd+:} false; then : 8312 $as_echo_n "(cached) " >&6 8313else 8314 case $host in 8315 *-*-mingw* ) 8316 case $build in 8317 *-*-mingw* ) # actually msys 8318 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 8319 ;; 8320 *-*-cygwin* ) 8321 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 8322 ;; 8323 * ) # otherwise, assume *nix 8324 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 8325 ;; 8326 esac 8327 ;; 8328 *-*-cygwin* ) 8329 case $build in 8330 *-*-mingw* ) # actually msys 8331 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 8332 ;; 8333 *-*-cygwin* ) 8334 lt_cv_to_host_file_cmd=func_convert_file_noop 8335 ;; 8336 * ) # otherwise, assume *nix 8337 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 8338 ;; 8339 esac 8340 ;; 8341 * ) # unhandled hosts (and "normal" native builds) 8342 lt_cv_to_host_file_cmd=func_convert_file_noop 8343 ;; 8344esac 8345 8346fi 8347 8348to_host_file_cmd=$lt_cv_to_host_file_cmd 8349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 8350$as_echo "$lt_cv_to_host_file_cmd" >&6; } 8351 8352 8353 8354 8355 8356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 8357$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 8358if ${lt_cv_to_tool_file_cmd+:} false; then : 8359 $as_echo_n "(cached) " >&6 8360else 8361 #assume ordinary cross tools, or native build. 8362lt_cv_to_tool_file_cmd=func_convert_file_noop 8363case $host in 8364 *-*-mingw* ) 8365 case $build in 8366 *-*-mingw* ) # actually msys 8367 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 8368 ;; 8369 esac 8370 ;; 8371esac 8372 8373fi 8374 8375to_tool_file_cmd=$lt_cv_to_tool_file_cmd 8376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 8377$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 8378 8379 8380 8381 8382 8383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 8384$as_echo_n "checking for $LD option to reload object files... " >&6; } 8385if ${lt_cv_ld_reload_flag+:} false; then : 8386 $as_echo_n "(cached) " >&6 8387else 8388 lt_cv_ld_reload_flag='-r' 8389fi 8390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 8391$as_echo "$lt_cv_ld_reload_flag" >&6; } 8392reload_flag=$lt_cv_ld_reload_flag 8393case $reload_flag in 8394"" | " "*) ;; 8395*) reload_flag=" $reload_flag" ;; 8396esac 8397reload_cmds='$LD$reload_flag -o $output$reload_objs' 8398case $host_os in 8399 cygwin* | mingw* | pw32* | cegcc*) 8400 if test yes != "$GCC"; then 8401 reload_cmds=false 8402 fi 8403 ;; 8404 darwin*) 8405 if test yes = "$GCC"; then 8406 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 8407 else 8408 reload_cmds='$LD$reload_flag -o $output$reload_objs' 8409 fi 8410 ;; 8411esac 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421if test -n "$ac_tool_prefix"; then 8422 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8423set dummy ${ac_tool_prefix}objdump; ac_word=$2 8424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8425$as_echo_n "checking for $ac_word... " >&6; } 8426if ${ac_cv_prog_OBJDUMP+:} false; then : 8427 $as_echo_n "(cached) " >&6 8428else 8429 if test -n "$OBJDUMP"; then 8430 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8431else 8432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8433for as_dir in $PATH 8434do 8435 IFS=$as_save_IFS 8436 test -z "$as_dir" && as_dir=. 8437 for ac_exec_ext in '' $ac_executable_extensions; do 8438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8439 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8441 break 2 8442 fi 8443done 8444 done 8445IFS=$as_save_IFS 8446 8447fi 8448fi 8449OBJDUMP=$ac_cv_prog_OBJDUMP 8450if test -n "$OBJDUMP"; then 8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8452$as_echo "$OBJDUMP" >&6; } 8453else 8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8455$as_echo "no" >&6; } 8456fi 8457 8458 8459fi 8460if test -z "$ac_cv_prog_OBJDUMP"; then 8461 ac_ct_OBJDUMP=$OBJDUMP 8462 # Extract the first word of "objdump", so it can be a program name with args. 8463set dummy objdump; ac_word=$2 8464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8465$as_echo_n "checking for $ac_word... " >&6; } 8466if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8467 $as_echo_n "(cached) " >&6 8468else 8469 if test -n "$ac_ct_OBJDUMP"; then 8470 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8471else 8472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8473for as_dir in $PATH 8474do 8475 IFS=$as_save_IFS 8476 test -z "$as_dir" && as_dir=. 8477 for ac_exec_ext in '' $ac_executable_extensions; do 8478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8479 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8481 break 2 8482 fi 8483done 8484 done 8485IFS=$as_save_IFS 8486 8487fi 8488fi 8489ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8490if test -n "$ac_ct_OBJDUMP"; then 8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8492$as_echo "$ac_ct_OBJDUMP" >&6; } 8493else 8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8495$as_echo "no" >&6; } 8496fi 8497 8498 if test "x$ac_ct_OBJDUMP" = x; then 8499 OBJDUMP="false" 8500 else 8501 case $cross_compiling:$ac_tool_warned in 8502yes:) 8503{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8504$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8505ac_tool_warned=yes ;; 8506esac 8507 OBJDUMP=$ac_ct_OBJDUMP 8508 fi 8509else 8510 OBJDUMP="$ac_cv_prog_OBJDUMP" 8511fi 8512 8513test -z "$OBJDUMP" && OBJDUMP=objdump 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 8524$as_echo_n "checking how to recognize dependent libraries... " >&6; } 8525if ${lt_cv_deplibs_check_method+:} false; then : 8526 $as_echo_n "(cached) " >&6 8527else 8528 lt_cv_file_magic_cmd='$MAGIC_CMD' 8529lt_cv_file_magic_test_file= 8530lt_cv_deplibs_check_method='unknown' 8531# Need to set the preceding variable on all platforms that support 8532# interlibrary dependencies. 8533# 'none' -- dependencies not supported. 8534# 'unknown' -- same as none, but documents that we really don't know. 8535# 'pass_all' -- all dependencies passed with no checks. 8536# 'test_compile' -- check by making test program. 8537# 'file_magic [[regex]]' -- check by looking for files in library path 8538# that responds to the $file_magic_cmd with a given extended regex. 8539# If you have 'file' or equivalent on your system and you're not sure 8540# whether 'pass_all' will *always* work, you probably want this one. 8541 8542case $host_os in 8543aix[4-9]*) 8544 lt_cv_deplibs_check_method=pass_all 8545 ;; 8546 8547beos*) 8548 lt_cv_deplibs_check_method=pass_all 8549 ;; 8550 8551bsdi[45]*) 8552 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 8553 lt_cv_file_magic_cmd='/usr/bin/file -L' 8554 lt_cv_file_magic_test_file=/shlib/libc.so 8555 ;; 8556 8557cygwin*) 8558 # func_win32_libid is a shell function defined in ltmain.sh 8559 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8560 lt_cv_file_magic_cmd='func_win32_libid' 8561 ;; 8562 8563mingw* | pw32*) 8564 # Base MSYS/MinGW do not provide the 'file' command needed by 8565 # func_win32_libid shell function, so use a weaker test based on 'objdump', 8566 # unless we find 'file', for example because we are cross-compiling. 8567 if ( file / ) >/dev/null 2>&1; then 8568 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8569 lt_cv_file_magic_cmd='func_win32_libid' 8570 else 8571 # Keep this pattern in sync with the one in func_win32_libid. 8572 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 8573 lt_cv_file_magic_cmd='$OBJDUMP -f' 8574 fi 8575 ;; 8576 8577cegcc*) 8578 # use the weaker test based on 'objdump'. See mingw*. 8579 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 8580 lt_cv_file_magic_cmd='$OBJDUMP -f' 8581 ;; 8582 8583darwin* | rhapsody*) 8584 lt_cv_deplibs_check_method=pass_all 8585 ;; 8586 8587freebsd* | dragonfly*) 8588 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8589 case $host_cpu in 8590 i*86 ) 8591 # Not sure whether the presence of OpenBSD here was a mistake. 8592 # Let's accept both of them until this is cleared up. 8593 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 8594 lt_cv_file_magic_cmd=/usr/bin/file 8595 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 8596 ;; 8597 esac 8598 else 8599 lt_cv_deplibs_check_method=pass_all 8600 fi 8601 ;; 8602 8603haiku*) 8604 lt_cv_deplibs_check_method=pass_all 8605 ;; 8606 8607hpux10.20* | hpux11*) 8608 lt_cv_file_magic_cmd=/usr/bin/file 8609 case $host_cpu in 8610 ia64*) 8611 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 8612 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 8613 ;; 8614 hppa*64*) 8615 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 8616 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 8617 ;; 8618 *) 8619 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 8620 lt_cv_file_magic_test_file=/usr/lib/libc.sl 8621 ;; 8622 esac 8623 ;; 8624 8625interix[3-9]*) 8626 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 8627 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 8628 ;; 8629 8630irix5* | irix6* | nonstopux*) 8631 case $LD in 8632 *-32|*"-32 ") libmagic=32-bit;; 8633 *-n32|*"-n32 ") libmagic=N32;; 8634 *-64|*"-64 ") libmagic=64-bit;; 8635 *) libmagic=never-match;; 8636 esac 8637 lt_cv_deplibs_check_method=pass_all 8638 ;; 8639 8640# This must be glibc/ELF. 8641linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8642 lt_cv_deplibs_check_method=pass_all 8643 ;; 8644 8645netbsd*) 8646 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8647 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8648 else 8649 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 8650 fi 8651 ;; 8652 8653newos6*) 8654 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 8655 lt_cv_file_magic_cmd=/usr/bin/file 8656 lt_cv_file_magic_test_file=/usr/lib/libnls.so 8657 ;; 8658 8659*nto* | *qnx*) 8660 lt_cv_deplibs_check_method=pass_all 8661 ;; 8662 8663openbsd* | bitrig*) 8664 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 8665 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 8666 else 8667 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8668 fi 8669 ;; 8670 8671osf3* | osf4* | osf5*) 8672 lt_cv_deplibs_check_method=pass_all 8673 ;; 8674 8675rdos*) 8676 lt_cv_deplibs_check_method=pass_all 8677 ;; 8678 8679solaris*) 8680 lt_cv_deplibs_check_method=pass_all 8681 ;; 8682 8683sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8684 lt_cv_deplibs_check_method=pass_all 8685 ;; 8686 8687sysv4 | sysv4.3*) 8688 case $host_vendor in 8689 motorola) 8690 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 8691 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 8692 ;; 8693 ncr) 8694 lt_cv_deplibs_check_method=pass_all 8695 ;; 8696 sequent) 8697 lt_cv_file_magic_cmd='/bin/file' 8698 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 8699 ;; 8700 sni) 8701 lt_cv_file_magic_cmd='/bin/file' 8702 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 8703 lt_cv_file_magic_test_file=/lib/libc.so 8704 ;; 8705 siemens) 8706 lt_cv_deplibs_check_method=pass_all 8707 ;; 8708 pc) 8709 lt_cv_deplibs_check_method=pass_all 8710 ;; 8711 esac 8712 ;; 8713 8714tpf*) 8715 lt_cv_deplibs_check_method=pass_all 8716 ;; 8717os2*) 8718 lt_cv_deplibs_check_method=pass_all 8719 ;; 8720esac 8721 8722fi 8723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 8724$as_echo "$lt_cv_deplibs_check_method" >&6; } 8725 8726file_magic_glob= 8727want_nocaseglob=no 8728if test "$build" = "$host"; then 8729 case $host_os in 8730 mingw* | pw32*) 8731 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 8732 want_nocaseglob=yes 8733 else 8734 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 8735 fi 8736 ;; 8737 esac 8738fi 8739 8740file_magic_cmd=$lt_cv_file_magic_cmd 8741deplibs_check_method=$lt_cv_deplibs_check_method 8742test -z "$deplibs_check_method" && deplibs_check_method=unknown 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765if test -n "$ac_tool_prefix"; then 8766 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8767set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8769$as_echo_n "checking for $ac_word... " >&6; } 8770if ${ac_cv_prog_DLLTOOL+:} false; then : 8771 $as_echo_n "(cached) " >&6 8772else 8773 if test -n "$DLLTOOL"; then 8774 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8775else 8776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8777for as_dir in $PATH 8778do 8779 IFS=$as_save_IFS 8780 test -z "$as_dir" && as_dir=. 8781 for ac_exec_ext in '' $ac_executable_extensions; do 8782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8783 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8785 break 2 8786 fi 8787done 8788 done 8789IFS=$as_save_IFS 8790 8791fi 8792fi 8793DLLTOOL=$ac_cv_prog_DLLTOOL 8794if test -n "$DLLTOOL"; then 8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8796$as_echo "$DLLTOOL" >&6; } 8797else 8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8799$as_echo "no" >&6; } 8800fi 8801 8802 8803fi 8804if test -z "$ac_cv_prog_DLLTOOL"; then 8805 ac_ct_DLLTOOL=$DLLTOOL 8806 # Extract the first word of "dlltool", so it can be a program name with args. 8807set dummy dlltool; ac_word=$2 8808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8809$as_echo_n "checking for $ac_word... " >&6; } 8810if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8811 $as_echo_n "(cached) " >&6 8812else 8813 if test -n "$ac_ct_DLLTOOL"; then 8814 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8815else 8816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8817for as_dir in $PATH 8818do 8819 IFS=$as_save_IFS 8820 test -z "$as_dir" && as_dir=. 8821 for ac_exec_ext in '' $ac_executable_extensions; do 8822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8823 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8825 break 2 8826 fi 8827done 8828 done 8829IFS=$as_save_IFS 8830 8831fi 8832fi 8833ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8834if test -n "$ac_ct_DLLTOOL"; then 8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8836$as_echo "$ac_ct_DLLTOOL" >&6; } 8837else 8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8839$as_echo "no" >&6; } 8840fi 8841 8842 if test "x$ac_ct_DLLTOOL" = x; then 8843 DLLTOOL="false" 8844 else 8845 case $cross_compiling:$ac_tool_warned in 8846yes:) 8847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8849ac_tool_warned=yes ;; 8850esac 8851 DLLTOOL=$ac_ct_DLLTOOL 8852 fi 8853else 8854 DLLTOOL="$ac_cv_prog_DLLTOOL" 8855fi 8856 8857test -z "$DLLTOOL" && DLLTOOL=dlltool 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 8869$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 8870if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 8871 $as_echo_n "(cached) " >&6 8872else 8873 lt_cv_sharedlib_from_linklib_cmd='unknown' 8874 8875case $host_os in 8876cygwin* | mingw* | pw32* | cegcc*) 8877 # two different shell functions defined in ltmain.sh; 8878 # decide which one to use based on capabilities of $DLLTOOL 8879 case `$DLLTOOL --help 2>&1` in 8880 *--identify-strict*) 8881 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 8882 ;; 8883 *) 8884 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 8885 ;; 8886 esac 8887 ;; 8888*) 8889 # fallback: assume linklib IS sharedlib 8890 lt_cv_sharedlib_from_linklib_cmd=$ECHO 8891 ;; 8892esac 8893 8894fi 8895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 8896$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 8897sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 8898test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 8899 8900 8901 8902 8903 8904 8905 8906if test -n "$ac_tool_prefix"; then 8907 for ac_prog in ar 8908 do 8909 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8910set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8912$as_echo_n "checking for $ac_word... " >&6; } 8913if ${ac_cv_prog_AR+:} false; then : 8914 $as_echo_n "(cached) " >&6 8915else 8916 if test -n "$AR"; then 8917 ac_cv_prog_AR="$AR" # Let the user override the test. 8918else 8919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8920for as_dir in $PATH 8921do 8922 IFS=$as_save_IFS 8923 test -z "$as_dir" && as_dir=. 8924 for ac_exec_ext in '' $ac_executable_extensions; do 8925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8926 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 8927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8928 break 2 8929 fi 8930done 8931 done 8932IFS=$as_save_IFS 8933 8934fi 8935fi 8936AR=$ac_cv_prog_AR 8937if test -n "$AR"; then 8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8939$as_echo "$AR" >&6; } 8940else 8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8942$as_echo "no" >&6; } 8943fi 8944 8945 8946 test -n "$AR" && break 8947 done 8948fi 8949if test -z "$AR"; then 8950 ac_ct_AR=$AR 8951 for ac_prog in ar 8952do 8953 # Extract the first word of "$ac_prog", so it can be a program name with args. 8954set dummy $ac_prog; ac_word=$2 8955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8956$as_echo_n "checking for $ac_word... " >&6; } 8957if ${ac_cv_prog_ac_ct_AR+:} false; then : 8958 $as_echo_n "(cached) " >&6 8959else 8960 if test -n "$ac_ct_AR"; then 8961 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8962else 8963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8964for as_dir in $PATH 8965do 8966 IFS=$as_save_IFS 8967 test -z "$as_dir" && as_dir=. 8968 for ac_exec_ext in '' $ac_executable_extensions; do 8969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8970 ac_cv_prog_ac_ct_AR="$ac_prog" 8971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8972 break 2 8973 fi 8974done 8975 done 8976IFS=$as_save_IFS 8977 8978fi 8979fi 8980ac_ct_AR=$ac_cv_prog_ac_ct_AR 8981if test -n "$ac_ct_AR"; then 8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8983$as_echo "$ac_ct_AR" >&6; } 8984else 8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8986$as_echo "no" >&6; } 8987fi 8988 8989 8990 test -n "$ac_ct_AR" && break 8991done 8992 8993 if test "x$ac_ct_AR" = x; then 8994 AR="false" 8995 else 8996 case $cross_compiling:$ac_tool_warned in 8997yes:) 8998{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8999$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9000ac_tool_warned=yes ;; 9001esac 9002 AR=$ac_ct_AR 9003 fi 9004fi 9005 9006: ${AR=ar} 9007: ${AR_FLAGS=cru} 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 9020$as_echo_n "checking for archiver @FILE support... " >&6; } 9021if ${lt_cv_ar_at_file+:} false; then : 9022 $as_echo_n "(cached) " >&6 9023else 9024 lt_cv_ar_at_file=no 9025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9026/* end confdefs.h. */ 9027 9028int 9029main () 9030{ 9031 9032 ; 9033 return 0; 9034} 9035_ACEOF 9036if ac_fn_c_try_compile "$LINENO"; then : 9037 echo conftest.$ac_objext > conftest.lst 9038 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 9039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 9040 (eval $lt_ar_try) 2>&5 9041 ac_status=$? 9042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9043 test $ac_status = 0; } 9044 if test 0 -eq "$ac_status"; then 9045 # Ensure the archiver fails upon bogus file names. 9046 rm -f conftest.$ac_objext libconftest.a 9047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 9048 (eval $lt_ar_try) 2>&5 9049 ac_status=$? 9050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9051 test $ac_status = 0; } 9052 if test 0 -ne "$ac_status"; then 9053 lt_cv_ar_at_file=@ 9054 fi 9055 fi 9056 rm -f conftest.* libconftest.a 9057 9058fi 9059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9060 9061fi 9062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 9063$as_echo "$lt_cv_ar_at_file" >&6; } 9064 9065if test no = "$lt_cv_ar_at_file"; then 9066 archiver_list_spec= 9067else 9068 archiver_list_spec=$lt_cv_ar_at_file 9069fi 9070 9071 9072 9073 9074 9075 9076 9077if test -n "$ac_tool_prefix"; then 9078 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 9079set dummy ${ac_tool_prefix}strip; ac_word=$2 9080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9081$as_echo_n "checking for $ac_word... " >&6; } 9082if ${ac_cv_prog_STRIP+:} false; then : 9083 $as_echo_n "(cached) " >&6 9084else 9085 if test -n "$STRIP"; then 9086 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 9087else 9088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9089for as_dir in $PATH 9090do 9091 IFS=$as_save_IFS 9092 test -z "$as_dir" && as_dir=. 9093 for ac_exec_ext in '' $ac_executable_extensions; do 9094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9095 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 9096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9097 break 2 9098 fi 9099done 9100 done 9101IFS=$as_save_IFS 9102 9103fi 9104fi 9105STRIP=$ac_cv_prog_STRIP 9106if test -n "$STRIP"; then 9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 9108$as_echo "$STRIP" >&6; } 9109else 9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9111$as_echo "no" >&6; } 9112fi 9113 9114 9115fi 9116if test -z "$ac_cv_prog_STRIP"; then 9117 ac_ct_STRIP=$STRIP 9118 # Extract the first word of "strip", so it can be a program name with args. 9119set dummy strip; ac_word=$2 9120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9121$as_echo_n "checking for $ac_word... " >&6; } 9122if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 9123 $as_echo_n "(cached) " >&6 9124else 9125 if test -n "$ac_ct_STRIP"; then 9126 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 9127else 9128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9129for as_dir in $PATH 9130do 9131 IFS=$as_save_IFS 9132 test -z "$as_dir" && as_dir=. 9133 for ac_exec_ext in '' $ac_executable_extensions; do 9134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9135 ac_cv_prog_ac_ct_STRIP="strip" 9136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9137 break 2 9138 fi 9139done 9140 done 9141IFS=$as_save_IFS 9142 9143fi 9144fi 9145ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 9146if test -n "$ac_ct_STRIP"; then 9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 9148$as_echo "$ac_ct_STRIP" >&6; } 9149else 9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9151$as_echo "no" >&6; } 9152fi 9153 9154 if test "x$ac_ct_STRIP" = x; then 9155 STRIP=":" 9156 else 9157 case $cross_compiling:$ac_tool_warned in 9158yes:) 9159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9161ac_tool_warned=yes ;; 9162esac 9163 STRIP=$ac_ct_STRIP 9164 fi 9165else 9166 STRIP="$ac_cv_prog_STRIP" 9167fi 9168 9169test -z "$STRIP" && STRIP=: 9170 9171 9172 9173 9174 9175 9176if test -n "$ac_tool_prefix"; then 9177 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 9178set dummy ${ac_tool_prefix}ranlib; ac_word=$2 9179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9180$as_echo_n "checking for $ac_word... " >&6; } 9181if ${ac_cv_prog_RANLIB+:} false; then : 9182 $as_echo_n "(cached) " >&6 9183else 9184 if test -n "$RANLIB"; then 9185 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 9186else 9187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9188for as_dir in $PATH 9189do 9190 IFS=$as_save_IFS 9191 test -z "$as_dir" && as_dir=. 9192 for ac_exec_ext in '' $ac_executable_extensions; do 9193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9194 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 9195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9196 break 2 9197 fi 9198done 9199 done 9200IFS=$as_save_IFS 9201 9202fi 9203fi 9204RANLIB=$ac_cv_prog_RANLIB 9205if test -n "$RANLIB"; then 9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 9207$as_echo "$RANLIB" >&6; } 9208else 9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9210$as_echo "no" >&6; } 9211fi 9212 9213 9214fi 9215if test -z "$ac_cv_prog_RANLIB"; then 9216 ac_ct_RANLIB=$RANLIB 9217 # Extract the first word of "ranlib", so it can be a program name with args. 9218set dummy ranlib; ac_word=$2 9219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9220$as_echo_n "checking for $ac_word... " >&6; } 9221if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 9222 $as_echo_n "(cached) " >&6 9223else 9224 if test -n "$ac_ct_RANLIB"; then 9225 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 9226else 9227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9228for as_dir in $PATH 9229do 9230 IFS=$as_save_IFS 9231 test -z "$as_dir" && as_dir=. 9232 for ac_exec_ext in '' $ac_executable_extensions; do 9233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9234 ac_cv_prog_ac_ct_RANLIB="ranlib" 9235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9236 break 2 9237 fi 9238done 9239 done 9240IFS=$as_save_IFS 9241 9242fi 9243fi 9244ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 9245if test -n "$ac_ct_RANLIB"; then 9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 9247$as_echo "$ac_ct_RANLIB" >&6; } 9248else 9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9250$as_echo "no" >&6; } 9251fi 9252 9253 if test "x$ac_ct_RANLIB" = x; then 9254 RANLIB=":" 9255 else 9256 case $cross_compiling:$ac_tool_warned in 9257yes:) 9258{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9259$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9260ac_tool_warned=yes ;; 9261esac 9262 RANLIB=$ac_ct_RANLIB 9263 fi 9264else 9265 RANLIB="$ac_cv_prog_RANLIB" 9266fi 9267 9268test -z "$RANLIB" && RANLIB=: 9269 9270 9271 9272 9273 9274 9275# Determine commands to create old-style static archives. 9276old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 9277old_postinstall_cmds='chmod 644 $oldlib' 9278old_postuninstall_cmds= 9279 9280if test -n "$RANLIB"; then 9281 case $host_os in 9282 bitrig* | openbsd*) 9283 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 9284 ;; 9285 *) 9286 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 9287 ;; 9288 esac 9289 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 9290fi 9291 9292case $host_os in 9293 darwin*) 9294 lock_old_archive_extraction=yes ;; 9295 *) 9296 lock_old_archive_extraction=no ;; 9297esac 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319for ac_prog in gawk mawk nawk awk 9320do 9321 # Extract the first word of "$ac_prog", so it can be a program name with args. 9322set dummy $ac_prog; ac_word=$2 9323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9324$as_echo_n "checking for $ac_word... " >&6; } 9325if ${ac_cv_prog_AWK+:} false; then : 9326 $as_echo_n "(cached) " >&6 9327else 9328 if test -n "$AWK"; then 9329 ac_cv_prog_AWK="$AWK" # Let the user override the test. 9330else 9331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9332for as_dir in $PATH 9333do 9334 IFS=$as_save_IFS 9335 test -z "$as_dir" && as_dir=. 9336 for ac_exec_ext in '' $ac_executable_extensions; do 9337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9338 ac_cv_prog_AWK="$ac_prog" 9339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9340 break 2 9341 fi 9342done 9343 done 9344IFS=$as_save_IFS 9345 9346fi 9347fi 9348AWK=$ac_cv_prog_AWK 9349if test -n "$AWK"; then 9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 9351$as_echo "$AWK" >&6; } 9352else 9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9354$as_echo "no" >&6; } 9355fi 9356 9357 9358 test -n "$AWK" && break 9359done 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379# If no C compiler was specified, use CC. 9380LTCC=${LTCC-"$CC"} 9381 9382# If no C compiler flags were specified, use CFLAGS. 9383LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9384 9385# Allow CC to be a program name with arguments. 9386compiler=$CC 9387 9388 9389# Check for command to grab the raw symbol name followed by C symbol from nm. 9390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 9391$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 9392if ${lt_cv_sys_global_symbol_pipe+:} false; then : 9393 $as_echo_n "(cached) " >&6 9394else 9395 9396# These are sane defaults that work on at least a few old systems. 9397# [They come from Ultrix. What could be older than Ultrix?!! ;)] 9398 9399# Character class describing NM global symbol codes. 9400symcode='[BCDEGRST]' 9401 9402# Regexp to match symbols that can be accessed directly from C. 9403sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9404 9405# Define system-specific variables. 9406case $host_os in 9407aix*) 9408 symcode='[BCDT]' 9409 ;; 9410cygwin* | mingw* | pw32* | cegcc*) 9411 symcode='[ABCDGISTW]' 9412 ;; 9413hpux*) 9414 if test ia64 = "$host_cpu"; then 9415 symcode='[ABCDEGRST]' 9416 fi 9417 ;; 9418irix* | nonstopux*) 9419 symcode='[BCDEGRST]' 9420 ;; 9421osf*) 9422 symcode='[BCDEGQRST]' 9423 ;; 9424solaris*) 9425 symcode='[BDRT]' 9426 ;; 9427sco3.2v5*) 9428 symcode='[DT]' 9429 ;; 9430sysv4.2uw2*) 9431 symcode='[DT]' 9432 ;; 9433sysv5* | sco5v6* | unixware* | OpenUNIX*) 9434 symcode='[ABDT]' 9435 ;; 9436sysv4) 9437 symcode='[DFNSTU]' 9438 ;; 9439esac 9440 9441# If we're using GNU nm, then use its standard symbol codes. 9442case `$NM -V 2>&1` in 9443*GNU* | *'with BFD'*) 9444 symcode='[ABCDGIRSTW]' ;; 9445esac 9446 9447if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9448 # Gets list of data symbols to import. 9449 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 9450 # Adjust the below global symbol transforms to fixup imported variables. 9451 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 9452 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 9453 lt_c_name_lib_hook="\ 9454 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 9455 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 9456else 9457 # Disable hooks by default. 9458 lt_cv_sys_global_symbol_to_import= 9459 lt_cdecl_hook= 9460 lt_c_name_hook= 9461 lt_c_name_lib_hook= 9462fi 9463 9464# Transform an extracted symbol line into a proper C declaration. 9465# Some systems (esp. on ia64) link data and code symbols differently, 9466# so use this general approach. 9467lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 9468$lt_cdecl_hook\ 9469" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 9470" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 9471 9472# Transform an extracted symbol line into symbol name and symbol address 9473lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 9474$lt_c_name_hook\ 9475" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 9476" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 9477 9478# Transform an extracted symbol line into symbol name with lib prefix and 9479# symbol address. 9480lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 9481$lt_c_name_lib_hook\ 9482" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 9483" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 9484" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 9485 9486# Handle CRLF in mingw tool chain 9487opt_cr= 9488case $build_os in 9489mingw*) 9490 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9491 ;; 9492esac 9493 9494# Try without a prefix underscore, then with it. 9495for ac_symprfx in "" "_"; do 9496 9497 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9498 symxfrm="\\1 $ac_symprfx\\2 \\2" 9499 9500 # Write the raw and C identifiers. 9501 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9502 # Fake it for dumpbin and say T for any non-static function, 9503 # D for any global variable and I for any imported variable. 9504 # Also find C++ and __fastcall symbols from MSVC++, 9505 # which start with @ or ?. 9506 lt_cv_sys_global_symbol_pipe="$AWK '"\ 9507" {last_section=section; section=\$ 3};"\ 9508" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 9509" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 9510" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 9511" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 9512" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 9513" \$ 0!~/External *\|/{next};"\ 9514" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 9515" {if(hide[section]) next};"\ 9516" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 9517" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 9518" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 9519" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 9520" ' prfx=^$ac_symprfx" 9521 else 9522 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9523 fi 9524 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 9525 9526 # Check to see that the pipe works correctly. 9527 pipe_works=no 9528 9529 rm -f conftest* 9530 cat > conftest.$ac_ext <<_LT_EOF 9531#ifdef __cplusplus 9532extern "C" { 9533#endif 9534char nm_test_var; 9535void nm_test_func(void); 9536void nm_test_func(void){} 9537#ifdef __cplusplus 9538} 9539#endif 9540int main(){nm_test_var='a';nm_test_func();return(0);} 9541_LT_EOF 9542 9543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9544 (eval $ac_compile) 2>&5 9545 ac_status=$? 9546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9547 test $ac_status = 0; }; then 9548 # Now try to grab the symbols. 9549 nlist=conftest.nm 9550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 9551 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 9552 ac_status=$? 9553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9554 test $ac_status = 0; } && test -s "$nlist"; then 9555 # Try sorting and uniquifying the output. 9556 if sort "$nlist" | uniq > "$nlist"T; then 9557 mv -f "$nlist"T "$nlist" 9558 else 9559 rm -f "$nlist"T 9560 fi 9561 9562 # Make sure that we snagged all the symbols we need. 9563 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 9564 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 9565 cat <<_LT_EOF > conftest.$ac_ext 9566/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 9567#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 9568/* DATA imports from DLLs on WIN32 can't be const, because runtime 9569 relocations are performed -- see ld's documentation on pseudo-relocs. */ 9570# define LT_DLSYM_CONST 9571#elif defined __osf__ 9572/* This system does not cope well with relocations in const data. */ 9573# define LT_DLSYM_CONST 9574#else 9575# define LT_DLSYM_CONST const 9576#endif 9577 9578#ifdef __cplusplus 9579extern "C" { 9580#endif 9581 9582_LT_EOF 9583 # Now generate the symbol file. 9584 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 9585 9586 cat <<_LT_EOF >> conftest.$ac_ext 9587 9588/* The mapping between symbol names and symbols. */ 9589LT_DLSYM_CONST struct { 9590 const char *name; 9591 void *address; 9592} 9593lt__PROGRAM__LTX_preloaded_symbols[] = 9594{ 9595 { "@PROGRAM@", (void *) 0 }, 9596_LT_EOF 9597 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 9598 cat <<\_LT_EOF >> conftest.$ac_ext 9599 {0, (void *) 0} 9600}; 9601 9602/* This works around a problem in FreeBSD linker */ 9603#ifdef FREEBSD_WORKAROUND 9604static const void *lt_preloaded_setup() { 9605 return lt__PROGRAM__LTX_preloaded_symbols; 9606} 9607#endif 9608 9609#ifdef __cplusplus 9610} 9611#endif 9612_LT_EOF 9613 # Now try linking the two files. 9614 mv conftest.$ac_objext conftstm.$ac_objext 9615 lt_globsym_save_LIBS=$LIBS 9616 lt_globsym_save_CFLAGS=$CFLAGS 9617 LIBS=conftstm.$ac_objext 9618 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9620 (eval $ac_link) 2>&5 9621 ac_status=$? 9622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9623 test $ac_status = 0; } && test -s conftest$ac_exeext; then 9624 pipe_works=yes 9625 fi 9626 LIBS=$lt_globsym_save_LIBS 9627 CFLAGS=$lt_globsym_save_CFLAGS 9628 else 9629 echo "cannot find nm_test_func in $nlist" >&5 9630 fi 9631 else 9632 echo "cannot find nm_test_var in $nlist" >&5 9633 fi 9634 else 9635 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9636 fi 9637 else 9638 echo "$progname: failed program was:" >&5 9639 cat conftest.$ac_ext >&5 9640 fi 9641 rm -rf conftest* conftst* 9642 9643 # Do not use the global_symbol_pipe unless it works. 9644 if test yes = "$pipe_works"; then 9645 break 9646 else 9647 lt_cv_sys_global_symbol_pipe= 9648 fi 9649done 9650 9651fi 9652 9653if test -z "$lt_cv_sys_global_symbol_pipe"; then 9654 lt_cv_sys_global_symbol_to_cdecl= 9655fi 9656if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 9658$as_echo "failed" >&6; } 9659else 9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 9661$as_echo "ok" >&6; } 9662fi 9663 9664# Response file support. 9665if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9666 nm_file_list_spec='@' 9667elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 9668 nm_file_list_spec='@' 9669fi 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 9708$as_echo_n "checking for sysroot... " >&6; } 9709 9710# Check whether --with-sysroot was given. 9711if test "${with_sysroot+set}" = set; then : 9712 withval=$with_sysroot; 9713else 9714 with_sysroot=no 9715fi 9716 9717 9718lt_sysroot= 9719case $with_sysroot in #( 9720 yes) 9721 if test yes = "$GCC"; then 9722 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 9723 fi 9724 ;; #( 9725 /*) 9726 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 9727 ;; #( 9728 no|'') 9729 ;; #( 9730 *) 9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 9732$as_echo "$with_sysroot" >&6; } 9733 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 9734 ;; 9735esac 9736 9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 9738$as_echo "${lt_sysroot:-no}" >&6; } 9739 9740 9741 9742 9743 9744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 9745$as_echo_n "checking for a working dd... " >&6; } 9746if ${ac_cv_path_lt_DD+:} false; then : 9747 $as_echo_n "(cached) " >&6 9748else 9749 printf 0123456789abcdef0123456789abcdef >conftest.i 9750cat conftest.i conftest.i >conftest2.i 9751: ${lt_DD:=$DD} 9752if test -z "$lt_DD"; then 9753 ac_path_lt_DD_found=false 9754 # Loop through the user's path and test for each of PROGNAME-LIST 9755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9756for as_dir in $PATH 9757do 9758 IFS=$as_save_IFS 9759 test -z "$as_dir" && as_dir=. 9760 for ac_prog in dd; do 9761 for ac_exec_ext in '' $ac_executable_extensions; do 9762 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 9763 as_fn_executable_p "$ac_path_lt_DD" || continue 9764if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 9765 cmp -s conftest.i conftest.out \ 9766 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 9767fi 9768 $ac_path_lt_DD_found && break 3 9769 done 9770 done 9771 done 9772IFS=$as_save_IFS 9773 if test -z "$ac_cv_path_lt_DD"; then 9774 : 9775 fi 9776else 9777 ac_cv_path_lt_DD=$lt_DD 9778fi 9779 9780rm -f conftest.i conftest2.i conftest.out 9781fi 9782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 9783$as_echo "$ac_cv_path_lt_DD" >&6; } 9784 9785 9786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 9787$as_echo_n "checking how to truncate binary pipes... " >&6; } 9788if ${lt_cv_truncate_bin+:} false; then : 9789 $as_echo_n "(cached) " >&6 9790else 9791 printf 0123456789abcdef0123456789abcdef >conftest.i 9792cat conftest.i conftest.i >conftest2.i 9793lt_cv_truncate_bin= 9794if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 9795 cmp -s conftest.i conftest.out \ 9796 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 9797fi 9798rm -f conftest.i conftest2.i conftest.out 9799test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 9800fi 9801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 9802$as_echo "$lt_cv_truncate_bin" >&6; } 9803 9804 9805 9806 9807 9808 9809 9810# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 9811func_cc_basename () 9812{ 9813 for cc_temp in $*""; do 9814 case $cc_temp in 9815 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9816 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9817 \-*) ;; 9818 *) break;; 9819 esac 9820 done 9821 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 9822} 9823 9824# Check whether --enable-libtool-lock was given. 9825if test "${enable_libtool_lock+set}" = set; then : 9826 enableval=$enable_libtool_lock; 9827fi 9828 9829test no = "$enable_libtool_lock" || enable_libtool_lock=yes 9830 9831# Some flags need to be propagated to the compiler or linker for good 9832# libtool support. 9833case $host in 9834ia64-*-hpux*) 9835 # Find out what ABI is being produced by ac_compile, and set mode 9836 # options accordingly. 9837 echo 'int i;' > conftest.$ac_ext 9838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9839 (eval $ac_compile) 2>&5 9840 ac_status=$? 9841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9842 test $ac_status = 0; }; then 9843 case `/usr/bin/file conftest.$ac_objext` in 9844 *ELF-32*) 9845 HPUX_IA64_MODE=32 9846 ;; 9847 *ELF-64*) 9848 HPUX_IA64_MODE=64 9849 ;; 9850 esac 9851 fi 9852 rm -rf conftest* 9853 ;; 9854*-*-irix6*) 9855 # Find out what ABI is being produced by ac_compile, and set linker 9856 # options accordingly. 9857 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9859 (eval $ac_compile) 2>&5 9860 ac_status=$? 9861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9862 test $ac_status = 0; }; then 9863 if test yes = "$lt_cv_prog_gnu_ld"; then 9864 case `/usr/bin/file conftest.$ac_objext` in 9865 *32-bit*) 9866 LD="${LD-ld} -melf32bsmip" 9867 ;; 9868 *N32*) 9869 LD="${LD-ld} -melf32bmipn32" 9870 ;; 9871 *64-bit*) 9872 LD="${LD-ld} -melf64bmip" 9873 ;; 9874 esac 9875 else 9876 case `/usr/bin/file conftest.$ac_objext` in 9877 *32-bit*) 9878 LD="${LD-ld} -32" 9879 ;; 9880 *N32*) 9881 LD="${LD-ld} -n32" 9882 ;; 9883 *64-bit*) 9884 LD="${LD-ld} -64" 9885 ;; 9886 esac 9887 fi 9888 fi 9889 rm -rf conftest* 9890 ;; 9891 9892mips64*-*linux*) 9893 # Find out what ABI is being produced by ac_compile, and set linker 9894 # options accordingly. 9895 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9897 (eval $ac_compile) 2>&5 9898 ac_status=$? 9899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9900 test $ac_status = 0; }; then 9901 emul=elf 9902 case `/usr/bin/file conftest.$ac_objext` in 9903 *32-bit*) 9904 emul="${emul}32" 9905 ;; 9906 *64-bit*) 9907 emul="${emul}64" 9908 ;; 9909 esac 9910 case `/usr/bin/file conftest.$ac_objext` in 9911 *MSB*) 9912 emul="${emul}btsmip" 9913 ;; 9914 *LSB*) 9915 emul="${emul}ltsmip" 9916 ;; 9917 esac 9918 case `/usr/bin/file conftest.$ac_objext` in 9919 *N32*) 9920 emul="${emul}n32" 9921 ;; 9922 esac 9923 LD="${LD-ld} -m $emul" 9924 fi 9925 rm -rf conftest* 9926 ;; 9927 9928x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 9929s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 9930 # Find out what ABI is being produced by ac_compile, and set linker 9931 # options accordingly. Note that the listed cases only cover the 9932 # situations where additional linker options are needed (such as when 9933 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 9934 # vice versa); the common cases where no linker options are needed do 9935 # not appear in the list. 9936 echo 'int i;' > conftest.$ac_ext 9937 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9938 (eval $ac_compile) 2>&5 9939 ac_status=$? 9940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9941 test $ac_status = 0; }; then 9942 case `/usr/bin/file conftest.o` in 9943 *32-bit*) 9944 case $host in 9945 x86_64-*kfreebsd*-gnu) 9946 LD="${LD-ld} -m elf_i386_fbsd" 9947 ;; 9948 x86_64-*linux*) 9949 case `/usr/bin/file conftest.o` in 9950 *x86-64*) 9951 LD="${LD-ld} -m elf32_x86_64" 9952 ;; 9953 *) 9954 LD="${LD-ld} -m elf_i386" 9955 ;; 9956 esac 9957 ;; 9958 powerpc64le-*linux*) 9959 LD="${LD-ld} -m elf32lppclinux" 9960 ;; 9961 powerpc64-*linux*) 9962 LD="${LD-ld} -m elf32ppclinux" 9963 ;; 9964 s390x-*linux*) 9965 LD="${LD-ld} -m elf_s390" 9966 ;; 9967 sparc64-*linux*) 9968 LD="${LD-ld} -m elf32_sparc" 9969 ;; 9970 esac 9971 ;; 9972 *64-bit*) 9973 case $host in 9974 x86_64-*kfreebsd*-gnu) 9975 LD="${LD-ld} -m elf_x86_64_fbsd" 9976 ;; 9977 x86_64-*linux*) 9978 LD="${LD-ld} -m elf_x86_64" 9979 ;; 9980 powerpcle-*linux*) 9981 LD="${LD-ld} -m elf64lppc" 9982 ;; 9983 powerpc-*linux*) 9984 LD="${LD-ld} -m elf64ppc" 9985 ;; 9986 s390*-*linux*|s390*-*tpf*) 9987 LD="${LD-ld} -m elf64_s390" 9988 ;; 9989 sparc*-*linux*) 9990 LD="${LD-ld} -m elf64_sparc" 9991 ;; 9992 esac 9993 ;; 9994 esac 9995 fi 9996 rm -rf conftest* 9997 ;; 9998 9999*-*-sco3.2v5*) 10000 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 10001 SAVE_CFLAGS=$CFLAGS 10002 CFLAGS="$CFLAGS -belf" 10003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 10004$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 10005if ${lt_cv_cc_needs_belf+:} false; then : 10006 $as_echo_n "(cached) " >&6 10007else 10008 ac_ext=c 10009ac_cpp='$CPP $CPPFLAGS' 10010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10012ac_compiler_gnu=$ac_cv_c_compiler_gnu 10013 10014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10015/* end confdefs.h. */ 10016 10017int 10018main () 10019{ 10020 10021 ; 10022 return 0; 10023} 10024_ACEOF 10025if ac_fn_c_try_link "$LINENO"; then : 10026 lt_cv_cc_needs_belf=yes 10027else 10028 lt_cv_cc_needs_belf=no 10029fi 10030rm -f core conftest.err conftest.$ac_objext \ 10031 conftest$ac_exeext conftest.$ac_ext 10032 ac_ext=c 10033ac_cpp='$CPP $CPPFLAGS' 10034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10036ac_compiler_gnu=$ac_cv_c_compiler_gnu 10037 10038fi 10039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 10040$as_echo "$lt_cv_cc_needs_belf" >&6; } 10041 if test yes != "$lt_cv_cc_needs_belf"; then 10042 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 10043 CFLAGS=$SAVE_CFLAGS 10044 fi 10045 ;; 10046*-*solaris*) 10047 # Find out what ABI is being produced by ac_compile, and set linker 10048 # options accordingly. 10049 echo 'int i;' > conftest.$ac_ext 10050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10051 (eval $ac_compile) 2>&5 10052 ac_status=$? 10053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10054 test $ac_status = 0; }; then 10055 case `/usr/bin/file conftest.o` in 10056 *64-bit*) 10057 case $lt_cv_prog_gnu_ld in 10058 yes*) 10059 case $host in 10060 i?86-*-solaris*|x86_64-*-solaris*) 10061 LD="${LD-ld} -m elf_x86_64" 10062 ;; 10063 sparc*-*-solaris*) 10064 LD="${LD-ld} -m elf64_sparc" 10065 ;; 10066 esac 10067 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 10068 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 10069 LD=${LD-ld}_sol2 10070 fi 10071 ;; 10072 *) 10073 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 10074 LD="${LD-ld} -64" 10075 fi 10076 ;; 10077 esac 10078 ;; 10079 esac 10080 fi 10081 rm -rf conftest* 10082 ;; 10083esac 10084 10085need_locks=$enable_libtool_lock 10086 10087if test -n "$ac_tool_prefix"; then 10088 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 10089set dummy ${ac_tool_prefix}mt; ac_word=$2 10090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10091$as_echo_n "checking for $ac_word... " >&6; } 10092if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 10093 $as_echo_n "(cached) " >&6 10094else 10095 if test -n "$MANIFEST_TOOL"; then 10096 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 10097else 10098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10099for as_dir in $PATH 10100do 10101 IFS=$as_save_IFS 10102 test -z "$as_dir" && as_dir=. 10103 for ac_exec_ext in '' $ac_executable_extensions; do 10104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10105 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 10106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10107 break 2 10108 fi 10109done 10110 done 10111IFS=$as_save_IFS 10112 10113fi 10114fi 10115MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 10116if test -n "$MANIFEST_TOOL"; then 10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 10118$as_echo "$MANIFEST_TOOL" >&6; } 10119else 10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10121$as_echo "no" >&6; } 10122fi 10123 10124 10125fi 10126if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 10127 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 10128 # Extract the first word of "mt", so it can be a program name with args. 10129set dummy mt; ac_word=$2 10130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10131$as_echo_n "checking for $ac_word... " >&6; } 10132if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 10133 $as_echo_n "(cached) " >&6 10134else 10135 if test -n "$ac_ct_MANIFEST_TOOL"; then 10136 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 10137else 10138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10139for as_dir in $PATH 10140do 10141 IFS=$as_save_IFS 10142 test -z "$as_dir" && as_dir=. 10143 for ac_exec_ext in '' $ac_executable_extensions; do 10144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10145 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 10146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10147 break 2 10148 fi 10149done 10150 done 10151IFS=$as_save_IFS 10152 10153fi 10154fi 10155ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 10156if test -n "$ac_ct_MANIFEST_TOOL"; then 10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 10158$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 10159else 10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10161$as_echo "no" >&6; } 10162fi 10163 10164 if test "x$ac_ct_MANIFEST_TOOL" = x; then 10165 MANIFEST_TOOL=":" 10166 else 10167 case $cross_compiling:$ac_tool_warned in 10168yes:) 10169{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10171ac_tool_warned=yes ;; 10172esac 10173 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 10174 fi 10175else 10176 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 10177fi 10178 10179test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 10180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 10181$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 10182if ${lt_cv_path_mainfest_tool+:} false; then : 10183 $as_echo_n "(cached) " >&6 10184else 10185 lt_cv_path_mainfest_tool=no 10186 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 10187 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 10188 cat conftest.err >&5 10189 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 10190 lt_cv_path_mainfest_tool=yes 10191 fi 10192 rm -f conftest* 10193fi 10194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 10195$as_echo "$lt_cv_path_mainfest_tool" >&6; } 10196if test yes != "$lt_cv_path_mainfest_tool"; then 10197 MANIFEST_TOOL=: 10198fi 10199 10200 10201 10202 10203 10204 10205 case $host_os in 10206 rhapsody* | darwin*) 10207 if test -n "$ac_tool_prefix"; then 10208 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 10209set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 10210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10211$as_echo_n "checking for $ac_word... " >&6; } 10212if ${ac_cv_prog_DSYMUTIL+:} false; then : 10213 $as_echo_n "(cached) " >&6 10214else 10215 if test -n "$DSYMUTIL"; then 10216 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 10217else 10218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10219for as_dir in $PATH 10220do 10221 IFS=$as_save_IFS 10222 test -z "$as_dir" && as_dir=. 10223 for ac_exec_ext in '' $ac_executable_extensions; do 10224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10225 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 10226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10227 break 2 10228 fi 10229done 10230 done 10231IFS=$as_save_IFS 10232 10233fi 10234fi 10235DSYMUTIL=$ac_cv_prog_DSYMUTIL 10236if test -n "$DSYMUTIL"; then 10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 10238$as_echo "$DSYMUTIL" >&6; } 10239else 10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10241$as_echo "no" >&6; } 10242fi 10243 10244 10245fi 10246if test -z "$ac_cv_prog_DSYMUTIL"; then 10247 ac_ct_DSYMUTIL=$DSYMUTIL 10248 # Extract the first word of "dsymutil", so it can be a program name with args. 10249set dummy dsymutil; ac_word=$2 10250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10251$as_echo_n "checking for $ac_word... " >&6; } 10252if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 10253 $as_echo_n "(cached) " >&6 10254else 10255 if test -n "$ac_ct_DSYMUTIL"; then 10256 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 10257else 10258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10259for as_dir in $PATH 10260do 10261 IFS=$as_save_IFS 10262 test -z "$as_dir" && as_dir=. 10263 for ac_exec_ext in '' $ac_executable_extensions; do 10264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10265 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 10266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10267 break 2 10268 fi 10269done 10270 done 10271IFS=$as_save_IFS 10272 10273fi 10274fi 10275ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 10276if test -n "$ac_ct_DSYMUTIL"; then 10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 10278$as_echo "$ac_ct_DSYMUTIL" >&6; } 10279else 10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10281$as_echo "no" >&6; } 10282fi 10283 10284 if test "x$ac_ct_DSYMUTIL" = x; then 10285 DSYMUTIL=":" 10286 else 10287 case $cross_compiling:$ac_tool_warned in 10288yes:) 10289{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10290$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10291ac_tool_warned=yes ;; 10292esac 10293 DSYMUTIL=$ac_ct_DSYMUTIL 10294 fi 10295else 10296 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 10297fi 10298 10299 if test -n "$ac_tool_prefix"; then 10300 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 10301set dummy ${ac_tool_prefix}nmedit; ac_word=$2 10302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10303$as_echo_n "checking for $ac_word... " >&6; } 10304if ${ac_cv_prog_NMEDIT+:} false; then : 10305 $as_echo_n "(cached) " >&6 10306else 10307 if test -n "$NMEDIT"; then 10308 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 10309else 10310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10311for as_dir in $PATH 10312do 10313 IFS=$as_save_IFS 10314 test -z "$as_dir" && as_dir=. 10315 for ac_exec_ext in '' $ac_executable_extensions; do 10316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10317 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 10318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10319 break 2 10320 fi 10321done 10322 done 10323IFS=$as_save_IFS 10324 10325fi 10326fi 10327NMEDIT=$ac_cv_prog_NMEDIT 10328if test -n "$NMEDIT"; then 10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 10330$as_echo "$NMEDIT" >&6; } 10331else 10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10333$as_echo "no" >&6; } 10334fi 10335 10336 10337fi 10338if test -z "$ac_cv_prog_NMEDIT"; then 10339 ac_ct_NMEDIT=$NMEDIT 10340 # Extract the first word of "nmedit", so it can be a program name with args. 10341set dummy nmedit; ac_word=$2 10342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10343$as_echo_n "checking for $ac_word... " >&6; } 10344if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 10345 $as_echo_n "(cached) " >&6 10346else 10347 if test -n "$ac_ct_NMEDIT"; then 10348 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 10349else 10350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10351for as_dir in $PATH 10352do 10353 IFS=$as_save_IFS 10354 test -z "$as_dir" && as_dir=. 10355 for ac_exec_ext in '' $ac_executable_extensions; do 10356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10357 ac_cv_prog_ac_ct_NMEDIT="nmedit" 10358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10359 break 2 10360 fi 10361done 10362 done 10363IFS=$as_save_IFS 10364 10365fi 10366fi 10367ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 10368if test -n "$ac_ct_NMEDIT"; then 10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 10370$as_echo "$ac_ct_NMEDIT" >&6; } 10371else 10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10373$as_echo "no" >&6; } 10374fi 10375 10376 if test "x$ac_ct_NMEDIT" = x; then 10377 NMEDIT=":" 10378 else 10379 case $cross_compiling:$ac_tool_warned in 10380yes:) 10381{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10382$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10383ac_tool_warned=yes ;; 10384esac 10385 NMEDIT=$ac_ct_NMEDIT 10386 fi 10387else 10388 NMEDIT="$ac_cv_prog_NMEDIT" 10389fi 10390 10391 if test -n "$ac_tool_prefix"; then 10392 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 10393set dummy ${ac_tool_prefix}lipo; ac_word=$2 10394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10395$as_echo_n "checking for $ac_word... " >&6; } 10396if ${ac_cv_prog_LIPO+:} false; then : 10397 $as_echo_n "(cached) " >&6 10398else 10399 if test -n "$LIPO"; then 10400 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 10401else 10402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10403for as_dir in $PATH 10404do 10405 IFS=$as_save_IFS 10406 test -z "$as_dir" && as_dir=. 10407 for ac_exec_ext in '' $ac_executable_extensions; do 10408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10409 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 10410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10411 break 2 10412 fi 10413done 10414 done 10415IFS=$as_save_IFS 10416 10417fi 10418fi 10419LIPO=$ac_cv_prog_LIPO 10420if test -n "$LIPO"; then 10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 10422$as_echo "$LIPO" >&6; } 10423else 10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10425$as_echo "no" >&6; } 10426fi 10427 10428 10429fi 10430if test -z "$ac_cv_prog_LIPO"; then 10431 ac_ct_LIPO=$LIPO 10432 # Extract the first word of "lipo", so it can be a program name with args. 10433set dummy lipo; ac_word=$2 10434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10435$as_echo_n "checking for $ac_word... " >&6; } 10436if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 10437 $as_echo_n "(cached) " >&6 10438else 10439 if test -n "$ac_ct_LIPO"; then 10440 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 10441else 10442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10443for as_dir in $PATH 10444do 10445 IFS=$as_save_IFS 10446 test -z "$as_dir" && as_dir=. 10447 for ac_exec_ext in '' $ac_executable_extensions; do 10448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10449 ac_cv_prog_ac_ct_LIPO="lipo" 10450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10451 break 2 10452 fi 10453done 10454 done 10455IFS=$as_save_IFS 10456 10457fi 10458fi 10459ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 10460if test -n "$ac_ct_LIPO"; then 10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 10462$as_echo "$ac_ct_LIPO" >&6; } 10463else 10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10465$as_echo "no" >&6; } 10466fi 10467 10468 if test "x$ac_ct_LIPO" = x; then 10469 LIPO=":" 10470 else 10471 case $cross_compiling:$ac_tool_warned in 10472yes:) 10473{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10474$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10475ac_tool_warned=yes ;; 10476esac 10477 LIPO=$ac_ct_LIPO 10478 fi 10479else 10480 LIPO="$ac_cv_prog_LIPO" 10481fi 10482 10483 if test -n "$ac_tool_prefix"; then 10484 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 10485set dummy ${ac_tool_prefix}otool; ac_word=$2 10486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10487$as_echo_n "checking for $ac_word... " >&6; } 10488if ${ac_cv_prog_OTOOL+:} false; then : 10489 $as_echo_n "(cached) " >&6 10490else 10491 if test -n "$OTOOL"; then 10492 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 10493else 10494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10495for as_dir in $PATH 10496do 10497 IFS=$as_save_IFS 10498 test -z "$as_dir" && as_dir=. 10499 for ac_exec_ext in '' $ac_executable_extensions; do 10500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10501 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 10502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10503 break 2 10504 fi 10505done 10506 done 10507IFS=$as_save_IFS 10508 10509fi 10510fi 10511OTOOL=$ac_cv_prog_OTOOL 10512if test -n "$OTOOL"; then 10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 10514$as_echo "$OTOOL" >&6; } 10515else 10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10517$as_echo "no" >&6; } 10518fi 10519 10520 10521fi 10522if test -z "$ac_cv_prog_OTOOL"; then 10523 ac_ct_OTOOL=$OTOOL 10524 # Extract the first word of "otool", so it can be a program name with args. 10525set dummy otool; ac_word=$2 10526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10527$as_echo_n "checking for $ac_word... " >&6; } 10528if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 10529 $as_echo_n "(cached) " >&6 10530else 10531 if test -n "$ac_ct_OTOOL"; then 10532 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 10533else 10534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10535for as_dir in $PATH 10536do 10537 IFS=$as_save_IFS 10538 test -z "$as_dir" && as_dir=. 10539 for ac_exec_ext in '' $ac_executable_extensions; do 10540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10541 ac_cv_prog_ac_ct_OTOOL="otool" 10542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10543 break 2 10544 fi 10545done 10546 done 10547IFS=$as_save_IFS 10548 10549fi 10550fi 10551ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 10552if test -n "$ac_ct_OTOOL"; then 10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 10554$as_echo "$ac_ct_OTOOL" >&6; } 10555else 10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10557$as_echo "no" >&6; } 10558fi 10559 10560 if test "x$ac_ct_OTOOL" = x; then 10561 OTOOL=":" 10562 else 10563 case $cross_compiling:$ac_tool_warned in 10564yes:) 10565{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10566$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10567ac_tool_warned=yes ;; 10568esac 10569 OTOOL=$ac_ct_OTOOL 10570 fi 10571else 10572 OTOOL="$ac_cv_prog_OTOOL" 10573fi 10574 10575 if test -n "$ac_tool_prefix"; then 10576 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 10577set dummy ${ac_tool_prefix}otool64; ac_word=$2 10578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10579$as_echo_n "checking for $ac_word... " >&6; } 10580if ${ac_cv_prog_OTOOL64+:} false; then : 10581 $as_echo_n "(cached) " >&6 10582else 10583 if test -n "$OTOOL64"; then 10584 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 10585else 10586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10587for as_dir in $PATH 10588do 10589 IFS=$as_save_IFS 10590 test -z "$as_dir" && as_dir=. 10591 for ac_exec_ext in '' $ac_executable_extensions; do 10592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10593 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 10594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10595 break 2 10596 fi 10597done 10598 done 10599IFS=$as_save_IFS 10600 10601fi 10602fi 10603OTOOL64=$ac_cv_prog_OTOOL64 10604if test -n "$OTOOL64"; then 10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 10606$as_echo "$OTOOL64" >&6; } 10607else 10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10609$as_echo "no" >&6; } 10610fi 10611 10612 10613fi 10614if test -z "$ac_cv_prog_OTOOL64"; then 10615 ac_ct_OTOOL64=$OTOOL64 10616 # Extract the first word of "otool64", so it can be a program name with args. 10617set dummy otool64; ac_word=$2 10618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10619$as_echo_n "checking for $ac_word... " >&6; } 10620if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 10621 $as_echo_n "(cached) " >&6 10622else 10623 if test -n "$ac_ct_OTOOL64"; then 10624 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 10625else 10626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10627for as_dir in $PATH 10628do 10629 IFS=$as_save_IFS 10630 test -z "$as_dir" && as_dir=. 10631 for ac_exec_ext in '' $ac_executable_extensions; do 10632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10633 ac_cv_prog_ac_ct_OTOOL64="otool64" 10634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10635 break 2 10636 fi 10637done 10638 done 10639IFS=$as_save_IFS 10640 10641fi 10642fi 10643ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 10644if test -n "$ac_ct_OTOOL64"; then 10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 10646$as_echo "$ac_ct_OTOOL64" >&6; } 10647else 10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10649$as_echo "no" >&6; } 10650fi 10651 10652 if test "x$ac_ct_OTOOL64" = x; then 10653 OTOOL64=":" 10654 else 10655 case $cross_compiling:$ac_tool_warned in 10656yes:) 10657{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10658$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10659ac_tool_warned=yes ;; 10660esac 10661 OTOOL64=$ac_ct_OTOOL64 10662 fi 10663else 10664 OTOOL64="$ac_cv_prog_OTOOL64" 10665fi 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 10694$as_echo_n "checking for -single_module linker flag... " >&6; } 10695if ${lt_cv_apple_cc_single_mod+:} false; then : 10696 $as_echo_n "(cached) " >&6 10697else 10698 lt_cv_apple_cc_single_mod=no 10699 if test -z "$LT_MULTI_MODULE"; then 10700 # By default we will add the -single_module flag. You can override 10701 # by either setting the environment variable LT_MULTI_MODULE 10702 # non-empty at configure time, or by adding -multi_module to the 10703 # link flags. 10704 rm -rf libconftest.dylib* 10705 echo "int foo(void){return 1;}" > conftest.c 10706 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10707-dynamiclib -Wl,-single_module conftest.c" >&5 10708 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10709 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 10710 _lt_result=$? 10711 # If there is a non-empty error log, and "single_module" 10712 # appears in it, assume the flag caused a linker warning 10713 if test -s conftest.err && $GREP single_module conftest.err; then 10714 cat conftest.err >&5 10715 # Otherwise, if the output was created with a 0 exit code from 10716 # the compiler, it worked. 10717 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 10718 lt_cv_apple_cc_single_mod=yes 10719 else 10720 cat conftest.err >&5 10721 fi 10722 rm -rf libconftest.dylib* 10723 rm -f conftest.* 10724 fi 10725fi 10726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 10727$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 10728 10729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 10730$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 10731if ${lt_cv_ld_exported_symbols_list+:} false; then : 10732 $as_echo_n "(cached) " >&6 10733else 10734 lt_cv_ld_exported_symbols_list=no 10735 save_LDFLAGS=$LDFLAGS 10736 echo "_main" > conftest.sym 10737 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 10738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10739/* end confdefs.h. */ 10740 10741int 10742main () 10743{ 10744 10745 ; 10746 return 0; 10747} 10748_ACEOF 10749if ac_fn_c_try_link "$LINENO"; then : 10750 lt_cv_ld_exported_symbols_list=yes 10751else 10752 lt_cv_ld_exported_symbols_list=no 10753fi 10754rm -f core conftest.err conftest.$ac_objext \ 10755 conftest$ac_exeext conftest.$ac_ext 10756 LDFLAGS=$save_LDFLAGS 10757 10758fi 10759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 10760$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 10761 10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 10763$as_echo_n "checking for -force_load linker flag... " >&6; } 10764if ${lt_cv_ld_force_load+:} false; then : 10765 $as_echo_n "(cached) " >&6 10766else 10767 lt_cv_ld_force_load=no 10768 cat > conftest.c << _LT_EOF 10769int forced_loaded() { return 2;} 10770_LT_EOF 10771 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 10772 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 10773 echo "$AR cru libconftest.a conftest.o" >&5 10774 $AR cru libconftest.a conftest.o 2>&5 10775 echo "$RANLIB libconftest.a" >&5 10776 $RANLIB libconftest.a 2>&5 10777 cat > conftest.c << _LT_EOF 10778int main() { return 0;} 10779_LT_EOF 10780 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 10781 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 10782 _lt_result=$? 10783 if test -s conftest.err && $GREP force_load conftest.err; then 10784 cat conftest.err >&5 10785 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 10786 lt_cv_ld_force_load=yes 10787 else 10788 cat conftest.err >&5 10789 fi 10790 rm -f conftest.err libconftest.a conftest conftest.c 10791 rm -rf conftest.dSYM 10792 10793fi 10794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 10795$as_echo "$lt_cv_ld_force_load" >&6; } 10796 case $host_os in 10797 rhapsody* | darwin1.[012]) 10798 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 10799 darwin1.*) 10800 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10801 darwin*) # darwin 5.x on 10802 # if running on 10.5 or later, the deployment target defaults 10803 # to the OS version, if on x86, and 10.4, the deployment 10804 # target defaults to 10.4. Don't you love it? 10805 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10806 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 10807 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10808 10.[012][,.]*) 10809 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10810 10.*) 10811 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10812 esac 10813 ;; 10814 esac 10815 if test yes = "$lt_cv_apple_cc_single_mod"; then 10816 _lt_dar_single_mod='$single_module' 10817 fi 10818 if test yes = "$lt_cv_ld_exported_symbols_list"; then 10819 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 10820 else 10821 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 10822 fi 10823 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 10824 _lt_dsymutil='~$DSYMUTIL $lib || :' 10825 else 10826 _lt_dsymutil= 10827 fi 10828 ;; 10829 esac 10830 10831# func_munge_path_list VARIABLE PATH 10832# ----------------------------------- 10833# VARIABLE is name of variable containing _space_ separated list of 10834# directories to be munged by the contents of PATH, which is string 10835# having a format: 10836# "DIR[:DIR]:" 10837# string "DIR[ DIR]" will be prepended to VARIABLE 10838# ":DIR[:DIR]" 10839# string "DIR[ DIR]" will be appended to VARIABLE 10840# "DIRP[:DIRP]::[DIRA:]DIRA" 10841# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 10842# "DIRA[ DIRA]" will be appended to VARIABLE 10843# "DIR[:DIR]" 10844# VARIABLE will be replaced by "DIR[ DIR]" 10845func_munge_path_list () 10846{ 10847 case x$2 in 10848 x) 10849 ;; 10850 *:) 10851 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 10852 ;; 10853 x:*) 10854 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 10855 ;; 10856 *::*) 10857 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 10858 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 10859 ;; 10860 *) 10861 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 10862 ;; 10863 esac 10864} 10865 10866for ac_header in dlfcn.h 10867do : 10868 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 10869" 10870if test "x$ac_cv_header_dlfcn_h" = xyes; then : 10871 cat >>confdefs.h <<_ACEOF 10872#define HAVE_DLFCN_H 1 10873_ACEOF 10874 10875fi 10876 10877done 10878 10879 10880 10881func_stripname_cnf () 10882{ 10883 case $2 in 10884 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 10885 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 10886 esac 10887} # func_stripname_cnf 10888 10889 10890 10891 10892 10893# Set options 10894 10895 10896 10897 enable_dlopen=no 10898 10899 10900 enable_win32_dll=no 10901 10902 10903 # Check whether --enable-shared was given. 10904if test "${enable_shared+set}" = set; then : 10905 enableval=$enable_shared; p=${PACKAGE-default} 10906 case $enableval in 10907 yes) enable_shared=yes ;; 10908 no) enable_shared=no ;; 10909 *) 10910 enable_shared=no 10911 # Look at the argument we got. We use all the common list separators. 10912 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10913 for pkg in $enableval; do 10914 IFS=$lt_save_ifs 10915 if test "X$pkg" = "X$p"; then 10916 enable_shared=yes 10917 fi 10918 done 10919 IFS=$lt_save_ifs 10920 ;; 10921 esac 10922else 10923 enable_shared=yes 10924fi 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 # Check whether --enable-static was given. 10935if test "${enable_static+set}" = set; then : 10936 enableval=$enable_static; p=${PACKAGE-default} 10937 case $enableval in 10938 yes) enable_static=yes ;; 10939 no) enable_static=no ;; 10940 *) 10941 enable_static=no 10942 # Look at the argument we got. We use all the common list separators. 10943 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10944 for pkg in $enableval; do 10945 IFS=$lt_save_ifs 10946 if test "X$pkg" = "X$p"; then 10947 enable_static=yes 10948 fi 10949 done 10950 IFS=$lt_save_ifs 10951 ;; 10952 esac 10953else 10954 enable_static=yes 10955fi 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966# Check whether --with-pic was given. 10967if test "${with_pic+set}" = set; then : 10968 withval=$with_pic; lt_p=${PACKAGE-default} 10969 case $withval in 10970 yes|no) pic_mode=$withval ;; 10971 *) 10972 pic_mode=default 10973 # Look at the argument we got. We use all the common list separators. 10974 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10975 for lt_pkg in $withval; do 10976 IFS=$lt_save_ifs 10977 if test "X$lt_pkg" = "X$lt_p"; then 10978 pic_mode=yes 10979 fi 10980 done 10981 IFS=$lt_save_ifs 10982 ;; 10983 esac 10984else 10985 pic_mode=default 10986fi 10987 10988 10989 10990 10991 10992 10993 10994 10995 # Check whether --enable-fast-install was given. 10996if test "${enable_fast_install+set}" = set; then : 10997 enableval=$enable_fast_install; p=${PACKAGE-default} 10998 case $enableval in 10999 yes) enable_fast_install=yes ;; 11000 no) enable_fast_install=no ;; 11001 *) 11002 enable_fast_install=no 11003 # Look at the argument we got. We use all the common list separators. 11004 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11005 for pkg in $enableval; do 11006 IFS=$lt_save_ifs 11007 if test "X$pkg" = "X$p"; then 11008 enable_fast_install=yes 11009 fi 11010 done 11011 IFS=$lt_save_ifs 11012 ;; 11013 esac 11014else 11015 enable_fast_install=yes 11016fi 11017 11018 11019 11020 11021 11022 11023 11024 11025 shared_archive_member_spec= 11026case $host,$enable_shared in 11027power*-*-aix[5-9]*,yes) 11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 11029$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 11030 11031# Check whether --with-aix-soname was given. 11032if test "${with_aix_soname+set}" = set; then : 11033 withval=$with_aix_soname; case $withval in 11034 aix|svr4|both) 11035 ;; 11036 *) 11037 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 11038 ;; 11039 esac 11040 lt_cv_with_aix_soname=$with_aix_soname 11041else 11042 if ${lt_cv_with_aix_soname+:} false; then : 11043 $as_echo_n "(cached) " >&6 11044else 11045 lt_cv_with_aix_soname=aix 11046fi 11047 11048 with_aix_soname=$lt_cv_with_aix_soname 11049fi 11050 11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 11052$as_echo "$with_aix_soname" >&6; } 11053 if test aix != "$with_aix_soname"; then 11054 # For the AIX way of multilib, we name the shared archive member 11055 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 11056 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 11057 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 11058 # the AIX toolchain works better with OBJECT_MODE set (default 32). 11059 if test 64 = "${OBJECT_MODE-32}"; then 11060 shared_archive_member_spec=shr_64 11061 else 11062 shared_archive_member_spec=shr 11063 fi 11064 fi 11065 ;; 11066*) 11067 with_aix_soname=aix 11068 ;; 11069esac 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080# This can be used to rebuild libtool when needed 11081LIBTOOL_DEPS=$ltmain 11082 11083# Always use our own libtool. 11084LIBTOOL='$(SHELL) $(top_builddir)/libtool' 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115test -z "$LN_S" && LN_S="ln -s" 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130if test -n "${ZSH_VERSION+set}"; then 11131 setopt NO_GLOB_SUBST 11132fi 11133 11134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 11135$as_echo_n "checking for objdir... " >&6; } 11136if ${lt_cv_objdir+:} false; then : 11137 $as_echo_n "(cached) " >&6 11138else 11139 rm -f .libs 2>/dev/null 11140mkdir .libs 2>/dev/null 11141if test -d .libs; then 11142 lt_cv_objdir=.libs 11143else 11144 # MS-DOS does not allow filenames that begin with a dot. 11145 lt_cv_objdir=_libs 11146fi 11147rmdir .libs 2>/dev/null 11148fi 11149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 11150$as_echo "$lt_cv_objdir" >&6; } 11151objdir=$lt_cv_objdir 11152 11153 11154 11155 11156 11157cat >>confdefs.h <<_ACEOF 11158#define LT_OBJDIR "$lt_cv_objdir/" 11159_ACEOF 11160 11161 11162 11163 11164case $host_os in 11165aix3*) 11166 # AIX sometimes has problems with the GCC collect2 program. For some 11167 # reason, if we set the COLLECT_NAMES environment variable, the problems 11168 # vanish in a puff of smoke. 11169 if test set != "${COLLECT_NAMES+set}"; then 11170 COLLECT_NAMES= 11171 export COLLECT_NAMES 11172 fi 11173 ;; 11174esac 11175 11176# Global variables: 11177ofile=libtool 11178can_build_shared=yes 11179 11180# All known linkers require a '.a' archive for static linking (except MSVC, 11181# which needs '.lib'). 11182libext=a 11183 11184with_gnu_ld=$lt_cv_prog_gnu_ld 11185 11186old_CC=$CC 11187old_CFLAGS=$CFLAGS 11188 11189# Set sane defaults for various variables 11190test -z "$CC" && CC=cc 11191test -z "$LTCC" && LTCC=$CC 11192test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 11193test -z "$LD" && LD=ld 11194test -z "$ac_objext" && ac_objext=o 11195 11196func_cc_basename $compiler 11197cc_basename=$func_cc_basename_result 11198 11199 11200# Only perform the check for file, if the check method requires it 11201test -z "$MAGIC_CMD" && MAGIC_CMD=file 11202case $deplibs_check_method in 11203file_magic*) 11204 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 11206$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 11207if ${lt_cv_path_MAGIC_CMD+:} false; then : 11208 $as_echo_n "(cached) " >&6 11209else 11210 case $MAGIC_CMD in 11211[\\/*] | ?:[\\/]*) 11212 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 11213 ;; 11214*) 11215 lt_save_MAGIC_CMD=$MAGIC_CMD 11216 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11217 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11218 for ac_dir in $ac_dummy; do 11219 IFS=$lt_save_ifs 11220 test -z "$ac_dir" && ac_dir=. 11221 if test -f "$ac_dir/${ac_tool_prefix}file"; then 11222 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 11223 if test -n "$file_magic_test_file"; then 11224 case $deplibs_check_method in 11225 "file_magic "*) 11226 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11227 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11228 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11229 $EGREP "$file_magic_regex" > /dev/null; then 11230 : 11231 else 11232 cat <<_LT_EOF 1>&2 11233 11234*** Warning: the command libtool uses to detect shared libraries, 11235*** $file_magic_cmd, produces output that libtool cannot recognize. 11236*** The result is that libtool may fail to recognize shared libraries 11237*** as such. This will affect the creation of libtool libraries that 11238*** depend on shared libraries, but programs linked with such libtool 11239*** libraries will work regardless of this problem. Nevertheless, you 11240*** may want to report the problem to your system manager and/or to 11241*** bug-libtool@gnu.org 11242 11243_LT_EOF 11244 fi ;; 11245 esac 11246 fi 11247 break 11248 fi 11249 done 11250 IFS=$lt_save_ifs 11251 MAGIC_CMD=$lt_save_MAGIC_CMD 11252 ;; 11253esac 11254fi 11255 11256MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11257if test -n "$MAGIC_CMD"; then 11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11259$as_echo "$MAGIC_CMD" >&6; } 11260else 11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11262$as_echo "no" >&6; } 11263fi 11264 11265 11266 11267 11268 11269if test -z "$lt_cv_path_MAGIC_CMD"; then 11270 if test -n "$ac_tool_prefix"; then 11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 11272$as_echo_n "checking for file... " >&6; } 11273if ${lt_cv_path_MAGIC_CMD+:} false; then : 11274 $as_echo_n "(cached) " >&6 11275else 11276 case $MAGIC_CMD in 11277[\\/*] | ?:[\\/]*) 11278 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 11279 ;; 11280*) 11281 lt_save_MAGIC_CMD=$MAGIC_CMD 11282 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11283 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11284 for ac_dir in $ac_dummy; do 11285 IFS=$lt_save_ifs 11286 test -z "$ac_dir" && ac_dir=. 11287 if test -f "$ac_dir/file"; then 11288 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 11289 if test -n "$file_magic_test_file"; then 11290 case $deplibs_check_method in 11291 "file_magic "*) 11292 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11293 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11294 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11295 $EGREP "$file_magic_regex" > /dev/null; then 11296 : 11297 else 11298 cat <<_LT_EOF 1>&2 11299 11300*** Warning: the command libtool uses to detect shared libraries, 11301*** $file_magic_cmd, produces output that libtool cannot recognize. 11302*** The result is that libtool may fail to recognize shared libraries 11303*** as such. This will affect the creation of libtool libraries that 11304*** depend on shared libraries, but programs linked with such libtool 11305*** libraries will work regardless of this problem. Nevertheless, you 11306*** may want to report the problem to your system manager and/or to 11307*** bug-libtool@gnu.org 11308 11309_LT_EOF 11310 fi ;; 11311 esac 11312 fi 11313 break 11314 fi 11315 done 11316 IFS=$lt_save_ifs 11317 MAGIC_CMD=$lt_save_MAGIC_CMD 11318 ;; 11319esac 11320fi 11321 11322MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11323if test -n "$MAGIC_CMD"; then 11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11325$as_echo "$MAGIC_CMD" >&6; } 11326else 11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11328$as_echo "no" >&6; } 11329fi 11330 11331 11332 else 11333 MAGIC_CMD=: 11334 fi 11335fi 11336 11337 fi 11338 ;; 11339esac 11340 11341# Use C for the default configuration in the libtool script 11342 11343lt_save_CC=$CC 11344ac_ext=c 11345ac_cpp='$CPP $CPPFLAGS' 11346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11348ac_compiler_gnu=$ac_cv_c_compiler_gnu 11349 11350 11351# Source file extension for C test sources. 11352ac_ext=c 11353 11354# Object file extension for compiled C test sources. 11355objext=o 11356objext=$objext 11357 11358# Code to be used in simple compile tests 11359lt_simple_compile_test_code="int some_variable = 0;" 11360 11361# Code to be used in simple link tests 11362lt_simple_link_test_code='int main(){return(0);}' 11363 11364 11365 11366 11367 11368 11369 11370# If no C compiler was specified, use CC. 11371LTCC=${LTCC-"$CC"} 11372 11373# If no C compiler flags were specified, use CFLAGS. 11374LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11375 11376# Allow CC to be a program name with arguments. 11377compiler=$CC 11378 11379# Save the default compiler, since it gets overwritten when the other 11380# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 11381compiler_DEFAULT=$CC 11382 11383# save warnings/boilerplate of simple test code 11384ac_outfile=conftest.$ac_objext 11385echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11386eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11387_lt_compiler_boilerplate=`cat conftest.err` 11388$RM conftest* 11389 11390ac_outfile=conftest.$ac_objext 11391echo "$lt_simple_link_test_code" >conftest.$ac_ext 11392eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11393_lt_linker_boilerplate=`cat conftest.err` 11394$RM -r conftest* 11395 11396 11397## CAVEAT EMPTOR: 11398## There is no encapsulation within the following macros, do not change 11399## the running order or otherwise move them around unless you know exactly 11400## what you are doing... 11401if test -n "$compiler"; then 11402 11403lt_prog_compiler_no_builtin_flag= 11404 11405if test yes = "$GCC"; then 11406 case $cc_basename in 11407 nvcc*) 11408 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 11409 *) 11410 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 11411 esac 11412 11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 11414$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 11415if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 11416 $as_echo_n "(cached) " >&6 11417else 11418 lt_cv_prog_compiler_rtti_exceptions=no 11419 ac_outfile=conftest.$ac_objext 11420 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11421 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 11422 # Insert the option either (1) after the last *FLAGS variable, or 11423 # (2) before a word containing "conftest.", or (3) at the end. 11424 # Note that $ac_compile itself does not contain backslashes and begins 11425 # with a dollar sign (not a hyphen), so the echo should work correctly. 11426 # The option is referenced via a variable to avoid confusing sed. 11427 lt_compile=`echo "$ac_compile" | $SED \ 11428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11430 -e 's:$: $lt_compiler_flag:'` 11431 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11432 (eval "$lt_compile" 2>conftest.err) 11433 ac_status=$? 11434 cat conftest.err >&5 11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11436 if (exit $ac_status) && test -s "$ac_outfile"; then 11437 # The compiler can only warn and ignore the option if not recognized 11438 # So say no if there are warnings other than the usual output. 11439 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11440 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11441 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11442 lt_cv_prog_compiler_rtti_exceptions=yes 11443 fi 11444 fi 11445 $RM conftest* 11446 11447fi 11448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 11449$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 11450 11451if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 11452 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 11453else 11454 : 11455fi 11456 11457fi 11458 11459 11460 11461 11462 11463 11464 lt_prog_compiler_wl= 11465lt_prog_compiler_pic= 11466lt_prog_compiler_static= 11467 11468 11469 if test yes = "$GCC"; then 11470 lt_prog_compiler_wl='-Wl,' 11471 lt_prog_compiler_static='-static' 11472 11473 case $host_os in 11474 aix*) 11475 # All AIX code is PIC. 11476 if test ia64 = "$host_cpu"; then 11477 # AIX 5 now supports IA64 processor 11478 lt_prog_compiler_static='-Bstatic' 11479 fi 11480 lt_prog_compiler_pic='-fPIC' 11481 ;; 11482 11483 amigaos*) 11484 case $host_cpu in 11485 powerpc) 11486 # see comment about AmigaOS4 .so support 11487 lt_prog_compiler_pic='-fPIC' 11488 ;; 11489 m68k) 11490 # FIXME: we need at least 68020 code to build shared libraries, but 11491 # adding the '-m68020' flag to GCC prevents building anything better, 11492 # like '-m68040'. 11493 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 11494 ;; 11495 esac 11496 ;; 11497 11498 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11499 # PIC is the default for these OSes. 11500 ;; 11501 11502 mingw* | cygwin* | pw32* | os2* | cegcc*) 11503 # This hack is so that the source file can tell whether it is being 11504 # built for inclusion in a dll (and should export symbols for example). 11505 # Although the cygwin gcc ignores -fPIC, still need this for old-style 11506 # (--disable-auto-import) libraries 11507 lt_prog_compiler_pic='-DDLL_EXPORT' 11508 case $host_os in 11509 os2*) 11510 lt_prog_compiler_static='$wl-static' 11511 ;; 11512 esac 11513 ;; 11514 11515 darwin* | rhapsody*) 11516 # PIC is the default on this platform 11517 # Common symbols not allowed in MH_DYLIB files 11518 lt_prog_compiler_pic='-fno-common' 11519 ;; 11520 11521 haiku*) 11522 # PIC is the default for Haiku. 11523 # The "-static" flag exists, but is broken. 11524 lt_prog_compiler_static= 11525 ;; 11526 11527 hpux*) 11528 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 11529 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 11530 # sets the default TLS model and affects inlining. 11531 case $host_cpu in 11532 hppa*64*) 11533 # +Z the default 11534 ;; 11535 *) 11536 lt_prog_compiler_pic='-fPIC' 11537 ;; 11538 esac 11539 ;; 11540 11541 interix[3-9]*) 11542 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11543 # Instead, we relocate shared libraries at runtime. 11544 ;; 11545 11546 msdosdjgpp*) 11547 # Just because we use GCC doesn't mean we suddenly get shared libraries 11548 # on systems that don't support them. 11549 lt_prog_compiler_can_build_shared=no 11550 enable_shared=no 11551 ;; 11552 11553 *nto* | *qnx*) 11554 # QNX uses GNU C++, but need to define -shared option too, otherwise 11555 # it will coredump. 11556 lt_prog_compiler_pic='-fPIC -shared' 11557 ;; 11558 11559 sysv4*MP*) 11560 if test -d /usr/nec; then 11561 lt_prog_compiler_pic=-Kconform_pic 11562 fi 11563 ;; 11564 11565 *) 11566 lt_prog_compiler_pic='-fPIC' 11567 ;; 11568 esac 11569 11570 case $cc_basename in 11571 nvcc*) # Cuda Compiler Driver 2.2 11572 lt_prog_compiler_wl='-Xlinker ' 11573 if test -n "$lt_prog_compiler_pic"; then 11574 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 11575 fi 11576 ;; 11577 esac 11578 else 11579 # PORTME Check for flag to pass linker flags through the system compiler. 11580 case $host_os in 11581 aix*) 11582 lt_prog_compiler_wl='-Wl,' 11583 if test ia64 = "$host_cpu"; then 11584 # AIX 5 now supports IA64 processor 11585 lt_prog_compiler_static='-Bstatic' 11586 else 11587 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 11588 fi 11589 ;; 11590 11591 darwin* | rhapsody*) 11592 # PIC is the default on this platform 11593 # Common symbols not allowed in MH_DYLIB files 11594 lt_prog_compiler_pic='-fno-common' 11595 case $cc_basename in 11596 nagfor*) 11597 # NAG Fortran compiler 11598 lt_prog_compiler_wl='-Wl,-Wl,,' 11599 lt_prog_compiler_pic='-PIC' 11600 lt_prog_compiler_static='-Bstatic' 11601 ;; 11602 esac 11603 ;; 11604 11605 mingw* | cygwin* | pw32* | os2* | cegcc*) 11606 # This hack is so that the source file can tell whether it is being 11607 # built for inclusion in a dll (and should export symbols for example). 11608 lt_prog_compiler_pic='-DDLL_EXPORT' 11609 case $host_os in 11610 os2*) 11611 lt_prog_compiler_static='$wl-static' 11612 ;; 11613 esac 11614 ;; 11615 11616 hpux9* | hpux10* | hpux11*) 11617 lt_prog_compiler_wl='-Wl,' 11618 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11619 # not for PA HP-UX. 11620 case $host_cpu in 11621 hppa*64*|ia64*) 11622 # +Z the default 11623 ;; 11624 *) 11625 lt_prog_compiler_pic='+Z' 11626 ;; 11627 esac 11628 # Is there a better lt_prog_compiler_static that works with the bundled CC? 11629 lt_prog_compiler_static='$wl-a ${wl}archive' 11630 ;; 11631 11632 irix5* | irix6* | nonstopux*) 11633 lt_prog_compiler_wl='-Wl,' 11634 # PIC (with -KPIC) is the default. 11635 lt_prog_compiler_static='-non_shared' 11636 ;; 11637 11638 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11639 case $cc_basename in 11640 # old Intel for x86_64, which still supported -KPIC. 11641 ecc*) 11642 lt_prog_compiler_wl='-Wl,' 11643 lt_prog_compiler_pic='-KPIC' 11644 lt_prog_compiler_static='-static' 11645 ;; 11646 # icc used to be incompatible with GCC. 11647 # ICC 10 doesn't accept -KPIC any more. 11648 icc* | ifort*) 11649 lt_prog_compiler_wl='-Wl,' 11650 lt_prog_compiler_pic='-fPIC' 11651 lt_prog_compiler_static='-static' 11652 ;; 11653 # Lahey Fortran 8.1. 11654 lf95*) 11655 lt_prog_compiler_wl='-Wl,' 11656 lt_prog_compiler_pic='--shared' 11657 lt_prog_compiler_static='--static' 11658 ;; 11659 nagfor*) 11660 # NAG Fortran compiler 11661 lt_prog_compiler_wl='-Wl,-Wl,,' 11662 lt_prog_compiler_pic='-PIC' 11663 lt_prog_compiler_static='-Bstatic' 11664 ;; 11665 tcc*) 11666 # Fabrice Bellard et al's Tiny C Compiler 11667 lt_prog_compiler_wl='-Wl,' 11668 lt_prog_compiler_pic='-fPIC' 11669 lt_prog_compiler_static='-static' 11670 ;; 11671 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 11672 # Portland Group compilers (*not* the Pentium gcc compiler, 11673 # which looks to be a dead project) 11674 lt_prog_compiler_wl='-Wl,' 11675 lt_prog_compiler_pic='-fpic' 11676 lt_prog_compiler_static='-Bstatic' 11677 ;; 11678 ccc*) 11679 lt_prog_compiler_wl='-Wl,' 11680 # All Alpha code is PIC. 11681 lt_prog_compiler_static='-non_shared' 11682 ;; 11683 xl* | bgxl* | bgf* | mpixl*) 11684 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 11685 lt_prog_compiler_wl='-Wl,' 11686 lt_prog_compiler_pic='-qpic' 11687 lt_prog_compiler_static='-qstaticlink' 11688 ;; 11689 *) 11690 case `$CC -V 2>&1 | sed 5q` in 11691 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 11692 # Sun Fortran 8.3 passes all unrecognized flags to the linker 11693 lt_prog_compiler_pic='-KPIC' 11694 lt_prog_compiler_static='-Bstatic' 11695 lt_prog_compiler_wl='' 11696 ;; 11697 *Sun\ F* | *Sun*Fortran*) 11698 lt_prog_compiler_pic='-KPIC' 11699 lt_prog_compiler_static='-Bstatic' 11700 lt_prog_compiler_wl='-Qoption ld ' 11701 ;; 11702 *Sun\ C*) 11703 # Sun C 5.9 11704 lt_prog_compiler_pic='-KPIC' 11705 lt_prog_compiler_static='-Bstatic' 11706 lt_prog_compiler_wl='-Wl,' 11707 ;; 11708 *Intel*\ [CF]*Compiler*) 11709 lt_prog_compiler_wl='-Wl,' 11710 lt_prog_compiler_pic='-fPIC' 11711 lt_prog_compiler_static='-static' 11712 ;; 11713 *Portland\ Group*) 11714 lt_prog_compiler_wl='-Wl,' 11715 lt_prog_compiler_pic='-fpic' 11716 lt_prog_compiler_static='-Bstatic' 11717 ;; 11718 esac 11719 ;; 11720 esac 11721 ;; 11722 11723 newsos6) 11724 lt_prog_compiler_pic='-KPIC' 11725 lt_prog_compiler_static='-Bstatic' 11726 ;; 11727 11728 *nto* | *qnx*) 11729 # QNX uses GNU C++, but need to define -shared option too, otherwise 11730 # it will coredump. 11731 lt_prog_compiler_pic='-fPIC -shared' 11732 ;; 11733 11734 osf3* | osf4* | osf5*) 11735 lt_prog_compiler_wl='-Wl,' 11736 # All OSF/1 code is PIC. 11737 lt_prog_compiler_static='-non_shared' 11738 ;; 11739 11740 rdos*) 11741 lt_prog_compiler_static='-non_shared' 11742 ;; 11743 11744 solaris*) 11745 lt_prog_compiler_pic='-KPIC' 11746 lt_prog_compiler_static='-Bstatic' 11747 case $cc_basename in 11748 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 11749 lt_prog_compiler_wl='-Qoption ld ';; 11750 *) 11751 lt_prog_compiler_wl='-Wl,';; 11752 esac 11753 ;; 11754 11755 sunos4*) 11756 lt_prog_compiler_wl='-Qoption ld ' 11757 lt_prog_compiler_pic='-PIC' 11758 lt_prog_compiler_static='-Bstatic' 11759 ;; 11760 11761 sysv4 | sysv4.2uw2* | sysv4.3*) 11762 lt_prog_compiler_wl='-Wl,' 11763 lt_prog_compiler_pic='-KPIC' 11764 lt_prog_compiler_static='-Bstatic' 11765 ;; 11766 11767 sysv4*MP*) 11768 if test -d /usr/nec; then 11769 lt_prog_compiler_pic='-Kconform_pic' 11770 lt_prog_compiler_static='-Bstatic' 11771 fi 11772 ;; 11773 11774 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11775 lt_prog_compiler_wl='-Wl,' 11776 lt_prog_compiler_pic='-KPIC' 11777 lt_prog_compiler_static='-Bstatic' 11778 ;; 11779 11780 unicos*) 11781 lt_prog_compiler_wl='-Wl,' 11782 lt_prog_compiler_can_build_shared=no 11783 ;; 11784 11785 uts4*) 11786 lt_prog_compiler_pic='-pic' 11787 lt_prog_compiler_static='-Bstatic' 11788 ;; 11789 11790 *) 11791 lt_prog_compiler_can_build_shared=no 11792 ;; 11793 esac 11794 fi 11795 11796case $host_os in 11797 # For platforms that do not support PIC, -DPIC is meaningless: 11798 *djgpp*) 11799 lt_prog_compiler_pic= 11800 ;; 11801 *) 11802 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 11803 ;; 11804esac 11805 11806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 11807$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 11808if ${lt_cv_prog_compiler_pic+:} false; then : 11809 $as_echo_n "(cached) " >&6 11810else 11811 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 11812fi 11813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 11814$as_echo "$lt_cv_prog_compiler_pic" >&6; } 11815lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 11816 11817# 11818# Check to make sure the PIC flag actually works. 11819# 11820if test -n "$lt_prog_compiler_pic"; then 11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 11822$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 11823if ${lt_cv_prog_compiler_pic_works+:} false; then : 11824 $as_echo_n "(cached) " >&6 11825else 11826 lt_cv_prog_compiler_pic_works=no 11827 ac_outfile=conftest.$ac_objext 11828 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11829 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 11830 # Insert the option either (1) after the last *FLAGS variable, or 11831 # (2) before a word containing "conftest.", or (3) at the end. 11832 # Note that $ac_compile itself does not contain backslashes and begins 11833 # with a dollar sign (not a hyphen), so the echo should work correctly. 11834 # The option is referenced via a variable to avoid confusing sed. 11835 lt_compile=`echo "$ac_compile" | $SED \ 11836 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11837 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11838 -e 's:$: $lt_compiler_flag:'` 11839 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11840 (eval "$lt_compile" 2>conftest.err) 11841 ac_status=$? 11842 cat conftest.err >&5 11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11844 if (exit $ac_status) && test -s "$ac_outfile"; then 11845 # The compiler can only warn and ignore the option if not recognized 11846 # So say no if there are warnings other than the usual output. 11847 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11848 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11849 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11850 lt_cv_prog_compiler_pic_works=yes 11851 fi 11852 fi 11853 $RM conftest* 11854 11855fi 11856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 11857$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 11858 11859if test yes = "$lt_cv_prog_compiler_pic_works"; then 11860 case $lt_prog_compiler_pic in 11861 "" | " "*) ;; 11862 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 11863 esac 11864else 11865 lt_prog_compiler_pic= 11866 lt_prog_compiler_can_build_shared=no 11867fi 11868 11869fi 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881# 11882# Check to make sure the static flag actually works. 11883# 11884wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 11885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11886$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 11887if ${lt_cv_prog_compiler_static_works+:} false; then : 11888 $as_echo_n "(cached) " >&6 11889else 11890 lt_cv_prog_compiler_static_works=no 11891 save_LDFLAGS=$LDFLAGS 11892 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11893 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11894 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11895 # The linker can only warn and ignore the option if not recognized 11896 # So say no if there are warnings 11897 if test -s conftest.err; then 11898 # Append any errors to the config.log. 11899 cat conftest.err 1>&5 11900 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11901 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11902 if diff conftest.exp conftest.er2 >/dev/null; then 11903 lt_cv_prog_compiler_static_works=yes 11904 fi 11905 else 11906 lt_cv_prog_compiler_static_works=yes 11907 fi 11908 fi 11909 $RM -r conftest* 11910 LDFLAGS=$save_LDFLAGS 11911 11912fi 11913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 11914$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 11915 11916if test yes = "$lt_cv_prog_compiler_static_works"; then 11917 : 11918else 11919 lt_prog_compiler_static= 11920fi 11921 11922 11923 11924 11925 11926 11927 11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11929$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11930if ${lt_cv_prog_compiler_c_o+:} false; then : 11931 $as_echo_n "(cached) " >&6 11932else 11933 lt_cv_prog_compiler_c_o=no 11934 $RM -r conftest 2>/dev/null 11935 mkdir conftest 11936 cd conftest 11937 mkdir out 11938 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11939 11940 lt_compiler_flag="-o out/conftest2.$ac_objext" 11941 # Insert the option either (1) after the last *FLAGS variable, or 11942 # (2) before a word containing "conftest.", or (3) at the end. 11943 # Note that $ac_compile itself does not contain backslashes and begins 11944 # with a dollar sign (not a hyphen), so the echo should work correctly. 11945 lt_compile=`echo "$ac_compile" | $SED \ 11946 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11947 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11948 -e 's:$: $lt_compiler_flag:'` 11949 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11950 (eval "$lt_compile" 2>out/conftest.err) 11951 ac_status=$? 11952 cat out/conftest.err >&5 11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11954 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11955 then 11956 # The compiler can only warn and ignore the option if not recognized 11957 # So say no if there are warnings 11958 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11959 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11960 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11961 lt_cv_prog_compiler_c_o=yes 11962 fi 11963 fi 11964 chmod u+w . 2>&5 11965 $RM conftest* 11966 # SGI C++ compiler will create directory out/ii_files/ for 11967 # template instantiation 11968 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11969 $RM out/* && rmdir out 11970 cd .. 11971 $RM -r conftest 11972 $RM conftest* 11973 11974fi 11975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11976$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11977 11978 11979 11980 11981 11982 11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11984$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11985if ${lt_cv_prog_compiler_c_o+:} false; then : 11986 $as_echo_n "(cached) " >&6 11987else 11988 lt_cv_prog_compiler_c_o=no 11989 $RM -r conftest 2>/dev/null 11990 mkdir conftest 11991 cd conftest 11992 mkdir out 11993 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11994 11995 lt_compiler_flag="-o out/conftest2.$ac_objext" 11996 # Insert the option either (1) after the last *FLAGS variable, or 11997 # (2) before a word containing "conftest.", or (3) at the end. 11998 # Note that $ac_compile itself does not contain backslashes and begins 11999 # with a dollar sign (not a hyphen), so the echo should work correctly. 12000 lt_compile=`echo "$ac_compile" | $SED \ 12001 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12002 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12003 -e 's:$: $lt_compiler_flag:'` 12004 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12005 (eval "$lt_compile" 2>out/conftest.err) 12006 ac_status=$? 12007 cat out/conftest.err >&5 12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12009 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12010 then 12011 # The compiler can only warn and ignore the option if not recognized 12012 # So say no if there are warnings 12013 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12014 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12015 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12016 lt_cv_prog_compiler_c_o=yes 12017 fi 12018 fi 12019 chmod u+w . 2>&5 12020 $RM conftest* 12021 # SGI C++ compiler will create directory out/ii_files/ for 12022 # template instantiation 12023 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12024 $RM out/* && rmdir out 12025 cd .. 12026 $RM -r conftest 12027 $RM conftest* 12028 12029fi 12030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 12031$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 12032 12033 12034 12035 12036hard_links=nottested 12037if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 12038 # do not overwrite the value of need_locks provided by the user 12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 12040$as_echo_n "checking if we can lock with hard links... " >&6; } 12041 hard_links=yes 12042 $RM conftest* 12043 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12044 touch conftest.a 12045 ln conftest.a conftest.b 2>&5 || hard_links=no 12046 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 12048$as_echo "$hard_links" >&6; } 12049 if test no = "$hard_links"; then 12050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 12051$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 12052 need_locks=warn 12053 fi 12054else 12055 need_locks=no 12056fi 12057 12058 12059 12060 12061 12062 12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12064$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12065 12066 runpath_var= 12067 allow_undefined_flag= 12068 always_export_symbols=no 12069 archive_cmds= 12070 archive_expsym_cmds= 12071 compiler_needs_object=no 12072 enable_shared_with_static_runtimes=no 12073 export_dynamic_flag_spec= 12074 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12075 hardcode_automatic=no 12076 hardcode_direct=no 12077 hardcode_direct_absolute=no 12078 hardcode_libdir_flag_spec= 12079 hardcode_libdir_separator= 12080 hardcode_minus_L=no 12081 hardcode_shlibpath_var=unsupported 12082 inherit_rpath=no 12083 link_all_deplibs=unknown 12084 module_cmds= 12085 module_expsym_cmds= 12086 old_archive_from_new_cmds= 12087 old_archive_from_expsyms_cmds= 12088 thread_safe_flag_spec= 12089 whole_archive_flag_spec= 12090 # include_expsyms should be a list of space-separated symbols to be *always* 12091 # included in the symbol list 12092 include_expsyms= 12093 # exclude_expsyms can be an extended regexp of symbols to exclude 12094 # it will be wrapped by ' (' and ')$', so one must not match beginning or 12095 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 12096 # as well as any symbol that contains 'd'. 12097 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 12098 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 12099 # platforms (ab)use it in PIC code, but their linkers get confused if 12100 # the symbol is explicitly referenced. Since portable code cannot 12101 # rely on this symbol name, it's probably fine to never include it in 12102 # preloaded symbol tables. 12103 # Exclude shared library initialization/finalization symbols. 12104 extract_expsyms_cmds= 12105 12106 case $host_os in 12107 cygwin* | mingw* | pw32* | cegcc*) 12108 # FIXME: the MSVC++ port hasn't been tested in a loooong time 12109 # When not using gcc, we currently assume that we are using 12110 # Microsoft Visual C++. 12111 if test yes != "$GCC"; then 12112 with_gnu_ld=no 12113 fi 12114 ;; 12115 interix*) 12116 # we just hope/assume this is gcc and not c89 (= MSVC++) 12117 with_gnu_ld=yes 12118 ;; 12119 openbsd* | bitrig*) 12120 with_gnu_ld=no 12121 ;; 12122 esac 12123 12124 ld_shlibs=yes 12125 12126 # On some targets, GNU ld is compatible enough with the native linker 12127 # that we're better off using the native interface for both. 12128 lt_use_gnu_ld_interface=no 12129 if test yes = "$with_gnu_ld"; then 12130 case $host_os in 12131 aix*) 12132 # The AIX port of GNU ld has always aspired to compatibility 12133 # with the native linker. However, as the warning in the GNU ld 12134 # block says, versions before 2.19.5* couldn't really create working 12135 # shared libraries, regardless of the interface used. 12136 case `$LD -v 2>&1` in 12137 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 12138 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 12139 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 12140 *) 12141 lt_use_gnu_ld_interface=yes 12142 ;; 12143 esac 12144 ;; 12145 *) 12146 lt_use_gnu_ld_interface=yes 12147 ;; 12148 esac 12149 fi 12150 12151 if test yes = "$lt_use_gnu_ld_interface"; then 12152 # If archive_cmds runs LD, not CC, wlarc should be empty 12153 wlarc='$wl' 12154 12155 # Set some defaults for GNU ld with shared library support. These 12156 # are reset later if shared libraries are not supported. Putting them 12157 # here allows them to be overridden if necessary. 12158 runpath_var=LD_RUN_PATH 12159 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12160 export_dynamic_flag_spec='$wl--export-dynamic' 12161 # ancient GNU ld didn't support --whole-archive et. al. 12162 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 12163 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 12164 else 12165 whole_archive_flag_spec= 12166 fi 12167 supports_anon_versioning=no 12168 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 12169 *GNU\ gold*) supports_anon_versioning=yes ;; 12170 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 12171 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 12172 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 12173 *\ 2.11.*) ;; # other 2.11 versions 12174 *) supports_anon_versioning=yes ;; 12175 esac 12176 12177 # See if GNU ld supports shared libraries. 12178 case $host_os in 12179 aix[3-9]*) 12180 # On AIX/PPC, the GNU linker is very broken 12181 if test ia64 != "$host_cpu"; then 12182 ld_shlibs=no 12183 cat <<_LT_EOF 1>&2 12184 12185*** Warning: the GNU linker, at least up to release 2.19, is reported 12186*** to be unable to reliably create shared libraries on AIX. 12187*** Therefore, libtool is disabling shared libraries support. If you 12188*** really care for shared libraries, you may want to install binutils 12189*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 12190*** You will then need to restart the configuration process. 12191 12192_LT_EOF 12193 fi 12194 ;; 12195 12196 amigaos*) 12197 case $host_cpu in 12198 powerpc) 12199 # see comment about AmigaOS4 .so support 12200 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12201 archive_expsym_cmds='' 12202 ;; 12203 m68k) 12204 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 12205 hardcode_libdir_flag_spec='-L$libdir' 12206 hardcode_minus_L=yes 12207 ;; 12208 esac 12209 ;; 12210 12211 beos*) 12212 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12213 allow_undefined_flag=unsupported 12214 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12215 # support --undefined. This deserves some investigation. FIXME 12216 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12217 else 12218 ld_shlibs=no 12219 fi 12220 ;; 12221 12222 cygwin* | mingw* | pw32* | cegcc*) 12223 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 12224 # as there is no search path for DLLs. 12225 hardcode_libdir_flag_spec='-L$libdir' 12226 export_dynamic_flag_spec='$wl--export-all-symbols' 12227 allow_undefined_flag=unsupported 12228 always_export_symbols=no 12229 enable_shared_with_static_runtimes=yes 12230 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 12231 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 12232 12233 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12234 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12235 # If the export-symbols file already is a .def file, use it as 12236 # is; otherwise, prepend EXPORTS... 12237 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 12238 cp $export_symbols $output_objdir/$soname.def; 12239 else 12240 echo EXPORTS > $output_objdir/$soname.def; 12241 cat $export_symbols >> $output_objdir/$soname.def; 12242 fi~ 12243 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12244 else 12245 ld_shlibs=no 12246 fi 12247 ;; 12248 12249 haiku*) 12250 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12251 link_all_deplibs=yes 12252 ;; 12253 12254 os2*) 12255 hardcode_libdir_flag_spec='-L$libdir' 12256 hardcode_minus_L=yes 12257 allow_undefined_flag=unsupported 12258 shrext_cmds=.dll 12259 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12260 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12261 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12262 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12263 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 12264 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12265 emximp -o $lib $output_objdir/$libname.def' 12266 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12267 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12268 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12269 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12270 prefix_cmds="$SED"~ 12271 if test EXPORTS = "`$SED 1q $export_symbols`"; then 12272 prefix_cmds="$prefix_cmds -e 1d"; 12273 fi~ 12274 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 12275 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 12276 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12277 emximp -o $lib $output_objdir/$libname.def' 12278 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 12279 enable_shared_with_static_runtimes=yes 12280 ;; 12281 12282 interix[3-9]*) 12283 hardcode_direct=no 12284 hardcode_shlibpath_var=no 12285 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12286 export_dynamic_flag_spec='$wl-E' 12287 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12288 # Instead, shared libraries are loaded at an image base (0x10000000 by 12289 # default) and relocated if they conflict, which is a slow very memory 12290 # consuming and fragmenting process. To avoid this, we pick a random, 12291 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12292 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12293 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12294 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12295 ;; 12296 12297 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 12298 tmp_diet=no 12299 if test linux-dietlibc = "$host_os"; then 12300 case $cc_basename in 12301 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 12302 esac 12303 fi 12304 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 12305 && test no = "$tmp_diet" 12306 then 12307 tmp_addflag=' $pic_flag' 12308 tmp_sharedflag='-shared' 12309 case $cc_basename,$host_cpu in 12310 pgcc*) # Portland Group C compiler 12311 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 12312 tmp_addflag=' $pic_flag' 12313 ;; 12314 pgf77* | pgf90* | pgf95* | pgfortran*) 12315 # Portland Group f77 and f90 compilers 12316 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 12317 tmp_addflag=' $pic_flag -Mnomain' ;; 12318 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 12319 tmp_addflag=' -i_dynamic' ;; 12320 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 12321 tmp_addflag=' -i_dynamic -nofor_main' ;; 12322 ifc* | ifort*) # Intel Fortran compiler 12323 tmp_addflag=' -nofor_main' ;; 12324 lf95*) # Lahey Fortran 8.1 12325 whole_archive_flag_spec= 12326 tmp_sharedflag='--shared' ;; 12327 nagfor*) # NAGFOR 5.3 12328 tmp_sharedflag='-Wl,-shared' ;; 12329 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 12330 tmp_sharedflag='-qmkshrobj' 12331 tmp_addflag= ;; 12332 nvcc*) # Cuda Compiler Driver 2.2 12333 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 12334 compiler_needs_object=yes 12335 ;; 12336 esac 12337 case `$CC -V 2>&1 | sed 5q` in 12338 *Sun\ C*) # Sun C 5.9 12339 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 12340 compiler_needs_object=yes 12341 tmp_sharedflag='-G' ;; 12342 *Sun\ F*) # Sun Fortran 8.3 12343 tmp_sharedflag='-G' ;; 12344 esac 12345 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12346 12347 if test yes = "$supports_anon_versioning"; then 12348 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 12349 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12350 echo "local: *; };" >> $output_objdir/$libname.ver~ 12351 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 12352 fi 12353 12354 case $cc_basename in 12355 tcc*) 12356 export_dynamic_flag_spec='-rdynamic' 12357 ;; 12358 xlf* | bgf* | bgxlf* | mpixlf*) 12359 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 12360 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 12361 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12362 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 12363 if test yes = "$supports_anon_versioning"; then 12364 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 12365 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12366 echo "local: *; };" >> $output_objdir/$libname.ver~ 12367 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 12368 fi 12369 ;; 12370 esac 12371 else 12372 ld_shlibs=no 12373 fi 12374 ;; 12375 12376 netbsd*) 12377 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12378 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 12379 wlarc= 12380 else 12381 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12382 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12383 fi 12384 ;; 12385 12386 solaris*) 12387 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 12388 ld_shlibs=no 12389 cat <<_LT_EOF 1>&2 12390 12391*** Warning: The releases 2.8.* of the GNU linker cannot reliably 12392*** create shared libraries on Solaris systems. Therefore, libtool 12393*** is disabling shared libraries support. We urge you to upgrade GNU 12394*** binutils to release 2.9.1 or newer. Another option is to modify 12395*** your PATH or compiler configuration so that the native linker is 12396*** used, and then restart. 12397 12398_LT_EOF 12399 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12400 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12401 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12402 else 12403 ld_shlibs=no 12404 fi 12405 ;; 12406 12407 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 12408 case `$LD -v 2>&1` in 12409 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 12410 ld_shlibs=no 12411 cat <<_LT_EOF 1>&2 12412 12413*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 12414*** reliably create shared libraries on SCO systems. Therefore, libtool 12415*** is disabling shared libraries support. We urge you to upgrade GNU 12416*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 12417*** your PATH or compiler configuration so that the native linker is 12418*** used, and then restart. 12419 12420_LT_EOF 12421 ;; 12422 *) 12423 # For security reasons, it is highly recommended that you always 12424 # use absolute paths for naming shared libraries, and exclude the 12425 # DT_RUNPATH tag from executables and libraries. But doing so 12426 # requires that you compile everything twice, which is a pain. 12427 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12428 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12429 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12430 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12431 else 12432 ld_shlibs=no 12433 fi 12434 ;; 12435 esac 12436 ;; 12437 12438 sunos4*) 12439 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12440 wlarc= 12441 hardcode_direct=yes 12442 hardcode_shlibpath_var=no 12443 ;; 12444 12445 *) 12446 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12447 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12448 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12449 else 12450 ld_shlibs=no 12451 fi 12452 ;; 12453 esac 12454 12455 if test no = "$ld_shlibs"; then 12456 runpath_var= 12457 hardcode_libdir_flag_spec= 12458 export_dynamic_flag_spec= 12459 whole_archive_flag_spec= 12460 fi 12461 else 12462 # PORTME fill in a description of your system's linker (not GNU ld) 12463 case $host_os in 12464 aix3*) 12465 allow_undefined_flag=unsupported 12466 always_export_symbols=yes 12467 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 12468 # Note: this linker hardcodes the directories in LIBPATH if there 12469 # are no directories specified by -L. 12470 hardcode_minus_L=yes 12471 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 12472 # Neither direct hardcoding nor static linking is supported with a 12473 # broken collect2. 12474 hardcode_direct=unsupported 12475 fi 12476 ;; 12477 12478 aix[4-9]*) 12479 if test ia64 = "$host_cpu"; then 12480 # On IA64, the linker does run time linking by default, so we don't 12481 # have to do anything special. 12482 aix_use_runtimelinking=no 12483 exp_sym_flag='-Bexport' 12484 no_entry_flag= 12485 else 12486 # If we're using GNU nm, then we don't want the "-C" option. 12487 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 12488 # Without the "-l" option, or with the "-B" option, AIX nm treats 12489 # weak defined symbols like other global defined symbols, whereas 12490 # GNU nm marks them as "W". 12491 # While the 'weak' keyword is ignored in the Export File, we need 12492 # it in the Import File for the 'aix-soname' feature, so we have 12493 # to replace the "-B" option with "-P" for AIX nm. 12494 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 12495 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 12496 else 12497 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 12498 fi 12499 aix_use_runtimelinking=no 12500 12501 # Test if we are trying to use run time linking or normal 12502 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12503 # have runtime linking enabled, and use it for executables. 12504 # For shared libraries, we enable/disable runtime linking 12505 # depending on the kind of the shared library created - 12506 # when "with_aix_soname,aix_use_runtimelinking" is: 12507 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 12508 # "aix,yes" lib.so shared, rtl:yes, for executables 12509 # lib.a static archive 12510 # "both,no" lib.so.V(shr.o) shared, rtl:yes 12511 # lib.a(lib.so.V) shared, rtl:no, for executables 12512 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 12513 # lib.a(lib.so.V) shared, rtl:no 12514 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 12515 # lib.a static archive 12516 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12517 for ld_flag in $LDFLAGS; do 12518 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 12519 aix_use_runtimelinking=yes 12520 break 12521 fi 12522 done 12523 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 12524 # With aix-soname=svr4, we create the lib.so.V shared archives only, 12525 # so we don't have lib.a shared libs to link our executables. 12526 # We have to force runtime linking in this case. 12527 aix_use_runtimelinking=yes 12528 LDFLAGS="$LDFLAGS -Wl,-brtl" 12529 fi 12530 ;; 12531 esac 12532 12533 exp_sym_flag='-bexport' 12534 no_entry_flag='-bnoentry' 12535 fi 12536 12537 # When large executables or shared objects are built, AIX ld can 12538 # have problems creating the table of contents. If linking a library 12539 # or program results in "error TOC overflow" add -mminimal-toc to 12540 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12541 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12542 12543 archive_cmds='' 12544 hardcode_direct=yes 12545 hardcode_direct_absolute=yes 12546 hardcode_libdir_separator=':' 12547 link_all_deplibs=yes 12548 file_list_spec='$wl-f,' 12549 case $with_aix_soname,$aix_use_runtimelinking in 12550 aix,*) ;; # traditional, no import file 12551 svr4,* | *,yes) # use import file 12552 # The Import File defines what to hardcode. 12553 hardcode_direct=no 12554 hardcode_direct_absolute=no 12555 ;; 12556 esac 12557 12558 if test yes = "$GCC"; then 12559 case $host_os in aix4.[012]|aix4.[012].*) 12560 # We only want to do this on AIX 4.2 and lower, the check 12561 # below for broken collect2 doesn't work under 4.3+ 12562 collect2name=`$CC -print-prog-name=collect2` 12563 if test -f "$collect2name" && 12564 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12565 then 12566 # We have reworked collect2 12567 : 12568 else 12569 # We have old collect2 12570 hardcode_direct=unsupported 12571 # It fails to find uninstalled libraries when the uninstalled 12572 # path is not listed in the libpath. Setting hardcode_minus_L 12573 # to unsupported forces relinking 12574 hardcode_minus_L=yes 12575 hardcode_libdir_flag_spec='-L$libdir' 12576 hardcode_libdir_separator= 12577 fi 12578 ;; 12579 esac 12580 shared_flag='-shared' 12581 if test yes = "$aix_use_runtimelinking"; then 12582 shared_flag="$shared_flag "'$wl-G' 12583 fi 12584 # Need to ensure runtime linking is disabled for the traditional 12585 # shared library, or the linker may eventually find shared libraries 12586 # /with/ Import File - we do not want to mix them. 12587 shared_flag_aix='-shared' 12588 shared_flag_svr4='-shared $wl-G' 12589 else 12590 # not using gcc 12591 if test ia64 = "$host_cpu"; then 12592 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12593 # chokes on -Wl,-G. The following line is correct: 12594 shared_flag='-G' 12595 else 12596 if test yes = "$aix_use_runtimelinking"; then 12597 shared_flag='$wl-G' 12598 else 12599 shared_flag='$wl-bM:SRE' 12600 fi 12601 shared_flag_aix='$wl-bM:SRE' 12602 shared_flag_svr4='$wl-G' 12603 fi 12604 fi 12605 12606 export_dynamic_flag_spec='$wl-bexpall' 12607 # It seems that -bexpall does not export symbols beginning with 12608 # underscore (_), so it is better to generate a list of symbols to export. 12609 always_export_symbols=yes 12610 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 12611 # Warning - without using the other runtime loading flags (-brtl), 12612 # -berok will link without error, but may produce a broken library. 12613 allow_undefined_flag='-berok' 12614 # Determine the default libpath from the value encoded in an 12615 # empty executable. 12616 if test set = "${lt_cv_aix_libpath+set}"; then 12617 aix_libpath=$lt_cv_aix_libpath 12618else 12619 if ${lt_cv_aix_libpath_+:} false; then : 12620 $as_echo_n "(cached) " >&6 12621else 12622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12623/* end confdefs.h. */ 12624 12625int 12626main () 12627{ 12628 12629 ; 12630 return 0; 12631} 12632_ACEOF 12633if ac_fn_c_try_link "$LINENO"; then : 12634 12635 lt_aix_libpath_sed=' 12636 /Import File Strings/,/^$/ { 12637 /^0/ { 12638 s/^0 *\([^ ]*\) *$/\1/ 12639 p 12640 } 12641 }' 12642 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12643 # Check for a 64-bit object if we didn't find anything. 12644 if test -z "$lt_cv_aix_libpath_"; then 12645 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12646 fi 12647fi 12648rm -f core conftest.err conftest.$ac_objext \ 12649 conftest$ac_exeext conftest.$ac_ext 12650 if test -z "$lt_cv_aix_libpath_"; then 12651 lt_cv_aix_libpath_=/usr/lib:/lib 12652 fi 12653 12654fi 12655 12656 aix_libpath=$lt_cv_aix_libpath_ 12657fi 12658 12659 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 12660 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 12661 else 12662 if test ia64 = "$host_cpu"; then 12663 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 12664 allow_undefined_flag="-z nodefs" 12665 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" 12666 else 12667 # Determine the default libpath from the value encoded in an 12668 # empty executable. 12669 if test set = "${lt_cv_aix_libpath+set}"; then 12670 aix_libpath=$lt_cv_aix_libpath 12671else 12672 if ${lt_cv_aix_libpath_+:} false; then : 12673 $as_echo_n "(cached) " >&6 12674else 12675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12676/* end confdefs.h. */ 12677 12678int 12679main () 12680{ 12681 12682 ; 12683 return 0; 12684} 12685_ACEOF 12686if ac_fn_c_try_link "$LINENO"; then : 12687 12688 lt_aix_libpath_sed=' 12689 /Import File Strings/,/^$/ { 12690 /^0/ { 12691 s/^0 *\([^ ]*\) *$/\1/ 12692 p 12693 } 12694 }' 12695 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12696 # Check for a 64-bit object if we didn't find anything. 12697 if test -z "$lt_cv_aix_libpath_"; then 12698 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12699 fi 12700fi 12701rm -f core conftest.err conftest.$ac_objext \ 12702 conftest$ac_exeext conftest.$ac_ext 12703 if test -z "$lt_cv_aix_libpath_"; then 12704 lt_cv_aix_libpath_=/usr/lib:/lib 12705 fi 12706 12707fi 12708 12709 aix_libpath=$lt_cv_aix_libpath_ 12710fi 12711 12712 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 12713 # Warning - without using the other run time loading flags, 12714 # -berok will link without error, but may produce a broken library. 12715 no_undefined_flag=' $wl-bernotok' 12716 allow_undefined_flag=' $wl-berok' 12717 if test yes = "$with_gnu_ld"; then 12718 # We only use this code for GNU lds that support --whole-archive. 12719 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 12720 else 12721 # Exported symbols can be pulled into shared objects from archives 12722 whole_archive_flag_spec='$convenience' 12723 fi 12724 archive_cmds_need_lc=yes 12725 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 12726 # -brtl affects multiple linker settings, -berok does not and is overridden later 12727 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 12728 if test svr4 != "$with_aix_soname"; then 12729 # This is similar to how AIX traditionally builds its shared libraries. 12730 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 12731 fi 12732 if test aix != "$with_aix_soname"; then 12733 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 12734 else 12735 # used by -dlpreopen to get the symbols 12736 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 12737 fi 12738 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 12739 fi 12740 fi 12741 ;; 12742 12743 amigaos*) 12744 case $host_cpu in 12745 powerpc) 12746 # see comment about AmigaOS4 .so support 12747 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12748 archive_expsym_cmds='' 12749 ;; 12750 m68k) 12751 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 12752 hardcode_libdir_flag_spec='-L$libdir' 12753 hardcode_minus_L=yes 12754 ;; 12755 esac 12756 ;; 12757 12758 bsdi[45]*) 12759 export_dynamic_flag_spec=-rdynamic 12760 ;; 12761 12762 cygwin* | mingw* | pw32* | cegcc*) 12763 # When not using gcc, we currently assume that we are using 12764 # Microsoft Visual C++. 12765 # hardcode_libdir_flag_spec is actually meaningless, as there is 12766 # no search path for DLLs. 12767 case $cc_basename in 12768 cl*) 12769 # Native MSVC 12770 hardcode_libdir_flag_spec=' ' 12771 allow_undefined_flag=unsupported 12772 always_export_symbols=yes 12773 file_list_spec='@' 12774 # Tell ltmain to make .lib files, not .a files. 12775 libext=lib 12776 # Tell ltmain to make .dll files, not .so files. 12777 shrext_cmds=.dll 12778 # FIXME: Setting linknames here is a bad hack. 12779 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 12780 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 12781 cp "$export_symbols" "$output_objdir/$soname.def"; 12782 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 12783 else 12784 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 12785 fi~ 12786 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12787 linknames=' 12788 # The linker will not automatically build a static lib if we build a DLL. 12789 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 12790 enable_shared_with_static_runtimes=yes 12791 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 12792 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 12793 # Don't use ranlib 12794 old_postinstall_cmds='chmod 644 $oldlib' 12795 postlink_cmds='lt_outputfile="@OUTPUT@"~ 12796 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12797 case $lt_outputfile in 12798 *.exe|*.EXE) ;; 12799 *) 12800 lt_outputfile=$lt_outputfile.exe 12801 lt_tool_outputfile=$lt_tool_outputfile.exe 12802 ;; 12803 esac~ 12804 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 12805 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12806 $RM "$lt_outputfile.manifest"; 12807 fi' 12808 ;; 12809 *) 12810 # Assume MSVC wrapper 12811 hardcode_libdir_flag_spec=' ' 12812 allow_undefined_flag=unsupported 12813 # Tell ltmain to make .lib files, not .a files. 12814 libext=lib 12815 # Tell ltmain to make .dll files, not .so files. 12816 shrext_cmds=.dll 12817 # FIXME: Setting linknames here is a bad hack. 12818 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 12819 # The linker will automatically build a .lib file if we build a DLL. 12820 old_archive_from_new_cmds='true' 12821 # FIXME: Should let the user specify the lib program. 12822 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 12823 enable_shared_with_static_runtimes=yes 12824 ;; 12825 esac 12826 ;; 12827 12828 darwin* | rhapsody*) 12829 12830 12831 archive_cmds_need_lc=no 12832 hardcode_direct=no 12833 hardcode_automatic=yes 12834 hardcode_shlibpath_var=unsupported 12835 if test yes = "$lt_cv_ld_force_load"; then 12836 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 12837 12838 else 12839 whole_archive_flag_spec='' 12840 fi 12841 link_all_deplibs=yes 12842 allow_undefined_flag=$_lt_dar_allow_undefined 12843 case $cc_basename in 12844 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 12845 *) _lt_dar_can_shared=$GCC ;; 12846 esac 12847 if test yes = "$_lt_dar_can_shared"; then 12848 output_verbose_link_cmd=func_echo_all 12849 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 12850 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 12851 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 12852 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 12853 12854 else 12855 ld_shlibs=no 12856 fi 12857 12858 ;; 12859 12860 dgux*) 12861 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12862 hardcode_libdir_flag_spec='-L$libdir' 12863 hardcode_shlibpath_var=no 12864 ;; 12865 12866 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 12867 # support. Future versions do this automatically, but an explicit c++rt0.o 12868 # does not break anything, and helps significantly (at the cost of a little 12869 # extra space). 12870 freebsd2.2*) 12871 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 12872 hardcode_libdir_flag_spec='-R$libdir' 12873 hardcode_direct=yes 12874 hardcode_shlibpath_var=no 12875 ;; 12876 12877 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 12878 freebsd2.*) 12879 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12880 hardcode_direct=yes 12881 hardcode_minus_L=yes 12882 hardcode_shlibpath_var=no 12883 ;; 12884 12885 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 12886 freebsd* | dragonfly*) 12887 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12888 hardcode_libdir_flag_spec='-R$libdir' 12889 hardcode_direct=yes 12890 hardcode_shlibpath_var=no 12891 ;; 12892 12893 hpux9*) 12894 if test yes = "$GCC"; then 12895 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 12896 else 12897 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 12898 fi 12899 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12900 hardcode_libdir_separator=: 12901 hardcode_direct=yes 12902 12903 # hardcode_minus_L: Not really in the search PATH, 12904 # but as the default location of the library. 12905 hardcode_minus_L=yes 12906 export_dynamic_flag_spec='$wl-E' 12907 ;; 12908 12909 hpux10*) 12910 if test yes,no = "$GCC,$with_gnu_ld"; then 12911 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12912 else 12913 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12914 fi 12915 if test no = "$with_gnu_ld"; then 12916 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12917 hardcode_libdir_separator=: 12918 hardcode_direct=yes 12919 hardcode_direct_absolute=yes 12920 export_dynamic_flag_spec='$wl-E' 12921 # hardcode_minus_L: Not really in the search PATH, 12922 # but as the default location of the library. 12923 hardcode_minus_L=yes 12924 fi 12925 ;; 12926 12927 hpux11*) 12928 if test yes,no = "$GCC,$with_gnu_ld"; then 12929 case $host_cpu in 12930 hppa*64*) 12931 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12932 ;; 12933 ia64*) 12934 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12935 ;; 12936 *) 12937 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12938 ;; 12939 esac 12940 else 12941 case $host_cpu in 12942 hppa*64*) 12943 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12944 ;; 12945 ia64*) 12946 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12947 ;; 12948 *) 12949 12950 # Older versions of the 11.00 compiler do not understand -b yet 12951 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 12952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 12953$as_echo_n "checking if $CC understands -b... " >&6; } 12954if ${lt_cv_prog_compiler__b+:} false; then : 12955 $as_echo_n "(cached) " >&6 12956else 12957 lt_cv_prog_compiler__b=no 12958 save_LDFLAGS=$LDFLAGS 12959 LDFLAGS="$LDFLAGS -b" 12960 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12961 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12962 # The linker can only warn and ignore the option if not recognized 12963 # So say no if there are warnings 12964 if test -s conftest.err; then 12965 # Append any errors to the config.log. 12966 cat conftest.err 1>&5 12967 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12968 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12969 if diff conftest.exp conftest.er2 >/dev/null; then 12970 lt_cv_prog_compiler__b=yes 12971 fi 12972 else 12973 lt_cv_prog_compiler__b=yes 12974 fi 12975 fi 12976 $RM -r conftest* 12977 LDFLAGS=$save_LDFLAGS 12978 12979fi 12980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 12981$as_echo "$lt_cv_prog_compiler__b" >&6; } 12982 12983if test yes = "$lt_cv_prog_compiler__b"; then 12984 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12985else 12986 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12987fi 12988 12989 ;; 12990 esac 12991 fi 12992 if test no = "$with_gnu_ld"; then 12993 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12994 hardcode_libdir_separator=: 12995 12996 case $host_cpu in 12997 hppa*64*|ia64*) 12998 hardcode_direct=no 12999 hardcode_shlibpath_var=no 13000 ;; 13001 *) 13002 hardcode_direct=yes 13003 hardcode_direct_absolute=yes 13004 export_dynamic_flag_spec='$wl-E' 13005 13006 # hardcode_minus_L: Not really in the search PATH, 13007 # but as the default location of the library. 13008 hardcode_minus_L=yes 13009 ;; 13010 esac 13011 fi 13012 ;; 13013 13014 irix5* | irix6* | nonstopux*) 13015 if test yes = "$GCC"; then 13016 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 13017 # Try to use the -exported_symbol ld option, if it does not 13018 # work, assume that -exports_file does not work either and 13019 # implicitly export all symbols. 13020 # This should be the same for all languages, so no per-tag cache variable. 13021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 13022$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 13023if ${lt_cv_irix_exported_symbol+:} false; then : 13024 $as_echo_n "(cached) " >&6 13025else 13026 save_LDFLAGS=$LDFLAGS 13027 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 13028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13029/* end confdefs.h. */ 13030int foo (void) { return 0; } 13031_ACEOF 13032if ac_fn_c_try_link "$LINENO"; then : 13033 lt_cv_irix_exported_symbol=yes 13034else 13035 lt_cv_irix_exported_symbol=no 13036fi 13037rm -f core conftest.err conftest.$ac_objext \ 13038 conftest$ac_exeext conftest.$ac_ext 13039 LDFLAGS=$save_LDFLAGS 13040fi 13041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 13042$as_echo "$lt_cv_irix_exported_symbol" >&6; } 13043 if test yes = "$lt_cv_irix_exported_symbol"; then 13044 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 13045 fi 13046 else 13047 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 13048 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' 13049 fi 13050 archive_cmds_need_lc='no' 13051 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13052 hardcode_libdir_separator=: 13053 inherit_rpath=yes 13054 link_all_deplibs=yes 13055 ;; 13056 13057 linux*) 13058 case $cc_basename in 13059 tcc*) 13060 # Fabrice Bellard et al's Tiny C Compiler 13061 ld_shlibs=yes 13062 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13063 ;; 13064 esac 13065 ;; 13066 13067 netbsd*) 13068 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13069 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 13070 else 13071 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 13072 fi 13073 hardcode_libdir_flag_spec='-R$libdir' 13074 hardcode_direct=yes 13075 hardcode_shlibpath_var=no 13076 ;; 13077 13078 newsos6) 13079 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13080 hardcode_direct=yes 13081 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13082 hardcode_libdir_separator=: 13083 hardcode_shlibpath_var=no 13084 ;; 13085 13086 *nto* | *qnx*) 13087 ;; 13088 13089 openbsd* | bitrig*) 13090 if test -f /usr/libexec/ld.so; then 13091 hardcode_direct=yes 13092 hardcode_shlibpath_var=no 13093 hardcode_direct_absolute=yes 13094 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13095 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13096 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 13097 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 13098 export_dynamic_flag_spec='$wl-E' 13099 else 13100 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13101 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 13102 fi 13103 else 13104 ld_shlibs=no 13105 fi 13106 ;; 13107 13108 os2*) 13109 hardcode_libdir_flag_spec='-L$libdir' 13110 hardcode_minus_L=yes 13111 allow_undefined_flag=unsupported 13112 shrext_cmds=.dll 13113 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13114 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13115 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13116 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13117 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13118 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13119 emximp -o $lib $output_objdir/$libname.def' 13120 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13121 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13122 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13123 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13124 prefix_cmds="$SED"~ 13125 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13126 prefix_cmds="$prefix_cmds -e 1d"; 13127 fi~ 13128 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13129 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13130 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13131 emximp -o $lib $output_objdir/$libname.def' 13132 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13133 enable_shared_with_static_runtimes=yes 13134 ;; 13135 13136 osf3*) 13137 if test yes = "$GCC"; then 13138 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 13139 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 13140 else 13141 allow_undefined_flag=' -expect_unresolved \*' 13142 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 13143 fi 13144 archive_cmds_need_lc='no' 13145 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13146 hardcode_libdir_separator=: 13147 ;; 13148 13149 osf4* | osf5*) # as osf3* with the addition of -msym flag 13150 if test yes = "$GCC"; then 13151 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 13152 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 13153 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13154 else 13155 allow_undefined_flag=' -expect_unresolved \*' 13156 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 13157 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 13158 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' 13159 13160 # Both c and cxx compiler support -rpath directly 13161 hardcode_libdir_flag_spec='-rpath $libdir' 13162 fi 13163 archive_cmds_need_lc='no' 13164 hardcode_libdir_separator=: 13165 ;; 13166 13167 solaris*) 13168 no_undefined_flag=' -z defs' 13169 if test yes = "$GCC"; then 13170 wlarc='$wl' 13171 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13172 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13173 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 13174 else 13175 case `$CC -V 2>&1` in 13176 *"Compilers 5.0"*) 13177 wlarc='' 13178 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 13179 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13180 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 13181 ;; 13182 *) 13183 wlarc='$wl' 13184 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 13185 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13186 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 13187 ;; 13188 esac 13189 fi 13190 hardcode_libdir_flag_spec='-R$libdir' 13191 hardcode_shlibpath_var=no 13192 case $host_os in 13193 solaris2.[0-5] | solaris2.[0-5].*) ;; 13194 *) 13195 # The compiler driver will combine and reorder linker options, 13196 # but understands '-z linker_flag'. GCC discards it without '$wl', 13197 # but is careful enough not to reorder. 13198 # Supported since Solaris 2.6 (maybe 2.5.1?) 13199 if test yes = "$GCC"; then 13200 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 13201 else 13202 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 13203 fi 13204 ;; 13205 esac 13206 link_all_deplibs=yes 13207 ;; 13208 13209 sunos4*) 13210 if test sequent = "$host_vendor"; then 13211 # Use $CC to link under sequent, because it throws in some extra .o 13212 # files that make .init and .fini sections work. 13213 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 13214 else 13215 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 13216 fi 13217 hardcode_libdir_flag_spec='-L$libdir' 13218 hardcode_direct=yes 13219 hardcode_minus_L=yes 13220 hardcode_shlibpath_var=no 13221 ;; 13222 13223 sysv4) 13224 case $host_vendor in 13225 sni) 13226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13227 hardcode_direct=yes # is this really true??? 13228 ;; 13229 siemens) 13230 ## LD is ld it makes a PLAMLIB 13231 ## CC just makes a GrossModule. 13232 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13233 reload_cmds='$CC -r -o $output$reload_objs' 13234 hardcode_direct=no 13235 ;; 13236 motorola) 13237 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13238 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 13239 ;; 13240 esac 13241 runpath_var='LD_RUN_PATH' 13242 hardcode_shlibpath_var=no 13243 ;; 13244 13245 sysv4.3*) 13246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13247 hardcode_shlibpath_var=no 13248 export_dynamic_flag_spec='-Bexport' 13249 ;; 13250 13251 sysv4*MP*) 13252 if test -d /usr/nec; then 13253 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13254 hardcode_shlibpath_var=no 13255 runpath_var=LD_RUN_PATH 13256 hardcode_runpath_var=yes 13257 ld_shlibs=yes 13258 fi 13259 ;; 13260 13261 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13262 no_undefined_flag='$wl-z,text' 13263 archive_cmds_need_lc=no 13264 hardcode_shlibpath_var=no 13265 runpath_var='LD_RUN_PATH' 13266 13267 if test yes = "$GCC"; then 13268 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13269 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13270 else 13271 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13272 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13273 fi 13274 ;; 13275 13276 sysv5* | sco3.2v5* | sco5v6*) 13277 # Note: We CANNOT use -z defs as we might desire, because we do not 13278 # link with -lc, and that would cause any symbols used from libc to 13279 # always be unresolved, which means just about no library would 13280 # ever link correctly. If we're not using GNU ld we use -z text 13281 # though, which does catch some bad symbols but isn't as heavy-handed 13282 # as -z defs. 13283 no_undefined_flag='$wl-z,text' 13284 allow_undefined_flag='$wl-z,nodefs' 13285 archive_cmds_need_lc=no 13286 hardcode_shlibpath_var=no 13287 hardcode_libdir_flag_spec='$wl-R,$libdir' 13288 hardcode_libdir_separator=':' 13289 link_all_deplibs=yes 13290 export_dynamic_flag_spec='$wl-Bexport' 13291 runpath_var='LD_RUN_PATH' 13292 13293 if test yes = "$GCC"; then 13294 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13295 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13296 else 13297 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13298 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13299 fi 13300 ;; 13301 13302 uts4*) 13303 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13304 hardcode_libdir_flag_spec='-L$libdir' 13305 hardcode_shlibpath_var=no 13306 ;; 13307 13308 *) 13309 ld_shlibs=no 13310 ;; 13311 esac 13312 13313 if test sni = "$host_vendor"; then 13314 case $host in 13315 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13316 export_dynamic_flag_spec='$wl-Blargedynsym' 13317 ;; 13318 esac 13319 fi 13320 fi 13321 13322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 13323$as_echo "$ld_shlibs" >&6; } 13324test no = "$ld_shlibs" && can_build_shared=no 13325 13326with_gnu_ld=$with_gnu_ld 13327 13328 13329 13330 13331 13332 13333 13334 13335 13336 13337 13338 13339 13340 13341 13342# 13343# Do we need to explicitly link libc? 13344# 13345case "x$archive_cmds_need_lc" in 13346x|xyes) 13347 # Assume -lc should be added 13348 archive_cmds_need_lc=yes 13349 13350 if test yes,yes = "$GCC,$enable_shared"; then 13351 case $archive_cmds in 13352 *'~'*) 13353 # FIXME: we may have to deal with multi-command sequences. 13354 ;; 13355 '$CC '*) 13356 # Test whether the compiler implicitly links with -lc since on some 13357 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13358 # to ld, don't add -lc before -lgcc. 13359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 13360$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13361if ${lt_cv_archive_cmds_need_lc+:} false; then : 13362 $as_echo_n "(cached) " >&6 13363else 13364 $RM conftest* 13365 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13366 13367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13368 (eval $ac_compile) 2>&5 13369 ac_status=$? 13370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13371 test $ac_status = 0; } 2>conftest.err; then 13372 soname=conftest 13373 lib=conftest 13374 libobjs=conftest.$ac_objext 13375 deplibs= 13376 wl=$lt_prog_compiler_wl 13377 pic_flag=$lt_prog_compiler_pic 13378 compiler_flags=-v 13379 linker_flags=-v 13380 verstring= 13381 output_objdir=. 13382 libname=conftest 13383 lt_save_allow_undefined_flag=$allow_undefined_flag 13384 allow_undefined_flag= 13385 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 13386 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 13387 ac_status=$? 13388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13389 test $ac_status = 0; } 13390 then 13391 lt_cv_archive_cmds_need_lc=no 13392 else 13393 lt_cv_archive_cmds_need_lc=yes 13394 fi 13395 allow_undefined_flag=$lt_save_allow_undefined_flag 13396 else 13397 cat conftest.err 1>&5 13398 fi 13399 $RM conftest* 13400 13401fi 13402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 13403$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 13404 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 13405 ;; 13406 esac 13407 fi 13408 ;; 13409esac 13410 13411 13412 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441 13442 13443 13444 13445 13446 13447 13448 13449 13450 13451 13452 13453 13454 13455 13456 13457 13458 13459 13460 13461 13462 13463 13464 13465 13466 13467 13468 13469 13470 13471 13472 13473 13474 13475 13476 13477 13478 13479 13480 13481 13482 13483 13484 13485 13486 13487 13488 13489 13490 13491 13492 13493 13494 13495 13496 13497 13498 13499 13500 13501 13502 13503 13504 13505 13506 13507 13508 13509 13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 13523 13524 13525 13526 13527 13528 13529 13530 13531 13532 13533 13534 13535 13536 13537 13538 13539 13540 13541 13542 13543 13544 13545 13546 13547 13548 13549 13550 13551 13552 13553 13554 13555 13556 13557 13558 13559 13560 13561 13562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 13563$as_echo_n "checking dynamic linker characteristics... " >&6; } 13564 13565if test yes = "$GCC"; then 13566 case $host_os in 13567 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 13568 *) lt_awk_arg='/^libraries:/' ;; 13569 esac 13570 case $host_os in 13571 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 13572 *) lt_sed_strip_eq='s|=/|/|g' ;; 13573 esac 13574 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 13575 case $lt_search_path_spec in 13576 *\;*) 13577 # if the path contains ";" then we assume it to be the separator 13578 # otherwise default to the standard path separator (i.e. ":") - it is 13579 # assumed that no part of a normal pathname contains ";" but that should 13580 # okay in the real world where ";" in dirpaths is itself problematic. 13581 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 13582 ;; 13583 *) 13584 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 13585 ;; 13586 esac 13587 # Ok, now we have the path, separated by spaces, we can step through it 13588 # and add multilib dir if necessary... 13589 lt_tmp_lt_search_path_spec= 13590 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 13591 # ...but if some path component already ends with the multilib dir we assume 13592 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 13593 case "$lt_multi_os_dir; $lt_search_path_spec " in 13594 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 13595 lt_multi_os_dir= 13596 ;; 13597 esac 13598 for lt_sys_path in $lt_search_path_spec; do 13599 if test -d "$lt_sys_path$lt_multi_os_dir"; then 13600 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 13601 elif test -n "$lt_multi_os_dir"; then 13602 test -d "$lt_sys_path" && \ 13603 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 13604 fi 13605 done 13606 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 13607BEGIN {RS = " "; FS = "/|\n";} { 13608 lt_foo = ""; 13609 lt_count = 0; 13610 for (lt_i = NF; lt_i > 0; lt_i--) { 13611 if ($lt_i != "" && $lt_i != ".") { 13612 if ($lt_i == "..") { 13613 lt_count++; 13614 } else { 13615 if (lt_count == 0) { 13616 lt_foo = "/" $lt_i lt_foo; 13617 } else { 13618 lt_count--; 13619 } 13620 } 13621 } 13622 } 13623 if (lt_foo != "") { lt_freq[lt_foo]++; } 13624 if (lt_freq[lt_foo] == 1) { print lt_foo; } 13625}'` 13626 # AWK program above erroneously prepends '/' to C:/dos/paths 13627 # for these hosts. 13628 case $host_os in 13629 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 13630 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 13631 esac 13632 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 13633else 13634 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13635fi 13636library_names_spec= 13637libname_spec='lib$name' 13638soname_spec= 13639shrext_cmds=.so 13640postinstall_cmds= 13641postuninstall_cmds= 13642finish_cmds= 13643finish_eval= 13644shlibpath_var= 13645shlibpath_overrides_runpath=unknown 13646version_type=none 13647dynamic_linker="$host_os ld.so" 13648sys_lib_dlsearch_path_spec="/lib /usr/lib" 13649need_lib_prefix=unknown 13650hardcode_into_libs=no 13651 13652# when you set need_version to no, make sure it does not cause -set_version 13653# flags to be left without arguments 13654need_version=unknown 13655 13656 13657 13658case $host_os in 13659aix3*) 13660 version_type=linux # correct to gnu/linux during the next big refactor 13661 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 13662 shlibpath_var=LIBPATH 13663 13664 # AIX 3 has no versioning support, so we append a major version to the name. 13665 soname_spec='$libname$release$shared_ext$major' 13666 ;; 13667 13668aix[4-9]*) 13669 version_type=linux # correct to gnu/linux during the next big refactor 13670 need_lib_prefix=no 13671 need_version=no 13672 hardcode_into_libs=yes 13673 if test ia64 = "$host_cpu"; then 13674 # AIX 5 supports IA64 13675 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 13676 shlibpath_var=LD_LIBRARY_PATH 13677 else 13678 # With GCC up to 2.95.x, collect2 would create an import file 13679 # for dependence libraries. The import file would start with 13680 # the line '#! .'. This would cause the generated library to 13681 # depend on '.', always an invalid library. This was fixed in 13682 # development snapshots of GCC prior to 3.0. 13683 case $host_os in 13684 aix4 | aix4.[01] | aix4.[01].*) 13685 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13686 echo ' yes ' 13687 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 13688 : 13689 else 13690 can_build_shared=no 13691 fi 13692 ;; 13693 esac 13694 # Using Import Files as archive members, it is possible to support 13695 # filename-based versioning of shared library archives on AIX. While 13696 # this would work for both with and without runtime linking, it will 13697 # prevent static linking of such archives. So we do filename-based 13698 # shared library versioning with .so extension only, which is used 13699 # when both runtime linking and shared linking is enabled. 13700 # Unfortunately, runtime linking may impact performance, so we do 13701 # not want this to be the default eventually. Also, we use the 13702 # versioned .so libs for executables only if there is the -brtl 13703 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 13704 # To allow for filename-based versioning support, we need to create 13705 # libNAME.so.V as an archive file, containing: 13706 # *) an Import File, referring to the versioned filename of the 13707 # archive as well as the shared archive member, telling the 13708 # bitwidth (32 or 64) of that shared object, and providing the 13709 # list of exported symbols of that shared object, eventually 13710 # decorated with the 'weak' keyword 13711 # *) the shared object with the F_LOADONLY flag set, to really avoid 13712 # it being seen by the linker. 13713 # At run time we better use the real file rather than another symlink, 13714 # but for link time we create the symlink libNAME.so -> libNAME.so.V 13715 13716 case $with_aix_soname,$aix_use_runtimelinking in 13717 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 13718 # soname into executable. Probably we can add versioning support to 13719 # collect2, so additional links can be useful in future. 13720 aix,yes) # traditional libtool 13721 dynamic_linker='AIX unversionable lib.so' 13722 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13723 # instead of lib<name>.a to let people know that these are not 13724 # typical AIX shared libraries. 13725 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13726 ;; 13727 aix,no) # traditional AIX only 13728 dynamic_linker='AIX lib.a(lib.so.V)' 13729 # We preserve .a as extension for shared libraries through AIX4.2 13730 # and later when we are not doing run time linking. 13731 library_names_spec='$libname$release.a $libname.a' 13732 soname_spec='$libname$release$shared_ext$major' 13733 ;; 13734 svr4,*) # full svr4 only 13735 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 13736 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 13737 # We do not specify a path in Import Files, so LIBPATH fires. 13738 shlibpath_overrides_runpath=yes 13739 ;; 13740 *,yes) # both, prefer svr4 13741 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 13742 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 13743 # unpreferred sharedlib libNAME.a needs extra handling 13744 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 13745 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 13746 # We do not specify a path in Import Files, so LIBPATH fires. 13747 shlibpath_overrides_runpath=yes 13748 ;; 13749 *,no) # both, prefer aix 13750 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 13751 library_names_spec='$libname$release.a $libname.a' 13752 soname_spec='$libname$release$shared_ext$major' 13753 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 13754 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 13755 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 13756 ;; 13757 esac 13758 shlibpath_var=LIBPATH 13759 fi 13760 ;; 13761 13762amigaos*) 13763 case $host_cpu in 13764 powerpc) 13765 # Since July 2007 AmigaOS4 officially supports .so libraries. 13766 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 13767 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13768 ;; 13769 m68k) 13770 library_names_spec='$libname.ixlibrary $libname.a' 13771 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13772 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 13773 ;; 13774 esac 13775 ;; 13776 13777beos*) 13778 library_names_spec='$libname$shared_ext' 13779 dynamic_linker="$host_os ld.so" 13780 shlibpath_var=LIBRARY_PATH 13781 ;; 13782 13783bsdi[45]*) 13784 version_type=linux # correct to gnu/linux during the next big refactor 13785 need_version=no 13786 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13787 soname_spec='$libname$release$shared_ext$major' 13788 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13789 shlibpath_var=LD_LIBRARY_PATH 13790 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13791 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13792 # the default ld.so.conf also contains /usr/contrib/lib and 13793 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13794 # libtool to hard-code these into programs 13795 ;; 13796 13797cygwin* | mingw* | pw32* | cegcc*) 13798 version_type=windows 13799 shrext_cmds=.dll 13800 need_version=no 13801 need_lib_prefix=no 13802 13803 case $GCC,$cc_basename in 13804 yes,*) 13805 # gcc 13806 library_names_spec='$libname.dll.a' 13807 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13808 postinstall_cmds='base_file=`basename \$file`~ 13809 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13810 dldir=$destdir/`dirname \$dlpath`~ 13811 test -d \$dldir || mkdir -p \$dldir~ 13812 $install_prog $dir/$dlname \$dldir/$dlname~ 13813 chmod a+x \$dldir/$dlname~ 13814 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13815 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13816 fi' 13817 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13818 dlpath=$dir/\$dldll~ 13819 $RM \$dlpath' 13820 shlibpath_overrides_runpath=yes 13821 13822 case $host_os in 13823 cygwin*) 13824 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13825 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13826 13827 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 13828 ;; 13829 mingw* | cegcc*) 13830 # MinGW DLLs use traditional 'lib' prefix 13831 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13832 ;; 13833 pw32*) 13834 # pw32 DLLs use 'pw' prefix rather than 'lib' 13835 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13836 ;; 13837 esac 13838 dynamic_linker='Win32 ld.exe' 13839 ;; 13840 13841 *,cl*) 13842 # Native MSVC 13843 libname_spec='$name' 13844 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13845 library_names_spec='$libname.dll.lib' 13846 13847 case $build_os in 13848 mingw*) 13849 sys_lib_search_path_spec= 13850 lt_save_ifs=$IFS 13851 IFS=';' 13852 for lt_path in $LIB 13853 do 13854 IFS=$lt_save_ifs 13855 # Let DOS variable expansion print the short 8.3 style file name. 13856 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 13857 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 13858 done 13859 IFS=$lt_save_ifs 13860 # Convert to MSYS style. 13861 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 13862 ;; 13863 cygwin*) 13864 # Convert to unix form, then to dos form, then back to unix form 13865 # but this time dos style (no spaces!) so that the unix form looks 13866 # like /cygdrive/c/PROGRA~1:/cygdr... 13867 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 13868 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 13869 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13870 ;; 13871 *) 13872 sys_lib_search_path_spec=$LIB 13873 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 13874 # It is most probably a Windows format PATH. 13875 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13876 else 13877 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13878 fi 13879 # FIXME: find the short name or the path components, as spaces are 13880 # common. (e.g. "Program Files" -> "PROGRA~1") 13881 ;; 13882 esac 13883 13884 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13885 postinstall_cmds='base_file=`basename \$file`~ 13886 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13887 dldir=$destdir/`dirname \$dlpath`~ 13888 test -d \$dldir || mkdir -p \$dldir~ 13889 $install_prog $dir/$dlname \$dldir/$dlname' 13890 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13891 dlpath=$dir/\$dldll~ 13892 $RM \$dlpath' 13893 shlibpath_overrides_runpath=yes 13894 dynamic_linker='Win32 link.exe' 13895 ;; 13896 13897 *) 13898 # Assume MSVC wrapper 13899 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 13900 dynamic_linker='Win32 ld.exe' 13901 ;; 13902 esac 13903 # FIXME: first we should search . and the directory the executable is in 13904 shlibpath_var=PATH 13905 ;; 13906 13907darwin* | rhapsody*) 13908 dynamic_linker="$host_os dyld" 13909 version_type=darwin 13910 need_lib_prefix=no 13911 need_version=no 13912 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 13913 soname_spec='$libname$release$major$shared_ext' 13914 shlibpath_overrides_runpath=yes 13915 shlibpath_var=DYLD_LIBRARY_PATH 13916 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13917 13918 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 13919 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13920 ;; 13921 13922dgux*) 13923 version_type=linux # correct to gnu/linux during the next big refactor 13924 need_lib_prefix=no 13925 need_version=no 13926 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13927 soname_spec='$libname$release$shared_ext$major' 13928 shlibpath_var=LD_LIBRARY_PATH 13929 ;; 13930 13931freebsd* | dragonfly*) 13932 # DragonFly does not have aout. When/if they implement a new 13933 # versioning mechanism, adjust this. 13934 if test -x /usr/bin/objformat; then 13935 objformat=`/usr/bin/objformat` 13936 else 13937 case $host_os in 13938 freebsd[23].*) objformat=aout ;; 13939 *) objformat=elf ;; 13940 esac 13941 fi 13942 version_type=freebsd-$objformat 13943 case $version_type in 13944 freebsd-elf*) 13945 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13946 soname_spec='$libname$release$shared_ext$major' 13947 need_version=no 13948 need_lib_prefix=no 13949 ;; 13950 freebsd-*) 13951 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13952 need_version=yes 13953 ;; 13954 esac 13955 shlibpath_var=LD_LIBRARY_PATH 13956 case $host_os in 13957 freebsd2.*) 13958 shlibpath_overrides_runpath=yes 13959 ;; 13960 freebsd3.[01]* | freebsdelf3.[01]*) 13961 shlibpath_overrides_runpath=yes 13962 hardcode_into_libs=yes 13963 ;; 13964 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13965 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13966 shlibpath_overrides_runpath=no 13967 hardcode_into_libs=yes 13968 ;; 13969 *) # from 4.6 on, and DragonFly 13970 shlibpath_overrides_runpath=yes 13971 hardcode_into_libs=yes 13972 ;; 13973 esac 13974 ;; 13975 13976haiku*) 13977 version_type=linux # correct to gnu/linux during the next big refactor 13978 need_lib_prefix=no 13979 need_version=no 13980 dynamic_linker="$host_os runtime_loader" 13981 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13982 soname_spec='$libname$release$shared_ext$major' 13983 shlibpath_var=LIBRARY_PATH 13984 shlibpath_overrides_runpath=no 13985 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 13986 hardcode_into_libs=yes 13987 ;; 13988 13989hpux9* | hpux10* | hpux11*) 13990 # Give a soname corresponding to the major version so that dld.sl refuses to 13991 # link against other versions. 13992 version_type=sunos 13993 need_lib_prefix=no 13994 need_version=no 13995 case $host_cpu in 13996 ia64*) 13997 shrext_cmds='.so' 13998 hardcode_into_libs=yes 13999 dynamic_linker="$host_os dld.so" 14000 shlibpath_var=LD_LIBRARY_PATH 14001 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14002 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14003 soname_spec='$libname$release$shared_ext$major' 14004 if test 32 = "$HPUX_IA64_MODE"; then 14005 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14006 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 14007 else 14008 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14009 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 14010 fi 14011 ;; 14012 hppa*64*) 14013 shrext_cmds='.sl' 14014 hardcode_into_libs=yes 14015 dynamic_linker="$host_os dld.sl" 14016 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14017 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14018 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14019 soname_spec='$libname$release$shared_ext$major' 14020 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14021 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14022 ;; 14023 *) 14024 shrext_cmds='.sl' 14025 dynamic_linker="$host_os dld.sl" 14026 shlibpath_var=SHLIB_PATH 14027 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14028 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14029 soname_spec='$libname$release$shared_ext$major' 14030 ;; 14031 esac 14032 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 14033 postinstall_cmds='chmod 555 $lib' 14034 # or fails outright, so override atomically: 14035 install_override_mode=555 14036 ;; 14037 14038interix[3-9]*) 14039 version_type=linux # correct to gnu/linux during the next big refactor 14040 need_lib_prefix=no 14041 need_version=no 14042 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14043 soname_spec='$libname$release$shared_ext$major' 14044 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14045 shlibpath_var=LD_LIBRARY_PATH 14046 shlibpath_overrides_runpath=no 14047 hardcode_into_libs=yes 14048 ;; 14049 14050irix5* | irix6* | nonstopux*) 14051 case $host_os in 14052 nonstopux*) version_type=nonstopux ;; 14053 *) 14054 if test yes = "$lt_cv_prog_gnu_ld"; then 14055 version_type=linux # correct to gnu/linux during the next big refactor 14056 else 14057 version_type=irix 14058 fi ;; 14059 esac 14060 need_lib_prefix=no 14061 need_version=no 14062 soname_spec='$libname$release$shared_ext$major' 14063 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 14064 case $host_os in 14065 irix5* | nonstopux*) 14066 libsuff= shlibsuff= 14067 ;; 14068 *) 14069 case $LD in # libtool.m4 will add one of these switches to LD 14070 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14071 libsuff= shlibsuff= libmagic=32-bit;; 14072 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14073 libsuff=32 shlibsuff=N32 libmagic=N32;; 14074 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14075 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14076 *) libsuff= shlibsuff= libmagic=never-match;; 14077 esac 14078 ;; 14079 esac 14080 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14081 shlibpath_overrides_runpath=no 14082 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 14083 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 14084 hardcode_into_libs=yes 14085 ;; 14086 14087# No shared lib support for Linux oldld, aout, or coff. 14088linux*oldld* | linux*aout* | linux*coff*) 14089 dynamic_linker=no 14090 ;; 14091 14092linux*android*) 14093 version_type=none # Android doesn't support versioned libraries. 14094 need_lib_prefix=no 14095 need_version=no 14096 library_names_spec='$libname$release$shared_ext' 14097 soname_spec='$libname$release$shared_ext' 14098 finish_cmds= 14099 shlibpath_var=LD_LIBRARY_PATH 14100 shlibpath_overrides_runpath=yes 14101 14102 # This implies no fast_install, which is unacceptable. 14103 # Some rework will be needed to allow for fast_install 14104 # before this can be enabled. 14105 hardcode_into_libs=yes 14106 14107 dynamic_linker='Android linker' 14108 # Don't embed -rpath directories since the linker doesn't support them. 14109 hardcode_libdir_flag_spec='-L$libdir' 14110 ;; 14111 14112# This must be glibc/ELF. 14113linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14114 version_type=linux # correct to gnu/linux during the next big refactor 14115 need_lib_prefix=no 14116 need_version=no 14117 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14118 soname_spec='$libname$release$shared_ext$major' 14119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14120 shlibpath_var=LD_LIBRARY_PATH 14121 shlibpath_overrides_runpath=no 14122 14123 # Some binutils ld are patched to set DT_RUNPATH 14124 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 14125 $as_echo_n "(cached) " >&6 14126else 14127 lt_cv_shlibpath_overrides_runpath=no 14128 save_LDFLAGS=$LDFLAGS 14129 save_libdir=$libdir 14130 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 14131 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 14132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14133/* end confdefs.h. */ 14134 14135int 14136main () 14137{ 14138 14139 ; 14140 return 0; 14141} 14142_ACEOF 14143if ac_fn_c_try_link "$LINENO"; then : 14144 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 14145 lt_cv_shlibpath_overrides_runpath=yes 14146fi 14147fi 14148rm -f core conftest.err conftest.$ac_objext \ 14149 conftest$ac_exeext conftest.$ac_ext 14150 LDFLAGS=$save_LDFLAGS 14151 libdir=$save_libdir 14152 14153fi 14154 14155 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 14156 14157 # This implies no fast_install, which is unacceptable. 14158 # Some rework will be needed to allow for fast_install 14159 # before this can be enabled. 14160 hardcode_into_libs=yes 14161 14162 # Ideally, we could use ldconfig to report *all* directores which are 14163 # searched for libraries, however this is still not possible. Aside from not 14164 # being certain /sbin/ldconfig is available, command 14165 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 14166 # even though it is searched at run-time. Try to do the best guess by 14167 # appending ld.so.conf contents (and includes) to the search path. 14168 if test -f /etc/ld.so.conf; then 14169 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 14170 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14171 fi 14172 14173 # We used to test for /lib/ld.so.1 and disable shared libraries on 14174 # powerpc, because MkLinux only supported shared libraries with the 14175 # GNU dynamic linker. Since this was broken with cross compilers, 14176 # most powerpc-linux boxes support dynamic linking these days and 14177 # people can always --disable-shared, the test was removed, and we 14178 # assume the GNU/Linux dynamic linker is in use. 14179 dynamic_linker='GNU/Linux ld.so' 14180 ;; 14181 14182netbsd*) 14183 version_type=sunos 14184 need_lib_prefix=no 14185 need_version=no 14186 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14187 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14188 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14189 dynamic_linker='NetBSD (a.out) ld.so' 14190 else 14191 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14192 soname_spec='$libname$release$shared_ext$major' 14193 dynamic_linker='NetBSD ld.elf_so' 14194 fi 14195 shlibpath_var=LD_LIBRARY_PATH 14196 shlibpath_overrides_runpath=yes 14197 hardcode_into_libs=yes 14198 ;; 14199 14200newsos6) 14201 version_type=linux # correct to gnu/linux during the next big refactor 14202 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14203 shlibpath_var=LD_LIBRARY_PATH 14204 shlibpath_overrides_runpath=yes 14205 ;; 14206 14207*nto* | *qnx*) 14208 version_type=qnx 14209 need_lib_prefix=no 14210 need_version=no 14211 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14212 soname_spec='$libname$release$shared_ext$major' 14213 shlibpath_var=LD_LIBRARY_PATH 14214 shlibpath_overrides_runpath=no 14215 hardcode_into_libs=yes 14216 dynamic_linker='ldqnx.so' 14217 ;; 14218 14219openbsd* | bitrig*) 14220 version_type=sunos 14221 sys_lib_dlsearch_path_spec=/usr/lib 14222 need_lib_prefix=no 14223 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 14224 need_version=no 14225 else 14226 need_version=yes 14227 fi 14228 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14229 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14230 shlibpath_var=LD_LIBRARY_PATH 14231 shlibpath_overrides_runpath=yes 14232 ;; 14233 14234os2*) 14235 libname_spec='$name' 14236 version_type=windows 14237 shrext_cmds=.dll 14238 need_version=no 14239 need_lib_prefix=no 14240 # OS/2 can only load a DLL with a base name of 8 characters or less. 14241 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 14242 v=$($ECHO $release$versuffix | tr -d .-); 14243 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 14244 $ECHO $n$v`$shared_ext' 14245 library_names_spec='${libname}_dll.$libext' 14246 dynamic_linker='OS/2 ld.exe' 14247 shlibpath_var=BEGINLIBPATH 14248 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14249 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14250 postinstall_cmds='base_file=`basename \$file`~ 14251 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 14252 dldir=$destdir/`dirname \$dlpath`~ 14253 test -d \$dldir || mkdir -p \$dldir~ 14254 $install_prog $dir/$dlname \$dldir/$dlname~ 14255 chmod a+x \$dldir/$dlname~ 14256 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14257 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14258 fi' 14259 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 14260 dlpath=$dir/\$dldll~ 14261 $RM \$dlpath' 14262 ;; 14263 14264osf3* | osf4* | osf5*) 14265 version_type=osf 14266 need_lib_prefix=no 14267 need_version=no 14268 soname_spec='$libname$release$shared_ext$major' 14269 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14270 shlibpath_var=LD_LIBRARY_PATH 14271 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14272 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14273 ;; 14274 14275rdos*) 14276 dynamic_linker=no 14277 ;; 14278 14279solaris*) 14280 version_type=linux # correct to gnu/linux during the next big refactor 14281 need_lib_prefix=no 14282 need_version=no 14283 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14284 soname_spec='$libname$release$shared_ext$major' 14285 shlibpath_var=LD_LIBRARY_PATH 14286 shlibpath_overrides_runpath=yes 14287 hardcode_into_libs=yes 14288 # ldd complains unless libraries are executable 14289 postinstall_cmds='chmod +x $lib' 14290 ;; 14291 14292sunos4*) 14293 version_type=sunos 14294 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14295 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14296 shlibpath_var=LD_LIBRARY_PATH 14297 shlibpath_overrides_runpath=yes 14298 if test yes = "$with_gnu_ld"; then 14299 need_lib_prefix=no 14300 fi 14301 need_version=yes 14302 ;; 14303 14304sysv4 | sysv4.3*) 14305 version_type=linux # correct to gnu/linux during the next big refactor 14306 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14307 soname_spec='$libname$release$shared_ext$major' 14308 shlibpath_var=LD_LIBRARY_PATH 14309 case $host_vendor in 14310 sni) 14311 shlibpath_overrides_runpath=no 14312 need_lib_prefix=no 14313 runpath_var=LD_RUN_PATH 14314 ;; 14315 siemens) 14316 need_lib_prefix=no 14317 ;; 14318 motorola) 14319 need_lib_prefix=no 14320 need_version=no 14321 shlibpath_overrides_runpath=no 14322 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14323 ;; 14324 esac 14325 ;; 14326 14327sysv4*MP*) 14328 if test -d /usr/nec; then 14329 version_type=linux # correct to gnu/linux during the next big refactor 14330 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 14331 soname_spec='$libname$shared_ext.$major' 14332 shlibpath_var=LD_LIBRARY_PATH 14333 fi 14334 ;; 14335 14336sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14337 version_type=sco 14338 need_lib_prefix=no 14339 need_version=no 14340 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 14341 soname_spec='$libname$release$shared_ext$major' 14342 shlibpath_var=LD_LIBRARY_PATH 14343 shlibpath_overrides_runpath=yes 14344 hardcode_into_libs=yes 14345 if test yes = "$with_gnu_ld"; then 14346 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14347 else 14348 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14349 case $host_os in 14350 sco3.2v5*) 14351 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14352 ;; 14353 esac 14354 fi 14355 sys_lib_dlsearch_path_spec='/usr/lib' 14356 ;; 14357 14358tpf*) 14359 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14360 version_type=linux # correct to gnu/linux during the next big refactor 14361 need_lib_prefix=no 14362 need_version=no 14363 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14364 shlibpath_var=LD_LIBRARY_PATH 14365 shlibpath_overrides_runpath=no 14366 hardcode_into_libs=yes 14367 ;; 14368 14369uts4*) 14370 version_type=linux # correct to gnu/linux during the next big refactor 14371 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14372 soname_spec='$libname$release$shared_ext$major' 14373 shlibpath_var=LD_LIBRARY_PATH 14374 ;; 14375 14376*) 14377 dynamic_linker=no 14378 ;; 14379esac 14380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14381$as_echo "$dynamic_linker" >&6; } 14382test no = "$dynamic_linker" && can_build_shared=no 14383 14384variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14385if test yes = "$GCC"; then 14386 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14387fi 14388 14389if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 14390 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 14391fi 14392 14393if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 14394 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 14395fi 14396 14397# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 14398configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 14399 14400# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 14401func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 14402 14403# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 14404configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 14405 14406 14407 14408 14409 14410 14411 14412 14413 14414 14415 14416 14417 14418 14419 14420 14421 14422 14423 14424 14425 14426 14427 14428 14429 14430 14431 14432 14433 14434 14435 14436 14437 14438 14439 14440 14441 14442 14443 14444 14445 14446 14447 14448 14449 14450 14451 14452 14453 14454 14455 14456 14457 14458 14459 14460 14461 14462 14463 14464 14465 14466 14467 14468 14469 14470 14471 14472 14473 14474 14475 14476 14477 14478 14479 14480 14481 14482 14483 14484 14485 14486 14487 14488 14489 14490 14491 14492 14493 14494 14495 14496 14497 14498 14499 14500 14501 14502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 14503$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 14504hardcode_action= 14505if test -n "$hardcode_libdir_flag_spec" || 14506 test -n "$runpath_var" || 14507 test yes = "$hardcode_automatic"; then 14508 14509 # We can hardcode non-existent directories. 14510 if test no != "$hardcode_direct" && 14511 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14512 # have to relink, otherwise we might link with an installed library 14513 # when we should be linking with a yet-to-be-installed one 14514 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 14515 test no != "$hardcode_minus_L"; then 14516 # Linking always hardcodes the temporary library directory. 14517 hardcode_action=relink 14518 else 14519 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14520 hardcode_action=immediate 14521 fi 14522else 14523 # We cannot hardcode anything, or else we can only hardcode existing 14524 # directories. 14525 hardcode_action=unsupported 14526fi 14527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 14528$as_echo "$hardcode_action" >&6; } 14529 14530if test relink = "$hardcode_action" || 14531 test yes = "$inherit_rpath"; then 14532 # Fast installation is not supported 14533 enable_fast_install=no 14534elif test yes = "$shlibpath_overrides_runpath" || 14535 test no = "$enable_shared"; then 14536 # Fast installation is not necessary 14537 enable_fast_install=needless 14538fi 14539 14540 14541 14542 14543 14544 14545 if test yes != "$enable_dlopen"; then 14546 enable_dlopen=unknown 14547 enable_dlopen_self=unknown 14548 enable_dlopen_self_static=unknown 14549else 14550 lt_cv_dlopen=no 14551 lt_cv_dlopen_libs= 14552 14553 case $host_os in 14554 beos*) 14555 lt_cv_dlopen=load_add_on 14556 lt_cv_dlopen_libs= 14557 lt_cv_dlopen_self=yes 14558 ;; 14559 14560 mingw* | pw32* | cegcc*) 14561 lt_cv_dlopen=LoadLibrary 14562 lt_cv_dlopen_libs= 14563 ;; 14564 14565 cygwin*) 14566 lt_cv_dlopen=dlopen 14567 lt_cv_dlopen_libs= 14568 ;; 14569 14570 darwin*) 14571 # if libdl is installed we need to link against it 14572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14573$as_echo_n "checking for dlopen in -ldl... " >&6; } 14574if ${ac_cv_lib_dl_dlopen+:} false; then : 14575 $as_echo_n "(cached) " >&6 14576else 14577 ac_check_lib_save_LIBS=$LIBS 14578LIBS="-ldl $LIBS" 14579cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14580/* end confdefs.h. */ 14581 14582/* Override any GCC internal prototype to avoid an error. 14583 Use char because int might match the return type of a GCC 14584 builtin and then its argument prototype would still apply. */ 14585#ifdef __cplusplus 14586extern "C" 14587#endif 14588char dlopen (); 14589int 14590main () 14591{ 14592return dlopen (); 14593 ; 14594 return 0; 14595} 14596_ACEOF 14597if ac_fn_c_try_link "$LINENO"; then : 14598 ac_cv_lib_dl_dlopen=yes 14599else 14600 ac_cv_lib_dl_dlopen=no 14601fi 14602rm -f core conftest.err conftest.$ac_objext \ 14603 conftest$ac_exeext conftest.$ac_ext 14604LIBS=$ac_check_lib_save_LIBS 14605fi 14606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14607$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14608if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14609 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 14610else 14611 14612 lt_cv_dlopen=dyld 14613 lt_cv_dlopen_libs= 14614 lt_cv_dlopen_self=yes 14615 14616fi 14617 14618 ;; 14619 14620 tpf*) 14621 # Don't try to run any link tests for TPF. We know it's impossible 14622 # because TPF is a cross-compiler, and we know how we open DSOs. 14623 lt_cv_dlopen=dlopen 14624 lt_cv_dlopen_libs= 14625 lt_cv_dlopen_self=no 14626 ;; 14627 14628 *) 14629 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 14630if test "x$ac_cv_func_shl_load" = xyes; then : 14631 lt_cv_dlopen=shl_load 14632else 14633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 14634$as_echo_n "checking for shl_load in -ldld... " >&6; } 14635if ${ac_cv_lib_dld_shl_load+:} false; then : 14636 $as_echo_n "(cached) " >&6 14637else 14638 ac_check_lib_save_LIBS=$LIBS 14639LIBS="-ldld $LIBS" 14640cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14641/* end confdefs.h. */ 14642 14643/* Override any GCC internal prototype to avoid an error. 14644 Use char because int might match the return type of a GCC 14645 builtin and then its argument prototype would still apply. */ 14646#ifdef __cplusplus 14647extern "C" 14648#endif 14649char shl_load (); 14650int 14651main () 14652{ 14653return shl_load (); 14654 ; 14655 return 0; 14656} 14657_ACEOF 14658if ac_fn_c_try_link "$LINENO"; then : 14659 ac_cv_lib_dld_shl_load=yes 14660else 14661 ac_cv_lib_dld_shl_load=no 14662fi 14663rm -f core conftest.err conftest.$ac_objext \ 14664 conftest$ac_exeext conftest.$ac_ext 14665LIBS=$ac_check_lib_save_LIBS 14666fi 14667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 14668$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 14669if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 14670 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 14671else 14672 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 14673if test "x$ac_cv_func_dlopen" = xyes; then : 14674 lt_cv_dlopen=dlopen 14675else 14676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14677$as_echo_n "checking for dlopen in -ldl... " >&6; } 14678if ${ac_cv_lib_dl_dlopen+:} false; then : 14679 $as_echo_n "(cached) " >&6 14680else 14681 ac_check_lib_save_LIBS=$LIBS 14682LIBS="-ldl $LIBS" 14683cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14684/* end confdefs.h. */ 14685 14686/* Override any GCC internal prototype to avoid an error. 14687 Use char because int might match the return type of a GCC 14688 builtin and then its argument prototype would still apply. */ 14689#ifdef __cplusplus 14690extern "C" 14691#endif 14692char dlopen (); 14693int 14694main () 14695{ 14696return dlopen (); 14697 ; 14698 return 0; 14699} 14700_ACEOF 14701if ac_fn_c_try_link "$LINENO"; then : 14702 ac_cv_lib_dl_dlopen=yes 14703else 14704 ac_cv_lib_dl_dlopen=no 14705fi 14706rm -f core conftest.err conftest.$ac_objext \ 14707 conftest$ac_exeext conftest.$ac_ext 14708LIBS=$ac_check_lib_save_LIBS 14709fi 14710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14711$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14712if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14713 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 14714else 14715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 14716$as_echo_n "checking for dlopen in -lsvld... " >&6; } 14717if ${ac_cv_lib_svld_dlopen+:} false; then : 14718 $as_echo_n "(cached) " >&6 14719else 14720 ac_check_lib_save_LIBS=$LIBS 14721LIBS="-lsvld $LIBS" 14722cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14723/* end confdefs.h. */ 14724 14725/* Override any GCC internal prototype to avoid an error. 14726 Use char because int might match the return type of a GCC 14727 builtin and then its argument prototype would still apply. */ 14728#ifdef __cplusplus 14729extern "C" 14730#endif 14731char dlopen (); 14732int 14733main () 14734{ 14735return dlopen (); 14736 ; 14737 return 0; 14738} 14739_ACEOF 14740if ac_fn_c_try_link "$LINENO"; then : 14741 ac_cv_lib_svld_dlopen=yes 14742else 14743 ac_cv_lib_svld_dlopen=no 14744fi 14745rm -f core conftest.err conftest.$ac_objext \ 14746 conftest$ac_exeext conftest.$ac_ext 14747LIBS=$ac_check_lib_save_LIBS 14748fi 14749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 14750$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 14751if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 14752 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 14753else 14754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 14755$as_echo_n "checking for dld_link in -ldld... " >&6; } 14756if ${ac_cv_lib_dld_dld_link+:} false; then : 14757 $as_echo_n "(cached) " >&6 14758else 14759 ac_check_lib_save_LIBS=$LIBS 14760LIBS="-ldld $LIBS" 14761cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14762/* end confdefs.h. */ 14763 14764/* Override any GCC internal prototype to avoid an error. 14765 Use char because int might match the return type of a GCC 14766 builtin and then its argument prototype would still apply. */ 14767#ifdef __cplusplus 14768extern "C" 14769#endif 14770char dld_link (); 14771int 14772main () 14773{ 14774return dld_link (); 14775 ; 14776 return 0; 14777} 14778_ACEOF 14779if ac_fn_c_try_link "$LINENO"; then : 14780 ac_cv_lib_dld_dld_link=yes 14781else 14782 ac_cv_lib_dld_dld_link=no 14783fi 14784rm -f core conftest.err conftest.$ac_objext \ 14785 conftest$ac_exeext conftest.$ac_ext 14786LIBS=$ac_check_lib_save_LIBS 14787fi 14788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 14789$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 14790if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 14791 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 14792fi 14793 14794 14795fi 14796 14797 14798fi 14799 14800 14801fi 14802 14803 14804fi 14805 14806 14807fi 14808 14809 ;; 14810 esac 14811 14812 if test no = "$lt_cv_dlopen"; then 14813 enable_dlopen=no 14814 else 14815 enable_dlopen=yes 14816 fi 14817 14818 case $lt_cv_dlopen in 14819 dlopen) 14820 save_CPPFLAGS=$CPPFLAGS 14821 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 14822 14823 save_LDFLAGS=$LDFLAGS 14824 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 14825 14826 save_LIBS=$LIBS 14827 LIBS="$lt_cv_dlopen_libs $LIBS" 14828 14829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 14830$as_echo_n "checking whether a program can dlopen itself... " >&6; } 14831if ${lt_cv_dlopen_self+:} false; then : 14832 $as_echo_n "(cached) " >&6 14833else 14834 if test yes = "$cross_compiling"; then : 14835 lt_cv_dlopen_self=cross 14836else 14837 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14838 lt_status=$lt_dlunknown 14839 cat > conftest.$ac_ext <<_LT_EOF 14840#line $LINENO "configure" 14841#include "confdefs.h" 14842 14843#if HAVE_DLFCN_H 14844#include <dlfcn.h> 14845#endif 14846 14847#include <stdio.h> 14848 14849#ifdef RTLD_GLOBAL 14850# define LT_DLGLOBAL RTLD_GLOBAL 14851#else 14852# ifdef DL_GLOBAL 14853# define LT_DLGLOBAL DL_GLOBAL 14854# else 14855# define LT_DLGLOBAL 0 14856# endif 14857#endif 14858 14859/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14860 find out it does not work in some platform. */ 14861#ifndef LT_DLLAZY_OR_NOW 14862# ifdef RTLD_LAZY 14863# define LT_DLLAZY_OR_NOW RTLD_LAZY 14864# else 14865# ifdef DL_LAZY 14866# define LT_DLLAZY_OR_NOW DL_LAZY 14867# else 14868# ifdef RTLD_NOW 14869# define LT_DLLAZY_OR_NOW RTLD_NOW 14870# else 14871# ifdef DL_NOW 14872# define LT_DLLAZY_OR_NOW DL_NOW 14873# else 14874# define LT_DLLAZY_OR_NOW 0 14875# endif 14876# endif 14877# endif 14878# endif 14879#endif 14880 14881/* When -fvisibility=hidden is used, assume the code has been annotated 14882 correspondingly for the symbols needed. */ 14883#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14884int fnord () __attribute__((visibility("default"))); 14885#endif 14886 14887int fnord () { return 42; } 14888int main () 14889{ 14890 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14891 int status = $lt_dlunknown; 14892 14893 if (self) 14894 { 14895 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14896 else 14897 { 14898 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14899 else puts (dlerror ()); 14900 } 14901 /* dlclose (self); */ 14902 } 14903 else 14904 puts (dlerror ()); 14905 14906 return status; 14907} 14908_LT_EOF 14909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14910 (eval $ac_link) 2>&5 14911 ac_status=$? 14912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14913 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14914 (./conftest; exit; ) >&5 2>/dev/null 14915 lt_status=$? 14916 case x$lt_status in 14917 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 14918 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 14919 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 14920 esac 14921 else : 14922 # compilation failed 14923 lt_cv_dlopen_self=no 14924 fi 14925fi 14926rm -fr conftest* 14927 14928 14929fi 14930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 14931$as_echo "$lt_cv_dlopen_self" >&6; } 14932 14933 if test yes = "$lt_cv_dlopen_self"; then 14934 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 14936$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 14937if ${lt_cv_dlopen_self_static+:} false; then : 14938 $as_echo_n "(cached) " >&6 14939else 14940 if test yes = "$cross_compiling"; then : 14941 lt_cv_dlopen_self_static=cross 14942else 14943 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14944 lt_status=$lt_dlunknown 14945 cat > conftest.$ac_ext <<_LT_EOF 14946#line $LINENO "configure" 14947#include "confdefs.h" 14948 14949#if HAVE_DLFCN_H 14950#include <dlfcn.h> 14951#endif 14952 14953#include <stdio.h> 14954 14955#ifdef RTLD_GLOBAL 14956# define LT_DLGLOBAL RTLD_GLOBAL 14957#else 14958# ifdef DL_GLOBAL 14959# define LT_DLGLOBAL DL_GLOBAL 14960# else 14961# define LT_DLGLOBAL 0 14962# endif 14963#endif 14964 14965/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14966 find out it does not work in some platform. */ 14967#ifndef LT_DLLAZY_OR_NOW 14968# ifdef RTLD_LAZY 14969# define LT_DLLAZY_OR_NOW RTLD_LAZY 14970# else 14971# ifdef DL_LAZY 14972# define LT_DLLAZY_OR_NOW DL_LAZY 14973# else 14974# ifdef RTLD_NOW 14975# define LT_DLLAZY_OR_NOW RTLD_NOW 14976# else 14977# ifdef DL_NOW 14978# define LT_DLLAZY_OR_NOW DL_NOW 14979# else 14980# define LT_DLLAZY_OR_NOW 0 14981# endif 14982# endif 14983# endif 14984# endif 14985#endif 14986 14987/* When -fvisibility=hidden is used, assume the code has been annotated 14988 correspondingly for the symbols needed. */ 14989#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14990int fnord () __attribute__((visibility("default"))); 14991#endif 14992 14993int fnord () { return 42; } 14994int main () 14995{ 14996 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14997 int status = $lt_dlunknown; 14998 14999 if (self) 15000 { 15001 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 15002 else 15003 { 15004 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 15005 else puts (dlerror ()); 15006 } 15007 /* dlclose (self); */ 15008 } 15009 else 15010 puts (dlerror ()); 15011 15012 return status; 15013} 15014_LT_EOF 15015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 15016 (eval $ac_link) 2>&5 15017 ac_status=$? 15018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15019 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 15020 (./conftest; exit; ) >&5 2>/dev/null 15021 lt_status=$? 15022 case x$lt_status in 15023 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 15024 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 15025 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 15026 esac 15027 else : 15028 # compilation failed 15029 lt_cv_dlopen_self_static=no 15030 fi 15031fi 15032rm -fr conftest* 15033 15034 15035fi 15036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 15037$as_echo "$lt_cv_dlopen_self_static" >&6; } 15038 fi 15039 15040 CPPFLAGS=$save_CPPFLAGS 15041 LDFLAGS=$save_LDFLAGS 15042 LIBS=$save_LIBS 15043 ;; 15044 esac 15045 15046 case $lt_cv_dlopen_self in 15047 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 15048 *) enable_dlopen_self=unknown ;; 15049 esac 15050 15051 case $lt_cv_dlopen_self_static in 15052 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 15053 *) enable_dlopen_self_static=unknown ;; 15054 esac 15055fi 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 15066 15067 15068 15069 15070 15071 15072 15073striplib= 15074old_striplib= 15075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 15076$as_echo_n "checking whether stripping libraries is possible... " >&6; } 15077if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 15078 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 15079 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 15080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15081$as_echo "yes" >&6; } 15082else 15083# FIXME - insert some real tests, host_os isn't really good enough 15084 case $host_os in 15085 darwin*) 15086 if test -n "$STRIP"; then 15087 striplib="$STRIP -x" 15088 old_striplib="$STRIP -S" 15089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15090$as_echo "yes" >&6; } 15091 else 15092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15093$as_echo "no" >&6; } 15094 fi 15095 ;; 15096 *) 15097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15098$as_echo "no" >&6; } 15099 ;; 15100 esac 15101fi 15102 15103 15104 15105 15106 15107 15108 15109 15110 15111 15112 15113 15114 # Report what library types will actually be built 15115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 15116$as_echo_n "checking if libtool supports shared libraries... " >&6; } 15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 15118$as_echo "$can_build_shared" >&6; } 15119 15120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 15121$as_echo_n "checking whether to build shared libraries... " >&6; } 15122 test no = "$can_build_shared" && enable_shared=no 15123 15124 # On AIX, shared libraries and static libraries use the same namespace, and 15125 # are all built from PIC. 15126 case $host_os in 15127 aix3*) 15128 test yes = "$enable_shared" && enable_static=no 15129 if test -n "$RANLIB"; then 15130 archive_cmds="$archive_cmds~\$RANLIB \$lib" 15131 postinstall_cmds='$RANLIB $lib' 15132 fi 15133 ;; 15134 15135 aix[4-9]*) 15136 if test ia64 != "$host_cpu"; then 15137 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 15138 yes,aix,yes) ;; # shared object as lib.so file only 15139 yes,svr4,*) ;; # shared object as lib.so archive member only 15140 yes,*) enable_static=no ;; # shared object in lib.a archive as well 15141 esac 15142 fi 15143 ;; 15144 esac 15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 15146$as_echo "$enable_shared" >&6; } 15147 15148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 15149$as_echo_n "checking whether to build static libraries... " >&6; } 15150 # Make sure either enable_shared or enable_static is yes. 15151 test yes = "$enable_shared" || enable_static=yes 15152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 15153$as_echo "$enable_static" >&6; } 15154 15155 15156 15157 15158fi 15159ac_ext=c 15160ac_cpp='$CPP $CPPFLAGS' 15161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15163ac_compiler_gnu=$ac_cv_c_compiler_gnu 15164 15165CC=$lt_save_CC 15166 15167 if test -n "$CXX" && ( test no != "$CXX" && 15168 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 15169 (test g++ != "$CXX"))); then 15170 ac_ext=cpp 15171ac_cpp='$CXXCPP $CPPFLAGS' 15172ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15173ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15174ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 15176$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 15177if test -z "$CXXCPP"; then 15178 if ${ac_cv_prog_CXXCPP+:} false; then : 15179 $as_echo_n "(cached) " >&6 15180else 15181 # Double quotes because CXXCPP needs to be expanded 15182 for CXXCPP in "$CXX -E" "/lib/cpp" 15183 do 15184 ac_preproc_ok=false 15185for ac_cxx_preproc_warn_flag in '' yes 15186do 15187 # Use a header file that comes with gcc, so configuring glibc 15188 # with a fresh cross-compiler works. 15189 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15190 # <limits.h> exists even on freestanding compilers. 15191 # On the NeXT, cc -E runs the code through the compiler's parser, 15192 # not just through cpp. "Syntax error" is here to catch this case. 15193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15194/* end confdefs.h. */ 15195#ifdef __STDC__ 15196# include <limits.h> 15197#else 15198# include <assert.h> 15199#endif 15200 Syntax error 15201_ACEOF 15202if ac_fn_cxx_try_cpp "$LINENO"; then : 15203 15204else 15205 # Broken: fails on valid input. 15206continue 15207fi 15208rm -f conftest.err conftest.i conftest.$ac_ext 15209 15210 # OK, works on sane cases. Now check whether nonexistent headers 15211 # can be detected and how. 15212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15213/* end confdefs.h. */ 15214#include <ac_nonexistent.h> 15215_ACEOF 15216if ac_fn_cxx_try_cpp "$LINENO"; then : 15217 # Broken: success on invalid input. 15218continue 15219else 15220 # Passes both tests. 15221ac_preproc_ok=: 15222break 15223fi 15224rm -f conftest.err conftest.i conftest.$ac_ext 15225 15226done 15227# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 15228rm -f conftest.i conftest.err conftest.$ac_ext 15229if $ac_preproc_ok; then : 15230 break 15231fi 15232 15233 done 15234 ac_cv_prog_CXXCPP=$CXXCPP 15235 15236fi 15237 CXXCPP=$ac_cv_prog_CXXCPP 15238else 15239 ac_cv_prog_CXXCPP=$CXXCPP 15240fi 15241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 15242$as_echo "$CXXCPP" >&6; } 15243ac_preproc_ok=false 15244for ac_cxx_preproc_warn_flag in '' yes 15245do 15246 # Use a header file that comes with gcc, so configuring glibc 15247 # with a fresh cross-compiler works. 15248 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15249 # <limits.h> exists even on freestanding compilers. 15250 # On the NeXT, cc -E runs the code through the compiler's parser, 15251 # not just through cpp. "Syntax error" is here to catch this case. 15252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15253/* end confdefs.h. */ 15254#ifdef __STDC__ 15255# include <limits.h> 15256#else 15257# include <assert.h> 15258#endif 15259 Syntax error 15260_ACEOF 15261if ac_fn_cxx_try_cpp "$LINENO"; then : 15262 15263else 15264 # Broken: fails on valid input. 15265continue 15266fi 15267rm -f conftest.err conftest.i conftest.$ac_ext 15268 15269 # OK, works on sane cases. Now check whether nonexistent headers 15270 # can be detected and how. 15271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15272/* end confdefs.h. */ 15273#include <ac_nonexistent.h> 15274_ACEOF 15275if ac_fn_cxx_try_cpp "$LINENO"; then : 15276 # Broken: success on invalid input. 15277continue 15278else 15279 # Passes both tests. 15280ac_preproc_ok=: 15281break 15282fi 15283rm -f conftest.err conftest.i conftest.$ac_ext 15284 15285done 15286# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 15287rm -f conftest.i conftest.err conftest.$ac_ext 15288if $ac_preproc_ok; then : 15289 15290else 15291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15293as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 15294See \`config.log' for more details" "$LINENO" 5; } 15295fi 15296 15297ac_ext=c 15298ac_cpp='$CPP $CPPFLAGS' 15299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15301ac_compiler_gnu=$ac_cv_c_compiler_gnu 15302 15303else 15304 _lt_caught_CXX_error=yes 15305fi 15306 15307ac_ext=cpp 15308ac_cpp='$CXXCPP $CPPFLAGS' 15309ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15310ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15311ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15312 15313archive_cmds_need_lc_CXX=no 15314allow_undefined_flag_CXX= 15315always_export_symbols_CXX=no 15316archive_expsym_cmds_CXX= 15317compiler_needs_object_CXX=no 15318export_dynamic_flag_spec_CXX= 15319hardcode_direct_CXX=no 15320hardcode_direct_absolute_CXX=no 15321hardcode_libdir_flag_spec_CXX= 15322hardcode_libdir_separator_CXX= 15323hardcode_minus_L_CXX=no 15324hardcode_shlibpath_var_CXX=unsupported 15325hardcode_automatic_CXX=no 15326inherit_rpath_CXX=no 15327module_cmds_CXX= 15328module_expsym_cmds_CXX= 15329link_all_deplibs_CXX=unknown 15330old_archive_cmds_CXX=$old_archive_cmds 15331reload_flag_CXX=$reload_flag 15332reload_cmds_CXX=$reload_cmds 15333no_undefined_flag_CXX= 15334whole_archive_flag_spec_CXX= 15335enable_shared_with_static_runtimes_CXX=no 15336 15337# Source file extension for C++ test sources. 15338ac_ext=cpp 15339 15340# Object file extension for compiled C++ test sources. 15341objext=o 15342objext_CXX=$objext 15343 15344# No sense in running all these tests if we already determined that 15345# the CXX compiler isn't working. Some variables (like enable_shared) 15346# are currently assumed to apply to all compilers on this platform, 15347# and will be corrupted by setting them based on a non-working compiler. 15348if test yes != "$_lt_caught_CXX_error"; then 15349 # Code to be used in simple compile tests 15350 lt_simple_compile_test_code="int some_variable = 0;" 15351 15352 # Code to be used in simple link tests 15353 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 15354 15355 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 15356 15357 15358 15359 15360 15361 15362# If no C compiler was specified, use CC. 15363LTCC=${LTCC-"$CC"} 15364 15365# If no C compiler flags were specified, use CFLAGS. 15366LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15367 15368# Allow CC to be a program name with arguments. 15369compiler=$CC 15370 15371 15372 # save warnings/boilerplate of simple test code 15373 ac_outfile=conftest.$ac_objext 15374echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15375eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15376_lt_compiler_boilerplate=`cat conftest.err` 15377$RM conftest* 15378 15379 ac_outfile=conftest.$ac_objext 15380echo "$lt_simple_link_test_code" >conftest.$ac_ext 15381eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15382_lt_linker_boilerplate=`cat conftest.err` 15383$RM -r conftest* 15384 15385 15386 # Allow CC to be a program name with arguments. 15387 lt_save_CC=$CC 15388 lt_save_CFLAGS=$CFLAGS 15389 lt_save_LD=$LD 15390 lt_save_GCC=$GCC 15391 GCC=$GXX 15392 lt_save_with_gnu_ld=$with_gnu_ld 15393 lt_save_path_LD=$lt_cv_path_LD 15394 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 15395 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 15396 else 15397 $as_unset lt_cv_prog_gnu_ld 15398 fi 15399 if test -n "${lt_cv_path_LDCXX+set}"; then 15400 lt_cv_path_LD=$lt_cv_path_LDCXX 15401 else 15402 $as_unset lt_cv_path_LD 15403 fi 15404 test -z "${LDCXX+set}" || LD=$LDCXX 15405 CC=${CXX-"c++"} 15406 CFLAGS=$CXXFLAGS 15407 compiler=$CC 15408 compiler_CXX=$CC 15409 func_cc_basename $compiler 15410cc_basename=$func_cc_basename_result 15411 15412 15413 if test -n "$compiler"; then 15414 # We don't want -fno-exception when compiling C++ code, so set the 15415 # no_builtin_flag separately 15416 if test yes = "$GXX"; then 15417 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 15418 else 15419 lt_prog_compiler_no_builtin_flag_CXX= 15420 fi 15421 15422 if test yes = "$GXX"; then 15423 # Set up default GNU C++ configuration 15424 15425 15426 15427# Check whether --with-gnu-ld was given. 15428if test "${with_gnu_ld+set}" = set; then : 15429 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 15430else 15431 with_gnu_ld=no 15432fi 15433 15434ac_prog=ld 15435if test yes = "$GCC"; then 15436 # Check if gcc -print-prog-name=ld gives a path. 15437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 15438$as_echo_n "checking for ld used by $CC... " >&6; } 15439 case $host in 15440 *-*-mingw*) 15441 # gcc leaves a trailing carriage return, which upsets mingw 15442 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 15443 *) 15444 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 15445 esac 15446 case $ac_prog in 15447 # Accept absolute paths. 15448 [\\/]* | ?:[\\/]*) 15449 re_direlt='/[^/][^/]*/\.\./' 15450 # Canonicalize the pathname of ld 15451 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 15452 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 15453 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 15454 done 15455 test -z "$LD" && LD=$ac_prog 15456 ;; 15457 "") 15458 # If it fails, then pretend we aren't using GCC. 15459 ac_prog=ld 15460 ;; 15461 *) 15462 # If it is relative, then search for the first ld in PATH. 15463 with_gnu_ld=unknown 15464 ;; 15465 esac 15466elif test yes = "$with_gnu_ld"; then 15467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 15468$as_echo_n "checking for GNU ld... " >&6; } 15469else 15470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 15471$as_echo_n "checking for non-GNU ld... " >&6; } 15472fi 15473if ${lt_cv_path_LD+:} false; then : 15474 $as_echo_n "(cached) " >&6 15475else 15476 if test -z "$LD"; then 15477 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15478 for ac_dir in $PATH; do 15479 IFS=$lt_save_ifs 15480 test -z "$ac_dir" && ac_dir=. 15481 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 15482 lt_cv_path_LD=$ac_dir/$ac_prog 15483 # Check to see if the program is GNU ld. I'd rather use --version, 15484 # but apparently some variants of GNU ld only accept -v. 15485 # Break only if it was the GNU/non-GNU ld that we prefer. 15486 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 15487 *GNU* | *'with BFD'*) 15488 test no != "$with_gnu_ld" && break 15489 ;; 15490 *) 15491 test yes != "$with_gnu_ld" && break 15492 ;; 15493 esac 15494 fi 15495 done 15496 IFS=$lt_save_ifs 15497else 15498 lt_cv_path_LD=$LD # Let the user override the test with a path. 15499fi 15500fi 15501 15502LD=$lt_cv_path_LD 15503if test -n "$LD"; then 15504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 15505$as_echo "$LD" >&6; } 15506else 15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15508$as_echo "no" >&6; } 15509fi 15510test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 15511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 15512$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 15513if ${lt_cv_prog_gnu_ld+:} false; then : 15514 $as_echo_n "(cached) " >&6 15515else 15516 # I'd rather use --version here, but apparently some GNU lds only accept -v. 15517case `$LD -v 2>&1 </dev/null` in 15518*GNU* | *'with BFD'*) 15519 lt_cv_prog_gnu_ld=yes 15520 ;; 15521*) 15522 lt_cv_prog_gnu_ld=no 15523 ;; 15524esac 15525fi 15526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 15527$as_echo "$lt_cv_prog_gnu_ld" >&6; } 15528with_gnu_ld=$lt_cv_prog_gnu_ld 15529 15530 15531 15532 15533 15534 15535 15536 # Check if GNU C++ uses GNU ld as the underlying linker, since the 15537 # archiving commands below assume that GNU ld is being used. 15538 if test yes = "$with_gnu_ld"; then 15539 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15540 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15541 15542 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15543 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 15544 15545 # If archive_cmds runs LD, not CC, wlarc should be empty 15546 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 15547 # investigate it a little bit more. (MM) 15548 wlarc='$wl' 15549 15550 # ancient GNU ld didn't support --whole-archive et. al. 15551 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 15552 $GREP 'no-whole-archive' > /dev/null; then 15553 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 15554 else 15555 whole_archive_flag_spec_CXX= 15556 fi 15557 else 15558 with_gnu_ld=no 15559 wlarc= 15560 15561 # A generic and very simple default shared library creation 15562 # command for GNU C++ for the case where it uses the native 15563 # linker, instead of GNU ld. If possible, this setting should 15564 # overridden to take advantage of the native linker features on 15565 # the platform it is being used on. 15566 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 15567 fi 15568 15569 # Commands to make compiler produce verbose output that lists 15570 # what "hidden" libraries, object files and flags are used when 15571 # linking a shared library. 15572 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15573 15574 else 15575 GXX=no 15576 with_gnu_ld=no 15577 wlarc= 15578 fi 15579 15580 # PORTME: fill in a description of your system's C++ link characteristics 15581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15582$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15583 ld_shlibs_CXX=yes 15584 case $host_os in 15585 aix3*) 15586 # FIXME: insert proper C++ library support 15587 ld_shlibs_CXX=no 15588 ;; 15589 aix[4-9]*) 15590 if test ia64 = "$host_cpu"; then 15591 # On IA64, the linker does run time linking by default, so we don't 15592 # have to do anything special. 15593 aix_use_runtimelinking=no 15594 exp_sym_flag='-Bexport' 15595 no_entry_flag= 15596 else 15597 aix_use_runtimelinking=no 15598 15599 # Test if we are trying to use run time linking or normal 15600 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15601 # have runtime linking enabled, and use it for executables. 15602 # For shared libraries, we enable/disable runtime linking 15603 # depending on the kind of the shared library created - 15604 # when "with_aix_soname,aix_use_runtimelinking" is: 15605 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 15606 # "aix,yes" lib.so shared, rtl:yes, for executables 15607 # lib.a static archive 15608 # "both,no" lib.so.V(shr.o) shared, rtl:yes 15609 # lib.a(lib.so.V) shared, rtl:no, for executables 15610 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 15611 # lib.a(lib.so.V) shared, rtl:no 15612 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 15613 # lib.a static archive 15614 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15615 for ld_flag in $LDFLAGS; do 15616 case $ld_flag in 15617 *-brtl*) 15618 aix_use_runtimelinking=yes 15619 break 15620 ;; 15621 esac 15622 done 15623 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 15624 # With aix-soname=svr4, we create the lib.so.V shared archives only, 15625 # so we don't have lib.a shared libs to link our executables. 15626 # We have to force runtime linking in this case. 15627 aix_use_runtimelinking=yes 15628 LDFLAGS="$LDFLAGS -Wl,-brtl" 15629 fi 15630 ;; 15631 esac 15632 15633 exp_sym_flag='-bexport' 15634 no_entry_flag='-bnoentry' 15635 fi 15636 15637 # When large executables or shared objects are built, AIX ld can 15638 # have problems creating the table of contents. If linking a library 15639 # or program results in "error TOC overflow" add -mminimal-toc to 15640 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15641 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15642 15643 archive_cmds_CXX='' 15644 hardcode_direct_CXX=yes 15645 hardcode_direct_absolute_CXX=yes 15646 hardcode_libdir_separator_CXX=':' 15647 link_all_deplibs_CXX=yes 15648 file_list_spec_CXX='$wl-f,' 15649 case $with_aix_soname,$aix_use_runtimelinking in 15650 aix,*) ;; # no import file 15651 svr4,* | *,yes) # use import file 15652 # The Import File defines what to hardcode. 15653 hardcode_direct_CXX=no 15654 hardcode_direct_absolute_CXX=no 15655 ;; 15656 esac 15657 15658 if test yes = "$GXX"; then 15659 case $host_os in aix4.[012]|aix4.[012].*) 15660 # We only want to do this on AIX 4.2 and lower, the check 15661 # below for broken collect2 doesn't work under 4.3+ 15662 collect2name=`$CC -print-prog-name=collect2` 15663 if test -f "$collect2name" && 15664 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 15665 then 15666 # We have reworked collect2 15667 : 15668 else 15669 # We have old collect2 15670 hardcode_direct_CXX=unsupported 15671 # It fails to find uninstalled libraries when the uninstalled 15672 # path is not listed in the libpath. Setting hardcode_minus_L 15673 # to unsupported forces relinking 15674 hardcode_minus_L_CXX=yes 15675 hardcode_libdir_flag_spec_CXX='-L$libdir' 15676 hardcode_libdir_separator_CXX= 15677 fi 15678 esac 15679 shared_flag='-shared' 15680 if test yes = "$aix_use_runtimelinking"; then 15681 shared_flag=$shared_flag' $wl-G' 15682 fi 15683 # Need to ensure runtime linking is disabled for the traditional 15684 # shared library, or the linker may eventually find shared libraries 15685 # /with/ Import File - we do not want to mix them. 15686 shared_flag_aix='-shared' 15687 shared_flag_svr4='-shared $wl-G' 15688 else 15689 # not using gcc 15690 if test ia64 = "$host_cpu"; then 15691 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15692 # chokes on -Wl,-G. The following line is correct: 15693 shared_flag='-G' 15694 else 15695 if test yes = "$aix_use_runtimelinking"; then 15696 shared_flag='$wl-G' 15697 else 15698 shared_flag='$wl-bM:SRE' 15699 fi 15700 shared_flag_aix='$wl-bM:SRE' 15701 shared_flag_svr4='$wl-G' 15702 fi 15703 fi 15704 15705 export_dynamic_flag_spec_CXX='$wl-bexpall' 15706 # It seems that -bexpall does not export symbols beginning with 15707 # underscore (_), so it is better to generate a list of symbols to 15708 # export. 15709 always_export_symbols_CXX=yes 15710 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 15711 # Warning - without using the other runtime loading flags (-brtl), 15712 # -berok will link without error, but may produce a broken library. 15713 # The "-G" linker flag allows undefined symbols. 15714 no_undefined_flag_CXX='-bernotok' 15715 # Determine the default libpath from the value encoded in an empty 15716 # executable. 15717 if test set = "${lt_cv_aix_libpath+set}"; then 15718 aix_libpath=$lt_cv_aix_libpath 15719else 15720 if ${lt_cv_aix_libpath__CXX+:} false; then : 15721 $as_echo_n "(cached) " >&6 15722else 15723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15724/* end confdefs.h. */ 15725 15726int 15727main () 15728{ 15729 15730 ; 15731 return 0; 15732} 15733_ACEOF 15734if ac_fn_cxx_try_link "$LINENO"; then : 15735 15736 lt_aix_libpath_sed=' 15737 /Import File Strings/,/^$/ { 15738 /^0/ { 15739 s/^0 *\([^ ]*\) *$/\1/ 15740 p 15741 } 15742 }' 15743 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15744 # Check for a 64-bit object if we didn't find anything. 15745 if test -z "$lt_cv_aix_libpath__CXX"; then 15746 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15747 fi 15748fi 15749rm -f core conftest.err conftest.$ac_objext \ 15750 conftest$ac_exeext conftest.$ac_ext 15751 if test -z "$lt_cv_aix_libpath__CXX"; then 15752 lt_cv_aix_libpath__CXX=/usr/lib:/lib 15753 fi 15754 15755fi 15756 15757 aix_libpath=$lt_cv_aix_libpath__CXX 15758fi 15759 15760 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 15761 15762 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 15763 else 15764 if test ia64 = "$host_cpu"; then 15765 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 15766 allow_undefined_flag_CXX="-z nodefs" 15767 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" 15768 else 15769 # Determine the default libpath from the value encoded in an 15770 # empty executable. 15771 if test set = "${lt_cv_aix_libpath+set}"; then 15772 aix_libpath=$lt_cv_aix_libpath 15773else 15774 if ${lt_cv_aix_libpath__CXX+:} false; then : 15775 $as_echo_n "(cached) " >&6 15776else 15777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15778/* end confdefs.h. */ 15779 15780int 15781main () 15782{ 15783 15784 ; 15785 return 0; 15786} 15787_ACEOF 15788if ac_fn_cxx_try_link "$LINENO"; then : 15789 15790 lt_aix_libpath_sed=' 15791 /Import File Strings/,/^$/ { 15792 /^0/ { 15793 s/^0 *\([^ ]*\) *$/\1/ 15794 p 15795 } 15796 }' 15797 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15798 # Check for a 64-bit object if we didn't find anything. 15799 if test -z "$lt_cv_aix_libpath__CXX"; then 15800 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15801 fi 15802fi 15803rm -f core conftest.err conftest.$ac_objext \ 15804 conftest$ac_exeext conftest.$ac_ext 15805 if test -z "$lt_cv_aix_libpath__CXX"; then 15806 lt_cv_aix_libpath__CXX=/usr/lib:/lib 15807 fi 15808 15809fi 15810 15811 aix_libpath=$lt_cv_aix_libpath__CXX 15812fi 15813 15814 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 15815 # Warning - without using the other run time loading flags, 15816 # -berok will link without error, but may produce a broken library. 15817 no_undefined_flag_CXX=' $wl-bernotok' 15818 allow_undefined_flag_CXX=' $wl-berok' 15819 if test yes = "$with_gnu_ld"; then 15820 # We only use this code for GNU lds that support --whole-archive. 15821 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 15822 else 15823 # Exported symbols can be pulled into shared objects from archives 15824 whole_archive_flag_spec_CXX='$convenience' 15825 fi 15826 archive_cmds_need_lc_CXX=yes 15827 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 15828 # -brtl affects multiple linker settings, -berok does not and is overridden later 15829 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 15830 if test svr4 != "$with_aix_soname"; then 15831 # This is similar to how AIX traditionally builds its shared 15832 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 15833 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 15834 fi 15835 if test aix != "$with_aix_soname"; then 15836 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 15837 else 15838 # used by -dlpreopen to get the symbols 15839 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 15840 fi 15841 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 15842 fi 15843 fi 15844 ;; 15845 15846 beos*) 15847 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15848 allow_undefined_flag_CXX=unsupported 15849 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15850 # support --undefined. This deserves some investigation. FIXME 15851 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15852 else 15853 ld_shlibs_CXX=no 15854 fi 15855 ;; 15856 15857 chorus*) 15858 case $cc_basename in 15859 *) 15860 # FIXME: insert proper C++ library support 15861 ld_shlibs_CXX=no 15862 ;; 15863 esac 15864 ;; 15865 15866 cygwin* | mingw* | pw32* | cegcc*) 15867 case $GXX,$cc_basename in 15868 ,cl* | no,cl*) 15869 # Native MSVC 15870 # hardcode_libdir_flag_spec is actually meaningless, as there is 15871 # no search path for DLLs. 15872 hardcode_libdir_flag_spec_CXX=' ' 15873 allow_undefined_flag_CXX=unsupported 15874 always_export_symbols_CXX=yes 15875 file_list_spec_CXX='@' 15876 # Tell ltmain to make .lib files, not .a files. 15877 libext=lib 15878 # Tell ltmain to make .dll files, not .so files. 15879 shrext_cmds=.dll 15880 # FIXME: Setting linknames here is a bad hack. 15881 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 15882 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 15883 cp "$export_symbols" "$output_objdir/$soname.def"; 15884 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 15885 else 15886 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 15887 fi~ 15888 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 15889 linknames=' 15890 # The linker will not automatically build a static lib if we build a DLL. 15891 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 15892 enable_shared_with_static_runtimes_CXX=yes 15893 # Don't use ranlib 15894 old_postinstall_cmds_CXX='chmod 644 $oldlib' 15895 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 15896 lt_tool_outputfile="@TOOL_OUTPUT@"~ 15897 case $lt_outputfile in 15898 *.exe|*.EXE) ;; 15899 *) 15900 lt_outputfile=$lt_outputfile.exe 15901 lt_tool_outputfile=$lt_tool_outputfile.exe 15902 ;; 15903 esac~ 15904 func_to_tool_file "$lt_outputfile"~ 15905 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 15906 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 15907 $RM "$lt_outputfile.manifest"; 15908 fi' 15909 ;; 15910 *) 15911 # g++ 15912 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 15913 # as there is no search path for DLLs. 15914 hardcode_libdir_flag_spec_CXX='-L$libdir' 15915 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 15916 allow_undefined_flag_CXX=unsupported 15917 always_export_symbols_CXX=no 15918 enable_shared_with_static_runtimes_CXX=yes 15919 15920 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15921 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15922 # If the export-symbols file already is a .def file, use it as 15923 # is; otherwise, prepend EXPORTS... 15924 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 15925 cp $export_symbols $output_objdir/$soname.def; 15926 else 15927 echo EXPORTS > $output_objdir/$soname.def; 15928 cat $export_symbols >> $output_objdir/$soname.def; 15929 fi~ 15930 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15931 else 15932 ld_shlibs_CXX=no 15933 fi 15934 ;; 15935 esac 15936 ;; 15937 darwin* | rhapsody*) 15938 15939 15940 archive_cmds_need_lc_CXX=no 15941 hardcode_direct_CXX=no 15942 hardcode_automatic_CXX=yes 15943 hardcode_shlibpath_var_CXX=unsupported 15944 if test yes = "$lt_cv_ld_force_load"; then 15945 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 15946 15947 else 15948 whole_archive_flag_spec_CXX='' 15949 fi 15950 link_all_deplibs_CXX=yes 15951 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 15952 case $cc_basename in 15953 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 15954 *) _lt_dar_can_shared=$GCC ;; 15955 esac 15956 if test yes = "$_lt_dar_can_shared"; then 15957 output_verbose_link_cmd=func_echo_all 15958 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 15959 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 15960 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 15961 module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 15962 if test yes != "$lt_cv_apple_cc_single_mod"; then 15963 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" 15964 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" 15965 fi 15966 15967 else 15968 ld_shlibs_CXX=no 15969 fi 15970 15971 ;; 15972 15973 os2*) 15974 hardcode_libdir_flag_spec_CXX='-L$libdir' 15975 hardcode_minus_L_CXX=yes 15976 allow_undefined_flag_CXX=unsupported 15977 shrext_cmds=.dll 15978 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15979 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15980 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15981 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15982 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 15983 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15984 emximp -o $lib $output_objdir/$libname.def' 15985 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15986 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15987 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15988 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15989 prefix_cmds="$SED"~ 15990 if test EXPORTS = "`$SED 1q $export_symbols`"; then 15991 prefix_cmds="$prefix_cmds -e 1d"; 15992 fi~ 15993 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 15994 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 15995 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15996 emximp -o $lib $output_objdir/$libname.def' 15997 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 15998 enable_shared_with_static_runtimes_CXX=yes 15999 ;; 16000 16001 dgux*) 16002 case $cc_basename in 16003 ec++*) 16004 # FIXME: insert proper C++ library support 16005 ld_shlibs_CXX=no 16006 ;; 16007 ghcx*) 16008 # Green Hills C++ Compiler 16009 # FIXME: insert proper C++ library support 16010 ld_shlibs_CXX=no 16011 ;; 16012 *) 16013 # FIXME: insert proper C++ library support 16014 ld_shlibs_CXX=no 16015 ;; 16016 esac 16017 ;; 16018 16019 freebsd2.*) 16020 # C++ shared libraries reported to be fairly broken before 16021 # switch to ELF 16022 ld_shlibs_CXX=no 16023 ;; 16024 16025 freebsd-elf*) 16026 archive_cmds_need_lc_CXX=no 16027 ;; 16028 16029 freebsd* | dragonfly*) 16030 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 16031 # conventions 16032 ld_shlibs_CXX=yes 16033 ;; 16034 16035 haiku*) 16036 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16037 link_all_deplibs_CXX=yes 16038 ;; 16039 16040 hpux9*) 16041 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 16042 hardcode_libdir_separator_CXX=: 16043 export_dynamic_flag_spec_CXX='$wl-E' 16044 hardcode_direct_CXX=yes 16045 hardcode_minus_L_CXX=yes # Not in the search PATH, 16046 # but as the default 16047 # location of the library. 16048 16049 case $cc_basename in 16050 CC*) 16051 # FIXME: insert proper C++ library support 16052 ld_shlibs_CXX=no 16053 ;; 16054 aCC*) 16055 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 16056 # Commands to make compiler produce verbose output that lists 16057 # what "hidden" libraries, object files and flags are used when 16058 # linking a shared library. 16059 # 16060 # There doesn't appear to be a way to prevent this compiler from 16061 # explicitly linking system object files so we need to strip them 16062 # from the output so that they don't get included in the library 16063 # dependencies. 16064 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 16065 ;; 16066 *) 16067 if test yes = "$GXX"; then 16068 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 16069 else 16070 # FIXME: insert proper C++ library support 16071 ld_shlibs_CXX=no 16072 fi 16073 ;; 16074 esac 16075 ;; 16076 16077 hpux10*|hpux11*) 16078 if test no = "$with_gnu_ld"; then 16079 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 16080 hardcode_libdir_separator_CXX=: 16081 16082 case $host_cpu in 16083 hppa*64*|ia64*) 16084 ;; 16085 *) 16086 export_dynamic_flag_spec_CXX='$wl-E' 16087 ;; 16088 esac 16089 fi 16090 case $host_cpu in 16091 hppa*64*|ia64*) 16092 hardcode_direct_CXX=no 16093 hardcode_shlibpath_var_CXX=no 16094 ;; 16095 *) 16096 hardcode_direct_CXX=yes 16097 hardcode_direct_absolute_CXX=yes 16098 hardcode_minus_L_CXX=yes # Not in the search PATH, 16099 # but as the default 16100 # location of the library. 16101 ;; 16102 esac 16103 16104 case $cc_basename in 16105 CC*) 16106 # FIXME: insert proper C++ library support 16107 ld_shlibs_CXX=no 16108 ;; 16109 aCC*) 16110 case $host_cpu in 16111 hppa*64*) 16112 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16113 ;; 16114 ia64*) 16115 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16116 ;; 16117 *) 16118 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16119 ;; 16120 esac 16121 # Commands to make compiler produce verbose output that lists 16122 # what "hidden" libraries, object files and flags are used when 16123 # linking a shared library. 16124 # 16125 # There doesn't appear to be a way to prevent this compiler from 16126 # explicitly linking system object files so we need to strip them 16127 # from the output so that they don't get included in the library 16128 # dependencies. 16129 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 16130 ;; 16131 *) 16132 if test yes = "$GXX"; then 16133 if test no = "$with_gnu_ld"; then 16134 case $host_cpu in 16135 hppa*64*) 16136 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16137 ;; 16138 ia64*) 16139 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16140 ;; 16141 *) 16142 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16143 ;; 16144 esac 16145 fi 16146 else 16147 # FIXME: insert proper C++ library support 16148 ld_shlibs_CXX=no 16149 fi 16150 ;; 16151 esac 16152 ;; 16153 16154 interix[3-9]*) 16155 hardcode_direct_CXX=no 16156 hardcode_shlibpath_var_CXX=no 16157 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 16158 export_dynamic_flag_spec_CXX='$wl-E' 16159 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16160 # Instead, shared libraries are loaded at an image base (0x10000000 by 16161 # default) and relocated if they conflict, which is a slow very memory 16162 # consuming and fragmenting process. To avoid this, we pick a random, 16163 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16164 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16165 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16166 archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16167 ;; 16168 irix5* | irix6*) 16169 case $cc_basename in 16170 CC*) 16171 # SGI C++ 16172 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 16173 16174 # Archives containing C++ object files must be created using 16175 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 16176 # necessary to make sure instantiated templates are included 16177 # in the archive. 16178 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 16179 ;; 16180 *) 16181 if test yes = "$GXX"; then 16182 if test no = "$with_gnu_ld"; then 16183 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 16184 else 16185 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' 16186 fi 16187 fi 16188 link_all_deplibs_CXX=yes 16189 ;; 16190 esac 16191 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 16192 hardcode_libdir_separator_CXX=: 16193 inherit_rpath_CXX=yes 16194 ;; 16195 16196 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16197 case $cc_basename in 16198 KCC*) 16199 # Kuck and Associates, Inc. (KAI) C++ Compiler 16200 16201 # KCC will only create a shared library if the output file 16202 # ends with ".so" (or ".sl" for HP-UX), so rename the library 16203 # to its proper name (with version) after linking. 16204 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 16205 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' 16206 # Commands to make compiler produce verbose output that lists 16207 # what "hidden" libraries, object files and flags are used when 16208 # linking a shared library. 16209 # 16210 # There doesn't appear to be a way to prevent this compiler from 16211 # explicitly linking system object files so we need to strip them 16212 # from the output so that they don't get included in the library 16213 # dependencies. 16214 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 16215 16216 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 16217 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 16218 16219 # Archives containing C++ object files must be created using 16220 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 16221 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 16222 ;; 16223 icpc* | ecpc* ) 16224 # Intel C++ 16225 with_gnu_ld=yes 16226 # version 8.0 and above of icpc choke on multiply defined symbols 16227 # if we add $predep_objects and $postdep_objects, however 7.1 and 16228 # earlier do not add the objects themselves. 16229 case `$CC -V 2>&1` in 16230 *"Version 7."*) 16231 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 16232 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16233 ;; 16234 *) # Version 8.0 or newer 16235 tmp_idyn= 16236 case $host_cpu in 16237 ia64*) tmp_idyn=' -i_dynamic';; 16238 esac 16239 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16240 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16241 ;; 16242 esac 16243 archive_cmds_need_lc_CXX=no 16244 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 16245 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 16246 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 16247 ;; 16248 pgCC* | pgcpp*) 16249 # Portland Group C++ compiler 16250 case `$CC -V` in 16251 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 16252 prelink_cmds_CXX='tpldir=Template.dir~ 16253 rm -rf $tpldir~ 16254 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 16255 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 16256 old_archive_cmds_CXX='tpldir=Template.dir~ 16257 rm -rf $tpldir~ 16258 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 16259 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 16260 $RANLIB $oldlib' 16261 archive_cmds_CXX='tpldir=Template.dir~ 16262 rm -rf $tpldir~ 16263 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 16264 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 16265 archive_expsym_cmds_CXX='tpldir=Template.dir~ 16266 rm -rf $tpldir~ 16267 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 16268 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16269 ;; 16270 *) # Version 6 and above use weak symbols 16271 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 16272 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16273 ;; 16274 esac 16275 16276 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 16277 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 16278 whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 16279 ;; 16280 cxx*) 16281 # Compaq C++ 16282 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 16283 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' 16284 16285 runpath_var=LD_RUN_PATH 16286 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 16287 hardcode_libdir_separator_CXX=: 16288 16289 # Commands to make compiler produce verbose output that lists 16290 # what "hidden" libraries, object files and flags are used when 16291 # linking a shared library. 16292 # 16293 # There doesn't appear to be a way to prevent this compiler from 16294 # explicitly linking system object files so we need to strip them 16295 # from the output so that they don't get included in the library 16296 # dependencies. 16297 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 16298 ;; 16299 xl* | mpixl* | bgxl*) 16300 # IBM XL 8.0 on PPC, with GNU ld 16301 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 16302 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 16303 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16304 if test yes = "$supports_anon_versioning"; then 16305 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 16306 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16307 echo "local: *; };" >> $output_objdir/$libname.ver~ 16308 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 16309 fi 16310 ;; 16311 *) 16312 case `$CC -V 2>&1 | sed 5q` in 16313 *Sun\ C*) 16314 # Sun C++ 5.9 16315 no_undefined_flag_CXX=' -zdefs' 16316 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16317 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' 16318 hardcode_libdir_flag_spec_CXX='-R$libdir' 16319 whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 16320 compiler_needs_object_CXX=yes 16321 16322 # Not sure whether something based on 16323 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 16324 # would be better. 16325 output_verbose_link_cmd='func_echo_all' 16326 16327 # Archives containing C++ object files must be created using 16328 # "CC -xar", where "CC" is the Sun C++ compiler. This is 16329 # necessary to make sure instantiated templates are included 16330 # in the archive. 16331 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 16332 ;; 16333 esac 16334 ;; 16335 esac 16336 ;; 16337 16338 lynxos*) 16339 # FIXME: insert proper C++ library support 16340 ld_shlibs_CXX=no 16341 ;; 16342 16343 m88k*) 16344 # FIXME: insert proper C++ library support 16345 ld_shlibs_CXX=no 16346 ;; 16347 16348 mvs*) 16349 case $cc_basename in 16350 cxx*) 16351 # FIXME: insert proper C++ library support 16352 ld_shlibs_CXX=no 16353 ;; 16354 *) 16355 # FIXME: insert proper C++ library support 16356 ld_shlibs_CXX=no 16357 ;; 16358 esac 16359 ;; 16360 16361 netbsd*) 16362 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16363 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 16364 wlarc= 16365 hardcode_libdir_flag_spec_CXX='-R$libdir' 16366 hardcode_direct_CXX=yes 16367 hardcode_shlibpath_var_CXX=no 16368 fi 16369 # Workaround some broken pre-1.5 toolchains 16370 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 16371 ;; 16372 16373 *nto* | *qnx*) 16374 ld_shlibs_CXX=yes 16375 ;; 16376 16377 openbsd* | bitrig*) 16378 if test -f /usr/libexec/ld.so; then 16379 hardcode_direct_CXX=yes 16380 hardcode_shlibpath_var_CXX=no 16381 hardcode_direct_absolute_CXX=yes 16382 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 16383 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 16384 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 16385 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 16386 export_dynamic_flag_spec_CXX='$wl-E' 16387 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 16388 fi 16389 output_verbose_link_cmd=func_echo_all 16390 else 16391 ld_shlibs_CXX=no 16392 fi 16393 ;; 16394 16395 osf3* | osf4* | osf5*) 16396 case $cc_basename in 16397 KCC*) 16398 # Kuck and Associates, Inc. (KAI) C++ Compiler 16399 16400 # KCC will only create a shared library if the output file 16401 # ends with ".so" (or ".sl" for HP-UX), so rename the library 16402 # to its proper name (with version) after linking. 16403 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 16404 16405 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 16406 hardcode_libdir_separator_CXX=: 16407 16408 # Archives containing C++ object files must be created using 16409 # the KAI C++ compiler. 16410 case $host in 16411 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 16412 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 16413 esac 16414 ;; 16415 RCC*) 16416 # Rational C++ 2.4.1 16417 # FIXME: insert proper C++ library support 16418 ld_shlibs_CXX=no 16419 ;; 16420 cxx*) 16421 case $host in 16422 osf3*) 16423 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 16424 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 16425 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 16426 ;; 16427 *) 16428 allow_undefined_flag_CXX=' -expect_unresolved \*' 16429 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 16430 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 16431 echo "-hidden">> $lib.exp~ 16432 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ 16433 $RM $lib.exp' 16434 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 16435 ;; 16436 esac 16437 16438 hardcode_libdir_separator_CXX=: 16439 16440 # Commands to make compiler produce verbose output that lists 16441 # what "hidden" libraries, object files and flags are used when 16442 # linking a shared library. 16443 # 16444 # There doesn't appear to be a way to prevent this compiler from 16445 # explicitly linking system object files so we need to strip them 16446 # from the output so that they don't get included in the library 16447 # dependencies. 16448 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 16449 ;; 16450 *) 16451 if test yes,no = "$GXX,$with_gnu_ld"; then 16452 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 16453 case $host in 16454 osf3*) 16455 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 16456 ;; 16457 *) 16458 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 16459 ;; 16460 esac 16461 16462 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 16463 hardcode_libdir_separator_CXX=: 16464 16465 # Commands to make compiler produce verbose output that lists 16466 # what "hidden" libraries, object files and flags are used when 16467 # linking a shared library. 16468 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 16469 16470 else 16471 # FIXME: insert proper C++ library support 16472 ld_shlibs_CXX=no 16473 fi 16474 ;; 16475 esac 16476 ;; 16477 16478 psos*) 16479 # FIXME: insert proper C++ library support 16480 ld_shlibs_CXX=no 16481 ;; 16482 16483 sunos4*) 16484 case $cc_basename in 16485 CC*) 16486 # Sun C++ 4.x 16487 # FIXME: insert proper C++ library support 16488 ld_shlibs_CXX=no 16489 ;; 16490 lcc*) 16491 # Lucid 16492 # FIXME: insert proper C++ library support 16493 ld_shlibs_CXX=no 16494 ;; 16495 *) 16496 # FIXME: insert proper C++ library support 16497 ld_shlibs_CXX=no 16498 ;; 16499 esac 16500 ;; 16501 16502 solaris*) 16503 case $cc_basename in 16504 CC* | sunCC*) 16505 # Sun C++ 4.2, 5.x and Centerline C++ 16506 archive_cmds_need_lc_CXX=yes 16507 no_undefined_flag_CXX=' -zdefs' 16508 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16509 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16510 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 16511 16512 hardcode_libdir_flag_spec_CXX='-R$libdir' 16513 hardcode_shlibpath_var_CXX=no 16514 case $host_os in 16515 solaris2.[0-5] | solaris2.[0-5].*) ;; 16516 *) 16517 # The compiler driver will combine and reorder linker options, 16518 # but understands '-z linker_flag'. 16519 # Supported since Solaris 2.6 (maybe 2.5.1?) 16520 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 16521 ;; 16522 esac 16523 link_all_deplibs_CXX=yes 16524 16525 output_verbose_link_cmd='func_echo_all' 16526 16527 # Archives containing C++ object files must be created using 16528 # "CC -xar", where "CC" is the Sun C++ compiler. This is 16529 # necessary to make sure instantiated templates are included 16530 # in the archive. 16531 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 16532 ;; 16533 gcx*) 16534 # Green Hills C++ Compiler 16535 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 16536 16537 # The C++ compiler must be used to create the archive. 16538 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 16539 ;; 16540 *) 16541 # GNU C++ compiler with Solaris linker 16542 if test yes,no = "$GXX,$with_gnu_ld"; then 16543 no_undefined_flag_CXX=' $wl-z ${wl}defs' 16544 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 16545 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 16546 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16547 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 16548 16549 # Commands to make compiler produce verbose output that lists 16550 # what "hidden" libraries, object files and flags are used when 16551 # linking a shared library. 16552 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 16553 else 16554 # g++ 2.7 appears to require '-G' NOT '-shared' on this 16555 # platform. 16556 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 16557 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16558 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 16559 16560 # Commands to make compiler produce verbose output that lists 16561 # what "hidden" libraries, object files and flags are used when 16562 # linking a shared library. 16563 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 16564 fi 16565 16566 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 16567 case $host_os in 16568 solaris2.[0-5] | solaris2.[0-5].*) ;; 16569 *) 16570 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 16571 ;; 16572 esac 16573 fi 16574 ;; 16575 esac 16576 ;; 16577 16578 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16579 no_undefined_flag_CXX='$wl-z,text' 16580 archive_cmds_need_lc_CXX=no 16581 hardcode_shlibpath_var_CXX=no 16582 runpath_var='LD_RUN_PATH' 16583 16584 case $cc_basename in 16585 CC*) 16586 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16587 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16588 ;; 16589 *) 16590 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16591 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16592 ;; 16593 esac 16594 ;; 16595 16596 sysv5* | sco3.2v5* | sco5v6*) 16597 # Note: We CANNOT use -z defs as we might desire, because we do not 16598 # link with -lc, and that would cause any symbols used from libc to 16599 # always be unresolved, which means just about no library would 16600 # ever link correctly. If we're not using GNU ld we use -z text 16601 # though, which does catch some bad symbols but isn't as heavy-handed 16602 # as -z defs. 16603 no_undefined_flag_CXX='$wl-z,text' 16604 allow_undefined_flag_CXX='$wl-z,nodefs' 16605 archive_cmds_need_lc_CXX=no 16606 hardcode_shlibpath_var_CXX=no 16607 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 16608 hardcode_libdir_separator_CXX=':' 16609 link_all_deplibs_CXX=yes 16610 export_dynamic_flag_spec_CXX='$wl-Bexport' 16611 runpath_var='LD_RUN_PATH' 16612 16613 case $cc_basename in 16614 CC*) 16615 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16616 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16617 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 16618 '"$old_archive_cmds_CXX" 16619 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 16620 '"$reload_cmds_CXX" 16621 ;; 16622 *) 16623 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16624 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16625 ;; 16626 esac 16627 ;; 16628 16629 tandem*) 16630 case $cc_basename in 16631 NCC*) 16632 # NonStop-UX NCC 3.20 16633 # FIXME: insert proper C++ library support 16634 ld_shlibs_CXX=no 16635 ;; 16636 *) 16637 # FIXME: insert proper C++ library support 16638 ld_shlibs_CXX=no 16639 ;; 16640 esac 16641 ;; 16642 16643 vxworks*) 16644 # FIXME: insert proper C++ library support 16645 ld_shlibs_CXX=no 16646 ;; 16647 16648 *) 16649 # FIXME: insert proper C++ library support 16650 ld_shlibs_CXX=no 16651 ;; 16652 esac 16653 16654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 16655$as_echo "$ld_shlibs_CXX" >&6; } 16656 test no = "$ld_shlibs_CXX" && can_build_shared=no 16657 16658 GCC_CXX=$GXX 16659 LD_CXX=$LD 16660 16661 ## CAVEAT EMPTOR: 16662 ## There is no encapsulation within the following macros, do not change 16663 ## the running order or otherwise move them around unless you know exactly 16664 ## what you are doing... 16665 # Dependencies to place before and after the object being linked: 16666predep_objects_CXX= 16667postdep_objects_CXX= 16668predeps_CXX= 16669postdeps_CXX= 16670compiler_lib_search_path_CXX= 16671 16672cat > conftest.$ac_ext <<_LT_EOF 16673class Foo 16674{ 16675public: 16676 Foo (void) { a = 0; } 16677private: 16678 int a; 16679}; 16680_LT_EOF 16681 16682 16683_lt_libdeps_save_CFLAGS=$CFLAGS 16684case "$CC $CFLAGS " in #( 16685*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 16686*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 16687*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 16688esac 16689 16690if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16691 (eval $ac_compile) 2>&5 16692 ac_status=$? 16693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16694 test $ac_status = 0; }; then 16695 # Parse the compiler output and extract the necessary 16696 # objects, libraries and library flags. 16697 16698 # Sentinel used to keep track of whether or not we are before 16699 # the conftest object file. 16700 pre_test_object_deps_done=no 16701 16702 for p in `eval "$output_verbose_link_cmd"`; do 16703 case $prev$p in 16704 16705 -L* | -R* | -l*) 16706 # Some compilers place space between "-{L,R}" and the path. 16707 # Remove the space. 16708 if test x-L = "$p" || 16709 test x-R = "$p"; then 16710 prev=$p 16711 continue 16712 fi 16713 16714 # Expand the sysroot to ease extracting the directories later. 16715 if test -z "$prev"; then 16716 case $p in 16717 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 16718 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 16719 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 16720 esac 16721 fi 16722 case $p in 16723 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 16724 esac 16725 if test no = "$pre_test_object_deps_done"; then 16726 case $prev in 16727 -L | -R) 16728 # Internal compiler library paths should come after those 16729 # provided the user. The postdeps already come after the 16730 # user supplied libs so there is no need to process them. 16731 if test -z "$compiler_lib_search_path_CXX"; then 16732 compiler_lib_search_path_CXX=$prev$p 16733 else 16734 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 16735 fi 16736 ;; 16737 # The "-l" case would never come before the object being 16738 # linked, so don't bother handling this case. 16739 esac 16740 else 16741 if test -z "$postdeps_CXX"; then 16742 postdeps_CXX=$prev$p 16743 else 16744 postdeps_CXX="${postdeps_CXX} $prev$p" 16745 fi 16746 fi 16747 prev= 16748 ;; 16749 16750 *.lto.$objext) ;; # Ignore GCC LTO objects 16751 *.$objext) 16752 # This assumes that the test object file only shows up 16753 # once in the compiler output. 16754 if test "$p" = "conftest.$objext"; then 16755 pre_test_object_deps_done=yes 16756 continue 16757 fi 16758 16759 if test no = "$pre_test_object_deps_done"; then 16760 if test -z "$predep_objects_CXX"; then 16761 predep_objects_CXX=$p 16762 else 16763 predep_objects_CXX="$predep_objects_CXX $p" 16764 fi 16765 else 16766 if test -z "$postdep_objects_CXX"; then 16767 postdep_objects_CXX=$p 16768 else 16769 postdep_objects_CXX="$postdep_objects_CXX $p" 16770 fi 16771 fi 16772 ;; 16773 16774 *) ;; # Ignore the rest. 16775 16776 esac 16777 done 16778 16779 # Clean up. 16780 rm -f a.out a.exe 16781else 16782 echo "libtool.m4: error: problem compiling CXX test program" 16783fi 16784 16785$RM -f confest.$objext 16786CFLAGS=$_lt_libdeps_save_CFLAGS 16787 16788# PORTME: override above test on systems where it is broken 16789case $host_os in 16790interix[3-9]*) 16791 # Interix 3.5 installs completely hosed .la files for C++, so rather than 16792 # hack all around it, let's just trust "g++" to DTRT. 16793 predep_objects_CXX= 16794 postdep_objects_CXX= 16795 postdeps_CXX= 16796 ;; 16797esac 16798 16799 16800case " $postdeps_CXX " in 16801*" -lc "*) archive_cmds_need_lc_CXX=no ;; 16802esac 16803 compiler_lib_search_dirs_CXX= 16804if test -n "${compiler_lib_search_path_CXX}"; then 16805 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 16806fi 16807 16808 16809 16810 16811 16812 16813 16814 16815 16816 16817 16818 16819 16820 16821 16822 16823 16824 16825 16826 16827 16828 16829 16830 16831 16832 16833 16834 16835 16836 16837 16838 lt_prog_compiler_wl_CXX= 16839lt_prog_compiler_pic_CXX= 16840lt_prog_compiler_static_CXX= 16841 16842 16843 # C++ specific cases for pic, static, wl, etc. 16844 if test yes = "$GXX"; then 16845 lt_prog_compiler_wl_CXX='-Wl,' 16846 lt_prog_compiler_static_CXX='-static' 16847 16848 case $host_os in 16849 aix*) 16850 # All AIX code is PIC. 16851 if test ia64 = "$host_cpu"; then 16852 # AIX 5 now supports IA64 processor 16853 lt_prog_compiler_static_CXX='-Bstatic' 16854 fi 16855 lt_prog_compiler_pic_CXX='-fPIC' 16856 ;; 16857 16858 amigaos*) 16859 case $host_cpu in 16860 powerpc) 16861 # see comment about AmigaOS4 .so support 16862 lt_prog_compiler_pic_CXX='-fPIC' 16863 ;; 16864 m68k) 16865 # FIXME: we need at least 68020 code to build shared libraries, but 16866 # adding the '-m68020' flag to GCC prevents building anything better, 16867 # like '-m68040'. 16868 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 16869 ;; 16870 esac 16871 ;; 16872 16873 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16874 # PIC is the default for these OSes. 16875 ;; 16876 mingw* | cygwin* | os2* | pw32* | cegcc*) 16877 # This hack is so that the source file can tell whether it is being 16878 # built for inclusion in a dll (and should export symbols for example). 16879 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16880 # (--disable-auto-import) libraries 16881 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 16882 case $host_os in 16883 os2*) 16884 lt_prog_compiler_static_CXX='$wl-static' 16885 ;; 16886 esac 16887 ;; 16888 darwin* | rhapsody*) 16889 # PIC is the default on this platform 16890 # Common symbols not allowed in MH_DYLIB files 16891 lt_prog_compiler_pic_CXX='-fno-common' 16892 ;; 16893 *djgpp*) 16894 # DJGPP does not support shared libraries at all 16895 lt_prog_compiler_pic_CXX= 16896 ;; 16897 haiku*) 16898 # PIC is the default for Haiku. 16899 # The "-static" flag exists, but is broken. 16900 lt_prog_compiler_static_CXX= 16901 ;; 16902 interix[3-9]*) 16903 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16904 # Instead, we relocate shared libraries at runtime. 16905 ;; 16906 sysv4*MP*) 16907 if test -d /usr/nec; then 16908 lt_prog_compiler_pic_CXX=-Kconform_pic 16909 fi 16910 ;; 16911 hpux*) 16912 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 16913 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 16914 # sets the default TLS model and affects inlining. 16915 case $host_cpu in 16916 hppa*64*) 16917 ;; 16918 *) 16919 lt_prog_compiler_pic_CXX='-fPIC' 16920 ;; 16921 esac 16922 ;; 16923 *qnx* | *nto*) 16924 # QNX uses GNU C++, but need to define -shared option too, otherwise 16925 # it will coredump. 16926 lt_prog_compiler_pic_CXX='-fPIC -shared' 16927 ;; 16928 *) 16929 lt_prog_compiler_pic_CXX='-fPIC' 16930 ;; 16931 esac 16932 else 16933 case $host_os in 16934 aix[4-9]*) 16935 # All AIX code is PIC. 16936 if test ia64 = "$host_cpu"; then 16937 # AIX 5 now supports IA64 processor 16938 lt_prog_compiler_static_CXX='-Bstatic' 16939 else 16940 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 16941 fi 16942 ;; 16943 chorus*) 16944 case $cc_basename in 16945 cxch68*) 16946 # Green Hills C++ Compiler 16947 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 16948 ;; 16949 esac 16950 ;; 16951 mingw* | cygwin* | os2* | pw32* | cegcc*) 16952 # This hack is so that the source file can tell whether it is being 16953 # built for inclusion in a dll (and should export symbols for example). 16954 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 16955 ;; 16956 dgux*) 16957 case $cc_basename in 16958 ec++*) 16959 lt_prog_compiler_pic_CXX='-KPIC' 16960 ;; 16961 ghcx*) 16962 # Green Hills C++ Compiler 16963 lt_prog_compiler_pic_CXX='-pic' 16964 ;; 16965 *) 16966 ;; 16967 esac 16968 ;; 16969 freebsd* | dragonfly*) 16970 # FreeBSD uses GNU C++ 16971 ;; 16972 hpux9* | hpux10* | hpux11*) 16973 case $cc_basename in 16974 CC*) 16975 lt_prog_compiler_wl_CXX='-Wl,' 16976 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 16977 if test ia64 != "$host_cpu"; then 16978 lt_prog_compiler_pic_CXX='+Z' 16979 fi 16980 ;; 16981 aCC*) 16982 lt_prog_compiler_wl_CXX='-Wl,' 16983 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 16984 case $host_cpu in 16985 hppa*64*|ia64*) 16986 # +Z the default 16987 ;; 16988 *) 16989 lt_prog_compiler_pic_CXX='+Z' 16990 ;; 16991 esac 16992 ;; 16993 *) 16994 ;; 16995 esac 16996 ;; 16997 interix*) 16998 # This is c89, which is MS Visual C++ (no shared libs) 16999 # Anyone wants to do a port? 17000 ;; 17001 irix5* | irix6* | nonstopux*) 17002 case $cc_basename in 17003 CC*) 17004 lt_prog_compiler_wl_CXX='-Wl,' 17005 lt_prog_compiler_static_CXX='-non_shared' 17006 # CC pic flag -KPIC is the default. 17007 ;; 17008 *) 17009 ;; 17010 esac 17011 ;; 17012 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17013 case $cc_basename in 17014 KCC*) 17015 # KAI C++ Compiler 17016 lt_prog_compiler_wl_CXX='--backend -Wl,' 17017 lt_prog_compiler_pic_CXX='-fPIC' 17018 ;; 17019 ecpc* ) 17020 # old Intel C++ for x86_64, which still supported -KPIC. 17021 lt_prog_compiler_wl_CXX='-Wl,' 17022 lt_prog_compiler_pic_CXX='-KPIC' 17023 lt_prog_compiler_static_CXX='-static' 17024 ;; 17025 icpc* ) 17026 # Intel C++, used to be incompatible with GCC. 17027 # ICC 10 doesn't accept -KPIC any more. 17028 lt_prog_compiler_wl_CXX='-Wl,' 17029 lt_prog_compiler_pic_CXX='-fPIC' 17030 lt_prog_compiler_static_CXX='-static' 17031 ;; 17032 pgCC* | pgcpp*) 17033 # Portland Group C++ compiler 17034 lt_prog_compiler_wl_CXX='-Wl,' 17035 lt_prog_compiler_pic_CXX='-fpic' 17036 lt_prog_compiler_static_CXX='-Bstatic' 17037 ;; 17038 cxx*) 17039 # Compaq C++ 17040 # Make sure the PIC flag is empty. It appears that all Alpha 17041 # Linux and Compaq Tru64 Unix objects are PIC. 17042 lt_prog_compiler_pic_CXX= 17043 lt_prog_compiler_static_CXX='-non_shared' 17044 ;; 17045 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 17046 # IBM XL 8.0, 9.0 on PPC and BlueGene 17047 lt_prog_compiler_wl_CXX='-Wl,' 17048 lt_prog_compiler_pic_CXX='-qpic' 17049 lt_prog_compiler_static_CXX='-qstaticlink' 17050 ;; 17051 *) 17052 case `$CC -V 2>&1 | sed 5q` in 17053 *Sun\ C*) 17054 # Sun C++ 5.9 17055 lt_prog_compiler_pic_CXX='-KPIC' 17056 lt_prog_compiler_static_CXX='-Bstatic' 17057 lt_prog_compiler_wl_CXX='-Qoption ld ' 17058 ;; 17059 esac 17060 ;; 17061 esac 17062 ;; 17063 lynxos*) 17064 ;; 17065 m88k*) 17066 ;; 17067 mvs*) 17068 case $cc_basename in 17069 cxx*) 17070 lt_prog_compiler_pic_CXX='-W c,exportall' 17071 ;; 17072 *) 17073 ;; 17074 esac 17075 ;; 17076 netbsd*) 17077 ;; 17078 *qnx* | *nto*) 17079 # QNX uses GNU C++, but need to define -shared option too, otherwise 17080 # it will coredump. 17081 lt_prog_compiler_pic_CXX='-fPIC -shared' 17082 ;; 17083 osf3* | osf4* | osf5*) 17084 case $cc_basename in 17085 KCC*) 17086 lt_prog_compiler_wl_CXX='--backend -Wl,' 17087 ;; 17088 RCC*) 17089 # Rational C++ 2.4.1 17090 lt_prog_compiler_pic_CXX='-pic' 17091 ;; 17092 cxx*) 17093 # Digital/Compaq C++ 17094 lt_prog_compiler_wl_CXX='-Wl,' 17095 # Make sure the PIC flag is empty. It appears that all Alpha 17096 # Linux and Compaq Tru64 Unix objects are PIC. 17097 lt_prog_compiler_pic_CXX= 17098 lt_prog_compiler_static_CXX='-non_shared' 17099 ;; 17100 *) 17101 ;; 17102 esac 17103 ;; 17104 psos*) 17105 ;; 17106 solaris*) 17107 case $cc_basename in 17108 CC* | sunCC*) 17109 # Sun C++ 4.2, 5.x and Centerline C++ 17110 lt_prog_compiler_pic_CXX='-KPIC' 17111 lt_prog_compiler_static_CXX='-Bstatic' 17112 lt_prog_compiler_wl_CXX='-Qoption ld ' 17113 ;; 17114 gcx*) 17115 # Green Hills C++ Compiler 17116 lt_prog_compiler_pic_CXX='-PIC' 17117 ;; 17118 *) 17119 ;; 17120 esac 17121 ;; 17122 sunos4*) 17123 case $cc_basename in 17124 CC*) 17125 # Sun C++ 4.x 17126 lt_prog_compiler_pic_CXX='-pic' 17127 lt_prog_compiler_static_CXX='-Bstatic' 17128 ;; 17129 lcc*) 17130 # Lucid 17131 lt_prog_compiler_pic_CXX='-pic' 17132 ;; 17133 *) 17134 ;; 17135 esac 17136 ;; 17137 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17138 case $cc_basename in 17139 CC*) 17140 lt_prog_compiler_wl_CXX='-Wl,' 17141 lt_prog_compiler_pic_CXX='-KPIC' 17142 lt_prog_compiler_static_CXX='-Bstatic' 17143 ;; 17144 esac 17145 ;; 17146 tandem*) 17147 case $cc_basename in 17148 NCC*) 17149 # NonStop-UX NCC 3.20 17150 lt_prog_compiler_pic_CXX='-KPIC' 17151 ;; 17152 *) 17153 ;; 17154 esac 17155 ;; 17156 vxworks*) 17157 ;; 17158 *) 17159 lt_prog_compiler_can_build_shared_CXX=no 17160 ;; 17161 esac 17162 fi 17163 17164case $host_os in 17165 # For platforms that do not support PIC, -DPIC is meaningless: 17166 *djgpp*) 17167 lt_prog_compiler_pic_CXX= 17168 ;; 17169 *) 17170 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 17171 ;; 17172esac 17173 17174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 17175$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 17176if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 17177 $as_echo_n "(cached) " >&6 17178else 17179 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 17180fi 17181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 17182$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 17183lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 17184 17185# 17186# Check to make sure the PIC flag actually works. 17187# 17188if test -n "$lt_prog_compiler_pic_CXX"; then 17189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 17190$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 17191if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 17192 $as_echo_n "(cached) " >&6 17193else 17194 lt_cv_prog_compiler_pic_works_CXX=no 17195 ac_outfile=conftest.$ac_objext 17196 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17197 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 17198 # Insert the option either (1) after the last *FLAGS variable, or 17199 # (2) before a word containing "conftest.", or (3) at the end. 17200 # Note that $ac_compile itself does not contain backslashes and begins 17201 # with a dollar sign (not a hyphen), so the echo should work correctly. 17202 # The option is referenced via a variable to avoid confusing sed. 17203 lt_compile=`echo "$ac_compile" | $SED \ 17204 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17205 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17206 -e 's:$: $lt_compiler_flag:'` 17207 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17208 (eval "$lt_compile" 2>conftest.err) 17209 ac_status=$? 17210 cat conftest.err >&5 17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17212 if (exit $ac_status) && test -s "$ac_outfile"; then 17213 # The compiler can only warn and ignore the option if not recognized 17214 # So say no if there are warnings other than the usual output. 17215 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 17216 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17217 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17218 lt_cv_prog_compiler_pic_works_CXX=yes 17219 fi 17220 fi 17221 $RM conftest* 17222 17223fi 17224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 17225$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 17226 17227if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 17228 case $lt_prog_compiler_pic_CXX in 17229 "" | " "*) ;; 17230 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 17231 esac 17232else 17233 lt_prog_compiler_pic_CXX= 17234 lt_prog_compiler_can_build_shared_CXX=no 17235fi 17236 17237fi 17238 17239 17240 17241 17242 17243# 17244# Check to make sure the static flag actually works. 17245# 17246wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 17247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17248$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 17249if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 17250 $as_echo_n "(cached) " >&6 17251else 17252 lt_cv_prog_compiler_static_works_CXX=no 17253 save_LDFLAGS=$LDFLAGS 17254 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17255 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17256 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17257 # The linker can only warn and ignore the option if not recognized 17258 # So say no if there are warnings 17259 if test -s conftest.err; then 17260 # Append any errors to the config.log. 17261 cat conftest.err 1>&5 17262 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17263 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17264 if diff conftest.exp conftest.er2 >/dev/null; then 17265 lt_cv_prog_compiler_static_works_CXX=yes 17266 fi 17267 else 17268 lt_cv_prog_compiler_static_works_CXX=yes 17269 fi 17270 fi 17271 $RM -r conftest* 17272 LDFLAGS=$save_LDFLAGS 17273 17274fi 17275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 17276$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 17277 17278if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 17279 : 17280else 17281 lt_prog_compiler_static_CXX= 17282fi 17283 17284 17285 17286 17287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 17288$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17289if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 17290 $as_echo_n "(cached) " >&6 17291else 17292 lt_cv_prog_compiler_c_o_CXX=no 17293 $RM -r conftest 2>/dev/null 17294 mkdir conftest 17295 cd conftest 17296 mkdir out 17297 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17298 17299 lt_compiler_flag="-o out/conftest2.$ac_objext" 17300 # Insert the option either (1) after the last *FLAGS variable, or 17301 # (2) before a word containing "conftest.", or (3) at the end. 17302 # Note that $ac_compile itself does not contain backslashes and begins 17303 # with a dollar sign (not a hyphen), so the echo should work correctly. 17304 lt_compile=`echo "$ac_compile" | $SED \ 17305 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17306 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17307 -e 's:$: $lt_compiler_flag:'` 17308 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17309 (eval "$lt_compile" 2>out/conftest.err) 17310 ac_status=$? 17311 cat out/conftest.err >&5 17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17313 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17314 then 17315 # The compiler can only warn and ignore the option if not recognized 17316 # So say no if there are warnings 17317 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 17318 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17319 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17320 lt_cv_prog_compiler_c_o_CXX=yes 17321 fi 17322 fi 17323 chmod u+w . 2>&5 17324 $RM conftest* 17325 # SGI C++ compiler will create directory out/ii_files/ for 17326 # template instantiation 17327 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 17328 $RM out/* && rmdir out 17329 cd .. 17330 $RM -r conftest 17331 $RM conftest* 17332 17333fi 17334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 17335$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 17336 17337 17338 17339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 17340$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17341if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 17342 $as_echo_n "(cached) " >&6 17343else 17344 lt_cv_prog_compiler_c_o_CXX=no 17345 $RM -r conftest 2>/dev/null 17346 mkdir conftest 17347 cd conftest 17348 mkdir out 17349 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17350 17351 lt_compiler_flag="-o out/conftest2.$ac_objext" 17352 # Insert the option either (1) after the last *FLAGS variable, or 17353 # (2) before a word containing "conftest.", or (3) at the end. 17354 # Note that $ac_compile itself does not contain backslashes and begins 17355 # with a dollar sign (not a hyphen), so the echo should work correctly. 17356 lt_compile=`echo "$ac_compile" | $SED \ 17357 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17358 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17359 -e 's:$: $lt_compiler_flag:'` 17360 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17361 (eval "$lt_compile" 2>out/conftest.err) 17362 ac_status=$? 17363 cat out/conftest.err >&5 17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17365 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17366 then 17367 # The compiler can only warn and ignore the option if not recognized 17368 # So say no if there are warnings 17369 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 17370 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17371 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17372 lt_cv_prog_compiler_c_o_CXX=yes 17373 fi 17374 fi 17375 chmod u+w . 2>&5 17376 $RM conftest* 17377 # SGI C++ compiler will create directory out/ii_files/ for 17378 # template instantiation 17379 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 17380 $RM out/* && rmdir out 17381 cd .. 17382 $RM -r conftest 17383 $RM conftest* 17384 17385fi 17386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 17387$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 17388 17389 17390 17391 17392hard_links=nottested 17393if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 17394 # do not overwrite the value of need_locks provided by the user 17395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 17396$as_echo_n "checking if we can lock with hard links... " >&6; } 17397 hard_links=yes 17398 $RM conftest* 17399 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17400 touch conftest.a 17401 ln conftest.a conftest.b 2>&5 || hard_links=no 17402 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 17404$as_echo "$hard_links" >&6; } 17405 if test no = "$hard_links"; then 17406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 17407$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 17408 need_locks=warn 17409 fi 17410else 17411 need_locks=no 17412fi 17413 17414 17415 17416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17417$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 17418 17419 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17420 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 17421 case $host_os in 17422 aix[4-9]*) 17423 # If we're using GNU nm, then we don't want the "-C" option. 17424 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 17425 # Without the "-l" option, or with the "-B" option, AIX nm treats 17426 # weak defined symbols like other global defined symbols, whereas 17427 # GNU nm marks them as "W". 17428 # While the 'weak' keyword is ignored in the Export File, we need 17429 # it in the Import File for the 'aix-soname' feature, so we have 17430 # to replace the "-B" option with "-P" for AIX nm. 17431 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 17432 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 17433 else 17434 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 17435 fi 17436 ;; 17437 pw32*) 17438 export_symbols_cmds_CXX=$ltdll_cmds 17439 ;; 17440 cygwin* | mingw* | cegcc*) 17441 case $cc_basename in 17442 cl*) 17443 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 17444 ;; 17445 *) 17446 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 17447 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 17448 ;; 17449 esac 17450 ;; 17451 *) 17452 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17453 ;; 17454 esac 17455 17456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 17457$as_echo "$ld_shlibs_CXX" >&6; } 17458test no = "$ld_shlibs_CXX" && can_build_shared=no 17459 17460with_gnu_ld_CXX=$with_gnu_ld 17461 17462 17463 17464 17465 17466 17467# 17468# Do we need to explicitly link libc? 17469# 17470case "x$archive_cmds_need_lc_CXX" in 17471x|xyes) 17472 # Assume -lc should be added 17473 archive_cmds_need_lc_CXX=yes 17474 17475 if test yes,yes = "$GCC,$enable_shared"; then 17476 case $archive_cmds_CXX in 17477 *'~'*) 17478 # FIXME: we may have to deal with multi-command sequences. 17479 ;; 17480 '$CC '*) 17481 # Test whether the compiler implicitly links with -lc since on some 17482 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17483 # to ld, don't add -lc before -lgcc. 17484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17485$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 17486if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 17487 $as_echo_n "(cached) " >&6 17488else 17489 $RM conftest* 17490 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17491 17492 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17493 (eval $ac_compile) 2>&5 17494 ac_status=$? 17495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17496 test $ac_status = 0; } 2>conftest.err; then 17497 soname=conftest 17498 lib=conftest 17499 libobjs=conftest.$ac_objext 17500 deplibs= 17501 wl=$lt_prog_compiler_wl_CXX 17502 pic_flag=$lt_prog_compiler_pic_CXX 17503 compiler_flags=-v 17504 linker_flags=-v 17505 verstring= 17506 output_objdir=. 17507 libname=conftest 17508 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 17509 allow_undefined_flag_CXX= 17510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17511 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 17512 ac_status=$? 17513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17514 test $ac_status = 0; } 17515 then 17516 lt_cv_archive_cmds_need_lc_CXX=no 17517 else 17518 lt_cv_archive_cmds_need_lc_CXX=yes 17519 fi 17520 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 17521 else 17522 cat conftest.err 1>&5 17523 fi 17524 $RM conftest* 17525 17526fi 17527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 17528$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 17529 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 17530 ;; 17531 esac 17532 fi 17533 ;; 17534esac 17535 17536 17537 17538 17539 17540 17541 17542 17543 17544 17545 17546 17547 17548 17549 17550 17551 17552 17553 17554 17555 17556 17557 17558 17559 17560 17561 17562 17563 17564 17565 17566 17567 17568 17569 17570 17571 17572 17573 17574 17575 17576 17577 17578 17579 17580 17581 17582 17583 17584 17585 17586 17587 17588 17589 17590 17591 17592 17593 17594 17595 17596 17597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17598$as_echo_n "checking dynamic linker characteristics... " >&6; } 17599 17600library_names_spec= 17601libname_spec='lib$name' 17602soname_spec= 17603shrext_cmds=.so 17604postinstall_cmds= 17605postuninstall_cmds= 17606finish_cmds= 17607finish_eval= 17608shlibpath_var= 17609shlibpath_overrides_runpath=unknown 17610version_type=none 17611dynamic_linker="$host_os ld.so" 17612sys_lib_dlsearch_path_spec="/lib /usr/lib" 17613need_lib_prefix=unknown 17614hardcode_into_libs=no 17615 17616# when you set need_version to no, make sure it does not cause -set_version 17617# flags to be left without arguments 17618need_version=unknown 17619 17620 17621 17622case $host_os in 17623aix3*) 17624 version_type=linux # correct to gnu/linux during the next big refactor 17625 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 17626 shlibpath_var=LIBPATH 17627 17628 # AIX 3 has no versioning support, so we append a major version to the name. 17629 soname_spec='$libname$release$shared_ext$major' 17630 ;; 17631 17632aix[4-9]*) 17633 version_type=linux # correct to gnu/linux during the next big refactor 17634 need_lib_prefix=no 17635 need_version=no 17636 hardcode_into_libs=yes 17637 if test ia64 = "$host_cpu"; then 17638 # AIX 5 supports IA64 17639 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 17640 shlibpath_var=LD_LIBRARY_PATH 17641 else 17642 # With GCC up to 2.95.x, collect2 would create an import file 17643 # for dependence libraries. The import file would start with 17644 # the line '#! .'. This would cause the generated library to 17645 # depend on '.', always an invalid library. This was fixed in 17646 # development snapshots of GCC prior to 3.0. 17647 case $host_os in 17648 aix4 | aix4.[01] | aix4.[01].*) 17649 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17650 echo ' yes ' 17651 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 17652 : 17653 else 17654 can_build_shared=no 17655 fi 17656 ;; 17657 esac 17658 # Using Import Files as archive members, it is possible to support 17659 # filename-based versioning of shared library archives on AIX. While 17660 # this would work for both with and without runtime linking, it will 17661 # prevent static linking of such archives. So we do filename-based 17662 # shared library versioning with .so extension only, which is used 17663 # when both runtime linking and shared linking is enabled. 17664 # Unfortunately, runtime linking may impact performance, so we do 17665 # not want this to be the default eventually. Also, we use the 17666 # versioned .so libs for executables only if there is the -brtl 17667 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 17668 # To allow for filename-based versioning support, we need to create 17669 # libNAME.so.V as an archive file, containing: 17670 # *) an Import File, referring to the versioned filename of the 17671 # archive as well as the shared archive member, telling the 17672 # bitwidth (32 or 64) of that shared object, and providing the 17673 # list of exported symbols of that shared object, eventually 17674 # decorated with the 'weak' keyword 17675 # *) the shared object with the F_LOADONLY flag set, to really avoid 17676 # it being seen by the linker. 17677 # At run time we better use the real file rather than another symlink, 17678 # but for link time we create the symlink libNAME.so -> libNAME.so.V 17679 17680 case $with_aix_soname,$aix_use_runtimelinking in 17681 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 17682 # soname into executable. Probably we can add versioning support to 17683 # collect2, so additional links can be useful in future. 17684 aix,yes) # traditional libtool 17685 dynamic_linker='AIX unversionable lib.so' 17686 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17687 # instead of lib<name>.a to let people know that these are not 17688 # typical AIX shared libraries. 17689 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17690 ;; 17691 aix,no) # traditional AIX only 17692 dynamic_linker='AIX lib.a(lib.so.V)' 17693 # We preserve .a as extension for shared libraries through AIX4.2 17694 # and later when we are not doing run time linking. 17695 library_names_spec='$libname$release.a $libname.a' 17696 soname_spec='$libname$release$shared_ext$major' 17697 ;; 17698 svr4,*) # full svr4 only 17699 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 17700 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17701 # We do not specify a path in Import Files, so LIBPATH fires. 17702 shlibpath_overrides_runpath=yes 17703 ;; 17704 *,yes) # both, prefer svr4 17705 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 17706 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17707 # unpreferred sharedlib libNAME.a needs extra handling 17708 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 17709 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 17710 # We do not specify a path in Import Files, so LIBPATH fires. 17711 shlibpath_overrides_runpath=yes 17712 ;; 17713 *,no) # both, prefer aix 17714 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 17715 library_names_spec='$libname$release.a $libname.a' 17716 soname_spec='$libname$release$shared_ext$major' 17717 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 17718 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 17719 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 17720 ;; 17721 esac 17722 shlibpath_var=LIBPATH 17723 fi 17724 ;; 17725 17726amigaos*) 17727 case $host_cpu in 17728 powerpc) 17729 # Since July 2007 AmigaOS4 officially supports .so libraries. 17730 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17731 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17732 ;; 17733 m68k) 17734 library_names_spec='$libname.ixlibrary $libname.a' 17735 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17736 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 17737 ;; 17738 esac 17739 ;; 17740 17741beos*) 17742 library_names_spec='$libname$shared_ext' 17743 dynamic_linker="$host_os ld.so" 17744 shlibpath_var=LIBRARY_PATH 17745 ;; 17746 17747bsdi[45]*) 17748 version_type=linux # correct to gnu/linux during the next big refactor 17749 need_version=no 17750 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17751 soname_spec='$libname$release$shared_ext$major' 17752 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17753 shlibpath_var=LD_LIBRARY_PATH 17754 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17755 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17756 # the default ld.so.conf also contains /usr/contrib/lib and 17757 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17758 # libtool to hard-code these into programs 17759 ;; 17760 17761cygwin* | mingw* | pw32* | cegcc*) 17762 version_type=windows 17763 shrext_cmds=.dll 17764 need_version=no 17765 need_lib_prefix=no 17766 17767 case $GCC,$cc_basename in 17768 yes,*) 17769 # gcc 17770 library_names_spec='$libname.dll.a' 17771 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17772 postinstall_cmds='base_file=`basename \$file`~ 17773 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17774 dldir=$destdir/`dirname \$dlpath`~ 17775 test -d \$dldir || mkdir -p \$dldir~ 17776 $install_prog $dir/$dlname \$dldir/$dlname~ 17777 chmod a+x \$dldir/$dlname~ 17778 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17779 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17780 fi' 17781 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17782 dlpath=$dir/\$dldll~ 17783 $RM \$dlpath' 17784 shlibpath_overrides_runpath=yes 17785 17786 case $host_os in 17787 cygwin*) 17788 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17789 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17790 17791 ;; 17792 mingw* | cegcc*) 17793 # MinGW DLLs use traditional 'lib' prefix 17794 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17795 ;; 17796 pw32*) 17797 # pw32 DLLs use 'pw' prefix rather than 'lib' 17798 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17799 ;; 17800 esac 17801 dynamic_linker='Win32 ld.exe' 17802 ;; 17803 17804 *,cl*) 17805 # Native MSVC 17806 libname_spec='$name' 17807 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17808 library_names_spec='$libname.dll.lib' 17809 17810 case $build_os in 17811 mingw*) 17812 sys_lib_search_path_spec= 17813 lt_save_ifs=$IFS 17814 IFS=';' 17815 for lt_path in $LIB 17816 do 17817 IFS=$lt_save_ifs 17818 # Let DOS variable expansion print the short 8.3 style file name. 17819 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17820 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17821 done 17822 IFS=$lt_save_ifs 17823 # Convert to MSYS style. 17824 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17825 ;; 17826 cygwin*) 17827 # Convert to unix form, then to dos form, then back to unix form 17828 # but this time dos style (no spaces!) so that the unix form looks 17829 # like /cygdrive/c/PROGRA~1:/cygdr... 17830 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17831 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17832 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17833 ;; 17834 *) 17835 sys_lib_search_path_spec=$LIB 17836 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17837 # It is most probably a Windows format PATH. 17838 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17839 else 17840 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17841 fi 17842 # FIXME: find the short name or the path components, as spaces are 17843 # common. (e.g. "Program Files" -> "PROGRA~1") 17844 ;; 17845 esac 17846 17847 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17848 postinstall_cmds='base_file=`basename \$file`~ 17849 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17850 dldir=$destdir/`dirname \$dlpath`~ 17851 test -d \$dldir || mkdir -p \$dldir~ 17852 $install_prog $dir/$dlname \$dldir/$dlname' 17853 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17854 dlpath=$dir/\$dldll~ 17855 $RM \$dlpath' 17856 shlibpath_overrides_runpath=yes 17857 dynamic_linker='Win32 link.exe' 17858 ;; 17859 17860 *) 17861 # Assume MSVC wrapper 17862 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 17863 dynamic_linker='Win32 ld.exe' 17864 ;; 17865 esac 17866 # FIXME: first we should search . and the directory the executable is in 17867 shlibpath_var=PATH 17868 ;; 17869 17870darwin* | rhapsody*) 17871 dynamic_linker="$host_os dyld" 17872 version_type=darwin 17873 need_lib_prefix=no 17874 need_version=no 17875 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 17876 soname_spec='$libname$release$major$shared_ext' 17877 shlibpath_overrides_runpath=yes 17878 shlibpath_var=DYLD_LIBRARY_PATH 17879 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17880 17881 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17882 ;; 17883 17884dgux*) 17885 version_type=linux # correct to gnu/linux during the next big refactor 17886 need_lib_prefix=no 17887 need_version=no 17888 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17889 soname_spec='$libname$release$shared_ext$major' 17890 shlibpath_var=LD_LIBRARY_PATH 17891 ;; 17892 17893freebsd* | dragonfly*) 17894 # DragonFly does not have aout. When/if they implement a new 17895 # versioning mechanism, adjust this. 17896 if test -x /usr/bin/objformat; then 17897 objformat=`/usr/bin/objformat` 17898 else 17899 case $host_os in 17900 freebsd[23].*) objformat=aout ;; 17901 *) objformat=elf ;; 17902 esac 17903 fi 17904 version_type=freebsd-$objformat 17905 case $version_type in 17906 freebsd-elf*) 17907 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17908 soname_spec='$libname$release$shared_ext$major' 17909 need_version=no 17910 need_lib_prefix=no 17911 ;; 17912 freebsd-*) 17913 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17914 need_version=yes 17915 ;; 17916 esac 17917 shlibpath_var=LD_LIBRARY_PATH 17918 case $host_os in 17919 freebsd2.*) 17920 shlibpath_overrides_runpath=yes 17921 ;; 17922 freebsd3.[01]* | freebsdelf3.[01]*) 17923 shlibpath_overrides_runpath=yes 17924 hardcode_into_libs=yes 17925 ;; 17926 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17927 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17928 shlibpath_overrides_runpath=no 17929 hardcode_into_libs=yes 17930 ;; 17931 *) # from 4.6 on, and DragonFly 17932 shlibpath_overrides_runpath=yes 17933 hardcode_into_libs=yes 17934 ;; 17935 esac 17936 ;; 17937 17938haiku*) 17939 version_type=linux # correct to gnu/linux during the next big refactor 17940 need_lib_prefix=no 17941 need_version=no 17942 dynamic_linker="$host_os runtime_loader" 17943 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17944 soname_spec='$libname$release$shared_ext$major' 17945 shlibpath_var=LIBRARY_PATH 17946 shlibpath_overrides_runpath=no 17947 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 17948 hardcode_into_libs=yes 17949 ;; 17950 17951hpux9* | hpux10* | hpux11*) 17952 # Give a soname corresponding to the major version so that dld.sl refuses to 17953 # link against other versions. 17954 version_type=sunos 17955 need_lib_prefix=no 17956 need_version=no 17957 case $host_cpu in 17958 ia64*) 17959 shrext_cmds='.so' 17960 hardcode_into_libs=yes 17961 dynamic_linker="$host_os dld.so" 17962 shlibpath_var=LD_LIBRARY_PATH 17963 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17964 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17965 soname_spec='$libname$release$shared_ext$major' 17966 if test 32 = "$HPUX_IA64_MODE"; then 17967 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17968 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 17969 else 17970 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17971 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 17972 fi 17973 ;; 17974 hppa*64*) 17975 shrext_cmds='.sl' 17976 hardcode_into_libs=yes 17977 dynamic_linker="$host_os dld.sl" 17978 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17979 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17980 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17981 soname_spec='$libname$release$shared_ext$major' 17982 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17983 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17984 ;; 17985 *) 17986 shrext_cmds='.sl' 17987 dynamic_linker="$host_os dld.sl" 17988 shlibpath_var=SHLIB_PATH 17989 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17990 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17991 soname_spec='$libname$release$shared_ext$major' 17992 ;; 17993 esac 17994 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 17995 postinstall_cmds='chmod 555 $lib' 17996 # or fails outright, so override atomically: 17997 install_override_mode=555 17998 ;; 17999 18000interix[3-9]*) 18001 version_type=linux # correct to gnu/linux during the next big refactor 18002 need_lib_prefix=no 18003 need_version=no 18004 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18005 soname_spec='$libname$release$shared_ext$major' 18006 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18007 shlibpath_var=LD_LIBRARY_PATH 18008 shlibpath_overrides_runpath=no 18009 hardcode_into_libs=yes 18010 ;; 18011 18012irix5* | irix6* | nonstopux*) 18013 case $host_os in 18014 nonstopux*) version_type=nonstopux ;; 18015 *) 18016 if test yes = "$lt_cv_prog_gnu_ld"; then 18017 version_type=linux # correct to gnu/linux during the next big refactor 18018 else 18019 version_type=irix 18020 fi ;; 18021 esac 18022 need_lib_prefix=no 18023 need_version=no 18024 soname_spec='$libname$release$shared_ext$major' 18025 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 18026 case $host_os in 18027 irix5* | nonstopux*) 18028 libsuff= shlibsuff= 18029 ;; 18030 *) 18031 case $LD in # libtool.m4 will add one of these switches to LD 18032 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18033 libsuff= shlibsuff= libmagic=32-bit;; 18034 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18035 libsuff=32 shlibsuff=N32 libmagic=N32;; 18036 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18037 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18038 *) libsuff= shlibsuff= libmagic=never-match;; 18039 esac 18040 ;; 18041 esac 18042 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18043 shlibpath_overrides_runpath=no 18044 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 18045 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 18046 hardcode_into_libs=yes 18047 ;; 18048 18049# No shared lib support for Linux oldld, aout, or coff. 18050linux*oldld* | linux*aout* | linux*coff*) 18051 dynamic_linker=no 18052 ;; 18053 18054linux*android*) 18055 version_type=none # Android doesn't support versioned libraries. 18056 need_lib_prefix=no 18057 need_version=no 18058 library_names_spec='$libname$release$shared_ext' 18059 soname_spec='$libname$release$shared_ext' 18060 finish_cmds= 18061 shlibpath_var=LD_LIBRARY_PATH 18062 shlibpath_overrides_runpath=yes 18063 18064 # This implies no fast_install, which is unacceptable. 18065 # Some rework will be needed to allow for fast_install 18066 # before this can be enabled. 18067 hardcode_into_libs=yes 18068 18069 dynamic_linker='Android linker' 18070 # Don't embed -rpath directories since the linker doesn't support them. 18071 hardcode_libdir_flag_spec_CXX='-L$libdir' 18072 ;; 18073 18074# This must be glibc/ELF. 18075linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18076 version_type=linux # correct to gnu/linux during the next big refactor 18077 need_lib_prefix=no 18078 need_version=no 18079 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18080 soname_spec='$libname$release$shared_ext$major' 18081 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18082 shlibpath_var=LD_LIBRARY_PATH 18083 shlibpath_overrides_runpath=no 18084 18085 # Some binutils ld are patched to set DT_RUNPATH 18086 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 18087 $as_echo_n "(cached) " >&6 18088else 18089 lt_cv_shlibpath_overrides_runpath=no 18090 save_LDFLAGS=$LDFLAGS 18091 save_libdir=$libdir 18092 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 18093 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 18094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18095/* end confdefs.h. */ 18096 18097int 18098main () 18099{ 18100 18101 ; 18102 return 0; 18103} 18104_ACEOF 18105if ac_fn_cxx_try_link "$LINENO"; then : 18106 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 18107 lt_cv_shlibpath_overrides_runpath=yes 18108fi 18109fi 18110rm -f core conftest.err conftest.$ac_objext \ 18111 conftest$ac_exeext conftest.$ac_ext 18112 LDFLAGS=$save_LDFLAGS 18113 libdir=$save_libdir 18114 18115fi 18116 18117 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 18118 18119 # This implies no fast_install, which is unacceptable. 18120 # Some rework will be needed to allow for fast_install 18121 # before this can be enabled. 18122 hardcode_into_libs=yes 18123 18124 # Ideally, we could use ldconfig to report *all* directores which are 18125 # searched for libraries, however this is still not possible. Aside from not 18126 # being certain /sbin/ldconfig is available, command 18127 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 18128 # even though it is searched at run-time. Try to do the best guess by 18129 # appending ld.so.conf contents (and includes) to the search path. 18130 if test -f /etc/ld.so.conf; then 18131 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 18132 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18133 fi 18134 18135 # We used to test for /lib/ld.so.1 and disable shared libraries on 18136 # powerpc, because MkLinux only supported shared libraries with the 18137 # GNU dynamic linker. Since this was broken with cross compilers, 18138 # most powerpc-linux boxes support dynamic linking these days and 18139 # people can always --disable-shared, the test was removed, and we 18140 # assume the GNU/Linux dynamic linker is in use. 18141 dynamic_linker='GNU/Linux ld.so' 18142 ;; 18143 18144netbsd*) 18145 version_type=sunos 18146 need_lib_prefix=no 18147 need_version=no 18148 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18149 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18150 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18151 dynamic_linker='NetBSD (a.out) ld.so' 18152 else 18153 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18154 soname_spec='$libname$release$shared_ext$major' 18155 dynamic_linker='NetBSD ld.elf_so' 18156 fi 18157 shlibpath_var=LD_LIBRARY_PATH 18158 shlibpath_overrides_runpath=yes 18159 hardcode_into_libs=yes 18160 ;; 18161 18162newsos6) 18163 version_type=linux # correct to gnu/linux during the next big refactor 18164 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18165 shlibpath_var=LD_LIBRARY_PATH 18166 shlibpath_overrides_runpath=yes 18167 ;; 18168 18169*nto* | *qnx*) 18170 version_type=qnx 18171 need_lib_prefix=no 18172 need_version=no 18173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18174 soname_spec='$libname$release$shared_ext$major' 18175 shlibpath_var=LD_LIBRARY_PATH 18176 shlibpath_overrides_runpath=no 18177 hardcode_into_libs=yes 18178 dynamic_linker='ldqnx.so' 18179 ;; 18180 18181openbsd* | bitrig*) 18182 version_type=sunos 18183 sys_lib_dlsearch_path_spec=/usr/lib 18184 need_lib_prefix=no 18185 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 18186 need_version=no 18187 else 18188 need_version=yes 18189 fi 18190 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18192 shlibpath_var=LD_LIBRARY_PATH 18193 shlibpath_overrides_runpath=yes 18194 ;; 18195 18196os2*) 18197 libname_spec='$name' 18198 version_type=windows 18199 shrext_cmds=.dll 18200 need_version=no 18201 need_lib_prefix=no 18202 # OS/2 can only load a DLL with a base name of 8 characters or less. 18203 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 18204 v=$($ECHO $release$versuffix | tr -d .-); 18205 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 18206 $ECHO $n$v`$shared_ext' 18207 library_names_spec='${libname}_dll.$libext' 18208 dynamic_linker='OS/2 ld.exe' 18209 shlibpath_var=BEGINLIBPATH 18210 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18211 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18212 postinstall_cmds='base_file=`basename \$file`~ 18213 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 18214 dldir=$destdir/`dirname \$dlpath`~ 18215 test -d \$dldir || mkdir -p \$dldir~ 18216 $install_prog $dir/$dlname \$dldir/$dlname~ 18217 chmod a+x \$dldir/$dlname~ 18218 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18219 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18220 fi' 18221 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 18222 dlpath=$dir/\$dldll~ 18223 $RM \$dlpath' 18224 ;; 18225 18226osf3* | osf4* | osf5*) 18227 version_type=osf 18228 need_lib_prefix=no 18229 need_version=no 18230 soname_spec='$libname$release$shared_ext$major' 18231 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18232 shlibpath_var=LD_LIBRARY_PATH 18233 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18234 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18235 ;; 18236 18237rdos*) 18238 dynamic_linker=no 18239 ;; 18240 18241solaris*) 18242 version_type=linux # correct to gnu/linux during the next big refactor 18243 need_lib_prefix=no 18244 need_version=no 18245 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18246 soname_spec='$libname$release$shared_ext$major' 18247 shlibpath_var=LD_LIBRARY_PATH 18248 shlibpath_overrides_runpath=yes 18249 hardcode_into_libs=yes 18250 # ldd complains unless libraries are executable 18251 postinstall_cmds='chmod +x $lib' 18252 ;; 18253 18254sunos4*) 18255 version_type=sunos 18256 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18257 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18258 shlibpath_var=LD_LIBRARY_PATH 18259 shlibpath_overrides_runpath=yes 18260 if test yes = "$with_gnu_ld"; then 18261 need_lib_prefix=no 18262 fi 18263 need_version=yes 18264 ;; 18265 18266sysv4 | sysv4.3*) 18267 version_type=linux # correct to gnu/linux during the next big refactor 18268 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18269 soname_spec='$libname$release$shared_ext$major' 18270 shlibpath_var=LD_LIBRARY_PATH 18271 case $host_vendor in 18272 sni) 18273 shlibpath_overrides_runpath=no 18274 need_lib_prefix=no 18275 runpath_var=LD_RUN_PATH 18276 ;; 18277 siemens) 18278 need_lib_prefix=no 18279 ;; 18280 motorola) 18281 need_lib_prefix=no 18282 need_version=no 18283 shlibpath_overrides_runpath=no 18284 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18285 ;; 18286 esac 18287 ;; 18288 18289sysv4*MP*) 18290 if test -d /usr/nec; then 18291 version_type=linux # correct to gnu/linux during the next big refactor 18292 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 18293 soname_spec='$libname$shared_ext.$major' 18294 shlibpath_var=LD_LIBRARY_PATH 18295 fi 18296 ;; 18297 18298sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18299 version_type=sco 18300 need_lib_prefix=no 18301 need_version=no 18302 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 18303 soname_spec='$libname$release$shared_ext$major' 18304 shlibpath_var=LD_LIBRARY_PATH 18305 shlibpath_overrides_runpath=yes 18306 hardcode_into_libs=yes 18307 if test yes = "$with_gnu_ld"; then 18308 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18309 else 18310 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18311 case $host_os in 18312 sco3.2v5*) 18313 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18314 ;; 18315 esac 18316 fi 18317 sys_lib_dlsearch_path_spec='/usr/lib' 18318 ;; 18319 18320tpf*) 18321 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 18322 version_type=linux # correct to gnu/linux during the next big refactor 18323 need_lib_prefix=no 18324 need_version=no 18325 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18326 shlibpath_var=LD_LIBRARY_PATH 18327 shlibpath_overrides_runpath=no 18328 hardcode_into_libs=yes 18329 ;; 18330 18331uts4*) 18332 version_type=linux # correct to gnu/linux during the next big refactor 18333 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18334 soname_spec='$libname$release$shared_ext$major' 18335 shlibpath_var=LD_LIBRARY_PATH 18336 ;; 18337 18338*) 18339 dynamic_linker=no 18340 ;; 18341esac 18342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 18343$as_echo "$dynamic_linker" >&6; } 18344test no = "$dynamic_linker" && can_build_shared=no 18345 18346variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18347if test yes = "$GCC"; then 18348 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18349fi 18350 18351if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 18352 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 18353fi 18354 18355if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 18356 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 18357fi 18358 18359# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 18360configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 18361 18362# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 18363func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 18364 18365# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 18366configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 18367 18368 18369 18370 18371 18372 18373 18374 18375 18376 18377 18378 18379 18380 18381 18382 18383 18384 18385 18386 18387 18388 18389 18390 18391 18392 18393 18394 18395 18396 18397 18398 18399 18400 18401 18402 18403 18404 18405 18406 18407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18408$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 18409hardcode_action_CXX= 18410if test -n "$hardcode_libdir_flag_spec_CXX" || 18411 test -n "$runpath_var_CXX" || 18412 test yes = "$hardcode_automatic_CXX"; then 18413 18414 # We can hardcode non-existent directories. 18415 if test no != "$hardcode_direct_CXX" && 18416 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18417 # have to relink, otherwise we might link with an installed library 18418 # when we should be linking with a yet-to-be-installed one 18419 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 18420 test no != "$hardcode_minus_L_CXX"; then 18421 # Linking always hardcodes the temporary library directory. 18422 hardcode_action_CXX=relink 18423 else 18424 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18425 hardcode_action_CXX=immediate 18426 fi 18427else 18428 # We cannot hardcode anything, or else we can only hardcode existing 18429 # directories. 18430 hardcode_action_CXX=unsupported 18431fi 18432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 18433$as_echo "$hardcode_action_CXX" >&6; } 18434 18435if test relink = "$hardcode_action_CXX" || 18436 test yes = "$inherit_rpath_CXX"; then 18437 # Fast installation is not supported 18438 enable_fast_install=no 18439elif test yes = "$shlibpath_overrides_runpath" || 18440 test no = "$enable_shared"; then 18441 # Fast installation is not necessary 18442 enable_fast_install=needless 18443fi 18444 18445 18446 18447 18448 18449 18450 18451 fi # test -n "$compiler" 18452 18453 CC=$lt_save_CC 18454 CFLAGS=$lt_save_CFLAGS 18455 LDCXX=$LD 18456 LD=$lt_save_LD 18457 GCC=$lt_save_GCC 18458 with_gnu_ld=$lt_save_with_gnu_ld 18459 lt_cv_path_LDCXX=$lt_cv_path_LD 18460 lt_cv_path_LD=$lt_save_path_LD 18461 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 18462 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 18463fi # test yes != "$_lt_caught_CXX_error" 18464 18465ac_ext=c 18466ac_cpp='$CPP $CPPFLAGS' 18467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18469ac_compiler_gnu=$ac_cv_c_compiler_gnu 18470 18471 18472 18473 18474 18475 18476 18477 18478 18479 18480 18481 18482 18483 18484 18485 ac_config_commands="$ac_config_commands libtool" 18486 18487 18488 18489 18490# Only expand once: 18491 18492 18493# Check whether --enable-experimental-libtool was given. 18494if test "${enable_experimental_libtool+set}" = set; then : 18495 enableval=$enable_experimental_libtool; experimental_libtool=$enableval 18496else 18497 experimental_libtool=no 18498fi 18499 18500 18501if test "$experimental_libtool" = "yes"; then 18502 echo "using APR's libtool" 18503 sh_libtool="`$apr_config --apr-libtool`" 18504 LIBTOOL="$sh_libtool" 18505 SVN_LIBTOOL="$sh_libtool" 18506else 18507 sh_libtool="$abs_builddir/libtool" 18508 SVN_LIBTOOL="\$(SHELL) \"$sh_libtool\"" 18509fi 18510 18511 18512lt_pversion=`$LIBTOOL --version 2>/dev/null|$SED -e 's/([^)]*)//g;s/^[^0-9]*//;s/[- ].*//g;q'` 18513lt_version=`echo $lt_pversion|$SED -e 's/\([a-z]*\)$/.\1/'` 18514lt_major_version=`echo $lt_version | cut -d'.' -f 1` 18515 18516svn_enable_static=yes 18517svn_enable_shared=yes 18518 18519# Check whether --enable-static was given. 18520if test "${enable_static+set}" = set; then : 18521 enableval=$enable_static; svn_enable_static="$enableval" 18522else 18523 svn_enable_static="yes" 18524fi 18525 18526 18527# Check whether --enable-shared was given. 18528if test "${enable_shared+set}" = set; then : 18529 enableval=$enable_shared; svn_enable_shared="$enableval" 18530else 18531 svn_enable_shared="yes" 18532fi 18533 18534 18535if test "$svn_enable_static" = "yes" && test "$svn_enable_shared" = "yes" ; then 18536 { $as_echo "$as_me:${as_lineno-$LINENO}: building both shared and static libraries" >&5 18537$as_echo "$as_me: building both shared and static libraries" >&6;} 18538elif test "$svn_enable_static" = "yes" ; then 18539 { $as_echo "$as_me:${as_lineno-$LINENO}: building static libraries only" >&5 18540$as_echo "$as_me: building static libraries only" >&6;} 18541 LT_CFLAGS="-static $LT_CFLAGS" 18542 LT_LDFLAGS="-static $LT_LDFLAGS" 18543elif test "$svn_enable_shared" = "yes" ; then 18544 { $as_echo "$as_me:${as_lineno-$LINENO}: building shared libraries only" >&5 18545$as_echo "$as_me: building shared libraries only" >&6;} 18546 if test "$lt_major_version" = "1" ; then 18547 LT_CFLAGS="-prefer-pic $LT_CFLAGS" 18548 elif test "$lt_major_version" = "2" ; then 18549 LT_CFLAGS="-shared $LT_CFLAGS" 18550 fi 18551 LT_LDFLAGS="-shared $LT_LDFLAGS" 18552else 18553 as_fn_error $? "cannot disable both shared and static libraries" "$LINENO" 5 18554fi 18555 18556# Check whether --enable-all-static was given. 18557if test "${enable_all_static+set}" = set; then : 18558 enableval=$enable_all_static; 18559 if test "$enableval" = "yes" ; then 18560 LT_LDFLAGS="-all-static $LT_LDFLAGS" 18561 elif test "$enableval" != "no" ; then 18562 as_fn_error $? "--enable-all-static doesn't accept argument" "$LINENO" 5 18563 fi 18564 18565fi 18566 18567 18568 18569 18570 18571# Check whether --enable-local-library-preloading was given. 18572if test "${enable_local_library_preloading+set}" = set; then : 18573 enableval=$enable_local_library_preloading; 18574 if test "$enableval" != "no"; then 18575 if test "$svn_enable_shared" = "yes"; then 18576 TRANSFORM_LIBTOOL_SCRIPTS="transform-libtool-scripts" 18577 else 18578 as_fn_error $? "--enable-local-library-preloading conflicts with --disable-shared" "$LINENO" 5 18579 fi 18580 else 18581 TRANSFORM_LIBTOOL_SCRIPTS="" 18582 fi 18583 18584else 18585 18586 TRANSFORM_LIBTOOL_SCRIPTS="" 18587 18588fi 18589 18590 18591 18592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool needs -no-undefined" >&5 18593$as_echo_n "checking whether libtool needs -no-undefined... " >&6; } 18594case $host in 18595 *-*-cygwin*) 18596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18597$as_echo "yes" >&6; } 18598 LT_NO_UNDEFINED="-no-undefined" 18599 ;; 18600 *) 18601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18602$as_echo "no" >&6; } 18603 LT_NO_UNDEFINED="" 18604 ;; 18605esac 18606 18607 18608trang=yes 18609 18610# Check whether --with-trang was given. 18611if test "${with_trang+set}" = set; then : 18612 withval=$with_trang; 18613 trang="$withval" 18614 18615fi 18616 18617if test "$trang" = "yes"; then 18618 # Extract the first word of "trang", so it can be a program name with args. 18619set dummy trang; ac_word=$2 18620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18621$as_echo_n "checking for $ac_word... " >&6; } 18622if ${ac_cv_path_TRANG+:} false; then : 18623 $as_echo_n "(cached) " >&6 18624else 18625 case $TRANG in 18626 [\\/]* | ?:[\\/]*) 18627 ac_cv_path_TRANG="$TRANG" # Let the user override the test with a path. 18628 ;; 18629 *) 18630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18631for as_dir in $PATH 18632do 18633 IFS=$as_save_IFS 18634 test -z "$as_dir" && as_dir=. 18635 for ac_exec_ext in '' $ac_executable_extensions; do 18636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18637 ac_cv_path_TRANG="$as_dir/$ac_word$ac_exec_ext" 18638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18639 break 2 18640 fi 18641done 18642 done 18643IFS=$as_save_IFS 18644 18645 test -z "$ac_cv_path_TRANG" && ac_cv_path_TRANG="none" 18646 ;; 18647esac 18648fi 18649TRANG=$ac_cv_path_TRANG 18650if test -n "$TRANG"; then 18651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRANG" >&5 18652$as_echo "$TRANG" >&6; } 18653else 18654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18655$as_echo "no" >&6; } 18656fi 18657 18658 18659else 18660 TRANG="$trang" 18661 18662fi 18663 18664doxygen=yes 18665 18666# Check whether --with-doxygen was given. 18667if test "${with_doxygen+set}" = set; then : 18668 withval=$with_doxygen; 18669 doxygen="$withval" 18670 18671fi 18672 18673if test "$doxygen" = "yes"; then 18674 # Extract the first word of "doxygen", so it can be a program name with args. 18675set dummy doxygen; ac_word=$2 18676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18677$as_echo_n "checking for $ac_word... " >&6; } 18678if ${ac_cv_path_DOXYGEN+:} false; then : 18679 $as_echo_n "(cached) " >&6 18680else 18681 case $DOXYGEN in 18682 [\\/]* | ?:[\\/]*) 18683 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 18684 ;; 18685 *) 18686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18687for as_dir in $PATH 18688do 18689 IFS=$as_save_IFS 18690 test -z "$as_dir" && as_dir=. 18691 for ac_exec_ext in '' $ac_executable_extensions; do 18692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18693 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 18694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18695 break 2 18696 fi 18697done 18698 done 18699IFS=$as_save_IFS 18700 18701 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="none" 18702 ;; 18703esac 18704fi 18705DOXYGEN=$ac_cv_path_DOXYGEN 18706if test -n "$DOXYGEN"; then 18707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 18708$as_echo "$DOXYGEN" >&6; } 18709else 18710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18711$as_echo "no" >&6; } 18712fi 18713 18714 18715else 18716 DOXYGEN="$doxygen" 18717 18718fi 18719 18720 18721 18722 18723 18724# Check whether --with-expat was given. 18725if test "${with_expat+set}" = set; then : 18726 withval=$with_expat; svn_lib_expat="$withval" 18727else 18728 svn_lib_expat="::expat" 18729fi 18730 18731 18732# APR-util accepts "builtin" as an argument to this option so if the user 18733# passed "builtin" pretend the user didn't specify the --with-expat option 18734# at all. Expat will (hopefully) be found in apr-util. 18735test "_$svn_lib_expat" = "_builtin" && svn_lib_expat="::expat" 18736 18737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Expat" >&5 18738$as_echo_n "checking for Expat... " >&6; } 18739if test -n "`echo "$svn_lib_expat" | $EGREP ":.*:"`"; then 18740 SVN_XML_INCLUDES="" 18741 for i in `echo "$svn_lib_expat" | $SED -e "s/\([^:]*\):.*/\1/"`; do 18742 SVN_XML_INCLUDES="$SVN_XML_INCLUDES -I$i" 18743 done 18744 SVN_XML_INCLUDES="${SVN_XML_INCLUDES## }" 18745 for l in `echo "$svn_lib_expat" | $SED -e "s/.*:\([^:]*\):.*/\1/"`; do 18746 LDFLAGS="$LDFLAGS -L$l" 18747 done 18748 for l in `echo "$svn_lib_expat" | $SED -e "s/.*:\([^:]*\)/\1/"`; do 18749 SVN_XML_LIBS="$SVN_XML_LIBS -l$l" 18750 done 18751 SVN_XML_LIBS="${SVN_XML_LIBS## }" 18752 old_CPPFLAGS="$CPPFLAGS" 18753 old_LIBS="$LIBS" 18754 CPPFLAGS="$CPPFLAGS $SVN_XML_INCLUDES" 18755 LIBS="$LIBS $SVN_XML_LIBS" 18756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18757/* end confdefs.h. */ 18758 18759#include <expat.h> 18760int main() 18761{XML_ParserCreate(NULL);} 18762_ACEOF 18763if ac_fn_c_try_link "$LINENO"; then : 18764 svn_lib_expat="yes" 18765else 18766 svn_lib_expat="no" 18767fi 18768rm -f core conftest.err conftest.$ac_objext \ 18769 conftest$ac_exeext conftest.$ac_ext 18770 LIBS="$old_LIBS" 18771 if test "$svn_lib_expat" = "yes"; then 18772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18773$as_echo "yes" >&6; } 18774 else 18775 SVN_XML_INCLUDES="" 18776 SVN_XML_LIBS="" 18777 CPPFLAGS="$CPPFLAGS $SVN_APRUTIL_INCLUDES" 18778 if test "$enable_all_static" != "yes"; then 18779 SVN_APRUTIL_LIBS="$SVN_APRUTIL_LIBS `$apu_config --libs`" 18780 fi 18781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18782/* end confdefs.h. */ 18783 18784#include <expat.h> 18785int main() 18786{XML_ParserCreate(NULL);} 18787_ACEOF 18788if ac_fn_c_try_compile "$LINENO"; then : 18789 svn_lib_expat="yes" 18790else 18791 svn_lib_expat="no" 18792fi 18793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18794 if test "$svn_lib_expat" = "yes"; then 18795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18796$as_echo "yes" >&6; } 18797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expat found amongst libraries used by APR-Util, but Subversion libraries might be needlessly linked against additional unused libraries. It can be avoided by specifying exact location of Expat in argument of --with-expat option." >&5 18798$as_echo "$as_me: WARNING: Expat found amongst libraries used by APR-Util, but Subversion libraries might be needlessly linked against additional unused libraries. It can be avoided by specifying exact location of Expat in argument of --with-expat option." >&2;} 18799 else 18800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18801$as_echo "no" >&6; } 18802 as_fn_error $? "Expat not found" "$LINENO" 5 18803 fi 18804 fi 18805 CPPFLAGS="$old_CPPFLAGS" 18806else 18807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18808$as_echo "no" >&6; } 18809 if test "$svn_lib_expat" = "yes"; then 18810 as_fn_error $? "--with-expat option requires argument" "$LINENO" 5 18811 elif test "$svn_lib_expat" = "no"; then 18812 as_fn_error $? "Expat is required" "$LINENO" 5 18813 else 18814 as_fn_error $? "Invalid syntax of argument of --with-expat option" "$LINENO" 5 18815 fi 18816fi 18817 18818 18819 18820 18821# Berkeley DB on SCO OpenServer needs -lsocket 18822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 18823$as_echo_n "checking for socket in -lsocket... " >&6; } 18824if ${ac_cv_lib_socket_socket+:} false; then : 18825 $as_echo_n "(cached) " >&6 18826else 18827 ac_check_lib_save_LIBS=$LIBS 18828LIBS="-lsocket $LIBS" 18829cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18830/* end confdefs.h. */ 18831 18832/* Override any GCC internal prototype to avoid an error. 18833 Use char because int might match the return type of a GCC 18834 builtin and then its argument prototype would still apply. */ 18835#ifdef __cplusplus 18836extern "C" 18837#endif 18838char socket (); 18839int 18840main () 18841{ 18842return socket (); 18843 ; 18844 return 0; 18845} 18846_ACEOF 18847if ac_fn_c_try_link "$LINENO"; then : 18848 ac_cv_lib_socket_socket=yes 18849else 18850 ac_cv_lib_socket_socket=no 18851fi 18852rm -f core conftest.err conftest.$ac_objext \ 18853 conftest$ac_exeext conftest.$ac_ext 18854LIBS=$ac_check_lib_save_LIBS 18855fi 18856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 18857$as_echo "$ac_cv_lib_socket_socket" >&6; } 18858if test "x$ac_cv_lib_socket_socket" = xyes; then : 18859 cat >>confdefs.h <<_ACEOF 18860#define HAVE_LIBSOCKET 1 18861_ACEOF 18862 18863 LIBS="-lsocket $LIBS" 18864 18865fi 18866 18867 18868# Build the BDB filesystem library only if we have an appropriate 18869# version of Berkeley DB. 18870case "$host" in 18871powerpc-apple-darwin*) 18872 # Berkeley DB 4.0 does not work on OS X. 18873 SVN_FS_WANT_DB_MAJOR=4 18874 SVN_FS_WANT_DB_MINOR=1 18875 SVN_FS_WANT_DB_PATCH=25 18876 ;; 18877*) 18878 SVN_FS_WANT_DB_MAJOR=4 18879 SVN_FS_WANT_DB_MINOR=0 18880 SVN_FS_WANT_DB_PATCH=14 18881 ;; 18882esac 18883db_alt_version="5.x" 18884# Look for libdb4.so first: 18885 18886 db_version=$SVN_FS_WANT_DB_MAJOR.$SVN_FS_WANT_DB_MINOR.$SVN_FS_WANT_DB_PATCH 18887 18888 18889# Check whether --with-berkeley-db was given. 18890if test "${with_berkeley_db+set}" = set; then : 18891 withval=$with_berkeley_db; 18892 if test "$withval" = "no"; then 18893 bdb_status=skip 18894 elif test "$withval" = "yes"; then 18895 apu_db_version="`$apu_config --db-version`" 18896 if test $? -ne 0; then 18897 as_fn_error $? "Can't determine whether apr-util is linked against a 18898 proper version of Berkeley DB." "$LINENO" 5 18899 fi 18900 18901 if test "$withval" = "yes"; then 18902 if test "$apu_db_version" -lt "4"; then 18903 as_fn_error $? "APR-UTIL was linked against Berkeley DB version $apu_db_version, 18904 while version 4 or higher is required. Reinstall 18905 APR-UTIL with the appropriate options." "$LINENO" 5 18906 fi 18907 18908 bdb_status=required 18909 18910 elif test "$apu_found" != "reconfig"; then 18911 if test "$apu_db_version" -lt 4; then 18912 as_fn_error $? "APR-UTIL was installed independently, it won't be 18913 possible to use the specified Berkeley DB: $withval" "$LINENO" 5 18914 fi 18915 18916 bdb_status=required 18917 fi 18918 else 18919 if echo "$withval" | $EGREP ":.*:.*:" > /dev/null; then 18920 svn_berkeley_db_header="`echo "$withval" | $SED -e "s/\([^:]*\):.*/\1/"`" 18921 SVN_DB_INCLUDES="" 18922 for i in `echo "$withval" | $SED -e "s/.*:\([^:]*\):[^:]*:.*/\1/"`; do 18923 SVN_DB_INCLUDES="$SVN_DB_INCLUDES -I$i" 18924 done 18925 SVN_DB_INCLUDES="${SVN_DB_INCLUDES## }" 18926 for l in `echo "$withval" | $SED -e "s/.*:[^:]*:\([^:]*\):.*/\1/"`; do 18927 LDFLAGS="$LDFLAGS ` 18928 input_flags="-L$l" 18929 output_flags="" 18930 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 18931 for flag in $input_flags; do 18932 filter="no" 18933 for dir in $filtered_dirs; do 18934 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 18935 filter="yes" 18936 break 18937 fi 18938 done 18939 if test "$filter" = "no"; then 18940 output_flags="$output_flags $flag" 18941 fi 18942 done 18943 if test -n "$output_flags"; then 18944 printf "%s" "${output_flags# }" 18945 fi 18946`" 18947 done 18948 SVN_DB_LIBS="" 18949 for l in `echo "$withval" | $SED -e "s/.*:\([^:]*\)/\1/"`; do 18950 SVN_DB_LIBS="$SVN_DB_LIBS -l$l" 18951 done 18952 SVN_DB_LIBS="${SVN_DB_LIBS## }" 18953 18954 bdb_status=required 18955 else 18956 as_fn_error $? "Invalid syntax of argument of --with-berkeley-db option" "$LINENO" 5 18957 fi 18958 fi 18959 18960else 18961 18962 # No --with-berkeley-db option: 18963 # 18964 # Check if APR-UTIL is providing the correct Berkeley DB version 18965 # for us. 18966 # 18967 apu_db_version="`$apu_config --db-version`" 18968 if test $? -ne 0; then 18969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected older version of APR-UTIL, trying to determine 18970 whether apr-util is linked against Berkeley DB 18971 $db_version" >&5 18972$as_echo "$as_me: WARNING: Detected older version of APR-UTIL, trying to determine 18973 whether apr-util is linked against Berkeley DB 18974 $db_version" >&2;} 18975 bdb_status=try-link 18976 elif test "$apu_db_version" -lt "4"; then 18977 bdb_status=skip 18978 else 18979 bdb_status=try-link 18980 fi 18981 18982fi 18983 18984 18985 if test "$bdb_status" = "skip"; then 18986 svn_lib_berkeley_db=no 18987 else 18988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for availability of Berkeley DB" >&5 18989$as_echo_n "checking for availability of Berkeley DB... " >&6; } 18990 # Check whether --enable-bdb6 was given. 18991if test "${enable_bdb6+set}" = set; then : 18992 enableval=$enable_bdb6; enable_bdb6=$enableval 18993else 18994 enable_bdb6=unspecified 18995fi 18996 18997 18998 18999 svn_lib_berkeley_db_try_save_cppflags="$CPPFLAGS" 19000 svn_lib_berkeley_db_try_save_libs="$LIBS" 19001 19002 svn_check_berkeley_db_major=$SVN_FS_WANT_DB_MAJOR 19003 svn_check_berkeley_db_minor=$SVN_FS_WANT_DB_MINOR 19004 svn_check_berkeley_db_patch=$SVN_FS_WANT_DB_PATCH 19005 enable_bdb6=$enable_bdb6 19006 19007 if test -z "$SVN_DB_LIBS"; then 19008 # We pass --dbm-libs here since Debian has modified apu-config not 19009 # to return -ldb unless --dbm-libs is passed. This may also produce 19010 # extra output beyond -ldb but since we're only filtering for -ldb 19011 # it won't matter to us. However, --dbm-libs was added to apu-config 19012 # in 1.3.8 so it's possible the version we have doesn't support it 19013 # so fallback without it if we get an error. 19014 svn_db_libs_prefiltered="`$apu_config --libs --dbm-libs`" 19015 if test $? -ne 0; then 19016 svn_db_libs_prefiltered="`$apu_config --libs`" 19017 fi 19018 19019 # Extract only the -ldb.* flag from the libs supplied by apu-config 19020 # Otherwise we get bit by the fact that expat might not be built yet 19021 # Or that it resides in a non-standard location which we would have 19022 # to compensate with using something like -R`$apu_config --prefix`/lib. 19023 # 19024 SVN_DB_LIBS="`echo \"$svn_db_libs_prefiltered\" | $SED -e 's/.*\(-ldb[^[:space:]]*\).*/\1/' | $EGREP -- '-ldb[^[:space:]]*'`" 19025 fi 19026 19027 CPPFLAGS="$SVN_DB_INCLUDES $SVN_APRUTIL_INCLUDES $CPPFLAGS" 19028 LIBS="`$apu_config --ldflags` $SVN_DB_LIBS $LIBS" 19029 19030 if test -n "$svn_berkeley_db_header"; then 19031 SVN_DB_HEADER="#include <$svn_berkeley_db_header>" 19032 svn_db_header="#include <$svn_berkeley_db_header>" 19033 else 19034 SVN_DB_HEADER="#include <apu_want.h>" 19035 svn_db_header="#define APU_WANT_DB 19036#include <apu_want.h>" 19037 fi 19038 19039 19040 19041 if test "$cross_compiling" = yes; then : 19042 svn_have_berkeley_db=yes 19043 19044else 19045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19046/* end confdefs.h. */ 19047 19048#include <string.h> 19049#include <stdlib.h> 19050$svn_db_header 19051 19052int main () 19053{ 19054 int major, minor, patch; 19055 19056 db_version (&major, &minor, &patch); 19057 19058 /* Sanity check: ensure that db.h constants actually match the db library */ 19059 if (major != DB_VERSION_MAJOR 19060 || minor != DB_VERSION_MINOR 19061 || patch != DB_VERSION_PATCH) 19062 exit (1); 19063 19064 /* Block Berkeley DB 6, because (a) we haven't tested with it, (b) 6.0.20 19065 and newer are under the AGPL, and we want use of AGPL dependencies to be 19066 opt-in. */ 19067 if (major >= 6 && strcmp("$enable_bdb6", "yes")) 19068 exit(2); 19069 19070 /* Run-time check: ensure the library claims to be the correct version. */ 19071 19072 if (major < $svn_check_berkeley_db_major) 19073 exit (1); 19074 if (major > $svn_check_berkeley_db_major) 19075 exit (0); 19076 19077 if (minor < $svn_check_berkeley_db_minor) 19078 exit (1); 19079 if (minor > $svn_check_berkeley_db_minor) 19080 exit (0); 19081 19082 if (patch >= $svn_check_berkeley_db_patch) 19083 exit (0); 19084 else 19085 exit (1); 19086} 19087 19088_ACEOF 19089if ac_fn_c_try_run "$LINENO"; then : 19090 svn_have_berkeley_db=yes 19091else 19092 rc=$? 19093 svn_have_berkeley_db=no 19094 if test $rc = 2; then 19095 svn_have_berkeley_db=no6 19096 fi 19097fi 19098rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19099 conftest.$ac_objext conftest.beam conftest.$ac_ext 19100fi 19101 19102 19103 CPPFLAGS="$svn_lib_berkeley_db_try_save_cppflags" 19104 LIBS="$svn_lib_berkeley_db_try_save_libs" 19105 19106 19107 if test "$svn_have_berkeley_db" = "yes"; then 19108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19109$as_echo "yes" >&6; } 19110 svn_lib_berkeley_db=yes 19111 else 19112 if test "$svn_have_berkeley_db" = "no6"; then 19113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (found version 6, but --enable-bdb6 not specified)" >&5 19114$as_echo "no (found version 6, but --enable-bdb6 not specified)" >&6; } 19115 # A warning will be printed at the end of configure.ac. 19116 else 19117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19118$as_echo "no" >&6; } 19119 fi 19120 svn_lib_berkeley_db=no 19121 if test "$bdb_status" = "required"; then 19122 as_fn_error $? "Berkeley DB $db_version or $db_alt_version wasn't found." "$LINENO" 5 19123 fi 19124 fi 19125 fi 19126 19127 19128 19129cat >>confdefs.h <<_ACEOF 19130#define SVN_FS_WANT_DB_MAJOR $SVN_FS_WANT_DB_MAJOR 19131_ACEOF 19132 19133 19134cat >>confdefs.h <<_ACEOF 19135#define SVN_FS_WANT_DB_MINOR $SVN_FS_WANT_DB_MINOR 19136_ACEOF 19137 19138 19139cat >>confdefs.h <<_ACEOF 19140#define SVN_FS_WANT_DB_PATCH $SVN_FS_WANT_DB_PATCH 19141_ACEOF 19142 19143 19144 19145 19146 19147 19148 19149# Check whether --with-sasl was given. 19150if test "${with_sasl+set}" = set; then : 19151 withval=$with_sasl; 19152 with_sasl="$withval" 19153 required="yes" 19154 19155else 19156 19157 with_sasl="yes" 19158 required="no" 19159 19160fi 19161 19162 19163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for SASL" >&5 19164$as_echo_n "checking whether to look for SASL... " >&6; } 19165 19166 if test "${with_sasl}" = "no"; then 19167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19168$as_echo "no" >&6; } 19169 svn_lib_sasl=no 19170 else 19171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19172$as_echo "yes" >&6; } 19173 saved_LDFLAGS="$LDFLAGS" 19174 saved_CPPFLAGS="$CPPFLAGS" 19175 19176 if test "$with_sasl" = "yes"; then 19177 { $as_echo "$as_me:${as_lineno-$LINENO}: Looking in default locations" >&5 19178$as_echo "$as_me: Looking in default locations" >&6;} 19179 ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default" 19180if test "x$ac_cv_header_sasl_sasl_h" = xyes; then : 19181 ac_fn_c_check_header_mongrel "$LINENO" "sasl/saslutil.h" "ac_cv_header_sasl_saslutil_h" "$ac_includes_default" 19182if test "x$ac_cv_header_sasl_saslutil_h" = xyes; then : 19183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prop_get in -lsasl2" >&5 19184$as_echo_n "checking for prop_get in -lsasl2... " >&6; } 19185if ${ac_cv_lib_sasl2_prop_get+:} false; then : 19186 $as_echo_n "(cached) " >&6 19187else 19188 ac_check_lib_save_LIBS=$LIBS 19189LIBS="-lsasl2 $LIBS" 19190cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19191/* end confdefs.h. */ 19192 19193/* Override any GCC internal prototype to avoid an error. 19194 Use char because int might match the return type of a GCC 19195 builtin and then its argument prototype would still apply. */ 19196#ifdef __cplusplus 19197extern "C" 19198#endif 19199char prop_get (); 19200int 19201main () 19202{ 19203return prop_get (); 19204 ; 19205 return 0; 19206} 19207_ACEOF 19208if ac_fn_c_try_link "$LINENO"; then : 19209 ac_cv_lib_sasl2_prop_get=yes 19210else 19211 ac_cv_lib_sasl2_prop_get=no 19212fi 19213rm -f core conftest.err conftest.$ac_objext \ 19214 conftest$ac_exeext conftest.$ac_ext 19215LIBS=$ac_check_lib_save_LIBS 19216fi 19217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_prop_get" >&5 19218$as_echo "$ac_cv_lib_sasl2_prop_get" >&6; } 19219if test "x$ac_cv_lib_sasl2_prop_get" = xyes; then : 19220 svn_lib_sasl=yes 19221else 19222 svn_lib_sasl=no 19223fi 19224 19225else 19226 svn_lib_sasl=no 19227fi 19228 19229 19230else 19231 svn_lib_sasl=no 19232fi 19233 19234 19235 if test "$svn_lib_sasl" = "no"; then 19236 with_sasl="/usr/local" 19237 fi 19238 else 19239 svn_lib_sasl=no 19240 fi 19241 19242 if test "$svn_lib_sasl" = "no"; then 19243 SVN_SASL_INCLUDES="-I${with_sasl}/include" 19244 CPPFLAGS="$CPPFLAGS $SVN_SASL_INCLUDES" 19245 LDFLAGS="$LDFLAGS ` 19246 input_flags="-L${with_sasl}/lib" 19247 output_flags="" 19248 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 19249 for flag in $input_flags; do 19250 filter="no" 19251 for dir in $filtered_dirs; do 19252 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 19253 filter="yes" 19254 break 19255 fi 19256 done 19257 if test "$filter" = "no"; then 19258 output_flags="$output_flags $flag" 19259 fi 19260 done 19261 if test -n "$output_flags"; then 19262 printf "%s" "${output_flags# }" 19263 fi 19264`" 19265 19266 ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default" 19267if test "x$ac_cv_header_sasl_sasl_h" = xyes; then : 19268 ac_fn_c_check_header_mongrel "$LINENO" "sasl/saslutil.h" "ac_cv_header_sasl_saslutil_h" "$ac_includes_default" 19269if test "x$ac_cv_header_sasl_saslutil_h" = xyes; then : 19270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prop_get in -lsasl2" >&5 19271$as_echo_n "checking for prop_get in -lsasl2... " >&6; } 19272if ${ac_cv_lib_sasl2_prop_get+:} false; then : 19273 $as_echo_n "(cached) " >&6 19274else 19275 ac_check_lib_save_LIBS=$LIBS 19276LIBS="-lsasl2 $LIBS" 19277cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19278/* end confdefs.h. */ 19279 19280/* Override any GCC internal prototype to avoid an error. 19281 Use char because int might match the return type of a GCC 19282 builtin and then its argument prototype would still apply. */ 19283#ifdef __cplusplus 19284extern "C" 19285#endif 19286char prop_get (); 19287int 19288main () 19289{ 19290return prop_get (); 19291 ; 19292 return 0; 19293} 19294_ACEOF 19295if ac_fn_c_try_link "$LINENO"; then : 19296 ac_cv_lib_sasl2_prop_get=yes 19297else 19298 ac_cv_lib_sasl2_prop_get=no 19299fi 19300rm -f core conftest.err conftest.$ac_objext \ 19301 conftest$ac_exeext conftest.$ac_ext 19302LIBS=$ac_check_lib_save_LIBS 19303fi 19304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_prop_get" >&5 19305$as_echo "$ac_cv_lib_sasl2_prop_get" >&6; } 19306if test "x$ac_cv_lib_sasl2_prop_get" = xyes; then : 19307 svn_lib_sasl=yes 19308else 19309 svn_lib_sasl=no 19310fi 19311 19312else 19313 svn_lib_sasl=no 19314fi 19315 19316 19317else 19318 svn_lib_sasl=no 19319fi 19320 19321 19322 fi 19323 19324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for availability of Cyrus SASL v2" >&5 19325$as_echo_n "checking for availability of Cyrus SASL v2... " >&6; } 19326 if test "$svn_lib_sasl" = "yes"; then 19327 SVN_SASL_LIBS="-lsasl2" 19328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19329$as_echo "yes" >&6; } 19330 else 19331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19332$as_echo "no" >&6; } 19333 19334 if test "$required" = "yes"; then 19335 as_fn_error $? "Could not find Cyrus SASL v2" "$LINENO" 5 19336 fi 19337 19338 SVN_SASL_INCLUDES="" 19339 LDFLAGS="$saved_LDFLAGS" 19340 fi 19341 19342 CPPFLAGS="$saved_CPPFLAGS" 19343 fi 19344 19345 19346 19347 19348 19349if test "$svn_lib_sasl" = "yes"; then 19350 19351$as_echo "#define SVN_HAVE_SASL 1" >>confdefs.h 19352 19353fi 19354 19355 19356 19357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O dynamic module iteration functions" >&5 19358$as_echo_n "checking for Mach-O dynamic module iteration functions... " >&6; } 19359 if test "$cross_compiling" = yes; then : 19360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19361$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19362as_fn_error $? "cannot run test program while cross compiling 19363See \`config.log' for more details" "$LINENO" 5; } 19364else 19365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19366/* end confdefs.h. */ 19367 19368 #include <mach-o/dyld.h> 19369 #include <mach-o/loader.h> 19370 19371int 19372main () 19373{ 19374 19375 const struct mach_header *header = _dyld_get_image_header(0); 19376 const char *name = _dyld_get_image_name(0); 19377 if (name && header) return 0; 19378 return 1; 19379 19380 ; 19381 return 0; 19382} 19383_ACEOF 19384if ac_fn_c_try_run "$LINENO"; then : 19385 19386 19387$as_echo "#define SVN_HAVE_MACHO_ITERATE 1" >>confdefs.h 19388 19389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19390$as_echo "yes" >&6; } 19391 19392else 19393 19394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19395$as_echo "no" >&6; } 19396 19397fi 19398rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19399 conftest.$ac_objext conftest.beam conftest.$ac_ext 19400fi 19401 19402 19403 19404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS property list utilities" >&5 19405$as_echo_n "checking for Mac OS property list utilities... " >&6; } 19406 19407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19408/* end confdefs.h. */ 19409 19410 #include <AvailabilityMacros.h> 19411 #if !defined(MAC_OS_X_VERSION_MAX_ALLOWED) \ 19412 || !defined(MAC_OS_X_VERSION_10_0) \ 19413 || (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_0) 19414 #error ProperyList API unavailable. 19415 #endif 19416 19417int 19418main () 19419{ 19420 19421 ; 19422 return 0; 19423} 19424_ACEOF 19425if ac_fn_c_try_compile "$LINENO"; then : 19426 19427 SVN_MACOS_PLIST_LIBS="-framework CoreFoundation" 19428 19429 19430$as_echo "#define SVN_HAVE_MACOS_PLIST 1" >>confdefs.h 19431 19432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19433$as_echo "yes" >&6; } 19434 19435else 19436 19437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19438$as_echo "no" >&6; } 19439 19440fi 19441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19442 19443 19444 # Check whether --enable-keychain was given. 19445if test "${enable_keychain+set}" = set; then : 19446 enableval=$enable_keychain; enable_keychain=$enableval 19447else 19448 enable_keychain=yes 19449fi 19450 19451 19452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS KeyChain Services" >&5 19453$as_echo_n "checking for Mac OS KeyChain Services... " >&6; } 19454 19455 if test "$enable_keychain" = "yes"; then 19456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19457/* end confdefs.h. */ 19458 19459 #include <AvailabilityMacros.h> 19460 #if !defined(MAC_OS_X_VERSION_MAX_ALLOWED) \ 19461 || !defined(MAC_OS_X_VERSION_10_2) \ 19462 || (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_2) 19463 #error KeyChain API unavailable. 19464 #endif 19465 19466int 19467main () 19468{ 19469 19470 ; 19471 return 0; 19472} 19473_ACEOF 19474if ac_fn_c_try_compile "$LINENO"; then : 19475 19476 SVN_MACOS_KEYCHAIN_LIBS="-framework Security -framework CoreServices" 19477 19478 19479$as_echo "#define SVN_HAVE_KEYCHAIN_SERVICES 1" >>confdefs.h 19480 19481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19482$as_echo "yes" >&6; } 19483 19484else 19485 19486 enable_keychain=no 19487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19488$as_echo "no" >&6; } 19489 19490fi 19491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19492 fi 19493 19494 19495 19496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether APR has support for DSOs" >&5 19497$as_echo_n "checking whether APR has support for DSOs... " >&6; } 19498old_CPPFLAGS="$CPPFLAGS" 19499CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES" 19500cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19501/* end confdefs.h. */ 19502 19503#include <apr.h> 19504#if !APR_HAS_DSO 19505#error 19506#endif 19507_ACEOF 19508if ac_fn_c_try_cpp "$LINENO"; then : 19509 APR_HAS_DSO="yes" 19510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19511$as_echo "yes" >&6; } 19512else 19513 APR_HAS_DSO="no" 19514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19515$as_echo "no" >&6; } 19516fi 19517rm -f conftest.err conftest.i conftest.$ac_ext 19518CPPFLAGS="$old_CPPFLAGS" 19519 19520 19521 19522if test -n "$PKG_CONFIG"; then 19523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus .pc file" >&5 19524$as_echo_n "checking for D-Bus .pc file... " >&6; } 19525 if $PKG_CONFIG --exists dbus-1; then 19526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19527$as_echo "yes" >&6; } 19528 old_CPPFLAGS="$CPPFLAGS" 19529 old_LIBS="$LIBS" 19530 DBUS_CPPFLAGS="`$PKG_CONFIG --cflags dbus-1`" 19531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D-Bus version" >&5 19532$as_echo_n "checking D-Bus version... " >&6; } 19533 DBUS_VERSION="`$PKG_CONFIG --modversion dbus-1`" 19534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_VERSION" >&5 19535$as_echo "$DBUS_VERSION" >&6; } 19536 # D-Bus 0.* requires DBUS_API_SUBJECT_TO_CHANGE 19537 if test -n "`echo "$DBUS_VERSION" | $EGREP '^0\.[[:digit:]]+'`"; then 19538 DBUS_CPPFLAGS="$DBUS_CPPFLAGS -DDBUS_API_SUBJECT_TO_CHANGE" 19539 fi 19540 DBUS_LIBS="`$PKG_CONFIG --libs dbus-1`" 19541 CPPFLAGS="$CPPFLAGS $DBUS_CPPFLAGS" 19542 LIBS="$LIBS $DBUS_LIBS" 19543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus" >&5 19544$as_echo_n "checking for D-Bus... " >&6; } 19545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19546/* end confdefs.h. */ 19547 19548#include <dbus/dbus.h> 19549int main() 19550{dbus_bus_get(DBUS_BUS_SESSION, NULL);} 19551_ACEOF 19552if ac_fn_c_try_link "$LINENO"; then : 19553 HAVE_DBUS="yes" 19554else 19555 HAVE_DBUS="no" 19556fi 19557rm -f core conftest.err conftest.$ac_objext \ 19558 conftest$ac_exeext conftest.$ac_ext 19559 if test "$HAVE_DBUS" = "yes"; then 19560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19561$as_echo "yes" >&6; } 19562 else 19563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19564$as_echo "no" >&6; } 19565 fi 19566 CPPFLAGS="$old_CPPFLAGS" 19567 LIBS="$old_LIBS" 19568 else 19569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19570$as_echo "no" >&6; } 19571 fi 19572fi 19573 19574 19575 19576# Check whether --with-gpg_agent was given. 19577if test "${with_gpg_agent+set}" = set; then : 19578 withval=$with_gpg_agent; 19579else 19580 with_gpg_agent=yes 19581fi 19582 19583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support GPG-Agent" >&5 19584$as_echo_n "checking whether to support GPG-Agent... " >&6; } 19585if test "$with_gpg_agent" = "yes"; then 19586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19587$as_echo "yes" >&6; } 19588 19589$as_echo "#define SVN_HAVE_GPG_AGENT 1" >>confdefs.h 19590 19591else 19592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19593$as_echo "no" >&6; } 19594fi 19595 19596 19597 19598 19599 19600# Check whether --with-old_gnome_keyring was given. 19601if test "${with_old_gnome_keyring+set}" = set; then : 19602 withval=$with_old_gnome_keyring; with_old_gnome_keyring="$withval" 19603else 19604 with_old_gnome_keyring=no 19605fi 19606 19607 19608found_old_gnome_keyring=no 19609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for old GNOME Keyring" >&5 19610$as_echo_n "checking whether to look for old GNOME Keyring... " >&6; } 19611if test "$with_old_gnome_keyring" != "no"; then 19612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19613$as_echo "yes" >&6; } 19614 case "$host" in 19615 *-*-darwin*) 19616 if test "$with_old_gnome_keyring" = "yes"; then 19617 as_fn_error $? "--with-old-gnome-keyring is not supported on Mac OS X." "$LINENO" 5 19618 else 19619 with_old_gnome_keyring=no 19620 fi 19621 ;; 19622 *) 19623 if test "$svn_enable_shared" = "yes"; then 19624 if test "$APR_HAS_DSO" = "yes"; then 19625 if test -n "$PKG_CONFIG"; then 19626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLib and GNOME Keyring .pc files" >&5 19627$as_echo_n "checking for GLib and GNOME Keyring .pc files... " >&6; } 19628 if $PKG_CONFIG --exists glib-2.0 gnome-keyring-1; then 19629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19630$as_echo "yes" >&6; } 19631 old_CPPFLAGS="$CPPFLAGS" 19632 SVN_GNOME_KEYRING_INCLUDES="`$PKG_CONFIG --cflags glib-2.0 gnome-keyring-1`" 19633 CPPFLAGS="$CPPFLAGS $SVN_GNOME_KEYRING_INCLUDES" 19634 ac_fn_c_check_header_mongrel "$LINENO" "gnome-keyring.h" "ac_cv_header_gnome_keyring_h" "$ac_includes_default" 19635if test "x$ac_cv_header_gnome_keyring_h" = xyes; then : 19636 found_old_gnome_keyring=yes 19637else 19638 found_old_gnome_keyring=no 19639fi 19640 19641 19642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNOME Keyring" >&5 19643$as_echo_n "checking for GNOME Keyring... " >&6; } 19644 if test "$found_old_gnome_keyring" = "yes"; then 19645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19646$as_echo "yes" >&6; } 19647 19648$as_echo "#define SVN_HAVE_GNOME_KEYRING 1" >>confdefs.h 19649 19650 CPPFLAGS="$old_CPPFLAGS" 19651 SVN_GNOME_KEYRING_LIBS="`$PKG_CONFIG --libs glib-2.0 gnome-keyring-1`" 19652 SVN_GNOME_KEYRING_PCLIBS="glib-2.0, gnome-keyring-1" 19653 else 19654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19655$as_echo "no" >&6; } 19656 if test "$with_old_gnome_keyring" = "yes"; then 19657 as_fn_error $? "cannot find GNOME Keyring" "$LINENO" 5 19658 fi 19659 fi 19660 else 19661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19662$as_echo "no" >&6; } 19663 if test "$with_old_gnome_keyring" = "yes"; then 19664 as_fn_error $? "cannot find GLib and GNOME Keyring .pc files." "$LINENO" 5 19665 else 19666 with_old_gnome_keyring=no 19667 fi 19668 fi 19669 else 19670 if test "$with_old_gnome_keyring" = "yes"; then 19671 as_fn_error $? "cannot find pkg-config. GNOME Keyring requires this." "$LINENO" 5 19672 else 19673 with_old_gnome_keyring=no 19674 fi 19675 fi 19676 else 19677 if test "$with_old_gnome_keyring" = "yes"; then 19678 as_fn_error $? "APR does not have support for DSOs. GNOME Keyring requires this." "$LINENO" 5 19679 else 19680 with_old_gnome_keyring=no 19681 fi 19682 fi 19683 else 19684 if test "$with_old_gnome_keyring" = "yes"; then 19685 as_fn_error $? "--with-old-gnome-keyring conflicts with --disable-shared" "$LINENO" 5 19686 else 19687 with_old_gnome_keyring=no 19688 fi 19689 fi 19690 ;; 19691 esac 19692else 19693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19694$as_echo "no" >&6; } 19695fi 19696 19697 19698 19699 19700 19701# Check whether --with-gnome_keyring was given. 19702if test "${with_gnome_keyring+set}" = set; then : 19703 withval=$with_gnome_keyring; with_gnome_keyring="$withval" 19704else 19705 with_gnome_keyring=auto 19706fi 19707 19708 19709 found_gnome_keyring="no" 19710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for GNOME Keyring" >&5 19711$as_echo_n "checking whether to look for GNOME Keyring... " >&6; } 19712 if test "$found_old_gnome_keyring" = "yes" && test "$with_gnome_keyring" = "auto"; then 19713 with_gnome_keyring="no" 19714 fi 19715 if test "$with_gnome_keyring" != "no"; then 19716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19717$as_echo "yes" >&6; } 19718 case "$host" in 19719 *-*-darwin*) 19720 if test "$with_gnome_keyring" = "yes"; then 19721 as_fn_error $? "--with-gnome-keyring is not supported on Mac OS X." "$LINENO" 5 19722 fi 19723 ;; 19724 *) 19725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNOME Keyring" >&5 19726$as_echo_n "checking for GNOME Keyring... " >&6; } 19727 if test "$found_old_gnome_keyring" = "no"; then 19728 if test "$svn_enable_shared" = "yes"; then 19729 if test "$APR_HAS_DSO" = "yes"; then 19730 if test -n "$PKG_CONFIG"; then 19731 if $PKG_CONFIG --exists libsecret-1; then 19732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19733$as_echo "yes" >&6; } 19734 19735$as_echo "#define SVN_HAVE_LIBSECRET 1" >>confdefs.h 19736 19737 SVN_GNOME_KEYRING_INCLUDES="`$PKG_CONFIG --cflags libsecret-1`" 19738 SVN_GNOME_KEYRING_LIBS="`$PKG_CONFIG --libs libsecret-1`" 19739 SVN_GNOME_KEYRING_PCLIBS="libsecret-1" 19740 found_gnome_keyring="yes" 19741 else 19742 if test "$with_gnome_keyring" = "yes"; then 19743 as_fn_error $? "cannot find libsecret" "$LINENO" 5 19744 fi 19745 fi 19746 else 19747 if test "$with_gnome_keyring" = "yes"; then 19748 as_fn_error $? "cannot find pkg-config" "$LINENO" 5 19749 fi 19750 fi 19751 else 19752 if test "$with_gnome_keyring" = "yes"; then 19753 as_fn_error $? "APR does not support DSOs" "$LINENO" 5 19754 fi 19755 fi 19756 else 19757 if test "$with_gnome_keyring" = "yes"; then 19758 as_fn_error $? "--with-gnome-keyring conflicts with --disable-shared" "$LINENO" 5 19759 fi 19760 fi 19761 else 19762 if test "$with_gnome_keyring" = "yes"; then 19763 as_fn_error $? "--with-gnome-keyring conflicts with --with-old-gnome-keyring" "$LINENO" 5 19764 fi 19765 fi 19766 if test "$found_gnome_keyring" = "no"; then 19767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19768$as_echo "no" >&6; } 19769 fi 19770 ;; 19771 esac 19772 else 19773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19774$as_echo "no" >&6; } 19775 fi 19776 19777 19778 19779 19780 19781# Check whether --enable-ev2-impl was given. 19782if test "${enable_ev2_impl+set}" = set; then : 19783 enableval=$enable_ev2_impl; enable_ev2_impl=$enableval 19784else 19785 enable_ev2_impl=no 19786fi 19787 19788if test "$enable_ev2_impl" = "yes"; then 19789 19790$as_echo "#define ENABLE_EV2_IMPL 1" >>confdefs.h 19791 19792fi 19793 19794 19795 19796# Check whether --enable-nls was given. 19797if test "${enable_nls+set}" = set; then : 19798 enableval=$enable_nls; enable_nls=$enableval 19799else 19800 enable_nls=yes 19801fi 19802 19803 19804USE_NLS="no" 19805SVN_INTL_LIBS="" 19806if test "$enable_nls" = "yes"; then 19807 # Extract the first word of "msgfmt", so it can be a program name with args. 19808set dummy msgfmt; ac_word=$2 19809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19810$as_echo_n "checking for $ac_word... " >&6; } 19811if ${ac_cv_path_MSGFMT+:} false; then : 19812 $as_echo_n "(cached) " >&6 19813else 19814 case $MSGFMT in 19815 [\\/]* | ?:[\\/]*) 19816 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 19817 ;; 19818 *) 19819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19820for as_dir in $PATH 19821do 19822 IFS=$as_save_IFS 19823 test -z "$as_dir" && as_dir=. 19824 for ac_exec_ext in '' $ac_executable_extensions; do 19825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19826 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" 19827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19828 break 2 19829 fi 19830done 19831 done 19832IFS=$as_save_IFS 19833 19834 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="none" 19835 ;; 19836esac 19837fi 19838MSGFMT=$ac_cv_path_MSGFMT 19839if test -n "$MSGFMT"; then 19840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 19841$as_echo "$MSGFMT" >&6; } 19842else 19843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19844$as_echo "no" >&6; } 19845fi 19846 19847 19848 # Extract the first word of "msgmerge", so it can be a program name with args. 19849set dummy msgmerge; ac_word=$2 19850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19851$as_echo_n "checking for $ac_word... " >&6; } 19852if ${ac_cv_path_MSGMERGE+:} false; then : 19853 $as_echo_n "(cached) " >&6 19854else 19855 case $MSGMERGE in 19856 [\\/]* | ?:[\\/]*) 19857 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 19858 ;; 19859 *) 19860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19861for as_dir in $PATH 19862do 19863 IFS=$as_save_IFS 19864 test -z "$as_dir" && as_dir=. 19865 for ac_exec_ext in '' $ac_executable_extensions; do 19866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19867 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext" 19868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19869 break 2 19870 fi 19871done 19872 done 19873IFS=$as_save_IFS 19874 19875 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE="none" 19876 ;; 19877esac 19878fi 19879MSGMERGE=$ac_cv_path_MSGMERGE 19880if test -n "$MSGMERGE"; then 19881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 19882$as_echo "$MSGMERGE" >&6; } 19883else 19884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19885$as_echo "no" >&6; } 19886fi 19887 19888 19889 # Extract the first word of "xgettext", so it can be a program name with args. 19890set dummy xgettext; ac_word=$2 19891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19892$as_echo_n "checking for $ac_word... " >&6; } 19893if ${ac_cv_path_XGETTEXT+:} false; then : 19894 $as_echo_n "(cached) " >&6 19895else 19896 case $XGETTEXT in 19897 [\\/]* | ?:[\\/]*) 19898 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 19899 ;; 19900 *) 19901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19902for as_dir in $PATH 19903do 19904 IFS=$as_save_IFS 19905 test -z "$as_dir" && as_dir=. 19906 for ac_exec_ext in '' $ac_executable_extensions; do 19907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19908 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext" 19909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19910 break 2 19911 fi 19912done 19913 done 19914IFS=$as_save_IFS 19915 19916 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT="none" 19917 ;; 19918esac 19919fi 19920XGETTEXT=$ac_cv_path_XGETTEXT 19921if test -n "$XGETTEXT"; then 19922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 19923$as_echo "$XGETTEXT" >&6; } 19924else 19925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19926$as_echo "no" >&6; } 19927fi 19928 19929 19930 if test "$MSGFMT" != "none"; then 19931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bindtextdomain" >&5 19932$as_echo_n "checking for library containing bindtextdomain... " >&6; } 19933if ${ac_cv_search_bindtextdomain+:} false; then : 19934 $as_echo_n "(cached) " >&6 19935else 19936 ac_func_search_save_LIBS=$LIBS 19937cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19938/* end confdefs.h. */ 19939 19940/* Override any GCC internal prototype to avoid an error. 19941 Use char because int might match the return type of a GCC 19942 builtin and then its argument prototype would still apply. */ 19943#ifdef __cplusplus 19944extern "C" 19945#endif 19946char bindtextdomain (); 19947int 19948main () 19949{ 19950return bindtextdomain (); 19951 ; 19952 return 0; 19953} 19954_ACEOF 19955for ac_lib in '' intl; do 19956 if test -z "$ac_lib"; then 19957 ac_res="none required" 19958 else 19959 ac_res=-l$ac_lib 19960 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19961 fi 19962 if ac_fn_c_try_link "$LINENO"; then : 19963 ac_cv_search_bindtextdomain=$ac_res 19964fi 19965rm -f core conftest.err conftest.$ac_objext \ 19966 conftest$ac_exeext 19967 if ${ac_cv_search_bindtextdomain+:} false; then : 19968 break 19969fi 19970done 19971if ${ac_cv_search_bindtextdomain+:} false; then : 19972 19973else 19974 ac_cv_search_bindtextdomain=no 19975fi 19976rm conftest.$ac_ext 19977LIBS=$ac_func_search_save_LIBS 19978fi 19979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bindtextdomain" >&5 19980$as_echo "$ac_cv_search_bindtextdomain" >&6; } 19981ac_res=$ac_cv_search_bindtextdomain 19982if test "$ac_res" != no; then : 19983 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19984 19985 # in case libintl needs to be linked explicitly, 19986 # $ac_cv_search_bindtextdomain contains -l linker flags 19987 if echo "$ac_cv_search_bindtextdomain" | grep '^-l' >/dev/null 19988 then 19989 SVN_INTL_LIBS="$ac_cv_search_bindtextdomain" 19990 fi 19991 19992else 19993 19994 enable_nls="no" 19995 19996fi 19997 19998 if test "$enable_nls" = "no"; then 19999 # Destroy the cached result so we can test again 20000 unset ac_cv_search_bindtextdomain 20001 # On some systems, libintl needs libiconv to link properly, 20002 # so try again with -liconv. 20003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bindtextdomain" >&5 20004$as_echo_n "checking for library containing bindtextdomain... " >&6; } 20005if ${ac_cv_search_bindtextdomain+:} false; then : 20006 $as_echo_n "(cached) " >&6 20007else 20008 ac_func_search_save_LIBS=$LIBS 20009cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20010/* end confdefs.h. */ 20011 20012/* Override any GCC internal prototype to avoid an error. 20013 Use char because int might match the return type of a GCC 20014 builtin and then its argument prototype would still apply. */ 20015#ifdef __cplusplus 20016extern "C" 20017#endif 20018char bindtextdomain (); 20019int 20020main () 20021{ 20022return bindtextdomain (); 20023 ; 20024 return 0; 20025} 20026_ACEOF 20027for ac_lib in '' intl; do 20028 if test -z "$ac_lib"; then 20029 ac_res="none required" 20030 else 20031 ac_res=-l$ac_lib 20032 LIBS="-l$ac_lib -liconv $ac_func_search_save_LIBS" 20033 fi 20034 if ac_fn_c_try_link "$LINENO"; then : 20035 ac_cv_search_bindtextdomain=$ac_res 20036fi 20037rm -f core conftest.err conftest.$ac_objext \ 20038 conftest$ac_exeext 20039 if ${ac_cv_search_bindtextdomain+:} false; then : 20040 break 20041fi 20042done 20043if ${ac_cv_search_bindtextdomain+:} false; then : 20044 20045else 20046 ac_cv_search_bindtextdomain=no 20047fi 20048rm conftest.$ac_ext 20049LIBS=$ac_func_search_save_LIBS 20050fi 20051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bindtextdomain" >&5 20052$as_echo "$ac_cv_search_bindtextdomain" >&6; } 20053ac_res=$ac_cv_search_bindtextdomain 20054if test "$ac_res" != no; then : 20055 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20056 20057 enable_nls="yes" 20058 if echo "$ac_cv_search_bindtextdomain" | grep '^-l' >/dev/null 20059 then 20060 SVN_INTL_LIBS="$ac_cv_search_bindtextdomain" 20061 fi 20062 # This is here so that -liconv ends up in LIBS 20063 # if it worked with -liconv. 20064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5 20065$as_echo_n "checking for libiconv_open in -liconv... " >&6; } 20066if ${ac_cv_lib_iconv_libiconv_open+:} false; then : 20067 $as_echo_n "(cached) " >&6 20068else 20069 ac_check_lib_save_LIBS=$LIBS 20070LIBS="-liconv $LIBS" 20071cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20072/* end confdefs.h. */ 20073 20074/* Override any GCC internal prototype to avoid an error. 20075 Use char because int might match the return type of a GCC 20076 builtin and then its argument prototype would still apply. */ 20077#ifdef __cplusplus 20078extern "C" 20079#endif 20080char libiconv_open (); 20081int 20082main () 20083{ 20084return libiconv_open (); 20085 ; 20086 return 0; 20087} 20088_ACEOF 20089if ac_fn_c_try_link "$LINENO"; then : 20090 ac_cv_lib_iconv_libiconv_open=yes 20091else 20092 ac_cv_lib_iconv_libiconv_open=no 20093fi 20094rm -f core conftest.err conftest.$ac_objext \ 20095 conftest$ac_exeext conftest.$ac_ext 20096LIBS=$ac_check_lib_save_LIBS 20097fi 20098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5 20099$as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; } 20100if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then : 20101 cat >>confdefs.h <<_ACEOF 20102#define HAVE_LIBICONV 1 20103_ACEOF 20104 20105 LIBS="-liconv $LIBS" 20106 20107fi 20108 20109 20110else 20111 20112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bindtextdomain() not found. Disabling NLS." >&5 20113$as_echo "$as_me: WARNING: bindtextdomain() not found. Disabling NLS." >&2;} 20114 enable_nls="no" 20115 20116fi 20117 20118 fi 20119 if test "$enable_nls" = "yes"; then 20120 20121$as_echo "#define ENABLE_NLS 1" >>confdefs.h 20122 20123 USE_NLS="yes" 20124 fi 20125 fi 20126fi 20127 20128 20129 20130 20131 20132GETTEXT_CODESET=\# 20133NO_GETTEXT_CODESET=\# 20134if test $USE_NLS = "yes"; then 20135 for ac_func in bind_textdomain_codeset 20136do : 20137 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 20138if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : 20139 cat >>confdefs.h <<_ACEOF 20140#define HAVE_BIND_TEXTDOMAIN_CODESET 1 20141_ACEOF 20142 GETTEXT_CODESET="" 20143else 20144 NO_GETTEXT_CODESET="" 20145fi 20146done 20147 20148fi 20149 20150 20151 20152# Check if we are using GNU gettext. 20153GNU_GETTEXT=no 20154MSGFMTFLAGS='' 20155if test $USE_NLS = "yes"; then 20156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we are using GNU gettext" >&5 20157$as_echo_n "checking if we are using GNU gettext... " >&6; } 20158 if $MSGFMT --version 2>&1 | $EGREP GNU > /dev/null; then 20159 GNU_GETTEXT=yes 20160 MSGFMTFLAGS='-c' 20161 fi 20162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNU_GETTEXT" >&5 20163$as_echo "$GNU_GETTEXT" >&6; } 20164fi 20165 20166 20167 20168libmagic_found=no 20169 20170 20171# Check whether --with-libmagic was given. 20172if test "${with_libmagic+set}" = set; then : 20173 withval=$with_libmagic; 20174 if test "$withval" = "yes" ; then 20175 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default" 20176if test "x$ac_cv_header_magic_h" = xyes; then : 20177 20178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5 20179$as_echo_n "checking for magic_open in -lmagic... " >&6; } 20180if ${ac_cv_lib_magic_magic_open+:} false; then : 20181 $as_echo_n "(cached) " >&6 20182else 20183 ac_check_lib_save_LIBS=$LIBS 20184LIBS="-lmagic $LIBS" 20185cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20186/* end confdefs.h. */ 20187 20188/* Override any GCC internal prototype to avoid an error. 20189 Use char because int might match the return type of a GCC 20190 builtin and then its argument prototype would still apply. */ 20191#ifdef __cplusplus 20192extern "C" 20193#endif 20194char magic_open (); 20195int 20196main () 20197{ 20198return magic_open (); 20199 ; 20200 return 0; 20201} 20202_ACEOF 20203if ac_fn_c_try_link "$LINENO"; then : 20204 ac_cv_lib_magic_magic_open=yes 20205else 20206 ac_cv_lib_magic_magic_open=no 20207fi 20208rm -f core conftest.err conftest.$ac_objext \ 20209 conftest$ac_exeext conftest.$ac_ext 20210LIBS=$ac_check_lib_save_LIBS 20211fi 20212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5 20213$as_echo "$ac_cv_lib_magic_magic_open" >&6; } 20214if test "x$ac_cv_lib_magic_magic_open" = xyes; then : 20215 libmagic_found="builtin" 20216fi 20217 20218 20219fi 20220 20221 20222 libmagic_prefix="the default locations" 20223 elif test "$withval" != "no"; then 20224 libmagic_prefix=$withval 20225 save_cppflags="$CPPFLAGS" 20226 CPPFLAGS="$CPPFLAGS -I$libmagic_prefix/include" 20227 for ac_header in magic.h 20228do : 20229 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default" 20230if test "x$ac_cv_header_magic_h" = xyes; then : 20231 cat >>confdefs.h <<_ACEOF 20232#define HAVE_MAGIC_H 1 20233_ACEOF 20234 20235 save_ldflags="$LDFLAGS" 20236 LDFLAGS="-L$libmagic_prefix/lib $LDFLAGS" 20237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5 20238$as_echo_n "checking for magic_open in -lmagic... " >&6; } 20239if ${ac_cv_lib_magic_magic_open+:} false; then : 20240 $as_echo_n "(cached) " >&6 20241else 20242 ac_check_lib_save_LIBS=$LIBS 20243LIBS="-lmagic $LIBS" 20244cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20245/* end confdefs.h. */ 20246 20247/* Override any GCC internal prototype to avoid an error. 20248 Use char because int might match the return type of a GCC 20249 builtin and then its argument prototype would still apply. */ 20250#ifdef __cplusplus 20251extern "C" 20252#endif 20253char magic_open (); 20254int 20255main () 20256{ 20257return magic_open (); 20258 ; 20259 return 0; 20260} 20261_ACEOF 20262if ac_fn_c_try_link "$LINENO"; then : 20263 ac_cv_lib_magic_magic_open=yes 20264else 20265 ac_cv_lib_magic_magic_open=no 20266fi 20267rm -f core conftest.err conftest.$ac_objext \ 20268 conftest$ac_exeext conftest.$ac_ext 20269LIBS=$ac_check_lib_save_LIBS 20270fi 20271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5 20272$as_echo "$ac_cv_lib_magic_magic_open" >&6; } 20273if test "x$ac_cv_lib_magic_magic_open" = xyes; then : 20274 libmagic_found="yes" 20275fi 20276 20277 LDFLAGS="$save_ldflags" 20278 20279fi 20280 20281done 20282 20283 CPPFLAGS="$save_cppflags" 20284 fi 20285 if test "$withval" != "no" && test "$libmagic_found" = "no"; then 20286 as_fn_error $? "--with-libmagic requested, but libmagic not found at $libmagic_prefix" "$LINENO" 5 20287 fi 20288 20289else 20290 20291 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default" 20292if test "x$ac_cv_header_magic_h" = xyes; then : 20293 20294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5 20295$as_echo_n "checking for magic_open in -lmagic... " >&6; } 20296if ${ac_cv_lib_magic_magic_open+:} false; then : 20297 $as_echo_n "(cached) " >&6 20298else 20299 ac_check_lib_save_LIBS=$LIBS 20300LIBS="-lmagic $LIBS" 20301cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20302/* end confdefs.h. */ 20303 20304/* Override any GCC internal prototype to avoid an error. 20305 Use char because int might match the return type of a GCC 20306 builtin and then its argument prototype would still apply. */ 20307#ifdef __cplusplus 20308extern "C" 20309#endif 20310char magic_open (); 20311int 20312main () 20313{ 20314return magic_open (); 20315 ; 20316 return 0; 20317} 20318_ACEOF 20319if ac_fn_c_try_link "$LINENO"; then : 20320 ac_cv_lib_magic_magic_open=yes 20321else 20322 ac_cv_lib_magic_magic_open=no 20323fi 20324rm -f core conftest.err conftest.$ac_objext \ 20325 conftest$ac_exeext conftest.$ac_ext 20326LIBS=$ac_check_lib_save_LIBS 20327fi 20328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5 20329$as_echo "$ac_cv_lib_magic_magic_open" >&6; } 20330if test "x$ac_cv_lib_magic_magic_open" = xyes; then : 20331 libmagic_found="builtin" 20332fi 20333 20334 20335fi 20336 20337 20338 20339fi 20340 20341 20342if test "$libmagic_found" != "no"; then 20343 20344$as_echo "#define SVN_HAVE_LIBMAGIC 1" >>confdefs.h 20345 20346 SVN_MAGIC_LIBS="-lmagic" 20347fi 20348 20349if test "$libmagic_found" = "yes"; then 20350 SVN_MAGIC_INCLUDES="-I$libmagic_prefix/include" 20351 LDFLAGS="$LDFLAGS ` 20352 input_flags="-L$libmagic_prefix/lib" 20353 output_flags="" 20354 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 20355 for flag in $input_flags; do 20356 filter="no" 20357 for dir in $filtered_dirs; do 20358 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 20359 filter="yes" 20360 break 20361 fi 20362 done 20363 if test "$filter" = "no"; then 20364 output_flags="$output_flags $flag" 20365 fi 20366 done 20367 if test -n "$output_flags"; then 20368 printf "%s" "${output_flags# }" 20369 fi 20370`" 20371fi 20372 20373 20374 20375 20376 20377 20378# Check whether --with-kwallet was given. 20379if test "${with_kwallet+set}" = set; then : 20380 withval=$with_kwallet; svn_lib_kwallet="$withval" 20381else 20382 svn_lib_kwallet=no 20383fi 20384 20385 20386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for KWallet" >&5 20387$as_echo_n "checking whether to look for KWallet... " >&6; } 20388 if test "$svn_lib_kwallet" != "no"; then 20389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20390$as_echo "yes" >&6; } 20391 case "$host" in 20392 *-*-darwin*) 20393 as_fn_error $? "--with-kwallet is not supported on Mac OS X." "$LINENO" 5 20394 ;; 20395 *) 20396 if test "$svn_enable_shared" = "yes"; then 20397 if test "$APR_HAS_DSO" = "yes"; then 20398 if test -n "$PKG_CONFIG"; then 20399 if test "$HAVE_DBUS" = "yes"; then 20400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt" >&5 20401$as_echo_n "checking for Qt... " >&6; } 20402 if $PKG_CONFIG --exists Qt5Core Qt5DBus Qt5Gui; then 20403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Qt5" >&5 20404$as_echo "yes, Qt5" >&6; } 20405 qt_pkg_config_names="Qt5Core Qt5DBus Qt5Gui" 20406 kde_config_name="kf5-config" 20407 kde_inc_names="KF5/KWallet KF5/KCoreAddons KF5/KI18n" 20408 kde_lib_names="-lKF5Wallet -lKF5I18n -lKF5CoreAddons -lQt5Gui -lQt5DBus -lQt5Core" 20409 elif $PKG_CONFIG --exists QtCore QtDBus QtGui; then 20410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Qt4" >&5 20411$as_echo "yes, Qt4" >&6; } 20412 qt_pkg_config_names="QtCore QtDBus QtGui" 20413 kde_config_name="kde4-config" 20414 kde_inc_names="/" 20415 kde_lib_names="-lkdeui -lkdecore -lQtGui -lQtDBus -lQtCore" 20416 fi 20417 if test -n "$qt_pkg_config_names"; then 20418 if test "$svn_lib_kwallet" != "yes"; then 20419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $kde_config_name" >&5 20420$as_echo_n "checking for $kde_config_name... " >&6; } 20421 KDE_CONFIG="$svn_lib_kwallet/bin/$kde_config_name" 20422 if test -f "$KDE_CONFIG" && test -x "$KDE_CONFIG"; then 20423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20424$as_echo "yes" >&6; } 20425 else 20426 if echo "$svn_lib_kwallet" | $EGREP ":" > /dev/null; then 20427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unneeded" >&5 20428$as_echo "unneeded" >&6; } 20429 KDE_CONFIG="unneeded" 20430 kde_incdir="`echo "$svn_lib_kwallet" | $SED -e "s/:.*//"`" 20431 kde_libdir="`echo "$svn_lib_kwallet" | $SED -e "s/.*://"`" 20432 else 20433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20434$as_echo "no" >&6; } 20435 KDE_CONFIG="" 20436 fi 20437 fi 20438 else 20439 # Extract the first word of "$kde_config_name", so it can be a program name with args. 20440set dummy $kde_config_name; ac_word=$2 20441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20442$as_echo_n "checking for $ac_word... " >&6; } 20443if ${ac_cv_path_KDE_CONFIG+:} false; then : 20444 $as_echo_n "(cached) " >&6 20445else 20446 case $KDE_CONFIG in 20447 [\\/]* | ?:[\\/]*) 20448 ac_cv_path_KDE_CONFIG="$KDE_CONFIG" # Let the user override the test with a path. 20449 ;; 20450 *) 20451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20452for as_dir in $PATH 20453do 20454 IFS=$as_save_IFS 20455 test -z "$as_dir" && as_dir=. 20456 for ac_exec_ext in '' $ac_executable_extensions; do 20457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20458 ac_cv_path_KDE_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20460 break 2 20461 fi 20462done 20463 done 20464IFS=$as_save_IFS 20465 20466 ;; 20467esac 20468fi 20469KDE_CONFIG=$ac_cv_path_KDE_CONFIG 20470if test -n "$KDE_CONFIG"; then 20471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE_CONFIG" >&5 20472$as_echo "$KDE_CONFIG" >&6; } 20473else 20474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20475$as_echo "no" >&6; } 20476fi 20477 20478 20479 if test -n "$KDE_CONFIG"; then 20480 kde_incdir="`$KDE_CONFIG --install include`" 20481 kde_libdir="`$KDE_CONFIG --install lib`" 20482 fi 20483 fi 20484 if test -n "$KDE_CONFIG"; then 20485 old_CXXFLAGS="$CXXFLAGS" 20486 old_LDFLAGS="$LDFLAGS" 20487 old_LIBS="$LIBS" 20488 CXXFLAGS="$CXXFLAGS $CXXMODEFLAGS" 20489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KWallet" >&5 20490$as_echo_n "checking for KWallet... " >&6; } 20491 for d in `$PKG_CONFIG --cflags $qt_pkg_config_names`; do 20492 if test -n "`echo "$d" | $EGREP -- '^-D[^[:space:]]*'`"; then 20493 CPPFLAGS="$CPPFLAGS $d" 20494 fi 20495 done 20496 qt_include_dirs="`$PKG_CONFIG --cflags-only-I $qt_pkg_config_names`" 20497 for kde_inc_name in $kde_inc_names; do 20498 kde_kwallet_includes="$kde_kwallet_includes -I$kde_incdir/$kde_inc_name" 20499 done 20500 SVN_KWALLET_INCLUDES="$DBUS_CPPFLAGS $qt_include_dirs $kde_kwallet_includes" 20501 qt_libs_other_options="`$PKG_CONFIG --libs-only-other $qt_pkg_config_names`" 20502 SVN_KWALLET_LIBS="$DBUS_LIBS $kde_lib_names $qt_libs_other_options" 20503 CXXFLAGS="$CXXFLAGS $SVN_KWALLET_INCLUDES -fPIC" 20504 LIBS="$LIBS $SVN_KWALLET_LIBS" 20505 qt_lib_dirs="`$PKG_CONFIG --libs-only-L $qt_pkg_config_names`" 20506 LDFLAGS="$old_LDFLAGS ` 20507 input_flags="$qt_lib_dirs -L$kde_libdir" 20508 output_flags="" 20509 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 20510 for flag in $input_flags; do 20511 filter="no" 20512 for dir in $filtered_dirs; do 20513 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 20514 filter="yes" 20515 break 20516 fi 20517 done 20518 if test "$filter" = "no"; then 20519 output_flags="$output_flags $flag" 20520 fi 20521 done 20522 if test -n "$output_flags"; then 20523 printf "%s" "${output_flags# }" 20524 fi 20525`" 20526 ac_ext=cpp 20527ac_cpp='$CXXCPP $CPPFLAGS' 20528ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20529ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20530ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20531 20532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20533/* end confdefs.h. */ 20534 20535#include <kwallet.h> 20536int main() 20537{KWallet::Wallet::walletList();} 20538_ACEOF 20539if ac_fn_cxx_try_link "$LINENO"; then : 20540 svn_lib_kwallet="yes" 20541else 20542 svn_lib_kwallet="no" 20543fi 20544rm -f core conftest.err conftest.$ac_objext \ 20545 conftest$ac_exeext conftest.$ac_ext 20546 ac_ext=c 20547ac_cpp='$CPP $CPPFLAGS' 20548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20550ac_compiler_gnu=$ac_cv_c_compiler_gnu 20551 20552 if test "$svn_lib_kwallet" = "yes"; then 20553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20554$as_echo "yes" >&6; } 20555 CXXFLAGS="$old_CXXFLAGS" 20556 LIBS="$old_LIBS" 20557 if test "$kde_config_name" = "kf5-config"; then 20558 20559$as_echo "#define SVN_HAVE_KF5 1" >>confdefs.h 20560 20561 fi 20562 else 20563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20564$as_echo "no" >&6; } 20565 as_fn_error $? "cannot find KWallet" "$LINENO" 5 20566 fi 20567 else 20568 as_fn_error $? "cannot find $kde_config_name" "$LINENO" 5 20569 fi 20570 else 20571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20572$as_echo "no" >&6; } 20573 as_fn_error $? "cannot find Qt" "$LINENO" 5 20574 fi 20575 else 20576 as_fn_error $? "cannot find D-Bus" "$LINENO" 5 20577 fi 20578 else 20579 as_fn_error $? "cannot find pkg-config" "$LINENO" 5 20580 fi 20581 else 20582 as_fn_error $? "APR does not have support for DSOs" "$LINENO" 5 20583 fi 20584 else 20585 as_fn_error $? "--with-kwallet conflicts with --disable-shared" "$LINENO" 5 20586 fi 20587 ;; 20588 esac 20589 else 20590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20591$as_echo "no" >&6; } 20592 fi 20593 20594 20595 20596 20597if test "$svn_lib_kwallet" = "yes"; then 20598 20599$as_echo "#define SVN_HAVE_KWALLET 1" >>confdefs.h 20600 20601fi 20602 20603# Check whether --enable-plaintext-password-storage was given. 20604if test "${enable_plaintext_password_storage+set}" = set; then : 20605 enableval=$enable_plaintext_password_storage; plaintext_passwordd_storage="$enableval" 20606else 20607 plaintext_passwordd_storage="no" 20608fi 20609 20610 20611if test "$plaintext_passwordd_storage" = "yes"; then 20612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Enabling plaintext password/passphrase storage" >&5 20613$as_echo "$as_me: WARNING: Enabling plaintext password/passphrase storage" >&2;} 20614else 20615 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling plaintext password/passphrase storage" >&5 20616$as_echo "$as_me: Disabling plaintext password/passphrase storage" >&6;} 20617 20618$as_echo "#define SVN_DISABLE_PLAINTEXT_PASSWORD_STORAGE 1" >>confdefs.h 20619 20620fi 20621 20622 20623INSTALL_STATIC_RULES="install-bin install-docs" 20624INSTALL_RULES="install-fsmod-lib install-ramod-lib install-lib install-include install-static" 20625INSTALL_RULES="$INSTALL_RULES $INSTALL_APACHE_RULE" 20626BUILD_RULES="fsmod-lib ramod-lib lib bin test sub-test $BUILD_APACHE_RULE tools" 20627 20628if test "$svn_lib_berkeley_db" = "yes"; then 20629 BUILD_RULES="$BUILD_RULES bdb-lib bdb-test" 20630 INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-fsmod-lib/install-fsmod-lib install-bdb-lib/'`" 20631 INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-bdb-lib" 20632 BDB_TEST_DEPS="\$(BDB_TEST_DEPS)" 20633 BDB_TEST_PROGRAMS="\$(BDB_TEST_PROGRAMS)" 20634fi 20635 20636if test "$svn_lib_serf" = "yes"; then 20637 BUILD_RULES="$BUILD_RULES serf-lib" 20638 INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-ramod-lib/install-ramod-lib install-serf-lib/'`" 20639 INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-serf-lib" 20640fi 20641 20642if test "$svn_lib_kwallet" = "yes"; then 20643 BUILD_RULES="$BUILD_RULES kwallet-lib" 20644 INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-lib/install-lib install-kwallet-lib/'`" 20645 INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-kwallet-lib" 20646fi 20647 20648if test "$found_old_gnome_keyring" = "yes" || test "$found_gnome_keyring" = "yes"; then 20649 BUILD_RULES="$BUILD_RULES gnome-keyring-lib" 20650 INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-lib/install-lib install-gnome-keyring-lib/'`" 20651 INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-gnome-keyring-lib" 20652fi 20653 20654if test "$USE_NLS" = "yes"; then 20655 BUILD_RULES="$BUILD_RULES locale" 20656 INSTALL_RULES="$INSTALL_RULES install-locale" 20657fi 20658 20659 20660 20661 20662 20663 20664 20665 20666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 20667$as_echo_n "checking for ANSI C header files... " >&6; } 20668if ${ac_cv_header_stdc+:} false; then : 20669 $as_echo_n "(cached) " >&6 20670else 20671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20672/* end confdefs.h. */ 20673#include <stdlib.h> 20674#include <stdarg.h> 20675#include <string.h> 20676#include <float.h> 20677 20678int 20679main () 20680{ 20681 20682 ; 20683 return 0; 20684} 20685_ACEOF 20686if ac_fn_c_try_compile "$LINENO"; then : 20687 ac_cv_header_stdc=yes 20688else 20689 ac_cv_header_stdc=no 20690fi 20691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20692 20693if test $ac_cv_header_stdc = yes; then 20694 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 20695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20696/* end confdefs.h. */ 20697#include <string.h> 20698 20699_ACEOF 20700if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20701 $EGREP "memchr" >/dev/null 2>&1; then : 20702 20703else 20704 ac_cv_header_stdc=no 20705fi 20706rm -f conftest* 20707 20708fi 20709 20710if test $ac_cv_header_stdc = yes; then 20711 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 20712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20713/* end confdefs.h. */ 20714#include <stdlib.h> 20715 20716_ACEOF 20717if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20718 $EGREP "free" >/dev/null 2>&1; then : 20719 20720else 20721 ac_cv_header_stdc=no 20722fi 20723rm -f conftest* 20724 20725fi 20726 20727if test $ac_cv_header_stdc = yes; then 20728 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 20729 if test "$cross_compiling" = yes; then : 20730 : 20731else 20732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20733/* end confdefs.h. */ 20734#include <ctype.h> 20735#include <stdlib.h> 20736#if ((' ' & 0x0FF) == 0x020) 20737# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 20738# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 20739#else 20740# define ISLOWER(c) \ 20741 (('a' <= (c) && (c) <= 'i') \ 20742 || ('j' <= (c) && (c) <= 'r') \ 20743 || ('s' <= (c) && (c) <= 'z')) 20744# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 20745#endif 20746 20747#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 20748int 20749main () 20750{ 20751 int i; 20752 for (i = 0; i < 256; i++) 20753 if (XOR (islower (i), ISLOWER (i)) 20754 || toupper (i) != TOUPPER (i)) 20755 return 2; 20756 return 0; 20757} 20758_ACEOF 20759if ac_fn_c_try_run "$LINENO"; then : 20760 20761else 20762 ac_cv_header_stdc=no 20763fi 20764rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20765 conftest.$ac_objext conftest.beam conftest.$ac_ext 20766fi 20767 20768fi 20769fi 20770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 20771$as_echo "$ac_cv_header_stdc" >&6; } 20772if test $ac_cv_header_stdc = yes; then 20773 20774$as_echo "#define STDC_HEADERS 1" >>confdefs.h 20775 20776fi 20777 20778 20779 20780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 20781$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 20782if ${ac_cv_c_const+:} false; then : 20783 $as_echo_n "(cached) " >&6 20784else 20785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20786/* end confdefs.h. */ 20787 20788int 20789main () 20790{ 20791 20792#ifndef __cplusplus 20793 /* Ultrix mips cc rejects this sort of thing. */ 20794 typedef int charset[2]; 20795 const charset cs = { 0, 0 }; 20796 /* SunOS 4.1.1 cc rejects this. */ 20797 char const *const *pcpcc; 20798 char **ppc; 20799 /* NEC SVR4.0.2 mips cc rejects this. */ 20800 struct point {int x, y;}; 20801 static struct point const zero = {0,0}; 20802 /* AIX XL C 1.02.0.0 rejects this. 20803 It does not let you subtract one const X* pointer from another in 20804 an arm of an if-expression whose if-part is not a constant 20805 expression */ 20806 const char *g = "string"; 20807 pcpcc = &g + (g ? g-g : 0); 20808 /* HPUX 7.0 cc rejects these. */ 20809 ++pcpcc; 20810 ppc = (char**) pcpcc; 20811 pcpcc = (char const *const *) ppc; 20812 { /* SCO 3.2v4 cc rejects this sort of thing. */ 20813 char tx; 20814 char *t = &tx; 20815 char const *s = 0 ? (char *) 0 : (char const *) 0; 20816 20817 *t++ = 0; 20818 if (s) return 0; 20819 } 20820 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 20821 int x[] = {25, 17}; 20822 const int *foo = &x[0]; 20823 ++foo; 20824 } 20825 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 20826 typedef const int *iptr; 20827 iptr p = 0; 20828 ++p; 20829 } 20830 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 20831 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 20832 struct s { int j; const int *ap[3]; } bx; 20833 struct s *b = &bx; b->j = 5; 20834 } 20835 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 20836 const int foo = 10; 20837 if (!foo) return 0; 20838 } 20839 return !cs[0] && !zero.x; 20840#endif 20841 20842 ; 20843 return 0; 20844} 20845_ACEOF 20846if ac_fn_c_try_compile "$LINENO"; then : 20847 ac_cv_c_const=yes 20848else 20849 ac_cv_c_const=no 20850fi 20851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20852fi 20853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 20854$as_echo "$ac_cv_c_const" >&6; } 20855if test $ac_cv_c_const = no; then 20856 20857$as_echo "#define const /**/" >>confdefs.h 20858 20859fi 20860 20861 20862ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 20863if test "x$ac_cv_type_size_t" = xyes; then : 20864 20865else 20866 20867cat >>confdefs.h <<_ACEOF 20868#define size_t unsigned int 20869_ACEOF 20870 20871fi 20872 20873 20874 20875 20876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 20877$as_echo_n "checking for working memcmp... " >&6; } 20878if ${ac_cv_func_memcmp_working+:} false; then : 20879 $as_echo_n "(cached) " >&6 20880else 20881 if test "$cross_compiling" = yes; then : 20882 ac_cv_func_memcmp_working=no 20883else 20884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20885/* end confdefs.h. */ 20886$ac_includes_default 20887int 20888main () 20889{ 20890 20891 /* Some versions of memcmp are not 8-bit clean. */ 20892 char c0 = '\100', c1 = '\200', c2 = '\201'; 20893 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 20894 return 1; 20895 20896 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 20897 or more and with at least one buffer not starting on a 4-byte boundary. 20898 William Lewis provided this test program. */ 20899 { 20900 char foo[21]; 20901 char bar[21]; 20902 int i; 20903 for (i = 0; i < 4; i++) 20904 { 20905 char *a = foo + i; 20906 char *b = bar + i; 20907 strcpy (a, "--------01111111"); 20908 strcpy (b, "--------10000000"); 20909 if (memcmp (a, b, 16) >= 0) 20910 return 1; 20911 } 20912 return 0; 20913 } 20914 20915 ; 20916 return 0; 20917} 20918_ACEOF 20919if ac_fn_c_try_run "$LINENO"; then : 20920 ac_cv_func_memcmp_working=yes 20921else 20922 ac_cv_func_memcmp_working=no 20923fi 20924rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20925 conftest.$ac_objext conftest.beam conftest.$ac_ext 20926fi 20927 20928fi 20929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 20930$as_echo "$ac_cv_func_memcmp_working" >&6; } 20931test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in 20932 *" memcmp.$ac_objext "* ) ;; 20933 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 20934 ;; 20935esac 20936 20937 20938 20939for ac_func in vprintf 20940do : 20941 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 20942if test "x$ac_cv_func_vprintf" = xyes; then : 20943 cat >>confdefs.h <<_ACEOF 20944#define HAVE_VPRINTF 1 20945_ACEOF 20946 20947ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 20948if test "x$ac_cv_func__doprnt" = xyes; then : 20949 20950$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 20951 20952fi 20953 20954fi 20955done 20956 20957 20958 20959for ac_func in symlink readlink 20960do : 20961 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20962ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20963if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20964 cat >>confdefs.h <<_ACEOF 20965#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20966_ACEOF 20967 20968fi 20969done 20970 20971 20972for ac_header in sys/utsname.h 20973do : 20974 ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default" 20975if test "x$ac_cv_header_sys_utsname_h" = xyes; then : 20976 cat >>confdefs.h <<_ACEOF 20977#define HAVE_SYS_UTSNAME_H 1 20978_ACEOF 20979 for ac_func in uname 20980do : 20981 ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname" 20982if test "x$ac_cv_func_uname" = xyes; then : 20983 cat >>confdefs.h <<_ACEOF 20984#define HAVE_UNAME 1 20985_ACEOF 20986 20987fi 20988done 20989 20990fi 20991 20992done 20993 20994for ac_header in elf.h 20995do : 20996 ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default" 20997if test "x$ac_cv_header_elf_h" = xyes; then : 20998 cat >>confdefs.h <<_ACEOF 20999#define HAVE_ELF_H 1 21000_ACEOF 21001 21002fi 21003 21004done 21005 21006 21007ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default" 21008if test "x$ac_cv_header_termios_h" = xyes; then : 21009 21010 for ac_func in tcgetattr tcsetattr 21011do : 21012 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 21013ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 21014if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 21015 cat >>confdefs.h <<_ACEOF 21016#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 21017_ACEOF 21018 21019 21020$as_echo "#define HAVE_TERMIOS_H 1" >>confdefs.h 21021 21022 21023fi 21024done 21025 21026 21027fi 21028 21029 21030 21031 21032# Check whether --enable-debug was given. 21033if test "${enable_debug+set}" = set; then : 21034 enableval=$enable_debug; 21035 if test "$enableval" = "yes" ; then 21036 enable_debugging="yes" 21037 else 21038 enable_debugging="no" 21039 fi 21040 21041else 21042 21043 # Neither --enable-debug nor --disable-debug was passed. 21044 enable_debugging="maybe" 21045 21046fi 21047 21048 21049# Check whether --enable-optimize was given. 21050if test "${enable_optimize+set}" = set; then : 21051 enableval=$enable_optimize; 21052 if test "$enableval" = "yes" ; then 21053 enable_optimization="yes" 21054 else 21055 enable_optimization="no" 21056 fi 21057 21058else 21059 21060 # Neither --enable-optimize nor --disable-optimize was passed. 21061 enable_optimization="maybe" 21062 21063fi 21064 21065 21066# Check whether --enable-disallowing-of-undefined-references was given. 21067if test "${enable_disallowing_of_undefined_references+set}" = set; then : 21068 enableval=$enable_disallowing_of_undefined_references; 21069fi 21070 21071if test "$enable_disallowing_of_undefined_references" != "yes" && test "`uname`" != "Linux"; then 21072 enable_disallowing_of_undefined_references="no" 21073fi 21074if test "$enable_disallowing_of_undefined_references" != "no"; then 21075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-undefined" >&5 21076$as_echo_n "checking for -Wl,--no-undefined... " >&6; } 21077 old_LDFLAGS="$LDFLAGS" 21078 LDFLAGS="$LDFLAGS -Wl,--no-undefined" 21079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21080/* end confdefs.h. */ 21081int main(){;} 21082_ACEOF 21083if ac_fn_c_try_link "$LINENO"; then : 21084 svn_wl_no_undefined="yes" 21085else 21086 svn_wl_no_undefined="no" 21087fi 21088rm -f core conftest.err conftest.$ac_objext \ 21089 conftest$ac_exeext conftest.$ac_ext 21090 LDFLAGS="$old_LDFLAGS" 21091 if test "$svn_wl_no_undefined" = "yes"; then 21092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21093$as_echo "yes" >&6; } 21094 for library_dir in "$abs_srcdir/subversion/libsvn_"*; do 21095 eval "`basename $library_dir`_LDFLAGS=-Wl,--no-undefined" 21096 done 21097 shared_only_LDFLAGS="-Wl,--no-undefined" 21098 else 21099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21100$as_echo "no" >&6; } 21101 if test "$enable_disallowing_of_undefined_references" = "yes"; then 21102 as_fn_error $? "--enable-disallowing-of-undefined-references explicitly requested, but -Wl,--no-undefined not supported" "$LINENO" 5 21103 fi 21104 fi 21105fi 21106 21107 21108 21109 21110 21111 21112 21113 21114 21115 21116 21117 21118 21119 21120 21121 21122 21123# Check whether --enable-maintainer-mode was given. 21124if test "${enable_maintainer_mode+set}" = set; then : 21125 enableval=$enable_maintainer_mode; 21126 if test "$enableval" = "yes" ; then 21127 if test "$enable_debugging" = "no" ; then 21128 as_fn_error $? "Can't have --disable-debug and --enable-maintainer-mode" "$LINENO" 5 21129 fi 21130 enable_debugging=yes 21131 21132 if test "$GCC" = "yes"; then 21133 { $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: adding GCC warning flags" >&5 21134$as_echo "$as_me: maintainer-mode: adding GCC warning flags" >&6;} 21135 21136 21137 CFLAGS_KEEP="$CFLAGS" 21138 CFLAGS="" 21139 21140 21141 _svn_xxflags__save="$CFLAGS" 21142 ac_ext=c 21143ac_cpp='$CPP $CPPFLAGS' 21144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21146ac_compiler_gnu=$ac_cv_c_compiler_gnu 21147 21148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=implicit-function-declaration" >&5 21149$as_echo_n "checking if $CC accepts -Werror=implicit-function-declaration... " >&6; } 21150 CFLAGS="-Werror=implicit-function-declaration $CFLAGS" 21151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21152/* end confdefs.h. */ 21153int main(void){return 0;} 21154_ACEOF 21155if ac_fn_c_try_link "$LINENO"; then : 21156 21157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21158$as_echo "yes" >&6; } 21159 21160 21161else 21162 21163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21164$as_echo "no" >&6; } 21165 CFLAGS="$_svn_xxflags__save" 21166 21167 21168fi 21169rm -f core conftest.err conftest.$ac_objext \ 21170 conftest$ac_exeext conftest.$ac_ext 21171 ac_ext=c 21172ac_cpp='$CPP $CPPFLAGS' 21173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21175ac_compiler_gnu=$ac_cv_c_compiler_gnu 21176 21177 21178 21179 _svn_xxflags__save="$CFLAGS" 21180 ac_ext=c 21181ac_cpp='$CPP $CPPFLAGS' 21182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21184ac_compiler_gnu=$ac_cv_c_compiler_gnu 21185 21186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=declaration-after-statement" >&5 21187$as_echo_n "checking if $CC accepts -Werror=declaration-after-statement... " >&6; } 21188 CFLAGS="-Werror=declaration-after-statement $CFLAGS" 21189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21190/* end confdefs.h. */ 21191int main(void){return 0;} 21192_ACEOF 21193if ac_fn_c_try_link "$LINENO"; then : 21194 21195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21196$as_echo "yes" >&6; } 21197 21198 21199else 21200 21201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21202$as_echo "no" >&6; } 21203 CFLAGS="$_svn_xxflags__save" 21204 21205 21206fi 21207rm -f core conftest.err conftest.$ac_objext \ 21208 conftest$ac_exeext conftest.$ac_ext 21209 ac_ext=c 21210ac_cpp='$CPP $CPPFLAGS' 21211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21213ac_compiler_gnu=$ac_cv_c_compiler_gnu 21214 21215 21216 21217 _svn_xxflags__save="$CFLAGS" 21218 ac_ext=c 21219ac_cpp='$CPP $CPPFLAGS' 21220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21222ac_compiler_gnu=$ac_cv_c_compiler_gnu 21223 21224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wextra-tokens" >&5 21225$as_echo_n "checking if $CC accepts -Wextra-tokens... " >&6; } 21226 CFLAGS="-Wextra-tokens $CFLAGS" 21227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21228/* end confdefs.h. */ 21229int main(void){return 0;} 21230_ACEOF 21231if ac_fn_c_try_link "$LINENO"; then : 21232 21233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21234$as_echo "yes" >&6; } 21235 21236 21237else 21238 21239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21240$as_echo "no" >&6; } 21241 CFLAGS="$_svn_xxflags__save" 21242 21243 21244fi 21245rm -f core conftest.err conftest.$ac_objext \ 21246 conftest$ac_exeext conftest.$ac_ext 21247 ac_ext=c 21248ac_cpp='$CPP $CPPFLAGS' 21249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21251ac_compiler_gnu=$ac_cv_c_compiler_gnu 21252 21253 21254 21255 _svn_xxflags__save="$CFLAGS" 21256 ac_ext=c 21257ac_cpp='$CPP $CPPFLAGS' 21258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21260ac_compiler_gnu=$ac_cv_c_compiler_gnu 21261 21262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wnewline-eof" >&5 21263$as_echo_n "checking if $CC accepts -Wnewline-eof... " >&6; } 21264 CFLAGS="-Wnewline-eof $CFLAGS" 21265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21266/* end confdefs.h. */ 21267int main(void){return 0;} 21268_ACEOF 21269if ac_fn_c_try_link "$LINENO"; then : 21270 21271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21272$as_echo "yes" >&6; } 21273 21274 21275else 21276 21277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21278$as_echo "no" >&6; } 21279 CFLAGS="$_svn_xxflags__save" 21280 21281 21282fi 21283rm -f core conftest.err conftest.$ac_objext \ 21284 conftest$ac_exeext conftest.$ac_ext 21285 ac_ext=c 21286ac_cpp='$CPP $CPPFLAGS' 21287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21289ac_compiler_gnu=$ac_cv_c_compiler_gnu 21290 21291 21292 21293 _svn_xxflags__save="$CFLAGS" 21294 ac_ext=c 21295ac_cpp='$CPP $CPPFLAGS' 21296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21298ac_compiler_gnu=$ac_cv_c_compiler_gnu 21299 21300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wshorten-64-to-32" >&5 21301$as_echo_n "checking if $CC accepts -Wshorten-64-to-32... " >&6; } 21302 CFLAGS="-Wshorten-64-to-32 $CFLAGS" 21303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21304/* end confdefs.h. */ 21305int main(void){return 0;} 21306_ACEOF 21307if ac_fn_c_try_link "$LINENO"; then : 21308 21309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21310$as_echo "yes" >&6; } 21311 21312 21313else 21314 21315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21316$as_echo "no" >&6; } 21317 CFLAGS="$_svn_xxflags__save" 21318 21319 21320fi 21321rm -f core conftest.err conftest.$ac_objext \ 21322 conftest$ac_exeext conftest.$ac_ext 21323 ac_ext=c 21324ac_cpp='$CPP $CPPFLAGS' 21325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21327ac_compiler_gnu=$ac_cv_c_compiler_gnu 21328 21329 21330 21331 _svn_xxflags__save="$CFLAGS" 21332 ac_ext=c 21333ac_cpp='$CPP $CPPFLAGS' 21334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21336ac_compiler_gnu=$ac_cv_c_compiler_gnu 21337 21338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wold-style-definition" >&5 21339$as_echo_n "checking if $CC accepts -Wold-style-definition... " >&6; } 21340 CFLAGS="-Wold-style-definition $CFLAGS" 21341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21342/* end confdefs.h. */ 21343int main(void){return 0;} 21344_ACEOF 21345if ac_fn_c_try_link "$LINENO"; then : 21346 21347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21348$as_echo "yes" >&6; } 21349 21350 21351else 21352 21353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21354$as_echo "no" >&6; } 21355 CFLAGS="$_svn_xxflags__save" 21356 21357 21358fi 21359rm -f core conftest.err conftest.$ac_objext \ 21360 conftest$ac_exeext conftest.$ac_ext 21361 ac_ext=c 21362ac_cpp='$CPP $CPPFLAGS' 21363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21365ac_compiler_gnu=$ac_cv_c_compiler_gnu 21366 21367 21368 21369 _svn_xxflags__save="$CFLAGS" 21370 ac_ext=c 21371ac_cpp='$CPP $CPPFLAGS' 21372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21374ac_compiler_gnu=$ac_cv_c_compiler_gnu 21375 21376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-system-headers" >&5 21377$as_echo_n "checking if $CC accepts -Wno-system-headers... " >&6; } 21378 CFLAGS="-Wno-system-headers $CFLAGS" 21379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21380/* end confdefs.h. */ 21381int main(void){return 0;} 21382_ACEOF 21383if ac_fn_c_try_link "$LINENO"; then : 21384 21385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21386$as_echo "yes" >&6; } 21387 21388 21389else 21390 21391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21392$as_echo "no" >&6; } 21393 CFLAGS="$_svn_xxflags__save" 21394 21395 21396fi 21397rm -f core conftest.err conftest.$ac_objext \ 21398 conftest$ac_exeext conftest.$ac_ext 21399 ac_ext=c 21400ac_cpp='$CPP $CPPFLAGS' 21401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21403ac_compiler_gnu=$ac_cv_c_compiler_gnu 21404 21405 21406 21407 _svn_xxflags__save="$CFLAGS" 21408 ac_ext=c 21409ac_cpp='$CPP $CPPFLAGS' 21410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21412ac_compiler_gnu=$ac_cv_c_compiler_gnu 21413 21414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-format-nonliteral" >&5 21415$as_echo_n "checking if $CC accepts -Wno-format-nonliteral... " >&6; } 21416 CFLAGS="-Wno-format-nonliteral $CFLAGS" 21417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21418/* end confdefs.h. */ 21419int main(void){return 0;} 21420_ACEOF 21421if ac_fn_c_try_link "$LINENO"; then : 21422 21423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21424$as_echo "yes" >&6; } 21425 21426 21427else 21428 21429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21430$as_echo "no" >&6; } 21431 CFLAGS="$_svn_xxflags__save" 21432 21433 21434fi 21435rm -f core conftest.err conftest.$ac_objext \ 21436 conftest$ac_exeext conftest.$ac_ext 21437 ac_ext=c 21438ac_cpp='$CPP $CPPFLAGS' 21439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21441ac_compiler_gnu=$ac_cv_c_compiler_gnu 21442 21443 21444 21445 _svn_xxflags__save="$CFLAGS" 21446 ac_ext=c 21447ac_cpp='$CPP $CPPFLAGS' 21448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21450ac_compiler_gnu=$ac_cv_c_compiler_gnu 21451 21452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wmissing-variable-declarations" >&5 21453$as_echo_n "checking if $CC accepts -Wmissing-variable-declarations... " >&6; } 21454 CFLAGS="-Wmissing-variable-declarations $CFLAGS" 21455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21456/* end confdefs.h. */ 21457int main(void){return 0;} 21458_ACEOF 21459if ac_fn_c_try_link "$LINENO"; then : 21460 21461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21462$as_echo "yes" >&6; } 21463 21464 21465else 21466 21467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21468$as_echo "no" >&6; } 21469 CFLAGS="$_svn_xxflags__save" 21470 21471 21472fi 21473rm -f core conftest.err conftest.$ac_objext \ 21474 conftest$ac_exeext conftest.$ac_ext 21475 ac_ext=c 21476ac_cpp='$CPP $CPPFLAGS' 21477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21479ac_compiler_gnu=$ac_cv_c_compiler_gnu 21480 21481 21482 21483 _svn_xxflags__save="$CFLAGS" 21484 ac_ext=c 21485ac_cpp='$CPP $CPPFLAGS' 21486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21488ac_compiler_gnu=$ac_cv_c_compiler_gnu 21489 21490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-unused-const-variable" >&5 21491$as_echo_n "checking if $CC accepts -Wno-unused-const-variable... " >&6; } 21492 CFLAGS="-Wno-unused-const-variable $CFLAGS" 21493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21494/* end confdefs.h. */ 21495int main(void){return 0;} 21496_ACEOF 21497if ac_fn_c_try_link "$LINENO"; then : 21498 21499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21500$as_echo "yes" >&6; } 21501 21502 21503else 21504 21505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21506$as_echo "no" >&6; } 21507 CFLAGS="$_svn_xxflags__save" 21508 21509 21510fi 21511rm -f core conftest.err conftest.$ac_objext \ 21512 conftest$ac_exeext conftest.$ac_ext 21513 ac_ext=c 21514ac_cpp='$CPP $CPPFLAGS' 21515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21517ac_compiler_gnu=$ac_cv_c_compiler_gnu 21518 21519 21520 21521 CMAINTAINERFLAGS="$CFLAGS" 21522 CFLAGS="$CFLAGS_KEEP" 21523 21524 CMAINTAINERFLAGS="-Wall -Wpointer-arith -Wwrite-strings -Wshadow -Wformat=2 -Wunused -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wno-multichar -Wredundant-decls -Wnested-externs -Winline -Wno-long-long -Wbad-function-cast $CMAINTAINERFLAGS" 21525 fi 21526 if test "$GXX" = "yes"; then 21527 { $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: adding G++ warning flags" >&5 21528$as_echo "$as_me: maintainer-mode: adding G++ warning flags" >&6;} 21529 21530 CXXFLAGS_KEEP="$CXXFLAGS" 21531 CXXFLAGS="" 21532 21533 21534 _svn_xxflags__save="$CXXFLAGS" 21535 ac_ext=cpp 21536ac_cpp='$CXXCPP $CPPFLAGS' 21537ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21538ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21539ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21540 21541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wextra-tokens" >&5 21542$as_echo_n "checking if $CXX accepts -Wextra-tokens... " >&6; } 21543 CXXFLAGS="-Wextra-tokens $CXXFLAGS" 21544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21545/* end confdefs.h. */ 21546int main(){} 21547_ACEOF 21548if ac_fn_cxx_try_link "$LINENO"; then : 21549 21550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21551$as_echo "yes" >&6; } 21552 21553 21554else 21555 21556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21557$as_echo "no" >&6; } 21558 CXXFLAGS="$_svn_xxflags__save" 21559 21560 21561fi 21562rm -f core conftest.err conftest.$ac_objext \ 21563 conftest$ac_exeext conftest.$ac_ext 21564 ac_ext=c 21565ac_cpp='$CPP $CPPFLAGS' 21566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21568ac_compiler_gnu=$ac_cv_c_compiler_gnu 21569 21570 21571 21572 _svn_xxflags__save="$CXXFLAGS" 21573 ac_ext=cpp 21574ac_cpp='$CXXCPP $CPPFLAGS' 21575ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21576ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21577ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21578 21579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wnewline-eof" >&5 21580$as_echo_n "checking if $CXX accepts -Wnewline-eof... " >&6; } 21581 CXXFLAGS="-Wnewline-eof $CXXFLAGS" 21582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21583/* end confdefs.h. */ 21584int main(){} 21585_ACEOF 21586if ac_fn_cxx_try_link "$LINENO"; then : 21587 21588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21589$as_echo "yes" >&6; } 21590 21591 21592else 21593 21594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21595$as_echo "no" >&6; } 21596 CXXFLAGS="$_svn_xxflags__save" 21597 21598 21599fi 21600rm -f core conftest.err conftest.$ac_objext \ 21601 conftest$ac_exeext conftest.$ac_ext 21602 ac_ext=c 21603ac_cpp='$CPP $CPPFLAGS' 21604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21606ac_compiler_gnu=$ac_cv_c_compiler_gnu 21607 21608 21609 21610 _svn_xxflags__save="$CXXFLAGS" 21611 ac_ext=cpp 21612ac_cpp='$CXXCPP $CPPFLAGS' 21613ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21614ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21615ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21616 21617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wshorten-64-to-32" >&5 21618$as_echo_n "checking if $CXX accepts -Wshorten-64-to-32... " >&6; } 21619 CXXFLAGS="-Wshorten-64-to-32 $CXXFLAGS" 21620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21621/* end confdefs.h. */ 21622int main(){} 21623_ACEOF 21624if ac_fn_cxx_try_link "$LINENO"; then : 21625 21626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21627$as_echo "yes" >&6; } 21628 21629 21630else 21631 21632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21633$as_echo "no" >&6; } 21634 CXXFLAGS="$_svn_xxflags__save" 21635 21636 21637fi 21638rm -f core conftest.err conftest.$ac_objext \ 21639 conftest$ac_exeext conftest.$ac_ext 21640 ac_ext=c 21641ac_cpp='$CPP $CPPFLAGS' 21642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21644ac_compiler_gnu=$ac_cv_c_compiler_gnu 21645 21646 21647 21648 _svn_xxflags__save="$CXXFLAGS" 21649 ac_ext=cpp 21650ac_cpp='$CXXCPP $CPPFLAGS' 21651ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21652ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21653ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21654 21655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wno-system-headers" >&5 21656$as_echo_n "checking if $CXX accepts -Wno-system-headers... " >&6; } 21657 CXXFLAGS="-Wno-system-headers $CXXFLAGS" 21658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21659/* end confdefs.h. */ 21660int main(){} 21661_ACEOF 21662if ac_fn_cxx_try_link "$LINENO"; then : 21663 21664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21665$as_echo "yes" >&6; } 21666 21667 21668else 21669 21670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21671$as_echo "no" >&6; } 21672 CXXFLAGS="$_svn_xxflags__save" 21673 21674 21675fi 21676rm -f core conftest.err conftest.$ac_objext \ 21677 conftest$ac_exeext conftest.$ac_ext 21678 ac_ext=c 21679ac_cpp='$CPP $CPPFLAGS' 21680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21682ac_compiler_gnu=$ac_cv_c_compiler_gnu 21683 21684 21685 21686 CXXMAINTAINERFLAGS="$CXXFLAGS" 21687 CXXFLAGS="$CXXFLAGS_KEEP" 21688 21689 CXXMAINTAINERFLAGS="-Wall -Wpointer-arith -Wwrite-strings -Wshadow -Wunused -Wunreachable-code $CXXMAINTAINERFLAGS" 21690 fi 21691 fi 21692 21693fi 21694 21695 21696if test "$enable_debugging" = "yes" ; then 21697 if test "$enable_optimization" != "yes"; then 21698 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling optimizations for debugging" >&5 21699$as_echo "$as_me: Disabling optimizations for debugging" >&6;} 21700 CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`" 21701 CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`" 21702 fi 21703 if test -z "`echo $CUSERFLAGS' ' | $EGREP -- '-g[0-9]? '`"; then 21704 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling debugging for C" >&5 21705$as_echo "$as_me: Enabling debugging for C" >&6;} 21706 CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`" 21707 21708 _svn_xxflags__save="$CFLAGS" 21709 ac_ext=c 21710ac_cpp='$CPP $CPPFLAGS' 21711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21713ac_compiler_gnu=$ac_cv_c_compiler_gnu 21714 21715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-inline" >&5 21716$as_echo_n "checking if $CC accepts -fno-inline... " >&6; } 21717 CFLAGS="-fno-inline $CFLAGS" 21718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21719/* end confdefs.h. */ 21720int main(void){return 0;} 21721_ACEOF 21722if ac_fn_c_try_link "$LINENO"; then : 21723 21724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21725$as_echo "yes" >&6; } 21726 21727 21728else 21729 21730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21731$as_echo "no" >&6; } 21732 CFLAGS="$_svn_xxflags__save" 21733 21734 21735fi 21736rm -f core conftest.err conftest.$ac_objext \ 21737 conftest$ac_exeext conftest.$ac_ext 21738 ac_ext=c 21739ac_cpp='$CPP $CPPFLAGS' 21740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21742ac_compiler_gnu=$ac_cv_c_compiler_gnu 21743 21744 21745 21746 _svn_xxflags__save="$CFLAGS" 21747 ac_ext=c 21748ac_cpp='$CPP $CPPFLAGS' 21749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21751ac_compiler_gnu=$ac_cv_c_compiler_gnu 21752 21753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-omit-frame-pointer" >&5 21754$as_echo_n "checking if $CC accepts -fno-omit-frame-pointer... " >&6; } 21755 CFLAGS="-fno-omit-frame-pointer $CFLAGS" 21756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21757/* end confdefs.h. */ 21758int main(void){return 0;} 21759_ACEOF 21760if ac_fn_c_try_link "$LINENO"; then : 21761 21762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21763$as_echo "yes" >&6; } 21764 21765 21766else 21767 21768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21769$as_echo "no" >&6; } 21770 CFLAGS="$_svn_xxflags__save" 21771 21772 21773fi 21774rm -f core conftest.err conftest.$ac_objext \ 21775 conftest$ac_exeext conftest.$ac_ext 21776 ac_ext=c 21777ac_cpp='$CPP $CPPFLAGS' 21778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21780ac_compiler_gnu=$ac_cv_c_compiler_gnu 21781 21782 21783 21784 _svn_xxflags__save="$CFLAGS" 21785 ac_ext=c 21786ac_cpp='$CPP $CPPFLAGS' 21787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21789ac_compiler_gnu=$ac_cv_c_compiler_gnu 21790 21791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g3" >&5 21792$as_echo_n "checking if $CC accepts -g3... " >&6; } 21793 CFLAGS="-g3 $CFLAGS" 21794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21795/* end confdefs.h. */ 21796int main(void){return 0;} 21797_ACEOF 21798if ac_fn_c_try_link "$LINENO"; then : 21799 21800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21801$as_echo "yes" >&6; } 21802 21803 21804else 21805 21806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21807$as_echo "no" >&6; } 21808 CFLAGS="$_svn_xxflags__save" 21809 21810 21811 _svn_xxflags__save="$CFLAGS" 21812 ac_ext=c 21813ac_cpp='$CPP $CPPFLAGS' 21814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21816ac_compiler_gnu=$ac_cv_c_compiler_gnu 21817 21818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g2" >&5 21819$as_echo_n "checking if $CC accepts -g2... " >&6; } 21820 CFLAGS="-g2 $CFLAGS" 21821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21822/* end confdefs.h. */ 21823int main(void){return 0;} 21824_ACEOF 21825if ac_fn_c_try_link "$LINENO"; then : 21826 21827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21828$as_echo "yes" >&6; } 21829 21830 21831else 21832 21833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21834$as_echo "no" >&6; } 21835 CFLAGS="$_svn_xxflags__save" 21836 21837 21838 _svn_xxflags__save="$CFLAGS" 21839 ac_ext=c 21840ac_cpp='$CPP $CPPFLAGS' 21841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21843ac_compiler_gnu=$ac_cv_c_compiler_gnu 21844 21845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g" >&5 21846$as_echo_n "checking if $CC accepts -g... " >&6; } 21847 CFLAGS="-g $CFLAGS" 21848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21849/* end confdefs.h. */ 21850int main(void){return 0;} 21851_ACEOF 21852if ac_fn_c_try_link "$LINENO"; then : 21853 21854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21855$as_echo "yes" >&6; } 21856 21857 21858else 21859 21860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21861$as_echo "no" >&6; } 21862 CFLAGS="$_svn_xxflags__save" 21863 21864 21865fi 21866rm -f core conftest.err conftest.$ac_objext \ 21867 conftest$ac_exeext conftest.$ac_ext 21868 ac_ext=c 21869ac_cpp='$CPP $CPPFLAGS' 21870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21872ac_compiler_gnu=$ac_cv_c_compiler_gnu 21873 21874 21875 21876fi 21877rm -f core conftest.err conftest.$ac_objext \ 21878 conftest$ac_exeext conftest.$ac_ext 21879 ac_ext=c 21880ac_cpp='$CPP $CPPFLAGS' 21881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21883ac_compiler_gnu=$ac_cv_c_compiler_gnu 21884 21885 21886 21887fi 21888rm -f core conftest.err conftest.$ac_objext \ 21889 conftest$ac_exeext conftest.$ac_ext 21890 ac_ext=c 21891ac_cpp='$CPP $CPPFLAGS' 21892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21894ac_compiler_gnu=$ac_cv_c_compiler_gnu 21895 21896 21897 fi 21898 if test -z "`echo $CXXUSERFLAGS' ' | $EGREP -- '-g[0-9]? '`"; then 21899 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling debugging for C++" >&5 21900$as_echo "$as_me: Enabling debugging for C++" >&6;} 21901 CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`" 21902 21903 _svn_xxflags__save="$CXXFLAGS" 21904 ac_ext=cpp 21905ac_cpp='$CXXCPP $CPPFLAGS' 21906ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21907ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21908ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21909 21910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -fno-inline" >&5 21911$as_echo_n "checking if $CXX accepts -fno-inline... " >&6; } 21912 CXXFLAGS="-fno-inline $CXXFLAGS" 21913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21914/* end confdefs.h. */ 21915int main(){} 21916_ACEOF 21917if ac_fn_cxx_try_link "$LINENO"; then : 21918 21919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21920$as_echo "yes" >&6; } 21921 21922 21923else 21924 21925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21926$as_echo "no" >&6; } 21927 CXXFLAGS="$_svn_xxflags__save" 21928 21929 21930fi 21931rm -f core conftest.err conftest.$ac_objext \ 21932 conftest$ac_exeext conftest.$ac_ext 21933 ac_ext=c 21934ac_cpp='$CPP $CPPFLAGS' 21935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21937ac_compiler_gnu=$ac_cv_c_compiler_gnu 21938 21939 21940 21941 _svn_xxflags__save="$CXXFLAGS" 21942 ac_ext=cpp 21943ac_cpp='$CXXCPP $CPPFLAGS' 21944ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21945ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21946ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21947 21948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -fno-omit-frame-pointer" >&5 21949$as_echo_n "checking if $CXX accepts -fno-omit-frame-pointer... " >&6; } 21950 CXXFLAGS="-fno-omit-frame-pointer $CXXFLAGS" 21951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21952/* end confdefs.h. */ 21953int main(){} 21954_ACEOF 21955if ac_fn_cxx_try_link "$LINENO"; then : 21956 21957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21958$as_echo "yes" >&6; } 21959 21960 21961else 21962 21963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21964$as_echo "no" >&6; } 21965 CXXFLAGS="$_svn_xxflags__save" 21966 21967 21968fi 21969rm -f core conftest.err conftest.$ac_objext \ 21970 conftest$ac_exeext conftest.$ac_ext 21971 ac_ext=c 21972ac_cpp='$CPP $CPPFLAGS' 21973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21975ac_compiler_gnu=$ac_cv_c_compiler_gnu 21976 21977 21978 21979 _svn_xxflags__save="$CXXFLAGS" 21980 ac_ext=cpp 21981ac_cpp='$CXXCPP $CPPFLAGS' 21982ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21983ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21984ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21985 21986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g3" >&5 21987$as_echo_n "checking if $CXX accepts -g3... " >&6; } 21988 CXXFLAGS="-g3 $CXXFLAGS" 21989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21990/* end confdefs.h. */ 21991int main(){} 21992_ACEOF 21993if ac_fn_cxx_try_link "$LINENO"; then : 21994 21995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21996$as_echo "yes" >&6; } 21997 21998 21999else 22000 22001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22002$as_echo "no" >&6; } 22003 CXXFLAGS="$_svn_xxflags__save" 22004 22005 22006 _svn_xxflags__save="$CXXFLAGS" 22007 ac_ext=cpp 22008ac_cpp='$CXXCPP $CPPFLAGS' 22009ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22010ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22011ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22012 22013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g2" >&5 22014$as_echo_n "checking if $CXX accepts -g2... " >&6; } 22015 CXXFLAGS="-g2 $CXXFLAGS" 22016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22017/* end confdefs.h. */ 22018int main(){} 22019_ACEOF 22020if ac_fn_cxx_try_link "$LINENO"; then : 22021 22022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22023$as_echo "yes" >&6; } 22024 22025 22026else 22027 22028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22029$as_echo "no" >&6; } 22030 CXXFLAGS="$_svn_xxflags__save" 22031 22032 22033 _svn_xxflags__save="$CXXFLAGS" 22034 ac_ext=cpp 22035ac_cpp='$CXXCPP $CPPFLAGS' 22036ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22037ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22038ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22039 22040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g" >&5 22041$as_echo_n "checking if $CXX accepts -g... " >&6; } 22042 CXXFLAGS="-g $CXXFLAGS" 22043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22044/* end confdefs.h. */ 22045int main(){} 22046_ACEOF 22047if ac_fn_cxx_try_link "$LINENO"; then : 22048 22049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22050$as_echo "yes" >&6; } 22051 22052 22053else 22054 22055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22056$as_echo "no" >&6; } 22057 CXXFLAGS="$_svn_xxflags__save" 22058 22059 22060fi 22061rm -f core conftest.err conftest.$ac_objext \ 22062 conftest$ac_exeext conftest.$ac_ext 22063 ac_ext=cpp 22064ac_cpp='$CXXCPP $CPPFLAGS' 22065ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22066ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22067ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22068 22069 22070 22071fi 22072rm -f core conftest.err conftest.$ac_objext \ 22073 conftest$ac_exeext conftest.$ac_ext 22074 ac_ext=cpp 22075ac_cpp='$CXXCPP $CPPFLAGS' 22076ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22077ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22078ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22079 22080 22081 22082fi 22083rm -f core conftest.err conftest.$ac_objext \ 22084 conftest$ac_exeext conftest.$ac_ext 22085 ac_ext=c 22086ac_cpp='$CPP $CPPFLAGS' 22087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22089ac_compiler_gnu=$ac_cv_c_compiler_gnu 22090 22091 22092 fi 22093 CFLAGS="$CFLAGS -DSVN_DEBUG -DAP_DEBUG" 22094 CXXFLAGS="$CXXFLAGS -DSVN_DEBUG -DAP_DEBUG" 22095elif test "$enable_debugging" = "no" ; then 22096 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling debugging" >&5 22097$as_echo "$as_me: Disabling debugging" >&6;} 22098 CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`" 22099 CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`" 22100 CFLAGS="$CFLAGS -DNDEBUG" 22101 CXXFLAGS="$CXXFLAGS -DNDEBUG" 22102# elif test "$enable_debugging" = "maybe" ; then 22103# # do nothing 22104fi 22105 22106if test "$enable_optimization" = "yes"; then 22107 if test -z "`echo $CUSERFLAGS' ' | $EGREP -- '-O[^ ]* '`"; then 22108 CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`" 22109 if test "$enable_debugging" = "yes"; then 22110 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C (with debugging enabled)" >&5 22111$as_echo "$as_me: Enabling optimizations for C (with debugging enabled)" >&6;} 22112 22113 _svn_xxflags__save="$CFLAGS" 22114 ac_ext=c 22115ac_cpp='$CPP $CPPFLAGS' 22116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22118ac_compiler_gnu=$ac_cv_c_compiler_gnu 22119 22120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O1" >&5 22121$as_echo_n "checking if $CC accepts -O1... " >&6; } 22122 CFLAGS="-O1 $CFLAGS" 22123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22124/* end confdefs.h. */ 22125int main(void){return 0;} 22126_ACEOF 22127if ac_fn_c_try_link "$LINENO"; then : 22128 22129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22130$as_echo "yes" >&6; } 22131 22132 22133else 22134 22135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22136$as_echo "no" >&6; } 22137 CFLAGS="$_svn_xxflags__save" 22138 22139 22140 _svn_xxflags__save="$CFLAGS" 22141 ac_ext=c 22142ac_cpp='$CPP $CPPFLAGS' 22143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22145ac_compiler_gnu=$ac_cv_c_compiler_gnu 22146 22147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O" >&5 22148$as_echo_n "checking if $CC accepts -O... " >&6; } 22149 CFLAGS="-O $CFLAGS" 22150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22151/* end confdefs.h. */ 22152int main(void){return 0;} 22153_ACEOF 22154if ac_fn_c_try_link "$LINENO"; then : 22155 22156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22157$as_echo "yes" >&6; } 22158 22159 22160else 22161 22162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22163$as_echo "no" >&6; } 22164 CFLAGS="$_svn_xxflags__save" 22165 22166 22167fi 22168rm -f core conftest.err conftest.$ac_objext \ 22169 conftest$ac_exeext conftest.$ac_ext 22170 ac_ext=c 22171ac_cpp='$CPP $CPPFLAGS' 22172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22174ac_compiler_gnu=$ac_cv_c_compiler_gnu 22175 22176 22177 22178fi 22179rm -f core conftest.err conftest.$ac_objext \ 22180 conftest$ac_exeext conftest.$ac_ext 22181 ac_ext=c 22182ac_cpp='$CPP $CPPFLAGS' 22183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22185ac_compiler_gnu=$ac_cv_c_compiler_gnu 22186 22187 22188 else 22189 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C" >&5 22190$as_echo "$as_me: Enabling optimizations for C" >&6;} 22191 22192 _svn_xxflags__save="$CFLAGS" 22193 ac_ext=c 22194ac_cpp='$CPP $CPPFLAGS' 22195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22197ac_compiler_gnu=$ac_cv_c_compiler_gnu 22198 22199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O3" >&5 22200$as_echo_n "checking if $CC accepts -O3... " >&6; } 22201 CFLAGS="-O3 $CFLAGS" 22202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22203/* end confdefs.h. */ 22204int main(void){return 0;} 22205_ACEOF 22206if ac_fn_c_try_link "$LINENO"; then : 22207 22208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22209$as_echo "yes" >&6; } 22210 22211 22212else 22213 22214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22215$as_echo "no" >&6; } 22216 CFLAGS="$_svn_xxflags__save" 22217 22218 22219 _svn_xxflags__save="$CFLAGS" 22220 ac_ext=c 22221ac_cpp='$CPP $CPPFLAGS' 22222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22224ac_compiler_gnu=$ac_cv_c_compiler_gnu 22225 22226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O2" >&5 22227$as_echo_n "checking if $CC accepts -O2... " >&6; } 22228 CFLAGS="-O2 $CFLAGS" 22229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22230/* end confdefs.h. */ 22231int main(void){return 0;} 22232_ACEOF 22233if ac_fn_c_try_link "$LINENO"; then : 22234 22235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22236$as_echo "yes" >&6; } 22237 22238 22239else 22240 22241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22242$as_echo "no" >&6; } 22243 CFLAGS="$_svn_xxflags__save" 22244 22245 22246 _svn_xxflags__save="$CFLAGS" 22247 ac_ext=c 22248ac_cpp='$CPP $CPPFLAGS' 22249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22251ac_compiler_gnu=$ac_cv_c_compiler_gnu 22252 22253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O1" >&5 22254$as_echo_n "checking if $CC accepts -O1... " >&6; } 22255 CFLAGS="-O1 $CFLAGS" 22256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22257/* end confdefs.h. */ 22258int main(void){return 0;} 22259_ACEOF 22260if ac_fn_c_try_link "$LINENO"; then : 22261 22262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22263$as_echo "yes" >&6; } 22264 22265 22266else 22267 22268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22269$as_echo "no" >&6; } 22270 CFLAGS="$_svn_xxflags__save" 22271 22272 22273 _svn_xxflags__save="$CFLAGS" 22274 ac_ext=c 22275ac_cpp='$CPP $CPPFLAGS' 22276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22278ac_compiler_gnu=$ac_cv_c_compiler_gnu 22279 22280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O" >&5 22281$as_echo_n "checking if $CC accepts -O... " >&6; } 22282 CFLAGS="-O $CFLAGS" 22283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22284/* end confdefs.h. */ 22285int main(void){return 0;} 22286_ACEOF 22287if ac_fn_c_try_link "$LINENO"; then : 22288 22289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22290$as_echo "yes" >&6; } 22291 22292 22293else 22294 22295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22296$as_echo "no" >&6; } 22297 CFLAGS="$_svn_xxflags__save" 22298 22299 22300fi 22301rm -f core conftest.err conftest.$ac_objext \ 22302 conftest$ac_exeext conftest.$ac_ext 22303 ac_ext=c 22304ac_cpp='$CPP $CPPFLAGS' 22305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22307ac_compiler_gnu=$ac_cv_c_compiler_gnu 22308 22309 22310 22311fi 22312rm -f core conftest.err conftest.$ac_objext \ 22313 conftest$ac_exeext conftest.$ac_ext 22314 ac_ext=c 22315ac_cpp='$CPP $CPPFLAGS' 22316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22318ac_compiler_gnu=$ac_cv_c_compiler_gnu 22319 22320 22321 22322fi 22323rm -f core conftest.err conftest.$ac_objext \ 22324 conftest$ac_exeext conftest.$ac_ext 22325 ac_ext=c 22326ac_cpp='$CPP $CPPFLAGS' 22327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22329ac_compiler_gnu=$ac_cv_c_compiler_gnu 22330 22331 22332 22333fi 22334rm -f core conftest.err conftest.$ac_objext \ 22335 conftest$ac_exeext conftest.$ac_ext 22336 ac_ext=c 22337ac_cpp='$CPP $CPPFLAGS' 22338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22340ac_compiler_gnu=$ac_cv_c_compiler_gnu 22341 22342 22343 22344 _svn_xxflags__save="$CFLAGS" 22345 ac_ext=c 22346ac_cpp='$CPP $CPPFLAGS' 22347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22349ac_compiler_gnu=$ac_cv_c_compiler_gnu 22350 22351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-clobbered" >&5 22352$as_echo_n "checking if $CC accepts -Wno-clobbered... " >&6; } 22353 CFLAGS="-Wno-clobbered $CFLAGS" 22354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22355/* end confdefs.h. */ 22356int main(void){return 0;} 22357_ACEOF 22358if ac_fn_c_try_link "$LINENO"; then : 22359 22360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22361$as_echo "yes" >&6; } 22362 22363 22364else 22365 22366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22367$as_echo "no" >&6; } 22368 CFLAGS="$_svn_xxflags__save" 22369 22370 22371fi 22372rm -f core conftest.err conftest.$ac_objext \ 22373 conftest$ac_exeext conftest.$ac_ext 22374 ac_ext=c 22375ac_cpp='$CPP $CPPFLAGS' 22376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22378ac_compiler_gnu=$ac_cv_c_compiler_gnu 22379 22380 22381 fi 22382 fi 22383 if test -z "`echo $CXXUSERFLAGS' ' | $EGREP -- '-O[^ ]* '`"; then 22384 CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`" 22385 if test "$enable_debugging" = "yes"; then 22386 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C++ (with debugging enabled)" >&5 22387$as_echo "$as_me: Enabling optimizations for C++ (with debugging enabled)" >&6;} 22388 22389 _svn_xxflags__save="$CXXFLAGS" 22390 ac_ext=cpp 22391ac_cpp='$CXXCPP $CPPFLAGS' 22392ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22393ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22394ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22395 22396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O1" >&5 22397$as_echo_n "checking if $CXX accepts -O1... " >&6; } 22398 CXXFLAGS="-O1 $CXXFLAGS" 22399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22400/* end confdefs.h. */ 22401int main(){} 22402_ACEOF 22403if ac_fn_cxx_try_link "$LINENO"; then : 22404 22405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22406$as_echo "yes" >&6; } 22407 22408 22409else 22410 22411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22412$as_echo "no" >&6; } 22413 CXXFLAGS="$_svn_xxflags__save" 22414 22415 22416 _svn_xxflags__save="$CXXFLAGS" 22417 ac_ext=cpp 22418ac_cpp='$CXXCPP $CPPFLAGS' 22419ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22420ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22421ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22422 22423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O" >&5 22424$as_echo_n "checking if $CXX accepts -O... " >&6; } 22425 CXXFLAGS="-O $CXXFLAGS" 22426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22427/* end confdefs.h. */ 22428int main(){} 22429_ACEOF 22430if ac_fn_cxx_try_link "$LINENO"; then : 22431 22432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22433$as_echo "yes" >&6; } 22434 22435 22436else 22437 22438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22439$as_echo "no" >&6; } 22440 CXXFLAGS="$_svn_xxflags__save" 22441 22442 22443fi 22444rm -f core conftest.err conftest.$ac_objext \ 22445 conftest$ac_exeext conftest.$ac_ext 22446 ac_ext=cpp 22447ac_cpp='$CXXCPP $CPPFLAGS' 22448ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22449ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22450ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22451 22452 22453 22454fi 22455rm -f core conftest.err conftest.$ac_objext \ 22456 conftest$ac_exeext conftest.$ac_ext 22457 ac_ext=c 22458ac_cpp='$CPP $CPPFLAGS' 22459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22461ac_compiler_gnu=$ac_cv_c_compiler_gnu 22462 22463 22464 else 22465 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C++" >&5 22466$as_echo "$as_me: Enabling optimizations for C++" >&6;} 22467 22468 _svn_xxflags__save="$CXXFLAGS" 22469 ac_ext=cpp 22470ac_cpp='$CXXCPP $CPPFLAGS' 22471ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22472ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22473ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22474 22475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O3" >&5 22476$as_echo_n "checking if $CXX accepts -O3... " >&6; } 22477 CXXFLAGS="-O3 $CXXFLAGS" 22478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22479/* end confdefs.h. */ 22480int main(){} 22481_ACEOF 22482if ac_fn_cxx_try_link "$LINENO"; then : 22483 22484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22485$as_echo "yes" >&6; } 22486 22487 22488else 22489 22490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22491$as_echo "no" >&6; } 22492 CXXFLAGS="$_svn_xxflags__save" 22493 22494 22495 _svn_xxflags__save="$CXXFLAGS" 22496 ac_ext=cpp 22497ac_cpp='$CXXCPP $CPPFLAGS' 22498ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22499ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22500ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22501 22502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O2" >&5 22503$as_echo_n "checking if $CXX accepts -O2... " >&6; } 22504 CXXFLAGS="-O2 $CXXFLAGS" 22505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22506/* end confdefs.h. */ 22507int main(){} 22508_ACEOF 22509if ac_fn_cxx_try_link "$LINENO"; then : 22510 22511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22512$as_echo "yes" >&6; } 22513 22514 22515else 22516 22517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22518$as_echo "no" >&6; } 22519 CXXFLAGS="$_svn_xxflags__save" 22520 22521 22522 _svn_xxflags__save="$CXXFLAGS" 22523 ac_ext=cpp 22524ac_cpp='$CXXCPP $CPPFLAGS' 22525ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22526ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22527ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22528 22529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O1" >&5 22530$as_echo_n "checking if $CXX accepts -O1... " >&6; } 22531 CXXFLAGS="-O1 $CXXFLAGS" 22532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22533/* end confdefs.h. */ 22534int main(){} 22535_ACEOF 22536if ac_fn_cxx_try_link "$LINENO"; then : 22537 22538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22539$as_echo "yes" >&6; } 22540 22541 22542else 22543 22544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22545$as_echo "no" >&6; } 22546 CXXFLAGS="$_svn_xxflags__save" 22547 22548 22549 _svn_xxflags__save="$CXXFLAGS" 22550 ac_ext=cpp 22551ac_cpp='$CXXCPP $CPPFLAGS' 22552ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22553ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22554ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22555 22556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O" >&5 22557$as_echo_n "checking if $CXX accepts -O... " >&6; } 22558 CXXFLAGS="-O $CXXFLAGS" 22559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22560/* end confdefs.h. */ 22561int main(){} 22562_ACEOF 22563if ac_fn_cxx_try_link "$LINENO"; then : 22564 22565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22566$as_echo "yes" >&6; } 22567 22568 22569else 22570 22571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22572$as_echo "no" >&6; } 22573 CXXFLAGS="$_svn_xxflags__save" 22574 22575 22576fi 22577rm -f core conftest.err conftest.$ac_objext \ 22578 conftest$ac_exeext conftest.$ac_ext 22579 ac_ext=cpp 22580ac_cpp='$CXXCPP $CPPFLAGS' 22581ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22582ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22583ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22584 22585 22586 22587fi 22588rm -f core conftest.err conftest.$ac_objext \ 22589 conftest$ac_exeext conftest.$ac_ext 22590 ac_ext=cpp 22591ac_cpp='$CXXCPP $CPPFLAGS' 22592ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22593ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22594ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22595 22596 22597 22598fi 22599rm -f core conftest.err conftest.$ac_objext \ 22600 conftest$ac_exeext conftest.$ac_ext 22601 ac_ext=cpp 22602ac_cpp='$CXXCPP $CPPFLAGS' 22603ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22604ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22605ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22606 22607 22608 22609fi 22610rm -f core conftest.err conftest.$ac_objext \ 22611 conftest$ac_exeext conftest.$ac_ext 22612 ac_ext=c 22613ac_cpp='$CPP $CPPFLAGS' 22614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22616ac_compiler_gnu=$ac_cv_c_compiler_gnu 22617 22618 22619 22620 _svn_xxflags__save="$CXXFLAGS" 22621 ac_ext=cpp 22622ac_cpp='$CXXCPP $CPPFLAGS' 22623ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22624ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22625ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22626 22627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wno-clobbered" >&5 22628$as_echo_n "checking if $CXX accepts -Wno-clobbered... " >&6; } 22629 CXXFLAGS="-Wno-clobbered $CXXFLAGS" 22630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22631/* end confdefs.h. */ 22632int main(){} 22633_ACEOF 22634if ac_fn_cxx_try_link "$LINENO"; then : 22635 22636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22637$as_echo "yes" >&6; } 22638 22639 22640else 22641 22642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22643$as_echo "no" >&6; } 22644 CXXFLAGS="$_svn_xxflags__save" 22645 22646 22647fi 22648rm -f core conftest.err conftest.$ac_objext \ 22649 conftest$ac_exeext conftest.$ac_ext 22650 ac_ext=c 22651ac_cpp='$CPP $CPPFLAGS' 22652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22654ac_compiler_gnu=$ac_cv_c_compiler_gnu 22655 22656 22657 fi 22658 fi 22659elif test "$enable_optimization" = "no"; then 22660 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling optimizations" >&5 22661$as_echo "$as_me: Disabling optimizations" >&6;} 22662 CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`" 22663 CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`" 22664# elif test "$enable_optimization" = "maybe" ; then 22665# # do nothing 22666fi 22667 22668{ $as_echo "$as_me:${as_lineno-$LINENO}: C compiler flags: $CFLAGS" >&5 22669$as_echo "$as_me: C compiler flags: $CFLAGS" >&6;} 22670{ $as_echo "$as_me:${as_lineno-$LINENO}: language-level: $CMODEFLAGS" >&5 22671$as_echo "$as_me: language-level: $CMODEFLAGS" >&6;} 22672{ $as_echo "$as_me:${as_lineno-$LINENO}: user-defined: $CUSERFLAGS" >&5 22673$as_echo "$as_me: user-defined: $CUSERFLAGS" >&6;} 22674{ $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: $CMAINTAINERFLAGS" >&5 22675$as_echo "$as_me: maintainer-mode: $CMAINTAINERFLAGS" >&6;} 22676{ $as_echo "$as_me:${as_lineno-$LINENO}: C++ compiler flags: $CXXFLAGS" >&5 22677$as_echo "$as_me: C++ compiler flags: $CXXFLAGS" >&6;} 22678{ $as_echo "$as_me:${as_lineno-$LINENO}: language-level: $CXXMODEFLAGS" >&5 22679$as_echo "$as_me: language-level: $CXXMODEFLAGS" >&6;} 22680{ $as_echo "$as_me:${as_lineno-$LINENO}: user-defined: $CXXUSERFLAGS" >&5 22681$as_echo "$as_me: user-defined: $CXXUSERFLAGS" >&6;} 22682{ $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: $CXXMAINTAINERFLAGS" >&5 22683$as_echo "$as_me: maintainer-mode: $CXXMAINTAINERFLAGS" >&6;} 22684 22685# Check whether --enable-full-version-match was given. 22686if test "${enable_full_version_match+set}" = set; then : 22687 enableval=$enable_full_version_match; 22688 if test "$enableval" = "no" ; then 22689 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling svn full version matching" >&5 22690$as_echo "$as_me: Disabling svn full version matching" >&6;} 22691 22692$as_echo "#define SVN_DISABLE_FULL_VERSION_MATCH 1" >>confdefs.h 22693 22694 fi 22695 22696fi 22697 22698 22699 22700# Check whether --with-editor was given. 22701if test "${with_editor+set}" = set; then : 22702 withval=$with_editor; 22703 22704 if test "$withval" = "yes" ; then 22705 as_fn_error $? "--with-editor requires an argument." "$LINENO" 5 22706 else 22707 SVN_CLIENT_EDITOR=$withval 22708 22709cat >>confdefs.h <<_ACEOF 22710#define SVN_CLIENT_EDITOR "$SVN_CLIENT_EDITOR" 22711_ACEOF 22712 22713 22714 fi 22715 22716 22717fi 22718 22719 22720 22721 zlib_found=no 22722 zlib_skip=no 22723 22724 22725# Check whether --with-zlib was given. 22726if test "${with_zlib+set}" = set; then : 22727 withval=$with_zlib; 22728 if test "$withval" = "yes"; then 22729 zlib_skip=no 22730 elif test "$withval" = "no"; then 22731 zlib_skip=yes 22732 else 22733 zlib_skip=no 22734 zlib_prefix="$withval" 22735 fi 22736 22737fi 22738 22739 22740 if test "$zlib_skip" = "yes"; then 22741 as_fn_error $? "subversion requires zlib" "$LINENO" 5 22742 fi 22743 22744 if test -n "$zlib_prefix"; then 22745 { $as_echo "$as_me:${as_lineno-$LINENO}: zlib library configuration via prefix" >&5 22746$as_echo "$as_me: zlib library configuration via prefix" >&6;} 22747 save_cppflags="$CPPFLAGS" 22748 CPPFLAGS="$CPPFLAGS -I$zlib_prefix/include" 22749 for ac_header in zlib.h 22750do : 22751 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 22752if test "x$ac_cv_header_zlib_h" = xyes; then : 22753 cat >>confdefs.h <<_ACEOF 22754#define HAVE_ZLIB_H 1 22755_ACEOF 22756 22757 save_ldflags="$LDFLAGS" 22758 LDFLAGS="$LDFLAGS -L$zlib_prefix/lib" 22759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5 22760$as_echo_n "checking for inflate in -lz... " >&6; } 22761if ${ac_cv_lib_z_inflate+:} false; then : 22762 $as_echo_n "(cached) " >&6 22763else 22764 ac_check_lib_save_LIBS=$LIBS 22765LIBS="-lz $LIBS" 22766cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22767/* end confdefs.h. */ 22768 22769/* Override any GCC internal prototype to avoid an error. 22770 Use char because int might match the return type of a GCC 22771 builtin and then its argument prototype would still apply. */ 22772#ifdef __cplusplus 22773extern "C" 22774#endif 22775char inflate (); 22776int 22777main () 22778{ 22779return inflate (); 22780 ; 22781 return 0; 22782} 22783_ACEOF 22784if ac_fn_c_try_link "$LINENO"; then : 22785 ac_cv_lib_z_inflate=yes 22786else 22787 ac_cv_lib_z_inflate=no 22788fi 22789rm -f core conftest.err conftest.$ac_objext \ 22790 conftest$ac_exeext conftest.$ac_ext 22791LIBS=$ac_check_lib_save_LIBS 22792fi 22793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5 22794$as_echo "$ac_cv_lib_z_inflate" >&6; } 22795if test "x$ac_cv_lib_z_inflate" = xyes; then : 22796 22797 zlib_found="yes" 22798 SVN_ZLIB_INCLUDES="-I$zlib_prefix/include" 22799 SVN_ZLIB_LIBS="` 22800 input_flags="-L$zlib_prefix/lib" 22801 output_flags="" 22802 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 22803 for flag in $input_flags; do 22804 filter="no" 22805 for dir in $filtered_dirs; do 22806 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 22807 filter="yes" 22808 break 22809 fi 22810 done 22811 if test "$filter" = "no"; then 22812 output_flags="$output_flags $flag" 22813 fi 22814 done 22815 if test -n "$output_flags"; then 22816 printf "%s" "${output_flags# }" 22817 fi 22818` -lz" 22819 22820fi 22821 22822 LDFLAGS="$save_ldflags" 22823 22824fi 22825 22826done 22827 22828 CPPFLAGS="$save_cppflags" 22829 else 22830 22831 { $as_echo "$as_me:${as_lineno-$LINENO}: zlib library configuration via pkg-config" >&5 22832$as_echo "$as_me: zlib library configuration via pkg-config" >&6;} 22833 if test -n "$PKG_CONFIG"; then 22834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib library" >&5 22835$as_echo_n "checking for zlib library... " >&6; } 22836 if $PKG_CONFIG zlib --exists; then 22837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22838$as_echo "yes" >&6; } 22839 zlib_found=yes 22840 SVN_ZLIB_INCLUDES=`$PKG_CONFIG zlib --cflags` 22841 SVN_ZLIB_LIBS=`$PKG_CONFIG zlib --libs` 22842 SVN_ZLIB_LIBS="` 22843 input_flags="$SVN_ZLIB_LIBS" 22844 output_flags="" 22845 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 22846 for flag in $input_flags; do 22847 filter="no" 22848 for dir in $filtered_dirs; do 22849 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 22850 filter="yes" 22851 break 22852 fi 22853 done 22854 if test "$filter" = "no"; then 22855 output_flags="$output_flags $flag" 22856 fi 22857 done 22858 if test -n "$output_flags"; then 22859 printf "%s" "${output_flags# }" 22860 fi 22861`" 22862 else 22863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22864$as_echo "no" >&6; } 22865 fi 22866 fi 22867 22868 22869 if test "$zlib_found" = "no"; then 22870 { $as_echo "$as_me:${as_lineno-$LINENO}: zlib library configuration" >&5 22871$as_echo "$as_me: zlib library configuration" >&6;} 22872 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 22873if test "x$ac_cv_header_zlib_h" = xyes; then : 22874 22875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5 22876$as_echo_n "checking for inflate in -lz... " >&6; } 22877if ${ac_cv_lib_z_inflate+:} false; then : 22878 $as_echo_n "(cached) " >&6 22879else 22880 ac_check_lib_save_LIBS=$LIBS 22881LIBS="-lz $LIBS" 22882cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22883/* end confdefs.h. */ 22884 22885/* Override any GCC internal prototype to avoid an error. 22886 Use char because int might match the return type of a GCC 22887 builtin and then its argument prototype would still apply. */ 22888#ifdef __cplusplus 22889extern "C" 22890#endif 22891char inflate (); 22892int 22893main () 22894{ 22895return inflate (); 22896 ; 22897 return 0; 22898} 22899_ACEOF 22900if ac_fn_c_try_link "$LINENO"; then : 22901 ac_cv_lib_z_inflate=yes 22902else 22903 ac_cv_lib_z_inflate=no 22904fi 22905rm -f core conftest.err conftest.$ac_objext \ 22906 conftest$ac_exeext conftest.$ac_ext 22907LIBS=$ac_check_lib_save_LIBS 22908fi 22909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5 22910$as_echo "$ac_cv_lib_z_inflate" >&6; } 22911if test "x$ac_cv_lib_z_inflate" = xyes; then : 22912 22913 zlib_found="builtin" 22914 SVN_ZLIB_LIBS="-lz" 22915 22916fi 22917 22918 22919fi 22920 22921 22922 fi 22923 fi 22924 22925 if test "$zlib_found" = "no"; then 22926 as_fn_error $? "subversion requires zlib" "$LINENO" 5 22927 fi 22928 22929 22930 22931 22932 22933 22934 22935# Check whether --with-lz4 was given. 22936if test "${with_lz4+set}" = set; then : 22937 withval=$with_lz4; 22938 if test "$withval" = internal; then 22939 lz4_prefix=internal 22940 elif test "$withval" = yes; then 22941 lz4_prefix=std 22942 else 22943 lz4_prefix="$withval" 22944 fi 22945 22946else 22947 lz4_prefix=std 22948fi 22949 22950 22951 if test "$lz4_prefix" = "no"; then 22952 as_fn_error $? "Subversion requires LZ4" "$LINENO" 5 22953 fi 22954 if test "$lz4_prefix" = "internal"; then 22955 { $as_echo "$as_me:${as_lineno-$LINENO}: using internal lz4" >&5 22956$as_echo "$as_me: using internal lz4" >&6;} 22957 22958$as_echo "#define SVN_INTERNAL_LZ4 1" >>confdefs.h 22959 22960 else 22961 if test "$lz4_prefix" = "std"; then 22962 22963 if test -n "$PKG_CONFIG"; then 22964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lz4 library via pkg-config" >&5 22965$as_echo_n "checking for lz4 library via pkg-config... " >&6; } 22966 if $PKG_CONFIG liblz4 --atleast-version=129 || $PKG_CONFIG liblz4 --max-version=3; then 22967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22968$as_echo "yes" >&6; } 22969 lz4_found=yes 22970 SVN_LZ4_INCLUDES=`$PKG_CONFIG liblz4 --cflags` 22971 SVN_LZ4_LIBS=`$PKG_CONFIG liblz4 --libs` 22972 SVN_LZ4_LIBS="` 22973 input_flags="$SVN_LZ4_LIBS" 22974 output_flags="" 22975 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 22976 for flag in $input_flags; do 22977 filter="no" 22978 for dir in $filtered_dirs; do 22979 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 22980 filter="yes" 22981 break 22982 fi 22983 done 22984 if test "$filter" = "no"; then 22985 output_flags="$output_flags $flag" 22986 fi 22987 done 22988 if test -n "$output_flags"; then 22989 printf "%s" "${output_flags# }" 22990 fi 22991`" 22992 else 22993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22994$as_echo "no" >&6; } 22995 fi 22996 fi 22997 if test "$lz4_found" != "yes"; then 22998 { $as_echo "$as_me:${as_lineno-$LINENO}: lz4 configuration without pkg-config" >&5 22999$as_echo "$as_me: lz4 configuration without pkg-config" >&6;} 23000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZ4_compress_default in -llz4" >&5 23001$as_echo_n "checking for LZ4_compress_default in -llz4... " >&6; } 23002if ${ac_cv_lib_lz4_LZ4_compress_default+:} false; then : 23003 $as_echo_n "(cached) " >&6 23004else 23005 ac_check_lib_save_LIBS=$LIBS 23006LIBS="-llz4 $LIBS" 23007cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23008/* end confdefs.h. */ 23009 23010/* Override any GCC internal prototype to avoid an error. 23011 Use char because int might match the return type of a GCC 23012 builtin and then its argument prototype would still apply. */ 23013#ifdef __cplusplus 23014extern "C" 23015#endif 23016char LZ4_compress_default (); 23017int 23018main () 23019{ 23020return LZ4_compress_default (); 23021 ; 23022 return 0; 23023} 23024_ACEOF 23025if ac_fn_c_try_link "$LINENO"; then : 23026 ac_cv_lib_lz4_LZ4_compress_default=yes 23027else 23028 ac_cv_lib_lz4_LZ4_compress_default=no 23029fi 23030rm -f core conftest.err conftest.$ac_objext \ 23031 conftest$ac_exeext conftest.$ac_ext 23032LIBS=$ac_check_lib_save_LIBS 23033fi 23034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz4_LZ4_compress_default" >&5 23035$as_echo "$ac_cv_lib_lz4_LZ4_compress_default" >&6; } 23036if test "x$ac_cv_lib_lz4_LZ4_compress_default" = xyes; then : 23037 23038 lz4_found=yes 23039 SVN_LZ4_LIBS="-llz4" 23040 23041fi 23042 23043 fi 23044 23045 else 23046 23047 { $as_echo "$as_me:${as_lineno-$LINENO}: lz4 configuration via prefix" >&5 23048$as_echo "$as_me: lz4 configuration via prefix" >&6;} 23049 save_cppflags="$CPPFLAGS" 23050 CPPFLAGS="$CPPFLAGS -I$lz4_prefix/include" 23051 save_ldflags="$LDFLAGS" 23052 LDFLAGS="$LDFLAGS -L$lz4_prefix/lib" 23053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZ4_compress_default in -llz4" >&5 23054$as_echo_n "checking for LZ4_compress_default in -llz4... " >&6; } 23055if ${ac_cv_lib_lz4_LZ4_compress_default+:} false; then : 23056 $as_echo_n "(cached) " >&6 23057else 23058 ac_check_lib_save_LIBS=$LIBS 23059LIBS="-llz4 $LIBS" 23060cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23061/* end confdefs.h. */ 23062 23063/* Override any GCC internal prototype to avoid an error. 23064 Use char because int might match the return type of a GCC 23065 builtin and then its argument prototype would still apply. */ 23066#ifdef __cplusplus 23067extern "C" 23068#endif 23069char LZ4_compress_default (); 23070int 23071main () 23072{ 23073return LZ4_compress_default (); 23074 ; 23075 return 0; 23076} 23077_ACEOF 23078if ac_fn_c_try_link "$LINENO"; then : 23079 ac_cv_lib_lz4_LZ4_compress_default=yes 23080else 23081 ac_cv_lib_lz4_LZ4_compress_default=no 23082fi 23083rm -f core conftest.err conftest.$ac_objext \ 23084 conftest$ac_exeext conftest.$ac_ext 23085LIBS=$ac_check_lib_save_LIBS 23086fi 23087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz4_LZ4_compress_default" >&5 23088$as_echo "$ac_cv_lib_lz4_LZ4_compress_default" >&6; } 23089if test "x$ac_cv_lib_lz4_LZ4_compress_default" = xyes; then : 23090 23091 lz4_found=yes 23092 SVN_LZ4_INCLUDES="-I$lz4_prefix/include" 23093 SVN_LZ4_LIBS="` 23094 input_flags="-L$lz4_prefix/lib" 23095 output_flags="" 23096 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 23097 for flag in $input_flags; do 23098 filter="no" 23099 for dir in $filtered_dirs; do 23100 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 23101 filter="yes" 23102 break 23103 fi 23104 done 23105 if test "$filter" = "no"; then 23106 output_flags="$output_flags $flag" 23107 fi 23108 done 23109 if test -n "$output_flags"; then 23110 printf "%s" "${output_flags# }" 23111 fi 23112` -llz4" 23113 23114fi 23115 23116 LDFLAGS="$save_ldflags" 23117 CPPFLAGS="$save_cppflags" 23118 23119 fi 23120 if test "$lz4_found" != "yes"; then 23121 as_fn_error $? "Subversion requires LZ4 >= r129, or use --with-lz4=internal" "$LINENO" 5 23122 fi 23123 fi 23124 23125 23126 23127 23128 23129 23130# Check whether --with-utf8proc was given. 23131if test "${with_utf8proc+set}" = set; then : 23132 withval=$with_utf8proc; 23133 if test "$withval" = internal; then 23134 utf8proc_prefix=internal 23135 elif test "$withval" = yes; then 23136 utf8proc_prefix=std 23137 else 23138 utf8proc_prefix="$withval" 23139 fi 23140 23141else 23142 utf8proc_prefix=std 23143fi 23144 23145 23146 if test "$utf8proc_prefix" = "no"; then 23147 as_fn_error $? "Subversion requires UTF8PROC" "$LINENO" 5 23148 fi 23149 if test "$utf8proc_prefix" = "internal"; then 23150 { $as_echo "$as_me:${as_lineno-$LINENO}: using internal utf8proc" >&5 23151$as_echo "$as_me: using internal utf8proc" >&6;} 23152 23153$as_echo "#define SVN_INTERNAL_UTF8PROC 1" >>confdefs.h 23154 23155 else 23156 if test "$utf8proc_prefix" = "std"; then 23157 23158 { $as_echo "$as_me:${as_lineno-$LINENO}: utf8proc configuration without pkg-config" >&5 23159$as_echo "$as_me: utf8proc configuration without pkg-config" >&6;} 23160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utf8proc_version in -lutf8proc" >&5 23161$as_echo_n "checking for utf8proc_version in -lutf8proc... " >&6; } 23162if ${ac_cv_lib_utf8proc_utf8proc_version+:} false; then : 23163 $as_echo_n "(cached) " >&6 23164else 23165 ac_check_lib_save_LIBS=$LIBS 23166LIBS="-lutf8proc $LIBS" 23167cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23168/* end confdefs.h. */ 23169 23170/* Override any GCC internal prototype to avoid an error. 23171 Use char because int might match the return type of a GCC 23172 builtin and then its argument prototype would still apply. */ 23173#ifdef __cplusplus 23174extern "C" 23175#endif 23176char utf8proc_version (); 23177int 23178main () 23179{ 23180return utf8proc_version (); 23181 ; 23182 return 0; 23183} 23184_ACEOF 23185if ac_fn_c_try_link "$LINENO"; then : 23186 ac_cv_lib_utf8proc_utf8proc_version=yes 23187else 23188 ac_cv_lib_utf8proc_utf8proc_version=no 23189fi 23190rm -f core conftest.err conftest.$ac_objext \ 23191 conftest$ac_exeext conftest.$ac_ext 23192LIBS=$ac_check_lib_save_LIBS 23193fi 23194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_utf8proc_utf8proc_version" >&5 23195$as_echo "$ac_cv_lib_utf8proc_utf8proc_version" >&6; } 23196if test "x$ac_cv_lib_utf8proc_utf8proc_version" = xyes; then : 23197 23198 utf8proc_found=yes 23199 SVN_UTF8PROC_LIBS="-lutf8proc" 23200 23201fi 23202 23203 23204 else 23205 23206 { $as_echo "$as_me:${as_lineno-$LINENO}: utf8proc configuration via prefix" >&5 23207$as_echo "$as_me: utf8proc configuration via prefix" >&6;} 23208 save_cppflags="$CPPFLAGS" 23209 CPPFLAGS="$CPPFLAGS -I$utf8proc_prefix/include" 23210 save_ldflags="$LDFLAGS" 23211 LDFLAGS="$LDFLAGS -L$utf8proc_prefix/lib" 23212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utf8proc_version in -lutf8proc" >&5 23213$as_echo_n "checking for utf8proc_version in -lutf8proc... " >&6; } 23214if ${ac_cv_lib_utf8proc_utf8proc_version+:} false; then : 23215 $as_echo_n "(cached) " >&6 23216else 23217 ac_check_lib_save_LIBS=$LIBS 23218LIBS="-lutf8proc $LIBS" 23219cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23220/* end confdefs.h. */ 23221 23222/* Override any GCC internal prototype to avoid an error. 23223 Use char because int might match the return type of a GCC 23224 builtin and then its argument prototype would still apply. */ 23225#ifdef __cplusplus 23226extern "C" 23227#endif 23228char utf8proc_version (); 23229int 23230main () 23231{ 23232return utf8proc_version (); 23233 ; 23234 return 0; 23235} 23236_ACEOF 23237if ac_fn_c_try_link "$LINENO"; then : 23238 ac_cv_lib_utf8proc_utf8proc_version=yes 23239else 23240 ac_cv_lib_utf8proc_utf8proc_version=no 23241fi 23242rm -f core conftest.err conftest.$ac_objext \ 23243 conftest$ac_exeext conftest.$ac_ext 23244LIBS=$ac_check_lib_save_LIBS 23245fi 23246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_utf8proc_utf8proc_version" >&5 23247$as_echo "$ac_cv_lib_utf8proc_utf8proc_version" >&6; } 23248if test "x$ac_cv_lib_utf8proc_utf8proc_version" = xyes; then : 23249 23250 utf8proc_found=yes 23251 SVN_UTF8PROC_INCLUDES="-I$utf8proc_prefix/include" 23252 SVN_UTF8PROC_LIBS="` 23253 input_flags="-L$utf8proc_prefix/lib" 23254 output_flags="" 23255 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 23256 for flag in $input_flags; do 23257 filter="no" 23258 for dir in $filtered_dirs; do 23259 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 23260 filter="yes" 23261 break 23262 fi 23263 done 23264 if test "$filter" = "no"; then 23265 output_flags="$output_flags $flag" 23266 fi 23267 done 23268 if test -n "$output_flags"; then 23269 printf "%s" "${output_flags# }" 23270 fi 23271` -lutf8proc" 23272 23273fi 23274 23275 LDFLAGS="$save_ldflags" 23276 CPPFLAGS="$save_cppflags" 23277 23278 fi 23279 if test "$utf8proc_found" != "yes"; then 23280 as_fn_error $? "Subversion requires UTF8PROC; install it or re-run configure with \"--with-utf8proc=internal\"" "$LINENO" 5 23281 fi 23282 fi 23283 23284 23285 23286 23287MOD_ACTIVATION="" 23288# Check whether --enable-mod-activation was given. 23289if test "${enable_mod_activation+set}" = set; then : 23290 enableval=$enable_mod_activation; 23291 if test "$enableval" = "yes" ; then 23292 MOD_ACTIVATION="-a" 23293 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling apache module activation" >&5 23294$as_echo "$as_me: Enabling apache module activation" >&6;} 23295 else 23296 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling apache module activation" >&5 23297$as_echo "$as_me: Disabling apache module activation" >&6;} 23298 fi 23299 23300fi 23301 23302 23303 23304 23305 23306# Check whether --enable-gcov was given. 23307if test "${enable_gcov+set}" = set; then : 23308 enableval=$enable_gcov; 23309 if test "$enableval" = "yes" ; then 23310 if test "$GCC" = "yes"; then 23311 if test "$svn_enable_shared" = "yes" ; then 23312 as_fn_error $? "Can't have --enable-gcov without --disable-shared (we 23313 recommend also using --enable-all-static)." "$LINENO" 5 23314 fi 23315 if test ! "$enable_all_static" = "yes" ; then 23316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We recommend --enable-all-static with --enable-gcov." >&5 23317$as_echo "$as_me: WARNING: We recommend --enable-all-static with --enable-gcov." >&2;} 23318 fi 23319 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling gcov coverage testing." >&5 23320$as_echo "$as_me: Enabling gcov coverage testing." >&6;} 23321 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage" 23322 CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage" 23323 else 23324 as_fn_error $? "We only support --enable-gcov with GCC right now." "$LINENO" 5 23325 fi 23326 fi 23327 23328fi 23329 23330 23331# Check whether --enable-gprof was given. 23332if test "${enable_gprof+set}" = set; then : 23333 enableval=$enable_gprof; 23334 if test "$enableval" = "yes" ; then 23335 if test "$GCC" = "yes"; then 23336 if test "$svn_enable_shared" = "yes" ; then 23337 as_fn_error $? "Can't have --enable-gprof without --disable-shared (we 23338 recommend also using --enable-all-static)." "$LINENO" 5 23339 fi 23340 if test ! "$enable_all_static" = "yes" ; then 23341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We recommend --enable-all-static with --enable-gprof." >&5 23342$as_echo "$as_me: WARNING: We recommend --enable-all-static with --enable-gprof." >&2;} 23343 fi 23344 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling gprof profiling data (to gmon.out)." >&5 23345$as_echo "$as_me: Enabling gprof profiling data (to gmon.out)." >&6;} 23346 CFLAGS="$CFLAGS -pg" 23347 CXXFLAGS="$CXXFLAGS -pg" 23348 LT_LDFLAGS="$LT_LDFLAGS -pg" 23349 else 23350 as_fn_error $? "We only support --enable-gprof with GCC right now." "$LINENO" 5 23351 fi 23352 fi 23353 23354fi 23355 23356 23357 23358# Scripting and Bindings languages 23359 23360# Python: Used for testsuite, and bindings 23361 23362 23363PYTHON="`$abs_srcdir/build/find_python.sh`" 23364if test -z "$PYTHON"; then 23365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Python 2.7 or later is required to run the testsuite" >&5 23366$as_echo "$as_me: WARNING: Python 2.7 or later is required to run the testsuite" >&2;} 23367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: or to use the Subversion Python bindings" >&5 23368$as_echo "$as_me: WARNING: or to use the Subversion Python bindings" >&2;} 23369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 23370$as_echo "$as_me: WARNING: " >&2;} 23371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you have a suitable Python installed, but not on the" >&5 23372$as_echo "$as_me: WARNING: If you have a suitable Python installed, but not on the" >&2;} 23373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PATH, set the environment variable PYTHON to the full path" >&5 23374$as_echo "$as_me: WARNING: PATH, set the environment variable PYTHON to the full path" >&2;} 23375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to the Python executable, and re-run configure" >&5 23376$as_echo "$as_me: WARNING: to the Python executable, and re-run configure" >&2;} 23377fi 23378for ac_prog in "$PYTHON" 23379do 23380 # Extract the first word of "$ac_prog", so it can be a program name with args. 23381set dummy $ac_prog; ac_word=$2 23382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23383$as_echo_n "checking for $ac_word... " >&6; } 23384if ${ac_cv_path_PYTHON+:} false; then : 23385 $as_echo_n "(cached) " >&6 23386else 23387 case $PYTHON in 23388 [\\/]* | ?:[\\/]*) 23389 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 23390 ;; 23391 *) 23392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23393for as_dir in $PATH 23394do 23395 IFS=$as_save_IFS 23396 test -z "$as_dir" && as_dir=. 23397 for ac_exec_ext in '' $ac_executable_extensions; do 23398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23399 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 23400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23401 break 2 23402 fi 23403done 23404 done 23405IFS=$as_save_IFS 23406 23407 ;; 23408esac 23409fi 23410PYTHON=$ac_cv_path_PYTHON 23411if test -n "$PYTHON"; then 23412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 23413$as_echo "$PYTHON" >&6; } 23414else 23415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23416$as_echo "no" >&6; } 23417fi 23418 23419 23420 test -n "$PYTHON" && break 23421done 23422test -n "$PYTHON" || PYTHON="none" 23423 23424 23425# The minimum version for the JVM runtime for our Java bytecode. 23426JAVA_OLDEST_WORKING_VER='1.8' 23427# SVN_CHECK_JDK sets $JAVA_CLASSPATH 23428 23429 JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER" 23430 23431# Check whether --with-jdk was given. 23432if test "${with_jdk+set}" = set; then : 23433 withval=$with_jdk; 23434 case "$withval" in 23435 "no") 23436 JDK_SUITABLE=no 23437 ;; 23438 "yes") 23439 23440 where=check 23441 JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER" 23442 23443 JDK=none 23444 JAVA_BIN=none 23445 JAVADOC=none 23446 JAVAC=none 23447 JAVAH=none 23448 JAR=none 23449 JNI_INCLUDES=none 23450 23451 JDK_SUITABLE=no 23452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5 23453$as_echo_n "checking for JDK... " >&6; } 23454 if test $where = check; then 23455 if test -x "$JAVA_HOME/bin/java"; then 23456 JDK="$JAVA_HOME" 23457 elif test -x "/usr/libexec/java_home"; then 23458 JDK=`/usr/libexec/java_home` 23459 elif test -x "/Library/Java/Home/bin/java"; then 23460 JDK="/Library/Java/Home" 23461 elif test -x "/usr/bin/java"; then 23462 JDK="/usr" 23463 elif test -x "/usr/local/bin/java"; then 23464 JDK="/usr/local" 23465 fi 23466 else 23467 JDK=$where 23468 fi 23469 23470 os_arch="`uname`" 23471 if test "$os_arch" = "Darwin"; then 23472 OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2` 23473 23474 if test "$OSX_VER" = "10.4"; then 23475 OSX_VER="10.4u" 23476 fi 23477 23478 OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework" 23479 OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library" 23480 OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework" 23481 fi 23482 23483 if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" && 23484 test -d "/Library/Java/Home"; then 23485 JDK="/Library/Java/Home" 23486 fi 23487 23488 if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then 23489 JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes" 23490 else 23491 JRE_LIB_DIR="$JDK/jre/lib" 23492 fi 23493 23494 if test -f "$JDK/include/jni.h"; then 23495 JNI_INCLUDEDIR="$JDK/include" 23496 JDK_SUITABLE=yes 23497 elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then 23498 JNI_INCLUDEDIR="$JDK/Headers" 23499 JDK_SUITABLE=yes 23500 elif test "$os_arch" = "Darwin" && 23501 test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then 23502 JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers" 23503 JDK_SUITABLE=yes 23504 elif test "$os_arch" = "Darwin" && 23505 test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then 23506 JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers" 23507 JDK_SUITABLE=yes 23508 else 23509 JDK_SUITABLE=no 23510 fi 23511 if test "$JDK_SUITABLE" = "yes"; then 23512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5 23513$as_echo "$JNI_INCLUDEDIR/jni.h" >&6; } 23514 else 23515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23516$as_echo "no" >&6; } 23517 if test "$where" != "check"; then 23518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5 23519$as_echo "$as_me: WARNING: no JNI header files found." >&2;} 23520 if test "$os_arch" = "Darwin"; then 23521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You may need to install the latest Java Development package from http://connect.apple.com/. Apple no longer includes the JNI header files by default on Java updates." >&5 23522$as_echo "$as_me: WARNING: You may need to install the latest Java Development package from http://connect.apple.com/. Apple no longer includes the JNI header files by default on Java updates." >&2;} 23523 fi 23524 fi 23525 fi 23526 23527 if test "$JDK_SUITABLE" = "yes"; then 23528 JAVA_BIN='$(JDK)/bin' 23529 23530 JAVA="$JAVA_BIN/java" 23531 JAVAC="$JAVA_BIN/javac" 23532 JAVAH="$JAVA_BIN/javah" 23533 JAVADOC="$JAVA_BIN/javadoc" 23534 JAR="$JAVA_BIN/jar" 23535 23536 23537# Check whether --with-jikes was given. 23538if test "${with_jikes+set}" = set; then : 23539 withval=$with_jikes; 23540 if test "$withval" != "no"; then 23541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The --with-jikes option was ignored" >&5 23542$as_echo "$as_me: WARNING: The --with-jikes option was ignored" >&2;} 23543 fi 23544 23545fi 23546 23547 23548 # The release for "-source" could actually be greater than that 23549 # of "-target", if we want to cross-compile for lesser JVMs. 23550 if test -z "$JAVAC_FLAGS"; then 23551 JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.8" 23552 if test "$enable_debugging" = "yes"; then 23553 JAVAC_FLAGS="-g -Xlint -Xlint:unchecked -Xlint:serial -Xlint:path $JAVAC_FLAGS" 23554 if test -z "$JAVAC_COMPAT_FLAGS"; then 23555 JAVAC_COMPAT_FLAGS="$JAVAC_FLAGS -Xlint:-unchecked -Xlint:-deprecation -Xlint:-dep-ann -Xlint:-rawtypes" 23556 fi 23557 fi 23558 fi 23559 23560 JNI_INCLUDES="-I$JNI_INCLUDEDIR" 23561 list="`find "$JNI_INCLUDEDIR" -type d -print`" 23562 for dir in $list; do 23563 JNI_INCLUDES="$JNI_INCLUDES -I$dir" 23564 done 23565 fi 23566 23567 23568 23569 23570 23571 23572 23573 23574 23575 23576 23577 ;; 23578 *) 23579 23580 where=$withval 23581 JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER" 23582 23583 JDK=none 23584 JAVA_BIN=none 23585 JAVADOC=none 23586 JAVAC=none 23587 JAVAH=none 23588 JAR=none 23589 JNI_INCLUDES=none 23590 23591 JDK_SUITABLE=no 23592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5 23593$as_echo_n "checking for JDK... " >&6; } 23594 if test $where = check; then 23595 if test -x "$JAVA_HOME/bin/java"; then 23596 JDK="$JAVA_HOME" 23597 elif test -x "/usr/libexec/java_home"; then 23598 JDK=`/usr/libexec/java_home` 23599 elif test -x "/Library/Java/Home/bin/java"; then 23600 JDK="/Library/Java/Home" 23601 elif test -x "/usr/bin/java"; then 23602 JDK="/usr" 23603 elif test -x "/usr/local/bin/java"; then 23604 JDK="/usr/local" 23605 fi 23606 else 23607 JDK=$where 23608 fi 23609 23610 os_arch="`uname`" 23611 if test "$os_arch" = "Darwin"; then 23612 OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2` 23613 23614 if test "$OSX_VER" = "10.4"; then 23615 OSX_VER="10.4u" 23616 fi 23617 23618 OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework" 23619 OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library" 23620 OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework" 23621 fi 23622 23623 if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" && 23624 test -d "/Library/Java/Home"; then 23625 JDK="/Library/Java/Home" 23626 fi 23627 23628 if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then 23629 JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes" 23630 else 23631 JRE_LIB_DIR="$JDK/jre/lib" 23632 fi 23633 23634 if test -f "$JDK/include/jni.h"; then 23635 JNI_INCLUDEDIR="$JDK/include" 23636 JDK_SUITABLE=yes 23637 elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then 23638 JNI_INCLUDEDIR="$JDK/Headers" 23639 JDK_SUITABLE=yes 23640 elif test "$os_arch" = "Darwin" && 23641 test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then 23642 JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers" 23643 JDK_SUITABLE=yes 23644 elif test "$os_arch" = "Darwin" && 23645 test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then 23646 JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers" 23647 JDK_SUITABLE=yes 23648 else 23649 JDK_SUITABLE=no 23650 fi 23651 if test "$JDK_SUITABLE" = "yes"; then 23652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5 23653$as_echo "$JNI_INCLUDEDIR/jni.h" >&6; } 23654 else 23655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23656$as_echo "no" >&6; } 23657 if test "$where" != "check"; then 23658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5 23659$as_echo "$as_me: WARNING: no JNI header files found." >&2;} 23660 if test "$os_arch" = "Darwin"; then 23661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You may need to install the latest Java Development package from http://connect.apple.com/. Apple no longer includes the JNI header files by default on Java updates." >&5 23662$as_echo "$as_me: WARNING: You may need to install the latest Java Development package from http://connect.apple.com/. Apple no longer includes the JNI header files by default on Java updates." >&2;} 23663 fi 23664 fi 23665 fi 23666 23667 if test "$JDK_SUITABLE" = "yes"; then 23668 JAVA_BIN='$(JDK)/bin' 23669 23670 JAVA="$JAVA_BIN/java" 23671 JAVAC="$JAVA_BIN/javac" 23672 JAVAH="$JAVA_BIN/javah" 23673 JAVADOC="$JAVA_BIN/javadoc" 23674 JAR="$JAVA_BIN/jar" 23675 23676 23677# Check whether --with-jikes was given. 23678if test "${with_jikes+set}" = set; then : 23679 withval=$with_jikes; 23680 if test "$withval" != "no"; then 23681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The --with-jikes option was ignored" >&5 23682$as_echo "$as_me: WARNING: The --with-jikes option was ignored" >&2;} 23683 fi 23684 23685fi 23686 23687 23688 # The release for "-source" could actually be greater than that 23689 # of "-target", if we want to cross-compile for lesser JVMs. 23690 if test -z "$JAVAC_FLAGS"; then 23691 JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.8" 23692 if test "$enable_debugging" = "yes"; then 23693 JAVAC_FLAGS="-g -Xlint -Xlint:unchecked -Xlint:serial -Xlint:path $JAVAC_FLAGS" 23694 if test -z "$JAVAC_COMPAT_FLAGS"; then 23695 JAVAC_COMPAT_FLAGS="$JAVAC_FLAGS -Xlint:-unchecked -Xlint:-deprecation -Xlint:-dep-ann -Xlint:-rawtypes" 23696 fi 23697 fi 23698 fi 23699 23700 JNI_INCLUDES="-I$JNI_INCLUDEDIR" 23701 list="`find "$JNI_INCLUDEDIR" -type d -print`" 23702 for dir in $list; do 23703 JNI_INCLUDES="$JNI_INCLUDES -I$dir" 23704 done 23705 fi 23706 23707 23708 23709 23710 23711 23712 23713 23714 23715 23716 23717 ;; 23718 esac 23719 23720else 23721 23722 23723 where=check 23724 JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER" 23725 23726 JDK=none 23727 JAVA_BIN=none 23728 JAVADOC=none 23729 JAVAC=none 23730 JAVAH=none 23731 JAR=none 23732 JNI_INCLUDES=none 23733 23734 JDK_SUITABLE=no 23735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5 23736$as_echo_n "checking for JDK... " >&6; } 23737 if test $where = check; then 23738 if test -x "$JAVA_HOME/bin/java"; then 23739 JDK="$JAVA_HOME" 23740 elif test -x "/usr/libexec/java_home"; then 23741 JDK=`/usr/libexec/java_home` 23742 elif test -x "/Library/Java/Home/bin/java"; then 23743 JDK="/Library/Java/Home" 23744 elif test -x "/usr/bin/java"; then 23745 JDK="/usr" 23746 elif test -x "/usr/local/bin/java"; then 23747 JDK="/usr/local" 23748 fi 23749 else 23750 JDK=$where 23751 fi 23752 23753 os_arch="`uname`" 23754 if test "$os_arch" = "Darwin"; then 23755 OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2` 23756 23757 if test "$OSX_VER" = "10.4"; then 23758 OSX_VER="10.4u" 23759 fi 23760 23761 OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework" 23762 OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library" 23763 OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework" 23764 fi 23765 23766 if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" && 23767 test -d "/Library/Java/Home"; then 23768 JDK="/Library/Java/Home" 23769 fi 23770 23771 if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then 23772 JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes" 23773 else 23774 JRE_LIB_DIR="$JDK/jre/lib" 23775 fi 23776 23777 if test -f "$JDK/include/jni.h"; then 23778 JNI_INCLUDEDIR="$JDK/include" 23779 JDK_SUITABLE=yes 23780 elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then 23781 JNI_INCLUDEDIR="$JDK/Headers" 23782 JDK_SUITABLE=yes 23783 elif test "$os_arch" = "Darwin" && 23784 test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then 23785 JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers" 23786 JDK_SUITABLE=yes 23787 elif test "$os_arch" = "Darwin" && 23788 test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then 23789 JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers" 23790 JDK_SUITABLE=yes 23791 else 23792 JDK_SUITABLE=no 23793 fi 23794 if test "$JDK_SUITABLE" = "yes"; then 23795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5 23796$as_echo "$JNI_INCLUDEDIR/jni.h" >&6; } 23797 else 23798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23799$as_echo "no" >&6; } 23800 if test "$where" != "check"; then 23801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5 23802$as_echo "$as_me: WARNING: no JNI header files found." >&2;} 23803 if test "$os_arch" = "Darwin"; then 23804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You may need to install the latest Java Development package from http://connect.apple.com/. Apple no longer includes the JNI header files by default on Java updates." >&5 23805$as_echo "$as_me: WARNING: You may need to install the latest Java Development package from http://connect.apple.com/. Apple no longer includes the JNI header files by default on Java updates." >&2;} 23806 fi 23807 fi 23808 fi 23809 23810 if test "$JDK_SUITABLE" = "yes"; then 23811 JAVA_BIN='$(JDK)/bin' 23812 23813 JAVA="$JAVA_BIN/java" 23814 JAVAC="$JAVA_BIN/javac" 23815 JAVAH="$JAVA_BIN/javah" 23816 JAVADOC="$JAVA_BIN/javadoc" 23817 JAR="$JAVA_BIN/jar" 23818 23819 23820# Check whether --with-jikes was given. 23821if test "${with_jikes+set}" = set; then : 23822 withval=$with_jikes; 23823 if test "$withval" != "no"; then 23824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The --with-jikes option was ignored" >&5 23825$as_echo "$as_me: WARNING: The --with-jikes option was ignored" >&2;} 23826 fi 23827 23828fi 23829 23830 23831 # The release for "-source" could actually be greater than that 23832 # of "-target", if we want to cross-compile for lesser JVMs. 23833 if test -z "$JAVAC_FLAGS"; then 23834 JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.8" 23835 if test "$enable_debugging" = "yes"; then 23836 JAVAC_FLAGS="-g -Xlint -Xlint:unchecked -Xlint:serial -Xlint:path $JAVAC_FLAGS" 23837 if test -z "$JAVAC_COMPAT_FLAGS"; then 23838 JAVAC_COMPAT_FLAGS="$JAVAC_FLAGS -Xlint:-unchecked -Xlint:-deprecation -Xlint:-dep-ann -Xlint:-rawtypes" 23839 fi 23840 fi 23841 fi 23842 23843 JNI_INCLUDES="-I$JNI_INCLUDEDIR" 23844 list="`find "$JNI_INCLUDEDIR" -type d -print`" 23845 for dir in $list; do 23846 JNI_INCLUDES="$JNI_INCLUDES -I$dir" 23847 done 23848 fi 23849 23850 23851 23852 23853 23854 23855 23856 23857 23858 23859 23860 23861fi 23862 23863 23864 23865# Extract the first word of "perl", so it can be a program name with args. 23866set dummy perl; ac_word=$2 23867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23868$as_echo_n "checking for $ac_word... " >&6; } 23869if ${ac_cv_path_PERL+:} false; then : 23870 $as_echo_n "(cached) " >&6 23871else 23872 case $PERL in 23873 [\\/]* | ?:[\\/]*) 23874 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 23875 ;; 23876 *) 23877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23878for as_dir in $PATH 23879do 23880 IFS=$as_save_IFS 23881 test -z "$as_dir" && as_dir=. 23882 for ac_exec_ext in '' $ac_executable_extensions; do 23883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23884 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 23885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23886 break 2 23887 fi 23888done 23889 done 23890IFS=$as_save_IFS 23891 23892 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" 23893 ;; 23894esac 23895fi 23896PERL=$ac_cv_path_PERL 23897if test -n "$PERL"; then 23898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 23899$as_echo "$PERL" >&6; } 23900else 23901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23902$as_echo "no" >&6; } 23903fi 23904 23905 23906 23907if test -n "$RUBY"; then 23908 # Extract the first word of ""$RUBY"", so it can be a program name with args. 23909set dummy "$RUBY"; ac_word=$2 23910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23911$as_echo_n "checking for $ac_word... " >&6; } 23912if ${ac_cv_path_RUBY+:} false; then : 23913 $as_echo_n "(cached) " >&6 23914else 23915 case $RUBY in 23916 [\\/]* | ?:[\\/]*) 23917 ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path. 23918 ;; 23919 *) 23920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23921for as_dir in $PATH 23922do 23923 IFS=$as_save_IFS 23924 test -z "$as_dir" && as_dir=. 23925 for ac_exec_ext in '' $ac_executable_extensions; do 23926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23927 ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext" 23928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23929 break 2 23930 fi 23931done 23932 done 23933IFS=$as_save_IFS 23934 23935 test -z "$ac_cv_path_RUBY" && ac_cv_path_RUBY="none" 23936 ;; 23937esac 23938fi 23939RUBY=$ac_cv_path_RUBY 23940if test -n "$RUBY"; then 23941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5 23942$as_echo "$RUBY" >&6; } 23943else 23944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23945$as_echo "no" >&6; } 23946fi 23947 23948 23949else 23950 for ac_prog in ruby ruby1 ruby1.8 ruby18 ruby1.9 ruby19 ruby1.9.3 ruby193 ruby2 ruby2.0 ruby20 ruby2.1 ruby21 ruby2.2 ruby22 ruby2.3 ruby23 ruby2.4 ruby24 23951do 23952 # Extract the first word of "$ac_prog", so it can be a program name with args. 23953set dummy $ac_prog; ac_word=$2 23954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23955$as_echo_n "checking for $ac_word... " >&6; } 23956if ${ac_cv_path_RUBY+:} false; then : 23957 $as_echo_n "(cached) " >&6 23958else 23959 case $RUBY in 23960 [\\/]* | ?:[\\/]*) 23961 ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path. 23962 ;; 23963 *) 23964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23965for as_dir in $PATH 23966do 23967 IFS=$as_save_IFS 23968 test -z "$as_dir" && as_dir=. 23969 for ac_exec_ext in '' $ac_executable_extensions; do 23970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23971 ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext" 23972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23973 break 2 23974 fi 23975done 23976 done 23977IFS=$as_save_IFS 23978 23979 ;; 23980esac 23981fi 23982RUBY=$ac_cv_path_RUBY 23983if test -n "$RUBY"; then 23984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5 23985$as_echo "$RUBY" >&6; } 23986else 23987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23988$as_echo "no" >&6; } 23989fi 23990 23991 23992 test -n "$RUBY" && break 23993done 23994test -n "$RUBY" || RUBY="none" 23995 23996fi 23997if test "$RUBY" != "none"; then 23998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking rb_hash_foreach" >&5 23999$as_echo_n "checking rb_hash_foreach... " >&6; } 24000 if "$RUBY" -r mkmf -e 'exit(have_func("rb_hash_foreach") ? 0 : 1)' >/dev/null; then 24001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24002$as_echo "yes" >&6; } 24003 if test -n "$RDOC"; then 24004 # Extract the first word of ""$RDOC"", so it can be a program name with args. 24005set dummy "$RDOC"; ac_word=$2 24006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24007$as_echo_n "checking for $ac_word... " >&6; } 24008if ${ac_cv_path_RDOC+:} false; then : 24009 $as_echo_n "(cached) " >&6 24010else 24011 case $RDOC in 24012 [\\/]* | ?:[\\/]*) 24013 ac_cv_path_RDOC="$RDOC" # Let the user override the test with a path. 24014 ;; 24015 *) 24016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24017for as_dir in $PATH 24018do 24019 IFS=$as_save_IFS 24020 test -z "$as_dir" && as_dir=. 24021 for ac_exec_ext in '' $ac_executable_extensions; do 24022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24023 ac_cv_path_RDOC="$as_dir/$ac_word$ac_exec_ext" 24024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24025 break 2 24026 fi 24027done 24028 done 24029IFS=$as_save_IFS 24030 24031 test -z "$ac_cv_path_RDOC" && ac_cv_path_RDOC="none" 24032 ;; 24033esac 24034fi 24035RDOC=$ac_cv_path_RDOC 24036if test -n "$RDOC"; then 24037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RDOC" >&5 24038$as_echo "$RDOC" >&6; } 24039else 24040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24041$as_echo "no" >&6; } 24042fi 24043 24044 24045 else 24046 for ac_prog in rdoc rdoc1 rdoc1.8 rdoc18 rdoc1.9 rdoc19 rdoc1.9.3 rdoc193 rdoc2 rdoc2.0 rdoc20 rdoc2.1 rdoc21 rdoc2.2 rdoc22 rdoc2.3 rdoc23 rdoc2.4 rdoc24 24047do 24048 # Extract the first word of "$ac_prog", so it can be a program name with args. 24049set dummy $ac_prog; ac_word=$2 24050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24051$as_echo_n "checking for $ac_word... " >&6; } 24052if ${ac_cv_path_RDOC+:} false; then : 24053 $as_echo_n "(cached) " >&6 24054else 24055 case $RDOC in 24056 [\\/]* | ?:[\\/]*) 24057 ac_cv_path_RDOC="$RDOC" # Let the user override the test with a path. 24058 ;; 24059 *) 24060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24061for as_dir in $PATH 24062do 24063 IFS=$as_save_IFS 24064 test -z "$as_dir" && as_dir=. 24065 for ac_exec_ext in '' $ac_executable_extensions; do 24066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24067 ac_cv_path_RDOC="$as_dir/$ac_word$ac_exec_ext" 24068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24069 break 2 24070 fi 24071done 24072 done 24073IFS=$as_save_IFS 24074 24075 ;; 24076esac 24077fi 24078RDOC=$ac_cv_path_RDOC 24079if test -n "$RDOC"; then 24080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RDOC" >&5 24081$as_echo "$RDOC" >&6; } 24082else 24083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24084$as_echo "no" >&6; } 24085fi 24086 24087 24088 test -n "$RDOC" && break 24089done 24090test -n "$RDOC" || RDOC="none" 24091 24092 fi 24093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby major version" >&5 24094$as_echo_n "checking for Ruby major version... " >&6; } 24095if ${svn_cv_ruby_major+:} false; then : 24096 $as_echo_n "(cached) " >&6 24097else 24098 24099 svn_cv_ruby_major="`$RUBY -rrbconfig -e 'print RbConfig::CONFIG.fetch(%q(MAJOR))'`" 24100 24101fi 24102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_major" >&5 24103$as_echo "$svn_cv_ruby_major" >&6; } 24104 RUBY_MAJOR="$svn_cv_ruby_major" 24105 24106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby minor version" >&5 24107$as_echo_n "checking for Ruby minor version... " >&6; } 24108if ${svn_cv_ruby_minor+:} false; then : 24109 $as_echo_n "(cached) " >&6 24110else 24111 24112 svn_cv_ruby_minor="`$RUBY -rrbconfig -e 'print RbConfig::CONFIG.fetch(%q(MINOR))'`" 24113 24114fi 24115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_minor" >&5 24116$as_echo "$svn_cv_ruby_minor" >&6; } 24117 RUBY_MINOR="$svn_cv_ruby_minor" 24118 24119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby teeny version" >&5 24120$as_echo_n "checking for Ruby teeny version... " >&6; } 24121if ${svn_cv_ruby_teeny+:} false; then : 24122 $as_echo_n "(cached) " >&6 24123else 24124 24125 svn_cv_ruby_teeny="`$RUBY -rrbconfig -e 'major, minor, teeny = RUBY_VERSION.split("."); print teeny;'`" 24126 24127fi 24128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_teeny" >&5 24129$as_echo "$svn_cv_ruby_teeny" >&6; } 24130 RUBY_TEENY="$svn_cv_ruby_teeny" 24131 24132 24133 24134 24135 if test \( "$RUBY_MAJOR" -eq "1" -a "$RUBY_MINOR" -gt "8" -a "$RUBY_TEENY" -lt "3" \); then 24136 # Disallow Ruby between 1.8.7 and 1.9.3 24137 RUBY="none" 24138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The detected Ruby is between 1.9 and 1.9.3" >&5 24139$as_echo "$as_me: WARNING: The detected Ruby is between 1.9 and 1.9.3" >&2;} 24140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Only 1.8.x and 1.9.3 or later are supported at this time" >&5 24141$as_echo "$as_me: WARNING: Only 1.8.x and 1.9.3 or later are supported at this time" >&2;} 24142 fi 24143 else 24144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24145$as_echo "no" >&6; } 24146 RUBY="none" 24147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The detected Ruby is too old for Subversion to use" >&5 24148$as_echo "$as_me: WARNING: The detected Ruby is too old for Subversion to use" >&2;} 24149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: A Ruby which has rb_hash_foreach is required to use the" >&5 24150$as_echo "$as_me: WARNING: A Ruby which has rb_hash_foreach is required to use the" >&2;} 24151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion Ruby bindings" >&5 24152$as_echo "$as_me: WARNING: Subversion Ruby bindings" >&2;} 24153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Upgrade to the official 1.8.2 release, or later" >&5 24154$as_echo "$as_me: WARNING: Upgrade to the official 1.8.2 release, or later" >&2;} 24155 fi 24156fi 24157 24158 24159 24160# Check whether --with-swig was given. 24161if test "${with_swig+set}" = set; then : 24162 withval=$with_swig; 24163 case "$withval" in 24164 "no") 24165 SWIG_SUITABLE=no 24166 24167 where=no 24168 24169 if test $where = no; then 24170 SWIG=none 24171 elif test $where = required || test $where = check; then 24172 # Extract the first word of "swig", so it can be a program name with args. 24173set dummy swig; ac_word=$2 24174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24175$as_echo_n "checking for $ac_word... " >&6; } 24176if ${ac_cv_path_SWIG+:} false; then : 24177 $as_echo_n "(cached) " >&6 24178else 24179 case $SWIG in 24180 [\\/]* | ?:[\\/]*) 24181 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 24182 ;; 24183 *) 24184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24185for as_dir in $PATH 24186do 24187 IFS=$as_save_IFS 24188 test -z "$as_dir" && as_dir=. 24189 for ac_exec_ext in '' $ac_executable_extensions; do 24190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24191 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" 24192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24193 break 2 24194 fi 24195done 24196 done 24197IFS=$as_save_IFS 24198 24199 test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none" 24200 ;; 24201esac 24202fi 24203SWIG=$ac_cv_path_SWIG 24204if test -n "$SWIG"; then 24205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 24206$as_echo "$SWIG" >&6; } 24207else 24208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24209$as_echo "no" >&6; } 24210fi 24211 24212 24213 if test "$SWIG" = "none" && test $where = required; then 24214 as_fn_error $? "SWIG required, but not found" "$LINENO" 5 24215 fi 24216 else 24217 if test -f "$where"; then 24218 SWIG="$where" 24219 else 24220 SWIG="$where/bin/swig" 24221 fi 24222 if test ! -f "$SWIG" || test ! -x "$SWIG"; then 24223 as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5 24224 fi 24225 fi 24226 24227 if test "$SWIG" != "none"; then 24228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5 24229$as_echo_n "checking swig version... " >&6; } 24230 SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \ 24231 $SED -ne 's/^.*Version \(.*\)$/\1/p'`" 24232 # We want the version as an integer so we can test against 24233 # which version we're using. SWIG doesn't provide this 24234 # to us so we have to come up with it on our own. 24235 # The major is passed straight through, 24236 # the minor is zero padded to two places, 24237 # and the patch level is zero padded to three places. 24238 # e.g. 1.3.24 becomes 103024 24239 SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \ 24240 $SED -e 's/[^0-9\.].*$//' \ 24241 -e 's/\.\([0-9]\)$/.0\1/' \ 24242 -e 's/\.\([0-9][0-9]\)$/.0\1/' \ 24243 -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`" 24244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5 24245$as_echo "$SWIG_VERSION_RAW" >&6; } 24246 # If you change the required swig version number, don't forget to update: 24247 # subversion/bindings/swig/INSTALL 24248 if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then 24249 SWIG_SUITABLE=yes 24250 else 24251 SWIG_SUITABLE=no 24252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5 24253$as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;} 24254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG >= 1.3.24" >&5 24255$as_echo "$as_me: WARNING: Subversion requires SWIG >= 1.3.24" >&2;} 24256 fi 24257 fi 24258 24259 SWIG_PY_COMPILE="none" 24260 SWIG_PY_LINK="none" 24261 SWIG_PY_OPTS="none" 24262 SWIG_PY_ERRMSG="check config.log for details" 24263 if test "$PYTHON" != "none"; then 24264 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5 24265$as_echo "$as_me: Configuring python swig binding" >&6;} 24266 24267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5 24268$as_echo_n "checking for Python includes... " >&6; } 24269if ${ac_cv_python_includes+:} false; then : 24270 $as_echo_n "(cached) " >&6 24271else 24272 24273 ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`" 24274 24275fi 24276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5 24277$as_echo "$ac_cv_python_includes" >&6; } 24278 SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes" 24279 24280 if test "$ac_cv_python_includes" = "none"; then 24281 SWIG_PY_ERRMSG="no distutils found" 24282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5 24283$as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;} 24284 else 24285 24286 python_header_found="no" 24287 24288 save_cppflags="$CPPFLAGS" 24289 CPPFLAGS="$CPPFLAGS $ac_cv_python_includes" 24290 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default" 24291if test "x$ac_cv_header_Python_h" = xyes; then : 24292 24293 python_header_found="yes" 24294 24295fi 24296 24297 24298 CPPFLAGS="$save_cppflags" 24299 24300 if test "$python_header_found" = "no"; then 24301 SWIG_PY_ERRMSG="no Python.h found" 24302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Python.h not found; disabling python swig bindings" >&5 24303$as_echo "$as_me: WARNING: Python.h not found; disabling python swig bindings" >&2;} 24304 else 24305 24306 py3c_found=no 24307 py3c_skip=no 24308 24309 24310# Check whether --with-py3c was given. 24311if test "${with_py3c+set}" = set; then : 24312 withval=$with_py3c; 24313 if test "$withval" = "yes"; then 24314 py3c_skip=no 24315 elif test "$withval" = "no"; then 24316 py3c_skip=yes 24317 else 24318 py3c_skip=no 24319 py3c_prefix="$withval" 24320 fi 24321 24322fi 24323 24324 24325 if test "$py3c_skip" = "yes"; then 24326 { $as_echo "$as_me:${as_lineno-$LINENO}: Skipping configure of py3c" >&5 24327$as_echo "$as_me: Skipping configure of py3c" >&6;} 24328 else 24329 if test -n "$py3c_prefix"; then 24330 { $as_echo "$as_me:${as_lineno-$LINENO}: py3c library configuration via prefix $py3c_prefix" >&5 24331$as_echo "$as_me: py3c library configuration via prefix $py3c_prefix" >&6;} 24332 24333 if test "$ac_cv_python_includes" = "none"; then 24334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: py3c cannot be used without distutils module" >&5 24335$as_echo "$as_me: WARNING: py3c cannot be used without distutils module" >&2;} 24336 fi 24337 24338 save_cppflags="$CPPFLAGS" 24339 CPPFLAGS="$CPPFLAGS $ac_cv_python_includes -I$py3c_prefix/include" 24340 for ac_header in py3c.h 24341do : 24342 ac_fn_c_check_header_mongrel "$LINENO" "py3c.h" "ac_cv_header_py3c_h" "$ac_includes_default" 24343if test "x$ac_cv_header_py3c_h" = xyes; then : 24344 cat >>confdefs.h <<_ACEOF 24345#define HAVE_PY3C_H 1 24346_ACEOF 24347 24348 py3c_found="yes" 24349 SVN_PY3C_INCLUDES="-I$py3c_prefix/include" 24350 24351fi 24352 24353done 24354 24355 CPPFLAGS="$save_cppflags" 24356 else 24357 24358 { $as_echo "$as_me:${as_lineno-$LINENO}: py3c library configuration via pkg-config" >&5 24359$as_echo "$as_me: py3c library configuration via pkg-config" >&6;} 24360 if test -n "$PKG_CONFIG"; then 24361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for py3c library" >&5 24362$as_echo_n "checking for py3c library... " >&6; } 24363 if $PKG_CONFIG py3c --exists; then 24364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24365$as_echo "yes" >&6; } 24366 py3c_found=yes 24367 SVN_PY3C_INCLUDES=`$PKG_CONFIG py3c --cflags` 24368 else 24369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24370$as_echo "no" >&6; } 24371 fi 24372 fi 24373 24374 24375 if test "$py3c_found" = "no"; then 24376 { $as_echo "$as_me:${as_lineno-$LINENO}: py3c library configuration without pkg-config" >&5 24377$as_echo "$as_me: py3c library configuration without pkg-config" >&6;} 24378 24379 if test "$ac_cv_python_includes" = "none"; then 24380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: py3c cannot be used without distutils module" >&5 24381$as_echo "$as_me: WARNING: py3c cannot be used without distutils module" >&2;} 24382 fi 24383 24384 save_cppflags="$CPPFLAGS" 24385 CPPFLAGS="$CPPFLAGS $ac_cv_python_includes" 24386 ac_fn_c_check_header_mongrel "$LINENO" "py3c.h" "ac_cv_header_py3c_h" "$ac_includes_default" 24387if test "x$ac_cv_header_py3c_h" = xyes; then : 24388 24389 py3c_found="yes" 24390 24391fi 24392 24393 24394 CPPFLAGS="$save_cppflags" 24395 fi 24396 fi 24397 fi 24398 24399 24400 24401 24402 if test "$py3c_found" = "no"; then 24403 SWIG_PY_ERRMSG="py3c library not found" 24404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: py3c library not found; disabling python swig bindings" >&5 24405$as_echo "$as_me: WARNING: py3c library not found; disabling python swig bindings" >&2;} 24406 else 24407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5 24408$as_echo_n "checking for compiling Python extensions... " >&6; } 24409if ${ac_cv_python_compile+:} false; then : 24410 $as_echo_n "(cached) " >&6 24411else 24412 24413 ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`" 24414 24415fi 24416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5 24417$as_echo "$ac_cv_python_compile" >&6; } 24418 SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS" 24419 24420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5 24421$as_echo_n "checking for linking Python extensions... " >&6; } 24422if ${ac_cv_python_link+:} false; then : 24423 $as_echo_n "(cached) " >&6 24424else 24425 24426 ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`" 24427 24428fi 24429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5 24430$as_echo "$ac_cv_python_link" >&6; } 24431 SWIG_PY_LINK="$ac_cv_python_link" 24432 24433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5 24434$as_echo_n "checking for linking Python libraries... " >&6; } 24435if ${ac_cv_python_libs+:} false; then : 24436 $as_echo_n "(cached) " >&6 24437else 24438 24439 ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`" 24440 24441fi 24442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5 24443$as_echo "$ac_cv_python_libs" >&6; } 24444 SWIG_PY_LIBS="` 24445 input_flags="$ac_cv_python_libs" 24446 output_flags="" 24447 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 24448 for flag in $input_flags; do 24449 filter="no" 24450 for dir in $filtered_dirs; do 24451 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 24452 filter="yes" 24453 break 24454 fi 24455 done 24456 if test "$filter" = "no"; then 24457 output_flags="$output_flags $flag" 24458 fi 24459 done 24460 if test -n "$output_flags"; then 24461 printf "%s" "${output_flags# }" 24462 fi 24463`" 24464 24465 if test "$SWIG" = "none"; then 24466 SWIG_PY_ERRMSG="" 24467 else 24468 # Look more closely at the SWIG and Python versions to 24469 # determine SWIG_PY_OPTS. We can skip this if we already 24470 # have the SWIG-generated files. 24471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python >= 3" >&5 24472$as_echo_n "checking for Python >= 3... " >&6; } 24473if ${ac_cv_python_is_py3+:} false; then : 24474 $as_echo_n "(cached) " >&6 24475else 24476 24477 ac_cv_python_is_py3="no" 24478 $PYTHON -c 'import sys; sys.exit(0x3000000 > sys.hexversion)' && \ 24479 ac_cv_python_is_py3="yes" 24480 24481fi 24482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_is_py3" >&5 24483$as_echo "$ac_cv_python_is_py3" >&6; } 24484 24485 if test "$ac_cv_python_is_py3" = "yes"; then 24486 if test "$SWIG_VERSION" -ge "300010"; then 24487 SWIG_PY_ERRMSG="" 24488 else 24489 SWIG_PY_ERRMSG="SWIG version is not suitable" 24490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion Python bindings for Python 3 require SWIG 3.0.10 or newer" >&5 24491$as_echo "$as_me: WARNING: Subversion Python bindings for Python 3 require SWIG 3.0.10 or newer" >&2;} 24492 fi 24493 if test "$SWIG_VERSION" -lt "400000"; then 24494 SWIG_PY_OPTS="-python -py3 -nofastunpack -modern" 24495 else 24496 SWIG_PY_OPTS="-python -py3 -nofastunpack" 24497 fi 24498 else 24499 if test "$SWIG_VERSION" -lt "400000"; then 24500 SWIG_PY_OPTS="-python -classic" 24501 SWIG_PY_ERRMSG="" 24502 else 24503 SWIG_PY_OPTS="-python -nofastunpack" 24504 SWIG_PY_ERRMSG="SWIG version is not suitable" 24505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion Python bindings for Python 2 require 1.3.24 <= SWIG < 4.0.0" >&5 24506$as_echo "$as_me: WARNING: Subversion Python bindings for Python 2 require 1.3.24 <= SWIG < 4.0.0" >&2;} 24507 fi 24508 fi 24509 fi 24510 fi 24511 fi 24512 fi 24513 24514 fi 24515 24516 SWIG_PL_ERRMSG="check config.log for details" 24517 if test "$PERL" != "none"; then 24518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5 24519$as_echo_n "checking perl version... " >&6; } 24520 PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`" 24521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5 24522$as_echo "$PERL_VERSION" >&6; } 24523 if test "$PERL_VERSION" -ge "5008000"; then 24524 SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`" 24525 SWIG_PL_LINK="`$PERL -MExtUtils::Embed -e ldopts`" 24526 SWIG_PL_LINK="` 24527 input_flags="$SWIG_PL_LINK" 24528 output_flags="" 24529 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 24530 for flag in $input_flags; do 24531 filter="no" 24532 for dir in $filtered_dirs; do 24533 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 24534 filter="yes" 24535 break 24536 fi 24537 done 24538 if test "$filter" = "no"; then 24539 output_flags="$output_flags $flag" 24540 fi 24541 done 24542 if test -n "$output_flags"; then 24543 printf "%s" "${output_flags# }" 24544 fi 24545`" 24546 24547 SWIG_PL_ERRMSG="" 24548 else 24549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5 24550$as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;} 24551 fi 24552 fi 24553 24554 SWIG_RB_COMPILE="none" 24555 SWIG_RB_LINK="none" 24556 SWIG_RB_ERRMSG="check config.log for details" 24557 if test "$RUBY" != "none"; then 24558 if test x"$SWIG_VERSION" = x"3""00""008"; then 24559 # Use a local variable to escape the '#' sign. 24560 ruby_swig_issue_602='https://subversion.apache.org/docs/release-notes/1.11#ruby-swig-issue-602' 24561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ruby bindings are known not to support swig 3.0.8; see $ruby_swig_issue_602" >&5 24562$as_echo "$as_me: WARNING: Ruby bindings are known not to support swig 3.0.8; see $ruby_swig_issue_602" >&2;} 24563 fi 24564 rbconfig="$RUBY -rrbconfig -e " 24565 24566 for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \ 24567 rubyhdrdir rubyarchhdrdir sitedir sitelibdir sitearchdir libdir 24568 do 24569 rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"` 24570 eval "rbconfig_$var_name=\"$rbconfig_tmp\"" 24571 done 24572 24573 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5 24574$as_echo "$as_me: Configuring Ruby SWIG binding" >&6;} 24575 24576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5 24577$as_echo_n "checking for Ruby include path... " >&6; } 24578if ${svn_cv_ruby_includes+:} false; then : 24579 $as_echo_n "(cached) " >&6 24580else 24581 24582 if test -d "$rbconfig_rubyhdrdir"; then 24583 svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir" 24584 if test -d "$rbconfig_rubyarchhdrdir"; then 24585 svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyarchhdrdir" 24586 else 24587 svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyhdrdir/$rbconfig_arch" 24588 fi 24589 else 24590 svn_cv_ruby_includes="-I. -I$rbconfig_archdir" 24591 fi 24592 24593fi 24594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5 24595$as_echo "$svn_cv_ruby_includes" >&6; } 24596 SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes" 24597 24598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5 24599$as_echo_n "checking how to compile Ruby extensions... " >&6; } 24600if ${svn_cv_ruby_compile+:} false; then : 24601 $as_echo_n "(cached) " >&6 24602else 24603 24604 svn_cv_ruby_compile="$rbconfig_CC $CFLAGS" 24605 24606fi 24607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5 24608$as_echo "$svn_cv_ruby_compile" >&6; } 24609 SWIG_RB_COMPILE="$svn_cv_ruby_compile" 24610 24611 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'` 24612 24613 24614 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'` 24615 24616 24617 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'` 24618 24619 SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast" 24620 24621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5 24622$as_echo_n "checking how to link Ruby extensions... " >&6; } 24623if ${svn_cv_ruby_link+:} false; then : 24624 $as_echo_n "(cached) " >&6 24625else 24626 24627 svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \ 24628 $rbconfig_LDSHARED`" 24629 svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link" 24630 svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT" 24631 24632fi 24633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5 24634$as_echo "$svn_cv_ruby_link" >&6; } 24635 SWIG_RB_LINK="$svn_cv_ruby_link" 24636 24637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5 24638$as_echo_n "checking how to link Ruby libraries... " >&6; } 24639if ${ac_cv_ruby_libs+:} false; then : 24640 $as_echo_n "(cached) " >&6 24641else 24642 24643 ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS" 24644 24645fi 24646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5 24647$as_echo "$ac_cv_ruby_libs" >&6; } 24648 SWIG_RB_LIBS="` 24649 input_flags="$ac_cv_ruby_libs" 24650 output_flags="" 24651 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 24652 for flag in $input_flags; do 24653 filter="no" 24654 for dir in $filtered_dirs; do 24655 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 24656 filter="yes" 24657 break 24658 fi 24659 done 24660 if test "$filter" = "no"; then 24661 output_flags="$output_flags $flag" 24662 fi 24663 done 24664 if test -n "$output_flags"; then 24665 printf "%s" "${output_flags# }" 24666 fi 24667`" 24668 24669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5 24670$as_echo_n "checking for rb_errinfo... " >&6; } 24671 old_CFLAGS="$CFLAGS" 24672 old_LIBS="$LIBS" 24673 CFLAGS="$CFLAGS $svn_cv_ruby_includes" 24674 24675 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'` 24676 24677 24678 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'` 24679 24680 24681 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'` 24682 24683 LIBS="$SWIG_RB_LIBS" 24684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24685/* end confdefs.h. */ 24686 24687#include <ruby.h> 24688int main() 24689{rb_errinfo();} 24690_ACEOF 24691if ac_fn_c_try_link "$LINENO"; then : 24692 have_rb_errinfo="yes" 24693else 24694 have_rb_errinfo="no" 24695fi 24696rm -f core conftest.err conftest.$ac_objext \ 24697 conftest$ac_exeext conftest.$ac_ext 24698 if test "$have_rb_errinfo" = "yes"; then 24699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24700$as_echo "yes" >&6; } 24701 24702$as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h 24703 24704 else 24705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24706$as_echo "no" >&6; } 24707 fi 24708 CFLAGS="$old_CFLAGS" 24709 LIBS="$old_LIBS" 24710 24711 if ${svn_cv_ruby_sitedir+:} false; then : 24712 $as_echo_n "(cached) " >&6 24713else 24714 24715 svn_cv_ruby_sitedir="$rbconfig_sitedir" 24716 24717fi 24718 24719 24720# Check whether --with-ruby-sitedir was given. 24721if test "${with_ruby_sitedir+set}" = set; then : 24722 withval=$with_ruby_sitedir; svn_ruby_installdir="$withval" 24723else 24724 svn_ruby_installdir="$svn_cv_ruby_sitedir" 24725fi 24726 24727 24728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5 24729$as_echo_n "checking where to install Ruby scripts... " >&6; } 24730 if ${svn_cv_ruby_sitedir_libsuffix+:} false; then : 24731 $as_echo_n "(cached) " >&6 24732else 24733 24734 svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \ 24735 $SED -e "s,^$rbconfig_sitedir,,"`" 24736 24737fi 24738 24739 SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}" 24740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5 24741$as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; } 24742 24743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5 24744$as_echo_n "checking where to install Ruby extensions... " >&6; } 24745 if ${svn_cv_ruby_sitedir_archsuffix+:} false; then : 24746 $as_echo_n "(cached) " >&6 24747else 24748 24749 svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \ 24750 $SED -e "s,^$rbconfig_sitedir,,"`" 24751 24752fi 24753 24754 SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}" 24755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5 24756$as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; } 24757 24758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5 24759$as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; } 24760 if ${svn_cv_ruby_test_verbose+:} false; then : 24761 $as_echo_n "(cached) " >&6 24762else 24763 24764 svn_cv_ruby_test_verbose="normal" 24765 24766fi 24767 24768 24769# Check whether --with-ruby-test-verbose was given. 24770if test "${with_ruby_test_verbose+set}" = set; then : 24771 withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval" 24772else 24773 svn_ruby_test_verbose="$svn_cv_ruby_test_verbose" 24774fi 24775 24776 SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose" 24777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5 24778$as_echo "$SWIG_RB_TEST_VERBOSE" >&6; } 24779 24780 SWIG_RB_ERRMSG="" 24781 fi 24782 24783 24784 24785 24786 24787 24788 24789 24790 24791 24792 24793 24794 24795 24796 24797 24798 24799 24800 24801 ;; 24802 "yes") 24803 24804 where=required 24805 24806 if test $where = no; then 24807 SWIG=none 24808 elif test $where = required || test $where = check; then 24809 # Extract the first word of "swig", so it can be a program name with args. 24810set dummy swig; ac_word=$2 24811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24812$as_echo_n "checking for $ac_word... " >&6; } 24813if ${ac_cv_path_SWIG+:} false; then : 24814 $as_echo_n "(cached) " >&6 24815else 24816 case $SWIG in 24817 [\\/]* | ?:[\\/]*) 24818 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 24819 ;; 24820 *) 24821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24822for as_dir in $PATH 24823do 24824 IFS=$as_save_IFS 24825 test -z "$as_dir" && as_dir=. 24826 for ac_exec_ext in '' $ac_executable_extensions; do 24827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24828 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" 24829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24830 break 2 24831 fi 24832done 24833 done 24834IFS=$as_save_IFS 24835 24836 test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none" 24837 ;; 24838esac 24839fi 24840SWIG=$ac_cv_path_SWIG 24841if test -n "$SWIG"; then 24842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 24843$as_echo "$SWIG" >&6; } 24844else 24845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24846$as_echo "no" >&6; } 24847fi 24848 24849 24850 if test "$SWIG" = "none" && test $where = required; then 24851 as_fn_error $? "SWIG required, but not found" "$LINENO" 5 24852 fi 24853 else 24854 if test -f "$where"; then 24855 SWIG="$where" 24856 else 24857 SWIG="$where/bin/swig" 24858 fi 24859 if test ! -f "$SWIG" || test ! -x "$SWIG"; then 24860 as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5 24861 fi 24862 fi 24863 24864 if test "$SWIG" != "none"; then 24865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5 24866$as_echo_n "checking swig version... " >&6; } 24867 SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \ 24868 $SED -ne 's/^.*Version \(.*\)$/\1/p'`" 24869 # We want the version as an integer so we can test against 24870 # which version we're using. SWIG doesn't provide this 24871 # to us so we have to come up with it on our own. 24872 # The major is passed straight through, 24873 # the minor is zero padded to two places, 24874 # and the patch level is zero padded to three places. 24875 # e.g. 1.3.24 becomes 103024 24876 SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \ 24877 $SED -e 's/[^0-9\.].*$//' \ 24878 -e 's/\.\([0-9]\)$/.0\1/' \ 24879 -e 's/\.\([0-9][0-9]\)$/.0\1/' \ 24880 -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`" 24881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5 24882$as_echo "$SWIG_VERSION_RAW" >&6; } 24883 # If you change the required swig version number, don't forget to update: 24884 # subversion/bindings/swig/INSTALL 24885 if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then 24886 SWIG_SUITABLE=yes 24887 else 24888 SWIG_SUITABLE=no 24889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5 24890$as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;} 24891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG >= 1.3.24" >&5 24892$as_echo "$as_me: WARNING: Subversion requires SWIG >= 1.3.24" >&2;} 24893 fi 24894 fi 24895 24896 SWIG_PY_COMPILE="none" 24897 SWIG_PY_LINK="none" 24898 SWIG_PY_OPTS="none" 24899 SWIG_PY_ERRMSG="check config.log for details" 24900 if test "$PYTHON" != "none"; then 24901 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5 24902$as_echo "$as_me: Configuring python swig binding" >&6;} 24903 24904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5 24905$as_echo_n "checking for Python includes... " >&6; } 24906if ${ac_cv_python_includes+:} false; then : 24907 $as_echo_n "(cached) " >&6 24908else 24909 24910 ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`" 24911 24912fi 24913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5 24914$as_echo "$ac_cv_python_includes" >&6; } 24915 SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes" 24916 24917 if test "$ac_cv_python_includes" = "none"; then 24918 SWIG_PY_ERRMSG="no distutils found" 24919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5 24920$as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;} 24921 else 24922 24923 python_header_found="no" 24924 24925 save_cppflags="$CPPFLAGS" 24926 CPPFLAGS="$CPPFLAGS $ac_cv_python_includes" 24927 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default" 24928if test "x$ac_cv_header_Python_h" = xyes; then : 24929 24930 python_header_found="yes" 24931 24932fi 24933 24934 24935 CPPFLAGS="$save_cppflags" 24936 24937 if test "$python_header_found" = "no"; then 24938 SWIG_PY_ERRMSG="no Python.h found" 24939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Python.h not found; disabling python swig bindings" >&5 24940$as_echo "$as_me: WARNING: Python.h not found; disabling python swig bindings" >&2;} 24941 else 24942 24943 py3c_found=no 24944 py3c_skip=no 24945 24946 24947# Check whether --with-py3c was given. 24948if test "${with_py3c+set}" = set; then : 24949 withval=$with_py3c; 24950 if test "$withval" = "yes"; then 24951 py3c_skip=no 24952 elif test "$withval" = "no"; then 24953 py3c_skip=yes 24954 else 24955 py3c_skip=no 24956 py3c_prefix="$withval" 24957 fi 24958 24959fi 24960 24961 24962 if test "$py3c_skip" = "yes"; then 24963 { $as_echo "$as_me:${as_lineno-$LINENO}: Skipping configure of py3c" >&5 24964$as_echo "$as_me: Skipping configure of py3c" >&6;} 24965 else 24966 if test -n "$py3c_prefix"; then 24967 { $as_echo "$as_me:${as_lineno-$LINENO}: py3c library configuration via prefix $py3c_prefix" >&5 24968$as_echo "$as_me: py3c library configuration via prefix $py3c_prefix" >&6;} 24969 24970 if test "$ac_cv_python_includes" = "none"; then 24971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: py3c cannot be used without distutils module" >&5 24972$as_echo "$as_me: WARNING: py3c cannot be used without distutils module" >&2;} 24973 fi 24974 24975 save_cppflags="$CPPFLAGS" 24976 CPPFLAGS="$CPPFLAGS $ac_cv_python_includes -I$py3c_prefix/include" 24977 for ac_header in py3c.h 24978do : 24979 ac_fn_c_check_header_mongrel "$LINENO" "py3c.h" "ac_cv_header_py3c_h" "$ac_includes_default" 24980if test "x$ac_cv_header_py3c_h" = xyes; then : 24981 cat >>confdefs.h <<_ACEOF 24982#define HAVE_PY3C_H 1 24983_ACEOF 24984 24985 py3c_found="yes" 24986 SVN_PY3C_INCLUDES="-I$py3c_prefix/include" 24987 24988fi 24989 24990done 24991 24992 CPPFLAGS="$save_cppflags" 24993 else 24994 24995 { $as_echo "$as_me:${as_lineno-$LINENO}: py3c library configuration via pkg-config" >&5 24996$as_echo "$as_me: py3c library configuration via pkg-config" >&6;} 24997 if test -n "$PKG_CONFIG"; then 24998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for py3c library" >&5 24999$as_echo_n "checking for py3c library... " >&6; } 25000 if $PKG_CONFIG py3c --exists; then 25001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25002$as_echo "yes" >&6; } 25003 py3c_found=yes 25004 SVN_PY3C_INCLUDES=`$PKG_CONFIG py3c --cflags` 25005 else 25006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25007$as_echo "no" >&6; } 25008 fi 25009 fi 25010 25011 25012 if test "$py3c_found" = "no"; then 25013 { $as_echo "$as_me:${as_lineno-$LINENO}: py3c library configuration without pkg-config" >&5 25014$as_echo "$as_me: py3c library configuration without pkg-config" >&6;} 25015 25016 if test "$ac_cv_python_includes" = "none"; then 25017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: py3c cannot be used without distutils module" >&5 25018$as_echo "$as_me: WARNING: py3c cannot be used without distutils module" >&2;} 25019 fi 25020 25021 save_cppflags="$CPPFLAGS" 25022 CPPFLAGS="$CPPFLAGS $ac_cv_python_includes" 25023 ac_fn_c_check_header_mongrel "$LINENO" "py3c.h" "ac_cv_header_py3c_h" "$ac_includes_default" 25024if test "x$ac_cv_header_py3c_h" = xyes; then : 25025 25026 py3c_found="yes" 25027 25028fi 25029 25030 25031 CPPFLAGS="$save_cppflags" 25032 fi 25033 fi 25034 fi 25035 25036 25037 25038 25039 if test "$py3c_found" = "no"; then 25040 SWIG_PY_ERRMSG="py3c library not found" 25041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: py3c library not found; disabling python swig bindings" >&5 25042$as_echo "$as_me: WARNING: py3c library not found; disabling python swig bindings" >&2;} 25043 else 25044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5 25045$as_echo_n "checking for compiling Python extensions... " >&6; } 25046if ${ac_cv_python_compile+:} false; then : 25047 $as_echo_n "(cached) " >&6 25048else 25049 25050 ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`" 25051 25052fi 25053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5 25054$as_echo "$ac_cv_python_compile" >&6; } 25055 SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS" 25056 25057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5 25058$as_echo_n "checking for linking Python extensions... " >&6; } 25059if ${ac_cv_python_link+:} false; then : 25060 $as_echo_n "(cached) " >&6 25061else 25062 25063 ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`" 25064 25065fi 25066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5 25067$as_echo "$ac_cv_python_link" >&6; } 25068 SWIG_PY_LINK="$ac_cv_python_link" 25069 25070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5 25071$as_echo_n "checking for linking Python libraries... " >&6; } 25072if ${ac_cv_python_libs+:} false; then : 25073 $as_echo_n "(cached) " >&6 25074else 25075 25076 ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`" 25077 25078fi 25079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5 25080$as_echo "$ac_cv_python_libs" >&6; } 25081 SWIG_PY_LIBS="` 25082 input_flags="$ac_cv_python_libs" 25083 output_flags="" 25084 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 25085 for flag in $input_flags; do 25086 filter="no" 25087 for dir in $filtered_dirs; do 25088 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 25089 filter="yes" 25090 break 25091 fi 25092 done 25093 if test "$filter" = "no"; then 25094 output_flags="$output_flags $flag" 25095 fi 25096 done 25097 if test -n "$output_flags"; then 25098 printf "%s" "${output_flags# }" 25099 fi 25100`" 25101 25102 if test "$SWIG" = "none"; then 25103 SWIG_PY_ERRMSG="" 25104 else 25105 # Look more closely at the SWIG and Python versions to 25106 # determine SWIG_PY_OPTS. We can skip this if we already 25107 # have the SWIG-generated files. 25108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python >= 3" >&5 25109$as_echo_n "checking for Python >= 3... " >&6; } 25110if ${ac_cv_python_is_py3+:} false; then : 25111 $as_echo_n "(cached) " >&6 25112else 25113 25114 ac_cv_python_is_py3="no" 25115 $PYTHON -c 'import sys; sys.exit(0x3000000 > sys.hexversion)' && \ 25116 ac_cv_python_is_py3="yes" 25117 25118fi 25119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_is_py3" >&5 25120$as_echo "$ac_cv_python_is_py3" >&6; } 25121 25122 if test "$ac_cv_python_is_py3" = "yes"; then 25123 if test "$SWIG_VERSION" -ge "300010"; then 25124 SWIG_PY_ERRMSG="" 25125 else 25126 SWIG_PY_ERRMSG="SWIG version is not suitable" 25127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion Python bindings for Python 3 require SWIG 3.0.10 or newer" >&5 25128$as_echo "$as_me: WARNING: Subversion Python bindings for Python 3 require SWIG 3.0.10 or newer" >&2;} 25129 fi 25130 if test "$SWIG_VERSION" -lt "400000"; then 25131 SWIG_PY_OPTS="-python -py3 -nofastunpack -modern" 25132 else 25133 SWIG_PY_OPTS="-python -py3 -nofastunpack" 25134 fi 25135 else 25136 if test "$SWIG_VERSION" -lt "400000"; then 25137 SWIG_PY_OPTS="-python -classic" 25138 SWIG_PY_ERRMSG="" 25139 else 25140 SWIG_PY_OPTS="-python -nofastunpack" 25141 SWIG_PY_ERRMSG="SWIG version is not suitable" 25142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion Python bindings for Python 2 require 1.3.24 <= SWIG < 4.0.0" >&5 25143$as_echo "$as_me: WARNING: Subversion Python bindings for Python 2 require 1.3.24 <= SWIG < 4.0.0" >&2;} 25144 fi 25145 fi 25146 fi 25147 fi 25148 fi 25149 fi 25150 25151 fi 25152 25153 SWIG_PL_ERRMSG="check config.log for details" 25154 if test "$PERL" != "none"; then 25155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5 25156$as_echo_n "checking perl version... " >&6; } 25157 PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`" 25158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5 25159$as_echo "$PERL_VERSION" >&6; } 25160 if test "$PERL_VERSION" -ge "5008000"; then 25161 SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`" 25162 SWIG_PL_LINK="`$PERL -MExtUtils::Embed -e ldopts`" 25163 SWIG_PL_LINK="` 25164 input_flags="$SWIG_PL_LINK" 25165 output_flags="" 25166 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 25167 for flag in $input_flags; do 25168 filter="no" 25169 for dir in $filtered_dirs; do 25170 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 25171 filter="yes" 25172 break 25173 fi 25174 done 25175 if test "$filter" = "no"; then 25176 output_flags="$output_flags $flag" 25177 fi 25178 done 25179 if test -n "$output_flags"; then 25180 printf "%s" "${output_flags# }" 25181 fi 25182`" 25183 25184 SWIG_PL_ERRMSG="" 25185 else 25186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5 25187$as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;} 25188 fi 25189 fi 25190 25191 SWIG_RB_COMPILE="none" 25192 SWIG_RB_LINK="none" 25193 SWIG_RB_ERRMSG="check config.log for details" 25194 if test "$RUBY" != "none"; then 25195 if test x"$SWIG_VERSION" = x"3""00""008"; then 25196 # Use a local variable to escape the '#' sign. 25197 ruby_swig_issue_602='https://subversion.apache.org/docs/release-notes/1.11#ruby-swig-issue-602' 25198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ruby bindings are known not to support swig 3.0.8; see $ruby_swig_issue_602" >&5 25199$as_echo "$as_me: WARNING: Ruby bindings are known not to support swig 3.0.8; see $ruby_swig_issue_602" >&2;} 25200 fi 25201 rbconfig="$RUBY -rrbconfig -e " 25202 25203 for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \ 25204 rubyhdrdir rubyarchhdrdir sitedir sitelibdir sitearchdir libdir 25205 do 25206 rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"` 25207 eval "rbconfig_$var_name=\"$rbconfig_tmp\"" 25208 done 25209 25210 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5 25211$as_echo "$as_me: Configuring Ruby SWIG binding" >&6;} 25212 25213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5 25214$as_echo_n "checking for Ruby include path... " >&6; } 25215if ${svn_cv_ruby_includes+:} false; then : 25216 $as_echo_n "(cached) " >&6 25217else 25218 25219 if test -d "$rbconfig_rubyhdrdir"; then 25220 svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir" 25221 if test -d "$rbconfig_rubyarchhdrdir"; then 25222 svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyarchhdrdir" 25223 else 25224 svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyhdrdir/$rbconfig_arch" 25225 fi 25226 else 25227 svn_cv_ruby_includes="-I. -I$rbconfig_archdir" 25228 fi 25229 25230fi 25231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5 25232$as_echo "$svn_cv_ruby_includes" >&6; } 25233 SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes" 25234 25235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5 25236$as_echo_n "checking how to compile Ruby extensions... " >&6; } 25237if ${svn_cv_ruby_compile+:} false; then : 25238 $as_echo_n "(cached) " >&6 25239else 25240 25241 svn_cv_ruby_compile="$rbconfig_CC $CFLAGS" 25242 25243fi 25244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5 25245$as_echo "$svn_cv_ruby_compile" >&6; } 25246 SWIG_RB_COMPILE="$svn_cv_ruby_compile" 25247 25248 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'` 25249 25250 25251 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'` 25252 25253 25254 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'` 25255 25256 SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast" 25257 25258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5 25259$as_echo_n "checking how to link Ruby extensions... " >&6; } 25260if ${svn_cv_ruby_link+:} false; then : 25261 $as_echo_n "(cached) " >&6 25262else 25263 25264 svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \ 25265 $rbconfig_LDSHARED`" 25266 svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link" 25267 svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT" 25268 25269fi 25270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5 25271$as_echo "$svn_cv_ruby_link" >&6; } 25272 SWIG_RB_LINK="$svn_cv_ruby_link" 25273 25274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5 25275$as_echo_n "checking how to link Ruby libraries... " >&6; } 25276if ${ac_cv_ruby_libs+:} false; then : 25277 $as_echo_n "(cached) " >&6 25278else 25279 25280 ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS" 25281 25282fi 25283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5 25284$as_echo "$ac_cv_ruby_libs" >&6; } 25285 SWIG_RB_LIBS="` 25286 input_flags="$ac_cv_ruby_libs" 25287 output_flags="" 25288 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 25289 for flag in $input_flags; do 25290 filter="no" 25291 for dir in $filtered_dirs; do 25292 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 25293 filter="yes" 25294 break 25295 fi 25296 done 25297 if test "$filter" = "no"; then 25298 output_flags="$output_flags $flag" 25299 fi 25300 done 25301 if test -n "$output_flags"; then 25302 printf "%s" "${output_flags# }" 25303 fi 25304`" 25305 25306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5 25307$as_echo_n "checking for rb_errinfo... " >&6; } 25308 old_CFLAGS="$CFLAGS" 25309 old_LIBS="$LIBS" 25310 CFLAGS="$CFLAGS $svn_cv_ruby_includes" 25311 25312 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'` 25313 25314 25315 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'` 25316 25317 25318 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'` 25319 25320 LIBS="$SWIG_RB_LIBS" 25321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25322/* end confdefs.h. */ 25323 25324#include <ruby.h> 25325int main() 25326{rb_errinfo();} 25327_ACEOF 25328if ac_fn_c_try_link "$LINENO"; then : 25329 have_rb_errinfo="yes" 25330else 25331 have_rb_errinfo="no" 25332fi 25333rm -f core conftest.err conftest.$ac_objext \ 25334 conftest$ac_exeext conftest.$ac_ext 25335 if test "$have_rb_errinfo" = "yes"; then 25336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25337$as_echo "yes" >&6; } 25338 25339$as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h 25340 25341 else 25342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25343$as_echo "no" >&6; } 25344 fi 25345 CFLAGS="$old_CFLAGS" 25346 LIBS="$old_LIBS" 25347 25348 if ${svn_cv_ruby_sitedir+:} false; then : 25349 $as_echo_n "(cached) " >&6 25350else 25351 25352 svn_cv_ruby_sitedir="$rbconfig_sitedir" 25353 25354fi 25355 25356 25357# Check whether --with-ruby-sitedir was given. 25358if test "${with_ruby_sitedir+set}" = set; then : 25359 withval=$with_ruby_sitedir; svn_ruby_installdir="$withval" 25360else 25361 svn_ruby_installdir="$svn_cv_ruby_sitedir" 25362fi 25363 25364 25365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5 25366$as_echo_n "checking where to install Ruby scripts... " >&6; } 25367 if ${svn_cv_ruby_sitedir_libsuffix+:} false; then : 25368 $as_echo_n "(cached) " >&6 25369else 25370 25371 svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \ 25372 $SED -e "s,^$rbconfig_sitedir,,"`" 25373 25374fi 25375 25376 SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}" 25377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5 25378$as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; } 25379 25380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5 25381$as_echo_n "checking where to install Ruby extensions... " >&6; } 25382 if ${svn_cv_ruby_sitedir_archsuffix+:} false; then : 25383 $as_echo_n "(cached) " >&6 25384else 25385 25386 svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \ 25387 $SED -e "s,^$rbconfig_sitedir,,"`" 25388 25389fi 25390 25391 SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}" 25392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5 25393$as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; } 25394 25395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5 25396$as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; } 25397 if ${svn_cv_ruby_test_verbose+:} false; then : 25398 $as_echo_n "(cached) " >&6 25399else 25400 25401 svn_cv_ruby_test_verbose="normal" 25402 25403fi 25404 25405 25406# Check whether --with-ruby-test-verbose was given. 25407if test "${with_ruby_test_verbose+set}" = set; then : 25408 withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval" 25409else 25410 svn_ruby_test_verbose="$svn_cv_ruby_test_verbose" 25411fi 25412 25413 SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose" 25414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5 25415$as_echo "$SWIG_RB_TEST_VERBOSE" >&6; } 25416 25417 SWIG_RB_ERRMSG="" 25418 fi 25419 25420 25421 25422 25423 25424 25425 25426 25427 25428 25429 25430 25431 25432 25433 25434 25435 25436 25437 25438 ;; 25439 *) 25440 25441 where=$withval 25442 25443 if test $where = no; then 25444 SWIG=none 25445 elif test $where = required || test $where = check; then 25446 # Extract the first word of "swig", so it can be a program name with args. 25447set dummy swig; ac_word=$2 25448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25449$as_echo_n "checking for $ac_word... " >&6; } 25450if ${ac_cv_path_SWIG+:} false; then : 25451 $as_echo_n "(cached) " >&6 25452else 25453 case $SWIG in 25454 [\\/]* | ?:[\\/]*) 25455 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 25456 ;; 25457 *) 25458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25459for as_dir in $PATH 25460do 25461 IFS=$as_save_IFS 25462 test -z "$as_dir" && as_dir=. 25463 for ac_exec_ext in '' $ac_executable_extensions; do 25464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25465 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" 25466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25467 break 2 25468 fi 25469done 25470 done 25471IFS=$as_save_IFS 25472 25473 test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none" 25474 ;; 25475esac 25476fi 25477SWIG=$ac_cv_path_SWIG 25478if test -n "$SWIG"; then 25479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 25480$as_echo "$SWIG" >&6; } 25481else 25482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25483$as_echo "no" >&6; } 25484fi 25485 25486 25487 if test "$SWIG" = "none" && test $where = required; then 25488 as_fn_error $? "SWIG required, but not found" "$LINENO" 5 25489 fi 25490 else 25491 if test -f "$where"; then 25492 SWIG="$where" 25493 else 25494 SWIG="$where/bin/swig" 25495 fi 25496 if test ! -f "$SWIG" || test ! -x "$SWIG"; then 25497 as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5 25498 fi 25499 fi 25500 25501 if test "$SWIG" != "none"; then 25502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5 25503$as_echo_n "checking swig version... " >&6; } 25504 SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \ 25505 $SED -ne 's/^.*Version \(.*\)$/\1/p'`" 25506 # We want the version as an integer so we can test against 25507 # which version we're using. SWIG doesn't provide this 25508 # to us so we have to come up with it on our own. 25509 # The major is passed straight through, 25510 # the minor is zero padded to two places, 25511 # and the patch level is zero padded to three places. 25512 # e.g. 1.3.24 becomes 103024 25513 SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \ 25514 $SED -e 's/[^0-9\.].*$//' \ 25515 -e 's/\.\([0-9]\)$/.0\1/' \ 25516 -e 's/\.\([0-9][0-9]\)$/.0\1/' \ 25517 -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`" 25518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5 25519$as_echo "$SWIG_VERSION_RAW" >&6; } 25520 # If you change the required swig version number, don't forget to update: 25521 # subversion/bindings/swig/INSTALL 25522 if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then 25523 SWIG_SUITABLE=yes 25524 else 25525 SWIG_SUITABLE=no 25526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5 25527$as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;} 25528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG >= 1.3.24" >&5 25529$as_echo "$as_me: WARNING: Subversion requires SWIG >= 1.3.24" >&2;} 25530 fi 25531 fi 25532 25533 SWIG_PY_COMPILE="none" 25534 SWIG_PY_LINK="none" 25535 SWIG_PY_OPTS="none" 25536 SWIG_PY_ERRMSG="check config.log for details" 25537 if test "$PYTHON" != "none"; then 25538 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5 25539$as_echo "$as_me: Configuring python swig binding" >&6;} 25540 25541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5 25542$as_echo_n "checking for Python includes... " >&6; } 25543if ${ac_cv_python_includes+:} false; then : 25544 $as_echo_n "(cached) " >&6 25545else 25546 25547 ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`" 25548 25549fi 25550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5 25551$as_echo "$ac_cv_python_includes" >&6; } 25552 SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes" 25553 25554 if test "$ac_cv_python_includes" = "none"; then 25555 SWIG_PY_ERRMSG="no distutils found" 25556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5 25557$as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;} 25558 else 25559 25560 python_header_found="no" 25561 25562 save_cppflags="$CPPFLAGS" 25563 CPPFLAGS="$CPPFLAGS $ac_cv_python_includes" 25564 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default" 25565if test "x$ac_cv_header_Python_h" = xyes; then : 25566 25567 python_header_found="yes" 25568 25569fi 25570 25571 25572 CPPFLAGS="$save_cppflags" 25573 25574 if test "$python_header_found" = "no"; then 25575 SWIG_PY_ERRMSG="no Python.h found" 25576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Python.h not found; disabling python swig bindings" >&5 25577$as_echo "$as_me: WARNING: Python.h not found; disabling python swig bindings" >&2;} 25578 else 25579 25580 py3c_found=no 25581 py3c_skip=no 25582 25583 25584# Check whether --with-py3c was given. 25585if test "${with_py3c+set}" = set; then : 25586 withval=$with_py3c; 25587 if test "$withval" = "yes"; then 25588 py3c_skip=no 25589 elif test "$withval" = "no"; then 25590 py3c_skip=yes 25591 else 25592 py3c_skip=no 25593 py3c_prefix="$withval" 25594 fi 25595 25596fi 25597 25598 25599 if test "$py3c_skip" = "yes"; then 25600 { $as_echo "$as_me:${as_lineno-$LINENO}: Skipping configure of py3c" >&5 25601$as_echo "$as_me: Skipping configure of py3c" >&6;} 25602 else 25603 if test -n "$py3c_prefix"; then 25604 { $as_echo "$as_me:${as_lineno-$LINENO}: py3c library configuration via prefix $py3c_prefix" >&5 25605$as_echo "$as_me: py3c library configuration via prefix $py3c_prefix" >&6;} 25606 25607 if test "$ac_cv_python_includes" = "none"; then 25608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: py3c cannot be used without distutils module" >&5 25609$as_echo "$as_me: WARNING: py3c cannot be used without distutils module" >&2;} 25610 fi 25611 25612 save_cppflags="$CPPFLAGS" 25613 CPPFLAGS="$CPPFLAGS $ac_cv_python_includes -I$py3c_prefix/include" 25614 for ac_header in py3c.h 25615do : 25616 ac_fn_c_check_header_mongrel "$LINENO" "py3c.h" "ac_cv_header_py3c_h" "$ac_includes_default" 25617if test "x$ac_cv_header_py3c_h" = xyes; then : 25618 cat >>confdefs.h <<_ACEOF 25619#define HAVE_PY3C_H 1 25620_ACEOF 25621 25622 py3c_found="yes" 25623 SVN_PY3C_INCLUDES="-I$py3c_prefix/include" 25624 25625fi 25626 25627done 25628 25629 CPPFLAGS="$save_cppflags" 25630 else 25631 25632 { $as_echo "$as_me:${as_lineno-$LINENO}: py3c library configuration via pkg-config" >&5 25633$as_echo "$as_me: py3c library configuration via pkg-config" >&6;} 25634 if test -n "$PKG_CONFIG"; then 25635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for py3c library" >&5 25636$as_echo_n "checking for py3c library... " >&6; } 25637 if $PKG_CONFIG py3c --exists; then 25638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25639$as_echo "yes" >&6; } 25640 py3c_found=yes 25641 SVN_PY3C_INCLUDES=`$PKG_CONFIG py3c --cflags` 25642 else 25643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25644$as_echo "no" >&6; } 25645 fi 25646 fi 25647 25648 25649 if test "$py3c_found" = "no"; then 25650 { $as_echo "$as_me:${as_lineno-$LINENO}: py3c library configuration without pkg-config" >&5 25651$as_echo "$as_me: py3c library configuration without pkg-config" >&6;} 25652 25653 if test "$ac_cv_python_includes" = "none"; then 25654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: py3c cannot be used without distutils module" >&5 25655$as_echo "$as_me: WARNING: py3c cannot be used without distutils module" >&2;} 25656 fi 25657 25658 save_cppflags="$CPPFLAGS" 25659 CPPFLAGS="$CPPFLAGS $ac_cv_python_includes" 25660 ac_fn_c_check_header_mongrel "$LINENO" "py3c.h" "ac_cv_header_py3c_h" "$ac_includes_default" 25661if test "x$ac_cv_header_py3c_h" = xyes; then : 25662 25663 py3c_found="yes" 25664 25665fi 25666 25667 25668 CPPFLAGS="$save_cppflags" 25669 fi 25670 fi 25671 fi 25672 25673 25674 25675 25676 if test "$py3c_found" = "no"; then 25677 SWIG_PY_ERRMSG="py3c library not found" 25678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: py3c library not found; disabling python swig bindings" >&5 25679$as_echo "$as_me: WARNING: py3c library not found; disabling python swig bindings" >&2;} 25680 else 25681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5 25682$as_echo_n "checking for compiling Python extensions... " >&6; } 25683if ${ac_cv_python_compile+:} false; then : 25684 $as_echo_n "(cached) " >&6 25685else 25686 25687 ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`" 25688 25689fi 25690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5 25691$as_echo "$ac_cv_python_compile" >&6; } 25692 SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS" 25693 25694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5 25695$as_echo_n "checking for linking Python extensions... " >&6; } 25696if ${ac_cv_python_link+:} false; then : 25697 $as_echo_n "(cached) " >&6 25698else 25699 25700 ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`" 25701 25702fi 25703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5 25704$as_echo "$ac_cv_python_link" >&6; } 25705 SWIG_PY_LINK="$ac_cv_python_link" 25706 25707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5 25708$as_echo_n "checking for linking Python libraries... " >&6; } 25709if ${ac_cv_python_libs+:} false; then : 25710 $as_echo_n "(cached) " >&6 25711else 25712 25713 ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`" 25714 25715fi 25716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5 25717$as_echo "$ac_cv_python_libs" >&6; } 25718 SWIG_PY_LIBS="` 25719 input_flags="$ac_cv_python_libs" 25720 output_flags="" 25721 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 25722 for flag in $input_flags; do 25723 filter="no" 25724 for dir in $filtered_dirs; do 25725 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 25726 filter="yes" 25727 break 25728 fi 25729 done 25730 if test "$filter" = "no"; then 25731 output_flags="$output_flags $flag" 25732 fi 25733 done 25734 if test -n "$output_flags"; then 25735 printf "%s" "${output_flags# }" 25736 fi 25737`" 25738 25739 if test "$SWIG" = "none"; then 25740 SWIG_PY_ERRMSG="" 25741 else 25742 # Look more closely at the SWIG and Python versions to 25743 # determine SWIG_PY_OPTS. We can skip this if we already 25744 # have the SWIG-generated files. 25745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python >= 3" >&5 25746$as_echo_n "checking for Python >= 3... " >&6; } 25747if ${ac_cv_python_is_py3+:} false; then : 25748 $as_echo_n "(cached) " >&6 25749else 25750 25751 ac_cv_python_is_py3="no" 25752 $PYTHON -c 'import sys; sys.exit(0x3000000 > sys.hexversion)' && \ 25753 ac_cv_python_is_py3="yes" 25754 25755fi 25756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_is_py3" >&5 25757$as_echo "$ac_cv_python_is_py3" >&6; } 25758 25759 if test "$ac_cv_python_is_py3" = "yes"; then 25760 if test "$SWIG_VERSION" -ge "300010"; then 25761 SWIG_PY_ERRMSG="" 25762 else 25763 SWIG_PY_ERRMSG="SWIG version is not suitable" 25764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion Python bindings for Python 3 require SWIG 3.0.10 or newer" >&5 25765$as_echo "$as_me: WARNING: Subversion Python bindings for Python 3 require SWIG 3.0.10 or newer" >&2;} 25766 fi 25767 if test "$SWIG_VERSION" -lt "400000"; then 25768 SWIG_PY_OPTS="-python -py3 -nofastunpack -modern" 25769 else 25770 SWIG_PY_OPTS="-python -py3 -nofastunpack" 25771 fi 25772 else 25773 if test "$SWIG_VERSION" -lt "400000"; then 25774 SWIG_PY_OPTS="-python -classic" 25775 SWIG_PY_ERRMSG="" 25776 else 25777 SWIG_PY_OPTS="-python -nofastunpack" 25778 SWIG_PY_ERRMSG="SWIG version is not suitable" 25779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion Python bindings for Python 2 require 1.3.24 <= SWIG < 4.0.0" >&5 25780$as_echo "$as_me: WARNING: Subversion Python bindings for Python 2 require 1.3.24 <= SWIG < 4.0.0" >&2;} 25781 fi 25782 fi 25783 fi 25784 fi 25785 fi 25786 fi 25787 25788 fi 25789 25790 SWIG_PL_ERRMSG="check config.log for details" 25791 if test "$PERL" != "none"; then 25792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5 25793$as_echo_n "checking perl version... " >&6; } 25794 PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`" 25795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5 25796$as_echo "$PERL_VERSION" >&6; } 25797 if test "$PERL_VERSION" -ge "5008000"; then 25798 SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`" 25799 SWIG_PL_LINK="`$PERL -MExtUtils::Embed -e ldopts`" 25800 SWIG_PL_LINK="` 25801 input_flags="$SWIG_PL_LINK" 25802 output_flags="" 25803 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 25804 for flag in $input_flags; do 25805 filter="no" 25806 for dir in $filtered_dirs; do 25807 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 25808 filter="yes" 25809 break 25810 fi 25811 done 25812 if test "$filter" = "no"; then 25813 output_flags="$output_flags $flag" 25814 fi 25815 done 25816 if test -n "$output_flags"; then 25817 printf "%s" "${output_flags# }" 25818 fi 25819`" 25820 25821 SWIG_PL_ERRMSG="" 25822 else 25823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5 25824$as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;} 25825 fi 25826 fi 25827 25828 SWIG_RB_COMPILE="none" 25829 SWIG_RB_LINK="none" 25830 SWIG_RB_ERRMSG="check config.log for details" 25831 if test "$RUBY" != "none"; then 25832 if test x"$SWIG_VERSION" = x"3""00""008"; then 25833 # Use a local variable to escape the '#' sign. 25834 ruby_swig_issue_602='https://subversion.apache.org/docs/release-notes/1.11#ruby-swig-issue-602' 25835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ruby bindings are known not to support swig 3.0.8; see $ruby_swig_issue_602" >&5 25836$as_echo "$as_me: WARNING: Ruby bindings are known not to support swig 3.0.8; see $ruby_swig_issue_602" >&2;} 25837 fi 25838 rbconfig="$RUBY -rrbconfig -e " 25839 25840 for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \ 25841 rubyhdrdir rubyarchhdrdir sitedir sitelibdir sitearchdir libdir 25842 do 25843 rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"` 25844 eval "rbconfig_$var_name=\"$rbconfig_tmp\"" 25845 done 25846 25847 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5 25848$as_echo "$as_me: Configuring Ruby SWIG binding" >&6;} 25849 25850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5 25851$as_echo_n "checking for Ruby include path... " >&6; } 25852if ${svn_cv_ruby_includes+:} false; then : 25853 $as_echo_n "(cached) " >&6 25854else 25855 25856 if test -d "$rbconfig_rubyhdrdir"; then 25857 svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir" 25858 if test -d "$rbconfig_rubyarchhdrdir"; then 25859 svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyarchhdrdir" 25860 else 25861 svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyhdrdir/$rbconfig_arch" 25862 fi 25863 else 25864 svn_cv_ruby_includes="-I. -I$rbconfig_archdir" 25865 fi 25866 25867fi 25868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5 25869$as_echo "$svn_cv_ruby_includes" >&6; } 25870 SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes" 25871 25872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5 25873$as_echo_n "checking how to compile Ruby extensions... " >&6; } 25874if ${svn_cv_ruby_compile+:} false; then : 25875 $as_echo_n "(cached) " >&6 25876else 25877 25878 svn_cv_ruby_compile="$rbconfig_CC $CFLAGS" 25879 25880fi 25881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5 25882$as_echo "$svn_cv_ruby_compile" >&6; } 25883 SWIG_RB_COMPILE="$svn_cv_ruby_compile" 25884 25885 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'` 25886 25887 25888 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'` 25889 25890 25891 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'` 25892 25893 SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast" 25894 25895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5 25896$as_echo_n "checking how to link Ruby extensions... " >&6; } 25897if ${svn_cv_ruby_link+:} false; then : 25898 $as_echo_n "(cached) " >&6 25899else 25900 25901 svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \ 25902 $rbconfig_LDSHARED`" 25903 svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link" 25904 svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT" 25905 25906fi 25907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5 25908$as_echo "$svn_cv_ruby_link" >&6; } 25909 SWIG_RB_LINK="$svn_cv_ruby_link" 25910 25911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5 25912$as_echo_n "checking how to link Ruby libraries... " >&6; } 25913if ${ac_cv_ruby_libs+:} false; then : 25914 $as_echo_n "(cached) " >&6 25915else 25916 25917 ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS" 25918 25919fi 25920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5 25921$as_echo "$ac_cv_ruby_libs" >&6; } 25922 SWIG_RB_LIBS="` 25923 input_flags="$ac_cv_ruby_libs" 25924 output_flags="" 25925 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 25926 for flag in $input_flags; do 25927 filter="no" 25928 for dir in $filtered_dirs; do 25929 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 25930 filter="yes" 25931 break 25932 fi 25933 done 25934 if test "$filter" = "no"; then 25935 output_flags="$output_flags $flag" 25936 fi 25937 done 25938 if test -n "$output_flags"; then 25939 printf "%s" "${output_flags# }" 25940 fi 25941`" 25942 25943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5 25944$as_echo_n "checking for rb_errinfo... " >&6; } 25945 old_CFLAGS="$CFLAGS" 25946 old_LIBS="$LIBS" 25947 CFLAGS="$CFLAGS $svn_cv_ruby_includes" 25948 25949 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'` 25950 25951 25952 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'` 25953 25954 25955 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'` 25956 25957 LIBS="$SWIG_RB_LIBS" 25958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25959/* end confdefs.h. */ 25960 25961#include <ruby.h> 25962int main() 25963{rb_errinfo();} 25964_ACEOF 25965if ac_fn_c_try_link "$LINENO"; then : 25966 have_rb_errinfo="yes" 25967else 25968 have_rb_errinfo="no" 25969fi 25970rm -f core conftest.err conftest.$ac_objext \ 25971 conftest$ac_exeext conftest.$ac_ext 25972 if test "$have_rb_errinfo" = "yes"; then 25973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25974$as_echo "yes" >&6; } 25975 25976$as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h 25977 25978 else 25979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25980$as_echo "no" >&6; } 25981 fi 25982 CFLAGS="$old_CFLAGS" 25983 LIBS="$old_LIBS" 25984 25985 if ${svn_cv_ruby_sitedir+:} false; then : 25986 $as_echo_n "(cached) " >&6 25987else 25988 25989 svn_cv_ruby_sitedir="$rbconfig_sitedir" 25990 25991fi 25992 25993 25994# Check whether --with-ruby-sitedir was given. 25995if test "${with_ruby_sitedir+set}" = set; then : 25996 withval=$with_ruby_sitedir; svn_ruby_installdir="$withval" 25997else 25998 svn_ruby_installdir="$svn_cv_ruby_sitedir" 25999fi 26000 26001 26002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5 26003$as_echo_n "checking where to install Ruby scripts... " >&6; } 26004 if ${svn_cv_ruby_sitedir_libsuffix+:} false; then : 26005 $as_echo_n "(cached) " >&6 26006else 26007 26008 svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \ 26009 $SED -e "s,^$rbconfig_sitedir,,"`" 26010 26011fi 26012 26013 SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}" 26014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5 26015$as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; } 26016 26017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5 26018$as_echo_n "checking where to install Ruby extensions... " >&6; } 26019 if ${svn_cv_ruby_sitedir_archsuffix+:} false; then : 26020 $as_echo_n "(cached) " >&6 26021else 26022 26023 svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \ 26024 $SED -e "s,^$rbconfig_sitedir,,"`" 26025 26026fi 26027 26028 SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}" 26029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5 26030$as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; } 26031 26032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5 26033$as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; } 26034 if ${svn_cv_ruby_test_verbose+:} false; then : 26035 $as_echo_n "(cached) " >&6 26036else 26037 26038 svn_cv_ruby_test_verbose="normal" 26039 26040fi 26041 26042 26043# Check whether --with-ruby-test-verbose was given. 26044if test "${with_ruby_test_verbose+set}" = set; then : 26045 withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval" 26046else 26047 svn_ruby_test_verbose="$svn_cv_ruby_test_verbose" 26048fi 26049 26050 SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose" 26051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5 26052$as_echo "$SWIG_RB_TEST_VERBOSE" >&6; } 26053 26054 SWIG_RB_ERRMSG="" 26055 fi 26056 26057 26058 26059 26060 26061 26062 26063 26064 26065 26066 26067 26068 26069 26070 26071 26072 26073 26074 26075 ;; 26076 esac 26077 26078else 26079 26080 26081 where=check 26082 26083 if test $where = no; then 26084 SWIG=none 26085 elif test $where = required || test $where = check; then 26086 # Extract the first word of "swig", so it can be a program name with args. 26087set dummy swig; ac_word=$2 26088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26089$as_echo_n "checking for $ac_word... " >&6; } 26090if ${ac_cv_path_SWIG+:} false; then : 26091 $as_echo_n "(cached) " >&6 26092else 26093 case $SWIG in 26094 [\\/]* | ?:[\\/]*) 26095 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 26096 ;; 26097 *) 26098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26099for as_dir in $PATH 26100do 26101 IFS=$as_save_IFS 26102 test -z "$as_dir" && as_dir=. 26103 for ac_exec_ext in '' $ac_executable_extensions; do 26104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26105 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" 26106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26107 break 2 26108 fi 26109done 26110 done 26111IFS=$as_save_IFS 26112 26113 test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none" 26114 ;; 26115esac 26116fi 26117SWIG=$ac_cv_path_SWIG 26118if test -n "$SWIG"; then 26119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 26120$as_echo "$SWIG" >&6; } 26121else 26122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26123$as_echo "no" >&6; } 26124fi 26125 26126 26127 if test "$SWIG" = "none" && test $where = required; then 26128 as_fn_error $? "SWIG required, but not found" "$LINENO" 5 26129 fi 26130 else 26131 if test -f "$where"; then 26132 SWIG="$where" 26133 else 26134 SWIG="$where/bin/swig" 26135 fi 26136 if test ! -f "$SWIG" || test ! -x "$SWIG"; then 26137 as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5 26138 fi 26139 fi 26140 26141 if test "$SWIG" != "none"; then 26142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5 26143$as_echo_n "checking swig version... " >&6; } 26144 SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \ 26145 $SED -ne 's/^.*Version \(.*\)$/\1/p'`" 26146 # We want the version as an integer so we can test against 26147 # which version we're using. SWIG doesn't provide this 26148 # to us so we have to come up with it on our own. 26149 # The major is passed straight through, 26150 # the minor is zero padded to two places, 26151 # and the patch level is zero padded to three places. 26152 # e.g. 1.3.24 becomes 103024 26153 SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \ 26154 $SED -e 's/[^0-9\.].*$//' \ 26155 -e 's/\.\([0-9]\)$/.0\1/' \ 26156 -e 's/\.\([0-9][0-9]\)$/.0\1/' \ 26157 -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`" 26158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5 26159$as_echo "$SWIG_VERSION_RAW" >&6; } 26160 # If you change the required swig version number, don't forget to update: 26161 # subversion/bindings/swig/INSTALL 26162 if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then 26163 SWIG_SUITABLE=yes 26164 else 26165 SWIG_SUITABLE=no 26166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5 26167$as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;} 26168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG >= 1.3.24" >&5 26169$as_echo "$as_me: WARNING: Subversion requires SWIG >= 1.3.24" >&2;} 26170 fi 26171 fi 26172 26173 SWIG_PY_COMPILE="none" 26174 SWIG_PY_LINK="none" 26175 SWIG_PY_OPTS="none" 26176 SWIG_PY_ERRMSG="check config.log for details" 26177 if test "$PYTHON" != "none"; then 26178 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5 26179$as_echo "$as_me: Configuring python swig binding" >&6;} 26180 26181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5 26182$as_echo_n "checking for Python includes... " >&6; } 26183if ${ac_cv_python_includes+:} false; then : 26184 $as_echo_n "(cached) " >&6 26185else 26186 26187 ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`" 26188 26189fi 26190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5 26191$as_echo "$ac_cv_python_includes" >&6; } 26192 SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes" 26193 26194 if test "$ac_cv_python_includes" = "none"; then 26195 SWIG_PY_ERRMSG="no distutils found" 26196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5 26197$as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;} 26198 else 26199 26200 python_header_found="no" 26201 26202 save_cppflags="$CPPFLAGS" 26203 CPPFLAGS="$CPPFLAGS $ac_cv_python_includes" 26204 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default" 26205if test "x$ac_cv_header_Python_h" = xyes; then : 26206 26207 python_header_found="yes" 26208 26209fi 26210 26211 26212 CPPFLAGS="$save_cppflags" 26213 26214 if test "$python_header_found" = "no"; then 26215 SWIG_PY_ERRMSG="no Python.h found" 26216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Python.h not found; disabling python swig bindings" >&5 26217$as_echo "$as_me: WARNING: Python.h not found; disabling python swig bindings" >&2;} 26218 else 26219 26220 py3c_found=no 26221 py3c_skip=no 26222 26223 26224# Check whether --with-py3c was given. 26225if test "${with_py3c+set}" = set; then : 26226 withval=$with_py3c; 26227 if test "$withval" = "yes"; then 26228 py3c_skip=no 26229 elif test "$withval" = "no"; then 26230 py3c_skip=yes 26231 else 26232 py3c_skip=no 26233 py3c_prefix="$withval" 26234 fi 26235 26236fi 26237 26238 26239 if test "$py3c_skip" = "yes"; then 26240 { $as_echo "$as_me:${as_lineno-$LINENO}: Skipping configure of py3c" >&5 26241$as_echo "$as_me: Skipping configure of py3c" >&6;} 26242 else 26243 if test -n "$py3c_prefix"; then 26244 { $as_echo "$as_me:${as_lineno-$LINENO}: py3c library configuration via prefix $py3c_prefix" >&5 26245$as_echo "$as_me: py3c library configuration via prefix $py3c_prefix" >&6;} 26246 26247 if test "$ac_cv_python_includes" = "none"; then 26248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: py3c cannot be used without distutils module" >&5 26249$as_echo "$as_me: WARNING: py3c cannot be used without distutils module" >&2;} 26250 fi 26251 26252 save_cppflags="$CPPFLAGS" 26253 CPPFLAGS="$CPPFLAGS $ac_cv_python_includes -I$py3c_prefix/include" 26254 for ac_header in py3c.h 26255do : 26256 ac_fn_c_check_header_mongrel "$LINENO" "py3c.h" "ac_cv_header_py3c_h" "$ac_includes_default" 26257if test "x$ac_cv_header_py3c_h" = xyes; then : 26258 cat >>confdefs.h <<_ACEOF 26259#define HAVE_PY3C_H 1 26260_ACEOF 26261 26262 py3c_found="yes" 26263 SVN_PY3C_INCLUDES="-I$py3c_prefix/include" 26264 26265fi 26266 26267done 26268 26269 CPPFLAGS="$save_cppflags" 26270 else 26271 26272 { $as_echo "$as_me:${as_lineno-$LINENO}: py3c library configuration via pkg-config" >&5 26273$as_echo "$as_me: py3c library configuration via pkg-config" >&6;} 26274 if test -n "$PKG_CONFIG"; then 26275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for py3c library" >&5 26276$as_echo_n "checking for py3c library... " >&6; } 26277 if $PKG_CONFIG py3c --exists; then 26278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26279$as_echo "yes" >&6; } 26280 py3c_found=yes 26281 SVN_PY3C_INCLUDES=`$PKG_CONFIG py3c --cflags` 26282 else 26283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26284$as_echo "no" >&6; } 26285 fi 26286 fi 26287 26288 26289 if test "$py3c_found" = "no"; then 26290 { $as_echo "$as_me:${as_lineno-$LINENO}: py3c library configuration without pkg-config" >&5 26291$as_echo "$as_me: py3c library configuration without pkg-config" >&6;} 26292 26293 if test "$ac_cv_python_includes" = "none"; then 26294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: py3c cannot be used without distutils module" >&5 26295$as_echo "$as_me: WARNING: py3c cannot be used without distutils module" >&2;} 26296 fi 26297 26298 save_cppflags="$CPPFLAGS" 26299 CPPFLAGS="$CPPFLAGS $ac_cv_python_includes" 26300 ac_fn_c_check_header_mongrel "$LINENO" "py3c.h" "ac_cv_header_py3c_h" "$ac_includes_default" 26301if test "x$ac_cv_header_py3c_h" = xyes; then : 26302 26303 py3c_found="yes" 26304 26305fi 26306 26307 26308 CPPFLAGS="$save_cppflags" 26309 fi 26310 fi 26311 fi 26312 26313 26314 26315 26316 if test "$py3c_found" = "no"; then 26317 SWIG_PY_ERRMSG="py3c library not found" 26318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: py3c library not found; disabling python swig bindings" >&5 26319$as_echo "$as_me: WARNING: py3c library not found; disabling python swig bindings" >&2;} 26320 else 26321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5 26322$as_echo_n "checking for compiling Python extensions... " >&6; } 26323if ${ac_cv_python_compile+:} false; then : 26324 $as_echo_n "(cached) " >&6 26325else 26326 26327 ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`" 26328 26329fi 26330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5 26331$as_echo "$ac_cv_python_compile" >&6; } 26332 SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS" 26333 26334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5 26335$as_echo_n "checking for linking Python extensions... " >&6; } 26336if ${ac_cv_python_link+:} false; then : 26337 $as_echo_n "(cached) " >&6 26338else 26339 26340 ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`" 26341 26342fi 26343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5 26344$as_echo "$ac_cv_python_link" >&6; } 26345 SWIG_PY_LINK="$ac_cv_python_link" 26346 26347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5 26348$as_echo_n "checking for linking Python libraries... " >&6; } 26349if ${ac_cv_python_libs+:} false; then : 26350 $as_echo_n "(cached) " >&6 26351else 26352 26353 ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`" 26354 26355fi 26356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5 26357$as_echo "$ac_cv_python_libs" >&6; } 26358 SWIG_PY_LIBS="` 26359 input_flags="$ac_cv_python_libs" 26360 output_flags="" 26361 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 26362 for flag in $input_flags; do 26363 filter="no" 26364 for dir in $filtered_dirs; do 26365 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 26366 filter="yes" 26367 break 26368 fi 26369 done 26370 if test "$filter" = "no"; then 26371 output_flags="$output_flags $flag" 26372 fi 26373 done 26374 if test -n "$output_flags"; then 26375 printf "%s" "${output_flags# }" 26376 fi 26377`" 26378 26379 if test "$SWIG" = "none"; then 26380 SWIG_PY_ERRMSG="" 26381 else 26382 # Look more closely at the SWIG and Python versions to 26383 # determine SWIG_PY_OPTS. We can skip this if we already 26384 # have the SWIG-generated files. 26385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python >= 3" >&5 26386$as_echo_n "checking for Python >= 3... " >&6; } 26387if ${ac_cv_python_is_py3+:} false; then : 26388 $as_echo_n "(cached) " >&6 26389else 26390 26391 ac_cv_python_is_py3="no" 26392 $PYTHON -c 'import sys; sys.exit(0x3000000 > sys.hexversion)' && \ 26393 ac_cv_python_is_py3="yes" 26394 26395fi 26396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_is_py3" >&5 26397$as_echo "$ac_cv_python_is_py3" >&6; } 26398 26399 if test "$ac_cv_python_is_py3" = "yes"; then 26400 if test "$SWIG_VERSION" -ge "300010"; then 26401 SWIG_PY_ERRMSG="" 26402 else 26403 SWIG_PY_ERRMSG="SWIG version is not suitable" 26404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion Python bindings for Python 3 require SWIG 3.0.10 or newer" >&5 26405$as_echo "$as_me: WARNING: Subversion Python bindings for Python 3 require SWIG 3.0.10 or newer" >&2;} 26406 fi 26407 if test "$SWIG_VERSION" -lt "400000"; then 26408 SWIG_PY_OPTS="-python -py3 -nofastunpack -modern" 26409 else 26410 SWIG_PY_OPTS="-python -py3 -nofastunpack" 26411 fi 26412 else 26413 if test "$SWIG_VERSION" -lt "400000"; then 26414 SWIG_PY_OPTS="-python -classic" 26415 SWIG_PY_ERRMSG="" 26416 else 26417 SWIG_PY_OPTS="-python -nofastunpack" 26418 SWIG_PY_ERRMSG="SWIG version is not suitable" 26419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion Python bindings for Python 2 require 1.3.24 <= SWIG < 4.0.0" >&5 26420$as_echo "$as_me: WARNING: Subversion Python bindings for Python 2 require 1.3.24 <= SWIG < 4.0.0" >&2;} 26421 fi 26422 fi 26423 fi 26424 fi 26425 fi 26426 fi 26427 26428 fi 26429 26430 SWIG_PL_ERRMSG="check config.log for details" 26431 if test "$PERL" != "none"; then 26432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5 26433$as_echo_n "checking perl version... " >&6; } 26434 PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`" 26435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5 26436$as_echo "$PERL_VERSION" >&6; } 26437 if test "$PERL_VERSION" -ge "5008000"; then 26438 SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`" 26439 SWIG_PL_LINK="`$PERL -MExtUtils::Embed -e ldopts`" 26440 SWIG_PL_LINK="` 26441 input_flags="$SWIG_PL_LINK" 26442 output_flags="" 26443 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 26444 for flag in $input_flags; do 26445 filter="no" 26446 for dir in $filtered_dirs; do 26447 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 26448 filter="yes" 26449 break 26450 fi 26451 done 26452 if test "$filter" = "no"; then 26453 output_flags="$output_flags $flag" 26454 fi 26455 done 26456 if test -n "$output_flags"; then 26457 printf "%s" "${output_flags# }" 26458 fi 26459`" 26460 26461 SWIG_PL_ERRMSG="" 26462 else 26463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5 26464$as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;} 26465 fi 26466 fi 26467 26468 SWIG_RB_COMPILE="none" 26469 SWIG_RB_LINK="none" 26470 SWIG_RB_ERRMSG="check config.log for details" 26471 if test "$RUBY" != "none"; then 26472 if test x"$SWIG_VERSION" = x"3""00""008"; then 26473 # Use a local variable to escape the '#' sign. 26474 ruby_swig_issue_602='https://subversion.apache.org/docs/release-notes/1.11#ruby-swig-issue-602' 26475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ruby bindings are known not to support swig 3.0.8; see $ruby_swig_issue_602" >&5 26476$as_echo "$as_me: WARNING: Ruby bindings are known not to support swig 3.0.8; see $ruby_swig_issue_602" >&2;} 26477 fi 26478 rbconfig="$RUBY -rrbconfig -e " 26479 26480 for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \ 26481 rubyhdrdir rubyarchhdrdir sitedir sitelibdir sitearchdir libdir 26482 do 26483 rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"` 26484 eval "rbconfig_$var_name=\"$rbconfig_tmp\"" 26485 done 26486 26487 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5 26488$as_echo "$as_me: Configuring Ruby SWIG binding" >&6;} 26489 26490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5 26491$as_echo_n "checking for Ruby include path... " >&6; } 26492if ${svn_cv_ruby_includes+:} false; then : 26493 $as_echo_n "(cached) " >&6 26494else 26495 26496 if test -d "$rbconfig_rubyhdrdir"; then 26497 svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir" 26498 if test -d "$rbconfig_rubyarchhdrdir"; then 26499 svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyarchhdrdir" 26500 else 26501 svn_cv_ruby_includes="$svn_cv_ruby_includes -I$rbconfig_rubyhdrdir/$rbconfig_arch" 26502 fi 26503 else 26504 svn_cv_ruby_includes="-I. -I$rbconfig_archdir" 26505 fi 26506 26507fi 26508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5 26509$as_echo "$svn_cv_ruby_includes" >&6; } 26510 SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes" 26511 26512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5 26513$as_echo_n "checking how to compile Ruby extensions... " >&6; } 26514if ${svn_cv_ruby_compile+:} false; then : 26515 $as_echo_n "(cached) " >&6 26516else 26517 26518 svn_cv_ruby_compile="$rbconfig_CC $CFLAGS" 26519 26520fi 26521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5 26522$as_echo "$svn_cv_ruby_compile" >&6; } 26523 SWIG_RB_COMPILE="$svn_cv_ruby_compile" 26524 26525 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'` 26526 26527 26528 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'` 26529 26530 26531 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'` 26532 26533 SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast" 26534 26535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5 26536$as_echo_n "checking how to link Ruby extensions... " >&6; } 26537if ${svn_cv_ruby_link+:} false; then : 26538 $as_echo_n "(cached) " >&6 26539else 26540 26541 svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \ 26542 $rbconfig_LDSHARED`" 26543 svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link" 26544 svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT" 26545 26546fi 26547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5 26548$as_echo "$svn_cv_ruby_link" >&6; } 26549 SWIG_RB_LINK="$svn_cv_ruby_link" 26550 26551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5 26552$as_echo_n "checking how to link Ruby libraries... " >&6; } 26553if ${ac_cv_ruby_libs+:} false; then : 26554 $as_echo_n "(cached) " >&6 26555else 26556 26557 ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS" 26558 26559fi 26560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5 26561$as_echo "$ac_cv_ruby_libs" >&6; } 26562 SWIG_RB_LIBS="` 26563 input_flags="$ac_cv_ruby_libs" 26564 output_flags="" 26565 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 26566 for flag in $input_flags; do 26567 filter="no" 26568 for dir in $filtered_dirs; do 26569 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 26570 filter="yes" 26571 break 26572 fi 26573 done 26574 if test "$filter" = "no"; then 26575 output_flags="$output_flags $flag" 26576 fi 26577 done 26578 if test -n "$output_flags"; then 26579 printf "%s" "${output_flags# }" 26580 fi 26581`" 26582 26583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5 26584$as_echo_n "checking for rb_errinfo... " >&6; } 26585 old_CFLAGS="$CFLAGS" 26586 old_LIBS="$LIBS" 26587 CFLAGS="$CFLAGS $svn_cv_ruby_includes" 26588 26589 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'` 26590 26591 26592 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'` 26593 26594 26595 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'` 26596 26597 LIBS="$SWIG_RB_LIBS" 26598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26599/* end confdefs.h. */ 26600 26601#include <ruby.h> 26602int main() 26603{rb_errinfo();} 26604_ACEOF 26605if ac_fn_c_try_link "$LINENO"; then : 26606 have_rb_errinfo="yes" 26607else 26608 have_rb_errinfo="no" 26609fi 26610rm -f core conftest.err conftest.$ac_objext \ 26611 conftest$ac_exeext conftest.$ac_ext 26612 if test "$have_rb_errinfo" = "yes"; then 26613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26614$as_echo "yes" >&6; } 26615 26616$as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h 26617 26618 else 26619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26620$as_echo "no" >&6; } 26621 fi 26622 CFLAGS="$old_CFLAGS" 26623 LIBS="$old_LIBS" 26624 26625 if ${svn_cv_ruby_sitedir+:} false; then : 26626 $as_echo_n "(cached) " >&6 26627else 26628 26629 svn_cv_ruby_sitedir="$rbconfig_sitedir" 26630 26631fi 26632 26633 26634# Check whether --with-ruby-sitedir was given. 26635if test "${with_ruby_sitedir+set}" = set; then : 26636 withval=$with_ruby_sitedir; svn_ruby_installdir="$withval" 26637else 26638 svn_ruby_installdir="$svn_cv_ruby_sitedir" 26639fi 26640 26641 26642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5 26643$as_echo_n "checking where to install Ruby scripts... " >&6; } 26644 if ${svn_cv_ruby_sitedir_libsuffix+:} false; then : 26645 $as_echo_n "(cached) " >&6 26646else 26647 26648 svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \ 26649 $SED -e "s,^$rbconfig_sitedir,,"`" 26650 26651fi 26652 26653 SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}" 26654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5 26655$as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; } 26656 26657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5 26658$as_echo_n "checking where to install Ruby extensions... " >&6; } 26659 if ${svn_cv_ruby_sitedir_archsuffix+:} false; then : 26660 $as_echo_n "(cached) " >&6 26661else 26662 26663 svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \ 26664 $SED -e "s,^$rbconfig_sitedir,,"`" 26665 26666fi 26667 26668 SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}" 26669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5 26670$as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; } 26671 26672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5 26673$as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; } 26674 if ${svn_cv_ruby_test_verbose+:} false; then : 26675 $as_echo_n "(cached) " >&6 26676else 26677 26678 svn_cv_ruby_test_verbose="normal" 26679 26680fi 26681 26682 26683# Check whether --with-ruby-test-verbose was given. 26684if test "${with_ruby_test_verbose+set}" = set; then : 26685 withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval" 26686else 26687 svn_ruby_test_verbose="$svn_cv_ruby_test_verbose" 26688fi 26689 26690 SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose" 26691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5 26692$as_echo "$SWIG_RB_TEST_VERBOSE" >&6; } 26693 26694 SWIG_RB_ERRMSG="" 26695 fi 26696 26697 26698 26699 26700 26701 26702 26703 26704 26705 26706 26707 26708 26709 26710 26711 26712 26713 26714 26715 26716fi 26717 26718 26719 26720 26721 26722 26723 26724 26725 26726# Check whether --with-ctypesgen was given. 26727if test "${with_ctypesgen+set}" = set; then : 26728 withval=$with_ctypesgen; 26729 case "$withval" in 26730 "no") 26731 26732 where=no 26733 26734 CTYPESGEN=none 26735 26736 if test $where = check; then 26737 # Extract the first word of ""ctypesgen.py"", so it can be a program name with args. 26738set dummy "ctypesgen.py"; ac_word=$2 26739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26740$as_echo_n "checking for $ac_word... " >&6; } 26741if ${ac_cv_path_CTYPESGEN+:} false; then : 26742 $as_echo_n "(cached) " >&6 26743else 26744 case $CTYPESGEN in 26745 [\\/]* | ?:[\\/]*) 26746 ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path. 26747 ;; 26748 *) 26749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26750for as_dir in $PATH 26751do 26752 IFS=$as_save_IFS 26753 test -z "$as_dir" && as_dir=. 26754 for ac_exec_ext in '' $ac_executable_extensions; do 26755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26756 ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext" 26757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26758 break 2 26759 fi 26760done 26761 done 26762IFS=$as_save_IFS 26763 26764 test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none" 26765 ;; 26766esac 26767fi 26768CTYPESGEN=$ac_cv_path_CTYPESGEN 26769if test -n "$CTYPESGEN"; then 26770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5 26771$as_echo "$CTYPESGEN" >&6; } 26772else 26773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26774$as_echo "no" >&6; } 26775fi 26776 26777 26778 elif test $where != no; then 26779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5 26780$as_echo_n "checking for ctypesgen.py... " >&6; } 26781 26782 if test -f "$where"; then 26783 CTYPESGEN="$where" 26784 elif test -f "$where/bin/ctypesgen.py"; then 26785 CTYPESGEN="$where/bin/ctypesgen.py" 26786 else 26787 CTYPESGEN="$where/ctypesgen.py" 26788 fi 26789 26790 if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then 26791 as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at 26792 $where/bin/ctypesgen.py" "$LINENO" 5 26793 else 26794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5 26795$as_echo "$CTYPESGEN" >&6; } 26796 fi 26797 fi 26798 26799 26800 26801 ;; 26802 "yes") 26803 26804 where=check 26805 26806 CTYPESGEN=none 26807 26808 if test $where = check; then 26809 # Extract the first word of ""ctypesgen.py"", so it can be a program name with args. 26810set dummy "ctypesgen.py"; ac_word=$2 26811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26812$as_echo_n "checking for $ac_word... " >&6; } 26813if ${ac_cv_path_CTYPESGEN+:} false; then : 26814 $as_echo_n "(cached) " >&6 26815else 26816 case $CTYPESGEN in 26817 [\\/]* | ?:[\\/]*) 26818 ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path. 26819 ;; 26820 *) 26821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26822for as_dir in $PATH 26823do 26824 IFS=$as_save_IFS 26825 test -z "$as_dir" && as_dir=. 26826 for ac_exec_ext in '' $ac_executable_extensions; do 26827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26828 ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext" 26829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26830 break 2 26831 fi 26832done 26833 done 26834IFS=$as_save_IFS 26835 26836 test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none" 26837 ;; 26838esac 26839fi 26840CTYPESGEN=$ac_cv_path_CTYPESGEN 26841if test -n "$CTYPESGEN"; then 26842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5 26843$as_echo "$CTYPESGEN" >&6; } 26844else 26845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26846$as_echo "no" >&6; } 26847fi 26848 26849 26850 elif test $where != no; then 26851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5 26852$as_echo_n "checking for ctypesgen.py... " >&6; } 26853 26854 if test -f "$where"; then 26855 CTYPESGEN="$where" 26856 elif test -f "$where/bin/ctypesgen.py"; then 26857 CTYPESGEN="$where/bin/ctypesgen.py" 26858 else 26859 CTYPESGEN="$where/ctypesgen.py" 26860 fi 26861 26862 if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then 26863 as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at 26864 $where/bin/ctypesgen.py" "$LINENO" 5 26865 else 26866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5 26867$as_echo "$CTYPESGEN" >&6; } 26868 fi 26869 fi 26870 26871 26872 26873 ;; 26874 *) 26875 26876 where=$withval 26877 26878 CTYPESGEN=none 26879 26880 if test $where = check; then 26881 # Extract the first word of ""ctypesgen.py"", so it can be a program name with args. 26882set dummy "ctypesgen.py"; ac_word=$2 26883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26884$as_echo_n "checking for $ac_word... " >&6; } 26885if ${ac_cv_path_CTYPESGEN+:} false; then : 26886 $as_echo_n "(cached) " >&6 26887else 26888 case $CTYPESGEN in 26889 [\\/]* | ?:[\\/]*) 26890 ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path. 26891 ;; 26892 *) 26893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26894for as_dir in $PATH 26895do 26896 IFS=$as_save_IFS 26897 test -z "$as_dir" && as_dir=. 26898 for ac_exec_ext in '' $ac_executable_extensions; do 26899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26900 ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext" 26901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26902 break 2 26903 fi 26904done 26905 done 26906IFS=$as_save_IFS 26907 26908 test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none" 26909 ;; 26910esac 26911fi 26912CTYPESGEN=$ac_cv_path_CTYPESGEN 26913if test -n "$CTYPESGEN"; then 26914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5 26915$as_echo "$CTYPESGEN" >&6; } 26916else 26917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26918$as_echo "no" >&6; } 26919fi 26920 26921 26922 elif test $where != no; then 26923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5 26924$as_echo_n "checking for ctypesgen.py... " >&6; } 26925 26926 if test -f "$where"; then 26927 CTYPESGEN="$where" 26928 elif test -f "$where/bin/ctypesgen.py"; then 26929 CTYPESGEN="$where/bin/ctypesgen.py" 26930 else 26931 CTYPESGEN="$where/ctypesgen.py" 26932 fi 26933 26934 if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then 26935 as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at 26936 $where/bin/ctypesgen.py" "$LINENO" 5 26937 else 26938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5 26939$as_echo "$CTYPESGEN" >&6; } 26940 fi 26941 fi 26942 26943 26944 26945 ;; 26946 esac 26947 26948else 26949 26950 26951 where=check 26952 26953 CTYPESGEN=none 26954 26955 if test $where = check; then 26956 # Extract the first word of ""ctypesgen.py"", so it can be a program name with args. 26957set dummy "ctypesgen.py"; ac_word=$2 26958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26959$as_echo_n "checking for $ac_word... " >&6; } 26960if ${ac_cv_path_CTYPESGEN+:} false; then : 26961 $as_echo_n "(cached) " >&6 26962else 26963 case $CTYPESGEN in 26964 [\\/]* | ?:[\\/]*) 26965 ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path. 26966 ;; 26967 *) 26968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26969for as_dir in $PATH 26970do 26971 IFS=$as_save_IFS 26972 test -z "$as_dir" && as_dir=. 26973 for ac_exec_ext in '' $ac_executable_extensions; do 26974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26975 ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext" 26976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26977 break 2 26978 fi 26979done 26980 done 26981IFS=$as_save_IFS 26982 26983 test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none" 26984 ;; 26985esac 26986fi 26987CTYPESGEN=$ac_cv_path_CTYPESGEN 26988if test -n "$CTYPESGEN"; then 26989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5 26990$as_echo "$CTYPESGEN" >&6; } 26991else 26992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26993$as_echo "no" >&6; } 26994fi 26995 26996 26997 elif test $where != no; then 26998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5 26999$as_echo_n "checking for ctypesgen.py... " >&6; } 27000 27001 if test -f "$where"; then 27002 CTYPESGEN="$where" 27003 elif test -f "$where/bin/ctypesgen.py"; then 27004 CTYPESGEN="$where/bin/ctypesgen.py" 27005 else 27006 CTYPESGEN="$where/ctypesgen.py" 27007 fi 27008 27009 if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then 27010 as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at 27011 $where/bin/ctypesgen.py" "$LINENO" 5 27012 else 27013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5 27014$as_echo "$CTYPESGEN" >&6; } 27015 fi 27016 fi 27017 27018 27019 27020 27021fi 27022 27023 27024 27025# Check whether --enable-runtime-module-search was given. 27026if test "${enable_runtime_module_search+set}" = set; then : 27027 enableval=$enable_runtime_module_search; 27028 if test "$enableval" = "yes"; then 27029 use_dso=yes 27030 if test "$svn_enable_shared" = "no"; then 27031 as_fn_error $? "--enable-runtime-module-search conflicts with --disable-shared" "$LINENO" 5 27032 fi 27033 27034$as_echo "#define SVN_USE_DSO 1" >>confdefs.h 27035 27036 27037 case "$host" in 27038 *-*-darwin*) 27039 27040$as_echo "#define SVN_DSO_SUFFIX_FMT \"%d.%d.dylib\"" >>confdefs.h 27041 27042 ;; 27043 *) 27044 27045$as_echo "#define SVN_DSO_SUFFIX_FMT \"%d.so.%d\"" >>confdefs.h 27046 27047 ;; 27048 esac 27049 fi 27050 27051fi 27052 27053 27054if test "$svn_enable_shared" = "no" || test "$use_dso" != "yes"; then 27055 27056$as_echo "#define SVN_LIBSVN_RA_LINKS_RA_LOCAL 1" >>confdefs.h 27057 27058 svn_ra_lib_deps="\$(RA_LOCAL_DEPS)" 27059 svn_ra_lib_install_deps="install-ramod-lib" 27060 svn_ra_lib_link="\$(RA_LOCAL_LINK)" 27061 27062 27063$as_echo "#define SVN_LIBSVN_RA_LINKS_RA_SVN 1" >>confdefs.h 27064 27065 svn_ra_lib_deps="$svn_ra_lib_deps \$(RA_SVN_DEPS)" 27066 svn_ra_lib_link="$svn_ra_lib_link \$(RA_SVN_LINK)" 27067 27068 if test "$svn_lib_serf" = "yes"; then 27069 27070$as_echo "#define SVN_LIBSVN_RA_LINKS_RA_SERF 1" >>confdefs.h 27071 27072 svn_ra_lib_deps="$svn_ra_lib_deps \$(RA_SERF_DEPS)" 27073 svn_ra_lib_install_deps="$svn_ra_lib_install_deps install-serf-lib" 27074 svn_ra_lib_link="$svn_ra_lib_link \$(RA_SERF_LINK)" 27075 fi 27076 27077 SVN_RA_LIB_DEPS=$svn_ra_lib_deps 27078 SVN_RA_LIB_INSTALL_DEPS=$svn_ra_lib_install_deps 27079 SVN_RA_LIB_LINK=$svn_ra_lib_link 27080 27081 27082$as_echo "#define SVN_LIBSVN_FS_LINKS_FS_FS 1" >>confdefs.h 27083 27084 svn_fs_lib_deps="\$(FS_FS_DEPS)" 27085 svn_fs_lib_install_deps="install-fsmod-lib" 27086 svn_fs_lib_link="\$(FS_FS_LINK)" 27087 27088 27089$as_echo "#define SVN_LIBSVN_FS_LINKS_FS_X 1" >>confdefs.h 27090 27091 svn_fs_lib_deps="$svn_fs_lib_deps \$(FS_X_DEPS)" 27092 svn_fs_lib_link="$svn_fs_lib_link \$(FS_X_LINK)" 27093 27094 if test "$svn_lib_berkeley_db" = "yes"; then 27095 27096$as_echo "#define SVN_LIBSVN_FS_LINKS_FS_BASE 1" >>confdefs.h 27097 27098 svn_fs_lib_deps="$svn_fs_lib_deps \$(FS_BASE_DEPS)" 27099 svn_fs_lib_install_deps="$svn_fs_lib_install_deps install-bdb-lib" 27100 svn_fs_lib_link="$svn_fs_lib_link \$(FS_BASE_LINK)" 27101 fi 27102 27103 SVN_FS_LIB_DEPS=$svn_fs_lib_deps 27104 SVN_FS_LIB_INSTALL_DEPS=$svn_fs_lib_install_deps 27105 SVN_FS_LIB_LINK=$svn_fs_lib_link 27106fi 27107 27108 27109 27110 27111 27112 27113 27114 27115# ==== SVN++ ================================================================= 27116 27117do_svnxx_build=no 27118# Check whether --enable-svnxx was given. 27119if test "${enable_svnxx+set}" = set; then : 27120 enableval=$enable_svnxx; if test "$enableval" = "yes" ; then 27121 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling the C++ bindings" >&5 27122$as_echo "$as_me: Enabling the C++ bindings" >&6;} 27123 do_svnxx_build=yes 27124 fi 27125 27126fi 27127 27128 27129do_svnxx_test_build=no 27130# Check whether --enable-svnxx-tests was given. 27131if test "${enable_svnxx_tests+set}" = set; then : 27132 enableval=$enable_svnxx_tests; if test "$enableval" = "yes" ; then 27133 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling tests for the C++ bindings" >&5 27134$as_echo "$as_me: Enabling tests for the C++ bindings" >&6;} 27135 do_svnxx_test_build=yes 27136 fi 27137 27138fi 27139 27140 27141 27142 27143# Check whether --with-boost was given. 27144if test "${with_boost+set}" = set; then : 27145 withval=$with_boost; 27146 case $withval in #( 27147 no) : 27148 want_boost="no";_AX_BOOST_BASE_boost_path="" ;; #( 27149 yes) : 27150 want_boost="yes";_AX_BOOST_BASE_boost_path="" ;; #( 27151 *) : 27152 want_boost="yes";_AX_BOOST_BASE_boost_path="$withval" ;; 27153esac 27154 27155else 27156 want_boost="yes" 27157fi 27158 27159 27160 27161 27162# Check whether --with-boost-libdir was given. 27163if test "${with_boost_libdir+set}" = set; then : 27164 withval=$with_boost_libdir; 27165 if test -d "$withval"; then : 27166 _AX_BOOST_BASE_boost_lib_path="$withval" 27167else 27168 as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5 27169fi 27170 27171else 27172 _AX_BOOST_BASE_boost_lib_path="" 27173fi 27174 27175 27176BOOST_LDFLAGS="" 27177BOOST_CPPFLAGS="" 27178if test "x$want_boost" = "xyes"; then : 27179 27180 27181 if test "x1.58" = "x"; then : 27182 _AX_BOOST_BASE_TONUMERICVERSION_req="1.20.0" 27183else 27184 _AX_BOOST_BASE_TONUMERICVERSION_req="1.58" 27185fi 27186 _AX_BOOST_BASE_TONUMERICVERSION_req_shorten=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([0-9]*\.[0-9]*\)'` 27187 _AX_BOOST_BASE_TONUMERICVERSION_req_major=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '\([0-9]*\)'` 27188 if test "x$_AX_BOOST_BASE_TONUMERICVERSION_req_major" = "x"; then : 27189 as_fn_error $? "You should at least specify libboost major version" "$LINENO" 5 27190fi 27191 _AX_BOOST_BASE_TONUMERICVERSION_req_minor=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '[0-9]*\.\([0-9]*\)'` 27192 if test "x$_AX_BOOST_BASE_TONUMERICVERSION_req_minor" = "x"; then : 27193 _AX_BOOST_BASE_TONUMERICVERSION_req_minor="0" 27194fi 27195 _AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'` 27196 if test "X$_AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor" = "X"; then : 27197 _AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor="0" 27198fi 27199 _AX_BOOST_BASE_TONUMERICVERSION_RET=`expr $_AX_BOOST_BASE_TONUMERICVERSION_req_major \* 100000 \+ $_AX_BOOST_BASE_TONUMERICVERSION_req_minor \* 100 \+ $_AX_BOOST_BASE_TONUMERICVERSION_req_sub_minor` 27200 WANT_BOOST_VERSION=$_AX_BOOST_BASE_TONUMERICVERSION_RET 27201 27202 succeeded=no 27203 27204 27205 27206 case ${host_cpu} in #( 27207 x86_64) : 27208 libsubdirs="lib64 libx32 lib lib64" ;; #( 27209 ppc64|powerpc64|s390x|sparc64|aarch64|ppc64le|powerpc64le|riscv64) : 27210 libsubdirs="lib64 lib lib64" ;; #( 27211 *) : 27212 libsubdirs="lib" 27213 ;; 27214esac 27215 27216 case ${host_cpu} in #( 27217 i?86) : 27218 multiarch_libsubdir="lib/i386-${host_os}" ;; #( 27219 *) : 27220 multiarch_libsubdir="lib/${host_cpu}-${host_os}" 27221 ;; 27222esac 27223 27224 if test "x$_AX_BOOST_BASE_boost_path" != "x"; then : 27225 27226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.58 ($WANT_BOOST_VERSION) includes in \"$_AX_BOOST_BASE_boost_path/include\"" >&5 27227$as_echo_n "checking for boostlib >= 1.58 ($WANT_BOOST_VERSION) includes in \"$_AX_BOOST_BASE_boost_path/include\"... " >&6; } 27228 if test -d "$_AX_BOOST_BASE_boost_path/include" && test -r "$_AX_BOOST_BASE_boost_path/include"; then : 27229 27230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27231$as_echo "yes" >&6; } 27232 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path/include" 27233 for _AX_BOOST_BASE_boost_path_tmp in $multiarch_libsubdir $libsubdirs; do 27234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.58 ($WANT_BOOST_VERSION) lib path in \"$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp\"" >&5 27235$as_echo_n "checking for boostlib >= 1.58 ($WANT_BOOST_VERSION) lib path in \"$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp\"... " >&6; } 27236 if test -d "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp" && test -r "$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp" ; then : 27237 27238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27239$as_echo "yes" >&6; } 27240 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path/$_AX_BOOST_BASE_boost_path_tmp"; 27241 break; 27242 27243else 27244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27245$as_echo "no" >&6; } 27246fi 27247 done 27248else 27249 27250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27251$as_echo "no" >&6; } 27252fi 27253 27254else 27255 27256 if test X"$cross_compiling" = Xyes; then 27257 search_libsubdirs=$multiarch_libsubdir 27258 else 27259 search_libsubdirs="$multiarch_libsubdir $libsubdirs" 27260 fi 27261 for _AX_BOOST_BASE_boost_path_tmp in /usr /usr/local /opt /opt/local ; do 27262 if test -d "$_AX_BOOST_BASE_boost_path_tmp/include/boost" && test -r "$_AX_BOOST_BASE_boost_path_tmp/include/boost" ; then 27263 for libsubdir in $search_libsubdirs ; do 27264 if ls "$_AX_BOOST_BASE_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi 27265 done 27266 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path_tmp/$libsubdir" 27267 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path_tmp/include" 27268 break; 27269 fi 27270 done 27271 27272fi 27273 27274 if test "x$_AX_BOOST_BASE_boost_lib_path" != "x"; then : 27275 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_lib_path" 27276fi 27277 27278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= 1.58 ($WANT_BOOST_VERSION)" >&5 27279$as_echo_n "checking for boostlib >= 1.58 ($WANT_BOOST_VERSION)... " >&6; } 27280 CPPFLAGS_SAVED="$CPPFLAGS" 27281 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 27282 export CPPFLAGS 27283 27284 LDFLAGS_SAVED="$LDFLAGS" 27285 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" 27286 export LDFLAGS 27287 27288 27289 ac_ext=cpp 27290ac_cpp='$CXXCPP $CPPFLAGS' 27291ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27292ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27293ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27294 27295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27296/* end confdefs.h. */ 27297 27298#include <boost/version.hpp> 27299 27300int 27301main () 27302{ 27303 27304(void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < ($WANT_BOOST_VERSION))])); 27305 27306 ; 27307 return 0; 27308} 27309_ACEOF 27310if ac_fn_cxx_try_compile "$LINENO"; then : 27311 27312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27313$as_echo "yes" >&6; } 27314 succeeded=yes 27315 found_system=yes 27316 27317fi 27318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27319 ac_ext=c 27320ac_cpp='$CPP $CPPFLAGS' 27321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27323ac_compiler_gnu=$ac_cv_c_compiler_gnu 27324 27325 27326 27327 27328 if test "x$succeeded" != "xyes" ; then 27329 CPPFLAGS="$CPPFLAGS_SAVED" 27330 LDFLAGS="$LDFLAGS_SAVED" 27331 BOOST_CPPFLAGS= 27332 if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then 27333 BOOST_LDFLAGS= 27334 fi 27335 _version=0 27336 if test -n "$_AX_BOOST_BASE_boost_path" ; then 27337 if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path"; then 27338 for i in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do 27339 _version_tmp=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'` 27340 V_CHECK=`expr $_version_tmp \> $_version` 27341 if test "x$V_CHECK" = "x1" ; then 27342 _version=$_version_tmp 27343 fi 27344 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'` 27345 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path/include/boost-$VERSION_UNDERSCORE" 27346 done 27347 if test -z "$BOOST_CPPFLAGS"; then 27348 if test -d "$_AX_BOOST_BASE_boost_path/boost" && test -r "$_AX_BOOST_BASE_boost_path/boost"; then 27349 BOOST_CPPFLAGS="-I$_AX_BOOST_BASE_boost_path" 27350 fi 27351 fi 27352 if test -n "$BOOST_CPPFLAGS" && test -z "$BOOST_LDFLAGS"; then 27353 for libsubdir in $libsubdirs ; do 27354 if ls "$_AX_BOOST_BASE_boost_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi 27355 done 27356 BOOST_LDFLAGS="-L$_AX_BOOST_BASE_boost_path/$libsubdir" 27357 fi 27358 fi 27359 else 27360 if test "x$cross_compiling" != "xyes" ; then 27361 for _AX_BOOST_BASE_boost_path in /usr /usr/local /opt /opt/local ; do 27362 if test -d "$_AX_BOOST_BASE_boost_path" && test -r "$_AX_BOOST_BASE_boost_path" ; then 27363 for i in `ls -d $_AX_BOOST_BASE_boost_path/include/boost-* 2>/dev/null`; do 27364 _version_tmp=`echo $i | sed "s#$_AX_BOOST_BASE_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'` 27365 V_CHECK=`expr $_version_tmp \> $_version` 27366 if test "x$V_CHECK" = "x1" ; then 27367 _version=$_version_tmp 27368 best_path=$_AX_BOOST_BASE_boost_path 27369 fi 27370 done 27371 fi 27372 done 27373 27374 VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'` 27375 BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE" 27376 if test -z "$_AX_BOOST_BASE_boost_lib_path" ; then 27377 for libsubdir in $libsubdirs ; do 27378 if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi 27379 done 27380 BOOST_LDFLAGS="-L$best_path/$libsubdir" 27381 fi 27382 fi 27383 27384 if test -n "$BOOST_ROOT" ; then 27385 for libsubdir in $libsubdirs ; do 27386 if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi 27387 done 27388 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then 27389 version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'` 27390 stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'` 27391 stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'` 27392 V_CHECK=`expr $stage_version_shorten \>\= $_version` 27393 if test "x$V_CHECK" = "x1" && test -z "$_AX_BOOST_BASE_boost_lib_path" ; then 27394 { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5 27395$as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;} 27396 BOOST_CPPFLAGS="-I$BOOST_ROOT" 27397 BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir" 27398 fi 27399 fi 27400 fi 27401 fi 27402 27403 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 27404 export CPPFLAGS 27405 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" 27406 export LDFLAGS 27407 27408 ac_ext=cpp 27409ac_cpp='$CXXCPP $CPPFLAGS' 27410ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27411ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27412ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27413 27414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27415/* end confdefs.h. */ 27416 27417#include <boost/version.hpp> 27418 27419int 27420main () 27421{ 27422 27423(void) ((void)sizeof(char[1 - 2*!!((BOOST_VERSION) < ($WANT_BOOST_VERSION))])); 27424 27425 ; 27426 return 0; 27427} 27428_ACEOF 27429if ac_fn_cxx_try_compile "$LINENO"; then : 27430 27431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27432$as_echo "yes" >&6; } 27433 succeeded=yes 27434 found_system=yes 27435 27436fi 27437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27438 ac_ext=c 27439ac_cpp='$CPP $CPPFLAGS' 27440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27442ac_compiler_gnu=$ac_cv_c_compiler_gnu 27443 27444 fi 27445 27446 if test "x$succeeded" != "xyes" ; then 27447 if test "x$_version" = "x0" ; then 27448 { $as_echo "$as_me:${as_lineno-$LINENO}: We could not detect the boost libraries (version 1.58 or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&5 27449$as_echo "$as_me: We could not detect the boost libraries (version 1.58 or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&6;} 27450 else 27451 { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5 27452$as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;} 27453 fi 27454 # execute ACTION-IF-NOT-FOUND (if present): 27455 27456 if test "$do_svnxx_test_build" = "yes"; then 27457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Tests for the C++ bindings require Boost and Boost.Test" >&5 27458$as_echo "$as_me: WARNING: Tests for the C++ bindings require Boost and Boost.Test" >&2;} 27459 do_svnxx_test_build=no 27460 fi 27461 27462 else 27463 27464$as_echo "#define HAVE_BOOST /**/" >>confdefs.h 27465 27466 # execute ACTION-IF-FOUND (if present): 27467 27468 if test "$do_svnxx_test_build" = "yes"; then 27469 27470 27471# Check whether --with-boost-unit-test-framework was given. 27472if test "${with_boost_unit_test_framework+set}" = set; then : 27473 withval=$with_boost_unit_test_framework; 27474 if test "$withval" = "no"; then 27475 want_boost="no" 27476 elif test "$withval" = "yes"; then 27477 want_boost="yes" 27478 ax_boost_user_unit_test_framework_lib="" 27479 else 27480 want_boost="yes" 27481 ax_boost_user_unit_test_framework_lib="$withval" 27482 fi 27483 27484else 27485 want_boost="yes" 27486 27487fi 27488 27489 27490 if test "x$want_boost" = "xyes"; then 27491 27492 CPPFLAGS_SAVED="$CPPFLAGS" 27493 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS" 27494 export CPPFLAGS 27495 27496 LDFLAGS_SAVED="$LDFLAGS" 27497 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS" 27498 export LDFLAGS 27499 27500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Unit_Test_Framework library is available" >&5 27501$as_echo_n "checking whether the Boost::Unit_Test_Framework library is available... " >&6; } 27502if ${ax_cv_boost_unit_test_framework+:} false; then : 27503 $as_echo_n "(cached) " >&6 27504else 27505 ac_ext=cpp 27506ac_cpp='$CXXCPP $CPPFLAGS' 27507ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27508ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27509ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27510 27511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27512/* end confdefs.h. */ 27513#include <boost/test/unit_test.hpp> 27514int 27515main () 27516{ 27517using boost::unit_test::test_suite; 27518 test_suite* test= BOOST_TEST_SUITE( "Unit test example 1" ); if (test == NULL) { return 1; } else { return 0; } 27519 ; 27520 return 0; 27521} 27522_ACEOF 27523if ac_fn_cxx_try_compile "$LINENO"; then : 27524 ax_cv_boost_unit_test_framework=yes 27525else 27526 ax_cv_boost_unit_test_framework=no 27527fi 27528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27529 ac_ext=c 27530ac_cpp='$CPP $CPPFLAGS' 27531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27533ac_compiler_gnu=$ac_cv_c_compiler_gnu 27534 27535 27536fi 27537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_unit_test_framework" >&5 27538$as_echo "$ax_cv_boost_unit_test_framework" >&6; } 27539 if test "x$ax_cv_boost_unit_test_framework" = "xyes"; then 27540 27541$as_echo "#define HAVE_BOOST_UNIT_TEST_FRAMEWORK /**/" >>confdefs.h 27542 27543 BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'` 27544 27545 if test "x$ax_boost_user_unit_test_framework_lib" = "x"; then 27546 saved_ldflags="${LDFLAGS}" 27547 for monitor_library in `ls $BOOSTLIBDIR/libboost_unit_test_framework*.so* $BOOSTLIBDIR/libboost_unit_test_framework*.dylib* $BOOSTLIBDIR/libboost_unit_test_framework*.a* 2>/dev/null` ; do 27548 if test -r $monitor_library ; then 27549 libextension=`echo $monitor_library | sed 's,.*/,,' | sed -e 's;^lib\(boost_unit_test_framework.*\)\.so.*$;\1;' -e 's;^lib\(boost_unit_test_framework.*\)\.dylib.*$;\1;' -e 's;^lib\(boost_unit_test_framework.*\)\.a.*$;\1;'` 27550 ax_lib=${libextension} 27551 link_unit_test_framework="yes" 27552 else 27553 link_unit_test_framework="no" 27554 fi 27555 27556 if test "x$link_unit_test_framework" = "xyes"; then 27557 BOOST_UNIT_TEST_FRAMEWORK_LIB="-l$ax_lib" 27558 27559 break 27560 fi 27561 done 27562 if test "x$link_unit_test_framework" != "xyes"; then 27563 for libextension in `ls $BOOSTLIBDIR/boost_unit_test_framework*.dll* $BOOSTLIBDIR/boost_unit_test_framework*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_unit_test_framework.*\)\.dll.*$;\1;' -e 's;^\(boost_unit_test_framework.*\)\.a.*$;\1;'` ; do 27564 ax_lib=${libextension} 27565 as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh` 27566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5 27567$as_echo_n "checking for exit in -l$ax_lib... " >&6; } 27568if eval \${$as_ac_Lib+:} false; then : 27569 $as_echo_n "(cached) " >&6 27570else 27571 ac_check_lib_save_LIBS=$LIBS 27572LIBS="-l$ax_lib $LIBS" 27573cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27574/* end confdefs.h. */ 27575 27576/* Override any GCC internal prototype to avoid an error. 27577 Use char because int might match the return type of a GCC 27578 builtin and then its argument prototype would still apply. */ 27579#ifdef __cplusplus 27580extern "C" 27581#endif 27582char exit (); 27583int 27584main () 27585{ 27586return exit (); 27587 ; 27588 return 0; 27589} 27590_ACEOF 27591if ac_fn_c_try_link "$LINENO"; then : 27592 eval "$as_ac_Lib=yes" 27593else 27594 eval "$as_ac_Lib=no" 27595fi 27596rm -f core conftest.err conftest.$ac_objext \ 27597 conftest$ac_exeext conftest.$ac_ext 27598LIBS=$ac_check_lib_save_LIBS 27599fi 27600eval ac_res=\$$as_ac_Lib 27601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 27602$as_echo "$ac_res" >&6; } 27603if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 27604 BOOST_UNIT_TEST_FRAMEWORK_LIB="-l$ax_lib"; link_unit_test_framework="yes"; break 27605else 27606 link_unit_test_framework="no" 27607fi 27608 27609 done 27610 fi 27611 else 27612 link_unit_test_framework="no" 27613 saved_ldflags="${LDFLAGS}" 27614 for ax_lib in boost_unit_test_framework-$ax_boost_user_unit_test_framework_lib $ax_boost_user_unit_test_framework_lib ; do 27615 if test "x$link_unit_test_framework" = "xyes"; then 27616 break; 27617 fi 27618 for unittest_library in `ls $BOOSTLIBDIR/lib${ax_lib}.so* $BOOSTLIBDIR/lib${ax_lib}.a* 2>/dev/null` ; do 27619 if test -r $unittest_library ; then 27620 libextension=`echo $unittest_library | sed 's,.*/,,' | sed -e 's;^lib\(boost_unit_test_framework.*\)\.so.*$;\1;' -e 's;^lib\(boost_unit_test_framework.*\)\.a*$;\1;'` 27621 ax_lib=${libextension} 27622 link_unit_test_framework="yes" 27623 else 27624 link_unit_test_framework="no" 27625 fi 27626 27627 if test "x$link_unit_test_framework" = "xyes"; then 27628 BOOST_UNIT_TEST_FRAMEWORK_LIB="-l$ax_lib" 27629 27630 break 27631 fi 27632 done 27633 done 27634 fi 27635 if test "x$ax_lib" = "x"; then 27636 as_fn_error $? "Could not find a version of the library!" "$LINENO" 5 27637 fi 27638 if test "x$link_unit_test_framework" != "xyes"; then 27639 as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5 27640 fi 27641 fi 27642 27643 CPPFLAGS="$CPPFLAGS_SAVED" 27644 LDFLAGS="$LDFLAGS_SAVED" 27645 fi 27646 27647 fi 27648 27649 fi 27650 27651 CPPFLAGS="$CPPFLAGS_SAVED" 27652 LDFLAGS="$LDFLAGS_SAVED" 27653 27654 27655fi 27656 27657 27658 27659 27660if test "$do_svnxx_test_build" = "yes"; then 27661 if test "$want_boost" != "yes"; then 27662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Tests for the C++ bindings require Boost and Boost.Test" >&5 27663$as_echo "$as_me: WARNING: Tests for the C++ bindings require Boost and Boost.Test" >&2;} 27664 do_svnxx_test_build=no 27665 SVN_BUILD_SVNXX_TESTS=false 27666 else 27667 if test "$do_svnxx_build" != "yes"; then 27668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Enabling the C++ bindings because their tests are enabled" >&5 27669$as_echo "$as_me: WARNING: Enabling the C++ bindings because their tests are enabled" >&2;} 27670 do_svnxx_build=yes 27671 fi 27672 SVN_BUILD_SVNXX_TESTS=true 27673 fi 27674else 27675 SVN_BUILD_SVNXX_TESTS=false 27676fi 27677 27678if test "$do_svnxx_build" = "yes"; then 27679 SVN_BUILD_SVNXX=true 27680else 27681 SVN_BUILD_SVNXX=false 27682fi 27683 27684 27685 27686 27687# ==== JavaHL ================================================================ 27688 27689do_javahl_build=no 27690# Check whether --enable-javahl was given. 27691if test "${enable_javahl+set}" = set; then : 27692 enableval=$enable_javahl; if test "$enableval" = "yes" ; then 27693 do_javahl_build="yes" 27694 fi 27695 27696fi 27697 27698 27699JAVAHL_OBJDIR="" 27700INSTALL_EXTRA_JAVAHL_LIB="" 27701FIX_JAVAHL_LIB="" 27702JAVAHL_TESTS_TARGET="" 27703JAVAHL_COMPAT_TESTS_TARGET="" 27704LT_CXX_LIBADD="" 27705if test "$do_javahl_build" = "yes"; then 27706 if test "$JDK_SUITABLE" = "no"; then 27707 as_fn_error $? "Cannot compile JavaHL without a suitable JDK. 27708 Please specify a suitable JDK using the --with-jdk option." "$LINENO" 5 27709 fi 27710 27711 JAVAHL_OBJDIR='$(libsvnjavahl_PATH)/.libs' 27712 27713 os_arch=`uname` 27714 if test "$os_arch" = "Darwin"; then 27715 INSTALL_EXTRA_JAVAHL_LIB='ln -sf $(libdir)/libsvnjavahl-1.dylib $(libdir)/libsvnjavahl-1.jnilib' 27716 FIX_JAVAHL_LIB="ln -sf libsvnjavahl-1.dylib $JAVAHL_OBJDIR/libsvnjavahl-1.jnilib" 27717 fi 27718 # This segment (and the rest of r10800) is very likely unnecessary 27719 # with libtool 1.5, which automatically adds libstdc++ as a 27720 # dependency to the C++ libraries it builds. So at some future time 27721 # when autogen.sh requires libtool 1.5 or higher, we can get rid of 27722 # it. 27723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional flags to link C++ libraries" >&5 27724$as_echo_n "checking for additional flags to link C++ libraries... " >&6; } 27725 if test "x$ac_compiler_gnu" = "xyes"; then 27726 case "$host" in 27727 *freebsd10*) 27728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 27729$as_echo "none needed" >&6; } 27730 ;; 27731 *) 27732 LT_CXX_LIBADD="-lstdc++" 27733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LT_CXX_LIBADD" >&5 27734$as_echo "$LT_CXX_LIBADD" >&6; } 27735 ;; 27736 esac 27737 else 27738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 27739$as_echo "none needed" >&6; } 27740 fi 27741fi 27742 27743 27744 27745 27746 27747 27748# Check whether --with-junit was given. 27749if test "${with_junit+set}" = set; then : 27750 withval=$with_junit; 27751 if test "$withval" != "no"; then 27752 if test -n "$JAVA_CLASSPATH"; then 27753 JAVA_CLASSPATH="$withval:$JAVA_CLASSPATH" 27754 else 27755 JAVA_CLASSPATH="$withval" 27756 fi 27757 JAVAHL_TESTS_TARGET="javahl-tests" 27758 JAVAHL_COMPAT_TESTS_TARGET="javahl-compat-tests" 27759 fi 27760 27761fi 27762 27763 27764 27765 27766 27767# ==== Miscellaneous bits ==================================================== 27768 27769for ac_header in stdbool.h stdint.h 27770do : 27771 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 27772ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 27773if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 27774 cat >>confdefs.h <<_ACEOF 27775#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 27776_ACEOF 27777 27778fi 27779 27780done 27781 27782 27783# Strip '-no-cpp-precomp' from CPPFLAGS for the clang compiler 27784### I think we get this flag from APR, so the fix probably belongs there 27785if test "$CC" = "clang"; then 27786 27787 CPPFLAGS=`echo "$CPPFLAGS" | $SED -e 's/-no-cpp-precomp //'` 27788 27789fi 27790 27791 27792cat >>confdefs.h <<_ACEOF 27793#define SVN_PATH_LOCAL_SEPARATOR '/' 27794_ACEOF 27795 27796 27797 27798cat >>confdefs.h <<_ACEOF 27799#define SVN_NULL_DEVICE_NAME "/dev/null" 27800_ACEOF 27801 27802 27803DEFAULT_FS_TYPE="fsfs" 27804 27805cat >>confdefs.h <<_ACEOF 27806#define DEFAULT_FS_TYPE "$DEFAULT_FS_TYPE" 27807_ACEOF 27808 27809 27810DEFAULT_HTTP_LIBRARY="serf" 27811 27812cat >>confdefs.h <<_ACEOF 27813#define DEFAULT_HTTP_LIBRARY "$DEFAULT_HTTP_LIBRARY" 27814_ACEOF 27815 27816 27817# BSD/OS (BSDi) needs to use a different include syntax in Makefile 27818INCLUDE_OUTPUTS="include \$(top_srcdir)/build-outputs.mk" 27819case "$host" in 27820 *bsdi*) 27821 # Check whether they've installed GNU make 27822 if ! make --version > /dev/null 2>&1; then 27823 # BSDi make 27824 INCLUDE_OUTPUTS=".include \"\$(top_srcdir)/build-outputs.mk\"" 27825 fi 27826 ;; 27827esac 27828 27829 27830# ==== Detection complete - output and run config.status ===================== 27831 27832ac_config_headers="$ac_config_headers subversion/svn_private_config.h.tmp:subversion/svn_private_config.h.in" 27833 27834ac_config_commands="$ac_config_commands svn_private_config.h.tmp" 27835 27836ac_config_files="$ac_config_files Makefile" 27837 27838 27839# Create pkg-config .pc files from .pc.in files 27840for pc_in_file in "${abs_srcdir}"/subversion/libsvn_*/*.pc.in; do 27841 pc_file=${pc_in_file#${abs_srcdir}/} 27842 pc_file=${pc_file%.in} 27843 ac_config_files="$ac_config_files ${pc_file}" 27844 27845done 27846 27847 27848 SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES tools/backup/hot-backup.py" 27849 ac_config_files="$ac_config_files tools/backup/hot-backup.py" 27850 27851 27852 SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES tools/hook-scripts/commit-access-control.pl" 27853 ac_config_files="$ac_config_files tools/hook-scripts/commit-access-control.pl" 27854 27855 27856 SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES subversion/bindings/swig/perl/native/Makefile.PL" 27857 ac_config_files="$ac_config_files subversion/bindings/swig/perl/native/Makefile.PL" 27858 27859if test -e packages/solaris/pkginfo.in; then 27860 27861 SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES packages/solaris/pkginfo" 27862 ac_config_files="$ac_config_files packages/solaris/pkginfo" 27863 27864fi 27865 27866 27867# Ensure that SWIG is checked after reconfiguration. 27868rm -f .swig_checked .swig_pl_checked .swig_py_checked .swig_rb_checked 27869 27870 27871cat >>confdefs.h <<_ACEOF 27872#define SVN_BUILD_HOST "${host}" 27873_ACEOF 27874 27875 27876 27877cat >>confdefs.h <<_ACEOF 27878#define SVN_BUILD_TARGET "${target}" 27879_ACEOF 27880 27881 27882cat >confcache <<\_ACEOF 27883# This file is a shell script that caches the results of configure 27884# tests run on this system so they can be shared between configure 27885# scripts and configure runs, see configure's option --config-cache. 27886# It is not useful on other systems. If it contains results you don't 27887# want to keep, you may remove or edit it. 27888# 27889# config.status only pays attention to the cache file if you give it 27890# the --recheck option to rerun configure. 27891# 27892# `ac_cv_env_foo' variables (set or unset) will be overridden when 27893# loading this file, other *unset* `ac_cv_foo' will be assigned the 27894# following values. 27895 27896_ACEOF 27897 27898# The following way of writing the cache mishandles newlines in values, 27899# but we know of no workaround that is simple, portable, and efficient. 27900# So, we kill variables containing newlines. 27901# Ultrix sh set writes to stderr and can't be redirected directly, 27902# and sets the high bit in the cache file unless we assign to the vars. 27903( 27904 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 27905 eval ac_val=\$$ac_var 27906 case $ac_val in #( 27907 *${as_nl}*) 27908 case $ac_var in #( 27909 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 27910$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 27911 esac 27912 case $ac_var in #( 27913 _ | IFS | as_nl) ;; #( 27914 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 27915 *) { eval $ac_var=; unset $ac_var;} ;; 27916 esac ;; 27917 esac 27918 done 27919 27920 (set) 2>&1 | 27921 case $as_nl`(ac_space=' '; set) 2>&1` in #( 27922 *${as_nl}ac_space=\ *) 27923 # `set' does not quote correctly, so add quotes: double-quote 27924 # substitution turns \\\\ into \\, and sed turns \\ into \. 27925 sed -n \ 27926 "s/'/'\\\\''/g; 27927 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 27928 ;; #( 27929 *) 27930 # `set' quotes correctly as required by POSIX, so do not add quotes. 27931 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 27932 ;; 27933 esac | 27934 sort 27935) | 27936 sed ' 27937 /^ac_cv_env_/b end 27938 t clear 27939 :clear 27940 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 27941 t end 27942 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 27943 :end' >>confcache 27944if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 27945 if test -w "$cache_file"; then 27946 if test "x$cache_file" != "x/dev/null"; then 27947 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 27948$as_echo "$as_me: updating cache $cache_file" >&6;} 27949 if test ! -f "$cache_file" || test -h "$cache_file"; then 27950 cat confcache >"$cache_file" 27951 else 27952 case $cache_file in #( 27953 */* | ?:*) 27954 mv -f confcache "$cache_file"$$ && 27955 mv -f "$cache_file"$$ "$cache_file" ;; #( 27956 *) 27957 mv -f confcache "$cache_file" ;; 27958 esac 27959 fi 27960 fi 27961 else 27962 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 27963$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 27964 fi 27965fi 27966rm -f confcache 27967 27968test "x$prefix" = xNONE && prefix=$ac_default_prefix 27969# Let make expand exec_prefix. 27970test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 27971 27972DEFS=-DHAVE_CONFIG_H 27973 27974ac_libobjs= 27975ac_ltlibobjs= 27976U= 27977for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 27978 # 1. Remove the extension, and $U if already installed. 27979 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 27980 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 27981 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 27982 # will be set to the directory where LIBOBJS objects are built. 27983 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 27984 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 27985done 27986LIBOBJS=$ac_libobjs 27987 27988LTLIBOBJS=$ac_ltlibobjs 27989 27990 27991 27992: "${CONFIG_STATUS=./config.status}" 27993ac_write_fail=0 27994ac_clean_files_save=$ac_clean_files 27995ac_clean_files="$ac_clean_files $CONFIG_STATUS" 27996{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 27997$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 27998as_write_fail=0 27999cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 28000#! $SHELL 28001# Generated by $as_me. 28002# Run this file to recreate the current configuration. 28003# Compiler output produced by configure, useful for debugging 28004# configure, is in config.log if it exists. 28005 28006debug=false 28007ac_cs_recheck=false 28008ac_cs_silent=false 28009 28010SHELL=\${CONFIG_SHELL-$SHELL} 28011export SHELL 28012_ASEOF 28013cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 28014## -------------------- ## 28015## M4sh Initialization. ## 28016## -------------------- ## 28017 28018# Be more Bourne compatible 28019DUALCASE=1; export DUALCASE # for MKS sh 28020if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 28021 emulate sh 28022 NULLCMD=: 28023 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 28024 # is contrary to our usage. Disable this feature. 28025 alias -g '${1+"$@"}'='"$@"' 28026 setopt NO_GLOB_SUBST 28027else 28028 case `(set -o) 2>/dev/null` in #( 28029 *posix*) : 28030 set -o posix ;; #( 28031 *) : 28032 ;; 28033esac 28034fi 28035 28036 28037as_nl=' 28038' 28039export as_nl 28040# Printing a long string crashes Solaris 7 /usr/bin/printf. 28041as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 28042as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 28043as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 28044# Prefer a ksh shell builtin over an external printf program on Solaris, 28045# but without wasting forks for bash or zsh. 28046if test -z "$BASH_VERSION$ZSH_VERSION" \ 28047 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 28048 as_echo='print -r --' 28049 as_echo_n='print -rn --' 28050elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 28051 as_echo='printf %s\n' 28052 as_echo_n='printf %s' 28053else 28054 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 28055 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 28056 as_echo_n='/usr/ucb/echo -n' 28057 else 28058 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 28059 as_echo_n_body='eval 28060 arg=$1; 28061 case $arg in #( 28062 *"$as_nl"*) 28063 expr "X$arg" : "X\\(.*\\)$as_nl"; 28064 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 28065 esac; 28066 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 28067 ' 28068 export as_echo_n_body 28069 as_echo_n='sh -c $as_echo_n_body as_echo' 28070 fi 28071 export as_echo_body 28072 as_echo='sh -c $as_echo_body as_echo' 28073fi 28074 28075# The user is always right. 28076if test "${PATH_SEPARATOR+set}" != set; then 28077 PATH_SEPARATOR=: 28078 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 28079 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 28080 PATH_SEPARATOR=';' 28081 } 28082fi 28083 28084 28085# IFS 28086# We need space, tab and new line, in precisely that order. Quoting is 28087# there to prevent editors from complaining about space-tab. 28088# (If _AS_PATH_WALK were called with IFS unset, it would disable word 28089# splitting by setting IFS to empty value.) 28090IFS=" "" $as_nl" 28091 28092# Find who we are. Look in the path if we contain no directory separator. 28093as_myself= 28094case $0 in #(( 28095 *[\\/]* ) as_myself=$0 ;; 28096 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28097for as_dir in $PATH 28098do 28099 IFS=$as_save_IFS 28100 test -z "$as_dir" && as_dir=. 28101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 28102 done 28103IFS=$as_save_IFS 28104 28105 ;; 28106esac 28107# We did not find ourselves, most probably we were run as `sh COMMAND' 28108# in which case we are not to be found in the path. 28109if test "x$as_myself" = x; then 28110 as_myself=$0 28111fi 28112if test ! -f "$as_myself"; then 28113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 28114 exit 1 28115fi 28116 28117# Unset variables that we do not need and which cause bugs (e.g. in 28118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 28119# suppresses any "Segmentation fault" message there. '((' could 28120# trigger a bug in pdksh 5.2.14. 28121for as_var in BASH_ENV ENV MAIL MAILPATH 28122do eval test x\${$as_var+set} = xset \ 28123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 28124done 28125PS1='$ ' 28126PS2='> ' 28127PS4='+ ' 28128 28129# NLS nuisances. 28130LC_ALL=C 28131export LC_ALL 28132LANGUAGE=C 28133export LANGUAGE 28134 28135# CDPATH. 28136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 28137 28138 28139# as_fn_error STATUS ERROR [LINENO LOG_FD] 28140# ---------------------------------------- 28141# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 28142# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 28143# script with STATUS, using 1 if that was 0. 28144as_fn_error () 28145{ 28146 as_status=$1; test $as_status -eq 0 && as_status=1 28147 if test "$4"; then 28148 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 28149 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 28150 fi 28151 $as_echo "$as_me: error: $2" >&2 28152 as_fn_exit $as_status 28153} # as_fn_error 28154 28155 28156# as_fn_set_status STATUS 28157# ----------------------- 28158# Set $? to STATUS, without forking. 28159as_fn_set_status () 28160{ 28161 return $1 28162} # as_fn_set_status 28163 28164# as_fn_exit STATUS 28165# ----------------- 28166# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 28167as_fn_exit () 28168{ 28169 set +e 28170 as_fn_set_status $1 28171 exit $1 28172} # as_fn_exit 28173 28174# as_fn_unset VAR 28175# --------------- 28176# Portably unset VAR. 28177as_fn_unset () 28178{ 28179 { eval $1=; unset $1;} 28180} 28181as_unset=as_fn_unset 28182# as_fn_append VAR VALUE 28183# ---------------------- 28184# Append the text in VALUE to the end of the definition contained in VAR. Take 28185# advantage of any shell optimizations that allow amortized linear growth over 28186# repeated appends, instead of the typical quadratic growth present in naive 28187# implementations. 28188if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 28189 eval 'as_fn_append () 28190 { 28191 eval $1+=\$2 28192 }' 28193else 28194 as_fn_append () 28195 { 28196 eval $1=\$$1\$2 28197 } 28198fi # as_fn_append 28199 28200# as_fn_arith ARG... 28201# ------------------ 28202# Perform arithmetic evaluation on the ARGs, and store the result in the 28203# global $as_val. Take advantage of shells that can avoid forks. The arguments 28204# must be portable across $(()) and expr. 28205if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 28206 eval 'as_fn_arith () 28207 { 28208 as_val=$(( $* )) 28209 }' 28210else 28211 as_fn_arith () 28212 { 28213 as_val=`expr "$@" || test $? -eq 1` 28214 } 28215fi # as_fn_arith 28216 28217 28218if expr a : '\(a\)' >/dev/null 2>&1 && 28219 test "X`expr 00001 : '.*\(...\)'`" = X001; then 28220 as_expr=expr 28221else 28222 as_expr=false 28223fi 28224 28225if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 28226 as_basename=basename 28227else 28228 as_basename=false 28229fi 28230 28231if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 28232 as_dirname=dirname 28233else 28234 as_dirname=false 28235fi 28236 28237as_me=`$as_basename -- "$0" || 28238$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 28239 X"$0" : 'X\(//\)$' \| \ 28240 X"$0" : 'X\(/\)' \| . 2>/dev/null || 28241$as_echo X/"$0" | 28242 sed '/^.*\/\([^/][^/]*\)\/*$/{ 28243 s//\1/ 28244 q 28245 } 28246 /^X\/\(\/\/\)$/{ 28247 s//\1/ 28248 q 28249 } 28250 /^X\/\(\/\).*/{ 28251 s//\1/ 28252 q 28253 } 28254 s/.*/./; q'` 28255 28256# Avoid depending upon Character Ranges. 28257as_cr_letters='abcdefghijklmnopqrstuvwxyz' 28258as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 28259as_cr_Letters=$as_cr_letters$as_cr_LETTERS 28260as_cr_digits='0123456789' 28261as_cr_alnum=$as_cr_Letters$as_cr_digits 28262 28263ECHO_C= ECHO_N= ECHO_T= 28264case `echo -n x` in #((((( 28265-n*) 28266 case `echo 'xy\c'` in 28267 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 28268 xy) ECHO_C='\c';; 28269 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 28270 ECHO_T=' ';; 28271 esac;; 28272*) 28273 ECHO_N='-n';; 28274esac 28275 28276rm -f conf$$ conf$$.exe conf$$.file 28277if test -d conf$$.dir; then 28278 rm -f conf$$.dir/conf$$.file 28279else 28280 rm -f conf$$.dir 28281 mkdir conf$$.dir 2>/dev/null 28282fi 28283if (echo >conf$$.file) 2>/dev/null; then 28284 if ln -s conf$$.file conf$$ 2>/dev/null; then 28285 as_ln_s='ln -s' 28286 # ... but there are two gotchas: 28287 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 28288 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 28289 # In both cases, we have to default to `cp -pR'. 28290 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 28291 as_ln_s='cp -pR' 28292 elif ln conf$$.file conf$$ 2>/dev/null; then 28293 as_ln_s=ln 28294 else 28295 as_ln_s='cp -pR' 28296 fi 28297else 28298 as_ln_s='cp -pR' 28299fi 28300rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 28301rmdir conf$$.dir 2>/dev/null 28302 28303 28304# as_fn_mkdir_p 28305# ------------- 28306# Create "$as_dir" as a directory, including parents if necessary. 28307as_fn_mkdir_p () 28308{ 28309 28310 case $as_dir in #( 28311 -*) as_dir=./$as_dir;; 28312 esac 28313 test -d "$as_dir" || eval $as_mkdir_p || { 28314 as_dirs= 28315 while :; do 28316 case $as_dir in #( 28317 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 28318 *) as_qdir=$as_dir;; 28319 esac 28320 as_dirs="'$as_qdir' $as_dirs" 28321 as_dir=`$as_dirname -- "$as_dir" || 28322$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28323 X"$as_dir" : 'X\(//\)[^/]' \| \ 28324 X"$as_dir" : 'X\(//\)$' \| \ 28325 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 28326$as_echo X"$as_dir" | 28327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28328 s//\1/ 28329 q 28330 } 28331 /^X\(\/\/\)[^/].*/{ 28332 s//\1/ 28333 q 28334 } 28335 /^X\(\/\/\)$/{ 28336 s//\1/ 28337 q 28338 } 28339 /^X\(\/\).*/{ 28340 s//\1/ 28341 q 28342 } 28343 s/.*/./; q'` 28344 test -d "$as_dir" && break 28345 done 28346 test -z "$as_dirs" || eval "mkdir $as_dirs" 28347 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 28348 28349 28350} # as_fn_mkdir_p 28351if mkdir -p . 2>/dev/null; then 28352 as_mkdir_p='mkdir -p "$as_dir"' 28353else 28354 test -d ./-p && rmdir ./-p 28355 as_mkdir_p=false 28356fi 28357 28358 28359# as_fn_executable_p FILE 28360# ----------------------- 28361# Test if FILE is an executable regular file. 28362as_fn_executable_p () 28363{ 28364 test -f "$1" && test -x "$1" 28365} # as_fn_executable_p 28366as_test_x='test -x' 28367as_executable_p=as_fn_executable_p 28368 28369# Sed expression to map a string onto a valid CPP name. 28370as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 28371 28372# Sed expression to map a string onto a valid variable name. 28373as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 28374 28375 28376exec 6>&1 28377## ----------------------------------- ## 28378## Main body of $CONFIG_STATUS script. ## 28379## ----------------------------------- ## 28380_ASEOF 28381test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 28382 28383cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28384# Save the log message, to keep $0 and so on meaningful, and to 28385# report actual input values of CONFIG_FILES etc. instead of their 28386# values after options handling. 28387ac_log=" 28388This file was extended by subversion $as_me 1.14.1, which was 28389generated by GNU Autoconf 2.69. Invocation command line was 28390 28391 CONFIG_FILES = $CONFIG_FILES 28392 CONFIG_HEADERS = $CONFIG_HEADERS 28393 CONFIG_LINKS = $CONFIG_LINKS 28394 CONFIG_COMMANDS = $CONFIG_COMMANDS 28395 $ $0 $@ 28396 28397on `(hostname || uname -n) 2>/dev/null | sed 1q` 28398" 28399 28400_ACEOF 28401 28402case $ac_config_files in *" 28403"*) set x $ac_config_files; shift; ac_config_files=$*;; 28404esac 28405 28406case $ac_config_headers in *" 28407"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 28408esac 28409 28410 28411cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28412# Files that config.status was made for. 28413config_files="$ac_config_files" 28414config_headers="$ac_config_headers" 28415config_commands="$ac_config_commands" 28416 28417_ACEOF 28418 28419cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28420ac_cs_usage="\ 28421\`$as_me' instantiates files and other configuration actions 28422from templates according to the current configuration. Unless the files 28423and actions are specified as TAGs, all are instantiated by default. 28424 28425Usage: $0 [OPTION]... [TAG]... 28426 28427 -h, --help print this help, then exit 28428 -V, --version print version number and configuration settings, then exit 28429 --config print configuration, then exit 28430 -q, --quiet, --silent 28431 do not print progress messages 28432 -d, --debug don't remove temporary files 28433 --recheck update $as_me by reconfiguring in the same conditions 28434 --file=FILE[:TEMPLATE] 28435 instantiate the configuration file FILE 28436 --header=FILE[:TEMPLATE] 28437 instantiate the configuration header FILE 28438 28439Configuration files: 28440$config_files 28441 28442Configuration headers: 28443$config_headers 28444 28445Configuration commands: 28446$config_commands 28447 28448Report bugs to <http://subversion.apache.org/>." 28449 28450_ACEOF 28451cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28452ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 28453ac_cs_version="\\ 28454subversion config.status 1.14.1 28455configured by $0, generated by GNU Autoconf 2.69, 28456 with options \\"\$ac_cs_config\\" 28457 28458Copyright (C) 2012 Free Software Foundation, Inc. 28459This config.status script is free software; the Free Software Foundation 28460gives unlimited permission to copy, distribute and modify it." 28461 28462ac_pwd='$ac_pwd' 28463srcdir='$srcdir' 28464INSTALL='$INSTALL' 28465AWK='$AWK' 28466test -n "\$AWK" || AWK=awk 28467_ACEOF 28468 28469cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28470# The default lists apply if the user does not specify any file. 28471ac_need_defaults=: 28472while test $# != 0 28473do 28474 case $1 in 28475 --*=?*) 28476 ac_option=`expr "X$1" : 'X\([^=]*\)='` 28477 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 28478 ac_shift=: 28479 ;; 28480 --*=) 28481 ac_option=`expr "X$1" : 'X\([^=]*\)='` 28482 ac_optarg= 28483 ac_shift=: 28484 ;; 28485 *) 28486 ac_option=$1 28487 ac_optarg=$2 28488 ac_shift=shift 28489 ;; 28490 esac 28491 28492 case $ac_option in 28493 # Handling of the options. 28494 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 28495 ac_cs_recheck=: ;; 28496 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 28497 $as_echo "$ac_cs_version"; exit ;; 28498 --config | --confi | --conf | --con | --co | --c ) 28499 $as_echo "$ac_cs_config"; exit ;; 28500 --debug | --debu | --deb | --de | --d | -d ) 28501 debug=: ;; 28502 --file | --fil | --fi | --f ) 28503 $ac_shift 28504 case $ac_optarg in 28505 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 28506 '') as_fn_error $? "missing file argument" ;; 28507 esac 28508 as_fn_append CONFIG_FILES " '$ac_optarg'" 28509 ac_need_defaults=false;; 28510 --header | --heade | --head | --hea ) 28511 $ac_shift 28512 case $ac_optarg in 28513 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 28514 esac 28515 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 28516 ac_need_defaults=false;; 28517 --he | --h) 28518 # Conflict between --help and --header 28519 as_fn_error $? "ambiguous option: \`$1' 28520Try \`$0 --help' for more information.";; 28521 --help | --hel | -h ) 28522 $as_echo "$ac_cs_usage"; exit ;; 28523 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 28524 | -silent | --silent | --silen | --sile | --sil | --si | --s) 28525 ac_cs_silent=: ;; 28526 28527 # This is an error. 28528 -*) as_fn_error $? "unrecognized option: \`$1' 28529Try \`$0 --help' for more information." ;; 28530 28531 *) as_fn_append ac_config_targets " $1" 28532 ac_need_defaults=false ;; 28533 28534 esac 28535 shift 28536done 28537 28538ac_configure_extra_args= 28539 28540if $ac_cs_silent; then 28541 exec 6>/dev/null 28542 ac_configure_extra_args="$ac_configure_extra_args --silent" 28543fi 28544 28545_ACEOF 28546cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28547if \$ac_cs_recheck; then 28548 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 28549 shift 28550 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 28551 CONFIG_SHELL='$SHELL' 28552 export CONFIG_SHELL 28553 exec "\$@" 28554fi 28555 28556_ACEOF 28557cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28558exec 5>>config.log 28559{ 28560 echo 28561 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 28562## Running $as_me. ## 28563_ASBOX 28564 $as_echo "$ac_log" 28565} >&5 28566 28567_ACEOF 28568cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28569# 28570# INIT-COMMANDS 28571# 28572 28573 28574# The HP-UX ksh and POSIX shell print the target directory to stdout 28575# if CDPATH is set. 28576(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 28577 28578sed_quote_subst='$sed_quote_subst' 28579double_quote_subst='$double_quote_subst' 28580delay_variable_subst='$delay_variable_subst' 28581macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 28582macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 28583enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 28584enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 28585pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 28586enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 28587shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 28588SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 28589ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 28590PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 28591host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 28592host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 28593host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 28594build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 28595build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 28596build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 28597SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 28598Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 28599GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 28600EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 28601FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 28602LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 28603NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 28604LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 28605max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 28606ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 28607exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 28608lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 28609lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 28610lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 28611lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 28612lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 28613reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 28614reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 28615OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 28616deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 28617file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 28618file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 28619want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 28620DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 28621sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 28622AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 28623AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 28624archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 28625STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 28626RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 28627old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 28628old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 28629old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 28630lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 28631CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 28632CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 28633compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 28634GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 28635lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 28636lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 28637lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 28638lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 28639lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 28640lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 28641nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 28642lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 28643lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 28644objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 28645MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 28646lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 28647lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 28648lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 28649lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 28650lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 28651need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 28652MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 28653DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 28654NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 28655LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 28656OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 28657OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 28658libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 28659shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 28660extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 28661archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 28662enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 28663export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 28664whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 28665compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 28666old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 28667old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 28668archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 28669archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 28670module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 28671module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 28672with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 28673allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 28674no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 28675hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 28676hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 28677hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 28678hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 28679hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 28680hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 28681hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 28682inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 28683link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 28684always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 28685export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 28686exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 28687include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 28688prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 28689postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 28690file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 28691variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 28692need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 28693need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 28694version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 28695runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 28696shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 28697shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 28698libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 28699library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 28700soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 28701install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 28702postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 28703postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 28704finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 28705finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 28706hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 28707sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 28708configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 28709configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 28710hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 28711enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 28712enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 28713enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 28714old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 28715striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 28716compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 28717predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 28718postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 28719predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 28720postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 28721compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 28722LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 28723reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 28724reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 28725old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 28726compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 28727GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 28728lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 28729lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 28730lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 28731lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 28732lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 28733archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 28734enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 28735export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 28736whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 28737compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 28738old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 28739old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 28740archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 28741archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 28742module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 28743module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 28744with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 28745allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 28746no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 28747hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 28748hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 28749hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 28750hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 28751hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 28752hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 28753hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 28754inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 28755link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 28756always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 28757export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 28758exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 28759include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 28760prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 28761postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 28762file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 28763hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 28764compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 28765predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 28766postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 28767predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 28768postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 28769compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 28770 28771LTCC='$LTCC' 28772LTCFLAGS='$LTCFLAGS' 28773compiler='$compiler_DEFAULT' 28774 28775# A function that is used when there is no print builtin or printf. 28776func_fallback_echo () 28777{ 28778 eval 'cat <<_LTECHO_EOF 28779\$1 28780_LTECHO_EOF' 28781} 28782 28783# Quote evaled strings. 28784for var in SHELL \ 28785ECHO \ 28786PATH_SEPARATOR \ 28787SED \ 28788GREP \ 28789EGREP \ 28790FGREP \ 28791LD \ 28792NM \ 28793LN_S \ 28794lt_SP2NL \ 28795lt_NL2SP \ 28796reload_flag \ 28797OBJDUMP \ 28798deplibs_check_method \ 28799file_magic_cmd \ 28800file_magic_glob \ 28801want_nocaseglob \ 28802DLLTOOL \ 28803sharedlib_from_linklib_cmd \ 28804AR \ 28805AR_FLAGS \ 28806archiver_list_spec \ 28807STRIP \ 28808RANLIB \ 28809CC \ 28810CFLAGS \ 28811compiler \ 28812lt_cv_sys_global_symbol_pipe \ 28813lt_cv_sys_global_symbol_to_cdecl \ 28814lt_cv_sys_global_symbol_to_import \ 28815lt_cv_sys_global_symbol_to_c_name_address \ 28816lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 28817lt_cv_nm_interface \ 28818nm_file_list_spec \ 28819lt_cv_truncate_bin \ 28820lt_prog_compiler_no_builtin_flag \ 28821lt_prog_compiler_pic \ 28822lt_prog_compiler_wl \ 28823lt_prog_compiler_static \ 28824lt_cv_prog_compiler_c_o \ 28825need_locks \ 28826MANIFEST_TOOL \ 28827DSYMUTIL \ 28828NMEDIT \ 28829LIPO \ 28830OTOOL \ 28831OTOOL64 \ 28832shrext_cmds \ 28833export_dynamic_flag_spec \ 28834whole_archive_flag_spec \ 28835compiler_needs_object \ 28836with_gnu_ld \ 28837allow_undefined_flag \ 28838no_undefined_flag \ 28839hardcode_libdir_flag_spec \ 28840hardcode_libdir_separator \ 28841exclude_expsyms \ 28842include_expsyms \ 28843file_list_spec \ 28844variables_saved_for_relink \ 28845libname_spec \ 28846library_names_spec \ 28847soname_spec \ 28848install_override_mode \ 28849finish_eval \ 28850old_striplib \ 28851striplib \ 28852compiler_lib_search_dirs \ 28853predep_objects \ 28854postdep_objects \ 28855predeps \ 28856postdeps \ 28857compiler_lib_search_path \ 28858LD_CXX \ 28859reload_flag_CXX \ 28860compiler_CXX \ 28861lt_prog_compiler_no_builtin_flag_CXX \ 28862lt_prog_compiler_pic_CXX \ 28863lt_prog_compiler_wl_CXX \ 28864lt_prog_compiler_static_CXX \ 28865lt_cv_prog_compiler_c_o_CXX \ 28866export_dynamic_flag_spec_CXX \ 28867whole_archive_flag_spec_CXX \ 28868compiler_needs_object_CXX \ 28869with_gnu_ld_CXX \ 28870allow_undefined_flag_CXX \ 28871no_undefined_flag_CXX \ 28872hardcode_libdir_flag_spec_CXX \ 28873hardcode_libdir_separator_CXX \ 28874exclude_expsyms_CXX \ 28875include_expsyms_CXX \ 28876file_list_spec_CXX \ 28877compiler_lib_search_dirs_CXX \ 28878predep_objects_CXX \ 28879postdep_objects_CXX \ 28880predeps_CXX \ 28881postdeps_CXX \ 28882compiler_lib_search_path_CXX; do 28883 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 28884 *[\\\\\\\`\\"\\\$]*) 28885 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 28886 ;; 28887 *) 28888 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 28889 ;; 28890 esac 28891done 28892 28893# Double-quote double-evaled strings. 28894for var in reload_cmds \ 28895old_postinstall_cmds \ 28896old_postuninstall_cmds \ 28897old_archive_cmds \ 28898extract_expsyms_cmds \ 28899old_archive_from_new_cmds \ 28900old_archive_from_expsyms_cmds \ 28901archive_cmds \ 28902archive_expsym_cmds \ 28903module_cmds \ 28904module_expsym_cmds \ 28905export_symbols_cmds \ 28906prelink_cmds \ 28907postlink_cmds \ 28908postinstall_cmds \ 28909postuninstall_cmds \ 28910finish_cmds \ 28911sys_lib_search_path_spec \ 28912configure_time_dlsearch_path \ 28913configure_time_lt_sys_library_path \ 28914reload_cmds_CXX \ 28915old_archive_cmds_CXX \ 28916old_archive_from_new_cmds_CXX \ 28917old_archive_from_expsyms_cmds_CXX \ 28918archive_cmds_CXX \ 28919archive_expsym_cmds_CXX \ 28920module_cmds_CXX \ 28921module_expsym_cmds_CXX \ 28922export_symbols_cmds_CXX \ 28923prelink_cmds_CXX \ 28924postlink_cmds_CXX; do 28925 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 28926 *[\\\\\\\`\\"\\\$]*) 28927 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 28928 ;; 28929 *) 28930 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 28931 ;; 28932 esac 28933done 28934 28935ac_aux_dir='$ac_aux_dir' 28936 28937# See if we are running on zsh, and set the options that allow our 28938# commands through without removal of \ escapes INIT. 28939if test -n "\${ZSH_VERSION+set}"; then 28940 setopt NO_GLOB_SUBST 28941fi 28942 28943 28944 PACKAGE='$PACKAGE' 28945 VERSION='$VERSION' 28946 RM='$RM' 28947 ofile='$ofile' 28948 28949 28950 28951 28952 28953SED="$SED" 28954 SVN_DB_HEADER="$SVN_DB_HEADER" 28955 28956_ACEOF 28957 28958cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28959 28960# Handling of arguments. 28961for ac_config_target in $ac_config_targets 28962do 28963 case $ac_config_target in 28964 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 28965 "subversion/svn_private_config.h.tmp") CONFIG_HEADERS="$CONFIG_HEADERS subversion/svn_private_config.h.tmp:subversion/svn_private_config.h.in" ;; 28966 "svn_private_config.h.tmp") CONFIG_COMMANDS="$CONFIG_COMMANDS svn_private_config.h.tmp" ;; 28967 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 28968 "${pc_file}") CONFIG_FILES="$CONFIG_FILES ${pc_file}" ;; 28969 "tools/backup/hot-backup.py") CONFIG_FILES="$CONFIG_FILES tools/backup/hot-backup.py" ;; 28970 "tools/hook-scripts/commit-access-control.pl") CONFIG_FILES="$CONFIG_FILES tools/hook-scripts/commit-access-control.pl" ;; 28971 "subversion/bindings/swig/perl/native/Makefile.PL") CONFIG_FILES="$CONFIG_FILES subversion/bindings/swig/perl/native/Makefile.PL" ;; 28972 "packages/solaris/pkginfo") CONFIG_FILES="$CONFIG_FILES packages/solaris/pkginfo" ;; 28973 28974 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 28975 esac 28976done 28977 28978 28979# If the user did not use the arguments to specify the items to instantiate, 28980# then the envvar interface is used. Set only those that are not. 28981# We use the long form for the default assignment because of an extremely 28982# bizarre bug on SunOS 4.1.3. 28983if $ac_need_defaults; then 28984 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 28985 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 28986 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 28987fi 28988 28989# Have a temporary directory for convenience. Make it in the build tree 28990# simply because there is no reason against having it here, and in addition, 28991# creating and moving files from /tmp can sometimes cause problems. 28992# Hook for its removal unless debugging. 28993# Note that there is a small window in which the directory will not be cleaned: 28994# after its creation but before its name has been assigned to `$tmp'. 28995$debug || 28996{ 28997 tmp= ac_tmp= 28998 trap 'exit_status=$? 28999 : "${ac_tmp:=$tmp}" 29000 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 29001' 0 29002 trap 'as_fn_exit 1' 1 2 13 15 29003} 29004# Create a (secure) tmp directory for tmp files. 29005 29006{ 29007 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 29008 test -d "$tmp" 29009} || 29010{ 29011 tmp=./conf$$-$RANDOM 29012 (umask 077 && mkdir "$tmp") 29013} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 29014ac_tmp=$tmp 29015 29016# Set up the scripts for CONFIG_FILES section. 29017# No need to generate them if there are no CONFIG_FILES. 29018# This happens for instance with `./config.status config.h'. 29019if test -n "$CONFIG_FILES"; then 29020 29021 29022ac_cr=`echo X | tr X '\015'` 29023# On cygwin, bash can eat \r inside `` if the user requested igncr. 29024# But we know of no other shell where ac_cr would be empty at this 29025# point, so we can use a bashism as a fallback. 29026if test "x$ac_cr" = x; then 29027 eval ac_cr=\$\'\\r\' 29028fi 29029ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 29030if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 29031 ac_cs_awk_cr='\\r' 29032else 29033 ac_cs_awk_cr=$ac_cr 29034fi 29035 29036echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 29037_ACEOF 29038 29039 29040{ 29041 echo "cat >conf$$subs.awk <<_ACEOF" && 29042 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 29043 echo "_ACEOF" 29044} >conf$$subs.sh || 29045 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 29046ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 29047ac_delim='%!_!# ' 29048for ac_last_try in false false false false false :; do 29049 . ./conf$$subs.sh || 29050 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 29051 29052 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 29053 if test $ac_delim_n = $ac_delim_num; then 29054 break 29055 elif $ac_last_try; then 29056 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 29057 else 29058 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 29059 fi 29060done 29061rm -f conf$$subs.sh 29062 29063cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29064cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 29065_ACEOF 29066sed -n ' 29067h 29068s/^/S["/; s/!.*/"]=/ 29069p 29070g 29071s/^[^!]*!// 29072:repl 29073t repl 29074s/'"$ac_delim"'$// 29075t delim 29076:nl 29077h 29078s/\(.\{148\}\)..*/\1/ 29079t more1 29080s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 29081p 29082n 29083b repl 29084:more1 29085s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 29086p 29087g 29088s/.\{148\}// 29089t nl 29090:delim 29091h 29092s/\(.\{148\}\)..*/\1/ 29093t more2 29094s/["\\]/\\&/g; s/^/"/; s/$/"/ 29095p 29096b 29097:more2 29098s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 29099p 29100g 29101s/.\{148\}// 29102t delim 29103' <conf$$subs.awk | sed ' 29104/^[^""]/{ 29105 N 29106 s/\n// 29107} 29108' >>$CONFIG_STATUS || ac_write_fail=1 29109rm -f conf$$subs.awk 29110cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29111_ACAWK 29112cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 29113 for (key in S) S_is_set[key] = 1 29114 FS = "" 29115 29116} 29117{ 29118 line = $ 0 29119 nfields = split(line, field, "@") 29120 substed = 0 29121 len = length(field[1]) 29122 for (i = 2; i < nfields; i++) { 29123 key = field[i] 29124 keylen = length(key) 29125 if (S_is_set[key]) { 29126 value = S[key] 29127 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 29128 len += length(value) + length(field[++i]) 29129 substed = 1 29130 } else 29131 len += 1 + keylen 29132 } 29133 29134 print line 29135} 29136 29137_ACAWK 29138_ACEOF 29139cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29140if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 29141 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 29142else 29143 cat 29144fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 29145 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 29146_ACEOF 29147 29148# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 29149# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 29150# trailing colons and then remove the whole line if VPATH becomes empty 29151# (actually we leave an empty line to preserve line numbers). 29152if test "x$srcdir" = x.; then 29153 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 29154h 29155s/// 29156s/^/:/ 29157s/[ ]*$/:/ 29158s/:\$(srcdir):/:/g 29159s/:\${srcdir}:/:/g 29160s/:@srcdir@:/:/g 29161s/^:*// 29162s/:*$// 29163x 29164s/\(=[ ]*\).*/\1/ 29165G 29166s/\n// 29167s/^[^=]*=[ ]*$// 29168}' 29169fi 29170 29171cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29172fi # test -n "$CONFIG_FILES" 29173 29174# Set up the scripts for CONFIG_HEADERS section. 29175# No need to generate them if there are no CONFIG_HEADERS. 29176# This happens for instance with `./config.status Makefile'. 29177if test -n "$CONFIG_HEADERS"; then 29178cat >"$ac_tmp/defines.awk" <<\_ACAWK || 29179BEGIN { 29180_ACEOF 29181 29182# Transform confdefs.h into an awk script `defines.awk', embedded as 29183# here-document in config.status, that substitutes the proper values into 29184# config.h.in to produce config.h. 29185 29186# Create a delimiter string that does not exist in confdefs.h, to ease 29187# handling of long lines. 29188ac_delim='%!_!# ' 29189for ac_last_try in false false :; do 29190 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 29191 if test -z "$ac_tt"; then 29192 break 29193 elif $ac_last_try; then 29194 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 29195 else 29196 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 29197 fi 29198done 29199 29200# For the awk script, D is an array of macro values keyed by name, 29201# likewise P contains macro parameters if any. Preserve backslash 29202# newline sequences. 29203 29204ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 29205sed -n ' 29206s/.\{148\}/&'"$ac_delim"'/g 29207t rset 29208:rset 29209s/^[ ]*#[ ]*define[ ][ ]*/ / 29210t def 29211d 29212:def 29213s/\\$// 29214t bsnl 29215s/["\\]/\\&/g 29216s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 29217D["\1"]=" \3"/p 29218s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 29219d 29220:bsnl 29221s/["\\]/\\&/g 29222s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 29223D["\1"]=" \3\\\\\\n"\\/p 29224t cont 29225s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 29226t cont 29227d 29228:cont 29229n 29230s/.\{148\}/&'"$ac_delim"'/g 29231t clear 29232:clear 29233s/\\$// 29234t bsnlc 29235s/["\\]/\\&/g; s/^/"/; s/$/"/p 29236d 29237:bsnlc 29238s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 29239b cont 29240' <confdefs.h | sed ' 29241s/'"$ac_delim"'/"\\\ 29242"/g' >>$CONFIG_STATUS || ac_write_fail=1 29243 29244cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29245 for (key in D) D_is_set[key] = 1 29246 FS = "" 29247} 29248/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 29249 line = \$ 0 29250 split(line, arg, " ") 29251 if (arg[1] == "#") { 29252 defundef = arg[2] 29253 mac1 = arg[3] 29254 } else { 29255 defundef = substr(arg[1], 2) 29256 mac1 = arg[2] 29257 } 29258 split(mac1, mac2, "(") #) 29259 macro = mac2[1] 29260 prefix = substr(line, 1, index(line, defundef) - 1) 29261 if (D_is_set[macro]) { 29262 # Preserve the white space surrounding the "#". 29263 print prefix "define", macro P[macro] D[macro] 29264 next 29265 } else { 29266 # Replace #undef with comments. This is necessary, for example, 29267 # in the case of _POSIX_SOURCE, which is predefined and required 29268 # on some systems where configure will not decide to define it. 29269 if (defundef == "undef") { 29270 print "/*", prefix defundef, macro, "*/" 29271 next 29272 } 29273 } 29274} 29275{ print } 29276_ACAWK 29277_ACEOF 29278cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29279 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 29280fi # test -n "$CONFIG_HEADERS" 29281 29282 29283eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 29284shift 29285for ac_tag 29286do 29287 case $ac_tag in 29288 :[FHLC]) ac_mode=$ac_tag; continue;; 29289 esac 29290 case $ac_mode$ac_tag in 29291 :[FHL]*:*);; 29292 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 29293 :[FH]-) ac_tag=-:-;; 29294 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 29295 esac 29296 ac_save_IFS=$IFS 29297 IFS=: 29298 set x $ac_tag 29299 IFS=$ac_save_IFS 29300 shift 29301 ac_file=$1 29302 shift 29303 29304 case $ac_mode in 29305 :L) ac_source=$1;; 29306 :[FH]) 29307 ac_file_inputs= 29308 for ac_f 29309 do 29310 case $ac_f in 29311 -) ac_f="$ac_tmp/stdin";; 29312 *) # Look for the file first in the build tree, then in the source tree 29313 # (if the path is not absolute). The absolute path cannot be DOS-style, 29314 # because $ac_f cannot contain `:'. 29315 test -f "$ac_f" || 29316 case $ac_f in 29317 [\\/$]*) false;; 29318 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 29319 esac || 29320 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 29321 esac 29322 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 29323 as_fn_append ac_file_inputs " '$ac_f'" 29324 done 29325 29326 # Let's still pretend it is `configure' which instantiates (i.e., don't 29327 # use $as_me), people would be surprised to read: 29328 # /* config.h. Generated by config.status. */ 29329 configure_input='Generated from '` 29330 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 29331 `' by configure.' 29332 if test x"$ac_file" != x-; then 29333 configure_input="$ac_file. $configure_input" 29334 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 29335$as_echo "$as_me: creating $ac_file" >&6;} 29336 fi 29337 # Neutralize special characters interpreted by sed in replacement strings. 29338 case $configure_input in #( 29339 *\&* | *\|* | *\\* ) 29340 ac_sed_conf_input=`$as_echo "$configure_input" | 29341 sed 's/[\\\\&|]/\\\\&/g'`;; #( 29342 *) ac_sed_conf_input=$configure_input;; 29343 esac 29344 29345 case $ac_tag in 29346 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 29347 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 29348 esac 29349 ;; 29350 esac 29351 29352 ac_dir=`$as_dirname -- "$ac_file" || 29353$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 29354 X"$ac_file" : 'X\(//\)[^/]' \| \ 29355 X"$ac_file" : 'X\(//\)$' \| \ 29356 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 29357$as_echo X"$ac_file" | 29358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 29359 s//\1/ 29360 q 29361 } 29362 /^X\(\/\/\)[^/].*/{ 29363 s//\1/ 29364 q 29365 } 29366 /^X\(\/\/\)$/{ 29367 s//\1/ 29368 q 29369 } 29370 /^X\(\/\).*/{ 29371 s//\1/ 29372 q 29373 } 29374 s/.*/./; q'` 29375 as_dir="$ac_dir"; as_fn_mkdir_p 29376 ac_builddir=. 29377 29378case "$ac_dir" in 29379.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 29380*) 29381 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 29382 # A ".." for each directory in $ac_dir_suffix. 29383 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 29384 case $ac_top_builddir_sub in 29385 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 29386 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 29387 esac ;; 29388esac 29389ac_abs_top_builddir=$ac_pwd 29390ac_abs_builddir=$ac_pwd$ac_dir_suffix 29391# for backward compatibility: 29392ac_top_builddir=$ac_top_build_prefix 29393 29394case $srcdir in 29395 .) # We are building in place. 29396 ac_srcdir=. 29397 ac_top_srcdir=$ac_top_builddir_sub 29398 ac_abs_top_srcdir=$ac_pwd ;; 29399 [\\/]* | ?:[\\/]* ) # Absolute name. 29400 ac_srcdir=$srcdir$ac_dir_suffix; 29401 ac_top_srcdir=$srcdir 29402 ac_abs_top_srcdir=$srcdir ;; 29403 *) # Relative name. 29404 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 29405 ac_top_srcdir=$ac_top_build_prefix$srcdir 29406 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 29407esac 29408ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 29409 29410 29411 case $ac_mode in 29412 :F) 29413 # 29414 # CONFIG_FILE 29415 # 29416 29417 case $INSTALL in 29418 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 29419 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 29420 esac 29421_ACEOF 29422 29423cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29424# If the template does not know about datarootdir, expand it. 29425# FIXME: This hack should be removed a few years after 2.60. 29426ac_datarootdir_hack=; ac_datarootdir_seen= 29427ac_sed_dataroot=' 29428/datarootdir/ { 29429 p 29430 q 29431} 29432/@datadir@/p 29433/@docdir@/p 29434/@infodir@/p 29435/@localedir@/p 29436/@mandir@/p' 29437case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 29438*datarootdir*) ac_datarootdir_seen=yes;; 29439*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 29440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 29441$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 29442_ACEOF 29443cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29444 ac_datarootdir_hack=' 29445 s&@datadir@&$datadir&g 29446 s&@docdir@&$docdir&g 29447 s&@infodir@&$infodir&g 29448 s&@localedir@&$localedir&g 29449 s&@mandir@&$mandir&g 29450 s&\\\${datarootdir}&$datarootdir&g' ;; 29451esac 29452_ACEOF 29453 29454# Neutralize VPATH when `$srcdir' = `.'. 29455# Shell code in configure.ac might set extrasub. 29456# FIXME: do we really want to maintain this feature? 29457cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29458ac_sed_extra="$ac_vpsub 29459$extrasub 29460_ACEOF 29461cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29462:t 29463/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 29464s|@configure_input@|$ac_sed_conf_input|;t t 29465s&@top_builddir@&$ac_top_builddir_sub&;t t 29466s&@top_build_prefix@&$ac_top_build_prefix&;t t 29467s&@srcdir@&$ac_srcdir&;t t 29468s&@abs_srcdir@&$ac_abs_srcdir&;t t 29469s&@top_srcdir@&$ac_top_srcdir&;t t 29470s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 29471s&@builddir@&$ac_builddir&;t t 29472s&@abs_builddir@&$ac_abs_builddir&;t t 29473s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 29474s&@INSTALL@&$ac_INSTALL&;t t 29475$ac_datarootdir_hack 29476" 29477eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 29478 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 29479 29480test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 29481 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 29482 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 29483 "$ac_tmp/out"`; test -z "$ac_out"; } && 29484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 29485which seems to be undefined. Please make sure it is defined" >&5 29486$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 29487which seems to be undefined. Please make sure it is defined" >&2;} 29488 29489 rm -f "$ac_tmp/stdin" 29490 case $ac_file in 29491 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 29492 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 29493 esac \ 29494 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 29495 ;; 29496 :H) 29497 # 29498 # CONFIG_HEADER 29499 # 29500 if test x"$ac_file" != x-; then 29501 { 29502 $as_echo "/* $configure_input */" \ 29503 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 29504 } >"$ac_tmp/config.h" \ 29505 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 29506 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 29507 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 29508$as_echo "$as_me: $ac_file is unchanged" >&6;} 29509 else 29510 rm -f "$ac_file" 29511 mv "$ac_tmp/config.h" "$ac_file" \ 29512 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 29513 fi 29514 else 29515 $as_echo "/* $configure_input */" \ 29516 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 29517 || as_fn_error $? "could not create -" "$LINENO" 5 29518 fi 29519 ;; 29520 29521 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 29522$as_echo "$as_me: executing $ac_file commands" >&6;} 29523 ;; 29524 esac 29525 29526 29527 case $ac_file$ac_mode in 29528 "libtool":C) 29529 29530 # See if we are running on zsh, and set the options that allow our 29531 # commands through without removal of \ escapes. 29532 if test -n "${ZSH_VERSION+set}"; then 29533 setopt NO_GLOB_SUBST 29534 fi 29535 29536 cfgfile=${ofile}T 29537 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 29538 $RM "$cfgfile" 29539 29540 cat <<_LT_EOF >> "$cfgfile" 29541#! $SHELL 29542# Generated automatically by $as_me ($PACKAGE) $VERSION 29543# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 29544# NOTE: Changes made to this file will be lost: look at ltmain.sh. 29545 29546# Provide generalized library-building support services. 29547# Written by Gordon Matzigkeit, 1996 29548 29549# Copyright (C) 2014 Free Software Foundation, Inc. 29550# This is free software; see the source for copying conditions. There is NO 29551# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 29552 29553# GNU Libtool is free software; you can redistribute it and/or modify 29554# it under the terms of the GNU General Public License as published by 29555# the Free Software Foundation; either version 2 of of the License, or 29556# (at your option) any later version. 29557# 29558# As a special exception to the GNU General Public License, if you 29559# distribute this file as part of a program or library that is built 29560# using GNU Libtool, you may include this file under the same 29561# distribution terms that you use for the rest of that program. 29562# 29563# GNU Libtool is distributed in the hope that it will be useful, but 29564# WITHOUT ANY WARRANTY; without even the implied warranty of 29565# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 29566# GNU General Public License for more details. 29567# 29568# You should have received a copy of the GNU General Public License 29569# along with this program. If not, see <http://www.gnu.org/licenses/>. 29570 29571 29572# The names of the tagged configurations supported by this script. 29573available_tags='CXX ' 29574 29575# Configured defaults for sys_lib_dlsearch_path munging. 29576: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 29577 29578# ### BEGIN LIBTOOL CONFIG 29579 29580# Which release of libtool.m4 was used? 29581macro_version=$macro_version 29582macro_revision=$macro_revision 29583 29584# Whether or not to build shared libraries. 29585build_libtool_libs=$enable_shared 29586 29587# Whether or not to build static libraries. 29588build_old_libs=$enable_static 29589 29590# What type of objects to build. 29591pic_mode=$pic_mode 29592 29593# Whether or not to optimize for fast installation. 29594fast_install=$enable_fast_install 29595 29596# Shared archive member basename,for filename based shared library versioning on AIX. 29597shared_archive_member_spec=$shared_archive_member_spec 29598 29599# Shell to use when invoking shell scripts. 29600SHELL=$lt_SHELL 29601 29602# An echo program that protects backslashes. 29603ECHO=$lt_ECHO 29604 29605# The PATH separator for the build system. 29606PATH_SEPARATOR=$lt_PATH_SEPARATOR 29607 29608# The host system. 29609host_alias=$host_alias 29610host=$host 29611host_os=$host_os 29612 29613# The build system. 29614build_alias=$build_alias 29615build=$build 29616build_os=$build_os 29617 29618# A sed program that does not truncate output. 29619SED=$lt_SED 29620 29621# Sed that helps us avoid accidentally triggering echo(1) options like -n. 29622Xsed="\$SED -e 1s/^X//" 29623 29624# A grep program that handles long lines. 29625GREP=$lt_GREP 29626 29627# An ERE matcher. 29628EGREP=$lt_EGREP 29629 29630# A literal string matcher. 29631FGREP=$lt_FGREP 29632 29633# A BSD- or MS-compatible name lister. 29634NM=$lt_NM 29635 29636# Whether we need soft or hard links. 29637LN_S=$lt_LN_S 29638 29639# What is the maximum length of a command? 29640max_cmd_len=$max_cmd_len 29641 29642# Object file suffix (normally "o"). 29643objext=$ac_objext 29644 29645# Executable file suffix (normally ""). 29646exeext=$exeext 29647 29648# whether the shell understands "unset". 29649lt_unset=$lt_unset 29650 29651# turn spaces into newlines. 29652SP2NL=$lt_lt_SP2NL 29653 29654# turn newlines into spaces. 29655NL2SP=$lt_lt_NL2SP 29656 29657# convert \$build file names to \$host format. 29658to_host_file_cmd=$lt_cv_to_host_file_cmd 29659 29660# convert \$build files to toolchain format. 29661to_tool_file_cmd=$lt_cv_to_tool_file_cmd 29662 29663# An object symbol dumper. 29664OBJDUMP=$lt_OBJDUMP 29665 29666# Method to check whether dependent libraries are shared objects. 29667deplibs_check_method=$lt_deplibs_check_method 29668 29669# Command to use when deplibs_check_method = "file_magic". 29670file_magic_cmd=$lt_file_magic_cmd 29671 29672# How to find potential files when deplibs_check_method = "file_magic". 29673file_magic_glob=$lt_file_magic_glob 29674 29675# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 29676want_nocaseglob=$lt_want_nocaseglob 29677 29678# DLL creation program. 29679DLLTOOL=$lt_DLLTOOL 29680 29681# Command to associate shared and link libraries. 29682sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 29683 29684# The archiver. 29685AR=$lt_AR 29686 29687# Flags to create an archive. 29688AR_FLAGS=$lt_AR_FLAGS 29689 29690# How to feed a file listing to the archiver. 29691archiver_list_spec=$lt_archiver_list_spec 29692 29693# A symbol stripping program. 29694STRIP=$lt_STRIP 29695 29696# Commands used to install an old-style archive. 29697RANLIB=$lt_RANLIB 29698old_postinstall_cmds=$lt_old_postinstall_cmds 29699old_postuninstall_cmds=$lt_old_postuninstall_cmds 29700 29701# Whether to use a lock for old archive extraction. 29702lock_old_archive_extraction=$lock_old_archive_extraction 29703 29704# A C compiler. 29705LTCC=$lt_CC 29706 29707# LTCC compiler flags. 29708LTCFLAGS=$lt_CFLAGS 29709 29710# Take the output of nm and produce a listing of raw symbols and C names. 29711global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 29712 29713# Transform the output of nm in a proper C declaration. 29714global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 29715 29716# Transform the output of nm into a list of symbols to manually relocate. 29717global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 29718 29719# Transform the output of nm in a C name address pair. 29720global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 29721 29722# Transform the output of nm in a C name address pair when lib prefix is needed. 29723global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 29724 29725# The name lister interface. 29726nm_interface=$lt_lt_cv_nm_interface 29727 29728# Specify filename containing input files for \$NM. 29729nm_file_list_spec=$lt_nm_file_list_spec 29730 29731# The root where to search for dependent libraries,and where our libraries should be installed. 29732lt_sysroot=$lt_sysroot 29733 29734# Command to truncate a binary pipe. 29735lt_truncate_bin=$lt_lt_cv_truncate_bin 29736 29737# The name of the directory that contains temporary libtool files. 29738objdir=$objdir 29739 29740# Used to examine libraries when file_magic_cmd begins with "file". 29741MAGIC_CMD=$MAGIC_CMD 29742 29743# Must we lock files when doing compilation? 29744need_locks=$lt_need_locks 29745 29746# Manifest tool. 29747MANIFEST_TOOL=$lt_MANIFEST_TOOL 29748 29749# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 29750DSYMUTIL=$lt_DSYMUTIL 29751 29752# Tool to change global to local symbols on Mac OS X. 29753NMEDIT=$lt_NMEDIT 29754 29755# Tool to manipulate fat objects and archives on Mac OS X. 29756LIPO=$lt_LIPO 29757 29758# ldd/readelf like tool for Mach-O binaries on Mac OS X. 29759OTOOL=$lt_OTOOL 29760 29761# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 29762OTOOL64=$lt_OTOOL64 29763 29764# Old archive suffix (normally "a"). 29765libext=$libext 29766 29767# Shared library suffix (normally ".so"). 29768shrext_cmds=$lt_shrext_cmds 29769 29770# The commands to extract the exported symbol list from a shared archive. 29771extract_expsyms_cmds=$lt_extract_expsyms_cmds 29772 29773# Variables whose values should be saved in libtool wrapper scripts and 29774# restored at link time. 29775variables_saved_for_relink=$lt_variables_saved_for_relink 29776 29777# Do we need the "lib" prefix for modules? 29778need_lib_prefix=$need_lib_prefix 29779 29780# Do we need a version for libraries? 29781need_version=$need_version 29782 29783# Library versioning type. 29784version_type=$version_type 29785 29786# Shared library runtime path variable. 29787runpath_var=$runpath_var 29788 29789# Shared library path variable. 29790shlibpath_var=$shlibpath_var 29791 29792# Is shlibpath searched before the hard-coded library search path? 29793shlibpath_overrides_runpath=$shlibpath_overrides_runpath 29794 29795# Format of library name prefix. 29796libname_spec=$lt_libname_spec 29797 29798# List of archive names. First name is the real one, the rest are links. 29799# The last name is the one that the linker finds with -lNAME 29800library_names_spec=$lt_library_names_spec 29801 29802# The coded name of the library, if different from the real name. 29803soname_spec=$lt_soname_spec 29804 29805# Permission mode override for installation of shared libraries. 29806install_override_mode=$lt_install_override_mode 29807 29808# Command to use after installation of a shared archive. 29809postinstall_cmds=$lt_postinstall_cmds 29810 29811# Command to use after uninstallation of a shared archive. 29812postuninstall_cmds=$lt_postuninstall_cmds 29813 29814# Commands used to finish a libtool library installation in a directory. 29815finish_cmds=$lt_finish_cmds 29816 29817# As "finish_cmds", except a single script fragment to be evaled but 29818# not shown. 29819finish_eval=$lt_finish_eval 29820 29821# Whether we should hardcode library paths into libraries. 29822hardcode_into_libs=$hardcode_into_libs 29823 29824# Compile-time system search path for libraries. 29825sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 29826 29827# Detected run-time system search path for libraries. 29828sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 29829 29830# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 29831configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 29832 29833# Whether dlopen is supported. 29834dlopen_support=$enable_dlopen 29835 29836# Whether dlopen of programs is supported. 29837dlopen_self=$enable_dlopen_self 29838 29839# Whether dlopen of statically linked programs is supported. 29840dlopen_self_static=$enable_dlopen_self_static 29841 29842# Commands to strip libraries. 29843old_striplib=$lt_old_striplib 29844striplib=$lt_striplib 29845 29846 29847# The linker used to build libraries. 29848LD=$lt_LD 29849 29850# How to create reloadable object files. 29851reload_flag=$lt_reload_flag 29852reload_cmds=$lt_reload_cmds 29853 29854# Commands used to build an old-style archive. 29855old_archive_cmds=$lt_old_archive_cmds 29856 29857# A language specific compiler. 29858CC=$lt_compiler 29859 29860# Is the compiler the GNU compiler? 29861with_gcc=$GCC 29862 29863# Compiler flag to turn off builtin functions. 29864no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 29865 29866# Additional compiler flags for building library objects. 29867pic_flag=$lt_lt_prog_compiler_pic 29868 29869# How to pass a linker flag through the compiler. 29870wl=$lt_lt_prog_compiler_wl 29871 29872# Compiler flag to prevent dynamic linking. 29873link_static_flag=$lt_lt_prog_compiler_static 29874 29875# Does compiler simultaneously support -c and -o options? 29876compiler_c_o=$lt_lt_cv_prog_compiler_c_o 29877 29878# Whether or not to add -lc for building shared libraries. 29879build_libtool_need_lc=$archive_cmds_need_lc 29880 29881# Whether or not to disallow shared libs when runtime libs are static. 29882allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 29883 29884# Compiler flag to allow reflexive dlopens. 29885export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 29886 29887# Compiler flag to generate shared objects directly from archives. 29888whole_archive_flag_spec=$lt_whole_archive_flag_spec 29889 29890# Whether the compiler copes with passing no objects directly. 29891compiler_needs_object=$lt_compiler_needs_object 29892 29893# Create an old-style archive from a shared archive. 29894old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 29895 29896# Create a temporary old-style archive to link instead of a shared archive. 29897old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 29898 29899# Commands used to build a shared archive. 29900archive_cmds=$lt_archive_cmds 29901archive_expsym_cmds=$lt_archive_expsym_cmds 29902 29903# Commands used to build a loadable module if different from building 29904# a shared archive. 29905module_cmds=$lt_module_cmds 29906module_expsym_cmds=$lt_module_expsym_cmds 29907 29908# Whether we are building with GNU ld or not. 29909with_gnu_ld=$lt_with_gnu_ld 29910 29911# Flag that allows shared libraries with undefined symbols to be built. 29912allow_undefined_flag=$lt_allow_undefined_flag 29913 29914# Flag that enforces no undefined symbols. 29915no_undefined_flag=$lt_no_undefined_flag 29916 29917# Flag to hardcode \$libdir into a binary during linking. 29918# This must work even if \$libdir does not exist 29919hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 29920 29921# Whether we need a single "-rpath" flag with a separated argument. 29922hardcode_libdir_separator=$lt_hardcode_libdir_separator 29923 29924# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 29925# DIR into the resulting binary. 29926hardcode_direct=$hardcode_direct 29927 29928# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 29929# DIR into the resulting binary and the resulting library dependency is 29930# "absolute",i.e impossible to change by setting \$shlibpath_var if the 29931# library is relocated. 29932hardcode_direct_absolute=$hardcode_direct_absolute 29933 29934# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 29935# into the resulting binary. 29936hardcode_minus_L=$hardcode_minus_L 29937 29938# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 29939# into the resulting binary. 29940hardcode_shlibpath_var=$hardcode_shlibpath_var 29941 29942# Set to "yes" if building a shared library automatically hardcodes DIR 29943# into the library and all subsequent libraries and executables linked 29944# against it. 29945hardcode_automatic=$hardcode_automatic 29946 29947# Set to yes if linker adds runtime paths of dependent libraries 29948# to runtime path list. 29949inherit_rpath=$inherit_rpath 29950 29951# Whether libtool must link a program against all its dependency libraries. 29952link_all_deplibs=$link_all_deplibs 29953 29954# Set to "yes" if exported symbols are required. 29955always_export_symbols=$always_export_symbols 29956 29957# The commands to list exported symbols. 29958export_symbols_cmds=$lt_export_symbols_cmds 29959 29960# Symbols that should not be listed in the preloaded symbols. 29961exclude_expsyms=$lt_exclude_expsyms 29962 29963# Symbols that must always be exported. 29964include_expsyms=$lt_include_expsyms 29965 29966# Commands necessary for linking programs (against libraries) with templates. 29967prelink_cmds=$lt_prelink_cmds 29968 29969# Commands necessary for finishing linking programs. 29970postlink_cmds=$lt_postlink_cmds 29971 29972# Specify filename containing input files. 29973file_list_spec=$lt_file_list_spec 29974 29975# How to hardcode a shared library path into an executable. 29976hardcode_action=$hardcode_action 29977 29978# The directories searched by this compiler when creating a shared library. 29979compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 29980 29981# Dependencies to place before and after the objects being linked to 29982# create a shared library. 29983predep_objects=$lt_predep_objects 29984postdep_objects=$lt_postdep_objects 29985predeps=$lt_predeps 29986postdeps=$lt_postdeps 29987 29988# The library search path used internally by the compiler when linking 29989# a shared library. 29990compiler_lib_search_path=$lt_compiler_lib_search_path 29991 29992# ### END LIBTOOL CONFIG 29993 29994_LT_EOF 29995 29996 cat <<'_LT_EOF' >> "$cfgfile" 29997 29998# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 29999 30000# func_munge_path_list VARIABLE PATH 30001# ----------------------------------- 30002# VARIABLE is name of variable containing _space_ separated list of 30003# directories to be munged by the contents of PATH, which is string 30004# having a format: 30005# "DIR[:DIR]:" 30006# string "DIR[ DIR]" will be prepended to VARIABLE 30007# ":DIR[:DIR]" 30008# string "DIR[ DIR]" will be appended to VARIABLE 30009# "DIRP[:DIRP]::[DIRA:]DIRA" 30010# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 30011# "DIRA[ DIRA]" will be appended to VARIABLE 30012# "DIR[:DIR]" 30013# VARIABLE will be replaced by "DIR[ DIR]" 30014func_munge_path_list () 30015{ 30016 case x$2 in 30017 x) 30018 ;; 30019 *:) 30020 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 30021 ;; 30022 x:*) 30023 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 30024 ;; 30025 *::*) 30026 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 30027 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 30028 ;; 30029 *) 30030 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 30031 ;; 30032 esac 30033} 30034 30035 30036# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 30037func_cc_basename () 30038{ 30039 for cc_temp in $*""; do 30040 case $cc_temp in 30041 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 30042 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 30043 \-*) ;; 30044 *) break;; 30045 esac 30046 done 30047 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 30048} 30049 30050 30051# ### END FUNCTIONS SHARED WITH CONFIGURE 30052 30053_LT_EOF 30054 30055 case $host_os in 30056 aix3*) 30057 cat <<\_LT_EOF >> "$cfgfile" 30058# AIX sometimes has problems with the GCC collect2 program. For some 30059# reason, if we set the COLLECT_NAMES environment variable, the problems 30060# vanish in a puff of smoke. 30061if test set != "${COLLECT_NAMES+set}"; then 30062 COLLECT_NAMES= 30063 export COLLECT_NAMES 30064fi 30065_LT_EOF 30066 ;; 30067 esac 30068 30069 30070ltmain=$ac_aux_dir/ltmain.sh 30071 30072 30073 # We use sed instead of cat because bash on DJGPP gets confused if 30074 # if finds mixed CR/LF and LF-only lines. Since sed operates in 30075 # text mode, it properly converts lines to CR/LF. This bash problem 30076 # is reportedly fixed, but why not run on old versions too? 30077 sed '$q' "$ltmain" >> "$cfgfile" \ 30078 || (rm -f "$cfgfile"; exit 1) 30079 30080 mv -f "$cfgfile" "$ofile" || 30081 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 30082 chmod +x "$ofile" 30083 30084 30085 cat <<_LT_EOF >> "$ofile" 30086 30087# ### BEGIN LIBTOOL TAG CONFIG: CXX 30088 30089# The linker used to build libraries. 30090LD=$lt_LD_CXX 30091 30092# How to create reloadable object files. 30093reload_flag=$lt_reload_flag_CXX 30094reload_cmds=$lt_reload_cmds_CXX 30095 30096# Commands used to build an old-style archive. 30097old_archive_cmds=$lt_old_archive_cmds_CXX 30098 30099# A language specific compiler. 30100CC=$lt_compiler_CXX 30101 30102# Is the compiler the GNU compiler? 30103with_gcc=$GCC_CXX 30104 30105# Compiler flag to turn off builtin functions. 30106no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 30107 30108# Additional compiler flags for building library objects. 30109pic_flag=$lt_lt_prog_compiler_pic_CXX 30110 30111# How to pass a linker flag through the compiler. 30112wl=$lt_lt_prog_compiler_wl_CXX 30113 30114# Compiler flag to prevent dynamic linking. 30115link_static_flag=$lt_lt_prog_compiler_static_CXX 30116 30117# Does compiler simultaneously support -c and -o options? 30118compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 30119 30120# Whether or not to add -lc for building shared libraries. 30121build_libtool_need_lc=$archive_cmds_need_lc_CXX 30122 30123# Whether or not to disallow shared libs when runtime libs are static. 30124allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 30125 30126# Compiler flag to allow reflexive dlopens. 30127export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 30128 30129# Compiler flag to generate shared objects directly from archives. 30130whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 30131 30132# Whether the compiler copes with passing no objects directly. 30133compiler_needs_object=$lt_compiler_needs_object_CXX 30134 30135# Create an old-style archive from a shared archive. 30136old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 30137 30138# Create a temporary old-style archive to link instead of a shared archive. 30139old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 30140 30141# Commands used to build a shared archive. 30142archive_cmds=$lt_archive_cmds_CXX 30143archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 30144 30145# Commands used to build a loadable module if different from building 30146# a shared archive. 30147module_cmds=$lt_module_cmds_CXX 30148module_expsym_cmds=$lt_module_expsym_cmds_CXX 30149 30150# Whether we are building with GNU ld or not. 30151with_gnu_ld=$lt_with_gnu_ld_CXX 30152 30153# Flag that allows shared libraries with undefined symbols to be built. 30154allow_undefined_flag=$lt_allow_undefined_flag_CXX 30155 30156# Flag that enforces no undefined symbols. 30157no_undefined_flag=$lt_no_undefined_flag_CXX 30158 30159# Flag to hardcode \$libdir into a binary during linking. 30160# This must work even if \$libdir does not exist 30161hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 30162 30163# Whether we need a single "-rpath" flag with a separated argument. 30164hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 30165 30166# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 30167# DIR into the resulting binary. 30168hardcode_direct=$hardcode_direct_CXX 30169 30170# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 30171# DIR into the resulting binary and the resulting library dependency is 30172# "absolute",i.e impossible to change by setting \$shlibpath_var if the 30173# library is relocated. 30174hardcode_direct_absolute=$hardcode_direct_absolute_CXX 30175 30176# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 30177# into the resulting binary. 30178hardcode_minus_L=$hardcode_minus_L_CXX 30179 30180# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 30181# into the resulting binary. 30182hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 30183 30184# Set to "yes" if building a shared library automatically hardcodes DIR 30185# into the library and all subsequent libraries and executables linked 30186# against it. 30187hardcode_automatic=$hardcode_automatic_CXX 30188 30189# Set to yes if linker adds runtime paths of dependent libraries 30190# to runtime path list. 30191inherit_rpath=$inherit_rpath_CXX 30192 30193# Whether libtool must link a program against all its dependency libraries. 30194link_all_deplibs=$link_all_deplibs_CXX 30195 30196# Set to "yes" if exported symbols are required. 30197always_export_symbols=$always_export_symbols_CXX 30198 30199# The commands to list exported symbols. 30200export_symbols_cmds=$lt_export_symbols_cmds_CXX 30201 30202# Symbols that should not be listed in the preloaded symbols. 30203exclude_expsyms=$lt_exclude_expsyms_CXX 30204 30205# Symbols that must always be exported. 30206include_expsyms=$lt_include_expsyms_CXX 30207 30208# Commands necessary for linking programs (against libraries) with templates. 30209prelink_cmds=$lt_prelink_cmds_CXX 30210 30211# Commands necessary for finishing linking programs. 30212postlink_cmds=$lt_postlink_cmds_CXX 30213 30214# Specify filename containing input files. 30215file_list_spec=$lt_file_list_spec_CXX 30216 30217# How to hardcode a shared library path into an executable. 30218hardcode_action=$hardcode_action_CXX 30219 30220# The directories searched by this compiler when creating a shared library. 30221compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 30222 30223# Dependencies to place before and after the objects being linked to 30224# create a shared library. 30225predep_objects=$lt_predep_objects_CXX 30226postdep_objects=$lt_postdep_objects_CXX 30227predeps=$lt_predeps_CXX 30228postdeps=$lt_postdeps_CXX 30229 30230# The library search path used internally by the compiler when linking 30231# a shared library. 30232compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 30233 30234# ### END LIBTOOL TAG CONFIG: CXX 30235_LT_EOF 30236 30237 ;; 30238 "svn_private_config.h.tmp":C) svn_cf=subversion/svn_private_config.h; 30239 $SED -e "s/@SVN_DB_HEADER@/$SVN_DB_HEADER/" $svn_cf.tmp > $svn_cf.tmp.new 30240 cmp -s $svn_cf.tmp.new $svn_cf || mv -f $svn_cf.tmp.new $svn_cf 30241 rm -f $svn_cf.tmp.new $svn_cf.tmp ;; 30242 "tools/backup/hot-backup.py":F) chmod +x tools/backup/hot-backup.py ;; 30243 "tools/hook-scripts/commit-access-control.pl":F) chmod +x tools/hook-scripts/commit-access-control.pl ;; 30244 "subversion/bindings/swig/perl/native/Makefile.PL":F) chmod +x subversion/bindings/swig/perl/native/Makefile.PL ;; 30245 "packages/solaris/pkginfo":F) chmod +x packages/solaris/pkginfo ;; 30246 30247 esac 30248done # for ac_tag 30249 30250 30251as_fn_exit 0 30252_ACEOF 30253ac_clean_files=$ac_clean_files_save 30254 30255test $ac_write_fail = 0 || 30256 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 30257 30258 30259# configure is writing to config.log, and then calls config.status. 30260# config.status does its own redirection, appending to config.log. 30261# Unfortunately, on DOS this fails, as config.log is still kept open 30262# by configure, so config.status won't be able to write to it; its 30263# output is simply discarded. So we exec the FD to /dev/null, 30264# effectively closing config.log, so it can be properly (re)opened and 30265# appended to by config.status. When coming back to configure, we 30266# need to make the FD available again. 30267if test "$no_create" != yes; then 30268 ac_cs_success=: 30269 ac_config_status_args= 30270 test "$silent" = yes && 30271 ac_config_status_args="$ac_config_status_args --quiet" 30272 exec 5>/dev/null 30273 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 30274 exec 5>>config.log 30275 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 30276 # would make configure fail if this is the last instruction. 30277 $ac_cs_success || as_fn_exit 1 30278fi 30279if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 30280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 30281$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 30282fi 30283 30284 30285# ==== Print final messages to user ========================================== 30286 30287 30288if test "$svn_have_berkeley_db" = "no6" && test "$enable_bdb6" != "no"; then 30289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We have configured without BDB filesystem support 30290 30291 30292Berkeley DB 6 was found, but not used. Please re-run configure (see 30293./config.nice) with the '--enable-bdb6' flag to use it, 30294or explicitly specify '--disable-bdb6' or '--without-berkeley-db' 30295to silence this warning. 30296 30297Please note that some versions of Berkeley DB 6+ are under the GNU Affero 30298General Public License, version 3: 30299https://oss.oracle.com/pipermail/bdb/2013-June/000056.html 30300 30301The AGPL-3.0 licence may impose special requirements for making available 30302source code of server-side software. The text of the licence is: 30303https://www.gnu.org/licenses/agpl-3.0.html 30304http://opensource.org/licenses/AGPL-3.0 30305 30306The Berkeley DB backend to Subversion is deprecated; see 30307http://subversion.apache.org/docs/release-notes/1.8#bdb-deprecated 30308 30309The Subversion developers have not tested Subversion with Berkeley DB 6 for 30310technical problems or bugs. 30311" >&5 30312$as_echo "$as_me: WARNING: We have configured without BDB filesystem support 30313 30314 30315Berkeley DB 6 was found, but not used. Please re-run configure (see 30316./config.nice) with the '--enable-bdb6' flag to use it, 30317or explicitly specify '--disable-bdb6' or '--without-berkeley-db' 30318to silence this warning. 30319 30320Please note that some versions of Berkeley DB 6+ are under the GNU Affero 30321General Public License, version 3: 30322https://oss.oracle.com/pipermail/bdb/2013-June/000056.html 30323 30324The AGPL-3.0 licence may impose special requirements for making available 30325source code of server-side software. The text of the licence is: 30326https://www.gnu.org/licenses/agpl-3.0.html 30327http://opensource.org/licenses/AGPL-3.0 30328 30329The Berkeley DB backend to Subversion is deprecated; see 30330http://subversion.apache.org/docs/release-notes/1.8#bdb-deprecated 30331 30332The Subversion developers have not tested Subversion with Berkeley DB 6 for 30333technical problems or bugs. 30334" >&2;} 30335fi 30336