1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libhmac 1.00. 4# 5# Report bugs to <courier-users@lists.sourceforge.net>. 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: courier-users@lists.sourceforge.net about your system, 279$0: including any error possibly output before this 280$0: message. Then install a modern shell, or manually run 281$0: the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='libhmac' 592PACKAGE_TARNAME='libhmac' 593PACKAGE_VERSION='1.00' 594PACKAGE_STRING='libhmac 1.00' 595PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' 596PACKAGE_URL='' 597 598ac_unique_file="hmac.h" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBOBJS 639TESTPROGS 640hashlibs 641CPP 642LT_SYS_LIBRARY_PATH 643OTOOL64 644OTOOL 645LIPO 646NMEDIT 647DSYMUTIL 648MANIFEST_TOOL 649RANLIB 650ac_ct_AR 651AR 652DLLTOOL 653OBJDUMP 654NM 655ac_ct_DUMPBIN 656DUMPBIN 657LD 658FGREP 659EGREP 660GREP 661SED 662host_os 663host_vendor 664host_cpu 665host 666build_os 667build_vendor 668build_cpu 669build 670LIBTOOL 671am__fastdepCC_FALSE 672am__fastdepCC_TRUE 673CCDEPMODE 674am__nodep 675AMDEPBACKSLASH 676AMDEP_FALSE 677AMDEP_TRUE 678am__include 679DEPDIR 680OBJEXT 681EXEEXT 682ac_ct_CC 683CPPFLAGS 684LDFLAGS 685CFLAGS 686CC 687LN_S 688AM_BACKSLASH 689AM_DEFAULT_VERBOSITY 690AM_DEFAULT_V 691AM_V 692am__untar 693am__tar 694AMTAR 695am__leading_dot 696SET_MAKE 697AWK 698mkdir_p 699MKDIR_P 700INSTALL_STRIP_PROGRAM 701STRIP 702install_sh 703MAKEINFO 704AUTOHEADER 705AUTOMAKE 706AUTOCONF 707ACLOCAL 708VERSION 709PACKAGE 710CYGPATH_W 711am__isrc 712INSTALL_DATA 713INSTALL_SCRIPT 714INSTALL_PROGRAM 715target_alias 716host_alias 717build_alias 718LIBS 719ECHO_T 720ECHO_N 721ECHO_C 722DEFS 723mandir 724localedir 725libdir 726psdir 727pdfdir 728dvidir 729htmldir 730infodir 731docdir 732oldincludedir 733includedir 734localstatedir 735sharedstatedir 736sysconfdir 737datadir 738datarootdir 739libexecdir 740sbindir 741bindir 742program_transform_name 743prefix 744exec_prefix 745PACKAGE_URL 746PACKAGE_BUGREPORT 747PACKAGE_STRING 748PACKAGE_VERSION 749PACKAGE_TARNAME 750PACKAGE_NAME 751PATH_SEPARATOR 752SHELL 753am__quote' 754ac_subst_files='' 755ac_user_opts=' 756enable_option_checking 757enable_silent_rules 758enable_dependency_tracking 759enable_shared 760enable_static 761with_pic 762enable_fast_install 763with_aix_soname 764with_gnu_ld 765with_sysroot 766enable_libtool_lock 767' 768 ac_precious_vars='build_alias 769host_alias 770target_alias 771CC 772CFLAGS 773LDFLAGS 774LIBS 775CPPFLAGS 776LT_SYS_LIBRARY_PATH 777CPP' 778 779 780# Initialize some variables set by options. 781ac_init_help= 782ac_init_version=false 783ac_unrecognized_opts= 784ac_unrecognized_sep= 785# The variables have the same names as the options, with 786# dashes changed to underlines. 787cache_file=/dev/null 788exec_prefix=NONE 789no_create= 790no_recursion= 791prefix=NONE 792program_prefix=NONE 793program_suffix=NONE 794program_transform_name=s,x,x, 795silent= 796site= 797srcdir= 798verbose= 799x_includes=NONE 800x_libraries=NONE 801 802# Installation directory options. 803# These are left unexpanded so users can "make install exec_prefix=/foo" 804# and all the variables that are supposed to be based on exec_prefix 805# by default will actually change. 806# Use braces instead of parens because sh, perl, etc. also accept them. 807# (The list follows the same order as the GNU Coding Standards.) 808bindir='${exec_prefix}/bin' 809sbindir='${exec_prefix}/sbin' 810libexecdir='${exec_prefix}/libexec' 811datarootdir='${prefix}/share' 812datadir='${datarootdir}' 813sysconfdir='${prefix}/etc' 814sharedstatedir='${prefix}/com' 815localstatedir='${prefix}/var' 816includedir='${prefix}/include' 817oldincludedir='/usr/include' 818docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 819infodir='${datarootdir}/info' 820htmldir='${docdir}' 821dvidir='${docdir}' 822pdfdir='${docdir}' 823psdir='${docdir}' 824libdir='${exec_prefix}/lib' 825localedir='${datarootdir}/locale' 826mandir='${datarootdir}/man' 827 828ac_prev= 829ac_dashdash= 830for ac_option 831do 832 # If the previous option needs an argument, assign it. 833 if test -n "$ac_prev"; then 834 eval $ac_prev=\$ac_option 835 ac_prev= 836 continue 837 fi 838 839 case $ac_option in 840 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 841 *=) ac_optarg= ;; 842 *) ac_optarg=yes ;; 843 esac 844 845 # Accept the important Cygnus configure options, so we can diagnose typos. 846 847 case $ac_dashdash$ac_option in 848 --) 849 ac_dashdash=yes ;; 850 851 -bindir | --bindir | --bindi | --bind | --bin | --bi) 852 ac_prev=bindir ;; 853 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 854 bindir=$ac_optarg ;; 855 856 -build | --build | --buil | --bui | --bu) 857 ac_prev=build_alias ;; 858 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 859 build_alias=$ac_optarg ;; 860 861 -cache-file | --cache-file | --cache-fil | --cache-fi \ 862 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 863 ac_prev=cache_file ;; 864 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 865 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 866 cache_file=$ac_optarg ;; 867 868 --config-cache | -C) 869 cache_file=config.cache ;; 870 871 -datadir | --datadir | --datadi | --datad) 872 ac_prev=datadir ;; 873 -datadir=* | --datadir=* | --datadi=* | --datad=*) 874 datadir=$ac_optarg ;; 875 876 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 877 | --dataroo | --dataro | --datar) 878 ac_prev=datarootdir ;; 879 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 880 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 881 datarootdir=$ac_optarg ;; 882 883 -disable-* | --disable-*) 884 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 885 # Reject names that are not valid shell variable names. 886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 887 as_fn_error $? "invalid feature name: $ac_useropt" 888 ac_useropt_orig=$ac_useropt 889 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 890 case $ac_user_opts in 891 *" 892"enable_$ac_useropt" 893"*) ;; 894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 895 ac_unrecognized_sep=', ';; 896 esac 897 eval enable_$ac_useropt=no ;; 898 899 -docdir | --docdir | --docdi | --doc | --do) 900 ac_prev=docdir ;; 901 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 902 docdir=$ac_optarg ;; 903 904 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 905 ac_prev=dvidir ;; 906 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 907 dvidir=$ac_optarg ;; 908 909 -enable-* | --enable-*) 910 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 911 # Reject names that are not valid shell variable names. 912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 913 as_fn_error $? "invalid feature name: $ac_useropt" 914 ac_useropt_orig=$ac_useropt 915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 916 case $ac_user_opts in 917 *" 918"enable_$ac_useropt" 919"*) ;; 920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 921 ac_unrecognized_sep=', ';; 922 esac 923 eval enable_$ac_useropt=\$ac_optarg ;; 924 925 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 926 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 927 | --exec | --exe | --ex) 928 ac_prev=exec_prefix ;; 929 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 930 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 931 | --exec=* | --exe=* | --ex=*) 932 exec_prefix=$ac_optarg ;; 933 934 -gas | --gas | --ga | --g) 935 # Obsolete; use --with-gas. 936 with_gas=yes ;; 937 938 -help | --help | --hel | --he | -h) 939 ac_init_help=long ;; 940 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 941 ac_init_help=recursive ;; 942 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 943 ac_init_help=short ;; 944 945 -host | --host | --hos | --ho) 946 ac_prev=host_alias ;; 947 -host=* | --host=* | --hos=* | --ho=*) 948 host_alias=$ac_optarg ;; 949 950 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 951 ac_prev=htmldir ;; 952 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 953 | --ht=*) 954 htmldir=$ac_optarg ;; 955 956 -includedir | --includedir | --includedi | --included | --include \ 957 | --includ | --inclu | --incl | --inc) 958 ac_prev=includedir ;; 959 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 960 | --includ=* | --inclu=* | --incl=* | --inc=*) 961 includedir=$ac_optarg ;; 962 963 -infodir | --infodir | --infodi | --infod | --info | --inf) 964 ac_prev=infodir ;; 965 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 966 infodir=$ac_optarg ;; 967 968 -libdir | --libdir | --libdi | --libd) 969 ac_prev=libdir ;; 970 -libdir=* | --libdir=* | --libdi=* | --libd=*) 971 libdir=$ac_optarg ;; 972 973 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 974 | --libexe | --libex | --libe) 975 ac_prev=libexecdir ;; 976 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 977 | --libexe=* | --libex=* | --libe=*) 978 libexecdir=$ac_optarg ;; 979 980 -localedir | --localedir | --localedi | --localed | --locale) 981 ac_prev=localedir ;; 982 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 983 localedir=$ac_optarg ;; 984 985 -localstatedir | --localstatedir | --localstatedi | --localstated \ 986 | --localstate | --localstat | --localsta | --localst | --locals) 987 ac_prev=localstatedir ;; 988 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 989 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 990 localstatedir=$ac_optarg ;; 991 992 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 993 ac_prev=mandir ;; 994 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 995 mandir=$ac_optarg ;; 996 997 -nfp | --nfp | --nf) 998 # Obsolete; use --without-fp. 999 with_fp=no ;; 1000 1001 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1002 | --no-cr | --no-c | -n) 1003 no_create=yes ;; 1004 1005 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1006 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1007 no_recursion=yes ;; 1008 1009 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1010 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1011 | --oldin | --oldi | --old | --ol | --o) 1012 ac_prev=oldincludedir ;; 1013 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1014 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1015 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1016 oldincludedir=$ac_optarg ;; 1017 1018 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1019 ac_prev=prefix ;; 1020 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1021 prefix=$ac_optarg ;; 1022 1023 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1024 | --program-pre | --program-pr | --program-p) 1025 ac_prev=program_prefix ;; 1026 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1027 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1028 program_prefix=$ac_optarg ;; 1029 1030 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1031 | --program-suf | --program-su | --program-s) 1032 ac_prev=program_suffix ;; 1033 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1034 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1035 program_suffix=$ac_optarg ;; 1036 1037 -program-transform-name | --program-transform-name \ 1038 | --program-transform-nam | --program-transform-na \ 1039 | --program-transform-n | --program-transform- \ 1040 | --program-transform | --program-transfor \ 1041 | --program-transfo | --program-transf \ 1042 | --program-trans | --program-tran \ 1043 | --progr-tra | --program-tr | --program-t) 1044 ac_prev=program_transform_name ;; 1045 -program-transform-name=* | --program-transform-name=* \ 1046 | --program-transform-nam=* | --program-transform-na=* \ 1047 | --program-transform-n=* | --program-transform-=* \ 1048 | --program-transform=* | --program-transfor=* \ 1049 | --program-transfo=* | --program-transf=* \ 1050 | --program-trans=* | --program-tran=* \ 1051 | --progr-tra=* | --program-tr=* | --program-t=*) 1052 program_transform_name=$ac_optarg ;; 1053 1054 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1055 ac_prev=pdfdir ;; 1056 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1057 pdfdir=$ac_optarg ;; 1058 1059 -psdir | --psdir | --psdi | --psd | --ps) 1060 ac_prev=psdir ;; 1061 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1062 psdir=$ac_optarg ;; 1063 1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1065 | -silent | --silent | --silen | --sile | --sil) 1066 silent=yes ;; 1067 1068 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1069 ac_prev=sbindir ;; 1070 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1071 | --sbi=* | --sb=*) 1072 sbindir=$ac_optarg ;; 1073 1074 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1075 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1076 | --sharedst | --shareds | --shared | --share | --shar \ 1077 | --sha | --sh) 1078 ac_prev=sharedstatedir ;; 1079 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1080 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1081 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1082 | --sha=* | --sh=*) 1083 sharedstatedir=$ac_optarg ;; 1084 1085 -site | --site | --sit) 1086 ac_prev=site ;; 1087 -site=* | --site=* | --sit=*) 1088 site=$ac_optarg ;; 1089 1090 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1091 ac_prev=srcdir ;; 1092 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1093 srcdir=$ac_optarg ;; 1094 1095 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1096 | --syscon | --sysco | --sysc | --sys | --sy) 1097 ac_prev=sysconfdir ;; 1098 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1099 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1100 sysconfdir=$ac_optarg ;; 1101 1102 -target | --target | --targe | --targ | --tar | --ta | --t) 1103 ac_prev=target_alias ;; 1104 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1105 target_alias=$ac_optarg ;; 1106 1107 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1108 verbose=yes ;; 1109 1110 -version | --version | --versio | --versi | --vers | -V) 1111 ac_init_version=: ;; 1112 1113 -with-* | --with-*) 1114 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1115 # Reject names that are not valid shell variable names. 1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1117 as_fn_error $? "invalid package name: $ac_useropt" 1118 ac_useropt_orig=$ac_useropt 1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1120 case $ac_user_opts in 1121 *" 1122"with_$ac_useropt" 1123"*) ;; 1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1125 ac_unrecognized_sep=', ';; 1126 esac 1127 eval with_$ac_useropt=\$ac_optarg ;; 1128 1129 -without-* | --without-*) 1130 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1131 # Reject names that are not valid shell variable names. 1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1133 as_fn_error $? "invalid package name: $ac_useropt" 1134 ac_useropt_orig=$ac_useropt 1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1136 case $ac_user_opts in 1137 *" 1138"with_$ac_useropt" 1139"*) ;; 1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1141 ac_unrecognized_sep=', ';; 1142 esac 1143 eval with_$ac_useropt=no ;; 1144 1145 --x) 1146 # Obsolete; use --with-x. 1147 with_x=yes ;; 1148 1149 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1150 | --x-incl | --x-inc | --x-in | --x-i) 1151 ac_prev=x_includes ;; 1152 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1153 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1154 x_includes=$ac_optarg ;; 1155 1156 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1157 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1158 ac_prev=x_libraries ;; 1159 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1160 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1161 x_libraries=$ac_optarg ;; 1162 1163 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1164Try \`$0 --help' for more information" 1165 ;; 1166 1167 *=*) 1168 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1169 # Reject names that are not valid shell variable names. 1170 case $ac_envvar in #( 1171 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1172 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1173 esac 1174 eval $ac_envvar=\$ac_optarg 1175 export $ac_envvar ;; 1176 1177 *) 1178 # FIXME: should be removed in autoconf 3.0. 1179 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1180 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1181 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1182 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1183 ;; 1184 1185 esac 1186done 1187 1188if test -n "$ac_prev"; then 1189 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1190 as_fn_error $? "missing argument to $ac_option" 1191fi 1192 1193if test -n "$ac_unrecognized_opts"; then 1194 case $enable_option_checking in 1195 no) ;; 1196 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1197 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1198 esac 1199fi 1200 1201# Check all directory arguments for consistency. 1202for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1203 datadir sysconfdir sharedstatedir localstatedir includedir \ 1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1205 libdir localedir mandir 1206do 1207 eval ac_val=\$$ac_var 1208 # Remove trailing slashes. 1209 case $ac_val in 1210 */ ) 1211 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1212 eval $ac_var=\$ac_val;; 1213 esac 1214 # Be sure to have absolute directory names. 1215 case $ac_val in 1216 [\\/$]* | ?:[\\/]* ) continue;; 1217 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1218 esac 1219 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1220done 1221 1222# There might be people who depend on the old broken behavior: `$host' 1223# used to hold the argument of --host etc. 1224# FIXME: To remove some day. 1225build=$build_alias 1226host=$host_alias 1227target=$target_alias 1228 1229# FIXME: To remove some day. 1230if test "x$host_alias" != x; then 1231 if test "x$build_alias" = x; then 1232 cross_compiling=maybe 1233 elif test "x$build_alias" != "x$host_alias"; then 1234 cross_compiling=yes 1235 fi 1236fi 1237 1238ac_tool_prefix= 1239test -n "$host_alias" && ac_tool_prefix=$host_alias- 1240 1241test "$silent" = yes && exec 6>/dev/null 1242 1243 1244ac_pwd=`pwd` && test -n "$ac_pwd" && 1245ac_ls_di=`ls -di .` && 1246ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1247 as_fn_error $? "working directory cannot be determined" 1248test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1249 as_fn_error $? "pwd does not report name of working directory" 1250 1251 1252# Find the source files, if location was not specified. 1253if test -z "$srcdir"; then 1254 ac_srcdir_defaulted=yes 1255 # Try the directory containing this script, then the parent directory. 1256 ac_confdir=`$as_dirname -- "$as_myself" || 1257$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1258 X"$as_myself" : 'X\(//\)[^/]' \| \ 1259 X"$as_myself" : 'X\(//\)$' \| \ 1260 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1261$as_echo X"$as_myself" | 1262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1263 s//\1/ 1264 q 1265 } 1266 /^X\(\/\/\)[^/].*/{ 1267 s//\1/ 1268 q 1269 } 1270 /^X\(\/\/\)$/{ 1271 s//\1/ 1272 q 1273 } 1274 /^X\(\/\).*/{ 1275 s//\1/ 1276 q 1277 } 1278 s/.*/./; q'` 1279 srcdir=$ac_confdir 1280 if test ! -r "$srcdir/$ac_unique_file"; then 1281 srcdir=.. 1282 fi 1283else 1284 ac_srcdir_defaulted=no 1285fi 1286if test ! -r "$srcdir/$ac_unique_file"; then 1287 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1288 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1289fi 1290ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1291ac_abs_confdir=`( 1292 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1293 pwd)` 1294# When building in place, set srcdir=. 1295if test "$ac_abs_confdir" = "$ac_pwd"; then 1296 srcdir=. 1297fi 1298# Remove unnecessary trailing slashes from srcdir. 1299# Double slashes in file names in object file debugging info 1300# mess up M-x gdb in Emacs. 1301case $srcdir in 1302*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1303esac 1304for ac_var in $ac_precious_vars; do 1305 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1306 eval ac_env_${ac_var}_value=\$${ac_var} 1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1308 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1309done 1310 1311# 1312# Report the --help message. 1313# 1314if test "$ac_init_help" = "long"; then 1315 # Omit some internal or obsolete options to make the list less imposing. 1316 # This message is too long to be a string in the A/UX 3.1 sh. 1317 cat <<_ACEOF 1318\`configure' configures libhmac 1.00 to adapt to many kinds of systems. 1319 1320Usage: $0 [OPTION]... [VAR=VALUE]... 1321 1322To assign environment variables (e.g., CC, CFLAGS...), specify them as 1323VAR=VALUE. See below for descriptions of some of the useful variables. 1324 1325Defaults for the options are specified in brackets. 1326 1327Configuration: 1328 -h, --help display this help and exit 1329 --help=short display options specific to this package 1330 --help=recursive display the short help of all the included packages 1331 -V, --version display version information and exit 1332 -q, --quiet, --silent do not print \`checking ...' messages 1333 --cache-file=FILE cache test results in FILE [disabled] 1334 -C, --config-cache alias for \`--cache-file=config.cache' 1335 -n, --no-create do not create output files 1336 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1337 1338Installation directories: 1339 --prefix=PREFIX install architecture-independent files in PREFIX 1340 [$ac_default_prefix] 1341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1342 [PREFIX] 1343 1344By default, \`make install' will install all the files in 1345\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1346an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1347for instance \`--prefix=\$HOME'. 1348 1349For better control, use the options below. 1350 1351Fine tuning of the installation directories: 1352 --bindir=DIR user executables [EPREFIX/bin] 1353 --sbindir=DIR system admin executables [EPREFIX/sbin] 1354 --libexecdir=DIR program executables [EPREFIX/libexec] 1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1358 --libdir=DIR object code libraries [EPREFIX/lib] 1359 --includedir=DIR C header files [PREFIX/include] 1360 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1363 --infodir=DIR info documentation [DATAROOTDIR/info] 1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1365 --mandir=DIR man documentation [DATAROOTDIR/man] 1366 --docdir=DIR documentation root [DATAROOTDIR/doc/libhmac] 1367 --htmldir=DIR html documentation [DOCDIR] 1368 --dvidir=DIR dvi documentation [DOCDIR] 1369 --pdfdir=DIR pdf documentation [DOCDIR] 1370 --psdir=DIR ps documentation [DOCDIR] 1371_ACEOF 1372 1373 cat <<\_ACEOF 1374 1375Program names: 1376 --program-prefix=PREFIX prepend PREFIX to installed program names 1377 --program-suffix=SUFFIX append SUFFIX to installed program names 1378 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1379 1380System types: 1381 --build=BUILD configure for building on BUILD [guessed] 1382 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1383_ACEOF 1384fi 1385 1386if test -n "$ac_init_help"; then 1387 case $ac_init_help in 1388 short | recursive ) echo "Configuration of libhmac 1.00:";; 1389 esac 1390 cat <<\_ACEOF 1391 1392Optional Features: 1393 --disable-option-checking ignore unrecognized --enable/--with options 1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1396 --enable-silent-rules less verbose build output (undo: "make V=1") 1397 --disable-silent-rules verbose build output (undo: "make V=0") 1398 --enable-dependency-tracking 1399 do not reject slow dependency extractors 1400 --disable-dependency-tracking 1401 speeds up one-time build 1402 --enable-shared[=PKGS] build shared libraries [default=yes] 1403 --enable-static[=PKGS] build static libraries [default=yes] 1404 --enable-fast-install[=PKGS] 1405 optimize for fast installation [default=yes] 1406 --disable-libtool-lock avoid locking (might break parallel builds) 1407 1408Optional Packages: 1409 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1410 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1411 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1412 both] 1413 --with-aix-soname=aix|svr4|both 1414 shared library versioning (aka "SONAME") variant to 1415 provide on AIX, [default=aix]. 1416 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1417 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1418 compiler's sysroot if not specified). 1419 1420Some influential environment variables: 1421 CC C compiler command 1422 CFLAGS C compiler flags 1423 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1424 nonstandard directory <lib dir> 1425 LIBS libraries to pass to the linker, e.g. -l<library> 1426 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1427 you have headers in a nonstandard directory <include dir> 1428 LT_SYS_LIBRARY_PATH 1429 User-defined run-time library search path. 1430 CPP C preprocessor 1431 1432Use these variables to override the choices made by `configure' or to help 1433it to find libraries and programs with nonstandard names/locations. 1434 1435Report bugs to <courier-users@lists.sourceforge.net>. 1436_ACEOF 1437ac_status=$? 1438fi 1439 1440if test "$ac_init_help" = "recursive"; then 1441 # If there are subdirs, report their specific --help. 1442 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1443 test -d "$ac_dir" || 1444 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1445 continue 1446 ac_builddir=. 1447 1448case "$ac_dir" in 1449.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1450*) 1451 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1452 # A ".." for each directory in $ac_dir_suffix. 1453 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1454 case $ac_top_builddir_sub in 1455 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1456 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1457 esac ;; 1458esac 1459ac_abs_top_builddir=$ac_pwd 1460ac_abs_builddir=$ac_pwd$ac_dir_suffix 1461# for backward compatibility: 1462ac_top_builddir=$ac_top_build_prefix 1463 1464case $srcdir in 1465 .) # We are building in place. 1466 ac_srcdir=. 1467 ac_top_srcdir=$ac_top_builddir_sub 1468 ac_abs_top_srcdir=$ac_pwd ;; 1469 [\\/]* | ?:[\\/]* ) # Absolute name. 1470 ac_srcdir=$srcdir$ac_dir_suffix; 1471 ac_top_srcdir=$srcdir 1472 ac_abs_top_srcdir=$srcdir ;; 1473 *) # Relative name. 1474 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1475 ac_top_srcdir=$ac_top_build_prefix$srcdir 1476 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1477esac 1478ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1479 1480 cd "$ac_dir" || { ac_status=$?; continue; } 1481 # Check for guested configure. 1482 if test -f "$ac_srcdir/configure.gnu"; then 1483 echo && 1484 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1485 elif test -f "$ac_srcdir/configure"; then 1486 echo && 1487 $SHELL "$ac_srcdir/configure" --help=recursive 1488 else 1489 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1490 fi || ac_status=$? 1491 cd "$ac_pwd" || { ac_status=$?; break; } 1492 done 1493fi 1494 1495test -n "$ac_init_help" && exit $ac_status 1496if $ac_init_version; then 1497 cat <<\_ACEOF 1498libhmac configure 1.00 1499generated by GNU Autoconf 2.69 1500 1501Copyright (C) 2012 Free Software Foundation, Inc. 1502This configure script is free software; the Free Software Foundation 1503gives unlimited permission to copy, distribute and modify it. 1504_ACEOF 1505 exit 1506fi 1507 1508## ------------------------ ## 1509## Autoconf initialization. ## 1510## ------------------------ ## 1511 1512# ac_fn_c_try_compile LINENO 1513# -------------------------- 1514# Try to compile conftest.$ac_ext, and return whether this succeeded. 1515ac_fn_c_try_compile () 1516{ 1517 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1518 rm -f conftest.$ac_objext 1519 if { { ac_try="$ac_compile" 1520case "(($ac_try" in 1521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1522 *) ac_try_echo=$ac_try;; 1523esac 1524eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1525$as_echo "$ac_try_echo"; } >&5 1526 (eval "$ac_compile") 2>conftest.err 1527 ac_status=$? 1528 if test -s conftest.err; then 1529 grep -v '^ *+' conftest.err >conftest.er1 1530 cat conftest.er1 >&5 1531 mv -f conftest.er1 conftest.err 1532 fi 1533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1534 test $ac_status = 0; } && { 1535 test -z "$ac_c_werror_flag" || 1536 test ! -s conftest.err 1537 } && test -s conftest.$ac_objext; then : 1538 ac_retval=0 1539else 1540 $as_echo "$as_me: failed program was:" >&5 1541sed 's/^/| /' conftest.$ac_ext >&5 1542 1543 ac_retval=1 1544fi 1545 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1546 as_fn_set_status $ac_retval 1547 1548} # ac_fn_c_try_compile 1549 1550# ac_fn_c_try_link LINENO 1551# ----------------------- 1552# Try to link conftest.$ac_ext, and return whether this succeeded. 1553ac_fn_c_try_link () 1554{ 1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1556 rm -f conftest.$ac_objext conftest$ac_exeext 1557 if { { ac_try="$ac_link" 1558case "(($ac_try" in 1559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1560 *) ac_try_echo=$ac_try;; 1561esac 1562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1563$as_echo "$ac_try_echo"; } >&5 1564 (eval "$ac_link") 2>conftest.err 1565 ac_status=$? 1566 if test -s conftest.err; then 1567 grep -v '^ *+' conftest.err >conftest.er1 1568 cat conftest.er1 >&5 1569 mv -f conftest.er1 conftest.err 1570 fi 1571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1572 test $ac_status = 0; } && { 1573 test -z "$ac_c_werror_flag" || 1574 test ! -s conftest.err 1575 } && test -s conftest$ac_exeext && { 1576 test "$cross_compiling" = yes || 1577 test -x conftest$ac_exeext 1578 }; then : 1579 ac_retval=0 1580else 1581 $as_echo "$as_me: failed program was:" >&5 1582sed 's/^/| /' conftest.$ac_ext >&5 1583 1584 ac_retval=1 1585fi 1586 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1587 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1588 # interfere with the next link command; also delete a directory that is 1589 # left behind by Apple's compiler. We do this before executing the actions. 1590 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1592 as_fn_set_status $ac_retval 1593 1594} # ac_fn_c_try_link 1595 1596# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1597# ------------------------------------------------------- 1598# Tests whether HEADER exists and can be compiled using the include files in 1599# INCLUDES, setting the cache variable VAR accordingly. 1600ac_fn_c_check_header_compile () 1601{ 1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1604$as_echo_n "checking for $2... " >&6; } 1605if eval \${$3+:} false; then : 1606 $as_echo_n "(cached) " >&6 1607else 1608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1609/* end confdefs.h. */ 1610$4 1611#include <$2> 1612_ACEOF 1613if ac_fn_c_try_compile "$LINENO"; then : 1614 eval "$3=yes" 1615else 1616 eval "$3=no" 1617fi 1618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1619fi 1620eval ac_res=\$$3 1621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1622$as_echo "$ac_res" >&6; } 1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1624 1625} # ac_fn_c_check_header_compile 1626 1627# ac_fn_c_try_cpp LINENO 1628# ---------------------- 1629# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1630ac_fn_c_try_cpp () 1631{ 1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1633 if { { ac_try="$ac_cpp conftest.$ac_ext" 1634case "(($ac_try" in 1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1636 *) ac_try_echo=$ac_try;; 1637esac 1638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1639$as_echo "$ac_try_echo"; } >&5 1640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1641 ac_status=$? 1642 if test -s conftest.err; then 1643 grep -v '^ *+' conftest.err >conftest.er1 1644 cat conftest.er1 >&5 1645 mv -f conftest.er1 conftest.err 1646 fi 1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1648 test $ac_status = 0; } > conftest.i && { 1649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1650 test ! -s conftest.err 1651 }; then : 1652 ac_retval=0 1653else 1654 $as_echo "$as_me: failed program was:" >&5 1655sed 's/^/| /' conftest.$ac_ext >&5 1656 1657 ac_retval=1 1658fi 1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1660 as_fn_set_status $ac_retval 1661 1662} # ac_fn_c_try_cpp 1663 1664# ac_fn_c_try_run LINENO 1665# ---------------------- 1666# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1667# that executables *can* be run. 1668ac_fn_c_try_run () 1669{ 1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1671 if { { ac_try="$ac_link" 1672case "(($ac_try" in 1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1674 *) ac_try_echo=$ac_try;; 1675esac 1676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1677$as_echo "$ac_try_echo"; } >&5 1678 (eval "$ac_link") 2>&5 1679 ac_status=$? 1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1681 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1682 { { case "(($ac_try" in 1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1684 *) ac_try_echo=$ac_try;; 1685esac 1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1687$as_echo "$ac_try_echo"; } >&5 1688 (eval "$ac_try") 2>&5 1689 ac_status=$? 1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1691 test $ac_status = 0; }; }; then : 1692 ac_retval=0 1693else 1694 $as_echo "$as_me: program exited with status $ac_status" >&5 1695 $as_echo "$as_me: failed program was:" >&5 1696sed 's/^/| /' conftest.$ac_ext >&5 1697 1698 ac_retval=$ac_status 1699fi 1700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1702 as_fn_set_status $ac_retval 1703 1704} # ac_fn_c_try_run 1705 1706# ac_fn_c_check_func LINENO FUNC VAR 1707# ---------------------------------- 1708# Tests whether FUNC exists, setting the cache variable VAR accordingly 1709ac_fn_c_check_func () 1710{ 1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1713$as_echo_n "checking for $2... " >&6; } 1714if eval \${$3+:} false; then : 1715 $as_echo_n "(cached) " >&6 1716else 1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1718/* end confdefs.h. */ 1719/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1720 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1721#define $2 innocuous_$2 1722 1723/* System header to define __stub macros and hopefully few prototypes, 1724 which can conflict with char $2 (); below. 1725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1726 <limits.h> exists even on freestanding compilers. */ 1727 1728#ifdef __STDC__ 1729# include <limits.h> 1730#else 1731# include <assert.h> 1732#endif 1733 1734#undef $2 1735 1736/* Override any GCC internal prototype to avoid an error. 1737 Use char because int might match the return type of a GCC 1738 builtin and then its argument prototype would still apply. */ 1739#ifdef __cplusplus 1740extern "C" 1741#endif 1742char $2 (); 1743/* The GNU C library defines this for functions which it implements 1744 to always fail with ENOSYS. Some functions are actually named 1745 something starting with __ and the normal name is an alias. */ 1746#if defined __stub_$2 || defined __stub___$2 1747choke me 1748#endif 1749 1750int 1751main () 1752{ 1753return $2 (); 1754 ; 1755 return 0; 1756} 1757_ACEOF 1758if ac_fn_c_try_link "$LINENO"; then : 1759 eval "$3=yes" 1760else 1761 eval "$3=no" 1762fi 1763rm -f core conftest.err conftest.$ac_objext \ 1764 conftest$ac_exeext conftest.$ac_ext 1765fi 1766eval ac_res=\$$3 1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1768$as_echo "$ac_res" >&6; } 1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1770 1771} # ac_fn_c_check_func 1772 1773# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1774# ------------------------------------------- 1775# Tests whether TYPE exists after having included INCLUDES, setting cache 1776# variable VAR accordingly. 1777ac_fn_c_check_type () 1778{ 1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1781$as_echo_n "checking for $2... " >&6; } 1782if eval \${$3+:} false; then : 1783 $as_echo_n "(cached) " >&6 1784else 1785 eval "$3=no" 1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1787/* end confdefs.h. */ 1788$4 1789int 1790main () 1791{ 1792if (sizeof ($2)) 1793 return 0; 1794 ; 1795 return 0; 1796} 1797_ACEOF 1798if ac_fn_c_try_compile "$LINENO"; then : 1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1800/* end confdefs.h. */ 1801$4 1802int 1803main () 1804{ 1805if (sizeof (($2))) 1806 return 0; 1807 ; 1808 return 0; 1809} 1810_ACEOF 1811if ac_fn_c_try_compile "$LINENO"; then : 1812 1813else 1814 eval "$3=yes" 1815fi 1816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1817fi 1818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1819fi 1820eval ac_res=\$$3 1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1822$as_echo "$ac_res" >&6; } 1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1824 1825} # ac_fn_c_check_type 1826cat >config.log <<_ACEOF 1827This file contains any messages produced by compilers while 1828running configure, to aid debugging if configure makes a mistake. 1829 1830It was created by libhmac $as_me 1.00, which was 1831generated by GNU Autoconf 2.69. Invocation command line was 1832 1833 $ $0 $@ 1834 1835_ACEOF 1836exec 5>>config.log 1837{ 1838cat <<_ASUNAME 1839## --------- ## 1840## Platform. ## 1841## --------- ## 1842 1843hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1844uname -m = `(uname -m) 2>/dev/null || echo unknown` 1845uname -r = `(uname -r) 2>/dev/null || echo unknown` 1846uname -s = `(uname -s) 2>/dev/null || echo unknown` 1847uname -v = `(uname -v) 2>/dev/null || echo unknown` 1848 1849/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1850/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1851 1852/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1853/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1854/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1855/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1856/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1857/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1858/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1859 1860_ASUNAME 1861 1862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1863for as_dir in $PATH 1864do 1865 IFS=$as_save_IFS 1866 test -z "$as_dir" && as_dir=. 1867 $as_echo "PATH: $as_dir" 1868 done 1869IFS=$as_save_IFS 1870 1871} >&5 1872 1873cat >&5 <<_ACEOF 1874 1875 1876## ----------- ## 1877## Core tests. ## 1878## ----------- ## 1879 1880_ACEOF 1881 1882 1883# Keep a trace of the command line. 1884# Strip out --no-create and --no-recursion so they do not pile up. 1885# Strip out --silent because we don't want to record it for future runs. 1886# Also quote any args containing shell meta-characters. 1887# Make two passes to allow for proper duplicate-argument suppression. 1888ac_configure_args= 1889ac_configure_args0= 1890ac_configure_args1= 1891ac_must_keep_next=false 1892for ac_pass in 1 2 1893do 1894 for ac_arg 1895 do 1896 case $ac_arg in 1897 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1898 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1899 | -silent | --silent | --silen | --sile | --sil) 1900 continue ;; 1901 *\'*) 1902 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1903 esac 1904 case $ac_pass in 1905 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1906 2) 1907 as_fn_append ac_configure_args1 " '$ac_arg'" 1908 if test $ac_must_keep_next = true; then 1909 ac_must_keep_next=false # Got value, back to normal. 1910 else 1911 case $ac_arg in 1912 *=* | --config-cache | -C | -disable-* | --disable-* \ 1913 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1914 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1915 | -with-* | --with-* | -without-* | --without-* | --x) 1916 case "$ac_configure_args0 " in 1917 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1918 esac 1919 ;; 1920 -* ) ac_must_keep_next=true ;; 1921 esac 1922 fi 1923 as_fn_append ac_configure_args " '$ac_arg'" 1924 ;; 1925 esac 1926 done 1927done 1928{ ac_configure_args0=; unset ac_configure_args0;} 1929{ ac_configure_args1=; unset ac_configure_args1;} 1930 1931# When interrupted or exit'd, cleanup temporary files, and complete 1932# config.log. We remove comments because anyway the quotes in there 1933# would cause problems or look ugly. 1934# WARNING: Use '\'' to represent an apostrophe within the trap. 1935# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1936trap 'exit_status=$? 1937 # Save into config.log some information that might help in debugging. 1938 { 1939 echo 1940 1941 $as_echo "## ---------------- ## 1942## Cache variables. ## 1943## ---------------- ##" 1944 echo 1945 # The following way of writing the cache mishandles newlines in values, 1946( 1947 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1948 eval ac_val=\$$ac_var 1949 case $ac_val in #( 1950 *${as_nl}*) 1951 case $ac_var in #( 1952 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1953$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1954 esac 1955 case $ac_var in #( 1956 _ | IFS | as_nl) ;; #( 1957 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1958 *) { eval $ac_var=; unset $ac_var;} ;; 1959 esac ;; 1960 esac 1961 done 1962 (set) 2>&1 | 1963 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1964 *${as_nl}ac_space=\ *) 1965 sed -n \ 1966 "s/'\''/'\''\\\\'\'''\''/g; 1967 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1968 ;; #( 1969 *) 1970 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1971 ;; 1972 esac | 1973 sort 1974) 1975 echo 1976 1977 $as_echo "## ----------------- ## 1978## Output variables. ## 1979## ----------------- ##" 1980 echo 1981 for ac_var in $ac_subst_vars 1982 do 1983 eval ac_val=\$$ac_var 1984 case $ac_val in 1985 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1986 esac 1987 $as_echo "$ac_var='\''$ac_val'\''" 1988 done | sort 1989 echo 1990 1991 if test -n "$ac_subst_files"; then 1992 $as_echo "## ------------------- ## 1993## File substitutions. ## 1994## ------------------- ##" 1995 echo 1996 for ac_var in $ac_subst_files 1997 do 1998 eval ac_val=\$$ac_var 1999 case $ac_val in 2000 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2001 esac 2002 $as_echo "$ac_var='\''$ac_val'\''" 2003 done | sort 2004 echo 2005 fi 2006 2007 if test -s confdefs.h; then 2008 $as_echo "## ----------- ## 2009## confdefs.h. ## 2010## ----------- ##" 2011 echo 2012 cat confdefs.h 2013 echo 2014 fi 2015 test "$ac_signal" != 0 && 2016 $as_echo "$as_me: caught signal $ac_signal" 2017 $as_echo "$as_me: exit $exit_status" 2018 } >&5 2019 rm -f core *.core core.conftest.* && 2020 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2021 exit $exit_status 2022' 0 2023for ac_signal in 1 2 13 15; do 2024 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2025done 2026ac_signal=0 2027 2028# confdefs.h avoids OS command line length limits that DEFS can exceed. 2029rm -f -r conftest* confdefs.h 2030 2031$as_echo "/* confdefs.h */" > confdefs.h 2032 2033# Predefined preprocessor variables. 2034 2035cat >>confdefs.h <<_ACEOF 2036#define PACKAGE_NAME "$PACKAGE_NAME" 2037_ACEOF 2038 2039cat >>confdefs.h <<_ACEOF 2040#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2041_ACEOF 2042 2043cat >>confdefs.h <<_ACEOF 2044#define PACKAGE_VERSION "$PACKAGE_VERSION" 2045_ACEOF 2046 2047cat >>confdefs.h <<_ACEOF 2048#define PACKAGE_STRING "$PACKAGE_STRING" 2049_ACEOF 2050 2051cat >>confdefs.h <<_ACEOF 2052#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2053_ACEOF 2054 2055cat >>confdefs.h <<_ACEOF 2056#define PACKAGE_URL "$PACKAGE_URL" 2057_ACEOF 2058 2059 2060# Let the site file select an alternate cache file if it wants to. 2061# Prefer an explicitly selected file to automatically selected ones. 2062ac_site_file1=NONE 2063ac_site_file2=NONE 2064if test -n "$CONFIG_SITE"; then 2065 # We do not want a PATH search for config.site. 2066 case $CONFIG_SITE in #(( 2067 -*) ac_site_file1=./$CONFIG_SITE;; 2068 */*) ac_site_file1=$CONFIG_SITE;; 2069 *) ac_site_file1=./$CONFIG_SITE;; 2070 esac 2071elif test "x$prefix" != xNONE; then 2072 ac_site_file1=$prefix/share/config.site 2073 ac_site_file2=$prefix/etc/config.site 2074else 2075 ac_site_file1=$ac_default_prefix/share/config.site 2076 ac_site_file2=$ac_default_prefix/etc/config.site 2077fi 2078for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2079do 2080 test "x$ac_site_file" = xNONE && continue 2081 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2082 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2083$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2084 sed 's/^/| /' "$ac_site_file" >&5 2085 . "$ac_site_file" \ 2086 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2087$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2088as_fn_error $? "failed to load site script $ac_site_file 2089See \`config.log' for more details" "$LINENO" 5; } 2090 fi 2091done 2092 2093if test -r "$cache_file"; then 2094 # Some versions of bash will fail to source /dev/null (special files 2095 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2096 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2097 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2098$as_echo "$as_me: loading cache $cache_file" >&6;} 2099 case $cache_file in 2100 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2101 *) . "./$cache_file";; 2102 esac 2103 fi 2104else 2105 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2106$as_echo "$as_me: creating cache $cache_file" >&6;} 2107 >$cache_file 2108fi 2109 2110# Check that the precious variables saved in the cache have kept the same 2111# value. 2112ac_cache_corrupted=false 2113for ac_var in $ac_precious_vars; do 2114 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2115 eval ac_new_set=\$ac_env_${ac_var}_set 2116 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2117 eval ac_new_val=\$ac_env_${ac_var}_value 2118 case $ac_old_set,$ac_new_set in 2119 set,) 2120 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2121$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2122 ac_cache_corrupted=: ;; 2123 ,set) 2124 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2125$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2126 ac_cache_corrupted=: ;; 2127 ,);; 2128 *) 2129 if test "x$ac_old_val" != "x$ac_new_val"; then 2130 # differences in whitespace do not lead to failure. 2131 ac_old_val_w=`echo x $ac_old_val` 2132 ac_new_val_w=`echo x $ac_new_val` 2133 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2134 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2135$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2136 ac_cache_corrupted=: 2137 else 2138 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2139$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2140 eval $ac_var=\$ac_old_val 2141 fi 2142 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2143$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2144 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2145$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2146 fi;; 2147 esac 2148 # Pass precious variables to config.status. 2149 if test "$ac_new_set" = set; then 2150 case $ac_new_val in 2151 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2152 *) ac_arg=$ac_var=$ac_new_val ;; 2153 esac 2154 case " $ac_configure_args " in 2155 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2156 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2157 esac 2158 fi 2159done 2160if $ac_cache_corrupted; then 2161 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2162$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2164$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2165 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2166fi 2167## -------------------- ## 2168## Main body of script. ## 2169## -------------------- ## 2170 2171ac_ext=c 2172ac_cpp='$CPP $CPPFLAGS' 2173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2175ac_compiler_gnu=$ac_cv_c_compiler_gnu 2176 2177 2178 2179>confdefs.h # Kill PACKAGE_ macros 2180 2181 2182ac_aux_dir= 2183for ac_dir in ../.. "$srcdir"/../..; do 2184 if test -f "$ac_dir/install-sh"; then 2185 ac_aux_dir=$ac_dir 2186 ac_install_sh="$ac_aux_dir/install-sh -c" 2187 break 2188 elif test -f "$ac_dir/install.sh"; then 2189 ac_aux_dir=$ac_dir 2190 ac_install_sh="$ac_aux_dir/install.sh -c" 2191 break 2192 elif test -f "$ac_dir/shtool"; then 2193 ac_aux_dir=$ac_dir 2194 ac_install_sh="$ac_aux_dir/shtool install -c" 2195 break 2196 fi 2197done 2198if test -z "$ac_aux_dir"; then 2199 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5 2200fi 2201 2202# These three variables are undocumented and unsupported, 2203# and are intended to be withdrawn in a future Autoconf release. 2204# They can cause serious problems if a builder's source tree is in a directory 2205# whose full name contains unusual characters. 2206ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2207ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2208ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2209 2210 2211am__api_version='1.16' 2212 2213# Find a good install program. We prefer a C program (faster), 2214# so one script is as good as another. But avoid the broken or 2215# incompatible versions: 2216# SysV /etc/install, /usr/sbin/install 2217# SunOS /usr/etc/install 2218# IRIX /sbin/install 2219# AIX /bin/install 2220# AmigaOS /C/install, which installs bootblocks on floppy discs 2221# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2222# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2223# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2224# OS/2's system install, which has a completely different semantic 2225# ./install, which can be erroneously created by make from ./install.sh. 2226# Reject install programs that cannot install multiple files. 2227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2228$as_echo_n "checking for a BSD-compatible install... " >&6; } 2229if test -z "$INSTALL"; then 2230if ${ac_cv_path_install+:} false; then : 2231 $as_echo_n "(cached) " >&6 2232else 2233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2234for as_dir in $PATH 2235do 2236 IFS=$as_save_IFS 2237 test -z "$as_dir" && as_dir=. 2238 # Account for people who put trailing slashes in PATH elements. 2239case $as_dir/ in #(( 2240 ./ | .// | /[cC]/* | \ 2241 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2242 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2243 /usr/ucb/* ) ;; 2244 *) 2245 # OSF1 and SCO ODT 3.0 have their own names for install. 2246 # Don't use installbsd from OSF since it installs stuff as root 2247 # by default. 2248 for ac_prog in ginstall scoinst install; do 2249 for ac_exec_ext in '' $ac_executable_extensions; do 2250 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2251 if test $ac_prog = install && 2252 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2253 # AIX install. It has an incompatible calling convention. 2254 : 2255 elif test $ac_prog = install && 2256 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2257 # program-specific install script used by HP pwplus--don't use. 2258 : 2259 else 2260 rm -rf conftest.one conftest.two conftest.dir 2261 echo one > conftest.one 2262 echo two > conftest.two 2263 mkdir conftest.dir 2264 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2265 test -s conftest.one && test -s conftest.two && 2266 test -s conftest.dir/conftest.one && 2267 test -s conftest.dir/conftest.two 2268 then 2269 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2270 break 3 2271 fi 2272 fi 2273 fi 2274 done 2275 done 2276 ;; 2277esac 2278 2279 done 2280IFS=$as_save_IFS 2281 2282rm -rf conftest.one conftest.two conftest.dir 2283 2284fi 2285 if test "${ac_cv_path_install+set}" = set; then 2286 INSTALL=$ac_cv_path_install 2287 else 2288 # As a last resort, use the slow shell script. Don't cache a 2289 # value for INSTALL within a source directory, because that will 2290 # break other packages using the cache if that directory is 2291 # removed, or if the value is a relative name. 2292 INSTALL=$ac_install_sh 2293 fi 2294fi 2295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2296$as_echo "$INSTALL" >&6; } 2297 2298# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2299# It thinks the first close brace ends the variable substitution. 2300test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2301 2302test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2303 2304test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2305 2306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2307$as_echo_n "checking whether build environment is sane... " >&6; } 2308# Reject unsafe characters in $srcdir or the absolute working directory 2309# name. Accept space and tab only in the latter. 2310am_lf=' 2311' 2312case `pwd` in 2313 *[\\\"\#\$\&\'\`$am_lf]*) 2314 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2315esac 2316case $srcdir in 2317 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2318 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2319esac 2320 2321# Do 'set' in a subshell so we don't clobber the current shell's 2322# arguments. Must try -L first in case configure is actually a 2323# symlink; some systems play weird games with the mod time of symlinks 2324# (eg FreeBSD returns the mod time of the symlink's containing 2325# directory). 2326if ( 2327 am_has_slept=no 2328 for am_try in 1 2; do 2329 echo "timestamp, slept: $am_has_slept" > conftest.file 2330 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2331 if test "$*" = "X"; then 2332 # -L didn't work. 2333 set X `ls -t "$srcdir/configure" conftest.file` 2334 fi 2335 if test "$*" != "X $srcdir/configure conftest.file" \ 2336 && test "$*" != "X conftest.file $srcdir/configure"; then 2337 2338 # If neither matched, then we have a broken ls. This can happen 2339 # if, for instance, CONFIG_SHELL is bash and it inherits a 2340 # broken ls alias from the environment. This has actually 2341 # happened. Such a system could not be considered "sane". 2342 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2343 alias in your environment" "$LINENO" 5 2344 fi 2345 if test "$2" = conftest.file || test $am_try -eq 2; then 2346 break 2347 fi 2348 # Just in case. 2349 sleep 1 2350 am_has_slept=yes 2351 done 2352 test "$2" = conftest.file 2353 ) 2354then 2355 # Ok. 2356 : 2357else 2358 as_fn_error $? "newly created file is older than distributed files! 2359Check your system clock" "$LINENO" 5 2360fi 2361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2362$as_echo "yes" >&6; } 2363# If we didn't sleep, we still need to ensure time stamps of config.status and 2364# generated files are strictly newer. 2365am_sleep_pid= 2366if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2367 ( sleep 1 ) & 2368 am_sleep_pid=$! 2369fi 2370 2371rm -f conftest.file 2372 2373test "$program_prefix" != NONE && 2374 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2375# Use a double $ so make ignores it. 2376test "$program_suffix" != NONE && 2377 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2378# Double any \ or $. 2379# By default was `s,x,x', remove it if useless. 2380ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2381program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2382 2383# Expand $ac_aux_dir to an absolute path. 2384am_aux_dir=`cd "$ac_aux_dir" && pwd` 2385 2386if test x"${MISSING+set}" != xset; then 2387 case $am_aux_dir in 2388 *\ * | *\ *) 2389 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2390 *) 2391 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2392 esac 2393fi 2394# Use eval to expand $SHELL 2395if eval "$MISSING --is-lightweight"; then 2396 am_missing_run="$MISSING " 2397else 2398 am_missing_run= 2399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2400$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2401fi 2402 2403if test x"${install_sh+set}" != xset; then 2404 case $am_aux_dir in 2405 *\ * | *\ *) 2406 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2407 *) 2408 install_sh="\${SHELL} $am_aux_dir/install-sh" 2409 esac 2410fi 2411 2412# Installed binaries are usually stripped using 'strip' when the user 2413# run "make install-strip". However 'strip' might not be the right 2414# tool to use in cross-compilation environments, therefore Automake 2415# will honor the 'STRIP' environment variable to overrule this program. 2416if test "$cross_compiling" != no; then 2417 if test -n "$ac_tool_prefix"; then 2418 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2419set dummy ${ac_tool_prefix}strip; ac_word=$2 2420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2421$as_echo_n "checking for $ac_word... " >&6; } 2422if ${ac_cv_prog_STRIP+:} false; then : 2423 $as_echo_n "(cached) " >&6 2424else 2425 if test -n "$STRIP"; then 2426 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2427else 2428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2429for as_dir in $PATH 2430do 2431 IFS=$as_save_IFS 2432 test -z "$as_dir" && as_dir=. 2433 for ac_exec_ext in '' $ac_executable_extensions; do 2434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2435 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2437 break 2 2438 fi 2439done 2440 done 2441IFS=$as_save_IFS 2442 2443fi 2444fi 2445STRIP=$ac_cv_prog_STRIP 2446if test -n "$STRIP"; then 2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2448$as_echo "$STRIP" >&6; } 2449else 2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2451$as_echo "no" >&6; } 2452fi 2453 2454 2455fi 2456if test -z "$ac_cv_prog_STRIP"; then 2457 ac_ct_STRIP=$STRIP 2458 # Extract the first word of "strip", so it can be a program name with args. 2459set dummy strip; ac_word=$2 2460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2461$as_echo_n "checking for $ac_word... " >&6; } 2462if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2463 $as_echo_n "(cached) " >&6 2464else 2465 if test -n "$ac_ct_STRIP"; then 2466 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2467else 2468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2469for as_dir in $PATH 2470do 2471 IFS=$as_save_IFS 2472 test -z "$as_dir" && as_dir=. 2473 for ac_exec_ext in '' $ac_executable_extensions; do 2474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2475 ac_cv_prog_ac_ct_STRIP="strip" 2476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2477 break 2 2478 fi 2479done 2480 done 2481IFS=$as_save_IFS 2482 2483fi 2484fi 2485ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2486if test -n "$ac_ct_STRIP"; then 2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2488$as_echo "$ac_ct_STRIP" >&6; } 2489else 2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2491$as_echo "no" >&6; } 2492fi 2493 2494 if test "x$ac_ct_STRIP" = x; then 2495 STRIP=":" 2496 else 2497 case $cross_compiling:$ac_tool_warned in 2498yes:) 2499{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2500$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2501ac_tool_warned=yes ;; 2502esac 2503 STRIP=$ac_ct_STRIP 2504 fi 2505else 2506 STRIP="$ac_cv_prog_STRIP" 2507fi 2508 2509fi 2510INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2511 2512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2513$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2514if test -z "$MKDIR_P"; then 2515 if ${ac_cv_path_mkdir+:} false; then : 2516 $as_echo_n "(cached) " >&6 2517else 2518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2519for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2520do 2521 IFS=$as_save_IFS 2522 test -z "$as_dir" && as_dir=. 2523 for ac_prog in mkdir gmkdir; do 2524 for ac_exec_ext in '' $ac_executable_extensions; do 2525 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2526 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2527 'mkdir (GNU coreutils) '* | \ 2528 'mkdir (coreutils) '* | \ 2529 'mkdir (fileutils) '4.1*) 2530 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2531 break 3;; 2532 esac 2533 done 2534 done 2535 done 2536IFS=$as_save_IFS 2537 2538fi 2539 2540 test -d ./--version && rmdir ./--version 2541 if test "${ac_cv_path_mkdir+set}" = set; then 2542 MKDIR_P="$ac_cv_path_mkdir -p" 2543 else 2544 # As a last resort, use the slow shell script. Don't cache a 2545 # value for MKDIR_P within a source directory, because that will 2546 # break other packages using the cache if that directory is 2547 # removed, or if the value is a relative name. 2548 MKDIR_P="$ac_install_sh -d" 2549 fi 2550fi 2551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2552$as_echo "$MKDIR_P" >&6; } 2553 2554for ac_prog in gawk mawk nawk awk 2555do 2556 # Extract the first word of "$ac_prog", so it can be a program name with args. 2557set dummy $ac_prog; ac_word=$2 2558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2559$as_echo_n "checking for $ac_word... " >&6; } 2560if ${ac_cv_prog_AWK+:} false; then : 2561 $as_echo_n "(cached) " >&6 2562else 2563 if test -n "$AWK"; then 2564 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2565else 2566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2567for as_dir in $PATH 2568do 2569 IFS=$as_save_IFS 2570 test -z "$as_dir" && as_dir=. 2571 for ac_exec_ext in '' $ac_executable_extensions; do 2572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2573 ac_cv_prog_AWK="$ac_prog" 2574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2575 break 2 2576 fi 2577done 2578 done 2579IFS=$as_save_IFS 2580 2581fi 2582fi 2583AWK=$ac_cv_prog_AWK 2584if test -n "$AWK"; then 2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2586$as_echo "$AWK" >&6; } 2587else 2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2589$as_echo "no" >&6; } 2590fi 2591 2592 2593 test -n "$AWK" && break 2594done 2595 2596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2597$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2598set x ${MAKE-make} 2599ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2600if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2601 $as_echo_n "(cached) " >&6 2602else 2603 cat >conftest.make <<\_ACEOF 2604SHELL = /bin/sh 2605all: 2606 @echo '@@@%%%=$(MAKE)=@@@%%%' 2607_ACEOF 2608# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2609case `${MAKE-make} -f conftest.make 2>/dev/null` in 2610 *@@@%%%=?*=@@@%%%*) 2611 eval ac_cv_prog_make_${ac_make}_set=yes;; 2612 *) 2613 eval ac_cv_prog_make_${ac_make}_set=no;; 2614esac 2615rm -f conftest.make 2616fi 2617if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2619$as_echo "yes" >&6; } 2620 SET_MAKE= 2621else 2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2623$as_echo "no" >&6; } 2624 SET_MAKE="MAKE=${MAKE-make}" 2625fi 2626 2627rm -rf .tst 2>/dev/null 2628mkdir .tst 2>/dev/null 2629if test -d .tst; then 2630 am__leading_dot=. 2631else 2632 am__leading_dot=_ 2633fi 2634rmdir .tst 2>/dev/null 2635 2636# Check whether --enable-silent-rules was given. 2637if test "${enable_silent_rules+set}" = set; then : 2638 enableval=$enable_silent_rules; 2639fi 2640 2641case $enable_silent_rules in # ((( 2642 yes) AM_DEFAULT_VERBOSITY=0;; 2643 no) AM_DEFAULT_VERBOSITY=1;; 2644 *) AM_DEFAULT_VERBOSITY=1;; 2645esac 2646am_make=${MAKE-make} 2647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2648$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2649if ${am_cv_make_support_nested_variables+:} false; then : 2650 $as_echo_n "(cached) " >&6 2651else 2652 if $as_echo 'TRUE=$(BAR$(V)) 2653BAR0=false 2654BAR1=true 2655V=1 2656am__doit: 2657 @$(TRUE) 2658.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2659 am_cv_make_support_nested_variables=yes 2660else 2661 am_cv_make_support_nested_variables=no 2662fi 2663fi 2664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2665$as_echo "$am_cv_make_support_nested_variables" >&6; } 2666if test $am_cv_make_support_nested_variables = yes; then 2667 AM_V='$(V)' 2668 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2669else 2670 AM_V=$AM_DEFAULT_VERBOSITY 2671 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2672fi 2673AM_BACKSLASH='\' 2674 2675if test "`cd $srcdir && pwd`" != "`pwd`"; then 2676 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2677 # is not polluted with repeated "-I." 2678 am__isrc=' -I$(srcdir)' 2679 # test to see if srcdir already configured 2680 if test -f $srcdir/config.status; then 2681 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2682 fi 2683fi 2684 2685# test whether we have cygpath 2686if test -z "$CYGPATH_W"; then 2687 if (cygpath --version) >/dev/null 2>/dev/null; then 2688 CYGPATH_W='cygpath -w' 2689 else 2690 CYGPATH_W=echo 2691 fi 2692fi 2693 2694 2695# Define the identity of the package. 2696 PACKAGE='libhmac' 2697 VERSION='1.00' 2698 2699 2700# Some tools Automake needs. 2701 2702ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2703 2704 2705AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2706 2707 2708AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2709 2710 2711AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2712 2713 2714MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2715 2716# For better backward compatibility. To be removed once Automake 1.9.x 2717# dies out for good. For more background, see: 2718# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2719# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2720mkdir_p='$(MKDIR_P)' 2721 2722# We need awk for the "check" target (and possibly the TAP driver). The 2723# system "awk" is bad on some platforms. 2724# Always define AMTAR for backward compatibility. Yes, it's still used 2725# in the wild :-( We should find a proper way to deprecate it ... 2726AMTAR='$${TAR-tar}' 2727 2728 2729# We'll loop over all known methods to create a tar archive until one works. 2730_am_tools='gnutar pax cpio none' 2731 2732am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2733 2734 2735 2736 2737 2738 2739# POSIX will say in a future version that running "rm -f" with no argument 2740# is OK; and we want to be able to make that assumption in our Makefile 2741# recipes. So use an aggressive probe to check that the usage we want is 2742# actually supported "in the wild" to an acceptable degree. 2743# See automake bug#10828. 2744# To make any issue more visible, cause the running configure to be aborted 2745# by default if the 'rm' program in use doesn't match our expectations; the 2746# user can still override this though. 2747if rm -f && rm -fr && rm -rf; then : OK; else 2748 cat >&2 <<'END' 2749Oops! 2750 2751Your 'rm' program seems unable to run without file operands specified 2752on the command line, even when the '-f' option is present. This is contrary 2753to the behaviour of most rm programs out there, and not conforming with 2754the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2755 2756Please tell bug-automake@gnu.org about your system, including the value 2757of your $PATH and any error possibly output before this message. This 2758can help us improve future automake versions. 2759 2760END 2761 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2762 echo 'Configuration will proceed anyway, since you have set the' >&2 2763 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2764 echo >&2 2765 else 2766 cat >&2 <<'END' 2767Aborting the configuration process, to ensure you take notice of the issue. 2768 2769You can download and install GNU coreutils to get an 'rm' implementation 2770that behaves properly: <https://www.gnu.org/software/coreutils/>. 2771 2772If you want to complete the configuration process using your problematic 2773'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2774to "yes", and re-run configure. 2775 2776END 2777 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2778 fi 2779fi 2780 2781 2782 2783ac_config_headers="$ac_config_headers config.h" 2784 2785 2786for ac_prog in gawk mawk nawk awk 2787do 2788 # Extract the first word of "$ac_prog", so it can be a program name with args. 2789set dummy $ac_prog; ac_word=$2 2790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2791$as_echo_n "checking for $ac_word... " >&6; } 2792if ${ac_cv_prog_AWK+:} false; then : 2793 $as_echo_n "(cached) " >&6 2794else 2795 if test -n "$AWK"; then 2796 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2797else 2798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2799for as_dir in $PATH 2800do 2801 IFS=$as_save_IFS 2802 test -z "$as_dir" && as_dir=. 2803 for ac_exec_ext in '' $ac_executable_extensions; do 2804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2805 ac_cv_prog_AWK="$ac_prog" 2806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2807 break 2 2808 fi 2809done 2810 done 2811IFS=$as_save_IFS 2812 2813fi 2814fi 2815AWK=$ac_cv_prog_AWK 2816if test -n "$AWK"; then 2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2818$as_echo "$AWK" >&6; } 2819else 2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2821$as_echo "no" >&6; } 2822fi 2823 2824 2825 test -n "$AWK" && break 2826done 2827 2828 2829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 2830$as_echo_n "checking whether ln -s works... " >&6; } 2831LN_S=$as_ln_s 2832if test "$LN_S" = "ln -s"; then 2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2834$as_echo "yes" >&6; } 2835else 2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 2837$as_echo "no, using $LN_S" >&6; } 2838fi 2839 2840ac_ext=c 2841ac_cpp='$CPP $CPPFLAGS' 2842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2844ac_compiler_gnu=$ac_cv_c_compiler_gnu 2845if test -n "$ac_tool_prefix"; then 2846 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2847set dummy ${ac_tool_prefix}gcc; ac_word=$2 2848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2849$as_echo_n "checking for $ac_word... " >&6; } 2850if ${ac_cv_prog_CC+:} false; then : 2851 $as_echo_n "(cached) " >&6 2852else 2853 if test -n "$CC"; then 2854 ac_cv_prog_CC="$CC" # Let the user override the test. 2855else 2856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2857for as_dir in $PATH 2858do 2859 IFS=$as_save_IFS 2860 test -z "$as_dir" && as_dir=. 2861 for ac_exec_ext in '' $ac_executable_extensions; do 2862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2863 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2865 break 2 2866 fi 2867done 2868 done 2869IFS=$as_save_IFS 2870 2871fi 2872fi 2873CC=$ac_cv_prog_CC 2874if test -n "$CC"; then 2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2876$as_echo "$CC" >&6; } 2877else 2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2879$as_echo "no" >&6; } 2880fi 2881 2882 2883fi 2884if test -z "$ac_cv_prog_CC"; then 2885 ac_ct_CC=$CC 2886 # Extract the first word of "gcc", so it can be a program name with args. 2887set dummy gcc; ac_word=$2 2888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2889$as_echo_n "checking for $ac_word... " >&6; } 2890if ${ac_cv_prog_ac_ct_CC+:} false; then : 2891 $as_echo_n "(cached) " >&6 2892else 2893 if test -n "$ac_ct_CC"; then 2894 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2895else 2896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2897for as_dir in $PATH 2898do 2899 IFS=$as_save_IFS 2900 test -z "$as_dir" && as_dir=. 2901 for ac_exec_ext in '' $ac_executable_extensions; do 2902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2903 ac_cv_prog_ac_ct_CC="gcc" 2904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2905 break 2 2906 fi 2907done 2908 done 2909IFS=$as_save_IFS 2910 2911fi 2912fi 2913ac_ct_CC=$ac_cv_prog_ac_ct_CC 2914if test -n "$ac_ct_CC"; then 2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2916$as_echo "$ac_ct_CC" >&6; } 2917else 2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2919$as_echo "no" >&6; } 2920fi 2921 2922 if test "x$ac_ct_CC" = x; then 2923 CC="" 2924 else 2925 case $cross_compiling:$ac_tool_warned in 2926yes:) 2927{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2928$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2929ac_tool_warned=yes ;; 2930esac 2931 CC=$ac_ct_CC 2932 fi 2933else 2934 CC="$ac_cv_prog_CC" 2935fi 2936 2937if test -z "$CC"; then 2938 if test -n "$ac_tool_prefix"; then 2939 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2940set dummy ${ac_tool_prefix}cc; ac_word=$2 2941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2942$as_echo_n "checking for $ac_word... " >&6; } 2943if ${ac_cv_prog_CC+:} false; then : 2944 $as_echo_n "(cached) " >&6 2945else 2946 if test -n "$CC"; then 2947 ac_cv_prog_CC="$CC" # Let the user override the test. 2948else 2949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2950for as_dir in $PATH 2951do 2952 IFS=$as_save_IFS 2953 test -z "$as_dir" && as_dir=. 2954 for ac_exec_ext in '' $ac_executable_extensions; do 2955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2956 ac_cv_prog_CC="${ac_tool_prefix}cc" 2957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2958 break 2 2959 fi 2960done 2961 done 2962IFS=$as_save_IFS 2963 2964fi 2965fi 2966CC=$ac_cv_prog_CC 2967if test -n "$CC"; then 2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2969$as_echo "$CC" >&6; } 2970else 2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2972$as_echo "no" >&6; } 2973fi 2974 2975 2976 fi 2977fi 2978if test -z "$CC"; then 2979 # Extract the first word of "cc", so it can be a program name with args. 2980set dummy cc; ac_word=$2 2981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2982$as_echo_n "checking for $ac_word... " >&6; } 2983if ${ac_cv_prog_CC+:} false; then : 2984 $as_echo_n "(cached) " >&6 2985else 2986 if test -n "$CC"; then 2987 ac_cv_prog_CC="$CC" # Let the user override the test. 2988else 2989 ac_prog_rejected=no 2990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2991for as_dir in $PATH 2992do 2993 IFS=$as_save_IFS 2994 test -z "$as_dir" && as_dir=. 2995 for ac_exec_ext in '' $ac_executable_extensions; do 2996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2997 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2998 ac_prog_rejected=yes 2999 continue 3000 fi 3001 ac_cv_prog_CC="cc" 3002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3003 break 2 3004 fi 3005done 3006 done 3007IFS=$as_save_IFS 3008 3009if test $ac_prog_rejected = yes; then 3010 # We found a bogon in the path, so make sure we never use it. 3011 set dummy $ac_cv_prog_CC 3012 shift 3013 if test $# != 0; then 3014 # We chose a different compiler from the bogus one. 3015 # However, it has the same basename, so the bogon will be chosen 3016 # first if we set CC to just the basename; use the full file name. 3017 shift 3018 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3019 fi 3020fi 3021fi 3022fi 3023CC=$ac_cv_prog_CC 3024if test -n "$CC"; then 3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3026$as_echo "$CC" >&6; } 3027else 3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3029$as_echo "no" >&6; } 3030fi 3031 3032 3033fi 3034if test -z "$CC"; then 3035 if test -n "$ac_tool_prefix"; then 3036 for ac_prog in cl.exe 3037 do 3038 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3039set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3041$as_echo_n "checking for $ac_word... " >&6; } 3042if ${ac_cv_prog_CC+:} false; then : 3043 $as_echo_n "(cached) " >&6 3044else 3045 if test -n "$CC"; then 3046 ac_cv_prog_CC="$CC" # Let the user override the test. 3047else 3048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3049for as_dir in $PATH 3050do 3051 IFS=$as_save_IFS 3052 test -z "$as_dir" && as_dir=. 3053 for ac_exec_ext in '' $ac_executable_extensions; do 3054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3055 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3057 break 2 3058 fi 3059done 3060 done 3061IFS=$as_save_IFS 3062 3063fi 3064fi 3065CC=$ac_cv_prog_CC 3066if test -n "$CC"; then 3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3068$as_echo "$CC" >&6; } 3069else 3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3071$as_echo "no" >&6; } 3072fi 3073 3074 3075 test -n "$CC" && break 3076 done 3077fi 3078if test -z "$CC"; then 3079 ac_ct_CC=$CC 3080 for ac_prog in cl.exe 3081do 3082 # Extract the first word of "$ac_prog", so it can be a program name with args. 3083set dummy $ac_prog; ac_word=$2 3084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3085$as_echo_n "checking for $ac_word... " >&6; } 3086if ${ac_cv_prog_ac_ct_CC+:} false; then : 3087 $as_echo_n "(cached) " >&6 3088else 3089 if test -n "$ac_ct_CC"; then 3090 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3091else 3092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3093for as_dir in $PATH 3094do 3095 IFS=$as_save_IFS 3096 test -z "$as_dir" && as_dir=. 3097 for ac_exec_ext in '' $ac_executable_extensions; do 3098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3099 ac_cv_prog_ac_ct_CC="$ac_prog" 3100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3101 break 2 3102 fi 3103done 3104 done 3105IFS=$as_save_IFS 3106 3107fi 3108fi 3109ac_ct_CC=$ac_cv_prog_ac_ct_CC 3110if test -n "$ac_ct_CC"; then 3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3112$as_echo "$ac_ct_CC" >&6; } 3113else 3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3115$as_echo "no" >&6; } 3116fi 3117 3118 3119 test -n "$ac_ct_CC" && break 3120done 3121 3122 if test "x$ac_ct_CC" = x; then 3123 CC="" 3124 else 3125 case $cross_compiling:$ac_tool_warned in 3126yes:) 3127{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3128$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3129ac_tool_warned=yes ;; 3130esac 3131 CC=$ac_ct_CC 3132 fi 3133fi 3134 3135fi 3136 3137 3138test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3139$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3140as_fn_error $? "no acceptable C compiler found in \$PATH 3141See \`config.log' for more details" "$LINENO" 5; } 3142 3143# Provide some information about the compiler. 3144$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3145set X $ac_compile 3146ac_compiler=$2 3147for ac_option in --version -v -V -qversion; do 3148 { { ac_try="$ac_compiler $ac_option >&5" 3149case "(($ac_try" in 3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3151 *) ac_try_echo=$ac_try;; 3152esac 3153eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3154$as_echo "$ac_try_echo"; } >&5 3155 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3156 ac_status=$? 3157 if test -s conftest.err; then 3158 sed '10a\ 3159... rest of stderr output deleted ... 3160 10q' conftest.err >conftest.er1 3161 cat conftest.er1 >&5 3162 fi 3163 rm -f conftest.er1 conftest.err 3164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3165 test $ac_status = 0; } 3166done 3167 3168cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3169/* end confdefs.h. */ 3170 3171int 3172main () 3173{ 3174 3175 ; 3176 return 0; 3177} 3178_ACEOF 3179ac_clean_files_save=$ac_clean_files 3180ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3181# Try to create an executable without -o first, disregard a.out. 3182# It will help us diagnose broken compilers, and finding out an intuition 3183# of exeext. 3184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3185$as_echo_n "checking whether the C compiler works... " >&6; } 3186ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3187 3188# The possible output files: 3189ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3190 3191ac_rmfiles= 3192for ac_file in $ac_files 3193do 3194 case $ac_file in 3195 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3196 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3197 esac 3198done 3199rm -f $ac_rmfiles 3200 3201if { { ac_try="$ac_link_default" 3202case "(($ac_try" in 3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3204 *) ac_try_echo=$ac_try;; 3205esac 3206eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3207$as_echo "$ac_try_echo"; } >&5 3208 (eval "$ac_link_default") 2>&5 3209 ac_status=$? 3210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3211 test $ac_status = 0; }; then : 3212 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3213# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3214# in a Makefile. We should not override ac_cv_exeext if it was cached, 3215# so that the user can short-circuit this test for compilers unknown to 3216# Autoconf. 3217for ac_file in $ac_files '' 3218do 3219 test -f "$ac_file" || continue 3220 case $ac_file in 3221 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3222 ;; 3223 [ab].out ) 3224 # We found the default executable, but exeext='' is most 3225 # certainly right. 3226 break;; 3227 *.* ) 3228 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3229 then :; else 3230 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3231 fi 3232 # We set ac_cv_exeext here because the later test for it is not 3233 # safe: cross compilers may not add the suffix if given an `-o' 3234 # argument, so we may need to know it at that point already. 3235 # Even if this section looks crufty: it has the advantage of 3236 # actually working. 3237 break;; 3238 * ) 3239 break;; 3240 esac 3241done 3242test "$ac_cv_exeext" = no && ac_cv_exeext= 3243 3244else 3245 ac_file='' 3246fi 3247if test -z "$ac_file"; then : 3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3249$as_echo "no" >&6; } 3250$as_echo "$as_me: failed program was:" >&5 3251sed 's/^/| /' conftest.$ac_ext >&5 3252 3253{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3254$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3255as_fn_error 77 "C compiler cannot create executables 3256See \`config.log' for more details" "$LINENO" 5; } 3257else 3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3259$as_echo "yes" >&6; } 3260fi 3261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3262$as_echo_n "checking for C compiler default output file name... " >&6; } 3263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3264$as_echo "$ac_file" >&6; } 3265ac_exeext=$ac_cv_exeext 3266 3267rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3268ac_clean_files=$ac_clean_files_save 3269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3270$as_echo_n "checking for suffix of executables... " >&6; } 3271if { { ac_try="$ac_link" 3272case "(($ac_try" in 3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3274 *) ac_try_echo=$ac_try;; 3275esac 3276eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3277$as_echo "$ac_try_echo"; } >&5 3278 (eval "$ac_link") 2>&5 3279 ac_status=$? 3280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3281 test $ac_status = 0; }; then : 3282 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3283# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3284# work properly (i.e., refer to `conftest.exe'), while it won't with 3285# `rm'. 3286for ac_file in conftest.exe conftest conftest.*; do 3287 test -f "$ac_file" || continue 3288 case $ac_file in 3289 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3290 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3291 break;; 3292 * ) break;; 3293 esac 3294done 3295else 3296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3297$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3298as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3299See \`config.log' for more details" "$LINENO" 5; } 3300fi 3301rm -f conftest conftest$ac_cv_exeext 3302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3303$as_echo "$ac_cv_exeext" >&6; } 3304 3305rm -f conftest.$ac_ext 3306EXEEXT=$ac_cv_exeext 3307ac_exeext=$EXEEXT 3308cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3309/* end confdefs.h. */ 3310#include <stdio.h> 3311int 3312main () 3313{ 3314FILE *f = fopen ("conftest.out", "w"); 3315 return ferror (f) || fclose (f) != 0; 3316 3317 ; 3318 return 0; 3319} 3320_ACEOF 3321ac_clean_files="$ac_clean_files conftest.out" 3322# Check that the compiler produces executables we can run. If not, either 3323# the compiler is broken, or we cross compile. 3324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3325$as_echo_n "checking whether we are cross compiling... " >&6; } 3326if test "$cross_compiling" != yes; then 3327 { { ac_try="$ac_link" 3328case "(($ac_try" in 3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3330 *) ac_try_echo=$ac_try;; 3331esac 3332eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3333$as_echo "$ac_try_echo"; } >&5 3334 (eval "$ac_link") 2>&5 3335 ac_status=$? 3336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3337 test $ac_status = 0; } 3338 if { ac_try='./conftest$ac_cv_exeext' 3339 { { case "(($ac_try" in 3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3341 *) ac_try_echo=$ac_try;; 3342esac 3343eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3344$as_echo "$ac_try_echo"; } >&5 3345 (eval "$ac_try") 2>&5 3346 ac_status=$? 3347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3348 test $ac_status = 0; }; }; then 3349 cross_compiling=no 3350 else 3351 if test "$cross_compiling" = maybe; then 3352 cross_compiling=yes 3353 else 3354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3355$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3356as_fn_error $? "cannot run C compiled programs. 3357If you meant to cross compile, use \`--host'. 3358See \`config.log' for more details" "$LINENO" 5; } 3359 fi 3360 fi 3361fi 3362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3363$as_echo "$cross_compiling" >&6; } 3364 3365rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3366ac_clean_files=$ac_clean_files_save 3367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3368$as_echo_n "checking for suffix of object files... " >&6; } 3369if ${ac_cv_objext+:} false; then : 3370 $as_echo_n "(cached) " >&6 3371else 3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3373/* end confdefs.h. */ 3374 3375int 3376main () 3377{ 3378 3379 ; 3380 return 0; 3381} 3382_ACEOF 3383rm -f conftest.o conftest.obj 3384if { { ac_try="$ac_compile" 3385case "(($ac_try" in 3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3387 *) ac_try_echo=$ac_try;; 3388esac 3389eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3390$as_echo "$ac_try_echo"; } >&5 3391 (eval "$ac_compile") 2>&5 3392 ac_status=$? 3393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3394 test $ac_status = 0; }; then : 3395 for ac_file in conftest.o conftest.obj conftest.*; do 3396 test -f "$ac_file" || continue; 3397 case $ac_file in 3398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3399 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3400 break;; 3401 esac 3402done 3403else 3404 $as_echo "$as_me: failed program was:" >&5 3405sed 's/^/| /' conftest.$ac_ext >&5 3406 3407{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3408$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3409as_fn_error $? "cannot compute suffix of object files: cannot compile 3410See \`config.log' for more details" "$LINENO" 5; } 3411fi 3412rm -f conftest.$ac_cv_objext conftest.$ac_ext 3413fi 3414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3415$as_echo "$ac_cv_objext" >&6; } 3416OBJEXT=$ac_cv_objext 3417ac_objext=$OBJEXT 3418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3419$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3420if ${ac_cv_c_compiler_gnu+:} false; then : 3421 $as_echo_n "(cached) " >&6 3422else 3423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3424/* end confdefs.h. */ 3425 3426int 3427main () 3428{ 3429#ifndef __GNUC__ 3430 choke me 3431#endif 3432 3433 ; 3434 return 0; 3435} 3436_ACEOF 3437if ac_fn_c_try_compile "$LINENO"; then : 3438 ac_compiler_gnu=yes 3439else 3440 ac_compiler_gnu=no 3441fi 3442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3443ac_cv_c_compiler_gnu=$ac_compiler_gnu 3444 3445fi 3446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3447$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3448if test $ac_compiler_gnu = yes; then 3449 GCC=yes 3450else 3451 GCC= 3452fi 3453ac_test_CFLAGS=${CFLAGS+set} 3454ac_save_CFLAGS=$CFLAGS 3455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3456$as_echo_n "checking whether $CC accepts -g... " >&6; } 3457if ${ac_cv_prog_cc_g+:} false; then : 3458 $as_echo_n "(cached) " >&6 3459else 3460 ac_save_c_werror_flag=$ac_c_werror_flag 3461 ac_c_werror_flag=yes 3462 ac_cv_prog_cc_g=no 3463 CFLAGS="-g" 3464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3465/* end confdefs.h. */ 3466 3467int 3468main () 3469{ 3470 3471 ; 3472 return 0; 3473} 3474_ACEOF 3475if ac_fn_c_try_compile "$LINENO"; then : 3476 ac_cv_prog_cc_g=yes 3477else 3478 CFLAGS="" 3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3480/* end confdefs.h. */ 3481 3482int 3483main () 3484{ 3485 3486 ; 3487 return 0; 3488} 3489_ACEOF 3490if ac_fn_c_try_compile "$LINENO"; then : 3491 3492else 3493 ac_c_werror_flag=$ac_save_c_werror_flag 3494 CFLAGS="-g" 3495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3496/* end confdefs.h. */ 3497 3498int 3499main () 3500{ 3501 3502 ; 3503 return 0; 3504} 3505_ACEOF 3506if ac_fn_c_try_compile "$LINENO"; then : 3507 ac_cv_prog_cc_g=yes 3508fi 3509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3510fi 3511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3512fi 3513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3514 ac_c_werror_flag=$ac_save_c_werror_flag 3515fi 3516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3517$as_echo "$ac_cv_prog_cc_g" >&6; } 3518if test "$ac_test_CFLAGS" = set; then 3519 CFLAGS=$ac_save_CFLAGS 3520elif test $ac_cv_prog_cc_g = yes; then 3521 if test "$GCC" = yes; then 3522 CFLAGS="-g -O2" 3523 else 3524 CFLAGS="-g" 3525 fi 3526else 3527 if test "$GCC" = yes; then 3528 CFLAGS="-O2" 3529 else 3530 CFLAGS= 3531 fi 3532fi 3533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3534$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3535if ${ac_cv_prog_cc_c89+:} false; then : 3536 $as_echo_n "(cached) " >&6 3537else 3538 ac_cv_prog_cc_c89=no 3539ac_save_CC=$CC 3540cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3541/* end confdefs.h. */ 3542#include <stdarg.h> 3543#include <stdio.h> 3544struct stat; 3545/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3546struct buf { int x; }; 3547FILE * (*rcsopen) (struct buf *, struct stat *, int); 3548static char *e (p, i) 3549 char **p; 3550 int i; 3551{ 3552 return p[i]; 3553} 3554static char *f (char * (*g) (char **, int), char **p, ...) 3555{ 3556 char *s; 3557 va_list v; 3558 va_start (v,p); 3559 s = g (p, va_arg (v,int)); 3560 va_end (v); 3561 return s; 3562} 3563 3564/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3565 function prototypes and stuff, but not '\xHH' hex character constants. 3566 These don't provoke an error unfortunately, instead are silently treated 3567 as 'x'. The following induces an error, until -std is added to get 3568 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3569 array size at least. It's necessary to write '\x00'==0 to get something 3570 that's true only with -std. */ 3571int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3572 3573/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3574 inside strings and character constants. */ 3575#define FOO(x) 'x' 3576int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3577 3578int test (int i, double x); 3579struct s1 {int (*f) (int a);}; 3580struct s2 {int (*f) (double a);}; 3581int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3582int argc; 3583char **argv; 3584int 3585main () 3586{ 3587return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3588 ; 3589 return 0; 3590} 3591_ACEOF 3592for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3593 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3594do 3595 CC="$ac_save_CC $ac_arg" 3596 if ac_fn_c_try_compile "$LINENO"; then : 3597 ac_cv_prog_cc_c89=$ac_arg 3598fi 3599rm -f core conftest.err conftest.$ac_objext 3600 test "x$ac_cv_prog_cc_c89" != "xno" && break 3601done 3602rm -f conftest.$ac_ext 3603CC=$ac_save_CC 3604 3605fi 3606# AC_CACHE_VAL 3607case "x$ac_cv_prog_cc_c89" in 3608 x) 3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3610$as_echo "none needed" >&6; } ;; 3611 xno) 3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3613$as_echo "unsupported" >&6; } ;; 3614 *) 3615 CC="$CC $ac_cv_prog_cc_c89" 3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3617$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3618esac 3619if test "x$ac_cv_prog_cc_c89" != xno; then : 3620 3621fi 3622 3623ac_ext=c 3624ac_cpp='$CPP $CPPFLAGS' 3625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3627ac_compiler_gnu=$ac_cv_c_compiler_gnu 3628 3629ac_ext=c 3630ac_cpp='$CPP $CPPFLAGS' 3631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3633ac_compiler_gnu=$ac_cv_c_compiler_gnu 3634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3635$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3636if ${am_cv_prog_cc_c_o+:} false; then : 3637 $as_echo_n "(cached) " >&6 3638else 3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3640/* end confdefs.h. */ 3641 3642int 3643main () 3644{ 3645 3646 ; 3647 return 0; 3648} 3649_ACEOF 3650 # Make sure it works both with $CC and with simple cc. 3651 # Following AC_PROG_CC_C_O, we do the test twice because some 3652 # compilers refuse to overwrite an existing .o file with -o, 3653 # though they will create one. 3654 am_cv_prog_cc_c_o=yes 3655 for am_i in 1 2; do 3656 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3657 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3658 ac_status=$? 3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3660 (exit $ac_status); } \ 3661 && test -f conftest2.$ac_objext; then 3662 : OK 3663 else 3664 am_cv_prog_cc_c_o=no 3665 break 3666 fi 3667 done 3668 rm -f core conftest* 3669 unset am_i 3670fi 3671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3672$as_echo "$am_cv_prog_cc_c_o" >&6; } 3673if test "$am_cv_prog_cc_c_o" != yes; then 3674 # Losing compiler, so override with the script. 3675 # FIXME: It is wrong to rewrite CC. 3676 # But if we don't then we get into trouble of one sort or another. 3677 # A longer-term fix would be to have automake use am__CC in this case, 3678 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3679 CC="$am_aux_dir/compile $CC" 3680fi 3681ac_ext=c 3682ac_cpp='$CPP $CPPFLAGS' 3683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3685ac_compiler_gnu=$ac_cv_c_compiler_gnu 3686 3687DEPDIR="${am__leading_dot}deps" 3688 3689ac_config_commands="$ac_config_commands depfiles" 3690 3691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3692$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3693cat > confinc.mk << 'END' 3694am__doit: 3695 @echo this is the am__doit target >confinc.out 3696.PHONY: am__doit 3697END 3698am__include="#" 3699am__quote= 3700# BSD make does it like this. 3701echo '.include "confinc.mk" # ignored' > confmf.BSD 3702# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3703echo 'include confinc.mk # ignored' > confmf.GNU 3704_am_result=no 3705for s in GNU BSD; do 3706 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3707 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3708 ac_status=$? 3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3710 (exit $ac_status); } 3711 case $?:`cat confinc.out 2>/dev/null` in #( 3712 '0:this is the am__doit target') : 3713 case $s in #( 3714 BSD) : 3715 am__include='.include' am__quote='"' ;; #( 3716 *) : 3717 am__include='include' am__quote='' ;; 3718esac ;; #( 3719 *) : 3720 ;; 3721esac 3722 if test "$am__include" != "#"; then 3723 _am_result="yes ($s style)" 3724 break 3725 fi 3726done 3727rm -f confinc.* confmf.* 3728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3729$as_echo "${_am_result}" >&6; } 3730 3731# Check whether --enable-dependency-tracking was given. 3732if test "${enable_dependency_tracking+set}" = set; then : 3733 enableval=$enable_dependency_tracking; 3734fi 3735 3736if test "x$enable_dependency_tracking" != xno; then 3737 am_depcomp="$ac_aux_dir/depcomp" 3738 AMDEPBACKSLASH='\' 3739 am__nodep='_no' 3740fi 3741 if test "x$enable_dependency_tracking" != xno; then 3742 AMDEP_TRUE= 3743 AMDEP_FALSE='#' 3744else 3745 AMDEP_TRUE='#' 3746 AMDEP_FALSE= 3747fi 3748 3749 3750 3751depcc="$CC" am_compiler_list= 3752 3753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3754$as_echo_n "checking dependency style of $depcc... " >&6; } 3755if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3756 $as_echo_n "(cached) " >&6 3757else 3758 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3759 # We make a subdir and do the tests there. Otherwise we can end up 3760 # making bogus files that we don't know about and never remove. For 3761 # instance it was reported that on HP-UX the gcc test will end up 3762 # making a dummy file named 'D' -- because '-MD' means "put the output 3763 # in D". 3764 rm -rf conftest.dir 3765 mkdir conftest.dir 3766 # Copy depcomp to subdir because otherwise we won't find it if we're 3767 # using a relative directory. 3768 cp "$am_depcomp" conftest.dir 3769 cd conftest.dir 3770 # We will build objects and dependencies in a subdirectory because 3771 # it helps to detect inapplicable dependency modes. For instance 3772 # both Tru64's cc and ICC support -MD to output dependencies as a 3773 # side effect of compilation, but ICC will put the dependencies in 3774 # the current directory while Tru64 will put them in the object 3775 # directory. 3776 mkdir sub 3777 3778 am_cv_CC_dependencies_compiler_type=none 3779 if test "$am_compiler_list" = ""; then 3780 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3781 fi 3782 am__universal=false 3783 case " $depcc " in #( 3784 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3785 esac 3786 3787 for depmode in $am_compiler_list; do 3788 # Setup a source with many dependencies, because some compilers 3789 # like to wrap large dependency lists on column 80 (with \), and 3790 # we should not choose a depcomp mode which is confused by this. 3791 # 3792 # We need to recreate these files for each test, as the compiler may 3793 # overwrite some of them when testing with obscure command lines. 3794 # This happens at least with the AIX C compiler. 3795 : > sub/conftest.c 3796 for i in 1 2 3 4 5 6; do 3797 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3798 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3799 # Solaris 10 /bin/sh. 3800 echo '/* dummy */' > sub/conftst$i.h 3801 done 3802 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3803 3804 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3805 # mode. It turns out that the SunPro C++ compiler does not properly 3806 # handle '-M -o', and we need to detect this. Also, some Intel 3807 # versions had trouble with output in subdirs. 3808 am__obj=sub/conftest.${OBJEXT-o} 3809 am__minus_obj="-o $am__obj" 3810 case $depmode in 3811 gcc) 3812 # This depmode causes a compiler race in universal mode. 3813 test "$am__universal" = false || continue 3814 ;; 3815 nosideeffect) 3816 # After this tag, mechanisms are not by side-effect, so they'll 3817 # only be used when explicitly requested. 3818 if test "x$enable_dependency_tracking" = xyes; then 3819 continue 3820 else 3821 break 3822 fi 3823 ;; 3824 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3825 # This compiler won't grok '-c -o', but also, the minuso test has 3826 # not run yet. These depmodes are late enough in the game, and 3827 # so weak that their functioning should not be impacted. 3828 am__obj=conftest.${OBJEXT-o} 3829 am__minus_obj= 3830 ;; 3831 none) break ;; 3832 esac 3833 if depmode=$depmode \ 3834 source=sub/conftest.c object=$am__obj \ 3835 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3836 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3837 >/dev/null 2>conftest.err && 3838 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3839 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3840 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3841 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3842 # icc doesn't choke on unknown options, it will just issue warnings 3843 # or remarks (even with -Werror). So we grep stderr for any message 3844 # that says an option was ignored or not supported. 3845 # When given -MP, icc 7.0 and 7.1 complain thusly: 3846 # icc: Command line warning: ignoring option '-M'; no argument required 3847 # The diagnosis changed in icc 8.0: 3848 # icc: Command line remark: option '-MP' not supported 3849 if (grep 'ignoring option' conftest.err || 3850 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3851 am_cv_CC_dependencies_compiler_type=$depmode 3852 break 3853 fi 3854 fi 3855 done 3856 3857 cd .. 3858 rm -rf conftest.dir 3859else 3860 am_cv_CC_dependencies_compiler_type=none 3861fi 3862 3863fi 3864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3865$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3866CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3867 3868 if 3869 test "x$enable_dependency_tracking" != xno \ 3870 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3871 am__fastdepCC_TRUE= 3872 am__fastdepCC_FALSE='#' 3873else 3874 am__fastdepCC_TRUE='#' 3875 am__fastdepCC_FALSE= 3876fi 3877 3878 3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3880$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3881if ${ac_cv_prog_cc_c99+:} false; then : 3882 $as_echo_n "(cached) " >&6 3883else 3884 ac_cv_prog_cc_c99=no 3885ac_save_CC=$CC 3886cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3887/* end confdefs.h. */ 3888#include <stdarg.h> 3889#include <stdbool.h> 3890#include <stdlib.h> 3891#include <wchar.h> 3892#include <stdio.h> 3893 3894// Check varargs macros. These examples are taken from C99 6.10.3.5. 3895#define debug(...) fprintf (stderr, __VA_ARGS__) 3896#define showlist(...) puts (#__VA_ARGS__) 3897#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3898static void 3899test_varargs_macros (void) 3900{ 3901 int x = 1234; 3902 int y = 5678; 3903 debug ("Flag"); 3904 debug ("X = %d\n", x); 3905 showlist (The first, second, and third items.); 3906 report (x>y, "x is %d but y is %d", x, y); 3907} 3908 3909// Check long long types. 3910#define BIG64 18446744073709551615ull 3911#define BIG32 4294967295ul 3912#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3913#if !BIG_OK 3914 your preprocessor is broken; 3915#endif 3916#if BIG_OK 3917#else 3918 your preprocessor is broken; 3919#endif 3920static long long int bignum = -9223372036854775807LL; 3921static unsigned long long int ubignum = BIG64; 3922 3923struct incomplete_array 3924{ 3925 int datasize; 3926 double data[]; 3927}; 3928 3929struct named_init { 3930 int number; 3931 const wchar_t *name; 3932 double average; 3933}; 3934 3935typedef const char *ccp; 3936 3937static inline int 3938test_restrict (ccp restrict text) 3939{ 3940 // See if C++-style comments work. 3941 // Iterate through items via the restricted pointer. 3942 // Also check for declarations in for loops. 3943 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3944 continue; 3945 return 0; 3946} 3947 3948// Check varargs and va_copy. 3949static void 3950test_varargs (const char *format, ...) 3951{ 3952 va_list args; 3953 va_start (args, format); 3954 va_list args_copy; 3955 va_copy (args_copy, args); 3956 3957 const char *str; 3958 int number; 3959 float fnumber; 3960 3961 while (*format) 3962 { 3963 switch (*format++) 3964 { 3965 case 's': // string 3966 str = va_arg (args_copy, const char *); 3967 break; 3968 case 'd': // int 3969 number = va_arg (args_copy, int); 3970 break; 3971 case 'f': // float 3972 fnumber = va_arg (args_copy, double); 3973 break; 3974 default: 3975 break; 3976 } 3977 } 3978 va_end (args_copy); 3979 va_end (args); 3980} 3981 3982int 3983main () 3984{ 3985 3986 // Check bool. 3987 _Bool success = false; 3988 3989 // Check restrict. 3990 if (test_restrict ("String literal") == 0) 3991 success = true; 3992 char *restrict newvar = "Another string"; 3993 3994 // Check varargs. 3995 test_varargs ("s, d' f .", "string", 65, 34.234); 3996 test_varargs_macros (); 3997 3998 // Check flexible array members. 3999 struct incomplete_array *ia = 4000 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4001 ia->datasize = 10; 4002 for (int i = 0; i < ia->datasize; ++i) 4003 ia->data[i] = i * 1.234; 4004 4005 // Check named initializers. 4006 struct named_init ni = { 4007 .number = 34, 4008 .name = L"Test wide string", 4009 .average = 543.34343, 4010 }; 4011 4012 ni.number = 58; 4013 4014 int dynamic_array[ni.number]; 4015 dynamic_array[ni.number - 1] = 543; 4016 4017 // work around unused variable warnings 4018 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4019 || dynamic_array[ni.number - 1] != 543); 4020 4021 ; 4022 return 0; 4023} 4024_ACEOF 4025for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4026do 4027 CC="$ac_save_CC $ac_arg" 4028 if ac_fn_c_try_compile "$LINENO"; then : 4029 ac_cv_prog_cc_c99=$ac_arg 4030fi 4031rm -f core conftest.err conftest.$ac_objext 4032 test "x$ac_cv_prog_cc_c99" != "xno" && break 4033done 4034rm -f conftest.$ac_ext 4035CC=$ac_save_CC 4036 4037fi 4038# AC_CACHE_VAL 4039case "x$ac_cv_prog_cc_c99" in 4040 x) 4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4042$as_echo "none needed" >&6; } ;; 4043 xno) 4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4045$as_echo "unsupported" >&6; } ;; 4046 *) 4047 CC="$CC $ac_cv_prog_cc_c99" 4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4049$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4050esac 4051if test "x$ac_cv_prog_cc_c99" != xno; then : 4052 4053fi 4054 4055 4056case `pwd` in 4057 *\ * | *\ *) 4058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4059$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4060esac 4061 4062 4063 4064macro_version='2.4.6' 4065macro_revision='2.4.6' 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079ltmain=$ac_aux_dir/ltmain.sh 4080 4081# Make sure we can run config.sub. 4082$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4083 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4084 4085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4086$as_echo_n "checking build system type... " >&6; } 4087if ${ac_cv_build+:} false; then : 4088 $as_echo_n "(cached) " >&6 4089else 4090 ac_build_alias=$build_alias 4091test "x$ac_build_alias" = x && 4092 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4093test "x$ac_build_alias" = x && 4094 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4095ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4096 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4097 4098fi 4099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4100$as_echo "$ac_cv_build" >&6; } 4101case $ac_cv_build in 4102*-*-*) ;; 4103*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4104esac 4105build=$ac_cv_build 4106ac_save_IFS=$IFS; IFS='-' 4107set x $ac_cv_build 4108shift 4109build_cpu=$1 4110build_vendor=$2 4111shift; shift 4112# Remember, the first character of IFS is used to create $*, 4113# except with old shells: 4114build_os=$* 4115IFS=$ac_save_IFS 4116case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4117 4118 4119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4120$as_echo_n "checking host system type... " >&6; } 4121if ${ac_cv_host+:} false; then : 4122 $as_echo_n "(cached) " >&6 4123else 4124 if test "x$host_alias" = x; then 4125 ac_cv_host=$ac_cv_build 4126else 4127 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4128 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4129fi 4130 4131fi 4132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4133$as_echo "$ac_cv_host" >&6; } 4134case $ac_cv_host in 4135*-*-*) ;; 4136*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4137esac 4138host=$ac_cv_host 4139ac_save_IFS=$IFS; IFS='-' 4140set x $ac_cv_host 4141shift 4142host_cpu=$1 4143host_vendor=$2 4144shift; shift 4145# Remember, the first character of IFS is used to create $*, 4146# except with old shells: 4147host_os=$* 4148IFS=$ac_save_IFS 4149case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4150 4151 4152# Backslashify metacharacters that are still active within 4153# double-quoted strings. 4154sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4155 4156# Same as above, but do not quote variable references. 4157double_quote_subst='s/\(["`\\]\)/\\\1/g' 4158 4159# Sed substitution to delay expansion of an escaped shell variable in a 4160# double_quote_subst'ed string. 4161delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4162 4163# Sed substitution to delay expansion of an escaped single quote. 4164delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4165 4166# Sed substitution to avoid accidental globbing in evaled expressions 4167no_glob_subst='s/\*/\\\*/g' 4168 4169ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4170ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4171ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4172 4173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4174$as_echo_n "checking how to print strings... " >&6; } 4175# Test print first, because it will be a builtin if present. 4176if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4177 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4178 ECHO='print -r --' 4179elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4180 ECHO='printf %s\n' 4181else 4182 # Use this function as a fallback that always works. 4183 func_fallback_echo () 4184 { 4185 eval 'cat <<_LTECHO_EOF 4186$1 4187_LTECHO_EOF' 4188 } 4189 ECHO='func_fallback_echo' 4190fi 4191 4192# func_echo_all arg... 4193# Invoke $ECHO with all args, space-separated. 4194func_echo_all () 4195{ 4196 $ECHO "" 4197} 4198 4199case $ECHO in 4200 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4201$as_echo "printf" >&6; } ;; 4202 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4203$as_echo "print -r" >&6; } ;; 4204 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4205$as_echo "cat" >&6; } ;; 4206esac 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4222$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4223if ${ac_cv_path_SED+:} false; then : 4224 $as_echo_n "(cached) " >&6 4225else 4226 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4227 for ac_i in 1 2 3 4 5 6 7; do 4228 ac_script="$ac_script$as_nl$ac_script" 4229 done 4230 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4231 { ac_script=; unset ac_script;} 4232 if test -z "$SED"; then 4233 ac_path_SED_found=false 4234 # Loop through the user's path and test for each of PROGNAME-LIST 4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4236for as_dir in $PATH 4237do 4238 IFS=$as_save_IFS 4239 test -z "$as_dir" && as_dir=. 4240 for ac_prog in sed gsed; do 4241 for ac_exec_ext in '' $ac_executable_extensions; do 4242 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4243 as_fn_executable_p "$ac_path_SED" || continue 4244# Check for GNU ac_path_SED and select it if it is found. 4245 # Check for GNU $ac_path_SED 4246case `"$ac_path_SED" --version 2>&1` in 4247*GNU*) 4248 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4249*) 4250 ac_count=0 4251 $as_echo_n 0123456789 >"conftest.in" 4252 while : 4253 do 4254 cat "conftest.in" "conftest.in" >"conftest.tmp" 4255 mv "conftest.tmp" "conftest.in" 4256 cp "conftest.in" "conftest.nl" 4257 $as_echo '' >> "conftest.nl" 4258 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4259 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4260 as_fn_arith $ac_count + 1 && ac_count=$as_val 4261 if test $ac_count -gt ${ac_path_SED_max-0}; then 4262 # Best one so far, save it but keep looking for a better one 4263 ac_cv_path_SED="$ac_path_SED" 4264 ac_path_SED_max=$ac_count 4265 fi 4266 # 10*(2^10) chars as input seems more than enough 4267 test $ac_count -gt 10 && break 4268 done 4269 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4270esac 4271 4272 $ac_path_SED_found && break 3 4273 done 4274 done 4275 done 4276IFS=$as_save_IFS 4277 if test -z "$ac_cv_path_SED"; then 4278 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4279 fi 4280else 4281 ac_cv_path_SED=$SED 4282fi 4283 4284fi 4285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4286$as_echo "$ac_cv_path_SED" >&6; } 4287 SED="$ac_cv_path_SED" 4288 rm -f conftest.sed 4289 4290test -z "$SED" && SED=sed 4291Xsed="$SED -e 1s/^X//" 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4304$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4305if ${ac_cv_path_GREP+:} false; then : 4306 $as_echo_n "(cached) " >&6 4307else 4308 if test -z "$GREP"; then 4309 ac_path_GREP_found=false 4310 # Loop through the user's path and test for each of PROGNAME-LIST 4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4312for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4313do 4314 IFS=$as_save_IFS 4315 test -z "$as_dir" && as_dir=. 4316 for ac_prog in grep ggrep; do 4317 for ac_exec_ext in '' $ac_executable_extensions; do 4318 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4319 as_fn_executable_p "$ac_path_GREP" || continue 4320# Check for GNU ac_path_GREP and select it if it is found. 4321 # Check for GNU $ac_path_GREP 4322case `"$ac_path_GREP" --version 2>&1` in 4323*GNU*) 4324 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4325*) 4326 ac_count=0 4327 $as_echo_n 0123456789 >"conftest.in" 4328 while : 4329 do 4330 cat "conftest.in" "conftest.in" >"conftest.tmp" 4331 mv "conftest.tmp" "conftest.in" 4332 cp "conftest.in" "conftest.nl" 4333 $as_echo 'GREP' >> "conftest.nl" 4334 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4335 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4336 as_fn_arith $ac_count + 1 && ac_count=$as_val 4337 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4338 # Best one so far, save it but keep looking for a better one 4339 ac_cv_path_GREP="$ac_path_GREP" 4340 ac_path_GREP_max=$ac_count 4341 fi 4342 # 10*(2^10) chars as input seems more than enough 4343 test $ac_count -gt 10 && break 4344 done 4345 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4346esac 4347 4348 $ac_path_GREP_found && break 3 4349 done 4350 done 4351 done 4352IFS=$as_save_IFS 4353 if test -z "$ac_cv_path_GREP"; then 4354 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4355 fi 4356else 4357 ac_cv_path_GREP=$GREP 4358fi 4359 4360fi 4361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4362$as_echo "$ac_cv_path_GREP" >&6; } 4363 GREP="$ac_cv_path_GREP" 4364 4365 4366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4367$as_echo_n "checking for egrep... " >&6; } 4368if ${ac_cv_path_EGREP+:} false; then : 4369 $as_echo_n "(cached) " >&6 4370else 4371 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4372 then ac_cv_path_EGREP="$GREP -E" 4373 else 4374 if test -z "$EGREP"; then 4375 ac_path_EGREP_found=false 4376 # Loop through the user's path and test for each of PROGNAME-LIST 4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4378for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4379do 4380 IFS=$as_save_IFS 4381 test -z "$as_dir" && as_dir=. 4382 for ac_prog in egrep; do 4383 for ac_exec_ext in '' $ac_executable_extensions; do 4384 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4385 as_fn_executable_p "$ac_path_EGREP" || continue 4386# Check for GNU ac_path_EGREP and select it if it is found. 4387 # Check for GNU $ac_path_EGREP 4388case `"$ac_path_EGREP" --version 2>&1` in 4389*GNU*) 4390 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4391*) 4392 ac_count=0 4393 $as_echo_n 0123456789 >"conftest.in" 4394 while : 4395 do 4396 cat "conftest.in" "conftest.in" >"conftest.tmp" 4397 mv "conftest.tmp" "conftest.in" 4398 cp "conftest.in" "conftest.nl" 4399 $as_echo 'EGREP' >> "conftest.nl" 4400 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4401 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4402 as_fn_arith $ac_count + 1 && ac_count=$as_val 4403 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4404 # Best one so far, save it but keep looking for a better one 4405 ac_cv_path_EGREP="$ac_path_EGREP" 4406 ac_path_EGREP_max=$ac_count 4407 fi 4408 # 10*(2^10) chars as input seems more than enough 4409 test $ac_count -gt 10 && break 4410 done 4411 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4412esac 4413 4414 $ac_path_EGREP_found && break 3 4415 done 4416 done 4417 done 4418IFS=$as_save_IFS 4419 if test -z "$ac_cv_path_EGREP"; then 4420 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4421 fi 4422else 4423 ac_cv_path_EGREP=$EGREP 4424fi 4425 4426 fi 4427fi 4428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4429$as_echo "$ac_cv_path_EGREP" >&6; } 4430 EGREP="$ac_cv_path_EGREP" 4431 4432 4433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4434$as_echo_n "checking for fgrep... " >&6; } 4435if ${ac_cv_path_FGREP+:} false; then : 4436 $as_echo_n "(cached) " >&6 4437else 4438 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4439 then ac_cv_path_FGREP="$GREP -F" 4440 else 4441 if test -z "$FGREP"; then 4442 ac_path_FGREP_found=false 4443 # Loop through the user's path and test for each of PROGNAME-LIST 4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4445for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4446do 4447 IFS=$as_save_IFS 4448 test -z "$as_dir" && as_dir=. 4449 for ac_prog in fgrep; do 4450 for ac_exec_ext in '' $ac_executable_extensions; do 4451 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4452 as_fn_executable_p "$ac_path_FGREP" || continue 4453# Check for GNU ac_path_FGREP and select it if it is found. 4454 # Check for GNU $ac_path_FGREP 4455case `"$ac_path_FGREP" --version 2>&1` in 4456*GNU*) 4457 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4458*) 4459 ac_count=0 4460 $as_echo_n 0123456789 >"conftest.in" 4461 while : 4462 do 4463 cat "conftest.in" "conftest.in" >"conftest.tmp" 4464 mv "conftest.tmp" "conftest.in" 4465 cp "conftest.in" "conftest.nl" 4466 $as_echo 'FGREP' >> "conftest.nl" 4467 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4468 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4469 as_fn_arith $ac_count + 1 && ac_count=$as_val 4470 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4471 # Best one so far, save it but keep looking for a better one 4472 ac_cv_path_FGREP="$ac_path_FGREP" 4473 ac_path_FGREP_max=$ac_count 4474 fi 4475 # 10*(2^10) chars as input seems more than enough 4476 test $ac_count -gt 10 && break 4477 done 4478 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4479esac 4480 4481 $ac_path_FGREP_found && break 3 4482 done 4483 done 4484 done 4485IFS=$as_save_IFS 4486 if test -z "$ac_cv_path_FGREP"; then 4487 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4488 fi 4489else 4490 ac_cv_path_FGREP=$FGREP 4491fi 4492 4493 fi 4494fi 4495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4496$as_echo "$ac_cv_path_FGREP" >&6; } 4497 FGREP="$ac_cv_path_FGREP" 4498 4499 4500test -z "$GREP" && GREP=grep 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520# Check whether --with-gnu-ld was given. 4521if test "${with_gnu_ld+set}" = set; then : 4522 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4523else 4524 with_gnu_ld=no 4525fi 4526 4527ac_prog=ld 4528if test yes = "$GCC"; then 4529 # Check if gcc -print-prog-name=ld gives a path. 4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4531$as_echo_n "checking for ld used by $CC... " >&6; } 4532 case $host in 4533 *-*-mingw*) 4534 # gcc leaves a trailing carriage return, which upsets mingw 4535 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4536 *) 4537 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4538 esac 4539 case $ac_prog in 4540 # Accept absolute paths. 4541 [\\/]* | ?:[\\/]*) 4542 re_direlt='/[^/][^/]*/\.\./' 4543 # Canonicalize the pathname of ld 4544 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4545 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4546 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4547 done 4548 test -z "$LD" && LD=$ac_prog 4549 ;; 4550 "") 4551 # If it fails, then pretend we aren't using GCC. 4552 ac_prog=ld 4553 ;; 4554 *) 4555 # If it is relative, then search for the first ld in PATH. 4556 with_gnu_ld=unknown 4557 ;; 4558 esac 4559elif test yes = "$with_gnu_ld"; then 4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4561$as_echo_n "checking for GNU ld... " >&6; } 4562else 4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4564$as_echo_n "checking for non-GNU ld... " >&6; } 4565fi 4566if ${lt_cv_path_LD+:} false; then : 4567 $as_echo_n "(cached) " >&6 4568else 4569 if test -z "$LD"; then 4570 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4571 for ac_dir in $PATH; do 4572 IFS=$lt_save_ifs 4573 test -z "$ac_dir" && ac_dir=. 4574 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4575 lt_cv_path_LD=$ac_dir/$ac_prog 4576 # Check to see if the program is GNU ld. I'd rather use --version, 4577 # but apparently some variants of GNU ld only accept -v. 4578 # Break only if it was the GNU/non-GNU ld that we prefer. 4579 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4580 *GNU* | *'with BFD'*) 4581 test no != "$with_gnu_ld" && break 4582 ;; 4583 *) 4584 test yes != "$with_gnu_ld" && break 4585 ;; 4586 esac 4587 fi 4588 done 4589 IFS=$lt_save_ifs 4590else 4591 lt_cv_path_LD=$LD # Let the user override the test with a path. 4592fi 4593fi 4594 4595LD=$lt_cv_path_LD 4596if test -n "$LD"; then 4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4598$as_echo "$LD" >&6; } 4599else 4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4601$as_echo "no" >&6; } 4602fi 4603test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4605$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4606if ${lt_cv_prog_gnu_ld+:} false; then : 4607 $as_echo_n "(cached) " >&6 4608else 4609 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4610case `$LD -v 2>&1 </dev/null` in 4611*GNU* | *'with BFD'*) 4612 lt_cv_prog_gnu_ld=yes 4613 ;; 4614*) 4615 lt_cv_prog_gnu_ld=no 4616 ;; 4617esac 4618fi 4619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4620$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4621with_gnu_ld=$lt_cv_prog_gnu_ld 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4632$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4633if ${lt_cv_path_NM+:} false; then : 4634 $as_echo_n "(cached) " >&6 4635else 4636 if test -n "$NM"; then 4637 # Let the user override the test. 4638 lt_cv_path_NM=$NM 4639else 4640 lt_nm_to_check=${ac_tool_prefix}nm 4641 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4642 lt_nm_to_check="$lt_nm_to_check nm" 4643 fi 4644 for lt_tmp_nm in $lt_nm_to_check; do 4645 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4646 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4647 IFS=$lt_save_ifs 4648 test -z "$ac_dir" && ac_dir=. 4649 tmp_nm=$ac_dir/$lt_tmp_nm 4650 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4651 # Check to see if the nm accepts a BSD-compat flag. 4652 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4653 # nm: unknown option "B" ignored 4654 # Tru64's nm complains that /dev/null is an invalid object file 4655 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4656 case $build_os in 4657 mingw*) lt_bad_file=conftest.nm/nofile ;; 4658 *) lt_bad_file=/dev/null ;; 4659 esac 4660 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4661 *$lt_bad_file* | *'Invalid file or object type'*) 4662 lt_cv_path_NM="$tmp_nm -B" 4663 break 2 4664 ;; 4665 *) 4666 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4667 */dev/null*) 4668 lt_cv_path_NM="$tmp_nm -p" 4669 break 2 4670 ;; 4671 *) 4672 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4673 continue # so that we can try to find one that supports BSD flags 4674 ;; 4675 esac 4676 ;; 4677 esac 4678 fi 4679 done 4680 IFS=$lt_save_ifs 4681 done 4682 : ${lt_cv_path_NM=no} 4683fi 4684fi 4685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4686$as_echo "$lt_cv_path_NM" >&6; } 4687if test no != "$lt_cv_path_NM"; then 4688 NM=$lt_cv_path_NM 4689else 4690 # Didn't find any BSD compatible name lister, look for dumpbin. 4691 if test -n "$DUMPBIN"; then : 4692 # Let the user override the test. 4693 else 4694 if test -n "$ac_tool_prefix"; then 4695 for ac_prog in dumpbin "link -dump" 4696 do 4697 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4698set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4700$as_echo_n "checking for $ac_word... " >&6; } 4701if ${ac_cv_prog_DUMPBIN+:} false; then : 4702 $as_echo_n "(cached) " >&6 4703else 4704 if test -n "$DUMPBIN"; then 4705 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4706else 4707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4708for as_dir in $PATH 4709do 4710 IFS=$as_save_IFS 4711 test -z "$as_dir" && as_dir=. 4712 for ac_exec_ext in '' $ac_executable_extensions; do 4713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4714 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4716 break 2 4717 fi 4718done 4719 done 4720IFS=$as_save_IFS 4721 4722fi 4723fi 4724DUMPBIN=$ac_cv_prog_DUMPBIN 4725if test -n "$DUMPBIN"; then 4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4727$as_echo "$DUMPBIN" >&6; } 4728else 4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4730$as_echo "no" >&6; } 4731fi 4732 4733 4734 test -n "$DUMPBIN" && break 4735 done 4736fi 4737if test -z "$DUMPBIN"; then 4738 ac_ct_DUMPBIN=$DUMPBIN 4739 for ac_prog in dumpbin "link -dump" 4740do 4741 # Extract the first word of "$ac_prog", so it can be a program name with args. 4742set dummy $ac_prog; ac_word=$2 4743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4744$as_echo_n "checking for $ac_word... " >&6; } 4745if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4746 $as_echo_n "(cached) " >&6 4747else 4748 if test -n "$ac_ct_DUMPBIN"; then 4749 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4750else 4751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4752for as_dir in $PATH 4753do 4754 IFS=$as_save_IFS 4755 test -z "$as_dir" && as_dir=. 4756 for ac_exec_ext in '' $ac_executable_extensions; do 4757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4758 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4760 break 2 4761 fi 4762done 4763 done 4764IFS=$as_save_IFS 4765 4766fi 4767fi 4768ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4769if test -n "$ac_ct_DUMPBIN"; then 4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4771$as_echo "$ac_ct_DUMPBIN" >&6; } 4772else 4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4774$as_echo "no" >&6; } 4775fi 4776 4777 4778 test -n "$ac_ct_DUMPBIN" && break 4779done 4780 4781 if test "x$ac_ct_DUMPBIN" = x; then 4782 DUMPBIN=":" 4783 else 4784 case $cross_compiling:$ac_tool_warned in 4785yes:) 4786{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4787$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4788ac_tool_warned=yes ;; 4789esac 4790 DUMPBIN=$ac_ct_DUMPBIN 4791 fi 4792fi 4793 4794 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4795 *COFF*) 4796 DUMPBIN="$DUMPBIN -symbols -headers" 4797 ;; 4798 *) 4799 DUMPBIN=: 4800 ;; 4801 esac 4802 fi 4803 4804 if test : != "$DUMPBIN"; then 4805 NM=$DUMPBIN 4806 fi 4807fi 4808test -z "$NM" && NM=nm 4809 4810 4811 4812 4813 4814 4815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4816$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4817if ${lt_cv_nm_interface+:} false; then : 4818 $as_echo_n "(cached) " >&6 4819else 4820 lt_cv_nm_interface="BSD nm" 4821 echo "int some_variable = 0;" > conftest.$ac_ext 4822 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4823 (eval "$ac_compile" 2>conftest.err) 4824 cat conftest.err >&5 4825 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4826 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4827 cat conftest.err >&5 4828 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4829 cat conftest.out >&5 4830 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4831 lt_cv_nm_interface="MS dumpbin" 4832 fi 4833 rm -f conftest* 4834fi 4835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4836$as_echo "$lt_cv_nm_interface" >&6; } 4837 4838# find the maximum length of command line arguments 4839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4840$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4841if ${lt_cv_sys_max_cmd_len+:} false; then : 4842 $as_echo_n "(cached) " >&6 4843else 4844 i=0 4845 teststring=ABCD 4846 4847 case $build_os in 4848 msdosdjgpp*) 4849 # On DJGPP, this test can blow up pretty badly due to problems in libc 4850 # (any single argument exceeding 2000 bytes causes a buffer overrun 4851 # during glob expansion). Even if it were fixed, the result of this 4852 # check would be larger than it should be. 4853 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4854 ;; 4855 4856 gnu*) 4857 # Under GNU Hurd, this test is not required because there is 4858 # no limit to the length of command line arguments. 4859 # Libtool will interpret -1 as no limit whatsoever 4860 lt_cv_sys_max_cmd_len=-1; 4861 ;; 4862 4863 cygwin* | mingw* | cegcc*) 4864 # On Win9x/ME, this test blows up -- it succeeds, but takes 4865 # about 5 minutes as the teststring grows exponentially. 4866 # Worse, since 9x/ME are not pre-emptively multitasking, 4867 # you end up with a "frozen" computer, even though with patience 4868 # the test eventually succeeds (with a max line length of 256k). 4869 # Instead, let's just punt: use the minimum linelength reported by 4870 # all of the supported platforms: 8192 (on NT/2K/XP). 4871 lt_cv_sys_max_cmd_len=8192; 4872 ;; 4873 4874 mint*) 4875 # On MiNT this can take a long time and run out of memory. 4876 lt_cv_sys_max_cmd_len=8192; 4877 ;; 4878 4879 amigaos*) 4880 # On AmigaOS with pdksh, this test takes hours, literally. 4881 # So we just punt and use a minimum line length of 8192. 4882 lt_cv_sys_max_cmd_len=8192; 4883 ;; 4884 4885 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4886 # This has been around since 386BSD, at least. Likely further. 4887 if test -x /sbin/sysctl; then 4888 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4889 elif test -x /usr/sbin/sysctl; then 4890 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4891 else 4892 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4893 fi 4894 # And add a safety zone 4895 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4896 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4897 ;; 4898 4899 interix*) 4900 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4901 lt_cv_sys_max_cmd_len=196608 4902 ;; 4903 4904 os2*) 4905 # The test takes a long time on OS/2. 4906 lt_cv_sys_max_cmd_len=8192 4907 ;; 4908 4909 osf*) 4910 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4911 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4912 # nice to cause kernel panics so lets avoid the loop below. 4913 # First set a reasonable default. 4914 lt_cv_sys_max_cmd_len=16384 4915 # 4916 if test -x /sbin/sysconfig; then 4917 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4918 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4919 esac 4920 fi 4921 ;; 4922 sco3.2v5*) 4923 lt_cv_sys_max_cmd_len=102400 4924 ;; 4925 sysv5* | sco5v6* | sysv4.2uw2*) 4926 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4927 if test -n "$kargmax"; then 4928 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4929 else 4930 lt_cv_sys_max_cmd_len=32768 4931 fi 4932 ;; 4933 *) 4934 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4935 if test -n "$lt_cv_sys_max_cmd_len" && \ 4936 test undefined != "$lt_cv_sys_max_cmd_len"; then 4937 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4938 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4939 else 4940 # Make teststring a little bigger before we do anything with it. 4941 # a 1K string should be a reasonable start. 4942 for i in 1 2 3 4 5 6 7 8; do 4943 teststring=$teststring$teststring 4944 done 4945 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4946 # If test is not a shell built-in, we'll probably end up computing a 4947 # maximum length that is only half of the actual maximum length, but 4948 # we can't tell. 4949 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 4950 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4951 test 17 != "$i" # 1/2 MB should be enough 4952 do 4953 i=`expr $i + 1` 4954 teststring=$teststring$teststring 4955 done 4956 # Only check the string length outside the loop. 4957 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4958 teststring= 4959 # Add a significant safety factor because C++ compilers can tack on 4960 # massive amounts of additional arguments before passing them to the 4961 # linker. It appears as though 1/2 is a usable value. 4962 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4963 fi 4964 ;; 4965 esac 4966 4967fi 4968 4969if test -n "$lt_cv_sys_max_cmd_len"; then 4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4971$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4972else 4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4974$as_echo "none" >&6; } 4975fi 4976max_cmd_len=$lt_cv_sys_max_cmd_len 4977 4978 4979 4980 4981 4982 4983: ${CP="cp -f"} 4984: ${MV="mv -f"} 4985: ${RM="rm -f"} 4986 4987if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4988 lt_unset=unset 4989else 4990 lt_unset=false 4991fi 4992 4993 4994 4995 4996 4997# test EBCDIC or ASCII 4998case `echo X|tr X '\101'` in 4999 A) # ASCII based system 5000 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5001 lt_SP2NL='tr \040 \012' 5002 lt_NL2SP='tr \015\012 \040\040' 5003 ;; 5004 *) # EBCDIC based system 5005 lt_SP2NL='tr \100 \n' 5006 lt_NL2SP='tr \r\n \100\100' 5007 ;; 5008esac 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5019$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5020if ${lt_cv_to_host_file_cmd+:} false; then : 5021 $as_echo_n "(cached) " >&6 5022else 5023 case $host in 5024 *-*-mingw* ) 5025 case $build in 5026 *-*-mingw* ) # actually msys 5027 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5028 ;; 5029 *-*-cygwin* ) 5030 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5031 ;; 5032 * ) # otherwise, assume *nix 5033 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5034 ;; 5035 esac 5036 ;; 5037 *-*-cygwin* ) 5038 case $build in 5039 *-*-mingw* ) # actually msys 5040 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5041 ;; 5042 *-*-cygwin* ) 5043 lt_cv_to_host_file_cmd=func_convert_file_noop 5044 ;; 5045 * ) # otherwise, assume *nix 5046 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5047 ;; 5048 esac 5049 ;; 5050 * ) # unhandled hosts (and "normal" native builds) 5051 lt_cv_to_host_file_cmd=func_convert_file_noop 5052 ;; 5053esac 5054 5055fi 5056 5057to_host_file_cmd=$lt_cv_to_host_file_cmd 5058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5059$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5060 5061 5062 5063 5064 5065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5066$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5067if ${lt_cv_to_tool_file_cmd+:} false; then : 5068 $as_echo_n "(cached) " >&6 5069else 5070 #assume ordinary cross tools, or native build. 5071lt_cv_to_tool_file_cmd=func_convert_file_noop 5072case $host in 5073 *-*-mingw* ) 5074 case $build in 5075 *-*-mingw* ) # actually msys 5076 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5077 ;; 5078 esac 5079 ;; 5080esac 5081 5082fi 5083 5084to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5086$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5087 5088 5089 5090 5091 5092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5093$as_echo_n "checking for $LD option to reload object files... " >&6; } 5094if ${lt_cv_ld_reload_flag+:} false; then : 5095 $as_echo_n "(cached) " >&6 5096else 5097 lt_cv_ld_reload_flag='-r' 5098fi 5099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5100$as_echo "$lt_cv_ld_reload_flag" >&6; } 5101reload_flag=$lt_cv_ld_reload_flag 5102case $reload_flag in 5103"" | " "*) ;; 5104*) reload_flag=" $reload_flag" ;; 5105esac 5106reload_cmds='$LD$reload_flag -o $output$reload_objs' 5107case $host_os in 5108 cygwin* | mingw* | pw32* | cegcc*) 5109 if test yes != "$GCC"; then 5110 reload_cmds=false 5111 fi 5112 ;; 5113 darwin*) 5114 if test yes = "$GCC"; then 5115 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5116 else 5117 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5118 fi 5119 ;; 5120esac 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130if test -n "$ac_tool_prefix"; then 5131 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5132set dummy ${ac_tool_prefix}objdump; ac_word=$2 5133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5134$as_echo_n "checking for $ac_word... " >&6; } 5135if ${ac_cv_prog_OBJDUMP+:} false; then : 5136 $as_echo_n "(cached) " >&6 5137else 5138 if test -n "$OBJDUMP"; then 5139 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5140else 5141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5142for as_dir in $PATH 5143do 5144 IFS=$as_save_IFS 5145 test -z "$as_dir" && as_dir=. 5146 for ac_exec_ext in '' $ac_executable_extensions; do 5147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5148 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5150 break 2 5151 fi 5152done 5153 done 5154IFS=$as_save_IFS 5155 5156fi 5157fi 5158OBJDUMP=$ac_cv_prog_OBJDUMP 5159if test -n "$OBJDUMP"; then 5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5161$as_echo "$OBJDUMP" >&6; } 5162else 5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5164$as_echo "no" >&6; } 5165fi 5166 5167 5168fi 5169if test -z "$ac_cv_prog_OBJDUMP"; then 5170 ac_ct_OBJDUMP=$OBJDUMP 5171 # Extract the first word of "objdump", so it can be a program name with args. 5172set dummy objdump; ac_word=$2 5173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5174$as_echo_n "checking for $ac_word... " >&6; } 5175if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5176 $as_echo_n "(cached) " >&6 5177else 5178 if test -n "$ac_ct_OBJDUMP"; then 5179 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5180else 5181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5182for as_dir in $PATH 5183do 5184 IFS=$as_save_IFS 5185 test -z "$as_dir" && as_dir=. 5186 for ac_exec_ext in '' $ac_executable_extensions; do 5187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5188 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5190 break 2 5191 fi 5192done 5193 done 5194IFS=$as_save_IFS 5195 5196fi 5197fi 5198ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5199if test -n "$ac_ct_OBJDUMP"; then 5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5201$as_echo "$ac_ct_OBJDUMP" >&6; } 5202else 5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5204$as_echo "no" >&6; } 5205fi 5206 5207 if test "x$ac_ct_OBJDUMP" = x; then 5208 OBJDUMP="false" 5209 else 5210 case $cross_compiling:$ac_tool_warned in 5211yes:) 5212{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5213$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5214ac_tool_warned=yes ;; 5215esac 5216 OBJDUMP=$ac_ct_OBJDUMP 5217 fi 5218else 5219 OBJDUMP="$ac_cv_prog_OBJDUMP" 5220fi 5221 5222test -z "$OBJDUMP" && OBJDUMP=objdump 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5233$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5234if ${lt_cv_deplibs_check_method+:} false; then : 5235 $as_echo_n "(cached) " >&6 5236else 5237 lt_cv_file_magic_cmd='$MAGIC_CMD' 5238lt_cv_file_magic_test_file= 5239lt_cv_deplibs_check_method='unknown' 5240# Need to set the preceding variable on all platforms that support 5241# interlibrary dependencies. 5242# 'none' -- dependencies not supported. 5243# 'unknown' -- same as none, but documents that we really don't know. 5244# 'pass_all' -- all dependencies passed with no checks. 5245# 'test_compile' -- check by making test program. 5246# 'file_magic [[regex]]' -- check by looking for files in library path 5247# that responds to the $file_magic_cmd with a given extended regex. 5248# If you have 'file' or equivalent on your system and you're not sure 5249# whether 'pass_all' will *always* work, you probably want this one. 5250 5251case $host_os in 5252aix[4-9]*) 5253 lt_cv_deplibs_check_method=pass_all 5254 ;; 5255 5256beos*) 5257 lt_cv_deplibs_check_method=pass_all 5258 ;; 5259 5260bsdi[45]*) 5261 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5262 lt_cv_file_magic_cmd='/usr/bin/file -L' 5263 lt_cv_file_magic_test_file=/shlib/libc.so 5264 ;; 5265 5266cygwin*) 5267 # func_win32_libid is a shell function defined in ltmain.sh 5268 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5269 lt_cv_file_magic_cmd='func_win32_libid' 5270 ;; 5271 5272mingw* | pw32*) 5273 # Base MSYS/MinGW do not provide the 'file' command needed by 5274 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5275 # unless we find 'file', for example because we are cross-compiling. 5276 if ( file / ) >/dev/null 2>&1; then 5277 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5278 lt_cv_file_magic_cmd='func_win32_libid' 5279 else 5280 # Keep this pattern in sync with the one in func_win32_libid. 5281 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5282 lt_cv_file_magic_cmd='$OBJDUMP -f' 5283 fi 5284 ;; 5285 5286cegcc*) 5287 # use the weaker test based on 'objdump'. See mingw*. 5288 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5289 lt_cv_file_magic_cmd='$OBJDUMP -f' 5290 ;; 5291 5292darwin* | rhapsody*) 5293 lt_cv_deplibs_check_method=pass_all 5294 ;; 5295 5296freebsd* | dragonfly*) 5297 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5298 case $host_cpu in 5299 i*86 ) 5300 # Not sure whether the presence of OpenBSD here was a mistake. 5301 # Let's accept both of them until this is cleared up. 5302 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5303 lt_cv_file_magic_cmd=/usr/bin/file 5304 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5305 ;; 5306 esac 5307 else 5308 lt_cv_deplibs_check_method=pass_all 5309 fi 5310 ;; 5311 5312haiku*) 5313 lt_cv_deplibs_check_method=pass_all 5314 ;; 5315 5316hpux10.20* | hpux11*) 5317 lt_cv_file_magic_cmd=/usr/bin/file 5318 case $host_cpu in 5319 ia64*) 5320 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5321 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5322 ;; 5323 hppa*64*) 5324 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]' 5325 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5326 ;; 5327 *) 5328 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5329 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5330 ;; 5331 esac 5332 ;; 5333 5334interix[3-9]*) 5335 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5336 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5337 ;; 5338 5339irix5* | irix6* | nonstopux*) 5340 case $LD in 5341 *-32|*"-32 ") libmagic=32-bit;; 5342 *-n32|*"-n32 ") libmagic=N32;; 5343 *-64|*"-64 ") libmagic=64-bit;; 5344 *) libmagic=never-match;; 5345 esac 5346 lt_cv_deplibs_check_method=pass_all 5347 ;; 5348 5349# This must be glibc/ELF. 5350linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5351 lt_cv_deplibs_check_method=pass_all 5352 ;; 5353 5354netbsd*) 5355 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5356 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5357 else 5358 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5359 fi 5360 ;; 5361 5362newos6*) 5363 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5364 lt_cv_file_magic_cmd=/usr/bin/file 5365 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5366 ;; 5367 5368*nto* | *qnx*) 5369 lt_cv_deplibs_check_method=pass_all 5370 ;; 5371 5372openbsd* | bitrig*) 5373 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5374 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5375 else 5376 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5377 fi 5378 ;; 5379 5380osf3* | osf4* | osf5*) 5381 lt_cv_deplibs_check_method=pass_all 5382 ;; 5383 5384rdos*) 5385 lt_cv_deplibs_check_method=pass_all 5386 ;; 5387 5388solaris*) 5389 lt_cv_deplibs_check_method=pass_all 5390 ;; 5391 5392sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5393 lt_cv_deplibs_check_method=pass_all 5394 ;; 5395 5396sysv4 | sysv4.3*) 5397 case $host_vendor in 5398 motorola) 5399 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]' 5400 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5401 ;; 5402 ncr) 5403 lt_cv_deplibs_check_method=pass_all 5404 ;; 5405 sequent) 5406 lt_cv_file_magic_cmd='/bin/file' 5407 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5408 ;; 5409 sni) 5410 lt_cv_file_magic_cmd='/bin/file' 5411 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5412 lt_cv_file_magic_test_file=/lib/libc.so 5413 ;; 5414 siemens) 5415 lt_cv_deplibs_check_method=pass_all 5416 ;; 5417 pc) 5418 lt_cv_deplibs_check_method=pass_all 5419 ;; 5420 esac 5421 ;; 5422 5423tpf*) 5424 lt_cv_deplibs_check_method=pass_all 5425 ;; 5426os2*) 5427 lt_cv_deplibs_check_method=pass_all 5428 ;; 5429esac 5430 5431fi 5432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5433$as_echo "$lt_cv_deplibs_check_method" >&6; } 5434 5435file_magic_glob= 5436want_nocaseglob=no 5437if test "$build" = "$host"; then 5438 case $host_os in 5439 mingw* | pw32*) 5440 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5441 want_nocaseglob=yes 5442 else 5443 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5444 fi 5445 ;; 5446 esac 5447fi 5448 5449file_magic_cmd=$lt_cv_file_magic_cmd 5450deplibs_check_method=$lt_cv_deplibs_check_method 5451test -z "$deplibs_check_method" && deplibs_check_method=unknown 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474if test -n "$ac_tool_prefix"; then 5475 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5476set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5478$as_echo_n "checking for $ac_word... " >&6; } 5479if ${ac_cv_prog_DLLTOOL+:} false; then : 5480 $as_echo_n "(cached) " >&6 5481else 5482 if test -n "$DLLTOOL"; then 5483 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5484else 5485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5486for as_dir in $PATH 5487do 5488 IFS=$as_save_IFS 5489 test -z "$as_dir" && as_dir=. 5490 for ac_exec_ext in '' $ac_executable_extensions; do 5491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5492 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5494 break 2 5495 fi 5496done 5497 done 5498IFS=$as_save_IFS 5499 5500fi 5501fi 5502DLLTOOL=$ac_cv_prog_DLLTOOL 5503if test -n "$DLLTOOL"; then 5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5505$as_echo "$DLLTOOL" >&6; } 5506else 5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5508$as_echo "no" >&6; } 5509fi 5510 5511 5512fi 5513if test -z "$ac_cv_prog_DLLTOOL"; then 5514 ac_ct_DLLTOOL=$DLLTOOL 5515 # Extract the first word of "dlltool", so it can be a program name with args. 5516set dummy dlltool; ac_word=$2 5517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5518$as_echo_n "checking for $ac_word... " >&6; } 5519if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5520 $as_echo_n "(cached) " >&6 5521else 5522 if test -n "$ac_ct_DLLTOOL"; then 5523 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5524else 5525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5526for as_dir in $PATH 5527do 5528 IFS=$as_save_IFS 5529 test -z "$as_dir" && as_dir=. 5530 for ac_exec_ext in '' $ac_executable_extensions; do 5531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5532 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5534 break 2 5535 fi 5536done 5537 done 5538IFS=$as_save_IFS 5539 5540fi 5541fi 5542ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5543if test -n "$ac_ct_DLLTOOL"; then 5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5545$as_echo "$ac_ct_DLLTOOL" >&6; } 5546else 5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5548$as_echo "no" >&6; } 5549fi 5550 5551 if test "x$ac_ct_DLLTOOL" = x; then 5552 DLLTOOL="false" 5553 else 5554 case $cross_compiling:$ac_tool_warned in 5555yes:) 5556{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5557$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5558ac_tool_warned=yes ;; 5559esac 5560 DLLTOOL=$ac_ct_DLLTOOL 5561 fi 5562else 5563 DLLTOOL="$ac_cv_prog_DLLTOOL" 5564fi 5565 5566test -z "$DLLTOOL" && DLLTOOL=dlltool 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5578$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5579if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5580 $as_echo_n "(cached) " >&6 5581else 5582 lt_cv_sharedlib_from_linklib_cmd='unknown' 5583 5584case $host_os in 5585cygwin* | mingw* | pw32* | cegcc*) 5586 # two different shell functions defined in ltmain.sh; 5587 # decide which one to use based on capabilities of $DLLTOOL 5588 case `$DLLTOOL --help 2>&1` in 5589 *--identify-strict*) 5590 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5591 ;; 5592 *) 5593 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5594 ;; 5595 esac 5596 ;; 5597*) 5598 # fallback: assume linklib IS sharedlib 5599 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5600 ;; 5601esac 5602 5603fi 5604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5605$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5606sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5607test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5608 5609 5610 5611 5612 5613 5614 5615 5616if test -n "$ac_tool_prefix"; then 5617 for ac_prog in ar 5618 do 5619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5620set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5622$as_echo_n "checking for $ac_word... " >&6; } 5623if ${ac_cv_prog_AR+:} false; then : 5624 $as_echo_n "(cached) " >&6 5625else 5626 if test -n "$AR"; then 5627 ac_cv_prog_AR="$AR" # Let the user override the test. 5628else 5629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5630for as_dir in $PATH 5631do 5632 IFS=$as_save_IFS 5633 test -z "$as_dir" && as_dir=. 5634 for ac_exec_ext in '' $ac_executable_extensions; do 5635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5636 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5638 break 2 5639 fi 5640done 5641 done 5642IFS=$as_save_IFS 5643 5644fi 5645fi 5646AR=$ac_cv_prog_AR 5647if test -n "$AR"; then 5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5649$as_echo "$AR" >&6; } 5650else 5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5652$as_echo "no" >&6; } 5653fi 5654 5655 5656 test -n "$AR" && break 5657 done 5658fi 5659if test -z "$AR"; then 5660 ac_ct_AR=$AR 5661 for ac_prog in ar 5662do 5663 # Extract the first word of "$ac_prog", so it can be a program name with args. 5664set dummy $ac_prog; ac_word=$2 5665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5666$as_echo_n "checking for $ac_word... " >&6; } 5667if ${ac_cv_prog_ac_ct_AR+:} false; then : 5668 $as_echo_n "(cached) " >&6 5669else 5670 if test -n "$ac_ct_AR"; then 5671 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5672else 5673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5674for as_dir in $PATH 5675do 5676 IFS=$as_save_IFS 5677 test -z "$as_dir" && as_dir=. 5678 for ac_exec_ext in '' $ac_executable_extensions; do 5679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5680 ac_cv_prog_ac_ct_AR="$ac_prog" 5681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5682 break 2 5683 fi 5684done 5685 done 5686IFS=$as_save_IFS 5687 5688fi 5689fi 5690ac_ct_AR=$ac_cv_prog_ac_ct_AR 5691if test -n "$ac_ct_AR"; then 5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5693$as_echo "$ac_ct_AR" >&6; } 5694else 5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5696$as_echo "no" >&6; } 5697fi 5698 5699 5700 test -n "$ac_ct_AR" && break 5701done 5702 5703 if test "x$ac_ct_AR" = x; then 5704 AR="false" 5705 else 5706 case $cross_compiling:$ac_tool_warned in 5707yes:) 5708{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5709$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5710ac_tool_warned=yes ;; 5711esac 5712 AR=$ac_ct_AR 5713 fi 5714fi 5715 5716: ${AR=ar} 5717: ${AR_FLAGS=cru} 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5730$as_echo_n "checking for archiver @FILE support... " >&6; } 5731if ${lt_cv_ar_at_file+:} false; then : 5732 $as_echo_n "(cached) " >&6 5733else 5734 lt_cv_ar_at_file=no 5735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5736/* end confdefs.h. */ 5737 5738int 5739main () 5740{ 5741 5742 ; 5743 return 0; 5744} 5745_ACEOF 5746if ac_fn_c_try_compile "$LINENO"; then : 5747 echo conftest.$ac_objext > conftest.lst 5748 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5750 (eval $lt_ar_try) 2>&5 5751 ac_status=$? 5752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5753 test $ac_status = 0; } 5754 if test 0 -eq "$ac_status"; then 5755 # Ensure the archiver fails upon bogus file names. 5756 rm -f conftest.$ac_objext libconftest.a 5757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5758 (eval $lt_ar_try) 2>&5 5759 ac_status=$? 5760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5761 test $ac_status = 0; } 5762 if test 0 -ne "$ac_status"; then 5763 lt_cv_ar_at_file=@ 5764 fi 5765 fi 5766 rm -f conftest.* libconftest.a 5767 5768fi 5769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5770 5771fi 5772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5773$as_echo "$lt_cv_ar_at_file" >&6; } 5774 5775if test no = "$lt_cv_ar_at_file"; then 5776 archiver_list_spec= 5777else 5778 archiver_list_spec=$lt_cv_ar_at_file 5779fi 5780 5781 5782 5783 5784 5785 5786 5787if test -n "$ac_tool_prefix"; then 5788 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5789set dummy ${ac_tool_prefix}strip; ac_word=$2 5790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5791$as_echo_n "checking for $ac_word... " >&6; } 5792if ${ac_cv_prog_STRIP+:} false; then : 5793 $as_echo_n "(cached) " >&6 5794else 5795 if test -n "$STRIP"; then 5796 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5797else 5798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5799for as_dir in $PATH 5800do 5801 IFS=$as_save_IFS 5802 test -z "$as_dir" && as_dir=. 5803 for ac_exec_ext in '' $ac_executable_extensions; do 5804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5805 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5807 break 2 5808 fi 5809done 5810 done 5811IFS=$as_save_IFS 5812 5813fi 5814fi 5815STRIP=$ac_cv_prog_STRIP 5816if test -n "$STRIP"; then 5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5818$as_echo "$STRIP" >&6; } 5819else 5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5821$as_echo "no" >&6; } 5822fi 5823 5824 5825fi 5826if test -z "$ac_cv_prog_STRIP"; then 5827 ac_ct_STRIP=$STRIP 5828 # Extract the first word of "strip", so it can be a program name with args. 5829set dummy strip; ac_word=$2 5830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5831$as_echo_n "checking for $ac_word... " >&6; } 5832if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5833 $as_echo_n "(cached) " >&6 5834else 5835 if test -n "$ac_ct_STRIP"; then 5836 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5837else 5838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5839for as_dir in $PATH 5840do 5841 IFS=$as_save_IFS 5842 test -z "$as_dir" && as_dir=. 5843 for ac_exec_ext in '' $ac_executable_extensions; do 5844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5845 ac_cv_prog_ac_ct_STRIP="strip" 5846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5847 break 2 5848 fi 5849done 5850 done 5851IFS=$as_save_IFS 5852 5853fi 5854fi 5855ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5856if test -n "$ac_ct_STRIP"; then 5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5858$as_echo "$ac_ct_STRIP" >&6; } 5859else 5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5861$as_echo "no" >&6; } 5862fi 5863 5864 if test "x$ac_ct_STRIP" = x; then 5865 STRIP=":" 5866 else 5867 case $cross_compiling:$ac_tool_warned in 5868yes:) 5869{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5870$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5871ac_tool_warned=yes ;; 5872esac 5873 STRIP=$ac_ct_STRIP 5874 fi 5875else 5876 STRIP="$ac_cv_prog_STRIP" 5877fi 5878 5879test -z "$STRIP" && STRIP=: 5880 5881 5882 5883 5884 5885 5886if test -n "$ac_tool_prefix"; then 5887 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5888set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5890$as_echo_n "checking for $ac_word... " >&6; } 5891if ${ac_cv_prog_RANLIB+:} false; then : 5892 $as_echo_n "(cached) " >&6 5893else 5894 if test -n "$RANLIB"; then 5895 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5896else 5897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5898for as_dir in $PATH 5899do 5900 IFS=$as_save_IFS 5901 test -z "$as_dir" && as_dir=. 5902 for ac_exec_ext in '' $ac_executable_extensions; do 5903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5904 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5906 break 2 5907 fi 5908done 5909 done 5910IFS=$as_save_IFS 5911 5912fi 5913fi 5914RANLIB=$ac_cv_prog_RANLIB 5915if test -n "$RANLIB"; then 5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5917$as_echo "$RANLIB" >&6; } 5918else 5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5920$as_echo "no" >&6; } 5921fi 5922 5923 5924fi 5925if test -z "$ac_cv_prog_RANLIB"; then 5926 ac_ct_RANLIB=$RANLIB 5927 # Extract the first word of "ranlib", so it can be a program name with args. 5928set dummy ranlib; ac_word=$2 5929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5930$as_echo_n "checking for $ac_word... " >&6; } 5931if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5932 $as_echo_n "(cached) " >&6 5933else 5934 if test -n "$ac_ct_RANLIB"; then 5935 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5936else 5937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5938for as_dir in $PATH 5939do 5940 IFS=$as_save_IFS 5941 test -z "$as_dir" && as_dir=. 5942 for ac_exec_ext in '' $ac_executable_extensions; do 5943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5944 ac_cv_prog_ac_ct_RANLIB="ranlib" 5945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5946 break 2 5947 fi 5948done 5949 done 5950IFS=$as_save_IFS 5951 5952fi 5953fi 5954ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5955if test -n "$ac_ct_RANLIB"; then 5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5957$as_echo "$ac_ct_RANLIB" >&6; } 5958else 5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5960$as_echo "no" >&6; } 5961fi 5962 5963 if test "x$ac_ct_RANLIB" = x; then 5964 RANLIB=":" 5965 else 5966 case $cross_compiling:$ac_tool_warned in 5967yes:) 5968{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5969$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5970ac_tool_warned=yes ;; 5971esac 5972 RANLIB=$ac_ct_RANLIB 5973 fi 5974else 5975 RANLIB="$ac_cv_prog_RANLIB" 5976fi 5977 5978test -z "$RANLIB" && RANLIB=: 5979 5980 5981 5982 5983 5984 5985# Determine commands to create old-style static archives. 5986old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5987old_postinstall_cmds='chmod 644 $oldlib' 5988old_postuninstall_cmds= 5989 5990if test -n "$RANLIB"; then 5991 case $host_os in 5992 bitrig* | openbsd*) 5993 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5994 ;; 5995 *) 5996 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5997 ;; 5998 esac 5999 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6000fi 6001 6002case $host_os in 6003 darwin*) 6004 lock_old_archive_extraction=yes ;; 6005 *) 6006 lock_old_archive_extraction=no ;; 6007esac 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047# If no C compiler was specified, use CC. 6048LTCC=${LTCC-"$CC"} 6049 6050# If no C compiler flags were specified, use CFLAGS. 6051LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6052 6053# Allow CC to be a program name with arguments. 6054compiler=$CC 6055 6056 6057# Check for command to grab the raw symbol name followed by C symbol from nm. 6058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6059$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6060if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6061 $as_echo_n "(cached) " >&6 6062else 6063 6064# These are sane defaults that work on at least a few old systems. 6065# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6066 6067# Character class describing NM global symbol codes. 6068symcode='[BCDEGRST]' 6069 6070# Regexp to match symbols that can be accessed directly from C. 6071sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6072 6073# Define system-specific variables. 6074case $host_os in 6075aix*) 6076 symcode='[BCDT]' 6077 ;; 6078cygwin* | mingw* | pw32* | cegcc*) 6079 symcode='[ABCDGISTW]' 6080 ;; 6081hpux*) 6082 if test ia64 = "$host_cpu"; then 6083 symcode='[ABCDEGRST]' 6084 fi 6085 ;; 6086irix* | nonstopux*) 6087 symcode='[BCDEGRST]' 6088 ;; 6089osf*) 6090 symcode='[BCDEGQRST]' 6091 ;; 6092solaris*) 6093 symcode='[BDRT]' 6094 ;; 6095sco3.2v5*) 6096 symcode='[DT]' 6097 ;; 6098sysv4.2uw2*) 6099 symcode='[DT]' 6100 ;; 6101sysv5* | sco5v6* | unixware* | OpenUNIX*) 6102 symcode='[ABDT]' 6103 ;; 6104sysv4) 6105 symcode='[DFNSTU]' 6106 ;; 6107esac 6108 6109# If we're using GNU nm, then use its standard symbol codes. 6110case `$NM -V 2>&1` in 6111*GNU* | *'with BFD'*) 6112 symcode='[ABCDGIRSTW]' ;; 6113esac 6114 6115if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6116 # Gets list of data symbols to import. 6117 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6118 # Adjust the below global symbol transforms to fixup imported variables. 6119 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6120 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6121 lt_c_name_lib_hook="\ 6122 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6123 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6124else 6125 # Disable hooks by default. 6126 lt_cv_sys_global_symbol_to_import= 6127 lt_cdecl_hook= 6128 lt_c_name_hook= 6129 lt_c_name_lib_hook= 6130fi 6131 6132# Transform an extracted symbol line into a proper C declaration. 6133# Some systems (esp. on ia64) link data and code symbols differently, 6134# so use this general approach. 6135lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6136$lt_cdecl_hook\ 6137" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6138" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6139 6140# Transform an extracted symbol line into symbol name and symbol address 6141lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6142$lt_c_name_hook\ 6143" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6144" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6145 6146# Transform an extracted symbol line into symbol name with lib prefix and 6147# symbol address. 6148lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6149$lt_c_name_lib_hook\ 6150" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6151" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6152" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6153 6154# Handle CRLF in mingw tool chain 6155opt_cr= 6156case $build_os in 6157mingw*) 6158 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6159 ;; 6160esac 6161 6162# Try without a prefix underscore, then with it. 6163for ac_symprfx in "" "_"; do 6164 6165 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6166 symxfrm="\\1 $ac_symprfx\\2 \\2" 6167 6168 # Write the raw and C identifiers. 6169 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6170 # Fake it for dumpbin and say T for any non-static function, 6171 # D for any global variable and I for any imported variable. 6172 # Also find C++ and __fastcall symbols from MSVC++, 6173 # which start with @ or ?. 6174 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6175" {last_section=section; section=\$ 3};"\ 6176" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6177" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6178" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6179" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6180" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6181" \$ 0!~/External *\|/{next};"\ 6182" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6183" {if(hide[section]) next};"\ 6184" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6185" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6186" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6187" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6188" ' prfx=^$ac_symprfx" 6189 else 6190 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6191 fi 6192 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6193 6194 # Check to see that the pipe works correctly. 6195 pipe_works=no 6196 6197 rm -f conftest* 6198 cat > conftest.$ac_ext <<_LT_EOF 6199#ifdef __cplusplus 6200extern "C" { 6201#endif 6202char nm_test_var; 6203void nm_test_func(void); 6204void nm_test_func(void){} 6205#ifdef __cplusplus 6206} 6207#endif 6208int main(){nm_test_var='a';nm_test_func();return(0);} 6209_LT_EOF 6210 6211 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6212 (eval $ac_compile) 2>&5 6213 ac_status=$? 6214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6215 test $ac_status = 0; }; then 6216 # Now try to grab the symbols. 6217 nlist=conftest.nm 6218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6219 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6220 ac_status=$? 6221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6222 test $ac_status = 0; } && test -s "$nlist"; then 6223 # Try sorting and uniquifying the output. 6224 if sort "$nlist" | uniq > "$nlist"T; then 6225 mv -f "$nlist"T "$nlist" 6226 else 6227 rm -f "$nlist"T 6228 fi 6229 6230 # Make sure that we snagged all the symbols we need. 6231 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6232 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6233 cat <<_LT_EOF > conftest.$ac_ext 6234/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6235#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6236/* DATA imports from DLLs on WIN32 can't be const, because runtime 6237 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6238# define LT_DLSYM_CONST 6239#elif defined __osf__ 6240/* This system does not cope well with relocations in const data. */ 6241# define LT_DLSYM_CONST 6242#else 6243# define LT_DLSYM_CONST const 6244#endif 6245 6246#ifdef __cplusplus 6247extern "C" { 6248#endif 6249 6250_LT_EOF 6251 # Now generate the symbol file. 6252 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6253 6254 cat <<_LT_EOF >> conftest.$ac_ext 6255 6256/* The mapping between symbol names and symbols. */ 6257LT_DLSYM_CONST struct { 6258 const char *name; 6259 void *address; 6260} 6261lt__PROGRAM__LTX_preloaded_symbols[] = 6262{ 6263 { "@PROGRAM@", (void *) 0 }, 6264_LT_EOF 6265 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6266 cat <<\_LT_EOF >> conftest.$ac_ext 6267 {0, (void *) 0} 6268}; 6269 6270/* This works around a problem in FreeBSD linker */ 6271#ifdef FREEBSD_WORKAROUND 6272static const void *lt_preloaded_setup() { 6273 return lt__PROGRAM__LTX_preloaded_symbols; 6274} 6275#endif 6276 6277#ifdef __cplusplus 6278} 6279#endif 6280_LT_EOF 6281 # Now try linking the two files. 6282 mv conftest.$ac_objext conftstm.$ac_objext 6283 lt_globsym_save_LIBS=$LIBS 6284 lt_globsym_save_CFLAGS=$CFLAGS 6285 LIBS=conftstm.$ac_objext 6286 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6288 (eval $ac_link) 2>&5 6289 ac_status=$? 6290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6291 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6292 pipe_works=yes 6293 fi 6294 LIBS=$lt_globsym_save_LIBS 6295 CFLAGS=$lt_globsym_save_CFLAGS 6296 else 6297 echo "cannot find nm_test_func in $nlist" >&5 6298 fi 6299 else 6300 echo "cannot find nm_test_var in $nlist" >&5 6301 fi 6302 else 6303 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6304 fi 6305 else 6306 echo "$progname: failed program was:" >&5 6307 cat conftest.$ac_ext >&5 6308 fi 6309 rm -rf conftest* conftst* 6310 6311 # Do not use the global_symbol_pipe unless it works. 6312 if test yes = "$pipe_works"; then 6313 break 6314 else 6315 lt_cv_sys_global_symbol_pipe= 6316 fi 6317done 6318 6319fi 6320 6321if test -z "$lt_cv_sys_global_symbol_pipe"; then 6322 lt_cv_sys_global_symbol_to_cdecl= 6323fi 6324if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6326$as_echo "failed" >&6; } 6327else 6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6329$as_echo "ok" >&6; } 6330fi 6331 6332# Response file support. 6333if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6334 nm_file_list_spec='@' 6335elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6336 nm_file_list_spec='@' 6337fi 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6376$as_echo_n "checking for sysroot... " >&6; } 6377 6378# Check whether --with-sysroot was given. 6379if test "${with_sysroot+set}" = set; then : 6380 withval=$with_sysroot; 6381else 6382 with_sysroot=no 6383fi 6384 6385 6386lt_sysroot= 6387case $with_sysroot in #( 6388 yes) 6389 if test yes = "$GCC"; then 6390 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6391 fi 6392 ;; #( 6393 /*) 6394 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6395 ;; #( 6396 no|'') 6397 ;; #( 6398 *) 6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6400$as_echo "$with_sysroot" >&6; } 6401 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6402 ;; 6403esac 6404 6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6406$as_echo "${lt_sysroot:-no}" >&6; } 6407 6408 6409 6410 6411 6412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6413$as_echo_n "checking for a working dd... " >&6; } 6414if ${ac_cv_path_lt_DD+:} false; then : 6415 $as_echo_n "(cached) " >&6 6416else 6417 printf 0123456789abcdef0123456789abcdef >conftest.i 6418cat conftest.i conftest.i >conftest2.i 6419: ${lt_DD:=$DD} 6420if test -z "$lt_DD"; then 6421 ac_path_lt_DD_found=false 6422 # Loop through the user's path and test for each of PROGNAME-LIST 6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6424for as_dir in $PATH 6425do 6426 IFS=$as_save_IFS 6427 test -z "$as_dir" && as_dir=. 6428 for ac_prog in dd; do 6429 for ac_exec_ext in '' $ac_executable_extensions; do 6430 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6431 as_fn_executable_p "$ac_path_lt_DD" || continue 6432if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6433 cmp -s conftest.i conftest.out \ 6434 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6435fi 6436 $ac_path_lt_DD_found && break 3 6437 done 6438 done 6439 done 6440IFS=$as_save_IFS 6441 if test -z "$ac_cv_path_lt_DD"; then 6442 : 6443 fi 6444else 6445 ac_cv_path_lt_DD=$lt_DD 6446fi 6447 6448rm -f conftest.i conftest2.i conftest.out 6449fi 6450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6451$as_echo "$ac_cv_path_lt_DD" >&6; } 6452 6453 6454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6455$as_echo_n "checking how to truncate binary pipes... " >&6; } 6456if ${lt_cv_truncate_bin+:} false; then : 6457 $as_echo_n "(cached) " >&6 6458else 6459 printf 0123456789abcdef0123456789abcdef >conftest.i 6460cat conftest.i conftest.i >conftest2.i 6461lt_cv_truncate_bin= 6462if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6463 cmp -s conftest.i conftest.out \ 6464 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6465fi 6466rm -f conftest.i conftest2.i conftest.out 6467test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6468fi 6469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6470$as_echo "$lt_cv_truncate_bin" >&6; } 6471 6472 6473 6474 6475 6476 6477 6478# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6479func_cc_basename () 6480{ 6481 for cc_temp in $*""; do 6482 case $cc_temp in 6483 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6484 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6485 \-*) ;; 6486 *) break;; 6487 esac 6488 done 6489 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6490} 6491 6492# Check whether --enable-libtool-lock was given. 6493if test "${enable_libtool_lock+set}" = set; then : 6494 enableval=$enable_libtool_lock; 6495fi 6496 6497test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6498 6499# Some flags need to be propagated to the compiler or linker for good 6500# libtool support. 6501case $host in 6502ia64-*-hpux*) 6503 # Find out what ABI is being produced by ac_compile, and set mode 6504 # options accordingly. 6505 echo 'int i;' > conftest.$ac_ext 6506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6507 (eval $ac_compile) 2>&5 6508 ac_status=$? 6509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6510 test $ac_status = 0; }; then 6511 case `/usr/bin/file conftest.$ac_objext` in 6512 *ELF-32*) 6513 HPUX_IA64_MODE=32 6514 ;; 6515 *ELF-64*) 6516 HPUX_IA64_MODE=64 6517 ;; 6518 esac 6519 fi 6520 rm -rf conftest* 6521 ;; 6522*-*-irix6*) 6523 # Find out what ABI is being produced by ac_compile, and set linker 6524 # options accordingly. 6525 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6527 (eval $ac_compile) 2>&5 6528 ac_status=$? 6529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6530 test $ac_status = 0; }; then 6531 if test yes = "$lt_cv_prog_gnu_ld"; then 6532 case `/usr/bin/file conftest.$ac_objext` in 6533 *32-bit*) 6534 LD="${LD-ld} -melf32bsmip" 6535 ;; 6536 *N32*) 6537 LD="${LD-ld} -melf32bmipn32" 6538 ;; 6539 *64-bit*) 6540 LD="${LD-ld} -melf64bmip" 6541 ;; 6542 esac 6543 else 6544 case `/usr/bin/file conftest.$ac_objext` in 6545 *32-bit*) 6546 LD="${LD-ld} -32" 6547 ;; 6548 *N32*) 6549 LD="${LD-ld} -n32" 6550 ;; 6551 *64-bit*) 6552 LD="${LD-ld} -64" 6553 ;; 6554 esac 6555 fi 6556 fi 6557 rm -rf conftest* 6558 ;; 6559 6560mips64*-*linux*) 6561 # Find out what ABI is being produced by ac_compile, and set linker 6562 # options accordingly. 6563 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6564 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6565 (eval $ac_compile) 2>&5 6566 ac_status=$? 6567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6568 test $ac_status = 0; }; then 6569 emul=elf 6570 case `/usr/bin/file conftest.$ac_objext` in 6571 *32-bit*) 6572 emul="${emul}32" 6573 ;; 6574 *64-bit*) 6575 emul="${emul}64" 6576 ;; 6577 esac 6578 case `/usr/bin/file conftest.$ac_objext` in 6579 *MSB*) 6580 emul="${emul}btsmip" 6581 ;; 6582 *LSB*) 6583 emul="${emul}ltsmip" 6584 ;; 6585 esac 6586 case `/usr/bin/file conftest.$ac_objext` in 6587 *N32*) 6588 emul="${emul}n32" 6589 ;; 6590 esac 6591 LD="${LD-ld} -m $emul" 6592 fi 6593 rm -rf conftest* 6594 ;; 6595 6596x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6597s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6598 # Find out what ABI is being produced by ac_compile, and set linker 6599 # options accordingly. Note that the listed cases only cover the 6600 # situations where additional linker options are needed (such as when 6601 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6602 # vice versa); the common cases where no linker options are needed do 6603 # not appear in the list. 6604 echo 'int i;' > conftest.$ac_ext 6605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6606 (eval $ac_compile) 2>&5 6607 ac_status=$? 6608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6609 test $ac_status = 0; }; then 6610 case `/usr/bin/file conftest.o` in 6611 *32-bit*) 6612 case $host in 6613 x86_64-*kfreebsd*-gnu) 6614 LD="${LD-ld} -m elf_i386_fbsd" 6615 ;; 6616 x86_64-*linux*) 6617 case `/usr/bin/file conftest.o` in 6618 *x86-64*) 6619 LD="${LD-ld} -m elf32_x86_64" 6620 ;; 6621 *) 6622 LD="${LD-ld} -m elf_i386" 6623 ;; 6624 esac 6625 ;; 6626 powerpc64le-*linux*) 6627 LD="${LD-ld} -m elf32lppclinux" 6628 ;; 6629 powerpc64-*linux*) 6630 LD="${LD-ld} -m elf32ppclinux" 6631 ;; 6632 s390x-*linux*) 6633 LD="${LD-ld} -m elf_s390" 6634 ;; 6635 sparc64-*linux*) 6636 LD="${LD-ld} -m elf32_sparc" 6637 ;; 6638 esac 6639 ;; 6640 *64-bit*) 6641 case $host in 6642 x86_64-*kfreebsd*-gnu) 6643 LD="${LD-ld} -m elf_x86_64_fbsd" 6644 ;; 6645 x86_64-*linux*) 6646 LD="${LD-ld} -m elf_x86_64" 6647 ;; 6648 powerpcle-*linux*) 6649 LD="${LD-ld} -m elf64lppc" 6650 ;; 6651 powerpc-*linux*) 6652 LD="${LD-ld} -m elf64ppc" 6653 ;; 6654 s390*-*linux*|s390*-*tpf*) 6655 LD="${LD-ld} -m elf64_s390" 6656 ;; 6657 sparc*-*linux*) 6658 LD="${LD-ld} -m elf64_sparc" 6659 ;; 6660 esac 6661 ;; 6662 esac 6663 fi 6664 rm -rf conftest* 6665 ;; 6666 6667*-*-sco3.2v5*) 6668 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6669 SAVE_CFLAGS=$CFLAGS 6670 CFLAGS="$CFLAGS -belf" 6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6672$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6673if ${lt_cv_cc_needs_belf+:} false; then : 6674 $as_echo_n "(cached) " >&6 6675else 6676 ac_ext=c 6677ac_cpp='$CPP $CPPFLAGS' 6678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6680ac_compiler_gnu=$ac_cv_c_compiler_gnu 6681 6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6683/* end confdefs.h. */ 6684 6685int 6686main () 6687{ 6688 6689 ; 6690 return 0; 6691} 6692_ACEOF 6693if ac_fn_c_try_link "$LINENO"; then : 6694 lt_cv_cc_needs_belf=yes 6695else 6696 lt_cv_cc_needs_belf=no 6697fi 6698rm -f core conftest.err conftest.$ac_objext \ 6699 conftest$ac_exeext conftest.$ac_ext 6700 ac_ext=c 6701ac_cpp='$CPP $CPPFLAGS' 6702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6704ac_compiler_gnu=$ac_cv_c_compiler_gnu 6705 6706fi 6707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6708$as_echo "$lt_cv_cc_needs_belf" >&6; } 6709 if test yes != "$lt_cv_cc_needs_belf"; then 6710 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6711 CFLAGS=$SAVE_CFLAGS 6712 fi 6713 ;; 6714*-*solaris*) 6715 # Find out what ABI is being produced by ac_compile, and set linker 6716 # options accordingly. 6717 echo 'int i;' > conftest.$ac_ext 6718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6719 (eval $ac_compile) 2>&5 6720 ac_status=$? 6721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6722 test $ac_status = 0; }; then 6723 case `/usr/bin/file conftest.o` in 6724 *64-bit*) 6725 case $lt_cv_prog_gnu_ld in 6726 yes*) 6727 case $host in 6728 i?86-*-solaris*|x86_64-*-solaris*) 6729 LD="${LD-ld} -m elf_x86_64" 6730 ;; 6731 sparc*-*-solaris*) 6732 LD="${LD-ld} -m elf64_sparc" 6733 ;; 6734 esac 6735 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6736 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6737 LD=${LD-ld}_sol2 6738 fi 6739 ;; 6740 *) 6741 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6742 LD="${LD-ld} -64" 6743 fi 6744 ;; 6745 esac 6746 ;; 6747 esac 6748 fi 6749 rm -rf conftest* 6750 ;; 6751esac 6752 6753need_locks=$enable_libtool_lock 6754 6755if test -n "$ac_tool_prefix"; then 6756 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6757set dummy ${ac_tool_prefix}mt; ac_word=$2 6758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6759$as_echo_n "checking for $ac_word... " >&6; } 6760if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6761 $as_echo_n "(cached) " >&6 6762else 6763 if test -n "$MANIFEST_TOOL"; then 6764 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6765else 6766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6767for as_dir in $PATH 6768do 6769 IFS=$as_save_IFS 6770 test -z "$as_dir" && as_dir=. 6771 for ac_exec_ext in '' $ac_executable_extensions; do 6772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6773 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6775 break 2 6776 fi 6777done 6778 done 6779IFS=$as_save_IFS 6780 6781fi 6782fi 6783MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6784if test -n "$MANIFEST_TOOL"; then 6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6786$as_echo "$MANIFEST_TOOL" >&6; } 6787else 6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6789$as_echo "no" >&6; } 6790fi 6791 6792 6793fi 6794if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6795 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6796 # Extract the first word of "mt", so it can be a program name with args. 6797set dummy mt; ac_word=$2 6798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6799$as_echo_n "checking for $ac_word... " >&6; } 6800if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6801 $as_echo_n "(cached) " >&6 6802else 6803 if test -n "$ac_ct_MANIFEST_TOOL"; then 6804 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6805else 6806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6807for as_dir in $PATH 6808do 6809 IFS=$as_save_IFS 6810 test -z "$as_dir" && as_dir=. 6811 for ac_exec_ext in '' $ac_executable_extensions; do 6812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6813 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6815 break 2 6816 fi 6817done 6818 done 6819IFS=$as_save_IFS 6820 6821fi 6822fi 6823ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6824if test -n "$ac_ct_MANIFEST_TOOL"; then 6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6826$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6827else 6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6829$as_echo "no" >&6; } 6830fi 6831 6832 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6833 MANIFEST_TOOL=":" 6834 else 6835 case $cross_compiling:$ac_tool_warned in 6836yes:) 6837{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6838$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6839ac_tool_warned=yes ;; 6840esac 6841 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6842 fi 6843else 6844 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6845fi 6846 6847test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6849$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6850if ${lt_cv_path_mainfest_tool+:} false; then : 6851 $as_echo_n "(cached) " >&6 6852else 6853 lt_cv_path_mainfest_tool=no 6854 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6855 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6856 cat conftest.err >&5 6857 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6858 lt_cv_path_mainfest_tool=yes 6859 fi 6860 rm -f conftest* 6861fi 6862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6863$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6864if test yes != "$lt_cv_path_mainfest_tool"; then 6865 MANIFEST_TOOL=: 6866fi 6867 6868 6869 6870 6871 6872 6873 case $host_os in 6874 rhapsody* | darwin*) 6875 if test -n "$ac_tool_prefix"; then 6876 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6877set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6879$as_echo_n "checking for $ac_word... " >&6; } 6880if ${ac_cv_prog_DSYMUTIL+:} false; then : 6881 $as_echo_n "(cached) " >&6 6882else 6883 if test -n "$DSYMUTIL"; then 6884 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6885else 6886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6887for as_dir in $PATH 6888do 6889 IFS=$as_save_IFS 6890 test -z "$as_dir" && as_dir=. 6891 for ac_exec_ext in '' $ac_executable_extensions; do 6892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6893 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6895 break 2 6896 fi 6897done 6898 done 6899IFS=$as_save_IFS 6900 6901fi 6902fi 6903DSYMUTIL=$ac_cv_prog_DSYMUTIL 6904if test -n "$DSYMUTIL"; then 6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6906$as_echo "$DSYMUTIL" >&6; } 6907else 6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6909$as_echo "no" >&6; } 6910fi 6911 6912 6913fi 6914if test -z "$ac_cv_prog_DSYMUTIL"; then 6915 ac_ct_DSYMUTIL=$DSYMUTIL 6916 # Extract the first word of "dsymutil", so it can be a program name with args. 6917set dummy dsymutil; ac_word=$2 6918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6919$as_echo_n "checking for $ac_word... " >&6; } 6920if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6921 $as_echo_n "(cached) " >&6 6922else 6923 if test -n "$ac_ct_DSYMUTIL"; then 6924 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6925else 6926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6927for as_dir in $PATH 6928do 6929 IFS=$as_save_IFS 6930 test -z "$as_dir" && as_dir=. 6931 for ac_exec_ext in '' $ac_executable_extensions; do 6932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6933 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6935 break 2 6936 fi 6937done 6938 done 6939IFS=$as_save_IFS 6940 6941fi 6942fi 6943ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6944if test -n "$ac_ct_DSYMUTIL"; then 6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6946$as_echo "$ac_ct_DSYMUTIL" >&6; } 6947else 6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6949$as_echo "no" >&6; } 6950fi 6951 6952 if test "x$ac_ct_DSYMUTIL" = x; then 6953 DSYMUTIL=":" 6954 else 6955 case $cross_compiling:$ac_tool_warned in 6956yes:) 6957{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6959ac_tool_warned=yes ;; 6960esac 6961 DSYMUTIL=$ac_ct_DSYMUTIL 6962 fi 6963else 6964 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6965fi 6966 6967 if test -n "$ac_tool_prefix"; then 6968 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6969set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6971$as_echo_n "checking for $ac_word... " >&6; } 6972if ${ac_cv_prog_NMEDIT+:} false; then : 6973 $as_echo_n "(cached) " >&6 6974else 6975 if test -n "$NMEDIT"; then 6976 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6977else 6978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6979for as_dir in $PATH 6980do 6981 IFS=$as_save_IFS 6982 test -z "$as_dir" && as_dir=. 6983 for ac_exec_ext in '' $ac_executable_extensions; do 6984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6985 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6987 break 2 6988 fi 6989done 6990 done 6991IFS=$as_save_IFS 6992 6993fi 6994fi 6995NMEDIT=$ac_cv_prog_NMEDIT 6996if test -n "$NMEDIT"; then 6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6998$as_echo "$NMEDIT" >&6; } 6999else 7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7001$as_echo "no" >&6; } 7002fi 7003 7004 7005fi 7006if test -z "$ac_cv_prog_NMEDIT"; then 7007 ac_ct_NMEDIT=$NMEDIT 7008 # Extract the first word of "nmedit", so it can be a program name with args. 7009set dummy nmedit; ac_word=$2 7010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7011$as_echo_n "checking for $ac_word... " >&6; } 7012if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7013 $as_echo_n "(cached) " >&6 7014else 7015 if test -n "$ac_ct_NMEDIT"; then 7016 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7017else 7018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7019for as_dir in $PATH 7020do 7021 IFS=$as_save_IFS 7022 test -z "$as_dir" && as_dir=. 7023 for ac_exec_ext in '' $ac_executable_extensions; do 7024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7025 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7027 break 2 7028 fi 7029done 7030 done 7031IFS=$as_save_IFS 7032 7033fi 7034fi 7035ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7036if test -n "$ac_ct_NMEDIT"; then 7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7038$as_echo "$ac_ct_NMEDIT" >&6; } 7039else 7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7041$as_echo "no" >&6; } 7042fi 7043 7044 if test "x$ac_ct_NMEDIT" = x; then 7045 NMEDIT=":" 7046 else 7047 case $cross_compiling:$ac_tool_warned in 7048yes:) 7049{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7050$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7051ac_tool_warned=yes ;; 7052esac 7053 NMEDIT=$ac_ct_NMEDIT 7054 fi 7055else 7056 NMEDIT="$ac_cv_prog_NMEDIT" 7057fi 7058 7059 if test -n "$ac_tool_prefix"; then 7060 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7061set dummy ${ac_tool_prefix}lipo; ac_word=$2 7062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7063$as_echo_n "checking for $ac_word... " >&6; } 7064if ${ac_cv_prog_LIPO+:} false; then : 7065 $as_echo_n "(cached) " >&6 7066else 7067 if test -n "$LIPO"; then 7068 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7069else 7070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7071for as_dir in $PATH 7072do 7073 IFS=$as_save_IFS 7074 test -z "$as_dir" && as_dir=. 7075 for ac_exec_ext in '' $ac_executable_extensions; do 7076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7077 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7079 break 2 7080 fi 7081done 7082 done 7083IFS=$as_save_IFS 7084 7085fi 7086fi 7087LIPO=$ac_cv_prog_LIPO 7088if test -n "$LIPO"; then 7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7090$as_echo "$LIPO" >&6; } 7091else 7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7093$as_echo "no" >&6; } 7094fi 7095 7096 7097fi 7098if test -z "$ac_cv_prog_LIPO"; then 7099 ac_ct_LIPO=$LIPO 7100 # Extract the first word of "lipo", so it can be a program name with args. 7101set dummy lipo; ac_word=$2 7102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7103$as_echo_n "checking for $ac_word... " >&6; } 7104if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7105 $as_echo_n "(cached) " >&6 7106else 7107 if test -n "$ac_ct_LIPO"; then 7108 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7109else 7110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7111for as_dir in $PATH 7112do 7113 IFS=$as_save_IFS 7114 test -z "$as_dir" && as_dir=. 7115 for ac_exec_ext in '' $ac_executable_extensions; do 7116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7117 ac_cv_prog_ac_ct_LIPO="lipo" 7118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7119 break 2 7120 fi 7121done 7122 done 7123IFS=$as_save_IFS 7124 7125fi 7126fi 7127ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7128if test -n "$ac_ct_LIPO"; then 7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7130$as_echo "$ac_ct_LIPO" >&6; } 7131else 7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7133$as_echo "no" >&6; } 7134fi 7135 7136 if test "x$ac_ct_LIPO" = x; then 7137 LIPO=":" 7138 else 7139 case $cross_compiling:$ac_tool_warned in 7140yes:) 7141{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7142$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7143ac_tool_warned=yes ;; 7144esac 7145 LIPO=$ac_ct_LIPO 7146 fi 7147else 7148 LIPO="$ac_cv_prog_LIPO" 7149fi 7150 7151 if test -n "$ac_tool_prefix"; then 7152 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7153set dummy ${ac_tool_prefix}otool; ac_word=$2 7154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7155$as_echo_n "checking for $ac_word... " >&6; } 7156if ${ac_cv_prog_OTOOL+:} false; then : 7157 $as_echo_n "(cached) " >&6 7158else 7159 if test -n "$OTOOL"; then 7160 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7161else 7162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7163for as_dir in $PATH 7164do 7165 IFS=$as_save_IFS 7166 test -z "$as_dir" && as_dir=. 7167 for ac_exec_ext in '' $ac_executable_extensions; do 7168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7169 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7171 break 2 7172 fi 7173done 7174 done 7175IFS=$as_save_IFS 7176 7177fi 7178fi 7179OTOOL=$ac_cv_prog_OTOOL 7180if test -n "$OTOOL"; then 7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7182$as_echo "$OTOOL" >&6; } 7183else 7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7185$as_echo "no" >&6; } 7186fi 7187 7188 7189fi 7190if test -z "$ac_cv_prog_OTOOL"; then 7191 ac_ct_OTOOL=$OTOOL 7192 # Extract the first word of "otool", so it can be a program name with args. 7193set dummy otool; ac_word=$2 7194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7195$as_echo_n "checking for $ac_word... " >&6; } 7196if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7197 $as_echo_n "(cached) " >&6 7198else 7199 if test -n "$ac_ct_OTOOL"; then 7200 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7201else 7202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7203for as_dir in $PATH 7204do 7205 IFS=$as_save_IFS 7206 test -z "$as_dir" && as_dir=. 7207 for ac_exec_ext in '' $ac_executable_extensions; do 7208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7209 ac_cv_prog_ac_ct_OTOOL="otool" 7210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7211 break 2 7212 fi 7213done 7214 done 7215IFS=$as_save_IFS 7216 7217fi 7218fi 7219ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7220if test -n "$ac_ct_OTOOL"; then 7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7222$as_echo "$ac_ct_OTOOL" >&6; } 7223else 7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7225$as_echo "no" >&6; } 7226fi 7227 7228 if test "x$ac_ct_OTOOL" = x; then 7229 OTOOL=":" 7230 else 7231 case $cross_compiling:$ac_tool_warned in 7232yes:) 7233{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7234$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7235ac_tool_warned=yes ;; 7236esac 7237 OTOOL=$ac_ct_OTOOL 7238 fi 7239else 7240 OTOOL="$ac_cv_prog_OTOOL" 7241fi 7242 7243 if test -n "$ac_tool_prefix"; then 7244 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7245set dummy ${ac_tool_prefix}otool64; ac_word=$2 7246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7247$as_echo_n "checking for $ac_word... " >&6; } 7248if ${ac_cv_prog_OTOOL64+:} false; then : 7249 $as_echo_n "(cached) " >&6 7250else 7251 if test -n "$OTOOL64"; then 7252 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7253else 7254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7255for as_dir in $PATH 7256do 7257 IFS=$as_save_IFS 7258 test -z "$as_dir" && as_dir=. 7259 for ac_exec_ext in '' $ac_executable_extensions; do 7260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7261 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7263 break 2 7264 fi 7265done 7266 done 7267IFS=$as_save_IFS 7268 7269fi 7270fi 7271OTOOL64=$ac_cv_prog_OTOOL64 7272if test -n "$OTOOL64"; then 7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7274$as_echo "$OTOOL64" >&6; } 7275else 7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7277$as_echo "no" >&6; } 7278fi 7279 7280 7281fi 7282if test -z "$ac_cv_prog_OTOOL64"; then 7283 ac_ct_OTOOL64=$OTOOL64 7284 # Extract the first word of "otool64", so it can be a program name with args. 7285set dummy otool64; ac_word=$2 7286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7287$as_echo_n "checking for $ac_word... " >&6; } 7288if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7289 $as_echo_n "(cached) " >&6 7290else 7291 if test -n "$ac_ct_OTOOL64"; then 7292 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7293else 7294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7295for as_dir in $PATH 7296do 7297 IFS=$as_save_IFS 7298 test -z "$as_dir" && as_dir=. 7299 for ac_exec_ext in '' $ac_executable_extensions; do 7300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7301 ac_cv_prog_ac_ct_OTOOL64="otool64" 7302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7303 break 2 7304 fi 7305done 7306 done 7307IFS=$as_save_IFS 7308 7309fi 7310fi 7311ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7312if test -n "$ac_ct_OTOOL64"; then 7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7314$as_echo "$ac_ct_OTOOL64" >&6; } 7315else 7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7317$as_echo "no" >&6; } 7318fi 7319 7320 if test "x$ac_ct_OTOOL64" = x; then 7321 OTOOL64=":" 7322 else 7323 case $cross_compiling:$ac_tool_warned in 7324yes:) 7325{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7326$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7327ac_tool_warned=yes ;; 7328esac 7329 OTOOL64=$ac_ct_OTOOL64 7330 fi 7331else 7332 OTOOL64="$ac_cv_prog_OTOOL64" 7333fi 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7362$as_echo_n "checking for -single_module linker flag... " >&6; } 7363if ${lt_cv_apple_cc_single_mod+:} false; then : 7364 $as_echo_n "(cached) " >&6 7365else 7366 lt_cv_apple_cc_single_mod=no 7367 if test -z "$LT_MULTI_MODULE"; then 7368 # By default we will add the -single_module flag. You can override 7369 # by either setting the environment variable LT_MULTI_MODULE 7370 # non-empty at configure time, or by adding -multi_module to the 7371 # link flags. 7372 rm -rf libconftest.dylib* 7373 echo "int foo(void){return 1;}" > conftest.c 7374 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7375-dynamiclib -Wl,-single_module conftest.c" >&5 7376 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7377 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7378 _lt_result=$? 7379 # If there is a non-empty error log, and "single_module" 7380 # appears in it, assume the flag caused a linker warning 7381 if test -s conftest.err && $GREP single_module conftest.err; then 7382 cat conftest.err >&5 7383 # Otherwise, if the output was created with a 0 exit code from 7384 # the compiler, it worked. 7385 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7386 lt_cv_apple_cc_single_mod=yes 7387 else 7388 cat conftest.err >&5 7389 fi 7390 rm -rf libconftest.dylib* 7391 rm -f conftest.* 7392 fi 7393fi 7394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7395$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7396 7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7398$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7399if ${lt_cv_ld_exported_symbols_list+:} false; then : 7400 $as_echo_n "(cached) " >&6 7401else 7402 lt_cv_ld_exported_symbols_list=no 7403 save_LDFLAGS=$LDFLAGS 7404 echo "_main" > conftest.sym 7405 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7407/* end confdefs.h. */ 7408 7409int 7410main () 7411{ 7412 7413 ; 7414 return 0; 7415} 7416_ACEOF 7417if ac_fn_c_try_link "$LINENO"; then : 7418 lt_cv_ld_exported_symbols_list=yes 7419else 7420 lt_cv_ld_exported_symbols_list=no 7421fi 7422rm -f core conftest.err conftest.$ac_objext \ 7423 conftest$ac_exeext conftest.$ac_ext 7424 LDFLAGS=$save_LDFLAGS 7425 7426fi 7427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7428$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7429 7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7431$as_echo_n "checking for -force_load linker flag... " >&6; } 7432if ${lt_cv_ld_force_load+:} false; then : 7433 $as_echo_n "(cached) " >&6 7434else 7435 lt_cv_ld_force_load=no 7436 cat > conftest.c << _LT_EOF 7437int forced_loaded() { return 2;} 7438_LT_EOF 7439 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7440 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7441 echo "$AR cru libconftest.a conftest.o" >&5 7442 $AR cru libconftest.a conftest.o 2>&5 7443 echo "$RANLIB libconftest.a" >&5 7444 $RANLIB libconftest.a 2>&5 7445 cat > conftest.c << _LT_EOF 7446int main() { return 0;} 7447_LT_EOF 7448 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7449 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7450 _lt_result=$? 7451 if test -s conftest.err && $GREP force_load conftest.err; then 7452 cat conftest.err >&5 7453 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7454 lt_cv_ld_force_load=yes 7455 else 7456 cat conftest.err >&5 7457 fi 7458 rm -f conftest.err libconftest.a conftest conftest.c 7459 rm -rf conftest.dSYM 7460 7461fi 7462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7463$as_echo "$lt_cv_ld_force_load" >&6; } 7464 case $host_os in 7465 rhapsody* | darwin1.[012]) 7466 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7467 darwin1.*) 7468 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7469 darwin*) # darwin 5.x on 7470 # if running on 10.5 or later, the deployment target defaults 7471 # to the OS version, if on x86, and 10.4, the deployment 7472 # target defaults to 10.4. Don't you love it? 7473 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7474 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7475 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7476 10.[012][,.]*) 7477 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7478 10.*) 7479 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7480 esac 7481 ;; 7482 esac 7483 if test yes = "$lt_cv_apple_cc_single_mod"; then 7484 _lt_dar_single_mod='$single_module' 7485 fi 7486 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7487 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7488 else 7489 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7490 fi 7491 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7492 _lt_dsymutil='~$DSYMUTIL $lib || :' 7493 else 7494 _lt_dsymutil= 7495 fi 7496 ;; 7497 esac 7498 7499# func_munge_path_list VARIABLE PATH 7500# ----------------------------------- 7501# VARIABLE is name of variable containing _space_ separated list of 7502# directories to be munged by the contents of PATH, which is string 7503# having a format: 7504# "DIR[:DIR]:" 7505# string "DIR[ DIR]" will be prepended to VARIABLE 7506# ":DIR[:DIR]" 7507# string "DIR[ DIR]" will be appended to VARIABLE 7508# "DIRP[:DIRP]::[DIRA:]DIRA" 7509# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7510# "DIRA[ DIRA]" will be appended to VARIABLE 7511# "DIR[:DIR]" 7512# VARIABLE will be replaced by "DIR[ DIR]" 7513func_munge_path_list () 7514{ 7515 case x$2 in 7516 x) 7517 ;; 7518 *:) 7519 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7520 ;; 7521 x:*) 7522 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7523 ;; 7524 *::*) 7525 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7526 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7527 ;; 7528 *) 7529 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7530 ;; 7531 esac 7532} 7533 7534ac_ext=c 7535ac_cpp='$CPP $CPPFLAGS' 7536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7538ac_compiler_gnu=$ac_cv_c_compiler_gnu 7539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7540$as_echo_n "checking how to run the C preprocessor... " >&6; } 7541# On Suns, sometimes $CPP names a directory. 7542if test -n "$CPP" && test -d "$CPP"; then 7543 CPP= 7544fi 7545if test -z "$CPP"; then 7546 if ${ac_cv_prog_CPP+:} false; then : 7547 $as_echo_n "(cached) " >&6 7548else 7549 # Double quotes because CPP needs to be expanded 7550 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7551 do 7552 ac_preproc_ok=false 7553for ac_c_preproc_warn_flag in '' yes 7554do 7555 # Use a header file that comes with gcc, so configuring glibc 7556 # with a fresh cross-compiler works. 7557 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7558 # <limits.h> exists even on freestanding compilers. 7559 # On the NeXT, cc -E runs the code through the compiler's parser, 7560 # not just through cpp. "Syntax error" is here to catch this case. 7561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7562/* end confdefs.h. */ 7563#ifdef __STDC__ 7564# include <limits.h> 7565#else 7566# include <assert.h> 7567#endif 7568 Syntax error 7569_ACEOF 7570if ac_fn_c_try_cpp "$LINENO"; then : 7571 7572else 7573 # Broken: fails on valid input. 7574continue 7575fi 7576rm -f conftest.err conftest.i conftest.$ac_ext 7577 7578 # OK, works on sane cases. Now check whether nonexistent headers 7579 # can be detected and how. 7580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7581/* end confdefs.h. */ 7582#include <ac_nonexistent.h> 7583_ACEOF 7584if ac_fn_c_try_cpp "$LINENO"; then : 7585 # Broken: success on invalid input. 7586continue 7587else 7588 # Passes both tests. 7589ac_preproc_ok=: 7590break 7591fi 7592rm -f conftest.err conftest.i conftest.$ac_ext 7593 7594done 7595# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7596rm -f conftest.i conftest.err conftest.$ac_ext 7597if $ac_preproc_ok; then : 7598 break 7599fi 7600 7601 done 7602 ac_cv_prog_CPP=$CPP 7603 7604fi 7605 CPP=$ac_cv_prog_CPP 7606else 7607 ac_cv_prog_CPP=$CPP 7608fi 7609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7610$as_echo "$CPP" >&6; } 7611ac_preproc_ok=false 7612for ac_c_preproc_warn_flag in '' yes 7613do 7614 # Use a header file that comes with gcc, so configuring glibc 7615 # with a fresh cross-compiler works. 7616 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7617 # <limits.h> exists even on freestanding compilers. 7618 # On the NeXT, cc -E runs the code through the compiler's parser, 7619 # not just through cpp. "Syntax error" is here to catch this case. 7620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7621/* end confdefs.h. */ 7622#ifdef __STDC__ 7623# include <limits.h> 7624#else 7625# include <assert.h> 7626#endif 7627 Syntax error 7628_ACEOF 7629if ac_fn_c_try_cpp "$LINENO"; then : 7630 7631else 7632 # Broken: fails on valid input. 7633continue 7634fi 7635rm -f conftest.err conftest.i conftest.$ac_ext 7636 7637 # OK, works on sane cases. Now check whether nonexistent headers 7638 # can be detected and how. 7639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7640/* end confdefs.h. */ 7641#include <ac_nonexistent.h> 7642_ACEOF 7643if ac_fn_c_try_cpp "$LINENO"; then : 7644 # Broken: success on invalid input. 7645continue 7646else 7647 # Passes both tests. 7648ac_preproc_ok=: 7649break 7650fi 7651rm -f conftest.err conftest.i conftest.$ac_ext 7652 7653done 7654# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7655rm -f conftest.i conftest.err conftest.$ac_ext 7656if $ac_preproc_ok; then : 7657 7658else 7659 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7660$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7661as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7662See \`config.log' for more details" "$LINENO" 5; } 7663fi 7664 7665ac_ext=c 7666ac_cpp='$CPP $CPPFLAGS' 7667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7669ac_compiler_gnu=$ac_cv_c_compiler_gnu 7670 7671 7672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7673$as_echo_n "checking for ANSI C header files... " >&6; } 7674if ${ac_cv_header_stdc+:} false; then : 7675 $as_echo_n "(cached) " >&6 7676else 7677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7678/* end confdefs.h. */ 7679#include <stdlib.h> 7680#include <stdarg.h> 7681#include <string.h> 7682#include <float.h> 7683 7684int 7685main () 7686{ 7687 7688 ; 7689 return 0; 7690} 7691_ACEOF 7692if ac_fn_c_try_compile "$LINENO"; then : 7693 ac_cv_header_stdc=yes 7694else 7695 ac_cv_header_stdc=no 7696fi 7697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7698 7699if test $ac_cv_header_stdc = yes; then 7700 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7702/* end confdefs.h. */ 7703#include <string.h> 7704 7705_ACEOF 7706if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7707 $EGREP "memchr" >/dev/null 2>&1; then : 7708 7709else 7710 ac_cv_header_stdc=no 7711fi 7712rm -f conftest* 7713 7714fi 7715 7716if test $ac_cv_header_stdc = yes; then 7717 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7719/* end confdefs.h. */ 7720#include <stdlib.h> 7721 7722_ACEOF 7723if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7724 $EGREP "free" >/dev/null 2>&1; then : 7725 7726else 7727 ac_cv_header_stdc=no 7728fi 7729rm -f conftest* 7730 7731fi 7732 7733if test $ac_cv_header_stdc = yes; then 7734 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7735 if test "$cross_compiling" = yes; then : 7736 : 7737else 7738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7739/* end confdefs.h. */ 7740#include <ctype.h> 7741#include <stdlib.h> 7742#if ((' ' & 0x0FF) == 0x020) 7743# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7744# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7745#else 7746# define ISLOWER(c) \ 7747 (('a' <= (c) && (c) <= 'i') \ 7748 || ('j' <= (c) && (c) <= 'r') \ 7749 || ('s' <= (c) && (c) <= 'z')) 7750# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7751#endif 7752 7753#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7754int 7755main () 7756{ 7757 int i; 7758 for (i = 0; i < 256; i++) 7759 if (XOR (islower (i), ISLOWER (i)) 7760 || toupper (i) != TOUPPER (i)) 7761 return 2; 7762 return 0; 7763} 7764_ACEOF 7765if ac_fn_c_try_run "$LINENO"; then : 7766 7767else 7768 ac_cv_header_stdc=no 7769fi 7770rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7771 conftest.$ac_objext conftest.beam conftest.$ac_ext 7772fi 7773 7774fi 7775fi 7776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7777$as_echo "$ac_cv_header_stdc" >&6; } 7778if test $ac_cv_header_stdc = yes; then 7779 7780$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7781 7782fi 7783 7784# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7785for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7786 inttypes.h stdint.h unistd.h 7787do : 7788 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7789ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7790" 7791if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7792 cat >>confdefs.h <<_ACEOF 7793#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7794_ACEOF 7795 7796fi 7797 7798done 7799 7800 7801for ac_header in dlfcn.h 7802do : 7803 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7804" 7805if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7806 cat >>confdefs.h <<_ACEOF 7807#define HAVE_DLFCN_H 1 7808_ACEOF 7809 7810fi 7811 7812done 7813 7814 7815 7816 7817 7818# Set options 7819 7820 7821 7822 enable_dlopen=no 7823 7824 7825 enable_win32_dll=no 7826 7827 7828 # Check whether --enable-shared was given. 7829if test "${enable_shared+set}" = set; then : 7830 enableval=$enable_shared; p=${PACKAGE-default} 7831 case $enableval in 7832 yes) enable_shared=yes ;; 7833 no) enable_shared=no ;; 7834 *) 7835 enable_shared=no 7836 # Look at the argument we got. We use all the common list separators. 7837 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7838 for pkg in $enableval; do 7839 IFS=$lt_save_ifs 7840 if test "X$pkg" = "X$p"; then 7841 enable_shared=yes 7842 fi 7843 done 7844 IFS=$lt_save_ifs 7845 ;; 7846 esac 7847else 7848 enable_shared=yes 7849fi 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 # Check whether --enable-static was given. 7860if test "${enable_static+set}" = set; then : 7861 enableval=$enable_static; p=${PACKAGE-default} 7862 case $enableval in 7863 yes) enable_static=yes ;; 7864 no) enable_static=no ;; 7865 *) 7866 enable_static=no 7867 # Look at the argument we got. We use all the common list separators. 7868 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7869 for pkg in $enableval; do 7870 IFS=$lt_save_ifs 7871 if test "X$pkg" = "X$p"; then 7872 enable_static=yes 7873 fi 7874 done 7875 IFS=$lt_save_ifs 7876 ;; 7877 esac 7878else 7879 enable_static=yes 7880fi 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891# Check whether --with-pic was given. 7892if test "${with_pic+set}" = set; then : 7893 withval=$with_pic; lt_p=${PACKAGE-default} 7894 case $withval in 7895 yes|no) pic_mode=$withval ;; 7896 *) 7897 pic_mode=default 7898 # Look at the argument we got. We use all the common list separators. 7899 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7900 for lt_pkg in $withval; do 7901 IFS=$lt_save_ifs 7902 if test "X$lt_pkg" = "X$lt_p"; then 7903 pic_mode=yes 7904 fi 7905 done 7906 IFS=$lt_save_ifs 7907 ;; 7908 esac 7909else 7910 pic_mode=default 7911fi 7912 7913 7914 7915 7916 7917 7918 7919 7920 # Check whether --enable-fast-install was given. 7921if test "${enable_fast_install+set}" = set; then : 7922 enableval=$enable_fast_install; p=${PACKAGE-default} 7923 case $enableval in 7924 yes) enable_fast_install=yes ;; 7925 no) enable_fast_install=no ;; 7926 *) 7927 enable_fast_install=no 7928 # Look at the argument we got. We use all the common list separators. 7929 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7930 for pkg in $enableval; do 7931 IFS=$lt_save_ifs 7932 if test "X$pkg" = "X$p"; then 7933 enable_fast_install=yes 7934 fi 7935 done 7936 IFS=$lt_save_ifs 7937 ;; 7938 esac 7939else 7940 enable_fast_install=yes 7941fi 7942 7943 7944 7945 7946 7947 7948 7949 7950 shared_archive_member_spec= 7951case $host,$enable_shared in 7952power*-*-aix[5-9]*,yes) 7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 7954$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 7955 7956# Check whether --with-aix-soname was given. 7957if test "${with_aix_soname+set}" = set; then : 7958 withval=$with_aix_soname; case $withval in 7959 aix|svr4|both) 7960 ;; 7961 *) 7962 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 7963 ;; 7964 esac 7965 lt_cv_with_aix_soname=$with_aix_soname 7966else 7967 if ${lt_cv_with_aix_soname+:} false; then : 7968 $as_echo_n "(cached) " >&6 7969else 7970 lt_cv_with_aix_soname=aix 7971fi 7972 7973 with_aix_soname=$lt_cv_with_aix_soname 7974fi 7975 7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 7977$as_echo "$with_aix_soname" >&6; } 7978 if test aix != "$with_aix_soname"; then 7979 # For the AIX way of multilib, we name the shared archive member 7980 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 7981 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 7982 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 7983 # the AIX toolchain works better with OBJECT_MODE set (default 32). 7984 if test 64 = "${OBJECT_MODE-32}"; then 7985 shared_archive_member_spec=shr_64 7986 else 7987 shared_archive_member_spec=shr 7988 fi 7989 fi 7990 ;; 7991*) 7992 with_aix_soname=aix 7993 ;; 7994esac 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005# This can be used to rebuild libtool when needed 8006LIBTOOL_DEPS=$ltmain 8007 8008# Always use our own libtool. 8009LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040test -z "$LN_S" && LN_S="ln -s" 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055if test -n "${ZSH_VERSION+set}"; then 8056 setopt NO_GLOB_SUBST 8057fi 8058 8059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8060$as_echo_n "checking for objdir... " >&6; } 8061if ${lt_cv_objdir+:} false; then : 8062 $as_echo_n "(cached) " >&6 8063else 8064 rm -f .libs 2>/dev/null 8065mkdir .libs 2>/dev/null 8066if test -d .libs; then 8067 lt_cv_objdir=.libs 8068else 8069 # MS-DOS does not allow filenames that begin with a dot. 8070 lt_cv_objdir=_libs 8071fi 8072rmdir .libs 2>/dev/null 8073fi 8074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8075$as_echo "$lt_cv_objdir" >&6; } 8076objdir=$lt_cv_objdir 8077 8078 8079 8080 8081 8082cat >>confdefs.h <<_ACEOF 8083#define LT_OBJDIR "$lt_cv_objdir/" 8084_ACEOF 8085 8086 8087 8088 8089case $host_os in 8090aix3*) 8091 # AIX sometimes has problems with the GCC collect2 program. For some 8092 # reason, if we set the COLLECT_NAMES environment variable, the problems 8093 # vanish in a puff of smoke. 8094 if test set != "${COLLECT_NAMES+set}"; then 8095 COLLECT_NAMES= 8096 export COLLECT_NAMES 8097 fi 8098 ;; 8099esac 8100 8101# Global variables: 8102ofile=libtool 8103can_build_shared=yes 8104 8105# All known linkers require a '.a' archive for static linking (except MSVC, 8106# which needs '.lib'). 8107libext=a 8108 8109with_gnu_ld=$lt_cv_prog_gnu_ld 8110 8111old_CC=$CC 8112old_CFLAGS=$CFLAGS 8113 8114# Set sane defaults for various variables 8115test -z "$CC" && CC=cc 8116test -z "$LTCC" && LTCC=$CC 8117test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8118test -z "$LD" && LD=ld 8119test -z "$ac_objext" && ac_objext=o 8120 8121func_cc_basename $compiler 8122cc_basename=$func_cc_basename_result 8123 8124 8125# Only perform the check for file, if the check method requires it 8126test -z "$MAGIC_CMD" && MAGIC_CMD=file 8127case $deplibs_check_method in 8128file_magic*) 8129 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8131$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8132if ${lt_cv_path_MAGIC_CMD+:} false; then : 8133 $as_echo_n "(cached) " >&6 8134else 8135 case $MAGIC_CMD in 8136[\\/*] | ?:[\\/]*) 8137 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8138 ;; 8139*) 8140 lt_save_MAGIC_CMD=$MAGIC_CMD 8141 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8142 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8143 for ac_dir in $ac_dummy; do 8144 IFS=$lt_save_ifs 8145 test -z "$ac_dir" && ac_dir=. 8146 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8147 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8148 if test -n "$file_magic_test_file"; then 8149 case $deplibs_check_method in 8150 "file_magic "*) 8151 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8152 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8153 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8154 $EGREP "$file_magic_regex" > /dev/null; then 8155 : 8156 else 8157 cat <<_LT_EOF 1>&2 8158 8159*** Warning: the command libtool uses to detect shared libraries, 8160*** $file_magic_cmd, produces output that libtool cannot recognize. 8161*** The result is that libtool may fail to recognize shared libraries 8162*** as such. This will affect the creation of libtool libraries that 8163*** depend on shared libraries, but programs linked with such libtool 8164*** libraries will work regardless of this problem. Nevertheless, you 8165*** may want to report the problem to your system manager and/or to 8166*** bug-libtool@gnu.org 8167 8168_LT_EOF 8169 fi ;; 8170 esac 8171 fi 8172 break 8173 fi 8174 done 8175 IFS=$lt_save_ifs 8176 MAGIC_CMD=$lt_save_MAGIC_CMD 8177 ;; 8178esac 8179fi 8180 8181MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8182if test -n "$MAGIC_CMD"; then 8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8184$as_echo "$MAGIC_CMD" >&6; } 8185else 8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8187$as_echo "no" >&6; } 8188fi 8189 8190 8191 8192 8193 8194if test -z "$lt_cv_path_MAGIC_CMD"; then 8195 if test -n "$ac_tool_prefix"; then 8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8197$as_echo_n "checking for file... " >&6; } 8198if ${lt_cv_path_MAGIC_CMD+:} false; then : 8199 $as_echo_n "(cached) " >&6 8200else 8201 case $MAGIC_CMD in 8202[\\/*] | ?:[\\/]*) 8203 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8204 ;; 8205*) 8206 lt_save_MAGIC_CMD=$MAGIC_CMD 8207 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8208 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8209 for ac_dir in $ac_dummy; do 8210 IFS=$lt_save_ifs 8211 test -z "$ac_dir" && ac_dir=. 8212 if test -f "$ac_dir/file"; then 8213 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8214 if test -n "$file_magic_test_file"; then 8215 case $deplibs_check_method in 8216 "file_magic "*) 8217 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8218 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8219 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8220 $EGREP "$file_magic_regex" > /dev/null; then 8221 : 8222 else 8223 cat <<_LT_EOF 1>&2 8224 8225*** Warning: the command libtool uses to detect shared libraries, 8226*** $file_magic_cmd, produces output that libtool cannot recognize. 8227*** The result is that libtool may fail to recognize shared libraries 8228*** as such. This will affect the creation of libtool libraries that 8229*** depend on shared libraries, but programs linked with such libtool 8230*** libraries will work regardless of this problem. Nevertheless, you 8231*** may want to report the problem to your system manager and/or to 8232*** bug-libtool@gnu.org 8233 8234_LT_EOF 8235 fi ;; 8236 esac 8237 fi 8238 break 8239 fi 8240 done 8241 IFS=$lt_save_ifs 8242 MAGIC_CMD=$lt_save_MAGIC_CMD 8243 ;; 8244esac 8245fi 8246 8247MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8248if test -n "$MAGIC_CMD"; then 8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8250$as_echo "$MAGIC_CMD" >&6; } 8251else 8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8253$as_echo "no" >&6; } 8254fi 8255 8256 8257 else 8258 MAGIC_CMD=: 8259 fi 8260fi 8261 8262 fi 8263 ;; 8264esac 8265 8266# Use C for the default configuration in the libtool script 8267 8268lt_save_CC=$CC 8269ac_ext=c 8270ac_cpp='$CPP $CPPFLAGS' 8271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8273ac_compiler_gnu=$ac_cv_c_compiler_gnu 8274 8275 8276# Source file extension for C test sources. 8277ac_ext=c 8278 8279# Object file extension for compiled C test sources. 8280objext=o 8281objext=$objext 8282 8283# Code to be used in simple compile tests 8284lt_simple_compile_test_code="int some_variable = 0;" 8285 8286# Code to be used in simple link tests 8287lt_simple_link_test_code='int main(){return(0);}' 8288 8289 8290 8291 8292 8293 8294 8295# If no C compiler was specified, use CC. 8296LTCC=${LTCC-"$CC"} 8297 8298# If no C compiler flags were specified, use CFLAGS. 8299LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8300 8301# Allow CC to be a program name with arguments. 8302compiler=$CC 8303 8304# Save the default compiler, since it gets overwritten when the other 8305# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8306compiler_DEFAULT=$CC 8307 8308# save warnings/boilerplate of simple test code 8309ac_outfile=conftest.$ac_objext 8310echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8311eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8312_lt_compiler_boilerplate=`cat conftest.err` 8313$RM conftest* 8314 8315ac_outfile=conftest.$ac_objext 8316echo "$lt_simple_link_test_code" >conftest.$ac_ext 8317eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8318_lt_linker_boilerplate=`cat conftest.err` 8319$RM -r conftest* 8320 8321 8322if test -n "$compiler"; then 8323 8324lt_prog_compiler_no_builtin_flag= 8325 8326if test yes = "$GCC"; then 8327 case $cc_basename in 8328 nvcc*) 8329 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8330 *) 8331 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8332 esac 8333 8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8335$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8336if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8337 $as_echo_n "(cached) " >&6 8338else 8339 lt_cv_prog_compiler_rtti_exceptions=no 8340 ac_outfile=conftest.$ac_objext 8341 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8342 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8343 # Insert the option either (1) after the last *FLAGS variable, or 8344 # (2) before a word containing "conftest.", or (3) at the end. 8345 # Note that $ac_compile itself does not contain backslashes and begins 8346 # with a dollar sign (not a hyphen), so the echo should work correctly. 8347 # The option is referenced via a variable to avoid confusing sed. 8348 lt_compile=`echo "$ac_compile" | $SED \ 8349 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8350 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8351 -e 's:$: $lt_compiler_flag:'` 8352 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8353 (eval "$lt_compile" 2>conftest.err) 8354 ac_status=$? 8355 cat conftest.err >&5 8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8357 if (exit $ac_status) && test -s "$ac_outfile"; then 8358 # The compiler can only warn and ignore the option if not recognized 8359 # So say no if there are warnings other than the usual output. 8360 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8361 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8362 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8363 lt_cv_prog_compiler_rtti_exceptions=yes 8364 fi 8365 fi 8366 $RM conftest* 8367 8368fi 8369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8370$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8371 8372if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8373 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8374else 8375 : 8376fi 8377 8378fi 8379 8380 8381 8382 8383 8384 8385 lt_prog_compiler_wl= 8386lt_prog_compiler_pic= 8387lt_prog_compiler_static= 8388 8389 8390 if test yes = "$GCC"; then 8391 lt_prog_compiler_wl='-Wl,' 8392 lt_prog_compiler_static='-static' 8393 8394 case $host_os in 8395 aix*) 8396 # All AIX code is PIC. 8397 if test ia64 = "$host_cpu"; then 8398 # AIX 5 now supports IA64 processor 8399 lt_prog_compiler_static='-Bstatic' 8400 fi 8401 lt_prog_compiler_pic='-fPIC' 8402 ;; 8403 8404 amigaos*) 8405 case $host_cpu in 8406 powerpc) 8407 # see comment about AmigaOS4 .so support 8408 lt_prog_compiler_pic='-fPIC' 8409 ;; 8410 m68k) 8411 # FIXME: we need at least 68020 code to build shared libraries, but 8412 # adding the '-m68020' flag to GCC prevents building anything better, 8413 # like '-m68040'. 8414 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8415 ;; 8416 esac 8417 ;; 8418 8419 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8420 # PIC is the default for these OSes. 8421 ;; 8422 8423 mingw* | cygwin* | pw32* | os2* | cegcc*) 8424 # This hack is so that the source file can tell whether it is being 8425 # built for inclusion in a dll (and should export symbols for example). 8426 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8427 # (--disable-auto-import) libraries 8428 lt_prog_compiler_pic='-DDLL_EXPORT' 8429 case $host_os in 8430 os2*) 8431 lt_prog_compiler_static='$wl-static' 8432 ;; 8433 esac 8434 ;; 8435 8436 darwin* | rhapsody*) 8437 # PIC is the default on this platform 8438 # Common symbols not allowed in MH_DYLIB files 8439 lt_prog_compiler_pic='-fno-common' 8440 ;; 8441 8442 haiku*) 8443 # PIC is the default for Haiku. 8444 # The "-static" flag exists, but is broken. 8445 lt_prog_compiler_static= 8446 ;; 8447 8448 hpux*) 8449 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8450 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8451 # sets the default TLS model and affects inlining. 8452 case $host_cpu in 8453 hppa*64*) 8454 # +Z the default 8455 ;; 8456 *) 8457 lt_prog_compiler_pic='-fPIC' 8458 ;; 8459 esac 8460 ;; 8461 8462 interix[3-9]*) 8463 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8464 # Instead, we relocate shared libraries at runtime. 8465 ;; 8466 8467 msdosdjgpp*) 8468 # Just because we use GCC doesn't mean we suddenly get shared libraries 8469 # on systems that don't support them. 8470 lt_prog_compiler_can_build_shared=no 8471 enable_shared=no 8472 ;; 8473 8474 *nto* | *qnx*) 8475 # QNX uses GNU C++, but need to define -shared option too, otherwise 8476 # it will coredump. 8477 lt_prog_compiler_pic='-fPIC -shared' 8478 ;; 8479 8480 sysv4*MP*) 8481 if test -d /usr/nec; then 8482 lt_prog_compiler_pic=-Kconform_pic 8483 fi 8484 ;; 8485 8486 *) 8487 lt_prog_compiler_pic='-fPIC' 8488 ;; 8489 esac 8490 8491 case $cc_basename in 8492 nvcc*) # Cuda Compiler Driver 2.2 8493 lt_prog_compiler_wl='-Xlinker ' 8494 if test -n "$lt_prog_compiler_pic"; then 8495 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8496 fi 8497 ;; 8498 esac 8499 else 8500 # PORTME Check for flag to pass linker flags through the system compiler. 8501 case $host_os in 8502 aix*) 8503 lt_prog_compiler_wl='-Wl,' 8504 if test ia64 = "$host_cpu"; then 8505 # AIX 5 now supports IA64 processor 8506 lt_prog_compiler_static='-Bstatic' 8507 else 8508 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8509 fi 8510 ;; 8511 8512 darwin* | rhapsody*) 8513 # PIC is the default on this platform 8514 # Common symbols not allowed in MH_DYLIB files 8515 lt_prog_compiler_pic='-fno-common' 8516 case $cc_basename in 8517 nagfor*) 8518 # NAG Fortran compiler 8519 lt_prog_compiler_wl='-Wl,-Wl,,' 8520 lt_prog_compiler_pic='-PIC' 8521 lt_prog_compiler_static='-Bstatic' 8522 ;; 8523 esac 8524 ;; 8525 8526 mingw* | cygwin* | pw32* | os2* | cegcc*) 8527 # This hack is so that the source file can tell whether it is being 8528 # built for inclusion in a dll (and should export symbols for example). 8529 lt_prog_compiler_pic='-DDLL_EXPORT' 8530 case $host_os in 8531 os2*) 8532 lt_prog_compiler_static='$wl-static' 8533 ;; 8534 esac 8535 ;; 8536 8537 hpux9* | hpux10* | hpux11*) 8538 lt_prog_compiler_wl='-Wl,' 8539 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8540 # not for PA HP-UX. 8541 case $host_cpu in 8542 hppa*64*|ia64*) 8543 # +Z the default 8544 ;; 8545 *) 8546 lt_prog_compiler_pic='+Z' 8547 ;; 8548 esac 8549 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8550 lt_prog_compiler_static='$wl-a ${wl}archive' 8551 ;; 8552 8553 irix5* | irix6* | nonstopux*) 8554 lt_prog_compiler_wl='-Wl,' 8555 # PIC (with -KPIC) is the default. 8556 lt_prog_compiler_static='-non_shared' 8557 ;; 8558 8559 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8560 case $cc_basename in 8561 # old Intel for x86_64, which still supported -KPIC. 8562 ecc*) 8563 lt_prog_compiler_wl='-Wl,' 8564 lt_prog_compiler_pic='-KPIC' 8565 lt_prog_compiler_static='-static' 8566 ;; 8567 # icc used to be incompatible with GCC. 8568 # ICC 10 doesn't accept -KPIC any more. 8569 icc* | ifort*) 8570 lt_prog_compiler_wl='-Wl,' 8571 lt_prog_compiler_pic='-fPIC' 8572 lt_prog_compiler_static='-static' 8573 ;; 8574 # Lahey Fortran 8.1. 8575 lf95*) 8576 lt_prog_compiler_wl='-Wl,' 8577 lt_prog_compiler_pic='--shared' 8578 lt_prog_compiler_static='--static' 8579 ;; 8580 nagfor*) 8581 # NAG Fortran compiler 8582 lt_prog_compiler_wl='-Wl,-Wl,,' 8583 lt_prog_compiler_pic='-PIC' 8584 lt_prog_compiler_static='-Bstatic' 8585 ;; 8586 tcc*) 8587 # Fabrice Bellard et al's Tiny C Compiler 8588 lt_prog_compiler_wl='-Wl,' 8589 lt_prog_compiler_pic='-fPIC' 8590 lt_prog_compiler_static='-static' 8591 ;; 8592 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8593 # Portland Group compilers (*not* the Pentium gcc compiler, 8594 # which looks to be a dead project) 8595 lt_prog_compiler_wl='-Wl,' 8596 lt_prog_compiler_pic='-fpic' 8597 lt_prog_compiler_static='-Bstatic' 8598 ;; 8599 ccc*) 8600 lt_prog_compiler_wl='-Wl,' 8601 # All Alpha code is PIC. 8602 lt_prog_compiler_static='-non_shared' 8603 ;; 8604 xl* | bgxl* | bgf* | mpixl*) 8605 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8606 lt_prog_compiler_wl='-Wl,' 8607 lt_prog_compiler_pic='-qpic' 8608 lt_prog_compiler_static='-qstaticlink' 8609 ;; 8610 *) 8611 case `$CC -V 2>&1 | sed 5q` in 8612 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8613 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8614 lt_prog_compiler_pic='-KPIC' 8615 lt_prog_compiler_static='-Bstatic' 8616 lt_prog_compiler_wl='' 8617 ;; 8618 *Sun\ F* | *Sun*Fortran*) 8619 lt_prog_compiler_pic='-KPIC' 8620 lt_prog_compiler_static='-Bstatic' 8621 lt_prog_compiler_wl='-Qoption ld ' 8622 ;; 8623 *Sun\ C*) 8624 # Sun C 5.9 8625 lt_prog_compiler_pic='-KPIC' 8626 lt_prog_compiler_static='-Bstatic' 8627 lt_prog_compiler_wl='-Wl,' 8628 ;; 8629 *Intel*\ [CF]*Compiler*) 8630 lt_prog_compiler_wl='-Wl,' 8631 lt_prog_compiler_pic='-fPIC' 8632 lt_prog_compiler_static='-static' 8633 ;; 8634 *Portland\ Group*) 8635 lt_prog_compiler_wl='-Wl,' 8636 lt_prog_compiler_pic='-fpic' 8637 lt_prog_compiler_static='-Bstatic' 8638 ;; 8639 esac 8640 ;; 8641 esac 8642 ;; 8643 8644 newsos6) 8645 lt_prog_compiler_pic='-KPIC' 8646 lt_prog_compiler_static='-Bstatic' 8647 ;; 8648 8649 *nto* | *qnx*) 8650 # QNX uses GNU C++, but need to define -shared option too, otherwise 8651 # it will coredump. 8652 lt_prog_compiler_pic='-fPIC -shared' 8653 ;; 8654 8655 osf3* | osf4* | osf5*) 8656 lt_prog_compiler_wl='-Wl,' 8657 # All OSF/1 code is PIC. 8658 lt_prog_compiler_static='-non_shared' 8659 ;; 8660 8661 rdos*) 8662 lt_prog_compiler_static='-non_shared' 8663 ;; 8664 8665 solaris*) 8666 lt_prog_compiler_pic='-KPIC' 8667 lt_prog_compiler_static='-Bstatic' 8668 case $cc_basename in 8669 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8670 lt_prog_compiler_wl='-Qoption ld ';; 8671 *) 8672 lt_prog_compiler_wl='-Wl,';; 8673 esac 8674 ;; 8675 8676 sunos4*) 8677 lt_prog_compiler_wl='-Qoption ld ' 8678 lt_prog_compiler_pic='-PIC' 8679 lt_prog_compiler_static='-Bstatic' 8680 ;; 8681 8682 sysv4 | sysv4.2uw2* | sysv4.3*) 8683 lt_prog_compiler_wl='-Wl,' 8684 lt_prog_compiler_pic='-KPIC' 8685 lt_prog_compiler_static='-Bstatic' 8686 ;; 8687 8688 sysv4*MP*) 8689 if test -d /usr/nec; then 8690 lt_prog_compiler_pic='-Kconform_pic' 8691 lt_prog_compiler_static='-Bstatic' 8692 fi 8693 ;; 8694 8695 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8696 lt_prog_compiler_wl='-Wl,' 8697 lt_prog_compiler_pic='-KPIC' 8698 lt_prog_compiler_static='-Bstatic' 8699 ;; 8700 8701 unicos*) 8702 lt_prog_compiler_wl='-Wl,' 8703 lt_prog_compiler_can_build_shared=no 8704 ;; 8705 8706 uts4*) 8707 lt_prog_compiler_pic='-pic' 8708 lt_prog_compiler_static='-Bstatic' 8709 ;; 8710 8711 *) 8712 lt_prog_compiler_can_build_shared=no 8713 ;; 8714 esac 8715 fi 8716 8717case $host_os in 8718 # For platforms that do not support PIC, -DPIC is meaningless: 8719 *djgpp*) 8720 lt_prog_compiler_pic= 8721 ;; 8722 *) 8723 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8724 ;; 8725esac 8726 8727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8728$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8729if ${lt_cv_prog_compiler_pic+:} false; then : 8730 $as_echo_n "(cached) " >&6 8731else 8732 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8733fi 8734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8735$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8736lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8737 8738# 8739# Check to make sure the PIC flag actually works. 8740# 8741if test -n "$lt_prog_compiler_pic"; then 8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8743$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8744if ${lt_cv_prog_compiler_pic_works+:} false; then : 8745 $as_echo_n "(cached) " >&6 8746else 8747 lt_cv_prog_compiler_pic_works=no 8748 ac_outfile=conftest.$ac_objext 8749 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8750 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8751 # Insert the option either (1) after the last *FLAGS variable, or 8752 # (2) before a word containing "conftest.", or (3) at the end. 8753 # Note that $ac_compile itself does not contain backslashes and begins 8754 # with a dollar sign (not a hyphen), so the echo should work correctly. 8755 # The option is referenced via a variable to avoid confusing sed. 8756 lt_compile=`echo "$ac_compile" | $SED \ 8757 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8758 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8759 -e 's:$: $lt_compiler_flag:'` 8760 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8761 (eval "$lt_compile" 2>conftest.err) 8762 ac_status=$? 8763 cat conftest.err >&5 8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8765 if (exit $ac_status) && test -s "$ac_outfile"; then 8766 # The compiler can only warn and ignore the option if not recognized 8767 # So say no if there are warnings other than the usual output. 8768 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8769 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8770 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8771 lt_cv_prog_compiler_pic_works=yes 8772 fi 8773 fi 8774 $RM conftest* 8775 8776fi 8777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8778$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8779 8780if test yes = "$lt_cv_prog_compiler_pic_works"; then 8781 case $lt_prog_compiler_pic in 8782 "" | " "*) ;; 8783 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8784 esac 8785else 8786 lt_prog_compiler_pic= 8787 lt_prog_compiler_can_build_shared=no 8788fi 8789 8790fi 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802# 8803# Check to make sure the static flag actually works. 8804# 8805wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8807$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8808if ${lt_cv_prog_compiler_static_works+:} false; then : 8809 $as_echo_n "(cached) " >&6 8810else 8811 lt_cv_prog_compiler_static_works=no 8812 save_LDFLAGS=$LDFLAGS 8813 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8814 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8815 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8816 # The linker can only warn and ignore the option if not recognized 8817 # So say no if there are warnings 8818 if test -s conftest.err; then 8819 # Append any errors to the config.log. 8820 cat conftest.err 1>&5 8821 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8822 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8823 if diff conftest.exp conftest.er2 >/dev/null; then 8824 lt_cv_prog_compiler_static_works=yes 8825 fi 8826 else 8827 lt_cv_prog_compiler_static_works=yes 8828 fi 8829 fi 8830 $RM -r conftest* 8831 LDFLAGS=$save_LDFLAGS 8832 8833fi 8834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8835$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8836 8837if test yes = "$lt_cv_prog_compiler_static_works"; then 8838 : 8839else 8840 lt_prog_compiler_static= 8841fi 8842 8843 8844 8845 8846 8847 8848 8849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8850$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8851if ${lt_cv_prog_compiler_c_o+:} false; then : 8852 $as_echo_n "(cached) " >&6 8853else 8854 lt_cv_prog_compiler_c_o=no 8855 $RM -r conftest 2>/dev/null 8856 mkdir conftest 8857 cd conftest 8858 mkdir out 8859 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8860 8861 lt_compiler_flag="-o out/conftest2.$ac_objext" 8862 # Insert the option either (1) after the last *FLAGS variable, or 8863 # (2) before a word containing "conftest.", or (3) at the end. 8864 # Note that $ac_compile itself does not contain backslashes and begins 8865 # with a dollar sign (not a hyphen), so the echo should work correctly. 8866 lt_compile=`echo "$ac_compile" | $SED \ 8867 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8868 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8869 -e 's:$: $lt_compiler_flag:'` 8870 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8871 (eval "$lt_compile" 2>out/conftest.err) 8872 ac_status=$? 8873 cat out/conftest.err >&5 8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8875 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8876 then 8877 # The compiler can only warn and ignore the option if not recognized 8878 # So say no if there are warnings 8879 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8880 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8881 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8882 lt_cv_prog_compiler_c_o=yes 8883 fi 8884 fi 8885 chmod u+w . 2>&5 8886 $RM conftest* 8887 # SGI C++ compiler will create directory out/ii_files/ for 8888 # template instantiation 8889 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8890 $RM out/* && rmdir out 8891 cd .. 8892 $RM -r conftest 8893 $RM conftest* 8894 8895fi 8896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8897$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8898 8899 8900 8901 8902 8903 8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8905$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8906if ${lt_cv_prog_compiler_c_o+:} false; then : 8907 $as_echo_n "(cached) " >&6 8908else 8909 lt_cv_prog_compiler_c_o=no 8910 $RM -r conftest 2>/dev/null 8911 mkdir conftest 8912 cd conftest 8913 mkdir out 8914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8915 8916 lt_compiler_flag="-o out/conftest2.$ac_objext" 8917 # Insert the option either (1) after the last *FLAGS variable, or 8918 # (2) before a word containing "conftest.", or (3) at the end. 8919 # Note that $ac_compile itself does not contain backslashes and begins 8920 # with a dollar sign (not a hyphen), so the echo should work correctly. 8921 lt_compile=`echo "$ac_compile" | $SED \ 8922 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8923 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8924 -e 's:$: $lt_compiler_flag:'` 8925 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8926 (eval "$lt_compile" 2>out/conftest.err) 8927 ac_status=$? 8928 cat out/conftest.err >&5 8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8930 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8931 then 8932 # The compiler can only warn and ignore the option if not recognized 8933 # So say no if there are warnings 8934 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8935 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8936 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8937 lt_cv_prog_compiler_c_o=yes 8938 fi 8939 fi 8940 chmod u+w . 2>&5 8941 $RM conftest* 8942 # SGI C++ compiler will create directory out/ii_files/ for 8943 # template instantiation 8944 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8945 $RM out/* && rmdir out 8946 cd .. 8947 $RM -r conftest 8948 $RM conftest* 8949 8950fi 8951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8952$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8953 8954 8955 8956 8957hard_links=nottested 8958if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 8959 # do not overwrite the value of need_locks provided by the user 8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8961$as_echo_n "checking if we can lock with hard links... " >&6; } 8962 hard_links=yes 8963 $RM conftest* 8964 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8965 touch conftest.a 8966 ln conftest.a conftest.b 2>&5 || hard_links=no 8967 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8969$as_echo "$hard_links" >&6; } 8970 if test no = "$hard_links"; then 8971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 8972$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 8973 need_locks=warn 8974 fi 8975else 8976 need_locks=no 8977fi 8978 8979 8980 8981 8982 8983 8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8985$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8986 8987 runpath_var= 8988 allow_undefined_flag= 8989 always_export_symbols=no 8990 archive_cmds= 8991 archive_expsym_cmds= 8992 compiler_needs_object=no 8993 enable_shared_with_static_runtimes=no 8994 export_dynamic_flag_spec= 8995 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8996 hardcode_automatic=no 8997 hardcode_direct=no 8998 hardcode_direct_absolute=no 8999 hardcode_libdir_flag_spec= 9000 hardcode_libdir_separator= 9001 hardcode_minus_L=no 9002 hardcode_shlibpath_var=unsupported 9003 inherit_rpath=no 9004 link_all_deplibs=unknown 9005 module_cmds= 9006 module_expsym_cmds= 9007 old_archive_from_new_cmds= 9008 old_archive_from_expsyms_cmds= 9009 thread_safe_flag_spec= 9010 whole_archive_flag_spec= 9011 # include_expsyms should be a list of space-separated symbols to be *always* 9012 # included in the symbol list 9013 include_expsyms= 9014 # exclude_expsyms can be an extended regexp of symbols to exclude 9015 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9016 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9017 # as well as any symbol that contains 'd'. 9018 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9019 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9020 # platforms (ab)use it in PIC code, but their linkers get confused if 9021 # the symbol is explicitly referenced. Since portable code cannot 9022 # rely on this symbol name, it's probably fine to never include it in 9023 # preloaded symbol tables. 9024 # Exclude shared library initialization/finalization symbols. 9025 extract_expsyms_cmds= 9026 9027 case $host_os in 9028 cygwin* | mingw* | pw32* | cegcc*) 9029 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9030 # When not using gcc, we currently assume that we are using 9031 # Microsoft Visual C++. 9032 if test yes != "$GCC"; then 9033 with_gnu_ld=no 9034 fi 9035 ;; 9036 interix*) 9037 # we just hope/assume this is gcc and not c89 (= MSVC++) 9038 with_gnu_ld=yes 9039 ;; 9040 openbsd* | bitrig*) 9041 with_gnu_ld=no 9042 ;; 9043 esac 9044 9045 ld_shlibs=yes 9046 9047 # On some targets, GNU ld is compatible enough with the native linker 9048 # that we're better off using the native interface for both. 9049 lt_use_gnu_ld_interface=no 9050 if test yes = "$with_gnu_ld"; then 9051 case $host_os in 9052 aix*) 9053 # The AIX port of GNU ld has always aspired to compatibility 9054 # with the native linker. However, as the warning in the GNU ld 9055 # block says, versions before 2.19.5* couldn't really create working 9056 # shared libraries, regardless of the interface used. 9057 case `$LD -v 2>&1` in 9058 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9059 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9060 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9061 *) 9062 lt_use_gnu_ld_interface=yes 9063 ;; 9064 esac 9065 ;; 9066 *) 9067 lt_use_gnu_ld_interface=yes 9068 ;; 9069 esac 9070 fi 9071 9072 if test yes = "$lt_use_gnu_ld_interface"; then 9073 # If archive_cmds runs LD, not CC, wlarc should be empty 9074 wlarc='$wl' 9075 9076 # Set some defaults for GNU ld with shared library support. These 9077 # are reset later if shared libraries are not supported. Putting them 9078 # here allows them to be overridden if necessary. 9079 runpath_var=LD_RUN_PATH 9080 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9081 export_dynamic_flag_spec='$wl--export-dynamic' 9082 # ancient GNU ld didn't support --whole-archive et. al. 9083 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9084 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9085 else 9086 whole_archive_flag_spec= 9087 fi 9088 supports_anon_versioning=no 9089 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9090 *GNU\ gold*) supports_anon_versioning=yes ;; 9091 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9092 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9093 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9094 *\ 2.11.*) ;; # other 2.11 versions 9095 *) supports_anon_versioning=yes ;; 9096 esac 9097 9098 # See if GNU ld supports shared libraries. 9099 case $host_os in 9100 aix[3-9]*) 9101 # On AIX/PPC, the GNU linker is very broken 9102 if test ia64 != "$host_cpu"; then 9103 ld_shlibs=no 9104 cat <<_LT_EOF 1>&2 9105 9106*** Warning: the GNU linker, at least up to release 2.19, is reported 9107*** to be unable to reliably create shared libraries on AIX. 9108*** Therefore, libtool is disabling shared libraries support. If you 9109*** really care for shared libraries, you may want to install binutils 9110*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9111*** You will then need to restart the configuration process. 9112 9113_LT_EOF 9114 fi 9115 ;; 9116 9117 amigaos*) 9118 case $host_cpu in 9119 powerpc) 9120 # see comment about AmigaOS4 .so support 9121 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9122 archive_expsym_cmds='' 9123 ;; 9124 m68k) 9125 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)' 9126 hardcode_libdir_flag_spec='-L$libdir' 9127 hardcode_minus_L=yes 9128 ;; 9129 esac 9130 ;; 9131 9132 beos*) 9133 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9134 allow_undefined_flag=unsupported 9135 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9136 # support --undefined. This deserves some investigation. FIXME 9137 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9138 else 9139 ld_shlibs=no 9140 fi 9141 ;; 9142 9143 cygwin* | mingw* | pw32* | cegcc*) 9144 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9145 # as there is no search path for DLLs. 9146 hardcode_libdir_flag_spec='-L$libdir' 9147 export_dynamic_flag_spec='$wl--export-all-symbols' 9148 allow_undefined_flag=unsupported 9149 always_export_symbols=no 9150 enable_shared_with_static_runtimes=yes 9151 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' 9152 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9153 9154 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9155 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9156 # If the export-symbols file already is a .def file, use it as 9157 # is; otherwise, prepend EXPORTS... 9158 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9159 cp $export_symbols $output_objdir/$soname.def; 9160 else 9161 echo EXPORTS > $output_objdir/$soname.def; 9162 cat $export_symbols >> $output_objdir/$soname.def; 9163 fi~ 9164 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9165 else 9166 ld_shlibs=no 9167 fi 9168 ;; 9169 9170 haiku*) 9171 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9172 link_all_deplibs=yes 9173 ;; 9174 9175 os2*) 9176 hardcode_libdir_flag_spec='-L$libdir' 9177 hardcode_minus_L=yes 9178 allow_undefined_flag=unsupported 9179 shrext_cmds=.dll 9180 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9181 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9182 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9183 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9184 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9185 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9186 emximp -o $lib $output_objdir/$libname.def' 9187 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9188 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9189 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9190 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9191 prefix_cmds="$SED"~ 9192 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9193 prefix_cmds="$prefix_cmds -e 1d"; 9194 fi~ 9195 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9196 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9197 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9198 emximp -o $lib $output_objdir/$libname.def' 9199 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9200 enable_shared_with_static_runtimes=yes 9201 ;; 9202 9203 interix[3-9]*) 9204 hardcode_direct=no 9205 hardcode_shlibpath_var=no 9206 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9207 export_dynamic_flag_spec='$wl-E' 9208 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9209 # Instead, shared libraries are loaded at an image base (0x10000000 by 9210 # default) and relocated if they conflict, which is a slow very memory 9211 # consuming and fragmenting process. To avoid this, we pick a random, 9212 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9213 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9214 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9215 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' 9216 ;; 9217 9218 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9219 tmp_diet=no 9220 if test linux-dietlibc = "$host_os"; then 9221 case $cc_basename in 9222 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9223 esac 9224 fi 9225 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9226 && test no = "$tmp_diet" 9227 then 9228 tmp_addflag=' $pic_flag' 9229 tmp_sharedflag='-shared' 9230 case $cc_basename,$host_cpu in 9231 pgcc*) # Portland Group C compiler 9232 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' 9233 tmp_addflag=' $pic_flag' 9234 ;; 9235 pgf77* | pgf90* | pgf95* | pgfortran*) 9236 # Portland Group f77 and f90 compilers 9237 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' 9238 tmp_addflag=' $pic_flag -Mnomain' ;; 9239 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9240 tmp_addflag=' -i_dynamic' ;; 9241 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9242 tmp_addflag=' -i_dynamic -nofor_main' ;; 9243 ifc* | ifort*) # Intel Fortran compiler 9244 tmp_addflag=' -nofor_main' ;; 9245 lf95*) # Lahey Fortran 8.1 9246 whole_archive_flag_spec= 9247 tmp_sharedflag='--shared' ;; 9248 nagfor*) # NAGFOR 5.3 9249 tmp_sharedflag='-Wl,-shared' ;; 9250 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9251 tmp_sharedflag='-qmkshrobj' 9252 tmp_addflag= ;; 9253 nvcc*) # Cuda Compiler Driver 2.2 9254 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' 9255 compiler_needs_object=yes 9256 ;; 9257 esac 9258 case `$CC -V 2>&1 | sed 5q` in 9259 *Sun\ C*) # Sun C 5.9 9260 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' 9261 compiler_needs_object=yes 9262 tmp_sharedflag='-G' ;; 9263 *Sun\ F*) # Sun Fortran 8.3 9264 tmp_sharedflag='-G' ;; 9265 esac 9266 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9267 9268 if test yes = "$supports_anon_versioning"; then 9269 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9270 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9271 echo "local: *; };" >> $output_objdir/$libname.ver~ 9272 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9273 fi 9274 9275 case $cc_basename in 9276 tcc*) 9277 export_dynamic_flag_spec='-rdynamic' 9278 ;; 9279 xlf* | bgf* | bgxlf* | mpixlf*) 9280 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9281 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9282 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9283 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9284 if test yes = "$supports_anon_versioning"; then 9285 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9286 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9287 echo "local: *; };" >> $output_objdir/$libname.ver~ 9288 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9289 fi 9290 ;; 9291 esac 9292 else 9293 ld_shlibs=no 9294 fi 9295 ;; 9296 9297 netbsd*) 9298 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9299 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9300 wlarc= 9301 else 9302 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9303 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9304 fi 9305 ;; 9306 9307 solaris*) 9308 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9309 ld_shlibs=no 9310 cat <<_LT_EOF 1>&2 9311 9312*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9313*** create shared libraries on Solaris systems. Therefore, libtool 9314*** is disabling shared libraries support. We urge you to upgrade GNU 9315*** binutils to release 2.9.1 or newer. Another option is to modify 9316*** your PATH or compiler configuration so that the native linker is 9317*** used, and then restart. 9318 9319_LT_EOF 9320 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9321 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9322 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9323 else 9324 ld_shlibs=no 9325 fi 9326 ;; 9327 9328 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9329 case `$LD -v 2>&1` in 9330 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9331 ld_shlibs=no 9332 cat <<_LT_EOF 1>&2 9333 9334*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9335*** reliably create shared libraries on SCO systems. Therefore, libtool 9336*** is disabling shared libraries support. We urge you to upgrade GNU 9337*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9338*** your PATH or compiler configuration so that the native linker is 9339*** used, and then restart. 9340 9341_LT_EOF 9342 ;; 9343 *) 9344 # For security reasons, it is highly recommended that you always 9345 # use absolute paths for naming shared libraries, and exclude the 9346 # DT_RUNPATH tag from executables and libraries. But doing so 9347 # requires that you compile everything twice, which is a pain. 9348 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9349 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9350 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9351 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9352 else 9353 ld_shlibs=no 9354 fi 9355 ;; 9356 esac 9357 ;; 9358 9359 sunos4*) 9360 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9361 wlarc= 9362 hardcode_direct=yes 9363 hardcode_shlibpath_var=no 9364 ;; 9365 9366 *) 9367 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9368 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9369 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9370 else 9371 ld_shlibs=no 9372 fi 9373 ;; 9374 esac 9375 9376 if test no = "$ld_shlibs"; then 9377 runpath_var= 9378 hardcode_libdir_flag_spec= 9379 export_dynamic_flag_spec= 9380 whole_archive_flag_spec= 9381 fi 9382 else 9383 # PORTME fill in a description of your system's linker (not GNU ld) 9384 case $host_os in 9385 aix3*) 9386 allow_undefined_flag=unsupported 9387 always_export_symbols=yes 9388 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' 9389 # Note: this linker hardcodes the directories in LIBPATH if there 9390 # are no directories specified by -L. 9391 hardcode_minus_L=yes 9392 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9393 # Neither direct hardcoding nor static linking is supported with a 9394 # broken collect2. 9395 hardcode_direct=unsupported 9396 fi 9397 ;; 9398 9399 aix[4-9]*) 9400 if test ia64 = "$host_cpu"; then 9401 # On IA64, the linker does run time linking by default, so we don't 9402 # have to do anything special. 9403 aix_use_runtimelinking=no 9404 exp_sym_flag='-Bexport' 9405 no_entry_flag= 9406 else 9407 # If we're using GNU nm, then we don't want the "-C" option. 9408 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9409 # Without the "-l" option, or with the "-B" option, AIX nm treats 9410 # weak defined symbols like other global defined symbols, whereas 9411 # GNU nm marks them as "W". 9412 # While the 'weak' keyword is ignored in the Export File, we need 9413 # it in the Import File for the 'aix-soname' feature, so we have 9414 # to replace the "-B" option with "-P" for AIX nm. 9415 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9416 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 9417 else 9418 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 9419 fi 9420 aix_use_runtimelinking=no 9421 9422 # Test if we are trying to use run time linking or normal 9423 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9424 # have runtime linking enabled, and use it for executables. 9425 # For shared libraries, we enable/disable runtime linking 9426 # depending on the kind of the shared library created - 9427 # when "with_aix_soname,aix_use_runtimelinking" is: 9428 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9429 # "aix,yes" lib.so shared, rtl:yes, for executables 9430 # lib.a static archive 9431 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9432 # lib.a(lib.so.V) shared, rtl:no, for executables 9433 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9434 # lib.a(lib.so.V) shared, rtl:no 9435 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9436 # lib.a static archive 9437 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9438 for ld_flag in $LDFLAGS; do 9439 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9440 aix_use_runtimelinking=yes 9441 break 9442 fi 9443 done 9444 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9445 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9446 # so we don't have lib.a shared libs to link our executables. 9447 # We have to force runtime linking in this case. 9448 aix_use_runtimelinking=yes 9449 LDFLAGS="$LDFLAGS -Wl,-brtl" 9450 fi 9451 ;; 9452 esac 9453 9454 exp_sym_flag='-bexport' 9455 no_entry_flag='-bnoentry' 9456 fi 9457 9458 # When large executables or shared objects are built, AIX ld can 9459 # have problems creating the table of contents. If linking a library 9460 # or program results in "error TOC overflow" add -mminimal-toc to 9461 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9462 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9463 9464 archive_cmds='' 9465 hardcode_direct=yes 9466 hardcode_direct_absolute=yes 9467 hardcode_libdir_separator=':' 9468 link_all_deplibs=yes 9469 file_list_spec='$wl-f,' 9470 case $with_aix_soname,$aix_use_runtimelinking in 9471 aix,*) ;; # traditional, no import file 9472 svr4,* | *,yes) # use import file 9473 # The Import File defines what to hardcode. 9474 hardcode_direct=no 9475 hardcode_direct_absolute=no 9476 ;; 9477 esac 9478 9479 if test yes = "$GCC"; then 9480 case $host_os in aix4.[012]|aix4.[012].*) 9481 # We only want to do this on AIX 4.2 and lower, the check 9482 # below for broken collect2 doesn't work under 4.3+ 9483 collect2name=`$CC -print-prog-name=collect2` 9484 if test -f "$collect2name" && 9485 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9486 then 9487 # We have reworked collect2 9488 : 9489 else 9490 # We have old collect2 9491 hardcode_direct=unsupported 9492 # It fails to find uninstalled libraries when the uninstalled 9493 # path is not listed in the libpath. Setting hardcode_minus_L 9494 # to unsupported forces relinking 9495 hardcode_minus_L=yes 9496 hardcode_libdir_flag_spec='-L$libdir' 9497 hardcode_libdir_separator= 9498 fi 9499 ;; 9500 esac 9501 shared_flag='-shared' 9502 if test yes = "$aix_use_runtimelinking"; then 9503 shared_flag="$shared_flag "'$wl-G' 9504 fi 9505 # Need to ensure runtime linking is disabled for the traditional 9506 # shared library, or the linker may eventually find shared libraries 9507 # /with/ Import File - we do not want to mix them. 9508 shared_flag_aix='-shared' 9509 shared_flag_svr4='-shared $wl-G' 9510 else 9511 # not using gcc 9512 if test ia64 = "$host_cpu"; then 9513 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9514 # chokes on -Wl,-G. The following line is correct: 9515 shared_flag='-G' 9516 else 9517 if test yes = "$aix_use_runtimelinking"; then 9518 shared_flag='$wl-G' 9519 else 9520 shared_flag='$wl-bM:SRE' 9521 fi 9522 shared_flag_aix='$wl-bM:SRE' 9523 shared_flag_svr4='$wl-G' 9524 fi 9525 fi 9526 9527 export_dynamic_flag_spec='$wl-bexpall' 9528 # It seems that -bexpall does not export symbols beginning with 9529 # underscore (_), so it is better to generate a list of symbols to export. 9530 always_export_symbols=yes 9531 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9532 # Warning - without using the other runtime loading flags (-brtl), 9533 # -berok will link without error, but may produce a broken library. 9534 allow_undefined_flag='-berok' 9535 # Determine the default libpath from the value encoded in an 9536 # empty executable. 9537 if test set = "${lt_cv_aix_libpath+set}"; then 9538 aix_libpath=$lt_cv_aix_libpath 9539else 9540 if ${lt_cv_aix_libpath_+:} false; then : 9541 $as_echo_n "(cached) " >&6 9542else 9543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9544/* end confdefs.h. */ 9545 9546int 9547main () 9548{ 9549 9550 ; 9551 return 0; 9552} 9553_ACEOF 9554if ac_fn_c_try_link "$LINENO"; then : 9555 9556 lt_aix_libpath_sed=' 9557 /Import File Strings/,/^$/ { 9558 /^0/ { 9559 s/^0 *\([^ ]*\) *$/\1/ 9560 p 9561 } 9562 }' 9563 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9564 # Check for a 64-bit object if we didn't find anything. 9565 if test -z "$lt_cv_aix_libpath_"; then 9566 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9567 fi 9568fi 9569rm -f core conftest.err conftest.$ac_objext \ 9570 conftest$ac_exeext conftest.$ac_ext 9571 if test -z "$lt_cv_aix_libpath_"; then 9572 lt_cv_aix_libpath_=/usr/lib:/lib 9573 fi 9574 9575fi 9576 9577 aix_libpath=$lt_cv_aix_libpath_ 9578fi 9579 9580 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9581 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 9582 else 9583 if test ia64 = "$host_cpu"; then 9584 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9585 allow_undefined_flag="-z nodefs" 9586 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" 9587 else 9588 # Determine the default libpath from the value encoded in an 9589 # empty executable. 9590 if test set = "${lt_cv_aix_libpath+set}"; then 9591 aix_libpath=$lt_cv_aix_libpath 9592else 9593 if ${lt_cv_aix_libpath_+:} false; then : 9594 $as_echo_n "(cached) " >&6 9595else 9596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9597/* end confdefs.h. */ 9598 9599int 9600main () 9601{ 9602 9603 ; 9604 return 0; 9605} 9606_ACEOF 9607if ac_fn_c_try_link "$LINENO"; then : 9608 9609 lt_aix_libpath_sed=' 9610 /Import File Strings/,/^$/ { 9611 /^0/ { 9612 s/^0 *\([^ ]*\) *$/\1/ 9613 p 9614 } 9615 }' 9616 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9617 # Check for a 64-bit object if we didn't find anything. 9618 if test -z "$lt_cv_aix_libpath_"; then 9619 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9620 fi 9621fi 9622rm -f core conftest.err conftest.$ac_objext \ 9623 conftest$ac_exeext conftest.$ac_ext 9624 if test -z "$lt_cv_aix_libpath_"; then 9625 lt_cv_aix_libpath_=/usr/lib:/lib 9626 fi 9627 9628fi 9629 9630 aix_libpath=$lt_cv_aix_libpath_ 9631fi 9632 9633 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9634 # Warning - without using the other run time loading flags, 9635 # -berok will link without error, but may produce a broken library. 9636 no_undefined_flag=' $wl-bernotok' 9637 allow_undefined_flag=' $wl-berok' 9638 if test yes = "$with_gnu_ld"; then 9639 # We only use this code for GNU lds that support --whole-archive. 9640 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9641 else 9642 # Exported symbols can be pulled into shared objects from archives 9643 whole_archive_flag_spec='$convenience' 9644 fi 9645 archive_cmds_need_lc=yes 9646 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9647 # -brtl affects multiple linker settings, -berok does not and is overridden later 9648 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9649 if test svr4 != "$with_aix_soname"; then 9650 # This is similar to how AIX traditionally builds its shared libraries. 9651 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 9652 fi 9653 if test aix != "$with_aix_soname"; then 9654 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 9655 else 9656 # used by -dlpreopen to get the symbols 9657 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9658 fi 9659 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9660 fi 9661 fi 9662 ;; 9663 9664 amigaos*) 9665 case $host_cpu in 9666 powerpc) 9667 # see comment about AmigaOS4 .so support 9668 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9669 archive_expsym_cmds='' 9670 ;; 9671 m68k) 9672 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)' 9673 hardcode_libdir_flag_spec='-L$libdir' 9674 hardcode_minus_L=yes 9675 ;; 9676 esac 9677 ;; 9678 9679 bsdi[45]*) 9680 export_dynamic_flag_spec=-rdynamic 9681 ;; 9682 9683 cygwin* | mingw* | pw32* | cegcc*) 9684 # When not using gcc, we currently assume that we are using 9685 # Microsoft Visual C++. 9686 # hardcode_libdir_flag_spec is actually meaningless, as there is 9687 # no search path for DLLs. 9688 case $cc_basename in 9689 cl*) 9690 # Native MSVC 9691 hardcode_libdir_flag_spec=' ' 9692 allow_undefined_flag=unsupported 9693 always_export_symbols=yes 9694 file_list_spec='@' 9695 # Tell ltmain to make .lib files, not .a files. 9696 libext=lib 9697 # Tell ltmain to make .dll files, not .so files. 9698 shrext_cmds=.dll 9699 # FIXME: Setting linknames here is a bad hack. 9700 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9701 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9702 cp "$export_symbols" "$output_objdir/$soname.def"; 9703 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9704 else 9705 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9706 fi~ 9707 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9708 linknames=' 9709 # The linker will not automatically build a static lib if we build a DLL. 9710 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9711 enable_shared_with_static_runtimes=yes 9712 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9713 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9714 # Don't use ranlib 9715 old_postinstall_cmds='chmod 644 $oldlib' 9716 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9717 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9718 case $lt_outputfile in 9719 *.exe|*.EXE) ;; 9720 *) 9721 lt_outputfile=$lt_outputfile.exe 9722 lt_tool_outputfile=$lt_tool_outputfile.exe 9723 ;; 9724 esac~ 9725 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9726 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9727 $RM "$lt_outputfile.manifest"; 9728 fi' 9729 ;; 9730 *) 9731 # Assume MSVC wrapper 9732 hardcode_libdir_flag_spec=' ' 9733 allow_undefined_flag=unsupported 9734 # Tell ltmain to make .lib files, not .a files. 9735 libext=lib 9736 # Tell ltmain to make .dll files, not .so files. 9737 shrext_cmds=.dll 9738 # FIXME: Setting linknames here is a bad hack. 9739 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9740 # The linker will automatically build a .lib file if we build a DLL. 9741 old_archive_from_new_cmds='true' 9742 # FIXME: Should let the user specify the lib program. 9743 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9744 enable_shared_with_static_runtimes=yes 9745 ;; 9746 esac 9747 ;; 9748 9749 darwin* | rhapsody*) 9750 9751 9752 archive_cmds_need_lc=no 9753 hardcode_direct=no 9754 hardcode_automatic=yes 9755 hardcode_shlibpath_var=unsupported 9756 if test yes = "$lt_cv_ld_force_load"; then 9757 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\"`' 9758 9759 else 9760 whole_archive_flag_spec='' 9761 fi 9762 link_all_deplibs=yes 9763 allow_undefined_flag=$_lt_dar_allow_undefined 9764 case $cc_basename in 9765 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9766 *) _lt_dar_can_shared=$GCC ;; 9767 esac 9768 if test yes = "$_lt_dar_can_shared"; then 9769 output_verbose_link_cmd=func_echo_all 9770 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9771 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9772 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" 9773 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" 9774 9775 else 9776 ld_shlibs=no 9777 fi 9778 9779 ;; 9780 9781 dgux*) 9782 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9783 hardcode_libdir_flag_spec='-L$libdir' 9784 hardcode_shlibpath_var=no 9785 ;; 9786 9787 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9788 # support. Future versions do this automatically, but an explicit c++rt0.o 9789 # does not break anything, and helps significantly (at the cost of a little 9790 # extra space). 9791 freebsd2.2*) 9792 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9793 hardcode_libdir_flag_spec='-R$libdir' 9794 hardcode_direct=yes 9795 hardcode_shlibpath_var=no 9796 ;; 9797 9798 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9799 freebsd2.*) 9800 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9801 hardcode_direct=yes 9802 hardcode_minus_L=yes 9803 hardcode_shlibpath_var=no 9804 ;; 9805 9806 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9807 freebsd* | dragonfly*) 9808 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9809 hardcode_libdir_flag_spec='-R$libdir' 9810 hardcode_direct=yes 9811 hardcode_shlibpath_var=no 9812 ;; 9813 9814 hpux9*) 9815 if test yes = "$GCC"; then 9816 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9817 else 9818 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9819 fi 9820 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9821 hardcode_libdir_separator=: 9822 hardcode_direct=yes 9823 9824 # hardcode_minus_L: Not really in the search PATH, 9825 # but as the default location of the library. 9826 hardcode_minus_L=yes 9827 export_dynamic_flag_spec='$wl-E' 9828 ;; 9829 9830 hpux10*) 9831 if test yes,no = "$GCC,$with_gnu_ld"; then 9832 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9833 else 9834 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9835 fi 9836 if test no = "$with_gnu_ld"; then 9837 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9838 hardcode_libdir_separator=: 9839 hardcode_direct=yes 9840 hardcode_direct_absolute=yes 9841 export_dynamic_flag_spec='$wl-E' 9842 # hardcode_minus_L: Not really in the search PATH, 9843 # but as the default location of the library. 9844 hardcode_minus_L=yes 9845 fi 9846 ;; 9847 9848 hpux11*) 9849 if test yes,no = "$GCC,$with_gnu_ld"; then 9850 case $host_cpu in 9851 hppa*64*) 9852 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9853 ;; 9854 ia64*) 9855 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9856 ;; 9857 *) 9858 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9859 ;; 9860 esac 9861 else 9862 case $host_cpu in 9863 hppa*64*) 9864 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9865 ;; 9866 ia64*) 9867 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9868 ;; 9869 *) 9870 9871 # Older versions of the 11.00 compiler do not understand -b yet 9872 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9874$as_echo_n "checking if $CC understands -b... " >&6; } 9875if ${lt_cv_prog_compiler__b+:} false; then : 9876 $as_echo_n "(cached) " >&6 9877else 9878 lt_cv_prog_compiler__b=no 9879 save_LDFLAGS=$LDFLAGS 9880 LDFLAGS="$LDFLAGS -b" 9881 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9882 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9883 # The linker can only warn and ignore the option if not recognized 9884 # So say no if there are warnings 9885 if test -s conftest.err; then 9886 # Append any errors to the config.log. 9887 cat conftest.err 1>&5 9888 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9889 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9890 if diff conftest.exp conftest.er2 >/dev/null; then 9891 lt_cv_prog_compiler__b=yes 9892 fi 9893 else 9894 lt_cv_prog_compiler__b=yes 9895 fi 9896 fi 9897 $RM -r conftest* 9898 LDFLAGS=$save_LDFLAGS 9899 9900fi 9901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9902$as_echo "$lt_cv_prog_compiler__b" >&6; } 9903 9904if test yes = "$lt_cv_prog_compiler__b"; then 9905 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9906else 9907 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9908fi 9909 9910 ;; 9911 esac 9912 fi 9913 if test no = "$with_gnu_ld"; then 9914 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9915 hardcode_libdir_separator=: 9916 9917 case $host_cpu in 9918 hppa*64*|ia64*) 9919 hardcode_direct=no 9920 hardcode_shlibpath_var=no 9921 ;; 9922 *) 9923 hardcode_direct=yes 9924 hardcode_direct_absolute=yes 9925 export_dynamic_flag_spec='$wl-E' 9926 9927 # hardcode_minus_L: Not really in the search PATH, 9928 # but as the default location of the library. 9929 hardcode_minus_L=yes 9930 ;; 9931 esac 9932 fi 9933 ;; 9934 9935 irix5* | irix6* | nonstopux*) 9936 if test yes = "$GCC"; then 9937 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' 9938 # Try to use the -exported_symbol ld option, if it does not 9939 # work, assume that -exports_file does not work either and 9940 # implicitly export all symbols. 9941 # This should be the same for all languages, so no per-tag cache variable. 9942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9943$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9944if ${lt_cv_irix_exported_symbol+:} false; then : 9945 $as_echo_n "(cached) " >&6 9946else 9947 save_LDFLAGS=$LDFLAGS 9948 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 9949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9950/* end confdefs.h. */ 9951int foo (void) { return 0; } 9952_ACEOF 9953if ac_fn_c_try_link "$LINENO"; then : 9954 lt_cv_irix_exported_symbol=yes 9955else 9956 lt_cv_irix_exported_symbol=no 9957fi 9958rm -f core conftest.err conftest.$ac_objext \ 9959 conftest$ac_exeext conftest.$ac_ext 9960 LDFLAGS=$save_LDFLAGS 9961fi 9962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9963$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9964 if test yes = "$lt_cv_irix_exported_symbol"; then 9965 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' 9966 fi 9967 else 9968 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' 9969 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' 9970 fi 9971 archive_cmds_need_lc='no' 9972 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9973 hardcode_libdir_separator=: 9974 inherit_rpath=yes 9975 link_all_deplibs=yes 9976 ;; 9977 9978 linux*) 9979 case $cc_basename in 9980 tcc*) 9981 # Fabrice Bellard et al's Tiny C Compiler 9982 ld_shlibs=yes 9983 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9984 ;; 9985 esac 9986 ;; 9987 9988 netbsd*) 9989 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9990 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9991 else 9992 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9993 fi 9994 hardcode_libdir_flag_spec='-R$libdir' 9995 hardcode_direct=yes 9996 hardcode_shlibpath_var=no 9997 ;; 9998 9999 newsos6) 10000 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10001 hardcode_direct=yes 10002 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10003 hardcode_libdir_separator=: 10004 hardcode_shlibpath_var=no 10005 ;; 10006 10007 *nto* | *qnx*) 10008 ;; 10009 10010 openbsd* | bitrig*) 10011 if test -f /usr/libexec/ld.so; then 10012 hardcode_direct=yes 10013 hardcode_shlibpath_var=no 10014 hardcode_direct_absolute=yes 10015 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10016 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10017 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10018 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10019 export_dynamic_flag_spec='$wl-E' 10020 else 10021 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10022 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10023 fi 10024 else 10025 ld_shlibs=no 10026 fi 10027 ;; 10028 10029 os2*) 10030 hardcode_libdir_flag_spec='-L$libdir' 10031 hardcode_minus_L=yes 10032 allow_undefined_flag=unsupported 10033 shrext_cmds=.dll 10034 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10035 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10036 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10037 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10038 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10039 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10040 emximp -o $lib $output_objdir/$libname.def' 10041 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10042 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10043 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10044 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10045 prefix_cmds="$SED"~ 10046 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10047 prefix_cmds="$prefix_cmds -e 1d"; 10048 fi~ 10049 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10050 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10051 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10052 emximp -o $lib $output_objdir/$libname.def' 10053 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10054 enable_shared_with_static_runtimes=yes 10055 ;; 10056 10057 osf3*) 10058 if test yes = "$GCC"; then 10059 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10060 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' 10061 else 10062 allow_undefined_flag=' -expect_unresolved \*' 10063 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' 10064 fi 10065 archive_cmds_need_lc='no' 10066 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10067 hardcode_libdir_separator=: 10068 ;; 10069 10070 osf4* | osf5*) # as osf3* with the addition of -msym flag 10071 if test yes = "$GCC"; then 10072 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10073 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' 10074 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10075 else 10076 allow_undefined_flag=' -expect_unresolved \*' 10077 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' 10078 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~ 10079 $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' 10080 10081 # Both c and cxx compiler support -rpath directly 10082 hardcode_libdir_flag_spec='-rpath $libdir' 10083 fi 10084 archive_cmds_need_lc='no' 10085 hardcode_libdir_separator=: 10086 ;; 10087 10088 solaris*) 10089 no_undefined_flag=' -z defs' 10090 if test yes = "$GCC"; then 10091 wlarc='$wl' 10092 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10093 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10094 $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' 10095 else 10096 case `$CC -V 2>&1` in 10097 *"Compilers 5.0"*) 10098 wlarc='' 10099 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10100 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10101 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10102 ;; 10103 *) 10104 wlarc='$wl' 10105 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10106 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10107 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10108 ;; 10109 esac 10110 fi 10111 hardcode_libdir_flag_spec='-R$libdir' 10112 hardcode_shlibpath_var=no 10113 case $host_os in 10114 solaris2.[0-5] | solaris2.[0-5].*) ;; 10115 *) 10116 # The compiler driver will combine and reorder linker options, 10117 # but understands '-z linker_flag'. GCC discards it without '$wl', 10118 # but is careful enough not to reorder. 10119 # Supported since Solaris 2.6 (maybe 2.5.1?) 10120 if test yes = "$GCC"; then 10121 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10122 else 10123 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10124 fi 10125 ;; 10126 esac 10127 link_all_deplibs=yes 10128 ;; 10129 10130 sunos4*) 10131 if test sequent = "$host_vendor"; then 10132 # Use $CC to link under sequent, because it throws in some extra .o 10133 # files that make .init and .fini sections work. 10134 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10135 else 10136 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10137 fi 10138 hardcode_libdir_flag_spec='-L$libdir' 10139 hardcode_direct=yes 10140 hardcode_minus_L=yes 10141 hardcode_shlibpath_var=no 10142 ;; 10143 10144 sysv4) 10145 case $host_vendor in 10146 sni) 10147 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10148 hardcode_direct=yes # is this really true??? 10149 ;; 10150 siemens) 10151 ## LD is ld it makes a PLAMLIB 10152 ## CC just makes a GrossModule. 10153 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10154 reload_cmds='$CC -r -o $output$reload_objs' 10155 hardcode_direct=no 10156 ;; 10157 motorola) 10158 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10159 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10160 ;; 10161 esac 10162 runpath_var='LD_RUN_PATH' 10163 hardcode_shlibpath_var=no 10164 ;; 10165 10166 sysv4.3*) 10167 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10168 hardcode_shlibpath_var=no 10169 export_dynamic_flag_spec='-Bexport' 10170 ;; 10171 10172 sysv4*MP*) 10173 if test -d /usr/nec; then 10174 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10175 hardcode_shlibpath_var=no 10176 runpath_var=LD_RUN_PATH 10177 hardcode_runpath_var=yes 10178 ld_shlibs=yes 10179 fi 10180 ;; 10181 10182 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10183 no_undefined_flag='$wl-z,text' 10184 archive_cmds_need_lc=no 10185 hardcode_shlibpath_var=no 10186 runpath_var='LD_RUN_PATH' 10187 10188 if test yes = "$GCC"; then 10189 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10190 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10191 else 10192 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10193 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10194 fi 10195 ;; 10196 10197 sysv5* | sco3.2v5* | sco5v6*) 10198 # Note: We CANNOT use -z defs as we might desire, because we do not 10199 # link with -lc, and that would cause any symbols used from libc to 10200 # always be unresolved, which means just about no library would 10201 # ever link correctly. If we're not using GNU ld we use -z text 10202 # though, which does catch some bad symbols but isn't as heavy-handed 10203 # as -z defs. 10204 no_undefined_flag='$wl-z,text' 10205 allow_undefined_flag='$wl-z,nodefs' 10206 archive_cmds_need_lc=no 10207 hardcode_shlibpath_var=no 10208 hardcode_libdir_flag_spec='$wl-R,$libdir' 10209 hardcode_libdir_separator=':' 10210 link_all_deplibs=yes 10211 export_dynamic_flag_spec='$wl-Bexport' 10212 runpath_var='LD_RUN_PATH' 10213 10214 if test yes = "$GCC"; then 10215 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10216 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10217 else 10218 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10219 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10220 fi 10221 ;; 10222 10223 uts4*) 10224 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10225 hardcode_libdir_flag_spec='-L$libdir' 10226 hardcode_shlibpath_var=no 10227 ;; 10228 10229 *) 10230 ld_shlibs=no 10231 ;; 10232 esac 10233 10234 if test sni = "$host_vendor"; then 10235 case $host in 10236 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10237 export_dynamic_flag_spec='$wl-Blargedynsym' 10238 ;; 10239 esac 10240 fi 10241 fi 10242 10243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10244$as_echo "$ld_shlibs" >&6; } 10245test no = "$ld_shlibs" && can_build_shared=no 10246 10247with_gnu_ld=$with_gnu_ld 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263# 10264# Do we need to explicitly link libc? 10265# 10266case "x$archive_cmds_need_lc" in 10267x|xyes) 10268 # Assume -lc should be added 10269 archive_cmds_need_lc=yes 10270 10271 if test yes,yes = "$GCC,$enable_shared"; then 10272 case $archive_cmds in 10273 *'~'*) 10274 # FIXME: we may have to deal with multi-command sequences. 10275 ;; 10276 '$CC '*) 10277 # Test whether the compiler implicitly links with -lc since on some 10278 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10279 # to ld, don't add -lc before -lgcc. 10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10281$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10282if ${lt_cv_archive_cmds_need_lc+:} false; then : 10283 $as_echo_n "(cached) " >&6 10284else 10285 $RM conftest* 10286 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10287 10288 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10289 (eval $ac_compile) 2>&5 10290 ac_status=$? 10291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10292 test $ac_status = 0; } 2>conftest.err; then 10293 soname=conftest 10294 lib=conftest 10295 libobjs=conftest.$ac_objext 10296 deplibs= 10297 wl=$lt_prog_compiler_wl 10298 pic_flag=$lt_prog_compiler_pic 10299 compiler_flags=-v 10300 linker_flags=-v 10301 verstring= 10302 output_objdir=. 10303 libname=conftest 10304 lt_save_allow_undefined_flag=$allow_undefined_flag 10305 allow_undefined_flag= 10306 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10307 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10308 ac_status=$? 10309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10310 test $ac_status = 0; } 10311 then 10312 lt_cv_archive_cmds_need_lc=no 10313 else 10314 lt_cv_archive_cmds_need_lc=yes 10315 fi 10316 allow_undefined_flag=$lt_save_allow_undefined_flag 10317 else 10318 cat conftest.err 1>&5 10319 fi 10320 $RM conftest* 10321 10322fi 10323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10324$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10325 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10326 ;; 10327 esac 10328 fi 10329 ;; 10330esac 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10484$as_echo_n "checking dynamic linker characteristics... " >&6; } 10485 10486if test yes = "$GCC"; then 10487 case $host_os in 10488 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10489 *) lt_awk_arg='/^libraries:/' ;; 10490 esac 10491 case $host_os in 10492 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10493 *) lt_sed_strip_eq='s|=/|/|g' ;; 10494 esac 10495 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10496 case $lt_search_path_spec in 10497 *\;*) 10498 # if the path contains ";" then we assume it to be the separator 10499 # otherwise default to the standard path separator (i.e. ":") - it is 10500 # assumed that no part of a normal pathname contains ";" but that should 10501 # okay in the real world where ";" in dirpaths is itself problematic. 10502 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10503 ;; 10504 *) 10505 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10506 ;; 10507 esac 10508 # Ok, now we have the path, separated by spaces, we can step through it 10509 # and add multilib dir if necessary... 10510 lt_tmp_lt_search_path_spec= 10511 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10512 # ...but if some path component already ends with the multilib dir we assume 10513 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10514 case "$lt_multi_os_dir; $lt_search_path_spec " in 10515 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10516 lt_multi_os_dir= 10517 ;; 10518 esac 10519 for lt_sys_path in $lt_search_path_spec; do 10520 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10521 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10522 elif test -n "$lt_multi_os_dir"; then 10523 test -d "$lt_sys_path" && \ 10524 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10525 fi 10526 done 10527 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10528BEGIN {RS = " "; FS = "/|\n";} { 10529 lt_foo = ""; 10530 lt_count = 0; 10531 for (lt_i = NF; lt_i > 0; lt_i--) { 10532 if ($lt_i != "" && $lt_i != ".") { 10533 if ($lt_i == "..") { 10534 lt_count++; 10535 } else { 10536 if (lt_count == 0) { 10537 lt_foo = "/" $lt_i lt_foo; 10538 } else { 10539 lt_count--; 10540 } 10541 } 10542 } 10543 } 10544 if (lt_foo != "") { lt_freq[lt_foo]++; } 10545 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10546}'` 10547 # AWK program above erroneously prepends '/' to C:/dos/paths 10548 # for these hosts. 10549 case $host_os in 10550 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10551 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10552 esac 10553 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10554else 10555 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10556fi 10557library_names_spec= 10558libname_spec='lib$name' 10559soname_spec= 10560shrext_cmds=.so 10561postinstall_cmds= 10562postuninstall_cmds= 10563finish_cmds= 10564finish_eval= 10565shlibpath_var= 10566shlibpath_overrides_runpath=unknown 10567version_type=none 10568dynamic_linker="$host_os ld.so" 10569sys_lib_dlsearch_path_spec="/lib /usr/lib" 10570need_lib_prefix=unknown 10571hardcode_into_libs=no 10572 10573# when you set need_version to no, make sure it does not cause -set_version 10574# flags to be left without arguments 10575need_version=unknown 10576 10577 10578 10579case $host_os in 10580aix3*) 10581 version_type=linux # correct to gnu/linux during the next big refactor 10582 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10583 shlibpath_var=LIBPATH 10584 10585 # AIX 3 has no versioning support, so we append a major version to the name. 10586 soname_spec='$libname$release$shared_ext$major' 10587 ;; 10588 10589aix[4-9]*) 10590 version_type=linux # correct to gnu/linux during the next big refactor 10591 need_lib_prefix=no 10592 need_version=no 10593 hardcode_into_libs=yes 10594 if test ia64 = "$host_cpu"; then 10595 # AIX 5 supports IA64 10596 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10597 shlibpath_var=LD_LIBRARY_PATH 10598 else 10599 # With GCC up to 2.95.x, collect2 would create an import file 10600 # for dependence libraries. The import file would start with 10601 # the line '#! .'. This would cause the generated library to 10602 # depend on '.', always an invalid library. This was fixed in 10603 # development snapshots of GCC prior to 3.0. 10604 case $host_os in 10605 aix4 | aix4.[01] | aix4.[01].*) 10606 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10607 echo ' yes ' 10608 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10609 : 10610 else 10611 can_build_shared=no 10612 fi 10613 ;; 10614 esac 10615 # Using Import Files as archive members, it is possible to support 10616 # filename-based versioning of shared library archives on AIX. While 10617 # this would work for both with and without runtime linking, it will 10618 # prevent static linking of such archives. So we do filename-based 10619 # shared library versioning with .so extension only, which is used 10620 # when both runtime linking and shared linking is enabled. 10621 # Unfortunately, runtime linking may impact performance, so we do 10622 # not want this to be the default eventually. Also, we use the 10623 # versioned .so libs for executables only if there is the -brtl 10624 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10625 # To allow for filename-based versioning support, we need to create 10626 # libNAME.so.V as an archive file, containing: 10627 # *) an Import File, referring to the versioned filename of the 10628 # archive as well as the shared archive member, telling the 10629 # bitwidth (32 or 64) of that shared object, and providing the 10630 # list of exported symbols of that shared object, eventually 10631 # decorated with the 'weak' keyword 10632 # *) the shared object with the F_LOADONLY flag set, to really avoid 10633 # it being seen by the linker. 10634 # At run time we better use the real file rather than another symlink, 10635 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10636 10637 case $with_aix_soname,$aix_use_runtimelinking in 10638 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10639 # soname into executable. Probably we can add versioning support to 10640 # collect2, so additional links can be useful in future. 10641 aix,yes) # traditional libtool 10642 dynamic_linker='AIX unversionable lib.so' 10643 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10644 # instead of lib<name>.a to let people know that these are not 10645 # typical AIX shared libraries. 10646 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10647 ;; 10648 aix,no) # traditional AIX only 10649 dynamic_linker='AIX lib.a(lib.so.V)' 10650 # We preserve .a as extension for shared libraries through AIX4.2 10651 # and later when we are not doing run time linking. 10652 library_names_spec='$libname$release.a $libname.a' 10653 soname_spec='$libname$release$shared_ext$major' 10654 ;; 10655 svr4,*) # full svr4 only 10656 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10657 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10658 # We do not specify a path in Import Files, so LIBPATH fires. 10659 shlibpath_overrides_runpath=yes 10660 ;; 10661 *,yes) # both, prefer svr4 10662 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10663 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10664 # unpreferred sharedlib libNAME.a needs extra handling 10665 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 10666 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 10667 # We do not specify a path in Import Files, so LIBPATH fires. 10668 shlibpath_overrides_runpath=yes 10669 ;; 10670 *,no) # both, prefer aix 10671 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10672 library_names_spec='$libname$release.a $libname.a' 10673 soname_spec='$libname$release$shared_ext$major' 10674 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10675 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 10676 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 10677 ;; 10678 esac 10679 shlibpath_var=LIBPATH 10680 fi 10681 ;; 10682 10683amigaos*) 10684 case $host_cpu in 10685 powerpc) 10686 # Since July 2007 AmigaOS4 officially supports .so libraries. 10687 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10688 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10689 ;; 10690 m68k) 10691 library_names_spec='$libname.ixlibrary $libname.a' 10692 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10693 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10694 ;; 10695 esac 10696 ;; 10697 10698beos*) 10699 library_names_spec='$libname$shared_ext' 10700 dynamic_linker="$host_os ld.so" 10701 shlibpath_var=LIBRARY_PATH 10702 ;; 10703 10704bsdi[45]*) 10705 version_type=linux # correct to gnu/linux during the next big refactor 10706 need_version=no 10707 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10708 soname_spec='$libname$release$shared_ext$major' 10709 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10710 shlibpath_var=LD_LIBRARY_PATH 10711 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10712 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10713 # the default ld.so.conf also contains /usr/contrib/lib and 10714 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10715 # libtool to hard-code these into programs 10716 ;; 10717 10718cygwin* | mingw* | pw32* | cegcc*) 10719 version_type=windows 10720 shrext_cmds=.dll 10721 need_version=no 10722 need_lib_prefix=no 10723 10724 case $GCC,$cc_basename in 10725 yes,*) 10726 # gcc 10727 library_names_spec='$libname.dll.a' 10728 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10729 postinstall_cmds='base_file=`basename \$file`~ 10730 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10731 dldir=$destdir/`dirname \$dlpath`~ 10732 test -d \$dldir || mkdir -p \$dldir~ 10733 $install_prog $dir/$dlname \$dldir/$dlname~ 10734 chmod a+x \$dldir/$dlname~ 10735 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10736 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10737 fi' 10738 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10739 dlpath=$dir/\$dldll~ 10740 $RM \$dlpath' 10741 shlibpath_overrides_runpath=yes 10742 10743 case $host_os in 10744 cygwin*) 10745 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10746 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10747 10748 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10749 ;; 10750 mingw* | cegcc*) 10751 # MinGW DLLs use traditional 'lib' prefix 10752 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10753 ;; 10754 pw32*) 10755 # pw32 DLLs use 'pw' prefix rather than 'lib' 10756 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10757 ;; 10758 esac 10759 dynamic_linker='Win32 ld.exe' 10760 ;; 10761 10762 *,cl*) 10763 # Native MSVC 10764 libname_spec='$name' 10765 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10766 library_names_spec='$libname.dll.lib' 10767 10768 case $build_os in 10769 mingw*) 10770 sys_lib_search_path_spec= 10771 lt_save_ifs=$IFS 10772 IFS=';' 10773 for lt_path in $LIB 10774 do 10775 IFS=$lt_save_ifs 10776 # Let DOS variable expansion print the short 8.3 style file name. 10777 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10778 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10779 done 10780 IFS=$lt_save_ifs 10781 # Convert to MSYS style. 10782 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10783 ;; 10784 cygwin*) 10785 # Convert to unix form, then to dos form, then back to unix form 10786 # but this time dos style (no spaces!) so that the unix form looks 10787 # like /cygdrive/c/PROGRA~1:/cygdr... 10788 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10789 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10790 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10791 ;; 10792 *) 10793 sys_lib_search_path_spec=$LIB 10794 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10795 # It is most probably a Windows format PATH. 10796 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10797 else 10798 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10799 fi 10800 # FIXME: find the short name or the path components, as spaces are 10801 # common. (e.g. "Program Files" -> "PROGRA~1") 10802 ;; 10803 esac 10804 10805 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10806 postinstall_cmds='base_file=`basename \$file`~ 10807 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10808 dldir=$destdir/`dirname \$dlpath`~ 10809 test -d \$dldir || mkdir -p \$dldir~ 10810 $install_prog $dir/$dlname \$dldir/$dlname' 10811 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10812 dlpath=$dir/\$dldll~ 10813 $RM \$dlpath' 10814 shlibpath_overrides_runpath=yes 10815 dynamic_linker='Win32 link.exe' 10816 ;; 10817 10818 *) 10819 # Assume MSVC wrapper 10820 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10821 dynamic_linker='Win32 ld.exe' 10822 ;; 10823 esac 10824 # FIXME: first we should search . and the directory the executable is in 10825 shlibpath_var=PATH 10826 ;; 10827 10828darwin* | rhapsody*) 10829 dynamic_linker="$host_os dyld" 10830 version_type=darwin 10831 need_lib_prefix=no 10832 need_version=no 10833 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10834 soname_spec='$libname$release$major$shared_ext' 10835 shlibpath_overrides_runpath=yes 10836 shlibpath_var=DYLD_LIBRARY_PATH 10837 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10838 10839 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10840 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10841 ;; 10842 10843dgux*) 10844 version_type=linux # correct to gnu/linux during the next big refactor 10845 need_lib_prefix=no 10846 need_version=no 10847 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10848 soname_spec='$libname$release$shared_ext$major' 10849 shlibpath_var=LD_LIBRARY_PATH 10850 ;; 10851 10852freebsd* | dragonfly*) 10853 # DragonFly does not have aout. When/if they implement a new 10854 # versioning mechanism, adjust this. 10855 if test -x /usr/bin/objformat; then 10856 objformat=`/usr/bin/objformat` 10857 else 10858 case $host_os in 10859 freebsd[23].*) objformat=aout ;; 10860 *) objformat=elf ;; 10861 esac 10862 fi 10863 version_type=freebsd-$objformat 10864 case $version_type in 10865 freebsd-elf*) 10866 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10867 soname_spec='$libname$release$shared_ext$major' 10868 need_version=no 10869 need_lib_prefix=no 10870 ;; 10871 freebsd-*) 10872 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10873 need_version=yes 10874 ;; 10875 esac 10876 shlibpath_var=LD_LIBRARY_PATH 10877 case $host_os in 10878 freebsd2.*) 10879 shlibpath_overrides_runpath=yes 10880 ;; 10881 freebsd3.[01]* | freebsdelf3.[01]*) 10882 shlibpath_overrides_runpath=yes 10883 hardcode_into_libs=yes 10884 ;; 10885 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10886 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10887 shlibpath_overrides_runpath=no 10888 hardcode_into_libs=yes 10889 ;; 10890 *) # from 4.6 on, and DragonFly 10891 shlibpath_overrides_runpath=yes 10892 hardcode_into_libs=yes 10893 ;; 10894 esac 10895 ;; 10896 10897haiku*) 10898 version_type=linux # correct to gnu/linux during the next big refactor 10899 need_lib_prefix=no 10900 need_version=no 10901 dynamic_linker="$host_os runtime_loader" 10902 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10903 soname_spec='$libname$release$shared_ext$major' 10904 shlibpath_var=LIBRARY_PATH 10905 shlibpath_overrides_runpath=no 10906 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10907 hardcode_into_libs=yes 10908 ;; 10909 10910hpux9* | hpux10* | hpux11*) 10911 # Give a soname corresponding to the major version so that dld.sl refuses to 10912 # link against other versions. 10913 version_type=sunos 10914 need_lib_prefix=no 10915 need_version=no 10916 case $host_cpu in 10917 ia64*) 10918 shrext_cmds='.so' 10919 hardcode_into_libs=yes 10920 dynamic_linker="$host_os dld.so" 10921 shlibpath_var=LD_LIBRARY_PATH 10922 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10923 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10924 soname_spec='$libname$release$shared_ext$major' 10925 if test 32 = "$HPUX_IA64_MODE"; then 10926 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10927 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 10928 else 10929 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10930 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 10931 fi 10932 ;; 10933 hppa*64*) 10934 shrext_cmds='.sl' 10935 hardcode_into_libs=yes 10936 dynamic_linker="$host_os dld.sl" 10937 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10938 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10939 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10940 soname_spec='$libname$release$shared_ext$major' 10941 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10942 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10943 ;; 10944 *) 10945 shrext_cmds='.sl' 10946 dynamic_linker="$host_os dld.sl" 10947 shlibpath_var=SHLIB_PATH 10948 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10949 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10950 soname_spec='$libname$release$shared_ext$major' 10951 ;; 10952 esac 10953 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10954 postinstall_cmds='chmod 555 $lib' 10955 # or fails outright, so override atomically: 10956 install_override_mode=555 10957 ;; 10958 10959interix[3-9]*) 10960 version_type=linux # correct to gnu/linux during the next big refactor 10961 need_lib_prefix=no 10962 need_version=no 10963 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10964 soname_spec='$libname$release$shared_ext$major' 10965 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10966 shlibpath_var=LD_LIBRARY_PATH 10967 shlibpath_overrides_runpath=no 10968 hardcode_into_libs=yes 10969 ;; 10970 10971irix5* | irix6* | nonstopux*) 10972 case $host_os in 10973 nonstopux*) version_type=nonstopux ;; 10974 *) 10975 if test yes = "$lt_cv_prog_gnu_ld"; then 10976 version_type=linux # correct to gnu/linux during the next big refactor 10977 else 10978 version_type=irix 10979 fi ;; 10980 esac 10981 need_lib_prefix=no 10982 need_version=no 10983 soname_spec='$libname$release$shared_ext$major' 10984 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 10985 case $host_os in 10986 irix5* | nonstopux*) 10987 libsuff= shlibsuff= 10988 ;; 10989 *) 10990 case $LD in # libtool.m4 will add one of these switches to LD 10991 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10992 libsuff= shlibsuff= libmagic=32-bit;; 10993 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10994 libsuff=32 shlibsuff=N32 libmagic=N32;; 10995 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10996 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10997 *) libsuff= shlibsuff= libmagic=never-match;; 10998 esac 10999 ;; 11000 esac 11001 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11002 shlibpath_overrides_runpath=no 11003 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11004 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11005 hardcode_into_libs=yes 11006 ;; 11007 11008# No shared lib support for Linux oldld, aout, or coff. 11009linux*oldld* | linux*aout* | linux*coff*) 11010 dynamic_linker=no 11011 ;; 11012 11013linux*android*) 11014 version_type=none # Android doesn't support versioned libraries. 11015 need_lib_prefix=no 11016 need_version=no 11017 library_names_spec='$libname$release$shared_ext' 11018 soname_spec='$libname$release$shared_ext' 11019 finish_cmds= 11020 shlibpath_var=LD_LIBRARY_PATH 11021 shlibpath_overrides_runpath=yes 11022 11023 # This implies no fast_install, which is unacceptable. 11024 # Some rework will be needed to allow for fast_install 11025 # before this can be enabled. 11026 hardcode_into_libs=yes 11027 11028 dynamic_linker='Android linker' 11029 # Don't embed -rpath directories since the linker doesn't support them. 11030 hardcode_libdir_flag_spec='-L$libdir' 11031 ;; 11032 11033# This must be glibc/ELF. 11034linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11035 version_type=linux # correct to gnu/linux during the next big refactor 11036 need_lib_prefix=no 11037 need_version=no 11038 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11039 soname_spec='$libname$release$shared_ext$major' 11040 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11041 shlibpath_var=LD_LIBRARY_PATH 11042 shlibpath_overrides_runpath=no 11043 11044 # Some binutils ld are patched to set DT_RUNPATH 11045 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11046 $as_echo_n "(cached) " >&6 11047else 11048 lt_cv_shlibpath_overrides_runpath=no 11049 save_LDFLAGS=$LDFLAGS 11050 save_libdir=$libdir 11051 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11052 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11054/* end confdefs.h. */ 11055 11056int 11057main () 11058{ 11059 11060 ; 11061 return 0; 11062} 11063_ACEOF 11064if ac_fn_c_try_link "$LINENO"; then : 11065 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11066 lt_cv_shlibpath_overrides_runpath=yes 11067fi 11068fi 11069rm -f core conftest.err conftest.$ac_objext \ 11070 conftest$ac_exeext conftest.$ac_ext 11071 LDFLAGS=$save_LDFLAGS 11072 libdir=$save_libdir 11073 11074fi 11075 11076 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11077 11078 # This implies no fast_install, which is unacceptable. 11079 # Some rework will be needed to allow for fast_install 11080 # before this can be enabled. 11081 hardcode_into_libs=yes 11082 11083 # Add ABI-specific directories to the system library path. 11084 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 11085 11086 # Ideally, we could use ldconfig to report *all* directores which are 11087 # searched for libraries, however this is still not possible. Aside from not 11088 # being certain /sbin/ldconfig is available, command 11089 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11090 # even though it is searched at run-time. Try to do the best guess by 11091 # appending ld.so.conf contents (and includes) to the search path. 11092 if test -f /etc/ld.so.conf; then 11093 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' ' '` 11094 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 11095 fi 11096 11097 # We used to test for /lib/ld.so.1 and disable shared libraries on 11098 # powerpc, because MkLinux only supported shared libraries with the 11099 # GNU dynamic linker. Since this was broken with cross compilers, 11100 # most powerpc-linux boxes support dynamic linking these days and 11101 # people can always --disable-shared, the test was removed, and we 11102 # assume the GNU/Linux dynamic linker is in use. 11103 dynamic_linker='GNU/Linux ld.so' 11104 ;; 11105 11106netbsd*) 11107 version_type=sunos 11108 need_lib_prefix=no 11109 need_version=no 11110 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11111 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11112 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11113 dynamic_linker='NetBSD (a.out) ld.so' 11114 else 11115 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11116 soname_spec='$libname$release$shared_ext$major' 11117 dynamic_linker='NetBSD ld.elf_so' 11118 fi 11119 shlibpath_var=LD_LIBRARY_PATH 11120 shlibpath_overrides_runpath=yes 11121 hardcode_into_libs=yes 11122 ;; 11123 11124newsos6) 11125 version_type=linux # correct to gnu/linux during the next big refactor 11126 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11127 shlibpath_var=LD_LIBRARY_PATH 11128 shlibpath_overrides_runpath=yes 11129 ;; 11130 11131*nto* | *qnx*) 11132 version_type=qnx 11133 need_lib_prefix=no 11134 need_version=no 11135 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11136 soname_spec='$libname$release$shared_ext$major' 11137 shlibpath_var=LD_LIBRARY_PATH 11138 shlibpath_overrides_runpath=no 11139 hardcode_into_libs=yes 11140 dynamic_linker='ldqnx.so' 11141 ;; 11142 11143openbsd* | bitrig*) 11144 version_type=sunos 11145 sys_lib_dlsearch_path_spec=/usr/lib 11146 need_lib_prefix=no 11147 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11148 need_version=no 11149 else 11150 need_version=yes 11151 fi 11152 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11153 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11154 shlibpath_var=LD_LIBRARY_PATH 11155 shlibpath_overrides_runpath=yes 11156 ;; 11157 11158os2*) 11159 libname_spec='$name' 11160 version_type=windows 11161 shrext_cmds=.dll 11162 need_version=no 11163 need_lib_prefix=no 11164 # OS/2 can only load a DLL with a base name of 8 characters or less. 11165 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11166 v=$($ECHO $release$versuffix | tr -d .-); 11167 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11168 $ECHO $n$v`$shared_ext' 11169 library_names_spec='${libname}_dll.$libext' 11170 dynamic_linker='OS/2 ld.exe' 11171 shlibpath_var=BEGINLIBPATH 11172 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11173 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11174 postinstall_cmds='base_file=`basename \$file`~ 11175 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11176 dldir=$destdir/`dirname \$dlpath`~ 11177 test -d \$dldir || mkdir -p \$dldir~ 11178 $install_prog $dir/$dlname \$dldir/$dlname~ 11179 chmod a+x \$dldir/$dlname~ 11180 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11181 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11182 fi' 11183 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11184 dlpath=$dir/\$dldll~ 11185 $RM \$dlpath' 11186 ;; 11187 11188osf3* | osf4* | osf5*) 11189 version_type=osf 11190 need_lib_prefix=no 11191 need_version=no 11192 soname_spec='$libname$release$shared_ext$major' 11193 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11194 shlibpath_var=LD_LIBRARY_PATH 11195 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11196 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11197 ;; 11198 11199rdos*) 11200 dynamic_linker=no 11201 ;; 11202 11203solaris*) 11204 version_type=linux # correct to gnu/linux during the next big refactor 11205 need_lib_prefix=no 11206 need_version=no 11207 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11208 soname_spec='$libname$release$shared_ext$major' 11209 shlibpath_var=LD_LIBRARY_PATH 11210 shlibpath_overrides_runpath=yes 11211 hardcode_into_libs=yes 11212 # ldd complains unless libraries are executable 11213 postinstall_cmds='chmod +x $lib' 11214 ;; 11215 11216sunos4*) 11217 version_type=sunos 11218 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11219 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11220 shlibpath_var=LD_LIBRARY_PATH 11221 shlibpath_overrides_runpath=yes 11222 if test yes = "$with_gnu_ld"; then 11223 need_lib_prefix=no 11224 fi 11225 need_version=yes 11226 ;; 11227 11228sysv4 | sysv4.3*) 11229 version_type=linux # correct to gnu/linux during the next big refactor 11230 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11231 soname_spec='$libname$release$shared_ext$major' 11232 shlibpath_var=LD_LIBRARY_PATH 11233 case $host_vendor in 11234 sni) 11235 shlibpath_overrides_runpath=no 11236 need_lib_prefix=no 11237 runpath_var=LD_RUN_PATH 11238 ;; 11239 siemens) 11240 need_lib_prefix=no 11241 ;; 11242 motorola) 11243 need_lib_prefix=no 11244 need_version=no 11245 shlibpath_overrides_runpath=no 11246 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11247 ;; 11248 esac 11249 ;; 11250 11251sysv4*MP*) 11252 if test -d /usr/nec; then 11253 version_type=linux # correct to gnu/linux during the next big refactor 11254 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11255 soname_spec='$libname$shared_ext.$major' 11256 shlibpath_var=LD_LIBRARY_PATH 11257 fi 11258 ;; 11259 11260sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11261 version_type=sco 11262 need_lib_prefix=no 11263 need_version=no 11264 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11265 soname_spec='$libname$release$shared_ext$major' 11266 shlibpath_var=LD_LIBRARY_PATH 11267 shlibpath_overrides_runpath=yes 11268 hardcode_into_libs=yes 11269 if test yes = "$with_gnu_ld"; then 11270 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11271 else 11272 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11273 case $host_os in 11274 sco3.2v5*) 11275 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11276 ;; 11277 esac 11278 fi 11279 sys_lib_dlsearch_path_spec='/usr/lib' 11280 ;; 11281 11282tpf*) 11283 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11284 version_type=linux # correct to gnu/linux during the next big refactor 11285 need_lib_prefix=no 11286 need_version=no 11287 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11288 shlibpath_var=LD_LIBRARY_PATH 11289 shlibpath_overrides_runpath=no 11290 hardcode_into_libs=yes 11291 ;; 11292 11293uts4*) 11294 version_type=linux # correct to gnu/linux during the next big refactor 11295 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11296 soname_spec='$libname$release$shared_ext$major' 11297 shlibpath_var=LD_LIBRARY_PATH 11298 ;; 11299 11300*) 11301 dynamic_linker=no 11302 ;; 11303esac 11304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11305$as_echo "$dynamic_linker" >&6; } 11306test no = "$dynamic_linker" && can_build_shared=no 11307 11308variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11309if test yes = "$GCC"; then 11310 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11311fi 11312 11313if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11314 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11315fi 11316 11317if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11318 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11319fi 11320 11321# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11322configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11323 11324# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11325func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11326 11327# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11328configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11427$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11428hardcode_action= 11429if test -n "$hardcode_libdir_flag_spec" || 11430 test -n "$runpath_var" || 11431 test yes = "$hardcode_automatic"; then 11432 11433 # We can hardcode non-existent directories. 11434 if test no != "$hardcode_direct" && 11435 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11436 # have to relink, otherwise we might link with an installed library 11437 # when we should be linking with a yet-to-be-installed one 11438 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11439 test no != "$hardcode_minus_L"; then 11440 # Linking always hardcodes the temporary library directory. 11441 hardcode_action=relink 11442 else 11443 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11444 hardcode_action=immediate 11445 fi 11446else 11447 # We cannot hardcode anything, or else we can only hardcode existing 11448 # directories. 11449 hardcode_action=unsupported 11450fi 11451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11452$as_echo "$hardcode_action" >&6; } 11453 11454if test relink = "$hardcode_action" || 11455 test yes = "$inherit_rpath"; then 11456 # Fast installation is not supported 11457 enable_fast_install=no 11458elif test yes = "$shlibpath_overrides_runpath" || 11459 test no = "$enable_shared"; then 11460 # Fast installation is not necessary 11461 enable_fast_install=needless 11462fi 11463 11464 11465 11466 11467 11468 11469 if test yes != "$enable_dlopen"; then 11470 enable_dlopen=unknown 11471 enable_dlopen_self=unknown 11472 enable_dlopen_self_static=unknown 11473else 11474 lt_cv_dlopen=no 11475 lt_cv_dlopen_libs= 11476 11477 case $host_os in 11478 beos*) 11479 lt_cv_dlopen=load_add_on 11480 lt_cv_dlopen_libs= 11481 lt_cv_dlopen_self=yes 11482 ;; 11483 11484 mingw* | pw32* | cegcc*) 11485 lt_cv_dlopen=LoadLibrary 11486 lt_cv_dlopen_libs= 11487 ;; 11488 11489 cygwin*) 11490 lt_cv_dlopen=dlopen 11491 lt_cv_dlopen_libs= 11492 ;; 11493 11494 darwin*) 11495 # if libdl is installed we need to link against it 11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11497$as_echo_n "checking for dlopen in -ldl... " >&6; } 11498if ${ac_cv_lib_dl_dlopen+:} false; then : 11499 $as_echo_n "(cached) " >&6 11500else 11501 ac_check_lib_save_LIBS=$LIBS 11502LIBS="-ldl $LIBS" 11503cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11504/* end confdefs.h. */ 11505 11506/* Override any GCC internal prototype to avoid an error. 11507 Use char because int might match the return type of a GCC 11508 builtin and then its argument prototype would still apply. */ 11509#ifdef __cplusplus 11510extern "C" 11511#endif 11512char dlopen (); 11513int 11514main () 11515{ 11516return dlopen (); 11517 ; 11518 return 0; 11519} 11520_ACEOF 11521if ac_fn_c_try_link "$LINENO"; then : 11522 ac_cv_lib_dl_dlopen=yes 11523else 11524 ac_cv_lib_dl_dlopen=no 11525fi 11526rm -f core conftest.err conftest.$ac_objext \ 11527 conftest$ac_exeext conftest.$ac_ext 11528LIBS=$ac_check_lib_save_LIBS 11529fi 11530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11531$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11532if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11533 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11534else 11535 11536 lt_cv_dlopen=dyld 11537 lt_cv_dlopen_libs= 11538 lt_cv_dlopen_self=yes 11539 11540fi 11541 11542 ;; 11543 11544 tpf*) 11545 # Don't try to run any link tests for TPF. We know it's impossible 11546 # because TPF is a cross-compiler, and we know how we open DSOs. 11547 lt_cv_dlopen=dlopen 11548 lt_cv_dlopen_libs= 11549 lt_cv_dlopen_self=no 11550 ;; 11551 11552 *) 11553 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11554if test "x$ac_cv_func_shl_load" = xyes; then : 11555 lt_cv_dlopen=shl_load 11556else 11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11558$as_echo_n "checking for shl_load in -ldld... " >&6; } 11559if ${ac_cv_lib_dld_shl_load+:} false; then : 11560 $as_echo_n "(cached) " >&6 11561else 11562 ac_check_lib_save_LIBS=$LIBS 11563LIBS="-ldld $LIBS" 11564cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11565/* end confdefs.h. */ 11566 11567/* Override any GCC internal prototype to avoid an error. 11568 Use char because int might match the return type of a GCC 11569 builtin and then its argument prototype would still apply. */ 11570#ifdef __cplusplus 11571extern "C" 11572#endif 11573char shl_load (); 11574int 11575main () 11576{ 11577return shl_load (); 11578 ; 11579 return 0; 11580} 11581_ACEOF 11582if ac_fn_c_try_link "$LINENO"; then : 11583 ac_cv_lib_dld_shl_load=yes 11584else 11585 ac_cv_lib_dld_shl_load=no 11586fi 11587rm -f core conftest.err conftest.$ac_objext \ 11588 conftest$ac_exeext conftest.$ac_ext 11589LIBS=$ac_check_lib_save_LIBS 11590fi 11591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11592$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11593if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11594 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11595else 11596 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11597if test "x$ac_cv_func_dlopen" = xyes; then : 11598 lt_cv_dlopen=dlopen 11599else 11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11601$as_echo_n "checking for dlopen in -ldl... " >&6; } 11602if ${ac_cv_lib_dl_dlopen+:} false; then : 11603 $as_echo_n "(cached) " >&6 11604else 11605 ac_check_lib_save_LIBS=$LIBS 11606LIBS="-ldl $LIBS" 11607cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11608/* end confdefs.h. */ 11609 11610/* Override any GCC internal prototype to avoid an error. 11611 Use char because int might match the return type of a GCC 11612 builtin and then its argument prototype would still apply. */ 11613#ifdef __cplusplus 11614extern "C" 11615#endif 11616char dlopen (); 11617int 11618main () 11619{ 11620return dlopen (); 11621 ; 11622 return 0; 11623} 11624_ACEOF 11625if ac_fn_c_try_link "$LINENO"; then : 11626 ac_cv_lib_dl_dlopen=yes 11627else 11628 ac_cv_lib_dl_dlopen=no 11629fi 11630rm -f core conftest.err conftest.$ac_objext \ 11631 conftest$ac_exeext conftest.$ac_ext 11632LIBS=$ac_check_lib_save_LIBS 11633fi 11634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11635$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11636if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11637 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11638else 11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11640$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11641if ${ac_cv_lib_svld_dlopen+:} false; then : 11642 $as_echo_n "(cached) " >&6 11643else 11644 ac_check_lib_save_LIBS=$LIBS 11645LIBS="-lsvld $LIBS" 11646cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11647/* end confdefs.h. */ 11648 11649/* Override any GCC internal prototype to avoid an error. 11650 Use char because int might match the return type of a GCC 11651 builtin and then its argument prototype would still apply. */ 11652#ifdef __cplusplus 11653extern "C" 11654#endif 11655char dlopen (); 11656int 11657main () 11658{ 11659return dlopen (); 11660 ; 11661 return 0; 11662} 11663_ACEOF 11664if ac_fn_c_try_link "$LINENO"; then : 11665 ac_cv_lib_svld_dlopen=yes 11666else 11667 ac_cv_lib_svld_dlopen=no 11668fi 11669rm -f core conftest.err conftest.$ac_objext \ 11670 conftest$ac_exeext conftest.$ac_ext 11671LIBS=$ac_check_lib_save_LIBS 11672fi 11673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11674$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11675if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11676 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11677else 11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11679$as_echo_n "checking for dld_link in -ldld... " >&6; } 11680if ${ac_cv_lib_dld_dld_link+:} false; then : 11681 $as_echo_n "(cached) " >&6 11682else 11683 ac_check_lib_save_LIBS=$LIBS 11684LIBS="-ldld $LIBS" 11685cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11686/* end confdefs.h. */ 11687 11688/* Override any GCC internal prototype to avoid an error. 11689 Use char because int might match the return type of a GCC 11690 builtin and then its argument prototype would still apply. */ 11691#ifdef __cplusplus 11692extern "C" 11693#endif 11694char dld_link (); 11695int 11696main () 11697{ 11698return dld_link (); 11699 ; 11700 return 0; 11701} 11702_ACEOF 11703if ac_fn_c_try_link "$LINENO"; then : 11704 ac_cv_lib_dld_dld_link=yes 11705else 11706 ac_cv_lib_dld_dld_link=no 11707fi 11708rm -f core conftest.err conftest.$ac_objext \ 11709 conftest$ac_exeext conftest.$ac_ext 11710LIBS=$ac_check_lib_save_LIBS 11711fi 11712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11713$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11714if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11715 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11716fi 11717 11718 11719fi 11720 11721 11722fi 11723 11724 11725fi 11726 11727 11728fi 11729 11730 11731fi 11732 11733 ;; 11734 esac 11735 11736 if test no = "$lt_cv_dlopen"; then 11737 enable_dlopen=no 11738 else 11739 enable_dlopen=yes 11740 fi 11741 11742 case $lt_cv_dlopen in 11743 dlopen) 11744 save_CPPFLAGS=$CPPFLAGS 11745 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11746 11747 save_LDFLAGS=$LDFLAGS 11748 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11749 11750 save_LIBS=$LIBS 11751 LIBS="$lt_cv_dlopen_libs $LIBS" 11752 11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11754$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11755if ${lt_cv_dlopen_self+:} false; then : 11756 $as_echo_n "(cached) " >&6 11757else 11758 if test yes = "$cross_compiling"; then : 11759 lt_cv_dlopen_self=cross 11760else 11761 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11762 lt_status=$lt_dlunknown 11763 cat > conftest.$ac_ext <<_LT_EOF 11764#line $LINENO "configure" 11765#include "confdefs.h" 11766 11767#if HAVE_DLFCN_H 11768#include <dlfcn.h> 11769#endif 11770 11771#include <stdio.h> 11772 11773#ifdef RTLD_GLOBAL 11774# define LT_DLGLOBAL RTLD_GLOBAL 11775#else 11776# ifdef DL_GLOBAL 11777# define LT_DLGLOBAL DL_GLOBAL 11778# else 11779# define LT_DLGLOBAL 0 11780# endif 11781#endif 11782 11783/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11784 find out it does not work in some platform. */ 11785#ifndef LT_DLLAZY_OR_NOW 11786# ifdef RTLD_LAZY 11787# define LT_DLLAZY_OR_NOW RTLD_LAZY 11788# else 11789# ifdef DL_LAZY 11790# define LT_DLLAZY_OR_NOW DL_LAZY 11791# else 11792# ifdef RTLD_NOW 11793# define LT_DLLAZY_OR_NOW RTLD_NOW 11794# else 11795# ifdef DL_NOW 11796# define LT_DLLAZY_OR_NOW DL_NOW 11797# else 11798# define LT_DLLAZY_OR_NOW 0 11799# endif 11800# endif 11801# endif 11802# endif 11803#endif 11804 11805/* When -fvisibility=hidden is used, assume the code has been annotated 11806 correspondingly for the symbols needed. */ 11807#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11808int fnord () __attribute__((visibility("default"))); 11809#endif 11810 11811int fnord () { return 42; } 11812int main () 11813{ 11814 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11815 int status = $lt_dlunknown; 11816 11817 if (self) 11818 { 11819 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11820 else 11821 { 11822 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11823 else puts (dlerror ()); 11824 } 11825 /* dlclose (self); */ 11826 } 11827 else 11828 puts (dlerror ()); 11829 11830 return status; 11831} 11832_LT_EOF 11833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11834 (eval $ac_link) 2>&5 11835 ac_status=$? 11836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11837 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11838 (./conftest; exit; ) >&5 2>/dev/null 11839 lt_status=$? 11840 case x$lt_status in 11841 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11842 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11843 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11844 esac 11845 else : 11846 # compilation failed 11847 lt_cv_dlopen_self=no 11848 fi 11849fi 11850rm -fr conftest* 11851 11852 11853fi 11854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11855$as_echo "$lt_cv_dlopen_self" >&6; } 11856 11857 if test yes = "$lt_cv_dlopen_self"; then 11858 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11860$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11861if ${lt_cv_dlopen_self_static+:} false; then : 11862 $as_echo_n "(cached) " >&6 11863else 11864 if test yes = "$cross_compiling"; then : 11865 lt_cv_dlopen_self_static=cross 11866else 11867 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11868 lt_status=$lt_dlunknown 11869 cat > conftest.$ac_ext <<_LT_EOF 11870#line $LINENO "configure" 11871#include "confdefs.h" 11872 11873#if HAVE_DLFCN_H 11874#include <dlfcn.h> 11875#endif 11876 11877#include <stdio.h> 11878 11879#ifdef RTLD_GLOBAL 11880# define LT_DLGLOBAL RTLD_GLOBAL 11881#else 11882# ifdef DL_GLOBAL 11883# define LT_DLGLOBAL DL_GLOBAL 11884# else 11885# define LT_DLGLOBAL 0 11886# endif 11887#endif 11888 11889/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11890 find out it does not work in some platform. */ 11891#ifndef LT_DLLAZY_OR_NOW 11892# ifdef RTLD_LAZY 11893# define LT_DLLAZY_OR_NOW RTLD_LAZY 11894# else 11895# ifdef DL_LAZY 11896# define LT_DLLAZY_OR_NOW DL_LAZY 11897# else 11898# ifdef RTLD_NOW 11899# define LT_DLLAZY_OR_NOW RTLD_NOW 11900# else 11901# ifdef DL_NOW 11902# define LT_DLLAZY_OR_NOW DL_NOW 11903# else 11904# define LT_DLLAZY_OR_NOW 0 11905# endif 11906# endif 11907# endif 11908# endif 11909#endif 11910 11911/* When -fvisibility=hidden is used, assume the code has been annotated 11912 correspondingly for the symbols needed. */ 11913#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11914int fnord () __attribute__((visibility("default"))); 11915#endif 11916 11917int fnord () { return 42; } 11918int main () 11919{ 11920 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11921 int status = $lt_dlunknown; 11922 11923 if (self) 11924 { 11925 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11926 else 11927 { 11928 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11929 else puts (dlerror ()); 11930 } 11931 /* dlclose (self); */ 11932 } 11933 else 11934 puts (dlerror ()); 11935 11936 return status; 11937} 11938_LT_EOF 11939 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11940 (eval $ac_link) 2>&5 11941 ac_status=$? 11942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11943 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11944 (./conftest; exit; ) >&5 2>/dev/null 11945 lt_status=$? 11946 case x$lt_status in 11947 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11948 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11949 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11950 esac 11951 else : 11952 # compilation failed 11953 lt_cv_dlopen_self_static=no 11954 fi 11955fi 11956rm -fr conftest* 11957 11958 11959fi 11960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11961$as_echo "$lt_cv_dlopen_self_static" >&6; } 11962 fi 11963 11964 CPPFLAGS=$save_CPPFLAGS 11965 LDFLAGS=$save_LDFLAGS 11966 LIBS=$save_LIBS 11967 ;; 11968 esac 11969 11970 case $lt_cv_dlopen_self in 11971 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11972 *) enable_dlopen_self=unknown ;; 11973 esac 11974 11975 case $lt_cv_dlopen_self_static in 11976 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11977 *) enable_dlopen_self_static=unknown ;; 11978 esac 11979fi 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997striplib= 11998old_striplib= 11999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12000$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12001if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12002 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12003 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12005$as_echo "yes" >&6; } 12006else 12007# FIXME - insert some real tests, host_os isn't really good enough 12008 case $host_os in 12009 darwin*) 12010 if test -n "$STRIP"; then 12011 striplib="$STRIP -x" 12012 old_striplib="$STRIP -S" 12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12014$as_echo "yes" >&6; } 12015 else 12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12017$as_echo "no" >&6; } 12018 fi 12019 ;; 12020 *) 12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12022$as_echo "no" >&6; } 12023 ;; 12024 esac 12025fi 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 # Report what library types will actually be built 12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12040$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12042$as_echo "$can_build_shared" >&6; } 12043 12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12045$as_echo_n "checking whether to build shared libraries... " >&6; } 12046 test no = "$can_build_shared" && enable_shared=no 12047 12048 # On AIX, shared libraries and static libraries use the same namespace, and 12049 # are all built from PIC. 12050 case $host_os in 12051 aix3*) 12052 test yes = "$enable_shared" && enable_static=no 12053 if test -n "$RANLIB"; then 12054 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12055 postinstall_cmds='$RANLIB $lib' 12056 fi 12057 ;; 12058 12059 aix[4-9]*) 12060 if test ia64 != "$host_cpu"; then 12061 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12062 yes,aix,yes) ;; # shared object as lib.so file only 12063 yes,svr4,*) ;; # shared object as lib.so archive member only 12064 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12065 esac 12066 fi 12067 ;; 12068 esac 12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12070$as_echo "$enable_shared" >&6; } 12071 12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12073$as_echo_n "checking whether to build static libraries... " >&6; } 12074 # Make sure either enable_shared or enable_static is yes. 12075 test yes = "$enable_shared" || enable_static=yes 12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12077$as_echo "$enable_static" >&6; } 12078 12079 12080 12081 12082fi 12083ac_ext=c 12084ac_cpp='$CPP $CPPFLAGS' 12085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12087ac_compiler_gnu=$ac_cv_c_compiler_gnu 12088 12089CC=$lt_save_CC 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 ac_config_commands="$ac_config_commands libtool" 12106 12107 12108 12109 12110# Only expand once: 12111 12112 12113 12114if test "$GCC" = yes 12115then 12116 CFLAGS="-Wall $CFLAGS" 12117fi 12118 12119CPPFLAGS="$CPPFLAGS -I$srcdir/.. -I.." 12120 12121 12122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12123$as_echo_n "checking for ANSI C header files... " >&6; } 12124if ${ac_cv_header_stdc+:} false; then : 12125 $as_echo_n "(cached) " >&6 12126else 12127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12128/* end confdefs.h. */ 12129#include <stdlib.h> 12130#include <stdarg.h> 12131#include <string.h> 12132#include <float.h> 12133 12134int 12135main () 12136{ 12137 12138 ; 12139 return 0; 12140} 12141_ACEOF 12142if ac_fn_c_try_compile "$LINENO"; then : 12143 ac_cv_header_stdc=yes 12144else 12145 ac_cv_header_stdc=no 12146fi 12147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12148 12149if test $ac_cv_header_stdc = yes; then 12150 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12152/* end confdefs.h. */ 12153#include <string.h> 12154 12155_ACEOF 12156if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12157 $EGREP "memchr" >/dev/null 2>&1; then : 12158 12159else 12160 ac_cv_header_stdc=no 12161fi 12162rm -f conftest* 12163 12164fi 12165 12166if test $ac_cv_header_stdc = yes; then 12167 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12169/* end confdefs.h. */ 12170#include <stdlib.h> 12171 12172_ACEOF 12173if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12174 $EGREP "free" >/dev/null 2>&1; then : 12175 12176else 12177 ac_cv_header_stdc=no 12178fi 12179rm -f conftest* 12180 12181fi 12182 12183if test $ac_cv_header_stdc = yes; then 12184 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12185 if test "$cross_compiling" = yes; then : 12186 : 12187else 12188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12189/* end confdefs.h. */ 12190#include <ctype.h> 12191#include <stdlib.h> 12192#if ((' ' & 0x0FF) == 0x020) 12193# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12194# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12195#else 12196# define ISLOWER(c) \ 12197 (('a' <= (c) && (c) <= 'i') \ 12198 || ('j' <= (c) && (c) <= 'r') \ 12199 || ('s' <= (c) && (c) <= 'z')) 12200# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12201#endif 12202 12203#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12204int 12205main () 12206{ 12207 int i; 12208 for (i = 0; i < 256; i++) 12209 if (XOR (islower (i), ISLOWER (i)) 12210 || toupper (i) != TOUPPER (i)) 12211 return 2; 12212 return 0; 12213} 12214_ACEOF 12215if ac_fn_c_try_run "$LINENO"; then : 12216 12217else 12218 ac_cv_header_stdc=no 12219fi 12220rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12221 conftest.$ac_objext conftest.beam conftest.$ac_ext 12222fi 12223 12224fi 12225fi 12226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 12227$as_echo "$ac_cv_header_stdc" >&6; } 12228if test $ac_cv_header_stdc = yes; then 12229 12230$as_echo "#define STDC_HEADERS 1" >>confdefs.h 12231 12232fi 12233 12234 12235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 12236$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 12237if ${ac_cv_c_const+:} false; then : 12238 $as_echo_n "(cached) " >&6 12239else 12240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12241/* end confdefs.h. */ 12242 12243int 12244main () 12245{ 12246 12247#ifndef __cplusplus 12248 /* Ultrix mips cc rejects this sort of thing. */ 12249 typedef int charset[2]; 12250 const charset cs = { 0, 0 }; 12251 /* SunOS 4.1.1 cc rejects this. */ 12252 char const *const *pcpcc; 12253 char **ppc; 12254 /* NEC SVR4.0.2 mips cc rejects this. */ 12255 struct point {int x, y;}; 12256 static struct point const zero = {0,0}; 12257 /* AIX XL C 1.02.0.0 rejects this. 12258 It does not let you subtract one const X* pointer from another in 12259 an arm of an if-expression whose if-part is not a constant 12260 expression */ 12261 const char *g = "string"; 12262 pcpcc = &g + (g ? g-g : 0); 12263 /* HPUX 7.0 cc rejects these. */ 12264 ++pcpcc; 12265 ppc = (char**) pcpcc; 12266 pcpcc = (char const *const *) ppc; 12267 { /* SCO 3.2v4 cc rejects this sort of thing. */ 12268 char tx; 12269 char *t = &tx; 12270 char const *s = 0 ? (char *) 0 : (char const *) 0; 12271 12272 *t++ = 0; 12273 if (s) return 0; 12274 } 12275 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 12276 int x[] = {25, 17}; 12277 const int *foo = &x[0]; 12278 ++foo; 12279 } 12280 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 12281 typedef const int *iptr; 12282 iptr p = 0; 12283 ++p; 12284 } 12285 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 12286 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 12287 struct s { int j; const int *ap[3]; } bx; 12288 struct s *b = &bx; b->j = 5; 12289 } 12290 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 12291 const int foo = 10; 12292 if (!foo) return 0; 12293 } 12294 return !cs[0] && !zero.x; 12295#endif 12296 12297 ; 12298 return 0; 12299} 12300_ACEOF 12301if ac_fn_c_try_compile "$LINENO"; then : 12302 ac_cv_c_const=yes 12303else 12304 ac_cv_c_const=no 12305fi 12306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12307fi 12308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 12309$as_echo "$ac_cv_c_const" >&6; } 12310if test $ac_cv_c_const = no; then 12311 12312$as_echo "#define const /**/" >>confdefs.h 12313 12314fi 12315 12316ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 12317if test "x$ac_cv_type_size_t" = xyes; then : 12318 12319else 12320 12321cat >>confdefs.h <<_ACEOF 12322#define size_t unsigned int 12323_ACEOF 12324 12325fi 12326 12327 12328 12329 12330TESTPROGS="" 12331 12332hmac_list="" 12333 12334hashlibs="" 12335if test -d ${srcdir}/../md5 12336then 12337 TESTPROGS="$TESTPROGS md5hmactest${EXEEXT}" 12338 hmac_list="$hmac_list &hmac_md5," 12339 hashlibs="$hashlibs ../md5/libmd5.la" 12340fi 12341 12342if test -d ${srcdir}/../sha1 12343then 12344 TESTPROGS="$TESTPROGS sha1hmactest${EXEEXT}" 12345 hmac_list="$hmac_list &hmac_sha1, &hmac_sha256, " 12346 hashlibs="$hashlibs ../sha1/libsha1.la" 12347fi 12348 12349 12350hmac_list="$hmac_list 0" 12351 12352 12353 12354cat >>confdefs.h <<_ACEOF 12355#define HMAC_LIST $hmac_list 12356_ACEOF 12357 12358 12359ac_config_files="$ac_config_files Makefile" 12360 12361cat >confcache <<\_ACEOF 12362# This file is a shell script that caches the results of configure 12363# tests run on this system so they can be shared between configure 12364# scripts and configure runs, see configure's option --config-cache. 12365# It is not useful on other systems. If it contains results you don't 12366# want to keep, you may remove or edit it. 12367# 12368# config.status only pays attention to the cache file if you give it 12369# the --recheck option to rerun configure. 12370# 12371# `ac_cv_env_foo' variables (set or unset) will be overridden when 12372# loading this file, other *unset* `ac_cv_foo' will be assigned the 12373# following values. 12374 12375_ACEOF 12376 12377# The following way of writing the cache mishandles newlines in values, 12378# but we know of no workaround that is simple, portable, and efficient. 12379# So, we kill variables containing newlines. 12380# Ultrix sh set writes to stderr and can't be redirected directly, 12381# and sets the high bit in the cache file unless we assign to the vars. 12382( 12383 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12384 eval ac_val=\$$ac_var 12385 case $ac_val in #( 12386 *${as_nl}*) 12387 case $ac_var in #( 12388 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12389$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12390 esac 12391 case $ac_var in #( 12392 _ | IFS | as_nl) ;; #( 12393 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12394 *) { eval $ac_var=; unset $ac_var;} ;; 12395 esac ;; 12396 esac 12397 done 12398 12399 (set) 2>&1 | 12400 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12401 *${as_nl}ac_space=\ *) 12402 # `set' does not quote correctly, so add quotes: double-quote 12403 # substitution turns \\\\ into \\, and sed turns \\ into \. 12404 sed -n \ 12405 "s/'/'\\\\''/g; 12406 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12407 ;; #( 12408 *) 12409 # `set' quotes correctly as required by POSIX, so do not add quotes. 12410 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12411 ;; 12412 esac | 12413 sort 12414) | 12415 sed ' 12416 /^ac_cv_env_/b end 12417 t clear 12418 :clear 12419 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12420 t end 12421 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12422 :end' >>confcache 12423if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12424 if test -w "$cache_file"; then 12425 if test "x$cache_file" != "x/dev/null"; then 12426 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12427$as_echo "$as_me: updating cache $cache_file" >&6;} 12428 if test ! -f "$cache_file" || test -h "$cache_file"; then 12429 cat confcache >"$cache_file" 12430 else 12431 case $cache_file in #( 12432 */* | ?:*) 12433 mv -f confcache "$cache_file"$$ && 12434 mv -f "$cache_file"$$ "$cache_file" ;; #( 12435 *) 12436 mv -f confcache "$cache_file" ;; 12437 esac 12438 fi 12439 fi 12440 else 12441 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12442$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12443 fi 12444fi 12445rm -f confcache 12446 12447test "x$prefix" = xNONE && prefix=$ac_default_prefix 12448# Let make expand exec_prefix. 12449test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12450 12451DEFS=-DHAVE_CONFIG_H 12452 12453ac_libobjs= 12454ac_ltlibobjs= 12455U= 12456for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12457 # 1. Remove the extension, and $U if already installed. 12458 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12459 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12460 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12461 # will be set to the directory where LIBOBJS objects are built. 12462 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12463 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12464done 12465LIBOBJS=$ac_libobjs 12466 12467LTLIBOBJS=$ac_ltlibobjs 12468 12469 12470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12471$as_echo_n "checking that generated files are newer than configure... " >&6; } 12472 if test -n "$am_sleep_pid"; then 12473 # Hide warnings about reused PIDs. 12474 wait $am_sleep_pid 2>/dev/null 12475 fi 12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 12477$as_echo "done" >&6; } 12478 if test -n "$EXEEXT"; then 12479 am__EXEEXT_TRUE= 12480 am__EXEEXT_FALSE='#' 12481else 12482 am__EXEEXT_TRUE='#' 12483 am__EXEEXT_FALSE= 12484fi 12485 12486if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12487 as_fn_error $? "conditional \"AMDEP\" was never defined. 12488Usually this means the macro was only invoked conditionally." "$LINENO" 5 12489fi 12490if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12491 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12492Usually this means the macro was only invoked conditionally." "$LINENO" 5 12493fi 12494 12495: "${CONFIG_STATUS=./config.status}" 12496ac_write_fail=0 12497ac_clean_files_save=$ac_clean_files 12498ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12499{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12500$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12501as_write_fail=0 12502cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12503#! $SHELL 12504# Generated by $as_me. 12505# Run this file to recreate the current configuration. 12506# Compiler output produced by configure, useful for debugging 12507# configure, is in config.log if it exists. 12508 12509debug=false 12510ac_cs_recheck=false 12511ac_cs_silent=false 12512 12513SHELL=\${CONFIG_SHELL-$SHELL} 12514export SHELL 12515_ASEOF 12516cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12517## -------------------- ## 12518## M4sh Initialization. ## 12519## -------------------- ## 12520 12521# Be more Bourne compatible 12522DUALCASE=1; export DUALCASE # for MKS sh 12523if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12524 emulate sh 12525 NULLCMD=: 12526 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12527 # is contrary to our usage. Disable this feature. 12528 alias -g '${1+"$@"}'='"$@"' 12529 setopt NO_GLOB_SUBST 12530else 12531 case `(set -o) 2>/dev/null` in #( 12532 *posix*) : 12533 set -o posix ;; #( 12534 *) : 12535 ;; 12536esac 12537fi 12538 12539 12540as_nl=' 12541' 12542export as_nl 12543# Printing a long string crashes Solaris 7 /usr/bin/printf. 12544as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12545as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12546as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12547# Prefer a ksh shell builtin over an external printf program on Solaris, 12548# but without wasting forks for bash or zsh. 12549if test -z "$BASH_VERSION$ZSH_VERSION" \ 12550 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12551 as_echo='print -r --' 12552 as_echo_n='print -rn --' 12553elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12554 as_echo='printf %s\n' 12555 as_echo_n='printf %s' 12556else 12557 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12558 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12559 as_echo_n='/usr/ucb/echo -n' 12560 else 12561 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12562 as_echo_n_body='eval 12563 arg=$1; 12564 case $arg in #( 12565 *"$as_nl"*) 12566 expr "X$arg" : "X\\(.*\\)$as_nl"; 12567 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12568 esac; 12569 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12570 ' 12571 export as_echo_n_body 12572 as_echo_n='sh -c $as_echo_n_body as_echo' 12573 fi 12574 export as_echo_body 12575 as_echo='sh -c $as_echo_body as_echo' 12576fi 12577 12578# The user is always right. 12579if test "${PATH_SEPARATOR+set}" != set; then 12580 PATH_SEPARATOR=: 12581 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12582 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12583 PATH_SEPARATOR=';' 12584 } 12585fi 12586 12587 12588# IFS 12589# We need space, tab and new line, in precisely that order. Quoting is 12590# there to prevent editors from complaining about space-tab. 12591# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12592# splitting by setting IFS to empty value.) 12593IFS=" "" $as_nl" 12594 12595# Find who we are. Look in the path if we contain no directory separator. 12596as_myself= 12597case $0 in #(( 12598 *[\\/]* ) as_myself=$0 ;; 12599 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12600for as_dir in $PATH 12601do 12602 IFS=$as_save_IFS 12603 test -z "$as_dir" && as_dir=. 12604 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12605 done 12606IFS=$as_save_IFS 12607 12608 ;; 12609esac 12610# We did not find ourselves, most probably we were run as `sh COMMAND' 12611# in which case we are not to be found in the path. 12612if test "x$as_myself" = x; then 12613 as_myself=$0 12614fi 12615if test ! -f "$as_myself"; then 12616 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12617 exit 1 12618fi 12619 12620# Unset variables that we do not need and which cause bugs (e.g. in 12621# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12622# suppresses any "Segmentation fault" message there. '((' could 12623# trigger a bug in pdksh 5.2.14. 12624for as_var in BASH_ENV ENV MAIL MAILPATH 12625do eval test x\${$as_var+set} = xset \ 12626 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12627done 12628PS1='$ ' 12629PS2='> ' 12630PS4='+ ' 12631 12632# NLS nuisances. 12633LC_ALL=C 12634export LC_ALL 12635LANGUAGE=C 12636export LANGUAGE 12637 12638# CDPATH. 12639(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12640 12641 12642# as_fn_error STATUS ERROR [LINENO LOG_FD] 12643# ---------------------------------------- 12644# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12645# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12646# script with STATUS, using 1 if that was 0. 12647as_fn_error () 12648{ 12649 as_status=$1; test $as_status -eq 0 && as_status=1 12650 if test "$4"; then 12651 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12652 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12653 fi 12654 $as_echo "$as_me: error: $2" >&2 12655 as_fn_exit $as_status 12656} # as_fn_error 12657 12658 12659# as_fn_set_status STATUS 12660# ----------------------- 12661# Set $? to STATUS, without forking. 12662as_fn_set_status () 12663{ 12664 return $1 12665} # as_fn_set_status 12666 12667# as_fn_exit STATUS 12668# ----------------- 12669# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12670as_fn_exit () 12671{ 12672 set +e 12673 as_fn_set_status $1 12674 exit $1 12675} # as_fn_exit 12676 12677# as_fn_unset VAR 12678# --------------- 12679# Portably unset VAR. 12680as_fn_unset () 12681{ 12682 { eval $1=; unset $1;} 12683} 12684as_unset=as_fn_unset 12685# as_fn_append VAR VALUE 12686# ---------------------- 12687# Append the text in VALUE to the end of the definition contained in VAR. Take 12688# advantage of any shell optimizations that allow amortized linear growth over 12689# repeated appends, instead of the typical quadratic growth present in naive 12690# implementations. 12691if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12692 eval 'as_fn_append () 12693 { 12694 eval $1+=\$2 12695 }' 12696else 12697 as_fn_append () 12698 { 12699 eval $1=\$$1\$2 12700 } 12701fi # as_fn_append 12702 12703# as_fn_arith ARG... 12704# ------------------ 12705# Perform arithmetic evaluation on the ARGs, and store the result in the 12706# global $as_val. Take advantage of shells that can avoid forks. The arguments 12707# must be portable across $(()) and expr. 12708if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12709 eval 'as_fn_arith () 12710 { 12711 as_val=$(( $* )) 12712 }' 12713else 12714 as_fn_arith () 12715 { 12716 as_val=`expr "$@" || test $? -eq 1` 12717 } 12718fi # as_fn_arith 12719 12720 12721if expr a : '\(a\)' >/dev/null 2>&1 && 12722 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12723 as_expr=expr 12724else 12725 as_expr=false 12726fi 12727 12728if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12729 as_basename=basename 12730else 12731 as_basename=false 12732fi 12733 12734if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12735 as_dirname=dirname 12736else 12737 as_dirname=false 12738fi 12739 12740as_me=`$as_basename -- "$0" || 12741$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12742 X"$0" : 'X\(//\)$' \| \ 12743 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12744$as_echo X/"$0" | 12745 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12746 s//\1/ 12747 q 12748 } 12749 /^X\/\(\/\/\)$/{ 12750 s//\1/ 12751 q 12752 } 12753 /^X\/\(\/\).*/{ 12754 s//\1/ 12755 q 12756 } 12757 s/.*/./; q'` 12758 12759# Avoid depending upon Character Ranges. 12760as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12761as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12762as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12763as_cr_digits='0123456789' 12764as_cr_alnum=$as_cr_Letters$as_cr_digits 12765 12766ECHO_C= ECHO_N= ECHO_T= 12767case `echo -n x` in #((((( 12768-n*) 12769 case `echo 'xy\c'` in 12770 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12771 xy) ECHO_C='\c';; 12772 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12773 ECHO_T=' ';; 12774 esac;; 12775*) 12776 ECHO_N='-n';; 12777esac 12778 12779rm -f conf$$ conf$$.exe conf$$.file 12780if test -d conf$$.dir; then 12781 rm -f conf$$.dir/conf$$.file 12782else 12783 rm -f conf$$.dir 12784 mkdir conf$$.dir 2>/dev/null 12785fi 12786if (echo >conf$$.file) 2>/dev/null; then 12787 if ln -s conf$$.file conf$$ 2>/dev/null; then 12788 as_ln_s='ln -s' 12789 # ... but there are two gotchas: 12790 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12791 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12792 # In both cases, we have to default to `cp -pR'. 12793 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12794 as_ln_s='cp -pR' 12795 elif ln conf$$.file conf$$ 2>/dev/null; then 12796 as_ln_s=ln 12797 else 12798 as_ln_s='cp -pR' 12799 fi 12800else 12801 as_ln_s='cp -pR' 12802fi 12803rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12804rmdir conf$$.dir 2>/dev/null 12805 12806 12807# as_fn_mkdir_p 12808# ------------- 12809# Create "$as_dir" as a directory, including parents if necessary. 12810as_fn_mkdir_p () 12811{ 12812 12813 case $as_dir in #( 12814 -*) as_dir=./$as_dir;; 12815 esac 12816 test -d "$as_dir" || eval $as_mkdir_p || { 12817 as_dirs= 12818 while :; do 12819 case $as_dir in #( 12820 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12821 *) as_qdir=$as_dir;; 12822 esac 12823 as_dirs="'$as_qdir' $as_dirs" 12824 as_dir=`$as_dirname -- "$as_dir" || 12825$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12826 X"$as_dir" : 'X\(//\)[^/]' \| \ 12827 X"$as_dir" : 'X\(//\)$' \| \ 12828 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12829$as_echo X"$as_dir" | 12830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12831 s//\1/ 12832 q 12833 } 12834 /^X\(\/\/\)[^/].*/{ 12835 s//\1/ 12836 q 12837 } 12838 /^X\(\/\/\)$/{ 12839 s//\1/ 12840 q 12841 } 12842 /^X\(\/\).*/{ 12843 s//\1/ 12844 q 12845 } 12846 s/.*/./; q'` 12847 test -d "$as_dir" && break 12848 done 12849 test -z "$as_dirs" || eval "mkdir $as_dirs" 12850 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12851 12852 12853} # as_fn_mkdir_p 12854if mkdir -p . 2>/dev/null; then 12855 as_mkdir_p='mkdir -p "$as_dir"' 12856else 12857 test -d ./-p && rmdir ./-p 12858 as_mkdir_p=false 12859fi 12860 12861 12862# as_fn_executable_p FILE 12863# ----------------------- 12864# Test if FILE is an executable regular file. 12865as_fn_executable_p () 12866{ 12867 test -f "$1" && test -x "$1" 12868} # as_fn_executable_p 12869as_test_x='test -x' 12870as_executable_p=as_fn_executable_p 12871 12872# Sed expression to map a string onto a valid CPP name. 12873as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12874 12875# Sed expression to map a string onto a valid variable name. 12876as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12877 12878 12879exec 6>&1 12880## ----------------------------------- ## 12881## Main body of $CONFIG_STATUS script. ## 12882## ----------------------------------- ## 12883_ASEOF 12884test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12885 12886cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12887# Save the log message, to keep $0 and so on meaningful, and to 12888# report actual input values of CONFIG_FILES etc. instead of their 12889# values after options handling. 12890ac_log=" 12891This file was extended by libhmac $as_me 1.00, which was 12892generated by GNU Autoconf 2.69. Invocation command line was 12893 12894 CONFIG_FILES = $CONFIG_FILES 12895 CONFIG_HEADERS = $CONFIG_HEADERS 12896 CONFIG_LINKS = $CONFIG_LINKS 12897 CONFIG_COMMANDS = $CONFIG_COMMANDS 12898 $ $0 $@ 12899 12900on `(hostname || uname -n) 2>/dev/null | sed 1q` 12901" 12902 12903_ACEOF 12904 12905case $ac_config_files in *" 12906"*) set x $ac_config_files; shift; ac_config_files=$*;; 12907esac 12908 12909case $ac_config_headers in *" 12910"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12911esac 12912 12913 12914cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12915# Files that config.status was made for. 12916config_files="$ac_config_files" 12917config_headers="$ac_config_headers" 12918config_commands="$ac_config_commands" 12919 12920_ACEOF 12921 12922cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12923ac_cs_usage="\ 12924\`$as_me' instantiates files and other configuration actions 12925from templates according to the current configuration. Unless the files 12926and actions are specified as TAGs, all are instantiated by default. 12927 12928Usage: $0 [OPTION]... [TAG]... 12929 12930 -h, --help print this help, then exit 12931 -V, --version print version number and configuration settings, then exit 12932 --config print configuration, then exit 12933 -q, --quiet, --silent 12934 do not print progress messages 12935 -d, --debug don't remove temporary files 12936 --recheck update $as_me by reconfiguring in the same conditions 12937 --file=FILE[:TEMPLATE] 12938 instantiate the configuration file FILE 12939 --header=FILE[:TEMPLATE] 12940 instantiate the configuration header FILE 12941 12942Configuration files: 12943$config_files 12944 12945Configuration headers: 12946$config_headers 12947 12948Configuration commands: 12949$config_commands 12950 12951Report bugs to <courier-users@lists.sourceforge.net>." 12952 12953_ACEOF 12954cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12955ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 12956ac_cs_version="\\ 12957libhmac config.status 1.00 12958configured by $0, generated by GNU Autoconf 2.69, 12959 with options \\"\$ac_cs_config\\" 12960 12961Copyright (C) 2012 Free Software Foundation, Inc. 12962This config.status script is free software; the Free Software Foundation 12963gives unlimited permission to copy, distribute and modify it." 12964 12965ac_pwd='$ac_pwd' 12966srcdir='$srcdir' 12967INSTALL='$INSTALL' 12968MKDIR_P='$MKDIR_P' 12969AWK='$AWK' 12970test -n "\$AWK" || AWK=awk 12971_ACEOF 12972 12973cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12974# The default lists apply if the user does not specify any file. 12975ac_need_defaults=: 12976while test $# != 0 12977do 12978 case $1 in 12979 --*=?*) 12980 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12981 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12982 ac_shift=: 12983 ;; 12984 --*=) 12985 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12986 ac_optarg= 12987 ac_shift=: 12988 ;; 12989 *) 12990 ac_option=$1 12991 ac_optarg=$2 12992 ac_shift=shift 12993 ;; 12994 esac 12995 12996 case $ac_option in 12997 # Handling of the options. 12998 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12999 ac_cs_recheck=: ;; 13000 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13001 $as_echo "$ac_cs_version"; exit ;; 13002 --config | --confi | --conf | --con | --co | --c ) 13003 $as_echo "$ac_cs_config"; exit ;; 13004 --debug | --debu | --deb | --de | --d | -d ) 13005 debug=: ;; 13006 --file | --fil | --fi | --f ) 13007 $ac_shift 13008 case $ac_optarg in 13009 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13010 '') as_fn_error $? "missing file argument" ;; 13011 esac 13012 as_fn_append CONFIG_FILES " '$ac_optarg'" 13013 ac_need_defaults=false;; 13014 --header | --heade | --head | --hea ) 13015 $ac_shift 13016 case $ac_optarg in 13017 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13018 esac 13019 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13020 ac_need_defaults=false;; 13021 --he | --h) 13022 # Conflict between --help and --header 13023 as_fn_error $? "ambiguous option: \`$1' 13024Try \`$0 --help' for more information.";; 13025 --help | --hel | -h ) 13026 $as_echo "$ac_cs_usage"; exit ;; 13027 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13028 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13029 ac_cs_silent=: ;; 13030 13031 # This is an error. 13032 -*) as_fn_error $? "unrecognized option: \`$1' 13033Try \`$0 --help' for more information." ;; 13034 13035 *) as_fn_append ac_config_targets " $1" 13036 ac_need_defaults=false ;; 13037 13038 esac 13039 shift 13040done 13041 13042ac_configure_extra_args= 13043 13044if $ac_cs_silent; then 13045 exec 6>/dev/null 13046 ac_configure_extra_args="$ac_configure_extra_args --silent" 13047fi 13048 13049_ACEOF 13050cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13051if \$ac_cs_recheck; then 13052 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13053 shift 13054 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13055 CONFIG_SHELL='$SHELL' 13056 export CONFIG_SHELL 13057 exec "\$@" 13058fi 13059 13060_ACEOF 13061cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13062exec 5>>config.log 13063{ 13064 echo 13065 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13066## Running $as_me. ## 13067_ASBOX 13068 $as_echo "$ac_log" 13069} >&5 13070 13071_ACEOF 13072cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13073# 13074# INIT-COMMANDS 13075# 13076AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 13077 13078 13079# The HP-UX ksh and POSIX shell print the target directory to stdout 13080# if CDPATH is set. 13081(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13082 13083sed_quote_subst='$sed_quote_subst' 13084double_quote_subst='$double_quote_subst' 13085delay_variable_subst='$delay_variable_subst' 13086macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 13087macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 13088enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 13089enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 13090pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 13091enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 13092shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 13093SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 13094ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 13095PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 13096host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 13097host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 13098host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 13099build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 13100build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 13101build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 13102SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 13103Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 13104GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 13105EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 13106FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 13107LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 13108NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 13109LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 13110max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 13111ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 13112exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 13113lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 13114lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 13115lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 13116lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 13117lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 13118reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 13119reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 13120OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 13121deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 13122file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 13123file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 13124want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 13125DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 13126sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 13127AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 13128AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 13129archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 13130STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 13131RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 13132old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13133old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13134old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 13135lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 13136CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 13137CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 13138compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 13139GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 13140lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 13141lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 13142lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 13143lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 13144lt_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"`' 13145lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 13146nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 13147lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 13148lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 13149objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 13150MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 13151lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 13152lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 13153lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 13154lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 13155lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 13156need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 13157MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 13158DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 13159NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 13160LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 13161OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 13162OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 13163libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 13164shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 13165extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13166archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 13167enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 13168export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 13169whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 13170compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 13171old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 13172old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13173archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 13174archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13175module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 13176module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13177with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 13178allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 13179no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 13180hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 13181hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 13182hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 13183hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 13184hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 13185hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 13186hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 13187inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 13188link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 13189always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 13190export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 13191exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 13192include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 13193prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 13194postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 13195file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 13196variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 13197need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 13198need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 13199version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 13200runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 13201shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 13202shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 13203libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 13204library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 13205soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 13206install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 13207postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13208postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13209finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 13210finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 13211hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 13212sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 13213configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 13214configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 13215hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 13216enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 13217enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 13218enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 13219old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 13220striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 13221 13222LTCC='$LTCC' 13223LTCFLAGS='$LTCFLAGS' 13224compiler='$compiler_DEFAULT' 13225 13226# A function that is used when there is no print builtin or printf. 13227func_fallback_echo () 13228{ 13229 eval 'cat <<_LTECHO_EOF 13230\$1 13231_LTECHO_EOF' 13232} 13233 13234# Quote evaled strings. 13235for var in SHELL \ 13236ECHO \ 13237PATH_SEPARATOR \ 13238SED \ 13239GREP \ 13240EGREP \ 13241FGREP \ 13242LD \ 13243NM \ 13244LN_S \ 13245lt_SP2NL \ 13246lt_NL2SP \ 13247reload_flag \ 13248OBJDUMP \ 13249deplibs_check_method \ 13250file_magic_cmd \ 13251file_magic_glob \ 13252want_nocaseglob \ 13253DLLTOOL \ 13254sharedlib_from_linklib_cmd \ 13255AR \ 13256AR_FLAGS \ 13257archiver_list_spec \ 13258STRIP \ 13259RANLIB \ 13260CC \ 13261CFLAGS \ 13262compiler \ 13263lt_cv_sys_global_symbol_pipe \ 13264lt_cv_sys_global_symbol_to_cdecl \ 13265lt_cv_sys_global_symbol_to_import \ 13266lt_cv_sys_global_symbol_to_c_name_address \ 13267lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13268lt_cv_nm_interface \ 13269nm_file_list_spec \ 13270lt_cv_truncate_bin \ 13271lt_prog_compiler_no_builtin_flag \ 13272lt_prog_compiler_pic \ 13273lt_prog_compiler_wl \ 13274lt_prog_compiler_static \ 13275lt_cv_prog_compiler_c_o \ 13276need_locks \ 13277MANIFEST_TOOL \ 13278DSYMUTIL \ 13279NMEDIT \ 13280LIPO \ 13281OTOOL \ 13282OTOOL64 \ 13283shrext_cmds \ 13284export_dynamic_flag_spec \ 13285whole_archive_flag_spec \ 13286compiler_needs_object \ 13287with_gnu_ld \ 13288allow_undefined_flag \ 13289no_undefined_flag \ 13290hardcode_libdir_flag_spec \ 13291hardcode_libdir_separator \ 13292exclude_expsyms \ 13293include_expsyms \ 13294file_list_spec \ 13295variables_saved_for_relink \ 13296libname_spec \ 13297library_names_spec \ 13298soname_spec \ 13299install_override_mode \ 13300finish_eval \ 13301old_striplib \ 13302striplib; do 13303 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13304 *[\\\\\\\`\\"\\\$]*) 13305 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 13306 ;; 13307 *) 13308 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13309 ;; 13310 esac 13311done 13312 13313# Double-quote double-evaled strings. 13314for var in reload_cmds \ 13315old_postinstall_cmds \ 13316old_postuninstall_cmds \ 13317old_archive_cmds \ 13318extract_expsyms_cmds \ 13319old_archive_from_new_cmds \ 13320old_archive_from_expsyms_cmds \ 13321archive_cmds \ 13322archive_expsym_cmds \ 13323module_cmds \ 13324module_expsym_cmds \ 13325export_symbols_cmds \ 13326prelink_cmds \ 13327postlink_cmds \ 13328postinstall_cmds \ 13329postuninstall_cmds \ 13330finish_cmds \ 13331sys_lib_search_path_spec \ 13332configure_time_dlsearch_path \ 13333configure_time_lt_sys_library_path; do 13334 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13335 *[\\\\\\\`\\"\\\$]*) 13336 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 13337 ;; 13338 *) 13339 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13340 ;; 13341 esac 13342done 13343 13344ac_aux_dir='$ac_aux_dir' 13345 13346# See if we are running on zsh, and set the options that allow our 13347# commands through without removal of \ escapes INIT. 13348if test -n "\${ZSH_VERSION+set}"; then 13349 setopt NO_GLOB_SUBST 13350fi 13351 13352 13353 PACKAGE='$PACKAGE' 13354 VERSION='$VERSION' 13355 RM='$RM' 13356 ofile='$ofile' 13357 13358 13359 13360 13361_ACEOF 13362 13363cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13364 13365# Handling of arguments. 13366for ac_config_target in $ac_config_targets 13367do 13368 case $ac_config_target in 13369 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13370 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13371 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13372 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13373 13374 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13375 esac 13376done 13377 13378 13379# If the user did not use the arguments to specify the items to instantiate, 13380# then the envvar interface is used. Set only those that are not. 13381# We use the long form for the default assignment because of an extremely 13382# bizarre bug on SunOS 4.1.3. 13383if $ac_need_defaults; then 13384 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13385 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13386 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13387fi 13388 13389# Have a temporary directory for convenience. Make it in the build tree 13390# simply because there is no reason against having it here, and in addition, 13391# creating and moving files from /tmp can sometimes cause problems. 13392# Hook for its removal unless debugging. 13393# Note that there is a small window in which the directory will not be cleaned: 13394# after its creation but before its name has been assigned to `$tmp'. 13395$debug || 13396{ 13397 tmp= ac_tmp= 13398 trap 'exit_status=$? 13399 : "${ac_tmp:=$tmp}" 13400 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13401' 0 13402 trap 'as_fn_exit 1' 1 2 13 15 13403} 13404# Create a (secure) tmp directory for tmp files. 13405 13406{ 13407 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13408 test -d "$tmp" 13409} || 13410{ 13411 tmp=./conf$$-$RANDOM 13412 (umask 077 && mkdir "$tmp") 13413} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13414ac_tmp=$tmp 13415 13416# Set up the scripts for CONFIG_FILES section. 13417# No need to generate them if there are no CONFIG_FILES. 13418# This happens for instance with `./config.status config.h'. 13419if test -n "$CONFIG_FILES"; then 13420 13421 13422ac_cr=`echo X | tr X '\015'` 13423# On cygwin, bash can eat \r inside `` if the user requested igncr. 13424# But we know of no other shell where ac_cr would be empty at this 13425# point, so we can use a bashism as a fallback. 13426if test "x$ac_cr" = x; then 13427 eval ac_cr=\$\'\\r\' 13428fi 13429ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13430if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13431 ac_cs_awk_cr='\\r' 13432else 13433 ac_cs_awk_cr=$ac_cr 13434fi 13435 13436echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 13437_ACEOF 13438 13439 13440{ 13441 echo "cat >conf$$subs.awk <<_ACEOF" && 13442 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13443 echo "_ACEOF" 13444} >conf$$subs.sh || 13445 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13446ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13447ac_delim='%!_!# ' 13448for ac_last_try in false false false false false :; do 13449 . ./conf$$subs.sh || 13450 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13451 13452 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13453 if test $ac_delim_n = $ac_delim_num; then 13454 break 13455 elif $ac_last_try; then 13456 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13457 else 13458 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13459 fi 13460done 13461rm -f conf$$subs.sh 13462 13463cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13464cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13465_ACEOF 13466sed -n ' 13467h 13468s/^/S["/; s/!.*/"]=/ 13469p 13470g 13471s/^[^!]*!// 13472:repl 13473t repl 13474s/'"$ac_delim"'$// 13475t delim 13476:nl 13477h 13478s/\(.\{148\}\)..*/\1/ 13479t more1 13480s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13481p 13482n 13483b repl 13484:more1 13485s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13486p 13487g 13488s/.\{148\}// 13489t nl 13490:delim 13491h 13492s/\(.\{148\}\)..*/\1/ 13493t more2 13494s/["\\]/\\&/g; s/^/"/; s/$/"/ 13495p 13496b 13497:more2 13498s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13499p 13500g 13501s/.\{148\}// 13502t delim 13503' <conf$$subs.awk | sed ' 13504/^[^""]/{ 13505 N 13506 s/\n// 13507} 13508' >>$CONFIG_STATUS || ac_write_fail=1 13509rm -f conf$$subs.awk 13510cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13511_ACAWK 13512cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13513 for (key in S) S_is_set[key] = 1 13514 FS = "" 13515 13516} 13517{ 13518 line = $ 0 13519 nfields = split(line, field, "@") 13520 substed = 0 13521 len = length(field[1]) 13522 for (i = 2; i < nfields; i++) { 13523 key = field[i] 13524 keylen = length(key) 13525 if (S_is_set[key]) { 13526 value = S[key] 13527 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13528 len += length(value) + length(field[++i]) 13529 substed = 1 13530 } else 13531 len += 1 + keylen 13532 } 13533 13534 print line 13535} 13536 13537_ACAWK 13538_ACEOF 13539cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13540if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13541 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13542else 13543 cat 13544fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13545 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13546_ACEOF 13547 13548# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13549# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13550# trailing colons and then remove the whole line if VPATH becomes empty 13551# (actually we leave an empty line to preserve line numbers). 13552if test "x$srcdir" = x.; then 13553 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13554h 13555s/// 13556s/^/:/ 13557s/[ ]*$/:/ 13558s/:\$(srcdir):/:/g 13559s/:\${srcdir}:/:/g 13560s/:@srcdir@:/:/g 13561s/^:*// 13562s/:*$// 13563x 13564s/\(=[ ]*\).*/\1/ 13565G 13566s/\n// 13567s/^[^=]*=[ ]*$// 13568}' 13569fi 13570 13571cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13572fi # test -n "$CONFIG_FILES" 13573 13574# Set up the scripts for CONFIG_HEADERS section. 13575# No need to generate them if there are no CONFIG_HEADERS. 13576# This happens for instance with `./config.status Makefile'. 13577if test -n "$CONFIG_HEADERS"; then 13578cat >"$ac_tmp/defines.awk" <<\_ACAWK || 13579BEGIN { 13580_ACEOF 13581 13582# Transform confdefs.h into an awk script `defines.awk', embedded as 13583# here-document in config.status, that substitutes the proper values into 13584# config.h.in to produce config.h. 13585 13586# Create a delimiter string that does not exist in confdefs.h, to ease 13587# handling of long lines. 13588ac_delim='%!_!# ' 13589for ac_last_try in false false :; do 13590 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13591 if test -z "$ac_tt"; then 13592 break 13593 elif $ac_last_try; then 13594 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13595 else 13596 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13597 fi 13598done 13599 13600# For the awk script, D is an array of macro values keyed by name, 13601# likewise P contains macro parameters if any. Preserve backslash 13602# newline sequences. 13603 13604ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13605sed -n ' 13606s/.\{148\}/&'"$ac_delim"'/g 13607t rset 13608:rset 13609s/^[ ]*#[ ]*define[ ][ ]*/ / 13610t def 13611d 13612:def 13613s/\\$// 13614t bsnl 13615s/["\\]/\\&/g 13616s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13617D["\1"]=" \3"/p 13618s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13619d 13620:bsnl 13621s/["\\]/\\&/g 13622s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13623D["\1"]=" \3\\\\\\n"\\/p 13624t cont 13625s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13626t cont 13627d 13628:cont 13629n 13630s/.\{148\}/&'"$ac_delim"'/g 13631t clear 13632:clear 13633s/\\$// 13634t bsnlc 13635s/["\\]/\\&/g; s/^/"/; s/$/"/p 13636d 13637:bsnlc 13638s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13639b cont 13640' <confdefs.h | sed ' 13641s/'"$ac_delim"'/"\\\ 13642"/g' >>$CONFIG_STATUS || ac_write_fail=1 13643 13644cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13645 for (key in D) D_is_set[key] = 1 13646 FS = "" 13647} 13648/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13649 line = \$ 0 13650 split(line, arg, " ") 13651 if (arg[1] == "#") { 13652 defundef = arg[2] 13653 mac1 = arg[3] 13654 } else { 13655 defundef = substr(arg[1], 2) 13656 mac1 = arg[2] 13657 } 13658 split(mac1, mac2, "(") #) 13659 macro = mac2[1] 13660 prefix = substr(line, 1, index(line, defundef) - 1) 13661 if (D_is_set[macro]) { 13662 # Preserve the white space surrounding the "#". 13663 print prefix "define", macro P[macro] D[macro] 13664 next 13665 } else { 13666 # Replace #undef with comments. This is necessary, for example, 13667 # in the case of _POSIX_SOURCE, which is predefined and required 13668 # on some systems where configure will not decide to define it. 13669 if (defundef == "undef") { 13670 print "/*", prefix defundef, macro, "*/" 13671 next 13672 } 13673 } 13674} 13675{ print } 13676_ACAWK 13677_ACEOF 13678cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13679 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13680fi # test -n "$CONFIG_HEADERS" 13681 13682 13683eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13684shift 13685for ac_tag 13686do 13687 case $ac_tag in 13688 :[FHLC]) ac_mode=$ac_tag; continue;; 13689 esac 13690 case $ac_mode$ac_tag in 13691 :[FHL]*:*);; 13692 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 13693 :[FH]-) ac_tag=-:-;; 13694 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13695 esac 13696 ac_save_IFS=$IFS 13697 IFS=: 13698 set x $ac_tag 13699 IFS=$ac_save_IFS 13700 shift 13701 ac_file=$1 13702 shift 13703 13704 case $ac_mode in 13705 :L) ac_source=$1;; 13706 :[FH]) 13707 ac_file_inputs= 13708 for ac_f 13709 do 13710 case $ac_f in 13711 -) ac_f="$ac_tmp/stdin";; 13712 *) # Look for the file first in the build tree, then in the source tree 13713 # (if the path is not absolute). The absolute path cannot be DOS-style, 13714 # because $ac_f cannot contain `:'. 13715 test -f "$ac_f" || 13716 case $ac_f in 13717 [\\/$]*) false;; 13718 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13719 esac || 13720 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13721 esac 13722 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13723 as_fn_append ac_file_inputs " '$ac_f'" 13724 done 13725 13726 # Let's still pretend it is `configure' which instantiates (i.e., don't 13727 # use $as_me), people would be surprised to read: 13728 # /* config.h. Generated by config.status. */ 13729 configure_input='Generated from '` 13730 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13731 `' by configure.' 13732 if test x"$ac_file" != x-; then 13733 configure_input="$ac_file. $configure_input" 13734 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13735$as_echo "$as_me: creating $ac_file" >&6;} 13736 fi 13737 # Neutralize special characters interpreted by sed in replacement strings. 13738 case $configure_input in #( 13739 *\&* | *\|* | *\\* ) 13740 ac_sed_conf_input=`$as_echo "$configure_input" | 13741 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13742 *) ac_sed_conf_input=$configure_input;; 13743 esac 13744 13745 case $ac_tag in 13746 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13747 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13748 esac 13749 ;; 13750 esac 13751 13752 ac_dir=`$as_dirname -- "$ac_file" || 13753$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13754 X"$ac_file" : 'X\(//\)[^/]' \| \ 13755 X"$ac_file" : 'X\(//\)$' \| \ 13756 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13757$as_echo X"$ac_file" | 13758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13759 s//\1/ 13760 q 13761 } 13762 /^X\(\/\/\)[^/].*/{ 13763 s//\1/ 13764 q 13765 } 13766 /^X\(\/\/\)$/{ 13767 s//\1/ 13768 q 13769 } 13770 /^X\(\/\).*/{ 13771 s//\1/ 13772 q 13773 } 13774 s/.*/./; q'` 13775 as_dir="$ac_dir"; as_fn_mkdir_p 13776 ac_builddir=. 13777 13778case "$ac_dir" in 13779.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13780*) 13781 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13782 # A ".." for each directory in $ac_dir_suffix. 13783 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13784 case $ac_top_builddir_sub in 13785 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13786 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13787 esac ;; 13788esac 13789ac_abs_top_builddir=$ac_pwd 13790ac_abs_builddir=$ac_pwd$ac_dir_suffix 13791# for backward compatibility: 13792ac_top_builddir=$ac_top_build_prefix 13793 13794case $srcdir in 13795 .) # We are building in place. 13796 ac_srcdir=. 13797 ac_top_srcdir=$ac_top_builddir_sub 13798 ac_abs_top_srcdir=$ac_pwd ;; 13799 [\\/]* | ?:[\\/]* ) # Absolute name. 13800 ac_srcdir=$srcdir$ac_dir_suffix; 13801 ac_top_srcdir=$srcdir 13802 ac_abs_top_srcdir=$srcdir ;; 13803 *) # Relative name. 13804 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13805 ac_top_srcdir=$ac_top_build_prefix$srcdir 13806 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13807esac 13808ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13809 13810 13811 case $ac_mode in 13812 :F) 13813 # 13814 # CONFIG_FILE 13815 # 13816 13817 case $INSTALL in 13818 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13819 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13820 esac 13821 ac_MKDIR_P=$MKDIR_P 13822 case $MKDIR_P in 13823 [\\/$]* | ?:[\\/]* ) ;; 13824 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13825 esac 13826_ACEOF 13827 13828cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13829# If the template does not know about datarootdir, expand it. 13830# FIXME: This hack should be removed a few years after 2.60. 13831ac_datarootdir_hack=; ac_datarootdir_seen= 13832ac_sed_dataroot=' 13833/datarootdir/ { 13834 p 13835 q 13836} 13837/@datadir@/p 13838/@docdir@/p 13839/@infodir@/p 13840/@localedir@/p 13841/@mandir@/p' 13842case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13843*datarootdir*) ac_datarootdir_seen=yes;; 13844*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13846$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13847_ACEOF 13848cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13849 ac_datarootdir_hack=' 13850 s&@datadir@&$datadir&g 13851 s&@docdir@&$docdir&g 13852 s&@infodir@&$infodir&g 13853 s&@localedir@&$localedir&g 13854 s&@mandir@&$mandir&g 13855 s&\\\${datarootdir}&$datarootdir&g' ;; 13856esac 13857_ACEOF 13858 13859# Neutralize VPATH when `$srcdir' = `.'. 13860# Shell code in configure.ac might set extrasub. 13861# FIXME: do we really want to maintain this feature? 13862cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13863ac_sed_extra="$ac_vpsub 13864$extrasub 13865_ACEOF 13866cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13867:t 13868/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13869s|@configure_input@|$ac_sed_conf_input|;t t 13870s&@top_builddir@&$ac_top_builddir_sub&;t t 13871s&@top_build_prefix@&$ac_top_build_prefix&;t t 13872s&@srcdir@&$ac_srcdir&;t t 13873s&@abs_srcdir@&$ac_abs_srcdir&;t t 13874s&@top_srcdir@&$ac_top_srcdir&;t t 13875s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13876s&@builddir@&$ac_builddir&;t t 13877s&@abs_builddir@&$ac_abs_builddir&;t t 13878s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13879s&@INSTALL@&$ac_INSTALL&;t t 13880s&@MKDIR_P@&$ac_MKDIR_P&;t t 13881$ac_datarootdir_hack 13882" 13883eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13884 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13885 13886test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13887 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13888 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13889 "$ac_tmp/out"`; test -z "$ac_out"; } && 13890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13891which seems to be undefined. Please make sure it is defined" >&5 13892$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13893which seems to be undefined. Please make sure it is defined" >&2;} 13894 13895 rm -f "$ac_tmp/stdin" 13896 case $ac_file in 13897 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13898 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13899 esac \ 13900 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13901 ;; 13902 :H) 13903 # 13904 # CONFIG_HEADER 13905 # 13906 if test x"$ac_file" != x-; then 13907 { 13908 $as_echo "/* $configure_input */" \ 13909 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13910 } >"$ac_tmp/config.h" \ 13911 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13912 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13913 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13914$as_echo "$as_me: $ac_file is unchanged" >&6;} 13915 else 13916 rm -f "$ac_file" 13917 mv "$ac_tmp/config.h" "$ac_file" \ 13918 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13919 fi 13920 else 13921 $as_echo "/* $configure_input */" \ 13922 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13923 || as_fn_error $? "could not create -" "$LINENO" 5 13924 fi 13925# Compute "$ac_file"'s index in $config_headers. 13926_am_arg="$ac_file" 13927_am_stamp_count=1 13928for _am_header in $config_headers :; do 13929 case $_am_header in 13930 $_am_arg | $_am_arg:* ) 13931 break ;; 13932 * ) 13933 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13934 esac 13935done 13936echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13937$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13938 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13939 X"$_am_arg" : 'X\(//\)$' \| \ 13940 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13941$as_echo X"$_am_arg" | 13942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13943 s//\1/ 13944 q 13945 } 13946 /^X\(\/\/\)[^/].*/{ 13947 s//\1/ 13948 q 13949 } 13950 /^X\(\/\/\)$/{ 13951 s//\1/ 13952 q 13953 } 13954 /^X\(\/\).*/{ 13955 s//\1/ 13956 q 13957 } 13958 s/.*/./; q'`/stamp-h$_am_stamp_count 13959 ;; 13960 13961 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13962$as_echo "$as_me: executing $ac_file commands" >&6;} 13963 ;; 13964 esac 13965 13966 13967 case $ac_file$ac_mode in 13968 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13969 # Older Autoconf quotes --file arguments for eval, but not when files 13970 # are listed without --file. Let's play safe and only enable the eval 13971 # if we detect the quoting. 13972 # TODO: see whether this extra hack can be removed once we start 13973 # requiring Autoconf 2.70 or later. 13974 case $CONFIG_FILES in #( 13975 *\'*) : 13976 eval set x "$CONFIG_FILES" ;; #( 13977 *) : 13978 set x $CONFIG_FILES ;; #( 13979 *) : 13980 ;; 13981esac 13982 shift 13983 # Used to flag and report bootstrapping failures. 13984 am_rc=0 13985 for am_mf 13986 do 13987 # Strip MF so we end up with the name of the file. 13988 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 13989 # Check whether this is an Automake generated Makefile which includes 13990 # dependency-tracking related rules and includes. 13991 # Grep'ing the whole file directly is not great: AIX grep has a line 13992 # limit of 2048, but all sed's we know have understand at least 4000. 13993 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13994 || continue 13995 am_dirpart=`$as_dirname -- "$am_mf" || 13996$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13997 X"$am_mf" : 'X\(//\)[^/]' \| \ 13998 X"$am_mf" : 'X\(//\)$' \| \ 13999 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 14000$as_echo X"$am_mf" | 14001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14002 s//\1/ 14003 q 14004 } 14005 /^X\(\/\/\)[^/].*/{ 14006 s//\1/ 14007 q 14008 } 14009 /^X\(\/\/\)$/{ 14010 s//\1/ 14011 q 14012 } 14013 /^X\(\/\).*/{ 14014 s//\1/ 14015 q 14016 } 14017 s/.*/./; q'` 14018 am_filepart=`$as_basename -- "$am_mf" || 14019$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 14020 X"$am_mf" : 'X\(//\)$' \| \ 14021 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 14022$as_echo X/"$am_mf" | 14023 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14024 s//\1/ 14025 q 14026 } 14027 /^X\/\(\/\/\)$/{ 14028 s//\1/ 14029 q 14030 } 14031 /^X\/\(\/\).*/{ 14032 s//\1/ 14033 q 14034 } 14035 s/.*/./; q'` 14036 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 14037 && sed -e '/# am--include-marker/d' "$am_filepart" \ 14038 | $MAKE -f - am--depfiles" >&5 14039 (cd "$am_dirpart" \ 14040 && sed -e '/# am--include-marker/d' "$am_filepart" \ 14041 | $MAKE -f - am--depfiles) >&5 2>&5 14042 ac_status=$? 14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14044 (exit $ac_status); } || am_rc=$? 14045 done 14046 if test $am_rc -ne 0; then 14047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14048$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14049as_fn_error $? "Something went wrong bootstrapping makefile fragments 14050 for automatic dependency tracking. If GNU make was not used, consider 14051 re-running the configure script with MAKE=\"gmake\" (or whatever is 14052 necessary). You can also try re-running configure with the 14053 '--disable-dependency-tracking' option to at least be able to build 14054 the package (albeit without support for automatic dependency tracking). 14055See \`config.log' for more details" "$LINENO" 5; } 14056 fi 14057 { am_dirpart=; unset am_dirpart;} 14058 { am_filepart=; unset am_filepart;} 14059 { am_mf=; unset am_mf;} 14060 { am_rc=; unset am_rc;} 14061 rm -f conftest-deps.mk 14062} 14063 ;; 14064 "libtool":C) 14065 14066 # See if we are running on zsh, and set the options that allow our 14067 # commands through without removal of \ escapes. 14068 if test -n "${ZSH_VERSION+set}"; then 14069 setopt NO_GLOB_SUBST 14070 fi 14071 14072 cfgfile=${ofile}T 14073 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14074 $RM "$cfgfile" 14075 14076 cat <<_LT_EOF >> "$cfgfile" 14077#! $SHELL 14078# Generated automatically by $as_me ($PACKAGE) $VERSION 14079# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14080# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14081 14082# Provide generalized library-building support services. 14083# Written by Gordon Matzigkeit, 1996 14084 14085# Copyright (C) 2014 Free Software Foundation, Inc. 14086# This is free software; see the source for copying conditions. There is NO 14087# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14088 14089# GNU Libtool is free software; you can redistribute it and/or modify 14090# it under the terms of the GNU General Public License as published by 14091# the Free Software Foundation; either version 2 of of the License, or 14092# (at your option) any later version. 14093# 14094# As a special exception to the GNU General Public License, if you 14095# distribute this file as part of a program or library that is built 14096# using GNU Libtool, you may include this file under the same 14097# distribution terms that you use for the rest of that program. 14098# 14099# GNU Libtool is distributed in the hope that it will be useful, but 14100# WITHOUT ANY WARRANTY; without even the implied warranty of 14101# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14102# GNU General Public License for more details. 14103# 14104# You should have received a copy of the GNU General Public License 14105# along with this program. If not, see <http://www.gnu.org/licenses/>. 14106 14107 14108# The names of the tagged configurations supported by this script. 14109available_tags='' 14110 14111# Configured defaults for sys_lib_dlsearch_path munging. 14112: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 14113 14114# ### BEGIN LIBTOOL CONFIG 14115 14116# Which release of libtool.m4 was used? 14117macro_version=$macro_version 14118macro_revision=$macro_revision 14119 14120# Whether or not to build shared libraries. 14121build_libtool_libs=$enable_shared 14122 14123# Whether or not to build static libraries. 14124build_old_libs=$enable_static 14125 14126# What type of objects to build. 14127pic_mode=$pic_mode 14128 14129# Whether or not to optimize for fast installation. 14130fast_install=$enable_fast_install 14131 14132# Shared archive member basename,for filename based shared library versioning on AIX. 14133shared_archive_member_spec=$shared_archive_member_spec 14134 14135# Shell to use when invoking shell scripts. 14136SHELL=$lt_SHELL 14137 14138# An echo program that protects backslashes. 14139ECHO=$lt_ECHO 14140 14141# The PATH separator for the build system. 14142PATH_SEPARATOR=$lt_PATH_SEPARATOR 14143 14144# The host system. 14145host_alias=$host_alias 14146host=$host 14147host_os=$host_os 14148 14149# The build system. 14150build_alias=$build_alias 14151build=$build 14152build_os=$build_os 14153 14154# A sed program that does not truncate output. 14155SED=$lt_SED 14156 14157# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14158Xsed="\$SED -e 1s/^X//" 14159 14160# A grep program that handles long lines. 14161GREP=$lt_GREP 14162 14163# An ERE matcher. 14164EGREP=$lt_EGREP 14165 14166# A literal string matcher. 14167FGREP=$lt_FGREP 14168 14169# A BSD- or MS-compatible name lister. 14170NM=$lt_NM 14171 14172# Whether we need soft or hard links. 14173LN_S=$lt_LN_S 14174 14175# What is the maximum length of a command? 14176max_cmd_len=$max_cmd_len 14177 14178# Object file suffix (normally "o"). 14179objext=$ac_objext 14180 14181# Executable file suffix (normally ""). 14182exeext=$exeext 14183 14184# whether the shell understands "unset". 14185lt_unset=$lt_unset 14186 14187# turn spaces into newlines. 14188SP2NL=$lt_lt_SP2NL 14189 14190# turn newlines into spaces. 14191NL2SP=$lt_lt_NL2SP 14192 14193# convert \$build file names to \$host format. 14194to_host_file_cmd=$lt_cv_to_host_file_cmd 14195 14196# convert \$build files to toolchain format. 14197to_tool_file_cmd=$lt_cv_to_tool_file_cmd 14198 14199# An object symbol dumper. 14200OBJDUMP=$lt_OBJDUMP 14201 14202# Method to check whether dependent libraries are shared objects. 14203deplibs_check_method=$lt_deplibs_check_method 14204 14205# Command to use when deplibs_check_method = "file_magic". 14206file_magic_cmd=$lt_file_magic_cmd 14207 14208# How to find potential files when deplibs_check_method = "file_magic". 14209file_magic_glob=$lt_file_magic_glob 14210 14211# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 14212want_nocaseglob=$lt_want_nocaseglob 14213 14214# DLL creation program. 14215DLLTOOL=$lt_DLLTOOL 14216 14217# Command to associate shared and link libraries. 14218sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 14219 14220# The archiver. 14221AR=$lt_AR 14222 14223# Flags to create an archive. 14224AR_FLAGS=$lt_AR_FLAGS 14225 14226# How to feed a file listing to the archiver. 14227archiver_list_spec=$lt_archiver_list_spec 14228 14229# A symbol stripping program. 14230STRIP=$lt_STRIP 14231 14232# Commands used to install an old-style archive. 14233RANLIB=$lt_RANLIB 14234old_postinstall_cmds=$lt_old_postinstall_cmds 14235old_postuninstall_cmds=$lt_old_postuninstall_cmds 14236 14237# Whether to use a lock for old archive extraction. 14238lock_old_archive_extraction=$lock_old_archive_extraction 14239 14240# A C compiler. 14241LTCC=$lt_CC 14242 14243# LTCC compiler flags. 14244LTCFLAGS=$lt_CFLAGS 14245 14246# Take the output of nm and produce a listing of raw symbols and C names. 14247global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14248 14249# Transform the output of nm in a proper C declaration. 14250global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14251 14252# Transform the output of nm into a list of symbols to manually relocate. 14253global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 14254 14255# Transform the output of nm in a C name address pair. 14256global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14257 14258# Transform the output of nm in a C name address pair when lib prefix is needed. 14259global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14260 14261# The name lister interface. 14262nm_interface=$lt_lt_cv_nm_interface 14263 14264# Specify filename containing input files for \$NM. 14265nm_file_list_spec=$lt_nm_file_list_spec 14266 14267# The root where to search for dependent libraries,and where our libraries should be installed. 14268lt_sysroot=$lt_sysroot 14269 14270# Command to truncate a binary pipe. 14271lt_truncate_bin=$lt_lt_cv_truncate_bin 14272 14273# The name of the directory that contains temporary libtool files. 14274objdir=$objdir 14275 14276# Used to examine libraries when file_magic_cmd begins with "file". 14277MAGIC_CMD=$MAGIC_CMD 14278 14279# Must we lock files when doing compilation? 14280need_locks=$lt_need_locks 14281 14282# Manifest tool. 14283MANIFEST_TOOL=$lt_MANIFEST_TOOL 14284 14285# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14286DSYMUTIL=$lt_DSYMUTIL 14287 14288# Tool to change global to local symbols on Mac OS X. 14289NMEDIT=$lt_NMEDIT 14290 14291# Tool to manipulate fat objects and archives on Mac OS X. 14292LIPO=$lt_LIPO 14293 14294# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14295OTOOL=$lt_OTOOL 14296 14297# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14298OTOOL64=$lt_OTOOL64 14299 14300# Old archive suffix (normally "a"). 14301libext=$libext 14302 14303# Shared library suffix (normally ".so"). 14304shrext_cmds=$lt_shrext_cmds 14305 14306# The commands to extract the exported symbol list from a shared archive. 14307extract_expsyms_cmds=$lt_extract_expsyms_cmds 14308 14309# Variables whose values should be saved in libtool wrapper scripts and 14310# restored at link time. 14311variables_saved_for_relink=$lt_variables_saved_for_relink 14312 14313# Do we need the "lib" prefix for modules? 14314need_lib_prefix=$need_lib_prefix 14315 14316# Do we need a version for libraries? 14317need_version=$need_version 14318 14319# Library versioning type. 14320version_type=$version_type 14321 14322# Shared library runtime path variable. 14323runpath_var=$runpath_var 14324 14325# Shared library path variable. 14326shlibpath_var=$shlibpath_var 14327 14328# Is shlibpath searched before the hard-coded library search path? 14329shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14330 14331# Format of library name prefix. 14332libname_spec=$lt_libname_spec 14333 14334# List of archive names. First name is the real one, the rest are links. 14335# The last name is the one that the linker finds with -lNAME 14336library_names_spec=$lt_library_names_spec 14337 14338# The coded name of the library, if different from the real name. 14339soname_spec=$lt_soname_spec 14340 14341# Permission mode override for installation of shared libraries. 14342install_override_mode=$lt_install_override_mode 14343 14344# Command to use after installation of a shared archive. 14345postinstall_cmds=$lt_postinstall_cmds 14346 14347# Command to use after uninstallation of a shared archive. 14348postuninstall_cmds=$lt_postuninstall_cmds 14349 14350# Commands used to finish a libtool library installation in a directory. 14351finish_cmds=$lt_finish_cmds 14352 14353# As "finish_cmds", except a single script fragment to be evaled but 14354# not shown. 14355finish_eval=$lt_finish_eval 14356 14357# Whether we should hardcode library paths into libraries. 14358hardcode_into_libs=$hardcode_into_libs 14359 14360# Compile-time system search path for libraries. 14361sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14362 14363# Detected run-time system search path for libraries. 14364sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 14365 14366# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 14367configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 14368 14369# Whether dlopen is supported. 14370dlopen_support=$enable_dlopen 14371 14372# Whether dlopen of programs is supported. 14373dlopen_self=$enable_dlopen_self 14374 14375# Whether dlopen of statically linked programs is supported. 14376dlopen_self_static=$enable_dlopen_self_static 14377 14378# Commands to strip libraries. 14379old_striplib=$lt_old_striplib 14380striplib=$lt_striplib 14381 14382 14383# The linker used to build libraries. 14384LD=$lt_LD 14385 14386# How to create reloadable object files. 14387reload_flag=$lt_reload_flag 14388reload_cmds=$lt_reload_cmds 14389 14390# Commands used to build an old-style archive. 14391old_archive_cmds=$lt_old_archive_cmds 14392 14393# A language specific compiler. 14394CC=$lt_compiler 14395 14396# Is the compiler the GNU compiler? 14397with_gcc=$GCC 14398 14399# Compiler flag to turn off builtin functions. 14400no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14401 14402# Additional compiler flags for building library objects. 14403pic_flag=$lt_lt_prog_compiler_pic 14404 14405# How to pass a linker flag through the compiler. 14406wl=$lt_lt_prog_compiler_wl 14407 14408# Compiler flag to prevent dynamic linking. 14409link_static_flag=$lt_lt_prog_compiler_static 14410 14411# Does compiler simultaneously support -c and -o options? 14412compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14413 14414# Whether or not to add -lc for building shared libraries. 14415build_libtool_need_lc=$archive_cmds_need_lc 14416 14417# Whether or not to disallow shared libs when runtime libs are static. 14418allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14419 14420# Compiler flag to allow reflexive dlopens. 14421export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14422 14423# Compiler flag to generate shared objects directly from archives. 14424whole_archive_flag_spec=$lt_whole_archive_flag_spec 14425 14426# Whether the compiler copes with passing no objects directly. 14427compiler_needs_object=$lt_compiler_needs_object 14428 14429# Create an old-style archive from a shared archive. 14430old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14431 14432# Create a temporary old-style archive to link instead of a shared archive. 14433old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14434 14435# Commands used to build a shared archive. 14436archive_cmds=$lt_archive_cmds 14437archive_expsym_cmds=$lt_archive_expsym_cmds 14438 14439# Commands used to build a loadable module if different from building 14440# a shared archive. 14441module_cmds=$lt_module_cmds 14442module_expsym_cmds=$lt_module_expsym_cmds 14443 14444# Whether we are building with GNU ld or not. 14445with_gnu_ld=$lt_with_gnu_ld 14446 14447# Flag that allows shared libraries with undefined symbols to be built. 14448allow_undefined_flag=$lt_allow_undefined_flag 14449 14450# Flag that enforces no undefined symbols. 14451no_undefined_flag=$lt_no_undefined_flag 14452 14453# Flag to hardcode \$libdir into a binary during linking. 14454# This must work even if \$libdir does not exist 14455hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14456 14457# Whether we need a single "-rpath" flag with a separated argument. 14458hardcode_libdir_separator=$lt_hardcode_libdir_separator 14459 14460# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 14461# DIR into the resulting binary. 14462hardcode_direct=$hardcode_direct 14463 14464# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 14465# DIR into the resulting binary and the resulting library dependency is 14466# "absolute",i.e impossible to change by setting \$shlibpath_var if the 14467# library is relocated. 14468hardcode_direct_absolute=$hardcode_direct_absolute 14469 14470# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14471# into the resulting binary. 14472hardcode_minus_L=$hardcode_minus_L 14473 14474# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14475# into the resulting binary. 14476hardcode_shlibpath_var=$hardcode_shlibpath_var 14477 14478# Set to "yes" if building a shared library automatically hardcodes DIR 14479# into the library and all subsequent libraries and executables linked 14480# against it. 14481hardcode_automatic=$hardcode_automatic 14482 14483# Set to yes if linker adds runtime paths of dependent libraries 14484# to runtime path list. 14485inherit_rpath=$inherit_rpath 14486 14487# Whether libtool must link a program against all its dependency libraries. 14488link_all_deplibs=$link_all_deplibs 14489 14490# Set to "yes" if exported symbols are required. 14491always_export_symbols=$always_export_symbols 14492 14493# The commands to list exported symbols. 14494export_symbols_cmds=$lt_export_symbols_cmds 14495 14496# Symbols that should not be listed in the preloaded symbols. 14497exclude_expsyms=$lt_exclude_expsyms 14498 14499# Symbols that must always be exported. 14500include_expsyms=$lt_include_expsyms 14501 14502# Commands necessary for linking programs (against libraries) with templates. 14503prelink_cmds=$lt_prelink_cmds 14504 14505# Commands necessary for finishing linking programs. 14506postlink_cmds=$lt_postlink_cmds 14507 14508# Specify filename containing input files. 14509file_list_spec=$lt_file_list_spec 14510 14511# How to hardcode a shared library path into an executable. 14512hardcode_action=$hardcode_action 14513 14514# ### END LIBTOOL CONFIG 14515 14516_LT_EOF 14517 14518 cat <<'_LT_EOF' >> "$cfgfile" 14519 14520# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 14521 14522# func_munge_path_list VARIABLE PATH 14523# ----------------------------------- 14524# VARIABLE is name of variable containing _space_ separated list of 14525# directories to be munged by the contents of PATH, which is string 14526# having a format: 14527# "DIR[:DIR]:" 14528# string "DIR[ DIR]" will be prepended to VARIABLE 14529# ":DIR[:DIR]" 14530# string "DIR[ DIR]" will be appended to VARIABLE 14531# "DIRP[:DIRP]::[DIRA:]DIRA" 14532# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 14533# "DIRA[ DIRA]" will be appended to VARIABLE 14534# "DIR[:DIR]" 14535# VARIABLE will be replaced by "DIR[ DIR]" 14536func_munge_path_list () 14537{ 14538 case x$2 in 14539 x) 14540 ;; 14541 *:) 14542 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 14543 ;; 14544 x:*) 14545 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 14546 ;; 14547 *::*) 14548 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 14549 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 14550 ;; 14551 *) 14552 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 14553 ;; 14554 esac 14555} 14556 14557 14558# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 14559func_cc_basename () 14560{ 14561 for cc_temp in $*""; do 14562 case $cc_temp in 14563 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14564 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14565 \-*) ;; 14566 *) break;; 14567 esac 14568 done 14569 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 14570} 14571 14572 14573# ### END FUNCTIONS SHARED WITH CONFIGURE 14574 14575_LT_EOF 14576 14577 case $host_os in 14578 aix3*) 14579 cat <<\_LT_EOF >> "$cfgfile" 14580# AIX sometimes has problems with the GCC collect2 program. For some 14581# reason, if we set the COLLECT_NAMES environment variable, the problems 14582# vanish in a puff of smoke. 14583if test set != "${COLLECT_NAMES+set}"; then 14584 COLLECT_NAMES= 14585 export COLLECT_NAMES 14586fi 14587_LT_EOF 14588 ;; 14589 esac 14590 14591 14592ltmain=$ac_aux_dir/ltmain.sh 14593 14594 14595 # We use sed instead of cat because bash on DJGPP gets confused if 14596 # if finds mixed CR/LF and LF-only lines. Since sed operates in 14597 # text mode, it properly converts lines to CR/LF. This bash problem 14598 # is reportedly fixed, but why not run on old versions too? 14599 sed '$q' "$ltmain" >> "$cfgfile" \ 14600 || (rm -f "$cfgfile"; exit 1) 14601 14602 mv -f "$cfgfile" "$ofile" || 14603 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14604 chmod +x "$ofile" 14605 14606 ;; 14607 14608 esac 14609done # for ac_tag 14610 14611 14612as_fn_exit 0 14613_ACEOF 14614ac_clean_files=$ac_clean_files_save 14615 14616test $ac_write_fail = 0 || 14617 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 14618 14619 14620# configure is writing to config.log, and then calls config.status. 14621# config.status does its own redirection, appending to config.log. 14622# Unfortunately, on DOS this fails, as config.log is still kept open 14623# by configure, so config.status won't be able to write to it; its 14624# output is simply discarded. So we exec the FD to /dev/null, 14625# effectively closing config.log, so it can be properly (re)opened and 14626# appended to by config.status. When coming back to configure, we 14627# need to make the FD available again. 14628if test "$no_create" != yes; then 14629 ac_cs_success=: 14630 ac_config_status_args= 14631 test "$silent" = yes && 14632 ac_config_status_args="$ac_config_status_args --quiet" 14633 exec 5>/dev/null 14634 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14635 exec 5>>config.log 14636 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14637 # would make configure fail if this is the last instruction. 14638 $ac_cs_success || as_fn_exit 1 14639fi 14640if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14642$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14643fi 14644 14645