1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for StarDict tools 3.0.6. 4# 5# Report bugs to <http://www.stardict.org>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: http://www.stardict.org about your system, including 279$0: any error possibly output before this message. Then 280$0: install a modern shell, or manually run the script 281$0: under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='StarDict tools' 592PACKAGE_TARNAME='stardict-tools' 593PACKAGE_VERSION='3.0.6' 594PACKAGE_STRING='StarDict tools 3.0.6' 595PACKAGE_BUGREPORT='http://www.stardict.org' 596PACKAGE_URL='' 597 598ac_unique_file="src/stardict-editor.cpp" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBOBJS 639COMMONLIB_LIBRARY 640COMMONLIB_INCLUDE_DIR 641LIBXML_LIBS 642LIBXML_CFLAGS 643LTLIBICONV 644LIBICONV 645DSL2DICT_LIBS 646DSL2DICT_CFLAGS 647LFS_LIBS 648LFS_LDFLAGS 649LFS_CFLAGS 650MYSQL_LIBS 651MYSQL_INCLUDES 652MYSQL_CFLAGS 653MYSQLCONFIG 654STARDICT_LIBS 655STARDICT_CFLAGS 656PKG_CONFIG_LIBDIR 657PKG_CONFIG_PATH 658PKG_CONFIG 659CXXCPP 660am__fastdepCXX_FALSE 661am__fastdepCXX_TRUE 662CXXDEPMODE 663ac_ct_CXX 664CXXFLAGS 665CXX 666CPP 667OTOOL64 668OTOOL 669LIPO 670NMEDIT 671DSYMUTIL 672MANIFEST_TOOL 673RANLIB 674ac_ct_AR 675AR 676DLLTOOL 677OBJDUMP 678LN_S 679NM 680ac_ct_DUMPBIN 681DUMPBIN 682LD 683FGREP 684EGREP 685GREP 686SED 687am__fastdepCC_FALSE 688am__fastdepCC_TRUE 689CCDEPMODE 690am__nodep 691AMDEPBACKSLASH 692AMDEP_FALSE 693AMDEP_TRUE 694am__quote 695am__include 696DEPDIR 697OBJEXT 698EXEEXT 699ac_ct_CC 700CPPFLAGS 701LDFLAGS 702CFLAGS 703CC 704host_os 705host_vendor 706host_cpu 707host 708build_os 709build_vendor 710build_cpu 711build 712LIBTOOL 713AM_BACKSLASH 714AM_DEFAULT_VERBOSITY 715AM_DEFAULT_V 716AM_V 717am__untar 718am__tar 719AMTAR 720am__leading_dot 721SET_MAKE 722AWK 723mkdir_p 724MKDIR_P 725INSTALL_STRIP_PROGRAM 726STRIP 727install_sh 728MAKEINFO 729AUTOHEADER 730AUTOMAKE 731AUTOCONF 732ACLOCAL 733VERSION 734PACKAGE 735CYGPATH_W 736am__isrc 737INSTALL_DATA 738INSTALL_SCRIPT 739INSTALL_PROGRAM 740target_alias 741host_alias 742build_alias 743LIBS 744ECHO_T 745ECHO_N 746ECHO_C 747DEFS 748mandir 749localedir 750libdir 751psdir 752pdfdir 753dvidir 754htmldir 755infodir 756docdir 757oldincludedir 758includedir 759localstatedir 760sharedstatedir 761sysconfdir 762datadir 763datarootdir 764libexecdir 765sbindir 766bindir 767program_transform_name 768prefix 769exec_prefix 770PACKAGE_URL 771PACKAGE_BUGREPORT 772PACKAGE_STRING 773PACKAGE_VERSION 774PACKAGE_TARNAME 775PACKAGE_NAME 776PATH_SEPARATOR 777SHELL' 778ac_subst_files='' 779ac_user_opts=' 780enable_option_checking 781enable_silent_rules 782enable_shared 783enable_static 784with_pic 785enable_fast_install 786enable_dependency_tracking 787with_gnu_ld 788with_sysroot 789enable_libtool_lock 790with_mysql_config 791enable_deprecations 792enable_rpath 793with_libiconv_prefix 794' 795 ac_precious_vars='build_alias 796host_alias 797target_alias 798CC 799CFLAGS 800LDFLAGS 801LIBS 802CPPFLAGS 803CPP 804CXX 805CXXFLAGS 806CCC 807CXXCPP 808PKG_CONFIG 809PKG_CONFIG_PATH 810PKG_CONFIG_LIBDIR 811STARDICT_CFLAGS 812STARDICT_LIBS 813DSL2DICT_CFLAGS 814DSL2DICT_LIBS 815LIBXML_CFLAGS 816LIBXML_LIBS' 817 818 819# Initialize some variables set by options. 820ac_init_help= 821ac_init_version=false 822ac_unrecognized_opts= 823ac_unrecognized_sep= 824# The variables have the same names as the options, with 825# dashes changed to underlines. 826cache_file=/dev/null 827exec_prefix=NONE 828no_create= 829no_recursion= 830prefix=NONE 831program_prefix=NONE 832program_suffix=NONE 833program_transform_name=s,x,x, 834silent= 835site= 836srcdir= 837verbose= 838x_includes=NONE 839x_libraries=NONE 840 841# Installation directory options. 842# These are left unexpanded so users can "make install exec_prefix=/foo" 843# and all the variables that are supposed to be based on exec_prefix 844# by default will actually change. 845# Use braces instead of parens because sh, perl, etc. also accept them. 846# (The list follows the same order as the GNU Coding Standards.) 847bindir='${exec_prefix}/bin' 848sbindir='${exec_prefix}/sbin' 849libexecdir='${exec_prefix}/libexec' 850datarootdir='${prefix}/share' 851datadir='${datarootdir}' 852sysconfdir='${prefix}/etc' 853sharedstatedir='${prefix}/com' 854localstatedir='${prefix}/var' 855includedir='${prefix}/include' 856oldincludedir='/usr/include' 857docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 858infodir='${datarootdir}/info' 859htmldir='${docdir}' 860dvidir='${docdir}' 861pdfdir='${docdir}' 862psdir='${docdir}' 863libdir='${exec_prefix}/lib' 864localedir='${datarootdir}/locale' 865mandir='${datarootdir}/man' 866 867ac_prev= 868ac_dashdash= 869for ac_option 870do 871 # If the previous option needs an argument, assign it. 872 if test -n "$ac_prev"; then 873 eval $ac_prev=\$ac_option 874 ac_prev= 875 continue 876 fi 877 878 case $ac_option in 879 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 880 *=) ac_optarg= ;; 881 *) ac_optarg=yes ;; 882 esac 883 884 # Accept the important Cygnus configure options, so we can diagnose typos. 885 886 case $ac_dashdash$ac_option in 887 --) 888 ac_dashdash=yes ;; 889 890 -bindir | --bindir | --bindi | --bind | --bin | --bi) 891 ac_prev=bindir ;; 892 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 893 bindir=$ac_optarg ;; 894 895 -build | --build | --buil | --bui | --bu) 896 ac_prev=build_alias ;; 897 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 898 build_alias=$ac_optarg ;; 899 900 -cache-file | --cache-file | --cache-fil | --cache-fi \ 901 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 902 ac_prev=cache_file ;; 903 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 904 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 905 cache_file=$ac_optarg ;; 906 907 --config-cache | -C) 908 cache_file=config.cache ;; 909 910 -datadir | --datadir | --datadi | --datad) 911 ac_prev=datadir ;; 912 -datadir=* | --datadir=* | --datadi=* | --datad=*) 913 datadir=$ac_optarg ;; 914 915 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 916 | --dataroo | --dataro | --datar) 917 ac_prev=datarootdir ;; 918 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 919 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 920 datarootdir=$ac_optarg ;; 921 922 -disable-* | --disable-*) 923 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 924 # Reject names that are not valid shell variable names. 925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 926 as_fn_error $? "invalid feature name: $ac_useropt" 927 ac_useropt_orig=$ac_useropt 928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 929 case $ac_user_opts in 930 *" 931"enable_$ac_useropt" 932"*) ;; 933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 934 ac_unrecognized_sep=', ';; 935 esac 936 eval enable_$ac_useropt=no ;; 937 938 -docdir | --docdir | --docdi | --doc | --do) 939 ac_prev=docdir ;; 940 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 941 docdir=$ac_optarg ;; 942 943 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 944 ac_prev=dvidir ;; 945 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 946 dvidir=$ac_optarg ;; 947 948 -enable-* | --enable-*) 949 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 950 # Reject names that are not valid shell variable names. 951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 952 as_fn_error $? "invalid feature name: $ac_useropt" 953 ac_useropt_orig=$ac_useropt 954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 955 case $ac_user_opts in 956 *" 957"enable_$ac_useropt" 958"*) ;; 959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 960 ac_unrecognized_sep=', ';; 961 esac 962 eval enable_$ac_useropt=\$ac_optarg ;; 963 964 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 965 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 966 | --exec | --exe | --ex) 967 ac_prev=exec_prefix ;; 968 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 969 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 970 | --exec=* | --exe=* | --ex=*) 971 exec_prefix=$ac_optarg ;; 972 973 -gas | --gas | --ga | --g) 974 # Obsolete; use --with-gas. 975 with_gas=yes ;; 976 977 -help | --help | --hel | --he | -h) 978 ac_init_help=long ;; 979 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 980 ac_init_help=recursive ;; 981 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 982 ac_init_help=short ;; 983 984 -host | --host | --hos | --ho) 985 ac_prev=host_alias ;; 986 -host=* | --host=* | --hos=* | --ho=*) 987 host_alias=$ac_optarg ;; 988 989 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 990 ac_prev=htmldir ;; 991 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 992 | --ht=*) 993 htmldir=$ac_optarg ;; 994 995 -includedir | --includedir | --includedi | --included | --include \ 996 | --includ | --inclu | --incl | --inc) 997 ac_prev=includedir ;; 998 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 999 | --includ=* | --inclu=* | --incl=* | --inc=*) 1000 includedir=$ac_optarg ;; 1001 1002 -infodir | --infodir | --infodi | --infod | --info | --inf) 1003 ac_prev=infodir ;; 1004 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1005 infodir=$ac_optarg ;; 1006 1007 -libdir | --libdir | --libdi | --libd) 1008 ac_prev=libdir ;; 1009 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1010 libdir=$ac_optarg ;; 1011 1012 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1013 | --libexe | --libex | --libe) 1014 ac_prev=libexecdir ;; 1015 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1016 | --libexe=* | --libex=* | --libe=*) 1017 libexecdir=$ac_optarg ;; 1018 1019 -localedir | --localedir | --localedi | --localed | --locale) 1020 ac_prev=localedir ;; 1021 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1022 localedir=$ac_optarg ;; 1023 1024 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1025 | --localstate | --localstat | --localsta | --localst | --locals) 1026 ac_prev=localstatedir ;; 1027 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1028 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1029 localstatedir=$ac_optarg ;; 1030 1031 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1032 ac_prev=mandir ;; 1033 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1034 mandir=$ac_optarg ;; 1035 1036 -nfp | --nfp | --nf) 1037 # Obsolete; use --without-fp. 1038 with_fp=no ;; 1039 1040 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1041 | --no-cr | --no-c | -n) 1042 no_create=yes ;; 1043 1044 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1045 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1046 no_recursion=yes ;; 1047 1048 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1049 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1050 | --oldin | --oldi | --old | --ol | --o) 1051 ac_prev=oldincludedir ;; 1052 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1053 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1054 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1055 oldincludedir=$ac_optarg ;; 1056 1057 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1058 ac_prev=prefix ;; 1059 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1060 prefix=$ac_optarg ;; 1061 1062 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1063 | --program-pre | --program-pr | --program-p) 1064 ac_prev=program_prefix ;; 1065 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1066 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1067 program_prefix=$ac_optarg ;; 1068 1069 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1070 | --program-suf | --program-su | --program-s) 1071 ac_prev=program_suffix ;; 1072 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1073 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1074 program_suffix=$ac_optarg ;; 1075 1076 -program-transform-name | --program-transform-name \ 1077 | --program-transform-nam | --program-transform-na \ 1078 | --program-transform-n | --program-transform- \ 1079 | --program-transform | --program-transfor \ 1080 | --program-transfo | --program-transf \ 1081 | --program-trans | --program-tran \ 1082 | --progr-tra | --program-tr | --program-t) 1083 ac_prev=program_transform_name ;; 1084 -program-transform-name=* | --program-transform-name=* \ 1085 | --program-transform-nam=* | --program-transform-na=* \ 1086 | --program-transform-n=* | --program-transform-=* \ 1087 | --program-transform=* | --program-transfor=* \ 1088 | --program-transfo=* | --program-transf=* \ 1089 | --program-trans=* | --program-tran=* \ 1090 | --progr-tra=* | --program-tr=* | --program-t=*) 1091 program_transform_name=$ac_optarg ;; 1092 1093 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1094 ac_prev=pdfdir ;; 1095 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1096 pdfdir=$ac_optarg ;; 1097 1098 -psdir | --psdir | --psdi | --psd | --ps) 1099 ac_prev=psdir ;; 1100 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1101 psdir=$ac_optarg ;; 1102 1103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1104 | -silent | --silent | --silen | --sile | --sil) 1105 silent=yes ;; 1106 1107 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1108 ac_prev=sbindir ;; 1109 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1110 | --sbi=* | --sb=*) 1111 sbindir=$ac_optarg ;; 1112 1113 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1114 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1115 | --sharedst | --shareds | --shared | --share | --shar \ 1116 | --sha | --sh) 1117 ac_prev=sharedstatedir ;; 1118 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1119 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1120 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1121 | --sha=* | --sh=*) 1122 sharedstatedir=$ac_optarg ;; 1123 1124 -site | --site | --sit) 1125 ac_prev=site ;; 1126 -site=* | --site=* | --sit=*) 1127 site=$ac_optarg ;; 1128 1129 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1130 ac_prev=srcdir ;; 1131 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1132 srcdir=$ac_optarg ;; 1133 1134 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1135 | --syscon | --sysco | --sysc | --sys | --sy) 1136 ac_prev=sysconfdir ;; 1137 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1138 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1139 sysconfdir=$ac_optarg ;; 1140 1141 -target | --target | --targe | --targ | --tar | --ta | --t) 1142 ac_prev=target_alias ;; 1143 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1144 target_alias=$ac_optarg ;; 1145 1146 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1147 verbose=yes ;; 1148 1149 -version | --version | --versio | --versi | --vers | -V) 1150 ac_init_version=: ;; 1151 1152 -with-* | --with-*) 1153 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1154 # Reject names that are not valid shell variable names. 1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1156 as_fn_error $? "invalid package name: $ac_useropt" 1157 ac_useropt_orig=$ac_useropt 1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1159 case $ac_user_opts in 1160 *" 1161"with_$ac_useropt" 1162"*) ;; 1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1164 ac_unrecognized_sep=', ';; 1165 esac 1166 eval with_$ac_useropt=\$ac_optarg ;; 1167 1168 -without-* | --without-*) 1169 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1170 # Reject names that are not valid shell variable names. 1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1172 as_fn_error $? "invalid package name: $ac_useropt" 1173 ac_useropt_orig=$ac_useropt 1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1175 case $ac_user_opts in 1176 *" 1177"with_$ac_useropt" 1178"*) ;; 1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1180 ac_unrecognized_sep=', ';; 1181 esac 1182 eval with_$ac_useropt=no ;; 1183 1184 --x) 1185 # Obsolete; use --with-x. 1186 with_x=yes ;; 1187 1188 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1189 | --x-incl | --x-inc | --x-in | --x-i) 1190 ac_prev=x_includes ;; 1191 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1192 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1193 x_includes=$ac_optarg ;; 1194 1195 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1196 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1197 ac_prev=x_libraries ;; 1198 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1199 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1200 x_libraries=$ac_optarg ;; 1201 1202 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1203Try \`$0 --help' for more information" 1204 ;; 1205 1206 *=*) 1207 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1208 # Reject names that are not valid shell variable names. 1209 case $ac_envvar in #( 1210 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1211 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1212 esac 1213 eval $ac_envvar=\$ac_optarg 1214 export $ac_envvar ;; 1215 1216 *) 1217 # FIXME: should be removed in autoconf 3.0. 1218 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1219 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1220 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1221 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1222 ;; 1223 1224 esac 1225done 1226 1227if test -n "$ac_prev"; then 1228 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1229 as_fn_error $? "missing argument to $ac_option" 1230fi 1231 1232if test -n "$ac_unrecognized_opts"; then 1233 case $enable_option_checking in 1234 no) ;; 1235 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1236 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1237 esac 1238fi 1239 1240# Check all directory arguments for consistency. 1241for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1242 datadir sysconfdir sharedstatedir localstatedir includedir \ 1243 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1244 libdir localedir mandir 1245do 1246 eval ac_val=\$$ac_var 1247 # Remove trailing slashes. 1248 case $ac_val in 1249 */ ) 1250 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1251 eval $ac_var=\$ac_val;; 1252 esac 1253 # Be sure to have absolute directory names. 1254 case $ac_val in 1255 [\\/$]* | ?:[\\/]* ) continue;; 1256 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1257 esac 1258 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1259done 1260 1261# There might be people who depend on the old broken behavior: `$host' 1262# used to hold the argument of --host etc. 1263# FIXME: To remove some day. 1264build=$build_alias 1265host=$host_alias 1266target=$target_alias 1267 1268# FIXME: To remove some day. 1269if test "x$host_alias" != x; then 1270 if test "x$build_alias" = x; then 1271 cross_compiling=maybe 1272 elif test "x$build_alias" != "x$host_alias"; then 1273 cross_compiling=yes 1274 fi 1275fi 1276 1277ac_tool_prefix= 1278test -n "$host_alias" && ac_tool_prefix=$host_alias- 1279 1280test "$silent" = yes && exec 6>/dev/null 1281 1282 1283ac_pwd=`pwd` && test -n "$ac_pwd" && 1284ac_ls_di=`ls -di .` && 1285ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1286 as_fn_error $? "working directory cannot be determined" 1287test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1288 as_fn_error $? "pwd does not report name of working directory" 1289 1290 1291# Find the source files, if location was not specified. 1292if test -z "$srcdir"; then 1293 ac_srcdir_defaulted=yes 1294 # Try the directory containing this script, then the parent directory. 1295 ac_confdir=`$as_dirname -- "$as_myself" || 1296$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1297 X"$as_myself" : 'X\(//\)[^/]' \| \ 1298 X"$as_myself" : 'X\(//\)$' \| \ 1299 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1300$as_echo X"$as_myself" | 1301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1302 s//\1/ 1303 q 1304 } 1305 /^X\(\/\/\)[^/].*/{ 1306 s//\1/ 1307 q 1308 } 1309 /^X\(\/\/\)$/{ 1310 s//\1/ 1311 q 1312 } 1313 /^X\(\/\).*/{ 1314 s//\1/ 1315 q 1316 } 1317 s/.*/./; q'` 1318 srcdir=$ac_confdir 1319 if test ! -r "$srcdir/$ac_unique_file"; then 1320 srcdir=.. 1321 fi 1322else 1323 ac_srcdir_defaulted=no 1324fi 1325if test ! -r "$srcdir/$ac_unique_file"; then 1326 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1327 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1328fi 1329ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1330ac_abs_confdir=`( 1331 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1332 pwd)` 1333# When building in place, set srcdir=. 1334if test "$ac_abs_confdir" = "$ac_pwd"; then 1335 srcdir=. 1336fi 1337# Remove unnecessary trailing slashes from srcdir. 1338# Double slashes in file names in object file debugging info 1339# mess up M-x gdb in Emacs. 1340case $srcdir in 1341*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1342esac 1343for ac_var in $ac_precious_vars; do 1344 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1345 eval ac_env_${ac_var}_value=\$${ac_var} 1346 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1347 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1348done 1349 1350# 1351# Report the --help message. 1352# 1353if test "$ac_init_help" = "long"; then 1354 # Omit some internal or obsolete options to make the list less imposing. 1355 # This message is too long to be a string in the A/UX 3.1 sh. 1356 cat <<_ACEOF 1357\`configure' configures StarDict tools 3.0.6 to adapt to many kinds of systems. 1358 1359Usage: $0 [OPTION]... [VAR=VALUE]... 1360 1361To assign environment variables (e.g., CC, CFLAGS...), specify them as 1362VAR=VALUE. See below for descriptions of some of the useful variables. 1363 1364Defaults for the options are specified in brackets. 1365 1366Configuration: 1367 -h, --help display this help and exit 1368 --help=short display options specific to this package 1369 --help=recursive display the short help of all the included packages 1370 -V, --version display version information and exit 1371 -q, --quiet, --silent do not print \`checking ...' messages 1372 --cache-file=FILE cache test results in FILE [disabled] 1373 -C, --config-cache alias for \`--cache-file=config.cache' 1374 -n, --no-create do not create output files 1375 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1376 1377Installation directories: 1378 --prefix=PREFIX install architecture-independent files in PREFIX 1379 [$ac_default_prefix] 1380 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1381 [PREFIX] 1382 1383By default, \`make install' will install all the files in 1384\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1385an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1386for instance \`--prefix=\$HOME'. 1387 1388For better control, use the options below. 1389 1390Fine tuning of the installation directories: 1391 --bindir=DIR user executables [EPREFIX/bin] 1392 --sbindir=DIR system admin executables [EPREFIX/sbin] 1393 --libexecdir=DIR program executables [EPREFIX/libexec] 1394 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1395 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1396 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1397 --libdir=DIR object code libraries [EPREFIX/lib] 1398 --includedir=DIR C header files [PREFIX/include] 1399 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1400 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1401 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1402 --infodir=DIR info documentation [DATAROOTDIR/info] 1403 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1404 --mandir=DIR man documentation [DATAROOTDIR/man] 1405 --docdir=DIR documentation root [DATAROOTDIR/doc/stardict-tools] 1406 --htmldir=DIR html documentation [DOCDIR] 1407 --dvidir=DIR dvi documentation [DOCDIR] 1408 --pdfdir=DIR pdf documentation [DOCDIR] 1409 --psdir=DIR ps documentation [DOCDIR] 1410_ACEOF 1411 1412 cat <<\_ACEOF 1413 1414Program names: 1415 --program-prefix=PREFIX prepend PREFIX to installed program names 1416 --program-suffix=SUFFIX append SUFFIX to installed program names 1417 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1418 1419System types: 1420 --build=BUILD configure for building on BUILD [guessed] 1421 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1422_ACEOF 1423fi 1424 1425if test -n "$ac_init_help"; then 1426 case $ac_init_help in 1427 short | recursive ) echo "Configuration of StarDict tools 3.0.6:";; 1428 esac 1429 cat <<\_ACEOF 1430 1431Optional Features: 1432 --disable-option-checking ignore unrecognized --enable/--with options 1433 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1434 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1435 --enable-silent-rules less verbose build output (undo: "make V=1") 1436 --disable-silent-rules verbose build output (undo: "make V=0") 1437 --enable-shared[=PKGS] build shared libraries [default=yes] 1438 --enable-static[=PKGS] build static libraries [default=yes] 1439 --enable-fast-install[=PKGS] 1440 optimize for fast installation [default=yes] 1441 --enable-dependency-tracking 1442 do not reject slow dependency extractors 1443 --disable-dependency-tracking 1444 speeds up one-time build 1445 --disable-libtool-lock avoid locking (might break parallel builds) 1446 --disable-deprecations Disable deprecated gtk functions (default: enabled) 1447 --disable-rpath do not hardcode runtime library paths 1448 1449Optional Packages: 1450 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1451 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1452 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1453 both] 1454 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1455 --with-sysroot=DIR Search for dependent libraries within DIR 1456 (or the compiler's sysroot if not specified). 1457 --with-mysql-config=PATH The path to mysql-config if not in $PATH 1458 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1459 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1460 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1461 1462Some influential environment variables: 1463 CC C compiler command 1464 CFLAGS C compiler flags 1465 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1466 nonstandard directory <lib dir> 1467 LIBS libraries to pass to the linker, e.g. -l<library> 1468 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1469 you have headers in a nonstandard directory <include dir> 1470 CPP C preprocessor 1471 CXX C++ compiler command 1472 CXXFLAGS C++ compiler flags 1473 CXXCPP C++ preprocessor 1474 PKG_CONFIG path to pkg-config utility 1475 PKG_CONFIG_PATH 1476 directories to add to pkg-config's search path 1477 PKG_CONFIG_LIBDIR 1478 path overriding pkg-config's built-in search path 1479 STARDICT_CFLAGS 1480 C compiler flags for STARDICT, overriding pkg-config 1481 STARDICT_LIBS 1482 linker flags for STARDICT, overriding pkg-config 1483 DSL2DICT_CFLAGS 1484 C compiler flags for DSL2DICT, overriding pkg-config 1485 DSL2DICT_LIBS 1486 linker flags for DSL2DICT, overriding pkg-config 1487 LIBXML_CFLAGS 1488 C compiler flags for LIBXML, overriding pkg-config 1489 LIBXML_LIBS linker flags for LIBXML, overriding pkg-config 1490 1491Use these variables to override the choices made by `configure' or to help 1492it to find libraries and programs with nonstandard names/locations. 1493 1494Report bugs to <http://www.stardict.org>. 1495_ACEOF 1496ac_status=$? 1497fi 1498 1499if test "$ac_init_help" = "recursive"; then 1500 # If there are subdirs, report their specific --help. 1501 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1502 test -d "$ac_dir" || 1503 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1504 continue 1505 ac_builddir=. 1506 1507case "$ac_dir" in 1508.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1509*) 1510 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1511 # A ".." for each directory in $ac_dir_suffix. 1512 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1513 case $ac_top_builddir_sub in 1514 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1515 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1516 esac ;; 1517esac 1518ac_abs_top_builddir=$ac_pwd 1519ac_abs_builddir=$ac_pwd$ac_dir_suffix 1520# for backward compatibility: 1521ac_top_builddir=$ac_top_build_prefix 1522 1523case $srcdir in 1524 .) # We are building in place. 1525 ac_srcdir=. 1526 ac_top_srcdir=$ac_top_builddir_sub 1527 ac_abs_top_srcdir=$ac_pwd ;; 1528 [\\/]* | ?:[\\/]* ) # Absolute name. 1529 ac_srcdir=$srcdir$ac_dir_suffix; 1530 ac_top_srcdir=$srcdir 1531 ac_abs_top_srcdir=$srcdir ;; 1532 *) # Relative name. 1533 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1534 ac_top_srcdir=$ac_top_build_prefix$srcdir 1535 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1536esac 1537ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1538 1539 cd "$ac_dir" || { ac_status=$?; continue; } 1540 # Check for guested configure. 1541 if test -f "$ac_srcdir/configure.gnu"; then 1542 echo && 1543 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1544 elif test -f "$ac_srcdir/configure"; then 1545 echo && 1546 $SHELL "$ac_srcdir/configure" --help=recursive 1547 else 1548 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1549 fi || ac_status=$? 1550 cd "$ac_pwd" || { ac_status=$?; break; } 1551 done 1552fi 1553 1554test -n "$ac_init_help" && exit $ac_status 1555if $ac_init_version; then 1556 cat <<\_ACEOF 1557StarDict tools configure 3.0.6 1558generated by GNU Autoconf 2.69 1559 1560Copyright (C) 2012 Free Software Foundation, Inc. 1561This configure script is free software; the Free Software Foundation 1562gives unlimited permission to copy, distribute and modify it. 1563_ACEOF 1564 exit 1565fi 1566 1567## ------------------------ ## 1568## Autoconf initialization. ## 1569## ------------------------ ## 1570 1571# ac_fn_c_try_compile LINENO 1572# -------------------------- 1573# Try to compile conftest.$ac_ext, and return whether this succeeded. 1574ac_fn_c_try_compile () 1575{ 1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1577 rm -f conftest.$ac_objext 1578 if { { ac_try="$ac_compile" 1579case "(($ac_try" in 1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1581 *) ac_try_echo=$ac_try;; 1582esac 1583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1584$as_echo "$ac_try_echo"; } >&5 1585 (eval "$ac_compile") 2>conftest.err 1586 ac_status=$? 1587 if test -s conftest.err; then 1588 grep -v '^ *+' conftest.err >conftest.er1 1589 cat conftest.er1 >&5 1590 mv -f conftest.er1 conftest.err 1591 fi 1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1593 test $ac_status = 0; } && { 1594 test -z "$ac_c_werror_flag" || 1595 test ! -s conftest.err 1596 } && test -s conftest.$ac_objext; then : 1597 ac_retval=0 1598else 1599 $as_echo "$as_me: failed program was:" >&5 1600sed 's/^/| /' conftest.$ac_ext >&5 1601 1602 ac_retval=1 1603fi 1604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1605 as_fn_set_status $ac_retval 1606 1607} # ac_fn_c_try_compile 1608 1609# ac_fn_c_try_link LINENO 1610# ----------------------- 1611# Try to link conftest.$ac_ext, and return whether this succeeded. 1612ac_fn_c_try_link () 1613{ 1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1615 rm -f conftest.$ac_objext conftest$ac_exeext 1616 if { { ac_try="$ac_link" 1617case "(($ac_try" in 1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1619 *) ac_try_echo=$ac_try;; 1620esac 1621eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1622$as_echo "$ac_try_echo"; } >&5 1623 (eval "$ac_link") 2>conftest.err 1624 ac_status=$? 1625 if test -s conftest.err; then 1626 grep -v '^ *+' conftest.err >conftest.er1 1627 cat conftest.er1 >&5 1628 mv -f conftest.er1 conftest.err 1629 fi 1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1631 test $ac_status = 0; } && { 1632 test -z "$ac_c_werror_flag" || 1633 test ! -s conftest.err 1634 } && test -s conftest$ac_exeext && { 1635 test "$cross_compiling" = yes || 1636 test -x conftest$ac_exeext 1637 }; then : 1638 ac_retval=0 1639else 1640 $as_echo "$as_me: failed program was:" >&5 1641sed 's/^/| /' conftest.$ac_ext >&5 1642 1643 ac_retval=1 1644fi 1645 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1646 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1647 # interfere with the next link command; also delete a directory that is 1648 # left behind by Apple's compiler. We do this before executing the actions. 1649 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1651 as_fn_set_status $ac_retval 1652 1653} # ac_fn_c_try_link 1654 1655# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1656# ------------------------------------------------------- 1657# Tests whether HEADER exists and can be compiled using the include files in 1658# INCLUDES, setting the cache variable VAR accordingly. 1659ac_fn_c_check_header_compile () 1660{ 1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1663$as_echo_n "checking for $2... " >&6; } 1664if eval \${$3+:} false; then : 1665 $as_echo_n "(cached) " >&6 1666else 1667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1668/* end confdefs.h. */ 1669$4 1670#include <$2> 1671_ACEOF 1672if ac_fn_c_try_compile "$LINENO"; then : 1673 eval "$3=yes" 1674else 1675 eval "$3=no" 1676fi 1677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1678fi 1679eval ac_res=\$$3 1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1681$as_echo "$ac_res" >&6; } 1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1683 1684} # ac_fn_c_check_header_compile 1685 1686# ac_fn_c_try_cpp LINENO 1687# ---------------------- 1688# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1689ac_fn_c_try_cpp () 1690{ 1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1692 if { { ac_try="$ac_cpp conftest.$ac_ext" 1693case "(($ac_try" in 1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1695 *) ac_try_echo=$ac_try;; 1696esac 1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1698$as_echo "$ac_try_echo"; } >&5 1699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1700 ac_status=$? 1701 if test -s conftest.err; then 1702 grep -v '^ *+' conftest.err >conftest.er1 1703 cat conftest.er1 >&5 1704 mv -f conftest.er1 conftest.err 1705 fi 1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1707 test $ac_status = 0; } > conftest.i && { 1708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1709 test ! -s conftest.err 1710 }; then : 1711 ac_retval=0 1712else 1713 $as_echo "$as_me: failed program was:" >&5 1714sed 's/^/| /' conftest.$ac_ext >&5 1715 1716 ac_retval=1 1717fi 1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1719 as_fn_set_status $ac_retval 1720 1721} # ac_fn_c_try_cpp 1722 1723# ac_fn_c_try_run LINENO 1724# ---------------------- 1725# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1726# that executables *can* be run. 1727ac_fn_c_try_run () 1728{ 1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1730 if { { ac_try="$ac_link" 1731case "(($ac_try" in 1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1733 *) ac_try_echo=$ac_try;; 1734esac 1735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1736$as_echo "$ac_try_echo"; } >&5 1737 (eval "$ac_link") 2>&5 1738 ac_status=$? 1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1740 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1741 { { case "(($ac_try" in 1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1743 *) ac_try_echo=$ac_try;; 1744esac 1745eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1746$as_echo "$ac_try_echo"; } >&5 1747 (eval "$ac_try") 2>&5 1748 ac_status=$? 1749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1750 test $ac_status = 0; }; }; then : 1751 ac_retval=0 1752else 1753 $as_echo "$as_me: program exited with status $ac_status" >&5 1754 $as_echo "$as_me: failed program was:" >&5 1755sed 's/^/| /' conftest.$ac_ext >&5 1756 1757 ac_retval=$ac_status 1758fi 1759 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1761 as_fn_set_status $ac_retval 1762 1763} # ac_fn_c_try_run 1764 1765# ac_fn_c_check_func LINENO FUNC VAR 1766# ---------------------------------- 1767# Tests whether FUNC exists, setting the cache variable VAR accordingly 1768ac_fn_c_check_func () 1769{ 1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1772$as_echo_n "checking for $2... " >&6; } 1773if eval \${$3+:} false; then : 1774 $as_echo_n "(cached) " >&6 1775else 1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1777/* end confdefs.h. */ 1778/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1779 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1780#define $2 innocuous_$2 1781 1782/* System header to define __stub macros and hopefully few prototypes, 1783 which can conflict with char $2 (); below. 1784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1785 <limits.h> exists even on freestanding compilers. */ 1786 1787#ifdef __STDC__ 1788# include <limits.h> 1789#else 1790# include <assert.h> 1791#endif 1792 1793#undef $2 1794 1795/* Override any GCC internal prototype to avoid an error. 1796 Use char because int might match the return type of a GCC 1797 builtin and then its argument prototype would still apply. */ 1798#ifdef __cplusplus 1799extern "C" 1800#endif 1801char $2 (); 1802/* The GNU C library defines this for functions which it implements 1803 to always fail with ENOSYS. Some functions are actually named 1804 something starting with __ and the normal name is an alias. */ 1805#if defined __stub_$2 || defined __stub___$2 1806choke me 1807#endif 1808 1809int 1810main () 1811{ 1812return $2 (); 1813 ; 1814 return 0; 1815} 1816_ACEOF 1817if ac_fn_c_try_link "$LINENO"; then : 1818 eval "$3=yes" 1819else 1820 eval "$3=no" 1821fi 1822rm -f core conftest.err conftest.$ac_objext \ 1823 conftest$ac_exeext conftest.$ac_ext 1824fi 1825eval ac_res=\$$3 1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1827$as_echo "$ac_res" >&6; } 1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1829 1830} # ac_fn_c_check_func 1831 1832# ac_fn_cxx_try_compile LINENO 1833# ---------------------------- 1834# Try to compile conftest.$ac_ext, and return whether this succeeded. 1835ac_fn_cxx_try_compile () 1836{ 1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1838 rm -f conftest.$ac_objext 1839 if { { ac_try="$ac_compile" 1840case "(($ac_try" in 1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1842 *) ac_try_echo=$ac_try;; 1843esac 1844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1845$as_echo "$ac_try_echo"; } >&5 1846 (eval "$ac_compile") 2>conftest.err 1847 ac_status=$? 1848 if test -s conftest.err; then 1849 grep -v '^ *+' conftest.err >conftest.er1 1850 cat conftest.er1 >&5 1851 mv -f conftest.er1 conftest.err 1852 fi 1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1854 test $ac_status = 0; } && { 1855 test -z "$ac_cxx_werror_flag" || 1856 test ! -s conftest.err 1857 } && test -s conftest.$ac_objext; then : 1858 ac_retval=0 1859else 1860 $as_echo "$as_me: failed program was:" >&5 1861sed 's/^/| /' conftest.$ac_ext >&5 1862 1863 ac_retval=1 1864fi 1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1866 as_fn_set_status $ac_retval 1867 1868} # ac_fn_cxx_try_compile 1869 1870# ac_fn_cxx_try_cpp LINENO 1871# ------------------------ 1872# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1873ac_fn_cxx_try_cpp () 1874{ 1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1876 if { { ac_try="$ac_cpp conftest.$ac_ext" 1877case "(($ac_try" in 1878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1879 *) ac_try_echo=$ac_try;; 1880esac 1881eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1882$as_echo "$ac_try_echo"; } >&5 1883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1884 ac_status=$? 1885 if test -s conftest.err; then 1886 grep -v '^ *+' conftest.err >conftest.er1 1887 cat conftest.er1 >&5 1888 mv -f conftest.er1 conftest.err 1889 fi 1890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1891 test $ac_status = 0; } > conftest.i && { 1892 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1893 test ! -s conftest.err 1894 }; then : 1895 ac_retval=0 1896else 1897 $as_echo "$as_me: failed program was:" >&5 1898sed 's/^/| /' conftest.$ac_ext >&5 1899 1900 ac_retval=1 1901fi 1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1903 as_fn_set_status $ac_retval 1904 1905} # ac_fn_cxx_try_cpp 1906 1907# ac_fn_cxx_try_link LINENO 1908# ------------------------- 1909# Try to link conftest.$ac_ext, and return whether this succeeded. 1910ac_fn_cxx_try_link () 1911{ 1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1913 rm -f conftest.$ac_objext conftest$ac_exeext 1914 if { { ac_try="$ac_link" 1915case "(($ac_try" in 1916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1917 *) ac_try_echo=$ac_try;; 1918esac 1919eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1920$as_echo "$ac_try_echo"; } >&5 1921 (eval "$ac_link") 2>conftest.err 1922 ac_status=$? 1923 if test -s conftest.err; then 1924 grep -v '^ *+' conftest.err >conftest.er1 1925 cat conftest.er1 >&5 1926 mv -f conftest.er1 conftest.err 1927 fi 1928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1929 test $ac_status = 0; } && { 1930 test -z "$ac_cxx_werror_flag" || 1931 test ! -s conftest.err 1932 } && test -s conftest$ac_exeext && { 1933 test "$cross_compiling" = yes || 1934 test -x conftest$ac_exeext 1935 }; then : 1936 ac_retval=0 1937else 1938 $as_echo "$as_me: failed program was:" >&5 1939sed 's/^/| /' conftest.$ac_ext >&5 1940 1941 ac_retval=1 1942fi 1943 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1944 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1945 # interfere with the next link command; also delete a directory that is 1946 # left behind by Apple's compiler. We do this before executing the actions. 1947 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1949 as_fn_set_status $ac_retval 1950 1951} # ac_fn_cxx_try_link 1952 1953# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1954# ------------------------------------------------------- 1955# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1956# the include files in INCLUDES and setting the cache variable VAR 1957# accordingly. 1958ac_fn_c_check_header_mongrel () 1959{ 1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1961 if eval \${$3+:} false; then : 1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1963$as_echo_n "checking for $2... " >&6; } 1964if eval \${$3+:} false; then : 1965 $as_echo_n "(cached) " >&6 1966fi 1967eval ac_res=\$$3 1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1969$as_echo "$ac_res" >&6; } 1970else 1971 # Is the header compilable? 1972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1973$as_echo_n "checking $2 usability... " >&6; } 1974cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1975/* end confdefs.h. */ 1976$4 1977#include <$2> 1978_ACEOF 1979if ac_fn_c_try_compile "$LINENO"; then : 1980 ac_header_compiler=yes 1981else 1982 ac_header_compiler=no 1983fi 1984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1986$as_echo "$ac_header_compiler" >&6; } 1987 1988# Is the header present? 1989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1990$as_echo_n "checking $2 presence... " >&6; } 1991cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1992/* end confdefs.h. */ 1993#include <$2> 1994_ACEOF 1995if ac_fn_c_try_cpp "$LINENO"; then : 1996 ac_header_preproc=yes 1997else 1998 ac_header_preproc=no 1999fi 2000rm -f conftest.err conftest.i conftest.$ac_ext 2001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2002$as_echo "$ac_header_preproc" >&6; } 2003 2004# So? What about this header? 2005case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2006 yes:no: ) 2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2008$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2010$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2011 ;; 2012 no:yes:* ) 2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2014$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2016$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2018$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2020$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2022$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2023( $as_echo "## -------------------------------------- ## 2024## Report this to http://www.stardict.org ## 2025## -------------------------------------- ##" 2026 ) | sed "s/^/$as_me: WARNING: /" >&2 2027 ;; 2028esac 2029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2030$as_echo_n "checking for $2... " >&6; } 2031if eval \${$3+:} false; then : 2032 $as_echo_n "(cached) " >&6 2033else 2034 eval "$3=\$ac_header_compiler" 2035fi 2036eval ac_res=\$$3 2037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2038$as_echo "$ac_res" >&6; } 2039fi 2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2041 2042} # ac_fn_c_check_header_mongrel 2043cat >config.log <<_ACEOF 2044This file contains any messages produced by compilers while 2045running configure, to aid debugging if configure makes a mistake. 2046 2047It was created by StarDict tools $as_me 3.0.6, which was 2048generated by GNU Autoconf 2.69. Invocation command line was 2049 2050 $ $0 $@ 2051 2052_ACEOF 2053exec 5>>config.log 2054{ 2055cat <<_ASUNAME 2056## --------- ## 2057## Platform. ## 2058## --------- ## 2059 2060hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2061uname -m = `(uname -m) 2>/dev/null || echo unknown` 2062uname -r = `(uname -r) 2>/dev/null || echo unknown` 2063uname -s = `(uname -s) 2>/dev/null || echo unknown` 2064uname -v = `(uname -v) 2>/dev/null || echo unknown` 2065 2066/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2067/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2068 2069/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2070/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2071/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2072/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2073/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2074/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2075/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2076 2077_ASUNAME 2078 2079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2080for as_dir in $PATH 2081do 2082 IFS=$as_save_IFS 2083 test -z "$as_dir" && as_dir=. 2084 $as_echo "PATH: $as_dir" 2085 done 2086IFS=$as_save_IFS 2087 2088} >&5 2089 2090cat >&5 <<_ACEOF 2091 2092 2093## ----------- ## 2094## Core tests. ## 2095## ----------- ## 2096 2097_ACEOF 2098 2099 2100# Keep a trace of the command line. 2101# Strip out --no-create and --no-recursion so they do not pile up. 2102# Strip out --silent because we don't want to record it for future runs. 2103# Also quote any args containing shell meta-characters. 2104# Make two passes to allow for proper duplicate-argument suppression. 2105ac_configure_args= 2106ac_configure_args0= 2107ac_configure_args1= 2108ac_must_keep_next=false 2109for ac_pass in 1 2 2110do 2111 for ac_arg 2112 do 2113 case $ac_arg in 2114 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2116 | -silent | --silent | --silen | --sile | --sil) 2117 continue ;; 2118 *\'*) 2119 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2120 esac 2121 case $ac_pass in 2122 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2123 2) 2124 as_fn_append ac_configure_args1 " '$ac_arg'" 2125 if test $ac_must_keep_next = true; then 2126 ac_must_keep_next=false # Got value, back to normal. 2127 else 2128 case $ac_arg in 2129 *=* | --config-cache | -C | -disable-* | --disable-* \ 2130 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2131 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2132 | -with-* | --with-* | -without-* | --without-* | --x) 2133 case "$ac_configure_args0 " in 2134 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2135 esac 2136 ;; 2137 -* ) ac_must_keep_next=true ;; 2138 esac 2139 fi 2140 as_fn_append ac_configure_args " '$ac_arg'" 2141 ;; 2142 esac 2143 done 2144done 2145{ ac_configure_args0=; unset ac_configure_args0;} 2146{ ac_configure_args1=; unset ac_configure_args1;} 2147 2148# When interrupted or exit'd, cleanup temporary files, and complete 2149# config.log. We remove comments because anyway the quotes in there 2150# would cause problems or look ugly. 2151# WARNING: Use '\'' to represent an apostrophe within the trap. 2152# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2153trap 'exit_status=$? 2154 # Save into config.log some information that might help in debugging. 2155 { 2156 echo 2157 2158 $as_echo "## ---------------- ## 2159## Cache variables. ## 2160## ---------------- ##" 2161 echo 2162 # The following way of writing the cache mishandles newlines in values, 2163( 2164 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2165 eval ac_val=\$$ac_var 2166 case $ac_val in #( 2167 *${as_nl}*) 2168 case $ac_var in #( 2169 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2170$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2171 esac 2172 case $ac_var in #( 2173 _ | IFS | as_nl) ;; #( 2174 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2175 *) { eval $ac_var=; unset $ac_var;} ;; 2176 esac ;; 2177 esac 2178 done 2179 (set) 2>&1 | 2180 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2181 *${as_nl}ac_space=\ *) 2182 sed -n \ 2183 "s/'\''/'\''\\\\'\'''\''/g; 2184 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2185 ;; #( 2186 *) 2187 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2188 ;; 2189 esac | 2190 sort 2191) 2192 echo 2193 2194 $as_echo "## ----------------- ## 2195## Output variables. ## 2196## ----------------- ##" 2197 echo 2198 for ac_var in $ac_subst_vars 2199 do 2200 eval ac_val=\$$ac_var 2201 case $ac_val in 2202 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2203 esac 2204 $as_echo "$ac_var='\''$ac_val'\''" 2205 done | sort 2206 echo 2207 2208 if test -n "$ac_subst_files"; then 2209 $as_echo "## ------------------- ## 2210## File substitutions. ## 2211## ------------------- ##" 2212 echo 2213 for ac_var in $ac_subst_files 2214 do 2215 eval ac_val=\$$ac_var 2216 case $ac_val in 2217 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2218 esac 2219 $as_echo "$ac_var='\''$ac_val'\''" 2220 done | sort 2221 echo 2222 fi 2223 2224 if test -s confdefs.h; then 2225 $as_echo "## ----------- ## 2226## confdefs.h. ## 2227## ----------- ##" 2228 echo 2229 cat confdefs.h 2230 echo 2231 fi 2232 test "$ac_signal" != 0 && 2233 $as_echo "$as_me: caught signal $ac_signal" 2234 $as_echo "$as_me: exit $exit_status" 2235 } >&5 2236 rm -f core *.core core.conftest.* && 2237 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2238 exit $exit_status 2239' 0 2240for ac_signal in 1 2 13 15; do 2241 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2242done 2243ac_signal=0 2244 2245# confdefs.h avoids OS command line length limits that DEFS can exceed. 2246rm -f -r conftest* confdefs.h 2247 2248$as_echo "/* confdefs.h */" > confdefs.h 2249 2250# Predefined preprocessor variables. 2251 2252cat >>confdefs.h <<_ACEOF 2253#define PACKAGE_NAME "$PACKAGE_NAME" 2254_ACEOF 2255 2256cat >>confdefs.h <<_ACEOF 2257#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2258_ACEOF 2259 2260cat >>confdefs.h <<_ACEOF 2261#define PACKAGE_VERSION "$PACKAGE_VERSION" 2262_ACEOF 2263 2264cat >>confdefs.h <<_ACEOF 2265#define PACKAGE_STRING "$PACKAGE_STRING" 2266_ACEOF 2267 2268cat >>confdefs.h <<_ACEOF 2269#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2270_ACEOF 2271 2272cat >>confdefs.h <<_ACEOF 2273#define PACKAGE_URL "$PACKAGE_URL" 2274_ACEOF 2275 2276 2277# Let the site file select an alternate cache file if it wants to. 2278# Prefer an explicitly selected file to automatically selected ones. 2279ac_site_file1=NONE 2280ac_site_file2=NONE 2281if test -n "$CONFIG_SITE"; then 2282 # We do not want a PATH search for config.site. 2283 case $CONFIG_SITE in #(( 2284 -*) ac_site_file1=./$CONFIG_SITE;; 2285 */*) ac_site_file1=$CONFIG_SITE;; 2286 *) ac_site_file1=./$CONFIG_SITE;; 2287 esac 2288elif test "x$prefix" != xNONE; then 2289 ac_site_file1=$prefix/share/config.site 2290 ac_site_file2=$prefix/etc/config.site 2291else 2292 ac_site_file1=$ac_default_prefix/share/config.site 2293 ac_site_file2=$ac_default_prefix/etc/config.site 2294fi 2295for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2296do 2297 test "x$ac_site_file" = xNONE && continue 2298 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2299 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2300$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2301 sed 's/^/| /' "$ac_site_file" >&5 2302 . "$ac_site_file" \ 2303 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2304$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2305as_fn_error $? "failed to load site script $ac_site_file 2306See \`config.log' for more details" "$LINENO" 5; } 2307 fi 2308done 2309 2310if test -r "$cache_file"; then 2311 # Some versions of bash will fail to source /dev/null (special files 2312 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2313 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2314 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2315$as_echo "$as_me: loading cache $cache_file" >&6;} 2316 case $cache_file in 2317 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2318 *) . "./$cache_file";; 2319 esac 2320 fi 2321else 2322 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2323$as_echo "$as_me: creating cache $cache_file" >&6;} 2324 >$cache_file 2325fi 2326 2327# Check that the precious variables saved in the cache have kept the same 2328# value. 2329ac_cache_corrupted=false 2330for ac_var in $ac_precious_vars; do 2331 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2332 eval ac_new_set=\$ac_env_${ac_var}_set 2333 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2334 eval ac_new_val=\$ac_env_${ac_var}_value 2335 case $ac_old_set,$ac_new_set in 2336 set,) 2337 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2338$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2339 ac_cache_corrupted=: ;; 2340 ,set) 2341 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2342$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2343 ac_cache_corrupted=: ;; 2344 ,);; 2345 *) 2346 if test "x$ac_old_val" != "x$ac_new_val"; then 2347 # differences in whitespace do not lead to failure. 2348 ac_old_val_w=`echo x $ac_old_val` 2349 ac_new_val_w=`echo x $ac_new_val` 2350 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2351 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2352$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2353 ac_cache_corrupted=: 2354 else 2355 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2356$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2357 eval $ac_var=\$ac_old_val 2358 fi 2359 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2360$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2361 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2362$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2363 fi;; 2364 esac 2365 # Pass precious variables to config.status. 2366 if test "$ac_new_set" = set; then 2367 case $ac_new_val in 2368 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2369 *) ac_arg=$ac_var=$ac_new_val ;; 2370 esac 2371 case " $ac_configure_args " in 2372 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2373 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2374 esac 2375 fi 2376done 2377if $ac_cache_corrupted; then 2378 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2379$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2380 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2381$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2382 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2383fi 2384## -------------------- ## 2385## Main body of script. ## 2386## -------------------- ## 2387 2388ac_ext=c 2389ac_cpp='$CPP $CPPFLAGS' 2390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2392ac_compiler_gnu=$ac_cv_c_compiler_gnu 2393 2394 2395 2396ac_aux_dir= 2397for ac_dir in . "$srcdir"/.; do 2398 if test -f "$ac_dir/install-sh"; then 2399 ac_aux_dir=$ac_dir 2400 ac_install_sh="$ac_aux_dir/install-sh -c" 2401 break 2402 elif test -f "$ac_dir/install.sh"; then 2403 ac_aux_dir=$ac_dir 2404 ac_install_sh="$ac_aux_dir/install.sh -c" 2405 break 2406 elif test -f "$ac_dir/shtool"; then 2407 ac_aux_dir=$ac_dir 2408 ac_install_sh="$ac_aux_dir/shtool install -c" 2409 break 2410 fi 2411done 2412if test -z "$ac_aux_dir"; then 2413 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2414fi 2415 2416# These three variables are undocumented and unsupported, 2417# and are intended to be withdrawn in a future Autoconf release. 2418# They can cause serious problems if a builder's source tree is in a directory 2419# whose full name contains unusual characters. 2420ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2421ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2422ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2423 2424 2425am__api_version='1.14' 2426 2427# Find a good install program. We prefer a C program (faster), 2428# so one script is as good as another. But avoid the broken or 2429# incompatible versions: 2430# SysV /etc/install, /usr/sbin/install 2431# SunOS /usr/etc/install 2432# IRIX /sbin/install 2433# AIX /bin/install 2434# AmigaOS /C/install, which installs bootblocks on floppy discs 2435# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2436# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2437# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2438# OS/2's system install, which has a completely different semantic 2439# ./install, which can be erroneously created by make from ./install.sh. 2440# Reject install programs that cannot install multiple files. 2441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2442$as_echo_n "checking for a BSD-compatible install... " >&6; } 2443if test -z "$INSTALL"; then 2444if ${ac_cv_path_install+:} false; then : 2445 $as_echo_n "(cached) " >&6 2446else 2447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2448for as_dir in $PATH 2449do 2450 IFS=$as_save_IFS 2451 test -z "$as_dir" && as_dir=. 2452 # Account for people who put trailing slashes in PATH elements. 2453case $as_dir/ in #(( 2454 ./ | .// | /[cC]/* | \ 2455 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2456 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2457 /usr/ucb/* ) ;; 2458 *) 2459 # OSF1 and SCO ODT 3.0 have their own names for install. 2460 # Don't use installbsd from OSF since it installs stuff as root 2461 # by default. 2462 for ac_prog in ginstall scoinst install; do 2463 for ac_exec_ext in '' $ac_executable_extensions; do 2464 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2465 if test $ac_prog = install && 2466 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2467 # AIX install. It has an incompatible calling convention. 2468 : 2469 elif test $ac_prog = install && 2470 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2471 # program-specific install script used by HP pwplus--don't use. 2472 : 2473 else 2474 rm -rf conftest.one conftest.two conftest.dir 2475 echo one > conftest.one 2476 echo two > conftest.two 2477 mkdir conftest.dir 2478 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2479 test -s conftest.one && test -s conftest.two && 2480 test -s conftest.dir/conftest.one && 2481 test -s conftest.dir/conftest.two 2482 then 2483 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2484 break 3 2485 fi 2486 fi 2487 fi 2488 done 2489 done 2490 ;; 2491esac 2492 2493 done 2494IFS=$as_save_IFS 2495 2496rm -rf conftest.one conftest.two conftest.dir 2497 2498fi 2499 if test "${ac_cv_path_install+set}" = set; then 2500 INSTALL=$ac_cv_path_install 2501 else 2502 # As a last resort, use the slow shell script. Don't cache a 2503 # value for INSTALL within a source directory, because that will 2504 # break other packages using the cache if that directory is 2505 # removed, or if the value is a relative name. 2506 INSTALL=$ac_install_sh 2507 fi 2508fi 2509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2510$as_echo "$INSTALL" >&6; } 2511 2512# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2513# It thinks the first close brace ends the variable substitution. 2514test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2515 2516test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2517 2518test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2519 2520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2521$as_echo_n "checking whether build environment is sane... " >&6; } 2522# Reject unsafe characters in $srcdir or the absolute working directory 2523# name. Accept space and tab only in the latter. 2524am_lf=' 2525' 2526case `pwd` in 2527 *[\\\"\#\$\&\'\`$am_lf]*) 2528 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2529esac 2530case $srcdir in 2531 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2532 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2533esac 2534 2535# Do 'set' in a subshell so we don't clobber the current shell's 2536# arguments. Must try -L first in case configure is actually a 2537# symlink; some systems play weird games with the mod time of symlinks 2538# (eg FreeBSD returns the mod time of the symlink's containing 2539# directory). 2540if ( 2541 am_has_slept=no 2542 for am_try in 1 2; do 2543 echo "timestamp, slept: $am_has_slept" > conftest.file 2544 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2545 if test "$*" = "X"; then 2546 # -L didn't work. 2547 set X `ls -t "$srcdir/configure" conftest.file` 2548 fi 2549 if test "$*" != "X $srcdir/configure conftest.file" \ 2550 && test "$*" != "X conftest.file $srcdir/configure"; then 2551 2552 # If neither matched, then we have a broken ls. This can happen 2553 # if, for instance, CONFIG_SHELL is bash and it inherits a 2554 # broken ls alias from the environment. This has actually 2555 # happened. Such a system could not be considered "sane". 2556 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2557 alias in your environment" "$LINENO" 5 2558 fi 2559 if test "$2" = conftest.file || test $am_try -eq 2; then 2560 break 2561 fi 2562 # Just in case. 2563 sleep 1 2564 am_has_slept=yes 2565 done 2566 test "$2" = conftest.file 2567 ) 2568then 2569 # Ok. 2570 : 2571else 2572 as_fn_error $? "newly created file is older than distributed files! 2573Check your system clock" "$LINENO" 5 2574fi 2575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2576$as_echo "yes" >&6; } 2577# If we didn't sleep, we still need to ensure time stamps of config.status and 2578# generated files are strictly newer. 2579am_sleep_pid= 2580if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2581 ( sleep 1 ) & 2582 am_sleep_pid=$! 2583fi 2584 2585rm -f conftest.file 2586 2587test "$program_prefix" != NONE && 2588 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2589# Use a double $ so make ignores it. 2590test "$program_suffix" != NONE && 2591 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2592# Double any \ or $. 2593# By default was `s,x,x', remove it if useless. 2594ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2595program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2596 2597# expand $ac_aux_dir to an absolute path 2598am_aux_dir=`cd $ac_aux_dir && pwd` 2599 2600if test x"${MISSING+set}" != xset; then 2601 case $am_aux_dir in 2602 *\ * | *\ *) 2603 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2604 *) 2605 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2606 esac 2607fi 2608# Use eval to expand $SHELL 2609if eval "$MISSING --is-lightweight"; then 2610 am_missing_run="$MISSING " 2611else 2612 am_missing_run= 2613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2614$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2615fi 2616 2617if test x"${install_sh}" != xset; then 2618 case $am_aux_dir in 2619 *\ * | *\ *) 2620 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2621 *) 2622 install_sh="\${SHELL} $am_aux_dir/install-sh" 2623 esac 2624fi 2625 2626# Installed binaries are usually stripped using 'strip' when the user 2627# run "make install-strip". However 'strip' might not be the right 2628# tool to use in cross-compilation environments, therefore Automake 2629# will honor the 'STRIP' environment variable to overrule this program. 2630if test "$cross_compiling" != no; then 2631 if test -n "$ac_tool_prefix"; then 2632 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2633set dummy ${ac_tool_prefix}strip; ac_word=$2 2634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2635$as_echo_n "checking for $ac_word... " >&6; } 2636if ${ac_cv_prog_STRIP+:} false; then : 2637 $as_echo_n "(cached) " >&6 2638else 2639 if test -n "$STRIP"; then 2640 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2641else 2642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2643for as_dir in $PATH 2644do 2645 IFS=$as_save_IFS 2646 test -z "$as_dir" && as_dir=. 2647 for ac_exec_ext in '' $ac_executable_extensions; do 2648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2649 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2651 break 2 2652 fi 2653done 2654 done 2655IFS=$as_save_IFS 2656 2657fi 2658fi 2659STRIP=$ac_cv_prog_STRIP 2660if test -n "$STRIP"; then 2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2662$as_echo "$STRIP" >&6; } 2663else 2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2665$as_echo "no" >&6; } 2666fi 2667 2668 2669fi 2670if test -z "$ac_cv_prog_STRIP"; then 2671 ac_ct_STRIP=$STRIP 2672 # Extract the first word of "strip", so it can be a program name with args. 2673set dummy strip; ac_word=$2 2674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2675$as_echo_n "checking for $ac_word... " >&6; } 2676if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2677 $as_echo_n "(cached) " >&6 2678else 2679 if test -n "$ac_ct_STRIP"; then 2680 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2681else 2682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2683for as_dir in $PATH 2684do 2685 IFS=$as_save_IFS 2686 test -z "$as_dir" && as_dir=. 2687 for ac_exec_ext in '' $ac_executable_extensions; do 2688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2689 ac_cv_prog_ac_ct_STRIP="strip" 2690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2691 break 2 2692 fi 2693done 2694 done 2695IFS=$as_save_IFS 2696 2697fi 2698fi 2699ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2700if test -n "$ac_ct_STRIP"; then 2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2702$as_echo "$ac_ct_STRIP" >&6; } 2703else 2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2705$as_echo "no" >&6; } 2706fi 2707 2708 if test "x$ac_ct_STRIP" = x; then 2709 STRIP=":" 2710 else 2711 case $cross_compiling:$ac_tool_warned in 2712yes:) 2713{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2714$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2715ac_tool_warned=yes ;; 2716esac 2717 STRIP=$ac_ct_STRIP 2718 fi 2719else 2720 STRIP="$ac_cv_prog_STRIP" 2721fi 2722 2723fi 2724INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2725 2726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2727$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2728if test -z "$MKDIR_P"; then 2729 if ${ac_cv_path_mkdir+:} false; then : 2730 $as_echo_n "(cached) " >&6 2731else 2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2733for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2734do 2735 IFS=$as_save_IFS 2736 test -z "$as_dir" && as_dir=. 2737 for ac_prog in mkdir gmkdir; do 2738 for ac_exec_ext in '' $ac_executable_extensions; do 2739 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2740 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2741 'mkdir (GNU coreutils) '* | \ 2742 'mkdir (coreutils) '* | \ 2743 'mkdir (fileutils) '4.1*) 2744 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2745 break 3;; 2746 esac 2747 done 2748 done 2749 done 2750IFS=$as_save_IFS 2751 2752fi 2753 2754 test -d ./--version && rmdir ./--version 2755 if test "${ac_cv_path_mkdir+set}" = set; then 2756 MKDIR_P="$ac_cv_path_mkdir -p" 2757 else 2758 # As a last resort, use the slow shell script. Don't cache a 2759 # value for MKDIR_P within a source directory, because that will 2760 # break other packages using the cache if that directory is 2761 # removed, or if the value is a relative name. 2762 MKDIR_P="$ac_install_sh -d" 2763 fi 2764fi 2765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2766$as_echo "$MKDIR_P" >&6; } 2767 2768for ac_prog in gawk mawk nawk awk 2769do 2770 # Extract the first word of "$ac_prog", so it can be a program name with args. 2771set dummy $ac_prog; ac_word=$2 2772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2773$as_echo_n "checking for $ac_word... " >&6; } 2774if ${ac_cv_prog_AWK+:} false; then : 2775 $as_echo_n "(cached) " >&6 2776else 2777 if test -n "$AWK"; then 2778 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2779else 2780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2781for as_dir in $PATH 2782do 2783 IFS=$as_save_IFS 2784 test -z "$as_dir" && as_dir=. 2785 for ac_exec_ext in '' $ac_executable_extensions; do 2786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2787 ac_cv_prog_AWK="$ac_prog" 2788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2789 break 2 2790 fi 2791done 2792 done 2793IFS=$as_save_IFS 2794 2795fi 2796fi 2797AWK=$ac_cv_prog_AWK 2798if test -n "$AWK"; then 2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2800$as_echo "$AWK" >&6; } 2801else 2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2803$as_echo "no" >&6; } 2804fi 2805 2806 2807 test -n "$AWK" && break 2808done 2809 2810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2811$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2812set x ${MAKE-make} 2813ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2814if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2815 $as_echo_n "(cached) " >&6 2816else 2817 cat >conftest.make <<\_ACEOF 2818SHELL = /bin/sh 2819all: 2820 @echo '@@@%%%=$(MAKE)=@@@%%%' 2821_ACEOF 2822# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2823case `${MAKE-make} -f conftest.make 2>/dev/null` in 2824 *@@@%%%=?*=@@@%%%*) 2825 eval ac_cv_prog_make_${ac_make}_set=yes;; 2826 *) 2827 eval ac_cv_prog_make_${ac_make}_set=no;; 2828esac 2829rm -f conftest.make 2830fi 2831if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2833$as_echo "yes" >&6; } 2834 SET_MAKE= 2835else 2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2837$as_echo "no" >&6; } 2838 SET_MAKE="MAKE=${MAKE-make}" 2839fi 2840 2841rm -rf .tst 2>/dev/null 2842mkdir .tst 2>/dev/null 2843if test -d .tst; then 2844 am__leading_dot=. 2845else 2846 am__leading_dot=_ 2847fi 2848rmdir .tst 2>/dev/null 2849 2850# Check whether --enable-silent-rules was given. 2851if test "${enable_silent_rules+set}" = set; then : 2852 enableval=$enable_silent_rules; 2853fi 2854 2855case $enable_silent_rules in # ((( 2856 yes) AM_DEFAULT_VERBOSITY=0;; 2857 no) AM_DEFAULT_VERBOSITY=1;; 2858 *) AM_DEFAULT_VERBOSITY=1;; 2859esac 2860am_make=${MAKE-make} 2861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2862$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2863if ${am_cv_make_support_nested_variables+:} false; then : 2864 $as_echo_n "(cached) " >&6 2865else 2866 if $as_echo 'TRUE=$(BAR$(V)) 2867BAR0=false 2868BAR1=true 2869V=1 2870am__doit: 2871 @$(TRUE) 2872.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2873 am_cv_make_support_nested_variables=yes 2874else 2875 am_cv_make_support_nested_variables=no 2876fi 2877fi 2878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2879$as_echo "$am_cv_make_support_nested_variables" >&6; } 2880if test $am_cv_make_support_nested_variables = yes; then 2881 AM_V='$(V)' 2882 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2883else 2884 AM_V=$AM_DEFAULT_VERBOSITY 2885 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2886fi 2887AM_BACKSLASH='\' 2888 2889if test "`cd $srcdir && pwd`" != "`pwd`"; then 2890 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2891 # is not polluted with repeated "-I." 2892 am__isrc=' -I$(srcdir)' 2893 # test to see if srcdir already configured 2894 if test -f $srcdir/config.status; then 2895 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2896 fi 2897fi 2898 2899# test whether we have cygpath 2900if test -z "$CYGPATH_W"; then 2901 if (cygpath --version) >/dev/null 2>/dev/null; then 2902 CYGPATH_W='cygpath -w' 2903 else 2904 CYGPATH_W=echo 2905 fi 2906fi 2907 2908 2909# Define the identity of the package. 2910 PACKAGE='stardict-tools' 2911 VERSION='3.0.6' 2912 2913 2914cat >>confdefs.h <<_ACEOF 2915#define PACKAGE "$PACKAGE" 2916_ACEOF 2917 2918 2919cat >>confdefs.h <<_ACEOF 2920#define VERSION "$VERSION" 2921_ACEOF 2922 2923# Some tools Automake needs. 2924 2925ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2926 2927 2928AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2929 2930 2931AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2932 2933 2934AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2935 2936 2937MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2938 2939# For better backward compatibility. To be removed once Automake 1.9.x 2940# dies out for good. For more background, see: 2941# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2942# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2943mkdir_p='$(MKDIR_P)' 2944 2945# We need awk for the "check" target. The system "awk" is bad on 2946# some platforms. 2947# Always define AMTAR for backward compatibility. Yes, it's still used 2948# in the wild :-( We should find a proper way to deprecate it ... 2949AMTAR='$${TAR-tar}' 2950 2951 2952# We'll loop over all known methods to create a tar archive until one works. 2953_am_tools='gnutar plaintar pax cpio none' 2954 2955# The POSIX 1988 'ustar' format is defined with fixed-size fields. 2956 # There is notably a 21 bits limit for the UID and the GID. In fact, 2957 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 2958 # and bug#13588). 2959 am_max_uid=2097151 # 2^21 - 1 2960 am_max_gid=$am_max_uid 2961 # The $UID and $GID variables are not portable, so we need to resort 2962 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 2963 # below are definitely unexpected, so allow the users to see them 2964 # (that is, avoid stderr redirection). 2965 am_uid=`id -u || echo unknown` 2966 am_gid=`id -g || echo unknown` 2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 2968$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 2969 if test $am_uid -le $am_max_uid; then 2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2971$as_echo "yes" >&6; } 2972 else 2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2974$as_echo "no" >&6; } 2975 _am_tools=none 2976 fi 2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 2978$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 2979 if test $am_gid -le $am_max_gid; then 2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2981$as_echo "yes" >&6; } 2982 else 2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2984$as_echo "no" >&6; } 2985 _am_tools=none 2986 fi 2987 2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 2989$as_echo_n "checking how to create a ustar tar archive... " >&6; } 2990 2991 # Go ahead even if we have the value already cached. We do so because we 2992 # need to set the values for the 'am__tar' and 'am__untar' variables. 2993 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 2994 2995 for _am_tool in $_am_tools; do 2996 case $_am_tool in 2997 gnutar) 2998 for _am_tar in tar gnutar gtar; do 2999 { echo "$as_me:$LINENO: $_am_tar --version" >&5 3000 ($_am_tar --version) >&5 2>&5 3001 ac_status=$? 3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3003 (exit $ac_status); } && break 3004 done 3005 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 3006 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 3007 am__untar="$_am_tar -xf -" 3008 ;; 3009 plaintar) 3010 # Must skip GNU tar: if it does not support --format= it doesn't create 3011 # ustar tarball either. 3012 (tar --version) >/dev/null 2>&1 && continue 3013 am__tar='tar chf - "$$tardir"' 3014 am__tar_='tar chf - "$tardir"' 3015 am__untar='tar xf -' 3016 ;; 3017 pax) 3018 am__tar='pax -L -x ustar -w "$$tardir"' 3019 am__tar_='pax -L -x ustar -w "$tardir"' 3020 am__untar='pax -r' 3021 ;; 3022 cpio) 3023 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 3024 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 3025 am__untar='cpio -i -H ustar -d' 3026 ;; 3027 none) 3028 am__tar=false 3029 am__tar_=false 3030 am__untar=false 3031 ;; 3032 esac 3033 3034 # If the value was cached, stop now. We just wanted to have am__tar 3035 # and am__untar set. 3036 test -n "${am_cv_prog_tar_ustar}" && break 3037 3038 # tar/untar a dummy directory, and stop if the command works. 3039 rm -rf conftest.dir 3040 mkdir conftest.dir 3041 echo GrepMe > conftest.dir/file 3042 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 3043 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 3044 ac_status=$? 3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3046 (exit $ac_status); } 3047 rm -rf conftest.dir 3048 if test -s conftest.tar; then 3049 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 3050 ($am__untar <conftest.tar) >&5 2>&5 3051 ac_status=$? 3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3053 (exit $ac_status); } 3054 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 3055 (cat conftest.dir/file) >&5 2>&5 3056 ac_status=$? 3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3058 (exit $ac_status); } 3059 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 3060 fi 3061 done 3062 rm -rf conftest.dir 3063 3064 if ${am_cv_prog_tar_ustar+:} false; then : 3065 $as_echo_n "(cached) " >&6 3066else 3067 am_cv_prog_tar_ustar=$_am_tool 3068fi 3069 3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 3071$as_echo "$am_cv_prog_tar_ustar" >&6; } 3072 3073 3074 3075 3076 3077 3078# POSIX will say in a future version that running "rm -f" with no argument 3079# is OK; and we want to be able to make that assumption in our Makefile 3080# recipes. So use an aggressive probe to check that the usage we want is 3081# actually supported "in the wild" to an acceptable degree. 3082# See automake bug#10828. 3083# To make any issue more visible, cause the running configure to be aborted 3084# by default if the 'rm' program in use doesn't match our expectations; the 3085# user can still override this though. 3086if rm -f && rm -fr && rm -rf; then : OK; else 3087 cat >&2 <<'END' 3088Oops! 3089 3090Your 'rm' program seems unable to run without file operands specified 3091on the command line, even when the '-f' option is present. This is contrary 3092to the behaviour of most rm programs out there, and not conforming with 3093the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3094 3095Please tell bug-automake@gnu.org about your system, including the value 3096of your $PATH and any error possibly output before this message. This 3097can help us improve future automake versions. 3098 3099END 3100 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3101 echo 'Configuration will proceed anyway, since you have set the' >&2 3102 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3103 echo >&2 3104 else 3105 cat >&2 <<'END' 3106Aborting the configuration process, to ensure you take notice of the issue. 3107 3108You can download and install GNU coreutils to get an 'rm' implementation 3109that behaves properly: <http://www.gnu.org/software/coreutils/>. 3110 3111If you want to complete the configuration process using your problematic 3112'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3113to "yes", and re-run configure. 3114 3115END 3116 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3117 fi 3118fi 3119 3120ac_config_headers="$ac_config_headers config.h" 3121 3122 3123 3124 3125case `pwd` in 3126 *\ * | *\ *) 3127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3128$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3129esac 3130 3131 3132 3133macro_version='2.4.2' 3134macro_revision='1.3337' 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148ltmain="$ac_aux_dir/ltmain.sh" 3149 3150# Make sure we can run config.sub. 3151$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3152 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3153 3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3155$as_echo_n "checking build system type... " >&6; } 3156if ${ac_cv_build+:} false; then : 3157 $as_echo_n "(cached) " >&6 3158else 3159 ac_build_alias=$build_alias 3160test "x$ac_build_alias" = x && 3161 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3162test "x$ac_build_alias" = x && 3163 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3164ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3165 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3166 3167fi 3168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3169$as_echo "$ac_cv_build" >&6; } 3170case $ac_cv_build in 3171*-*-*) ;; 3172*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3173esac 3174build=$ac_cv_build 3175ac_save_IFS=$IFS; IFS='-' 3176set x $ac_cv_build 3177shift 3178build_cpu=$1 3179build_vendor=$2 3180shift; shift 3181# Remember, the first character of IFS is used to create $*, 3182# except with old shells: 3183build_os=$* 3184IFS=$ac_save_IFS 3185case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3186 3187 3188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3189$as_echo_n "checking host system type... " >&6; } 3190if ${ac_cv_host+:} false; then : 3191 $as_echo_n "(cached) " >&6 3192else 3193 if test "x$host_alias" = x; then 3194 ac_cv_host=$ac_cv_build 3195else 3196 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3197 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3198fi 3199 3200fi 3201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3202$as_echo "$ac_cv_host" >&6; } 3203case $ac_cv_host in 3204*-*-*) ;; 3205*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3206esac 3207host=$ac_cv_host 3208ac_save_IFS=$IFS; IFS='-' 3209set x $ac_cv_host 3210shift 3211host_cpu=$1 3212host_vendor=$2 3213shift; shift 3214# Remember, the first character of IFS is used to create $*, 3215# except with old shells: 3216host_os=$* 3217IFS=$ac_save_IFS 3218case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3219 3220 3221# Backslashify metacharacters that are still active within 3222# double-quoted strings. 3223sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3224 3225# Same as above, but do not quote variable references. 3226double_quote_subst='s/\(["`\\]\)/\\\1/g' 3227 3228# Sed substitution to delay expansion of an escaped shell variable in a 3229# double_quote_subst'ed string. 3230delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3231 3232# Sed substitution to delay expansion of an escaped single quote. 3233delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3234 3235# Sed substitution to avoid accidental globbing in evaled expressions 3236no_glob_subst='s/\*/\\\*/g' 3237 3238ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3239ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3240ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3241 3242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3243$as_echo_n "checking how to print strings... " >&6; } 3244# Test print first, because it will be a builtin if present. 3245if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3246 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3247 ECHO='print -r --' 3248elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3249 ECHO='printf %s\n' 3250else 3251 # Use this function as a fallback that always works. 3252 func_fallback_echo () 3253 { 3254 eval 'cat <<_LTECHO_EOF 3255$1 3256_LTECHO_EOF' 3257 } 3258 ECHO='func_fallback_echo' 3259fi 3260 3261# func_echo_all arg... 3262# Invoke $ECHO with all args, space-separated. 3263func_echo_all () 3264{ 3265 $ECHO "" 3266} 3267 3268case "$ECHO" in 3269 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3270$as_echo "printf" >&6; } ;; 3271 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3272$as_echo "print -r" >&6; } ;; 3273 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3274$as_echo "cat" >&6; } ;; 3275esac 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290DEPDIR="${am__leading_dot}deps" 3291 3292ac_config_commands="$ac_config_commands depfiles" 3293 3294 3295am_make=${MAKE-make} 3296cat > confinc << 'END' 3297am__doit: 3298 @echo this is the am__doit target 3299.PHONY: am__doit 3300END 3301# If we don't find an include directive, just comment out the code. 3302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3303$as_echo_n "checking for style of include used by $am_make... " >&6; } 3304am__include="#" 3305am__quote= 3306_am_result=none 3307# First try GNU make style include. 3308echo "include confinc" > confmf 3309# Ignore all kinds of additional output from 'make'. 3310case `$am_make -s -f confmf 2> /dev/null` in #( 3311*the\ am__doit\ target*) 3312 am__include=include 3313 am__quote= 3314 _am_result=GNU 3315 ;; 3316esac 3317# Now try BSD make style include. 3318if test "$am__include" = "#"; then 3319 echo '.include "confinc"' > confmf 3320 case `$am_make -s -f confmf 2> /dev/null` in #( 3321 *the\ am__doit\ target*) 3322 am__include=.include 3323 am__quote="\"" 3324 _am_result=BSD 3325 ;; 3326 esac 3327fi 3328 3329 3330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3331$as_echo "$_am_result" >&6; } 3332rm -f confinc confmf 3333 3334# Check whether --enable-dependency-tracking was given. 3335if test "${enable_dependency_tracking+set}" = set; then : 3336 enableval=$enable_dependency_tracking; 3337fi 3338 3339if test "x$enable_dependency_tracking" != xno; then 3340 am_depcomp="$ac_aux_dir/depcomp" 3341 AMDEPBACKSLASH='\' 3342 am__nodep='_no' 3343fi 3344 if test "x$enable_dependency_tracking" != xno; then 3345 AMDEP_TRUE= 3346 AMDEP_FALSE='#' 3347else 3348 AMDEP_TRUE='#' 3349 AMDEP_FALSE= 3350fi 3351 3352 3353ac_ext=c 3354ac_cpp='$CPP $CPPFLAGS' 3355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3357ac_compiler_gnu=$ac_cv_c_compiler_gnu 3358if test -n "$ac_tool_prefix"; then 3359 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3360set dummy ${ac_tool_prefix}gcc; ac_word=$2 3361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3362$as_echo_n "checking for $ac_word... " >&6; } 3363if ${ac_cv_prog_CC+:} false; then : 3364 $as_echo_n "(cached) " >&6 3365else 3366 if test -n "$CC"; then 3367 ac_cv_prog_CC="$CC" # Let the user override the test. 3368else 3369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3370for as_dir in $PATH 3371do 3372 IFS=$as_save_IFS 3373 test -z "$as_dir" && as_dir=. 3374 for ac_exec_ext in '' $ac_executable_extensions; do 3375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3376 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3378 break 2 3379 fi 3380done 3381 done 3382IFS=$as_save_IFS 3383 3384fi 3385fi 3386CC=$ac_cv_prog_CC 3387if test -n "$CC"; then 3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3389$as_echo "$CC" >&6; } 3390else 3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3392$as_echo "no" >&6; } 3393fi 3394 3395 3396fi 3397if test -z "$ac_cv_prog_CC"; then 3398 ac_ct_CC=$CC 3399 # Extract the first word of "gcc", so it can be a program name with args. 3400set dummy gcc; ac_word=$2 3401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3402$as_echo_n "checking for $ac_word... " >&6; } 3403if ${ac_cv_prog_ac_ct_CC+:} false; then : 3404 $as_echo_n "(cached) " >&6 3405else 3406 if test -n "$ac_ct_CC"; then 3407 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3408else 3409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3410for as_dir in $PATH 3411do 3412 IFS=$as_save_IFS 3413 test -z "$as_dir" && as_dir=. 3414 for ac_exec_ext in '' $ac_executable_extensions; do 3415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3416 ac_cv_prog_ac_ct_CC="gcc" 3417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3418 break 2 3419 fi 3420done 3421 done 3422IFS=$as_save_IFS 3423 3424fi 3425fi 3426ac_ct_CC=$ac_cv_prog_ac_ct_CC 3427if test -n "$ac_ct_CC"; then 3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3429$as_echo "$ac_ct_CC" >&6; } 3430else 3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3432$as_echo "no" >&6; } 3433fi 3434 3435 if test "x$ac_ct_CC" = x; then 3436 CC="" 3437 else 3438 case $cross_compiling:$ac_tool_warned in 3439yes:) 3440{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3441$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3442ac_tool_warned=yes ;; 3443esac 3444 CC=$ac_ct_CC 3445 fi 3446else 3447 CC="$ac_cv_prog_CC" 3448fi 3449 3450if test -z "$CC"; then 3451 if test -n "$ac_tool_prefix"; then 3452 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3453set dummy ${ac_tool_prefix}cc; ac_word=$2 3454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3455$as_echo_n "checking for $ac_word... " >&6; } 3456if ${ac_cv_prog_CC+:} false; then : 3457 $as_echo_n "(cached) " >&6 3458else 3459 if test -n "$CC"; then 3460 ac_cv_prog_CC="$CC" # Let the user override the test. 3461else 3462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3463for as_dir in $PATH 3464do 3465 IFS=$as_save_IFS 3466 test -z "$as_dir" && as_dir=. 3467 for ac_exec_ext in '' $ac_executable_extensions; do 3468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3469 ac_cv_prog_CC="${ac_tool_prefix}cc" 3470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3471 break 2 3472 fi 3473done 3474 done 3475IFS=$as_save_IFS 3476 3477fi 3478fi 3479CC=$ac_cv_prog_CC 3480if test -n "$CC"; then 3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3482$as_echo "$CC" >&6; } 3483else 3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3485$as_echo "no" >&6; } 3486fi 3487 3488 3489 fi 3490fi 3491if test -z "$CC"; then 3492 # Extract the first word of "cc", so it can be a program name with args. 3493set dummy cc; ac_word=$2 3494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3495$as_echo_n "checking for $ac_word... " >&6; } 3496if ${ac_cv_prog_CC+:} false; then : 3497 $as_echo_n "(cached) " >&6 3498else 3499 if test -n "$CC"; then 3500 ac_cv_prog_CC="$CC" # Let the user override the test. 3501else 3502 ac_prog_rejected=no 3503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3504for as_dir in $PATH 3505do 3506 IFS=$as_save_IFS 3507 test -z "$as_dir" && as_dir=. 3508 for ac_exec_ext in '' $ac_executable_extensions; do 3509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3510 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3511 ac_prog_rejected=yes 3512 continue 3513 fi 3514 ac_cv_prog_CC="cc" 3515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3516 break 2 3517 fi 3518done 3519 done 3520IFS=$as_save_IFS 3521 3522if test $ac_prog_rejected = yes; then 3523 # We found a bogon in the path, so make sure we never use it. 3524 set dummy $ac_cv_prog_CC 3525 shift 3526 if test $# != 0; then 3527 # We chose a different compiler from the bogus one. 3528 # However, it has the same basename, so the bogon will be chosen 3529 # first if we set CC to just the basename; use the full file name. 3530 shift 3531 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3532 fi 3533fi 3534fi 3535fi 3536CC=$ac_cv_prog_CC 3537if test -n "$CC"; then 3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3539$as_echo "$CC" >&6; } 3540else 3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3542$as_echo "no" >&6; } 3543fi 3544 3545 3546fi 3547if test -z "$CC"; then 3548 if test -n "$ac_tool_prefix"; then 3549 for ac_prog in cl.exe 3550 do 3551 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3552set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3554$as_echo_n "checking for $ac_word... " >&6; } 3555if ${ac_cv_prog_CC+:} false; then : 3556 $as_echo_n "(cached) " >&6 3557else 3558 if test -n "$CC"; then 3559 ac_cv_prog_CC="$CC" # Let the user override the test. 3560else 3561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3562for as_dir in $PATH 3563do 3564 IFS=$as_save_IFS 3565 test -z "$as_dir" && as_dir=. 3566 for ac_exec_ext in '' $ac_executable_extensions; do 3567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3568 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3570 break 2 3571 fi 3572done 3573 done 3574IFS=$as_save_IFS 3575 3576fi 3577fi 3578CC=$ac_cv_prog_CC 3579if test -n "$CC"; then 3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3581$as_echo "$CC" >&6; } 3582else 3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3584$as_echo "no" >&6; } 3585fi 3586 3587 3588 test -n "$CC" && break 3589 done 3590fi 3591if test -z "$CC"; then 3592 ac_ct_CC=$CC 3593 for ac_prog in cl.exe 3594do 3595 # Extract the first word of "$ac_prog", so it can be a program name with args. 3596set dummy $ac_prog; ac_word=$2 3597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3598$as_echo_n "checking for $ac_word... " >&6; } 3599if ${ac_cv_prog_ac_ct_CC+:} false; then : 3600 $as_echo_n "(cached) " >&6 3601else 3602 if test -n "$ac_ct_CC"; then 3603 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3604else 3605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3606for as_dir in $PATH 3607do 3608 IFS=$as_save_IFS 3609 test -z "$as_dir" && as_dir=. 3610 for ac_exec_ext in '' $ac_executable_extensions; do 3611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3612 ac_cv_prog_ac_ct_CC="$ac_prog" 3613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3614 break 2 3615 fi 3616done 3617 done 3618IFS=$as_save_IFS 3619 3620fi 3621fi 3622ac_ct_CC=$ac_cv_prog_ac_ct_CC 3623if test -n "$ac_ct_CC"; then 3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3625$as_echo "$ac_ct_CC" >&6; } 3626else 3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3628$as_echo "no" >&6; } 3629fi 3630 3631 3632 test -n "$ac_ct_CC" && break 3633done 3634 3635 if test "x$ac_ct_CC" = x; then 3636 CC="" 3637 else 3638 case $cross_compiling:$ac_tool_warned in 3639yes:) 3640{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3641$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3642ac_tool_warned=yes ;; 3643esac 3644 CC=$ac_ct_CC 3645 fi 3646fi 3647 3648fi 3649 3650 3651test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3652$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3653as_fn_error $? "no acceptable C compiler found in \$PATH 3654See \`config.log' for more details" "$LINENO" 5; } 3655 3656# Provide some information about the compiler. 3657$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3658set X $ac_compile 3659ac_compiler=$2 3660for ac_option in --version -v -V -qversion; do 3661 { { ac_try="$ac_compiler $ac_option >&5" 3662case "(($ac_try" in 3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3664 *) ac_try_echo=$ac_try;; 3665esac 3666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3667$as_echo "$ac_try_echo"; } >&5 3668 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3669 ac_status=$? 3670 if test -s conftest.err; then 3671 sed '10a\ 3672... rest of stderr output deleted ... 3673 10q' conftest.err >conftest.er1 3674 cat conftest.er1 >&5 3675 fi 3676 rm -f conftest.er1 conftest.err 3677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3678 test $ac_status = 0; } 3679done 3680 3681cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3682/* end confdefs.h. */ 3683 3684int 3685main () 3686{ 3687 3688 ; 3689 return 0; 3690} 3691_ACEOF 3692ac_clean_files_save=$ac_clean_files 3693ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3694# Try to create an executable without -o first, disregard a.out. 3695# It will help us diagnose broken compilers, and finding out an intuition 3696# of exeext. 3697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3698$as_echo_n "checking whether the C compiler works... " >&6; } 3699ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3700 3701# The possible output files: 3702ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3703 3704ac_rmfiles= 3705for ac_file in $ac_files 3706do 3707 case $ac_file in 3708 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3709 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3710 esac 3711done 3712rm -f $ac_rmfiles 3713 3714if { { ac_try="$ac_link_default" 3715case "(($ac_try" in 3716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3717 *) ac_try_echo=$ac_try;; 3718esac 3719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3720$as_echo "$ac_try_echo"; } >&5 3721 (eval "$ac_link_default") 2>&5 3722 ac_status=$? 3723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3724 test $ac_status = 0; }; then : 3725 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3726# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3727# in a Makefile. We should not override ac_cv_exeext if it was cached, 3728# so that the user can short-circuit this test for compilers unknown to 3729# Autoconf. 3730for ac_file in $ac_files '' 3731do 3732 test -f "$ac_file" || continue 3733 case $ac_file in 3734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3735 ;; 3736 [ab].out ) 3737 # We found the default executable, but exeext='' is most 3738 # certainly right. 3739 break;; 3740 *.* ) 3741 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3742 then :; else 3743 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3744 fi 3745 # We set ac_cv_exeext here because the later test for it is not 3746 # safe: cross compilers may not add the suffix if given an `-o' 3747 # argument, so we may need to know it at that point already. 3748 # Even if this section looks crufty: it has the advantage of 3749 # actually working. 3750 break;; 3751 * ) 3752 break;; 3753 esac 3754done 3755test "$ac_cv_exeext" = no && ac_cv_exeext= 3756 3757else 3758 ac_file='' 3759fi 3760if test -z "$ac_file"; then : 3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3762$as_echo "no" >&6; } 3763$as_echo "$as_me: failed program was:" >&5 3764sed 's/^/| /' conftest.$ac_ext >&5 3765 3766{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3767$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3768as_fn_error 77 "C compiler cannot create executables 3769See \`config.log' for more details" "$LINENO" 5; } 3770else 3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3772$as_echo "yes" >&6; } 3773fi 3774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3775$as_echo_n "checking for C compiler default output file name... " >&6; } 3776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3777$as_echo "$ac_file" >&6; } 3778ac_exeext=$ac_cv_exeext 3779 3780rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3781ac_clean_files=$ac_clean_files_save 3782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3783$as_echo_n "checking for suffix of executables... " >&6; } 3784if { { ac_try="$ac_link" 3785case "(($ac_try" in 3786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3787 *) ac_try_echo=$ac_try;; 3788esac 3789eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3790$as_echo "$ac_try_echo"; } >&5 3791 (eval "$ac_link") 2>&5 3792 ac_status=$? 3793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3794 test $ac_status = 0; }; then : 3795 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3796# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3797# work properly (i.e., refer to `conftest.exe'), while it won't with 3798# `rm'. 3799for ac_file in conftest.exe conftest conftest.*; do 3800 test -f "$ac_file" || continue 3801 case $ac_file in 3802 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3803 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3804 break;; 3805 * ) break;; 3806 esac 3807done 3808else 3809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3810$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3811as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3812See \`config.log' for more details" "$LINENO" 5; } 3813fi 3814rm -f conftest conftest$ac_cv_exeext 3815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3816$as_echo "$ac_cv_exeext" >&6; } 3817 3818rm -f conftest.$ac_ext 3819EXEEXT=$ac_cv_exeext 3820ac_exeext=$EXEEXT 3821cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3822/* end confdefs.h. */ 3823#include <stdio.h> 3824int 3825main () 3826{ 3827FILE *f = fopen ("conftest.out", "w"); 3828 return ferror (f) || fclose (f) != 0; 3829 3830 ; 3831 return 0; 3832} 3833_ACEOF 3834ac_clean_files="$ac_clean_files conftest.out" 3835# Check that the compiler produces executables we can run. If not, either 3836# the compiler is broken, or we cross compile. 3837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3838$as_echo_n "checking whether we are cross compiling... " >&6; } 3839if test "$cross_compiling" != yes; then 3840 { { ac_try="$ac_link" 3841case "(($ac_try" in 3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3843 *) ac_try_echo=$ac_try;; 3844esac 3845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3846$as_echo "$ac_try_echo"; } >&5 3847 (eval "$ac_link") 2>&5 3848 ac_status=$? 3849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3850 test $ac_status = 0; } 3851 if { ac_try='./conftest$ac_cv_exeext' 3852 { { case "(($ac_try" in 3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3854 *) ac_try_echo=$ac_try;; 3855esac 3856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3857$as_echo "$ac_try_echo"; } >&5 3858 (eval "$ac_try") 2>&5 3859 ac_status=$? 3860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3861 test $ac_status = 0; }; }; then 3862 cross_compiling=no 3863 else 3864 if test "$cross_compiling" = maybe; then 3865 cross_compiling=yes 3866 else 3867 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3868$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3869as_fn_error $? "cannot run C compiled programs. 3870If you meant to cross compile, use \`--host'. 3871See \`config.log' for more details" "$LINENO" 5; } 3872 fi 3873 fi 3874fi 3875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3876$as_echo "$cross_compiling" >&6; } 3877 3878rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3879ac_clean_files=$ac_clean_files_save 3880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3881$as_echo_n "checking for suffix of object files... " >&6; } 3882if ${ac_cv_objext+:} false; then : 3883 $as_echo_n "(cached) " >&6 3884else 3885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3886/* end confdefs.h. */ 3887 3888int 3889main () 3890{ 3891 3892 ; 3893 return 0; 3894} 3895_ACEOF 3896rm -f conftest.o conftest.obj 3897if { { ac_try="$ac_compile" 3898case "(($ac_try" in 3899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3900 *) ac_try_echo=$ac_try;; 3901esac 3902eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3903$as_echo "$ac_try_echo"; } >&5 3904 (eval "$ac_compile") 2>&5 3905 ac_status=$? 3906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3907 test $ac_status = 0; }; then : 3908 for ac_file in conftest.o conftest.obj conftest.*; do 3909 test -f "$ac_file" || continue; 3910 case $ac_file in 3911 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3912 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3913 break;; 3914 esac 3915done 3916else 3917 $as_echo "$as_me: failed program was:" >&5 3918sed 's/^/| /' conftest.$ac_ext >&5 3919 3920{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3921$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3922as_fn_error $? "cannot compute suffix of object files: cannot compile 3923See \`config.log' for more details" "$LINENO" 5; } 3924fi 3925rm -f conftest.$ac_cv_objext conftest.$ac_ext 3926fi 3927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3928$as_echo "$ac_cv_objext" >&6; } 3929OBJEXT=$ac_cv_objext 3930ac_objext=$OBJEXT 3931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3932$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3933if ${ac_cv_c_compiler_gnu+:} false; then : 3934 $as_echo_n "(cached) " >&6 3935else 3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3937/* end confdefs.h. */ 3938 3939int 3940main () 3941{ 3942#ifndef __GNUC__ 3943 choke me 3944#endif 3945 3946 ; 3947 return 0; 3948} 3949_ACEOF 3950if ac_fn_c_try_compile "$LINENO"; then : 3951 ac_compiler_gnu=yes 3952else 3953 ac_compiler_gnu=no 3954fi 3955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3956ac_cv_c_compiler_gnu=$ac_compiler_gnu 3957 3958fi 3959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3960$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3961if test $ac_compiler_gnu = yes; then 3962 GCC=yes 3963else 3964 GCC= 3965fi 3966ac_test_CFLAGS=${CFLAGS+set} 3967ac_save_CFLAGS=$CFLAGS 3968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3969$as_echo_n "checking whether $CC accepts -g... " >&6; } 3970if ${ac_cv_prog_cc_g+:} false; then : 3971 $as_echo_n "(cached) " >&6 3972else 3973 ac_save_c_werror_flag=$ac_c_werror_flag 3974 ac_c_werror_flag=yes 3975 ac_cv_prog_cc_g=no 3976 CFLAGS="-g" 3977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3978/* end confdefs.h. */ 3979 3980int 3981main () 3982{ 3983 3984 ; 3985 return 0; 3986} 3987_ACEOF 3988if ac_fn_c_try_compile "$LINENO"; then : 3989 ac_cv_prog_cc_g=yes 3990else 3991 CFLAGS="" 3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3993/* end confdefs.h. */ 3994 3995int 3996main () 3997{ 3998 3999 ; 4000 return 0; 4001} 4002_ACEOF 4003if ac_fn_c_try_compile "$LINENO"; then : 4004 4005else 4006 ac_c_werror_flag=$ac_save_c_werror_flag 4007 CFLAGS="-g" 4008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4009/* end confdefs.h. */ 4010 4011int 4012main () 4013{ 4014 4015 ; 4016 return 0; 4017} 4018_ACEOF 4019if ac_fn_c_try_compile "$LINENO"; then : 4020 ac_cv_prog_cc_g=yes 4021fi 4022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4023fi 4024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4025fi 4026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4027 ac_c_werror_flag=$ac_save_c_werror_flag 4028fi 4029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4030$as_echo "$ac_cv_prog_cc_g" >&6; } 4031if test "$ac_test_CFLAGS" = set; then 4032 CFLAGS=$ac_save_CFLAGS 4033elif test $ac_cv_prog_cc_g = yes; then 4034 if test "$GCC" = yes; then 4035 CFLAGS="-g -O2" 4036 else 4037 CFLAGS="-g" 4038 fi 4039else 4040 if test "$GCC" = yes; then 4041 CFLAGS="-O2" 4042 else 4043 CFLAGS= 4044 fi 4045fi 4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4047$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4048if ${ac_cv_prog_cc_c89+:} false; then : 4049 $as_echo_n "(cached) " >&6 4050else 4051 ac_cv_prog_cc_c89=no 4052ac_save_CC=$CC 4053cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4054/* end confdefs.h. */ 4055#include <stdarg.h> 4056#include <stdio.h> 4057struct stat; 4058/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4059struct buf { int x; }; 4060FILE * (*rcsopen) (struct buf *, struct stat *, int); 4061static char *e (p, i) 4062 char **p; 4063 int i; 4064{ 4065 return p[i]; 4066} 4067static char *f (char * (*g) (char **, int), char **p, ...) 4068{ 4069 char *s; 4070 va_list v; 4071 va_start (v,p); 4072 s = g (p, va_arg (v,int)); 4073 va_end (v); 4074 return s; 4075} 4076 4077/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4078 function prototypes and stuff, but not '\xHH' hex character constants. 4079 These don't provoke an error unfortunately, instead are silently treated 4080 as 'x'. The following induces an error, until -std is added to get 4081 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4082 array size at least. It's necessary to write '\x00'==0 to get something 4083 that's true only with -std. */ 4084int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4085 4086/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4087 inside strings and character constants. */ 4088#define FOO(x) 'x' 4089int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4090 4091int test (int i, double x); 4092struct s1 {int (*f) (int a);}; 4093struct s2 {int (*f) (double a);}; 4094int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4095int argc; 4096char **argv; 4097int 4098main () 4099{ 4100return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4101 ; 4102 return 0; 4103} 4104_ACEOF 4105for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4106 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4107do 4108 CC="$ac_save_CC $ac_arg" 4109 if ac_fn_c_try_compile "$LINENO"; then : 4110 ac_cv_prog_cc_c89=$ac_arg 4111fi 4112rm -f core conftest.err conftest.$ac_objext 4113 test "x$ac_cv_prog_cc_c89" != "xno" && break 4114done 4115rm -f conftest.$ac_ext 4116CC=$ac_save_CC 4117 4118fi 4119# AC_CACHE_VAL 4120case "x$ac_cv_prog_cc_c89" in 4121 x) 4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4123$as_echo "none needed" >&6; } ;; 4124 xno) 4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4126$as_echo "unsupported" >&6; } ;; 4127 *) 4128 CC="$CC $ac_cv_prog_cc_c89" 4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4130$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4131esac 4132if test "x$ac_cv_prog_cc_c89" != xno; then : 4133 4134fi 4135 4136ac_ext=c 4137ac_cpp='$CPP $CPPFLAGS' 4138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4140ac_compiler_gnu=$ac_cv_c_compiler_gnu 4141 4142ac_ext=c 4143ac_cpp='$CPP $CPPFLAGS' 4144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4146ac_compiler_gnu=$ac_cv_c_compiler_gnu 4147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4148$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4149if ${am_cv_prog_cc_c_o+:} false; then : 4150 $as_echo_n "(cached) " >&6 4151else 4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4153/* end confdefs.h. */ 4154 4155int 4156main () 4157{ 4158 4159 ; 4160 return 0; 4161} 4162_ACEOF 4163 # Make sure it works both with $CC and with simple cc. 4164 # Following AC_PROG_CC_C_O, we do the test twice because some 4165 # compilers refuse to overwrite an existing .o file with -o, 4166 # though they will create one. 4167 am_cv_prog_cc_c_o=yes 4168 for am_i in 1 2; do 4169 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4170 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4171 ac_status=$? 4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4173 (exit $ac_status); } \ 4174 && test -f conftest2.$ac_objext; then 4175 : OK 4176 else 4177 am_cv_prog_cc_c_o=no 4178 break 4179 fi 4180 done 4181 rm -f core conftest* 4182 unset am_i 4183fi 4184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4185$as_echo "$am_cv_prog_cc_c_o" >&6; } 4186if test "$am_cv_prog_cc_c_o" != yes; then 4187 # Losing compiler, so override with the script. 4188 # FIXME: It is wrong to rewrite CC. 4189 # But if we don't then we get into trouble of one sort or another. 4190 # A longer-term fix would be to have automake use am__CC in this case, 4191 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4192 CC="$am_aux_dir/compile $CC" 4193fi 4194ac_ext=c 4195ac_cpp='$CPP $CPPFLAGS' 4196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4198ac_compiler_gnu=$ac_cv_c_compiler_gnu 4199 4200 4201depcc="$CC" am_compiler_list= 4202 4203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4204$as_echo_n "checking dependency style of $depcc... " >&6; } 4205if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4206 $as_echo_n "(cached) " >&6 4207else 4208 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4209 # We make a subdir and do the tests there. Otherwise we can end up 4210 # making bogus files that we don't know about and never remove. For 4211 # instance it was reported that on HP-UX the gcc test will end up 4212 # making a dummy file named 'D' -- because '-MD' means "put the output 4213 # in D". 4214 rm -rf conftest.dir 4215 mkdir conftest.dir 4216 # Copy depcomp to subdir because otherwise we won't find it if we're 4217 # using a relative directory. 4218 cp "$am_depcomp" conftest.dir 4219 cd conftest.dir 4220 # We will build objects and dependencies in a subdirectory because 4221 # it helps to detect inapplicable dependency modes. For instance 4222 # both Tru64's cc and ICC support -MD to output dependencies as a 4223 # side effect of compilation, but ICC will put the dependencies in 4224 # the current directory while Tru64 will put them in the object 4225 # directory. 4226 mkdir sub 4227 4228 am_cv_CC_dependencies_compiler_type=none 4229 if test "$am_compiler_list" = ""; then 4230 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4231 fi 4232 am__universal=false 4233 case " $depcc " in #( 4234 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4235 esac 4236 4237 for depmode in $am_compiler_list; do 4238 # Setup a source with many dependencies, because some compilers 4239 # like to wrap large dependency lists on column 80 (with \), and 4240 # we should not choose a depcomp mode which is confused by this. 4241 # 4242 # We need to recreate these files for each test, as the compiler may 4243 # overwrite some of them when testing with obscure command lines. 4244 # This happens at least with the AIX C compiler. 4245 : > sub/conftest.c 4246 for i in 1 2 3 4 5 6; do 4247 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4248 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4249 # Solaris 10 /bin/sh. 4250 echo '/* dummy */' > sub/conftst$i.h 4251 done 4252 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4253 4254 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4255 # mode. It turns out that the SunPro C++ compiler does not properly 4256 # handle '-M -o', and we need to detect this. Also, some Intel 4257 # versions had trouble with output in subdirs. 4258 am__obj=sub/conftest.${OBJEXT-o} 4259 am__minus_obj="-o $am__obj" 4260 case $depmode in 4261 gcc) 4262 # This depmode causes a compiler race in universal mode. 4263 test "$am__universal" = false || continue 4264 ;; 4265 nosideeffect) 4266 # After this tag, mechanisms are not by side-effect, so they'll 4267 # only be used when explicitly requested. 4268 if test "x$enable_dependency_tracking" = xyes; then 4269 continue 4270 else 4271 break 4272 fi 4273 ;; 4274 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4275 # This compiler won't grok '-c -o', but also, the minuso test has 4276 # not run yet. These depmodes are late enough in the game, and 4277 # so weak that their functioning should not be impacted. 4278 am__obj=conftest.${OBJEXT-o} 4279 am__minus_obj= 4280 ;; 4281 none) break ;; 4282 esac 4283 if depmode=$depmode \ 4284 source=sub/conftest.c object=$am__obj \ 4285 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4286 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4287 >/dev/null 2>conftest.err && 4288 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4289 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4290 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4291 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4292 # icc doesn't choke on unknown options, it will just issue warnings 4293 # or remarks (even with -Werror). So we grep stderr for any message 4294 # that says an option was ignored or not supported. 4295 # When given -MP, icc 7.0 and 7.1 complain thusly: 4296 # icc: Command line warning: ignoring option '-M'; no argument required 4297 # The diagnosis changed in icc 8.0: 4298 # icc: Command line remark: option '-MP' not supported 4299 if (grep 'ignoring option' conftest.err || 4300 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4301 am_cv_CC_dependencies_compiler_type=$depmode 4302 break 4303 fi 4304 fi 4305 done 4306 4307 cd .. 4308 rm -rf conftest.dir 4309else 4310 am_cv_CC_dependencies_compiler_type=none 4311fi 4312 4313fi 4314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4315$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4316CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4317 4318 if 4319 test "x$enable_dependency_tracking" != xno \ 4320 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4321 am__fastdepCC_TRUE= 4322 am__fastdepCC_FALSE='#' 4323else 4324 am__fastdepCC_TRUE='#' 4325 am__fastdepCC_FALSE= 4326fi 4327 4328 4329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4330$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4331if ${ac_cv_path_SED+:} false; then : 4332 $as_echo_n "(cached) " >&6 4333else 4334 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4335 for ac_i in 1 2 3 4 5 6 7; do 4336 ac_script="$ac_script$as_nl$ac_script" 4337 done 4338 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4339 { ac_script=; unset ac_script;} 4340 if test -z "$SED"; then 4341 ac_path_SED_found=false 4342 # Loop through the user's path and test for each of PROGNAME-LIST 4343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4344for as_dir in $PATH 4345do 4346 IFS=$as_save_IFS 4347 test -z "$as_dir" && as_dir=. 4348 for ac_prog in sed gsed; do 4349 for ac_exec_ext in '' $ac_executable_extensions; do 4350 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4351 as_fn_executable_p "$ac_path_SED" || continue 4352# Check for GNU ac_path_SED and select it if it is found. 4353 # Check for GNU $ac_path_SED 4354case `"$ac_path_SED" --version 2>&1` in 4355*GNU*) 4356 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4357*) 4358 ac_count=0 4359 $as_echo_n 0123456789 >"conftest.in" 4360 while : 4361 do 4362 cat "conftest.in" "conftest.in" >"conftest.tmp" 4363 mv "conftest.tmp" "conftest.in" 4364 cp "conftest.in" "conftest.nl" 4365 $as_echo '' >> "conftest.nl" 4366 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4367 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4368 as_fn_arith $ac_count + 1 && ac_count=$as_val 4369 if test $ac_count -gt ${ac_path_SED_max-0}; then 4370 # Best one so far, save it but keep looking for a better one 4371 ac_cv_path_SED="$ac_path_SED" 4372 ac_path_SED_max=$ac_count 4373 fi 4374 # 10*(2^10) chars as input seems more than enough 4375 test $ac_count -gt 10 && break 4376 done 4377 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4378esac 4379 4380 $ac_path_SED_found && break 3 4381 done 4382 done 4383 done 4384IFS=$as_save_IFS 4385 if test -z "$ac_cv_path_SED"; then 4386 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4387 fi 4388else 4389 ac_cv_path_SED=$SED 4390fi 4391 4392fi 4393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4394$as_echo "$ac_cv_path_SED" >&6; } 4395 SED="$ac_cv_path_SED" 4396 rm -f conftest.sed 4397 4398test -z "$SED" && SED=sed 4399Xsed="$SED -e 1s/^X//" 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4412$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4413if ${ac_cv_path_GREP+:} false; then : 4414 $as_echo_n "(cached) " >&6 4415else 4416 if test -z "$GREP"; then 4417 ac_path_GREP_found=false 4418 # Loop through the user's path and test for each of PROGNAME-LIST 4419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4420for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4421do 4422 IFS=$as_save_IFS 4423 test -z "$as_dir" && as_dir=. 4424 for ac_prog in grep ggrep; do 4425 for ac_exec_ext in '' $ac_executable_extensions; do 4426 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4427 as_fn_executable_p "$ac_path_GREP" || continue 4428# Check for GNU ac_path_GREP and select it if it is found. 4429 # Check for GNU $ac_path_GREP 4430case `"$ac_path_GREP" --version 2>&1` in 4431*GNU*) 4432 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4433*) 4434 ac_count=0 4435 $as_echo_n 0123456789 >"conftest.in" 4436 while : 4437 do 4438 cat "conftest.in" "conftest.in" >"conftest.tmp" 4439 mv "conftest.tmp" "conftest.in" 4440 cp "conftest.in" "conftest.nl" 4441 $as_echo 'GREP' >> "conftest.nl" 4442 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4443 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4444 as_fn_arith $ac_count + 1 && ac_count=$as_val 4445 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4446 # Best one so far, save it but keep looking for a better one 4447 ac_cv_path_GREP="$ac_path_GREP" 4448 ac_path_GREP_max=$ac_count 4449 fi 4450 # 10*(2^10) chars as input seems more than enough 4451 test $ac_count -gt 10 && break 4452 done 4453 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4454esac 4455 4456 $ac_path_GREP_found && break 3 4457 done 4458 done 4459 done 4460IFS=$as_save_IFS 4461 if test -z "$ac_cv_path_GREP"; then 4462 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4463 fi 4464else 4465 ac_cv_path_GREP=$GREP 4466fi 4467 4468fi 4469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4470$as_echo "$ac_cv_path_GREP" >&6; } 4471 GREP="$ac_cv_path_GREP" 4472 4473 4474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4475$as_echo_n "checking for egrep... " >&6; } 4476if ${ac_cv_path_EGREP+:} false; then : 4477 $as_echo_n "(cached) " >&6 4478else 4479 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4480 then ac_cv_path_EGREP="$GREP -E" 4481 else 4482 if test -z "$EGREP"; then 4483 ac_path_EGREP_found=false 4484 # Loop through the user's path and test for each of PROGNAME-LIST 4485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4486for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4487do 4488 IFS=$as_save_IFS 4489 test -z "$as_dir" && as_dir=. 4490 for ac_prog in egrep; do 4491 for ac_exec_ext in '' $ac_executable_extensions; do 4492 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4493 as_fn_executable_p "$ac_path_EGREP" || continue 4494# Check for GNU ac_path_EGREP and select it if it is found. 4495 # Check for GNU $ac_path_EGREP 4496case `"$ac_path_EGREP" --version 2>&1` in 4497*GNU*) 4498 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4499*) 4500 ac_count=0 4501 $as_echo_n 0123456789 >"conftest.in" 4502 while : 4503 do 4504 cat "conftest.in" "conftest.in" >"conftest.tmp" 4505 mv "conftest.tmp" "conftest.in" 4506 cp "conftest.in" "conftest.nl" 4507 $as_echo 'EGREP' >> "conftest.nl" 4508 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4509 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4510 as_fn_arith $ac_count + 1 && ac_count=$as_val 4511 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4512 # Best one so far, save it but keep looking for a better one 4513 ac_cv_path_EGREP="$ac_path_EGREP" 4514 ac_path_EGREP_max=$ac_count 4515 fi 4516 # 10*(2^10) chars as input seems more than enough 4517 test $ac_count -gt 10 && break 4518 done 4519 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4520esac 4521 4522 $ac_path_EGREP_found && break 3 4523 done 4524 done 4525 done 4526IFS=$as_save_IFS 4527 if test -z "$ac_cv_path_EGREP"; then 4528 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4529 fi 4530else 4531 ac_cv_path_EGREP=$EGREP 4532fi 4533 4534 fi 4535fi 4536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4537$as_echo "$ac_cv_path_EGREP" >&6; } 4538 EGREP="$ac_cv_path_EGREP" 4539 4540 4541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4542$as_echo_n "checking for fgrep... " >&6; } 4543if ${ac_cv_path_FGREP+:} false; then : 4544 $as_echo_n "(cached) " >&6 4545else 4546 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4547 then ac_cv_path_FGREP="$GREP -F" 4548 else 4549 if test -z "$FGREP"; then 4550 ac_path_FGREP_found=false 4551 # Loop through the user's path and test for each of PROGNAME-LIST 4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4553for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4554do 4555 IFS=$as_save_IFS 4556 test -z "$as_dir" && as_dir=. 4557 for ac_prog in fgrep; do 4558 for ac_exec_ext in '' $ac_executable_extensions; do 4559 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4560 as_fn_executable_p "$ac_path_FGREP" || continue 4561# Check for GNU ac_path_FGREP and select it if it is found. 4562 # Check for GNU $ac_path_FGREP 4563case `"$ac_path_FGREP" --version 2>&1` in 4564*GNU*) 4565 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4566*) 4567 ac_count=0 4568 $as_echo_n 0123456789 >"conftest.in" 4569 while : 4570 do 4571 cat "conftest.in" "conftest.in" >"conftest.tmp" 4572 mv "conftest.tmp" "conftest.in" 4573 cp "conftest.in" "conftest.nl" 4574 $as_echo 'FGREP' >> "conftest.nl" 4575 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4576 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4577 as_fn_arith $ac_count + 1 && ac_count=$as_val 4578 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4579 # Best one so far, save it but keep looking for a better one 4580 ac_cv_path_FGREP="$ac_path_FGREP" 4581 ac_path_FGREP_max=$ac_count 4582 fi 4583 # 10*(2^10) chars as input seems more than enough 4584 test $ac_count -gt 10 && break 4585 done 4586 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4587esac 4588 4589 $ac_path_FGREP_found && break 3 4590 done 4591 done 4592 done 4593IFS=$as_save_IFS 4594 if test -z "$ac_cv_path_FGREP"; then 4595 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4596 fi 4597else 4598 ac_cv_path_FGREP=$FGREP 4599fi 4600 4601 fi 4602fi 4603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4604$as_echo "$ac_cv_path_FGREP" >&6; } 4605 FGREP="$ac_cv_path_FGREP" 4606 4607 4608test -z "$GREP" && GREP=grep 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628# Check whether --with-gnu-ld was given. 4629if test "${with_gnu_ld+set}" = set; then : 4630 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4631else 4632 with_gnu_ld=no 4633fi 4634 4635ac_prog=ld 4636if test "$GCC" = yes; then 4637 # Check if gcc -print-prog-name=ld gives a path. 4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4639$as_echo_n "checking for ld used by $CC... " >&6; } 4640 case $host in 4641 *-*-mingw*) 4642 # gcc leaves a trailing carriage return which upsets mingw 4643 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4644 *) 4645 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4646 esac 4647 case $ac_prog in 4648 # Accept absolute paths. 4649 [\\/]* | ?:[\\/]*) 4650 re_direlt='/[^/][^/]*/\.\./' 4651 # Canonicalize the pathname of ld 4652 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4653 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4654 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4655 done 4656 test -z "$LD" && LD="$ac_prog" 4657 ;; 4658 "") 4659 # If it fails, then pretend we aren't using GCC. 4660 ac_prog=ld 4661 ;; 4662 *) 4663 # If it is relative, then search for the first ld in PATH. 4664 with_gnu_ld=unknown 4665 ;; 4666 esac 4667elif test "$with_gnu_ld" = yes; then 4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4669$as_echo_n "checking for GNU ld... " >&6; } 4670else 4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4672$as_echo_n "checking for non-GNU ld... " >&6; } 4673fi 4674if ${lt_cv_path_LD+:} false; then : 4675 $as_echo_n "(cached) " >&6 4676else 4677 if test -z "$LD"; then 4678 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4679 for ac_dir in $PATH; do 4680 IFS="$lt_save_ifs" 4681 test -z "$ac_dir" && ac_dir=. 4682 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4683 lt_cv_path_LD="$ac_dir/$ac_prog" 4684 # Check to see if the program is GNU ld. I'd rather use --version, 4685 # but apparently some variants of GNU ld only accept -v. 4686 # Break only if it was the GNU/non-GNU ld that we prefer. 4687 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4688 *GNU* | *'with BFD'*) 4689 test "$with_gnu_ld" != no && break 4690 ;; 4691 *) 4692 test "$with_gnu_ld" != yes && break 4693 ;; 4694 esac 4695 fi 4696 done 4697 IFS="$lt_save_ifs" 4698else 4699 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4700fi 4701fi 4702 4703LD="$lt_cv_path_LD" 4704if test -n "$LD"; then 4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4706$as_echo "$LD" >&6; } 4707else 4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4709$as_echo "no" >&6; } 4710fi 4711test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4713$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4714if ${lt_cv_prog_gnu_ld+:} false; then : 4715 $as_echo_n "(cached) " >&6 4716else 4717 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4718case `$LD -v 2>&1 </dev/null` in 4719*GNU* | *'with BFD'*) 4720 lt_cv_prog_gnu_ld=yes 4721 ;; 4722*) 4723 lt_cv_prog_gnu_ld=no 4724 ;; 4725esac 4726fi 4727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4728$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4729with_gnu_ld=$lt_cv_prog_gnu_ld 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4740$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4741if ${lt_cv_path_NM+:} false; then : 4742 $as_echo_n "(cached) " >&6 4743else 4744 if test -n "$NM"; then 4745 # Let the user override the test. 4746 lt_cv_path_NM="$NM" 4747else 4748 lt_nm_to_check="${ac_tool_prefix}nm" 4749 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4750 lt_nm_to_check="$lt_nm_to_check nm" 4751 fi 4752 for lt_tmp_nm in $lt_nm_to_check; do 4753 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4754 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4755 IFS="$lt_save_ifs" 4756 test -z "$ac_dir" && ac_dir=. 4757 tmp_nm="$ac_dir/$lt_tmp_nm" 4758 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4759 # Check to see if the nm accepts a BSD-compat flag. 4760 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4761 # nm: unknown option "B" ignored 4762 # Tru64's nm complains that /dev/null is an invalid object file 4763 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4764 */dev/null* | *'Invalid file or object type'*) 4765 lt_cv_path_NM="$tmp_nm -B" 4766 break 4767 ;; 4768 *) 4769 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4770 */dev/null*) 4771 lt_cv_path_NM="$tmp_nm -p" 4772 break 4773 ;; 4774 *) 4775 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4776 continue # so that we can try to find one that supports BSD flags 4777 ;; 4778 esac 4779 ;; 4780 esac 4781 fi 4782 done 4783 IFS="$lt_save_ifs" 4784 done 4785 : ${lt_cv_path_NM=no} 4786fi 4787fi 4788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4789$as_echo "$lt_cv_path_NM" >&6; } 4790if test "$lt_cv_path_NM" != "no"; then 4791 NM="$lt_cv_path_NM" 4792else 4793 # Didn't find any BSD compatible name lister, look for dumpbin. 4794 if test -n "$DUMPBIN"; then : 4795 # Let the user override the test. 4796 else 4797 if test -n "$ac_tool_prefix"; then 4798 for ac_prog in dumpbin "link -dump" 4799 do 4800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4801set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4803$as_echo_n "checking for $ac_word... " >&6; } 4804if ${ac_cv_prog_DUMPBIN+:} false; then : 4805 $as_echo_n "(cached) " >&6 4806else 4807 if test -n "$DUMPBIN"; then 4808 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4809else 4810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4811for as_dir in $PATH 4812do 4813 IFS=$as_save_IFS 4814 test -z "$as_dir" && as_dir=. 4815 for ac_exec_ext in '' $ac_executable_extensions; do 4816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4817 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4819 break 2 4820 fi 4821done 4822 done 4823IFS=$as_save_IFS 4824 4825fi 4826fi 4827DUMPBIN=$ac_cv_prog_DUMPBIN 4828if test -n "$DUMPBIN"; then 4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4830$as_echo "$DUMPBIN" >&6; } 4831else 4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4833$as_echo "no" >&6; } 4834fi 4835 4836 4837 test -n "$DUMPBIN" && break 4838 done 4839fi 4840if test -z "$DUMPBIN"; then 4841 ac_ct_DUMPBIN=$DUMPBIN 4842 for ac_prog in dumpbin "link -dump" 4843do 4844 # Extract the first word of "$ac_prog", so it can be a program name with args. 4845set dummy $ac_prog; ac_word=$2 4846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4847$as_echo_n "checking for $ac_word... " >&6; } 4848if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4849 $as_echo_n "(cached) " >&6 4850else 4851 if test -n "$ac_ct_DUMPBIN"; then 4852 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4853else 4854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4855for as_dir in $PATH 4856do 4857 IFS=$as_save_IFS 4858 test -z "$as_dir" && as_dir=. 4859 for ac_exec_ext in '' $ac_executable_extensions; do 4860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4861 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4863 break 2 4864 fi 4865done 4866 done 4867IFS=$as_save_IFS 4868 4869fi 4870fi 4871ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4872if test -n "$ac_ct_DUMPBIN"; then 4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4874$as_echo "$ac_ct_DUMPBIN" >&6; } 4875else 4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4877$as_echo "no" >&6; } 4878fi 4879 4880 4881 test -n "$ac_ct_DUMPBIN" && break 4882done 4883 4884 if test "x$ac_ct_DUMPBIN" = x; then 4885 DUMPBIN=":" 4886 else 4887 case $cross_compiling:$ac_tool_warned in 4888yes:) 4889{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4890$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4891ac_tool_warned=yes ;; 4892esac 4893 DUMPBIN=$ac_ct_DUMPBIN 4894 fi 4895fi 4896 4897 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4898 *COFF*) 4899 DUMPBIN="$DUMPBIN -symbols" 4900 ;; 4901 *) 4902 DUMPBIN=: 4903 ;; 4904 esac 4905 fi 4906 4907 if test "$DUMPBIN" != ":"; then 4908 NM="$DUMPBIN" 4909 fi 4910fi 4911test -z "$NM" && NM=nm 4912 4913 4914 4915 4916 4917 4918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4919$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4920if ${lt_cv_nm_interface+:} false; then : 4921 $as_echo_n "(cached) " >&6 4922else 4923 lt_cv_nm_interface="BSD nm" 4924 echo "int some_variable = 0;" > conftest.$ac_ext 4925 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4926 (eval "$ac_compile" 2>conftest.err) 4927 cat conftest.err >&5 4928 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4929 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4930 cat conftest.err >&5 4931 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4932 cat conftest.out >&5 4933 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4934 lt_cv_nm_interface="MS dumpbin" 4935 fi 4936 rm -f conftest* 4937fi 4938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4939$as_echo "$lt_cv_nm_interface" >&6; } 4940 4941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4942$as_echo_n "checking whether ln -s works... " >&6; } 4943LN_S=$as_ln_s 4944if test "$LN_S" = "ln -s"; then 4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4946$as_echo "yes" >&6; } 4947else 4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4949$as_echo "no, using $LN_S" >&6; } 4950fi 4951 4952# find the maximum length of command line arguments 4953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4954$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4955if ${lt_cv_sys_max_cmd_len+:} false; then : 4956 $as_echo_n "(cached) " >&6 4957else 4958 i=0 4959 teststring="ABCD" 4960 4961 case $build_os in 4962 msdosdjgpp*) 4963 # On DJGPP, this test can blow up pretty badly due to problems in libc 4964 # (any single argument exceeding 2000 bytes causes a buffer overrun 4965 # during glob expansion). Even if it were fixed, the result of this 4966 # check would be larger than it should be. 4967 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4968 ;; 4969 4970 gnu*) 4971 # Under GNU Hurd, this test is not required because there is 4972 # no limit to the length of command line arguments. 4973 # Libtool will interpret -1 as no limit whatsoever 4974 lt_cv_sys_max_cmd_len=-1; 4975 ;; 4976 4977 cygwin* | mingw* | cegcc*) 4978 # On Win9x/ME, this test blows up -- it succeeds, but takes 4979 # about 5 minutes as the teststring grows exponentially. 4980 # Worse, since 9x/ME are not pre-emptively multitasking, 4981 # you end up with a "frozen" computer, even though with patience 4982 # the test eventually succeeds (with a max line length of 256k). 4983 # Instead, let's just punt: use the minimum linelength reported by 4984 # all of the supported platforms: 8192 (on NT/2K/XP). 4985 lt_cv_sys_max_cmd_len=8192; 4986 ;; 4987 4988 mint*) 4989 # On MiNT this can take a long time and run out of memory. 4990 lt_cv_sys_max_cmd_len=8192; 4991 ;; 4992 4993 amigaos*) 4994 # On AmigaOS with pdksh, this test takes hours, literally. 4995 # So we just punt and use a minimum line length of 8192. 4996 lt_cv_sys_max_cmd_len=8192; 4997 ;; 4998 4999 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5000 # This has been around since 386BSD, at least. Likely further. 5001 if test -x /sbin/sysctl; then 5002 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5003 elif test -x /usr/sbin/sysctl; then 5004 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5005 else 5006 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5007 fi 5008 # And add a safety zone 5009 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5010 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5011 ;; 5012 5013 interix*) 5014 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5015 lt_cv_sys_max_cmd_len=196608 5016 ;; 5017 5018 os2*) 5019 # The test takes a long time on OS/2. 5020 lt_cv_sys_max_cmd_len=8192 5021 ;; 5022 5023 osf*) 5024 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5025 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5026 # nice to cause kernel panics so lets avoid the loop below. 5027 # First set a reasonable default. 5028 lt_cv_sys_max_cmd_len=16384 5029 # 5030 if test -x /sbin/sysconfig; then 5031 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5032 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5033 esac 5034 fi 5035 ;; 5036 sco3.2v5*) 5037 lt_cv_sys_max_cmd_len=102400 5038 ;; 5039 sysv5* | sco5v6* | sysv4.2uw2*) 5040 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5041 if test -n "$kargmax"; then 5042 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5043 else 5044 lt_cv_sys_max_cmd_len=32768 5045 fi 5046 ;; 5047 *) 5048 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5049 if test -n "$lt_cv_sys_max_cmd_len" && \ 5050 test undefined != "$lt_cv_sys_max_cmd_len"; then 5051 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5052 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5053 else 5054 # Make teststring a little bigger before we do anything with it. 5055 # a 1K string should be a reasonable start. 5056 for i in 1 2 3 4 5 6 7 8 ; do 5057 teststring=$teststring$teststring 5058 done 5059 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5060 # If test is not a shell built-in, we'll probably end up computing a 5061 # maximum length that is only half of the actual maximum length, but 5062 # we can't tell. 5063 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5064 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5065 test $i != 17 # 1/2 MB should be enough 5066 do 5067 i=`expr $i + 1` 5068 teststring=$teststring$teststring 5069 done 5070 # Only check the string length outside the loop. 5071 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5072 teststring= 5073 # Add a significant safety factor because C++ compilers can tack on 5074 # massive amounts of additional arguments before passing them to the 5075 # linker. It appears as though 1/2 is a usable value. 5076 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5077 fi 5078 ;; 5079 esac 5080 5081fi 5082 5083if test -n $lt_cv_sys_max_cmd_len ; then 5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5085$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5086else 5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5088$as_echo "none" >&6; } 5089fi 5090max_cmd_len=$lt_cv_sys_max_cmd_len 5091 5092 5093 5094 5095 5096 5097: ${CP="cp -f"} 5098: ${MV="mv -f"} 5099: ${RM="rm -f"} 5100 5101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5102$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5103# Try some XSI features 5104xsi_shell=no 5105( _lt_dummy="a/b/c" 5106 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5107 = c,a/b,b/c, \ 5108 && eval 'test $(( 1 + 1 )) -eq 2 \ 5109 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5110 && xsi_shell=yes 5111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5112$as_echo "$xsi_shell" >&6; } 5113 5114 5115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5116$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5117lt_shell_append=no 5118( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5119 >/dev/null 2>&1 \ 5120 && lt_shell_append=yes 5121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5122$as_echo "$lt_shell_append" >&6; } 5123 5124 5125if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5126 lt_unset=unset 5127else 5128 lt_unset=false 5129fi 5130 5131 5132 5133 5134 5135# test EBCDIC or ASCII 5136case `echo X|tr X '\101'` in 5137 A) # ASCII based system 5138 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5139 lt_SP2NL='tr \040 \012' 5140 lt_NL2SP='tr \015\012 \040\040' 5141 ;; 5142 *) # EBCDIC based system 5143 lt_SP2NL='tr \100 \n' 5144 lt_NL2SP='tr \r\n \100\100' 5145 ;; 5146esac 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5157$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5158if ${lt_cv_to_host_file_cmd+:} false; then : 5159 $as_echo_n "(cached) " >&6 5160else 5161 case $host in 5162 *-*-mingw* ) 5163 case $build in 5164 *-*-mingw* ) # actually msys 5165 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5166 ;; 5167 *-*-cygwin* ) 5168 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5169 ;; 5170 * ) # otherwise, assume *nix 5171 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5172 ;; 5173 esac 5174 ;; 5175 *-*-cygwin* ) 5176 case $build in 5177 *-*-mingw* ) # actually msys 5178 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5179 ;; 5180 *-*-cygwin* ) 5181 lt_cv_to_host_file_cmd=func_convert_file_noop 5182 ;; 5183 * ) # otherwise, assume *nix 5184 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5185 ;; 5186 esac 5187 ;; 5188 * ) # unhandled hosts (and "normal" native builds) 5189 lt_cv_to_host_file_cmd=func_convert_file_noop 5190 ;; 5191esac 5192 5193fi 5194 5195to_host_file_cmd=$lt_cv_to_host_file_cmd 5196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5197$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5198 5199 5200 5201 5202 5203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5204$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5205if ${lt_cv_to_tool_file_cmd+:} false; then : 5206 $as_echo_n "(cached) " >&6 5207else 5208 #assume ordinary cross tools, or native build. 5209lt_cv_to_tool_file_cmd=func_convert_file_noop 5210case $host in 5211 *-*-mingw* ) 5212 case $build in 5213 *-*-mingw* ) # actually msys 5214 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5215 ;; 5216 esac 5217 ;; 5218esac 5219 5220fi 5221 5222to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5224$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5225 5226 5227 5228 5229 5230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5231$as_echo_n "checking for $LD option to reload object files... " >&6; } 5232if ${lt_cv_ld_reload_flag+:} false; then : 5233 $as_echo_n "(cached) " >&6 5234else 5235 lt_cv_ld_reload_flag='-r' 5236fi 5237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5238$as_echo "$lt_cv_ld_reload_flag" >&6; } 5239reload_flag=$lt_cv_ld_reload_flag 5240case $reload_flag in 5241"" | " "*) ;; 5242*) reload_flag=" $reload_flag" ;; 5243esac 5244reload_cmds='$LD$reload_flag -o $output$reload_objs' 5245case $host_os in 5246 cygwin* | mingw* | pw32* | cegcc*) 5247 if test "$GCC" != yes; then 5248 reload_cmds=false 5249 fi 5250 ;; 5251 darwin*) 5252 if test "$GCC" = yes; then 5253 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5254 else 5255 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5256 fi 5257 ;; 5258esac 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268if test -n "$ac_tool_prefix"; then 5269 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5270set dummy ${ac_tool_prefix}objdump; ac_word=$2 5271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5272$as_echo_n "checking for $ac_word... " >&6; } 5273if ${ac_cv_prog_OBJDUMP+:} false; then : 5274 $as_echo_n "(cached) " >&6 5275else 5276 if test -n "$OBJDUMP"; then 5277 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5278else 5279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5280for as_dir in $PATH 5281do 5282 IFS=$as_save_IFS 5283 test -z "$as_dir" && as_dir=. 5284 for ac_exec_ext in '' $ac_executable_extensions; do 5285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5286 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5288 break 2 5289 fi 5290done 5291 done 5292IFS=$as_save_IFS 5293 5294fi 5295fi 5296OBJDUMP=$ac_cv_prog_OBJDUMP 5297if test -n "$OBJDUMP"; then 5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5299$as_echo "$OBJDUMP" >&6; } 5300else 5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5302$as_echo "no" >&6; } 5303fi 5304 5305 5306fi 5307if test -z "$ac_cv_prog_OBJDUMP"; then 5308 ac_ct_OBJDUMP=$OBJDUMP 5309 # Extract the first word of "objdump", so it can be a program name with args. 5310set dummy objdump; ac_word=$2 5311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5312$as_echo_n "checking for $ac_word... " >&6; } 5313if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5314 $as_echo_n "(cached) " >&6 5315else 5316 if test -n "$ac_ct_OBJDUMP"; then 5317 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5318else 5319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5320for as_dir in $PATH 5321do 5322 IFS=$as_save_IFS 5323 test -z "$as_dir" && as_dir=. 5324 for ac_exec_ext in '' $ac_executable_extensions; do 5325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5326 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5328 break 2 5329 fi 5330done 5331 done 5332IFS=$as_save_IFS 5333 5334fi 5335fi 5336ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5337if test -n "$ac_ct_OBJDUMP"; then 5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5339$as_echo "$ac_ct_OBJDUMP" >&6; } 5340else 5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5342$as_echo "no" >&6; } 5343fi 5344 5345 if test "x$ac_ct_OBJDUMP" = x; then 5346 OBJDUMP="false" 5347 else 5348 case $cross_compiling:$ac_tool_warned in 5349yes:) 5350{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5351$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5352ac_tool_warned=yes ;; 5353esac 5354 OBJDUMP=$ac_ct_OBJDUMP 5355 fi 5356else 5357 OBJDUMP="$ac_cv_prog_OBJDUMP" 5358fi 5359 5360test -z "$OBJDUMP" && OBJDUMP=objdump 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5371$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5372if ${lt_cv_deplibs_check_method+:} false; then : 5373 $as_echo_n "(cached) " >&6 5374else 5375 lt_cv_file_magic_cmd='$MAGIC_CMD' 5376lt_cv_file_magic_test_file= 5377lt_cv_deplibs_check_method='unknown' 5378# Need to set the preceding variable on all platforms that support 5379# interlibrary dependencies. 5380# 'none' -- dependencies not supported. 5381# `unknown' -- same as none, but documents that we really don't know. 5382# 'pass_all' -- all dependencies passed with no checks. 5383# 'test_compile' -- check by making test program. 5384# 'file_magic [[regex]]' -- check by looking for files in library path 5385# which responds to the $file_magic_cmd with a given extended regex. 5386# If you have `file' or equivalent on your system and you're not sure 5387# whether `pass_all' will *always* work, you probably want this one. 5388 5389case $host_os in 5390aix[4-9]*) 5391 lt_cv_deplibs_check_method=pass_all 5392 ;; 5393 5394beos*) 5395 lt_cv_deplibs_check_method=pass_all 5396 ;; 5397 5398bsdi[45]*) 5399 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5400 lt_cv_file_magic_cmd='/usr/bin/file -L' 5401 lt_cv_file_magic_test_file=/shlib/libc.so 5402 ;; 5403 5404cygwin*) 5405 # func_win32_libid is a shell function defined in ltmain.sh 5406 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5407 lt_cv_file_magic_cmd='func_win32_libid' 5408 ;; 5409 5410mingw* | pw32*) 5411 # Base MSYS/MinGW do not provide the 'file' command needed by 5412 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5413 # unless we find 'file', for example because we are cross-compiling. 5414 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5415 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5416 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5417 lt_cv_file_magic_cmd='func_win32_libid' 5418 else 5419 # Keep this pattern in sync with the one in func_win32_libid. 5420 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5421 lt_cv_file_magic_cmd='$OBJDUMP -f' 5422 fi 5423 ;; 5424 5425cegcc*) 5426 # use the weaker test based on 'objdump'. See mingw*. 5427 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5428 lt_cv_file_magic_cmd='$OBJDUMP -f' 5429 ;; 5430 5431darwin* | rhapsody*) 5432 lt_cv_deplibs_check_method=pass_all 5433 ;; 5434 5435freebsd* | dragonfly*) 5436 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5437 case $host_cpu in 5438 i*86 ) 5439 # Not sure whether the presence of OpenBSD here was a mistake. 5440 # Let's accept both of them until this is cleared up. 5441 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5442 lt_cv_file_magic_cmd=/usr/bin/file 5443 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5444 ;; 5445 esac 5446 else 5447 lt_cv_deplibs_check_method=pass_all 5448 fi 5449 ;; 5450 5451haiku*) 5452 lt_cv_deplibs_check_method=pass_all 5453 ;; 5454 5455hpux10.20* | hpux11*) 5456 lt_cv_file_magic_cmd=/usr/bin/file 5457 case $host_cpu in 5458 ia64*) 5459 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5460 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5461 ;; 5462 hppa*64*) 5463 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]' 5464 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5465 ;; 5466 *) 5467 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5468 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5469 ;; 5470 esac 5471 ;; 5472 5473interix[3-9]*) 5474 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5475 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5476 ;; 5477 5478irix5* | irix6* | nonstopux*) 5479 case $LD in 5480 *-32|*"-32 ") libmagic=32-bit;; 5481 *-n32|*"-n32 ") libmagic=N32;; 5482 *-64|*"-64 ") libmagic=64-bit;; 5483 *) libmagic=never-match;; 5484 esac 5485 lt_cv_deplibs_check_method=pass_all 5486 ;; 5487 5488# This must be glibc/ELF. 5489linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5490 lt_cv_deplibs_check_method=pass_all 5491 ;; 5492 5493netbsd* | netbsdelf*-gnu) 5494 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5495 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5496 else 5497 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5498 fi 5499 ;; 5500 5501newos6*) 5502 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5503 lt_cv_file_magic_cmd=/usr/bin/file 5504 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5505 ;; 5506 5507*nto* | *qnx*) 5508 lt_cv_deplibs_check_method=pass_all 5509 ;; 5510 5511openbsd*) 5512 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5513 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5514 else 5515 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5516 fi 5517 ;; 5518 5519osf3* | osf4* | osf5*) 5520 lt_cv_deplibs_check_method=pass_all 5521 ;; 5522 5523rdos*) 5524 lt_cv_deplibs_check_method=pass_all 5525 ;; 5526 5527solaris*) 5528 lt_cv_deplibs_check_method=pass_all 5529 ;; 5530 5531sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5532 lt_cv_deplibs_check_method=pass_all 5533 ;; 5534 5535sysv4 | sysv4.3*) 5536 case $host_vendor in 5537 motorola) 5538 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]' 5539 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5540 ;; 5541 ncr) 5542 lt_cv_deplibs_check_method=pass_all 5543 ;; 5544 sequent) 5545 lt_cv_file_magic_cmd='/bin/file' 5546 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5547 ;; 5548 sni) 5549 lt_cv_file_magic_cmd='/bin/file' 5550 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5551 lt_cv_file_magic_test_file=/lib/libc.so 5552 ;; 5553 siemens) 5554 lt_cv_deplibs_check_method=pass_all 5555 ;; 5556 pc) 5557 lt_cv_deplibs_check_method=pass_all 5558 ;; 5559 esac 5560 ;; 5561 5562tpf*) 5563 lt_cv_deplibs_check_method=pass_all 5564 ;; 5565esac 5566 5567fi 5568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5569$as_echo "$lt_cv_deplibs_check_method" >&6; } 5570 5571file_magic_glob= 5572want_nocaseglob=no 5573if test "$build" = "$host"; then 5574 case $host_os in 5575 mingw* | pw32*) 5576 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5577 want_nocaseglob=yes 5578 else 5579 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5580 fi 5581 ;; 5582 esac 5583fi 5584 5585file_magic_cmd=$lt_cv_file_magic_cmd 5586deplibs_check_method=$lt_cv_deplibs_check_method 5587test -z "$deplibs_check_method" && deplibs_check_method=unknown 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610if test -n "$ac_tool_prefix"; then 5611 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5612set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5614$as_echo_n "checking for $ac_word... " >&6; } 5615if ${ac_cv_prog_DLLTOOL+:} false; then : 5616 $as_echo_n "(cached) " >&6 5617else 5618 if test -n "$DLLTOOL"; then 5619 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5620else 5621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5622for as_dir in $PATH 5623do 5624 IFS=$as_save_IFS 5625 test -z "$as_dir" && as_dir=. 5626 for ac_exec_ext in '' $ac_executable_extensions; do 5627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5628 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5630 break 2 5631 fi 5632done 5633 done 5634IFS=$as_save_IFS 5635 5636fi 5637fi 5638DLLTOOL=$ac_cv_prog_DLLTOOL 5639if test -n "$DLLTOOL"; then 5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5641$as_echo "$DLLTOOL" >&6; } 5642else 5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5644$as_echo "no" >&6; } 5645fi 5646 5647 5648fi 5649if test -z "$ac_cv_prog_DLLTOOL"; then 5650 ac_ct_DLLTOOL=$DLLTOOL 5651 # Extract the first word of "dlltool", so it can be a program name with args. 5652set dummy dlltool; ac_word=$2 5653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5654$as_echo_n "checking for $ac_word... " >&6; } 5655if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5656 $as_echo_n "(cached) " >&6 5657else 5658 if test -n "$ac_ct_DLLTOOL"; then 5659 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5660else 5661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5662for as_dir in $PATH 5663do 5664 IFS=$as_save_IFS 5665 test -z "$as_dir" && as_dir=. 5666 for ac_exec_ext in '' $ac_executable_extensions; do 5667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5668 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5670 break 2 5671 fi 5672done 5673 done 5674IFS=$as_save_IFS 5675 5676fi 5677fi 5678ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5679if test -n "$ac_ct_DLLTOOL"; then 5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5681$as_echo "$ac_ct_DLLTOOL" >&6; } 5682else 5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5684$as_echo "no" >&6; } 5685fi 5686 5687 if test "x$ac_ct_DLLTOOL" = x; then 5688 DLLTOOL="false" 5689 else 5690 case $cross_compiling:$ac_tool_warned in 5691yes:) 5692{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5693$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5694ac_tool_warned=yes ;; 5695esac 5696 DLLTOOL=$ac_ct_DLLTOOL 5697 fi 5698else 5699 DLLTOOL="$ac_cv_prog_DLLTOOL" 5700fi 5701 5702test -z "$DLLTOOL" && DLLTOOL=dlltool 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5714$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5715if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5716 $as_echo_n "(cached) " >&6 5717else 5718 lt_cv_sharedlib_from_linklib_cmd='unknown' 5719 5720case $host_os in 5721cygwin* | mingw* | pw32* | cegcc*) 5722 # two different shell functions defined in ltmain.sh 5723 # decide which to use based on capabilities of $DLLTOOL 5724 case `$DLLTOOL --help 2>&1` in 5725 *--identify-strict*) 5726 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5727 ;; 5728 *) 5729 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5730 ;; 5731 esac 5732 ;; 5733*) 5734 # fallback: assume linklib IS sharedlib 5735 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5736 ;; 5737esac 5738 5739fi 5740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5741$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5742sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5743test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5744 5745 5746 5747 5748 5749 5750 5751 5752if test -n "$ac_tool_prefix"; then 5753 for ac_prog in ar 5754 do 5755 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5756set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5758$as_echo_n "checking for $ac_word... " >&6; } 5759if ${ac_cv_prog_AR+:} false; then : 5760 $as_echo_n "(cached) " >&6 5761else 5762 if test -n "$AR"; then 5763 ac_cv_prog_AR="$AR" # Let the user override the test. 5764else 5765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5766for as_dir in $PATH 5767do 5768 IFS=$as_save_IFS 5769 test -z "$as_dir" && as_dir=. 5770 for ac_exec_ext in '' $ac_executable_extensions; do 5771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5772 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5774 break 2 5775 fi 5776done 5777 done 5778IFS=$as_save_IFS 5779 5780fi 5781fi 5782AR=$ac_cv_prog_AR 5783if test -n "$AR"; then 5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5785$as_echo "$AR" >&6; } 5786else 5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5788$as_echo "no" >&6; } 5789fi 5790 5791 5792 test -n "$AR" && break 5793 done 5794fi 5795if test -z "$AR"; then 5796 ac_ct_AR=$AR 5797 for ac_prog in ar 5798do 5799 # Extract the first word of "$ac_prog", so it can be a program name with args. 5800set dummy $ac_prog; ac_word=$2 5801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5802$as_echo_n "checking for $ac_word... " >&6; } 5803if ${ac_cv_prog_ac_ct_AR+:} false; then : 5804 $as_echo_n "(cached) " >&6 5805else 5806 if test -n "$ac_ct_AR"; then 5807 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5808else 5809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5810for as_dir in $PATH 5811do 5812 IFS=$as_save_IFS 5813 test -z "$as_dir" && as_dir=. 5814 for ac_exec_ext in '' $ac_executable_extensions; do 5815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5816 ac_cv_prog_ac_ct_AR="$ac_prog" 5817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5818 break 2 5819 fi 5820done 5821 done 5822IFS=$as_save_IFS 5823 5824fi 5825fi 5826ac_ct_AR=$ac_cv_prog_ac_ct_AR 5827if test -n "$ac_ct_AR"; then 5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5829$as_echo "$ac_ct_AR" >&6; } 5830else 5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5832$as_echo "no" >&6; } 5833fi 5834 5835 5836 test -n "$ac_ct_AR" && break 5837done 5838 5839 if test "x$ac_ct_AR" = x; then 5840 AR="false" 5841 else 5842 case $cross_compiling:$ac_tool_warned in 5843yes:) 5844{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5845$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5846ac_tool_warned=yes ;; 5847esac 5848 AR=$ac_ct_AR 5849 fi 5850fi 5851 5852: ${AR=ar} 5853: ${AR_FLAGS=cru} 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5866$as_echo_n "checking for archiver @FILE support... " >&6; } 5867if ${lt_cv_ar_at_file+:} false; then : 5868 $as_echo_n "(cached) " >&6 5869else 5870 lt_cv_ar_at_file=no 5871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5872/* end confdefs.h. */ 5873 5874int 5875main () 5876{ 5877 5878 ; 5879 return 0; 5880} 5881_ACEOF 5882if ac_fn_c_try_compile "$LINENO"; then : 5883 echo conftest.$ac_objext > conftest.lst 5884 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5886 (eval $lt_ar_try) 2>&5 5887 ac_status=$? 5888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5889 test $ac_status = 0; } 5890 if test "$ac_status" -eq 0; then 5891 # Ensure the archiver fails upon bogus file names. 5892 rm -f conftest.$ac_objext libconftest.a 5893 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5894 (eval $lt_ar_try) 2>&5 5895 ac_status=$? 5896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5897 test $ac_status = 0; } 5898 if test "$ac_status" -ne 0; then 5899 lt_cv_ar_at_file=@ 5900 fi 5901 fi 5902 rm -f conftest.* libconftest.a 5903 5904fi 5905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5906 5907fi 5908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5909$as_echo "$lt_cv_ar_at_file" >&6; } 5910 5911if test "x$lt_cv_ar_at_file" = xno; then 5912 archiver_list_spec= 5913else 5914 archiver_list_spec=$lt_cv_ar_at_file 5915fi 5916 5917 5918 5919 5920 5921 5922 5923if test -n "$ac_tool_prefix"; then 5924 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5925set dummy ${ac_tool_prefix}strip; ac_word=$2 5926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5927$as_echo_n "checking for $ac_word... " >&6; } 5928if ${ac_cv_prog_STRIP+:} false; then : 5929 $as_echo_n "(cached) " >&6 5930else 5931 if test -n "$STRIP"; then 5932 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5933else 5934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5935for as_dir in $PATH 5936do 5937 IFS=$as_save_IFS 5938 test -z "$as_dir" && as_dir=. 5939 for ac_exec_ext in '' $ac_executable_extensions; do 5940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5941 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5943 break 2 5944 fi 5945done 5946 done 5947IFS=$as_save_IFS 5948 5949fi 5950fi 5951STRIP=$ac_cv_prog_STRIP 5952if test -n "$STRIP"; then 5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5954$as_echo "$STRIP" >&6; } 5955else 5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5957$as_echo "no" >&6; } 5958fi 5959 5960 5961fi 5962if test -z "$ac_cv_prog_STRIP"; then 5963 ac_ct_STRIP=$STRIP 5964 # Extract the first word of "strip", so it can be a program name with args. 5965set dummy strip; ac_word=$2 5966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5967$as_echo_n "checking for $ac_word... " >&6; } 5968if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5969 $as_echo_n "(cached) " >&6 5970else 5971 if test -n "$ac_ct_STRIP"; then 5972 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5973else 5974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5975for as_dir in $PATH 5976do 5977 IFS=$as_save_IFS 5978 test -z "$as_dir" && as_dir=. 5979 for ac_exec_ext in '' $ac_executable_extensions; do 5980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5981 ac_cv_prog_ac_ct_STRIP="strip" 5982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5983 break 2 5984 fi 5985done 5986 done 5987IFS=$as_save_IFS 5988 5989fi 5990fi 5991ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5992if test -n "$ac_ct_STRIP"; then 5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5994$as_echo "$ac_ct_STRIP" >&6; } 5995else 5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5997$as_echo "no" >&6; } 5998fi 5999 6000 if test "x$ac_ct_STRIP" = x; then 6001 STRIP=":" 6002 else 6003 case $cross_compiling:$ac_tool_warned in 6004yes:) 6005{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6006$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6007ac_tool_warned=yes ;; 6008esac 6009 STRIP=$ac_ct_STRIP 6010 fi 6011else 6012 STRIP="$ac_cv_prog_STRIP" 6013fi 6014 6015test -z "$STRIP" && STRIP=: 6016 6017 6018 6019 6020 6021 6022if test -n "$ac_tool_prefix"; then 6023 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6024set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6026$as_echo_n "checking for $ac_word... " >&6; } 6027if ${ac_cv_prog_RANLIB+:} false; then : 6028 $as_echo_n "(cached) " >&6 6029else 6030 if test -n "$RANLIB"; then 6031 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6032else 6033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6034for as_dir in $PATH 6035do 6036 IFS=$as_save_IFS 6037 test -z "$as_dir" && as_dir=. 6038 for ac_exec_ext in '' $ac_executable_extensions; do 6039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6040 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6042 break 2 6043 fi 6044done 6045 done 6046IFS=$as_save_IFS 6047 6048fi 6049fi 6050RANLIB=$ac_cv_prog_RANLIB 6051if test -n "$RANLIB"; then 6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6053$as_echo "$RANLIB" >&6; } 6054else 6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6056$as_echo "no" >&6; } 6057fi 6058 6059 6060fi 6061if test -z "$ac_cv_prog_RANLIB"; then 6062 ac_ct_RANLIB=$RANLIB 6063 # Extract the first word of "ranlib", so it can be a program name with args. 6064set dummy ranlib; ac_word=$2 6065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6066$as_echo_n "checking for $ac_word... " >&6; } 6067if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6068 $as_echo_n "(cached) " >&6 6069else 6070 if test -n "$ac_ct_RANLIB"; then 6071 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6072else 6073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6074for as_dir in $PATH 6075do 6076 IFS=$as_save_IFS 6077 test -z "$as_dir" && as_dir=. 6078 for ac_exec_ext in '' $ac_executable_extensions; do 6079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6080 ac_cv_prog_ac_ct_RANLIB="ranlib" 6081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6082 break 2 6083 fi 6084done 6085 done 6086IFS=$as_save_IFS 6087 6088fi 6089fi 6090ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6091if test -n "$ac_ct_RANLIB"; then 6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6093$as_echo "$ac_ct_RANLIB" >&6; } 6094else 6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6096$as_echo "no" >&6; } 6097fi 6098 6099 if test "x$ac_ct_RANLIB" = x; then 6100 RANLIB=":" 6101 else 6102 case $cross_compiling:$ac_tool_warned in 6103yes:) 6104{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6105$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6106ac_tool_warned=yes ;; 6107esac 6108 RANLIB=$ac_ct_RANLIB 6109 fi 6110else 6111 RANLIB="$ac_cv_prog_RANLIB" 6112fi 6113 6114test -z "$RANLIB" && RANLIB=: 6115 6116 6117 6118 6119 6120 6121# Determine commands to create old-style static archives. 6122old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6123old_postinstall_cmds='chmod 644 $oldlib' 6124old_postuninstall_cmds= 6125 6126if test -n "$RANLIB"; then 6127 case $host_os in 6128 openbsd*) 6129 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6130 ;; 6131 *) 6132 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6133 ;; 6134 esac 6135 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6136fi 6137 6138case $host_os in 6139 darwin*) 6140 lock_old_archive_extraction=yes ;; 6141 *) 6142 lock_old_archive_extraction=no ;; 6143esac 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183# If no C compiler was specified, use CC. 6184LTCC=${LTCC-"$CC"} 6185 6186# If no C compiler flags were specified, use CFLAGS. 6187LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6188 6189# Allow CC to be a program name with arguments. 6190compiler=$CC 6191 6192 6193# Check for command to grab the raw symbol name followed by C symbol from nm. 6194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6195$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6196if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6197 $as_echo_n "(cached) " >&6 6198else 6199 6200# These are sane defaults that work on at least a few old systems. 6201# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6202 6203# Character class describing NM global symbol codes. 6204symcode='[BCDEGRST]' 6205 6206# Regexp to match symbols that can be accessed directly from C. 6207sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6208 6209# Define system-specific variables. 6210case $host_os in 6211aix*) 6212 symcode='[BCDT]' 6213 ;; 6214cygwin* | mingw* | pw32* | cegcc*) 6215 symcode='[ABCDGISTW]' 6216 ;; 6217hpux*) 6218 if test "$host_cpu" = ia64; then 6219 symcode='[ABCDEGRST]' 6220 fi 6221 ;; 6222irix* | nonstopux*) 6223 symcode='[BCDEGRST]' 6224 ;; 6225osf*) 6226 symcode='[BCDEGQRST]' 6227 ;; 6228solaris*) 6229 symcode='[BDRT]' 6230 ;; 6231sco3.2v5*) 6232 symcode='[DT]' 6233 ;; 6234sysv4.2uw2*) 6235 symcode='[DT]' 6236 ;; 6237sysv5* | sco5v6* | unixware* | OpenUNIX*) 6238 symcode='[ABDT]' 6239 ;; 6240sysv4) 6241 symcode='[DFNSTU]' 6242 ;; 6243esac 6244 6245# If we're using GNU nm, then use its standard symbol codes. 6246case `$NM -V 2>&1` in 6247*GNU* | *'with BFD'*) 6248 symcode='[ABCDGIRSTW]' ;; 6249esac 6250 6251# Transform an extracted symbol line into a proper C declaration. 6252# Some systems (esp. on ia64) link data and code symbols differently, 6253# so use this general approach. 6254lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6255 6256# Transform an extracted symbol line into symbol name and symbol address 6257lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6258lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6259 6260# Handle CRLF in mingw tool chain 6261opt_cr= 6262case $build_os in 6263mingw*) 6264 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6265 ;; 6266esac 6267 6268# Try without a prefix underscore, then with it. 6269for ac_symprfx in "" "_"; do 6270 6271 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6272 symxfrm="\\1 $ac_symprfx\\2 \\2" 6273 6274 # Write the raw and C identifiers. 6275 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6276 # Fake it for dumpbin and say T for any non-static function 6277 # and D for any global variable. 6278 # Also find C++ and __fastcall symbols from MSVC++, 6279 # which start with @ or ?. 6280 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6281" {last_section=section; section=\$ 3};"\ 6282" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6283" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6284" \$ 0!~/External *\|/{next};"\ 6285" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6286" {if(hide[section]) next};"\ 6287" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6288" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6289" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6290" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6291" ' prfx=^$ac_symprfx" 6292 else 6293 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6294 fi 6295 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6296 6297 # Check to see that the pipe works correctly. 6298 pipe_works=no 6299 6300 rm -f conftest* 6301 cat > conftest.$ac_ext <<_LT_EOF 6302#ifdef __cplusplus 6303extern "C" { 6304#endif 6305char nm_test_var; 6306void nm_test_func(void); 6307void nm_test_func(void){} 6308#ifdef __cplusplus 6309} 6310#endif 6311int main(){nm_test_var='a';nm_test_func();return(0);} 6312_LT_EOF 6313 6314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6315 (eval $ac_compile) 2>&5 6316 ac_status=$? 6317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6318 test $ac_status = 0; }; then 6319 # Now try to grab the symbols. 6320 nlist=conftest.nm 6321 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6322 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6323 ac_status=$? 6324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6325 test $ac_status = 0; } && test -s "$nlist"; then 6326 # Try sorting and uniquifying the output. 6327 if sort "$nlist" | uniq > "$nlist"T; then 6328 mv -f "$nlist"T "$nlist" 6329 else 6330 rm -f "$nlist"T 6331 fi 6332 6333 # Make sure that we snagged all the symbols we need. 6334 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6335 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6336 cat <<_LT_EOF > conftest.$ac_ext 6337/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6338#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6339/* DATA imports from DLLs on WIN32 con't be const, because runtime 6340 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6341# define LT_DLSYM_CONST 6342#elif defined(__osf__) 6343/* This system does not cope well with relocations in const data. */ 6344# define LT_DLSYM_CONST 6345#else 6346# define LT_DLSYM_CONST const 6347#endif 6348 6349#ifdef __cplusplus 6350extern "C" { 6351#endif 6352 6353_LT_EOF 6354 # Now generate the symbol file. 6355 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6356 6357 cat <<_LT_EOF >> conftest.$ac_ext 6358 6359/* The mapping between symbol names and symbols. */ 6360LT_DLSYM_CONST struct { 6361 const char *name; 6362 void *address; 6363} 6364lt__PROGRAM__LTX_preloaded_symbols[] = 6365{ 6366 { "@PROGRAM@", (void *) 0 }, 6367_LT_EOF 6368 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6369 cat <<\_LT_EOF >> conftest.$ac_ext 6370 {0, (void *) 0} 6371}; 6372 6373/* This works around a problem in FreeBSD linker */ 6374#ifdef FREEBSD_WORKAROUND 6375static const void *lt_preloaded_setup() { 6376 return lt__PROGRAM__LTX_preloaded_symbols; 6377} 6378#endif 6379 6380#ifdef __cplusplus 6381} 6382#endif 6383_LT_EOF 6384 # Now try linking the two files. 6385 mv conftest.$ac_objext conftstm.$ac_objext 6386 lt_globsym_save_LIBS=$LIBS 6387 lt_globsym_save_CFLAGS=$CFLAGS 6388 LIBS="conftstm.$ac_objext" 6389 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6390 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6391 (eval $ac_link) 2>&5 6392 ac_status=$? 6393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6394 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6395 pipe_works=yes 6396 fi 6397 LIBS=$lt_globsym_save_LIBS 6398 CFLAGS=$lt_globsym_save_CFLAGS 6399 else 6400 echo "cannot find nm_test_func in $nlist" >&5 6401 fi 6402 else 6403 echo "cannot find nm_test_var in $nlist" >&5 6404 fi 6405 else 6406 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6407 fi 6408 else 6409 echo "$progname: failed program was:" >&5 6410 cat conftest.$ac_ext >&5 6411 fi 6412 rm -rf conftest* conftst* 6413 6414 # Do not use the global_symbol_pipe unless it works. 6415 if test "$pipe_works" = yes; then 6416 break 6417 else 6418 lt_cv_sys_global_symbol_pipe= 6419 fi 6420done 6421 6422fi 6423 6424if test -z "$lt_cv_sys_global_symbol_pipe"; then 6425 lt_cv_sys_global_symbol_to_cdecl= 6426fi 6427if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6429$as_echo "failed" >&6; } 6430else 6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6432$as_echo "ok" >&6; } 6433fi 6434 6435# Response file support. 6436if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6437 nm_file_list_spec='@' 6438elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6439 nm_file_list_spec='@' 6440fi 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6469$as_echo_n "checking for sysroot... " >&6; } 6470 6471# Check whether --with-sysroot was given. 6472if test "${with_sysroot+set}" = set; then : 6473 withval=$with_sysroot; 6474else 6475 with_sysroot=no 6476fi 6477 6478 6479lt_sysroot= 6480case ${with_sysroot} in #( 6481 yes) 6482 if test "$GCC" = yes; then 6483 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6484 fi 6485 ;; #( 6486 /*) 6487 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6488 ;; #( 6489 no|'') 6490 ;; #( 6491 *) 6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6493$as_echo "${with_sysroot}" >&6; } 6494 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6495 ;; 6496esac 6497 6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6499$as_echo "${lt_sysroot:-no}" >&6; } 6500 6501 6502 6503 6504 6505# Check whether --enable-libtool-lock was given. 6506if test "${enable_libtool_lock+set}" = set; then : 6507 enableval=$enable_libtool_lock; 6508fi 6509 6510test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6511 6512# Some flags need to be propagated to the compiler or linker for good 6513# libtool support. 6514case $host in 6515ia64-*-hpux*) 6516 # Find out which ABI we are using. 6517 echo 'int i;' > conftest.$ac_ext 6518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6519 (eval $ac_compile) 2>&5 6520 ac_status=$? 6521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6522 test $ac_status = 0; }; then 6523 case `/usr/bin/file conftest.$ac_objext` in 6524 *ELF-32*) 6525 HPUX_IA64_MODE="32" 6526 ;; 6527 *ELF-64*) 6528 HPUX_IA64_MODE="64" 6529 ;; 6530 esac 6531 fi 6532 rm -rf conftest* 6533 ;; 6534*-*-irix6*) 6535 # Find out which ABI we are using. 6536 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6538 (eval $ac_compile) 2>&5 6539 ac_status=$? 6540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6541 test $ac_status = 0; }; then 6542 if test "$lt_cv_prog_gnu_ld" = yes; then 6543 case `/usr/bin/file conftest.$ac_objext` in 6544 *32-bit*) 6545 LD="${LD-ld} -melf32bsmip" 6546 ;; 6547 *N32*) 6548 LD="${LD-ld} -melf32bmipn32" 6549 ;; 6550 *64-bit*) 6551 LD="${LD-ld} -melf64bmip" 6552 ;; 6553 esac 6554 else 6555 case `/usr/bin/file conftest.$ac_objext` in 6556 *32-bit*) 6557 LD="${LD-ld} -32" 6558 ;; 6559 *N32*) 6560 LD="${LD-ld} -n32" 6561 ;; 6562 *64-bit*) 6563 LD="${LD-ld} -64" 6564 ;; 6565 esac 6566 fi 6567 fi 6568 rm -rf conftest* 6569 ;; 6570 6571x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6572s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6573 # Find out which ABI we are using. 6574 echo 'int i;' > conftest.$ac_ext 6575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6576 (eval $ac_compile) 2>&5 6577 ac_status=$? 6578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6579 test $ac_status = 0; }; then 6580 case `/usr/bin/file conftest.o` in 6581 *32-bit*) 6582 case $host in 6583 x86_64-*kfreebsd*-gnu) 6584 LD="${LD-ld} -m elf_i386_fbsd" 6585 ;; 6586 x86_64-*linux*) 6587 case `/usr/bin/file conftest.o` in 6588 *x86-64*) 6589 LD="${LD-ld} -m elf32_x86_64" 6590 ;; 6591 *) 6592 LD="${LD-ld} -m elf_i386" 6593 ;; 6594 esac 6595 ;; 6596 powerpc64le-*) 6597 LD="${LD-ld} -m elf32lppclinux" 6598 ;; 6599 powerpc64-*) 6600 LD="${LD-ld} -m elf32ppclinux" 6601 ;; 6602 s390x-*linux*) 6603 LD="${LD-ld} -m elf_s390" 6604 ;; 6605 sparc64-*linux*) 6606 LD="${LD-ld} -m elf32_sparc" 6607 ;; 6608 esac 6609 ;; 6610 *64-bit*) 6611 case $host in 6612 x86_64-*kfreebsd*-gnu) 6613 LD="${LD-ld} -m elf_x86_64_fbsd" 6614 ;; 6615 x86_64-*linux*) 6616 LD="${LD-ld} -m elf_x86_64" 6617 ;; 6618 powerpcle-*) 6619 LD="${LD-ld} -m elf64lppc" 6620 ;; 6621 powerpc-*) 6622 LD="${LD-ld} -m elf64ppc" 6623 ;; 6624 s390*-*linux*|s390*-*tpf*) 6625 LD="${LD-ld} -m elf64_s390" 6626 ;; 6627 sparc*-*linux*) 6628 LD="${LD-ld} -m elf64_sparc" 6629 ;; 6630 esac 6631 ;; 6632 esac 6633 fi 6634 rm -rf conftest* 6635 ;; 6636 6637*-*-sco3.2v5*) 6638 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6639 SAVE_CFLAGS="$CFLAGS" 6640 CFLAGS="$CFLAGS -belf" 6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6642$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6643if ${lt_cv_cc_needs_belf+:} false; then : 6644 $as_echo_n "(cached) " >&6 6645else 6646 ac_ext=c 6647ac_cpp='$CPP $CPPFLAGS' 6648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6650ac_compiler_gnu=$ac_cv_c_compiler_gnu 6651 6652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6653/* end confdefs.h. */ 6654 6655int 6656main () 6657{ 6658 6659 ; 6660 return 0; 6661} 6662_ACEOF 6663if ac_fn_c_try_link "$LINENO"; then : 6664 lt_cv_cc_needs_belf=yes 6665else 6666 lt_cv_cc_needs_belf=no 6667fi 6668rm -f core conftest.err conftest.$ac_objext \ 6669 conftest$ac_exeext conftest.$ac_ext 6670 ac_ext=c 6671ac_cpp='$CPP $CPPFLAGS' 6672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6674ac_compiler_gnu=$ac_cv_c_compiler_gnu 6675 6676fi 6677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6678$as_echo "$lt_cv_cc_needs_belf" >&6; } 6679 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6680 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6681 CFLAGS="$SAVE_CFLAGS" 6682 fi 6683 ;; 6684*-*solaris*) 6685 # Find out which ABI we are using. 6686 echo 'int i;' > conftest.$ac_ext 6687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6688 (eval $ac_compile) 2>&5 6689 ac_status=$? 6690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6691 test $ac_status = 0; }; then 6692 case `/usr/bin/file conftest.o` in 6693 *64-bit*) 6694 case $lt_cv_prog_gnu_ld in 6695 yes*) 6696 case $host in 6697 i?86-*-solaris*) 6698 LD="${LD-ld} -m elf_x86_64" 6699 ;; 6700 sparc*-*-solaris*) 6701 LD="${LD-ld} -m elf64_sparc" 6702 ;; 6703 esac 6704 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6705 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6706 LD="${LD-ld}_sol2" 6707 fi 6708 ;; 6709 *) 6710 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6711 LD="${LD-ld} -64" 6712 fi 6713 ;; 6714 esac 6715 ;; 6716 esac 6717 fi 6718 rm -rf conftest* 6719 ;; 6720esac 6721 6722need_locks="$enable_libtool_lock" 6723 6724if test -n "$ac_tool_prefix"; then 6725 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6726set dummy ${ac_tool_prefix}mt; ac_word=$2 6727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6728$as_echo_n "checking for $ac_word... " >&6; } 6729if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6730 $as_echo_n "(cached) " >&6 6731else 6732 if test -n "$MANIFEST_TOOL"; then 6733 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6734else 6735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6736for as_dir in $PATH 6737do 6738 IFS=$as_save_IFS 6739 test -z "$as_dir" && as_dir=. 6740 for ac_exec_ext in '' $ac_executable_extensions; do 6741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6742 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6744 break 2 6745 fi 6746done 6747 done 6748IFS=$as_save_IFS 6749 6750fi 6751fi 6752MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6753if test -n "$MANIFEST_TOOL"; then 6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6755$as_echo "$MANIFEST_TOOL" >&6; } 6756else 6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6758$as_echo "no" >&6; } 6759fi 6760 6761 6762fi 6763if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6764 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6765 # Extract the first word of "mt", so it can be a program name with args. 6766set dummy mt; ac_word=$2 6767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6768$as_echo_n "checking for $ac_word... " >&6; } 6769if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6770 $as_echo_n "(cached) " >&6 6771else 6772 if test -n "$ac_ct_MANIFEST_TOOL"; then 6773 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6774else 6775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6776for as_dir in $PATH 6777do 6778 IFS=$as_save_IFS 6779 test -z "$as_dir" && as_dir=. 6780 for ac_exec_ext in '' $ac_executable_extensions; do 6781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6782 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6784 break 2 6785 fi 6786done 6787 done 6788IFS=$as_save_IFS 6789 6790fi 6791fi 6792ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6793if test -n "$ac_ct_MANIFEST_TOOL"; then 6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6795$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6796else 6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6798$as_echo "no" >&6; } 6799fi 6800 6801 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6802 MANIFEST_TOOL=":" 6803 else 6804 case $cross_compiling:$ac_tool_warned in 6805yes:) 6806{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6807$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6808ac_tool_warned=yes ;; 6809esac 6810 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6811 fi 6812else 6813 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6814fi 6815 6816test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6818$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6819if ${lt_cv_path_mainfest_tool+:} false; then : 6820 $as_echo_n "(cached) " >&6 6821else 6822 lt_cv_path_mainfest_tool=no 6823 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6824 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6825 cat conftest.err >&5 6826 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6827 lt_cv_path_mainfest_tool=yes 6828 fi 6829 rm -f conftest* 6830fi 6831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6832$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6833if test "x$lt_cv_path_mainfest_tool" != xyes; then 6834 MANIFEST_TOOL=: 6835fi 6836 6837 6838 6839 6840 6841 6842 case $host_os in 6843 rhapsody* | darwin*) 6844 if test -n "$ac_tool_prefix"; then 6845 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6846set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6848$as_echo_n "checking for $ac_word... " >&6; } 6849if ${ac_cv_prog_DSYMUTIL+:} false; then : 6850 $as_echo_n "(cached) " >&6 6851else 6852 if test -n "$DSYMUTIL"; then 6853 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6854else 6855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6856for as_dir in $PATH 6857do 6858 IFS=$as_save_IFS 6859 test -z "$as_dir" && as_dir=. 6860 for ac_exec_ext in '' $ac_executable_extensions; do 6861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6862 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6864 break 2 6865 fi 6866done 6867 done 6868IFS=$as_save_IFS 6869 6870fi 6871fi 6872DSYMUTIL=$ac_cv_prog_DSYMUTIL 6873if test -n "$DSYMUTIL"; then 6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6875$as_echo "$DSYMUTIL" >&6; } 6876else 6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6878$as_echo "no" >&6; } 6879fi 6880 6881 6882fi 6883if test -z "$ac_cv_prog_DSYMUTIL"; then 6884 ac_ct_DSYMUTIL=$DSYMUTIL 6885 # Extract the first word of "dsymutil", so it can be a program name with args. 6886set dummy dsymutil; ac_word=$2 6887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6888$as_echo_n "checking for $ac_word... " >&6; } 6889if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6890 $as_echo_n "(cached) " >&6 6891else 6892 if test -n "$ac_ct_DSYMUTIL"; then 6893 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6894else 6895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6896for as_dir in $PATH 6897do 6898 IFS=$as_save_IFS 6899 test -z "$as_dir" && as_dir=. 6900 for ac_exec_ext in '' $ac_executable_extensions; do 6901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6902 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6904 break 2 6905 fi 6906done 6907 done 6908IFS=$as_save_IFS 6909 6910fi 6911fi 6912ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6913if test -n "$ac_ct_DSYMUTIL"; then 6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6915$as_echo "$ac_ct_DSYMUTIL" >&6; } 6916else 6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6918$as_echo "no" >&6; } 6919fi 6920 6921 if test "x$ac_ct_DSYMUTIL" = x; then 6922 DSYMUTIL=":" 6923 else 6924 case $cross_compiling:$ac_tool_warned in 6925yes:) 6926{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6927$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6928ac_tool_warned=yes ;; 6929esac 6930 DSYMUTIL=$ac_ct_DSYMUTIL 6931 fi 6932else 6933 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6934fi 6935 6936 if test -n "$ac_tool_prefix"; then 6937 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6938set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6940$as_echo_n "checking for $ac_word... " >&6; } 6941if ${ac_cv_prog_NMEDIT+:} false; then : 6942 $as_echo_n "(cached) " >&6 6943else 6944 if test -n "$NMEDIT"; then 6945 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6946else 6947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6948for as_dir in $PATH 6949do 6950 IFS=$as_save_IFS 6951 test -z "$as_dir" && as_dir=. 6952 for ac_exec_ext in '' $ac_executable_extensions; do 6953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6954 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6956 break 2 6957 fi 6958done 6959 done 6960IFS=$as_save_IFS 6961 6962fi 6963fi 6964NMEDIT=$ac_cv_prog_NMEDIT 6965if test -n "$NMEDIT"; then 6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6967$as_echo "$NMEDIT" >&6; } 6968else 6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6970$as_echo "no" >&6; } 6971fi 6972 6973 6974fi 6975if test -z "$ac_cv_prog_NMEDIT"; then 6976 ac_ct_NMEDIT=$NMEDIT 6977 # Extract the first word of "nmedit", so it can be a program name with args. 6978set dummy nmedit; ac_word=$2 6979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6980$as_echo_n "checking for $ac_word... " >&6; } 6981if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6982 $as_echo_n "(cached) " >&6 6983else 6984 if test -n "$ac_ct_NMEDIT"; then 6985 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6986else 6987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6988for as_dir in $PATH 6989do 6990 IFS=$as_save_IFS 6991 test -z "$as_dir" && as_dir=. 6992 for ac_exec_ext in '' $ac_executable_extensions; do 6993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6994 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6996 break 2 6997 fi 6998done 6999 done 7000IFS=$as_save_IFS 7001 7002fi 7003fi 7004ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7005if test -n "$ac_ct_NMEDIT"; then 7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7007$as_echo "$ac_ct_NMEDIT" >&6; } 7008else 7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7010$as_echo "no" >&6; } 7011fi 7012 7013 if test "x$ac_ct_NMEDIT" = x; then 7014 NMEDIT=":" 7015 else 7016 case $cross_compiling:$ac_tool_warned in 7017yes:) 7018{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7019$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7020ac_tool_warned=yes ;; 7021esac 7022 NMEDIT=$ac_ct_NMEDIT 7023 fi 7024else 7025 NMEDIT="$ac_cv_prog_NMEDIT" 7026fi 7027 7028 if test -n "$ac_tool_prefix"; then 7029 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7030set dummy ${ac_tool_prefix}lipo; ac_word=$2 7031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7032$as_echo_n "checking for $ac_word... " >&6; } 7033if ${ac_cv_prog_LIPO+:} false; then : 7034 $as_echo_n "(cached) " >&6 7035else 7036 if test -n "$LIPO"; then 7037 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7038else 7039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7040for as_dir in $PATH 7041do 7042 IFS=$as_save_IFS 7043 test -z "$as_dir" && as_dir=. 7044 for ac_exec_ext in '' $ac_executable_extensions; do 7045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7046 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7048 break 2 7049 fi 7050done 7051 done 7052IFS=$as_save_IFS 7053 7054fi 7055fi 7056LIPO=$ac_cv_prog_LIPO 7057if test -n "$LIPO"; then 7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7059$as_echo "$LIPO" >&6; } 7060else 7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7062$as_echo "no" >&6; } 7063fi 7064 7065 7066fi 7067if test -z "$ac_cv_prog_LIPO"; then 7068 ac_ct_LIPO=$LIPO 7069 # Extract the first word of "lipo", so it can be a program name with args. 7070set dummy lipo; ac_word=$2 7071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7072$as_echo_n "checking for $ac_word... " >&6; } 7073if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7074 $as_echo_n "(cached) " >&6 7075else 7076 if test -n "$ac_ct_LIPO"; then 7077 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7078else 7079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7080for as_dir in $PATH 7081do 7082 IFS=$as_save_IFS 7083 test -z "$as_dir" && as_dir=. 7084 for ac_exec_ext in '' $ac_executable_extensions; do 7085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7086 ac_cv_prog_ac_ct_LIPO="lipo" 7087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7088 break 2 7089 fi 7090done 7091 done 7092IFS=$as_save_IFS 7093 7094fi 7095fi 7096ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7097if test -n "$ac_ct_LIPO"; then 7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7099$as_echo "$ac_ct_LIPO" >&6; } 7100else 7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7102$as_echo "no" >&6; } 7103fi 7104 7105 if test "x$ac_ct_LIPO" = x; then 7106 LIPO=":" 7107 else 7108 case $cross_compiling:$ac_tool_warned in 7109yes:) 7110{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7111$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7112ac_tool_warned=yes ;; 7113esac 7114 LIPO=$ac_ct_LIPO 7115 fi 7116else 7117 LIPO="$ac_cv_prog_LIPO" 7118fi 7119 7120 if test -n "$ac_tool_prefix"; then 7121 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7122set dummy ${ac_tool_prefix}otool; ac_word=$2 7123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7124$as_echo_n "checking for $ac_word... " >&6; } 7125if ${ac_cv_prog_OTOOL+:} false; then : 7126 $as_echo_n "(cached) " >&6 7127else 7128 if test -n "$OTOOL"; then 7129 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7130else 7131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7132for as_dir in $PATH 7133do 7134 IFS=$as_save_IFS 7135 test -z "$as_dir" && as_dir=. 7136 for ac_exec_ext in '' $ac_executable_extensions; do 7137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7138 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7140 break 2 7141 fi 7142done 7143 done 7144IFS=$as_save_IFS 7145 7146fi 7147fi 7148OTOOL=$ac_cv_prog_OTOOL 7149if test -n "$OTOOL"; then 7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7151$as_echo "$OTOOL" >&6; } 7152else 7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7154$as_echo "no" >&6; } 7155fi 7156 7157 7158fi 7159if test -z "$ac_cv_prog_OTOOL"; then 7160 ac_ct_OTOOL=$OTOOL 7161 # Extract the first word of "otool", so it can be a program name with args. 7162set dummy otool; ac_word=$2 7163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7164$as_echo_n "checking for $ac_word... " >&6; } 7165if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7166 $as_echo_n "(cached) " >&6 7167else 7168 if test -n "$ac_ct_OTOOL"; then 7169 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7170else 7171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7172for as_dir in $PATH 7173do 7174 IFS=$as_save_IFS 7175 test -z "$as_dir" && as_dir=. 7176 for ac_exec_ext in '' $ac_executable_extensions; do 7177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7178 ac_cv_prog_ac_ct_OTOOL="otool" 7179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7180 break 2 7181 fi 7182done 7183 done 7184IFS=$as_save_IFS 7185 7186fi 7187fi 7188ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7189if test -n "$ac_ct_OTOOL"; then 7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7191$as_echo "$ac_ct_OTOOL" >&6; } 7192else 7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7194$as_echo "no" >&6; } 7195fi 7196 7197 if test "x$ac_ct_OTOOL" = x; then 7198 OTOOL=":" 7199 else 7200 case $cross_compiling:$ac_tool_warned in 7201yes:) 7202{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7203$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7204ac_tool_warned=yes ;; 7205esac 7206 OTOOL=$ac_ct_OTOOL 7207 fi 7208else 7209 OTOOL="$ac_cv_prog_OTOOL" 7210fi 7211 7212 if test -n "$ac_tool_prefix"; then 7213 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7214set dummy ${ac_tool_prefix}otool64; ac_word=$2 7215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7216$as_echo_n "checking for $ac_word... " >&6; } 7217if ${ac_cv_prog_OTOOL64+:} false; then : 7218 $as_echo_n "(cached) " >&6 7219else 7220 if test -n "$OTOOL64"; then 7221 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7222else 7223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7224for as_dir in $PATH 7225do 7226 IFS=$as_save_IFS 7227 test -z "$as_dir" && as_dir=. 7228 for ac_exec_ext in '' $ac_executable_extensions; do 7229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7230 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7232 break 2 7233 fi 7234done 7235 done 7236IFS=$as_save_IFS 7237 7238fi 7239fi 7240OTOOL64=$ac_cv_prog_OTOOL64 7241if test -n "$OTOOL64"; then 7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7243$as_echo "$OTOOL64" >&6; } 7244else 7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7246$as_echo "no" >&6; } 7247fi 7248 7249 7250fi 7251if test -z "$ac_cv_prog_OTOOL64"; then 7252 ac_ct_OTOOL64=$OTOOL64 7253 # Extract the first word of "otool64", so it can be a program name with args. 7254set dummy otool64; ac_word=$2 7255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7256$as_echo_n "checking for $ac_word... " >&6; } 7257if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7258 $as_echo_n "(cached) " >&6 7259else 7260 if test -n "$ac_ct_OTOOL64"; then 7261 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7262else 7263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7264for as_dir in $PATH 7265do 7266 IFS=$as_save_IFS 7267 test -z "$as_dir" && as_dir=. 7268 for ac_exec_ext in '' $ac_executable_extensions; do 7269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7270 ac_cv_prog_ac_ct_OTOOL64="otool64" 7271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7272 break 2 7273 fi 7274done 7275 done 7276IFS=$as_save_IFS 7277 7278fi 7279fi 7280ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7281if test -n "$ac_ct_OTOOL64"; then 7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7283$as_echo "$ac_ct_OTOOL64" >&6; } 7284else 7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7286$as_echo "no" >&6; } 7287fi 7288 7289 if test "x$ac_ct_OTOOL64" = x; then 7290 OTOOL64=":" 7291 else 7292 case $cross_compiling:$ac_tool_warned in 7293yes:) 7294{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7295$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7296ac_tool_warned=yes ;; 7297esac 7298 OTOOL64=$ac_ct_OTOOL64 7299 fi 7300else 7301 OTOOL64="$ac_cv_prog_OTOOL64" 7302fi 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7331$as_echo_n "checking for -single_module linker flag... " >&6; } 7332if ${lt_cv_apple_cc_single_mod+:} false; then : 7333 $as_echo_n "(cached) " >&6 7334else 7335 lt_cv_apple_cc_single_mod=no 7336 if test -z "${LT_MULTI_MODULE}"; then 7337 # By default we will add the -single_module flag. You can override 7338 # by either setting the environment variable LT_MULTI_MODULE 7339 # non-empty at configure time, or by adding -multi_module to the 7340 # link flags. 7341 rm -rf libconftest.dylib* 7342 echo "int foo(void){return 1;}" > conftest.c 7343 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7344-dynamiclib -Wl,-single_module conftest.c" >&5 7345 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7346 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7347 _lt_result=$? 7348 # If there is a non-empty error log, and "single_module" 7349 # appears in it, assume the flag caused a linker warning 7350 if test -s conftest.err && $GREP single_module conftest.err; then 7351 cat conftest.err >&5 7352 # Otherwise, if the output was created with a 0 exit code from 7353 # the compiler, it worked. 7354 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7355 lt_cv_apple_cc_single_mod=yes 7356 else 7357 cat conftest.err >&5 7358 fi 7359 rm -rf libconftest.dylib* 7360 rm -f conftest.* 7361 fi 7362fi 7363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7364$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7365 7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7367$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7368if ${lt_cv_ld_exported_symbols_list+:} false; then : 7369 $as_echo_n "(cached) " >&6 7370else 7371 lt_cv_ld_exported_symbols_list=no 7372 save_LDFLAGS=$LDFLAGS 7373 echo "_main" > conftest.sym 7374 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7376/* end confdefs.h. */ 7377 7378int 7379main () 7380{ 7381 7382 ; 7383 return 0; 7384} 7385_ACEOF 7386if ac_fn_c_try_link "$LINENO"; then : 7387 lt_cv_ld_exported_symbols_list=yes 7388else 7389 lt_cv_ld_exported_symbols_list=no 7390fi 7391rm -f core conftest.err conftest.$ac_objext \ 7392 conftest$ac_exeext conftest.$ac_ext 7393 LDFLAGS="$save_LDFLAGS" 7394 7395fi 7396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7397$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7398 7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7400$as_echo_n "checking for -force_load linker flag... " >&6; } 7401if ${lt_cv_ld_force_load+:} false; then : 7402 $as_echo_n "(cached) " >&6 7403else 7404 lt_cv_ld_force_load=no 7405 cat > conftest.c << _LT_EOF 7406int forced_loaded() { return 2;} 7407_LT_EOF 7408 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7409 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7410 echo "$AR cru libconftest.a conftest.o" >&5 7411 $AR cru libconftest.a conftest.o 2>&5 7412 echo "$RANLIB libconftest.a" >&5 7413 $RANLIB libconftest.a 2>&5 7414 cat > conftest.c << _LT_EOF 7415int main() { return 0;} 7416_LT_EOF 7417 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7418 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7419 _lt_result=$? 7420 if test -s conftest.err && $GREP force_load conftest.err; then 7421 cat conftest.err >&5 7422 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7423 lt_cv_ld_force_load=yes 7424 else 7425 cat conftest.err >&5 7426 fi 7427 rm -f conftest.err libconftest.a conftest conftest.c 7428 rm -rf conftest.dSYM 7429 7430fi 7431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7432$as_echo "$lt_cv_ld_force_load" >&6; } 7433 case $host_os in 7434 rhapsody* | darwin1.[012]) 7435 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7436 darwin1.*) 7437 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7438 darwin*) # darwin 5.x on 7439 # if running on 10.5 or later, the deployment target defaults 7440 # to the OS version, if on x86, and 10.4, the deployment 7441 # target defaults to 10.4. Don't you love it? 7442 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7443 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7444 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7445 10.[012]*) 7446 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7447 10.*) 7448 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7449 esac 7450 ;; 7451 esac 7452 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7453 _lt_dar_single_mod='$single_module' 7454 fi 7455 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7456 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7457 else 7458 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7459 fi 7460 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7461 _lt_dsymutil='~$DSYMUTIL $lib || :' 7462 else 7463 _lt_dsymutil= 7464 fi 7465 ;; 7466 esac 7467 7468ac_ext=c 7469ac_cpp='$CPP $CPPFLAGS' 7470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7472ac_compiler_gnu=$ac_cv_c_compiler_gnu 7473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7474$as_echo_n "checking how to run the C preprocessor... " >&6; } 7475# On Suns, sometimes $CPP names a directory. 7476if test -n "$CPP" && test -d "$CPP"; then 7477 CPP= 7478fi 7479if test -z "$CPP"; then 7480 if ${ac_cv_prog_CPP+:} false; then : 7481 $as_echo_n "(cached) " >&6 7482else 7483 # Double quotes because CPP needs to be expanded 7484 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7485 do 7486 ac_preproc_ok=false 7487for ac_c_preproc_warn_flag in '' yes 7488do 7489 # Use a header file that comes with gcc, so configuring glibc 7490 # with a fresh cross-compiler works. 7491 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7492 # <limits.h> exists even on freestanding compilers. 7493 # On the NeXT, cc -E runs the code through the compiler's parser, 7494 # not just through cpp. "Syntax error" is here to catch this case. 7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7496/* end confdefs.h. */ 7497#ifdef __STDC__ 7498# include <limits.h> 7499#else 7500# include <assert.h> 7501#endif 7502 Syntax error 7503_ACEOF 7504if ac_fn_c_try_cpp "$LINENO"; then : 7505 7506else 7507 # Broken: fails on valid input. 7508continue 7509fi 7510rm -f conftest.err conftest.i conftest.$ac_ext 7511 7512 # OK, works on sane cases. Now check whether nonexistent headers 7513 # can be detected and how. 7514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7515/* end confdefs.h. */ 7516#include <ac_nonexistent.h> 7517_ACEOF 7518if ac_fn_c_try_cpp "$LINENO"; then : 7519 # Broken: success on invalid input. 7520continue 7521else 7522 # Passes both tests. 7523ac_preproc_ok=: 7524break 7525fi 7526rm -f conftest.err conftest.i conftest.$ac_ext 7527 7528done 7529# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7530rm -f conftest.i conftest.err conftest.$ac_ext 7531if $ac_preproc_ok; then : 7532 break 7533fi 7534 7535 done 7536 ac_cv_prog_CPP=$CPP 7537 7538fi 7539 CPP=$ac_cv_prog_CPP 7540else 7541 ac_cv_prog_CPP=$CPP 7542fi 7543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7544$as_echo "$CPP" >&6; } 7545ac_preproc_ok=false 7546for ac_c_preproc_warn_flag in '' yes 7547do 7548 # Use a header file that comes with gcc, so configuring glibc 7549 # with a fresh cross-compiler works. 7550 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7551 # <limits.h> exists even on freestanding compilers. 7552 # On the NeXT, cc -E runs the code through the compiler's parser, 7553 # not just through cpp. "Syntax error" is here to catch this case. 7554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7555/* end confdefs.h. */ 7556#ifdef __STDC__ 7557# include <limits.h> 7558#else 7559# include <assert.h> 7560#endif 7561 Syntax error 7562_ACEOF 7563if ac_fn_c_try_cpp "$LINENO"; then : 7564 7565else 7566 # Broken: fails on valid input. 7567continue 7568fi 7569rm -f conftest.err conftest.i conftest.$ac_ext 7570 7571 # OK, works on sane cases. Now check whether nonexistent headers 7572 # can be detected and how. 7573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7574/* end confdefs.h. */ 7575#include <ac_nonexistent.h> 7576_ACEOF 7577if ac_fn_c_try_cpp "$LINENO"; then : 7578 # Broken: success on invalid input. 7579continue 7580else 7581 # Passes both tests. 7582ac_preproc_ok=: 7583break 7584fi 7585rm -f conftest.err conftest.i conftest.$ac_ext 7586 7587done 7588# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7589rm -f conftest.i conftest.err conftest.$ac_ext 7590if $ac_preproc_ok; then : 7591 7592else 7593 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7594$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7595as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7596See \`config.log' for more details" "$LINENO" 5; } 7597fi 7598 7599ac_ext=c 7600ac_cpp='$CPP $CPPFLAGS' 7601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7603ac_compiler_gnu=$ac_cv_c_compiler_gnu 7604 7605 7606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7607$as_echo_n "checking for ANSI C header files... " >&6; } 7608if ${ac_cv_header_stdc+:} false; then : 7609 $as_echo_n "(cached) " >&6 7610else 7611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7612/* end confdefs.h. */ 7613#include <stdlib.h> 7614#include <stdarg.h> 7615#include <string.h> 7616#include <float.h> 7617 7618int 7619main () 7620{ 7621 7622 ; 7623 return 0; 7624} 7625_ACEOF 7626if ac_fn_c_try_compile "$LINENO"; then : 7627 ac_cv_header_stdc=yes 7628else 7629 ac_cv_header_stdc=no 7630fi 7631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7632 7633if test $ac_cv_header_stdc = yes; then 7634 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7636/* end confdefs.h. */ 7637#include <string.h> 7638 7639_ACEOF 7640if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7641 $EGREP "memchr" >/dev/null 2>&1; then : 7642 7643else 7644 ac_cv_header_stdc=no 7645fi 7646rm -f conftest* 7647 7648fi 7649 7650if test $ac_cv_header_stdc = yes; then 7651 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7653/* end confdefs.h. */ 7654#include <stdlib.h> 7655 7656_ACEOF 7657if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7658 $EGREP "free" >/dev/null 2>&1; then : 7659 7660else 7661 ac_cv_header_stdc=no 7662fi 7663rm -f conftest* 7664 7665fi 7666 7667if test $ac_cv_header_stdc = yes; then 7668 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7669 if test "$cross_compiling" = yes; then : 7670 : 7671else 7672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7673/* end confdefs.h. */ 7674#include <ctype.h> 7675#include <stdlib.h> 7676#if ((' ' & 0x0FF) == 0x020) 7677# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7678# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7679#else 7680# define ISLOWER(c) \ 7681 (('a' <= (c) && (c) <= 'i') \ 7682 || ('j' <= (c) && (c) <= 'r') \ 7683 || ('s' <= (c) && (c) <= 'z')) 7684# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7685#endif 7686 7687#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7688int 7689main () 7690{ 7691 int i; 7692 for (i = 0; i < 256; i++) 7693 if (XOR (islower (i), ISLOWER (i)) 7694 || toupper (i) != TOUPPER (i)) 7695 return 2; 7696 return 0; 7697} 7698_ACEOF 7699if ac_fn_c_try_run "$LINENO"; then : 7700 7701else 7702 ac_cv_header_stdc=no 7703fi 7704rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7705 conftest.$ac_objext conftest.beam conftest.$ac_ext 7706fi 7707 7708fi 7709fi 7710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7711$as_echo "$ac_cv_header_stdc" >&6; } 7712if test $ac_cv_header_stdc = yes; then 7713 7714$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7715 7716fi 7717 7718# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7719for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7720 inttypes.h stdint.h unistd.h 7721do : 7722 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7723ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7724" 7725if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7726 cat >>confdefs.h <<_ACEOF 7727#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7728_ACEOF 7729 7730fi 7731 7732done 7733 7734 7735for ac_header in dlfcn.h 7736do : 7737 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7738" 7739if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7740 cat >>confdefs.h <<_ACEOF 7741#define HAVE_DLFCN_H 1 7742_ACEOF 7743 7744fi 7745 7746done 7747 7748 7749 7750 7751 7752# Set options 7753 7754 7755 7756 enable_dlopen=no 7757 7758 7759 enable_win32_dll=no 7760 7761 7762 # Check whether --enable-shared was given. 7763if test "${enable_shared+set}" = set; then : 7764 enableval=$enable_shared; p=${PACKAGE-default} 7765 case $enableval in 7766 yes) enable_shared=yes ;; 7767 no) enable_shared=no ;; 7768 *) 7769 enable_shared=no 7770 # Look at the argument we got. We use all the common list separators. 7771 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7772 for pkg in $enableval; do 7773 IFS="$lt_save_ifs" 7774 if test "X$pkg" = "X$p"; then 7775 enable_shared=yes 7776 fi 7777 done 7778 IFS="$lt_save_ifs" 7779 ;; 7780 esac 7781else 7782 enable_shared=yes 7783fi 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 # Check whether --enable-static was given. 7794if test "${enable_static+set}" = set; then : 7795 enableval=$enable_static; p=${PACKAGE-default} 7796 case $enableval in 7797 yes) enable_static=yes ;; 7798 no) enable_static=no ;; 7799 *) 7800 enable_static=no 7801 # Look at the argument we got. We use all the common list separators. 7802 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7803 for pkg in $enableval; do 7804 IFS="$lt_save_ifs" 7805 if test "X$pkg" = "X$p"; then 7806 enable_static=yes 7807 fi 7808 done 7809 IFS="$lt_save_ifs" 7810 ;; 7811 esac 7812else 7813 enable_static=yes 7814fi 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825# Check whether --with-pic was given. 7826if test "${with_pic+set}" = set; then : 7827 withval=$with_pic; lt_p=${PACKAGE-default} 7828 case $withval in 7829 yes|no) pic_mode=$withval ;; 7830 *) 7831 pic_mode=default 7832 # Look at the argument we got. We use all the common list separators. 7833 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7834 for lt_pkg in $withval; do 7835 IFS="$lt_save_ifs" 7836 if test "X$lt_pkg" = "X$lt_p"; then 7837 pic_mode=yes 7838 fi 7839 done 7840 IFS="$lt_save_ifs" 7841 ;; 7842 esac 7843else 7844 pic_mode=default 7845fi 7846 7847 7848test -z "$pic_mode" && pic_mode=default 7849 7850 7851 7852 7853 7854 7855 7856 # Check whether --enable-fast-install was given. 7857if test "${enable_fast_install+set}" = set; then : 7858 enableval=$enable_fast_install; p=${PACKAGE-default} 7859 case $enableval in 7860 yes) enable_fast_install=yes ;; 7861 no) enable_fast_install=no ;; 7862 *) 7863 enable_fast_install=no 7864 # Look at the argument we got. We use all the common list separators. 7865 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7866 for pkg in $enableval; do 7867 IFS="$lt_save_ifs" 7868 if test "X$pkg" = "X$p"; then 7869 enable_fast_install=yes 7870 fi 7871 done 7872 IFS="$lt_save_ifs" 7873 ;; 7874 esac 7875else 7876 enable_fast_install=yes 7877fi 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889# This can be used to rebuild libtool when needed 7890LIBTOOL_DEPS="$ltmain" 7891 7892# Always use our own libtool. 7893LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924test -z "$LN_S" && LN_S="ln -s" 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939if test -n "${ZSH_VERSION+set}" ; then 7940 setopt NO_GLOB_SUBST 7941fi 7942 7943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7944$as_echo_n "checking for objdir... " >&6; } 7945if ${lt_cv_objdir+:} false; then : 7946 $as_echo_n "(cached) " >&6 7947else 7948 rm -f .libs 2>/dev/null 7949mkdir .libs 2>/dev/null 7950if test -d .libs; then 7951 lt_cv_objdir=.libs 7952else 7953 # MS-DOS does not allow filenames that begin with a dot. 7954 lt_cv_objdir=_libs 7955fi 7956rmdir .libs 2>/dev/null 7957fi 7958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7959$as_echo "$lt_cv_objdir" >&6; } 7960objdir=$lt_cv_objdir 7961 7962 7963 7964 7965 7966cat >>confdefs.h <<_ACEOF 7967#define LT_OBJDIR "$lt_cv_objdir/" 7968_ACEOF 7969 7970 7971 7972 7973case $host_os in 7974aix3*) 7975 # AIX sometimes has problems with the GCC collect2 program. For some 7976 # reason, if we set the COLLECT_NAMES environment variable, the problems 7977 # vanish in a puff of smoke. 7978 if test "X${COLLECT_NAMES+set}" != Xset; then 7979 COLLECT_NAMES= 7980 export COLLECT_NAMES 7981 fi 7982 ;; 7983esac 7984 7985# Global variables: 7986ofile=libtool 7987can_build_shared=yes 7988 7989# All known linkers require a `.a' archive for static linking (except MSVC, 7990# which needs '.lib'). 7991libext=a 7992 7993with_gnu_ld="$lt_cv_prog_gnu_ld" 7994 7995old_CC="$CC" 7996old_CFLAGS="$CFLAGS" 7997 7998# Set sane defaults for various variables 7999test -z "$CC" && CC=cc 8000test -z "$LTCC" && LTCC=$CC 8001test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8002test -z "$LD" && LD=ld 8003test -z "$ac_objext" && ac_objext=o 8004 8005for cc_temp in $compiler""; do 8006 case $cc_temp in 8007 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8008 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8009 \-*) ;; 8010 *) break;; 8011 esac 8012done 8013cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8014 8015 8016# Only perform the check for file, if the check method requires it 8017test -z "$MAGIC_CMD" && MAGIC_CMD=file 8018case $deplibs_check_method in 8019file_magic*) 8020 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8022$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8023if ${lt_cv_path_MAGIC_CMD+:} false; then : 8024 $as_echo_n "(cached) " >&6 8025else 8026 case $MAGIC_CMD in 8027[\\/*] | ?:[\\/]*) 8028 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8029 ;; 8030*) 8031 lt_save_MAGIC_CMD="$MAGIC_CMD" 8032 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8033 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8034 for ac_dir in $ac_dummy; do 8035 IFS="$lt_save_ifs" 8036 test -z "$ac_dir" && ac_dir=. 8037 if test -f $ac_dir/${ac_tool_prefix}file; then 8038 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8039 if test -n "$file_magic_test_file"; then 8040 case $deplibs_check_method in 8041 "file_magic "*) 8042 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8043 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8044 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8045 $EGREP "$file_magic_regex" > /dev/null; then 8046 : 8047 else 8048 cat <<_LT_EOF 1>&2 8049 8050*** Warning: the command libtool uses to detect shared libraries, 8051*** $file_magic_cmd, produces output that libtool cannot recognize. 8052*** The result is that libtool may fail to recognize shared libraries 8053*** as such. This will affect the creation of libtool libraries that 8054*** depend on shared libraries, but programs linked with such libtool 8055*** libraries will work regardless of this problem. Nevertheless, you 8056*** may want to report the problem to your system manager and/or to 8057*** bug-libtool@gnu.org 8058 8059_LT_EOF 8060 fi ;; 8061 esac 8062 fi 8063 break 8064 fi 8065 done 8066 IFS="$lt_save_ifs" 8067 MAGIC_CMD="$lt_save_MAGIC_CMD" 8068 ;; 8069esac 8070fi 8071 8072MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8073if test -n "$MAGIC_CMD"; then 8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8075$as_echo "$MAGIC_CMD" >&6; } 8076else 8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8078$as_echo "no" >&6; } 8079fi 8080 8081 8082 8083 8084 8085if test -z "$lt_cv_path_MAGIC_CMD"; then 8086 if test -n "$ac_tool_prefix"; then 8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8088$as_echo_n "checking for file... " >&6; } 8089if ${lt_cv_path_MAGIC_CMD+:} false; then : 8090 $as_echo_n "(cached) " >&6 8091else 8092 case $MAGIC_CMD in 8093[\\/*] | ?:[\\/]*) 8094 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8095 ;; 8096*) 8097 lt_save_MAGIC_CMD="$MAGIC_CMD" 8098 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8099 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8100 for ac_dir in $ac_dummy; do 8101 IFS="$lt_save_ifs" 8102 test -z "$ac_dir" && ac_dir=. 8103 if test -f $ac_dir/file; then 8104 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8105 if test -n "$file_magic_test_file"; then 8106 case $deplibs_check_method in 8107 "file_magic "*) 8108 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8109 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8110 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8111 $EGREP "$file_magic_regex" > /dev/null; then 8112 : 8113 else 8114 cat <<_LT_EOF 1>&2 8115 8116*** Warning: the command libtool uses to detect shared libraries, 8117*** $file_magic_cmd, produces output that libtool cannot recognize. 8118*** The result is that libtool may fail to recognize shared libraries 8119*** as such. This will affect the creation of libtool libraries that 8120*** depend on shared libraries, but programs linked with such libtool 8121*** libraries will work regardless of this problem. Nevertheless, you 8122*** may want to report the problem to your system manager and/or to 8123*** bug-libtool@gnu.org 8124 8125_LT_EOF 8126 fi ;; 8127 esac 8128 fi 8129 break 8130 fi 8131 done 8132 IFS="$lt_save_ifs" 8133 MAGIC_CMD="$lt_save_MAGIC_CMD" 8134 ;; 8135esac 8136fi 8137 8138MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8139if test -n "$MAGIC_CMD"; then 8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8141$as_echo "$MAGIC_CMD" >&6; } 8142else 8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8144$as_echo "no" >&6; } 8145fi 8146 8147 8148 else 8149 MAGIC_CMD=: 8150 fi 8151fi 8152 8153 fi 8154 ;; 8155esac 8156 8157# Use C for the default configuration in the libtool script 8158 8159lt_save_CC="$CC" 8160ac_ext=c 8161ac_cpp='$CPP $CPPFLAGS' 8162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8164ac_compiler_gnu=$ac_cv_c_compiler_gnu 8165 8166 8167# Source file extension for C test sources. 8168ac_ext=c 8169 8170# Object file extension for compiled C test sources. 8171objext=o 8172objext=$objext 8173 8174# Code to be used in simple compile tests 8175lt_simple_compile_test_code="int some_variable = 0;" 8176 8177# Code to be used in simple link tests 8178lt_simple_link_test_code='int main(){return(0);}' 8179 8180 8181 8182 8183 8184 8185 8186# If no C compiler was specified, use CC. 8187LTCC=${LTCC-"$CC"} 8188 8189# If no C compiler flags were specified, use CFLAGS. 8190LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8191 8192# Allow CC to be a program name with arguments. 8193compiler=$CC 8194 8195# Save the default compiler, since it gets overwritten when the other 8196# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8197compiler_DEFAULT=$CC 8198 8199# save warnings/boilerplate of simple test code 8200ac_outfile=conftest.$ac_objext 8201echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8202eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8203_lt_compiler_boilerplate=`cat conftest.err` 8204$RM conftest* 8205 8206ac_outfile=conftest.$ac_objext 8207echo "$lt_simple_link_test_code" >conftest.$ac_ext 8208eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8209_lt_linker_boilerplate=`cat conftest.err` 8210$RM -r conftest* 8211 8212 8213## CAVEAT EMPTOR: 8214## There is no encapsulation within the following macros, do not change 8215## the running order or otherwise move them around unless you know exactly 8216## what you are doing... 8217if test -n "$compiler"; then 8218 8219lt_prog_compiler_no_builtin_flag= 8220 8221if test "$GCC" = yes; then 8222 case $cc_basename in 8223 nvcc*) 8224 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8225 *) 8226 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8227 esac 8228 8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8230$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8231if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8232 $as_echo_n "(cached) " >&6 8233else 8234 lt_cv_prog_compiler_rtti_exceptions=no 8235 ac_outfile=conftest.$ac_objext 8236 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8237 lt_compiler_flag="-fno-rtti -fno-exceptions" 8238 # Insert the option either (1) after the last *FLAGS variable, or 8239 # (2) before a word containing "conftest.", or (3) at the end. 8240 # Note that $ac_compile itself does not contain backslashes and begins 8241 # with a dollar sign (not a hyphen), so the echo should work correctly. 8242 # The option is referenced via a variable to avoid confusing sed. 8243 lt_compile=`echo "$ac_compile" | $SED \ 8244 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8245 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8246 -e 's:$: $lt_compiler_flag:'` 8247 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8248 (eval "$lt_compile" 2>conftest.err) 8249 ac_status=$? 8250 cat conftest.err >&5 8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8252 if (exit $ac_status) && test -s "$ac_outfile"; then 8253 # The compiler can only warn and ignore the option if not recognized 8254 # So say no if there are warnings other than the usual output. 8255 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8256 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8257 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8258 lt_cv_prog_compiler_rtti_exceptions=yes 8259 fi 8260 fi 8261 $RM conftest* 8262 8263fi 8264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8265$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8266 8267if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8268 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8269else 8270 : 8271fi 8272 8273fi 8274 8275 8276 8277 8278 8279 8280 lt_prog_compiler_wl= 8281lt_prog_compiler_pic= 8282lt_prog_compiler_static= 8283 8284 8285 if test "$GCC" = yes; then 8286 lt_prog_compiler_wl='-Wl,' 8287 lt_prog_compiler_static='-static' 8288 8289 case $host_os in 8290 aix*) 8291 # All AIX code is PIC. 8292 if test "$host_cpu" = ia64; then 8293 # AIX 5 now supports IA64 processor 8294 lt_prog_compiler_static='-Bstatic' 8295 fi 8296 ;; 8297 8298 amigaos*) 8299 case $host_cpu in 8300 powerpc) 8301 # see comment about AmigaOS4 .so support 8302 lt_prog_compiler_pic='-fPIC' 8303 ;; 8304 m68k) 8305 # FIXME: we need at least 68020 code to build shared libraries, but 8306 # adding the `-m68020' flag to GCC prevents building anything better, 8307 # like `-m68040'. 8308 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8309 ;; 8310 esac 8311 ;; 8312 8313 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8314 # PIC is the default for these OSes. 8315 ;; 8316 8317 mingw* | cygwin* | pw32* | os2* | cegcc*) 8318 # This hack is so that the source file can tell whether it is being 8319 # built for inclusion in a dll (and should export symbols for example). 8320 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8321 # (--disable-auto-import) libraries 8322 lt_prog_compiler_pic='-DDLL_EXPORT' 8323 ;; 8324 8325 darwin* | rhapsody*) 8326 # PIC is the default on this platform 8327 # Common symbols not allowed in MH_DYLIB files 8328 lt_prog_compiler_pic='-fno-common' 8329 ;; 8330 8331 haiku*) 8332 # PIC is the default for Haiku. 8333 # The "-static" flag exists, but is broken. 8334 lt_prog_compiler_static= 8335 ;; 8336 8337 hpux*) 8338 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8339 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8340 # sets the default TLS model and affects inlining. 8341 case $host_cpu in 8342 hppa*64*) 8343 # +Z the default 8344 ;; 8345 *) 8346 lt_prog_compiler_pic='-fPIC' 8347 ;; 8348 esac 8349 ;; 8350 8351 interix[3-9]*) 8352 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8353 # Instead, we relocate shared libraries at runtime. 8354 ;; 8355 8356 msdosdjgpp*) 8357 # Just because we use GCC doesn't mean we suddenly get shared libraries 8358 # on systems that don't support them. 8359 lt_prog_compiler_can_build_shared=no 8360 enable_shared=no 8361 ;; 8362 8363 *nto* | *qnx*) 8364 # QNX uses GNU C++, but need to define -shared option too, otherwise 8365 # it will coredump. 8366 lt_prog_compiler_pic='-fPIC -shared' 8367 ;; 8368 8369 sysv4*MP*) 8370 if test -d /usr/nec; then 8371 lt_prog_compiler_pic=-Kconform_pic 8372 fi 8373 ;; 8374 8375 *) 8376 lt_prog_compiler_pic='-fPIC' 8377 ;; 8378 esac 8379 8380 case $cc_basename in 8381 nvcc*) # Cuda Compiler Driver 2.2 8382 lt_prog_compiler_wl='-Xlinker ' 8383 if test -n "$lt_prog_compiler_pic"; then 8384 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8385 fi 8386 ;; 8387 esac 8388 else 8389 # PORTME Check for flag to pass linker flags through the system compiler. 8390 case $host_os in 8391 aix*) 8392 lt_prog_compiler_wl='-Wl,' 8393 if test "$host_cpu" = ia64; then 8394 # AIX 5 now supports IA64 processor 8395 lt_prog_compiler_static='-Bstatic' 8396 else 8397 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8398 fi 8399 ;; 8400 8401 mingw* | cygwin* | pw32* | os2* | cegcc*) 8402 # This hack is so that the source file can tell whether it is being 8403 # built for inclusion in a dll (and should export symbols for example). 8404 lt_prog_compiler_pic='-DDLL_EXPORT' 8405 ;; 8406 8407 hpux9* | hpux10* | hpux11*) 8408 lt_prog_compiler_wl='-Wl,' 8409 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8410 # not for PA HP-UX. 8411 case $host_cpu in 8412 hppa*64*|ia64*) 8413 # +Z the default 8414 ;; 8415 *) 8416 lt_prog_compiler_pic='+Z' 8417 ;; 8418 esac 8419 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8420 lt_prog_compiler_static='${wl}-a ${wl}archive' 8421 ;; 8422 8423 irix5* | irix6* | nonstopux*) 8424 lt_prog_compiler_wl='-Wl,' 8425 # PIC (with -KPIC) is the default. 8426 lt_prog_compiler_static='-non_shared' 8427 ;; 8428 8429 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8430 case $cc_basename in 8431 # old Intel for x86_64 which still supported -KPIC. 8432 ecc*) 8433 lt_prog_compiler_wl='-Wl,' 8434 lt_prog_compiler_pic='-KPIC' 8435 lt_prog_compiler_static='-static' 8436 ;; 8437 # icc used to be incompatible with GCC. 8438 # ICC 10 doesn't accept -KPIC any more. 8439 icc* | ifort*) 8440 lt_prog_compiler_wl='-Wl,' 8441 lt_prog_compiler_pic='-fPIC' 8442 lt_prog_compiler_static='-static' 8443 ;; 8444 # Lahey Fortran 8.1. 8445 lf95*) 8446 lt_prog_compiler_wl='-Wl,' 8447 lt_prog_compiler_pic='--shared' 8448 lt_prog_compiler_static='--static' 8449 ;; 8450 nagfor*) 8451 # NAG Fortran compiler 8452 lt_prog_compiler_wl='-Wl,-Wl,,' 8453 lt_prog_compiler_pic='-PIC' 8454 lt_prog_compiler_static='-Bstatic' 8455 ;; 8456 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8457 # Portland Group compilers (*not* the Pentium gcc compiler, 8458 # which looks to be a dead project) 8459 lt_prog_compiler_wl='-Wl,' 8460 lt_prog_compiler_pic='-fpic' 8461 lt_prog_compiler_static='-Bstatic' 8462 ;; 8463 ccc*) 8464 lt_prog_compiler_wl='-Wl,' 8465 # All Alpha code is PIC. 8466 lt_prog_compiler_static='-non_shared' 8467 ;; 8468 xl* | bgxl* | bgf* | mpixl*) 8469 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8470 lt_prog_compiler_wl='-Wl,' 8471 lt_prog_compiler_pic='-qpic' 8472 lt_prog_compiler_static='-qstaticlink' 8473 ;; 8474 *) 8475 case `$CC -V 2>&1 | sed 5q` in 8476 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8477 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8478 lt_prog_compiler_pic='-KPIC' 8479 lt_prog_compiler_static='-Bstatic' 8480 lt_prog_compiler_wl='' 8481 ;; 8482 *Sun\ F* | *Sun*Fortran*) 8483 lt_prog_compiler_pic='-KPIC' 8484 lt_prog_compiler_static='-Bstatic' 8485 lt_prog_compiler_wl='-Qoption ld ' 8486 ;; 8487 *Sun\ C*) 8488 # Sun C 5.9 8489 lt_prog_compiler_pic='-KPIC' 8490 lt_prog_compiler_static='-Bstatic' 8491 lt_prog_compiler_wl='-Wl,' 8492 ;; 8493 *Intel*\ [CF]*Compiler*) 8494 lt_prog_compiler_wl='-Wl,' 8495 lt_prog_compiler_pic='-fPIC' 8496 lt_prog_compiler_static='-static' 8497 ;; 8498 *Portland\ Group*) 8499 lt_prog_compiler_wl='-Wl,' 8500 lt_prog_compiler_pic='-fpic' 8501 lt_prog_compiler_static='-Bstatic' 8502 ;; 8503 esac 8504 ;; 8505 esac 8506 ;; 8507 8508 newsos6) 8509 lt_prog_compiler_pic='-KPIC' 8510 lt_prog_compiler_static='-Bstatic' 8511 ;; 8512 8513 *nto* | *qnx*) 8514 # QNX uses GNU C++, but need to define -shared option too, otherwise 8515 # it will coredump. 8516 lt_prog_compiler_pic='-fPIC -shared' 8517 ;; 8518 8519 osf3* | osf4* | osf5*) 8520 lt_prog_compiler_wl='-Wl,' 8521 # All OSF/1 code is PIC. 8522 lt_prog_compiler_static='-non_shared' 8523 ;; 8524 8525 rdos*) 8526 lt_prog_compiler_static='-non_shared' 8527 ;; 8528 8529 solaris*) 8530 lt_prog_compiler_pic='-KPIC' 8531 lt_prog_compiler_static='-Bstatic' 8532 case $cc_basename in 8533 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8534 lt_prog_compiler_wl='-Qoption ld ';; 8535 *) 8536 lt_prog_compiler_wl='-Wl,';; 8537 esac 8538 ;; 8539 8540 sunos4*) 8541 lt_prog_compiler_wl='-Qoption ld ' 8542 lt_prog_compiler_pic='-PIC' 8543 lt_prog_compiler_static='-Bstatic' 8544 ;; 8545 8546 sysv4 | sysv4.2uw2* | sysv4.3*) 8547 lt_prog_compiler_wl='-Wl,' 8548 lt_prog_compiler_pic='-KPIC' 8549 lt_prog_compiler_static='-Bstatic' 8550 ;; 8551 8552 sysv4*MP*) 8553 if test -d /usr/nec ;then 8554 lt_prog_compiler_pic='-Kconform_pic' 8555 lt_prog_compiler_static='-Bstatic' 8556 fi 8557 ;; 8558 8559 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8560 lt_prog_compiler_wl='-Wl,' 8561 lt_prog_compiler_pic='-KPIC' 8562 lt_prog_compiler_static='-Bstatic' 8563 ;; 8564 8565 unicos*) 8566 lt_prog_compiler_wl='-Wl,' 8567 lt_prog_compiler_can_build_shared=no 8568 ;; 8569 8570 uts4*) 8571 lt_prog_compiler_pic='-pic' 8572 lt_prog_compiler_static='-Bstatic' 8573 ;; 8574 8575 *) 8576 lt_prog_compiler_can_build_shared=no 8577 ;; 8578 esac 8579 fi 8580 8581case $host_os in 8582 # For platforms which do not support PIC, -DPIC is meaningless: 8583 *djgpp*) 8584 lt_prog_compiler_pic= 8585 ;; 8586 *) 8587 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8588 ;; 8589esac 8590 8591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8592$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8593if ${lt_cv_prog_compiler_pic+:} false; then : 8594 $as_echo_n "(cached) " >&6 8595else 8596 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8597fi 8598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8599$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8600lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8601 8602# 8603# Check to make sure the PIC flag actually works. 8604# 8605if test -n "$lt_prog_compiler_pic"; then 8606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8607$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8608if ${lt_cv_prog_compiler_pic_works+:} false; then : 8609 $as_echo_n "(cached) " >&6 8610else 8611 lt_cv_prog_compiler_pic_works=no 8612 ac_outfile=conftest.$ac_objext 8613 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8614 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8615 # Insert the option either (1) after the last *FLAGS variable, or 8616 # (2) before a word containing "conftest.", or (3) at the end. 8617 # Note that $ac_compile itself does not contain backslashes and begins 8618 # with a dollar sign (not a hyphen), so the echo should work correctly. 8619 # The option is referenced via a variable to avoid confusing sed. 8620 lt_compile=`echo "$ac_compile" | $SED \ 8621 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8622 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8623 -e 's:$: $lt_compiler_flag:'` 8624 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8625 (eval "$lt_compile" 2>conftest.err) 8626 ac_status=$? 8627 cat conftest.err >&5 8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8629 if (exit $ac_status) && test -s "$ac_outfile"; then 8630 # The compiler can only warn and ignore the option if not recognized 8631 # So say no if there are warnings other than the usual output. 8632 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8633 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8634 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8635 lt_cv_prog_compiler_pic_works=yes 8636 fi 8637 fi 8638 $RM conftest* 8639 8640fi 8641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8642$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8643 8644if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8645 case $lt_prog_compiler_pic in 8646 "" | " "*) ;; 8647 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8648 esac 8649else 8650 lt_prog_compiler_pic= 8651 lt_prog_compiler_can_build_shared=no 8652fi 8653 8654fi 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666# 8667# Check to make sure the static flag actually works. 8668# 8669wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8671$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8672if ${lt_cv_prog_compiler_static_works+:} false; then : 8673 $as_echo_n "(cached) " >&6 8674else 8675 lt_cv_prog_compiler_static_works=no 8676 save_LDFLAGS="$LDFLAGS" 8677 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8678 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8679 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8680 # The linker can only warn and ignore the option if not recognized 8681 # So say no if there are warnings 8682 if test -s conftest.err; then 8683 # Append any errors to the config.log. 8684 cat conftest.err 1>&5 8685 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8686 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8687 if diff conftest.exp conftest.er2 >/dev/null; then 8688 lt_cv_prog_compiler_static_works=yes 8689 fi 8690 else 8691 lt_cv_prog_compiler_static_works=yes 8692 fi 8693 fi 8694 $RM -r conftest* 8695 LDFLAGS="$save_LDFLAGS" 8696 8697fi 8698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8699$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8700 8701if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8702 : 8703else 8704 lt_prog_compiler_static= 8705fi 8706 8707 8708 8709 8710 8711 8712 8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8714$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8715if ${lt_cv_prog_compiler_c_o+:} false; then : 8716 $as_echo_n "(cached) " >&6 8717else 8718 lt_cv_prog_compiler_c_o=no 8719 $RM -r conftest 2>/dev/null 8720 mkdir conftest 8721 cd conftest 8722 mkdir out 8723 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8724 8725 lt_compiler_flag="-o out/conftest2.$ac_objext" 8726 # Insert the option either (1) after the last *FLAGS variable, or 8727 # (2) before a word containing "conftest.", or (3) at the end. 8728 # Note that $ac_compile itself does not contain backslashes and begins 8729 # with a dollar sign (not a hyphen), so the echo should work correctly. 8730 lt_compile=`echo "$ac_compile" | $SED \ 8731 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8732 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8733 -e 's:$: $lt_compiler_flag:'` 8734 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8735 (eval "$lt_compile" 2>out/conftest.err) 8736 ac_status=$? 8737 cat out/conftest.err >&5 8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8739 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8740 then 8741 # The compiler can only warn and ignore the option if not recognized 8742 # So say no if there are warnings 8743 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8744 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8745 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8746 lt_cv_prog_compiler_c_o=yes 8747 fi 8748 fi 8749 chmod u+w . 2>&5 8750 $RM conftest* 8751 # SGI C++ compiler will create directory out/ii_files/ for 8752 # template instantiation 8753 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8754 $RM out/* && rmdir out 8755 cd .. 8756 $RM -r conftest 8757 $RM conftest* 8758 8759fi 8760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8761$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8762 8763 8764 8765 8766 8767 8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8769$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8770if ${lt_cv_prog_compiler_c_o+:} false; then : 8771 $as_echo_n "(cached) " >&6 8772else 8773 lt_cv_prog_compiler_c_o=no 8774 $RM -r conftest 2>/dev/null 8775 mkdir conftest 8776 cd conftest 8777 mkdir out 8778 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8779 8780 lt_compiler_flag="-o out/conftest2.$ac_objext" 8781 # Insert the option either (1) after the last *FLAGS variable, or 8782 # (2) before a word containing "conftest.", or (3) at the end. 8783 # Note that $ac_compile itself does not contain backslashes and begins 8784 # with a dollar sign (not a hyphen), so the echo should work correctly. 8785 lt_compile=`echo "$ac_compile" | $SED \ 8786 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8787 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8788 -e 's:$: $lt_compiler_flag:'` 8789 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8790 (eval "$lt_compile" 2>out/conftest.err) 8791 ac_status=$? 8792 cat out/conftest.err >&5 8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8794 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8795 then 8796 # The compiler can only warn and ignore the option if not recognized 8797 # So say no if there are warnings 8798 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8799 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8800 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8801 lt_cv_prog_compiler_c_o=yes 8802 fi 8803 fi 8804 chmod u+w . 2>&5 8805 $RM conftest* 8806 # SGI C++ compiler will create directory out/ii_files/ for 8807 # template instantiation 8808 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8809 $RM out/* && rmdir out 8810 cd .. 8811 $RM -r conftest 8812 $RM conftest* 8813 8814fi 8815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8816$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8817 8818 8819 8820 8821hard_links="nottested" 8822if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8823 # do not overwrite the value of need_locks provided by the user 8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8825$as_echo_n "checking if we can lock with hard links... " >&6; } 8826 hard_links=yes 8827 $RM conftest* 8828 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8829 touch conftest.a 8830 ln conftest.a conftest.b 2>&5 || hard_links=no 8831 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8833$as_echo "$hard_links" >&6; } 8834 if test "$hard_links" = no; then 8835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8836$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8837 need_locks=warn 8838 fi 8839else 8840 need_locks=no 8841fi 8842 8843 8844 8845 8846 8847 8848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8849$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8850 8851 runpath_var= 8852 allow_undefined_flag= 8853 always_export_symbols=no 8854 archive_cmds= 8855 archive_expsym_cmds= 8856 compiler_needs_object=no 8857 enable_shared_with_static_runtimes=no 8858 export_dynamic_flag_spec= 8859 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8860 hardcode_automatic=no 8861 hardcode_direct=no 8862 hardcode_direct_absolute=no 8863 hardcode_libdir_flag_spec= 8864 hardcode_libdir_separator= 8865 hardcode_minus_L=no 8866 hardcode_shlibpath_var=unsupported 8867 inherit_rpath=no 8868 link_all_deplibs=unknown 8869 module_cmds= 8870 module_expsym_cmds= 8871 old_archive_from_new_cmds= 8872 old_archive_from_expsyms_cmds= 8873 thread_safe_flag_spec= 8874 whole_archive_flag_spec= 8875 # include_expsyms should be a list of space-separated symbols to be *always* 8876 # included in the symbol list 8877 include_expsyms= 8878 # exclude_expsyms can be an extended regexp of symbols to exclude 8879 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8880 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8881 # as well as any symbol that contains `d'. 8882 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8883 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8884 # platforms (ab)use it in PIC code, but their linkers get confused if 8885 # the symbol is explicitly referenced. Since portable code cannot 8886 # rely on this symbol name, it's probably fine to never include it in 8887 # preloaded symbol tables. 8888 # Exclude shared library initialization/finalization symbols. 8889 extract_expsyms_cmds= 8890 8891 case $host_os in 8892 cygwin* | mingw* | pw32* | cegcc*) 8893 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8894 # When not using gcc, we currently assume that we are using 8895 # Microsoft Visual C++. 8896 if test "$GCC" != yes; then 8897 with_gnu_ld=no 8898 fi 8899 ;; 8900 interix*) 8901 # we just hope/assume this is gcc and not c89 (= MSVC++) 8902 with_gnu_ld=yes 8903 ;; 8904 openbsd*) 8905 with_gnu_ld=no 8906 ;; 8907 linux* | k*bsd*-gnu | gnu*) 8908 link_all_deplibs=no 8909 ;; 8910 esac 8911 8912 ld_shlibs=yes 8913 8914 # On some targets, GNU ld is compatible enough with the native linker 8915 # that we're better off using the native interface for both. 8916 lt_use_gnu_ld_interface=no 8917 if test "$with_gnu_ld" = yes; then 8918 case $host_os in 8919 aix*) 8920 # The AIX port of GNU ld has always aspired to compatibility 8921 # with the native linker. However, as the warning in the GNU ld 8922 # block says, versions before 2.19.5* couldn't really create working 8923 # shared libraries, regardless of the interface used. 8924 case `$LD -v 2>&1` in 8925 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8926 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8927 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8928 *) 8929 lt_use_gnu_ld_interface=yes 8930 ;; 8931 esac 8932 ;; 8933 *) 8934 lt_use_gnu_ld_interface=yes 8935 ;; 8936 esac 8937 fi 8938 8939 if test "$lt_use_gnu_ld_interface" = yes; then 8940 # If archive_cmds runs LD, not CC, wlarc should be empty 8941 wlarc='${wl}' 8942 8943 # Set some defaults for GNU ld with shared library support. These 8944 # are reset later if shared libraries are not supported. Putting them 8945 # here allows them to be overridden if necessary. 8946 runpath_var=LD_RUN_PATH 8947 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8948 export_dynamic_flag_spec='${wl}--export-dynamic' 8949 # ancient GNU ld didn't support --whole-archive et. al. 8950 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8951 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8952 else 8953 whole_archive_flag_spec= 8954 fi 8955 supports_anon_versioning=no 8956 case `$LD -v 2>&1` in 8957 *GNU\ gold*) supports_anon_versioning=yes ;; 8958 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8959 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8960 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8961 *\ 2.11.*) ;; # other 2.11 versions 8962 *) supports_anon_versioning=yes ;; 8963 esac 8964 8965 # See if GNU ld supports shared libraries. 8966 case $host_os in 8967 aix[3-9]*) 8968 # On AIX/PPC, the GNU linker is very broken 8969 if test "$host_cpu" != ia64; then 8970 ld_shlibs=no 8971 cat <<_LT_EOF 1>&2 8972 8973*** Warning: the GNU linker, at least up to release 2.19, is reported 8974*** to be unable to reliably create shared libraries on AIX. 8975*** Therefore, libtool is disabling shared libraries support. If you 8976*** really care for shared libraries, you may want to install binutils 8977*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8978*** You will then need to restart the configuration process. 8979 8980_LT_EOF 8981 fi 8982 ;; 8983 8984 amigaos*) 8985 case $host_cpu in 8986 powerpc) 8987 # see comment about AmigaOS4 .so support 8988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8989 archive_expsym_cmds='' 8990 ;; 8991 m68k) 8992 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)' 8993 hardcode_libdir_flag_spec='-L$libdir' 8994 hardcode_minus_L=yes 8995 ;; 8996 esac 8997 ;; 8998 8999 beos*) 9000 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9001 allow_undefined_flag=unsupported 9002 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9003 # support --undefined. This deserves some investigation. FIXME 9004 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9005 else 9006 ld_shlibs=no 9007 fi 9008 ;; 9009 9010 cygwin* | mingw* | pw32* | cegcc*) 9011 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9012 # as there is no search path for DLLs. 9013 hardcode_libdir_flag_spec='-L$libdir' 9014 export_dynamic_flag_spec='${wl}--export-all-symbols' 9015 allow_undefined_flag=unsupported 9016 always_export_symbols=no 9017 enable_shared_with_static_runtimes=yes 9018 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' 9019 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9020 9021 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9022 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9023 # If the export-symbols file already is a .def file (1st line 9024 # is EXPORTS), use it as is; otherwise, prepend... 9025 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9026 cp $export_symbols $output_objdir/$soname.def; 9027 else 9028 echo EXPORTS > $output_objdir/$soname.def; 9029 cat $export_symbols >> $output_objdir/$soname.def; 9030 fi~ 9031 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9032 else 9033 ld_shlibs=no 9034 fi 9035 ;; 9036 9037 haiku*) 9038 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9039 link_all_deplibs=yes 9040 ;; 9041 9042 interix[3-9]*) 9043 hardcode_direct=no 9044 hardcode_shlibpath_var=no 9045 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9046 export_dynamic_flag_spec='${wl}-E' 9047 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9048 # Instead, shared libraries are loaded at an image base (0x10000000 by 9049 # default) and relocated if they conflict, which is a slow very memory 9050 # consuming and fragmenting process. To avoid this, we pick a random, 9051 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9052 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9053 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9054 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' 9055 ;; 9056 9057 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9058 tmp_diet=no 9059 if test "$host_os" = linux-dietlibc; then 9060 case $cc_basename in 9061 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9062 esac 9063 fi 9064 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9065 && test "$tmp_diet" = no 9066 then 9067 tmp_addflag=' $pic_flag' 9068 tmp_sharedflag='-shared' 9069 case $cc_basename,$host_cpu in 9070 pgcc*) # Portland Group C compiler 9071 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' 9072 tmp_addflag=' $pic_flag' 9073 ;; 9074 pgf77* | pgf90* | pgf95* | pgfortran*) 9075 # Portland Group f77 and f90 compilers 9076 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' 9077 tmp_addflag=' $pic_flag -Mnomain' ;; 9078 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9079 tmp_addflag=' -i_dynamic' ;; 9080 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9081 tmp_addflag=' -i_dynamic -nofor_main' ;; 9082 ifc* | ifort*) # Intel Fortran compiler 9083 tmp_addflag=' -nofor_main' ;; 9084 lf95*) # Lahey Fortran 8.1 9085 whole_archive_flag_spec= 9086 tmp_sharedflag='--shared' ;; 9087 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9088 tmp_sharedflag='-qmkshrobj' 9089 tmp_addflag= ;; 9090 nvcc*) # Cuda Compiler Driver 2.2 9091 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' 9092 compiler_needs_object=yes 9093 ;; 9094 esac 9095 case `$CC -V 2>&1 | sed 5q` in 9096 *Sun\ C*) # Sun C 5.9 9097 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' 9098 compiler_needs_object=yes 9099 tmp_sharedflag='-G' ;; 9100 *Sun\ F*) # Sun Fortran 8.3 9101 tmp_sharedflag='-G' ;; 9102 esac 9103 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9104 9105 if test "x$supports_anon_versioning" = xyes; then 9106 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9107 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9108 echo "local: *; };" >> $output_objdir/$libname.ver~ 9109 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9110 fi 9111 9112 case $cc_basename in 9113 xlf* | bgf* | bgxlf* | mpixlf*) 9114 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9115 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9116 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9117 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9118 if test "x$supports_anon_versioning" = xyes; then 9119 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9120 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9121 echo "local: *; };" >> $output_objdir/$libname.ver~ 9122 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9123 fi 9124 ;; 9125 esac 9126 else 9127 ld_shlibs=no 9128 fi 9129 ;; 9130 9131 netbsd* | netbsdelf*-gnu) 9132 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9133 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9134 wlarc= 9135 else 9136 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9137 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9138 fi 9139 ;; 9140 9141 solaris*) 9142 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9143 ld_shlibs=no 9144 cat <<_LT_EOF 1>&2 9145 9146*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9147*** create shared libraries on Solaris systems. Therefore, libtool 9148*** is disabling shared libraries support. We urge you to upgrade GNU 9149*** binutils to release 2.9.1 or newer. Another option is to modify 9150*** your PATH or compiler configuration so that the native linker is 9151*** used, and then restart. 9152 9153_LT_EOF 9154 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9155 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9156 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9157 else 9158 ld_shlibs=no 9159 fi 9160 ;; 9161 9162 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9163 case `$LD -v 2>&1` in 9164 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9165 ld_shlibs=no 9166 cat <<_LT_EOF 1>&2 9167 9168*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9169*** reliably create shared libraries on SCO systems. Therefore, libtool 9170*** is disabling shared libraries support. We urge you to upgrade GNU 9171*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9172*** your PATH or compiler configuration so that the native linker is 9173*** used, and then restart. 9174 9175_LT_EOF 9176 ;; 9177 *) 9178 # For security reasons, it is highly recommended that you always 9179 # use absolute paths for naming shared libraries, and exclude the 9180 # DT_RUNPATH tag from executables and libraries. But doing so 9181 # requires that you compile everything twice, which is a pain. 9182 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9183 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9184 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9185 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9186 else 9187 ld_shlibs=no 9188 fi 9189 ;; 9190 esac 9191 ;; 9192 9193 sunos4*) 9194 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9195 wlarc= 9196 hardcode_direct=yes 9197 hardcode_shlibpath_var=no 9198 ;; 9199 9200 *) 9201 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9202 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9203 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9204 else 9205 ld_shlibs=no 9206 fi 9207 ;; 9208 esac 9209 9210 if test "$ld_shlibs" = no; then 9211 runpath_var= 9212 hardcode_libdir_flag_spec= 9213 export_dynamic_flag_spec= 9214 whole_archive_flag_spec= 9215 fi 9216 else 9217 # PORTME fill in a description of your system's linker (not GNU ld) 9218 case $host_os in 9219 aix3*) 9220 allow_undefined_flag=unsupported 9221 always_export_symbols=yes 9222 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' 9223 # Note: this linker hardcodes the directories in LIBPATH if there 9224 # are no directories specified by -L. 9225 hardcode_minus_L=yes 9226 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9227 # Neither direct hardcoding nor static linking is supported with a 9228 # broken collect2. 9229 hardcode_direct=unsupported 9230 fi 9231 ;; 9232 9233 aix[4-9]*) 9234 if test "$host_cpu" = ia64; then 9235 # On IA64, the linker does run time linking by default, so we don't 9236 # have to do anything special. 9237 aix_use_runtimelinking=no 9238 exp_sym_flag='-Bexport' 9239 no_entry_flag="" 9240 else 9241 # If we're using GNU nm, then we don't want the "-C" option. 9242 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9243 # Also, AIX nm treats weak defined symbols like other global 9244 # defined symbols, whereas GNU nm marks them as "W". 9245 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9246 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9247 else 9248 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9249 fi 9250 aix_use_runtimelinking=no 9251 9252 # Test if we are trying to use run time linking or normal 9253 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9254 # need to do runtime linking. 9255 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9256 for ld_flag in $LDFLAGS; do 9257 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9258 aix_use_runtimelinking=yes 9259 break 9260 fi 9261 done 9262 ;; 9263 esac 9264 9265 exp_sym_flag='-bexport' 9266 no_entry_flag='-bnoentry' 9267 fi 9268 9269 # When large executables or shared objects are built, AIX ld can 9270 # have problems creating the table of contents. If linking a library 9271 # or program results in "error TOC overflow" add -mminimal-toc to 9272 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9273 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9274 9275 archive_cmds='' 9276 hardcode_direct=yes 9277 hardcode_direct_absolute=yes 9278 hardcode_libdir_separator=':' 9279 link_all_deplibs=yes 9280 file_list_spec='${wl}-f,' 9281 9282 if test "$GCC" = yes; then 9283 case $host_os in aix4.[012]|aix4.[012].*) 9284 # We only want to do this on AIX 4.2 and lower, the check 9285 # below for broken collect2 doesn't work under 4.3+ 9286 collect2name=`${CC} -print-prog-name=collect2` 9287 if test -f "$collect2name" && 9288 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9289 then 9290 # We have reworked collect2 9291 : 9292 else 9293 # We have old collect2 9294 hardcode_direct=unsupported 9295 # It fails to find uninstalled libraries when the uninstalled 9296 # path is not listed in the libpath. Setting hardcode_minus_L 9297 # to unsupported forces relinking 9298 hardcode_minus_L=yes 9299 hardcode_libdir_flag_spec='-L$libdir' 9300 hardcode_libdir_separator= 9301 fi 9302 ;; 9303 esac 9304 shared_flag='-shared' 9305 if test "$aix_use_runtimelinking" = yes; then 9306 shared_flag="$shared_flag "'${wl}-G' 9307 fi 9308 link_all_deplibs=no 9309 else 9310 # not using gcc 9311 if test "$host_cpu" = ia64; then 9312 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9313 # chokes on -Wl,-G. The following line is correct: 9314 shared_flag='-G' 9315 else 9316 if test "$aix_use_runtimelinking" = yes; then 9317 shared_flag='${wl}-G' 9318 else 9319 shared_flag='${wl}-bM:SRE' 9320 fi 9321 fi 9322 fi 9323 9324 export_dynamic_flag_spec='${wl}-bexpall' 9325 # It seems that -bexpall does not export symbols beginning with 9326 # underscore (_), so it is better to generate a list of symbols to export. 9327 always_export_symbols=yes 9328 if test "$aix_use_runtimelinking" = yes; then 9329 # Warning - without using the other runtime loading flags (-brtl), 9330 # -berok will link without error, but may produce a broken library. 9331 allow_undefined_flag='-berok' 9332 # Determine the default libpath from the value encoded in an 9333 # empty executable. 9334 if test "${lt_cv_aix_libpath+set}" = set; then 9335 aix_libpath=$lt_cv_aix_libpath 9336else 9337 if ${lt_cv_aix_libpath_+:} false; then : 9338 $as_echo_n "(cached) " >&6 9339else 9340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9341/* end confdefs.h. */ 9342 9343int 9344main () 9345{ 9346 9347 ; 9348 return 0; 9349} 9350_ACEOF 9351if ac_fn_c_try_link "$LINENO"; then : 9352 9353 lt_aix_libpath_sed=' 9354 /Import File Strings/,/^$/ { 9355 /^0/ { 9356 s/^0 *\([^ ]*\) *$/\1/ 9357 p 9358 } 9359 }' 9360 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9361 # Check for a 64-bit object if we didn't find anything. 9362 if test -z "$lt_cv_aix_libpath_"; then 9363 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9364 fi 9365fi 9366rm -f core conftest.err conftest.$ac_objext \ 9367 conftest$ac_exeext conftest.$ac_ext 9368 if test -z "$lt_cv_aix_libpath_"; then 9369 lt_cv_aix_libpath_="/usr/lib:/lib" 9370 fi 9371 9372fi 9373 9374 aix_libpath=$lt_cv_aix_libpath_ 9375fi 9376 9377 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9378 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9379 else 9380 if test "$host_cpu" = ia64; then 9381 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9382 allow_undefined_flag="-z nodefs" 9383 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" 9384 else 9385 # Determine the default libpath from the value encoded in an 9386 # empty executable. 9387 if test "${lt_cv_aix_libpath+set}" = set; then 9388 aix_libpath=$lt_cv_aix_libpath 9389else 9390 if ${lt_cv_aix_libpath_+:} false; then : 9391 $as_echo_n "(cached) " >&6 9392else 9393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9394/* end confdefs.h. */ 9395 9396int 9397main () 9398{ 9399 9400 ; 9401 return 0; 9402} 9403_ACEOF 9404if ac_fn_c_try_link "$LINENO"; then : 9405 9406 lt_aix_libpath_sed=' 9407 /Import File Strings/,/^$/ { 9408 /^0/ { 9409 s/^0 *\([^ ]*\) *$/\1/ 9410 p 9411 } 9412 }' 9413 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9414 # Check for a 64-bit object if we didn't find anything. 9415 if test -z "$lt_cv_aix_libpath_"; then 9416 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9417 fi 9418fi 9419rm -f core conftest.err conftest.$ac_objext \ 9420 conftest$ac_exeext conftest.$ac_ext 9421 if test -z "$lt_cv_aix_libpath_"; then 9422 lt_cv_aix_libpath_="/usr/lib:/lib" 9423 fi 9424 9425fi 9426 9427 aix_libpath=$lt_cv_aix_libpath_ 9428fi 9429 9430 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9431 # Warning - without using the other run time loading flags, 9432 # -berok will link without error, but may produce a broken library. 9433 no_undefined_flag=' ${wl}-bernotok' 9434 allow_undefined_flag=' ${wl}-berok' 9435 if test "$with_gnu_ld" = yes; then 9436 # We only use this code for GNU lds that support --whole-archive. 9437 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9438 else 9439 # Exported symbols can be pulled into shared objects from archives 9440 whole_archive_flag_spec='$convenience' 9441 fi 9442 archive_cmds_need_lc=yes 9443 # This is similar to how AIX traditionally builds its shared libraries. 9444 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9445 fi 9446 fi 9447 ;; 9448 9449 amigaos*) 9450 case $host_cpu in 9451 powerpc) 9452 # see comment about AmigaOS4 .so support 9453 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9454 archive_expsym_cmds='' 9455 ;; 9456 m68k) 9457 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)' 9458 hardcode_libdir_flag_spec='-L$libdir' 9459 hardcode_minus_L=yes 9460 ;; 9461 esac 9462 ;; 9463 9464 bsdi[45]*) 9465 export_dynamic_flag_spec=-rdynamic 9466 ;; 9467 9468 cygwin* | mingw* | pw32* | cegcc*) 9469 # When not using gcc, we currently assume that we are using 9470 # Microsoft Visual C++. 9471 # hardcode_libdir_flag_spec is actually meaningless, as there is 9472 # no search path for DLLs. 9473 case $cc_basename in 9474 cl*) 9475 # Native MSVC 9476 hardcode_libdir_flag_spec=' ' 9477 allow_undefined_flag=unsupported 9478 always_export_symbols=yes 9479 file_list_spec='@' 9480 # Tell ltmain to make .lib files, not .a files. 9481 libext=lib 9482 # Tell ltmain to make .dll files, not .so files. 9483 shrext_cmds=".dll" 9484 # FIXME: Setting linknames here is a bad hack. 9485 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9486 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9487 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9488 else 9489 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9490 fi~ 9491 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9492 linknames=' 9493 # The linker will not automatically build a static lib if we build a DLL. 9494 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9495 enable_shared_with_static_runtimes=yes 9496 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9497 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9498 # Don't use ranlib 9499 old_postinstall_cmds='chmod 644 $oldlib' 9500 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9501 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9502 case $lt_outputfile in 9503 *.exe|*.EXE) ;; 9504 *) 9505 lt_outputfile="$lt_outputfile.exe" 9506 lt_tool_outputfile="$lt_tool_outputfile.exe" 9507 ;; 9508 esac~ 9509 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9510 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9511 $RM "$lt_outputfile.manifest"; 9512 fi' 9513 ;; 9514 *) 9515 # Assume MSVC wrapper 9516 hardcode_libdir_flag_spec=' ' 9517 allow_undefined_flag=unsupported 9518 # Tell ltmain to make .lib files, not .a files. 9519 libext=lib 9520 # Tell ltmain to make .dll files, not .so files. 9521 shrext_cmds=".dll" 9522 # FIXME: Setting linknames here is a bad hack. 9523 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9524 # The linker will automatically build a .lib file if we build a DLL. 9525 old_archive_from_new_cmds='true' 9526 # FIXME: Should let the user specify the lib program. 9527 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9528 enable_shared_with_static_runtimes=yes 9529 ;; 9530 esac 9531 ;; 9532 9533 darwin* | rhapsody*) 9534 9535 9536 archive_cmds_need_lc=no 9537 hardcode_direct=no 9538 hardcode_automatic=yes 9539 hardcode_shlibpath_var=unsupported 9540 if test "$lt_cv_ld_force_load" = "yes"; then 9541 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\"`' 9542 9543 else 9544 whole_archive_flag_spec='' 9545 fi 9546 link_all_deplibs=yes 9547 allow_undefined_flag="$_lt_dar_allow_undefined" 9548 case $cc_basename in 9549 ifort*) _lt_dar_can_shared=yes ;; 9550 *) _lt_dar_can_shared=$GCC ;; 9551 esac 9552 if test "$_lt_dar_can_shared" = "yes"; then 9553 output_verbose_link_cmd=func_echo_all 9554 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9555 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9556 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}" 9557 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}" 9558 9559 else 9560 ld_shlibs=no 9561 fi 9562 9563 ;; 9564 9565 dgux*) 9566 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9567 hardcode_libdir_flag_spec='-L$libdir' 9568 hardcode_shlibpath_var=no 9569 ;; 9570 9571 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9572 # support. Future versions do this automatically, but an explicit c++rt0.o 9573 # does not break anything, and helps significantly (at the cost of a little 9574 # extra space). 9575 freebsd2.2*) 9576 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9577 hardcode_libdir_flag_spec='-R$libdir' 9578 hardcode_direct=yes 9579 hardcode_shlibpath_var=no 9580 ;; 9581 9582 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9583 freebsd2.*) 9584 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9585 hardcode_direct=yes 9586 hardcode_minus_L=yes 9587 hardcode_shlibpath_var=no 9588 ;; 9589 9590 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9591 freebsd* | dragonfly*) 9592 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9593 hardcode_libdir_flag_spec='-R$libdir' 9594 hardcode_direct=yes 9595 hardcode_shlibpath_var=no 9596 ;; 9597 9598 hpux9*) 9599 if test "$GCC" = yes; then 9600 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9601 else 9602 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9603 fi 9604 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9605 hardcode_libdir_separator=: 9606 hardcode_direct=yes 9607 9608 # hardcode_minus_L: Not really in the search PATH, 9609 # but as the default location of the library. 9610 hardcode_minus_L=yes 9611 export_dynamic_flag_spec='${wl}-E' 9612 ;; 9613 9614 hpux10*) 9615 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9616 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9617 else 9618 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9619 fi 9620 if test "$with_gnu_ld" = no; then 9621 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9622 hardcode_libdir_separator=: 9623 hardcode_direct=yes 9624 hardcode_direct_absolute=yes 9625 export_dynamic_flag_spec='${wl}-E' 9626 # hardcode_minus_L: Not really in the search PATH, 9627 # but as the default location of the library. 9628 hardcode_minus_L=yes 9629 fi 9630 ;; 9631 9632 hpux11*) 9633 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9634 case $host_cpu in 9635 hppa*64*) 9636 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9637 ;; 9638 ia64*) 9639 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9640 ;; 9641 *) 9642 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9643 ;; 9644 esac 9645 else 9646 case $host_cpu in 9647 hppa*64*) 9648 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9649 ;; 9650 ia64*) 9651 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9652 ;; 9653 *) 9654 9655 # Older versions of the 11.00 compiler do not understand -b yet 9656 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9658$as_echo_n "checking if $CC understands -b... " >&6; } 9659if ${lt_cv_prog_compiler__b+:} false; then : 9660 $as_echo_n "(cached) " >&6 9661else 9662 lt_cv_prog_compiler__b=no 9663 save_LDFLAGS="$LDFLAGS" 9664 LDFLAGS="$LDFLAGS -b" 9665 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9666 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9667 # The linker can only warn and ignore the option if not recognized 9668 # So say no if there are warnings 9669 if test -s conftest.err; then 9670 # Append any errors to the config.log. 9671 cat conftest.err 1>&5 9672 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9673 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9674 if diff conftest.exp conftest.er2 >/dev/null; then 9675 lt_cv_prog_compiler__b=yes 9676 fi 9677 else 9678 lt_cv_prog_compiler__b=yes 9679 fi 9680 fi 9681 $RM -r conftest* 9682 LDFLAGS="$save_LDFLAGS" 9683 9684fi 9685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9686$as_echo "$lt_cv_prog_compiler__b" >&6; } 9687 9688if test x"$lt_cv_prog_compiler__b" = xyes; then 9689 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9690else 9691 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9692fi 9693 9694 ;; 9695 esac 9696 fi 9697 if test "$with_gnu_ld" = no; then 9698 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9699 hardcode_libdir_separator=: 9700 9701 case $host_cpu in 9702 hppa*64*|ia64*) 9703 hardcode_direct=no 9704 hardcode_shlibpath_var=no 9705 ;; 9706 *) 9707 hardcode_direct=yes 9708 hardcode_direct_absolute=yes 9709 export_dynamic_flag_spec='${wl}-E' 9710 9711 # hardcode_minus_L: Not really in the search PATH, 9712 # but as the default location of the library. 9713 hardcode_minus_L=yes 9714 ;; 9715 esac 9716 fi 9717 ;; 9718 9719 irix5* | irix6* | nonstopux*) 9720 if test "$GCC" = yes; then 9721 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' 9722 # Try to use the -exported_symbol ld option, if it does not 9723 # work, assume that -exports_file does not work either and 9724 # implicitly export all symbols. 9725 # This should be the same for all languages, so no per-tag cache variable. 9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9727$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9728if ${lt_cv_irix_exported_symbol+:} false; then : 9729 $as_echo_n "(cached) " >&6 9730else 9731 save_LDFLAGS="$LDFLAGS" 9732 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9734/* end confdefs.h. */ 9735int foo (void) { return 0; } 9736_ACEOF 9737if ac_fn_c_try_link "$LINENO"; then : 9738 lt_cv_irix_exported_symbol=yes 9739else 9740 lt_cv_irix_exported_symbol=no 9741fi 9742rm -f core conftest.err conftest.$ac_objext \ 9743 conftest$ac_exeext conftest.$ac_ext 9744 LDFLAGS="$save_LDFLAGS" 9745fi 9746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9747$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9748 if test "$lt_cv_irix_exported_symbol" = yes; then 9749 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' 9750 fi 9751 else 9752 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' 9753 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' 9754 fi 9755 archive_cmds_need_lc='no' 9756 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9757 hardcode_libdir_separator=: 9758 inherit_rpath=yes 9759 link_all_deplibs=yes 9760 ;; 9761 9762 netbsd* | netbsdelf*-gnu) 9763 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9764 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9765 else 9766 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9767 fi 9768 hardcode_libdir_flag_spec='-R$libdir' 9769 hardcode_direct=yes 9770 hardcode_shlibpath_var=no 9771 ;; 9772 9773 newsos6) 9774 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9775 hardcode_direct=yes 9776 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9777 hardcode_libdir_separator=: 9778 hardcode_shlibpath_var=no 9779 ;; 9780 9781 *nto* | *qnx*) 9782 ;; 9783 9784 openbsd*) 9785 if test -f /usr/libexec/ld.so; then 9786 hardcode_direct=yes 9787 hardcode_shlibpath_var=no 9788 hardcode_direct_absolute=yes 9789 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9790 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9791 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9792 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9793 export_dynamic_flag_spec='${wl}-E' 9794 else 9795 case $host_os in 9796 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9797 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9798 hardcode_libdir_flag_spec='-R$libdir' 9799 ;; 9800 *) 9801 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9802 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9803 ;; 9804 esac 9805 fi 9806 else 9807 ld_shlibs=no 9808 fi 9809 ;; 9810 9811 os2*) 9812 hardcode_libdir_flag_spec='-L$libdir' 9813 hardcode_minus_L=yes 9814 allow_undefined_flag=unsupported 9815 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 9816 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9817 ;; 9818 9819 osf3*) 9820 if test "$GCC" = yes; then 9821 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9822 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' 9823 else 9824 allow_undefined_flag=' -expect_unresolved \*' 9825 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' 9826 fi 9827 archive_cmds_need_lc='no' 9828 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9829 hardcode_libdir_separator=: 9830 ;; 9831 9832 osf4* | osf5*) # as osf3* with the addition of -msym flag 9833 if test "$GCC" = yes; then 9834 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9835 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' 9836 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9837 else 9838 allow_undefined_flag=' -expect_unresolved \*' 9839 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' 9840 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~ 9841 $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' 9842 9843 # Both c and cxx compiler support -rpath directly 9844 hardcode_libdir_flag_spec='-rpath $libdir' 9845 fi 9846 archive_cmds_need_lc='no' 9847 hardcode_libdir_separator=: 9848 ;; 9849 9850 solaris*) 9851 no_undefined_flag=' -z defs' 9852 if test "$GCC" = yes; then 9853 wlarc='${wl}' 9854 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9855 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9856 $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' 9857 else 9858 case `$CC -V 2>&1` in 9859 *"Compilers 5.0"*) 9860 wlarc='' 9861 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9862 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9863 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9864 ;; 9865 *) 9866 wlarc='${wl}' 9867 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9868 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9869 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9870 ;; 9871 esac 9872 fi 9873 hardcode_libdir_flag_spec='-R$libdir' 9874 hardcode_shlibpath_var=no 9875 case $host_os in 9876 solaris2.[0-5] | solaris2.[0-5].*) ;; 9877 *) 9878 # The compiler driver will combine and reorder linker options, 9879 # but understands `-z linker_flag'. GCC discards it without `$wl', 9880 # but is careful enough not to reorder. 9881 # Supported since Solaris 2.6 (maybe 2.5.1?) 9882 if test "$GCC" = yes; then 9883 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9884 else 9885 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9886 fi 9887 ;; 9888 esac 9889 link_all_deplibs=yes 9890 ;; 9891 9892 sunos4*) 9893 if test "x$host_vendor" = xsequent; then 9894 # Use $CC to link under sequent, because it throws in some extra .o 9895 # files that make .init and .fini sections work. 9896 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9897 else 9898 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9899 fi 9900 hardcode_libdir_flag_spec='-L$libdir' 9901 hardcode_direct=yes 9902 hardcode_minus_L=yes 9903 hardcode_shlibpath_var=no 9904 ;; 9905 9906 sysv4) 9907 case $host_vendor in 9908 sni) 9909 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9910 hardcode_direct=yes # is this really true??? 9911 ;; 9912 siemens) 9913 ## LD is ld it makes a PLAMLIB 9914 ## CC just makes a GrossModule. 9915 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9916 reload_cmds='$CC -r -o $output$reload_objs' 9917 hardcode_direct=no 9918 ;; 9919 motorola) 9920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9921 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9922 ;; 9923 esac 9924 runpath_var='LD_RUN_PATH' 9925 hardcode_shlibpath_var=no 9926 ;; 9927 9928 sysv4.3*) 9929 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9930 hardcode_shlibpath_var=no 9931 export_dynamic_flag_spec='-Bexport' 9932 ;; 9933 9934 sysv4*MP*) 9935 if test -d /usr/nec; then 9936 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9937 hardcode_shlibpath_var=no 9938 runpath_var=LD_RUN_PATH 9939 hardcode_runpath_var=yes 9940 ld_shlibs=yes 9941 fi 9942 ;; 9943 9944 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9945 no_undefined_flag='${wl}-z,text' 9946 archive_cmds_need_lc=no 9947 hardcode_shlibpath_var=no 9948 runpath_var='LD_RUN_PATH' 9949 9950 if test "$GCC" = yes; then 9951 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9952 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9953 else 9954 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9955 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9956 fi 9957 ;; 9958 9959 sysv5* | sco3.2v5* | sco5v6*) 9960 # Note: We can NOT use -z defs as we might desire, because we do not 9961 # link with -lc, and that would cause any symbols used from libc to 9962 # always be unresolved, which means just about no library would 9963 # ever link correctly. If we're not using GNU ld we use -z text 9964 # though, which does catch some bad symbols but isn't as heavy-handed 9965 # as -z defs. 9966 no_undefined_flag='${wl}-z,text' 9967 allow_undefined_flag='${wl}-z,nodefs' 9968 archive_cmds_need_lc=no 9969 hardcode_shlibpath_var=no 9970 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9971 hardcode_libdir_separator=':' 9972 link_all_deplibs=yes 9973 export_dynamic_flag_spec='${wl}-Bexport' 9974 runpath_var='LD_RUN_PATH' 9975 9976 if test "$GCC" = yes; then 9977 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9978 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9979 else 9980 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9981 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9982 fi 9983 ;; 9984 9985 uts4*) 9986 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9987 hardcode_libdir_flag_spec='-L$libdir' 9988 hardcode_shlibpath_var=no 9989 ;; 9990 9991 *) 9992 ld_shlibs=no 9993 ;; 9994 esac 9995 9996 if test x$host_vendor = xsni; then 9997 case $host in 9998 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9999 export_dynamic_flag_spec='${wl}-Blargedynsym' 10000 ;; 10001 esac 10002 fi 10003 fi 10004 10005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10006$as_echo "$ld_shlibs" >&6; } 10007test "$ld_shlibs" = no && can_build_shared=no 10008 10009with_gnu_ld=$with_gnu_ld 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025# 10026# Do we need to explicitly link libc? 10027# 10028case "x$archive_cmds_need_lc" in 10029x|xyes) 10030 # Assume -lc should be added 10031 archive_cmds_need_lc=yes 10032 10033 if test "$enable_shared" = yes && test "$GCC" = yes; then 10034 case $archive_cmds in 10035 *'~'*) 10036 # FIXME: we may have to deal with multi-command sequences. 10037 ;; 10038 '$CC '*) 10039 # Test whether the compiler implicitly links with -lc since on some 10040 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10041 # to ld, don't add -lc before -lgcc. 10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10043$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10044if ${lt_cv_archive_cmds_need_lc+:} false; then : 10045 $as_echo_n "(cached) " >&6 10046else 10047 $RM conftest* 10048 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10049 10050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10051 (eval $ac_compile) 2>&5 10052 ac_status=$? 10053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10054 test $ac_status = 0; } 2>conftest.err; then 10055 soname=conftest 10056 lib=conftest 10057 libobjs=conftest.$ac_objext 10058 deplibs= 10059 wl=$lt_prog_compiler_wl 10060 pic_flag=$lt_prog_compiler_pic 10061 compiler_flags=-v 10062 linker_flags=-v 10063 verstring= 10064 output_objdir=. 10065 libname=conftest 10066 lt_save_allow_undefined_flag=$allow_undefined_flag 10067 allow_undefined_flag= 10068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10069 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10070 ac_status=$? 10071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10072 test $ac_status = 0; } 10073 then 10074 lt_cv_archive_cmds_need_lc=no 10075 else 10076 lt_cv_archive_cmds_need_lc=yes 10077 fi 10078 allow_undefined_flag=$lt_save_allow_undefined_flag 10079 else 10080 cat conftest.err 1>&5 10081 fi 10082 $RM conftest* 10083 10084fi 10085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10086$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10087 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10088 ;; 10089 esac 10090 fi 10091 ;; 10092esac 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10246$as_echo_n "checking dynamic linker characteristics... " >&6; } 10247 10248if test "$GCC" = yes; then 10249 case $host_os in 10250 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10251 *) lt_awk_arg="/^libraries:/" ;; 10252 esac 10253 case $host_os in 10254 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10255 *) lt_sed_strip_eq="s,=/,/,g" ;; 10256 esac 10257 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10258 case $lt_search_path_spec in 10259 *\;*) 10260 # if the path contains ";" then we assume it to be the separator 10261 # otherwise default to the standard path separator (i.e. ":") - it is 10262 # assumed that no part of a normal pathname contains ";" but that should 10263 # okay in the real world where ";" in dirpaths is itself problematic. 10264 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10265 ;; 10266 *) 10267 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10268 ;; 10269 esac 10270 # Ok, now we have the path, separated by spaces, we can step through it 10271 # and add multilib dir if necessary. 10272 lt_tmp_lt_search_path_spec= 10273 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10274 for lt_sys_path in $lt_search_path_spec; do 10275 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10276 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10277 else 10278 test -d "$lt_sys_path" && \ 10279 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10280 fi 10281 done 10282 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10283BEGIN {RS=" "; FS="/|\n";} { 10284 lt_foo=""; 10285 lt_count=0; 10286 for (lt_i = NF; lt_i > 0; lt_i--) { 10287 if ($lt_i != "" && $lt_i != ".") { 10288 if ($lt_i == "..") { 10289 lt_count++; 10290 } else { 10291 if (lt_count == 0) { 10292 lt_foo="/" $lt_i lt_foo; 10293 } else { 10294 lt_count--; 10295 } 10296 } 10297 } 10298 } 10299 if (lt_foo != "") { lt_freq[lt_foo]++; } 10300 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10301}'` 10302 # AWK program above erroneously prepends '/' to C:/dos/paths 10303 # for these hosts. 10304 case $host_os in 10305 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10306 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10307 esac 10308 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10309else 10310 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10311fi 10312library_names_spec= 10313libname_spec='lib$name' 10314soname_spec= 10315shrext_cmds=".so" 10316postinstall_cmds= 10317postuninstall_cmds= 10318finish_cmds= 10319finish_eval= 10320shlibpath_var= 10321shlibpath_overrides_runpath=unknown 10322version_type=none 10323dynamic_linker="$host_os ld.so" 10324sys_lib_dlsearch_path_spec="/lib /usr/lib" 10325need_lib_prefix=unknown 10326hardcode_into_libs=no 10327 10328# when you set need_version to no, make sure it does not cause -set_version 10329# flags to be left without arguments 10330need_version=unknown 10331 10332case $host_os in 10333aix3*) 10334 version_type=linux # correct to gnu/linux during the next big refactor 10335 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10336 shlibpath_var=LIBPATH 10337 10338 # AIX 3 has no versioning support, so we append a major version to the name. 10339 soname_spec='${libname}${release}${shared_ext}$major' 10340 ;; 10341 10342aix[4-9]*) 10343 version_type=linux # correct to gnu/linux during the next big refactor 10344 need_lib_prefix=no 10345 need_version=no 10346 hardcode_into_libs=yes 10347 if test "$host_cpu" = ia64; then 10348 # AIX 5 supports IA64 10349 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10350 shlibpath_var=LD_LIBRARY_PATH 10351 else 10352 # With GCC up to 2.95.x, collect2 would create an import file 10353 # for dependence libraries. The import file would start with 10354 # the line `#! .'. This would cause the generated library to 10355 # depend on `.', always an invalid library. This was fixed in 10356 # development snapshots of GCC prior to 3.0. 10357 case $host_os in 10358 aix4 | aix4.[01] | aix4.[01].*) 10359 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10360 echo ' yes ' 10361 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10362 : 10363 else 10364 can_build_shared=no 10365 fi 10366 ;; 10367 esac 10368 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10369 # soname into executable. Probably we can add versioning support to 10370 # collect2, so additional links can be useful in future. 10371 if test "$aix_use_runtimelinking" = yes; then 10372 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10373 # instead of lib<name>.a to let people know that these are not 10374 # typical AIX shared libraries. 10375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10376 else 10377 # We preserve .a as extension for shared libraries through AIX4.2 10378 # and later when we are not doing run time linking. 10379 library_names_spec='${libname}${release}.a $libname.a' 10380 soname_spec='${libname}${release}${shared_ext}$major' 10381 fi 10382 shlibpath_var=LIBPATH 10383 fi 10384 ;; 10385 10386amigaos*) 10387 case $host_cpu in 10388 powerpc) 10389 # Since July 2007 AmigaOS4 officially supports .so libraries. 10390 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10392 ;; 10393 m68k) 10394 library_names_spec='$libname.ixlibrary $libname.a' 10395 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10396 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10397 ;; 10398 esac 10399 ;; 10400 10401beos*) 10402 library_names_spec='${libname}${shared_ext}' 10403 dynamic_linker="$host_os ld.so" 10404 shlibpath_var=LIBRARY_PATH 10405 ;; 10406 10407bsdi[45]*) 10408 version_type=linux # correct to gnu/linux during the next big refactor 10409 need_version=no 10410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10411 soname_spec='${libname}${release}${shared_ext}$major' 10412 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10413 shlibpath_var=LD_LIBRARY_PATH 10414 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10415 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10416 # the default ld.so.conf also contains /usr/contrib/lib and 10417 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10418 # libtool to hard-code these into programs 10419 ;; 10420 10421cygwin* | mingw* | pw32* | cegcc*) 10422 version_type=windows 10423 shrext_cmds=".dll" 10424 need_version=no 10425 need_lib_prefix=no 10426 10427 case $GCC,$cc_basename in 10428 yes,*) 10429 # gcc 10430 library_names_spec='$libname.dll.a' 10431 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10432 postinstall_cmds='base_file=`basename \${file}`~ 10433 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10434 dldir=$destdir/`dirname \$dlpath`~ 10435 test -d \$dldir || mkdir -p \$dldir~ 10436 $install_prog $dir/$dlname \$dldir/$dlname~ 10437 chmod a+x \$dldir/$dlname~ 10438 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10439 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10440 fi' 10441 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10442 dlpath=$dir/\$dldll~ 10443 $RM \$dlpath' 10444 shlibpath_overrides_runpath=yes 10445 10446 case $host_os in 10447 cygwin*) 10448 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10449 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10450 10451 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10452 ;; 10453 mingw* | cegcc*) 10454 # MinGW DLLs use traditional 'lib' prefix 10455 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10456 ;; 10457 pw32*) 10458 # pw32 DLLs use 'pw' prefix rather than 'lib' 10459 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10460 ;; 10461 esac 10462 dynamic_linker='Win32 ld.exe' 10463 ;; 10464 10465 *,cl*) 10466 # Native MSVC 10467 libname_spec='$name' 10468 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10469 library_names_spec='${libname}.dll.lib' 10470 10471 case $build_os in 10472 mingw*) 10473 sys_lib_search_path_spec= 10474 lt_save_ifs=$IFS 10475 IFS=';' 10476 for lt_path in $LIB 10477 do 10478 IFS=$lt_save_ifs 10479 # Let DOS variable expansion print the short 8.3 style file name. 10480 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10481 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10482 done 10483 IFS=$lt_save_ifs 10484 # Convert to MSYS style. 10485 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10486 ;; 10487 cygwin*) 10488 # Convert to unix form, then to dos form, then back to unix form 10489 # but this time dos style (no spaces!) so that the unix form looks 10490 # like /cygdrive/c/PROGRA~1:/cygdr... 10491 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10492 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10493 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10494 ;; 10495 *) 10496 sys_lib_search_path_spec="$LIB" 10497 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10498 # It is most probably a Windows format PATH. 10499 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10500 else 10501 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10502 fi 10503 # FIXME: find the short name or the path components, as spaces are 10504 # common. (e.g. "Program Files" -> "PROGRA~1") 10505 ;; 10506 esac 10507 10508 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10509 postinstall_cmds='base_file=`basename \${file}`~ 10510 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10511 dldir=$destdir/`dirname \$dlpath`~ 10512 test -d \$dldir || mkdir -p \$dldir~ 10513 $install_prog $dir/$dlname \$dldir/$dlname' 10514 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10515 dlpath=$dir/\$dldll~ 10516 $RM \$dlpath' 10517 shlibpath_overrides_runpath=yes 10518 dynamic_linker='Win32 link.exe' 10519 ;; 10520 10521 *) 10522 # Assume MSVC wrapper 10523 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10524 dynamic_linker='Win32 ld.exe' 10525 ;; 10526 esac 10527 # FIXME: first we should search . and the directory the executable is in 10528 shlibpath_var=PATH 10529 ;; 10530 10531darwin* | rhapsody*) 10532 dynamic_linker="$host_os dyld" 10533 version_type=darwin 10534 need_lib_prefix=no 10535 need_version=no 10536 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10537 soname_spec='${libname}${release}${major}$shared_ext' 10538 shlibpath_overrides_runpath=yes 10539 shlibpath_var=DYLD_LIBRARY_PATH 10540 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10541 10542 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10543 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10544 ;; 10545 10546dgux*) 10547 version_type=linux # correct to gnu/linux during the next big refactor 10548 need_lib_prefix=no 10549 need_version=no 10550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10551 soname_spec='${libname}${release}${shared_ext}$major' 10552 shlibpath_var=LD_LIBRARY_PATH 10553 ;; 10554 10555freebsd* | dragonfly*) 10556 # DragonFly does not have aout. When/if they implement a new 10557 # versioning mechanism, adjust this. 10558 if test -x /usr/bin/objformat; then 10559 objformat=`/usr/bin/objformat` 10560 else 10561 case $host_os in 10562 freebsd[23].*) objformat=aout ;; 10563 *) objformat=elf ;; 10564 esac 10565 fi 10566 version_type=freebsd-$objformat 10567 case $version_type in 10568 freebsd-elf*) 10569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10570 need_version=no 10571 need_lib_prefix=no 10572 ;; 10573 freebsd-*) 10574 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10575 need_version=yes 10576 ;; 10577 esac 10578 shlibpath_var=LD_LIBRARY_PATH 10579 case $host_os in 10580 freebsd2.*) 10581 shlibpath_overrides_runpath=yes 10582 ;; 10583 freebsd3.[01]* | freebsdelf3.[01]*) 10584 shlibpath_overrides_runpath=yes 10585 hardcode_into_libs=yes 10586 ;; 10587 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10588 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10589 shlibpath_overrides_runpath=no 10590 hardcode_into_libs=yes 10591 ;; 10592 *) # from 4.6 on, and DragonFly 10593 shlibpath_overrides_runpath=yes 10594 hardcode_into_libs=yes 10595 ;; 10596 esac 10597 ;; 10598 10599haiku*) 10600 version_type=linux # correct to gnu/linux during the next big refactor 10601 need_lib_prefix=no 10602 need_version=no 10603 dynamic_linker="$host_os runtime_loader" 10604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10605 soname_spec='${libname}${release}${shared_ext}$major' 10606 shlibpath_var=LIBRARY_PATH 10607 shlibpath_overrides_runpath=yes 10608 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10609 hardcode_into_libs=yes 10610 ;; 10611 10612hpux9* | hpux10* | hpux11*) 10613 # Give a soname corresponding to the major version so that dld.sl refuses to 10614 # link against other versions. 10615 version_type=sunos 10616 need_lib_prefix=no 10617 need_version=no 10618 case $host_cpu in 10619 ia64*) 10620 shrext_cmds='.so' 10621 hardcode_into_libs=yes 10622 dynamic_linker="$host_os dld.so" 10623 shlibpath_var=LD_LIBRARY_PATH 10624 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10626 soname_spec='${libname}${release}${shared_ext}$major' 10627 if test "X$HPUX_IA64_MODE" = X32; then 10628 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10629 else 10630 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10631 fi 10632 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10633 ;; 10634 hppa*64*) 10635 shrext_cmds='.sl' 10636 hardcode_into_libs=yes 10637 dynamic_linker="$host_os dld.sl" 10638 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10639 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10641 soname_spec='${libname}${release}${shared_ext}$major' 10642 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10643 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10644 ;; 10645 *) 10646 shrext_cmds='.sl' 10647 dynamic_linker="$host_os dld.sl" 10648 shlibpath_var=SHLIB_PATH 10649 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10651 soname_spec='${libname}${release}${shared_ext}$major' 10652 ;; 10653 esac 10654 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10655 postinstall_cmds='chmod 555 $lib' 10656 # or fails outright, so override atomically: 10657 install_override_mode=555 10658 ;; 10659 10660interix[3-9]*) 10661 version_type=linux # correct to gnu/linux during the next big refactor 10662 need_lib_prefix=no 10663 need_version=no 10664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10665 soname_spec='${libname}${release}${shared_ext}$major' 10666 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10667 shlibpath_var=LD_LIBRARY_PATH 10668 shlibpath_overrides_runpath=no 10669 hardcode_into_libs=yes 10670 ;; 10671 10672irix5* | irix6* | nonstopux*) 10673 case $host_os in 10674 nonstopux*) version_type=nonstopux ;; 10675 *) 10676 if test "$lt_cv_prog_gnu_ld" = yes; then 10677 version_type=linux # correct to gnu/linux during the next big refactor 10678 else 10679 version_type=irix 10680 fi ;; 10681 esac 10682 need_lib_prefix=no 10683 need_version=no 10684 soname_spec='${libname}${release}${shared_ext}$major' 10685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10686 case $host_os in 10687 irix5* | nonstopux*) 10688 libsuff= shlibsuff= 10689 ;; 10690 *) 10691 case $LD in # libtool.m4 will add one of these switches to LD 10692 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10693 libsuff= shlibsuff= libmagic=32-bit;; 10694 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10695 libsuff=32 shlibsuff=N32 libmagic=N32;; 10696 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10697 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10698 *) libsuff= shlibsuff= libmagic=never-match;; 10699 esac 10700 ;; 10701 esac 10702 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10703 shlibpath_overrides_runpath=no 10704 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10705 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10706 hardcode_into_libs=yes 10707 ;; 10708 10709# No shared lib support for Linux oldld, aout, or coff. 10710linux*oldld* | linux*aout* | linux*coff*) 10711 dynamic_linker=no 10712 ;; 10713 10714# This must be glibc/ELF. 10715linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10716 version_type=linux # correct to gnu/linux during the next big refactor 10717 need_lib_prefix=no 10718 need_version=no 10719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10720 soname_spec='${libname}${release}${shared_ext}$major' 10721 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10722 shlibpath_var=LD_LIBRARY_PATH 10723 shlibpath_overrides_runpath=no 10724 10725 # Some binutils ld are patched to set DT_RUNPATH 10726 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10727 $as_echo_n "(cached) " >&6 10728else 10729 lt_cv_shlibpath_overrides_runpath=no 10730 save_LDFLAGS=$LDFLAGS 10731 save_libdir=$libdir 10732 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10733 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10735/* end confdefs.h. */ 10736 10737int 10738main () 10739{ 10740 10741 ; 10742 return 0; 10743} 10744_ACEOF 10745if ac_fn_c_try_link "$LINENO"; then : 10746 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10747 lt_cv_shlibpath_overrides_runpath=yes 10748fi 10749fi 10750rm -f core conftest.err conftest.$ac_objext \ 10751 conftest$ac_exeext conftest.$ac_ext 10752 LDFLAGS=$save_LDFLAGS 10753 libdir=$save_libdir 10754 10755fi 10756 10757 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10758 10759 # This implies no fast_install, which is unacceptable. 10760 # Some rework will be needed to allow for fast_install 10761 # before this can be enabled. 10762 hardcode_into_libs=yes 10763 10764 # Append ld.so.conf contents to the search path 10765 if test -f /etc/ld.so.conf; then 10766 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' ' '` 10767 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10768 fi 10769 10770 # We used to test for /lib/ld.so.1 and disable shared libraries on 10771 # powerpc, because MkLinux only supported shared libraries with the 10772 # GNU dynamic linker. Since this was broken with cross compilers, 10773 # most powerpc-linux boxes support dynamic linking these days and 10774 # people can always --disable-shared, the test was removed, and we 10775 # assume the GNU/Linux dynamic linker is in use. 10776 dynamic_linker='GNU/Linux ld.so' 10777 ;; 10778 10779netbsdelf*-gnu) 10780 version_type=linux 10781 need_lib_prefix=no 10782 need_version=no 10783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10784 soname_spec='${libname}${release}${shared_ext}$major' 10785 shlibpath_var=LD_LIBRARY_PATH 10786 shlibpath_overrides_runpath=no 10787 hardcode_into_libs=yes 10788 dynamic_linker='NetBSD ld.elf_so' 10789 ;; 10790 10791netbsd*) 10792 version_type=sunos 10793 need_lib_prefix=no 10794 need_version=no 10795 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10797 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10798 dynamic_linker='NetBSD (a.out) ld.so' 10799 else 10800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10801 soname_spec='${libname}${release}${shared_ext}$major' 10802 dynamic_linker='NetBSD ld.elf_so' 10803 fi 10804 shlibpath_var=LD_LIBRARY_PATH 10805 shlibpath_overrides_runpath=yes 10806 hardcode_into_libs=yes 10807 ;; 10808 10809newsos6) 10810 version_type=linux # correct to gnu/linux during the next big refactor 10811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10812 shlibpath_var=LD_LIBRARY_PATH 10813 shlibpath_overrides_runpath=yes 10814 ;; 10815 10816*nto* | *qnx*) 10817 version_type=qnx 10818 need_lib_prefix=no 10819 need_version=no 10820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10821 soname_spec='${libname}${release}${shared_ext}$major' 10822 shlibpath_var=LD_LIBRARY_PATH 10823 shlibpath_overrides_runpath=no 10824 hardcode_into_libs=yes 10825 dynamic_linker='ldqnx.so' 10826 ;; 10827 10828openbsd*) 10829 version_type=sunos 10830 sys_lib_dlsearch_path_spec="/usr/lib" 10831 need_lib_prefix=no 10832 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10833 case $host_os in 10834 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10835 *) need_version=no ;; 10836 esac 10837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10838 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10839 shlibpath_var=LD_LIBRARY_PATH 10840 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10841 case $host_os in 10842 openbsd2.[89] | openbsd2.[89].*) 10843 shlibpath_overrides_runpath=no 10844 ;; 10845 *) 10846 shlibpath_overrides_runpath=yes 10847 ;; 10848 esac 10849 else 10850 shlibpath_overrides_runpath=yes 10851 fi 10852 ;; 10853 10854os2*) 10855 libname_spec='$name' 10856 shrext_cmds=".dll" 10857 need_lib_prefix=no 10858 library_names_spec='$libname${shared_ext} $libname.a' 10859 dynamic_linker='OS/2 ld.exe' 10860 shlibpath_var=LIBPATH 10861 ;; 10862 10863osf3* | osf4* | osf5*) 10864 version_type=osf 10865 need_lib_prefix=no 10866 need_version=no 10867 soname_spec='${libname}${release}${shared_ext}$major' 10868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10869 shlibpath_var=LD_LIBRARY_PATH 10870 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10871 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10872 ;; 10873 10874rdos*) 10875 dynamic_linker=no 10876 ;; 10877 10878solaris*) 10879 version_type=linux # correct to gnu/linux during the next big refactor 10880 need_lib_prefix=no 10881 need_version=no 10882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10883 soname_spec='${libname}${release}${shared_ext}$major' 10884 shlibpath_var=LD_LIBRARY_PATH 10885 shlibpath_overrides_runpath=yes 10886 hardcode_into_libs=yes 10887 # ldd complains unless libraries are executable 10888 postinstall_cmds='chmod +x $lib' 10889 ;; 10890 10891sunos4*) 10892 version_type=sunos 10893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10894 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10895 shlibpath_var=LD_LIBRARY_PATH 10896 shlibpath_overrides_runpath=yes 10897 if test "$with_gnu_ld" = yes; then 10898 need_lib_prefix=no 10899 fi 10900 need_version=yes 10901 ;; 10902 10903sysv4 | sysv4.3*) 10904 version_type=linux # correct to gnu/linux during the next big refactor 10905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10906 soname_spec='${libname}${release}${shared_ext}$major' 10907 shlibpath_var=LD_LIBRARY_PATH 10908 case $host_vendor in 10909 sni) 10910 shlibpath_overrides_runpath=no 10911 need_lib_prefix=no 10912 runpath_var=LD_RUN_PATH 10913 ;; 10914 siemens) 10915 need_lib_prefix=no 10916 ;; 10917 motorola) 10918 need_lib_prefix=no 10919 need_version=no 10920 shlibpath_overrides_runpath=no 10921 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10922 ;; 10923 esac 10924 ;; 10925 10926sysv4*MP*) 10927 if test -d /usr/nec ;then 10928 version_type=linux # correct to gnu/linux during the next big refactor 10929 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10930 soname_spec='$libname${shared_ext}.$major' 10931 shlibpath_var=LD_LIBRARY_PATH 10932 fi 10933 ;; 10934 10935sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10936 version_type=freebsd-elf 10937 need_lib_prefix=no 10938 need_version=no 10939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10940 soname_spec='${libname}${release}${shared_ext}$major' 10941 shlibpath_var=LD_LIBRARY_PATH 10942 shlibpath_overrides_runpath=yes 10943 hardcode_into_libs=yes 10944 if test "$with_gnu_ld" = yes; then 10945 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10946 else 10947 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10948 case $host_os in 10949 sco3.2v5*) 10950 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10951 ;; 10952 esac 10953 fi 10954 sys_lib_dlsearch_path_spec='/usr/lib' 10955 ;; 10956 10957tpf*) 10958 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10959 version_type=linux # correct to gnu/linux during the next big refactor 10960 need_lib_prefix=no 10961 need_version=no 10962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10963 shlibpath_var=LD_LIBRARY_PATH 10964 shlibpath_overrides_runpath=no 10965 hardcode_into_libs=yes 10966 ;; 10967 10968uts4*) 10969 version_type=linux # correct to gnu/linux during the next big refactor 10970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10971 soname_spec='${libname}${release}${shared_ext}$major' 10972 shlibpath_var=LD_LIBRARY_PATH 10973 ;; 10974 10975*) 10976 dynamic_linker=no 10977 ;; 10978esac 10979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10980$as_echo "$dynamic_linker" >&6; } 10981test "$dynamic_linker" = no && can_build_shared=no 10982 10983variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10984if test "$GCC" = yes; then 10985 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10986fi 10987 10988if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10989 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10990fi 10991if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10992 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10993fi 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11087$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11088hardcode_action= 11089if test -n "$hardcode_libdir_flag_spec" || 11090 test -n "$runpath_var" || 11091 test "X$hardcode_automatic" = "Xyes" ; then 11092 11093 # We can hardcode non-existent directories. 11094 if test "$hardcode_direct" != no && 11095 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11096 # have to relink, otherwise we might link with an installed library 11097 # when we should be linking with a yet-to-be-installed one 11098 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11099 test "$hardcode_minus_L" != no; then 11100 # Linking always hardcodes the temporary library directory. 11101 hardcode_action=relink 11102 else 11103 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11104 hardcode_action=immediate 11105 fi 11106else 11107 # We cannot hardcode anything, or else we can only hardcode existing 11108 # directories. 11109 hardcode_action=unsupported 11110fi 11111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11112$as_echo "$hardcode_action" >&6; } 11113 11114if test "$hardcode_action" = relink || 11115 test "$inherit_rpath" = yes; then 11116 # Fast installation is not supported 11117 enable_fast_install=no 11118elif test "$shlibpath_overrides_runpath" = yes || 11119 test "$enable_shared" = no; then 11120 # Fast installation is not necessary 11121 enable_fast_install=needless 11122fi 11123 11124 11125 11126 11127 11128 11129 if test "x$enable_dlopen" != xyes; then 11130 enable_dlopen=unknown 11131 enable_dlopen_self=unknown 11132 enable_dlopen_self_static=unknown 11133else 11134 lt_cv_dlopen=no 11135 lt_cv_dlopen_libs= 11136 11137 case $host_os in 11138 beos*) 11139 lt_cv_dlopen="load_add_on" 11140 lt_cv_dlopen_libs= 11141 lt_cv_dlopen_self=yes 11142 ;; 11143 11144 mingw* | pw32* | cegcc*) 11145 lt_cv_dlopen="LoadLibrary" 11146 lt_cv_dlopen_libs= 11147 ;; 11148 11149 cygwin*) 11150 lt_cv_dlopen="dlopen" 11151 lt_cv_dlopen_libs= 11152 ;; 11153 11154 darwin*) 11155 # if libdl is installed we need to link against it 11156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11157$as_echo_n "checking for dlopen in -ldl... " >&6; } 11158if ${ac_cv_lib_dl_dlopen+:} false; then : 11159 $as_echo_n "(cached) " >&6 11160else 11161 ac_check_lib_save_LIBS=$LIBS 11162LIBS="-ldl $LIBS" 11163cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11164/* end confdefs.h. */ 11165 11166/* Override any GCC internal prototype to avoid an error. 11167 Use char because int might match the return type of a GCC 11168 builtin and then its argument prototype would still apply. */ 11169#ifdef __cplusplus 11170extern "C" 11171#endif 11172char dlopen (); 11173int 11174main () 11175{ 11176return dlopen (); 11177 ; 11178 return 0; 11179} 11180_ACEOF 11181if ac_fn_c_try_link "$LINENO"; then : 11182 ac_cv_lib_dl_dlopen=yes 11183else 11184 ac_cv_lib_dl_dlopen=no 11185fi 11186rm -f core conftest.err conftest.$ac_objext \ 11187 conftest$ac_exeext conftest.$ac_ext 11188LIBS=$ac_check_lib_save_LIBS 11189fi 11190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11191$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11192if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11193 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11194else 11195 11196 lt_cv_dlopen="dyld" 11197 lt_cv_dlopen_libs= 11198 lt_cv_dlopen_self=yes 11199 11200fi 11201 11202 ;; 11203 11204 *) 11205 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11206if test "x$ac_cv_func_shl_load" = xyes; then : 11207 lt_cv_dlopen="shl_load" 11208else 11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11210$as_echo_n "checking for shl_load in -ldld... " >&6; } 11211if ${ac_cv_lib_dld_shl_load+:} false; then : 11212 $as_echo_n "(cached) " >&6 11213else 11214 ac_check_lib_save_LIBS=$LIBS 11215LIBS="-ldld $LIBS" 11216cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11217/* end confdefs.h. */ 11218 11219/* Override any GCC internal prototype to avoid an error. 11220 Use char because int might match the return type of a GCC 11221 builtin and then its argument prototype would still apply. */ 11222#ifdef __cplusplus 11223extern "C" 11224#endif 11225char shl_load (); 11226int 11227main () 11228{ 11229return shl_load (); 11230 ; 11231 return 0; 11232} 11233_ACEOF 11234if ac_fn_c_try_link "$LINENO"; then : 11235 ac_cv_lib_dld_shl_load=yes 11236else 11237 ac_cv_lib_dld_shl_load=no 11238fi 11239rm -f core conftest.err conftest.$ac_objext \ 11240 conftest$ac_exeext conftest.$ac_ext 11241LIBS=$ac_check_lib_save_LIBS 11242fi 11243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11244$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11245if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11246 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11247else 11248 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11249if test "x$ac_cv_func_dlopen" = xyes; then : 11250 lt_cv_dlopen="dlopen" 11251else 11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11253$as_echo_n "checking for dlopen in -ldl... " >&6; } 11254if ${ac_cv_lib_dl_dlopen+:} false; then : 11255 $as_echo_n "(cached) " >&6 11256else 11257 ac_check_lib_save_LIBS=$LIBS 11258LIBS="-ldl $LIBS" 11259cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11260/* end confdefs.h. */ 11261 11262/* Override any GCC internal prototype to avoid an error. 11263 Use char because int might match the return type of a GCC 11264 builtin and then its argument prototype would still apply. */ 11265#ifdef __cplusplus 11266extern "C" 11267#endif 11268char dlopen (); 11269int 11270main () 11271{ 11272return dlopen (); 11273 ; 11274 return 0; 11275} 11276_ACEOF 11277if ac_fn_c_try_link "$LINENO"; then : 11278 ac_cv_lib_dl_dlopen=yes 11279else 11280 ac_cv_lib_dl_dlopen=no 11281fi 11282rm -f core conftest.err conftest.$ac_objext \ 11283 conftest$ac_exeext conftest.$ac_ext 11284LIBS=$ac_check_lib_save_LIBS 11285fi 11286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11287$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11288if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11289 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11290else 11291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11292$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11293if ${ac_cv_lib_svld_dlopen+:} false; then : 11294 $as_echo_n "(cached) " >&6 11295else 11296 ac_check_lib_save_LIBS=$LIBS 11297LIBS="-lsvld $LIBS" 11298cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11299/* end confdefs.h. */ 11300 11301/* Override any GCC internal prototype to avoid an error. 11302 Use char because int might match the return type of a GCC 11303 builtin and then its argument prototype would still apply. */ 11304#ifdef __cplusplus 11305extern "C" 11306#endif 11307char dlopen (); 11308int 11309main () 11310{ 11311return dlopen (); 11312 ; 11313 return 0; 11314} 11315_ACEOF 11316if ac_fn_c_try_link "$LINENO"; then : 11317 ac_cv_lib_svld_dlopen=yes 11318else 11319 ac_cv_lib_svld_dlopen=no 11320fi 11321rm -f core conftest.err conftest.$ac_objext \ 11322 conftest$ac_exeext conftest.$ac_ext 11323LIBS=$ac_check_lib_save_LIBS 11324fi 11325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11326$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11327if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11328 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11329else 11330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11331$as_echo_n "checking for dld_link in -ldld... " >&6; } 11332if ${ac_cv_lib_dld_dld_link+:} false; then : 11333 $as_echo_n "(cached) " >&6 11334else 11335 ac_check_lib_save_LIBS=$LIBS 11336LIBS="-ldld $LIBS" 11337cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11338/* end confdefs.h. */ 11339 11340/* Override any GCC internal prototype to avoid an error. 11341 Use char because int might match the return type of a GCC 11342 builtin and then its argument prototype would still apply. */ 11343#ifdef __cplusplus 11344extern "C" 11345#endif 11346char dld_link (); 11347int 11348main () 11349{ 11350return dld_link (); 11351 ; 11352 return 0; 11353} 11354_ACEOF 11355if ac_fn_c_try_link "$LINENO"; then : 11356 ac_cv_lib_dld_dld_link=yes 11357else 11358 ac_cv_lib_dld_dld_link=no 11359fi 11360rm -f core conftest.err conftest.$ac_objext \ 11361 conftest$ac_exeext conftest.$ac_ext 11362LIBS=$ac_check_lib_save_LIBS 11363fi 11364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11365$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11366if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11367 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11368fi 11369 11370 11371fi 11372 11373 11374fi 11375 11376 11377fi 11378 11379 11380fi 11381 11382 11383fi 11384 11385 ;; 11386 esac 11387 11388 if test "x$lt_cv_dlopen" != xno; then 11389 enable_dlopen=yes 11390 else 11391 enable_dlopen=no 11392 fi 11393 11394 case $lt_cv_dlopen in 11395 dlopen) 11396 save_CPPFLAGS="$CPPFLAGS" 11397 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11398 11399 save_LDFLAGS="$LDFLAGS" 11400 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11401 11402 save_LIBS="$LIBS" 11403 LIBS="$lt_cv_dlopen_libs $LIBS" 11404 11405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11406$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11407if ${lt_cv_dlopen_self+:} false; then : 11408 $as_echo_n "(cached) " >&6 11409else 11410 if test "$cross_compiling" = yes; then : 11411 lt_cv_dlopen_self=cross 11412else 11413 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11414 lt_status=$lt_dlunknown 11415 cat > conftest.$ac_ext <<_LT_EOF 11416#line $LINENO "configure" 11417#include "confdefs.h" 11418 11419#if HAVE_DLFCN_H 11420#include <dlfcn.h> 11421#endif 11422 11423#include <stdio.h> 11424 11425#ifdef RTLD_GLOBAL 11426# define LT_DLGLOBAL RTLD_GLOBAL 11427#else 11428# ifdef DL_GLOBAL 11429# define LT_DLGLOBAL DL_GLOBAL 11430# else 11431# define LT_DLGLOBAL 0 11432# endif 11433#endif 11434 11435/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11436 find out it does not work in some platform. */ 11437#ifndef LT_DLLAZY_OR_NOW 11438# ifdef RTLD_LAZY 11439# define LT_DLLAZY_OR_NOW RTLD_LAZY 11440# else 11441# ifdef DL_LAZY 11442# define LT_DLLAZY_OR_NOW DL_LAZY 11443# else 11444# ifdef RTLD_NOW 11445# define LT_DLLAZY_OR_NOW RTLD_NOW 11446# else 11447# ifdef DL_NOW 11448# define LT_DLLAZY_OR_NOW DL_NOW 11449# else 11450# define LT_DLLAZY_OR_NOW 0 11451# endif 11452# endif 11453# endif 11454# endif 11455#endif 11456 11457/* When -fvisbility=hidden is used, assume the code has been annotated 11458 correspondingly for the symbols needed. */ 11459#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11460int fnord () __attribute__((visibility("default"))); 11461#endif 11462 11463int fnord () { return 42; } 11464int main () 11465{ 11466 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11467 int status = $lt_dlunknown; 11468 11469 if (self) 11470 { 11471 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11472 else 11473 { 11474 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11475 else puts (dlerror ()); 11476 } 11477 /* dlclose (self); */ 11478 } 11479 else 11480 puts (dlerror ()); 11481 11482 return status; 11483} 11484_LT_EOF 11485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11486 (eval $ac_link) 2>&5 11487 ac_status=$? 11488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11489 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11490 (./conftest; exit; ) >&5 2>/dev/null 11491 lt_status=$? 11492 case x$lt_status in 11493 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11494 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11495 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11496 esac 11497 else : 11498 # compilation failed 11499 lt_cv_dlopen_self=no 11500 fi 11501fi 11502rm -fr conftest* 11503 11504 11505fi 11506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11507$as_echo "$lt_cv_dlopen_self" >&6; } 11508 11509 if test "x$lt_cv_dlopen_self" = xyes; then 11510 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11512$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11513if ${lt_cv_dlopen_self_static+:} false; then : 11514 $as_echo_n "(cached) " >&6 11515else 11516 if test "$cross_compiling" = yes; then : 11517 lt_cv_dlopen_self_static=cross 11518else 11519 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11520 lt_status=$lt_dlunknown 11521 cat > conftest.$ac_ext <<_LT_EOF 11522#line $LINENO "configure" 11523#include "confdefs.h" 11524 11525#if HAVE_DLFCN_H 11526#include <dlfcn.h> 11527#endif 11528 11529#include <stdio.h> 11530 11531#ifdef RTLD_GLOBAL 11532# define LT_DLGLOBAL RTLD_GLOBAL 11533#else 11534# ifdef DL_GLOBAL 11535# define LT_DLGLOBAL DL_GLOBAL 11536# else 11537# define LT_DLGLOBAL 0 11538# endif 11539#endif 11540 11541/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11542 find out it does not work in some platform. */ 11543#ifndef LT_DLLAZY_OR_NOW 11544# ifdef RTLD_LAZY 11545# define LT_DLLAZY_OR_NOW RTLD_LAZY 11546# else 11547# ifdef DL_LAZY 11548# define LT_DLLAZY_OR_NOW DL_LAZY 11549# else 11550# ifdef RTLD_NOW 11551# define LT_DLLAZY_OR_NOW RTLD_NOW 11552# else 11553# ifdef DL_NOW 11554# define LT_DLLAZY_OR_NOW DL_NOW 11555# else 11556# define LT_DLLAZY_OR_NOW 0 11557# endif 11558# endif 11559# endif 11560# endif 11561#endif 11562 11563/* When -fvisbility=hidden is used, assume the code has been annotated 11564 correspondingly for the symbols needed. */ 11565#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11566int fnord () __attribute__((visibility("default"))); 11567#endif 11568 11569int fnord () { return 42; } 11570int main () 11571{ 11572 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11573 int status = $lt_dlunknown; 11574 11575 if (self) 11576 { 11577 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11578 else 11579 { 11580 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11581 else puts (dlerror ()); 11582 } 11583 /* dlclose (self); */ 11584 } 11585 else 11586 puts (dlerror ()); 11587 11588 return status; 11589} 11590_LT_EOF 11591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11592 (eval $ac_link) 2>&5 11593 ac_status=$? 11594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11595 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11596 (./conftest; exit; ) >&5 2>/dev/null 11597 lt_status=$? 11598 case x$lt_status in 11599 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11600 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11601 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11602 esac 11603 else : 11604 # compilation failed 11605 lt_cv_dlopen_self_static=no 11606 fi 11607fi 11608rm -fr conftest* 11609 11610 11611fi 11612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11613$as_echo "$lt_cv_dlopen_self_static" >&6; } 11614 fi 11615 11616 CPPFLAGS="$save_CPPFLAGS" 11617 LDFLAGS="$save_LDFLAGS" 11618 LIBS="$save_LIBS" 11619 ;; 11620 esac 11621 11622 case $lt_cv_dlopen_self in 11623 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11624 *) enable_dlopen_self=unknown ;; 11625 esac 11626 11627 case $lt_cv_dlopen_self_static in 11628 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11629 *) enable_dlopen_self_static=unknown ;; 11630 esac 11631fi 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649striplib= 11650old_striplib= 11651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11652$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11653if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11654 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11655 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11657$as_echo "yes" >&6; } 11658else 11659# FIXME - insert some real tests, host_os isn't really good enough 11660 case $host_os in 11661 darwin*) 11662 if test -n "$STRIP" ; then 11663 striplib="$STRIP -x" 11664 old_striplib="$STRIP -S" 11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11666$as_echo "yes" >&6; } 11667 else 11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11669$as_echo "no" >&6; } 11670 fi 11671 ;; 11672 *) 11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11674$as_echo "no" >&6; } 11675 ;; 11676 esac 11677fi 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 # Report which library types will actually be built 11691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11692$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11694$as_echo "$can_build_shared" >&6; } 11695 11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11697$as_echo_n "checking whether to build shared libraries... " >&6; } 11698 test "$can_build_shared" = "no" && enable_shared=no 11699 11700 # On AIX, shared libraries and static libraries use the same namespace, and 11701 # are all built from PIC. 11702 case $host_os in 11703 aix3*) 11704 test "$enable_shared" = yes && enable_static=no 11705 if test -n "$RANLIB"; then 11706 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11707 postinstall_cmds='$RANLIB $lib' 11708 fi 11709 ;; 11710 11711 aix[4-9]*) 11712 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11713 test "$enable_shared" = yes && enable_static=no 11714 fi 11715 ;; 11716 esac 11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11718$as_echo "$enable_shared" >&6; } 11719 11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11721$as_echo_n "checking whether to build static libraries... " >&6; } 11722 # Make sure either enable_shared or enable_static is yes. 11723 test "$enable_shared" = yes || enable_static=yes 11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11725$as_echo "$enable_static" >&6; } 11726 11727 11728 11729 11730fi 11731ac_ext=c 11732ac_cpp='$CPP $CPPFLAGS' 11733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11735ac_compiler_gnu=$ac_cv_c_compiler_gnu 11736 11737CC="$lt_save_CC" 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 ac_config_commands="$ac_config_commands libtool" 11754 11755 11756 11757 11758# Only expand once: 11759 11760 11761 11762 11763# Checks for programs. 11764ac_ext=c 11765ac_cpp='$CPP $CPPFLAGS' 11766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11768ac_compiler_gnu=$ac_cv_c_compiler_gnu 11769if test -n "$ac_tool_prefix"; then 11770 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 11771set dummy ${ac_tool_prefix}gcc; ac_word=$2 11772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11773$as_echo_n "checking for $ac_word... " >&6; } 11774if ${ac_cv_prog_CC+:} false; then : 11775 $as_echo_n "(cached) " >&6 11776else 11777 if test -n "$CC"; then 11778 ac_cv_prog_CC="$CC" # Let the user override the test. 11779else 11780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11781for as_dir in $PATH 11782do 11783 IFS=$as_save_IFS 11784 test -z "$as_dir" && as_dir=. 11785 for ac_exec_ext in '' $ac_executable_extensions; do 11786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11787 ac_cv_prog_CC="${ac_tool_prefix}gcc" 11788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11789 break 2 11790 fi 11791done 11792 done 11793IFS=$as_save_IFS 11794 11795fi 11796fi 11797CC=$ac_cv_prog_CC 11798if test -n "$CC"; then 11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11800$as_echo "$CC" >&6; } 11801else 11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11803$as_echo "no" >&6; } 11804fi 11805 11806 11807fi 11808if test -z "$ac_cv_prog_CC"; then 11809 ac_ct_CC=$CC 11810 # Extract the first word of "gcc", so it can be a program name with args. 11811set dummy gcc; ac_word=$2 11812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11813$as_echo_n "checking for $ac_word... " >&6; } 11814if ${ac_cv_prog_ac_ct_CC+:} false; then : 11815 $as_echo_n "(cached) " >&6 11816else 11817 if test -n "$ac_ct_CC"; then 11818 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11819else 11820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11821for as_dir in $PATH 11822do 11823 IFS=$as_save_IFS 11824 test -z "$as_dir" && as_dir=. 11825 for ac_exec_ext in '' $ac_executable_extensions; do 11826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11827 ac_cv_prog_ac_ct_CC="gcc" 11828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11829 break 2 11830 fi 11831done 11832 done 11833IFS=$as_save_IFS 11834 11835fi 11836fi 11837ac_ct_CC=$ac_cv_prog_ac_ct_CC 11838if test -n "$ac_ct_CC"; then 11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 11840$as_echo "$ac_ct_CC" >&6; } 11841else 11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11843$as_echo "no" >&6; } 11844fi 11845 11846 if test "x$ac_ct_CC" = x; then 11847 CC="" 11848 else 11849 case $cross_compiling:$ac_tool_warned in 11850yes:) 11851{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11852$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11853ac_tool_warned=yes ;; 11854esac 11855 CC=$ac_ct_CC 11856 fi 11857else 11858 CC="$ac_cv_prog_CC" 11859fi 11860 11861if test -z "$CC"; then 11862 if test -n "$ac_tool_prefix"; then 11863 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 11864set dummy ${ac_tool_prefix}cc; ac_word=$2 11865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11866$as_echo_n "checking for $ac_word... " >&6; } 11867if ${ac_cv_prog_CC+:} false; then : 11868 $as_echo_n "(cached) " >&6 11869else 11870 if test -n "$CC"; then 11871 ac_cv_prog_CC="$CC" # Let the user override the test. 11872else 11873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11874for as_dir in $PATH 11875do 11876 IFS=$as_save_IFS 11877 test -z "$as_dir" && as_dir=. 11878 for ac_exec_ext in '' $ac_executable_extensions; do 11879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11880 ac_cv_prog_CC="${ac_tool_prefix}cc" 11881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11882 break 2 11883 fi 11884done 11885 done 11886IFS=$as_save_IFS 11887 11888fi 11889fi 11890CC=$ac_cv_prog_CC 11891if test -n "$CC"; then 11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11893$as_echo "$CC" >&6; } 11894else 11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11896$as_echo "no" >&6; } 11897fi 11898 11899 11900 fi 11901fi 11902if test -z "$CC"; then 11903 # Extract the first word of "cc", so it can be a program name with args. 11904set dummy cc; ac_word=$2 11905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11906$as_echo_n "checking for $ac_word... " >&6; } 11907if ${ac_cv_prog_CC+:} false; then : 11908 $as_echo_n "(cached) " >&6 11909else 11910 if test -n "$CC"; then 11911 ac_cv_prog_CC="$CC" # Let the user override the test. 11912else 11913 ac_prog_rejected=no 11914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11915for as_dir in $PATH 11916do 11917 IFS=$as_save_IFS 11918 test -z "$as_dir" && as_dir=. 11919 for ac_exec_ext in '' $ac_executable_extensions; do 11920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11921 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 11922 ac_prog_rejected=yes 11923 continue 11924 fi 11925 ac_cv_prog_CC="cc" 11926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11927 break 2 11928 fi 11929done 11930 done 11931IFS=$as_save_IFS 11932 11933if test $ac_prog_rejected = yes; then 11934 # We found a bogon in the path, so make sure we never use it. 11935 set dummy $ac_cv_prog_CC 11936 shift 11937 if test $# != 0; then 11938 # We chose a different compiler from the bogus one. 11939 # However, it has the same basename, so the bogon will be chosen 11940 # first if we set CC to just the basename; use the full file name. 11941 shift 11942 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 11943 fi 11944fi 11945fi 11946fi 11947CC=$ac_cv_prog_CC 11948if test -n "$CC"; then 11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11950$as_echo "$CC" >&6; } 11951else 11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11953$as_echo "no" >&6; } 11954fi 11955 11956 11957fi 11958if test -z "$CC"; then 11959 if test -n "$ac_tool_prefix"; then 11960 for ac_prog in cl.exe 11961 do 11962 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11963set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11965$as_echo_n "checking for $ac_word... " >&6; } 11966if ${ac_cv_prog_CC+:} false; then : 11967 $as_echo_n "(cached) " >&6 11968else 11969 if test -n "$CC"; then 11970 ac_cv_prog_CC="$CC" # Let the user override the test. 11971else 11972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11973for as_dir in $PATH 11974do 11975 IFS=$as_save_IFS 11976 test -z "$as_dir" && as_dir=. 11977 for ac_exec_ext in '' $ac_executable_extensions; do 11978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11979 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 11980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11981 break 2 11982 fi 11983done 11984 done 11985IFS=$as_save_IFS 11986 11987fi 11988fi 11989CC=$ac_cv_prog_CC 11990if test -n "$CC"; then 11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11992$as_echo "$CC" >&6; } 11993else 11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11995$as_echo "no" >&6; } 11996fi 11997 11998 11999 test -n "$CC" && break 12000 done 12001fi 12002if test -z "$CC"; then 12003 ac_ct_CC=$CC 12004 for ac_prog in cl.exe 12005do 12006 # Extract the first word of "$ac_prog", so it can be a program name with args. 12007set dummy $ac_prog; ac_word=$2 12008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12009$as_echo_n "checking for $ac_word... " >&6; } 12010if ${ac_cv_prog_ac_ct_CC+:} false; then : 12011 $as_echo_n "(cached) " >&6 12012else 12013 if test -n "$ac_ct_CC"; then 12014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12015else 12016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12017for as_dir in $PATH 12018do 12019 IFS=$as_save_IFS 12020 test -z "$as_dir" && as_dir=. 12021 for ac_exec_ext in '' $ac_executable_extensions; do 12022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12023 ac_cv_prog_ac_ct_CC="$ac_prog" 12024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12025 break 2 12026 fi 12027done 12028 done 12029IFS=$as_save_IFS 12030 12031fi 12032fi 12033ac_ct_CC=$ac_cv_prog_ac_ct_CC 12034if test -n "$ac_ct_CC"; then 12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12036$as_echo "$ac_ct_CC" >&6; } 12037else 12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12039$as_echo "no" >&6; } 12040fi 12041 12042 12043 test -n "$ac_ct_CC" && break 12044done 12045 12046 if test "x$ac_ct_CC" = x; then 12047 CC="" 12048 else 12049 case $cross_compiling:$ac_tool_warned in 12050yes:) 12051{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12052$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12053ac_tool_warned=yes ;; 12054esac 12055 CC=$ac_ct_CC 12056 fi 12057fi 12058 12059fi 12060 12061 12062test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12063$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12064as_fn_error $? "no acceptable C compiler found in \$PATH 12065See \`config.log' for more details" "$LINENO" 5; } 12066 12067# Provide some information about the compiler. 12068$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 12069set X $ac_compile 12070ac_compiler=$2 12071for ac_option in --version -v -V -qversion; do 12072 { { ac_try="$ac_compiler $ac_option >&5" 12073case "(($ac_try" in 12074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12075 *) ac_try_echo=$ac_try;; 12076esac 12077eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12078$as_echo "$ac_try_echo"; } >&5 12079 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12080 ac_status=$? 12081 if test -s conftest.err; then 12082 sed '10a\ 12083... rest of stderr output deleted ... 12084 10q' conftest.err >conftest.er1 12085 cat conftest.er1 >&5 12086 fi 12087 rm -f conftest.er1 conftest.err 12088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12089 test $ac_status = 0; } 12090done 12091 12092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 12093$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 12094if ${ac_cv_c_compiler_gnu+:} false; then : 12095 $as_echo_n "(cached) " >&6 12096else 12097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12098/* end confdefs.h. */ 12099 12100int 12101main () 12102{ 12103#ifndef __GNUC__ 12104 choke me 12105#endif 12106 12107 ; 12108 return 0; 12109} 12110_ACEOF 12111if ac_fn_c_try_compile "$LINENO"; then : 12112 ac_compiler_gnu=yes 12113else 12114 ac_compiler_gnu=no 12115fi 12116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12117ac_cv_c_compiler_gnu=$ac_compiler_gnu 12118 12119fi 12120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 12121$as_echo "$ac_cv_c_compiler_gnu" >&6; } 12122if test $ac_compiler_gnu = yes; then 12123 GCC=yes 12124else 12125 GCC= 12126fi 12127ac_test_CFLAGS=${CFLAGS+set} 12128ac_save_CFLAGS=$CFLAGS 12129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 12130$as_echo_n "checking whether $CC accepts -g... " >&6; } 12131if ${ac_cv_prog_cc_g+:} false; then : 12132 $as_echo_n "(cached) " >&6 12133else 12134 ac_save_c_werror_flag=$ac_c_werror_flag 12135 ac_c_werror_flag=yes 12136 ac_cv_prog_cc_g=no 12137 CFLAGS="-g" 12138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12139/* end confdefs.h. */ 12140 12141int 12142main () 12143{ 12144 12145 ; 12146 return 0; 12147} 12148_ACEOF 12149if ac_fn_c_try_compile "$LINENO"; then : 12150 ac_cv_prog_cc_g=yes 12151else 12152 CFLAGS="" 12153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12154/* end confdefs.h. */ 12155 12156int 12157main () 12158{ 12159 12160 ; 12161 return 0; 12162} 12163_ACEOF 12164if ac_fn_c_try_compile "$LINENO"; then : 12165 12166else 12167 ac_c_werror_flag=$ac_save_c_werror_flag 12168 CFLAGS="-g" 12169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12170/* end confdefs.h. */ 12171 12172int 12173main () 12174{ 12175 12176 ; 12177 return 0; 12178} 12179_ACEOF 12180if ac_fn_c_try_compile "$LINENO"; then : 12181 ac_cv_prog_cc_g=yes 12182fi 12183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12184fi 12185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12186fi 12187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12188 ac_c_werror_flag=$ac_save_c_werror_flag 12189fi 12190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 12191$as_echo "$ac_cv_prog_cc_g" >&6; } 12192if test "$ac_test_CFLAGS" = set; then 12193 CFLAGS=$ac_save_CFLAGS 12194elif test $ac_cv_prog_cc_g = yes; then 12195 if test "$GCC" = yes; then 12196 CFLAGS="-g -O2" 12197 else 12198 CFLAGS="-g" 12199 fi 12200else 12201 if test "$GCC" = yes; then 12202 CFLAGS="-O2" 12203 else 12204 CFLAGS= 12205 fi 12206fi 12207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 12208$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 12209if ${ac_cv_prog_cc_c89+:} false; then : 12210 $as_echo_n "(cached) " >&6 12211else 12212 ac_cv_prog_cc_c89=no 12213ac_save_CC=$CC 12214cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12215/* end confdefs.h. */ 12216#include <stdarg.h> 12217#include <stdio.h> 12218struct stat; 12219/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 12220struct buf { int x; }; 12221FILE * (*rcsopen) (struct buf *, struct stat *, int); 12222static char *e (p, i) 12223 char **p; 12224 int i; 12225{ 12226 return p[i]; 12227} 12228static char *f (char * (*g) (char **, int), char **p, ...) 12229{ 12230 char *s; 12231 va_list v; 12232 va_start (v,p); 12233 s = g (p, va_arg (v,int)); 12234 va_end (v); 12235 return s; 12236} 12237 12238/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 12239 function prototypes and stuff, but not '\xHH' hex character constants. 12240 These don't provoke an error unfortunately, instead are silently treated 12241 as 'x'. The following induces an error, until -std is added to get 12242 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 12243 array size at least. It's necessary to write '\x00'==0 to get something 12244 that's true only with -std. */ 12245int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 12246 12247/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 12248 inside strings and character constants. */ 12249#define FOO(x) 'x' 12250int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 12251 12252int test (int i, double x); 12253struct s1 {int (*f) (int a);}; 12254struct s2 {int (*f) (double a);}; 12255int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 12256int argc; 12257char **argv; 12258int 12259main () 12260{ 12261return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 12262 ; 12263 return 0; 12264} 12265_ACEOF 12266for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 12267 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 12268do 12269 CC="$ac_save_CC $ac_arg" 12270 if ac_fn_c_try_compile "$LINENO"; then : 12271 ac_cv_prog_cc_c89=$ac_arg 12272fi 12273rm -f core conftest.err conftest.$ac_objext 12274 test "x$ac_cv_prog_cc_c89" != "xno" && break 12275done 12276rm -f conftest.$ac_ext 12277CC=$ac_save_CC 12278 12279fi 12280# AC_CACHE_VAL 12281case "x$ac_cv_prog_cc_c89" in 12282 x) 12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12284$as_echo "none needed" >&6; } ;; 12285 xno) 12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12287$as_echo "unsupported" >&6; } ;; 12288 *) 12289 CC="$CC $ac_cv_prog_cc_c89" 12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 12291$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 12292esac 12293if test "x$ac_cv_prog_cc_c89" != xno; then : 12294 12295fi 12296 12297ac_ext=c 12298ac_cpp='$CPP $CPPFLAGS' 12299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12301ac_compiler_gnu=$ac_cv_c_compiler_gnu 12302 12303ac_ext=c 12304ac_cpp='$CPP $CPPFLAGS' 12305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12307ac_compiler_gnu=$ac_cv_c_compiler_gnu 12308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 12309$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 12310if ${am_cv_prog_cc_c_o+:} false; then : 12311 $as_echo_n "(cached) " >&6 12312else 12313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12314/* end confdefs.h. */ 12315 12316int 12317main () 12318{ 12319 12320 ; 12321 return 0; 12322} 12323_ACEOF 12324 # Make sure it works both with $CC and with simple cc. 12325 # Following AC_PROG_CC_C_O, we do the test twice because some 12326 # compilers refuse to overwrite an existing .o file with -o, 12327 # though they will create one. 12328 am_cv_prog_cc_c_o=yes 12329 for am_i in 1 2; do 12330 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 12331 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 12332 ac_status=$? 12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12334 (exit $ac_status); } \ 12335 && test -f conftest2.$ac_objext; then 12336 : OK 12337 else 12338 am_cv_prog_cc_c_o=no 12339 break 12340 fi 12341 done 12342 rm -f core conftest* 12343 unset am_i 12344fi 12345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 12346$as_echo "$am_cv_prog_cc_c_o" >&6; } 12347if test "$am_cv_prog_cc_c_o" != yes; then 12348 # Losing compiler, so override with the script. 12349 # FIXME: It is wrong to rewrite CC. 12350 # But if we don't then we get into trouble of one sort or another. 12351 # A longer-term fix would be to have automake use am__CC in this case, 12352 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 12353 CC="$am_aux_dir/compile $CC" 12354fi 12355ac_ext=c 12356ac_cpp='$CPP $CPPFLAGS' 12357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12359ac_compiler_gnu=$ac_cv_c_compiler_gnu 12360 12361 12362depcc="$CC" am_compiler_list= 12363 12364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 12365$as_echo_n "checking dependency style of $depcc... " >&6; } 12366if ${am_cv_CC_dependencies_compiler_type+:} false; then : 12367 $as_echo_n "(cached) " >&6 12368else 12369 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 12370 # We make a subdir and do the tests there. Otherwise we can end up 12371 # making bogus files that we don't know about and never remove. For 12372 # instance it was reported that on HP-UX the gcc test will end up 12373 # making a dummy file named 'D' -- because '-MD' means "put the output 12374 # in D". 12375 rm -rf conftest.dir 12376 mkdir conftest.dir 12377 # Copy depcomp to subdir because otherwise we won't find it if we're 12378 # using a relative directory. 12379 cp "$am_depcomp" conftest.dir 12380 cd conftest.dir 12381 # We will build objects and dependencies in a subdirectory because 12382 # it helps to detect inapplicable dependency modes. For instance 12383 # both Tru64's cc and ICC support -MD to output dependencies as a 12384 # side effect of compilation, but ICC will put the dependencies in 12385 # the current directory while Tru64 will put them in the object 12386 # directory. 12387 mkdir sub 12388 12389 am_cv_CC_dependencies_compiler_type=none 12390 if test "$am_compiler_list" = ""; then 12391 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 12392 fi 12393 am__universal=false 12394 case " $depcc " in #( 12395 *\ -arch\ *\ -arch\ *) am__universal=true ;; 12396 esac 12397 12398 for depmode in $am_compiler_list; do 12399 # Setup a source with many dependencies, because some compilers 12400 # like to wrap large dependency lists on column 80 (with \), and 12401 # we should not choose a depcomp mode which is confused by this. 12402 # 12403 # We need to recreate these files for each test, as the compiler may 12404 # overwrite some of them when testing with obscure command lines. 12405 # This happens at least with the AIX C compiler. 12406 : > sub/conftest.c 12407 for i in 1 2 3 4 5 6; do 12408 echo '#include "conftst'$i'.h"' >> sub/conftest.c 12409 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 12410 # Solaris 10 /bin/sh. 12411 echo '/* dummy */' > sub/conftst$i.h 12412 done 12413 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12414 12415 # We check with '-c' and '-o' for the sake of the "dashmstdout" 12416 # mode. It turns out that the SunPro C++ compiler does not properly 12417 # handle '-M -o', and we need to detect this. Also, some Intel 12418 # versions had trouble with output in subdirs. 12419 am__obj=sub/conftest.${OBJEXT-o} 12420 am__minus_obj="-o $am__obj" 12421 case $depmode in 12422 gcc) 12423 # This depmode causes a compiler race in universal mode. 12424 test "$am__universal" = false || continue 12425 ;; 12426 nosideeffect) 12427 # After this tag, mechanisms are not by side-effect, so they'll 12428 # only be used when explicitly requested. 12429 if test "x$enable_dependency_tracking" = xyes; then 12430 continue 12431 else 12432 break 12433 fi 12434 ;; 12435 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 12436 # This compiler won't grok '-c -o', but also, the minuso test has 12437 # not run yet. These depmodes are late enough in the game, and 12438 # so weak that their functioning should not be impacted. 12439 am__obj=conftest.${OBJEXT-o} 12440 am__minus_obj= 12441 ;; 12442 none) break ;; 12443 esac 12444 if depmode=$depmode \ 12445 source=sub/conftest.c object=$am__obj \ 12446 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12447 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 12448 >/dev/null 2>conftest.err && 12449 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12450 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12451 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 12452 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 12453 # icc doesn't choke on unknown options, it will just issue warnings 12454 # or remarks (even with -Werror). So we grep stderr for any message 12455 # that says an option was ignored or not supported. 12456 # When given -MP, icc 7.0 and 7.1 complain thusly: 12457 # icc: Command line warning: ignoring option '-M'; no argument required 12458 # The diagnosis changed in icc 8.0: 12459 # icc: Command line remark: option '-MP' not supported 12460 if (grep 'ignoring option' conftest.err || 12461 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 12462 am_cv_CC_dependencies_compiler_type=$depmode 12463 break 12464 fi 12465 fi 12466 done 12467 12468 cd .. 12469 rm -rf conftest.dir 12470else 12471 am_cv_CC_dependencies_compiler_type=none 12472fi 12473 12474fi 12475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 12476$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 12477CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 12478 12479 if 12480 test "x$enable_dependency_tracking" != xno \ 12481 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 12482 am__fastdepCC_TRUE= 12483 am__fastdepCC_FALSE='#' 12484else 12485 am__fastdepCC_TRUE='#' 12486 am__fastdepCC_FALSE= 12487fi 12488 12489 12490ac_ext=cpp 12491ac_cpp='$CXXCPP $CPPFLAGS' 12492ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12493ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12494ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12495if test -z "$CXX"; then 12496 if test -n "$CCC"; then 12497 CXX=$CCC 12498 else 12499 if test -n "$ac_tool_prefix"; then 12500 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 12501 do 12502 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12503set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12505$as_echo_n "checking for $ac_word... " >&6; } 12506if ${ac_cv_prog_CXX+:} false; then : 12507 $as_echo_n "(cached) " >&6 12508else 12509 if test -n "$CXX"; then 12510 ac_cv_prog_CXX="$CXX" # Let the user override the test. 12511else 12512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12513for as_dir in $PATH 12514do 12515 IFS=$as_save_IFS 12516 test -z "$as_dir" && as_dir=. 12517 for ac_exec_ext in '' $ac_executable_extensions; do 12518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12519 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 12520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12521 break 2 12522 fi 12523done 12524 done 12525IFS=$as_save_IFS 12526 12527fi 12528fi 12529CXX=$ac_cv_prog_CXX 12530if test -n "$CXX"; then 12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 12532$as_echo "$CXX" >&6; } 12533else 12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12535$as_echo "no" >&6; } 12536fi 12537 12538 12539 test -n "$CXX" && break 12540 done 12541fi 12542if test -z "$CXX"; then 12543 ac_ct_CXX=$CXX 12544 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 12545do 12546 # Extract the first word of "$ac_prog", so it can be a program name with args. 12547set dummy $ac_prog; ac_word=$2 12548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12549$as_echo_n "checking for $ac_word... " >&6; } 12550if ${ac_cv_prog_ac_ct_CXX+:} false; then : 12551 $as_echo_n "(cached) " >&6 12552else 12553 if test -n "$ac_ct_CXX"; then 12554 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 12555else 12556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12557for as_dir in $PATH 12558do 12559 IFS=$as_save_IFS 12560 test -z "$as_dir" && as_dir=. 12561 for ac_exec_ext in '' $ac_executable_extensions; do 12562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12563 ac_cv_prog_ac_ct_CXX="$ac_prog" 12564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12565 break 2 12566 fi 12567done 12568 done 12569IFS=$as_save_IFS 12570 12571fi 12572fi 12573ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 12574if test -n "$ac_ct_CXX"; then 12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 12576$as_echo "$ac_ct_CXX" >&6; } 12577else 12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12579$as_echo "no" >&6; } 12580fi 12581 12582 12583 test -n "$ac_ct_CXX" && break 12584done 12585 12586 if test "x$ac_ct_CXX" = x; then 12587 CXX="g++" 12588 else 12589 case $cross_compiling:$ac_tool_warned in 12590yes:) 12591{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12592$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12593ac_tool_warned=yes ;; 12594esac 12595 CXX=$ac_ct_CXX 12596 fi 12597fi 12598 12599 fi 12600fi 12601# Provide some information about the compiler. 12602$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 12603set X $ac_compile 12604ac_compiler=$2 12605for ac_option in --version -v -V -qversion; do 12606 { { ac_try="$ac_compiler $ac_option >&5" 12607case "(($ac_try" in 12608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12609 *) ac_try_echo=$ac_try;; 12610esac 12611eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12612$as_echo "$ac_try_echo"; } >&5 12613 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12614 ac_status=$? 12615 if test -s conftest.err; then 12616 sed '10a\ 12617... rest of stderr output deleted ... 12618 10q' conftest.err >conftest.er1 12619 cat conftest.er1 >&5 12620 fi 12621 rm -f conftest.er1 conftest.err 12622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12623 test $ac_status = 0; } 12624done 12625 12626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 12627$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 12628if ${ac_cv_cxx_compiler_gnu+:} false; then : 12629 $as_echo_n "(cached) " >&6 12630else 12631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12632/* end confdefs.h. */ 12633 12634int 12635main () 12636{ 12637#ifndef __GNUC__ 12638 choke me 12639#endif 12640 12641 ; 12642 return 0; 12643} 12644_ACEOF 12645if ac_fn_cxx_try_compile "$LINENO"; then : 12646 ac_compiler_gnu=yes 12647else 12648 ac_compiler_gnu=no 12649fi 12650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12651ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 12652 12653fi 12654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 12655$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 12656if test $ac_compiler_gnu = yes; then 12657 GXX=yes 12658else 12659 GXX= 12660fi 12661ac_test_CXXFLAGS=${CXXFLAGS+set} 12662ac_save_CXXFLAGS=$CXXFLAGS 12663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 12664$as_echo_n "checking whether $CXX accepts -g... " >&6; } 12665if ${ac_cv_prog_cxx_g+:} false; then : 12666 $as_echo_n "(cached) " >&6 12667else 12668 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 12669 ac_cxx_werror_flag=yes 12670 ac_cv_prog_cxx_g=no 12671 CXXFLAGS="-g" 12672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12673/* end confdefs.h. */ 12674 12675int 12676main () 12677{ 12678 12679 ; 12680 return 0; 12681} 12682_ACEOF 12683if ac_fn_cxx_try_compile "$LINENO"; then : 12684 ac_cv_prog_cxx_g=yes 12685else 12686 CXXFLAGS="" 12687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12688/* end confdefs.h. */ 12689 12690int 12691main () 12692{ 12693 12694 ; 12695 return 0; 12696} 12697_ACEOF 12698if ac_fn_cxx_try_compile "$LINENO"; then : 12699 12700else 12701 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 12702 CXXFLAGS="-g" 12703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12704/* end confdefs.h. */ 12705 12706int 12707main () 12708{ 12709 12710 ; 12711 return 0; 12712} 12713_ACEOF 12714if ac_fn_cxx_try_compile "$LINENO"; then : 12715 ac_cv_prog_cxx_g=yes 12716fi 12717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12718fi 12719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12720fi 12721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12722 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 12723fi 12724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 12725$as_echo "$ac_cv_prog_cxx_g" >&6; } 12726if test "$ac_test_CXXFLAGS" = set; then 12727 CXXFLAGS=$ac_save_CXXFLAGS 12728elif test $ac_cv_prog_cxx_g = yes; then 12729 if test "$GXX" = yes; then 12730 CXXFLAGS="-g -O2" 12731 else 12732 CXXFLAGS="-g" 12733 fi 12734else 12735 if test "$GXX" = yes; then 12736 CXXFLAGS="-O2" 12737 else 12738 CXXFLAGS= 12739 fi 12740fi 12741ac_ext=c 12742ac_cpp='$CPP $CPPFLAGS' 12743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12745ac_compiler_gnu=$ac_cv_c_compiler_gnu 12746 12747depcc="$CXX" am_compiler_list= 12748 12749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 12750$as_echo_n "checking dependency style of $depcc... " >&6; } 12751if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 12752 $as_echo_n "(cached) " >&6 12753else 12754 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 12755 # We make a subdir and do the tests there. Otherwise we can end up 12756 # making bogus files that we don't know about and never remove. For 12757 # instance it was reported that on HP-UX the gcc test will end up 12758 # making a dummy file named 'D' -- because '-MD' means "put the output 12759 # in D". 12760 rm -rf conftest.dir 12761 mkdir conftest.dir 12762 # Copy depcomp to subdir because otherwise we won't find it if we're 12763 # using a relative directory. 12764 cp "$am_depcomp" conftest.dir 12765 cd conftest.dir 12766 # We will build objects and dependencies in a subdirectory because 12767 # it helps to detect inapplicable dependency modes. For instance 12768 # both Tru64's cc and ICC support -MD to output dependencies as a 12769 # side effect of compilation, but ICC will put the dependencies in 12770 # the current directory while Tru64 will put them in the object 12771 # directory. 12772 mkdir sub 12773 12774 am_cv_CXX_dependencies_compiler_type=none 12775 if test "$am_compiler_list" = ""; then 12776 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 12777 fi 12778 am__universal=false 12779 case " $depcc " in #( 12780 *\ -arch\ *\ -arch\ *) am__universal=true ;; 12781 esac 12782 12783 for depmode in $am_compiler_list; do 12784 # Setup a source with many dependencies, because some compilers 12785 # like to wrap large dependency lists on column 80 (with \), and 12786 # we should not choose a depcomp mode which is confused by this. 12787 # 12788 # We need to recreate these files for each test, as the compiler may 12789 # overwrite some of them when testing with obscure command lines. 12790 # This happens at least with the AIX C compiler. 12791 : > sub/conftest.c 12792 for i in 1 2 3 4 5 6; do 12793 echo '#include "conftst'$i'.h"' >> sub/conftest.c 12794 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 12795 # Solaris 10 /bin/sh. 12796 echo '/* dummy */' > sub/conftst$i.h 12797 done 12798 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12799 12800 # We check with '-c' and '-o' for the sake of the "dashmstdout" 12801 # mode. It turns out that the SunPro C++ compiler does not properly 12802 # handle '-M -o', and we need to detect this. Also, some Intel 12803 # versions had trouble with output in subdirs. 12804 am__obj=sub/conftest.${OBJEXT-o} 12805 am__minus_obj="-o $am__obj" 12806 case $depmode in 12807 gcc) 12808 # This depmode causes a compiler race in universal mode. 12809 test "$am__universal" = false || continue 12810 ;; 12811 nosideeffect) 12812 # After this tag, mechanisms are not by side-effect, so they'll 12813 # only be used when explicitly requested. 12814 if test "x$enable_dependency_tracking" = xyes; then 12815 continue 12816 else 12817 break 12818 fi 12819 ;; 12820 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 12821 # This compiler won't grok '-c -o', but also, the minuso test has 12822 # not run yet. These depmodes are late enough in the game, and 12823 # so weak that their functioning should not be impacted. 12824 am__obj=conftest.${OBJEXT-o} 12825 am__minus_obj= 12826 ;; 12827 none) break ;; 12828 esac 12829 if depmode=$depmode \ 12830 source=sub/conftest.c object=$am__obj \ 12831 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12832 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 12833 >/dev/null 2>conftest.err && 12834 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12835 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12836 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 12837 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 12838 # icc doesn't choke on unknown options, it will just issue warnings 12839 # or remarks (even with -Werror). So we grep stderr for any message 12840 # that says an option was ignored or not supported. 12841 # When given -MP, icc 7.0 and 7.1 complain thusly: 12842 # icc: Command line warning: ignoring option '-M'; no argument required 12843 # The diagnosis changed in icc 8.0: 12844 # icc: Command line remark: option '-MP' not supported 12845 if (grep 'ignoring option' conftest.err || 12846 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 12847 am_cv_CXX_dependencies_compiler_type=$depmode 12848 break 12849 fi 12850 fi 12851 done 12852 12853 cd .. 12854 rm -rf conftest.dir 12855else 12856 am_cv_CXX_dependencies_compiler_type=none 12857fi 12858 12859fi 12860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 12861$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 12862CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 12863 12864 if 12865 test "x$enable_dependency_tracking" != xno \ 12866 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 12867 am__fastdepCXX_TRUE= 12868 am__fastdepCXX_FALSE='#' 12869else 12870 am__fastdepCXX_TRUE='#' 12871 am__fastdepCXX_FALSE= 12872fi 12873 12874 12875 12876 12877func_stripname_cnf () 12878{ 12879 case ${2} in 12880 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 12881 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 12882 esac 12883} # func_stripname_cnf 12884 12885 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 12886 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 12887 (test "X$CXX" != "Xg++"))) ; then 12888 ac_ext=cpp 12889ac_cpp='$CXXCPP $CPPFLAGS' 12890ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12891ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12892ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 12894$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 12895if test -z "$CXXCPP"; then 12896 if ${ac_cv_prog_CXXCPP+:} false; then : 12897 $as_echo_n "(cached) " >&6 12898else 12899 # Double quotes because CXXCPP needs to be expanded 12900 for CXXCPP in "$CXX -E" "/lib/cpp" 12901 do 12902 ac_preproc_ok=false 12903for ac_cxx_preproc_warn_flag in '' yes 12904do 12905 # Use a header file that comes with gcc, so configuring glibc 12906 # with a fresh cross-compiler works. 12907 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12908 # <limits.h> exists even on freestanding compilers. 12909 # On the NeXT, cc -E runs the code through the compiler's parser, 12910 # not just through cpp. "Syntax error" is here to catch this case. 12911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12912/* end confdefs.h. */ 12913#ifdef __STDC__ 12914# include <limits.h> 12915#else 12916# include <assert.h> 12917#endif 12918 Syntax error 12919_ACEOF 12920if ac_fn_cxx_try_cpp "$LINENO"; then : 12921 12922else 12923 # Broken: fails on valid input. 12924continue 12925fi 12926rm -f conftest.err conftest.i conftest.$ac_ext 12927 12928 # OK, works on sane cases. Now check whether nonexistent headers 12929 # can be detected and how. 12930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12931/* end confdefs.h. */ 12932#include <ac_nonexistent.h> 12933_ACEOF 12934if ac_fn_cxx_try_cpp "$LINENO"; then : 12935 # Broken: success on invalid input. 12936continue 12937else 12938 # Passes both tests. 12939ac_preproc_ok=: 12940break 12941fi 12942rm -f conftest.err conftest.i conftest.$ac_ext 12943 12944done 12945# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12946rm -f conftest.i conftest.err conftest.$ac_ext 12947if $ac_preproc_ok; then : 12948 break 12949fi 12950 12951 done 12952 ac_cv_prog_CXXCPP=$CXXCPP 12953 12954fi 12955 CXXCPP=$ac_cv_prog_CXXCPP 12956else 12957 ac_cv_prog_CXXCPP=$CXXCPP 12958fi 12959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 12960$as_echo "$CXXCPP" >&6; } 12961ac_preproc_ok=false 12962for ac_cxx_preproc_warn_flag in '' yes 12963do 12964 # Use a header file that comes with gcc, so configuring glibc 12965 # with a fresh cross-compiler works. 12966 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12967 # <limits.h> exists even on freestanding compilers. 12968 # On the NeXT, cc -E runs the code through the compiler's parser, 12969 # not just through cpp. "Syntax error" is here to catch this case. 12970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12971/* end confdefs.h. */ 12972#ifdef __STDC__ 12973# include <limits.h> 12974#else 12975# include <assert.h> 12976#endif 12977 Syntax error 12978_ACEOF 12979if ac_fn_cxx_try_cpp "$LINENO"; then : 12980 12981else 12982 # Broken: fails on valid input. 12983continue 12984fi 12985rm -f conftest.err conftest.i conftest.$ac_ext 12986 12987 # OK, works on sane cases. Now check whether nonexistent headers 12988 # can be detected and how. 12989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12990/* end confdefs.h. */ 12991#include <ac_nonexistent.h> 12992_ACEOF 12993if ac_fn_cxx_try_cpp "$LINENO"; then : 12994 # Broken: success on invalid input. 12995continue 12996else 12997 # Passes both tests. 12998ac_preproc_ok=: 12999break 13000fi 13001rm -f conftest.err conftest.i conftest.$ac_ext 13002 13003done 13004# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13005rm -f conftest.i conftest.err conftest.$ac_ext 13006if $ac_preproc_ok; then : 13007 13008else 13009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13010$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13011as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 13012See \`config.log' for more details" "$LINENO" 5; } 13013fi 13014 13015ac_ext=c 13016ac_cpp='$CPP $CPPFLAGS' 13017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13019ac_compiler_gnu=$ac_cv_c_compiler_gnu 13020 13021else 13022 _lt_caught_CXX_error=yes 13023fi 13024 13025ac_ext=cpp 13026ac_cpp='$CXXCPP $CPPFLAGS' 13027ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13028ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13029ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13030 13031archive_cmds_need_lc_CXX=no 13032allow_undefined_flag_CXX= 13033always_export_symbols_CXX=no 13034archive_expsym_cmds_CXX= 13035compiler_needs_object_CXX=no 13036export_dynamic_flag_spec_CXX= 13037hardcode_direct_CXX=no 13038hardcode_direct_absolute_CXX=no 13039hardcode_libdir_flag_spec_CXX= 13040hardcode_libdir_separator_CXX= 13041hardcode_minus_L_CXX=no 13042hardcode_shlibpath_var_CXX=unsupported 13043hardcode_automatic_CXX=no 13044inherit_rpath_CXX=no 13045module_cmds_CXX= 13046module_expsym_cmds_CXX= 13047link_all_deplibs_CXX=unknown 13048old_archive_cmds_CXX=$old_archive_cmds 13049reload_flag_CXX=$reload_flag 13050reload_cmds_CXX=$reload_cmds 13051no_undefined_flag_CXX= 13052whole_archive_flag_spec_CXX= 13053enable_shared_with_static_runtimes_CXX=no 13054 13055# Source file extension for C++ test sources. 13056ac_ext=cpp 13057 13058# Object file extension for compiled C++ test sources. 13059objext=o 13060objext_CXX=$objext 13061 13062# No sense in running all these tests if we already determined that 13063# the CXX compiler isn't working. Some variables (like enable_shared) 13064# are currently assumed to apply to all compilers on this platform, 13065# and will be corrupted by setting them based on a non-working compiler. 13066if test "$_lt_caught_CXX_error" != yes; then 13067 # Code to be used in simple compile tests 13068 lt_simple_compile_test_code="int some_variable = 0;" 13069 13070 # Code to be used in simple link tests 13071 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13072 13073 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13074 13075 13076 13077 13078 13079 13080# If no C compiler was specified, use CC. 13081LTCC=${LTCC-"$CC"} 13082 13083# If no C compiler flags were specified, use CFLAGS. 13084LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13085 13086# Allow CC to be a program name with arguments. 13087compiler=$CC 13088 13089 13090 # save warnings/boilerplate of simple test code 13091 ac_outfile=conftest.$ac_objext 13092echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13093eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13094_lt_compiler_boilerplate=`cat conftest.err` 13095$RM conftest* 13096 13097 ac_outfile=conftest.$ac_objext 13098echo "$lt_simple_link_test_code" >conftest.$ac_ext 13099eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13100_lt_linker_boilerplate=`cat conftest.err` 13101$RM -r conftest* 13102 13103 13104 # Allow CC to be a program name with arguments. 13105 lt_save_CC=$CC 13106 lt_save_CFLAGS=$CFLAGS 13107 lt_save_LD=$LD 13108 lt_save_GCC=$GCC 13109 GCC=$GXX 13110 lt_save_with_gnu_ld=$with_gnu_ld 13111 lt_save_path_LD=$lt_cv_path_LD 13112 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13113 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13114 else 13115 $as_unset lt_cv_prog_gnu_ld 13116 fi 13117 if test -n "${lt_cv_path_LDCXX+set}"; then 13118 lt_cv_path_LD=$lt_cv_path_LDCXX 13119 else 13120 $as_unset lt_cv_path_LD 13121 fi 13122 test -z "${LDCXX+set}" || LD=$LDCXX 13123 CC=${CXX-"c++"} 13124 CFLAGS=$CXXFLAGS 13125 compiler=$CC 13126 compiler_CXX=$CC 13127 for cc_temp in $compiler""; do 13128 case $cc_temp in 13129 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13130 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13131 \-*) ;; 13132 *) break;; 13133 esac 13134done 13135cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13136 13137 13138 if test -n "$compiler"; then 13139 # We don't want -fno-exception when compiling C++ code, so set the 13140 # no_builtin_flag separately 13141 if test "$GXX" = yes; then 13142 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13143 else 13144 lt_prog_compiler_no_builtin_flag_CXX= 13145 fi 13146 13147 if test "$GXX" = yes; then 13148 # Set up default GNU C++ configuration 13149 13150 13151 13152# Check whether --with-gnu-ld was given. 13153if test "${with_gnu_ld+set}" = set; then : 13154 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 13155else 13156 with_gnu_ld=no 13157fi 13158 13159ac_prog=ld 13160if test "$GCC" = yes; then 13161 # Check if gcc -print-prog-name=ld gives a path. 13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13163$as_echo_n "checking for ld used by $CC... " >&6; } 13164 case $host in 13165 *-*-mingw*) 13166 # gcc leaves a trailing carriage return which upsets mingw 13167 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13168 *) 13169 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13170 esac 13171 case $ac_prog in 13172 # Accept absolute paths. 13173 [\\/]* | ?:[\\/]*) 13174 re_direlt='/[^/][^/]*/\.\./' 13175 # Canonicalize the pathname of ld 13176 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13177 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13178 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13179 done 13180 test -z "$LD" && LD="$ac_prog" 13181 ;; 13182 "") 13183 # If it fails, then pretend we aren't using GCC. 13184 ac_prog=ld 13185 ;; 13186 *) 13187 # If it is relative, then search for the first ld in PATH. 13188 with_gnu_ld=unknown 13189 ;; 13190 esac 13191elif test "$with_gnu_ld" = yes; then 13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13193$as_echo_n "checking for GNU ld... " >&6; } 13194else 13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13196$as_echo_n "checking for non-GNU ld... " >&6; } 13197fi 13198if ${lt_cv_path_LD+:} false; then : 13199 $as_echo_n "(cached) " >&6 13200else 13201 if test -z "$LD"; then 13202 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 13203 for ac_dir in $PATH; do 13204 IFS="$lt_save_ifs" 13205 test -z "$ac_dir" && ac_dir=. 13206 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13207 lt_cv_path_LD="$ac_dir/$ac_prog" 13208 # Check to see if the program is GNU ld. I'd rather use --version, 13209 # but apparently some variants of GNU ld only accept -v. 13210 # Break only if it was the GNU/non-GNU ld that we prefer. 13211 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13212 *GNU* | *'with BFD'*) 13213 test "$with_gnu_ld" != no && break 13214 ;; 13215 *) 13216 test "$with_gnu_ld" != yes && break 13217 ;; 13218 esac 13219 fi 13220 done 13221 IFS="$lt_save_ifs" 13222else 13223 lt_cv_path_LD="$LD" # Let the user override the test with a path. 13224fi 13225fi 13226 13227LD="$lt_cv_path_LD" 13228if test -n "$LD"; then 13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13230$as_echo "$LD" >&6; } 13231else 13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13233$as_echo "no" >&6; } 13234fi 13235test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13237$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13238if ${lt_cv_prog_gnu_ld+:} false; then : 13239 $as_echo_n "(cached) " >&6 13240else 13241 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13242case `$LD -v 2>&1 </dev/null` in 13243*GNU* | *'with BFD'*) 13244 lt_cv_prog_gnu_ld=yes 13245 ;; 13246*) 13247 lt_cv_prog_gnu_ld=no 13248 ;; 13249esac 13250fi 13251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13252$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13253with_gnu_ld=$lt_cv_prog_gnu_ld 13254 13255 13256 13257 13258 13259 13260 13261 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13262 # archiving commands below assume that GNU ld is being used. 13263 if test "$with_gnu_ld" = yes; then 13264 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13265 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13266 13267 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13268 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13269 13270 # If archive_cmds runs LD, not CC, wlarc should be empty 13271 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13272 # investigate it a little bit more. (MM) 13273 wlarc='${wl}' 13274 13275 # ancient GNU ld didn't support --whole-archive et. al. 13276 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13277 $GREP 'no-whole-archive' > /dev/null; then 13278 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13279 else 13280 whole_archive_flag_spec_CXX= 13281 fi 13282 else 13283 with_gnu_ld=no 13284 wlarc= 13285 13286 # A generic and very simple default shared library creation 13287 # command for GNU C++ for the case where it uses the native 13288 # linker, instead of GNU ld. If possible, this setting should 13289 # overridden to take advantage of the native linker features on 13290 # the platform it is being used on. 13291 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13292 fi 13293 13294 # Commands to make compiler produce verbose output that lists 13295 # what "hidden" libraries, object files and flags are used when 13296 # linking a shared library. 13297 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13298 13299 else 13300 GXX=no 13301 with_gnu_ld=no 13302 wlarc= 13303 fi 13304 13305 # PORTME: fill in a description of your system's C++ link characteristics 13306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13307$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13308 ld_shlibs_CXX=yes 13309 case $host_os in 13310 aix3*) 13311 # FIXME: insert proper C++ library support 13312 ld_shlibs_CXX=no 13313 ;; 13314 aix[4-9]*) 13315 if test "$host_cpu" = ia64; then 13316 # On IA64, the linker does run time linking by default, so we don't 13317 # have to do anything special. 13318 aix_use_runtimelinking=no 13319 exp_sym_flag='-Bexport' 13320 no_entry_flag="" 13321 else 13322 aix_use_runtimelinking=no 13323 13324 # Test if we are trying to use run time linking or normal 13325 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13326 # need to do runtime linking. 13327 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13328 for ld_flag in $LDFLAGS; do 13329 case $ld_flag in 13330 *-brtl*) 13331 aix_use_runtimelinking=yes 13332 break 13333 ;; 13334 esac 13335 done 13336 ;; 13337 esac 13338 13339 exp_sym_flag='-bexport' 13340 no_entry_flag='-bnoentry' 13341 fi 13342 13343 # When large executables or shared objects are built, AIX ld can 13344 # have problems creating the table of contents. If linking a library 13345 # or program results in "error TOC overflow" add -mminimal-toc to 13346 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13347 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13348 13349 archive_cmds_CXX='' 13350 hardcode_direct_CXX=yes 13351 hardcode_direct_absolute_CXX=yes 13352 hardcode_libdir_separator_CXX=':' 13353 link_all_deplibs_CXX=yes 13354 file_list_spec_CXX='${wl}-f,' 13355 13356 if test "$GXX" = yes; then 13357 case $host_os in aix4.[012]|aix4.[012].*) 13358 # We only want to do this on AIX 4.2 and lower, the check 13359 # below for broken collect2 doesn't work under 4.3+ 13360 collect2name=`${CC} -print-prog-name=collect2` 13361 if test -f "$collect2name" && 13362 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13363 then 13364 # We have reworked collect2 13365 : 13366 else 13367 # We have old collect2 13368 hardcode_direct_CXX=unsupported 13369 # It fails to find uninstalled libraries when the uninstalled 13370 # path is not listed in the libpath. Setting hardcode_minus_L 13371 # to unsupported forces relinking 13372 hardcode_minus_L_CXX=yes 13373 hardcode_libdir_flag_spec_CXX='-L$libdir' 13374 hardcode_libdir_separator_CXX= 13375 fi 13376 esac 13377 shared_flag='-shared' 13378 if test "$aix_use_runtimelinking" = yes; then 13379 shared_flag="$shared_flag "'${wl}-G' 13380 fi 13381 else 13382 # not using gcc 13383 if test "$host_cpu" = ia64; then 13384 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13385 # chokes on -Wl,-G. The following line is correct: 13386 shared_flag='-G' 13387 else 13388 if test "$aix_use_runtimelinking" = yes; then 13389 shared_flag='${wl}-G' 13390 else 13391 shared_flag='${wl}-bM:SRE' 13392 fi 13393 fi 13394 fi 13395 13396 export_dynamic_flag_spec_CXX='${wl}-bexpall' 13397 # It seems that -bexpall does not export symbols beginning with 13398 # underscore (_), so it is better to generate a list of symbols to 13399 # export. 13400 always_export_symbols_CXX=yes 13401 if test "$aix_use_runtimelinking" = yes; then 13402 # Warning - without using the other runtime loading flags (-brtl), 13403 # -berok will link without error, but may produce a broken library. 13404 allow_undefined_flag_CXX='-berok' 13405 # Determine the default libpath from the value encoded in an empty 13406 # executable. 13407 if test "${lt_cv_aix_libpath+set}" = set; then 13408 aix_libpath=$lt_cv_aix_libpath 13409else 13410 if ${lt_cv_aix_libpath__CXX+:} false; then : 13411 $as_echo_n "(cached) " >&6 13412else 13413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13414/* end confdefs.h. */ 13415 13416int 13417main () 13418{ 13419 13420 ; 13421 return 0; 13422} 13423_ACEOF 13424if ac_fn_cxx_try_link "$LINENO"; then : 13425 13426 lt_aix_libpath_sed=' 13427 /Import File Strings/,/^$/ { 13428 /^0/ { 13429 s/^0 *\([^ ]*\) *$/\1/ 13430 p 13431 } 13432 }' 13433 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13434 # Check for a 64-bit object if we didn't find anything. 13435 if test -z "$lt_cv_aix_libpath__CXX"; then 13436 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13437 fi 13438fi 13439rm -f core conftest.err conftest.$ac_objext \ 13440 conftest$ac_exeext conftest.$ac_ext 13441 if test -z "$lt_cv_aix_libpath__CXX"; then 13442 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 13443 fi 13444 13445fi 13446 13447 aix_libpath=$lt_cv_aix_libpath__CXX 13448fi 13449 13450 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13451 13452 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 13453 else 13454 if test "$host_cpu" = ia64; then 13455 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 13456 allow_undefined_flag_CXX="-z nodefs" 13457 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 13458 else 13459 # Determine the default libpath from the value encoded in an 13460 # empty executable. 13461 if test "${lt_cv_aix_libpath+set}" = set; then 13462 aix_libpath=$lt_cv_aix_libpath 13463else 13464 if ${lt_cv_aix_libpath__CXX+:} false; then : 13465 $as_echo_n "(cached) " >&6 13466else 13467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13468/* end confdefs.h. */ 13469 13470int 13471main () 13472{ 13473 13474 ; 13475 return 0; 13476} 13477_ACEOF 13478if ac_fn_cxx_try_link "$LINENO"; then : 13479 13480 lt_aix_libpath_sed=' 13481 /Import File Strings/,/^$/ { 13482 /^0/ { 13483 s/^0 *\([^ ]*\) *$/\1/ 13484 p 13485 } 13486 }' 13487 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13488 # Check for a 64-bit object if we didn't find anything. 13489 if test -z "$lt_cv_aix_libpath__CXX"; then 13490 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13491 fi 13492fi 13493rm -f core conftest.err conftest.$ac_objext \ 13494 conftest$ac_exeext conftest.$ac_ext 13495 if test -z "$lt_cv_aix_libpath__CXX"; then 13496 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 13497 fi 13498 13499fi 13500 13501 aix_libpath=$lt_cv_aix_libpath__CXX 13502fi 13503 13504 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13505 # Warning - without using the other run time loading flags, 13506 # -berok will link without error, but may produce a broken library. 13507 no_undefined_flag_CXX=' ${wl}-bernotok' 13508 allow_undefined_flag_CXX=' ${wl}-berok' 13509 if test "$with_gnu_ld" = yes; then 13510 # We only use this code for GNU lds that support --whole-archive. 13511 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13512 else 13513 # Exported symbols can be pulled into shared objects from archives 13514 whole_archive_flag_spec_CXX='$convenience' 13515 fi 13516 archive_cmds_need_lc_CXX=yes 13517 # This is similar to how AIX traditionally builds its shared 13518 # libraries. 13519 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 13520 fi 13521 fi 13522 ;; 13523 13524 beos*) 13525 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13526 allow_undefined_flag_CXX=unsupported 13527 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13528 # support --undefined. This deserves some investigation. FIXME 13529 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13530 else 13531 ld_shlibs_CXX=no 13532 fi 13533 ;; 13534 13535 chorus*) 13536 case $cc_basename in 13537 *) 13538 # FIXME: insert proper C++ library support 13539 ld_shlibs_CXX=no 13540 ;; 13541 esac 13542 ;; 13543 13544 cygwin* | mingw* | pw32* | cegcc*) 13545 case $GXX,$cc_basename in 13546 ,cl* | no,cl*) 13547 # Native MSVC 13548 # hardcode_libdir_flag_spec is actually meaningless, as there is 13549 # no search path for DLLs. 13550 hardcode_libdir_flag_spec_CXX=' ' 13551 allow_undefined_flag_CXX=unsupported 13552 always_export_symbols_CXX=yes 13553 file_list_spec_CXX='@' 13554 # Tell ltmain to make .lib files, not .a files. 13555 libext=lib 13556 # Tell ltmain to make .dll files, not .so files. 13557 shrext_cmds=".dll" 13558 # FIXME: Setting linknames here is a bad hack. 13559 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 13560 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13561 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 13562 else 13563 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 13564 fi~ 13565 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13566 linknames=' 13567 # The linker will not automatically build a static lib if we build a DLL. 13568 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 13569 enable_shared_with_static_runtimes_CXX=yes 13570 # Don't use ranlib 13571 old_postinstall_cmds_CXX='chmod 644 $oldlib' 13572 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 13573 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13574 case $lt_outputfile in 13575 *.exe|*.EXE) ;; 13576 *) 13577 lt_outputfile="$lt_outputfile.exe" 13578 lt_tool_outputfile="$lt_tool_outputfile.exe" 13579 ;; 13580 esac~ 13581 func_to_tool_file "$lt_outputfile"~ 13582 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 13583 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13584 $RM "$lt_outputfile.manifest"; 13585 fi' 13586 ;; 13587 *) 13588 # g++ 13589 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13590 # as there is no search path for DLLs. 13591 hardcode_libdir_flag_spec_CXX='-L$libdir' 13592 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 13593 allow_undefined_flag_CXX=unsupported 13594 always_export_symbols_CXX=no 13595 enable_shared_with_static_runtimes_CXX=yes 13596 13597 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13598 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13599 # If the export-symbols file already is a .def file (1st line 13600 # is EXPORTS), use it as is; otherwise, prepend... 13601 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13602 cp $export_symbols $output_objdir/$soname.def; 13603 else 13604 echo EXPORTS > $output_objdir/$soname.def; 13605 cat $export_symbols >> $output_objdir/$soname.def; 13606 fi~ 13607 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13608 else 13609 ld_shlibs_CXX=no 13610 fi 13611 ;; 13612 esac 13613 ;; 13614 darwin* | rhapsody*) 13615 13616 13617 archive_cmds_need_lc_CXX=no 13618 hardcode_direct_CXX=no 13619 hardcode_automatic_CXX=yes 13620 hardcode_shlibpath_var_CXX=unsupported 13621 if test "$lt_cv_ld_force_load" = "yes"; then 13622 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 13623 13624 else 13625 whole_archive_flag_spec_CXX='' 13626 fi 13627 link_all_deplibs_CXX=yes 13628 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 13629 case $cc_basename in 13630 ifort*) _lt_dar_can_shared=yes ;; 13631 *) _lt_dar_can_shared=$GCC ;; 13632 esac 13633 if test "$_lt_dar_can_shared" = "yes"; then 13634 output_verbose_link_cmd=func_echo_all 13635 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 13636 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 13637 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 13638 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 13639 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 13640 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 13641 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" 13642 fi 13643 13644 else 13645 ld_shlibs_CXX=no 13646 fi 13647 13648 ;; 13649 13650 dgux*) 13651 case $cc_basename in 13652 ec++*) 13653 # FIXME: insert proper C++ library support 13654 ld_shlibs_CXX=no 13655 ;; 13656 ghcx*) 13657 # Green Hills C++ Compiler 13658 # FIXME: insert proper C++ library support 13659 ld_shlibs_CXX=no 13660 ;; 13661 *) 13662 # FIXME: insert proper C++ library support 13663 ld_shlibs_CXX=no 13664 ;; 13665 esac 13666 ;; 13667 13668 freebsd2.*) 13669 # C++ shared libraries reported to be fairly broken before 13670 # switch to ELF 13671 ld_shlibs_CXX=no 13672 ;; 13673 13674 freebsd-elf*) 13675 archive_cmds_need_lc_CXX=no 13676 ;; 13677 13678 freebsd* | dragonfly*) 13679 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13680 # conventions 13681 ld_shlibs_CXX=yes 13682 ;; 13683 13684 haiku*) 13685 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13686 link_all_deplibs_CXX=yes 13687 ;; 13688 13689 hpux9*) 13690 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13691 hardcode_libdir_separator_CXX=: 13692 export_dynamic_flag_spec_CXX='${wl}-E' 13693 hardcode_direct_CXX=yes 13694 hardcode_minus_L_CXX=yes # Not in the search PATH, 13695 # but as the default 13696 # location of the library. 13697 13698 case $cc_basename in 13699 CC*) 13700 # FIXME: insert proper C++ library support 13701 ld_shlibs_CXX=no 13702 ;; 13703 aCC*) 13704 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13705 # Commands to make compiler produce verbose output that lists 13706 # what "hidden" libraries, object files and flags are used when 13707 # linking a shared library. 13708 # 13709 # There doesn't appear to be a way to prevent this compiler from 13710 # explicitly linking system object files so we need to strip them 13711 # from the output so that they don't get included in the library 13712 # dependencies. 13713 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13714 ;; 13715 *) 13716 if test "$GXX" = yes; then 13717 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13718 else 13719 # FIXME: insert proper C++ library support 13720 ld_shlibs_CXX=no 13721 fi 13722 ;; 13723 esac 13724 ;; 13725 13726 hpux10*|hpux11*) 13727 if test $with_gnu_ld = no; then 13728 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13729 hardcode_libdir_separator_CXX=: 13730 13731 case $host_cpu in 13732 hppa*64*|ia64*) 13733 ;; 13734 *) 13735 export_dynamic_flag_spec_CXX='${wl}-E' 13736 ;; 13737 esac 13738 fi 13739 case $host_cpu in 13740 hppa*64*|ia64*) 13741 hardcode_direct_CXX=no 13742 hardcode_shlibpath_var_CXX=no 13743 ;; 13744 *) 13745 hardcode_direct_CXX=yes 13746 hardcode_direct_absolute_CXX=yes 13747 hardcode_minus_L_CXX=yes # Not in the search PATH, 13748 # but as the default 13749 # location of the library. 13750 ;; 13751 esac 13752 13753 case $cc_basename in 13754 CC*) 13755 # FIXME: insert proper C++ library support 13756 ld_shlibs_CXX=no 13757 ;; 13758 aCC*) 13759 case $host_cpu in 13760 hppa*64*) 13761 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13762 ;; 13763 ia64*) 13764 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13765 ;; 13766 *) 13767 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13768 ;; 13769 esac 13770 # Commands to make compiler produce verbose output that lists 13771 # what "hidden" libraries, object files and flags are used when 13772 # linking a shared library. 13773 # 13774 # There doesn't appear to be a way to prevent this compiler from 13775 # explicitly linking system object files so we need to strip them 13776 # from the output so that they don't get included in the library 13777 # dependencies. 13778 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13779 ;; 13780 *) 13781 if test "$GXX" = yes; then 13782 if test $with_gnu_ld = no; then 13783 case $host_cpu in 13784 hppa*64*) 13785 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13786 ;; 13787 ia64*) 13788 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13789 ;; 13790 *) 13791 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13792 ;; 13793 esac 13794 fi 13795 else 13796 # FIXME: insert proper C++ library support 13797 ld_shlibs_CXX=no 13798 fi 13799 ;; 13800 esac 13801 ;; 13802 13803 interix[3-9]*) 13804 hardcode_direct_CXX=no 13805 hardcode_shlibpath_var_CXX=no 13806 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13807 export_dynamic_flag_spec_CXX='${wl}-E' 13808 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13809 # Instead, shared libraries are loaded at an image base (0x10000000 by 13810 # default) and relocated if they conflict, which is a slow very memory 13811 # consuming and fragmenting process. To avoid this, we pick a random, 13812 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13813 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13814 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13815 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13816 ;; 13817 irix5* | irix6*) 13818 case $cc_basename in 13819 CC*) 13820 # SGI C++ 13821 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 13822 13823 # Archives containing C++ object files must be created using 13824 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13825 # necessary to make sure instantiated templates are included 13826 # in the archive. 13827 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13828 ;; 13829 *) 13830 if test "$GXX" = yes; then 13831 if test "$with_gnu_ld" = no; then 13832 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13833 else 13834 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' 13835 fi 13836 fi 13837 link_all_deplibs_CXX=yes 13838 ;; 13839 esac 13840 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13841 hardcode_libdir_separator_CXX=: 13842 inherit_rpath_CXX=yes 13843 ;; 13844 13845 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13846 case $cc_basename in 13847 KCC*) 13848 # Kuck and Associates, Inc. (KAI) C++ Compiler 13849 13850 # KCC will only create a shared library if the output file 13851 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13852 # to its proper name (with version) after linking. 13853 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 13854 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 13855 # Commands to make compiler produce verbose output that lists 13856 # what "hidden" libraries, object files and flags are used when 13857 # linking a shared library. 13858 # 13859 # There doesn't appear to be a way to prevent this compiler from 13860 # explicitly linking system object files so we need to strip them 13861 # from the output so that they don't get included in the library 13862 # dependencies. 13863 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13864 13865 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13866 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13867 13868 # Archives containing C++ object files must be created using 13869 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13870 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13871 ;; 13872 icpc* | ecpc* ) 13873 # Intel C++ 13874 with_gnu_ld=yes 13875 # version 8.0 and above of icpc choke on multiply defined symbols 13876 # if we add $predep_objects and $postdep_objects, however 7.1 and 13877 # earlier do not add the objects themselves. 13878 case `$CC -V 2>&1` in 13879 *"Version 7."*) 13880 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13881 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13882 ;; 13883 *) # Version 8.0 or newer 13884 tmp_idyn= 13885 case $host_cpu in 13886 ia64*) tmp_idyn=' -i_dynamic';; 13887 esac 13888 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13889 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13890 ;; 13891 esac 13892 archive_cmds_need_lc_CXX=no 13893 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13894 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13895 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13896 ;; 13897 pgCC* | pgcpp*) 13898 # Portland Group C++ compiler 13899 case `$CC -V` in 13900 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 13901 prelink_cmds_CXX='tpldir=Template.dir~ 13902 rm -rf $tpldir~ 13903 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13904 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 13905 old_archive_cmds_CXX='tpldir=Template.dir~ 13906 rm -rf $tpldir~ 13907 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13908 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 13909 $RANLIB $oldlib' 13910 archive_cmds_CXX='tpldir=Template.dir~ 13911 rm -rf $tpldir~ 13912 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13913 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13914 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13915 rm -rf $tpldir~ 13916 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13917 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 13918 ;; 13919 *) # Version 6 and above use weak symbols 13920 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13921 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 13922 ;; 13923 esac 13924 13925 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 13926 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13927 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 13928 ;; 13929 cxx*) 13930 # Compaq C++ 13931 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13932 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 13933 13934 runpath_var=LD_RUN_PATH 13935 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13936 hardcode_libdir_separator_CXX=: 13937 13938 # Commands to make compiler produce verbose output that lists 13939 # what "hidden" libraries, object files and flags are used when 13940 # linking a shared library. 13941 # 13942 # There doesn't appear to be a way to prevent this compiler from 13943 # explicitly linking system object files so we need to strip them 13944 # from the output so that they don't get included in the library 13945 # dependencies. 13946 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 13947 ;; 13948 xl* | mpixl* | bgxl*) 13949 # IBM XL 8.0 on PPC, with GNU ld 13950 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13951 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13952 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13953 if test "x$supports_anon_versioning" = xyes; then 13954 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13955 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13956 echo "local: *; };" >> $output_objdir/$libname.ver~ 13957 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13958 fi 13959 ;; 13960 *) 13961 case `$CC -V 2>&1 | sed 5q` in 13962 *Sun\ C*) 13963 # Sun C++ 5.9 13964 no_undefined_flag_CXX=' -zdefs' 13965 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13966 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 13967 hardcode_libdir_flag_spec_CXX='-R$libdir' 13968 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 13969 compiler_needs_object_CXX=yes 13970 13971 # Not sure whether something based on 13972 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13973 # would be better. 13974 output_verbose_link_cmd='func_echo_all' 13975 13976 # Archives containing C++ object files must be created using 13977 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13978 # necessary to make sure instantiated templates are included 13979 # in the archive. 13980 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13981 ;; 13982 esac 13983 ;; 13984 esac 13985 ;; 13986 13987 lynxos*) 13988 # FIXME: insert proper C++ library support 13989 ld_shlibs_CXX=no 13990 ;; 13991 13992 m88k*) 13993 # FIXME: insert proper C++ library support 13994 ld_shlibs_CXX=no 13995 ;; 13996 13997 mvs*) 13998 case $cc_basename in 13999 cxx*) 14000 # FIXME: insert proper C++ library support 14001 ld_shlibs_CXX=no 14002 ;; 14003 *) 14004 # FIXME: insert proper C++ library support 14005 ld_shlibs_CXX=no 14006 ;; 14007 esac 14008 ;; 14009 14010 netbsd*) 14011 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14012 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14013 wlarc= 14014 hardcode_libdir_flag_spec_CXX='-R$libdir' 14015 hardcode_direct_CXX=yes 14016 hardcode_shlibpath_var_CXX=no 14017 fi 14018 # Workaround some broken pre-1.5 toolchains 14019 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14020 ;; 14021 14022 *nto* | *qnx*) 14023 ld_shlibs_CXX=yes 14024 ;; 14025 14026 openbsd2*) 14027 # C++ shared libraries are fairly broken 14028 ld_shlibs_CXX=no 14029 ;; 14030 14031 openbsd*) 14032 if test -f /usr/libexec/ld.so; then 14033 hardcode_direct_CXX=yes 14034 hardcode_shlibpath_var_CXX=no 14035 hardcode_direct_absolute_CXX=yes 14036 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14037 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14038 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14039 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 14040 export_dynamic_flag_spec_CXX='${wl}-E' 14041 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14042 fi 14043 output_verbose_link_cmd=func_echo_all 14044 else 14045 ld_shlibs_CXX=no 14046 fi 14047 ;; 14048 14049 osf3* | osf4* | osf5*) 14050 case $cc_basename in 14051 KCC*) 14052 # Kuck and Associates, Inc. (KAI) C++ Compiler 14053 14054 # KCC will only create a shared library if the output file 14055 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14056 # to its proper name (with version) after linking. 14057 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 14058 14059 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14060 hardcode_libdir_separator_CXX=: 14061 14062 # Archives containing C++ object files must be created using 14063 # the KAI C++ compiler. 14064 case $host in 14065 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 14066 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 14067 esac 14068 ;; 14069 RCC*) 14070 # Rational C++ 2.4.1 14071 # FIXME: insert proper C++ library support 14072 ld_shlibs_CXX=no 14073 ;; 14074 cxx*) 14075 case $host in 14076 osf3*) 14077 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 14078 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 14079 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14080 ;; 14081 *) 14082 allow_undefined_flag_CXX=' -expect_unresolved \*' 14083 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 14084 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14085 echo "-hidden">> $lib.exp~ 14086 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ 14087 $RM $lib.exp' 14088 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14089 ;; 14090 esac 14091 14092 hardcode_libdir_separator_CXX=: 14093 14094 # Commands to make compiler produce verbose output that lists 14095 # what "hidden" libraries, object files and flags are used when 14096 # linking a shared library. 14097 # 14098 # There doesn't appear to be a way to prevent this compiler from 14099 # explicitly linking system object files so we need to strip them 14100 # from the output so that they don't get included in the library 14101 # dependencies. 14102 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14103 ;; 14104 *) 14105 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 14106 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 14107 case $host in 14108 osf3*) 14109 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 14110 ;; 14111 *) 14112 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 14113 ;; 14114 esac 14115 14116 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14117 hardcode_libdir_separator_CXX=: 14118 14119 # Commands to make compiler produce verbose output that lists 14120 # what "hidden" libraries, object files and flags are used when 14121 # linking a shared library. 14122 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14123 14124 else 14125 # FIXME: insert proper C++ library support 14126 ld_shlibs_CXX=no 14127 fi 14128 ;; 14129 esac 14130 ;; 14131 14132 psos*) 14133 # FIXME: insert proper C++ library support 14134 ld_shlibs_CXX=no 14135 ;; 14136 14137 sunos4*) 14138 case $cc_basename in 14139 CC*) 14140 # Sun C++ 4.x 14141 # FIXME: insert proper C++ library support 14142 ld_shlibs_CXX=no 14143 ;; 14144 lcc*) 14145 # Lucid 14146 # FIXME: insert proper C++ library support 14147 ld_shlibs_CXX=no 14148 ;; 14149 *) 14150 # FIXME: insert proper C++ library support 14151 ld_shlibs_CXX=no 14152 ;; 14153 esac 14154 ;; 14155 14156 solaris*) 14157 case $cc_basename in 14158 CC* | sunCC*) 14159 # Sun C++ 4.2, 5.x and Centerline C++ 14160 archive_cmds_need_lc_CXX=yes 14161 no_undefined_flag_CXX=' -zdefs' 14162 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14163 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14164 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14165 14166 hardcode_libdir_flag_spec_CXX='-R$libdir' 14167 hardcode_shlibpath_var_CXX=no 14168 case $host_os in 14169 solaris2.[0-5] | solaris2.[0-5].*) ;; 14170 *) 14171 # The compiler driver will combine and reorder linker options, 14172 # but understands `-z linker_flag'. 14173 # Supported since Solaris 2.6 (maybe 2.5.1?) 14174 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 14175 ;; 14176 esac 14177 link_all_deplibs_CXX=yes 14178 14179 output_verbose_link_cmd='func_echo_all' 14180 14181 # Archives containing C++ object files must be created using 14182 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14183 # necessary to make sure instantiated templates are included 14184 # in the archive. 14185 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14186 ;; 14187 gcx*) 14188 # Green Hills C++ Compiler 14189 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14190 14191 # The C++ compiler must be used to create the archive. 14192 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14193 ;; 14194 *) 14195 # GNU C++ compiler with Solaris linker 14196 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 14197 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 14198 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 14199 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14200 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14201 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14202 14203 # Commands to make compiler produce verbose output that lists 14204 # what "hidden" libraries, object files and flags are used when 14205 # linking a shared library. 14206 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14207 else 14208 # g++ 2.7 appears to require `-G' NOT `-shared' on this 14209 # platform. 14210 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14211 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14212 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14213 14214 # Commands to make compiler produce verbose output that lists 14215 # what "hidden" libraries, object files and flags are used when 14216 # linking a shared library. 14217 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14218 fi 14219 14220 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 14221 case $host_os in 14222 solaris2.[0-5] | solaris2.[0-5].*) ;; 14223 *) 14224 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 14225 ;; 14226 esac 14227 fi 14228 ;; 14229 esac 14230 ;; 14231 14232 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14233 no_undefined_flag_CXX='${wl}-z,text' 14234 archive_cmds_need_lc_CXX=no 14235 hardcode_shlibpath_var_CXX=no 14236 runpath_var='LD_RUN_PATH' 14237 14238 case $cc_basename in 14239 CC*) 14240 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14241 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14242 ;; 14243 *) 14244 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14245 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14246 ;; 14247 esac 14248 ;; 14249 14250 sysv5* | sco3.2v5* | sco5v6*) 14251 # Note: We can NOT use -z defs as we might desire, because we do not 14252 # link with -lc, and that would cause any symbols used from libc to 14253 # always be unresolved, which means just about no library would 14254 # ever link correctly. If we're not using GNU ld we use -z text 14255 # though, which does catch some bad symbols but isn't as heavy-handed 14256 # as -z defs. 14257 no_undefined_flag_CXX='${wl}-z,text' 14258 allow_undefined_flag_CXX='${wl}-z,nodefs' 14259 archive_cmds_need_lc_CXX=no 14260 hardcode_shlibpath_var_CXX=no 14261 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 14262 hardcode_libdir_separator_CXX=':' 14263 link_all_deplibs_CXX=yes 14264 export_dynamic_flag_spec_CXX='${wl}-Bexport' 14265 runpath_var='LD_RUN_PATH' 14266 14267 case $cc_basename in 14268 CC*) 14269 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14270 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14271 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14272 '"$old_archive_cmds_CXX" 14273 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14274 '"$reload_cmds_CXX" 14275 ;; 14276 *) 14277 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14278 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14279 ;; 14280 esac 14281 ;; 14282 14283 tandem*) 14284 case $cc_basename in 14285 NCC*) 14286 # NonStop-UX NCC 3.20 14287 # FIXME: insert proper C++ library support 14288 ld_shlibs_CXX=no 14289 ;; 14290 *) 14291 # FIXME: insert proper C++ library support 14292 ld_shlibs_CXX=no 14293 ;; 14294 esac 14295 ;; 14296 14297 vxworks*) 14298 # FIXME: insert proper C++ library support 14299 ld_shlibs_CXX=no 14300 ;; 14301 14302 *) 14303 # FIXME: insert proper C++ library support 14304 ld_shlibs_CXX=no 14305 ;; 14306 esac 14307 14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14309$as_echo "$ld_shlibs_CXX" >&6; } 14310 test "$ld_shlibs_CXX" = no && can_build_shared=no 14311 14312 GCC_CXX="$GXX" 14313 LD_CXX="$LD" 14314 14315 ## CAVEAT EMPTOR: 14316 ## There is no encapsulation within the following macros, do not change 14317 ## the running order or otherwise move them around unless you know exactly 14318 ## what you are doing... 14319 # Dependencies to place before and after the object being linked: 14320predep_objects_CXX= 14321postdep_objects_CXX= 14322predeps_CXX= 14323postdeps_CXX= 14324compiler_lib_search_path_CXX= 14325 14326cat > conftest.$ac_ext <<_LT_EOF 14327class Foo 14328{ 14329public: 14330 Foo (void) { a = 0; } 14331private: 14332 int a; 14333}; 14334_LT_EOF 14335 14336 14337_lt_libdeps_save_CFLAGS=$CFLAGS 14338case "$CC $CFLAGS " in #( 14339*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14340*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14341*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 14342esac 14343 14344if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14345 (eval $ac_compile) 2>&5 14346 ac_status=$? 14347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14348 test $ac_status = 0; }; then 14349 # Parse the compiler output and extract the necessary 14350 # objects, libraries and library flags. 14351 14352 # Sentinel used to keep track of whether or not we are before 14353 # the conftest object file. 14354 pre_test_object_deps_done=no 14355 14356 for p in `eval "$output_verbose_link_cmd"`; do 14357 case ${prev}${p} in 14358 14359 -L* | -R* | -l*) 14360 # Some compilers place space between "-{L,R}" and the path. 14361 # Remove the space. 14362 if test $p = "-L" || 14363 test $p = "-R"; then 14364 prev=$p 14365 continue 14366 fi 14367 14368 # Expand the sysroot to ease extracting the directories later. 14369 if test -z "$prev"; then 14370 case $p in 14371 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14372 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14373 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14374 esac 14375 fi 14376 case $p in 14377 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14378 esac 14379 if test "$pre_test_object_deps_done" = no; then 14380 case ${prev} in 14381 -L | -R) 14382 # Internal compiler library paths should come after those 14383 # provided the user. The postdeps already come after the 14384 # user supplied libs so there is no need to process them. 14385 if test -z "$compiler_lib_search_path_CXX"; then 14386 compiler_lib_search_path_CXX="${prev}${p}" 14387 else 14388 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 14389 fi 14390 ;; 14391 # The "-l" case would never come before the object being 14392 # linked, so don't bother handling this case. 14393 esac 14394 else 14395 if test -z "$postdeps_CXX"; then 14396 postdeps_CXX="${prev}${p}" 14397 else 14398 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 14399 fi 14400 fi 14401 prev= 14402 ;; 14403 14404 *.lto.$objext) ;; # Ignore GCC LTO objects 14405 *.$objext) 14406 # This assumes that the test object file only shows up 14407 # once in the compiler output. 14408 if test "$p" = "conftest.$objext"; then 14409 pre_test_object_deps_done=yes 14410 continue 14411 fi 14412 14413 if test "$pre_test_object_deps_done" = no; then 14414 if test -z "$predep_objects_CXX"; then 14415 predep_objects_CXX="$p" 14416 else 14417 predep_objects_CXX="$predep_objects_CXX $p" 14418 fi 14419 else 14420 if test -z "$postdep_objects_CXX"; then 14421 postdep_objects_CXX="$p" 14422 else 14423 postdep_objects_CXX="$postdep_objects_CXX $p" 14424 fi 14425 fi 14426 ;; 14427 14428 *) ;; # Ignore the rest. 14429 14430 esac 14431 done 14432 14433 # Clean up. 14434 rm -f a.out a.exe 14435else 14436 echo "libtool.m4: error: problem compiling CXX test program" 14437fi 14438 14439$RM -f confest.$objext 14440CFLAGS=$_lt_libdeps_save_CFLAGS 14441 14442# PORTME: override above test on systems where it is broken 14443case $host_os in 14444interix[3-9]*) 14445 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14446 # hack all around it, let's just trust "g++" to DTRT. 14447 predep_objects_CXX= 14448 postdep_objects_CXX= 14449 postdeps_CXX= 14450 ;; 14451 14452linux*) 14453 case `$CC -V 2>&1 | sed 5q` in 14454 *Sun\ C*) 14455 # Sun C++ 5.9 14456 14457 # The more standards-conforming stlport4 library is 14458 # incompatible with the Cstd library. Avoid specifying 14459 # it if it's in CXXFLAGS. Ignore libCrun as 14460 # -library=stlport4 depends on it. 14461 case " $CXX $CXXFLAGS " in 14462 *" -library=stlport4 "*) 14463 solaris_use_stlport4=yes 14464 ;; 14465 esac 14466 14467 if test "$solaris_use_stlport4" != yes; then 14468 postdeps_CXX='-library=Cstd -library=Crun' 14469 fi 14470 ;; 14471 esac 14472 ;; 14473 14474solaris*) 14475 case $cc_basename in 14476 CC* | sunCC*) 14477 # The more standards-conforming stlport4 library is 14478 # incompatible with the Cstd library. Avoid specifying 14479 # it if it's in CXXFLAGS. Ignore libCrun as 14480 # -library=stlport4 depends on it. 14481 case " $CXX $CXXFLAGS " in 14482 *" -library=stlport4 "*) 14483 solaris_use_stlport4=yes 14484 ;; 14485 esac 14486 14487 # Adding this requires a known-good setup of shared libraries for 14488 # Sun compiler versions before 5.6, else PIC objects from an old 14489 # archive will be linked into the output, leading to subtle bugs. 14490 if test "$solaris_use_stlport4" != yes; then 14491 postdeps_CXX='-library=Cstd -library=Crun' 14492 fi 14493 ;; 14494 esac 14495 ;; 14496esac 14497 14498 14499case " $postdeps_CXX " in 14500*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14501esac 14502 compiler_lib_search_dirs_CXX= 14503if test -n "${compiler_lib_search_path_CXX}"; then 14504 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 14505fi 14506 14507 14508 14509 14510 14511 14512 14513 14514 14515 14516 14517 14518 14519 14520 14521 14522 14523 14524 14525 14526 14527 14528 14529 14530 14531 14532 14533 14534 14535 14536 14537 lt_prog_compiler_wl_CXX= 14538lt_prog_compiler_pic_CXX= 14539lt_prog_compiler_static_CXX= 14540 14541 14542 # C++ specific cases for pic, static, wl, etc. 14543 if test "$GXX" = yes; then 14544 lt_prog_compiler_wl_CXX='-Wl,' 14545 lt_prog_compiler_static_CXX='-static' 14546 14547 case $host_os in 14548 aix*) 14549 # All AIX code is PIC. 14550 if test "$host_cpu" = ia64; then 14551 # AIX 5 now supports IA64 processor 14552 lt_prog_compiler_static_CXX='-Bstatic' 14553 fi 14554 ;; 14555 14556 amigaos*) 14557 case $host_cpu in 14558 powerpc) 14559 # see comment about AmigaOS4 .so support 14560 lt_prog_compiler_pic_CXX='-fPIC' 14561 ;; 14562 m68k) 14563 # FIXME: we need at least 68020 code to build shared libraries, but 14564 # adding the `-m68020' flag to GCC prevents building anything better, 14565 # like `-m68040'. 14566 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14567 ;; 14568 esac 14569 ;; 14570 14571 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14572 # PIC is the default for these OSes. 14573 ;; 14574 mingw* | cygwin* | os2* | pw32* | cegcc*) 14575 # This hack is so that the source file can tell whether it is being 14576 # built for inclusion in a dll (and should export symbols for example). 14577 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14578 # (--disable-auto-import) libraries 14579 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14580 ;; 14581 darwin* | rhapsody*) 14582 # PIC is the default on this platform 14583 # Common symbols not allowed in MH_DYLIB files 14584 lt_prog_compiler_pic_CXX='-fno-common' 14585 ;; 14586 *djgpp*) 14587 # DJGPP does not support shared libraries at all 14588 lt_prog_compiler_pic_CXX= 14589 ;; 14590 haiku*) 14591 # PIC is the default for Haiku. 14592 # The "-static" flag exists, but is broken. 14593 lt_prog_compiler_static_CXX= 14594 ;; 14595 interix[3-9]*) 14596 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14597 # Instead, we relocate shared libraries at runtime. 14598 ;; 14599 sysv4*MP*) 14600 if test -d /usr/nec; then 14601 lt_prog_compiler_pic_CXX=-Kconform_pic 14602 fi 14603 ;; 14604 hpux*) 14605 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14606 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14607 # sets the default TLS model and affects inlining. 14608 case $host_cpu in 14609 hppa*64*) 14610 ;; 14611 *) 14612 lt_prog_compiler_pic_CXX='-fPIC' 14613 ;; 14614 esac 14615 ;; 14616 *qnx* | *nto*) 14617 # QNX uses GNU C++, but need to define -shared option too, otherwise 14618 # it will coredump. 14619 lt_prog_compiler_pic_CXX='-fPIC -shared' 14620 ;; 14621 *) 14622 lt_prog_compiler_pic_CXX='-fPIC' 14623 ;; 14624 esac 14625 else 14626 case $host_os in 14627 aix[4-9]*) 14628 # All AIX code is PIC. 14629 if test "$host_cpu" = ia64; then 14630 # AIX 5 now supports IA64 processor 14631 lt_prog_compiler_static_CXX='-Bstatic' 14632 else 14633 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14634 fi 14635 ;; 14636 chorus*) 14637 case $cc_basename in 14638 cxch68*) 14639 # Green Hills C++ Compiler 14640 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 14641 ;; 14642 esac 14643 ;; 14644 mingw* | cygwin* | os2* | pw32* | cegcc*) 14645 # This hack is so that the source file can tell whether it is being 14646 # built for inclusion in a dll (and should export symbols for example). 14647 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14648 ;; 14649 dgux*) 14650 case $cc_basename in 14651 ec++*) 14652 lt_prog_compiler_pic_CXX='-KPIC' 14653 ;; 14654 ghcx*) 14655 # Green Hills C++ Compiler 14656 lt_prog_compiler_pic_CXX='-pic' 14657 ;; 14658 *) 14659 ;; 14660 esac 14661 ;; 14662 freebsd* | dragonfly*) 14663 # FreeBSD uses GNU C++ 14664 ;; 14665 hpux9* | hpux10* | hpux11*) 14666 case $cc_basename in 14667 CC*) 14668 lt_prog_compiler_wl_CXX='-Wl,' 14669 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14670 if test "$host_cpu" != ia64; then 14671 lt_prog_compiler_pic_CXX='+Z' 14672 fi 14673 ;; 14674 aCC*) 14675 lt_prog_compiler_wl_CXX='-Wl,' 14676 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14677 case $host_cpu in 14678 hppa*64*|ia64*) 14679 # +Z the default 14680 ;; 14681 *) 14682 lt_prog_compiler_pic_CXX='+Z' 14683 ;; 14684 esac 14685 ;; 14686 *) 14687 ;; 14688 esac 14689 ;; 14690 interix*) 14691 # This is c89, which is MS Visual C++ (no shared libs) 14692 # Anyone wants to do a port? 14693 ;; 14694 irix5* | irix6* | nonstopux*) 14695 case $cc_basename in 14696 CC*) 14697 lt_prog_compiler_wl_CXX='-Wl,' 14698 lt_prog_compiler_static_CXX='-non_shared' 14699 # CC pic flag -KPIC is the default. 14700 ;; 14701 *) 14702 ;; 14703 esac 14704 ;; 14705 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14706 case $cc_basename in 14707 KCC*) 14708 # KAI C++ Compiler 14709 lt_prog_compiler_wl_CXX='--backend -Wl,' 14710 lt_prog_compiler_pic_CXX='-fPIC' 14711 ;; 14712 ecpc* ) 14713 # old Intel C++ for x86_64 which still supported -KPIC. 14714 lt_prog_compiler_wl_CXX='-Wl,' 14715 lt_prog_compiler_pic_CXX='-KPIC' 14716 lt_prog_compiler_static_CXX='-static' 14717 ;; 14718 icpc* ) 14719 # Intel C++, used to be incompatible with GCC. 14720 # ICC 10 doesn't accept -KPIC any more. 14721 lt_prog_compiler_wl_CXX='-Wl,' 14722 lt_prog_compiler_pic_CXX='-fPIC' 14723 lt_prog_compiler_static_CXX='-static' 14724 ;; 14725 pgCC* | pgcpp*) 14726 # Portland Group C++ compiler 14727 lt_prog_compiler_wl_CXX='-Wl,' 14728 lt_prog_compiler_pic_CXX='-fpic' 14729 lt_prog_compiler_static_CXX='-Bstatic' 14730 ;; 14731 cxx*) 14732 # Compaq C++ 14733 # Make sure the PIC flag is empty. It appears that all Alpha 14734 # Linux and Compaq Tru64 Unix objects are PIC. 14735 lt_prog_compiler_pic_CXX= 14736 lt_prog_compiler_static_CXX='-non_shared' 14737 ;; 14738 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 14739 # IBM XL 8.0, 9.0 on PPC and BlueGene 14740 lt_prog_compiler_wl_CXX='-Wl,' 14741 lt_prog_compiler_pic_CXX='-qpic' 14742 lt_prog_compiler_static_CXX='-qstaticlink' 14743 ;; 14744 *) 14745 case `$CC -V 2>&1 | sed 5q` in 14746 *Sun\ C*) 14747 # Sun C++ 5.9 14748 lt_prog_compiler_pic_CXX='-KPIC' 14749 lt_prog_compiler_static_CXX='-Bstatic' 14750 lt_prog_compiler_wl_CXX='-Qoption ld ' 14751 ;; 14752 esac 14753 ;; 14754 esac 14755 ;; 14756 lynxos*) 14757 ;; 14758 m88k*) 14759 ;; 14760 mvs*) 14761 case $cc_basename in 14762 cxx*) 14763 lt_prog_compiler_pic_CXX='-W c,exportall' 14764 ;; 14765 *) 14766 ;; 14767 esac 14768 ;; 14769 netbsd* | netbsdelf*-gnu) 14770 ;; 14771 *qnx* | *nto*) 14772 # QNX uses GNU C++, but need to define -shared option too, otherwise 14773 # it will coredump. 14774 lt_prog_compiler_pic_CXX='-fPIC -shared' 14775 ;; 14776 osf3* | osf4* | osf5*) 14777 case $cc_basename in 14778 KCC*) 14779 lt_prog_compiler_wl_CXX='--backend -Wl,' 14780 ;; 14781 RCC*) 14782 # Rational C++ 2.4.1 14783 lt_prog_compiler_pic_CXX='-pic' 14784 ;; 14785 cxx*) 14786 # Digital/Compaq C++ 14787 lt_prog_compiler_wl_CXX='-Wl,' 14788 # Make sure the PIC flag is empty. It appears that all Alpha 14789 # Linux and Compaq Tru64 Unix objects are PIC. 14790 lt_prog_compiler_pic_CXX= 14791 lt_prog_compiler_static_CXX='-non_shared' 14792 ;; 14793 *) 14794 ;; 14795 esac 14796 ;; 14797 psos*) 14798 ;; 14799 solaris*) 14800 case $cc_basename in 14801 CC* | sunCC*) 14802 # Sun C++ 4.2, 5.x and Centerline C++ 14803 lt_prog_compiler_pic_CXX='-KPIC' 14804 lt_prog_compiler_static_CXX='-Bstatic' 14805 lt_prog_compiler_wl_CXX='-Qoption ld ' 14806 ;; 14807 gcx*) 14808 # Green Hills C++ Compiler 14809 lt_prog_compiler_pic_CXX='-PIC' 14810 ;; 14811 *) 14812 ;; 14813 esac 14814 ;; 14815 sunos4*) 14816 case $cc_basename in 14817 CC*) 14818 # Sun C++ 4.x 14819 lt_prog_compiler_pic_CXX='-pic' 14820 lt_prog_compiler_static_CXX='-Bstatic' 14821 ;; 14822 lcc*) 14823 # Lucid 14824 lt_prog_compiler_pic_CXX='-pic' 14825 ;; 14826 *) 14827 ;; 14828 esac 14829 ;; 14830 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14831 case $cc_basename in 14832 CC*) 14833 lt_prog_compiler_wl_CXX='-Wl,' 14834 lt_prog_compiler_pic_CXX='-KPIC' 14835 lt_prog_compiler_static_CXX='-Bstatic' 14836 ;; 14837 esac 14838 ;; 14839 tandem*) 14840 case $cc_basename in 14841 NCC*) 14842 # NonStop-UX NCC 3.20 14843 lt_prog_compiler_pic_CXX='-KPIC' 14844 ;; 14845 *) 14846 ;; 14847 esac 14848 ;; 14849 vxworks*) 14850 ;; 14851 *) 14852 lt_prog_compiler_can_build_shared_CXX=no 14853 ;; 14854 esac 14855 fi 14856 14857case $host_os in 14858 # For platforms which do not support PIC, -DPIC is meaningless: 14859 *djgpp*) 14860 lt_prog_compiler_pic_CXX= 14861 ;; 14862 *) 14863 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14864 ;; 14865esac 14866 14867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14868$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14869if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 14870 $as_echo_n "(cached) " >&6 14871else 14872 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 14873fi 14874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 14875$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 14876lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 14877 14878# 14879# Check to make sure the PIC flag actually works. 14880# 14881if test -n "$lt_prog_compiler_pic_CXX"; then 14882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14883$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14884if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 14885 $as_echo_n "(cached) " >&6 14886else 14887 lt_cv_prog_compiler_pic_works_CXX=no 14888 ac_outfile=conftest.$ac_objext 14889 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14890 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 14891 # Insert the option either (1) after the last *FLAGS variable, or 14892 # (2) before a word containing "conftest.", or (3) at the end. 14893 # Note that $ac_compile itself does not contain backslashes and begins 14894 # with a dollar sign (not a hyphen), so the echo should work correctly. 14895 # The option is referenced via a variable to avoid confusing sed. 14896 lt_compile=`echo "$ac_compile" | $SED \ 14897 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14898 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14899 -e 's:$: $lt_compiler_flag:'` 14900 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14901 (eval "$lt_compile" 2>conftest.err) 14902 ac_status=$? 14903 cat conftest.err >&5 14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14905 if (exit $ac_status) && test -s "$ac_outfile"; then 14906 # The compiler can only warn and ignore the option if not recognized 14907 # So say no if there are warnings other than the usual output. 14908 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14909 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14910 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14911 lt_cv_prog_compiler_pic_works_CXX=yes 14912 fi 14913 fi 14914 $RM conftest* 14915 14916fi 14917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14918$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14919 14920if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 14921 case $lt_prog_compiler_pic_CXX in 14922 "" | " "*) ;; 14923 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14924 esac 14925else 14926 lt_prog_compiler_pic_CXX= 14927 lt_prog_compiler_can_build_shared_CXX=no 14928fi 14929 14930fi 14931 14932 14933 14934 14935 14936# 14937# Check to make sure the static flag actually works. 14938# 14939wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14941$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14942if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 14943 $as_echo_n "(cached) " >&6 14944else 14945 lt_cv_prog_compiler_static_works_CXX=no 14946 save_LDFLAGS="$LDFLAGS" 14947 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14948 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14949 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14950 # The linker can only warn and ignore the option if not recognized 14951 # So say no if there are warnings 14952 if test -s conftest.err; then 14953 # Append any errors to the config.log. 14954 cat conftest.err 1>&5 14955 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14956 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14957 if diff conftest.exp conftest.er2 >/dev/null; then 14958 lt_cv_prog_compiler_static_works_CXX=yes 14959 fi 14960 else 14961 lt_cv_prog_compiler_static_works_CXX=yes 14962 fi 14963 fi 14964 $RM -r conftest* 14965 LDFLAGS="$save_LDFLAGS" 14966 14967fi 14968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14969$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14970 14971if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 14972 : 14973else 14974 lt_prog_compiler_static_CXX= 14975fi 14976 14977 14978 14979 14980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14981$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14982if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14983 $as_echo_n "(cached) " >&6 14984else 14985 lt_cv_prog_compiler_c_o_CXX=no 14986 $RM -r conftest 2>/dev/null 14987 mkdir conftest 14988 cd conftest 14989 mkdir out 14990 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14991 14992 lt_compiler_flag="-o out/conftest2.$ac_objext" 14993 # Insert the option either (1) after the last *FLAGS variable, or 14994 # (2) before a word containing "conftest.", or (3) at the end. 14995 # Note that $ac_compile itself does not contain backslashes and begins 14996 # with a dollar sign (not a hyphen), so the echo should work correctly. 14997 lt_compile=`echo "$ac_compile" | $SED \ 14998 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14999 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15000 -e 's:$: $lt_compiler_flag:'` 15001 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15002 (eval "$lt_compile" 2>out/conftest.err) 15003 ac_status=$? 15004 cat out/conftest.err >&5 15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15006 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15007 then 15008 # The compiler can only warn and ignore the option if not recognized 15009 # So say no if there are warnings 15010 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15011 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15012 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15013 lt_cv_prog_compiler_c_o_CXX=yes 15014 fi 15015 fi 15016 chmod u+w . 2>&5 15017 $RM conftest* 15018 # SGI C++ compiler will create directory out/ii_files/ for 15019 # template instantiation 15020 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15021 $RM out/* && rmdir out 15022 cd .. 15023 $RM -r conftest 15024 $RM conftest* 15025 15026fi 15027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15028$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15029 15030 15031 15032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15033$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15034if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15035 $as_echo_n "(cached) " >&6 15036else 15037 lt_cv_prog_compiler_c_o_CXX=no 15038 $RM -r conftest 2>/dev/null 15039 mkdir conftest 15040 cd conftest 15041 mkdir out 15042 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15043 15044 lt_compiler_flag="-o out/conftest2.$ac_objext" 15045 # Insert the option either (1) after the last *FLAGS variable, or 15046 # (2) before a word containing "conftest.", or (3) at the end. 15047 # Note that $ac_compile itself does not contain backslashes and begins 15048 # with a dollar sign (not a hyphen), so the echo should work correctly. 15049 lt_compile=`echo "$ac_compile" | $SED \ 15050 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15051 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15052 -e 's:$: $lt_compiler_flag:'` 15053 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15054 (eval "$lt_compile" 2>out/conftest.err) 15055 ac_status=$? 15056 cat out/conftest.err >&5 15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15058 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15059 then 15060 # The compiler can only warn and ignore the option if not recognized 15061 # So say no if there are warnings 15062 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15063 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15064 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15065 lt_cv_prog_compiler_c_o_CXX=yes 15066 fi 15067 fi 15068 chmod u+w . 2>&5 15069 $RM conftest* 15070 # SGI C++ compiler will create directory out/ii_files/ for 15071 # template instantiation 15072 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15073 $RM out/* && rmdir out 15074 cd .. 15075 $RM -r conftest 15076 $RM conftest* 15077 15078fi 15079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15080$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15081 15082 15083 15084 15085hard_links="nottested" 15086if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 15087 # do not overwrite the value of need_locks provided by the user 15088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15089$as_echo_n "checking if we can lock with hard links... " >&6; } 15090 hard_links=yes 15091 $RM conftest* 15092 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15093 touch conftest.a 15094 ln conftest.a conftest.b 2>&5 || hard_links=no 15095 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15097$as_echo "$hard_links" >&6; } 15098 if test "$hard_links" = no; then 15099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15100$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15101 need_locks=warn 15102 fi 15103else 15104 need_locks=no 15105fi 15106 15107 15108 15109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15110$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15111 15112 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15113 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15114 case $host_os in 15115 aix[4-9]*) 15116 # If we're using GNU nm, then we don't want the "-C" option. 15117 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15118 # Also, AIX nm treats weak defined symbols like other global defined 15119 # symbols, whereas GNU nm marks them as "W". 15120 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15121 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 15122 else 15123 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 15124 fi 15125 ;; 15126 pw32*) 15127 export_symbols_cmds_CXX="$ltdll_cmds" 15128 ;; 15129 cygwin* | mingw* | cegcc*) 15130 case $cc_basename in 15131 cl*) 15132 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15133 ;; 15134 *) 15135 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 15136 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15137 ;; 15138 esac 15139 ;; 15140 linux* | k*bsd*-gnu | gnu*) 15141 link_all_deplibs_CXX=no 15142 ;; 15143 *) 15144 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15145 ;; 15146 esac 15147 15148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15149$as_echo "$ld_shlibs_CXX" >&6; } 15150test "$ld_shlibs_CXX" = no && can_build_shared=no 15151 15152with_gnu_ld_CXX=$with_gnu_ld 15153 15154 15155 15156 15157 15158 15159# 15160# Do we need to explicitly link libc? 15161# 15162case "x$archive_cmds_need_lc_CXX" in 15163x|xyes) 15164 # Assume -lc should be added 15165 archive_cmds_need_lc_CXX=yes 15166 15167 if test "$enable_shared" = yes && test "$GCC" = yes; then 15168 case $archive_cmds_CXX in 15169 *'~'*) 15170 # FIXME: we may have to deal with multi-command sequences. 15171 ;; 15172 '$CC '*) 15173 # Test whether the compiler implicitly links with -lc since on some 15174 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15175 # to ld, don't add -lc before -lgcc. 15176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15177$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15178if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 15179 $as_echo_n "(cached) " >&6 15180else 15181 $RM conftest* 15182 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15183 15184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15185 (eval $ac_compile) 2>&5 15186 ac_status=$? 15187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15188 test $ac_status = 0; } 2>conftest.err; then 15189 soname=conftest 15190 lib=conftest 15191 libobjs=conftest.$ac_objext 15192 deplibs= 15193 wl=$lt_prog_compiler_wl_CXX 15194 pic_flag=$lt_prog_compiler_pic_CXX 15195 compiler_flags=-v 15196 linker_flags=-v 15197 verstring= 15198 output_objdir=. 15199 libname=conftest 15200 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15201 allow_undefined_flag_CXX= 15202 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15203 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15204 ac_status=$? 15205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15206 test $ac_status = 0; } 15207 then 15208 lt_cv_archive_cmds_need_lc_CXX=no 15209 else 15210 lt_cv_archive_cmds_need_lc_CXX=yes 15211 fi 15212 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15213 else 15214 cat conftest.err 1>&5 15215 fi 15216 $RM conftest* 15217 15218fi 15219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 15220$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 15221 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 15222 ;; 15223 esac 15224 fi 15225 ;; 15226esac 15227 15228 15229 15230 15231 15232 15233 15234 15235 15236 15237 15238 15239 15240 15241 15242 15243 15244 15245 15246 15247 15248 15249 15250 15251 15252 15253 15254 15255 15256 15257 15258 15259 15260 15261 15262 15263 15264 15265 15266 15267 15268 15269 15270 15271 15272 15273 15274 15275 15276 15277 15278 15279 15280 15281 15282 15283 15284 15285 15286 15287 15288 15289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15290$as_echo_n "checking dynamic linker characteristics... " >&6; } 15291 15292library_names_spec= 15293libname_spec='lib$name' 15294soname_spec= 15295shrext_cmds=".so" 15296postinstall_cmds= 15297postuninstall_cmds= 15298finish_cmds= 15299finish_eval= 15300shlibpath_var= 15301shlibpath_overrides_runpath=unknown 15302version_type=none 15303dynamic_linker="$host_os ld.so" 15304sys_lib_dlsearch_path_spec="/lib /usr/lib" 15305need_lib_prefix=unknown 15306hardcode_into_libs=no 15307 15308# when you set need_version to no, make sure it does not cause -set_version 15309# flags to be left without arguments 15310need_version=unknown 15311 15312case $host_os in 15313aix3*) 15314 version_type=linux # correct to gnu/linux during the next big refactor 15315 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15316 shlibpath_var=LIBPATH 15317 15318 # AIX 3 has no versioning support, so we append a major version to the name. 15319 soname_spec='${libname}${release}${shared_ext}$major' 15320 ;; 15321 15322aix[4-9]*) 15323 version_type=linux # correct to gnu/linux during the next big refactor 15324 need_lib_prefix=no 15325 need_version=no 15326 hardcode_into_libs=yes 15327 if test "$host_cpu" = ia64; then 15328 # AIX 5 supports IA64 15329 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15330 shlibpath_var=LD_LIBRARY_PATH 15331 else 15332 # With GCC up to 2.95.x, collect2 would create an import file 15333 # for dependence libraries. The import file would start with 15334 # the line `#! .'. This would cause the generated library to 15335 # depend on `.', always an invalid library. This was fixed in 15336 # development snapshots of GCC prior to 3.0. 15337 case $host_os in 15338 aix4 | aix4.[01] | aix4.[01].*) 15339 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15340 echo ' yes ' 15341 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 15342 : 15343 else 15344 can_build_shared=no 15345 fi 15346 ;; 15347 esac 15348 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15349 # soname into executable. Probably we can add versioning support to 15350 # collect2, so additional links can be useful in future. 15351 if test "$aix_use_runtimelinking" = yes; then 15352 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15353 # instead of lib<name>.a to let people know that these are not 15354 # typical AIX shared libraries. 15355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15356 else 15357 # We preserve .a as extension for shared libraries through AIX4.2 15358 # and later when we are not doing run time linking. 15359 library_names_spec='${libname}${release}.a $libname.a' 15360 soname_spec='${libname}${release}${shared_ext}$major' 15361 fi 15362 shlibpath_var=LIBPATH 15363 fi 15364 ;; 15365 15366amigaos*) 15367 case $host_cpu in 15368 powerpc) 15369 # Since July 2007 AmigaOS4 officially supports .so libraries. 15370 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15372 ;; 15373 m68k) 15374 library_names_spec='$libname.ixlibrary $libname.a' 15375 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15376 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 15377 ;; 15378 esac 15379 ;; 15380 15381beos*) 15382 library_names_spec='${libname}${shared_ext}' 15383 dynamic_linker="$host_os ld.so" 15384 shlibpath_var=LIBRARY_PATH 15385 ;; 15386 15387bsdi[45]*) 15388 version_type=linux # correct to gnu/linux during the next big refactor 15389 need_version=no 15390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15391 soname_spec='${libname}${release}${shared_ext}$major' 15392 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15393 shlibpath_var=LD_LIBRARY_PATH 15394 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15395 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15396 # the default ld.so.conf also contains /usr/contrib/lib and 15397 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15398 # libtool to hard-code these into programs 15399 ;; 15400 15401cygwin* | mingw* | pw32* | cegcc*) 15402 version_type=windows 15403 shrext_cmds=".dll" 15404 need_version=no 15405 need_lib_prefix=no 15406 15407 case $GCC,$cc_basename in 15408 yes,*) 15409 # gcc 15410 library_names_spec='$libname.dll.a' 15411 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15412 postinstall_cmds='base_file=`basename \${file}`~ 15413 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15414 dldir=$destdir/`dirname \$dlpath`~ 15415 test -d \$dldir || mkdir -p \$dldir~ 15416 $install_prog $dir/$dlname \$dldir/$dlname~ 15417 chmod a+x \$dldir/$dlname~ 15418 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15419 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15420 fi' 15421 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15422 dlpath=$dir/\$dldll~ 15423 $RM \$dlpath' 15424 shlibpath_overrides_runpath=yes 15425 15426 case $host_os in 15427 cygwin*) 15428 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15429 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15430 15431 ;; 15432 mingw* | cegcc*) 15433 # MinGW DLLs use traditional 'lib' prefix 15434 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15435 ;; 15436 pw32*) 15437 # pw32 DLLs use 'pw' prefix rather than 'lib' 15438 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15439 ;; 15440 esac 15441 dynamic_linker='Win32 ld.exe' 15442 ;; 15443 15444 *,cl*) 15445 # Native MSVC 15446 libname_spec='$name' 15447 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15448 library_names_spec='${libname}.dll.lib' 15449 15450 case $build_os in 15451 mingw*) 15452 sys_lib_search_path_spec= 15453 lt_save_ifs=$IFS 15454 IFS=';' 15455 for lt_path in $LIB 15456 do 15457 IFS=$lt_save_ifs 15458 # Let DOS variable expansion print the short 8.3 style file name. 15459 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15460 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15461 done 15462 IFS=$lt_save_ifs 15463 # Convert to MSYS style. 15464 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15465 ;; 15466 cygwin*) 15467 # Convert to unix form, then to dos form, then back to unix form 15468 # but this time dos style (no spaces!) so that the unix form looks 15469 # like /cygdrive/c/PROGRA~1:/cygdr... 15470 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15471 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15472 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15473 ;; 15474 *) 15475 sys_lib_search_path_spec="$LIB" 15476 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15477 # It is most probably a Windows format PATH. 15478 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15479 else 15480 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15481 fi 15482 # FIXME: find the short name or the path components, as spaces are 15483 # common. (e.g. "Program Files" -> "PROGRA~1") 15484 ;; 15485 esac 15486 15487 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15488 postinstall_cmds='base_file=`basename \${file}`~ 15489 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15490 dldir=$destdir/`dirname \$dlpath`~ 15491 test -d \$dldir || mkdir -p \$dldir~ 15492 $install_prog $dir/$dlname \$dldir/$dlname' 15493 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15494 dlpath=$dir/\$dldll~ 15495 $RM \$dlpath' 15496 shlibpath_overrides_runpath=yes 15497 dynamic_linker='Win32 link.exe' 15498 ;; 15499 15500 *) 15501 # Assume MSVC wrapper 15502 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15503 dynamic_linker='Win32 ld.exe' 15504 ;; 15505 esac 15506 # FIXME: first we should search . and the directory the executable is in 15507 shlibpath_var=PATH 15508 ;; 15509 15510darwin* | rhapsody*) 15511 dynamic_linker="$host_os dyld" 15512 version_type=darwin 15513 need_lib_prefix=no 15514 need_version=no 15515 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15516 soname_spec='${libname}${release}${major}$shared_ext' 15517 shlibpath_overrides_runpath=yes 15518 shlibpath_var=DYLD_LIBRARY_PATH 15519 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15520 15521 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15522 ;; 15523 15524dgux*) 15525 version_type=linux # correct to gnu/linux during the next big refactor 15526 need_lib_prefix=no 15527 need_version=no 15528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15529 soname_spec='${libname}${release}${shared_ext}$major' 15530 shlibpath_var=LD_LIBRARY_PATH 15531 ;; 15532 15533freebsd* | dragonfly*) 15534 # DragonFly does not have aout. When/if they implement a new 15535 # versioning mechanism, adjust this. 15536 if test -x /usr/bin/objformat; then 15537 objformat=`/usr/bin/objformat` 15538 else 15539 case $host_os in 15540 freebsd[23].*) objformat=aout ;; 15541 *) objformat=elf ;; 15542 esac 15543 fi 15544 version_type=freebsd-$objformat 15545 case $version_type in 15546 freebsd-elf*) 15547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15548 need_version=no 15549 need_lib_prefix=no 15550 ;; 15551 freebsd-*) 15552 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15553 need_version=yes 15554 ;; 15555 esac 15556 shlibpath_var=LD_LIBRARY_PATH 15557 case $host_os in 15558 freebsd2.*) 15559 shlibpath_overrides_runpath=yes 15560 ;; 15561 freebsd3.[01]* | freebsdelf3.[01]*) 15562 shlibpath_overrides_runpath=yes 15563 hardcode_into_libs=yes 15564 ;; 15565 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15566 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15567 shlibpath_overrides_runpath=no 15568 hardcode_into_libs=yes 15569 ;; 15570 *) # from 4.6 on, and DragonFly 15571 shlibpath_overrides_runpath=yes 15572 hardcode_into_libs=yes 15573 ;; 15574 esac 15575 ;; 15576 15577haiku*) 15578 version_type=linux # correct to gnu/linux during the next big refactor 15579 need_lib_prefix=no 15580 need_version=no 15581 dynamic_linker="$host_os runtime_loader" 15582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15583 soname_spec='${libname}${release}${shared_ext}$major' 15584 shlibpath_var=LIBRARY_PATH 15585 shlibpath_overrides_runpath=yes 15586 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15587 hardcode_into_libs=yes 15588 ;; 15589 15590hpux9* | hpux10* | hpux11*) 15591 # Give a soname corresponding to the major version so that dld.sl refuses to 15592 # link against other versions. 15593 version_type=sunos 15594 need_lib_prefix=no 15595 need_version=no 15596 case $host_cpu in 15597 ia64*) 15598 shrext_cmds='.so' 15599 hardcode_into_libs=yes 15600 dynamic_linker="$host_os dld.so" 15601 shlibpath_var=LD_LIBRARY_PATH 15602 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15604 soname_spec='${libname}${release}${shared_ext}$major' 15605 if test "X$HPUX_IA64_MODE" = X32; then 15606 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15607 else 15608 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15609 fi 15610 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15611 ;; 15612 hppa*64*) 15613 shrext_cmds='.sl' 15614 hardcode_into_libs=yes 15615 dynamic_linker="$host_os dld.sl" 15616 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15617 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15619 soname_spec='${libname}${release}${shared_ext}$major' 15620 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15621 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15622 ;; 15623 *) 15624 shrext_cmds='.sl' 15625 dynamic_linker="$host_os dld.sl" 15626 shlibpath_var=SHLIB_PATH 15627 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15629 soname_spec='${libname}${release}${shared_ext}$major' 15630 ;; 15631 esac 15632 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15633 postinstall_cmds='chmod 555 $lib' 15634 # or fails outright, so override atomically: 15635 install_override_mode=555 15636 ;; 15637 15638interix[3-9]*) 15639 version_type=linux # correct to gnu/linux during the next big refactor 15640 need_lib_prefix=no 15641 need_version=no 15642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15643 soname_spec='${libname}${release}${shared_ext}$major' 15644 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15645 shlibpath_var=LD_LIBRARY_PATH 15646 shlibpath_overrides_runpath=no 15647 hardcode_into_libs=yes 15648 ;; 15649 15650irix5* | irix6* | nonstopux*) 15651 case $host_os in 15652 nonstopux*) version_type=nonstopux ;; 15653 *) 15654 if test "$lt_cv_prog_gnu_ld" = yes; then 15655 version_type=linux # correct to gnu/linux during the next big refactor 15656 else 15657 version_type=irix 15658 fi ;; 15659 esac 15660 need_lib_prefix=no 15661 need_version=no 15662 soname_spec='${libname}${release}${shared_ext}$major' 15663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15664 case $host_os in 15665 irix5* | nonstopux*) 15666 libsuff= shlibsuff= 15667 ;; 15668 *) 15669 case $LD in # libtool.m4 will add one of these switches to LD 15670 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15671 libsuff= shlibsuff= libmagic=32-bit;; 15672 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15673 libsuff=32 shlibsuff=N32 libmagic=N32;; 15674 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15675 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15676 *) libsuff= shlibsuff= libmagic=never-match;; 15677 esac 15678 ;; 15679 esac 15680 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15681 shlibpath_overrides_runpath=no 15682 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15683 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15684 hardcode_into_libs=yes 15685 ;; 15686 15687# No shared lib support for Linux oldld, aout, or coff. 15688linux*oldld* | linux*aout* | linux*coff*) 15689 dynamic_linker=no 15690 ;; 15691 15692# This must be glibc/ELF. 15693linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15694 version_type=linux # correct to gnu/linux during the next big refactor 15695 need_lib_prefix=no 15696 need_version=no 15697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15698 soname_spec='${libname}${release}${shared_ext}$major' 15699 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15700 shlibpath_var=LD_LIBRARY_PATH 15701 shlibpath_overrides_runpath=no 15702 15703 # Some binutils ld are patched to set DT_RUNPATH 15704 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15705 $as_echo_n "(cached) " >&6 15706else 15707 lt_cv_shlibpath_overrides_runpath=no 15708 save_LDFLAGS=$LDFLAGS 15709 save_libdir=$libdir 15710 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15711 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15713/* end confdefs.h. */ 15714 15715int 15716main () 15717{ 15718 15719 ; 15720 return 0; 15721} 15722_ACEOF 15723if ac_fn_cxx_try_link "$LINENO"; then : 15724 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15725 lt_cv_shlibpath_overrides_runpath=yes 15726fi 15727fi 15728rm -f core conftest.err conftest.$ac_objext \ 15729 conftest$ac_exeext conftest.$ac_ext 15730 LDFLAGS=$save_LDFLAGS 15731 libdir=$save_libdir 15732 15733fi 15734 15735 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15736 15737 # This implies no fast_install, which is unacceptable. 15738 # Some rework will be needed to allow for fast_install 15739 # before this can be enabled. 15740 hardcode_into_libs=yes 15741 15742 # Append ld.so.conf contents to the search path 15743 if test -f /etc/ld.so.conf; then 15744 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' ' '` 15745 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15746 fi 15747 15748 # We used to test for /lib/ld.so.1 and disable shared libraries on 15749 # powerpc, because MkLinux only supported shared libraries with the 15750 # GNU dynamic linker. Since this was broken with cross compilers, 15751 # most powerpc-linux boxes support dynamic linking these days and 15752 # people can always --disable-shared, the test was removed, and we 15753 # assume the GNU/Linux dynamic linker is in use. 15754 dynamic_linker='GNU/Linux ld.so' 15755 ;; 15756 15757netbsdelf*-gnu) 15758 version_type=linux 15759 need_lib_prefix=no 15760 need_version=no 15761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15762 soname_spec='${libname}${release}${shared_ext}$major' 15763 shlibpath_var=LD_LIBRARY_PATH 15764 shlibpath_overrides_runpath=no 15765 hardcode_into_libs=yes 15766 dynamic_linker='NetBSD ld.elf_so' 15767 ;; 15768 15769netbsd*) 15770 version_type=sunos 15771 need_lib_prefix=no 15772 need_version=no 15773 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15775 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15776 dynamic_linker='NetBSD (a.out) ld.so' 15777 else 15778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15779 soname_spec='${libname}${release}${shared_ext}$major' 15780 dynamic_linker='NetBSD ld.elf_so' 15781 fi 15782 shlibpath_var=LD_LIBRARY_PATH 15783 shlibpath_overrides_runpath=yes 15784 hardcode_into_libs=yes 15785 ;; 15786 15787newsos6) 15788 version_type=linux # correct to gnu/linux during the next big refactor 15789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15790 shlibpath_var=LD_LIBRARY_PATH 15791 shlibpath_overrides_runpath=yes 15792 ;; 15793 15794*nto* | *qnx*) 15795 version_type=qnx 15796 need_lib_prefix=no 15797 need_version=no 15798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15799 soname_spec='${libname}${release}${shared_ext}$major' 15800 shlibpath_var=LD_LIBRARY_PATH 15801 shlibpath_overrides_runpath=no 15802 hardcode_into_libs=yes 15803 dynamic_linker='ldqnx.so' 15804 ;; 15805 15806openbsd*) 15807 version_type=sunos 15808 sys_lib_dlsearch_path_spec="/usr/lib" 15809 need_lib_prefix=no 15810 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15811 case $host_os in 15812 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15813 *) need_version=no ;; 15814 esac 15815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15816 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15817 shlibpath_var=LD_LIBRARY_PATH 15818 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15819 case $host_os in 15820 openbsd2.[89] | openbsd2.[89].*) 15821 shlibpath_overrides_runpath=no 15822 ;; 15823 *) 15824 shlibpath_overrides_runpath=yes 15825 ;; 15826 esac 15827 else 15828 shlibpath_overrides_runpath=yes 15829 fi 15830 ;; 15831 15832os2*) 15833 libname_spec='$name' 15834 shrext_cmds=".dll" 15835 need_lib_prefix=no 15836 library_names_spec='$libname${shared_ext} $libname.a' 15837 dynamic_linker='OS/2 ld.exe' 15838 shlibpath_var=LIBPATH 15839 ;; 15840 15841osf3* | osf4* | osf5*) 15842 version_type=osf 15843 need_lib_prefix=no 15844 need_version=no 15845 soname_spec='${libname}${release}${shared_ext}$major' 15846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15847 shlibpath_var=LD_LIBRARY_PATH 15848 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15849 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15850 ;; 15851 15852rdos*) 15853 dynamic_linker=no 15854 ;; 15855 15856solaris*) 15857 version_type=linux # correct to gnu/linux during the next big refactor 15858 need_lib_prefix=no 15859 need_version=no 15860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15861 soname_spec='${libname}${release}${shared_ext}$major' 15862 shlibpath_var=LD_LIBRARY_PATH 15863 shlibpath_overrides_runpath=yes 15864 hardcode_into_libs=yes 15865 # ldd complains unless libraries are executable 15866 postinstall_cmds='chmod +x $lib' 15867 ;; 15868 15869sunos4*) 15870 version_type=sunos 15871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15872 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15873 shlibpath_var=LD_LIBRARY_PATH 15874 shlibpath_overrides_runpath=yes 15875 if test "$with_gnu_ld" = yes; then 15876 need_lib_prefix=no 15877 fi 15878 need_version=yes 15879 ;; 15880 15881sysv4 | sysv4.3*) 15882 version_type=linux # correct to gnu/linux during the next big refactor 15883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15884 soname_spec='${libname}${release}${shared_ext}$major' 15885 shlibpath_var=LD_LIBRARY_PATH 15886 case $host_vendor in 15887 sni) 15888 shlibpath_overrides_runpath=no 15889 need_lib_prefix=no 15890 runpath_var=LD_RUN_PATH 15891 ;; 15892 siemens) 15893 need_lib_prefix=no 15894 ;; 15895 motorola) 15896 need_lib_prefix=no 15897 need_version=no 15898 shlibpath_overrides_runpath=no 15899 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15900 ;; 15901 esac 15902 ;; 15903 15904sysv4*MP*) 15905 if test -d /usr/nec ;then 15906 version_type=linux # correct to gnu/linux during the next big refactor 15907 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15908 soname_spec='$libname${shared_ext}.$major' 15909 shlibpath_var=LD_LIBRARY_PATH 15910 fi 15911 ;; 15912 15913sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15914 version_type=freebsd-elf 15915 need_lib_prefix=no 15916 need_version=no 15917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15918 soname_spec='${libname}${release}${shared_ext}$major' 15919 shlibpath_var=LD_LIBRARY_PATH 15920 shlibpath_overrides_runpath=yes 15921 hardcode_into_libs=yes 15922 if test "$with_gnu_ld" = yes; then 15923 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15924 else 15925 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15926 case $host_os in 15927 sco3.2v5*) 15928 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15929 ;; 15930 esac 15931 fi 15932 sys_lib_dlsearch_path_spec='/usr/lib' 15933 ;; 15934 15935tpf*) 15936 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15937 version_type=linux # correct to gnu/linux during the next big refactor 15938 need_lib_prefix=no 15939 need_version=no 15940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15941 shlibpath_var=LD_LIBRARY_PATH 15942 shlibpath_overrides_runpath=no 15943 hardcode_into_libs=yes 15944 ;; 15945 15946uts4*) 15947 version_type=linux # correct to gnu/linux during the next big refactor 15948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15949 soname_spec='${libname}${release}${shared_ext}$major' 15950 shlibpath_var=LD_LIBRARY_PATH 15951 ;; 15952 15953*) 15954 dynamic_linker=no 15955 ;; 15956esac 15957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15958$as_echo "$dynamic_linker" >&6; } 15959test "$dynamic_linker" = no && can_build_shared=no 15960 15961variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15962if test "$GCC" = yes; then 15963 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15964fi 15965 15966if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 15967 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15968fi 15969if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 15970 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15971fi 15972 15973 15974 15975 15976 15977 15978 15979 15980 15981 15982 15983 15984 15985 15986 15987 15988 15989 15990 15991 15992 15993 15994 15995 15996 15997 15998 15999 16000 16001 16002 16003 16004 16005 16006 16007 16008 16009 16010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16011$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16012hardcode_action_CXX= 16013if test -n "$hardcode_libdir_flag_spec_CXX" || 16014 test -n "$runpath_var_CXX" || 16015 test "X$hardcode_automatic_CXX" = "Xyes" ; then 16016 16017 # We can hardcode non-existent directories. 16018 if test "$hardcode_direct_CXX" != no && 16019 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16020 # have to relink, otherwise we might link with an installed library 16021 # when we should be linking with a yet-to-be-installed one 16022 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 16023 test "$hardcode_minus_L_CXX" != no; then 16024 # Linking always hardcodes the temporary library directory. 16025 hardcode_action_CXX=relink 16026 else 16027 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16028 hardcode_action_CXX=immediate 16029 fi 16030else 16031 # We cannot hardcode anything, or else we can only hardcode existing 16032 # directories. 16033 hardcode_action_CXX=unsupported 16034fi 16035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 16036$as_echo "$hardcode_action_CXX" >&6; } 16037 16038if test "$hardcode_action_CXX" = relink || 16039 test "$inherit_rpath_CXX" = yes; then 16040 # Fast installation is not supported 16041 enable_fast_install=no 16042elif test "$shlibpath_overrides_runpath" = yes || 16043 test "$enable_shared" = no; then 16044 # Fast installation is not necessary 16045 enable_fast_install=needless 16046fi 16047 16048 16049 16050 16051 16052 16053 16054 fi # test -n "$compiler" 16055 16056 CC=$lt_save_CC 16057 CFLAGS=$lt_save_CFLAGS 16058 LDCXX=$LD 16059 LD=$lt_save_LD 16060 GCC=$lt_save_GCC 16061 with_gnu_ld=$lt_save_with_gnu_ld 16062 lt_cv_path_LDCXX=$lt_cv_path_LD 16063 lt_cv_path_LD=$lt_save_path_LD 16064 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16065 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16066fi # test "$_lt_caught_CXX_error" != yes 16067 16068ac_ext=c 16069ac_cpp='$CPP $CPPFLAGS' 16070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16072ac_compiler_gnu=$ac_cv_c_compiler_gnu 16073 16074 16075 16076 16077# Checks for libraries. 16078 16079# Checks for header files. 16080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 16081$as_echo_n "checking for ANSI C header files... " >&6; } 16082if ${ac_cv_header_stdc+:} false; then : 16083 $as_echo_n "(cached) " >&6 16084else 16085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16086/* end confdefs.h. */ 16087#include <stdlib.h> 16088#include <stdarg.h> 16089#include <string.h> 16090#include <float.h> 16091 16092int 16093main () 16094{ 16095 16096 ; 16097 return 0; 16098} 16099_ACEOF 16100if ac_fn_c_try_compile "$LINENO"; then : 16101 ac_cv_header_stdc=yes 16102else 16103 ac_cv_header_stdc=no 16104fi 16105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16106 16107if test $ac_cv_header_stdc = yes; then 16108 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 16109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16110/* end confdefs.h. */ 16111#include <string.h> 16112 16113_ACEOF 16114if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16115 $EGREP "memchr" >/dev/null 2>&1; then : 16116 16117else 16118 ac_cv_header_stdc=no 16119fi 16120rm -f conftest* 16121 16122fi 16123 16124if test $ac_cv_header_stdc = yes; then 16125 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 16126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16127/* end confdefs.h. */ 16128#include <stdlib.h> 16129 16130_ACEOF 16131if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16132 $EGREP "free" >/dev/null 2>&1; then : 16133 16134else 16135 ac_cv_header_stdc=no 16136fi 16137rm -f conftest* 16138 16139fi 16140 16141if test $ac_cv_header_stdc = yes; then 16142 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 16143 if test "$cross_compiling" = yes; then : 16144 : 16145else 16146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16147/* end confdefs.h. */ 16148#include <ctype.h> 16149#include <stdlib.h> 16150#if ((' ' & 0x0FF) == 0x020) 16151# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 16152# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 16153#else 16154# define ISLOWER(c) \ 16155 (('a' <= (c) && (c) <= 'i') \ 16156 || ('j' <= (c) && (c) <= 'r') \ 16157 || ('s' <= (c) && (c) <= 'z')) 16158# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 16159#endif 16160 16161#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 16162int 16163main () 16164{ 16165 int i; 16166 for (i = 0; i < 256; i++) 16167 if (XOR (islower (i), ISLOWER (i)) 16168 || toupper (i) != TOUPPER (i)) 16169 return 2; 16170 return 0; 16171} 16172_ACEOF 16173if ac_fn_c_try_run "$LINENO"; then : 16174 16175else 16176 ac_cv_header_stdc=no 16177fi 16178rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16179 conftest.$ac_objext conftest.beam conftest.$ac_ext 16180fi 16181 16182fi 16183fi 16184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 16185$as_echo "$ac_cv_header_stdc" >&6; } 16186if test $ac_cv_header_stdc = yes; then 16187 16188$as_echo "#define STDC_HEADERS 1" >>confdefs.h 16189 16190fi 16191 16192for ac_header in stdlib.h 16193do : 16194 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 16195if test "x$ac_cv_header_stdlib_h" = xyes; then : 16196 cat >>confdefs.h <<_ACEOF 16197#define HAVE_STDLIB_H 1 16198_ACEOF 16199 16200fi 16201 16202done 16203 16204 16205# Checks for typedefs, structures, and compiler characteristics. 16206 16207# Checks for library functions. 16208DEP_MODULES="gtk+-2.0 glib-2.0 >= 2.8 zlib gio-2.0" 16209 16210 16211 16212 16213 16214 16215 16216if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 16217 if test -n "$ac_tool_prefix"; then 16218 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 16219set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 16220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16221$as_echo_n "checking for $ac_word... " >&6; } 16222if ${ac_cv_path_PKG_CONFIG+:} false; then : 16223 $as_echo_n "(cached) " >&6 16224else 16225 case $PKG_CONFIG in 16226 [\\/]* | ?:[\\/]*) 16227 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 16228 ;; 16229 *) 16230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16231for as_dir in $PATH 16232do 16233 IFS=$as_save_IFS 16234 test -z "$as_dir" && as_dir=. 16235 for ac_exec_ext in '' $ac_executable_extensions; do 16236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16237 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 16238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16239 break 2 16240 fi 16241done 16242 done 16243IFS=$as_save_IFS 16244 16245 ;; 16246esac 16247fi 16248PKG_CONFIG=$ac_cv_path_PKG_CONFIG 16249if test -n "$PKG_CONFIG"; then 16250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 16251$as_echo "$PKG_CONFIG" >&6; } 16252else 16253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16254$as_echo "no" >&6; } 16255fi 16256 16257 16258fi 16259if test -z "$ac_cv_path_PKG_CONFIG"; then 16260 ac_pt_PKG_CONFIG=$PKG_CONFIG 16261 # Extract the first word of "pkg-config", so it can be a program name with args. 16262set dummy pkg-config; ac_word=$2 16263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16264$as_echo_n "checking for $ac_word... " >&6; } 16265if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 16266 $as_echo_n "(cached) " >&6 16267else 16268 case $ac_pt_PKG_CONFIG in 16269 [\\/]* | ?:[\\/]*) 16270 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 16271 ;; 16272 *) 16273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16274for as_dir in $PATH 16275do 16276 IFS=$as_save_IFS 16277 test -z "$as_dir" && as_dir=. 16278 for ac_exec_ext in '' $ac_executable_extensions; do 16279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16280 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 16281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16282 break 2 16283 fi 16284done 16285 done 16286IFS=$as_save_IFS 16287 16288 ;; 16289esac 16290fi 16291ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 16292if test -n "$ac_pt_PKG_CONFIG"; then 16293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 16294$as_echo "$ac_pt_PKG_CONFIG" >&6; } 16295else 16296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16297$as_echo "no" >&6; } 16298fi 16299 16300 if test "x$ac_pt_PKG_CONFIG" = x; then 16301 PKG_CONFIG="" 16302 else 16303 case $cross_compiling:$ac_tool_warned in 16304yes:) 16305{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16306$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16307ac_tool_warned=yes ;; 16308esac 16309 PKG_CONFIG=$ac_pt_PKG_CONFIG 16310 fi 16311else 16312 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 16313fi 16314 16315fi 16316if test -n "$PKG_CONFIG"; then 16317 _pkg_min_version=0.9.0 16318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 16319$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 16320 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 16321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16322$as_echo "yes" >&6; } 16323 else 16324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16325$as_echo "no" >&6; } 16326 PKG_CONFIG="" 16327 fi 16328fi 16329 16330pkg_failed=no 16331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for STARDICT" >&5 16332$as_echo_n "checking for STARDICT... " >&6; } 16333 16334if test -n "$STARDICT_CFLAGS"; then 16335 pkg_cv_STARDICT_CFLAGS="$STARDICT_CFLAGS" 16336 elif test -n "$PKG_CONFIG"; then 16337 if test -n "$PKG_CONFIG" && \ 16338 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DEP_MODULES\""; } >&5 16339 ($PKG_CONFIG --exists --print-errors "$DEP_MODULES") 2>&5 16340 ac_status=$? 16341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16342 test $ac_status = 0; }; then 16343 pkg_cv_STARDICT_CFLAGS=`$PKG_CONFIG --cflags "$DEP_MODULES" 2>/dev/null` 16344 test "x$?" != "x0" && pkg_failed=yes 16345else 16346 pkg_failed=yes 16347fi 16348 else 16349 pkg_failed=untried 16350fi 16351if test -n "$STARDICT_LIBS"; then 16352 pkg_cv_STARDICT_LIBS="$STARDICT_LIBS" 16353 elif test -n "$PKG_CONFIG"; then 16354 if test -n "$PKG_CONFIG" && \ 16355 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DEP_MODULES\""; } >&5 16356 ($PKG_CONFIG --exists --print-errors "$DEP_MODULES") 2>&5 16357 ac_status=$? 16358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16359 test $ac_status = 0; }; then 16360 pkg_cv_STARDICT_LIBS=`$PKG_CONFIG --libs "$DEP_MODULES" 2>/dev/null` 16361 test "x$?" != "x0" && pkg_failed=yes 16362else 16363 pkg_failed=yes 16364fi 16365 else 16366 pkg_failed=untried 16367fi 16368 16369 16370 16371if test $pkg_failed = yes; then 16372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16373$as_echo "no" >&6; } 16374 16375if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16376 _pkg_short_errors_supported=yes 16377else 16378 _pkg_short_errors_supported=no 16379fi 16380 if test $_pkg_short_errors_supported = yes; then 16381 STARDICT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DEP_MODULES" 2>&1` 16382 else 16383 STARDICT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DEP_MODULES" 2>&1` 16384 fi 16385 # Put the nasty error message in config.log where it belongs 16386 echo "$STARDICT_PKG_ERRORS" >&5 16387 16388 as_fn_error $? "Package requirements ($DEP_MODULES) were not met: 16389 16390$STARDICT_PKG_ERRORS 16391 16392Consider adjusting the PKG_CONFIG_PATH environment variable if you 16393installed software in a non-standard prefix. 16394 16395Alternatively, you may set the environment variables STARDICT_CFLAGS 16396and STARDICT_LIBS to avoid the need to call pkg-config. 16397See the pkg-config man page for more details." "$LINENO" 5 16398elif test $pkg_failed = untried; then 16399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16400$as_echo "no" >&6; } 16401 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16402$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16403as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 16404is in your PATH or set the PKG_CONFIG environment variable to the full 16405path to pkg-config. 16406 16407Alternatively, you may set the environment variables STARDICT_CFLAGS 16408and STARDICT_LIBS to avoid the need to call pkg-config. 16409See the pkg-config man page for more details. 16410 16411To get pkg-config, see <http://pkg-config.freedesktop.org/>. 16412See \`config.log' for more details" "$LINENO" 5; } 16413else 16414 STARDICT_CFLAGS=$pkg_cv_STARDICT_CFLAGS 16415 STARDICT_LIBS=$pkg_cv_STARDICT_LIBS 16416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16417$as_echo "yes" >&6; } 16418 16419fi 16420 16421# mysqlclient 16422 16423# Check whether --with-mysql-config was given. 16424if test "${with_mysql_config+set}" = set; then : 16425 withval=$with_mysql_config; 16426 MYSQLCONFIG=$withval 16427 16428else 16429 16430 MYSQLCONFIG=mysql-config-was-not-found-by-configure 16431 16432fi 16433 16434 16435if test "x$MYSQLCONFIG" = "xmysql-config-was-not-found-by-configure"; then 16436 # Extract the first word of "mysql_config", so it can be a program name with args. 16437set dummy mysql_config; ac_word=$2 16438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16439$as_echo_n "checking for $ac_word... " >&6; } 16440if ${ac_cv_path_MYSQLCONFIG+:} false; then : 16441 $as_echo_n "(cached) " >&6 16442else 16443 case $MYSQLCONFIG in 16444 [\\/]* | ?:[\\/]*) 16445 ac_cv_path_MYSQLCONFIG="$MYSQLCONFIG" # Let the user override the test with a path. 16446 ;; 16447 *) 16448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16449as_dummy="$PATH:/usr/bin:/usr/local/bin" 16450for as_dir in $as_dummy 16451do 16452 IFS=$as_save_IFS 16453 test -z "$as_dir" && as_dir=. 16454 for ac_exec_ext in '' $ac_executable_extensions; do 16455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16456 ac_cv_path_MYSQLCONFIG="$as_dir/$ac_word$ac_exec_ext" 16457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16458 break 2 16459 fi 16460done 16461 done 16462IFS=$as_save_IFS 16463 16464 test -z "$ac_cv_path_MYSQLCONFIG" && ac_cv_path_MYSQLCONFIG="mysql_config-was-not-found-by-configure" 16465 ;; 16466esac 16467fi 16468MYSQLCONFIG=$ac_cv_path_MYSQLCONFIG 16469if test -n "$MYSQLCONFIG"; then 16470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQLCONFIG" >&5 16471$as_echo "$MYSQLCONFIG" >&6; } 16472else 16473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16474$as_echo "no" >&6; } 16475fi 16476 16477 16478fi 16479 16480 16481if test "x$MYSQLCONFIG" = "xmysql_config-was-not-found-by-configure"; then 16482 as_fn_error $? "mysql_config wasn't found please install http://www.mysql.com " "$LINENO" 5 16483else 16484 MYSQL_CFLAGS=`$MYSQLCONFIG --cflags` 16485 MYSQL_INCLUDES=`$MYSQLCONFIG --include` 16486 MYSQL_LIBS=`$MYSQLCONFIG --libs_r` 16487fi 16488 16489 16490 16491 16492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL CFLAGS" >&5 16493$as_echo_n "checking for MySQL CFLAGS... " >&6; } 16494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CFLAGS" >&5 16495$as_echo "$MYSQL_CFLAGS" >&6; } 16496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL includes" >&5 16497$as_echo_n "checking for MySQL includes... " >&6; } 16498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_INCLUDES" >&5 16499$as_echo "$MYSQL_INCLUDES" >&6; } 16500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL libraries" >&5 16501$as_echo_n "checking for MySQL libraries... " >&6; } 16502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_LIBS" >&5 16503$as_echo "$MYSQL_LIBS" >&6; } 16504 16505 16506# Check whether --enable-deprecations was given. 16507if test "${enable_deprecations+set}" = set; then : 16508 enableval=$enable_deprecations; enable_deprecations=$enableval 16509else 16510 enable_deprecations=yes 16511fi 16512 16513 16514if test "x$enable_deprecations" = "xno" ; then 16515 STARDICT_CFLAGS="$STARDICT_CFLAGS -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED" 16516 STARDICT_CFLAGS="$STARDICT_CFLAGS -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES" 16517fi 16518 16519STARDICT_CFLAGS="-Wall $STARDICT_CFLAGS" 16520 16521LFS_CFLAGS=`getconf LFS_CFLAGS` 16522LFS_LDFLAGS=`getconf LFS_LDFLAGS` 16523LFS_LIBS=`getconf LFS_LIBS` 16524 16525 16526 16527 16528 16529pkg_failed=no 16530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSL2DICT" >&5 16531$as_echo_n "checking for DSL2DICT... " >&6; } 16532 16533if test -n "$DSL2DICT_CFLAGS"; then 16534 pkg_cv_DSL2DICT_CFLAGS="$DSL2DICT_CFLAGS" 16535 elif test -n "$PKG_CONFIG"; then 16536 if test -n "$PKG_CONFIG" && \ 16537 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre\""; } >&5 16538 ($PKG_CONFIG --exists --print-errors "libpcre") 2>&5 16539 ac_status=$? 16540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16541 test $ac_status = 0; }; then 16542 pkg_cv_DSL2DICT_CFLAGS=`$PKG_CONFIG --cflags "libpcre" 2>/dev/null` 16543 test "x$?" != "x0" && pkg_failed=yes 16544else 16545 pkg_failed=yes 16546fi 16547 else 16548 pkg_failed=untried 16549fi 16550if test -n "$DSL2DICT_LIBS"; then 16551 pkg_cv_DSL2DICT_LIBS="$DSL2DICT_LIBS" 16552 elif test -n "$PKG_CONFIG"; then 16553 if test -n "$PKG_CONFIG" && \ 16554 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre\""; } >&5 16555 ($PKG_CONFIG --exists --print-errors "libpcre") 2>&5 16556 ac_status=$? 16557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16558 test $ac_status = 0; }; then 16559 pkg_cv_DSL2DICT_LIBS=`$PKG_CONFIG --libs "libpcre" 2>/dev/null` 16560 test "x$?" != "x0" && pkg_failed=yes 16561else 16562 pkg_failed=yes 16563fi 16564 else 16565 pkg_failed=untried 16566fi 16567 16568 16569 16570if test $pkg_failed = yes; then 16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16572$as_echo "no" >&6; } 16573 16574if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16575 _pkg_short_errors_supported=yes 16576else 16577 _pkg_short_errors_supported=no 16578fi 16579 if test $_pkg_short_errors_supported = yes; then 16580 DSL2DICT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpcre" 2>&1` 16581 else 16582 DSL2DICT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpcre" 2>&1` 16583 fi 16584 # Put the nasty error message in config.log where it belongs 16585 echo "$DSL2DICT_PKG_ERRORS" >&5 16586 16587 as_fn_error $? "Package requirements (libpcre) were not met: 16588 16589$DSL2DICT_PKG_ERRORS 16590 16591Consider adjusting the PKG_CONFIG_PATH environment variable if you 16592installed software in a non-standard prefix. 16593 16594Alternatively, you may set the environment variables DSL2DICT_CFLAGS 16595and DSL2DICT_LIBS to avoid the need to call pkg-config. 16596See the pkg-config man page for more details." "$LINENO" 5 16597elif test $pkg_failed = untried; then 16598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16599$as_echo "no" >&6; } 16600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16601$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16602as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 16603is in your PATH or set the PKG_CONFIG environment variable to the full 16604path to pkg-config. 16605 16606Alternatively, you may set the environment variables DSL2DICT_CFLAGS 16607and DSL2DICT_LIBS to avoid the need to call pkg-config. 16608See the pkg-config man page for more details. 16609 16610To get pkg-config, see <http://pkg-config.freedesktop.org/>. 16611See \`config.log' for more details" "$LINENO" 5; } 16612else 16613 DSL2DICT_CFLAGS=$pkg_cv_DSL2DICT_CFLAGS 16614 DSL2DICT_LIBS=$pkg_cv_DSL2DICT_LIBS 16615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16616$as_echo "yes" >&6; } 16617 16618fi 16619for ac_func in getline mempcpy 16620do : 16621 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16622ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16623if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16624 cat >>confdefs.h <<_ACEOF 16625#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16626_ACEOF 16627 16628fi 16629done 16630 16631 16632 16633 if test "X$prefix" = "XNONE"; then 16634 acl_final_prefix="$ac_default_prefix" 16635 else 16636 acl_final_prefix="$prefix" 16637 fi 16638 if test "X$exec_prefix" = "XNONE"; then 16639 acl_final_exec_prefix='${prefix}' 16640 else 16641 acl_final_exec_prefix="$exec_prefix" 16642 fi 16643 acl_save_prefix="$prefix" 16644 prefix="$acl_final_prefix" 16645 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 16646 prefix="$acl_save_prefix" 16647 16648 16649 16650# Check whether --with-gnu-ld was given. 16651if test "${with_gnu_ld+set}" = set; then : 16652 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 16653else 16654 with_gnu_ld=no 16655fi 16656 16657# Prepare PATH_SEPARATOR. 16658# The user is always right. 16659if test "${PATH_SEPARATOR+set}" != set; then 16660 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 16661 # contains only /bin. Note that ksh looks also at the FPATH variable, 16662 # so we have to set that as well for the test. 16663 PATH_SEPARATOR=: 16664 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 16665 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 16666 || PATH_SEPARATOR=';' 16667 } 16668fi 16669 16670ac_prog=ld 16671if test "$GCC" = yes; then 16672 # Check if gcc -print-prog-name=ld gives a path. 16673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 16674$as_echo_n "checking for ld used by $CC... " >&6; } 16675 case $host in 16676 *-*-mingw*) 16677 # gcc leaves a trailing carriage return which upsets mingw 16678 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 16679 *) 16680 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 16681 esac 16682 case $ac_prog in 16683 # Accept absolute paths. 16684 [\\/]* | ?:[\\/]*) 16685 re_direlt='/[^/][^/]*/\.\./' 16686 # Canonicalize the pathname of ld 16687 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` 16688 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do 16689 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 16690 done 16691 test -z "$LD" && LD="$ac_prog" 16692 ;; 16693 "") 16694 # If it fails, then pretend we aren't using GCC. 16695 ac_prog=ld 16696 ;; 16697 *) 16698 # If it is relative, then search for the first ld in PATH. 16699 with_gnu_ld=unknown 16700 ;; 16701 esac 16702elif test "$with_gnu_ld" = yes; then 16703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 16704$as_echo_n "checking for GNU ld... " >&6; } 16705else 16706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 16707$as_echo_n "checking for non-GNU ld... " >&6; } 16708fi 16709if ${acl_cv_path_LD+:} false; then : 16710 $as_echo_n "(cached) " >&6 16711else 16712 if test -z "$LD"; then 16713 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 16714 for ac_dir in $PATH; do 16715 IFS="$acl_save_ifs" 16716 test -z "$ac_dir" && ac_dir=. 16717 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 16718 acl_cv_path_LD="$ac_dir/$ac_prog" 16719 # Check to see if the program is GNU ld. I'd rather use --version, 16720 # but apparently some variants of GNU ld only accept -v. 16721 # Break only if it was the GNU/non-GNU ld that we prefer. 16722 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in 16723 *GNU* | *'with BFD'*) 16724 test "$with_gnu_ld" != no && break 16725 ;; 16726 *) 16727 test "$with_gnu_ld" != yes && break 16728 ;; 16729 esac 16730 fi 16731 done 16732 IFS="$acl_save_ifs" 16733else 16734 acl_cv_path_LD="$LD" # Let the user override the test with a path. 16735fi 16736fi 16737 16738LD="$acl_cv_path_LD" 16739if test -n "$LD"; then 16740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 16741$as_echo "$LD" >&6; } 16742else 16743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16744$as_echo "no" >&6; } 16745fi 16746test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 16747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 16748$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 16749if ${acl_cv_prog_gnu_ld+:} false; then : 16750 $as_echo_n "(cached) " >&6 16751else 16752 # I'd rather use --version here, but apparently some GNU lds only accept -v. 16753case `$LD -v 2>&1 </dev/null` in 16754*GNU* | *'with BFD'*) 16755 acl_cv_prog_gnu_ld=yes 16756 ;; 16757*) 16758 acl_cv_prog_gnu_ld=no 16759 ;; 16760esac 16761fi 16762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 16763$as_echo "$acl_cv_prog_gnu_ld" >&6; } 16764with_gnu_ld=$acl_cv_prog_gnu_ld 16765 16766 16767 16768 16769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 16770$as_echo_n "checking for shared library run path origin... " >&6; } 16771if ${acl_cv_rpath+:} false; then : 16772 $as_echo_n "(cached) " >&6 16773else 16774 16775 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 16776 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 16777 . ./conftest.sh 16778 rm -f ./conftest.sh 16779 acl_cv_rpath=done 16780 16781fi 16782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 16783$as_echo "$acl_cv_rpath" >&6; } 16784 wl="$acl_cv_wl" 16785 acl_libext="$acl_cv_libext" 16786 acl_shlibext="$acl_cv_shlibext" 16787 acl_libname_spec="$acl_cv_libname_spec" 16788 acl_library_names_spec="$acl_cv_library_names_spec" 16789 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 16790 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 16791 acl_hardcode_direct="$acl_cv_hardcode_direct" 16792 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 16793 # Check whether --enable-rpath was given. 16794if test "${enable_rpath+set}" = set; then : 16795 enableval=$enable_rpath; : 16796else 16797 enable_rpath=yes 16798fi 16799 16800 16801 16802 16803 acl_libdirstem=lib 16804 acl_libdirstem2= 16805 case "$host_os" in 16806 solaris*) 16807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 16808$as_echo_n "checking for 64-bit host... " >&6; } 16809if ${gl_cv_solaris_64bit+:} false; then : 16810 $as_echo_n "(cached) " >&6 16811else 16812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16813/* end confdefs.h. */ 16814 16815#ifdef _LP64 16816sixtyfour bits 16817#endif 16818 16819_ACEOF 16820if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16821 $EGREP "sixtyfour bits" >/dev/null 2>&1; then : 16822 gl_cv_solaris_64bit=yes 16823else 16824 gl_cv_solaris_64bit=no 16825fi 16826rm -f conftest* 16827 16828 16829fi 16830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 16831$as_echo "$gl_cv_solaris_64bit" >&6; } 16832 if test $gl_cv_solaris_64bit = yes; then 16833 acl_libdirstem=lib/64 16834 case "$host_cpu" in 16835 sparc*) acl_libdirstem2=lib/sparcv9 ;; 16836 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; 16837 esac 16838 fi 16839 ;; 16840 *) 16841 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 16842 if test -n "$searchpath"; then 16843 acl_save_IFS="${IFS= }"; IFS=":" 16844 for searchdir in $searchpath; do 16845 if test -d "$searchdir"; then 16846 case "$searchdir" in 16847 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 16848 */../ | */.. ) 16849 # Better ignore directories of this form. They are misleading. 16850 ;; 16851 *) searchdir=`cd "$searchdir" && pwd` 16852 case "$searchdir" in 16853 */lib64 ) acl_libdirstem=lib64 ;; 16854 esac ;; 16855 esac 16856 fi 16857 done 16858 IFS="$acl_save_IFS" 16859 fi 16860 ;; 16861 esac 16862 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" 16863 16864 16865 16866 16867 16868 16869 16870 16871 16872 16873 16874 16875 use_additional=yes 16876 16877 acl_save_prefix="$prefix" 16878 prefix="$acl_final_prefix" 16879 acl_save_exec_prefix="$exec_prefix" 16880 exec_prefix="$acl_final_exec_prefix" 16881 16882 eval additional_includedir=\"$includedir\" 16883 eval additional_libdir=\"$libdir\" 16884 16885 exec_prefix="$acl_save_exec_prefix" 16886 prefix="$acl_save_prefix" 16887 16888 16889# Check whether --with-libiconv-prefix was given. 16890if test "${with_libiconv_prefix+set}" = set; then : 16891 withval=$with_libiconv_prefix; 16892 if test "X$withval" = "Xno"; then 16893 use_additional=no 16894 else 16895 if test "X$withval" = "X"; then 16896 16897 acl_save_prefix="$prefix" 16898 prefix="$acl_final_prefix" 16899 acl_save_exec_prefix="$exec_prefix" 16900 exec_prefix="$acl_final_exec_prefix" 16901 16902 eval additional_includedir=\"$includedir\" 16903 eval additional_libdir=\"$libdir\" 16904 16905 exec_prefix="$acl_save_exec_prefix" 16906 prefix="$acl_save_prefix" 16907 16908 else 16909 additional_includedir="$withval/include" 16910 additional_libdir="$withval/$acl_libdirstem" 16911 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 16912 && ! test -d "$withval/$acl_libdirstem"; then 16913 additional_libdir="$withval/$acl_libdirstem2" 16914 fi 16915 fi 16916 fi 16917 16918fi 16919 16920 LIBICONV= 16921 LTLIBICONV= 16922 INCICONV= 16923 LIBICONV_PREFIX= 16924 HAVE_LIBICONV= 16925 rpathdirs= 16926 ltrpathdirs= 16927 names_already_handled= 16928 names_next_round='iconv ' 16929 while test -n "$names_next_round"; do 16930 names_this_round="$names_next_round" 16931 names_next_round= 16932 for name in $names_this_round; do 16933 already_handled= 16934 for n in $names_already_handled; do 16935 if test "$n" = "$name"; then 16936 already_handled=yes 16937 break 16938 fi 16939 done 16940 if test -z "$already_handled"; then 16941 names_already_handled="$names_already_handled $name" 16942 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 16943 eval value=\"\$HAVE_LIB$uppername\" 16944 if test -n "$value"; then 16945 if test "$value" = yes; then 16946 eval value=\"\$LIB$uppername\" 16947 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 16948 eval value=\"\$LTLIB$uppername\" 16949 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 16950 else 16951 : 16952 fi 16953 else 16954 found_dir= 16955 found_la= 16956 found_so= 16957 found_a= 16958 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 16959 if test -n "$acl_shlibext"; then 16960 shrext=".$acl_shlibext" # typically: shrext=.so 16961 else 16962 shrext= 16963 fi 16964 if test $use_additional = yes; then 16965 dir="$additional_libdir" 16966 if test -n "$acl_shlibext"; then 16967 if test -f "$dir/$libname$shrext"; then 16968 found_dir="$dir" 16969 found_so="$dir/$libname$shrext" 16970 else 16971 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 16972 ver=`(cd "$dir" && \ 16973 for f in "$libname$shrext".*; do echo "$f"; done \ 16974 | sed -e "s,^$libname$shrext\\\\.,," \ 16975 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 16976 | sed 1q ) 2>/dev/null` 16977 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 16978 found_dir="$dir" 16979 found_so="$dir/$libname$shrext.$ver" 16980 fi 16981 else 16982 eval library_names=\"$acl_library_names_spec\" 16983 for f in $library_names; do 16984 if test -f "$dir/$f"; then 16985 found_dir="$dir" 16986 found_so="$dir/$f" 16987 break 16988 fi 16989 done 16990 fi 16991 fi 16992 fi 16993 if test "X$found_dir" = "X"; then 16994 if test -f "$dir/$libname.$acl_libext"; then 16995 found_dir="$dir" 16996 found_a="$dir/$libname.$acl_libext" 16997 fi 16998 fi 16999 if test "X$found_dir" != "X"; then 17000 if test -f "$dir/$libname.la"; then 17001 found_la="$dir/$libname.la" 17002 fi 17003 fi 17004 fi 17005 if test "X$found_dir" = "X"; then 17006 for x in $LDFLAGS $LTLIBICONV; do 17007 17008 acl_save_prefix="$prefix" 17009 prefix="$acl_final_prefix" 17010 acl_save_exec_prefix="$exec_prefix" 17011 exec_prefix="$acl_final_exec_prefix" 17012 eval x=\"$x\" 17013 exec_prefix="$acl_save_exec_prefix" 17014 prefix="$acl_save_prefix" 17015 17016 case "$x" in 17017 -L*) 17018 dir=`echo "X$x" | sed -e 's/^X-L//'` 17019 if test -n "$acl_shlibext"; then 17020 if test -f "$dir/$libname$shrext"; then 17021 found_dir="$dir" 17022 found_so="$dir/$libname$shrext" 17023 else 17024 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 17025 ver=`(cd "$dir" && \ 17026 for f in "$libname$shrext".*; do echo "$f"; done \ 17027 | sed -e "s,^$libname$shrext\\\\.,," \ 17028 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 17029 | sed 1q ) 2>/dev/null` 17030 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 17031 found_dir="$dir" 17032 found_so="$dir/$libname$shrext.$ver" 17033 fi 17034 else 17035 eval library_names=\"$acl_library_names_spec\" 17036 for f in $library_names; do 17037 if test -f "$dir/$f"; then 17038 found_dir="$dir" 17039 found_so="$dir/$f" 17040 break 17041 fi 17042 done 17043 fi 17044 fi 17045 fi 17046 if test "X$found_dir" = "X"; then 17047 if test -f "$dir/$libname.$acl_libext"; then 17048 found_dir="$dir" 17049 found_a="$dir/$libname.$acl_libext" 17050 fi 17051 fi 17052 if test "X$found_dir" != "X"; then 17053 if test -f "$dir/$libname.la"; then 17054 found_la="$dir/$libname.la" 17055 fi 17056 fi 17057 ;; 17058 esac 17059 if test "X$found_dir" != "X"; then 17060 break 17061 fi 17062 done 17063 fi 17064 if test "X$found_dir" != "X"; then 17065 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 17066 if test "X$found_so" != "X"; then 17067 if test "$enable_rpath" = no \ 17068 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 17069 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 17070 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 17071 else 17072 haveit= 17073 for x in $ltrpathdirs; do 17074 if test "X$x" = "X$found_dir"; then 17075 haveit=yes 17076 break 17077 fi 17078 done 17079 if test -z "$haveit"; then 17080 ltrpathdirs="$ltrpathdirs $found_dir" 17081 fi 17082 if test "$acl_hardcode_direct" = yes; then 17083 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 17084 else 17085 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 17086 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 17087 haveit= 17088 for x in $rpathdirs; do 17089 if test "X$x" = "X$found_dir"; then 17090 haveit=yes 17091 break 17092 fi 17093 done 17094 if test -z "$haveit"; then 17095 rpathdirs="$rpathdirs $found_dir" 17096 fi 17097 else 17098 haveit= 17099 for x in $LDFLAGS $LIBICONV; do 17100 17101 acl_save_prefix="$prefix" 17102 prefix="$acl_final_prefix" 17103 acl_save_exec_prefix="$exec_prefix" 17104 exec_prefix="$acl_final_exec_prefix" 17105 eval x=\"$x\" 17106 exec_prefix="$acl_save_exec_prefix" 17107 prefix="$acl_save_prefix" 17108 17109 if test "X$x" = "X-L$found_dir"; then 17110 haveit=yes 17111 break 17112 fi 17113 done 17114 if test -z "$haveit"; then 17115 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 17116 fi 17117 if test "$acl_hardcode_minus_L" != no; then 17118 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 17119 else 17120 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 17121 fi 17122 fi 17123 fi 17124 fi 17125 else 17126 if test "X$found_a" != "X"; then 17127 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 17128 else 17129 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 17130 fi 17131 fi 17132 additional_includedir= 17133 case "$found_dir" in 17134 */$acl_libdirstem | */$acl_libdirstem/) 17135 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 17136 if test "$name" = 'iconv'; then 17137 LIBICONV_PREFIX="$basedir" 17138 fi 17139 additional_includedir="$basedir/include" 17140 ;; 17141 */$acl_libdirstem2 | */$acl_libdirstem2/) 17142 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 17143 if test "$name" = 'iconv'; then 17144 LIBICONV_PREFIX="$basedir" 17145 fi 17146 additional_includedir="$basedir/include" 17147 ;; 17148 esac 17149 if test "X$additional_includedir" != "X"; then 17150 if test "X$additional_includedir" != "X/usr/include"; then 17151 haveit= 17152 if test "X$additional_includedir" = "X/usr/local/include"; then 17153 if test -n "$GCC"; then 17154 case $host_os in 17155 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 17156 esac 17157 fi 17158 fi 17159 if test -z "$haveit"; then 17160 for x in $CPPFLAGS $INCICONV; do 17161 17162 acl_save_prefix="$prefix" 17163 prefix="$acl_final_prefix" 17164 acl_save_exec_prefix="$exec_prefix" 17165 exec_prefix="$acl_final_exec_prefix" 17166 eval x=\"$x\" 17167 exec_prefix="$acl_save_exec_prefix" 17168 prefix="$acl_save_prefix" 17169 17170 if test "X$x" = "X-I$additional_includedir"; then 17171 haveit=yes 17172 break 17173 fi 17174 done 17175 if test -z "$haveit"; then 17176 if test -d "$additional_includedir"; then 17177 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 17178 fi 17179 fi 17180 fi 17181 fi 17182 fi 17183 if test -n "$found_la"; then 17184 save_libdir="$libdir" 17185 case "$found_la" in 17186 */* | *\\*) . "$found_la" ;; 17187 *) . "./$found_la" ;; 17188 esac 17189 libdir="$save_libdir" 17190 for dep in $dependency_libs; do 17191 case "$dep" in 17192 -L*) 17193 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 17194 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 17195 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 17196 haveit= 17197 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 17198 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 17199 if test -n "$GCC"; then 17200 case $host_os in 17201 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 17202 esac 17203 fi 17204 fi 17205 if test -z "$haveit"; then 17206 haveit= 17207 for x in $LDFLAGS $LIBICONV; do 17208 17209 acl_save_prefix="$prefix" 17210 prefix="$acl_final_prefix" 17211 acl_save_exec_prefix="$exec_prefix" 17212 exec_prefix="$acl_final_exec_prefix" 17213 eval x=\"$x\" 17214 exec_prefix="$acl_save_exec_prefix" 17215 prefix="$acl_save_prefix" 17216 17217 if test "X$x" = "X-L$additional_libdir"; then 17218 haveit=yes 17219 break 17220 fi 17221 done 17222 if test -z "$haveit"; then 17223 if test -d "$additional_libdir"; then 17224 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 17225 fi 17226 fi 17227 haveit= 17228 for x in $LDFLAGS $LTLIBICONV; do 17229 17230 acl_save_prefix="$prefix" 17231 prefix="$acl_final_prefix" 17232 acl_save_exec_prefix="$exec_prefix" 17233 exec_prefix="$acl_final_exec_prefix" 17234 eval x=\"$x\" 17235 exec_prefix="$acl_save_exec_prefix" 17236 prefix="$acl_save_prefix" 17237 17238 if test "X$x" = "X-L$additional_libdir"; then 17239 haveit=yes 17240 break 17241 fi 17242 done 17243 if test -z "$haveit"; then 17244 if test -d "$additional_libdir"; then 17245 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 17246 fi 17247 fi 17248 fi 17249 fi 17250 ;; 17251 -R*) 17252 dir=`echo "X$dep" | sed -e 's/^X-R//'` 17253 if test "$enable_rpath" != no; then 17254 haveit= 17255 for x in $rpathdirs; do 17256 if test "X$x" = "X$dir"; then 17257 haveit=yes 17258 break 17259 fi 17260 done 17261 if test -z "$haveit"; then 17262 rpathdirs="$rpathdirs $dir" 17263 fi 17264 haveit= 17265 for x in $ltrpathdirs; do 17266 if test "X$x" = "X$dir"; then 17267 haveit=yes 17268 break 17269 fi 17270 done 17271 if test -z "$haveit"; then 17272 ltrpathdirs="$ltrpathdirs $dir" 17273 fi 17274 fi 17275 ;; 17276 -l*) 17277 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 17278 ;; 17279 *.la) 17280 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 17281 ;; 17282 *) 17283 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 17284 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 17285 ;; 17286 esac 17287 done 17288 fi 17289 else 17290 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 17291 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 17292 fi 17293 fi 17294 fi 17295 done 17296 done 17297 if test "X$rpathdirs" != "X"; then 17298 if test -n "$acl_hardcode_libdir_separator"; then 17299 alldirs= 17300 for found_dir in $rpathdirs; do 17301 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 17302 done 17303 acl_save_libdir="$libdir" 17304 libdir="$alldirs" 17305 eval flag=\"$acl_hardcode_libdir_flag_spec\" 17306 libdir="$acl_save_libdir" 17307 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 17308 else 17309 for found_dir in $rpathdirs; do 17310 acl_save_libdir="$libdir" 17311 libdir="$found_dir" 17312 eval flag=\"$acl_hardcode_libdir_flag_spec\" 17313 libdir="$acl_save_libdir" 17314 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 17315 done 17316 fi 17317 fi 17318 if test "X$ltrpathdirs" != "X"; then 17319 for found_dir in $ltrpathdirs; do 17320 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 17321 done 17322 fi 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 am_save_CPPFLAGS="$CPPFLAGS" 17336 17337 for element in $INCICONV; do 17338 haveit= 17339 for x in $CPPFLAGS; do 17340 17341 acl_save_prefix="$prefix" 17342 prefix="$acl_final_prefix" 17343 acl_save_exec_prefix="$exec_prefix" 17344 exec_prefix="$acl_final_exec_prefix" 17345 eval x=\"$x\" 17346 exec_prefix="$acl_save_exec_prefix" 17347 prefix="$acl_save_prefix" 17348 17349 if test "X$x" = "X$element"; then 17350 haveit=yes 17351 break 17352 fi 17353 done 17354 if test -z "$haveit"; then 17355 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 17356 fi 17357 done 17358 17359 17360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 17361$as_echo_n "checking for iconv... " >&6; } 17362if ${am_cv_func_iconv+:} false; then : 17363 $as_echo_n "(cached) " >&6 17364else 17365 17366 am_cv_func_iconv="no, consider installing GNU libiconv" 17367 am_cv_lib_iconv=no 17368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17369/* end confdefs.h. */ 17370 17371#include <stdlib.h> 17372#include <iconv.h> 17373 17374int 17375main () 17376{ 17377iconv_t cd = iconv_open("",""); 17378 iconv(cd,NULL,NULL,NULL,NULL); 17379 iconv_close(cd); 17380 ; 17381 return 0; 17382} 17383_ACEOF 17384if ac_fn_c_try_link "$LINENO"; then : 17385 am_cv_func_iconv=yes 17386fi 17387rm -f core conftest.err conftest.$ac_objext \ 17388 conftest$ac_exeext conftest.$ac_ext 17389 if test "$am_cv_func_iconv" != yes; then 17390 am_save_LIBS="$LIBS" 17391 LIBS="$LIBS $LIBICONV" 17392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17393/* end confdefs.h. */ 17394 17395#include <stdlib.h> 17396#include <iconv.h> 17397 17398int 17399main () 17400{ 17401iconv_t cd = iconv_open("",""); 17402 iconv(cd,NULL,NULL,NULL,NULL); 17403 iconv_close(cd); 17404 ; 17405 return 0; 17406} 17407_ACEOF 17408if ac_fn_c_try_link "$LINENO"; then : 17409 am_cv_lib_iconv=yes 17410 am_cv_func_iconv=yes 17411fi 17412rm -f core conftest.err conftest.$ac_objext \ 17413 conftest$ac_exeext conftest.$ac_ext 17414 LIBS="$am_save_LIBS" 17415 fi 17416 17417fi 17418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 17419$as_echo "$am_cv_func_iconv" >&6; } 17420 if test "$am_cv_func_iconv" = yes; then 17421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 17422$as_echo_n "checking for working iconv... " >&6; } 17423if ${am_cv_func_iconv_works+:} false; then : 17424 $as_echo_n "(cached) " >&6 17425else 17426 17427 am_save_LIBS="$LIBS" 17428 if test $am_cv_lib_iconv = yes; then 17429 LIBS="$LIBS $LIBICONV" 17430 fi 17431 if test "$cross_compiling" = yes; then : 17432 17433 case "$host_os" in 17434 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 17435 *) am_cv_func_iconv_works="guessing yes" ;; 17436 esac 17437 17438else 17439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17440/* end confdefs.h. */ 17441 17442#include <iconv.h> 17443#include <string.h> 17444int main () 17445{ 17446 int result = 0; 17447 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 17448 returns. */ 17449 { 17450 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 17451 if (cd_utf8_to_88591 != (iconv_t)(-1)) 17452 { 17453 static const char input[] = "\342\202\254"; /* EURO SIGN */ 17454 char buf[10]; 17455 const char *inptr = input; 17456 size_t inbytesleft = strlen (input); 17457 char *outptr = buf; 17458 size_t outbytesleft = sizeof (buf); 17459 size_t res = iconv (cd_utf8_to_88591, 17460 (char **) &inptr, &inbytesleft, 17461 &outptr, &outbytesleft); 17462 if (res == 0) 17463 result |= 1; 17464 iconv_close (cd_utf8_to_88591); 17465 } 17466 } 17467 /* Test against Solaris 10 bug: Failures are not distinguishable from 17468 successful returns. */ 17469 { 17470 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 17471 if (cd_ascii_to_88591 != (iconv_t)(-1)) 17472 { 17473 static const char input[] = "\263"; 17474 char buf[10]; 17475 const char *inptr = input; 17476 size_t inbytesleft = strlen (input); 17477 char *outptr = buf; 17478 size_t outbytesleft = sizeof (buf); 17479 size_t res = iconv (cd_ascii_to_88591, 17480 (char **) &inptr, &inbytesleft, 17481 &outptr, &outbytesleft); 17482 if (res == 0) 17483 result |= 2; 17484 iconv_close (cd_ascii_to_88591); 17485 } 17486 } 17487 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ 17488 { 17489 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); 17490 if (cd_88591_to_utf8 != (iconv_t)(-1)) 17491 { 17492 static const char input[] = "\304"; 17493 static char buf[2] = { (char)0xDE, (char)0xAD }; 17494 const char *inptr = input; 17495 size_t inbytesleft = 1; 17496 char *outptr = buf; 17497 size_t outbytesleft = 1; 17498 size_t res = iconv (cd_88591_to_utf8, 17499 (char **) &inptr, &inbytesleft, 17500 &outptr, &outbytesleft); 17501 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) 17502 result |= 4; 17503 iconv_close (cd_88591_to_utf8); 17504 } 17505 } 17506#if 0 /* This bug could be worked around by the caller. */ 17507 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 17508 { 17509 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 17510 if (cd_88591_to_utf8 != (iconv_t)(-1)) 17511 { 17512 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 17513 char buf[50]; 17514 const char *inptr = input; 17515 size_t inbytesleft = strlen (input); 17516 char *outptr = buf; 17517 size_t outbytesleft = sizeof (buf); 17518 size_t res = iconv (cd_88591_to_utf8, 17519 (char **) &inptr, &inbytesleft, 17520 &outptr, &outbytesleft); 17521 if ((int)res > 0) 17522 result |= 8; 17523 iconv_close (cd_88591_to_utf8); 17524 } 17525 } 17526#endif 17527 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 17528 provided. */ 17529 if (/* Try standardized names. */ 17530 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) 17531 /* Try IRIX, OSF/1 names. */ 17532 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) 17533 /* Try AIX names. */ 17534 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) 17535 /* Try HP-UX names. */ 17536 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) 17537 result |= 16; 17538 return result; 17539} 17540_ACEOF 17541if ac_fn_c_try_run "$LINENO"; then : 17542 am_cv_func_iconv_works=yes 17543else 17544 am_cv_func_iconv_works=no 17545fi 17546rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17547 conftest.$ac_objext conftest.beam conftest.$ac_ext 17548fi 17549 17550 LIBS="$am_save_LIBS" 17551 17552fi 17553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 17554$as_echo "$am_cv_func_iconv_works" >&6; } 17555 case "$am_cv_func_iconv_works" in 17556 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 17557 *) am_func_iconv=yes ;; 17558 esac 17559 else 17560 am_func_iconv=no am_cv_lib_iconv=no 17561 fi 17562 if test "$am_func_iconv" = yes; then 17563 17564$as_echo "#define HAVE_ICONV 1" >>confdefs.h 17565 17566 fi 17567 if test "$am_cv_lib_iconv" = yes; then 17568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 17569$as_echo_n "checking how to link with libiconv... " >&6; } 17570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 17571$as_echo "$LIBICONV" >&6; } 17572 else 17573 CPPFLAGS="$am_save_CPPFLAGS" 17574 LIBICONV= 17575 LTLIBICONV= 17576 fi 17577 17578 17579 17580 if test "$am_cv_func_iconv" = yes; then 17581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 17582$as_echo_n "checking for iconv declaration... " >&6; } 17583 if ${am_cv_proto_iconv+:} false; then : 17584 $as_echo_n "(cached) " >&6 17585else 17586 17587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17588/* end confdefs.h. */ 17589 17590#include <stdlib.h> 17591#include <iconv.h> 17592extern 17593#ifdef __cplusplus 17594"C" 17595#endif 17596#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) 17597size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 17598#else 17599size_t iconv(); 17600#endif 17601 17602int 17603main () 17604{ 17605 17606 ; 17607 return 0; 17608} 17609_ACEOF 17610if ac_fn_c_try_compile "$LINENO"; then : 17611 am_cv_proto_iconv_arg1="" 17612else 17613 am_cv_proto_iconv_arg1="const" 17614fi 17615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17616 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 17617fi 17618 17619 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 17620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 17621 $am_cv_proto_iconv" >&5 17622$as_echo " 17623 $am_cv_proto_iconv" >&6; } 17624 17625cat >>confdefs.h <<_ACEOF 17626#define ICONV_CONST $am_cv_proto_iconv_arg1 17627_ACEOF 17628 17629 17630 fi 17631 17632 17633if test "x$am_cv_func_iconv" != xyes; then 17634as_fn_error $? "iconv not found" "$LINENO" 5 17635fi 17636 17637 17638pkg_failed=no 17639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML" >&5 17640$as_echo_n "checking for LIBXML... " >&6; } 17641 17642if test -n "$LIBXML_CFLAGS"; then 17643 pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS" 17644 elif test -n "$PKG_CONFIG"; then 17645 if test -n "$PKG_CONFIG" && \ 17646 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.5\""; } >&5 17647 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.5") 2>&5 17648 ac_status=$? 17649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17650 test $ac_status = 0; }; then 17651 pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.5" 2>/dev/null` 17652 test "x$?" != "x0" && pkg_failed=yes 17653else 17654 pkg_failed=yes 17655fi 17656 else 17657 pkg_failed=untried 17658fi 17659if test -n "$LIBXML_LIBS"; then 17660 pkg_cv_LIBXML_LIBS="$LIBXML_LIBS" 17661 elif test -n "$PKG_CONFIG"; then 17662 if test -n "$PKG_CONFIG" && \ 17663 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.5\""; } >&5 17664 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.5") 2>&5 17665 ac_status=$? 17666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17667 test $ac_status = 0; }; then 17668 pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.5" 2>/dev/null` 17669 test "x$?" != "x0" && pkg_failed=yes 17670else 17671 pkg_failed=yes 17672fi 17673 else 17674 pkg_failed=untried 17675fi 17676 17677 17678 17679if test $pkg_failed = yes; then 17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17681$as_echo "no" >&6; } 17682 17683if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17684 _pkg_short_errors_supported=yes 17685else 17686 _pkg_short_errors_supported=no 17687fi 17688 if test $_pkg_short_errors_supported = yes; then 17689 LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.5" 2>&1` 17690 else 17691 LIBXML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.5" 2>&1` 17692 fi 17693 # Put the nasty error message in config.log where it belongs 17694 echo "$LIBXML_PKG_ERRORS" >&5 17695 17696 as_fn_error $? "Package requirements (libxml-2.0 >= 2.5) were not met: 17697 17698$LIBXML_PKG_ERRORS 17699 17700Consider adjusting the PKG_CONFIG_PATH environment variable if you 17701installed software in a non-standard prefix. 17702 17703Alternatively, you may set the environment variables LIBXML_CFLAGS 17704and LIBXML_LIBS to avoid the need to call pkg-config. 17705See the pkg-config man page for more details." "$LINENO" 5 17706elif test $pkg_failed = untried; then 17707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17708$as_echo "no" >&6; } 17709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17710$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17711as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17712is in your PATH or set the PKG_CONFIG environment variable to the full 17713path to pkg-config. 17714 17715Alternatively, you may set the environment variables LIBXML_CFLAGS 17716and LIBXML_LIBS to avoid the need to call pkg-config. 17717See the pkg-config man page for more details. 17718 17719To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17720See \`config.log' for more details" "$LINENO" 5; } 17721else 17722 LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS 17723 LIBXML_LIBS=$pkg_cv_LIBXML_LIBS 17724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17725$as_echo "yes" >&6; } 17726 17727fi 17728 17729COMMONLIB_INCLUDE_DIR=../lib/src 17730 17731COMMONLIB_LIBRARY=../lib/src/libcommon.la 17732 17733 17734ac_config_files="$ac_config_files Makefile src/Makefile" 17735 17736cat >confcache <<\_ACEOF 17737# This file is a shell script that caches the results of configure 17738# tests run on this system so they can be shared between configure 17739# scripts and configure runs, see configure's option --config-cache. 17740# It is not useful on other systems. If it contains results you don't 17741# want to keep, you may remove or edit it. 17742# 17743# config.status only pays attention to the cache file if you give it 17744# the --recheck option to rerun configure. 17745# 17746# `ac_cv_env_foo' variables (set or unset) will be overridden when 17747# loading this file, other *unset* `ac_cv_foo' will be assigned the 17748# following values. 17749 17750_ACEOF 17751 17752# The following way of writing the cache mishandles newlines in values, 17753# but we know of no workaround that is simple, portable, and efficient. 17754# So, we kill variables containing newlines. 17755# Ultrix sh set writes to stderr and can't be redirected directly, 17756# and sets the high bit in the cache file unless we assign to the vars. 17757( 17758 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17759 eval ac_val=\$$ac_var 17760 case $ac_val in #( 17761 *${as_nl}*) 17762 case $ac_var in #( 17763 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17764$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17765 esac 17766 case $ac_var in #( 17767 _ | IFS | as_nl) ;; #( 17768 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17769 *) { eval $ac_var=; unset $ac_var;} ;; 17770 esac ;; 17771 esac 17772 done 17773 17774 (set) 2>&1 | 17775 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17776 *${as_nl}ac_space=\ *) 17777 # `set' does not quote correctly, so add quotes: double-quote 17778 # substitution turns \\\\ into \\, and sed turns \\ into \. 17779 sed -n \ 17780 "s/'/'\\\\''/g; 17781 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17782 ;; #( 17783 *) 17784 # `set' quotes correctly as required by POSIX, so do not add quotes. 17785 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17786 ;; 17787 esac | 17788 sort 17789) | 17790 sed ' 17791 /^ac_cv_env_/b end 17792 t clear 17793 :clear 17794 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17795 t end 17796 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17797 :end' >>confcache 17798if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17799 if test -w "$cache_file"; then 17800 if test "x$cache_file" != "x/dev/null"; then 17801 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17802$as_echo "$as_me: updating cache $cache_file" >&6;} 17803 if test ! -f "$cache_file" || test -h "$cache_file"; then 17804 cat confcache >"$cache_file" 17805 else 17806 case $cache_file in #( 17807 */* | ?:*) 17808 mv -f confcache "$cache_file"$$ && 17809 mv -f "$cache_file"$$ "$cache_file" ;; #( 17810 *) 17811 mv -f confcache "$cache_file" ;; 17812 esac 17813 fi 17814 fi 17815 else 17816 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17817$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17818 fi 17819fi 17820rm -f confcache 17821 17822test "x$prefix" = xNONE && prefix=$ac_default_prefix 17823# Let make expand exec_prefix. 17824test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17825 17826DEFS=-DHAVE_CONFIG_H 17827 17828ac_libobjs= 17829ac_ltlibobjs= 17830U= 17831for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17832 # 1. Remove the extension, and $U if already installed. 17833 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17834 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17835 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17836 # will be set to the directory where LIBOBJS objects are built. 17837 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17838 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17839done 17840LIBOBJS=$ac_libobjs 17841 17842LTLIBOBJS=$ac_ltlibobjs 17843 17844 17845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 17846$as_echo_n "checking that generated files are newer than configure... " >&6; } 17847 if test -n "$am_sleep_pid"; then 17848 # Hide warnings about reused PIDs. 17849 wait $am_sleep_pid 2>/dev/null 17850 fi 17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 17852$as_echo "done" >&6; } 17853 if test -n "$EXEEXT"; then 17854 am__EXEEXT_TRUE= 17855 am__EXEEXT_FALSE='#' 17856else 17857 am__EXEEXT_TRUE='#' 17858 am__EXEEXT_FALSE= 17859fi 17860 17861if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17862 as_fn_error $? "conditional \"AMDEP\" was never defined. 17863Usually this means the macro was only invoked conditionally." "$LINENO" 5 17864fi 17865if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17866 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17867Usually this means the macro was only invoked conditionally." "$LINENO" 5 17868fi 17869if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17870 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17871Usually this means the macro was only invoked conditionally." "$LINENO" 5 17872fi 17873if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 17874 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 17875Usually this means the macro was only invoked conditionally." "$LINENO" 5 17876fi 17877 17878: "${CONFIG_STATUS=./config.status}" 17879ac_write_fail=0 17880ac_clean_files_save=$ac_clean_files 17881ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17882{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17883$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17884as_write_fail=0 17885cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17886#! $SHELL 17887# Generated by $as_me. 17888# Run this file to recreate the current configuration. 17889# Compiler output produced by configure, useful for debugging 17890# configure, is in config.log if it exists. 17891 17892debug=false 17893ac_cs_recheck=false 17894ac_cs_silent=false 17895 17896SHELL=\${CONFIG_SHELL-$SHELL} 17897export SHELL 17898_ASEOF 17899cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17900## -------------------- ## 17901## M4sh Initialization. ## 17902## -------------------- ## 17903 17904# Be more Bourne compatible 17905DUALCASE=1; export DUALCASE # for MKS sh 17906if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17907 emulate sh 17908 NULLCMD=: 17909 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17910 # is contrary to our usage. Disable this feature. 17911 alias -g '${1+"$@"}'='"$@"' 17912 setopt NO_GLOB_SUBST 17913else 17914 case `(set -o) 2>/dev/null` in #( 17915 *posix*) : 17916 set -o posix ;; #( 17917 *) : 17918 ;; 17919esac 17920fi 17921 17922 17923as_nl=' 17924' 17925export as_nl 17926# Printing a long string crashes Solaris 7 /usr/bin/printf. 17927as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17928as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17929as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17930# Prefer a ksh shell builtin over an external printf program on Solaris, 17931# but without wasting forks for bash or zsh. 17932if test -z "$BASH_VERSION$ZSH_VERSION" \ 17933 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17934 as_echo='print -r --' 17935 as_echo_n='print -rn --' 17936elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17937 as_echo='printf %s\n' 17938 as_echo_n='printf %s' 17939else 17940 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17941 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17942 as_echo_n='/usr/ucb/echo -n' 17943 else 17944 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17945 as_echo_n_body='eval 17946 arg=$1; 17947 case $arg in #( 17948 *"$as_nl"*) 17949 expr "X$arg" : "X\\(.*\\)$as_nl"; 17950 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17951 esac; 17952 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17953 ' 17954 export as_echo_n_body 17955 as_echo_n='sh -c $as_echo_n_body as_echo' 17956 fi 17957 export as_echo_body 17958 as_echo='sh -c $as_echo_body as_echo' 17959fi 17960 17961# The user is always right. 17962if test "${PATH_SEPARATOR+set}" != set; then 17963 PATH_SEPARATOR=: 17964 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17965 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17966 PATH_SEPARATOR=';' 17967 } 17968fi 17969 17970 17971# IFS 17972# We need space, tab and new line, in precisely that order. Quoting is 17973# there to prevent editors from complaining about space-tab. 17974# (If _AS_PATH_WALK were called with IFS unset, it would disable word 17975# splitting by setting IFS to empty value.) 17976IFS=" "" $as_nl" 17977 17978# Find who we are. Look in the path if we contain no directory separator. 17979as_myself= 17980case $0 in #(( 17981 *[\\/]* ) as_myself=$0 ;; 17982 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17983for as_dir in $PATH 17984do 17985 IFS=$as_save_IFS 17986 test -z "$as_dir" && as_dir=. 17987 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17988 done 17989IFS=$as_save_IFS 17990 17991 ;; 17992esac 17993# We did not find ourselves, most probably we were run as `sh COMMAND' 17994# in which case we are not to be found in the path. 17995if test "x$as_myself" = x; then 17996 as_myself=$0 17997fi 17998if test ! -f "$as_myself"; then 17999 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18000 exit 1 18001fi 18002 18003# Unset variables that we do not need and which cause bugs (e.g. in 18004# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18005# suppresses any "Segmentation fault" message there. '((' could 18006# trigger a bug in pdksh 5.2.14. 18007for as_var in BASH_ENV ENV MAIL MAILPATH 18008do eval test x\${$as_var+set} = xset \ 18009 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18010done 18011PS1='$ ' 18012PS2='> ' 18013PS4='+ ' 18014 18015# NLS nuisances. 18016LC_ALL=C 18017export LC_ALL 18018LANGUAGE=C 18019export LANGUAGE 18020 18021# CDPATH. 18022(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18023 18024 18025# as_fn_error STATUS ERROR [LINENO LOG_FD] 18026# ---------------------------------------- 18027# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18028# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18029# script with STATUS, using 1 if that was 0. 18030as_fn_error () 18031{ 18032 as_status=$1; test $as_status -eq 0 && as_status=1 18033 if test "$4"; then 18034 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18035 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18036 fi 18037 $as_echo "$as_me: error: $2" >&2 18038 as_fn_exit $as_status 18039} # as_fn_error 18040 18041 18042# as_fn_set_status STATUS 18043# ----------------------- 18044# Set $? to STATUS, without forking. 18045as_fn_set_status () 18046{ 18047 return $1 18048} # as_fn_set_status 18049 18050# as_fn_exit STATUS 18051# ----------------- 18052# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18053as_fn_exit () 18054{ 18055 set +e 18056 as_fn_set_status $1 18057 exit $1 18058} # as_fn_exit 18059 18060# as_fn_unset VAR 18061# --------------- 18062# Portably unset VAR. 18063as_fn_unset () 18064{ 18065 { eval $1=; unset $1;} 18066} 18067as_unset=as_fn_unset 18068# as_fn_append VAR VALUE 18069# ---------------------- 18070# Append the text in VALUE to the end of the definition contained in VAR. Take 18071# advantage of any shell optimizations that allow amortized linear growth over 18072# repeated appends, instead of the typical quadratic growth present in naive 18073# implementations. 18074if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18075 eval 'as_fn_append () 18076 { 18077 eval $1+=\$2 18078 }' 18079else 18080 as_fn_append () 18081 { 18082 eval $1=\$$1\$2 18083 } 18084fi # as_fn_append 18085 18086# as_fn_arith ARG... 18087# ------------------ 18088# Perform arithmetic evaluation on the ARGs, and store the result in the 18089# global $as_val. Take advantage of shells that can avoid forks. The arguments 18090# must be portable across $(()) and expr. 18091if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18092 eval 'as_fn_arith () 18093 { 18094 as_val=$(( $* )) 18095 }' 18096else 18097 as_fn_arith () 18098 { 18099 as_val=`expr "$@" || test $? -eq 1` 18100 } 18101fi # as_fn_arith 18102 18103 18104if expr a : '\(a\)' >/dev/null 2>&1 && 18105 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18106 as_expr=expr 18107else 18108 as_expr=false 18109fi 18110 18111if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18112 as_basename=basename 18113else 18114 as_basename=false 18115fi 18116 18117if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18118 as_dirname=dirname 18119else 18120 as_dirname=false 18121fi 18122 18123as_me=`$as_basename -- "$0" || 18124$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18125 X"$0" : 'X\(//\)$' \| \ 18126 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18127$as_echo X/"$0" | 18128 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18129 s//\1/ 18130 q 18131 } 18132 /^X\/\(\/\/\)$/{ 18133 s//\1/ 18134 q 18135 } 18136 /^X\/\(\/\).*/{ 18137 s//\1/ 18138 q 18139 } 18140 s/.*/./; q'` 18141 18142# Avoid depending upon Character Ranges. 18143as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18144as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18145as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18146as_cr_digits='0123456789' 18147as_cr_alnum=$as_cr_Letters$as_cr_digits 18148 18149ECHO_C= ECHO_N= ECHO_T= 18150case `echo -n x` in #((((( 18151-n*) 18152 case `echo 'xy\c'` in 18153 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18154 xy) ECHO_C='\c';; 18155 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18156 ECHO_T=' ';; 18157 esac;; 18158*) 18159 ECHO_N='-n';; 18160esac 18161 18162rm -f conf$$ conf$$.exe conf$$.file 18163if test -d conf$$.dir; then 18164 rm -f conf$$.dir/conf$$.file 18165else 18166 rm -f conf$$.dir 18167 mkdir conf$$.dir 2>/dev/null 18168fi 18169if (echo >conf$$.file) 2>/dev/null; then 18170 if ln -s conf$$.file conf$$ 2>/dev/null; then 18171 as_ln_s='ln -s' 18172 # ... but there are two gotchas: 18173 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18174 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18175 # In both cases, we have to default to `cp -pR'. 18176 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18177 as_ln_s='cp -pR' 18178 elif ln conf$$.file conf$$ 2>/dev/null; then 18179 as_ln_s=ln 18180 else 18181 as_ln_s='cp -pR' 18182 fi 18183else 18184 as_ln_s='cp -pR' 18185fi 18186rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18187rmdir conf$$.dir 2>/dev/null 18188 18189 18190# as_fn_mkdir_p 18191# ------------- 18192# Create "$as_dir" as a directory, including parents if necessary. 18193as_fn_mkdir_p () 18194{ 18195 18196 case $as_dir in #( 18197 -*) as_dir=./$as_dir;; 18198 esac 18199 test -d "$as_dir" || eval $as_mkdir_p || { 18200 as_dirs= 18201 while :; do 18202 case $as_dir in #( 18203 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18204 *) as_qdir=$as_dir;; 18205 esac 18206 as_dirs="'$as_qdir' $as_dirs" 18207 as_dir=`$as_dirname -- "$as_dir" || 18208$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18209 X"$as_dir" : 'X\(//\)[^/]' \| \ 18210 X"$as_dir" : 'X\(//\)$' \| \ 18211 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18212$as_echo X"$as_dir" | 18213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18214 s//\1/ 18215 q 18216 } 18217 /^X\(\/\/\)[^/].*/{ 18218 s//\1/ 18219 q 18220 } 18221 /^X\(\/\/\)$/{ 18222 s//\1/ 18223 q 18224 } 18225 /^X\(\/\).*/{ 18226 s//\1/ 18227 q 18228 } 18229 s/.*/./; q'` 18230 test -d "$as_dir" && break 18231 done 18232 test -z "$as_dirs" || eval "mkdir $as_dirs" 18233 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18234 18235 18236} # as_fn_mkdir_p 18237if mkdir -p . 2>/dev/null; then 18238 as_mkdir_p='mkdir -p "$as_dir"' 18239else 18240 test -d ./-p && rmdir ./-p 18241 as_mkdir_p=false 18242fi 18243 18244 18245# as_fn_executable_p FILE 18246# ----------------------- 18247# Test if FILE is an executable regular file. 18248as_fn_executable_p () 18249{ 18250 test -f "$1" && test -x "$1" 18251} # as_fn_executable_p 18252as_test_x='test -x' 18253as_executable_p=as_fn_executable_p 18254 18255# Sed expression to map a string onto a valid CPP name. 18256as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18257 18258# Sed expression to map a string onto a valid variable name. 18259as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18260 18261 18262exec 6>&1 18263## ----------------------------------- ## 18264## Main body of $CONFIG_STATUS script. ## 18265## ----------------------------------- ## 18266_ASEOF 18267test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18268 18269cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18270# Save the log message, to keep $0 and so on meaningful, and to 18271# report actual input values of CONFIG_FILES etc. instead of their 18272# values after options handling. 18273ac_log=" 18274This file was extended by StarDict tools $as_me 3.0.6, which was 18275generated by GNU Autoconf 2.69. Invocation command line was 18276 18277 CONFIG_FILES = $CONFIG_FILES 18278 CONFIG_HEADERS = $CONFIG_HEADERS 18279 CONFIG_LINKS = $CONFIG_LINKS 18280 CONFIG_COMMANDS = $CONFIG_COMMANDS 18281 $ $0 $@ 18282 18283on `(hostname || uname -n) 2>/dev/null | sed 1q` 18284" 18285 18286_ACEOF 18287 18288case $ac_config_files in *" 18289"*) set x $ac_config_files; shift; ac_config_files=$*;; 18290esac 18291 18292case $ac_config_headers in *" 18293"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18294esac 18295 18296 18297cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18298# Files that config.status was made for. 18299config_files="$ac_config_files" 18300config_headers="$ac_config_headers" 18301config_commands="$ac_config_commands" 18302 18303_ACEOF 18304 18305cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18306ac_cs_usage="\ 18307\`$as_me' instantiates files and other configuration actions 18308from templates according to the current configuration. Unless the files 18309and actions are specified as TAGs, all are instantiated by default. 18310 18311Usage: $0 [OPTION]... [TAG]... 18312 18313 -h, --help print this help, then exit 18314 -V, --version print version number and configuration settings, then exit 18315 --config print configuration, then exit 18316 -q, --quiet, --silent 18317 do not print progress messages 18318 -d, --debug don't remove temporary files 18319 --recheck update $as_me by reconfiguring in the same conditions 18320 --file=FILE[:TEMPLATE] 18321 instantiate the configuration file FILE 18322 --header=FILE[:TEMPLATE] 18323 instantiate the configuration header FILE 18324 18325Configuration files: 18326$config_files 18327 18328Configuration headers: 18329$config_headers 18330 18331Configuration commands: 18332$config_commands 18333 18334Report bugs to <http://www.stardict.org>." 18335 18336_ACEOF 18337cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18338ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18339ac_cs_version="\\ 18340StarDict tools config.status 3.0.6 18341configured by $0, generated by GNU Autoconf 2.69, 18342 with options \\"\$ac_cs_config\\" 18343 18344Copyright (C) 2012 Free Software Foundation, Inc. 18345This config.status script is free software; the Free Software Foundation 18346gives unlimited permission to copy, distribute and modify it." 18347 18348ac_pwd='$ac_pwd' 18349srcdir='$srcdir' 18350INSTALL='$INSTALL' 18351MKDIR_P='$MKDIR_P' 18352AWK='$AWK' 18353test -n "\$AWK" || AWK=awk 18354_ACEOF 18355 18356cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18357# The default lists apply if the user does not specify any file. 18358ac_need_defaults=: 18359while test $# != 0 18360do 18361 case $1 in 18362 --*=?*) 18363 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18364 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18365 ac_shift=: 18366 ;; 18367 --*=) 18368 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18369 ac_optarg= 18370 ac_shift=: 18371 ;; 18372 *) 18373 ac_option=$1 18374 ac_optarg=$2 18375 ac_shift=shift 18376 ;; 18377 esac 18378 18379 case $ac_option in 18380 # Handling of the options. 18381 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18382 ac_cs_recheck=: ;; 18383 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18384 $as_echo "$ac_cs_version"; exit ;; 18385 --config | --confi | --conf | --con | --co | --c ) 18386 $as_echo "$ac_cs_config"; exit ;; 18387 --debug | --debu | --deb | --de | --d | -d ) 18388 debug=: ;; 18389 --file | --fil | --fi | --f ) 18390 $ac_shift 18391 case $ac_optarg in 18392 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18393 '') as_fn_error $? "missing file argument" ;; 18394 esac 18395 as_fn_append CONFIG_FILES " '$ac_optarg'" 18396 ac_need_defaults=false;; 18397 --header | --heade | --head | --hea ) 18398 $ac_shift 18399 case $ac_optarg in 18400 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18401 esac 18402 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18403 ac_need_defaults=false;; 18404 --he | --h) 18405 # Conflict between --help and --header 18406 as_fn_error $? "ambiguous option: \`$1' 18407Try \`$0 --help' for more information.";; 18408 --help | --hel | -h ) 18409 $as_echo "$ac_cs_usage"; exit ;; 18410 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18411 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18412 ac_cs_silent=: ;; 18413 18414 # This is an error. 18415 -*) as_fn_error $? "unrecognized option: \`$1' 18416Try \`$0 --help' for more information." ;; 18417 18418 *) as_fn_append ac_config_targets " $1" 18419 ac_need_defaults=false ;; 18420 18421 esac 18422 shift 18423done 18424 18425ac_configure_extra_args= 18426 18427if $ac_cs_silent; then 18428 exec 6>/dev/null 18429 ac_configure_extra_args="$ac_configure_extra_args --silent" 18430fi 18431 18432_ACEOF 18433cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18434if \$ac_cs_recheck; then 18435 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18436 shift 18437 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18438 CONFIG_SHELL='$SHELL' 18439 export CONFIG_SHELL 18440 exec "\$@" 18441fi 18442 18443_ACEOF 18444cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18445exec 5>>config.log 18446{ 18447 echo 18448 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18449## Running $as_me. ## 18450_ASBOX 18451 $as_echo "$ac_log" 18452} >&5 18453 18454_ACEOF 18455cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18456# 18457# INIT-COMMANDS 18458# 18459AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 18460 18461 18462# The HP-UX ksh and POSIX shell print the target directory to stdout 18463# if CDPATH is set. 18464(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18465 18466sed_quote_subst='$sed_quote_subst' 18467double_quote_subst='$double_quote_subst' 18468delay_variable_subst='$delay_variable_subst' 18469macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18470macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18471enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18472enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18473pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18474enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18475SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18476ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18477PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 18478host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18479host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18480host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18481build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18482build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18483build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18484SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18485Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18486GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18487EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18488FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18489LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18490NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18491LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18492max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18493ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18494exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18495lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18496lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18497lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18498lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 18499lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 18500reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18501reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18502OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18503deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18504file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18505file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 18506want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 18507DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 18508sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18509AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18510AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18511archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18512STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18513RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18514old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18515old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18516old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18517lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18518CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18519CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18520compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18521GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18522lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18523lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18524lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18525lt_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"`' 18526nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18527lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18528objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18529MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18530lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18531lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18532lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18533lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18534lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18535need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18536MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18537DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18538NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18539LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18540OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18541OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18542libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18543shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18544extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18545archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18546enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18547export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18548whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18549compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18550old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18551old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18552archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18553archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18554module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18555module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18556with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18557allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18558no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18559hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18560hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18561hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18562hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18563hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18564hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18565hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18566inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18567link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18568always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18569export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18570exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18571include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18572prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18573postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 18574file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18575variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18576need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18577need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18578version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18579runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18580shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18581shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18582libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18583library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18584soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18585install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18586postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18587postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18588finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18589finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18590hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18591sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18592sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 18593hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18594enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18595enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18596enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18597old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18598striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18599compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 18600predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 18601postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 18602predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 18603postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 18604compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 18605LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 18606reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 18607reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18608old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18609compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 18610GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 18611lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 18612lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 18613lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 18614lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 18615lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 18616archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 18617enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 18618export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18619whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18620compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 18621old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18622old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18623archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18624archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18625module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18626module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18627with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 18628allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 18629no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 18630hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18631hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 18632hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 18633hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 18634hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 18635hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 18636hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 18637inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 18638link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 18639always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 18640export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18641exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 18642include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 18643prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18644postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18645file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 18646hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 18647compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 18648predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 18649postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 18650predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 18651postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 18652compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 18653 18654LTCC='$LTCC' 18655LTCFLAGS='$LTCFLAGS' 18656compiler='$compiler_DEFAULT' 18657 18658# A function that is used when there is no print builtin or printf. 18659func_fallback_echo () 18660{ 18661 eval 'cat <<_LTECHO_EOF 18662\$1 18663_LTECHO_EOF' 18664} 18665 18666# Quote evaled strings. 18667for var in SHELL \ 18668ECHO \ 18669PATH_SEPARATOR \ 18670SED \ 18671GREP \ 18672EGREP \ 18673FGREP \ 18674LD \ 18675NM \ 18676LN_S \ 18677lt_SP2NL \ 18678lt_NL2SP \ 18679reload_flag \ 18680OBJDUMP \ 18681deplibs_check_method \ 18682file_magic_cmd \ 18683file_magic_glob \ 18684want_nocaseglob \ 18685DLLTOOL \ 18686sharedlib_from_linklib_cmd \ 18687AR \ 18688AR_FLAGS \ 18689archiver_list_spec \ 18690STRIP \ 18691RANLIB \ 18692CC \ 18693CFLAGS \ 18694compiler \ 18695lt_cv_sys_global_symbol_pipe \ 18696lt_cv_sys_global_symbol_to_cdecl \ 18697lt_cv_sys_global_symbol_to_c_name_address \ 18698lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18699nm_file_list_spec \ 18700lt_prog_compiler_no_builtin_flag \ 18701lt_prog_compiler_pic \ 18702lt_prog_compiler_wl \ 18703lt_prog_compiler_static \ 18704lt_cv_prog_compiler_c_o \ 18705need_locks \ 18706MANIFEST_TOOL \ 18707DSYMUTIL \ 18708NMEDIT \ 18709LIPO \ 18710OTOOL \ 18711OTOOL64 \ 18712shrext_cmds \ 18713export_dynamic_flag_spec \ 18714whole_archive_flag_spec \ 18715compiler_needs_object \ 18716with_gnu_ld \ 18717allow_undefined_flag \ 18718no_undefined_flag \ 18719hardcode_libdir_flag_spec \ 18720hardcode_libdir_separator \ 18721exclude_expsyms \ 18722include_expsyms \ 18723file_list_spec \ 18724variables_saved_for_relink \ 18725libname_spec \ 18726library_names_spec \ 18727soname_spec \ 18728install_override_mode \ 18729finish_eval \ 18730old_striplib \ 18731striplib \ 18732compiler_lib_search_dirs \ 18733predep_objects \ 18734postdep_objects \ 18735predeps \ 18736postdeps \ 18737compiler_lib_search_path \ 18738LD_CXX \ 18739reload_flag_CXX \ 18740compiler_CXX \ 18741lt_prog_compiler_no_builtin_flag_CXX \ 18742lt_prog_compiler_pic_CXX \ 18743lt_prog_compiler_wl_CXX \ 18744lt_prog_compiler_static_CXX \ 18745lt_cv_prog_compiler_c_o_CXX \ 18746export_dynamic_flag_spec_CXX \ 18747whole_archive_flag_spec_CXX \ 18748compiler_needs_object_CXX \ 18749with_gnu_ld_CXX \ 18750allow_undefined_flag_CXX \ 18751no_undefined_flag_CXX \ 18752hardcode_libdir_flag_spec_CXX \ 18753hardcode_libdir_separator_CXX \ 18754exclude_expsyms_CXX \ 18755include_expsyms_CXX \ 18756file_list_spec_CXX \ 18757compiler_lib_search_dirs_CXX \ 18758predep_objects_CXX \ 18759postdep_objects_CXX \ 18760predeps_CXX \ 18761postdeps_CXX \ 18762compiler_lib_search_path_CXX; do 18763 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18764 *[\\\\\\\`\\"\\\$]*) 18765 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 18766 ;; 18767 *) 18768 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18769 ;; 18770 esac 18771done 18772 18773# Double-quote double-evaled strings. 18774for var in reload_cmds \ 18775old_postinstall_cmds \ 18776old_postuninstall_cmds \ 18777old_archive_cmds \ 18778extract_expsyms_cmds \ 18779old_archive_from_new_cmds \ 18780old_archive_from_expsyms_cmds \ 18781archive_cmds \ 18782archive_expsym_cmds \ 18783module_cmds \ 18784module_expsym_cmds \ 18785export_symbols_cmds \ 18786prelink_cmds \ 18787postlink_cmds \ 18788postinstall_cmds \ 18789postuninstall_cmds \ 18790finish_cmds \ 18791sys_lib_search_path_spec \ 18792sys_lib_dlsearch_path_spec \ 18793reload_cmds_CXX \ 18794old_archive_cmds_CXX \ 18795old_archive_from_new_cmds_CXX \ 18796old_archive_from_expsyms_cmds_CXX \ 18797archive_cmds_CXX \ 18798archive_expsym_cmds_CXX \ 18799module_cmds_CXX \ 18800module_expsym_cmds_CXX \ 18801export_symbols_cmds_CXX \ 18802prelink_cmds_CXX \ 18803postlink_cmds_CXX; do 18804 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18805 *[\\\\\\\`\\"\\\$]*) 18806 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 18807 ;; 18808 *) 18809 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18810 ;; 18811 esac 18812done 18813 18814ac_aux_dir='$ac_aux_dir' 18815xsi_shell='$xsi_shell' 18816lt_shell_append='$lt_shell_append' 18817 18818# See if we are running on zsh, and set the options which allow our 18819# commands through without removal of \ escapes INIT. 18820if test -n "\${ZSH_VERSION+set}" ; then 18821 setopt NO_GLOB_SUBST 18822fi 18823 18824 18825 PACKAGE='$PACKAGE' 18826 VERSION='$VERSION' 18827 TIMESTAMP='$TIMESTAMP' 18828 RM='$RM' 18829 ofile='$ofile' 18830 18831 18832 18833 18834 18835 18836_ACEOF 18837 18838cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18839 18840# Handling of arguments. 18841for ac_config_target in $ac_config_targets 18842do 18843 case $ac_config_target in 18844 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 18845 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18846 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18847 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18848 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 18849 18850 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18851 esac 18852done 18853 18854 18855# If the user did not use the arguments to specify the items to instantiate, 18856# then the envvar interface is used. Set only those that are not. 18857# We use the long form for the default assignment because of an extremely 18858# bizarre bug on SunOS 4.1.3. 18859if $ac_need_defaults; then 18860 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18861 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18862 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18863fi 18864 18865# Have a temporary directory for convenience. Make it in the build tree 18866# simply because there is no reason against having it here, and in addition, 18867# creating and moving files from /tmp can sometimes cause problems. 18868# Hook for its removal unless debugging. 18869# Note that there is a small window in which the directory will not be cleaned: 18870# after its creation but before its name has been assigned to `$tmp'. 18871$debug || 18872{ 18873 tmp= ac_tmp= 18874 trap 'exit_status=$? 18875 : "${ac_tmp:=$tmp}" 18876 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18877' 0 18878 trap 'as_fn_exit 1' 1 2 13 15 18879} 18880# Create a (secure) tmp directory for tmp files. 18881 18882{ 18883 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18884 test -d "$tmp" 18885} || 18886{ 18887 tmp=./conf$$-$RANDOM 18888 (umask 077 && mkdir "$tmp") 18889} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18890ac_tmp=$tmp 18891 18892# Set up the scripts for CONFIG_FILES section. 18893# No need to generate them if there are no CONFIG_FILES. 18894# This happens for instance with `./config.status config.h'. 18895if test -n "$CONFIG_FILES"; then 18896 18897 18898ac_cr=`echo X | tr X '\015'` 18899# On cygwin, bash can eat \r inside `` if the user requested igncr. 18900# But we know of no other shell where ac_cr would be empty at this 18901# point, so we can use a bashism as a fallback. 18902if test "x$ac_cr" = x; then 18903 eval ac_cr=\$\'\\r\' 18904fi 18905ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18906if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18907 ac_cs_awk_cr='\\r' 18908else 18909 ac_cs_awk_cr=$ac_cr 18910fi 18911 18912echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18913_ACEOF 18914 18915 18916{ 18917 echo "cat >conf$$subs.awk <<_ACEOF" && 18918 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18919 echo "_ACEOF" 18920} >conf$$subs.sh || 18921 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18922ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18923ac_delim='%!_!# ' 18924for ac_last_try in false false false false false :; do 18925 . ./conf$$subs.sh || 18926 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18927 18928 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18929 if test $ac_delim_n = $ac_delim_num; then 18930 break 18931 elif $ac_last_try; then 18932 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18933 else 18934 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18935 fi 18936done 18937rm -f conf$$subs.sh 18938 18939cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18940cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18941_ACEOF 18942sed -n ' 18943h 18944s/^/S["/; s/!.*/"]=/ 18945p 18946g 18947s/^[^!]*!// 18948:repl 18949t repl 18950s/'"$ac_delim"'$// 18951t delim 18952:nl 18953h 18954s/\(.\{148\}\)..*/\1/ 18955t more1 18956s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18957p 18958n 18959b repl 18960:more1 18961s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18962p 18963g 18964s/.\{148\}// 18965t nl 18966:delim 18967h 18968s/\(.\{148\}\)..*/\1/ 18969t more2 18970s/["\\]/\\&/g; s/^/"/; s/$/"/ 18971p 18972b 18973:more2 18974s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18975p 18976g 18977s/.\{148\}// 18978t delim 18979' <conf$$subs.awk | sed ' 18980/^[^""]/{ 18981 N 18982 s/\n// 18983} 18984' >>$CONFIG_STATUS || ac_write_fail=1 18985rm -f conf$$subs.awk 18986cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18987_ACAWK 18988cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18989 for (key in S) S_is_set[key] = 1 18990 FS = "" 18991 18992} 18993{ 18994 line = $ 0 18995 nfields = split(line, field, "@") 18996 substed = 0 18997 len = length(field[1]) 18998 for (i = 2; i < nfields; i++) { 18999 key = field[i] 19000 keylen = length(key) 19001 if (S_is_set[key]) { 19002 value = S[key] 19003 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19004 len += length(value) + length(field[++i]) 19005 substed = 1 19006 } else 19007 len += 1 + keylen 19008 } 19009 19010 print line 19011} 19012 19013_ACAWK 19014_ACEOF 19015cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19016if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19017 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19018else 19019 cat 19020fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19021 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19022_ACEOF 19023 19024# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19025# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19026# trailing colons and then remove the whole line if VPATH becomes empty 19027# (actually we leave an empty line to preserve line numbers). 19028if test "x$srcdir" = x.; then 19029 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19030h 19031s/// 19032s/^/:/ 19033s/[ ]*$/:/ 19034s/:\$(srcdir):/:/g 19035s/:\${srcdir}:/:/g 19036s/:@srcdir@:/:/g 19037s/^:*// 19038s/:*$// 19039x 19040s/\(=[ ]*\).*/\1/ 19041G 19042s/\n// 19043s/^[^=]*=[ ]*$// 19044}' 19045fi 19046 19047cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19048fi # test -n "$CONFIG_FILES" 19049 19050# Set up the scripts for CONFIG_HEADERS section. 19051# No need to generate them if there are no CONFIG_HEADERS. 19052# This happens for instance with `./config.status Makefile'. 19053if test -n "$CONFIG_HEADERS"; then 19054cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19055BEGIN { 19056_ACEOF 19057 19058# Transform confdefs.h into an awk script `defines.awk', embedded as 19059# here-document in config.status, that substitutes the proper values into 19060# config.h.in to produce config.h. 19061 19062# Create a delimiter string that does not exist in confdefs.h, to ease 19063# handling of long lines. 19064ac_delim='%!_!# ' 19065for ac_last_try in false false :; do 19066 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19067 if test -z "$ac_tt"; then 19068 break 19069 elif $ac_last_try; then 19070 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19071 else 19072 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19073 fi 19074done 19075 19076# For the awk script, D is an array of macro values keyed by name, 19077# likewise P contains macro parameters if any. Preserve backslash 19078# newline sequences. 19079 19080ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19081sed -n ' 19082s/.\{148\}/&'"$ac_delim"'/g 19083t rset 19084:rset 19085s/^[ ]*#[ ]*define[ ][ ]*/ / 19086t def 19087d 19088:def 19089s/\\$// 19090t bsnl 19091s/["\\]/\\&/g 19092s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19093D["\1"]=" \3"/p 19094s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19095d 19096:bsnl 19097s/["\\]/\\&/g 19098s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19099D["\1"]=" \3\\\\\\n"\\/p 19100t cont 19101s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19102t cont 19103d 19104:cont 19105n 19106s/.\{148\}/&'"$ac_delim"'/g 19107t clear 19108:clear 19109s/\\$// 19110t bsnlc 19111s/["\\]/\\&/g; s/^/"/; s/$/"/p 19112d 19113:bsnlc 19114s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19115b cont 19116' <confdefs.h | sed ' 19117s/'"$ac_delim"'/"\\\ 19118"/g' >>$CONFIG_STATUS || ac_write_fail=1 19119 19120cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19121 for (key in D) D_is_set[key] = 1 19122 FS = "" 19123} 19124/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19125 line = \$ 0 19126 split(line, arg, " ") 19127 if (arg[1] == "#") { 19128 defundef = arg[2] 19129 mac1 = arg[3] 19130 } else { 19131 defundef = substr(arg[1], 2) 19132 mac1 = arg[2] 19133 } 19134 split(mac1, mac2, "(") #) 19135 macro = mac2[1] 19136 prefix = substr(line, 1, index(line, defundef) - 1) 19137 if (D_is_set[macro]) { 19138 # Preserve the white space surrounding the "#". 19139 print prefix "define", macro P[macro] D[macro] 19140 next 19141 } else { 19142 # Replace #undef with comments. This is necessary, for example, 19143 # in the case of _POSIX_SOURCE, which is predefined and required 19144 # on some systems where configure will not decide to define it. 19145 if (defundef == "undef") { 19146 print "/*", prefix defundef, macro, "*/" 19147 next 19148 } 19149 } 19150} 19151{ print } 19152_ACAWK 19153_ACEOF 19154cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19155 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19156fi # test -n "$CONFIG_HEADERS" 19157 19158 19159eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19160shift 19161for ac_tag 19162do 19163 case $ac_tag in 19164 :[FHLC]) ac_mode=$ac_tag; continue;; 19165 esac 19166 case $ac_mode$ac_tag in 19167 :[FHL]*:*);; 19168 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19169 :[FH]-) ac_tag=-:-;; 19170 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19171 esac 19172 ac_save_IFS=$IFS 19173 IFS=: 19174 set x $ac_tag 19175 IFS=$ac_save_IFS 19176 shift 19177 ac_file=$1 19178 shift 19179 19180 case $ac_mode in 19181 :L) ac_source=$1;; 19182 :[FH]) 19183 ac_file_inputs= 19184 for ac_f 19185 do 19186 case $ac_f in 19187 -) ac_f="$ac_tmp/stdin";; 19188 *) # Look for the file first in the build tree, then in the source tree 19189 # (if the path is not absolute). The absolute path cannot be DOS-style, 19190 # because $ac_f cannot contain `:'. 19191 test -f "$ac_f" || 19192 case $ac_f in 19193 [\\/$]*) false;; 19194 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19195 esac || 19196 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19197 esac 19198 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19199 as_fn_append ac_file_inputs " '$ac_f'" 19200 done 19201 19202 # Let's still pretend it is `configure' which instantiates (i.e., don't 19203 # use $as_me), people would be surprised to read: 19204 # /* config.h. Generated by config.status. */ 19205 configure_input='Generated from '` 19206 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19207 `' by configure.' 19208 if test x"$ac_file" != x-; then 19209 configure_input="$ac_file. $configure_input" 19210 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19211$as_echo "$as_me: creating $ac_file" >&6;} 19212 fi 19213 # Neutralize special characters interpreted by sed in replacement strings. 19214 case $configure_input in #( 19215 *\&* | *\|* | *\\* ) 19216 ac_sed_conf_input=`$as_echo "$configure_input" | 19217 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19218 *) ac_sed_conf_input=$configure_input;; 19219 esac 19220 19221 case $ac_tag in 19222 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19223 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19224 esac 19225 ;; 19226 esac 19227 19228 ac_dir=`$as_dirname -- "$ac_file" || 19229$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19230 X"$ac_file" : 'X\(//\)[^/]' \| \ 19231 X"$ac_file" : 'X\(//\)$' \| \ 19232 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19233$as_echo X"$ac_file" | 19234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19235 s//\1/ 19236 q 19237 } 19238 /^X\(\/\/\)[^/].*/{ 19239 s//\1/ 19240 q 19241 } 19242 /^X\(\/\/\)$/{ 19243 s//\1/ 19244 q 19245 } 19246 /^X\(\/\).*/{ 19247 s//\1/ 19248 q 19249 } 19250 s/.*/./; q'` 19251 as_dir="$ac_dir"; as_fn_mkdir_p 19252 ac_builddir=. 19253 19254case "$ac_dir" in 19255.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19256*) 19257 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19258 # A ".." for each directory in $ac_dir_suffix. 19259 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19260 case $ac_top_builddir_sub in 19261 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19262 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19263 esac ;; 19264esac 19265ac_abs_top_builddir=$ac_pwd 19266ac_abs_builddir=$ac_pwd$ac_dir_suffix 19267# for backward compatibility: 19268ac_top_builddir=$ac_top_build_prefix 19269 19270case $srcdir in 19271 .) # We are building in place. 19272 ac_srcdir=. 19273 ac_top_srcdir=$ac_top_builddir_sub 19274 ac_abs_top_srcdir=$ac_pwd ;; 19275 [\\/]* | ?:[\\/]* ) # Absolute name. 19276 ac_srcdir=$srcdir$ac_dir_suffix; 19277 ac_top_srcdir=$srcdir 19278 ac_abs_top_srcdir=$srcdir ;; 19279 *) # Relative name. 19280 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19281 ac_top_srcdir=$ac_top_build_prefix$srcdir 19282 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19283esac 19284ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19285 19286 19287 case $ac_mode in 19288 :F) 19289 # 19290 # CONFIG_FILE 19291 # 19292 19293 case $INSTALL in 19294 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19295 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19296 esac 19297 ac_MKDIR_P=$MKDIR_P 19298 case $MKDIR_P in 19299 [\\/$]* | ?:[\\/]* ) ;; 19300 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19301 esac 19302_ACEOF 19303 19304cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19305# If the template does not know about datarootdir, expand it. 19306# FIXME: This hack should be removed a few years after 2.60. 19307ac_datarootdir_hack=; ac_datarootdir_seen= 19308ac_sed_dataroot=' 19309/datarootdir/ { 19310 p 19311 q 19312} 19313/@datadir@/p 19314/@docdir@/p 19315/@infodir@/p 19316/@localedir@/p 19317/@mandir@/p' 19318case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19319*datarootdir*) ac_datarootdir_seen=yes;; 19320*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19322$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19323_ACEOF 19324cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19325 ac_datarootdir_hack=' 19326 s&@datadir@&$datadir&g 19327 s&@docdir@&$docdir&g 19328 s&@infodir@&$infodir&g 19329 s&@localedir@&$localedir&g 19330 s&@mandir@&$mandir&g 19331 s&\\\${datarootdir}&$datarootdir&g' ;; 19332esac 19333_ACEOF 19334 19335# Neutralize VPATH when `$srcdir' = `.'. 19336# Shell code in configure.ac might set extrasub. 19337# FIXME: do we really want to maintain this feature? 19338cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19339ac_sed_extra="$ac_vpsub 19340$extrasub 19341_ACEOF 19342cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19343:t 19344/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19345s|@configure_input@|$ac_sed_conf_input|;t t 19346s&@top_builddir@&$ac_top_builddir_sub&;t t 19347s&@top_build_prefix@&$ac_top_build_prefix&;t t 19348s&@srcdir@&$ac_srcdir&;t t 19349s&@abs_srcdir@&$ac_abs_srcdir&;t t 19350s&@top_srcdir@&$ac_top_srcdir&;t t 19351s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19352s&@builddir@&$ac_builddir&;t t 19353s&@abs_builddir@&$ac_abs_builddir&;t t 19354s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19355s&@INSTALL@&$ac_INSTALL&;t t 19356s&@MKDIR_P@&$ac_MKDIR_P&;t t 19357$ac_datarootdir_hack 19358" 19359eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19360 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19361 19362test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19363 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19364 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19365 "$ac_tmp/out"`; test -z "$ac_out"; } && 19366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19367which seems to be undefined. Please make sure it is defined" >&5 19368$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19369which seems to be undefined. Please make sure it is defined" >&2;} 19370 19371 rm -f "$ac_tmp/stdin" 19372 case $ac_file in 19373 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19374 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19375 esac \ 19376 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19377 ;; 19378 :H) 19379 # 19380 # CONFIG_HEADER 19381 # 19382 if test x"$ac_file" != x-; then 19383 { 19384 $as_echo "/* $configure_input */" \ 19385 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19386 } >"$ac_tmp/config.h" \ 19387 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19388 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19389 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19390$as_echo "$as_me: $ac_file is unchanged" >&6;} 19391 else 19392 rm -f "$ac_file" 19393 mv "$ac_tmp/config.h" "$ac_file" \ 19394 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19395 fi 19396 else 19397 $as_echo "/* $configure_input */" \ 19398 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19399 || as_fn_error $? "could not create -" "$LINENO" 5 19400 fi 19401# Compute "$ac_file"'s index in $config_headers. 19402_am_arg="$ac_file" 19403_am_stamp_count=1 19404for _am_header in $config_headers :; do 19405 case $_am_header in 19406 $_am_arg | $_am_arg:* ) 19407 break ;; 19408 * ) 19409 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19410 esac 19411done 19412echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19413$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19414 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19415 X"$_am_arg" : 'X\(//\)$' \| \ 19416 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19417$as_echo X"$_am_arg" | 19418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19419 s//\1/ 19420 q 19421 } 19422 /^X\(\/\/\)[^/].*/{ 19423 s//\1/ 19424 q 19425 } 19426 /^X\(\/\/\)$/{ 19427 s//\1/ 19428 q 19429 } 19430 /^X\(\/\).*/{ 19431 s//\1/ 19432 q 19433 } 19434 s/.*/./; q'`/stamp-h$_am_stamp_count 19435 ;; 19436 19437 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19438$as_echo "$as_me: executing $ac_file commands" >&6;} 19439 ;; 19440 esac 19441 19442 19443 case $ac_file$ac_mode in 19444 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19445 # Older Autoconf quotes --file arguments for eval, but not when files 19446 # are listed without --file. Let's play safe and only enable the eval 19447 # if we detect the quoting. 19448 case $CONFIG_FILES in 19449 *\'*) eval set x "$CONFIG_FILES" ;; 19450 *) set x $CONFIG_FILES ;; 19451 esac 19452 shift 19453 for mf 19454 do 19455 # Strip MF so we end up with the name of the file. 19456 mf=`echo "$mf" | sed -e 's/:.*$//'` 19457 # Check whether this is an Automake generated Makefile or not. 19458 # We used to match only the files named 'Makefile.in', but 19459 # some people rename them; so instead we look at the file content. 19460 # Grep'ing the first line is not enough: some people post-process 19461 # each Makefile.in and add a new line on top of each file to say so. 19462 # Grep'ing the whole file is not good either: AIX grep has a line 19463 # limit of 2048, but all sed's we know have understand at least 4000. 19464 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 19465 dirpart=`$as_dirname -- "$mf" || 19466$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19467 X"$mf" : 'X\(//\)[^/]' \| \ 19468 X"$mf" : 'X\(//\)$' \| \ 19469 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 19470$as_echo X"$mf" | 19471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19472 s//\1/ 19473 q 19474 } 19475 /^X\(\/\/\)[^/].*/{ 19476 s//\1/ 19477 q 19478 } 19479 /^X\(\/\/\)$/{ 19480 s//\1/ 19481 q 19482 } 19483 /^X\(\/\).*/{ 19484 s//\1/ 19485 q 19486 } 19487 s/.*/./; q'` 19488 else 19489 continue 19490 fi 19491 # Extract the definition of DEPDIR, am__include, and am__quote 19492 # from the Makefile without running 'make'. 19493 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 19494 test -z "$DEPDIR" && continue 19495 am__include=`sed -n 's/^am__include = //p' < "$mf"` 19496 test -z "$am__include" && continue 19497 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 19498 # Find all dependency output files, they are included files with 19499 # $(DEPDIR) in their names. We invoke sed twice because it is the 19500 # simplest approach to changing $(DEPDIR) to its actual value in the 19501 # expansion. 19502 for file in `sed -n " 19503 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 19504 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 19505 # Make sure the directory exists. 19506 test -f "$dirpart/$file" && continue 19507 fdir=`$as_dirname -- "$file" || 19508$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19509 X"$file" : 'X\(//\)[^/]' \| \ 19510 X"$file" : 'X\(//\)$' \| \ 19511 X"$file" : 'X\(/\)' \| . 2>/dev/null || 19512$as_echo X"$file" | 19513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19514 s//\1/ 19515 q 19516 } 19517 /^X\(\/\/\)[^/].*/{ 19518 s//\1/ 19519 q 19520 } 19521 /^X\(\/\/\)$/{ 19522 s//\1/ 19523 q 19524 } 19525 /^X\(\/\).*/{ 19526 s//\1/ 19527 q 19528 } 19529 s/.*/./; q'` 19530 as_dir=$dirpart/$fdir; as_fn_mkdir_p 19531 # echo "creating $dirpart/$file" 19532 echo '# dummy' > "$dirpart/$file" 19533 done 19534 done 19535} 19536 ;; 19537 "libtool":C) 19538 19539 # See if we are running on zsh, and set the options which allow our 19540 # commands through without removal of \ escapes. 19541 if test -n "${ZSH_VERSION+set}" ; then 19542 setopt NO_GLOB_SUBST 19543 fi 19544 19545 cfgfile="${ofile}T" 19546 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19547 $RM "$cfgfile" 19548 19549 cat <<_LT_EOF >> "$cfgfile" 19550#! $SHELL 19551 19552# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 19553# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 19554# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19555# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19556# 19557# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 19558# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 19559# Foundation, Inc. 19560# Written by Gordon Matzigkeit, 1996 19561# 19562# This file is part of GNU Libtool. 19563# 19564# GNU Libtool is free software; you can redistribute it and/or 19565# modify it under the terms of the GNU General Public License as 19566# published by the Free Software Foundation; either version 2 of 19567# the License, or (at your option) any later version. 19568# 19569# As a special exception to the GNU General Public License, 19570# if you distribute this file as part of a program or library that 19571# is built using GNU Libtool, you may include this file under the 19572# same distribution terms that you use for the rest of that program. 19573# 19574# GNU Libtool is distributed in the hope that it will be useful, 19575# but WITHOUT ANY WARRANTY; without even the implied warranty of 19576# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19577# GNU General Public License for more details. 19578# 19579# You should have received a copy of the GNU General Public License 19580# along with GNU Libtool; see the file COPYING. If not, a copy 19581# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 19582# obtained by writing to the Free Software Foundation, Inc., 19583# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19584 19585 19586# The names of the tagged configurations supported by this script. 19587available_tags="CXX " 19588 19589# ### BEGIN LIBTOOL CONFIG 19590 19591# Which release of libtool.m4 was used? 19592macro_version=$macro_version 19593macro_revision=$macro_revision 19594 19595# Whether or not to build shared libraries. 19596build_libtool_libs=$enable_shared 19597 19598# Whether or not to build static libraries. 19599build_old_libs=$enable_static 19600 19601# What type of objects to build. 19602pic_mode=$pic_mode 19603 19604# Whether or not to optimize for fast installation. 19605fast_install=$enable_fast_install 19606 19607# Shell to use when invoking shell scripts. 19608SHELL=$lt_SHELL 19609 19610# An echo program that protects backslashes. 19611ECHO=$lt_ECHO 19612 19613# The PATH separator for the build system. 19614PATH_SEPARATOR=$lt_PATH_SEPARATOR 19615 19616# The host system. 19617host_alias=$host_alias 19618host=$host 19619host_os=$host_os 19620 19621# The build system. 19622build_alias=$build_alias 19623build=$build 19624build_os=$build_os 19625 19626# A sed program that does not truncate output. 19627SED=$lt_SED 19628 19629# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19630Xsed="\$SED -e 1s/^X//" 19631 19632# A grep program that handles long lines. 19633GREP=$lt_GREP 19634 19635# An ERE matcher. 19636EGREP=$lt_EGREP 19637 19638# A literal string matcher. 19639FGREP=$lt_FGREP 19640 19641# A BSD- or MS-compatible name lister. 19642NM=$lt_NM 19643 19644# Whether we need soft or hard links. 19645LN_S=$lt_LN_S 19646 19647# What is the maximum length of a command? 19648max_cmd_len=$max_cmd_len 19649 19650# Object file suffix (normally "o"). 19651objext=$ac_objext 19652 19653# Executable file suffix (normally ""). 19654exeext=$exeext 19655 19656# whether the shell understands "unset". 19657lt_unset=$lt_unset 19658 19659# turn spaces into newlines. 19660SP2NL=$lt_lt_SP2NL 19661 19662# turn newlines into spaces. 19663NL2SP=$lt_lt_NL2SP 19664 19665# convert \$build file names to \$host format. 19666to_host_file_cmd=$lt_cv_to_host_file_cmd 19667 19668# convert \$build files to toolchain format. 19669to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19670 19671# An object symbol dumper. 19672OBJDUMP=$lt_OBJDUMP 19673 19674# Method to check whether dependent libraries are shared objects. 19675deplibs_check_method=$lt_deplibs_check_method 19676 19677# Command to use when deplibs_check_method = "file_magic". 19678file_magic_cmd=$lt_file_magic_cmd 19679 19680# How to find potential files when deplibs_check_method = "file_magic". 19681file_magic_glob=$lt_file_magic_glob 19682 19683# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19684want_nocaseglob=$lt_want_nocaseglob 19685 19686# DLL creation program. 19687DLLTOOL=$lt_DLLTOOL 19688 19689# Command to associate shared and link libraries. 19690sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19691 19692# The archiver. 19693AR=$lt_AR 19694 19695# Flags to create an archive. 19696AR_FLAGS=$lt_AR_FLAGS 19697 19698# How to feed a file listing to the archiver. 19699archiver_list_spec=$lt_archiver_list_spec 19700 19701# A symbol stripping program. 19702STRIP=$lt_STRIP 19703 19704# Commands used to install an old-style archive. 19705RANLIB=$lt_RANLIB 19706old_postinstall_cmds=$lt_old_postinstall_cmds 19707old_postuninstall_cmds=$lt_old_postuninstall_cmds 19708 19709# Whether to use a lock for old archive extraction. 19710lock_old_archive_extraction=$lock_old_archive_extraction 19711 19712# A C compiler. 19713LTCC=$lt_CC 19714 19715# LTCC compiler flags. 19716LTCFLAGS=$lt_CFLAGS 19717 19718# Take the output of nm and produce a listing of raw symbols and C names. 19719global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19720 19721# Transform the output of nm in a proper C declaration. 19722global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19723 19724# Transform the output of nm in a C name address pair. 19725global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19726 19727# Transform the output of nm in a C name address pair when lib prefix is needed. 19728global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19729 19730# Specify filename containing input files for \$NM. 19731nm_file_list_spec=$lt_nm_file_list_spec 19732 19733# The root where to search for dependent libraries,and in which our libraries should be installed. 19734lt_sysroot=$lt_sysroot 19735 19736# The name of the directory that contains temporary libtool files. 19737objdir=$objdir 19738 19739# Used to examine libraries when file_magic_cmd begins with "file". 19740MAGIC_CMD=$MAGIC_CMD 19741 19742# Must we lock files when doing compilation? 19743need_locks=$lt_need_locks 19744 19745# Manifest tool. 19746MANIFEST_TOOL=$lt_MANIFEST_TOOL 19747 19748# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19749DSYMUTIL=$lt_DSYMUTIL 19750 19751# Tool to change global to local symbols on Mac OS X. 19752NMEDIT=$lt_NMEDIT 19753 19754# Tool to manipulate fat objects and archives on Mac OS X. 19755LIPO=$lt_LIPO 19756 19757# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19758OTOOL=$lt_OTOOL 19759 19760# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19761OTOOL64=$lt_OTOOL64 19762 19763# Old archive suffix (normally "a"). 19764libext=$libext 19765 19766# Shared library suffix (normally ".so"). 19767shrext_cmds=$lt_shrext_cmds 19768 19769# The commands to extract the exported symbol list from a shared archive. 19770extract_expsyms_cmds=$lt_extract_expsyms_cmds 19771 19772# Variables whose values should be saved in libtool wrapper scripts and 19773# restored at link time. 19774variables_saved_for_relink=$lt_variables_saved_for_relink 19775 19776# Do we need the "lib" prefix for modules? 19777need_lib_prefix=$need_lib_prefix 19778 19779# Do we need a version for libraries? 19780need_version=$need_version 19781 19782# Library versioning type. 19783version_type=$version_type 19784 19785# Shared library runtime path variable. 19786runpath_var=$runpath_var 19787 19788# Shared library path variable. 19789shlibpath_var=$shlibpath_var 19790 19791# Is shlibpath searched before the hard-coded library search path? 19792shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19793 19794# Format of library name prefix. 19795libname_spec=$lt_libname_spec 19796 19797# List of archive names. First name is the real one, the rest are links. 19798# The last name is the one that the linker finds with -lNAME 19799library_names_spec=$lt_library_names_spec 19800 19801# The coded name of the library, if different from the real name. 19802soname_spec=$lt_soname_spec 19803 19804# Permission mode override for installation of shared libraries. 19805install_override_mode=$lt_install_override_mode 19806 19807# Command to use after installation of a shared archive. 19808postinstall_cmds=$lt_postinstall_cmds 19809 19810# Command to use after uninstallation of a shared archive. 19811postuninstall_cmds=$lt_postuninstall_cmds 19812 19813# Commands used to finish a libtool library installation in a directory. 19814finish_cmds=$lt_finish_cmds 19815 19816# As "finish_cmds", except a single script fragment to be evaled but 19817# not shown. 19818finish_eval=$lt_finish_eval 19819 19820# Whether we should hardcode library paths into libraries. 19821hardcode_into_libs=$hardcode_into_libs 19822 19823# Compile-time system search path for libraries. 19824sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19825 19826# Run-time system search path for libraries. 19827sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19828 19829# Whether dlopen is supported. 19830dlopen_support=$enable_dlopen 19831 19832# Whether dlopen of programs is supported. 19833dlopen_self=$enable_dlopen_self 19834 19835# Whether dlopen of statically linked programs is supported. 19836dlopen_self_static=$enable_dlopen_self_static 19837 19838# Commands to strip libraries. 19839old_striplib=$lt_old_striplib 19840striplib=$lt_striplib 19841 19842 19843# The linker used to build libraries. 19844LD=$lt_LD 19845 19846# How to create reloadable object files. 19847reload_flag=$lt_reload_flag 19848reload_cmds=$lt_reload_cmds 19849 19850# Commands used to build an old-style archive. 19851old_archive_cmds=$lt_old_archive_cmds 19852 19853# A language specific compiler. 19854CC=$lt_compiler 19855 19856# Is the compiler the GNU compiler? 19857with_gcc=$GCC 19858 19859# Compiler flag to turn off builtin functions. 19860no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19861 19862# Additional compiler flags for building library objects. 19863pic_flag=$lt_lt_prog_compiler_pic 19864 19865# How to pass a linker flag through the compiler. 19866wl=$lt_lt_prog_compiler_wl 19867 19868# Compiler flag to prevent dynamic linking. 19869link_static_flag=$lt_lt_prog_compiler_static 19870 19871# Does compiler simultaneously support -c and -o options? 19872compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19873 19874# Whether or not to add -lc for building shared libraries. 19875build_libtool_need_lc=$archive_cmds_need_lc 19876 19877# Whether or not to disallow shared libs when runtime libs are static. 19878allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19879 19880# Compiler flag to allow reflexive dlopens. 19881export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19882 19883# Compiler flag to generate shared objects directly from archives. 19884whole_archive_flag_spec=$lt_whole_archive_flag_spec 19885 19886# Whether the compiler copes with passing no objects directly. 19887compiler_needs_object=$lt_compiler_needs_object 19888 19889# Create an old-style archive from a shared archive. 19890old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19891 19892# Create a temporary old-style archive to link instead of a shared archive. 19893old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19894 19895# Commands used to build a shared archive. 19896archive_cmds=$lt_archive_cmds 19897archive_expsym_cmds=$lt_archive_expsym_cmds 19898 19899# Commands used to build a loadable module if different from building 19900# a shared archive. 19901module_cmds=$lt_module_cmds 19902module_expsym_cmds=$lt_module_expsym_cmds 19903 19904# Whether we are building with GNU ld or not. 19905with_gnu_ld=$lt_with_gnu_ld 19906 19907# Flag that allows shared libraries with undefined symbols to be built. 19908allow_undefined_flag=$lt_allow_undefined_flag 19909 19910# Flag that enforces no undefined symbols. 19911no_undefined_flag=$lt_no_undefined_flag 19912 19913# Flag to hardcode \$libdir into a binary during linking. 19914# This must work even if \$libdir does not exist 19915hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19916 19917# Whether we need a single "-rpath" flag with a separated argument. 19918hardcode_libdir_separator=$lt_hardcode_libdir_separator 19919 19920# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19921# DIR into the resulting binary. 19922hardcode_direct=$hardcode_direct 19923 19924# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19925# DIR into the resulting binary and the resulting library dependency is 19926# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19927# library is relocated. 19928hardcode_direct_absolute=$hardcode_direct_absolute 19929 19930# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19931# into the resulting binary. 19932hardcode_minus_L=$hardcode_minus_L 19933 19934# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19935# into the resulting binary. 19936hardcode_shlibpath_var=$hardcode_shlibpath_var 19937 19938# Set to "yes" if building a shared library automatically hardcodes DIR 19939# into the library and all subsequent libraries and executables linked 19940# against it. 19941hardcode_automatic=$hardcode_automatic 19942 19943# Set to yes if linker adds runtime paths of dependent libraries 19944# to runtime path list. 19945inherit_rpath=$inherit_rpath 19946 19947# Whether libtool must link a program against all its dependency libraries. 19948link_all_deplibs=$link_all_deplibs 19949 19950# Set to "yes" if exported symbols are required. 19951always_export_symbols=$always_export_symbols 19952 19953# The commands to list exported symbols. 19954export_symbols_cmds=$lt_export_symbols_cmds 19955 19956# Symbols that should not be listed in the preloaded symbols. 19957exclude_expsyms=$lt_exclude_expsyms 19958 19959# Symbols that must always be exported. 19960include_expsyms=$lt_include_expsyms 19961 19962# Commands necessary for linking programs (against libraries) with templates. 19963prelink_cmds=$lt_prelink_cmds 19964 19965# Commands necessary for finishing linking programs. 19966postlink_cmds=$lt_postlink_cmds 19967 19968# Specify filename containing input files. 19969file_list_spec=$lt_file_list_spec 19970 19971# How to hardcode a shared library path into an executable. 19972hardcode_action=$hardcode_action 19973 19974# The directories searched by this compiler when creating a shared library. 19975compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 19976 19977# Dependencies to place before and after the objects being linked to 19978# create a shared library. 19979predep_objects=$lt_predep_objects 19980postdep_objects=$lt_postdep_objects 19981predeps=$lt_predeps 19982postdeps=$lt_postdeps 19983 19984# The library search path used internally by the compiler when linking 19985# a shared library. 19986compiler_lib_search_path=$lt_compiler_lib_search_path 19987 19988# ### END LIBTOOL CONFIG 19989 19990_LT_EOF 19991 19992 case $host_os in 19993 aix3*) 19994 cat <<\_LT_EOF >> "$cfgfile" 19995# AIX sometimes has problems with the GCC collect2 program. For some 19996# reason, if we set the COLLECT_NAMES environment variable, the problems 19997# vanish in a puff of smoke. 19998if test "X${COLLECT_NAMES+set}" != Xset; then 19999 COLLECT_NAMES= 20000 export COLLECT_NAMES 20001fi 20002_LT_EOF 20003 ;; 20004 esac 20005 20006 20007ltmain="$ac_aux_dir/ltmain.sh" 20008 20009 20010 # We use sed instead of cat because bash on DJGPP gets confused if 20011 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20012 # text mode, it properly converts lines to CR/LF. This bash problem 20013 # is reportedly fixed, but why not run on old versions too? 20014 sed '$q' "$ltmain" >> "$cfgfile" \ 20015 || (rm -f "$cfgfile"; exit 1) 20016 20017 if test x"$xsi_shell" = xyes; then 20018 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20019func_dirname ()\ 20020{\ 20021\ case ${1} in\ 20022\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20023\ * ) func_dirname_result="${3}" ;;\ 20024\ esac\ 20025} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20026 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20027 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20028test 0 -eq $? || _lt_function_replace_fail=: 20029 20030 20031 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20032func_basename ()\ 20033{\ 20034\ func_basename_result="${1##*/}"\ 20035} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20036 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20037 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20038test 0 -eq $? || _lt_function_replace_fail=: 20039 20040 20041 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20042func_dirname_and_basename ()\ 20043{\ 20044\ case ${1} in\ 20045\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20046\ * ) func_dirname_result="${3}" ;;\ 20047\ esac\ 20048\ func_basename_result="${1##*/}"\ 20049} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20050 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20051 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20052test 0 -eq $? || _lt_function_replace_fail=: 20053 20054 20055 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20056func_stripname ()\ 20057{\ 20058\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20059\ # positional parameters, so assign one to ordinary parameter first.\ 20060\ func_stripname_result=${3}\ 20061\ func_stripname_result=${func_stripname_result#"${1}"}\ 20062\ func_stripname_result=${func_stripname_result%"${2}"}\ 20063} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20064 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20065 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20066test 0 -eq $? || _lt_function_replace_fail=: 20067 20068 20069 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20070func_split_long_opt ()\ 20071{\ 20072\ func_split_long_opt_name=${1%%=*}\ 20073\ func_split_long_opt_arg=${1#*=}\ 20074} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20075 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20076 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20077test 0 -eq $? || _lt_function_replace_fail=: 20078 20079 20080 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20081func_split_short_opt ()\ 20082{\ 20083\ func_split_short_opt_arg=${1#??}\ 20084\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20085} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20086 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20087 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20088test 0 -eq $? || _lt_function_replace_fail=: 20089 20090 20091 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20092func_lo2o ()\ 20093{\ 20094\ case ${1} in\ 20095\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20096\ *) func_lo2o_result=${1} ;;\ 20097\ esac\ 20098} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20099 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20100 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20101test 0 -eq $? || _lt_function_replace_fail=: 20102 20103 20104 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20105func_xform ()\ 20106{\ 20107 func_xform_result=${1%.*}.lo\ 20108} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20109 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20110 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20111test 0 -eq $? || _lt_function_replace_fail=: 20112 20113 20114 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20115func_arith ()\ 20116{\ 20117 func_arith_result=$(( $* ))\ 20118} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20119 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20120 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20121test 0 -eq $? || _lt_function_replace_fail=: 20122 20123 20124 sed -e '/^func_len ()$/,/^} # func_len /c\ 20125func_len ()\ 20126{\ 20127 func_len_result=${#1}\ 20128} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 20129 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20130 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20131test 0 -eq $? || _lt_function_replace_fail=: 20132 20133fi 20134 20135if test x"$lt_shell_append" = xyes; then 20136 sed -e '/^func_append ()$/,/^} # func_append /c\ 20137func_append ()\ 20138{\ 20139 eval "${1}+=\\${2}"\ 20140} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 20141 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20142 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20143test 0 -eq $? || _lt_function_replace_fail=: 20144 20145 20146 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 20147func_append_quoted ()\ 20148{\ 20149\ func_quote_for_eval "${2}"\ 20150\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 20151} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 20152 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20153 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20154test 0 -eq $? || _lt_function_replace_fail=: 20155 20156 20157 # Save a `func_append' function call where possible by direct use of '+=' 20158 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 20159 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20160 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20161 test 0 -eq $? || _lt_function_replace_fail=: 20162else 20163 # Save a `func_append' function call even when '+=' is not available 20164 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 20165 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20166 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20167 test 0 -eq $? || _lt_function_replace_fail=: 20168fi 20169 20170if test x"$_lt_function_replace_fail" = x":"; then 20171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 20172$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 20173fi 20174 20175 20176 mv -f "$cfgfile" "$ofile" || 20177 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20178 chmod +x "$ofile" 20179 20180 20181 cat <<_LT_EOF >> "$ofile" 20182 20183# ### BEGIN LIBTOOL TAG CONFIG: CXX 20184 20185# The linker used to build libraries. 20186LD=$lt_LD_CXX 20187 20188# How to create reloadable object files. 20189reload_flag=$lt_reload_flag_CXX 20190reload_cmds=$lt_reload_cmds_CXX 20191 20192# Commands used to build an old-style archive. 20193old_archive_cmds=$lt_old_archive_cmds_CXX 20194 20195# A language specific compiler. 20196CC=$lt_compiler_CXX 20197 20198# Is the compiler the GNU compiler? 20199with_gcc=$GCC_CXX 20200 20201# Compiler flag to turn off builtin functions. 20202no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 20203 20204# Additional compiler flags for building library objects. 20205pic_flag=$lt_lt_prog_compiler_pic_CXX 20206 20207# How to pass a linker flag through the compiler. 20208wl=$lt_lt_prog_compiler_wl_CXX 20209 20210# Compiler flag to prevent dynamic linking. 20211link_static_flag=$lt_lt_prog_compiler_static_CXX 20212 20213# Does compiler simultaneously support -c and -o options? 20214compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 20215 20216# Whether or not to add -lc for building shared libraries. 20217build_libtool_need_lc=$archive_cmds_need_lc_CXX 20218 20219# Whether or not to disallow shared libs when runtime libs are static. 20220allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 20221 20222# Compiler flag to allow reflexive dlopens. 20223export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 20224 20225# Compiler flag to generate shared objects directly from archives. 20226whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 20227 20228# Whether the compiler copes with passing no objects directly. 20229compiler_needs_object=$lt_compiler_needs_object_CXX 20230 20231# Create an old-style archive from a shared archive. 20232old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 20233 20234# Create a temporary old-style archive to link instead of a shared archive. 20235old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 20236 20237# Commands used to build a shared archive. 20238archive_cmds=$lt_archive_cmds_CXX 20239archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 20240 20241# Commands used to build a loadable module if different from building 20242# a shared archive. 20243module_cmds=$lt_module_cmds_CXX 20244module_expsym_cmds=$lt_module_expsym_cmds_CXX 20245 20246# Whether we are building with GNU ld or not. 20247with_gnu_ld=$lt_with_gnu_ld_CXX 20248 20249# Flag that allows shared libraries with undefined symbols to be built. 20250allow_undefined_flag=$lt_allow_undefined_flag_CXX 20251 20252# Flag that enforces no undefined symbols. 20253no_undefined_flag=$lt_no_undefined_flag_CXX 20254 20255# Flag to hardcode \$libdir into a binary during linking. 20256# This must work even if \$libdir does not exist 20257hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 20258 20259# Whether we need a single "-rpath" flag with a separated argument. 20260hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 20261 20262# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20263# DIR into the resulting binary. 20264hardcode_direct=$hardcode_direct_CXX 20265 20266# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20267# DIR into the resulting binary and the resulting library dependency is 20268# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20269# library is relocated. 20270hardcode_direct_absolute=$hardcode_direct_absolute_CXX 20271 20272# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20273# into the resulting binary. 20274hardcode_minus_L=$hardcode_minus_L_CXX 20275 20276# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20277# into the resulting binary. 20278hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 20279 20280# Set to "yes" if building a shared library automatically hardcodes DIR 20281# into the library and all subsequent libraries and executables linked 20282# against it. 20283hardcode_automatic=$hardcode_automatic_CXX 20284 20285# Set to yes if linker adds runtime paths of dependent libraries 20286# to runtime path list. 20287inherit_rpath=$inherit_rpath_CXX 20288 20289# Whether libtool must link a program against all its dependency libraries. 20290link_all_deplibs=$link_all_deplibs_CXX 20291 20292# Set to "yes" if exported symbols are required. 20293always_export_symbols=$always_export_symbols_CXX 20294 20295# The commands to list exported symbols. 20296export_symbols_cmds=$lt_export_symbols_cmds_CXX 20297 20298# Symbols that should not be listed in the preloaded symbols. 20299exclude_expsyms=$lt_exclude_expsyms_CXX 20300 20301# Symbols that must always be exported. 20302include_expsyms=$lt_include_expsyms_CXX 20303 20304# Commands necessary for linking programs (against libraries) with templates. 20305prelink_cmds=$lt_prelink_cmds_CXX 20306 20307# Commands necessary for finishing linking programs. 20308postlink_cmds=$lt_postlink_cmds_CXX 20309 20310# Specify filename containing input files. 20311file_list_spec=$lt_file_list_spec_CXX 20312 20313# How to hardcode a shared library path into an executable. 20314hardcode_action=$hardcode_action_CXX 20315 20316# The directories searched by this compiler when creating a shared library. 20317compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 20318 20319# Dependencies to place before and after the objects being linked to 20320# create a shared library. 20321predep_objects=$lt_predep_objects_CXX 20322postdep_objects=$lt_postdep_objects_CXX 20323predeps=$lt_predeps_CXX 20324postdeps=$lt_postdeps_CXX 20325 20326# The library search path used internally by the compiler when linking 20327# a shared library. 20328compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 20329 20330# ### END LIBTOOL TAG CONFIG: CXX 20331_LT_EOF 20332 20333 ;; 20334 20335 esac 20336done # for ac_tag 20337 20338 20339as_fn_exit 0 20340_ACEOF 20341ac_clean_files=$ac_clean_files_save 20342 20343test $ac_write_fail = 0 || 20344 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20345 20346 20347# configure is writing to config.log, and then calls config.status. 20348# config.status does its own redirection, appending to config.log. 20349# Unfortunately, on DOS this fails, as config.log is still kept open 20350# by configure, so config.status won't be able to write to it; its 20351# output is simply discarded. So we exec the FD to /dev/null, 20352# effectively closing config.log, so it can be properly (re)opened and 20353# appended to by config.status. When coming back to configure, we 20354# need to make the FD available again. 20355if test "$no_create" != yes; then 20356 ac_cs_success=: 20357 ac_config_status_args= 20358 test "$silent" = yes && 20359 ac_config_status_args="$ac_config_status_args --quiet" 20360 exec 5>/dev/null 20361 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20362 exec 5>>config.log 20363 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20364 # would make configure fail if this is the last instruction. 20365 $ac_cs_success || as_fn_exit 1 20366fi 20367if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20369$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20370fi 20371 20372