1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for guile-cairo 1.11.0.2-9d63-dirty. 4# 5# Report bugs to <guile-user@gnu.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# 15# 16# Copyright (C) 2007, 2011-2012, 2014, 2017, 2020 Andy Wingo <wingo@pobox.com> 17# Copyright (C) 2011 Patrick Bernaud <patrickb@chez.com> 18# Copyright (C) 2018 Daniel Llorens <daniel.llorens@bluewin.ch> 19# Copyright (C) 2018 David Pirotte <david@altosw.be> 20# 21# This program is free software: you can redistribute it and/or modify 22# it under the terms of the GNU Lesser General Public License as 23# published by the Free Software Foundation, either version 3 of the 24# License, or (at your option) any later version. 25# 26# This program is distributed in the hope that it will be useful, but 27# WITHOUT ANY WARRANTY; without even the implied warranty of 28# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 29# Lesser General Public License for more details. 30# 31# You should have received a copy of the GNU Lesser General Public 32# License along with this program. If not, see 33# <http://www.gnu.org/licenses/>. 34# 35# 36## -------------------- ## 37## M4sh Initialization. ## 38## -------------------- ## 39 40# Be more Bourne compatible 41DUALCASE=1; export DUALCASE # for MKS sh 42if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 43 emulate sh 44 NULLCMD=: 45 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 46 # is contrary to our usage. Disable this feature. 47 alias -g '${1+"$@"}'='"$@"' 48 setopt NO_GLOB_SUBST 49else 50 case `(set -o) 2>/dev/null` in #( 51 *posix*) : 52 set -o posix ;; #( 53 *) : 54 ;; 55esac 56fi 57 58 59as_nl=' 60' 61export as_nl 62# Printing a long string crashes Solaris 7 /usr/bin/printf. 63as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 64as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 65as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 66# Prefer a ksh shell builtin over an external printf program on Solaris, 67# but without wasting forks for bash or zsh. 68if test -z "$BASH_VERSION$ZSH_VERSION" \ 69 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 70 as_echo='print -r --' 71 as_echo_n='print -rn --' 72elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 73 as_echo='printf %s\n' 74 as_echo_n='printf %s' 75else 76 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 77 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 78 as_echo_n='/usr/ucb/echo -n' 79 else 80 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 81 as_echo_n_body='eval 82 arg=$1; 83 case $arg in #( 84 *"$as_nl"*) 85 expr "X$arg" : "X\\(.*\\)$as_nl"; 86 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 87 esac; 88 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 89 ' 90 export as_echo_n_body 91 as_echo_n='sh -c $as_echo_n_body as_echo' 92 fi 93 export as_echo_body 94 as_echo='sh -c $as_echo_body as_echo' 95fi 96 97# The user is always right. 98if test "${PATH_SEPARATOR+set}" != set; then 99 PATH_SEPARATOR=: 100 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 101 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 102 PATH_SEPARATOR=';' 103 } 104fi 105 106 107# IFS 108# We need space, tab and new line, in precisely that order. Quoting is 109# there to prevent editors from complaining about space-tab. 110# (If _AS_PATH_WALK were called with IFS unset, it would disable word 111# splitting by setting IFS to empty value.) 112IFS=" "" $as_nl" 113 114# Find who we are. Look in the path if we contain no directory separator. 115as_myself= 116case $0 in #(( 117 *[\\/]* ) as_myself=$0 ;; 118 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 119for as_dir in $PATH 120do 121 IFS=$as_save_IFS 122 test -z "$as_dir" && as_dir=. 123 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 124 done 125IFS=$as_save_IFS 126 127 ;; 128esac 129# We did not find ourselves, most probably we were run as `sh COMMAND' 130# in which case we are not to be found in the path. 131if test "x$as_myself" = x; then 132 as_myself=$0 133fi 134if test ! -f "$as_myself"; then 135 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 136 exit 1 137fi 138 139# Unset variables that we do not need and which cause bugs (e.g. in 140# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 141# suppresses any "Segmentation fault" message there. '((' could 142# trigger a bug in pdksh 5.2.14. 143for as_var in BASH_ENV ENV MAIL MAILPATH 144do eval test x\${$as_var+set} = xset \ 145 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 146done 147PS1='$ ' 148PS2='> ' 149PS4='+ ' 150 151# NLS nuisances. 152LC_ALL=C 153export LC_ALL 154LANGUAGE=C 155export LANGUAGE 156 157# CDPATH. 158(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 159 160# Use a proper internal environment variable to ensure we don't fall 161 # into an infinite loop, continuously re-executing ourselves. 162 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 163 _as_can_reexec=no; export _as_can_reexec; 164 # We cannot yet assume a decent shell, so we have to provide a 165# neutralization value for shells without unset; and this also 166# works around shells that cannot unset nonexistent variables. 167# Preserve -v and -x to the replacement shell. 168BASH_ENV=/dev/null 169ENV=/dev/null 170(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 171case $- in # (((( 172 *v*x* | *x*v* ) as_opts=-vx ;; 173 *v* ) as_opts=-v ;; 174 *x* ) as_opts=-x ;; 175 * ) as_opts= ;; 176esac 177exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 178# Admittedly, this is quite paranoid, since all the known shells bail 179# out after a failed `exec'. 180$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 181as_fn_exit 255 182 fi 183 # We don't want this to propagate to other subprocesses. 184 { _as_can_reexec=; unset _as_can_reexec;} 185if test "x$CONFIG_SHELL" = x; then 186 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 187 emulate sh 188 NULLCMD=: 189 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 190 # is contrary to our usage. Disable this feature. 191 alias -g '\${1+\"\$@\"}'='\"\$@\"' 192 setopt NO_GLOB_SUBST 193else 194 case \`(set -o) 2>/dev/null\` in #( 195 *posix*) : 196 set -o posix ;; #( 197 *) : 198 ;; 199esac 200fi 201" 202 as_required="as_fn_return () { (exit \$1); } 203as_fn_success () { as_fn_return 0; } 204as_fn_failure () { as_fn_return 1; } 205as_fn_ret_success () { return 0; } 206as_fn_ret_failure () { return 1; } 207 208exitcode=0 209as_fn_success || { exitcode=1; echo as_fn_success failed.; } 210as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 211as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 212as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 213if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 214 215else 216 exitcode=1; echo positional parameters were not saved. 217fi 218test x\$exitcode = x0 || exit 1 219test -x / || exit 1" 220 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 221 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 222 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 223 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 224test \$(( 1 + 1 )) = 2 || exit 1 225 226 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 227 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 228 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 229 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 230 PATH=/empty FPATH=/empty; export PATH FPATH 231 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 232 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 233 if (eval "$as_required") 2>/dev/null; then : 234 as_have_required=yes 235else 236 as_have_required=no 237fi 238 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 239 240else 241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 242as_found=false 243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 244do 245 IFS=$as_save_IFS 246 test -z "$as_dir" && as_dir=. 247 as_found=: 248 case $as_dir in #( 249 /*) 250 for as_base in sh bash ksh sh5; do 251 # Try only shells that exist, to save several forks. 252 as_shell=$as_dir/$as_base 253 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 254 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 255 CONFIG_SHELL=$as_shell as_have_required=yes 256 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 257 break 2 258fi 259fi 260 done;; 261 esac 262 as_found=false 263done 264$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 265 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 266 CONFIG_SHELL=$SHELL as_have_required=yes 267fi; } 268IFS=$as_save_IFS 269 270 271 if test "x$CONFIG_SHELL" != x; then : 272 export CONFIG_SHELL 273 # We cannot yet assume a decent shell, so we have to provide a 274# neutralization value for shells without unset; and this also 275# works around shells that cannot unset nonexistent variables. 276# Preserve -v and -x to the replacement shell. 277BASH_ENV=/dev/null 278ENV=/dev/null 279(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 280case $- in # (((( 281 *v*x* | *x*v* ) as_opts=-vx ;; 282 *v* ) as_opts=-v ;; 283 *x* ) as_opts=-x ;; 284 * ) as_opts= ;; 285esac 286exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 287# Admittedly, this is quite paranoid, since all the known shells bail 288# out after a failed `exec'. 289$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 290exit 255 291fi 292 293 if test x$as_have_required = xno; then : 294 $as_echo "$0: This script requires a shell more modern than all" 295 $as_echo "$0: the shells that I found on your system." 296 if test x${ZSH_VERSION+set} = xset ; then 297 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 298 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 299 else 300 $as_echo "$0: Please tell bug-autoconf@gnu.org and guile-user@gnu.org 301$0: about your system, including any error possibly output 302$0: before this message. Then install a modern shell, or 303$0: manually run the script under such a shell if you do 304$0: have one." 305 fi 306 exit 1 307fi 308fi 309fi 310SHELL=${CONFIG_SHELL-/bin/sh} 311export SHELL 312# Unset more variables known to interfere with behavior of common tools. 313CLICOLOR_FORCE= GREP_OPTIONS= 314unset CLICOLOR_FORCE GREP_OPTIONS 315 316## --------------------- ## 317## M4sh Shell Functions. ## 318## --------------------- ## 319# as_fn_unset VAR 320# --------------- 321# Portably unset VAR. 322as_fn_unset () 323{ 324 { eval $1=; unset $1;} 325} 326as_unset=as_fn_unset 327 328# as_fn_set_status STATUS 329# ----------------------- 330# Set $? to STATUS, without forking. 331as_fn_set_status () 332{ 333 return $1 334} # as_fn_set_status 335 336# as_fn_exit STATUS 337# ----------------- 338# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 339as_fn_exit () 340{ 341 set +e 342 as_fn_set_status $1 343 exit $1 344} # as_fn_exit 345 346# as_fn_mkdir_p 347# ------------- 348# Create "$as_dir" as a directory, including parents if necessary. 349as_fn_mkdir_p () 350{ 351 352 case $as_dir in #( 353 -*) as_dir=./$as_dir;; 354 esac 355 test -d "$as_dir" || eval $as_mkdir_p || { 356 as_dirs= 357 while :; do 358 case $as_dir in #( 359 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 360 *) as_qdir=$as_dir;; 361 esac 362 as_dirs="'$as_qdir' $as_dirs" 363 as_dir=`$as_dirname -- "$as_dir" || 364$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 365 X"$as_dir" : 'X\(//\)[^/]' \| \ 366 X"$as_dir" : 'X\(//\)$' \| \ 367 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 368$as_echo X"$as_dir" | 369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 370 s//\1/ 371 q 372 } 373 /^X\(\/\/\)[^/].*/{ 374 s//\1/ 375 q 376 } 377 /^X\(\/\/\)$/{ 378 s//\1/ 379 q 380 } 381 /^X\(\/\).*/{ 382 s//\1/ 383 q 384 } 385 s/.*/./; q'` 386 test -d "$as_dir" && break 387 done 388 test -z "$as_dirs" || eval "mkdir $as_dirs" 389 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 390 391 392} # as_fn_mkdir_p 393 394# as_fn_executable_p FILE 395# ----------------------- 396# Test if FILE is an executable regular file. 397as_fn_executable_p () 398{ 399 test -f "$1" && test -x "$1" 400} # as_fn_executable_p 401# as_fn_append VAR VALUE 402# ---------------------- 403# Append the text in VALUE to the end of the definition contained in VAR. Take 404# advantage of any shell optimizations that allow amortized linear growth over 405# repeated appends, instead of the typical quadratic growth present in naive 406# implementations. 407if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 408 eval 'as_fn_append () 409 { 410 eval $1+=\$2 411 }' 412else 413 as_fn_append () 414 { 415 eval $1=\$$1\$2 416 } 417fi # as_fn_append 418 419# as_fn_arith ARG... 420# ------------------ 421# Perform arithmetic evaluation on the ARGs, and store the result in the 422# global $as_val. Take advantage of shells that can avoid forks. The arguments 423# must be portable across $(()) and expr. 424if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 425 eval 'as_fn_arith () 426 { 427 as_val=$(( $* )) 428 }' 429else 430 as_fn_arith () 431 { 432 as_val=`expr "$@" || test $? -eq 1` 433 } 434fi # as_fn_arith 435 436 437# as_fn_error STATUS ERROR [LINENO LOG_FD] 438# ---------------------------------------- 439# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 440# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 441# script with STATUS, using 1 if that was 0. 442as_fn_error () 443{ 444 as_status=$1; test $as_status -eq 0 && as_status=1 445 if test "$4"; then 446 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 447 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 448 fi 449 $as_echo "$as_me: error: $2" >&2 450 as_fn_exit $as_status 451} # as_fn_error 452 453if expr a : '\(a\)' >/dev/null 2>&1 && 454 test "X`expr 00001 : '.*\(...\)'`" = X001; then 455 as_expr=expr 456else 457 as_expr=false 458fi 459 460if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 461 as_basename=basename 462else 463 as_basename=false 464fi 465 466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 467 as_dirname=dirname 468else 469 as_dirname=false 470fi 471 472as_me=`$as_basename -- "$0" || 473$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 474 X"$0" : 'X\(//\)$' \| \ 475 X"$0" : 'X\(/\)' \| . 2>/dev/null || 476$as_echo X/"$0" | 477 sed '/^.*\/\([^/][^/]*\)\/*$/{ 478 s//\1/ 479 q 480 } 481 /^X\/\(\/\/\)$/{ 482 s//\1/ 483 q 484 } 485 /^X\/\(\/\).*/{ 486 s//\1/ 487 q 488 } 489 s/.*/./; q'` 490 491# Avoid depending upon Character Ranges. 492as_cr_letters='abcdefghijklmnopqrstuvwxyz' 493as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 494as_cr_Letters=$as_cr_letters$as_cr_LETTERS 495as_cr_digits='0123456789' 496as_cr_alnum=$as_cr_Letters$as_cr_digits 497 498 499 as_lineno_1=$LINENO as_lineno_1a=$LINENO 500 as_lineno_2=$LINENO as_lineno_2a=$LINENO 501 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 502 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 503 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 504 sed -n ' 505 p 506 /[$]LINENO/= 507 ' <$as_myself | 508 sed ' 509 s/[$]LINENO.*/&-/ 510 t lineno 511 b 512 :lineno 513 N 514 :loop 515 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 516 t loop 517 s/-\n.*// 518 ' >$as_me.lineno && 519 chmod +x "$as_me.lineno" || 520 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 521 522 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 523 # already done that, so ensure we don't try to do so again and fall 524 # in an infinite loop. This has already happened in practice. 525 _as_can_reexec=no; export _as_can_reexec 526 # Don't try to exec as it changes $[0], causing all sort of problems 527 # (the dirname of $[0] is not the place where we might find the 528 # original and so on. Autoconf is especially sensitive to this). 529 . "./$as_me.lineno" 530 # Exit status is that of the last command. 531 exit 532} 533 534ECHO_C= ECHO_N= ECHO_T= 535case `echo -n x` in #((((( 536-n*) 537 case `echo 'xy\c'` in 538 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 539 xy) ECHO_C='\c';; 540 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 541 ECHO_T=' ';; 542 esac;; 543*) 544 ECHO_N='-n';; 545esac 546 547rm -f conf$$ conf$$.exe conf$$.file 548if test -d conf$$.dir; then 549 rm -f conf$$.dir/conf$$.file 550else 551 rm -f conf$$.dir 552 mkdir conf$$.dir 2>/dev/null 553fi 554if (echo >conf$$.file) 2>/dev/null; then 555 if ln -s conf$$.file conf$$ 2>/dev/null; then 556 as_ln_s='ln -s' 557 # ... but there are two gotchas: 558 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 559 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 560 # In both cases, we have to default to `cp -pR'. 561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 562 as_ln_s='cp -pR' 563 elif ln conf$$.file conf$$ 2>/dev/null; then 564 as_ln_s=ln 565 else 566 as_ln_s='cp -pR' 567 fi 568else 569 as_ln_s='cp -pR' 570fi 571rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 572rmdir conf$$.dir 2>/dev/null 573 574if mkdir -p . 2>/dev/null; then 575 as_mkdir_p='mkdir -p "$as_dir"' 576else 577 test -d ./-p && rmdir ./-p 578 as_mkdir_p=false 579fi 580 581as_test_x='test -x' 582as_executable_p=as_fn_executable_p 583 584# Sed expression to map a string onto a valid CPP name. 585as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 586 587# Sed expression to map a string onto a valid variable name. 588as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 589 590SHELL=${CONFIG_SHELL-/bin/sh} 591 592 593test -n "$DJDIR" || exec 7<&0 </dev/null 594exec 6>&1 595 596# Name of the host. 597# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 598# so uname gets run too. 599ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 600 601# 602# Initializations. 603# 604ac_default_prefix=/usr/local 605ac_clean_files= 606ac_config_libobj_dir=. 607LIBOBJS= 608cross_compiling=no 609subdirs= 610MFLAGS= 611MAKEFLAGS= 612 613# Identity of this package. 614PACKAGE_NAME='guile-cairo' 615PACKAGE_TARNAME='guile-cairo' 616PACKAGE_VERSION='1.11.0.2-9d63-dirty' 617PACKAGE_STRING='guile-cairo 1.11.0.2-9d63-dirty' 618PACKAGE_BUGREPORT='guile-user@gnu.org' 619PACKAGE_URL='' 620 621# Factoring default headers for most tests. 622ac_includes_default="\ 623#include <stdio.h> 624#ifdef HAVE_SYS_TYPES_H 625# include <sys/types.h> 626#endif 627#ifdef HAVE_SYS_STAT_H 628# include <sys/stat.h> 629#endif 630#ifdef STDC_HEADERS 631# include <stdlib.h> 632# include <stddef.h> 633#else 634# ifdef HAVE_STDLIB_H 635# include <stdlib.h> 636# endif 637#endif 638#ifdef HAVE_STRING_H 639# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 640# include <memory.h> 641# endif 642# include <string.h> 643#endif 644#ifdef HAVE_STRINGS_H 645# include <strings.h> 646#endif 647#ifdef HAVE_INTTYPES_H 648# include <inttypes.h> 649#endif 650#ifdef HAVE_STDINT_H 651# include <stdint.h> 652#endif 653#ifdef HAVE_UNISTD_H 654# include <unistd.h> 655#endif" 656 657ac_subst_vars='am__EXEEXT_FALSE 658am__EXEEXT_TRUE 659LTLIBOBJS 660LIBOBJS 661CAIRO_XML_DIR 662CAIRO_LIBS 663CAIRO_CFLAGS 664GUILE_LDFLAGS 665GUILE_LTLIBS 666GUILE_LIBS 667GUILE_CFLAGS 668GUILE_EFFECTIVE_VERSION 669PKG_CONFIG_LIBDIR 670PKG_CONFIG_PATH 671PKG_CONFIG 672AM_LDFLAGS 673GNULD_LDFLAGS 674WARN_CFLAGS 675LT_SYS_LIBRARY_PATH 676OTOOL64 677OTOOL 678LIPO 679NMEDIT 680DSYMUTIL 681MANIFEST_TOOL 682RANLIB 683ac_ct_AR 684AR 685DLLTOOL 686OBJDUMP 687LN_S 688NM 689ac_ct_DUMPBIN 690DUMPBIN 691LD 692FGREP 693SED 694host_os 695host_vendor 696host_cpu 697host 698build_os 699build_vendor 700build_cpu 701build 702LIBTOOL 703EGREP 704GREP 705CPP 706am__fastdepCC_FALSE 707am__fastdepCC_TRUE 708CCDEPMODE 709am__nodep 710AMDEPBACKSLASH 711AMDEP_FALSE 712AMDEP_TRUE 713am__include 714DEPDIR 715OBJEXT 716EXEEXT 717ac_ct_CC 718CPPFLAGS 719LDFLAGS 720CFLAGS 721CC 722MAINT 723MAINTAINER_MODE_FALSE 724MAINTAINER_MODE_TRUE 725AM_BACKSLASH 726AM_DEFAULT_VERBOSITY 727AM_DEFAULT_V 728AM_V 729am__untar 730am__tar 731AMTAR 732am__leading_dot 733SET_MAKE 734AWK 735mkdir_p 736MKDIR_P 737INSTALL_STRIP_PROGRAM 738STRIP 739install_sh 740MAKEINFO 741AUTOHEADER 742AUTOMAKE 743AUTOCONF 744ACLOCAL 745VERSION 746PACKAGE 747CYGPATH_W 748am__isrc 749INSTALL_DATA 750INSTALL_SCRIPT 751INSTALL_PROGRAM 752target_alias 753host_alias 754build_alias 755LIBS 756ECHO_T 757ECHO_N 758ECHO_C 759DEFS 760mandir 761localedir 762libdir 763psdir 764pdfdir 765dvidir 766htmldir 767infodir 768docdir 769oldincludedir 770includedir 771runstatedir 772localstatedir 773sharedstatedir 774sysconfdir 775datadir 776datarootdir 777libexecdir 778sbindir 779bindir 780program_transform_name 781prefix 782exec_prefix 783PACKAGE_URL 784PACKAGE_BUGREPORT 785PACKAGE_STRING 786PACKAGE_VERSION 787PACKAGE_TARNAME 788PACKAGE_NAME 789PATH_SEPARATOR 790SHELL 791am__quote' 792ac_subst_files='' 793ac_user_opts=' 794enable_option_checking 795enable_silent_rules 796enable_maintainer_mode 797enable_dependency_tracking 798enable_static 799enable_shared 800with_pic 801enable_fast_install 802with_aix_soname 803with_gnu_ld 804with_sysroot 805enable_libtool_lock 806enable_Werror 807enable_rpath 808' 809 ac_precious_vars='build_alias 810host_alias 811target_alias 812CC 813CFLAGS 814LDFLAGS 815LIBS 816CPPFLAGS 817CPP 818LT_SYS_LIBRARY_PATH 819PKG_CONFIG 820PKG_CONFIG_PATH 821PKG_CONFIG_LIBDIR 822GUILE_CFLAGS 823GUILE_LIBS 824CAIRO_CFLAGS 825CAIRO_LIBS 826CAIRO_XML_DIR' 827 828 829# Initialize some variables set by options. 830ac_init_help= 831ac_init_version=false 832ac_unrecognized_opts= 833ac_unrecognized_sep= 834# The variables have the same names as the options, with 835# dashes changed to underlines. 836cache_file=/dev/null 837exec_prefix=NONE 838no_create= 839no_recursion= 840prefix=NONE 841program_prefix=NONE 842program_suffix=NONE 843program_transform_name=s,x,x, 844silent= 845site= 846srcdir= 847verbose= 848x_includes=NONE 849x_libraries=NONE 850 851# Installation directory options. 852# These are left unexpanded so users can "make install exec_prefix=/foo" 853# and all the variables that are supposed to be based on exec_prefix 854# by default will actually change. 855# Use braces instead of parens because sh, perl, etc. also accept them. 856# (The list follows the same order as the GNU Coding Standards.) 857bindir='${exec_prefix}/bin' 858sbindir='${exec_prefix}/sbin' 859libexecdir='${exec_prefix}/libexec' 860datarootdir='${prefix}/share' 861datadir='${datarootdir}' 862sysconfdir='${prefix}/etc' 863sharedstatedir='${prefix}/com' 864localstatedir='${prefix}/var' 865runstatedir='${localstatedir}/run' 866includedir='${prefix}/include' 867oldincludedir='/usr/include' 868docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 869infodir='${datarootdir}/info' 870htmldir='${docdir}' 871dvidir='${docdir}' 872pdfdir='${docdir}' 873psdir='${docdir}' 874libdir='${exec_prefix}/lib' 875localedir='${datarootdir}/locale' 876mandir='${datarootdir}/man' 877 878ac_prev= 879ac_dashdash= 880for ac_option 881do 882 # If the previous option needs an argument, assign it. 883 if test -n "$ac_prev"; then 884 eval $ac_prev=\$ac_option 885 ac_prev= 886 continue 887 fi 888 889 case $ac_option in 890 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 891 *=) ac_optarg= ;; 892 *) ac_optarg=yes ;; 893 esac 894 895 # Accept the important Cygnus configure options, so we can diagnose typos. 896 897 case $ac_dashdash$ac_option in 898 --) 899 ac_dashdash=yes ;; 900 901 -bindir | --bindir | --bindi | --bind | --bin | --bi) 902 ac_prev=bindir ;; 903 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 904 bindir=$ac_optarg ;; 905 906 -build | --build | --buil | --bui | --bu) 907 ac_prev=build_alias ;; 908 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 909 build_alias=$ac_optarg ;; 910 911 -cache-file | --cache-file | --cache-fil | --cache-fi \ 912 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 913 ac_prev=cache_file ;; 914 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 915 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 916 cache_file=$ac_optarg ;; 917 918 --config-cache | -C) 919 cache_file=config.cache ;; 920 921 -datadir | --datadir | --datadi | --datad) 922 ac_prev=datadir ;; 923 -datadir=* | --datadir=* | --datadi=* | --datad=*) 924 datadir=$ac_optarg ;; 925 926 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 927 | --dataroo | --dataro | --datar) 928 ac_prev=datarootdir ;; 929 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 930 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 931 datarootdir=$ac_optarg ;; 932 933 -disable-* | --disable-*) 934 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 935 # Reject names that are not valid shell variable names. 936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 937 as_fn_error $? "invalid feature name: $ac_useropt" 938 ac_useropt_orig=$ac_useropt 939 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 940 case $ac_user_opts in 941 *" 942"enable_$ac_useropt" 943"*) ;; 944 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 945 ac_unrecognized_sep=', ';; 946 esac 947 eval enable_$ac_useropt=no ;; 948 949 -docdir | --docdir | --docdi | --doc | --do) 950 ac_prev=docdir ;; 951 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 952 docdir=$ac_optarg ;; 953 954 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 955 ac_prev=dvidir ;; 956 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 957 dvidir=$ac_optarg ;; 958 959 -enable-* | --enable-*) 960 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 961 # Reject names that are not valid shell variable names. 962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 963 as_fn_error $? "invalid feature name: $ac_useropt" 964 ac_useropt_orig=$ac_useropt 965 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 966 case $ac_user_opts in 967 *" 968"enable_$ac_useropt" 969"*) ;; 970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 971 ac_unrecognized_sep=', ';; 972 esac 973 eval enable_$ac_useropt=\$ac_optarg ;; 974 975 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 976 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 977 | --exec | --exe | --ex) 978 ac_prev=exec_prefix ;; 979 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 980 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 981 | --exec=* | --exe=* | --ex=*) 982 exec_prefix=$ac_optarg ;; 983 984 -gas | --gas | --ga | --g) 985 # Obsolete; use --with-gas. 986 with_gas=yes ;; 987 988 -help | --help | --hel | --he | -h) 989 ac_init_help=long ;; 990 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 991 ac_init_help=recursive ;; 992 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 993 ac_init_help=short ;; 994 995 -host | --host | --hos | --ho) 996 ac_prev=host_alias ;; 997 -host=* | --host=* | --hos=* | --ho=*) 998 host_alias=$ac_optarg ;; 999 1000 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1001 ac_prev=htmldir ;; 1002 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1003 | --ht=*) 1004 htmldir=$ac_optarg ;; 1005 1006 -includedir | --includedir | --includedi | --included | --include \ 1007 | --includ | --inclu | --incl | --inc) 1008 ac_prev=includedir ;; 1009 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1010 | --includ=* | --inclu=* | --incl=* | --inc=*) 1011 includedir=$ac_optarg ;; 1012 1013 -infodir | --infodir | --infodi | --infod | --info | --inf) 1014 ac_prev=infodir ;; 1015 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1016 infodir=$ac_optarg ;; 1017 1018 -libdir | --libdir | --libdi | --libd) 1019 ac_prev=libdir ;; 1020 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1021 libdir=$ac_optarg ;; 1022 1023 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1024 | --libexe | --libex | --libe) 1025 ac_prev=libexecdir ;; 1026 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1027 | --libexe=* | --libex=* | --libe=*) 1028 libexecdir=$ac_optarg ;; 1029 1030 -localedir | --localedir | --localedi | --localed | --locale) 1031 ac_prev=localedir ;; 1032 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1033 localedir=$ac_optarg ;; 1034 1035 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1036 | --localstate | --localstat | --localsta | --localst | --locals) 1037 ac_prev=localstatedir ;; 1038 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1039 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1040 localstatedir=$ac_optarg ;; 1041 1042 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1043 ac_prev=mandir ;; 1044 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1045 mandir=$ac_optarg ;; 1046 1047 -nfp | --nfp | --nf) 1048 # Obsolete; use --without-fp. 1049 with_fp=no ;; 1050 1051 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1052 | --no-cr | --no-c | -n) 1053 no_create=yes ;; 1054 1055 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1056 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1057 no_recursion=yes ;; 1058 1059 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1060 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1061 | --oldin | --oldi | --old | --ol | --o) 1062 ac_prev=oldincludedir ;; 1063 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1064 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1065 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1066 oldincludedir=$ac_optarg ;; 1067 1068 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1069 ac_prev=prefix ;; 1070 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1071 prefix=$ac_optarg ;; 1072 1073 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1074 | --program-pre | --program-pr | --program-p) 1075 ac_prev=program_prefix ;; 1076 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1077 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1078 program_prefix=$ac_optarg ;; 1079 1080 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1081 | --program-suf | --program-su | --program-s) 1082 ac_prev=program_suffix ;; 1083 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1084 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1085 program_suffix=$ac_optarg ;; 1086 1087 -program-transform-name | --program-transform-name \ 1088 | --program-transform-nam | --program-transform-na \ 1089 | --program-transform-n | --program-transform- \ 1090 | --program-transform | --program-transfor \ 1091 | --program-transfo | --program-transf \ 1092 | --program-trans | --program-tran \ 1093 | --progr-tra | --program-tr | --program-t) 1094 ac_prev=program_transform_name ;; 1095 -program-transform-name=* | --program-transform-name=* \ 1096 | --program-transform-nam=* | --program-transform-na=* \ 1097 | --program-transform-n=* | --program-transform-=* \ 1098 | --program-transform=* | --program-transfor=* \ 1099 | --program-transfo=* | --program-transf=* \ 1100 | --program-trans=* | --program-tran=* \ 1101 | --progr-tra=* | --program-tr=* | --program-t=*) 1102 program_transform_name=$ac_optarg ;; 1103 1104 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1105 ac_prev=pdfdir ;; 1106 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1107 pdfdir=$ac_optarg ;; 1108 1109 -psdir | --psdir | --psdi | --psd | --ps) 1110 ac_prev=psdir ;; 1111 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1112 psdir=$ac_optarg ;; 1113 1114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1115 | -silent | --silent | --silen | --sile | --sil) 1116 silent=yes ;; 1117 1118 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1119 | --runstate | --runstat | --runsta | --runst | --runs \ 1120 | --run | --ru | --r) 1121 ac_prev=runstatedir ;; 1122 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1123 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1124 | --run=* | --ru=* | --r=*) 1125 runstatedir=$ac_optarg ;; 1126 1127 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1128 ac_prev=sbindir ;; 1129 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1130 | --sbi=* | --sb=*) 1131 sbindir=$ac_optarg ;; 1132 1133 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1134 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1135 | --sharedst | --shareds | --shared | --share | --shar \ 1136 | --sha | --sh) 1137 ac_prev=sharedstatedir ;; 1138 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1139 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1140 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1141 | --sha=* | --sh=*) 1142 sharedstatedir=$ac_optarg ;; 1143 1144 -site | --site | --sit) 1145 ac_prev=site ;; 1146 -site=* | --site=* | --sit=*) 1147 site=$ac_optarg ;; 1148 1149 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1150 ac_prev=srcdir ;; 1151 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1152 srcdir=$ac_optarg ;; 1153 1154 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1155 | --syscon | --sysco | --sysc | --sys | --sy) 1156 ac_prev=sysconfdir ;; 1157 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1158 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1159 sysconfdir=$ac_optarg ;; 1160 1161 -target | --target | --targe | --targ | --tar | --ta | --t) 1162 ac_prev=target_alias ;; 1163 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1164 target_alias=$ac_optarg ;; 1165 1166 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1167 verbose=yes ;; 1168 1169 -version | --version | --versio | --versi | --vers | -V) 1170 ac_init_version=: ;; 1171 1172 -with-* | --with-*) 1173 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1174 # Reject names that are not valid shell variable names. 1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1176 as_fn_error $? "invalid package name: $ac_useropt" 1177 ac_useropt_orig=$ac_useropt 1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1179 case $ac_user_opts in 1180 *" 1181"with_$ac_useropt" 1182"*) ;; 1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1184 ac_unrecognized_sep=', ';; 1185 esac 1186 eval with_$ac_useropt=\$ac_optarg ;; 1187 1188 -without-* | --without-*) 1189 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1190 # Reject names that are not valid shell variable names. 1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1192 as_fn_error $? "invalid package name: $ac_useropt" 1193 ac_useropt_orig=$ac_useropt 1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1195 case $ac_user_opts in 1196 *" 1197"with_$ac_useropt" 1198"*) ;; 1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1200 ac_unrecognized_sep=', ';; 1201 esac 1202 eval with_$ac_useropt=no ;; 1203 1204 --x) 1205 # Obsolete; use --with-x. 1206 with_x=yes ;; 1207 1208 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1209 | --x-incl | --x-inc | --x-in | --x-i) 1210 ac_prev=x_includes ;; 1211 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1212 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1213 x_includes=$ac_optarg ;; 1214 1215 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1216 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1217 ac_prev=x_libraries ;; 1218 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1219 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1220 x_libraries=$ac_optarg ;; 1221 1222 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1223Try \`$0 --help' for more information" 1224 ;; 1225 1226 *=*) 1227 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1228 # Reject names that are not valid shell variable names. 1229 case $ac_envvar in #( 1230 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1231 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1232 esac 1233 eval $ac_envvar=\$ac_optarg 1234 export $ac_envvar ;; 1235 1236 *) 1237 # FIXME: should be removed in autoconf 3.0. 1238 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1239 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1240 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1241 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1242 ;; 1243 1244 esac 1245done 1246 1247if test -n "$ac_prev"; then 1248 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1249 as_fn_error $? "missing argument to $ac_option" 1250fi 1251 1252if test -n "$ac_unrecognized_opts"; then 1253 case $enable_option_checking in 1254 no) ;; 1255 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1256 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1257 esac 1258fi 1259 1260# Check all directory arguments for consistency. 1261for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1262 datadir sysconfdir sharedstatedir localstatedir includedir \ 1263 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1264 libdir localedir mandir runstatedir 1265do 1266 eval ac_val=\$$ac_var 1267 # Remove trailing slashes. 1268 case $ac_val in 1269 */ ) 1270 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1271 eval $ac_var=\$ac_val;; 1272 esac 1273 # Be sure to have absolute directory names. 1274 case $ac_val in 1275 [\\/$]* | ?:[\\/]* ) continue;; 1276 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1277 esac 1278 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1279done 1280 1281# There might be people who depend on the old broken behavior: `$host' 1282# used to hold the argument of --host etc. 1283# FIXME: To remove some day. 1284build=$build_alias 1285host=$host_alias 1286target=$target_alias 1287 1288# FIXME: To remove some day. 1289if test "x$host_alias" != x; then 1290 if test "x$build_alias" = x; then 1291 cross_compiling=maybe 1292 elif test "x$build_alias" != "x$host_alias"; then 1293 cross_compiling=yes 1294 fi 1295fi 1296 1297ac_tool_prefix= 1298test -n "$host_alias" && ac_tool_prefix=$host_alias- 1299 1300test "$silent" = yes && exec 6>/dev/null 1301 1302 1303ac_pwd=`pwd` && test -n "$ac_pwd" && 1304ac_ls_di=`ls -di .` && 1305ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1306 as_fn_error $? "working directory cannot be determined" 1307test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1308 as_fn_error $? "pwd does not report name of working directory" 1309 1310 1311# Find the source files, if location was not specified. 1312if test -z "$srcdir"; then 1313 ac_srcdir_defaulted=yes 1314 # Try the directory containing this script, then the parent directory. 1315 ac_confdir=`$as_dirname -- "$as_myself" || 1316$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1317 X"$as_myself" : 'X\(//\)[^/]' \| \ 1318 X"$as_myself" : 'X\(//\)$' \| \ 1319 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1320$as_echo X"$as_myself" | 1321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1322 s//\1/ 1323 q 1324 } 1325 /^X\(\/\/\)[^/].*/{ 1326 s//\1/ 1327 q 1328 } 1329 /^X\(\/\/\)$/{ 1330 s//\1/ 1331 q 1332 } 1333 /^X\(\/\).*/{ 1334 s//\1/ 1335 q 1336 } 1337 s/.*/./; q'` 1338 srcdir=$ac_confdir 1339 if test ! -r "$srcdir/$ac_unique_file"; then 1340 srcdir=.. 1341 fi 1342else 1343 ac_srcdir_defaulted=no 1344fi 1345if test ! -r "$srcdir/$ac_unique_file"; then 1346 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1347 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1348fi 1349ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1350ac_abs_confdir=`( 1351 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1352 pwd)` 1353# When building in place, set srcdir=. 1354if test "$ac_abs_confdir" = "$ac_pwd"; then 1355 srcdir=. 1356fi 1357# Remove unnecessary trailing slashes from srcdir. 1358# Double slashes in file names in object file debugging info 1359# mess up M-x gdb in Emacs. 1360case $srcdir in 1361*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1362esac 1363for ac_var in $ac_precious_vars; do 1364 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1365 eval ac_env_${ac_var}_value=\$${ac_var} 1366 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1367 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1368done 1369 1370# 1371# Report the --help message. 1372# 1373if test "$ac_init_help" = "long"; then 1374 # Omit some internal or obsolete options to make the list less imposing. 1375 # This message is too long to be a string in the A/UX 3.1 sh. 1376 cat <<_ACEOF 1377\`configure' configures guile-cairo 1.11.0.2-9d63-dirty to adapt to many kinds of systems. 1378 1379Usage: $0 [OPTION]... [VAR=VALUE]... 1380 1381To assign environment variables (e.g., CC, CFLAGS...), specify them as 1382VAR=VALUE. See below for descriptions of some of the useful variables. 1383 1384Defaults for the options are specified in brackets. 1385 1386Configuration: 1387 -h, --help display this help and exit 1388 --help=short display options specific to this package 1389 --help=recursive display the short help of all the included packages 1390 -V, --version display version information and exit 1391 -q, --quiet, --silent do not print \`checking ...' messages 1392 --cache-file=FILE cache test results in FILE [disabled] 1393 -C, --config-cache alias for \`--cache-file=config.cache' 1394 -n, --no-create do not create output files 1395 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1396 1397Installation directories: 1398 --prefix=PREFIX install architecture-independent files in PREFIX 1399 [$ac_default_prefix] 1400 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1401 [PREFIX] 1402 1403By default, \`make install' will install all the files in 1404\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1405an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1406for instance \`--prefix=\$HOME'. 1407 1408For better control, use the options below. 1409 1410Fine tuning of the installation directories: 1411 --bindir=DIR user executables [EPREFIX/bin] 1412 --sbindir=DIR system admin executables [EPREFIX/sbin] 1413 --libexecdir=DIR program executables [EPREFIX/libexec] 1414 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1415 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1416 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1417 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1418 --libdir=DIR object code libraries [EPREFIX/lib] 1419 --includedir=DIR C header files [PREFIX/include] 1420 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1421 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1422 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1423 --infodir=DIR info documentation [DATAROOTDIR/info] 1424 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1425 --mandir=DIR man documentation [DATAROOTDIR/man] 1426 --docdir=DIR documentation root [DATAROOTDIR/doc/guile-cairo] 1427 --htmldir=DIR html documentation [DOCDIR] 1428 --dvidir=DIR dvi documentation [DOCDIR] 1429 --pdfdir=DIR pdf documentation [DOCDIR] 1430 --psdir=DIR ps documentation [DOCDIR] 1431_ACEOF 1432 1433 cat <<\_ACEOF 1434 1435Program names: 1436 --program-prefix=PREFIX prepend PREFIX to installed program names 1437 --program-suffix=SUFFIX append SUFFIX to installed program names 1438 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1439 1440System types: 1441 --build=BUILD configure for building on BUILD [guessed] 1442 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1443_ACEOF 1444fi 1445 1446if test -n "$ac_init_help"; then 1447 case $ac_init_help in 1448 short | recursive ) echo "Configuration of guile-cairo 1.11.0.2-9d63-dirty:";; 1449 esac 1450 cat <<\_ACEOF 1451 1452Optional Features: 1453 --disable-option-checking ignore unrecognized --enable/--with options 1454 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1455 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1456 --enable-silent-rules less verbose build output (undo: "make V=1") 1457 --disable-silent-rules verbose build output (undo: "make V=0") 1458 --disable-maintainer-mode 1459 disable make rules and dependencies not useful (and 1460 sometimes confusing) to the casual installer 1461 --enable-dependency-tracking 1462 do not reject slow dependency extractors 1463 --disable-dependency-tracking 1464 speeds up one-time build 1465 --enable-static[=PKGS] build static libraries [default=no] 1466 --enable-shared[=PKGS] build shared libraries [default=yes] 1467 --enable-fast-install[=PKGS] 1468 optimize for fast installation [default=yes] 1469 --disable-libtool-lock avoid locking (might break parallel builds) 1470 --disable-Werror Don't stop the build on errors 1471 --disable-rpath do not hardcode runtime library paths 1472 1473Optional Packages: 1474 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1475 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1476 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1477 both] 1478 --with-aix-soname=aix|svr4|both 1479 shared library versioning (aka "SONAME") variant to 1480 provide on AIX, [default=aix]. 1481 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1482 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1483 compiler's sysroot if not specified). 1484 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1485 1486Some influential environment variables: 1487 CC C compiler command 1488 CFLAGS C compiler flags 1489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1490 nonstandard directory <lib dir> 1491 LIBS libraries to pass to the linker, e.g. -l<library> 1492 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1493 you have headers in a nonstandard directory <include dir> 1494 CPP C preprocessor 1495 LT_SYS_LIBRARY_PATH 1496 User-defined run-time library search path. 1497 PKG_CONFIG path to pkg-config utility 1498 PKG_CONFIG_PATH 1499 directories to add to pkg-config's search path 1500 PKG_CONFIG_LIBDIR 1501 path overriding pkg-config's built-in search path 1502 GUILE_CFLAGS 1503 C compiler flags for GUILE, overriding pkg-config 1504 GUILE_LIBS linker flags for GUILE, overriding pkg-config 1505 CAIRO_CFLAGS 1506 C compiler flags for CAIRO, overriding pkg-config 1507 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config 1508 CAIRO_XML_DIR 1509 path to Cairo *.xml documentation 1510 1511Use these variables to override the choices made by `configure' or to help 1512it to find libraries and programs with nonstandard names/locations. 1513 1514Report bugs to <guile-user@gnu.org>. 1515_ACEOF 1516ac_status=$? 1517fi 1518 1519if test "$ac_init_help" = "recursive"; then 1520 # If there are subdirs, report their specific --help. 1521 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1522 test -d "$ac_dir" || 1523 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1524 continue 1525 ac_builddir=. 1526 1527case "$ac_dir" in 1528.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1529*) 1530 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1531 # A ".." for each directory in $ac_dir_suffix. 1532 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1533 case $ac_top_builddir_sub in 1534 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1535 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1536 esac ;; 1537esac 1538ac_abs_top_builddir=$ac_pwd 1539ac_abs_builddir=$ac_pwd$ac_dir_suffix 1540# for backward compatibility: 1541ac_top_builddir=$ac_top_build_prefix 1542 1543case $srcdir in 1544 .) # We are building in place. 1545 ac_srcdir=. 1546 ac_top_srcdir=$ac_top_builddir_sub 1547 ac_abs_top_srcdir=$ac_pwd ;; 1548 [\\/]* | ?:[\\/]* ) # Absolute name. 1549 ac_srcdir=$srcdir$ac_dir_suffix; 1550 ac_top_srcdir=$srcdir 1551 ac_abs_top_srcdir=$srcdir ;; 1552 *) # Relative name. 1553 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1554 ac_top_srcdir=$ac_top_build_prefix$srcdir 1555 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1556esac 1557ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1558 1559 cd "$ac_dir" || { ac_status=$?; continue; } 1560 # Check for guested configure. 1561 if test -f "$ac_srcdir/configure.gnu"; then 1562 echo && 1563 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1564 elif test -f "$ac_srcdir/configure"; then 1565 echo && 1566 $SHELL "$ac_srcdir/configure" --help=recursive 1567 else 1568 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1569 fi || ac_status=$? 1570 cd "$ac_pwd" || { ac_status=$?; break; } 1571 done 1572fi 1573 1574test -n "$ac_init_help" && exit $ac_status 1575if $ac_init_version; then 1576 cat <<\_ACEOF 1577guile-cairo configure 1.11.0.2-9d63-dirty 1578generated by GNU Autoconf 2.69 1579 1580Copyright (C) 2012 Free Software Foundation, Inc. 1581This configure script is free software; the Free Software Foundation 1582gives unlimited permission to copy, distribute and modify it. 1583 1584 1585 1586Copyright (C) 2007, 2011-2012, 2014, 2017, 2020 Andy Wingo <wingo@pobox.com> 1587Copyright (C) 2011 Patrick Bernaud <patrickb@chez.com> 1588Copyright (C) 2018 Daniel Llorens <daniel.llorens@bluewin.ch> 1589Copyright (C) 2018 David Pirotte <david@altosw.be> 1590 1591This program is free software: you can redistribute it and/or modify 1592it under the terms of the GNU Lesser General Public License as 1593published by the Free Software Foundation, either version 3 of the 1594License, or (at your option) any later version. 1595 1596This program is distributed in the hope that it will be useful, but 1597WITHOUT ANY WARRANTY; without even the implied warranty of 1598MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1599Lesser General Public License for more details. 1600 1601You should have received a copy of the GNU Lesser General Public 1602License along with this program. If not, see 1603<http://www.gnu.org/licenses/>. 1604 1605 1606_ACEOF 1607 exit 1608fi 1609 1610## ------------------------ ## 1611## Autoconf initialization. ## 1612## ------------------------ ## 1613 1614# ac_fn_c_try_compile LINENO 1615# -------------------------- 1616# Try to compile conftest.$ac_ext, and return whether this succeeded. 1617ac_fn_c_try_compile () 1618{ 1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1620 rm -f conftest.$ac_objext 1621 if { { ac_try="$ac_compile" 1622case "(($ac_try" in 1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1624 *) ac_try_echo=$ac_try;; 1625esac 1626eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1627$as_echo "$ac_try_echo"; } >&5 1628 (eval "$ac_compile") 2>conftest.err 1629 ac_status=$? 1630 if test -s conftest.err; then 1631 grep -v '^ *+' conftest.err >conftest.er1 1632 cat conftest.er1 >&5 1633 mv -f conftest.er1 conftest.err 1634 fi 1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1636 test $ac_status = 0; } && { 1637 test -z "$ac_c_werror_flag" || 1638 test ! -s conftest.err 1639 } && test -s conftest.$ac_objext; then : 1640 ac_retval=0 1641else 1642 $as_echo "$as_me: failed program was:" >&5 1643sed 's/^/| /' conftest.$ac_ext >&5 1644 1645 ac_retval=1 1646fi 1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1648 as_fn_set_status $ac_retval 1649 1650} # ac_fn_c_try_compile 1651 1652# ac_fn_c_try_link LINENO 1653# ----------------------- 1654# Try to link conftest.$ac_ext, and return whether this succeeded. 1655ac_fn_c_try_link () 1656{ 1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1658 rm -f conftest.$ac_objext conftest$ac_exeext 1659 if { { ac_try="$ac_link" 1660case "(($ac_try" in 1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1662 *) ac_try_echo=$ac_try;; 1663esac 1664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1665$as_echo "$ac_try_echo"; } >&5 1666 (eval "$ac_link") 2>conftest.err 1667 ac_status=$? 1668 if test -s conftest.err; then 1669 grep -v '^ *+' conftest.err >conftest.er1 1670 cat conftest.er1 >&5 1671 mv -f conftest.er1 conftest.err 1672 fi 1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1674 test $ac_status = 0; } && { 1675 test -z "$ac_c_werror_flag" || 1676 test ! -s conftest.err 1677 } && test -s conftest$ac_exeext && { 1678 test "$cross_compiling" = yes || 1679 test -x conftest$ac_exeext 1680 }; then : 1681 ac_retval=0 1682else 1683 $as_echo "$as_me: failed program was:" >&5 1684sed 's/^/| /' conftest.$ac_ext >&5 1685 1686 ac_retval=1 1687fi 1688 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1689 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1690 # interfere with the next link command; also delete a directory that is 1691 # left behind by Apple's compiler. We do this before executing the actions. 1692 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1694 as_fn_set_status $ac_retval 1695 1696} # ac_fn_c_try_link 1697 1698# ac_fn_c_try_cpp LINENO 1699# ---------------------- 1700# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1701ac_fn_c_try_cpp () 1702{ 1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1704 if { { ac_try="$ac_cpp conftest.$ac_ext" 1705case "(($ac_try" in 1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1707 *) ac_try_echo=$ac_try;; 1708esac 1709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1710$as_echo "$ac_try_echo"; } >&5 1711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1712 ac_status=$? 1713 if test -s conftest.err; then 1714 grep -v '^ *+' conftest.err >conftest.er1 1715 cat conftest.er1 >&5 1716 mv -f conftest.er1 conftest.err 1717 fi 1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1719 test $ac_status = 0; } > conftest.i && { 1720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1721 test ! -s conftest.err 1722 }; then : 1723 ac_retval=0 1724else 1725 $as_echo "$as_me: failed program was:" >&5 1726sed 's/^/| /' conftest.$ac_ext >&5 1727 1728 ac_retval=1 1729fi 1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1731 as_fn_set_status $ac_retval 1732 1733} # ac_fn_c_try_cpp 1734 1735# ac_fn_c_try_run LINENO 1736# ---------------------- 1737# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1738# that executables *can* be run. 1739ac_fn_c_try_run () 1740{ 1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1742 if { { ac_try="$ac_link" 1743case "(($ac_try" in 1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1745 *) ac_try_echo=$ac_try;; 1746esac 1747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1748$as_echo "$ac_try_echo"; } >&5 1749 (eval "$ac_link") 2>&5 1750 ac_status=$? 1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1752 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1753 { { case "(($ac_try" in 1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1755 *) ac_try_echo=$ac_try;; 1756esac 1757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1758$as_echo "$ac_try_echo"; } >&5 1759 (eval "$ac_try") 2>&5 1760 ac_status=$? 1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1762 test $ac_status = 0; }; }; then : 1763 ac_retval=0 1764else 1765 $as_echo "$as_me: program exited with status $ac_status" >&5 1766 $as_echo "$as_me: failed program was:" >&5 1767sed 's/^/| /' conftest.$ac_ext >&5 1768 1769 ac_retval=$ac_status 1770fi 1771 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1773 as_fn_set_status $ac_retval 1774 1775} # ac_fn_c_try_run 1776 1777# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1778# ------------------------------------------------------- 1779# Tests whether HEADER exists and can be compiled using the include files in 1780# INCLUDES, setting the cache variable VAR accordingly. 1781ac_fn_c_check_header_compile () 1782{ 1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1785$as_echo_n "checking for $2... " >&6; } 1786if eval \${$3+:} false; then : 1787 $as_echo_n "(cached) " >&6 1788else 1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1790/* end confdefs.h. */ 1791$4 1792#include <$2> 1793_ACEOF 1794if ac_fn_c_try_compile "$LINENO"; then : 1795 eval "$3=yes" 1796else 1797 eval "$3=no" 1798fi 1799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1800fi 1801eval ac_res=\$$3 1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1803$as_echo "$ac_res" >&6; } 1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1805 1806} # ac_fn_c_check_header_compile 1807 1808# ac_fn_c_check_func LINENO FUNC VAR 1809# ---------------------------------- 1810# Tests whether FUNC exists, setting the cache variable VAR accordingly 1811ac_fn_c_check_func () 1812{ 1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1815$as_echo_n "checking for $2... " >&6; } 1816if eval \${$3+:} false; then : 1817 $as_echo_n "(cached) " >&6 1818else 1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1820/* end confdefs.h. */ 1821/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1822 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1823#define $2 innocuous_$2 1824 1825/* System header to define __stub macros and hopefully few prototypes, 1826 which can conflict with char $2 (); below. 1827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1828 <limits.h> exists even on freestanding compilers. */ 1829 1830#ifdef __STDC__ 1831# include <limits.h> 1832#else 1833# include <assert.h> 1834#endif 1835 1836#undef $2 1837 1838/* Override any GCC internal prototype to avoid an error. 1839 Use char because int might match the return type of a GCC 1840 builtin and then its argument prototype would still apply. */ 1841#ifdef __cplusplus 1842extern "C" 1843#endif 1844char $2 (); 1845/* The GNU C library defines this for functions which it implements 1846 to always fail with ENOSYS. Some functions are actually named 1847 something starting with __ and the normal name is an alias. */ 1848#if defined __stub_$2 || defined __stub___$2 1849choke me 1850#endif 1851 1852int 1853main () 1854{ 1855return $2 (); 1856 ; 1857 return 0; 1858} 1859_ACEOF 1860if ac_fn_c_try_link "$LINENO"; then : 1861 eval "$3=yes" 1862else 1863 eval "$3=no" 1864fi 1865rm -f core conftest.err conftest.$ac_objext \ 1866 conftest$ac_exeext conftest.$ac_ext 1867fi 1868eval ac_res=\$$3 1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1870$as_echo "$ac_res" >&6; } 1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1872 1873} # ac_fn_c_check_func 1874cat >config.log <<_ACEOF 1875This file contains any messages produced by compilers while 1876running configure, to aid debugging if configure makes a mistake. 1877 1878It was created by guile-cairo $as_me 1.11.0.2-9d63-dirty, which was 1879generated by GNU Autoconf 2.69. Invocation command line was 1880 1881 $ $0 $@ 1882 1883_ACEOF 1884exec 5>>config.log 1885{ 1886cat <<_ASUNAME 1887## --------- ## 1888## Platform. ## 1889## --------- ## 1890 1891hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1892uname -m = `(uname -m) 2>/dev/null || echo unknown` 1893uname -r = `(uname -r) 2>/dev/null || echo unknown` 1894uname -s = `(uname -s) 2>/dev/null || echo unknown` 1895uname -v = `(uname -v) 2>/dev/null || echo unknown` 1896 1897/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1898/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1899 1900/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1901/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1902/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1903/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1904/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1905/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1906/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1907 1908_ASUNAME 1909 1910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1911for as_dir in $PATH 1912do 1913 IFS=$as_save_IFS 1914 test -z "$as_dir" && as_dir=. 1915 $as_echo "PATH: $as_dir" 1916 done 1917IFS=$as_save_IFS 1918 1919} >&5 1920 1921cat >&5 <<_ACEOF 1922 1923 1924## ----------- ## 1925## Core tests. ## 1926## ----------- ## 1927 1928_ACEOF 1929 1930 1931# Keep a trace of the command line. 1932# Strip out --no-create and --no-recursion so they do not pile up. 1933# Strip out --silent because we don't want to record it for future runs. 1934# Also quote any args containing shell meta-characters. 1935# Make two passes to allow for proper duplicate-argument suppression. 1936ac_configure_args= 1937ac_configure_args0= 1938ac_configure_args1= 1939ac_must_keep_next=false 1940for ac_pass in 1 2 1941do 1942 for ac_arg 1943 do 1944 case $ac_arg in 1945 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1946 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1947 | -silent | --silent | --silen | --sile | --sil) 1948 continue ;; 1949 *\'*) 1950 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1951 esac 1952 case $ac_pass in 1953 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1954 2) 1955 as_fn_append ac_configure_args1 " '$ac_arg'" 1956 if test $ac_must_keep_next = true; then 1957 ac_must_keep_next=false # Got value, back to normal. 1958 else 1959 case $ac_arg in 1960 *=* | --config-cache | -C | -disable-* | --disable-* \ 1961 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1962 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1963 | -with-* | --with-* | -without-* | --without-* | --x) 1964 case "$ac_configure_args0 " in 1965 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1966 esac 1967 ;; 1968 -* ) ac_must_keep_next=true ;; 1969 esac 1970 fi 1971 as_fn_append ac_configure_args " '$ac_arg'" 1972 ;; 1973 esac 1974 done 1975done 1976{ ac_configure_args0=; unset ac_configure_args0;} 1977{ ac_configure_args1=; unset ac_configure_args1;} 1978 1979# When interrupted or exit'd, cleanup temporary files, and complete 1980# config.log. We remove comments because anyway the quotes in there 1981# would cause problems or look ugly. 1982# WARNING: Use '\'' to represent an apostrophe within the trap. 1983# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1984trap 'exit_status=$? 1985 # Save into config.log some information that might help in debugging. 1986 { 1987 echo 1988 1989 $as_echo "## ---------------- ## 1990## Cache variables. ## 1991## ---------------- ##" 1992 echo 1993 # The following way of writing the cache mishandles newlines in values, 1994( 1995 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1996 eval ac_val=\$$ac_var 1997 case $ac_val in #( 1998 *${as_nl}*) 1999 case $ac_var in #( 2000 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2001$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2002 esac 2003 case $ac_var in #( 2004 _ | IFS | as_nl) ;; #( 2005 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2006 *) { eval $ac_var=; unset $ac_var;} ;; 2007 esac ;; 2008 esac 2009 done 2010 (set) 2>&1 | 2011 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2012 *${as_nl}ac_space=\ *) 2013 sed -n \ 2014 "s/'\''/'\''\\\\'\'''\''/g; 2015 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2016 ;; #( 2017 *) 2018 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2019 ;; 2020 esac | 2021 sort 2022) 2023 echo 2024 2025 $as_echo "## ----------------- ## 2026## Output variables. ## 2027## ----------------- ##" 2028 echo 2029 for ac_var in $ac_subst_vars 2030 do 2031 eval ac_val=\$$ac_var 2032 case $ac_val in 2033 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2034 esac 2035 $as_echo "$ac_var='\''$ac_val'\''" 2036 done | sort 2037 echo 2038 2039 if test -n "$ac_subst_files"; then 2040 $as_echo "## ------------------- ## 2041## File substitutions. ## 2042## ------------------- ##" 2043 echo 2044 for ac_var in $ac_subst_files 2045 do 2046 eval ac_val=\$$ac_var 2047 case $ac_val in 2048 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2049 esac 2050 $as_echo "$ac_var='\''$ac_val'\''" 2051 done | sort 2052 echo 2053 fi 2054 2055 if test -s confdefs.h; then 2056 $as_echo "## ----------- ## 2057## confdefs.h. ## 2058## ----------- ##" 2059 echo 2060 cat confdefs.h 2061 echo 2062 fi 2063 test "$ac_signal" != 0 && 2064 $as_echo "$as_me: caught signal $ac_signal" 2065 $as_echo "$as_me: exit $exit_status" 2066 } >&5 2067 rm -f core *.core core.conftest.* && 2068 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2069 exit $exit_status 2070' 0 2071for ac_signal in 1 2 13 15; do 2072 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2073done 2074ac_signal=0 2075 2076# confdefs.h avoids OS command line length limits that DEFS can exceed. 2077rm -f -r conftest* confdefs.h 2078 2079$as_echo "/* confdefs.h */" > confdefs.h 2080 2081# Predefined preprocessor variables. 2082 2083cat >>confdefs.h <<_ACEOF 2084#define PACKAGE_NAME "$PACKAGE_NAME" 2085_ACEOF 2086 2087cat >>confdefs.h <<_ACEOF 2088#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2089_ACEOF 2090 2091cat >>confdefs.h <<_ACEOF 2092#define PACKAGE_VERSION "$PACKAGE_VERSION" 2093_ACEOF 2094 2095cat >>confdefs.h <<_ACEOF 2096#define PACKAGE_STRING "$PACKAGE_STRING" 2097_ACEOF 2098 2099cat >>confdefs.h <<_ACEOF 2100#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2101_ACEOF 2102 2103cat >>confdefs.h <<_ACEOF 2104#define PACKAGE_URL "$PACKAGE_URL" 2105_ACEOF 2106 2107 2108# Let the site file select an alternate cache file if it wants to. 2109# Prefer an explicitly selected file to automatically selected ones. 2110ac_site_file1=NONE 2111ac_site_file2=NONE 2112if test -n "$CONFIG_SITE"; then 2113 # We do not want a PATH search for config.site. 2114 case $CONFIG_SITE in #(( 2115 -*) ac_site_file1=./$CONFIG_SITE;; 2116 */*) ac_site_file1=$CONFIG_SITE;; 2117 *) ac_site_file1=./$CONFIG_SITE;; 2118 esac 2119elif test "x$prefix" != xNONE; then 2120 ac_site_file1=$prefix/share/config.site 2121 ac_site_file2=$prefix/etc/config.site 2122else 2123 ac_site_file1=$ac_default_prefix/share/config.site 2124 ac_site_file2=$ac_default_prefix/etc/config.site 2125fi 2126for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2127do 2128 test "x$ac_site_file" = xNONE && continue 2129 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2130 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2131$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2132 sed 's/^/| /' "$ac_site_file" >&5 2133 . "$ac_site_file" \ 2134 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2135$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2136as_fn_error $? "failed to load site script $ac_site_file 2137See \`config.log' for more details" "$LINENO" 5; } 2138 fi 2139done 2140 2141if test -r "$cache_file"; then 2142 # Some versions of bash will fail to source /dev/null (special files 2143 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2144 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2145 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2146$as_echo "$as_me: loading cache $cache_file" >&6;} 2147 case $cache_file in 2148 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2149 *) . "./$cache_file";; 2150 esac 2151 fi 2152else 2153 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2154$as_echo "$as_me: creating cache $cache_file" >&6;} 2155 >$cache_file 2156fi 2157 2158# Check that the precious variables saved in the cache have kept the same 2159# value. 2160ac_cache_corrupted=false 2161for ac_var in $ac_precious_vars; do 2162 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2163 eval ac_new_set=\$ac_env_${ac_var}_set 2164 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2165 eval ac_new_val=\$ac_env_${ac_var}_value 2166 case $ac_old_set,$ac_new_set in 2167 set,) 2168 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2169$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2170 ac_cache_corrupted=: ;; 2171 ,set) 2172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2173$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2174 ac_cache_corrupted=: ;; 2175 ,);; 2176 *) 2177 if test "x$ac_old_val" != "x$ac_new_val"; then 2178 # differences in whitespace do not lead to failure. 2179 ac_old_val_w=`echo x $ac_old_val` 2180 ac_new_val_w=`echo x $ac_new_val` 2181 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2182 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2183$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2184 ac_cache_corrupted=: 2185 else 2186 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2187$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2188 eval $ac_var=\$ac_old_val 2189 fi 2190 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2191$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2192 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2193$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2194 fi;; 2195 esac 2196 # Pass precious variables to config.status. 2197 if test "$ac_new_set" = set; then 2198 case $ac_new_val in 2199 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2200 *) ac_arg=$ac_var=$ac_new_val ;; 2201 esac 2202 case " $ac_configure_args " in 2203 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2204 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2205 esac 2206 fi 2207done 2208if $ac_cache_corrupted; then 2209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2210$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2211 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2212$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2213 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2214fi 2215## -------------------- ## 2216## Main body of script. ## 2217## -------------------- ## 2218 2219ac_ext=c 2220ac_cpp='$CPP $CPPFLAGS' 2221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2223ac_compiler_gnu=$ac_cv_c_compiler_gnu 2224 2225 2226ac_aux_dir= 2227for ac_dir in build-aux "$srcdir"/build-aux; do 2228 if test -f "$ac_dir/install-sh"; then 2229 ac_aux_dir=$ac_dir 2230 ac_install_sh="$ac_aux_dir/install-sh -c" 2231 break 2232 elif test -f "$ac_dir/install.sh"; then 2233 ac_aux_dir=$ac_dir 2234 ac_install_sh="$ac_aux_dir/install.sh -c" 2235 break 2236 elif test -f "$ac_dir/shtool"; then 2237 ac_aux_dir=$ac_dir 2238 ac_install_sh="$ac_aux_dir/shtool install -c" 2239 break 2240 fi 2241done 2242if test -z "$ac_aux_dir"; then 2243 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 2244fi 2245 2246# These three variables are undocumented and unsupported, 2247# and are intended to be withdrawn in a future Autoconf release. 2248# They can cause serious problems if a builder's source tree is in a directory 2249# whose full name contains unusual characters. 2250ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2251ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2252ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2253 2254 2255 2256 2257 2258ac_config_headers="$ac_config_headers config.h" 2259 2260 2261am__api_version='1.16' 2262 2263# Find a good install program. We prefer a C program (faster), 2264# so one script is as good as another. But avoid the broken or 2265# incompatible versions: 2266# SysV /etc/install, /usr/sbin/install 2267# SunOS /usr/etc/install 2268# IRIX /sbin/install 2269# AIX /bin/install 2270# AmigaOS /C/install, which installs bootblocks on floppy discs 2271# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2272# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2273# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2274# OS/2's system install, which has a completely different semantic 2275# ./install, which can be erroneously created by make from ./install.sh. 2276# Reject install programs that cannot install multiple files. 2277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2278$as_echo_n "checking for a BSD-compatible install... " >&6; } 2279if test -z "$INSTALL"; then 2280if ${ac_cv_path_install+:} false; then : 2281 $as_echo_n "(cached) " >&6 2282else 2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2284for as_dir in $PATH 2285do 2286 IFS=$as_save_IFS 2287 test -z "$as_dir" && as_dir=. 2288 # Account for people who put trailing slashes in PATH elements. 2289case $as_dir/ in #(( 2290 ./ | .// | /[cC]/* | \ 2291 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2292 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2293 /usr/ucb/* ) ;; 2294 *) 2295 # OSF1 and SCO ODT 3.0 have their own names for install. 2296 # Don't use installbsd from OSF since it installs stuff as root 2297 # by default. 2298 for ac_prog in ginstall scoinst install; do 2299 for ac_exec_ext in '' $ac_executable_extensions; do 2300 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2301 if test $ac_prog = install && 2302 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2303 # AIX install. It has an incompatible calling convention. 2304 : 2305 elif test $ac_prog = install && 2306 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2307 # program-specific install script used by HP pwplus--don't use. 2308 : 2309 else 2310 rm -rf conftest.one conftest.two conftest.dir 2311 echo one > conftest.one 2312 echo two > conftest.two 2313 mkdir conftest.dir 2314 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2315 test -s conftest.one && test -s conftest.two && 2316 test -s conftest.dir/conftest.one && 2317 test -s conftest.dir/conftest.two 2318 then 2319 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2320 break 3 2321 fi 2322 fi 2323 fi 2324 done 2325 done 2326 ;; 2327esac 2328 2329 done 2330IFS=$as_save_IFS 2331 2332rm -rf conftest.one conftest.two conftest.dir 2333 2334fi 2335 if test "${ac_cv_path_install+set}" = set; then 2336 INSTALL=$ac_cv_path_install 2337 else 2338 # As a last resort, use the slow shell script. Don't cache a 2339 # value for INSTALL within a source directory, because that will 2340 # break other packages using the cache if that directory is 2341 # removed, or if the value is a relative name. 2342 INSTALL=$ac_install_sh 2343 fi 2344fi 2345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2346$as_echo "$INSTALL" >&6; } 2347 2348# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2349# It thinks the first close brace ends the variable substitution. 2350test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2351 2352test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2353 2354test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2355 2356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2357$as_echo_n "checking whether build environment is sane... " >&6; } 2358# Reject unsafe characters in $srcdir or the absolute working directory 2359# name. Accept space and tab only in the latter. 2360am_lf=' 2361' 2362case `pwd` in 2363 *[\\\"\#\$\&\'\`$am_lf]*) 2364 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2365esac 2366case $srcdir in 2367 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2368 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2369esac 2370 2371# Do 'set' in a subshell so we don't clobber the current shell's 2372# arguments. Must try -L first in case configure is actually a 2373# symlink; some systems play weird games with the mod time of symlinks 2374# (eg FreeBSD returns the mod time of the symlink's containing 2375# directory). 2376if ( 2377 am_has_slept=no 2378 for am_try in 1 2; do 2379 echo "timestamp, slept: $am_has_slept" > conftest.file 2380 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2381 if test "$*" = "X"; then 2382 # -L didn't work. 2383 set X `ls -t "$srcdir/configure" conftest.file` 2384 fi 2385 if test "$*" != "X $srcdir/configure conftest.file" \ 2386 && test "$*" != "X conftest.file $srcdir/configure"; then 2387 2388 # If neither matched, then we have a broken ls. This can happen 2389 # if, for instance, CONFIG_SHELL is bash and it inherits a 2390 # broken ls alias from the environment. This has actually 2391 # happened. Such a system could not be considered "sane". 2392 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2393 alias in your environment" "$LINENO" 5 2394 fi 2395 if test "$2" = conftest.file || test $am_try -eq 2; then 2396 break 2397 fi 2398 # Just in case. 2399 sleep 1 2400 am_has_slept=yes 2401 done 2402 test "$2" = conftest.file 2403 ) 2404then 2405 # Ok. 2406 : 2407else 2408 as_fn_error $? "newly created file is older than distributed files! 2409Check your system clock" "$LINENO" 5 2410fi 2411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2412$as_echo "yes" >&6; } 2413# If we didn't sleep, we still need to ensure time stamps of config.status and 2414# generated files are strictly newer. 2415am_sleep_pid= 2416if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2417 ( sleep 1 ) & 2418 am_sleep_pid=$! 2419fi 2420 2421rm -f conftest.file 2422 2423test "$program_prefix" != NONE && 2424 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2425# Use a double $ so make ignores it. 2426test "$program_suffix" != NONE && 2427 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2428# Double any \ or $. 2429# By default was `s,x,x', remove it if useless. 2430ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2431program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2432 2433# Expand $ac_aux_dir to an absolute path. 2434am_aux_dir=`cd "$ac_aux_dir" && pwd` 2435 2436if test x"${MISSING+set}" != xset; then 2437 case $am_aux_dir in 2438 *\ * | *\ *) 2439 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2440 *) 2441 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2442 esac 2443fi 2444# Use eval to expand $SHELL 2445if eval "$MISSING --is-lightweight"; then 2446 am_missing_run="$MISSING " 2447else 2448 am_missing_run= 2449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2450$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2451fi 2452 2453if test x"${install_sh+set}" != xset; then 2454 case $am_aux_dir in 2455 *\ * | *\ *) 2456 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2457 *) 2458 install_sh="\${SHELL} $am_aux_dir/install-sh" 2459 esac 2460fi 2461 2462# Installed binaries are usually stripped using 'strip' when the user 2463# run "make install-strip". However 'strip' might not be the right 2464# tool to use in cross-compilation environments, therefore Automake 2465# will honor the 'STRIP' environment variable to overrule this program. 2466if test "$cross_compiling" != no; then 2467 if test -n "$ac_tool_prefix"; then 2468 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2469set dummy ${ac_tool_prefix}strip; ac_word=$2 2470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2471$as_echo_n "checking for $ac_word... " >&6; } 2472if ${ac_cv_prog_STRIP+:} false; then : 2473 $as_echo_n "(cached) " >&6 2474else 2475 if test -n "$STRIP"; then 2476 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2477else 2478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2479for as_dir in $PATH 2480do 2481 IFS=$as_save_IFS 2482 test -z "$as_dir" && as_dir=. 2483 for ac_exec_ext in '' $ac_executable_extensions; do 2484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2485 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2487 break 2 2488 fi 2489done 2490 done 2491IFS=$as_save_IFS 2492 2493fi 2494fi 2495STRIP=$ac_cv_prog_STRIP 2496if test -n "$STRIP"; then 2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2498$as_echo "$STRIP" >&6; } 2499else 2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2501$as_echo "no" >&6; } 2502fi 2503 2504 2505fi 2506if test -z "$ac_cv_prog_STRIP"; then 2507 ac_ct_STRIP=$STRIP 2508 # Extract the first word of "strip", so it can be a program name with args. 2509set dummy strip; ac_word=$2 2510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2511$as_echo_n "checking for $ac_word... " >&6; } 2512if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2513 $as_echo_n "(cached) " >&6 2514else 2515 if test -n "$ac_ct_STRIP"; then 2516 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2517else 2518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2519for as_dir in $PATH 2520do 2521 IFS=$as_save_IFS 2522 test -z "$as_dir" && as_dir=. 2523 for ac_exec_ext in '' $ac_executable_extensions; do 2524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2525 ac_cv_prog_ac_ct_STRIP="strip" 2526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2527 break 2 2528 fi 2529done 2530 done 2531IFS=$as_save_IFS 2532 2533fi 2534fi 2535ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2536if test -n "$ac_ct_STRIP"; then 2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2538$as_echo "$ac_ct_STRIP" >&6; } 2539else 2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2541$as_echo "no" >&6; } 2542fi 2543 2544 if test "x$ac_ct_STRIP" = x; then 2545 STRIP=":" 2546 else 2547 case $cross_compiling:$ac_tool_warned in 2548yes:) 2549{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2550$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2551ac_tool_warned=yes ;; 2552esac 2553 STRIP=$ac_ct_STRIP 2554 fi 2555else 2556 STRIP="$ac_cv_prog_STRIP" 2557fi 2558 2559fi 2560INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2561 2562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2563$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2564if test -z "$MKDIR_P"; then 2565 if ${ac_cv_path_mkdir+:} false; then : 2566 $as_echo_n "(cached) " >&6 2567else 2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2569for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2570do 2571 IFS=$as_save_IFS 2572 test -z "$as_dir" && as_dir=. 2573 for ac_prog in mkdir gmkdir; do 2574 for ac_exec_ext in '' $ac_executable_extensions; do 2575 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2576 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2577 'mkdir (GNU coreutils) '* | \ 2578 'mkdir (coreutils) '* | \ 2579 'mkdir (fileutils) '4.1*) 2580 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2581 break 3;; 2582 esac 2583 done 2584 done 2585 done 2586IFS=$as_save_IFS 2587 2588fi 2589 2590 test -d ./--version && rmdir ./--version 2591 if test "${ac_cv_path_mkdir+set}" = set; then 2592 MKDIR_P="$ac_cv_path_mkdir -p" 2593 else 2594 # As a last resort, use the slow shell script. Don't cache a 2595 # value for MKDIR_P within a source directory, because that will 2596 # break other packages using the cache if that directory is 2597 # removed, or if the value is a relative name. 2598 MKDIR_P="$ac_install_sh -d" 2599 fi 2600fi 2601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2602$as_echo "$MKDIR_P" >&6; } 2603 2604for ac_prog in gawk mawk nawk awk 2605do 2606 # Extract the first word of "$ac_prog", so it can be a program name with args. 2607set dummy $ac_prog; ac_word=$2 2608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2609$as_echo_n "checking for $ac_word... " >&6; } 2610if ${ac_cv_prog_AWK+:} false; then : 2611 $as_echo_n "(cached) " >&6 2612else 2613 if test -n "$AWK"; then 2614 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2615else 2616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2617for as_dir in $PATH 2618do 2619 IFS=$as_save_IFS 2620 test -z "$as_dir" && as_dir=. 2621 for ac_exec_ext in '' $ac_executable_extensions; do 2622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2623 ac_cv_prog_AWK="$ac_prog" 2624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2625 break 2 2626 fi 2627done 2628 done 2629IFS=$as_save_IFS 2630 2631fi 2632fi 2633AWK=$ac_cv_prog_AWK 2634if test -n "$AWK"; then 2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2636$as_echo "$AWK" >&6; } 2637else 2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2639$as_echo "no" >&6; } 2640fi 2641 2642 2643 test -n "$AWK" && break 2644done 2645 2646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2647$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2648set x ${MAKE-make} 2649ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2650if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2651 $as_echo_n "(cached) " >&6 2652else 2653 cat >conftest.make <<\_ACEOF 2654SHELL = /bin/sh 2655all: 2656 @echo '@@@%%%=$(MAKE)=@@@%%%' 2657_ACEOF 2658# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2659case `${MAKE-make} -f conftest.make 2>/dev/null` in 2660 *@@@%%%=?*=@@@%%%*) 2661 eval ac_cv_prog_make_${ac_make}_set=yes;; 2662 *) 2663 eval ac_cv_prog_make_${ac_make}_set=no;; 2664esac 2665rm -f conftest.make 2666fi 2667if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2669$as_echo "yes" >&6; } 2670 SET_MAKE= 2671else 2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2673$as_echo "no" >&6; } 2674 SET_MAKE="MAKE=${MAKE-make}" 2675fi 2676 2677rm -rf .tst 2>/dev/null 2678mkdir .tst 2>/dev/null 2679if test -d .tst; then 2680 am__leading_dot=. 2681else 2682 am__leading_dot=_ 2683fi 2684rmdir .tst 2>/dev/null 2685 2686# Check whether --enable-silent-rules was given. 2687if test "${enable_silent_rules+set}" = set; then : 2688 enableval=$enable_silent_rules; 2689fi 2690 2691case $enable_silent_rules in # ((( 2692 yes) AM_DEFAULT_VERBOSITY=0;; 2693 no) AM_DEFAULT_VERBOSITY=1;; 2694 *) AM_DEFAULT_VERBOSITY=1;; 2695esac 2696am_make=${MAKE-make} 2697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2698$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2699if ${am_cv_make_support_nested_variables+:} false; then : 2700 $as_echo_n "(cached) " >&6 2701else 2702 if $as_echo 'TRUE=$(BAR$(V)) 2703BAR0=false 2704BAR1=true 2705V=1 2706am__doit: 2707 @$(TRUE) 2708.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2709 am_cv_make_support_nested_variables=yes 2710else 2711 am_cv_make_support_nested_variables=no 2712fi 2713fi 2714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2715$as_echo "$am_cv_make_support_nested_variables" >&6; } 2716if test $am_cv_make_support_nested_variables = yes; then 2717 AM_V='$(V)' 2718 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2719else 2720 AM_V=$AM_DEFAULT_VERBOSITY 2721 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2722fi 2723AM_BACKSLASH='\' 2724 2725if test "`cd $srcdir && pwd`" != "`pwd`"; then 2726 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2727 # is not polluted with repeated "-I." 2728 am__isrc=' -I$(srcdir)' 2729 # test to see if srcdir already configured 2730 if test -f $srcdir/config.status; then 2731 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2732 fi 2733fi 2734 2735# test whether we have cygpath 2736if test -z "$CYGPATH_W"; then 2737 if (cygpath --version) >/dev/null 2>/dev/null; then 2738 CYGPATH_W='cygpath -w' 2739 else 2740 CYGPATH_W=echo 2741 fi 2742fi 2743 2744 2745# Define the identity of the package. 2746 PACKAGE='guile-cairo' 2747 VERSION='1.11.0.2-9d63-dirty' 2748 2749 2750cat >>confdefs.h <<_ACEOF 2751#define PACKAGE "$PACKAGE" 2752_ACEOF 2753 2754 2755cat >>confdefs.h <<_ACEOF 2756#define VERSION "$VERSION" 2757_ACEOF 2758 2759# Some tools Automake needs. 2760 2761ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2762 2763 2764AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2765 2766 2767AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2768 2769 2770AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2771 2772 2773MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2774 2775# For better backward compatibility. To be removed once Automake 1.9.x 2776# dies out for good. For more background, see: 2777# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2778# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2779mkdir_p='$(MKDIR_P)' 2780 2781# We need awk for the "check" target (and possibly the TAP driver). The 2782# system "awk" is bad on some platforms. 2783# Always define AMTAR for backward compatibility. Yes, it's still used 2784# in the wild :-( We should find a proper way to deprecate it ... 2785AMTAR='$${TAR-tar}' 2786 2787 2788# We'll loop over all known methods to create a tar archive until one works. 2789_am_tools='gnutar pax cpio none' 2790 2791am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2792 2793 2794 2795 2796 2797 2798# POSIX will say in a future version that running "rm -f" with no argument 2799# is OK; and we want to be able to make that assumption in our Makefile 2800# recipes. So use an aggressive probe to check that the usage we want is 2801# actually supported "in the wild" to an acceptable degree. 2802# See automake bug#10828. 2803# To make any issue more visible, cause the running configure to be aborted 2804# by default if the 'rm' program in use doesn't match our expectations; the 2805# user can still override this though. 2806if rm -f && rm -fr && rm -rf; then : OK; else 2807 cat >&2 <<'END' 2808Oops! 2809 2810Your 'rm' program seems unable to run without file operands specified 2811on the command line, even when the '-f' option is present. This is contrary 2812to the behaviour of most rm programs out there, and not conforming with 2813the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2814 2815Please tell bug-automake@gnu.org about your system, including the value 2816of your $PATH and any error possibly output before this message. This 2817can help us improve future automake versions. 2818 2819END 2820 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2821 echo 'Configuration will proceed anyway, since you have set the' >&2 2822 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2823 echo >&2 2824 else 2825 cat >&2 <<'END' 2826Aborting the configuration process, to ensure you take notice of the issue. 2827 2828You can download and install GNU coreutils to get an 'rm' implementation 2829that behaves properly: <https://www.gnu.org/software/coreutils/>. 2830 2831If you want to complete the configuration process using your problematic 2832'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2833to "yes", and re-run configure. 2834 2835END 2836 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2837 fi 2838fi 2839 2840 2841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2842$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2843 # Check whether --enable-maintainer-mode was given. 2844if test "${enable_maintainer_mode+set}" = set; then : 2845 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2846else 2847 USE_MAINTAINER_MODE=yes 2848fi 2849 2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2851$as_echo "$USE_MAINTAINER_MODE" >&6; } 2852 if test $USE_MAINTAINER_MODE = yes; then 2853 MAINTAINER_MODE_TRUE= 2854 MAINTAINER_MODE_FALSE='#' 2855else 2856 MAINTAINER_MODE_TRUE='#' 2857 MAINTAINER_MODE_FALSE= 2858fi 2859 2860 MAINT=$MAINTAINER_MODE_TRUE 2861 2862 2863# Check whether --enable-silent-rules was given. 2864if test "${enable_silent_rules+set}" = set; then : 2865 enableval=$enable_silent_rules; 2866fi 2867 2868case $enable_silent_rules in # ((( 2869 yes) AM_DEFAULT_VERBOSITY=0;; 2870 no) AM_DEFAULT_VERBOSITY=1;; 2871 *) AM_DEFAULT_VERBOSITY=0;; 2872esac 2873am_make=${MAKE-make} 2874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2875$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2876if ${am_cv_make_support_nested_variables+:} false; then : 2877 $as_echo_n "(cached) " >&6 2878else 2879 if $as_echo 'TRUE=$(BAR$(V)) 2880BAR0=false 2881BAR1=true 2882V=1 2883am__doit: 2884 @$(TRUE) 2885.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2886 am_cv_make_support_nested_variables=yes 2887else 2888 am_cv_make_support_nested_variables=no 2889fi 2890fi 2891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2892$as_echo "$am_cv_make_support_nested_variables" >&6; } 2893if test $am_cv_make_support_nested_variables = yes; then 2894 AM_V='$(V)' 2895 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2896else 2897 AM_V=$AM_DEFAULT_VERBOSITY 2898 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2899fi 2900AM_BACKSLASH='\' 2901 2902 2903VERSION=1.11.1 2904 2905 2906DEPDIR="${am__leading_dot}deps" 2907 2908ac_config_commands="$ac_config_commands depfiles" 2909 2910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 2911$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 2912cat > confinc.mk << 'END' 2913am__doit: 2914 @echo this is the am__doit target >confinc.out 2915.PHONY: am__doit 2916END 2917am__include="#" 2918am__quote= 2919# BSD make does it like this. 2920echo '.include "confinc.mk" # ignored' > confmf.BSD 2921# Other make implementations (GNU, Solaris 10, AIX) do it like this. 2922echo 'include confinc.mk # ignored' > confmf.GNU 2923_am_result=no 2924for s in GNU BSD; do 2925 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 2926 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 2927 ac_status=$? 2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2929 (exit $ac_status); } 2930 case $?:`cat confinc.out 2>/dev/null` in #( 2931 '0:this is the am__doit target') : 2932 case $s in #( 2933 BSD) : 2934 am__include='.include' am__quote='"' ;; #( 2935 *) : 2936 am__include='include' am__quote='' ;; 2937esac ;; #( 2938 *) : 2939 ;; 2940esac 2941 if test "$am__include" != "#"; then 2942 _am_result="yes ($s style)" 2943 break 2944 fi 2945done 2946rm -f confinc.* confmf.* 2947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 2948$as_echo "${_am_result}" >&6; } 2949 2950# Check whether --enable-dependency-tracking was given. 2951if test "${enable_dependency_tracking+set}" = set; then : 2952 enableval=$enable_dependency_tracking; 2953fi 2954 2955if test "x$enable_dependency_tracking" != xno; then 2956 am_depcomp="$ac_aux_dir/depcomp" 2957 AMDEPBACKSLASH='\' 2958 am__nodep='_no' 2959fi 2960 if test "x$enable_dependency_tracking" != xno; then 2961 AMDEP_TRUE= 2962 AMDEP_FALSE='#' 2963else 2964 AMDEP_TRUE='#' 2965 AMDEP_FALSE= 2966fi 2967 2968 2969ac_ext=c 2970ac_cpp='$CPP $CPPFLAGS' 2971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2973ac_compiler_gnu=$ac_cv_c_compiler_gnu 2974if test -n "$ac_tool_prefix"; then 2975 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2976set dummy ${ac_tool_prefix}gcc; ac_word=$2 2977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2978$as_echo_n "checking for $ac_word... " >&6; } 2979if ${ac_cv_prog_CC+:} false; then : 2980 $as_echo_n "(cached) " >&6 2981else 2982 if test -n "$CC"; then 2983 ac_cv_prog_CC="$CC" # Let the user override the test. 2984else 2985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2986for as_dir in $PATH 2987do 2988 IFS=$as_save_IFS 2989 test -z "$as_dir" && as_dir=. 2990 for ac_exec_ext in '' $ac_executable_extensions; do 2991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2992 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2994 break 2 2995 fi 2996done 2997 done 2998IFS=$as_save_IFS 2999 3000fi 3001fi 3002CC=$ac_cv_prog_CC 3003if test -n "$CC"; then 3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3005$as_echo "$CC" >&6; } 3006else 3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3008$as_echo "no" >&6; } 3009fi 3010 3011 3012fi 3013if test -z "$ac_cv_prog_CC"; then 3014 ac_ct_CC=$CC 3015 # Extract the first word of "gcc", so it can be a program name with args. 3016set dummy gcc; ac_word=$2 3017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3018$as_echo_n "checking for $ac_word... " >&6; } 3019if ${ac_cv_prog_ac_ct_CC+:} false; then : 3020 $as_echo_n "(cached) " >&6 3021else 3022 if test -n "$ac_ct_CC"; then 3023 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3024else 3025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3026for as_dir in $PATH 3027do 3028 IFS=$as_save_IFS 3029 test -z "$as_dir" && as_dir=. 3030 for ac_exec_ext in '' $ac_executable_extensions; do 3031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3032 ac_cv_prog_ac_ct_CC="gcc" 3033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3034 break 2 3035 fi 3036done 3037 done 3038IFS=$as_save_IFS 3039 3040fi 3041fi 3042ac_ct_CC=$ac_cv_prog_ac_ct_CC 3043if test -n "$ac_ct_CC"; then 3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3045$as_echo "$ac_ct_CC" >&6; } 3046else 3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3048$as_echo "no" >&6; } 3049fi 3050 3051 if test "x$ac_ct_CC" = x; then 3052 CC="" 3053 else 3054 case $cross_compiling:$ac_tool_warned in 3055yes:) 3056{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3057$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3058ac_tool_warned=yes ;; 3059esac 3060 CC=$ac_ct_CC 3061 fi 3062else 3063 CC="$ac_cv_prog_CC" 3064fi 3065 3066if test -z "$CC"; then 3067 if test -n "$ac_tool_prefix"; then 3068 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3069set dummy ${ac_tool_prefix}cc; ac_word=$2 3070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3071$as_echo_n "checking for $ac_word... " >&6; } 3072if ${ac_cv_prog_CC+:} false; then : 3073 $as_echo_n "(cached) " >&6 3074else 3075 if test -n "$CC"; then 3076 ac_cv_prog_CC="$CC" # Let the user override the test. 3077else 3078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3079for as_dir in $PATH 3080do 3081 IFS=$as_save_IFS 3082 test -z "$as_dir" && as_dir=. 3083 for ac_exec_ext in '' $ac_executable_extensions; do 3084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3085 ac_cv_prog_CC="${ac_tool_prefix}cc" 3086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3087 break 2 3088 fi 3089done 3090 done 3091IFS=$as_save_IFS 3092 3093fi 3094fi 3095CC=$ac_cv_prog_CC 3096if test -n "$CC"; then 3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3098$as_echo "$CC" >&6; } 3099else 3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3101$as_echo "no" >&6; } 3102fi 3103 3104 3105 fi 3106fi 3107if test -z "$CC"; then 3108 # Extract the first word of "cc", so it can be a program name with args. 3109set dummy cc; ac_word=$2 3110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3111$as_echo_n "checking for $ac_word... " >&6; } 3112if ${ac_cv_prog_CC+:} false; then : 3113 $as_echo_n "(cached) " >&6 3114else 3115 if test -n "$CC"; then 3116 ac_cv_prog_CC="$CC" # Let the user override the test. 3117else 3118 ac_prog_rejected=no 3119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3120for as_dir in $PATH 3121do 3122 IFS=$as_save_IFS 3123 test -z "$as_dir" && as_dir=. 3124 for ac_exec_ext in '' $ac_executable_extensions; do 3125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3126 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3127 ac_prog_rejected=yes 3128 continue 3129 fi 3130 ac_cv_prog_CC="cc" 3131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3132 break 2 3133 fi 3134done 3135 done 3136IFS=$as_save_IFS 3137 3138if test $ac_prog_rejected = yes; then 3139 # We found a bogon in the path, so make sure we never use it. 3140 set dummy $ac_cv_prog_CC 3141 shift 3142 if test $# != 0; then 3143 # We chose a different compiler from the bogus one. 3144 # However, it has the same basename, so the bogon will be chosen 3145 # first if we set CC to just the basename; use the full file name. 3146 shift 3147 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3148 fi 3149fi 3150fi 3151fi 3152CC=$ac_cv_prog_CC 3153if test -n "$CC"; then 3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3155$as_echo "$CC" >&6; } 3156else 3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3158$as_echo "no" >&6; } 3159fi 3160 3161 3162fi 3163if test -z "$CC"; then 3164 if test -n "$ac_tool_prefix"; then 3165 for ac_prog in cl.exe 3166 do 3167 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3168set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3170$as_echo_n "checking for $ac_word... " >&6; } 3171if ${ac_cv_prog_CC+:} false; then : 3172 $as_echo_n "(cached) " >&6 3173else 3174 if test -n "$CC"; then 3175 ac_cv_prog_CC="$CC" # Let the user override the test. 3176else 3177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3178for as_dir in $PATH 3179do 3180 IFS=$as_save_IFS 3181 test -z "$as_dir" && as_dir=. 3182 for ac_exec_ext in '' $ac_executable_extensions; do 3183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3184 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3186 break 2 3187 fi 3188done 3189 done 3190IFS=$as_save_IFS 3191 3192fi 3193fi 3194CC=$ac_cv_prog_CC 3195if test -n "$CC"; then 3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3197$as_echo "$CC" >&6; } 3198else 3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3200$as_echo "no" >&6; } 3201fi 3202 3203 3204 test -n "$CC" && break 3205 done 3206fi 3207if test -z "$CC"; then 3208 ac_ct_CC=$CC 3209 for ac_prog in cl.exe 3210do 3211 # Extract the first word of "$ac_prog", so it can be a program name with args. 3212set dummy $ac_prog; ac_word=$2 3213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3214$as_echo_n "checking for $ac_word... " >&6; } 3215if ${ac_cv_prog_ac_ct_CC+:} false; then : 3216 $as_echo_n "(cached) " >&6 3217else 3218 if test -n "$ac_ct_CC"; then 3219 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3220else 3221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3222for as_dir in $PATH 3223do 3224 IFS=$as_save_IFS 3225 test -z "$as_dir" && as_dir=. 3226 for ac_exec_ext in '' $ac_executable_extensions; do 3227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3228 ac_cv_prog_ac_ct_CC="$ac_prog" 3229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3230 break 2 3231 fi 3232done 3233 done 3234IFS=$as_save_IFS 3235 3236fi 3237fi 3238ac_ct_CC=$ac_cv_prog_ac_ct_CC 3239if test -n "$ac_ct_CC"; then 3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3241$as_echo "$ac_ct_CC" >&6; } 3242else 3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3244$as_echo "no" >&6; } 3245fi 3246 3247 3248 test -n "$ac_ct_CC" && break 3249done 3250 3251 if test "x$ac_ct_CC" = x; then 3252 CC="" 3253 else 3254 case $cross_compiling:$ac_tool_warned in 3255yes:) 3256{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3257$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3258ac_tool_warned=yes ;; 3259esac 3260 CC=$ac_ct_CC 3261 fi 3262fi 3263 3264fi 3265 3266 3267test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3268$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3269as_fn_error $? "no acceptable C compiler found in \$PATH 3270See \`config.log' for more details" "$LINENO" 5; } 3271 3272# Provide some information about the compiler. 3273$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3274set X $ac_compile 3275ac_compiler=$2 3276for ac_option in --version -v -V -qversion; do 3277 { { ac_try="$ac_compiler $ac_option >&5" 3278case "(($ac_try" in 3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3280 *) ac_try_echo=$ac_try;; 3281esac 3282eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3283$as_echo "$ac_try_echo"; } >&5 3284 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3285 ac_status=$? 3286 if test -s conftest.err; then 3287 sed '10a\ 3288... rest of stderr output deleted ... 3289 10q' conftest.err >conftest.er1 3290 cat conftest.er1 >&5 3291 fi 3292 rm -f conftest.er1 conftest.err 3293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3294 test $ac_status = 0; } 3295done 3296 3297cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3298/* end confdefs.h. */ 3299 3300int 3301main () 3302{ 3303 3304 ; 3305 return 0; 3306} 3307_ACEOF 3308ac_clean_files_save=$ac_clean_files 3309ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3310# Try to create an executable without -o first, disregard a.out. 3311# It will help us diagnose broken compilers, and finding out an intuition 3312# of exeext. 3313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3314$as_echo_n "checking whether the C compiler works... " >&6; } 3315ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3316 3317# The possible output files: 3318ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3319 3320ac_rmfiles= 3321for ac_file in $ac_files 3322do 3323 case $ac_file in 3324 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3325 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3326 esac 3327done 3328rm -f $ac_rmfiles 3329 3330if { { ac_try="$ac_link_default" 3331case "(($ac_try" in 3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3333 *) ac_try_echo=$ac_try;; 3334esac 3335eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3336$as_echo "$ac_try_echo"; } >&5 3337 (eval "$ac_link_default") 2>&5 3338 ac_status=$? 3339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3340 test $ac_status = 0; }; then : 3341 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3342# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3343# in a Makefile. We should not override ac_cv_exeext if it was cached, 3344# so that the user can short-circuit this test for compilers unknown to 3345# Autoconf. 3346for ac_file in $ac_files '' 3347do 3348 test -f "$ac_file" || continue 3349 case $ac_file in 3350 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3351 ;; 3352 [ab].out ) 3353 # We found the default executable, but exeext='' is most 3354 # certainly right. 3355 break;; 3356 *.* ) 3357 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3358 then :; else 3359 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3360 fi 3361 # We set ac_cv_exeext here because the later test for it is not 3362 # safe: cross compilers may not add the suffix if given an `-o' 3363 # argument, so we may need to know it at that point already. 3364 # Even if this section looks crufty: it has the advantage of 3365 # actually working. 3366 break;; 3367 * ) 3368 break;; 3369 esac 3370done 3371test "$ac_cv_exeext" = no && ac_cv_exeext= 3372 3373else 3374 ac_file='' 3375fi 3376if test -z "$ac_file"; then : 3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3378$as_echo "no" >&6; } 3379$as_echo "$as_me: failed program was:" >&5 3380sed 's/^/| /' conftest.$ac_ext >&5 3381 3382{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3384as_fn_error 77 "C compiler cannot create executables 3385See \`config.log' for more details" "$LINENO" 5; } 3386else 3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3388$as_echo "yes" >&6; } 3389fi 3390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3391$as_echo_n "checking for C compiler default output file name... " >&6; } 3392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3393$as_echo "$ac_file" >&6; } 3394ac_exeext=$ac_cv_exeext 3395 3396rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3397ac_clean_files=$ac_clean_files_save 3398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3399$as_echo_n "checking for suffix of executables... " >&6; } 3400if { { ac_try="$ac_link" 3401case "(($ac_try" in 3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3403 *) ac_try_echo=$ac_try;; 3404esac 3405eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3406$as_echo "$ac_try_echo"; } >&5 3407 (eval "$ac_link") 2>&5 3408 ac_status=$? 3409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3410 test $ac_status = 0; }; then : 3411 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3412# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3413# work properly (i.e., refer to `conftest.exe'), while it won't with 3414# `rm'. 3415for ac_file in conftest.exe conftest conftest.*; do 3416 test -f "$ac_file" || continue 3417 case $ac_file in 3418 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3419 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3420 break;; 3421 * ) break;; 3422 esac 3423done 3424else 3425 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3426$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3427as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3428See \`config.log' for more details" "$LINENO" 5; } 3429fi 3430rm -f conftest conftest$ac_cv_exeext 3431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3432$as_echo "$ac_cv_exeext" >&6; } 3433 3434rm -f conftest.$ac_ext 3435EXEEXT=$ac_cv_exeext 3436ac_exeext=$EXEEXT 3437cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3438/* end confdefs.h. */ 3439#include <stdio.h> 3440int 3441main () 3442{ 3443FILE *f = fopen ("conftest.out", "w"); 3444 return ferror (f) || fclose (f) != 0; 3445 3446 ; 3447 return 0; 3448} 3449_ACEOF 3450ac_clean_files="$ac_clean_files conftest.out" 3451# Check that the compiler produces executables we can run. If not, either 3452# the compiler is broken, or we cross compile. 3453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3454$as_echo_n "checking whether we are cross compiling... " >&6; } 3455if test "$cross_compiling" != yes; then 3456 { { ac_try="$ac_link" 3457case "(($ac_try" in 3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3459 *) ac_try_echo=$ac_try;; 3460esac 3461eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3462$as_echo "$ac_try_echo"; } >&5 3463 (eval "$ac_link") 2>&5 3464 ac_status=$? 3465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3466 test $ac_status = 0; } 3467 if { ac_try='./conftest$ac_cv_exeext' 3468 { { case "(($ac_try" in 3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3470 *) ac_try_echo=$ac_try;; 3471esac 3472eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3473$as_echo "$ac_try_echo"; } >&5 3474 (eval "$ac_try") 2>&5 3475 ac_status=$? 3476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3477 test $ac_status = 0; }; }; then 3478 cross_compiling=no 3479 else 3480 if test "$cross_compiling" = maybe; then 3481 cross_compiling=yes 3482 else 3483 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3484$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3485as_fn_error $? "cannot run C compiled programs. 3486If you meant to cross compile, use \`--host'. 3487See \`config.log' for more details" "$LINENO" 5; } 3488 fi 3489 fi 3490fi 3491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3492$as_echo "$cross_compiling" >&6; } 3493 3494rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3495ac_clean_files=$ac_clean_files_save 3496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3497$as_echo_n "checking for suffix of object files... " >&6; } 3498if ${ac_cv_objext+:} false; then : 3499 $as_echo_n "(cached) " >&6 3500else 3501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3502/* end confdefs.h. */ 3503 3504int 3505main () 3506{ 3507 3508 ; 3509 return 0; 3510} 3511_ACEOF 3512rm -f conftest.o conftest.obj 3513if { { ac_try="$ac_compile" 3514case "(($ac_try" in 3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3516 *) ac_try_echo=$ac_try;; 3517esac 3518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3519$as_echo "$ac_try_echo"; } >&5 3520 (eval "$ac_compile") 2>&5 3521 ac_status=$? 3522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3523 test $ac_status = 0; }; then : 3524 for ac_file in conftest.o conftest.obj conftest.*; do 3525 test -f "$ac_file" || continue; 3526 case $ac_file in 3527 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3528 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3529 break;; 3530 esac 3531done 3532else 3533 $as_echo "$as_me: failed program was:" >&5 3534sed 's/^/| /' conftest.$ac_ext >&5 3535 3536{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3537$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3538as_fn_error $? "cannot compute suffix of object files: cannot compile 3539See \`config.log' for more details" "$LINENO" 5; } 3540fi 3541rm -f conftest.$ac_cv_objext conftest.$ac_ext 3542fi 3543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3544$as_echo "$ac_cv_objext" >&6; } 3545OBJEXT=$ac_cv_objext 3546ac_objext=$OBJEXT 3547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3548$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3549if ${ac_cv_c_compiler_gnu+:} false; then : 3550 $as_echo_n "(cached) " >&6 3551else 3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3553/* end confdefs.h. */ 3554 3555int 3556main () 3557{ 3558#ifndef __GNUC__ 3559 choke me 3560#endif 3561 3562 ; 3563 return 0; 3564} 3565_ACEOF 3566if ac_fn_c_try_compile "$LINENO"; then : 3567 ac_compiler_gnu=yes 3568else 3569 ac_compiler_gnu=no 3570fi 3571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3572ac_cv_c_compiler_gnu=$ac_compiler_gnu 3573 3574fi 3575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3576$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3577if test $ac_compiler_gnu = yes; then 3578 GCC=yes 3579else 3580 GCC= 3581fi 3582ac_test_CFLAGS=${CFLAGS+set} 3583ac_save_CFLAGS=$CFLAGS 3584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3585$as_echo_n "checking whether $CC accepts -g... " >&6; } 3586if ${ac_cv_prog_cc_g+:} false; then : 3587 $as_echo_n "(cached) " >&6 3588else 3589 ac_save_c_werror_flag=$ac_c_werror_flag 3590 ac_c_werror_flag=yes 3591 ac_cv_prog_cc_g=no 3592 CFLAGS="-g" 3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3594/* end confdefs.h. */ 3595 3596int 3597main () 3598{ 3599 3600 ; 3601 return 0; 3602} 3603_ACEOF 3604if ac_fn_c_try_compile "$LINENO"; then : 3605 ac_cv_prog_cc_g=yes 3606else 3607 CFLAGS="" 3608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3609/* end confdefs.h. */ 3610 3611int 3612main () 3613{ 3614 3615 ; 3616 return 0; 3617} 3618_ACEOF 3619if ac_fn_c_try_compile "$LINENO"; then : 3620 3621else 3622 ac_c_werror_flag=$ac_save_c_werror_flag 3623 CFLAGS="-g" 3624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3625/* end confdefs.h. */ 3626 3627int 3628main () 3629{ 3630 3631 ; 3632 return 0; 3633} 3634_ACEOF 3635if ac_fn_c_try_compile "$LINENO"; then : 3636 ac_cv_prog_cc_g=yes 3637fi 3638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3639fi 3640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3641fi 3642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3643 ac_c_werror_flag=$ac_save_c_werror_flag 3644fi 3645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3646$as_echo "$ac_cv_prog_cc_g" >&6; } 3647if test "$ac_test_CFLAGS" = set; then 3648 CFLAGS=$ac_save_CFLAGS 3649elif test $ac_cv_prog_cc_g = yes; then 3650 if test "$GCC" = yes; then 3651 CFLAGS="-g -O2" 3652 else 3653 CFLAGS="-g" 3654 fi 3655else 3656 if test "$GCC" = yes; then 3657 CFLAGS="-O2" 3658 else 3659 CFLAGS= 3660 fi 3661fi 3662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3663$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3664if ${ac_cv_prog_cc_c89+:} false; then : 3665 $as_echo_n "(cached) " >&6 3666else 3667 ac_cv_prog_cc_c89=no 3668ac_save_CC=$CC 3669cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3670/* end confdefs.h. */ 3671#include <stdarg.h> 3672#include <stdio.h> 3673struct stat; 3674/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3675struct buf { int x; }; 3676FILE * (*rcsopen) (struct buf *, struct stat *, int); 3677static char *e (p, i) 3678 char **p; 3679 int i; 3680{ 3681 return p[i]; 3682} 3683static char *f (char * (*g) (char **, int), char **p, ...) 3684{ 3685 char *s; 3686 va_list v; 3687 va_start (v,p); 3688 s = g (p, va_arg (v,int)); 3689 va_end (v); 3690 return s; 3691} 3692 3693/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3694 function prototypes and stuff, but not '\xHH' hex character constants. 3695 These don't provoke an error unfortunately, instead are silently treated 3696 as 'x'. The following induces an error, until -std is added to get 3697 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3698 array size at least. It's necessary to write '\x00'==0 to get something 3699 that's true only with -std. */ 3700int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3701 3702/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3703 inside strings and character constants. */ 3704#define FOO(x) 'x' 3705int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3706 3707int test (int i, double x); 3708struct s1 {int (*f) (int a);}; 3709struct s2 {int (*f) (double a);}; 3710int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3711int argc; 3712char **argv; 3713int 3714main () 3715{ 3716return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3717 ; 3718 return 0; 3719} 3720_ACEOF 3721for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3722 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3723do 3724 CC="$ac_save_CC $ac_arg" 3725 if ac_fn_c_try_compile "$LINENO"; then : 3726 ac_cv_prog_cc_c89=$ac_arg 3727fi 3728rm -f core conftest.err conftest.$ac_objext 3729 test "x$ac_cv_prog_cc_c89" != "xno" && break 3730done 3731rm -f conftest.$ac_ext 3732CC=$ac_save_CC 3733 3734fi 3735# AC_CACHE_VAL 3736case "x$ac_cv_prog_cc_c89" in 3737 x) 3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3739$as_echo "none needed" >&6; } ;; 3740 xno) 3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3742$as_echo "unsupported" >&6; } ;; 3743 *) 3744 CC="$CC $ac_cv_prog_cc_c89" 3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3746$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3747esac 3748if test "x$ac_cv_prog_cc_c89" != xno; then : 3749 3750fi 3751 3752ac_ext=c 3753ac_cpp='$CPP $CPPFLAGS' 3754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3756ac_compiler_gnu=$ac_cv_c_compiler_gnu 3757 3758ac_ext=c 3759ac_cpp='$CPP $CPPFLAGS' 3760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3762ac_compiler_gnu=$ac_cv_c_compiler_gnu 3763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3764$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3765if ${am_cv_prog_cc_c_o+:} false; then : 3766 $as_echo_n "(cached) " >&6 3767else 3768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3769/* end confdefs.h. */ 3770 3771int 3772main () 3773{ 3774 3775 ; 3776 return 0; 3777} 3778_ACEOF 3779 # Make sure it works both with $CC and with simple cc. 3780 # Following AC_PROG_CC_C_O, we do the test twice because some 3781 # compilers refuse to overwrite an existing .o file with -o, 3782 # though they will create one. 3783 am_cv_prog_cc_c_o=yes 3784 for am_i in 1 2; do 3785 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3786 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3787 ac_status=$? 3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3789 (exit $ac_status); } \ 3790 && test -f conftest2.$ac_objext; then 3791 : OK 3792 else 3793 am_cv_prog_cc_c_o=no 3794 break 3795 fi 3796 done 3797 rm -f core conftest* 3798 unset am_i 3799fi 3800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3801$as_echo "$am_cv_prog_cc_c_o" >&6; } 3802if test "$am_cv_prog_cc_c_o" != yes; then 3803 # Losing compiler, so override with the script. 3804 # FIXME: It is wrong to rewrite CC. 3805 # But if we don't then we get into trouble of one sort or another. 3806 # A longer-term fix would be to have automake use am__CC in this case, 3807 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3808 CC="$am_aux_dir/compile $CC" 3809fi 3810ac_ext=c 3811ac_cpp='$CPP $CPPFLAGS' 3812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3814ac_compiler_gnu=$ac_cv_c_compiler_gnu 3815 3816 3817depcc="$CC" am_compiler_list= 3818 3819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3820$as_echo_n "checking dependency style of $depcc... " >&6; } 3821if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3822 $as_echo_n "(cached) " >&6 3823else 3824 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3825 # We make a subdir and do the tests there. Otherwise we can end up 3826 # making bogus files that we don't know about and never remove. For 3827 # instance it was reported that on HP-UX the gcc test will end up 3828 # making a dummy file named 'D' -- because '-MD' means "put the output 3829 # in D". 3830 rm -rf conftest.dir 3831 mkdir conftest.dir 3832 # Copy depcomp to subdir because otherwise we won't find it if we're 3833 # using a relative directory. 3834 cp "$am_depcomp" conftest.dir 3835 cd conftest.dir 3836 # We will build objects and dependencies in a subdirectory because 3837 # it helps to detect inapplicable dependency modes. For instance 3838 # both Tru64's cc and ICC support -MD to output dependencies as a 3839 # side effect of compilation, but ICC will put the dependencies in 3840 # the current directory while Tru64 will put them in the object 3841 # directory. 3842 mkdir sub 3843 3844 am_cv_CC_dependencies_compiler_type=none 3845 if test "$am_compiler_list" = ""; then 3846 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3847 fi 3848 am__universal=false 3849 case " $depcc " in #( 3850 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3851 esac 3852 3853 for depmode in $am_compiler_list; do 3854 # Setup a source with many dependencies, because some compilers 3855 # like to wrap large dependency lists on column 80 (with \), and 3856 # we should not choose a depcomp mode which is confused by this. 3857 # 3858 # We need to recreate these files for each test, as the compiler may 3859 # overwrite some of them when testing with obscure command lines. 3860 # This happens at least with the AIX C compiler. 3861 : > sub/conftest.c 3862 for i in 1 2 3 4 5 6; do 3863 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3864 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3865 # Solaris 10 /bin/sh. 3866 echo '/* dummy */' > sub/conftst$i.h 3867 done 3868 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3869 3870 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3871 # mode. It turns out that the SunPro C++ compiler does not properly 3872 # handle '-M -o', and we need to detect this. Also, some Intel 3873 # versions had trouble with output in subdirs. 3874 am__obj=sub/conftest.${OBJEXT-o} 3875 am__minus_obj="-o $am__obj" 3876 case $depmode in 3877 gcc) 3878 # This depmode causes a compiler race in universal mode. 3879 test "$am__universal" = false || continue 3880 ;; 3881 nosideeffect) 3882 # After this tag, mechanisms are not by side-effect, so they'll 3883 # only be used when explicitly requested. 3884 if test "x$enable_dependency_tracking" = xyes; then 3885 continue 3886 else 3887 break 3888 fi 3889 ;; 3890 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3891 # This compiler won't grok '-c -o', but also, the minuso test has 3892 # not run yet. These depmodes are late enough in the game, and 3893 # so weak that their functioning should not be impacted. 3894 am__obj=conftest.${OBJEXT-o} 3895 am__minus_obj= 3896 ;; 3897 none) break ;; 3898 esac 3899 if depmode=$depmode \ 3900 source=sub/conftest.c object=$am__obj \ 3901 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3902 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3903 >/dev/null 2>conftest.err && 3904 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3905 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3906 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3907 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3908 # icc doesn't choke on unknown options, it will just issue warnings 3909 # or remarks (even with -Werror). So we grep stderr for any message 3910 # that says an option was ignored or not supported. 3911 # When given -MP, icc 7.0 and 7.1 complain thusly: 3912 # icc: Command line warning: ignoring option '-M'; no argument required 3913 # The diagnosis changed in icc 8.0: 3914 # icc: Command line remark: option '-MP' not supported 3915 if (grep 'ignoring option' conftest.err || 3916 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3917 am_cv_CC_dependencies_compiler_type=$depmode 3918 break 3919 fi 3920 fi 3921 done 3922 3923 cd .. 3924 rm -rf conftest.dir 3925else 3926 am_cv_CC_dependencies_compiler_type=none 3927fi 3928 3929fi 3930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3931$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3932CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3933 3934 if 3935 test "x$enable_dependency_tracking" != xno \ 3936 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3937 am__fastdepCC_TRUE= 3938 am__fastdepCC_FALSE='#' 3939else 3940 am__fastdepCC_TRUE='#' 3941 am__fastdepCC_FALSE= 3942fi 3943 3944 3945 3946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 3947$as_echo_n "checking for library containing strerror... " >&6; } 3948if ${ac_cv_search_strerror+:} false; then : 3949 $as_echo_n "(cached) " >&6 3950else 3951 ac_func_search_save_LIBS=$LIBS 3952cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3953/* end confdefs.h. */ 3954 3955/* Override any GCC internal prototype to avoid an error. 3956 Use char because int might match the return type of a GCC 3957 builtin and then its argument prototype would still apply. */ 3958#ifdef __cplusplus 3959extern "C" 3960#endif 3961char strerror (); 3962int 3963main () 3964{ 3965return strerror (); 3966 ; 3967 return 0; 3968} 3969_ACEOF 3970for ac_lib in '' cposix; do 3971 if test -z "$ac_lib"; then 3972 ac_res="none required" 3973 else 3974 ac_res=-l$ac_lib 3975 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3976 fi 3977 if ac_fn_c_try_link "$LINENO"; then : 3978 ac_cv_search_strerror=$ac_res 3979fi 3980rm -f core conftest.err conftest.$ac_objext \ 3981 conftest$ac_exeext 3982 if ${ac_cv_search_strerror+:} false; then : 3983 break 3984fi 3985done 3986if ${ac_cv_search_strerror+:} false; then : 3987 3988else 3989 ac_cv_search_strerror=no 3990fi 3991rm conftest.$ac_ext 3992LIBS=$ac_func_search_save_LIBS 3993fi 3994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 3995$as_echo "$ac_cv_search_strerror" >&6; } 3996ac_res=$ac_cv_search_strerror 3997if test "$ac_res" != no; then : 3998 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3999 4000fi 4001 4002ac_ext=c 4003ac_cpp='$CPP $CPPFLAGS' 4004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4006ac_compiler_gnu=$ac_cv_c_compiler_gnu 4007if test -n "$ac_tool_prefix"; then 4008 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4009set dummy ${ac_tool_prefix}gcc; ac_word=$2 4010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4011$as_echo_n "checking for $ac_word... " >&6; } 4012if ${ac_cv_prog_CC+:} false; then : 4013 $as_echo_n "(cached) " >&6 4014else 4015 if test -n "$CC"; then 4016 ac_cv_prog_CC="$CC" # Let the user override the test. 4017else 4018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4019for as_dir in $PATH 4020do 4021 IFS=$as_save_IFS 4022 test -z "$as_dir" && as_dir=. 4023 for ac_exec_ext in '' $ac_executable_extensions; do 4024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4025 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4027 break 2 4028 fi 4029done 4030 done 4031IFS=$as_save_IFS 4032 4033fi 4034fi 4035CC=$ac_cv_prog_CC 4036if test -n "$CC"; then 4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4038$as_echo "$CC" >&6; } 4039else 4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4041$as_echo "no" >&6; } 4042fi 4043 4044 4045fi 4046if test -z "$ac_cv_prog_CC"; then 4047 ac_ct_CC=$CC 4048 # Extract the first word of "gcc", so it can be a program name with args. 4049set dummy gcc; ac_word=$2 4050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4051$as_echo_n "checking for $ac_word... " >&6; } 4052if ${ac_cv_prog_ac_ct_CC+:} false; then : 4053 $as_echo_n "(cached) " >&6 4054else 4055 if test -n "$ac_ct_CC"; then 4056 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4057else 4058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4059for as_dir in $PATH 4060do 4061 IFS=$as_save_IFS 4062 test -z "$as_dir" && as_dir=. 4063 for ac_exec_ext in '' $ac_executable_extensions; do 4064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4065 ac_cv_prog_ac_ct_CC="gcc" 4066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4067 break 2 4068 fi 4069done 4070 done 4071IFS=$as_save_IFS 4072 4073fi 4074fi 4075ac_ct_CC=$ac_cv_prog_ac_ct_CC 4076if test -n "$ac_ct_CC"; then 4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4078$as_echo "$ac_ct_CC" >&6; } 4079else 4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4081$as_echo "no" >&6; } 4082fi 4083 4084 if test "x$ac_ct_CC" = x; then 4085 CC="" 4086 else 4087 case $cross_compiling:$ac_tool_warned in 4088yes:) 4089{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4090$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4091ac_tool_warned=yes ;; 4092esac 4093 CC=$ac_ct_CC 4094 fi 4095else 4096 CC="$ac_cv_prog_CC" 4097fi 4098 4099if test -z "$CC"; then 4100 if test -n "$ac_tool_prefix"; then 4101 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4102set dummy ${ac_tool_prefix}cc; ac_word=$2 4103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4104$as_echo_n "checking for $ac_word... " >&6; } 4105if ${ac_cv_prog_CC+:} false; then : 4106 $as_echo_n "(cached) " >&6 4107else 4108 if test -n "$CC"; then 4109 ac_cv_prog_CC="$CC" # Let the user override the test. 4110else 4111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4112for as_dir in $PATH 4113do 4114 IFS=$as_save_IFS 4115 test -z "$as_dir" && as_dir=. 4116 for ac_exec_ext in '' $ac_executable_extensions; do 4117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4118 ac_cv_prog_CC="${ac_tool_prefix}cc" 4119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4120 break 2 4121 fi 4122done 4123 done 4124IFS=$as_save_IFS 4125 4126fi 4127fi 4128CC=$ac_cv_prog_CC 4129if test -n "$CC"; then 4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4131$as_echo "$CC" >&6; } 4132else 4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4134$as_echo "no" >&6; } 4135fi 4136 4137 4138 fi 4139fi 4140if test -z "$CC"; then 4141 # Extract the first word of "cc", so it can be a program name with args. 4142set dummy cc; ac_word=$2 4143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4144$as_echo_n "checking for $ac_word... " >&6; } 4145if ${ac_cv_prog_CC+:} false; then : 4146 $as_echo_n "(cached) " >&6 4147else 4148 if test -n "$CC"; then 4149 ac_cv_prog_CC="$CC" # Let the user override the test. 4150else 4151 ac_prog_rejected=no 4152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4153for as_dir in $PATH 4154do 4155 IFS=$as_save_IFS 4156 test -z "$as_dir" && as_dir=. 4157 for ac_exec_ext in '' $ac_executable_extensions; do 4158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4159 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4160 ac_prog_rejected=yes 4161 continue 4162 fi 4163 ac_cv_prog_CC="cc" 4164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4165 break 2 4166 fi 4167done 4168 done 4169IFS=$as_save_IFS 4170 4171if test $ac_prog_rejected = yes; then 4172 # We found a bogon in the path, so make sure we never use it. 4173 set dummy $ac_cv_prog_CC 4174 shift 4175 if test $# != 0; then 4176 # We chose a different compiler from the bogus one. 4177 # However, it has the same basename, so the bogon will be chosen 4178 # first if we set CC to just the basename; use the full file name. 4179 shift 4180 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4181 fi 4182fi 4183fi 4184fi 4185CC=$ac_cv_prog_CC 4186if test -n "$CC"; then 4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4188$as_echo "$CC" >&6; } 4189else 4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4191$as_echo "no" >&6; } 4192fi 4193 4194 4195fi 4196if test -z "$CC"; then 4197 if test -n "$ac_tool_prefix"; then 4198 for ac_prog in cl.exe 4199 do 4200 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4201set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4203$as_echo_n "checking for $ac_word... " >&6; } 4204if ${ac_cv_prog_CC+:} false; then : 4205 $as_echo_n "(cached) " >&6 4206else 4207 if test -n "$CC"; then 4208 ac_cv_prog_CC="$CC" # Let the user override the test. 4209else 4210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4211for as_dir in $PATH 4212do 4213 IFS=$as_save_IFS 4214 test -z "$as_dir" && as_dir=. 4215 for ac_exec_ext in '' $ac_executable_extensions; do 4216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4217 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4219 break 2 4220 fi 4221done 4222 done 4223IFS=$as_save_IFS 4224 4225fi 4226fi 4227CC=$ac_cv_prog_CC 4228if test -n "$CC"; then 4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4230$as_echo "$CC" >&6; } 4231else 4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4233$as_echo "no" >&6; } 4234fi 4235 4236 4237 test -n "$CC" && break 4238 done 4239fi 4240if test -z "$CC"; then 4241 ac_ct_CC=$CC 4242 for ac_prog in cl.exe 4243do 4244 # Extract the first word of "$ac_prog", so it can be a program name with args. 4245set dummy $ac_prog; ac_word=$2 4246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4247$as_echo_n "checking for $ac_word... " >&6; } 4248if ${ac_cv_prog_ac_ct_CC+:} false; then : 4249 $as_echo_n "(cached) " >&6 4250else 4251 if test -n "$ac_ct_CC"; then 4252 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4253else 4254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4255for as_dir in $PATH 4256do 4257 IFS=$as_save_IFS 4258 test -z "$as_dir" && as_dir=. 4259 for ac_exec_ext in '' $ac_executable_extensions; do 4260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4261 ac_cv_prog_ac_ct_CC="$ac_prog" 4262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4263 break 2 4264 fi 4265done 4266 done 4267IFS=$as_save_IFS 4268 4269fi 4270fi 4271ac_ct_CC=$ac_cv_prog_ac_ct_CC 4272if test -n "$ac_ct_CC"; then 4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4274$as_echo "$ac_ct_CC" >&6; } 4275else 4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4277$as_echo "no" >&6; } 4278fi 4279 4280 4281 test -n "$ac_ct_CC" && break 4282done 4283 4284 if test "x$ac_ct_CC" = x; then 4285 CC="" 4286 else 4287 case $cross_compiling:$ac_tool_warned in 4288yes:) 4289{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4290$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4291ac_tool_warned=yes ;; 4292esac 4293 CC=$ac_ct_CC 4294 fi 4295fi 4296 4297fi 4298 4299 4300test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4301$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4302as_fn_error $? "no acceptable C compiler found in \$PATH 4303See \`config.log' for more details" "$LINENO" 5; } 4304 4305# Provide some information about the compiler. 4306$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4307set X $ac_compile 4308ac_compiler=$2 4309for ac_option in --version -v -V -qversion; do 4310 { { ac_try="$ac_compiler $ac_option >&5" 4311case "(($ac_try" in 4312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4313 *) ac_try_echo=$ac_try;; 4314esac 4315eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4316$as_echo "$ac_try_echo"; } >&5 4317 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4318 ac_status=$? 4319 if test -s conftest.err; then 4320 sed '10a\ 4321... rest of stderr output deleted ... 4322 10q' conftest.err >conftest.er1 4323 cat conftest.er1 >&5 4324 fi 4325 rm -f conftest.er1 conftest.err 4326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4327 test $ac_status = 0; } 4328done 4329 4330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4331$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4332if ${ac_cv_c_compiler_gnu+:} false; then : 4333 $as_echo_n "(cached) " >&6 4334else 4335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4336/* end confdefs.h. */ 4337 4338int 4339main () 4340{ 4341#ifndef __GNUC__ 4342 choke me 4343#endif 4344 4345 ; 4346 return 0; 4347} 4348_ACEOF 4349if ac_fn_c_try_compile "$LINENO"; then : 4350 ac_compiler_gnu=yes 4351else 4352 ac_compiler_gnu=no 4353fi 4354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4355ac_cv_c_compiler_gnu=$ac_compiler_gnu 4356 4357fi 4358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4359$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4360if test $ac_compiler_gnu = yes; then 4361 GCC=yes 4362else 4363 GCC= 4364fi 4365ac_test_CFLAGS=${CFLAGS+set} 4366ac_save_CFLAGS=$CFLAGS 4367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4368$as_echo_n "checking whether $CC accepts -g... " >&6; } 4369if ${ac_cv_prog_cc_g+:} false; then : 4370 $as_echo_n "(cached) " >&6 4371else 4372 ac_save_c_werror_flag=$ac_c_werror_flag 4373 ac_c_werror_flag=yes 4374 ac_cv_prog_cc_g=no 4375 CFLAGS="-g" 4376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4377/* end confdefs.h. */ 4378 4379int 4380main () 4381{ 4382 4383 ; 4384 return 0; 4385} 4386_ACEOF 4387if ac_fn_c_try_compile "$LINENO"; then : 4388 ac_cv_prog_cc_g=yes 4389else 4390 CFLAGS="" 4391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4392/* end confdefs.h. */ 4393 4394int 4395main () 4396{ 4397 4398 ; 4399 return 0; 4400} 4401_ACEOF 4402if ac_fn_c_try_compile "$LINENO"; then : 4403 4404else 4405 ac_c_werror_flag=$ac_save_c_werror_flag 4406 CFLAGS="-g" 4407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4408/* end confdefs.h. */ 4409 4410int 4411main () 4412{ 4413 4414 ; 4415 return 0; 4416} 4417_ACEOF 4418if ac_fn_c_try_compile "$LINENO"; then : 4419 ac_cv_prog_cc_g=yes 4420fi 4421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4422fi 4423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4424fi 4425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4426 ac_c_werror_flag=$ac_save_c_werror_flag 4427fi 4428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4429$as_echo "$ac_cv_prog_cc_g" >&6; } 4430if test "$ac_test_CFLAGS" = set; then 4431 CFLAGS=$ac_save_CFLAGS 4432elif test $ac_cv_prog_cc_g = yes; then 4433 if test "$GCC" = yes; then 4434 CFLAGS="-g -O2" 4435 else 4436 CFLAGS="-g" 4437 fi 4438else 4439 if test "$GCC" = yes; then 4440 CFLAGS="-O2" 4441 else 4442 CFLAGS= 4443 fi 4444fi 4445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4446$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4447if ${ac_cv_prog_cc_c89+:} false; then : 4448 $as_echo_n "(cached) " >&6 4449else 4450 ac_cv_prog_cc_c89=no 4451ac_save_CC=$CC 4452cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4453/* end confdefs.h. */ 4454#include <stdarg.h> 4455#include <stdio.h> 4456struct stat; 4457/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4458struct buf { int x; }; 4459FILE * (*rcsopen) (struct buf *, struct stat *, int); 4460static char *e (p, i) 4461 char **p; 4462 int i; 4463{ 4464 return p[i]; 4465} 4466static char *f (char * (*g) (char **, int), char **p, ...) 4467{ 4468 char *s; 4469 va_list v; 4470 va_start (v,p); 4471 s = g (p, va_arg (v,int)); 4472 va_end (v); 4473 return s; 4474} 4475 4476/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4477 function prototypes and stuff, but not '\xHH' hex character constants. 4478 These don't provoke an error unfortunately, instead are silently treated 4479 as 'x'. The following induces an error, until -std is added to get 4480 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4481 array size at least. It's necessary to write '\x00'==0 to get something 4482 that's true only with -std. */ 4483int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4484 4485/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4486 inside strings and character constants. */ 4487#define FOO(x) 'x' 4488int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4489 4490int test (int i, double x); 4491struct s1 {int (*f) (int a);}; 4492struct s2 {int (*f) (double a);}; 4493int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4494int argc; 4495char **argv; 4496int 4497main () 4498{ 4499return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4500 ; 4501 return 0; 4502} 4503_ACEOF 4504for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4505 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4506do 4507 CC="$ac_save_CC $ac_arg" 4508 if ac_fn_c_try_compile "$LINENO"; then : 4509 ac_cv_prog_cc_c89=$ac_arg 4510fi 4511rm -f core conftest.err conftest.$ac_objext 4512 test "x$ac_cv_prog_cc_c89" != "xno" && break 4513done 4514rm -f conftest.$ac_ext 4515CC=$ac_save_CC 4516 4517fi 4518# AC_CACHE_VAL 4519case "x$ac_cv_prog_cc_c89" in 4520 x) 4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4522$as_echo "none needed" >&6; } ;; 4523 xno) 4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4525$as_echo "unsupported" >&6; } ;; 4526 *) 4527 CC="$CC $ac_cv_prog_cc_c89" 4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4529$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4530esac 4531if test "x$ac_cv_prog_cc_c89" != xno; then : 4532 4533fi 4534 4535ac_ext=c 4536ac_cpp='$CPP $CPPFLAGS' 4537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4539ac_compiler_gnu=$ac_cv_c_compiler_gnu 4540 4541ac_ext=c 4542ac_cpp='$CPP $CPPFLAGS' 4543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4545ac_compiler_gnu=$ac_cv_c_compiler_gnu 4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4547$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4548if ${am_cv_prog_cc_c_o+:} false; then : 4549 $as_echo_n "(cached) " >&6 4550else 4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4552/* end confdefs.h. */ 4553 4554int 4555main () 4556{ 4557 4558 ; 4559 return 0; 4560} 4561_ACEOF 4562 # Make sure it works both with $CC and with simple cc. 4563 # Following AC_PROG_CC_C_O, we do the test twice because some 4564 # compilers refuse to overwrite an existing .o file with -o, 4565 # though they will create one. 4566 am_cv_prog_cc_c_o=yes 4567 for am_i in 1 2; do 4568 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4569 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4570 ac_status=$? 4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4572 (exit $ac_status); } \ 4573 && test -f conftest2.$ac_objext; then 4574 : OK 4575 else 4576 am_cv_prog_cc_c_o=no 4577 break 4578 fi 4579 done 4580 rm -f core conftest* 4581 unset am_i 4582fi 4583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4584$as_echo "$am_cv_prog_cc_c_o" >&6; } 4585if test "$am_cv_prog_cc_c_o" != yes; then 4586 # Losing compiler, so override with the script. 4587 # FIXME: It is wrong to rewrite CC. 4588 # But if we don't then we get into trouble of one sort or another. 4589 # A longer-term fix would be to have automake use am__CC in this case, 4590 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4591 CC="$am_aux_dir/compile $CC" 4592fi 4593ac_ext=c 4594ac_cpp='$CPP $CPPFLAGS' 4595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4597ac_compiler_gnu=$ac_cv_c_compiler_gnu 4598 4599 4600depcc="$CC" am_compiler_list= 4601 4602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4603$as_echo_n "checking dependency style of $depcc... " >&6; } 4604if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4605 $as_echo_n "(cached) " >&6 4606else 4607 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4608 # We make a subdir and do the tests there. Otherwise we can end up 4609 # making bogus files that we don't know about and never remove. For 4610 # instance it was reported that on HP-UX the gcc test will end up 4611 # making a dummy file named 'D' -- because '-MD' means "put the output 4612 # in D". 4613 rm -rf conftest.dir 4614 mkdir conftest.dir 4615 # Copy depcomp to subdir because otherwise we won't find it if we're 4616 # using a relative directory. 4617 cp "$am_depcomp" conftest.dir 4618 cd conftest.dir 4619 # We will build objects and dependencies in a subdirectory because 4620 # it helps to detect inapplicable dependency modes. For instance 4621 # both Tru64's cc and ICC support -MD to output dependencies as a 4622 # side effect of compilation, but ICC will put the dependencies in 4623 # the current directory while Tru64 will put them in the object 4624 # directory. 4625 mkdir sub 4626 4627 am_cv_CC_dependencies_compiler_type=none 4628 if test "$am_compiler_list" = ""; then 4629 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4630 fi 4631 am__universal=false 4632 case " $depcc " in #( 4633 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4634 esac 4635 4636 for depmode in $am_compiler_list; do 4637 # Setup a source with many dependencies, because some compilers 4638 # like to wrap large dependency lists on column 80 (with \), and 4639 # we should not choose a depcomp mode which is confused by this. 4640 # 4641 # We need to recreate these files for each test, as the compiler may 4642 # overwrite some of them when testing with obscure command lines. 4643 # This happens at least with the AIX C compiler. 4644 : > sub/conftest.c 4645 for i in 1 2 3 4 5 6; do 4646 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4647 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4648 # Solaris 10 /bin/sh. 4649 echo '/* dummy */' > sub/conftst$i.h 4650 done 4651 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4652 4653 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4654 # mode. It turns out that the SunPro C++ compiler does not properly 4655 # handle '-M -o', and we need to detect this. Also, some Intel 4656 # versions had trouble with output in subdirs. 4657 am__obj=sub/conftest.${OBJEXT-o} 4658 am__minus_obj="-o $am__obj" 4659 case $depmode in 4660 gcc) 4661 # This depmode causes a compiler race in universal mode. 4662 test "$am__universal" = false || continue 4663 ;; 4664 nosideeffect) 4665 # After this tag, mechanisms are not by side-effect, so they'll 4666 # only be used when explicitly requested. 4667 if test "x$enable_dependency_tracking" = xyes; then 4668 continue 4669 else 4670 break 4671 fi 4672 ;; 4673 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4674 # This compiler won't grok '-c -o', but also, the minuso test has 4675 # not run yet. These depmodes are late enough in the game, and 4676 # so weak that their functioning should not be impacted. 4677 am__obj=conftest.${OBJEXT-o} 4678 am__minus_obj= 4679 ;; 4680 none) break ;; 4681 esac 4682 if depmode=$depmode \ 4683 source=sub/conftest.c object=$am__obj \ 4684 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4685 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4686 >/dev/null 2>conftest.err && 4687 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4688 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4689 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4690 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4691 # icc doesn't choke on unknown options, it will just issue warnings 4692 # or remarks (even with -Werror). So we grep stderr for any message 4693 # that says an option was ignored or not supported. 4694 # When given -MP, icc 7.0 and 7.1 complain thusly: 4695 # icc: Command line warning: ignoring option '-M'; no argument required 4696 # The diagnosis changed in icc 8.0: 4697 # icc: Command line remark: option '-MP' not supported 4698 if (grep 'ignoring option' conftest.err || 4699 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4700 am_cv_CC_dependencies_compiler_type=$depmode 4701 break 4702 fi 4703 fi 4704 done 4705 4706 cd .. 4707 rm -rf conftest.dir 4708else 4709 am_cv_CC_dependencies_compiler_type=none 4710fi 4711 4712fi 4713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4714$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4715CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4716 4717 if 4718 test "x$enable_dependency_tracking" != xno \ 4719 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4720 am__fastdepCC_TRUE= 4721 am__fastdepCC_FALSE='#' 4722else 4723 am__fastdepCC_TRUE='#' 4724 am__fastdepCC_FALSE= 4725fi 4726 4727 4728ac_ext=c 4729ac_cpp='$CPP $CPPFLAGS' 4730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4732ac_compiler_gnu=$ac_cv_c_compiler_gnu 4733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4734$as_echo_n "checking how to run the C preprocessor... " >&6; } 4735# On Suns, sometimes $CPP names a directory. 4736if test -n "$CPP" && test -d "$CPP"; then 4737 CPP= 4738fi 4739if test -z "$CPP"; then 4740 if ${ac_cv_prog_CPP+:} false; then : 4741 $as_echo_n "(cached) " >&6 4742else 4743 # Double quotes because CPP needs to be expanded 4744 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4745 do 4746 ac_preproc_ok=false 4747for ac_c_preproc_warn_flag in '' yes 4748do 4749 # Use a header file that comes with gcc, so configuring glibc 4750 # with a fresh cross-compiler works. 4751 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4752 # <limits.h> exists even on freestanding compilers. 4753 # On the NeXT, cc -E runs the code through the compiler's parser, 4754 # not just through cpp. "Syntax error" is here to catch this case. 4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4756/* end confdefs.h. */ 4757#ifdef __STDC__ 4758# include <limits.h> 4759#else 4760# include <assert.h> 4761#endif 4762 Syntax error 4763_ACEOF 4764if ac_fn_c_try_cpp "$LINENO"; then : 4765 4766else 4767 # Broken: fails on valid input. 4768continue 4769fi 4770rm -f conftest.err conftest.i conftest.$ac_ext 4771 4772 # OK, works on sane cases. Now check whether nonexistent headers 4773 # can be detected and how. 4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4775/* end confdefs.h. */ 4776#include <ac_nonexistent.h> 4777_ACEOF 4778if ac_fn_c_try_cpp "$LINENO"; then : 4779 # Broken: success on invalid input. 4780continue 4781else 4782 # Passes both tests. 4783ac_preproc_ok=: 4784break 4785fi 4786rm -f conftest.err conftest.i conftest.$ac_ext 4787 4788done 4789# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4790rm -f conftest.i conftest.err conftest.$ac_ext 4791if $ac_preproc_ok; then : 4792 break 4793fi 4794 4795 done 4796 ac_cv_prog_CPP=$CPP 4797 4798fi 4799 CPP=$ac_cv_prog_CPP 4800else 4801 ac_cv_prog_CPP=$CPP 4802fi 4803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4804$as_echo "$CPP" >&6; } 4805ac_preproc_ok=false 4806for ac_c_preproc_warn_flag in '' yes 4807do 4808 # Use a header file that comes with gcc, so configuring glibc 4809 # with a fresh cross-compiler works. 4810 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4811 # <limits.h> exists even on freestanding compilers. 4812 # On the NeXT, cc -E runs the code through the compiler's parser, 4813 # not just through cpp. "Syntax error" is here to catch this case. 4814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4815/* end confdefs.h. */ 4816#ifdef __STDC__ 4817# include <limits.h> 4818#else 4819# include <assert.h> 4820#endif 4821 Syntax error 4822_ACEOF 4823if ac_fn_c_try_cpp "$LINENO"; then : 4824 4825else 4826 # Broken: fails on valid input. 4827continue 4828fi 4829rm -f conftest.err conftest.i conftest.$ac_ext 4830 4831 # OK, works on sane cases. Now check whether nonexistent headers 4832 # can be detected and how. 4833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4834/* end confdefs.h. */ 4835#include <ac_nonexistent.h> 4836_ACEOF 4837if ac_fn_c_try_cpp "$LINENO"; then : 4838 # Broken: success on invalid input. 4839continue 4840else 4841 # Passes both tests. 4842ac_preproc_ok=: 4843break 4844fi 4845rm -f conftest.err conftest.i conftest.$ac_ext 4846 4847done 4848# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4849rm -f conftest.i conftest.err conftest.$ac_ext 4850if $ac_preproc_ok; then : 4851 4852else 4853 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4854$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4855as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4856See \`config.log' for more details" "$LINENO" 5; } 4857fi 4858 4859ac_ext=c 4860ac_cpp='$CPP $CPPFLAGS' 4861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4863ac_compiler_gnu=$ac_cv_c_compiler_gnu 4864 4865 4866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4867$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4868if ${ac_cv_path_GREP+:} false; then : 4869 $as_echo_n "(cached) " >&6 4870else 4871 if test -z "$GREP"; then 4872 ac_path_GREP_found=false 4873 # Loop through the user's path and test for each of PROGNAME-LIST 4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4875for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4876do 4877 IFS=$as_save_IFS 4878 test -z "$as_dir" && as_dir=. 4879 for ac_prog in grep ggrep; do 4880 for ac_exec_ext in '' $ac_executable_extensions; do 4881 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4882 as_fn_executable_p "$ac_path_GREP" || continue 4883# Check for GNU ac_path_GREP and select it if it is found. 4884 # Check for GNU $ac_path_GREP 4885case `"$ac_path_GREP" --version 2>&1` in 4886*GNU*) 4887 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4888*) 4889 ac_count=0 4890 $as_echo_n 0123456789 >"conftest.in" 4891 while : 4892 do 4893 cat "conftest.in" "conftest.in" >"conftest.tmp" 4894 mv "conftest.tmp" "conftest.in" 4895 cp "conftest.in" "conftest.nl" 4896 $as_echo 'GREP' >> "conftest.nl" 4897 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4898 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4899 as_fn_arith $ac_count + 1 && ac_count=$as_val 4900 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4901 # Best one so far, save it but keep looking for a better one 4902 ac_cv_path_GREP="$ac_path_GREP" 4903 ac_path_GREP_max=$ac_count 4904 fi 4905 # 10*(2^10) chars as input seems more than enough 4906 test $ac_count -gt 10 && break 4907 done 4908 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4909esac 4910 4911 $ac_path_GREP_found && break 3 4912 done 4913 done 4914 done 4915IFS=$as_save_IFS 4916 if test -z "$ac_cv_path_GREP"; then 4917 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4918 fi 4919else 4920 ac_cv_path_GREP=$GREP 4921fi 4922 4923fi 4924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4925$as_echo "$ac_cv_path_GREP" >&6; } 4926 GREP="$ac_cv_path_GREP" 4927 4928 4929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4930$as_echo_n "checking for egrep... " >&6; } 4931if ${ac_cv_path_EGREP+:} false; then : 4932 $as_echo_n "(cached) " >&6 4933else 4934 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4935 then ac_cv_path_EGREP="$GREP -E" 4936 else 4937 if test -z "$EGREP"; then 4938 ac_path_EGREP_found=false 4939 # Loop through the user's path and test for each of PROGNAME-LIST 4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4941for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4942do 4943 IFS=$as_save_IFS 4944 test -z "$as_dir" && as_dir=. 4945 for ac_prog in egrep; do 4946 for ac_exec_ext in '' $ac_executable_extensions; do 4947 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4948 as_fn_executable_p "$ac_path_EGREP" || continue 4949# Check for GNU ac_path_EGREP and select it if it is found. 4950 # Check for GNU $ac_path_EGREP 4951case `"$ac_path_EGREP" --version 2>&1` in 4952*GNU*) 4953 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4954*) 4955 ac_count=0 4956 $as_echo_n 0123456789 >"conftest.in" 4957 while : 4958 do 4959 cat "conftest.in" "conftest.in" >"conftest.tmp" 4960 mv "conftest.tmp" "conftest.in" 4961 cp "conftest.in" "conftest.nl" 4962 $as_echo 'EGREP' >> "conftest.nl" 4963 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4964 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4965 as_fn_arith $ac_count + 1 && ac_count=$as_val 4966 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4967 # Best one so far, save it but keep looking for a better one 4968 ac_cv_path_EGREP="$ac_path_EGREP" 4969 ac_path_EGREP_max=$ac_count 4970 fi 4971 # 10*(2^10) chars as input seems more than enough 4972 test $ac_count -gt 10 && break 4973 done 4974 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4975esac 4976 4977 $ac_path_EGREP_found && break 3 4978 done 4979 done 4980 done 4981IFS=$as_save_IFS 4982 if test -z "$ac_cv_path_EGREP"; then 4983 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4984 fi 4985else 4986 ac_cv_path_EGREP=$EGREP 4987fi 4988 4989 fi 4990fi 4991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4992$as_echo "$ac_cv_path_EGREP" >&6; } 4993 EGREP="$ac_cv_path_EGREP" 4994 4995 4996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4997$as_echo_n "checking for ANSI C header files... " >&6; } 4998if ${ac_cv_header_stdc+:} false; then : 4999 $as_echo_n "(cached) " >&6 5000else 5001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5002/* end confdefs.h. */ 5003#include <stdlib.h> 5004#include <stdarg.h> 5005#include <string.h> 5006#include <float.h> 5007 5008int 5009main () 5010{ 5011 5012 ; 5013 return 0; 5014} 5015_ACEOF 5016if ac_fn_c_try_compile "$LINENO"; then : 5017 ac_cv_header_stdc=yes 5018else 5019 ac_cv_header_stdc=no 5020fi 5021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5022 5023if test $ac_cv_header_stdc = yes; then 5024 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5026/* end confdefs.h. */ 5027#include <string.h> 5028 5029_ACEOF 5030if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5031 $EGREP "memchr" >/dev/null 2>&1; then : 5032 5033else 5034 ac_cv_header_stdc=no 5035fi 5036rm -f conftest* 5037 5038fi 5039 5040if test $ac_cv_header_stdc = yes; then 5041 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5043/* end confdefs.h. */ 5044#include <stdlib.h> 5045 5046_ACEOF 5047if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5048 $EGREP "free" >/dev/null 2>&1; then : 5049 5050else 5051 ac_cv_header_stdc=no 5052fi 5053rm -f conftest* 5054 5055fi 5056 5057if test $ac_cv_header_stdc = yes; then 5058 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5059 if test "$cross_compiling" = yes; then : 5060 : 5061else 5062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5063/* end confdefs.h. */ 5064#include <ctype.h> 5065#include <stdlib.h> 5066#if ((' ' & 0x0FF) == 0x020) 5067# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5068# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5069#else 5070# define ISLOWER(c) \ 5071 (('a' <= (c) && (c) <= 'i') \ 5072 || ('j' <= (c) && (c) <= 'r') \ 5073 || ('s' <= (c) && (c) <= 'z')) 5074# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5075#endif 5076 5077#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5078int 5079main () 5080{ 5081 int i; 5082 for (i = 0; i < 256; i++) 5083 if (XOR (islower (i), ISLOWER (i)) 5084 || toupper (i) != TOUPPER (i)) 5085 return 2; 5086 return 0; 5087} 5088_ACEOF 5089if ac_fn_c_try_run "$LINENO"; then : 5090 5091else 5092 ac_cv_header_stdc=no 5093fi 5094rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5095 conftest.$ac_objext conftest.beam conftest.$ac_ext 5096fi 5097 5098fi 5099fi 5100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5101$as_echo "$ac_cv_header_stdc" >&6; } 5102if test $ac_cv_header_stdc = yes; then 5103 5104$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5105 5106fi 5107 5108case `pwd` in 5109 *\ * | *\ *) 5110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5111$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5112esac 5113 5114 5115 5116macro_version='2.4.6' 5117macro_revision='2.4.6' 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131ltmain=$ac_aux_dir/ltmain.sh 5132 5133# Make sure we can run config.sub. 5134$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5135 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5136 5137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5138$as_echo_n "checking build system type... " >&6; } 5139if ${ac_cv_build+:} false; then : 5140 $as_echo_n "(cached) " >&6 5141else 5142 ac_build_alias=$build_alias 5143test "x$ac_build_alias" = x && 5144 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5145test "x$ac_build_alias" = x && 5146 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5147ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5148 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5149 5150fi 5151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5152$as_echo "$ac_cv_build" >&6; } 5153case $ac_cv_build in 5154*-*-*) ;; 5155*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5156esac 5157build=$ac_cv_build 5158ac_save_IFS=$IFS; IFS='-' 5159set x $ac_cv_build 5160shift 5161build_cpu=$1 5162build_vendor=$2 5163shift; shift 5164# Remember, the first character of IFS is used to create $*, 5165# except with old shells: 5166build_os=$* 5167IFS=$ac_save_IFS 5168case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5169 5170 5171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5172$as_echo_n "checking host system type... " >&6; } 5173if ${ac_cv_host+:} false; then : 5174 $as_echo_n "(cached) " >&6 5175else 5176 if test "x$host_alias" = x; then 5177 ac_cv_host=$ac_cv_build 5178else 5179 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5180 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5181fi 5182 5183fi 5184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5185$as_echo "$ac_cv_host" >&6; } 5186case $ac_cv_host in 5187*-*-*) ;; 5188*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5189esac 5190host=$ac_cv_host 5191ac_save_IFS=$IFS; IFS='-' 5192set x $ac_cv_host 5193shift 5194host_cpu=$1 5195host_vendor=$2 5196shift; shift 5197# Remember, the first character of IFS is used to create $*, 5198# except with old shells: 5199host_os=$* 5200IFS=$ac_save_IFS 5201case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5202 5203 5204# Backslashify metacharacters that are still active within 5205# double-quoted strings. 5206sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5207 5208# Same as above, but do not quote variable references. 5209double_quote_subst='s/\(["`\\]\)/\\\1/g' 5210 5211# Sed substitution to delay expansion of an escaped shell variable in a 5212# double_quote_subst'ed string. 5213delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5214 5215# Sed substitution to delay expansion of an escaped single quote. 5216delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5217 5218# Sed substitution to avoid accidental globbing in evaled expressions 5219no_glob_subst='s/\*/\\\*/g' 5220 5221ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5222ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5223ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5224 5225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5226$as_echo_n "checking how to print strings... " >&6; } 5227# Test print first, because it will be a builtin if present. 5228if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5229 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5230 ECHO='print -r --' 5231elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5232 ECHO='printf %s\n' 5233else 5234 # Use this function as a fallback that always works. 5235 func_fallback_echo () 5236 { 5237 eval 'cat <<_LTECHO_EOF 5238$1 5239_LTECHO_EOF' 5240 } 5241 ECHO='func_fallback_echo' 5242fi 5243 5244# func_echo_all arg... 5245# Invoke $ECHO with all args, space-separated. 5246func_echo_all () 5247{ 5248 $ECHO "" 5249} 5250 5251case $ECHO in 5252 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5253$as_echo "printf" >&6; } ;; 5254 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5255$as_echo "print -r" >&6; } ;; 5256 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5257$as_echo "cat" >&6; } ;; 5258esac 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5274$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5275if ${ac_cv_path_SED+:} false; then : 5276 $as_echo_n "(cached) " >&6 5277else 5278 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5279 for ac_i in 1 2 3 4 5 6 7; do 5280 ac_script="$ac_script$as_nl$ac_script" 5281 done 5282 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5283 { ac_script=; unset ac_script;} 5284 if test -z "$SED"; then 5285 ac_path_SED_found=false 5286 # Loop through the user's path and test for each of PROGNAME-LIST 5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5288for as_dir in $PATH 5289do 5290 IFS=$as_save_IFS 5291 test -z "$as_dir" && as_dir=. 5292 for ac_prog in sed gsed; do 5293 for ac_exec_ext in '' $ac_executable_extensions; do 5294 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5295 as_fn_executable_p "$ac_path_SED" || continue 5296# Check for GNU ac_path_SED and select it if it is found. 5297 # Check for GNU $ac_path_SED 5298case `"$ac_path_SED" --version 2>&1` in 5299*GNU*) 5300 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5301*) 5302 ac_count=0 5303 $as_echo_n 0123456789 >"conftest.in" 5304 while : 5305 do 5306 cat "conftest.in" "conftest.in" >"conftest.tmp" 5307 mv "conftest.tmp" "conftest.in" 5308 cp "conftest.in" "conftest.nl" 5309 $as_echo '' >> "conftest.nl" 5310 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5311 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5312 as_fn_arith $ac_count + 1 && ac_count=$as_val 5313 if test $ac_count -gt ${ac_path_SED_max-0}; then 5314 # Best one so far, save it but keep looking for a better one 5315 ac_cv_path_SED="$ac_path_SED" 5316 ac_path_SED_max=$ac_count 5317 fi 5318 # 10*(2^10) chars as input seems more than enough 5319 test $ac_count -gt 10 && break 5320 done 5321 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5322esac 5323 5324 $ac_path_SED_found && break 3 5325 done 5326 done 5327 done 5328IFS=$as_save_IFS 5329 if test -z "$ac_cv_path_SED"; then 5330 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5331 fi 5332else 5333 ac_cv_path_SED=$SED 5334fi 5335 5336fi 5337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5338$as_echo "$ac_cv_path_SED" >&6; } 5339 SED="$ac_cv_path_SED" 5340 rm -f conftest.sed 5341 5342test -z "$SED" && SED=sed 5343Xsed="$SED -e 1s/^X//" 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5356$as_echo_n "checking for fgrep... " >&6; } 5357if ${ac_cv_path_FGREP+:} false; then : 5358 $as_echo_n "(cached) " >&6 5359else 5360 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5361 then ac_cv_path_FGREP="$GREP -F" 5362 else 5363 if test -z "$FGREP"; then 5364 ac_path_FGREP_found=false 5365 # Loop through the user's path and test for each of PROGNAME-LIST 5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5367for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5368do 5369 IFS=$as_save_IFS 5370 test -z "$as_dir" && as_dir=. 5371 for ac_prog in fgrep; do 5372 for ac_exec_ext in '' $ac_executable_extensions; do 5373 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5374 as_fn_executable_p "$ac_path_FGREP" || continue 5375# Check for GNU ac_path_FGREP and select it if it is found. 5376 # Check for GNU $ac_path_FGREP 5377case `"$ac_path_FGREP" --version 2>&1` in 5378*GNU*) 5379 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5380*) 5381 ac_count=0 5382 $as_echo_n 0123456789 >"conftest.in" 5383 while : 5384 do 5385 cat "conftest.in" "conftest.in" >"conftest.tmp" 5386 mv "conftest.tmp" "conftest.in" 5387 cp "conftest.in" "conftest.nl" 5388 $as_echo 'FGREP' >> "conftest.nl" 5389 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5390 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5391 as_fn_arith $ac_count + 1 && ac_count=$as_val 5392 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5393 # Best one so far, save it but keep looking for a better one 5394 ac_cv_path_FGREP="$ac_path_FGREP" 5395 ac_path_FGREP_max=$ac_count 5396 fi 5397 # 10*(2^10) chars as input seems more than enough 5398 test $ac_count -gt 10 && break 5399 done 5400 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5401esac 5402 5403 $ac_path_FGREP_found && break 3 5404 done 5405 done 5406 done 5407IFS=$as_save_IFS 5408 if test -z "$ac_cv_path_FGREP"; then 5409 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5410 fi 5411else 5412 ac_cv_path_FGREP=$FGREP 5413fi 5414 5415 fi 5416fi 5417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5418$as_echo "$ac_cv_path_FGREP" >&6; } 5419 FGREP="$ac_cv_path_FGREP" 5420 5421 5422test -z "$GREP" && GREP=grep 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442# Check whether --with-gnu-ld was given. 5443if test "${with_gnu_ld+set}" = set; then : 5444 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5445else 5446 with_gnu_ld=no 5447fi 5448 5449ac_prog=ld 5450if test yes = "$GCC"; then 5451 # Check if gcc -print-prog-name=ld gives a path. 5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5453$as_echo_n "checking for ld used by $CC... " >&6; } 5454 case $host in 5455 *-*-mingw*) 5456 # gcc leaves a trailing carriage return, which upsets mingw 5457 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5458 *) 5459 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5460 esac 5461 case $ac_prog in 5462 # Accept absolute paths. 5463 [\\/]* | ?:[\\/]*) 5464 re_direlt='/[^/][^/]*/\.\./' 5465 # Canonicalize the pathname of ld 5466 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5467 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5468 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5469 done 5470 test -z "$LD" && LD=$ac_prog 5471 ;; 5472 "") 5473 # If it fails, then pretend we aren't using GCC. 5474 ac_prog=ld 5475 ;; 5476 *) 5477 # If it is relative, then search for the first ld in PATH. 5478 with_gnu_ld=unknown 5479 ;; 5480 esac 5481elif test yes = "$with_gnu_ld"; then 5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5483$as_echo_n "checking for GNU ld... " >&6; } 5484else 5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5486$as_echo_n "checking for non-GNU ld... " >&6; } 5487fi 5488if ${lt_cv_path_LD+:} false; then : 5489 $as_echo_n "(cached) " >&6 5490else 5491 if test -z "$LD"; then 5492 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5493 for ac_dir in $PATH; do 5494 IFS=$lt_save_ifs 5495 test -z "$ac_dir" && ac_dir=. 5496 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5497 lt_cv_path_LD=$ac_dir/$ac_prog 5498 # Check to see if the program is GNU ld. I'd rather use --version, 5499 # but apparently some variants of GNU ld only accept -v. 5500 # Break only if it was the GNU/non-GNU ld that we prefer. 5501 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5502 *GNU* | *'with BFD'*) 5503 test no != "$with_gnu_ld" && break 5504 ;; 5505 *) 5506 test yes != "$with_gnu_ld" && break 5507 ;; 5508 esac 5509 fi 5510 done 5511 IFS=$lt_save_ifs 5512else 5513 lt_cv_path_LD=$LD # Let the user override the test with a path. 5514fi 5515fi 5516 5517LD=$lt_cv_path_LD 5518if test -n "$LD"; then 5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5520$as_echo "$LD" >&6; } 5521else 5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5523$as_echo "no" >&6; } 5524fi 5525test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5527$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5528if ${lt_cv_prog_gnu_ld+:} false; then : 5529 $as_echo_n "(cached) " >&6 5530else 5531 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5532case `$LD -v 2>&1 </dev/null` in 5533*GNU* | *'with BFD'*) 5534 lt_cv_prog_gnu_ld=yes 5535 ;; 5536*) 5537 lt_cv_prog_gnu_ld=no 5538 ;; 5539esac 5540fi 5541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5542$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5543with_gnu_ld=$lt_cv_prog_gnu_ld 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5554$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5555if ${lt_cv_path_NM+:} false; then : 5556 $as_echo_n "(cached) " >&6 5557else 5558 if test -n "$NM"; then 5559 # Let the user override the test. 5560 lt_cv_path_NM=$NM 5561else 5562 lt_nm_to_check=${ac_tool_prefix}nm 5563 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5564 lt_nm_to_check="$lt_nm_to_check nm" 5565 fi 5566 for lt_tmp_nm in $lt_nm_to_check; do 5567 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5568 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5569 IFS=$lt_save_ifs 5570 test -z "$ac_dir" && ac_dir=. 5571 tmp_nm=$ac_dir/$lt_tmp_nm 5572 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5573 # Check to see if the nm accepts a BSD-compat flag. 5574 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5575 # nm: unknown option "B" ignored 5576 # Tru64's nm complains that /dev/null is an invalid object file 5577 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5578 case $build_os in 5579 mingw*) lt_bad_file=conftest.nm/nofile ;; 5580 *) lt_bad_file=/dev/null ;; 5581 esac 5582 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5583 *$lt_bad_file* | *'Invalid file or object type'*) 5584 lt_cv_path_NM="$tmp_nm -B" 5585 break 2 5586 ;; 5587 *) 5588 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5589 */dev/null*) 5590 lt_cv_path_NM="$tmp_nm -p" 5591 break 2 5592 ;; 5593 *) 5594 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5595 continue # so that we can try to find one that supports BSD flags 5596 ;; 5597 esac 5598 ;; 5599 esac 5600 fi 5601 done 5602 IFS=$lt_save_ifs 5603 done 5604 : ${lt_cv_path_NM=no} 5605fi 5606fi 5607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5608$as_echo "$lt_cv_path_NM" >&6; } 5609if test no != "$lt_cv_path_NM"; then 5610 NM=$lt_cv_path_NM 5611else 5612 # Didn't find any BSD compatible name lister, look for dumpbin. 5613 if test -n "$DUMPBIN"; then : 5614 # Let the user override the test. 5615 else 5616 if test -n "$ac_tool_prefix"; then 5617 for ac_prog in dumpbin "link -dump" 5618 do 5619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5620set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5622$as_echo_n "checking for $ac_word... " >&6; } 5623if ${ac_cv_prog_DUMPBIN+:} false; then : 5624 $as_echo_n "(cached) " >&6 5625else 5626 if test -n "$DUMPBIN"; then 5627 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5628else 5629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5630for as_dir in $PATH 5631do 5632 IFS=$as_save_IFS 5633 test -z "$as_dir" && as_dir=. 5634 for ac_exec_ext in '' $ac_executable_extensions; do 5635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5636 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5638 break 2 5639 fi 5640done 5641 done 5642IFS=$as_save_IFS 5643 5644fi 5645fi 5646DUMPBIN=$ac_cv_prog_DUMPBIN 5647if test -n "$DUMPBIN"; then 5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5649$as_echo "$DUMPBIN" >&6; } 5650else 5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5652$as_echo "no" >&6; } 5653fi 5654 5655 5656 test -n "$DUMPBIN" && break 5657 done 5658fi 5659if test -z "$DUMPBIN"; then 5660 ac_ct_DUMPBIN=$DUMPBIN 5661 for ac_prog in dumpbin "link -dump" 5662do 5663 # Extract the first word of "$ac_prog", so it can be a program name with args. 5664set dummy $ac_prog; ac_word=$2 5665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5666$as_echo_n "checking for $ac_word... " >&6; } 5667if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5668 $as_echo_n "(cached) " >&6 5669else 5670 if test -n "$ac_ct_DUMPBIN"; then 5671 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5672else 5673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5674for as_dir in $PATH 5675do 5676 IFS=$as_save_IFS 5677 test -z "$as_dir" && as_dir=. 5678 for ac_exec_ext in '' $ac_executable_extensions; do 5679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5680 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5682 break 2 5683 fi 5684done 5685 done 5686IFS=$as_save_IFS 5687 5688fi 5689fi 5690ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5691if test -n "$ac_ct_DUMPBIN"; then 5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5693$as_echo "$ac_ct_DUMPBIN" >&6; } 5694else 5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5696$as_echo "no" >&6; } 5697fi 5698 5699 5700 test -n "$ac_ct_DUMPBIN" && break 5701done 5702 5703 if test "x$ac_ct_DUMPBIN" = x; then 5704 DUMPBIN=":" 5705 else 5706 case $cross_compiling:$ac_tool_warned in 5707yes:) 5708{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5709$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5710ac_tool_warned=yes ;; 5711esac 5712 DUMPBIN=$ac_ct_DUMPBIN 5713 fi 5714fi 5715 5716 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5717 *COFF*) 5718 DUMPBIN="$DUMPBIN -symbols -headers" 5719 ;; 5720 *) 5721 DUMPBIN=: 5722 ;; 5723 esac 5724 fi 5725 5726 if test : != "$DUMPBIN"; then 5727 NM=$DUMPBIN 5728 fi 5729fi 5730test -z "$NM" && NM=nm 5731 5732 5733 5734 5735 5736 5737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5738$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5739if ${lt_cv_nm_interface+:} false; then : 5740 $as_echo_n "(cached) " >&6 5741else 5742 lt_cv_nm_interface="BSD nm" 5743 echo "int some_variable = 0;" > conftest.$ac_ext 5744 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5745 (eval "$ac_compile" 2>conftest.err) 5746 cat conftest.err >&5 5747 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5748 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5749 cat conftest.err >&5 5750 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5751 cat conftest.out >&5 5752 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5753 lt_cv_nm_interface="MS dumpbin" 5754 fi 5755 rm -f conftest* 5756fi 5757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5758$as_echo "$lt_cv_nm_interface" >&6; } 5759 5760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5761$as_echo_n "checking whether ln -s works... " >&6; } 5762LN_S=$as_ln_s 5763if test "$LN_S" = "ln -s"; then 5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5765$as_echo "yes" >&6; } 5766else 5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5768$as_echo "no, using $LN_S" >&6; } 5769fi 5770 5771# find the maximum length of command line arguments 5772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5773$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5774if ${lt_cv_sys_max_cmd_len+:} false; then : 5775 $as_echo_n "(cached) " >&6 5776else 5777 i=0 5778 teststring=ABCD 5779 5780 case $build_os in 5781 msdosdjgpp*) 5782 # On DJGPP, this test can blow up pretty badly due to problems in libc 5783 # (any single argument exceeding 2000 bytes causes a buffer overrun 5784 # during glob expansion). Even if it were fixed, the result of this 5785 # check would be larger than it should be. 5786 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5787 ;; 5788 5789 gnu*) 5790 # Under GNU Hurd, this test is not required because there is 5791 # no limit to the length of command line arguments. 5792 # Libtool will interpret -1 as no limit whatsoever 5793 lt_cv_sys_max_cmd_len=-1; 5794 ;; 5795 5796 cygwin* | mingw* | cegcc*) 5797 # On Win9x/ME, this test blows up -- it succeeds, but takes 5798 # about 5 minutes as the teststring grows exponentially. 5799 # Worse, since 9x/ME are not pre-emptively multitasking, 5800 # you end up with a "frozen" computer, even though with patience 5801 # the test eventually succeeds (with a max line length of 256k). 5802 # Instead, let's just punt: use the minimum linelength reported by 5803 # all of the supported platforms: 8192 (on NT/2K/XP). 5804 lt_cv_sys_max_cmd_len=8192; 5805 ;; 5806 5807 mint*) 5808 # On MiNT this can take a long time and run out of memory. 5809 lt_cv_sys_max_cmd_len=8192; 5810 ;; 5811 5812 amigaos*) 5813 # On AmigaOS with pdksh, this test takes hours, literally. 5814 # So we just punt and use a minimum line length of 8192. 5815 lt_cv_sys_max_cmd_len=8192; 5816 ;; 5817 5818 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5819 # This has been around since 386BSD, at least. Likely further. 5820 if test -x /sbin/sysctl; then 5821 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5822 elif test -x /usr/sbin/sysctl; then 5823 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5824 else 5825 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5826 fi 5827 # And add a safety zone 5828 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5829 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5830 ;; 5831 5832 interix*) 5833 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5834 lt_cv_sys_max_cmd_len=196608 5835 ;; 5836 5837 os2*) 5838 # The test takes a long time on OS/2. 5839 lt_cv_sys_max_cmd_len=8192 5840 ;; 5841 5842 osf*) 5843 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5844 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5845 # nice to cause kernel panics so lets avoid the loop below. 5846 # First set a reasonable default. 5847 lt_cv_sys_max_cmd_len=16384 5848 # 5849 if test -x /sbin/sysconfig; then 5850 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5851 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5852 esac 5853 fi 5854 ;; 5855 sco3.2v5*) 5856 lt_cv_sys_max_cmd_len=102400 5857 ;; 5858 sysv5* | sco5v6* | sysv4.2uw2*) 5859 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5860 if test -n "$kargmax"; then 5861 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5862 else 5863 lt_cv_sys_max_cmd_len=32768 5864 fi 5865 ;; 5866 *) 5867 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5868 if test -n "$lt_cv_sys_max_cmd_len" && \ 5869 test undefined != "$lt_cv_sys_max_cmd_len"; then 5870 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5871 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5872 else 5873 # Make teststring a little bigger before we do anything with it. 5874 # a 1K string should be a reasonable start. 5875 for i in 1 2 3 4 5 6 7 8; do 5876 teststring=$teststring$teststring 5877 done 5878 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5879 # If test is not a shell built-in, we'll probably end up computing a 5880 # maximum length that is only half of the actual maximum length, but 5881 # we can't tell. 5882 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5883 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5884 test 17 != "$i" # 1/2 MB should be enough 5885 do 5886 i=`expr $i + 1` 5887 teststring=$teststring$teststring 5888 done 5889 # Only check the string length outside the loop. 5890 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5891 teststring= 5892 # Add a significant safety factor because C++ compilers can tack on 5893 # massive amounts of additional arguments before passing them to the 5894 # linker. It appears as though 1/2 is a usable value. 5895 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5896 fi 5897 ;; 5898 esac 5899 5900fi 5901 5902if test -n "$lt_cv_sys_max_cmd_len"; then 5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5904$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5905else 5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5907$as_echo "none" >&6; } 5908fi 5909max_cmd_len=$lt_cv_sys_max_cmd_len 5910 5911 5912 5913 5914 5915 5916: ${CP="cp -f"} 5917: ${MV="mv -f"} 5918: ${RM="rm -f"} 5919 5920if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5921 lt_unset=unset 5922else 5923 lt_unset=false 5924fi 5925 5926 5927 5928 5929 5930# test EBCDIC or ASCII 5931case `echo X|tr X '\101'` in 5932 A) # ASCII based system 5933 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5934 lt_SP2NL='tr \040 \012' 5935 lt_NL2SP='tr \015\012 \040\040' 5936 ;; 5937 *) # EBCDIC based system 5938 lt_SP2NL='tr \100 \n' 5939 lt_NL2SP='tr \r\n \100\100' 5940 ;; 5941esac 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5952$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5953if ${lt_cv_to_host_file_cmd+:} false; then : 5954 $as_echo_n "(cached) " >&6 5955else 5956 case $host in 5957 *-*-mingw* ) 5958 case $build in 5959 *-*-mingw* ) # actually msys 5960 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5961 ;; 5962 *-*-cygwin* ) 5963 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5964 ;; 5965 * ) # otherwise, assume *nix 5966 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5967 ;; 5968 esac 5969 ;; 5970 *-*-cygwin* ) 5971 case $build in 5972 *-*-mingw* ) # actually msys 5973 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5974 ;; 5975 *-*-cygwin* ) 5976 lt_cv_to_host_file_cmd=func_convert_file_noop 5977 ;; 5978 * ) # otherwise, assume *nix 5979 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5980 ;; 5981 esac 5982 ;; 5983 * ) # unhandled hosts (and "normal" native builds) 5984 lt_cv_to_host_file_cmd=func_convert_file_noop 5985 ;; 5986esac 5987 5988fi 5989 5990to_host_file_cmd=$lt_cv_to_host_file_cmd 5991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5992$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5993 5994 5995 5996 5997 5998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5999$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6000if ${lt_cv_to_tool_file_cmd+:} false; then : 6001 $as_echo_n "(cached) " >&6 6002else 6003 #assume ordinary cross tools, or native build. 6004lt_cv_to_tool_file_cmd=func_convert_file_noop 6005case $host in 6006 *-*-mingw* ) 6007 case $build in 6008 *-*-mingw* ) # actually msys 6009 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6010 ;; 6011 esac 6012 ;; 6013esac 6014 6015fi 6016 6017to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6019$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6020 6021 6022 6023 6024 6025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6026$as_echo_n "checking for $LD option to reload object files... " >&6; } 6027if ${lt_cv_ld_reload_flag+:} false; then : 6028 $as_echo_n "(cached) " >&6 6029else 6030 lt_cv_ld_reload_flag='-r' 6031fi 6032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6033$as_echo "$lt_cv_ld_reload_flag" >&6; } 6034reload_flag=$lt_cv_ld_reload_flag 6035case $reload_flag in 6036"" | " "*) ;; 6037*) reload_flag=" $reload_flag" ;; 6038esac 6039reload_cmds='$LD$reload_flag -o $output$reload_objs' 6040case $host_os in 6041 cygwin* | mingw* | pw32* | cegcc*) 6042 if test yes != "$GCC"; then 6043 reload_cmds=false 6044 fi 6045 ;; 6046 darwin*) 6047 if test yes = "$GCC"; then 6048 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6049 else 6050 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6051 fi 6052 ;; 6053esac 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063if test -n "$ac_tool_prefix"; then 6064 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6065set dummy ${ac_tool_prefix}objdump; ac_word=$2 6066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6067$as_echo_n "checking for $ac_word... " >&6; } 6068if ${ac_cv_prog_OBJDUMP+:} false; then : 6069 $as_echo_n "(cached) " >&6 6070else 6071 if test -n "$OBJDUMP"; then 6072 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6073else 6074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6075for as_dir in $PATH 6076do 6077 IFS=$as_save_IFS 6078 test -z "$as_dir" && as_dir=. 6079 for ac_exec_ext in '' $ac_executable_extensions; do 6080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6081 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6083 break 2 6084 fi 6085done 6086 done 6087IFS=$as_save_IFS 6088 6089fi 6090fi 6091OBJDUMP=$ac_cv_prog_OBJDUMP 6092if test -n "$OBJDUMP"; then 6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6094$as_echo "$OBJDUMP" >&6; } 6095else 6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6097$as_echo "no" >&6; } 6098fi 6099 6100 6101fi 6102if test -z "$ac_cv_prog_OBJDUMP"; then 6103 ac_ct_OBJDUMP=$OBJDUMP 6104 # Extract the first word of "objdump", so it can be a program name with args. 6105set dummy objdump; ac_word=$2 6106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6107$as_echo_n "checking for $ac_word... " >&6; } 6108if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6109 $as_echo_n "(cached) " >&6 6110else 6111 if test -n "$ac_ct_OBJDUMP"; then 6112 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6113else 6114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6115for as_dir in $PATH 6116do 6117 IFS=$as_save_IFS 6118 test -z "$as_dir" && as_dir=. 6119 for ac_exec_ext in '' $ac_executable_extensions; do 6120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6121 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6123 break 2 6124 fi 6125done 6126 done 6127IFS=$as_save_IFS 6128 6129fi 6130fi 6131ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6132if test -n "$ac_ct_OBJDUMP"; then 6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6134$as_echo "$ac_ct_OBJDUMP" >&6; } 6135else 6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6137$as_echo "no" >&6; } 6138fi 6139 6140 if test "x$ac_ct_OBJDUMP" = x; then 6141 OBJDUMP="false" 6142 else 6143 case $cross_compiling:$ac_tool_warned in 6144yes:) 6145{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6146$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6147ac_tool_warned=yes ;; 6148esac 6149 OBJDUMP=$ac_ct_OBJDUMP 6150 fi 6151else 6152 OBJDUMP="$ac_cv_prog_OBJDUMP" 6153fi 6154 6155test -z "$OBJDUMP" && OBJDUMP=objdump 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6166$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6167if ${lt_cv_deplibs_check_method+:} false; then : 6168 $as_echo_n "(cached) " >&6 6169else 6170 lt_cv_file_magic_cmd='$MAGIC_CMD' 6171lt_cv_file_magic_test_file= 6172lt_cv_deplibs_check_method='unknown' 6173# Need to set the preceding variable on all platforms that support 6174# interlibrary dependencies. 6175# 'none' -- dependencies not supported. 6176# 'unknown' -- same as none, but documents that we really don't know. 6177# 'pass_all' -- all dependencies passed with no checks. 6178# 'test_compile' -- check by making test program. 6179# 'file_magic [[regex]]' -- check by looking for files in library path 6180# that responds to the $file_magic_cmd with a given extended regex. 6181# If you have 'file' or equivalent on your system and you're not sure 6182# whether 'pass_all' will *always* work, you probably want this one. 6183 6184case $host_os in 6185aix[4-9]*) 6186 lt_cv_deplibs_check_method=pass_all 6187 ;; 6188 6189beos*) 6190 lt_cv_deplibs_check_method=pass_all 6191 ;; 6192 6193bsdi[45]*) 6194 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6195 lt_cv_file_magic_cmd='/usr/bin/file -L' 6196 lt_cv_file_magic_test_file=/shlib/libc.so 6197 ;; 6198 6199cygwin*) 6200 # func_win32_libid is a shell function defined in ltmain.sh 6201 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6202 lt_cv_file_magic_cmd='func_win32_libid' 6203 ;; 6204 6205mingw* | pw32*) 6206 # Base MSYS/MinGW do not provide the 'file' command needed by 6207 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6208 # unless we find 'file', for example because we are cross-compiling. 6209 if ( file / ) >/dev/null 2>&1; then 6210 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6211 lt_cv_file_magic_cmd='func_win32_libid' 6212 else 6213 # Keep this pattern in sync with the one in func_win32_libid. 6214 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6215 lt_cv_file_magic_cmd='$OBJDUMP -f' 6216 fi 6217 ;; 6218 6219cegcc*) 6220 # use the weaker test based on 'objdump'. See mingw*. 6221 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6222 lt_cv_file_magic_cmd='$OBJDUMP -f' 6223 ;; 6224 6225darwin* | rhapsody*) 6226 lt_cv_deplibs_check_method=pass_all 6227 ;; 6228 6229freebsd* | dragonfly*) 6230 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6231 case $host_cpu in 6232 i*86 ) 6233 # Not sure whether the presence of OpenBSD here was a mistake. 6234 # Let's accept both of them until this is cleared up. 6235 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6236 lt_cv_file_magic_cmd=/usr/bin/file 6237 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6238 ;; 6239 esac 6240 else 6241 lt_cv_deplibs_check_method=pass_all 6242 fi 6243 ;; 6244 6245haiku*) 6246 lt_cv_deplibs_check_method=pass_all 6247 ;; 6248 6249hpux10.20* | hpux11*) 6250 lt_cv_file_magic_cmd=/usr/bin/file 6251 case $host_cpu in 6252 ia64*) 6253 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6254 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6255 ;; 6256 hppa*64*) 6257 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]' 6258 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6259 ;; 6260 *) 6261 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6262 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6263 ;; 6264 esac 6265 ;; 6266 6267interix[3-9]*) 6268 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6269 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6270 ;; 6271 6272irix5* | irix6* | nonstopux*) 6273 case $LD in 6274 *-32|*"-32 ") libmagic=32-bit;; 6275 *-n32|*"-n32 ") libmagic=N32;; 6276 *-64|*"-64 ") libmagic=64-bit;; 6277 *) libmagic=never-match;; 6278 esac 6279 lt_cv_deplibs_check_method=pass_all 6280 ;; 6281 6282# This must be glibc/ELF. 6283linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6284 lt_cv_deplibs_check_method=pass_all 6285 ;; 6286 6287netbsd* | netbsdelf*-gnu) 6288 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6289 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6290 else 6291 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6292 fi 6293 ;; 6294 6295newos6*) 6296 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6297 lt_cv_file_magic_cmd=/usr/bin/file 6298 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6299 ;; 6300 6301*nto* | *qnx*) 6302 lt_cv_deplibs_check_method=pass_all 6303 ;; 6304 6305openbsd* | bitrig*) 6306 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6307 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6308 else 6309 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6310 fi 6311 ;; 6312 6313osf3* | osf4* | osf5*) 6314 lt_cv_deplibs_check_method=pass_all 6315 ;; 6316 6317rdos*) 6318 lt_cv_deplibs_check_method=pass_all 6319 ;; 6320 6321solaris*) 6322 lt_cv_deplibs_check_method=pass_all 6323 ;; 6324 6325sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6326 lt_cv_deplibs_check_method=pass_all 6327 ;; 6328 6329sysv4 | sysv4.3*) 6330 case $host_vendor in 6331 motorola) 6332 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]' 6333 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6334 ;; 6335 ncr) 6336 lt_cv_deplibs_check_method=pass_all 6337 ;; 6338 sequent) 6339 lt_cv_file_magic_cmd='/bin/file' 6340 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6341 ;; 6342 sni) 6343 lt_cv_file_magic_cmd='/bin/file' 6344 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6345 lt_cv_file_magic_test_file=/lib/libc.so 6346 ;; 6347 siemens) 6348 lt_cv_deplibs_check_method=pass_all 6349 ;; 6350 pc) 6351 lt_cv_deplibs_check_method=pass_all 6352 ;; 6353 esac 6354 ;; 6355 6356tpf*) 6357 lt_cv_deplibs_check_method=pass_all 6358 ;; 6359os2*) 6360 lt_cv_deplibs_check_method=pass_all 6361 ;; 6362esac 6363 6364fi 6365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6366$as_echo "$lt_cv_deplibs_check_method" >&6; } 6367 6368file_magic_glob= 6369want_nocaseglob=no 6370if test "$build" = "$host"; then 6371 case $host_os in 6372 mingw* | pw32*) 6373 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6374 want_nocaseglob=yes 6375 else 6376 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6377 fi 6378 ;; 6379 esac 6380fi 6381 6382file_magic_cmd=$lt_cv_file_magic_cmd 6383deplibs_check_method=$lt_cv_deplibs_check_method 6384test -z "$deplibs_check_method" && deplibs_check_method=unknown 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407if test -n "$ac_tool_prefix"; then 6408 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6409set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6411$as_echo_n "checking for $ac_word... " >&6; } 6412if ${ac_cv_prog_DLLTOOL+:} false; then : 6413 $as_echo_n "(cached) " >&6 6414else 6415 if test -n "$DLLTOOL"; then 6416 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6417else 6418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6419for as_dir in $PATH 6420do 6421 IFS=$as_save_IFS 6422 test -z "$as_dir" && as_dir=. 6423 for ac_exec_ext in '' $ac_executable_extensions; do 6424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6425 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6427 break 2 6428 fi 6429done 6430 done 6431IFS=$as_save_IFS 6432 6433fi 6434fi 6435DLLTOOL=$ac_cv_prog_DLLTOOL 6436if test -n "$DLLTOOL"; then 6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6438$as_echo "$DLLTOOL" >&6; } 6439else 6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6441$as_echo "no" >&6; } 6442fi 6443 6444 6445fi 6446if test -z "$ac_cv_prog_DLLTOOL"; then 6447 ac_ct_DLLTOOL=$DLLTOOL 6448 # Extract the first word of "dlltool", so it can be a program name with args. 6449set dummy dlltool; ac_word=$2 6450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6451$as_echo_n "checking for $ac_word... " >&6; } 6452if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6453 $as_echo_n "(cached) " >&6 6454else 6455 if test -n "$ac_ct_DLLTOOL"; then 6456 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6457else 6458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6459for as_dir in $PATH 6460do 6461 IFS=$as_save_IFS 6462 test -z "$as_dir" && as_dir=. 6463 for ac_exec_ext in '' $ac_executable_extensions; do 6464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6465 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6467 break 2 6468 fi 6469done 6470 done 6471IFS=$as_save_IFS 6472 6473fi 6474fi 6475ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6476if test -n "$ac_ct_DLLTOOL"; then 6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6478$as_echo "$ac_ct_DLLTOOL" >&6; } 6479else 6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6481$as_echo "no" >&6; } 6482fi 6483 6484 if test "x$ac_ct_DLLTOOL" = x; then 6485 DLLTOOL="false" 6486 else 6487 case $cross_compiling:$ac_tool_warned in 6488yes:) 6489{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6490$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6491ac_tool_warned=yes ;; 6492esac 6493 DLLTOOL=$ac_ct_DLLTOOL 6494 fi 6495else 6496 DLLTOOL="$ac_cv_prog_DLLTOOL" 6497fi 6498 6499test -z "$DLLTOOL" && DLLTOOL=dlltool 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6511$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6512if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6513 $as_echo_n "(cached) " >&6 6514else 6515 lt_cv_sharedlib_from_linklib_cmd='unknown' 6516 6517case $host_os in 6518cygwin* | mingw* | pw32* | cegcc*) 6519 # two different shell functions defined in ltmain.sh; 6520 # decide which one to use based on capabilities of $DLLTOOL 6521 case `$DLLTOOL --help 2>&1` in 6522 *--identify-strict*) 6523 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6524 ;; 6525 *) 6526 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6527 ;; 6528 esac 6529 ;; 6530*) 6531 # fallback: assume linklib IS sharedlib 6532 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6533 ;; 6534esac 6535 6536fi 6537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6538$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6539sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6540test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6541 6542 6543 6544 6545 6546 6547 6548if test -n "$ac_tool_prefix"; then 6549 for ac_prog in ar 6550 do 6551 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6552set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6554$as_echo_n "checking for $ac_word... " >&6; } 6555if ${ac_cv_prog_AR+:} false; then : 6556 $as_echo_n "(cached) " >&6 6557else 6558 if test -n "$AR"; then 6559 ac_cv_prog_AR="$AR" # Let the user override the test. 6560else 6561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6562for as_dir in $PATH 6563do 6564 IFS=$as_save_IFS 6565 test -z "$as_dir" && as_dir=. 6566 for ac_exec_ext in '' $ac_executable_extensions; do 6567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6568 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6570 break 2 6571 fi 6572done 6573 done 6574IFS=$as_save_IFS 6575 6576fi 6577fi 6578AR=$ac_cv_prog_AR 6579if test -n "$AR"; then 6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6581$as_echo "$AR" >&6; } 6582else 6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6584$as_echo "no" >&6; } 6585fi 6586 6587 6588 test -n "$AR" && break 6589 done 6590fi 6591if test -z "$AR"; then 6592 ac_ct_AR=$AR 6593 for ac_prog in ar 6594do 6595 # Extract the first word of "$ac_prog", so it can be a program name with args. 6596set dummy $ac_prog; ac_word=$2 6597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6598$as_echo_n "checking for $ac_word... " >&6; } 6599if ${ac_cv_prog_ac_ct_AR+:} false; then : 6600 $as_echo_n "(cached) " >&6 6601else 6602 if test -n "$ac_ct_AR"; then 6603 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6604else 6605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6606for as_dir in $PATH 6607do 6608 IFS=$as_save_IFS 6609 test -z "$as_dir" && as_dir=. 6610 for ac_exec_ext in '' $ac_executable_extensions; do 6611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6612 ac_cv_prog_ac_ct_AR="$ac_prog" 6613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6614 break 2 6615 fi 6616done 6617 done 6618IFS=$as_save_IFS 6619 6620fi 6621fi 6622ac_ct_AR=$ac_cv_prog_ac_ct_AR 6623if test -n "$ac_ct_AR"; then 6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6625$as_echo "$ac_ct_AR" >&6; } 6626else 6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6628$as_echo "no" >&6; } 6629fi 6630 6631 6632 test -n "$ac_ct_AR" && break 6633done 6634 6635 if test "x$ac_ct_AR" = x; then 6636 AR="false" 6637 else 6638 case $cross_compiling:$ac_tool_warned in 6639yes:) 6640{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6641$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6642ac_tool_warned=yes ;; 6643esac 6644 AR=$ac_ct_AR 6645 fi 6646fi 6647 6648: ${AR=ar} 6649: ${AR_FLAGS=cru} 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6662$as_echo_n "checking for archiver @FILE support... " >&6; } 6663if ${lt_cv_ar_at_file+:} false; then : 6664 $as_echo_n "(cached) " >&6 6665else 6666 lt_cv_ar_at_file=no 6667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6668/* end confdefs.h. */ 6669 6670int 6671main () 6672{ 6673 6674 ; 6675 return 0; 6676} 6677_ACEOF 6678if ac_fn_c_try_compile "$LINENO"; then : 6679 echo conftest.$ac_objext > conftest.lst 6680 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6681 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6682 (eval $lt_ar_try) 2>&5 6683 ac_status=$? 6684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6685 test $ac_status = 0; } 6686 if test 0 -eq "$ac_status"; then 6687 # Ensure the archiver fails upon bogus file names. 6688 rm -f conftest.$ac_objext libconftest.a 6689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6690 (eval $lt_ar_try) 2>&5 6691 ac_status=$? 6692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6693 test $ac_status = 0; } 6694 if test 0 -ne "$ac_status"; then 6695 lt_cv_ar_at_file=@ 6696 fi 6697 fi 6698 rm -f conftest.* libconftest.a 6699 6700fi 6701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6702 6703fi 6704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6705$as_echo "$lt_cv_ar_at_file" >&6; } 6706 6707if test no = "$lt_cv_ar_at_file"; then 6708 archiver_list_spec= 6709else 6710 archiver_list_spec=$lt_cv_ar_at_file 6711fi 6712 6713 6714 6715 6716 6717 6718 6719if test -n "$ac_tool_prefix"; then 6720 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6721set dummy ${ac_tool_prefix}strip; ac_word=$2 6722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6723$as_echo_n "checking for $ac_word... " >&6; } 6724if ${ac_cv_prog_STRIP+:} false; then : 6725 $as_echo_n "(cached) " >&6 6726else 6727 if test -n "$STRIP"; then 6728 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6729else 6730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6731for as_dir in $PATH 6732do 6733 IFS=$as_save_IFS 6734 test -z "$as_dir" && as_dir=. 6735 for ac_exec_ext in '' $ac_executable_extensions; do 6736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6737 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6739 break 2 6740 fi 6741done 6742 done 6743IFS=$as_save_IFS 6744 6745fi 6746fi 6747STRIP=$ac_cv_prog_STRIP 6748if test -n "$STRIP"; then 6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6750$as_echo "$STRIP" >&6; } 6751else 6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6753$as_echo "no" >&6; } 6754fi 6755 6756 6757fi 6758if test -z "$ac_cv_prog_STRIP"; then 6759 ac_ct_STRIP=$STRIP 6760 # Extract the first word of "strip", so it can be a program name with args. 6761set dummy strip; ac_word=$2 6762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6763$as_echo_n "checking for $ac_word... " >&6; } 6764if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6765 $as_echo_n "(cached) " >&6 6766else 6767 if test -n "$ac_ct_STRIP"; then 6768 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6769else 6770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6771for as_dir in $PATH 6772do 6773 IFS=$as_save_IFS 6774 test -z "$as_dir" && as_dir=. 6775 for ac_exec_ext in '' $ac_executable_extensions; do 6776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6777 ac_cv_prog_ac_ct_STRIP="strip" 6778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6779 break 2 6780 fi 6781done 6782 done 6783IFS=$as_save_IFS 6784 6785fi 6786fi 6787ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6788if test -n "$ac_ct_STRIP"; then 6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6790$as_echo "$ac_ct_STRIP" >&6; } 6791else 6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6793$as_echo "no" >&6; } 6794fi 6795 6796 if test "x$ac_ct_STRIP" = x; then 6797 STRIP=":" 6798 else 6799 case $cross_compiling:$ac_tool_warned in 6800yes:) 6801{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6802$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6803ac_tool_warned=yes ;; 6804esac 6805 STRIP=$ac_ct_STRIP 6806 fi 6807else 6808 STRIP="$ac_cv_prog_STRIP" 6809fi 6810 6811test -z "$STRIP" && STRIP=: 6812 6813 6814 6815 6816 6817 6818if test -n "$ac_tool_prefix"; then 6819 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6820set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6822$as_echo_n "checking for $ac_word... " >&6; } 6823if ${ac_cv_prog_RANLIB+:} false; then : 6824 $as_echo_n "(cached) " >&6 6825else 6826 if test -n "$RANLIB"; then 6827 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6828else 6829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6830for as_dir in $PATH 6831do 6832 IFS=$as_save_IFS 6833 test -z "$as_dir" && as_dir=. 6834 for ac_exec_ext in '' $ac_executable_extensions; do 6835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6836 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6838 break 2 6839 fi 6840done 6841 done 6842IFS=$as_save_IFS 6843 6844fi 6845fi 6846RANLIB=$ac_cv_prog_RANLIB 6847if test -n "$RANLIB"; then 6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6849$as_echo "$RANLIB" >&6; } 6850else 6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6852$as_echo "no" >&6; } 6853fi 6854 6855 6856fi 6857if test -z "$ac_cv_prog_RANLIB"; then 6858 ac_ct_RANLIB=$RANLIB 6859 # Extract the first word of "ranlib", so it can be a program name with args. 6860set dummy ranlib; ac_word=$2 6861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6862$as_echo_n "checking for $ac_word... " >&6; } 6863if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6864 $as_echo_n "(cached) " >&6 6865else 6866 if test -n "$ac_ct_RANLIB"; then 6867 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6868else 6869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6870for as_dir in $PATH 6871do 6872 IFS=$as_save_IFS 6873 test -z "$as_dir" && as_dir=. 6874 for ac_exec_ext in '' $ac_executable_extensions; do 6875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6876 ac_cv_prog_ac_ct_RANLIB="ranlib" 6877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6878 break 2 6879 fi 6880done 6881 done 6882IFS=$as_save_IFS 6883 6884fi 6885fi 6886ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6887if test -n "$ac_ct_RANLIB"; then 6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6889$as_echo "$ac_ct_RANLIB" >&6; } 6890else 6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6892$as_echo "no" >&6; } 6893fi 6894 6895 if test "x$ac_ct_RANLIB" = x; then 6896 RANLIB=":" 6897 else 6898 case $cross_compiling:$ac_tool_warned in 6899yes:) 6900{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6901$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6902ac_tool_warned=yes ;; 6903esac 6904 RANLIB=$ac_ct_RANLIB 6905 fi 6906else 6907 RANLIB="$ac_cv_prog_RANLIB" 6908fi 6909 6910test -z "$RANLIB" && RANLIB=: 6911 6912 6913 6914 6915 6916 6917# Determine commands to create old-style static archives. 6918old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6919old_postinstall_cmds='chmod 644 $oldlib' 6920old_postuninstall_cmds= 6921 6922if test -n "$RANLIB"; then 6923 case $host_os in 6924 bitrig* | openbsd*) 6925 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6926 ;; 6927 *) 6928 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6929 ;; 6930 esac 6931 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6932fi 6933 6934case $host_os in 6935 darwin*) 6936 lock_old_archive_extraction=yes ;; 6937 *) 6938 lock_old_archive_extraction=no ;; 6939esac 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979# If no C compiler was specified, use CC. 6980LTCC=${LTCC-"$CC"} 6981 6982# If no C compiler flags were specified, use CFLAGS. 6983LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6984 6985# Allow CC to be a program name with arguments. 6986compiler=$CC 6987 6988 6989# Check for command to grab the raw symbol name followed by C symbol from nm. 6990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6991$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6992if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6993 $as_echo_n "(cached) " >&6 6994else 6995 6996# These are sane defaults that work on at least a few old systems. 6997# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6998 6999# Character class describing NM global symbol codes. 7000symcode='[BCDEGRST]' 7001 7002# Regexp to match symbols that can be accessed directly from C. 7003sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7004 7005# Define system-specific variables. 7006case $host_os in 7007aix*) 7008 symcode='[BCDT]' 7009 ;; 7010cygwin* | mingw* | pw32* | cegcc*) 7011 symcode='[ABCDGISTW]' 7012 ;; 7013hpux*) 7014 if test ia64 = "$host_cpu"; then 7015 symcode='[ABCDEGRST]' 7016 fi 7017 ;; 7018irix* | nonstopux*) 7019 symcode='[BCDEGRST]' 7020 ;; 7021osf*) 7022 symcode='[BCDEGQRST]' 7023 ;; 7024solaris*) 7025 symcode='[BDRT]' 7026 ;; 7027sco3.2v5*) 7028 symcode='[DT]' 7029 ;; 7030sysv4.2uw2*) 7031 symcode='[DT]' 7032 ;; 7033sysv5* | sco5v6* | unixware* | OpenUNIX*) 7034 symcode='[ABDT]' 7035 ;; 7036sysv4) 7037 symcode='[DFNSTU]' 7038 ;; 7039esac 7040 7041# If we're using GNU nm, then use its standard symbol codes. 7042case `$NM -V 2>&1` in 7043*GNU* | *'with BFD'*) 7044 symcode='[ABCDGIRSTW]' ;; 7045esac 7046 7047if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7048 # Gets list of data symbols to import. 7049 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7050 # Adjust the below global symbol transforms to fixup imported variables. 7051 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7052 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7053 lt_c_name_lib_hook="\ 7054 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7055 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7056else 7057 # Disable hooks by default. 7058 lt_cv_sys_global_symbol_to_import= 7059 lt_cdecl_hook= 7060 lt_c_name_hook= 7061 lt_c_name_lib_hook= 7062fi 7063 7064# Transform an extracted symbol line into a proper C declaration. 7065# Some systems (esp. on ia64) link data and code symbols differently, 7066# so use this general approach. 7067lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7068$lt_cdecl_hook\ 7069" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7070" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7071 7072# Transform an extracted symbol line into symbol name and symbol address 7073lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7074$lt_c_name_hook\ 7075" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7076" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7077 7078# Transform an extracted symbol line into symbol name with lib prefix and 7079# symbol address. 7080lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7081$lt_c_name_lib_hook\ 7082" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7083" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7084" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7085 7086# Handle CRLF in mingw tool chain 7087opt_cr= 7088case $build_os in 7089mingw*) 7090 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7091 ;; 7092esac 7093 7094# Try without a prefix underscore, then with it. 7095for ac_symprfx in "" "_"; do 7096 7097 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7098 symxfrm="\\1 $ac_symprfx\\2 \\2" 7099 7100 # Write the raw and C identifiers. 7101 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7102 # Fake it for dumpbin and say T for any non-static function, 7103 # D for any global variable and I for any imported variable. 7104 # Also find C++ and __fastcall symbols from MSVC++, 7105 # which start with @ or ?. 7106 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7107" {last_section=section; section=\$ 3};"\ 7108" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7109" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7110" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7111" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7112" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7113" \$ 0!~/External *\|/{next};"\ 7114" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7115" {if(hide[section]) next};"\ 7116" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7117" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7118" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7119" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7120" ' prfx=^$ac_symprfx" 7121 else 7122 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7123 fi 7124 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7125 7126 # Check to see that the pipe works correctly. 7127 pipe_works=no 7128 7129 rm -f conftest* 7130 cat > conftest.$ac_ext <<_LT_EOF 7131#ifdef __cplusplus 7132extern "C" { 7133#endif 7134char nm_test_var; 7135void nm_test_func(void); 7136void nm_test_func(void){} 7137#ifdef __cplusplus 7138} 7139#endif 7140int main(){nm_test_var='a';nm_test_func();return(0);} 7141_LT_EOF 7142 7143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7144 (eval $ac_compile) 2>&5 7145 ac_status=$? 7146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7147 test $ac_status = 0; }; then 7148 # Now try to grab the symbols. 7149 nlist=conftest.nm 7150 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 7151 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 7152 # Try sorting and uniquifying the output. 7153 if sort "$nlist" | uniq > "$nlist"T; then 7154 mv -f "$nlist"T "$nlist" 7155 else 7156 rm -f "$nlist"T 7157 fi 7158 7159 # Make sure that we snagged all the symbols we need. 7160 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7161 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7162 cat <<_LT_EOF > conftest.$ac_ext 7163/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7164#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7165/* DATA imports from DLLs on WIN32 can't be const, because runtime 7166 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7167# define LT_DLSYM_CONST 7168#elif defined __osf__ 7169/* This system does not cope well with relocations in const data. */ 7170# define LT_DLSYM_CONST 7171#else 7172# define LT_DLSYM_CONST const 7173#endif 7174 7175#ifdef __cplusplus 7176extern "C" { 7177#endif 7178 7179_LT_EOF 7180 # Now generate the symbol file. 7181 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7182 7183 cat <<_LT_EOF >> conftest.$ac_ext 7184 7185/* The mapping between symbol names and symbols. */ 7186LT_DLSYM_CONST struct { 7187 const char *name; 7188 void *address; 7189} 7190lt__PROGRAM__LTX_preloaded_symbols[] = 7191{ 7192 { "@PROGRAM@", (void *) 0 }, 7193_LT_EOF 7194 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7195 cat <<\_LT_EOF >> conftest.$ac_ext 7196 {0, (void *) 0} 7197}; 7198 7199/* This works around a problem in FreeBSD linker */ 7200#ifdef FREEBSD_WORKAROUND 7201static const void *lt_preloaded_setup() { 7202 return lt__PROGRAM__LTX_preloaded_symbols; 7203} 7204#endif 7205 7206#ifdef __cplusplus 7207} 7208#endif 7209_LT_EOF 7210 # Now try linking the two files. 7211 mv conftest.$ac_objext conftstm.$ac_objext 7212 lt_globsym_save_LIBS=$LIBS 7213 lt_globsym_save_CFLAGS=$CFLAGS 7214 LIBS=conftstm.$ac_objext 7215 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7217 (eval $ac_link) 2>&5 7218 ac_status=$? 7219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7220 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7221 pipe_works=yes 7222 fi 7223 LIBS=$lt_globsym_save_LIBS 7224 CFLAGS=$lt_globsym_save_CFLAGS 7225 else 7226 echo "cannot find nm_test_func in $nlist" >&5 7227 fi 7228 else 7229 echo "cannot find nm_test_var in $nlist" >&5 7230 fi 7231 else 7232 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7233 fi 7234 else 7235 echo "$progname: failed program was:" >&5 7236 cat conftest.$ac_ext >&5 7237 fi 7238 rm -rf conftest* conftst* 7239 7240 # Do not use the global_symbol_pipe unless it works. 7241 if test yes = "$pipe_works"; then 7242 break 7243 else 7244 lt_cv_sys_global_symbol_pipe= 7245 fi 7246done 7247 7248fi 7249 7250if test -z "$lt_cv_sys_global_symbol_pipe"; then 7251 lt_cv_sys_global_symbol_to_cdecl= 7252fi 7253if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7255$as_echo "failed" >&6; } 7256else 7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7258$as_echo "ok" >&6; } 7259fi 7260 7261# Response file support. 7262if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7263 nm_file_list_spec='@' 7264elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7265 nm_file_list_spec='@' 7266fi 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7305$as_echo_n "checking for sysroot... " >&6; } 7306 7307# Check whether --with-sysroot was given. 7308if test "${with_sysroot+set}" = set; then : 7309 withval=$with_sysroot; 7310else 7311 with_sysroot=no 7312fi 7313 7314 7315lt_sysroot= 7316case $with_sysroot in #( 7317 yes) 7318 if test yes = "$GCC"; then 7319 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7320 fi 7321 ;; #( 7322 /*) 7323 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7324 ;; #( 7325 no|'') 7326 ;; #( 7327 *) 7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7329$as_echo "$with_sysroot" >&6; } 7330 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7331 ;; 7332esac 7333 7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7335$as_echo "${lt_sysroot:-no}" >&6; } 7336 7337 7338 7339 7340 7341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7342$as_echo_n "checking for a working dd... " >&6; } 7343if ${ac_cv_path_lt_DD+:} false; then : 7344 $as_echo_n "(cached) " >&6 7345else 7346 printf 0123456789abcdef0123456789abcdef >conftest.i 7347cat conftest.i conftest.i >conftest2.i 7348: ${lt_DD:=$DD} 7349if test -z "$lt_DD"; then 7350 ac_path_lt_DD_found=false 7351 # Loop through the user's path and test for each of PROGNAME-LIST 7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7353for as_dir in $PATH 7354do 7355 IFS=$as_save_IFS 7356 test -z "$as_dir" && as_dir=. 7357 for ac_prog in dd; do 7358 for ac_exec_ext in '' $ac_executable_extensions; do 7359 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7360 as_fn_executable_p "$ac_path_lt_DD" || continue 7361if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7362 cmp -s conftest.i conftest.out \ 7363 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7364fi 7365 $ac_path_lt_DD_found && break 3 7366 done 7367 done 7368 done 7369IFS=$as_save_IFS 7370 if test -z "$ac_cv_path_lt_DD"; then 7371 : 7372 fi 7373else 7374 ac_cv_path_lt_DD=$lt_DD 7375fi 7376 7377rm -f conftest.i conftest2.i conftest.out 7378fi 7379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7380$as_echo "$ac_cv_path_lt_DD" >&6; } 7381 7382 7383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7384$as_echo_n "checking how to truncate binary pipes... " >&6; } 7385if ${lt_cv_truncate_bin+:} false; then : 7386 $as_echo_n "(cached) " >&6 7387else 7388 printf 0123456789abcdef0123456789abcdef >conftest.i 7389cat conftest.i conftest.i >conftest2.i 7390lt_cv_truncate_bin= 7391if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7392 cmp -s conftest.i conftest.out \ 7393 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7394fi 7395rm -f conftest.i conftest2.i conftest.out 7396test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7397fi 7398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7399$as_echo "$lt_cv_truncate_bin" >&6; } 7400 7401 7402 7403 7404 7405 7406 7407# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7408func_cc_basename () 7409{ 7410 for cc_temp in $*""; do 7411 case $cc_temp in 7412 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7413 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7414 \-*) ;; 7415 *) break;; 7416 esac 7417 done 7418 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7419} 7420 7421# Check whether --enable-libtool-lock was given. 7422if test "${enable_libtool_lock+set}" = set; then : 7423 enableval=$enable_libtool_lock; 7424fi 7425 7426test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7427 7428# Some flags need to be propagated to the compiler or linker for good 7429# libtool support. 7430case $host in 7431ia64-*-hpux*) 7432 # Find out what ABI is being produced by ac_compile, and set mode 7433 # options accordingly. 7434 echo 'int i;' > conftest.$ac_ext 7435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7436 (eval $ac_compile) 2>&5 7437 ac_status=$? 7438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7439 test $ac_status = 0; }; then 7440 case `/usr/bin/file conftest.$ac_objext` in 7441 *ELF-32*) 7442 HPUX_IA64_MODE=32 7443 ;; 7444 *ELF-64*) 7445 HPUX_IA64_MODE=64 7446 ;; 7447 esac 7448 fi 7449 rm -rf conftest* 7450 ;; 7451*-*-irix6*) 7452 # Find out what ABI is being produced by ac_compile, and set linker 7453 # options accordingly. 7454 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7456 (eval $ac_compile) 2>&5 7457 ac_status=$? 7458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7459 test $ac_status = 0; }; then 7460 if test yes = "$lt_cv_prog_gnu_ld"; then 7461 case `/usr/bin/file conftest.$ac_objext` in 7462 *32-bit*) 7463 LD="${LD-ld} -melf32bsmip" 7464 ;; 7465 *N32*) 7466 LD="${LD-ld} -melf32bmipn32" 7467 ;; 7468 *64-bit*) 7469 LD="${LD-ld} -melf64bmip" 7470 ;; 7471 esac 7472 else 7473 case `/usr/bin/file conftest.$ac_objext` in 7474 *32-bit*) 7475 LD="${LD-ld} -32" 7476 ;; 7477 *N32*) 7478 LD="${LD-ld} -n32" 7479 ;; 7480 *64-bit*) 7481 LD="${LD-ld} -64" 7482 ;; 7483 esac 7484 fi 7485 fi 7486 rm -rf conftest* 7487 ;; 7488 7489mips64*-*linux*) 7490 # Find out what ABI is being produced by ac_compile, and set linker 7491 # options accordingly. 7492 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7494 (eval $ac_compile) 2>&5 7495 ac_status=$? 7496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7497 test $ac_status = 0; }; then 7498 emul=elf 7499 case `/usr/bin/file conftest.$ac_objext` in 7500 *32-bit*) 7501 emul="${emul}32" 7502 ;; 7503 *64-bit*) 7504 emul="${emul}64" 7505 ;; 7506 esac 7507 case `/usr/bin/file conftest.$ac_objext` in 7508 *MSB*) 7509 emul="${emul}btsmip" 7510 ;; 7511 *LSB*) 7512 emul="${emul}ltsmip" 7513 ;; 7514 esac 7515 case `/usr/bin/file conftest.$ac_objext` in 7516 *N32*) 7517 emul="${emul}n32" 7518 ;; 7519 esac 7520 LD="${LD-ld} -m $emul" 7521 fi 7522 rm -rf conftest* 7523 ;; 7524 7525x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7526s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7527 # Find out what ABI is being produced by ac_compile, and set linker 7528 # options accordingly. Note that the listed cases only cover the 7529 # situations where additional linker options are needed (such as when 7530 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7531 # vice versa); the common cases where no linker options are needed do 7532 # not appear in the list. 7533 echo 'int i;' > conftest.$ac_ext 7534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7535 (eval $ac_compile) 2>&5 7536 ac_status=$? 7537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7538 test $ac_status = 0; }; then 7539 case `/usr/bin/file conftest.o` in 7540 *32-bit*) 7541 case $host in 7542 x86_64-*kfreebsd*-gnu) 7543 LD="${LD-ld} -m elf_i386_fbsd" 7544 ;; 7545 x86_64-*linux*) 7546 case `/usr/bin/file conftest.o` in 7547 *x86-64*) 7548 LD="${LD-ld} -m elf32_x86_64" 7549 ;; 7550 *) 7551 LD="${LD-ld} -m elf_i386" 7552 ;; 7553 esac 7554 ;; 7555 powerpc64le-*linux*) 7556 LD="${LD-ld} -m elf32lppclinux" 7557 ;; 7558 powerpc64-*linux*) 7559 LD="${LD-ld} -m elf32ppclinux" 7560 ;; 7561 s390x-*linux*) 7562 LD="${LD-ld} -m elf_s390" 7563 ;; 7564 sparc64-*linux*) 7565 LD="${LD-ld} -m elf32_sparc" 7566 ;; 7567 esac 7568 ;; 7569 *64-bit*) 7570 case $host in 7571 x86_64-*kfreebsd*-gnu) 7572 LD="${LD-ld} -m elf_x86_64_fbsd" 7573 ;; 7574 x86_64-*linux*) 7575 LD="${LD-ld} -m elf_x86_64" 7576 ;; 7577 powerpcle-*linux*) 7578 LD="${LD-ld} -m elf64lppc" 7579 ;; 7580 powerpc-*linux*) 7581 LD="${LD-ld} -m elf64ppc" 7582 ;; 7583 s390*-*linux*|s390*-*tpf*) 7584 LD="${LD-ld} -m elf64_s390" 7585 ;; 7586 sparc*-*linux*) 7587 LD="${LD-ld} -m elf64_sparc" 7588 ;; 7589 esac 7590 ;; 7591 esac 7592 fi 7593 rm -rf conftest* 7594 ;; 7595 7596*-*-sco3.2v5*) 7597 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7598 SAVE_CFLAGS=$CFLAGS 7599 CFLAGS="$CFLAGS -belf" 7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7601$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7602if ${lt_cv_cc_needs_belf+:} false; then : 7603 $as_echo_n "(cached) " >&6 7604else 7605 ac_ext=c 7606ac_cpp='$CPP $CPPFLAGS' 7607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7609ac_compiler_gnu=$ac_cv_c_compiler_gnu 7610 7611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7612/* end confdefs.h. */ 7613 7614int 7615main () 7616{ 7617 7618 ; 7619 return 0; 7620} 7621_ACEOF 7622if ac_fn_c_try_link "$LINENO"; then : 7623 lt_cv_cc_needs_belf=yes 7624else 7625 lt_cv_cc_needs_belf=no 7626fi 7627rm -f core conftest.err conftest.$ac_objext \ 7628 conftest$ac_exeext conftest.$ac_ext 7629 ac_ext=c 7630ac_cpp='$CPP $CPPFLAGS' 7631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7633ac_compiler_gnu=$ac_cv_c_compiler_gnu 7634 7635fi 7636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7637$as_echo "$lt_cv_cc_needs_belf" >&6; } 7638 if test yes != "$lt_cv_cc_needs_belf"; then 7639 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7640 CFLAGS=$SAVE_CFLAGS 7641 fi 7642 ;; 7643*-*solaris*) 7644 # Find out what ABI is being produced by ac_compile, and set linker 7645 # options accordingly. 7646 echo 'int i;' > conftest.$ac_ext 7647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7648 (eval $ac_compile) 2>&5 7649 ac_status=$? 7650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7651 test $ac_status = 0; }; then 7652 case `/usr/bin/file conftest.o` in 7653 *64-bit*) 7654 case $lt_cv_prog_gnu_ld in 7655 yes*) 7656 case $host in 7657 i?86-*-solaris*|x86_64-*-solaris*) 7658 LD="${LD-ld} -m elf_x86_64" 7659 ;; 7660 sparc*-*-solaris*) 7661 LD="${LD-ld} -m elf64_sparc" 7662 ;; 7663 esac 7664 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7665 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7666 LD=${LD-ld}_sol2 7667 fi 7668 ;; 7669 *) 7670 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7671 LD="${LD-ld} -64" 7672 fi 7673 ;; 7674 esac 7675 ;; 7676 esac 7677 fi 7678 rm -rf conftest* 7679 ;; 7680esac 7681 7682need_locks=$enable_libtool_lock 7683 7684if test -n "$ac_tool_prefix"; then 7685 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7686set dummy ${ac_tool_prefix}mt; ac_word=$2 7687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7688$as_echo_n "checking for $ac_word... " >&6; } 7689if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7690 $as_echo_n "(cached) " >&6 7691else 7692 if test -n "$MANIFEST_TOOL"; then 7693 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7694else 7695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7696for as_dir in $PATH 7697do 7698 IFS=$as_save_IFS 7699 test -z "$as_dir" && as_dir=. 7700 for ac_exec_ext in '' $ac_executable_extensions; do 7701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7702 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7704 break 2 7705 fi 7706done 7707 done 7708IFS=$as_save_IFS 7709 7710fi 7711fi 7712MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7713if test -n "$MANIFEST_TOOL"; then 7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7715$as_echo "$MANIFEST_TOOL" >&6; } 7716else 7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7718$as_echo "no" >&6; } 7719fi 7720 7721 7722fi 7723if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7724 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7725 # Extract the first word of "mt", so it can be a program name with args. 7726set dummy mt; ac_word=$2 7727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7728$as_echo_n "checking for $ac_word... " >&6; } 7729if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7730 $as_echo_n "(cached) " >&6 7731else 7732 if test -n "$ac_ct_MANIFEST_TOOL"; then 7733 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7734else 7735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7736for as_dir in $PATH 7737do 7738 IFS=$as_save_IFS 7739 test -z "$as_dir" && as_dir=. 7740 for ac_exec_ext in '' $ac_executable_extensions; do 7741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7742 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7744 break 2 7745 fi 7746done 7747 done 7748IFS=$as_save_IFS 7749 7750fi 7751fi 7752ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7753if test -n "$ac_ct_MANIFEST_TOOL"; then 7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7755$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7756else 7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7758$as_echo "no" >&6; } 7759fi 7760 7761 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7762 MANIFEST_TOOL=":" 7763 else 7764 case $cross_compiling:$ac_tool_warned in 7765yes:) 7766{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7767$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7768ac_tool_warned=yes ;; 7769esac 7770 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7771 fi 7772else 7773 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7774fi 7775 7776test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7778$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7779if ${lt_cv_path_mainfest_tool+:} false; then : 7780 $as_echo_n "(cached) " >&6 7781else 7782 lt_cv_path_mainfest_tool=no 7783 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7784 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7785 cat conftest.err >&5 7786 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7787 lt_cv_path_mainfest_tool=yes 7788 fi 7789 rm -f conftest* 7790fi 7791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7792$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7793if test yes != "$lt_cv_path_mainfest_tool"; then 7794 MANIFEST_TOOL=: 7795fi 7796 7797 7798 7799 7800 7801 7802 case $host_os in 7803 rhapsody* | darwin*) 7804 if test -n "$ac_tool_prefix"; then 7805 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7806set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7808$as_echo_n "checking for $ac_word... " >&6; } 7809if ${ac_cv_prog_DSYMUTIL+:} false; then : 7810 $as_echo_n "(cached) " >&6 7811else 7812 if test -n "$DSYMUTIL"; then 7813 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7814else 7815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7816for as_dir in $PATH 7817do 7818 IFS=$as_save_IFS 7819 test -z "$as_dir" && as_dir=. 7820 for ac_exec_ext in '' $ac_executable_extensions; do 7821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7822 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7824 break 2 7825 fi 7826done 7827 done 7828IFS=$as_save_IFS 7829 7830fi 7831fi 7832DSYMUTIL=$ac_cv_prog_DSYMUTIL 7833if test -n "$DSYMUTIL"; then 7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7835$as_echo "$DSYMUTIL" >&6; } 7836else 7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7838$as_echo "no" >&6; } 7839fi 7840 7841 7842fi 7843if test -z "$ac_cv_prog_DSYMUTIL"; then 7844 ac_ct_DSYMUTIL=$DSYMUTIL 7845 # Extract the first word of "dsymutil", so it can be a program name with args. 7846set dummy dsymutil; ac_word=$2 7847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7848$as_echo_n "checking for $ac_word... " >&6; } 7849if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7850 $as_echo_n "(cached) " >&6 7851else 7852 if test -n "$ac_ct_DSYMUTIL"; then 7853 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7854else 7855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7856for as_dir in $PATH 7857do 7858 IFS=$as_save_IFS 7859 test -z "$as_dir" && as_dir=. 7860 for ac_exec_ext in '' $ac_executable_extensions; do 7861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7862 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7864 break 2 7865 fi 7866done 7867 done 7868IFS=$as_save_IFS 7869 7870fi 7871fi 7872ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7873if test -n "$ac_ct_DSYMUTIL"; then 7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7875$as_echo "$ac_ct_DSYMUTIL" >&6; } 7876else 7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7878$as_echo "no" >&6; } 7879fi 7880 7881 if test "x$ac_ct_DSYMUTIL" = x; then 7882 DSYMUTIL=":" 7883 else 7884 case $cross_compiling:$ac_tool_warned in 7885yes:) 7886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7888ac_tool_warned=yes ;; 7889esac 7890 DSYMUTIL=$ac_ct_DSYMUTIL 7891 fi 7892else 7893 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7894fi 7895 7896 if test -n "$ac_tool_prefix"; then 7897 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7898set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7900$as_echo_n "checking for $ac_word... " >&6; } 7901if ${ac_cv_prog_NMEDIT+:} false; then : 7902 $as_echo_n "(cached) " >&6 7903else 7904 if test -n "$NMEDIT"; then 7905 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7906else 7907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7908for as_dir in $PATH 7909do 7910 IFS=$as_save_IFS 7911 test -z "$as_dir" && as_dir=. 7912 for ac_exec_ext in '' $ac_executable_extensions; do 7913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7914 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7916 break 2 7917 fi 7918done 7919 done 7920IFS=$as_save_IFS 7921 7922fi 7923fi 7924NMEDIT=$ac_cv_prog_NMEDIT 7925if test -n "$NMEDIT"; then 7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7927$as_echo "$NMEDIT" >&6; } 7928else 7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7930$as_echo "no" >&6; } 7931fi 7932 7933 7934fi 7935if test -z "$ac_cv_prog_NMEDIT"; then 7936 ac_ct_NMEDIT=$NMEDIT 7937 # Extract the first word of "nmedit", so it can be a program name with args. 7938set dummy nmedit; ac_word=$2 7939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7940$as_echo_n "checking for $ac_word... " >&6; } 7941if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7942 $as_echo_n "(cached) " >&6 7943else 7944 if test -n "$ac_ct_NMEDIT"; then 7945 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7946else 7947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7948for as_dir in $PATH 7949do 7950 IFS=$as_save_IFS 7951 test -z "$as_dir" && as_dir=. 7952 for ac_exec_ext in '' $ac_executable_extensions; do 7953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7954 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7956 break 2 7957 fi 7958done 7959 done 7960IFS=$as_save_IFS 7961 7962fi 7963fi 7964ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7965if test -n "$ac_ct_NMEDIT"; then 7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7967$as_echo "$ac_ct_NMEDIT" >&6; } 7968else 7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7970$as_echo "no" >&6; } 7971fi 7972 7973 if test "x$ac_ct_NMEDIT" = x; then 7974 NMEDIT=":" 7975 else 7976 case $cross_compiling:$ac_tool_warned in 7977yes:) 7978{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7979$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7980ac_tool_warned=yes ;; 7981esac 7982 NMEDIT=$ac_ct_NMEDIT 7983 fi 7984else 7985 NMEDIT="$ac_cv_prog_NMEDIT" 7986fi 7987 7988 if test -n "$ac_tool_prefix"; then 7989 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7990set dummy ${ac_tool_prefix}lipo; ac_word=$2 7991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7992$as_echo_n "checking for $ac_word... " >&6; } 7993if ${ac_cv_prog_LIPO+:} false; then : 7994 $as_echo_n "(cached) " >&6 7995else 7996 if test -n "$LIPO"; then 7997 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7998else 7999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8000for as_dir in $PATH 8001do 8002 IFS=$as_save_IFS 8003 test -z "$as_dir" && as_dir=. 8004 for ac_exec_ext in '' $ac_executable_extensions; do 8005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8006 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8008 break 2 8009 fi 8010done 8011 done 8012IFS=$as_save_IFS 8013 8014fi 8015fi 8016LIPO=$ac_cv_prog_LIPO 8017if test -n "$LIPO"; then 8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8019$as_echo "$LIPO" >&6; } 8020else 8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8022$as_echo "no" >&6; } 8023fi 8024 8025 8026fi 8027if test -z "$ac_cv_prog_LIPO"; then 8028 ac_ct_LIPO=$LIPO 8029 # Extract the first word of "lipo", so it can be a program name with args. 8030set dummy lipo; ac_word=$2 8031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8032$as_echo_n "checking for $ac_word... " >&6; } 8033if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8034 $as_echo_n "(cached) " >&6 8035else 8036 if test -n "$ac_ct_LIPO"; then 8037 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8038else 8039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8040for as_dir in $PATH 8041do 8042 IFS=$as_save_IFS 8043 test -z "$as_dir" && as_dir=. 8044 for ac_exec_ext in '' $ac_executable_extensions; do 8045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8046 ac_cv_prog_ac_ct_LIPO="lipo" 8047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8048 break 2 8049 fi 8050done 8051 done 8052IFS=$as_save_IFS 8053 8054fi 8055fi 8056ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8057if test -n "$ac_ct_LIPO"; then 8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8059$as_echo "$ac_ct_LIPO" >&6; } 8060else 8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8062$as_echo "no" >&6; } 8063fi 8064 8065 if test "x$ac_ct_LIPO" = x; then 8066 LIPO=":" 8067 else 8068 case $cross_compiling:$ac_tool_warned in 8069yes:) 8070{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8071$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8072ac_tool_warned=yes ;; 8073esac 8074 LIPO=$ac_ct_LIPO 8075 fi 8076else 8077 LIPO="$ac_cv_prog_LIPO" 8078fi 8079 8080 if test -n "$ac_tool_prefix"; then 8081 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8082set dummy ${ac_tool_prefix}otool; ac_word=$2 8083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8084$as_echo_n "checking for $ac_word... " >&6; } 8085if ${ac_cv_prog_OTOOL+:} false; then : 8086 $as_echo_n "(cached) " >&6 8087else 8088 if test -n "$OTOOL"; then 8089 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8090else 8091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8092for as_dir in $PATH 8093do 8094 IFS=$as_save_IFS 8095 test -z "$as_dir" && as_dir=. 8096 for ac_exec_ext in '' $ac_executable_extensions; do 8097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8098 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8100 break 2 8101 fi 8102done 8103 done 8104IFS=$as_save_IFS 8105 8106fi 8107fi 8108OTOOL=$ac_cv_prog_OTOOL 8109if test -n "$OTOOL"; then 8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8111$as_echo "$OTOOL" >&6; } 8112else 8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8114$as_echo "no" >&6; } 8115fi 8116 8117 8118fi 8119if test -z "$ac_cv_prog_OTOOL"; then 8120 ac_ct_OTOOL=$OTOOL 8121 # Extract the first word of "otool", so it can be a program name with args. 8122set dummy otool; ac_word=$2 8123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8124$as_echo_n "checking for $ac_word... " >&6; } 8125if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8126 $as_echo_n "(cached) " >&6 8127else 8128 if test -n "$ac_ct_OTOOL"; then 8129 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8130else 8131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8132for as_dir in $PATH 8133do 8134 IFS=$as_save_IFS 8135 test -z "$as_dir" && as_dir=. 8136 for ac_exec_ext in '' $ac_executable_extensions; do 8137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8138 ac_cv_prog_ac_ct_OTOOL="otool" 8139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8140 break 2 8141 fi 8142done 8143 done 8144IFS=$as_save_IFS 8145 8146fi 8147fi 8148ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8149if test -n "$ac_ct_OTOOL"; then 8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8151$as_echo "$ac_ct_OTOOL" >&6; } 8152else 8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8154$as_echo "no" >&6; } 8155fi 8156 8157 if test "x$ac_ct_OTOOL" = x; then 8158 OTOOL=":" 8159 else 8160 case $cross_compiling:$ac_tool_warned in 8161yes:) 8162{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8164ac_tool_warned=yes ;; 8165esac 8166 OTOOL=$ac_ct_OTOOL 8167 fi 8168else 8169 OTOOL="$ac_cv_prog_OTOOL" 8170fi 8171 8172 if test -n "$ac_tool_prefix"; then 8173 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8174set dummy ${ac_tool_prefix}otool64; ac_word=$2 8175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8176$as_echo_n "checking for $ac_word... " >&6; } 8177if ${ac_cv_prog_OTOOL64+:} false; then : 8178 $as_echo_n "(cached) " >&6 8179else 8180 if test -n "$OTOOL64"; then 8181 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8182else 8183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8184for as_dir in $PATH 8185do 8186 IFS=$as_save_IFS 8187 test -z "$as_dir" && as_dir=. 8188 for ac_exec_ext in '' $ac_executable_extensions; do 8189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8190 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8192 break 2 8193 fi 8194done 8195 done 8196IFS=$as_save_IFS 8197 8198fi 8199fi 8200OTOOL64=$ac_cv_prog_OTOOL64 8201if test -n "$OTOOL64"; then 8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8203$as_echo "$OTOOL64" >&6; } 8204else 8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8206$as_echo "no" >&6; } 8207fi 8208 8209 8210fi 8211if test -z "$ac_cv_prog_OTOOL64"; then 8212 ac_ct_OTOOL64=$OTOOL64 8213 # Extract the first word of "otool64", so it can be a program name with args. 8214set dummy otool64; ac_word=$2 8215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8216$as_echo_n "checking for $ac_word... " >&6; } 8217if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8218 $as_echo_n "(cached) " >&6 8219else 8220 if test -n "$ac_ct_OTOOL64"; then 8221 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8222else 8223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8224for as_dir in $PATH 8225do 8226 IFS=$as_save_IFS 8227 test -z "$as_dir" && as_dir=. 8228 for ac_exec_ext in '' $ac_executable_extensions; do 8229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8230 ac_cv_prog_ac_ct_OTOOL64="otool64" 8231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8232 break 2 8233 fi 8234done 8235 done 8236IFS=$as_save_IFS 8237 8238fi 8239fi 8240ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8241if test -n "$ac_ct_OTOOL64"; then 8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8243$as_echo "$ac_ct_OTOOL64" >&6; } 8244else 8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8246$as_echo "no" >&6; } 8247fi 8248 8249 if test "x$ac_ct_OTOOL64" = x; then 8250 OTOOL64=":" 8251 else 8252 case $cross_compiling:$ac_tool_warned in 8253yes:) 8254{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8255$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8256ac_tool_warned=yes ;; 8257esac 8258 OTOOL64=$ac_ct_OTOOL64 8259 fi 8260else 8261 OTOOL64="$ac_cv_prog_OTOOL64" 8262fi 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8291$as_echo_n "checking for -single_module linker flag... " >&6; } 8292if ${lt_cv_apple_cc_single_mod+:} false; then : 8293 $as_echo_n "(cached) " >&6 8294else 8295 lt_cv_apple_cc_single_mod=no 8296 if test -z "$LT_MULTI_MODULE"; then 8297 # By default we will add the -single_module flag. You can override 8298 # by either setting the environment variable LT_MULTI_MODULE 8299 # non-empty at configure time, or by adding -multi_module to the 8300 # link flags. 8301 rm -rf libconftest.dylib* 8302 echo "int foo(void){return 1;}" > conftest.c 8303 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8304-dynamiclib -Wl,-single_module conftest.c" >&5 8305 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8306 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8307 _lt_result=$? 8308 # If there is a non-empty error log, and "single_module" 8309 # appears in it, assume the flag caused a linker warning 8310 if test -s conftest.err && $GREP single_module conftest.err; then 8311 cat conftest.err >&5 8312 # Otherwise, if the output was created with a 0 exit code from 8313 # the compiler, it worked. 8314 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8315 lt_cv_apple_cc_single_mod=yes 8316 else 8317 cat conftest.err >&5 8318 fi 8319 rm -rf libconftest.dylib* 8320 rm -f conftest.* 8321 fi 8322fi 8323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8324$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8325 8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8327$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8328if ${lt_cv_ld_exported_symbols_list+:} false; then : 8329 $as_echo_n "(cached) " >&6 8330else 8331 lt_cv_ld_exported_symbols_list=no 8332 save_LDFLAGS=$LDFLAGS 8333 echo "_main" > conftest.sym 8334 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8336/* end confdefs.h. */ 8337 8338int 8339main () 8340{ 8341 8342 ; 8343 return 0; 8344} 8345_ACEOF 8346if ac_fn_c_try_link "$LINENO"; then : 8347 lt_cv_ld_exported_symbols_list=yes 8348else 8349 lt_cv_ld_exported_symbols_list=no 8350fi 8351rm -f core conftest.err conftest.$ac_objext \ 8352 conftest$ac_exeext conftest.$ac_ext 8353 LDFLAGS=$save_LDFLAGS 8354 8355fi 8356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8357$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8358 8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8360$as_echo_n "checking for -force_load linker flag... " >&6; } 8361if ${lt_cv_ld_force_load+:} false; then : 8362 $as_echo_n "(cached) " >&6 8363else 8364 lt_cv_ld_force_load=no 8365 cat > conftest.c << _LT_EOF 8366int forced_loaded() { return 2;} 8367_LT_EOF 8368 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8369 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8370 echo "$AR cru libconftest.a conftest.o" >&5 8371 $AR cru libconftest.a conftest.o 2>&5 8372 echo "$RANLIB libconftest.a" >&5 8373 $RANLIB libconftest.a 2>&5 8374 cat > conftest.c << _LT_EOF 8375int main() { return 0;} 8376_LT_EOF 8377 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8378 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8379 _lt_result=$? 8380 if test -s conftest.err && $GREP force_load conftest.err; then 8381 cat conftest.err >&5 8382 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8383 lt_cv_ld_force_load=yes 8384 else 8385 cat conftest.err >&5 8386 fi 8387 rm -f conftest.err libconftest.a conftest conftest.c 8388 rm -rf conftest.dSYM 8389 8390fi 8391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8392$as_echo "$lt_cv_ld_force_load" >&6; } 8393 case $host_os in 8394 rhapsody* | darwin1.[012]) 8395 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8396 darwin1.*) 8397 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8398 darwin*) # darwin 5.x on 8399 # if running on 10.5 or later, the deployment target defaults 8400 # to the OS version, if on x86, and 10.4, the deployment 8401 # target defaults to 10.4. Don't you love it? 8402 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8403 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8404 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8405 10.[012][,.]*) 8406 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8407 10.*) 8408 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8409 esac 8410 ;; 8411 esac 8412 if test yes = "$lt_cv_apple_cc_single_mod"; then 8413 _lt_dar_single_mod='$single_module' 8414 fi 8415 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8416 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8417 else 8418 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8419 fi 8420 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8421 _lt_dsymutil='~$DSYMUTIL $lib || :' 8422 else 8423 _lt_dsymutil= 8424 fi 8425 ;; 8426 esac 8427 8428# func_munge_path_list VARIABLE PATH 8429# ----------------------------------- 8430# VARIABLE is name of variable containing _space_ separated list of 8431# directories to be munged by the contents of PATH, which is string 8432# having a format: 8433# "DIR[:DIR]:" 8434# string "DIR[ DIR]" will be prepended to VARIABLE 8435# ":DIR[:DIR]" 8436# string "DIR[ DIR]" will be appended to VARIABLE 8437# "DIRP[:DIRP]::[DIRA:]DIRA" 8438# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8439# "DIRA[ DIRA]" will be appended to VARIABLE 8440# "DIR[:DIR]" 8441# VARIABLE will be replaced by "DIR[ DIR]" 8442func_munge_path_list () 8443{ 8444 case x$2 in 8445 x) 8446 ;; 8447 *:) 8448 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8449 ;; 8450 x:*) 8451 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8452 ;; 8453 *::*) 8454 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8455 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8456 ;; 8457 *) 8458 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8459 ;; 8460 esac 8461} 8462 8463# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8464for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8465 inttypes.h stdint.h unistd.h 8466do : 8467 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8468ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8469" 8470if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8471 cat >>confdefs.h <<_ACEOF 8472#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8473_ACEOF 8474 8475fi 8476 8477done 8478 8479 8480for ac_header in dlfcn.h 8481do : 8482 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8483" 8484if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8485 cat >>confdefs.h <<_ACEOF 8486#define HAVE_DLFCN_H 1 8487_ACEOF 8488 8489fi 8490 8491done 8492 8493 8494 8495 8496 8497# Set options 8498# Check whether --enable-static was given. 8499if test "${enable_static+set}" = set; then : 8500 enableval=$enable_static; p=${PACKAGE-default} 8501 case $enableval in 8502 yes) enable_static=yes ;; 8503 no) enable_static=no ;; 8504 *) 8505 enable_static=no 8506 # Look at the argument we got. We use all the common list separators. 8507 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8508 for pkg in $enableval; do 8509 IFS=$lt_save_ifs 8510 if test "X$pkg" = "X$p"; then 8511 enable_static=yes 8512 fi 8513 done 8514 IFS=$lt_save_ifs 8515 ;; 8516 esac 8517else 8518 enable_static=no 8519fi 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 enable_dlopen=no 8531 8532 8533 enable_win32_dll=no 8534 8535 8536 # Check whether --enable-shared was given. 8537if test "${enable_shared+set}" = set; then : 8538 enableval=$enable_shared; p=${PACKAGE-default} 8539 case $enableval in 8540 yes) enable_shared=yes ;; 8541 no) enable_shared=no ;; 8542 *) 8543 enable_shared=no 8544 # Look at the argument we got. We use all the common list separators. 8545 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8546 for pkg in $enableval; do 8547 IFS=$lt_save_ifs 8548 if test "X$pkg" = "X$p"; then 8549 enable_shared=yes 8550 fi 8551 done 8552 IFS=$lt_save_ifs 8553 ;; 8554 esac 8555else 8556 enable_shared=yes 8557fi 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569# Check whether --with-pic was given. 8570if test "${with_pic+set}" = set; then : 8571 withval=$with_pic; lt_p=${PACKAGE-default} 8572 case $withval in 8573 yes|no) pic_mode=$withval ;; 8574 *) 8575 pic_mode=default 8576 # Look at the argument we got. We use all the common list separators. 8577 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8578 for lt_pkg in $withval; do 8579 IFS=$lt_save_ifs 8580 if test "X$lt_pkg" = "X$lt_p"; then 8581 pic_mode=yes 8582 fi 8583 done 8584 IFS=$lt_save_ifs 8585 ;; 8586 esac 8587else 8588 pic_mode=default 8589fi 8590 8591 8592 8593 8594 8595 8596 8597 8598 # Check whether --enable-fast-install was given. 8599if test "${enable_fast_install+set}" = set; then : 8600 enableval=$enable_fast_install; p=${PACKAGE-default} 8601 case $enableval in 8602 yes) enable_fast_install=yes ;; 8603 no) enable_fast_install=no ;; 8604 *) 8605 enable_fast_install=no 8606 # Look at the argument we got. We use all the common list separators. 8607 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8608 for pkg in $enableval; do 8609 IFS=$lt_save_ifs 8610 if test "X$pkg" = "X$p"; then 8611 enable_fast_install=yes 8612 fi 8613 done 8614 IFS=$lt_save_ifs 8615 ;; 8616 esac 8617else 8618 enable_fast_install=yes 8619fi 8620 8621 8622 8623 8624 8625 8626 8627 8628 shared_archive_member_spec= 8629case $host,$enable_shared in 8630power*-*-aix[5-9]*,yes) 8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8632$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8633 8634# Check whether --with-aix-soname was given. 8635if test "${with_aix_soname+set}" = set; then : 8636 withval=$with_aix_soname; case $withval in 8637 aix|svr4|both) 8638 ;; 8639 *) 8640 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8641 ;; 8642 esac 8643 lt_cv_with_aix_soname=$with_aix_soname 8644else 8645 if ${lt_cv_with_aix_soname+:} false; then : 8646 $as_echo_n "(cached) " >&6 8647else 8648 lt_cv_with_aix_soname=aix 8649fi 8650 8651 with_aix_soname=$lt_cv_with_aix_soname 8652fi 8653 8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8655$as_echo "$with_aix_soname" >&6; } 8656 if test aix != "$with_aix_soname"; then 8657 # For the AIX way of multilib, we name the shared archive member 8658 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8659 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8660 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8661 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8662 if test 64 = "${OBJECT_MODE-32}"; then 8663 shared_archive_member_spec=shr_64 8664 else 8665 shared_archive_member_spec=shr 8666 fi 8667 fi 8668 ;; 8669*) 8670 with_aix_soname=aix 8671 ;; 8672esac 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683# This can be used to rebuild libtool when needed 8684LIBTOOL_DEPS=$ltmain 8685 8686# Always use our own libtool. 8687LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718test -z "$LN_S" && LN_S="ln -s" 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733if test -n "${ZSH_VERSION+set}"; then 8734 setopt NO_GLOB_SUBST 8735fi 8736 8737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8738$as_echo_n "checking for objdir... " >&6; } 8739if ${lt_cv_objdir+:} false; then : 8740 $as_echo_n "(cached) " >&6 8741else 8742 rm -f .libs 2>/dev/null 8743mkdir .libs 2>/dev/null 8744if test -d .libs; then 8745 lt_cv_objdir=.libs 8746else 8747 # MS-DOS does not allow filenames that begin with a dot. 8748 lt_cv_objdir=_libs 8749fi 8750rmdir .libs 2>/dev/null 8751fi 8752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8753$as_echo "$lt_cv_objdir" >&6; } 8754objdir=$lt_cv_objdir 8755 8756 8757 8758 8759 8760cat >>confdefs.h <<_ACEOF 8761#define LT_OBJDIR "$lt_cv_objdir/" 8762_ACEOF 8763 8764 8765 8766 8767case $host_os in 8768aix3*) 8769 # AIX sometimes has problems with the GCC collect2 program. For some 8770 # reason, if we set the COLLECT_NAMES environment variable, the problems 8771 # vanish in a puff of smoke. 8772 if test set != "${COLLECT_NAMES+set}"; then 8773 COLLECT_NAMES= 8774 export COLLECT_NAMES 8775 fi 8776 ;; 8777esac 8778 8779# Global variables: 8780ofile=libtool 8781can_build_shared=yes 8782 8783# All known linkers require a '.a' archive for static linking (except MSVC, 8784# which needs '.lib'). 8785libext=a 8786 8787with_gnu_ld=$lt_cv_prog_gnu_ld 8788 8789old_CC=$CC 8790old_CFLAGS=$CFLAGS 8791 8792# Set sane defaults for various variables 8793test -z "$CC" && CC=cc 8794test -z "$LTCC" && LTCC=$CC 8795test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8796test -z "$LD" && LD=ld 8797test -z "$ac_objext" && ac_objext=o 8798 8799func_cc_basename $compiler 8800cc_basename=$func_cc_basename_result 8801 8802 8803# Only perform the check for file, if the check method requires it 8804test -z "$MAGIC_CMD" && MAGIC_CMD=file 8805case $deplibs_check_method in 8806file_magic*) 8807 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8809$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8810if ${lt_cv_path_MAGIC_CMD+:} false; then : 8811 $as_echo_n "(cached) " >&6 8812else 8813 case $MAGIC_CMD in 8814[\\/*] | ?:[\\/]*) 8815 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8816 ;; 8817*) 8818 lt_save_MAGIC_CMD=$MAGIC_CMD 8819 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8820 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8821 for ac_dir in $ac_dummy; do 8822 IFS=$lt_save_ifs 8823 test -z "$ac_dir" && ac_dir=. 8824 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8825 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8826 if test -n "$file_magic_test_file"; then 8827 case $deplibs_check_method in 8828 "file_magic "*) 8829 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8830 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8831 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8832 $EGREP "$file_magic_regex" > /dev/null; then 8833 : 8834 else 8835 cat <<_LT_EOF 1>&2 8836 8837*** Warning: the command libtool uses to detect shared libraries, 8838*** $file_magic_cmd, produces output that libtool cannot recognize. 8839*** The result is that libtool may fail to recognize shared libraries 8840*** as such. This will affect the creation of libtool libraries that 8841*** depend on shared libraries, but programs linked with such libtool 8842*** libraries will work regardless of this problem. Nevertheless, you 8843*** may want to report the problem to your system manager and/or to 8844*** bug-libtool@gnu.org 8845 8846_LT_EOF 8847 fi ;; 8848 esac 8849 fi 8850 break 8851 fi 8852 done 8853 IFS=$lt_save_ifs 8854 MAGIC_CMD=$lt_save_MAGIC_CMD 8855 ;; 8856esac 8857fi 8858 8859MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8860if test -n "$MAGIC_CMD"; then 8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8862$as_echo "$MAGIC_CMD" >&6; } 8863else 8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8865$as_echo "no" >&6; } 8866fi 8867 8868 8869 8870 8871 8872if test -z "$lt_cv_path_MAGIC_CMD"; then 8873 if test -n "$ac_tool_prefix"; then 8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8875$as_echo_n "checking for file... " >&6; } 8876if ${lt_cv_path_MAGIC_CMD+:} false; then : 8877 $as_echo_n "(cached) " >&6 8878else 8879 case $MAGIC_CMD in 8880[\\/*] | ?:[\\/]*) 8881 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8882 ;; 8883*) 8884 lt_save_MAGIC_CMD=$MAGIC_CMD 8885 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8886 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8887 for ac_dir in $ac_dummy; do 8888 IFS=$lt_save_ifs 8889 test -z "$ac_dir" && ac_dir=. 8890 if test -f "$ac_dir/file"; then 8891 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8892 if test -n "$file_magic_test_file"; then 8893 case $deplibs_check_method in 8894 "file_magic "*) 8895 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8896 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8897 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8898 $EGREP "$file_magic_regex" > /dev/null; then 8899 : 8900 else 8901 cat <<_LT_EOF 1>&2 8902 8903*** Warning: the command libtool uses to detect shared libraries, 8904*** $file_magic_cmd, produces output that libtool cannot recognize. 8905*** The result is that libtool may fail to recognize shared libraries 8906*** as such. This will affect the creation of libtool libraries that 8907*** depend on shared libraries, but programs linked with such libtool 8908*** libraries will work regardless of this problem. Nevertheless, you 8909*** may want to report the problem to your system manager and/or to 8910*** bug-libtool@gnu.org 8911 8912_LT_EOF 8913 fi ;; 8914 esac 8915 fi 8916 break 8917 fi 8918 done 8919 IFS=$lt_save_ifs 8920 MAGIC_CMD=$lt_save_MAGIC_CMD 8921 ;; 8922esac 8923fi 8924 8925MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8926if test -n "$MAGIC_CMD"; then 8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8928$as_echo "$MAGIC_CMD" >&6; } 8929else 8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8931$as_echo "no" >&6; } 8932fi 8933 8934 8935 else 8936 MAGIC_CMD=: 8937 fi 8938fi 8939 8940 fi 8941 ;; 8942esac 8943 8944# Use C for the default configuration in the libtool script 8945 8946lt_save_CC=$CC 8947ac_ext=c 8948ac_cpp='$CPP $CPPFLAGS' 8949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8951ac_compiler_gnu=$ac_cv_c_compiler_gnu 8952 8953 8954# Source file extension for C test sources. 8955ac_ext=c 8956 8957# Object file extension for compiled C test sources. 8958objext=o 8959objext=$objext 8960 8961# Code to be used in simple compile tests 8962lt_simple_compile_test_code="int some_variable = 0;" 8963 8964# Code to be used in simple link tests 8965lt_simple_link_test_code='int main(){return(0);}' 8966 8967 8968 8969 8970 8971 8972 8973# If no C compiler was specified, use CC. 8974LTCC=${LTCC-"$CC"} 8975 8976# If no C compiler flags were specified, use CFLAGS. 8977LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8978 8979# Allow CC to be a program name with arguments. 8980compiler=$CC 8981 8982# Save the default compiler, since it gets overwritten when the other 8983# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8984compiler_DEFAULT=$CC 8985 8986# save warnings/boilerplate of simple test code 8987ac_outfile=conftest.$ac_objext 8988echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8989eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8990_lt_compiler_boilerplate=`cat conftest.err` 8991$RM conftest* 8992 8993ac_outfile=conftest.$ac_objext 8994echo "$lt_simple_link_test_code" >conftest.$ac_ext 8995eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8996_lt_linker_boilerplate=`cat conftest.err` 8997$RM -r conftest* 8998 8999 9000## CAVEAT EMPTOR: 9001## There is no encapsulation within the following macros, do not change 9002## the running order or otherwise move them around unless you know exactly 9003## what you are doing... 9004if test -n "$compiler"; then 9005 9006lt_prog_compiler_no_builtin_flag= 9007 9008if test yes = "$GCC"; then 9009 case $cc_basename in 9010 nvcc*) 9011 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9012 *) 9013 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9014 esac 9015 9016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9017$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9018if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9019 $as_echo_n "(cached) " >&6 9020else 9021 lt_cv_prog_compiler_rtti_exceptions=no 9022 ac_outfile=conftest.$ac_objext 9023 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9024 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9025 # Insert the option either (1) after the last *FLAGS variable, or 9026 # (2) before a word containing "conftest.", or (3) at the end. 9027 # Note that $ac_compile itself does not contain backslashes and begins 9028 # with a dollar sign (not a hyphen), so the echo should work correctly. 9029 # The option is referenced via a variable to avoid confusing sed. 9030 lt_compile=`echo "$ac_compile" | $SED \ 9031 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9032 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9033 -e 's:$: $lt_compiler_flag:'` 9034 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9035 (eval "$lt_compile" 2>conftest.err) 9036 ac_status=$? 9037 cat conftest.err >&5 9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9039 if (exit $ac_status) && test -s "$ac_outfile"; then 9040 # The compiler can only warn and ignore the option if not recognized 9041 # So say no if there are warnings other than the usual output. 9042 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9043 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9044 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9045 lt_cv_prog_compiler_rtti_exceptions=yes 9046 fi 9047 fi 9048 $RM conftest* 9049 9050fi 9051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9052$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9053 9054if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9055 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9056else 9057 : 9058fi 9059 9060fi 9061 9062 9063 9064 9065 9066 9067 lt_prog_compiler_wl= 9068lt_prog_compiler_pic= 9069lt_prog_compiler_static= 9070 9071 9072 if test yes = "$GCC"; then 9073 lt_prog_compiler_wl='-Wl,' 9074 lt_prog_compiler_static='-static' 9075 9076 case $host_os in 9077 aix*) 9078 # All AIX code is PIC. 9079 if test ia64 = "$host_cpu"; then 9080 # AIX 5 now supports IA64 processor 9081 lt_prog_compiler_static='-Bstatic' 9082 fi 9083 lt_prog_compiler_pic='-fPIC' 9084 ;; 9085 9086 amigaos*) 9087 case $host_cpu in 9088 powerpc) 9089 # see comment about AmigaOS4 .so support 9090 lt_prog_compiler_pic='-fPIC' 9091 ;; 9092 m68k) 9093 # FIXME: we need at least 68020 code to build shared libraries, but 9094 # adding the '-m68020' flag to GCC prevents building anything better, 9095 # like '-m68040'. 9096 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9097 ;; 9098 esac 9099 ;; 9100 9101 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9102 # PIC is the default for these OSes. 9103 ;; 9104 9105 mingw* | cygwin* | pw32* | os2* | cegcc*) 9106 # This hack is so that the source file can tell whether it is being 9107 # built for inclusion in a dll (and should export symbols for example). 9108 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9109 # (--disable-auto-import) libraries 9110 lt_prog_compiler_pic='-DDLL_EXPORT' 9111 case $host_os in 9112 os2*) 9113 lt_prog_compiler_static='$wl-static' 9114 ;; 9115 esac 9116 ;; 9117 9118 darwin* | rhapsody*) 9119 # PIC is the default on this platform 9120 # Common symbols not allowed in MH_DYLIB files 9121 lt_prog_compiler_pic='-fno-common' 9122 ;; 9123 9124 haiku*) 9125 # PIC is the default for Haiku. 9126 # The "-static" flag exists, but is broken. 9127 lt_prog_compiler_static= 9128 ;; 9129 9130 hpux*) 9131 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9132 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9133 # sets the default TLS model and affects inlining. 9134 case $host_cpu in 9135 hppa*64*) 9136 # +Z the default 9137 ;; 9138 *) 9139 lt_prog_compiler_pic='-fPIC' 9140 ;; 9141 esac 9142 ;; 9143 9144 interix[3-9]*) 9145 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9146 # Instead, we relocate shared libraries at runtime. 9147 ;; 9148 9149 msdosdjgpp*) 9150 # Just because we use GCC doesn't mean we suddenly get shared libraries 9151 # on systems that don't support them. 9152 lt_prog_compiler_can_build_shared=no 9153 enable_shared=no 9154 ;; 9155 9156 *nto* | *qnx*) 9157 # QNX uses GNU C++, but need to define -shared option too, otherwise 9158 # it will coredump. 9159 lt_prog_compiler_pic='-fPIC -shared' 9160 ;; 9161 9162 sysv4*MP*) 9163 if test -d /usr/nec; then 9164 lt_prog_compiler_pic=-Kconform_pic 9165 fi 9166 ;; 9167 9168 *) 9169 lt_prog_compiler_pic='-fPIC' 9170 ;; 9171 esac 9172 9173 case $cc_basename in 9174 nvcc*) # Cuda Compiler Driver 2.2 9175 lt_prog_compiler_wl='-Xlinker ' 9176 if test -n "$lt_prog_compiler_pic"; then 9177 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9178 fi 9179 ;; 9180 esac 9181 else 9182 # PORTME Check for flag to pass linker flags through the system compiler. 9183 case $host_os in 9184 aix*) 9185 lt_prog_compiler_wl='-Wl,' 9186 if test ia64 = "$host_cpu"; then 9187 # AIX 5 now supports IA64 processor 9188 lt_prog_compiler_static='-Bstatic' 9189 else 9190 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9191 fi 9192 ;; 9193 9194 darwin* | rhapsody*) 9195 # PIC is the default on this platform 9196 # Common symbols not allowed in MH_DYLIB files 9197 lt_prog_compiler_pic='-fno-common' 9198 case $cc_basename in 9199 nagfor*) 9200 # NAG Fortran compiler 9201 lt_prog_compiler_wl='-Wl,-Wl,,' 9202 lt_prog_compiler_pic='-PIC' 9203 lt_prog_compiler_static='-Bstatic' 9204 ;; 9205 esac 9206 ;; 9207 9208 mingw* | cygwin* | pw32* | os2* | cegcc*) 9209 # This hack is so that the source file can tell whether it is being 9210 # built for inclusion in a dll (and should export symbols for example). 9211 lt_prog_compiler_pic='-DDLL_EXPORT' 9212 case $host_os in 9213 os2*) 9214 lt_prog_compiler_static='$wl-static' 9215 ;; 9216 esac 9217 ;; 9218 9219 hpux9* | hpux10* | hpux11*) 9220 lt_prog_compiler_wl='-Wl,' 9221 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9222 # not for PA HP-UX. 9223 case $host_cpu in 9224 hppa*64*|ia64*) 9225 # +Z the default 9226 ;; 9227 *) 9228 lt_prog_compiler_pic='+Z' 9229 ;; 9230 esac 9231 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9232 lt_prog_compiler_static='$wl-a ${wl}archive' 9233 ;; 9234 9235 irix5* | irix6* | nonstopux*) 9236 lt_prog_compiler_wl='-Wl,' 9237 # PIC (with -KPIC) is the default. 9238 lt_prog_compiler_static='-non_shared' 9239 ;; 9240 9241 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9242 case $cc_basename in 9243 # old Intel for x86_64, which still supported -KPIC. 9244 ecc*) 9245 lt_prog_compiler_wl='-Wl,' 9246 lt_prog_compiler_pic='-KPIC' 9247 lt_prog_compiler_static='-static' 9248 ;; 9249 # icc used to be incompatible with GCC. 9250 # ICC 10 doesn't accept -KPIC any more. 9251 icc* | ifort*) 9252 lt_prog_compiler_wl='-Wl,' 9253 lt_prog_compiler_pic='-fPIC' 9254 lt_prog_compiler_static='-static' 9255 ;; 9256 # Lahey Fortran 8.1. 9257 lf95*) 9258 lt_prog_compiler_wl='-Wl,' 9259 lt_prog_compiler_pic='--shared' 9260 lt_prog_compiler_static='--static' 9261 ;; 9262 nagfor*) 9263 # NAG Fortran compiler 9264 lt_prog_compiler_wl='-Wl,-Wl,,' 9265 lt_prog_compiler_pic='-PIC' 9266 lt_prog_compiler_static='-Bstatic' 9267 ;; 9268 tcc*) 9269 # Fabrice Bellard et al's Tiny C Compiler 9270 lt_prog_compiler_wl='-Wl,' 9271 lt_prog_compiler_pic='-fPIC' 9272 lt_prog_compiler_static='-static' 9273 ;; 9274 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9275 # Portland Group compilers (*not* the Pentium gcc compiler, 9276 # which looks to be a dead project) 9277 lt_prog_compiler_wl='-Wl,' 9278 lt_prog_compiler_pic='-fpic' 9279 lt_prog_compiler_static='-Bstatic' 9280 ;; 9281 ccc*) 9282 lt_prog_compiler_wl='-Wl,' 9283 # All Alpha code is PIC. 9284 lt_prog_compiler_static='-non_shared' 9285 ;; 9286 xl* | bgxl* | bgf* | mpixl*) 9287 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9288 lt_prog_compiler_wl='-Wl,' 9289 lt_prog_compiler_pic='-qpic' 9290 lt_prog_compiler_static='-qstaticlink' 9291 ;; 9292 *) 9293 case `$CC -V 2>&1 | sed 5q` in 9294 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9295 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9296 lt_prog_compiler_pic='-KPIC' 9297 lt_prog_compiler_static='-Bstatic' 9298 lt_prog_compiler_wl='' 9299 ;; 9300 *Sun\ F* | *Sun*Fortran*) 9301 lt_prog_compiler_pic='-KPIC' 9302 lt_prog_compiler_static='-Bstatic' 9303 lt_prog_compiler_wl='-Qoption ld ' 9304 ;; 9305 *Sun\ C*) 9306 # Sun C 5.9 9307 lt_prog_compiler_pic='-KPIC' 9308 lt_prog_compiler_static='-Bstatic' 9309 lt_prog_compiler_wl='-Wl,' 9310 ;; 9311 *Intel*\ [CF]*Compiler*) 9312 lt_prog_compiler_wl='-Wl,' 9313 lt_prog_compiler_pic='-fPIC' 9314 lt_prog_compiler_static='-static' 9315 ;; 9316 *Portland\ Group*) 9317 lt_prog_compiler_wl='-Wl,' 9318 lt_prog_compiler_pic='-fpic' 9319 lt_prog_compiler_static='-Bstatic' 9320 ;; 9321 esac 9322 ;; 9323 esac 9324 ;; 9325 9326 newsos6) 9327 lt_prog_compiler_pic='-KPIC' 9328 lt_prog_compiler_static='-Bstatic' 9329 ;; 9330 9331 *nto* | *qnx*) 9332 # QNX uses GNU C++, but need to define -shared option too, otherwise 9333 # it will coredump. 9334 lt_prog_compiler_pic='-fPIC -shared' 9335 ;; 9336 9337 osf3* | osf4* | osf5*) 9338 lt_prog_compiler_wl='-Wl,' 9339 # All OSF/1 code is PIC. 9340 lt_prog_compiler_static='-non_shared' 9341 ;; 9342 9343 rdos*) 9344 lt_prog_compiler_static='-non_shared' 9345 ;; 9346 9347 solaris*) 9348 lt_prog_compiler_pic='-KPIC' 9349 lt_prog_compiler_static='-Bstatic' 9350 case $cc_basename in 9351 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9352 lt_prog_compiler_wl='-Qoption ld ';; 9353 *) 9354 lt_prog_compiler_wl='-Wl,';; 9355 esac 9356 ;; 9357 9358 sunos4*) 9359 lt_prog_compiler_wl='-Qoption ld ' 9360 lt_prog_compiler_pic='-PIC' 9361 lt_prog_compiler_static='-Bstatic' 9362 ;; 9363 9364 sysv4 | sysv4.2uw2* | sysv4.3*) 9365 lt_prog_compiler_wl='-Wl,' 9366 lt_prog_compiler_pic='-KPIC' 9367 lt_prog_compiler_static='-Bstatic' 9368 ;; 9369 9370 sysv4*MP*) 9371 if test -d /usr/nec; then 9372 lt_prog_compiler_pic='-Kconform_pic' 9373 lt_prog_compiler_static='-Bstatic' 9374 fi 9375 ;; 9376 9377 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9378 lt_prog_compiler_wl='-Wl,' 9379 lt_prog_compiler_pic='-KPIC' 9380 lt_prog_compiler_static='-Bstatic' 9381 ;; 9382 9383 unicos*) 9384 lt_prog_compiler_wl='-Wl,' 9385 lt_prog_compiler_can_build_shared=no 9386 ;; 9387 9388 uts4*) 9389 lt_prog_compiler_pic='-pic' 9390 lt_prog_compiler_static='-Bstatic' 9391 ;; 9392 9393 *) 9394 lt_prog_compiler_can_build_shared=no 9395 ;; 9396 esac 9397 fi 9398 9399case $host_os in 9400 # For platforms that do not support PIC, -DPIC is meaningless: 9401 *djgpp*) 9402 lt_prog_compiler_pic= 9403 ;; 9404 *) 9405 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9406 ;; 9407esac 9408 9409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9410$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9411if ${lt_cv_prog_compiler_pic+:} false; then : 9412 $as_echo_n "(cached) " >&6 9413else 9414 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9415fi 9416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9417$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9418lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9419 9420# 9421# Check to make sure the PIC flag actually works. 9422# 9423if test -n "$lt_prog_compiler_pic"; then 9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9425$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9426if ${lt_cv_prog_compiler_pic_works+:} false; then : 9427 $as_echo_n "(cached) " >&6 9428else 9429 lt_cv_prog_compiler_pic_works=no 9430 ac_outfile=conftest.$ac_objext 9431 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9432 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9433 # Insert the option either (1) after the last *FLAGS variable, or 9434 # (2) before a word containing "conftest.", or (3) at the end. 9435 # Note that $ac_compile itself does not contain backslashes and begins 9436 # with a dollar sign (not a hyphen), so the echo should work correctly. 9437 # The option is referenced via a variable to avoid confusing sed. 9438 lt_compile=`echo "$ac_compile" | $SED \ 9439 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9440 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9441 -e 's:$: $lt_compiler_flag:'` 9442 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9443 (eval "$lt_compile" 2>conftest.err) 9444 ac_status=$? 9445 cat conftest.err >&5 9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9447 if (exit $ac_status) && test -s "$ac_outfile"; then 9448 # The compiler can only warn and ignore the option if not recognized 9449 # So say no if there are warnings other than the usual output. 9450 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9451 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9452 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9453 lt_cv_prog_compiler_pic_works=yes 9454 fi 9455 fi 9456 $RM conftest* 9457 9458fi 9459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9460$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9461 9462if test yes = "$lt_cv_prog_compiler_pic_works"; then 9463 case $lt_prog_compiler_pic in 9464 "" | " "*) ;; 9465 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9466 esac 9467else 9468 lt_prog_compiler_pic= 9469 lt_prog_compiler_can_build_shared=no 9470fi 9471 9472fi 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484# 9485# Check to make sure the static flag actually works. 9486# 9487wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9489$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9490if ${lt_cv_prog_compiler_static_works+:} false; then : 9491 $as_echo_n "(cached) " >&6 9492else 9493 lt_cv_prog_compiler_static_works=no 9494 save_LDFLAGS=$LDFLAGS 9495 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9496 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9497 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9498 # The linker can only warn and ignore the option if not recognized 9499 # So say no if there are warnings 9500 if test -s conftest.err; then 9501 # Append any errors to the config.log. 9502 cat conftest.err 1>&5 9503 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9504 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9505 if diff conftest.exp conftest.er2 >/dev/null; then 9506 lt_cv_prog_compiler_static_works=yes 9507 fi 9508 else 9509 lt_cv_prog_compiler_static_works=yes 9510 fi 9511 fi 9512 $RM -r conftest* 9513 LDFLAGS=$save_LDFLAGS 9514 9515fi 9516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9517$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9518 9519if test yes = "$lt_cv_prog_compiler_static_works"; then 9520 : 9521else 9522 lt_prog_compiler_static= 9523fi 9524 9525 9526 9527 9528 9529 9530 9531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9532$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9533if ${lt_cv_prog_compiler_c_o+:} false; then : 9534 $as_echo_n "(cached) " >&6 9535else 9536 lt_cv_prog_compiler_c_o=no 9537 $RM -r conftest 2>/dev/null 9538 mkdir conftest 9539 cd conftest 9540 mkdir out 9541 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9542 9543 lt_compiler_flag="-o out/conftest2.$ac_objext" 9544 # Insert the option either (1) after the last *FLAGS variable, or 9545 # (2) before a word containing "conftest.", or (3) at the end. 9546 # Note that $ac_compile itself does not contain backslashes and begins 9547 # with a dollar sign (not a hyphen), so the echo should work correctly. 9548 lt_compile=`echo "$ac_compile" | $SED \ 9549 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9550 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9551 -e 's:$: $lt_compiler_flag:'` 9552 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9553 (eval "$lt_compile" 2>out/conftest.err) 9554 ac_status=$? 9555 cat out/conftest.err >&5 9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9557 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9558 then 9559 # The compiler can only warn and ignore the option if not recognized 9560 # So say no if there are warnings 9561 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9562 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9563 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9564 lt_cv_prog_compiler_c_o=yes 9565 fi 9566 fi 9567 chmod u+w . 2>&5 9568 $RM conftest* 9569 # SGI C++ compiler will create directory out/ii_files/ for 9570 # template instantiation 9571 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9572 $RM out/* && rmdir out 9573 cd .. 9574 $RM -r conftest 9575 $RM conftest* 9576 9577fi 9578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9579$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9580 9581 9582 9583 9584 9585 9586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9587$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9588if ${lt_cv_prog_compiler_c_o+:} false; then : 9589 $as_echo_n "(cached) " >&6 9590else 9591 lt_cv_prog_compiler_c_o=no 9592 $RM -r conftest 2>/dev/null 9593 mkdir conftest 9594 cd conftest 9595 mkdir out 9596 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9597 9598 lt_compiler_flag="-o out/conftest2.$ac_objext" 9599 # Insert the option either (1) after the last *FLAGS variable, or 9600 # (2) before a word containing "conftest.", or (3) at the end. 9601 # Note that $ac_compile itself does not contain backslashes and begins 9602 # with a dollar sign (not a hyphen), so the echo should work correctly. 9603 lt_compile=`echo "$ac_compile" | $SED \ 9604 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9606 -e 's:$: $lt_compiler_flag:'` 9607 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9608 (eval "$lt_compile" 2>out/conftest.err) 9609 ac_status=$? 9610 cat out/conftest.err >&5 9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9612 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9613 then 9614 # The compiler can only warn and ignore the option if not recognized 9615 # So say no if there are warnings 9616 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9617 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9618 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9619 lt_cv_prog_compiler_c_o=yes 9620 fi 9621 fi 9622 chmod u+w . 2>&5 9623 $RM conftest* 9624 # SGI C++ compiler will create directory out/ii_files/ for 9625 # template instantiation 9626 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9627 $RM out/* && rmdir out 9628 cd .. 9629 $RM -r conftest 9630 $RM conftest* 9631 9632fi 9633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9634$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9635 9636 9637 9638 9639hard_links=nottested 9640if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9641 # do not overwrite the value of need_locks provided by the user 9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9643$as_echo_n "checking if we can lock with hard links... " >&6; } 9644 hard_links=yes 9645 $RM conftest* 9646 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9647 touch conftest.a 9648 ln conftest.a conftest.b 2>&5 || hard_links=no 9649 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9651$as_echo "$hard_links" >&6; } 9652 if test no = "$hard_links"; then 9653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9654$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9655 need_locks=warn 9656 fi 9657else 9658 need_locks=no 9659fi 9660 9661 9662 9663 9664 9665 9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9667$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9668 9669 runpath_var= 9670 allow_undefined_flag= 9671 always_export_symbols=no 9672 archive_cmds= 9673 archive_expsym_cmds= 9674 compiler_needs_object=no 9675 enable_shared_with_static_runtimes=no 9676 export_dynamic_flag_spec= 9677 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9678 hardcode_automatic=no 9679 hardcode_direct=no 9680 hardcode_direct_absolute=no 9681 hardcode_libdir_flag_spec= 9682 hardcode_libdir_separator= 9683 hardcode_minus_L=no 9684 hardcode_shlibpath_var=unsupported 9685 inherit_rpath=no 9686 link_all_deplibs=unknown 9687 module_cmds= 9688 module_expsym_cmds= 9689 old_archive_from_new_cmds= 9690 old_archive_from_expsyms_cmds= 9691 thread_safe_flag_spec= 9692 whole_archive_flag_spec= 9693 # include_expsyms should be a list of space-separated symbols to be *always* 9694 # included in the symbol list 9695 include_expsyms= 9696 # exclude_expsyms can be an extended regexp of symbols to exclude 9697 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9698 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9699 # as well as any symbol that contains 'd'. 9700 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9701 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9702 # platforms (ab)use it in PIC code, but their linkers get confused if 9703 # the symbol is explicitly referenced. Since portable code cannot 9704 # rely on this symbol name, it's probably fine to never include it in 9705 # preloaded symbol tables. 9706 # Exclude shared library initialization/finalization symbols. 9707 extract_expsyms_cmds= 9708 9709 case $host_os in 9710 cygwin* | mingw* | pw32* | cegcc*) 9711 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9712 # When not using gcc, we currently assume that we are using 9713 # Microsoft Visual C++. 9714 if test yes != "$GCC"; then 9715 with_gnu_ld=no 9716 fi 9717 ;; 9718 interix*) 9719 # we just hope/assume this is gcc and not c89 (= MSVC++) 9720 with_gnu_ld=yes 9721 ;; 9722 openbsd* | bitrig*) 9723 with_gnu_ld=no 9724 ;; 9725 linux* | k*bsd*-gnu | gnu*) 9726 link_all_deplibs=no 9727 ;; 9728 esac 9729 9730 ld_shlibs=yes 9731 9732 # On some targets, GNU ld is compatible enough with the native linker 9733 # that we're better off using the native interface for both. 9734 lt_use_gnu_ld_interface=no 9735 if test yes = "$with_gnu_ld"; then 9736 case $host_os in 9737 aix*) 9738 # The AIX port of GNU ld has always aspired to compatibility 9739 # with the native linker. However, as the warning in the GNU ld 9740 # block says, versions before 2.19.5* couldn't really create working 9741 # shared libraries, regardless of the interface used. 9742 case `$LD -v 2>&1` in 9743 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9744 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9745 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9746 *) 9747 lt_use_gnu_ld_interface=yes 9748 ;; 9749 esac 9750 ;; 9751 *) 9752 lt_use_gnu_ld_interface=yes 9753 ;; 9754 esac 9755 fi 9756 9757 if test yes = "$lt_use_gnu_ld_interface"; then 9758 # If archive_cmds runs LD, not CC, wlarc should be empty 9759 wlarc='$wl' 9760 9761 # Set some defaults for GNU ld with shared library support. These 9762 # are reset later if shared libraries are not supported. Putting them 9763 # here allows them to be overridden if necessary. 9764 runpath_var=LD_RUN_PATH 9765 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9766 export_dynamic_flag_spec='$wl--export-dynamic' 9767 # ancient GNU ld didn't support --whole-archive et. al. 9768 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9769 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9770 else 9771 whole_archive_flag_spec= 9772 fi 9773 supports_anon_versioning=no 9774 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9775 *GNU\ gold*) supports_anon_versioning=yes ;; 9776 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9777 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9778 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9779 *\ 2.11.*) ;; # other 2.11 versions 9780 *) supports_anon_versioning=yes ;; 9781 esac 9782 9783 # See if GNU ld supports shared libraries. 9784 case $host_os in 9785 aix[3-9]*) 9786 # On AIX/PPC, the GNU linker is very broken 9787 if test ia64 != "$host_cpu"; then 9788 ld_shlibs=no 9789 cat <<_LT_EOF 1>&2 9790 9791*** Warning: the GNU linker, at least up to release 2.19, is reported 9792*** to be unable to reliably create shared libraries on AIX. 9793*** Therefore, libtool is disabling shared libraries support. If you 9794*** really care for shared libraries, you may want to install binutils 9795*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9796*** You will then need to restart the configuration process. 9797 9798_LT_EOF 9799 fi 9800 ;; 9801 9802 amigaos*) 9803 case $host_cpu in 9804 powerpc) 9805 # see comment about AmigaOS4 .so support 9806 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9807 archive_expsym_cmds='' 9808 ;; 9809 m68k) 9810 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)' 9811 hardcode_libdir_flag_spec='-L$libdir' 9812 hardcode_minus_L=yes 9813 ;; 9814 esac 9815 ;; 9816 9817 beos*) 9818 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9819 allow_undefined_flag=unsupported 9820 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9821 # support --undefined. This deserves some investigation. FIXME 9822 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9823 else 9824 ld_shlibs=no 9825 fi 9826 ;; 9827 9828 cygwin* | mingw* | pw32* | cegcc*) 9829 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9830 # as there is no search path for DLLs. 9831 hardcode_libdir_flag_spec='-L$libdir' 9832 export_dynamic_flag_spec='$wl--export-all-symbols' 9833 allow_undefined_flag=unsupported 9834 always_export_symbols=no 9835 enable_shared_with_static_runtimes=yes 9836 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' 9837 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9838 9839 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9840 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9841 # If the export-symbols file already is a .def file, use it as 9842 # is; otherwise, prepend EXPORTS... 9843 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9844 cp $export_symbols $output_objdir/$soname.def; 9845 else 9846 echo EXPORTS > $output_objdir/$soname.def; 9847 cat $export_symbols >> $output_objdir/$soname.def; 9848 fi~ 9849 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9850 else 9851 ld_shlibs=no 9852 fi 9853 ;; 9854 9855 haiku*) 9856 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9857 link_all_deplibs=yes 9858 ;; 9859 9860 os2*) 9861 hardcode_libdir_flag_spec='-L$libdir' 9862 hardcode_minus_L=yes 9863 allow_undefined_flag=unsupported 9864 shrext_cmds=.dll 9865 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9866 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9867 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9868 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9869 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9870 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9871 emximp -o $lib $output_objdir/$libname.def' 9872 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9873 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9874 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9875 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9876 prefix_cmds="$SED"~ 9877 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9878 prefix_cmds="$prefix_cmds -e 1d"; 9879 fi~ 9880 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9881 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9882 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9883 emximp -o $lib $output_objdir/$libname.def' 9884 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9885 enable_shared_with_static_runtimes=yes 9886 ;; 9887 9888 interix[3-9]*) 9889 hardcode_direct=no 9890 hardcode_shlibpath_var=no 9891 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9892 export_dynamic_flag_spec='$wl-E' 9893 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9894 # Instead, shared libraries are loaded at an image base (0x10000000 by 9895 # default) and relocated if they conflict, which is a slow very memory 9896 # consuming and fragmenting process. To avoid this, we pick a random, 9897 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9898 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9899 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9900 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' 9901 ;; 9902 9903 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9904 tmp_diet=no 9905 if test linux-dietlibc = "$host_os"; then 9906 case $cc_basename in 9907 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9908 esac 9909 fi 9910 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9911 && test no = "$tmp_diet" 9912 then 9913 tmp_addflag=' $pic_flag' 9914 tmp_sharedflag='-shared' 9915 case $cc_basename,$host_cpu in 9916 pgcc*) # Portland Group C compiler 9917 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' 9918 tmp_addflag=' $pic_flag' 9919 ;; 9920 pgf77* | pgf90* | pgf95* | pgfortran*) 9921 # Portland Group f77 and f90 compilers 9922 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' 9923 tmp_addflag=' $pic_flag -Mnomain' ;; 9924 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9925 tmp_addflag=' -i_dynamic' ;; 9926 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9927 tmp_addflag=' -i_dynamic -nofor_main' ;; 9928 ifc* | ifort*) # Intel Fortran compiler 9929 tmp_addflag=' -nofor_main' ;; 9930 lf95*) # Lahey Fortran 8.1 9931 whole_archive_flag_spec= 9932 tmp_sharedflag='--shared' ;; 9933 nagfor*) # NAGFOR 5.3 9934 tmp_sharedflag='-Wl,-shared' ;; 9935 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9936 tmp_sharedflag='-qmkshrobj' 9937 tmp_addflag= ;; 9938 nvcc*) # Cuda Compiler Driver 2.2 9939 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' 9940 compiler_needs_object=yes 9941 ;; 9942 esac 9943 case `$CC -V 2>&1 | sed 5q` in 9944 *Sun\ C*) # Sun C 5.9 9945 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' 9946 compiler_needs_object=yes 9947 tmp_sharedflag='-G' ;; 9948 *Sun\ F*) # Sun Fortran 8.3 9949 tmp_sharedflag='-G' ;; 9950 esac 9951 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9952 9953 if test yes = "$supports_anon_versioning"; then 9954 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9955 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9956 echo "local: *; };" >> $output_objdir/$libname.ver~ 9957 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9958 fi 9959 9960 case $cc_basename in 9961 tcc*) 9962 export_dynamic_flag_spec='-rdynamic' 9963 ;; 9964 xlf* | bgf* | bgxlf* | mpixlf*) 9965 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9966 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9967 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9968 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9969 if test yes = "$supports_anon_versioning"; then 9970 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9971 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9972 echo "local: *; };" >> $output_objdir/$libname.ver~ 9973 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9974 fi 9975 ;; 9976 esac 9977 else 9978 ld_shlibs=no 9979 fi 9980 ;; 9981 9982 netbsd* | netbsdelf*-gnu) 9983 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9984 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9985 wlarc= 9986 else 9987 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9988 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9989 fi 9990 ;; 9991 9992 solaris*) 9993 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9994 ld_shlibs=no 9995 cat <<_LT_EOF 1>&2 9996 9997*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9998*** create shared libraries on Solaris systems. Therefore, libtool 9999*** is disabling shared libraries support. We urge you to upgrade GNU 10000*** binutils to release 2.9.1 or newer. Another option is to modify 10001*** your PATH or compiler configuration so that the native linker is 10002*** used, and then restart. 10003 10004_LT_EOF 10005 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10006 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10007 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10008 else 10009 ld_shlibs=no 10010 fi 10011 ;; 10012 10013 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10014 case `$LD -v 2>&1` in 10015 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10016 ld_shlibs=no 10017 cat <<_LT_EOF 1>&2 10018 10019*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10020*** reliably create shared libraries on SCO systems. Therefore, libtool 10021*** is disabling shared libraries support. We urge you to upgrade GNU 10022*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10023*** your PATH or compiler configuration so that the native linker is 10024*** used, and then restart. 10025 10026_LT_EOF 10027 ;; 10028 *) 10029 # For security reasons, it is highly recommended that you always 10030 # use absolute paths for naming shared libraries, and exclude the 10031 # DT_RUNPATH tag from executables and libraries. But doing so 10032 # requires that you compile everything twice, which is a pain. 10033 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10034 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10035 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10036 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10037 else 10038 ld_shlibs=no 10039 fi 10040 ;; 10041 esac 10042 ;; 10043 10044 sunos4*) 10045 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10046 wlarc= 10047 hardcode_direct=yes 10048 hardcode_shlibpath_var=no 10049 ;; 10050 10051 *) 10052 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10053 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10054 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10055 else 10056 ld_shlibs=no 10057 fi 10058 ;; 10059 esac 10060 10061 if test no = "$ld_shlibs"; then 10062 runpath_var= 10063 hardcode_libdir_flag_spec= 10064 export_dynamic_flag_spec= 10065 whole_archive_flag_spec= 10066 fi 10067 else 10068 # PORTME fill in a description of your system's linker (not GNU ld) 10069 case $host_os in 10070 aix3*) 10071 allow_undefined_flag=unsupported 10072 always_export_symbols=yes 10073 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' 10074 # Note: this linker hardcodes the directories in LIBPATH if there 10075 # are no directories specified by -L. 10076 hardcode_minus_L=yes 10077 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10078 # Neither direct hardcoding nor static linking is supported with a 10079 # broken collect2. 10080 hardcode_direct=unsupported 10081 fi 10082 ;; 10083 10084 aix[4-9]*) 10085 if test ia64 = "$host_cpu"; then 10086 # On IA64, the linker does run time linking by default, so we don't 10087 # have to do anything special. 10088 aix_use_runtimelinking=no 10089 exp_sym_flag='-Bexport' 10090 no_entry_flag= 10091 else 10092 # If we're using GNU nm, then we don't want the "-C" option. 10093 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10094 # Without the "-l" option, or with the "-B" option, AIX nm treats 10095 # weak defined symbols like other global defined symbols, whereas 10096 # GNU nm marks them as "W". 10097 # While the 'weak' keyword is ignored in the Export File, we need 10098 # it in the Import File for the 'aix-soname' feature, so we have 10099 # to replace the "-B" option with "-P" for AIX nm. 10100 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10101 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 10102 else 10103 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 10104 fi 10105 aix_use_runtimelinking=no 10106 10107 # Test if we are trying to use run time linking or normal 10108 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10109 # have runtime linking enabled, and use it for executables. 10110 # For shared libraries, we enable/disable runtime linking 10111 # depending on the kind of the shared library created - 10112 # when "with_aix_soname,aix_use_runtimelinking" is: 10113 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10114 # "aix,yes" lib.so shared, rtl:yes, for executables 10115 # lib.a static archive 10116 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10117 # lib.a(lib.so.V) shared, rtl:no, for executables 10118 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10119 # lib.a(lib.so.V) shared, rtl:no 10120 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10121 # lib.a static archive 10122 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10123 for ld_flag in $LDFLAGS; do 10124 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10125 aix_use_runtimelinking=yes 10126 break 10127 fi 10128 done 10129 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10130 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10131 # so we don't have lib.a shared libs to link our executables. 10132 # We have to force runtime linking in this case. 10133 aix_use_runtimelinking=yes 10134 LDFLAGS="$LDFLAGS -Wl,-brtl" 10135 fi 10136 ;; 10137 esac 10138 10139 exp_sym_flag='-bexport' 10140 no_entry_flag='-bnoentry' 10141 fi 10142 10143 # When large executables or shared objects are built, AIX ld can 10144 # have problems creating the table of contents. If linking a library 10145 # or program results in "error TOC overflow" add -mminimal-toc to 10146 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10147 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10148 10149 archive_cmds='' 10150 hardcode_direct=yes 10151 hardcode_direct_absolute=yes 10152 hardcode_libdir_separator=':' 10153 link_all_deplibs=yes 10154 file_list_spec='$wl-f,' 10155 case $with_aix_soname,$aix_use_runtimelinking in 10156 aix,*) ;; # traditional, no import file 10157 svr4,* | *,yes) # use import file 10158 # The Import File defines what to hardcode. 10159 hardcode_direct=no 10160 hardcode_direct_absolute=no 10161 ;; 10162 esac 10163 10164 if test yes = "$GCC"; then 10165 case $host_os in aix4.[012]|aix4.[012].*) 10166 # We only want to do this on AIX 4.2 and lower, the check 10167 # below for broken collect2 doesn't work under 4.3+ 10168 collect2name=`$CC -print-prog-name=collect2` 10169 if test -f "$collect2name" && 10170 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10171 then 10172 # We have reworked collect2 10173 : 10174 else 10175 # We have old collect2 10176 hardcode_direct=unsupported 10177 # It fails to find uninstalled libraries when the uninstalled 10178 # path is not listed in the libpath. Setting hardcode_minus_L 10179 # to unsupported forces relinking 10180 hardcode_minus_L=yes 10181 hardcode_libdir_flag_spec='-L$libdir' 10182 hardcode_libdir_separator= 10183 fi 10184 ;; 10185 esac 10186 shared_flag='-shared' 10187 if test yes = "$aix_use_runtimelinking"; then 10188 shared_flag="$shared_flag "'$wl-G' 10189 fi 10190 # Need to ensure runtime linking is disabled for the traditional 10191 # shared library, or the linker may eventually find shared libraries 10192 # /with/ Import File - we do not want to mix them. 10193 shared_flag_aix='-shared' 10194 shared_flag_svr4='-shared $wl-G' 10195 else 10196 # not using gcc 10197 if test ia64 = "$host_cpu"; then 10198 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10199 # chokes on -Wl,-G. The following line is correct: 10200 shared_flag='-G' 10201 else 10202 if test yes = "$aix_use_runtimelinking"; then 10203 shared_flag='$wl-G' 10204 else 10205 shared_flag='$wl-bM:SRE' 10206 fi 10207 shared_flag_aix='$wl-bM:SRE' 10208 shared_flag_svr4='$wl-G' 10209 fi 10210 fi 10211 10212 export_dynamic_flag_spec='$wl-bexpall' 10213 # It seems that -bexpall does not export symbols beginning with 10214 # underscore (_), so it is better to generate a list of symbols to export. 10215 always_export_symbols=yes 10216 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10217 # Warning - without using the other runtime loading flags (-brtl), 10218 # -berok will link without error, but may produce a broken library. 10219 allow_undefined_flag='-berok' 10220 # Determine the default libpath from the value encoded in an 10221 # empty executable. 10222 if test set = "${lt_cv_aix_libpath+set}"; then 10223 aix_libpath=$lt_cv_aix_libpath 10224else 10225 if ${lt_cv_aix_libpath_+:} false; then : 10226 $as_echo_n "(cached) " >&6 10227else 10228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10229/* end confdefs.h. */ 10230 10231int 10232main () 10233{ 10234 10235 ; 10236 return 0; 10237} 10238_ACEOF 10239if ac_fn_c_try_link "$LINENO"; then : 10240 10241 lt_aix_libpath_sed=' 10242 /Import File Strings/,/^$/ { 10243 /^0/ { 10244 s/^0 *\([^ ]*\) *$/\1/ 10245 p 10246 } 10247 }' 10248 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10249 # Check for a 64-bit object if we didn't find anything. 10250 if test -z "$lt_cv_aix_libpath_"; then 10251 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10252 fi 10253fi 10254rm -f core conftest.err conftest.$ac_objext \ 10255 conftest$ac_exeext conftest.$ac_ext 10256 if test -z "$lt_cv_aix_libpath_"; then 10257 lt_cv_aix_libpath_=/usr/lib:/lib 10258 fi 10259 10260fi 10261 10262 aix_libpath=$lt_cv_aix_libpath_ 10263fi 10264 10265 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10266 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 10267 else 10268 if test ia64 = "$host_cpu"; then 10269 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10270 allow_undefined_flag="-z nodefs" 10271 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" 10272 else 10273 # Determine the default libpath from the value encoded in an 10274 # empty executable. 10275 if test set = "${lt_cv_aix_libpath+set}"; then 10276 aix_libpath=$lt_cv_aix_libpath 10277else 10278 if ${lt_cv_aix_libpath_+:} false; then : 10279 $as_echo_n "(cached) " >&6 10280else 10281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10282/* end confdefs.h. */ 10283 10284int 10285main () 10286{ 10287 10288 ; 10289 return 0; 10290} 10291_ACEOF 10292if ac_fn_c_try_link "$LINENO"; then : 10293 10294 lt_aix_libpath_sed=' 10295 /Import File Strings/,/^$/ { 10296 /^0/ { 10297 s/^0 *\([^ ]*\) *$/\1/ 10298 p 10299 } 10300 }' 10301 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10302 # Check for a 64-bit object if we didn't find anything. 10303 if test -z "$lt_cv_aix_libpath_"; then 10304 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10305 fi 10306fi 10307rm -f core conftest.err conftest.$ac_objext \ 10308 conftest$ac_exeext conftest.$ac_ext 10309 if test -z "$lt_cv_aix_libpath_"; then 10310 lt_cv_aix_libpath_=/usr/lib:/lib 10311 fi 10312 10313fi 10314 10315 aix_libpath=$lt_cv_aix_libpath_ 10316fi 10317 10318 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10319 # Warning - without using the other run time loading flags, 10320 # -berok will link without error, but may produce a broken library. 10321 no_undefined_flag=' $wl-bernotok' 10322 allow_undefined_flag=' $wl-berok' 10323 if test yes = "$with_gnu_ld"; then 10324 # We only use this code for GNU lds that support --whole-archive. 10325 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10326 else 10327 # Exported symbols can be pulled into shared objects from archives 10328 whole_archive_flag_spec='$convenience' 10329 fi 10330 archive_cmds_need_lc=yes 10331 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10332 # -brtl affects multiple linker settings, -berok does not and is overridden later 10333 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10334 if test svr4 != "$with_aix_soname"; then 10335 # This is similar to how AIX traditionally builds its shared libraries. 10336 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 10337 fi 10338 if test aix != "$with_aix_soname"; then 10339 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 10340 else 10341 # used by -dlpreopen to get the symbols 10342 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10343 fi 10344 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10345 fi 10346 fi 10347 ;; 10348 10349 amigaos*) 10350 case $host_cpu in 10351 powerpc) 10352 # see comment about AmigaOS4 .so support 10353 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10354 archive_expsym_cmds='' 10355 ;; 10356 m68k) 10357 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)' 10358 hardcode_libdir_flag_spec='-L$libdir' 10359 hardcode_minus_L=yes 10360 ;; 10361 esac 10362 ;; 10363 10364 bsdi[45]*) 10365 export_dynamic_flag_spec=-rdynamic 10366 ;; 10367 10368 cygwin* | mingw* | pw32* | cegcc*) 10369 # When not using gcc, we currently assume that we are using 10370 # Microsoft Visual C++. 10371 # hardcode_libdir_flag_spec is actually meaningless, as there is 10372 # no search path for DLLs. 10373 case $cc_basename in 10374 cl*) 10375 # Native MSVC 10376 hardcode_libdir_flag_spec=' ' 10377 allow_undefined_flag=unsupported 10378 always_export_symbols=yes 10379 file_list_spec='@' 10380 # Tell ltmain to make .lib files, not .a files. 10381 libext=lib 10382 # Tell ltmain to make .dll files, not .so files. 10383 shrext_cmds=.dll 10384 # FIXME: Setting linknames here is a bad hack. 10385 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10386 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10387 cp "$export_symbols" "$output_objdir/$soname.def"; 10388 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10389 else 10390 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10391 fi~ 10392 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10393 linknames=' 10394 # The linker will not automatically build a static lib if we build a DLL. 10395 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10396 enable_shared_with_static_runtimes=yes 10397 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10398 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10399 # Don't use ranlib 10400 old_postinstall_cmds='chmod 644 $oldlib' 10401 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10402 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10403 case $lt_outputfile in 10404 *.exe|*.EXE) ;; 10405 *) 10406 lt_outputfile=$lt_outputfile.exe 10407 lt_tool_outputfile=$lt_tool_outputfile.exe 10408 ;; 10409 esac~ 10410 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10411 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10412 $RM "$lt_outputfile.manifest"; 10413 fi' 10414 ;; 10415 *) 10416 # Assume MSVC wrapper 10417 hardcode_libdir_flag_spec=' ' 10418 allow_undefined_flag=unsupported 10419 # Tell ltmain to make .lib files, not .a files. 10420 libext=lib 10421 # Tell ltmain to make .dll files, not .so files. 10422 shrext_cmds=.dll 10423 # FIXME: Setting linknames here is a bad hack. 10424 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10425 # The linker will automatically build a .lib file if we build a DLL. 10426 old_archive_from_new_cmds='true' 10427 # FIXME: Should let the user specify the lib program. 10428 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10429 enable_shared_with_static_runtimes=yes 10430 ;; 10431 esac 10432 ;; 10433 10434 darwin* | rhapsody*) 10435 10436 10437 archive_cmds_need_lc=no 10438 hardcode_direct=no 10439 hardcode_automatic=yes 10440 hardcode_shlibpath_var=unsupported 10441 if test yes = "$lt_cv_ld_force_load"; then 10442 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\"`' 10443 10444 else 10445 whole_archive_flag_spec='' 10446 fi 10447 link_all_deplibs=yes 10448 allow_undefined_flag=$_lt_dar_allow_undefined 10449 case $cc_basename in 10450 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10451 *) _lt_dar_can_shared=$GCC ;; 10452 esac 10453 if test yes = "$_lt_dar_can_shared"; then 10454 output_verbose_link_cmd=func_echo_all 10455 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10456 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10457 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" 10458 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" 10459 10460 else 10461 ld_shlibs=no 10462 fi 10463 10464 ;; 10465 10466 dgux*) 10467 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10468 hardcode_libdir_flag_spec='-L$libdir' 10469 hardcode_shlibpath_var=no 10470 ;; 10471 10472 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10473 # support. Future versions do this automatically, but an explicit c++rt0.o 10474 # does not break anything, and helps significantly (at the cost of a little 10475 # extra space). 10476 freebsd2.2*) 10477 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10478 hardcode_libdir_flag_spec='-R$libdir' 10479 hardcode_direct=yes 10480 hardcode_shlibpath_var=no 10481 ;; 10482 10483 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10484 freebsd2.*) 10485 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10486 hardcode_direct=yes 10487 hardcode_minus_L=yes 10488 hardcode_shlibpath_var=no 10489 ;; 10490 10491 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10492 freebsd* | dragonfly*) 10493 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10494 hardcode_libdir_flag_spec='-R$libdir' 10495 hardcode_direct=yes 10496 hardcode_shlibpath_var=no 10497 ;; 10498 10499 hpux9*) 10500 if test yes = "$GCC"; then 10501 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10502 else 10503 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10504 fi 10505 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10506 hardcode_libdir_separator=: 10507 hardcode_direct=yes 10508 10509 # hardcode_minus_L: Not really in the search PATH, 10510 # but as the default location of the library. 10511 hardcode_minus_L=yes 10512 export_dynamic_flag_spec='$wl-E' 10513 ;; 10514 10515 hpux10*) 10516 if test yes,no = "$GCC,$with_gnu_ld"; then 10517 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10518 else 10519 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10520 fi 10521 if test no = "$with_gnu_ld"; then 10522 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10523 hardcode_libdir_separator=: 10524 hardcode_direct=yes 10525 hardcode_direct_absolute=yes 10526 export_dynamic_flag_spec='$wl-E' 10527 # hardcode_minus_L: Not really in the search PATH, 10528 # but as the default location of the library. 10529 hardcode_minus_L=yes 10530 fi 10531 ;; 10532 10533 hpux11*) 10534 if test yes,no = "$GCC,$with_gnu_ld"; then 10535 case $host_cpu in 10536 hppa*64*) 10537 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10538 ;; 10539 ia64*) 10540 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10541 ;; 10542 *) 10543 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10544 ;; 10545 esac 10546 else 10547 case $host_cpu in 10548 hppa*64*) 10549 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10550 ;; 10551 ia64*) 10552 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10553 ;; 10554 *) 10555 10556 # Older versions of the 11.00 compiler do not understand -b yet 10557 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10559$as_echo_n "checking if $CC understands -b... " >&6; } 10560if ${lt_cv_prog_compiler__b+:} false; then : 10561 $as_echo_n "(cached) " >&6 10562else 10563 lt_cv_prog_compiler__b=no 10564 save_LDFLAGS=$LDFLAGS 10565 LDFLAGS="$LDFLAGS -b" 10566 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10567 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10568 # The linker can only warn and ignore the option if not recognized 10569 # So say no if there are warnings 10570 if test -s conftest.err; then 10571 # Append any errors to the config.log. 10572 cat conftest.err 1>&5 10573 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10574 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10575 if diff conftest.exp conftest.er2 >/dev/null; then 10576 lt_cv_prog_compiler__b=yes 10577 fi 10578 else 10579 lt_cv_prog_compiler__b=yes 10580 fi 10581 fi 10582 $RM -r conftest* 10583 LDFLAGS=$save_LDFLAGS 10584 10585fi 10586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10587$as_echo "$lt_cv_prog_compiler__b" >&6; } 10588 10589if test yes = "$lt_cv_prog_compiler__b"; then 10590 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10591else 10592 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10593fi 10594 10595 ;; 10596 esac 10597 fi 10598 if test no = "$with_gnu_ld"; then 10599 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10600 hardcode_libdir_separator=: 10601 10602 case $host_cpu in 10603 hppa*64*|ia64*) 10604 hardcode_direct=no 10605 hardcode_shlibpath_var=no 10606 ;; 10607 *) 10608 hardcode_direct=yes 10609 hardcode_direct_absolute=yes 10610 export_dynamic_flag_spec='$wl-E' 10611 10612 # hardcode_minus_L: Not really in the search PATH, 10613 # but as the default location of the library. 10614 hardcode_minus_L=yes 10615 ;; 10616 esac 10617 fi 10618 ;; 10619 10620 irix5* | irix6* | nonstopux*) 10621 if test yes = "$GCC"; then 10622 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' 10623 # Try to use the -exported_symbol ld option, if it does not 10624 # work, assume that -exports_file does not work either and 10625 # implicitly export all symbols. 10626 # This should be the same for all languages, so no per-tag cache variable. 10627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10628$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10629if ${lt_cv_irix_exported_symbol+:} false; then : 10630 $as_echo_n "(cached) " >&6 10631else 10632 save_LDFLAGS=$LDFLAGS 10633 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10635/* end confdefs.h. */ 10636int foo (void) { return 0; } 10637_ACEOF 10638if ac_fn_c_try_link "$LINENO"; then : 10639 lt_cv_irix_exported_symbol=yes 10640else 10641 lt_cv_irix_exported_symbol=no 10642fi 10643rm -f core conftest.err conftest.$ac_objext \ 10644 conftest$ac_exeext conftest.$ac_ext 10645 LDFLAGS=$save_LDFLAGS 10646fi 10647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10648$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10649 if test yes = "$lt_cv_irix_exported_symbol"; then 10650 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' 10651 fi 10652 link_all_deplibs=no 10653 else 10654 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' 10655 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' 10656 fi 10657 archive_cmds_need_lc='no' 10658 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10659 hardcode_libdir_separator=: 10660 inherit_rpath=yes 10661 link_all_deplibs=yes 10662 ;; 10663 10664 linux*) 10665 case $cc_basename in 10666 tcc*) 10667 # Fabrice Bellard et al's Tiny C Compiler 10668 ld_shlibs=yes 10669 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10670 ;; 10671 esac 10672 ;; 10673 10674 netbsd* | netbsdelf*-gnu) 10675 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10676 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10677 else 10678 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10679 fi 10680 hardcode_libdir_flag_spec='-R$libdir' 10681 hardcode_direct=yes 10682 hardcode_shlibpath_var=no 10683 ;; 10684 10685 newsos6) 10686 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10687 hardcode_direct=yes 10688 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10689 hardcode_libdir_separator=: 10690 hardcode_shlibpath_var=no 10691 ;; 10692 10693 *nto* | *qnx*) 10694 ;; 10695 10696 openbsd* | bitrig*) 10697 if test -f /usr/libexec/ld.so; then 10698 hardcode_direct=yes 10699 hardcode_shlibpath_var=no 10700 hardcode_direct_absolute=yes 10701 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10702 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10703 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10704 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10705 export_dynamic_flag_spec='$wl-E' 10706 else 10707 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10708 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10709 fi 10710 else 10711 ld_shlibs=no 10712 fi 10713 ;; 10714 10715 os2*) 10716 hardcode_libdir_flag_spec='-L$libdir' 10717 hardcode_minus_L=yes 10718 allow_undefined_flag=unsupported 10719 shrext_cmds=.dll 10720 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10721 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10722 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10723 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10724 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10725 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10726 emximp -o $lib $output_objdir/$libname.def' 10727 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10728 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10729 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10730 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10731 prefix_cmds="$SED"~ 10732 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10733 prefix_cmds="$prefix_cmds -e 1d"; 10734 fi~ 10735 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10736 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10737 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10738 emximp -o $lib $output_objdir/$libname.def' 10739 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10740 enable_shared_with_static_runtimes=yes 10741 ;; 10742 10743 osf3*) 10744 if test yes = "$GCC"; then 10745 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10746 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' 10747 else 10748 allow_undefined_flag=' -expect_unresolved \*' 10749 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' 10750 fi 10751 archive_cmds_need_lc='no' 10752 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10753 hardcode_libdir_separator=: 10754 ;; 10755 10756 osf4* | osf5*) # as osf3* with the addition of -msym flag 10757 if test yes = "$GCC"; then 10758 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10759 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' 10760 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10761 else 10762 allow_undefined_flag=' -expect_unresolved \*' 10763 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' 10764 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~ 10765 $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' 10766 10767 # Both c and cxx compiler support -rpath directly 10768 hardcode_libdir_flag_spec='-rpath $libdir' 10769 fi 10770 archive_cmds_need_lc='no' 10771 hardcode_libdir_separator=: 10772 ;; 10773 10774 solaris*) 10775 no_undefined_flag=' -z defs' 10776 if test yes = "$GCC"; then 10777 wlarc='$wl' 10778 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10779 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10780 $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' 10781 else 10782 case `$CC -V 2>&1` in 10783 *"Compilers 5.0"*) 10784 wlarc='' 10785 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10786 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10787 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10788 ;; 10789 *) 10790 wlarc='$wl' 10791 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10792 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10793 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10794 ;; 10795 esac 10796 fi 10797 hardcode_libdir_flag_spec='-R$libdir' 10798 hardcode_shlibpath_var=no 10799 case $host_os in 10800 solaris2.[0-5] | solaris2.[0-5].*) ;; 10801 *) 10802 # The compiler driver will combine and reorder linker options, 10803 # but understands '-z linker_flag'. GCC discards it without '$wl', 10804 # but is careful enough not to reorder. 10805 # Supported since Solaris 2.6 (maybe 2.5.1?) 10806 if test yes = "$GCC"; then 10807 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10808 else 10809 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10810 fi 10811 ;; 10812 esac 10813 link_all_deplibs=yes 10814 ;; 10815 10816 sunos4*) 10817 if test sequent = "$host_vendor"; then 10818 # Use $CC to link under sequent, because it throws in some extra .o 10819 # files that make .init and .fini sections work. 10820 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10821 else 10822 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10823 fi 10824 hardcode_libdir_flag_spec='-L$libdir' 10825 hardcode_direct=yes 10826 hardcode_minus_L=yes 10827 hardcode_shlibpath_var=no 10828 ;; 10829 10830 sysv4) 10831 case $host_vendor in 10832 sni) 10833 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10834 hardcode_direct=yes # is this really true??? 10835 ;; 10836 siemens) 10837 ## LD is ld it makes a PLAMLIB 10838 ## CC just makes a GrossModule. 10839 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10840 reload_cmds='$CC -r -o $output$reload_objs' 10841 hardcode_direct=no 10842 ;; 10843 motorola) 10844 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10845 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10846 ;; 10847 esac 10848 runpath_var='LD_RUN_PATH' 10849 hardcode_shlibpath_var=no 10850 ;; 10851 10852 sysv4.3*) 10853 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10854 hardcode_shlibpath_var=no 10855 export_dynamic_flag_spec='-Bexport' 10856 ;; 10857 10858 sysv4*MP*) 10859 if test -d /usr/nec; then 10860 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10861 hardcode_shlibpath_var=no 10862 runpath_var=LD_RUN_PATH 10863 hardcode_runpath_var=yes 10864 ld_shlibs=yes 10865 fi 10866 ;; 10867 10868 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10869 no_undefined_flag='$wl-z,text' 10870 archive_cmds_need_lc=no 10871 hardcode_shlibpath_var=no 10872 runpath_var='LD_RUN_PATH' 10873 10874 if test yes = "$GCC"; then 10875 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10876 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10877 else 10878 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10879 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10880 fi 10881 ;; 10882 10883 sysv5* | sco3.2v5* | sco5v6*) 10884 # Note: We CANNOT use -z defs as we might desire, because we do not 10885 # link with -lc, and that would cause any symbols used from libc to 10886 # always be unresolved, which means just about no library would 10887 # ever link correctly. If we're not using GNU ld we use -z text 10888 # though, which does catch some bad symbols but isn't as heavy-handed 10889 # as -z defs. 10890 no_undefined_flag='$wl-z,text' 10891 allow_undefined_flag='$wl-z,nodefs' 10892 archive_cmds_need_lc=no 10893 hardcode_shlibpath_var=no 10894 hardcode_libdir_flag_spec='$wl-R,$libdir' 10895 hardcode_libdir_separator=':' 10896 link_all_deplibs=yes 10897 export_dynamic_flag_spec='$wl-Bexport' 10898 runpath_var='LD_RUN_PATH' 10899 10900 if test yes = "$GCC"; then 10901 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10902 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10903 else 10904 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10905 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10906 fi 10907 ;; 10908 10909 uts4*) 10910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10911 hardcode_libdir_flag_spec='-L$libdir' 10912 hardcode_shlibpath_var=no 10913 ;; 10914 10915 *) 10916 ld_shlibs=no 10917 ;; 10918 esac 10919 10920 if test sni = "$host_vendor"; then 10921 case $host in 10922 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10923 export_dynamic_flag_spec='$wl-Blargedynsym' 10924 ;; 10925 esac 10926 fi 10927 fi 10928 10929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10930$as_echo "$ld_shlibs" >&6; } 10931test no = "$ld_shlibs" && can_build_shared=no 10932 10933with_gnu_ld=$with_gnu_ld 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949# 10950# Do we need to explicitly link libc? 10951# 10952case "x$archive_cmds_need_lc" in 10953x|xyes) 10954 # Assume -lc should be added 10955 archive_cmds_need_lc=yes 10956 10957 if test yes,yes = "$GCC,$enable_shared"; then 10958 case $archive_cmds in 10959 *'~'*) 10960 # FIXME: we may have to deal with multi-command sequences. 10961 ;; 10962 '$CC '*) 10963 # Test whether the compiler implicitly links with -lc since on some 10964 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10965 # to ld, don't add -lc before -lgcc. 10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10967$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10968if ${lt_cv_archive_cmds_need_lc+:} false; then : 10969 $as_echo_n "(cached) " >&6 10970else 10971 $RM conftest* 10972 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10973 10974 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10975 (eval $ac_compile) 2>&5 10976 ac_status=$? 10977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10978 test $ac_status = 0; } 2>conftest.err; then 10979 soname=conftest 10980 lib=conftest 10981 libobjs=conftest.$ac_objext 10982 deplibs= 10983 wl=$lt_prog_compiler_wl 10984 pic_flag=$lt_prog_compiler_pic 10985 compiler_flags=-v 10986 linker_flags=-v 10987 verstring= 10988 output_objdir=. 10989 libname=conftest 10990 lt_save_allow_undefined_flag=$allow_undefined_flag 10991 allow_undefined_flag= 10992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10993 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10994 ac_status=$? 10995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10996 test $ac_status = 0; } 10997 then 10998 lt_cv_archive_cmds_need_lc=no 10999 else 11000 lt_cv_archive_cmds_need_lc=yes 11001 fi 11002 allow_undefined_flag=$lt_save_allow_undefined_flag 11003 else 11004 cat conftest.err 1>&5 11005 fi 11006 $RM conftest* 11007 11008fi 11009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11010$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11011 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11012 ;; 11013 esac 11014 fi 11015 ;; 11016esac 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11170$as_echo_n "checking dynamic linker characteristics... " >&6; } 11171 11172if test yes = "$GCC"; then 11173 case $host_os in 11174 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11175 *) lt_awk_arg='/^libraries:/' ;; 11176 esac 11177 case $host_os in 11178 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11179 *) lt_sed_strip_eq='s|=/|/|g' ;; 11180 esac 11181 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11182 case $lt_search_path_spec in 11183 *\;*) 11184 # if the path contains ";" then we assume it to be the separator 11185 # otherwise default to the standard path separator (i.e. ":") - it is 11186 # assumed that no part of a normal pathname contains ";" but that should 11187 # okay in the real world where ";" in dirpaths is itself problematic. 11188 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11189 ;; 11190 *) 11191 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11192 ;; 11193 esac 11194 # Ok, now we have the path, separated by spaces, we can step through it 11195 # and add multilib dir if necessary... 11196 lt_tmp_lt_search_path_spec= 11197 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11198 # ...but if some path component already ends with the multilib dir we assume 11199 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11200 case "$lt_multi_os_dir; $lt_search_path_spec " in 11201 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11202 lt_multi_os_dir= 11203 ;; 11204 esac 11205 for lt_sys_path in $lt_search_path_spec; do 11206 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11207 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11208 elif test -n "$lt_multi_os_dir"; then 11209 test -d "$lt_sys_path" && \ 11210 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11211 fi 11212 done 11213 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11214BEGIN {RS = " "; FS = "/|\n";} { 11215 lt_foo = ""; 11216 lt_count = 0; 11217 for (lt_i = NF; lt_i > 0; lt_i--) { 11218 if ($lt_i != "" && $lt_i != ".") { 11219 if ($lt_i == "..") { 11220 lt_count++; 11221 } else { 11222 if (lt_count == 0) { 11223 lt_foo = "/" $lt_i lt_foo; 11224 } else { 11225 lt_count--; 11226 } 11227 } 11228 } 11229 } 11230 if (lt_foo != "") { lt_freq[lt_foo]++; } 11231 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11232}'` 11233 # AWK program above erroneously prepends '/' to C:/dos/paths 11234 # for these hosts. 11235 case $host_os in 11236 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11237 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11238 esac 11239 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11240else 11241 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11242fi 11243library_names_spec= 11244libname_spec='lib$name' 11245soname_spec= 11246shrext_cmds=.so 11247postinstall_cmds= 11248postuninstall_cmds= 11249finish_cmds= 11250finish_eval= 11251shlibpath_var= 11252shlibpath_overrides_runpath=unknown 11253version_type=none 11254dynamic_linker="$host_os ld.so" 11255sys_lib_dlsearch_path_spec="/lib /usr/lib" 11256need_lib_prefix=unknown 11257hardcode_into_libs=no 11258 11259# when you set need_version to no, make sure it does not cause -set_version 11260# flags to be left without arguments 11261need_version=unknown 11262 11263 11264 11265case $host_os in 11266aix3*) 11267 version_type=linux # correct to gnu/linux during the next big refactor 11268 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11269 shlibpath_var=LIBPATH 11270 11271 # AIX 3 has no versioning support, so we append a major version to the name. 11272 soname_spec='$libname$release$shared_ext$major' 11273 ;; 11274 11275aix[4-9]*) 11276 version_type=linux # correct to gnu/linux during the next big refactor 11277 need_lib_prefix=no 11278 need_version=no 11279 hardcode_into_libs=yes 11280 if test ia64 = "$host_cpu"; then 11281 # AIX 5 supports IA64 11282 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11283 shlibpath_var=LD_LIBRARY_PATH 11284 else 11285 # With GCC up to 2.95.x, collect2 would create an import file 11286 # for dependence libraries. The import file would start with 11287 # the line '#! .'. This would cause the generated library to 11288 # depend on '.', always an invalid library. This was fixed in 11289 # development snapshots of GCC prior to 3.0. 11290 case $host_os in 11291 aix4 | aix4.[01] | aix4.[01].*) 11292 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11293 echo ' yes ' 11294 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11295 : 11296 else 11297 can_build_shared=no 11298 fi 11299 ;; 11300 esac 11301 # Using Import Files as archive members, it is possible to support 11302 # filename-based versioning of shared library archives on AIX. While 11303 # this would work for both with and without runtime linking, it will 11304 # prevent static linking of such archives. So we do filename-based 11305 # shared library versioning with .so extension only, which is used 11306 # when both runtime linking and shared linking is enabled. 11307 # Unfortunately, runtime linking may impact performance, so we do 11308 # not want this to be the default eventually. Also, we use the 11309 # versioned .so libs for executables only if there is the -brtl 11310 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11311 # To allow for filename-based versioning support, we need to create 11312 # libNAME.so.V as an archive file, containing: 11313 # *) an Import File, referring to the versioned filename of the 11314 # archive as well as the shared archive member, telling the 11315 # bitwidth (32 or 64) of that shared object, and providing the 11316 # list of exported symbols of that shared object, eventually 11317 # decorated with the 'weak' keyword 11318 # *) the shared object with the F_LOADONLY flag set, to really avoid 11319 # it being seen by the linker. 11320 # At run time we better use the real file rather than another symlink, 11321 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11322 11323 case $with_aix_soname,$aix_use_runtimelinking in 11324 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11325 # soname into executable. Probably we can add versioning support to 11326 # collect2, so additional links can be useful in future. 11327 aix,yes) # traditional libtool 11328 dynamic_linker='AIX unversionable lib.so' 11329 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11330 # instead of lib<name>.a to let people know that these are not 11331 # typical AIX shared libraries. 11332 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11333 ;; 11334 aix,no) # traditional AIX only 11335 dynamic_linker='AIX lib.a(lib.so.V)' 11336 # We preserve .a as extension for shared libraries through AIX4.2 11337 # and later when we are not doing run time linking. 11338 library_names_spec='$libname$release.a $libname.a' 11339 soname_spec='$libname$release$shared_ext$major' 11340 ;; 11341 svr4,*) # full svr4 only 11342 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11343 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11344 # We do not specify a path in Import Files, so LIBPATH fires. 11345 shlibpath_overrides_runpath=yes 11346 ;; 11347 *,yes) # both, prefer svr4 11348 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11349 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11350 # unpreferred sharedlib libNAME.a needs extra handling 11351 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 11352 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 11353 # We do not specify a path in Import Files, so LIBPATH fires. 11354 shlibpath_overrides_runpath=yes 11355 ;; 11356 *,no) # both, prefer aix 11357 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11358 library_names_spec='$libname$release.a $libname.a' 11359 soname_spec='$libname$release$shared_ext$major' 11360 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11361 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 11362 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 11363 ;; 11364 esac 11365 shlibpath_var=LIBPATH 11366 fi 11367 ;; 11368 11369amigaos*) 11370 case $host_cpu in 11371 powerpc) 11372 # Since July 2007 AmigaOS4 officially supports .so libraries. 11373 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11374 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11375 ;; 11376 m68k) 11377 library_names_spec='$libname.ixlibrary $libname.a' 11378 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11379 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 11380 ;; 11381 esac 11382 ;; 11383 11384beos*) 11385 library_names_spec='$libname$shared_ext' 11386 dynamic_linker="$host_os ld.so" 11387 shlibpath_var=LIBRARY_PATH 11388 ;; 11389 11390bsdi[45]*) 11391 version_type=linux # correct to gnu/linux during the next big refactor 11392 need_version=no 11393 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11394 soname_spec='$libname$release$shared_ext$major' 11395 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11396 shlibpath_var=LD_LIBRARY_PATH 11397 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11398 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11399 # the default ld.so.conf also contains /usr/contrib/lib and 11400 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11401 # libtool to hard-code these into programs 11402 ;; 11403 11404cygwin* | mingw* | pw32* | cegcc*) 11405 version_type=windows 11406 shrext_cmds=.dll 11407 need_version=no 11408 need_lib_prefix=no 11409 11410 case $GCC,$cc_basename in 11411 yes,*) 11412 # gcc 11413 library_names_spec='$libname.dll.a' 11414 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11415 postinstall_cmds='base_file=`basename \$file`~ 11416 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11417 dldir=$destdir/`dirname \$dlpath`~ 11418 test -d \$dldir || mkdir -p \$dldir~ 11419 $install_prog $dir/$dlname \$dldir/$dlname~ 11420 chmod a+x \$dldir/$dlname~ 11421 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11422 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11423 fi' 11424 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11425 dlpath=$dir/\$dldll~ 11426 $RM \$dlpath' 11427 shlibpath_overrides_runpath=yes 11428 11429 case $host_os in 11430 cygwin*) 11431 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11432 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11433 11434 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11435 ;; 11436 mingw* | cegcc*) 11437 # MinGW DLLs use traditional 'lib' prefix 11438 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11439 ;; 11440 pw32*) 11441 # pw32 DLLs use 'pw' prefix rather than 'lib' 11442 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11443 ;; 11444 esac 11445 dynamic_linker='Win32 ld.exe' 11446 ;; 11447 11448 *,cl*) 11449 # Native MSVC 11450 libname_spec='$name' 11451 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11452 library_names_spec='$libname.dll.lib' 11453 11454 case $build_os in 11455 mingw*) 11456 sys_lib_search_path_spec= 11457 lt_save_ifs=$IFS 11458 IFS=';' 11459 for lt_path in $LIB 11460 do 11461 IFS=$lt_save_ifs 11462 # Let DOS variable expansion print the short 8.3 style file name. 11463 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11464 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11465 done 11466 IFS=$lt_save_ifs 11467 # Convert to MSYS style. 11468 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11469 ;; 11470 cygwin*) 11471 # Convert to unix form, then to dos form, then back to unix form 11472 # but this time dos style (no spaces!) so that the unix form looks 11473 # like /cygdrive/c/PROGRA~1:/cygdr... 11474 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11475 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11476 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11477 ;; 11478 *) 11479 sys_lib_search_path_spec=$LIB 11480 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11481 # It is most probably a Windows format PATH. 11482 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11483 else 11484 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11485 fi 11486 # FIXME: find the short name or the path components, as spaces are 11487 # common. (e.g. "Program Files" -> "PROGRA~1") 11488 ;; 11489 esac 11490 11491 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11492 postinstall_cmds='base_file=`basename \$file`~ 11493 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11494 dldir=$destdir/`dirname \$dlpath`~ 11495 test -d \$dldir || mkdir -p \$dldir~ 11496 $install_prog $dir/$dlname \$dldir/$dlname' 11497 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11498 dlpath=$dir/\$dldll~ 11499 $RM \$dlpath' 11500 shlibpath_overrides_runpath=yes 11501 dynamic_linker='Win32 link.exe' 11502 ;; 11503 11504 *) 11505 # Assume MSVC wrapper 11506 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11507 dynamic_linker='Win32 ld.exe' 11508 ;; 11509 esac 11510 # FIXME: first we should search . and the directory the executable is in 11511 shlibpath_var=PATH 11512 ;; 11513 11514darwin* | rhapsody*) 11515 dynamic_linker="$host_os dyld" 11516 version_type=darwin 11517 need_lib_prefix=no 11518 need_version=no 11519 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11520 soname_spec='$libname$release$major$shared_ext' 11521 shlibpath_overrides_runpath=yes 11522 shlibpath_var=DYLD_LIBRARY_PATH 11523 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11524 11525 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11526 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11527 ;; 11528 11529dgux*) 11530 version_type=linux # correct to gnu/linux during the next big refactor 11531 need_lib_prefix=no 11532 need_version=no 11533 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11534 soname_spec='$libname$release$shared_ext$major' 11535 shlibpath_var=LD_LIBRARY_PATH 11536 ;; 11537 11538freebsd* | dragonfly*) 11539 # DragonFly does not have aout. When/if they implement a new 11540 # versioning mechanism, adjust this. 11541 if test -x /usr/bin/objformat; then 11542 objformat=`/usr/bin/objformat` 11543 else 11544 case $host_os in 11545 freebsd[23].*) objformat=aout ;; 11546 *) objformat=elf ;; 11547 esac 11548 fi 11549 version_type=freebsd-$objformat 11550 case $version_type in 11551 freebsd-elf*) 11552 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11553 soname_spec='$libname$release$shared_ext$major' 11554 need_version=no 11555 need_lib_prefix=no 11556 ;; 11557 freebsd-*) 11558 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11559 need_version=yes 11560 ;; 11561 esac 11562 shlibpath_var=LD_LIBRARY_PATH 11563 case $host_os in 11564 freebsd2.*) 11565 shlibpath_overrides_runpath=yes 11566 ;; 11567 freebsd3.[01]* | freebsdelf3.[01]*) 11568 shlibpath_overrides_runpath=yes 11569 hardcode_into_libs=yes 11570 ;; 11571 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11572 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11573 shlibpath_overrides_runpath=no 11574 hardcode_into_libs=yes 11575 ;; 11576 *) # from 4.6 on, and DragonFly 11577 shlibpath_overrides_runpath=yes 11578 hardcode_into_libs=yes 11579 ;; 11580 esac 11581 ;; 11582 11583haiku*) 11584 version_type=linux # correct to gnu/linux during the next big refactor 11585 need_lib_prefix=no 11586 need_version=no 11587 dynamic_linker="$host_os runtime_loader" 11588 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11589 soname_spec='$libname$release$shared_ext$major' 11590 shlibpath_var=LIBRARY_PATH 11591 shlibpath_overrides_runpath=no 11592 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11593 hardcode_into_libs=yes 11594 ;; 11595 11596hpux9* | hpux10* | hpux11*) 11597 # Give a soname corresponding to the major version so that dld.sl refuses to 11598 # link against other versions. 11599 version_type=sunos 11600 need_lib_prefix=no 11601 need_version=no 11602 case $host_cpu in 11603 ia64*) 11604 shrext_cmds='.so' 11605 hardcode_into_libs=yes 11606 dynamic_linker="$host_os dld.so" 11607 shlibpath_var=LD_LIBRARY_PATH 11608 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11609 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11610 soname_spec='$libname$release$shared_ext$major' 11611 if test 32 = "$HPUX_IA64_MODE"; then 11612 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11613 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11614 else 11615 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11616 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11617 fi 11618 ;; 11619 hppa*64*) 11620 shrext_cmds='.sl' 11621 hardcode_into_libs=yes 11622 dynamic_linker="$host_os dld.sl" 11623 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11624 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11625 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11626 soname_spec='$libname$release$shared_ext$major' 11627 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11628 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11629 ;; 11630 *) 11631 shrext_cmds='.sl' 11632 dynamic_linker="$host_os dld.sl" 11633 shlibpath_var=SHLIB_PATH 11634 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11635 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11636 soname_spec='$libname$release$shared_ext$major' 11637 ;; 11638 esac 11639 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11640 postinstall_cmds='chmod 555 $lib' 11641 # or fails outright, so override atomically: 11642 install_override_mode=555 11643 ;; 11644 11645interix[3-9]*) 11646 version_type=linux # correct to gnu/linux during the next big refactor 11647 need_lib_prefix=no 11648 need_version=no 11649 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11650 soname_spec='$libname$release$shared_ext$major' 11651 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11652 shlibpath_var=LD_LIBRARY_PATH 11653 shlibpath_overrides_runpath=no 11654 hardcode_into_libs=yes 11655 ;; 11656 11657irix5* | irix6* | nonstopux*) 11658 case $host_os in 11659 nonstopux*) version_type=nonstopux ;; 11660 *) 11661 if test yes = "$lt_cv_prog_gnu_ld"; then 11662 version_type=linux # correct to gnu/linux during the next big refactor 11663 else 11664 version_type=irix 11665 fi ;; 11666 esac 11667 need_lib_prefix=no 11668 need_version=no 11669 soname_spec='$libname$release$shared_ext$major' 11670 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11671 case $host_os in 11672 irix5* | nonstopux*) 11673 libsuff= shlibsuff= 11674 ;; 11675 *) 11676 case $LD in # libtool.m4 will add one of these switches to LD 11677 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11678 libsuff= shlibsuff= libmagic=32-bit;; 11679 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11680 libsuff=32 shlibsuff=N32 libmagic=N32;; 11681 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11682 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11683 *) libsuff= shlibsuff= libmagic=never-match;; 11684 esac 11685 ;; 11686 esac 11687 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11688 shlibpath_overrides_runpath=no 11689 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11690 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11691 hardcode_into_libs=yes 11692 ;; 11693 11694# No shared lib support for Linux oldld, aout, or coff. 11695linux*oldld* | linux*aout* | linux*coff*) 11696 dynamic_linker=no 11697 ;; 11698 11699linux*android*) 11700 version_type=none # Android doesn't support versioned libraries. 11701 need_lib_prefix=no 11702 need_version=no 11703 library_names_spec='$libname$release$shared_ext' 11704 soname_spec='$libname$release$shared_ext' 11705 finish_cmds= 11706 shlibpath_var=LD_LIBRARY_PATH 11707 shlibpath_overrides_runpath=yes 11708 11709 # This implies no fast_install, which is unacceptable. 11710 # Some rework will be needed to allow for fast_install 11711 # before this can be enabled. 11712 hardcode_into_libs=yes 11713 11714 dynamic_linker='Android linker' 11715 # Don't embed -rpath directories since the linker doesn't support them. 11716 hardcode_libdir_flag_spec='-L$libdir' 11717 ;; 11718 11719# This must be glibc/ELF. 11720linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11721 version_type=linux # correct to gnu/linux during the next big refactor 11722 need_lib_prefix=no 11723 need_version=no 11724 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11725 soname_spec='$libname$release$shared_ext$major' 11726 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11727 shlibpath_var=LD_LIBRARY_PATH 11728 shlibpath_overrides_runpath=no 11729 11730 # Some binutils ld are patched to set DT_RUNPATH 11731 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11732 $as_echo_n "(cached) " >&6 11733else 11734 lt_cv_shlibpath_overrides_runpath=no 11735 save_LDFLAGS=$LDFLAGS 11736 save_libdir=$libdir 11737 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11738 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11740/* end confdefs.h. */ 11741 11742int 11743main () 11744{ 11745 11746 ; 11747 return 0; 11748} 11749_ACEOF 11750if ac_fn_c_try_link "$LINENO"; then : 11751 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11752 lt_cv_shlibpath_overrides_runpath=yes 11753fi 11754fi 11755rm -f core conftest.err conftest.$ac_objext \ 11756 conftest$ac_exeext conftest.$ac_ext 11757 LDFLAGS=$save_LDFLAGS 11758 libdir=$save_libdir 11759 11760fi 11761 11762 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11763 11764 # This implies no fast_install, which is unacceptable. 11765 # Some rework will be needed to allow for fast_install 11766 # before this can be enabled. 11767 hardcode_into_libs=yes 11768 11769 # Ideally, we could use ldconfig to report *all* directores which are 11770 # searched for libraries, however this is still not possible. Aside from not 11771 # being certain /sbin/ldconfig is available, command 11772 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11773 # even though it is searched at run-time. Try to do the best guess by 11774 # appending ld.so.conf contents (and includes) to the search path. 11775 if test -f /etc/ld.so.conf; then 11776 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' ' '` 11777 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11778 fi 11779 11780 # We used to test for /lib/ld.so.1 and disable shared libraries on 11781 # powerpc, because MkLinux only supported shared libraries with the 11782 # GNU dynamic linker. Since this was broken with cross compilers, 11783 # most powerpc-linux boxes support dynamic linking these days and 11784 # people can always --disable-shared, the test was removed, and we 11785 # assume the GNU/Linux dynamic linker is in use. 11786 dynamic_linker='GNU/Linux ld.so' 11787 ;; 11788 11789netbsdelf*-gnu) 11790 version_type=linux 11791 need_lib_prefix=no 11792 need_version=no 11793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11794 soname_spec='${libname}${release}${shared_ext}$major' 11795 shlibpath_var=LD_LIBRARY_PATH 11796 shlibpath_overrides_runpath=no 11797 hardcode_into_libs=yes 11798 dynamic_linker='NetBSD ld.elf_so' 11799 ;; 11800 11801netbsd*) 11802 version_type=sunos 11803 need_lib_prefix=no 11804 need_version=no 11805 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11806 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11807 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11808 dynamic_linker='NetBSD (a.out) ld.so' 11809 else 11810 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11811 soname_spec='$libname$release$shared_ext$major' 11812 dynamic_linker='NetBSD ld.elf_so' 11813 fi 11814 shlibpath_var=LD_LIBRARY_PATH 11815 shlibpath_overrides_runpath=yes 11816 hardcode_into_libs=yes 11817 ;; 11818 11819newsos6) 11820 version_type=linux # correct to gnu/linux during the next big refactor 11821 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11822 shlibpath_var=LD_LIBRARY_PATH 11823 shlibpath_overrides_runpath=yes 11824 ;; 11825 11826*nto* | *qnx*) 11827 version_type=qnx 11828 need_lib_prefix=no 11829 need_version=no 11830 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11831 soname_spec='$libname$release$shared_ext$major' 11832 shlibpath_var=LD_LIBRARY_PATH 11833 shlibpath_overrides_runpath=no 11834 hardcode_into_libs=yes 11835 dynamic_linker='ldqnx.so' 11836 ;; 11837 11838openbsd* | bitrig*) 11839 version_type=sunos 11840 sys_lib_dlsearch_path_spec=/usr/lib 11841 need_lib_prefix=no 11842 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11843 need_version=no 11844 else 11845 need_version=yes 11846 fi 11847 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11848 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11849 shlibpath_var=LD_LIBRARY_PATH 11850 shlibpath_overrides_runpath=yes 11851 ;; 11852 11853os2*) 11854 libname_spec='$name' 11855 version_type=windows 11856 shrext_cmds=.dll 11857 need_version=no 11858 need_lib_prefix=no 11859 # OS/2 can only load a DLL with a base name of 8 characters or less. 11860 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11861 v=$($ECHO $release$versuffix | tr -d .-); 11862 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11863 $ECHO $n$v`$shared_ext' 11864 library_names_spec='${libname}_dll.$libext' 11865 dynamic_linker='OS/2 ld.exe' 11866 shlibpath_var=BEGINLIBPATH 11867 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11868 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11869 postinstall_cmds='base_file=`basename \$file`~ 11870 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11871 dldir=$destdir/`dirname \$dlpath`~ 11872 test -d \$dldir || mkdir -p \$dldir~ 11873 $install_prog $dir/$dlname \$dldir/$dlname~ 11874 chmod a+x \$dldir/$dlname~ 11875 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11876 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11877 fi' 11878 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11879 dlpath=$dir/\$dldll~ 11880 $RM \$dlpath' 11881 ;; 11882 11883osf3* | osf4* | osf5*) 11884 version_type=osf 11885 need_lib_prefix=no 11886 need_version=no 11887 soname_spec='$libname$release$shared_ext$major' 11888 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11889 shlibpath_var=LD_LIBRARY_PATH 11890 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11891 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11892 ;; 11893 11894rdos*) 11895 dynamic_linker=no 11896 ;; 11897 11898solaris*) 11899 version_type=linux # correct to gnu/linux during the next big refactor 11900 need_lib_prefix=no 11901 need_version=no 11902 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11903 soname_spec='$libname$release$shared_ext$major' 11904 shlibpath_var=LD_LIBRARY_PATH 11905 shlibpath_overrides_runpath=yes 11906 hardcode_into_libs=yes 11907 # ldd complains unless libraries are executable 11908 postinstall_cmds='chmod +x $lib' 11909 ;; 11910 11911sunos4*) 11912 version_type=sunos 11913 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11914 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11915 shlibpath_var=LD_LIBRARY_PATH 11916 shlibpath_overrides_runpath=yes 11917 if test yes = "$with_gnu_ld"; then 11918 need_lib_prefix=no 11919 fi 11920 need_version=yes 11921 ;; 11922 11923sysv4 | sysv4.3*) 11924 version_type=linux # correct to gnu/linux during the next big refactor 11925 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11926 soname_spec='$libname$release$shared_ext$major' 11927 shlibpath_var=LD_LIBRARY_PATH 11928 case $host_vendor in 11929 sni) 11930 shlibpath_overrides_runpath=no 11931 need_lib_prefix=no 11932 runpath_var=LD_RUN_PATH 11933 ;; 11934 siemens) 11935 need_lib_prefix=no 11936 ;; 11937 motorola) 11938 need_lib_prefix=no 11939 need_version=no 11940 shlibpath_overrides_runpath=no 11941 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11942 ;; 11943 esac 11944 ;; 11945 11946sysv4*MP*) 11947 if test -d /usr/nec; then 11948 version_type=linux # correct to gnu/linux during the next big refactor 11949 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11950 soname_spec='$libname$shared_ext.$major' 11951 shlibpath_var=LD_LIBRARY_PATH 11952 fi 11953 ;; 11954 11955sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11956 version_type=sco 11957 need_lib_prefix=no 11958 need_version=no 11959 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11960 soname_spec='$libname$release$shared_ext$major' 11961 shlibpath_var=LD_LIBRARY_PATH 11962 shlibpath_overrides_runpath=yes 11963 hardcode_into_libs=yes 11964 if test yes = "$with_gnu_ld"; then 11965 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11966 else 11967 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11968 case $host_os in 11969 sco3.2v5*) 11970 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11971 ;; 11972 esac 11973 fi 11974 sys_lib_dlsearch_path_spec='/usr/lib' 11975 ;; 11976 11977tpf*) 11978 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11979 version_type=linux # correct to gnu/linux during the next big refactor 11980 need_lib_prefix=no 11981 need_version=no 11982 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11983 shlibpath_var=LD_LIBRARY_PATH 11984 shlibpath_overrides_runpath=no 11985 hardcode_into_libs=yes 11986 ;; 11987 11988uts4*) 11989 version_type=linux # correct to gnu/linux during the next big refactor 11990 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11991 soname_spec='$libname$release$shared_ext$major' 11992 shlibpath_var=LD_LIBRARY_PATH 11993 ;; 11994 11995*) 11996 dynamic_linker=no 11997 ;; 11998esac 11999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12000$as_echo "$dynamic_linker" >&6; } 12001test no = "$dynamic_linker" && can_build_shared=no 12002 12003variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12004if test yes = "$GCC"; then 12005 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12006fi 12007 12008if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12009 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12010fi 12011 12012if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12013 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12014fi 12015 12016# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12017configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12018 12019# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12020func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12021 12022# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12023configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12122$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12123hardcode_action= 12124if test -n "$hardcode_libdir_flag_spec" || 12125 test -n "$runpath_var" || 12126 test yes = "$hardcode_automatic"; then 12127 12128 # We can hardcode non-existent directories. 12129 if test no != "$hardcode_direct" && 12130 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12131 # have to relink, otherwise we might link with an installed library 12132 # when we should be linking with a yet-to-be-installed one 12133 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12134 test no != "$hardcode_minus_L"; then 12135 # Linking always hardcodes the temporary library directory. 12136 hardcode_action=relink 12137 else 12138 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12139 hardcode_action=immediate 12140 fi 12141else 12142 # We cannot hardcode anything, or else we can only hardcode existing 12143 # directories. 12144 hardcode_action=unsupported 12145fi 12146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12147$as_echo "$hardcode_action" >&6; } 12148 12149if test relink = "$hardcode_action" || 12150 test yes = "$inherit_rpath"; then 12151 # Fast installation is not supported 12152 enable_fast_install=no 12153elif test yes = "$shlibpath_overrides_runpath" || 12154 test no = "$enable_shared"; then 12155 # Fast installation is not necessary 12156 enable_fast_install=needless 12157fi 12158 12159 12160 12161 12162 12163 12164 if test yes != "$enable_dlopen"; then 12165 enable_dlopen=unknown 12166 enable_dlopen_self=unknown 12167 enable_dlopen_self_static=unknown 12168else 12169 lt_cv_dlopen=no 12170 lt_cv_dlopen_libs= 12171 12172 case $host_os in 12173 beos*) 12174 lt_cv_dlopen=load_add_on 12175 lt_cv_dlopen_libs= 12176 lt_cv_dlopen_self=yes 12177 ;; 12178 12179 mingw* | pw32* | cegcc*) 12180 lt_cv_dlopen=LoadLibrary 12181 lt_cv_dlopen_libs= 12182 ;; 12183 12184 cygwin*) 12185 lt_cv_dlopen=dlopen 12186 lt_cv_dlopen_libs= 12187 ;; 12188 12189 darwin*) 12190 # if libdl is installed we need to link against it 12191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12192$as_echo_n "checking for dlopen in -ldl... " >&6; } 12193if ${ac_cv_lib_dl_dlopen+:} false; then : 12194 $as_echo_n "(cached) " >&6 12195else 12196 ac_check_lib_save_LIBS=$LIBS 12197LIBS="-ldl $LIBS" 12198cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12199/* end confdefs.h. */ 12200 12201/* Override any GCC internal prototype to avoid an error. 12202 Use char because int might match the return type of a GCC 12203 builtin and then its argument prototype would still apply. */ 12204#ifdef __cplusplus 12205extern "C" 12206#endif 12207char dlopen (); 12208int 12209main () 12210{ 12211return dlopen (); 12212 ; 12213 return 0; 12214} 12215_ACEOF 12216if ac_fn_c_try_link "$LINENO"; then : 12217 ac_cv_lib_dl_dlopen=yes 12218else 12219 ac_cv_lib_dl_dlopen=no 12220fi 12221rm -f core conftest.err conftest.$ac_objext \ 12222 conftest$ac_exeext conftest.$ac_ext 12223LIBS=$ac_check_lib_save_LIBS 12224fi 12225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12226$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12227if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12228 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12229else 12230 12231 lt_cv_dlopen=dyld 12232 lt_cv_dlopen_libs= 12233 lt_cv_dlopen_self=yes 12234 12235fi 12236 12237 ;; 12238 12239 tpf*) 12240 # Don't try to run any link tests for TPF. We know it's impossible 12241 # because TPF is a cross-compiler, and we know how we open DSOs. 12242 lt_cv_dlopen=dlopen 12243 lt_cv_dlopen_libs= 12244 lt_cv_dlopen_self=no 12245 ;; 12246 12247 *) 12248 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12249if test "x$ac_cv_func_shl_load" = xyes; then : 12250 lt_cv_dlopen=shl_load 12251else 12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12253$as_echo_n "checking for shl_load in -ldld... " >&6; } 12254if ${ac_cv_lib_dld_shl_load+:} false; then : 12255 $as_echo_n "(cached) " >&6 12256else 12257 ac_check_lib_save_LIBS=$LIBS 12258LIBS="-ldld $LIBS" 12259cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12260/* end confdefs.h. */ 12261 12262/* Override any GCC internal prototype to avoid an error. 12263 Use char because int might match the return type of a GCC 12264 builtin and then its argument prototype would still apply. */ 12265#ifdef __cplusplus 12266extern "C" 12267#endif 12268char shl_load (); 12269int 12270main () 12271{ 12272return shl_load (); 12273 ; 12274 return 0; 12275} 12276_ACEOF 12277if ac_fn_c_try_link "$LINENO"; then : 12278 ac_cv_lib_dld_shl_load=yes 12279else 12280 ac_cv_lib_dld_shl_load=no 12281fi 12282rm -f core conftest.err conftest.$ac_objext \ 12283 conftest$ac_exeext conftest.$ac_ext 12284LIBS=$ac_check_lib_save_LIBS 12285fi 12286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12287$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12288if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12289 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12290else 12291 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12292if test "x$ac_cv_func_dlopen" = xyes; then : 12293 lt_cv_dlopen=dlopen 12294else 12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12296$as_echo_n "checking for dlopen in -ldl... " >&6; } 12297if ${ac_cv_lib_dl_dlopen+:} false; then : 12298 $as_echo_n "(cached) " >&6 12299else 12300 ac_check_lib_save_LIBS=$LIBS 12301LIBS="-ldl $LIBS" 12302cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12303/* end confdefs.h. */ 12304 12305/* Override any GCC internal prototype to avoid an error. 12306 Use char because int might match the return type of a GCC 12307 builtin and then its argument prototype would still apply. */ 12308#ifdef __cplusplus 12309extern "C" 12310#endif 12311char dlopen (); 12312int 12313main () 12314{ 12315return dlopen (); 12316 ; 12317 return 0; 12318} 12319_ACEOF 12320if ac_fn_c_try_link "$LINENO"; then : 12321 ac_cv_lib_dl_dlopen=yes 12322else 12323 ac_cv_lib_dl_dlopen=no 12324fi 12325rm -f core conftest.err conftest.$ac_objext \ 12326 conftest$ac_exeext conftest.$ac_ext 12327LIBS=$ac_check_lib_save_LIBS 12328fi 12329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12330$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12331if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12332 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12333else 12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12335$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12336if ${ac_cv_lib_svld_dlopen+:} false; then : 12337 $as_echo_n "(cached) " >&6 12338else 12339 ac_check_lib_save_LIBS=$LIBS 12340LIBS="-lsvld $LIBS" 12341cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12342/* end confdefs.h. */ 12343 12344/* Override any GCC internal prototype to avoid an error. 12345 Use char because int might match the return type of a GCC 12346 builtin and then its argument prototype would still apply. */ 12347#ifdef __cplusplus 12348extern "C" 12349#endif 12350char dlopen (); 12351int 12352main () 12353{ 12354return dlopen (); 12355 ; 12356 return 0; 12357} 12358_ACEOF 12359if ac_fn_c_try_link "$LINENO"; then : 12360 ac_cv_lib_svld_dlopen=yes 12361else 12362 ac_cv_lib_svld_dlopen=no 12363fi 12364rm -f core conftest.err conftest.$ac_objext \ 12365 conftest$ac_exeext conftest.$ac_ext 12366LIBS=$ac_check_lib_save_LIBS 12367fi 12368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12369$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12370if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12371 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12372else 12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12374$as_echo_n "checking for dld_link in -ldld... " >&6; } 12375if ${ac_cv_lib_dld_dld_link+:} false; then : 12376 $as_echo_n "(cached) " >&6 12377else 12378 ac_check_lib_save_LIBS=$LIBS 12379LIBS="-ldld $LIBS" 12380cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12381/* end confdefs.h. */ 12382 12383/* Override any GCC internal prototype to avoid an error. 12384 Use char because int might match the return type of a GCC 12385 builtin and then its argument prototype would still apply. */ 12386#ifdef __cplusplus 12387extern "C" 12388#endif 12389char dld_link (); 12390int 12391main () 12392{ 12393return dld_link (); 12394 ; 12395 return 0; 12396} 12397_ACEOF 12398if ac_fn_c_try_link "$LINENO"; then : 12399 ac_cv_lib_dld_dld_link=yes 12400else 12401 ac_cv_lib_dld_dld_link=no 12402fi 12403rm -f core conftest.err conftest.$ac_objext \ 12404 conftest$ac_exeext conftest.$ac_ext 12405LIBS=$ac_check_lib_save_LIBS 12406fi 12407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12408$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12409if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12410 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12411fi 12412 12413 12414fi 12415 12416 12417fi 12418 12419 12420fi 12421 12422 12423fi 12424 12425 12426fi 12427 12428 ;; 12429 esac 12430 12431 if test no = "$lt_cv_dlopen"; then 12432 enable_dlopen=no 12433 else 12434 enable_dlopen=yes 12435 fi 12436 12437 case $lt_cv_dlopen in 12438 dlopen) 12439 save_CPPFLAGS=$CPPFLAGS 12440 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12441 12442 save_LDFLAGS=$LDFLAGS 12443 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12444 12445 save_LIBS=$LIBS 12446 LIBS="$lt_cv_dlopen_libs $LIBS" 12447 12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12449$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12450if ${lt_cv_dlopen_self+:} false; then : 12451 $as_echo_n "(cached) " >&6 12452else 12453 if test yes = "$cross_compiling"; then : 12454 lt_cv_dlopen_self=cross 12455else 12456 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12457 lt_status=$lt_dlunknown 12458 cat > conftest.$ac_ext <<_LT_EOF 12459#line $LINENO "configure" 12460#include "confdefs.h" 12461 12462#if HAVE_DLFCN_H 12463#include <dlfcn.h> 12464#endif 12465 12466#include <stdio.h> 12467 12468#ifdef RTLD_GLOBAL 12469# define LT_DLGLOBAL RTLD_GLOBAL 12470#else 12471# ifdef DL_GLOBAL 12472# define LT_DLGLOBAL DL_GLOBAL 12473# else 12474# define LT_DLGLOBAL 0 12475# endif 12476#endif 12477 12478/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12479 find out it does not work in some platform. */ 12480#ifndef LT_DLLAZY_OR_NOW 12481# ifdef RTLD_LAZY 12482# define LT_DLLAZY_OR_NOW RTLD_LAZY 12483# else 12484# ifdef DL_LAZY 12485# define LT_DLLAZY_OR_NOW DL_LAZY 12486# else 12487# ifdef RTLD_NOW 12488# define LT_DLLAZY_OR_NOW RTLD_NOW 12489# else 12490# ifdef DL_NOW 12491# define LT_DLLAZY_OR_NOW DL_NOW 12492# else 12493# define LT_DLLAZY_OR_NOW 0 12494# endif 12495# endif 12496# endif 12497# endif 12498#endif 12499 12500/* When -fvisibility=hidden is used, assume the code has been annotated 12501 correspondingly for the symbols needed. */ 12502#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12503int fnord () __attribute__((visibility("default"))); 12504#endif 12505 12506int fnord () { return 42; } 12507int main () 12508{ 12509 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12510 int status = $lt_dlunknown; 12511 12512 if (self) 12513 { 12514 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12515 else 12516 { 12517 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12518 else puts (dlerror ()); 12519 } 12520 /* dlclose (self); */ 12521 } 12522 else 12523 puts (dlerror ()); 12524 12525 return status; 12526} 12527_LT_EOF 12528 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12529 (eval $ac_link) 2>&5 12530 ac_status=$? 12531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12532 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12533 (./conftest; exit; ) >&5 2>/dev/null 12534 lt_status=$? 12535 case x$lt_status in 12536 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12537 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12538 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12539 esac 12540 else : 12541 # compilation failed 12542 lt_cv_dlopen_self=no 12543 fi 12544fi 12545rm -fr conftest* 12546 12547 12548fi 12549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12550$as_echo "$lt_cv_dlopen_self" >&6; } 12551 12552 if test yes = "$lt_cv_dlopen_self"; then 12553 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12555$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12556if ${lt_cv_dlopen_self_static+:} false; then : 12557 $as_echo_n "(cached) " >&6 12558else 12559 if test yes = "$cross_compiling"; then : 12560 lt_cv_dlopen_self_static=cross 12561else 12562 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12563 lt_status=$lt_dlunknown 12564 cat > conftest.$ac_ext <<_LT_EOF 12565#line $LINENO "configure" 12566#include "confdefs.h" 12567 12568#if HAVE_DLFCN_H 12569#include <dlfcn.h> 12570#endif 12571 12572#include <stdio.h> 12573 12574#ifdef RTLD_GLOBAL 12575# define LT_DLGLOBAL RTLD_GLOBAL 12576#else 12577# ifdef DL_GLOBAL 12578# define LT_DLGLOBAL DL_GLOBAL 12579# else 12580# define LT_DLGLOBAL 0 12581# endif 12582#endif 12583 12584/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12585 find out it does not work in some platform. */ 12586#ifndef LT_DLLAZY_OR_NOW 12587# ifdef RTLD_LAZY 12588# define LT_DLLAZY_OR_NOW RTLD_LAZY 12589# else 12590# ifdef DL_LAZY 12591# define LT_DLLAZY_OR_NOW DL_LAZY 12592# else 12593# ifdef RTLD_NOW 12594# define LT_DLLAZY_OR_NOW RTLD_NOW 12595# else 12596# ifdef DL_NOW 12597# define LT_DLLAZY_OR_NOW DL_NOW 12598# else 12599# define LT_DLLAZY_OR_NOW 0 12600# endif 12601# endif 12602# endif 12603# endif 12604#endif 12605 12606/* When -fvisibility=hidden is used, assume the code has been annotated 12607 correspondingly for the symbols needed. */ 12608#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12609int fnord () __attribute__((visibility("default"))); 12610#endif 12611 12612int fnord () { return 42; } 12613int main () 12614{ 12615 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12616 int status = $lt_dlunknown; 12617 12618 if (self) 12619 { 12620 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12621 else 12622 { 12623 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12624 else puts (dlerror ()); 12625 } 12626 /* dlclose (self); */ 12627 } 12628 else 12629 puts (dlerror ()); 12630 12631 return status; 12632} 12633_LT_EOF 12634 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12635 (eval $ac_link) 2>&5 12636 ac_status=$? 12637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12638 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12639 (./conftest; exit; ) >&5 2>/dev/null 12640 lt_status=$? 12641 case x$lt_status in 12642 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12643 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12644 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12645 esac 12646 else : 12647 # compilation failed 12648 lt_cv_dlopen_self_static=no 12649 fi 12650fi 12651rm -fr conftest* 12652 12653 12654fi 12655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12656$as_echo "$lt_cv_dlopen_self_static" >&6; } 12657 fi 12658 12659 CPPFLAGS=$save_CPPFLAGS 12660 LDFLAGS=$save_LDFLAGS 12661 LIBS=$save_LIBS 12662 ;; 12663 esac 12664 12665 case $lt_cv_dlopen_self in 12666 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12667 *) enable_dlopen_self=unknown ;; 12668 esac 12669 12670 case $lt_cv_dlopen_self_static in 12671 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12672 *) enable_dlopen_self_static=unknown ;; 12673 esac 12674fi 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692striplib= 12693old_striplib= 12694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12695$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12696if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12697 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12698 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12700$as_echo "yes" >&6; } 12701else 12702# FIXME - insert some real tests, host_os isn't really good enough 12703 case $host_os in 12704 darwin*) 12705 if test -n "$STRIP"; then 12706 striplib="$STRIP -x" 12707 old_striplib="$STRIP -S" 12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12709$as_echo "yes" >&6; } 12710 else 12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12712$as_echo "no" >&6; } 12713 fi 12714 ;; 12715 *) 12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12717$as_echo "no" >&6; } 12718 ;; 12719 esac 12720fi 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 # Report what library types will actually be built 12734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12735$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12737$as_echo "$can_build_shared" >&6; } 12738 12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12740$as_echo_n "checking whether to build shared libraries... " >&6; } 12741 test no = "$can_build_shared" && enable_shared=no 12742 12743 # On AIX, shared libraries and static libraries use the same namespace, and 12744 # are all built from PIC. 12745 case $host_os in 12746 aix3*) 12747 test yes = "$enable_shared" && enable_static=no 12748 if test -n "$RANLIB"; then 12749 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12750 postinstall_cmds='$RANLIB $lib' 12751 fi 12752 ;; 12753 12754 aix[4-9]*) 12755 if test ia64 != "$host_cpu"; then 12756 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12757 yes,aix,yes) ;; # shared object as lib.so file only 12758 yes,svr4,*) ;; # shared object as lib.so archive member only 12759 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12760 esac 12761 fi 12762 ;; 12763 esac 12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12765$as_echo "$enable_shared" >&6; } 12766 12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12768$as_echo_n "checking whether to build static libraries... " >&6; } 12769 # Make sure either enable_shared or enable_static is yes. 12770 test yes = "$enable_shared" || enable_static=yes 12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12772$as_echo "$enable_static" >&6; } 12773 12774 12775 12776 12777fi 12778ac_ext=c 12779ac_cpp='$CPP $CPPFLAGS' 12780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12782ac_compiler_gnu=$ac_cv_c_compiler_gnu 12783 12784CC=$lt_save_CC 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 ac_config_commands="$ac_config_commands libtool" 12801 12802 12803 12804 12805# Only expand once: 12806 12807 12808 12809 12810if test "x$prefix" = xNONE; then 12811 as_fn_error $? "No explicit prefix given. 12812 12813Guile-Cairo requires you to explicitly enter in a prefix when 12814configuring. This is because the default prefix, /usr/local, is not in 12815the default guile load path. What you probably want to do is to run 12816 12817 $0 --prefix=/usr 12818 12819so that guile can find the guile-cairo modules when they are installed. 12820 12821If you choose to install to a prefix that is not in guile's load path, 12822you will need to modify GUILE_LOAD_PATH and LD_LIBRARY_PATH every time 12823you run guile. (Which is a pain.)" "$LINENO" 5 12824fi 12825 12826WARN_CFLAGS=-Wall 12827# Check whether --enable-Werror was given. 12828if test "${enable_Werror+set}" = set; then : 12829 enableval=$enable_Werror; 12830else 12831 WARN_CFLAGS="-Wall -Werror" 12832fi 12833 12834 12835 12836# Optimize the DSO symbol hash table -- see ulrich drepper's paper, 12837# "how to write shared libraries" 12838GNULD_LDFLAGS=-Wl,-O1 12839 12840AM_LDFLAGS='$(GNULD_LDFLAGS)' 12841 12842 12843# 12844# Check for Guile 12845# 12846 12847 12848 12849 12850 12851 12852 12853if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12854 if test -n "$ac_tool_prefix"; then 12855 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12856set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12858$as_echo_n "checking for $ac_word... " >&6; } 12859if ${ac_cv_path_PKG_CONFIG+:} false; then : 12860 $as_echo_n "(cached) " >&6 12861else 12862 case $PKG_CONFIG in 12863 [\\/]* | ?:[\\/]*) 12864 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12865 ;; 12866 *) 12867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12868for as_dir in $PATH 12869do 12870 IFS=$as_save_IFS 12871 test -z "$as_dir" && as_dir=. 12872 for ac_exec_ext in '' $ac_executable_extensions; do 12873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12874 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12876 break 2 12877 fi 12878done 12879 done 12880IFS=$as_save_IFS 12881 12882 ;; 12883esac 12884fi 12885PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12886if test -n "$PKG_CONFIG"; then 12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12888$as_echo "$PKG_CONFIG" >&6; } 12889else 12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12891$as_echo "no" >&6; } 12892fi 12893 12894 12895fi 12896if test -z "$ac_cv_path_PKG_CONFIG"; then 12897 ac_pt_PKG_CONFIG=$PKG_CONFIG 12898 # Extract the first word of "pkg-config", so it can be a program name with args. 12899set dummy pkg-config; ac_word=$2 12900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12901$as_echo_n "checking for $ac_word... " >&6; } 12902if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 12903 $as_echo_n "(cached) " >&6 12904else 12905 case $ac_pt_PKG_CONFIG in 12906 [\\/]* | ?:[\\/]*) 12907 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12908 ;; 12909 *) 12910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12911for as_dir in $PATH 12912do 12913 IFS=$as_save_IFS 12914 test -z "$as_dir" && as_dir=. 12915 for ac_exec_ext in '' $ac_executable_extensions; do 12916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12917 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12919 break 2 12920 fi 12921done 12922 done 12923IFS=$as_save_IFS 12924 12925 ;; 12926esac 12927fi 12928ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12929if test -n "$ac_pt_PKG_CONFIG"; then 12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12931$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12932else 12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12934$as_echo "no" >&6; } 12935fi 12936 12937 if test "x$ac_pt_PKG_CONFIG" = x; then 12938 PKG_CONFIG="" 12939 else 12940 case $cross_compiling:$ac_tool_warned in 12941yes:) 12942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12944ac_tool_warned=yes ;; 12945esac 12946 PKG_CONFIG=$ac_pt_PKG_CONFIG 12947 fi 12948else 12949 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12950fi 12951 12952fi 12953if test -n "$PKG_CONFIG"; then 12954 _pkg_min_version=0.9.0 12955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12956$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12957 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12959$as_echo "yes" >&6; } 12960 else 12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12962$as_echo "no" >&6; } 12963 PKG_CONFIG="" 12964 fi 12965fi 12966 _guile_versions_to_search="3.0 2.2 2.0" 12967 if test -n "$GUILE_EFFECTIVE_VERSION"; then 12968 _guile_tmp="" 12969 for v in $_guile_versions_to_search; do 12970 if test "$v" = "$GUILE_EFFECTIVE_VERSION"; then 12971 _guile_tmp=$v 12972 fi 12973 done 12974 if test -z "$_guile_tmp"; then 12975 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12976$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12977as_fn_error $? "searching for guile development files for versions $_guile_versions_to_search, but previously found $GUILE version $GUILE_EFFECTIVE_VERSION 12978See \`config.log' for more details" "$LINENO" 5; } 12979 fi 12980 _guile_versions_to_search=$GUILE_EFFECTIVE_VERSION 12981 fi 12982 GUILE_EFFECTIVE_VERSION="" 12983 _guile_errors="" 12984 for v in $_guile_versions_to_search; do 12985 if test -z "$GUILE_EFFECTIVE_VERSION"; then 12986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for guile $v" >&5 12987$as_echo "$as_me: checking for guile $v" >&6;} 12988 if test -n "$PKG_CONFIG" && \ 12989 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-\$v\""; } >&5 12990 ($PKG_CONFIG --exists --print-errors "guile-$v") 2>&5 12991 ac_status=$? 12992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12993 test $ac_status = 0; }; then 12994 GUILE_EFFECTIVE_VERSION=$v 12995fi 12996 fi 12997 done 12998 12999 if test -z "$GUILE_EFFECTIVE_VERSION"; then 13000 as_fn_error $? " 13001No Guile development packages were found. 13002 13003Please verify that you have Guile installed. If you installed Guile 13004from a binary distribution, please verify that you have also installed 13005the development packages. If you installed it yourself, you might need 13006to adjust your PKG_CONFIG_PATH; see the pkg-config man page for more. 13007" "$LINENO" 5 13008 fi 13009 { $as_echo "$as_me:${as_lineno-$LINENO}: found guile $GUILE_EFFECTIVE_VERSION" >&5 13010$as_echo "$as_me: found guile $GUILE_EFFECTIVE_VERSION" >&6;} 13011 13012 13013 13014 13015# Check whether --with-gnu-ld was given. 13016if test "${with_gnu_ld+set}" = set; then : 13017 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 13018else 13019 with_gnu_ld=no 13020fi 13021 13022# Prepare PATH_SEPARATOR. 13023# The user is always right. 13024if test "${PATH_SEPARATOR+set}" != set; then 13025 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 13026 # contains only /bin. Note that ksh looks also at the FPATH variable, 13027 # so we have to set that as well for the test. 13028 PATH_SEPARATOR=: 13029 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 13030 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 13031 || PATH_SEPARATOR=';' 13032 } 13033fi 13034 13035ac_prog=ld 13036if test "$GCC" = yes; then 13037 # Check if gcc -print-prog-name=ld gives a path. 13038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13039$as_echo_n "checking for ld used by $CC... " >&6; } 13040 case $host in 13041 *-*-mingw*) 13042 # gcc leaves a trailing carriage return which upsets mingw 13043 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13044 *) 13045 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13046 esac 13047 case $ac_prog in 13048 # Accept absolute paths. 13049 [\\/]* | ?:[\\/]*) 13050 re_direlt='/[^/][^/]*/\.\./' 13051 # Canonicalize the pathname of ld 13052 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` 13053 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do 13054 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 13055 done 13056 test -z "$LD" && LD="$ac_prog" 13057 ;; 13058 "") 13059 # If it fails, then pretend we aren't using GCC. 13060 ac_prog=ld 13061 ;; 13062 *) 13063 # If it is relative, then search for the first ld in PATH. 13064 with_gnu_ld=unknown 13065 ;; 13066 esac 13067elif test "$with_gnu_ld" = yes; then 13068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13069$as_echo_n "checking for GNU ld... " >&6; } 13070else 13071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13072$as_echo_n "checking for non-GNU ld... " >&6; } 13073fi 13074if ${acl_cv_path_LD+:} false; then : 13075 $as_echo_n "(cached) " >&6 13076else 13077 if test -z "$LD"; then 13078 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 13079 for ac_dir in $PATH; do 13080 IFS="$acl_save_ifs" 13081 test -z "$ac_dir" && ac_dir=. 13082 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13083 acl_cv_path_LD="$ac_dir/$ac_prog" 13084 # Check to see if the program is GNU ld. I'd rather use --version, 13085 # but apparently some variants of GNU ld only accept -v. 13086 # Break only if it was the GNU/non-GNU ld that we prefer. 13087 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in 13088 *GNU* | *'with BFD'*) 13089 test "$with_gnu_ld" != no && break 13090 ;; 13091 *) 13092 test "$with_gnu_ld" != yes && break 13093 ;; 13094 esac 13095 fi 13096 done 13097 IFS="$acl_save_ifs" 13098else 13099 acl_cv_path_LD="$LD" # Let the user override the test with a path. 13100fi 13101fi 13102 13103LD="$acl_cv_path_LD" 13104if test -n "$LD"; then 13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13106$as_echo "$LD" >&6; } 13107else 13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13109$as_echo "no" >&6; } 13110fi 13111test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13113$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13114if ${acl_cv_prog_gnu_ld+:} false; then : 13115 $as_echo_n "(cached) " >&6 13116else 13117 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13118case `$LD -v 2>&1 </dev/null` in 13119*GNU* | *'with BFD'*) 13120 acl_cv_prog_gnu_ld=yes 13121 ;; 13122*) 13123 acl_cv_prog_gnu_ld=no 13124 ;; 13125esac 13126fi 13127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 13128$as_echo "$acl_cv_prog_gnu_ld" >&6; } 13129with_gnu_ld=$acl_cv_prog_gnu_ld 13130 13131 13132 13133 13134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 13135$as_echo_n "checking for shared library run path origin... " >&6; } 13136if ${acl_cv_rpath+:} false; then : 13137 $as_echo_n "(cached) " >&6 13138else 13139 13140 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 13141 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 13142 . ./conftest.sh 13143 rm -f ./conftest.sh 13144 acl_cv_rpath=done 13145 13146fi 13147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 13148$as_echo "$acl_cv_rpath" >&6; } 13149 wl="$acl_cv_wl" 13150 acl_libext="$acl_cv_libext" 13151 acl_shlibext="$acl_cv_shlibext" 13152 acl_libname_spec="$acl_cv_libname_spec" 13153 acl_library_names_spec="$acl_cv_library_names_spec" 13154 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 13155 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 13156 acl_hardcode_direct="$acl_cv_hardcode_direct" 13157 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 13158 # Check whether --enable-rpath was given. 13159if test "${enable_rpath+set}" = set; then : 13160 enableval=$enable_rpath; : 13161else 13162 enable_rpath=yes 13163fi 13164 13165 13166 13167 13168 acl_libdirstem=lib 13169 acl_libdirstem2= 13170 case "$host_os" in 13171 solaris*) 13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 13173$as_echo_n "checking for 64-bit host... " >&6; } 13174if ${gl_cv_solaris_64bit+:} false; then : 13175 $as_echo_n "(cached) " >&6 13176else 13177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13178/* end confdefs.h. */ 13179 13180#ifdef _LP64 13181sixtyfour bits 13182#endif 13183 13184_ACEOF 13185if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13186 $EGREP "sixtyfour bits" >/dev/null 2>&1; then : 13187 gl_cv_solaris_64bit=yes 13188else 13189 gl_cv_solaris_64bit=no 13190fi 13191rm -f conftest* 13192 13193 13194fi 13195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 13196$as_echo "$gl_cv_solaris_64bit" >&6; } 13197 if test $gl_cv_solaris_64bit = yes; then 13198 acl_libdirstem=lib/64 13199 case "$host_cpu" in 13200 sparc*) acl_libdirstem2=lib/sparcv9 ;; 13201 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; 13202 esac 13203 fi 13204 ;; 13205 *) 13206 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 13207 if test -n "$searchpath"; then 13208 acl_save_IFS="${IFS= }"; IFS=":" 13209 for searchdir in $searchpath; do 13210 if test -d "$searchdir"; then 13211 case "$searchdir" in 13212 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 13213 */../ | */.. ) 13214 # Better ignore directories of this form. They are misleading. 13215 ;; 13216 *) searchdir=`cd "$searchdir" && pwd` 13217 case "$searchdir" in 13218 */lib64 ) acl_libdirstem=lib64 ;; 13219 esac ;; 13220 esac 13221 fi 13222 done 13223 IFS="$acl_save_IFS" 13224 fi 13225 ;; 13226 esac 13227 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" 13228 13229 13230 13231pkg_failed=no 13232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUILE" >&5 13233$as_echo_n "checking for GUILE... " >&6; } 13234 13235if test -n "$GUILE_CFLAGS"; then 13236 pkg_cv_GUILE_CFLAGS="$GUILE_CFLAGS" 13237 elif test -n "$PKG_CONFIG"; then 13238 if test -n "$PKG_CONFIG" && \ 13239 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-\$GUILE_EFFECTIVE_VERSION\""; } >&5 13240 ($PKG_CONFIG --exists --print-errors "guile-$GUILE_EFFECTIVE_VERSION") 2>&5 13241 ac_status=$? 13242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13243 test $ac_status = 0; }; then 13244 pkg_cv_GUILE_CFLAGS=`$PKG_CONFIG --cflags "guile-$GUILE_EFFECTIVE_VERSION" 2>/dev/null` 13245 test "x$?" != "x0" && pkg_failed=yes 13246else 13247 pkg_failed=yes 13248fi 13249 else 13250 pkg_failed=untried 13251fi 13252if test -n "$GUILE_LIBS"; then 13253 pkg_cv_GUILE_LIBS="$GUILE_LIBS" 13254 elif test -n "$PKG_CONFIG"; then 13255 if test -n "$PKG_CONFIG" && \ 13256 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-\$GUILE_EFFECTIVE_VERSION\""; } >&5 13257 ($PKG_CONFIG --exists --print-errors "guile-$GUILE_EFFECTIVE_VERSION") 2>&5 13258 ac_status=$? 13259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13260 test $ac_status = 0; }; then 13261 pkg_cv_GUILE_LIBS=`$PKG_CONFIG --libs "guile-$GUILE_EFFECTIVE_VERSION" 2>/dev/null` 13262 test "x$?" != "x0" && pkg_failed=yes 13263else 13264 pkg_failed=yes 13265fi 13266 else 13267 pkg_failed=untried 13268fi 13269 13270 13271 13272if test $pkg_failed = yes; then 13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13274$as_echo "no" >&6; } 13275 13276if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13277 _pkg_short_errors_supported=yes 13278else 13279 _pkg_short_errors_supported=no 13280fi 13281 if test $_pkg_short_errors_supported = yes; then 13282 GUILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "guile-$GUILE_EFFECTIVE_VERSION" 2>&1` 13283 else 13284 GUILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "guile-$GUILE_EFFECTIVE_VERSION" 2>&1` 13285 fi 13286 # Put the nasty error message in config.log where it belongs 13287 echo "$GUILE_PKG_ERRORS" >&5 13288 13289 as_fn_error $? "Package requirements (guile-$GUILE_EFFECTIVE_VERSION) were not met: 13290 13291$GUILE_PKG_ERRORS 13292 13293Consider adjusting the PKG_CONFIG_PATH environment variable if you 13294installed software in a non-standard prefix. 13295 13296Alternatively, you may set the environment variables GUILE_CFLAGS 13297and GUILE_LIBS to avoid the need to call pkg-config. 13298See the pkg-config man page for more details." "$LINENO" 5 13299elif test $pkg_failed = untried; then 13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13301$as_echo "no" >&6; } 13302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13303$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13304as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 13305is in your PATH or set the PKG_CONFIG environment variable to the full 13306path to pkg-config. 13307 13308Alternatively, you may set the environment variables GUILE_CFLAGS 13309and GUILE_LIBS to avoid the need to call pkg-config. 13310See the pkg-config man page for more details. 13311 13312To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13313See \`config.log' for more details" "$LINENO" 5; } 13314else 13315 GUILE_CFLAGS=$pkg_cv_GUILE_CFLAGS 13316 GUILE_LIBS=$pkg_cv_GUILE_LIBS 13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13318$as_echo "yes" >&6; } 13319 13320fi 13321 13322 13323 GUILE_LDFLAGS=$GUILE_LIBS 13324 13325 13326 13327 13328 GUILE_LIBS= 13329 if test "$enable_rpath" != no; then 13330 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 13331 rpathdirs= 13332 next= 13333 for opt in $GUILE_LDFLAGS; do 13334 if test -n "$next"; then 13335 dir="$next" 13336 if test "X$dir" != "X/usr/$acl_libdirstem" \ 13337 && test "X$dir" != "X/usr/$acl_libdirstem2"; then 13338 rpathdirs="$rpathdirs $dir" 13339 fi 13340 next= 13341 else 13342 case $opt in 13343 -L) next=yes ;; 13344 -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` 13345 if test "X$dir" != "X/usr/$acl_libdirstem" \ 13346 && test "X$dir" != "X/usr/$acl_libdirstem2"; then 13347 rpathdirs="$rpathdirs $dir" 13348 fi 13349 next= ;; 13350 *) next= ;; 13351 esac 13352 fi 13353 done 13354 if test "X$rpathdirs" != "X"; then 13355 if test -n """"; then 13356 for dir in $rpathdirs; do 13357 GUILE_LIBS="${GUILE_LIBS}${GUILE_LIBS:+ }-R$dir" 13358 done 13359 else 13360 if test -n "$acl_hardcode_libdir_separator"; then 13361 alldirs= 13362 for dir in $rpathdirs; do 13363 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir" 13364 done 13365 acl_save_libdir="$libdir" 13366 libdir="$alldirs" 13367 eval flag=\"$acl_hardcode_libdir_flag_spec\" 13368 libdir="$acl_save_libdir" 13369 GUILE_LIBS="$flag" 13370 else 13371 for dir in $rpathdirs; do 13372 acl_save_libdir="$libdir" 13373 libdir="$dir" 13374 eval flag=\"$acl_hardcode_libdir_flag_spec\" 13375 libdir="$acl_save_libdir" 13376 GUILE_LIBS="${GUILE_LIBS}${GUILE_LIBS:+ }$flag" 13377 done 13378 fi 13379 fi 13380 fi 13381 fi 13382 fi 13383 13384 13385 GUILE_LIBS="$GUILE_LDFLAGS $GUILE_LIBS" 13386 13387 13388 13389 GUILE_LTLIBS= 13390 if test "$enable_rpath" != no; then 13391 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 13392 rpathdirs= 13393 next= 13394 for opt in $GUILE_LDFLAGS; do 13395 if test -n "$next"; then 13396 dir="$next" 13397 if test "X$dir" != "X/usr/$acl_libdirstem" \ 13398 && test "X$dir" != "X/usr/$acl_libdirstem2"; then 13399 rpathdirs="$rpathdirs $dir" 13400 fi 13401 next= 13402 else 13403 case $opt in 13404 -L) next=yes ;; 13405 -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` 13406 if test "X$dir" != "X/usr/$acl_libdirstem" \ 13407 && test "X$dir" != "X/usr/$acl_libdirstem2"; then 13408 rpathdirs="$rpathdirs $dir" 13409 fi 13410 next= ;; 13411 *) next= ;; 13412 esac 13413 fi 13414 done 13415 if test "X$rpathdirs" != "X"; then 13416 if test -n ""yes""; then 13417 for dir in $rpathdirs; do 13418 GUILE_LTLIBS="${GUILE_LTLIBS}${GUILE_LTLIBS:+ }-R$dir" 13419 done 13420 else 13421 if test -n "$acl_hardcode_libdir_separator"; then 13422 alldirs= 13423 for dir in $rpathdirs; do 13424 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir" 13425 done 13426 acl_save_libdir="$libdir" 13427 libdir="$alldirs" 13428 eval flag=\"$acl_hardcode_libdir_flag_spec\" 13429 libdir="$acl_save_libdir" 13430 GUILE_LTLIBS="$flag" 13431 else 13432 for dir in $rpathdirs; do 13433 acl_save_libdir="$libdir" 13434 libdir="$dir" 13435 eval flag=\"$acl_hardcode_libdir_flag_spec\" 13436 libdir="$acl_save_libdir" 13437 GUILE_LTLIBS="${GUILE_LTLIBS}${GUILE_LTLIBS:+ }$flag" 13438 done 13439 fi 13440 fi 13441 fi 13442 fi 13443 fi 13444 13445 13446 GUILE_LTLIBS="$GUILE_LDFLAGS $GUILE_LTLIBS" 13447 13448 13449 13450 13451 13452 13453 13454 13455 13456 13457pkg_failed=no 13458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5 13459$as_echo_n "checking for CAIRO... " >&6; } 13460 13461if test -n "$CAIRO_CFLAGS"; then 13462 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS" 13463 elif test -n "$PKG_CONFIG"; then 13464 if test -n "$PKG_CONFIG" && \ 13465 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.10.0\""; } >&5 13466 ($PKG_CONFIG --exists --print-errors "cairo >= 1.10.0") 2>&5 13467 ac_status=$? 13468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13469 test $ac_status = 0; }; then 13470 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.10.0" 2>/dev/null` 13471 test "x$?" != "x0" && pkg_failed=yes 13472else 13473 pkg_failed=yes 13474fi 13475 else 13476 pkg_failed=untried 13477fi 13478if test -n "$CAIRO_LIBS"; then 13479 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS" 13480 elif test -n "$PKG_CONFIG"; then 13481 if test -n "$PKG_CONFIG" && \ 13482 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.10.0\""; } >&5 13483 ($PKG_CONFIG --exists --print-errors "cairo >= 1.10.0") 2>&5 13484 ac_status=$? 13485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13486 test $ac_status = 0; }; then 13487 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.10.0" 2>/dev/null` 13488 test "x$?" != "x0" && pkg_failed=yes 13489else 13490 pkg_failed=yes 13491fi 13492 else 13493 pkg_failed=untried 13494fi 13495 13496 13497 13498if test $pkg_failed = yes; then 13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13500$as_echo "no" >&6; } 13501 13502if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13503 _pkg_short_errors_supported=yes 13504else 13505 _pkg_short_errors_supported=no 13506fi 13507 if test $_pkg_short_errors_supported = yes; then 13508 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo >= 1.10.0" 2>&1` 13509 else 13510 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo >= 1.10.0" 2>&1` 13511 fi 13512 # Put the nasty error message in config.log where it belongs 13513 echo "$CAIRO_PKG_ERRORS" >&5 13514 13515 as_fn_error $? "Package requirements (cairo >= 1.10.0) were not met: 13516 13517$CAIRO_PKG_ERRORS 13518 13519Consider adjusting the PKG_CONFIG_PATH environment variable if you 13520installed software in a non-standard prefix. 13521 13522Alternatively, you may set the environment variables CAIRO_CFLAGS 13523and CAIRO_LIBS to avoid the need to call pkg-config. 13524See the pkg-config man page for more details." "$LINENO" 5 13525elif test $pkg_failed = untried; then 13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13527$as_echo "no" >&6; } 13528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13529$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13530as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 13531is in your PATH or set the PKG_CONFIG environment variable to the full 13532path to pkg-config. 13533 13534Alternatively, you may set the environment variables CAIRO_CFLAGS 13535and CAIRO_LIBS to avoid the need to call pkg-config. 13536See the pkg-config man page for more details. 13537 13538To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13539See \`config.log' for more details" "$LINENO" 5; } 13540else 13541 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS 13542 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS 13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13544$as_echo "yes" >&6; } 13545 13546fi 13547 13548 13549 13550 13551 13552ac_config_files="$ac_config_files env" 13553 13554ac_config_files="$ac_config_files Makefile guile-cairo.pc guile-cairo/Makefile cairo/Makefile examples/Makefile tests/Makefile tests/unit-tests/Makefile doc/Makefile" 13555 13556cat >confcache <<\_ACEOF 13557# This file is a shell script that caches the results of configure 13558# tests run on this system so they can be shared between configure 13559# scripts and configure runs, see configure's option --config-cache. 13560# It is not useful on other systems. If it contains results you don't 13561# want to keep, you may remove or edit it. 13562# 13563# config.status only pays attention to the cache file if you give it 13564# the --recheck option to rerun configure. 13565# 13566# `ac_cv_env_foo' variables (set or unset) will be overridden when 13567# loading this file, other *unset* `ac_cv_foo' will be assigned the 13568# following values. 13569 13570_ACEOF 13571 13572# The following way of writing the cache mishandles newlines in values, 13573# but we know of no workaround that is simple, portable, and efficient. 13574# So, we kill variables containing newlines. 13575# Ultrix sh set writes to stderr and can't be redirected directly, 13576# and sets the high bit in the cache file unless we assign to the vars. 13577( 13578 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13579 eval ac_val=\$$ac_var 13580 case $ac_val in #( 13581 *${as_nl}*) 13582 case $ac_var in #( 13583 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13584$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13585 esac 13586 case $ac_var in #( 13587 _ | IFS | as_nl) ;; #( 13588 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13589 *) { eval $ac_var=; unset $ac_var;} ;; 13590 esac ;; 13591 esac 13592 done 13593 13594 (set) 2>&1 | 13595 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13596 *${as_nl}ac_space=\ *) 13597 # `set' does not quote correctly, so add quotes: double-quote 13598 # substitution turns \\\\ into \\, and sed turns \\ into \. 13599 sed -n \ 13600 "s/'/'\\\\''/g; 13601 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13602 ;; #( 13603 *) 13604 # `set' quotes correctly as required by POSIX, so do not add quotes. 13605 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13606 ;; 13607 esac | 13608 sort 13609) | 13610 sed ' 13611 /^ac_cv_env_/b end 13612 t clear 13613 :clear 13614 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13615 t end 13616 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13617 :end' >>confcache 13618if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13619 if test -w "$cache_file"; then 13620 if test "x$cache_file" != "x/dev/null"; then 13621 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13622$as_echo "$as_me: updating cache $cache_file" >&6;} 13623 if test ! -f "$cache_file" || test -h "$cache_file"; then 13624 cat confcache >"$cache_file" 13625 else 13626 case $cache_file in #( 13627 */* | ?:*) 13628 mv -f confcache "$cache_file"$$ && 13629 mv -f "$cache_file"$$ "$cache_file" ;; #( 13630 *) 13631 mv -f confcache "$cache_file" ;; 13632 esac 13633 fi 13634 fi 13635 else 13636 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13637$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13638 fi 13639fi 13640rm -f confcache 13641 13642test "x$prefix" = xNONE && prefix=$ac_default_prefix 13643# Let make expand exec_prefix. 13644test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13645 13646DEFS=-DHAVE_CONFIG_H 13647 13648ac_libobjs= 13649ac_ltlibobjs= 13650for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13651 # 1. Remove the extension, and $U if already installed. 13652 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13653 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13654 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13655 # will be set to the directory where LIBOBJS objects are built. 13656 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13657 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13658done 13659LIBOBJS=$ac_libobjs 13660 13661LTLIBOBJS=$ac_ltlibobjs 13662 13663 13664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 13665$as_echo_n "checking that generated files are newer than configure... " >&6; } 13666 if test -n "$am_sleep_pid"; then 13667 # Hide warnings about reused PIDs. 13668 wait $am_sleep_pid 2>/dev/null 13669 fi 13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 13671$as_echo "done" >&6; } 13672 if test -n "$EXEEXT"; then 13673 am__EXEEXT_TRUE= 13674 am__EXEEXT_FALSE='#' 13675else 13676 am__EXEEXT_TRUE='#' 13677 am__EXEEXT_FALSE= 13678fi 13679 13680if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 13681 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 13682Usually this means the macro was only invoked conditionally." "$LINENO" 5 13683fi 13684if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13685 as_fn_error $? "conditional \"AMDEP\" was never defined. 13686Usually this means the macro was only invoked conditionally." "$LINENO" 5 13687fi 13688if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13689 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13690Usually this means the macro was only invoked conditionally." "$LINENO" 5 13691fi 13692if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13693 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13694Usually this means the macro was only invoked conditionally." "$LINENO" 5 13695fi 13696 13697: "${CONFIG_STATUS=./config.status}" 13698ac_write_fail=0 13699ac_clean_files_save=$ac_clean_files 13700ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13701{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13702$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13703as_write_fail=0 13704cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13705#! $SHELL 13706# Generated by $as_me. 13707# Run this file to recreate the current configuration. 13708# Compiler output produced by configure, useful for debugging 13709# configure, is in config.log if it exists. 13710 13711debug=false 13712ac_cs_recheck=false 13713ac_cs_silent=false 13714 13715SHELL=\${CONFIG_SHELL-$SHELL} 13716export SHELL 13717_ASEOF 13718cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13719## -------------------- ## 13720## M4sh Initialization. ## 13721## -------------------- ## 13722 13723# Be more Bourne compatible 13724DUALCASE=1; export DUALCASE # for MKS sh 13725if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13726 emulate sh 13727 NULLCMD=: 13728 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13729 # is contrary to our usage. Disable this feature. 13730 alias -g '${1+"$@"}'='"$@"' 13731 setopt NO_GLOB_SUBST 13732else 13733 case `(set -o) 2>/dev/null` in #( 13734 *posix*) : 13735 set -o posix ;; #( 13736 *) : 13737 ;; 13738esac 13739fi 13740 13741 13742as_nl=' 13743' 13744export as_nl 13745# Printing a long string crashes Solaris 7 /usr/bin/printf. 13746as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13747as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13748as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13749# Prefer a ksh shell builtin over an external printf program on Solaris, 13750# but without wasting forks for bash or zsh. 13751if test -z "$BASH_VERSION$ZSH_VERSION" \ 13752 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13753 as_echo='print -r --' 13754 as_echo_n='print -rn --' 13755elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13756 as_echo='printf %s\n' 13757 as_echo_n='printf %s' 13758else 13759 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13760 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13761 as_echo_n='/usr/ucb/echo -n' 13762 else 13763 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13764 as_echo_n_body='eval 13765 arg=$1; 13766 case $arg in #( 13767 *"$as_nl"*) 13768 expr "X$arg" : "X\\(.*\\)$as_nl"; 13769 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13770 esac; 13771 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13772 ' 13773 export as_echo_n_body 13774 as_echo_n='sh -c $as_echo_n_body as_echo' 13775 fi 13776 export as_echo_body 13777 as_echo='sh -c $as_echo_body as_echo' 13778fi 13779 13780# The user is always right. 13781if test "${PATH_SEPARATOR+set}" != set; then 13782 PATH_SEPARATOR=: 13783 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13784 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13785 PATH_SEPARATOR=';' 13786 } 13787fi 13788 13789 13790# IFS 13791# We need space, tab and new line, in precisely that order. Quoting is 13792# there to prevent editors from complaining about space-tab. 13793# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13794# splitting by setting IFS to empty value.) 13795IFS=" "" $as_nl" 13796 13797# Find who we are. Look in the path if we contain no directory separator. 13798as_myself= 13799case $0 in #(( 13800 *[\\/]* ) as_myself=$0 ;; 13801 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13802for as_dir in $PATH 13803do 13804 IFS=$as_save_IFS 13805 test -z "$as_dir" && as_dir=. 13806 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13807 done 13808IFS=$as_save_IFS 13809 13810 ;; 13811esac 13812# We did not find ourselves, most probably we were run as `sh COMMAND' 13813# in which case we are not to be found in the path. 13814if test "x$as_myself" = x; then 13815 as_myself=$0 13816fi 13817if test ! -f "$as_myself"; then 13818 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13819 exit 1 13820fi 13821 13822# Unset variables that we do not need and which cause bugs (e.g. in 13823# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13824# suppresses any "Segmentation fault" message there. '((' could 13825# trigger a bug in pdksh 5.2.14. 13826for as_var in BASH_ENV ENV MAIL MAILPATH 13827do eval test x\${$as_var+set} = xset \ 13828 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13829done 13830PS1='$ ' 13831PS2='> ' 13832PS4='+ ' 13833 13834# NLS nuisances. 13835LC_ALL=C 13836export LC_ALL 13837LANGUAGE=C 13838export LANGUAGE 13839 13840# CDPATH. 13841(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13842 13843 13844# as_fn_error STATUS ERROR [LINENO LOG_FD] 13845# ---------------------------------------- 13846# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13847# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13848# script with STATUS, using 1 if that was 0. 13849as_fn_error () 13850{ 13851 as_status=$1; test $as_status -eq 0 && as_status=1 13852 if test "$4"; then 13853 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13854 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13855 fi 13856 $as_echo "$as_me: error: $2" >&2 13857 as_fn_exit $as_status 13858} # as_fn_error 13859 13860 13861# as_fn_set_status STATUS 13862# ----------------------- 13863# Set $? to STATUS, without forking. 13864as_fn_set_status () 13865{ 13866 return $1 13867} # as_fn_set_status 13868 13869# as_fn_exit STATUS 13870# ----------------- 13871# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13872as_fn_exit () 13873{ 13874 set +e 13875 as_fn_set_status $1 13876 exit $1 13877} # as_fn_exit 13878 13879# as_fn_unset VAR 13880# --------------- 13881# Portably unset VAR. 13882as_fn_unset () 13883{ 13884 { eval $1=; unset $1;} 13885} 13886as_unset=as_fn_unset 13887# as_fn_append VAR VALUE 13888# ---------------------- 13889# Append the text in VALUE to the end of the definition contained in VAR. Take 13890# advantage of any shell optimizations that allow amortized linear growth over 13891# repeated appends, instead of the typical quadratic growth present in naive 13892# implementations. 13893if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13894 eval 'as_fn_append () 13895 { 13896 eval $1+=\$2 13897 }' 13898else 13899 as_fn_append () 13900 { 13901 eval $1=\$$1\$2 13902 } 13903fi # as_fn_append 13904 13905# as_fn_arith ARG... 13906# ------------------ 13907# Perform arithmetic evaluation on the ARGs, and store the result in the 13908# global $as_val. Take advantage of shells that can avoid forks. The arguments 13909# must be portable across $(()) and expr. 13910if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13911 eval 'as_fn_arith () 13912 { 13913 as_val=$(( $* )) 13914 }' 13915else 13916 as_fn_arith () 13917 { 13918 as_val=`expr "$@" || test $? -eq 1` 13919 } 13920fi # as_fn_arith 13921 13922 13923if expr a : '\(a\)' >/dev/null 2>&1 && 13924 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13925 as_expr=expr 13926else 13927 as_expr=false 13928fi 13929 13930if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13931 as_basename=basename 13932else 13933 as_basename=false 13934fi 13935 13936if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13937 as_dirname=dirname 13938else 13939 as_dirname=false 13940fi 13941 13942as_me=`$as_basename -- "$0" || 13943$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13944 X"$0" : 'X\(//\)$' \| \ 13945 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13946$as_echo X/"$0" | 13947 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13948 s//\1/ 13949 q 13950 } 13951 /^X\/\(\/\/\)$/{ 13952 s//\1/ 13953 q 13954 } 13955 /^X\/\(\/\).*/{ 13956 s//\1/ 13957 q 13958 } 13959 s/.*/./; q'` 13960 13961# Avoid depending upon Character Ranges. 13962as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13963as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13964as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13965as_cr_digits='0123456789' 13966as_cr_alnum=$as_cr_Letters$as_cr_digits 13967 13968ECHO_C= ECHO_N= ECHO_T= 13969case `echo -n x` in #((((( 13970-n*) 13971 case `echo 'xy\c'` in 13972 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13973 xy) ECHO_C='\c';; 13974 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13975 ECHO_T=' ';; 13976 esac;; 13977*) 13978 ECHO_N='-n';; 13979esac 13980 13981rm -f conf$$ conf$$.exe conf$$.file 13982if test -d conf$$.dir; then 13983 rm -f conf$$.dir/conf$$.file 13984else 13985 rm -f conf$$.dir 13986 mkdir conf$$.dir 2>/dev/null 13987fi 13988if (echo >conf$$.file) 2>/dev/null; then 13989 if ln -s conf$$.file conf$$ 2>/dev/null; then 13990 as_ln_s='ln -s' 13991 # ... but there are two gotchas: 13992 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13993 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13994 # In both cases, we have to default to `cp -pR'. 13995 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13996 as_ln_s='cp -pR' 13997 elif ln conf$$.file conf$$ 2>/dev/null; then 13998 as_ln_s=ln 13999 else 14000 as_ln_s='cp -pR' 14001 fi 14002else 14003 as_ln_s='cp -pR' 14004fi 14005rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14006rmdir conf$$.dir 2>/dev/null 14007 14008 14009# as_fn_mkdir_p 14010# ------------- 14011# Create "$as_dir" as a directory, including parents if necessary. 14012as_fn_mkdir_p () 14013{ 14014 14015 case $as_dir in #( 14016 -*) as_dir=./$as_dir;; 14017 esac 14018 test -d "$as_dir" || eval $as_mkdir_p || { 14019 as_dirs= 14020 while :; do 14021 case $as_dir in #( 14022 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14023 *) as_qdir=$as_dir;; 14024 esac 14025 as_dirs="'$as_qdir' $as_dirs" 14026 as_dir=`$as_dirname -- "$as_dir" || 14027$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14028 X"$as_dir" : 'X\(//\)[^/]' \| \ 14029 X"$as_dir" : 'X\(//\)$' \| \ 14030 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14031$as_echo X"$as_dir" | 14032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14033 s//\1/ 14034 q 14035 } 14036 /^X\(\/\/\)[^/].*/{ 14037 s//\1/ 14038 q 14039 } 14040 /^X\(\/\/\)$/{ 14041 s//\1/ 14042 q 14043 } 14044 /^X\(\/\).*/{ 14045 s//\1/ 14046 q 14047 } 14048 s/.*/./; q'` 14049 test -d "$as_dir" && break 14050 done 14051 test -z "$as_dirs" || eval "mkdir $as_dirs" 14052 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14053 14054 14055} # as_fn_mkdir_p 14056if mkdir -p . 2>/dev/null; then 14057 as_mkdir_p='mkdir -p "$as_dir"' 14058else 14059 test -d ./-p && rmdir ./-p 14060 as_mkdir_p=false 14061fi 14062 14063 14064# as_fn_executable_p FILE 14065# ----------------------- 14066# Test if FILE is an executable regular file. 14067as_fn_executable_p () 14068{ 14069 test -f "$1" && test -x "$1" 14070} # as_fn_executable_p 14071as_test_x='test -x' 14072as_executable_p=as_fn_executable_p 14073 14074# Sed expression to map a string onto a valid CPP name. 14075as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14076 14077# Sed expression to map a string onto a valid variable name. 14078as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14079 14080 14081exec 6>&1 14082## ----------------------------------- ## 14083## Main body of $CONFIG_STATUS script. ## 14084## ----------------------------------- ## 14085_ASEOF 14086test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14087 14088cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14089# Save the log message, to keep $0 and so on meaningful, and to 14090# report actual input values of CONFIG_FILES etc. instead of their 14091# values after options handling. 14092ac_log=" 14093This file was extended by guile-cairo $as_me 1.11.0.2-9d63-dirty, which was 14094generated by GNU Autoconf 2.69. Invocation command line was 14095 14096 CONFIG_FILES = $CONFIG_FILES 14097 CONFIG_HEADERS = $CONFIG_HEADERS 14098 CONFIG_LINKS = $CONFIG_LINKS 14099 CONFIG_COMMANDS = $CONFIG_COMMANDS 14100 $ $0 $@ 14101 14102on `(hostname || uname -n) 2>/dev/null | sed 1q` 14103" 14104 14105_ACEOF 14106 14107case $ac_config_files in *" 14108"*) set x $ac_config_files; shift; ac_config_files=$*;; 14109esac 14110 14111case $ac_config_headers in *" 14112"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14113esac 14114 14115 14116cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14117# Files that config.status was made for. 14118config_files="$ac_config_files" 14119config_headers="$ac_config_headers" 14120config_commands="$ac_config_commands" 14121 14122_ACEOF 14123 14124cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14125ac_cs_usage="\ 14126\`$as_me' instantiates files and other configuration actions 14127from templates according to the current configuration. Unless the files 14128and actions are specified as TAGs, all are instantiated by default. 14129 14130Usage: $0 [OPTION]... [TAG]... 14131 14132 -h, --help print this help, then exit 14133 -V, --version print version number and configuration settings, then exit 14134 --config print configuration, then exit 14135 -q, --quiet, --silent 14136 do not print progress messages 14137 -d, --debug don't remove temporary files 14138 --recheck update $as_me by reconfiguring in the same conditions 14139 --file=FILE[:TEMPLATE] 14140 instantiate the configuration file FILE 14141 --header=FILE[:TEMPLATE] 14142 instantiate the configuration header FILE 14143 14144Configuration files: 14145$config_files 14146 14147Configuration headers: 14148$config_headers 14149 14150Configuration commands: 14151$config_commands 14152 14153Report bugs to <guile-user@gnu.org>." 14154 14155_ACEOF 14156cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14157ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14158ac_cs_version="\\ 14159guile-cairo config.status 1.11.0.2-9d63-dirty 14160configured by $0, generated by GNU Autoconf 2.69, 14161 with options \\"\$ac_cs_config\\" 14162 14163Copyright (C) 2012 Free Software Foundation, Inc. 14164This config.status script is free software; the Free Software Foundation 14165gives unlimited permission to copy, distribute and modify it." 14166 14167ac_pwd='$ac_pwd' 14168srcdir='$srcdir' 14169INSTALL='$INSTALL' 14170MKDIR_P='$MKDIR_P' 14171AWK='$AWK' 14172test -n "\$AWK" || AWK=awk 14173_ACEOF 14174 14175cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14176# The default lists apply if the user does not specify any file. 14177ac_need_defaults=: 14178while test $# != 0 14179do 14180 case $1 in 14181 --*=?*) 14182 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14183 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14184 ac_shift=: 14185 ;; 14186 --*=) 14187 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14188 ac_optarg= 14189 ac_shift=: 14190 ;; 14191 *) 14192 ac_option=$1 14193 ac_optarg=$2 14194 ac_shift=shift 14195 ;; 14196 esac 14197 14198 case $ac_option in 14199 # Handling of the options. 14200 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14201 ac_cs_recheck=: ;; 14202 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14203 $as_echo "$ac_cs_version"; exit ;; 14204 --config | --confi | --conf | --con | --co | --c ) 14205 $as_echo "$ac_cs_config"; exit ;; 14206 --debug | --debu | --deb | --de | --d | -d ) 14207 debug=: ;; 14208 --file | --fil | --fi | --f ) 14209 $ac_shift 14210 case $ac_optarg in 14211 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14212 '') as_fn_error $? "missing file argument" ;; 14213 esac 14214 as_fn_append CONFIG_FILES " '$ac_optarg'" 14215 ac_need_defaults=false;; 14216 --header | --heade | --head | --hea ) 14217 $ac_shift 14218 case $ac_optarg in 14219 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14220 esac 14221 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14222 ac_need_defaults=false;; 14223 --he | --h) 14224 # Conflict between --help and --header 14225 as_fn_error $? "ambiguous option: \`$1' 14226Try \`$0 --help' for more information.";; 14227 --help | --hel | -h ) 14228 $as_echo "$ac_cs_usage"; exit ;; 14229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14230 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14231 ac_cs_silent=: ;; 14232 14233 # This is an error. 14234 -*) as_fn_error $? "unrecognized option: \`$1' 14235Try \`$0 --help' for more information." ;; 14236 14237 *) as_fn_append ac_config_targets " $1" 14238 ac_need_defaults=false ;; 14239 14240 esac 14241 shift 14242done 14243 14244ac_configure_extra_args= 14245 14246if $ac_cs_silent; then 14247 exec 6>/dev/null 14248 ac_configure_extra_args="$ac_configure_extra_args --silent" 14249fi 14250 14251_ACEOF 14252cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14253if \$ac_cs_recheck; then 14254 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14255 shift 14256 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14257 CONFIG_SHELL='$SHELL' 14258 export CONFIG_SHELL 14259 exec "\$@" 14260fi 14261 14262_ACEOF 14263cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14264exec 5>>config.log 14265{ 14266 echo 14267 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14268## Running $as_me. ## 14269_ASBOX 14270 $as_echo "$ac_log" 14271} >&5 14272 14273_ACEOF 14274cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14275# 14276# INIT-COMMANDS 14277# 14278AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 14279 14280 14281# The HP-UX ksh and POSIX shell print the target directory to stdout 14282# if CDPATH is set. 14283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14284 14285sed_quote_subst='$sed_quote_subst' 14286double_quote_subst='$double_quote_subst' 14287delay_variable_subst='$delay_variable_subst' 14288macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 14289macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 14290enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 14291enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 14292pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 14293enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 14294shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 14295SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 14296ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 14297PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 14298host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 14299host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 14300host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 14301build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 14302build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 14303build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 14304SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 14305Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 14306GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 14307EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 14308FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 14309LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 14310NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 14311LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 14312max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 14313ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 14314exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 14315lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 14316lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 14317lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 14318lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 14319lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 14320reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 14321reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 14322OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 14323deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 14324file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 14325file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 14326want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 14327DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 14328sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 14329AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 14330AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 14331archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 14332STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 14333RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 14334old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14335old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14336old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 14337lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 14338CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 14339CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 14340compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 14341GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 14342lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 14343lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 14344lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 14345lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 14346lt_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"`' 14347lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 14348nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 14349lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 14350lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 14351objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 14352MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 14353lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 14354lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 14355lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 14356lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 14357lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 14358need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 14359MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 14360DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 14361NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 14362LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 14363OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 14364OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 14365libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 14366shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 14367extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14368archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 14369enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 14370export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 14371whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 14372compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 14373old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 14374old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14375archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 14376archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14377module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 14378module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14379with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 14380allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 14381no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 14382hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 14383hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 14384hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 14385hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 14386hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 14387hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 14388hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 14389inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 14390link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 14391always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 14392export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 14393exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 14394include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 14395prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 14396postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 14397file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 14398variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 14399need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 14400need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 14401version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 14402runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 14403shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 14404shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 14405libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 14406library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 14407soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 14408install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 14409postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14410postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14411finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 14412finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 14413hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 14414sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 14415configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 14416configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 14417hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 14418enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 14419enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 14420enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 14421old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 14422striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 14423 14424LTCC='$LTCC' 14425LTCFLAGS='$LTCFLAGS' 14426compiler='$compiler_DEFAULT' 14427 14428# A function that is used when there is no print builtin or printf. 14429func_fallback_echo () 14430{ 14431 eval 'cat <<_LTECHO_EOF 14432\$1 14433_LTECHO_EOF' 14434} 14435 14436# Quote evaled strings. 14437for var in SHELL \ 14438ECHO \ 14439PATH_SEPARATOR \ 14440SED \ 14441GREP \ 14442EGREP \ 14443FGREP \ 14444LD \ 14445NM \ 14446LN_S \ 14447lt_SP2NL \ 14448lt_NL2SP \ 14449reload_flag \ 14450OBJDUMP \ 14451deplibs_check_method \ 14452file_magic_cmd \ 14453file_magic_glob \ 14454want_nocaseglob \ 14455DLLTOOL \ 14456sharedlib_from_linklib_cmd \ 14457AR \ 14458AR_FLAGS \ 14459archiver_list_spec \ 14460STRIP \ 14461RANLIB \ 14462CC \ 14463CFLAGS \ 14464compiler \ 14465lt_cv_sys_global_symbol_pipe \ 14466lt_cv_sys_global_symbol_to_cdecl \ 14467lt_cv_sys_global_symbol_to_import \ 14468lt_cv_sys_global_symbol_to_c_name_address \ 14469lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14470lt_cv_nm_interface \ 14471nm_file_list_spec \ 14472lt_cv_truncate_bin \ 14473lt_prog_compiler_no_builtin_flag \ 14474lt_prog_compiler_pic \ 14475lt_prog_compiler_wl \ 14476lt_prog_compiler_static \ 14477lt_cv_prog_compiler_c_o \ 14478need_locks \ 14479MANIFEST_TOOL \ 14480DSYMUTIL \ 14481NMEDIT \ 14482LIPO \ 14483OTOOL \ 14484OTOOL64 \ 14485shrext_cmds \ 14486export_dynamic_flag_spec \ 14487whole_archive_flag_spec \ 14488compiler_needs_object \ 14489with_gnu_ld \ 14490allow_undefined_flag \ 14491no_undefined_flag \ 14492hardcode_libdir_flag_spec \ 14493hardcode_libdir_separator \ 14494exclude_expsyms \ 14495include_expsyms \ 14496file_list_spec \ 14497variables_saved_for_relink \ 14498libname_spec \ 14499library_names_spec \ 14500soname_spec \ 14501install_override_mode \ 14502finish_eval \ 14503old_striplib \ 14504striplib; do 14505 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14506 *[\\\\\\\`\\"\\\$]*) 14507 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14508 ;; 14509 *) 14510 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14511 ;; 14512 esac 14513done 14514 14515# Double-quote double-evaled strings. 14516for var in reload_cmds \ 14517old_postinstall_cmds \ 14518old_postuninstall_cmds \ 14519old_archive_cmds \ 14520extract_expsyms_cmds \ 14521old_archive_from_new_cmds \ 14522old_archive_from_expsyms_cmds \ 14523archive_cmds \ 14524archive_expsym_cmds \ 14525module_cmds \ 14526module_expsym_cmds \ 14527export_symbols_cmds \ 14528prelink_cmds \ 14529postlink_cmds \ 14530postinstall_cmds \ 14531postuninstall_cmds \ 14532finish_cmds \ 14533sys_lib_search_path_spec \ 14534configure_time_dlsearch_path \ 14535configure_time_lt_sys_library_path; do 14536 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14537 *[\\\\\\\`\\"\\\$]*) 14538 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14539 ;; 14540 *) 14541 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14542 ;; 14543 esac 14544done 14545 14546ac_aux_dir='$ac_aux_dir' 14547 14548# See if we are running on zsh, and set the options that allow our 14549# commands through without removal of \ escapes INIT. 14550if test -n "\${ZSH_VERSION+set}"; then 14551 setopt NO_GLOB_SUBST 14552fi 14553 14554 14555 PACKAGE='$PACKAGE' 14556 VERSION='$VERSION' 14557 RM='$RM' 14558 ofile='$ofile' 14559 14560 14561 14562 14563_ACEOF 14564 14565cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14566 14567# Handling of arguments. 14568for ac_config_target in $ac_config_targets 14569do 14570 case $ac_config_target in 14571 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14572 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14573 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14574 "env") CONFIG_FILES="$CONFIG_FILES env" ;; 14575 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14576 "guile-cairo.pc") CONFIG_FILES="$CONFIG_FILES guile-cairo.pc" ;; 14577 "guile-cairo/Makefile") CONFIG_FILES="$CONFIG_FILES guile-cairo/Makefile" ;; 14578 "cairo/Makefile") CONFIG_FILES="$CONFIG_FILES cairo/Makefile" ;; 14579 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 14580 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 14581 "tests/unit-tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit-tests/Makefile" ;; 14582 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 14583 14584 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14585 esac 14586done 14587 14588 14589# If the user did not use the arguments to specify the items to instantiate, 14590# then the envvar interface is used. Set only those that are not. 14591# We use the long form for the default assignment because of an extremely 14592# bizarre bug on SunOS 4.1.3. 14593if $ac_need_defaults; then 14594 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14595 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14596 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14597fi 14598 14599# Have a temporary directory for convenience. Make it in the build tree 14600# simply because there is no reason against having it here, and in addition, 14601# creating and moving files from /tmp can sometimes cause problems. 14602# Hook for its removal unless debugging. 14603# Note that there is a small window in which the directory will not be cleaned: 14604# after its creation but before its name has been assigned to `$tmp'. 14605$debug || 14606{ 14607 tmp= ac_tmp= 14608 trap 'exit_status=$? 14609 : "${ac_tmp:=$tmp}" 14610 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14611' 0 14612 trap 'as_fn_exit 1' 1 2 13 15 14613} 14614# Create a (secure) tmp directory for tmp files. 14615 14616{ 14617 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14618 test -d "$tmp" 14619} || 14620{ 14621 tmp=./conf$$-$RANDOM 14622 (umask 077 && mkdir "$tmp") 14623} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14624ac_tmp=$tmp 14625 14626# Set up the scripts for CONFIG_FILES section. 14627# No need to generate them if there are no CONFIG_FILES. 14628# This happens for instance with `./config.status config.h'. 14629if test -n "$CONFIG_FILES"; then 14630 14631 14632ac_cr=`echo X | tr X '\015'` 14633# On cygwin, bash can eat \r inside `` if the user requested igncr. 14634# But we know of no other shell where ac_cr would be empty at this 14635# point, so we can use a bashism as a fallback. 14636if test "x$ac_cr" = x; then 14637 eval ac_cr=\$\'\\r\' 14638fi 14639ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14640if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14641 ac_cs_awk_cr='\\r' 14642else 14643 ac_cs_awk_cr=$ac_cr 14644fi 14645 14646echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14647_ACEOF 14648 14649 14650{ 14651 echo "cat >conf$$subs.awk <<_ACEOF" && 14652 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14653 echo "_ACEOF" 14654} >conf$$subs.sh || 14655 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14656ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14657ac_delim='%!_!# ' 14658for ac_last_try in false false false false false :; do 14659 . ./conf$$subs.sh || 14660 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14661 14662 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14663 if test $ac_delim_n = $ac_delim_num; then 14664 break 14665 elif $ac_last_try; then 14666 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14667 else 14668 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14669 fi 14670done 14671rm -f conf$$subs.sh 14672 14673cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14674cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14675_ACEOF 14676sed -n ' 14677h 14678s/^/S["/; s/!.*/"]=/ 14679p 14680g 14681s/^[^!]*!// 14682:repl 14683t repl 14684s/'"$ac_delim"'$// 14685t delim 14686:nl 14687h 14688s/\(.\{148\}\)..*/\1/ 14689t more1 14690s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14691p 14692n 14693b repl 14694:more1 14695s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14696p 14697g 14698s/.\{148\}// 14699t nl 14700:delim 14701h 14702s/\(.\{148\}\)..*/\1/ 14703t more2 14704s/["\\]/\\&/g; s/^/"/; s/$/"/ 14705p 14706b 14707:more2 14708s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14709p 14710g 14711s/.\{148\}// 14712t delim 14713' <conf$$subs.awk | sed ' 14714/^[^""]/{ 14715 N 14716 s/\n// 14717} 14718' >>$CONFIG_STATUS || ac_write_fail=1 14719rm -f conf$$subs.awk 14720cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14721_ACAWK 14722cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14723 for (key in S) S_is_set[key] = 1 14724 FS = "" 14725 14726} 14727{ 14728 line = $ 0 14729 nfields = split(line, field, "@") 14730 substed = 0 14731 len = length(field[1]) 14732 for (i = 2; i < nfields; i++) { 14733 key = field[i] 14734 keylen = length(key) 14735 if (S_is_set[key]) { 14736 value = S[key] 14737 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14738 len += length(value) + length(field[++i]) 14739 substed = 1 14740 } else 14741 len += 1 + keylen 14742 } 14743 14744 print line 14745} 14746 14747_ACAWK 14748_ACEOF 14749cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14750if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14751 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14752else 14753 cat 14754fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14755 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14756_ACEOF 14757 14758# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14759# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14760# trailing colons and then remove the whole line if VPATH becomes empty 14761# (actually we leave an empty line to preserve line numbers). 14762if test "x$srcdir" = x.; then 14763 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14764h 14765s/// 14766s/^/:/ 14767s/[ ]*$/:/ 14768s/:\$(srcdir):/:/g 14769s/:\${srcdir}:/:/g 14770s/:@srcdir@:/:/g 14771s/^:*// 14772s/:*$// 14773x 14774s/\(=[ ]*\).*/\1/ 14775G 14776s/\n// 14777s/^[^=]*=[ ]*$// 14778}' 14779fi 14780 14781cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14782fi # test -n "$CONFIG_FILES" 14783 14784# Set up the scripts for CONFIG_HEADERS section. 14785# No need to generate them if there are no CONFIG_HEADERS. 14786# This happens for instance with `./config.status Makefile'. 14787if test -n "$CONFIG_HEADERS"; then 14788cat >"$ac_tmp/defines.awk" <<\_ACAWK || 14789BEGIN { 14790_ACEOF 14791 14792# Transform confdefs.h into an awk script `defines.awk', embedded as 14793# here-document in config.status, that substitutes the proper values into 14794# config.h.in to produce config.h. 14795 14796# Create a delimiter string that does not exist in confdefs.h, to ease 14797# handling of long lines. 14798ac_delim='%!_!# ' 14799for ac_last_try in false false :; do 14800 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 14801 if test -z "$ac_tt"; then 14802 break 14803 elif $ac_last_try; then 14804 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14805 else 14806 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14807 fi 14808done 14809 14810# For the awk script, D is an array of macro values keyed by name, 14811# likewise P contains macro parameters if any. Preserve backslash 14812# newline sequences. 14813 14814ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14815sed -n ' 14816s/.\{148\}/&'"$ac_delim"'/g 14817t rset 14818:rset 14819s/^[ ]*#[ ]*define[ ][ ]*/ / 14820t def 14821d 14822:def 14823s/\\$// 14824t bsnl 14825s/["\\]/\\&/g 14826s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14827D["\1"]=" \3"/p 14828s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14829d 14830:bsnl 14831s/["\\]/\\&/g 14832s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14833D["\1"]=" \3\\\\\\n"\\/p 14834t cont 14835s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14836t cont 14837d 14838:cont 14839n 14840s/.\{148\}/&'"$ac_delim"'/g 14841t clear 14842:clear 14843s/\\$// 14844t bsnlc 14845s/["\\]/\\&/g; s/^/"/; s/$/"/p 14846d 14847:bsnlc 14848s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14849b cont 14850' <confdefs.h | sed ' 14851s/'"$ac_delim"'/"\\\ 14852"/g' >>$CONFIG_STATUS || ac_write_fail=1 14853 14854cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14855 for (key in D) D_is_set[key] = 1 14856 FS = "" 14857} 14858/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14859 line = \$ 0 14860 split(line, arg, " ") 14861 if (arg[1] == "#") { 14862 defundef = arg[2] 14863 mac1 = arg[3] 14864 } else { 14865 defundef = substr(arg[1], 2) 14866 mac1 = arg[2] 14867 } 14868 split(mac1, mac2, "(") #) 14869 macro = mac2[1] 14870 prefix = substr(line, 1, index(line, defundef) - 1) 14871 if (D_is_set[macro]) { 14872 # Preserve the white space surrounding the "#". 14873 print prefix "define", macro P[macro] D[macro] 14874 next 14875 } else { 14876 # Replace #undef with comments. This is necessary, for example, 14877 # in the case of _POSIX_SOURCE, which is predefined and required 14878 # on some systems where configure will not decide to define it. 14879 if (defundef == "undef") { 14880 print "/*", prefix defundef, macro, "*/" 14881 next 14882 } 14883 } 14884} 14885{ print } 14886_ACAWK 14887_ACEOF 14888cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14889 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 14890fi # test -n "$CONFIG_HEADERS" 14891 14892 14893eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14894shift 14895for ac_tag 14896do 14897 case $ac_tag in 14898 :[FHLC]) ac_mode=$ac_tag; continue;; 14899 esac 14900 case $ac_mode$ac_tag in 14901 :[FHL]*:*);; 14902 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 14903 :[FH]-) ac_tag=-:-;; 14904 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14905 esac 14906 ac_save_IFS=$IFS 14907 IFS=: 14908 set x $ac_tag 14909 IFS=$ac_save_IFS 14910 shift 14911 ac_file=$1 14912 shift 14913 14914 case $ac_mode in 14915 :L) ac_source=$1;; 14916 :[FH]) 14917 ac_file_inputs= 14918 for ac_f 14919 do 14920 case $ac_f in 14921 -) ac_f="$ac_tmp/stdin";; 14922 *) # Look for the file first in the build tree, then in the source tree 14923 # (if the path is not absolute). The absolute path cannot be DOS-style, 14924 # because $ac_f cannot contain `:'. 14925 test -f "$ac_f" || 14926 case $ac_f in 14927 [\\/$]*) false;; 14928 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14929 esac || 14930 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14931 esac 14932 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14933 as_fn_append ac_file_inputs " '$ac_f'" 14934 done 14935 14936 # Let's still pretend it is `configure' which instantiates (i.e., don't 14937 # use $as_me), people would be surprised to read: 14938 # /* config.h. Generated by config.status. */ 14939 configure_input='Generated from '` 14940 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14941 `' by configure.' 14942 if test x"$ac_file" != x-; then 14943 configure_input="$ac_file. $configure_input" 14944 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14945$as_echo "$as_me: creating $ac_file" >&6;} 14946 fi 14947 # Neutralize special characters interpreted by sed in replacement strings. 14948 case $configure_input in #( 14949 *\&* | *\|* | *\\* ) 14950 ac_sed_conf_input=`$as_echo "$configure_input" | 14951 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14952 *) ac_sed_conf_input=$configure_input;; 14953 esac 14954 14955 case $ac_tag in 14956 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14957 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14958 esac 14959 ;; 14960 esac 14961 14962 ac_dir=`$as_dirname -- "$ac_file" || 14963$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14964 X"$ac_file" : 'X\(//\)[^/]' \| \ 14965 X"$ac_file" : 'X\(//\)$' \| \ 14966 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14967$as_echo X"$ac_file" | 14968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14969 s//\1/ 14970 q 14971 } 14972 /^X\(\/\/\)[^/].*/{ 14973 s//\1/ 14974 q 14975 } 14976 /^X\(\/\/\)$/{ 14977 s//\1/ 14978 q 14979 } 14980 /^X\(\/\).*/{ 14981 s//\1/ 14982 q 14983 } 14984 s/.*/./; q'` 14985 as_dir="$ac_dir"; as_fn_mkdir_p 14986 ac_builddir=. 14987 14988case "$ac_dir" in 14989.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14990*) 14991 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14992 # A ".." for each directory in $ac_dir_suffix. 14993 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14994 case $ac_top_builddir_sub in 14995 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14996 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14997 esac ;; 14998esac 14999ac_abs_top_builddir=$ac_pwd 15000ac_abs_builddir=$ac_pwd$ac_dir_suffix 15001# for backward compatibility: 15002ac_top_builddir=$ac_top_build_prefix 15003 15004case $srcdir in 15005 .) # We are building in place. 15006 ac_srcdir=. 15007 ac_top_srcdir=$ac_top_builddir_sub 15008 ac_abs_top_srcdir=$ac_pwd ;; 15009 [\\/]* | ?:[\\/]* ) # Absolute name. 15010 ac_srcdir=$srcdir$ac_dir_suffix; 15011 ac_top_srcdir=$srcdir 15012 ac_abs_top_srcdir=$srcdir ;; 15013 *) # Relative name. 15014 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15015 ac_top_srcdir=$ac_top_build_prefix$srcdir 15016 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15017esac 15018ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15019 15020 15021 case $ac_mode in 15022 :F) 15023 # 15024 # CONFIG_FILE 15025 # 15026 15027 case $INSTALL in 15028 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15029 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15030 esac 15031 ac_MKDIR_P=$MKDIR_P 15032 case $MKDIR_P in 15033 [\\/$]* | ?:[\\/]* ) ;; 15034 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 15035 esac 15036_ACEOF 15037 15038cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15039# If the template does not know about datarootdir, expand it. 15040# FIXME: This hack should be removed a few years after 2.60. 15041ac_datarootdir_hack=; ac_datarootdir_seen= 15042ac_sed_dataroot=' 15043/datarootdir/ { 15044 p 15045 q 15046} 15047/@datadir@/p 15048/@docdir@/p 15049/@infodir@/p 15050/@localedir@/p 15051/@mandir@/p' 15052case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15053*datarootdir*) ac_datarootdir_seen=yes;; 15054*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15056$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15057_ACEOF 15058cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15059 ac_datarootdir_hack=' 15060 s&@datadir@&$datadir&g 15061 s&@docdir@&$docdir&g 15062 s&@infodir@&$infodir&g 15063 s&@localedir@&$localedir&g 15064 s&@mandir@&$mandir&g 15065 s&\\\${datarootdir}&$datarootdir&g' ;; 15066esac 15067_ACEOF 15068 15069# Neutralize VPATH when `$srcdir' = `.'. 15070# Shell code in configure.ac might set extrasub. 15071# FIXME: do we really want to maintain this feature? 15072cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15073ac_sed_extra="$ac_vpsub 15074$extrasub 15075_ACEOF 15076cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15077:t 15078/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15079s|@configure_input@|$ac_sed_conf_input|;t t 15080s&@top_builddir@&$ac_top_builddir_sub&;t t 15081s&@top_build_prefix@&$ac_top_build_prefix&;t t 15082s&@srcdir@&$ac_srcdir&;t t 15083s&@abs_srcdir@&$ac_abs_srcdir&;t t 15084s&@top_srcdir@&$ac_top_srcdir&;t t 15085s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15086s&@builddir@&$ac_builddir&;t t 15087s&@abs_builddir@&$ac_abs_builddir&;t t 15088s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15089s&@INSTALL@&$ac_INSTALL&;t t 15090s&@MKDIR_P@&$ac_MKDIR_P&;t t 15091$ac_datarootdir_hack 15092" 15093eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 15094 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15095 15096test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15097 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 15098 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15099 "$ac_tmp/out"`; test -z "$ac_out"; } && 15100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15101which seems to be undefined. Please make sure it is defined" >&5 15102$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15103which seems to be undefined. Please make sure it is defined" >&2;} 15104 15105 rm -f "$ac_tmp/stdin" 15106 case $ac_file in 15107 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 15108 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 15109 esac \ 15110 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15111 ;; 15112 :H) 15113 # 15114 # CONFIG_HEADER 15115 # 15116 if test x"$ac_file" != x-; then 15117 { 15118 $as_echo "/* $configure_input */" \ 15119 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 15120 } >"$ac_tmp/config.h" \ 15121 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15122 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 15123 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 15124$as_echo "$as_me: $ac_file is unchanged" >&6;} 15125 else 15126 rm -f "$ac_file" 15127 mv "$ac_tmp/config.h" "$ac_file" \ 15128 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15129 fi 15130 else 15131 $as_echo "/* $configure_input */" \ 15132 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 15133 || as_fn_error $? "could not create -" "$LINENO" 5 15134 fi 15135# Compute "$ac_file"'s index in $config_headers. 15136_am_arg="$ac_file" 15137_am_stamp_count=1 15138for _am_header in $config_headers :; do 15139 case $_am_header in 15140 $_am_arg | $_am_arg:* ) 15141 break ;; 15142 * ) 15143 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 15144 esac 15145done 15146echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 15147$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15148 X"$_am_arg" : 'X\(//\)[^/]' \| \ 15149 X"$_am_arg" : 'X\(//\)$' \| \ 15150 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 15151$as_echo X"$_am_arg" | 15152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15153 s//\1/ 15154 q 15155 } 15156 /^X\(\/\/\)[^/].*/{ 15157 s//\1/ 15158 q 15159 } 15160 /^X\(\/\/\)$/{ 15161 s//\1/ 15162 q 15163 } 15164 /^X\(\/\).*/{ 15165 s//\1/ 15166 q 15167 } 15168 s/.*/./; q'`/stamp-h$_am_stamp_count 15169 ;; 15170 15171 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 15172$as_echo "$as_me: executing $ac_file commands" >&6;} 15173 ;; 15174 esac 15175 15176 15177 case $ac_file$ac_mode in 15178 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 15179 # Older Autoconf quotes --file arguments for eval, but not when files 15180 # are listed without --file. Let's play safe and only enable the eval 15181 # if we detect the quoting. 15182 # TODO: see whether this extra hack can be removed once we start 15183 # requiring Autoconf 2.70 or later. 15184 case $CONFIG_FILES in #( 15185 *\'*) : 15186 eval set x "$CONFIG_FILES" ;; #( 15187 *) : 15188 set x $CONFIG_FILES ;; #( 15189 *) : 15190 ;; 15191esac 15192 shift 15193 # Used to flag and report bootstrapping failures. 15194 am_rc=0 15195 for am_mf 15196 do 15197 # Strip MF so we end up with the name of the file. 15198 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 15199 # Check whether this is an Automake generated Makefile which includes 15200 # dependency-tracking related rules and includes. 15201 # Grep'ing the whole file directly is not great: AIX grep has a line 15202 # limit of 2048, but all sed's we know have understand at least 4000. 15203 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 15204 || continue 15205 am_dirpart=`$as_dirname -- "$am_mf" || 15206$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15207 X"$am_mf" : 'X\(//\)[^/]' \| \ 15208 X"$am_mf" : 'X\(//\)$' \| \ 15209 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15210$as_echo X"$am_mf" | 15211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15212 s//\1/ 15213 q 15214 } 15215 /^X\(\/\/\)[^/].*/{ 15216 s//\1/ 15217 q 15218 } 15219 /^X\(\/\/\)$/{ 15220 s//\1/ 15221 q 15222 } 15223 /^X\(\/\).*/{ 15224 s//\1/ 15225 q 15226 } 15227 s/.*/./; q'` 15228 am_filepart=`$as_basename -- "$am_mf" || 15229$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 15230 X"$am_mf" : 'X\(//\)$' \| \ 15231 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15232$as_echo X/"$am_mf" | 15233 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15234 s//\1/ 15235 q 15236 } 15237 /^X\/\(\/\/\)$/{ 15238 s//\1/ 15239 q 15240 } 15241 /^X\/\(\/\).*/{ 15242 s//\1/ 15243 q 15244 } 15245 s/.*/./; q'` 15246 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 15247 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15248 | $MAKE -f - am--depfiles" >&5 15249 (cd "$am_dirpart" \ 15250 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15251 | $MAKE -f - am--depfiles) >&5 2>&5 15252 ac_status=$? 15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15254 (exit $ac_status); } || am_rc=$? 15255 done 15256 if test $am_rc -ne 0; then 15257 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15258$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15259as_fn_error $? "Something went wrong bootstrapping makefile fragments 15260 for automatic dependency tracking. Try re-running configure with the 15261 '--disable-dependency-tracking' option to at least be able to build 15262 the package (albeit without support for automatic dependency tracking). 15263See \`config.log' for more details" "$LINENO" 5; } 15264 fi 15265 { am_dirpart=; unset am_dirpart;} 15266 { am_filepart=; unset am_filepart;} 15267 { am_mf=; unset am_mf;} 15268 { am_rc=; unset am_rc;} 15269 rm -f conftest-deps.mk 15270} 15271 ;; 15272 "libtool":C) 15273 15274 # See if we are running on zsh, and set the options that allow our 15275 # commands through without removal of \ escapes. 15276 if test -n "${ZSH_VERSION+set}"; then 15277 setopt NO_GLOB_SUBST 15278 fi 15279 15280 cfgfile=${ofile}T 15281 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15282 $RM "$cfgfile" 15283 15284 cat <<_LT_EOF >> "$cfgfile" 15285#! $SHELL 15286# Generated automatically by $as_me ($PACKAGE) $VERSION 15287# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15288 15289# Provide generalized library-building support services. 15290# Written by Gordon Matzigkeit, 1996 15291 15292# Copyright (C) 2014 Free Software Foundation, Inc. 15293# This is free software; see the source for copying conditions. There is NO 15294# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 15295 15296# GNU Libtool is free software; you can redistribute it and/or modify 15297# it under the terms of the GNU General Public License as published by 15298# the Free Software Foundation; either version 2 of of the License, or 15299# (at your option) any later version. 15300# 15301# As a special exception to the GNU General Public License, if you 15302# distribute this file as part of a program or library that is built 15303# using GNU Libtool, you may include this file under the same 15304# distribution terms that you use for the rest of that program. 15305# 15306# GNU Libtool is distributed in the hope that it will be useful, but 15307# WITHOUT ANY WARRANTY; without even the implied warranty of 15308# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15309# GNU General Public License for more details. 15310# 15311# You should have received a copy of the GNU General Public License 15312# along with this program. If not, see <http://www.gnu.org/licenses/>. 15313 15314 15315# The names of the tagged configurations supported by this script. 15316available_tags='' 15317 15318# Configured defaults for sys_lib_dlsearch_path munging. 15319: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 15320 15321# ### BEGIN LIBTOOL CONFIG 15322 15323# Which release of libtool.m4 was used? 15324macro_version=$macro_version 15325macro_revision=$macro_revision 15326 15327# Whether or not to build static libraries. 15328build_old_libs=$enable_static 15329 15330# Whether or not to build shared libraries. 15331build_libtool_libs=$enable_shared 15332 15333# What type of objects to build. 15334pic_mode=$pic_mode 15335 15336# Whether or not to optimize for fast installation. 15337fast_install=$enable_fast_install 15338 15339# Shared archive member basename,for filename based shared library versioning on AIX. 15340shared_archive_member_spec=$shared_archive_member_spec 15341 15342# Shell to use when invoking shell scripts. 15343SHELL=$lt_SHELL 15344 15345# An echo program that protects backslashes. 15346ECHO=$lt_ECHO 15347 15348# The PATH separator for the build system. 15349PATH_SEPARATOR=$lt_PATH_SEPARATOR 15350 15351# The host system. 15352host_alias=$host_alias 15353host=$host 15354host_os=$host_os 15355 15356# The build system. 15357build_alias=$build_alias 15358build=$build 15359build_os=$build_os 15360 15361# A sed program that does not truncate output. 15362SED=$lt_SED 15363 15364# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15365Xsed="\$SED -e 1s/^X//" 15366 15367# A grep program that handles long lines. 15368GREP=$lt_GREP 15369 15370# An ERE matcher. 15371EGREP=$lt_EGREP 15372 15373# A literal string matcher. 15374FGREP=$lt_FGREP 15375 15376# A BSD- or MS-compatible name lister. 15377NM=$lt_NM 15378 15379# Whether we need soft or hard links. 15380LN_S=$lt_LN_S 15381 15382# What is the maximum length of a command? 15383max_cmd_len=$max_cmd_len 15384 15385# Object file suffix (normally "o"). 15386objext=$ac_objext 15387 15388# Executable file suffix (normally ""). 15389exeext=$exeext 15390 15391# whether the shell understands "unset". 15392lt_unset=$lt_unset 15393 15394# turn spaces into newlines. 15395SP2NL=$lt_lt_SP2NL 15396 15397# turn newlines into spaces. 15398NL2SP=$lt_lt_NL2SP 15399 15400# convert \$build file names to \$host format. 15401to_host_file_cmd=$lt_cv_to_host_file_cmd 15402 15403# convert \$build files to toolchain format. 15404to_tool_file_cmd=$lt_cv_to_tool_file_cmd 15405 15406# An object symbol dumper. 15407OBJDUMP=$lt_OBJDUMP 15408 15409# Method to check whether dependent libraries are shared objects. 15410deplibs_check_method=$lt_deplibs_check_method 15411 15412# Command to use when deplibs_check_method = "file_magic". 15413file_magic_cmd=$lt_file_magic_cmd 15414 15415# How to find potential files when deplibs_check_method = "file_magic". 15416file_magic_glob=$lt_file_magic_glob 15417 15418# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 15419want_nocaseglob=$lt_want_nocaseglob 15420 15421# DLL creation program. 15422DLLTOOL=$lt_DLLTOOL 15423 15424# Command to associate shared and link libraries. 15425sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 15426 15427# The archiver. 15428AR=$lt_AR 15429 15430# Flags to create an archive. 15431AR_FLAGS=$lt_AR_FLAGS 15432 15433# How to feed a file listing to the archiver. 15434archiver_list_spec=$lt_archiver_list_spec 15435 15436# A symbol stripping program. 15437STRIP=$lt_STRIP 15438 15439# Commands used to install an old-style archive. 15440RANLIB=$lt_RANLIB 15441old_postinstall_cmds=$lt_old_postinstall_cmds 15442old_postuninstall_cmds=$lt_old_postuninstall_cmds 15443 15444# Whether to use a lock for old archive extraction. 15445lock_old_archive_extraction=$lock_old_archive_extraction 15446 15447# A C compiler. 15448LTCC=$lt_CC 15449 15450# LTCC compiler flags. 15451LTCFLAGS=$lt_CFLAGS 15452 15453# Take the output of nm and produce a listing of raw symbols and C names. 15454global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15455 15456# Transform the output of nm in a proper C declaration. 15457global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15458 15459# Transform the output of nm into a list of symbols to manually relocate. 15460global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 15461 15462# Transform the output of nm in a C name address pair. 15463global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15464 15465# Transform the output of nm in a C name address pair when lib prefix is needed. 15466global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15467 15468# The name lister interface. 15469nm_interface=$lt_lt_cv_nm_interface 15470 15471# Specify filename containing input files for \$NM. 15472nm_file_list_spec=$lt_nm_file_list_spec 15473 15474# The root where to search for dependent libraries,and where our libraries should be installed. 15475lt_sysroot=$lt_sysroot 15476 15477# Command to truncate a binary pipe. 15478lt_truncate_bin=$lt_lt_cv_truncate_bin 15479 15480# The name of the directory that contains temporary libtool files. 15481objdir=$objdir 15482 15483# Used to examine libraries when file_magic_cmd begins with "file". 15484MAGIC_CMD=$MAGIC_CMD 15485 15486# Must we lock files when doing compilation? 15487need_locks=$lt_need_locks 15488 15489# Manifest tool. 15490MANIFEST_TOOL=$lt_MANIFEST_TOOL 15491 15492# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15493DSYMUTIL=$lt_DSYMUTIL 15494 15495# Tool to change global to local symbols on Mac OS X. 15496NMEDIT=$lt_NMEDIT 15497 15498# Tool to manipulate fat objects and archives on Mac OS X. 15499LIPO=$lt_LIPO 15500 15501# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15502OTOOL=$lt_OTOOL 15503 15504# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15505OTOOL64=$lt_OTOOL64 15506 15507# Old archive suffix (normally "a"). 15508libext=$libext 15509 15510# Shared library suffix (normally ".so"). 15511shrext_cmds=$lt_shrext_cmds 15512 15513# The commands to extract the exported symbol list from a shared archive. 15514extract_expsyms_cmds=$lt_extract_expsyms_cmds 15515 15516# Variables whose values should be saved in libtool wrapper scripts and 15517# restored at link time. 15518variables_saved_for_relink=$lt_variables_saved_for_relink 15519 15520# Do we need the "lib" prefix for modules? 15521need_lib_prefix=$need_lib_prefix 15522 15523# Do we need a version for libraries? 15524need_version=$need_version 15525 15526# Library versioning type. 15527version_type=$version_type 15528 15529# Shared library runtime path variable. 15530runpath_var=$runpath_var 15531 15532# Shared library path variable. 15533shlibpath_var=$shlibpath_var 15534 15535# Is shlibpath searched before the hard-coded library search path? 15536shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15537 15538# Format of library name prefix. 15539libname_spec=$lt_libname_spec 15540 15541# List of archive names. First name is the real one, the rest are links. 15542# The last name is the one that the linker finds with -lNAME 15543library_names_spec=$lt_library_names_spec 15544 15545# The coded name of the library, if different from the real name. 15546soname_spec=$lt_soname_spec 15547 15548# Permission mode override for installation of shared libraries. 15549install_override_mode=$lt_install_override_mode 15550 15551# Command to use after installation of a shared archive. 15552postinstall_cmds=$lt_postinstall_cmds 15553 15554# Command to use after uninstallation of a shared archive. 15555postuninstall_cmds=$lt_postuninstall_cmds 15556 15557# Commands used to finish a libtool library installation in a directory. 15558finish_cmds=$lt_finish_cmds 15559 15560# As "finish_cmds", except a single script fragment to be evaled but 15561# not shown. 15562finish_eval=$lt_finish_eval 15563 15564# Whether we should hardcode library paths into libraries. 15565hardcode_into_libs=$hardcode_into_libs 15566 15567# Compile-time system search path for libraries. 15568sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15569 15570# Detected run-time system search path for libraries. 15571sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 15572 15573# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 15574configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 15575 15576# Whether dlopen is supported. 15577dlopen_support=$enable_dlopen 15578 15579# Whether dlopen of programs is supported. 15580dlopen_self=$enable_dlopen_self 15581 15582# Whether dlopen of statically linked programs is supported. 15583dlopen_self_static=$enable_dlopen_self_static 15584 15585# Commands to strip libraries. 15586old_striplib=$lt_old_striplib 15587striplib=$lt_striplib 15588 15589 15590# The linker used to build libraries. 15591LD=$lt_LD 15592 15593# How to create reloadable object files. 15594reload_flag=$lt_reload_flag 15595reload_cmds=$lt_reload_cmds 15596 15597# Commands used to build an old-style archive. 15598old_archive_cmds=$lt_old_archive_cmds 15599 15600# A language specific compiler. 15601CC=$lt_compiler 15602 15603# Is the compiler the GNU compiler? 15604with_gcc=$GCC 15605 15606# Compiler flag to turn off builtin functions. 15607no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15608 15609# Additional compiler flags for building library objects. 15610pic_flag=$lt_lt_prog_compiler_pic 15611 15612# How to pass a linker flag through the compiler. 15613wl=$lt_lt_prog_compiler_wl 15614 15615# Compiler flag to prevent dynamic linking. 15616link_static_flag=$lt_lt_prog_compiler_static 15617 15618# Does compiler simultaneously support -c and -o options? 15619compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15620 15621# Whether or not to add -lc for building shared libraries. 15622build_libtool_need_lc=$archive_cmds_need_lc 15623 15624# Whether or not to disallow shared libs when runtime libs are static. 15625allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15626 15627# Compiler flag to allow reflexive dlopens. 15628export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15629 15630# Compiler flag to generate shared objects directly from archives. 15631whole_archive_flag_spec=$lt_whole_archive_flag_spec 15632 15633# Whether the compiler copes with passing no objects directly. 15634compiler_needs_object=$lt_compiler_needs_object 15635 15636# Create an old-style archive from a shared archive. 15637old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15638 15639# Create a temporary old-style archive to link instead of a shared archive. 15640old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15641 15642# Commands used to build a shared archive. 15643archive_cmds=$lt_archive_cmds 15644archive_expsym_cmds=$lt_archive_expsym_cmds 15645 15646# Commands used to build a loadable module if different from building 15647# a shared archive. 15648module_cmds=$lt_module_cmds 15649module_expsym_cmds=$lt_module_expsym_cmds 15650 15651# Whether we are building with GNU ld or not. 15652with_gnu_ld=$lt_with_gnu_ld 15653 15654# Flag that allows shared libraries with undefined symbols to be built. 15655allow_undefined_flag=$lt_allow_undefined_flag 15656 15657# Flag that enforces no undefined symbols. 15658no_undefined_flag=$lt_no_undefined_flag 15659 15660# Flag to hardcode \$libdir into a binary during linking. 15661# This must work even if \$libdir does not exist 15662hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15663 15664# Whether we need a single "-rpath" flag with a separated argument. 15665hardcode_libdir_separator=$lt_hardcode_libdir_separator 15666 15667# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15668# DIR into the resulting binary. 15669hardcode_direct=$hardcode_direct 15670 15671# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15672# DIR into the resulting binary and the resulting library dependency is 15673# "absolute",i.e impossible to change by setting \$shlibpath_var if the 15674# library is relocated. 15675hardcode_direct_absolute=$hardcode_direct_absolute 15676 15677# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15678# into the resulting binary. 15679hardcode_minus_L=$hardcode_minus_L 15680 15681# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15682# into the resulting binary. 15683hardcode_shlibpath_var=$hardcode_shlibpath_var 15684 15685# Set to "yes" if building a shared library automatically hardcodes DIR 15686# into the library and all subsequent libraries and executables linked 15687# against it. 15688hardcode_automatic=$hardcode_automatic 15689 15690# Set to yes if linker adds runtime paths of dependent libraries 15691# to runtime path list. 15692inherit_rpath=$inherit_rpath 15693 15694# Whether libtool must link a program against all its dependency libraries. 15695link_all_deplibs=$link_all_deplibs 15696 15697# Set to "yes" if exported symbols are required. 15698always_export_symbols=$always_export_symbols 15699 15700# The commands to list exported symbols. 15701export_symbols_cmds=$lt_export_symbols_cmds 15702 15703# Symbols that should not be listed in the preloaded symbols. 15704exclude_expsyms=$lt_exclude_expsyms 15705 15706# Symbols that must always be exported. 15707include_expsyms=$lt_include_expsyms 15708 15709# Commands necessary for linking programs (against libraries) with templates. 15710prelink_cmds=$lt_prelink_cmds 15711 15712# Commands necessary for finishing linking programs. 15713postlink_cmds=$lt_postlink_cmds 15714 15715# Specify filename containing input files. 15716file_list_spec=$lt_file_list_spec 15717 15718# How to hardcode a shared library path into an executable. 15719hardcode_action=$hardcode_action 15720 15721# ### END LIBTOOL CONFIG 15722 15723_LT_EOF 15724 15725 cat <<'_LT_EOF' >> "$cfgfile" 15726 15727# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 15728 15729# func_munge_path_list VARIABLE PATH 15730# ----------------------------------- 15731# VARIABLE is name of variable containing _space_ separated list of 15732# directories to be munged by the contents of PATH, which is string 15733# having a format: 15734# "DIR[:DIR]:" 15735# string "DIR[ DIR]" will be prepended to VARIABLE 15736# ":DIR[:DIR]" 15737# string "DIR[ DIR]" will be appended to VARIABLE 15738# "DIRP[:DIRP]::[DIRA:]DIRA" 15739# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 15740# "DIRA[ DIRA]" will be appended to VARIABLE 15741# "DIR[:DIR]" 15742# VARIABLE will be replaced by "DIR[ DIR]" 15743func_munge_path_list () 15744{ 15745 case x$2 in 15746 x) 15747 ;; 15748 *:) 15749 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 15750 ;; 15751 x:*) 15752 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 15753 ;; 15754 *::*) 15755 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 15756 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 15757 ;; 15758 *) 15759 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 15760 ;; 15761 esac 15762} 15763 15764 15765# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 15766func_cc_basename () 15767{ 15768 for cc_temp in $*""; do 15769 case $cc_temp in 15770 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15771 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15772 \-*) ;; 15773 *) break;; 15774 esac 15775 done 15776 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 15777} 15778 15779 15780# ### END FUNCTIONS SHARED WITH CONFIGURE 15781 15782_LT_EOF 15783 15784 case $host_os in 15785 aix3*) 15786 cat <<\_LT_EOF >> "$cfgfile" 15787# AIX sometimes has problems with the GCC collect2 program. For some 15788# reason, if we set the COLLECT_NAMES environment variable, the problems 15789# vanish in a puff of smoke. 15790if test set != "${COLLECT_NAMES+set}"; then 15791 COLLECT_NAMES= 15792 export COLLECT_NAMES 15793fi 15794_LT_EOF 15795 ;; 15796 esac 15797 15798 15799ltmain=$ac_aux_dir/ltmain.sh 15800 15801 15802 # We use sed instead of cat because bash on DJGPP gets confused if 15803 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15804 # text mode, it properly converts lines to CR/LF. This bash problem 15805 # is reportedly fixed, but why not run on old versions too? 15806 sed '$q' "$ltmain" >> "$cfgfile" \ 15807 || (rm -f "$cfgfile"; exit 1) 15808 15809 mv -f "$cfgfile" "$ofile" || 15810 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15811 chmod +x "$ofile" 15812 15813 ;; 15814 "env":F) chmod +x env ;; 15815 15816 esac 15817done # for ac_tag 15818 15819 15820as_fn_exit 0 15821_ACEOF 15822ac_clean_files=$ac_clean_files_save 15823 15824test $ac_write_fail = 0 || 15825 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15826 15827 15828# configure is writing to config.log, and then calls config.status. 15829# config.status does its own redirection, appending to config.log. 15830# Unfortunately, on DOS this fails, as config.log is still kept open 15831# by configure, so config.status won't be able to write to it; its 15832# output is simply discarded. So we exec the FD to /dev/null, 15833# effectively closing config.log, so it can be properly (re)opened and 15834# appended to by config.status. When coming back to configure, we 15835# need to make the FD available again. 15836if test "$no_create" != yes; then 15837 ac_cs_success=: 15838 ac_config_status_args= 15839 test "$silent" = yes && 15840 ac_config_status_args="$ac_config_status_args --quiet" 15841 exec 5>/dev/null 15842 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15843 exec 5>>config.log 15844 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15845 # would make configure fail if this is the last instruction. 15846 $ac_cs_success || as_fn_exit 1 15847fi 15848if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15850$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15851fi 15852 15853