configure revision 253734
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for subversion 1.8.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.8.1' 594PACKAGE_STRING='subversion 1.8.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_FS_LIB_LINK 646SVN_FS_LIB_INSTALL_DEPS 647SVN_FS_LIB_DEPS 648SVN_RA_LIB_LINK 649SVN_RA_LIB_INSTALL_DEPS 650SVN_RA_LIB_DEPS 651CTYPESGEN 652SWIG_RB_TEST_VERBOSE 653SWIG_RB_SITE_ARCH_DIR 654SWIG_RB_SITE_LIB_DIR 655SWIG_RB_COMPILE 656SWIG_RB_INCLUDES 657SWIG_RB_LIBS 658SWIG_RB_LINK 659SWIG_PL_INCLUDES 660SWIG_PY_LIBS 661SWIG_PY_LINK 662SWIG_PY_COMPILE 663SWIG_PY_INCLUDES 664SWIG 665RUBY_TEENY 666RUBY_MINOR 667RUBY_MAJOR 668RDOC 669RUBY 670PERL 671JNI_INCLUDES 672JAR 673JAVAH 674JAVADOC 675JAVAC_FLAGS 676JAVAC 677JAVA 678JDK 679PYTHON 680MOD_ACTIVATION 681SVN_ZLIB_LIBS 682SVN_ZLIB_INCLUDES 683libsvn_wc_LDFLAGS 684libsvn_subr_LDFLAGS 685libsvn_repos_LDFLAGS 686libsvn_ra_svn_LDFLAGS 687libsvn_ra_serf_LDFLAGS 688libsvn_ra_local_LDFLAGS 689libsvn_ra_LDFLAGS 690libsvn_fs_util_LDFLAGS 691libsvn_fs_fs_LDFLAGS 692libsvn_fs_base_LDFLAGS 693libsvn_fs_LDFLAGS 694libsvn_diff_LDFLAGS 695libsvn_delta_LDFLAGS 696libsvn_client_LDFLAGS 697libsvn_auth_kwallet_LDFLAGS 698libsvn_auth_gnome_keyring_LDFLAGS 699LIBOBJS 700BDB_TEST_PROGRAMS 701BDB_TEST_DEPS 702INSTALL_RULES 703INSTALL_STATIC_RULES 704BUILD_RULES 705SVN_KWALLET_LIBS 706SVN_KWALLET_INCLUDES 707KDE4_CONFIG 708SVN_MAGIC_LIBS 709SVN_MAGIC_INCLUDES 710MSGFMTFLAGS 711NO_GETTEXT_CODESET 712GETTEXT_CODESET 713XGETTEXT 714MSGMERGE 715MSGFMT 716SVN_GNOME_KEYRING_LIBS 717SVN_GNOME_KEYRING_INCLUDES 718SVN_HAVE_GPG_AGENT 719SVN_SASL_LIBS 720SVN_SASL_INCLUDES 721SVN_DB_LIBS 722SVN_DB_INCLUDES 723SVN_XML_LIBS 724SVN_XML_INCLUDES 725DOXYGEN 726TRANG 727LT_NO_UNDEFINED 728TRANSFORM_LIBTOOL_SCRIPTS 729LT_LDFLAGS 730LT_CFLAGS 731SVN_LIBTOOL 732CXXCPP 733OTOOL64 734OTOOL 735LIPO 736NMEDIT 737DSYMUTIL 738MANIFEST_TOOL 739AWK 740RANLIB 741STRIP 742ac_ct_AR 743AR 744DLLTOOL 745OBJDUMP 746NM 747ac_ct_DUMPBIN 748DUMPBIN 749LD 750FGREP 751LIBTOOL 752SVN_BINDIR 753SVN_SQLITE_LIBS 754SVN_SQLITE_INCLUDES 755INSTALL_APACHE_MODS 756APACHE_LIBEXECDIR 757APACHE_INCLUDES 758APACHE_LDFLAGS 759APXS 760SVN_APR_MEMCACHE_LIBS 761SVN_APR_MEMCACHE_INCLUDES 762SVN_SERF_LIBS 763SVN_SERF_INCLUDES 764PKG_CONFIG 765SVN_LT_SOVERSION 766SVN_APRUTIL_LIBS 767SVN_APRUTIL_CONFIG 768SVN_APRUTIL_INCLUDES 769SVN_APR_SHLIB_PATH_VAR 770SVN_APR_LIBS 771SVN_APR_INCLUDES 772SVN_APR_CONFIG 773MKDIR 774INSTALL_DATA 775INSTALL_SCRIPT 776INSTALL_PROGRAM 777LN_S 778EGREP 779GREP 780target_os 781target_vendor 782target_cpu 783target 784host_os 785host_vendor 786host_cpu 787host 788build_os 789build_vendor 790build_cpu 791build 792SED 793CPP 794CXXMAINTAINERFLAGS 795CXXMODEFLAGS 796ac_ct_CXX 797CXXFLAGS 798CXX 799CMAINTAINERFLAGS 800CMODEFLAGS 801OBJEXT 802EXEEXT 803ac_ct_CC 804CPPFLAGS 805LDFLAGS 806CFLAGS 807CC 808SWIG_LDFLAGS 809canonicalized_srcdir 810abs_builddir 811abs_srcdir 812target_alias 813host_alias 814build_alias 815LIBS 816ECHO_T 817ECHO_N 818ECHO_C 819DEFS 820mandir 821localedir 822libdir 823psdir 824pdfdir 825dvidir 826htmldir 827infodir 828docdir 829oldincludedir 830includedir 831localstatedir 832sharedstatedir 833sysconfdir 834datadir 835datarootdir 836libexecdir 837sbindir 838bindir 839program_transform_name 840prefix 841exec_prefix 842PACKAGE_URL 843PACKAGE_BUGREPORT 844PACKAGE_STRING 845PACKAGE_VERSION 846PACKAGE_TARNAME 847PACKAGE_NAME 848PATH_SEPARATOR 849SHELL' 850ac_subst_files='' 851ac_user_opts=' 852enable_option_checking 853with_apr 854with_apr_util 855with_serf 856with_apr_memcache 857with_apxs 858with_apache_libexecdir 859with_sqlite 860enable_sqlite_compatibility_version 861enable_shared 862enable_static 863with_pic 864enable_fast_install 865with_gnu_ld 866with_sysroot 867enable_libtool_lock 868enable_experimental_libtool 869enable_all_static 870enable_local_library_preloading 871with_trang 872with_doxygen 873with_expat 874with_berkeley_db 875enable_bdb6 876with_sasl 877enable_keychain 878with_gpg_agent 879with_gnome_keyring 880enable_ev2_impl 881enable_nls 882with_libmagic 883with_kwallet 884enable_plaintext_password_storage 885with_openssl 886enable_debug 887enable_optimize 888enable_disallowing_of_undefined_references 889enable_maintainer_mode 890enable_full_version_match 891with_editor 892with_zlib 893enable_mod_activation 894enable_gcov 895enable_gprof 896with_jdk 897with_jikes 898with_swig 899with_ruby_sitedir 900with_ruby_test_verbose 901with_ctypesgen 902enable_runtime_module_search 903enable_javahl 904with_junit 905' 906 ac_precious_vars='build_alias 907host_alias 908target_alias 909CC 910CFLAGS 911LDFLAGS 912LIBS 913CPPFLAGS 914CXX 915CXXFLAGS 916CCC 917CPP 918CXXCPP' 919 920 921# Initialize some variables set by options. 922ac_init_help= 923ac_init_version=false 924ac_unrecognized_opts= 925ac_unrecognized_sep= 926# The variables have the same names as the options, with 927# dashes changed to underlines. 928cache_file=/dev/null 929exec_prefix=NONE 930no_create= 931no_recursion= 932prefix=NONE 933program_prefix=NONE 934program_suffix=NONE 935program_transform_name=s,x,x, 936silent= 937site= 938srcdir= 939verbose= 940x_includes=NONE 941x_libraries=NONE 942 943# Installation directory options. 944# These are left unexpanded so users can "make install exec_prefix=/foo" 945# and all the variables that are supposed to be based on exec_prefix 946# by default will actually change. 947# Use braces instead of parens because sh, perl, etc. also accept them. 948# (The list follows the same order as the GNU Coding Standards.) 949bindir='${exec_prefix}/bin' 950sbindir='${exec_prefix}/sbin' 951libexecdir='${exec_prefix}/libexec' 952datarootdir='${prefix}/share' 953datadir='${datarootdir}' 954sysconfdir='${prefix}/etc' 955sharedstatedir='${prefix}/com' 956localstatedir='${prefix}/var' 957includedir='${prefix}/include' 958oldincludedir='/usr/include' 959docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 960infodir='${datarootdir}/info' 961htmldir='${docdir}' 962dvidir='${docdir}' 963pdfdir='${docdir}' 964psdir='${docdir}' 965libdir='${exec_prefix}/lib' 966localedir='${datarootdir}/locale' 967mandir='${datarootdir}/man' 968 969ac_prev= 970ac_dashdash= 971for ac_option 972do 973 # If the previous option needs an argument, assign it. 974 if test -n "$ac_prev"; then 975 eval $ac_prev=\$ac_option 976 ac_prev= 977 continue 978 fi 979 980 case $ac_option in 981 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 982 *=) ac_optarg= ;; 983 *) ac_optarg=yes ;; 984 esac 985 986 # Accept the important Cygnus configure options, so we can diagnose typos. 987 988 case $ac_dashdash$ac_option in 989 --) 990 ac_dashdash=yes ;; 991 992 -bindir | --bindir | --bindi | --bind | --bin | --bi) 993 ac_prev=bindir ;; 994 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 995 bindir=$ac_optarg ;; 996 997 -build | --build | --buil | --bui | --bu) 998 ac_prev=build_alias ;; 999 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1000 build_alias=$ac_optarg ;; 1001 1002 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1003 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1004 ac_prev=cache_file ;; 1005 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1006 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1007 cache_file=$ac_optarg ;; 1008 1009 --config-cache | -C) 1010 cache_file=config.cache ;; 1011 1012 -datadir | --datadir | --datadi | --datad) 1013 ac_prev=datadir ;; 1014 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1015 datadir=$ac_optarg ;; 1016 1017 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1018 | --dataroo | --dataro | --datar) 1019 ac_prev=datarootdir ;; 1020 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1021 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1022 datarootdir=$ac_optarg ;; 1023 1024 -disable-* | --disable-*) 1025 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1026 # Reject names that are not valid shell variable names. 1027 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1028 as_fn_error $? "invalid feature name: $ac_useropt" 1029 ac_useropt_orig=$ac_useropt 1030 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1031 case $ac_user_opts in 1032 *" 1033"enable_$ac_useropt" 1034"*) ;; 1035 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1036 ac_unrecognized_sep=', ';; 1037 esac 1038 eval enable_$ac_useropt=no ;; 1039 1040 -docdir | --docdir | --docdi | --doc | --do) 1041 ac_prev=docdir ;; 1042 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1043 docdir=$ac_optarg ;; 1044 1045 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1046 ac_prev=dvidir ;; 1047 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1048 dvidir=$ac_optarg ;; 1049 1050 -enable-* | --enable-*) 1051 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1052 # Reject names that are not valid shell variable names. 1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1054 as_fn_error $? "invalid feature name: $ac_useropt" 1055 ac_useropt_orig=$ac_useropt 1056 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1057 case $ac_user_opts in 1058 *" 1059"enable_$ac_useropt" 1060"*) ;; 1061 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1062 ac_unrecognized_sep=', ';; 1063 esac 1064 eval enable_$ac_useropt=\$ac_optarg ;; 1065 1066 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1067 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1068 | --exec | --exe | --ex) 1069 ac_prev=exec_prefix ;; 1070 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1071 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1072 | --exec=* | --exe=* | --ex=*) 1073 exec_prefix=$ac_optarg ;; 1074 1075 -gas | --gas | --ga | --g) 1076 # Obsolete; use --with-gas. 1077 with_gas=yes ;; 1078 1079 -help | --help | --hel | --he | -h) 1080 ac_init_help=long ;; 1081 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1082 ac_init_help=recursive ;; 1083 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1084 ac_init_help=short ;; 1085 1086 -host | --host | --hos | --ho) 1087 ac_prev=host_alias ;; 1088 -host=* | --host=* | --hos=* | --ho=*) 1089 host_alias=$ac_optarg ;; 1090 1091 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1092 ac_prev=htmldir ;; 1093 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1094 | --ht=*) 1095 htmldir=$ac_optarg ;; 1096 1097 -includedir | --includedir | --includedi | --included | --include \ 1098 | --includ | --inclu | --incl | --inc) 1099 ac_prev=includedir ;; 1100 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1101 | --includ=* | --inclu=* | --incl=* | --inc=*) 1102 includedir=$ac_optarg ;; 1103 1104 -infodir | --infodir | --infodi | --infod | --info | --inf) 1105 ac_prev=infodir ;; 1106 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1107 infodir=$ac_optarg ;; 1108 1109 -libdir | --libdir | --libdi | --libd) 1110 ac_prev=libdir ;; 1111 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1112 libdir=$ac_optarg ;; 1113 1114 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1115 | --libexe | --libex | --libe) 1116 ac_prev=libexecdir ;; 1117 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1118 | --libexe=* | --libex=* | --libe=*) 1119 libexecdir=$ac_optarg ;; 1120 1121 -localedir | --localedir | --localedi | --localed | --locale) 1122 ac_prev=localedir ;; 1123 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1124 localedir=$ac_optarg ;; 1125 1126 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1127 | --localstate | --localstat | --localsta | --localst | --locals) 1128 ac_prev=localstatedir ;; 1129 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1130 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1131 localstatedir=$ac_optarg ;; 1132 1133 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1134 ac_prev=mandir ;; 1135 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1136 mandir=$ac_optarg ;; 1137 1138 -nfp | --nfp | --nf) 1139 # Obsolete; use --without-fp. 1140 with_fp=no ;; 1141 1142 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1143 | --no-cr | --no-c | -n) 1144 no_create=yes ;; 1145 1146 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1147 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1148 no_recursion=yes ;; 1149 1150 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1151 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1152 | --oldin | --oldi | --old | --ol | --o) 1153 ac_prev=oldincludedir ;; 1154 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1155 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1156 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1157 oldincludedir=$ac_optarg ;; 1158 1159 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1160 ac_prev=prefix ;; 1161 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1162 prefix=$ac_optarg ;; 1163 1164 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1165 | --program-pre | --program-pr | --program-p) 1166 ac_prev=program_prefix ;; 1167 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1168 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1169 program_prefix=$ac_optarg ;; 1170 1171 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1172 | --program-suf | --program-su | --program-s) 1173 ac_prev=program_suffix ;; 1174 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1175 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1176 program_suffix=$ac_optarg ;; 1177 1178 -program-transform-name | --program-transform-name \ 1179 | --program-transform-nam | --program-transform-na \ 1180 | --program-transform-n | --program-transform- \ 1181 | --program-transform | --program-transfor \ 1182 | --program-transfo | --program-transf \ 1183 | --program-trans | --program-tran \ 1184 | --progr-tra | --program-tr | --program-t) 1185 ac_prev=program_transform_name ;; 1186 -program-transform-name=* | --program-transform-name=* \ 1187 | --program-transform-nam=* | --program-transform-na=* \ 1188 | --program-transform-n=* | --program-transform-=* \ 1189 | --program-transform=* | --program-transfor=* \ 1190 | --program-transfo=* | --program-transf=* \ 1191 | --program-trans=* | --program-tran=* \ 1192 | --progr-tra=* | --program-tr=* | --program-t=*) 1193 program_transform_name=$ac_optarg ;; 1194 1195 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1196 ac_prev=pdfdir ;; 1197 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1198 pdfdir=$ac_optarg ;; 1199 1200 -psdir | --psdir | --psdi | --psd | --ps) 1201 ac_prev=psdir ;; 1202 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1203 psdir=$ac_optarg ;; 1204 1205 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1206 | -silent | --silent | --silen | --sile | --sil) 1207 silent=yes ;; 1208 1209 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1210 ac_prev=sbindir ;; 1211 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1212 | --sbi=* | --sb=*) 1213 sbindir=$ac_optarg ;; 1214 1215 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1216 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1217 | --sharedst | --shareds | --shared | --share | --shar \ 1218 | --sha | --sh) 1219 ac_prev=sharedstatedir ;; 1220 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1221 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1222 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1223 | --sha=* | --sh=*) 1224 sharedstatedir=$ac_optarg ;; 1225 1226 -site | --site | --sit) 1227 ac_prev=site ;; 1228 -site=* | --site=* | --sit=*) 1229 site=$ac_optarg ;; 1230 1231 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1232 ac_prev=srcdir ;; 1233 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1234 srcdir=$ac_optarg ;; 1235 1236 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1237 | --syscon | --sysco | --sysc | --sys | --sy) 1238 ac_prev=sysconfdir ;; 1239 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1240 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1241 sysconfdir=$ac_optarg ;; 1242 1243 -target | --target | --targe | --targ | --tar | --ta | --t) 1244 ac_prev=target_alias ;; 1245 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1246 target_alias=$ac_optarg ;; 1247 1248 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1249 verbose=yes ;; 1250 1251 -version | --version | --versio | --versi | --vers | -V) 1252 ac_init_version=: ;; 1253 1254 -with-* | --with-*) 1255 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1256 # Reject names that are not valid shell variable names. 1257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1258 as_fn_error $? "invalid package name: $ac_useropt" 1259 ac_useropt_orig=$ac_useropt 1260 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1261 case $ac_user_opts in 1262 *" 1263"with_$ac_useropt" 1264"*) ;; 1265 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1266 ac_unrecognized_sep=', ';; 1267 esac 1268 eval with_$ac_useropt=\$ac_optarg ;; 1269 1270 -without-* | --without-*) 1271 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1272 # Reject names that are not valid shell variable names. 1273 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1274 as_fn_error $? "invalid package name: $ac_useropt" 1275 ac_useropt_orig=$ac_useropt 1276 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1277 case $ac_user_opts in 1278 *" 1279"with_$ac_useropt" 1280"*) ;; 1281 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1282 ac_unrecognized_sep=', ';; 1283 esac 1284 eval with_$ac_useropt=no ;; 1285 1286 --x) 1287 # Obsolete; use --with-x. 1288 with_x=yes ;; 1289 1290 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1291 | --x-incl | --x-inc | --x-in | --x-i) 1292 ac_prev=x_includes ;; 1293 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1294 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1295 x_includes=$ac_optarg ;; 1296 1297 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1298 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1299 ac_prev=x_libraries ;; 1300 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1301 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1302 x_libraries=$ac_optarg ;; 1303 1304 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1305Try \`$0 --help' for more information" 1306 ;; 1307 1308 *=*) 1309 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1310 # Reject names that are not valid shell variable names. 1311 case $ac_envvar in #( 1312 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1313 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1314 esac 1315 eval $ac_envvar=\$ac_optarg 1316 export $ac_envvar ;; 1317 1318 *) 1319 # FIXME: should be removed in autoconf 3.0. 1320 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1321 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1322 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1323 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1324 ;; 1325 1326 esac 1327done 1328 1329if test -n "$ac_prev"; then 1330 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1331 as_fn_error $? "missing argument to $ac_option" 1332fi 1333 1334if test -n "$ac_unrecognized_opts"; then 1335 case $enable_option_checking in 1336 no) ;; 1337 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1338 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1339 esac 1340fi 1341 1342# Check all directory arguments for consistency. 1343for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1344 datadir sysconfdir sharedstatedir localstatedir includedir \ 1345 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1346 libdir localedir mandir 1347do 1348 eval ac_val=\$$ac_var 1349 # Remove trailing slashes. 1350 case $ac_val in 1351 */ ) 1352 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1353 eval $ac_var=\$ac_val;; 1354 esac 1355 # Be sure to have absolute directory names. 1356 case $ac_val in 1357 [\\/$]* | ?:[\\/]* ) continue;; 1358 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1359 esac 1360 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1361done 1362 1363# There might be people who depend on the old broken behavior: `$host' 1364# used to hold the argument of --host etc. 1365# FIXME: To remove some day. 1366build=$build_alias 1367host=$host_alias 1368target=$target_alias 1369 1370# FIXME: To remove some day. 1371if test "x$host_alias" != x; then 1372 if test "x$build_alias" = x; then 1373 cross_compiling=maybe 1374 elif test "x$build_alias" != "x$host_alias"; then 1375 cross_compiling=yes 1376 fi 1377fi 1378 1379ac_tool_prefix= 1380test -n "$host_alias" && ac_tool_prefix=$host_alias- 1381 1382test "$silent" = yes && exec 6>/dev/null 1383 1384 1385ac_pwd=`pwd` && test -n "$ac_pwd" && 1386ac_ls_di=`ls -di .` && 1387ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1388 as_fn_error $? "working directory cannot be determined" 1389test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1390 as_fn_error $? "pwd does not report name of working directory" 1391 1392 1393# Find the source files, if location was not specified. 1394if test -z "$srcdir"; then 1395 ac_srcdir_defaulted=yes 1396 # Try the directory containing this script, then the parent directory. 1397 ac_confdir=`$as_dirname -- "$as_myself" || 1398$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1399 X"$as_myself" : 'X\(//\)[^/]' \| \ 1400 X"$as_myself" : 'X\(//\)$' \| \ 1401 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1402$as_echo X"$as_myself" | 1403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1404 s//\1/ 1405 q 1406 } 1407 /^X\(\/\/\)[^/].*/{ 1408 s//\1/ 1409 q 1410 } 1411 /^X\(\/\/\)$/{ 1412 s//\1/ 1413 q 1414 } 1415 /^X\(\/\).*/{ 1416 s//\1/ 1417 q 1418 } 1419 s/.*/./; q'` 1420 srcdir=$ac_confdir 1421 if test ! -r "$srcdir/$ac_unique_file"; then 1422 srcdir=.. 1423 fi 1424else 1425 ac_srcdir_defaulted=no 1426fi 1427if test ! -r "$srcdir/$ac_unique_file"; then 1428 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1429 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1430fi 1431ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1432ac_abs_confdir=`( 1433 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1434 pwd)` 1435# When building in place, set srcdir=. 1436if test "$ac_abs_confdir" = "$ac_pwd"; then 1437 srcdir=. 1438fi 1439# Remove unnecessary trailing slashes from srcdir. 1440# Double slashes in file names in object file debugging info 1441# mess up M-x gdb in Emacs. 1442case $srcdir in 1443*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1444esac 1445for ac_var in $ac_precious_vars; do 1446 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1447 eval ac_env_${ac_var}_value=\$${ac_var} 1448 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1449 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1450done 1451 1452# 1453# Report the --help message. 1454# 1455if test "$ac_init_help" = "long"; then 1456 # Omit some internal or obsolete options to make the list less imposing. 1457 # This message is too long to be a string in the A/UX 3.1 sh. 1458 cat <<_ACEOF 1459\`configure' configures subversion 1.8.1 to adapt to many kinds of systems. 1460 1461Usage: $0 [OPTION]... [VAR=VALUE]... 1462 1463To assign environment variables (e.g., CC, CFLAGS...), specify them as 1464VAR=VALUE. See below for descriptions of some of the useful variables. 1465 1466Defaults for the options are specified in brackets. 1467 1468Configuration: 1469 -h, --help display this help and exit 1470 --help=short display options specific to this package 1471 --help=recursive display the short help of all the included packages 1472 -V, --version display version information and exit 1473 -q, --quiet, --silent do not print \`checking ...' messages 1474 --cache-file=FILE cache test results in FILE [disabled] 1475 -C, --config-cache alias for \`--cache-file=config.cache' 1476 -n, --no-create do not create output files 1477 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1478 1479Installation directories: 1480 --prefix=PREFIX install architecture-independent files in PREFIX 1481 [$ac_default_prefix] 1482 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1483 [PREFIX] 1484 1485By default, \`make install' will install all the files in 1486\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1487an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1488for instance \`--prefix=\$HOME'. 1489 1490For better control, use the options below. 1491 1492Fine tuning of the installation directories: 1493 --bindir=DIR user executables [EPREFIX/bin] 1494 --sbindir=DIR system admin executables [EPREFIX/sbin] 1495 --libexecdir=DIR program executables [EPREFIX/libexec] 1496 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1497 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1498 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1499 --libdir=DIR object code libraries [EPREFIX/lib] 1500 --includedir=DIR C header files [PREFIX/include] 1501 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1502 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1503 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1504 --infodir=DIR info documentation [DATAROOTDIR/info] 1505 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1506 --mandir=DIR man documentation [DATAROOTDIR/man] 1507 --docdir=DIR documentation root [DATAROOTDIR/doc/subversion] 1508 --htmldir=DIR html documentation [DOCDIR] 1509 --dvidir=DIR dvi documentation [DOCDIR] 1510 --pdfdir=DIR pdf documentation [DOCDIR] 1511 --psdir=DIR ps documentation [DOCDIR] 1512_ACEOF 1513 1514 cat <<\_ACEOF 1515 1516System types: 1517 --build=BUILD configure for building on BUILD [guessed] 1518 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1519 --target=TARGET configure for building compilers for TARGET [HOST] 1520_ACEOF 1521fi 1522 1523if test -n "$ac_init_help"; then 1524 case $ac_init_help in 1525 short | recursive ) echo "Configuration of subversion 1.8.1:";; 1526 esac 1527 cat <<\_ACEOF 1528 1529Optional Features: 1530 --disable-option-checking ignore unrecognized --enable/--with options 1531 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1532 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1533 --enable-sqlite-compatibility-version=X.Y.Z 1534 Allow binary to run against SQLite as old as ARG 1535 --enable-shared[=PKGS] build shared libraries [default=yes] 1536 --enable-static[=PKGS] build static libraries [default=yes] 1537 --enable-fast-install[=PKGS] 1538 optimize for fast installation [default=yes] 1539 --disable-libtool-lock avoid locking (might break parallel builds) 1540 --enable-experimental-libtool 1541 Use APR's libtool 1542 --enable-static Build static libraries 1543 --enable-shared Build shared libraries 1544 --enable-all-static Build completely static (standalone) binaries. 1545 --enable-local-library-preloading 1546 Enable preloading of locally built libraries in 1547 locally built executables. This may be necessary for 1548 testing prior to installation on some platforms. It 1549 does not work on some platforms (Darwin, OpenBSD, 1550 ...). 1551 --enable-bdb6 Allow building against BDB 6+. See 1552 --with-berkeley-db for specifying the location of 1553 the Berkeley DB installation. Using BDB 6 will fail 1554 if this option is not used. 1555 --disable-keychain Disable use of Mac OS KeyChain for auth credentials 1556 --enable-ev2-impl Use Ev2 implementations, where available 1557 [EXPERIMENTAL] 1558 --disable-nls Disable gettext functionality 1559 --disable-plaintext-password-storage 1560 Disable on-disk caching of plaintext passwords and 1561 passphrases. (Leaving this functionality enabled 1562 will not force Subversion to store passwords in 1563 plaintext, but does permit users to explicitly allow 1564 that behavior via runtime configuration.) 1565 --enable-debug Turn on debugging 1566 --enable-optimize Turn on optimizations 1567 --enable-disallowing-of-undefined-references 1568 Use -Wl,--no-undefined flag during linking of some 1569 libraries to disallow undefined references 1570 --enable-maintainer-mode 1571 Turn on debugging and very strict compile-time 1572 warnings 1573 --disable-full-version-match 1574 Disable the full version match rules when checking 1575 Subversion library compatibility. 1576 --enable-mod-activation Enable mod_dav_svn in httpd.conf 1577 --enable-gcov Turn on gcov coverage testing (GCC only). 1578 --enable-gprof Produce gprof profiling data in 'gmon.out' (GCC 1579 only). 1580 --enable-runtime-module-search 1581 Turn on dynamic loading of RA/FS libraries including 1582 third-party FS libraries 1583 --enable-javahl Enable compilation of Java high-level bindings 1584 (requires C++) 1585 1586Optional Packages: 1587 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1588 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1589 --with-apr=PATH prefix for installed APR, path to APR build tree, 1590 or the full path to apr-config 1591 --with-apr-util=PATH prefix for installed APU, path to APU build tree, 1592 or the full path to apu-config 1593 --with-serf=PREFIX Serf HTTP client library (enabled by default if 1594 found) 1595 --with-apr_memcache=PREFIX 1596 Standalone apr_memcache client library 1597 --with-apxs[=FILE] Build shared Apache modules. FILE is the optional 1598 pathname to the Apache apxs tool; defaults to 1599 "apxs". 1600 --with-apache-libexecdir[=PATH] 1601 Install Apache modules to Apache's configured 1602 modules directory instead of LIBEXECDIR; if PATH is 1603 given, install to PATH. 1604 --with-sqlite=PREFIX Use installed SQLite library or amalgamation file. 1605 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1606 both] 1607 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1608 --with-sysroot=DIR Search for dependent libraries within DIR 1609 (or the compiler's sysroot if not specified). 1610 --with-trang=PATH Specify the command to run the trang schema 1611 converter 1612 --with-doxygen=PATH Specify the command to run doxygen 1613 --with-expat=INCLUDES:LIB_SEARCH_DIRS:LIBS 1614 Specify location of Expat 1615 --with-berkeley-db[=HEADER:INCLUDES:LIB_SEARCH_DIRS:LIBS] 1616 The Subversion Berkeley DB based filesystem library 1617 requires Berkeley DB $db_version or $db_alt_version. 1618 If you specify `--without-berkeley-db', that library 1619 will not be built. If you omit the argument of this 1620 option completely, the configure script will use 1621 Berkeley DB used by APR-UTIL. 1622 --with-sasl=PATH Compile with libsasl2 in PATH 1623 --without-gpg-agent Disable support for GPG-Agent 1624 --with-gnome-keyring Enable use of GNOME Keyring for auth credentials 1625 (enabled by default if found) 1626 --with-libmagic=PREFIX libmagic filetype detection library 1627 --with-kwallet[=PATH] Enable use of KWallet (KDE 4) for auth credentials 1628 --with-openssl This option does NOT affect the Subversion build 1629 process in any way. It tells an integrated Serf HTTP 1630 client library build process where to locate the 1631 OpenSSL library when (and only when) building Serf 1632 as an integrated part of the Subversion build 1633 process. When linking to a previously installed 1634 version of Serf instead, you do not need to use this 1635 option. 1636 --with-editor=PATH Specify a default editor for the subversion client. 1637 --with-zlib=PREFIX zlib compression library 1638 --with-jdk=PATH Try to use 'PATH/include' to find the JNI headers. 1639 If PATH is not specified, look for a Java 1640 Development Kit at JAVA_HOME. 1641 --with-jikes=PATH Specify the path to a jikes binary to use it as your 1642 Java compiler. The default is to look for jikes 1643 (PATH optional). This behavior can be switched off 1644 by supplying 'no'. 1645 --with-swig=PATH Try to use 'PATH/bin/swig' to build the swig 1646 bindings. If PATH is not specified, look for a 1647 'swig' binary in your PATH. 1648 --with-ruby-sitedir=SITEDIR 1649 install Ruby bindings in SITEDIR (default is same as 1650 ruby's one) 1651 --with-ruby-test-verbose=LEVEL 1652 how to use output level for Ruby bindings tests 1653 (default is normal) 1654 --with-ctypesgen=PATH Specify the path to ctypesgen. This can either be 1655 the full path to a ctypesgen installation, the full 1656 path to a ctypesgen source tree or the full path to 1657 ctypesgen.py. 1658 --with-junit=PATH Specify a path to the junit JAR file. 1659 1660Some influential environment variables: 1661 CC C compiler command 1662 CFLAGS C compiler flags 1663 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1664 nonstandard directory <lib dir> 1665 LIBS libraries to pass to the linker, e.g. -l<library> 1666 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1667 you have headers in a nonstandard directory <include dir> 1668 CXX C++ compiler command 1669 CXXFLAGS C++ compiler flags 1670 CPP C preprocessor 1671 CXXCPP C++ preprocessor 1672 1673Use these variables to override the choices made by `configure' or to help 1674it to find libraries and programs with nonstandard names/locations. 1675 1676Report bugs to <http://subversion.apache.org/>. 1677_ACEOF 1678ac_status=$? 1679fi 1680 1681if test "$ac_init_help" = "recursive"; then 1682 # If there are subdirs, report their specific --help. 1683 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1684 test -d "$ac_dir" || 1685 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1686 continue 1687 ac_builddir=. 1688 1689case "$ac_dir" in 1690.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1691*) 1692 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1693 # A ".." for each directory in $ac_dir_suffix. 1694 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1695 case $ac_top_builddir_sub in 1696 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1697 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1698 esac ;; 1699esac 1700ac_abs_top_builddir=$ac_pwd 1701ac_abs_builddir=$ac_pwd$ac_dir_suffix 1702# for backward compatibility: 1703ac_top_builddir=$ac_top_build_prefix 1704 1705case $srcdir in 1706 .) # We are building in place. 1707 ac_srcdir=. 1708 ac_top_srcdir=$ac_top_builddir_sub 1709 ac_abs_top_srcdir=$ac_pwd ;; 1710 [\\/]* | ?:[\\/]* ) # Absolute name. 1711 ac_srcdir=$srcdir$ac_dir_suffix; 1712 ac_top_srcdir=$srcdir 1713 ac_abs_top_srcdir=$srcdir ;; 1714 *) # Relative name. 1715 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1716 ac_top_srcdir=$ac_top_build_prefix$srcdir 1717 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1718esac 1719ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1720 1721 cd "$ac_dir" || { ac_status=$?; continue; } 1722 # Check for guested configure. 1723 if test -f "$ac_srcdir/configure.gnu"; then 1724 echo && 1725 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1726 elif test -f "$ac_srcdir/configure"; then 1727 echo && 1728 $SHELL "$ac_srcdir/configure" --help=recursive 1729 else 1730 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1731 fi || ac_status=$? 1732 cd "$ac_pwd" || { ac_status=$?; break; } 1733 done 1734fi 1735 1736test -n "$ac_init_help" && exit $ac_status 1737if $ac_init_version; then 1738 cat <<\_ACEOF 1739subversion configure 1.8.1 1740generated by GNU Autoconf 2.69 1741 1742Copyright (C) 2012 Free Software Foundation, Inc. 1743This configure script is free software; the Free Software Foundation 1744gives unlimited permission to copy, distribute and modify it. 1745_ACEOF 1746 exit 1747fi 1748 1749## ------------------------ ## 1750## Autoconf initialization. ## 1751## ------------------------ ## 1752 1753# ac_fn_c_try_compile LINENO 1754# -------------------------- 1755# Try to compile conftest.$ac_ext, and return whether this succeeded. 1756ac_fn_c_try_compile () 1757{ 1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1759 rm -f conftest.$ac_objext 1760 if { { ac_try="$ac_compile" 1761case "(($ac_try" in 1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1763 *) ac_try_echo=$ac_try;; 1764esac 1765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1766$as_echo "$ac_try_echo"; } >&5 1767 (eval "$ac_compile") 2>conftest.err 1768 ac_status=$? 1769 if test -s conftest.err; then 1770 grep -v '^ *+' conftest.err >conftest.er1 1771 cat conftest.er1 >&5 1772 mv -f conftest.er1 conftest.err 1773 fi 1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1775 test $ac_status = 0; } && { 1776 test -z "$ac_c_werror_flag" || 1777 test ! -s conftest.err 1778 } && test -s conftest.$ac_objext; then : 1779 ac_retval=0 1780else 1781 $as_echo "$as_me: failed program was:" >&5 1782sed 's/^/| /' conftest.$ac_ext >&5 1783 1784 ac_retval=1 1785fi 1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1787 as_fn_set_status $ac_retval 1788 1789} # ac_fn_c_try_compile 1790 1791# ac_fn_cxx_try_compile LINENO 1792# ---------------------------- 1793# Try to compile conftest.$ac_ext, and return whether this succeeded. 1794ac_fn_cxx_try_compile () 1795{ 1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1797 rm -f conftest.$ac_objext 1798 if { { ac_try="$ac_compile" 1799case "(($ac_try" in 1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1801 *) ac_try_echo=$ac_try;; 1802esac 1803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1804$as_echo "$ac_try_echo"; } >&5 1805 (eval "$ac_compile") 2>conftest.err 1806 ac_status=$? 1807 if test -s conftest.err; then 1808 grep -v '^ *+' conftest.err >conftest.er1 1809 cat conftest.er1 >&5 1810 mv -f conftest.er1 conftest.err 1811 fi 1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1813 test $ac_status = 0; } && { 1814 test -z "$ac_cxx_werror_flag" || 1815 test ! -s conftest.err 1816 } && test -s conftest.$ac_objext; then : 1817 ac_retval=0 1818else 1819 $as_echo "$as_me: failed program was:" >&5 1820sed 's/^/| /' conftest.$ac_ext >&5 1821 1822 ac_retval=1 1823fi 1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1825 as_fn_set_status $ac_retval 1826 1827} # ac_fn_cxx_try_compile 1828 1829# ac_fn_c_try_cpp LINENO 1830# ---------------------- 1831# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1832ac_fn_c_try_cpp () 1833{ 1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1835 if { { ac_try="$ac_cpp conftest.$ac_ext" 1836case "(($ac_try" in 1837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1838 *) ac_try_echo=$ac_try;; 1839esac 1840eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1841$as_echo "$ac_try_echo"; } >&5 1842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1843 ac_status=$? 1844 if test -s conftest.err; then 1845 grep -v '^ *+' conftest.err >conftest.er1 1846 cat conftest.er1 >&5 1847 mv -f conftest.er1 conftest.err 1848 fi 1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1850 test $ac_status = 0; } > conftest.i && { 1851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1852 test ! -s conftest.err 1853 }; then : 1854 ac_retval=0 1855else 1856 $as_echo "$as_me: failed program was:" >&5 1857sed 's/^/| /' conftest.$ac_ext >&5 1858 1859 ac_retval=1 1860fi 1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1862 as_fn_set_status $ac_retval 1863 1864} # ac_fn_c_try_cpp 1865 1866# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1867# ------------------------------------------------------- 1868# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1869# the include files in INCLUDES and setting the cache variable VAR 1870# accordingly. 1871ac_fn_c_check_header_mongrel () 1872{ 1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1874 if eval \${$3+:} false; then : 1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1876$as_echo_n "checking for $2... " >&6; } 1877if eval \${$3+:} false; then : 1878 $as_echo_n "(cached) " >&6 1879fi 1880eval ac_res=\$$3 1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1882$as_echo "$ac_res" >&6; } 1883else 1884 # Is the header compilable? 1885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1886$as_echo_n "checking $2 usability... " >&6; } 1887cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1888/* end confdefs.h. */ 1889$4 1890#include <$2> 1891_ACEOF 1892if ac_fn_c_try_compile "$LINENO"; then : 1893 ac_header_compiler=yes 1894else 1895 ac_header_compiler=no 1896fi 1897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1899$as_echo "$ac_header_compiler" >&6; } 1900 1901# Is the header present? 1902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1903$as_echo_n "checking $2 presence... " >&6; } 1904cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1905/* end confdefs.h. */ 1906#include <$2> 1907_ACEOF 1908if ac_fn_c_try_cpp "$LINENO"; then : 1909 ac_header_preproc=yes 1910else 1911 ac_header_preproc=no 1912fi 1913rm -f conftest.err conftest.i conftest.$ac_ext 1914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1915$as_echo "$ac_header_preproc" >&6; } 1916 1917# So? What about this header? 1918case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1919 yes:no: ) 1920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1921$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1923$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1924 ;; 1925 no:yes:* ) 1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1927$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1929$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1931$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1933$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1935$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1936( $as_echo "## -------------------------------------------- ## 1937## Report this to http://subversion.apache.org/ ## 1938## -------------------------------------------- ##" 1939 ) | sed "s/^/$as_me: WARNING: /" >&2 1940 ;; 1941esac 1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1943$as_echo_n "checking for $2... " >&6; } 1944if eval \${$3+:} false; then : 1945 $as_echo_n "(cached) " >&6 1946else 1947 eval "$3=\$ac_header_compiler" 1948fi 1949eval ac_res=\$$3 1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1951$as_echo "$ac_res" >&6; } 1952fi 1953 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1954 1955} # ac_fn_c_check_header_mongrel 1956 1957# ac_fn_c_try_run LINENO 1958# ---------------------- 1959# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1960# that executables *can* be run. 1961ac_fn_c_try_run () 1962{ 1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1964 if { { ac_try="$ac_link" 1965case "(($ac_try" in 1966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1967 *) ac_try_echo=$ac_try;; 1968esac 1969eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1970$as_echo "$ac_try_echo"; } >&5 1971 (eval "$ac_link") 2>&5 1972 ac_status=$? 1973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1974 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1975 { { case "(($ac_try" in 1976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1977 *) ac_try_echo=$ac_try;; 1978esac 1979eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1980$as_echo "$ac_try_echo"; } >&5 1981 (eval "$ac_try") 2>&5 1982 ac_status=$? 1983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1984 test $ac_status = 0; }; }; then : 1985 ac_retval=0 1986else 1987 $as_echo "$as_me: program exited with status $ac_status" >&5 1988 $as_echo "$as_me: failed program was:" >&5 1989sed 's/^/| /' conftest.$ac_ext >&5 1990 1991 ac_retval=$ac_status 1992fi 1993 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1995 as_fn_set_status $ac_retval 1996 1997} # ac_fn_c_try_run 1998 1999# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2000# ------------------------------------------------------- 2001# Tests whether HEADER exists and can be compiled using the include files in 2002# INCLUDES, setting the cache variable VAR accordingly. 2003ac_fn_c_check_header_compile () 2004{ 2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2007$as_echo_n "checking for $2... " >&6; } 2008if eval \${$3+:} false; then : 2009 $as_echo_n "(cached) " >&6 2010else 2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2012/* end confdefs.h. */ 2013$4 2014#include <$2> 2015_ACEOF 2016if ac_fn_c_try_compile "$LINENO"; then : 2017 eval "$3=yes" 2018else 2019 eval "$3=no" 2020fi 2021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2022fi 2023eval ac_res=\$$3 2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2025$as_echo "$ac_res" >&6; } 2026 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2027 2028} # ac_fn_c_check_header_compile 2029 2030# ac_fn_c_try_link LINENO 2031# ----------------------- 2032# Try to link conftest.$ac_ext, and return whether this succeeded. 2033ac_fn_c_try_link () 2034{ 2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2036 rm -f conftest.$ac_objext conftest$ac_exeext 2037 if { { ac_try="$ac_link" 2038case "(($ac_try" in 2039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2040 *) ac_try_echo=$ac_try;; 2041esac 2042eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2043$as_echo "$ac_try_echo"; } >&5 2044 (eval "$ac_link") 2>conftest.err 2045 ac_status=$? 2046 if test -s conftest.err; then 2047 grep -v '^ *+' conftest.err >conftest.er1 2048 cat conftest.er1 >&5 2049 mv -f conftest.er1 conftest.err 2050 fi 2051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2052 test $ac_status = 0; } && { 2053 test -z "$ac_c_werror_flag" || 2054 test ! -s conftest.err 2055 } && test -s conftest$ac_exeext && { 2056 test "$cross_compiling" = yes || 2057 test -x conftest$ac_exeext 2058 }; then : 2059 ac_retval=0 2060else 2061 $as_echo "$as_me: failed program was:" >&5 2062sed 's/^/| /' conftest.$ac_ext >&5 2063 2064 ac_retval=1 2065fi 2066 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2067 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2068 # interfere with the next link command; also delete a directory that is 2069 # left behind by Apple's compiler. We do this before executing the actions. 2070 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2071 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2072 as_fn_set_status $ac_retval 2073 2074} # ac_fn_c_try_link 2075 2076# ac_fn_c_check_func LINENO FUNC VAR 2077# ---------------------------------- 2078# Tests whether FUNC exists, setting the cache variable VAR accordingly 2079ac_fn_c_check_func () 2080{ 2081 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2083$as_echo_n "checking for $2... " >&6; } 2084if eval \${$3+:} false; then : 2085 $as_echo_n "(cached) " >&6 2086else 2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2088/* end confdefs.h. */ 2089/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2090 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2091#define $2 innocuous_$2 2092 2093/* System header to define __stub macros and hopefully few prototypes, 2094 which can conflict with char $2 (); below. 2095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2096 <limits.h> exists even on freestanding compilers. */ 2097 2098#ifdef __STDC__ 2099# include <limits.h> 2100#else 2101# include <assert.h> 2102#endif 2103 2104#undef $2 2105 2106/* Override any GCC internal prototype to avoid an error. 2107 Use char because int might match the return type of a GCC 2108 builtin and then its argument prototype would still apply. */ 2109#ifdef __cplusplus 2110extern "C" 2111#endif 2112char $2 (); 2113/* The GNU C library defines this for functions which it implements 2114 to always fail with ENOSYS. Some functions are actually named 2115 something starting with __ and the normal name is an alias. */ 2116#if defined __stub_$2 || defined __stub___$2 2117choke me 2118#endif 2119 2120int 2121main () 2122{ 2123return $2 (); 2124 ; 2125 return 0; 2126} 2127_ACEOF 2128if ac_fn_c_try_link "$LINENO"; then : 2129 eval "$3=yes" 2130else 2131 eval "$3=no" 2132fi 2133rm -f core conftest.err conftest.$ac_objext \ 2134 conftest$ac_exeext conftest.$ac_ext 2135fi 2136eval ac_res=\$$3 2137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2138$as_echo "$ac_res" >&6; } 2139 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2140 2141} # ac_fn_c_check_func 2142 2143# ac_fn_cxx_try_cpp LINENO 2144# ------------------------ 2145# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2146ac_fn_cxx_try_cpp () 2147{ 2148 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2149 if { { ac_try="$ac_cpp conftest.$ac_ext" 2150case "(($ac_try" in 2151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2152 *) ac_try_echo=$ac_try;; 2153esac 2154eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2155$as_echo "$ac_try_echo"; } >&5 2156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2157 ac_status=$? 2158 if test -s conftest.err; then 2159 grep -v '^ *+' conftest.err >conftest.er1 2160 cat conftest.er1 >&5 2161 mv -f conftest.er1 conftest.err 2162 fi 2163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2164 test $ac_status = 0; } > conftest.i && { 2165 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2166 test ! -s conftest.err 2167 }; then : 2168 ac_retval=0 2169else 2170 $as_echo "$as_me: failed program was:" >&5 2171sed 's/^/| /' conftest.$ac_ext >&5 2172 2173 ac_retval=1 2174fi 2175 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2176 as_fn_set_status $ac_retval 2177 2178} # ac_fn_cxx_try_cpp 2179 2180# ac_fn_cxx_try_link LINENO 2181# ------------------------- 2182# Try to link conftest.$ac_ext, and return whether this succeeded. 2183ac_fn_cxx_try_link () 2184{ 2185 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2186 rm -f conftest.$ac_objext conftest$ac_exeext 2187 if { { ac_try="$ac_link" 2188case "(($ac_try" in 2189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2190 *) ac_try_echo=$ac_try;; 2191esac 2192eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2193$as_echo "$ac_try_echo"; } >&5 2194 (eval "$ac_link") 2>conftest.err 2195 ac_status=$? 2196 if test -s conftest.err; then 2197 grep -v '^ *+' conftest.err >conftest.er1 2198 cat conftest.er1 >&5 2199 mv -f conftest.er1 conftest.err 2200 fi 2201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2202 test $ac_status = 0; } && { 2203 test -z "$ac_cxx_werror_flag" || 2204 test ! -s conftest.err 2205 } && test -s conftest$ac_exeext && { 2206 test "$cross_compiling" = yes || 2207 test -x conftest$ac_exeext 2208 }; then : 2209 ac_retval=0 2210else 2211 $as_echo "$as_me: failed program was:" >&5 2212sed 's/^/| /' conftest.$ac_ext >&5 2213 2214 ac_retval=1 2215fi 2216 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2217 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2218 # interfere with the next link command; also delete a directory that is 2219 # left behind by Apple's compiler. We do this before executing the actions. 2220 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2221 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2222 as_fn_set_status $ac_retval 2223 2224} # ac_fn_cxx_try_link 2225 2226# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2227# ------------------------------------------- 2228# Tests whether TYPE exists after having included INCLUDES, setting cache 2229# variable VAR accordingly. 2230ac_fn_c_check_type () 2231{ 2232 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2234$as_echo_n "checking for $2... " >&6; } 2235if eval \${$3+:} false; then : 2236 $as_echo_n "(cached) " >&6 2237else 2238 eval "$3=no" 2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2240/* end confdefs.h. */ 2241$4 2242int 2243main () 2244{ 2245if (sizeof ($2)) 2246 return 0; 2247 ; 2248 return 0; 2249} 2250_ACEOF 2251if ac_fn_c_try_compile "$LINENO"; then : 2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2253/* end confdefs.h. */ 2254$4 2255int 2256main () 2257{ 2258if (sizeof (($2))) 2259 return 0; 2260 ; 2261 return 0; 2262} 2263_ACEOF 2264if ac_fn_c_try_compile "$LINENO"; then : 2265 2266else 2267 eval "$3=yes" 2268fi 2269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2270fi 2271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2272fi 2273eval ac_res=\$$3 2274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2275$as_echo "$ac_res" >&6; } 2276 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2277 2278} # ac_fn_c_check_type 2279cat >config.log <<_ACEOF 2280This file contains any messages produced by compilers while 2281running configure, to aid debugging if configure makes a mistake. 2282 2283It was created by subversion $as_me 1.8.1, which was 2284generated by GNU Autoconf 2.69. Invocation command line was 2285 2286 $ $0 $@ 2287 2288_ACEOF 2289exec 5>>config.log 2290{ 2291cat <<_ASUNAME 2292## --------- ## 2293## Platform. ## 2294## --------- ## 2295 2296hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2297uname -m = `(uname -m) 2>/dev/null || echo unknown` 2298uname -r = `(uname -r) 2>/dev/null || echo unknown` 2299uname -s = `(uname -s) 2>/dev/null || echo unknown` 2300uname -v = `(uname -v) 2>/dev/null || echo unknown` 2301 2302/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2303/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2304 2305/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2306/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2307/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2308/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2309/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2310/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2311/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2312 2313_ASUNAME 2314 2315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2316for as_dir in $PATH 2317do 2318 IFS=$as_save_IFS 2319 test -z "$as_dir" && as_dir=. 2320 $as_echo "PATH: $as_dir" 2321 done 2322IFS=$as_save_IFS 2323 2324} >&5 2325 2326cat >&5 <<_ACEOF 2327 2328 2329## ----------- ## 2330## Core tests. ## 2331## ----------- ## 2332 2333_ACEOF 2334 2335 2336# Keep a trace of the command line. 2337# Strip out --no-create and --no-recursion so they do not pile up. 2338# Strip out --silent because we don't want to record it for future runs. 2339# Also quote any args containing shell meta-characters. 2340# Make two passes to allow for proper duplicate-argument suppression. 2341ac_configure_args= 2342ac_configure_args0= 2343ac_configure_args1= 2344ac_must_keep_next=false 2345for ac_pass in 1 2 2346do 2347 for ac_arg 2348 do 2349 case $ac_arg in 2350 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2351 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2352 | -silent | --silent | --silen | --sile | --sil) 2353 continue ;; 2354 *\'*) 2355 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2356 esac 2357 case $ac_pass in 2358 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2359 2) 2360 as_fn_append ac_configure_args1 " '$ac_arg'" 2361 if test $ac_must_keep_next = true; then 2362 ac_must_keep_next=false # Got value, back to normal. 2363 else 2364 case $ac_arg in 2365 *=* | --config-cache | -C | -disable-* | --disable-* \ 2366 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2367 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2368 | -with-* | --with-* | -without-* | --without-* | --x) 2369 case "$ac_configure_args0 " in 2370 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2371 esac 2372 ;; 2373 -* ) ac_must_keep_next=true ;; 2374 esac 2375 fi 2376 as_fn_append ac_configure_args " '$ac_arg'" 2377 ;; 2378 esac 2379 done 2380done 2381{ ac_configure_args0=; unset ac_configure_args0;} 2382{ ac_configure_args1=; unset ac_configure_args1;} 2383 2384# When interrupted or exit'd, cleanup temporary files, and complete 2385# config.log. We remove comments because anyway the quotes in there 2386# would cause problems or look ugly. 2387# WARNING: Use '\'' to represent an apostrophe within the trap. 2388# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2389trap 'exit_status=$? 2390 # Save into config.log some information that might help in debugging. 2391 { 2392 echo 2393 2394 $as_echo "## ---------------- ## 2395## Cache variables. ## 2396## ---------------- ##" 2397 echo 2398 # The following way of writing the cache mishandles newlines in values, 2399( 2400 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2401 eval ac_val=\$$ac_var 2402 case $ac_val in #( 2403 *${as_nl}*) 2404 case $ac_var in #( 2405 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2406$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2407 esac 2408 case $ac_var in #( 2409 _ | IFS | as_nl) ;; #( 2410 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2411 *) { eval $ac_var=; unset $ac_var;} ;; 2412 esac ;; 2413 esac 2414 done 2415 (set) 2>&1 | 2416 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2417 *${as_nl}ac_space=\ *) 2418 sed -n \ 2419 "s/'\''/'\''\\\\'\'''\''/g; 2420 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2421 ;; #( 2422 *) 2423 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2424 ;; 2425 esac | 2426 sort 2427) 2428 echo 2429 2430 $as_echo "## ----------------- ## 2431## Output variables. ## 2432## ----------------- ##" 2433 echo 2434 for ac_var in $ac_subst_vars 2435 do 2436 eval ac_val=\$$ac_var 2437 case $ac_val in 2438 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2439 esac 2440 $as_echo "$ac_var='\''$ac_val'\''" 2441 done | sort 2442 echo 2443 2444 if test -n "$ac_subst_files"; then 2445 $as_echo "## ------------------- ## 2446## File substitutions. ## 2447## ------------------- ##" 2448 echo 2449 for ac_var in $ac_subst_files 2450 do 2451 eval ac_val=\$$ac_var 2452 case $ac_val in 2453 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2454 esac 2455 $as_echo "$ac_var='\''$ac_val'\''" 2456 done | sort 2457 echo 2458 fi 2459 2460 if test -s confdefs.h; then 2461 $as_echo "## ----------- ## 2462## confdefs.h. ## 2463## ----------- ##" 2464 echo 2465 cat confdefs.h 2466 echo 2467 fi 2468 test "$ac_signal" != 0 && 2469 $as_echo "$as_me: caught signal $ac_signal" 2470 $as_echo "$as_me: exit $exit_status" 2471 } >&5 2472 rm -f core *.core core.conftest.* && 2473 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2474 exit $exit_status 2475' 0 2476for ac_signal in 1 2 13 15; do 2477 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2478done 2479ac_signal=0 2480 2481# confdefs.h avoids OS command line length limits that DEFS can exceed. 2482rm -f -r conftest* confdefs.h 2483 2484$as_echo "/* confdefs.h */" > confdefs.h 2485 2486# Predefined preprocessor variables. 2487 2488cat >>confdefs.h <<_ACEOF 2489#define PACKAGE_NAME "$PACKAGE_NAME" 2490_ACEOF 2491 2492cat >>confdefs.h <<_ACEOF 2493#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2494_ACEOF 2495 2496cat >>confdefs.h <<_ACEOF 2497#define PACKAGE_VERSION "$PACKAGE_VERSION" 2498_ACEOF 2499 2500cat >>confdefs.h <<_ACEOF 2501#define PACKAGE_STRING "$PACKAGE_STRING" 2502_ACEOF 2503 2504cat >>confdefs.h <<_ACEOF 2505#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2506_ACEOF 2507 2508cat >>confdefs.h <<_ACEOF 2509#define PACKAGE_URL "$PACKAGE_URL" 2510_ACEOF 2511 2512 2513# Let the site file select an alternate cache file if it wants to. 2514# Prefer an explicitly selected file to automatically selected ones. 2515ac_site_file1=NONE 2516ac_site_file2=NONE 2517if test -n "$CONFIG_SITE"; then 2518 # We do not want a PATH search for config.site. 2519 case $CONFIG_SITE in #(( 2520 -*) ac_site_file1=./$CONFIG_SITE;; 2521 */*) ac_site_file1=$CONFIG_SITE;; 2522 *) ac_site_file1=./$CONFIG_SITE;; 2523 esac 2524elif test "x$prefix" != xNONE; then 2525 ac_site_file1=$prefix/share/config.site 2526 ac_site_file2=$prefix/etc/config.site 2527else 2528 ac_site_file1=$ac_default_prefix/share/config.site 2529 ac_site_file2=$ac_default_prefix/etc/config.site 2530fi 2531for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2532do 2533 test "x$ac_site_file" = xNONE && continue 2534 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2535 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2536$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2537 sed 's/^/| /' "$ac_site_file" >&5 2538 . "$ac_site_file" \ 2539 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2541as_fn_error $? "failed to load site script $ac_site_file 2542See \`config.log' for more details" "$LINENO" 5; } 2543 fi 2544done 2545 2546if test -r "$cache_file"; then 2547 # Some versions of bash will fail to source /dev/null (special files 2548 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2549 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2550 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2551$as_echo "$as_me: loading cache $cache_file" >&6;} 2552 case $cache_file in 2553 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2554 *) . "./$cache_file";; 2555 esac 2556 fi 2557else 2558 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2559$as_echo "$as_me: creating cache $cache_file" >&6;} 2560 >$cache_file 2561fi 2562 2563# Check that the precious variables saved in the cache have kept the same 2564# value. 2565ac_cache_corrupted=false 2566for ac_var in $ac_precious_vars; do 2567 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2568 eval ac_new_set=\$ac_env_${ac_var}_set 2569 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2570 eval ac_new_val=\$ac_env_${ac_var}_value 2571 case $ac_old_set,$ac_new_set in 2572 set,) 2573 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2574$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2575 ac_cache_corrupted=: ;; 2576 ,set) 2577 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2578$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2579 ac_cache_corrupted=: ;; 2580 ,);; 2581 *) 2582 if test "x$ac_old_val" != "x$ac_new_val"; then 2583 # differences in whitespace do not lead to failure. 2584 ac_old_val_w=`echo x $ac_old_val` 2585 ac_new_val_w=`echo x $ac_new_val` 2586 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2587 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2588$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2589 ac_cache_corrupted=: 2590 else 2591 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2592$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2593 eval $ac_var=\$ac_old_val 2594 fi 2595 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2596$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2597 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2598$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2599 fi;; 2600 esac 2601 # Pass precious variables to config.status. 2602 if test "$ac_new_set" = set; then 2603 case $ac_new_val in 2604 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2605 *) ac_arg=$ac_var=$ac_new_val ;; 2606 esac 2607 case " $ac_configure_args " in 2608 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2609 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2610 esac 2611 fi 2612done 2613if $ac_cache_corrupted; then 2614 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2615$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2616 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2617$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2618 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2619fi 2620## -------------------- ## 2621## Main body of script. ## 2622## -------------------- ## 2623 2624ac_ext=c 2625ac_cpp='$CPP $CPPFLAGS' 2626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2628ac_compiler_gnu=$ac_cv_c_compiler_gnu 2629 2630 2631 2632 2633ac_aux_dir= 2634for ac_dir in build "$srcdir"/build; do 2635 if test -f "$ac_dir/install-sh"; then 2636 ac_aux_dir=$ac_dir 2637 ac_install_sh="$ac_aux_dir/install-sh -c" 2638 break 2639 elif test -f "$ac_dir/install.sh"; then 2640 ac_aux_dir=$ac_dir 2641 ac_install_sh="$ac_aux_dir/install.sh -c" 2642 break 2643 elif test -f "$ac_dir/shtool"; then 2644 ac_aux_dir=$ac_dir 2645 ac_install_sh="$ac_aux_dir/shtool install -c" 2646 break 2647 fi 2648done 2649if test -z "$ac_aux_dir"; then 2650 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5 2651fi 2652 2653# These three variables are undocumented and unsupported, 2654# and are intended to be withdrawn in a future Autoconf release. 2655# They can cause serious problems if a builder's source tree is in a directory 2656# whose full name contains unusual characters. 2657ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2658ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2659ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2660 2661 2662 2663{ $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Subversion 1.8.1" >&5 2664$as_echo "$as_me: Configuring Subversion 1.8.1" >&6;} 2665 2666abs_srcdir="`cd $srcdir && pwd`" 2667 2668abs_builddir="`pwd`" 2669 2670if test "$abs_srcdir" = "$abs_builddir"; then 2671 canonicalized_srcdir="" 2672else 2673 canonicalized_srcdir="$srcdir/" 2674fi 2675 2676 2677SWIG_LDFLAGS="$LDFLAGS" 2678 2679 2680# Generate config.nice early (before the arguments are munged) 2681 2682 { $as_echo "$as_me:${as_lineno-$LINENO}: creating config.nice" >&5 2683$as_echo "$as_me: creating config.nice" >&6;} 2684 # This little dance satisfies Cygwin, which cannot overwrite in-use files. 2685 if test -f "config.nice"; then 2686 mv "config.nice" "config.nice.old" 2687 fi 2688 2689 cat >"config.nice" <<EOF 2690#! /bin/sh 2691# 2692# Created by configure 2693 2694'$0' $ac_configure_args "\$@" 2695EOF 2696 2697 chmod +x "config.nice" 2698 rm -f "config.nice.old" 2699 2700 2701# ==== Check for programs ==================================================== 2702 2703# Look for a C compiler (before anything can set CFLAGS) 2704CMAINTAINERFLAGS="$CUSERFLAGS" 2705CUSERFLAGS="$CFLAGS" 2706ac_ext=c 2707ac_cpp='$CPP $CPPFLAGS' 2708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2710ac_compiler_gnu=$ac_cv_c_compiler_gnu 2711if test -n "$ac_tool_prefix"; then 2712 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2713set dummy ${ac_tool_prefix}gcc; ac_word=$2 2714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2715$as_echo_n "checking for $ac_word... " >&6; } 2716if ${ac_cv_prog_CC+:} false; then : 2717 $as_echo_n "(cached) " >&6 2718else 2719 if test -n "$CC"; then 2720 ac_cv_prog_CC="$CC" # Let the user override the test. 2721else 2722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2723for as_dir in $PATH 2724do 2725 IFS=$as_save_IFS 2726 test -z "$as_dir" && as_dir=. 2727 for ac_exec_ext in '' $ac_executable_extensions; do 2728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2729 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2731 break 2 2732 fi 2733done 2734 done 2735IFS=$as_save_IFS 2736 2737fi 2738fi 2739CC=$ac_cv_prog_CC 2740if test -n "$CC"; then 2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2742$as_echo "$CC" >&6; } 2743else 2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2745$as_echo "no" >&6; } 2746fi 2747 2748 2749fi 2750if test -z "$ac_cv_prog_CC"; then 2751 ac_ct_CC=$CC 2752 # Extract the first word of "gcc", so it can be a program name with args. 2753set dummy gcc; ac_word=$2 2754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2755$as_echo_n "checking for $ac_word... " >&6; } 2756if ${ac_cv_prog_ac_ct_CC+:} false; then : 2757 $as_echo_n "(cached) " >&6 2758else 2759 if test -n "$ac_ct_CC"; then 2760 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2761else 2762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2763for as_dir in $PATH 2764do 2765 IFS=$as_save_IFS 2766 test -z "$as_dir" && as_dir=. 2767 for ac_exec_ext in '' $ac_executable_extensions; do 2768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2769 ac_cv_prog_ac_ct_CC="gcc" 2770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2771 break 2 2772 fi 2773done 2774 done 2775IFS=$as_save_IFS 2776 2777fi 2778fi 2779ac_ct_CC=$ac_cv_prog_ac_ct_CC 2780if test -n "$ac_ct_CC"; then 2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2782$as_echo "$ac_ct_CC" >&6; } 2783else 2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2785$as_echo "no" >&6; } 2786fi 2787 2788 if test "x$ac_ct_CC" = x; then 2789 CC="" 2790 else 2791 case $cross_compiling:$ac_tool_warned in 2792yes:) 2793{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2794$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2795ac_tool_warned=yes ;; 2796esac 2797 CC=$ac_ct_CC 2798 fi 2799else 2800 CC="$ac_cv_prog_CC" 2801fi 2802 2803if test -z "$CC"; then 2804 if test -n "$ac_tool_prefix"; then 2805 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2806set dummy ${ac_tool_prefix}cc; ac_word=$2 2807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2808$as_echo_n "checking for $ac_word... " >&6; } 2809if ${ac_cv_prog_CC+:} false; then : 2810 $as_echo_n "(cached) " >&6 2811else 2812 if test -n "$CC"; then 2813 ac_cv_prog_CC="$CC" # Let the user override the test. 2814else 2815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2816for as_dir in $PATH 2817do 2818 IFS=$as_save_IFS 2819 test -z "$as_dir" && as_dir=. 2820 for ac_exec_ext in '' $ac_executable_extensions; do 2821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2822 ac_cv_prog_CC="${ac_tool_prefix}cc" 2823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2824 break 2 2825 fi 2826done 2827 done 2828IFS=$as_save_IFS 2829 2830fi 2831fi 2832CC=$ac_cv_prog_CC 2833if test -n "$CC"; then 2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2835$as_echo "$CC" >&6; } 2836else 2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2838$as_echo "no" >&6; } 2839fi 2840 2841 2842 fi 2843fi 2844if test -z "$CC"; then 2845 # Extract the first word of "cc", so it can be a program name with args. 2846set dummy cc; ac_word=$2 2847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2848$as_echo_n "checking for $ac_word... " >&6; } 2849if ${ac_cv_prog_CC+:} false; then : 2850 $as_echo_n "(cached) " >&6 2851else 2852 if test -n "$CC"; then 2853 ac_cv_prog_CC="$CC" # Let the user override the test. 2854else 2855 ac_prog_rejected=no 2856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2857for as_dir in $PATH 2858do 2859 IFS=$as_save_IFS 2860 test -z "$as_dir" && as_dir=. 2861 for ac_exec_ext in '' $ac_executable_extensions; do 2862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2863 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2864 ac_prog_rejected=yes 2865 continue 2866 fi 2867 ac_cv_prog_CC="cc" 2868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2869 break 2 2870 fi 2871done 2872 done 2873IFS=$as_save_IFS 2874 2875if test $ac_prog_rejected = yes; then 2876 # We found a bogon in the path, so make sure we never use it. 2877 set dummy $ac_cv_prog_CC 2878 shift 2879 if test $# != 0; then 2880 # We chose a different compiler from the bogus one. 2881 # However, it has the same basename, so the bogon will be chosen 2882 # first if we set CC to just the basename; use the full file name. 2883 shift 2884 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2885 fi 2886fi 2887fi 2888fi 2889CC=$ac_cv_prog_CC 2890if test -n "$CC"; then 2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2892$as_echo "$CC" >&6; } 2893else 2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2895$as_echo "no" >&6; } 2896fi 2897 2898 2899fi 2900if test -z "$CC"; then 2901 if test -n "$ac_tool_prefix"; then 2902 for ac_prog in cl.exe 2903 do 2904 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2905set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2907$as_echo_n "checking for $ac_word... " >&6; } 2908if ${ac_cv_prog_CC+:} false; then : 2909 $as_echo_n "(cached) " >&6 2910else 2911 if test -n "$CC"; then 2912 ac_cv_prog_CC="$CC" # Let the user override the test. 2913else 2914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2915for as_dir in $PATH 2916do 2917 IFS=$as_save_IFS 2918 test -z "$as_dir" && as_dir=. 2919 for ac_exec_ext in '' $ac_executable_extensions; do 2920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2921 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2923 break 2 2924 fi 2925done 2926 done 2927IFS=$as_save_IFS 2928 2929fi 2930fi 2931CC=$ac_cv_prog_CC 2932if test -n "$CC"; then 2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2934$as_echo "$CC" >&6; } 2935else 2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2937$as_echo "no" >&6; } 2938fi 2939 2940 2941 test -n "$CC" && break 2942 done 2943fi 2944if test -z "$CC"; then 2945 ac_ct_CC=$CC 2946 for ac_prog in cl.exe 2947do 2948 # Extract the first word of "$ac_prog", so it can be a program name with args. 2949set dummy $ac_prog; ac_word=$2 2950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2951$as_echo_n "checking for $ac_word... " >&6; } 2952if ${ac_cv_prog_ac_ct_CC+:} false; then : 2953 $as_echo_n "(cached) " >&6 2954else 2955 if test -n "$ac_ct_CC"; then 2956 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2957else 2958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2959for as_dir in $PATH 2960do 2961 IFS=$as_save_IFS 2962 test -z "$as_dir" && as_dir=. 2963 for ac_exec_ext in '' $ac_executable_extensions; do 2964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2965 ac_cv_prog_ac_ct_CC="$ac_prog" 2966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2967 break 2 2968 fi 2969done 2970 done 2971IFS=$as_save_IFS 2972 2973fi 2974fi 2975ac_ct_CC=$ac_cv_prog_ac_ct_CC 2976if test -n "$ac_ct_CC"; then 2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2978$as_echo "$ac_ct_CC" >&6; } 2979else 2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2981$as_echo "no" >&6; } 2982fi 2983 2984 2985 test -n "$ac_ct_CC" && break 2986done 2987 2988 if test "x$ac_ct_CC" = x; then 2989 CC="" 2990 else 2991 case $cross_compiling:$ac_tool_warned in 2992yes:) 2993{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2994$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2995ac_tool_warned=yes ;; 2996esac 2997 CC=$ac_ct_CC 2998 fi 2999fi 3000 3001fi 3002 3003 3004test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3005$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3006as_fn_error $? "no acceptable C compiler found in \$PATH 3007See \`config.log' for more details" "$LINENO" 5; } 3008 3009# Provide some information about the compiler. 3010$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3011set X $ac_compile 3012ac_compiler=$2 3013for ac_option in --version -v -V -qversion; do 3014 { { ac_try="$ac_compiler $ac_option >&5" 3015case "(($ac_try" in 3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3017 *) ac_try_echo=$ac_try;; 3018esac 3019eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3020$as_echo "$ac_try_echo"; } >&5 3021 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3022 ac_status=$? 3023 if test -s conftest.err; then 3024 sed '10a\ 3025... rest of stderr output deleted ... 3026 10q' conftest.err >conftest.er1 3027 cat conftest.er1 >&5 3028 fi 3029 rm -f conftest.er1 conftest.err 3030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3031 test $ac_status = 0; } 3032done 3033 3034cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3035/* end confdefs.h. */ 3036 3037int 3038main () 3039{ 3040 3041 ; 3042 return 0; 3043} 3044_ACEOF 3045ac_clean_files_save=$ac_clean_files 3046ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3047# Try to create an executable without -o first, disregard a.out. 3048# It will help us diagnose broken compilers, and finding out an intuition 3049# of exeext. 3050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3051$as_echo_n "checking whether the C compiler works... " >&6; } 3052ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3053 3054# The possible output files: 3055ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3056 3057ac_rmfiles= 3058for ac_file in $ac_files 3059do 3060 case $ac_file in 3061 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3062 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3063 esac 3064done 3065rm -f $ac_rmfiles 3066 3067if { { ac_try="$ac_link_default" 3068case "(($ac_try" in 3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3070 *) ac_try_echo=$ac_try;; 3071esac 3072eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3073$as_echo "$ac_try_echo"; } >&5 3074 (eval "$ac_link_default") 2>&5 3075 ac_status=$? 3076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3077 test $ac_status = 0; }; then : 3078 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3079# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3080# in a Makefile. We should not override ac_cv_exeext if it was cached, 3081# so that the user can short-circuit this test for compilers unknown to 3082# Autoconf. 3083for ac_file in $ac_files '' 3084do 3085 test -f "$ac_file" || continue 3086 case $ac_file in 3087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3088 ;; 3089 [ab].out ) 3090 # We found the default executable, but exeext='' is most 3091 # certainly right. 3092 break;; 3093 *.* ) 3094 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3095 then :; else 3096 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3097 fi 3098 # We set ac_cv_exeext here because the later test for it is not 3099 # safe: cross compilers may not add the suffix if given an `-o' 3100 # argument, so we may need to know it at that point already. 3101 # Even if this section looks crufty: it has the advantage of 3102 # actually working. 3103 break;; 3104 * ) 3105 break;; 3106 esac 3107done 3108test "$ac_cv_exeext" = no && ac_cv_exeext= 3109 3110else 3111 ac_file='' 3112fi 3113if test -z "$ac_file"; then : 3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3115$as_echo "no" >&6; } 3116$as_echo "$as_me: failed program was:" >&5 3117sed 's/^/| /' conftest.$ac_ext >&5 3118 3119{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3120$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3121as_fn_error 77 "C compiler cannot create executables 3122See \`config.log' for more details" "$LINENO" 5; } 3123else 3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3125$as_echo "yes" >&6; } 3126fi 3127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3128$as_echo_n "checking for C compiler default output file name... " >&6; } 3129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3130$as_echo "$ac_file" >&6; } 3131ac_exeext=$ac_cv_exeext 3132 3133rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3134ac_clean_files=$ac_clean_files_save 3135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3136$as_echo_n "checking for suffix of executables... " >&6; } 3137if { { ac_try="$ac_link" 3138case "(($ac_try" in 3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3140 *) ac_try_echo=$ac_try;; 3141esac 3142eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3143$as_echo "$ac_try_echo"; } >&5 3144 (eval "$ac_link") 2>&5 3145 ac_status=$? 3146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3147 test $ac_status = 0; }; then : 3148 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3149# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3150# work properly (i.e., refer to `conftest.exe'), while it won't with 3151# `rm'. 3152for ac_file in conftest.exe conftest conftest.*; do 3153 test -f "$ac_file" || continue 3154 case $ac_file in 3155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3156 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3157 break;; 3158 * ) break;; 3159 esac 3160done 3161else 3162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3163$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3164as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3165See \`config.log' for more details" "$LINENO" 5; } 3166fi 3167rm -f conftest conftest$ac_cv_exeext 3168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3169$as_echo "$ac_cv_exeext" >&6; } 3170 3171rm -f conftest.$ac_ext 3172EXEEXT=$ac_cv_exeext 3173ac_exeext=$EXEEXT 3174cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3175/* end confdefs.h. */ 3176#include <stdio.h> 3177int 3178main () 3179{ 3180FILE *f = fopen ("conftest.out", "w"); 3181 return ferror (f) || fclose (f) != 0; 3182 3183 ; 3184 return 0; 3185} 3186_ACEOF 3187ac_clean_files="$ac_clean_files conftest.out" 3188# Check that the compiler produces executables we can run. If not, either 3189# the compiler is broken, or we cross compile. 3190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3191$as_echo_n "checking whether we are cross compiling... " >&6; } 3192if test "$cross_compiling" != yes; then 3193 { { ac_try="$ac_link" 3194case "(($ac_try" in 3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3196 *) ac_try_echo=$ac_try;; 3197esac 3198eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3199$as_echo "$ac_try_echo"; } >&5 3200 (eval "$ac_link") 2>&5 3201 ac_status=$? 3202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3203 test $ac_status = 0; } 3204 if { ac_try='./conftest$ac_cv_exeext' 3205 { { case "(($ac_try" in 3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3207 *) ac_try_echo=$ac_try;; 3208esac 3209eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3210$as_echo "$ac_try_echo"; } >&5 3211 (eval "$ac_try") 2>&5 3212 ac_status=$? 3213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3214 test $ac_status = 0; }; }; then 3215 cross_compiling=no 3216 else 3217 if test "$cross_compiling" = maybe; then 3218 cross_compiling=yes 3219 else 3220 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3221$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3222as_fn_error $? "cannot run C compiled programs. 3223If you meant to cross compile, use \`--host'. 3224See \`config.log' for more details" "$LINENO" 5; } 3225 fi 3226 fi 3227fi 3228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3229$as_echo "$cross_compiling" >&6; } 3230 3231rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3232ac_clean_files=$ac_clean_files_save 3233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3234$as_echo_n "checking for suffix of object files... " >&6; } 3235if ${ac_cv_objext+:} false; then : 3236 $as_echo_n "(cached) " >&6 3237else 3238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3239/* end confdefs.h. */ 3240 3241int 3242main () 3243{ 3244 3245 ; 3246 return 0; 3247} 3248_ACEOF 3249rm -f conftest.o conftest.obj 3250if { { ac_try="$ac_compile" 3251case "(($ac_try" in 3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3253 *) ac_try_echo=$ac_try;; 3254esac 3255eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3256$as_echo "$ac_try_echo"; } >&5 3257 (eval "$ac_compile") 2>&5 3258 ac_status=$? 3259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3260 test $ac_status = 0; }; then : 3261 for ac_file in conftest.o conftest.obj conftest.*; do 3262 test -f "$ac_file" || continue; 3263 case $ac_file in 3264 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3265 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3266 break;; 3267 esac 3268done 3269else 3270 $as_echo "$as_me: failed program was:" >&5 3271sed 's/^/| /' conftest.$ac_ext >&5 3272 3273{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3274$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3275as_fn_error $? "cannot compute suffix of object files: cannot compile 3276See \`config.log' for more details" "$LINENO" 5; } 3277fi 3278rm -f conftest.$ac_cv_objext conftest.$ac_ext 3279fi 3280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3281$as_echo "$ac_cv_objext" >&6; } 3282OBJEXT=$ac_cv_objext 3283ac_objext=$OBJEXT 3284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3285$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3286if ${ac_cv_c_compiler_gnu+:} false; then : 3287 $as_echo_n "(cached) " >&6 3288else 3289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3290/* end confdefs.h. */ 3291 3292int 3293main () 3294{ 3295#ifndef __GNUC__ 3296 choke me 3297#endif 3298 3299 ; 3300 return 0; 3301} 3302_ACEOF 3303if ac_fn_c_try_compile "$LINENO"; then : 3304 ac_compiler_gnu=yes 3305else 3306 ac_compiler_gnu=no 3307fi 3308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3309ac_cv_c_compiler_gnu=$ac_compiler_gnu 3310 3311fi 3312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3313$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3314if test $ac_compiler_gnu = yes; then 3315 GCC=yes 3316else 3317 GCC= 3318fi 3319ac_test_CFLAGS=${CFLAGS+set} 3320ac_save_CFLAGS=$CFLAGS 3321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3322$as_echo_n "checking whether $CC accepts -g... " >&6; } 3323if ${ac_cv_prog_cc_g+:} false; then : 3324 $as_echo_n "(cached) " >&6 3325else 3326 ac_save_c_werror_flag=$ac_c_werror_flag 3327 ac_c_werror_flag=yes 3328 ac_cv_prog_cc_g=no 3329 CFLAGS="-g" 3330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3331/* end confdefs.h. */ 3332 3333int 3334main () 3335{ 3336 3337 ; 3338 return 0; 3339} 3340_ACEOF 3341if ac_fn_c_try_compile "$LINENO"; then : 3342 ac_cv_prog_cc_g=yes 3343else 3344 CFLAGS="" 3345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3346/* end confdefs.h. */ 3347 3348int 3349main () 3350{ 3351 3352 ; 3353 return 0; 3354} 3355_ACEOF 3356if ac_fn_c_try_compile "$LINENO"; then : 3357 3358else 3359 ac_c_werror_flag=$ac_save_c_werror_flag 3360 CFLAGS="-g" 3361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3362/* end confdefs.h. */ 3363 3364int 3365main () 3366{ 3367 3368 ; 3369 return 0; 3370} 3371_ACEOF 3372if ac_fn_c_try_compile "$LINENO"; then : 3373 ac_cv_prog_cc_g=yes 3374fi 3375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3376fi 3377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3378fi 3379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3380 ac_c_werror_flag=$ac_save_c_werror_flag 3381fi 3382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3383$as_echo "$ac_cv_prog_cc_g" >&6; } 3384if test "$ac_test_CFLAGS" = set; then 3385 CFLAGS=$ac_save_CFLAGS 3386elif test $ac_cv_prog_cc_g = yes; then 3387 if test "$GCC" = yes; then 3388 CFLAGS="-g -O2" 3389 else 3390 CFLAGS="-g" 3391 fi 3392else 3393 if test "$GCC" = yes; then 3394 CFLAGS="-O2" 3395 else 3396 CFLAGS= 3397 fi 3398fi 3399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3400$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3401if ${ac_cv_prog_cc_c89+:} false; then : 3402 $as_echo_n "(cached) " >&6 3403else 3404 ac_cv_prog_cc_c89=no 3405ac_save_CC=$CC 3406cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3407/* end confdefs.h. */ 3408#include <stdarg.h> 3409#include <stdio.h> 3410struct stat; 3411/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3412struct buf { int x; }; 3413FILE * (*rcsopen) (struct buf *, struct stat *, int); 3414static char *e (p, i) 3415 char **p; 3416 int i; 3417{ 3418 return p[i]; 3419} 3420static char *f (char * (*g) (char **, int), char **p, ...) 3421{ 3422 char *s; 3423 va_list v; 3424 va_start (v,p); 3425 s = g (p, va_arg (v,int)); 3426 va_end (v); 3427 return s; 3428} 3429 3430/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3431 function prototypes and stuff, but not '\xHH' hex character constants. 3432 These don't provoke an error unfortunately, instead are silently treated 3433 as 'x'. The following induces an error, until -std is added to get 3434 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3435 array size at least. It's necessary to write '\x00'==0 to get something 3436 that's true only with -std. */ 3437int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3438 3439/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3440 inside strings and character constants. */ 3441#define FOO(x) 'x' 3442int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3443 3444int test (int i, double x); 3445struct s1 {int (*f) (int a);}; 3446struct s2 {int (*f) (double a);}; 3447int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3448int argc; 3449char **argv; 3450int 3451main () 3452{ 3453return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3454 ; 3455 return 0; 3456} 3457_ACEOF 3458for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3459 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3460do 3461 CC="$ac_save_CC $ac_arg" 3462 if ac_fn_c_try_compile "$LINENO"; then : 3463 ac_cv_prog_cc_c89=$ac_arg 3464fi 3465rm -f core conftest.err conftest.$ac_objext 3466 test "x$ac_cv_prog_cc_c89" != "xno" && break 3467done 3468rm -f conftest.$ac_ext 3469CC=$ac_save_CC 3470 3471fi 3472# AC_CACHE_VAL 3473case "x$ac_cv_prog_cc_c89" in 3474 x) 3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3476$as_echo "none needed" >&6; } ;; 3477 xno) 3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3479$as_echo "unsupported" >&6; } ;; 3480 *) 3481 CC="$CC $ac_cv_prog_cc_c89" 3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3483$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3484esac 3485if test "x$ac_cv_prog_cc_c89" != xno; then : 3486 3487fi 3488 3489ac_ext=c 3490ac_cpp='$CPP $CPPFLAGS' 3491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3493ac_compiler_gnu=$ac_cv_c_compiler_gnu 3494 3495 3496 3497 CFLAGS_KEEP="$CFLAGS" 3498 CFLAGS="" 3499 3500 3501 _svn_xxflags__save="$CFLAGS" 3502 ac_ext=c 3503ac_cpp='$CPP $CPPFLAGS' 3504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3506ac_compiler_gnu=$ac_cv_c_compiler_gnu 3507 3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -std=c90" >&5 3509$as_echo_n "checking if $CC accepts -std=c90... " >&6; } 3510 CFLAGS="-std=c90 $CFLAGS" 3511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3512/* end confdefs.h. */ 3513 3514_ACEOF 3515if ac_fn_c_try_compile "$LINENO"; then : 3516 3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3518$as_echo "yes" >&6; } 3519 3520 3521else 3522 3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3524$as_echo "no" >&6; } 3525 CFLAGS="$_svn_xxflags__save" 3526 3527 3528 _svn_xxflags__save="$CFLAGS" 3529 ac_ext=c 3530ac_cpp='$CPP $CPPFLAGS' 3531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3533ac_compiler_gnu=$ac_cv_c_compiler_gnu 3534 3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -std=c89" >&5 3536$as_echo_n "checking if $CC accepts -std=c89... " >&6; } 3537 CFLAGS="-std=c89 $CFLAGS" 3538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3539/* end confdefs.h. */ 3540 3541_ACEOF 3542if ac_fn_c_try_compile "$LINENO"; then : 3543 3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3545$as_echo "yes" >&6; } 3546 3547 3548else 3549 3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3551$as_echo "no" >&6; } 3552 CFLAGS="$_svn_xxflags__save" 3553 3554 3555 _svn_xxflags__save="$CFLAGS" 3556 ac_ext=c 3557ac_cpp='$CPP $CPPFLAGS' 3558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3560ac_compiler_gnu=$ac_cv_c_compiler_gnu 3561 3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -ansi" >&5 3563$as_echo_n "checking if $CC accepts -ansi... " >&6; } 3564 CFLAGS="-ansi $CFLAGS" 3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3566/* end confdefs.h. */ 3567 3568_ACEOF 3569if ac_fn_c_try_compile "$LINENO"; then : 3570 3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3572$as_echo "yes" >&6; } 3573 3574 3575else 3576 3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3578$as_echo "no" >&6; } 3579 CFLAGS="$_svn_xxflags__save" 3580 3581 3582fi 3583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3584 ac_ext=c 3585ac_cpp='$CPP $CPPFLAGS' 3586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3588ac_compiler_gnu=$ac_cv_c_compiler_gnu 3589 3590 3591 3592 3593fi 3594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3595 ac_ext=c 3596ac_cpp='$CPP $CPPFLAGS' 3597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3599ac_compiler_gnu=$ac_cv_c_compiler_gnu 3600 3601 3602 3603 3604fi 3605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3606 ac_ext=c 3607ac_cpp='$CPP $CPPFLAGS' 3608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3610ac_compiler_gnu=$ac_cv_c_compiler_gnu 3611 3612 3613 3614 CMODEFLAGS="$CFLAGS" 3615 CFLAGS="$CFLAGS_KEEP" 3616 3617 3618 3619 3620 _svn_xxflags__save="$CFLAGS" 3621 ac_ext=c 3622ac_cpp='$CPP $CPPFLAGS' 3623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3625ac_compiler_gnu=$ac_cv_c_compiler_gnu 3626 3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=unknown-warning-option" >&5 3628$as_echo_n "checking if $CC accepts -Werror=unknown-warning-option... " >&6; } 3629 CFLAGS="-Werror=unknown-warning-option $CFLAGS" 3630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3631/* end confdefs.h. */ 3632 3633_ACEOF 3634if ac_fn_c_try_compile "$LINENO"; then : 3635 3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3637$as_echo "yes" >&6; } 3638 3639 3640else 3641 3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3643$as_echo "no" >&6; } 3644 CFLAGS="$_svn_xxflags__save" 3645 3646 3647fi 3648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3649 ac_ext=c 3650ac_cpp='$CPP $CPPFLAGS' 3651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3653ac_compiler_gnu=$ac_cv_c_compiler_gnu 3654 3655 3656 3657 3658# Look for a C++ compiler (before anything can set CXXFLAGS) 3659CXXMAINTAINERFLAGS="$CXXUSERFLAGS" 3660CXXUSERFLAGS="$CXXFLAGS" 3661ac_ext=cpp 3662ac_cpp='$CXXCPP $CPPFLAGS' 3663ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3664ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3665ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3666if test -z "$CXX"; then 3667 if test -n "$CCC"; then 3668 CXX=$CCC 3669 else 3670 if test -n "$ac_tool_prefix"; then 3671 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3672 do 3673 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3674set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3676$as_echo_n "checking for $ac_word... " >&6; } 3677if ${ac_cv_prog_CXX+:} false; then : 3678 $as_echo_n "(cached) " >&6 3679else 3680 if test -n "$CXX"; then 3681 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3682else 3683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3684for as_dir in $PATH 3685do 3686 IFS=$as_save_IFS 3687 test -z "$as_dir" && as_dir=. 3688 for ac_exec_ext in '' $ac_executable_extensions; do 3689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3690 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3692 break 2 3693 fi 3694done 3695 done 3696IFS=$as_save_IFS 3697 3698fi 3699fi 3700CXX=$ac_cv_prog_CXX 3701if test -n "$CXX"; then 3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 3703$as_echo "$CXX" >&6; } 3704else 3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3706$as_echo "no" >&6; } 3707fi 3708 3709 3710 test -n "$CXX" && break 3711 done 3712fi 3713if test -z "$CXX"; then 3714 ac_ct_CXX=$CXX 3715 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3716do 3717 # Extract the first word of "$ac_prog", so it can be a program name with args. 3718set dummy $ac_prog; ac_word=$2 3719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3720$as_echo_n "checking for $ac_word... " >&6; } 3721if ${ac_cv_prog_ac_ct_CXX+:} false; then : 3722 $as_echo_n "(cached) " >&6 3723else 3724 if test -n "$ac_ct_CXX"; then 3725 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3726else 3727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3728for as_dir in $PATH 3729do 3730 IFS=$as_save_IFS 3731 test -z "$as_dir" && as_dir=. 3732 for ac_exec_ext in '' $ac_executable_extensions; do 3733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3734 ac_cv_prog_ac_ct_CXX="$ac_prog" 3735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3736 break 2 3737 fi 3738done 3739 done 3740IFS=$as_save_IFS 3741 3742fi 3743fi 3744ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3745if test -n "$ac_ct_CXX"; then 3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 3747$as_echo "$ac_ct_CXX" >&6; } 3748else 3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3750$as_echo "no" >&6; } 3751fi 3752 3753 3754 test -n "$ac_ct_CXX" && break 3755done 3756 3757 if test "x$ac_ct_CXX" = x; then 3758 CXX="g++" 3759 else 3760 case $cross_compiling:$ac_tool_warned in 3761yes:) 3762{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3763$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3764ac_tool_warned=yes ;; 3765esac 3766 CXX=$ac_ct_CXX 3767 fi 3768fi 3769 3770 fi 3771fi 3772# Provide some information about the compiler. 3773$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 3774set X $ac_compile 3775ac_compiler=$2 3776for ac_option in --version -v -V -qversion; do 3777 { { ac_try="$ac_compiler $ac_option >&5" 3778case "(($ac_try" in 3779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3780 *) ac_try_echo=$ac_try;; 3781esac 3782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3783$as_echo "$ac_try_echo"; } >&5 3784 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3785 ac_status=$? 3786 if test -s conftest.err; then 3787 sed '10a\ 3788... rest of stderr output deleted ... 3789 10q' conftest.err >conftest.er1 3790 cat conftest.er1 >&5 3791 fi 3792 rm -f conftest.er1 conftest.err 3793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3794 test $ac_status = 0; } 3795done 3796 3797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 3798$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 3799if ${ac_cv_cxx_compiler_gnu+:} false; then : 3800 $as_echo_n "(cached) " >&6 3801else 3802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3803/* end confdefs.h. */ 3804 3805int 3806main () 3807{ 3808#ifndef __GNUC__ 3809 choke me 3810#endif 3811 3812 ; 3813 return 0; 3814} 3815_ACEOF 3816if ac_fn_cxx_try_compile "$LINENO"; then : 3817 ac_compiler_gnu=yes 3818else 3819 ac_compiler_gnu=no 3820fi 3821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3822ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3823 3824fi 3825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 3826$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 3827if test $ac_compiler_gnu = yes; then 3828 GXX=yes 3829else 3830 GXX= 3831fi 3832ac_test_CXXFLAGS=${CXXFLAGS+set} 3833ac_save_CXXFLAGS=$CXXFLAGS 3834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 3835$as_echo_n "checking whether $CXX accepts -g... " >&6; } 3836if ${ac_cv_prog_cxx_g+:} false; then : 3837 $as_echo_n "(cached) " >&6 3838else 3839 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3840 ac_cxx_werror_flag=yes 3841 ac_cv_prog_cxx_g=no 3842 CXXFLAGS="-g" 3843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3844/* end confdefs.h. */ 3845 3846int 3847main () 3848{ 3849 3850 ; 3851 return 0; 3852} 3853_ACEOF 3854if ac_fn_cxx_try_compile "$LINENO"; then : 3855 ac_cv_prog_cxx_g=yes 3856else 3857 CXXFLAGS="" 3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3859/* end confdefs.h. */ 3860 3861int 3862main () 3863{ 3864 3865 ; 3866 return 0; 3867} 3868_ACEOF 3869if ac_fn_cxx_try_compile "$LINENO"; then : 3870 3871else 3872 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3873 CXXFLAGS="-g" 3874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3875/* end confdefs.h. */ 3876 3877int 3878main () 3879{ 3880 3881 ; 3882 return 0; 3883} 3884_ACEOF 3885if ac_fn_cxx_try_compile "$LINENO"; then : 3886 ac_cv_prog_cxx_g=yes 3887fi 3888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3889fi 3890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3891fi 3892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3893 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3894fi 3895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 3896$as_echo "$ac_cv_prog_cxx_g" >&6; } 3897if test "$ac_test_CXXFLAGS" = set; then 3898 CXXFLAGS=$ac_save_CXXFLAGS 3899elif test $ac_cv_prog_cxx_g = yes; then 3900 if test "$GXX" = yes; then 3901 CXXFLAGS="-g -O2" 3902 else 3903 CXXFLAGS="-g" 3904 fi 3905else 3906 if test "$GXX" = yes; then 3907 CXXFLAGS="-O2" 3908 else 3909 CXXFLAGS= 3910 fi 3911fi 3912ac_ext=c 3913ac_cpp='$CPP $CPPFLAGS' 3914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3916ac_compiler_gnu=$ac_cv_c_compiler_gnu 3917 3918 3919 3920 CXXFLAGS_KEEP="$CXXFLAGS" 3921 CXXFLAGS="" 3922 3923 3924 _svn_xxflags__save="$CXXFLAGS" 3925 ac_ext=cpp 3926ac_cpp='$CXXCPP $CPPFLAGS' 3927ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3928ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3929ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3930 3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -std=c++98" >&5 3932$as_echo_n "checking if $CXX accepts -std=c++98... " >&6; } 3933 CXXFLAGS="-std=c++98 $CXXFLAGS" 3934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3935/* end confdefs.h. */ 3936 3937_ACEOF 3938if ac_fn_cxx_try_compile "$LINENO"; then : 3939 3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3941$as_echo "yes" >&6; } 3942 3943 3944else 3945 3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3947$as_echo "no" >&6; } 3948 CXXFLAGS="$_svn_xxflags__save" 3949 3950 3951fi 3952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3953 ac_ext=c 3954ac_cpp='$CPP $CPPFLAGS' 3955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3957ac_compiler_gnu=$ac_cv_c_compiler_gnu 3958 3959 3960 3961 CXXMODEFLAGS="$CXXFLAGS" 3962 CXXFLAGS="$CXXFLAGS_KEEP" 3963 3964 3965 3966 3967 _svn_xxflags__save="$CXXFLAGS" 3968 ac_ext=cpp 3969ac_cpp='$CXXCPP $CPPFLAGS' 3970ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3971ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3972ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3973 3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Werror=unknown-warning-option" >&5 3975$as_echo_n "checking if $CXX accepts -Werror=unknown-warning-option... " >&6; } 3976 CXXFLAGS="-Werror=unknown-warning-option $CXXFLAGS" 3977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3978/* end confdefs.h. */ 3979 3980_ACEOF 3981if ac_fn_cxx_try_compile "$LINENO"; then : 3982 3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3984$as_echo "yes" >&6; } 3985 3986 3987else 3988 3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3990$as_echo "no" >&6; } 3991 CXXFLAGS="$_svn_xxflags__save" 3992 3993 3994fi 3995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3996 ac_ext=c 3997ac_cpp='$CPP $CPPFLAGS' 3998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4000ac_compiler_gnu=$ac_cv_c_compiler_gnu 4001 4002 4003 4004 4005# Look for a C pre-processor 4006ac_ext=c 4007ac_cpp='$CPP $CPPFLAGS' 4008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4010ac_compiler_gnu=$ac_cv_c_compiler_gnu 4011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4012$as_echo_n "checking how to run the C preprocessor... " >&6; } 4013# On Suns, sometimes $CPP names a directory. 4014if test -n "$CPP" && test -d "$CPP"; then 4015 CPP= 4016fi 4017if test -z "$CPP"; then 4018 if ${ac_cv_prog_CPP+:} false; then : 4019 $as_echo_n "(cached) " >&6 4020else 4021 # Double quotes because CPP needs to be expanded 4022 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4023 do 4024 ac_preproc_ok=false 4025for ac_c_preproc_warn_flag in '' yes 4026do 4027 # Use a header file that comes with gcc, so configuring glibc 4028 # with a fresh cross-compiler works. 4029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4030 # <limits.h> exists even on freestanding compilers. 4031 # On the NeXT, cc -E runs the code through the compiler's parser, 4032 # not just through cpp. "Syntax error" is here to catch this case. 4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4034/* end confdefs.h. */ 4035#ifdef __STDC__ 4036# include <limits.h> 4037#else 4038# include <assert.h> 4039#endif 4040 Syntax error 4041_ACEOF 4042if ac_fn_c_try_cpp "$LINENO"; then : 4043 4044else 4045 # Broken: fails on valid input. 4046continue 4047fi 4048rm -f conftest.err conftest.i conftest.$ac_ext 4049 4050 # OK, works on sane cases. Now check whether nonexistent headers 4051 # can be detected and how. 4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4053/* end confdefs.h. */ 4054#include <ac_nonexistent.h> 4055_ACEOF 4056if ac_fn_c_try_cpp "$LINENO"; then : 4057 # Broken: success on invalid input. 4058continue 4059else 4060 # Passes both tests. 4061ac_preproc_ok=: 4062break 4063fi 4064rm -f conftest.err conftest.i conftest.$ac_ext 4065 4066done 4067# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4068rm -f conftest.i conftest.err conftest.$ac_ext 4069if $ac_preproc_ok; then : 4070 break 4071fi 4072 4073 done 4074 ac_cv_prog_CPP=$CPP 4075 4076fi 4077 CPP=$ac_cv_prog_CPP 4078else 4079 ac_cv_prog_CPP=$CPP 4080fi 4081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4082$as_echo "$CPP" >&6; } 4083ac_preproc_ok=false 4084for ac_c_preproc_warn_flag in '' yes 4085do 4086 # Use a header file that comes with gcc, so configuring glibc 4087 # with a fresh cross-compiler works. 4088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4089 # <limits.h> exists even on freestanding compilers. 4090 # On the NeXT, cc -E runs the code through the compiler's parser, 4091 # not just through cpp. "Syntax error" is here to catch this case. 4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4093/* end confdefs.h. */ 4094#ifdef __STDC__ 4095# include <limits.h> 4096#else 4097# include <assert.h> 4098#endif 4099 Syntax error 4100_ACEOF 4101if ac_fn_c_try_cpp "$LINENO"; then : 4102 4103else 4104 # Broken: fails on valid input. 4105continue 4106fi 4107rm -f conftest.err conftest.i conftest.$ac_ext 4108 4109 # OK, works on sane cases. Now check whether nonexistent headers 4110 # can be detected and how. 4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4112/* end confdefs.h. */ 4113#include <ac_nonexistent.h> 4114_ACEOF 4115if ac_fn_c_try_cpp "$LINENO"; then : 4116 # Broken: success on invalid input. 4117continue 4118else 4119 # Passes both tests. 4120ac_preproc_ok=: 4121break 4122fi 4123rm -f conftest.err conftest.i conftest.$ac_ext 4124 4125done 4126# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4127rm -f conftest.i conftest.err conftest.$ac_ext 4128if $ac_preproc_ok; then : 4129 4130else 4131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4132$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4133as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4134See \`config.log' for more details" "$LINENO" 5; } 4135fi 4136 4137ac_ext=c 4138ac_cpp='$CPP $CPPFLAGS' 4139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4141ac_compiler_gnu=$ac_cv_c_compiler_gnu 4142 4143 4144# Look for a good sed 4145# AC_PROG_SED was introduced in Autoconf 2.59b 4146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4147$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4148if ${ac_cv_path_SED+:} false; then : 4149 $as_echo_n "(cached) " >&6 4150else 4151 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4152 for ac_i in 1 2 3 4 5 6 7; do 4153 ac_script="$ac_script$as_nl$ac_script" 4154 done 4155 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4156 { ac_script=; unset ac_script;} 4157 if test -z "$SED"; then 4158 ac_path_SED_found=false 4159 # Loop through the user's path and test for each of PROGNAME-LIST 4160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4161for as_dir in $PATH 4162do 4163 IFS=$as_save_IFS 4164 test -z "$as_dir" && as_dir=. 4165 for ac_prog in sed gsed; do 4166 for ac_exec_ext in '' $ac_executable_extensions; do 4167 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4168 as_fn_executable_p "$ac_path_SED" || continue 4169# Check for GNU ac_path_SED and select it if it is found. 4170 # Check for GNU $ac_path_SED 4171case `"$ac_path_SED" --version 2>&1` in 4172*GNU*) 4173 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4174*) 4175 ac_count=0 4176 $as_echo_n 0123456789 >"conftest.in" 4177 while : 4178 do 4179 cat "conftest.in" "conftest.in" >"conftest.tmp" 4180 mv "conftest.tmp" "conftest.in" 4181 cp "conftest.in" "conftest.nl" 4182 $as_echo '' >> "conftest.nl" 4183 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4184 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4185 as_fn_arith $ac_count + 1 && ac_count=$as_val 4186 if test $ac_count -gt ${ac_path_SED_max-0}; then 4187 # Best one so far, save it but keep looking for a better one 4188 ac_cv_path_SED="$ac_path_SED" 4189 ac_path_SED_max=$ac_count 4190 fi 4191 # 10*(2^10) chars as input seems more than enough 4192 test $ac_count -gt 10 && break 4193 done 4194 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4195esac 4196 4197 $ac_path_SED_found && break 3 4198 done 4199 done 4200 done 4201IFS=$as_save_IFS 4202 if test -z "$ac_cv_path_SED"; then 4203 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4204 fi 4205else 4206 ac_cv_path_SED=$SED 4207fi 4208 4209fi 4210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4211$as_echo "$ac_cv_path_SED" >&6; } 4212 SED="$ac_cv_path_SED" 4213 rm -f conftest.sed 4214 4215 4216# Grab target_cpu, so we can use it in the Solaris pkginfo file 4217# Make sure we can run config.sub. 4218$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4219 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4220 4221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4222$as_echo_n "checking build system type... " >&6; } 4223if ${ac_cv_build+:} false; then : 4224 $as_echo_n "(cached) " >&6 4225else 4226 ac_build_alias=$build_alias 4227test "x$ac_build_alias" = x && 4228 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4229test "x$ac_build_alias" = x && 4230 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4231ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4232 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4233 4234fi 4235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4236$as_echo "$ac_cv_build" >&6; } 4237case $ac_cv_build in 4238*-*-*) ;; 4239*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4240esac 4241build=$ac_cv_build 4242ac_save_IFS=$IFS; IFS='-' 4243set x $ac_cv_build 4244shift 4245build_cpu=$1 4246build_vendor=$2 4247shift; shift 4248# Remember, the first character of IFS is used to create $*, 4249# except with old shells: 4250build_os=$* 4251IFS=$ac_save_IFS 4252case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4253 4254 4255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4256$as_echo_n "checking host system type... " >&6; } 4257if ${ac_cv_host+:} false; then : 4258 $as_echo_n "(cached) " >&6 4259else 4260 if test "x$host_alias" = x; then 4261 ac_cv_host=$ac_cv_build 4262else 4263 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4264 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4265fi 4266 4267fi 4268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4269$as_echo "$ac_cv_host" >&6; } 4270case $ac_cv_host in 4271*-*-*) ;; 4272*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4273esac 4274host=$ac_cv_host 4275ac_save_IFS=$IFS; IFS='-' 4276set x $ac_cv_host 4277shift 4278host_cpu=$1 4279host_vendor=$2 4280shift; shift 4281# Remember, the first character of IFS is used to create $*, 4282# except with old shells: 4283host_os=$* 4284IFS=$ac_save_IFS 4285case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4286 4287 4288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 4289$as_echo_n "checking target system type... " >&6; } 4290if ${ac_cv_target+:} false; then : 4291 $as_echo_n "(cached) " >&6 4292else 4293 if test "x$target_alias" = x; then 4294 ac_cv_target=$ac_cv_host 4295else 4296 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 4297 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 4298fi 4299 4300fi 4301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 4302$as_echo "$ac_cv_target" >&6; } 4303case $ac_cv_target in 4304*-*-*) ;; 4305*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 4306esac 4307target=$ac_cv_target 4308ac_save_IFS=$IFS; IFS='-' 4309set x $ac_cv_target 4310shift 4311target_cpu=$1 4312target_vendor=$2 4313shift; shift 4314# Remember, the first character of IFS is used to create $*, 4315# except with old shells: 4316target_os=$* 4317IFS=$ac_save_IFS 4318case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 4319 4320 4321# The aliases save the names the user supplied, while $host etc. 4322# will get canonicalized. 4323test -n "$target_alias" && 4324 test "$program_prefix$program_suffix$program_transform_name" = \ 4325 NONENONEs,x,x, && 4326 program_prefix=${target_alias}- 4327 4328# Look for an extended grep 4329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4330$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4331if ${ac_cv_path_GREP+:} false; then : 4332 $as_echo_n "(cached) " >&6 4333else 4334 if test -z "$GREP"; then 4335 ac_path_GREP_found=false 4336 # Loop through the user's path and test for each of PROGNAME-LIST 4337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4338for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4339do 4340 IFS=$as_save_IFS 4341 test -z "$as_dir" && as_dir=. 4342 for ac_prog in grep ggrep; do 4343 for ac_exec_ext in '' $ac_executable_extensions; do 4344 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4345 as_fn_executable_p "$ac_path_GREP" || continue 4346# Check for GNU ac_path_GREP and select it if it is found. 4347 # Check for GNU $ac_path_GREP 4348case `"$ac_path_GREP" --version 2>&1` in 4349*GNU*) 4350 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4351*) 4352 ac_count=0 4353 $as_echo_n 0123456789 >"conftest.in" 4354 while : 4355 do 4356 cat "conftest.in" "conftest.in" >"conftest.tmp" 4357 mv "conftest.tmp" "conftest.in" 4358 cp "conftest.in" "conftest.nl" 4359 $as_echo 'GREP' >> "conftest.nl" 4360 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4361 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4362 as_fn_arith $ac_count + 1 && ac_count=$as_val 4363 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4364 # Best one so far, save it but keep looking for a better one 4365 ac_cv_path_GREP="$ac_path_GREP" 4366 ac_path_GREP_max=$ac_count 4367 fi 4368 # 10*(2^10) chars as input seems more than enough 4369 test $ac_count -gt 10 && break 4370 done 4371 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4372esac 4373 4374 $ac_path_GREP_found && break 3 4375 done 4376 done 4377 done 4378IFS=$as_save_IFS 4379 if test -z "$ac_cv_path_GREP"; then 4380 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4381 fi 4382else 4383 ac_cv_path_GREP=$GREP 4384fi 4385 4386fi 4387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4388$as_echo "$ac_cv_path_GREP" >&6; } 4389 GREP="$ac_cv_path_GREP" 4390 4391 4392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4393$as_echo_n "checking for egrep... " >&6; } 4394if ${ac_cv_path_EGREP+:} false; then : 4395 $as_echo_n "(cached) " >&6 4396else 4397 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4398 then ac_cv_path_EGREP="$GREP -E" 4399 else 4400 if test -z "$EGREP"; then 4401 ac_path_EGREP_found=false 4402 # Loop through the user's path and test for each of PROGNAME-LIST 4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4404for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4405do 4406 IFS=$as_save_IFS 4407 test -z "$as_dir" && as_dir=. 4408 for ac_prog in egrep; do 4409 for ac_exec_ext in '' $ac_executable_extensions; do 4410 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4411 as_fn_executable_p "$ac_path_EGREP" || continue 4412# Check for GNU ac_path_EGREP and select it if it is found. 4413 # Check for GNU $ac_path_EGREP 4414case `"$ac_path_EGREP" --version 2>&1` in 4415*GNU*) 4416 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4417*) 4418 ac_count=0 4419 $as_echo_n 0123456789 >"conftest.in" 4420 while : 4421 do 4422 cat "conftest.in" "conftest.in" >"conftest.tmp" 4423 mv "conftest.tmp" "conftest.in" 4424 cp "conftest.in" "conftest.nl" 4425 $as_echo 'EGREP' >> "conftest.nl" 4426 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4427 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4428 as_fn_arith $ac_count + 1 && ac_count=$as_val 4429 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4430 # Best one so far, save it but keep looking for a better one 4431 ac_cv_path_EGREP="$ac_path_EGREP" 4432 ac_path_EGREP_max=$ac_count 4433 fi 4434 # 10*(2^10) chars as input seems more than enough 4435 test $ac_count -gt 10 && break 4436 done 4437 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4438esac 4439 4440 $ac_path_EGREP_found && break 3 4441 done 4442 done 4443 done 4444IFS=$as_save_IFS 4445 if test -z "$ac_cv_path_EGREP"; then 4446 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4447 fi 4448else 4449 ac_cv_path_EGREP=$EGREP 4450fi 4451 4452 fi 4453fi 4454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4455$as_echo "$ac_cv_path_EGREP" >&6; } 4456 EGREP="$ac_cv_path_EGREP" 4457 4458 4459 4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4461$as_echo_n "checking whether ln -s works... " >&6; } 4462LN_S=$as_ln_s 4463if test "$LN_S" = "ln -s"; then 4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4465$as_echo "yes" >&6; } 4466else 4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4468$as_echo "no, using $LN_S" >&6; } 4469fi 4470 4471 4472# Find a good install program. We prefer a C program (faster), 4473# so one script is as good as another. But avoid the broken or 4474# incompatible versions: 4475# SysV /etc/install, /usr/sbin/install 4476# SunOS /usr/etc/install 4477# IRIX /sbin/install 4478# AIX /bin/install 4479# AmigaOS /C/install, which installs bootblocks on floppy discs 4480# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4481# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4482# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4483# OS/2's system install, which has a completely different semantic 4484# ./install, which can be erroneously created by make from ./install.sh. 4485# Reject install programs that cannot install multiple files. 4486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4487$as_echo_n "checking for a BSD-compatible install... " >&6; } 4488if test -z "$INSTALL"; then 4489if ${ac_cv_path_install+:} false; then : 4490 $as_echo_n "(cached) " >&6 4491else 4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4493for as_dir in $PATH 4494do 4495 IFS=$as_save_IFS 4496 test -z "$as_dir" && as_dir=. 4497 # Account for people who put trailing slashes in PATH elements. 4498case $as_dir/ in #(( 4499 ./ | .// | /[cC]/* | \ 4500 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4501 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4502 /usr/ucb/* ) ;; 4503 *) 4504 # OSF1 and SCO ODT 3.0 have their own names for install. 4505 # Don't use installbsd from OSF since it installs stuff as root 4506 # by default. 4507 for ac_prog in ginstall scoinst install; do 4508 for ac_exec_ext in '' $ac_executable_extensions; do 4509 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 4510 if test $ac_prog = install && 4511 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4512 # AIX install. It has an incompatible calling convention. 4513 : 4514 elif test $ac_prog = install && 4515 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4516 # program-specific install script used by HP pwplus--don't use. 4517 : 4518 else 4519 rm -rf conftest.one conftest.two conftest.dir 4520 echo one > conftest.one 4521 echo two > conftest.two 4522 mkdir conftest.dir 4523 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 4524 test -s conftest.one && test -s conftest.two && 4525 test -s conftest.dir/conftest.one && 4526 test -s conftest.dir/conftest.two 4527 then 4528 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4529 break 3 4530 fi 4531 fi 4532 fi 4533 done 4534 done 4535 ;; 4536esac 4537 4538 done 4539IFS=$as_save_IFS 4540 4541rm -rf conftest.one conftest.two conftest.dir 4542 4543fi 4544 if test "${ac_cv_path_install+set}" = set; then 4545 INSTALL=$ac_cv_path_install 4546 else 4547 # As a last resort, use the slow shell script. Don't cache a 4548 # value for INSTALL within a source directory, because that will 4549 # break other packages using the cache if that directory is 4550 # removed, or if the value is a relative name. 4551 INSTALL=$ac_install_sh 4552 fi 4553fi 4554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4555$as_echo "$INSTALL" >&6; } 4556 4557# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4558# It thinks the first close brace ends the variable substitution. 4559test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4560 4561test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4562 4563test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4564 4565# If $INSTALL is relative path to our fallback install-sh, then convert 4566# to an absolute path, as in some cases (e.g. Solaris VPATH build), libtool 4567# may try to use it from a changed working directory. 4568if test "$INSTALL" = "build/install-sh -c"; then 4569 INSTALL="$abs_srcdir/$INSTALL" 4570fi 4571 4572if test -z "$MKDIR"; then 4573 MKDIR="$INSTALL -d" 4574fi 4575 4576 4577# ==== Libraries, for which we may have source to build ====================== 4578 4579 4580APR_VER_REGEXES="0\.9\.[7-9] 0\.9\.1[0-9] 1\. 2\." 4581 4582 4583 APR_WANTED_REGEXES="$APR_VER_REGEXES" 4584 4585 { $as_echo "$as_me:${as_lineno-$LINENO}: Apache Portable Runtime (APR) library configuration" >&5 4586$as_echo "$as_me: Apache Portable Runtime (APR) library configuration" >&6;} 4587 4588 4589 apr_found="no" 4590 4591 if test "$ac_cv_emxos2" = "yes"; then 4592 # Scripts don't pass test -x on OS/2 4593 TEST_X="test -f" 4594 else 4595 TEST_X="test -x" 4596 fi 4597 4598 acceptable_majors="1 0" 4599 4600 apr_temp_acceptable_apr_config="" 4601 for apr_temp_major in $acceptable_majors 4602 do 4603 case $apr_temp_major in 4604 0) 4605 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-config" 4606 ;; 4607 *) 4608 apr_temp_acceptable_apr_config="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config" 4609 ;; 4610 esac 4611 done 4612 4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5 4614$as_echo_n "checking for APR... " >&6; } 4615 4616# Check whether --with-apr was given. 4617if test "${with_apr+set}" = set; then : 4618 withval=$with_apr; 4619 if test "$withval" = "no" || test "$withval" = "yes"; then 4620 as_fn_error $? "--with-apr requires a directory or file to be provided" "$LINENO" 5 4621 fi 4622 4623 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config 4624 do 4625 for lookdir in "$withval/bin" "$withval" 4626 do 4627 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then 4628 apr_found="yes" 4629 apr_config="$lookdir/$apr_temp_apr_config_file" 4630 break 2 4631 fi 4632 done 4633 done 4634 4635 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then 4636 apr_found="yes" 4637 apr_config="$withval" 4638 fi 4639 4640 if test "$apr_found" != "yes"; then 4641 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 4642 fi 4643 4644else 4645 4646 if test -d """"; then 4647 apr_temp_abs_srcdir="`cd "" && pwd`" 4648 apr_found="reconfig" 4649 apr_bundled_major="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"""/include/apr_version.h\"`" 4650 case $apr_bundled_major in 4651 "") 4652 as_fn_error $? "failed to find major version of bundled APR" "$LINENO" 5 4653 ;; 4654 0) 4655 apr_temp_apr_config_file="apr-config" 4656 ;; 4657 *) 4658 apr_temp_apr_config_file="apr-$apr_bundled_major-config" 4659 ;; 4660 esac 4661 if test -n """"; then 4662 apr_config="""/$apr_temp_apr_config_file" 4663 else 4664 apr_config="""/$apr_temp_apr_config_file" 4665 fi 4666 fi 4667 if test "$apr_found" = "no" && test -n "1" && test "1" = "1"; then 4668 for apr_temp_apr_config_file in $apr_temp_acceptable_apr_config 4669 do 4670 if $apr_temp_apr_config_file --help > /dev/null 2>&1 ; then 4671 apr_found="yes" 4672 apr_config="$apr_temp_apr_config_file" 4673 break 4674 else 4675 for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do 4676 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then 4677 apr_found="yes" 4678 apr_config="$lookdir/bin/$apr_temp_apr_config_file" 4679 break 2 4680 fi 4681 done 4682 fi 4683 done 4684 fi 4685 4686fi 4687 4688 4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5 4690$as_echo "$apr_found" >&6; } 4691 4692 4693 if test $apr_found = "no"; then 4694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APR not found" >&5 4695$as_echo "$as_me: WARNING: APR not found" >&2;} 4696 4697 echo "The Apache Portable Runtime (APR) library cannot be found." 4698 echo "Please install APR on this system and configure Subversion" 4699 echo "with the appropriate --with-apr option." 4700 echo "" 4701 echo "You probably need to do something similar with the Apache" 4702 echo "Portable Runtime Utility (APRUTIL) library and then configure" 4703 echo "Subversion with both the --with-apr and --with-apr-util options." 4704 echo "" 4705 as_fn_error $? "no suitable APR found" "$LINENO" 5 4706 4707 fi 4708 4709 if test $apr_found = "reconfig"; then 4710 as_fn_error $? "Unexpected APR reconfig" "$LINENO" 5 4711 fi 4712 4713 4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking APR version" >&5 4715$as_echo_n "checking APR version... " >&6; } 4716 apr_version="`$apr_config --version`" 4717 if test $? -ne 0; then 4718 as_fn_error $? "apr-config --version failed" "$LINENO" 5 4719 fi 4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_version" >&5 4721$as_echo "$apr_version" >&6; } 4722 4723 APR_WANTED_REGEX_MATCH=0 4724 for apr_wanted_regex in $APR_WANTED_REGEXES; do 4725 if test `expr $apr_version : $apr_wanted_regex` -ne 0; then 4726 APR_WANTED_REGEX_MATCH=1 4727 break 4728 fi 4729 done 4730 4731 if test $APR_WANTED_REGEX_MATCH -eq 0; then 4732 echo "wanted regexes are $APR_WANTED_REGEXES" 4733 as_fn_error $? "invalid apr version found" "$LINENO" 5 4734 fi 4735 4736 4737 CPPFLAGS="$CPPFLAGS `$apr_config --cppflags`" 4738 if test $? -ne 0; then 4739 as_fn_error $? "apr-config --cppflags failed" "$LINENO" 5 4740 fi 4741 4742 CFLAGS="$CFLAGS `$apr_config --cflags`" 4743 if test $? -ne 0; then 4744 as_fn_error $? "apr-config --cflags failed" "$LINENO" 5 4745 fi 4746 4747 apr_ldflags="`$apr_config --ldflags`" 4748 if test $? -ne 0; then 4749 as_fn_error $? "apr-config --ldflags failed" "$LINENO" 5 4750 fi 4751 LDFLAGS="$LDFLAGS ` 4752 input_flags="$apr_ldflags" 4753 output_flags="" 4754 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 4755 for flag in $input_flags; do 4756 filter="no" 4757 for dir in $filtered_dirs; do 4758 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 4759 filter="yes" 4760 break 4761 fi 4762 done 4763 if test "$filter" = "no"; then 4764 output_flags="$output_flags $flag" 4765 fi 4766 done 4767 if test -n "$output_flags"; then 4768 printf "%s" "${output_flags# }" 4769 fi 4770`" 4771 4772 SVN_APR_INCLUDES="`$apr_config --includes`" 4773 if test $? -ne 0; then 4774 as_fn_error $? "apr-config --includes failed" "$LINENO" 5 4775 fi 4776 4777 if test "$enable_all_static" = "yes"; then 4778 SVN_APR_LIBS="`$apr_config --link-ld --libs`" 4779 if test $? -ne 0; then 4780 as_fn_error $? "apr-config --link-ld --libs failed" "$LINENO" 5 4781 fi 4782 else 4783 SVN_APR_LIBS="`$apr_config --link-ld`" 4784 if test $? -ne 0; then 4785 as_fn_error $? "apr-config --link-ld failed" "$LINENO" 5 4786 fi 4787 fi 4788 SVN_APR_LIBS="` 4789 input_flags="$SVN_APR_LIBS" 4790 output_flags="" 4791 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 4792 for flag in $input_flags; do 4793 filter="no" 4794 for dir in $filtered_dirs; do 4795 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 4796 filter="yes" 4797 break 4798 fi 4799 done 4800 if test "$filter" = "no"; then 4801 output_flags="$output_flags $flag" 4802 fi 4803 done 4804 if test -n "$output_flags"; then 4805 printf "%s" "${output_flags# }" 4806 fi 4807`" 4808 4809 SVN_APR_SHLIB_PATH_VAR="`$apr_config --shlib-path-var`" 4810 if test $? -ne 0; then 4811 as_fn_error $? "apr-config --shlib-path-var failed" "$LINENO" 5 4812 fi 4813 4814 SVN_APR_CONFIG="$apr_config" 4815 4816 4817 4818 4819 4820 4821if test `expr $apr_version : 2` -ne 0; then 4822 svn_lib_ver=2 4823 apu_config=$apr_config 4824 4825 SVN_APRUTIL_CONFIG="$apu_config" 4826 4827 4828else 4829 svn_lib_ver=0 4830 APU_VER_REGEXES="0\.9\.[7-9] 0\.9\.1[0-9] 1\." 4831 4832 APRUTIL_WANTED_REGEXES="$APU_VER_REGEXES" 4833 4834 { $as_echo "$as_me:${as_lineno-$LINENO}: Apache Portable Runtime Utility (APRUTIL) library configuration" >&5 4835$as_echo "$as_me: Apache Portable Runtime Utility (APRUTIL) library configuration" >&6;} 4836 4837 4838 apu_found="no" 4839 4840 if test "$ac_cv_emxos2" = "yes"; then 4841 # Scripts don't pass test -x on OS/2 4842 TEST_X="test -f" 4843 else 4844 TEST_X="test -x" 4845 fi 4846 4847 acceptable_majors="1 0" 4848 4849 apu_temp_acceptable_apu_config="" 4850 for apu_temp_major in $acceptable_majors 4851 do 4852 case $apu_temp_major in 4853 0) 4854 apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-config" 4855 ;; 4856 *) 4857 apu_temp_acceptable_apu_config="$apu_temp_acceptable_apu_config apu-$apu_temp_major-config" 4858 ;; 4859 esac 4860 done 4861 4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR-util" >&5 4863$as_echo_n "checking for APR-util... " >&6; } 4864 4865# Check whether --with-apr-util was given. 4866if test "${with_apr_util+set}" = set; then : 4867 withval=$with_apr_util; 4868 if test "$withval" = "no" || test "$withval" = "yes"; then 4869 as_fn_error $? "--with-apr-util requires a directory or file to be provided" "$LINENO" 5 4870 fi 4871 4872 for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config 4873 do 4874 for lookdir in "$withval/bin" "$withval" 4875 do 4876 if $TEST_X "$lookdir/$apu_temp_apu_config_file"; then 4877 apu_found="yes" 4878 apu_config="$lookdir/$apu_temp_apu_config_file" 4879 break 2 4880 fi 4881 done 4882 done 4883 4884 if test "$apu_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev/null 2>&1 ; then 4885 apu_found="yes" 4886 apu_config="$withval" 4887 fi 4888 4889 if test "$apu_found" != "yes"; then 4890 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 4891 fi 4892 4893else 4894 4895 if test -d """"; then 4896 apu_temp_abs_srcdir="`cd "" && pwd`" 4897 apu_found="reconfig" 4898 apu_bundled_major="`sed -n '/#define.*APU_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"""/include/apu_version.h\"`" 4899 case $apu_bundled_major in 4900 "") 4901 as_fn_error $? "failed to find major version of bundled APU" "$LINENO" 5 4902 ;; 4903 0) 4904 apu_temp_apu_config_file="apu-config" 4905 ;; 4906 *) 4907 apu_temp_apu_config_file="apu-$apu_bundled_major-config" 4908 ;; 4909 esac 4910 if test -n """"; then 4911 apu_config="""/$apu_temp_apu_config_file" 4912 else 4913 apu_config="""/$apu_temp_apu_config_file" 4914 fi 4915 fi 4916 if test "$apu_found" = "no" && test -n "1" && test "1" = "1"; then 4917 for apu_temp_apu_config_file in $apu_temp_acceptable_apu_config 4918 do 4919 if $apu_temp_apu_config_file --help > /dev/null 2>&1 ; then 4920 apu_found="yes" 4921 apu_config="$apu_temp_apu_config_file" 4922 break 4923 else 4924 for lookdir in /usr /usr/local /opt/apr /usr/local/apache2 ; do 4925 if $TEST_X "$lookdir/bin/$apu_temp_apu_config_file"; then 4926 apu_found="yes" 4927 apu_config="$lookdir/bin/$apu_temp_apu_config_file" 4928 break 2 4929 fi 4930 done 4931 fi 4932 done 4933 fi 4934 4935fi 4936 4937 4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_found" >&5 4939$as_echo "$apu_found" >&6; } 4940 4941 4942 if test $apu_found = "no"; then 4943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: APRUTIL not found" >&5 4944$as_echo "$as_me: WARNING: APRUTIL not found" >&2;} 4945 4946 echo "The Apache Portable Runtime Utility (APRUTIL) library cannot be found." 4947 echo "Install APRUTIL on this system and configure Subversion with the" 4948 echo " appropriate --with-apr-util option." 4949 echo "" 4950 as_fn_error $? "no suitable APRUTIL found" "$LINENO" 5 4951 4952 fi 4953 4954 if test $apu_found = "reconfig"; then 4955 as_fn_error $? "Unexpected APRUTIL reconfig" "$LINENO" 5 4956 fi 4957 4958 4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking APRUTIL version" >&5 4960$as_echo_n "checking APRUTIL version... " >&6; } 4961 apu_version="`$apu_config --version`" 4962 if test $? -ne 0; then 4963 # This is a hack as suggested by Ben Collins-Sussman. It can be 4964 # removed after apache 2.0.44 has been released. (The apu-config 4965 # shipped in 2.0.43 contains a correct version number, but 4966 # stupidly doesn't understand the --version switch.) 4967 apu_version=`grep "APRUTIL_DOTTED_VERSION=" $(which $apu_config) | tr -d "APRUTIL_DOTTED_VERSION="| tr -d '"'` 4968 #AC_MSG_ERROR([ 4969 # apu-config --version failed. 4970 # Your apu-config doesn't support the --version switch, please upgrade 4971 # to APR-UTIL more recent than 2002-Nov-05.]) 4972 fi 4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apu_version" >&5 4974$as_echo "$apu_version" >&6; } 4975 4976 APU_WANTED_REGEX_MATCH=0 4977 for apu_wanted_regex in $APRUTIL_WANTED_REGEXES; do 4978 if test `expr $apu_version : $apu_wanted_regex` -ne 0; then 4979 APU_WANTED_REGEX_MATCH=1 4980 break 4981 fi 4982 done 4983 4984 if test $APU_WANTED_REGEX_MATCH -eq 0; then 4985 echo "wanted regexes are $APRUTIL_WANTED_REGEXES" 4986 as_fn_error $? "invalid APRUTIL version found" "$LINENO" 5 4987 fi 4988 4989 4990 apu_ldflags="`$apu_config --ldflags`" 4991 if test $? -ne 0; then 4992 as_fn_error $? "apu-config --ldflags failed" "$LINENO" 5 4993 fi 4994 LDFLAGS="$LDFLAGS ` 4995 input_flags="$apu_ldflags" 4996 output_flags="" 4997 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 4998 for flag in $input_flags; do 4999 filter="no" 5000 for dir in $filtered_dirs; do 5001 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 5002 filter="yes" 5003 break 5004 fi 5005 done 5006 if test "$filter" = "no"; then 5007 output_flags="$output_flags $flag" 5008 fi 5009 done 5010 if test -n "$output_flags"; then 5011 printf "%s" "${output_flags# }" 5012 fi 5013`" 5014 5015 SVN_APRUTIL_INCLUDES="`$apu_config --includes`" 5016 if test $? -ne 0; then 5017 as_fn_error $? "apu-config --includes failed" "$LINENO" 5 5018 fi 5019 5020 if test "$enable_all_static" = "yes"; then 5021 SVN_APRUTIL_LIBS="`$apu_config --link-ld --libs`" 5022 if test $? -ne 0; then 5023 as_fn_error $? "apu-config --link-ld --libs failed" "$LINENO" 5 5024 fi 5025 else 5026 SVN_APRUTIL_LIBS="`$apu_config --link-ld`" 5027 if test $? -ne 0; then 5028 as_fn_error $? "apu-config --link-ld failed" "$LINENO" 5 5029 fi 5030 fi 5031 SVN_APRUTIL_LIBS="` 5032 input_flags="$SVN_APRUTIL_LIBS" 5033 output_flags="" 5034 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 5035 for flag in $input_flags; do 5036 filter="no" 5037 for dir in $filtered_dirs; do 5038 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 5039 filter="yes" 5040 break 5041 fi 5042 done 5043 if test "$filter" = "no"; then 5044 output_flags="$output_flags $flag" 5045 fi 5046 done 5047 if test -n "$output_flags"; then 5048 printf "%s" "${output_flags# }" 5049 fi 5050`" 5051 5052 5053 SVN_APRUTIL_CONFIG="$apu_config" 5054 5055 5056 5057 SVN_HAVE_OLD_EXPAT="`$apu_config --old-expat`" 5058 if test "$SVN_HAVE_OLD_EXPAT" = "yes"; then 5059 5060$as_echo "#define SVN_HAVE_OLD_EXPAT 1" >>confdefs.h 5061 5062 fi 5063 5064fi 5065SVN_LT_SOVERSION="-version-info $svn_lib_ver" 5066 5067 5068cat >>confdefs.h <<_ACEOF 5069#define SVN_SOVERSION $svn_lib_ver 5070_ACEOF 5071 5072 5073# Extract the first word of "pkg-config", so it can be a program name with args. 5074set dummy pkg-config; ac_word=$2 5075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5076$as_echo_n "checking for $ac_word... " >&6; } 5077if ${ac_cv_path_PKG_CONFIG+:} false; then : 5078 $as_echo_n "(cached) " >&6 5079else 5080 case $PKG_CONFIG in 5081 [\\/]* | ?:[\\/]*) 5082 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5083 ;; 5084 *) 5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5086for as_dir in $PATH 5087do 5088 IFS=$as_save_IFS 5089 test -z "$as_dir" && as_dir=. 5090 for ac_exec_ext in '' $ac_executable_extensions; do 5091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5092 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5094 break 2 5095 fi 5096done 5097 done 5098IFS=$as_save_IFS 5099 5100 ;; 5101esac 5102fi 5103PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5104if test -n "$PKG_CONFIG"; then 5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 5106$as_echo "$PKG_CONFIG" >&6; } 5107else 5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5109$as_echo "no" >&6; } 5110fi 5111 5112 5113 5114 5115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5116$as_echo_n "checking for ANSI C header files... " >&6; } 5117if ${ac_cv_header_stdc+:} false; then : 5118 $as_echo_n "(cached) " >&6 5119else 5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5121/* end confdefs.h. */ 5122#include <stdlib.h> 5123#include <stdarg.h> 5124#include <string.h> 5125#include <float.h> 5126 5127int 5128main () 5129{ 5130 5131 ; 5132 return 0; 5133} 5134_ACEOF 5135if ac_fn_c_try_compile "$LINENO"; then : 5136 ac_cv_header_stdc=yes 5137else 5138 ac_cv_header_stdc=no 5139fi 5140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5141 5142if test $ac_cv_header_stdc = yes; then 5143 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5145/* end confdefs.h. */ 5146#include <string.h> 5147 5148_ACEOF 5149if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5150 $EGREP "memchr" >/dev/null 2>&1; then : 5151 5152else 5153 ac_cv_header_stdc=no 5154fi 5155rm -f conftest* 5156 5157fi 5158 5159if test $ac_cv_header_stdc = yes; then 5160 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5162/* end confdefs.h. */ 5163#include <stdlib.h> 5164 5165_ACEOF 5166if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5167 $EGREP "free" >/dev/null 2>&1; then : 5168 5169else 5170 ac_cv_header_stdc=no 5171fi 5172rm -f conftest* 5173 5174fi 5175 5176if test $ac_cv_header_stdc = yes; then 5177 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5178 if test "$cross_compiling" = yes; then : 5179 : 5180else 5181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5182/* end confdefs.h. */ 5183#include <ctype.h> 5184#include <stdlib.h> 5185#if ((' ' & 0x0FF) == 0x020) 5186# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5187# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5188#else 5189# define ISLOWER(c) \ 5190 (('a' <= (c) && (c) <= 'i') \ 5191 || ('j' <= (c) && (c) <= 'r') \ 5192 || ('s' <= (c) && (c) <= 'z')) 5193# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5194#endif 5195 5196#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5197int 5198main () 5199{ 5200 int i; 5201 for (i = 0; i < 256; i++) 5202 if (XOR (islower (i), ISLOWER (i)) 5203 || toupper (i) != TOUPPER (i)) 5204 return 2; 5205 return 0; 5206} 5207_ACEOF 5208if ac_fn_c_try_run "$LINENO"; then : 5209 5210else 5211 ac_cv_header_stdc=no 5212fi 5213rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5214 conftest.$ac_objext conftest.beam conftest.$ac_ext 5215fi 5216 5217fi 5218fi 5219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5220$as_echo "$ac_cv_header_stdc" >&6; } 5221if test $ac_cv_header_stdc = yes; then 5222 5223$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5224 5225fi 5226 5227# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5228for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5229 inttypes.h stdint.h unistd.h 5230do : 5231 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5232ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5233" 5234if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5235 cat >>confdefs.h <<_ACEOF 5236#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5237_ACEOF 5238 5239fi 5240 5241done 5242 5243 5244 5245 serf_found=no 5246 serf_required=no 5247 serf_skip=no 5248 5249 serf_check_major="1" 5250 serf_check_minor="2" 5251 serf_check_patch="1" 5252 serf_check_version="1.2.1" 5253 5254 5255# Check whether --with-serf was given. 5256if test "${with_serf+set}" = set; then : 5257 withval=$with_serf; 5258 if test "$withval" = "yes" ; then 5259 serf_required=yes 5260 elif test "$withval" = "no" ; then 5261 serf_skip=yes 5262 else 5263 5264 { $as_echo "$as_me:${as_lineno-$LINENO}: serf library configuration via prefix" >&5 5265$as_echo "$as_me: serf library configuration via prefix" >&6;} 5266 serf_required=yes 5267 serf_prefix=$withval 5268 for serf_major in serf-2 serf-1; do 5269 if ! test -d $serf_prefix/include/$serf_major; then continue; fi 5270 save_cppflags="$CPPFLAGS" 5271 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES -I$serf_prefix/include/$serf_major" 5272 for ac_header in serf.h 5273do : 5274 ac_fn_c_check_header_mongrel "$LINENO" "serf.h" "ac_cv_header_serf_h" "$ac_includes_default" 5275if test "x$ac_cv_header_serf_h" = xyes; then : 5276 cat >>confdefs.h <<_ACEOF 5277#define HAVE_SERF_H 1 5278_ACEOF 5279 5280 save_ldflags="$LDFLAGS" 5281 LDFLAGS="$LDFLAGS -L$serf_prefix/lib" 5282 as_ac_Lib=`$as_echo "ac_cv_lib_$serf_major''_serf_context_create" | $as_tr_sh` 5283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for serf_context_create in -l$serf_major" >&5 5284$as_echo_n "checking for serf_context_create in -l$serf_major... " >&6; } 5285if eval \${$as_ac_Lib+:} false; then : 5286 $as_echo_n "(cached) " >&6 5287else 5288 ac_check_lib_save_LIBS=$LIBS 5289LIBS="-l$serf_major $SVN_APRUTIL_LIBS $SVN_APR_LIBS -lz $LIBS" 5290cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5291/* end confdefs.h. */ 5292 5293/* Override any GCC internal prototype to avoid an error. 5294 Use char because int might match the return type of a GCC 5295 builtin and then its argument prototype would still apply. */ 5296#ifdef __cplusplus 5297extern "C" 5298#endif 5299char serf_context_create (); 5300int 5301main () 5302{ 5303return serf_context_create (); 5304 ; 5305 return 0; 5306} 5307_ACEOF 5308if ac_fn_c_try_link "$LINENO"; then : 5309 eval "$as_ac_Lib=yes" 5310else 5311 eval "$as_ac_Lib=no" 5312fi 5313rm -f core conftest.err conftest.$ac_objext \ 5314 conftest$ac_exeext conftest.$ac_ext 5315LIBS=$ac_check_lib_save_LIBS 5316fi 5317eval ac_res=\$$as_ac_Lib 5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5319$as_echo "$ac_res" >&6; } 5320if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 5321 5322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5323/* end confdefs.h. */ 5324 5325#include <stdlib.h> 5326#include "serf.h" 5327 5328int 5329main () 5330{ 5331 5332#if ! SERF_VERSION_AT_LEAST($serf_check_major, $serf_check_minor, $serf_check_patch) 5333#error Serf version too old: need $serf_check_version 5334#endif 5335 5336 ; 5337 return 0; 5338} 5339_ACEOF 5340if ac_fn_c_try_compile "$LINENO"; then : 5341 serf_found=yes 5342else 5343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Serf version too old: need $serf_check_version" >&5 5344$as_echo "$as_me: WARNING: Serf version too old: need $serf_check_version" >&2;} 5345 serf_found=no 5346fi 5347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5348fi 5349 5350 LDFLAGS="$save_ldflags" 5351fi 5352 5353done 5354 5355 CPPFLAGS="$save_cppflags" 5356 test $serf_found = yes && break 5357 done 5358 5359 if test $serf_found = "yes"; then 5360 SVN_SERF_INCLUDES="-I$serf_prefix/include/$serf_major" 5361 if test -e "$serf_prefix/lib/lib$serf_major.la"; then 5362 SVN_SERF_LIBS="$serf_prefix/lib/lib$serf_major.la" 5363 else 5364 SVN_SERF_LIBS="-l$serf_major" 5365 LDFLAGS="$LDFLAGS -L$serf_prefix/lib" 5366 fi 5367 fi 5368 5369 fi 5370 5371fi 5372 5373 5374 if test "$serf_skip" = "no" ; then 5375 if test "$serf_found" = "no" ; then 5376 5377 { $as_echo "$as_me:${as_lineno-$LINENO}: serf library configuration via pkg-config" >&5 5378$as_echo "$as_me: serf library configuration via pkg-config" >&6;} 5379 if test -n "$PKG_CONFIG"; then 5380 for serf_major in serf-2 serf-1; do 5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $serf_major library" >&5 5382$as_echo_n "checking for $serf_major library... " >&6; } 5383 if $PKG_CONFIG $serf_major --exists; then 5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5385$as_echo "yes" >&6; } 5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking serf library version" >&5 5387$as_echo_n "checking serf library version... " >&6; } 5388 SERF_VERSION=`$PKG_CONFIG $serf_major --modversion` 5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SERF_VERSION" >&5 5390$as_echo "$SERF_VERSION" >&6; } 5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking serf version is suitable" >&5 5392$as_echo_n "checking serf version is suitable... " >&6; } 5393 if $PKG_CONFIG $serf_major --atleast-version=$serf_check_version; then 5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5395$as_echo "yes" >&6; } 5396 serf_found=yes 5397 SVN_SERF_INCLUDES=`$PKG_CONFIG $serf_major --cflags | $SED -e 's/-D[^ ]*//g'` 5398 SVN_SERF_LIBS=`$PKG_CONFIG $serf_major --libs` 5399 break 5400 else 5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5402$as_echo "no" >&6; } 5403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Serf version too old: need $serf_check_version" >&5 5404$as_echo "$as_me: WARNING: Serf version too old: need $serf_check_version" >&2;} 5405 fi 5406 else 5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5408$as_echo "no" >&6; } 5409 fi 5410 done 5411 fi 5412 5413 fi 5414 5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking was serf enabled" >&5 5416$as_echo_n "checking was serf enabled... " >&6; } 5417 if test "$serf_found" = "yes"; then 5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5419$as_echo "yes" >&6; } 5420 else 5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5422$as_echo "no" >&6; } 5423 5424 echo "" 5425 echo "An appropriate version of serf could not be found, so libsvn_ra_serf" 5426 echo "will not be built. If you want to build libsvn_ra_serf, please" 5427 echo "install serf $serf_check_version or newer." 5428 echo "" 5429 5430 if test "$serf_required" = "yes"; then 5431 as_fn_error $? "Serf was explicitly enabled but an appropriate version was not found." "$LINENO" 5 5432 fi 5433 fi 5434 fi 5435 5436 svn_lib_serf=$serf_found 5437 5438 5439 5440 5441 5442if test "$svn_lib_serf" = "yes"; then 5443 5444$as_echo "#define SVN_HAVE_SERF 1" >>confdefs.h 5445 5446fi 5447 5448 5449 apr_memcache_found=no 5450 5451 5452# Check whether --with-apr_memcache was given. 5453if test "${with_apr_memcache+set}" = set; then : 5454 withval=$with_apr_memcache; 5455 if test "$withval" = "yes" ; then 5456 as_fn_error $? "--with-apr_memcache requires an argument." "$LINENO" 5 5457 else 5458 { $as_echo "$as_me:${as_lineno-$LINENO}: looking for separate apr_memcache package" >&5 5459$as_echo "$as_me: looking for separate apr_memcache package" >&6;} 5460 apr_memcache_prefix=$withval 5461 save_cppflags="$CPPFLAGS" 5462 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES -I$apr_memcache_prefix/include/apr_memcache-0" 5463 ac_fn_c_check_header_mongrel "$LINENO" "apr_memcache.h" "ac_cv_header_apr_memcache_h" "$ac_includes_default" 5464if test "x$ac_cv_header_apr_memcache_h" = xyes; then : 5465 5466 save_ldflags="$LDFLAGS" 5467 LDFLAGS="$LDFLAGS -L$apr_memcache_prefix/lib" 5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_memcache_create in -lapr_memcache" >&5 5469$as_echo_n "checking for apr_memcache_create in -lapr_memcache... " >&6; } 5470if ${ac_cv_lib_apr_memcache_apr_memcache_create+:} false; then : 5471 $as_echo_n "(cached) " >&6 5472else 5473 ac_check_lib_save_LIBS=$LIBS 5474LIBS="-lapr_memcache $LIBS" 5475cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5476/* end confdefs.h. */ 5477 5478/* Override any GCC internal prototype to avoid an error. 5479 Use char because int might match the return type of a GCC 5480 builtin and then its argument prototype would still apply. */ 5481#ifdef __cplusplus 5482extern "C" 5483#endif 5484char apr_memcache_create (); 5485int 5486main () 5487{ 5488return apr_memcache_create (); 5489 ; 5490 return 0; 5491} 5492_ACEOF 5493if ac_fn_c_try_link "$LINENO"; then : 5494 ac_cv_lib_apr_memcache_apr_memcache_create=yes 5495else 5496 ac_cv_lib_apr_memcache_apr_memcache_create=no 5497fi 5498rm -f core conftest.err conftest.$ac_objext \ 5499 conftest$ac_exeext conftest.$ac_ext 5500LIBS=$ac_check_lib_save_LIBS 5501fi 5502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_apr_memcache_apr_memcache_create" >&5 5503$as_echo "$ac_cv_lib_apr_memcache_apr_memcache_create" >&6; } 5504if test "x$ac_cv_lib_apr_memcache_apr_memcache_create" = xyes; then : 5505 apr_memcache_found="standalone" 5506fi 5507 5508 LDFLAGS="$save_ldflags" 5509fi 5510 5511 5512 CPPFLAGS="$save_cppflags" 5513 fi 5514 5515else 5516 5517 { $as_echo "$as_me:${as_lineno-$LINENO}: looking for apr_memcache as part of apr-util" >&5 5518$as_echo "$as_me: looking for apr_memcache as part of apr-util" >&6;} 5519 save_cppflags="$CPPFLAGS" 5520 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES $SVN_APRUTIL_INCLUDES" 5521 ac_fn_c_check_header_mongrel "$LINENO" "apr_memcache.h" "ac_cv_header_apr_memcache_h" "$ac_includes_default" 5522if test "x$ac_cv_header_apr_memcache_h" = xyes; then : 5523 5524 save_ldflags="$LDFLAGS" 5525 LDFLAGS="$LDFLAGS $SVN_APRUTIL_LIBS" 5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_memcache_create in -laprutil-1" >&5 5527$as_echo_n "checking for apr_memcache_create in -laprutil-1... " >&6; } 5528if ${ac_cv_lib_aprutil_1_apr_memcache_create+:} false; then : 5529 $as_echo_n "(cached) " >&6 5530else 5531 ac_check_lib_save_LIBS=$LIBS 5532LIBS="-laprutil-1 $LIBS" 5533cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5534/* end confdefs.h. */ 5535 5536/* Override any GCC internal prototype to avoid an error. 5537 Use char because int might match the return type of a GCC 5538 builtin and then its argument prototype would still apply. */ 5539#ifdef __cplusplus 5540extern "C" 5541#endif 5542char apr_memcache_create (); 5543int 5544main () 5545{ 5546return apr_memcache_create (); 5547 ; 5548 return 0; 5549} 5550_ACEOF 5551if ac_fn_c_try_link "$LINENO"; then : 5552 ac_cv_lib_aprutil_1_apr_memcache_create=yes 5553else 5554 ac_cv_lib_aprutil_1_apr_memcache_create=no 5555fi 5556rm -f core conftest.err conftest.$ac_objext \ 5557 conftest$ac_exeext conftest.$ac_ext 5558LIBS=$ac_check_lib_save_LIBS 5559fi 5560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aprutil_1_apr_memcache_create" >&5 5561$as_echo "$ac_cv_lib_aprutil_1_apr_memcache_create" >&6; } 5562if test "x$ac_cv_lib_aprutil_1_apr_memcache_create" = xyes; then : 5563 apr_memcache_found="aprutil" 5564fi 5565 5566 LDFLAGS="$save_ldflags" 5567fi 5568 5569 5570 CPPFLAGS="$save_cppflags" 5571 5572fi 5573 5574 5575 5576 if test $apr_memcache_found = "standalone"; then 5577 SVN_APR_MEMCACHE_INCLUDES="-I$apr_memcache_prefix/include/apr_memcache-0" 5578 SVN_APR_MEMCACHE_LIBS="$apr_memcache_prefix/lib/libapr_memcache.la" 5579 svn_lib_apr_memcache=yes 5580 elif test $apr_memcache_found = "aprutil"; then 5581 SVN_APR_MEMCACHE_INCLUDES="" 5582 SVN_APR_MEMCACHE_LIBS="" 5583 svn_lib_apr_memcache=yes 5584 elif test $apr_memcache_found = "reconfig"; then 5585 svn_lib_apr_memcache=yes 5586 else 5587 svn_lib_apr_memcache=no 5588 fi 5589 5590 5591 5592 5593 5594if test "$svn_lib_apr_memcache" = "yes"; then 5595 5596$as_echo "#define SVN_HAVE_MEMCACHE 1" >>confdefs.h 5597 5598fi 5599 5600 5601 5602 5603 5604HTTPD_WANTED_MMN="20020903" 5605 5606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache module support via DSO through APXS" >&5 5607$as_echo_n "checking for Apache module support via DSO through APXS... " >&6; } 5608 5609# Check whether --with-apxs was given. 5610if test "${with_apxs+set}" = set; then : 5611 withval=$with_apxs; 5612 if test "$withval" = "yes"; then 5613 APXS=apxs 5614 else 5615 APXS="$withval" 5616 fi 5617 APXS_EXPLICIT=1 5618 5619fi 5620 5621 5622if test -z "$APXS"; then 5623 for i in /usr/sbin /usr/local/apache/bin /usr/local/apache2/bin /usr/bin ; do 5624 if test -f "$i/apxs2"; then 5625 APXS="$i/apxs2" 5626 break 5627 fi 5628 if test -f "$i/apxs"; then 5629 APXS="$i/apxs" 5630 break 5631 fi 5632 done 5633fi 5634 5635if test -n "$APXS" && test "$APXS" != "no"; then 5636 APXS_INCLUDE="`$APXS -q INCLUDEDIR`" 5637 if test -r $APXS_INCLUDE/mod_dav.h; then 5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at $APXS" >&5 5639$as_echo "found at $APXS" >&6; } 5640 5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking httpd version" >&5 5642$as_echo_n "checking httpd version... " >&6; } 5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5644/* end confdefs.h. */ 5645 5646#include "$APXS_INCLUDE/ap_mmn.h" 5647#if AP_MODULE_MAGIC_AT_LEAST($HTTPD_WANTED_MMN,0) 5648VERSION_OKAY 5649#endif 5650_ACEOF 5651if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5652 $EGREP "VERSION_OKAY" >/dev/null 2>&1; then : 5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: recent enough" >&5 5654$as_echo "recent enough" >&6; } 5655else 5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: apache too old: mmn must be at least $HTTPD_WANTED_MMN" >&5 5657$as_echo "apache too old: mmn must be at least $HTTPD_WANTED_MMN" >&6; } 5658 if test "$APXS_EXPLICIT" != ""; then 5659 as_fn_error $? "Apache APXS build explicitly requested, but apache version is too old" "$LINENO" 5 5660 fi 5661 APXS="" 5662 5663fi 5664rm -f conftest* 5665 5666 5667 elif test "$APXS_EXPLICIT" != ""; then 5668 as_fn_error $? "no - APXS refers to an old version of Apache 5669 Unable to locate $APXS_INCLUDE/mod_dav.h" "$LINENO" 5 5670 else 5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - Unable to locate $APXS_INCLUDE/mod_dav.h" >&5 5672$as_echo "no - Unable to locate $APXS_INCLUDE/mod_dav.h" >&6; } 5673 APXS="" 5674 fi 5675else 5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5677$as_echo "no" >&6; } 5678fi 5679 5680if test -n "$APXS" && test "$APXS" != "no"; then 5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Apache version is compatible with APR version" >&5 5682$as_echo_n "checking whether Apache version is compatible with APR version... " >&6; } 5683 apr_major_version="${apr_version%%.*}" 5684 case "$apr_major_version" in 5685 0) 5686 apache_minor_version_wanted_regex="0" 5687 ;; 5688 1) 5689 apache_minor_version_wanted_regex="[1-5]" 5690 ;; 5691 2) 5692 apache_minor_version_wanted_regex="[3-5]" 5693 ;; 5694 *) 5695 as_fn_error $? "unknown APR version" "$LINENO" 5 5696 ;; 5697 esac 5698 old_CPPFLAGS="$CPPFLAGS" 5699 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES" 5700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5701/* end confdefs.h. */ 5702 5703#include "$APXS_INCLUDE/ap_release.h" 5704apache_minor_version=AP_SERVER_MINORVERSION 5705_ACEOF 5706if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5707 $EGREP "apache_minor_version= *\"$apache_minor_version_wanted_regex\"" >/dev/null 2>&1; then : 5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5709$as_echo "yes" >&6; } 5710else 5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5712$as_echo "no" >&6; } 5713 as_fn_error $? "Apache version incompatible with APR version" "$LINENO" 5 5714fi 5715rm -f conftest* 5716 5717 CPPFLAGS="$old_CPPFLAGS" 5718fi 5719 5720 5721# Check whether --with-apache-libexecdir was given. 5722if test "${with_apache_libexecdir+set}" = set; then : 5723 withval=$with_apache_libexecdir; APACHE_LIBEXECDIR="$withval" 5724else 5725 APACHE_LIBEXECDIR='no' 5726fi 5727 5728 5729INSTALL_APACHE_MODS=false 5730if test -n "$APXS" && test "$APXS" != "no"; then 5731 APXS_CC="`$APXS -q CC`" 5732 APACHE_INCLUDES="$APACHE_INCLUDES -I$APXS_INCLUDE" 5733 5734 if test "$APACHE_LIBEXECDIR" = 'no'; then 5735 APACHE_LIBEXECDIR="$libexecdir" 5736 elif test "$APACHE_LIBEXECDIR" = 'yes'; then 5737 APACHE_LIBEXECDIR="`$APXS -q libexecdir`" 5738 fi 5739 5740 BUILD_APACHE_RULE=apache-mod 5741 INSTALL_APACHE_RULE=install-mods-shared 5742 INSTALL_APACHE_MODS=true 5743 5744 case $host in 5745 *-*-cygwin*) 5746 APACHE_LDFLAGS="-shrext .so" 5747 ;; 5748 esac 5749elif test x"$APXS" != x"no"; then 5750 echo "==================================================================" 5751 echo "WARNING: skipping the build of mod_dav_svn" 5752 echo " try using --with-apxs" 5753 echo "==================================================================" 5754fi 5755 5756 5757 5758 5759 5760 5761 5762# there aren't any flags that interest us ... 5763#if test -n "$APXS" && test "$APXS" != "no"; then 5764# CFLAGS="$CFLAGS `$APXS -q CFLAGS CFLAGS_SHLIB`" 5765#fi 5766 5767if test -n "$APXS_CC" && test "$APXS_CC" != "$CC" ; then 5768 echo "==================================================================" 5769 echo "WARNING: You have chosen to compile Subversion with a different" 5770 echo " compiler than the one used to compile Apache." 5771 echo "" 5772 echo " Current compiler: $CC" 5773 echo " Apache's compiler: $APXS_CC" 5774 echo "" 5775 echo "This could cause some problems." 5776 echo "==================================================================" 5777fi 5778 5779 5780 5781SQLITE_MINIMUM_VER="3.7.12" 5782SQLITE_RECOMMENDED_VER="3.7.15.1" 5783SQLITE_URL="http://www.sqlite.org/sqlite-amalgamation-$(printf %d%02d%02d%02d $(echo ${SQLITE_RECOMMENDED_VER} | sed -e 's/\./ /g')).zip" 5784 5785 5786 SQLITE_MINIMUM_VER="${SQLITE_MINIMUM_VER}" 5787 SQLITE_RECOMMENDED_VER="${SQLITE_RECOMMENDED_VER}" 5788 SQLITE_URL="${SQLITE_URL}" 5789 SQLITE_PKGNAME="sqlite3" 5790 5791 5792 5793 version_string="$SQLITE_MINIMUM_VER" 5794 5795 major=`expr $version_string : '\([0-9]*\)'` 5796 minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'` 5797 micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'` 5798 if test -z "$micro"; then 5799 micro=0 5800 fi 5801 sqlite_min_ver_num=`expr $major \* 1000000 \ 5802 \+ $minor \* 1000 \ 5803 \+ $micro` 5804 5805 5806 5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library" >&5 5808$as_echo "$as_me: checking sqlite library" >&6;} 5809 5810 5811# Check whether --with-sqlite was given. 5812if test "${with_sqlite+set}" = set; then : 5813 withval=$with_sqlite; 5814 if test "$withval" = "yes" ; then 5815 as_fn_error $? "--with-sqlite requires an argument." "$LINENO" 5 5816 else 5817 sqlite_dir="$withval" 5818 fi 5819 5820 if test -d $sqlite_dir; then 5821 5822 if test -z "$sqlite_dir"; then 5823 sqlite_dir="" 5824 sqlite_include="sqlite3.h" 5825 else 5826 sqlite_dir="$sqlite_dir" 5827 sqlite_include="$sqlite_dir/include/sqlite3.h" 5828 fi 5829 5830 save_CPPFLAGS="$CPPFLAGS" 5831 save_LDFLAGS="$LDFLAGS" 5832 5833 if test ! -z "$sqlite_dir"; then 5834 CPPFLAGS="$CPPFLAGS -I$sqlite_dir/include" 5835 LDFLAGS="$LDFLAGS -L$sqlite_dir/lib" 5836 fi 5837 5838 ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default" 5839if test "x$ac_cv_header_sqlite3_h" = xyes; then : 5840 5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via header)" >&5 5842$as_echo_n "checking sqlite library version (via header)... " >&6; } 5843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5844/* end confdefs.h. */ 5845 5846#include "$sqlite_include" 5847#if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num 5848SQLITE_VERSION_OKAY 5849#endif 5850_ACEOF 5851if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5852 $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then : 5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5 5854$as_echo "okay" >&6; } 5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_close in -lsqlite3" >&5 5856$as_echo_n "checking for sqlite3_close in -lsqlite3... " >&6; } 5857if ${ac_cv_lib_sqlite3_sqlite3_close+:} false; then : 5858 $as_echo_n "(cached) " >&6 5859else 5860 ac_check_lib_save_LIBS=$LIBS 5861LIBS="-lsqlite3 $LIBS" 5862cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5863/* end confdefs.h. */ 5864 5865/* Override any GCC internal prototype to avoid an error. 5866 Use char because int might match the return type of a GCC 5867 builtin and then its argument prototype would still apply. */ 5868#ifdef __cplusplus 5869extern "C" 5870#endif 5871char sqlite3_close (); 5872int 5873main () 5874{ 5875return sqlite3_close (); 5876 ; 5877 return 0; 5878} 5879_ACEOF 5880if ac_fn_c_try_link "$LINENO"; then : 5881 ac_cv_lib_sqlite3_sqlite3_close=yes 5882else 5883 ac_cv_lib_sqlite3_sqlite3_close=no 5884fi 5885rm -f core conftest.err conftest.$ac_objext \ 5886 conftest$ac_exeext conftest.$ac_ext 5887LIBS=$ac_check_lib_save_LIBS 5888fi 5889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_close" >&5 5890$as_echo "$ac_cv_lib_sqlite3_sqlite3_close" >&6; } 5891if test "x$ac_cv_lib_sqlite3_sqlite3_close" = xyes; then : 5892 5893 svn_lib_sqlite="yes" 5894 if test -z "$sqlite_dir" -o ! -d "$sqlite_dir"; then 5895 SVN_SQLITE_LIBS="-lsqlite3" 5896 else 5897 SVN_SQLITE_INCLUDES="-I$sqlite_dir/include" 5898 SVN_SQLITE_LIBS="` 5899 input_flags="-L$sqlite_dir/lib -lsqlite3" 5900 output_flags="" 5901 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 5902 for flag in $input_flags; do 5903 filter="no" 5904 for dir in $filtered_dirs; do 5905 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 5906 filter="yes" 5907 break 5908 fi 5909 done 5910 if test "$filter" = "no"; then 5911 output_flags="$output_flags $flag" 5912 fi 5913 done 5914 if test -n "$output_flags"; then 5915 printf "%s" "${output_flags# }" 5916 fi 5917`" 5918 fi 5919 5920fi 5921 5922else 5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported SQLite version" >&5 5924$as_echo "unsupported SQLite version" >&6; } 5925fi 5926rm -f conftest* 5927 5928 5929fi 5930 5931 5932 5933 CPPFLAGS="$save_CPPFLAGS" 5934 LDFLAGS="$save_LDFLAGS" 5935 5936 else 5937 5938 sqlite_amalg="$sqlite_dir" 5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5 5940$as_echo_n "checking sqlite amalgamation... " >&6; } 5941 if test ! -e $sqlite_amalg; then 5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5943$as_echo "no" >&6; } 5944 else 5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5946$as_echo "yes" >&6; } 5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5 5948$as_echo_n "checking sqlite amalgamation file version... " >&6; } 5949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5950/* end confdefs.h. */ 5951 5952#include "$sqlite_amalg" 5953#if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num 5954SQLITE_VERSION_OKAY 5955#endif 5956_ACEOF 5957if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5958 $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then : 5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5 5960$as_echo "amalgamation found and is okay" >&6; } 5961 5962 case $host_os in 5963 beos* | mingw* | pw32* | cegcc* | cygwin*) 5964 svn_sqlite_dso_ldflags= 5965 ;; 5966 5967 darwin*) 5968 # if libdl is installed we need to link against it 5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 5970$as_echo_n "checking for dlopen in -ldl... " >&6; } 5971if ${ac_cv_lib_dl_dlopen+:} false; then : 5972 $as_echo_n "(cached) " >&6 5973else 5974 ac_check_lib_save_LIBS=$LIBS 5975LIBS="-ldl $LIBS" 5976cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5977/* end confdefs.h. */ 5978 5979/* Override any GCC internal prototype to avoid an error. 5980 Use char because int might match the return type of a GCC 5981 builtin and then its argument prototype would still apply. */ 5982#ifdef __cplusplus 5983extern "C" 5984#endif 5985char dlopen (); 5986int 5987main () 5988{ 5989return dlopen (); 5990 ; 5991 return 0; 5992} 5993_ACEOF 5994if ac_fn_c_try_link "$LINENO"; then : 5995 ac_cv_lib_dl_dlopen=yes 5996else 5997 ac_cv_lib_dl_dlopen=no 5998fi 5999rm -f core conftest.err conftest.$ac_objext \ 6000 conftest$ac_exeext conftest.$ac_ext 6001LIBS=$ac_check_lib_save_LIBS 6002fi 6003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 6004$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 6005if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 6006 lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl" 6007else 6008 6009 svn_sqlite_dso_ldflags= 6010 6011fi 6012 6013 ;; 6014 6015 *) 6016 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 6017if test "x$ac_cv_func_shl_load" = xyes; then : 6018 svn_sqlite_dso_ldflags= 6019else 6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 6021$as_echo_n "checking for shl_load in -ldld... " >&6; } 6022if ${ac_cv_lib_dld_shl_load+:} false; then : 6023 $as_echo_n "(cached) " >&6 6024else 6025 ac_check_lib_save_LIBS=$LIBS 6026LIBS="-ldld $LIBS" 6027cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6028/* end confdefs.h. */ 6029 6030/* Override any GCC internal prototype to avoid an error. 6031 Use char because int might match the return type of a GCC 6032 builtin and then its argument prototype would still apply. */ 6033#ifdef __cplusplus 6034extern "C" 6035#endif 6036char shl_load (); 6037int 6038main () 6039{ 6040return shl_load (); 6041 ; 6042 return 0; 6043} 6044_ACEOF 6045if ac_fn_c_try_link "$LINENO"; then : 6046 ac_cv_lib_dld_shl_load=yes 6047else 6048 ac_cv_lib_dld_shl_load=no 6049fi 6050rm -f core conftest.err conftest.$ac_objext \ 6051 conftest$ac_exeext conftest.$ac_ext 6052LIBS=$ac_check_lib_save_LIBS 6053fi 6054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 6055$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 6056if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 6057 svn_sqlite_dso_ldflags="-ldld" 6058else 6059 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 6060if test "x$ac_cv_func_dlopen" = xyes; then : 6061 svn_sqlite_dso_ldflags= 6062else 6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 6064$as_echo_n "checking for dlopen in -ldl... " >&6; } 6065if ${ac_cv_lib_dl_dlopen+:} false; then : 6066 $as_echo_n "(cached) " >&6 6067else 6068 ac_check_lib_save_LIBS=$LIBS 6069LIBS="-ldl $LIBS" 6070cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6071/* end confdefs.h. */ 6072 6073/* Override any GCC internal prototype to avoid an error. 6074 Use char because int might match the return type of a GCC 6075 builtin and then its argument prototype would still apply. */ 6076#ifdef __cplusplus 6077extern "C" 6078#endif 6079char dlopen (); 6080int 6081main () 6082{ 6083return dlopen (); 6084 ; 6085 return 0; 6086} 6087_ACEOF 6088if ac_fn_c_try_link "$LINENO"; then : 6089 ac_cv_lib_dl_dlopen=yes 6090else 6091 ac_cv_lib_dl_dlopen=no 6092fi 6093rm -f core conftest.err conftest.$ac_objext \ 6094 conftest$ac_exeext conftest.$ac_ext 6095LIBS=$ac_check_lib_save_LIBS 6096fi 6097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 6098$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 6099if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 6100 svn_sqlite_dso_ldflags="-ldl" 6101else 6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 6103$as_echo_n "checking for dlopen in -lsvld... " >&6; } 6104if ${ac_cv_lib_svld_dlopen+:} false; then : 6105 $as_echo_n "(cached) " >&6 6106else 6107 ac_check_lib_save_LIBS=$LIBS 6108LIBS="-lsvld $LIBS" 6109cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6110/* end confdefs.h. */ 6111 6112/* Override any GCC internal prototype to avoid an error. 6113 Use char because int might match the return type of a GCC 6114 builtin and then its argument prototype would still apply. */ 6115#ifdef __cplusplus 6116extern "C" 6117#endif 6118char dlopen (); 6119int 6120main () 6121{ 6122return dlopen (); 6123 ; 6124 return 0; 6125} 6126_ACEOF 6127if ac_fn_c_try_link "$LINENO"; then : 6128 ac_cv_lib_svld_dlopen=yes 6129else 6130 ac_cv_lib_svld_dlopen=no 6131fi 6132rm -f core conftest.err conftest.$ac_objext \ 6133 conftest$ac_exeext conftest.$ac_ext 6134LIBS=$ac_check_lib_save_LIBS 6135fi 6136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 6137$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 6138if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 6139 svn_sqlite_dso_ldflags="-lsvld" 6140else 6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 6142$as_echo_n "checking for dld_link in -ldld... " >&6; } 6143if ${ac_cv_lib_dld_dld_link+:} false; then : 6144 $as_echo_n "(cached) " >&6 6145else 6146 ac_check_lib_save_LIBS=$LIBS 6147LIBS="-ldld $LIBS" 6148cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6149/* end confdefs.h. */ 6150 6151/* Override any GCC internal prototype to avoid an error. 6152 Use char because int might match the return type of a GCC 6153 builtin and then its argument prototype would still apply. */ 6154#ifdef __cplusplus 6155extern "C" 6156#endif 6157char dld_link (); 6158int 6159main () 6160{ 6161return dld_link (); 6162 ; 6163 return 0; 6164} 6165_ACEOF 6166if ac_fn_c_try_link "$LINENO"; then : 6167 ac_cv_lib_dld_dld_link=yes 6168else 6169 ac_cv_lib_dld_dld_link=no 6170fi 6171rm -f core conftest.err conftest.$ac_objext \ 6172 conftest$ac_exeext conftest.$ac_ext 6173LIBS=$ac_check_lib_save_LIBS 6174fi 6175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 6176$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 6177if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 6178 svn_sqlite_dso_ldflags="-ldld" 6179fi 6180 6181 6182fi 6183 6184 6185fi 6186 6187 6188fi 6189 6190 6191fi 6192 6193 6194fi 6195 6196 ;; 6197 esac 6198 6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5 6200$as_echo_n "checking additional libraries for sqlite... " >&6; } 6201 if test -n "$svn_sqlite_dso_ldflags"; then 6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5 6203$as_echo "${svn_sqlite_dso_ldflags}" >&6; } 6204 else 6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6206$as_echo "none" >&6; } 6207 fi 6208 6209 6210$as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h 6211 6212 SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`" 6213 if test -n "$svn_sqlite_dso_ldflags"; then 6214 SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread" 6215 else 6216 SVN_SQLITE_LIBS="-lpthread" 6217 fi 6218 svn_lib_sqlite="yes" 6219else 6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5 6221$as_echo "unsupported amalgamation SQLite version" >&6; } 6222fi 6223rm -f conftest* 6224 6225 fi 6226 6227 fi 6228 6229 if test -z "$svn_lib_sqlite"; then 6230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable sqlite found in $sqlite_dir" >&5 6231$as_echo "$as_me: WARNING: no suitable sqlite found in $sqlite_dir" >&2;} 6232 6233 echo "" 6234 echo "An appropriate version of sqlite could not be found. We recommmend" 6235 echo "${SQLITE_RECOMMENDED_VER}, but require at least ${SQLITE_MINIMUM_VER}." 6236 echo "Please either install a newer sqlite on this system" 6237 echo "" 6238 echo "or" 6239 echo "" 6240 echo "get the sqlite ${SQLITE_RECOMMENDED_VER} amalgamation from:" 6241 echo " ${SQLITE_URL}" 6242 echo "unpack the archive using unzip and rename the resulting" 6243 echo "directory to:" 6244 echo "$abs_srcdir/sqlite-amalgamation" 6245 if test x"$abs_srcdir" != x"$abs_builddir"; then 6246 echo "or to:" 6247 echo "$abs_builddir/sqlite-amalgamation" 6248 fi 6249 echo "" 6250 as_fn_error $? "Subversion requires SQLite" "$LINENO" 5 6251 6252 fi 6253 6254else 6255 6256 6257 sqlite_amalg="$abs_srcdir/sqlite-amalgamation/sqlite3.c" 6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5 6259$as_echo_n "checking sqlite amalgamation... " >&6; } 6260 if test ! -e $sqlite_amalg; then 6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6262$as_echo "no" >&6; } 6263 else 6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6265$as_echo "yes" >&6; } 6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5 6267$as_echo_n "checking sqlite amalgamation file version... " >&6; } 6268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6269/* end confdefs.h. */ 6270 6271#include "$sqlite_amalg" 6272#if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num 6273SQLITE_VERSION_OKAY 6274#endif 6275_ACEOF 6276if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6277 $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then : 6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5 6279$as_echo "amalgamation found and is okay" >&6; } 6280 6281 case $host_os in 6282 beos* | mingw* | pw32* | cegcc* | cygwin*) 6283 svn_sqlite_dso_ldflags= 6284 ;; 6285 6286 darwin*) 6287 # if libdl is installed we need to link against it 6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 6289$as_echo_n "checking for dlopen in -ldl... " >&6; } 6290if ${ac_cv_lib_dl_dlopen+:} false; then : 6291 $as_echo_n "(cached) " >&6 6292else 6293 ac_check_lib_save_LIBS=$LIBS 6294LIBS="-ldl $LIBS" 6295cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6296/* end confdefs.h. */ 6297 6298/* Override any GCC internal prototype to avoid an error. 6299 Use char because int might match the return type of a GCC 6300 builtin and then its argument prototype would still apply. */ 6301#ifdef __cplusplus 6302extern "C" 6303#endif 6304char dlopen (); 6305int 6306main () 6307{ 6308return dlopen (); 6309 ; 6310 return 0; 6311} 6312_ACEOF 6313if ac_fn_c_try_link "$LINENO"; then : 6314 ac_cv_lib_dl_dlopen=yes 6315else 6316 ac_cv_lib_dl_dlopen=no 6317fi 6318rm -f core conftest.err conftest.$ac_objext \ 6319 conftest$ac_exeext conftest.$ac_ext 6320LIBS=$ac_check_lib_save_LIBS 6321fi 6322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 6323$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 6324if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 6325 lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl" 6326else 6327 6328 svn_sqlite_dso_ldflags= 6329 6330fi 6331 6332 ;; 6333 6334 *) 6335 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 6336if test "x$ac_cv_func_shl_load" = xyes; then : 6337 svn_sqlite_dso_ldflags= 6338else 6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 6340$as_echo_n "checking for shl_load in -ldld... " >&6; } 6341if ${ac_cv_lib_dld_shl_load+:} false; then : 6342 $as_echo_n "(cached) " >&6 6343else 6344 ac_check_lib_save_LIBS=$LIBS 6345LIBS="-ldld $LIBS" 6346cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6347/* end confdefs.h. */ 6348 6349/* Override any GCC internal prototype to avoid an error. 6350 Use char because int might match the return type of a GCC 6351 builtin and then its argument prototype would still apply. */ 6352#ifdef __cplusplus 6353extern "C" 6354#endif 6355char shl_load (); 6356int 6357main () 6358{ 6359return shl_load (); 6360 ; 6361 return 0; 6362} 6363_ACEOF 6364if ac_fn_c_try_link "$LINENO"; then : 6365 ac_cv_lib_dld_shl_load=yes 6366else 6367 ac_cv_lib_dld_shl_load=no 6368fi 6369rm -f core conftest.err conftest.$ac_objext \ 6370 conftest$ac_exeext conftest.$ac_ext 6371LIBS=$ac_check_lib_save_LIBS 6372fi 6373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 6374$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 6375if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 6376 svn_sqlite_dso_ldflags="-ldld" 6377else 6378 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 6379if test "x$ac_cv_func_dlopen" = xyes; then : 6380 svn_sqlite_dso_ldflags= 6381else 6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 6383$as_echo_n "checking for dlopen in -ldl... " >&6; } 6384if ${ac_cv_lib_dl_dlopen+:} false; then : 6385 $as_echo_n "(cached) " >&6 6386else 6387 ac_check_lib_save_LIBS=$LIBS 6388LIBS="-ldl $LIBS" 6389cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6390/* end confdefs.h. */ 6391 6392/* Override any GCC internal prototype to avoid an error. 6393 Use char because int might match the return type of a GCC 6394 builtin and then its argument prototype would still apply. */ 6395#ifdef __cplusplus 6396extern "C" 6397#endif 6398char dlopen (); 6399int 6400main () 6401{ 6402return dlopen (); 6403 ; 6404 return 0; 6405} 6406_ACEOF 6407if ac_fn_c_try_link "$LINENO"; then : 6408 ac_cv_lib_dl_dlopen=yes 6409else 6410 ac_cv_lib_dl_dlopen=no 6411fi 6412rm -f core conftest.err conftest.$ac_objext \ 6413 conftest$ac_exeext conftest.$ac_ext 6414LIBS=$ac_check_lib_save_LIBS 6415fi 6416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 6417$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 6418if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 6419 svn_sqlite_dso_ldflags="-ldl" 6420else 6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 6422$as_echo_n "checking for dlopen in -lsvld... " >&6; } 6423if ${ac_cv_lib_svld_dlopen+:} false; then : 6424 $as_echo_n "(cached) " >&6 6425else 6426 ac_check_lib_save_LIBS=$LIBS 6427LIBS="-lsvld $LIBS" 6428cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6429/* end confdefs.h. */ 6430 6431/* Override any GCC internal prototype to avoid an error. 6432 Use char because int might match the return type of a GCC 6433 builtin and then its argument prototype would still apply. */ 6434#ifdef __cplusplus 6435extern "C" 6436#endif 6437char dlopen (); 6438int 6439main () 6440{ 6441return dlopen (); 6442 ; 6443 return 0; 6444} 6445_ACEOF 6446if ac_fn_c_try_link "$LINENO"; then : 6447 ac_cv_lib_svld_dlopen=yes 6448else 6449 ac_cv_lib_svld_dlopen=no 6450fi 6451rm -f core conftest.err conftest.$ac_objext \ 6452 conftest$ac_exeext conftest.$ac_ext 6453LIBS=$ac_check_lib_save_LIBS 6454fi 6455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 6456$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 6457if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 6458 svn_sqlite_dso_ldflags="-lsvld" 6459else 6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 6461$as_echo_n "checking for dld_link in -ldld... " >&6; } 6462if ${ac_cv_lib_dld_dld_link+:} false; then : 6463 $as_echo_n "(cached) " >&6 6464else 6465 ac_check_lib_save_LIBS=$LIBS 6466LIBS="-ldld $LIBS" 6467cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6468/* end confdefs.h. */ 6469 6470/* Override any GCC internal prototype to avoid an error. 6471 Use char because int might match the return type of a GCC 6472 builtin and then its argument prototype would still apply. */ 6473#ifdef __cplusplus 6474extern "C" 6475#endif 6476char dld_link (); 6477int 6478main () 6479{ 6480return dld_link (); 6481 ; 6482 return 0; 6483} 6484_ACEOF 6485if ac_fn_c_try_link "$LINENO"; then : 6486 ac_cv_lib_dld_dld_link=yes 6487else 6488 ac_cv_lib_dld_dld_link=no 6489fi 6490rm -f core conftest.err conftest.$ac_objext \ 6491 conftest$ac_exeext conftest.$ac_ext 6492LIBS=$ac_check_lib_save_LIBS 6493fi 6494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 6495$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 6496if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 6497 svn_sqlite_dso_ldflags="-ldld" 6498fi 6499 6500 6501fi 6502 6503 6504fi 6505 6506 6507fi 6508 6509 6510fi 6511 6512 6513fi 6514 6515 ;; 6516 esac 6517 6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5 6519$as_echo_n "checking additional libraries for sqlite... " >&6; } 6520 if test -n "$svn_sqlite_dso_ldflags"; then 6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5 6522$as_echo "${svn_sqlite_dso_ldflags}" >&6; } 6523 else 6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6525$as_echo "none" >&6; } 6526 fi 6527 6528 6529$as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h 6530 6531 SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`" 6532 if test -n "$svn_sqlite_dso_ldflags"; then 6533 SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread" 6534 else 6535 SVN_SQLITE_LIBS="-lpthread" 6536 fi 6537 svn_lib_sqlite="yes" 6538else 6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5 6540$as_echo "unsupported amalgamation SQLite version" >&6; } 6541fi 6542rm -f conftest* 6543 6544 fi 6545 6546 6547 if test -z "$svn_lib_sqlite"; then 6548 6549 sqlite_amalg="$abs_builddir/sqlite-amalgamation/sqlite3.c" 6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation" >&5 6551$as_echo_n "checking sqlite amalgamation... " >&6; } 6552 if test ! -e $sqlite_amalg; then 6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6554$as_echo "no" >&6; } 6555 else 6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6557$as_echo "yes" >&6; } 6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite amalgamation file version" >&5 6559$as_echo_n "checking sqlite amalgamation file version... " >&6; } 6560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6561/* end confdefs.h. */ 6562 6563#include "$sqlite_amalg" 6564#if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num 6565SQLITE_VERSION_OKAY 6566#endif 6567_ACEOF 6568if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6569 $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then : 6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: amalgamation found and is okay" >&5 6571$as_echo "amalgamation found and is okay" >&6; } 6572 6573 case $host_os in 6574 beos* | mingw* | pw32* | cegcc* | cygwin*) 6575 svn_sqlite_dso_ldflags= 6576 ;; 6577 6578 darwin*) 6579 # if libdl is installed we need to link against it 6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 6581$as_echo_n "checking for dlopen in -ldl... " >&6; } 6582if ${ac_cv_lib_dl_dlopen+:} false; then : 6583 $as_echo_n "(cached) " >&6 6584else 6585 ac_check_lib_save_LIBS=$LIBS 6586LIBS="-ldl $LIBS" 6587cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6588/* end confdefs.h. */ 6589 6590/* Override any GCC internal prototype to avoid an error. 6591 Use char because int might match the return type of a GCC 6592 builtin and then its argument prototype would still apply. */ 6593#ifdef __cplusplus 6594extern "C" 6595#endif 6596char dlopen (); 6597int 6598main () 6599{ 6600return dlopen (); 6601 ; 6602 return 0; 6603} 6604_ACEOF 6605if ac_fn_c_try_link "$LINENO"; then : 6606 ac_cv_lib_dl_dlopen=yes 6607else 6608 ac_cv_lib_dl_dlopen=no 6609fi 6610rm -f core conftest.err conftest.$ac_objext \ 6611 conftest$ac_exeext conftest.$ac_ext 6612LIBS=$ac_check_lib_save_LIBS 6613fi 6614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 6615$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 6616if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 6617 lt_cv_dlopen="dlopen" svn_sqlite_dso_ldflags="-ldl" 6618else 6619 6620 svn_sqlite_dso_ldflags= 6621 6622fi 6623 6624 ;; 6625 6626 *) 6627 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 6628if test "x$ac_cv_func_shl_load" = xyes; then : 6629 svn_sqlite_dso_ldflags= 6630else 6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 6632$as_echo_n "checking for shl_load in -ldld... " >&6; } 6633if ${ac_cv_lib_dld_shl_load+:} false; then : 6634 $as_echo_n "(cached) " >&6 6635else 6636 ac_check_lib_save_LIBS=$LIBS 6637LIBS="-ldld $LIBS" 6638cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6639/* end confdefs.h. */ 6640 6641/* Override any GCC internal prototype to avoid an error. 6642 Use char because int might match the return type of a GCC 6643 builtin and then its argument prototype would still apply. */ 6644#ifdef __cplusplus 6645extern "C" 6646#endif 6647char shl_load (); 6648int 6649main () 6650{ 6651return shl_load (); 6652 ; 6653 return 0; 6654} 6655_ACEOF 6656if ac_fn_c_try_link "$LINENO"; then : 6657 ac_cv_lib_dld_shl_load=yes 6658else 6659 ac_cv_lib_dld_shl_load=no 6660fi 6661rm -f core conftest.err conftest.$ac_objext \ 6662 conftest$ac_exeext conftest.$ac_ext 6663LIBS=$ac_check_lib_save_LIBS 6664fi 6665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 6666$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 6667if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 6668 svn_sqlite_dso_ldflags="-ldld" 6669else 6670 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 6671if test "x$ac_cv_func_dlopen" = xyes; then : 6672 svn_sqlite_dso_ldflags= 6673else 6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 6675$as_echo_n "checking for dlopen in -ldl... " >&6; } 6676if ${ac_cv_lib_dl_dlopen+:} false; then : 6677 $as_echo_n "(cached) " >&6 6678else 6679 ac_check_lib_save_LIBS=$LIBS 6680LIBS="-ldl $LIBS" 6681cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6682/* end confdefs.h. */ 6683 6684/* Override any GCC internal prototype to avoid an error. 6685 Use char because int might match the return type of a GCC 6686 builtin and then its argument prototype would still apply. */ 6687#ifdef __cplusplus 6688extern "C" 6689#endif 6690char dlopen (); 6691int 6692main () 6693{ 6694return dlopen (); 6695 ; 6696 return 0; 6697} 6698_ACEOF 6699if ac_fn_c_try_link "$LINENO"; then : 6700 ac_cv_lib_dl_dlopen=yes 6701else 6702 ac_cv_lib_dl_dlopen=no 6703fi 6704rm -f core conftest.err conftest.$ac_objext \ 6705 conftest$ac_exeext conftest.$ac_ext 6706LIBS=$ac_check_lib_save_LIBS 6707fi 6708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 6709$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 6710if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 6711 svn_sqlite_dso_ldflags="-ldl" 6712else 6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 6714$as_echo_n "checking for dlopen in -lsvld... " >&6; } 6715if ${ac_cv_lib_svld_dlopen+:} false; then : 6716 $as_echo_n "(cached) " >&6 6717else 6718 ac_check_lib_save_LIBS=$LIBS 6719LIBS="-lsvld $LIBS" 6720cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6721/* end confdefs.h. */ 6722 6723/* Override any GCC internal prototype to avoid an error. 6724 Use char because int might match the return type of a GCC 6725 builtin and then its argument prototype would still apply. */ 6726#ifdef __cplusplus 6727extern "C" 6728#endif 6729char dlopen (); 6730int 6731main () 6732{ 6733return dlopen (); 6734 ; 6735 return 0; 6736} 6737_ACEOF 6738if ac_fn_c_try_link "$LINENO"; then : 6739 ac_cv_lib_svld_dlopen=yes 6740else 6741 ac_cv_lib_svld_dlopen=no 6742fi 6743rm -f core conftest.err conftest.$ac_objext \ 6744 conftest$ac_exeext conftest.$ac_ext 6745LIBS=$ac_check_lib_save_LIBS 6746fi 6747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 6748$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 6749if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 6750 svn_sqlite_dso_ldflags="-lsvld" 6751else 6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 6753$as_echo_n "checking for dld_link in -ldld... " >&6; } 6754if ${ac_cv_lib_dld_dld_link+:} false; then : 6755 $as_echo_n "(cached) " >&6 6756else 6757 ac_check_lib_save_LIBS=$LIBS 6758LIBS="-ldld $LIBS" 6759cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6760/* end confdefs.h. */ 6761 6762/* Override any GCC internal prototype to avoid an error. 6763 Use char because int might match the return type of a GCC 6764 builtin and then its argument prototype would still apply. */ 6765#ifdef __cplusplus 6766extern "C" 6767#endif 6768char dld_link (); 6769int 6770main () 6771{ 6772return dld_link (); 6773 ; 6774 return 0; 6775} 6776_ACEOF 6777if ac_fn_c_try_link "$LINENO"; then : 6778 ac_cv_lib_dld_dld_link=yes 6779else 6780 ac_cv_lib_dld_dld_link=no 6781fi 6782rm -f core conftest.err conftest.$ac_objext \ 6783 conftest$ac_exeext conftest.$ac_ext 6784LIBS=$ac_check_lib_save_LIBS 6785fi 6786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 6787$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 6788if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 6789 svn_sqlite_dso_ldflags="-ldld" 6790fi 6791 6792 6793fi 6794 6795 6796fi 6797 6798 6799fi 6800 6801 6802fi 6803 6804 6805fi 6806 6807 ;; 6808 esac 6809 6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional libraries for sqlite" >&5 6811$as_echo_n "checking additional libraries for sqlite... " >&6; } 6812 if test -n "$svn_sqlite_dso_ldflags"; then 6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${svn_sqlite_dso_ldflags}" >&5 6814$as_echo "${svn_sqlite_dso_ldflags}" >&6; } 6815 else 6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6817$as_echo "none" >&6; } 6818 fi 6819 6820 6821$as_echo "#define SVN_SQLITE_INLINE 1" >>confdefs.h 6822 6823 SVN_SQLITE_INCLUDES="-I`dirname $sqlite_amalg`" 6824 if test -n "$svn_sqlite_dso_ldflags"; then 6825 SVN_SQLITE_LIBS="$svn_sqlite_dso_ldflags -lpthread" 6826 else 6827 SVN_SQLITE_LIBS="-lpthread" 6828 fi 6829 svn_lib_sqlite="yes" 6830else 6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported amalgamation SQLite version" >&5 6832$as_echo "unsupported amalgamation SQLite version" >&6; } 6833fi 6834rm -f conftest* 6835 6836 fi 6837 6838 fi 6839 6840 if test -z "$svn_lib_sqlite"; then 6841 6842 if test -z ""; then 6843 sqlite_dir="" 6844 sqlite_include="sqlite3.h" 6845 else 6846 sqlite_dir="" 6847 sqlite_include="/include/sqlite3.h" 6848 fi 6849 6850 save_CPPFLAGS="$CPPFLAGS" 6851 save_LDFLAGS="$LDFLAGS" 6852 6853 if test ! -z ""; then 6854 CPPFLAGS="$CPPFLAGS -I$sqlite_dir/include" 6855 LDFLAGS="$LDFLAGS -L$sqlite_dir/lib" 6856 fi 6857 6858 ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default" 6859if test "x$ac_cv_header_sqlite3_h" = xyes; then : 6860 6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via header)" >&5 6862$as_echo_n "checking sqlite library version (via header)... " >&6; } 6863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6864/* end confdefs.h. */ 6865 6866#include "$sqlite_include" 6867#if SQLITE_VERSION_NUMBER >= $sqlite_min_ver_num 6868SQLITE_VERSION_OKAY 6869#endif 6870_ACEOF 6871if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6872 $EGREP "SQLITE_VERSION_OKAY" >/dev/null 2>&1; then : 6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5 6874$as_echo "okay" >&6; } 6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_close in -lsqlite3" >&5 6876$as_echo_n "checking for sqlite3_close in -lsqlite3... " >&6; } 6877if ${ac_cv_lib_sqlite3_sqlite3_close+:} false; then : 6878 $as_echo_n "(cached) " >&6 6879else 6880 ac_check_lib_save_LIBS=$LIBS 6881LIBS="-lsqlite3 $LIBS" 6882cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6883/* end confdefs.h. */ 6884 6885/* Override any GCC internal prototype to avoid an error. 6886 Use char because int might match the return type of a GCC 6887 builtin and then its argument prototype would still apply. */ 6888#ifdef __cplusplus 6889extern "C" 6890#endif 6891char sqlite3_close (); 6892int 6893main () 6894{ 6895return sqlite3_close (); 6896 ; 6897 return 0; 6898} 6899_ACEOF 6900if ac_fn_c_try_link "$LINENO"; then : 6901 ac_cv_lib_sqlite3_sqlite3_close=yes 6902else 6903 ac_cv_lib_sqlite3_sqlite3_close=no 6904fi 6905rm -f core conftest.err conftest.$ac_objext \ 6906 conftest$ac_exeext conftest.$ac_ext 6907LIBS=$ac_check_lib_save_LIBS 6908fi 6909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_close" >&5 6910$as_echo "$ac_cv_lib_sqlite3_sqlite3_close" >&6; } 6911if test "x$ac_cv_lib_sqlite3_sqlite3_close" = xyes; then : 6912 6913 svn_lib_sqlite="yes" 6914 if test -z "$sqlite_dir" -o ! -d "$sqlite_dir"; then 6915 SVN_SQLITE_LIBS="-lsqlite3" 6916 else 6917 SVN_SQLITE_INCLUDES="-I$sqlite_dir/include" 6918 SVN_SQLITE_LIBS="` 6919 input_flags="-L$sqlite_dir/lib -lsqlite3" 6920 output_flags="" 6921 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 6922 for flag in $input_flags; do 6923 filter="no" 6924 for dir in $filtered_dirs; do 6925 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 6926 filter="yes" 6927 break 6928 fi 6929 done 6930 if test "$filter" = "no"; then 6931 output_flags="$output_flags $flag" 6932 fi 6933 done 6934 if test -n "$output_flags"; then 6935 printf "%s" "${output_flags# }" 6936 fi 6937`" 6938 fi 6939 6940fi 6941 6942else 6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported SQLite version" >&5 6944$as_echo "unsupported SQLite version" >&6; } 6945fi 6946rm -f conftest* 6947 6948 6949fi 6950 6951 6952 6953 CPPFLAGS="$save_CPPFLAGS" 6954 LDFLAGS="$save_LDFLAGS" 6955 6956 fi 6957 6958 if test -z "$svn_lib_sqlite"; then 6959 6960 if test -n "$PKG_CONFIG"; then 6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sqlite library version (via pkg-config)" >&5 6962$as_echo_n "checking sqlite library version (via pkg-config)... " >&6; } 6963 sqlite_version=`$PKG_CONFIG $SQLITE_PKGNAME --modversion --silence-errors` 6964 6965 if test -n "$sqlite_version"; then 6966 6967 version_string="$sqlite_version" 6968 6969 major=`expr $version_string : '\([0-9]*\)'` 6970 minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'` 6971 micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'` 6972 if test -z "$micro"; then 6973 micro=0 6974 fi 6975 sqlite_ver_num=`expr $major \* 1000000 \ 6976 \+ $minor \* 1000 \ 6977 \+ $micro` 6978 6979 6980 if test "$sqlite_ver_num" -ge "$sqlite_min_ver_num"; then 6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sqlite_version" >&5 6982$as_echo "$sqlite_version" >&6; } 6983 svn_lib_sqlite="yes" 6984 SVN_SQLITE_INCLUDES="`$PKG_CONFIG $SQLITE_PKGNAME --cflags`" 6985 SVN_SQLITE_LIBS="`$PKG_CONFIG $SQLITE_PKGNAME --libs`" 6986 else 6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none or unsupported $sqlite_version" >&5 6988$as_echo "none or unsupported $sqlite_version" >&6; } 6989 fi 6990 fi 6991 fi 6992 6993 if test -z "$svn_lib_sqlite"; then 6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6995$as_echo "no" >&6; } 6996 fi 6997 6998 fi 6999 7000 if test -z "$svn_lib_sqlite"; then 7001 7002 echo "" 7003 echo "An appropriate version of sqlite could not be found. We recommmend" 7004 echo "${SQLITE_RECOMMENDED_VER}, but require at least ${SQLITE_MINIMUM_VER}." 7005 echo "Please either install a newer sqlite on this system" 7006 echo "" 7007 echo "or" 7008 echo "" 7009 echo "get the sqlite ${SQLITE_RECOMMENDED_VER} amalgamation from:" 7010 echo " ${SQLITE_URL}" 7011 echo "unpack the archive using unzip and rename the resulting" 7012 echo "directory to:" 7013 echo "$abs_srcdir/sqlite-amalgamation" 7014 if test x"$abs_srcdir" != x"$abs_builddir"; then 7015 echo "or to:" 7016 echo "$abs_builddir/sqlite-amalgamation" 7017 fi 7018 echo "" 7019 as_fn_error $? "Subversion requires SQLite" "$LINENO" 5 7020 7021 fi 7022 7023fi 7024 7025 7026 7027 7028 7029 7030# Check whether --enable-sqlite-compatibility-version was given. 7031if test "${enable_sqlite_compatibility_version+set}" = set; then : 7032 enableval=$enable_sqlite_compatibility_version; sqlite_compat_ver=$enableval 7033else 7034 sqlite_compat_ver=no 7035fi 7036 7037 7038if test -n "$sqlite_compat_ver" && test "$sqlite_compat_ver" != no; then 7039 7040 version_string="$sqlite_compat_ver" 7041 7042 major=`expr $version_string : '\([0-9]*\)'` 7043 minor=`expr $version_string : '[0-9]*\.\([0-9]*\)'` 7044 micro=`expr $version_string : '[0-9]*\.[0-9]*\.\([0-9]*\)'` 7045 if test -z "$micro"; then 7046 micro=0 7047 fi 7048 sqlite_compat_ver_num=`expr $major \* 1000000 \ 7049 \+ $minor \* 1000 \ 7050 \+ $micro` 7051 7052 CFLAGS="-DSVN_SQLITE_MIN_VERSION='\"$sqlite_compat_ver\"' $CFLAGS" 7053 CFLAGS="-DSVN_SQLITE_MIN_VERSION_NUMBER=$sqlite_compat_ver_num $CFLAGS" 7054fi 7055 7056 7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler provides atomic builtins" >&5 7058$as_echo_n "checking whether the compiler provides atomic builtins... " >&6; } 7059if ${svn_cv_atomic_builtins+:} false; then : 7060 $as_echo_n "(cached) " >&6 7061else 7062 if test "$cross_compiling" = yes; then : 7063 svn_cv_atomic_builtins=no 7064else 7065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7066/* end confdefs.h. */ 7067 7068 int main() 7069 { 7070 unsigned long long val = 1010, tmp, *mem = &val; 7071 7072 if (__sync_fetch_and_add(&val, 1010) != 1010 || val != 2020) 7073 return 1; 7074 7075 tmp = val; 7076 7077 if (__sync_fetch_and_sub(mem, 1010) != tmp || val != 1010) 7078 return 1; 7079 7080 if (__sync_sub_and_fetch(&val, 1010) != 0 || val != 0) 7081 return 1; 7082 7083 tmp = 3030; 7084 7085 if (__sync_val_compare_and_swap(mem, 0, tmp) != 0 || val != tmp) 7086 return 1; 7087 7088 if (__sync_lock_test_and_set(&val, 4040) != 3030) 7089 return 1; 7090 7091 mem = &tmp; 7092 7093 if (__sync_val_compare_and_swap(&mem, &tmp, &val) != &tmp) 7094 return 1; 7095 7096 __sync_synchronize(); 7097 7098 if (mem != &val) 7099 return 1; 7100 7101 return 0; 7102 } 7103_ACEOF 7104if ac_fn_c_try_run "$LINENO"; then : 7105 svn_cv_atomic_builtins=yes 7106else 7107 svn_cv_atomic_builtins=no 7108fi 7109rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7110 conftest.$ac_objext conftest.beam conftest.$ac_ext 7111fi 7112 7113fi 7114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_atomic_builtins" >&5 7115$as_echo "$svn_cv_atomic_builtins" >&6; } 7116 7117 7118if test "$svn_cv_atomic_builtins" = "yes"; then 7119 7120$as_echo "#define SVN_HAS_ATOMIC_BUILTINS 1" >>confdefs.h 7121 7122fi 7123 7124 7125if test "${bindir}" = '${exec_prefix}/bin'; then 7126 if test "${exec_prefix}" = "NONE"; then 7127 if test "${prefix}" = "NONE"; then 7128 SVN_BINDIR="${ac_default_prefix}/bin" 7129 else 7130 SVN_BINDIR="${prefix}/bin" 7131 fi 7132 else 7133 SVN_BINDIR="${exec_prefix}/bin" 7134 fi 7135else 7136 SVN_BINDIR="${bindir}" 7137fi 7138 7139SVN_BINDIR="`eval echo ${SVN_BINDIR}`" 7140 7141 7142 7143cat >>confdefs.h <<_ACEOF 7144#define SVN_BINDIR "${SVN_BINDIR}" 7145_ACEOF 7146 7147 7148localedir='${datadir}/locale' 7149 7150 7151if test "${datadir}" = '${prefix}/share' && test "${prefix}" = "NONE"; then 7152 exp_localedir='${ac_default_prefix}/share/locale' 7153else 7154 exp_localedir=$localedir 7155fi 7156 7157svn_last= 7158svn_cur=""${exp_localedir}"" 7159while test "x${svn_cur}" != "x${svn_last}"; 7160do 7161 svn_last="${svn_cur}" 7162 svn_cur=`eval "echo ${svn_cur}"` 7163done 7164svn_localedir="${svn_cur}" 7165 7166 7167cat >>confdefs.h <<_ACEOF 7168#define SVN_LOCALE_DIR "${svn_localedir}" 7169_ACEOF 7170 7171 7172{ $as_echo "$as_me:${as_lineno-$LINENO}: configuring libtool now" >&5 7173$as_echo "$as_me: configuring libtool now" >&6;} 7174case `pwd` in 7175 *\ * | *\ *) 7176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 7177$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 7178esac 7179 7180 7181 7182macro_version='2.4.2' 7183macro_revision='1.3337' 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197ltmain="$ac_aux_dir/ltmain.sh" 7198 7199# Backslashify metacharacters that are still active within 7200# double-quoted strings. 7201sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7202 7203# Same as above, but do not quote variable references. 7204double_quote_subst='s/\(["`\\]\)/\\\1/g' 7205 7206# Sed substitution to delay expansion of an escaped shell variable in a 7207# double_quote_subst'ed string. 7208delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7209 7210# Sed substitution to delay expansion of an escaped single quote. 7211delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7212 7213# Sed substitution to avoid accidental globbing in evaled expressions 7214no_glob_subst='s/\*/\\\*/g' 7215 7216ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7217ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 7218ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 7219 7220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 7221$as_echo_n "checking how to print strings... " >&6; } 7222# Test print first, because it will be a builtin if present. 7223if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 7224 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 7225 ECHO='print -r --' 7226elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 7227 ECHO='printf %s\n' 7228else 7229 # Use this function as a fallback that always works. 7230 func_fallback_echo () 7231 { 7232 eval 'cat <<_LTECHO_EOF 7233$1 7234_LTECHO_EOF' 7235 } 7236 ECHO='func_fallback_echo' 7237fi 7238 7239# func_echo_all arg... 7240# Invoke $ECHO with all args, space-separated. 7241func_echo_all () 7242{ 7243 $ECHO "" 7244} 7245 7246case "$ECHO" in 7247 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 7248$as_echo "printf" >&6; } ;; 7249 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 7250$as_echo "print -r" >&6; } ;; 7251 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 7252$as_echo "cat" >&6; } ;; 7253esac 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7269$as_echo_n "checking for a sed that does not truncate output... " >&6; } 7270if ${ac_cv_path_SED+:} false; then : 7271 $as_echo_n "(cached) " >&6 7272else 7273 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7274 for ac_i in 1 2 3 4 5 6 7; do 7275 ac_script="$ac_script$as_nl$ac_script" 7276 done 7277 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7278 { ac_script=; unset ac_script;} 7279 if test -z "$SED"; then 7280 ac_path_SED_found=false 7281 # Loop through the user's path and test for each of PROGNAME-LIST 7282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7283for as_dir in $PATH 7284do 7285 IFS=$as_save_IFS 7286 test -z "$as_dir" && as_dir=. 7287 for ac_prog in sed gsed; do 7288 for ac_exec_ext in '' $ac_executable_extensions; do 7289 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 7290 as_fn_executable_p "$ac_path_SED" || continue 7291# Check for GNU ac_path_SED and select it if it is found. 7292 # Check for GNU $ac_path_SED 7293case `"$ac_path_SED" --version 2>&1` in 7294*GNU*) 7295 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7296*) 7297 ac_count=0 7298 $as_echo_n 0123456789 >"conftest.in" 7299 while : 7300 do 7301 cat "conftest.in" "conftest.in" >"conftest.tmp" 7302 mv "conftest.tmp" "conftest.in" 7303 cp "conftest.in" "conftest.nl" 7304 $as_echo '' >> "conftest.nl" 7305 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7306 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7307 as_fn_arith $ac_count + 1 && ac_count=$as_val 7308 if test $ac_count -gt ${ac_path_SED_max-0}; then 7309 # Best one so far, save it but keep looking for a better one 7310 ac_cv_path_SED="$ac_path_SED" 7311 ac_path_SED_max=$ac_count 7312 fi 7313 # 10*(2^10) chars as input seems more than enough 7314 test $ac_count -gt 10 && break 7315 done 7316 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7317esac 7318 7319 $ac_path_SED_found && break 3 7320 done 7321 done 7322 done 7323IFS=$as_save_IFS 7324 if test -z "$ac_cv_path_SED"; then 7325 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 7326 fi 7327else 7328 ac_cv_path_SED=$SED 7329fi 7330 7331fi 7332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7333$as_echo "$ac_cv_path_SED" >&6; } 7334 SED="$ac_cv_path_SED" 7335 rm -f conftest.sed 7336 7337test -z "$SED" && SED=sed 7338Xsed="$SED -e 1s/^X//" 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 7351$as_echo_n "checking for fgrep... " >&6; } 7352if ${ac_cv_path_FGREP+:} false; then : 7353 $as_echo_n "(cached) " >&6 7354else 7355 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 7356 then ac_cv_path_FGREP="$GREP -F" 7357 else 7358 if test -z "$FGREP"; then 7359 ac_path_FGREP_found=false 7360 # Loop through the user's path and test for each of PROGNAME-LIST 7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7362for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7363do 7364 IFS=$as_save_IFS 7365 test -z "$as_dir" && as_dir=. 7366 for ac_prog in fgrep; do 7367 for ac_exec_ext in '' $ac_executable_extensions; do 7368 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 7369 as_fn_executable_p "$ac_path_FGREP" || continue 7370# Check for GNU ac_path_FGREP and select it if it is found. 7371 # Check for GNU $ac_path_FGREP 7372case `"$ac_path_FGREP" --version 2>&1` in 7373*GNU*) 7374 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 7375*) 7376 ac_count=0 7377 $as_echo_n 0123456789 >"conftest.in" 7378 while : 7379 do 7380 cat "conftest.in" "conftest.in" >"conftest.tmp" 7381 mv "conftest.tmp" "conftest.in" 7382 cp "conftest.in" "conftest.nl" 7383 $as_echo 'FGREP' >> "conftest.nl" 7384 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 7385 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7386 as_fn_arith $ac_count + 1 && ac_count=$as_val 7387 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 7388 # Best one so far, save it but keep looking for a better one 7389 ac_cv_path_FGREP="$ac_path_FGREP" 7390 ac_path_FGREP_max=$ac_count 7391 fi 7392 # 10*(2^10) chars as input seems more than enough 7393 test $ac_count -gt 10 && break 7394 done 7395 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7396esac 7397 7398 $ac_path_FGREP_found && break 3 7399 done 7400 done 7401 done 7402IFS=$as_save_IFS 7403 if test -z "$ac_cv_path_FGREP"; then 7404 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7405 fi 7406else 7407 ac_cv_path_FGREP=$FGREP 7408fi 7409 7410 fi 7411fi 7412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 7413$as_echo "$ac_cv_path_FGREP" >&6; } 7414 FGREP="$ac_cv_path_FGREP" 7415 7416 7417test -z "$GREP" && GREP=grep 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437# Check whether --with-gnu-ld was given. 7438if test "${with_gnu_ld+set}" = set; then : 7439 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 7440else 7441 with_gnu_ld=no 7442fi 7443 7444ac_prog=ld 7445if test "$GCC" = yes; then 7446 # Check if gcc -print-prog-name=ld gives a path. 7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 7448$as_echo_n "checking for ld used by $CC... " >&6; } 7449 case $host in 7450 *-*-mingw*) 7451 # gcc leaves a trailing carriage return which upsets mingw 7452 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7453 *) 7454 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7455 esac 7456 case $ac_prog in 7457 # Accept absolute paths. 7458 [\\/]* | ?:[\\/]*) 7459 re_direlt='/[^/][^/]*/\.\./' 7460 # Canonicalize the pathname of ld 7461 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 7462 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 7463 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 7464 done 7465 test -z "$LD" && LD="$ac_prog" 7466 ;; 7467 "") 7468 # If it fails, then pretend we aren't using GCC. 7469 ac_prog=ld 7470 ;; 7471 *) 7472 # If it is relative, then search for the first ld in PATH. 7473 with_gnu_ld=unknown 7474 ;; 7475 esac 7476elif test "$with_gnu_ld" = yes; then 7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7478$as_echo_n "checking for GNU ld... " >&6; } 7479else 7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 7481$as_echo_n "checking for non-GNU ld... " >&6; } 7482fi 7483if ${lt_cv_path_LD+:} false; then : 7484 $as_echo_n "(cached) " >&6 7485else 7486 if test -z "$LD"; then 7487 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7488 for ac_dir in $PATH; do 7489 IFS="$lt_save_ifs" 7490 test -z "$ac_dir" && ac_dir=. 7491 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7492 lt_cv_path_LD="$ac_dir/$ac_prog" 7493 # Check to see if the program is GNU ld. I'd rather use --version, 7494 # but apparently some variants of GNU ld only accept -v. 7495 # Break only if it was the GNU/non-GNU ld that we prefer. 7496 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 7497 *GNU* | *'with BFD'*) 7498 test "$with_gnu_ld" != no && break 7499 ;; 7500 *) 7501 test "$with_gnu_ld" != yes && break 7502 ;; 7503 esac 7504 fi 7505 done 7506 IFS="$lt_save_ifs" 7507else 7508 lt_cv_path_LD="$LD" # Let the user override the test with a path. 7509fi 7510fi 7511 7512LD="$lt_cv_path_LD" 7513if test -n "$LD"; then 7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7515$as_echo "$LD" >&6; } 7516else 7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7518$as_echo "no" >&6; } 7519fi 7520test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 7521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7522$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 7523if ${lt_cv_prog_gnu_ld+:} false; then : 7524 $as_echo_n "(cached) " >&6 7525else 7526 # I'd rather use --version here, but apparently some GNU lds only accept -v. 7527case `$LD -v 2>&1 </dev/null` in 7528*GNU* | *'with BFD'*) 7529 lt_cv_prog_gnu_ld=yes 7530 ;; 7531*) 7532 lt_cv_prog_gnu_ld=no 7533 ;; 7534esac 7535fi 7536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 7537$as_echo "$lt_cv_prog_gnu_ld" >&6; } 7538with_gnu_ld=$lt_cv_prog_gnu_ld 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 7549$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 7550if ${lt_cv_path_NM+:} false; then : 7551 $as_echo_n "(cached) " >&6 7552else 7553 if test -n "$NM"; then 7554 # Let the user override the test. 7555 lt_cv_path_NM="$NM" 7556else 7557 lt_nm_to_check="${ac_tool_prefix}nm" 7558 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 7559 lt_nm_to_check="$lt_nm_to_check nm" 7560 fi 7561 for lt_tmp_nm in $lt_nm_to_check; do 7562 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7563 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 7564 IFS="$lt_save_ifs" 7565 test -z "$ac_dir" && ac_dir=. 7566 tmp_nm="$ac_dir/$lt_tmp_nm" 7567 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 7568 # Check to see if the nm accepts a BSD-compat flag. 7569 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 7570 # nm: unknown option "B" ignored 7571 # Tru64's nm complains that /dev/null is an invalid object file 7572 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 7573 */dev/null* | *'Invalid file or object type'*) 7574 lt_cv_path_NM="$tmp_nm -B" 7575 break 7576 ;; 7577 *) 7578 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 7579 */dev/null*) 7580 lt_cv_path_NM="$tmp_nm -p" 7581 break 7582 ;; 7583 *) 7584 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 7585 continue # so that we can try to find one that supports BSD flags 7586 ;; 7587 esac 7588 ;; 7589 esac 7590 fi 7591 done 7592 IFS="$lt_save_ifs" 7593 done 7594 : ${lt_cv_path_NM=no} 7595fi 7596fi 7597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 7598$as_echo "$lt_cv_path_NM" >&6; } 7599if test "$lt_cv_path_NM" != "no"; then 7600 NM="$lt_cv_path_NM" 7601else 7602 # Didn't find any BSD compatible name lister, look for dumpbin. 7603 if test -n "$DUMPBIN"; then : 7604 # Let the user override the test. 7605 else 7606 if test -n "$ac_tool_prefix"; then 7607 for ac_prog in dumpbin "link -dump" 7608 do 7609 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7610set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7612$as_echo_n "checking for $ac_word... " >&6; } 7613if ${ac_cv_prog_DUMPBIN+:} false; then : 7614 $as_echo_n "(cached) " >&6 7615else 7616 if test -n "$DUMPBIN"; then 7617 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 7618else 7619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7620for as_dir in $PATH 7621do 7622 IFS=$as_save_IFS 7623 test -z "$as_dir" && as_dir=. 7624 for ac_exec_ext in '' $ac_executable_extensions; do 7625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7626 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 7627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7628 break 2 7629 fi 7630done 7631 done 7632IFS=$as_save_IFS 7633 7634fi 7635fi 7636DUMPBIN=$ac_cv_prog_DUMPBIN 7637if test -n "$DUMPBIN"; then 7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 7639$as_echo "$DUMPBIN" >&6; } 7640else 7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7642$as_echo "no" >&6; } 7643fi 7644 7645 7646 test -n "$DUMPBIN" && break 7647 done 7648fi 7649if test -z "$DUMPBIN"; then 7650 ac_ct_DUMPBIN=$DUMPBIN 7651 for ac_prog in dumpbin "link -dump" 7652do 7653 # Extract the first word of "$ac_prog", so it can be a program name with args. 7654set dummy $ac_prog; ac_word=$2 7655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7656$as_echo_n "checking for $ac_word... " >&6; } 7657if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 7658 $as_echo_n "(cached) " >&6 7659else 7660 if test -n "$ac_ct_DUMPBIN"; then 7661 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 7662else 7663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7664for as_dir in $PATH 7665do 7666 IFS=$as_save_IFS 7667 test -z "$as_dir" && as_dir=. 7668 for ac_exec_ext in '' $ac_executable_extensions; do 7669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7670 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 7671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7672 break 2 7673 fi 7674done 7675 done 7676IFS=$as_save_IFS 7677 7678fi 7679fi 7680ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 7681if test -n "$ac_ct_DUMPBIN"; then 7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 7683$as_echo "$ac_ct_DUMPBIN" >&6; } 7684else 7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7686$as_echo "no" >&6; } 7687fi 7688 7689 7690 test -n "$ac_ct_DUMPBIN" && break 7691done 7692 7693 if test "x$ac_ct_DUMPBIN" = x; then 7694 DUMPBIN=":" 7695 else 7696 case $cross_compiling:$ac_tool_warned in 7697yes:) 7698{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7699$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7700ac_tool_warned=yes ;; 7701esac 7702 DUMPBIN=$ac_ct_DUMPBIN 7703 fi 7704fi 7705 7706 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 7707 *COFF*) 7708 DUMPBIN="$DUMPBIN -symbols" 7709 ;; 7710 *) 7711 DUMPBIN=: 7712 ;; 7713 esac 7714 fi 7715 7716 if test "$DUMPBIN" != ":"; then 7717 NM="$DUMPBIN" 7718 fi 7719fi 7720test -z "$NM" && NM=nm 7721 7722 7723 7724 7725 7726 7727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 7728$as_echo_n "checking the name lister ($NM) interface... " >&6; } 7729if ${lt_cv_nm_interface+:} false; then : 7730 $as_echo_n "(cached) " >&6 7731else 7732 lt_cv_nm_interface="BSD nm" 7733 echo "int some_variable = 0;" > conftest.$ac_ext 7734 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 7735 (eval "$ac_compile" 2>conftest.err) 7736 cat conftest.err >&5 7737 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 7738 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 7739 cat conftest.err >&5 7740 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 7741 cat conftest.out >&5 7742 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 7743 lt_cv_nm_interface="MS dumpbin" 7744 fi 7745 rm -f conftest* 7746fi 7747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 7748$as_echo "$lt_cv_nm_interface" >&6; } 7749 7750# find the maximum length of command line arguments 7751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 7752$as_echo_n "checking the maximum length of command line arguments... " >&6; } 7753if ${lt_cv_sys_max_cmd_len+:} false; then : 7754 $as_echo_n "(cached) " >&6 7755else 7756 i=0 7757 teststring="ABCD" 7758 7759 case $build_os in 7760 msdosdjgpp*) 7761 # On DJGPP, this test can blow up pretty badly due to problems in libc 7762 # (any single argument exceeding 2000 bytes causes a buffer overrun 7763 # during glob expansion). Even if it were fixed, the result of this 7764 # check would be larger than it should be. 7765 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7766 ;; 7767 7768 gnu*) 7769 # Under GNU Hurd, this test is not required because there is 7770 # no limit to the length of command line arguments. 7771 # Libtool will interpret -1 as no limit whatsoever 7772 lt_cv_sys_max_cmd_len=-1; 7773 ;; 7774 7775 cygwin* | mingw* | cegcc*) 7776 # On Win9x/ME, this test blows up -- it succeeds, but takes 7777 # about 5 minutes as the teststring grows exponentially. 7778 # Worse, since 9x/ME are not pre-emptively multitasking, 7779 # you end up with a "frozen" computer, even though with patience 7780 # the test eventually succeeds (with a max line length of 256k). 7781 # Instead, let's just punt: use the minimum linelength reported by 7782 # all of the supported platforms: 8192 (on NT/2K/XP). 7783 lt_cv_sys_max_cmd_len=8192; 7784 ;; 7785 7786 mint*) 7787 # On MiNT this can take a long time and run out of memory. 7788 lt_cv_sys_max_cmd_len=8192; 7789 ;; 7790 7791 amigaos*) 7792 # On AmigaOS with pdksh, this test takes hours, literally. 7793 # So we just punt and use a minimum line length of 8192. 7794 lt_cv_sys_max_cmd_len=8192; 7795 ;; 7796 7797 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 7798 # This has been around since 386BSD, at least. Likely further. 7799 if test -x /sbin/sysctl; then 7800 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7801 elif test -x /usr/sbin/sysctl; then 7802 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7803 else 7804 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7805 fi 7806 # And add a safety zone 7807 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7808 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7809 ;; 7810 7811 interix*) 7812 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7813 lt_cv_sys_max_cmd_len=196608 7814 ;; 7815 7816 os2*) 7817 # The test takes a long time on OS/2. 7818 lt_cv_sys_max_cmd_len=8192 7819 ;; 7820 7821 osf*) 7822 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7823 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7824 # nice to cause kernel panics so lets avoid the loop below. 7825 # First set a reasonable default. 7826 lt_cv_sys_max_cmd_len=16384 7827 # 7828 if test -x /sbin/sysconfig; then 7829 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7830 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7831 esac 7832 fi 7833 ;; 7834 sco3.2v5*) 7835 lt_cv_sys_max_cmd_len=102400 7836 ;; 7837 sysv5* | sco5v6* | sysv4.2uw2*) 7838 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7839 if test -n "$kargmax"; then 7840 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7841 else 7842 lt_cv_sys_max_cmd_len=32768 7843 fi 7844 ;; 7845 *) 7846 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7847 if test -n "$lt_cv_sys_max_cmd_len"; then 7848 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7849 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7850 else 7851 # Make teststring a little bigger before we do anything with it. 7852 # a 1K string should be a reasonable start. 7853 for i in 1 2 3 4 5 6 7 8 ; do 7854 teststring=$teststring$teststring 7855 done 7856 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7857 # If test is not a shell built-in, we'll probably end up computing a 7858 # maximum length that is only half of the actual maximum length, but 7859 # we can't tell. 7860 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 7861 = "X$teststring$teststring"; } >/dev/null 2>&1 && 7862 test $i != 17 # 1/2 MB should be enough 7863 do 7864 i=`expr $i + 1` 7865 teststring=$teststring$teststring 7866 done 7867 # Only check the string length outside the loop. 7868 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 7869 teststring= 7870 # Add a significant safety factor because C++ compilers can tack on 7871 # massive amounts of additional arguments before passing them to the 7872 # linker. It appears as though 1/2 is a usable value. 7873 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7874 fi 7875 ;; 7876 esac 7877 7878fi 7879 7880if test -n $lt_cv_sys_max_cmd_len ; then 7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7882$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 7883else 7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7885$as_echo "none" >&6; } 7886fi 7887max_cmd_len=$lt_cv_sys_max_cmd_len 7888 7889 7890 7891 7892 7893 7894: ${CP="cp -f"} 7895: ${MV="mv -f"} 7896: ${RM="rm -f"} 7897 7898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 7899$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 7900# Try some XSI features 7901xsi_shell=no 7902( _lt_dummy="a/b/c" 7903 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 7904 = c,a/b,b/c, \ 7905 && eval 'test $(( 1 + 1 )) -eq 2 \ 7906 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 7907 && xsi_shell=yes 7908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 7909$as_echo "$xsi_shell" >&6; } 7910 7911 7912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 7913$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 7914lt_shell_append=no 7915( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 7916 >/dev/null 2>&1 \ 7917 && lt_shell_append=yes 7918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 7919$as_echo "$lt_shell_append" >&6; } 7920 7921 7922if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7923 lt_unset=unset 7924else 7925 lt_unset=false 7926fi 7927 7928 7929 7930 7931 7932# test EBCDIC or ASCII 7933case `echo X|tr X '\101'` in 7934 A) # ASCII based system 7935 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7936 lt_SP2NL='tr \040 \012' 7937 lt_NL2SP='tr \015\012 \040\040' 7938 ;; 7939 *) # EBCDIC based system 7940 lt_SP2NL='tr \100 \n' 7941 lt_NL2SP='tr \r\n \100\100' 7942 ;; 7943esac 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 7954$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 7955if ${lt_cv_to_host_file_cmd+:} false; then : 7956 $as_echo_n "(cached) " >&6 7957else 7958 case $host in 7959 *-*-mingw* ) 7960 case $build in 7961 *-*-mingw* ) # actually msys 7962 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 7963 ;; 7964 *-*-cygwin* ) 7965 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 7966 ;; 7967 * ) # otherwise, assume *nix 7968 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 7969 ;; 7970 esac 7971 ;; 7972 *-*-cygwin* ) 7973 case $build in 7974 *-*-mingw* ) # actually msys 7975 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 7976 ;; 7977 *-*-cygwin* ) 7978 lt_cv_to_host_file_cmd=func_convert_file_noop 7979 ;; 7980 * ) # otherwise, assume *nix 7981 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 7982 ;; 7983 esac 7984 ;; 7985 * ) # unhandled hosts (and "normal" native builds) 7986 lt_cv_to_host_file_cmd=func_convert_file_noop 7987 ;; 7988esac 7989 7990fi 7991 7992to_host_file_cmd=$lt_cv_to_host_file_cmd 7993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 7994$as_echo "$lt_cv_to_host_file_cmd" >&6; } 7995 7996 7997 7998 7999 8000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 8001$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 8002if ${lt_cv_to_tool_file_cmd+:} false; then : 8003 $as_echo_n "(cached) " >&6 8004else 8005 #assume ordinary cross tools, or native build. 8006lt_cv_to_tool_file_cmd=func_convert_file_noop 8007case $host in 8008 *-*-mingw* ) 8009 case $build in 8010 *-*-mingw* ) # actually msys 8011 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 8012 ;; 8013 esac 8014 ;; 8015esac 8016 8017fi 8018 8019to_tool_file_cmd=$lt_cv_to_tool_file_cmd 8020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 8021$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 8022 8023 8024 8025 8026 8027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 8028$as_echo_n "checking for $LD option to reload object files... " >&6; } 8029if ${lt_cv_ld_reload_flag+:} false; then : 8030 $as_echo_n "(cached) " >&6 8031else 8032 lt_cv_ld_reload_flag='-r' 8033fi 8034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 8035$as_echo "$lt_cv_ld_reload_flag" >&6; } 8036reload_flag=$lt_cv_ld_reload_flag 8037case $reload_flag in 8038"" | " "*) ;; 8039*) reload_flag=" $reload_flag" ;; 8040esac 8041reload_cmds='$LD$reload_flag -o $output$reload_objs' 8042case $host_os in 8043 cygwin* | mingw* | pw32* | cegcc*) 8044 if test "$GCC" != yes; then 8045 reload_cmds=false 8046 fi 8047 ;; 8048 darwin*) 8049 if test "$GCC" = yes; then 8050 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 8051 else 8052 reload_cmds='$LD$reload_flag -o $output$reload_objs' 8053 fi 8054 ;; 8055esac 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065if test -n "$ac_tool_prefix"; then 8066 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8067set dummy ${ac_tool_prefix}objdump; ac_word=$2 8068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8069$as_echo_n "checking for $ac_word... " >&6; } 8070if ${ac_cv_prog_OBJDUMP+:} false; then : 8071 $as_echo_n "(cached) " >&6 8072else 8073 if test -n "$OBJDUMP"; then 8074 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8075else 8076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8077for as_dir in $PATH 8078do 8079 IFS=$as_save_IFS 8080 test -z "$as_dir" && as_dir=. 8081 for ac_exec_ext in '' $ac_executable_extensions; do 8082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8083 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8085 break 2 8086 fi 8087done 8088 done 8089IFS=$as_save_IFS 8090 8091fi 8092fi 8093OBJDUMP=$ac_cv_prog_OBJDUMP 8094if test -n "$OBJDUMP"; then 8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8096$as_echo "$OBJDUMP" >&6; } 8097else 8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8099$as_echo "no" >&6; } 8100fi 8101 8102 8103fi 8104if test -z "$ac_cv_prog_OBJDUMP"; then 8105 ac_ct_OBJDUMP=$OBJDUMP 8106 # Extract the first word of "objdump", so it can be a program name with args. 8107set dummy objdump; ac_word=$2 8108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8109$as_echo_n "checking for $ac_word... " >&6; } 8110if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8111 $as_echo_n "(cached) " >&6 8112else 8113 if test -n "$ac_ct_OBJDUMP"; then 8114 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8115else 8116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8117for as_dir in $PATH 8118do 8119 IFS=$as_save_IFS 8120 test -z "$as_dir" && as_dir=. 8121 for ac_exec_ext in '' $ac_executable_extensions; do 8122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8123 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8125 break 2 8126 fi 8127done 8128 done 8129IFS=$as_save_IFS 8130 8131fi 8132fi 8133ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8134if test -n "$ac_ct_OBJDUMP"; then 8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8136$as_echo "$ac_ct_OBJDUMP" >&6; } 8137else 8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8139$as_echo "no" >&6; } 8140fi 8141 8142 if test "x$ac_ct_OBJDUMP" = x; then 8143 OBJDUMP="false" 8144 else 8145 case $cross_compiling:$ac_tool_warned in 8146yes:) 8147{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8148$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8149ac_tool_warned=yes ;; 8150esac 8151 OBJDUMP=$ac_ct_OBJDUMP 8152 fi 8153else 8154 OBJDUMP="$ac_cv_prog_OBJDUMP" 8155fi 8156 8157test -z "$OBJDUMP" && OBJDUMP=objdump 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 8168$as_echo_n "checking how to recognize dependent libraries... " >&6; } 8169if ${lt_cv_deplibs_check_method+:} false; then : 8170 $as_echo_n "(cached) " >&6 8171else 8172 lt_cv_file_magic_cmd='$MAGIC_CMD' 8173lt_cv_file_magic_test_file= 8174lt_cv_deplibs_check_method='unknown' 8175# Need to set the preceding variable on all platforms that support 8176# interlibrary dependencies. 8177# 'none' -- dependencies not supported. 8178# `unknown' -- same as none, but documents that we really don't know. 8179# 'pass_all' -- all dependencies passed with no checks. 8180# 'test_compile' -- check by making test program. 8181# 'file_magic [[regex]]' -- check by looking for files in library path 8182# which responds to the $file_magic_cmd with a given extended regex. 8183# If you have `file' or equivalent on your system and you're not sure 8184# whether `pass_all' will *always* work, you probably want this one. 8185 8186case $host_os in 8187aix[4-9]*) 8188 lt_cv_deplibs_check_method=pass_all 8189 ;; 8190 8191beos*) 8192 lt_cv_deplibs_check_method=pass_all 8193 ;; 8194 8195bsdi[45]*) 8196 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 8197 lt_cv_file_magic_cmd='/usr/bin/file -L' 8198 lt_cv_file_magic_test_file=/shlib/libc.so 8199 ;; 8200 8201cygwin*) 8202 # func_win32_libid is a shell function defined in ltmain.sh 8203 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8204 lt_cv_file_magic_cmd='func_win32_libid' 8205 ;; 8206 8207mingw* | pw32*) 8208 # Base MSYS/MinGW do not provide the 'file' command needed by 8209 # func_win32_libid shell function, so use a weaker test based on 'objdump', 8210 # unless we find 'file', for example because we are cross-compiling. 8211 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 8212 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 8213 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8214 lt_cv_file_magic_cmd='func_win32_libid' 8215 else 8216 # Keep this pattern in sync with the one in func_win32_libid. 8217 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 8218 lt_cv_file_magic_cmd='$OBJDUMP -f' 8219 fi 8220 ;; 8221 8222cegcc*) 8223 # use the weaker test based on 'objdump'. See mingw*. 8224 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 8225 lt_cv_file_magic_cmd='$OBJDUMP -f' 8226 ;; 8227 8228darwin* | rhapsody*) 8229 lt_cv_deplibs_check_method=pass_all 8230 ;; 8231 8232freebsd* | dragonfly*) 8233 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8234 case $host_cpu in 8235 i*86 ) 8236 # Not sure whether the presence of OpenBSD here was a mistake. 8237 # Let's accept both of them until this is cleared up. 8238 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 8239 lt_cv_file_magic_cmd=/usr/bin/file 8240 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 8241 ;; 8242 esac 8243 else 8244 lt_cv_deplibs_check_method=pass_all 8245 fi 8246 ;; 8247 8248gnu*) 8249 lt_cv_deplibs_check_method=pass_all 8250 ;; 8251 8252haiku*) 8253 lt_cv_deplibs_check_method=pass_all 8254 ;; 8255 8256hpux10.20* | hpux11*) 8257 lt_cv_file_magic_cmd=/usr/bin/file 8258 case $host_cpu in 8259 ia64*) 8260 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 8261 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 8262 ;; 8263 hppa*64*) 8264 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]' 8265 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 8266 ;; 8267 *) 8268 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 8269 lt_cv_file_magic_test_file=/usr/lib/libc.sl 8270 ;; 8271 esac 8272 ;; 8273 8274interix[3-9]*) 8275 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 8276 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 8277 ;; 8278 8279irix5* | irix6* | nonstopux*) 8280 case $LD in 8281 *-32|*"-32 ") libmagic=32-bit;; 8282 *-n32|*"-n32 ") libmagic=N32;; 8283 *-64|*"-64 ") libmagic=64-bit;; 8284 *) libmagic=never-match;; 8285 esac 8286 lt_cv_deplibs_check_method=pass_all 8287 ;; 8288 8289# This must be glibc/ELF. 8290linux* | k*bsd*-gnu | kopensolaris*-gnu) 8291 lt_cv_deplibs_check_method=pass_all 8292 ;; 8293 8294netbsd*) 8295 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8296 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8297 else 8298 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 8299 fi 8300 ;; 8301 8302newos6*) 8303 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 8304 lt_cv_file_magic_cmd=/usr/bin/file 8305 lt_cv_file_magic_test_file=/usr/lib/libnls.so 8306 ;; 8307 8308*nto* | *qnx*) 8309 lt_cv_deplibs_check_method=pass_all 8310 ;; 8311 8312openbsd*) 8313 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8314 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 8315 else 8316 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8317 fi 8318 ;; 8319 8320osf3* | osf4* | osf5*) 8321 lt_cv_deplibs_check_method=pass_all 8322 ;; 8323 8324rdos*) 8325 lt_cv_deplibs_check_method=pass_all 8326 ;; 8327 8328solaris*) 8329 lt_cv_deplibs_check_method=pass_all 8330 ;; 8331 8332sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8333 lt_cv_deplibs_check_method=pass_all 8334 ;; 8335 8336sysv4 | sysv4.3*) 8337 case $host_vendor in 8338 motorola) 8339 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]' 8340 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 8341 ;; 8342 ncr) 8343 lt_cv_deplibs_check_method=pass_all 8344 ;; 8345 sequent) 8346 lt_cv_file_magic_cmd='/bin/file' 8347 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 8348 ;; 8349 sni) 8350 lt_cv_file_magic_cmd='/bin/file' 8351 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 8352 lt_cv_file_magic_test_file=/lib/libc.so 8353 ;; 8354 siemens) 8355 lt_cv_deplibs_check_method=pass_all 8356 ;; 8357 pc) 8358 lt_cv_deplibs_check_method=pass_all 8359 ;; 8360 esac 8361 ;; 8362 8363tpf*) 8364 lt_cv_deplibs_check_method=pass_all 8365 ;; 8366esac 8367 8368fi 8369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 8370$as_echo "$lt_cv_deplibs_check_method" >&6; } 8371 8372file_magic_glob= 8373want_nocaseglob=no 8374if test "$build" = "$host"; then 8375 case $host_os in 8376 mingw* | pw32*) 8377 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 8378 want_nocaseglob=yes 8379 else 8380 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 8381 fi 8382 ;; 8383 esac 8384fi 8385 8386file_magic_cmd=$lt_cv_file_magic_cmd 8387deplibs_check_method=$lt_cv_deplibs_check_method 8388test -z "$deplibs_check_method" && deplibs_check_method=unknown 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411if test -n "$ac_tool_prefix"; then 8412 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8413set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8415$as_echo_n "checking for $ac_word... " >&6; } 8416if ${ac_cv_prog_DLLTOOL+:} false; then : 8417 $as_echo_n "(cached) " >&6 8418else 8419 if test -n "$DLLTOOL"; then 8420 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8421else 8422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8423for as_dir in $PATH 8424do 8425 IFS=$as_save_IFS 8426 test -z "$as_dir" && as_dir=. 8427 for ac_exec_ext in '' $ac_executable_extensions; do 8428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8429 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8431 break 2 8432 fi 8433done 8434 done 8435IFS=$as_save_IFS 8436 8437fi 8438fi 8439DLLTOOL=$ac_cv_prog_DLLTOOL 8440if test -n "$DLLTOOL"; then 8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8442$as_echo "$DLLTOOL" >&6; } 8443else 8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8445$as_echo "no" >&6; } 8446fi 8447 8448 8449fi 8450if test -z "$ac_cv_prog_DLLTOOL"; then 8451 ac_ct_DLLTOOL=$DLLTOOL 8452 # Extract the first word of "dlltool", so it can be a program name with args. 8453set dummy dlltool; ac_word=$2 8454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8455$as_echo_n "checking for $ac_word... " >&6; } 8456if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8457 $as_echo_n "(cached) " >&6 8458else 8459 if test -n "$ac_ct_DLLTOOL"; then 8460 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8461else 8462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8463for as_dir in $PATH 8464do 8465 IFS=$as_save_IFS 8466 test -z "$as_dir" && as_dir=. 8467 for ac_exec_ext in '' $ac_executable_extensions; do 8468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8469 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8471 break 2 8472 fi 8473done 8474 done 8475IFS=$as_save_IFS 8476 8477fi 8478fi 8479ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8480if test -n "$ac_ct_DLLTOOL"; then 8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8482$as_echo "$ac_ct_DLLTOOL" >&6; } 8483else 8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8485$as_echo "no" >&6; } 8486fi 8487 8488 if test "x$ac_ct_DLLTOOL" = x; then 8489 DLLTOOL="false" 8490 else 8491 case $cross_compiling:$ac_tool_warned in 8492yes:) 8493{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8494$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8495ac_tool_warned=yes ;; 8496esac 8497 DLLTOOL=$ac_ct_DLLTOOL 8498 fi 8499else 8500 DLLTOOL="$ac_cv_prog_DLLTOOL" 8501fi 8502 8503test -z "$DLLTOOL" && DLLTOOL=dlltool 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 8515$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 8516if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 8517 $as_echo_n "(cached) " >&6 8518else 8519 lt_cv_sharedlib_from_linklib_cmd='unknown' 8520 8521case $host_os in 8522cygwin* | mingw* | pw32* | cegcc*) 8523 # two different shell functions defined in ltmain.sh 8524 # decide which to use based on capabilities of $DLLTOOL 8525 case `$DLLTOOL --help 2>&1` in 8526 *--identify-strict*) 8527 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 8528 ;; 8529 *) 8530 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 8531 ;; 8532 esac 8533 ;; 8534*) 8535 # fallback: assume linklib IS sharedlib 8536 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 8537 ;; 8538esac 8539 8540fi 8541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 8542$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 8543sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 8544test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 8545 8546 8547 8548 8549 8550 8551 8552if test -n "$ac_tool_prefix"; then 8553 for ac_prog in ar 8554 do 8555 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8556set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8558$as_echo_n "checking for $ac_word... " >&6; } 8559if ${ac_cv_prog_AR+:} false; then : 8560 $as_echo_n "(cached) " >&6 8561else 8562 if test -n "$AR"; then 8563 ac_cv_prog_AR="$AR" # Let the user override the test. 8564else 8565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8566for as_dir in $PATH 8567do 8568 IFS=$as_save_IFS 8569 test -z "$as_dir" && as_dir=. 8570 for ac_exec_ext in '' $ac_executable_extensions; do 8571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8572 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 8573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8574 break 2 8575 fi 8576done 8577 done 8578IFS=$as_save_IFS 8579 8580fi 8581fi 8582AR=$ac_cv_prog_AR 8583if test -n "$AR"; then 8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8585$as_echo "$AR" >&6; } 8586else 8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8588$as_echo "no" >&6; } 8589fi 8590 8591 8592 test -n "$AR" && break 8593 done 8594fi 8595if test -z "$AR"; then 8596 ac_ct_AR=$AR 8597 for ac_prog in ar 8598do 8599 # Extract the first word of "$ac_prog", so it can be a program name with args. 8600set dummy $ac_prog; ac_word=$2 8601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8602$as_echo_n "checking for $ac_word... " >&6; } 8603if ${ac_cv_prog_ac_ct_AR+:} false; then : 8604 $as_echo_n "(cached) " >&6 8605else 8606 if test -n "$ac_ct_AR"; then 8607 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8608else 8609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8610for as_dir in $PATH 8611do 8612 IFS=$as_save_IFS 8613 test -z "$as_dir" && as_dir=. 8614 for ac_exec_ext in '' $ac_executable_extensions; do 8615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8616 ac_cv_prog_ac_ct_AR="$ac_prog" 8617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8618 break 2 8619 fi 8620done 8621 done 8622IFS=$as_save_IFS 8623 8624fi 8625fi 8626ac_ct_AR=$ac_cv_prog_ac_ct_AR 8627if test -n "$ac_ct_AR"; then 8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8629$as_echo "$ac_ct_AR" >&6; } 8630else 8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8632$as_echo "no" >&6; } 8633fi 8634 8635 8636 test -n "$ac_ct_AR" && break 8637done 8638 8639 if test "x$ac_ct_AR" = x; then 8640 AR="false" 8641 else 8642 case $cross_compiling:$ac_tool_warned in 8643yes:) 8644{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8645$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8646ac_tool_warned=yes ;; 8647esac 8648 AR=$ac_ct_AR 8649 fi 8650fi 8651 8652: ${AR=ar} 8653: ${AR_FLAGS=cru} 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 8666$as_echo_n "checking for archiver @FILE support... " >&6; } 8667if ${lt_cv_ar_at_file+:} false; then : 8668 $as_echo_n "(cached) " >&6 8669else 8670 lt_cv_ar_at_file=no 8671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8672/* end confdefs.h. */ 8673 8674int 8675main () 8676{ 8677 8678 ; 8679 return 0; 8680} 8681_ACEOF 8682if ac_fn_c_try_compile "$LINENO"; then : 8683 echo conftest.$ac_objext > conftest.lst 8684 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 8685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8686 (eval $lt_ar_try) 2>&5 8687 ac_status=$? 8688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8689 test $ac_status = 0; } 8690 if test "$ac_status" -eq 0; then 8691 # Ensure the archiver fails upon bogus file names. 8692 rm -f conftest.$ac_objext libconftest.a 8693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8694 (eval $lt_ar_try) 2>&5 8695 ac_status=$? 8696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8697 test $ac_status = 0; } 8698 if test "$ac_status" -ne 0; then 8699 lt_cv_ar_at_file=@ 8700 fi 8701 fi 8702 rm -f conftest.* libconftest.a 8703 8704fi 8705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8706 8707fi 8708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 8709$as_echo "$lt_cv_ar_at_file" >&6; } 8710 8711if test "x$lt_cv_ar_at_file" = xno; then 8712 archiver_list_spec= 8713else 8714 archiver_list_spec=$lt_cv_ar_at_file 8715fi 8716 8717 8718 8719 8720 8721 8722 8723if test -n "$ac_tool_prefix"; then 8724 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8725set dummy ${ac_tool_prefix}strip; ac_word=$2 8726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8727$as_echo_n "checking for $ac_word... " >&6; } 8728if ${ac_cv_prog_STRIP+:} false; then : 8729 $as_echo_n "(cached) " >&6 8730else 8731 if test -n "$STRIP"; then 8732 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8733else 8734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8735for as_dir in $PATH 8736do 8737 IFS=$as_save_IFS 8738 test -z "$as_dir" && as_dir=. 8739 for ac_exec_ext in '' $ac_executable_extensions; do 8740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8741 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 8742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8743 break 2 8744 fi 8745done 8746 done 8747IFS=$as_save_IFS 8748 8749fi 8750fi 8751STRIP=$ac_cv_prog_STRIP 8752if test -n "$STRIP"; then 8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 8754$as_echo "$STRIP" >&6; } 8755else 8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8757$as_echo "no" >&6; } 8758fi 8759 8760 8761fi 8762if test -z "$ac_cv_prog_STRIP"; then 8763 ac_ct_STRIP=$STRIP 8764 # Extract the first word of "strip", so it can be a program name with args. 8765set dummy strip; ac_word=$2 8766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8767$as_echo_n "checking for $ac_word... " >&6; } 8768if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 8769 $as_echo_n "(cached) " >&6 8770else 8771 if test -n "$ac_ct_STRIP"; then 8772 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 8773else 8774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8775for as_dir in $PATH 8776do 8777 IFS=$as_save_IFS 8778 test -z "$as_dir" && as_dir=. 8779 for ac_exec_ext in '' $ac_executable_extensions; do 8780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8781 ac_cv_prog_ac_ct_STRIP="strip" 8782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8783 break 2 8784 fi 8785done 8786 done 8787IFS=$as_save_IFS 8788 8789fi 8790fi 8791ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 8792if test -n "$ac_ct_STRIP"; then 8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 8794$as_echo "$ac_ct_STRIP" >&6; } 8795else 8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8797$as_echo "no" >&6; } 8798fi 8799 8800 if test "x$ac_ct_STRIP" = x; then 8801 STRIP=":" 8802 else 8803 case $cross_compiling:$ac_tool_warned in 8804yes:) 8805{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8806$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8807ac_tool_warned=yes ;; 8808esac 8809 STRIP=$ac_ct_STRIP 8810 fi 8811else 8812 STRIP="$ac_cv_prog_STRIP" 8813fi 8814 8815test -z "$STRIP" && STRIP=: 8816 8817 8818 8819 8820 8821 8822if test -n "$ac_tool_prefix"; then 8823 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8824set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8826$as_echo_n "checking for $ac_word... " >&6; } 8827if ${ac_cv_prog_RANLIB+:} false; then : 8828 $as_echo_n "(cached) " >&6 8829else 8830 if test -n "$RANLIB"; then 8831 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8832else 8833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8834for as_dir in $PATH 8835do 8836 IFS=$as_save_IFS 8837 test -z "$as_dir" && as_dir=. 8838 for ac_exec_ext in '' $ac_executable_extensions; do 8839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8840 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8842 break 2 8843 fi 8844done 8845 done 8846IFS=$as_save_IFS 8847 8848fi 8849fi 8850RANLIB=$ac_cv_prog_RANLIB 8851if test -n "$RANLIB"; then 8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8853$as_echo "$RANLIB" >&6; } 8854else 8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8856$as_echo "no" >&6; } 8857fi 8858 8859 8860fi 8861if test -z "$ac_cv_prog_RANLIB"; then 8862 ac_ct_RANLIB=$RANLIB 8863 # Extract the first word of "ranlib", so it can be a program name with args. 8864set dummy ranlib; ac_word=$2 8865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8866$as_echo_n "checking for $ac_word... " >&6; } 8867if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8868 $as_echo_n "(cached) " >&6 8869else 8870 if test -n "$ac_ct_RANLIB"; then 8871 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8872else 8873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8874for as_dir in $PATH 8875do 8876 IFS=$as_save_IFS 8877 test -z "$as_dir" && as_dir=. 8878 for ac_exec_ext in '' $ac_executable_extensions; do 8879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8880 ac_cv_prog_ac_ct_RANLIB="ranlib" 8881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8882 break 2 8883 fi 8884done 8885 done 8886IFS=$as_save_IFS 8887 8888fi 8889fi 8890ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8891if test -n "$ac_ct_RANLIB"; then 8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8893$as_echo "$ac_ct_RANLIB" >&6; } 8894else 8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8896$as_echo "no" >&6; } 8897fi 8898 8899 if test "x$ac_ct_RANLIB" = x; then 8900 RANLIB=":" 8901 else 8902 case $cross_compiling:$ac_tool_warned in 8903yes:) 8904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8906ac_tool_warned=yes ;; 8907esac 8908 RANLIB=$ac_ct_RANLIB 8909 fi 8910else 8911 RANLIB="$ac_cv_prog_RANLIB" 8912fi 8913 8914test -z "$RANLIB" && RANLIB=: 8915 8916 8917 8918 8919 8920 8921# Determine commands to create old-style static archives. 8922old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 8923old_postinstall_cmds='chmod 644 $oldlib' 8924old_postuninstall_cmds= 8925 8926if test -n "$RANLIB"; then 8927 case $host_os in 8928 openbsd*) 8929 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 8930 ;; 8931 *) 8932 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 8933 ;; 8934 esac 8935 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 8936fi 8937 8938case $host_os in 8939 darwin*) 8940 lock_old_archive_extraction=yes ;; 8941 *) 8942 lock_old_archive_extraction=no ;; 8943esac 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965for ac_prog in gawk mawk nawk awk 8966do 8967 # Extract the first word of "$ac_prog", so it can be a program name with args. 8968set dummy $ac_prog; ac_word=$2 8969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8970$as_echo_n "checking for $ac_word... " >&6; } 8971if ${ac_cv_prog_AWK+:} false; then : 8972 $as_echo_n "(cached) " >&6 8973else 8974 if test -n "$AWK"; then 8975 ac_cv_prog_AWK="$AWK" # Let the user override the test. 8976else 8977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8978for as_dir in $PATH 8979do 8980 IFS=$as_save_IFS 8981 test -z "$as_dir" && as_dir=. 8982 for ac_exec_ext in '' $ac_executable_extensions; do 8983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8984 ac_cv_prog_AWK="$ac_prog" 8985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8986 break 2 8987 fi 8988done 8989 done 8990IFS=$as_save_IFS 8991 8992fi 8993fi 8994AWK=$ac_cv_prog_AWK 8995if test -n "$AWK"; then 8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 8997$as_echo "$AWK" >&6; } 8998else 8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9000$as_echo "no" >&6; } 9001fi 9002 9003 9004 test -n "$AWK" && break 9005done 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025# If no C compiler was specified, use CC. 9026LTCC=${LTCC-"$CC"} 9027 9028# If no C compiler flags were specified, use CFLAGS. 9029LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9030 9031# Allow CC to be a program name with arguments. 9032compiler=$CC 9033 9034 9035# Check for command to grab the raw symbol name followed by C symbol from nm. 9036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 9037$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 9038if ${lt_cv_sys_global_symbol_pipe+:} false; then : 9039 $as_echo_n "(cached) " >&6 9040else 9041 9042# These are sane defaults that work on at least a few old systems. 9043# [They come from Ultrix. What could be older than Ultrix?!! ;)] 9044 9045# Character class describing NM global symbol codes. 9046symcode='[BCDEGRST]' 9047 9048# Regexp to match symbols that can be accessed directly from C. 9049sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9050 9051# Define system-specific variables. 9052case $host_os in 9053aix*) 9054 symcode='[BCDT]' 9055 ;; 9056cygwin* | mingw* | pw32* | cegcc*) 9057 symcode='[ABCDGISTW]' 9058 ;; 9059hpux*) 9060 if test "$host_cpu" = ia64; then 9061 symcode='[ABCDEGRST]' 9062 fi 9063 ;; 9064irix* | nonstopux*) 9065 symcode='[BCDEGRST]' 9066 ;; 9067osf*) 9068 symcode='[BCDEGQRST]' 9069 ;; 9070solaris*) 9071 symcode='[BDRT]' 9072 ;; 9073sco3.2v5*) 9074 symcode='[DT]' 9075 ;; 9076sysv4.2uw2*) 9077 symcode='[DT]' 9078 ;; 9079sysv5* | sco5v6* | unixware* | OpenUNIX*) 9080 symcode='[ABDT]' 9081 ;; 9082sysv4) 9083 symcode='[DFNSTU]' 9084 ;; 9085esac 9086 9087# If we're using GNU nm, then use its standard symbol codes. 9088case `$NM -V 2>&1` in 9089*GNU* | *'with BFD'*) 9090 symcode='[ABCDGIRSTW]' ;; 9091esac 9092 9093# Transform an extracted symbol line into a proper C declaration. 9094# Some systems (esp. on ia64) link data and code symbols differently, 9095# so use this general approach. 9096lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9097 9098# Transform an extracted symbol line into symbol name and symbol address 9099lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 9100lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 9101 9102# Handle CRLF in mingw tool chain 9103opt_cr= 9104case $build_os in 9105mingw*) 9106 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9107 ;; 9108esac 9109 9110# Try without a prefix underscore, then with it. 9111for ac_symprfx in "" "_"; do 9112 9113 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9114 symxfrm="\\1 $ac_symprfx\\2 \\2" 9115 9116 # Write the raw and C identifiers. 9117 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9118 # Fake it for dumpbin and say T for any non-static function 9119 # and D for any global variable. 9120 # Also find C++ and __fastcall symbols from MSVC++, 9121 # which start with @ or ?. 9122 lt_cv_sys_global_symbol_pipe="$AWK '"\ 9123" {last_section=section; section=\$ 3};"\ 9124" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 9125" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 9126" \$ 0!~/External *\|/{next};"\ 9127" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 9128" {if(hide[section]) next};"\ 9129" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 9130" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 9131" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 9132" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 9133" ' prfx=^$ac_symprfx" 9134 else 9135 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9136 fi 9137 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 9138 9139 # Check to see that the pipe works correctly. 9140 pipe_works=no 9141 9142 rm -f conftest* 9143 cat > conftest.$ac_ext <<_LT_EOF 9144#ifdef __cplusplus 9145extern "C" { 9146#endif 9147char nm_test_var; 9148void nm_test_func(void); 9149void nm_test_func(void){} 9150#ifdef __cplusplus 9151} 9152#endif 9153int main(){nm_test_var='a';nm_test_func();return(0);} 9154_LT_EOF 9155 9156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9157 (eval $ac_compile) 2>&5 9158 ac_status=$? 9159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9160 test $ac_status = 0; }; then 9161 # Now try to grab the symbols. 9162 nlist=conftest.nm 9163 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 9164 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 9165 ac_status=$? 9166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9167 test $ac_status = 0; } && test -s "$nlist"; then 9168 # Try sorting and uniquifying the output. 9169 if sort "$nlist" | uniq > "$nlist"T; then 9170 mv -f "$nlist"T "$nlist" 9171 else 9172 rm -f "$nlist"T 9173 fi 9174 9175 # Make sure that we snagged all the symbols we need. 9176 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 9177 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 9178 cat <<_LT_EOF > conftest.$ac_ext 9179/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 9180#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 9181/* DATA imports from DLLs on WIN32 con't be const, because runtime 9182 relocations are performed -- see ld's documentation on pseudo-relocs. */ 9183# define LT_DLSYM_CONST 9184#elif defined(__osf__) 9185/* This system does not cope well with relocations in const data. */ 9186# define LT_DLSYM_CONST 9187#else 9188# define LT_DLSYM_CONST const 9189#endif 9190 9191#ifdef __cplusplus 9192extern "C" { 9193#endif 9194 9195_LT_EOF 9196 # Now generate the symbol file. 9197 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 9198 9199 cat <<_LT_EOF >> conftest.$ac_ext 9200 9201/* The mapping between symbol names and symbols. */ 9202LT_DLSYM_CONST struct { 9203 const char *name; 9204 void *address; 9205} 9206lt__PROGRAM__LTX_preloaded_symbols[] = 9207{ 9208 { "@PROGRAM@", (void *) 0 }, 9209_LT_EOF 9210 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 9211 cat <<\_LT_EOF >> conftest.$ac_ext 9212 {0, (void *) 0} 9213}; 9214 9215/* This works around a problem in FreeBSD linker */ 9216#ifdef FREEBSD_WORKAROUND 9217static const void *lt_preloaded_setup() { 9218 return lt__PROGRAM__LTX_preloaded_symbols; 9219} 9220#endif 9221 9222#ifdef __cplusplus 9223} 9224#endif 9225_LT_EOF 9226 # Now try linking the two files. 9227 mv conftest.$ac_objext conftstm.$ac_objext 9228 lt_globsym_save_LIBS=$LIBS 9229 lt_globsym_save_CFLAGS=$CFLAGS 9230 LIBS="conftstm.$ac_objext" 9231 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9233 (eval $ac_link) 2>&5 9234 ac_status=$? 9235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9236 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 9237 pipe_works=yes 9238 fi 9239 LIBS=$lt_globsym_save_LIBS 9240 CFLAGS=$lt_globsym_save_CFLAGS 9241 else 9242 echo "cannot find nm_test_func in $nlist" >&5 9243 fi 9244 else 9245 echo "cannot find nm_test_var in $nlist" >&5 9246 fi 9247 else 9248 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9249 fi 9250 else 9251 echo "$progname: failed program was:" >&5 9252 cat conftest.$ac_ext >&5 9253 fi 9254 rm -rf conftest* conftst* 9255 9256 # Do not use the global_symbol_pipe unless it works. 9257 if test "$pipe_works" = yes; then 9258 break 9259 else 9260 lt_cv_sys_global_symbol_pipe= 9261 fi 9262done 9263 9264fi 9265 9266if test -z "$lt_cv_sys_global_symbol_pipe"; then 9267 lt_cv_sys_global_symbol_to_cdecl= 9268fi 9269if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 9271$as_echo "failed" >&6; } 9272else 9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 9274$as_echo "ok" >&6; } 9275fi 9276 9277# Response file support. 9278if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9279 nm_file_list_spec='@' 9280elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 9281 nm_file_list_spec='@' 9282fi 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 9311$as_echo_n "checking for sysroot... " >&6; } 9312 9313# Check whether --with-sysroot was given. 9314if test "${with_sysroot+set}" = set; then : 9315 withval=$with_sysroot; 9316else 9317 with_sysroot=no 9318fi 9319 9320 9321lt_sysroot= 9322case ${with_sysroot} in #( 9323 yes) 9324 if test "$GCC" = yes; then 9325 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 9326 fi 9327 ;; #( 9328 /*) 9329 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 9330 ;; #( 9331 no|'') 9332 ;; #( 9333 *) 9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 9335$as_echo "${with_sysroot}" >&6; } 9336 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 9337 ;; 9338esac 9339 9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 9341$as_echo "${lt_sysroot:-no}" >&6; } 9342 9343 9344 9345 9346 9347# Check whether --enable-libtool-lock was given. 9348if test "${enable_libtool_lock+set}" = set; then : 9349 enableval=$enable_libtool_lock; 9350fi 9351 9352test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 9353 9354# Some flags need to be propagated to the compiler or linker for good 9355# libtool support. 9356case $host in 9357ia64-*-hpux*) 9358 # Find out which ABI we are using. 9359 echo 'int i;' > conftest.$ac_ext 9360 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9361 (eval $ac_compile) 2>&5 9362 ac_status=$? 9363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9364 test $ac_status = 0; }; then 9365 case `/usr/bin/file conftest.$ac_objext` in 9366 *ELF-32*) 9367 HPUX_IA64_MODE="32" 9368 ;; 9369 *ELF-64*) 9370 HPUX_IA64_MODE="64" 9371 ;; 9372 esac 9373 fi 9374 rm -rf conftest* 9375 ;; 9376*-*-irix6*) 9377 # Find out which ABI we are using. 9378 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9379 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9380 (eval $ac_compile) 2>&5 9381 ac_status=$? 9382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9383 test $ac_status = 0; }; then 9384 if test "$lt_cv_prog_gnu_ld" = yes; then 9385 case `/usr/bin/file conftest.$ac_objext` in 9386 *32-bit*) 9387 LD="${LD-ld} -melf32bsmip" 9388 ;; 9389 *N32*) 9390 LD="${LD-ld} -melf32bmipn32" 9391 ;; 9392 *64-bit*) 9393 LD="${LD-ld} -melf64bmip" 9394 ;; 9395 esac 9396 else 9397 case `/usr/bin/file conftest.$ac_objext` in 9398 *32-bit*) 9399 LD="${LD-ld} -32" 9400 ;; 9401 *N32*) 9402 LD="${LD-ld} -n32" 9403 ;; 9404 *64-bit*) 9405 LD="${LD-ld} -64" 9406 ;; 9407 esac 9408 fi 9409 fi 9410 rm -rf conftest* 9411 ;; 9412 9413x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 9414s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 9415 # Find out which ABI we are using. 9416 echo 'int i;' > conftest.$ac_ext 9417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9418 (eval $ac_compile) 2>&5 9419 ac_status=$? 9420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9421 test $ac_status = 0; }; then 9422 case `/usr/bin/file conftest.o` in 9423 *32-bit*) 9424 case $host in 9425 x86_64-*kfreebsd*-gnu) 9426 LD="${LD-ld} -m elf_i386_fbsd" 9427 ;; 9428 x86_64-*linux*) 9429 LD="${LD-ld} -m elf_i386" 9430 ;; 9431 ppc64-*linux*|powerpc64-*linux*) 9432 LD="${LD-ld} -m elf32ppclinux" 9433 ;; 9434 s390x-*linux*) 9435 LD="${LD-ld} -m elf_s390" 9436 ;; 9437 sparc64-*linux*) 9438 LD="${LD-ld} -m elf32_sparc" 9439 ;; 9440 esac 9441 ;; 9442 *64-bit*) 9443 case $host in 9444 x86_64-*kfreebsd*-gnu) 9445 LD="${LD-ld} -m elf_x86_64_fbsd" 9446 ;; 9447 x86_64-*linux*) 9448 LD="${LD-ld} -m elf_x86_64" 9449 ;; 9450 ppc*-*linux*|powerpc*-*linux*) 9451 LD="${LD-ld} -m elf64ppc" 9452 ;; 9453 s390*-*linux*|s390*-*tpf*) 9454 LD="${LD-ld} -m elf64_s390" 9455 ;; 9456 sparc*-*linux*) 9457 LD="${LD-ld} -m elf64_sparc" 9458 ;; 9459 esac 9460 ;; 9461 esac 9462 fi 9463 rm -rf conftest* 9464 ;; 9465 9466*-*-sco3.2v5*) 9467 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 9468 SAVE_CFLAGS="$CFLAGS" 9469 CFLAGS="$CFLAGS -belf" 9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 9471$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 9472if ${lt_cv_cc_needs_belf+:} false; then : 9473 $as_echo_n "(cached) " >&6 9474else 9475 ac_ext=c 9476ac_cpp='$CPP $CPPFLAGS' 9477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9479ac_compiler_gnu=$ac_cv_c_compiler_gnu 9480 9481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9482/* end confdefs.h. */ 9483 9484int 9485main () 9486{ 9487 9488 ; 9489 return 0; 9490} 9491_ACEOF 9492if ac_fn_c_try_link "$LINENO"; then : 9493 lt_cv_cc_needs_belf=yes 9494else 9495 lt_cv_cc_needs_belf=no 9496fi 9497rm -f core conftest.err conftest.$ac_objext \ 9498 conftest$ac_exeext conftest.$ac_ext 9499 ac_ext=c 9500ac_cpp='$CPP $CPPFLAGS' 9501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9503ac_compiler_gnu=$ac_cv_c_compiler_gnu 9504 9505fi 9506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 9507$as_echo "$lt_cv_cc_needs_belf" >&6; } 9508 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 9509 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 9510 CFLAGS="$SAVE_CFLAGS" 9511 fi 9512 ;; 9513*-*solaris*) 9514 # Find out which ABI we are using. 9515 echo 'int i;' > conftest.$ac_ext 9516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9517 (eval $ac_compile) 2>&5 9518 ac_status=$? 9519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9520 test $ac_status = 0; }; then 9521 case `/usr/bin/file conftest.o` in 9522 *64-bit*) 9523 case $lt_cv_prog_gnu_ld in 9524 yes*) 9525 case $host in 9526 i?86-*-solaris*) 9527 LD="${LD-ld} -m elf_x86_64" 9528 ;; 9529 sparc*-*-solaris*) 9530 LD="${LD-ld} -m elf64_sparc" 9531 ;; 9532 esac 9533 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 9534 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 9535 LD="${LD-ld}_sol2" 9536 fi 9537 ;; 9538 *) 9539 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 9540 LD="${LD-ld} -64" 9541 fi 9542 ;; 9543 esac 9544 ;; 9545 esac 9546 fi 9547 rm -rf conftest* 9548 ;; 9549esac 9550 9551need_locks="$enable_libtool_lock" 9552 9553if test -n "$ac_tool_prefix"; then 9554 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 9555set dummy ${ac_tool_prefix}mt; ac_word=$2 9556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9557$as_echo_n "checking for $ac_word... " >&6; } 9558if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 9559 $as_echo_n "(cached) " >&6 9560else 9561 if test -n "$MANIFEST_TOOL"; then 9562 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 9563else 9564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9565for as_dir in $PATH 9566do 9567 IFS=$as_save_IFS 9568 test -z "$as_dir" && as_dir=. 9569 for ac_exec_ext in '' $ac_executable_extensions; do 9570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9571 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 9572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9573 break 2 9574 fi 9575done 9576 done 9577IFS=$as_save_IFS 9578 9579fi 9580fi 9581MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 9582if test -n "$MANIFEST_TOOL"; then 9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 9584$as_echo "$MANIFEST_TOOL" >&6; } 9585else 9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9587$as_echo "no" >&6; } 9588fi 9589 9590 9591fi 9592if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 9593 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 9594 # Extract the first word of "mt", so it can be a program name with args. 9595set dummy mt; ac_word=$2 9596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9597$as_echo_n "checking for $ac_word... " >&6; } 9598if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 9599 $as_echo_n "(cached) " >&6 9600else 9601 if test -n "$ac_ct_MANIFEST_TOOL"; then 9602 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 9603else 9604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9605for as_dir in $PATH 9606do 9607 IFS=$as_save_IFS 9608 test -z "$as_dir" && as_dir=. 9609 for ac_exec_ext in '' $ac_executable_extensions; do 9610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9611 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 9612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9613 break 2 9614 fi 9615done 9616 done 9617IFS=$as_save_IFS 9618 9619fi 9620fi 9621ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 9622if test -n "$ac_ct_MANIFEST_TOOL"; then 9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 9624$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 9625else 9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9627$as_echo "no" >&6; } 9628fi 9629 9630 if test "x$ac_ct_MANIFEST_TOOL" = x; then 9631 MANIFEST_TOOL=":" 9632 else 9633 case $cross_compiling:$ac_tool_warned in 9634yes:) 9635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9637ac_tool_warned=yes ;; 9638esac 9639 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 9640 fi 9641else 9642 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 9643fi 9644 9645test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 9646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 9647$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 9648if ${lt_cv_path_mainfest_tool+:} false; then : 9649 $as_echo_n "(cached) " >&6 9650else 9651 lt_cv_path_mainfest_tool=no 9652 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 9653 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 9654 cat conftest.err >&5 9655 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 9656 lt_cv_path_mainfest_tool=yes 9657 fi 9658 rm -f conftest* 9659fi 9660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 9661$as_echo "$lt_cv_path_mainfest_tool" >&6; } 9662if test "x$lt_cv_path_mainfest_tool" != xyes; then 9663 MANIFEST_TOOL=: 9664fi 9665 9666 9667 9668 9669 9670 9671 case $host_os in 9672 rhapsody* | darwin*) 9673 if test -n "$ac_tool_prefix"; then 9674 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 9675set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 9676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9677$as_echo_n "checking for $ac_word... " >&6; } 9678if ${ac_cv_prog_DSYMUTIL+:} false; then : 9679 $as_echo_n "(cached) " >&6 9680else 9681 if test -n "$DSYMUTIL"; then 9682 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 9683else 9684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9685for as_dir in $PATH 9686do 9687 IFS=$as_save_IFS 9688 test -z "$as_dir" && as_dir=. 9689 for ac_exec_ext in '' $ac_executable_extensions; do 9690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9691 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 9692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9693 break 2 9694 fi 9695done 9696 done 9697IFS=$as_save_IFS 9698 9699fi 9700fi 9701DSYMUTIL=$ac_cv_prog_DSYMUTIL 9702if test -n "$DSYMUTIL"; then 9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 9704$as_echo "$DSYMUTIL" >&6; } 9705else 9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9707$as_echo "no" >&6; } 9708fi 9709 9710 9711fi 9712if test -z "$ac_cv_prog_DSYMUTIL"; then 9713 ac_ct_DSYMUTIL=$DSYMUTIL 9714 # Extract the first word of "dsymutil", so it can be a program name with args. 9715set dummy dsymutil; ac_word=$2 9716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9717$as_echo_n "checking for $ac_word... " >&6; } 9718if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 9719 $as_echo_n "(cached) " >&6 9720else 9721 if test -n "$ac_ct_DSYMUTIL"; then 9722 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 9723else 9724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9725for as_dir in $PATH 9726do 9727 IFS=$as_save_IFS 9728 test -z "$as_dir" && as_dir=. 9729 for ac_exec_ext in '' $ac_executable_extensions; do 9730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9731 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 9732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9733 break 2 9734 fi 9735done 9736 done 9737IFS=$as_save_IFS 9738 9739fi 9740fi 9741ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 9742if test -n "$ac_ct_DSYMUTIL"; then 9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 9744$as_echo "$ac_ct_DSYMUTIL" >&6; } 9745else 9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9747$as_echo "no" >&6; } 9748fi 9749 9750 if test "x$ac_ct_DSYMUTIL" = x; then 9751 DSYMUTIL=":" 9752 else 9753 case $cross_compiling:$ac_tool_warned in 9754yes:) 9755{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9756$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9757ac_tool_warned=yes ;; 9758esac 9759 DSYMUTIL=$ac_ct_DSYMUTIL 9760 fi 9761else 9762 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 9763fi 9764 9765 if test -n "$ac_tool_prefix"; then 9766 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 9767set dummy ${ac_tool_prefix}nmedit; ac_word=$2 9768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9769$as_echo_n "checking for $ac_word... " >&6; } 9770if ${ac_cv_prog_NMEDIT+:} false; then : 9771 $as_echo_n "(cached) " >&6 9772else 9773 if test -n "$NMEDIT"; then 9774 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 9775else 9776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9777for as_dir in $PATH 9778do 9779 IFS=$as_save_IFS 9780 test -z "$as_dir" && as_dir=. 9781 for ac_exec_ext in '' $ac_executable_extensions; do 9782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9783 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9785 break 2 9786 fi 9787done 9788 done 9789IFS=$as_save_IFS 9790 9791fi 9792fi 9793NMEDIT=$ac_cv_prog_NMEDIT 9794if test -n "$NMEDIT"; then 9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 9796$as_echo "$NMEDIT" >&6; } 9797else 9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9799$as_echo "no" >&6; } 9800fi 9801 9802 9803fi 9804if test -z "$ac_cv_prog_NMEDIT"; then 9805 ac_ct_NMEDIT=$NMEDIT 9806 # Extract the first word of "nmedit", so it can be a program name with args. 9807set dummy nmedit; ac_word=$2 9808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9809$as_echo_n "checking for $ac_word... " >&6; } 9810if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 9811 $as_echo_n "(cached) " >&6 9812else 9813 if test -n "$ac_ct_NMEDIT"; then 9814 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 9815else 9816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9817for as_dir in $PATH 9818do 9819 IFS=$as_save_IFS 9820 test -z "$as_dir" && as_dir=. 9821 for ac_exec_ext in '' $ac_executable_extensions; do 9822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9823 ac_cv_prog_ac_ct_NMEDIT="nmedit" 9824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9825 break 2 9826 fi 9827done 9828 done 9829IFS=$as_save_IFS 9830 9831fi 9832fi 9833ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 9834if test -n "$ac_ct_NMEDIT"; then 9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 9836$as_echo "$ac_ct_NMEDIT" >&6; } 9837else 9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9839$as_echo "no" >&6; } 9840fi 9841 9842 if test "x$ac_ct_NMEDIT" = x; then 9843 NMEDIT=":" 9844 else 9845 case $cross_compiling:$ac_tool_warned in 9846yes:) 9847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9849ac_tool_warned=yes ;; 9850esac 9851 NMEDIT=$ac_ct_NMEDIT 9852 fi 9853else 9854 NMEDIT="$ac_cv_prog_NMEDIT" 9855fi 9856 9857 if test -n "$ac_tool_prefix"; then 9858 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 9859set dummy ${ac_tool_prefix}lipo; ac_word=$2 9860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9861$as_echo_n "checking for $ac_word... " >&6; } 9862if ${ac_cv_prog_LIPO+:} false; then : 9863 $as_echo_n "(cached) " >&6 9864else 9865 if test -n "$LIPO"; then 9866 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 9867else 9868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9869for as_dir in $PATH 9870do 9871 IFS=$as_save_IFS 9872 test -z "$as_dir" && as_dir=. 9873 for ac_exec_ext in '' $ac_executable_extensions; do 9874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9875 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 9876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9877 break 2 9878 fi 9879done 9880 done 9881IFS=$as_save_IFS 9882 9883fi 9884fi 9885LIPO=$ac_cv_prog_LIPO 9886if test -n "$LIPO"; then 9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 9888$as_echo "$LIPO" >&6; } 9889else 9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9891$as_echo "no" >&6; } 9892fi 9893 9894 9895fi 9896if test -z "$ac_cv_prog_LIPO"; then 9897 ac_ct_LIPO=$LIPO 9898 # Extract the first word of "lipo", so it can be a program name with args. 9899set dummy lipo; ac_word=$2 9900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9901$as_echo_n "checking for $ac_word... " >&6; } 9902if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 9903 $as_echo_n "(cached) " >&6 9904else 9905 if test -n "$ac_ct_LIPO"; then 9906 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 9907else 9908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9909for as_dir in $PATH 9910do 9911 IFS=$as_save_IFS 9912 test -z "$as_dir" && as_dir=. 9913 for ac_exec_ext in '' $ac_executable_extensions; do 9914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9915 ac_cv_prog_ac_ct_LIPO="lipo" 9916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9917 break 2 9918 fi 9919done 9920 done 9921IFS=$as_save_IFS 9922 9923fi 9924fi 9925ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 9926if test -n "$ac_ct_LIPO"; then 9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 9928$as_echo "$ac_ct_LIPO" >&6; } 9929else 9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9931$as_echo "no" >&6; } 9932fi 9933 9934 if test "x$ac_ct_LIPO" = x; then 9935 LIPO=":" 9936 else 9937 case $cross_compiling:$ac_tool_warned in 9938yes:) 9939{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9940$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9941ac_tool_warned=yes ;; 9942esac 9943 LIPO=$ac_ct_LIPO 9944 fi 9945else 9946 LIPO="$ac_cv_prog_LIPO" 9947fi 9948 9949 if test -n "$ac_tool_prefix"; then 9950 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 9951set dummy ${ac_tool_prefix}otool; ac_word=$2 9952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9953$as_echo_n "checking for $ac_word... " >&6; } 9954if ${ac_cv_prog_OTOOL+:} false; then : 9955 $as_echo_n "(cached) " >&6 9956else 9957 if test -n "$OTOOL"; then 9958 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 9959else 9960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9961for as_dir in $PATH 9962do 9963 IFS=$as_save_IFS 9964 test -z "$as_dir" && as_dir=. 9965 for ac_exec_ext in '' $ac_executable_extensions; do 9966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9967 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 9968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9969 break 2 9970 fi 9971done 9972 done 9973IFS=$as_save_IFS 9974 9975fi 9976fi 9977OTOOL=$ac_cv_prog_OTOOL 9978if test -n "$OTOOL"; then 9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9980$as_echo "$OTOOL" >&6; } 9981else 9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9983$as_echo "no" >&6; } 9984fi 9985 9986 9987fi 9988if test -z "$ac_cv_prog_OTOOL"; then 9989 ac_ct_OTOOL=$OTOOL 9990 # Extract the first word of "otool", so it can be a program name with args. 9991set dummy otool; ac_word=$2 9992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9993$as_echo_n "checking for $ac_word... " >&6; } 9994if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 9995 $as_echo_n "(cached) " >&6 9996else 9997 if test -n "$ac_ct_OTOOL"; then 9998 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 9999else 10000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10001for as_dir in $PATH 10002do 10003 IFS=$as_save_IFS 10004 test -z "$as_dir" && as_dir=. 10005 for ac_exec_ext in '' $ac_executable_extensions; do 10006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10007 ac_cv_prog_ac_ct_OTOOL="otool" 10008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10009 break 2 10010 fi 10011done 10012 done 10013IFS=$as_save_IFS 10014 10015fi 10016fi 10017ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 10018if test -n "$ac_ct_OTOOL"; then 10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 10020$as_echo "$ac_ct_OTOOL" >&6; } 10021else 10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10023$as_echo "no" >&6; } 10024fi 10025 10026 if test "x$ac_ct_OTOOL" = x; then 10027 OTOOL=":" 10028 else 10029 case $cross_compiling:$ac_tool_warned in 10030yes:) 10031{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10032$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10033ac_tool_warned=yes ;; 10034esac 10035 OTOOL=$ac_ct_OTOOL 10036 fi 10037else 10038 OTOOL="$ac_cv_prog_OTOOL" 10039fi 10040 10041 if test -n "$ac_tool_prefix"; then 10042 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 10043set dummy ${ac_tool_prefix}otool64; ac_word=$2 10044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10045$as_echo_n "checking for $ac_word... " >&6; } 10046if ${ac_cv_prog_OTOOL64+:} false; then : 10047 $as_echo_n "(cached) " >&6 10048else 10049 if test -n "$OTOOL64"; then 10050 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 10051else 10052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10053for as_dir in $PATH 10054do 10055 IFS=$as_save_IFS 10056 test -z "$as_dir" && as_dir=. 10057 for ac_exec_ext in '' $ac_executable_extensions; do 10058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10059 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 10060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10061 break 2 10062 fi 10063done 10064 done 10065IFS=$as_save_IFS 10066 10067fi 10068fi 10069OTOOL64=$ac_cv_prog_OTOOL64 10070if test -n "$OTOOL64"; then 10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 10072$as_echo "$OTOOL64" >&6; } 10073else 10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10075$as_echo "no" >&6; } 10076fi 10077 10078 10079fi 10080if test -z "$ac_cv_prog_OTOOL64"; then 10081 ac_ct_OTOOL64=$OTOOL64 10082 # Extract the first word of "otool64", so it can be a program name with args. 10083set dummy otool64; ac_word=$2 10084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10085$as_echo_n "checking for $ac_word... " >&6; } 10086if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 10087 $as_echo_n "(cached) " >&6 10088else 10089 if test -n "$ac_ct_OTOOL64"; then 10090 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 10091else 10092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10093for as_dir in $PATH 10094do 10095 IFS=$as_save_IFS 10096 test -z "$as_dir" && as_dir=. 10097 for ac_exec_ext in '' $ac_executable_extensions; do 10098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10099 ac_cv_prog_ac_ct_OTOOL64="otool64" 10100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10101 break 2 10102 fi 10103done 10104 done 10105IFS=$as_save_IFS 10106 10107fi 10108fi 10109ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 10110if test -n "$ac_ct_OTOOL64"; then 10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 10112$as_echo "$ac_ct_OTOOL64" >&6; } 10113else 10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10115$as_echo "no" >&6; } 10116fi 10117 10118 if test "x$ac_ct_OTOOL64" = x; then 10119 OTOOL64=":" 10120 else 10121 case $cross_compiling:$ac_tool_warned in 10122yes:) 10123{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10124$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10125ac_tool_warned=yes ;; 10126esac 10127 OTOOL64=$ac_ct_OTOOL64 10128 fi 10129else 10130 OTOOL64="$ac_cv_prog_OTOOL64" 10131fi 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 10160$as_echo_n "checking for -single_module linker flag... " >&6; } 10161if ${lt_cv_apple_cc_single_mod+:} false; then : 10162 $as_echo_n "(cached) " >&6 10163else 10164 lt_cv_apple_cc_single_mod=no 10165 if test -z "${LT_MULTI_MODULE}"; then 10166 # By default we will add the -single_module flag. You can override 10167 # by either setting the environment variable LT_MULTI_MODULE 10168 # non-empty at configure time, or by adding -multi_module to the 10169 # link flags. 10170 rm -rf libconftest.dylib* 10171 echo "int foo(void){return 1;}" > conftest.c 10172 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10173-dynamiclib -Wl,-single_module conftest.c" >&5 10174 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10175 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 10176 _lt_result=$? 10177 # If there is a non-empty error log, and "single_module" 10178 # appears in it, assume the flag caused a linker warning 10179 if test -s conftest.err && $GREP single_module conftest.err; then 10180 cat conftest.err >&5 10181 # Otherwise, if the output was created with a 0 exit code from 10182 # the compiler, it worked. 10183 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 10184 lt_cv_apple_cc_single_mod=yes 10185 else 10186 cat conftest.err >&5 10187 fi 10188 rm -rf libconftest.dylib* 10189 rm -f conftest.* 10190 fi 10191fi 10192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 10193$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 10194 10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 10196$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 10197if ${lt_cv_ld_exported_symbols_list+:} false; then : 10198 $as_echo_n "(cached) " >&6 10199else 10200 lt_cv_ld_exported_symbols_list=no 10201 save_LDFLAGS=$LDFLAGS 10202 echo "_main" > conftest.sym 10203 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 10204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10205/* end confdefs.h. */ 10206 10207int 10208main () 10209{ 10210 10211 ; 10212 return 0; 10213} 10214_ACEOF 10215if ac_fn_c_try_link "$LINENO"; then : 10216 lt_cv_ld_exported_symbols_list=yes 10217else 10218 lt_cv_ld_exported_symbols_list=no 10219fi 10220rm -f core conftest.err conftest.$ac_objext \ 10221 conftest$ac_exeext conftest.$ac_ext 10222 LDFLAGS="$save_LDFLAGS" 10223 10224fi 10225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 10226$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 10227 10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 10229$as_echo_n "checking for -force_load linker flag... " >&6; } 10230if ${lt_cv_ld_force_load+:} false; then : 10231 $as_echo_n "(cached) " >&6 10232else 10233 lt_cv_ld_force_load=no 10234 cat > conftest.c << _LT_EOF 10235int forced_loaded() { return 2;} 10236_LT_EOF 10237 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 10238 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 10239 echo "$AR cru libconftest.a conftest.o" >&5 10240 $AR cru libconftest.a conftest.o 2>&5 10241 echo "$RANLIB libconftest.a" >&5 10242 $RANLIB libconftest.a 2>&5 10243 cat > conftest.c << _LT_EOF 10244int main() { return 0;} 10245_LT_EOF 10246 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 10247 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 10248 _lt_result=$? 10249 if test -s conftest.err && $GREP force_load conftest.err; then 10250 cat conftest.err >&5 10251 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 10252 lt_cv_ld_force_load=yes 10253 else 10254 cat conftest.err >&5 10255 fi 10256 rm -f conftest.err libconftest.a conftest conftest.c 10257 rm -rf conftest.dSYM 10258 10259fi 10260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 10261$as_echo "$lt_cv_ld_force_load" >&6; } 10262 case $host_os in 10263 rhapsody* | darwin1.[012]) 10264 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 10265 darwin1.*) 10266 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10267 darwin*) # darwin 5.x on 10268 # if running on 10.5 or later, the deployment target defaults 10269 # to the OS version, if on x86, and 10.4, the deployment 10270 # target defaults to 10.4. Don't you love it? 10271 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10272 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 10273 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10274 10.[012]*) 10275 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10276 10.*) 10277 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10278 esac 10279 ;; 10280 esac 10281 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 10282 _lt_dar_single_mod='$single_module' 10283 fi 10284 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 10285 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 10286 else 10287 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 10288 fi 10289 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 10290 _lt_dsymutil='~$DSYMUTIL $lib || :' 10291 else 10292 _lt_dsymutil= 10293 fi 10294 ;; 10295 esac 10296 10297for ac_header in dlfcn.h 10298do : 10299 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 10300" 10301if test "x$ac_cv_header_dlfcn_h" = xyes; then : 10302 cat >>confdefs.h <<_ACEOF 10303#define HAVE_DLFCN_H 1 10304_ACEOF 10305 10306fi 10307 10308done 10309 10310 10311 10312func_stripname_cnf () 10313{ 10314 case ${2} in 10315 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 10316 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 10317 esac 10318} # func_stripname_cnf 10319 10320 10321 10322 10323 10324# Set options 10325 10326 10327 10328 enable_dlopen=no 10329 10330 10331 enable_win32_dll=no 10332 10333 10334 # Check whether --enable-shared was given. 10335if test "${enable_shared+set}" = set; then : 10336 enableval=$enable_shared; p=${PACKAGE-default} 10337 case $enableval in 10338 yes) enable_shared=yes ;; 10339 no) enable_shared=no ;; 10340 *) 10341 enable_shared=no 10342 # Look at the argument we got. We use all the common list separators. 10343 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10344 for pkg in $enableval; do 10345 IFS="$lt_save_ifs" 10346 if test "X$pkg" = "X$p"; then 10347 enable_shared=yes 10348 fi 10349 done 10350 IFS="$lt_save_ifs" 10351 ;; 10352 esac 10353else 10354 enable_shared=yes 10355fi 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 # Check whether --enable-static was given. 10366if test "${enable_static+set}" = set; then : 10367 enableval=$enable_static; p=${PACKAGE-default} 10368 case $enableval in 10369 yes) enable_static=yes ;; 10370 no) enable_static=no ;; 10371 *) 10372 enable_static=no 10373 # Look at the argument we got. We use all the common list separators. 10374 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10375 for pkg in $enableval; do 10376 IFS="$lt_save_ifs" 10377 if test "X$pkg" = "X$p"; then 10378 enable_static=yes 10379 fi 10380 done 10381 IFS="$lt_save_ifs" 10382 ;; 10383 esac 10384else 10385 enable_static=yes 10386fi 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397# Check whether --with-pic was given. 10398if test "${with_pic+set}" = set; then : 10399 withval=$with_pic; lt_p=${PACKAGE-default} 10400 case $withval in 10401 yes|no) pic_mode=$withval ;; 10402 *) 10403 pic_mode=default 10404 # Look at the argument we got. We use all the common list separators. 10405 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10406 for lt_pkg in $withval; do 10407 IFS="$lt_save_ifs" 10408 if test "X$lt_pkg" = "X$lt_p"; then 10409 pic_mode=yes 10410 fi 10411 done 10412 IFS="$lt_save_ifs" 10413 ;; 10414 esac 10415else 10416 pic_mode=default 10417fi 10418 10419 10420test -z "$pic_mode" && pic_mode=default 10421 10422 10423 10424 10425 10426 10427 10428 # Check whether --enable-fast-install was given. 10429if test "${enable_fast_install+set}" = set; then : 10430 enableval=$enable_fast_install; p=${PACKAGE-default} 10431 case $enableval in 10432 yes) enable_fast_install=yes ;; 10433 no) enable_fast_install=no ;; 10434 *) 10435 enable_fast_install=no 10436 # Look at the argument we got. We use all the common list separators. 10437 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10438 for pkg in $enableval; do 10439 IFS="$lt_save_ifs" 10440 if test "X$pkg" = "X$p"; then 10441 enable_fast_install=yes 10442 fi 10443 done 10444 IFS="$lt_save_ifs" 10445 ;; 10446 esac 10447else 10448 enable_fast_install=yes 10449fi 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461# This can be used to rebuild libtool when needed 10462LIBTOOL_DEPS="$ltmain" 10463 10464# Always use our own libtool. 10465LIBTOOL='$(SHELL) $(top_builddir)/libtool' 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496test -z "$LN_S" && LN_S="ln -s" 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511if test -n "${ZSH_VERSION+set}" ; then 10512 setopt NO_GLOB_SUBST 10513fi 10514 10515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 10516$as_echo_n "checking for objdir... " >&6; } 10517if ${lt_cv_objdir+:} false; then : 10518 $as_echo_n "(cached) " >&6 10519else 10520 rm -f .libs 2>/dev/null 10521mkdir .libs 2>/dev/null 10522if test -d .libs; then 10523 lt_cv_objdir=.libs 10524else 10525 # MS-DOS does not allow filenames that begin with a dot. 10526 lt_cv_objdir=_libs 10527fi 10528rmdir .libs 2>/dev/null 10529fi 10530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 10531$as_echo "$lt_cv_objdir" >&6; } 10532objdir=$lt_cv_objdir 10533 10534 10535 10536 10537 10538cat >>confdefs.h <<_ACEOF 10539#define LT_OBJDIR "$lt_cv_objdir/" 10540_ACEOF 10541 10542 10543 10544 10545case $host_os in 10546aix3*) 10547 # AIX sometimes has problems with the GCC collect2 program. For some 10548 # reason, if we set the COLLECT_NAMES environment variable, the problems 10549 # vanish in a puff of smoke. 10550 if test "X${COLLECT_NAMES+set}" != Xset; then 10551 COLLECT_NAMES= 10552 export COLLECT_NAMES 10553 fi 10554 ;; 10555esac 10556 10557# Global variables: 10558ofile=libtool 10559can_build_shared=yes 10560 10561# All known linkers require a `.a' archive for static linking (except MSVC, 10562# which needs '.lib'). 10563libext=a 10564 10565with_gnu_ld="$lt_cv_prog_gnu_ld" 10566 10567old_CC="$CC" 10568old_CFLAGS="$CFLAGS" 10569 10570# Set sane defaults for various variables 10571test -z "$CC" && CC=cc 10572test -z "$LTCC" && LTCC=$CC 10573test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 10574test -z "$LD" && LD=ld 10575test -z "$ac_objext" && ac_objext=o 10576 10577for cc_temp in $compiler""; do 10578 case $cc_temp in 10579 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10580 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10581 \-*) ;; 10582 *) break;; 10583 esac 10584done 10585cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 10586 10587 10588# Only perform the check for file, if the check method requires it 10589test -z "$MAGIC_CMD" && MAGIC_CMD=file 10590case $deplibs_check_method in 10591file_magic*) 10592 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 10594$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 10595if ${lt_cv_path_MAGIC_CMD+:} false; then : 10596 $as_echo_n "(cached) " >&6 10597else 10598 case $MAGIC_CMD in 10599[\\/*] | ?:[\\/]*) 10600 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 10601 ;; 10602*) 10603 lt_save_MAGIC_CMD="$MAGIC_CMD" 10604 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10605 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10606 for ac_dir in $ac_dummy; do 10607 IFS="$lt_save_ifs" 10608 test -z "$ac_dir" && ac_dir=. 10609 if test -f $ac_dir/${ac_tool_prefix}file; then 10610 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 10611 if test -n "$file_magic_test_file"; then 10612 case $deplibs_check_method in 10613 "file_magic "*) 10614 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10615 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10616 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10617 $EGREP "$file_magic_regex" > /dev/null; then 10618 : 10619 else 10620 cat <<_LT_EOF 1>&2 10621 10622*** Warning: the command libtool uses to detect shared libraries, 10623*** $file_magic_cmd, produces output that libtool cannot recognize. 10624*** The result is that libtool may fail to recognize shared libraries 10625*** as such. This will affect the creation of libtool libraries that 10626*** depend on shared libraries, but programs linked with such libtool 10627*** libraries will work regardless of this problem. Nevertheless, you 10628*** may want to report the problem to your system manager and/or to 10629*** bug-libtool@gnu.org 10630 10631_LT_EOF 10632 fi ;; 10633 esac 10634 fi 10635 break 10636 fi 10637 done 10638 IFS="$lt_save_ifs" 10639 MAGIC_CMD="$lt_save_MAGIC_CMD" 10640 ;; 10641esac 10642fi 10643 10644MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10645if test -n "$MAGIC_CMD"; then 10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10647$as_echo "$MAGIC_CMD" >&6; } 10648else 10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10650$as_echo "no" >&6; } 10651fi 10652 10653 10654 10655 10656 10657if test -z "$lt_cv_path_MAGIC_CMD"; then 10658 if test -n "$ac_tool_prefix"; then 10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 10660$as_echo_n "checking for file... " >&6; } 10661if ${lt_cv_path_MAGIC_CMD+:} false; then : 10662 $as_echo_n "(cached) " >&6 10663else 10664 case $MAGIC_CMD in 10665[\\/*] | ?:[\\/]*) 10666 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 10667 ;; 10668*) 10669 lt_save_MAGIC_CMD="$MAGIC_CMD" 10670 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10671 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10672 for ac_dir in $ac_dummy; do 10673 IFS="$lt_save_ifs" 10674 test -z "$ac_dir" && ac_dir=. 10675 if test -f $ac_dir/file; then 10676 lt_cv_path_MAGIC_CMD="$ac_dir/file" 10677 if test -n "$file_magic_test_file"; then 10678 case $deplibs_check_method in 10679 "file_magic "*) 10680 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10681 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10682 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10683 $EGREP "$file_magic_regex" > /dev/null; then 10684 : 10685 else 10686 cat <<_LT_EOF 1>&2 10687 10688*** Warning: the command libtool uses to detect shared libraries, 10689*** $file_magic_cmd, produces output that libtool cannot recognize. 10690*** The result is that libtool may fail to recognize shared libraries 10691*** as such. This will affect the creation of libtool libraries that 10692*** depend on shared libraries, but programs linked with such libtool 10693*** libraries will work regardless of this problem. Nevertheless, you 10694*** may want to report the problem to your system manager and/or to 10695*** bug-libtool@gnu.org 10696 10697_LT_EOF 10698 fi ;; 10699 esac 10700 fi 10701 break 10702 fi 10703 done 10704 IFS="$lt_save_ifs" 10705 MAGIC_CMD="$lt_save_MAGIC_CMD" 10706 ;; 10707esac 10708fi 10709 10710MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10711if test -n "$MAGIC_CMD"; then 10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10713$as_echo "$MAGIC_CMD" >&6; } 10714else 10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10716$as_echo "no" >&6; } 10717fi 10718 10719 10720 else 10721 MAGIC_CMD=: 10722 fi 10723fi 10724 10725 fi 10726 ;; 10727esac 10728 10729# Use C for the default configuration in the libtool script 10730 10731lt_save_CC="$CC" 10732ac_ext=c 10733ac_cpp='$CPP $CPPFLAGS' 10734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10736ac_compiler_gnu=$ac_cv_c_compiler_gnu 10737 10738 10739# Source file extension for C test sources. 10740ac_ext=c 10741 10742# Object file extension for compiled C test sources. 10743objext=o 10744objext=$objext 10745 10746# Code to be used in simple compile tests 10747lt_simple_compile_test_code="int some_variable = 0;" 10748 10749# Code to be used in simple link tests 10750lt_simple_link_test_code='int main(){return(0);}' 10751 10752 10753 10754 10755 10756 10757 10758# If no C compiler was specified, use CC. 10759LTCC=${LTCC-"$CC"} 10760 10761# If no C compiler flags were specified, use CFLAGS. 10762LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10763 10764# Allow CC to be a program name with arguments. 10765compiler=$CC 10766 10767# Save the default compiler, since it gets overwritten when the other 10768# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 10769compiler_DEFAULT=$CC 10770 10771# save warnings/boilerplate of simple test code 10772ac_outfile=conftest.$ac_objext 10773echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10774eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10775_lt_compiler_boilerplate=`cat conftest.err` 10776$RM conftest* 10777 10778ac_outfile=conftest.$ac_objext 10779echo "$lt_simple_link_test_code" >conftest.$ac_ext 10780eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10781_lt_linker_boilerplate=`cat conftest.err` 10782$RM -r conftest* 10783 10784 10785## CAVEAT EMPTOR: 10786## There is no encapsulation within the following macros, do not change 10787## the running order or otherwise move them around unless you know exactly 10788## what you are doing... 10789if test -n "$compiler"; then 10790 10791lt_prog_compiler_no_builtin_flag= 10792 10793if test "$GCC" = yes; then 10794 case $cc_basename in 10795 nvcc*) 10796 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 10797 *) 10798 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 10799 esac 10800 10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10802$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10803if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 10804 $as_echo_n "(cached) " >&6 10805else 10806 lt_cv_prog_compiler_rtti_exceptions=no 10807 ac_outfile=conftest.$ac_objext 10808 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10809 lt_compiler_flag="-fno-rtti -fno-exceptions" 10810 # Insert the option either (1) after the last *FLAGS variable, or 10811 # (2) before a word containing "conftest.", or (3) at the end. 10812 # Note that $ac_compile itself does not contain backslashes and begins 10813 # with a dollar sign (not a hyphen), so the echo should work correctly. 10814 # The option is referenced via a variable to avoid confusing sed. 10815 lt_compile=`echo "$ac_compile" | $SED \ 10816 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10817 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10818 -e 's:$: $lt_compiler_flag:'` 10819 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10820 (eval "$lt_compile" 2>conftest.err) 10821 ac_status=$? 10822 cat conftest.err >&5 10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10824 if (exit $ac_status) && test -s "$ac_outfile"; then 10825 # The compiler can only warn and ignore the option if not recognized 10826 # So say no if there are warnings other than the usual output. 10827 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10828 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10829 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10830 lt_cv_prog_compiler_rtti_exceptions=yes 10831 fi 10832 fi 10833 $RM conftest* 10834 10835fi 10836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10837$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10838 10839if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 10840 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10841else 10842 : 10843fi 10844 10845fi 10846 10847 10848 10849 10850 10851 10852 lt_prog_compiler_wl= 10853lt_prog_compiler_pic= 10854lt_prog_compiler_static= 10855 10856 10857 if test "$GCC" = yes; then 10858 lt_prog_compiler_wl='-Wl,' 10859 lt_prog_compiler_static='-static' 10860 10861 case $host_os in 10862 aix*) 10863 # All AIX code is PIC. 10864 if test "$host_cpu" = ia64; then 10865 # AIX 5 now supports IA64 processor 10866 lt_prog_compiler_static='-Bstatic' 10867 fi 10868 ;; 10869 10870 amigaos*) 10871 case $host_cpu in 10872 powerpc) 10873 # see comment about AmigaOS4 .so support 10874 lt_prog_compiler_pic='-fPIC' 10875 ;; 10876 m68k) 10877 # FIXME: we need at least 68020 code to build shared libraries, but 10878 # adding the `-m68020' flag to GCC prevents building anything better, 10879 # like `-m68040'. 10880 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10881 ;; 10882 esac 10883 ;; 10884 10885 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10886 # PIC is the default for these OSes. 10887 ;; 10888 10889 mingw* | cygwin* | pw32* | os2* | cegcc*) 10890 # This hack is so that the source file can tell whether it is being 10891 # built for inclusion in a dll (and should export symbols for example). 10892 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10893 # (--disable-auto-import) libraries 10894 lt_prog_compiler_pic='-DDLL_EXPORT' 10895 ;; 10896 10897 darwin* | rhapsody*) 10898 # PIC is the default on this platform 10899 # Common symbols not allowed in MH_DYLIB files 10900 lt_prog_compiler_pic='-fno-common' 10901 ;; 10902 10903 haiku*) 10904 # PIC is the default for Haiku. 10905 # The "-static" flag exists, but is broken. 10906 lt_prog_compiler_static= 10907 ;; 10908 10909 hpux*) 10910 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10911 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10912 # sets the default TLS model and affects inlining. 10913 case $host_cpu in 10914 hppa*64*) 10915 # +Z the default 10916 ;; 10917 *) 10918 lt_prog_compiler_pic='-fPIC' 10919 ;; 10920 esac 10921 ;; 10922 10923 interix[3-9]*) 10924 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10925 # Instead, we relocate shared libraries at runtime. 10926 ;; 10927 10928 msdosdjgpp*) 10929 # Just because we use GCC doesn't mean we suddenly get shared libraries 10930 # on systems that don't support them. 10931 lt_prog_compiler_can_build_shared=no 10932 enable_shared=no 10933 ;; 10934 10935 *nto* | *qnx*) 10936 # QNX uses GNU C++, but need to define -shared option too, otherwise 10937 # it will coredump. 10938 lt_prog_compiler_pic='-fPIC -shared' 10939 ;; 10940 10941 sysv4*MP*) 10942 if test -d /usr/nec; then 10943 lt_prog_compiler_pic=-Kconform_pic 10944 fi 10945 ;; 10946 10947 *) 10948 lt_prog_compiler_pic='-fPIC' 10949 ;; 10950 esac 10951 10952 case $cc_basename in 10953 nvcc*) # Cuda Compiler Driver 2.2 10954 lt_prog_compiler_wl='-Xlinker ' 10955 if test -n "$lt_prog_compiler_pic"; then 10956 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 10957 fi 10958 ;; 10959 esac 10960 else 10961 # PORTME Check for flag to pass linker flags through the system compiler. 10962 case $host_os in 10963 aix*) 10964 lt_prog_compiler_wl='-Wl,' 10965 if test "$host_cpu" = ia64; then 10966 # AIX 5 now supports IA64 processor 10967 lt_prog_compiler_static='-Bstatic' 10968 else 10969 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10970 fi 10971 ;; 10972 10973 mingw* | cygwin* | pw32* | os2* | cegcc*) 10974 # This hack is so that the source file can tell whether it is being 10975 # built for inclusion in a dll (and should export symbols for example). 10976 lt_prog_compiler_pic='-DDLL_EXPORT' 10977 ;; 10978 10979 hpux9* | hpux10* | hpux11*) 10980 lt_prog_compiler_wl='-Wl,' 10981 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10982 # not for PA HP-UX. 10983 case $host_cpu in 10984 hppa*64*|ia64*) 10985 # +Z the default 10986 ;; 10987 *) 10988 lt_prog_compiler_pic='+Z' 10989 ;; 10990 esac 10991 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10992 lt_prog_compiler_static='${wl}-a ${wl}archive' 10993 ;; 10994 10995 irix5* | irix6* | nonstopux*) 10996 lt_prog_compiler_wl='-Wl,' 10997 # PIC (with -KPIC) is the default. 10998 lt_prog_compiler_static='-non_shared' 10999 ;; 11000 11001 linux* | k*bsd*-gnu | kopensolaris*-gnu) 11002 case $cc_basename in 11003 # old Intel for x86_64 which still supported -KPIC. 11004 ecc*) 11005 lt_prog_compiler_wl='-Wl,' 11006 lt_prog_compiler_pic='-KPIC' 11007 lt_prog_compiler_static='-static' 11008 ;; 11009 # icc used to be incompatible with GCC. 11010 # ICC 10 doesn't accept -KPIC any more. 11011 icc* | ifort*) 11012 lt_prog_compiler_wl='-Wl,' 11013 lt_prog_compiler_pic='-fPIC' 11014 lt_prog_compiler_static='-static' 11015 ;; 11016 # Lahey Fortran 8.1. 11017 lf95*) 11018 lt_prog_compiler_wl='-Wl,' 11019 lt_prog_compiler_pic='--shared' 11020 lt_prog_compiler_static='--static' 11021 ;; 11022 nagfor*) 11023 # NAG Fortran compiler 11024 lt_prog_compiler_wl='-Wl,-Wl,,' 11025 lt_prog_compiler_pic='-PIC' 11026 lt_prog_compiler_static='-Bstatic' 11027 ;; 11028 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 11029 # Portland Group compilers (*not* the Pentium gcc compiler, 11030 # which looks to be a dead project) 11031 lt_prog_compiler_wl='-Wl,' 11032 lt_prog_compiler_pic='-fpic' 11033 lt_prog_compiler_static='-Bstatic' 11034 ;; 11035 ccc*) 11036 lt_prog_compiler_wl='-Wl,' 11037 # All Alpha code is PIC. 11038 lt_prog_compiler_static='-non_shared' 11039 ;; 11040 xl* | bgxl* | bgf* | mpixl*) 11041 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 11042 lt_prog_compiler_wl='-Wl,' 11043 lt_prog_compiler_pic='-qpic' 11044 lt_prog_compiler_static='-qstaticlink' 11045 ;; 11046 *) 11047 case `$CC -V 2>&1 | sed 5q` in 11048 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 11049 # Sun Fortran 8.3 passes all unrecognized flags to the linker 11050 lt_prog_compiler_pic='-KPIC' 11051 lt_prog_compiler_static='-Bstatic' 11052 lt_prog_compiler_wl='' 11053 ;; 11054 *Sun\ F* | *Sun*Fortran*) 11055 lt_prog_compiler_pic='-KPIC' 11056 lt_prog_compiler_static='-Bstatic' 11057 lt_prog_compiler_wl='-Qoption ld ' 11058 ;; 11059 *Sun\ C*) 11060 # Sun C 5.9 11061 lt_prog_compiler_pic='-KPIC' 11062 lt_prog_compiler_static='-Bstatic' 11063 lt_prog_compiler_wl='-Wl,' 11064 ;; 11065 *Intel*\ [CF]*Compiler*) 11066 lt_prog_compiler_wl='-Wl,' 11067 lt_prog_compiler_pic='-fPIC' 11068 lt_prog_compiler_static='-static' 11069 ;; 11070 *Portland\ Group*) 11071 lt_prog_compiler_wl='-Wl,' 11072 lt_prog_compiler_pic='-fpic' 11073 lt_prog_compiler_static='-Bstatic' 11074 ;; 11075 esac 11076 ;; 11077 esac 11078 ;; 11079 11080 newsos6) 11081 lt_prog_compiler_pic='-KPIC' 11082 lt_prog_compiler_static='-Bstatic' 11083 ;; 11084 11085 *nto* | *qnx*) 11086 # QNX uses GNU C++, but need to define -shared option too, otherwise 11087 # it will coredump. 11088 lt_prog_compiler_pic='-fPIC -shared' 11089 ;; 11090 11091 osf3* | osf4* | osf5*) 11092 lt_prog_compiler_wl='-Wl,' 11093 # All OSF/1 code is PIC. 11094 lt_prog_compiler_static='-non_shared' 11095 ;; 11096 11097 rdos*) 11098 lt_prog_compiler_static='-non_shared' 11099 ;; 11100 11101 solaris*) 11102 lt_prog_compiler_pic='-KPIC' 11103 lt_prog_compiler_static='-Bstatic' 11104 case $cc_basename in 11105 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 11106 lt_prog_compiler_wl='-Qoption ld ';; 11107 *) 11108 lt_prog_compiler_wl='-Wl,';; 11109 esac 11110 ;; 11111 11112 sunos4*) 11113 lt_prog_compiler_wl='-Qoption ld ' 11114 lt_prog_compiler_pic='-PIC' 11115 lt_prog_compiler_static='-Bstatic' 11116 ;; 11117 11118 sysv4 | sysv4.2uw2* | sysv4.3*) 11119 lt_prog_compiler_wl='-Wl,' 11120 lt_prog_compiler_pic='-KPIC' 11121 lt_prog_compiler_static='-Bstatic' 11122 ;; 11123 11124 sysv4*MP*) 11125 if test -d /usr/nec ;then 11126 lt_prog_compiler_pic='-Kconform_pic' 11127 lt_prog_compiler_static='-Bstatic' 11128 fi 11129 ;; 11130 11131 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11132 lt_prog_compiler_wl='-Wl,' 11133 lt_prog_compiler_pic='-KPIC' 11134 lt_prog_compiler_static='-Bstatic' 11135 ;; 11136 11137 unicos*) 11138 lt_prog_compiler_wl='-Wl,' 11139 lt_prog_compiler_can_build_shared=no 11140 ;; 11141 11142 uts4*) 11143 lt_prog_compiler_pic='-pic' 11144 lt_prog_compiler_static='-Bstatic' 11145 ;; 11146 11147 *) 11148 lt_prog_compiler_can_build_shared=no 11149 ;; 11150 esac 11151 fi 11152 11153case $host_os in 11154 # For platforms which do not support PIC, -DPIC is meaningless: 11155 *djgpp*) 11156 lt_prog_compiler_pic= 11157 ;; 11158 *) 11159 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 11160 ;; 11161esac 11162 11163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 11164$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 11165if ${lt_cv_prog_compiler_pic+:} false; then : 11166 $as_echo_n "(cached) " >&6 11167else 11168 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 11169fi 11170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 11171$as_echo "$lt_cv_prog_compiler_pic" >&6; } 11172lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 11173 11174# 11175# Check to make sure the PIC flag actually works. 11176# 11177if test -n "$lt_prog_compiler_pic"; then 11178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 11179$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 11180if ${lt_cv_prog_compiler_pic_works+:} false; then : 11181 $as_echo_n "(cached) " >&6 11182else 11183 lt_cv_prog_compiler_pic_works=no 11184 ac_outfile=conftest.$ac_objext 11185 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11186 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 11187 # Insert the option either (1) after the last *FLAGS variable, or 11188 # (2) before a word containing "conftest.", or (3) at the end. 11189 # Note that $ac_compile itself does not contain backslashes and begins 11190 # with a dollar sign (not a hyphen), so the echo should work correctly. 11191 # The option is referenced via a variable to avoid confusing sed. 11192 lt_compile=`echo "$ac_compile" | $SED \ 11193 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11194 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11195 -e 's:$: $lt_compiler_flag:'` 11196 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11197 (eval "$lt_compile" 2>conftest.err) 11198 ac_status=$? 11199 cat conftest.err >&5 11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11201 if (exit $ac_status) && test -s "$ac_outfile"; then 11202 # The compiler can only warn and ignore the option if not recognized 11203 # So say no if there are warnings other than the usual output. 11204 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11205 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11206 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11207 lt_cv_prog_compiler_pic_works=yes 11208 fi 11209 fi 11210 $RM conftest* 11211 11212fi 11213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 11214$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 11215 11216if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 11217 case $lt_prog_compiler_pic in 11218 "" | " "*) ;; 11219 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 11220 esac 11221else 11222 lt_prog_compiler_pic= 11223 lt_prog_compiler_can_build_shared=no 11224fi 11225 11226fi 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238# 11239# Check to make sure the static flag actually works. 11240# 11241wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 11242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11243$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 11244if ${lt_cv_prog_compiler_static_works+:} false; then : 11245 $as_echo_n "(cached) " >&6 11246else 11247 lt_cv_prog_compiler_static_works=no 11248 save_LDFLAGS="$LDFLAGS" 11249 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11250 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11251 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11252 # The linker can only warn and ignore the option if not recognized 11253 # So say no if there are warnings 11254 if test -s conftest.err; then 11255 # Append any errors to the config.log. 11256 cat conftest.err 1>&5 11257 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11258 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11259 if diff conftest.exp conftest.er2 >/dev/null; then 11260 lt_cv_prog_compiler_static_works=yes 11261 fi 11262 else 11263 lt_cv_prog_compiler_static_works=yes 11264 fi 11265 fi 11266 $RM -r conftest* 11267 LDFLAGS="$save_LDFLAGS" 11268 11269fi 11270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 11271$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 11272 11273if test x"$lt_cv_prog_compiler_static_works" = xyes; then 11274 : 11275else 11276 lt_prog_compiler_static= 11277fi 11278 11279 11280 11281 11282 11283 11284 11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11286$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11287if ${lt_cv_prog_compiler_c_o+:} false; then : 11288 $as_echo_n "(cached) " >&6 11289else 11290 lt_cv_prog_compiler_c_o=no 11291 $RM -r conftest 2>/dev/null 11292 mkdir conftest 11293 cd conftest 11294 mkdir out 11295 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11296 11297 lt_compiler_flag="-o out/conftest2.$ac_objext" 11298 # Insert the option either (1) after the last *FLAGS variable, or 11299 # (2) before a word containing "conftest.", or (3) at the end. 11300 # Note that $ac_compile itself does not contain backslashes and begins 11301 # with a dollar sign (not a hyphen), so the echo should work correctly. 11302 lt_compile=`echo "$ac_compile" | $SED \ 11303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11305 -e 's:$: $lt_compiler_flag:'` 11306 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11307 (eval "$lt_compile" 2>out/conftest.err) 11308 ac_status=$? 11309 cat out/conftest.err >&5 11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11311 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11312 then 11313 # The compiler can only warn and ignore the option if not recognized 11314 # So say no if there are warnings 11315 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11316 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11317 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11318 lt_cv_prog_compiler_c_o=yes 11319 fi 11320 fi 11321 chmod u+w . 2>&5 11322 $RM conftest* 11323 # SGI C++ compiler will create directory out/ii_files/ for 11324 # template instantiation 11325 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11326 $RM out/* && rmdir out 11327 cd .. 11328 $RM -r conftest 11329 $RM conftest* 11330 11331fi 11332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11333$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11334 11335 11336 11337 11338 11339 11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11341$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11342if ${lt_cv_prog_compiler_c_o+:} false; then : 11343 $as_echo_n "(cached) " >&6 11344else 11345 lt_cv_prog_compiler_c_o=no 11346 $RM -r conftest 2>/dev/null 11347 mkdir conftest 11348 cd conftest 11349 mkdir out 11350 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11351 11352 lt_compiler_flag="-o out/conftest2.$ac_objext" 11353 # Insert the option either (1) after the last *FLAGS variable, or 11354 # (2) before a word containing "conftest.", or (3) at the end. 11355 # Note that $ac_compile itself does not contain backslashes and begins 11356 # with a dollar sign (not a hyphen), so the echo should work correctly. 11357 lt_compile=`echo "$ac_compile" | $SED \ 11358 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11359 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11360 -e 's:$: $lt_compiler_flag:'` 11361 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11362 (eval "$lt_compile" 2>out/conftest.err) 11363 ac_status=$? 11364 cat out/conftest.err >&5 11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11366 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11367 then 11368 # The compiler can only warn and ignore the option if not recognized 11369 # So say no if there are warnings 11370 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11371 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11372 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11373 lt_cv_prog_compiler_c_o=yes 11374 fi 11375 fi 11376 chmod u+w . 2>&5 11377 $RM conftest* 11378 # SGI C++ compiler will create directory out/ii_files/ for 11379 # template instantiation 11380 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11381 $RM out/* && rmdir out 11382 cd .. 11383 $RM -r conftest 11384 $RM conftest* 11385 11386fi 11387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11388$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11389 11390 11391 11392 11393hard_links="nottested" 11394if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 11395 # do not overwrite the value of need_locks provided by the user 11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 11397$as_echo_n "checking if we can lock with hard links... " >&6; } 11398 hard_links=yes 11399 $RM conftest* 11400 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11401 touch conftest.a 11402 ln conftest.a conftest.b 2>&5 || hard_links=no 11403 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 11405$as_echo "$hard_links" >&6; } 11406 if test "$hard_links" = no; then 11407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11408$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11409 need_locks=warn 11410 fi 11411else 11412 need_locks=no 11413fi 11414 11415 11416 11417 11418 11419 11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11421$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11422 11423 runpath_var= 11424 allow_undefined_flag= 11425 always_export_symbols=no 11426 archive_cmds= 11427 archive_expsym_cmds= 11428 compiler_needs_object=no 11429 enable_shared_with_static_runtimes=no 11430 export_dynamic_flag_spec= 11431 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11432 hardcode_automatic=no 11433 hardcode_direct=no 11434 hardcode_direct_absolute=no 11435 hardcode_libdir_flag_spec= 11436 hardcode_libdir_separator= 11437 hardcode_minus_L=no 11438 hardcode_shlibpath_var=unsupported 11439 inherit_rpath=no 11440 link_all_deplibs=unknown 11441 module_cmds= 11442 module_expsym_cmds= 11443 old_archive_from_new_cmds= 11444 old_archive_from_expsyms_cmds= 11445 thread_safe_flag_spec= 11446 whole_archive_flag_spec= 11447 # include_expsyms should be a list of space-separated symbols to be *always* 11448 # included in the symbol list 11449 include_expsyms= 11450 # exclude_expsyms can be an extended regexp of symbols to exclude 11451 # it will be wrapped by ` (' and `)$', so one must not match beginning or 11452 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 11453 # as well as any symbol that contains `d'. 11454 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 11455 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 11456 # platforms (ab)use it in PIC code, but their linkers get confused if 11457 # the symbol is explicitly referenced. Since portable code cannot 11458 # rely on this symbol name, it's probably fine to never include it in 11459 # preloaded symbol tables. 11460 # Exclude shared library initialization/finalization symbols. 11461 extract_expsyms_cmds= 11462 11463 case $host_os in 11464 cygwin* | mingw* | pw32* | cegcc*) 11465 # FIXME: the MSVC++ port hasn't been tested in a loooong time 11466 # When not using gcc, we currently assume that we are using 11467 # Microsoft Visual C++. 11468 if test "$GCC" != yes; then 11469 with_gnu_ld=no 11470 fi 11471 ;; 11472 interix*) 11473 # we just hope/assume this is gcc and not c89 (= MSVC++) 11474 with_gnu_ld=yes 11475 ;; 11476 openbsd*) 11477 with_gnu_ld=no 11478 ;; 11479 esac 11480 11481 ld_shlibs=yes 11482 11483 # On some targets, GNU ld is compatible enough with the native linker 11484 # that we're better off using the native interface for both. 11485 lt_use_gnu_ld_interface=no 11486 if test "$with_gnu_ld" = yes; then 11487 case $host_os in 11488 aix*) 11489 # The AIX port of GNU ld has always aspired to compatibility 11490 # with the native linker. However, as the warning in the GNU ld 11491 # block says, versions before 2.19.5* couldn't really create working 11492 # shared libraries, regardless of the interface used. 11493 case `$LD -v 2>&1` in 11494 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 11495 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 11496 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 11497 *) 11498 lt_use_gnu_ld_interface=yes 11499 ;; 11500 esac 11501 ;; 11502 *) 11503 lt_use_gnu_ld_interface=yes 11504 ;; 11505 esac 11506 fi 11507 11508 if test "$lt_use_gnu_ld_interface" = yes; then 11509 # If archive_cmds runs LD, not CC, wlarc should be empty 11510 wlarc='${wl}' 11511 11512 # Set some defaults for GNU ld with shared library support. These 11513 # are reset later if shared libraries are not supported. Putting them 11514 # here allows them to be overridden if necessary. 11515 runpath_var=LD_RUN_PATH 11516 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11517 export_dynamic_flag_spec='${wl}--export-dynamic' 11518 # ancient GNU ld didn't support --whole-archive et. al. 11519 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 11520 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11521 else 11522 whole_archive_flag_spec= 11523 fi 11524 supports_anon_versioning=no 11525 case `$LD -v 2>&1` in 11526 *GNU\ gold*) supports_anon_versioning=yes ;; 11527 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 11528 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 11529 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 11530 *\ 2.11.*) ;; # other 2.11 versions 11531 *) supports_anon_versioning=yes ;; 11532 esac 11533 11534 # See if GNU ld supports shared libraries. 11535 case $host_os in 11536 aix[3-9]*) 11537 # On AIX/PPC, the GNU linker is very broken 11538 if test "$host_cpu" != ia64; then 11539 ld_shlibs=no 11540 cat <<_LT_EOF 1>&2 11541 11542*** Warning: the GNU linker, at least up to release 2.19, is reported 11543*** to be unable to reliably create shared libraries on AIX. 11544*** Therefore, libtool is disabling shared libraries support. If you 11545*** really care for shared libraries, you may want to install binutils 11546*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 11547*** You will then need to restart the configuration process. 11548 11549_LT_EOF 11550 fi 11551 ;; 11552 11553 amigaos*) 11554 case $host_cpu in 11555 powerpc) 11556 # see comment about AmigaOS4 .so support 11557 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11558 archive_expsym_cmds='' 11559 ;; 11560 m68k) 11561 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)' 11562 hardcode_libdir_flag_spec='-L$libdir' 11563 hardcode_minus_L=yes 11564 ;; 11565 esac 11566 ;; 11567 11568 beos*) 11569 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11570 allow_undefined_flag=unsupported 11571 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11572 # support --undefined. This deserves some investigation. FIXME 11573 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11574 else 11575 ld_shlibs=no 11576 fi 11577 ;; 11578 11579 cygwin* | mingw* | pw32* | cegcc*) 11580 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 11581 # as there is no search path for DLLs. 11582 hardcode_libdir_flag_spec='-L$libdir' 11583 export_dynamic_flag_spec='${wl}--export-all-symbols' 11584 allow_undefined_flag=unsupported 11585 always_export_symbols=no 11586 enable_shared_with_static_runtimes=yes 11587 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' 11588 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 11589 11590 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 11591 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11592 # If the export-symbols file already is a .def file (1st line 11593 # is EXPORTS), use it as is; otherwise, prepend... 11594 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11595 cp $export_symbols $output_objdir/$soname.def; 11596 else 11597 echo EXPORTS > $output_objdir/$soname.def; 11598 cat $export_symbols >> $output_objdir/$soname.def; 11599 fi~ 11600 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11601 else 11602 ld_shlibs=no 11603 fi 11604 ;; 11605 11606 haiku*) 11607 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11608 link_all_deplibs=yes 11609 ;; 11610 11611 interix[3-9]*) 11612 hardcode_direct=no 11613 hardcode_shlibpath_var=no 11614 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11615 export_dynamic_flag_spec='${wl}-E' 11616 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11617 # Instead, shared libraries are loaded at an image base (0x10000000 by 11618 # default) and relocated if they conflict, which is a slow very memory 11619 # consuming and fragmenting process. To avoid this, we pick a random, 11620 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11621 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11622 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11623 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' 11624 ;; 11625 11626 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 11627 tmp_diet=no 11628 if test "$host_os" = linux-dietlibc; then 11629 case $cc_basename in 11630 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 11631 esac 11632 fi 11633 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 11634 && test "$tmp_diet" = no 11635 then 11636 tmp_addflag=' $pic_flag' 11637 tmp_sharedflag='-shared' 11638 case $cc_basename,$host_cpu in 11639 pgcc*) # Portland Group C compiler 11640 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' 11641 tmp_addflag=' $pic_flag' 11642 ;; 11643 pgf77* | pgf90* | pgf95* | pgfortran*) 11644 # Portland Group f77 and f90 compilers 11645 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' 11646 tmp_addflag=' $pic_flag -Mnomain' ;; 11647 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11648 tmp_addflag=' -i_dynamic' ;; 11649 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11650 tmp_addflag=' -i_dynamic -nofor_main' ;; 11651 ifc* | ifort*) # Intel Fortran compiler 11652 tmp_addflag=' -nofor_main' ;; 11653 lf95*) # Lahey Fortran 8.1 11654 whole_archive_flag_spec= 11655 tmp_sharedflag='--shared' ;; 11656 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 11657 tmp_sharedflag='-qmkshrobj' 11658 tmp_addflag= ;; 11659 nvcc*) # Cuda Compiler Driver 2.2 11660 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' 11661 compiler_needs_object=yes 11662 ;; 11663 esac 11664 case `$CC -V 2>&1 | sed 5q` in 11665 *Sun\ C*) # Sun C 5.9 11666 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' 11667 compiler_needs_object=yes 11668 tmp_sharedflag='-G' ;; 11669 *Sun\ F*) # Sun Fortran 8.3 11670 tmp_sharedflag='-G' ;; 11671 esac 11672 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11673 11674 if test "x$supports_anon_versioning" = xyes; then 11675 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11676 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11677 echo "local: *; };" >> $output_objdir/$libname.ver~ 11678 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 11679 fi 11680 11681 case $cc_basename in 11682 xlf* | bgf* | bgxlf* | mpixlf*) 11683 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 11684 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 11685 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11686 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 11687 if test "x$supports_anon_versioning" = xyes; then 11688 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11689 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11690 echo "local: *; };" >> $output_objdir/$libname.ver~ 11691 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 11692 fi 11693 ;; 11694 esac 11695 else 11696 ld_shlibs=no 11697 fi 11698 ;; 11699 11700 netbsd*) 11701 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11702 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11703 wlarc= 11704 else 11705 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11706 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11707 fi 11708 ;; 11709 11710 solaris*) 11711 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 11712 ld_shlibs=no 11713 cat <<_LT_EOF 1>&2 11714 11715*** Warning: The releases 2.8.* of the GNU linker cannot reliably 11716*** create shared libraries on Solaris systems. Therefore, libtool 11717*** is disabling shared libraries support. We urge you to upgrade GNU 11718*** binutils to release 2.9.1 or newer. Another option is to modify 11719*** your PATH or compiler configuration so that the native linker is 11720*** used, and then restart. 11721 11722_LT_EOF 11723 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11724 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11725 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11726 else 11727 ld_shlibs=no 11728 fi 11729 ;; 11730 11731 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 11732 case `$LD -v 2>&1` in 11733 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 11734 ld_shlibs=no 11735 cat <<_LT_EOF 1>&2 11736 11737*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 11738*** reliably create shared libraries on SCO systems. Therefore, libtool 11739*** is disabling shared libraries support. We urge you to upgrade GNU 11740*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 11741*** your PATH or compiler configuration so that the native linker is 11742*** used, and then restart. 11743 11744_LT_EOF 11745 ;; 11746 *) 11747 # For security reasons, it is highly recommended that you always 11748 # use absolute paths for naming shared libraries, and exclude the 11749 # DT_RUNPATH tag from executables and libraries. But doing so 11750 # requires that you compile everything twice, which is a pain. 11751 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11752 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11753 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11754 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11755 else 11756 ld_shlibs=no 11757 fi 11758 ;; 11759 esac 11760 ;; 11761 11762 sunos4*) 11763 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11764 wlarc= 11765 hardcode_direct=yes 11766 hardcode_shlibpath_var=no 11767 ;; 11768 11769 *) 11770 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11771 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11772 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11773 else 11774 ld_shlibs=no 11775 fi 11776 ;; 11777 esac 11778 11779 if test "$ld_shlibs" = no; then 11780 runpath_var= 11781 hardcode_libdir_flag_spec= 11782 export_dynamic_flag_spec= 11783 whole_archive_flag_spec= 11784 fi 11785 else 11786 # PORTME fill in a description of your system's linker (not GNU ld) 11787 case $host_os in 11788 aix3*) 11789 allow_undefined_flag=unsupported 11790 always_export_symbols=yes 11791 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' 11792 # Note: this linker hardcodes the directories in LIBPATH if there 11793 # are no directories specified by -L. 11794 hardcode_minus_L=yes 11795 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 11796 # Neither direct hardcoding nor static linking is supported with a 11797 # broken collect2. 11798 hardcode_direct=unsupported 11799 fi 11800 ;; 11801 11802 aix[4-9]*) 11803 if test "$host_cpu" = ia64; then 11804 # On IA64, the linker does run time linking by default, so we don't 11805 # have to do anything special. 11806 aix_use_runtimelinking=no 11807 exp_sym_flag='-Bexport' 11808 no_entry_flag="" 11809 else 11810 # If we're using GNU nm, then we don't want the "-C" option. 11811 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11812 # Also, AIX nm treats weak defined symbols like other global 11813 # defined symbols, whereas GNU nm marks them as "W". 11814 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11815 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 11816 else 11817 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 11818 fi 11819 aix_use_runtimelinking=no 11820 11821 # Test if we are trying to use run time linking or normal 11822 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11823 # need to do runtime linking. 11824 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11825 for ld_flag in $LDFLAGS; do 11826 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 11827 aix_use_runtimelinking=yes 11828 break 11829 fi 11830 done 11831 ;; 11832 esac 11833 11834 exp_sym_flag='-bexport' 11835 no_entry_flag='-bnoentry' 11836 fi 11837 11838 # When large executables or shared objects are built, AIX ld can 11839 # have problems creating the table of contents. If linking a library 11840 # or program results in "error TOC overflow" add -mminimal-toc to 11841 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11842 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11843 11844 archive_cmds='' 11845 hardcode_direct=yes 11846 hardcode_direct_absolute=yes 11847 hardcode_libdir_separator=':' 11848 link_all_deplibs=yes 11849 file_list_spec='${wl}-f,' 11850 11851 if test "$GCC" = yes; then 11852 case $host_os in aix4.[012]|aix4.[012].*) 11853 # We only want to do this on AIX 4.2 and lower, the check 11854 # below for broken collect2 doesn't work under 4.3+ 11855 collect2name=`${CC} -print-prog-name=collect2` 11856 if test -f "$collect2name" && 11857 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11858 then 11859 # We have reworked collect2 11860 : 11861 else 11862 # We have old collect2 11863 hardcode_direct=unsupported 11864 # It fails to find uninstalled libraries when the uninstalled 11865 # path is not listed in the libpath. Setting hardcode_minus_L 11866 # to unsupported forces relinking 11867 hardcode_minus_L=yes 11868 hardcode_libdir_flag_spec='-L$libdir' 11869 hardcode_libdir_separator= 11870 fi 11871 ;; 11872 esac 11873 shared_flag='-shared' 11874 if test "$aix_use_runtimelinking" = yes; then 11875 shared_flag="$shared_flag "'${wl}-G' 11876 fi 11877 else 11878 # not using gcc 11879 if test "$host_cpu" = ia64; then 11880 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11881 # chokes on -Wl,-G. The following line is correct: 11882 shared_flag='-G' 11883 else 11884 if test "$aix_use_runtimelinking" = yes; then 11885 shared_flag='${wl}-G' 11886 else 11887 shared_flag='${wl}-bM:SRE' 11888 fi 11889 fi 11890 fi 11891 11892 export_dynamic_flag_spec='${wl}-bexpall' 11893 # It seems that -bexpall does not export symbols beginning with 11894 # underscore (_), so it is better to generate a list of symbols to export. 11895 always_export_symbols=yes 11896 if test "$aix_use_runtimelinking" = yes; then 11897 # Warning - without using the other runtime loading flags (-brtl), 11898 # -berok will link without error, but may produce a broken library. 11899 allow_undefined_flag='-berok' 11900 # Determine the default libpath from the value encoded in an 11901 # empty executable. 11902 if test "${lt_cv_aix_libpath+set}" = set; then 11903 aix_libpath=$lt_cv_aix_libpath 11904else 11905 if ${lt_cv_aix_libpath_+:} false; then : 11906 $as_echo_n "(cached) " >&6 11907else 11908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11909/* end confdefs.h. */ 11910 11911int 11912main () 11913{ 11914 11915 ; 11916 return 0; 11917} 11918_ACEOF 11919if ac_fn_c_try_link "$LINENO"; then : 11920 11921 lt_aix_libpath_sed=' 11922 /Import File Strings/,/^$/ { 11923 /^0/ { 11924 s/^0 *\([^ ]*\) *$/\1/ 11925 p 11926 } 11927 }' 11928 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11929 # Check for a 64-bit object if we didn't find anything. 11930 if test -z "$lt_cv_aix_libpath_"; then 11931 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11932 fi 11933fi 11934rm -f core conftest.err conftest.$ac_objext \ 11935 conftest$ac_exeext conftest.$ac_ext 11936 if test -z "$lt_cv_aix_libpath_"; then 11937 lt_cv_aix_libpath_="/usr/lib:/lib" 11938 fi 11939 11940fi 11941 11942 aix_libpath=$lt_cv_aix_libpath_ 11943fi 11944 11945 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11946 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 11947 else 11948 if test "$host_cpu" = ia64; then 11949 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 11950 allow_undefined_flag="-z nodefs" 11951 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" 11952 else 11953 # Determine the default libpath from the value encoded in an 11954 # empty executable. 11955 if test "${lt_cv_aix_libpath+set}" = set; then 11956 aix_libpath=$lt_cv_aix_libpath 11957else 11958 if ${lt_cv_aix_libpath_+:} false; then : 11959 $as_echo_n "(cached) " >&6 11960else 11961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11962/* end confdefs.h. */ 11963 11964int 11965main () 11966{ 11967 11968 ; 11969 return 0; 11970} 11971_ACEOF 11972if ac_fn_c_try_link "$LINENO"; then : 11973 11974 lt_aix_libpath_sed=' 11975 /Import File Strings/,/^$/ { 11976 /^0/ { 11977 s/^0 *\([^ ]*\) *$/\1/ 11978 p 11979 } 11980 }' 11981 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11982 # Check for a 64-bit object if we didn't find anything. 11983 if test -z "$lt_cv_aix_libpath_"; then 11984 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11985 fi 11986fi 11987rm -f core conftest.err conftest.$ac_objext \ 11988 conftest$ac_exeext conftest.$ac_ext 11989 if test -z "$lt_cv_aix_libpath_"; then 11990 lt_cv_aix_libpath_="/usr/lib:/lib" 11991 fi 11992 11993fi 11994 11995 aix_libpath=$lt_cv_aix_libpath_ 11996fi 11997 11998 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11999 # Warning - without using the other run time loading flags, 12000 # -berok will link without error, but may produce a broken library. 12001 no_undefined_flag=' ${wl}-bernotok' 12002 allow_undefined_flag=' ${wl}-berok' 12003 if test "$with_gnu_ld" = yes; then 12004 # We only use this code for GNU lds that support --whole-archive. 12005 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12006 else 12007 # Exported symbols can be pulled into shared objects from archives 12008 whole_archive_flag_spec='$convenience' 12009 fi 12010 archive_cmds_need_lc=yes 12011 # This is similar to how AIX traditionally builds its shared libraries. 12012 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 12013 fi 12014 fi 12015 ;; 12016 12017 amigaos*) 12018 case $host_cpu in 12019 powerpc) 12020 # see comment about AmigaOS4 .so support 12021 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12022 archive_expsym_cmds='' 12023 ;; 12024 m68k) 12025 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)' 12026 hardcode_libdir_flag_spec='-L$libdir' 12027 hardcode_minus_L=yes 12028 ;; 12029 esac 12030 ;; 12031 12032 bsdi[45]*) 12033 export_dynamic_flag_spec=-rdynamic 12034 ;; 12035 12036 cygwin* | mingw* | pw32* | cegcc*) 12037 # When not using gcc, we currently assume that we are using 12038 # Microsoft Visual C++. 12039 # hardcode_libdir_flag_spec is actually meaningless, as there is 12040 # no search path for DLLs. 12041 case $cc_basename in 12042 cl*) 12043 # Native MSVC 12044 hardcode_libdir_flag_spec=' ' 12045 allow_undefined_flag=unsupported 12046 always_export_symbols=yes 12047 file_list_spec='@' 12048 # Tell ltmain to make .lib files, not .a files. 12049 libext=lib 12050 # Tell ltmain to make .dll files, not .so files. 12051 shrext_cmds=".dll" 12052 # FIXME: Setting linknames here is a bad hack. 12053 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 12054 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12055 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 12056 else 12057 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 12058 fi~ 12059 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12060 linknames=' 12061 # The linker will not automatically build a static lib if we build a DLL. 12062 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 12063 enable_shared_with_static_runtimes=yes 12064 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 12065 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 12066 # Don't use ranlib 12067 old_postinstall_cmds='chmod 644 $oldlib' 12068 postlink_cmds='lt_outputfile="@OUTPUT@"~ 12069 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12070 case $lt_outputfile in 12071 *.exe|*.EXE) ;; 12072 *) 12073 lt_outputfile="$lt_outputfile.exe" 12074 lt_tool_outputfile="$lt_tool_outputfile.exe" 12075 ;; 12076 esac~ 12077 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 12078 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12079 $RM "$lt_outputfile.manifest"; 12080 fi' 12081 ;; 12082 *) 12083 # Assume MSVC wrapper 12084 hardcode_libdir_flag_spec=' ' 12085 allow_undefined_flag=unsupported 12086 # Tell ltmain to make .lib files, not .a files. 12087 libext=lib 12088 # Tell ltmain to make .dll files, not .so files. 12089 shrext_cmds=".dll" 12090 # FIXME: Setting linknames here is a bad hack. 12091 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 12092 # The linker will automatically build a .lib file if we build a DLL. 12093 old_archive_from_new_cmds='true' 12094 # FIXME: Should let the user specify the lib program. 12095 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 12096 enable_shared_with_static_runtimes=yes 12097 ;; 12098 esac 12099 ;; 12100 12101 darwin* | rhapsody*) 12102 12103 12104 archive_cmds_need_lc=no 12105 hardcode_direct=no 12106 hardcode_automatic=yes 12107 hardcode_shlibpath_var=unsupported 12108 if test "$lt_cv_ld_force_load" = "yes"; then 12109 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\"`' 12110 12111 else 12112 whole_archive_flag_spec='' 12113 fi 12114 link_all_deplibs=yes 12115 allow_undefined_flag="$_lt_dar_allow_undefined" 12116 case $cc_basename in 12117 ifort*) _lt_dar_can_shared=yes ;; 12118 *) _lt_dar_can_shared=$GCC ;; 12119 esac 12120 if test "$_lt_dar_can_shared" = "yes"; then 12121 output_verbose_link_cmd=func_echo_all 12122 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 12123 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 12124 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}" 12125 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}" 12126 12127 else 12128 ld_shlibs=no 12129 fi 12130 12131 ;; 12132 12133 dgux*) 12134 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12135 hardcode_libdir_flag_spec='-L$libdir' 12136 hardcode_shlibpath_var=no 12137 ;; 12138 12139 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 12140 # support. Future versions do this automatically, but an explicit c++rt0.o 12141 # does not break anything, and helps significantly (at the cost of a little 12142 # extra space). 12143 freebsd2.2*) 12144 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 12145 hardcode_libdir_flag_spec='-R$libdir' 12146 hardcode_direct=yes 12147 hardcode_shlibpath_var=no 12148 ;; 12149 12150 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 12151 freebsd2.*) 12152 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12153 hardcode_direct=yes 12154 hardcode_minus_L=yes 12155 hardcode_shlibpath_var=no 12156 ;; 12157 12158 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 12159 freebsd* | dragonfly*) 12160 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12161 hardcode_libdir_flag_spec='-R$libdir' 12162 hardcode_direct=yes 12163 hardcode_shlibpath_var=no 12164 ;; 12165 12166 hpux9*) 12167 if test "$GCC" = yes; then 12168 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12169 else 12170 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12171 fi 12172 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 12173 hardcode_libdir_separator=: 12174 hardcode_direct=yes 12175 12176 # hardcode_minus_L: Not really in the search PATH, 12177 # but as the default location of the library. 12178 hardcode_minus_L=yes 12179 export_dynamic_flag_spec='${wl}-E' 12180 ;; 12181 12182 hpux10*) 12183 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 12184 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12185 else 12186 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12187 fi 12188 if test "$with_gnu_ld" = no; then 12189 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 12190 hardcode_libdir_separator=: 12191 hardcode_direct=yes 12192 hardcode_direct_absolute=yes 12193 export_dynamic_flag_spec='${wl}-E' 12194 # hardcode_minus_L: Not really in the search PATH, 12195 # but as the default location of the library. 12196 hardcode_minus_L=yes 12197 fi 12198 ;; 12199 12200 hpux11*) 12201 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 12202 case $host_cpu in 12203 hppa*64*) 12204 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12205 ;; 12206 ia64*) 12207 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12208 ;; 12209 *) 12210 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12211 ;; 12212 esac 12213 else 12214 case $host_cpu in 12215 hppa*64*) 12216 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12217 ;; 12218 ia64*) 12219 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12220 ;; 12221 *) 12222 12223 # Older versions of the 11.00 compiler do not understand -b yet 12224 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 12226$as_echo_n "checking if $CC understands -b... " >&6; } 12227if ${lt_cv_prog_compiler__b+:} false; then : 12228 $as_echo_n "(cached) " >&6 12229else 12230 lt_cv_prog_compiler__b=no 12231 save_LDFLAGS="$LDFLAGS" 12232 LDFLAGS="$LDFLAGS -b" 12233 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12234 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12235 # The linker can only warn and ignore the option if not recognized 12236 # So say no if there are warnings 12237 if test -s conftest.err; then 12238 # Append any errors to the config.log. 12239 cat conftest.err 1>&5 12240 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12241 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12242 if diff conftest.exp conftest.er2 >/dev/null; then 12243 lt_cv_prog_compiler__b=yes 12244 fi 12245 else 12246 lt_cv_prog_compiler__b=yes 12247 fi 12248 fi 12249 $RM -r conftest* 12250 LDFLAGS="$save_LDFLAGS" 12251 12252fi 12253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 12254$as_echo "$lt_cv_prog_compiler__b" >&6; } 12255 12256if test x"$lt_cv_prog_compiler__b" = xyes; then 12257 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12258else 12259 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12260fi 12261 12262 ;; 12263 esac 12264 fi 12265 if test "$with_gnu_ld" = no; then 12266 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 12267 hardcode_libdir_separator=: 12268 12269 case $host_cpu in 12270 hppa*64*|ia64*) 12271 hardcode_direct=no 12272 hardcode_shlibpath_var=no 12273 ;; 12274 *) 12275 hardcode_direct=yes 12276 hardcode_direct_absolute=yes 12277 export_dynamic_flag_spec='${wl}-E' 12278 12279 # hardcode_minus_L: Not really in the search PATH, 12280 # but as the default location of the library. 12281 hardcode_minus_L=yes 12282 ;; 12283 esac 12284 fi 12285 ;; 12286 12287 irix5* | irix6* | nonstopux*) 12288 if test "$GCC" = yes; then 12289 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' 12290 # Try to use the -exported_symbol ld option, if it does not 12291 # work, assume that -exports_file does not work either and 12292 # implicitly export all symbols. 12293 # This should be the same for all languages, so no per-tag cache variable. 12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 12295$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 12296if ${lt_cv_irix_exported_symbol+:} false; then : 12297 $as_echo_n "(cached) " >&6 12298else 12299 save_LDFLAGS="$LDFLAGS" 12300 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 12301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12302/* end confdefs.h. */ 12303int foo (void) { return 0; } 12304_ACEOF 12305if ac_fn_c_try_link "$LINENO"; then : 12306 lt_cv_irix_exported_symbol=yes 12307else 12308 lt_cv_irix_exported_symbol=no 12309fi 12310rm -f core conftest.err conftest.$ac_objext \ 12311 conftest$ac_exeext conftest.$ac_ext 12312 LDFLAGS="$save_LDFLAGS" 12313fi 12314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 12315$as_echo "$lt_cv_irix_exported_symbol" >&6; } 12316 if test "$lt_cv_irix_exported_symbol" = yes; then 12317 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' 12318 fi 12319 else 12320 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' 12321 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' 12322 fi 12323 archive_cmds_need_lc='no' 12324 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12325 hardcode_libdir_separator=: 12326 inherit_rpath=yes 12327 link_all_deplibs=yes 12328 ;; 12329 12330 netbsd*) 12331 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12332 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 12333 else 12334 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 12335 fi 12336 hardcode_libdir_flag_spec='-R$libdir' 12337 hardcode_direct=yes 12338 hardcode_shlibpath_var=no 12339 ;; 12340 12341 newsos6) 12342 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12343 hardcode_direct=yes 12344 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12345 hardcode_libdir_separator=: 12346 hardcode_shlibpath_var=no 12347 ;; 12348 12349 *nto* | *qnx*) 12350 ;; 12351 12352 openbsd*) 12353 if test -f /usr/libexec/ld.so; then 12354 hardcode_direct=yes 12355 hardcode_shlibpath_var=no 12356 hardcode_direct_absolute=yes 12357 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12358 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12359 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 12360 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 12361 export_dynamic_flag_spec='${wl}-E' 12362 else 12363 case $host_os in 12364 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 12365 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12366 hardcode_libdir_flag_spec='-R$libdir' 12367 ;; 12368 *) 12369 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12370 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 12371 ;; 12372 esac 12373 fi 12374 else 12375 ld_shlibs=no 12376 fi 12377 ;; 12378 12379 os2*) 12380 hardcode_libdir_flag_spec='-L$libdir' 12381 hardcode_minus_L=yes 12382 allow_undefined_flag=unsupported 12383 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 12384 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 12385 ;; 12386 12387 osf3*) 12388 if test "$GCC" = yes; then 12389 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 12390 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' 12391 else 12392 allow_undefined_flag=' -expect_unresolved \*' 12393 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' 12394 fi 12395 archive_cmds_need_lc='no' 12396 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12397 hardcode_libdir_separator=: 12398 ;; 12399 12400 osf4* | osf5*) # as osf3* with the addition of -msym flag 12401 if test "$GCC" = yes; then 12402 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 12403 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' 12404 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12405 else 12406 allow_undefined_flag=' -expect_unresolved \*' 12407 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' 12408 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~ 12409 $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' 12410 12411 # Both c and cxx compiler support -rpath directly 12412 hardcode_libdir_flag_spec='-rpath $libdir' 12413 fi 12414 archive_cmds_need_lc='no' 12415 hardcode_libdir_separator=: 12416 ;; 12417 12418 solaris*) 12419 no_undefined_flag=' -z defs' 12420 if test "$GCC" = yes; then 12421 wlarc='${wl}' 12422 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12423 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12424 $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' 12425 else 12426 case `$CC -V 2>&1` in 12427 *"Compilers 5.0"*) 12428 wlarc='' 12429 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 12430 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12431 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 12432 ;; 12433 *) 12434 wlarc='${wl}' 12435 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 12436 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12437 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 12438 ;; 12439 esac 12440 fi 12441 hardcode_libdir_flag_spec='-R$libdir' 12442 hardcode_shlibpath_var=no 12443 case $host_os in 12444 solaris2.[0-5] | solaris2.[0-5].*) ;; 12445 *) 12446 # The compiler driver will combine and reorder linker options, 12447 # but understands `-z linker_flag'. GCC discards it without `$wl', 12448 # but is careful enough not to reorder. 12449 # Supported since Solaris 2.6 (maybe 2.5.1?) 12450 if test "$GCC" = yes; then 12451 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12452 else 12453 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 12454 fi 12455 ;; 12456 esac 12457 link_all_deplibs=yes 12458 ;; 12459 12460 sunos4*) 12461 if test "x$host_vendor" = xsequent; then 12462 # Use $CC to link under sequent, because it throws in some extra .o 12463 # files that make .init and .fini sections work. 12464 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 12465 else 12466 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 12467 fi 12468 hardcode_libdir_flag_spec='-L$libdir' 12469 hardcode_direct=yes 12470 hardcode_minus_L=yes 12471 hardcode_shlibpath_var=no 12472 ;; 12473 12474 sysv4) 12475 case $host_vendor in 12476 sni) 12477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12478 hardcode_direct=yes # is this really true??? 12479 ;; 12480 siemens) 12481 ## LD is ld it makes a PLAMLIB 12482 ## CC just makes a GrossModule. 12483 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 12484 reload_cmds='$CC -r -o $output$reload_objs' 12485 hardcode_direct=no 12486 ;; 12487 motorola) 12488 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12489 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 12490 ;; 12491 esac 12492 runpath_var='LD_RUN_PATH' 12493 hardcode_shlibpath_var=no 12494 ;; 12495 12496 sysv4.3*) 12497 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12498 hardcode_shlibpath_var=no 12499 export_dynamic_flag_spec='-Bexport' 12500 ;; 12501 12502 sysv4*MP*) 12503 if test -d /usr/nec; then 12504 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12505 hardcode_shlibpath_var=no 12506 runpath_var=LD_RUN_PATH 12507 hardcode_runpath_var=yes 12508 ld_shlibs=yes 12509 fi 12510 ;; 12511 12512 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12513 no_undefined_flag='${wl}-z,text' 12514 archive_cmds_need_lc=no 12515 hardcode_shlibpath_var=no 12516 runpath_var='LD_RUN_PATH' 12517 12518 if test "$GCC" = yes; then 12519 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12520 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12521 else 12522 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12523 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12524 fi 12525 ;; 12526 12527 sysv5* | sco3.2v5* | sco5v6*) 12528 # Note: We can NOT use -z defs as we might desire, because we do not 12529 # link with -lc, and that would cause any symbols used from libc to 12530 # always be unresolved, which means just about no library would 12531 # ever link correctly. If we're not using GNU ld we use -z text 12532 # though, which does catch some bad symbols but isn't as heavy-handed 12533 # as -z defs. 12534 no_undefined_flag='${wl}-z,text' 12535 allow_undefined_flag='${wl}-z,nodefs' 12536 archive_cmds_need_lc=no 12537 hardcode_shlibpath_var=no 12538 hardcode_libdir_flag_spec='${wl}-R,$libdir' 12539 hardcode_libdir_separator=':' 12540 link_all_deplibs=yes 12541 export_dynamic_flag_spec='${wl}-Bexport' 12542 runpath_var='LD_RUN_PATH' 12543 12544 if test "$GCC" = yes; then 12545 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12546 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12547 else 12548 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12549 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12550 fi 12551 ;; 12552 12553 uts4*) 12554 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12555 hardcode_libdir_flag_spec='-L$libdir' 12556 hardcode_shlibpath_var=no 12557 ;; 12558 12559 *) 12560 ld_shlibs=no 12561 ;; 12562 esac 12563 12564 if test x$host_vendor = xsni; then 12565 case $host in 12566 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12567 export_dynamic_flag_spec='${wl}-Blargedynsym' 12568 ;; 12569 esac 12570 fi 12571 fi 12572 12573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 12574$as_echo "$ld_shlibs" >&6; } 12575test "$ld_shlibs" = no && can_build_shared=no 12576 12577with_gnu_ld=$with_gnu_ld 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593# 12594# Do we need to explicitly link libc? 12595# 12596case "x$archive_cmds_need_lc" in 12597x|xyes) 12598 # Assume -lc should be added 12599 archive_cmds_need_lc=yes 12600 12601 if test "$enable_shared" = yes && test "$GCC" = yes; then 12602 case $archive_cmds in 12603 *'~'*) 12604 # FIXME: we may have to deal with multi-command sequences. 12605 ;; 12606 '$CC '*) 12607 # Test whether the compiler implicitly links with -lc since on some 12608 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12609 # to ld, don't add -lc before -lgcc. 12610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 12611$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 12612if ${lt_cv_archive_cmds_need_lc+:} false; then : 12613 $as_echo_n "(cached) " >&6 12614else 12615 $RM conftest* 12616 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12617 12618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12619 (eval $ac_compile) 2>&5 12620 ac_status=$? 12621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12622 test $ac_status = 0; } 2>conftest.err; then 12623 soname=conftest 12624 lib=conftest 12625 libobjs=conftest.$ac_objext 12626 deplibs= 12627 wl=$lt_prog_compiler_wl 12628 pic_flag=$lt_prog_compiler_pic 12629 compiler_flags=-v 12630 linker_flags=-v 12631 verstring= 12632 output_objdir=. 12633 libname=conftest 12634 lt_save_allow_undefined_flag=$allow_undefined_flag 12635 allow_undefined_flag= 12636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12637 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 12638 ac_status=$? 12639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12640 test $ac_status = 0; } 12641 then 12642 lt_cv_archive_cmds_need_lc=no 12643 else 12644 lt_cv_archive_cmds_need_lc=yes 12645 fi 12646 allow_undefined_flag=$lt_save_allow_undefined_flag 12647 else 12648 cat conftest.err 1>&5 12649 fi 12650 $RM conftest* 12651 12652fi 12653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 12654$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 12655 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 12656 ;; 12657 esac 12658 fi 12659 ;; 12660esac 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12814$as_echo_n "checking dynamic linker characteristics... " >&6; } 12815 12816if test "$GCC" = yes; then 12817 case $host_os in 12818 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 12819 *) lt_awk_arg="/^libraries:/" ;; 12820 esac 12821 case $host_os in 12822 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 12823 *) lt_sed_strip_eq="s,=/,/,g" ;; 12824 esac 12825 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12826 case $lt_search_path_spec in 12827 *\;*) 12828 # if the path contains ";" then we assume it to be the separator 12829 # otherwise default to the standard path separator (i.e. ":") - it is 12830 # assumed that no part of a normal pathname contains ";" but that should 12831 # okay in the real world where ";" in dirpaths is itself problematic. 12832 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12833 ;; 12834 *) 12835 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12836 ;; 12837 esac 12838 # Ok, now we have the path, separated by spaces, we can step through it 12839 # and add multilib dir if necessary. 12840 lt_tmp_lt_search_path_spec= 12841 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12842 for lt_sys_path in $lt_search_path_spec; do 12843 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 12844 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 12845 else 12846 test -d "$lt_sys_path" && \ 12847 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12848 fi 12849 done 12850 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12851BEGIN {RS=" "; FS="/|\n";} { 12852 lt_foo=""; 12853 lt_count=0; 12854 for (lt_i = NF; lt_i > 0; lt_i--) { 12855 if ($lt_i != "" && $lt_i != ".") { 12856 if ($lt_i == "..") { 12857 lt_count++; 12858 } else { 12859 if (lt_count == 0) { 12860 lt_foo="/" $lt_i lt_foo; 12861 } else { 12862 lt_count--; 12863 } 12864 } 12865 } 12866 } 12867 if (lt_foo != "") { lt_freq[lt_foo]++; } 12868 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12869}'` 12870 # AWK program above erroneously prepends '/' to C:/dos/paths 12871 # for these hosts. 12872 case $host_os in 12873 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12874 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 12875 esac 12876 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12877else 12878 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12879fi 12880library_names_spec= 12881libname_spec='lib$name' 12882soname_spec= 12883shrext_cmds=".so" 12884postinstall_cmds= 12885postuninstall_cmds= 12886finish_cmds= 12887finish_eval= 12888shlibpath_var= 12889shlibpath_overrides_runpath=unknown 12890version_type=none 12891dynamic_linker="$host_os ld.so" 12892sys_lib_dlsearch_path_spec="/lib /usr/lib" 12893need_lib_prefix=unknown 12894hardcode_into_libs=no 12895 12896# when you set need_version to no, make sure it does not cause -set_version 12897# flags to be left without arguments 12898need_version=unknown 12899 12900case $host_os in 12901aix3*) 12902 version_type=linux # correct to gnu/linux during the next big refactor 12903 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12904 shlibpath_var=LIBPATH 12905 12906 # AIX 3 has no versioning support, so we append a major version to the name. 12907 soname_spec='${libname}${release}${shared_ext}$major' 12908 ;; 12909 12910aix[4-9]*) 12911 version_type=linux # correct to gnu/linux during the next big refactor 12912 need_lib_prefix=no 12913 need_version=no 12914 hardcode_into_libs=yes 12915 if test "$host_cpu" = ia64; then 12916 # AIX 5 supports IA64 12917 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12918 shlibpath_var=LD_LIBRARY_PATH 12919 else 12920 # With GCC up to 2.95.x, collect2 would create an import file 12921 # for dependence libraries. The import file would start with 12922 # the line `#! .'. This would cause the generated library to 12923 # depend on `.', always an invalid library. This was fixed in 12924 # development snapshots of GCC prior to 3.0. 12925 case $host_os in 12926 aix4 | aix4.[01] | aix4.[01].*) 12927 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12928 echo ' yes ' 12929 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 12930 : 12931 else 12932 can_build_shared=no 12933 fi 12934 ;; 12935 esac 12936 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12937 # soname into executable. Probably we can add versioning support to 12938 # collect2, so additional links can be useful in future. 12939 if test "$aix_use_runtimelinking" = yes; then 12940 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12941 # instead of lib<name>.a to let people know that these are not 12942 # typical AIX shared libraries. 12943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12944 else 12945 # We preserve .a as extension for shared libraries through AIX4.2 12946 # and later when we are not doing run time linking. 12947 library_names_spec='${libname}${release}.a $libname.a' 12948 soname_spec='${libname}${release}${shared_ext}$major' 12949 fi 12950 shlibpath_var=LIBPATH 12951 fi 12952 ;; 12953 12954amigaos*) 12955 case $host_cpu in 12956 powerpc) 12957 # Since July 2007 AmigaOS4 officially supports .so libraries. 12958 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12960 ;; 12961 m68k) 12962 library_names_spec='$libname.ixlibrary $libname.a' 12963 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12964 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' 12965 ;; 12966 esac 12967 ;; 12968 12969beos*) 12970 library_names_spec='${libname}${shared_ext}' 12971 dynamic_linker="$host_os ld.so" 12972 shlibpath_var=LIBRARY_PATH 12973 ;; 12974 12975bsdi[45]*) 12976 version_type=linux # correct to gnu/linux during the next big refactor 12977 need_version=no 12978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12979 soname_spec='${libname}${release}${shared_ext}$major' 12980 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12981 shlibpath_var=LD_LIBRARY_PATH 12982 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12983 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12984 # the default ld.so.conf also contains /usr/contrib/lib and 12985 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12986 # libtool to hard-code these into programs 12987 ;; 12988 12989cygwin* | mingw* | pw32* | cegcc*) 12990 version_type=windows 12991 shrext_cmds=".dll" 12992 need_version=no 12993 need_lib_prefix=no 12994 12995 case $GCC,$cc_basename in 12996 yes,*) 12997 # gcc 12998 library_names_spec='$libname.dll.a' 12999 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13000 postinstall_cmds='base_file=`basename \${file}`~ 13001 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 13002 dldir=$destdir/`dirname \$dlpath`~ 13003 test -d \$dldir || mkdir -p \$dldir~ 13004 $install_prog $dir/$dlname \$dldir/$dlname~ 13005 chmod a+x \$dldir/$dlname~ 13006 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13007 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13008 fi' 13009 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13010 dlpath=$dir/\$dldll~ 13011 $RM \$dlpath' 13012 shlibpath_overrides_runpath=yes 13013 13014 case $host_os in 13015 cygwin*) 13016 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13017 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13018 13019 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 13020 ;; 13021 mingw* | cegcc*) 13022 # MinGW DLLs use traditional 'lib' prefix 13023 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13024 ;; 13025 pw32*) 13026 # pw32 DLLs use 'pw' prefix rather than 'lib' 13027 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13028 ;; 13029 esac 13030 dynamic_linker='Win32 ld.exe' 13031 ;; 13032 13033 *,cl*) 13034 # Native MSVC 13035 libname_spec='$name' 13036 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13037 library_names_spec='${libname}.dll.lib' 13038 13039 case $build_os in 13040 mingw*) 13041 sys_lib_search_path_spec= 13042 lt_save_ifs=$IFS 13043 IFS=';' 13044 for lt_path in $LIB 13045 do 13046 IFS=$lt_save_ifs 13047 # Let DOS variable expansion print the short 8.3 style file name. 13048 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 13049 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 13050 done 13051 IFS=$lt_save_ifs 13052 # Convert to MSYS style. 13053 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 13054 ;; 13055 cygwin*) 13056 # Convert to unix form, then to dos form, then back to unix form 13057 # but this time dos style (no spaces!) so that the unix form looks 13058 # like /cygdrive/c/PROGRA~1:/cygdr... 13059 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 13060 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 13061 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13062 ;; 13063 *) 13064 sys_lib_search_path_spec="$LIB" 13065 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 13066 # It is most probably a Windows format PATH. 13067 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13068 else 13069 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13070 fi 13071 # FIXME: find the short name or the path components, as spaces are 13072 # common. (e.g. "Program Files" -> "PROGRA~1") 13073 ;; 13074 esac 13075 13076 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13077 postinstall_cmds='base_file=`basename \${file}`~ 13078 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 13079 dldir=$destdir/`dirname \$dlpath`~ 13080 test -d \$dldir || mkdir -p \$dldir~ 13081 $install_prog $dir/$dlname \$dldir/$dlname' 13082 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13083 dlpath=$dir/\$dldll~ 13084 $RM \$dlpath' 13085 shlibpath_overrides_runpath=yes 13086 dynamic_linker='Win32 link.exe' 13087 ;; 13088 13089 *) 13090 # Assume MSVC wrapper 13091 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13092 dynamic_linker='Win32 ld.exe' 13093 ;; 13094 esac 13095 # FIXME: first we should search . and the directory the executable is in 13096 shlibpath_var=PATH 13097 ;; 13098 13099darwin* | rhapsody*) 13100 dynamic_linker="$host_os dyld" 13101 version_type=darwin 13102 need_lib_prefix=no 13103 need_version=no 13104 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13105 soname_spec='${libname}${release}${major}$shared_ext' 13106 shlibpath_overrides_runpath=yes 13107 shlibpath_var=DYLD_LIBRARY_PATH 13108 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13109 13110 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 13111 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13112 ;; 13113 13114dgux*) 13115 version_type=linux # correct to gnu/linux during the next big refactor 13116 need_lib_prefix=no 13117 need_version=no 13118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13119 soname_spec='${libname}${release}${shared_ext}$major' 13120 shlibpath_var=LD_LIBRARY_PATH 13121 ;; 13122 13123freebsd* | dragonfly*) 13124 # DragonFly does not have aout. When/if they implement a new 13125 # versioning mechanism, adjust this. 13126 if test -x /usr/bin/objformat; then 13127 objformat=`/usr/bin/objformat` 13128 else 13129 case $host_os in 13130 freebsd[23].*) objformat=aout ;; 13131 *) objformat=elf ;; 13132 esac 13133 fi 13134 version_type=freebsd-$objformat 13135 case $version_type in 13136 freebsd-elf*) 13137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13138 need_version=no 13139 need_lib_prefix=no 13140 ;; 13141 freebsd-*) 13142 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13143 need_version=yes 13144 ;; 13145 esac 13146 shlibpath_var=LD_LIBRARY_PATH 13147 case $host_os in 13148 freebsd2.*) 13149 shlibpath_overrides_runpath=yes 13150 ;; 13151 freebsd3.[01]* | freebsdelf3.[01]*) 13152 shlibpath_overrides_runpath=yes 13153 hardcode_into_libs=yes 13154 ;; 13155 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13156 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13157 shlibpath_overrides_runpath=no 13158 hardcode_into_libs=yes 13159 ;; 13160 *) # from 4.6 on, and DragonFly 13161 shlibpath_overrides_runpath=yes 13162 hardcode_into_libs=yes 13163 ;; 13164 esac 13165 ;; 13166 13167gnu*) 13168 version_type=linux # correct to gnu/linux during the next big refactor 13169 need_lib_prefix=no 13170 need_version=no 13171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13172 soname_spec='${libname}${release}${shared_ext}$major' 13173 shlibpath_var=LD_LIBRARY_PATH 13174 shlibpath_overrides_runpath=no 13175 hardcode_into_libs=yes 13176 ;; 13177 13178haiku*) 13179 version_type=linux # correct to gnu/linux during the next big refactor 13180 need_lib_prefix=no 13181 need_version=no 13182 dynamic_linker="$host_os runtime_loader" 13183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13184 soname_spec='${libname}${release}${shared_ext}$major' 13185 shlibpath_var=LIBRARY_PATH 13186 shlibpath_overrides_runpath=yes 13187 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 13188 hardcode_into_libs=yes 13189 ;; 13190 13191hpux9* | hpux10* | hpux11*) 13192 # Give a soname corresponding to the major version so that dld.sl refuses to 13193 # link against other versions. 13194 version_type=sunos 13195 need_lib_prefix=no 13196 need_version=no 13197 case $host_cpu in 13198 ia64*) 13199 shrext_cmds='.so' 13200 hardcode_into_libs=yes 13201 dynamic_linker="$host_os dld.so" 13202 shlibpath_var=LD_LIBRARY_PATH 13203 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13205 soname_spec='${libname}${release}${shared_ext}$major' 13206 if test "X$HPUX_IA64_MODE" = X32; then 13207 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13208 else 13209 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13210 fi 13211 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13212 ;; 13213 hppa*64*) 13214 shrext_cmds='.sl' 13215 hardcode_into_libs=yes 13216 dynamic_linker="$host_os dld.sl" 13217 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13218 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13220 soname_spec='${libname}${release}${shared_ext}$major' 13221 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13222 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13223 ;; 13224 *) 13225 shrext_cmds='.sl' 13226 dynamic_linker="$host_os dld.sl" 13227 shlibpath_var=SHLIB_PATH 13228 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13230 soname_spec='${libname}${release}${shared_ext}$major' 13231 ;; 13232 esac 13233 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 13234 postinstall_cmds='chmod 555 $lib' 13235 # or fails outright, so override atomically: 13236 install_override_mode=555 13237 ;; 13238 13239interix[3-9]*) 13240 version_type=linux # correct to gnu/linux during the next big refactor 13241 need_lib_prefix=no 13242 need_version=no 13243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13244 soname_spec='${libname}${release}${shared_ext}$major' 13245 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13246 shlibpath_var=LD_LIBRARY_PATH 13247 shlibpath_overrides_runpath=no 13248 hardcode_into_libs=yes 13249 ;; 13250 13251irix5* | irix6* | nonstopux*) 13252 case $host_os in 13253 nonstopux*) version_type=nonstopux ;; 13254 *) 13255 if test "$lt_cv_prog_gnu_ld" = yes; then 13256 version_type=linux # correct to gnu/linux during the next big refactor 13257 else 13258 version_type=irix 13259 fi ;; 13260 esac 13261 need_lib_prefix=no 13262 need_version=no 13263 soname_spec='${libname}${release}${shared_ext}$major' 13264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13265 case $host_os in 13266 irix5* | nonstopux*) 13267 libsuff= shlibsuff= 13268 ;; 13269 *) 13270 case $LD in # libtool.m4 will add one of these switches to LD 13271 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13272 libsuff= shlibsuff= libmagic=32-bit;; 13273 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13274 libsuff=32 shlibsuff=N32 libmagic=N32;; 13275 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13276 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13277 *) libsuff= shlibsuff= libmagic=never-match;; 13278 esac 13279 ;; 13280 esac 13281 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13282 shlibpath_overrides_runpath=no 13283 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13284 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13285 hardcode_into_libs=yes 13286 ;; 13287 13288# No shared lib support for Linux oldld, aout, or coff. 13289linux*oldld* | linux*aout* | linux*coff*) 13290 dynamic_linker=no 13291 ;; 13292 13293# This must be glibc/ELF. 13294linux* | k*bsd*-gnu | kopensolaris*-gnu) 13295 version_type=linux # correct to gnu/linux during the next big refactor 13296 need_lib_prefix=no 13297 need_version=no 13298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13299 soname_spec='${libname}${release}${shared_ext}$major' 13300 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13301 shlibpath_var=LD_LIBRARY_PATH 13302 shlibpath_overrides_runpath=no 13303 13304 # Some binutils ld are patched to set DT_RUNPATH 13305 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 13306 $as_echo_n "(cached) " >&6 13307else 13308 lt_cv_shlibpath_overrides_runpath=no 13309 save_LDFLAGS=$LDFLAGS 13310 save_libdir=$libdir 13311 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 13312 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 13313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13314/* end confdefs.h. */ 13315 13316int 13317main () 13318{ 13319 13320 ; 13321 return 0; 13322} 13323_ACEOF 13324if ac_fn_c_try_link "$LINENO"; then : 13325 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 13326 lt_cv_shlibpath_overrides_runpath=yes 13327fi 13328fi 13329rm -f core conftest.err conftest.$ac_objext \ 13330 conftest$ac_exeext conftest.$ac_ext 13331 LDFLAGS=$save_LDFLAGS 13332 libdir=$save_libdir 13333 13334fi 13335 13336 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 13337 13338 # This implies no fast_install, which is unacceptable. 13339 # Some rework will be needed to allow for fast_install 13340 # before this can be enabled. 13341 hardcode_into_libs=yes 13342 13343 # Append ld.so.conf contents to the search path 13344 if test -f /etc/ld.so.conf; then 13345 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' ' '` 13346 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13347 fi 13348 13349 # We used to test for /lib/ld.so.1 and disable shared libraries on 13350 # powerpc, because MkLinux only supported shared libraries with the 13351 # GNU dynamic linker. Since this was broken with cross compilers, 13352 # most powerpc-linux boxes support dynamic linking these days and 13353 # people can always --disable-shared, the test was removed, and we 13354 # assume the GNU/Linux dynamic linker is in use. 13355 dynamic_linker='GNU/Linux ld.so' 13356 ;; 13357 13358netbsd*) 13359 version_type=sunos 13360 need_lib_prefix=no 13361 need_version=no 13362 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13364 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13365 dynamic_linker='NetBSD (a.out) ld.so' 13366 else 13367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13368 soname_spec='${libname}${release}${shared_ext}$major' 13369 dynamic_linker='NetBSD ld.elf_so' 13370 fi 13371 shlibpath_var=LD_LIBRARY_PATH 13372 shlibpath_overrides_runpath=yes 13373 hardcode_into_libs=yes 13374 ;; 13375 13376newsos6) 13377 version_type=linux # correct to gnu/linux during the next big refactor 13378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13379 shlibpath_var=LD_LIBRARY_PATH 13380 shlibpath_overrides_runpath=yes 13381 ;; 13382 13383*nto* | *qnx*) 13384 version_type=qnx 13385 need_lib_prefix=no 13386 need_version=no 13387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13388 soname_spec='${libname}${release}${shared_ext}$major' 13389 shlibpath_var=LD_LIBRARY_PATH 13390 shlibpath_overrides_runpath=no 13391 hardcode_into_libs=yes 13392 dynamic_linker='ldqnx.so' 13393 ;; 13394 13395openbsd*) 13396 version_type=sunos 13397 sys_lib_dlsearch_path_spec="/usr/lib" 13398 need_lib_prefix=no 13399 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13400 case $host_os in 13401 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13402 *) need_version=no ;; 13403 esac 13404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13405 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13406 shlibpath_var=LD_LIBRARY_PATH 13407 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13408 case $host_os in 13409 openbsd2.[89] | openbsd2.[89].*) 13410 shlibpath_overrides_runpath=no 13411 ;; 13412 *) 13413 shlibpath_overrides_runpath=yes 13414 ;; 13415 esac 13416 else 13417 shlibpath_overrides_runpath=yes 13418 fi 13419 ;; 13420 13421os2*) 13422 libname_spec='$name' 13423 shrext_cmds=".dll" 13424 need_lib_prefix=no 13425 library_names_spec='$libname${shared_ext} $libname.a' 13426 dynamic_linker='OS/2 ld.exe' 13427 shlibpath_var=LIBPATH 13428 ;; 13429 13430osf3* | osf4* | osf5*) 13431 version_type=osf 13432 need_lib_prefix=no 13433 need_version=no 13434 soname_spec='${libname}${release}${shared_ext}$major' 13435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13436 shlibpath_var=LD_LIBRARY_PATH 13437 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13438 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13439 ;; 13440 13441rdos*) 13442 dynamic_linker=no 13443 ;; 13444 13445solaris*) 13446 version_type=linux # correct to gnu/linux during the next big refactor 13447 need_lib_prefix=no 13448 need_version=no 13449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13450 soname_spec='${libname}${release}${shared_ext}$major' 13451 shlibpath_var=LD_LIBRARY_PATH 13452 shlibpath_overrides_runpath=yes 13453 hardcode_into_libs=yes 13454 # ldd complains unless libraries are executable 13455 postinstall_cmds='chmod +x $lib' 13456 ;; 13457 13458sunos4*) 13459 version_type=sunos 13460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13461 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13462 shlibpath_var=LD_LIBRARY_PATH 13463 shlibpath_overrides_runpath=yes 13464 if test "$with_gnu_ld" = yes; then 13465 need_lib_prefix=no 13466 fi 13467 need_version=yes 13468 ;; 13469 13470sysv4 | sysv4.3*) 13471 version_type=linux # correct to gnu/linux during the next big refactor 13472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13473 soname_spec='${libname}${release}${shared_ext}$major' 13474 shlibpath_var=LD_LIBRARY_PATH 13475 case $host_vendor in 13476 sni) 13477 shlibpath_overrides_runpath=no 13478 need_lib_prefix=no 13479 runpath_var=LD_RUN_PATH 13480 ;; 13481 siemens) 13482 need_lib_prefix=no 13483 ;; 13484 motorola) 13485 need_lib_prefix=no 13486 need_version=no 13487 shlibpath_overrides_runpath=no 13488 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13489 ;; 13490 esac 13491 ;; 13492 13493sysv4*MP*) 13494 if test -d /usr/nec ;then 13495 version_type=linux # correct to gnu/linux during the next big refactor 13496 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13497 soname_spec='$libname${shared_ext}.$major' 13498 shlibpath_var=LD_LIBRARY_PATH 13499 fi 13500 ;; 13501 13502sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13503 version_type=freebsd-elf 13504 need_lib_prefix=no 13505 need_version=no 13506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13507 soname_spec='${libname}${release}${shared_ext}$major' 13508 shlibpath_var=LD_LIBRARY_PATH 13509 shlibpath_overrides_runpath=yes 13510 hardcode_into_libs=yes 13511 if test "$with_gnu_ld" = yes; then 13512 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13513 else 13514 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13515 case $host_os in 13516 sco3.2v5*) 13517 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13518 ;; 13519 esac 13520 fi 13521 sys_lib_dlsearch_path_spec='/usr/lib' 13522 ;; 13523 13524tpf*) 13525 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 13526 version_type=linux # correct to gnu/linux during the next big refactor 13527 need_lib_prefix=no 13528 need_version=no 13529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13530 shlibpath_var=LD_LIBRARY_PATH 13531 shlibpath_overrides_runpath=no 13532 hardcode_into_libs=yes 13533 ;; 13534 13535uts4*) 13536 version_type=linux # correct to gnu/linux during the next big refactor 13537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13538 soname_spec='${libname}${release}${shared_ext}$major' 13539 shlibpath_var=LD_LIBRARY_PATH 13540 ;; 13541 13542*) 13543 dynamic_linker=no 13544 ;; 13545esac 13546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13547$as_echo "$dynamic_linker" >&6; } 13548test "$dynamic_linker" = no && can_build_shared=no 13549 13550variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13551if test "$GCC" = yes; then 13552 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13553fi 13554 13555if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 13556 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 13557fi 13558if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 13559 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 13560fi 13561 13562 13563 13564 13565 13566 13567 13568 13569 13570 13571 13572 13573 13574 13575 13576 13577 13578 13579 13580 13581 13582 13583 13584 13585 13586 13587 13588 13589 13590 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622 13623 13624 13625 13626 13627 13628 13629 13630 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645 13646 13647 13648 13649 13650 13651 13652 13653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13654$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13655hardcode_action= 13656if test -n "$hardcode_libdir_flag_spec" || 13657 test -n "$runpath_var" || 13658 test "X$hardcode_automatic" = "Xyes" ; then 13659 13660 # We can hardcode non-existent directories. 13661 if test "$hardcode_direct" != no && 13662 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13663 # have to relink, otherwise we might link with an installed library 13664 # when we should be linking with a yet-to-be-installed one 13665 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 13666 test "$hardcode_minus_L" != no; then 13667 # Linking always hardcodes the temporary library directory. 13668 hardcode_action=relink 13669 else 13670 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13671 hardcode_action=immediate 13672 fi 13673else 13674 # We cannot hardcode anything, or else we can only hardcode existing 13675 # directories. 13676 hardcode_action=unsupported 13677fi 13678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13679$as_echo "$hardcode_action" >&6; } 13680 13681if test "$hardcode_action" = relink || 13682 test "$inherit_rpath" = yes; then 13683 # Fast installation is not supported 13684 enable_fast_install=no 13685elif test "$shlibpath_overrides_runpath" = yes || 13686 test "$enable_shared" = no; then 13687 # Fast installation is not necessary 13688 enable_fast_install=needless 13689fi 13690 13691 13692 13693 13694 13695 13696 if test "x$enable_dlopen" != xyes; then 13697 enable_dlopen=unknown 13698 enable_dlopen_self=unknown 13699 enable_dlopen_self_static=unknown 13700else 13701 lt_cv_dlopen=no 13702 lt_cv_dlopen_libs= 13703 13704 case $host_os in 13705 beos*) 13706 lt_cv_dlopen="load_add_on" 13707 lt_cv_dlopen_libs= 13708 lt_cv_dlopen_self=yes 13709 ;; 13710 13711 mingw* | pw32* | cegcc*) 13712 lt_cv_dlopen="LoadLibrary" 13713 lt_cv_dlopen_libs= 13714 ;; 13715 13716 cygwin*) 13717 lt_cv_dlopen="dlopen" 13718 lt_cv_dlopen_libs= 13719 ;; 13720 13721 darwin*) 13722 # if libdl is installed we need to link against it 13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13724$as_echo_n "checking for dlopen in -ldl... " >&6; } 13725if ${ac_cv_lib_dl_dlopen+:} false; then : 13726 $as_echo_n "(cached) " >&6 13727else 13728 ac_check_lib_save_LIBS=$LIBS 13729LIBS="-ldl $LIBS" 13730cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13731/* end confdefs.h. */ 13732 13733/* Override any GCC internal prototype to avoid an error. 13734 Use char because int might match the return type of a GCC 13735 builtin and then its argument prototype would still apply. */ 13736#ifdef __cplusplus 13737extern "C" 13738#endif 13739char dlopen (); 13740int 13741main () 13742{ 13743return dlopen (); 13744 ; 13745 return 0; 13746} 13747_ACEOF 13748if ac_fn_c_try_link "$LINENO"; then : 13749 ac_cv_lib_dl_dlopen=yes 13750else 13751 ac_cv_lib_dl_dlopen=no 13752fi 13753rm -f core conftest.err conftest.$ac_objext \ 13754 conftest$ac_exeext conftest.$ac_ext 13755LIBS=$ac_check_lib_save_LIBS 13756fi 13757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13758$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13759if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13760 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13761else 13762 13763 lt_cv_dlopen="dyld" 13764 lt_cv_dlopen_libs= 13765 lt_cv_dlopen_self=yes 13766 13767fi 13768 13769 ;; 13770 13771 *) 13772 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13773if test "x$ac_cv_func_shl_load" = xyes; then : 13774 lt_cv_dlopen="shl_load" 13775else 13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13777$as_echo_n "checking for shl_load in -ldld... " >&6; } 13778if ${ac_cv_lib_dld_shl_load+:} false; then : 13779 $as_echo_n "(cached) " >&6 13780else 13781 ac_check_lib_save_LIBS=$LIBS 13782LIBS="-ldld $LIBS" 13783cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13784/* end confdefs.h. */ 13785 13786/* Override any GCC internal prototype to avoid an error. 13787 Use char because int might match the return type of a GCC 13788 builtin and then its argument prototype would still apply. */ 13789#ifdef __cplusplus 13790extern "C" 13791#endif 13792char shl_load (); 13793int 13794main () 13795{ 13796return shl_load (); 13797 ; 13798 return 0; 13799} 13800_ACEOF 13801if ac_fn_c_try_link "$LINENO"; then : 13802 ac_cv_lib_dld_shl_load=yes 13803else 13804 ac_cv_lib_dld_shl_load=no 13805fi 13806rm -f core conftest.err conftest.$ac_objext \ 13807 conftest$ac_exeext conftest.$ac_ext 13808LIBS=$ac_check_lib_save_LIBS 13809fi 13810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13811$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 13812if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 13813 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 13814else 13815 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13816if test "x$ac_cv_func_dlopen" = xyes; then : 13817 lt_cv_dlopen="dlopen" 13818else 13819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13820$as_echo_n "checking for dlopen in -ldl... " >&6; } 13821if ${ac_cv_lib_dl_dlopen+:} false; then : 13822 $as_echo_n "(cached) " >&6 13823else 13824 ac_check_lib_save_LIBS=$LIBS 13825LIBS="-ldl $LIBS" 13826cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13827/* end confdefs.h. */ 13828 13829/* Override any GCC internal prototype to avoid an error. 13830 Use char because int might match the return type of a GCC 13831 builtin and then its argument prototype would still apply. */ 13832#ifdef __cplusplus 13833extern "C" 13834#endif 13835char dlopen (); 13836int 13837main () 13838{ 13839return dlopen (); 13840 ; 13841 return 0; 13842} 13843_ACEOF 13844if ac_fn_c_try_link "$LINENO"; then : 13845 ac_cv_lib_dl_dlopen=yes 13846else 13847 ac_cv_lib_dl_dlopen=no 13848fi 13849rm -f core conftest.err conftest.$ac_objext \ 13850 conftest$ac_exeext conftest.$ac_ext 13851LIBS=$ac_check_lib_save_LIBS 13852fi 13853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13854$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13855if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13856 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13857else 13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13859$as_echo_n "checking for dlopen in -lsvld... " >&6; } 13860if ${ac_cv_lib_svld_dlopen+:} false; then : 13861 $as_echo_n "(cached) " >&6 13862else 13863 ac_check_lib_save_LIBS=$LIBS 13864LIBS="-lsvld $LIBS" 13865cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13866/* end confdefs.h. */ 13867 13868/* Override any GCC internal prototype to avoid an error. 13869 Use char because int might match the return type of a GCC 13870 builtin and then its argument prototype would still apply. */ 13871#ifdef __cplusplus 13872extern "C" 13873#endif 13874char dlopen (); 13875int 13876main () 13877{ 13878return dlopen (); 13879 ; 13880 return 0; 13881} 13882_ACEOF 13883if ac_fn_c_try_link "$LINENO"; then : 13884 ac_cv_lib_svld_dlopen=yes 13885else 13886 ac_cv_lib_svld_dlopen=no 13887fi 13888rm -f core conftest.err conftest.$ac_objext \ 13889 conftest$ac_exeext conftest.$ac_ext 13890LIBS=$ac_check_lib_save_LIBS 13891fi 13892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13893$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 13894if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 13895 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 13896else 13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13898$as_echo_n "checking for dld_link in -ldld... " >&6; } 13899if ${ac_cv_lib_dld_dld_link+:} false; then : 13900 $as_echo_n "(cached) " >&6 13901else 13902 ac_check_lib_save_LIBS=$LIBS 13903LIBS="-ldld $LIBS" 13904cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13905/* end confdefs.h. */ 13906 13907/* Override any GCC internal prototype to avoid an error. 13908 Use char because int might match the return type of a GCC 13909 builtin and then its argument prototype would still apply. */ 13910#ifdef __cplusplus 13911extern "C" 13912#endif 13913char dld_link (); 13914int 13915main () 13916{ 13917return dld_link (); 13918 ; 13919 return 0; 13920} 13921_ACEOF 13922if ac_fn_c_try_link "$LINENO"; then : 13923 ac_cv_lib_dld_dld_link=yes 13924else 13925 ac_cv_lib_dld_dld_link=no 13926fi 13927rm -f core conftest.err conftest.$ac_objext \ 13928 conftest$ac_exeext conftest.$ac_ext 13929LIBS=$ac_check_lib_save_LIBS 13930fi 13931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13932$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 13933if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 13934 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 13935fi 13936 13937 13938fi 13939 13940 13941fi 13942 13943 13944fi 13945 13946 13947fi 13948 13949 13950fi 13951 13952 ;; 13953 esac 13954 13955 if test "x$lt_cv_dlopen" != xno; then 13956 enable_dlopen=yes 13957 else 13958 enable_dlopen=no 13959 fi 13960 13961 case $lt_cv_dlopen in 13962 dlopen) 13963 save_CPPFLAGS="$CPPFLAGS" 13964 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13965 13966 save_LDFLAGS="$LDFLAGS" 13967 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13968 13969 save_LIBS="$LIBS" 13970 LIBS="$lt_cv_dlopen_libs $LIBS" 13971 13972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13973$as_echo_n "checking whether a program can dlopen itself... " >&6; } 13974if ${lt_cv_dlopen_self+:} false; then : 13975 $as_echo_n "(cached) " >&6 13976else 13977 if test "$cross_compiling" = yes; then : 13978 lt_cv_dlopen_self=cross 13979else 13980 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13981 lt_status=$lt_dlunknown 13982 cat > conftest.$ac_ext <<_LT_EOF 13983#line $LINENO "configure" 13984#include "confdefs.h" 13985 13986#if HAVE_DLFCN_H 13987#include <dlfcn.h> 13988#endif 13989 13990#include <stdio.h> 13991 13992#ifdef RTLD_GLOBAL 13993# define LT_DLGLOBAL RTLD_GLOBAL 13994#else 13995# ifdef DL_GLOBAL 13996# define LT_DLGLOBAL DL_GLOBAL 13997# else 13998# define LT_DLGLOBAL 0 13999# endif 14000#endif 14001 14002/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14003 find out it does not work in some platform. */ 14004#ifndef LT_DLLAZY_OR_NOW 14005# ifdef RTLD_LAZY 14006# define LT_DLLAZY_OR_NOW RTLD_LAZY 14007# else 14008# ifdef DL_LAZY 14009# define LT_DLLAZY_OR_NOW DL_LAZY 14010# else 14011# ifdef RTLD_NOW 14012# define LT_DLLAZY_OR_NOW RTLD_NOW 14013# else 14014# ifdef DL_NOW 14015# define LT_DLLAZY_OR_NOW DL_NOW 14016# else 14017# define LT_DLLAZY_OR_NOW 0 14018# endif 14019# endif 14020# endif 14021# endif 14022#endif 14023 14024/* When -fvisbility=hidden is used, assume the code has been annotated 14025 correspondingly for the symbols needed. */ 14026#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14027int fnord () __attribute__((visibility("default"))); 14028#endif 14029 14030int fnord () { return 42; } 14031int main () 14032{ 14033 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14034 int status = $lt_dlunknown; 14035 14036 if (self) 14037 { 14038 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14039 else 14040 { 14041 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14042 else puts (dlerror ()); 14043 } 14044 /* dlclose (self); */ 14045 } 14046 else 14047 puts (dlerror ()); 14048 14049 return status; 14050} 14051_LT_EOF 14052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14053 (eval $ac_link) 2>&5 14054 ac_status=$? 14055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14056 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 14057 (./conftest; exit; ) >&5 2>/dev/null 14058 lt_status=$? 14059 case x$lt_status in 14060 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 14061 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 14062 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 14063 esac 14064 else : 14065 # compilation failed 14066 lt_cv_dlopen_self=no 14067 fi 14068fi 14069rm -fr conftest* 14070 14071 14072fi 14073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 14074$as_echo "$lt_cv_dlopen_self" >&6; } 14075 14076 if test "x$lt_cv_dlopen_self" = xyes; then 14077 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 14078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 14079$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 14080if ${lt_cv_dlopen_self_static+:} false; then : 14081 $as_echo_n "(cached) " >&6 14082else 14083 if test "$cross_compiling" = yes; then : 14084 lt_cv_dlopen_self_static=cross 14085else 14086 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14087 lt_status=$lt_dlunknown 14088 cat > conftest.$ac_ext <<_LT_EOF 14089#line $LINENO "configure" 14090#include "confdefs.h" 14091 14092#if HAVE_DLFCN_H 14093#include <dlfcn.h> 14094#endif 14095 14096#include <stdio.h> 14097 14098#ifdef RTLD_GLOBAL 14099# define LT_DLGLOBAL RTLD_GLOBAL 14100#else 14101# ifdef DL_GLOBAL 14102# define LT_DLGLOBAL DL_GLOBAL 14103# else 14104# define LT_DLGLOBAL 0 14105# endif 14106#endif 14107 14108/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14109 find out it does not work in some platform. */ 14110#ifndef LT_DLLAZY_OR_NOW 14111# ifdef RTLD_LAZY 14112# define LT_DLLAZY_OR_NOW RTLD_LAZY 14113# else 14114# ifdef DL_LAZY 14115# define LT_DLLAZY_OR_NOW DL_LAZY 14116# else 14117# ifdef RTLD_NOW 14118# define LT_DLLAZY_OR_NOW RTLD_NOW 14119# else 14120# ifdef DL_NOW 14121# define LT_DLLAZY_OR_NOW DL_NOW 14122# else 14123# define LT_DLLAZY_OR_NOW 0 14124# endif 14125# endif 14126# endif 14127# endif 14128#endif 14129 14130/* When -fvisbility=hidden is used, assume the code has been annotated 14131 correspondingly for the symbols needed. */ 14132#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14133int fnord () __attribute__((visibility("default"))); 14134#endif 14135 14136int fnord () { return 42; } 14137int main () 14138{ 14139 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14140 int status = $lt_dlunknown; 14141 14142 if (self) 14143 { 14144 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14145 else 14146 { 14147 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14148 else puts (dlerror ()); 14149 } 14150 /* dlclose (self); */ 14151 } 14152 else 14153 puts (dlerror ()); 14154 14155 return status; 14156} 14157_LT_EOF 14158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14159 (eval $ac_link) 2>&5 14160 ac_status=$? 14161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14162 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 14163 (./conftest; exit; ) >&5 2>/dev/null 14164 lt_status=$? 14165 case x$lt_status in 14166 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 14167 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 14168 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 14169 esac 14170 else : 14171 # compilation failed 14172 lt_cv_dlopen_self_static=no 14173 fi 14174fi 14175rm -fr conftest* 14176 14177 14178fi 14179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 14180$as_echo "$lt_cv_dlopen_self_static" >&6; } 14181 fi 14182 14183 CPPFLAGS="$save_CPPFLAGS" 14184 LDFLAGS="$save_LDFLAGS" 14185 LIBS="$save_LIBS" 14186 ;; 14187 esac 14188 14189 case $lt_cv_dlopen_self in 14190 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 14191 *) enable_dlopen_self=unknown ;; 14192 esac 14193 14194 case $lt_cv_dlopen_self_static in 14195 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 14196 *) enable_dlopen_self_static=unknown ;; 14197 esac 14198fi 14199 14200 14201 14202 14203 14204 14205 14206 14207 14208 14209 14210 14211 14212 14213 14214 14215 14216striplib= 14217old_striplib= 14218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 14219$as_echo_n "checking whether stripping libraries is possible... " >&6; } 14220if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 14221 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 14222 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14224$as_echo "yes" >&6; } 14225else 14226# FIXME - insert some real tests, host_os isn't really good enough 14227 case $host_os in 14228 darwin*) 14229 if test -n "$STRIP" ; then 14230 striplib="$STRIP -x" 14231 old_striplib="$STRIP -S" 14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14233$as_echo "yes" >&6; } 14234 else 14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14236$as_echo "no" >&6; } 14237 fi 14238 ;; 14239 *) 14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14241$as_echo "no" >&6; } 14242 ;; 14243 esac 14244fi 14245 14246 14247 14248 14249 14250 14251 14252 14253 14254 14255 14256 14257 # Report which library types will actually be built 14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 14259$as_echo_n "checking if libtool supports shared libraries... " >&6; } 14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 14261$as_echo "$can_build_shared" >&6; } 14262 14263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 14264$as_echo_n "checking whether to build shared libraries... " >&6; } 14265 test "$can_build_shared" = "no" && enable_shared=no 14266 14267 # On AIX, shared libraries and static libraries use the same namespace, and 14268 # are all built from PIC. 14269 case $host_os in 14270 aix3*) 14271 test "$enable_shared" = yes && enable_static=no 14272 if test -n "$RANLIB"; then 14273 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14274 postinstall_cmds='$RANLIB $lib' 14275 fi 14276 ;; 14277 14278 aix[4-9]*) 14279 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14280 test "$enable_shared" = yes && enable_static=no 14281 fi 14282 ;; 14283 esac 14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 14285$as_echo "$enable_shared" >&6; } 14286 14287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 14288$as_echo_n "checking whether to build static libraries... " >&6; } 14289 # Make sure either enable_shared or enable_static is yes. 14290 test "$enable_shared" = yes || enable_static=yes 14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 14292$as_echo "$enable_static" >&6; } 14293 14294 14295 14296 14297fi 14298ac_ext=c 14299ac_cpp='$CPP $CPPFLAGS' 14300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14302ac_compiler_gnu=$ac_cv_c_compiler_gnu 14303 14304CC="$lt_save_CC" 14305 14306 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 14307 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 14308 (test "X$CXX" != "Xg++"))) ; then 14309 ac_ext=cpp 14310ac_cpp='$CXXCPP $CPPFLAGS' 14311ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14312ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14313ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 14315$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 14316if test -z "$CXXCPP"; then 14317 if ${ac_cv_prog_CXXCPP+:} false; then : 14318 $as_echo_n "(cached) " >&6 14319else 14320 # Double quotes because CXXCPP needs to be expanded 14321 for CXXCPP in "$CXX -E" "/lib/cpp" 14322 do 14323 ac_preproc_ok=false 14324for ac_cxx_preproc_warn_flag in '' yes 14325do 14326 # Use a header file that comes with gcc, so configuring glibc 14327 # with a fresh cross-compiler works. 14328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14329 # <limits.h> exists even on freestanding compilers. 14330 # On the NeXT, cc -E runs the code through the compiler's parser, 14331 # not just through cpp. "Syntax error" is here to catch this case. 14332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14333/* end confdefs.h. */ 14334#ifdef __STDC__ 14335# include <limits.h> 14336#else 14337# include <assert.h> 14338#endif 14339 Syntax error 14340_ACEOF 14341if ac_fn_cxx_try_cpp "$LINENO"; then : 14342 14343else 14344 # Broken: fails on valid input. 14345continue 14346fi 14347rm -f conftest.err conftest.i conftest.$ac_ext 14348 14349 # OK, works on sane cases. Now check whether nonexistent headers 14350 # can be detected and how. 14351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14352/* end confdefs.h. */ 14353#include <ac_nonexistent.h> 14354_ACEOF 14355if ac_fn_cxx_try_cpp "$LINENO"; then : 14356 # Broken: success on invalid input. 14357continue 14358else 14359 # Passes both tests. 14360ac_preproc_ok=: 14361break 14362fi 14363rm -f conftest.err conftest.i conftest.$ac_ext 14364 14365done 14366# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 14367rm -f conftest.i conftest.err conftest.$ac_ext 14368if $ac_preproc_ok; then : 14369 break 14370fi 14371 14372 done 14373 ac_cv_prog_CXXCPP=$CXXCPP 14374 14375fi 14376 CXXCPP=$ac_cv_prog_CXXCPP 14377else 14378 ac_cv_prog_CXXCPP=$CXXCPP 14379fi 14380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 14381$as_echo "$CXXCPP" >&6; } 14382ac_preproc_ok=false 14383for ac_cxx_preproc_warn_flag in '' yes 14384do 14385 # Use a header file that comes with gcc, so configuring glibc 14386 # with a fresh cross-compiler works. 14387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14388 # <limits.h> exists even on freestanding compilers. 14389 # On the NeXT, cc -E runs the code through the compiler's parser, 14390 # not just through cpp. "Syntax error" is here to catch this case. 14391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14392/* end confdefs.h. */ 14393#ifdef __STDC__ 14394# include <limits.h> 14395#else 14396# include <assert.h> 14397#endif 14398 Syntax error 14399_ACEOF 14400if ac_fn_cxx_try_cpp "$LINENO"; then : 14401 14402else 14403 # Broken: fails on valid input. 14404continue 14405fi 14406rm -f conftest.err conftest.i conftest.$ac_ext 14407 14408 # OK, works on sane cases. Now check whether nonexistent headers 14409 # can be detected and how. 14410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14411/* end confdefs.h. */ 14412#include <ac_nonexistent.h> 14413_ACEOF 14414if ac_fn_cxx_try_cpp "$LINENO"; then : 14415 # Broken: success on invalid input. 14416continue 14417else 14418 # Passes both tests. 14419ac_preproc_ok=: 14420break 14421fi 14422rm -f conftest.err conftest.i conftest.$ac_ext 14423 14424done 14425# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 14426rm -f conftest.i conftest.err conftest.$ac_ext 14427if $ac_preproc_ok; then : 14428 14429else 14430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14432as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 14433See \`config.log' for more details" "$LINENO" 5; } 14434fi 14435 14436ac_ext=c 14437ac_cpp='$CPP $CPPFLAGS' 14438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14440ac_compiler_gnu=$ac_cv_c_compiler_gnu 14441 14442else 14443 _lt_caught_CXX_error=yes 14444fi 14445 14446ac_ext=cpp 14447ac_cpp='$CXXCPP $CPPFLAGS' 14448ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14449ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14450ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14451 14452archive_cmds_need_lc_CXX=no 14453allow_undefined_flag_CXX= 14454always_export_symbols_CXX=no 14455archive_expsym_cmds_CXX= 14456compiler_needs_object_CXX=no 14457export_dynamic_flag_spec_CXX= 14458hardcode_direct_CXX=no 14459hardcode_direct_absolute_CXX=no 14460hardcode_libdir_flag_spec_CXX= 14461hardcode_libdir_separator_CXX= 14462hardcode_minus_L_CXX=no 14463hardcode_shlibpath_var_CXX=unsupported 14464hardcode_automatic_CXX=no 14465inherit_rpath_CXX=no 14466module_cmds_CXX= 14467module_expsym_cmds_CXX= 14468link_all_deplibs_CXX=unknown 14469old_archive_cmds_CXX=$old_archive_cmds 14470reload_flag_CXX=$reload_flag 14471reload_cmds_CXX=$reload_cmds 14472no_undefined_flag_CXX= 14473whole_archive_flag_spec_CXX= 14474enable_shared_with_static_runtimes_CXX=no 14475 14476# Source file extension for C++ test sources. 14477ac_ext=cpp 14478 14479# Object file extension for compiled C++ test sources. 14480objext=o 14481objext_CXX=$objext 14482 14483# No sense in running all these tests if we already determined that 14484# the CXX compiler isn't working. Some variables (like enable_shared) 14485# are currently assumed to apply to all compilers on this platform, 14486# and will be corrupted by setting them based on a non-working compiler. 14487if test "$_lt_caught_CXX_error" != yes; then 14488 # Code to be used in simple compile tests 14489 lt_simple_compile_test_code="int some_variable = 0;" 14490 14491 # Code to be used in simple link tests 14492 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 14493 14494 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 14495 14496 14497 14498 14499 14500 14501# If no C compiler was specified, use CC. 14502LTCC=${LTCC-"$CC"} 14503 14504# If no C compiler flags were specified, use CFLAGS. 14505LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14506 14507# Allow CC to be a program name with arguments. 14508compiler=$CC 14509 14510 14511 # save warnings/boilerplate of simple test code 14512 ac_outfile=conftest.$ac_objext 14513echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14514eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14515_lt_compiler_boilerplate=`cat conftest.err` 14516$RM conftest* 14517 14518 ac_outfile=conftest.$ac_objext 14519echo "$lt_simple_link_test_code" >conftest.$ac_ext 14520eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14521_lt_linker_boilerplate=`cat conftest.err` 14522$RM -r conftest* 14523 14524 14525 # Allow CC to be a program name with arguments. 14526 lt_save_CC=$CC 14527 lt_save_CFLAGS=$CFLAGS 14528 lt_save_LD=$LD 14529 lt_save_GCC=$GCC 14530 GCC=$GXX 14531 lt_save_with_gnu_ld=$with_gnu_ld 14532 lt_save_path_LD=$lt_cv_path_LD 14533 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 14534 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 14535 else 14536 $as_unset lt_cv_prog_gnu_ld 14537 fi 14538 if test -n "${lt_cv_path_LDCXX+set}"; then 14539 lt_cv_path_LD=$lt_cv_path_LDCXX 14540 else 14541 $as_unset lt_cv_path_LD 14542 fi 14543 test -z "${LDCXX+set}" || LD=$LDCXX 14544 CC=${CXX-"c++"} 14545 CFLAGS=$CXXFLAGS 14546 compiler=$CC 14547 compiler_CXX=$CC 14548 for cc_temp in $compiler""; do 14549 case $cc_temp in 14550 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14551 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14552 \-*) ;; 14553 *) break;; 14554 esac 14555done 14556cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 14557 14558 14559 if test -n "$compiler"; then 14560 # We don't want -fno-exception when compiling C++ code, so set the 14561 # no_builtin_flag separately 14562 if test "$GXX" = yes; then 14563 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 14564 else 14565 lt_prog_compiler_no_builtin_flag_CXX= 14566 fi 14567 14568 if test "$GXX" = yes; then 14569 # Set up default GNU C++ configuration 14570 14571 14572 14573# Check whether --with-gnu-ld was given. 14574if test "${with_gnu_ld+set}" = set; then : 14575 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 14576else 14577 with_gnu_ld=no 14578fi 14579 14580ac_prog=ld 14581if test "$GCC" = yes; then 14582 # Check if gcc -print-prog-name=ld gives a path. 14583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 14584$as_echo_n "checking for ld used by $CC... " >&6; } 14585 case $host in 14586 *-*-mingw*) 14587 # gcc leaves a trailing carriage return which upsets mingw 14588 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 14589 *) 14590 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 14591 esac 14592 case $ac_prog in 14593 # Accept absolute paths. 14594 [\\/]* | ?:[\\/]*) 14595 re_direlt='/[^/][^/]*/\.\./' 14596 # Canonicalize the pathname of ld 14597 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 14598 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 14599 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 14600 done 14601 test -z "$LD" && LD="$ac_prog" 14602 ;; 14603 "") 14604 # If it fails, then pretend we aren't using GCC. 14605 ac_prog=ld 14606 ;; 14607 *) 14608 # If it is relative, then search for the first ld in PATH. 14609 with_gnu_ld=unknown 14610 ;; 14611 esac 14612elif test "$with_gnu_ld" = yes; then 14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 14614$as_echo_n "checking for GNU ld... " >&6; } 14615else 14616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 14617$as_echo_n "checking for non-GNU ld... " >&6; } 14618fi 14619if ${lt_cv_path_LD+:} false; then : 14620 $as_echo_n "(cached) " >&6 14621else 14622 if test -z "$LD"; then 14623 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 14624 for ac_dir in $PATH; do 14625 IFS="$lt_save_ifs" 14626 test -z "$ac_dir" && ac_dir=. 14627 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 14628 lt_cv_path_LD="$ac_dir/$ac_prog" 14629 # Check to see if the program is GNU ld. I'd rather use --version, 14630 # but apparently some variants of GNU ld only accept -v. 14631 # Break only if it was the GNU/non-GNU ld that we prefer. 14632 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 14633 *GNU* | *'with BFD'*) 14634 test "$with_gnu_ld" != no && break 14635 ;; 14636 *) 14637 test "$with_gnu_ld" != yes && break 14638 ;; 14639 esac 14640 fi 14641 done 14642 IFS="$lt_save_ifs" 14643else 14644 lt_cv_path_LD="$LD" # Let the user override the test with a path. 14645fi 14646fi 14647 14648LD="$lt_cv_path_LD" 14649if test -n "$LD"; then 14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 14651$as_echo "$LD" >&6; } 14652else 14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14654$as_echo "no" >&6; } 14655fi 14656test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 14657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 14658$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 14659if ${lt_cv_prog_gnu_ld+:} false; then : 14660 $as_echo_n "(cached) " >&6 14661else 14662 # I'd rather use --version here, but apparently some GNU lds only accept -v. 14663case `$LD -v 2>&1 </dev/null` in 14664*GNU* | *'with BFD'*) 14665 lt_cv_prog_gnu_ld=yes 14666 ;; 14667*) 14668 lt_cv_prog_gnu_ld=no 14669 ;; 14670esac 14671fi 14672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 14673$as_echo "$lt_cv_prog_gnu_ld" >&6; } 14674with_gnu_ld=$lt_cv_prog_gnu_ld 14675 14676 14677 14678 14679 14680 14681 14682 # Check if GNU C++ uses GNU ld as the underlying linker, since the 14683 # archiving commands below assume that GNU ld is being used. 14684 if test "$with_gnu_ld" = yes; then 14685 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 14686 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' 14687 14688 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14689 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14690 14691 # If archive_cmds runs LD, not CC, wlarc should be empty 14692 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 14693 # investigate it a little bit more. (MM) 14694 wlarc='${wl}' 14695 14696 # ancient GNU ld didn't support --whole-archive et. al. 14697 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 14698 $GREP 'no-whole-archive' > /dev/null; then 14699 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14700 else 14701 whole_archive_flag_spec_CXX= 14702 fi 14703 else 14704 with_gnu_ld=no 14705 wlarc= 14706 14707 # A generic and very simple default shared library creation 14708 # command for GNU C++ for the case where it uses the native 14709 # linker, instead of GNU ld. If possible, this setting should 14710 # overridden to take advantage of the native linker features on 14711 # the platform it is being used on. 14712 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14713 fi 14714 14715 # Commands to make compiler produce verbose output that lists 14716 # what "hidden" libraries, object files and flags are used when 14717 # linking a shared library. 14718 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14719 14720 else 14721 GXX=no 14722 with_gnu_ld=no 14723 wlarc= 14724 fi 14725 14726 # PORTME: fill in a description of your system's C++ link characteristics 14727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14728$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14729 ld_shlibs_CXX=yes 14730 case $host_os in 14731 aix3*) 14732 # FIXME: insert proper C++ library support 14733 ld_shlibs_CXX=no 14734 ;; 14735 aix[4-9]*) 14736 if test "$host_cpu" = ia64; then 14737 # On IA64, the linker does run time linking by default, so we don't 14738 # have to do anything special. 14739 aix_use_runtimelinking=no 14740 exp_sym_flag='-Bexport' 14741 no_entry_flag="" 14742 else 14743 aix_use_runtimelinking=no 14744 14745 # Test if we are trying to use run time linking or normal 14746 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14747 # need to do runtime linking. 14748 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14749 for ld_flag in $LDFLAGS; do 14750 case $ld_flag in 14751 *-brtl*) 14752 aix_use_runtimelinking=yes 14753 break 14754 ;; 14755 esac 14756 done 14757 ;; 14758 esac 14759 14760 exp_sym_flag='-bexport' 14761 no_entry_flag='-bnoentry' 14762 fi 14763 14764 # When large executables or shared objects are built, AIX ld can 14765 # have problems creating the table of contents. If linking a library 14766 # or program results in "error TOC overflow" add -mminimal-toc to 14767 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14768 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14769 14770 archive_cmds_CXX='' 14771 hardcode_direct_CXX=yes 14772 hardcode_direct_absolute_CXX=yes 14773 hardcode_libdir_separator_CXX=':' 14774 link_all_deplibs_CXX=yes 14775 file_list_spec_CXX='${wl}-f,' 14776 14777 if test "$GXX" = yes; then 14778 case $host_os in aix4.[012]|aix4.[012].*) 14779 # We only want to do this on AIX 4.2 and lower, the check 14780 # below for broken collect2 doesn't work under 4.3+ 14781 collect2name=`${CC} -print-prog-name=collect2` 14782 if test -f "$collect2name" && 14783 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 14784 then 14785 # We have reworked collect2 14786 : 14787 else 14788 # We have old collect2 14789 hardcode_direct_CXX=unsupported 14790 # It fails to find uninstalled libraries when the uninstalled 14791 # path is not listed in the libpath. Setting hardcode_minus_L 14792 # to unsupported forces relinking 14793 hardcode_minus_L_CXX=yes 14794 hardcode_libdir_flag_spec_CXX='-L$libdir' 14795 hardcode_libdir_separator_CXX= 14796 fi 14797 esac 14798 shared_flag='-shared' 14799 if test "$aix_use_runtimelinking" = yes; then 14800 shared_flag="$shared_flag "'${wl}-G' 14801 fi 14802 else 14803 # not using gcc 14804 if test "$host_cpu" = ia64; then 14805 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14806 # chokes on -Wl,-G. The following line is correct: 14807 shared_flag='-G' 14808 else 14809 if test "$aix_use_runtimelinking" = yes; then 14810 shared_flag='${wl}-G' 14811 else 14812 shared_flag='${wl}-bM:SRE' 14813 fi 14814 fi 14815 fi 14816 14817 export_dynamic_flag_spec_CXX='${wl}-bexpall' 14818 # It seems that -bexpall does not export symbols beginning with 14819 # underscore (_), so it is better to generate a list of symbols to 14820 # export. 14821 always_export_symbols_CXX=yes 14822 if test "$aix_use_runtimelinking" = yes; then 14823 # Warning - without using the other runtime loading flags (-brtl), 14824 # -berok will link without error, but may produce a broken library. 14825 allow_undefined_flag_CXX='-berok' 14826 # Determine the default libpath from the value encoded in an empty 14827 # executable. 14828 if test "${lt_cv_aix_libpath+set}" = set; then 14829 aix_libpath=$lt_cv_aix_libpath 14830else 14831 if ${lt_cv_aix_libpath__CXX+:} false; then : 14832 $as_echo_n "(cached) " >&6 14833else 14834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14835/* end confdefs.h. */ 14836 14837int 14838main () 14839{ 14840 14841 ; 14842 return 0; 14843} 14844_ACEOF 14845if ac_fn_cxx_try_link "$LINENO"; then : 14846 14847 lt_aix_libpath_sed=' 14848 /Import File Strings/,/^$/ { 14849 /^0/ { 14850 s/^0 *\([^ ]*\) *$/\1/ 14851 p 14852 } 14853 }' 14854 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14855 # Check for a 64-bit object if we didn't find anything. 14856 if test -z "$lt_cv_aix_libpath__CXX"; then 14857 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14858 fi 14859fi 14860rm -f core conftest.err conftest.$ac_objext \ 14861 conftest$ac_exeext conftest.$ac_ext 14862 if test -z "$lt_cv_aix_libpath__CXX"; then 14863 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 14864 fi 14865 14866fi 14867 14868 aix_libpath=$lt_cv_aix_libpath__CXX 14869fi 14870 14871 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 14872 14873 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 14874 else 14875 if test "$host_cpu" = ia64; then 14876 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 14877 allow_undefined_flag_CXX="-z nodefs" 14878 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" 14879 else 14880 # Determine the default libpath from the value encoded in an 14881 # empty executable. 14882 if test "${lt_cv_aix_libpath+set}" = set; then 14883 aix_libpath=$lt_cv_aix_libpath 14884else 14885 if ${lt_cv_aix_libpath__CXX+:} false; then : 14886 $as_echo_n "(cached) " >&6 14887else 14888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14889/* end confdefs.h. */ 14890 14891int 14892main () 14893{ 14894 14895 ; 14896 return 0; 14897} 14898_ACEOF 14899if ac_fn_cxx_try_link "$LINENO"; then : 14900 14901 lt_aix_libpath_sed=' 14902 /Import File Strings/,/^$/ { 14903 /^0/ { 14904 s/^0 *\([^ ]*\) *$/\1/ 14905 p 14906 } 14907 }' 14908 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14909 # Check for a 64-bit object if we didn't find anything. 14910 if test -z "$lt_cv_aix_libpath__CXX"; then 14911 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14912 fi 14913fi 14914rm -f core conftest.err conftest.$ac_objext \ 14915 conftest$ac_exeext conftest.$ac_ext 14916 if test -z "$lt_cv_aix_libpath__CXX"; then 14917 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 14918 fi 14919 14920fi 14921 14922 aix_libpath=$lt_cv_aix_libpath__CXX 14923fi 14924 14925 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 14926 # Warning - without using the other run time loading flags, 14927 # -berok will link without error, but may produce a broken library. 14928 no_undefined_flag_CXX=' ${wl}-bernotok' 14929 allow_undefined_flag_CXX=' ${wl}-berok' 14930 if test "$with_gnu_ld" = yes; then 14931 # We only use this code for GNU lds that support --whole-archive. 14932 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 14933 else 14934 # Exported symbols can be pulled into shared objects from archives 14935 whole_archive_flag_spec_CXX='$convenience' 14936 fi 14937 archive_cmds_need_lc_CXX=yes 14938 # This is similar to how AIX traditionally builds its shared 14939 # libraries. 14940 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 14941 fi 14942 fi 14943 ;; 14944 14945 beos*) 14946 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14947 allow_undefined_flag_CXX=unsupported 14948 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14949 # support --undefined. This deserves some investigation. FIXME 14950 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14951 else 14952 ld_shlibs_CXX=no 14953 fi 14954 ;; 14955 14956 chorus*) 14957 case $cc_basename in 14958 *) 14959 # FIXME: insert proper C++ library support 14960 ld_shlibs_CXX=no 14961 ;; 14962 esac 14963 ;; 14964 14965 cygwin* | mingw* | pw32* | cegcc*) 14966 case $GXX,$cc_basename in 14967 ,cl* | no,cl*) 14968 # Native MSVC 14969 # hardcode_libdir_flag_spec is actually meaningless, as there is 14970 # no search path for DLLs. 14971 hardcode_libdir_flag_spec_CXX=' ' 14972 allow_undefined_flag_CXX=unsupported 14973 always_export_symbols_CXX=yes 14974 file_list_spec_CXX='@' 14975 # Tell ltmain to make .lib files, not .a files. 14976 libext=lib 14977 # Tell ltmain to make .dll files, not .so files. 14978 shrext_cmds=".dll" 14979 # FIXME: Setting linknames here is a bad hack. 14980 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 14981 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14982 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 14983 else 14984 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 14985 fi~ 14986 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14987 linknames=' 14988 # The linker will not automatically build a static lib if we build a DLL. 14989 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 14990 enable_shared_with_static_runtimes_CXX=yes 14991 # Don't use ranlib 14992 old_postinstall_cmds_CXX='chmod 644 $oldlib' 14993 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 14994 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14995 case $lt_outputfile in 14996 *.exe|*.EXE) ;; 14997 *) 14998 lt_outputfile="$lt_outputfile.exe" 14999 lt_tool_outputfile="$lt_tool_outputfile.exe" 15000 ;; 15001 esac~ 15002 func_to_tool_file "$lt_outputfile"~ 15003 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 15004 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 15005 $RM "$lt_outputfile.manifest"; 15006 fi' 15007 ;; 15008 *) 15009 # g++ 15010 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 15011 # as there is no search path for DLLs. 15012 hardcode_libdir_flag_spec_CXX='-L$libdir' 15013 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 15014 allow_undefined_flag_CXX=unsupported 15015 always_export_symbols_CXX=no 15016 enable_shared_with_static_runtimes_CXX=yes 15017 15018 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15019 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' 15020 # If the export-symbols file already is a .def file (1st line 15021 # is EXPORTS), use it as is; otherwise, prepend... 15022 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15023 cp $export_symbols $output_objdir/$soname.def; 15024 else 15025 echo EXPORTS > $output_objdir/$soname.def; 15026 cat $export_symbols >> $output_objdir/$soname.def; 15027 fi~ 15028 $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' 15029 else 15030 ld_shlibs_CXX=no 15031 fi 15032 ;; 15033 esac 15034 ;; 15035 darwin* | rhapsody*) 15036 15037 15038 archive_cmds_need_lc_CXX=no 15039 hardcode_direct_CXX=no 15040 hardcode_automatic_CXX=yes 15041 hardcode_shlibpath_var_CXX=unsupported 15042 if test "$lt_cv_ld_force_load" = "yes"; then 15043 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\"`' 15044 15045 else 15046 whole_archive_flag_spec_CXX='' 15047 fi 15048 link_all_deplibs_CXX=yes 15049 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 15050 case $cc_basename in 15051 ifort*) _lt_dar_can_shared=yes ;; 15052 *) _lt_dar_can_shared=$GCC ;; 15053 esac 15054 if test "$_lt_dar_can_shared" = "yes"; then 15055 output_verbose_link_cmd=func_echo_all 15056 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}" 15057 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15058 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}" 15059 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}" 15060 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 15061 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}" 15062 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}" 15063 fi 15064 15065 else 15066 ld_shlibs_CXX=no 15067 fi 15068 15069 ;; 15070 15071 dgux*) 15072 case $cc_basename in 15073 ec++*) 15074 # FIXME: insert proper C++ library support 15075 ld_shlibs_CXX=no 15076 ;; 15077 ghcx*) 15078 # Green Hills C++ Compiler 15079 # FIXME: insert proper C++ library support 15080 ld_shlibs_CXX=no 15081 ;; 15082 *) 15083 # FIXME: insert proper C++ library support 15084 ld_shlibs_CXX=no 15085 ;; 15086 esac 15087 ;; 15088 15089 freebsd2.*) 15090 # C++ shared libraries reported to be fairly broken before 15091 # switch to ELF 15092 ld_shlibs_CXX=no 15093 ;; 15094 15095 freebsd-elf*) 15096 archive_cmds_need_lc_CXX=no 15097 ;; 15098 15099 freebsd* | dragonfly*) 15100 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 15101 # conventions 15102 ld_shlibs_CXX=yes 15103 ;; 15104 15105 gnu*) 15106 ;; 15107 15108 haiku*) 15109 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15110 link_all_deplibs_CXX=yes 15111 ;; 15112 15113 hpux9*) 15114 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 15115 hardcode_libdir_separator_CXX=: 15116 export_dynamic_flag_spec_CXX='${wl}-E' 15117 hardcode_direct_CXX=yes 15118 hardcode_minus_L_CXX=yes # Not in the search PATH, 15119 # but as the default 15120 # location of the library. 15121 15122 case $cc_basename in 15123 CC*) 15124 # FIXME: insert proper C++ library support 15125 ld_shlibs_CXX=no 15126 ;; 15127 aCC*) 15128 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 15129 # Commands to make compiler produce verbose output that lists 15130 # what "hidden" libraries, object files and flags are used when 15131 # linking a shared library. 15132 # 15133 # There doesn't appear to be a way to prevent this compiler from 15134 # explicitly linking system object files so we need to strip them 15135 # from the output so that they don't get included in the library 15136 # dependencies. 15137 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"' 15138 ;; 15139 *) 15140 if test "$GXX" = yes; then 15141 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 15142 else 15143 # FIXME: insert proper C++ library support 15144 ld_shlibs_CXX=no 15145 fi 15146 ;; 15147 esac 15148 ;; 15149 15150 hpux10*|hpux11*) 15151 if test $with_gnu_ld = no; then 15152 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 15153 hardcode_libdir_separator_CXX=: 15154 15155 case $host_cpu in 15156 hppa*64*|ia64*) 15157 ;; 15158 *) 15159 export_dynamic_flag_spec_CXX='${wl}-E' 15160 ;; 15161 esac 15162 fi 15163 case $host_cpu in 15164 hppa*64*|ia64*) 15165 hardcode_direct_CXX=no 15166 hardcode_shlibpath_var_CXX=no 15167 ;; 15168 *) 15169 hardcode_direct_CXX=yes 15170 hardcode_direct_absolute_CXX=yes 15171 hardcode_minus_L_CXX=yes # Not in the search PATH, 15172 # but as the default 15173 # location of the library. 15174 ;; 15175 esac 15176 15177 case $cc_basename in 15178 CC*) 15179 # FIXME: insert proper C++ library support 15180 ld_shlibs_CXX=no 15181 ;; 15182 aCC*) 15183 case $host_cpu in 15184 hppa*64*) 15185 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15186 ;; 15187 ia64*) 15188 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15189 ;; 15190 *) 15191 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15192 ;; 15193 esac 15194 # Commands to make compiler produce verbose output that lists 15195 # what "hidden" libraries, object files and flags are used when 15196 # linking a shared library. 15197 # 15198 # There doesn't appear to be a way to prevent this compiler from 15199 # explicitly linking system object files so we need to strip them 15200 # from the output so that they don't get included in the library 15201 # dependencies. 15202 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"' 15203 ;; 15204 *) 15205 if test "$GXX" = yes; then 15206 if test $with_gnu_ld = no; then 15207 case $host_cpu in 15208 hppa*64*) 15209 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15210 ;; 15211 ia64*) 15212 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15213 ;; 15214 *) 15215 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' 15216 ;; 15217 esac 15218 fi 15219 else 15220 # FIXME: insert proper C++ library support 15221 ld_shlibs_CXX=no 15222 fi 15223 ;; 15224 esac 15225 ;; 15226 15227 interix[3-9]*) 15228 hardcode_direct_CXX=no 15229 hardcode_shlibpath_var_CXX=no 15230 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 15231 export_dynamic_flag_spec_CXX='${wl}-E' 15232 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15233 # Instead, shared libraries are loaded at an image base (0x10000000 by 15234 # default) and relocated if they conflict, which is a slow very memory 15235 # consuming and fragmenting process. To avoid this, we pick a random, 15236 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15237 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15238 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' 15239 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' 15240 ;; 15241 irix5* | irix6*) 15242 case $cc_basename in 15243 CC*) 15244 # SGI C++ 15245 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' 15246 15247 # Archives containing C++ object files must be created using 15248 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 15249 # necessary to make sure instantiated templates are included 15250 # in the archive. 15251 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 15252 ;; 15253 *) 15254 if test "$GXX" = yes; then 15255 if test "$with_gnu_ld" = no; then 15256 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' 15257 else 15258 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' 15259 fi 15260 fi 15261 link_all_deplibs_CXX=yes 15262 ;; 15263 esac 15264 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 15265 hardcode_libdir_separator_CXX=: 15266 inherit_rpath_CXX=yes 15267 ;; 15268 15269 linux* | k*bsd*-gnu | kopensolaris*-gnu) 15270 case $cc_basename in 15271 KCC*) 15272 # Kuck and Associates, Inc. (KAI) C++ Compiler 15273 15274 # KCC will only create a shared library if the output file 15275 # ends with ".so" (or ".sl" for HP-UX), so rename the library 15276 # to its proper name (with version) after linking. 15277 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' 15278 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' 15279 # Commands to make compiler produce verbose output that lists 15280 # what "hidden" libraries, object files and flags are used when 15281 # linking a shared library. 15282 # 15283 # There doesn't appear to be a way to prevent this compiler from 15284 # explicitly linking system object files so we need to strip them 15285 # from the output so that they don't get included in the library 15286 # dependencies. 15287 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"' 15288 15289 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 15290 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 15291 15292 # Archives containing C++ object files must be created using 15293 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 15294 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 15295 ;; 15296 icpc* | ecpc* ) 15297 # Intel C++ 15298 with_gnu_ld=yes 15299 # version 8.0 and above of icpc choke on multiply defined symbols 15300 # if we add $predep_objects and $postdep_objects, however 7.1 and 15301 # earlier do not add the objects themselves. 15302 case `$CC -V 2>&1` in 15303 *"Version 7."*) 15304 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 15305 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' 15306 ;; 15307 *) # Version 8.0 or newer 15308 tmp_idyn= 15309 case $host_cpu in 15310 ia64*) tmp_idyn=' -i_dynamic';; 15311 esac 15312 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15313 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' 15314 ;; 15315 esac 15316 archive_cmds_need_lc_CXX=no 15317 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 15318 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 15319 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 15320 ;; 15321 pgCC* | pgcpp*) 15322 # Portland Group C++ compiler 15323 case `$CC -V` in 15324 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 15325 prelink_cmds_CXX='tpldir=Template.dir~ 15326 rm -rf $tpldir~ 15327 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 15328 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 15329 old_archive_cmds_CXX='tpldir=Template.dir~ 15330 rm -rf $tpldir~ 15331 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 15332 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 15333 $RANLIB $oldlib' 15334 archive_cmds_CXX='tpldir=Template.dir~ 15335 rm -rf $tpldir~ 15336 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 15337 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 15338 archive_expsym_cmds_CXX='tpldir=Template.dir~ 15339 rm -rf $tpldir~ 15340 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 15341 $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' 15342 ;; 15343 *) # Version 6 and above use weak symbols 15344 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 15345 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' 15346 ;; 15347 esac 15348 15349 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 15350 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 15351 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' 15352 ;; 15353 cxx*) 15354 # Compaq C++ 15355 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 15356 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' 15357 15358 runpath_var=LD_RUN_PATH 15359 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 15360 hardcode_libdir_separator_CXX=: 15361 15362 # Commands to make compiler produce verbose output that lists 15363 # what "hidden" libraries, object files and flags are used when 15364 # linking a shared library. 15365 # 15366 # There doesn't appear to be a way to prevent this compiler from 15367 # explicitly linking system object files so we need to strip them 15368 # from the output so that they don't get included in the library 15369 # dependencies. 15370 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' 15371 ;; 15372 xl* | mpixl* | bgxl*) 15373 # IBM XL 8.0 on PPC, with GNU ld 15374 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 15375 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 15376 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15377 if test "x$supports_anon_versioning" = xyes; then 15378 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 15379 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15380 echo "local: *; };" >> $output_objdir/$libname.ver~ 15381 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15382 fi 15383 ;; 15384 *) 15385 case `$CC -V 2>&1 | sed 5q` in 15386 *Sun\ C*) 15387 # Sun C++ 5.9 15388 no_undefined_flag_CXX=' -zdefs' 15389 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15390 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' 15391 hardcode_libdir_flag_spec_CXX='-R$libdir' 15392 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' 15393 compiler_needs_object_CXX=yes 15394 15395 # Not sure whether something based on 15396 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 15397 # would be better. 15398 output_verbose_link_cmd='func_echo_all' 15399 15400 # Archives containing C++ object files must be created using 15401 # "CC -xar", where "CC" is the Sun C++ compiler. This is 15402 # necessary to make sure instantiated templates are included 15403 # in the archive. 15404 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 15405 ;; 15406 esac 15407 ;; 15408 esac 15409 ;; 15410 15411 lynxos*) 15412 # FIXME: insert proper C++ library support 15413 ld_shlibs_CXX=no 15414 ;; 15415 15416 m88k*) 15417 # FIXME: insert proper C++ library support 15418 ld_shlibs_CXX=no 15419 ;; 15420 15421 mvs*) 15422 case $cc_basename in 15423 cxx*) 15424 # FIXME: insert proper C++ library support 15425 ld_shlibs_CXX=no 15426 ;; 15427 *) 15428 # FIXME: insert proper C++ library support 15429 ld_shlibs_CXX=no 15430 ;; 15431 esac 15432 ;; 15433 15434 netbsd*) 15435 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15436 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 15437 wlarc= 15438 hardcode_libdir_flag_spec_CXX='-R$libdir' 15439 hardcode_direct_CXX=yes 15440 hardcode_shlibpath_var_CXX=no 15441 fi 15442 # Workaround some broken pre-1.5 toolchains 15443 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 15444 ;; 15445 15446 *nto* | *qnx*) 15447 ld_shlibs_CXX=yes 15448 ;; 15449 15450 openbsd2*) 15451 # C++ shared libraries are fairly broken 15452 ld_shlibs_CXX=no 15453 ;; 15454 15455 openbsd*) 15456 if test -f /usr/libexec/ld.so; then 15457 hardcode_direct_CXX=yes 15458 hardcode_shlibpath_var_CXX=no 15459 hardcode_direct_absolute_CXX=yes 15460 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 15461 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 15462 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15463 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 15464 export_dynamic_flag_spec_CXX='${wl}-E' 15465 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15466 fi 15467 output_verbose_link_cmd=func_echo_all 15468 else 15469 ld_shlibs_CXX=no 15470 fi 15471 ;; 15472 15473 osf3* | osf4* | osf5*) 15474 case $cc_basename in 15475 KCC*) 15476 # Kuck and Associates, Inc. (KAI) C++ Compiler 15477 15478 # KCC will only create a shared library if the output file 15479 # ends with ".so" (or ".sl" for HP-UX), so rename the library 15480 # to its proper name (with version) after linking. 15481 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' 15482 15483 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 15484 hardcode_libdir_separator_CXX=: 15485 15486 # Archives containing C++ object files must be created using 15487 # the KAI C++ compiler. 15488 case $host in 15489 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 15490 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 15491 esac 15492 ;; 15493 RCC*) 15494 # Rational C++ 2.4.1 15495 # FIXME: insert proper C++ library support 15496 ld_shlibs_CXX=no 15497 ;; 15498 cxx*) 15499 case $host in 15500 osf3*) 15501 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 15502 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' 15503 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 15504 ;; 15505 *) 15506 allow_undefined_flag_CXX=' -expect_unresolved \*' 15507 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' 15508 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 15509 echo "-hidden">> $lib.exp~ 15510 $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~ 15511 $RM $lib.exp' 15512 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 15513 ;; 15514 esac 15515 15516 hardcode_libdir_separator_CXX=: 15517 15518 # Commands to make compiler produce verbose output that lists 15519 # what "hidden" libraries, object files and flags are used when 15520 # linking a shared library. 15521 # 15522 # There doesn't appear to be a way to prevent this compiler from 15523 # explicitly linking system object files so we need to strip them 15524 # from the output so that they don't get included in the library 15525 # dependencies. 15526 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"' 15527 ;; 15528 *) 15529 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 15530 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 15531 case $host in 15532 osf3*) 15533 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' 15534 ;; 15535 *) 15536 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' 15537 ;; 15538 esac 15539 15540 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 15541 hardcode_libdir_separator_CXX=: 15542 15543 # Commands to make compiler produce verbose output that lists 15544 # what "hidden" libraries, object files and flags are used when 15545 # linking a shared library. 15546 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15547 15548 else 15549 # FIXME: insert proper C++ library support 15550 ld_shlibs_CXX=no 15551 fi 15552 ;; 15553 esac 15554 ;; 15555 15556 psos*) 15557 # FIXME: insert proper C++ library support 15558 ld_shlibs_CXX=no 15559 ;; 15560 15561 sunos4*) 15562 case $cc_basename in 15563 CC*) 15564 # Sun C++ 4.x 15565 # FIXME: insert proper C++ library support 15566 ld_shlibs_CXX=no 15567 ;; 15568 lcc*) 15569 # Lucid 15570 # FIXME: insert proper C++ library support 15571 ld_shlibs_CXX=no 15572 ;; 15573 *) 15574 # FIXME: insert proper C++ library support 15575 ld_shlibs_CXX=no 15576 ;; 15577 esac 15578 ;; 15579 15580 solaris*) 15581 case $cc_basename in 15582 CC* | sunCC*) 15583 # Sun C++ 4.2, 5.x and Centerline C++ 15584 archive_cmds_need_lc_CXX=yes 15585 no_undefined_flag_CXX=' -zdefs' 15586 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15587 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15588 $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' 15589 15590 hardcode_libdir_flag_spec_CXX='-R$libdir' 15591 hardcode_shlibpath_var_CXX=no 15592 case $host_os in 15593 solaris2.[0-5] | solaris2.[0-5].*) ;; 15594 *) 15595 # The compiler driver will combine and reorder linker options, 15596 # but understands `-z linker_flag'. 15597 # Supported since Solaris 2.6 (maybe 2.5.1?) 15598 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 15599 ;; 15600 esac 15601 link_all_deplibs_CXX=yes 15602 15603 output_verbose_link_cmd='func_echo_all' 15604 15605 # Archives containing C++ object files must be created using 15606 # "CC -xar", where "CC" is the Sun C++ compiler. This is 15607 # necessary to make sure instantiated templates are included 15608 # in the archive. 15609 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 15610 ;; 15611 gcx*) 15612 # Green Hills C++ Compiler 15613 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 15614 15615 # The C++ compiler must be used to create the archive. 15616 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 15617 ;; 15618 *) 15619 # GNU C++ compiler with Solaris linker 15620 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 15621 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 15622 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 15623 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 15624 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15625 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 15626 15627 # Commands to make compiler produce verbose output that lists 15628 # what "hidden" libraries, object files and flags are used when 15629 # linking a shared library. 15630 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15631 else 15632 # g++ 2.7 appears to require `-G' NOT `-shared' on this 15633 # platform. 15634 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 15635 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15636 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 15637 15638 # Commands to make compiler produce verbose output that lists 15639 # what "hidden" libraries, object files and flags are used when 15640 # linking a shared library. 15641 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15642 fi 15643 15644 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 15645 case $host_os in 15646 solaris2.[0-5] | solaris2.[0-5].*) ;; 15647 *) 15648 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15649 ;; 15650 esac 15651 fi 15652 ;; 15653 esac 15654 ;; 15655 15656 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15657 no_undefined_flag_CXX='${wl}-z,text' 15658 archive_cmds_need_lc_CXX=no 15659 hardcode_shlibpath_var_CXX=no 15660 runpath_var='LD_RUN_PATH' 15661 15662 case $cc_basename in 15663 CC*) 15664 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15665 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15666 ;; 15667 *) 15668 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15669 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15670 ;; 15671 esac 15672 ;; 15673 15674 sysv5* | sco3.2v5* | sco5v6*) 15675 # Note: We can NOT use -z defs as we might desire, because we do not 15676 # link with -lc, and that would cause any symbols used from libc to 15677 # always be unresolved, which means just about no library would 15678 # ever link correctly. If we're not using GNU ld we use -z text 15679 # though, which does catch some bad symbols but isn't as heavy-handed 15680 # as -z defs. 15681 no_undefined_flag_CXX='${wl}-z,text' 15682 allow_undefined_flag_CXX='${wl}-z,nodefs' 15683 archive_cmds_need_lc_CXX=no 15684 hardcode_shlibpath_var_CXX=no 15685 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 15686 hardcode_libdir_separator_CXX=':' 15687 link_all_deplibs_CXX=yes 15688 export_dynamic_flag_spec_CXX='${wl}-Bexport' 15689 runpath_var='LD_RUN_PATH' 15690 15691 case $cc_basename in 15692 CC*) 15693 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15694 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15695 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 15696 '"$old_archive_cmds_CXX" 15697 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 15698 '"$reload_cmds_CXX" 15699 ;; 15700 *) 15701 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15702 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15703 ;; 15704 esac 15705 ;; 15706 15707 tandem*) 15708 case $cc_basename in 15709 NCC*) 15710 # NonStop-UX NCC 3.20 15711 # FIXME: insert proper C++ library support 15712 ld_shlibs_CXX=no 15713 ;; 15714 *) 15715 # FIXME: insert proper C++ library support 15716 ld_shlibs_CXX=no 15717 ;; 15718 esac 15719 ;; 15720 15721 vxworks*) 15722 # FIXME: insert proper C++ library support 15723 ld_shlibs_CXX=no 15724 ;; 15725 15726 *) 15727 # FIXME: insert proper C++ library support 15728 ld_shlibs_CXX=no 15729 ;; 15730 esac 15731 15732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15733$as_echo "$ld_shlibs_CXX" >&6; } 15734 test "$ld_shlibs_CXX" = no && can_build_shared=no 15735 15736 GCC_CXX="$GXX" 15737 LD_CXX="$LD" 15738 15739 ## CAVEAT EMPTOR: 15740 ## There is no encapsulation within the following macros, do not change 15741 ## the running order or otherwise move them around unless you know exactly 15742 ## what you are doing... 15743 # Dependencies to place before and after the object being linked: 15744predep_objects_CXX= 15745postdep_objects_CXX= 15746predeps_CXX= 15747postdeps_CXX= 15748compiler_lib_search_path_CXX= 15749 15750cat > conftest.$ac_ext <<_LT_EOF 15751class Foo 15752{ 15753public: 15754 Foo (void) { a = 0; } 15755private: 15756 int a; 15757}; 15758_LT_EOF 15759 15760 15761_lt_libdeps_save_CFLAGS=$CFLAGS 15762case "$CC $CFLAGS " in #( 15763*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 15764*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 15765*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 15766esac 15767 15768if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15769 (eval $ac_compile) 2>&5 15770 ac_status=$? 15771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15772 test $ac_status = 0; }; then 15773 # Parse the compiler output and extract the necessary 15774 # objects, libraries and library flags. 15775 15776 # Sentinel used to keep track of whether or not we are before 15777 # the conftest object file. 15778 pre_test_object_deps_done=no 15779 15780 for p in `eval "$output_verbose_link_cmd"`; do 15781 case ${prev}${p} in 15782 15783 -L* | -R* | -l*) 15784 # Some compilers place space between "-{L,R}" and the path. 15785 # Remove the space. 15786 if test $p = "-L" || 15787 test $p = "-R"; then 15788 prev=$p 15789 continue 15790 fi 15791 15792 # Expand the sysroot to ease extracting the directories later. 15793 if test -z "$prev"; then 15794 case $p in 15795 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 15796 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 15797 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 15798 esac 15799 fi 15800 case $p in 15801 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 15802 esac 15803 if test "$pre_test_object_deps_done" = no; then 15804 case ${prev} in 15805 -L | -R) 15806 # Internal compiler library paths should come after those 15807 # provided the user. The postdeps already come after the 15808 # user supplied libs so there is no need to process them. 15809 if test -z "$compiler_lib_search_path_CXX"; then 15810 compiler_lib_search_path_CXX="${prev}${p}" 15811 else 15812 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 15813 fi 15814 ;; 15815 # The "-l" case would never come before the object being 15816 # linked, so don't bother handling this case. 15817 esac 15818 else 15819 if test -z "$postdeps_CXX"; then 15820 postdeps_CXX="${prev}${p}" 15821 else 15822 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 15823 fi 15824 fi 15825 prev= 15826 ;; 15827 15828 *.lto.$objext) ;; # Ignore GCC LTO objects 15829 *.$objext) 15830 # This assumes that the test object file only shows up 15831 # once in the compiler output. 15832 if test "$p" = "conftest.$objext"; then 15833 pre_test_object_deps_done=yes 15834 continue 15835 fi 15836 15837 if test "$pre_test_object_deps_done" = no; then 15838 if test -z "$predep_objects_CXX"; then 15839 predep_objects_CXX="$p" 15840 else 15841 predep_objects_CXX="$predep_objects_CXX $p" 15842 fi 15843 else 15844 if test -z "$postdep_objects_CXX"; then 15845 postdep_objects_CXX="$p" 15846 else 15847 postdep_objects_CXX="$postdep_objects_CXX $p" 15848 fi 15849 fi 15850 ;; 15851 15852 *) ;; # Ignore the rest. 15853 15854 esac 15855 done 15856 15857 # Clean up. 15858 rm -f a.out a.exe 15859else 15860 echo "libtool.m4: error: problem compiling CXX test program" 15861fi 15862 15863$RM -f confest.$objext 15864CFLAGS=$_lt_libdeps_save_CFLAGS 15865 15866# PORTME: override above test on systems where it is broken 15867case $host_os in 15868interix[3-9]*) 15869 # Interix 3.5 installs completely hosed .la files for C++, so rather than 15870 # hack all around it, let's just trust "g++" to DTRT. 15871 predep_objects_CXX= 15872 postdep_objects_CXX= 15873 postdeps_CXX= 15874 ;; 15875 15876linux*) 15877 case `$CC -V 2>&1 | sed 5q` in 15878 *Sun\ C*) 15879 # Sun C++ 5.9 15880 15881 # The more standards-conforming stlport4 library is 15882 # incompatible with the Cstd library. Avoid specifying 15883 # it if it's in CXXFLAGS. Ignore libCrun as 15884 # -library=stlport4 depends on it. 15885 case " $CXX $CXXFLAGS " in 15886 *" -library=stlport4 "*) 15887 solaris_use_stlport4=yes 15888 ;; 15889 esac 15890 15891 if test "$solaris_use_stlport4" != yes; then 15892 postdeps_CXX='-library=Cstd -library=Crun' 15893 fi 15894 ;; 15895 esac 15896 ;; 15897 15898solaris*) 15899 case $cc_basename in 15900 CC* | sunCC*) 15901 # The more standards-conforming stlport4 library is 15902 # incompatible with the Cstd library. Avoid specifying 15903 # it if it's in CXXFLAGS. Ignore libCrun as 15904 # -library=stlport4 depends on it. 15905 case " $CXX $CXXFLAGS " in 15906 *" -library=stlport4 "*) 15907 solaris_use_stlport4=yes 15908 ;; 15909 esac 15910 15911 # Adding this requires a known-good setup of shared libraries for 15912 # Sun compiler versions before 5.6, else PIC objects from an old 15913 # archive will be linked into the output, leading to subtle bugs. 15914 if test "$solaris_use_stlport4" != yes; then 15915 postdeps_CXX='-library=Cstd -library=Crun' 15916 fi 15917 ;; 15918 esac 15919 ;; 15920esac 15921 15922 15923case " $postdeps_CXX " in 15924*" -lc "*) archive_cmds_need_lc_CXX=no ;; 15925esac 15926 compiler_lib_search_dirs_CXX= 15927if test -n "${compiler_lib_search_path_CXX}"; then 15928 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 15929fi 15930 15931 15932 15933 15934 15935 15936 15937 15938 15939 15940 15941 15942 15943 15944 15945 15946 15947 15948 15949 15950 15951 15952 15953 15954 15955 15956 15957 15958 15959 15960 15961 lt_prog_compiler_wl_CXX= 15962lt_prog_compiler_pic_CXX= 15963lt_prog_compiler_static_CXX= 15964 15965 15966 # C++ specific cases for pic, static, wl, etc. 15967 if test "$GXX" = yes; then 15968 lt_prog_compiler_wl_CXX='-Wl,' 15969 lt_prog_compiler_static_CXX='-static' 15970 15971 case $host_os in 15972 aix*) 15973 # All AIX code is PIC. 15974 if test "$host_cpu" = ia64; then 15975 # AIX 5 now supports IA64 processor 15976 lt_prog_compiler_static_CXX='-Bstatic' 15977 fi 15978 ;; 15979 15980 amigaos*) 15981 case $host_cpu in 15982 powerpc) 15983 # see comment about AmigaOS4 .so support 15984 lt_prog_compiler_pic_CXX='-fPIC' 15985 ;; 15986 m68k) 15987 # FIXME: we need at least 68020 code to build shared libraries, but 15988 # adding the `-m68020' flag to GCC prevents building anything better, 15989 # like `-m68040'. 15990 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 15991 ;; 15992 esac 15993 ;; 15994 15995 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15996 # PIC is the default for these OSes. 15997 ;; 15998 mingw* | cygwin* | os2* | pw32* | cegcc*) 15999 # This hack is so that the source file can tell whether it is being 16000 # built for inclusion in a dll (and should export symbols for example). 16001 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16002 # (--disable-auto-import) libraries 16003 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 16004 ;; 16005 darwin* | rhapsody*) 16006 # PIC is the default on this platform 16007 # Common symbols not allowed in MH_DYLIB files 16008 lt_prog_compiler_pic_CXX='-fno-common' 16009 ;; 16010 *djgpp*) 16011 # DJGPP does not support shared libraries at all 16012 lt_prog_compiler_pic_CXX= 16013 ;; 16014 haiku*) 16015 # PIC is the default for Haiku. 16016 # The "-static" flag exists, but is broken. 16017 lt_prog_compiler_static_CXX= 16018 ;; 16019 interix[3-9]*) 16020 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16021 # Instead, we relocate shared libraries at runtime. 16022 ;; 16023 sysv4*MP*) 16024 if test -d /usr/nec; then 16025 lt_prog_compiler_pic_CXX=-Kconform_pic 16026 fi 16027 ;; 16028 hpux*) 16029 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 16030 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 16031 # sets the default TLS model and affects inlining. 16032 case $host_cpu in 16033 hppa*64*) 16034 ;; 16035 *) 16036 lt_prog_compiler_pic_CXX='-fPIC' 16037 ;; 16038 esac 16039 ;; 16040 *qnx* | *nto*) 16041 # QNX uses GNU C++, but need to define -shared option too, otherwise 16042 # it will coredump. 16043 lt_prog_compiler_pic_CXX='-fPIC -shared' 16044 ;; 16045 *) 16046 lt_prog_compiler_pic_CXX='-fPIC' 16047 ;; 16048 esac 16049 else 16050 case $host_os in 16051 aix[4-9]*) 16052 # All AIX code is PIC. 16053 if test "$host_cpu" = ia64; then 16054 # AIX 5 now supports IA64 processor 16055 lt_prog_compiler_static_CXX='-Bstatic' 16056 else 16057 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 16058 fi 16059 ;; 16060 chorus*) 16061 case $cc_basename in 16062 cxch68*) 16063 # Green Hills C++ Compiler 16064 # _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" 16065 ;; 16066 esac 16067 ;; 16068 mingw* | cygwin* | os2* | pw32* | cegcc*) 16069 # This hack is so that the source file can tell whether it is being 16070 # built for inclusion in a dll (and should export symbols for example). 16071 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 16072 ;; 16073 dgux*) 16074 case $cc_basename in 16075 ec++*) 16076 lt_prog_compiler_pic_CXX='-KPIC' 16077 ;; 16078 ghcx*) 16079 # Green Hills C++ Compiler 16080 lt_prog_compiler_pic_CXX='-pic' 16081 ;; 16082 *) 16083 ;; 16084 esac 16085 ;; 16086 freebsd* | dragonfly*) 16087 # FreeBSD uses GNU C++ 16088 ;; 16089 hpux9* | hpux10* | hpux11*) 16090 case $cc_basename in 16091 CC*) 16092 lt_prog_compiler_wl_CXX='-Wl,' 16093 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 16094 if test "$host_cpu" != ia64; then 16095 lt_prog_compiler_pic_CXX='+Z' 16096 fi 16097 ;; 16098 aCC*) 16099 lt_prog_compiler_wl_CXX='-Wl,' 16100 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 16101 case $host_cpu in 16102 hppa*64*|ia64*) 16103 # +Z the default 16104 ;; 16105 *) 16106 lt_prog_compiler_pic_CXX='+Z' 16107 ;; 16108 esac 16109 ;; 16110 *) 16111 ;; 16112 esac 16113 ;; 16114 interix*) 16115 # This is c89, which is MS Visual C++ (no shared libs) 16116 # Anyone wants to do a port? 16117 ;; 16118 irix5* | irix6* | nonstopux*) 16119 case $cc_basename in 16120 CC*) 16121 lt_prog_compiler_wl_CXX='-Wl,' 16122 lt_prog_compiler_static_CXX='-non_shared' 16123 # CC pic flag -KPIC is the default. 16124 ;; 16125 *) 16126 ;; 16127 esac 16128 ;; 16129 linux* | k*bsd*-gnu | kopensolaris*-gnu) 16130 case $cc_basename in 16131 KCC*) 16132 # KAI C++ Compiler 16133 lt_prog_compiler_wl_CXX='--backend -Wl,' 16134 lt_prog_compiler_pic_CXX='-fPIC' 16135 ;; 16136 ecpc* ) 16137 # old Intel C++ for x86_64 which still supported -KPIC. 16138 lt_prog_compiler_wl_CXX='-Wl,' 16139 lt_prog_compiler_pic_CXX='-KPIC' 16140 lt_prog_compiler_static_CXX='-static' 16141 ;; 16142 icpc* ) 16143 # Intel C++, used to be incompatible with GCC. 16144 # ICC 10 doesn't accept -KPIC any more. 16145 lt_prog_compiler_wl_CXX='-Wl,' 16146 lt_prog_compiler_pic_CXX='-fPIC' 16147 lt_prog_compiler_static_CXX='-static' 16148 ;; 16149 pgCC* | pgcpp*) 16150 # Portland Group C++ compiler 16151 lt_prog_compiler_wl_CXX='-Wl,' 16152 lt_prog_compiler_pic_CXX='-fpic' 16153 lt_prog_compiler_static_CXX='-Bstatic' 16154 ;; 16155 cxx*) 16156 # Compaq C++ 16157 # Make sure the PIC flag is empty. It appears that all Alpha 16158 # Linux and Compaq Tru64 Unix objects are PIC. 16159 lt_prog_compiler_pic_CXX= 16160 lt_prog_compiler_static_CXX='-non_shared' 16161 ;; 16162 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 16163 # IBM XL 8.0, 9.0 on PPC and BlueGene 16164 lt_prog_compiler_wl_CXX='-Wl,' 16165 lt_prog_compiler_pic_CXX='-qpic' 16166 lt_prog_compiler_static_CXX='-qstaticlink' 16167 ;; 16168 *) 16169 case `$CC -V 2>&1 | sed 5q` in 16170 *Sun\ C*) 16171 # Sun C++ 5.9 16172 lt_prog_compiler_pic_CXX='-KPIC' 16173 lt_prog_compiler_static_CXX='-Bstatic' 16174 lt_prog_compiler_wl_CXX='-Qoption ld ' 16175 ;; 16176 esac 16177 ;; 16178 esac 16179 ;; 16180 lynxos*) 16181 ;; 16182 m88k*) 16183 ;; 16184 mvs*) 16185 case $cc_basename in 16186 cxx*) 16187 lt_prog_compiler_pic_CXX='-W c,exportall' 16188 ;; 16189 *) 16190 ;; 16191 esac 16192 ;; 16193 netbsd*) 16194 ;; 16195 *qnx* | *nto*) 16196 # QNX uses GNU C++, but need to define -shared option too, otherwise 16197 # it will coredump. 16198 lt_prog_compiler_pic_CXX='-fPIC -shared' 16199 ;; 16200 osf3* | osf4* | osf5*) 16201 case $cc_basename in 16202 KCC*) 16203 lt_prog_compiler_wl_CXX='--backend -Wl,' 16204 ;; 16205 RCC*) 16206 # Rational C++ 2.4.1 16207 lt_prog_compiler_pic_CXX='-pic' 16208 ;; 16209 cxx*) 16210 # Digital/Compaq C++ 16211 lt_prog_compiler_wl_CXX='-Wl,' 16212 # Make sure the PIC flag is empty. It appears that all Alpha 16213 # Linux and Compaq Tru64 Unix objects are PIC. 16214 lt_prog_compiler_pic_CXX= 16215 lt_prog_compiler_static_CXX='-non_shared' 16216 ;; 16217 *) 16218 ;; 16219 esac 16220 ;; 16221 psos*) 16222 ;; 16223 solaris*) 16224 case $cc_basename in 16225 CC* | sunCC*) 16226 # Sun C++ 4.2, 5.x and Centerline C++ 16227 lt_prog_compiler_pic_CXX='-KPIC' 16228 lt_prog_compiler_static_CXX='-Bstatic' 16229 lt_prog_compiler_wl_CXX='-Qoption ld ' 16230 ;; 16231 gcx*) 16232 # Green Hills C++ Compiler 16233 lt_prog_compiler_pic_CXX='-PIC' 16234 ;; 16235 *) 16236 ;; 16237 esac 16238 ;; 16239 sunos4*) 16240 case $cc_basename in 16241 CC*) 16242 # Sun C++ 4.x 16243 lt_prog_compiler_pic_CXX='-pic' 16244 lt_prog_compiler_static_CXX='-Bstatic' 16245 ;; 16246 lcc*) 16247 # Lucid 16248 lt_prog_compiler_pic_CXX='-pic' 16249 ;; 16250 *) 16251 ;; 16252 esac 16253 ;; 16254 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16255 case $cc_basename in 16256 CC*) 16257 lt_prog_compiler_wl_CXX='-Wl,' 16258 lt_prog_compiler_pic_CXX='-KPIC' 16259 lt_prog_compiler_static_CXX='-Bstatic' 16260 ;; 16261 esac 16262 ;; 16263 tandem*) 16264 case $cc_basename in 16265 NCC*) 16266 # NonStop-UX NCC 3.20 16267 lt_prog_compiler_pic_CXX='-KPIC' 16268 ;; 16269 *) 16270 ;; 16271 esac 16272 ;; 16273 vxworks*) 16274 ;; 16275 *) 16276 lt_prog_compiler_can_build_shared_CXX=no 16277 ;; 16278 esac 16279 fi 16280 16281case $host_os in 16282 # For platforms which do not support PIC, -DPIC is meaningless: 16283 *djgpp*) 16284 lt_prog_compiler_pic_CXX= 16285 ;; 16286 *) 16287 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 16288 ;; 16289esac 16290 16291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 16292$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 16293if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 16294 $as_echo_n "(cached) " >&6 16295else 16296 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 16297fi 16298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 16299$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 16300lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 16301 16302# 16303# Check to make sure the PIC flag actually works. 16304# 16305if test -n "$lt_prog_compiler_pic_CXX"; then 16306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 16307$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 16308if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 16309 $as_echo_n "(cached) " >&6 16310else 16311 lt_cv_prog_compiler_pic_works_CXX=no 16312 ac_outfile=conftest.$ac_objext 16313 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16314 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 16315 # Insert the option either (1) after the last *FLAGS variable, or 16316 # (2) before a word containing "conftest.", or (3) at the end. 16317 # Note that $ac_compile itself does not contain backslashes and begins 16318 # with a dollar sign (not a hyphen), so the echo should work correctly. 16319 # The option is referenced via a variable to avoid confusing sed. 16320 lt_compile=`echo "$ac_compile" | $SED \ 16321 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16322 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16323 -e 's:$: $lt_compiler_flag:'` 16324 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16325 (eval "$lt_compile" 2>conftest.err) 16326 ac_status=$? 16327 cat conftest.err >&5 16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16329 if (exit $ac_status) && test -s "$ac_outfile"; then 16330 # The compiler can only warn and ignore the option if not recognized 16331 # So say no if there are warnings other than the usual output. 16332 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 16333 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16334 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16335 lt_cv_prog_compiler_pic_works_CXX=yes 16336 fi 16337 fi 16338 $RM conftest* 16339 16340fi 16341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 16342$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 16343 16344if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 16345 case $lt_prog_compiler_pic_CXX in 16346 "" | " "*) ;; 16347 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 16348 esac 16349else 16350 lt_prog_compiler_pic_CXX= 16351 lt_prog_compiler_can_build_shared_CXX=no 16352fi 16353 16354fi 16355 16356 16357 16358 16359 16360# 16361# Check to make sure the static flag actually works. 16362# 16363wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 16364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16365$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 16366if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 16367 $as_echo_n "(cached) " >&6 16368else 16369 lt_cv_prog_compiler_static_works_CXX=no 16370 save_LDFLAGS="$LDFLAGS" 16371 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16372 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16373 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16374 # The linker can only warn and ignore the option if not recognized 16375 # So say no if there are warnings 16376 if test -s conftest.err; then 16377 # Append any errors to the config.log. 16378 cat conftest.err 1>&5 16379 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16380 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16381 if diff conftest.exp conftest.er2 >/dev/null; then 16382 lt_cv_prog_compiler_static_works_CXX=yes 16383 fi 16384 else 16385 lt_cv_prog_compiler_static_works_CXX=yes 16386 fi 16387 fi 16388 $RM -r conftest* 16389 LDFLAGS="$save_LDFLAGS" 16390 16391fi 16392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 16393$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 16394 16395if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 16396 : 16397else 16398 lt_prog_compiler_static_CXX= 16399fi 16400 16401 16402 16403 16404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16405$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16406if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 16407 $as_echo_n "(cached) " >&6 16408else 16409 lt_cv_prog_compiler_c_o_CXX=no 16410 $RM -r conftest 2>/dev/null 16411 mkdir conftest 16412 cd conftest 16413 mkdir out 16414 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16415 16416 lt_compiler_flag="-o out/conftest2.$ac_objext" 16417 # Insert the option either (1) after the last *FLAGS variable, or 16418 # (2) before a word containing "conftest.", or (3) at the end. 16419 # Note that $ac_compile itself does not contain backslashes and begins 16420 # with a dollar sign (not a hyphen), so the echo should work correctly. 16421 lt_compile=`echo "$ac_compile" | $SED \ 16422 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16423 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16424 -e 's:$: $lt_compiler_flag:'` 16425 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16426 (eval "$lt_compile" 2>out/conftest.err) 16427 ac_status=$? 16428 cat out/conftest.err >&5 16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16430 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16431 then 16432 # The compiler can only warn and ignore the option if not recognized 16433 # So say no if there are warnings 16434 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16435 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16436 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16437 lt_cv_prog_compiler_c_o_CXX=yes 16438 fi 16439 fi 16440 chmod u+w . 2>&5 16441 $RM conftest* 16442 # SGI C++ compiler will create directory out/ii_files/ for 16443 # template instantiation 16444 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16445 $RM out/* && rmdir out 16446 cd .. 16447 $RM -r conftest 16448 $RM conftest* 16449 16450fi 16451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 16452$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 16453 16454 16455 16456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16457$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16458if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 16459 $as_echo_n "(cached) " >&6 16460else 16461 lt_cv_prog_compiler_c_o_CXX=no 16462 $RM -r conftest 2>/dev/null 16463 mkdir conftest 16464 cd conftest 16465 mkdir out 16466 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16467 16468 lt_compiler_flag="-o out/conftest2.$ac_objext" 16469 # Insert the option either (1) after the last *FLAGS variable, or 16470 # (2) before a word containing "conftest.", or (3) at the end. 16471 # Note that $ac_compile itself does not contain backslashes and begins 16472 # with a dollar sign (not a hyphen), so the echo should work correctly. 16473 lt_compile=`echo "$ac_compile" | $SED \ 16474 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16475 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16476 -e 's:$: $lt_compiler_flag:'` 16477 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16478 (eval "$lt_compile" 2>out/conftest.err) 16479 ac_status=$? 16480 cat out/conftest.err >&5 16481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16482 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16483 then 16484 # The compiler can only warn and ignore the option if not recognized 16485 # So say no if there are warnings 16486 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16487 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16488 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16489 lt_cv_prog_compiler_c_o_CXX=yes 16490 fi 16491 fi 16492 chmod u+w . 2>&5 16493 $RM conftest* 16494 # SGI C++ compiler will create directory out/ii_files/ for 16495 # template instantiation 16496 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16497 $RM out/* && rmdir out 16498 cd .. 16499 $RM -r conftest 16500 $RM conftest* 16501 16502fi 16503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 16504$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 16505 16506 16507 16508 16509hard_links="nottested" 16510if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 16511 # do not overwrite the value of need_locks provided by the user 16512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16513$as_echo_n "checking if we can lock with hard links... " >&6; } 16514 hard_links=yes 16515 $RM conftest* 16516 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16517 touch conftest.a 16518 ln conftest.a conftest.b 2>&5 || hard_links=no 16519 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16521$as_echo "$hard_links" >&6; } 16522 if test "$hard_links" = no; then 16523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16524$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16525 need_locks=warn 16526 fi 16527else 16528 need_locks=no 16529fi 16530 16531 16532 16533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16534$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16535 16536 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16537 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16538 case $host_os in 16539 aix[4-9]*) 16540 # If we're using GNU nm, then we don't want the "-C" option. 16541 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16542 # Also, AIX nm treats weak defined symbols like other global defined 16543 # symbols, whereas GNU nm marks them as "W". 16544 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16545 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 16546 else 16547 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 16548 fi 16549 ;; 16550 pw32*) 16551 export_symbols_cmds_CXX="$ltdll_cmds" 16552 ;; 16553 cygwin* | mingw* | cegcc*) 16554 case $cc_basename in 16555 cl*) 16556 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16557 ;; 16558 *) 16559 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' 16560 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16561 ;; 16562 esac 16563 ;; 16564 *) 16565 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16566 ;; 16567 esac 16568 16569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 16570$as_echo "$ld_shlibs_CXX" >&6; } 16571test "$ld_shlibs_CXX" = no && can_build_shared=no 16572 16573with_gnu_ld_CXX=$with_gnu_ld 16574 16575 16576 16577 16578 16579 16580# 16581# Do we need to explicitly link libc? 16582# 16583case "x$archive_cmds_need_lc_CXX" in 16584x|xyes) 16585 # Assume -lc should be added 16586 archive_cmds_need_lc_CXX=yes 16587 16588 if test "$enable_shared" = yes && test "$GCC" = yes; then 16589 case $archive_cmds_CXX in 16590 *'~'*) 16591 # FIXME: we may have to deal with multi-command sequences. 16592 ;; 16593 '$CC '*) 16594 # Test whether the compiler implicitly links with -lc since on some 16595 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16596 # to ld, don't add -lc before -lgcc. 16597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16598$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16599if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 16600 $as_echo_n "(cached) " >&6 16601else 16602 $RM conftest* 16603 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16604 16605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16606 (eval $ac_compile) 2>&5 16607 ac_status=$? 16608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16609 test $ac_status = 0; } 2>conftest.err; then 16610 soname=conftest 16611 lib=conftest 16612 libobjs=conftest.$ac_objext 16613 deplibs= 16614 wl=$lt_prog_compiler_wl_CXX 16615 pic_flag=$lt_prog_compiler_pic_CXX 16616 compiler_flags=-v 16617 linker_flags=-v 16618 verstring= 16619 output_objdir=. 16620 libname=conftest 16621 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 16622 allow_undefined_flag_CXX= 16623 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16624 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16625 ac_status=$? 16626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16627 test $ac_status = 0; } 16628 then 16629 lt_cv_archive_cmds_need_lc_CXX=no 16630 else 16631 lt_cv_archive_cmds_need_lc_CXX=yes 16632 fi 16633 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 16634 else 16635 cat conftest.err 1>&5 16636 fi 16637 $RM conftest* 16638 16639fi 16640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 16641$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 16642 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 16643 ;; 16644 esac 16645 fi 16646 ;; 16647esac 16648 16649 16650 16651 16652 16653 16654 16655 16656 16657 16658 16659 16660 16661 16662 16663 16664 16665 16666 16667 16668 16669 16670 16671 16672 16673 16674 16675 16676 16677 16678 16679 16680 16681 16682 16683 16684 16685 16686 16687 16688 16689 16690 16691 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703 16704 16705 16706 16707 16708 16709 16710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16711$as_echo_n "checking dynamic linker characteristics... " >&6; } 16712 16713library_names_spec= 16714libname_spec='lib$name' 16715soname_spec= 16716shrext_cmds=".so" 16717postinstall_cmds= 16718postuninstall_cmds= 16719finish_cmds= 16720finish_eval= 16721shlibpath_var= 16722shlibpath_overrides_runpath=unknown 16723version_type=none 16724dynamic_linker="$host_os ld.so" 16725sys_lib_dlsearch_path_spec="/lib /usr/lib" 16726need_lib_prefix=unknown 16727hardcode_into_libs=no 16728 16729# when you set need_version to no, make sure it does not cause -set_version 16730# flags to be left without arguments 16731need_version=unknown 16732 16733case $host_os in 16734aix3*) 16735 version_type=linux # correct to gnu/linux during the next big refactor 16736 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16737 shlibpath_var=LIBPATH 16738 16739 # AIX 3 has no versioning support, so we append a major version to the name. 16740 soname_spec='${libname}${release}${shared_ext}$major' 16741 ;; 16742 16743aix[4-9]*) 16744 version_type=linux # correct to gnu/linux during the next big refactor 16745 need_lib_prefix=no 16746 need_version=no 16747 hardcode_into_libs=yes 16748 if test "$host_cpu" = ia64; then 16749 # AIX 5 supports IA64 16750 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16751 shlibpath_var=LD_LIBRARY_PATH 16752 else 16753 # With GCC up to 2.95.x, collect2 would create an import file 16754 # for dependence libraries. The import file would start with 16755 # the line `#! .'. This would cause the generated library to 16756 # depend on `.', always an invalid library. This was fixed in 16757 # development snapshots of GCC prior to 3.0. 16758 case $host_os in 16759 aix4 | aix4.[01] | aix4.[01].*) 16760 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16761 echo ' yes ' 16762 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 16763 : 16764 else 16765 can_build_shared=no 16766 fi 16767 ;; 16768 esac 16769 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16770 # soname into executable. Probably we can add versioning support to 16771 # collect2, so additional links can be useful in future. 16772 if test "$aix_use_runtimelinking" = yes; then 16773 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16774 # instead of lib<name>.a to let people know that these are not 16775 # typical AIX shared libraries. 16776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16777 else 16778 # We preserve .a as extension for shared libraries through AIX4.2 16779 # and later when we are not doing run time linking. 16780 library_names_spec='${libname}${release}.a $libname.a' 16781 soname_spec='${libname}${release}${shared_ext}$major' 16782 fi 16783 shlibpath_var=LIBPATH 16784 fi 16785 ;; 16786 16787amigaos*) 16788 case $host_cpu in 16789 powerpc) 16790 # Since July 2007 AmigaOS4 officially supports .so libraries. 16791 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16793 ;; 16794 m68k) 16795 library_names_spec='$libname.ixlibrary $libname.a' 16796 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16797 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' 16798 ;; 16799 esac 16800 ;; 16801 16802beos*) 16803 library_names_spec='${libname}${shared_ext}' 16804 dynamic_linker="$host_os ld.so" 16805 shlibpath_var=LIBRARY_PATH 16806 ;; 16807 16808bsdi[45]*) 16809 version_type=linux # correct to gnu/linux during the next big refactor 16810 need_version=no 16811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16812 soname_spec='${libname}${release}${shared_ext}$major' 16813 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16814 shlibpath_var=LD_LIBRARY_PATH 16815 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16816 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16817 # the default ld.so.conf also contains /usr/contrib/lib and 16818 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16819 # libtool to hard-code these into programs 16820 ;; 16821 16822cygwin* | mingw* | pw32* | cegcc*) 16823 version_type=windows 16824 shrext_cmds=".dll" 16825 need_version=no 16826 need_lib_prefix=no 16827 16828 case $GCC,$cc_basename in 16829 yes,*) 16830 # gcc 16831 library_names_spec='$libname.dll.a' 16832 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16833 postinstall_cmds='base_file=`basename \${file}`~ 16834 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 16835 dldir=$destdir/`dirname \$dlpath`~ 16836 test -d \$dldir || mkdir -p \$dldir~ 16837 $install_prog $dir/$dlname \$dldir/$dlname~ 16838 chmod a+x \$dldir/$dlname~ 16839 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16840 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16841 fi' 16842 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16843 dlpath=$dir/\$dldll~ 16844 $RM \$dlpath' 16845 shlibpath_overrides_runpath=yes 16846 16847 case $host_os in 16848 cygwin*) 16849 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16850 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16851 16852 ;; 16853 mingw* | cegcc*) 16854 # MinGW DLLs use traditional 'lib' prefix 16855 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16856 ;; 16857 pw32*) 16858 # pw32 DLLs use 'pw' prefix rather than 'lib' 16859 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16860 ;; 16861 esac 16862 dynamic_linker='Win32 ld.exe' 16863 ;; 16864 16865 *,cl*) 16866 # Native MSVC 16867 libname_spec='$name' 16868 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16869 library_names_spec='${libname}.dll.lib' 16870 16871 case $build_os in 16872 mingw*) 16873 sys_lib_search_path_spec= 16874 lt_save_ifs=$IFS 16875 IFS=';' 16876 for lt_path in $LIB 16877 do 16878 IFS=$lt_save_ifs 16879 # Let DOS variable expansion print the short 8.3 style file name. 16880 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16881 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16882 done 16883 IFS=$lt_save_ifs 16884 # Convert to MSYS style. 16885 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16886 ;; 16887 cygwin*) 16888 # Convert to unix form, then to dos form, then back to unix form 16889 # but this time dos style (no spaces!) so that the unix form looks 16890 # like /cygdrive/c/PROGRA~1:/cygdr... 16891 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16892 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16893 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16894 ;; 16895 *) 16896 sys_lib_search_path_spec="$LIB" 16897 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16898 # It is most probably a Windows format PATH. 16899 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16900 else 16901 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16902 fi 16903 # FIXME: find the short name or the path components, as spaces are 16904 # common. (e.g. "Program Files" -> "PROGRA~1") 16905 ;; 16906 esac 16907 16908 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16909 postinstall_cmds='base_file=`basename \${file}`~ 16910 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 16911 dldir=$destdir/`dirname \$dlpath`~ 16912 test -d \$dldir || mkdir -p \$dldir~ 16913 $install_prog $dir/$dlname \$dldir/$dlname' 16914 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16915 dlpath=$dir/\$dldll~ 16916 $RM \$dlpath' 16917 shlibpath_overrides_runpath=yes 16918 dynamic_linker='Win32 link.exe' 16919 ;; 16920 16921 *) 16922 # Assume MSVC wrapper 16923 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16924 dynamic_linker='Win32 ld.exe' 16925 ;; 16926 esac 16927 # FIXME: first we should search . and the directory the executable is in 16928 shlibpath_var=PATH 16929 ;; 16930 16931darwin* | rhapsody*) 16932 dynamic_linker="$host_os dyld" 16933 version_type=darwin 16934 need_lib_prefix=no 16935 need_version=no 16936 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16937 soname_spec='${libname}${release}${major}$shared_ext' 16938 shlibpath_overrides_runpath=yes 16939 shlibpath_var=DYLD_LIBRARY_PATH 16940 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16941 16942 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16943 ;; 16944 16945dgux*) 16946 version_type=linux # correct to gnu/linux during the next big refactor 16947 need_lib_prefix=no 16948 need_version=no 16949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16950 soname_spec='${libname}${release}${shared_ext}$major' 16951 shlibpath_var=LD_LIBRARY_PATH 16952 ;; 16953 16954freebsd* | dragonfly*) 16955 # DragonFly does not have aout. When/if they implement a new 16956 # versioning mechanism, adjust this. 16957 if test -x /usr/bin/objformat; then 16958 objformat=`/usr/bin/objformat` 16959 else 16960 case $host_os in 16961 freebsd[23].*) objformat=aout ;; 16962 *) objformat=elf ;; 16963 esac 16964 fi 16965 version_type=freebsd-$objformat 16966 case $version_type in 16967 freebsd-elf*) 16968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16969 need_version=no 16970 need_lib_prefix=no 16971 ;; 16972 freebsd-*) 16973 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16974 need_version=yes 16975 ;; 16976 esac 16977 shlibpath_var=LD_LIBRARY_PATH 16978 case $host_os in 16979 freebsd2.*) 16980 shlibpath_overrides_runpath=yes 16981 ;; 16982 freebsd3.[01]* | freebsdelf3.[01]*) 16983 shlibpath_overrides_runpath=yes 16984 hardcode_into_libs=yes 16985 ;; 16986 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16987 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16988 shlibpath_overrides_runpath=no 16989 hardcode_into_libs=yes 16990 ;; 16991 *) # from 4.6 on, and DragonFly 16992 shlibpath_overrides_runpath=yes 16993 hardcode_into_libs=yes 16994 ;; 16995 esac 16996 ;; 16997 16998gnu*) 16999 version_type=linux # correct to gnu/linux during the next big refactor 17000 need_lib_prefix=no 17001 need_version=no 17002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17003 soname_spec='${libname}${release}${shared_ext}$major' 17004 shlibpath_var=LD_LIBRARY_PATH 17005 shlibpath_overrides_runpath=no 17006 hardcode_into_libs=yes 17007 ;; 17008 17009haiku*) 17010 version_type=linux # correct to gnu/linux during the next big refactor 17011 need_lib_prefix=no 17012 need_version=no 17013 dynamic_linker="$host_os runtime_loader" 17014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17015 soname_spec='${libname}${release}${shared_ext}$major' 17016 shlibpath_var=LIBRARY_PATH 17017 shlibpath_overrides_runpath=yes 17018 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 17019 hardcode_into_libs=yes 17020 ;; 17021 17022hpux9* | hpux10* | hpux11*) 17023 # Give a soname corresponding to the major version so that dld.sl refuses to 17024 # link against other versions. 17025 version_type=sunos 17026 need_lib_prefix=no 17027 need_version=no 17028 case $host_cpu in 17029 ia64*) 17030 shrext_cmds='.so' 17031 hardcode_into_libs=yes 17032 dynamic_linker="$host_os dld.so" 17033 shlibpath_var=LD_LIBRARY_PATH 17034 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17036 soname_spec='${libname}${release}${shared_ext}$major' 17037 if test "X$HPUX_IA64_MODE" = X32; then 17038 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17039 else 17040 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17041 fi 17042 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17043 ;; 17044 hppa*64*) 17045 shrext_cmds='.sl' 17046 hardcode_into_libs=yes 17047 dynamic_linker="$host_os dld.sl" 17048 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17049 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17051 soname_spec='${libname}${release}${shared_ext}$major' 17052 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17053 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17054 ;; 17055 *) 17056 shrext_cmds='.sl' 17057 dynamic_linker="$host_os dld.sl" 17058 shlibpath_var=SHLIB_PATH 17059 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17061 soname_spec='${libname}${release}${shared_ext}$major' 17062 ;; 17063 esac 17064 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 17065 postinstall_cmds='chmod 555 $lib' 17066 # or fails outright, so override atomically: 17067 install_override_mode=555 17068 ;; 17069 17070interix[3-9]*) 17071 version_type=linux # correct to gnu/linux during the next big refactor 17072 need_lib_prefix=no 17073 need_version=no 17074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17075 soname_spec='${libname}${release}${shared_ext}$major' 17076 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17077 shlibpath_var=LD_LIBRARY_PATH 17078 shlibpath_overrides_runpath=no 17079 hardcode_into_libs=yes 17080 ;; 17081 17082irix5* | irix6* | nonstopux*) 17083 case $host_os in 17084 nonstopux*) version_type=nonstopux ;; 17085 *) 17086 if test "$lt_cv_prog_gnu_ld" = yes; then 17087 version_type=linux # correct to gnu/linux during the next big refactor 17088 else 17089 version_type=irix 17090 fi ;; 17091 esac 17092 need_lib_prefix=no 17093 need_version=no 17094 soname_spec='${libname}${release}${shared_ext}$major' 17095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17096 case $host_os in 17097 irix5* | nonstopux*) 17098 libsuff= shlibsuff= 17099 ;; 17100 *) 17101 case $LD in # libtool.m4 will add one of these switches to LD 17102 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17103 libsuff= shlibsuff= libmagic=32-bit;; 17104 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17105 libsuff=32 shlibsuff=N32 libmagic=N32;; 17106 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17107 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17108 *) libsuff= shlibsuff= libmagic=never-match;; 17109 esac 17110 ;; 17111 esac 17112 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17113 shlibpath_overrides_runpath=no 17114 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17115 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17116 hardcode_into_libs=yes 17117 ;; 17118 17119# No shared lib support for Linux oldld, aout, or coff. 17120linux*oldld* | linux*aout* | linux*coff*) 17121 dynamic_linker=no 17122 ;; 17123 17124# This must be glibc/ELF. 17125linux* | k*bsd*-gnu | kopensolaris*-gnu) 17126 version_type=linux # correct to gnu/linux during the next big refactor 17127 need_lib_prefix=no 17128 need_version=no 17129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17130 soname_spec='${libname}${release}${shared_ext}$major' 17131 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17132 shlibpath_var=LD_LIBRARY_PATH 17133 shlibpath_overrides_runpath=no 17134 17135 # Some binutils ld are patched to set DT_RUNPATH 17136 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 17137 $as_echo_n "(cached) " >&6 17138else 17139 lt_cv_shlibpath_overrides_runpath=no 17140 save_LDFLAGS=$LDFLAGS 17141 save_libdir=$libdir 17142 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 17143 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 17144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17145/* end confdefs.h. */ 17146 17147int 17148main () 17149{ 17150 17151 ; 17152 return 0; 17153} 17154_ACEOF 17155if ac_fn_cxx_try_link "$LINENO"; then : 17156 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 17157 lt_cv_shlibpath_overrides_runpath=yes 17158fi 17159fi 17160rm -f core conftest.err conftest.$ac_objext \ 17161 conftest$ac_exeext conftest.$ac_ext 17162 LDFLAGS=$save_LDFLAGS 17163 libdir=$save_libdir 17164 17165fi 17166 17167 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 17168 17169 # This implies no fast_install, which is unacceptable. 17170 # Some rework will be needed to allow for fast_install 17171 # before this can be enabled. 17172 hardcode_into_libs=yes 17173 17174 # Append ld.so.conf contents to the search path 17175 if test -f /etc/ld.so.conf; then 17176 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' ' '` 17177 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17178 fi 17179 17180 # We used to test for /lib/ld.so.1 and disable shared libraries on 17181 # powerpc, because MkLinux only supported shared libraries with the 17182 # GNU dynamic linker. Since this was broken with cross compilers, 17183 # most powerpc-linux boxes support dynamic linking these days and 17184 # people can always --disable-shared, the test was removed, and we 17185 # assume the GNU/Linux dynamic linker is in use. 17186 dynamic_linker='GNU/Linux ld.so' 17187 ;; 17188 17189netbsd*) 17190 version_type=sunos 17191 need_lib_prefix=no 17192 need_version=no 17193 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17195 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17196 dynamic_linker='NetBSD (a.out) ld.so' 17197 else 17198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17199 soname_spec='${libname}${release}${shared_ext}$major' 17200 dynamic_linker='NetBSD ld.elf_so' 17201 fi 17202 shlibpath_var=LD_LIBRARY_PATH 17203 shlibpath_overrides_runpath=yes 17204 hardcode_into_libs=yes 17205 ;; 17206 17207newsos6) 17208 version_type=linux # correct to gnu/linux during the next big refactor 17209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17210 shlibpath_var=LD_LIBRARY_PATH 17211 shlibpath_overrides_runpath=yes 17212 ;; 17213 17214*nto* | *qnx*) 17215 version_type=qnx 17216 need_lib_prefix=no 17217 need_version=no 17218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17219 soname_spec='${libname}${release}${shared_ext}$major' 17220 shlibpath_var=LD_LIBRARY_PATH 17221 shlibpath_overrides_runpath=no 17222 hardcode_into_libs=yes 17223 dynamic_linker='ldqnx.so' 17224 ;; 17225 17226openbsd*) 17227 version_type=sunos 17228 sys_lib_dlsearch_path_spec="/usr/lib" 17229 need_lib_prefix=no 17230 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17231 case $host_os in 17232 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17233 *) need_version=no ;; 17234 esac 17235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17236 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17237 shlibpath_var=LD_LIBRARY_PATH 17238 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17239 case $host_os in 17240 openbsd2.[89] | openbsd2.[89].*) 17241 shlibpath_overrides_runpath=no 17242 ;; 17243 *) 17244 shlibpath_overrides_runpath=yes 17245 ;; 17246 esac 17247 else 17248 shlibpath_overrides_runpath=yes 17249 fi 17250 ;; 17251 17252os2*) 17253 libname_spec='$name' 17254 shrext_cmds=".dll" 17255 need_lib_prefix=no 17256 library_names_spec='$libname${shared_ext} $libname.a' 17257 dynamic_linker='OS/2 ld.exe' 17258 shlibpath_var=LIBPATH 17259 ;; 17260 17261osf3* | osf4* | osf5*) 17262 version_type=osf 17263 need_lib_prefix=no 17264 need_version=no 17265 soname_spec='${libname}${release}${shared_ext}$major' 17266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17267 shlibpath_var=LD_LIBRARY_PATH 17268 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17269 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17270 ;; 17271 17272rdos*) 17273 dynamic_linker=no 17274 ;; 17275 17276solaris*) 17277 version_type=linux # correct to gnu/linux during the next big refactor 17278 need_lib_prefix=no 17279 need_version=no 17280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17281 soname_spec='${libname}${release}${shared_ext}$major' 17282 shlibpath_var=LD_LIBRARY_PATH 17283 shlibpath_overrides_runpath=yes 17284 hardcode_into_libs=yes 17285 # ldd complains unless libraries are executable 17286 postinstall_cmds='chmod +x $lib' 17287 ;; 17288 17289sunos4*) 17290 version_type=sunos 17291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17292 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17293 shlibpath_var=LD_LIBRARY_PATH 17294 shlibpath_overrides_runpath=yes 17295 if test "$with_gnu_ld" = yes; then 17296 need_lib_prefix=no 17297 fi 17298 need_version=yes 17299 ;; 17300 17301sysv4 | sysv4.3*) 17302 version_type=linux # correct to gnu/linux during the next big refactor 17303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17304 soname_spec='${libname}${release}${shared_ext}$major' 17305 shlibpath_var=LD_LIBRARY_PATH 17306 case $host_vendor in 17307 sni) 17308 shlibpath_overrides_runpath=no 17309 need_lib_prefix=no 17310 runpath_var=LD_RUN_PATH 17311 ;; 17312 siemens) 17313 need_lib_prefix=no 17314 ;; 17315 motorola) 17316 need_lib_prefix=no 17317 need_version=no 17318 shlibpath_overrides_runpath=no 17319 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17320 ;; 17321 esac 17322 ;; 17323 17324sysv4*MP*) 17325 if test -d /usr/nec ;then 17326 version_type=linux # correct to gnu/linux during the next big refactor 17327 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17328 soname_spec='$libname${shared_ext}.$major' 17329 shlibpath_var=LD_LIBRARY_PATH 17330 fi 17331 ;; 17332 17333sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17334 version_type=freebsd-elf 17335 need_lib_prefix=no 17336 need_version=no 17337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17338 soname_spec='${libname}${release}${shared_ext}$major' 17339 shlibpath_var=LD_LIBRARY_PATH 17340 shlibpath_overrides_runpath=yes 17341 hardcode_into_libs=yes 17342 if test "$with_gnu_ld" = yes; then 17343 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17344 else 17345 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17346 case $host_os in 17347 sco3.2v5*) 17348 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17349 ;; 17350 esac 17351 fi 17352 sys_lib_dlsearch_path_spec='/usr/lib' 17353 ;; 17354 17355tpf*) 17356 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17357 version_type=linux # correct to gnu/linux during the next big refactor 17358 need_lib_prefix=no 17359 need_version=no 17360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17361 shlibpath_var=LD_LIBRARY_PATH 17362 shlibpath_overrides_runpath=no 17363 hardcode_into_libs=yes 17364 ;; 17365 17366uts4*) 17367 version_type=linux # correct to gnu/linux during the next big refactor 17368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17369 soname_spec='${libname}${release}${shared_ext}$major' 17370 shlibpath_var=LD_LIBRARY_PATH 17371 ;; 17372 17373*) 17374 dynamic_linker=no 17375 ;; 17376esac 17377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17378$as_echo "$dynamic_linker" >&6; } 17379test "$dynamic_linker" = no && can_build_shared=no 17380 17381variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17382if test "$GCC" = yes; then 17383 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17384fi 17385 17386if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 17387 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 17388fi 17389if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 17390 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 17391fi 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17431$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17432hardcode_action_CXX= 17433if test -n "$hardcode_libdir_flag_spec_CXX" || 17434 test -n "$runpath_var_CXX" || 17435 test "X$hardcode_automatic_CXX" = "Xyes" ; then 17436 17437 # We can hardcode non-existent directories. 17438 if test "$hardcode_direct_CXX" != no && 17439 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17440 # have to relink, otherwise we might link with an installed library 17441 # when we should be linking with a yet-to-be-installed one 17442 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 17443 test "$hardcode_minus_L_CXX" != no; then 17444 # Linking always hardcodes the temporary library directory. 17445 hardcode_action_CXX=relink 17446 else 17447 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17448 hardcode_action_CXX=immediate 17449 fi 17450else 17451 # We cannot hardcode anything, or else we can only hardcode existing 17452 # directories. 17453 hardcode_action_CXX=unsupported 17454fi 17455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 17456$as_echo "$hardcode_action_CXX" >&6; } 17457 17458if test "$hardcode_action_CXX" = relink || 17459 test "$inherit_rpath_CXX" = yes; then 17460 # Fast installation is not supported 17461 enable_fast_install=no 17462elif test "$shlibpath_overrides_runpath" = yes || 17463 test "$enable_shared" = no; then 17464 # Fast installation is not necessary 17465 enable_fast_install=needless 17466fi 17467 17468 17469 17470 17471 17472 17473 17474 fi # test -n "$compiler" 17475 17476 CC=$lt_save_CC 17477 CFLAGS=$lt_save_CFLAGS 17478 LDCXX=$LD 17479 LD=$lt_save_LD 17480 GCC=$lt_save_GCC 17481 with_gnu_ld=$lt_save_with_gnu_ld 17482 lt_cv_path_LDCXX=$lt_cv_path_LD 17483 lt_cv_path_LD=$lt_save_path_LD 17484 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 17485 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 17486fi # test "$_lt_caught_CXX_error" != yes 17487 17488ac_ext=c 17489ac_cpp='$CPP $CPPFLAGS' 17490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17492ac_compiler_gnu=$ac_cv_c_compiler_gnu 17493 17494 17495 17496 17497 17498 17499 17500 17501 17502 17503 17504 17505 17506 17507 17508 ac_config_commands="$ac_config_commands libtool" 17509 17510 17511 17512 17513# Only expand once: 17514 17515 17516# Check whether --enable-experimental-libtool was given. 17517if test "${enable_experimental_libtool+set}" = set; then : 17518 enableval=$enable_experimental_libtool; experimental_libtool=$enableval 17519else 17520 experimental_libtool=no 17521fi 17522 17523 17524if test "$experimental_libtool" = "yes"; then 17525 echo "using APR's libtool" 17526 sh_libtool="`$apr_config --apr-libtool`" 17527 LIBTOOL="$sh_libtool" 17528 SVN_LIBTOOL="$sh_libtool" 17529else 17530 sh_libtool="$abs_builddir/libtool" 17531 SVN_LIBTOOL="\$(SHELL) $sh_libtool" 17532fi 17533 17534 17535lt_pversion=`$LIBTOOL --version 2>/dev/null|$SED -e 's/([^)]*)//g;s/^[^0-9]*//;s/[- ].*//g;q'` 17536lt_version=`echo $lt_pversion|$SED -e 's/\([a-z]*\)$/.\1/'` 17537lt_major_version=`echo $lt_version | cut -d'.' -f 1` 17538 17539svn_enable_static=yes 17540svn_enable_shared=yes 17541 17542# Check whether --enable-static was given. 17543if test "${enable_static+set}" = set; then : 17544 enableval=$enable_static; svn_enable_static="$enableval" 17545else 17546 svn_enable_static="yes" 17547fi 17548 17549 17550# Check whether --enable-shared was given. 17551if test "${enable_shared+set}" = set; then : 17552 enableval=$enable_shared; svn_enable_shared="$enableval" 17553else 17554 svn_enable_shared="yes" 17555fi 17556 17557 17558if test "$svn_enable_static" = "yes" && test "$svn_enable_shared" = "yes" ; then 17559 { $as_echo "$as_me:${as_lineno-$LINENO}: building both shared and static libraries" >&5 17560$as_echo "$as_me: building both shared and static libraries" >&6;} 17561elif test "$svn_enable_static" = "yes" ; then 17562 { $as_echo "$as_me:${as_lineno-$LINENO}: building static libraries only" >&5 17563$as_echo "$as_me: building static libraries only" >&6;} 17564 LT_CFLAGS="-static $LT_CFLAGS" 17565 LT_LDFLAGS="-static $LT_LDFLAGS" 17566elif test "$svn_enable_shared" = "yes" ; then 17567 { $as_echo "$as_me:${as_lineno-$LINENO}: building shared libraries only" >&5 17568$as_echo "$as_me: building shared libraries only" >&6;} 17569 if test "$lt_major_version" = "1" ; then 17570 LT_CFLAGS="-prefer-pic $LT_CFLAGS" 17571 elif test "$lt_major_version" = "2" ; then 17572 LT_CFLAGS="-shared $LT_CFLAGS" 17573 fi 17574 LT_LDFLAGS="-shared $LT_LDFLAGS" 17575else 17576 as_fn_error $? "cannot disable both shared and static libraries" "$LINENO" 5 17577fi 17578 17579# Check whether --enable-all-static was given. 17580if test "${enable_all_static+set}" = set; then : 17581 enableval=$enable_all_static; 17582 if test "$enableval" = "yes" ; then 17583 LT_LDFLAGS="-all-static $LT_LDFLAGS" 17584 elif test "$enableval" != "no" ; then 17585 as_fn_error $? "--enable-all-static doesn't accept argument" "$LINENO" 5 17586 fi 17587 17588fi 17589 17590 17591 17592 17593 17594# Check whether --enable-local-library-preloading was given. 17595if test "${enable_local_library_preloading+set}" = set; then : 17596 enableval=$enable_local_library_preloading; 17597 if test "$enableval" != "no"; then 17598 if test "$svn_enable_shared" = "yes"; then 17599 TRANSFORM_LIBTOOL_SCRIPTS="transform-libtool-scripts" 17600 else 17601 as_fn_error $? "--enable-local-library-preloading conflicts with --disable-shared" "$LINENO" 5 17602 fi 17603 else 17604 TRANSFORM_LIBTOOL_SCRIPTS="" 17605 fi 17606 17607else 17608 17609 TRANSFORM_LIBTOOL_SCRIPTS="" 17610 17611fi 17612 17613 17614 17615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool needs -no-undefined" >&5 17616$as_echo_n "checking whether libtool needs -no-undefined... " >&6; } 17617case $host in 17618 *-*-cygwin*) 17619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17620$as_echo "yes" >&6; } 17621 LT_NO_UNDEFINED="-no-undefined" 17622 ;; 17623 *) 17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17625$as_echo "no" >&6; } 17626 LT_NO_UNDEFINED="" 17627 ;; 17628esac 17629 17630 17631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid circular linkage at all costs" >&5 17632$as_echo_n "checking whether to avoid circular linkage at all costs... " >&6; } 17633case $host in 17634 *-*-cygwin*) 17635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17636$as_echo "yes" >&6; } 17637 17638$as_echo "#define SVN_AVOID_CIRCULAR_LINKAGE_AT_ALL_COSTS_HACK 1" >>confdefs.h 17639 17640 ;; 17641 *) 17642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17643$as_echo "no" >&6; } 17644 ;; 17645esac 17646 17647trang=yes 17648 17649# Check whether --with-trang was given. 17650if test "${with_trang+set}" = set; then : 17651 withval=$with_trang; 17652 trang="$withval" 17653 17654fi 17655 17656if test "$trang" = "yes"; then 17657 # Extract the first word of "trang", so it can be a program name with args. 17658set dummy trang; ac_word=$2 17659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17660$as_echo_n "checking for $ac_word... " >&6; } 17661if ${ac_cv_path_TRANG+:} false; then : 17662 $as_echo_n "(cached) " >&6 17663else 17664 case $TRANG in 17665 [\\/]* | ?:[\\/]*) 17666 ac_cv_path_TRANG="$TRANG" # Let the user override the test with a path. 17667 ;; 17668 *) 17669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17670for as_dir in $PATH 17671do 17672 IFS=$as_save_IFS 17673 test -z "$as_dir" && as_dir=. 17674 for ac_exec_ext in '' $ac_executable_extensions; do 17675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17676 ac_cv_path_TRANG="$as_dir/$ac_word$ac_exec_ext" 17677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17678 break 2 17679 fi 17680done 17681 done 17682IFS=$as_save_IFS 17683 17684 test -z "$ac_cv_path_TRANG" && ac_cv_path_TRANG="none" 17685 ;; 17686esac 17687fi 17688TRANG=$ac_cv_path_TRANG 17689if test -n "$TRANG"; then 17690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRANG" >&5 17691$as_echo "$TRANG" >&6; } 17692else 17693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17694$as_echo "no" >&6; } 17695fi 17696 17697 17698else 17699 TRANG="$trang" 17700 17701fi 17702 17703doxygen=yes 17704 17705# Check whether --with-doxygen was given. 17706if test "${with_doxygen+set}" = set; then : 17707 withval=$with_doxygen; 17708 doxygen="$withval" 17709 17710fi 17711 17712if test "$doxygen" = "yes"; then 17713 # Extract the first word of "doxygen", so it can be a program name with args. 17714set dummy doxygen; ac_word=$2 17715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17716$as_echo_n "checking for $ac_word... " >&6; } 17717if ${ac_cv_path_DOXYGEN+:} false; then : 17718 $as_echo_n "(cached) " >&6 17719else 17720 case $DOXYGEN in 17721 [\\/]* | ?:[\\/]*) 17722 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 17723 ;; 17724 *) 17725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17726for as_dir in $PATH 17727do 17728 IFS=$as_save_IFS 17729 test -z "$as_dir" && as_dir=. 17730 for ac_exec_ext in '' $ac_executable_extensions; do 17731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17732 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 17733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17734 break 2 17735 fi 17736done 17737 done 17738IFS=$as_save_IFS 17739 17740 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="none" 17741 ;; 17742esac 17743fi 17744DOXYGEN=$ac_cv_path_DOXYGEN 17745if test -n "$DOXYGEN"; then 17746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 17747$as_echo "$DOXYGEN" >&6; } 17748else 17749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17750$as_echo "no" >&6; } 17751fi 17752 17753 17754else 17755 DOXYGEN="$doxygen" 17756 17757fi 17758 17759 17760 17761 17762 17763# Check whether --with-expat was given. 17764if test "${with_expat+set}" = set; then : 17765 withval=$with_expat; svn_lib_expat="$withval" 17766else 17767 svn_lib_expat="::expat" 17768fi 17769 17770 17771# APR-util accepts "builtin" as an argument to this option so if the user 17772# passed "builtin" pretend the user didn't specify the --with-expat option 17773# at all. Expat will (hopefully) be found in apr-util. 17774test "_$svn_lib_expat" = "_builtin" && svn_lib_expat="::expat" 17775 17776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Expat" >&5 17777$as_echo_n "checking for Expat... " >&6; } 17778if test -n "`echo "$svn_lib_expat" | $EGREP ":.*:"`"; then 17779 SVN_XML_INCLUDES="" 17780 for i in `echo "$svn_lib_expat" | $SED -e "s/\([^:]*\):.*/\1/"`; do 17781 SVN_XML_INCLUDES="$SVN_XML_INCLUDES -I$i" 17782 done 17783 SVN_XML_INCLUDES="${SVN_XML_INCLUDES## }" 17784 for l in `echo "$svn_lib_expat" | $SED -e "s/.*:\([^:]*\):.*/\1/"`; do 17785 LDFLAGS="$LDFLAGS -L$l" 17786 done 17787 for l in `echo "$svn_lib_expat" | $SED -e "s/.*:\([^:]*\)/\1/"`; do 17788 SVN_XML_LIBS="$SVN_XML_LIBS -l$l" 17789 done 17790 SVN_XML_LIBS="${SVN_XML_LIBS## }" 17791 old_CPPFLAGS="$CPPFLAGS" 17792 old_LIBS="$LIBS" 17793 CPPFLAGS="$CPPFLAGS $SVN_XML_INCLUDES" 17794 LIBS="$LIBS $SVN_XML_LIBS" 17795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17796/* end confdefs.h. */ 17797 17798#include <expat.h> 17799int main() 17800{XML_ParserCreate(NULL);} 17801_ACEOF 17802if ac_fn_c_try_link "$LINENO"; then : 17803 svn_lib_expat="yes" 17804else 17805 svn_lib_expat="no" 17806fi 17807rm -f core conftest.err conftest.$ac_objext \ 17808 conftest$ac_exeext conftest.$ac_ext 17809 LIBS="$old_LIBS" 17810 if test "$svn_lib_expat" = "yes"; then 17811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17812$as_echo "yes" >&6; } 17813 else 17814 SVN_XML_INCLUDES="" 17815 SVN_XML_LIBS="" 17816 CPPFLAGS="$CPPFLAGS $SVN_APRUTIL_INCLUDES" 17817 if test "$enable_all_static" != "yes"; then 17818 SVN_APRUTIL_LIBS="$SVN_APRUTIL_LIBS `$apu_config --libs`" 17819 fi 17820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17821/* end confdefs.h. */ 17822 17823#include <expat.h> 17824int main() 17825{XML_ParserCreate(NULL);} 17826_ACEOF 17827if ac_fn_c_try_compile "$LINENO"; then : 17828 svn_lib_expat="yes" 17829else 17830 svn_lib_expat="no" 17831fi 17832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17833 if test "$svn_lib_expat" = "yes"; then 17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17835$as_echo "yes" >&6; } 17836 { $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 17837$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;} 17838 else 17839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17840$as_echo "no" >&6; } 17841 as_fn_error $? "Expat not found" "$LINENO" 5 17842 fi 17843 fi 17844 CPPFLAGS="$old_CPPFLAGS" 17845else 17846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17847$as_echo "no" >&6; } 17848 if test "$svn_lib_expat" = "yes"; then 17849 as_fn_error $? "--with-expat option requires argument" "$LINENO" 5 17850 elif test "$svn_lib_expat" = "no"; then 17851 as_fn_error $? "Expat is required" "$LINENO" 5 17852 else 17853 as_fn_error $? "Invalid syntax of argument of --with-expat option" "$LINENO" 5 17854 fi 17855fi 17856 17857 17858 17859 17860# Berkeley DB on SCO OpenServer needs -lsocket 17861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 17862$as_echo_n "checking for socket in -lsocket... " >&6; } 17863if ${ac_cv_lib_socket_socket+:} false; then : 17864 $as_echo_n "(cached) " >&6 17865else 17866 ac_check_lib_save_LIBS=$LIBS 17867LIBS="-lsocket $LIBS" 17868cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17869/* end confdefs.h. */ 17870 17871/* Override any GCC internal prototype to avoid an error. 17872 Use char because int might match the return type of a GCC 17873 builtin and then its argument prototype would still apply. */ 17874#ifdef __cplusplus 17875extern "C" 17876#endif 17877char socket (); 17878int 17879main () 17880{ 17881return socket (); 17882 ; 17883 return 0; 17884} 17885_ACEOF 17886if ac_fn_c_try_link "$LINENO"; then : 17887 ac_cv_lib_socket_socket=yes 17888else 17889 ac_cv_lib_socket_socket=no 17890fi 17891rm -f core conftest.err conftest.$ac_objext \ 17892 conftest$ac_exeext conftest.$ac_ext 17893LIBS=$ac_check_lib_save_LIBS 17894fi 17895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 17896$as_echo "$ac_cv_lib_socket_socket" >&6; } 17897if test "x$ac_cv_lib_socket_socket" = xyes; then : 17898 cat >>confdefs.h <<_ACEOF 17899#define HAVE_LIBSOCKET 1 17900_ACEOF 17901 17902 LIBS="-lsocket $LIBS" 17903 17904fi 17905 17906 17907# Build the BDB filesystem library only if we have an appropriate 17908# version of Berkeley DB. 17909case "$host" in 17910powerpc-apple-darwin*) 17911 # Berkeley DB 4.0 does not work on OS X. 17912 SVN_FS_WANT_DB_MAJOR=4 17913 SVN_FS_WANT_DB_MINOR=1 17914 SVN_FS_WANT_DB_PATCH=25 17915 ;; 17916*) 17917 SVN_FS_WANT_DB_MAJOR=4 17918 SVN_FS_WANT_DB_MINOR=0 17919 SVN_FS_WANT_DB_PATCH=14 17920 ;; 17921esac 17922db_alt_version="5.x" 17923# Look for libdb4.so first: 17924 17925 db_version=$SVN_FS_WANT_DB_MAJOR.$SVN_FS_WANT_DB_MINOR.$SVN_FS_WANT_DB_PATCH 17926 17927 17928# Check whether --with-berkeley-db was given. 17929if test "${with_berkeley_db+set}" = set; then : 17930 withval=$with_berkeley_db; 17931 if test "$withval" = "no"; then 17932 bdb_status=skip 17933 elif test "$withval" = "yes"; then 17934 apu_db_version="`$apu_config --db-version`" 17935 if test $? -ne 0; then 17936 as_fn_error $? "Can't determine whether apr-util is linked against a 17937 proper version of Berkeley DB." "$LINENO" 5 17938 fi 17939 17940 if test "$withval" = "yes"; then 17941 if test "$apu_db_version" -lt "4"; then 17942 as_fn_error $? "APR-UTIL was linked against Berkeley DB version $apu_db_version, 17943 while version 4 or higher is required. Reinstall 17944 APR-UTIL with the appropriate options." "$LINENO" 5 17945 fi 17946 17947 bdb_status=required 17948 17949 elif test "$apu_found" != "reconfig"; then 17950 if test "$apu_db_version" -lt 4; then 17951 as_fn_error $? "APR-UTIL was installed independently, it won't be 17952 possible to use the specified Berkeley DB: $withval" "$LINENO" 5 17953 fi 17954 17955 bdb_status=required 17956 fi 17957 else 17958 if echo "$withval" | $EGREP ":.*:.*:" > /dev/null; then 17959 svn_berkeley_db_header="`echo "$withval" | $SED -e "s/\([^:]*\):.*/\1/"`" 17960 SVN_DB_INCLUDES="" 17961 for i in `echo "$withval" | $SED -e "s/.*:\([^:]*\):[^:]*:.*/\1/"`; do 17962 SVN_DB_INCLUDES="$SVN_DB_INCLUDES -I$i" 17963 done 17964 SVN_DB_INCLUDES="${SVN_DB_INCLUDES## }" 17965 for l in `echo "$withval" | $SED -e "s/.*:[^:]*:\([^:]*\):.*/\1/"`; do 17966 LDFLAGS="$LDFLAGS -L$l" 17967 done 17968 SVN_DB_LIBS="" 17969 for l in `echo "$withval" | $SED -e "s/.*:\([^:]*\)/\1/"`; do 17970 SVN_DB_LIBS="$SVN_DB_LIBS -l$l" 17971 done 17972 SVN_DB_LIBS="${SVN_DB_LIBS## }" 17973 17974 bdb_status=required 17975 else 17976 as_fn_error $? "Invalid syntax of argument of --with-berkeley-db option" "$LINENO" 5 17977 fi 17978 fi 17979 17980else 17981 17982 # No --with-berkeley-db option: 17983 # 17984 # Check if APR-UTIL is providing the correct Berkeley DB version 17985 # for us. 17986 # 17987 apu_db_version="`$apu_config --db-version`" 17988 if test $? -ne 0; then 17989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected older version of APR-UTIL, trying to determine 17990 whether apr-util is linked against Berkeley DB 17991 $db_version" >&5 17992$as_echo "$as_me: WARNING: Detected older version of APR-UTIL, trying to determine 17993 whether apr-util is linked against Berkeley DB 17994 $db_version" >&2;} 17995 bdb_status=try-link 17996 elif test "$apu_db_version" -lt "4"; then 17997 bdb_status=skip 17998 else 17999 bdb_status=try-link 18000 fi 18001 18002fi 18003 18004 18005 if test "$bdb_status" = "skip"; then 18006 svn_lib_berkeley_db=no 18007 else 18008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for availability of Berkeley DB" >&5 18009$as_echo_n "checking for availability of Berkeley DB... " >&6; } 18010 # Check whether --enable-bdb6 was given. 18011if test "${enable_bdb6+set}" = set; then : 18012 enableval=$enable_bdb6; enable_bdb6=$enableval 18013else 18014 enable_bdb6=unspecified 18015fi 18016 18017 18018 18019 svn_lib_berkeley_db_try_save_cppflags="$CPPFLAGS" 18020 svn_lib_berkeley_db_try_save_libs="$LIBS" 18021 18022 svn_check_berkeley_db_major=$SVN_FS_WANT_DB_MAJOR 18023 svn_check_berkeley_db_minor=$SVN_FS_WANT_DB_MINOR 18024 svn_check_berkeley_db_patch=$SVN_FS_WANT_DB_PATCH 18025 enable_bdb6=$enable_bdb6 18026 18027 if test -z "$SVN_DB_LIBS"; then 18028 # We pass --dbm-libs here since Debian has modified apu-config not 18029 # to return -ldb unless --dbm-libs is passed. This may also produce 18030 # extra output beyond -ldb but since we're only filtering for -ldb 18031 # it won't matter to us. However, --dbm-libs was added to apu-config 18032 # in 1.3.8 so it's possible the version we have doesn't support it 18033 # so fallback without it if we get an error. 18034 svn_db_libs_prefiltered="`$apu_config --libs --dbm-libs`" 18035 if test $? -ne 0; then 18036 svn_db_libs_prefiltered="`$apu_config --libs`" 18037 fi 18038 18039 # Extract only the -ldb.* flag from the libs supplied by apu-config 18040 # Otherwise we get bit by the fact that expat might not be built yet 18041 # Or that it resides in a non-standard location which we would have 18042 # to compensate with using something like -R`$apu_config --prefix`/lib. 18043 # 18044 SVN_DB_LIBS="`echo \"$svn_db_libs_prefiltered\" | $SED -e 's/.*\(-ldb[^[:space:]]*\).*/\1/' | $EGREP -- '-ldb[^[:space:]]*'`" 18045 fi 18046 18047 CPPFLAGS="$SVN_DB_INCLUDES $SVN_APRUTIL_INCLUDES $CPPFLAGS" 18048 LIBS="`$apu_config --ldflags` $SVN_DB_LIBS $LIBS" 18049 18050 if test -n "$svn_berkeley_db_header"; then 18051 SVN_DB_HEADER="#include <$svn_berkeley_db_header>" 18052 svn_db_header="#include <$svn_berkeley_db_header>" 18053 else 18054 SVN_DB_HEADER="#include <apu_want.h>" 18055 svn_db_header="#define APU_WANT_DB 18056#include <apu_want.h>" 18057 fi 18058 18059 18060 18061 if test "$cross_compiling" = yes; then : 18062 svn_have_berkeley_db=yes 18063 18064else 18065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18066/* end confdefs.h. */ 18067 18068#include <string.h> 18069#include <stdlib.h> 18070$svn_db_header 18071 18072int main () 18073{ 18074 int major, minor, patch; 18075 18076 db_version (&major, &minor, &patch); 18077 18078 /* Sanity check: ensure that db.h constants actually match the db library */ 18079 if (major != DB_VERSION_MAJOR 18080 || minor != DB_VERSION_MINOR 18081 || patch != DB_VERSION_PATCH) 18082 exit (1); 18083 18084 /* Block Berkeley DB 6, because (a) we haven't tested with it, (b) 6.0.20 18085 and newer are under the AGPL, and we want use of AGPL dependencies to be 18086 opt-in. */ 18087 if (major >= 6 && strcmp("$enable_bdb6", "yes")) 18088 exit(2); 18089 18090 /* Run-time check: ensure the library claims to be the correct version. */ 18091 18092 if (major < $svn_check_berkeley_db_major) 18093 exit (1); 18094 if (major > $svn_check_berkeley_db_major) 18095 exit (0); 18096 18097 if (minor < $svn_check_berkeley_db_minor) 18098 exit (1); 18099 if (minor > $svn_check_berkeley_db_minor) 18100 exit (0); 18101 18102 if (patch >= $svn_check_berkeley_db_patch) 18103 exit (0); 18104 else 18105 exit (1); 18106} 18107 18108_ACEOF 18109if ac_fn_c_try_run "$LINENO"; then : 18110 svn_have_berkeley_db=yes 18111else 18112 rc=$? 18113 svn_have_berkeley_db=no 18114 if test $rc = 2; then 18115 svn_have_berkeley_db=no6 18116 fi 18117fi 18118rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18119 conftest.$ac_objext conftest.beam conftest.$ac_ext 18120fi 18121 18122 18123 CPPFLAGS="$svn_lib_berkeley_db_try_save_cppflags" 18124 LIBS="$svn_lib_berkeley_db_try_save_libs" 18125 18126 18127 if test "$svn_have_berkeley_db" = "yes"; then 18128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18129$as_echo "yes" >&6; } 18130 svn_lib_berkeley_db=yes 18131 else 18132 if test "$svn_have_berkeley_db" = "no6"; then 18133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (found version 6, but --enable-bdb6 not specified)" >&5 18134$as_echo "no (found version 6, but --enable-bdb6 not specified)" >&6; } 18135 # A warning will be printed at the end of configure.ac. 18136 else 18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18138$as_echo "no" >&6; } 18139 fi 18140 svn_lib_berkeley_db=no 18141 if test "$bdb_status" = "required"; then 18142 as_fn_error $? "Berkeley DB $db_version or $db_alt_version wasn't found." "$LINENO" 5 18143 fi 18144 fi 18145 fi 18146 18147 18148 18149cat >>confdefs.h <<_ACEOF 18150#define SVN_FS_WANT_DB_MAJOR $SVN_FS_WANT_DB_MAJOR 18151_ACEOF 18152 18153 18154cat >>confdefs.h <<_ACEOF 18155#define SVN_FS_WANT_DB_MINOR $SVN_FS_WANT_DB_MINOR 18156_ACEOF 18157 18158 18159cat >>confdefs.h <<_ACEOF 18160#define SVN_FS_WANT_DB_PATCH $SVN_FS_WANT_DB_PATCH 18161_ACEOF 18162 18163 18164 18165 18166 18167 18168 18169# Check whether --with-sasl was given. 18170if test "${with_sasl+set}" = set; then : 18171 withval=$with_sasl; 18172 with_sasl="$withval" 18173 required="yes" 18174 18175else 18176 18177 with_sasl="yes" 18178 required="no" 18179 18180fi 18181 18182 18183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for SASL" >&5 18184$as_echo_n "checking whether to look for SASL... " >&6; } 18185 18186 if test "${with_sasl}" = "no"; then 18187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18188$as_echo "no" >&6; } 18189 svn_lib_sasl=no 18190 else 18191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18192$as_echo "yes" >&6; } 18193 saved_LDFLAGS="$LDFLAGS" 18194 saved_CPPFLAGS="$CPPFLAGS" 18195 18196 if test "$with_sasl" = "yes"; then 18197 { $as_echo "$as_me:${as_lineno-$LINENO}: Looking in default locations" >&5 18198$as_echo "$as_me: Looking in default locations" >&6;} 18199 ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default" 18200if test "x$ac_cv_header_sasl_sasl_h" = xyes; then : 18201 ac_fn_c_check_header_mongrel "$LINENO" "sasl/saslutil.h" "ac_cv_header_sasl_saslutil_h" "$ac_includes_default" 18202if test "x$ac_cv_header_sasl_saslutil_h" = xyes; then : 18203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prop_get in -lsasl2" >&5 18204$as_echo_n "checking for prop_get in -lsasl2... " >&6; } 18205if ${ac_cv_lib_sasl2_prop_get+:} false; then : 18206 $as_echo_n "(cached) " >&6 18207else 18208 ac_check_lib_save_LIBS=$LIBS 18209LIBS="-lsasl2 $LIBS" 18210cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18211/* end confdefs.h. */ 18212 18213/* Override any GCC internal prototype to avoid an error. 18214 Use char because int might match the return type of a GCC 18215 builtin and then its argument prototype would still apply. */ 18216#ifdef __cplusplus 18217extern "C" 18218#endif 18219char prop_get (); 18220int 18221main () 18222{ 18223return prop_get (); 18224 ; 18225 return 0; 18226} 18227_ACEOF 18228if ac_fn_c_try_link "$LINENO"; then : 18229 ac_cv_lib_sasl2_prop_get=yes 18230else 18231 ac_cv_lib_sasl2_prop_get=no 18232fi 18233rm -f core conftest.err conftest.$ac_objext \ 18234 conftest$ac_exeext conftest.$ac_ext 18235LIBS=$ac_check_lib_save_LIBS 18236fi 18237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_prop_get" >&5 18238$as_echo "$ac_cv_lib_sasl2_prop_get" >&6; } 18239if test "x$ac_cv_lib_sasl2_prop_get" = xyes; then : 18240 svn_lib_sasl=yes 18241else 18242 svn_lib_sasl=no 18243fi 18244 18245else 18246 svn_lib_sasl=no 18247fi 18248 18249 18250else 18251 svn_lib_sasl=no 18252fi 18253 18254 18255 if test "$svn_lib_sasl" = "no"; then 18256 with_sasl="/usr/local" 18257 fi 18258 else 18259 svn_lib_sasl=no 18260 fi 18261 18262 if test "$svn_lib_sasl" = "no"; then 18263 SVN_SASL_INCLUDES="-I${with_sasl}/include" 18264 CPPFLAGS="$CPPFLAGS $SVN_SASL_INCLUDES" 18265 LDFLAGS="$LDFLAGS ` 18266 input_flags="-L${with_sasl}/lib" 18267 output_flags="" 18268 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 18269 for flag in $input_flags; do 18270 filter="no" 18271 for dir in $filtered_dirs; do 18272 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 18273 filter="yes" 18274 break 18275 fi 18276 done 18277 if test "$filter" = "no"; then 18278 output_flags="$output_flags $flag" 18279 fi 18280 done 18281 if test -n "$output_flags"; then 18282 printf "%s" "${output_flags# }" 18283 fi 18284`" 18285 18286 ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default" 18287if test "x$ac_cv_header_sasl_sasl_h" = xyes; then : 18288 ac_fn_c_check_header_mongrel "$LINENO" "sasl/saslutil.h" "ac_cv_header_sasl_saslutil_h" "$ac_includes_default" 18289if test "x$ac_cv_header_sasl_saslutil_h" = xyes; then : 18290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prop_get in -lsasl2" >&5 18291$as_echo_n "checking for prop_get in -lsasl2... " >&6; } 18292if ${ac_cv_lib_sasl2_prop_get+:} false; then : 18293 $as_echo_n "(cached) " >&6 18294else 18295 ac_check_lib_save_LIBS=$LIBS 18296LIBS="-lsasl2 $LIBS" 18297cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18298/* end confdefs.h. */ 18299 18300/* Override any GCC internal prototype to avoid an error. 18301 Use char because int might match the return type of a GCC 18302 builtin and then its argument prototype would still apply. */ 18303#ifdef __cplusplus 18304extern "C" 18305#endif 18306char prop_get (); 18307int 18308main () 18309{ 18310return prop_get (); 18311 ; 18312 return 0; 18313} 18314_ACEOF 18315if ac_fn_c_try_link "$LINENO"; then : 18316 ac_cv_lib_sasl2_prop_get=yes 18317else 18318 ac_cv_lib_sasl2_prop_get=no 18319fi 18320rm -f core conftest.err conftest.$ac_objext \ 18321 conftest$ac_exeext conftest.$ac_ext 18322LIBS=$ac_check_lib_save_LIBS 18323fi 18324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_prop_get" >&5 18325$as_echo "$ac_cv_lib_sasl2_prop_get" >&6; } 18326if test "x$ac_cv_lib_sasl2_prop_get" = xyes; then : 18327 svn_lib_sasl=yes 18328else 18329 svn_lib_sasl=no 18330fi 18331 18332else 18333 svn_lib_sasl=no 18334fi 18335 18336 18337else 18338 svn_lib_sasl=no 18339fi 18340 18341 18342 fi 18343 18344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for availability of Cyrus SASL v2" >&5 18345$as_echo_n "checking for availability of Cyrus SASL v2... " >&6; } 18346 if test "$svn_lib_sasl" = "yes"; then 18347 SVN_SASL_LIBS="-lsasl2" 18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18349$as_echo "yes" >&6; } 18350 else 18351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18352$as_echo "no" >&6; } 18353 18354 if test "$required" = "yes"; then 18355 as_fn_error $? "Could not find Cyrus SASL v2" "$LINENO" 5 18356 fi 18357 18358 SVN_SASL_INCLUDES="" 18359 LDFLAGS="$saved_LDFLAGS" 18360 fi 18361 18362 CPPFLAGS="$saved_CPPFLAGS" 18363 fi 18364 18365 18366 18367 18368 18369if test "$svn_lib_sasl" = "yes"; then 18370 18371$as_echo "#define SVN_HAVE_SASL 1" >>confdefs.h 18372 18373fi 18374 18375 18376 18377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O dynamic module iteration functions" >&5 18378$as_echo_n "checking for Mach-O dynamic module iteration functions... " >&6; } 18379 if test "$cross_compiling" = yes; then : 18380 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18381$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18382as_fn_error $? "cannot run test program while cross compiling 18383See \`config.log' for more details" "$LINENO" 5; } 18384else 18385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18386/* end confdefs.h. */ 18387 18388 #include <mach-o/dyld.h> 18389 #include <mach-o/loader.h> 18390 18391int 18392main () 18393{ 18394 18395 const struct mach_header *header = _dyld_get_image_header(0); 18396 const char *name = _dyld_get_image_name(0); 18397 if (name && header) return 0; 18398 return 1; 18399 18400 ; 18401 return 0; 18402} 18403_ACEOF 18404if ac_fn_c_try_run "$LINENO"; then : 18405 18406 18407$as_echo "#define SVN_HAVE_MACHO_ITERATE 1" >>confdefs.h 18408 18409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18410$as_echo "yes" >&6; } 18411 18412else 18413 18414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18415$as_echo "no" >&6; } 18416 18417fi 18418rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18419 conftest.$ac_objext conftest.beam conftest.$ac_ext 18420fi 18421 18422 18423 18424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS property list utilities" >&5 18425$as_echo_n "checking for Mac OS property list utilities... " >&6; } 18426 18427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18428/* end confdefs.h. */ 18429 18430 #include <AvailabilityMacros.h> 18431 #if !defined(MAC_OS_X_VERSION_MAX_ALLOWED) \ 18432 || !defined(MAC_OS_X_VERSION_10_0) \ 18433 || (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_0) 18434 #error ProperyList API unavailable. 18435 #endif 18436 18437int 18438main () 18439{ 18440 18441 ; 18442 return 0; 18443} 18444_ACEOF 18445if ac_fn_c_try_compile "$LINENO"; then : 18446 18447 18448 LIBS="$LIBS -framework CoreFoundation" 18449 18450$as_echo "#define SVN_HAVE_MACOS_PLIST 1" >>confdefs.h 18451 18452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18453$as_echo "yes" >&6; } 18454 18455else 18456 18457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18458$as_echo "no" >&6; } 18459 18460fi 18461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18462 18463 18464 # Check whether --enable-keychain was given. 18465if test "${enable_keychain+set}" = set; then : 18466 enableval=$enable_keychain; enable_keychain=$enableval 18467else 18468 enable_keychain=yes 18469fi 18470 18471 18472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS KeyChain Services" >&5 18473$as_echo_n "checking for Mac OS KeyChain Services... " >&6; } 18474 18475 if test "$enable_keychain" = "yes"; then 18476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18477/* end confdefs.h. */ 18478 18479 #include <AvailabilityMacros.h> 18480 #if !defined(MAC_OS_X_VERSION_MAX_ALLOWED) \ 18481 || !defined(MAC_OS_X_VERSION_10_2) \ 18482 || (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_2) 18483 #error KeyChain API unavailable. 18484 #endif 18485 18486int 18487main () 18488{ 18489 18490 ; 18491 return 0; 18492} 18493_ACEOF 18494if ac_fn_c_try_compile "$LINENO"; then : 18495 18496 LIBS="$LIBS -framework Security" 18497 LIBS="$LIBS -framework CoreServices" 18498 18499$as_echo "#define SVN_HAVE_KEYCHAIN_SERVICES 1" >>confdefs.h 18500 18501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18502$as_echo "yes" >&6; } 18503 18504else 18505 18506 enable_keychain=no 18507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18508$as_echo "no" >&6; } 18509 18510fi 18511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18512 fi 18513 18514 18515 18516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether APR has support for DSOs" >&5 18517$as_echo_n "checking whether APR has support for DSOs... " >&6; } 18518old_CPPFLAGS="$CPPFLAGS" 18519CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES" 18520cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18521/* end confdefs.h. */ 18522 18523#include <apr.h> 18524#if !APR_HAS_DSO 18525#error 18526#endif 18527_ACEOF 18528if ac_fn_c_try_cpp "$LINENO"; then : 18529 APR_HAS_DSO="yes" 18530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18531$as_echo "yes" >&6; } 18532else 18533 APR_HAS_DSO="no" 18534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18535$as_echo "no" >&6; } 18536fi 18537rm -f conftest.err conftest.i conftest.$ac_ext 18538CPPFLAGS="$old_CPPFLAGS" 18539 18540 18541 18542if test -n "$PKG_CONFIG"; then 18543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus .pc file" >&5 18544$as_echo_n "checking for D-Bus .pc file... " >&6; } 18545 if $PKG_CONFIG --exists dbus-1; then 18546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18547$as_echo "yes" >&6; } 18548 old_CPPFLAGS="$CPPFLAGS" 18549 old_LIBS="$LIBS" 18550 DBUS_CPPFLAGS="`$PKG_CONFIG --cflags dbus-1`" 18551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking D-Bus version" >&5 18552$as_echo_n "checking D-Bus version... " >&6; } 18553 DBUS_VERSION="`$PKG_CONFIG --modversion dbus-1`" 18554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_VERSION" >&5 18555$as_echo "$DBUS_VERSION" >&6; } 18556 # D-Bus 0.* requires DBUS_API_SUBJECT_TO_CHANGE 18557 if test -n "`echo "$DBUS_VERSION" | $EGREP '^0\.[[:digit:]]+'`"; then 18558 DBUS_CPPFLAGS="$DBUS_CPPFLAGS -DDBUS_API_SUBJECT_TO_CHANGE" 18559 fi 18560 DBUS_LIBS="`$PKG_CONFIG --libs dbus-1`" 18561 CPPFLAGS="$CPPFLAGS $DBUS_CPPFLAGS" 18562 LIBS="$LIBS $DBUS_LIBS" 18563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for D-Bus" >&5 18564$as_echo_n "checking for D-Bus... " >&6; } 18565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18566/* end confdefs.h. */ 18567 18568#include <dbus/dbus.h> 18569int main() 18570{dbus_bus_get(DBUS_BUS_SESSION, NULL);} 18571_ACEOF 18572if ac_fn_c_try_link "$LINENO"; then : 18573 HAVE_DBUS="yes" 18574else 18575 HAVE_DBUS="no" 18576fi 18577rm -f core conftest.err conftest.$ac_objext \ 18578 conftest$ac_exeext conftest.$ac_ext 18579 if test "$HAVE_DBUS" = "yes"; then 18580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18581$as_echo "yes" >&6; } 18582 else 18583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18584$as_echo "no" >&6; } 18585 fi 18586 CPPFLAGS="$old_CPPFLAGS" 18587 LIBS="$old_LIBS" 18588 else 18589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18590$as_echo "no" >&6; } 18591 fi 18592fi 18593 18594 18595 18596# Check whether --with-gpg_agent was given. 18597if test "${with_gpg_agent+set}" = set; then : 18598 withval=$with_gpg_agent; 18599else 18600 with_gpg_agent=yes 18601fi 18602 18603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support GPG-Agent" >&5 18604$as_echo_n "checking whether to support GPG-Agent... " >&6; } 18605if test "$with_gpg_agent" = "yes"; then 18606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18607$as_echo "yes" >&6; } 18608 18609$as_echo "#define SVN_HAVE_GPG_AGENT 1" >>confdefs.h 18610 18611else 18612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18613$as_echo "no" >&6; } 18614fi 18615 18616 18617 18618 18619 18620# Check whether --with-gnome_keyring was given. 18621if test "${with_gnome_keyring+set}" = set; then : 18622 withval=$with_gnome_keyring; with_gnome_keyring="$withval" 18623else 18624 with_gnome_keyring=auto 18625fi 18626 18627 18628found_gnome_keyring=no 18629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for GNOME Keyring" >&5 18630$as_echo_n "checking whether to look for GNOME Keyring... " >&6; } 18631if test "$with_gnome_keyring" != "no"; then 18632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18633$as_echo "yes" >&6; } 18634 if test "$svn_enable_shared" = "yes"; then 18635 if test "$APR_HAS_DSO" = "yes"; then 18636 if test -n "$PKG_CONFIG"; then 18637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLib and GNOME Keyring .pc files" >&5 18638$as_echo_n "checking for GLib and GNOME Keyring .pc files... " >&6; } 18639 if $PKG_CONFIG --exists glib-2.0 gnome-keyring-1; then 18640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18641$as_echo "yes" >&6; } 18642 old_CPPFLAGS="$CPPFLAGS" 18643 SVN_GNOME_KEYRING_INCLUDES="`$PKG_CONFIG --cflags glib-2.0 gnome-keyring-1`" 18644 CPPFLAGS="$CPPFLAGS $SVN_GNOME_KEYRING_INCLUDES" 18645 ac_fn_c_check_header_mongrel "$LINENO" "gnome-keyring.h" "ac_cv_header_gnome_keyring_h" "$ac_includes_default" 18646if test "x$ac_cv_header_gnome_keyring_h" = xyes; then : 18647 found_gnome_keyring=yes 18648else 18649 found_gnome_keyring=no 18650fi 18651 18652 18653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNOME Keyring" >&5 18654$as_echo_n "checking for GNOME Keyring... " >&6; } 18655 if test "$found_gnome_keyring" = "yes"; then 18656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18657$as_echo "yes" >&6; } 18658 18659$as_echo "#define SVN_HAVE_GNOME_KEYRING 1" >>confdefs.h 18660 18661 CPPFLAGS="$old_CPPFLAGS" 18662 SVN_GNOME_KEYRING_LIBS="`$PKG_CONFIG --libs glib-2.0 gnome-keyring-1`" 18663 else 18664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18665$as_echo "no" >&6; } 18666 if test "$with_gnome_keyring" = "yes"; then 18667 as_fn_error $? "cannot find GNOME Keyring" "$LINENO" 5 18668 fi 18669 fi 18670 else 18671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18672$as_echo "no" >&6; } 18673 if test "$with_gnome_keyring" = "yes"; then 18674 as_fn_error $? "cannot find GLib and GNOME Keyring .pc files." "$LINENO" 5 18675 else 18676 with_gnome_keyring=no 18677 fi 18678 fi 18679 else 18680 if test "$with_gnome_keyring" = "yes"; then 18681 as_fn_error $? "cannot find pkg-config. GNOME Keyring requires this." "$LINENO" 5 18682 else 18683 with_gnome_keyring=no 18684 fi 18685 fi 18686 else 18687 if test "$with_gnome_keyring" = "yes"; then 18688 as_fn_error $? "APR does not have support for DSOs. GNOME Keyring requires this." "$LINENO" 5 18689 else 18690 with_gnome_keyring=no 18691 fi 18692 fi 18693 else 18694 if test "$with_gnome_keyring" = "yes"; then 18695 as_fn_error $? "--with-gnome-keyring conflicts with --disable-shared" "$LINENO" 5 18696 else 18697 with_gnome_keyring=no 18698 fi 18699 fi 18700else 18701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18702$as_echo "no" >&6; } 18703fi 18704 18705 18706 18707 18708# Check whether --enable-ev2-impl was given. 18709if test "${enable_ev2_impl+set}" = set; then : 18710 enableval=$enable_ev2_impl; enable_ev2_impl=$enableval 18711else 18712 enable_ev2_impl=no 18713fi 18714 18715if test "$enable_ev2_impl" = "yes"; then 18716 18717$as_echo "#define ENABLE_EV2_IMPL 1" >>confdefs.h 18718 18719fi 18720 18721 18722 18723# Check whether --enable-nls was given. 18724if test "${enable_nls+set}" = set; then : 18725 enableval=$enable_nls; enable_nls=$enableval 18726else 18727 enable_nls=yes 18728fi 18729 18730 18731USE_NLS="no" 18732if test "$enable_nls" = "yes"; then 18733 # Extract the first word of "msgfmt", so it can be a program name with args. 18734set dummy msgfmt; ac_word=$2 18735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18736$as_echo_n "checking for $ac_word... " >&6; } 18737if ${ac_cv_path_MSGFMT+:} false; then : 18738 $as_echo_n "(cached) " >&6 18739else 18740 case $MSGFMT in 18741 [\\/]* | ?:[\\/]*) 18742 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 18743 ;; 18744 *) 18745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18746for as_dir in $PATH 18747do 18748 IFS=$as_save_IFS 18749 test -z "$as_dir" && as_dir=. 18750 for ac_exec_ext in '' $ac_executable_extensions; do 18751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18752 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext" 18753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18754 break 2 18755 fi 18756done 18757 done 18758IFS=$as_save_IFS 18759 18760 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="none" 18761 ;; 18762esac 18763fi 18764MSGFMT=$ac_cv_path_MSGFMT 18765if test -n "$MSGFMT"; then 18766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 18767$as_echo "$MSGFMT" >&6; } 18768else 18769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18770$as_echo "no" >&6; } 18771fi 18772 18773 18774 # Extract the first word of "msgmerge", so it can be a program name with args. 18775set dummy msgmerge; ac_word=$2 18776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18777$as_echo_n "checking for $ac_word... " >&6; } 18778if ${ac_cv_path_MSGMERGE+:} false; then : 18779 $as_echo_n "(cached) " >&6 18780else 18781 case $MSGMERGE in 18782 [\\/]* | ?:[\\/]*) 18783 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 18784 ;; 18785 *) 18786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18787for as_dir in $PATH 18788do 18789 IFS=$as_save_IFS 18790 test -z "$as_dir" && as_dir=. 18791 for ac_exec_ext in '' $ac_executable_extensions; do 18792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18793 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext" 18794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18795 break 2 18796 fi 18797done 18798 done 18799IFS=$as_save_IFS 18800 18801 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE="none" 18802 ;; 18803esac 18804fi 18805MSGMERGE=$ac_cv_path_MSGMERGE 18806if test -n "$MSGMERGE"; then 18807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 18808$as_echo "$MSGMERGE" >&6; } 18809else 18810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18811$as_echo "no" >&6; } 18812fi 18813 18814 18815 # Extract the first word of "xgettext", so it can be a program name with args. 18816set dummy xgettext; ac_word=$2 18817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18818$as_echo_n "checking for $ac_word... " >&6; } 18819if ${ac_cv_path_XGETTEXT+:} false; then : 18820 $as_echo_n "(cached) " >&6 18821else 18822 case $XGETTEXT in 18823 [\\/]* | ?:[\\/]*) 18824 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 18825 ;; 18826 *) 18827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18828for as_dir in $PATH 18829do 18830 IFS=$as_save_IFS 18831 test -z "$as_dir" && as_dir=. 18832 for ac_exec_ext in '' $ac_executable_extensions; do 18833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18834 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext" 18835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18836 break 2 18837 fi 18838done 18839 done 18840IFS=$as_save_IFS 18841 18842 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT="none" 18843 ;; 18844esac 18845fi 18846XGETTEXT=$ac_cv_path_XGETTEXT 18847if test -n "$XGETTEXT"; then 18848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 18849$as_echo "$XGETTEXT" >&6; } 18850else 18851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18852$as_echo "no" >&6; } 18853fi 18854 18855 18856 if test "$MSGFMT" != "none"; then 18857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bindtextdomain" >&5 18858$as_echo_n "checking for library containing bindtextdomain... " >&6; } 18859if ${ac_cv_search_bindtextdomain+:} false; then : 18860 $as_echo_n "(cached) " >&6 18861else 18862 ac_func_search_save_LIBS=$LIBS 18863cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18864/* end confdefs.h. */ 18865 18866/* Override any GCC internal prototype to avoid an error. 18867 Use char because int might match the return type of a GCC 18868 builtin and then its argument prototype would still apply. */ 18869#ifdef __cplusplus 18870extern "C" 18871#endif 18872char bindtextdomain (); 18873int 18874main () 18875{ 18876return bindtextdomain (); 18877 ; 18878 return 0; 18879} 18880_ACEOF 18881for ac_lib in '' intl; do 18882 if test -z "$ac_lib"; then 18883 ac_res="none required" 18884 else 18885 ac_res=-l$ac_lib 18886 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18887 fi 18888 if ac_fn_c_try_link "$LINENO"; then : 18889 ac_cv_search_bindtextdomain=$ac_res 18890fi 18891rm -f core conftest.err conftest.$ac_objext \ 18892 conftest$ac_exeext 18893 if ${ac_cv_search_bindtextdomain+:} false; then : 18894 break 18895fi 18896done 18897if ${ac_cv_search_bindtextdomain+:} false; then : 18898 18899else 18900 ac_cv_search_bindtextdomain=no 18901fi 18902rm conftest.$ac_ext 18903LIBS=$ac_func_search_save_LIBS 18904fi 18905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bindtextdomain" >&5 18906$as_echo "$ac_cv_search_bindtextdomain" >&6; } 18907ac_res=$ac_cv_search_bindtextdomain 18908if test "$ac_res" != no; then : 18909 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18910 18911else 18912 18913 enable_nls="no" 18914 18915fi 18916 18917 if test "$enable_nls" = "no"; then 18918 # Destroy the cached result so we can test again 18919 unset ac_cv_search_bindtextdomain 18920 # On some systems, libintl needs libiconv to link properly, 18921 # so try again with -liconv. 18922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bindtextdomain" >&5 18923$as_echo_n "checking for library containing bindtextdomain... " >&6; } 18924if ${ac_cv_search_bindtextdomain+:} false; then : 18925 $as_echo_n "(cached) " >&6 18926else 18927 ac_func_search_save_LIBS=$LIBS 18928cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18929/* end confdefs.h. */ 18930 18931/* Override any GCC internal prototype to avoid an error. 18932 Use char because int might match the return type of a GCC 18933 builtin and then its argument prototype would still apply. */ 18934#ifdef __cplusplus 18935extern "C" 18936#endif 18937char bindtextdomain (); 18938int 18939main () 18940{ 18941return bindtextdomain (); 18942 ; 18943 return 0; 18944} 18945_ACEOF 18946for ac_lib in '' intl; do 18947 if test -z "$ac_lib"; then 18948 ac_res="none required" 18949 else 18950 ac_res=-l$ac_lib 18951 LIBS="-l$ac_lib -liconv $ac_func_search_save_LIBS" 18952 fi 18953 if ac_fn_c_try_link "$LINENO"; then : 18954 ac_cv_search_bindtextdomain=$ac_res 18955fi 18956rm -f core conftest.err conftest.$ac_objext \ 18957 conftest$ac_exeext 18958 if ${ac_cv_search_bindtextdomain+:} false; then : 18959 break 18960fi 18961done 18962if ${ac_cv_search_bindtextdomain+:} false; then : 18963 18964else 18965 ac_cv_search_bindtextdomain=no 18966fi 18967rm conftest.$ac_ext 18968LIBS=$ac_func_search_save_LIBS 18969fi 18970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bindtextdomain" >&5 18971$as_echo "$ac_cv_search_bindtextdomain" >&6; } 18972ac_res=$ac_cv_search_bindtextdomain 18973if test "$ac_res" != no; then : 18974 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18975 18976 enable_nls="yes" 18977 # This is here so that -liconv ends up in LIBS 18978 # if it worked with -liconv. 18979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5 18980$as_echo_n "checking for libiconv_open in -liconv... " >&6; } 18981if ${ac_cv_lib_iconv_libiconv_open+:} false; then : 18982 $as_echo_n "(cached) " >&6 18983else 18984 ac_check_lib_save_LIBS=$LIBS 18985LIBS="-liconv $LIBS" 18986cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18987/* end confdefs.h. */ 18988 18989/* Override any GCC internal prototype to avoid an error. 18990 Use char because int might match the return type of a GCC 18991 builtin and then its argument prototype would still apply. */ 18992#ifdef __cplusplus 18993extern "C" 18994#endif 18995char libiconv_open (); 18996int 18997main () 18998{ 18999return libiconv_open (); 19000 ; 19001 return 0; 19002} 19003_ACEOF 19004if ac_fn_c_try_link "$LINENO"; then : 19005 ac_cv_lib_iconv_libiconv_open=yes 19006else 19007 ac_cv_lib_iconv_libiconv_open=no 19008fi 19009rm -f core conftest.err conftest.$ac_objext \ 19010 conftest$ac_exeext conftest.$ac_ext 19011LIBS=$ac_check_lib_save_LIBS 19012fi 19013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5 19014$as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; } 19015if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then : 19016 cat >>confdefs.h <<_ACEOF 19017#define HAVE_LIBICONV 1 19018_ACEOF 19019 19020 LIBS="-liconv $LIBS" 19021 19022fi 19023 19024 19025else 19026 19027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bindtextdomain() not found. Disabling NLS." >&5 19028$as_echo "$as_me: WARNING: bindtextdomain() not found. Disabling NLS." >&2;} 19029 enable_nls="no" 19030 19031fi 19032 19033 fi 19034 if test "$enable_nls" = "yes"; then 19035 19036$as_echo "#define ENABLE_NLS 1" >>confdefs.h 19037 19038 USE_NLS="yes" 19039 fi 19040 fi 19041fi 19042 19043 19044 19045GETTEXT_CODESET=\# 19046NO_GETTEXT_CODESET=\# 19047if test $USE_NLS = "yes"; then 19048 for ac_func in bind_textdomain_codeset 19049do : 19050 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 19051if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : 19052 cat >>confdefs.h <<_ACEOF 19053#define HAVE_BIND_TEXTDOMAIN_CODESET 1 19054_ACEOF 19055 GETTEXT_CODESET="" 19056else 19057 NO_GETTEXT_CODESET="" 19058fi 19059done 19060 19061fi 19062 19063 19064 19065# Check if we are using GNU gettext. 19066GNU_GETTEXT=no 19067MSGFMTFLAGS='' 19068if test $USE_NLS = "yes"; then 19069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we are using GNU gettext" >&5 19070$as_echo_n "checking if we are using GNU gettext... " >&6; } 19071 if $MSGFMT --version 2>&1 | $EGREP GNU > /dev/null; then 19072 GNU_GETTEXT=yes 19073 MSGFMTFLAGS='-c' 19074 fi 19075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNU_GETTEXT" >&5 19076$as_echo "$GNU_GETTEXT" >&6; } 19077fi 19078 19079 19080 19081libmagic_found=no 19082 19083 19084# Check whether --with-libmagic was given. 19085if test "${with_libmagic+set}" = set; then : 19086 withval=$with_libmagic; 19087 if test "$withval" = "yes" ; then 19088 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default" 19089if test "x$ac_cv_header_magic_h" = xyes; then : 19090 19091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5 19092$as_echo_n "checking for magic_open in -lmagic... " >&6; } 19093if ${ac_cv_lib_magic_magic_open+:} false; then : 19094 $as_echo_n "(cached) " >&6 19095else 19096 ac_check_lib_save_LIBS=$LIBS 19097LIBS="-lmagic $LIBS" 19098cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19099/* end confdefs.h. */ 19100 19101/* Override any GCC internal prototype to avoid an error. 19102 Use char because int might match the return type of a GCC 19103 builtin and then its argument prototype would still apply. */ 19104#ifdef __cplusplus 19105extern "C" 19106#endif 19107char magic_open (); 19108int 19109main () 19110{ 19111return magic_open (); 19112 ; 19113 return 0; 19114} 19115_ACEOF 19116if ac_fn_c_try_link "$LINENO"; then : 19117 ac_cv_lib_magic_magic_open=yes 19118else 19119 ac_cv_lib_magic_magic_open=no 19120fi 19121rm -f core conftest.err conftest.$ac_objext \ 19122 conftest$ac_exeext conftest.$ac_ext 19123LIBS=$ac_check_lib_save_LIBS 19124fi 19125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5 19126$as_echo "$ac_cv_lib_magic_magic_open" >&6; } 19127if test "x$ac_cv_lib_magic_magic_open" = xyes; then : 19128 libmagic_found="builtin" 19129fi 19130 19131 19132fi 19133 19134 19135 libmagic_prefix="the default locations" 19136 elif test "$withval" != "no"; then 19137 libmagic_prefix=$withval 19138 save_cppflags="$CPPFLAGS" 19139 CPPFLAGS="$CPPFLAGS -I$libmagic_prefix/include" 19140 for ac_header in magic.h 19141do : 19142 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default" 19143if test "x$ac_cv_header_magic_h" = xyes; then : 19144 cat >>confdefs.h <<_ACEOF 19145#define HAVE_MAGIC_H 1 19146_ACEOF 19147 19148 save_ldflags="$LDFLAGS" 19149 LDFLAGS="-L$libmagic_prefix/lib" 19150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5 19151$as_echo_n "checking for magic_open in -lmagic... " >&6; } 19152if ${ac_cv_lib_magic_magic_open+:} false; then : 19153 $as_echo_n "(cached) " >&6 19154else 19155 ac_check_lib_save_LIBS=$LIBS 19156LIBS="-lmagic $LIBS" 19157cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19158/* end confdefs.h. */ 19159 19160/* Override any GCC internal prototype to avoid an error. 19161 Use char because int might match the return type of a GCC 19162 builtin and then its argument prototype would still apply. */ 19163#ifdef __cplusplus 19164extern "C" 19165#endif 19166char magic_open (); 19167int 19168main () 19169{ 19170return magic_open (); 19171 ; 19172 return 0; 19173} 19174_ACEOF 19175if ac_fn_c_try_link "$LINENO"; then : 19176 ac_cv_lib_magic_magic_open=yes 19177else 19178 ac_cv_lib_magic_magic_open=no 19179fi 19180rm -f core conftest.err conftest.$ac_objext \ 19181 conftest$ac_exeext conftest.$ac_ext 19182LIBS=$ac_check_lib_save_LIBS 19183fi 19184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5 19185$as_echo "$ac_cv_lib_magic_magic_open" >&6; } 19186if test "x$ac_cv_lib_magic_magic_open" = xyes; then : 19187 libmagic_found="yes" 19188fi 19189 19190 LDFLAGS="$save_ldflags" 19191 19192fi 19193 19194done 19195 19196 CPPFLAGS="$save_cppflags" 19197 fi 19198 if test "$withval" != "no" && test "$libmagic_found" = "no"; then 19199 as_fn_error $? "--with-libmagic requested, but libmagic not found at $libmagic_prefix" "$LINENO" 5 19200 fi 19201 19202else 19203 19204 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default" 19205if test "x$ac_cv_header_magic_h" = xyes; then : 19206 19207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5 19208$as_echo_n "checking for magic_open in -lmagic... " >&6; } 19209if ${ac_cv_lib_magic_magic_open+:} false; then : 19210 $as_echo_n "(cached) " >&6 19211else 19212 ac_check_lib_save_LIBS=$LIBS 19213LIBS="-lmagic $LIBS" 19214cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19215/* end confdefs.h. */ 19216 19217/* Override any GCC internal prototype to avoid an error. 19218 Use char because int might match the return type of a GCC 19219 builtin and then its argument prototype would still apply. */ 19220#ifdef __cplusplus 19221extern "C" 19222#endif 19223char magic_open (); 19224int 19225main () 19226{ 19227return magic_open (); 19228 ; 19229 return 0; 19230} 19231_ACEOF 19232if ac_fn_c_try_link "$LINENO"; then : 19233 ac_cv_lib_magic_magic_open=yes 19234else 19235 ac_cv_lib_magic_magic_open=no 19236fi 19237rm -f core conftest.err conftest.$ac_objext \ 19238 conftest$ac_exeext conftest.$ac_ext 19239LIBS=$ac_check_lib_save_LIBS 19240fi 19241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5 19242$as_echo "$ac_cv_lib_magic_magic_open" >&6; } 19243if test "x$ac_cv_lib_magic_magic_open" = xyes; then : 19244 libmagic_found="builtin" 19245fi 19246 19247 19248fi 19249 19250 19251 19252fi 19253 19254 19255if test "$libmagic_found" != "no"; then 19256 19257$as_echo "#define SVN_HAVE_LIBMAGIC 1" >>confdefs.h 19258 19259 SVN_MAGIC_LIBS="-lmagic" 19260fi 19261 19262if test "$libmagic_found" = "yes"; then 19263 SVN_MAGIC_INCLUDES="-I$libmagic_prefix/include" 19264 LDFLAGS="$LDFLAGS ` 19265 input_flags="-L$libmagic_prefix/lib" 19266 output_flags="" 19267 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 19268 for flag in $input_flags; do 19269 filter="no" 19270 for dir in $filtered_dirs; do 19271 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 19272 filter="yes" 19273 break 19274 fi 19275 done 19276 if test "$filter" = "no"; then 19277 output_flags="$output_flags $flag" 19278 fi 19279 done 19280 if test -n "$output_flags"; then 19281 printf "%s" "${output_flags# }" 19282 fi 19283`" 19284fi 19285 19286 19287 19288 19289 19290 19291# Check whether --with-kwallet was given. 19292if test "${with_kwallet+set}" = set; then : 19293 withval=$with_kwallet; svn_lib_kwallet="$withval" 19294else 19295 svn_lib_kwallet=no 19296fi 19297 19298 19299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for KWallet" >&5 19300$as_echo_n "checking whether to look for KWallet... " >&6; } 19301 if test "$svn_lib_kwallet" != "no"; then 19302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19303$as_echo "yes" >&6; } 19304 if test "$svn_enable_shared" = "yes"; then 19305 if test "$APR_HAS_DSO" = "yes"; then 19306 if test -n "$PKG_CONFIG"; then 19307 if test "$HAVE_DBUS" = "yes"; then 19308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QtCore, QtDBus, QtGui" >&5 19309$as_echo_n "checking for QtCore, QtDBus, QtGui... " >&6; } 19310 if $PKG_CONFIG --exists QtCore QtDBus QtGui; then 19311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19312$as_echo "yes" >&6; } 19313 if test "$svn_lib_kwallet" != "yes"; then 19314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kde4-config" >&5 19315$as_echo_n "checking for kde4-config... " >&6; } 19316 KDE4_CONFIG="$svn_lib_kwallet/bin/kde4-config" 19317 if test -f "$KDE4_CONFIG" && test -x "$KDE4_CONFIG"; then 19318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19319$as_echo "yes" >&6; } 19320 else 19321 KDE4_CONFIG="" 19322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19323$as_echo "no" >&6; } 19324 fi 19325 else 19326 # Extract the first word of "kde4-config", so it can be a program name with args. 19327set dummy kde4-config; ac_word=$2 19328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19329$as_echo_n "checking for $ac_word... " >&6; } 19330if ${ac_cv_path_KDE4_CONFIG+:} false; then : 19331 $as_echo_n "(cached) " >&6 19332else 19333 case $KDE4_CONFIG in 19334 [\\/]* | ?:[\\/]*) 19335 ac_cv_path_KDE4_CONFIG="$KDE4_CONFIG" # Let the user override the test with a path. 19336 ;; 19337 *) 19338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19339for as_dir in $PATH 19340do 19341 IFS=$as_save_IFS 19342 test -z "$as_dir" && as_dir=. 19343 for ac_exec_ext in '' $ac_executable_extensions; do 19344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19345 ac_cv_path_KDE4_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19347 break 2 19348 fi 19349done 19350 done 19351IFS=$as_save_IFS 19352 19353 ;; 19354esac 19355fi 19356KDE4_CONFIG=$ac_cv_path_KDE4_CONFIG 19357if test -n "$KDE4_CONFIG"; then 19358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KDE4_CONFIG" >&5 19359$as_echo "$KDE4_CONFIG" >&6; } 19360else 19361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19362$as_echo "no" >&6; } 19363fi 19364 19365 19366 fi 19367 if test -n "$KDE4_CONFIG"; then 19368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KWallet" >&5 19369$as_echo_n "checking for KWallet... " >&6; } 19370 old_CXXFLAGS="$CXXFLAGS" 19371 old_LDFLAGS="$LDFLAGS" 19372 old_LIBS="$LIBS" 19373 for d in `$PKG_CONFIG --cflags QtCore QtDBus QtGui`; do 19374 if test -n "`echo "$d" | $EGREP -- '^-D[^[:space:]]*'`"; then 19375 CPPFLAGS="$CPPFLAGS $d" 19376 fi 19377 done 19378 qt_include_dirs="`$PKG_CONFIG --cflags-only-I QtCore QtDBus QtGui`" 19379 kde_dir="`$KDE4_CONFIG --prefix`" 19380 SVN_KWALLET_INCLUDES="$DBUS_CPPFLAGS $qt_include_dirs -I$kde_dir/include" 19381 qt_libs_other_options="`$PKG_CONFIG --libs-only-other QtCore QtDBus QtGui`" 19382 SVN_KWALLET_LIBS="$DBUS_LIBS -lQtCore -lQtDBus -lQtGui -lkdecore -lkdeui $qt_libs_other_options" 19383 CXXFLAGS="$CXXFLAGS $SVN_KWALLET_INCLUDES" 19384 LIBS="$LIBS $SVN_KWALLET_LIBS" 19385 qt_lib_dirs="`$PKG_CONFIG --libs-only-L QtCore QtDBus QtGui`" 19386 kde_lib_suffix="`$KDE4_CONFIG --libsuffix`" 19387 LDFLAGS="$old_LDFLAGS ` 19388 input_flags="$qt_lib_dirs -L$kde_dir/lib$kde_lib_suffix" 19389 output_flags="" 19390 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 19391 for flag in $input_flags; do 19392 filter="no" 19393 for dir in $filtered_dirs; do 19394 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 19395 filter="yes" 19396 break 19397 fi 19398 done 19399 if test "$filter" = "no"; then 19400 output_flags="$output_flags $flag" 19401 fi 19402 done 19403 if test -n "$output_flags"; then 19404 printf "%s" "${output_flags# }" 19405 fi 19406`" 19407 ac_ext=cpp 19408ac_cpp='$CXXCPP $CPPFLAGS' 19409ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19410ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19411ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19412 19413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19414/* end confdefs.h. */ 19415 19416#include <kwallet.h> 19417int main() 19418{KWallet::Wallet::walletList();} 19419_ACEOF 19420if ac_fn_cxx_try_link "$LINENO"; then : 19421 svn_lib_kwallet="yes" 19422else 19423 svn_lib_kwallet="no" 19424fi 19425rm -f core conftest.err conftest.$ac_objext \ 19426 conftest$ac_exeext conftest.$ac_ext 19427 ac_ext=c 19428ac_cpp='$CPP $CPPFLAGS' 19429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19431ac_compiler_gnu=$ac_cv_c_compiler_gnu 19432 19433 if test "$svn_lib_kwallet" = "yes"; then 19434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19435$as_echo "yes" >&6; } 19436 CXXFLAGS="$old_CXXFLAGS" 19437 LIBS="$old_LIBS" 19438 else 19439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19440$as_echo "no" >&6; } 19441 as_fn_error $? "cannot find KWallet" "$LINENO" 5 19442 fi 19443 else 19444 as_fn_error $? "cannot find kde4-config" "$LINENO" 5 19445 fi 19446 else 19447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19448$as_echo "no" >&6; } 19449 as_fn_error $? "cannot find QtCore, QtDBus, QtGui" "$LINENO" 5 19450 fi 19451 else 19452 as_fn_error $? "cannot find D-Bus" "$LINENO" 5 19453 fi 19454 else 19455 as_fn_error $? "cannot find pkg-config" "$LINENO" 5 19456 fi 19457 else 19458 as_fn_error $? "APR does not have support for DSOs" "$LINENO" 5 19459 fi 19460 else 19461 as_fn_error $? "--with-kwallet conflicts with --disable-shared" "$LINENO" 5 19462 fi 19463 else 19464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19465$as_echo "no" >&6; } 19466 fi 19467 19468 19469 19470 19471if test "$svn_lib_kwallet" = "yes"; then 19472 19473$as_echo "#define SVN_HAVE_KWALLET 1" >>confdefs.h 19474 19475fi 19476 19477# Check whether --enable-plaintext-password-storage was given. 19478if test "${enable_plaintext_password_storage+set}" = set; then : 19479 enableval=$enable_plaintext_password_storage; 19480 if test "$enableval" = "no"; then 19481 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling plaintext password/passphrase storage" >&5 19482$as_echo "$as_me: Disabling plaintext password/passphrase storage" >&6;} 19483 19484$as_echo "#define SVN_DISABLE_PLAINTEXT_PASSWORD_STORAGE 1" >>confdefs.h 19485 19486 fi 19487 19488fi 19489 19490 19491 19492INSTALL_STATIC_RULES="install-bin install-docs" 19493INSTALL_RULES="install-fsmod-lib install-ramod-lib install-lib install-include install-static" 19494INSTALL_RULES="$INSTALL_RULES $INSTALL_APACHE_RULE" 19495BUILD_RULES="fsmod-lib ramod-lib lib bin test sub-test $BUILD_APACHE_RULE tools" 19496 19497if test "$svn_lib_berkeley_db" = "yes"; then 19498 BUILD_RULES="$BUILD_RULES bdb-lib bdb-test" 19499 INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-fsmod-lib/install-fsmod-lib install-bdb-lib/'`" 19500 INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-bdb-lib" 19501 BDB_TEST_DEPS="\$(BDB_TEST_DEPS)" 19502 BDB_TEST_PROGRAMS="\$(BDB_TEST_PROGRAMS)" 19503fi 19504 19505if test "$svn_lib_serf" = "yes"; then 19506 BUILD_RULES="$BUILD_RULES serf-lib" 19507 INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-ramod-lib/install-ramod-lib install-serf-lib/'`" 19508 INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-serf-lib" 19509fi 19510 19511if test "$svn_lib_kwallet" = "yes"; then 19512 BUILD_RULES="$BUILD_RULES kwallet-lib" 19513 INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-lib/install-lib install-kwallet-lib/'`" 19514 INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-kwallet-lib" 19515fi 19516 19517if test "$found_gnome_keyring" = "yes"; then 19518 BUILD_RULES="$BUILD_RULES gnome-keyring-lib" 19519 INSTALL_RULES="`echo $INSTALL_RULES | $SED 's/install-lib/install-lib install-gnome-keyring-lib/'`" 19520 INSTALL_STATIC_RULES="$INSTALL_STATIC_RULES install-gnome-keyring-lib" 19521fi 19522 19523if test "$USE_NLS" = "yes"; then 19524 BUILD_RULES="$BUILD_RULES locale" 19525 INSTALL_RULES="$INSTALL_RULES install-locale" 19526fi 19527 19528 19529 19530 19531 19532 19533 19534 19535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 19536$as_echo_n "checking for ANSI C header files... " >&6; } 19537if ${ac_cv_header_stdc+:} false; then : 19538 $as_echo_n "(cached) " >&6 19539else 19540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19541/* end confdefs.h. */ 19542#include <stdlib.h> 19543#include <stdarg.h> 19544#include <string.h> 19545#include <float.h> 19546 19547int 19548main () 19549{ 19550 19551 ; 19552 return 0; 19553} 19554_ACEOF 19555if ac_fn_c_try_compile "$LINENO"; then : 19556 ac_cv_header_stdc=yes 19557else 19558 ac_cv_header_stdc=no 19559fi 19560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19561 19562if test $ac_cv_header_stdc = yes; then 19563 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 19564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19565/* end confdefs.h. */ 19566#include <string.h> 19567 19568_ACEOF 19569if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19570 $EGREP "memchr" >/dev/null 2>&1; then : 19571 19572else 19573 ac_cv_header_stdc=no 19574fi 19575rm -f conftest* 19576 19577fi 19578 19579if test $ac_cv_header_stdc = yes; then 19580 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 19581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19582/* end confdefs.h. */ 19583#include <stdlib.h> 19584 19585_ACEOF 19586if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19587 $EGREP "free" >/dev/null 2>&1; then : 19588 19589else 19590 ac_cv_header_stdc=no 19591fi 19592rm -f conftest* 19593 19594fi 19595 19596if test $ac_cv_header_stdc = yes; then 19597 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 19598 if test "$cross_compiling" = yes; then : 19599 : 19600else 19601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19602/* end confdefs.h. */ 19603#include <ctype.h> 19604#include <stdlib.h> 19605#if ((' ' & 0x0FF) == 0x020) 19606# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 19607# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 19608#else 19609# define ISLOWER(c) \ 19610 (('a' <= (c) && (c) <= 'i') \ 19611 || ('j' <= (c) && (c) <= 'r') \ 19612 || ('s' <= (c) && (c) <= 'z')) 19613# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 19614#endif 19615 19616#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 19617int 19618main () 19619{ 19620 int i; 19621 for (i = 0; i < 256; i++) 19622 if (XOR (islower (i), ISLOWER (i)) 19623 || toupper (i) != TOUPPER (i)) 19624 return 2; 19625 return 0; 19626} 19627_ACEOF 19628if ac_fn_c_try_run "$LINENO"; then : 19629 19630else 19631 ac_cv_header_stdc=no 19632fi 19633rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19634 conftest.$ac_objext conftest.beam conftest.$ac_ext 19635fi 19636 19637fi 19638fi 19639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 19640$as_echo "$ac_cv_header_stdc" >&6; } 19641if test $ac_cv_header_stdc = yes; then 19642 19643$as_echo "#define STDC_HEADERS 1" >>confdefs.h 19644 19645fi 19646 19647 19648 19649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 19650$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 19651if ${ac_cv_c_const+:} false; then : 19652 $as_echo_n "(cached) " >&6 19653else 19654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19655/* end confdefs.h. */ 19656 19657int 19658main () 19659{ 19660 19661#ifndef __cplusplus 19662 /* Ultrix mips cc rejects this sort of thing. */ 19663 typedef int charset[2]; 19664 const charset cs = { 0, 0 }; 19665 /* SunOS 4.1.1 cc rejects this. */ 19666 char const *const *pcpcc; 19667 char **ppc; 19668 /* NEC SVR4.0.2 mips cc rejects this. */ 19669 struct point {int x, y;}; 19670 static struct point const zero = {0,0}; 19671 /* AIX XL C 1.02.0.0 rejects this. 19672 It does not let you subtract one const X* pointer from another in 19673 an arm of an if-expression whose if-part is not a constant 19674 expression */ 19675 const char *g = "string"; 19676 pcpcc = &g + (g ? g-g : 0); 19677 /* HPUX 7.0 cc rejects these. */ 19678 ++pcpcc; 19679 ppc = (char**) pcpcc; 19680 pcpcc = (char const *const *) ppc; 19681 { /* SCO 3.2v4 cc rejects this sort of thing. */ 19682 char tx; 19683 char *t = &tx; 19684 char const *s = 0 ? (char *) 0 : (char const *) 0; 19685 19686 *t++ = 0; 19687 if (s) return 0; 19688 } 19689 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 19690 int x[] = {25, 17}; 19691 const int *foo = &x[0]; 19692 ++foo; 19693 } 19694 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 19695 typedef const int *iptr; 19696 iptr p = 0; 19697 ++p; 19698 } 19699 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 19700 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 19701 struct s { int j; const int *ap[3]; } bx; 19702 struct s *b = &bx; b->j = 5; 19703 } 19704 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 19705 const int foo = 10; 19706 if (!foo) return 0; 19707 } 19708 return !cs[0] && !zero.x; 19709#endif 19710 19711 ; 19712 return 0; 19713} 19714_ACEOF 19715if ac_fn_c_try_compile "$LINENO"; then : 19716 ac_cv_c_const=yes 19717else 19718 ac_cv_c_const=no 19719fi 19720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19721fi 19722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 19723$as_echo "$ac_cv_c_const" >&6; } 19724if test $ac_cv_c_const = no; then 19725 19726$as_echo "#define const /**/" >>confdefs.h 19727 19728fi 19729 19730 19731ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 19732if test "x$ac_cv_type_size_t" = xyes; then : 19733 19734else 19735 19736cat >>confdefs.h <<_ACEOF 19737#define size_t unsigned int 19738_ACEOF 19739 19740fi 19741 19742 19743 19744 19745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 19746$as_echo_n "checking for working memcmp... " >&6; } 19747if ${ac_cv_func_memcmp_working+:} false; then : 19748 $as_echo_n "(cached) " >&6 19749else 19750 if test "$cross_compiling" = yes; then : 19751 ac_cv_func_memcmp_working=no 19752else 19753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19754/* end confdefs.h. */ 19755$ac_includes_default 19756int 19757main () 19758{ 19759 19760 /* Some versions of memcmp are not 8-bit clean. */ 19761 char c0 = '\100', c1 = '\200', c2 = '\201'; 19762 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 19763 return 1; 19764 19765 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 19766 or more and with at least one buffer not starting on a 4-byte boundary. 19767 William Lewis provided this test program. */ 19768 { 19769 char foo[21]; 19770 char bar[21]; 19771 int i; 19772 for (i = 0; i < 4; i++) 19773 { 19774 char *a = foo + i; 19775 char *b = bar + i; 19776 strcpy (a, "--------01111111"); 19777 strcpy (b, "--------10000000"); 19778 if (memcmp (a, b, 16) >= 0) 19779 return 1; 19780 } 19781 return 0; 19782 } 19783 19784 ; 19785 return 0; 19786} 19787_ACEOF 19788if ac_fn_c_try_run "$LINENO"; then : 19789 ac_cv_func_memcmp_working=yes 19790else 19791 ac_cv_func_memcmp_working=no 19792fi 19793rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19794 conftest.$ac_objext conftest.beam conftest.$ac_ext 19795fi 19796 19797fi 19798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 19799$as_echo "$ac_cv_func_memcmp_working" >&6; } 19800test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in 19801 *" memcmp.$ac_objext "* ) ;; 19802 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 19803 ;; 19804esac 19805 19806 19807 19808for ac_func in vprintf 19809do : 19810 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 19811if test "x$ac_cv_func_vprintf" = xyes; then : 19812 cat >>confdefs.h <<_ACEOF 19813#define HAVE_VPRINTF 1 19814_ACEOF 19815 19816ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 19817if test "x$ac_cv_func__doprnt" = xyes; then : 19818 19819$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 19820 19821fi 19822 19823fi 19824done 19825 19826 19827 19828for ac_func in symlink readlink 19829do : 19830 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19831ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19832if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19833 cat >>confdefs.h <<_ACEOF 19834#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19835_ACEOF 19836 19837fi 19838done 19839 19840 19841for ac_header in sys/utsname.h 19842do : 19843 ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default" 19844if test "x$ac_cv_header_sys_utsname_h" = xyes; then : 19845 cat >>confdefs.h <<_ACEOF 19846#define HAVE_SYS_UTSNAME_H 1 19847_ACEOF 19848 for ac_func in uname 19849do : 19850 ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname" 19851if test "x$ac_cv_func_uname" = xyes; then : 19852 cat >>confdefs.h <<_ACEOF 19853#define HAVE_UNAME 1 19854_ACEOF 19855 19856fi 19857done 19858 19859fi 19860 19861done 19862 19863 19864ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default" 19865if test "x$ac_cv_header_termios_h" = xyes; then : 19866 19867 for ac_func in tcgetattr tcsetattr 19868do : 19869 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19870ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19871if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19872 cat >>confdefs.h <<_ACEOF 19873#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19874_ACEOF 19875 19876 19877$as_echo "#define HAVE_TERMIOS_H 1" >>confdefs.h 19878 19879 19880fi 19881done 19882 19883 19884fi 19885 19886 19887 19888 19889 19890# Check whether --with-openssl was given. 19891if test "${with_openssl+set}" = set; then : 19892 withval=$with_openssl; 19893fi 19894 19895 19896# Check whether --enable-debug was given. 19897if test "${enable_debug+set}" = set; then : 19898 enableval=$enable_debug; 19899 if test "$enableval" = "yes" ; then 19900 enable_debugging="yes" 19901 else 19902 enable_debugging="no" 19903 fi 19904 19905else 19906 19907 # Neither --enable-debug nor --disable-debug was passed. 19908 enable_debugging="maybe" 19909 19910fi 19911 19912 19913# Check whether --enable-optimize was given. 19914if test "${enable_optimize+set}" = set; then : 19915 enableval=$enable_optimize; 19916 if test "$enableval" = "yes" ; then 19917 enable_optimization="yes" 19918 else 19919 enable_optimization="no" 19920 fi 19921 19922else 19923 19924 # Neither --enable-optimize nor --disable-optimize was passed. 19925 enable_optimization="maybe" 19926 19927fi 19928 19929 19930# Check whether --enable-disallowing-of-undefined-references was given. 19931if test "${enable_disallowing_of_undefined_references+set}" = set; then : 19932 enableval=$enable_disallowing_of_undefined_references; 19933fi 19934 19935if test "$enable_disallowing_of_undefined_references" != "yes" && test "`uname`" != "Linux"; then 19936 enable_disallowing_of_undefined_references="no" 19937fi 19938if test "$enable_disallowing_of_undefined_references" != "no"; then 19939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-undefined" >&5 19940$as_echo_n "checking for -Wl,--no-undefined... " >&6; } 19941 old_LDFLAGS="$LDFLAGS" 19942 LDFLAGS="$LDFLAGS -Wl,--no-undefined" 19943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19944/* end confdefs.h. */ 19945int main(){;} 19946_ACEOF 19947if ac_fn_c_try_link "$LINENO"; then : 19948 svn_wl_no_undefined="yes" 19949else 19950 svn_wl_no_undefined="no" 19951fi 19952rm -f core conftest.err conftest.$ac_objext \ 19953 conftest$ac_exeext conftest.$ac_ext 19954 LDFLAGS="$old_LDFLAGS" 19955 if test "$svn_wl_no_undefined" = "yes"; then 19956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19957$as_echo "yes" >&6; } 19958 for library_dir in "$abs_srcdir/subversion/libsvn_"*; do 19959 eval "`basename $library_dir`_LDFLAGS=-Wl,--no-undefined" 19960 done 19961 else 19962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19963$as_echo "no" >&6; } 19964 if test "$enable_disallowing_of_undefined_references" = "yes"; then 19965 as_fn_error $? "--enable-disallowing-of-undefined-references explicitly requested, but -Wl,--no-undefined not supported" "$LINENO" 5 19966 fi 19967 fi 19968fi 19969 19970 19971 19972 19973 19974 19975 19976 19977 19978 19979 19980 19981 19982 19983 19984 19985 19986 19987# Check whether --enable-maintainer-mode was given. 19988if test "${enable_maintainer_mode+set}" = set; then : 19989 enableval=$enable_maintainer_mode; 19990 if test "$enableval" = "yes" ; then 19991 if test "$enable_debugging" = "no" ; then 19992 as_fn_error $? "Can't have --disable-debug and --enable-maintainer-mode" "$LINENO" 5 19993 fi 19994 enable_debugging=yes 19995 19996 if test "$GCC" = "yes"; then 19997 { $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: adding GCC warning flags" >&5 19998$as_echo "$as_me: maintainer-mode: adding GCC warning flags" >&6;} 19999 20000 20001 CFLAGS_KEEP="$CFLAGS" 20002 CFLAGS="" 20003 20004 20005 _svn_xxflags__save="$CFLAGS" 20006 ac_ext=c 20007ac_cpp='$CPP $CPPFLAGS' 20008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20010ac_compiler_gnu=$ac_cv_c_compiler_gnu 20011 20012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=implicit-function-declaration" >&5 20013$as_echo_n "checking if $CC accepts -Werror=implicit-function-declaration... " >&6; } 20014 CFLAGS="-Werror=implicit-function-declaration $CFLAGS" 20015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20016/* end confdefs.h. */ 20017 20018_ACEOF 20019if ac_fn_c_try_compile "$LINENO"; then : 20020 20021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20022$as_echo "yes" >&6; } 20023 20024 20025else 20026 20027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20028$as_echo "no" >&6; } 20029 CFLAGS="$_svn_xxflags__save" 20030 20031 20032fi 20033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20034 ac_ext=c 20035ac_cpp='$CPP $CPPFLAGS' 20036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20038ac_compiler_gnu=$ac_cv_c_compiler_gnu 20039 20040 20041 20042 _svn_xxflags__save="$CFLAGS" 20043 ac_ext=c 20044ac_cpp='$CPP $CPPFLAGS' 20045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20047ac_compiler_gnu=$ac_cv_c_compiler_gnu 20048 20049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=declaration-after-statement" >&5 20050$as_echo_n "checking if $CC accepts -Werror=declaration-after-statement... " >&6; } 20051 CFLAGS="-Werror=declaration-after-statement $CFLAGS" 20052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20053/* end confdefs.h. */ 20054 20055_ACEOF 20056if ac_fn_c_try_compile "$LINENO"; then : 20057 20058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20059$as_echo "yes" >&6; } 20060 20061 20062else 20063 20064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20065$as_echo "no" >&6; } 20066 CFLAGS="$_svn_xxflags__save" 20067 20068 20069fi 20070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20071 ac_ext=c 20072ac_cpp='$CPP $CPPFLAGS' 20073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20075ac_compiler_gnu=$ac_cv_c_compiler_gnu 20076 20077 20078 20079 _svn_xxflags__save="$CFLAGS" 20080 ac_ext=c 20081ac_cpp='$CPP $CPPFLAGS' 20082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20084ac_compiler_gnu=$ac_cv_c_compiler_gnu 20085 20086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wextra-tokens" >&5 20087$as_echo_n "checking if $CC accepts -Wextra-tokens... " >&6; } 20088 CFLAGS="-Wextra-tokens $CFLAGS" 20089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20090/* end confdefs.h. */ 20091 20092_ACEOF 20093if ac_fn_c_try_compile "$LINENO"; then : 20094 20095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20096$as_echo "yes" >&6; } 20097 20098 20099else 20100 20101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20102$as_echo "no" >&6; } 20103 CFLAGS="$_svn_xxflags__save" 20104 20105 20106fi 20107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20108 ac_ext=c 20109ac_cpp='$CPP $CPPFLAGS' 20110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20112ac_compiler_gnu=$ac_cv_c_compiler_gnu 20113 20114 20115 20116 _svn_xxflags__save="$CFLAGS" 20117 ac_ext=c 20118ac_cpp='$CPP $CPPFLAGS' 20119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20121ac_compiler_gnu=$ac_cv_c_compiler_gnu 20122 20123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wnewline-eof" >&5 20124$as_echo_n "checking if $CC accepts -Wnewline-eof... " >&6; } 20125 CFLAGS="-Wnewline-eof $CFLAGS" 20126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20127/* end confdefs.h. */ 20128 20129_ACEOF 20130if ac_fn_c_try_compile "$LINENO"; then : 20131 20132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20133$as_echo "yes" >&6; } 20134 20135 20136else 20137 20138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20139$as_echo "no" >&6; } 20140 CFLAGS="$_svn_xxflags__save" 20141 20142 20143fi 20144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20145 ac_ext=c 20146ac_cpp='$CPP $CPPFLAGS' 20147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20149ac_compiler_gnu=$ac_cv_c_compiler_gnu 20150 20151 20152 20153 _svn_xxflags__save="$CFLAGS" 20154 ac_ext=c 20155ac_cpp='$CPP $CPPFLAGS' 20156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20158ac_compiler_gnu=$ac_cv_c_compiler_gnu 20159 20160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wshorten-64-to-32" >&5 20161$as_echo_n "checking if $CC accepts -Wshorten-64-to-32... " >&6; } 20162 CFLAGS="-Wshorten-64-to-32 $CFLAGS" 20163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20164/* end confdefs.h. */ 20165 20166_ACEOF 20167if ac_fn_c_try_compile "$LINENO"; then : 20168 20169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20170$as_echo "yes" >&6; } 20171 20172 20173else 20174 20175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20176$as_echo "no" >&6; } 20177 CFLAGS="$_svn_xxflags__save" 20178 20179 20180fi 20181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20182 ac_ext=c 20183ac_cpp='$CPP $CPPFLAGS' 20184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20186ac_compiler_gnu=$ac_cv_c_compiler_gnu 20187 20188 20189 20190 _svn_xxflags__save="$CFLAGS" 20191 ac_ext=c 20192ac_cpp='$CPP $CPPFLAGS' 20193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20195ac_compiler_gnu=$ac_cv_c_compiler_gnu 20196 20197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wold-style-definition" >&5 20198$as_echo_n "checking if $CC accepts -Wold-style-definition... " >&6; } 20199 CFLAGS="-Wold-style-definition $CFLAGS" 20200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20201/* end confdefs.h. */ 20202 20203_ACEOF 20204if ac_fn_c_try_compile "$LINENO"; then : 20205 20206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20207$as_echo "yes" >&6; } 20208 20209 20210else 20211 20212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20213$as_echo "no" >&6; } 20214 CFLAGS="$_svn_xxflags__save" 20215 20216 20217fi 20218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20219 ac_ext=c 20220ac_cpp='$CPP $CPPFLAGS' 20221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20223ac_compiler_gnu=$ac_cv_c_compiler_gnu 20224 20225 20226 20227 _svn_xxflags__save="$CFLAGS" 20228 ac_ext=c 20229ac_cpp='$CPP $CPPFLAGS' 20230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20232ac_compiler_gnu=$ac_cv_c_compiler_gnu 20233 20234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-system-headers" >&5 20235$as_echo_n "checking if $CC accepts -Wno-system-headers... " >&6; } 20236 CFLAGS="-Wno-system-headers $CFLAGS" 20237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20238/* end confdefs.h. */ 20239 20240_ACEOF 20241if ac_fn_c_try_compile "$LINENO"; then : 20242 20243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20244$as_echo "yes" >&6; } 20245 20246 20247else 20248 20249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20250$as_echo "no" >&6; } 20251 CFLAGS="$_svn_xxflags__save" 20252 20253 20254fi 20255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20256 ac_ext=c 20257ac_cpp='$CPP $CPPFLAGS' 20258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20260ac_compiler_gnu=$ac_cv_c_compiler_gnu 20261 20262 20263 20264 _svn_xxflags__save="$CFLAGS" 20265 ac_ext=c 20266ac_cpp='$CPP $CPPFLAGS' 20267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20269ac_compiler_gnu=$ac_cv_c_compiler_gnu 20270 20271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-format-nonliteral" >&5 20272$as_echo_n "checking if $CC accepts -Wno-format-nonliteral... " >&6; } 20273 CFLAGS="-Wno-format-nonliteral $CFLAGS" 20274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20275/* end confdefs.h. */ 20276 20277_ACEOF 20278if ac_fn_c_try_compile "$LINENO"; then : 20279 20280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20281$as_echo "yes" >&6; } 20282 20283 20284else 20285 20286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20287$as_echo "no" >&6; } 20288 CFLAGS="$_svn_xxflags__save" 20289 20290 20291fi 20292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20293 ac_ext=c 20294ac_cpp='$CPP $CPPFLAGS' 20295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20297ac_compiler_gnu=$ac_cv_c_compiler_gnu 20298 20299 20300 20301 CMAINTAINERFLAGS="$CFLAGS $CMAINTAINERFLAGS" 20302 CFLAGS="$CFLAGS_KEEP" 20303 20304 CMAINTAINERFLAGS="-Wall -Wpointer-arith -Wwrite-strings -Wshadow -Wformat=2 -Wunused -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wno-multichar -Wredundant-decls -Wnested-externs -Winline -Wno-long-long $CMAINTAINERFLAGS" 20305 fi 20306 if test "$GXX" = "yes"; then 20307 { $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: adding G++ warning flags" >&5 20308$as_echo "$as_me: maintainer-mode: adding G++ warning flags" >&6;} 20309 20310 CXXFLAGS_KEEP="$CXXFLAGS" 20311 CXXFLAGS="" 20312 20313 20314 _svn_xxflags__save="$CXXFLAGS" 20315 ac_ext=cpp 20316ac_cpp='$CXXCPP $CPPFLAGS' 20317ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20318ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20319ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20320 20321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wextra-tokens" >&5 20322$as_echo_n "checking if $CXX accepts -Wextra-tokens... " >&6; } 20323 CXXFLAGS="-Wextra-tokens $CXXFLAGS" 20324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20325/* end confdefs.h. */ 20326 20327_ACEOF 20328if ac_fn_cxx_try_compile "$LINENO"; then : 20329 20330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20331$as_echo "yes" >&6; } 20332 20333 20334else 20335 20336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20337$as_echo "no" >&6; } 20338 CXXFLAGS="$_svn_xxflags__save" 20339 20340 20341fi 20342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20343 ac_ext=c 20344ac_cpp='$CPP $CPPFLAGS' 20345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20347ac_compiler_gnu=$ac_cv_c_compiler_gnu 20348 20349 20350 20351 _svn_xxflags__save="$CXXFLAGS" 20352 ac_ext=cpp 20353ac_cpp='$CXXCPP $CPPFLAGS' 20354ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20355ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20356ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20357 20358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wnewline-eof" >&5 20359$as_echo_n "checking if $CXX accepts -Wnewline-eof... " >&6; } 20360 CXXFLAGS="-Wnewline-eof $CXXFLAGS" 20361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20362/* end confdefs.h. */ 20363 20364_ACEOF 20365if ac_fn_cxx_try_compile "$LINENO"; then : 20366 20367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20368$as_echo "yes" >&6; } 20369 20370 20371else 20372 20373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20374$as_echo "no" >&6; } 20375 CXXFLAGS="$_svn_xxflags__save" 20376 20377 20378fi 20379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20380 ac_ext=c 20381ac_cpp='$CPP $CPPFLAGS' 20382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20384ac_compiler_gnu=$ac_cv_c_compiler_gnu 20385 20386 20387 20388 _svn_xxflags__save="$CXXFLAGS" 20389 ac_ext=cpp 20390ac_cpp='$CXXCPP $CPPFLAGS' 20391ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20392ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20393ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20394 20395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wshorten-64-to-32" >&5 20396$as_echo_n "checking if $CXX accepts -Wshorten-64-to-32... " >&6; } 20397 CXXFLAGS="-Wshorten-64-to-32 $CXXFLAGS" 20398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20399/* end confdefs.h. */ 20400 20401_ACEOF 20402if ac_fn_cxx_try_compile "$LINENO"; then : 20403 20404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20405$as_echo "yes" >&6; } 20406 20407 20408else 20409 20410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20411$as_echo "no" >&6; } 20412 CXXFLAGS="$_svn_xxflags__save" 20413 20414 20415fi 20416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20417 ac_ext=c 20418ac_cpp='$CPP $CPPFLAGS' 20419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20421ac_compiler_gnu=$ac_cv_c_compiler_gnu 20422 20423 20424 20425 _svn_xxflags__save="$CXXFLAGS" 20426 ac_ext=cpp 20427ac_cpp='$CXXCPP $CPPFLAGS' 20428ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20429ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20430ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20431 20432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wno-system-headers" >&5 20433$as_echo_n "checking if $CXX accepts -Wno-system-headers... " >&6; } 20434 CXXFLAGS="-Wno-system-headers $CXXFLAGS" 20435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20436/* end confdefs.h. */ 20437 20438_ACEOF 20439if ac_fn_cxx_try_compile "$LINENO"; then : 20440 20441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20442$as_echo "yes" >&6; } 20443 20444 20445else 20446 20447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20448$as_echo "no" >&6; } 20449 CXXFLAGS="$_svn_xxflags__save" 20450 20451 20452fi 20453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20454 ac_ext=c 20455ac_cpp='$CPP $CPPFLAGS' 20456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20458ac_compiler_gnu=$ac_cv_c_compiler_gnu 20459 20460 20461 20462 CXXMAINTAINERFLAGS="$CXXFLAGS $CXXMAINTAINERFLAGS" 20463 CXXFLAGS="$CXXFLAGS_KEEP" 20464 20465 CXXMAINTAINERFLAGS="-Wall -Wpointer-arith -Wwrite-strings -Wshadow -Wunused -Wunreachable-code $CXXMAINTAINERFLAGS" 20466 fi 20467 fi 20468 20469fi 20470 20471 20472if test "$enable_debugging" = "yes" ; then 20473 if test "$enable_optimization" != "yes"; then 20474 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling optimizations for debugging" >&5 20475$as_echo "$as_me: Disabling optimizations for debugging" >&6;} 20476 CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`" 20477 CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`" 20478 fi 20479 if test -z "`echo $CUSERFLAGS' ' | $EGREP -- '-g[0-9]? '`"; then 20480 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling debugging for C" >&5 20481$as_echo "$as_me: Enabling debugging for C" >&6;} 20482 CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`" 20483 20484 _svn_xxflags__save="$CFLAGS" 20485 ac_ext=c 20486ac_cpp='$CPP $CPPFLAGS' 20487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20489ac_compiler_gnu=$ac_cv_c_compiler_gnu 20490 20491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-inline" >&5 20492$as_echo_n "checking if $CC accepts -fno-inline... " >&6; } 20493 CFLAGS="-fno-inline $CFLAGS" 20494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20495/* end confdefs.h. */ 20496 20497_ACEOF 20498if ac_fn_c_try_compile "$LINENO"; then : 20499 20500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20501$as_echo "yes" >&6; } 20502 20503 20504else 20505 20506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20507$as_echo "no" >&6; } 20508 CFLAGS="$_svn_xxflags__save" 20509 20510 20511fi 20512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20513 ac_ext=c 20514ac_cpp='$CPP $CPPFLAGS' 20515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20517ac_compiler_gnu=$ac_cv_c_compiler_gnu 20518 20519 20520 20521 _svn_xxflags__save="$CFLAGS" 20522 ac_ext=c 20523ac_cpp='$CPP $CPPFLAGS' 20524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20526ac_compiler_gnu=$ac_cv_c_compiler_gnu 20527 20528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-omit-frame-pointer" >&5 20529$as_echo_n "checking if $CC accepts -fno-omit-frame-pointer... " >&6; } 20530 CFLAGS="-fno-omit-frame-pointer $CFLAGS" 20531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20532/* end confdefs.h. */ 20533 20534_ACEOF 20535if ac_fn_c_try_compile "$LINENO"; then : 20536 20537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20538$as_echo "yes" >&6; } 20539 20540 20541else 20542 20543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20544$as_echo "no" >&6; } 20545 CFLAGS="$_svn_xxflags__save" 20546 20547 20548fi 20549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20550 ac_ext=c 20551ac_cpp='$CPP $CPPFLAGS' 20552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20554ac_compiler_gnu=$ac_cv_c_compiler_gnu 20555 20556 20557 20558 _svn_xxflags__save="$CFLAGS" 20559 ac_ext=c 20560ac_cpp='$CPP $CPPFLAGS' 20561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20563ac_compiler_gnu=$ac_cv_c_compiler_gnu 20564 20565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g3" >&5 20566$as_echo_n "checking if $CC accepts -g3... " >&6; } 20567 CFLAGS="-g3 $CFLAGS" 20568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20569/* end confdefs.h. */ 20570 20571_ACEOF 20572if ac_fn_c_try_compile "$LINENO"; then : 20573 20574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20575$as_echo "yes" >&6; } 20576 20577 20578else 20579 20580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20581$as_echo "no" >&6; } 20582 CFLAGS="$_svn_xxflags__save" 20583 20584 20585 _svn_xxflags__save="$CFLAGS" 20586 ac_ext=c 20587ac_cpp='$CPP $CPPFLAGS' 20588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20590ac_compiler_gnu=$ac_cv_c_compiler_gnu 20591 20592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g2" >&5 20593$as_echo_n "checking if $CC accepts -g2... " >&6; } 20594 CFLAGS="-g2 $CFLAGS" 20595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20596/* end confdefs.h. */ 20597 20598_ACEOF 20599if ac_fn_c_try_compile "$LINENO"; then : 20600 20601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20602$as_echo "yes" >&6; } 20603 20604 20605else 20606 20607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20608$as_echo "no" >&6; } 20609 CFLAGS="$_svn_xxflags__save" 20610 20611 20612 _svn_xxflags__save="$CFLAGS" 20613 ac_ext=c 20614ac_cpp='$CPP $CPPFLAGS' 20615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20617ac_compiler_gnu=$ac_cv_c_compiler_gnu 20618 20619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -g" >&5 20620$as_echo_n "checking if $CC accepts -g... " >&6; } 20621 CFLAGS="-g $CFLAGS" 20622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20623/* end confdefs.h. */ 20624 20625_ACEOF 20626if ac_fn_c_try_compile "$LINENO"; then : 20627 20628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20629$as_echo "yes" >&6; } 20630 20631 20632else 20633 20634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20635$as_echo "no" >&6; } 20636 CFLAGS="$_svn_xxflags__save" 20637 20638 20639fi 20640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20641 ac_ext=c 20642ac_cpp='$CPP $CPPFLAGS' 20643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20645ac_compiler_gnu=$ac_cv_c_compiler_gnu 20646 20647 20648 20649fi 20650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20651 ac_ext=c 20652ac_cpp='$CPP $CPPFLAGS' 20653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20655ac_compiler_gnu=$ac_cv_c_compiler_gnu 20656 20657 20658 20659fi 20660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20661 ac_ext=c 20662ac_cpp='$CPP $CPPFLAGS' 20663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20665ac_compiler_gnu=$ac_cv_c_compiler_gnu 20666 20667 20668 fi 20669 if test -z "`echo $CXXUSERFLAGS' ' | $EGREP -- '-g[0-9]? '`"; then 20670 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling debugging for C++" >&5 20671$as_echo "$as_me: Enabling debugging for C++" >&6;} 20672 CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`" 20673 20674 _svn_xxflags__save="$CXXFLAGS" 20675 ac_ext=cpp 20676ac_cpp='$CXXCPP $CPPFLAGS' 20677ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20678ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20679ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20680 20681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -fno-inline" >&5 20682$as_echo_n "checking if $CXX accepts -fno-inline... " >&6; } 20683 CXXFLAGS="-fno-inline $CXXFLAGS" 20684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20685/* end confdefs.h. */ 20686 20687_ACEOF 20688if ac_fn_cxx_try_compile "$LINENO"; then : 20689 20690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20691$as_echo "yes" >&6; } 20692 20693 20694else 20695 20696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20697$as_echo "no" >&6; } 20698 CXXFLAGS="$_svn_xxflags__save" 20699 20700 20701fi 20702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20703 ac_ext=c 20704ac_cpp='$CPP $CPPFLAGS' 20705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20707ac_compiler_gnu=$ac_cv_c_compiler_gnu 20708 20709 20710 20711 _svn_xxflags__save="$CXXFLAGS" 20712 ac_ext=cpp 20713ac_cpp='$CXXCPP $CPPFLAGS' 20714ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20715ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20716ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20717 20718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -fno-omit-frame-pointer" >&5 20719$as_echo_n "checking if $CXX accepts -fno-omit-frame-pointer... " >&6; } 20720 CXXFLAGS="-fno-omit-frame-pointer $CXXFLAGS" 20721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20722/* end confdefs.h. */ 20723 20724_ACEOF 20725if ac_fn_cxx_try_compile "$LINENO"; then : 20726 20727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20728$as_echo "yes" >&6; } 20729 20730 20731else 20732 20733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20734$as_echo "no" >&6; } 20735 CXXFLAGS="$_svn_xxflags__save" 20736 20737 20738fi 20739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20740 ac_ext=c 20741ac_cpp='$CPP $CPPFLAGS' 20742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20744ac_compiler_gnu=$ac_cv_c_compiler_gnu 20745 20746 20747 20748 _svn_xxflags__save="$CXXFLAGS" 20749 ac_ext=cpp 20750ac_cpp='$CXXCPP $CPPFLAGS' 20751ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20752ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20753ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20754 20755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g3" >&5 20756$as_echo_n "checking if $CXX accepts -g3... " >&6; } 20757 CXXFLAGS="-g3 $CXXFLAGS" 20758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20759/* end confdefs.h. */ 20760 20761_ACEOF 20762if ac_fn_cxx_try_compile "$LINENO"; then : 20763 20764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20765$as_echo "yes" >&6; } 20766 20767 20768else 20769 20770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20771$as_echo "no" >&6; } 20772 CXXFLAGS="$_svn_xxflags__save" 20773 20774 20775 _svn_xxflags__save="$CXXFLAGS" 20776 ac_ext=cpp 20777ac_cpp='$CXXCPP $CPPFLAGS' 20778ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20779ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20780ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20781 20782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g2" >&5 20783$as_echo_n "checking if $CXX accepts -g2... " >&6; } 20784 CXXFLAGS="-g2 $CXXFLAGS" 20785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20786/* end confdefs.h. */ 20787 20788_ACEOF 20789if ac_fn_cxx_try_compile "$LINENO"; then : 20790 20791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20792$as_echo "yes" >&6; } 20793 20794 20795else 20796 20797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20798$as_echo "no" >&6; } 20799 CXXFLAGS="$_svn_xxflags__save" 20800 20801 20802 _svn_xxflags__save="$CXXFLAGS" 20803 ac_ext=cpp 20804ac_cpp='$CXXCPP $CPPFLAGS' 20805ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20806ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20807ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20808 20809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -g" >&5 20810$as_echo_n "checking if $CXX accepts -g... " >&6; } 20811 CXXFLAGS="-g $CXXFLAGS" 20812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20813/* end confdefs.h. */ 20814 20815_ACEOF 20816if ac_fn_cxx_try_compile "$LINENO"; then : 20817 20818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20819$as_echo "yes" >&6; } 20820 20821 20822else 20823 20824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20825$as_echo "no" >&6; } 20826 CXXFLAGS="$_svn_xxflags__save" 20827 20828 20829fi 20830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20831 ac_ext=cpp 20832ac_cpp='$CXXCPP $CPPFLAGS' 20833ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20834ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20835ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20836 20837 20838 20839fi 20840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20841 ac_ext=cpp 20842ac_cpp='$CXXCPP $CPPFLAGS' 20843ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20844ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20845ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20846 20847 20848 20849fi 20850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20851 ac_ext=c 20852ac_cpp='$CPP $CPPFLAGS' 20853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20855ac_compiler_gnu=$ac_cv_c_compiler_gnu 20856 20857 20858 fi 20859 CFLAGS="$CFLAGS -DSVN_DEBUG -DAP_DEBUG" 20860 CXXFLAGS="$CXXFLAGS -DSVN_DEBUG -DAP_DEBUG" 20861elif test "$enable_debugging" = "no" ; then 20862 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling debugging" >&5 20863$as_echo "$as_me: Disabling debugging" >&6;} 20864 CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`" 20865 CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-g[0-9] //g' -e 's/-g //g'`" 20866 CFLAGS="$CFLAGS -DNDEBUG" 20867 CXXFLAGS="$CXXFLAGS -DNDEBUG" 20868# elif test "$enable_debugging" = "maybe" ; then 20869# # do nothing 20870fi 20871 20872if test "$enable_optimization" = "yes"; then 20873 if test -z "`echo $CUSERFLAGS' ' | $EGREP -- '-O[^ ]* '`"; then 20874 CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`" 20875 if test "$enable_debugging" = "yes"; then 20876 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C (with debugging enabled)" >&5 20877$as_echo "$as_me: Enabling optimizations for C (with debugging enabled)" >&6;} 20878 20879 _svn_xxflags__save="$CFLAGS" 20880 ac_ext=c 20881ac_cpp='$CPP $CPPFLAGS' 20882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20884ac_compiler_gnu=$ac_cv_c_compiler_gnu 20885 20886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O1" >&5 20887$as_echo_n "checking if $CC accepts -O1... " >&6; } 20888 CFLAGS="-O1 $CFLAGS" 20889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20890/* end confdefs.h. */ 20891 20892_ACEOF 20893if ac_fn_c_try_compile "$LINENO"; then : 20894 20895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20896$as_echo "yes" >&6; } 20897 20898 20899else 20900 20901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20902$as_echo "no" >&6; } 20903 CFLAGS="$_svn_xxflags__save" 20904 20905 20906 _svn_xxflags__save="$CFLAGS" 20907 ac_ext=c 20908ac_cpp='$CPP $CPPFLAGS' 20909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20911ac_compiler_gnu=$ac_cv_c_compiler_gnu 20912 20913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O" >&5 20914$as_echo_n "checking if $CC accepts -O... " >&6; } 20915 CFLAGS="-O $CFLAGS" 20916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20917/* end confdefs.h. */ 20918 20919_ACEOF 20920if ac_fn_c_try_compile "$LINENO"; then : 20921 20922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20923$as_echo "yes" >&6; } 20924 20925 20926else 20927 20928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20929$as_echo "no" >&6; } 20930 CFLAGS="$_svn_xxflags__save" 20931 20932 20933fi 20934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20935 ac_ext=c 20936ac_cpp='$CPP $CPPFLAGS' 20937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20939ac_compiler_gnu=$ac_cv_c_compiler_gnu 20940 20941 20942 20943fi 20944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20945 ac_ext=c 20946ac_cpp='$CPP $CPPFLAGS' 20947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20949ac_compiler_gnu=$ac_cv_c_compiler_gnu 20950 20951 20952 else 20953 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C" >&5 20954$as_echo "$as_me: Enabling optimizations for C" >&6;} 20955 20956 _svn_xxflags__save="$CFLAGS" 20957 ac_ext=c 20958ac_cpp='$CPP $CPPFLAGS' 20959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20961ac_compiler_gnu=$ac_cv_c_compiler_gnu 20962 20963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O3" >&5 20964$as_echo_n "checking if $CC accepts -O3... " >&6; } 20965 CFLAGS="-O3 $CFLAGS" 20966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20967/* end confdefs.h. */ 20968 20969_ACEOF 20970if ac_fn_c_try_compile "$LINENO"; then : 20971 20972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20973$as_echo "yes" >&6; } 20974 20975 20976else 20977 20978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20979$as_echo "no" >&6; } 20980 CFLAGS="$_svn_xxflags__save" 20981 20982 20983 _svn_xxflags__save="$CFLAGS" 20984 ac_ext=c 20985ac_cpp='$CPP $CPPFLAGS' 20986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20988ac_compiler_gnu=$ac_cv_c_compiler_gnu 20989 20990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O2" >&5 20991$as_echo_n "checking if $CC accepts -O2... " >&6; } 20992 CFLAGS="-O2 $CFLAGS" 20993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20994/* end confdefs.h. */ 20995 20996_ACEOF 20997if ac_fn_c_try_compile "$LINENO"; then : 20998 20999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21000$as_echo "yes" >&6; } 21001 21002 21003else 21004 21005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21006$as_echo "no" >&6; } 21007 CFLAGS="$_svn_xxflags__save" 21008 21009 21010 _svn_xxflags__save="$CFLAGS" 21011 ac_ext=c 21012ac_cpp='$CPP $CPPFLAGS' 21013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21015ac_compiler_gnu=$ac_cv_c_compiler_gnu 21016 21017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O1" >&5 21018$as_echo_n "checking if $CC accepts -O1... " >&6; } 21019 CFLAGS="-O1 $CFLAGS" 21020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21021/* end confdefs.h. */ 21022 21023_ACEOF 21024if ac_fn_c_try_compile "$LINENO"; then : 21025 21026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21027$as_echo "yes" >&6; } 21028 21029 21030else 21031 21032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21033$as_echo "no" >&6; } 21034 CFLAGS="$_svn_xxflags__save" 21035 21036 21037 _svn_xxflags__save="$CFLAGS" 21038 ac_ext=c 21039ac_cpp='$CPP $CPPFLAGS' 21040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21042ac_compiler_gnu=$ac_cv_c_compiler_gnu 21043 21044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -O" >&5 21045$as_echo_n "checking if $CC accepts -O... " >&6; } 21046 CFLAGS="-O $CFLAGS" 21047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21048/* end confdefs.h. */ 21049 21050_ACEOF 21051if ac_fn_c_try_compile "$LINENO"; then : 21052 21053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21054$as_echo "yes" >&6; } 21055 21056 21057else 21058 21059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21060$as_echo "no" >&6; } 21061 CFLAGS="$_svn_xxflags__save" 21062 21063 21064fi 21065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21066 ac_ext=c 21067ac_cpp='$CPP $CPPFLAGS' 21068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21070ac_compiler_gnu=$ac_cv_c_compiler_gnu 21071 21072 21073 21074fi 21075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21076 ac_ext=c 21077ac_cpp='$CPP $CPPFLAGS' 21078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21080ac_compiler_gnu=$ac_cv_c_compiler_gnu 21081 21082 21083 21084fi 21085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21086 ac_ext=c 21087ac_cpp='$CPP $CPPFLAGS' 21088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21090ac_compiler_gnu=$ac_cv_c_compiler_gnu 21091 21092 21093 21094fi 21095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21096 ac_ext=c 21097ac_cpp='$CPP $CPPFLAGS' 21098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21100ac_compiler_gnu=$ac_cv_c_compiler_gnu 21101 21102 21103 21104 _svn_xxflags__save="$CFLAGS" 21105 ac_ext=c 21106ac_cpp='$CPP $CPPFLAGS' 21107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21109ac_compiler_gnu=$ac_cv_c_compiler_gnu 21110 21111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wno-clobbered" >&5 21112$as_echo_n "checking if $CC accepts -Wno-clobbered... " >&6; } 21113 CFLAGS="-Wno-clobbered $CFLAGS" 21114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21115/* end confdefs.h. */ 21116 21117_ACEOF 21118if ac_fn_c_try_compile "$LINENO"; then : 21119 21120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21121$as_echo "yes" >&6; } 21122 21123 21124else 21125 21126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21127$as_echo "no" >&6; } 21128 CFLAGS="$_svn_xxflags__save" 21129 21130 21131fi 21132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21133 ac_ext=c 21134ac_cpp='$CPP $CPPFLAGS' 21135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21137ac_compiler_gnu=$ac_cv_c_compiler_gnu 21138 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 -flto" >&5 21149$as_echo_n "checking if $CC accepts -flto... " >&6; } 21150 CFLAGS="-flto $CFLAGS" 21151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21152/* end confdefs.h. */ 21153 21154_ACEOF 21155if ac_fn_c_try_compile "$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 conftest.$ac_ext 21170 ac_ext=c 21171ac_cpp='$CPP $CPPFLAGS' 21172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21174ac_compiler_gnu=$ac_cv_c_compiler_gnu 21175 21176 21177 21178 _svn_xxflags__save="$CFLAGS" 21179 ac_ext=c 21180ac_cpp='$CPP $CPPFLAGS' 21181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21183ac_compiler_gnu=$ac_cv_c_compiler_gnu 21184 21185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fwhole-program" >&5 21186$as_echo_n "checking if $CC accepts -fwhole-program... " >&6; } 21187 CFLAGS="-fwhole-program $CFLAGS" 21188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21189/* end confdefs.h. */ 21190 21191_ACEOF 21192if ac_fn_c_try_compile "$LINENO"; then : 21193 21194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21195$as_echo "yes" >&6; } 21196 21197 21198else 21199 21200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21201$as_echo "no" >&6; } 21202 CFLAGS="$_svn_xxflags__save" 21203 21204 21205fi 21206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21207 ac_ext=c 21208ac_cpp='$CPP $CPPFLAGS' 21209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21211ac_compiler_gnu=$ac_cv_c_compiler_gnu 21212 21213 21214 fi 21215 fi 21216 if test -z "`echo $CXXUSERFLAGS' ' | $EGREP -- '-O[^ ]* '`"; then 21217 CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`" 21218 if test "$enable_debugging" = "yes"; then 21219 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C++ (with debugging enabled)" >&5 21220$as_echo "$as_me: Enabling optimizations for C++ (with debugging enabled)" >&6;} 21221 21222 _svn_xxflags__save="$CXXFLAGS" 21223 ac_ext=cpp 21224ac_cpp='$CXXCPP $CPPFLAGS' 21225ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21226ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21227ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21228 21229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O1" >&5 21230$as_echo_n "checking if $CXX accepts -O1... " >&6; } 21231 CXXFLAGS="-O1 $CXXFLAGS" 21232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21233/* end confdefs.h. */ 21234 21235_ACEOF 21236if ac_fn_cxx_try_compile "$LINENO"; then : 21237 21238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21239$as_echo "yes" >&6; } 21240 21241 21242else 21243 21244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21245$as_echo "no" >&6; } 21246 CXXFLAGS="$_svn_xxflags__save" 21247 21248 21249 _svn_xxflags__save="$CXXFLAGS" 21250 ac_ext=cpp 21251ac_cpp='$CXXCPP $CPPFLAGS' 21252ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21253ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21254ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21255 21256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O" >&5 21257$as_echo_n "checking if $CXX accepts -O... " >&6; } 21258 CXXFLAGS="-O $CXXFLAGS" 21259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21260/* end confdefs.h. */ 21261 21262_ACEOF 21263if ac_fn_cxx_try_compile "$LINENO"; then : 21264 21265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21266$as_echo "yes" >&6; } 21267 21268 21269else 21270 21271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21272$as_echo "no" >&6; } 21273 CXXFLAGS="$_svn_xxflags__save" 21274 21275 21276fi 21277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21278 ac_ext=cpp 21279ac_cpp='$CXXCPP $CPPFLAGS' 21280ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21281ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21282ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21283 21284 21285 21286fi 21287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21288 ac_ext=c 21289ac_cpp='$CPP $CPPFLAGS' 21290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21292ac_compiler_gnu=$ac_cv_c_compiler_gnu 21293 21294 21295 else 21296 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling optimizations for C++" >&5 21297$as_echo "$as_me: Enabling optimizations for C++" >&6;} 21298 21299 _svn_xxflags__save="$CXXFLAGS" 21300 ac_ext=cpp 21301ac_cpp='$CXXCPP $CPPFLAGS' 21302ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21303ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21304ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21305 21306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O3" >&5 21307$as_echo_n "checking if $CXX accepts -O3... " >&6; } 21308 CXXFLAGS="-O3 $CXXFLAGS" 21309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21310/* end confdefs.h. */ 21311 21312_ACEOF 21313if ac_fn_cxx_try_compile "$LINENO"; then : 21314 21315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21316$as_echo "yes" >&6; } 21317 21318 21319else 21320 21321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21322$as_echo "no" >&6; } 21323 CXXFLAGS="$_svn_xxflags__save" 21324 21325 21326 _svn_xxflags__save="$CXXFLAGS" 21327 ac_ext=cpp 21328ac_cpp='$CXXCPP $CPPFLAGS' 21329ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21330ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21331ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21332 21333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O2" >&5 21334$as_echo_n "checking if $CXX accepts -O2... " >&6; } 21335 CXXFLAGS="-O2 $CXXFLAGS" 21336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21337/* end confdefs.h. */ 21338 21339_ACEOF 21340if ac_fn_cxx_try_compile "$LINENO"; then : 21341 21342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21343$as_echo "yes" >&6; } 21344 21345 21346else 21347 21348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21349$as_echo "no" >&6; } 21350 CXXFLAGS="$_svn_xxflags__save" 21351 21352 21353 _svn_xxflags__save="$CXXFLAGS" 21354 ac_ext=cpp 21355ac_cpp='$CXXCPP $CPPFLAGS' 21356ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21357ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21358ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21359 21360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O1" >&5 21361$as_echo_n "checking if $CXX accepts -O1... " >&6; } 21362 CXXFLAGS="-O1 $CXXFLAGS" 21363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21364/* end confdefs.h. */ 21365 21366_ACEOF 21367if ac_fn_cxx_try_compile "$LINENO"; then : 21368 21369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21370$as_echo "yes" >&6; } 21371 21372 21373else 21374 21375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21376$as_echo "no" >&6; } 21377 CXXFLAGS="$_svn_xxflags__save" 21378 21379 21380 _svn_xxflags__save="$CXXFLAGS" 21381 ac_ext=cpp 21382ac_cpp='$CXXCPP $CPPFLAGS' 21383ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21384ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21385ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21386 21387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -O" >&5 21388$as_echo_n "checking if $CXX accepts -O... " >&6; } 21389 CXXFLAGS="-O $CXXFLAGS" 21390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21391/* end confdefs.h. */ 21392 21393_ACEOF 21394if ac_fn_cxx_try_compile "$LINENO"; then : 21395 21396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21397$as_echo "yes" >&6; } 21398 21399 21400else 21401 21402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21403$as_echo "no" >&6; } 21404 CXXFLAGS="$_svn_xxflags__save" 21405 21406 21407fi 21408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21409 ac_ext=cpp 21410ac_cpp='$CXXCPP $CPPFLAGS' 21411ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21412ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21413ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21414 21415 21416 21417fi 21418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21419 ac_ext=cpp 21420ac_cpp='$CXXCPP $CPPFLAGS' 21421ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21422ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21423ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21424 21425 21426 21427fi 21428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21429 ac_ext=cpp 21430ac_cpp='$CXXCPP $CPPFLAGS' 21431ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21432ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21433ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21434 21435 21436 21437fi 21438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21439 ac_ext=c 21440ac_cpp='$CPP $CPPFLAGS' 21441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21443ac_compiler_gnu=$ac_cv_c_compiler_gnu 21444 21445 21446 21447 _svn_xxflags__save="$CXXFLAGS" 21448 ac_ext=cpp 21449ac_cpp='$CXXCPP $CPPFLAGS' 21450ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21451ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21452ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21453 21454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -Wno-clobbered" >&5 21455$as_echo_n "checking if $CXX accepts -Wno-clobbered... " >&6; } 21456 CXXFLAGS="-Wno-clobbered $CXXFLAGS" 21457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21458/* end confdefs.h. */ 21459 21460_ACEOF 21461if ac_fn_cxx_try_compile "$LINENO"; then : 21462 21463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21464$as_echo "yes" >&6; } 21465 21466 21467else 21468 21469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21470$as_echo "no" >&6; } 21471 CXXFLAGS="$_svn_xxflags__save" 21472 21473 21474fi 21475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21476 ac_ext=c 21477ac_cpp='$CPP $CPPFLAGS' 21478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21480ac_compiler_gnu=$ac_cv_c_compiler_gnu 21481 21482 21483 21484 _svn_xxflags__save="$CXXFLAGS" 21485 ac_ext=cpp 21486ac_cpp='$CXXCPP $CPPFLAGS' 21487ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21488ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21489ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21490 21491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -flto" >&5 21492$as_echo_n "checking if $CXX accepts -flto... " >&6; } 21493 CXXFLAGS="-flto $CXXFLAGS" 21494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21495/* end confdefs.h. */ 21496 21497_ACEOF 21498if ac_fn_cxx_try_compile "$LINENO"; then : 21499 21500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21501$as_echo "yes" >&6; } 21502 21503 21504else 21505 21506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21507$as_echo "no" >&6; } 21508 CXXFLAGS="$_svn_xxflags__save" 21509 21510 21511fi 21512rm -f core conftest.err conftest.$ac_objext 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 _svn_xxflags__save="$CXXFLAGS" 21522 ac_ext=cpp 21523ac_cpp='$CXXCPP $CPPFLAGS' 21524ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21525ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21526ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21527 21528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CXX accepts -fwhole-program" >&5 21529$as_echo_n "checking if $CXX accepts -fwhole-program... " >&6; } 21530 CXXFLAGS="-fwhole-program $CXXFLAGS" 21531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21532/* end confdefs.h. */ 21533 21534_ACEOF 21535if ac_fn_cxx_try_compile "$LINENO"; then : 21536 21537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21538$as_echo "yes" >&6; } 21539 21540 21541else 21542 21543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21544$as_echo "no" >&6; } 21545 CXXFLAGS="$_svn_xxflags__save" 21546 21547 21548fi 21549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21550 ac_ext=c 21551ac_cpp='$CPP $CPPFLAGS' 21552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21554ac_compiler_gnu=$ac_cv_c_compiler_gnu 21555 21556 21557 fi 21558 fi 21559elif test "$enable_optimization" = "no"; then 21560 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling optimizations" >&5 21561$as_echo "$as_me: Disabling optimizations" >&6;} 21562 CFLAGS="`echo $CFLAGS' ' | $SED -e 's/-O[^ ]* //g'`" 21563 CXXFLAGS="`echo $CXXFLAGS' ' | $SED -e 's/-O[^ ]* //g'`" 21564# elif test "$enable_optimization" = "maybe" ; then 21565# # do nothing 21566fi 21567 21568{ $as_echo "$as_me:${as_lineno-$LINENO}: C compiler flags: $CFLAGS" >&5 21569$as_echo "$as_me: C compiler flags: $CFLAGS" >&6;} 21570{ $as_echo "$as_me:${as_lineno-$LINENO}: user-defined: $CUSERFLAGS" >&5 21571$as_echo "$as_me: user-defined: $CUSERFLAGS" >&6;} 21572{ $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: $CMAINTAINERFLAGS" >&5 21573$as_echo "$as_me: maintainer-mode: $CMAINTAINERFLAGS" >&6;} 21574{ $as_echo "$as_me:${as_lineno-$LINENO}: C++ compiler flags: $CXXFLAGS" >&5 21575$as_echo "$as_me: C++ compiler flags: $CXXFLAGS" >&6;} 21576{ $as_echo "$as_me:${as_lineno-$LINENO}: user-defined: $CXXUSERFLAGS" >&5 21577$as_echo "$as_me: user-defined: $CXXUSERFLAGS" >&6;} 21578{ $as_echo "$as_me:${as_lineno-$LINENO}: maintainer-mode: $CXXMAINTAINERFLAGS" >&5 21579$as_echo "$as_me: maintainer-mode: $CXXMAINTAINERFLAGS" >&6;} 21580 21581# Check whether --enable-full-version-match was given. 21582if test "${enable_full_version_match+set}" = set; then : 21583 enableval=$enable_full_version_match; 21584 if test "$enableval" = "no" ; then 21585 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling svn full version matching" >&5 21586$as_echo "$as_me: Disabling svn full version matching" >&6;} 21587 21588$as_echo "#define SVN_DISABLE_FULL_VERSION_MATCH 1" >>confdefs.h 21589 21590 fi 21591 21592fi 21593 21594 21595 21596# Check whether --with-editor was given. 21597if test "${with_editor+set}" = set; then : 21598 withval=$with_editor; 21599 21600 if test "$withval" = "yes" ; then 21601 as_fn_error $? "--with-editor requires an argument." "$LINENO" 5 21602 else 21603 SVN_CLIENT_EDITOR=$withval 21604 21605cat >>confdefs.h <<_ACEOF 21606#define SVN_CLIENT_EDITOR "$SVN_CLIENT_EDITOR" 21607_ACEOF 21608 21609 21610 fi 21611 21612 21613fi 21614 21615 21616 21617 zlib_found=no 21618 21619 21620# Check whether --with-zlib was given. 21621if test "${with_zlib+set}" = set; then : 21622 withval=$with_zlib; 21623 if test "$withval" = "yes" ; then 21624 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 21625if test "x$ac_cv_header_zlib_h" = xyes; then : 21626 21627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5 21628$as_echo_n "checking for inflate in -lz... " >&6; } 21629if ${ac_cv_lib_z_inflate+:} false; then : 21630 $as_echo_n "(cached) " >&6 21631else 21632 ac_check_lib_save_LIBS=$LIBS 21633LIBS="-lz $LIBS" 21634cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21635/* end confdefs.h. */ 21636 21637/* Override any GCC internal prototype to avoid an error. 21638 Use char because int might match the return type of a GCC 21639 builtin and then its argument prototype would still apply. */ 21640#ifdef __cplusplus 21641extern "C" 21642#endif 21643char inflate (); 21644int 21645main () 21646{ 21647return inflate (); 21648 ; 21649 return 0; 21650} 21651_ACEOF 21652if ac_fn_c_try_link "$LINENO"; then : 21653 ac_cv_lib_z_inflate=yes 21654else 21655 ac_cv_lib_z_inflate=no 21656fi 21657rm -f core conftest.err conftest.$ac_objext \ 21658 conftest$ac_exeext conftest.$ac_ext 21659LIBS=$ac_check_lib_save_LIBS 21660fi 21661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5 21662$as_echo "$ac_cv_lib_z_inflate" >&6; } 21663if test "x$ac_cv_lib_z_inflate" = xyes; then : 21664 zlib_found="builtin" 21665fi 21666 21667 21668fi 21669 21670 21671 elif test "$withval" = "no" ; then 21672 as_fn_error $? "cannot compile without zlib." "$LINENO" 5 21673 else 21674 { $as_echo "$as_me:${as_lineno-$LINENO}: zlib library configuration" >&5 21675$as_echo "$as_me: zlib library configuration" >&6;} 21676 zlib_prefix=$withval 21677 save_cppflags="$CPPFLAGS" 21678 CPPFLAGS="$CPPFLAGS -I$zlib_prefix/include" 21679 for ac_header in zlib.h 21680do : 21681 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 21682if test "x$ac_cv_header_zlib_h" = xyes; then : 21683 cat >>confdefs.h <<_ACEOF 21684#define HAVE_ZLIB_H 1 21685_ACEOF 21686 21687 save_ldflags="$LDFLAGS" 21688 LDFLAGS="$LDFLAGS -L$zlib_prefix/lib" 21689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5 21690$as_echo_n "checking for inflate in -lz... " >&6; } 21691if ${ac_cv_lib_z_inflate+:} false; then : 21692 $as_echo_n "(cached) " >&6 21693else 21694 ac_check_lib_save_LIBS=$LIBS 21695LIBS="-lz $LIBS" 21696cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21697/* end confdefs.h. */ 21698 21699/* Override any GCC internal prototype to avoid an error. 21700 Use char because int might match the return type of a GCC 21701 builtin and then its argument prototype would still apply. */ 21702#ifdef __cplusplus 21703extern "C" 21704#endif 21705char inflate (); 21706int 21707main () 21708{ 21709return inflate (); 21710 ; 21711 return 0; 21712} 21713_ACEOF 21714if ac_fn_c_try_link "$LINENO"; then : 21715 ac_cv_lib_z_inflate=yes 21716else 21717 ac_cv_lib_z_inflate=no 21718fi 21719rm -f core conftest.err conftest.$ac_objext \ 21720 conftest$ac_exeext conftest.$ac_ext 21721LIBS=$ac_check_lib_save_LIBS 21722fi 21723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5 21724$as_echo "$ac_cv_lib_z_inflate" >&6; } 21725if test "x$ac_cv_lib_z_inflate" = xyes; then : 21726 zlib_found="yes" 21727fi 21728 21729 LDFLAGS="$save_ldflags" 21730 21731fi 21732 21733done 21734 21735 CPPFLAGS="$save_cppflags" 21736 fi 21737 21738else 21739 21740 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 21741if test "x$ac_cv_header_zlib_h" = xyes; then : 21742 21743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5 21744$as_echo_n "checking for inflate in -lz... " >&6; } 21745if ${ac_cv_lib_z_inflate+:} false; then : 21746 $as_echo_n "(cached) " >&6 21747else 21748 ac_check_lib_save_LIBS=$LIBS 21749LIBS="-lz $LIBS" 21750cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21751/* end confdefs.h. */ 21752 21753/* Override any GCC internal prototype to avoid an error. 21754 Use char because int might match the return type of a GCC 21755 builtin and then its argument prototype would still apply. */ 21756#ifdef __cplusplus 21757extern "C" 21758#endif 21759char inflate (); 21760int 21761main () 21762{ 21763return inflate (); 21764 ; 21765 return 0; 21766} 21767_ACEOF 21768if ac_fn_c_try_link "$LINENO"; then : 21769 ac_cv_lib_z_inflate=yes 21770else 21771 ac_cv_lib_z_inflate=no 21772fi 21773rm -f core conftest.err conftest.$ac_objext \ 21774 conftest$ac_exeext conftest.$ac_ext 21775LIBS=$ac_check_lib_save_LIBS 21776fi 21777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5 21778$as_echo "$ac_cv_lib_z_inflate" >&6; } 21779if test "x$ac_cv_lib_z_inflate" = xyes; then : 21780 zlib_found="builtin" 21781fi 21782 21783 21784fi 21785 21786 21787 21788fi 21789 21790 21791 if test "$zlib_found" = "no"; then 21792 as_fn_error $? "subversion requires zlib" "$LINENO" 5 21793 fi 21794 21795 if test "$zlib_found" = "yes"; then 21796 SVN_ZLIB_INCLUDES="-I$zlib_prefix/include" 21797 LDFLAGS="$LDFLAGS ` 21798 input_flags="-L$zlib_prefix/lib" 21799 output_flags="" 21800 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 21801 for flag in $input_flags; do 21802 filter="no" 21803 for dir in $filtered_dirs; do 21804 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 21805 filter="yes" 21806 break 21807 fi 21808 done 21809 if test "$filter" = "no"; then 21810 output_flags="$output_flags $flag" 21811 fi 21812 done 21813 if test -n "$output_flags"; then 21814 printf "%s" "${output_flags# }" 21815 fi 21816`" 21817 fi 21818 21819 SVN_ZLIB_LIBS="-lz" 21820 21821 21822 21823 21824 21825MOD_ACTIVATION="" 21826# Check whether --enable-mod-activation was given. 21827if test "${enable_mod_activation+set}" = set; then : 21828 enableval=$enable_mod_activation; 21829 if test "$enableval" = "yes" ; then 21830 MOD_ACTIVATION="-a" 21831 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling apache module activation" >&5 21832$as_echo "$as_me: Enabling apache module activation" >&6;} 21833 else 21834 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling apache module activation" >&5 21835$as_echo "$as_me: Disabling apache module activation" >&6;} 21836 fi 21837 21838fi 21839 21840 21841 21842 21843 21844# Check whether --enable-gcov was given. 21845if test "${enable_gcov+set}" = set; then : 21846 enableval=$enable_gcov; 21847 if test "$enableval" = "yes" ; then 21848 if test "$GCC" = "yes"; then 21849 if test "$svn_enable_shared" = "yes" ; then 21850 as_fn_error $? "Can't have --enable-gcov without --disable-shared (we 21851 recommend also using --enable-all-static)." "$LINENO" 5 21852 fi 21853 if test ! "$enable_all_static" = "yes" ; then 21854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We recommend --enable-all-static with --enable-gcov." >&5 21855$as_echo "$as_me: WARNING: We recommend --enable-all-static with --enable-gcov." >&2;} 21856 fi 21857 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling gcov coverage testing." >&5 21858$as_echo "$as_me: Enabling gcov coverage testing." >&6;} 21859 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage" 21860 CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage" 21861 else 21862 as_fn_error $? "We only support --enable-gcov with GCC right now." "$LINENO" 5 21863 fi 21864 fi 21865 21866fi 21867 21868 21869# Check whether --enable-gprof was given. 21870if test "${enable_gprof+set}" = set; then : 21871 enableval=$enable_gprof; 21872 if test "$enableval" = "yes" ; then 21873 if test "$GCC" = "yes"; then 21874 if test "$svn_enable_shared" = "yes" ; then 21875 as_fn_error $? "Can't have --enable-gprof without --disable-shared (we 21876 recommend also using --enable-all-static)." "$LINENO" 5 21877 fi 21878 if test ! "$enable_all_static" = "yes" ; then 21879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We recommend --enable-all-static with --enable-gprof." >&5 21880$as_echo "$as_me: WARNING: We recommend --enable-all-static with --enable-gprof." >&2;} 21881 fi 21882 { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling gprof profiling data (to gmon.out)." >&5 21883$as_echo "$as_me: Enabling gprof profiling data (to gmon.out)." >&6;} 21884 CFLAGS="$CFLAGS -pg" 21885 CXXFLAGS="$CXXFLAGS -pg" 21886 LT_LDFLAGS="$LT_LDFLAGS -pg" 21887 else 21888 as_fn_error $? "We only support --enable-gprof with GCC right now." "$LINENO" 5 21889 fi 21890 fi 21891 21892fi 21893 21894 21895 21896# Scripting and Bindings languages 21897 21898# Python: Used for testsuite, and bindings 21899 21900 21901PYTHON="`$abs_srcdir/build/find_python.sh`" 21902if test -z "$PYTHON"; then 21903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Python 2.5 or later is required to run the testsuite" >&5 21904$as_echo "$as_me: WARNING: Python 2.5 or later is required to run the testsuite" >&2;} 21905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: or to use the Subversion Python bindings" >&5 21906$as_echo "$as_me: WARNING: or to use the Subversion Python bindings" >&2;} 21907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 21908$as_echo "$as_me: WARNING: " >&2;} 21909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you have a suitable Python installed, but not on the" >&5 21910$as_echo "$as_me: WARNING: If you have a suitable Python installed, but not on the" >&2;} 21911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PATH, set the environment variable PYTHON to the full path" >&5 21912$as_echo "$as_me: WARNING: PATH, set the environment variable PYTHON to the full path" >&2;} 21913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: to the Python executable, and re-run configure" >&5 21914$as_echo "$as_me: WARNING: to the Python executable, and re-run configure" >&2;} 21915fi 21916for ac_prog in "$PYTHON" 21917do 21918 # Extract the first word of "$ac_prog", so it can be a program name with args. 21919set dummy $ac_prog; ac_word=$2 21920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21921$as_echo_n "checking for $ac_word... " >&6; } 21922if ${ac_cv_path_PYTHON+:} false; then : 21923 $as_echo_n "(cached) " >&6 21924else 21925 case $PYTHON in 21926 [\\/]* | ?:[\\/]*) 21927 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 21928 ;; 21929 *) 21930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21931for as_dir in $PATH 21932do 21933 IFS=$as_save_IFS 21934 test -z "$as_dir" && as_dir=. 21935 for ac_exec_ext in '' $ac_executable_extensions; do 21936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21937 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 21938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21939 break 2 21940 fi 21941done 21942 done 21943IFS=$as_save_IFS 21944 21945 ;; 21946esac 21947fi 21948PYTHON=$ac_cv_path_PYTHON 21949if test -n "$PYTHON"; then 21950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 21951$as_echo "$PYTHON" >&6; } 21952else 21953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21954$as_echo "no" >&6; } 21955fi 21956 21957 21958 test -n "$PYTHON" && break 21959done 21960test -n "$PYTHON" || PYTHON="none" 21961 21962 21963# The minimum version for the JVM runtime for our Java bytecode. 21964JAVA_OLDEST_WORKING_VER='1.5' 21965# SVN_CHECK_JDK sets $JAVA_CLASSPATH 21966 21967 JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER" 21968 21969# Check whether --with-jdk was given. 21970if test "${with_jdk+set}" = set; then : 21971 withval=$with_jdk; 21972 case "$withval" in 21973 "no") 21974 JDK_SUITABLE=no 21975 ;; 21976 "yes") 21977 21978 where=check 21979 JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER" 21980 21981 JDK=none 21982 JAVA_BIN=none 21983 JAVADOC=none 21984 JAVAC=none 21985 JAVAH=none 21986 JAR=none 21987 JNI_INCLUDES=none 21988 21989 JDK_SUITABLE=no 21990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5 21991$as_echo_n "checking for JDK... " >&6; } 21992 if test $where = check; then 21993 if test -x "$JAVA_HOME/bin/java"; then 21994 JDK="$JAVA_HOME" 21995 elif test -x "/Library/Java/Home/bin/java"; then 21996 JDK="/Library/Java/Home" 21997 elif test -x "/usr/bin/java"; then 21998 JDK="/usr" 21999 elif test -x "/usr/local/bin/java"; then 22000 JDK="/usr/local" 22001 fi 22002 else 22003 JDK=$where 22004 fi 22005 22006 os_arch="`uname`" 22007 if test "$os_arch" = "Darwin"; then 22008 OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2` 22009 22010 if test "$OSX_VER" = "10.4"; then 22011 OSX_VER="10.4u" 22012 fi 22013 22014 OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework" 22015 OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library" 22016 OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework" 22017 fi 22018 22019 if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" && 22020 test -d "/Library/Java/Home"; then 22021 JDK="/Library/Java/Home" 22022 fi 22023 22024 if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then 22025 JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes" 22026 else 22027 JRE_LIB_DIR="$JDK/jre/lib" 22028 fi 22029 22030 if test -f "$JDK/include/jni.h"; then 22031 JNI_INCLUDEDIR="$JDK/include" 22032 JDK_SUITABLE=yes 22033 elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then 22034 JNI_INCLUDEDIR="$JDK/Headers" 22035 JDK_SUITABLE=yes 22036 elif test "$os_arch" = "Darwin" && 22037 test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then 22038 JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers" 22039 JDK_SUITABLE=yes 22040 elif test "$os_arch" = "Darwin" && 22041 test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then 22042 JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers" 22043 JDK_SUITABLE=yes 22044 else 22045 JDK_SUITABLE=no 22046 fi 22047 if test "$JDK_SUITABLE" = "yes"; then 22048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5 22049$as_echo "$JNI_INCLUDEDIR/jni.h" >&6; } 22050 else 22051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22052$as_echo "no" >&6; } 22053 if test "$where" != "check"; then 22054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5 22055$as_echo "$as_me: WARNING: no JNI header files found." >&2;} 22056 if test "$os_arch" = "Darwin"; then 22057 { $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 22058$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;} 22059 fi 22060 fi 22061 fi 22062 22063 if test "$JDK_SUITABLE" = "yes"; then 22064 JAVA_BIN='$(JDK)/bin' 22065 22066 JAVA="$JAVA_BIN/java" 22067 JAVAC="$JAVA_BIN/javac" 22068 JAVAH="$JAVA_BIN/javah" 22069 JAVADOC="$JAVA_BIN/javadoc" 22070 JAR="$JAVA_BIN/jar" 22071 22072 jikes_options="/usr/local/bin/jikes /usr/bin/jikes" 22073 22074# Check whether --with-jikes was given. 22075if test "${with_jikes+set}" = set; then : 22076 withval=$with_jikes; 22077 if test "$withval" != "no" && test "$withval" != "yes"; then 22078 jikes_options="$withval $jikes_options" 22079 fi 22080 requested_jikes="$withval" # will be 'yes' if path unspecified 22081 22082fi 22083 22084 if test "$requested_jikes" != "no"; then 22085 for jikes in $jikes_options; do 22086 if test -z "$jikes_found" && test -x "$jikes"; then 22087 jikes_found="yes" 22088 JAVAC="$jikes" 22089 JAVA_CLASSPATH="$JRE_LIB_DIR" 22090 for jar in $JRE_LIB_DIR/*.jar; do 22091 JAVA_CLASSPATH="$JAVA_CLASSPATH:$jar" 22092 done 22093 fi 22094 done 22095 fi 22096 if test -n "$requested_jikes" && test "$requested_jikes" != "no"; then 22097 if test -z "$jikes_found"; then 22098 as_fn_error $? "Could not find a usable version of Jikes" "$LINENO" 5 22099 elif test -n "$jikes_found" && test "$requested_jikes" != "yes" && 22100 test "$JAVAC" != "$requested_jikes"; then 22101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-jikes PATH was invalid, substitute found" >&5 22102$as_echo "$as_me: WARNING: --with-jikes PATH was invalid, substitute found" >&2;} 22103 fi 22104 fi 22105 22106 # The release for "-source" could actually be greater than that 22107 # of "-target", if we want to cross-compile for lesser JVMs. 22108 if test -z "$JAVAC_FLAGS"; then 22109 JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.5" 22110 if test "$enable_debugging" = "yes"; then 22111 JAVAC_FLAGS="-g -Xlint:unchecked $JAVAC_FLAGS" 22112 fi 22113 fi 22114 22115 JNI_INCLUDES="-I$JNI_INCLUDEDIR" 22116 list="`find "$JNI_INCLUDEDIR" -type d -print`" 22117 for dir in $list; do 22118 JNI_INCLUDES="$JNI_INCLUDES -I$dir" 22119 done 22120 fi 22121 22122 22123 22124 22125 22126 22127 22128 22129 22130 22131 ;; 22132 *) 22133 22134 where=$withval 22135 JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER" 22136 22137 JDK=none 22138 JAVA_BIN=none 22139 JAVADOC=none 22140 JAVAC=none 22141 JAVAH=none 22142 JAR=none 22143 JNI_INCLUDES=none 22144 22145 JDK_SUITABLE=no 22146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5 22147$as_echo_n "checking for JDK... " >&6; } 22148 if test $where = check; then 22149 if test -x "$JAVA_HOME/bin/java"; then 22150 JDK="$JAVA_HOME" 22151 elif test -x "/Library/Java/Home/bin/java"; then 22152 JDK="/Library/Java/Home" 22153 elif test -x "/usr/bin/java"; then 22154 JDK="/usr" 22155 elif test -x "/usr/local/bin/java"; then 22156 JDK="/usr/local" 22157 fi 22158 else 22159 JDK=$where 22160 fi 22161 22162 os_arch="`uname`" 22163 if test "$os_arch" = "Darwin"; then 22164 OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2` 22165 22166 if test "$OSX_VER" = "10.4"; then 22167 OSX_VER="10.4u" 22168 fi 22169 22170 OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework" 22171 OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library" 22172 OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework" 22173 fi 22174 22175 if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" && 22176 test -d "/Library/Java/Home"; then 22177 JDK="/Library/Java/Home" 22178 fi 22179 22180 if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then 22181 JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes" 22182 else 22183 JRE_LIB_DIR="$JDK/jre/lib" 22184 fi 22185 22186 if test -f "$JDK/include/jni.h"; then 22187 JNI_INCLUDEDIR="$JDK/include" 22188 JDK_SUITABLE=yes 22189 elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then 22190 JNI_INCLUDEDIR="$JDK/Headers" 22191 JDK_SUITABLE=yes 22192 elif test "$os_arch" = "Darwin" && 22193 test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then 22194 JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers" 22195 JDK_SUITABLE=yes 22196 elif test "$os_arch" = "Darwin" && 22197 test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then 22198 JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers" 22199 JDK_SUITABLE=yes 22200 else 22201 JDK_SUITABLE=no 22202 fi 22203 if test "$JDK_SUITABLE" = "yes"; then 22204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5 22205$as_echo "$JNI_INCLUDEDIR/jni.h" >&6; } 22206 else 22207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22208$as_echo "no" >&6; } 22209 if test "$where" != "check"; then 22210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5 22211$as_echo "$as_me: WARNING: no JNI header files found." >&2;} 22212 if test "$os_arch" = "Darwin"; then 22213 { $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 22214$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;} 22215 fi 22216 fi 22217 fi 22218 22219 if test "$JDK_SUITABLE" = "yes"; then 22220 JAVA_BIN='$(JDK)/bin' 22221 22222 JAVA="$JAVA_BIN/java" 22223 JAVAC="$JAVA_BIN/javac" 22224 JAVAH="$JAVA_BIN/javah" 22225 JAVADOC="$JAVA_BIN/javadoc" 22226 JAR="$JAVA_BIN/jar" 22227 22228 jikes_options="/usr/local/bin/jikes /usr/bin/jikes" 22229 22230# Check whether --with-jikes was given. 22231if test "${with_jikes+set}" = set; then : 22232 withval=$with_jikes; 22233 if test "$withval" != "no" && test "$withval" != "yes"; then 22234 jikes_options="$withval $jikes_options" 22235 fi 22236 requested_jikes="$withval" # will be 'yes' if path unspecified 22237 22238fi 22239 22240 if test "$requested_jikes" != "no"; then 22241 for jikes in $jikes_options; do 22242 if test -z "$jikes_found" && test -x "$jikes"; then 22243 jikes_found="yes" 22244 JAVAC="$jikes" 22245 JAVA_CLASSPATH="$JRE_LIB_DIR" 22246 for jar in $JRE_LIB_DIR/*.jar; do 22247 JAVA_CLASSPATH="$JAVA_CLASSPATH:$jar" 22248 done 22249 fi 22250 done 22251 fi 22252 if test -n "$requested_jikes" && test "$requested_jikes" != "no"; then 22253 if test -z "$jikes_found"; then 22254 as_fn_error $? "Could not find a usable version of Jikes" "$LINENO" 5 22255 elif test -n "$jikes_found" && test "$requested_jikes" != "yes" && 22256 test "$JAVAC" != "$requested_jikes"; then 22257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-jikes PATH was invalid, substitute found" >&5 22258$as_echo "$as_me: WARNING: --with-jikes PATH was invalid, substitute found" >&2;} 22259 fi 22260 fi 22261 22262 # The release for "-source" could actually be greater than that 22263 # of "-target", if we want to cross-compile for lesser JVMs. 22264 if test -z "$JAVAC_FLAGS"; then 22265 JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.5" 22266 if test "$enable_debugging" = "yes"; then 22267 JAVAC_FLAGS="-g -Xlint:unchecked $JAVAC_FLAGS" 22268 fi 22269 fi 22270 22271 JNI_INCLUDES="-I$JNI_INCLUDEDIR" 22272 list="`find "$JNI_INCLUDEDIR" -type d -print`" 22273 for dir in $list; do 22274 JNI_INCLUDES="$JNI_INCLUDES -I$dir" 22275 done 22276 fi 22277 22278 22279 22280 22281 22282 22283 22284 22285 22286 22287 ;; 22288 esac 22289 22290else 22291 22292 22293 where=check 22294 JAVA_OLDEST_WORKING_VER="$JAVA_OLDEST_WORKING_VER" 22295 22296 JDK=none 22297 JAVA_BIN=none 22298 JAVADOC=none 22299 JAVAC=none 22300 JAVAH=none 22301 JAR=none 22302 JNI_INCLUDES=none 22303 22304 JDK_SUITABLE=no 22305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JDK" >&5 22306$as_echo_n "checking for JDK... " >&6; } 22307 if test $where = check; then 22308 if test -x "$JAVA_HOME/bin/java"; then 22309 JDK="$JAVA_HOME" 22310 elif test -x "/Library/Java/Home/bin/java"; then 22311 JDK="/Library/Java/Home" 22312 elif test -x "/usr/bin/java"; then 22313 JDK="/usr" 22314 elif test -x "/usr/local/bin/java"; then 22315 JDK="/usr/local" 22316 fi 22317 else 22318 JDK=$where 22319 fi 22320 22321 os_arch="`uname`" 22322 if test "$os_arch" = "Darwin"; then 22323 OSX_VER=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 | cut -d"." -f1,2` 22324 22325 if test "$OSX_VER" = "10.4"; then 22326 OSX_VER="10.4u" 22327 fi 22328 22329 OSX_SYS_JAVA_FRAMEWORK="/System/Library/Frameworks/JavaVM.framework" 22330 OSX_SDK_JAVA_FRAMEWORK="/Developer/SDKs/MacOSX$OSX_VER.sdk/System/Library" 22331 OSX_SDK_JAVA_FRAMEWORK="$OSX_SDK_JAVA_FRAMEWORK/Frameworks/JavaVM.framework" 22332 fi 22333 22334 if test "$os_arch" = "Darwin" && test "$JDK" = "/usr" && 22335 test -d "/Library/Java/Home"; then 22336 JDK="/Library/Java/Home" 22337 fi 22338 22339 if test "$os_arch" = "Darwin" && test "$JDK" = "/Library/Java/Home"; then 22340 JRE_LIB_DIR="$OSX_SYS_JAVA_FRAMEWORK/Classes" 22341 else 22342 JRE_LIB_DIR="$JDK/jre/lib" 22343 fi 22344 22345 if test -f "$JDK/include/jni.h"; then 22346 JNI_INCLUDEDIR="$JDK/include" 22347 JDK_SUITABLE=yes 22348 elif test "$os_arch" = "Darwin" && test -e "$JDK/Headers/jni.h"; then 22349 JNI_INCLUDEDIR="$JDK/Headers" 22350 JDK_SUITABLE=yes 22351 elif test "$os_arch" = "Darwin" && 22352 test -e "$OSX_SYS_JAVA_FRAMEWORK/Headers/jni.h"; then 22353 JNI_INCLUDEDIR="$OSX_SYS_JAVA_FRAMEWORK/Headers" 22354 JDK_SUITABLE=yes 22355 elif test "$os_arch" = "Darwin" && 22356 test -e "$OSX_SDK_JAVA_FRAMEWORK/Headers/jni.h"; then 22357 JNI_INCLUDEDIR="$OSX_SDK_JAVA_FRAMEWORK/Headers" 22358 JDK_SUITABLE=yes 22359 else 22360 JDK_SUITABLE=no 22361 fi 22362 if test "$JDK_SUITABLE" = "yes"; then 22363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JNI_INCLUDEDIR/jni.h" >&5 22364$as_echo "$JNI_INCLUDEDIR/jni.h" >&6; } 22365 else 22366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22367$as_echo "no" >&6; } 22368 if test "$where" != "check"; then 22369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no JNI header files found." >&5 22370$as_echo "$as_me: WARNING: no JNI header files found." >&2;} 22371 if test "$os_arch" = "Darwin"; then 22372 { $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 22373$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;} 22374 fi 22375 fi 22376 fi 22377 22378 if test "$JDK_SUITABLE" = "yes"; then 22379 JAVA_BIN='$(JDK)/bin' 22380 22381 JAVA="$JAVA_BIN/java" 22382 JAVAC="$JAVA_BIN/javac" 22383 JAVAH="$JAVA_BIN/javah" 22384 JAVADOC="$JAVA_BIN/javadoc" 22385 JAR="$JAVA_BIN/jar" 22386 22387 jikes_options="/usr/local/bin/jikes /usr/bin/jikes" 22388 22389# Check whether --with-jikes was given. 22390if test "${with_jikes+set}" = set; then : 22391 withval=$with_jikes; 22392 if test "$withval" != "no" && test "$withval" != "yes"; then 22393 jikes_options="$withval $jikes_options" 22394 fi 22395 requested_jikes="$withval" # will be 'yes' if path unspecified 22396 22397fi 22398 22399 if test "$requested_jikes" != "no"; then 22400 for jikes in $jikes_options; do 22401 if test -z "$jikes_found" && test -x "$jikes"; then 22402 jikes_found="yes" 22403 JAVAC="$jikes" 22404 JAVA_CLASSPATH="$JRE_LIB_DIR" 22405 for jar in $JRE_LIB_DIR/*.jar; do 22406 JAVA_CLASSPATH="$JAVA_CLASSPATH:$jar" 22407 done 22408 fi 22409 done 22410 fi 22411 if test -n "$requested_jikes" && test "$requested_jikes" != "no"; then 22412 if test -z "$jikes_found"; then 22413 as_fn_error $? "Could not find a usable version of Jikes" "$LINENO" 5 22414 elif test -n "$jikes_found" && test "$requested_jikes" != "yes" && 22415 test "$JAVAC" != "$requested_jikes"; then 22416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-jikes PATH was invalid, substitute found" >&5 22417$as_echo "$as_me: WARNING: --with-jikes PATH was invalid, substitute found" >&2;} 22418 fi 22419 fi 22420 22421 # The release for "-source" could actually be greater than that 22422 # of "-target", if we want to cross-compile for lesser JVMs. 22423 if test -z "$JAVAC_FLAGS"; then 22424 JAVAC_FLAGS="-target $JAVA_OLDEST_WORKING_VER -source 1.5" 22425 if test "$enable_debugging" = "yes"; then 22426 JAVAC_FLAGS="-g -Xlint:unchecked $JAVAC_FLAGS" 22427 fi 22428 fi 22429 22430 JNI_INCLUDES="-I$JNI_INCLUDEDIR" 22431 list="`find "$JNI_INCLUDEDIR" -type d -print`" 22432 for dir in $list; do 22433 JNI_INCLUDES="$JNI_INCLUDES -I$dir" 22434 done 22435 fi 22436 22437 22438 22439 22440 22441 22442 22443 22444 22445 22446 22447fi 22448 22449 22450 22451# Extract the first word of "perl", so it can be a program name with args. 22452set dummy perl; ac_word=$2 22453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22454$as_echo_n "checking for $ac_word... " >&6; } 22455if ${ac_cv_path_PERL+:} false; then : 22456 $as_echo_n "(cached) " >&6 22457else 22458 case $PERL in 22459 [\\/]* | ?:[\\/]*) 22460 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 22461 ;; 22462 *) 22463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22464for as_dir in $PATH 22465do 22466 IFS=$as_save_IFS 22467 test -z "$as_dir" && as_dir=. 22468 for ac_exec_ext in '' $ac_executable_extensions; do 22469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22470 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 22471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22472 break 2 22473 fi 22474done 22475 done 22476IFS=$as_save_IFS 22477 22478 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" 22479 ;; 22480esac 22481fi 22482PERL=$ac_cv_path_PERL 22483if test -n "$PERL"; then 22484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 22485$as_echo "$PERL" >&6; } 22486else 22487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22488$as_echo "no" >&6; } 22489fi 22490 22491 22492 22493if test -n "$RUBY"; then 22494 # Extract the first word of ""$RUBY"", so it can be a program name with args. 22495set dummy "$RUBY"; ac_word=$2 22496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22497$as_echo_n "checking for $ac_word... " >&6; } 22498if ${ac_cv_path_RUBY+:} false; then : 22499 $as_echo_n "(cached) " >&6 22500else 22501 case $RUBY in 22502 [\\/]* | ?:[\\/]*) 22503 ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path. 22504 ;; 22505 *) 22506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22507for as_dir in $PATH 22508do 22509 IFS=$as_save_IFS 22510 test -z "$as_dir" && as_dir=. 22511 for ac_exec_ext in '' $ac_executable_extensions; do 22512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22513 ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext" 22514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22515 break 2 22516 fi 22517done 22518 done 22519IFS=$as_save_IFS 22520 22521 test -z "$ac_cv_path_RUBY" && ac_cv_path_RUBY="none" 22522 ;; 22523esac 22524fi 22525RUBY=$ac_cv_path_RUBY 22526if test -n "$RUBY"; then 22527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5 22528$as_echo "$RUBY" >&6; } 22529else 22530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22531$as_echo "no" >&6; } 22532fi 22533 22534 22535else 22536 for ac_prog in ruby ruby1.8 ruby18 ruby1.9 ruby1 ruby1.9.3 ruby193 22537do 22538 # Extract the first word of "$ac_prog", so it can be a program name with args. 22539set dummy $ac_prog; ac_word=$2 22540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22541$as_echo_n "checking for $ac_word... " >&6; } 22542if ${ac_cv_path_RUBY+:} false; then : 22543 $as_echo_n "(cached) " >&6 22544else 22545 case $RUBY in 22546 [\\/]* | ?:[\\/]*) 22547 ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path. 22548 ;; 22549 *) 22550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22551for as_dir in $PATH 22552do 22553 IFS=$as_save_IFS 22554 test -z "$as_dir" && as_dir=. 22555 for ac_exec_ext in '' $ac_executable_extensions; do 22556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22557 ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext" 22558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22559 break 2 22560 fi 22561done 22562 done 22563IFS=$as_save_IFS 22564 22565 ;; 22566esac 22567fi 22568RUBY=$ac_cv_path_RUBY 22569if test -n "$RUBY"; then 22570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5 22571$as_echo "$RUBY" >&6; } 22572else 22573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22574$as_echo "no" >&6; } 22575fi 22576 22577 22578 test -n "$RUBY" && break 22579done 22580test -n "$RUBY" || RUBY="none" 22581 22582fi 22583if test "$RUBY" != "none"; then 22584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking rb_hash_foreach" >&5 22585$as_echo_n "checking rb_hash_foreach... " >&6; } 22586 if "$RUBY" -r mkmf -e 'exit(have_func("rb_hash_foreach") ? 0 : 1)' >/dev/null; then 22587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22588$as_echo "yes" >&6; } 22589 if test -n "$RDOC"; then 22590 # Extract the first word of ""$RDOC"", so it can be a program name with args. 22591set dummy "$RDOC"; ac_word=$2 22592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22593$as_echo_n "checking for $ac_word... " >&6; } 22594if ${ac_cv_path_RDOC+:} false; then : 22595 $as_echo_n "(cached) " >&6 22596else 22597 case $RDOC in 22598 [\\/]* | ?:[\\/]*) 22599 ac_cv_path_RDOC="$RDOC" # Let the user override the test with a path. 22600 ;; 22601 *) 22602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22603for as_dir in $PATH 22604do 22605 IFS=$as_save_IFS 22606 test -z "$as_dir" && as_dir=. 22607 for ac_exec_ext in '' $ac_executable_extensions; do 22608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22609 ac_cv_path_RDOC="$as_dir/$ac_word$ac_exec_ext" 22610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22611 break 2 22612 fi 22613done 22614 done 22615IFS=$as_save_IFS 22616 22617 test -z "$ac_cv_path_RDOC" && ac_cv_path_RDOC="none" 22618 ;; 22619esac 22620fi 22621RDOC=$ac_cv_path_RDOC 22622if test -n "$RDOC"; then 22623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RDOC" >&5 22624$as_echo "$RDOC" >&6; } 22625else 22626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22627$as_echo "no" >&6; } 22628fi 22629 22630 22631 else 22632 for ac_prog in rdoc rdoc1.8 rdoc18 rdoc1.9 rdoc19 rdoc1.9.3 rdoc193 22633do 22634 # Extract the first word of "$ac_prog", so it can be a program name with args. 22635set dummy $ac_prog; ac_word=$2 22636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22637$as_echo_n "checking for $ac_word... " >&6; } 22638if ${ac_cv_path_RDOC+:} false; then : 22639 $as_echo_n "(cached) " >&6 22640else 22641 case $RDOC in 22642 [\\/]* | ?:[\\/]*) 22643 ac_cv_path_RDOC="$RDOC" # Let the user override the test with a path. 22644 ;; 22645 *) 22646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22647for as_dir in $PATH 22648do 22649 IFS=$as_save_IFS 22650 test -z "$as_dir" && as_dir=. 22651 for ac_exec_ext in '' $ac_executable_extensions; do 22652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22653 ac_cv_path_RDOC="$as_dir/$ac_word$ac_exec_ext" 22654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22655 break 2 22656 fi 22657done 22658 done 22659IFS=$as_save_IFS 22660 22661 ;; 22662esac 22663fi 22664RDOC=$ac_cv_path_RDOC 22665if test -n "$RDOC"; then 22666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RDOC" >&5 22667$as_echo "$RDOC" >&6; } 22668else 22669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22670$as_echo "no" >&6; } 22671fi 22672 22673 22674 test -n "$RDOC" && break 22675done 22676test -n "$RDOC" || RDOC="none" 22677 22678 fi 22679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby major version" >&5 22680$as_echo_n "checking for Ruby major version... " >&6; } 22681if ${svn_cv_ruby_major+:} false; then : 22682 $as_echo_n "(cached) " >&6 22683else 22684 22685 svn_cv_ruby_major="`$RUBY -rrbconfig -e 'print RbConfig::CONFIG.fetch(%q(MAJOR))'`" 22686 22687fi 22688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_major" >&5 22689$as_echo "$svn_cv_ruby_major" >&6; } 22690 RUBY_MAJOR="$svn_cv_ruby_major" 22691 22692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby minor version" >&5 22693$as_echo_n "checking for Ruby minor version... " >&6; } 22694if ${svn_cv_ruby_minor+:} false; then : 22695 $as_echo_n "(cached) " >&6 22696else 22697 22698 svn_cv_ruby_minor="`$RUBY -rrbconfig -e 'print RbConfig::CONFIG.fetch(%q(MINOR))'`" 22699 22700fi 22701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_minor" >&5 22702$as_echo "$svn_cv_ruby_minor" >&6; } 22703 RUBY_MINOR="$svn_cv_ruby_minor" 22704 22705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby teeny version" >&5 22706$as_echo_n "checking for Ruby teeny version... " >&6; } 22707if ${svn_cv_ruby_teeny+:} false; then : 22708 $as_echo_n "(cached) " >&6 22709else 22710 22711 svn_cv_ruby_teeny="`$RUBY -rrbconfig -e 'major, minor, teeny = RUBY_VERSION.split("."); print teeny;'`" 22712 22713fi 22714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_teeny" >&5 22715$as_echo "$svn_cv_ruby_teeny" >&6; } 22716 RUBY_TEENY="$svn_cv_ruby_teeny" 22717 22718 22719 22720 22721 if test \( "$RUBY_MAJOR" -eq "1" -a "$RUBY_MINOR" -gt "8" -a "$RUBY_TEENY" -lt "3" \); then 22722 # Disallow Ruby between 1.8.7 and 1.9.3 22723 RUBY="none" 22724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The detected Ruby is between 1.9 and 1.9.3" >&5 22725$as_echo "$as_me: WARNING: The detected Ruby is between 1.9 and 1.9.3" >&2;} 22726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Only 1.8.x and 1.9.3 releases are supported at this time" >&5 22727$as_echo "$as_me: WARNING: Only 1.8.x and 1.9.3 releases are supported at this time" >&2;} 22728 elif test \( "$RUBY_MAJOR" -eq "1" -a "$RUBY_MINOR" -eq "9" -a "$RUBY_TEENY" -eq "3" \); then 22729 #Warn about 1.9.3 support 22730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: WARNING: The detected Ruby is 1.9.3" >&5 22731$as_echo "$as_me: WARNING: WARNING: The detected Ruby is 1.9.3" >&2;} 22732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: WARNING: Only 1.8.x releases are fully supported, 1.9.3 support is new" >&5 22733$as_echo "$as_me: WARNING: WARNING: Only 1.8.x releases are fully supported, 1.9.3 support is new" >&2;} 22734 fi 22735 else 22736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22737$as_echo "no" >&6; } 22738 RUBY="none" 22739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The detected Ruby is too old for Subversion to use" >&5 22740$as_echo "$as_me: WARNING: The detected Ruby is too old for Subversion to use" >&2;} 22741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: A Ruby which has rb_hash_foreach is required to use the" >&5 22742$as_echo "$as_me: WARNING: A Ruby which has rb_hash_foreach is required to use the" >&2;} 22743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion Ruby bindings" >&5 22744$as_echo "$as_me: WARNING: Subversion Ruby bindings" >&2;} 22745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Upgrade to the official 1.8.2 release, or later" >&5 22746$as_echo "$as_me: WARNING: Upgrade to the official 1.8.2 release, or later" >&2;} 22747 fi 22748fi 22749 22750 22751 22752# Check whether --with-swig was given. 22753if test "${with_swig+set}" = set; then : 22754 withval=$with_swig; 22755 case "$withval" in 22756 "no") 22757 SWIG_SUITABLE=no 22758 22759 where=no 22760 22761 if test $where = no; then 22762 SWIG=none 22763 elif test $where = check; then 22764 # Extract the first word of "swig", so it can be a program name with args. 22765set dummy swig; ac_word=$2 22766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22767$as_echo_n "checking for $ac_word... " >&6; } 22768if ${ac_cv_path_SWIG+:} false; then : 22769 $as_echo_n "(cached) " >&6 22770else 22771 case $SWIG in 22772 [\\/]* | ?:[\\/]*) 22773 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 22774 ;; 22775 *) 22776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22777for as_dir in $PATH 22778do 22779 IFS=$as_save_IFS 22780 test -z "$as_dir" && as_dir=. 22781 for ac_exec_ext in '' $ac_executable_extensions; do 22782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22783 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" 22784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22785 break 2 22786 fi 22787done 22788 done 22789IFS=$as_save_IFS 22790 22791 test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none" 22792 ;; 22793esac 22794fi 22795SWIG=$ac_cv_path_SWIG 22796if test -n "$SWIG"; then 22797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 22798$as_echo "$SWIG" >&6; } 22799else 22800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22801$as_echo "no" >&6; } 22802fi 22803 22804 22805 else 22806 if test -f "$where"; then 22807 SWIG="$where" 22808 else 22809 SWIG="$where/bin/swig" 22810 fi 22811 if test ! -f "$SWIG" || test ! -x "$SWIG"; then 22812 as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5 22813 fi 22814 fi 22815 22816 if test "$SWIG" != "none"; then 22817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5 22818$as_echo_n "checking swig version... " >&6; } 22819 SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \ 22820 $SED -ne 's/^.*Version \(.*\)$/\1/p'`" 22821 # We want the version as an integer so we can test against 22822 # which version we're using. SWIG doesn't provide this 22823 # to us so we have to come up with it on our own. 22824 # The major is passed straight through, 22825 # the minor is zero padded to two places, 22826 # and the patch level is zero padded to three places. 22827 # e.g. 1.3.24 becomes 103024 22828 SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \ 22829 $SED -e 's/[^0-9\.].*$//' \ 22830 -e 's/\.\([0-9]\)$/.0\1/' \ 22831 -e 's/\.\([0-9][0-9]\)$/.0\1/' \ 22832 -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`" 22833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5 22834$as_echo "$SWIG_VERSION_RAW" >&6; } 22835 # If you change the required swig version number, don't forget to update: 22836 # subversion/bindings/swig/INSTALL 22837 # packages/rpm/redhat-8+/subversion.spec 22838 # packages/rpm/redhat-7.x/subversion.spec 22839 # packages/rpm/rhel-3/subversion.spec 22840 # packages/rpm/rhel-4/subversion.spec 22841 if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then 22842 SWIG_SUITABLE=yes 22843 else 22844 SWIG_SUITABLE=no 22845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5 22846$as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;} 22847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG 1.3.24 or later" >&5 22848$as_echo "$as_me: WARNING: Subversion requires SWIG 1.3.24 or later" >&2;} 22849 fi 22850 fi 22851 22852 SWIG_PY_COMPILE="none" 22853 SWIG_PY_LINK="none" 22854 if test "$PYTHON" != "none"; then 22855 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5 22856$as_echo "$as_me: Configuring python swig binding" >&6;} 22857 22858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5 22859$as_echo_n "checking for Python includes... " >&6; } 22860if ${ac_cv_python_includes+:} false; then : 22861 $as_echo_n "(cached) " >&6 22862else 22863 22864 ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`" 22865 22866fi 22867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5 22868$as_echo "$ac_cv_python_includes" >&6; } 22869 SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes" 22870 22871 if test "$ac_cv_python_includes" = "none"; then 22872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5 22873$as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;} 22874 fi 22875 22876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5 22877$as_echo_n "checking for compiling Python extensions... " >&6; } 22878if ${ac_cv_python_compile+:} false; then : 22879 $as_echo_n "(cached) " >&6 22880else 22881 22882 ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`" 22883 22884fi 22885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5 22886$as_echo "$ac_cv_python_compile" >&6; } 22887 SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS" 22888 22889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5 22890$as_echo_n "checking for linking Python extensions... " >&6; } 22891if ${ac_cv_python_link+:} false; then : 22892 $as_echo_n "(cached) " >&6 22893else 22894 22895 ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`" 22896 22897fi 22898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5 22899$as_echo "$ac_cv_python_link" >&6; } 22900 SWIG_PY_LINK="$ac_cv_python_link" 22901 22902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5 22903$as_echo_n "checking for linking Python libraries... " >&6; } 22904if ${ac_cv_python_libs+:} false; then : 22905 $as_echo_n "(cached) " >&6 22906else 22907 22908 ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`" 22909 22910fi 22911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5 22912$as_echo "$ac_cv_python_libs" >&6; } 22913 SWIG_PY_LIBS="` 22914 input_flags="$ac_cv_python_libs" 22915 output_flags="" 22916 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 22917 for flag in $input_flags; do 22918 filter="no" 22919 for dir in $filtered_dirs; do 22920 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 22921 filter="yes" 22922 break 22923 fi 22924 done 22925 if test "$filter" = "no"; then 22926 output_flags="$output_flags $flag" 22927 fi 22928 done 22929 if test -n "$output_flags"; then 22930 printf "%s" "${output_flags# }" 22931 fi 22932`" 22933 22934 SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS" 22935 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES" 22936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5 22937$as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; } 22938if ${svn_cv_pycfmt_apr_int64_t+:} false; then : 22939 $as_echo_n "(cached) " >&6 22940else 22941 22942 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then 22943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22944/* end confdefs.h. */ 22945#include <apr.h> 22946 MaTcHtHiS APR_INT64_T_FMT EnDeNd 22947_ACEOF 22948if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22949 $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then : 22950 svn_cv_pycfmt_apr_int64_t="L" 22951fi 22952rm -f conftest* 22953 22954 fi 22955 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then 22956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22957/* end confdefs.h. */ 22958r 22959 #include <apr.h> 22960 MaTcHtHiS APR_INT64_T_FMT EnDeNd 22961_ACEOF 22962if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22963 $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then : 22964 svn_cv_pycfmt_apr_int64_t="l" 22965fi 22966rm -f conftest* 22967 22968 fi 22969 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then 22970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22971/* end confdefs.h. */ 22972#include <apr.h> 22973 MaTcHtHiS APR_INT64_T_FMT EnDeNd 22974_ACEOF 22975if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22976 $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then : 22977 svn_cv_pycfmt_apr_int64_t="i" 22978fi 22979rm -f conftest* 22980 22981 fi 22982 22983fi 22984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5 22985$as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; } 22986 CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS" 22987 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then 22988 as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5 22989 fi 22990 22991cat >>confdefs.h <<_ACEOF 22992#define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t" 22993_ACEOF 22994 22995 fi 22996 22997 if test "$PERL" != "none"; then 22998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5 22999$as_echo_n "checking perl version... " >&6; } 23000 PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`" 23001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5 23002$as_echo "$PERL_VERSION" >&6; } 23003 if test "$PERL_VERSION" -ge "5008000"; then 23004 SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`" 23005 else 23006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5 23007$as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;} 23008 fi 23009 fi 23010 23011 SWIG_RB_COMPILE="none" 23012 SWIG_RB_LINK="none" 23013 if test "$RUBY" != "none"; then 23014 rbconfig="$RUBY -rrbconfig -e " 23015 23016 for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \ 23017 rubyhdrdir sitedir sitelibdir sitearchdir libdir 23018 do 23019 rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"` 23020 eval "rbconfig_$var_name=\"$rbconfig_tmp\"" 23021 done 23022 23023 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5 23024$as_echo "$as_me: Configuring Ruby SWIG binding" >&6;} 23025 23026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5 23027$as_echo_n "checking for Ruby include path... " >&6; } 23028if ${svn_cv_ruby_includes+:} false; then : 23029 $as_echo_n "(cached) " >&6 23030else 23031 23032 if test -d "$rbconfig_rubyhdrdir"; then 23033 svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward -I$rbconfig_rubyhdrdir/$rbconfig_arch" 23034 else 23035 svn_cv_ruby_includes="-I. -I$rbconfig_archdir" 23036 fi 23037 23038fi 23039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5 23040$as_echo "$svn_cv_ruby_includes" >&6; } 23041 SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes" 23042 23043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5 23044$as_echo_n "checking how to compile Ruby extensions... " >&6; } 23045if ${svn_cv_ruby_compile+:} false; then : 23046 $as_echo_n "(cached) " >&6 23047else 23048 23049 svn_cv_ruby_compile="$rbconfig_CC $CFLAGS" 23050 23051fi 23052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5 23053$as_echo "$svn_cv_ruby_compile" >&6; } 23054 SWIG_RB_COMPILE="$svn_cv_ruby_compile" 23055 23056 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'` 23057 23058 23059 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'` 23060 23061 23062 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'` 23063 23064 SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast" 23065 23066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5 23067$as_echo_n "checking how to link Ruby extensions... " >&6; } 23068if ${svn_cv_ruby_link+:} false; then : 23069 $as_echo_n "(cached) " >&6 23070else 23071 23072 svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \ 23073 $rbconfig_LDSHARED`" 23074 svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link" 23075 svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT" 23076 23077fi 23078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5 23079$as_echo "$svn_cv_ruby_link" >&6; } 23080 SWIG_RB_LINK="$svn_cv_ruby_link" 23081 23082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5 23083$as_echo_n "checking how to link Ruby libraries... " >&6; } 23084if ${ac_cv_ruby_libs+:} false; then : 23085 $as_echo_n "(cached) " >&6 23086else 23087 23088 ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS" 23089 23090fi 23091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5 23092$as_echo "$ac_cv_ruby_libs" >&6; } 23093 SWIG_RB_LIBS="` 23094 input_flags="$ac_cv_ruby_libs" 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`" 23113 23114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5 23115$as_echo_n "checking for rb_errinfo... " >&6; } 23116 old_CFLAGS="$CFLAGS" 23117 old_LIBS="$LIBS" 23118 CFLAGS="$CFLAGS $svn_cv_ruby_includes" 23119 23120 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'` 23121 23122 23123 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'` 23124 23125 23126 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'` 23127 23128 LIBS="$SWIG_RB_LIBS" 23129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23130/* end confdefs.h. */ 23131 23132#include <ruby.h> 23133int main() 23134{rb_errinfo();} 23135_ACEOF 23136if ac_fn_c_try_link "$LINENO"; then : 23137 have_rb_errinfo="yes" 23138else 23139 have_rb_errinfo="no" 23140fi 23141rm -f core conftest.err conftest.$ac_objext \ 23142 conftest$ac_exeext conftest.$ac_ext 23143 if test "$have_rb_errinfo" = "yes"; then 23144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23145$as_echo "yes" >&6; } 23146 23147$as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h 23148 23149 else 23150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23151$as_echo "no" >&6; } 23152 fi 23153 CFLAGS="$old_CFLAGS" 23154 LIBS="$old_LIBS" 23155 23156 if ${svn_cv_ruby_sitedir+:} false; then : 23157 $as_echo_n "(cached) " >&6 23158else 23159 23160 svn_cv_ruby_sitedir="$rbconfig_sitedir" 23161 23162fi 23163 23164 23165# Check whether --with-ruby-sitedir was given. 23166if test "${with_ruby_sitedir+set}" = set; then : 23167 withval=$with_ruby_sitedir; svn_ruby_installdir="$withval" 23168else 23169 svn_ruby_installdir="$svn_cv_ruby_sitedir" 23170fi 23171 23172 23173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5 23174$as_echo_n "checking where to install Ruby scripts... " >&6; } 23175 if ${svn_cv_ruby_sitedir_libsuffix+:} false; then : 23176 $as_echo_n "(cached) " >&6 23177else 23178 23179 svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \ 23180 $SED -e "s,^$rbconfig_sitedir,,"`" 23181 23182fi 23183 23184 SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}" 23185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5 23186$as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; } 23187 23188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5 23189$as_echo_n "checking where to install Ruby extensions... " >&6; } 23190 if ${svn_cv_ruby_sitedir_archsuffix+:} false; then : 23191 $as_echo_n "(cached) " >&6 23192else 23193 23194 svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \ 23195 $SED -e "s,^$rbconfig_sitedir,,"`" 23196 23197fi 23198 23199 SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}" 23200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5 23201$as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; } 23202 23203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5 23204$as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; } 23205 if ${svn_cv_ruby_test_verbose+:} false; then : 23206 $as_echo_n "(cached) " >&6 23207else 23208 23209 svn_cv_ruby_test_verbose="normal" 23210 23211fi 23212 23213 23214# Check whether --with-ruby-test-verbose was given. 23215if test "${with_ruby_test_verbose+set}" = set; then : 23216 withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval" 23217else 23218 svn_ruby_test_verbose="$svn_cv_ruby_test_verbose" 23219fi 23220 23221 SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose" 23222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5 23223$as_echo "$SWIG_RB_TEST_VERBOSE" >&6; } 23224 fi 23225 23226 23227 23228 23229 23230 23231 23232 23233 23234 23235 23236 23237 23238 23239 ;; 23240 "yes") 23241 23242 where=check 23243 23244 if test $where = no; then 23245 SWIG=none 23246 elif test $where = check; then 23247 # Extract the first word of "swig", so it can be a program name with args. 23248set dummy swig; ac_word=$2 23249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23250$as_echo_n "checking for $ac_word... " >&6; } 23251if ${ac_cv_path_SWIG+:} false; then : 23252 $as_echo_n "(cached) " >&6 23253else 23254 case $SWIG in 23255 [\\/]* | ?:[\\/]*) 23256 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 23257 ;; 23258 *) 23259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23260for as_dir in $PATH 23261do 23262 IFS=$as_save_IFS 23263 test -z "$as_dir" && as_dir=. 23264 for ac_exec_ext in '' $ac_executable_extensions; do 23265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23266 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" 23267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23268 break 2 23269 fi 23270done 23271 done 23272IFS=$as_save_IFS 23273 23274 test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none" 23275 ;; 23276esac 23277fi 23278SWIG=$ac_cv_path_SWIG 23279if test -n "$SWIG"; then 23280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 23281$as_echo "$SWIG" >&6; } 23282else 23283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23284$as_echo "no" >&6; } 23285fi 23286 23287 23288 else 23289 if test -f "$where"; then 23290 SWIG="$where" 23291 else 23292 SWIG="$where/bin/swig" 23293 fi 23294 if test ! -f "$SWIG" || test ! -x "$SWIG"; then 23295 as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5 23296 fi 23297 fi 23298 23299 if test "$SWIG" != "none"; then 23300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5 23301$as_echo_n "checking swig version... " >&6; } 23302 SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \ 23303 $SED -ne 's/^.*Version \(.*\)$/\1/p'`" 23304 # We want the version as an integer so we can test against 23305 # which version we're using. SWIG doesn't provide this 23306 # to us so we have to come up with it on our own. 23307 # The major is passed straight through, 23308 # the minor is zero padded to two places, 23309 # and the patch level is zero padded to three places. 23310 # e.g. 1.3.24 becomes 103024 23311 SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \ 23312 $SED -e 's/[^0-9\.].*$//' \ 23313 -e 's/\.\([0-9]\)$/.0\1/' \ 23314 -e 's/\.\([0-9][0-9]\)$/.0\1/' \ 23315 -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`" 23316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5 23317$as_echo "$SWIG_VERSION_RAW" >&6; } 23318 # If you change the required swig version number, don't forget to update: 23319 # subversion/bindings/swig/INSTALL 23320 # packages/rpm/redhat-8+/subversion.spec 23321 # packages/rpm/redhat-7.x/subversion.spec 23322 # packages/rpm/rhel-3/subversion.spec 23323 # packages/rpm/rhel-4/subversion.spec 23324 if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then 23325 SWIG_SUITABLE=yes 23326 else 23327 SWIG_SUITABLE=no 23328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5 23329$as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;} 23330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG 1.3.24 or later" >&5 23331$as_echo "$as_me: WARNING: Subversion requires SWIG 1.3.24 or later" >&2;} 23332 fi 23333 fi 23334 23335 SWIG_PY_COMPILE="none" 23336 SWIG_PY_LINK="none" 23337 if test "$PYTHON" != "none"; then 23338 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5 23339$as_echo "$as_me: Configuring python swig binding" >&6;} 23340 23341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5 23342$as_echo_n "checking for Python includes... " >&6; } 23343if ${ac_cv_python_includes+:} false; then : 23344 $as_echo_n "(cached) " >&6 23345else 23346 23347 ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`" 23348 23349fi 23350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5 23351$as_echo "$ac_cv_python_includes" >&6; } 23352 SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes" 23353 23354 if test "$ac_cv_python_includes" = "none"; then 23355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5 23356$as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;} 23357 fi 23358 23359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5 23360$as_echo_n "checking for compiling Python extensions... " >&6; } 23361if ${ac_cv_python_compile+:} false; then : 23362 $as_echo_n "(cached) " >&6 23363else 23364 23365 ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`" 23366 23367fi 23368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5 23369$as_echo "$ac_cv_python_compile" >&6; } 23370 SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS" 23371 23372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5 23373$as_echo_n "checking for linking Python extensions... " >&6; } 23374if ${ac_cv_python_link+:} false; then : 23375 $as_echo_n "(cached) " >&6 23376else 23377 23378 ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`" 23379 23380fi 23381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5 23382$as_echo "$ac_cv_python_link" >&6; } 23383 SWIG_PY_LINK="$ac_cv_python_link" 23384 23385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5 23386$as_echo_n "checking for linking Python libraries... " >&6; } 23387if ${ac_cv_python_libs+:} false; then : 23388 $as_echo_n "(cached) " >&6 23389else 23390 23391 ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`" 23392 23393fi 23394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5 23395$as_echo "$ac_cv_python_libs" >&6; } 23396 SWIG_PY_LIBS="` 23397 input_flags="$ac_cv_python_libs" 23398 output_flags="" 23399 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 23400 for flag in $input_flags; do 23401 filter="no" 23402 for dir in $filtered_dirs; do 23403 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 23404 filter="yes" 23405 break 23406 fi 23407 done 23408 if test "$filter" = "no"; then 23409 output_flags="$output_flags $flag" 23410 fi 23411 done 23412 if test -n "$output_flags"; then 23413 printf "%s" "${output_flags# }" 23414 fi 23415`" 23416 23417 SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS" 23418 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES" 23419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5 23420$as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; } 23421if ${svn_cv_pycfmt_apr_int64_t+:} false; then : 23422 $as_echo_n "(cached) " >&6 23423else 23424 23425 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then 23426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23427/* end confdefs.h. */ 23428#include <apr.h> 23429 MaTcHtHiS APR_INT64_T_FMT EnDeNd 23430_ACEOF 23431if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23432 $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then : 23433 svn_cv_pycfmt_apr_int64_t="L" 23434fi 23435rm -f conftest* 23436 23437 fi 23438 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then 23439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23440/* end confdefs.h. */ 23441r 23442 #include <apr.h> 23443 MaTcHtHiS APR_INT64_T_FMT EnDeNd 23444_ACEOF 23445if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23446 $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then : 23447 svn_cv_pycfmt_apr_int64_t="l" 23448fi 23449rm -f conftest* 23450 23451 fi 23452 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then 23453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23454/* end confdefs.h. */ 23455#include <apr.h> 23456 MaTcHtHiS APR_INT64_T_FMT EnDeNd 23457_ACEOF 23458if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23459 $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then : 23460 svn_cv_pycfmt_apr_int64_t="i" 23461fi 23462rm -f conftest* 23463 23464 fi 23465 23466fi 23467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5 23468$as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; } 23469 CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS" 23470 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then 23471 as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5 23472 fi 23473 23474cat >>confdefs.h <<_ACEOF 23475#define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t" 23476_ACEOF 23477 23478 fi 23479 23480 if test "$PERL" != "none"; then 23481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5 23482$as_echo_n "checking perl version... " >&6; } 23483 PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`" 23484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5 23485$as_echo "$PERL_VERSION" >&6; } 23486 if test "$PERL_VERSION" -ge "5008000"; then 23487 SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`" 23488 else 23489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5 23490$as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;} 23491 fi 23492 fi 23493 23494 SWIG_RB_COMPILE="none" 23495 SWIG_RB_LINK="none" 23496 if test "$RUBY" != "none"; then 23497 rbconfig="$RUBY -rrbconfig -e " 23498 23499 for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \ 23500 rubyhdrdir sitedir sitelibdir sitearchdir libdir 23501 do 23502 rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"` 23503 eval "rbconfig_$var_name=\"$rbconfig_tmp\"" 23504 done 23505 23506 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5 23507$as_echo "$as_me: Configuring Ruby SWIG binding" >&6;} 23508 23509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5 23510$as_echo_n "checking for Ruby include path... " >&6; } 23511if ${svn_cv_ruby_includes+:} false; then : 23512 $as_echo_n "(cached) " >&6 23513else 23514 23515 if test -d "$rbconfig_rubyhdrdir"; then 23516 svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward -I$rbconfig_rubyhdrdir/$rbconfig_arch" 23517 else 23518 svn_cv_ruby_includes="-I. -I$rbconfig_archdir" 23519 fi 23520 23521fi 23522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5 23523$as_echo "$svn_cv_ruby_includes" >&6; } 23524 SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes" 23525 23526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5 23527$as_echo_n "checking how to compile Ruby extensions... " >&6; } 23528if ${svn_cv_ruby_compile+:} false; then : 23529 $as_echo_n "(cached) " >&6 23530else 23531 23532 svn_cv_ruby_compile="$rbconfig_CC $CFLAGS" 23533 23534fi 23535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5 23536$as_echo "$svn_cv_ruby_compile" >&6; } 23537 SWIG_RB_COMPILE="$svn_cv_ruby_compile" 23538 23539 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'` 23540 23541 23542 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'` 23543 23544 23545 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'` 23546 23547 SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast" 23548 23549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5 23550$as_echo_n "checking how to link Ruby extensions... " >&6; } 23551if ${svn_cv_ruby_link+:} false; then : 23552 $as_echo_n "(cached) " >&6 23553else 23554 23555 svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \ 23556 $rbconfig_LDSHARED`" 23557 svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link" 23558 svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT" 23559 23560fi 23561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5 23562$as_echo "$svn_cv_ruby_link" >&6; } 23563 SWIG_RB_LINK="$svn_cv_ruby_link" 23564 23565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5 23566$as_echo_n "checking how to link Ruby libraries... " >&6; } 23567if ${ac_cv_ruby_libs+:} false; then : 23568 $as_echo_n "(cached) " >&6 23569else 23570 23571 ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS" 23572 23573fi 23574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5 23575$as_echo "$ac_cv_ruby_libs" >&6; } 23576 SWIG_RB_LIBS="` 23577 input_flags="$ac_cv_ruby_libs" 23578 output_flags="" 23579 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 23580 for flag in $input_flags; do 23581 filter="no" 23582 for dir in $filtered_dirs; do 23583 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 23584 filter="yes" 23585 break 23586 fi 23587 done 23588 if test "$filter" = "no"; then 23589 output_flags="$output_flags $flag" 23590 fi 23591 done 23592 if test -n "$output_flags"; then 23593 printf "%s" "${output_flags# }" 23594 fi 23595`" 23596 23597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5 23598$as_echo_n "checking for rb_errinfo... " >&6; } 23599 old_CFLAGS="$CFLAGS" 23600 old_LIBS="$LIBS" 23601 CFLAGS="$CFLAGS $svn_cv_ruby_includes" 23602 23603 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'` 23604 23605 23606 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'` 23607 23608 23609 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'` 23610 23611 LIBS="$SWIG_RB_LIBS" 23612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23613/* end confdefs.h. */ 23614 23615#include <ruby.h> 23616int main() 23617{rb_errinfo();} 23618_ACEOF 23619if ac_fn_c_try_link "$LINENO"; then : 23620 have_rb_errinfo="yes" 23621else 23622 have_rb_errinfo="no" 23623fi 23624rm -f core conftest.err conftest.$ac_objext \ 23625 conftest$ac_exeext conftest.$ac_ext 23626 if test "$have_rb_errinfo" = "yes"; then 23627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23628$as_echo "yes" >&6; } 23629 23630$as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h 23631 23632 else 23633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23634$as_echo "no" >&6; } 23635 fi 23636 CFLAGS="$old_CFLAGS" 23637 LIBS="$old_LIBS" 23638 23639 if ${svn_cv_ruby_sitedir+:} false; then : 23640 $as_echo_n "(cached) " >&6 23641else 23642 23643 svn_cv_ruby_sitedir="$rbconfig_sitedir" 23644 23645fi 23646 23647 23648# Check whether --with-ruby-sitedir was given. 23649if test "${with_ruby_sitedir+set}" = set; then : 23650 withval=$with_ruby_sitedir; svn_ruby_installdir="$withval" 23651else 23652 svn_ruby_installdir="$svn_cv_ruby_sitedir" 23653fi 23654 23655 23656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5 23657$as_echo_n "checking where to install Ruby scripts... " >&6; } 23658 if ${svn_cv_ruby_sitedir_libsuffix+:} false; then : 23659 $as_echo_n "(cached) " >&6 23660else 23661 23662 svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \ 23663 $SED -e "s,^$rbconfig_sitedir,,"`" 23664 23665fi 23666 23667 SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}" 23668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5 23669$as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; } 23670 23671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5 23672$as_echo_n "checking where to install Ruby extensions... " >&6; } 23673 if ${svn_cv_ruby_sitedir_archsuffix+:} false; then : 23674 $as_echo_n "(cached) " >&6 23675else 23676 23677 svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \ 23678 $SED -e "s,^$rbconfig_sitedir,,"`" 23679 23680fi 23681 23682 SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}" 23683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5 23684$as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; } 23685 23686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5 23687$as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; } 23688 if ${svn_cv_ruby_test_verbose+:} false; then : 23689 $as_echo_n "(cached) " >&6 23690else 23691 23692 svn_cv_ruby_test_verbose="normal" 23693 23694fi 23695 23696 23697# Check whether --with-ruby-test-verbose was given. 23698if test "${with_ruby_test_verbose+set}" = set; then : 23699 withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval" 23700else 23701 svn_ruby_test_verbose="$svn_cv_ruby_test_verbose" 23702fi 23703 23704 SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose" 23705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5 23706$as_echo "$SWIG_RB_TEST_VERBOSE" >&6; } 23707 fi 23708 23709 23710 23711 23712 23713 23714 23715 23716 23717 23718 23719 23720 23721 23722 ;; 23723 *) 23724 23725 where=$withval 23726 23727 if test $where = no; then 23728 SWIG=none 23729 elif test $where = check; then 23730 # Extract the first word of "swig", so it can be a program name with args. 23731set dummy swig; ac_word=$2 23732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23733$as_echo_n "checking for $ac_word... " >&6; } 23734if ${ac_cv_path_SWIG+:} false; then : 23735 $as_echo_n "(cached) " >&6 23736else 23737 case $SWIG in 23738 [\\/]* | ?:[\\/]*) 23739 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 23740 ;; 23741 *) 23742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23743for as_dir in $PATH 23744do 23745 IFS=$as_save_IFS 23746 test -z "$as_dir" && as_dir=. 23747 for ac_exec_ext in '' $ac_executable_extensions; do 23748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23749 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" 23750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23751 break 2 23752 fi 23753done 23754 done 23755IFS=$as_save_IFS 23756 23757 test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none" 23758 ;; 23759esac 23760fi 23761SWIG=$ac_cv_path_SWIG 23762if test -n "$SWIG"; then 23763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 23764$as_echo "$SWIG" >&6; } 23765else 23766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23767$as_echo "no" >&6; } 23768fi 23769 23770 23771 else 23772 if test -f "$where"; then 23773 SWIG="$where" 23774 else 23775 SWIG="$where/bin/swig" 23776 fi 23777 if test ! -f "$SWIG" || test ! -x "$SWIG"; then 23778 as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5 23779 fi 23780 fi 23781 23782 if test "$SWIG" != "none"; then 23783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5 23784$as_echo_n "checking swig version... " >&6; } 23785 SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \ 23786 $SED -ne 's/^.*Version \(.*\)$/\1/p'`" 23787 # We want the version as an integer so we can test against 23788 # which version we're using. SWIG doesn't provide this 23789 # to us so we have to come up with it on our own. 23790 # The major is passed straight through, 23791 # the minor is zero padded to two places, 23792 # and the patch level is zero padded to three places. 23793 # e.g. 1.3.24 becomes 103024 23794 SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \ 23795 $SED -e 's/[^0-9\.].*$//' \ 23796 -e 's/\.\([0-9]\)$/.0\1/' \ 23797 -e 's/\.\([0-9][0-9]\)$/.0\1/' \ 23798 -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`" 23799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5 23800$as_echo "$SWIG_VERSION_RAW" >&6; } 23801 # If you change the required swig version number, don't forget to update: 23802 # subversion/bindings/swig/INSTALL 23803 # packages/rpm/redhat-8+/subversion.spec 23804 # packages/rpm/redhat-7.x/subversion.spec 23805 # packages/rpm/rhel-3/subversion.spec 23806 # packages/rpm/rhel-4/subversion.spec 23807 if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then 23808 SWIG_SUITABLE=yes 23809 else 23810 SWIG_SUITABLE=no 23811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5 23812$as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;} 23813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG 1.3.24 or later" >&5 23814$as_echo "$as_me: WARNING: Subversion requires SWIG 1.3.24 or later" >&2;} 23815 fi 23816 fi 23817 23818 SWIG_PY_COMPILE="none" 23819 SWIG_PY_LINK="none" 23820 if test "$PYTHON" != "none"; then 23821 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5 23822$as_echo "$as_me: Configuring python swig binding" >&6;} 23823 23824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5 23825$as_echo_n "checking for Python includes... " >&6; } 23826if ${ac_cv_python_includes+:} false; then : 23827 $as_echo_n "(cached) " >&6 23828else 23829 23830 ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`" 23831 23832fi 23833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5 23834$as_echo "$ac_cv_python_includes" >&6; } 23835 SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes" 23836 23837 if test "$ac_cv_python_includes" = "none"; then 23838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5 23839$as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;} 23840 fi 23841 23842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5 23843$as_echo_n "checking for compiling Python extensions... " >&6; } 23844if ${ac_cv_python_compile+:} false; then : 23845 $as_echo_n "(cached) " >&6 23846else 23847 23848 ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`" 23849 23850fi 23851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5 23852$as_echo "$ac_cv_python_compile" >&6; } 23853 SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS" 23854 23855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5 23856$as_echo_n "checking for linking Python extensions... " >&6; } 23857if ${ac_cv_python_link+:} false; then : 23858 $as_echo_n "(cached) " >&6 23859else 23860 23861 ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`" 23862 23863fi 23864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5 23865$as_echo "$ac_cv_python_link" >&6; } 23866 SWIG_PY_LINK="$ac_cv_python_link" 23867 23868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5 23869$as_echo_n "checking for linking Python libraries... " >&6; } 23870if ${ac_cv_python_libs+:} false; then : 23871 $as_echo_n "(cached) " >&6 23872else 23873 23874 ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`" 23875 23876fi 23877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5 23878$as_echo "$ac_cv_python_libs" >&6; } 23879 SWIG_PY_LIBS="` 23880 input_flags="$ac_cv_python_libs" 23881 output_flags="" 23882 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 23883 for flag in $input_flags; do 23884 filter="no" 23885 for dir in $filtered_dirs; do 23886 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 23887 filter="yes" 23888 break 23889 fi 23890 done 23891 if test "$filter" = "no"; then 23892 output_flags="$output_flags $flag" 23893 fi 23894 done 23895 if test -n "$output_flags"; then 23896 printf "%s" "${output_flags# }" 23897 fi 23898`" 23899 23900 SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS" 23901 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES" 23902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5 23903$as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; } 23904if ${svn_cv_pycfmt_apr_int64_t+:} false; then : 23905 $as_echo_n "(cached) " >&6 23906else 23907 23908 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then 23909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23910/* end confdefs.h. */ 23911#include <apr.h> 23912 MaTcHtHiS APR_INT64_T_FMT EnDeNd 23913_ACEOF 23914if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23915 $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then : 23916 svn_cv_pycfmt_apr_int64_t="L" 23917fi 23918rm -f conftest* 23919 23920 fi 23921 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then 23922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23923/* end confdefs.h. */ 23924r 23925 #include <apr.h> 23926 MaTcHtHiS APR_INT64_T_FMT EnDeNd 23927_ACEOF 23928if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23929 $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then : 23930 svn_cv_pycfmt_apr_int64_t="l" 23931fi 23932rm -f conftest* 23933 23934 fi 23935 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then 23936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23937/* end confdefs.h. */ 23938#include <apr.h> 23939 MaTcHtHiS APR_INT64_T_FMT EnDeNd 23940_ACEOF 23941if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23942 $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then : 23943 svn_cv_pycfmt_apr_int64_t="i" 23944fi 23945rm -f conftest* 23946 23947 fi 23948 23949fi 23950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5 23951$as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; } 23952 CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS" 23953 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then 23954 as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5 23955 fi 23956 23957cat >>confdefs.h <<_ACEOF 23958#define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t" 23959_ACEOF 23960 23961 fi 23962 23963 if test "$PERL" != "none"; then 23964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5 23965$as_echo_n "checking perl version... " >&6; } 23966 PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`" 23967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5 23968$as_echo "$PERL_VERSION" >&6; } 23969 if test "$PERL_VERSION" -ge "5008000"; then 23970 SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`" 23971 else 23972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5 23973$as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;} 23974 fi 23975 fi 23976 23977 SWIG_RB_COMPILE="none" 23978 SWIG_RB_LINK="none" 23979 if test "$RUBY" != "none"; then 23980 rbconfig="$RUBY -rrbconfig -e " 23981 23982 for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \ 23983 rubyhdrdir sitedir sitelibdir sitearchdir libdir 23984 do 23985 rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"` 23986 eval "rbconfig_$var_name=\"$rbconfig_tmp\"" 23987 done 23988 23989 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5 23990$as_echo "$as_me: Configuring Ruby SWIG binding" >&6;} 23991 23992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5 23993$as_echo_n "checking for Ruby include path... " >&6; } 23994if ${svn_cv_ruby_includes+:} false; then : 23995 $as_echo_n "(cached) " >&6 23996else 23997 23998 if test -d "$rbconfig_rubyhdrdir"; then 23999 svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward -I$rbconfig_rubyhdrdir/$rbconfig_arch" 24000 else 24001 svn_cv_ruby_includes="-I. -I$rbconfig_archdir" 24002 fi 24003 24004fi 24005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5 24006$as_echo "$svn_cv_ruby_includes" >&6; } 24007 SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes" 24008 24009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5 24010$as_echo_n "checking how to compile Ruby extensions... " >&6; } 24011if ${svn_cv_ruby_compile+:} false; then : 24012 $as_echo_n "(cached) " >&6 24013else 24014 24015 svn_cv_ruby_compile="$rbconfig_CC $CFLAGS" 24016 24017fi 24018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5 24019$as_echo "$svn_cv_ruby_compile" >&6; } 24020 SWIG_RB_COMPILE="$svn_cv_ruby_compile" 24021 24022 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'` 24023 24024 24025 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'` 24026 24027 24028 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'` 24029 24030 SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast" 24031 24032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5 24033$as_echo_n "checking how to link Ruby extensions... " >&6; } 24034if ${svn_cv_ruby_link+:} false; then : 24035 $as_echo_n "(cached) " >&6 24036else 24037 24038 svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \ 24039 $rbconfig_LDSHARED`" 24040 svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link" 24041 svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT" 24042 24043fi 24044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5 24045$as_echo "$svn_cv_ruby_link" >&6; } 24046 SWIG_RB_LINK="$svn_cv_ruby_link" 24047 24048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5 24049$as_echo_n "checking how to link Ruby libraries... " >&6; } 24050if ${ac_cv_ruby_libs+:} false; then : 24051 $as_echo_n "(cached) " >&6 24052else 24053 24054 ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS" 24055 24056fi 24057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5 24058$as_echo "$ac_cv_ruby_libs" >&6; } 24059 SWIG_RB_LIBS="` 24060 input_flags="$ac_cv_ruby_libs" 24061 output_flags="" 24062 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 24063 for flag in $input_flags; do 24064 filter="no" 24065 for dir in $filtered_dirs; do 24066 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 24067 filter="yes" 24068 break 24069 fi 24070 done 24071 if test "$filter" = "no"; then 24072 output_flags="$output_flags $flag" 24073 fi 24074 done 24075 if test -n "$output_flags"; then 24076 printf "%s" "${output_flags# }" 24077 fi 24078`" 24079 24080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5 24081$as_echo_n "checking for rb_errinfo... " >&6; } 24082 old_CFLAGS="$CFLAGS" 24083 old_LIBS="$LIBS" 24084 CFLAGS="$CFLAGS $svn_cv_ruby_includes" 24085 24086 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'` 24087 24088 24089 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'` 24090 24091 24092 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'` 24093 24094 LIBS="$SWIG_RB_LIBS" 24095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24096/* end confdefs.h. */ 24097 24098#include <ruby.h> 24099int main() 24100{rb_errinfo();} 24101_ACEOF 24102if ac_fn_c_try_link "$LINENO"; then : 24103 have_rb_errinfo="yes" 24104else 24105 have_rb_errinfo="no" 24106fi 24107rm -f core conftest.err conftest.$ac_objext \ 24108 conftest$ac_exeext conftest.$ac_ext 24109 if test "$have_rb_errinfo" = "yes"; then 24110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24111$as_echo "yes" >&6; } 24112 24113$as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h 24114 24115 else 24116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24117$as_echo "no" >&6; } 24118 fi 24119 CFLAGS="$old_CFLAGS" 24120 LIBS="$old_LIBS" 24121 24122 if ${svn_cv_ruby_sitedir+:} false; then : 24123 $as_echo_n "(cached) " >&6 24124else 24125 24126 svn_cv_ruby_sitedir="$rbconfig_sitedir" 24127 24128fi 24129 24130 24131# Check whether --with-ruby-sitedir was given. 24132if test "${with_ruby_sitedir+set}" = set; then : 24133 withval=$with_ruby_sitedir; svn_ruby_installdir="$withval" 24134else 24135 svn_ruby_installdir="$svn_cv_ruby_sitedir" 24136fi 24137 24138 24139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5 24140$as_echo_n "checking where to install Ruby scripts... " >&6; } 24141 if ${svn_cv_ruby_sitedir_libsuffix+:} false; then : 24142 $as_echo_n "(cached) " >&6 24143else 24144 24145 svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \ 24146 $SED -e "s,^$rbconfig_sitedir,,"`" 24147 24148fi 24149 24150 SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}" 24151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5 24152$as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; } 24153 24154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5 24155$as_echo_n "checking where to install Ruby extensions... " >&6; } 24156 if ${svn_cv_ruby_sitedir_archsuffix+:} false; then : 24157 $as_echo_n "(cached) " >&6 24158else 24159 24160 svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \ 24161 $SED -e "s,^$rbconfig_sitedir,,"`" 24162 24163fi 24164 24165 SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}" 24166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5 24167$as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; } 24168 24169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5 24170$as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; } 24171 if ${svn_cv_ruby_test_verbose+:} false; then : 24172 $as_echo_n "(cached) " >&6 24173else 24174 24175 svn_cv_ruby_test_verbose="normal" 24176 24177fi 24178 24179 24180# Check whether --with-ruby-test-verbose was given. 24181if test "${with_ruby_test_verbose+set}" = set; then : 24182 withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval" 24183else 24184 svn_ruby_test_verbose="$svn_cv_ruby_test_verbose" 24185fi 24186 24187 SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose" 24188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5 24189$as_echo "$SWIG_RB_TEST_VERBOSE" >&6; } 24190 fi 24191 24192 24193 24194 24195 24196 24197 24198 24199 24200 24201 24202 24203 24204 24205 ;; 24206 esac 24207 24208else 24209 24210 24211 where=check 24212 24213 if test $where = no; then 24214 SWIG=none 24215 elif test $where = check; then 24216 # Extract the first word of "swig", so it can be a program name with args. 24217set dummy swig; ac_word=$2 24218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24219$as_echo_n "checking for $ac_word... " >&6; } 24220if ${ac_cv_path_SWIG+:} false; then : 24221 $as_echo_n "(cached) " >&6 24222else 24223 case $SWIG in 24224 [\\/]* | ?:[\\/]*) 24225 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path. 24226 ;; 24227 *) 24228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24229for as_dir in $PATH 24230do 24231 IFS=$as_save_IFS 24232 test -z "$as_dir" && as_dir=. 24233 for ac_exec_ext in '' $ac_executable_extensions; do 24234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24235 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext" 24236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24237 break 2 24238 fi 24239done 24240 done 24241IFS=$as_save_IFS 24242 24243 test -z "$ac_cv_path_SWIG" && ac_cv_path_SWIG="none" 24244 ;; 24245esac 24246fi 24247SWIG=$ac_cv_path_SWIG 24248if test -n "$SWIG"; then 24249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5 24250$as_echo "$SWIG" >&6; } 24251else 24252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24253$as_echo "no" >&6; } 24254fi 24255 24256 24257 else 24258 if test -f "$where"; then 24259 SWIG="$where" 24260 else 24261 SWIG="$where/bin/swig" 24262 fi 24263 if test ! -f "$SWIG" || test ! -x "$SWIG"; then 24264 as_fn_error $? "Could not find swig binary at $SWIG" "$LINENO" 5 24265 fi 24266 fi 24267 24268 if test "$SWIG" != "none"; then 24269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking swig version" >&5 24270$as_echo_n "checking swig version... " >&6; } 24271 SWIG_VERSION_RAW="`$SWIG -version 2>&1 | \ 24272 $SED -ne 's/^.*Version \(.*\)$/\1/p'`" 24273 # We want the version as an integer so we can test against 24274 # which version we're using. SWIG doesn't provide this 24275 # to us so we have to come up with it on our own. 24276 # The major is passed straight through, 24277 # the minor is zero padded to two places, 24278 # and the patch level is zero padded to three places. 24279 # e.g. 1.3.24 becomes 103024 24280 SWIG_VERSION="`echo \"$SWIG_VERSION_RAW\" | \ 24281 $SED -e 's/[^0-9\.].*$//' \ 24282 -e 's/\.\([0-9]\)$/.0\1/' \ 24283 -e 's/\.\([0-9][0-9]\)$/.0\1/' \ 24284 -e 's/\.\([0-9]\)\./0\1/; s/\.//g;'`" 24285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_VERSION_RAW" >&5 24286$as_echo "$SWIG_VERSION_RAW" >&6; } 24287 # If you change the required swig version number, don't forget to update: 24288 # subversion/bindings/swig/INSTALL 24289 # packages/rpm/redhat-8+/subversion.spec 24290 # packages/rpm/redhat-7.x/subversion.spec 24291 # packages/rpm/rhel-3/subversion.spec 24292 # packages/rpm/rhel-4/subversion.spec 24293 if test -n "$SWIG_VERSION" && test "$SWIG_VERSION" -ge "103024"; then 24294 SWIG_SUITABLE=yes 24295 else 24296 SWIG_SUITABLE=no 24297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&5 24298$as_echo "$as_me: WARNING: Detected SWIG version $SWIG_VERSION_RAW" >&2;} 24299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Subversion requires SWIG 1.3.24 or later" >&5 24300$as_echo "$as_me: WARNING: Subversion requires SWIG 1.3.24 or later" >&2;} 24301 fi 24302 fi 24303 24304 SWIG_PY_COMPILE="none" 24305 SWIG_PY_LINK="none" 24306 if test "$PYTHON" != "none"; then 24307 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring python swig binding" >&5 24308$as_echo "$as_me: Configuring python swig binding" >&6;} 24309 24310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5 24311$as_echo_n "checking for Python includes... " >&6; } 24312if ${ac_cv_python_includes+:} false; then : 24313 $as_echo_n "(cached) " >&6 24314else 24315 24316 ac_cv_python_includes="`$PYTHON ${abs_srcdir}/build/get-py-info.py --includes`" 24317 24318fi 24319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_includes" >&5 24320$as_echo "$ac_cv_python_includes" >&6; } 24321 SWIG_PY_INCLUDES="\$(SWIG_INCLUDES) $ac_cv_python_includes" 24322 24323 if test "$ac_cv_python_includes" = "none"; then 24324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python bindings cannot be built without distutils module" >&5 24325$as_echo "$as_me: WARNING: python bindings cannot be built without distutils module" >&2;} 24326 fi 24327 24328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiling Python extensions" >&5 24329$as_echo_n "checking for compiling Python extensions... " >&6; } 24330if ${ac_cv_python_compile+:} false; then : 24331 $as_echo_n "(cached) " >&6 24332else 24333 24334 ac_cv_python_compile="`$PYTHON ${abs_srcdir}/build/get-py-info.py --compile`" 24335 24336fi 24337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_compile" >&5 24338$as_echo "$ac_cv_python_compile" >&6; } 24339 SWIG_PY_COMPILE="$ac_cv_python_compile $CFLAGS" 24340 24341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python extensions" >&5 24342$as_echo_n "checking for linking Python extensions... " >&6; } 24343if ${ac_cv_python_link+:} false; then : 24344 $as_echo_n "(cached) " >&6 24345else 24346 24347 ac_cv_python_link="`$PYTHON ${abs_srcdir}/build/get-py-info.py --link`" 24348 24349fi 24350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_link" >&5 24351$as_echo "$ac_cv_python_link" >&6; } 24352 SWIG_PY_LINK="$ac_cv_python_link" 24353 24354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking Python libraries" >&5 24355$as_echo_n "checking for linking Python libraries... " >&6; } 24356if ${ac_cv_python_libs+:} false; then : 24357 $as_echo_n "(cached) " >&6 24358else 24359 24360 ac_cv_python_libs="`$PYTHON ${abs_srcdir}/build/get-py-info.py --libs`" 24361 24362fi 24363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_python_libs" >&5 24364$as_echo "$ac_cv_python_libs" >&6; } 24365 SWIG_PY_LIBS="` 24366 input_flags="$ac_cv_python_libs" 24367 output_flags="" 24368 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 24369 for flag in $input_flags; do 24370 filter="no" 24371 for dir in $filtered_dirs; do 24372 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 24373 filter="yes" 24374 break 24375 fi 24376 done 24377 if test "$filter" = "no"; then 24378 output_flags="$output_flags $flag" 24379 fi 24380 done 24381 if test -n "$output_flags"; then 24382 printf "%s" "${output_flags# }" 24383 fi 24384`" 24385 24386 SVN_PYCFMT_SAVE_CPPFLAGS="$CPPFLAGS" 24387 CPPFLAGS="$CPPFLAGS $SVN_APR_INCLUDES" 24388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apr_int64_t Python/C API format string" >&5 24389$as_echo_n "checking for apr_int64_t Python/C API format string... " >&6; } 24390if ${svn_cv_pycfmt_apr_int64_t+:} false; then : 24391 $as_echo_n "(cached) " >&6 24392else 24393 24394 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then 24395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24396/* end confdefs.h. */ 24397#include <apr.h> 24398 MaTcHtHiS APR_INT64_T_FMT EnDeNd 24399_ACEOF 24400if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24401 $EGREP "MaTcHtHiS +\"lld\" +EnDeNd" >/dev/null 2>&1; then : 24402 svn_cv_pycfmt_apr_int64_t="L" 24403fi 24404rm -f conftest* 24405 24406 fi 24407 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then 24408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24409/* end confdefs.h. */ 24410r 24411 #include <apr.h> 24412 MaTcHtHiS APR_INT64_T_FMT EnDeNd 24413_ACEOF 24414if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24415 $EGREP "MaTcHtHiS +\"ld\" +EnDeNd" >/dev/null 2>&1; then : 24416 svn_cv_pycfmt_apr_int64_t="l" 24417fi 24418rm -f conftest* 24419 24420 fi 24421 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then 24422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24423/* end confdefs.h. */ 24424#include <apr.h> 24425 MaTcHtHiS APR_INT64_T_FMT EnDeNd 24426_ACEOF 24427if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24428 $EGREP "MaTcHtHiS +\"d\" +EnDeNd" >/dev/null 2>&1; then : 24429 svn_cv_pycfmt_apr_int64_t="i" 24430fi 24431rm -f conftest* 24432 24433 fi 24434 24435fi 24436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_pycfmt_apr_int64_t" >&5 24437$as_echo "$svn_cv_pycfmt_apr_int64_t" >&6; } 24438 CPPFLAGS="$SVN_PYCFMT_SAVE_CPPFLAGS" 24439 if test "x$svn_cv_pycfmt_apr_int64_t" = "x"; then 24440 as_fn_error $? "failed to recognize APR_INT64_T_FMT on this platform" "$LINENO" 5 24441 fi 24442 24443cat >>confdefs.h <<_ACEOF 24444#define SVN_APR_INT64_T_PYCFMT "$svn_cv_pycfmt_apr_int64_t" 24445_ACEOF 24446 24447 fi 24448 24449 if test "$PERL" != "none"; then 24450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl version" >&5 24451$as_echo_n "checking perl version... " >&6; } 24452 PERL_VERSION="`$PERL -e 'q([); print $] * 1000000,$/;'`" 24453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_VERSION" >&5 24454$as_echo "$PERL_VERSION" >&6; } 24455 if test "$PERL_VERSION" -ge "5008000"; then 24456 SWIG_PL_INCLUDES="\$(SWIG_INCLUDES) `$PERL -MExtUtils::Embed -e ccopts`" 24457 else 24458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl bindings require perl 5.8.0 or newer." >&5 24459$as_echo "$as_me: WARNING: perl bindings require perl 5.8.0 or newer." >&2;} 24460 fi 24461 fi 24462 24463 SWIG_RB_COMPILE="none" 24464 SWIG_RB_LINK="none" 24465 if test "$RUBY" != "none"; then 24466 rbconfig="$RUBY -rrbconfig -e " 24467 24468 for var_name in arch archdir CC LDSHARED DLEXT LIBS LIBRUBYARG \ 24469 rubyhdrdir sitedir sitelibdir sitearchdir libdir 24470 do 24471 rbconfig_tmp=`$rbconfig "print RbConfig::CONFIG['$var_name']"` 24472 eval "rbconfig_$var_name=\"$rbconfig_tmp\"" 24473 done 24474 24475 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Ruby SWIG binding" >&5 24476$as_echo "$as_me: Configuring Ruby SWIG binding" >&6;} 24477 24478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ruby include path" >&5 24479$as_echo_n "checking for Ruby include path... " >&6; } 24480if ${svn_cv_ruby_includes+:} false; then : 24481 $as_echo_n "(cached) " >&6 24482else 24483 24484 if test -d "$rbconfig_rubyhdrdir"; then 24485 svn_cv_ruby_includes="-I. -I$rbconfig_rubyhdrdir -I$rbconfig_rubyhdrdir/ruby -I$rbconfig_rubyhdrdir/ruby/backward -I$rbconfig_rubyhdrdir/$rbconfig_arch" 24486 else 24487 svn_cv_ruby_includes="-I. -I$rbconfig_archdir" 24488 fi 24489 24490fi 24491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_includes" >&5 24492$as_echo "$svn_cv_ruby_includes" >&6; } 24493 SWIG_RB_INCLUDES="\$(SWIG_INCLUDES) $svn_cv_ruby_includes" 24494 24495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compile Ruby extensions" >&5 24496$as_echo_n "checking how to compile Ruby extensions... " >&6; } 24497if ${svn_cv_ruby_compile+:} false; then : 24498 $as_echo_n "(cached) " >&6 24499else 24500 24501 svn_cv_ruby_compile="$rbconfig_CC $CFLAGS" 24502 24503fi 24504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_compile" >&5 24505$as_echo "$svn_cv_ruby_compile" >&6; } 24506 SWIG_RB_COMPILE="$svn_cv_ruby_compile" 24507 24508 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-ansi//'` 24509 24510 24511 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c89//'` 24512 24513 24514 SWIG_RB_COMPILE=`echo "$SWIG_RB_COMPILE" | $SED -e 's/-std=c90//'` 24515 24516 SWIG_RB_COMPILE="$SWIG_RB_COMPILE -Wno-int-to-pointer-cast" 24517 24518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby extensions" >&5 24519$as_echo_n "checking how to link Ruby extensions... " >&6; } 24520if ${svn_cv_ruby_link+:} false; then : 24521 $as_echo_n "(cached) " >&6 24522else 24523 24524 svn_cv_ruby_link="`$RUBY -e 'ARGV.shift; print ARGV.join(%q( ))' \ 24525 $rbconfig_LDSHARED`" 24526 svn_cv_ruby_link="$rbconfig_CC $svn_cv_ruby_link" 24527 svn_cv_ruby_link="$svn_cv_ruby_link -shrext .$rbconfig_DLEXT" 24528 24529fi 24530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $svn_cv_ruby_link" >&5 24531$as_echo "$svn_cv_ruby_link" >&6; } 24532 SWIG_RB_LINK="$svn_cv_ruby_link" 24533 24534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link Ruby libraries" >&5 24535$as_echo_n "checking how to link Ruby libraries... " >&6; } 24536if ${ac_cv_ruby_libs+:} false; then : 24537 $as_echo_n "(cached) " >&6 24538else 24539 24540 ac_cv_ruby_libs="$rbconfig_LIBRUBYARG $rbconfig_LIBS" 24541 24542fi 24543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ruby_libs" >&5 24544$as_echo "$ac_cv_ruby_libs" >&6; } 24545 SWIG_RB_LIBS="` 24546 input_flags="$ac_cv_ruby_libs" 24547 output_flags="" 24548 filtered_dirs="/lib /lib64 /usr/lib /usr/lib64" 24549 for flag in $input_flags; do 24550 filter="no" 24551 for dir in $filtered_dirs; do 24552 if test "$flag" = "-L$dir" || test "$flag" = "-L$dir/"; then 24553 filter="yes" 24554 break 24555 fi 24556 done 24557 if test "$filter" = "no"; then 24558 output_flags="$output_flags $flag" 24559 fi 24560 done 24561 if test -n "$output_flags"; then 24562 printf "%s" "${output_flags# }" 24563 fi 24564`" 24565 24566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rb_errinfo" >&5 24567$as_echo_n "checking for rb_errinfo... " >&6; } 24568 old_CFLAGS="$CFLAGS" 24569 old_LIBS="$LIBS" 24570 CFLAGS="$CFLAGS $svn_cv_ruby_includes" 24571 24572 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-ansi//'` 24573 24574 24575 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c89//'` 24576 24577 24578 CFLAGS=`echo "$CFLAGS" | $SED -e 's/-std=c90//'` 24579 24580 LIBS="$SWIG_RB_LIBS" 24581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24582/* end confdefs.h. */ 24583 24584#include <ruby.h> 24585int main() 24586{rb_errinfo();} 24587_ACEOF 24588if ac_fn_c_try_link "$LINENO"; then : 24589 have_rb_errinfo="yes" 24590else 24591 have_rb_errinfo="no" 24592fi 24593rm -f core conftest.err conftest.$ac_objext \ 24594 conftest$ac_exeext conftest.$ac_ext 24595 if test "$have_rb_errinfo" = "yes"; then 24596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24597$as_echo "yes" >&6; } 24598 24599$as_echo "#define HAVE_RB_ERRINFO 1" >>confdefs.h 24600 24601 else 24602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24603$as_echo "no" >&6; } 24604 fi 24605 CFLAGS="$old_CFLAGS" 24606 LIBS="$old_LIBS" 24607 24608 if ${svn_cv_ruby_sitedir+:} false; then : 24609 $as_echo_n "(cached) " >&6 24610else 24611 24612 svn_cv_ruby_sitedir="$rbconfig_sitedir" 24613 24614fi 24615 24616 24617# Check whether --with-ruby-sitedir was given. 24618if test "${with_ruby_sitedir+set}" = set; then : 24619 withval=$with_ruby_sitedir; svn_ruby_installdir="$withval" 24620else 24621 svn_ruby_installdir="$svn_cv_ruby_sitedir" 24622fi 24623 24624 24625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby scripts" >&5 24626$as_echo_n "checking where to install Ruby scripts... " >&6; } 24627 if ${svn_cv_ruby_sitedir_libsuffix+:} false; then : 24628 $as_echo_n "(cached) " >&6 24629else 24630 24631 svn_cv_ruby_sitedir_libsuffix="`echo "$rbconfig_sitelibdir" | \ 24632 $SED -e "s,^$rbconfig_sitedir,,"`" 24633 24634fi 24635 24636 SWIG_RB_SITE_LIB_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_libsuffix}" 24637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_LIB_DIR" >&5 24638$as_echo "$SWIG_RB_SITE_LIB_DIR" >&6; } 24639 24640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install Ruby extensions" >&5 24641$as_echo_n "checking where to install Ruby extensions... " >&6; } 24642 if ${svn_cv_ruby_sitedir_archsuffix+:} false; then : 24643 $as_echo_n "(cached) " >&6 24644else 24645 24646 svn_cv_ruby_sitedir_archsuffix="`echo "$rbconfig_sitearchdir" | \ 24647 $SED -e "s,^$rbconfig_sitedir,,"`" 24648 24649fi 24650 24651 SWIG_RB_SITE_ARCH_DIR="${svn_ruby_installdir}${svn_cv_ruby_sitedir_archsuffix}" 24652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_SITE_ARCH_DIR" >&5 24653$as_echo "$SWIG_RB_SITE_ARCH_DIR" >&6; } 24654 24655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use output level for Ruby bindings tests" >&5 24656$as_echo_n "checking how to use output level for Ruby bindings tests... " >&6; } 24657 if ${svn_cv_ruby_test_verbose+:} false; then : 24658 $as_echo_n "(cached) " >&6 24659else 24660 24661 svn_cv_ruby_test_verbose="normal" 24662 24663fi 24664 24665 24666# Check whether --with-ruby-test-verbose was given. 24667if test "${with_ruby_test_verbose+set}" = set; then : 24668 withval=$with_ruby_test_verbose; svn_ruby_test_verbose="$withval" 24669else 24670 svn_ruby_test_verbose="$svn_cv_ruby_test_verbose" 24671fi 24672 24673 SWIG_RB_TEST_VERBOSE="$svn_ruby_test_verbose" 24674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_RB_TEST_VERBOSE" >&5 24675$as_echo "$SWIG_RB_TEST_VERBOSE" >&6; } 24676 fi 24677 24678 24679 24680 24681 24682 24683 24684 24685 24686 24687 24688 24689 24690 24691 24692fi 24693 24694 24695 24696 24697 24698# Check whether --with-ctypesgen was given. 24699if test "${with_ctypesgen+set}" = set; then : 24700 withval=$with_ctypesgen; 24701 case "$withval" in 24702 "no") 24703 24704 where=no 24705 24706 CTYPESGEN=none 24707 24708 if test $where = check; then 24709 # Extract the first word of ""ctypesgen.py"", so it can be a program name with args. 24710set dummy "ctypesgen.py"; ac_word=$2 24711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24712$as_echo_n "checking for $ac_word... " >&6; } 24713if ${ac_cv_path_CTYPESGEN+:} false; then : 24714 $as_echo_n "(cached) " >&6 24715else 24716 case $CTYPESGEN in 24717 [\\/]* | ?:[\\/]*) 24718 ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path. 24719 ;; 24720 *) 24721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24722for as_dir in $PATH 24723do 24724 IFS=$as_save_IFS 24725 test -z "$as_dir" && as_dir=. 24726 for ac_exec_ext in '' $ac_executable_extensions; do 24727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24728 ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext" 24729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24730 break 2 24731 fi 24732done 24733 done 24734IFS=$as_save_IFS 24735 24736 test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none" 24737 ;; 24738esac 24739fi 24740CTYPESGEN=$ac_cv_path_CTYPESGEN 24741if test -n "$CTYPESGEN"; then 24742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5 24743$as_echo "$CTYPESGEN" >&6; } 24744else 24745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24746$as_echo "no" >&6; } 24747fi 24748 24749 24750 elif test $where != no; then 24751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5 24752$as_echo_n "checking for ctypesgen.py... " >&6; } 24753 24754 if test -f "$where"; then 24755 CTYPESGEN="$where" 24756 elif test -f "$where/bin/ctypesgen.py"; then 24757 CTYPESGEN="$where/bin/ctypesgen.py" 24758 else 24759 CTYPESGEN="$where/ctypesgen.py" 24760 fi 24761 24762 if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then 24763 as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at 24764 $where/bin/ctypesgen.py" "$LINENO" 5 24765 else 24766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5 24767$as_echo "$CTYPESGEN" >&6; } 24768 fi 24769 fi 24770 24771 24772 24773 ;; 24774 "yes") 24775 24776 where=check 24777 24778 CTYPESGEN=none 24779 24780 if test $where = check; then 24781 # Extract the first word of ""ctypesgen.py"", so it can be a program name with args. 24782set dummy "ctypesgen.py"; ac_word=$2 24783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24784$as_echo_n "checking for $ac_word... " >&6; } 24785if ${ac_cv_path_CTYPESGEN+:} false; then : 24786 $as_echo_n "(cached) " >&6 24787else 24788 case $CTYPESGEN in 24789 [\\/]* | ?:[\\/]*) 24790 ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path. 24791 ;; 24792 *) 24793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24794for as_dir in $PATH 24795do 24796 IFS=$as_save_IFS 24797 test -z "$as_dir" && as_dir=. 24798 for ac_exec_ext in '' $ac_executable_extensions; do 24799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24800 ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext" 24801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24802 break 2 24803 fi 24804done 24805 done 24806IFS=$as_save_IFS 24807 24808 test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none" 24809 ;; 24810esac 24811fi 24812CTYPESGEN=$ac_cv_path_CTYPESGEN 24813if test -n "$CTYPESGEN"; then 24814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5 24815$as_echo "$CTYPESGEN" >&6; } 24816else 24817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24818$as_echo "no" >&6; } 24819fi 24820 24821 24822 elif test $where != no; then 24823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5 24824$as_echo_n "checking for ctypesgen.py... " >&6; } 24825 24826 if test -f "$where"; then 24827 CTYPESGEN="$where" 24828 elif test -f "$where/bin/ctypesgen.py"; then 24829 CTYPESGEN="$where/bin/ctypesgen.py" 24830 else 24831 CTYPESGEN="$where/ctypesgen.py" 24832 fi 24833 24834 if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then 24835 as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at 24836 $where/bin/ctypesgen.py" "$LINENO" 5 24837 else 24838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5 24839$as_echo "$CTYPESGEN" >&6; } 24840 fi 24841 fi 24842 24843 24844 24845 ;; 24846 *) 24847 24848 where=$withval 24849 24850 CTYPESGEN=none 24851 24852 if test $where = check; then 24853 # Extract the first word of ""ctypesgen.py"", so it can be a program name with args. 24854set dummy "ctypesgen.py"; ac_word=$2 24855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24856$as_echo_n "checking for $ac_word... " >&6; } 24857if ${ac_cv_path_CTYPESGEN+:} false; then : 24858 $as_echo_n "(cached) " >&6 24859else 24860 case $CTYPESGEN in 24861 [\\/]* | ?:[\\/]*) 24862 ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path. 24863 ;; 24864 *) 24865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24866for as_dir in $PATH 24867do 24868 IFS=$as_save_IFS 24869 test -z "$as_dir" && as_dir=. 24870 for ac_exec_ext in '' $ac_executable_extensions; do 24871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24872 ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext" 24873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24874 break 2 24875 fi 24876done 24877 done 24878IFS=$as_save_IFS 24879 24880 test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none" 24881 ;; 24882esac 24883fi 24884CTYPESGEN=$ac_cv_path_CTYPESGEN 24885if test -n "$CTYPESGEN"; then 24886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5 24887$as_echo "$CTYPESGEN" >&6; } 24888else 24889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24890$as_echo "no" >&6; } 24891fi 24892 24893 24894 elif test $where != no; then 24895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5 24896$as_echo_n "checking for ctypesgen.py... " >&6; } 24897 24898 if test -f "$where"; then 24899 CTYPESGEN="$where" 24900 elif test -f "$where/bin/ctypesgen.py"; then 24901 CTYPESGEN="$where/bin/ctypesgen.py" 24902 else 24903 CTYPESGEN="$where/ctypesgen.py" 24904 fi 24905 24906 if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then 24907 as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at 24908 $where/bin/ctypesgen.py" "$LINENO" 5 24909 else 24910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5 24911$as_echo "$CTYPESGEN" >&6; } 24912 fi 24913 fi 24914 24915 24916 24917 ;; 24918 esac 24919 24920else 24921 24922 24923 where=check 24924 24925 CTYPESGEN=none 24926 24927 if test $where = check; then 24928 # Extract the first word of ""ctypesgen.py"", so it can be a program name with args. 24929set dummy "ctypesgen.py"; ac_word=$2 24930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24931$as_echo_n "checking for $ac_word... " >&6; } 24932if ${ac_cv_path_CTYPESGEN+:} false; then : 24933 $as_echo_n "(cached) " >&6 24934else 24935 case $CTYPESGEN in 24936 [\\/]* | ?:[\\/]*) 24937 ac_cv_path_CTYPESGEN="$CTYPESGEN" # Let the user override the test with a path. 24938 ;; 24939 *) 24940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24941for as_dir in $PATH 24942do 24943 IFS=$as_save_IFS 24944 test -z "$as_dir" && as_dir=. 24945 for ac_exec_ext in '' $ac_executable_extensions; do 24946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24947 ac_cv_path_CTYPESGEN="$as_dir/$ac_word$ac_exec_ext" 24948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24949 break 2 24950 fi 24951done 24952 done 24953IFS=$as_save_IFS 24954 24955 test -z "$ac_cv_path_CTYPESGEN" && ac_cv_path_CTYPESGEN="none" 24956 ;; 24957esac 24958fi 24959CTYPESGEN=$ac_cv_path_CTYPESGEN 24960if test -n "$CTYPESGEN"; then 24961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5 24962$as_echo "$CTYPESGEN" >&6; } 24963else 24964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24965$as_echo "no" >&6; } 24966fi 24967 24968 24969 elif test $where != no; then 24970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctypesgen.py" >&5 24971$as_echo_n "checking for ctypesgen.py... " >&6; } 24972 24973 if test -f "$where"; then 24974 CTYPESGEN="$where" 24975 elif test -f "$where/bin/ctypesgen.py"; then 24976 CTYPESGEN="$where/bin/ctypesgen.py" 24977 else 24978 CTYPESGEN="$where/ctypesgen.py" 24979 fi 24980 24981 if test ! -f "$CTYPESGEN" || test ! -x "$CTYPESGEN"; then 24982 as_fn_error $? "Could not find ctypesgen at $where/ctypesgen.py or at 24983 $where/bin/ctypesgen.py" "$LINENO" 5 24984 else 24985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTYPESGEN" >&5 24986$as_echo "$CTYPESGEN" >&6; } 24987 fi 24988 fi 24989 24990 24991 24992 24993fi 24994 24995 24996 24997# Check whether --enable-runtime-module-search was given. 24998if test "${enable_runtime_module_search+set}" = set; then : 24999 enableval=$enable_runtime_module_search; 25000 if test "$enableval" = "yes"; then 25001 use_dso=yes 25002 if test "$svn_enable_shared" = "no"; then 25003 as_fn_error $? "--enable-runtime-module-search conflicts with --disable-shared" "$LINENO" 5 25004 fi 25005 25006$as_echo "#define SVN_USE_DSO 1" >>confdefs.h 25007 25008 fi 25009 25010fi 25011 25012 25013if test "$svn_enable_shared" = "no" || test "$use_dso" != "yes"; then 25014 25015$as_echo "#define SVN_LIBSVN_CLIENT_LINKS_RA_LOCAL 1" >>confdefs.h 25016 25017 svn_ra_lib_deps="\$(RA_LOCAL_DEPS)" 25018 svn_ra_lib_install_deps="install-ramod-lib" 25019 svn_ra_lib_link="\$(RA_LOCAL_LINK)" 25020 25021 25022$as_echo "#define SVN_LIBSVN_CLIENT_LINKS_RA_SVN 1" >>confdefs.h 25023 25024 svn_ra_lib_deps="$svn_ra_lib_deps \$(RA_SVN_DEPS)" 25025 svn_ra_lib_link="$svn_ra_lib_link \$(RA_SVN_LINK)" 25026 25027 if test "$svn_lib_serf" = "yes"; then 25028 25029$as_echo "#define SVN_LIBSVN_CLIENT_LINKS_RA_SERF 1" >>confdefs.h 25030 25031 svn_ra_lib_deps="$svn_ra_lib_deps \$(RA_SERF_DEPS)" 25032 svn_ra_lib_install_deps="$svn_ra_lib_install_deps install-serf-lib" 25033 svn_ra_lib_link="$svn_ra_lib_link \$(RA_SERF_LINK)" 25034 fi 25035 25036 SVN_RA_LIB_DEPS=$svn_ra_lib_deps 25037 SVN_RA_LIB_INSTALL_DEPS=$svn_ra_lib_install_deps 25038 SVN_RA_LIB_LINK=$svn_ra_lib_link 25039 25040 25041$as_echo "#define SVN_LIBSVN_FS_LINKS_FS_FS 1" >>confdefs.h 25042 25043 svn_fs_lib_deps="\$(FS_FS_DEPS)" 25044 svn_fs_lib_install_deps="install-fsmod-lib" 25045 svn_fs_lib_link="\$(FS_FS_LINK)" 25046 25047 if test "$svn_lib_berkeley_db" = "yes"; then 25048 25049$as_echo "#define SVN_LIBSVN_FS_LINKS_FS_BASE 1" >>confdefs.h 25050 25051 svn_fs_lib_deps="$svn_fs_lib_deps \$(FS_BASE_DEPS)" 25052 svn_fs_lib_install_deps="$svn_fs_lib_install_deps install-bdb-lib" 25053 svn_fs_lib_link="$svn_fs_lib_link \$(FS_BASE_LINK)" 25054 fi 25055 25056 SVN_FS_LIB_DEPS=$svn_fs_lib_deps 25057 SVN_FS_LIB_INSTALL_DEPS=$svn_fs_lib_install_deps 25058 SVN_FS_LIB_LINK=$svn_fs_lib_link 25059fi 25060 25061 25062 25063 25064 25065 25066 25067 25068# ==== JavaHL ================================================================ 25069 25070do_javahl_build=no 25071# Check whether --enable-javahl was given. 25072if test "${enable_javahl+set}" = set; then : 25073 enableval=$enable_javahl; if test "$enableval" = "yes" ; then 25074 do_javahl_build="yes" 25075 fi 25076 25077fi 25078 25079 25080JAVAHL_OBJDIR="" 25081INSTALL_EXTRA_JAVAHL_LIB="" 25082FIX_JAVAHL_LIB="" 25083JAVAHL_TESTS_TARGET="" 25084JAVAHL_COMPAT_TESTS_TARGET="" 25085LT_CXX_LIBADD="" 25086if test "$do_javahl_build" = "yes"; then 25087 if test "$JDK_SUITABLE" = "no"; then 25088 as_fn_error $? "Cannot compile JavaHL without a suitable JDK. 25089 Please specify a suitable JDK using the --with-jdk option." "$LINENO" 5 25090 fi 25091 25092 JAVAHL_OBJDIR='$(libsvnjavahl_PATH)/.libs' 25093 25094 os_arch=`uname` 25095 if test "$os_arch" = "Darwin"; then 25096 INSTALL_EXTRA_JAVAHL_LIB='ln -sf $(libdir)/libsvnjavahl-1.dylib $(libdir)/libsvnjavahl-1.jnilib' 25097 FIX_JAVAHL_LIB="ln -sf libsvnjavahl-1.dylib $JAVAHL_OBJDIR/libsvnjavahl-1.jnilib" 25098 fi 25099 # This segment (and the rest of r10800) is very likely unnecessary 25100 # with libtool 1.5, which automatically adds libstdc++ as a 25101 # dependency to the C++ libraries it builds. So at some future time 25102 # when autogen.sh requires libtool 1.5 or higher, we can get rid of 25103 # it. 25104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional flags to link C++ libraries" >&5 25105$as_echo_n "checking for additional flags to link C++ libraries... " >&6; } 25106 if test "x$ac_compiler_gnu" = "xyes"; then 25107 LT_CXX_LIBADD="-lstdc++" 25108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LT_CXX_LIBADD" >&5 25109$as_echo "$LT_CXX_LIBADD" >&6; } 25110 else 25111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 25112$as_echo "none needed" >&6; } 25113 fi 25114fi 25115 25116 25117 25118 25119 25120 25121# Check whether --with-junit was given. 25122if test "${with_junit+set}" = set; then : 25123 withval=$with_junit; 25124 if test "$withval" != "no"; then 25125 if test -n "$JAVA_CLASSPATH"; then 25126 JAVA_CLASSPATH="$withval:$JAVA_CLASSPATH" 25127 else 25128 JAVA_CLASSPATH="$withval" 25129 fi 25130 JAVAHL_TESTS_TARGET="javahl-tests" 25131 JAVAHL_COMPAT_TESTS_TARGET="javahl-compat-tests" 25132 fi 25133 25134fi 25135 25136 25137 25138 25139 25140# ==== Miscellaneous bits ==================================================== 25141 25142# Strip '-no-cpp-precomp' from CPPFLAGS for the clang compiler 25143### I think we get this flag from APR, so the fix probably belongs there 25144if test "$CC" = "clang"; then 25145 25146 CPPFLAGS=`echo "$CPPFLAGS" | $SED -e 's/-no-cpp-precomp //'` 25147 25148fi 25149 25150 25151cat >>confdefs.h <<_ACEOF 25152#define SVN_PATH_LOCAL_SEPARATOR '/' 25153_ACEOF 25154 25155 25156 25157cat >>confdefs.h <<_ACEOF 25158#define SVN_NULL_DEVICE_NAME "/dev/null" 25159_ACEOF 25160 25161 25162DEFAULT_FS_TYPE="fsfs" 25163 25164cat >>confdefs.h <<_ACEOF 25165#define DEFAULT_FS_TYPE "$DEFAULT_FS_TYPE" 25166_ACEOF 25167 25168 25169DEFAULT_HTTP_LIBRARY="serf" 25170 25171cat >>confdefs.h <<_ACEOF 25172#define DEFAULT_HTTP_LIBRARY "$DEFAULT_HTTP_LIBRARY" 25173_ACEOF 25174 25175 25176# BSD/OS (BSDi) needs to use a different include syntax in Makefile 25177INCLUDE_OUTPUTS="include \$(top_srcdir)/build-outputs.mk" 25178case "$host" in 25179 *bsdi*) 25180 # Check whether they've installed GNU make 25181 if ! make --version > /dev/null 2>&1; then 25182 # BSDi make 25183 INCLUDE_OUTPUTS=".include \"\$(top_srcdir)/build-outputs.mk\"" 25184 fi 25185 ;; 25186esac 25187 25188 25189# ==== Detection complete - output and run config.status ===================== 25190 25191ac_config_headers="$ac_config_headers subversion/svn_private_config.h.tmp:subversion/svn_private_config.h.in" 25192 25193ac_config_commands="$ac_config_commands svn_private_config.h.tmp" 25194 25195ac_config_files="$ac_config_files Makefile" 25196 25197 25198 25199 SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES tools/backup/hot-backup.py" 25200 ac_config_files="$ac_config_files tools/backup/hot-backup.py" 25201 25202 25203 SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES tools/hook-scripts/commit-access-control.pl" 25204 ac_config_files="$ac_config_files tools/hook-scripts/commit-access-control.pl" 25205 25206 25207 SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES subversion/bindings/swig/perl/native/Makefile.PL" 25208 ac_config_files="$ac_config_files subversion/bindings/swig/perl/native/Makefile.PL" 25209 25210if test -e packages/solaris/pkginfo.in; then 25211 25212 SVN_CONFIG_SCRIPT_FILES="$SVN_CONFIG_SCRIPT_FILES packages/solaris/pkginfo" 25213 ac_config_files="$ac_config_files packages/solaris/pkginfo" 25214 25215fi 25216 25217 25218# Ensure that SWIG is checked after reconfiguration. 25219rm -f .swig_checked 25220 25221 25222cat >>confdefs.h <<_ACEOF 25223#define SVN_BUILD_HOST "${host}" 25224_ACEOF 25225 25226 25227 25228cat >>confdefs.h <<_ACEOF 25229#define SVN_BUILD_TARGET "${target}" 25230_ACEOF 25231 25232 25233cat >confcache <<\_ACEOF 25234# This file is a shell script that caches the results of configure 25235# tests run on this system so they can be shared between configure 25236# scripts and configure runs, see configure's option --config-cache. 25237# It is not useful on other systems. If it contains results you don't 25238# want to keep, you may remove or edit it. 25239# 25240# config.status only pays attention to the cache file if you give it 25241# the --recheck option to rerun configure. 25242# 25243# `ac_cv_env_foo' variables (set or unset) will be overridden when 25244# loading this file, other *unset* `ac_cv_foo' will be assigned the 25245# following values. 25246 25247_ACEOF 25248 25249# The following way of writing the cache mishandles newlines in values, 25250# but we know of no workaround that is simple, portable, and efficient. 25251# So, we kill variables containing newlines. 25252# Ultrix sh set writes to stderr and can't be redirected directly, 25253# and sets the high bit in the cache file unless we assign to the vars. 25254( 25255 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 25256 eval ac_val=\$$ac_var 25257 case $ac_val in #( 25258 *${as_nl}*) 25259 case $ac_var in #( 25260 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 25261$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 25262 esac 25263 case $ac_var in #( 25264 _ | IFS | as_nl) ;; #( 25265 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 25266 *) { eval $ac_var=; unset $ac_var;} ;; 25267 esac ;; 25268 esac 25269 done 25270 25271 (set) 2>&1 | 25272 case $as_nl`(ac_space=' '; set) 2>&1` in #( 25273 *${as_nl}ac_space=\ *) 25274 # `set' does not quote correctly, so add quotes: double-quote 25275 # substitution turns \\\\ into \\, and sed turns \\ into \. 25276 sed -n \ 25277 "s/'/'\\\\''/g; 25278 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 25279 ;; #( 25280 *) 25281 # `set' quotes correctly as required by POSIX, so do not add quotes. 25282 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 25283 ;; 25284 esac | 25285 sort 25286) | 25287 sed ' 25288 /^ac_cv_env_/b end 25289 t clear 25290 :clear 25291 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 25292 t end 25293 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 25294 :end' >>confcache 25295if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 25296 if test -w "$cache_file"; then 25297 if test "x$cache_file" != "x/dev/null"; then 25298 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 25299$as_echo "$as_me: updating cache $cache_file" >&6;} 25300 if test ! -f "$cache_file" || test -h "$cache_file"; then 25301 cat confcache >"$cache_file" 25302 else 25303 case $cache_file in #( 25304 */* | ?:*) 25305 mv -f confcache "$cache_file"$$ && 25306 mv -f "$cache_file"$$ "$cache_file" ;; #( 25307 *) 25308 mv -f confcache "$cache_file" ;; 25309 esac 25310 fi 25311 fi 25312 else 25313 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 25314$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 25315 fi 25316fi 25317rm -f confcache 25318 25319test "x$prefix" = xNONE && prefix=$ac_default_prefix 25320# Let make expand exec_prefix. 25321test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 25322 25323DEFS=-DHAVE_CONFIG_H 25324 25325ac_libobjs= 25326ac_ltlibobjs= 25327U= 25328for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 25329 # 1. Remove the extension, and $U if already installed. 25330 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 25331 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 25332 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 25333 # will be set to the directory where LIBOBJS objects are built. 25334 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 25335 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 25336done 25337LIBOBJS=$ac_libobjs 25338 25339LTLIBOBJS=$ac_ltlibobjs 25340 25341 25342 25343: "${CONFIG_STATUS=./config.status}" 25344ac_write_fail=0 25345ac_clean_files_save=$ac_clean_files 25346ac_clean_files="$ac_clean_files $CONFIG_STATUS" 25347{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 25348$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 25349as_write_fail=0 25350cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 25351#! $SHELL 25352# Generated by $as_me. 25353# Run this file to recreate the current configuration. 25354# Compiler output produced by configure, useful for debugging 25355# configure, is in config.log if it exists. 25356 25357debug=false 25358ac_cs_recheck=false 25359ac_cs_silent=false 25360 25361SHELL=\${CONFIG_SHELL-$SHELL} 25362export SHELL 25363_ASEOF 25364cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 25365## -------------------- ## 25366## M4sh Initialization. ## 25367## -------------------- ## 25368 25369# Be more Bourne compatible 25370DUALCASE=1; export DUALCASE # for MKS sh 25371if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 25372 emulate sh 25373 NULLCMD=: 25374 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25375 # is contrary to our usage. Disable this feature. 25376 alias -g '${1+"$@"}'='"$@"' 25377 setopt NO_GLOB_SUBST 25378else 25379 case `(set -o) 2>/dev/null` in #( 25380 *posix*) : 25381 set -o posix ;; #( 25382 *) : 25383 ;; 25384esac 25385fi 25386 25387 25388as_nl=' 25389' 25390export as_nl 25391# Printing a long string crashes Solaris 7 /usr/bin/printf. 25392as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 25393as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 25394as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 25395# Prefer a ksh shell builtin over an external printf program on Solaris, 25396# but without wasting forks for bash or zsh. 25397if test -z "$BASH_VERSION$ZSH_VERSION" \ 25398 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 25399 as_echo='print -r --' 25400 as_echo_n='print -rn --' 25401elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 25402 as_echo='printf %s\n' 25403 as_echo_n='printf %s' 25404else 25405 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 25406 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 25407 as_echo_n='/usr/ucb/echo -n' 25408 else 25409 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 25410 as_echo_n_body='eval 25411 arg=$1; 25412 case $arg in #( 25413 *"$as_nl"*) 25414 expr "X$arg" : "X\\(.*\\)$as_nl"; 25415 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 25416 esac; 25417 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 25418 ' 25419 export as_echo_n_body 25420 as_echo_n='sh -c $as_echo_n_body as_echo' 25421 fi 25422 export as_echo_body 25423 as_echo='sh -c $as_echo_body as_echo' 25424fi 25425 25426# The user is always right. 25427if test "${PATH_SEPARATOR+set}" != set; then 25428 PATH_SEPARATOR=: 25429 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 25430 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 25431 PATH_SEPARATOR=';' 25432 } 25433fi 25434 25435 25436# IFS 25437# We need space, tab and new line, in precisely that order. Quoting is 25438# there to prevent editors from complaining about space-tab. 25439# (If _AS_PATH_WALK were called with IFS unset, it would disable word 25440# splitting by setting IFS to empty value.) 25441IFS=" "" $as_nl" 25442 25443# Find who we are. Look in the path if we contain no directory separator. 25444as_myself= 25445case $0 in #(( 25446 *[\\/]* ) as_myself=$0 ;; 25447 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25448for as_dir in $PATH 25449do 25450 IFS=$as_save_IFS 25451 test -z "$as_dir" && as_dir=. 25452 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 25453 done 25454IFS=$as_save_IFS 25455 25456 ;; 25457esac 25458# We did not find ourselves, most probably we were run as `sh COMMAND' 25459# in which case we are not to be found in the path. 25460if test "x$as_myself" = x; then 25461 as_myself=$0 25462fi 25463if test ! -f "$as_myself"; then 25464 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 25465 exit 1 25466fi 25467 25468# Unset variables that we do not need and which cause bugs (e.g. in 25469# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 25470# suppresses any "Segmentation fault" message there. '((' could 25471# trigger a bug in pdksh 5.2.14. 25472for as_var in BASH_ENV ENV MAIL MAILPATH 25473do eval test x\${$as_var+set} = xset \ 25474 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 25475done 25476PS1='$ ' 25477PS2='> ' 25478PS4='+ ' 25479 25480# NLS nuisances. 25481LC_ALL=C 25482export LC_ALL 25483LANGUAGE=C 25484export LANGUAGE 25485 25486# CDPATH. 25487(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 25488 25489 25490# as_fn_error STATUS ERROR [LINENO LOG_FD] 25491# ---------------------------------------- 25492# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 25493# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 25494# script with STATUS, using 1 if that was 0. 25495as_fn_error () 25496{ 25497 as_status=$1; test $as_status -eq 0 && as_status=1 25498 if test "$4"; then 25499 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 25500 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 25501 fi 25502 $as_echo "$as_me: error: $2" >&2 25503 as_fn_exit $as_status 25504} # as_fn_error 25505 25506 25507# as_fn_set_status STATUS 25508# ----------------------- 25509# Set $? to STATUS, without forking. 25510as_fn_set_status () 25511{ 25512 return $1 25513} # as_fn_set_status 25514 25515# as_fn_exit STATUS 25516# ----------------- 25517# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 25518as_fn_exit () 25519{ 25520 set +e 25521 as_fn_set_status $1 25522 exit $1 25523} # as_fn_exit 25524 25525# as_fn_unset VAR 25526# --------------- 25527# Portably unset VAR. 25528as_fn_unset () 25529{ 25530 { eval $1=; unset $1;} 25531} 25532as_unset=as_fn_unset 25533# as_fn_append VAR VALUE 25534# ---------------------- 25535# Append the text in VALUE to the end of the definition contained in VAR. Take 25536# advantage of any shell optimizations that allow amortized linear growth over 25537# repeated appends, instead of the typical quadratic growth present in naive 25538# implementations. 25539if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 25540 eval 'as_fn_append () 25541 { 25542 eval $1+=\$2 25543 }' 25544else 25545 as_fn_append () 25546 { 25547 eval $1=\$$1\$2 25548 } 25549fi # as_fn_append 25550 25551# as_fn_arith ARG... 25552# ------------------ 25553# Perform arithmetic evaluation on the ARGs, and store the result in the 25554# global $as_val. Take advantage of shells that can avoid forks. The arguments 25555# must be portable across $(()) and expr. 25556if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 25557 eval 'as_fn_arith () 25558 { 25559 as_val=$(( $* )) 25560 }' 25561else 25562 as_fn_arith () 25563 { 25564 as_val=`expr "$@" || test $? -eq 1` 25565 } 25566fi # as_fn_arith 25567 25568 25569if expr a : '\(a\)' >/dev/null 2>&1 && 25570 test "X`expr 00001 : '.*\(...\)'`" = X001; then 25571 as_expr=expr 25572else 25573 as_expr=false 25574fi 25575 25576if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 25577 as_basename=basename 25578else 25579 as_basename=false 25580fi 25581 25582if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 25583 as_dirname=dirname 25584else 25585 as_dirname=false 25586fi 25587 25588as_me=`$as_basename -- "$0" || 25589$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 25590 X"$0" : 'X\(//\)$' \| \ 25591 X"$0" : 'X\(/\)' \| . 2>/dev/null || 25592$as_echo X/"$0" | 25593 sed '/^.*\/\([^/][^/]*\)\/*$/{ 25594 s//\1/ 25595 q 25596 } 25597 /^X\/\(\/\/\)$/{ 25598 s//\1/ 25599 q 25600 } 25601 /^X\/\(\/\).*/{ 25602 s//\1/ 25603 q 25604 } 25605 s/.*/./; q'` 25606 25607# Avoid depending upon Character Ranges. 25608as_cr_letters='abcdefghijklmnopqrstuvwxyz' 25609as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 25610as_cr_Letters=$as_cr_letters$as_cr_LETTERS 25611as_cr_digits='0123456789' 25612as_cr_alnum=$as_cr_Letters$as_cr_digits 25613 25614ECHO_C= ECHO_N= ECHO_T= 25615case `echo -n x` in #((((( 25616-n*) 25617 case `echo 'xy\c'` in 25618 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 25619 xy) ECHO_C='\c';; 25620 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 25621 ECHO_T=' ';; 25622 esac;; 25623*) 25624 ECHO_N='-n';; 25625esac 25626 25627rm -f conf$$ conf$$.exe conf$$.file 25628if test -d conf$$.dir; then 25629 rm -f conf$$.dir/conf$$.file 25630else 25631 rm -f conf$$.dir 25632 mkdir conf$$.dir 2>/dev/null 25633fi 25634if (echo >conf$$.file) 2>/dev/null; then 25635 if ln -s conf$$.file conf$$ 2>/dev/null; then 25636 as_ln_s='ln -s' 25637 # ... but there are two gotchas: 25638 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 25639 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 25640 # In both cases, we have to default to `cp -pR'. 25641 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 25642 as_ln_s='cp -pR' 25643 elif ln conf$$.file conf$$ 2>/dev/null; then 25644 as_ln_s=ln 25645 else 25646 as_ln_s='cp -pR' 25647 fi 25648else 25649 as_ln_s='cp -pR' 25650fi 25651rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 25652rmdir conf$$.dir 2>/dev/null 25653 25654 25655# as_fn_mkdir_p 25656# ------------- 25657# Create "$as_dir" as a directory, including parents if necessary. 25658as_fn_mkdir_p () 25659{ 25660 25661 case $as_dir in #( 25662 -*) as_dir=./$as_dir;; 25663 esac 25664 test -d "$as_dir" || eval $as_mkdir_p || { 25665 as_dirs= 25666 while :; do 25667 case $as_dir in #( 25668 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 25669 *) as_qdir=$as_dir;; 25670 esac 25671 as_dirs="'$as_qdir' $as_dirs" 25672 as_dir=`$as_dirname -- "$as_dir" || 25673$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25674 X"$as_dir" : 'X\(//\)[^/]' \| \ 25675 X"$as_dir" : 'X\(//\)$' \| \ 25676 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 25677$as_echo X"$as_dir" | 25678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 25679 s//\1/ 25680 q 25681 } 25682 /^X\(\/\/\)[^/].*/{ 25683 s//\1/ 25684 q 25685 } 25686 /^X\(\/\/\)$/{ 25687 s//\1/ 25688 q 25689 } 25690 /^X\(\/\).*/{ 25691 s//\1/ 25692 q 25693 } 25694 s/.*/./; q'` 25695 test -d "$as_dir" && break 25696 done 25697 test -z "$as_dirs" || eval "mkdir $as_dirs" 25698 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 25699 25700 25701} # as_fn_mkdir_p 25702if mkdir -p . 2>/dev/null; then 25703 as_mkdir_p='mkdir -p "$as_dir"' 25704else 25705 test -d ./-p && rmdir ./-p 25706 as_mkdir_p=false 25707fi 25708 25709 25710# as_fn_executable_p FILE 25711# ----------------------- 25712# Test if FILE is an executable regular file. 25713as_fn_executable_p () 25714{ 25715 test -f "$1" && test -x "$1" 25716} # as_fn_executable_p 25717as_test_x='test -x' 25718as_executable_p=as_fn_executable_p 25719 25720# Sed expression to map a string onto a valid CPP name. 25721as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 25722 25723# Sed expression to map a string onto a valid variable name. 25724as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 25725 25726 25727exec 6>&1 25728## ----------------------------------- ## 25729## Main body of $CONFIG_STATUS script. ## 25730## ----------------------------------- ## 25731_ASEOF 25732test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 25733 25734cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25735# Save the log message, to keep $0 and so on meaningful, and to 25736# report actual input values of CONFIG_FILES etc. instead of their 25737# values after options handling. 25738ac_log=" 25739This file was extended by subversion $as_me 1.8.1, which was 25740generated by GNU Autoconf 2.69. Invocation command line was 25741 25742 CONFIG_FILES = $CONFIG_FILES 25743 CONFIG_HEADERS = $CONFIG_HEADERS 25744 CONFIG_LINKS = $CONFIG_LINKS 25745 CONFIG_COMMANDS = $CONFIG_COMMANDS 25746 $ $0 $@ 25747 25748on `(hostname || uname -n) 2>/dev/null | sed 1q` 25749" 25750 25751_ACEOF 25752 25753case $ac_config_files in *" 25754"*) set x $ac_config_files; shift; ac_config_files=$*;; 25755esac 25756 25757case $ac_config_headers in *" 25758"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 25759esac 25760 25761 25762cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25763# Files that config.status was made for. 25764config_files="$ac_config_files" 25765config_headers="$ac_config_headers" 25766config_commands="$ac_config_commands" 25767 25768_ACEOF 25769 25770cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25771ac_cs_usage="\ 25772\`$as_me' instantiates files and other configuration actions 25773from templates according to the current configuration. Unless the files 25774and actions are specified as TAGs, all are instantiated by default. 25775 25776Usage: $0 [OPTION]... [TAG]... 25777 25778 -h, --help print this help, then exit 25779 -V, --version print version number and configuration settings, then exit 25780 --config print configuration, then exit 25781 -q, --quiet, --silent 25782 do not print progress messages 25783 -d, --debug don't remove temporary files 25784 --recheck update $as_me by reconfiguring in the same conditions 25785 --file=FILE[:TEMPLATE] 25786 instantiate the configuration file FILE 25787 --header=FILE[:TEMPLATE] 25788 instantiate the configuration header FILE 25789 25790Configuration files: 25791$config_files 25792 25793Configuration headers: 25794$config_headers 25795 25796Configuration commands: 25797$config_commands 25798 25799Report bugs to <http://subversion.apache.org/>." 25800 25801_ACEOF 25802cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25803ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 25804ac_cs_version="\\ 25805subversion config.status 1.8.1 25806configured by $0, generated by GNU Autoconf 2.69, 25807 with options \\"\$ac_cs_config\\" 25808 25809Copyright (C) 2012 Free Software Foundation, Inc. 25810This config.status script is free software; the Free Software Foundation 25811gives unlimited permission to copy, distribute and modify it." 25812 25813ac_pwd='$ac_pwd' 25814srcdir='$srcdir' 25815INSTALL='$INSTALL' 25816AWK='$AWK' 25817test -n "\$AWK" || AWK=awk 25818_ACEOF 25819 25820cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25821# The default lists apply if the user does not specify any file. 25822ac_need_defaults=: 25823while test $# != 0 25824do 25825 case $1 in 25826 --*=?*) 25827 ac_option=`expr "X$1" : 'X\([^=]*\)='` 25828 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 25829 ac_shift=: 25830 ;; 25831 --*=) 25832 ac_option=`expr "X$1" : 'X\([^=]*\)='` 25833 ac_optarg= 25834 ac_shift=: 25835 ;; 25836 *) 25837 ac_option=$1 25838 ac_optarg=$2 25839 ac_shift=shift 25840 ;; 25841 esac 25842 25843 case $ac_option in 25844 # Handling of the options. 25845 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 25846 ac_cs_recheck=: ;; 25847 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 25848 $as_echo "$ac_cs_version"; exit ;; 25849 --config | --confi | --conf | --con | --co | --c ) 25850 $as_echo "$ac_cs_config"; exit ;; 25851 --debug | --debu | --deb | --de | --d | -d ) 25852 debug=: ;; 25853 --file | --fil | --fi | --f ) 25854 $ac_shift 25855 case $ac_optarg in 25856 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 25857 '') as_fn_error $? "missing file argument" ;; 25858 esac 25859 as_fn_append CONFIG_FILES " '$ac_optarg'" 25860 ac_need_defaults=false;; 25861 --header | --heade | --head | --hea ) 25862 $ac_shift 25863 case $ac_optarg in 25864 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 25865 esac 25866 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 25867 ac_need_defaults=false;; 25868 --he | --h) 25869 # Conflict between --help and --header 25870 as_fn_error $? "ambiguous option: \`$1' 25871Try \`$0 --help' for more information.";; 25872 --help | --hel | -h ) 25873 $as_echo "$ac_cs_usage"; exit ;; 25874 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 25875 | -silent | --silent | --silen | --sile | --sil | --si | --s) 25876 ac_cs_silent=: ;; 25877 25878 # This is an error. 25879 -*) as_fn_error $? "unrecognized option: \`$1' 25880Try \`$0 --help' for more information." ;; 25881 25882 *) as_fn_append ac_config_targets " $1" 25883 ac_need_defaults=false ;; 25884 25885 esac 25886 shift 25887done 25888 25889ac_configure_extra_args= 25890 25891if $ac_cs_silent; then 25892 exec 6>/dev/null 25893 ac_configure_extra_args="$ac_configure_extra_args --silent" 25894fi 25895 25896_ACEOF 25897cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25898if \$ac_cs_recheck; then 25899 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 25900 shift 25901 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 25902 CONFIG_SHELL='$SHELL' 25903 export CONFIG_SHELL 25904 exec "\$@" 25905fi 25906 25907_ACEOF 25908cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 25909exec 5>>config.log 25910{ 25911 echo 25912 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 25913## Running $as_me. ## 25914_ASBOX 25915 $as_echo "$ac_log" 25916} >&5 25917 25918_ACEOF 25919cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 25920# 25921# INIT-COMMANDS 25922# 25923 25924 25925# The HP-UX ksh and POSIX shell print the target directory to stdout 25926# if CDPATH is set. 25927(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 25928 25929sed_quote_subst='$sed_quote_subst' 25930double_quote_subst='$double_quote_subst' 25931delay_variable_subst='$delay_variable_subst' 25932macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 25933macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 25934enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 25935enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 25936pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 25937enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 25938SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 25939ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 25940PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 25941host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 25942host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 25943host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 25944build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 25945build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 25946build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 25947SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 25948Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 25949GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 25950EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 25951FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 25952LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 25953NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 25954LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 25955max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 25956ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 25957exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 25958lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 25959lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 25960lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 25961lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 25962lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 25963reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 25964reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 25965OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 25966deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 25967file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 25968file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 25969want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 25970DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 25971sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 25972AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 25973AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 25974archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 25975STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 25976RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 25977old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 25978old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 25979old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 25980lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 25981CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 25982CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 25983compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 25984GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 25985lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 25986lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 25987lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 25988lt_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"`' 25989nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 25990lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 25991objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 25992MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 25993lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 25994lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 25995lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 25996lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 25997lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 25998need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 25999MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 26000DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 26001NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 26002LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 26003OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 26004OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 26005libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 26006shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 26007extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 26008archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 26009enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 26010export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 26011whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 26012compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 26013old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 26014old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 26015archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 26016archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 26017module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 26018module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 26019with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 26020allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 26021no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 26022hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 26023hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 26024hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 26025hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 26026hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 26027hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 26028hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 26029inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 26030link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 26031always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 26032export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 26033exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 26034include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 26035prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 26036postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 26037file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 26038variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 26039need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 26040need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 26041version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 26042runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 26043shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 26044shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 26045libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 26046library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 26047soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 26048install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 26049postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 26050postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 26051finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 26052finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 26053hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 26054sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 26055sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 26056hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 26057enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 26058enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 26059enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 26060old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 26061striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 26062compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 26063predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 26064postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 26065predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 26066postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 26067compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 26068LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 26069reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 26070reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26071old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26072compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 26073GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 26074lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 26075lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 26076lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 26077lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 26078lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 26079archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 26080enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 26081export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 26082whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 26083compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 26084old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26085old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26086archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26087archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26088module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26089module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26090with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 26091allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 26092no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 26093hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 26094hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 26095hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 26096hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 26097hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 26098hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 26099hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 26100inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 26101link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 26102always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 26103export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26104exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 26105include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 26106prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26107postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 26108file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 26109hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 26110compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 26111predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 26112postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 26113predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 26114postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 26115compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 26116 26117LTCC='$LTCC' 26118LTCFLAGS='$LTCFLAGS' 26119compiler='$compiler_DEFAULT' 26120 26121# A function that is used when there is no print builtin or printf. 26122func_fallback_echo () 26123{ 26124 eval 'cat <<_LTECHO_EOF 26125\$1 26126_LTECHO_EOF' 26127} 26128 26129# Quote evaled strings. 26130for var in SHELL \ 26131ECHO \ 26132PATH_SEPARATOR \ 26133SED \ 26134GREP \ 26135EGREP \ 26136FGREP \ 26137LD \ 26138NM \ 26139LN_S \ 26140lt_SP2NL \ 26141lt_NL2SP \ 26142reload_flag \ 26143OBJDUMP \ 26144deplibs_check_method \ 26145file_magic_cmd \ 26146file_magic_glob \ 26147want_nocaseglob \ 26148DLLTOOL \ 26149sharedlib_from_linklib_cmd \ 26150AR \ 26151AR_FLAGS \ 26152archiver_list_spec \ 26153STRIP \ 26154RANLIB \ 26155CC \ 26156CFLAGS \ 26157compiler \ 26158lt_cv_sys_global_symbol_pipe \ 26159lt_cv_sys_global_symbol_to_cdecl \ 26160lt_cv_sys_global_symbol_to_c_name_address \ 26161lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 26162nm_file_list_spec \ 26163lt_prog_compiler_no_builtin_flag \ 26164lt_prog_compiler_pic \ 26165lt_prog_compiler_wl \ 26166lt_prog_compiler_static \ 26167lt_cv_prog_compiler_c_o \ 26168need_locks \ 26169MANIFEST_TOOL \ 26170DSYMUTIL \ 26171NMEDIT \ 26172LIPO \ 26173OTOOL \ 26174OTOOL64 \ 26175shrext_cmds \ 26176export_dynamic_flag_spec \ 26177whole_archive_flag_spec \ 26178compiler_needs_object \ 26179with_gnu_ld \ 26180allow_undefined_flag \ 26181no_undefined_flag \ 26182hardcode_libdir_flag_spec \ 26183hardcode_libdir_separator \ 26184exclude_expsyms \ 26185include_expsyms \ 26186file_list_spec \ 26187variables_saved_for_relink \ 26188libname_spec \ 26189library_names_spec \ 26190soname_spec \ 26191install_override_mode \ 26192finish_eval \ 26193old_striplib \ 26194striplib \ 26195compiler_lib_search_dirs \ 26196predep_objects \ 26197postdep_objects \ 26198predeps \ 26199postdeps \ 26200compiler_lib_search_path \ 26201LD_CXX \ 26202reload_flag_CXX \ 26203compiler_CXX \ 26204lt_prog_compiler_no_builtin_flag_CXX \ 26205lt_prog_compiler_pic_CXX \ 26206lt_prog_compiler_wl_CXX \ 26207lt_prog_compiler_static_CXX \ 26208lt_cv_prog_compiler_c_o_CXX \ 26209export_dynamic_flag_spec_CXX \ 26210whole_archive_flag_spec_CXX \ 26211compiler_needs_object_CXX \ 26212with_gnu_ld_CXX \ 26213allow_undefined_flag_CXX \ 26214no_undefined_flag_CXX \ 26215hardcode_libdir_flag_spec_CXX \ 26216hardcode_libdir_separator_CXX \ 26217exclude_expsyms_CXX \ 26218include_expsyms_CXX \ 26219file_list_spec_CXX \ 26220compiler_lib_search_dirs_CXX \ 26221predep_objects_CXX \ 26222postdep_objects_CXX \ 26223predeps_CXX \ 26224postdeps_CXX \ 26225compiler_lib_search_path_CXX; do 26226 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 26227 *[\\\\\\\`\\"\\\$]*) 26228 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 26229 ;; 26230 *) 26231 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 26232 ;; 26233 esac 26234done 26235 26236# Double-quote double-evaled strings. 26237for var in reload_cmds \ 26238old_postinstall_cmds \ 26239old_postuninstall_cmds \ 26240old_archive_cmds \ 26241extract_expsyms_cmds \ 26242old_archive_from_new_cmds \ 26243old_archive_from_expsyms_cmds \ 26244archive_cmds \ 26245archive_expsym_cmds \ 26246module_cmds \ 26247module_expsym_cmds \ 26248export_symbols_cmds \ 26249prelink_cmds \ 26250postlink_cmds \ 26251postinstall_cmds \ 26252postuninstall_cmds \ 26253finish_cmds \ 26254sys_lib_search_path_spec \ 26255sys_lib_dlsearch_path_spec \ 26256reload_cmds_CXX \ 26257old_archive_cmds_CXX \ 26258old_archive_from_new_cmds_CXX \ 26259old_archive_from_expsyms_cmds_CXX \ 26260archive_cmds_CXX \ 26261archive_expsym_cmds_CXX \ 26262module_cmds_CXX \ 26263module_expsym_cmds_CXX \ 26264export_symbols_cmds_CXX \ 26265prelink_cmds_CXX \ 26266postlink_cmds_CXX; do 26267 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 26268 *[\\\\\\\`\\"\\\$]*) 26269 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 26270 ;; 26271 *) 26272 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 26273 ;; 26274 esac 26275done 26276 26277ac_aux_dir='$ac_aux_dir' 26278xsi_shell='$xsi_shell' 26279lt_shell_append='$lt_shell_append' 26280 26281# See if we are running on zsh, and set the options which allow our 26282# commands through without removal of \ escapes INIT. 26283if test -n "\${ZSH_VERSION+set}" ; then 26284 setopt NO_GLOB_SUBST 26285fi 26286 26287 26288 PACKAGE='$PACKAGE' 26289 VERSION='$VERSION' 26290 TIMESTAMP='$TIMESTAMP' 26291 RM='$RM' 26292 ofile='$ofile' 26293 26294 26295 26296 26297 26298SED="$SED" 26299 SVN_DB_HEADER="$SVN_DB_HEADER" 26300 26301_ACEOF 26302 26303cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26304 26305# Handling of arguments. 26306for ac_config_target in $ac_config_targets 26307do 26308 case $ac_config_target in 26309 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 26310 "subversion/svn_private_config.h.tmp") CONFIG_HEADERS="$CONFIG_HEADERS subversion/svn_private_config.h.tmp:subversion/svn_private_config.h.in" ;; 26311 "svn_private_config.h.tmp") CONFIG_COMMANDS="$CONFIG_COMMANDS svn_private_config.h.tmp" ;; 26312 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 26313 "tools/backup/hot-backup.py") CONFIG_FILES="$CONFIG_FILES tools/backup/hot-backup.py" ;; 26314 "tools/hook-scripts/commit-access-control.pl") CONFIG_FILES="$CONFIG_FILES tools/hook-scripts/commit-access-control.pl" ;; 26315 "subversion/bindings/swig/perl/native/Makefile.PL") CONFIG_FILES="$CONFIG_FILES subversion/bindings/swig/perl/native/Makefile.PL" ;; 26316 "packages/solaris/pkginfo") CONFIG_FILES="$CONFIG_FILES packages/solaris/pkginfo" ;; 26317 26318 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 26319 esac 26320done 26321 26322 26323# If the user did not use the arguments to specify the items to instantiate, 26324# then the envvar interface is used. Set only those that are not. 26325# We use the long form for the default assignment because of an extremely 26326# bizarre bug on SunOS 4.1.3. 26327if $ac_need_defaults; then 26328 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 26329 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 26330 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 26331fi 26332 26333# Have a temporary directory for convenience. Make it in the build tree 26334# simply because there is no reason against having it here, and in addition, 26335# creating and moving files from /tmp can sometimes cause problems. 26336# Hook for its removal unless debugging. 26337# Note that there is a small window in which the directory will not be cleaned: 26338# after its creation but before its name has been assigned to `$tmp'. 26339$debug || 26340{ 26341 tmp= ac_tmp= 26342 trap 'exit_status=$? 26343 : "${ac_tmp:=$tmp}" 26344 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 26345' 0 26346 trap 'as_fn_exit 1' 1 2 13 15 26347} 26348# Create a (secure) tmp directory for tmp files. 26349 26350{ 26351 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 26352 test -d "$tmp" 26353} || 26354{ 26355 tmp=./conf$$-$RANDOM 26356 (umask 077 && mkdir "$tmp") 26357} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 26358ac_tmp=$tmp 26359 26360# Set up the scripts for CONFIG_FILES section. 26361# No need to generate them if there are no CONFIG_FILES. 26362# This happens for instance with `./config.status config.h'. 26363if test -n "$CONFIG_FILES"; then 26364 26365 26366ac_cr=`echo X | tr X '\015'` 26367# On cygwin, bash can eat \r inside `` if the user requested igncr. 26368# But we know of no other shell where ac_cr would be empty at this 26369# point, so we can use a bashism as a fallback. 26370if test "x$ac_cr" = x; then 26371 eval ac_cr=\$\'\\r\' 26372fi 26373ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 26374if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 26375 ac_cs_awk_cr='\\r' 26376else 26377 ac_cs_awk_cr=$ac_cr 26378fi 26379 26380echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 26381_ACEOF 26382 26383 26384{ 26385 echo "cat >conf$$subs.awk <<_ACEOF" && 26386 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 26387 echo "_ACEOF" 26388} >conf$$subs.sh || 26389 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 26390ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 26391ac_delim='%!_!# ' 26392for ac_last_try in false false false false false :; do 26393 . ./conf$$subs.sh || 26394 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 26395 26396 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 26397 if test $ac_delim_n = $ac_delim_num; then 26398 break 26399 elif $ac_last_try; then 26400 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 26401 else 26402 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 26403 fi 26404done 26405rm -f conf$$subs.sh 26406 26407cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26408cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 26409_ACEOF 26410sed -n ' 26411h 26412s/^/S["/; s/!.*/"]=/ 26413p 26414g 26415s/^[^!]*!// 26416:repl 26417t repl 26418s/'"$ac_delim"'$// 26419t delim 26420:nl 26421h 26422s/\(.\{148\}\)..*/\1/ 26423t more1 26424s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 26425p 26426n 26427b repl 26428:more1 26429s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 26430p 26431g 26432s/.\{148\}// 26433t nl 26434:delim 26435h 26436s/\(.\{148\}\)..*/\1/ 26437t more2 26438s/["\\]/\\&/g; s/^/"/; s/$/"/ 26439p 26440b 26441:more2 26442s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 26443p 26444g 26445s/.\{148\}// 26446t delim 26447' <conf$$subs.awk | sed ' 26448/^[^""]/{ 26449 N 26450 s/\n// 26451} 26452' >>$CONFIG_STATUS || ac_write_fail=1 26453rm -f conf$$subs.awk 26454cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26455_ACAWK 26456cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 26457 for (key in S) S_is_set[key] = 1 26458 FS = "" 26459 26460} 26461{ 26462 line = $ 0 26463 nfields = split(line, field, "@") 26464 substed = 0 26465 len = length(field[1]) 26466 for (i = 2; i < nfields; i++) { 26467 key = field[i] 26468 keylen = length(key) 26469 if (S_is_set[key]) { 26470 value = S[key] 26471 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 26472 len += length(value) + length(field[++i]) 26473 substed = 1 26474 } else 26475 len += 1 + keylen 26476 } 26477 26478 print line 26479} 26480 26481_ACAWK 26482_ACEOF 26483cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26484if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 26485 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 26486else 26487 cat 26488fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 26489 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 26490_ACEOF 26491 26492# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 26493# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 26494# trailing colons and then remove the whole line if VPATH becomes empty 26495# (actually we leave an empty line to preserve line numbers). 26496if test "x$srcdir" = x.; then 26497 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 26498h 26499s/// 26500s/^/:/ 26501s/[ ]*$/:/ 26502s/:\$(srcdir):/:/g 26503s/:\${srcdir}:/:/g 26504s/:@srcdir@:/:/g 26505s/^:*// 26506s/:*$// 26507x 26508s/\(=[ ]*\).*/\1/ 26509G 26510s/\n// 26511s/^[^=]*=[ ]*$// 26512}' 26513fi 26514 26515cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26516fi # test -n "$CONFIG_FILES" 26517 26518# Set up the scripts for CONFIG_HEADERS section. 26519# No need to generate them if there are no CONFIG_HEADERS. 26520# This happens for instance with `./config.status Makefile'. 26521if test -n "$CONFIG_HEADERS"; then 26522cat >"$ac_tmp/defines.awk" <<\_ACAWK || 26523BEGIN { 26524_ACEOF 26525 26526# Transform confdefs.h into an awk script `defines.awk', embedded as 26527# here-document in config.status, that substitutes the proper values into 26528# config.h.in to produce config.h. 26529 26530# Create a delimiter string that does not exist in confdefs.h, to ease 26531# handling of long lines. 26532ac_delim='%!_!# ' 26533for ac_last_try in false false :; do 26534 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 26535 if test -z "$ac_tt"; then 26536 break 26537 elif $ac_last_try; then 26538 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 26539 else 26540 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 26541 fi 26542done 26543 26544# For the awk script, D is an array of macro values keyed by name, 26545# likewise P contains macro parameters if any. Preserve backslash 26546# newline sequences. 26547 26548ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 26549sed -n ' 26550s/.\{148\}/&'"$ac_delim"'/g 26551t rset 26552:rset 26553s/^[ ]*#[ ]*define[ ][ ]*/ / 26554t def 26555d 26556:def 26557s/\\$// 26558t bsnl 26559s/["\\]/\\&/g 26560s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 26561D["\1"]=" \3"/p 26562s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 26563d 26564:bsnl 26565s/["\\]/\\&/g 26566s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 26567D["\1"]=" \3\\\\\\n"\\/p 26568t cont 26569s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 26570t cont 26571d 26572:cont 26573n 26574s/.\{148\}/&'"$ac_delim"'/g 26575t clear 26576:clear 26577s/\\$// 26578t bsnlc 26579s/["\\]/\\&/g; s/^/"/; s/$/"/p 26580d 26581:bsnlc 26582s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 26583b cont 26584' <confdefs.h | sed ' 26585s/'"$ac_delim"'/"\\\ 26586"/g' >>$CONFIG_STATUS || ac_write_fail=1 26587 26588cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26589 for (key in D) D_is_set[key] = 1 26590 FS = "" 26591} 26592/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 26593 line = \$ 0 26594 split(line, arg, " ") 26595 if (arg[1] == "#") { 26596 defundef = arg[2] 26597 mac1 = arg[3] 26598 } else { 26599 defundef = substr(arg[1], 2) 26600 mac1 = arg[2] 26601 } 26602 split(mac1, mac2, "(") #) 26603 macro = mac2[1] 26604 prefix = substr(line, 1, index(line, defundef) - 1) 26605 if (D_is_set[macro]) { 26606 # Preserve the white space surrounding the "#". 26607 print prefix "define", macro P[macro] D[macro] 26608 next 26609 } else { 26610 # Replace #undef with comments. This is necessary, for example, 26611 # in the case of _POSIX_SOURCE, which is predefined and required 26612 # on some systems where configure will not decide to define it. 26613 if (defundef == "undef") { 26614 print "/*", prefix defundef, macro, "*/" 26615 next 26616 } 26617 } 26618} 26619{ print } 26620_ACAWK 26621_ACEOF 26622cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26623 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 26624fi # test -n "$CONFIG_HEADERS" 26625 26626 26627eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 26628shift 26629for ac_tag 26630do 26631 case $ac_tag in 26632 :[FHLC]) ac_mode=$ac_tag; continue;; 26633 esac 26634 case $ac_mode$ac_tag in 26635 :[FHL]*:*);; 26636 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 26637 :[FH]-) ac_tag=-:-;; 26638 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 26639 esac 26640 ac_save_IFS=$IFS 26641 IFS=: 26642 set x $ac_tag 26643 IFS=$ac_save_IFS 26644 shift 26645 ac_file=$1 26646 shift 26647 26648 case $ac_mode in 26649 :L) ac_source=$1;; 26650 :[FH]) 26651 ac_file_inputs= 26652 for ac_f 26653 do 26654 case $ac_f in 26655 -) ac_f="$ac_tmp/stdin";; 26656 *) # Look for the file first in the build tree, then in the source tree 26657 # (if the path is not absolute). The absolute path cannot be DOS-style, 26658 # because $ac_f cannot contain `:'. 26659 test -f "$ac_f" || 26660 case $ac_f in 26661 [\\/$]*) false;; 26662 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 26663 esac || 26664 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 26665 esac 26666 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 26667 as_fn_append ac_file_inputs " '$ac_f'" 26668 done 26669 26670 # Let's still pretend it is `configure' which instantiates (i.e., don't 26671 # use $as_me), people would be surprised to read: 26672 # /* config.h. Generated by config.status. */ 26673 configure_input='Generated from '` 26674 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 26675 `' by configure.' 26676 if test x"$ac_file" != x-; then 26677 configure_input="$ac_file. $configure_input" 26678 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 26679$as_echo "$as_me: creating $ac_file" >&6;} 26680 fi 26681 # Neutralize special characters interpreted by sed in replacement strings. 26682 case $configure_input in #( 26683 *\&* | *\|* | *\\* ) 26684 ac_sed_conf_input=`$as_echo "$configure_input" | 26685 sed 's/[\\\\&|]/\\\\&/g'`;; #( 26686 *) ac_sed_conf_input=$configure_input;; 26687 esac 26688 26689 case $ac_tag in 26690 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 26691 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 26692 esac 26693 ;; 26694 esac 26695 26696 ac_dir=`$as_dirname -- "$ac_file" || 26697$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 26698 X"$ac_file" : 'X\(//\)[^/]' \| \ 26699 X"$ac_file" : 'X\(//\)$' \| \ 26700 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 26701$as_echo X"$ac_file" | 26702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 26703 s//\1/ 26704 q 26705 } 26706 /^X\(\/\/\)[^/].*/{ 26707 s//\1/ 26708 q 26709 } 26710 /^X\(\/\/\)$/{ 26711 s//\1/ 26712 q 26713 } 26714 /^X\(\/\).*/{ 26715 s//\1/ 26716 q 26717 } 26718 s/.*/./; q'` 26719 as_dir="$ac_dir"; as_fn_mkdir_p 26720 ac_builddir=. 26721 26722case "$ac_dir" in 26723.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 26724*) 26725 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 26726 # A ".." for each directory in $ac_dir_suffix. 26727 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 26728 case $ac_top_builddir_sub in 26729 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 26730 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 26731 esac ;; 26732esac 26733ac_abs_top_builddir=$ac_pwd 26734ac_abs_builddir=$ac_pwd$ac_dir_suffix 26735# for backward compatibility: 26736ac_top_builddir=$ac_top_build_prefix 26737 26738case $srcdir in 26739 .) # We are building in place. 26740 ac_srcdir=. 26741 ac_top_srcdir=$ac_top_builddir_sub 26742 ac_abs_top_srcdir=$ac_pwd ;; 26743 [\\/]* | ?:[\\/]* ) # Absolute name. 26744 ac_srcdir=$srcdir$ac_dir_suffix; 26745 ac_top_srcdir=$srcdir 26746 ac_abs_top_srcdir=$srcdir ;; 26747 *) # Relative name. 26748 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 26749 ac_top_srcdir=$ac_top_build_prefix$srcdir 26750 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 26751esac 26752ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 26753 26754 26755 case $ac_mode in 26756 :F) 26757 # 26758 # CONFIG_FILE 26759 # 26760 26761 case $INSTALL in 26762 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 26763 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 26764 esac 26765_ACEOF 26766 26767cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26768# If the template does not know about datarootdir, expand it. 26769# FIXME: This hack should be removed a few years after 2.60. 26770ac_datarootdir_hack=; ac_datarootdir_seen= 26771ac_sed_dataroot=' 26772/datarootdir/ { 26773 p 26774 q 26775} 26776/@datadir@/p 26777/@docdir@/p 26778/@infodir@/p 26779/@localedir@/p 26780/@mandir@/p' 26781case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 26782*datarootdir*) ac_datarootdir_seen=yes;; 26783*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 26784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 26785$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 26786_ACEOF 26787cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26788 ac_datarootdir_hack=' 26789 s&@datadir@&$datadir&g 26790 s&@docdir@&$docdir&g 26791 s&@infodir@&$infodir&g 26792 s&@localedir@&$localedir&g 26793 s&@mandir@&$mandir&g 26794 s&\\\${datarootdir}&$datarootdir&g' ;; 26795esac 26796_ACEOF 26797 26798# Neutralize VPATH when `$srcdir' = `.'. 26799# Shell code in configure.ac might set extrasub. 26800# FIXME: do we really want to maintain this feature? 26801cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26802ac_sed_extra="$ac_vpsub 26803$extrasub 26804_ACEOF 26805cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26806:t 26807/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 26808s|@configure_input@|$ac_sed_conf_input|;t t 26809s&@top_builddir@&$ac_top_builddir_sub&;t t 26810s&@top_build_prefix@&$ac_top_build_prefix&;t t 26811s&@srcdir@&$ac_srcdir&;t t 26812s&@abs_srcdir@&$ac_abs_srcdir&;t t 26813s&@top_srcdir@&$ac_top_srcdir&;t t 26814s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 26815s&@builddir@&$ac_builddir&;t t 26816s&@abs_builddir@&$ac_abs_builddir&;t t 26817s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 26818s&@INSTALL@&$ac_INSTALL&;t t 26819$ac_datarootdir_hack 26820" 26821eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 26822 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26823 26824test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 26825 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 26826 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 26827 "$ac_tmp/out"`; test -z "$ac_out"; } && 26828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 26829which seems to be undefined. Please make sure it is defined" >&5 26830$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 26831which seems to be undefined. Please make sure it is defined" >&2;} 26832 26833 rm -f "$ac_tmp/stdin" 26834 case $ac_file in 26835 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 26836 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 26837 esac \ 26838 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26839 ;; 26840 :H) 26841 # 26842 # CONFIG_HEADER 26843 # 26844 if test x"$ac_file" != x-; then 26845 { 26846 $as_echo "/* $configure_input */" \ 26847 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 26848 } >"$ac_tmp/config.h" \ 26849 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26850 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 26851 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 26852$as_echo "$as_me: $ac_file is unchanged" >&6;} 26853 else 26854 rm -f "$ac_file" 26855 mv "$ac_tmp/config.h" "$ac_file" \ 26856 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 26857 fi 26858 else 26859 $as_echo "/* $configure_input */" \ 26860 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 26861 || as_fn_error $? "could not create -" "$LINENO" 5 26862 fi 26863 ;; 26864 26865 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 26866$as_echo "$as_me: executing $ac_file commands" >&6;} 26867 ;; 26868 esac 26869 26870 26871 case $ac_file$ac_mode in 26872 "libtool":C) 26873 26874 # See if we are running on zsh, and set the options which allow our 26875 # commands through without removal of \ escapes. 26876 if test -n "${ZSH_VERSION+set}" ; then 26877 setopt NO_GLOB_SUBST 26878 fi 26879 26880 cfgfile="${ofile}T" 26881 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 26882 $RM "$cfgfile" 26883 26884 cat <<_LT_EOF >> "$cfgfile" 26885#! $SHELL 26886 26887# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 26888# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 26889# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 26890# NOTE: Changes made to this file will be lost: look at ltmain.sh. 26891# 26892# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 26893# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 26894# Foundation, Inc. 26895# Written by Gordon Matzigkeit, 1996 26896# 26897# This file is part of GNU Libtool. 26898# 26899# GNU Libtool is free software; you can redistribute it and/or 26900# modify it under the terms of the GNU General Public License as 26901# published by the Free Software Foundation; either version 2 of 26902# the License, or (at your option) any later version. 26903# 26904# As a special exception to the GNU General Public License, 26905# if you distribute this file as part of a program or library that 26906# is built using GNU Libtool, you may include this file under the 26907# same distribution terms that you use for the rest of that program. 26908# 26909# GNU Libtool is distributed in the hope that it will be useful, 26910# but WITHOUT ANY WARRANTY; without even the implied warranty of 26911# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 26912# GNU General Public License for more details. 26913# 26914# You should have received a copy of the GNU General Public License 26915# along with GNU Libtool; see the file COPYING. If not, a copy 26916# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 26917# obtained by writing to the Free Software Foundation, Inc., 26918# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 26919 26920 26921# The names of the tagged configurations supported by this script. 26922available_tags="CXX " 26923 26924# ### BEGIN LIBTOOL CONFIG 26925 26926# Which release of libtool.m4 was used? 26927macro_version=$macro_version 26928macro_revision=$macro_revision 26929 26930# Whether or not to build shared libraries. 26931build_libtool_libs=$enable_shared 26932 26933# Whether or not to build static libraries. 26934build_old_libs=$enable_static 26935 26936# What type of objects to build. 26937pic_mode=$pic_mode 26938 26939# Whether or not to optimize for fast installation. 26940fast_install=$enable_fast_install 26941 26942# Shell to use when invoking shell scripts. 26943SHELL=$lt_SHELL 26944 26945# An echo program that protects backslashes. 26946ECHO=$lt_ECHO 26947 26948# The PATH separator for the build system. 26949PATH_SEPARATOR=$lt_PATH_SEPARATOR 26950 26951# The host system. 26952host_alias=$host_alias 26953host=$host 26954host_os=$host_os 26955 26956# The build system. 26957build_alias=$build_alias 26958build=$build 26959build_os=$build_os 26960 26961# A sed program that does not truncate output. 26962SED=$lt_SED 26963 26964# Sed that helps us avoid accidentally triggering echo(1) options like -n. 26965Xsed="\$SED -e 1s/^X//" 26966 26967# A grep program that handles long lines. 26968GREP=$lt_GREP 26969 26970# An ERE matcher. 26971EGREP=$lt_EGREP 26972 26973# A literal string matcher. 26974FGREP=$lt_FGREP 26975 26976# A BSD- or MS-compatible name lister. 26977NM=$lt_NM 26978 26979# Whether we need soft or hard links. 26980LN_S=$lt_LN_S 26981 26982# What is the maximum length of a command? 26983max_cmd_len=$max_cmd_len 26984 26985# Object file suffix (normally "o"). 26986objext=$ac_objext 26987 26988# Executable file suffix (normally ""). 26989exeext=$exeext 26990 26991# whether the shell understands "unset". 26992lt_unset=$lt_unset 26993 26994# turn spaces into newlines. 26995SP2NL=$lt_lt_SP2NL 26996 26997# turn newlines into spaces. 26998NL2SP=$lt_lt_NL2SP 26999 27000# convert \$build file names to \$host format. 27001to_host_file_cmd=$lt_cv_to_host_file_cmd 27002 27003# convert \$build files to toolchain format. 27004to_tool_file_cmd=$lt_cv_to_tool_file_cmd 27005 27006# An object symbol dumper. 27007OBJDUMP=$lt_OBJDUMP 27008 27009# Method to check whether dependent libraries are shared objects. 27010deplibs_check_method=$lt_deplibs_check_method 27011 27012# Command to use when deplibs_check_method = "file_magic". 27013file_magic_cmd=$lt_file_magic_cmd 27014 27015# How to find potential files when deplibs_check_method = "file_magic". 27016file_magic_glob=$lt_file_magic_glob 27017 27018# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 27019want_nocaseglob=$lt_want_nocaseglob 27020 27021# DLL creation program. 27022DLLTOOL=$lt_DLLTOOL 27023 27024# Command to associate shared and link libraries. 27025sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 27026 27027# The archiver. 27028AR=$lt_AR 27029 27030# Flags to create an archive. 27031AR_FLAGS=$lt_AR_FLAGS 27032 27033# How to feed a file listing to the archiver. 27034archiver_list_spec=$lt_archiver_list_spec 27035 27036# A symbol stripping program. 27037STRIP=$lt_STRIP 27038 27039# Commands used to install an old-style archive. 27040RANLIB=$lt_RANLIB 27041old_postinstall_cmds=$lt_old_postinstall_cmds 27042old_postuninstall_cmds=$lt_old_postuninstall_cmds 27043 27044# Whether to use a lock for old archive extraction. 27045lock_old_archive_extraction=$lock_old_archive_extraction 27046 27047# A C compiler. 27048LTCC=$lt_CC 27049 27050# LTCC compiler flags. 27051LTCFLAGS=$lt_CFLAGS 27052 27053# Take the output of nm and produce a listing of raw symbols and C names. 27054global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 27055 27056# Transform the output of nm in a proper C declaration. 27057global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 27058 27059# Transform the output of nm in a C name address pair. 27060global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 27061 27062# Transform the output of nm in a C name address pair when lib prefix is needed. 27063global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 27064 27065# Specify filename containing input files for \$NM. 27066nm_file_list_spec=$lt_nm_file_list_spec 27067 27068# The root where to search for dependent libraries,and in which our libraries should be installed. 27069lt_sysroot=$lt_sysroot 27070 27071# The name of the directory that contains temporary libtool files. 27072objdir=$objdir 27073 27074# Used to examine libraries when file_magic_cmd begins with "file". 27075MAGIC_CMD=$MAGIC_CMD 27076 27077# Must we lock files when doing compilation? 27078need_locks=$lt_need_locks 27079 27080# Manifest tool. 27081MANIFEST_TOOL=$lt_MANIFEST_TOOL 27082 27083# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 27084DSYMUTIL=$lt_DSYMUTIL 27085 27086# Tool to change global to local symbols on Mac OS X. 27087NMEDIT=$lt_NMEDIT 27088 27089# Tool to manipulate fat objects and archives on Mac OS X. 27090LIPO=$lt_LIPO 27091 27092# ldd/readelf like tool for Mach-O binaries on Mac OS X. 27093OTOOL=$lt_OTOOL 27094 27095# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 27096OTOOL64=$lt_OTOOL64 27097 27098# Old archive suffix (normally "a"). 27099libext=$libext 27100 27101# Shared library suffix (normally ".so"). 27102shrext_cmds=$lt_shrext_cmds 27103 27104# The commands to extract the exported symbol list from a shared archive. 27105extract_expsyms_cmds=$lt_extract_expsyms_cmds 27106 27107# Variables whose values should be saved in libtool wrapper scripts and 27108# restored at link time. 27109variables_saved_for_relink=$lt_variables_saved_for_relink 27110 27111# Do we need the "lib" prefix for modules? 27112need_lib_prefix=$need_lib_prefix 27113 27114# Do we need a version for libraries? 27115need_version=$need_version 27116 27117# Library versioning type. 27118version_type=$version_type 27119 27120# Shared library runtime path variable. 27121runpath_var=$runpath_var 27122 27123# Shared library path variable. 27124shlibpath_var=$shlibpath_var 27125 27126# Is shlibpath searched before the hard-coded library search path? 27127shlibpath_overrides_runpath=$shlibpath_overrides_runpath 27128 27129# Format of library name prefix. 27130libname_spec=$lt_libname_spec 27131 27132# List of archive names. First name is the real one, the rest are links. 27133# The last name is the one that the linker finds with -lNAME 27134library_names_spec=$lt_library_names_spec 27135 27136# The coded name of the library, if different from the real name. 27137soname_spec=$lt_soname_spec 27138 27139# Permission mode override for installation of shared libraries. 27140install_override_mode=$lt_install_override_mode 27141 27142# Command to use after installation of a shared archive. 27143postinstall_cmds=$lt_postinstall_cmds 27144 27145# Command to use after uninstallation of a shared archive. 27146postuninstall_cmds=$lt_postuninstall_cmds 27147 27148# Commands used to finish a libtool library installation in a directory. 27149finish_cmds=$lt_finish_cmds 27150 27151# As "finish_cmds", except a single script fragment to be evaled but 27152# not shown. 27153finish_eval=$lt_finish_eval 27154 27155# Whether we should hardcode library paths into libraries. 27156hardcode_into_libs=$hardcode_into_libs 27157 27158# Compile-time system search path for libraries. 27159sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 27160 27161# Run-time system search path for libraries. 27162sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 27163 27164# Whether dlopen is supported. 27165dlopen_support=$enable_dlopen 27166 27167# Whether dlopen of programs is supported. 27168dlopen_self=$enable_dlopen_self 27169 27170# Whether dlopen of statically linked programs is supported. 27171dlopen_self_static=$enable_dlopen_self_static 27172 27173# Commands to strip libraries. 27174old_striplib=$lt_old_striplib 27175striplib=$lt_striplib 27176 27177 27178# The linker used to build libraries. 27179LD=$lt_LD 27180 27181# How to create reloadable object files. 27182reload_flag=$lt_reload_flag 27183reload_cmds=$lt_reload_cmds 27184 27185# Commands used to build an old-style archive. 27186old_archive_cmds=$lt_old_archive_cmds 27187 27188# A language specific compiler. 27189CC=$lt_compiler 27190 27191# Is the compiler the GNU compiler? 27192with_gcc=$GCC 27193 27194# Compiler flag to turn off builtin functions. 27195no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 27196 27197# Additional compiler flags for building library objects. 27198pic_flag=$lt_lt_prog_compiler_pic 27199 27200# How to pass a linker flag through the compiler. 27201wl=$lt_lt_prog_compiler_wl 27202 27203# Compiler flag to prevent dynamic linking. 27204link_static_flag=$lt_lt_prog_compiler_static 27205 27206# Does compiler simultaneously support -c and -o options? 27207compiler_c_o=$lt_lt_cv_prog_compiler_c_o 27208 27209# Whether or not to add -lc for building shared libraries. 27210build_libtool_need_lc=$archive_cmds_need_lc 27211 27212# Whether or not to disallow shared libs when runtime libs are static. 27213allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 27214 27215# Compiler flag to allow reflexive dlopens. 27216export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 27217 27218# Compiler flag to generate shared objects directly from archives. 27219whole_archive_flag_spec=$lt_whole_archive_flag_spec 27220 27221# Whether the compiler copes with passing no objects directly. 27222compiler_needs_object=$lt_compiler_needs_object 27223 27224# Create an old-style archive from a shared archive. 27225old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 27226 27227# Create a temporary old-style archive to link instead of a shared archive. 27228old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 27229 27230# Commands used to build a shared archive. 27231archive_cmds=$lt_archive_cmds 27232archive_expsym_cmds=$lt_archive_expsym_cmds 27233 27234# Commands used to build a loadable module if different from building 27235# a shared archive. 27236module_cmds=$lt_module_cmds 27237module_expsym_cmds=$lt_module_expsym_cmds 27238 27239# Whether we are building with GNU ld or not. 27240with_gnu_ld=$lt_with_gnu_ld 27241 27242# Flag that allows shared libraries with undefined symbols to be built. 27243allow_undefined_flag=$lt_allow_undefined_flag 27244 27245# Flag that enforces no undefined symbols. 27246no_undefined_flag=$lt_no_undefined_flag 27247 27248# Flag to hardcode \$libdir into a binary during linking. 27249# This must work even if \$libdir does not exist 27250hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 27251 27252# Whether we need a single "-rpath" flag with a separated argument. 27253hardcode_libdir_separator=$lt_hardcode_libdir_separator 27254 27255# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 27256# DIR into the resulting binary. 27257hardcode_direct=$hardcode_direct 27258 27259# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 27260# DIR into the resulting binary and the resulting library dependency is 27261# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 27262# library is relocated. 27263hardcode_direct_absolute=$hardcode_direct_absolute 27264 27265# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 27266# into the resulting binary. 27267hardcode_minus_L=$hardcode_minus_L 27268 27269# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 27270# into the resulting binary. 27271hardcode_shlibpath_var=$hardcode_shlibpath_var 27272 27273# Set to "yes" if building a shared library automatically hardcodes DIR 27274# into the library and all subsequent libraries and executables linked 27275# against it. 27276hardcode_automatic=$hardcode_automatic 27277 27278# Set to yes if linker adds runtime paths of dependent libraries 27279# to runtime path list. 27280inherit_rpath=$inherit_rpath 27281 27282# Whether libtool must link a program against all its dependency libraries. 27283link_all_deplibs=$link_all_deplibs 27284 27285# Set to "yes" if exported symbols are required. 27286always_export_symbols=$always_export_symbols 27287 27288# The commands to list exported symbols. 27289export_symbols_cmds=$lt_export_symbols_cmds 27290 27291# Symbols that should not be listed in the preloaded symbols. 27292exclude_expsyms=$lt_exclude_expsyms 27293 27294# Symbols that must always be exported. 27295include_expsyms=$lt_include_expsyms 27296 27297# Commands necessary for linking programs (against libraries) with templates. 27298prelink_cmds=$lt_prelink_cmds 27299 27300# Commands necessary for finishing linking programs. 27301postlink_cmds=$lt_postlink_cmds 27302 27303# Specify filename containing input files. 27304file_list_spec=$lt_file_list_spec 27305 27306# How to hardcode a shared library path into an executable. 27307hardcode_action=$hardcode_action 27308 27309# The directories searched by this compiler when creating a shared library. 27310compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 27311 27312# Dependencies to place before and after the objects being linked to 27313# create a shared library. 27314predep_objects=$lt_predep_objects 27315postdep_objects=$lt_postdep_objects 27316predeps=$lt_predeps 27317postdeps=$lt_postdeps 27318 27319# The library search path used internally by the compiler when linking 27320# a shared library. 27321compiler_lib_search_path=$lt_compiler_lib_search_path 27322 27323# ### END LIBTOOL CONFIG 27324 27325_LT_EOF 27326 27327 case $host_os in 27328 aix3*) 27329 cat <<\_LT_EOF >> "$cfgfile" 27330# AIX sometimes has problems with the GCC collect2 program. For some 27331# reason, if we set the COLLECT_NAMES environment variable, the problems 27332# vanish in a puff of smoke. 27333if test "X${COLLECT_NAMES+set}" != Xset; then 27334 COLLECT_NAMES= 27335 export COLLECT_NAMES 27336fi 27337_LT_EOF 27338 ;; 27339 esac 27340 27341 27342ltmain="$ac_aux_dir/ltmain.sh" 27343 27344 27345 # We use sed instead of cat because bash on DJGPP gets confused if 27346 # if finds mixed CR/LF and LF-only lines. Since sed operates in 27347 # text mode, it properly converts lines to CR/LF. This bash problem 27348 # is reportedly fixed, but why not run on old versions too? 27349 sed '$q' "$ltmain" >> "$cfgfile" \ 27350 || (rm -f "$cfgfile"; exit 1) 27351 27352 if test x"$xsi_shell" = xyes; then 27353 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 27354func_dirname ()\ 27355{\ 27356\ case ${1} in\ 27357\ */*) func_dirname_result="${1%/*}${2}" ;;\ 27358\ * ) func_dirname_result="${3}" ;;\ 27359\ esac\ 27360} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 27361 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27362 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27363test 0 -eq $? || _lt_function_replace_fail=: 27364 27365 27366 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 27367func_basename ()\ 27368{\ 27369\ func_basename_result="${1##*/}"\ 27370} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 27371 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27372 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27373test 0 -eq $? || _lt_function_replace_fail=: 27374 27375 27376 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 27377func_dirname_and_basename ()\ 27378{\ 27379\ case ${1} in\ 27380\ */*) func_dirname_result="${1%/*}${2}" ;;\ 27381\ * ) func_dirname_result="${3}" ;;\ 27382\ esac\ 27383\ func_basename_result="${1##*/}"\ 27384} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 27385 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27386 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27387test 0 -eq $? || _lt_function_replace_fail=: 27388 27389 27390 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 27391func_stripname ()\ 27392{\ 27393\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 27394\ # positional parameters, so assign one to ordinary parameter first.\ 27395\ func_stripname_result=${3}\ 27396\ func_stripname_result=${func_stripname_result#"${1}"}\ 27397\ func_stripname_result=${func_stripname_result%"${2}"}\ 27398} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 27399 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27400 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27401test 0 -eq $? || _lt_function_replace_fail=: 27402 27403 27404 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 27405func_split_long_opt ()\ 27406{\ 27407\ func_split_long_opt_name=${1%%=*}\ 27408\ func_split_long_opt_arg=${1#*=}\ 27409} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 27410 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27411 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27412test 0 -eq $? || _lt_function_replace_fail=: 27413 27414 27415 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 27416func_split_short_opt ()\ 27417{\ 27418\ func_split_short_opt_arg=${1#??}\ 27419\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 27420} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 27421 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27422 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27423test 0 -eq $? || _lt_function_replace_fail=: 27424 27425 27426 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 27427func_lo2o ()\ 27428{\ 27429\ case ${1} in\ 27430\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 27431\ *) func_lo2o_result=${1} ;;\ 27432\ esac\ 27433} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 27434 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27435 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27436test 0 -eq $? || _lt_function_replace_fail=: 27437 27438 27439 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 27440func_xform ()\ 27441{\ 27442 func_xform_result=${1%.*}.lo\ 27443} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 27444 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27445 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27446test 0 -eq $? || _lt_function_replace_fail=: 27447 27448 27449 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 27450func_arith ()\ 27451{\ 27452 func_arith_result=$(( $* ))\ 27453} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 27454 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27455 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27456test 0 -eq $? || _lt_function_replace_fail=: 27457 27458 27459 sed -e '/^func_len ()$/,/^} # func_len /c\ 27460func_len ()\ 27461{\ 27462 func_len_result=${#1}\ 27463} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 27464 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27465 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27466test 0 -eq $? || _lt_function_replace_fail=: 27467 27468fi 27469 27470if test x"$lt_shell_append" = xyes; then 27471 sed -e '/^func_append ()$/,/^} # func_append /c\ 27472func_append ()\ 27473{\ 27474 eval "${1}+=\\${2}"\ 27475} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 27476 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27477 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27478test 0 -eq $? || _lt_function_replace_fail=: 27479 27480 27481 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 27482func_append_quoted ()\ 27483{\ 27484\ func_quote_for_eval "${2}"\ 27485\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 27486} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 27487 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27488 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27489test 0 -eq $? || _lt_function_replace_fail=: 27490 27491 27492 # Save a `func_append' function call where possible by direct use of '+=' 27493 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 27494 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27495 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27496 test 0 -eq $? || _lt_function_replace_fail=: 27497else 27498 # Save a `func_append' function call even when '+=' is not available 27499 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 27500 && mv -f "$cfgfile.tmp" "$cfgfile" \ 27501 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 27502 test 0 -eq $? || _lt_function_replace_fail=: 27503fi 27504 27505if test x"$_lt_function_replace_fail" = x":"; then 27506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 27507$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 27508fi 27509 27510 27511 mv -f "$cfgfile" "$ofile" || 27512 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 27513 chmod +x "$ofile" 27514 27515 27516 cat <<_LT_EOF >> "$ofile" 27517 27518# ### BEGIN LIBTOOL TAG CONFIG: CXX 27519 27520# The linker used to build libraries. 27521LD=$lt_LD_CXX 27522 27523# How to create reloadable object files. 27524reload_flag=$lt_reload_flag_CXX 27525reload_cmds=$lt_reload_cmds_CXX 27526 27527# Commands used to build an old-style archive. 27528old_archive_cmds=$lt_old_archive_cmds_CXX 27529 27530# A language specific compiler. 27531CC=$lt_compiler_CXX 27532 27533# Is the compiler the GNU compiler? 27534with_gcc=$GCC_CXX 27535 27536# Compiler flag to turn off builtin functions. 27537no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 27538 27539# Additional compiler flags for building library objects. 27540pic_flag=$lt_lt_prog_compiler_pic_CXX 27541 27542# How to pass a linker flag through the compiler. 27543wl=$lt_lt_prog_compiler_wl_CXX 27544 27545# Compiler flag to prevent dynamic linking. 27546link_static_flag=$lt_lt_prog_compiler_static_CXX 27547 27548# Does compiler simultaneously support -c and -o options? 27549compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 27550 27551# Whether or not to add -lc for building shared libraries. 27552build_libtool_need_lc=$archive_cmds_need_lc_CXX 27553 27554# Whether or not to disallow shared libs when runtime libs are static. 27555allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 27556 27557# Compiler flag to allow reflexive dlopens. 27558export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 27559 27560# Compiler flag to generate shared objects directly from archives. 27561whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 27562 27563# Whether the compiler copes with passing no objects directly. 27564compiler_needs_object=$lt_compiler_needs_object_CXX 27565 27566# Create an old-style archive from a shared archive. 27567old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 27568 27569# Create a temporary old-style archive to link instead of a shared archive. 27570old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 27571 27572# Commands used to build a shared archive. 27573archive_cmds=$lt_archive_cmds_CXX 27574archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 27575 27576# Commands used to build a loadable module if different from building 27577# a shared archive. 27578module_cmds=$lt_module_cmds_CXX 27579module_expsym_cmds=$lt_module_expsym_cmds_CXX 27580 27581# Whether we are building with GNU ld or not. 27582with_gnu_ld=$lt_with_gnu_ld_CXX 27583 27584# Flag that allows shared libraries with undefined symbols to be built. 27585allow_undefined_flag=$lt_allow_undefined_flag_CXX 27586 27587# Flag that enforces no undefined symbols. 27588no_undefined_flag=$lt_no_undefined_flag_CXX 27589 27590# Flag to hardcode \$libdir into a binary during linking. 27591# This must work even if \$libdir does not exist 27592hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 27593 27594# Whether we need a single "-rpath" flag with a separated argument. 27595hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 27596 27597# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 27598# DIR into the resulting binary. 27599hardcode_direct=$hardcode_direct_CXX 27600 27601# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 27602# DIR into the resulting binary and the resulting library dependency is 27603# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 27604# library is relocated. 27605hardcode_direct_absolute=$hardcode_direct_absolute_CXX 27606 27607# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 27608# into the resulting binary. 27609hardcode_minus_L=$hardcode_minus_L_CXX 27610 27611# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 27612# into the resulting binary. 27613hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 27614 27615# Set to "yes" if building a shared library automatically hardcodes DIR 27616# into the library and all subsequent libraries and executables linked 27617# against it. 27618hardcode_automatic=$hardcode_automatic_CXX 27619 27620# Set to yes if linker adds runtime paths of dependent libraries 27621# to runtime path list. 27622inherit_rpath=$inherit_rpath_CXX 27623 27624# Whether libtool must link a program against all its dependency libraries. 27625link_all_deplibs=$link_all_deplibs_CXX 27626 27627# Set to "yes" if exported symbols are required. 27628always_export_symbols=$always_export_symbols_CXX 27629 27630# The commands to list exported symbols. 27631export_symbols_cmds=$lt_export_symbols_cmds_CXX 27632 27633# Symbols that should not be listed in the preloaded symbols. 27634exclude_expsyms=$lt_exclude_expsyms_CXX 27635 27636# Symbols that must always be exported. 27637include_expsyms=$lt_include_expsyms_CXX 27638 27639# Commands necessary for linking programs (against libraries) with templates. 27640prelink_cmds=$lt_prelink_cmds_CXX 27641 27642# Commands necessary for finishing linking programs. 27643postlink_cmds=$lt_postlink_cmds_CXX 27644 27645# Specify filename containing input files. 27646file_list_spec=$lt_file_list_spec_CXX 27647 27648# How to hardcode a shared library path into an executable. 27649hardcode_action=$hardcode_action_CXX 27650 27651# The directories searched by this compiler when creating a shared library. 27652compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 27653 27654# Dependencies to place before and after the objects being linked to 27655# create a shared library. 27656predep_objects=$lt_predep_objects_CXX 27657postdep_objects=$lt_postdep_objects_CXX 27658predeps=$lt_predeps_CXX 27659postdeps=$lt_postdeps_CXX 27660 27661# The library search path used internally by the compiler when linking 27662# a shared library. 27663compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 27664 27665# ### END LIBTOOL TAG CONFIG: CXX 27666_LT_EOF 27667 27668 ;; 27669 "svn_private_config.h.tmp":C) svn_cf=subversion/svn_private_config.h; 27670 $SED -e "s/@SVN_DB_HEADER@/$SVN_DB_HEADER/" $svn_cf.tmp > $svn_cf.tmp.new 27671 cmp -s $svn_cf.tmp.new $svn_cf || mv -f $svn_cf.tmp.new $svn_cf 27672 rm -f $svn_cf.tmp.new $svn_cf.tmp ;; 27673 "tools/backup/hot-backup.py":F) chmod +x tools/backup/hot-backup.py ;; 27674 "tools/hook-scripts/commit-access-control.pl":F) chmod +x tools/hook-scripts/commit-access-control.pl ;; 27675 "subversion/bindings/swig/perl/native/Makefile.PL":F) chmod +x subversion/bindings/swig/perl/native/Makefile.PL ;; 27676 "packages/solaris/pkginfo":F) chmod +x packages/solaris/pkginfo ;; 27677 27678 esac 27679done # for ac_tag 27680 27681 27682as_fn_exit 0 27683_ACEOF 27684ac_clean_files=$ac_clean_files_save 27685 27686test $ac_write_fail = 0 || 27687 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 27688 27689 27690# configure is writing to config.log, and then calls config.status. 27691# config.status does its own redirection, appending to config.log. 27692# Unfortunately, on DOS this fails, as config.log is still kept open 27693# by configure, so config.status won't be able to write to it; its 27694# output is simply discarded. So we exec the FD to /dev/null, 27695# effectively closing config.log, so it can be properly (re)opened and 27696# appended to by config.status. When coming back to configure, we 27697# need to make the FD available again. 27698if test "$no_create" != yes; then 27699 ac_cs_success=: 27700 ac_config_status_args= 27701 test "$silent" = yes && 27702 ac_config_status_args="$ac_config_status_args --quiet" 27703 exec 5>/dev/null 27704 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 27705 exec 5>>config.log 27706 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 27707 # would make configure fail if this is the last instruction. 27708 $ac_cs_success || as_fn_exit 1 27709fi 27710if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 27711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 27712$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 27713fi 27714 27715 27716# ==== Print final messages to user ========================================== 27717 27718 27719if test "$svn_have_berkeley_db" = "no6" && test "$enable_bdb6" != "no"; then 27720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: We have configured without BDB filesystem support 27721 27722 27723Berkeley DB 6 was found, but not used. Please re-run configure (see 27724./config.nice) with the '--enable-bdb6' flag to use it, 27725or explicitly specify '--disable-bdb6' or '--without-berkeley-db' 27726to silence this warning. 27727 27728Please note that some versions of Berkeley DB 6+ are under the GNU Affero 27729General Public License, version 3: 27730https://oss.oracle.com/pipermail/bdb/2013-June/000056.html 27731 27732The AGPL-3.0 licence may impose special requirements for making available 27733source code of server-side software. The text of the licence is: 27734https://www.gnu.org/licenses/agpl-3.0.html 27735http://opensource.org/licenses/AGPL-3.0 27736 27737The Berkeley DB backend to Subversion is deprecated; see 27738http://subversion.apache.org/docs/release-notes/1.8#bdb-deprecated 27739 27740The Subversion developers have not tested Subversion with Berkeley DB 6 for 27741technical problems or bugs. 27742" >&5 27743$as_echo "$as_me: WARNING: We have configured without BDB filesystem support 27744 27745 27746Berkeley DB 6 was found, but not used. Please re-run configure (see 27747./config.nice) with the '--enable-bdb6' flag to use it, 27748or explicitly specify '--disable-bdb6' or '--without-berkeley-db' 27749to silence this warning. 27750 27751Please note that some versions of Berkeley DB 6+ are under the GNU Affero 27752General Public License, version 3: 27753https://oss.oracle.com/pipermail/bdb/2013-June/000056.html 27754 27755The AGPL-3.0 licence may impose special requirements for making available 27756source code of server-side software. The text of the licence is: 27757https://www.gnu.org/licenses/agpl-3.0.html 27758http://opensource.org/licenses/AGPL-3.0 27759 27760The Berkeley DB backend to Subversion is deprecated; see 27761http://subversion.apache.org/docs/release-notes/1.8#bdb-deprecated 27762 27763The Subversion developers have not tested Subversion with Berkeley DB 6 for 27764technical problems or bugs. 27765" >&2;} 27766fi 27767