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 734runstatedir 735localstatedir 736sharedstatedir 737sysconfdir 738datadir 739datarootdir 740libexecdir 741sbindir 742bindir 743program_transform_name 744prefix 745exec_prefix 746PACKAGE_URL 747PACKAGE_BUGREPORT 748PACKAGE_STRING 749PACKAGE_VERSION 750PACKAGE_TARNAME 751PACKAGE_NAME 752PATH_SEPARATOR 753SHELL 754am__quote' 755ac_subst_files='' 756ac_user_opts=' 757enable_option_checking 758enable_silent_rules 759enable_dependency_tracking 760enable_shared 761enable_static 762with_pic 763enable_fast_install 764with_aix_soname 765with_gnu_ld 766with_sysroot 767enable_libtool_lock 768' 769 ac_precious_vars='build_alias 770host_alias 771target_alias 772CC 773CFLAGS 774LDFLAGS 775LIBS 776CPPFLAGS 777LT_SYS_LIBRARY_PATH 778CPP' 779 780 781# Initialize some variables set by options. 782ac_init_help= 783ac_init_version=false 784ac_unrecognized_opts= 785ac_unrecognized_sep= 786# The variables have the same names as the options, with 787# dashes changed to underlines. 788cache_file=/dev/null 789exec_prefix=NONE 790no_create= 791no_recursion= 792prefix=NONE 793program_prefix=NONE 794program_suffix=NONE 795program_transform_name=s,x,x, 796silent= 797site= 798srcdir= 799verbose= 800x_includes=NONE 801x_libraries=NONE 802 803# Installation directory options. 804# These are left unexpanded so users can "make install exec_prefix=/foo" 805# and all the variables that are supposed to be based on exec_prefix 806# by default will actually change. 807# Use braces instead of parens because sh, perl, etc. also accept them. 808# (The list follows the same order as the GNU Coding Standards.) 809bindir='${exec_prefix}/bin' 810sbindir='${exec_prefix}/sbin' 811libexecdir='${exec_prefix}/libexec' 812datarootdir='${prefix}/share' 813datadir='${datarootdir}' 814sysconfdir='${prefix}/etc' 815sharedstatedir='${prefix}/com' 816localstatedir='${prefix}/var' 817runstatedir='${localstatedir}/run' 818includedir='${prefix}/include' 819oldincludedir='/usr/include' 820docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 821infodir='${datarootdir}/info' 822htmldir='${docdir}' 823dvidir='${docdir}' 824pdfdir='${docdir}' 825psdir='${docdir}' 826libdir='${exec_prefix}/lib' 827localedir='${datarootdir}/locale' 828mandir='${datarootdir}/man' 829 830ac_prev= 831ac_dashdash= 832for ac_option 833do 834 # If the previous option needs an argument, assign it. 835 if test -n "$ac_prev"; then 836 eval $ac_prev=\$ac_option 837 ac_prev= 838 continue 839 fi 840 841 case $ac_option in 842 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 843 *=) ac_optarg= ;; 844 *) ac_optarg=yes ;; 845 esac 846 847 # Accept the important Cygnus configure options, so we can diagnose typos. 848 849 case $ac_dashdash$ac_option in 850 --) 851 ac_dashdash=yes ;; 852 853 -bindir | --bindir | --bindi | --bind | --bin | --bi) 854 ac_prev=bindir ;; 855 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 856 bindir=$ac_optarg ;; 857 858 -build | --build | --buil | --bui | --bu) 859 ac_prev=build_alias ;; 860 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 861 build_alias=$ac_optarg ;; 862 863 -cache-file | --cache-file | --cache-fil | --cache-fi \ 864 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 865 ac_prev=cache_file ;; 866 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 867 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 868 cache_file=$ac_optarg ;; 869 870 --config-cache | -C) 871 cache_file=config.cache ;; 872 873 -datadir | --datadir | --datadi | --datad) 874 ac_prev=datadir ;; 875 -datadir=* | --datadir=* | --datadi=* | --datad=*) 876 datadir=$ac_optarg ;; 877 878 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 879 | --dataroo | --dataro | --datar) 880 ac_prev=datarootdir ;; 881 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 882 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 883 datarootdir=$ac_optarg ;; 884 885 -disable-* | --disable-*) 886 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 887 # Reject names that are not valid shell variable names. 888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 889 as_fn_error $? "invalid feature name: $ac_useropt" 890 ac_useropt_orig=$ac_useropt 891 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 892 case $ac_user_opts in 893 *" 894"enable_$ac_useropt" 895"*) ;; 896 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 897 ac_unrecognized_sep=', ';; 898 esac 899 eval enable_$ac_useropt=no ;; 900 901 -docdir | --docdir | --docdi | --doc | --do) 902 ac_prev=docdir ;; 903 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 904 docdir=$ac_optarg ;; 905 906 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 907 ac_prev=dvidir ;; 908 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 909 dvidir=$ac_optarg ;; 910 911 -enable-* | --enable-*) 912 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 913 # Reject names that are not valid shell variable names. 914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 915 as_fn_error $? "invalid feature name: $ac_useropt" 916 ac_useropt_orig=$ac_useropt 917 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 918 case $ac_user_opts in 919 *" 920"enable_$ac_useropt" 921"*) ;; 922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 923 ac_unrecognized_sep=', ';; 924 esac 925 eval enable_$ac_useropt=\$ac_optarg ;; 926 927 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 928 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 929 | --exec | --exe | --ex) 930 ac_prev=exec_prefix ;; 931 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 932 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 933 | --exec=* | --exe=* | --ex=*) 934 exec_prefix=$ac_optarg ;; 935 936 -gas | --gas | --ga | --g) 937 # Obsolete; use --with-gas. 938 with_gas=yes ;; 939 940 -help | --help | --hel | --he | -h) 941 ac_init_help=long ;; 942 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 943 ac_init_help=recursive ;; 944 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 945 ac_init_help=short ;; 946 947 -host | --host | --hos | --ho) 948 ac_prev=host_alias ;; 949 -host=* | --host=* | --hos=* | --ho=*) 950 host_alias=$ac_optarg ;; 951 952 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 953 ac_prev=htmldir ;; 954 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 955 | --ht=*) 956 htmldir=$ac_optarg ;; 957 958 -includedir | --includedir | --includedi | --included | --include \ 959 | --includ | --inclu | --incl | --inc) 960 ac_prev=includedir ;; 961 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 962 | --includ=* | --inclu=* | --incl=* | --inc=*) 963 includedir=$ac_optarg ;; 964 965 -infodir | --infodir | --infodi | --infod | --info | --inf) 966 ac_prev=infodir ;; 967 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 968 infodir=$ac_optarg ;; 969 970 -libdir | --libdir | --libdi | --libd) 971 ac_prev=libdir ;; 972 -libdir=* | --libdir=* | --libdi=* | --libd=*) 973 libdir=$ac_optarg ;; 974 975 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 976 | --libexe | --libex | --libe) 977 ac_prev=libexecdir ;; 978 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 979 | --libexe=* | --libex=* | --libe=*) 980 libexecdir=$ac_optarg ;; 981 982 -localedir | --localedir | --localedi | --localed | --locale) 983 ac_prev=localedir ;; 984 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 985 localedir=$ac_optarg ;; 986 987 -localstatedir | --localstatedir | --localstatedi | --localstated \ 988 | --localstate | --localstat | --localsta | --localst | --locals) 989 ac_prev=localstatedir ;; 990 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 991 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 992 localstatedir=$ac_optarg ;; 993 994 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 995 ac_prev=mandir ;; 996 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 997 mandir=$ac_optarg ;; 998 999 -nfp | --nfp | --nf) 1000 # Obsolete; use --without-fp. 1001 with_fp=no ;; 1002 1003 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1004 | --no-cr | --no-c | -n) 1005 no_create=yes ;; 1006 1007 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1008 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1009 no_recursion=yes ;; 1010 1011 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1012 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1013 | --oldin | --oldi | --old | --ol | --o) 1014 ac_prev=oldincludedir ;; 1015 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1016 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1017 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1018 oldincludedir=$ac_optarg ;; 1019 1020 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1021 ac_prev=prefix ;; 1022 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1023 prefix=$ac_optarg ;; 1024 1025 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1026 | --program-pre | --program-pr | --program-p) 1027 ac_prev=program_prefix ;; 1028 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1029 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1030 program_prefix=$ac_optarg ;; 1031 1032 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1033 | --program-suf | --program-su | --program-s) 1034 ac_prev=program_suffix ;; 1035 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1036 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1037 program_suffix=$ac_optarg ;; 1038 1039 -program-transform-name | --program-transform-name \ 1040 | --program-transform-nam | --program-transform-na \ 1041 | --program-transform-n | --program-transform- \ 1042 | --program-transform | --program-transfor \ 1043 | --program-transfo | --program-transf \ 1044 | --program-trans | --program-tran \ 1045 | --progr-tra | --program-tr | --program-t) 1046 ac_prev=program_transform_name ;; 1047 -program-transform-name=* | --program-transform-name=* \ 1048 | --program-transform-nam=* | --program-transform-na=* \ 1049 | --program-transform-n=* | --program-transform-=* \ 1050 | --program-transform=* | --program-transfor=* \ 1051 | --program-transfo=* | --program-transf=* \ 1052 | --program-trans=* | --program-tran=* \ 1053 | --progr-tra=* | --program-tr=* | --program-t=*) 1054 program_transform_name=$ac_optarg ;; 1055 1056 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1057 ac_prev=pdfdir ;; 1058 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1059 pdfdir=$ac_optarg ;; 1060 1061 -psdir | --psdir | --psdi | --psd | --ps) 1062 ac_prev=psdir ;; 1063 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1064 psdir=$ac_optarg ;; 1065 1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1067 | -silent | --silent | --silen | --sile | --sil) 1068 silent=yes ;; 1069 1070 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1071 | --runstate | --runstat | --runsta | --runst | --runs \ 1072 | --run | --ru | --r) 1073 ac_prev=runstatedir ;; 1074 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1075 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1076 | --run=* | --ru=* | --r=*) 1077 runstatedir=$ac_optarg ;; 1078 1079 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1080 ac_prev=sbindir ;; 1081 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1082 | --sbi=* | --sb=*) 1083 sbindir=$ac_optarg ;; 1084 1085 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1086 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1087 | --sharedst | --shareds | --shared | --share | --shar \ 1088 | --sha | --sh) 1089 ac_prev=sharedstatedir ;; 1090 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1091 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1092 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1093 | --sha=* | --sh=*) 1094 sharedstatedir=$ac_optarg ;; 1095 1096 -site | --site | --sit) 1097 ac_prev=site ;; 1098 -site=* | --site=* | --sit=*) 1099 site=$ac_optarg ;; 1100 1101 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1102 ac_prev=srcdir ;; 1103 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1104 srcdir=$ac_optarg ;; 1105 1106 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1107 | --syscon | --sysco | --sysc | --sys | --sy) 1108 ac_prev=sysconfdir ;; 1109 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1110 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1111 sysconfdir=$ac_optarg ;; 1112 1113 -target | --target | --targe | --targ | --tar | --ta | --t) 1114 ac_prev=target_alias ;; 1115 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1116 target_alias=$ac_optarg ;; 1117 1118 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1119 verbose=yes ;; 1120 1121 -version | --version | --versio | --versi | --vers | -V) 1122 ac_init_version=: ;; 1123 1124 -with-* | --with-*) 1125 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1126 # Reject names that are not valid shell variable names. 1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1128 as_fn_error $? "invalid package name: $ac_useropt" 1129 ac_useropt_orig=$ac_useropt 1130 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1131 case $ac_user_opts in 1132 *" 1133"with_$ac_useropt" 1134"*) ;; 1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1136 ac_unrecognized_sep=', ';; 1137 esac 1138 eval with_$ac_useropt=\$ac_optarg ;; 1139 1140 -without-* | --without-*) 1141 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1142 # Reject names that are not valid shell variable names. 1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1144 as_fn_error $? "invalid package name: $ac_useropt" 1145 ac_useropt_orig=$ac_useropt 1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1147 case $ac_user_opts in 1148 *" 1149"with_$ac_useropt" 1150"*) ;; 1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1152 ac_unrecognized_sep=', ';; 1153 esac 1154 eval with_$ac_useropt=no ;; 1155 1156 --x) 1157 # Obsolete; use --with-x. 1158 with_x=yes ;; 1159 1160 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1161 | --x-incl | --x-inc | --x-in | --x-i) 1162 ac_prev=x_includes ;; 1163 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1164 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1165 x_includes=$ac_optarg ;; 1166 1167 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1168 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1169 ac_prev=x_libraries ;; 1170 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1171 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1172 x_libraries=$ac_optarg ;; 1173 1174 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1175Try \`$0 --help' for more information" 1176 ;; 1177 1178 *=*) 1179 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1180 # Reject names that are not valid shell variable names. 1181 case $ac_envvar in #( 1182 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1183 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1184 esac 1185 eval $ac_envvar=\$ac_optarg 1186 export $ac_envvar ;; 1187 1188 *) 1189 # FIXME: should be removed in autoconf 3.0. 1190 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1191 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1192 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1193 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1194 ;; 1195 1196 esac 1197done 1198 1199if test -n "$ac_prev"; then 1200 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1201 as_fn_error $? "missing argument to $ac_option" 1202fi 1203 1204if test -n "$ac_unrecognized_opts"; then 1205 case $enable_option_checking in 1206 no) ;; 1207 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1208 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1209 esac 1210fi 1211 1212# Check all directory arguments for consistency. 1213for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1214 datadir sysconfdir sharedstatedir localstatedir includedir \ 1215 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1216 libdir localedir mandir runstatedir 1217do 1218 eval ac_val=\$$ac_var 1219 # Remove trailing slashes. 1220 case $ac_val in 1221 */ ) 1222 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1223 eval $ac_var=\$ac_val;; 1224 esac 1225 # Be sure to have absolute directory names. 1226 case $ac_val in 1227 [\\/$]* | ?:[\\/]* ) continue;; 1228 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1229 esac 1230 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1231done 1232 1233# There might be people who depend on the old broken behavior: `$host' 1234# used to hold the argument of --host etc. 1235# FIXME: To remove some day. 1236build=$build_alias 1237host=$host_alias 1238target=$target_alias 1239 1240# FIXME: To remove some day. 1241if test "x$host_alias" != x; then 1242 if test "x$build_alias" = x; then 1243 cross_compiling=maybe 1244 elif test "x$build_alias" != "x$host_alias"; then 1245 cross_compiling=yes 1246 fi 1247fi 1248 1249ac_tool_prefix= 1250test -n "$host_alias" && ac_tool_prefix=$host_alias- 1251 1252test "$silent" = yes && exec 6>/dev/null 1253 1254 1255ac_pwd=`pwd` && test -n "$ac_pwd" && 1256ac_ls_di=`ls -di .` && 1257ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1258 as_fn_error $? "working directory cannot be determined" 1259test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1260 as_fn_error $? "pwd does not report name of working directory" 1261 1262 1263# Find the source files, if location was not specified. 1264if test -z "$srcdir"; then 1265 ac_srcdir_defaulted=yes 1266 # Try the directory containing this script, then the parent directory. 1267 ac_confdir=`$as_dirname -- "$as_myself" || 1268$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1269 X"$as_myself" : 'X\(//\)[^/]' \| \ 1270 X"$as_myself" : 'X\(//\)$' \| \ 1271 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1272$as_echo X"$as_myself" | 1273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1274 s//\1/ 1275 q 1276 } 1277 /^X\(\/\/\)[^/].*/{ 1278 s//\1/ 1279 q 1280 } 1281 /^X\(\/\/\)$/{ 1282 s//\1/ 1283 q 1284 } 1285 /^X\(\/\).*/{ 1286 s//\1/ 1287 q 1288 } 1289 s/.*/./; q'` 1290 srcdir=$ac_confdir 1291 if test ! -r "$srcdir/$ac_unique_file"; then 1292 srcdir=.. 1293 fi 1294else 1295 ac_srcdir_defaulted=no 1296fi 1297if test ! -r "$srcdir/$ac_unique_file"; then 1298 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1299 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1300fi 1301ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1302ac_abs_confdir=`( 1303 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1304 pwd)` 1305# When building in place, set srcdir=. 1306if test "$ac_abs_confdir" = "$ac_pwd"; then 1307 srcdir=. 1308fi 1309# Remove unnecessary trailing slashes from srcdir. 1310# Double slashes in file names in object file debugging info 1311# mess up M-x gdb in Emacs. 1312case $srcdir in 1313*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1314esac 1315for ac_var in $ac_precious_vars; do 1316 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1317 eval ac_env_${ac_var}_value=\$${ac_var} 1318 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1319 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1320done 1321 1322# 1323# Report the --help message. 1324# 1325if test "$ac_init_help" = "long"; then 1326 # Omit some internal or obsolete options to make the list less imposing. 1327 # This message is too long to be a string in the A/UX 3.1 sh. 1328 cat <<_ACEOF 1329\`configure' configures libhmac 1.00 to adapt to many kinds of systems. 1330 1331Usage: $0 [OPTION]... [VAR=VALUE]... 1332 1333To assign environment variables (e.g., CC, CFLAGS...), specify them as 1334VAR=VALUE. See below for descriptions of some of the useful variables. 1335 1336Defaults for the options are specified in brackets. 1337 1338Configuration: 1339 -h, --help display this help and exit 1340 --help=short display options specific to this package 1341 --help=recursive display the short help of all the included packages 1342 -V, --version display version information and exit 1343 -q, --quiet, --silent do not print \`checking ...' messages 1344 --cache-file=FILE cache test results in FILE [disabled] 1345 -C, --config-cache alias for \`--cache-file=config.cache' 1346 -n, --no-create do not create output files 1347 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1348 1349Installation directories: 1350 --prefix=PREFIX install architecture-independent files in PREFIX 1351 [$ac_default_prefix] 1352 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1353 [PREFIX] 1354 1355By default, \`make install' will install all the files in 1356\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1357an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1358for instance \`--prefix=\$HOME'. 1359 1360For better control, use the options below. 1361 1362Fine tuning of the installation directories: 1363 --bindir=DIR user executables [EPREFIX/bin] 1364 --sbindir=DIR system admin executables [EPREFIX/sbin] 1365 --libexecdir=DIR program executables [EPREFIX/libexec] 1366 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1367 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1368 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1369 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1370 --libdir=DIR object code libraries [EPREFIX/lib] 1371 --includedir=DIR C header files [PREFIX/include] 1372 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1375 --infodir=DIR info documentation [DATAROOTDIR/info] 1376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1377 --mandir=DIR man documentation [DATAROOTDIR/man] 1378 --docdir=DIR documentation root [DATAROOTDIR/doc/libhmac] 1379 --htmldir=DIR html documentation [DOCDIR] 1380 --dvidir=DIR dvi documentation [DOCDIR] 1381 --pdfdir=DIR pdf documentation [DOCDIR] 1382 --psdir=DIR ps documentation [DOCDIR] 1383_ACEOF 1384 1385 cat <<\_ACEOF 1386 1387Program names: 1388 --program-prefix=PREFIX prepend PREFIX to installed program names 1389 --program-suffix=SUFFIX append SUFFIX to installed program names 1390 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1391 1392System types: 1393 --build=BUILD configure for building on BUILD [guessed] 1394 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1395_ACEOF 1396fi 1397 1398if test -n "$ac_init_help"; then 1399 case $ac_init_help in 1400 short | recursive ) echo "Configuration of libhmac 1.00:";; 1401 esac 1402 cat <<\_ACEOF 1403 1404Optional Features: 1405 --disable-option-checking ignore unrecognized --enable/--with options 1406 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1407 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1408 --enable-silent-rules less verbose build output (undo: "make V=1") 1409 --disable-silent-rules verbose build output (undo: "make V=0") 1410 --enable-dependency-tracking 1411 do not reject slow dependency extractors 1412 --disable-dependency-tracking 1413 speeds up one-time build 1414 --enable-shared[=PKGS] build shared libraries [default=yes] 1415 --enable-static[=PKGS] build static libraries [default=yes] 1416 --enable-fast-install[=PKGS] 1417 optimize for fast installation [default=yes] 1418 --disable-libtool-lock avoid locking (might break parallel builds) 1419 1420Optional Packages: 1421 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1422 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1423 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1424 both] 1425 --with-aix-soname=aix|svr4|both 1426 shared library versioning (aka "SONAME") variant to 1427 provide on AIX, [default=aix]. 1428 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1429 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1430 compiler's sysroot if not specified). 1431 1432Some influential environment variables: 1433 CC C compiler command 1434 CFLAGS C compiler flags 1435 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1436 nonstandard directory <lib dir> 1437 LIBS libraries to pass to the linker, e.g. -l<library> 1438 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1439 you have headers in a nonstandard directory <include dir> 1440 LT_SYS_LIBRARY_PATH 1441 User-defined run-time library search path. 1442 CPP C preprocessor 1443 1444Use these variables to override the choices made by `configure' or to help 1445it to find libraries and programs with nonstandard names/locations. 1446 1447Report bugs to <courier-users@lists.sourceforge.net>. 1448_ACEOF 1449ac_status=$? 1450fi 1451 1452if test "$ac_init_help" = "recursive"; then 1453 # If there are subdirs, report their specific --help. 1454 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1455 test -d "$ac_dir" || 1456 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1457 continue 1458 ac_builddir=. 1459 1460case "$ac_dir" in 1461.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1462*) 1463 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1464 # A ".." for each directory in $ac_dir_suffix. 1465 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1466 case $ac_top_builddir_sub in 1467 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1468 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1469 esac ;; 1470esac 1471ac_abs_top_builddir=$ac_pwd 1472ac_abs_builddir=$ac_pwd$ac_dir_suffix 1473# for backward compatibility: 1474ac_top_builddir=$ac_top_build_prefix 1475 1476case $srcdir in 1477 .) # We are building in place. 1478 ac_srcdir=. 1479 ac_top_srcdir=$ac_top_builddir_sub 1480 ac_abs_top_srcdir=$ac_pwd ;; 1481 [\\/]* | ?:[\\/]* ) # Absolute name. 1482 ac_srcdir=$srcdir$ac_dir_suffix; 1483 ac_top_srcdir=$srcdir 1484 ac_abs_top_srcdir=$srcdir ;; 1485 *) # Relative name. 1486 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1487 ac_top_srcdir=$ac_top_build_prefix$srcdir 1488 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1489esac 1490ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1491 1492 cd "$ac_dir" || { ac_status=$?; continue; } 1493 # Check for guested configure. 1494 if test -f "$ac_srcdir/configure.gnu"; then 1495 echo && 1496 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1497 elif test -f "$ac_srcdir/configure"; then 1498 echo && 1499 $SHELL "$ac_srcdir/configure" --help=recursive 1500 else 1501 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1502 fi || ac_status=$? 1503 cd "$ac_pwd" || { ac_status=$?; break; } 1504 done 1505fi 1506 1507test -n "$ac_init_help" && exit $ac_status 1508if $ac_init_version; then 1509 cat <<\_ACEOF 1510libhmac configure 1.00 1511generated by GNU Autoconf 2.69 1512 1513Copyright (C) 2012 Free Software Foundation, Inc. 1514This configure script is free software; the Free Software Foundation 1515gives unlimited permission to copy, distribute and modify it. 1516_ACEOF 1517 exit 1518fi 1519 1520## ------------------------ ## 1521## Autoconf initialization. ## 1522## ------------------------ ## 1523 1524# ac_fn_c_try_compile LINENO 1525# -------------------------- 1526# Try to compile conftest.$ac_ext, and return whether this succeeded. 1527ac_fn_c_try_compile () 1528{ 1529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1530 rm -f conftest.$ac_objext 1531 if { { ac_try="$ac_compile" 1532case "(($ac_try" in 1533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1534 *) ac_try_echo=$ac_try;; 1535esac 1536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1537$as_echo "$ac_try_echo"; } >&5 1538 (eval "$ac_compile") 2>conftest.err 1539 ac_status=$? 1540 if test -s conftest.err; then 1541 grep -v '^ *+' conftest.err >conftest.er1 1542 cat conftest.er1 >&5 1543 mv -f conftest.er1 conftest.err 1544 fi 1545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1546 test $ac_status = 0; } && { 1547 test -z "$ac_c_werror_flag" || 1548 test ! -s conftest.err 1549 } && test -s conftest.$ac_objext; then : 1550 ac_retval=0 1551else 1552 $as_echo "$as_me: failed program was:" >&5 1553sed 's/^/| /' conftest.$ac_ext >&5 1554 1555 ac_retval=1 1556fi 1557 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1558 as_fn_set_status $ac_retval 1559 1560} # ac_fn_c_try_compile 1561 1562# ac_fn_c_try_link LINENO 1563# ----------------------- 1564# Try to link conftest.$ac_ext, and return whether this succeeded. 1565ac_fn_c_try_link () 1566{ 1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1568 rm -f conftest.$ac_objext conftest$ac_exeext 1569 if { { ac_try="$ac_link" 1570case "(($ac_try" in 1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1572 *) ac_try_echo=$ac_try;; 1573esac 1574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1575$as_echo "$ac_try_echo"; } >&5 1576 (eval "$ac_link") 2>conftest.err 1577 ac_status=$? 1578 if test -s conftest.err; then 1579 grep -v '^ *+' conftest.err >conftest.er1 1580 cat conftest.er1 >&5 1581 mv -f conftest.er1 conftest.err 1582 fi 1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1584 test $ac_status = 0; } && { 1585 test -z "$ac_c_werror_flag" || 1586 test ! -s conftest.err 1587 } && test -s conftest$ac_exeext && { 1588 test "$cross_compiling" = yes || 1589 test -x conftest$ac_exeext 1590 }; then : 1591 ac_retval=0 1592else 1593 $as_echo "$as_me: failed program was:" >&5 1594sed 's/^/| /' conftest.$ac_ext >&5 1595 1596 ac_retval=1 1597fi 1598 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1599 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1600 # interfere with the next link command; also delete a directory that is 1601 # left behind by Apple's compiler. We do this before executing the actions. 1602 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1604 as_fn_set_status $ac_retval 1605 1606} # ac_fn_c_try_link 1607 1608# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1609# ------------------------------------------------------- 1610# Tests whether HEADER exists and can be compiled using the include files in 1611# INCLUDES, setting the cache variable VAR accordingly. 1612ac_fn_c_check_header_compile () 1613{ 1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1616$as_echo_n "checking for $2... " >&6; } 1617if eval \${$3+:} false; then : 1618 $as_echo_n "(cached) " >&6 1619else 1620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1621/* end confdefs.h. */ 1622$4 1623#include <$2> 1624_ACEOF 1625if ac_fn_c_try_compile "$LINENO"; then : 1626 eval "$3=yes" 1627else 1628 eval "$3=no" 1629fi 1630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1631fi 1632eval ac_res=\$$3 1633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1634$as_echo "$ac_res" >&6; } 1635 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1636 1637} # ac_fn_c_check_header_compile 1638 1639# ac_fn_c_try_cpp LINENO 1640# ---------------------- 1641# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1642ac_fn_c_try_cpp () 1643{ 1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1645 if { { ac_try="$ac_cpp conftest.$ac_ext" 1646case "(($ac_try" in 1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1648 *) ac_try_echo=$ac_try;; 1649esac 1650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1651$as_echo "$ac_try_echo"; } >&5 1652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1653 ac_status=$? 1654 if test -s conftest.err; then 1655 grep -v '^ *+' conftest.err >conftest.er1 1656 cat conftest.er1 >&5 1657 mv -f conftest.er1 conftest.err 1658 fi 1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1660 test $ac_status = 0; } > conftest.i && { 1661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1662 test ! -s conftest.err 1663 }; then : 1664 ac_retval=0 1665else 1666 $as_echo "$as_me: failed program was:" >&5 1667sed 's/^/| /' conftest.$ac_ext >&5 1668 1669 ac_retval=1 1670fi 1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1672 as_fn_set_status $ac_retval 1673 1674} # ac_fn_c_try_cpp 1675 1676# ac_fn_c_try_run LINENO 1677# ---------------------- 1678# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1679# that executables *can* be run. 1680ac_fn_c_try_run () 1681{ 1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1683 if { { ac_try="$ac_link" 1684case "(($ac_try" in 1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1686 *) ac_try_echo=$ac_try;; 1687esac 1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1689$as_echo "$ac_try_echo"; } >&5 1690 (eval "$ac_link") 2>&5 1691 ac_status=$? 1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1693 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1694 { { case "(($ac_try" in 1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1696 *) ac_try_echo=$ac_try;; 1697esac 1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1699$as_echo "$ac_try_echo"; } >&5 1700 (eval "$ac_try") 2>&5 1701 ac_status=$? 1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1703 test $ac_status = 0; }; }; then : 1704 ac_retval=0 1705else 1706 $as_echo "$as_me: program exited with status $ac_status" >&5 1707 $as_echo "$as_me: failed program was:" >&5 1708sed 's/^/| /' conftest.$ac_ext >&5 1709 1710 ac_retval=$ac_status 1711fi 1712 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1714 as_fn_set_status $ac_retval 1715 1716} # ac_fn_c_try_run 1717 1718# ac_fn_c_check_func LINENO FUNC VAR 1719# ---------------------------------- 1720# Tests whether FUNC exists, setting the cache variable VAR accordingly 1721ac_fn_c_check_func () 1722{ 1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1725$as_echo_n "checking for $2... " >&6; } 1726if eval \${$3+:} false; then : 1727 $as_echo_n "(cached) " >&6 1728else 1729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1730/* end confdefs.h. */ 1731/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1732 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1733#define $2 innocuous_$2 1734 1735/* System header to define __stub macros and hopefully few prototypes, 1736 which can conflict with char $2 (); below. 1737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1738 <limits.h> exists even on freestanding compilers. */ 1739 1740#ifdef __STDC__ 1741# include <limits.h> 1742#else 1743# include <assert.h> 1744#endif 1745 1746#undef $2 1747 1748/* Override any GCC internal prototype to avoid an error. 1749 Use char because int might match the return type of a GCC 1750 builtin and then its argument prototype would still apply. */ 1751#ifdef __cplusplus 1752extern "C" 1753#endif 1754char $2 (); 1755/* The GNU C library defines this for functions which it implements 1756 to always fail with ENOSYS. Some functions are actually named 1757 something starting with __ and the normal name is an alias. */ 1758#if defined __stub_$2 || defined __stub___$2 1759choke me 1760#endif 1761 1762int 1763main () 1764{ 1765return $2 (); 1766 ; 1767 return 0; 1768} 1769_ACEOF 1770if ac_fn_c_try_link "$LINENO"; then : 1771 eval "$3=yes" 1772else 1773 eval "$3=no" 1774fi 1775rm -f core conftest.err conftest.$ac_objext \ 1776 conftest$ac_exeext conftest.$ac_ext 1777fi 1778eval ac_res=\$$3 1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1780$as_echo "$ac_res" >&6; } 1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1782 1783} # ac_fn_c_check_func 1784 1785# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1786# ------------------------------------------- 1787# Tests whether TYPE exists after having included INCLUDES, setting cache 1788# variable VAR accordingly. 1789ac_fn_c_check_type () 1790{ 1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1793$as_echo_n "checking for $2... " >&6; } 1794if eval \${$3+:} false; then : 1795 $as_echo_n "(cached) " >&6 1796else 1797 eval "$3=no" 1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1799/* end confdefs.h. */ 1800$4 1801int 1802main () 1803{ 1804if (sizeof ($2)) 1805 return 0; 1806 ; 1807 return 0; 1808} 1809_ACEOF 1810if ac_fn_c_try_compile "$LINENO"; then : 1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1812/* end confdefs.h. */ 1813$4 1814int 1815main () 1816{ 1817if (sizeof (($2))) 1818 return 0; 1819 ; 1820 return 0; 1821} 1822_ACEOF 1823if ac_fn_c_try_compile "$LINENO"; then : 1824 1825else 1826 eval "$3=yes" 1827fi 1828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1829fi 1830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1831fi 1832eval ac_res=\$$3 1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1834$as_echo "$ac_res" >&6; } 1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1836 1837} # ac_fn_c_check_type 1838cat >config.log <<_ACEOF 1839This file contains any messages produced by compilers while 1840running configure, to aid debugging if configure makes a mistake. 1841 1842It was created by libhmac $as_me 1.00, which was 1843generated by GNU Autoconf 2.69. Invocation command line was 1844 1845 $ $0 $@ 1846 1847_ACEOF 1848exec 5>>config.log 1849{ 1850cat <<_ASUNAME 1851## --------- ## 1852## Platform. ## 1853## --------- ## 1854 1855hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1856uname -m = `(uname -m) 2>/dev/null || echo unknown` 1857uname -r = `(uname -r) 2>/dev/null || echo unknown` 1858uname -s = `(uname -s) 2>/dev/null || echo unknown` 1859uname -v = `(uname -v) 2>/dev/null || echo unknown` 1860 1861/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1862/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1863 1864/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1865/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1866/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1867/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1868/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1869/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1870/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1871 1872_ASUNAME 1873 1874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1875for as_dir in $PATH 1876do 1877 IFS=$as_save_IFS 1878 test -z "$as_dir" && as_dir=. 1879 $as_echo "PATH: $as_dir" 1880 done 1881IFS=$as_save_IFS 1882 1883} >&5 1884 1885cat >&5 <<_ACEOF 1886 1887 1888## ----------- ## 1889## Core tests. ## 1890## ----------- ## 1891 1892_ACEOF 1893 1894 1895# Keep a trace of the command line. 1896# Strip out --no-create and --no-recursion so they do not pile up. 1897# Strip out --silent because we don't want to record it for future runs. 1898# Also quote any args containing shell meta-characters. 1899# Make two passes to allow for proper duplicate-argument suppression. 1900ac_configure_args= 1901ac_configure_args0= 1902ac_configure_args1= 1903ac_must_keep_next=false 1904for ac_pass in 1 2 1905do 1906 for ac_arg 1907 do 1908 case $ac_arg in 1909 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1910 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1911 | -silent | --silent | --silen | --sile | --sil) 1912 continue ;; 1913 *\'*) 1914 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1915 esac 1916 case $ac_pass in 1917 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1918 2) 1919 as_fn_append ac_configure_args1 " '$ac_arg'" 1920 if test $ac_must_keep_next = true; then 1921 ac_must_keep_next=false # Got value, back to normal. 1922 else 1923 case $ac_arg in 1924 *=* | --config-cache | -C | -disable-* | --disable-* \ 1925 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1926 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1927 | -with-* | --with-* | -without-* | --without-* | --x) 1928 case "$ac_configure_args0 " in 1929 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1930 esac 1931 ;; 1932 -* ) ac_must_keep_next=true ;; 1933 esac 1934 fi 1935 as_fn_append ac_configure_args " '$ac_arg'" 1936 ;; 1937 esac 1938 done 1939done 1940{ ac_configure_args0=; unset ac_configure_args0;} 1941{ ac_configure_args1=; unset ac_configure_args1;} 1942 1943# When interrupted or exit'd, cleanup temporary files, and complete 1944# config.log. We remove comments because anyway the quotes in there 1945# would cause problems or look ugly. 1946# WARNING: Use '\'' to represent an apostrophe within the trap. 1947# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1948trap 'exit_status=$? 1949 # Save into config.log some information that might help in debugging. 1950 { 1951 echo 1952 1953 $as_echo "## ---------------- ## 1954## Cache variables. ## 1955## ---------------- ##" 1956 echo 1957 # The following way of writing the cache mishandles newlines in values, 1958( 1959 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1960 eval ac_val=\$$ac_var 1961 case $ac_val in #( 1962 *${as_nl}*) 1963 case $ac_var in #( 1964 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1965$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1966 esac 1967 case $ac_var in #( 1968 _ | IFS | as_nl) ;; #( 1969 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1970 *) { eval $ac_var=; unset $ac_var;} ;; 1971 esac ;; 1972 esac 1973 done 1974 (set) 2>&1 | 1975 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1976 *${as_nl}ac_space=\ *) 1977 sed -n \ 1978 "s/'\''/'\''\\\\'\'''\''/g; 1979 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1980 ;; #( 1981 *) 1982 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1983 ;; 1984 esac | 1985 sort 1986) 1987 echo 1988 1989 $as_echo "## ----------------- ## 1990## Output variables. ## 1991## ----------------- ##" 1992 echo 1993 for ac_var in $ac_subst_vars 1994 do 1995 eval ac_val=\$$ac_var 1996 case $ac_val in 1997 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1998 esac 1999 $as_echo "$ac_var='\''$ac_val'\''" 2000 done | sort 2001 echo 2002 2003 if test -n "$ac_subst_files"; then 2004 $as_echo "## ------------------- ## 2005## File substitutions. ## 2006## ------------------- ##" 2007 echo 2008 for ac_var in $ac_subst_files 2009 do 2010 eval ac_val=\$$ac_var 2011 case $ac_val in 2012 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2013 esac 2014 $as_echo "$ac_var='\''$ac_val'\''" 2015 done | sort 2016 echo 2017 fi 2018 2019 if test -s confdefs.h; then 2020 $as_echo "## ----------- ## 2021## confdefs.h. ## 2022## ----------- ##" 2023 echo 2024 cat confdefs.h 2025 echo 2026 fi 2027 test "$ac_signal" != 0 && 2028 $as_echo "$as_me: caught signal $ac_signal" 2029 $as_echo "$as_me: exit $exit_status" 2030 } >&5 2031 rm -f core *.core core.conftest.* && 2032 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2033 exit $exit_status 2034' 0 2035for ac_signal in 1 2 13 15; do 2036 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2037done 2038ac_signal=0 2039 2040# confdefs.h avoids OS command line length limits that DEFS can exceed. 2041rm -f -r conftest* confdefs.h 2042 2043$as_echo "/* confdefs.h */" > confdefs.h 2044 2045# Predefined preprocessor variables. 2046 2047cat >>confdefs.h <<_ACEOF 2048#define PACKAGE_NAME "$PACKAGE_NAME" 2049_ACEOF 2050 2051cat >>confdefs.h <<_ACEOF 2052#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2053_ACEOF 2054 2055cat >>confdefs.h <<_ACEOF 2056#define PACKAGE_VERSION "$PACKAGE_VERSION" 2057_ACEOF 2058 2059cat >>confdefs.h <<_ACEOF 2060#define PACKAGE_STRING "$PACKAGE_STRING" 2061_ACEOF 2062 2063cat >>confdefs.h <<_ACEOF 2064#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2065_ACEOF 2066 2067cat >>confdefs.h <<_ACEOF 2068#define PACKAGE_URL "$PACKAGE_URL" 2069_ACEOF 2070 2071 2072# Let the site file select an alternate cache file if it wants to. 2073# Prefer an explicitly selected file to automatically selected ones. 2074ac_site_file1=NONE 2075ac_site_file2=NONE 2076if test -n "$CONFIG_SITE"; then 2077 # We do not want a PATH search for config.site. 2078 case $CONFIG_SITE in #(( 2079 -*) ac_site_file1=./$CONFIG_SITE;; 2080 */*) ac_site_file1=$CONFIG_SITE;; 2081 *) ac_site_file1=./$CONFIG_SITE;; 2082 esac 2083elif test "x$prefix" != xNONE; then 2084 ac_site_file1=$prefix/share/config.site 2085 ac_site_file2=$prefix/etc/config.site 2086else 2087 ac_site_file1=$ac_default_prefix/share/config.site 2088 ac_site_file2=$ac_default_prefix/etc/config.site 2089fi 2090for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2091do 2092 test "x$ac_site_file" = xNONE && continue 2093 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2094 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2095$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2096 sed 's/^/| /' "$ac_site_file" >&5 2097 . "$ac_site_file" \ 2098 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2099$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2100as_fn_error $? "failed to load site script $ac_site_file 2101See \`config.log' for more details" "$LINENO" 5; } 2102 fi 2103done 2104 2105if test -r "$cache_file"; then 2106 # Some versions of bash will fail to source /dev/null (special files 2107 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2108 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2109 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2110$as_echo "$as_me: loading cache $cache_file" >&6;} 2111 case $cache_file in 2112 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2113 *) . "./$cache_file";; 2114 esac 2115 fi 2116else 2117 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2118$as_echo "$as_me: creating cache $cache_file" >&6;} 2119 >$cache_file 2120fi 2121 2122# Check that the precious variables saved in the cache have kept the same 2123# value. 2124ac_cache_corrupted=false 2125for ac_var in $ac_precious_vars; do 2126 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2127 eval ac_new_set=\$ac_env_${ac_var}_set 2128 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2129 eval ac_new_val=\$ac_env_${ac_var}_value 2130 case $ac_old_set,$ac_new_set in 2131 set,) 2132 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2133$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2134 ac_cache_corrupted=: ;; 2135 ,set) 2136 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2137$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2138 ac_cache_corrupted=: ;; 2139 ,);; 2140 *) 2141 if test "x$ac_old_val" != "x$ac_new_val"; then 2142 # differences in whitespace do not lead to failure. 2143 ac_old_val_w=`echo x $ac_old_val` 2144 ac_new_val_w=`echo x $ac_new_val` 2145 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2146 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2147$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2148 ac_cache_corrupted=: 2149 else 2150 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2151$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2152 eval $ac_var=\$ac_old_val 2153 fi 2154 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2155$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2156 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2157$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2158 fi;; 2159 esac 2160 # Pass precious variables to config.status. 2161 if test "$ac_new_set" = set; then 2162 case $ac_new_val in 2163 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2164 *) ac_arg=$ac_var=$ac_new_val ;; 2165 esac 2166 case " $ac_configure_args " in 2167 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2168 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2169 esac 2170 fi 2171done 2172if $ac_cache_corrupted; then 2173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2174$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2175 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2176$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2177 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2178fi 2179## -------------------- ## 2180## Main body of script. ## 2181## -------------------- ## 2182 2183ac_ext=c 2184ac_cpp='$CPP $CPPFLAGS' 2185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2187ac_compiler_gnu=$ac_cv_c_compiler_gnu 2188 2189 2190 2191>confdefs.h # Kill PACKAGE_ macros 2192 2193 2194ac_aux_dir= 2195for ac_dir in ../.. "$srcdir"/../..; do 2196 if test -f "$ac_dir/install-sh"; then 2197 ac_aux_dir=$ac_dir 2198 ac_install_sh="$ac_aux_dir/install-sh -c" 2199 break 2200 elif test -f "$ac_dir/install.sh"; then 2201 ac_aux_dir=$ac_dir 2202 ac_install_sh="$ac_aux_dir/install.sh -c" 2203 break 2204 elif test -f "$ac_dir/shtool"; then 2205 ac_aux_dir=$ac_dir 2206 ac_install_sh="$ac_aux_dir/shtool install -c" 2207 break 2208 fi 2209done 2210if test -z "$ac_aux_dir"; then 2211 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5 2212fi 2213 2214# These three variables are undocumented and unsupported, 2215# and are intended to be withdrawn in a future Autoconf release. 2216# They can cause serious problems if a builder's source tree is in a directory 2217# whose full name contains unusual characters. 2218ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2219ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2220ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2221 2222 2223am__api_version='1.16' 2224 2225# Find a good install program. We prefer a C program (faster), 2226# so one script is as good as another. But avoid the broken or 2227# incompatible versions: 2228# SysV /etc/install, /usr/sbin/install 2229# SunOS /usr/etc/install 2230# IRIX /sbin/install 2231# AIX /bin/install 2232# AmigaOS /C/install, which installs bootblocks on floppy discs 2233# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2234# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2235# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2236# OS/2's system install, which has a completely different semantic 2237# ./install, which can be erroneously created by make from ./install.sh. 2238# Reject install programs that cannot install multiple files. 2239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2240$as_echo_n "checking for a BSD-compatible install... " >&6; } 2241if test -z "$INSTALL"; then 2242if ${ac_cv_path_install+:} false; then : 2243 $as_echo_n "(cached) " >&6 2244else 2245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2246for as_dir in $PATH 2247do 2248 IFS=$as_save_IFS 2249 test -z "$as_dir" && as_dir=. 2250 # Account for people who put trailing slashes in PATH elements. 2251case $as_dir/ in #(( 2252 ./ | .// | /[cC]/* | \ 2253 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2254 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2255 /usr/ucb/* ) ;; 2256 *) 2257 # OSF1 and SCO ODT 3.0 have their own names for install. 2258 # Don't use installbsd from OSF since it installs stuff as root 2259 # by default. 2260 for ac_prog in ginstall scoinst install; do 2261 for ac_exec_ext in '' $ac_executable_extensions; do 2262 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2263 if test $ac_prog = install && 2264 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2265 # AIX install. It has an incompatible calling convention. 2266 : 2267 elif test $ac_prog = install && 2268 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2269 # program-specific install script used by HP pwplus--don't use. 2270 : 2271 else 2272 rm -rf conftest.one conftest.two conftest.dir 2273 echo one > conftest.one 2274 echo two > conftest.two 2275 mkdir conftest.dir 2276 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2277 test -s conftest.one && test -s conftest.two && 2278 test -s conftest.dir/conftest.one && 2279 test -s conftest.dir/conftest.two 2280 then 2281 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2282 break 3 2283 fi 2284 fi 2285 fi 2286 done 2287 done 2288 ;; 2289esac 2290 2291 done 2292IFS=$as_save_IFS 2293 2294rm -rf conftest.one conftest.two conftest.dir 2295 2296fi 2297 if test "${ac_cv_path_install+set}" = set; then 2298 INSTALL=$ac_cv_path_install 2299 else 2300 # As a last resort, use the slow shell script. Don't cache a 2301 # value for INSTALL within a source directory, because that will 2302 # break other packages using the cache if that directory is 2303 # removed, or if the value is a relative name. 2304 INSTALL=$ac_install_sh 2305 fi 2306fi 2307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2308$as_echo "$INSTALL" >&6; } 2309 2310# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2311# It thinks the first close brace ends the variable substitution. 2312test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2313 2314test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2315 2316test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2317 2318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2319$as_echo_n "checking whether build environment is sane... " >&6; } 2320# Reject unsafe characters in $srcdir or the absolute working directory 2321# name. Accept space and tab only in the latter. 2322am_lf=' 2323' 2324case `pwd` in 2325 *[\\\"\#\$\&\'\`$am_lf]*) 2326 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2327esac 2328case $srcdir in 2329 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2330 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2331esac 2332 2333# Do 'set' in a subshell so we don't clobber the current shell's 2334# arguments. Must try -L first in case configure is actually a 2335# symlink; some systems play weird games with the mod time of symlinks 2336# (eg FreeBSD returns the mod time of the symlink's containing 2337# directory). 2338if ( 2339 am_has_slept=no 2340 for am_try in 1 2; do 2341 echo "timestamp, slept: $am_has_slept" > conftest.file 2342 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2343 if test "$*" = "X"; then 2344 # -L didn't work. 2345 set X `ls -t "$srcdir/configure" conftest.file` 2346 fi 2347 if test "$*" != "X $srcdir/configure conftest.file" \ 2348 && test "$*" != "X conftest.file $srcdir/configure"; then 2349 2350 # If neither matched, then we have a broken ls. This can happen 2351 # if, for instance, CONFIG_SHELL is bash and it inherits a 2352 # broken ls alias from the environment. This has actually 2353 # happened. Such a system could not be considered "sane". 2354 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2355 alias in your environment" "$LINENO" 5 2356 fi 2357 if test "$2" = conftest.file || test $am_try -eq 2; then 2358 break 2359 fi 2360 # Just in case. 2361 sleep 1 2362 am_has_slept=yes 2363 done 2364 test "$2" = conftest.file 2365 ) 2366then 2367 # Ok. 2368 : 2369else 2370 as_fn_error $? "newly created file is older than distributed files! 2371Check your system clock" "$LINENO" 5 2372fi 2373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2374$as_echo "yes" >&6; } 2375# If we didn't sleep, we still need to ensure time stamps of config.status and 2376# generated files are strictly newer. 2377am_sleep_pid= 2378if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2379 ( sleep 1 ) & 2380 am_sleep_pid=$! 2381fi 2382 2383rm -f conftest.file 2384 2385test "$program_prefix" != NONE && 2386 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2387# Use a double $ so make ignores it. 2388test "$program_suffix" != NONE && 2389 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2390# Double any \ or $. 2391# By default was `s,x,x', remove it if useless. 2392ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2393program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2394 2395# Expand $ac_aux_dir to an absolute path. 2396am_aux_dir=`cd "$ac_aux_dir" && pwd` 2397 2398if test x"${MISSING+set}" != xset; then 2399 case $am_aux_dir in 2400 *\ * | *\ *) 2401 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2402 *) 2403 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2404 esac 2405fi 2406# Use eval to expand $SHELL 2407if eval "$MISSING --is-lightweight"; then 2408 am_missing_run="$MISSING " 2409else 2410 am_missing_run= 2411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2412$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2413fi 2414 2415if test x"${install_sh+set}" != xset; then 2416 case $am_aux_dir in 2417 *\ * | *\ *) 2418 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2419 *) 2420 install_sh="\${SHELL} $am_aux_dir/install-sh" 2421 esac 2422fi 2423 2424# Installed binaries are usually stripped using 'strip' when the user 2425# run "make install-strip". However 'strip' might not be the right 2426# tool to use in cross-compilation environments, therefore Automake 2427# will honor the 'STRIP' environment variable to overrule this program. 2428if test "$cross_compiling" != no; then 2429 if test -n "$ac_tool_prefix"; then 2430 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2431set dummy ${ac_tool_prefix}strip; ac_word=$2 2432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2433$as_echo_n "checking for $ac_word... " >&6; } 2434if ${ac_cv_prog_STRIP+:} false; then : 2435 $as_echo_n "(cached) " >&6 2436else 2437 if test -n "$STRIP"; then 2438 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2439else 2440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2441for as_dir in $PATH 2442do 2443 IFS=$as_save_IFS 2444 test -z "$as_dir" && as_dir=. 2445 for ac_exec_ext in '' $ac_executable_extensions; do 2446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2447 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2449 break 2 2450 fi 2451done 2452 done 2453IFS=$as_save_IFS 2454 2455fi 2456fi 2457STRIP=$ac_cv_prog_STRIP 2458if test -n "$STRIP"; then 2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2460$as_echo "$STRIP" >&6; } 2461else 2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2463$as_echo "no" >&6; } 2464fi 2465 2466 2467fi 2468if test -z "$ac_cv_prog_STRIP"; then 2469 ac_ct_STRIP=$STRIP 2470 # Extract the first word of "strip", so it can be a program name with args. 2471set dummy strip; ac_word=$2 2472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2473$as_echo_n "checking for $ac_word... " >&6; } 2474if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2475 $as_echo_n "(cached) " >&6 2476else 2477 if test -n "$ac_ct_STRIP"; then 2478 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2479else 2480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2481for as_dir in $PATH 2482do 2483 IFS=$as_save_IFS 2484 test -z "$as_dir" && as_dir=. 2485 for ac_exec_ext in '' $ac_executable_extensions; do 2486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2487 ac_cv_prog_ac_ct_STRIP="strip" 2488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2489 break 2 2490 fi 2491done 2492 done 2493IFS=$as_save_IFS 2494 2495fi 2496fi 2497ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2498if test -n "$ac_ct_STRIP"; then 2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2500$as_echo "$ac_ct_STRIP" >&6; } 2501else 2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2503$as_echo "no" >&6; } 2504fi 2505 2506 if test "x$ac_ct_STRIP" = x; then 2507 STRIP=":" 2508 else 2509 case $cross_compiling:$ac_tool_warned in 2510yes:) 2511{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2512$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2513ac_tool_warned=yes ;; 2514esac 2515 STRIP=$ac_ct_STRIP 2516 fi 2517else 2518 STRIP="$ac_cv_prog_STRIP" 2519fi 2520 2521fi 2522INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2523 2524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2525$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2526if test -z "$MKDIR_P"; then 2527 if ${ac_cv_path_mkdir+:} false; then : 2528 $as_echo_n "(cached) " >&6 2529else 2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2531for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2532do 2533 IFS=$as_save_IFS 2534 test -z "$as_dir" && as_dir=. 2535 for ac_prog in mkdir gmkdir; do 2536 for ac_exec_ext in '' $ac_executable_extensions; do 2537 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2538 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2539 'mkdir (GNU coreutils) '* | \ 2540 'mkdir (coreutils) '* | \ 2541 'mkdir (fileutils) '4.1*) 2542 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2543 break 3;; 2544 esac 2545 done 2546 done 2547 done 2548IFS=$as_save_IFS 2549 2550fi 2551 2552 test -d ./--version && rmdir ./--version 2553 if test "${ac_cv_path_mkdir+set}" = set; then 2554 MKDIR_P="$ac_cv_path_mkdir -p" 2555 else 2556 # As a last resort, use the slow shell script. Don't cache a 2557 # value for MKDIR_P within a source directory, because that will 2558 # break other packages using the cache if that directory is 2559 # removed, or if the value is a relative name. 2560 MKDIR_P="$ac_install_sh -d" 2561 fi 2562fi 2563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2564$as_echo "$MKDIR_P" >&6; } 2565 2566for ac_prog in gawk mawk nawk awk 2567do 2568 # Extract the first word of "$ac_prog", so it can be a program name with args. 2569set dummy $ac_prog; ac_word=$2 2570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2571$as_echo_n "checking for $ac_word... " >&6; } 2572if ${ac_cv_prog_AWK+:} false; then : 2573 $as_echo_n "(cached) " >&6 2574else 2575 if test -n "$AWK"; then 2576 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2577else 2578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2579for as_dir in $PATH 2580do 2581 IFS=$as_save_IFS 2582 test -z "$as_dir" && as_dir=. 2583 for ac_exec_ext in '' $ac_executable_extensions; do 2584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2585 ac_cv_prog_AWK="$ac_prog" 2586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2587 break 2 2588 fi 2589done 2590 done 2591IFS=$as_save_IFS 2592 2593fi 2594fi 2595AWK=$ac_cv_prog_AWK 2596if test -n "$AWK"; then 2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2598$as_echo "$AWK" >&6; } 2599else 2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2601$as_echo "no" >&6; } 2602fi 2603 2604 2605 test -n "$AWK" && break 2606done 2607 2608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2609$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2610set x ${MAKE-make} 2611ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2612if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2613 $as_echo_n "(cached) " >&6 2614else 2615 cat >conftest.make <<\_ACEOF 2616SHELL = /bin/sh 2617all: 2618 @echo '@@@%%%=$(MAKE)=@@@%%%' 2619_ACEOF 2620# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2621case `${MAKE-make} -f conftest.make 2>/dev/null` in 2622 *@@@%%%=?*=@@@%%%*) 2623 eval ac_cv_prog_make_${ac_make}_set=yes;; 2624 *) 2625 eval ac_cv_prog_make_${ac_make}_set=no;; 2626esac 2627rm -f conftest.make 2628fi 2629if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2631$as_echo "yes" >&6; } 2632 SET_MAKE= 2633else 2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2635$as_echo "no" >&6; } 2636 SET_MAKE="MAKE=${MAKE-make}" 2637fi 2638 2639rm -rf .tst 2>/dev/null 2640mkdir .tst 2>/dev/null 2641if test -d .tst; then 2642 am__leading_dot=. 2643else 2644 am__leading_dot=_ 2645fi 2646rmdir .tst 2>/dev/null 2647 2648# Check whether --enable-silent-rules was given. 2649if test "${enable_silent_rules+set}" = set; then : 2650 enableval=$enable_silent_rules; 2651fi 2652 2653case $enable_silent_rules in # ((( 2654 yes) AM_DEFAULT_VERBOSITY=0;; 2655 no) AM_DEFAULT_VERBOSITY=1;; 2656 *) AM_DEFAULT_VERBOSITY=1;; 2657esac 2658am_make=${MAKE-make} 2659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2660$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2661if ${am_cv_make_support_nested_variables+:} false; then : 2662 $as_echo_n "(cached) " >&6 2663else 2664 if $as_echo 'TRUE=$(BAR$(V)) 2665BAR0=false 2666BAR1=true 2667V=1 2668am__doit: 2669 @$(TRUE) 2670.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2671 am_cv_make_support_nested_variables=yes 2672else 2673 am_cv_make_support_nested_variables=no 2674fi 2675fi 2676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2677$as_echo "$am_cv_make_support_nested_variables" >&6; } 2678if test $am_cv_make_support_nested_variables = yes; then 2679 AM_V='$(V)' 2680 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2681else 2682 AM_V=$AM_DEFAULT_VERBOSITY 2683 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2684fi 2685AM_BACKSLASH='\' 2686 2687if test "`cd $srcdir && pwd`" != "`pwd`"; then 2688 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2689 # is not polluted with repeated "-I." 2690 am__isrc=' -I$(srcdir)' 2691 # test to see if srcdir already configured 2692 if test -f $srcdir/config.status; then 2693 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2694 fi 2695fi 2696 2697# test whether we have cygpath 2698if test -z "$CYGPATH_W"; then 2699 if (cygpath --version) >/dev/null 2>/dev/null; then 2700 CYGPATH_W='cygpath -w' 2701 else 2702 CYGPATH_W=echo 2703 fi 2704fi 2705 2706 2707# Define the identity of the package. 2708 PACKAGE='libhmac' 2709 VERSION='1.00' 2710 2711 2712# Some tools Automake needs. 2713 2714ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2715 2716 2717AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2718 2719 2720AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2721 2722 2723AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2724 2725 2726MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2727 2728# For better backward compatibility. To be removed once Automake 1.9.x 2729# dies out for good. For more background, see: 2730# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2731# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2732mkdir_p='$(MKDIR_P)' 2733 2734# We need awk for the "check" target (and possibly the TAP driver). The 2735# system "awk" is bad on some platforms. 2736# Always define AMTAR for backward compatibility. Yes, it's still used 2737# in the wild :-( We should find a proper way to deprecate it ... 2738AMTAR='$${TAR-tar}' 2739 2740 2741# We'll loop over all known methods to create a tar archive until one works. 2742_am_tools='gnutar pax cpio none' 2743 2744am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2745 2746 2747 2748 2749 2750 2751# POSIX will say in a future version that running "rm -f" with no argument 2752# is OK; and we want to be able to make that assumption in our Makefile 2753# recipes. So use an aggressive probe to check that the usage we want is 2754# actually supported "in the wild" to an acceptable degree. 2755# See automake bug#10828. 2756# To make any issue more visible, cause the running configure to be aborted 2757# by default if the 'rm' program in use doesn't match our expectations; the 2758# user can still override this though. 2759if rm -f && rm -fr && rm -rf; then : OK; else 2760 cat >&2 <<'END' 2761Oops! 2762 2763Your 'rm' program seems unable to run without file operands specified 2764on the command line, even when the '-f' option is present. This is contrary 2765to the behaviour of most rm programs out there, and not conforming with 2766the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2767 2768Please tell bug-automake@gnu.org about your system, including the value 2769of your $PATH and any error possibly output before this message. This 2770can help us improve future automake versions. 2771 2772END 2773 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2774 echo 'Configuration will proceed anyway, since you have set the' >&2 2775 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2776 echo >&2 2777 else 2778 cat >&2 <<'END' 2779Aborting the configuration process, to ensure you take notice of the issue. 2780 2781You can download and install GNU coreutils to get an 'rm' implementation 2782that behaves properly: <https://www.gnu.org/software/coreutils/>. 2783 2784If you want to complete the configuration process using your problematic 2785'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2786to "yes", and re-run configure. 2787 2788END 2789 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2790 fi 2791fi 2792 2793 2794 2795ac_config_headers="$ac_config_headers config.h" 2796 2797 2798for ac_prog in gawk mawk nawk awk 2799do 2800 # Extract the first word of "$ac_prog", so it can be a program name with args. 2801set dummy $ac_prog; ac_word=$2 2802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2803$as_echo_n "checking for $ac_word... " >&6; } 2804if ${ac_cv_prog_AWK+:} false; then : 2805 $as_echo_n "(cached) " >&6 2806else 2807 if test -n "$AWK"; then 2808 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2809else 2810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2811for as_dir in $PATH 2812do 2813 IFS=$as_save_IFS 2814 test -z "$as_dir" && as_dir=. 2815 for ac_exec_ext in '' $ac_executable_extensions; do 2816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2817 ac_cv_prog_AWK="$ac_prog" 2818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2819 break 2 2820 fi 2821done 2822 done 2823IFS=$as_save_IFS 2824 2825fi 2826fi 2827AWK=$ac_cv_prog_AWK 2828if test -n "$AWK"; then 2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2830$as_echo "$AWK" >&6; } 2831else 2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2833$as_echo "no" >&6; } 2834fi 2835 2836 2837 test -n "$AWK" && break 2838done 2839 2840 2841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 2842$as_echo_n "checking whether ln -s works... " >&6; } 2843LN_S=$as_ln_s 2844if test "$LN_S" = "ln -s"; then 2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2846$as_echo "yes" >&6; } 2847else 2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 2849$as_echo "no, using $LN_S" >&6; } 2850fi 2851 2852ac_ext=c 2853ac_cpp='$CPP $CPPFLAGS' 2854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2856ac_compiler_gnu=$ac_cv_c_compiler_gnu 2857if test -n "$ac_tool_prefix"; then 2858 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2859set dummy ${ac_tool_prefix}gcc; ac_word=$2 2860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2861$as_echo_n "checking for $ac_word... " >&6; } 2862if ${ac_cv_prog_CC+:} false; then : 2863 $as_echo_n "(cached) " >&6 2864else 2865 if test -n "$CC"; then 2866 ac_cv_prog_CC="$CC" # Let the user override the test. 2867else 2868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2869for as_dir in $PATH 2870do 2871 IFS=$as_save_IFS 2872 test -z "$as_dir" && as_dir=. 2873 for ac_exec_ext in '' $ac_executable_extensions; do 2874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2875 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2877 break 2 2878 fi 2879done 2880 done 2881IFS=$as_save_IFS 2882 2883fi 2884fi 2885CC=$ac_cv_prog_CC 2886if test -n "$CC"; then 2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2888$as_echo "$CC" >&6; } 2889else 2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2891$as_echo "no" >&6; } 2892fi 2893 2894 2895fi 2896if test -z "$ac_cv_prog_CC"; then 2897 ac_ct_CC=$CC 2898 # Extract the first word of "gcc", so it can be a program name with args. 2899set dummy gcc; ac_word=$2 2900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2901$as_echo_n "checking for $ac_word... " >&6; } 2902if ${ac_cv_prog_ac_ct_CC+:} false; then : 2903 $as_echo_n "(cached) " >&6 2904else 2905 if test -n "$ac_ct_CC"; then 2906 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2907else 2908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2909for as_dir in $PATH 2910do 2911 IFS=$as_save_IFS 2912 test -z "$as_dir" && as_dir=. 2913 for ac_exec_ext in '' $ac_executable_extensions; do 2914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2915 ac_cv_prog_ac_ct_CC="gcc" 2916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2917 break 2 2918 fi 2919done 2920 done 2921IFS=$as_save_IFS 2922 2923fi 2924fi 2925ac_ct_CC=$ac_cv_prog_ac_ct_CC 2926if test -n "$ac_ct_CC"; then 2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2928$as_echo "$ac_ct_CC" >&6; } 2929else 2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2931$as_echo "no" >&6; } 2932fi 2933 2934 if test "x$ac_ct_CC" = x; then 2935 CC="" 2936 else 2937 case $cross_compiling:$ac_tool_warned in 2938yes:) 2939{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2940$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2941ac_tool_warned=yes ;; 2942esac 2943 CC=$ac_ct_CC 2944 fi 2945else 2946 CC="$ac_cv_prog_CC" 2947fi 2948 2949if test -z "$CC"; then 2950 if test -n "$ac_tool_prefix"; then 2951 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2952set dummy ${ac_tool_prefix}cc; ac_word=$2 2953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2954$as_echo_n "checking for $ac_word... " >&6; } 2955if ${ac_cv_prog_CC+:} false; then : 2956 $as_echo_n "(cached) " >&6 2957else 2958 if test -n "$CC"; then 2959 ac_cv_prog_CC="$CC" # Let the user override the test. 2960else 2961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2962for as_dir in $PATH 2963do 2964 IFS=$as_save_IFS 2965 test -z "$as_dir" && as_dir=. 2966 for ac_exec_ext in '' $ac_executable_extensions; do 2967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2968 ac_cv_prog_CC="${ac_tool_prefix}cc" 2969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2970 break 2 2971 fi 2972done 2973 done 2974IFS=$as_save_IFS 2975 2976fi 2977fi 2978CC=$ac_cv_prog_CC 2979if test -n "$CC"; then 2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2981$as_echo "$CC" >&6; } 2982else 2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2984$as_echo "no" >&6; } 2985fi 2986 2987 2988 fi 2989fi 2990if test -z "$CC"; then 2991 # Extract the first word of "cc", so it can be a program name with args. 2992set dummy cc; ac_word=$2 2993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2994$as_echo_n "checking for $ac_word... " >&6; } 2995if ${ac_cv_prog_CC+:} false; then : 2996 $as_echo_n "(cached) " >&6 2997else 2998 if test -n "$CC"; then 2999 ac_cv_prog_CC="$CC" # Let the user override the test. 3000else 3001 ac_prog_rejected=no 3002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3003for as_dir in $PATH 3004do 3005 IFS=$as_save_IFS 3006 test -z "$as_dir" && as_dir=. 3007 for ac_exec_ext in '' $ac_executable_extensions; do 3008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3009 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3010 ac_prog_rejected=yes 3011 continue 3012 fi 3013 ac_cv_prog_CC="cc" 3014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3015 break 2 3016 fi 3017done 3018 done 3019IFS=$as_save_IFS 3020 3021if test $ac_prog_rejected = yes; then 3022 # We found a bogon in the path, so make sure we never use it. 3023 set dummy $ac_cv_prog_CC 3024 shift 3025 if test $# != 0; then 3026 # We chose a different compiler from the bogus one. 3027 # However, it has the same basename, so the bogon will be chosen 3028 # first if we set CC to just the basename; use the full file name. 3029 shift 3030 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3031 fi 3032fi 3033fi 3034fi 3035CC=$ac_cv_prog_CC 3036if test -n "$CC"; then 3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3038$as_echo "$CC" >&6; } 3039else 3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3041$as_echo "no" >&6; } 3042fi 3043 3044 3045fi 3046if test -z "$CC"; then 3047 if test -n "$ac_tool_prefix"; then 3048 for ac_prog in cl.exe 3049 do 3050 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3051set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3053$as_echo_n "checking for $ac_word... " >&6; } 3054if ${ac_cv_prog_CC+:} false; then : 3055 $as_echo_n "(cached) " >&6 3056else 3057 if test -n "$CC"; then 3058 ac_cv_prog_CC="$CC" # Let the user override the test. 3059else 3060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3061for as_dir in $PATH 3062do 3063 IFS=$as_save_IFS 3064 test -z "$as_dir" && as_dir=. 3065 for ac_exec_ext in '' $ac_executable_extensions; do 3066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3067 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3069 break 2 3070 fi 3071done 3072 done 3073IFS=$as_save_IFS 3074 3075fi 3076fi 3077CC=$ac_cv_prog_CC 3078if test -n "$CC"; then 3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3080$as_echo "$CC" >&6; } 3081else 3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3083$as_echo "no" >&6; } 3084fi 3085 3086 3087 test -n "$CC" && break 3088 done 3089fi 3090if test -z "$CC"; then 3091 ac_ct_CC=$CC 3092 for ac_prog in cl.exe 3093do 3094 # Extract the first word of "$ac_prog", so it can be a program name with args. 3095set dummy $ac_prog; ac_word=$2 3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3097$as_echo_n "checking for $ac_word... " >&6; } 3098if ${ac_cv_prog_ac_ct_CC+:} false; then : 3099 $as_echo_n "(cached) " >&6 3100else 3101 if test -n "$ac_ct_CC"; then 3102 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3103else 3104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3105for as_dir in $PATH 3106do 3107 IFS=$as_save_IFS 3108 test -z "$as_dir" && as_dir=. 3109 for ac_exec_ext in '' $ac_executable_extensions; do 3110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3111 ac_cv_prog_ac_ct_CC="$ac_prog" 3112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3113 break 2 3114 fi 3115done 3116 done 3117IFS=$as_save_IFS 3118 3119fi 3120fi 3121ac_ct_CC=$ac_cv_prog_ac_ct_CC 3122if test -n "$ac_ct_CC"; then 3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3124$as_echo "$ac_ct_CC" >&6; } 3125else 3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3127$as_echo "no" >&6; } 3128fi 3129 3130 3131 test -n "$ac_ct_CC" && break 3132done 3133 3134 if test "x$ac_ct_CC" = x; then 3135 CC="" 3136 else 3137 case $cross_compiling:$ac_tool_warned in 3138yes:) 3139{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3140$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3141ac_tool_warned=yes ;; 3142esac 3143 CC=$ac_ct_CC 3144 fi 3145fi 3146 3147fi 3148 3149 3150test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3151$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3152as_fn_error $? "no acceptable C compiler found in \$PATH 3153See \`config.log' for more details" "$LINENO" 5; } 3154 3155# Provide some information about the compiler. 3156$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3157set X $ac_compile 3158ac_compiler=$2 3159for ac_option in --version -v -V -qversion; do 3160 { { ac_try="$ac_compiler $ac_option >&5" 3161case "(($ac_try" in 3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3163 *) ac_try_echo=$ac_try;; 3164esac 3165eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3166$as_echo "$ac_try_echo"; } >&5 3167 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3168 ac_status=$? 3169 if test -s conftest.err; then 3170 sed '10a\ 3171... rest of stderr output deleted ... 3172 10q' conftest.err >conftest.er1 3173 cat conftest.er1 >&5 3174 fi 3175 rm -f conftest.er1 conftest.err 3176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3177 test $ac_status = 0; } 3178done 3179 3180cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3181/* end confdefs.h. */ 3182 3183int 3184main () 3185{ 3186 3187 ; 3188 return 0; 3189} 3190_ACEOF 3191ac_clean_files_save=$ac_clean_files 3192ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3193# Try to create an executable without -o first, disregard a.out. 3194# It will help us diagnose broken compilers, and finding out an intuition 3195# of exeext. 3196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3197$as_echo_n "checking whether the C compiler works... " >&6; } 3198ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3199 3200# The possible output files: 3201ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3202 3203ac_rmfiles= 3204for ac_file in $ac_files 3205do 3206 case $ac_file in 3207 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3208 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3209 esac 3210done 3211rm -f $ac_rmfiles 3212 3213if { { ac_try="$ac_link_default" 3214case "(($ac_try" in 3215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3216 *) ac_try_echo=$ac_try;; 3217esac 3218eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3219$as_echo "$ac_try_echo"; } >&5 3220 (eval "$ac_link_default") 2>&5 3221 ac_status=$? 3222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3223 test $ac_status = 0; }; then : 3224 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3225# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3226# in a Makefile. We should not override ac_cv_exeext if it was cached, 3227# so that the user can short-circuit this test for compilers unknown to 3228# Autoconf. 3229for ac_file in $ac_files '' 3230do 3231 test -f "$ac_file" || continue 3232 case $ac_file in 3233 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3234 ;; 3235 [ab].out ) 3236 # We found the default executable, but exeext='' is most 3237 # certainly right. 3238 break;; 3239 *.* ) 3240 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3241 then :; else 3242 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3243 fi 3244 # We set ac_cv_exeext here because the later test for it is not 3245 # safe: cross compilers may not add the suffix if given an `-o' 3246 # argument, so we may need to know it at that point already. 3247 # Even if this section looks crufty: it has the advantage of 3248 # actually working. 3249 break;; 3250 * ) 3251 break;; 3252 esac 3253done 3254test "$ac_cv_exeext" = no && ac_cv_exeext= 3255 3256else 3257 ac_file='' 3258fi 3259if test -z "$ac_file"; then : 3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3261$as_echo "no" >&6; } 3262$as_echo "$as_me: failed program was:" >&5 3263sed 's/^/| /' conftest.$ac_ext >&5 3264 3265{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3266$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3267as_fn_error 77 "C compiler cannot create executables 3268See \`config.log' for more details" "$LINENO" 5; } 3269else 3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3271$as_echo "yes" >&6; } 3272fi 3273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3274$as_echo_n "checking for C compiler default output file name... " >&6; } 3275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3276$as_echo "$ac_file" >&6; } 3277ac_exeext=$ac_cv_exeext 3278 3279rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3280ac_clean_files=$ac_clean_files_save 3281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3282$as_echo_n "checking for suffix of executables... " >&6; } 3283if { { ac_try="$ac_link" 3284case "(($ac_try" in 3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3286 *) ac_try_echo=$ac_try;; 3287esac 3288eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3289$as_echo "$ac_try_echo"; } >&5 3290 (eval "$ac_link") 2>&5 3291 ac_status=$? 3292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3293 test $ac_status = 0; }; then : 3294 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3295# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3296# work properly (i.e., refer to `conftest.exe'), while it won't with 3297# `rm'. 3298for ac_file in conftest.exe conftest conftest.*; do 3299 test -f "$ac_file" || continue 3300 case $ac_file in 3301 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3302 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3303 break;; 3304 * ) break;; 3305 esac 3306done 3307else 3308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3309$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3310as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3311See \`config.log' for more details" "$LINENO" 5; } 3312fi 3313rm -f conftest conftest$ac_cv_exeext 3314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3315$as_echo "$ac_cv_exeext" >&6; } 3316 3317rm -f conftest.$ac_ext 3318EXEEXT=$ac_cv_exeext 3319ac_exeext=$EXEEXT 3320cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3321/* end confdefs.h. */ 3322#include <stdio.h> 3323int 3324main () 3325{ 3326FILE *f = fopen ("conftest.out", "w"); 3327 return ferror (f) || fclose (f) != 0; 3328 3329 ; 3330 return 0; 3331} 3332_ACEOF 3333ac_clean_files="$ac_clean_files conftest.out" 3334# Check that the compiler produces executables we can run. If not, either 3335# the compiler is broken, or we cross compile. 3336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3337$as_echo_n "checking whether we are cross compiling... " >&6; } 3338if test "$cross_compiling" != yes; then 3339 { { ac_try="$ac_link" 3340case "(($ac_try" in 3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3342 *) ac_try_echo=$ac_try;; 3343esac 3344eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3345$as_echo "$ac_try_echo"; } >&5 3346 (eval "$ac_link") 2>&5 3347 ac_status=$? 3348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3349 test $ac_status = 0; } 3350 if { ac_try='./conftest$ac_cv_exeext' 3351 { { case "(($ac_try" in 3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3353 *) ac_try_echo=$ac_try;; 3354esac 3355eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3356$as_echo "$ac_try_echo"; } >&5 3357 (eval "$ac_try") 2>&5 3358 ac_status=$? 3359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3360 test $ac_status = 0; }; }; then 3361 cross_compiling=no 3362 else 3363 if test "$cross_compiling" = maybe; then 3364 cross_compiling=yes 3365 else 3366 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3367$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3368as_fn_error $? "cannot run C compiled programs. 3369If you meant to cross compile, use \`--host'. 3370See \`config.log' for more details" "$LINENO" 5; } 3371 fi 3372 fi 3373fi 3374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3375$as_echo "$cross_compiling" >&6; } 3376 3377rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3378ac_clean_files=$ac_clean_files_save 3379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3380$as_echo_n "checking for suffix of object files... " >&6; } 3381if ${ac_cv_objext+:} false; then : 3382 $as_echo_n "(cached) " >&6 3383else 3384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3385/* end confdefs.h. */ 3386 3387int 3388main () 3389{ 3390 3391 ; 3392 return 0; 3393} 3394_ACEOF 3395rm -f conftest.o conftest.obj 3396if { { ac_try="$ac_compile" 3397case "(($ac_try" in 3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3399 *) ac_try_echo=$ac_try;; 3400esac 3401eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3402$as_echo "$ac_try_echo"; } >&5 3403 (eval "$ac_compile") 2>&5 3404 ac_status=$? 3405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3406 test $ac_status = 0; }; then : 3407 for ac_file in conftest.o conftest.obj conftest.*; do 3408 test -f "$ac_file" || continue; 3409 case $ac_file in 3410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3411 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3412 break;; 3413 esac 3414done 3415else 3416 $as_echo "$as_me: failed program was:" >&5 3417sed 's/^/| /' conftest.$ac_ext >&5 3418 3419{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3420$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3421as_fn_error $? "cannot compute suffix of object files: cannot compile 3422See \`config.log' for more details" "$LINENO" 5; } 3423fi 3424rm -f conftest.$ac_cv_objext conftest.$ac_ext 3425fi 3426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3427$as_echo "$ac_cv_objext" >&6; } 3428OBJEXT=$ac_cv_objext 3429ac_objext=$OBJEXT 3430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3431$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3432if ${ac_cv_c_compiler_gnu+:} false; then : 3433 $as_echo_n "(cached) " >&6 3434else 3435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3436/* end confdefs.h. */ 3437 3438int 3439main () 3440{ 3441#ifndef __GNUC__ 3442 choke me 3443#endif 3444 3445 ; 3446 return 0; 3447} 3448_ACEOF 3449if ac_fn_c_try_compile "$LINENO"; then : 3450 ac_compiler_gnu=yes 3451else 3452 ac_compiler_gnu=no 3453fi 3454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3455ac_cv_c_compiler_gnu=$ac_compiler_gnu 3456 3457fi 3458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3459$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3460if test $ac_compiler_gnu = yes; then 3461 GCC=yes 3462else 3463 GCC= 3464fi 3465ac_test_CFLAGS=${CFLAGS+set} 3466ac_save_CFLAGS=$CFLAGS 3467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3468$as_echo_n "checking whether $CC accepts -g... " >&6; } 3469if ${ac_cv_prog_cc_g+:} false; then : 3470 $as_echo_n "(cached) " >&6 3471else 3472 ac_save_c_werror_flag=$ac_c_werror_flag 3473 ac_c_werror_flag=yes 3474 ac_cv_prog_cc_g=no 3475 CFLAGS="-g" 3476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3477/* end confdefs.h. */ 3478 3479int 3480main () 3481{ 3482 3483 ; 3484 return 0; 3485} 3486_ACEOF 3487if ac_fn_c_try_compile "$LINENO"; then : 3488 ac_cv_prog_cc_g=yes 3489else 3490 CFLAGS="" 3491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3492/* end confdefs.h. */ 3493 3494int 3495main () 3496{ 3497 3498 ; 3499 return 0; 3500} 3501_ACEOF 3502if ac_fn_c_try_compile "$LINENO"; then : 3503 3504else 3505 ac_c_werror_flag=$ac_save_c_werror_flag 3506 CFLAGS="-g" 3507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3508/* end confdefs.h. */ 3509 3510int 3511main () 3512{ 3513 3514 ; 3515 return 0; 3516} 3517_ACEOF 3518if ac_fn_c_try_compile "$LINENO"; then : 3519 ac_cv_prog_cc_g=yes 3520fi 3521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3522fi 3523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3524fi 3525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3526 ac_c_werror_flag=$ac_save_c_werror_flag 3527fi 3528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3529$as_echo "$ac_cv_prog_cc_g" >&6; } 3530if test "$ac_test_CFLAGS" = set; then 3531 CFLAGS=$ac_save_CFLAGS 3532elif test $ac_cv_prog_cc_g = yes; then 3533 if test "$GCC" = yes; then 3534 CFLAGS="-g -O2" 3535 else 3536 CFLAGS="-g" 3537 fi 3538else 3539 if test "$GCC" = yes; then 3540 CFLAGS="-O2" 3541 else 3542 CFLAGS= 3543 fi 3544fi 3545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3546$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3547if ${ac_cv_prog_cc_c89+:} false; then : 3548 $as_echo_n "(cached) " >&6 3549else 3550 ac_cv_prog_cc_c89=no 3551ac_save_CC=$CC 3552cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3553/* end confdefs.h. */ 3554#include <stdarg.h> 3555#include <stdio.h> 3556struct stat; 3557/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3558struct buf { int x; }; 3559FILE * (*rcsopen) (struct buf *, struct stat *, int); 3560static char *e (p, i) 3561 char **p; 3562 int i; 3563{ 3564 return p[i]; 3565} 3566static char *f (char * (*g) (char **, int), char **p, ...) 3567{ 3568 char *s; 3569 va_list v; 3570 va_start (v,p); 3571 s = g (p, va_arg (v,int)); 3572 va_end (v); 3573 return s; 3574} 3575 3576/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3577 function prototypes and stuff, but not '\xHH' hex character constants. 3578 These don't provoke an error unfortunately, instead are silently treated 3579 as 'x'. The following induces an error, until -std is added to get 3580 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3581 array size at least. It's necessary to write '\x00'==0 to get something 3582 that's true only with -std. */ 3583int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3584 3585/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3586 inside strings and character constants. */ 3587#define FOO(x) 'x' 3588int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3589 3590int test (int i, double x); 3591struct s1 {int (*f) (int a);}; 3592struct s2 {int (*f) (double a);}; 3593int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3594int argc; 3595char **argv; 3596int 3597main () 3598{ 3599return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3600 ; 3601 return 0; 3602} 3603_ACEOF 3604for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3605 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3606do 3607 CC="$ac_save_CC $ac_arg" 3608 if ac_fn_c_try_compile "$LINENO"; then : 3609 ac_cv_prog_cc_c89=$ac_arg 3610fi 3611rm -f core conftest.err conftest.$ac_objext 3612 test "x$ac_cv_prog_cc_c89" != "xno" && break 3613done 3614rm -f conftest.$ac_ext 3615CC=$ac_save_CC 3616 3617fi 3618# AC_CACHE_VAL 3619case "x$ac_cv_prog_cc_c89" in 3620 x) 3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3622$as_echo "none needed" >&6; } ;; 3623 xno) 3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3625$as_echo "unsupported" >&6; } ;; 3626 *) 3627 CC="$CC $ac_cv_prog_cc_c89" 3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3629$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3630esac 3631if test "x$ac_cv_prog_cc_c89" != xno; then : 3632 3633fi 3634 3635ac_ext=c 3636ac_cpp='$CPP $CPPFLAGS' 3637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3639ac_compiler_gnu=$ac_cv_c_compiler_gnu 3640 3641ac_ext=c 3642ac_cpp='$CPP $CPPFLAGS' 3643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3645ac_compiler_gnu=$ac_cv_c_compiler_gnu 3646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3647$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3648if ${am_cv_prog_cc_c_o+:} false; then : 3649 $as_echo_n "(cached) " >&6 3650else 3651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3652/* end confdefs.h. */ 3653 3654int 3655main () 3656{ 3657 3658 ; 3659 return 0; 3660} 3661_ACEOF 3662 # Make sure it works both with $CC and with simple cc. 3663 # Following AC_PROG_CC_C_O, we do the test twice because some 3664 # compilers refuse to overwrite an existing .o file with -o, 3665 # though they will create one. 3666 am_cv_prog_cc_c_o=yes 3667 for am_i in 1 2; do 3668 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3669 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3670 ac_status=$? 3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3672 (exit $ac_status); } \ 3673 && test -f conftest2.$ac_objext; then 3674 : OK 3675 else 3676 am_cv_prog_cc_c_o=no 3677 break 3678 fi 3679 done 3680 rm -f core conftest* 3681 unset am_i 3682fi 3683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3684$as_echo "$am_cv_prog_cc_c_o" >&6; } 3685if test "$am_cv_prog_cc_c_o" != yes; then 3686 # Losing compiler, so override with the script. 3687 # FIXME: It is wrong to rewrite CC. 3688 # But if we don't then we get into trouble of one sort or another. 3689 # A longer-term fix would be to have automake use am__CC in this case, 3690 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3691 CC="$am_aux_dir/compile $CC" 3692fi 3693ac_ext=c 3694ac_cpp='$CPP $CPPFLAGS' 3695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3697ac_compiler_gnu=$ac_cv_c_compiler_gnu 3698 3699DEPDIR="${am__leading_dot}deps" 3700 3701ac_config_commands="$ac_config_commands depfiles" 3702 3703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3704$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3705cat > confinc.mk << 'END' 3706am__doit: 3707 @echo this is the am__doit target >confinc.out 3708.PHONY: am__doit 3709END 3710am__include="#" 3711am__quote= 3712# BSD make does it like this. 3713echo '.include "confinc.mk" # ignored' > confmf.BSD 3714# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3715echo 'include confinc.mk # ignored' > confmf.GNU 3716_am_result=no 3717for s in GNU BSD; do 3718 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3719 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3720 ac_status=$? 3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3722 (exit $ac_status); } 3723 case $?:`cat confinc.out 2>/dev/null` in #( 3724 '0:this is the am__doit target') : 3725 case $s in #( 3726 BSD) : 3727 am__include='.include' am__quote='"' ;; #( 3728 *) : 3729 am__include='include' am__quote='' ;; 3730esac ;; #( 3731 *) : 3732 ;; 3733esac 3734 if test "$am__include" != "#"; then 3735 _am_result="yes ($s style)" 3736 break 3737 fi 3738done 3739rm -f confinc.* confmf.* 3740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3741$as_echo "${_am_result}" >&6; } 3742 3743# Check whether --enable-dependency-tracking was given. 3744if test "${enable_dependency_tracking+set}" = set; then : 3745 enableval=$enable_dependency_tracking; 3746fi 3747 3748if test "x$enable_dependency_tracking" != xno; then 3749 am_depcomp="$ac_aux_dir/depcomp" 3750 AMDEPBACKSLASH='\' 3751 am__nodep='_no' 3752fi 3753 if test "x$enable_dependency_tracking" != xno; then 3754 AMDEP_TRUE= 3755 AMDEP_FALSE='#' 3756else 3757 AMDEP_TRUE='#' 3758 AMDEP_FALSE= 3759fi 3760 3761 3762 3763depcc="$CC" am_compiler_list= 3764 3765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3766$as_echo_n "checking dependency style of $depcc... " >&6; } 3767if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3768 $as_echo_n "(cached) " >&6 3769else 3770 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3771 # We make a subdir and do the tests there. Otherwise we can end up 3772 # making bogus files that we don't know about and never remove. For 3773 # instance it was reported that on HP-UX the gcc test will end up 3774 # making a dummy file named 'D' -- because '-MD' means "put the output 3775 # in D". 3776 rm -rf conftest.dir 3777 mkdir conftest.dir 3778 # Copy depcomp to subdir because otherwise we won't find it if we're 3779 # using a relative directory. 3780 cp "$am_depcomp" conftest.dir 3781 cd conftest.dir 3782 # We will build objects and dependencies in a subdirectory because 3783 # it helps to detect inapplicable dependency modes. For instance 3784 # both Tru64's cc and ICC support -MD to output dependencies as a 3785 # side effect of compilation, but ICC will put the dependencies in 3786 # the current directory while Tru64 will put them in the object 3787 # directory. 3788 mkdir sub 3789 3790 am_cv_CC_dependencies_compiler_type=none 3791 if test "$am_compiler_list" = ""; then 3792 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3793 fi 3794 am__universal=false 3795 case " $depcc " in #( 3796 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3797 esac 3798 3799 for depmode in $am_compiler_list; do 3800 # Setup a source with many dependencies, because some compilers 3801 # like to wrap large dependency lists on column 80 (with \), and 3802 # we should not choose a depcomp mode which is confused by this. 3803 # 3804 # We need to recreate these files for each test, as the compiler may 3805 # overwrite some of them when testing with obscure command lines. 3806 # This happens at least with the AIX C compiler. 3807 : > sub/conftest.c 3808 for i in 1 2 3 4 5 6; do 3809 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3810 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3811 # Solaris 10 /bin/sh. 3812 echo '/* dummy */' > sub/conftst$i.h 3813 done 3814 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3815 3816 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3817 # mode. It turns out that the SunPro C++ compiler does not properly 3818 # handle '-M -o', and we need to detect this. Also, some Intel 3819 # versions had trouble with output in subdirs. 3820 am__obj=sub/conftest.${OBJEXT-o} 3821 am__minus_obj="-o $am__obj" 3822 case $depmode in 3823 gcc) 3824 # This depmode causes a compiler race in universal mode. 3825 test "$am__universal" = false || continue 3826 ;; 3827 nosideeffect) 3828 # After this tag, mechanisms are not by side-effect, so they'll 3829 # only be used when explicitly requested. 3830 if test "x$enable_dependency_tracking" = xyes; then 3831 continue 3832 else 3833 break 3834 fi 3835 ;; 3836 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3837 # This compiler won't grok '-c -o', but also, the minuso test has 3838 # not run yet. These depmodes are late enough in the game, and 3839 # so weak that their functioning should not be impacted. 3840 am__obj=conftest.${OBJEXT-o} 3841 am__minus_obj= 3842 ;; 3843 none) break ;; 3844 esac 3845 if depmode=$depmode \ 3846 source=sub/conftest.c object=$am__obj \ 3847 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3848 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3849 >/dev/null 2>conftest.err && 3850 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3851 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3852 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3853 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3854 # icc doesn't choke on unknown options, it will just issue warnings 3855 # or remarks (even with -Werror). So we grep stderr for any message 3856 # that says an option was ignored or not supported. 3857 # When given -MP, icc 7.0 and 7.1 complain thusly: 3858 # icc: Command line warning: ignoring option '-M'; no argument required 3859 # The diagnosis changed in icc 8.0: 3860 # icc: Command line remark: option '-MP' not supported 3861 if (grep 'ignoring option' conftest.err || 3862 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3863 am_cv_CC_dependencies_compiler_type=$depmode 3864 break 3865 fi 3866 fi 3867 done 3868 3869 cd .. 3870 rm -rf conftest.dir 3871else 3872 am_cv_CC_dependencies_compiler_type=none 3873fi 3874 3875fi 3876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3877$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3878CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3879 3880 if 3881 test "x$enable_dependency_tracking" != xno \ 3882 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3883 am__fastdepCC_TRUE= 3884 am__fastdepCC_FALSE='#' 3885else 3886 am__fastdepCC_TRUE='#' 3887 am__fastdepCC_FALSE= 3888fi 3889 3890 3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3892$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3893if ${ac_cv_prog_cc_c99+:} false; then : 3894 $as_echo_n "(cached) " >&6 3895else 3896 ac_cv_prog_cc_c99=no 3897ac_save_CC=$CC 3898cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3899/* end confdefs.h. */ 3900#include <stdarg.h> 3901#include <stdbool.h> 3902#include <stdlib.h> 3903#include <wchar.h> 3904#include <stdio.h> 3905 3906// Check varargs macros. These examples are taken from C99 6.10.3.5. 3907#define debug(...) fprintf (stderr, __VA_ARGS__) 3908#define showlist(...) puts (#__VA_ARGS__) 3909#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3910static void 3911test_varargs_macros (void) 3912{ 3913 int x = 1234; 3914 int y = 5678; 3915 debug ("Flag"); 3916 debug ("X = %d\n", x); 3917 showlist (The first, second, and third items.); 3918 report (x>y, "x is %d but y is %d", x, y); 3919} 3920 3921// Check long long types. 3922#define BIG64 18446744073709551615ull 3923#define BIG32 4294967295ul 3924#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3925#if !BIG_OK 3926 your preprocessor is broken; 3927#endif 3928#if BIG_OK 3929#else 3930 your preprocessor is broken; 3931#endif 3932static long long int bignum = -9223372036854775807LL; 3933static unsigned long long int ubignum = BIG64; 3934 3935struct incomplete_array 3936{ 3937 int datasize; 3938 double data[]; 3939}; 3940 3941struct named_init { 3942 int number; 3943 const wchar_t *name; 3944 double average; 3945}; 3946 3947typedef const char *ccp; 3948 3949static inline int 3950test_restrict (ccp restrict text) 3951{ 3952 // See if C++-style comments work. 3953 // Iterate through items via the restricted pointer. 3954 // Also check for declarations in for loops. 3955 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3956 continue; 3957 return 0; 3958} 3959 3960// Check varargs and va_copy. 3961static void 3962test_varargs (const char *format, ...) 3963{ 3964 va_list args; 3965 va_start (args, format); 3966 va_list args_copy; 3967 va_copy (args_copy, args); 3968 3969 const char *str; 3970 int number; 3971 float fnumber; 3972 3973 while (*format) 3974 { 3975 switch (*format++) 3976 { 3977 case 's': // string 3978 str = va_arg (args_copy, const char *); 3979 break; 3980 case 'd': // int 3981 number = va_arg (args_copy, int); 3982 break; 3983 case 'f': // float 3984 fnumber = va_arg (args_copy, double); 3985 break; 3986 default: 3987 break; 3988 } 3989 } 3990 va_end (args_copy); 3991 va_end (args); 3992} 3993 3994int 3995main () 3996{ 3997 3998 // Check bool. 3999 _Bool success = false; 4000 4001 // Check restrict. 4002 if (test_restrict ("String literal") == 0) 4003 success = true; 4004 char *restrict newvar = "Another string"; 4005 4006 // Check varargs. 4007 test_varargs ("s, d' f .", "string", 65, 34.234); 4008 test_varargs_macros (); 4009 4010 // Check flexible array members. 4011 struct incomplete_array *ia = 4012 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4013 ia->datasize = 10; 4014 for (int i = 0; i < ia->datasize; ++i) 4015 ia->data[i] = i * 1.234; 4016 4017 // Check named initializers. 4018 struct named_init ni = { 4019 .number = 34, 4020 .name = L"Test wide string", 4021 .average = 543.34343, 4022 }; 4023 4024 ni.number = 58; 4025 4026 int dynamic_array[ni.number]; 4027 dynamic_array[ni.number - 1] = 543; 4028 4029 // work around unused variable warnings 4030 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4031 || dynamic_array[ni.number - 1] != 543); 4032 4033 ; 4034 return 0; 4035} 4036_ACEOF 4037for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4038do 4039 CC="$ac_save_CC $ac_arg" 4040 if ac_fn_c_try_compile "$LINENO"; then : 4041 ac_cv_prog_cc_c99=$ac_arg 4042fi 4043rm -f core conftest.err conftest.$ac_objext 4044 test "x$ac_cv_prog_cc_c99" != "xno" && break 4045done 4046rm -f conftest.$ac_ext 4047CC=$ac_save_CC 4048 4049fi 4050# AC_CACHE_VAL 4051case "x$ac_cv_prog_cc_c99" in 4052 x) 4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4054$as_echo "none needed" >&6; } ;; 4055 xno) 4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4057$as_echo "unsupported" >&6; } ;; 4058 *) 4059 CC="$CC $ac_cv_prog_cc_c99" 4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4061$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4062esac 4063if test "x$ac_cv_prog_cc_c99" != xno; then : 4064 4065fi 4066 4067 4068case `pwd` in 4069 *\ * | *\ *) 4070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4071$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4072esac 4073 4074 4075 4076macro_version='2.4.6' 4077macro_revision='2.4.6' 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091ltmain=$ac_aux_dir/ltmain.sh 4092 4093# Make sure we can run config.sub. 4094$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4095 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4096 4097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4098$as_echo_n "checking build system type... " >&6; } 4099if ${ac_cv_build+:} false; then : 4100 $as_echo_n "(cached) " >&6 4101else 4102 ac_build_alias=$build_alias 4103test "x$ac_build_alias" = x && 4104 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4105test "x$ac_build_alias" = x && 4106 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4107ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4108 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4109 4110fi 4111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4112$as_echo "$ac_cv_build" >&6; } 4113case $ac_cv_build in 4114*-*-*) ;; 4115*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4116esac 4117build=$ac_cv_build 4118ac_save_IFS=$IFS; IFS='-' 4119set x $ac_cv_build 4120shift 4121build_cpu=$1 4122build_vendor=$2 4123shift; shift 4124# Remember, the first character of IFS is used to create $*, 4125# except with old shells: 4126build_os=$* 4127IFS=$ac_save_IFS 4128case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4129 4130 4131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4132$as_echo_n "checking host system type... " >&6; } 4133if ${ac_cv_host+:} false; then : 4134 $as_echo_n "(cached) " >&6 4135else 4136 if test "x$host_alias" = x; then 4137 ac_cv_host=$ac_cv_build 4138else 4139 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4140 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4141fi 4142 4143fi 4144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4145$as_echo "$ac_cv_host" >&6; } 4146case $ac_cv_host in 4147*-*-*) ;; 4148*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4149esac 4150host=$ac_cv_host 4151ac_save_IFS=$IFS; IFS='-' 4152set x $ac_cv_host 4153shift 4154host_cpu=$1 4155host_vendor=$2 4156shift; shift 4157# Remember, the first character of IFS is used to create $*, 4158# except with old shells: 4159host_os=$* 4160IFS=$ac_save_IFS 4161case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4162 4163 4164# Backslashify metacharacters that are still active within 4165# double-quoted strings. 4166sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4167 4168# Same as above, but do not quote variable references. 4169double_quote_subst='s/\(["`\\]\)/\\\1/g' 4170 4171# Sed substitution to delay expansion of an escaped shell variable in a 4172# double_quote_subst'ed string. 4173delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4174 4175# Sed substitution to delay expansion of an escaped single quote. 4176delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4177 4178# Sed substitution to avoid accidental globbing in evaled expressions 4179no_glob_subst='s/\*/\\\*/g' 4180 4181ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4182ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4183ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4184 4185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4186$as_echo_n "checking how to print strings... " >&6; } 4187# Test print first, because it will be a builtin if present. 4188if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4189 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4190 ECHO='print -r --' 4191elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4192 ECHO='printf %s\n' 4193else 4194 # Use this function as a fallback that always works. 4195 func_fallback_echo () 4196 { 4197 eval 'cat <<_LTECHO_EOF 4198$1 4199_LTECHO_EOF' 4200 } 4201 ECHO='func_fallback_echo' 4202fi 4203 4204# func_echo_all arg... 4205# Invoke $ECHO with all args, space-separated. 4206func_echo_all () 4207{ 4208 $ECHO "" 4209} 4210 4211case $ECHO in 4212 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4213$as_echo "printf" >&6; } ;; 4214 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4215$as_echo "print -r" >&6; } ;; 4216 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4217$as_echo "cat" >&6; } ;; 4218esac 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4234$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4235if ${ac_cv_path_SED+:} false; then : 4236 $as_echo_n "(cached) " >&6 4237else 4238 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4239 for ac_i in 1 2 3 4 5 6 7; do 4240 ac_script="$ac_script$as_nl$ac_script" 4241 done 4242 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4243 { ac_script=; unset ac_script;} 4244 if test -z "$SED"; then 4245 ac_path_SED_found=false 4246 # Loop through the user's path and test for each of PROGNAME-LIST 4247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4248for as_dir in $PATH 4249do 4250 IFS=$as_save_IFS 4251 test -z "$as_dir" && as_dir=. 4252 for ac_prog in sed gsed; do 4253 for ac_exec_ext in '' $ac_executable_extensions; do 4254 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4255 as_fn_executable_p "$ac_path_SED" || continue 4256# Check for GNU ac_path_SED and select it if it is found. 4257 # Check for GNU $ac_path_SED 4258case `"$ac_path_SED" --version 2>&1` in 4259*GNU*) 4260 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4261*) 4262 ac_count=0 4263 $as_echo_n 0123456789 >"conftest.in" 4264 while : 4265 do 4266 cat "conftest.in" "conftest.in" >"conftest.tmp" 4267 mv "conftest.tmp" "conftest.in" 4268 cp "conftest.in" "conftest.nl" 4269 $as_echo '' >> "conftest.nl" 4270 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4271 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4272 as_fn_arith $ac_count + 1 && ac_count=$as_val 4273 if test $ac_count -gt ${ac_path_SED_max-0}; then 4274 # Best one so far, save it but keep looking for a better one 4275 ac_cv_path_SED="$ac_path_SED" 4276 ac_path_SED_max=$ac_count 4277 fi 4278 # 10*(2^10) chars as input seems more than enough 4279 test $ac_count -gt 10 && break 4280 done 4281 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4282esac 4283 4284 $ac_path_SED_found && break 3 4285 done 4286 done 4287 done 4288IFS=$as_save_IFS 4289 if test -z "$ac_cv_path_SED"; then 4290 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4291 fi 4292else 4293 ac_cv_path_SED=$SED 4294fi 4295 4296fi 4297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4298$as_echo "$ac_cv_path_SED" >&6; } 4299 SED="$ac_cv_path_SED" 4300 rm -f conftest.sed 4301 4302test -z "$SED" && SED=sed 4303Xsed="$SED -e 1s/^X//" 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4316$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4317if ${ac_cv_path_GREP+:} false; then : 4318 $as_echo_n "(cached) " >&6 4319else 4320 if test -z "$GREP"; then 4321 ac_path_GREP_found=false 4322 # Loop through the user's path and test for each of PROGNAME-LIST 4323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4324for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4325do 4326 IFS=$as_save_IFS 4327 test -z "$as_dir" && as_dir=. 4328 for ac_prog in grep ggrep; do 4329 for ac_exec_ext in '' $ac_executable_extensions; do 4330 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4331 as_fn_executable_p "$ac_path_GREP" || continue 4332# Check for GNU ac_path_GREP and select it if it is found. 4333 # Check for GNU $ac_path_GREP 4334case `"$ac_path_GREP" --version 2>&1` in 4335*GNU*) 4336 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4337*) 4338 ac_count=0 4339 $as_echo_n 0123456789 >"conftest.in" 4340 while : 4341 do 4342 cat "conftest.in" "conftest.in" >"conftest.tmp" 4343 mv "conftest.tmp" "conftest.in" 4344 cp "conftest.in" "conftest.nl" 4345 $as_echo 'GREP' >> "conftest.nl" 4346 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4347 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4348 as_fn_arith $ac_count + 1 && ac_count=$as_val 4349 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4350 # Best one so far, save it but keep looking for a better one 4351 ac_cv_path_GREP="$ac_path_GREP" 4352 ac_path_GREP_max=$ac_count 4353 fi 4354 # 10*(2^10) chars as input seems more than enough 4355 test $ac_count -gt 10 && break 4356 done 4357 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4358esac 4359 4360 $ac_path_GREP_found && break 3 4361 done 4362 done 4363 done 4364IFS=$as_save_IFS 4365 if test -z "$ac_cv_path_GREP"; then 4366 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4367 fi 4368else 4369 ac_cv_path_GREP=$GREP 4370fi 4371 4372fi 4373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4374$as_echo "$ac_cv_path_GREP" >&6; } 4375 GREP="$ac_cv_path_GREP" 4376 4377 4378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4379$as_echo_n "checking for egrep... " >&6; } 4380if ${ac_cv_path_EGREP+:} false; then : 4381 $as_echo_n "(cached) " >&6 4382else 4383 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4384 then ac_cv_path_EGREP="$GREP -E" 4385 else 4386 if test -z "$EGREP"; then 4387 ac_path_EGREP_found=false 4388 # Loop through the user's path and test for each of PROGNAME-LIST 4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4390for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4391do 4392 IFS=$as_save_IFS 4393 test -z "$as_dir" && as_dir=. 4394 for ac_prog in egrep; do 4395 for ac_exec_ext in '' $ac_executable_extensions; do 4396 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4397 as_fn_executable_p "$ac_path_EGREP" || continue 4398# Check for GNU ac_path_EGREP and select it if it is found. 4399 # Check for GNU $ac_path_EGREP 4400case `"$ac_path_EGREP" --version 2>&1` in 4401*GNU*) 4402 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4403*) 4404 ac_count=0 4405 $as_echo_n 0123456789 >"conftest.in" 4406 while : 4407 do 4408 cat "conftest.in" "conftest.in" >"conftest.tmp" 4409 mv "conftest.tmp" "conftest.in" 4410 cp "conftest.in" "conftest.nl" 4411 $as_echo 'EGREP' >> "conftest.nl" 4412 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4413 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4414 as_fn_arith $ac_count + 1 && ac_count=$as_val 4415 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4416 # Best one so far, save it but keep looking for a better one 4417 ac_cv_path_EGREP="$ac_path_EGREP" 4418 ac_path_EGREP_max=$ac_count 4419 fi 4420 # 10*(2^10) chars as input seems more than enough 4421 test $ac_count -gt 10 && break 4422 done 4423 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4424esac 4425 4426 $ac_path_EGREP_found && break 3 4427 done 4428 done 4429 done 4430IFS=$as_save_IFS 4431 if test -z "$ac_cv_path_EGREP"; then 4432 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4433 fi 4434else 4435 ac_cv_path_EGREP=$EGREP 4436fi 4437 4438 fi 4439fi 4440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4441$as_echo "$ac_cv_path_EGREP" >&6; } 4442 EGREP="$ac_cv_path_EGREP" 4443 4444 4445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4446$as_echo_n "checking for fgrep... " >&6; } 4447if ${ac_cv_path_FGREP+:} false; then : 4448 $as_echo_n "(cached) " >&6 4449else 4450 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4451 then ac_cv_path_FGREP="$GREP -F" 4452 else 4453 if test -z "$FGREP"; then 4454 ac_path_FGREP_found=false 4455 # Loop through the user's path and test for each of PROGNAME-LIST 4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4457for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4458do 4459 IFS=$as_save_IFS 4460 test -z "$as_dir" && as_dir=. 4461 for ac_prog in fgrep; do 4462 for ac_exec_ext in '' $ac_executable_extensions; do 4463 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4464 as_fn_executable_p "$ac_path_FGREP" || continue 4465# Check for GNU ac_path_FGREP and select it if it is found. 4466 # Check for GNU $ac_path_FGREP 4467case `"$ac_path_FGREP" --version 2>&1` in 4468*GNU*) 4469 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4470*) 4471 ac_count=0 4472 $as_echo_n 0123456789 >"conftest.in" 4473 while : 4474 do 4475 cat "conftest.in" "conftest.in" >"conftest.tmp" 4476 mv "conftest.tmp" "conftest.in" 4477 cp "conftest.in" "conftest.nl" 4478 $as_echo 'FGREP' >> "conftest.nl" 4479 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4480 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4481 as_fn_arith $ac_count + 1 && ac_count=$as_val 4482 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4483 # Best one so far, save it but keep looking for a better one 4484 ac_cv_path_FGREP="$ac_path_FGREP" 4485 ac_path_FGREP_max=$ac_count 4486 fi 4487 # 10*(2^10) chars as input seems more than enough 4488 test $ac_count -gt 10 && break 4489 done 4490 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4491esac 4492 4493 $ac_path_FGREP_found && break 3 4494 done 4495 done 4496 done 4497IFS=$as_save_IFS 4498 if test -z "$ac_cv_path_FGREP"; then 4499 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4500 fi 4501else 4502 ac_cv_path_FGREP=$FGREP 4503fi 4504 4505 fi 4506fi 4507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4508$as_echo "$ac_cv_path_FGREP" >&6; } 4509 FGREP="$ac_cv_path_FGREP" 4510 4511 4512test -z "$GREP" && GREP=grep 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532# Check whether --with-gnu-ld was given. 4533if test "${with_gnu_ld+set}" = set; then : 4534 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4535else 4536 with_gnu_ld=no 4537fi 4538 4539ac_prog=ld 4540if test yes = "$GCC"; then 4541 # Check if gcc -print-prog-name=ld gives a path. 4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4543$as_echo_n "checking for ld used by $CC... " >&6; } 4544 case $host in 4545 *-*-mingw*) 4546 # gcc leaves a trailing carriage return, which upsets mingw 4547 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4548 *) 4549 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4550 esac 4551 case $ac_prog in 4552 # Accept absolute paths. 4553 [\\/]* | ?:[\\/]*) 4554 re_direlt='/[^/][^/]*/\.\./' 4555 # Canonicalize the pathname of ld 4556 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4557 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4558 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4559 done 4560 test -z "$LD" && LD=$ac_prog 4561 ;; 4562 "") 4563 # If it fails, then pretend we aren't using GCC. 4564 ac_prog=ld 4565 ;; 4566 *) 4567 # If it is relative, then search for the first ld in PATH. 4568 with_gnu_ld=unknown 4569 ;; 4570 esac 4571elif test yes = "$with_gnu_ld"; then 4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4573$as_echo_n "checking for GNU ld... " >&6; } 4574else 4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4576$as_echo_n "checking for non-GNU ld... " >&6; } 4577fi 4578if ${lt_cv_path_LD+:} false; then : 4579 $as_echo_n "(cached) " >&6 4580else 4581 if test -z "$LD"; then 4582 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4583 for ac_dir in $PATH; do 4584 IFS=$lt_save_ifs 4585 test -z "$ac_dir" && ac_dir=. 4586 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4587 lt_cv_path_LD=$ac_dir/$ac_prog 4588 # Check to see if the program is GNU ld. I'd rather use --version, 4589 # but apparently some variants of GNU ld only accept -v. 4590 # Break only if it was the GNU/non-GNU ld that we prefer. 4591 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4592 *GNU* | *'with BFD'*) 4593 test no != "$with_gnu_ld" && break 4594 ;; 4595 *) 4596 test yes != "$with_gnu_ld" && break 4597 ;; 4598 esac 4599 fi 4600 done 4601 IFS=$lt_save_ifs 4602else 4603 lt_cv_path_LD=$LD # Let the user override the test with a path. 4604fi 4605fi 4606 4607LD=$lt_cv_path_LD 4608if test -n "$LD"; then 4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4610$as_echo "$LD" >&6; } 4611else 4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4613$as_echo "no" >&6; } 4614fi 4615test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4617$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4618if ${lt_cv_prog_gnu_ld+:} false; then : 4619 $as_echo_n "(cached) " >&6 4620else 4621 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4622case `$LD -v 2>&1 </dev/null` in 4623*GNU* | *'with BFD'*) 4624 lt_cv_prog_gnu_ld=yes 4625 ;; 4626*) 4627 lt_cv_prog_gnu_ld=no 4628 ;; 4629esac 4630fi 4631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4632$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4633with_gnu_ld=$lt_cv_prog_gnu_ld 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4644$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4645if ${lt_cv_path_NM+:} false; then : 4646 $as_echo_n "(cached) " >&6 4647else 4648 if test -n "$NM"; then 4649 # Let the user override the test. 4650 lt_cv_path_NM=$NM 4651else 4652 lt_nm_to_check=${ac_tool_prefix}nm 4653 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4654 lt_nm_to_check="$lt_nm_to_check nm" 4655 fi 4656 for lt_tmp_nm in $lt_nm_to_check; do 4657 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4658 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4659 IFS=$lt_save_ifs 4660 test -z "$ac_dir" && ac_dir=. 4661 tmp_nm=$ac_dir/$lt_tmp_nm 4662 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4663 # Check to see if the nm accepts a BSD-compat flag. 4664 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4665 # nm: unknown option "B" ignored 4666 # Tru64's nm complains that /dev/null is an invalid object file 4667 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4668 case $build_os in 4669 mingw*) lt_bad_file=conftest.nm/nofile ;; 4670 *) lt_bad_file=/dev/null ;; 4671 esac 4672 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4673 *$lt_bad_file* | *'Invalid file or object type'*) 4674 lt_cv_path_NM="$tmp_nm -B" 4675 break 2 4676 ;; 4677 *) 4678 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4679 */dev/null*) 4680 lt_cv_path_NM="$tmp_nm -p" 4681 break 2 4682 ;; 4683 *) 4684 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4685 continue # so that we can try to find one that supports BSD flags 4686 ;; 4687 esac 4688 ;; 4689 esac 4690 fi 4691 done 4692 IFS=$lt_save_ifs 4693 done 4694 : ${lt_cv_path_NM=no} 4695fi 4696fi 4697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4698$as_echo "$lt_cv_path_NM" >&6; } 4699if test no != "$lt_cv_path_NM"; then 4700 NM=$lt_cv_path_NM 4701else 4702 # Didn't find any BSD compatible name lister, look for dumpbin. 4703 if test -n "$DUMPBIN"; then : 4704 # Let the user override the test. 4705 else 4706 if test -n "$ac_tool_prefix"; then 4707 for ac_prog in dumpbin "link -dump" 4708 do 4709 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4710set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4712$as_echo_n "checking for $ac_word... " >&6; } 4713if ${ac_cv_prog_DUMPBIN+:} false; then : 4714 $as_echo_n "(cached) " >&6 4715else 4716 if test -n "$DUMPBIN"; then 4717 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4718else 4719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4720for as_dir in $PATH 4721do 4722 IFS=$as_save_IFS 4723 test -z "$as_dir" && as_dir=. 4724 for ac_exec_ext in '' $ac_executable_extensions; do 4725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4726 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4728 break 2 4729 fi 4730done 4731 done 4732IFS=$as_save_IFS 4733 4734fi 4735fi 4736DUMPBIN=$ac_cv_prog_DUMPBIN 4737if test -n "$DUMPBIN"; then 4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4739$as_echo "$DUMPBIN" >&6; } 4740else 4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4742$as_echo "no" >&6; } 4743fi 4744 4745 4746 test -n "$DUMPBIN" && break 4747 done 4748fi 4749if test -z "$DUMPBIN"; then 4750 ac_ct_DUMPBIN=$DUMPBIN 4751 for ac_prog in dumpbin "link -dump" 4752do 4753 # Extract the first word of "$ac_prog", so it can be a program name with args. 4754set dummy $ac_prog; ac_word=$2 4755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4756$as_echo_n "checking for $ac_word... " >&6; } 4757if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4758 $as_echo_n "(cached) " >&6 4759else 4760 if test -n "$ac_ct_DUMPBIN"; then 4761 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4762else 4763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4764for as_dir in $PATH 4765do 4766 IFS=$as_save_IFS 4767 test -z "$as_dir" && as_dir=. 4768 for ac_exec_ext in '' $ac_executable_extensions; do 4769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4770 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4772 break 2 4773 fi 4774done 4775 done 4776IFS=$as_save_IFS 4777 4778fi 4779fi 4780ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4781if test -n "$ac_ct_DUMPBIN"; then 4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4783$as_echo "$ac_ct_DUMPBIN" >&6; } 4784else 4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4786$as_echo "no" >&6; } 4787fi 4788 4789 4790 test -n "$ac_ct_DUMPBIN" && break 4791done 4792 4793 if test "x$ac_ct_DUMPBIN" = x; then 4794 DUMPBIN=":" 4795 else 4796 case $cross_compiling:$ac_tool_warned in 4797yes:) 4798{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4799$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4800ac_tool_warned=yes ;; 4801esac 4802 DUMPBIN=$ac_ct_DUMPBIN 4803 fi 4804fi 4805 4806 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4807 *COFF*) 4808 DUMPBIN="$DUMPBIN -symbols -headers" 4809 ;; 4810 *) 4811 DUMPBIN=: 4812 ;; 4813 esac 4814 fi 4815 4816 if test : != "$DUMPBIN"; then 4817 NM=$DUMPBIN 4818 fi 4819fi 4820test -z "$NM" && NM=nm 4821 4822 4823 4824 4825 4826 4827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4828$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4829if ${lt_cv_nm_interface+:} false; then : 4830 $as_echo_n "(cached) " >&6 4831else 4832 lt_cv_nm_interface="BSD nm" 4833 echo "int some_variable = 0;" > conftest.$ac_ext 4834 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4835 (eval "$ac_compile" 2>conftest.err) 4836 cat conftest.err >&5 4837 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4838 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4839 cat conftest.err >&5 4840 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4841 cat conftest.out >&5 4842 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4843 lt_cv_nm_interface="MS dumpbin" 4844 fi 4845 rm -f conftest* 4846fi 4847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4848$as_echo "$lt_cv_nm_interface" >&6; } 4849 4850# find the maximum length of command line arguments 4851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4852$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4853if ${lt_cv_sys_max_cmd_len+:} false; then : 4854 $as_echo_n "(cached) " >&6 4855else 4856 i=0 4857 teststring=ABCD 4858 4859 case $build_os in 4860 msdosdjgpp*) 4861 # On DJGPP, this test can blow up pretty badly due to problems in libc 4862 # (any single argument exceeding 2000 bytes causes a buffer overrun 4863 # during glob expansion). Even if it were fixed, the result of this 4864 # check would be larger than it should be. 4865 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4866 ;; 4867 4868 gnu*) 4869 # Under GNU Hurd, this test is not required because there is 4870 # no limit to the length of command line arguments. 4871 # Libtool will interpret -1 as no limit whatsoever 4872 lt_cv_sys_max_cmd_len=-1; 4873 ;; 4874 4875 cygwin* | mingw* | cegcc*) 4876 # On Win9x/ME, this test blows up -- it succeeds, but takes 4877 # about 5 minutes as the teststring grows exponentially. 4878 # Worse, since 9x/ME are not pre-emptively multitasking, 4879 # you end up with a "frozen" computer, even though with patience 4880 # the test eventually succeeds (with a max line length of 256k). 4881 # Instead, let's just punt: use the minimum linelength reported by 4882 # all of the supported platforms: 8192 (on NT/2K/XP). 4883 lt_cv_sys_max_cmd_len=8192; 4884 ;; 4885 4886 mint*) 4887 # On MiNT this can take a long time and run out of memory. 4888 lt_cv_sys_max_cmd_len=8192; 4889 ;; 4890 4891 amigaos*) 4892 # On AmigaOS with pdksh, this test takes hours, literally. 4893 # So we just punt and use a minimum line length of 8192. 4894 lt_cv_sys_max_cmd_len=8192; 4895 ;; 4896 4897 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4898 # This has been around since 386BSD, at least. Likely further. 4899 if test -x /sbin/sysctl; then 4900 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4901 elif test -x /usr/sbin/sysctl; then 4902 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4903 else 4904 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4905 fi 4906 # And add a safety zone 4907 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4908 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4909 ;; 4910 4911 interix*) 4912 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4913 lt_cv_sys_max_cmd_len=196608 4914 ;; 4915 4916 os2*) 4917 # The test takes a long time on OS/2. 4918 lt_cv_sys_max_cmd_len=8192 4919 ;; 4920 4921 osf*) 4922 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4923 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4924 # nice to cause kernel panics so lets avoid the loop below. 4925 # First set a reasonable default. 4926 lt_cv_sys_max_cmd_len=16384 4927 # 4928 if test -x /sbin/sysconfig; then 4929 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4930 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4931 esac 4932 fi 4933 ;; 4934 sco3.2v5*) 4935 lt_cv_sys_max_cmd_len=102400 4936 ;; 4937 sysv5* | sco5v6* | sysv4.2uw2*) 4938 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4939 if test -n "$kargmax"; then 4940 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4941 else 4942 lt_cv_sys_max_cmd_len=32768 4943 fi 4944 ;; 4945 *) 4946 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4947 if test -n "$lt_cv_sys_max_cmd_len" && \ 4948 test undefined != "$lt_cv_sys_max_cmd_len"; then 4949 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4950 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4951 else 4952 # Make teststring a little bigger before we do anything with it. 4953 # a 1K string should be a reasonable start. 4954 for i in 1 2 3 4 5 6 7 8; do 4955 teststring=$teststring$teststring 4956 done 4957 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4958 # If test is not a shell built-in, we'll probably end up computing a 4959 # maximum length that is only half of the actual maximum length, but 4960 # we can't tell. 4961 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 4962 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4963 test 17 != "$i" # 1/2 MB should be enough 4964 do 4965 i=`expr $i + 1` 4966 teststring=$teststring$teststring 4967 done 4968 # Only check the string length outside the loop. 4969 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4970 teststring= 4971 # Add a significant safety factor because C++ compilers can tack on 4972 # massive amounts of additional arguments before passing them to the 4973 # linker. It appears as though 1/2 is a usable value. 4974 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4975 fi 4976 ;; 4977 esac 4978 4979fi 4980 4981if test -n "$lt_cv_sys_max_cmd_len"; then 4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4983$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4984else 4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4986$as_echo "none" >&6; } 4987fi 4988max_cmd_len=$lt_cv_sys_max_cmd_len 4989 4990 4991 4992 4993 4994 4995: ${CP="cp -f"} 4996: ${MV="mv -f"} 4997: ${RM="rm -f"} 4998 4999if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5000 lt_unset=unset 5001else 5002 lt_unset=false 5003fi 5004 5005 5006 5007 5008 5009# test EBCDIC or ASCII 5010case `echo X|tr X '\101'` in 5011 A) # ASCII based system 5012 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5013 lt_SP2NL='tr \040 \012' 5014 lt_NL2SP='tr \015\012 \040\040' 5015 ;; 5016 *) # EBCDIC based system 5017 lt_SP2NL='tr \100 \n' 5018 lt_NL2SP='tr \r\n \100\100' 5019 ;; 5020esac 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5031$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5032if ${lt_cv_to_host_file_cmd+:} false; then : 5033 $as_echo_n "(cached) " >&6 5034else 5035 case $host in 5036 *-*-mingw* ) 5037 case $build in 5038 *-*-mingw* ) # actually msys 5039 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5040 ;; 5041 *-*-cygwin* ) 5042 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5043 ;; 5044 * ) # otherwise, assume *nix 5045 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5046 ;; 5047 esac 5048 ;; 5049 *-*-cygwin* ) 5050 case $build in 5051 *-*-mingw* ) # actually msys 5052 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5053 ;; 5054 *-*-cygwin* ) 5055 lt_cv_to_host_file_cmd=func_convert_file_noop 5056 ;; 5057 * ) # otherwise, assume *nix 5058 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5059 ;; 5060 esac 5061 ;; 5062 * ) # unhandled hosts (and "normal" native builds) 5063 lt_cv_to_host_file_cmd=func_convert_file_noop 5064 ;; 5065esac 5066 5067fi 5068 5069to_host_file_cmd=$lt_cv_to_host_file_cmd 5070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5071$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5072 5073 5074 5075 5076 5077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5078$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5079if ${lt_cv_to_tool_file_cmd+:} false; then : 5080 $as_echo_n "(cached) " >&6 5081else 5082 #assume ordinary cross tools, or native build. 5083lt_cv_to_tool_file_cmd=func_convert_file_noop 5084case $host in 5085 *-*-mingw* ) 5086 case $build in 5087 *-*-mingw* ) # actually msys 5088 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5089 ;; 5090 esac 5091 ;; 5092esac 5093 5094fi 5095 5096to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5098$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5099 5100 5101 5102 5103 5104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5105$as_echo_n "checking for $LD option to reload object files... " >&6; } 5106if ${lt_cv_ld_reload_flag+:} false; then : 5107 $as_echo_n "(cached) " >&6 5108else 5109 lt_cv_ld_reload_flag='-r' 5110fi 5111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5112$as_echo "$lt_cv_ld_reload_flag" >&6; } 5113reload_flag=$lt_cv_ld_reload_flag 5114case $reload_flag in 5115"" | " "*) ;; 5116*) reload_flag=" $reload_flag" ;; 5117esac 5118reload_cmds='$LD$reload_flag -o $output$reload_objs' 5119case $host_os in 5120 cygwin* | mingw* | pw32* | cegcc*) 5121 if test yes != "$GCC"; then 5122 reload_cmds=false 5123 fi 5124 ;; 5125 darwin*) 5126 if test yes = "$GCC"; then 5127 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5128 else 5129 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5130 fi 5131 ;; 5132esac 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142if test -n "$ac_tool_prefix"; then 5143 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5144set dummy ${ac_tool_prefix}objdump; ac_word=$2 5145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5146$as_echo_n "checking for $ac_word... " >&6; } 5147if ${ac_cv_prog_OBJDUMP+:} false; then : 5148 $as_echo_n "(cached) " >&6 5149else 5150 if test -n "$OBJDUMP"; then 5151 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5152else 5153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5154for as_dir in $PATH 5155do 5156 IFS=$as_save_IFS 5157 test -z "$as_dir" && as_dir=. 5158 for ac_exec_ext in '' $ac_executable_extensions; do 5159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5160 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5162 break 2 5163 fi 5164done 5165 done 5166IFS=$as_save_IFS 5167 5168fi 5169fi 5170OBJDUMP=$ac_cv_prog_OBJDUMP 5171if test -n "$OBJDUMP"; then 5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5173$as_echo "$OBJDUMP" >&6; } 5174else 5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5176$as_echo "no" >&6; } 5177fi 5178 5179 5180fi 5181if test -z "$ac_cv_prog_OBJDUMP"; then 5182 ac_ct_OBJDUMP=$OBJDUMP 5183 # Extract the first word of "objdump", so it can be a program name with args. 5184set dummy objdump; ac_word=$2 5185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5186$as_echo_n "checking for $ac_word... " >&6; } 5187if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5188 $as_echo_n "(cached) " >&6 5189else 5190 if test -n "$ac_ct_OBJDUMP"; then 5191 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5192else 5193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5194for as_dir in $PATH 5195do 5196 IFS=$as_save_IFS 5197 test -z "$as_dir" && as_dir=. 5198 for ac_exec_ext in '' $ac_executable_extensions; do 5199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5200 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5202 break 2 5203 fi 5204done 5205 done 5206IFS=$as_save_IFS 5207 5208fi 5209fi 5210ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5211if test -n "$ac_ct_OBJDUMP"; then 5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5213$as_echo "$ac_ct_OBJDUMP" >&6; } 5214else 5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5216$as_echo "no" >&6; } 5217fi 5218 5219 if test "x$ac_ct_OBJDUMP" = x; then 5220 OBJDUMP="false" 5221 else 5222 case $cross_compiling:$ac_tool_warned in 5223yes:) 5224{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5225$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5226ac_tool_warned=yes ;; 5227esac 5228 OBJDUMP=$ac_ct_OBJDUMP 5229 fi 5230else 5231 OBJDUMP="$ac_cv_prog_OBJDUMP" 5232fi 5233 5234test -z "$OBJDUMP" && OBJDUMP=objdump 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5245$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5246if ${lt_cv_deplibs_check_method+:} false; then : 5247 $as_echo_n "(cached) " >&6 5248else 5249 lt_cv_file_magic_cmd='$MAGIC_CMD' 5250lt_cv_file_magic_test_file= 5251lt_cv_deplibs_check_method='unknown' 5252# Need to set the preceding variable on all platforms that support 5253# interlibrary dependencies. 5254# 'none' -- dependencies not supported. 5255# 'unknown' -- same as none, but documents that we really don't know. 5256# 'pass_all' -- all dependencies passed with no checks. 5257# 'test_compile' -- check by making test program. 5258# 'file_magic [[regex]]' -- check by looking for files in library path 5259# that responds to the $file_magic_cmd with a given extended regex. 5260# If you have 'file' or equivalent on your system and you're not sure 5261# whether 'pass_all' will *always* work, you probably want this one. 5262 5263case $host_os in 5264aix[4-9]*) 5265 lt_cv_deplibs_check_method=pass_all 5266 ;; 5267 5268beos*) 5269 lt_cv_deplibs_check_method=pass_all 5270 ;; 5271 5272bsdi[45]*) 5273 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5274 lt_cv_file_magic_cmd='/usr/bin/file -L' 5275 lt_cv_file_magic_test_file=/shlib/libc.so 5276 ;; 5277 5278cygwin*) 5279 # func_win32_libid is a shell function defined in ltmain.sh 5280 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5281 lt_cv_file_magic_cmd='func_win32_libid' 5282 ;; 5283 5284mingw* | pw32*) 5285 # Base MSYS/MinGW do not provide the 'file' command needed by 5286 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5287 # unless we find 'file', for example because we are cross-compiling. 5288 if ( file / ) >/dev/null 2>&1; then 5289 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5290 lt_cv_file_magic_cmd='func_win32_libid' 5291 else 5292 # Keep this pattern in sync with the one in func_win32_libid. 5293 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5294 lt_cv_file_magic_cmd='$OBJDUMP -f' 5295 fi 5296 ;; 5297 5298cegcc*) 5299 # use the weaker test based on 'objdump'. See mingw*. 5300 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5301 lt_cv_file_magic_cmd='$OBJDUMP -f' 5302 ;; 5303 5304darwin* | rhapsody*) 5305 lt_cv_deplibs_check_method=pass_all 5306 ;; 5307 5308freebsd* | dragonfly*) 5309 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5310 case $host_cpu in 5311 i*86 ) 5312 # Not sure whether the presence of OpenBSD here was a mistake. 5313 # Let's accept both of them until this is cleared up. 5314 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5315 lt_cv_file_magic_cmd=/usr/bin/file 5316 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5317 ;; 5318 esac 5319 else 5320 lt_cv_deplibs_check_method=pass_all 5321 fi 5322 ;; 5323 5324haiku*) 5325 lt_cv_deplibs_check_method=pass_all 5326 ;; 5327 5328hpux10.20* | hpux11*) 5329 lt_cv_file_magic_cmd=/usr/bin/file 5330 case $host_cpu in 5331 ia64*) 5332 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5333 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5334 ;; 5335 hppa*64*) 5336 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]' 5337 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5338 ;; 5339 *) 5340 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5341 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5342 ;; 5343 esac 5344 ;; 5345 5346interix[3-9]*) 5347 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5348 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5349 ;; 5350 5351irix5* | irix6* | nonstopux*) 5352 case $LD in 5353 *-32|*"-32 ") libmagic=32-bit;; 5354 *-n32|*"-n32 ") libmagic=N32;; 5355 *-64|*"-64 ") libmagic=64-bit;; 5356 *) libmagic=never-match;; 5357 esac 5358 lt_cv_deplibs_check_method=pass_all 5359 ;; 5360 5361# This must be glibc/ELF. 5362linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5363 lt_cv_deplibs_check_method=pass_all 5364 ;; 5365 5366netbsd*) 5367 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5368 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5369 else 5370 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5371 fi 5372 ;; 5373 5374newos6*) 5375 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5376 lt_cv_file_magic_cmd=/usr/bin/file 5377 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5378 ;; 5379 5380*nto* | *qnx*) 5381 lt_cv_deplibs_check_method=pass_all 5382 ;; 5383 5384openbsd* | bitrig*) 5385 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5386 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5387 else 5388 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5389 fi 5390 ;; 5391 5392osf3* | osf4* | osf5*) 5393 lt_cv_deplibs_check_method=pass_all 5394 ;; 5395 5396rdos*) 5397 lt_cv_deplibs_check_method=pass_all 5398 ;; 5399 5400solaris*) 5401 lt_cv_deplibs_check_method=pass_all 5402 ;; 5403 5404sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5405 lt_cv_deplibs_check_method=pass_all 5406 ;; 5407 5408sysv4 | sysv4.3*) 5409 case $host_vendor in 5410 motorola) 5411 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]' 5412 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5413 ;; 5414 ncr) 5415 lt_cv_deplibs_check_method=pass_all 5416 ;; 5417 sequent) 5418 lt_cv_file_magic_cmd='/bin/file' 5419 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5420 ;; 5421 sni) 5422 lt_cv_file_magic_cmd='/bin/file' 5423 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5424 lt_cv_file_magic_test_file=/lib/libc.so 5425 ;; 5426 siemens) 5427 lt_cv_deplibs_check_method=pass_all 5428 ;; 5429 pc) 5430 lt_cv_deplibs_check_method=pass_all 5431 ;; 5432 esac 5433 ;; 5434 5435tpf*) 5436 lt_cv_deplibs_check_method=pass_all 5437 ;; 5438os2*) 5439 lt_cv_deplibs_check_method=pass_all 5440 ;; 5441esac 5442 5443fi 5444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5445$as_echo "$lt_cv_deplibs_check_method" >&6; } 5446 5447file_magic_glob= 5448want_nocaseglob=no 5449if test "$build" = "$host"; then 5450 case $host_os in 5451 mingw* | pw32*) 5452 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5453 want_nocaseglob=yes 5454 else 5455 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5456 fi 5457 ;; 5458 esac 5459fi 5460 5461file_magic_cmd=$lt_cv_file_magic_cmd 5462deplibs_check_method=$lt_cv_deplibs_check_method 5463test -z "$deplibs_check_method" && deplibs_check_method=unknown 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486if test -n "$ac_tool_prefix"; then 5487 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5488set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5490$as_echo_n "checking for $ac_word... " >&6; } 5491if ${ac_cv_prog_DLLTOOL+:} false; then : 5492 $as_echo_n "(cached) " >&6 5493else 5494 if test -n "$DLLTOOL"; then 5495 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5496else 5497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5498for as_dir in $PATH 5499do 5500 IFS=$as_save_IFS 5501 test -z "$as_dir" && as_dir=. 5502 for ac_exec_ext in '' $ac_executable_extensions; do 5503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5504 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5506 break 2 5507 fi 5508done 5509 done 5510IFS=$as_save_IFS 5511 5512fi 5513fi 5514DLLTOOL=$ac_cv_prog_DLLTOOL 5515if test -n "$DLLTOOL"; then 5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5517$as_echo "$DLLTOOL" >&6; } 5518else 5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5520$as_echo "no" >&6; } 5521fi 5522 5523 5524fi 5525if test -z "$ac_cv_prog_DLLTOOL"; then 5526 ac_ct_DLLTOOL=$DLLTOOL 5527 # Extract the first word of "dlltool", so it can be a program name with args. 5528set dummy dlltool; ac_word=$2 5529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5530$as_echo_n "checking for $ac_word... " >&6; } 5531if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5532 $as_echo_n "(cached) " >&6 5533else 5534 if test -n "$ac_ct_DLLTOOL"; then 5535 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5536else 5537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5538for as_dir in $PATH 5539do 5540 IFS=$as_save_IFS 5541 test -z "$as_dir" && as_dir=. 5542 for ac_exec_ext in '' $ac_executable_extensions; do 5543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5544 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5546 break 2 5547 fi 5548done 5549 done 5550IFS=$as_save_IFS 5551 5552fi 5553fi 5554ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5555if test -n "$ac_ct_DLLTOOL"; then 5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5557$as_echo "$ac_ct_DLLTOOL" >&6; } 5558else 5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5560$as_echo "no" >&6; } 5561fi 5562 5563 if test "x$ac_ct_DLLTOOL" = x; then 5564 DLLTOOL="false" 5565 else 5566 case $cross_compiling:$ac_tool_warned in 5567yes:) 5568{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5569$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5570ac_tool_warned=yes ;; 5571esac 5572 DLLTOOL=$ac_ct_DLLTOOL 5573 fi 5574else 5575 DLLTOOL="$ac_cv_prog_DLLTOOL" 5576fi 5577 5578test -z "$DLLTOOL" && DLLTOOL=dlltool 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5590$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5591if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5592 $as_echo_n "(cached) " >&6 5593else 5594 lt_cv_sharedlib_from_linklib_cmd='unknown' 5595 5596case $host_os in 5597cygwin* | mingw* | pw32* | cegcc*) 5598 # two different shell functions defined in ltmain.sh; 5599 # decide which one to use based on capabilities of $DLLTOOL 5600 case `$DLLTOOL --help 2>&1` in 5601 *--identify-strict*) 5602 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5603 ;; 5604 *) 5605 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5606 ;; 5607 esac 5608 ;; 5609*) 5610 # fallback: assume linklib IS sharedlib 5611 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5612 ;; 5613esac 5614 5615fi 5616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5617$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5618sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5619test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5620 5621 5622 5623 5624 5625 5626 5627 5628if test -n "$ac_tool_prefix"; then 5629 for ac_prog in ar 5630 do 5631 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5632set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5634$as_echo_n "checking for $ac_word... " >&6; } 5635if ${ac_cv_prog_AR+:} false; then : 5636 $as_echo_n "(cached) " >&6 5637else 5638 if test -n "$AR"; then 5639 ac_cv_prog_AR="$AR" # Let the user override the test. 5640else 5641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5642for as_dir in $PATH 5643do 5644 IFS=$as_save_IFS 5645 test -z "$as_dir" && as_dir=. 5646 for ac_exec_ext in '' $ac_executable_extensions; do 5647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5648 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5650 break 2 5651 fi 5652done 5653 done 5654IFS=$as_save_IFS 5655 5656fi 5657fi 5658AR=$ac_cv_prog_AR 5659if test -n "$AR"; then 5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5661$as_echo "$AR" >&6; } 5662else 5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5664$as_echo "no" >&6; } 5665fi 5666 5667 5668 test -n "$AR" && break 5669 done 5670fi 5671if test -z "$AR"; then 5672 ac_ct_AR=$AR 5673 for ac_prog in ar 5674do 5675 # Extract the first word of "$ac_prog", so it can be a program name with args. 5676set dummy $ac_prog; ac_word=$2 5677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5678$as_echo_n "checking for $ac_word... " >&6; } 5679if ${ac_cv_prog_ac_ct_AR+:} false; then : 5680 $as_echo_n "(cached) " >&6 5681else 5682 if test -n "$ac_ct_AR"; then 5683 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5684else 5685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5686for as_dir in $PATH 5687do 5688 IFS=$as_save_IFS 5689 test -z "$as_dir" && as_dir=. 5690 for ac_exec_ext in '' $ac_executable_extensions; do 5691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5692 ac_cv_prog_ac_ct_AR="$ac_prog" 5693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5694 break 2 5695 fi 5696done 5697 done 5698IFS=$as_save_IFS 5699 5700fi 5701fi 5702ac_ct_AR=$ac_cv_prog_ac_ct_AR 5703if test -n "$ac_ct_AR"; then 5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5705$as_echo "$ac_ct_AR" >&6; } 5706else 5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5708$as_echo "no" >&6; } 5709fi 5710 5711 5712 test -n "$ac_ct_AR" && break 5713done 5714 5715 if test "x$ac_ct_AR" = x; then 5716 AR="false" 5717 else 5718 case $cross_compiling:$ac_tool_warned in 5719yes:) 5720{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5721$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5722ac_tool_warned=yes ;; 5723esac 5724 AR=$ac_ct_AR 5725 fi 5726fi 5727 5728: ${AR=ar} 5729: ${AR_FLAGS=cru} 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5742$as_echo_n "checking for archiver @FILE support... " >&6; } 5743if ${lt_cv_ar_at_file+:} false; then : 5744 $as_echo_n "(cached) " >&6 5745else 5746 lt_cv_ar_at_file=no 5747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5748/* end confdefs.h. */ 5749 5750int 5751main () 5752{ 5753 5754 ; 5755 return 0; 5756} 5757_ACEOF 5758if ac_fn_c_try_compile "$LINENO"; then : 5759 echo conftest.$ac_objext > conftest.lst 5760 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5762 (eval $lt_ar_try) 2>&5 5763 ac_status=$? 5764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5765 test $ac_status = 0; } 5766 if test 0 -eq "$ac_status"; then 5767 # Ensure the archiver fails upon bogus file names. 5768 rm -f conftest.$ac_objext libconftest.a 5769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5770 (eval $lt_ar_try) 2>&5 5771 ac_status=$? 5772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5773 test $ac_status = 0; } 5774 if test 0 -ne "$ac_status"; then 5775 lt_cv_ar_at_file=@ 5776 fi 5777 fi 5778 rm -f conftest.* libconftest.a 5779 5780fi 5781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5782 5783fi 5784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5785$as_echo "$lt_cv_ar_at_file" >&6; } 5786 5787if test no = "$lt_cv_ar_at_file"; then 5788 archiver_list_spec= 5789else 5790 archiver_list_spec=$lt_cv_ar_at_file 5791fi 5792 5793 5794 5795 5796 5797 5798 5799if test -n "$ac_tool_prefix"; then 5800 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5801set dummy ${ac_tool_prefix}strip; ac_word=$2 5802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5803$as_echo_n "checking for $ac_word... " >&6; } 5804if ${ac_cv_prog_STRIP+:} false; then : 5805 $as_echo_n "(cached) " >&6 5806else 5807 if test -n "$STRIP"; then 5808 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5809else 5810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5811for as_dir in $PATH 5812do 5813 IFS=$as_save_IFS 5814 test -z "$as_dir" && as_dir=. 5815 for ac_exec_ext in '' $ac_executable_extensions; do 5816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5817 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5819 break 2 5820 fi 5821done 5822 done 5823IFS=$as_save_IFS 5824 5825fi 5826fi 5827STRIP=$ac_cv_prog_STRIP 5828if test -n "$STRIP"; then 5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5830$as_echo "$STRIP" >&6; } 5831else 5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5833$as_echo "no" >&6; } 5834fi 5835 5836 5837fi 5838if test -z "$ac_cv_prog_STRIP"; then 5839 ac_ct_STRIP=$STRIP 5840 # Extract the first word of "strip", so it can be a program name with args. 5841set dummy strip; ac_word=$2 5842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5843$as_echo_n "checking for $ac_word... " >&6; } 5844if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5845 $as_echo_n "(cached) " >&6 5846else 5847 if test -n "$ac_ct_STRIP"; then 5848 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5849else 5850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5851for as_dir in $PATH 5852do 5853 IFS=$as_save_IFS 5854 test -z "$as_dir" && as_dir=. 5855 for ac_exec_ext in '' $ac_executable_extensions; do 5856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5857 ac_cv_prog_ac_ct_STRIP="strip" 5858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5859 break 2 5860 fi 5861done 5862 done 5863IFS=$as_save_IFS 5864 5865fi 5866fi 5867ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5868if test -n "$ac_ct_STRIP"; then 5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5870$as_echo "$ac_ct_STRIP" >&6; } 5871else 5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5873$as_echo "no" >&6; } 5874fi 5875 5876 if test "x$ac_ct_STRIP" = x; then 5877 STRIP=":" 5878 else 5879 case $cross_compiling:$ac_tool_warned in 5880yes:) 5881{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5882$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5883ac_tool_warned=yes ;; 5884esac 5885 STRIP=$ac_ct_STRIP 5886 fi 5887else 5888 STRIP="$ac_cv_prog_STRIP" 5889fi 5890 5891test -z "$STRIP" && STRIP=: 5892 5893 5894 5895 5896 5897 5898if test -n "$ac_tool_prefix"; then 5899 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5900set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5902$as_echo_n "checking for $ac_word... " >&6; } 5903if ${ac_cv_prog_RANLIB+:} false; then : 5904 $as_echo_n "(cached) " >&6 5905else 5906 if test -n "$RANLIB"; then 5907 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5908else 5909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5910for as_dir in $PATH 5911do 5912 IFS=$as_save_IFS 5913 test -z "$as_dir" && as_dir=. 5914 for ac_exec_ext in '' $ac_executable_extensions; do 5915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5916 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5918 break 2 5919 fi 5920done 5921 done 5922IFS=$as_save_IFS 5923 5924fi 5925fi 5926RANLIB=$ac_cv_prog_RANLIB 5927if test -n "$RANLIB"; then 5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5929$as_echo "$RANLIB" >&6; } 5930else 5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5932$as_echo "no" >&6; } 5933fi 5934 5935 5936fi 5937if test -z "$ac_cv_prog_RANLIB"; then 5938 ac_ct_RANLIB=$RANLIB 5939 # Extract the first word of "ranlib", so it can be a program name with args. 5940set dummy ranlib; ac_word=$2 5941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5942$as_echo_n "checking for $ac_word... " >&6; } 5943if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5944 $as_echo_n "(cached) " >&6 5945else 5946 if test -n "$ac_ct_RANLIB"; then 5947 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5948else 5949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5950for as_dir in $PATH 5951do 5952 IFS=$as_save_IFS 5953 test -z "$as_dir" && as_dir=. 5954 for ac_exec_ext in '' $ac_executable_extensions; do 5955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5956 ac_cv_prog_ac_ct_RANLIB="ranlib" 5957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5958 break 2 5959 fi 5960done 5961 done 5962IFS=$as_save_IFS 5963 5964fi 5965fi 5966ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5967if test -n "$ac_ct_RANLIB"; then 5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5969$as_echo "$ac_ct_RANLIB" >&6; } 5970else 5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5972$as_echo "no" >&6; } 5973fi 5974 5975 if test "x$ac_ct_RANLIB" = x; then 5976 RANLIB=":" 5977 else 5978 case $cross_compiling:$ac_tool_warned in 5979yes:) 5980{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5981$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5982ac_tool_warned=yes ;; 5983esac 5984 RANLIB=$ac_ct_RANLIB 5985 fi 5986else 5987 RANLIB="$ac_cv_prog_RANLIB" 5988fi 5989 5990test -z "$RANLIB" && RANLIB=: 5991 5992 5993 5994 5995 5996 5997# Determine commands to create old-style static archives. 5998old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5999old_postinstall_cmds='chmod 644 $oldlib' 6000old_postuninstall_cmds= 6001 6002if test -n "$RANLIB"; then 6003 case $host_os in 6004 bitrig* | openbsd*) 6005 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6006 ;; 6007 *) 6008 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6009 ;; 6010 esac 6011 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6012fi 6013 6014case $host_os in 6015 darwin*) 6016 lock_old_archive_extraction=yes ;; 6017 *) 6018 lock_old_archive_extraction=no ;; 6019esac 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 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059# If no C compiler was specified, use CC. 6060LTCC=${LTCC-"$CC"} 6061 6062# If no C compiler flags were specified, use CFLAGS. 6063LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6064 6065# Allow CC to be a program name with arguments. 6066compiler=$CC 6067 6068 6069# Check for command to grab the raw symbol name followed by C symbol from nm. 6070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6071$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6072if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6073 $as_echo_n "(cached) " >&6 6074else 6075 6076# These are sane defaults that work on at least a few old systems. 6077# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6078 6079# Character class describing NM global symbol codes. 6080symcode='[BCDEGRST]' 6081 6082# Regexp to match symbols that can be accessed directly from C. 6083sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6084 6085# Define system-specific variables. 6086case $host_os in 6087aix*) 6088 symcode='[BCDT]' 6089 ;; 6090cygwin* | mingw* | pw32* | cegcc*) 6091 symcode='[ABCDGISTW]' 6092 ;; 6093hpux*) 6094 if test ia64 = "$host_cpu"; then 6095 symcode='[ABCDEGRST]' 6096 fi 6097 ;; 6098irix* | nonstopux*) 6099 symcode='[BCDEGRST]' 6100 ;; 6101osf*) 6102 symcode='[BCDEGQRST]' 6103 ;; 6104solaris*) 6105 symcode='[BDRT]' 6106 ;; 6107sco3.2v5*) 6108 symcode='[DT]' 6109 ;; 6110sysv4.2uw2*) 6111 symcode='[DT]' 6112 ;; 6113sysv5* | sco5v6* | unixware* | OpenUNIX*) 6114 symcode='[ABDT]' 6115 ;; 6116sysv4) 6117 symcode='[DFNSTU]' 6118 ;; 6119esac 6120 6121# If we're using GNU nm, then use its standard symbol codes. 6122case `$NM -V 2>&1` in 6123*GNU* | *'with BFD'*) 6124 symcode='[ABCDGIRSTW]' ;; 6125esac 6126 6127if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6128 # Gets list of data symbols to import. 6129 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6130 # Adjust the below global symbol transforms to fixup imported variables. 6131 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6132 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6133 lt_c_name_lib_hook="\ 6134 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6135 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6136else 6137 # Disable hooks by default. 6138 lt_cv_sys_global_symbol_to_import= 6139 lt_cdecl_hook= 6140 lt_c_name_hook= 6141 lt_c_name_lib_hook= 6142fi 6143 6144# Transform an extracted symbol line into a proper C declaration. 6145# Some systems (esp. on ia64) link data and code symbols differently, 6146# so use this general approach. 6147lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6148$lt_cdecl_hook\ 6149" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6150" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6151 6152# Transform an extracted symbol line into symbol name and symbol address 6153lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6154$lt_c_name_hook\ 6155" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6156" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6157 6158# Transform an extracted symbol line into symbol name with lib prefix and 6159# symbol address. 6160lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6161$lt_c_name_lib_hook\ 6162" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6163" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6164" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6165 6166# Handle CRLF in mingw tool chain 6167opt_cr= 6168case $build_os in 6169mingw*) 6170 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6171 ;; 6172esac 6173 6174# Try without a prefix underscore, then with it. 6175for ac_symprfx in "" "_"; do 6176 6177 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6178 symxfrm="\\1 $ac_symprfx\\2 \\2" 6179 6180 # Write the raw and C identifiers. 6181 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6182 # Fake it for dumpbin and say T for any non-static function, 6183 # D for any global variable and I for any imported variable. 6184 # Also find C++ and __fastcall symbols from MSVC++, 6185 # which start with @ or ?. 6186 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6187" {last_section=section; section=\$ 3};"\ 6188" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6189" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6190" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6191" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6192" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6193" \$ 0!~/External *\|/{next};"\ 6194" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6195" {if(hide[section]) next};"\ 6196" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6197" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6198" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6199" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6200" ' prfx=^$ac_symprfx" 6201 else 6202 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6203 fi 6204 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6205 6206 # Check to see that the pipe works correctly. 6207 pipe_works=no 6208 6209 rm -f conftest* 6210 cat > conftest.$ac_ext <<_LT_EOF 6211#ifdef __cplusplus 6212extern "C" { 6213#endif 6214char nm_test_var; 6215void nm_test_func(void); 6216void nm_test_func(void){} 6217#ifdef __cplusplus 6218} 6219#endif 6220int main(){nm_test_var='a';nm_test_func();return(0);} 6221_LT_EOF 6222 6223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6224 (eval $ac_compile) 2>&5 6225 ac_status=$? 6226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6227 test $ac_status = 0; }; then 6228 # Now try to grab the symbols. 6229 nlist=conftest.nm 6230 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6231 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6232 ac_status=$? 6233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6234 test $ac_status = 0; } && test -s "$nlist"; then 6235 # Try sorting and uniquifying the output. 6236 if sort "$nlist" | uniq > "$nlist"T; then 6237 mv -f "$nlist"T "$nlist" 6238 else 6239 rm -f "$nlist"T 6240 fi 6241 6242 # Make sure that we snagged all the symbols we need. 6243 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6244 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6245 cat <<_LT_EOF > conftest.$ac_ext 6246/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6247#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6248/* DATA imports from DLLs on WIN32 can't be const, because runtime 6249 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6250# define LT_DLSYM_CONST 6251#elif defined __osf__ 6252/* This system does not cope well with relocations in const data. */ 6253# define LT_DLSYM_CONST 6254#else 6255# define LT_DLSYM_CONST const 6256#endif 6257 6258#ifdef __cplusplus 6259extern "C" { 6260#endif 6261 6262_LT_EOF 6263 # Now generate the symbol file. 6264 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6265 6266 cat <<_LT_EOF >> conftest.$ac_ext 6267 6268/* The mapping between symbol names and symbols. */ 6269LT_DLSYM_CONST struct { 6270 const char *name; 6271 void *address; 6272} 6273lt__PROGRAM__LTX_preloaded_symbols[] = 6274{ 6275 { "@PROGRAM@", (void *) 0 }, 6276_LT_EOF 6277 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6278 cat <<\_LT_EOF >> conftest.$ac_ext 6279 {0, (void *) 0} 6280}; 6281 6282/* This works around a problem in FreeBSD linker */ 6283#ifdef FREEBSD_WORKAROUND 6284static const void *lt_preloaded_setup() { 6285 return lt__PROGRAM__LTX_preloaded_symbols; 6286} 6287#endif 6288 6289#ifdef __cplusplus 6290} 6291#endif 6292_LT_EOF 6293 # Now try linking the two files. 6294 mv conftest.$ac_objext conftstm.$ac_objext 6295 lt_globsym_save_LIBS=$LIBS 6296 lt_globsym_save_CFLAGS=$CFLAGS 6297 LIBS=conftstm.$ac_objext 6298 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6299 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6300 (eval $ac_link) 2>&5 6301 ac_status=$? 6302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6303 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6304 pipe_works=yes 6305 fi 6306 LIBS=$lt_globsym_save_LIBS 6307 CFLAGS=$lt_globsym_save_CFLAGS 6308 else 6309 echo "cannot find nm_test_func in $nlist" >&5 6310 fi 6311 else 6312 echo "cannot find nm_test_var in $nlist" >&5 6313 fi 6314 else 6315 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6316 fi 6317 else 6318 echo "$progname: failed program was:" >&5 6319 cat conftest.$ac_ext >&5 6320 fi 6321 rm -rf conftest* conftst* 6322 6323 # Do not use the global_symbol_pipe unless it works. 6324 if test yes = "$pipe_works"; then 6325 break 6326 else 6327 lt_cv_sys_global_symbol_pipe= 6328 fi 6329done 6330 6331fi 6332 6333if test -z "$lt_cv_sys_global_symbol_pipe"; then 6334 lt_cv_sys_global_symbol_to_cdecl= 6335fi 6336if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6338$as_echo "failed" >&6; } 6339else 6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6341$as_echo "ok" >&6; } 6342fi 6343 6344# Response file support. 6345if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6346 nm_file_list_spec='@' 6347elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6348 nm_file_list_spec='@' 6349fi 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 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6388$as_echo_n "checking for sysroot... " >&6; } 6389 6390# Check whether --with-sysroot was given. 6391if test "${with_sysroot+set}" = set; then : 6392 withval=$with_sysroot; 6393else 6394 with_sysroot=no 6395fi 6396 6397 6398lt_sysroot= 6399case $with_sysroot in #( 6400 yes) 6401 if test yes = "$GCC"; then 6402 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6403 fi 6404 ;; #( 6405 /*) 6406 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6407 ;; #( 6408 no|'') 6409 ;; #( 6410 *) 6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6412$as_echo "$with_sysroot" >&6; } 6413 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6414 ;; 6415esac 6416 6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6418$as_echo "${lt_sysroot:-no}" >&6; } 6419 6420 6421 6422 6423 6424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6425$as_echo_n "checking for a working dd... " >&6; } 6426if ${ac_cv_path_lt_DD+:} false; then : 6427 $as_echo_n "(cached) " >&6 6428else 6429 printf 0123456789abcdef0123456789abcdef >conftest.i 6430cat conftest.i conftest.i >conftest2.i 6431: ${lt_DD:=$DD} 6432if test -z "$lt_DD"; then 6433 ac_path_lt_DD_found=false 6434 # Loop through the user's path and test for each of PROGNAME-LIST 6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6436for as_dir in $PATH 6437do 6438 IFS=$as_save_IFS 6439 test -z "$as_dir" && as_dir=. 6440 for ac_prog in dd; do 6441 for ac_exec_ext in '' $ac_executable_extensions; do 6442 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6443 as_fn_executable_p "$ac_path_lt_DD" || continue 6444if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6445 cmp -s conftest.i conftest.out \ 6446 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6447fi 6448 $ac_path_lt_DD_found && break 3 6449 done 6450 done 6451 done 6452IFS=$as_save_IFS 6453 if test -z "$ac_cv_path_lt_DD"; then 6454 : 6455 fi 6456else 6457 ac_cv_path_lt_DD=$lt_DD 6458fi 6459 6460rm -f conftest.i conftest2.i conftest.out 6461fi 6462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6463$as_echo "$ac_cv_path_lt_DD" >&6; } 6464 6465 6466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6467$as_echo_n "checking how to truncate binary pipes... " >&6; } 6468if ${lt_cv_truncate_bin+:} false; then : 6469 $as_echo_n "(cached) " >&6 6470else 6471 printf 0123456789abcdef0123456789abcdef >conftest.i 6472cat conftest.i conftest.i >conftest2.i 6473lt_cv_truncate_bin= 6474if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6475 cmp -s conftest.i conftest.out \ 6476 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6477fi 6478rm -f conftest.i conftest2.i conftest.out 6479test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6480fi 6481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6482$as_echo "$lt_cv_truncate_bin" >&6; } 6483 6484 6485 6486 6487 6488 6489 6490# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6491func_cc_basename () 6492{ 6493 for cc_temp in $*""; do 6494 case $cc_temp in 6495 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6496 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6497 \-*) ;; 6498 *) break;; 6499 esac 6500 done 6501 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6502} 6503 6504# Check whether --enable-libtool-lock was given. 6505if test "${enable_libtool_lock+set}" = set; then : 6506 enableval=$enable_libtool_lock; 6507fi 6508 6509test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6510 6511# Some flags need to be propagated to the compiler or linker for good 6512# libtool support. 6513case $host in 6514ia64-*-hpux*) 6515 # Find out what ABI is being produced by ac_compile, and set mode 6516 # options accordingly. 6517 echo 'int i;' > conftest.$ac_ext 6518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6519 (eval $ac_compile) 2>&5 6520 ac_status=$? 6521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6522 test $ac_status = 0; }; then 6523 case `/usr/bin/file conftest.$ac_objext` in 6524 *ELF-32*) 6525 HPUX_IA64_MODE=32 6526 ;; 6527 *ELF-64*) 6528 HPUX_IA64_MODE=64 6529 ;; 6530 esac 6531 fi 6532 rm -rf conftest* 6533 ;; 6534*-*-irix6*) 6535 # Find out what ABI is being produced by ac_compile, and set linker 6536 # options accordingly. 6537 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6539 (eval $ac_compile) 2>&5 6540 ac_status=$? 6541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6542 test $ac_status = 0; }; then 6543 if test yes = "$lt_cv_prog_gnu_ld"; then 6544 case `/usr/bin/file conftest.$ac_objext` in 6545 *32-bit*) 6546 LD="${LD-ld} -melf32bsmip" 6547 ;; 6548 *N32*) 6549 LD="${LD-ld} -melf32bmipn32" 6550 ;; 6551 *64-bit*) 6552 LD="${LD-ld} -melf64bmip" 6553 ;; 6554 esac 6555 else 6556 case `/usr/bin/file conftest.$ac_objext` in 6557 *32-bit*) 6558 LD="${LD-ld} -32" 6559 ;; 6560 *N32*) 6561 LD="${LD-ld} -n32" 6562 ;; 6563 *64-bit*) 6564 LD="${LD-ld} -64" 6565 ;; 6566 esac 6567 fi 6568 fi 6569 rm -rf conftest* 6570 ;; 6571 6572mips64*-*linux*) 6573 # Find out what ABI is being produced by ac_compile, and set linker 6574 # options accordingly. 6575 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6577 (eval $ac_compile) 2>&5 6578 ac_status=$? 6579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6580 test $ac_status = 0; }; then 6581 emul=elf 6582 case `/usr/bin/file conftest.$ac_objext` in 6583 *32-bit*) 6584 emul="${emul}32" 6585 ;; 6586 *64-bit*) 6587 emul="${emul}64" 6588 ;; 6589 esac 6590 case `/usr/bin/file conftest.$ac_objext` in 6591 *MSB*) 6592 emul="${emul}btsmip" 6593 ;; 6594 *LSB*) 6595 emul="${emul}ltsmip" 6596 ;; 6597 esac 6598 case `/usr/bin/file conftest.$ac_objext` in 6599 *N32*) 6600 emul="${emul}n32" 6601 ;; 6602 esac 6603 LD="${LD-ld} -m $emul" 6604 fi 6605 rm -rf conftest* 6606 ;; 6607 6608x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6609s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6610 # Find out what ABI is being produced by ac_compile, and set linker 6611 # options accordingly. Note that the listed cases only cover the 6612 # situations where additional linker options are needed (such as when 6613 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6614 # vice versa); the common cases where no linker options are needed do 6615 # not appear in the list. 6616 echo 'int i;' > conftest.$ac_ext 6617 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6618 (eval $ac_compile) 2>&5 6619 ac_status=$? 6620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6621 test $ac_status = 0; }; then 6622 case `/usr/bin/file conftest.o` in 6623 *32-bit*) 6624 case $host in 6625 x86_64-*kfreebsd*-gnu) 6626 LD="${LD-ld} -m elf_i386_fbsd" 6627 ;; 6628 x86_64-*linux*) 6629 case `/usr/bin/file conftest.o` in 6630 *x86-64*) 6631 LD="${LD-ld} -m elf32_x86_64" 6632 ;; 6633 *) 6634 LD="${LD-ld} -m elf_i386" 6635 ;; 6636 esac 6637 ;; 6638 powerpc64le-*linux*) 6639 LD="${LD-ld} -m elf32lppclinux" 6640 ;; 6641 powerpc64-*linux*) 6642 LD="${LD-ld} -m elf32ppclinux" 6643 ;; 6644 s390x-*linux*) 6645 LD="${LD-ld} -m elf_s390" 6646 ;; 6647 sparc64-*linux*) 6648 LD="${LD-ld} -m elf32_sparc" 6649 ;; 6650 esac 6651 ;; 6652 *64-bit*) 6653 case $host in 6654 x86_64-*kfreebsd*-gnu) 6655 LD="${LD-ld} -m elf_x86_64_fbsd" 6656 ;; 6657 x86_64-*linux*) 6658 LD="${LD-ld} -m elf_x86_64" 6659 ;; 6660 powerpcle-*linux*) 6661 LD="${LD-ld} -m elf64lppc" 6662 ;; 6663 powerpc-*linux*) 6664 LD="${LD-ld} -m elf64ppc" 6665 ;; 6666 s390*-*linux*|s390*-*tpf*) 6667 LD="${LD-ld} -m elf64_s390" 6668 ;; 6669 sparc*-*linux*) 6670 LD="${LD-ld} -m elf64_sparc" 6671 ;; 6672 esac 6673 ;; 6674 esac 6675 fi 6676 rm -rf conftest* 6677 ;; 6678 6679*-*-sco3.2v5*) 6680 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6681 SAVE_CFLAGS=$CFLAGS 6682 CFLAGS="$CFLAGS -belf" 6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6684$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6685if ${lt_cv_cc_needs_belf+:} false; then : 6686 $as_echo_n "(cached) " >&6 6687else 6688 ac_ext=c 6689ac_cpp='$CPP $CPPFLAGS' 6690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6692ac_compiler_gnu=$ac_cv_c_compiler_gnu 6693 6694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6695/* end confdefs.h. */ 6696 6697int 6698main () 6699{ 6700 6701 ; 6702 return 0; 6703} 6704_ACEOF 6705if ac_fn_c_try_link "$LINENO"; then : 6706 lt_cv_cc_needs_belf=yes 6707else 6708 lt_cv_cc_needs_belf=no 6709fi 6710rm -f core conftest.err conftest.$ac_objext \ 6711 conftest$ac_exeext conftest.$ac_ext 6712 ac_ext=c 6713ac_cpp='$CPP $CPPFLAGS' 6714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6716ac_compiler_gnu=$ac_cv_c_compiler_gnu 6717 6718fi 6719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6720$as_echo "$lt_cv_cc_needs_belf" >&6; } 6721 if test yes != "$lt_cv_cc_needs_belf"; then 6722 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6723 CFLAGS=$SAVE_CFLAGS 6724 fi 6725 ;; 6726*-*solaris*) 6727 # Find out what ABI is being produced by ac_compile, and set linker 6728 # options accordingly. 6729 echo 'int i;' > conftest.$ac_ext 6730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6731 (eval $ac_compile) 2>&5 6732 ac_status=$? 6733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6734 test $ac_status = 0; }; then 6735 case `/usr/bin/file conftest.o` in 6736 *64-bit*) 6737 case $lt_cv_prog_gnu_ld in 6738 yes*) 6739 case $host in 6740 i?86-*-solaris*|x86_64-*-solaris*) 6741 LD="${LD-ld} -m elf_x86_64" 6742 ;; 6743 sparc*-*-solaris*) 6744 LD="${LD-ld} -m elf64_sparc" 6745 ;; 6746 esac 6747 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6748 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6749 LD=${LD-ld}_sol2 6750 fi 6751 ;; 6752 *) 6753 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6754 LD="${LD-ld} -64" 6755 fi 6756 ;; 6757 esac 6758 ;; 6759 esac 6760 fi 6761 rm -rf conftest* 6762 ;; 6763esac 6764 6765need_locks=$enable_libtool_lock 6766 6767if test -n "$ac_tool_prefix"; then 6768 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6769set dummy ${ac_tool_prefix}mt; ac_word=$2 6770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6771$as_echo_n "checking for $ac_word... " >&6; } 6772if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6773 $as_echo_n "(cached) " >&6 6774else 6775 if test -n "$MANIFEST_TOOL"; then 6776 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6777else 6778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6779for as_dir in $PATH 6780do 6781 IFS=$as_save_IFS 6782 test -z "$as_dir" && as_dir=. 6783 for ac_exec_ext in '' $ac_executable_extensions; do 6784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6785 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6787 break 2 6788 fi 6789done 6790 done 6791IFS=$as_save_IFS 6792 6793fi 6794fi 6795MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6796if test -n "$MANIFEST_TOOL"; then 6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6798$as_echo "$MANIFEST_TOOL" >&6; } 6799else 6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6801$as_echo "no" >&6; } 6802fi 6803 6804 6805fi 6806if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6807 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6808 # Extract the first word of "mt", so it can be a program name with args. 6809set dummy mt; ac_word=$2 6810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6811$as_echo_n "checking for $ac_word... " >&6; } 6812if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6813 $as_echo_n "(cached) " >&6 6814else 6815 if test -n "$ac_ct_MANIFEST_TOOL"; then 6816 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6817else 6818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6819for as_dir in $PATH 6820do 6821 IFS=$as_save_IFS 6822 test -z "$as_dir" && as_dir=. 6823 for ac_exec_ext in '' $ac_executable_extensions; do 6824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6825 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6827 break 2 6828 fi 6829done 6830 done 6831IFS=$as_save_IFS 6832 6833fi 6834fi 6835ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6836if test -n "$ac_ct_MANIFEST_TOOL"; then 6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6838$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6839else 6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6841$as_echo "no" >&6; } 6842fi 6843 6844 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6845 MANIFEST_TOOL=":" 6846 else 6847 case $cross_compiling:$ac_tool_warned in 6848yes:) 6849{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6850$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6851ac_tool_warned=yes ;; 6852esac 6853 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6854 fi 6855else 6856 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6857fi 6858 6859test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6861$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6862if ${lt_cv_path_mainfest_tool+:} false; then : 6863 $as_echo_n "(cached) " >&6 6864else 6865 lt_cv_path_mainfest_tool=no 6866 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6867 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6868 cat conftest.err >&5 6869 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6870 lt_cv_path_mainfest_tool=yes 6871 fi 6872 rm -f conftest* 6873fi 6874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6875$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6876if test yes != "$lt_cv_path_mainfest_tool"; then 6877 MANIFEST_TOOL=: 6878fi 6879 6880 6881 6882 6883 6884 6885 case $host_os in 6886 rhapsody* | darwin*) 6887 if test -n "$ac_tool_prefix"; then 6888 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6889set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6891$as_echo_n "checking for $ac_word... " >&6; } 6892if ${ac_cv_prog_DSYMUTIL+:} false; then : 6893 $as_echo_n "(cached) " >&6 6894else 6895 if test -n "$DSYMUTIL"; then 6896 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6897else 6898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6899for as_dir in $PATH 6900do 6901 IFS=$as_save_IFS 6902 test -z "$as_dir" && as_dir=. 6903 for ac_exec_ext in '' $ac_executable_extensions; do 6904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6905 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6907 break 2 6908 fi 6909done 6910 done 6911IFS=$as_save_IFS 6912 6913fi 6914fi 6915DSYMUTIL=$ac_cv_prog_DSYMUTIL 6916if test -n "$DSYMUTIL"; then 6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6918$as_echo "$DSYMUTIL" >&6; } 6919else 6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6921$as_echo "no" >&6; } 6922fi 6923 6924 6925fi 6926if test -z "$ac_cv_prog_DSYMUTIL"; then 6927 ac_ct_DSYMUTIL=$DSYMUTIL 6928 # Extract the first word of "dsymutil", so it can be a program name with args. 6929set dummy dsymutil; ac_word=$2 6930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6931$as_echo_n "checking for $ac_word... " >&6; } 6932if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6933 $as_echo_n "(cached) " >&6 6934else 6935 if test -n "$ac_ct_DSYMUTIL"; then 6936 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6937else 6938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6939for as_dir in $PATH 6940do 6941 IFS=$as_save_IFS 6942 test -z "$as_dir" && as_dir=. 6943 for ac_exec_ext in '' $ac_executable_extensions; do 6944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6945 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6947 break 2 6948 fi 6949done 6950 done 6951IFS=$as_save_IFS 6952 6953fi 6954fi 6955ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6956if test -n "$ac_ct_DSYMUTIL"; then 6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6958$as_echo "$ac_ct_DSYMUTIL" >&6; } 6959else 6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6961$as_echo "no" >&6; } 6962fi 6963 6964 if test "x$ac_ct_DSYMUTIL" = x; then 6965 DSYMUTIL=":" 6966 else 6967 case $cross_compiling:$ac_tool_warned in 6968yes:) 6969{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6970$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6971ac_tool_warned=yes ;; 6972esac 6973 DSYMUTIL=$ac_ct_DSYMUTIL 6974 fi 6975else 6976 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6977fi 6978 6979 if test -n "$ac_tool_prefix"; then 6980 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6981set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6983$as_echo_n "checking for $ac_word... " >&6; } 6984if ${ac_cv_prog_NMEDIT+:} false; then : 6985 $as_echo_n "(cached) " >&6 6986else 6987 if test -n "$NMEDIT"; then 6988 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6989else 6990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6991for as_dir in $PATH 6992do 6993 IFS=$as_save_IFS 6994 test -z "$as_dir" && as_dir=. 6995 for ac_exec_ext in '' $ac_executable_extensions; do 6996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6997 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6999 break 2 7000 fi 7001done 7002 done 7003IFS=$as_save_IFS 7004 7005fi 7006fi 7007NMEDIT=$ac_cv_prog_NMEDIT 7008if test -n "$NMEDIT"; then 7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7010$as_echo "$NMEDIT" >&6; } 7011else 7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7013$as_echo "no" >&6; } 7014fi 7015 7016 7017fi 7018if test -z "$ac_cv_prog_NMEDIT"; then 7019 ac_ct_NMEDIT=$NMEDIT 7020 # Extract the first word of "nmedit", so it can be a program name with args. 7021set dummy nmedit; ac_word=$2 7022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7023$as_echo_n "checking for $ac_word... " >&6; } 7024if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7025 $as_echo_n "(cached) " >&6 7026else 7027 if test -n "$ac_ct_NMEDIT"; then 7028 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7029else 7030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7031for as_dir in $PATH 7032do 7033 IFS=$as_save_IFS 7034 test -z "$as_dir" && as_dir=. 7035 for ac_exec_ext in '' $ac_executable_extensions; do 7036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7037 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7039 break 2 7040 fi 7041done 7042 done 7043IFS=$as_save_IFS 7044 7045fi 7046fi 7047ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7048if test -n "$ac_ct_NMEDIT"; then 7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7050$as_echo "$ac_ct_NMEDIT" >&6; } 7051else 7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7053$as_echo "no" >&6; } 7054fi 7055 7056 if test "x$ac_ct_NMEDIT" = x; then 7057 NMEDIT=":" 7058 else 7059 case $cross_compiling:$ac_tool_warned in 7060yes:) 7061{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7062$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7063ac_tool_warned=yes ;; 7064esac 7065 NMEDIT=$ac_ct_NMEDIT 7066 fi 7067else 7068 NMEDIT="$ac_cv_prog_NMEDIT" 7069fi 7070 7071 if test -n "$ac_tool_prefix"; then 7072 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7073set dummy ${ac_tool_prefix}lipo; ac_word=$2 7074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7075$as_echo_n "checking for $ac_word... " >&6; } 7076if ${ac_cv_prog_LIPO+:} false; then : 7077 $as_echo_n "(cached) " >&6 7078else 7079 if test -n "$LIPO"; then 7080 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7081else 7082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7083for as_dir in $PATH 7084do 7085 IFS=$as_save_IFS 7086 test -z "$as_dir" && as_dir=. 7087 for ac_exec_ext in '' $ac_executable_extensions; do 7088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7089 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7091 break 2 7092 fi 7093done 7094 done 7095IFS=$as_save_IFS 7096 7097fi 7098fi 7099LIPO=$ac_cv_prog_LIPO 7100if test -n "$LIPO"; then 7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7102$as_echo "$LIPO" >&6; } 7103else 7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7105$as_echo "no" >&6; } 7106fi 7107 7108 7109fi 7110if test -z "$ac_cv_prog_LIPO"; then 7111 ac_ct_LIPO=$LIPO 7112 # Extract the first word of "lipo", so it can be a program name with args. 7113set dummy lipo; ac_word=$2 7114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7115$as_echo_n "checking for $ac_word... " >&6; } 7116if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7117 $as_echo_n "(cached) " >&6 7118else 7119 if test -n "$ac_ct_LIPO"; then 7120 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7121else 7122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7123for as_dir in $PATH 7124do 7125 IFS=$as_save_IFS 7126 test -z "$as_dir" && as_dir=. 7127 for ac_exec_ext in '' $ac_executable_extensions; do 7128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7129 ac_cv_prog_ac_ct_LIPO="lipo" 7130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7131 break 2 7132 fi 7133done 7134 done 7135IFS=$as_save_IFS 7136 7137fi 7138fi 7139ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7140if test -n "$ac_ct_LIPO"; then 7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7142$as_echo "$ac_ct_LIPO" >&6; } 7143else 7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7145$as_echo "no" >&6; } 7146fi 7147 7148 if test "x$ac_ct_LIPO" = x; then 7149 LIPO=":" 7150 else 7151 case $cross_compiling:$ac_tool_warned in 7152yes:) 7153{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7154$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7155ac_tool_warned=yes ;; 7156esac 7157 LIPO=$ac_ct_LIPO 7158 fi 7159else 7160 LIPO="$ac_cv_prog_LIPO" 7161fi 7162 7163 if test -n "$ac_tool_prefix"; then 7164 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7165set dummy ${ac_tool_prefix}otool; ac_word=$2 7166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7167$as_echo_n "checking for $ac_word... " >&6; } 7168if ${ac_cv_prog_OTOOL+:} false; then : 7169 $as_echo_n "(cached) " >&6 7170else 7171 if test -n "$OTOOL"; then 7172 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7173else 7174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7175for as_dir in $PATH 7176do 7177 IFS=$as_save_IFS 7178 test -z "$as_dir" && as_dir=. 7179 for ac_exec_ext in '' $ac_executable_extensions; do 7180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7181 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7183 break 2 7184 fi 7185done 7186 done 7187IFS=$as_save_IFS 7188 7189fi 7190fi 7191OTOOL=$ac_cv_prog_OTOOL 7192if test -n "$OTOOL"; then 7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7194$as_echo "$OTOOL" >&6; } 7195else 7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7197$as_echo "no" >&6; } 7198fi 7199 7200 7201fi 7202if test -z "$ac_cv_prog_OTOOL"; then 7203 ac_ct_OTOOL=$OTOOL 7204 # Extract the first word of "otool", so it can be a program name with args. 7205set dummy otool; ac_word=$2 7206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7207$as_echo_n "checking for $ac_word... " >&6; } 7208if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7209 $as_echo_n "(cached) " >&6 7210else 7211 if test -n "$ac_ct_OTOOL"; then 7212 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7213else 7214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7215for as_dir in $PATH 7216do 7217 IFS=$as_save_IFS 7218 test -z "$as_dir" && as_dir=. 7219 for ac_exec_ext in '' $ac_executable_extensions; do 7220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7221 ac_cv_prog_ac_ct_OTOOL="otool" 7222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7223 break 2 7224 fi 7225done 7226 done 7227IFS=$as_save_IFS 7228 7229fi 7230fi 7231ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7232if test -n "$ac_ct_OTOOL"; then 7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7234$as_echo "$ac_ct_OTOOL" >&6; } 7235else 7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7237$as_echo "no" >&6; } 7238fi 7239 7240 if test "x$ac_ct_OTOOL" = x; then 7241 OTOOL=":" 7242 else 7243 case $cross_compiling:$ac_tool_warned in 7244yes:) 7245{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7246$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7247ac_tool_warned=yes ;; 7248esac 7249 OTOOL=$ac_ct_OTOOL 7250 fi 7251else 7252 OTOOL="$ac_cv_prog_OTOOL" 7253fi 7254 7255 if test -n "$ac_tool_prefix"; then 7256 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7257set dummy ${ac_tool_prefix}otool64; ac_word=$2 7258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7259$as_echo_n "checking for $ac_word... " >&6; } 7260if ${ac_cv_prog_OTOOL64+:} false; then : 7261 $as_echo_n "(cached) " >&6 7262else 7263 if test -n "$OTOOL64"; then 7264 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7265else 7266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7267for as_dir in $PATH 7268do 7269 IFS=$as_save_IFS 7270 test -z "$as_dir" && as_dir=. 7271 for ac_exec_ext in '' $ac_executable_extensions; do 7272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7273 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7275 break 2 7276 fi 7277done 7278 done 7279IFS=$as_save_IFS 7280 7281fi 7282fi 7283OTOOL64=$ac_cv_prog_OTOOL64 7284if test -n "$OTOOL64"; then 7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7286$as_echo "$OTOOL64" >&6; } 7287else 7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7289$as_echo "no" >&6; } 7290fi 7291 7292 7293fi 7294if test -z "$ac_cv_prog_OTOOL64"; then 7295 ac_ct_OTOOL64=$OTOOL64 7296 # Extract the first word of "otool64", so it can be a program name with args. 7297set dummy otool64; ac_word=$2 7298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7299$as_echo_n "checking for $ac_word... " >&6; } 7300if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7301 $as_echo_n "(cached) " >&6 7302else 7303 if test -n "$ac_ct_OTOOL64"; then 7304 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7305else 7306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7307for as_dir in $PATH 7308do 7309 IFS=$as_save_IFS 7310 test -z "$as_dir" && as_dir=. 7311 for ac_exec_ext in '' $ac_executable_extensions; do 7312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7313 ac_cv_prog_ac_ct_OTOOL64="otool64" 7314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7315 break 2 7316 fi 7317done 7318 done 7319IFS=$as_save_IFS 7320 7321fi 7322fi 7323ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7324if test -n "$ac_ct_OTOOL64"; then 7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7326$as_echo "$ac_ct_OTOOL64" >&6; } 7327else 7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7329$as_echo "no" >&6; } 7330fi 7331 7332 if test "x$ac_ct_OTOOL64" = x; then 7333 OTOOL64=":" 7334 else 7335 case $cross_compiling:$ac_tool_warned in 7336yes:) 7337{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7338$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7339ac_tool_warned=yes ;; 7340esac 7341 OTOOL64=$ac_ct_OTOOL64 7342 fi 7343else 7344 OTOOL64="$ac_cv_prog_OTOOL64" 7345fi 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7374$as_echo_n "checking for -single_module linker flag... " >&6; } 7375if ${lt_cv_apple_cc_single_mod+:} false; then : 7376 $as_echo_n "(cached) " >&6 7377else 7378 lt_cv_apple_cc_single_mod=no 7379 if test -z "$LT_MULTI_MODULE"; then 7380 # By default we will add the -single_module flag. You can override 7381 # by either setting the environment variable LT_MULTI_MODULE 7382 # non-empty at configure time, or by adding -multi_module to the 7383 # link flags. 7384 rm -rf libconftest.dylib* 7385 echo "int foo(void){return 1;}" > conftest.c 7386 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7387-dynamiclib -Wl,-single_module conftest.c" >&5 7388 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7389 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7390 _lt_result=$? 7391 # If there is a non-empty error log, and "single_module" 7392 # appears in it, assume the flag caused a linker warning 7393 if test -s conftest.err && $GREP single_module conftest.err; then 7394 cat conftest.err >&5 7395 # Otherwise, if the output was created with a 0 exit code from 7396 # the compiler, it worked. 7397 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7398 lt_cv_apple_cc_single_mod=yes 7399 else 7400 cat conftest.err >&5 7401 fi 7402 rm -rf libconftest.dylib* 7403 rm -f conftest.* 7404 fi 7405fi 7406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7407$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7408 7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7410$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7411if ${lt_cv_ld_exported_symbols_list+:} false; then : 7412 $as_echo_n "(cached) " >&6 7413else 7414 lt_cv_ld_exported_symbols_list=no 7415 save_LDFLAGS=$LDFLAGS 7416 echo "_main" > conftest.sym 7417 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7419/* end confdefs.h. */ 7420 7421int 7422main () 7423{ 7424 7425 ; 7426 return 0; 7427} 7428_ACEOF 7429if ac_fn_c_try_link "$LINENO"; then : 7430 lt_cv_ld_exported_symbols_list=yes 7431else 7432 lt_cv_ld_exported_symbols_list=no 7433fi 7434rm -f core conftest.err conftest.$ac_objext \ 7435 conftest$ac_exeext conftest.$ac_ext 7436 LDFLAGS=$save_LDFLAGS 7437 7438fi 7439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7440$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7441 7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7443$as_echo_n "checking for -force_load linker flag... " >&6; } 7444if ${lt_cv_ld_force_load+:} false; then : 7445 $as_echo_n "(cached) " >&6 7446else 7447 lt_cv_ld_force_load=no 7448 cat > conftest.c << _LT_EOF 7449int forced_loaded() { return 2;} 7450_LT_EOF 7451 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7452 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7453 echo "$AR cru libconftest.a conftest.o" >&5 7454 $AR cru libconftest.a conftest.o 2>&5 7455 echo "$RANLIB libconftest.a" >&5 7456 $RANLIB libconftest.a 2>&5 7457 cat > conftest.c << _LT_EOF 7458int main() { return 0;} 7459_LT_EOF 7460 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7461 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7462 _lt_result=$? 7463 if test -s conftest.err && $GREP force_load conftest.err; then 7464 cat conftest.err >&5 7465 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7466 lt_cv_ld_force_load=yes 7467 else 7468 cat conftest.err >&5 7469 fi 7470 rm -f conftest.err libconftest.a conftest conftest.c 7471 rm -rf conftest.dSYM 7472 7473fi 7474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7475$as_echo "$lt_cv_ld_force_load" >&6; } 7476 case $host_os in 7477 rhapsody* | darwin1.[012]) 7478 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7479 darwin1.*) 7480 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7481 darwin*) # darwin 5.x on 7482 # if running on 10.5 or later, the deployment target defaults 7483 # to the OS version, if on x86, and 10.4, the deployment 7484 # target defaults to 10.4. Don't you love it? 7485 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7486 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7487 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7488 10.[012][,.]*) 7489 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7490 10.*) 7491 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7492 esac 7493 ;; 7494 esac 7495 if test yes = "$lt_cv_apple_cc_single_mod"; then 7496 _lt_dar_single_mod='$single_module' 7497 fi 7498 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7499 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7500 else 7501 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7502 fi 7503 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7504 _lt_dsymutil='~$DSYMUTIL $lib || :' 7505 else 7506 _lt_dsymutil= 7507 fi 7508 ;; 7509 esac 7510 7511# func_munge_path_list VARIABLE PATH 7512# ----------------------------------- 7513# VARIABLE is name of variable containing _space_ separated list of 7514# directories to be munged by the contents of PATH, which is string 7515# having a format: 7516# "DIR[:DIR]:" 7517# string "DIR[ DIR]" will be prepended to VARIABLE 7518# ":DIR[:DIR]" 7519# string "DIR[ DIR]" will be appended to VARIABLE 7520# "DIRP[:DIRP]::[DIRA:]DIRA" 7521# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7522# "DIRA[ DIRA]" will be appended to VARIABLE 7523# "DIR[:DIR]" 7524# VARIABLE will be replaced by "DIR[ DIR]" 7525func_munge_path_list () 7526{ 7527 case x$2 in 7528 x) 7529 ;; 7530 *:) 7531 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7532 ;; 7533 x:*) 7534 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7535 ;; 7536 *::*) 7537 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7538 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7539 ;; 7540 *) 7541 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7542 ;; 7543 esac 7544} 7545 7546ac_ext=c 7547ac_cpp='$CPP $CPPFLAGS' 7548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7550ac_compiler_gnu=$ac_cv_c_compiler_gnu 7551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7552$as_echo_n "checking how to run the C preprocessor... " >&6; } 7553# On Suns, sometimes $CPP names a directory. 7554if test -n "$CPP" && test -d "$CPP"; then 7555 CPP= 7556fi 7557if test -z "$CPP"; then 7558 if ${ac_cv_prog_CPP+:} false; then : 7559 $as_echo_n "(cached) " >&6 7560else 7561 # Double quotes because CPP needs to be expanded 7562 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7563 do 7564 ac_preproc_ok=false 7565for ac_c_preproc_warn_flag in '' yes 7566do 7567 # Use a header file that comes with gcc, so configuring glibc 7568 # with a fresh cross-compiler works. 7569 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7570 # <limits.h> exists even on freestanding compilers. 7571 # On the NeXT, cc -E runs the code through the compiler's parser, 7572 # not just through cpp. "Syntax error" is here to catch this case. 7573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7574/* end confdefs.h. */ 7575#ifdef __STDC__ 7576# include <limits.h> 7577#else 7578# include <assert.h> 7579#endif 7580 Syntax error 7581_ACEOF 7582if ac_fn_c_try_cpp "$LINENO"; then : 7583 7584else 7585 # Broken: fails on valid input. 7586continue 7587fi 7588rm -f conftest.err conftest.i conftest.$ac_ext 7589 7590 # OK, works on sane cases. Now check whether nonexistent headers 7591 # can be detected and how. 7592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7593/* end confdefs.h. */ 7594#include <ac_nonexistent.h> 7595_ACEOF 7596if ac_fn_c_try_cpp "$LINENO"; then : 7597 # Broken: success on invalid input. 7598continue 7599else 7600 # Passes both tests. 7601ac_preproc_ok=: 7602break 7603fi 7604rm -f conftest.err conftest.i conftest.$ac_ext 7605 7606done 7607# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7608rm -f conftest.i conftest.err conftest.$ac_ext 7609if $ac_preproc_ok; then : 7610 break 7611fi 7612 7613 done 7614 ac_cv_prog_CPP=$CPP 7615 7616fi 7617 CPP=$ac_cv_prog_CPP 7618else 7619 ac_cv_prog_CPP=$CPP 7620fi 7621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7622$as_echo "$CPP" >&6; } 7623ac_preproc_ok=false 7624for ac_c_preproc_warn_flag in '' yes 7625do 7626 # Use a header file that comes with gcc, so configuring glibc 7627 # with a fresh cross-compiler works. 7628 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7629 # <limits.h> exists even on freestanding compilers. 7630 # On the NeXT, cc -E runs the code through the compiler's parser, 7631 # not just through cpp. "Syntax error" is here to catch this case. 7632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7633/* end confdefs.h. */ 7634#ifdef __STDC__ 7635# include <limits.h> 7636#else 7637# include <assert.h> 7638#endif 7639 Syntax error 7640_ACEOF 7641if ac_fn_c_try_cpp "$LINENO"; then : 7642 7643else 7644 # Broken: fails on valid input. 7645continue 7646fi 7647rm -f conftest.err conftest.i conftest.$ac_ext 7648 7649 # OK, works on sane cases. Now check whether nonexistent headers 7650 # can be detected and how. 7651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7652/* end confdefs.h. */ 7653#include <ac_nonexistent.h> 7654_ACEOF 7655if ac_fn_c_try_cpp "$LINENO"; then : 7656 # Broken: success on invalid input. 7657continue 7658else 7659 # Passes both tests. 7660ac_preproc_ok=: 7661break 7662fi 7663rm -f conftest.err conftest.i conftest.$ac_ext 7664 7665done 7666# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7667rm -f conftest.i conftest.err conftest.$ac_ext 7668if $ac_preproc_ok; then : 7669 7670else 7671 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7672$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7673as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7674See \`config.log' for more details" "$LINENO" 5; } 7675fi 7676 7677ac_ext=c 7678ac_cpp='$CPP $CPPFLAGS' 7679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7681ac_compiler_gnu=$ac_cv_c_compiler_gnu 7682 7683 7684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7685$as_echo_n "checking for ANSI C header files... " >&6; } 7686if ${ac_cv_header_stdc+:} false; then : 7687 $as_echo_n "(cached) " >&6 7688else 7689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7690/* end confdefs.h. */ 7691#include <stdlib.h> 7692#include <stdarg.h> 7693#include <string.h> 7694#include <float.h> 7695 7696int 7697main () 7698{ 7699 7700 ; 7701 return 0; 7702} 7703_ACEOF 7704if ac_fn_c_try_compile "$LINENO"; then : 7705 ac_cv_header_stdc=yes 7706else 7707 ac_cv_header_stdc=no 7708fi 7709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7710 7711if test $ac_cv_header_stdc = yes; then 7712 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7714/* end confdefs.h. */ 7715#include <string.h> 7716 7717_ACEOF 7718if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7719 $EGREP "memchr" >/dev/null 2>&1; then : 7720 7721else 7722 ac_cv_header_stdc=no 7723fi 7724rm -f conftest* 7725 7726fi 7727 7728if test $ac_cv_header_stdc = yes; then 7729 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7731/* end confdefs.h. */ 7732#include <stdlib.h> 7733 7734_ACEOF 7735if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7736 $EGREP "free" >/dev/null 2>&1; then : 7737 7738else 7739 ac_cv_header_stdc=no 7740fi 7741rm -f conftest* 7742 7743fi 7744 7745if test $ac_cv_header_stdc = yes; then 7746 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7747 if test "$cross_compiling" = yes; then : 7748 : 7749else 7750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7751/* end confdefs.h. */ 7752#include <ctype.h> 7753#include <stdlib.h> 7754#if ((' ' & 0x0FF) == 0x020) 7755# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7756# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7757#else 7758# define ISLOWER(c) \ 7759 (('a' <= (c) && (c) <= 'i') \ 7760 || ('j' <= (c) && (c) <= 'r') \ 7761 || ('s' <= (c) && (c) <= 'z')) 7762# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7763#endif 7764 7765#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7766int 7767main () 7768{ 7769 int i; 7770 for (i = 0; i < 256; i++) 7771 if (XOR (islower (i), ISLOWER (i)) 7772 || toupper (i) != TOUPPER (i)) 7773 return 2; 7774 return 0; 7775} 7776_ACEOF 7777if ac_fn_c_try_run "$LINENO"; then : 7778 7779else 7780 ac_cv_header_stdc=no 7781fi 7782rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7783 conftest.$ac_objext conftest.beam conftest.$ac_ext 7784fi 7785 7786fi 7787fi 7788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7789$as_echo "$ac_cv_header_stdc" >&6; } 7790if test $ac_cv_header_stdc = yes; then 7791 7792$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7793 7794fi 7795 7796# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7797for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7798 inttypes.h stdint.h unistd.h 7799do : 7800 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7801ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7802" 7803if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7804 cat >>confdefs.h <<_ACEOF 7805#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7806_ACEOF 7807 7808fi 7809 7810done 7811 7812 7813for ac_header in dlfcn.h 7814do : 7815 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7816" 7817if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7818 cat >>confdefs.h <<_ACEOF 7819#define HAVE_DLFCN_H 1 7820_ACEOF 7821 7822fi 7823 7824done 7825 7826 7827 7828 7829 7830# Set options 7831 7832 7833 7834 enable_dlopen=no 7835 7836 7837 enable_win32_dll=no 7838 7839 7840 # Check whether --enable-shared was given. 7841if test "${enable_shared+set}" = set; then : 7842 enableval=$enable_shared; p=${PACKAGE-default} 7843 case $enableval in 7844 yes) enable_shared=yes ;; 7845 no) enable_shared=no ;; 7846 *) 7847 enable_shared=no 7848 # Look at the argument we got. We use all the common list separators. 7849 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7850 for pkg in $enableval; do 7851 IFS=$lt_save_ifs 7852 if test "X$pkg" = "X$p"; then 7853 enable_shared=yes 7854 fi 7855 done 7856 IFS=$lt_save_ifs 7857 ;; 7858 esac 7859else 7860 enable_shared=yes 7861fi 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 # Check whether --enable-static was given. 7872if test "${enable_static+set}" = set; then : 7873 enableval=$enable_static; p=${PACKAGE-default} 7874 case $enableval in 7875 yes) enable_static=yes ;; 7876 no) enable_static=no ;; 7877 *) 7878 enable_static=no 7879 # Look at the argument we got. We use all the common list separators. 7880 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7881 for pkg in $enableval; do 7882 IFS=$lt_save_ifs 7883 if test "X$pkg" = "X$p"; then 7884 enable_static=yes 7885 fi 7886 done 7887 IFS=$lt_save_ifs 7888 ;; 7889 esac 7890else 7891 enable_static=yes 7892fi 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903# Check whether --with-pic was given. 7904if test "${with_pic+set}" = set; then : 7905 withval=$with_pic; lt_p=${PACKAGE-default} 7906 case $withval in 7907 yes|no) pic_mode=$withval ;; 7908 *) 7909 pic_mode=default 7910 # Look at the argument we got. We use all the common list separators. 7911 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7912 for lt_pkg in $withval; do 7913 IFS=$lt_save_ifs 7914 if test "X$lt_pkg" = "X$lt_p"; then 7915 pic_mode=yes 7916 fi 7917 done 7918 IFS=$lt_save_ifs 7919 ;; 7920 esac 7921else 7922 pic_mode=default 7923fi 7924 7925 7926 7927 7928 7929 7930 7931 7932 # Check whether --enable-fast-install was given. 7933if test "${enable_fast_install+set}" = set; then : 7934 enableval=$enable_fast_install; p=${PACKAGE-default} 7935 case $enableval in 7936 yes) enable_fast_install=yes ;; 7937 no) enable_fast_install=no ;; 7938 *) 7939 enable_fast_install=no 7940 # Look at the argument we got. We use all the common list separators. 7941 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7942 for pkg in $enableval; do 7943 IFS=$lt_save_ifs 7944 if test "X$pkg" = "X$p"; then 7945 enable_fast_install=yes 7946 fi 7947 done 7948 IFS=$lt_save_ifs 7949 ;; 7950 esac 7951else 7952 enable_fast_install=yes 7953fi 7954 7955 7956 7957 7958 7959 7960 7961 7962 shared_archive_member_spec= 7963case $host,$enable_shared in 7964power*-*-aix[5-9]*,yes) 7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 7966$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 7967 7968# Check whether --with-aix-soname was given. 7969if test "${with_aix_soname+set}" = set; then : 7970 withval=$with_aix_soname; case $withval in 7971 aix|svr4|both) 7972 ;; 7973 *) 7974 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 7975 ;; 7976 esac 7977 lt_cv_with_aix_soname=$with_aix_soname 7978else 7979 if ${lt_cv_with_aix_soname+:} false; then : 7980 $as_echo_n "(cached) " >&6 7981else 7982 lt_cv_with_aix_soname=aix 7983fi 7984 7985 with_aix_soname=$lt_cv_with_aix_soname 7986fi 7987 7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 7989$as_echo "$with_aix_soname" >&6; } 7990 if test aix != "$with_aix_soname"; then 7991 # For the AIX way of multilib, we name the shared archive member 7992 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 7993 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 7994 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 7995 # the AIX toolchain works better with OBJECT_MODE set (default 32). 7996 if test 64 = "${OBJECT_MODE-32}"; then 7997 shared_archive_member_spec=shr_64 7998 else 7999 shared_archive_member_spec=shr 8000 fi 8001 fi 8002 ;; 8003*) 8004 with_aix_soname=aix 8005 ;; 8006esac 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017# This can be used to rebuild libtool when needed 8018LIBTOOL_DEPS=$ltmain 8019 8020# Always use our own libtool. 8021LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052test -z "$LN_S" && LN_S="ln -s" 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067if test -n "${ZSH_VERSION+set}"; then 8068 setopt NO_GLOB_SUBST 8069fi 8070 8071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8072$as_echo_n "checking for objdir... " >&6; } 8073if ${lt_cv_objdir+:} false; then : 8074 $as_echo_n "(cached) " >&6 8075else 8076 rm -f .libs 2>/dev/null 8077mkdir .libs 2>/dev/null 8078if test -d .libs; then 8079 lt_cv_objdir=.libs 8080else 8081 # MS-DOS does not allow filenames that begin with a dot. 8082 lt_cv_objdir=_libs 8083fi 8084rmdir .libs 2>/dev/null 8085fi 8086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8087$as_echo "$lt_cv_objdir" >&6; } 8088objdir=$lt_cv_objdir 8089 8090 8091 8092 8093 8094cat >>confdefs.h <<_ACEOF 8095#define LT_OBJDIR "$lt_cv_objdir/" 8096_ACEOF 8097 8098 8099 8100 8101case $host_os in 8102aix3*) 8103 # AIX sometimes has problems with the GCC collect2 program. For some 8104 # reason, if we set the COLLECT_NAMES environment variable, the problems 8105 # vanish in a puff of smoke. 8106 if test set != "${COLLECT_NAMES+set}"; then 8107 COLLECT_NAMES= 8108 export COLLECT_NAMES 8109 fi 8110 ;; 8111esac 8112 8113# Global variables: 8114ofile=libtool 8115can_build_shared=yes 8116 8117# All known linkers require a '.a' archive for static linking (except MSVC, 8118# which needs '.lib'). 8119libext=a 8120 8121with_gnu_ld=$lt_cv_prog_gnu_ld 8122 8123old_CC=$CC 8124old_CFLAGS=$CFLAGS 8125 8126# Set sane defaults for various variables 8127test -z "$CC" && CC=cc 8128test -z "$LTCC" && LTCC=$CC 8129test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8130test -z "$LD" && LD=ld 8131test -z "$ac_objext" && ac_objext=o 8132 8133func_cc_basename $compiler 8134cc_basename=$func_cc_basename_result 8135 8136 8137# Only perform the check for file, if the check method requires it 8138test -z "$MAGIC_CMD" && MAGIC_CMD=file 8139case $deplibs_check_method in 8140file_magic*) 8141 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8143$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8144if ${lt_cv_path_MAGIC_CMD+:} false; then : 8145 $as_echo_n "(cached) " >&6 8146else 8147 case $MAGIC_CMD in 8148[\\/*] | ?:[\\/]*) 8149 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8150 ;; 8151*) 8152 lt_save_MAGIC_CMD=$MAGIC_CMD 8153 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8154 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8155 for ac_dir in $ac_dummy; do 8156 IFS=$lt_save_ifs 8157 test -z "$ac_dir" && ac_dir=. 8158 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8159 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8160 if test -n "$file_magic_test_file"; then 8161 case $deplibs_check_method in 8162 "file_magic "*) 8163 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8164 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8165 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8166 $EGREP "$file_magic_regex" > /dev/null; then 8167 : 8168 else 8169 cat <<_LT_EOF 1>&2 8170 8171*** Warning: the command libtool uses to detect shared libraries, 8172*** $file_magic_cmd, produces output that libtool cannot recognize. 8173*** The result is that libtool may fail to recognize shared libraries 8174*** as such. This will affect the creation of libtool libraries that 8175*** depend on shared libraries, but programs linked with such libtool 8176*** libraries will work regardless of this problem. Nevertheless, you 8177*** may want to report the problem to your system manager and/or to 8178*** bug-libtool@gnu.org 8179 8180_LT_EOF 8181 fi ;; 8182 esac 8183 fi 8184 break 8185 fi 8186 done 8187 IFS=$lt_save_ifs 8188 MAGIC_CMD=$lt_save_MAGIC_CMD 8189 ;; 8190esac 8191fi 8192 8193MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8194if test -n "$MAGIC_CMD"; then 8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8196$as_echo "$MAGIC_CMD" >&6; } 8197else 8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8199$as_echo "no" >&6; } 8200fi 8201 8202 8203 8204 8205 8206if test -z "$lt_cv_path_MAGIC_CMD"; then 8207 if test -n "$ac_tool_prefix"; then 8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8209$as_echo_n "checking for file... " >&6; } 8210if ${lt_cv_path_MAGIC_CMD+:} false; then : 8211 $as_echo_n "(cached) " >&6 8212else 8213 case $MAGIC_CMD in 8214[\\/*] | ?:[\\/]*) 8215 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8216 ;; 8217*) 8218 lt_save_MAGIC_CMD=$MAGIC_CMD 8219 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8220 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8221 for ac_dir in $ac_dummy; do 8222 IFS=$lt_save_ifs 8223 test -z "$ac_dir" && ac_dir=. 8224 if test -f "$ac_dir/file"; then 8225 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8226 if test -n "$file_magic_test_file"; then 8227 case $deplibs_check_method in 8228 "file_magic "*) 8229 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8230 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8231 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8232 $EGREP "$file_magic_regex" > /dev/null; then 8233 : 8234 else 8235 cat <<_LT_EOF 1>&2 8236 8237*** Warning: the command libtool uses to detect shared libraries, 8238*** $file_magic_cmd, produces output that libtool cannot recognize. 8239*** The result is that libtool may fail to recognize shared libraries 8240*** as such. This will affect the creation of libtool libraries that 8241*** depend on shared libraries, but programs linked with such libtool 8242*** libraries will work regardless of this problem. Nevertheless, you 8243*** may want to report the problem to your system manager and/or to 8244*** bug-libtool@gnu.org 8245 8246_LT_EOF 8247 fi ;; 8248 esac 8249 fi 8250 break 8251 fi 8252 done 8253 IFS=$lt_save_ifs 8254 MAGIC_CMD=$lt_save_MAGIC_CMD 8255 ;; 8256esac 8257fi 8258 8259MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8260if test -n "$MAGIC_CMD"; then 8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8262$as_echo "$MAGIC_CMD" >&6; } 8263else 8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8265$as_echo "no" >&6; } 8266fi 8267 8268 8269 else 8270 MAGIC_CMD=: 8271 fi 8272fi 8273 8274 fi 8275 ;; 8276esac 8277 8278# Use C for the default configuration in the libtool script 8279 8280lt_save_CC=$CC 8281ac_ext=c 8282ac_cpp='$CPP $CPPFLAGS' 8283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8285ac_compiler_gnu=$ac_cv_c_compiler_gnu 8286 8287 8288# Source file extension for C test sources. 8289ac_ext=c 8290 8291# Object file extension for compiled C test sources. 8292objext=o 8293objext=$objext 8294 8295# Code to be used in simple compile tests 8296lt_simple_compile_test_code="int some_variable = 0;" 8297 8298# Code to be used in simple link tests 8299lt_simple_link_test_code='int main(){return(0);}' 8300 8301 8302 8303 8304 8305 8306 8307# If no C compiler was specified, use CC. 8308LTCC=${LTCC-"$CC"} 8309 8310# If no C compiler flags were specified, use CFLAGS. 8311LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8312 8313# Allow CC to be a program name with arguments. 8314compiler=$CC 8315 8316# Save the default compiler, since it gets overwritten when the other 8317# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8318compiler_DEFAULT=$CC 8319 8320# save warnings/boilerplate of simple test code 8321ac_outfile=conftest.$ac_objext 8322echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8323eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8324_lt_compiler_boilerplate=`cat conftest.err` 8325$RM conftest* 8326 8327ac_outfile=conftest.$ac_objext 8328echo "$lt_simple_link_test_code" >conftest.$ac_ext 8329eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8330_lt_linker_boilerplate=`cat conftest.err` 8331$RM -r conftest* 8332 8333 8334if test -n "$compiler"; then 8335 8336lt_prog_compiler_no_builtin_flag= 8337 8338if test yes = "$GCC"; then 8339 case $cc_basename in 8340 nvcc*) 8341 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8342 *) 8343 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8344 esac 8345 8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8347$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8348if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8349 $as_echo_n "(cached) " >&6 8350else 8351 lt_cv_prog_compiler_rtti_exceptions=no 8352 ac_outfile=conftest.$ac_objext 8353 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8354 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8355 # Insert the option either (1) after the last *FLAGS variable, or 8356 # (2) before a word containing "conftest.", or (3) at the end. 8357 # Note that $ac_compile itself does not contain backslashes and begins 8358 # with a dollar sign (not a hyphen), so the echo should work correctly. 8359 # The option is referenced via a variable to avoid confusing sed. 8360 lt_compile=`echo "$ac_compile" | $SED \ 8361 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8362 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8363 -e 's:$: $lt_compiler_flag:'` 8364 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8365 (eval "$lt_compile" 2>conftest.err) 8366 ac_status=$? 8367 cat conftest.err >&5 8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8369 if (exit $ac_status) && test -s "$ac_outfile"; then 8370 # The compiler can only warn and ignore the option if not recognized 8371 # So say no if there are warnings other than the usual output. 8372 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8373 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8374 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8375 lt_cv_prog_compiler_rtti_exceptions=yes 8376 fi 8377 fi 8378 $RM conftest* 8379 8380fi 8381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8382$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8383 8384if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8385 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8386else 8387 : 8388fi 8389 8390fi 8391 8392 8393 8394 8395 8396 8397 lt_prog_compiler_wl= 8398lt_prog_compiler_pic= 8399lt_prog_compiler_static= 8400 8401 8402 if test yes = "$GCC"; then 8403 lt_prog_compiler_wl='-Wl,' 8404 lt_prog_compiler_static='-static' 8405 8406 case $host_os in 8407 aix*) 8408 # All AIX code is PIC. 8409 if test ia64 = "$host_cpu"; then 8410 # AIX 5 now supports IA64 processor 8411 lt_prog_compiler_static='-Bstatic' 8412 fi 8413 lt_prog_compiler_pic='-fPIC' 8414 ;; 8415 8416 amigaos*) 8417 case $host_cpu in 8418 powerpc) 8419 # see comment about AmigaOS4 .so support 8420 lt_prog_compiler_pic='-fPIC' 8421 ;; 8422 m68k) 8423 # FIXME: we need at least 68020 code to build shared libraries, but 8424 # adding the '-m68020' flag to GCC prevents building anything better, 8425 # like '-m68040'. 8426 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8427 ;; 8428 esac 8429 ;; 8430 8431 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8432 # PIC is the default for these OSes. 8433 ;; 8434 8435 mingw* | cygwin* | pw32* | os2* | cegcc*) 8436 # This hack is so that the source file can tell whether it is being 8437 # built for inclusion in a dll (and should export symbols for example). 8438 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8439 # (--disable-auto-import) libraries 8440 lt_prog_compiler_pic='-DDLL_EXPORT' 8441 case $host_os in 8442 os2*) 8443 lt_prog_compiler_static='$wl-static' 8444 ;; 8445 esac 8446 ;; 8447 8448 darwin* | rhapsody*) 8449 # PIC is the default on this platform 8450 # Common symbols not allowed in MH_DYLIB files 8451 lt_prog_compiler_pic='-fno-common' 8452 ;; 8453 8454 haiku*) 8455 # PIC is the default for Haiku. 8456 # The "-static" flag exists, but is broken. 8457 lt_prog_compiler_static= 8458 ;; 8459 8460 hpux*) 8461 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8462 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8463 # sets the default TLS model and affects inlining. 8464 case $host_cpu in 8465 hppa*64*) 8466 # +Z the default 8467 ;; 8468 *) 8469 lt_prog_compiler_pic='-fPIC' 8470 ;; 8471 esac 8472 ;; 8473 8474 interix[3-9]*) 8475 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8476 # Instead, we relocate shared libraries at runtime. 8477 ;; 8478 8479 msdosdjgpp*) 8480 # Just because we use GCC doesn't mean we suddenly get shared libraries 8481 # on systems that don't support them. 8482 lt_prog_compiler_can_build_shared=no 8483 enable_shared=no 8484 ;; 8485 8486 *nto* | *qnx*) 8487 # QNX uses GNU C++, but need to define -shared option too, otherwise 8488 # it will coredump. 8489 lt_prog_compiler_pic='-fPIC -shared' 8490 ;; 8491 8492 sysv4*MP*) 8493 if test -d /usr/nec; then 8494 lt_prog_compiler_pic=-Kconform_pic 8495 fi 8496 ;; 8497 8498 *) 8499 lt_prog_compiler_pic='-fPIC' 8500 ;; 8501 esac 8502 8503 case $cc_basename in 8504 nvcc*) # Cuda Compiler Driver 2.2 8505 lt_prog_compiler_wl='-Xlinker ' 8506 if test -n "$lt_prog_compiler_pic"; then 8507 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8508 fi 8509 ;; 8510 esac 8511 else 8512 # PORTME Check for flag to pass linker flags through the system compiler. 8513 case $host_os in 8514 aix*) 8515 lt_prog_compiler_wl='-Wl,' 8516 if test ia64 = "$host_cpu"; then 8517 # AIX 5 now supports IA64 processor 8518 lt_prog_compiler_static='-Bstatic' 8519 else 8520 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8521 fi 8522 ;; 8523 8524 darwin* | rhapsody*) 8525 # PIC is the default on this platform 8526 # Common symbols not allowed in MH_DYLIB files 8527 lt_prog_compiler_pic='-fno-common' 8528 case $cc_basename in 8529 nagfor*) 8530 # NAG Fortran compiler 8531 lt_prog_compiler_wl='-Wl,-Wl,,' 8532 lt_prog_compiler_pic='-PIC' 8533 lt_prog_compiler_static='-Bstatic' 8534 ;; 8535 esac 8536 ;; 8537 8538 mingw* | cygwin* | pw32* | os2* | cegcc*) 8539 # This hack is so that the source file can tell whether it is being 8540 # built for inclusion in a dll (and should export symbols for example). 8541 lt_prog_compiler_pic='-DDLL_EXPORT' 8542 case $host_os in 8543 os2*) 8544 lt_prog_compiler_static='$wl-static' 8545 ;; 8546 esac 8547 ;; 8548 8549 hpux9* | hpux10* | hpux11*) 8550 lt_prog_compiler_wl='-Wl,' 8551 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8552 # not for PA HP-UX. 8553 case $host_cpu in 8554 hppa*64*|ia64*) 8555 # +Z the default 8556 ;; 8557 *) 8558 lt_prog_compiler_pic='+Z' 8559 ;; 8560 esac 8561 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8562 lt_prog_compiler_static='$wl-a ${wl}archive' 8563 ;; 8564 8565 irix5* | irix6* | nonstopux*) 8566 lt_prog_compiler_wl='-Wl,' 8567 # PIC (with -KPIC) is the default. 8568 lt_prog_compiler_static='-non_shared' 8569 ;; 8570 8571 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8572 case $cc_basename in 8573 # old Intel for x86_64, which still supported -KPIC. 8574 ecc*) 8575 lt_prog_compiler_wl='-Wl,' 8576 lt_prog_compiler_pic='-KPIC' 8577 lt_prog_compiler_static='-static' 8578 ;; 8579 # icc used to be incompatible with GCC. 8580 # ICC 10 doesn't accept -KPIC any more. 8581 icc* | ifort*) 8582 lt_prog_compiler_wl='-Wl,' 8583 lt_prog_compiler_pic='-fPIC' 8584 lt_prog_compiler_static='-static' 8585 ;; 8586 # Lahey Fortran 8.1. 8587 lf95*) 8588 lt_prog_compiler_wl='-Wl,' 8589 lt_prog_compiler_pic='--shared' 8590 lt_prog_compiler_static='--static' 8591 ;; 8592 nagfor*) 8593 # NAG Fortran compiler 8594 lt_prog_compiler_wl='-Wl,-Wl,,' 8595 lt_prog_compiler_pic='-PIC' 8596 lt_prog_compiler_static='-Bstatic' 8597 ;; 8598 tcc*) 8599 # Fabrice Bellard et al's Tiny C Compiler 8600 lt_prog_compiler_wl='-Wl,' 8601 lt_prog_compiler_pic='-fPIC' 8602 lt_prog_compiler_static='-static' 8603 ;; 8604 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8605 # Portland Group compilers (*not* the Pentium gcc compiler, 8606 # which looks to be a dead project) 8607 lt_prog_compiler_wl='-Wl,' 8608 lt_prog_compiler_pic='-fpic' 8609 lt_prog_compiler_static='-Bstatic' 8610 ;; 8611 ccc*) 8612 lt_prog_compiler_wl='-Wl,' 8613 # All Alpha code is PIC. 8614 lt_prog_compiler_static='-non_shared' 8615 ;; 8616 xl* | bgxl* | bgf* | mpixl*) 8617 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8618 lt_prog_compiler_wl='-Wl,' 8619 lt_prog_compiler_pic='-qpic' 8620 lt_prog_compiler_static='-qstaticlink' 8621 ;; 8622 *) 8623 case `$CC -V 2>&1 | sed 5q` in 8624 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8625 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8626 lt_prog_compiler_pic='-KPIC' 8627 lt_prog_compiler_static='-Bstatic' 8628 lt_prog_compiler_wl='' 8629 ;; 8630 *Sun\ F* | *Sun*Fortran*) 8631 lt_prog_compiler_pic='-KPIC' 8632 lt_prog_compiler_static='-Bstatic' 8633 lt_prog_compiler_wl='-Qoption ld ' 8634 ;; 8635 *Sun\ C*) 8636 # Sun C 5.9 8637 lt_prog_compiler_pic='-KPIC' 8638 lt_prog_compiler_static='-Bstatic' 8639 lt_prog_compiler_wl='-Wl,' 8640 ;; 8641 *Intel*\ [CF]*Compiler*) 8642 lt_prog_compiler_wl='-Wl,' 8643 lt_prog_compiler_pic='-fPIC' 8644 lt_prog_compiler_static='-static' 8645 ;; 8646 *Portland\ Group*) 8647 lt_prog_compiler_wl='-Wl,' 8648 lt_prog_compiler_pic='-fpic' 8649 lt_prog_compiler_static='-Bstatic' 8650 ;; 8651 esac 8652 ;; 8653 esac 8654 ;; 8655 8656 newsos6) 8657 lt_prog_compiler_pic='-KPIC' 8658 lt_prog_compiler_static='-Bstatic' 8659 ;; 8660 8661 *nto* | *qnx*) 8662 # QNX uses GNU C++, but need to define -shared option too, otherwise 8663 # it will coredump. 8664 lt_prog_compiler_pic='-fPIC -shared' 8665 ;; 8666 8667 osf3* | osf4* | osf5*) 8668 lt_prog_compiler_wl='-Wl,' 8669 # All OSF/1 code is PIC. 8670 lt_prog_compiler_static='-non_shared' 8671 ;; 8672 8673 rdos*) 8674 lt_prog_compiler_static='-non_shared' 8675 ;; 8676 8677 solaris*) 8678 lt_prog_compiler_pic='-KPIC' 8679 lt_prog_compiler_static='-Bstatic' 8680 case $cc_basename in 8681 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8682 lt_prog_compiler_wl='-Qoption ld ';; 8683 *) 8684 lt_prog_compiler_wl='-Wl,';; 8685 esac 8686 ;; 8687 8688 sunos4*) 8689 lt_prog_compiler_wl='-Qoption ld ' 8690 lt_prog_compiler_pic='-PIC' 8691 lt_prog_compiler_static='-Bstatic' 8692 ;; 8693 8694 sysv4 | sysv4.2uw2* | sysv4.3*) 8695 lt_prog_compiler_wl='-Wl,' 8696 lt_prog_compiler_pic='-KPIC' 8697 lt_prog_compiler_static='-Bstatic' 8698 ;; 8699 8700 sysv4*MP*) 8701 if test -d /usr/nec; then 8702 lt_prog_compiler_pic='-Kconform_pic' 8703 lt_prog_compiler_static='-Bstatic' 8704 fi 8705 ;; 8706 8707 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8708 lt_prog_compiler_wl='-Wl,' 8709 lt_prog_compiler_pic='-KPIC' 8710 lt_prog_compiler_static='-Bstatic' 8711 ;; 8712 8713 unicos*) 8714 lt_prog_compiler_wl='-Wl,' 8715 lt_prog_compiler_can_build_shared=no 8716 ;; 8717 8718 uts4*) 8719 lt_prog_compiler_pic='-pic' 8720 lt_prog_compiler_static='-Bstatic' 8721 ;; 8722 8723 *) 8724 lt_prog_compiler_can_build_shared=no 8725 ;; 8726 esac 8727 fi 8728 8729case $host_os in 8730 # For platforms that do not support PIC, -DPIC is meaningless: 8731 *djgpp*) 8732 lt_prog_compiler_pic= 8733 ;; 8734 *) 8735 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8736 ;; 8737esac 8738 8739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8740$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8741if ${lt_cv_prog_compiler_pic+:} false; then : 8742 $as_echo_n "(cached) " >&6 8743else 8744 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8745fi 8746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8747$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8748lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8749 8750# 8751# Check to make sure the PIC flag actually works. 8752# 8753if test -n "$lt_prog_compiler_pic"; then 8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8755$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8756if ${lt_cv_prog_compiler_pic_works+:} false; then : 8757 $as_echo_n "(cached) " >&6 8758else 8759 lt_cv_prog_compiler_pic_works=no 8760 ac_outfile=conftest.$ac_objext 8761 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8762 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8763 # Insert the option either (1) after the last *FLAGS variable, or 8764 # (2) before a word containing "conftest.", or (3) at the end. 8765 # Note that $ac_compile itself does not contain backslashes and begins 8766 # with a dollar sign (not a hyphen), so the echo should work correctly. 8767 # The option is referenced via a variable to avoid confusing sed. 8768 lt_compile=`echo "$ac_compile" | $SED \ 8769 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8770 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8771 -e 's:$: $lt_compiler_flag:'` 8772 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8773 (eval "$lt_compile" 2>conftest.err) 8774 ac_status=$? 8775 cat conftest.err >&5 8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8777 if (exit $ac_status) && test -s "$ac_outfile"; then 8778 # The compiler can only warn and ignore the option if not recognized 8779 # So say no if there are warnings other than the usual output. 8780 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8781 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8782 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8783 lt_cv_prog_compiler_pic_works=yes 8784 fi 8785 fi 8786 $RM conftest* 8787 8788fi 8789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8790$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8791 8792if test yes = "$lt_cv_prog_compiler_pic_works"; then 8793 case $lt_prog_compiler_pic in 8794 "" | " "*) ;; 8795 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8796 esac 8797else 8798 lt_prog_compiler_pic= 8799 lt_prog_compiler_can_build_shared=no 8800fi 8801 8802fi 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814# 8815# Check to make sure the static flag actually works. 8816# 8817wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8819$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8820if ${lt_cv_prog_compiler_static_works+:} false; then : 8821 $as_echo_n "(cached) " >&6 8822else 8823 lt_cv_prog_compiler_static_works=no 8824 save_LDFLAGS=$LDFLAGS 8825 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8826 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8827 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8828 # The linker can only warn and ignore the option if not recognized 8829 # So say no if there are warnings 8830 if test -s conftest.err; then 8831 # Append any errors to the config.log. 8832 cat conftest.err 1>&5 8833 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8834 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8835 if diff conftest.exp conftest.er2 >/dev/null; then 8836 lt_cv_prog_compiler_static_works=yes 8837 fi 8838 else 8839 lt_cv_prog_compiler_static_works=yes 8840 fi 8841 fi 8842 $RM -r conftest* 8843 LDFLAGS=$save_LDFLAGS 8844 8845fi 8846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8847$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8848 8849if test yes = "$lt_cv_prog_compiler_static_works"; then 8850 : 8851else 8852 lt_prog_compiler_static= 8853fi 8854 8855 8856 8857 8858 8859 8860 8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8862$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8863if ${lt_cv_prog_compiler_c_o+:} false; then : 8864 $as_echo_n "(cached) " >&6 8865else 8866 lt_cv_prog_compiler_c_o=no 8867 $RM -r conftest 2>/dev/null 8868 mkdir conftest 8869 cd conftest 8870 mkdir out 8871 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8872 8873 lt_compiler_flag="-o out/conftest2.$ac_objext" 8874 # Insert the option either (1) after the last *FLAGS variable, or 8875 # (2) before a word containing "conftest.", or (3) at the end. 8876 # Note that $ac_compile itself does not contain backslashes and begins 8877 # with a dollar sign (not a hyphen), so the echo should work correctly. 8878 lt_compile=`echo "$ac_compile" | $SED \ 8879 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8880 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8881 -e 's:$: $lt_compiler_flag:'` 8882 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8883 (eval "$lt_compile" 2>out/conftest.err) 8884 ac_status=$? 8885 cat out/conftest.err >&5 8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8887 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8888 then 8889 # The compiler can only warn and ignore the option if not recognized 8890 # So say no if there are warnings 8891 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8892 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8893 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8894 lt_cv_prog_compiler_c_o=yes 8895 fi 8896 fi 8897 chmod u+w . 2>&5 8898 $RM conftest* 8899 # SGI C++ compiler will create directory out/ii_files/ for 8900 # template instantiation 8901 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8902 $RM out/* && rmdir out 8903 cd .. 8904 $RM -r conftest 8905 $RM conftest* 8906 8907fi 8908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8909$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8910 8911 8912 8913 8914 8915 8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8917$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8918if ${lt_cv_prog_compiler_c_o+:} false; then : 8919 $as_echo_n "(cached) " >&6 8920else 8921 lt_cv_prog_compiler_c_o=no 8922 $RM -r conftest 2>/dev/null 8923 mkdir conftest 8924 cd conftest 8925 mkdir out 8926 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8927 8928 lt_compiler_flag="-o out/conftest2.$ac_objext" 8929 # Insert the option either (1) after the last *FLAGS variable, or 8930 # (2) before a word containing "conftest.", or (3) at the end. 8931 # Note that $ac_compile itself does not contain backslashes and begins 8932 # with a dollar sign (not a hyphen), so the echo should work correctly. 8933 lt_compile=`echo "$ac_compile" | $SED \ 8934 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8935 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8936 -e 's:$: $lt_compiler_flag:'` 8937 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8938 (eval "$lt_compile" 2>out/conftest.err) 8939 ac_status=$? 8940 cat out/conftest.err >&5 8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8942 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8943 then 8944 # The compiler can only warn and ignore the option if not recognized 8945 # So say no if there are warnings 8946 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8947 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8948 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8949 lt_cv_prog_compiler_c_o=yes 8950 fi 8951 fi 8952 chmod u+w . 2>&5 8953 $RM conftest* 8954 # SGI C++ compiler will create directory out/ii_files/ for 8955 # template instantiation 8956 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8957 $RM out/* && rmdir out 8958 cd .. 8959 $RM -r conftest 8960 $RM conftest* 8961 8962fi 8963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8964$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8965 8966 8967 8968 8969hard_links=nottested 8970if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 8971 # do not overwrite the value of need_locks provided by the user 8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8973$as_echo_n "checking if we can lock with hard links... " >&6; } 8974 hard_links=yes 8975 $RM conftest* 8976 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8977 touch conftest.a 8978 ln conftest.a conftest.b 2>&5 || hard_links=no 8979 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8981$as_echo "$hard_links" >&6; } 8982 if test no = "$hard_links"; then 8983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 8984$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 8985 need_locks=warn 8986 fi 8987else 8988 need_locks=no 8989fi 8990 8991 8992 8993 8994 8995 8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8997$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8998 8999 runpath_var= 9000 allow_undefined_flag= 9001 always_export_symbols=no 9002 archive_cmds= 9003 archive_expsym_cmds= 9004 compiler_needs_object=no 9005 enable_shared_with_static_runtimes=no 9006 export_dynamic_flag_spec= 9007 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9008 hardcode_automatic=no 9009 hardcode_direct=no 9010 hardcode_direct_absolute=no 9011 hardcode_libdir_flag_spec= 9012 hardcode_libdir_separator= 9013 hardcode_minus_L=no 9014 hardcode_shlibpath_var=unsupported 9015 inherit_rpath=no 9016 link_all_deplibs=unknown 9017 module_cmds= 9018 module_expsym_cmds= 9019 old_archive_from_new_cmds= 9020 old_archive_from_expsyms_cmds= 9021 thread_safe_flag_spec= 9022 whole_archive_flag_spec= 9023 # include_expsyms should be a list of space-separated symbols to be *always* 9024 # included in the symbol list 9025 include_expsyms= 9026 # exclude_expsyms can be an extended regexp of symbols to exclude 9027 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9028 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9029 # as well as any symbol that contains 'd'. 9030 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9031 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9032 # platforms (ab)use it in PIC code, but their linkers get confused if 9033 # the symbol is explicitly referenced. Since portable code cannot 9034 # rely on this symbol name, it's probably fine to never include it in 9035 # preloaded symbol tables. 9036 # Exclude shared library initialization/finalization symbols. 9037 extract_expsyms_cmds= 9038 9039 case $host_os in 9040 cygwin* | mingw* | pw32* | cegcc*) 9041 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9042 # When not using gcc, we currently assume that we are using 9043 # Microsoft Visual C++. 9044 if test yes != "$GCC"; then 9045 with_gnu_ld=no 9046 fi 9047 ;; 9048 interix*) 9049 # we just hope/assume this is gcc and not c89 (= MSVC++) 9050 with_gnu_ld=yes 9051 ;; 9052 openbsd* | bitrig*) 9053 with_gnu_ld=no 9054 ;; 9055 esac 9056 9057 ld_shlibs=yes 9058 9059 # On some targets, GNU ld is compatible enough with the native linker 9060 # that we're better off using the native interface for both. 9061 lt_use_gnu_ld_interface=no 9062 if test yes = "$with_gnu_ld"; then 9063 case $host_os in 9064 aix*) 9065 # The AIX port of GNU ld has always aspired to compatibility 9066 # with the native linker. However, as the warning in the GNU ld 9067 # block says, versions before 2.19.5* couldn't really create working 9068 # shared libraries, regardless of the interface used. 9069 case `$LD -v 2>&1` in 9070 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9071 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9072 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9073 *) 9074 lt_use_gnu_ld_interface=yes 9075 ;; 9076 esac 9077 ;; 9078 *) 9079 lt_use_gnu_ld_interface=yes 9080 ;; 9081 esac 9082 fi 9083 9084 if test yes = "$lt_use_gnu_ld_interface"; then 9085 # If archive_cmds runs LD, not CC, wlarc should be empty 9086 wlarc='$wl' 9087 9088 # Set some defaults for GNU ld with shared library support. These 9089 # are reset later if shared libraries are not supported. Putting them 9090 # here allows them to be overridden if necessary. 9091 runpath_var=LD_RUN_PATH 9092 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9093 export_dynamic_flag_spec='$wl--export-dynamic' 9094 # ancient GNU ld didn't support --whole-archive et. al. 9095 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9096 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9097 else 9098 whole_archive_flag_spec= 9099 fi 9100 supports_anon_versioning=no 9101 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9102 *GNU\ gold*) supports_anon_versioning=yes ;; 9103 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9104 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9105 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9106 *\ 2.11.*) ;; # other 2.11 versions 9107 *) supports_anon_versioning=yes ;; 9108 esac 9109 9110 # See if GNU ld supports shared libraries. 9111 case $host_os in 9112 aix[3-9]*) 9113 # On AIX/PPC, the GNU linker is very broken 9114 if test ia64 != "$host_cpu"; then 9115 ld_shlibs=no 9116 cat <<_LT_EOF 1>&2 9117 9118*** Warning: the GNU linker, at least up to release 2.19, is reported 9119*** to be unable to reliably create shared libraries on AIX. 9120*** Therefore, libtool is disabling shared libraries support. If you 9121*** really care for shared libraries, you may want to install binutils 9122*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9123*** You will then need to restart the configuration process. 9124 9125_LT_EOF 9126 fi 9127 ;; 9128 9129 amigaos*) 9130 case $host_cpu in 9131 powerpc) 9132 # see comment about AmigaOS4 .so support 9133 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9134 archive_expsym_cmds='' 9135 ;; 9136 m68k) 9137 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)' 9138 hardcode_libdir_flag_spec='-L$libdir' 9139 hardcode_minus_L=yes 9140 ;; 9141 esac 9142 ;; 9143 9144 beos*) 9145 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9146 allow_undefined_flag=unsupported 9147 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9148 # support --undefined. This deserves some investigation. FIXME 9149 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9150 else 9151 ld_shlibs=no 9152 fi 9153 ;; 9154 9155 cygwin* | mingw* | pw32* | cegcc*) 9156 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9157 # as there is no search path for DLLs. 9158 hardcode_libdir_flag_spec='-L$libdir' 9159 export_dynamic_flag_spec='$wl--export-all-symbols' 9160 allow_undefined_flag=unsupported 9161 always_export_symbols=no 9162 enable_shared_with_static_runtimes=yes 9163 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' 9164 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9165 9166 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9167 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9168 # If the export-symbols file already is a .def file, use it as 9169 # is; otherwise, prepend EXPORTS... 9170 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9171 cp $export_symbols $output_objdir/$soname.def; 9172 else 9173 echo EXPORTS > $output_objdir/$soname.def; 9174 cat $export_symbols >> $output_objdir/$soname.def; 9175 fi~ 9176 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9177 else 9178 ld_shlibs=no 9179 fi 9180 ;; 9181 9182 haiku*) 9183 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9184 link_all_deplibs=yes 9185 ;; 9186 9187 os2*) 9188 hardcode_libdir_flag_spec='-L$libdir' 9189 hardcode_minus_L=yes 9190 allow_undefined_flag=unsupported 9191 shrext_cmds=.dll 9192 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9193 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9194 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9195 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9196 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $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 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9200 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9201 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9202 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9203 prefix_cmds="$SED"~ 9204 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9205 prefix_cmds="$prefix_cmds -e 1d"; 9206 fi~ 9207 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9208 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9209 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9210 emximp -o $lib $output_objdir/$libname.def' 9211 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9212 enable_shared_with_static_runtimes=yes 9213 ;; 9214 9215 interix[3-9]*) 9216 hardcode_direct=no 9217 hardcode_shlibpath_var=no 9218 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9219 export_dynamic_flag_spec='$wl-E' 9220 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9221 # Instead, shared libraries are loaded at an image base (0x10000000 by 9222 # default) and relocated if they conflict, which is a slow very memory 9223 # consuming and fragmenting process. To avoid this, we pick a random, 9224 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9225 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9226 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9227 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' 9228 ;; 9229 9230 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9231 tmp_diet=no 9232 if test linux-dietlibc = "$host_os"; then 9233 case $cc_basename in 9234 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9235 esac 9236 fi 9237 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9238 && test no = "$tmp_diet" 9239 then 9240 tmp_addflag=' $pic_flag' 9241 tmp_sharedflag='-shared' 9242 case $cc_basename,$host_cpu in 9243 pgcc*) # Portland Group C compiler 9244 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' 9245 tmp_addflag=' $pic_flag' 9246 ;; 9247 pgf77* | pgf90* | pgf95* | pgfortran*) 9248 # Portland Group f77 and f90 compilers 9249 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' 9250 tmp_addflag=' $pic_flag -Mnomain' ;; 9251 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9252 tmp_addflag=' -i_dynamic' ;; 9253 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9254 tmp_addflag=' -i_dynamic -nofor_main' ;; 9255 ifc* | ifort*) # Intel Fortran compiler 9256 tmp_addflag=' -nofor_main' ;; 9257 lf95*) # Lahey Fortran 8.1 9258 whole_archive_flag_spec= 9259 tmp_sharedflag='--shared' ;; 9260 nagfor*) # NAGFOR 5.3 9261 tmp_sharedflag='-Wl,-shared' ;; 9262 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9263 tmp_sharedflag='-qmkshrobj' 9264 tmp_addflag= ;; 9265 nvcc*) # Cuda Compiler Driver 2.2 9266 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' 9267 compiler_needs_object=yes 9268 ;; 9269 esac 9270 case `$CC -V 2>&1 | sed 5q` in 9271 *Sun\ C*) # Sun C 5.9 9272 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' 9273 compiler_needs_object=yes 9274 tmp_sharedflag='-G' ;; 9275 *Sun\ F*) # Sun Fortran 8.3 9276 tmp_sharedflag='-G' ;; 9277 esac 9278 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9279 9280 if test yes = "$supports_anon_versioning"; then 9281 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9282 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9283 echo "local: *; };" >> $output_objdir/$libname.ver~ 9284 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9285 fi 9286 9287 case $cc_basename in 9288 tcc*) 9289 export_dynamic_flag_spec='-rdynamic' 9290 ;; 9291 xlf* | bgf* | bgxlf* | mpixlf*) 9292 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9293 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9294 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9295 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9296 if test yes = "$supports_anon_versioning"; then 9297 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9298 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9299 echo "local: *; };" >> $output_objdir/$libname.ver~ 9300 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9301 fi 9302 ;; 9303 esac 9304 else 9305 ld_shlibs=no 9306 fi 9307 ;; 9308 9309 netbsd*) 9310 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9311 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9312 wlarc= 9313 else 9314 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9315 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9316 fi 9317 ;; 9318 9319 solaris*) 9320 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9321 ld_shlibs=no 9322 cat <<_LT_EOF 1>&2 9323 9324*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9325*** create shared libraries on Solaris systems. Therefore, libtool 9326*** is disabling shared libraries support. We urge you to upgrade GNU 9327*** binutils to release 2.9.1 or newer. Another option is to modify 9328*** your PATH or compiler configuration so that the native linker is 9329*** used, and then restart. 9330 9331_LT_EOF 9332 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9333 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9334 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9335 else 9336 ld_shlibs=no 9337 fi 9338 ;; 9339 9340 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9341 case `$LD -v 2>&1` in 9342 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9343 ld_shlibs=no 9344 cat <<_LT_EOF 1>&2 9345 9346*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9347*** reliably create shared libraries on SCO systems. Therefore, libtool 9348*** is disabling shared libraries support. We urge you to upgrade GNU 9349*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9350*** your PATH or compiler configuration so that the native linker is 9351*** used, and then restart. 9352 9353_LT_EOF 9354 ;; 9355 *) 9356 # For security reasons, it is highly recommended that you always 9357 # use absolute paths for naming shared libraries, and exclude the 9358 # DT_RUNPATH tag from executables and libraries. But doing so 9359 # requires that you compile everything twice, which is a pain. 9360 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9361 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9362 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9363 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9364 else 9365 ld_shlibs=no 9366 fi 9367 ;; 9368 esac 9369 ;; 9370 9371 sunos4*) 9372 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9373 wlarc= 9374 hardcode_direct=yes 9375 hardcode_shlibpath_var=no 9376 ;; 9377 9378 *) 9379 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9380 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9381 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9382 else 9383 ld_shlibs=no 9384 fi 9385 ;; 9386 esac 9387 9388 if test no = "$ld_shlibs"; then 9389 runpath_var= 9390 hardcode_libdir_flag_spec= 9391 export_dynamic_flag_spec= 9392 whole_archive_flag_spec= 9393 fi 9394 else 9395 # PORTME fill in a description of your system's linker (not GNU ld) 9396 case $host_os in 9397 aix3*) 9398 allow_undefined_flag=unsupported 9399 always_export_symbols=yes 9400 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' 9401 # Note: this linker hardcodes the directories in LIBPATH if there 9402 # are no directories specified by -L. 9403 hardcode_minus_L=yes 9404 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9405 # Neither direct hardcoding nor static linking is supported with a 9406 # broken collect2. 9407 hardcode_direct=unsupported 9408 fi 9409 ;; 9410 9411 aix[4-9]*) 9412 if test ia64 = "$host_cpu"; then 9413 # On IA64, the linker does run time linking by default, so we don't 9414 # have to do anything special. 9415 aix_use_runtimelinking=no 9416 exp_sym_flag='-Bexport' 9417 no_entry_flag= 9418 else 9419 # If we're using GNU nm, then we don't want the "-C" option. 9420 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9421 # Without the "-l" option, or with the "-B" option, AIX nm treats 9422 # weak defined symbols like other global defined symbols, whereas 9423 # GNU nm marks them as "W". 9424 # While the 'weak' keyword is ignored in the Export File, we need 9425 # it in the Import File for the 'aix-soname' feature, so we have 9426 # to replace the "-B" option with "-P" for AIX nm. 9427 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9428 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' 9429 else 9430 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' 9431 fi 9432 aix_use_runtimelinking=no 9433 9434 # Test if we are trying to use run time linking or normal 9435 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9436 # have runtime linking enabled, and use it for executables. 9437 # For shared libraries, we enable/disable runtime linking 9438 # depending on the kind of the shared library created - 9439 # when "with_aix_soname,aix_use_runtimelinking" is: 9440 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9441 # "aix,yes" lib.so shared, rtl:yes, for executables 9442 # lib.a static archive 9443 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9444 # lib.a(lib.so.V) shared, rtl:no, for executables 9445 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9446 # lib.a(lib.so.V) shared, rtl:no 9447 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9448 # lib.a static archive 9449 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9450 for ld_flag in $LDFLAGS; do 9451 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9452 aix_use_runtimelinking=yes 9453 break 9454 fi 9455 done 9456 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9457 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9458 # so we don't have lib.a shared libs to link our executables. 9459 # We have to force runtime linking in this case. 9460 aix_use_runtimelinking=yes 9461 LDFLAGS="$LDFLAGS -Wl,-brtl" 9462 fi 9463 ;; 9464 esac 9465 9466 exp_sym_flag='-bexport' 9467 no_entry_flag='-bnoentry' 9468 fi 9469 9470 # When large executables or shared objects are built, AIX ld can 9471 # have problems creating the table of contents. If linking a library 9472 # or program results in "error TOC overflow" add -mminimal-toc to 9473 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9474 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9475 9476 archive_cmds='' 9477 hardcode_direct=yes 9478 hardcode_direct_absolute=yes 9479 hardcode_libdir_separator=':' 9480 link_all_deplibs=yes 9481 file_list_spec='$wl-f,' 9482 case $with_aix_soname,$aix_use_runtimelinking in 9483 aix,*) ;; # traditional, no import file 9484 svr4,* | *,yes) # use import file 9485 # The Import File defines what to hardcode. 9486 hardcode_direct=no 9487 hardcode_direct_absolute=no 9488 ;; 9489 esac 9490 9491 if test yes = "$GCC"; then 9492 case $host_os in aix4.[012]|aix4.[012].*) 9493 # We only want to do this on AIX 4.2 and lower, the check 9494 # below for broken collect2 doesn't work under 4.3+ 9495 collect2name=`$CC -print-prog-name=collect2` 9496 if test -f "$collect2name" && 9497 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9498 then 9499 # We have reworked collect2 9500 : 9501 else 9502 # We have old collect2 9503 hardcode_direct=unsupported 9504 # It fails to find uninstalled libraries when the uninstalled 9505 # path is not listed in the libpath. Setting hardcode_minus_L 9506 # to unsupported forces relinking 9507 hardcode_minus_L=yes 9508 hardcode_libdir_flag_spec='-L$libdir' 9509 hardcode_libdir_separator= 9510 fi 9511 ;; 9512 esac 9513 shared_flag='-shared' 9514 if test yes = "$aix_use_runtimelinking"; then 9515 shared_flag="$shared_flag "'$wl-G' 9516 fi 9517 # Need to ensure runtime linking is disabled for the traditional 9518 # shared library, or the linker may eventually find shared libraries 9519 # /with/ Import File - we do not want to mix them. 9520 shared_flag_aix='-shared' 9521 shared_flag_svr4='-shared $wl-G' 9522 else 9523 # not using gcc 9524 if test ia64 = "$host_cpu"; then 9525 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9526 # chokes on -Wl,-G. The following line is correct: 9527 shared_flag='-G' 9528 else 9529 if test yes = "$aix_use_runtimelinking"; then 9530 shared_flag='$wl-G' 9531 else 9532 shared_flag='$wl-bM:SRE' 9533 fi 9534 shared_flag_aix='$wl-bM:SRE' 9535 shared_flag_svr4='$wl-G' 9536 fi 9537 fi 9538 9539 export_dynamic_flag_spec='$wl-bexpall' 9540 # It seems that -bexpall does not export symbols beginning with 9541 # underscore (_), so it is better to generate a list of symbols to export. 9542 always_export_symbols=yes 9543 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9544 # Warning - without using the other runtime loading flags (-brtl), 9545 # -berok will link without error, but may produce a broken library. 9546 allow_undefined_flag='-berok' 9547 # Determine the default libpath from the value encoded in an 9548 # empty executable. 9549 if test set = "${lt_cv_aix_libpath+set}"; then 9550 aix_libpath=$lt_cv_aix_libpath 9551else 9552 if ${lt_cv_aix_libpath_+:} false; then : 9553 $as_echo_n "(cached) " >&6 9554else 9555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9556/* end confdefs.h. */ 9557 9558int 9559main () 9560{ 9561 9562 ; 9563 return 0; 9564} 9565_ACEOF 9566if ac_fn_c_try_link "$LINENO"; then : 9567 9568 lt_aix_libpath_sed=' 9569 /Import File Strings/,/^$/ { 9570 /^0/ { 9571 s/^0 *\([^ ]*\) *$/\1/ 9572 p 9573 } 9574 }' 9575 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9576 # Check for a 64-bit object if we didn't find anything. 9577 if test -z "$lt_cv_aix_libpath_"; then 9578 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9579 fi 9580fi 9581rm -f core conftest.err conftest.$ac_objext \ 9582 conftest$ac_exeext conftest.$ac_ext 9583 if test -z "$lt_cv_aix_libpath_"; then 9584 lt_cv_aix_libpath_=/usr/lib:/lib 9585 fi 9586 9587fi 9588 9589 aix_libpath=$lt_cv_aix_libpath_ 9590fi 9591 9592 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9593 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 9594 else 9595 if test ia64 = "$host_cpu"; then 9596 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9597 allow_undefined_flag="-z nodefs" 9598 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" 9599 else 9600 # Determine the default libpath from the value encoded in an 9601 # empty executable. 9602 if test set = "${lt_cv_aix_libpath+set}"; then 9603 aix_libpath=$lt_cv_aix_libpath 9604else 9605 if ${lt_cv_aix_libpath_+:} false; then : 9606 $as_echo_n "(cached) " >&6 9607else 9608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9609/* end confdefs.h. */ 9610 9611int 9612main () 9613{ 9614 9615 ; 9616 return 0; 9617} 9618_ACEOF 9619if ac_fn_c_try_link "$LINENO"; then : 9620 9621 lt_aix_libpath_sed=' 9622 /Import File Strings/,/^$/ { 9623 /^0/ { 9624 s/^0 *\([^ ]*\) *$/\1/ 9625 p 9626 } 9627 }' 9628 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9629 # Check for a 64-bit object if we didn't find anything. 9630 if test -z "$lt_cv_aix_libpath_"; then 9631 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9632 fi 9633fi 9634rm -f core conftest.err conftest.$ac_objext \ 9635 conftest$ac_exeext conftest.$ac_ext 9636 if test -z "$lt_cv_aix_libpath_"; then 9637 lt_cv_aix_libpath_=/usr/lib:/lib 9638 fi 9639 9640fi 9641 9642 aix_libpath=$lt_cv_aix_libpath_ 9643fi 9644 9645 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9646 # Warning - without using the other run time loading flags, 9647 # -berok will link without error, but may produce a broken library. 9648 no_undefined_flag=' $wl-bernotok' 9649 allow_undefined_flag=' $wl-berok' 9650 if test yes = "$with_gnu_ld"; then 9651 # We only use this code for GNU lds that support --whole-archive. 9652 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9653 else 9654 # Exported symbols can be pulled into shared objects from archives 9655 whole_archive_flag_spec='$convenience' 9656 fi 9657 archive_cmds_need_lc=yes 9658 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9659 # -brtl affects multiple linker settings, -berok does not and is overridden later 9660 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9661 if test svr4 != "$with_aix_soname"; then 9662 # This is similar to how AIX traditionally builds its shared libraries. 9663 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' 9664 fi 9665 if test aix != "$with_aix_soname"; then 9666 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' 9667 else 9668 # used by -dlpreopen to get the symbols 9669 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9670 fi 9671 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9672 fi 9673 fi 9674 ;; 9675 9676 amigaos*) 9677 case $host_cpu in 9678 powerpc) 9679 # see comment about AmigaOS4 .so support 9680 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9681 archive_expsym_cmds='' 9682 ;; 9683 m68k) 9684 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)' 9685 hardcode_libdir_flag_spec='-L$libdir' 9686 hardcode_minus_L=yes 9687 ;; 9688 esac 9689 ;; 9690 9691 bsdi[45]*) 9692 export_dynamic_flag_spec=-rdynamic 9693 ;; 9694 9695 cygwin* | mingw* | pw32* | cegcc*) 9696 # When not using gcc, we currently assume that we are using 9697 # Microsoft Visual C++. 9698 # hardcode_libdir_flag_spec is actually meaningless, as there is 9699 # no search path for DLLs. 9700 case $cc_basename in 9701 cl*) 9702 # Native MSVC 9703 hardcode_libdir_flag_spec=' ' 9704 allow_undefined_flag=unsupported 9705 always_export_symbols=yes 9706 file_list_spec='@' 9707 # Tell ltmain to make .lib files, not .a files. 9708 libext=lib 9709 # Tell ltmain to make .dll files, not .so files. 9710 shrext_cmds=.dll 9711 # FIXME: Setting linknames here is a bad hack. 9712 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9713 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9714 cp "$export_symbols" "$output_objdir/$soname.def"; 9715 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9716 else 9717 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9718 fi~ 9719 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9720 linknames=' 9721 # The linker will not automatically build a static lib if we build a DLL. 9722 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9723 enable_shared_with_static_runtimes=yes 9724 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9725 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9726 # Don't use ranlib 9727 old_postinstall_cmds='chmod 644 $oldlib' 9728 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9729 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9730 case $lt_outputfile in 9731 *.exe|*.EXE) ;; 9732 *) 9733 lt_outputfile=$lt_outputfile.exe 9734 lt_tool_outputfile=$lt_tool_outputfile.exe 9735 ;; 9736 esac~ 9737 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9738 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9739 $RM "$lt_outputfile.manifest"; 9740 fi' 9741 ;; 9742 *) 9743 # Assume MSVC wrapper 9744 hardcode_libdir_flag_spec=' ' 9745 allow_undefined_flag=unsupported 9746 # Tell ltmain to make .lib files, not .a files. 9747 libext=lib 9748 # Tell ltmain to make .dll files, not .so files. 9749 shrext_cmds=.dll 9750 # FIXME: Setting linknames here is a bad hack. 9751 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9752 # The linker will automatically build a .lib file if we build a DLL. 9753 old_archive_from_new_cmds='true' 9754 # FIXME: Should let the user specify the lib program. 9755 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9756 enable_shared_with_static_runtimes=yes 9757 ;; 9758 esac 9759 ;; 9760 9761 darwin* | rhapsody*) 9762 9763 9764 archive_cmds_need_lc=no 9765 hardcode_direct=no 9766 hardcode_automatic=yes 9767 hardcode_shlibpath_var=unsupported 9768 if test yes = "$lt_cv_ld_force_load"; then 9769 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\"`' 9770 9771 else 9772 whole_archive_flag_spec='' 9773 fi 9774 link_all_deplibs=yes 9775 allow_undefined_flag=$_lt_dar_allow_undefined 9776 case $cc_basename in 9777 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9778 *) _lt_dar_can_shared=$GCC ;; 9779 esac 9780 if test yes = "$_lt_dar_can_shared"; then 9781 output_verbose_link_cmd=func_echo_all 9782 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9783 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9784 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" 9785 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" 9786 9787 else 9788 ld_shlibs=no 9789 fi 9790 9791 ;; 9792 9793 dgux*) 9794 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9795 hardcode_libdir_flag_spec='-L$libdir' 9796 hardcode_shlibpath_var=no 9797 ;; 9798 9799 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9800 # support. Future versions do this automatically, but an explicit c++rt0.o 9801 # does not break anything, and helps significantly (at the cost of a little 9802 # extra space). 9803 freebsd2.2*) 9804 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9805 hardcode_libdir_flag_spec='-R$libdir' 9806 hardcode_direct=yes 9807 hardcode_shlibpath_var=no 9808 ;; 9809 9810 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9811 freebsd2.*) 9812 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9813 hardcode_direct=yes 9814 hardcode_minus_L=yes 9815 hardcode_shlibpath_var=no 9816 ;; 9817 9818 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9819 freebsd* | dragonfly*) 9820 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9821 hardcode_libdir_flag_spec='-R$libdir' 9822 hardcode_direct=yes 9823 hardcode_shlibpath_var=no 9824 ;; 9825 9826 hpux9*) 9827 if test yes = "$GCC"; then 9828 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' 9829 else 9830 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' 9831 fi 9832 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9833 hardcode_libdir_separator=: 9834 hardcode_direct=yes 9835 9836 # hardcode_minus_L: Not really in the search PATH, 9837 # but as the default location of the library. 9838 hardcode_minus_L=yes 9839 export_dynamic_flag_spec='$wl-E' 9840 ;; 9841 9842 hpux10*) 9843 if test yes,no = "$GCC,$with_gnu_ld"; then 9844 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9845 else 9846 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9847 fi 9848 if test no = "$with_gnu_ld"; then 9849 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9850 hardcode_libdir_separator=: 9851 hardcode_direct=yes 9852 hardcode_direct_absolute=yes 9853 export_dynamic_flag_spec='$wl-E' 9854 # hardcode_minus_L: Not really in the search PATH, 9855 # but as the default location of the library. 9856 hardcode_minus_L=yes 9857 fi 9858 ;; 9859 9860 hpux11*) 9861 if test yes,no = "$GCC,$with_gnu_ld"; then 9862 case $host_cpu in 9863 hppa*64*) 9864 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9865 ;; 9866 ia64*) 9867 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9868 ;; 9869 *) 9870 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9871 ;; 9872 esac 9873 else 9874 case $host_cpu in 9875 hppa*64*) 9876 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9877 ;; 9878 ia64*) 9879 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9880 ;; 9881 *) 9882 9883 # Older versions of the 11.00 compiler do not understand -b yet 9884 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9886$as_echo_n "checking if $CC understands -b... " >&6; } 9887if ${lt_cv_prog_compiler__b+:} false; then : 9888 $as_echo_n "(cached) " >&6 9889else 9890 lt_cv_prog_compiler__b=no 9891 save_LDFLAGS=$LDFLAGS 9892 LDFLAGS="$LDFLAGS -b" 9893 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9894 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9895 # The linker can only warn and ignore the option if not recognized 9896 # So say no if there are warnings 9897 if test -s conftest.err; then 9898 # Append any errors to the config.log. 9899 cat conftest.err 1>&5 9900 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9901 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9902 if diff conftest.exp conftest.er2 >/dev/null; then 9903 lt_cv_prog_compiler__b=yes 9904 fi 9905 else 9906 lt_cv_prog_compiler__b=yes 9907 fi 9908 fi 9909 $RM -r conftest* 9910 LDFLAGS=$save_LDFLAGS 9911 9912fi 9913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9914$as_echo "$lt_cv_prog_compiler__b" >&6; } 9915 9916if test yes = "$lt_cv_prog_compiler__b"; then 9917 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9918else 9919 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9920fi 9921 9922 ;; 9923 esac 9924 fi 9925 if test no = "$with_gnu_ld"; then 9926 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9927 hardcode_libdir_separator=: 9928 9929 case $host_cpu in 9930 hppa*64*|ia64*) 9931 hardcode_direct=no 9932 hardcode_shlibpath_var=no 9933 ;; 9934 *) 9935 hardcode_direct=yes 9936 hardcode_direct_absolute=yes 9937 export_dynamic_flag_spec='$wl-E' 9938 9939 # hardcode_minus_L: Not really in the search PATH, 9940 # but as the default location of the library. 9941 hardcode_minus_L=yes 9942 ;; 9943 esac 9944 fi 9945 ;; 9946 9947 irix5* | irix6* | nonstopux*) 9948 if test yes = "$GCC"; then 9949 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' 9950 # Try to use the -exported_symbol ld option, if it does not 9951 # work, assume that -exports_file does not work either and 9952 # implicitly export all symbols. 9953 # This should be the same for all languages, so no per-tag cache variable. 9954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9955$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9956if ${lt_cv_irix_exported_symbol+:} false; then : 9957 $as_echo_n "(cached) " >&6 9958else 9959 save_LDFLAGS=$LDFLAGS 9960 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 9961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9962/* end confdefs.h. */ 9963int foo (void) { return 0; } 9964_ACEOF 9965if ac_fn_c_try_link "$LINENO"; then : 9966 lt_cv_irix_exported_symbol=yes 9967else 9968 lt_cv_irix_exported_symbol=no 9969fi 9970rm -f core conftest.err conftest.$ac_objext \ 9971 conftest$ac_exeext conftest.$ac_ext 9972 LDFLAGS=$save_LDFLAGS 9973fi 9974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9975$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9976 if test yes = "$lt_cv_irix_exported_symbol"; then 9977 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' 9978 fi 9979 else 9980 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' 9981 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' 9982 fi 9983 archive_cmds_need_lc='no' 9984 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9985 hardcode_libdir_separator=: 9986 inherit_rpath=yes 9987 link_all_deplibs=yes 9988 ;; 9989 9990 linux*) 9991 case $cc_basename in 9992 tcc*) 9993 # Fabrice Bellard et al's Tiny C Compiler 9994 ld_shlibs=yes 9995 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9996 ;; 9997 esac 9998 ;; 9999 10000 netbsd*) 10001 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10002 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10003 else 10004 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10005 fi 10006 hardcode_libdir_flag_spec='-R$libdir' 10007 hardcode_direct=yes 10008 hardcode_shlibpath_var=no 10009 ;; 10010 10011 newsos6) 10012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10013 hardcode_direct=yes 10014 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10015 hardcode_libdir_separator=: 10016 hardcode_shlibpath_var=no 10017 ;; 10018 10019 *nto* | *qnx*) 10020 ;; 10021 10022 openbsd* | bitrig*) 10023 if test -f /usr/libexec/ld.so; then 10024 hardcode_direct=yes 10025 hardcode_shlibpath_var=no 10026 hardcode_direct_absolute=yes 10027 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10028 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10029 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10030 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10031 export_dynamic_flag_spec='$wl-E' 10032 else 10033 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10034 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10035 fi 10036 else 10037 ld_shlibs=no 10038 fi 10039 ;; 10040 10041 os2*) 10042 hardcode_libdir_flag_spec='-L$libdir' 10043 hardcode_minus_L=yes 10044 allow_undefined_flag=unsupported 10045 shrext_cmds=.dll 10046 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10047 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10048 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10049 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10050 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $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 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10054 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10055 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10056 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10057 prefix_cmds="$SED"~ 10058 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10059 prefix_cmds="$prefix_cmds -e 1d"; 10060 fi~ 10061 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10062 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10063 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10064 emximp -o $lib $output_objdir/$libname.def' 10065 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10066 enable_shared_with_static_runtimes=yes 10067 ;; 10068 10069 osf3*) 10070 if test yes = "$GCC"; then 10071 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10072 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' 10073 else 10074 allow_undefined_flag=' -expect_unresolved \*' 10075 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' 10076 fi 10077 archive_cmds_need_lc='no' 10078 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10079 hardcode_libdir_separator=: 10080 ;; 10081 10082 osf4* | osf5*) # as osf3* with the addition of -msym flag 10083 if test yes = "$GCC"; then 10084 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10085 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' 10086 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10087 else 10088 allow_undefined_flag=' -expect_unresolved \*' 10089 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' 10090 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~ 10091 $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' 10092 10093 # Both c and cxx compiler support -rpath directly 10094 hardcode_libdir_flag_spec='-rpath $libdir' 10095 fi 10096 archive_cmds_need_lc='no' 10097 hardcode_libdir_separator=: 10098 ;; 10099 10100 solaris*) 10101 no_undefined_flag=' -z defs' 10102 if test yes = "$GCC"; then 10103 wlarc='$wl' 10104 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10105 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10106 $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' 10107 else 10108 case `$CC -V 2>&1` in 10109 *"Compilers 5.0"*) 10110 wlarc='' 10111 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10112 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10113 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10114 ;; 10115 *) 10116 wlarc='$wl' 10117 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10118 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10119 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10120 ;; 10121 esac 10122 fi 10123 hardcode_libdir_flag_spec='-R$libdir' 10124 hardcode_shlibpath_var=no 10125 case $host_os in 10126 solaris2.[0-5] | solaris2.[0-5].*) ;; 10127 *) 10128 # The compiler driver will combine and reorder linker options, 10129 # but understands '-z linker_flag'. GCC discards it without '$wl', 10130 # but is careful enough not to reorder. 10131 # Supported since Solaris 2.6 (maybe 2.5.1?) 10132 if test yes = "$GCC"; then 10133 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10134 else 10135 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10136 fi 10137 ;; 10138 esac 10139 link_all_deplibs=yes 10140 ;; 10141 10142 sunos4*) 10143 if test sequent = "$host_vendor"; then 10144 # Use $CC to link under sequent, because it throws in some extra .o 10145 # files that make .init and .fini sections work. 10146 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10147 else 10148 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10149 fi 10150 hardcode_libdir_flag_spec='-L$libdir' 10151 hardcode_direct=yes 10152 hardcode_minus_L=yes 10153 hardcode_shlibpath_var=no 10154 ;; 10155 10156 sysv4) 10157 case $host_vendor in 10158 sni) 10159 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10160 hardcode_direct=yes # is this really true??? 10161 ;; 10162 siemens) 10163 ## LD is ld it makes a PLAMLIB 10164 ## CC just makes a GrossModule. 10165 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10166 reload_cmds='$CC -r -o $output$reload_objs' 10167 hardcode_direct=no 10168 ;; 10169 motorola) 10170 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10171 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10172 ;; 10173 esac 10174 runpath_var='LD_RUN_PATH' 10175 hardcode_shlibpath_var=no 10176 ;; 10177 10178 sysv4.3*) 10179 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10180 hardcode_shlibpath_var=no 10181 export_dynamic_flag_spec='-Bexport' 10182 ;; 10183 10184 sysv4*MP*) 10185 if test -d /usr/nec; then 10186 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10187 hardcode_shlibpath_var=no 10188 runpath_var=LD_RUN_PATH 10189 hardcode_runpath_var=yes 10190 ld_shlibs=yes 10191 fi 10192 ;; 10193 10194 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10195 no_undefined_flag='$wl-z,text' 10196 archive_cmds_need_lc=no 10197 hardcode_shlibpath_var=no 10198 runpath_var='LD_RUN_PATH' 10199 10200 if test yes = "$GCC"; then 10201 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10202 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10203 else 10204 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10205 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10206 fi 10207 ;; 10208 10209 sysv5* | sco3.2v5* | sco5v6*) 10210 # Note: We CANNOT use -z defs as we might desire, because we do not 10211 # link with -lc, and that would cause any symbols used from libc to 10212 # always be unresolved, which means just about no library would 10213 # ever link correctly. If we're not using GNU ld we use -z text 10214 # though, which does catch some bad symbols but isn't as heavy-handed 10215 # as -z defs. 10216 no_undefined_flag='$wl-z,text' 10217 allow_undefined_flag='$wl-z,nodefs' 10218 archive_cmds_need_lc=no 10219 hardcode_shlibpath_var=no 10220 hardcode_libdir_flag_spec='$wl-R,$libdir' 10221 hardcode_libdir_separator=':' 10222 link_all_deplibs=yes 10223 export_dynamic_flag_spec='$wl-Bexport' 10224 runpath_var='LD_RUN_PATH' 10225 10226 if test yes = "$GCC"; then 10227 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10228 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10229 else 10230 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10231 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10232 fi 10233 ;; 10234 10235 uts4*) 10236 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10237 hardcode_libdir_flag_spec='-L$libdir' 10238 hardcode_shlibpath_var=no 10239 ;; 10240 10241 *) 10242 ld_shlibs=no 10243 ;; 10244 esac 10245 10246 if test sni = "$host_vendor"; then 10247 case $host in 10248 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10249 export_dynamic_flag_spec='$wl-Blargedynsym' 10250 ;; 10251 esac 10252 fi 10253 fi 10254 10255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10256$as_echo "$ld_shlibs" >&6; } 10257test no = "$ld_shlibs" && can_build_shared=no 10258 10259with_gnu_ld=$with_gnu_ld 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275# 10276# Do we need to explicitly link libc? 10277# 10278case "x$archive_cmds_need_lc" in 10279x|xyes) 10280 # Assume -lc should be added 10281 archive_cmds_need_lc=yes 10282 10283 if test yes,yes = "$GCC,$enable_shared"; then 10284 case $archive_cmds in 10285 *'~'*) 10286 # FIXME: we may have to deal with multi-command sequences. 10287 ;; 10288 '$CC '*) 10289 # Test whether the compiler implicitly links with -lc since on some 10290 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10291 # to ld, don't add -lc before -lgcc. 10292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10293$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10294if ${lt_cv_archive_cmds_need_lc+:} false; then : 10295 $as_echo_n "(cached) " >&6 10296else 10297 $RM conftest* 10298 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10299 10300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10301 (eval $ac_compile) 2>&5 10302 ac_status=$? 10303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10304 test $ac_status = 0; } 2>conftest.err; then 10305 soname=conftest 10306 lib=conftest 10307 libobjs=conftest.$ac_objext 10308 deplibs= 10309 wl=$lt_prog_compiler_wl 10310 pic_flag=$lt_prog_compiler_pic 10311 compiler_flags=-v 10312 linker_flags=-v 10313 verstring= 10314 output_objdir=. 10315 libname=conftest 10316 lt_save_allow_undefined_flag=$allow_undefined_flag 10317 allow_undefined_flag= 10318 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10319 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10320 ac_status=$? 10321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10322 test $ac_status = 0; } 10323 then 10324 lt_cv_archive_cmds_need_lc=no 10325 else 10326 lt_cv_archive_cmds_need_lc=yes 10327 fi 10328 allow_undefined_flag=$lt_save_allow_undefined_flag 10329 else 10330 cat conftest.err 1>&5 10331 fi 10332 $RM conftest* 10333 10334fi 10335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10336$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10337 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10338 ;; 10339 esac 10340 fi 10341 ;; 10342esac 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 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10496$as_echo_n "checking dynamic linker characteristics... " >&6; } 10497 10498if test yes = "$GCC"; then 10499 case $host_os in 10500 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10501 *) lt_awk_arg='/^libraries:/' ;; 10502 esac 10503 case $host_os in 10504 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10505 *) lt_sed_strip_eq='s|=/|/|g' ;; 10506 esac 10507 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10508 case $lt_search_path_spec in 10509 *\;*) 10510 # if the path contains ";" then we assume it to be the separator 10511 # otherwise default to the standard path separator (i.e. ":") - it is 10512 # assumed that no part of a normal pathname contains ";" but that should 10513 # okay in the real world where ";" in dirpaths is itself problematic. 10514 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10515 ;; 10516 *) 10517 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10518 ;; 10519 esac 10520 # Ok, now we have the path, separated by spaces, we can step through it 10521 # and add multilib dir if necessary... 10522 lt_tmp_lt_search_path_spec= 10523 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10524 # ...but if some path component already ends with the multilib dir we assume 10525 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10526 case "$lt_multi_os_dir; $lt_search_path_spec " in 10527 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10528 lt_multi_os_dir= 10529 ;; 10530 esac 10531 for lt_sys_path in $lt_search_path_spec; do 10532 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10533 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10534 elif test -n "$lt_multi_os_dir"; then 10535 test -d "$lt_sys_path" && \ 10536 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10537 fi 10538 done 10539 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10540BEGIN {RS = " "; FS = "/|\n";} { 10541 lt_foo = ""; 10542 lt_count = 0; 10543 for (lt_i = NF; lt_i > 0; lt_i--) { 10544 if ($lt_i != "" && $lt_i != ".") { 10545 if ($lt_i == "..") { 10546 lt_count++; 10547 } else { 10548 if (lt_count == 0) { 10549 lt_foo = "/" $lt_i lt_foo; 10550 } else { 10551 lt_count--; 10552 } 10553 } 10554 } 10555 } 10556 if (lt_foo != "") { lt_freq[lt_foo]++; } 10557 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10558}'` 10559 # AWK program above erroneously prepends '/' to C:/dos/paths 10560 # for these hosts. 10561 case $host_os in 10562 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10563 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10564 esac 10565 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10566else 10567 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10568fi 10569library_names_spec= 10570libname_spec='lib$name' 10571soname_spec= 10572shrext_cmds=.so 10573postinstall_cmds= 10574postuninstall_cmds= 10575finish_cmds= 10576finish_eval= 10577shlibpath_var= 10578shlibpath_overrides_runpath=unknown 10579version_type=none 10580dynamic_linker="$host_os ld.so" 10581sys_lib_dlsearch_path_spec="/lib /usr/lib" 10582need_lib_prefix=unknown 10583hardcode_into_libs=no 10584 10585# when you set need_version to no, make sure it does not cause -set_version 10586# flags to be left without arguments 10587need_version=unknown 10588 10589 10590 10591case $host_os in 10592aix3*) 10593 version_type=linux # correct to gnu/linux during the next big refactor 10594 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10595 shlibpath_var=LIBPATH 10596 10597 # AIX 3 has no versioning support, so we append a major version to the name. 10598 soname_spec='$libname$release$shared_ext$major' 10599 ;; 10600 10601aix[4-9]*) 10602 version_type=linux # correct to gnu/linux during the next big refactor 10603 need_lib_prefix=no 10604 need_version=no 10605 hardcode_into_libs=yes 10606 if test ia64 = "$host_cpu"; then 10607 # AIX 5 supports IA64 10608 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10609 shlibpath_var=LD_LIBRARY_PATH 10610 else 10611 # With GCC up to 2.95.x, collect2 would create an import file 10612 # for dependence libraries. The import file would start with 10613 # the line '#! .'. This would cause the generated library to 10614 # depend on '.', always an invalid library. This was fixed in 10615 # development snapshots of GCC prior to 3.0. 10616 case $host_os in 10617 aix4 | aix4.[01] | aix4.[01].*) 10618 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10619 echo ' yes ' 10620 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10621 : 10622 else 10623 can_build_shared=no 10624 fi 10625 ;; 10626 esac 10627 # Using Import Files as archive members, it is possible to support 10628 # filename-based versioning of shared library archives on AIX. While 10629 # this would work for both with and without runtime linking, it will 10630 # prevent static linking of such archives. So we do filename-based 10631 # shared library versioning with .so extension only, which is used 10632 # when both runtime linking and shared linking is enabled. 10633 # Unfortunately, runtime linking may impact performance, so we do 10634 # not want this to be the default eventually. Also, we use the 10635 # versioned .so libs for executables only if there is the -brtl 10636 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10637 # To allow for filename-based versioning support, we need to create 10638 # libNAME.so.V as an archive file, containing: 10639 # *) an Import File, referring to the versioned filename of the 10640 # archive as well as the shared archive member, telling the 10641 # bitwidth (32 or 64) of that shared object, and providing the 10642 # list of exported symbols of that shared object, eventually 10643 # decorated with the 'weak' keyword 10644 # *) the shared object with the F_LOADONLY flag set, to really avoid 10645 # it being seen by the linker. 10646 # At run time we better use the real file rather than another symlink, 10647 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10648 10649 case $with_aix_soname,$aix_use_runtimelinking in 10650 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10651 # soname into executable. Probably we can add versioning support to 10652 # collect2, so additional links can be useful in future. 10653 aix,yes) # traditional libtool 10654 dynamic_linker='AIX unversionable lib.so' 10655 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10656 # instead of lib<name>.a to let people know that these are not 10657 # typical AIX shared libraries. 10658 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10659 ;; 10660 aix,no) # traditional AIX only 10661 dynamic_linker='AIX lib.a(lib.so.V)' 10662 # We preserve .a as extension for shared libraries through AIX4.2 10663 # and later when we are not doing run time linking. 10664 library_names_spec='$libname$release.a $libname.a' 10665 soname_spec='$libname$release$shared_ext$major' 10666 ;; 10667 svr4,*) # full svr4 only 10668 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10669 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10670 # We do not specify a path in Import Files, so LIBPATH fires. 10671 shlibpath_overrides_runpath=yes 10672 ;; 10673 *,yes) # both, prefer svr4 10674 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10675 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10676 # unpreferred sharedlib libNAME.a needs extra handling 10677 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"' 10678 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"' 10679 # We do not specify a path in Import Files, so LIBPATH fires. 10680 shlibpath_overrides_runpath=yes 10681 ;; 10682 *,no) # both, prefer aix 10683 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10684 library_names_spec='$libname$release.a $libname.a' 10685 soname_spec='$libname$release$shared_ext$major' 10686 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10687 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)' 10688 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"' 10689 ;; 10690 esac 10691 shlibpath_var=LIBPATH 10692 fi 10693 ;; 10694 10695amigaos*) 10696 case $host_cpu in 10697 powerpc) 10698 # Since July 2007 AmigaOS4 officially supports .so libraries. 10699 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10700 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10701 ;; 10702 m68k) 10703 library_names_spec='$libname.ixlibrary $libname.a' 10704 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10705 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' 10706 ;; 10707 esac 10708 ;; 10709 10710beos*) 10711 library_names_spec='$libname$shared_ext' 10712 dynamic_linker="$host_os ld.so" 10713 shlibpath_var=LIBRARY_PATH 10714 ;; 10715 10716bsdi[45]*) 10717 version_type=linux # correct to gnu/linux during the next big refactor 10718 need_version=no 10719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10720 soname_spec='$libname$release$shared_ext$major' 10721 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10722 shlibpath_var=LD_LIBRARY_PATH 10723 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10724 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10725 # the default ld.so.conf also contains /usr/contrib/lib and 10726 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10727 # libtool to hard-code these into programs 10728 ;; 10729 10730cygwin* | mingw* | pw32* | cegcc*) 10731 version_type=windows 10732 shrext_cmds=.dll 10733 need_version=no 10734 need_lib_prefix=no 10735 10736 case $GCC,$cc_basename in 10737 yes,*) 10738 # gcc 10739 library_names_spec='$libname.dll.a' 10740 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10741 postinstall_cmds='base_file=`basename \$file`~ 10742 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10743 dldir=$destdir/`dirname \$dlpath`~ 10744 test -d \$dldir || mkdir -p \$dldir~ 10745 $install_prog $dir/$dlname \$dldir/$dlname~ 10746 chmod a+x \$dldir/$dlname~ 10747 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10748 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10749 fi' 10750 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10751 dlpath=$dir/\$dldll~ 10752 $RM \$dlpath' 10753 shlibpath_overrides_runpath=yes 10754 10755 case $host_os in 10756 cygwin*) 10757 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10758 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10759 10760 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10761 ;; 10762 mingw* | cegcc*) 10763 # MinGW DLLs use traditional 'lib' prefix 10764 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10765 ;; 10766 pw32*) 10767 # pw32 DLLs use 'pw' prefix rather than 'lib' 10768 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10769 ;; 10770 esac 10771 dynamic_linker='Win32 ld.exe' 10772 ;; 10773 10774 *,cl*) 10775 # Native MSVC 10776 libname_spec='$name' 10777 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10778 library_names_spec='$libname.dll.lib' 10779 10780 case $build_os in 10781 mingw*) 10782 sys_lib_search_path_spec= 10783 lt_save_ifs=$IFS 10784 IFS=';' 10785 for lt_path in $LIB 10786 do 10787 IFS=$lt_save_ifs 10788 # Let DOS variable expansion print the short 8.3 style file name. 10789 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10790 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10791 done 10792 IFS=$lt_save_ifs 10793 # Convert to MSYS style. 10794 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10795 ;; 10796 cygwin*) 10797 # Convert to unix form, then to dos form, then back to unix form 10798 # but this time dos style (no spaces!) so that the unix form looks 10799 # like /cygdrive/c/PROGRA~1:/cygdr... 10800 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10801 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10802 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10803 ;; 10804 *) 10805 sys_lib_search_path_spec=$LIB 10806 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10807 # It is most probably a Windows format PATH. 10808 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10809 else 10810 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10811 fi 10812 # FIXME: find the short name or the path components, as spaces are 10813 # common. (e.g. "Program Files" -> "PROGRA~1") 10814 ;; 10815 esac 10816 10817 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10818 postinstall_cmds='base_file=`basename \$file`~ 10819 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10820 dldir=$destdir/`dirname \$dlpath`~ 10821 test -d \$dldir || mkdir -p \$dldir~ 10822 $install_prog $dir/$dlname \$dldir/$dlname' 10823 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10824 dlpath=$dir/\$dldll~ 10825 $RM \$dlpath' 10826 shlibpath_overrides_runpath=yes 10827 dynamic_linker='Win32 link.exe' 10828 ;; 10829 10830 *) 10831 # Assume MSVC wrapper 10832 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10833 dynamic_linker='Win32 ld.exe' 10834 ;; 10835 esac 10836 # FIXME: first we should search . and the directory the executable is in 10837 shlibpath_var=PATH 10838 ;; 10839 10840darwin* | rhapsody*) 10841 dynamic_linker="$host_os dyld" 10842 version_type=darwin 10843 need_lib_prefix=no 10844 need_version=no 10845 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10846 soname_spec='$libname$release$major$shared_ext' 10847 shlibpath_overrides_runpath=yes 10848 shlibpath_var=DYLD_LIBRARY_PATH 10849 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10850 10851 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10852 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10853 ;; 10854 10855dgux*) 10856 version_type=linux # correct to gnu/linux during the next big refactor 10857 need_lib_prefix=no 10858 need_version=no 10859 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10860 soname_spec='$libname$release$shared_ext$major' 10861 shlibpath_var=LD_LIBRARY_PATH 10862 ;; 10863 10864freebsd* | dragonfly*) 10865 # DragonFly does not have aout. When/if they implement a new 10866 # versioning mechanism, adjust this. 10867 if test -x /usr/bin/objformat; then 10868 objformat=`/usr/bin/objformat` 10869 else 10870 case $host_os in 10871 freebsd[23].*) objformat=aout ;; 10872 *) objformat=elf ;; 10873 esac 10874 fi 10875 version_type=freebsd-$objformat 10876 case $version_type in 10877 freebsd-elf*) 10878 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10879 soname_spec='$libname$release$shared_ext$major' 10880 need_version=no 10881 need_lib_prefix=no 10882 ;; 10883 freebsd-*) 10884 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10885 need_version=yes 10886 ;; 10887 esac 10888 shlibpath_var=LD_LIBRARY_PATH 10889 case $host_os in 10890 freebsd2.*) 10891 shlibpath_overrides_runpath=yes 10892 ;; 10893 freebsd3.[01]* | freebsdelf3.[01]*) 10894 shlibpath_overrides_runpath=yes 10895 hardcode_into_libs=yes 10896 ;; 10897 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10898 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10899 shlibpath_overrides_runpath=no 10900 hardcode_into_libs=yes 10901 ;; 10902 *) # from 4.6 on, and DragonFly 10903 shlibpath_overrides_runpath=yes 10904 hardcode_into_libs=yes 10905 ;; 10906 esac 10907 ;; 10908 10909haiku*) 10910 version_type=linux # correct to gnu/linux during the next big refactor 10911 need_lib_prefix=no 10912 need_version=no 10913 dynamic_linker="$host_os runtime_loader" 10914 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10915 soname_spec='$libname$release$shared_ext$major' 10916 shlibpath_var=LIBRARY_PATH 10917 shlibpath_overrides_runpath=no 10918 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10919 hardcode_into_libs=yes 10920 ;; 10921 10922hpux9* | hpux10* | hpux11*) 10923 # Give a soname corresponding to the major version so that dld.sl refuses to 10924 # link against other versions. 10925 version_type=sunos 10926 need_lib_prefix=no 10927 need_version=no 10928 case $host_cpu in 10929 ia64*) 10930 shrext_cmds='.so' 10931 hardcode_into_libs=yes 10932 dynamic_linker="$host_os dld.so" 10933 shlibpath_var=LD_LIBRARY_PATH 10934 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10935 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10936 soname_spec='$libname$release$shared_ext$major' 10937 if test 32 = "$HPUX_IA64_MODE"; then 10938 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10939 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 10940 else 10941 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10942 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 10943 fi 10944 ;; 10945 hppa*64*) 10946 shrext_cmds='.sl' 10947 hardcode_into_libs=yes 10948 dynamic_linker="$host_os dld.sl" 10949 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10950 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10951 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10952 soname_spec='$libname$release$shared_ext$major' 10953 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10954 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10955 ;; 10956 *) 10957 shrext_cmds='.sl' 10958 dynamic_linker="$host_os dld.sl" 10959 shlibpath_var=SHLIB_PATH 10960 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10961 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10962 soname_spec='$libname$release$shared_ext$major' 10963 ;; 10964 esac 10965 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10966 postinstall_cmds='chmod 555 $lib' 10967 # or fails outright, so override atomically: 10968 install_override_mode=555 10969 ;; 10970 10971interix[3-9]*) 10972 version_type=linux # correct to gnu/linux during the next big refactor 10973 need_lib_prefix=no 10974 need_version=no 10975 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10976 soname_spec='$libname$release$shared_ext$major' 10977 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10978 shlibpath_var=LD_LIBRARY_PATH 10979 shlibpath_overrides_runpath=no 10980 hardcode_into_libs=yes 10981 ;; 10982 10983irix5* | irix6* | nonstopux*) 10984 case $host_os in 10985 nonstopux*) version_type=nonstopux ;; 10986 *) 10987 if test yes = "$lt_cv_prog_gnu_ld"; then 10988 version_type=linux # correct to gnu/linux during the next big refactor 10989 else 10990 version_type=irix 10991 fi ;; 10992 esac 10993 need_lib_prefix=no 10994 need_version=no 10995 soname_spec='$libname$release$shared_ext$major' 10996 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 10997 case $host_os in 10998 irix5* | nonstopux*) 10999 libsuff= shlibsuff= 11000 ;; 11001 *) 11002 case $LD in # libtool.m4 will add one of these switches to LD 11003 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11004 libsuff= shlibsuff= libmagic=32-bit;; 11005 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11006 libsuff=32 shlibsuff=N32 libmagic=N32;; 11007 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11008 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11009 *) libsuff= shlibsuff= libmagic=never-match;; 11010 esac 11011 ;; 11012 esac 11013 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11014 shlibpath_overrides_runpath=no 11015 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11016 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11017 hardcode_into_libs=yes 11018 ;; 11019 11020# No shared lib support for Linux oldld, aout, or coff. 11021linux*oldld* | linux*aout* | linux*coff*) 11022 dynamic_linker=no 11023 ;; 11024 11025linux*android*) 11026 version_type=none # Android doesn't support versioned libraries. 11027 need_lib_prefix=no 11028 need_version=no 11029 library_names_spec='$libname$release$shared_ext' 11030 soname_spec='$libname$release$shared_ext' 11031 finish_cmds= 11032 shlibpath_var=LD_LIBRARY_PATH 11033 shlibpath_overrides_runpath=yes 11034 11035 # This implies no fast_install, which is unacceptable. 11036 # Some rework will be needed to allow for fast_install 11037 # before this can be enabled. 11038 hardcode_into_libs=yes 11039 11040 dynamic_linker='Android linker' 11041 # Don't embed -rpath directories since the linker doesn't support them. 11042 hardcode_libdir_flag_spec='-L$libdir' 11043 ;; 11044 11045# This must be glibc/ELF. 11046linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11047 version_type=linux # correct to gnu/linux during the next big refactor 11048 need_lib_prefix=no 11049 need_version=no 11050 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11051 soname_spec='$libname$release$shared_ext$major' 11052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11053 shlibpath_var=LD_LIBRARY_PATH 11054 shlibpath_overrides_runpath=no 11055 11056 # Some binutils ld are patched to set DT_RUNPATH 11057 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11058 $as_echo_n "(cached) " >&6 11059else 11060 lt_cv_shlibpath_overrides_runpath=no 11061 save_LDFLAGS=$LDFLAGS 11062 save_libdir=$libdir 11063 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11064 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11066/* end confdefs.h. */ 11067 11068int 11069main () 11070{ 11071 11072 ; 11073 return 0; 11074} 11075_ACEOF 11076if ac_fn_c_try_link "$LINENO"; then : 11077 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11078 lt_cv_shlibpath_overrides_runpath=yes 11079fi 11080fi 11081rm -f core conftest.err conftest.$ac_objext \ 11082 conftest$ac_exeext conftest.$ac_ext 11083 LDFLAGS=$save_LDFLAGS 11084 libdir=$save_libdir 11085 11086fi 11087 11088 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11089 11090 # This implies no fast_install, which is unacceptable. 11091 # Some rework will be needed to allow for fast_install 11092 # before this can be enabled. 11093 hardcode_into_libs=yes 11094 11095 # Add ABI-specific directories to the system library path. 11096 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 11097 11098 # Ideally, we could use ldconfig to report *all* directores which are 11099 # searched for libraries, however this is still not possible. Aside from not 11100 # being certain /sbin/ldconfig is available, command 11101 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11102 # even though it is searched at run-time. Try to do the best guess by 11103 # appending ld.so.conf contents (and includes) to the search path. 11104 if test -f /etc/ld.so.conf; then 11105 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' ' '` 11106 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 11107 fi 11108 11109 # We used to test for /lib/ld.so.1 and disable shared libraries on 11110 # powerpc, because MkLinux only supported shared libraries with the 11111 # GNU dynamic linker. Since this was broken with cross compilers, 11112 # most powerpc-linux boxes support dynamic linking these days and 11113 # people can always --disable-shared, the test was removed, and we 11114 # assume the GNU/Linux dynamic linker is in use. 11115 dynamic_linker='GNU/Linux ld.so' 11116 ;; 11117 11118netbsd*) 11119 version_type=sunos 11120 need_lib_prefix=no 11121 need_version=no 11122 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11123 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11124 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11125 dynamic_linker='NetBSD (a.out) ld.so' 11126 else 11127 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11128 soname_spec='$libname$release$shared_ext$major' 11129 dynamic_linker='NetBSD ld.elf_so' 11130 fi 11131 shlibpath_var=LD_LIBRARY_PATH 11132 shlibpath_overrides_runpath=yes 11133 hardcode_into_libs=yes 11134 ;; 11135 11136newsos6) 11137 version_type=linux # correct to gnu/linux during the next big refactor 11138 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11139 shlibpath_var=LD_LIBRARY_PATH 11140 shlibpath_overrides_runpath=yes 11141 ;; 11142 11143*nto* | *qnx*) 11144 version_type=qnx 11145 need_lib_prefix=no 11146 need_version=no 11147 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11148 soname_spec='$libname$release$shared_ext$major' 11149 shlibpath_var=LD_LIBRARY_PATH 11150 shlibpath_overrides_runpath=no 11151 hardcode_into_libs=yes 11152 dynamic_linker='ldqnx.so' 11153 ;; 11154 11155openbsd* | bitrig*) 11156 version_type=sunos 11157 sys_lib_dlsearch_path_spec=/usr/lib 11158 need_lib_prefix=no 11159 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11160 need_version=no 11161 else 11162 need_version=yes 11163 fi 11164 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11165 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11166 shlibpath_var=LD_LIBRARY_PATH 11167 shlibpath_overrides_runpath=yes 11168 ;; 11169 11170os2*) 11171 libname_spec='$name' 11172 version_type=windows 11173 shrext_cmds=.dll 11174 need_version=no 11175 need_lib_prefix=no 11176 # OS/2 can only load a DLL with a base name of 8 characters or less. 11177 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11178 v=$($ECHO $release$versuffix | tr -d .-); 11179 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11180 $ECHO $n$v`$shared_ext' 11181 library_names_spec='${libname}_dll.$libext' 11182 dynamic_linker='OS/2 ld.exe' 11183 shlibpath_var=BEGINLIBPATH 11184 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11185 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11186 postinstall_cmds='base_file=`basename \$file`~ 11187 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11188 dldir=$destdir/`dirname \$dlpath`~ 11189 test -d \$dldir || mkdir -p \$dldir~ 11190 $install_prog $dir/$dlname \$dldir/$dlname~ 11191 chmod a+x \$dldir/$dlname~ 11192 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11193 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11194 fi' 11195 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11196 dlpath=$dir/\$dldll~ 11197 $RM \$dlpath' 11198 ;; 11199 11200osf3* | osf4* | osf5*) 11201 version_type=osf 11202 need_lib_prefix=no 11203 need_version=no 11204 soname_spec='$libname$release$shared_ext$major' 11205 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11206 shlibpath_var=LD_LIBRARY_PATH 11207 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11208 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11209 ;; 11210 11211rdos*) 11212 dynamic_linker=no 11213 ;; 11214 11215solaris*) 11216 version_type=linux # correct to gnu/linux during the next big refactor 11217 need_lib_prefix=no 11218 need_version=no 11219 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11220 soname_spec='$libname$release$shared_ext$major' 11221 shlibpath_var=LD_LIBRARY_PATH 11222 shlibpath_overrides_runpath=yes 11223 hardcode_into_libs=yes 11224 # ldd complains unless libraries are executable 11225 postinstall_cmds='chmod +x $lib' 11226 ;; 11227 11228sunos4*) 11229 version_type=sunos 11230 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11231 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11232 shlibpath_var=LD_LIBRARY_PATH 11233 shlibpath_overrides_runpath=yes 11234 if test yes = "$with_gnu_ld"; then 11235 need_lib_prefix=no 11236 fi 11237 need_version=yes 11238 ;; 11239 11240sysv4 | sysv4.3*) 11241 version_type=linux # correct to gnu/linux during the next big refactor 11242 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11243 soname_spec='$libname$release$shared_ext$major' 11244 shlibpath_var=LD_LIBRARY_PATH 11245 case $host_vendor in 11246 sni) 11247 shlibpath_overrides_runpath=no 11248 need_lib_prefix=no 11249 runpath_var=LD_RUN_PATH 11250 ;; 11251 siemens) 11252 need_lib_prefix=no 11253 ;; 11254 motorola) 11255 need_lib_prefix=no 11256 need_version=no 11257 shlibpath_overrides_runpath=no 11258 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11259 ;; 11260 esac 11261 ;; 11262 11263sysv4*MP*) 11264 if test -d /usr/nec; then 11265 version_type=linux # correct to gnu/linux during the next big refactor 11266 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11267 soname_spec='$libname$shared_ext.$major' 11268 shlibpath_var=LD_LIBRARY_PATH 11269 fi 11270 ;; 11271 11272sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11273 version_type=sco 11274 need_lib_prefix=no 11275 need_version=no 11276 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11277 soname_spec='$libname$release$shared_ext$major' 11278 shlibpath_var=LD_LIBRARY_PATH 11279 shlibpath_overrides_runpath=yes 11280 hardcode_into_libs=yes 11281 if test yes = "$with_gnu_ld"; then 11282 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11283 else 11284 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11285 case $host_os in 11286 sco3.2v5*) 11287 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11288 ;; 11289 esac 11290 fi 11291 sys_lib_dlsearch_path_spec='/usr/lib' 11292 ;; 11293 11294tpf*) 11295 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11296 version_type=linux # correct to gnu/linux during the next big refactor 11297 need_lib_prefix=no 11298 need_version=no 11299 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11300 shlibpath_var=LD_LIBRARY_PATH 11301 shlibpath_overrides_runpath=no 11302 hardcode_into_libs=yes 11303 ;; 11304 11305uts4*) 11306 version_type=linux # correct to gnu/linux during the next big refactor 11307 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11308 soname_spec='$libname$release$shared_ext$major' 11309 shlibpath_var=LD_LIBRARY_PATH 11310 ;; 11311 11312*) 11313 dynamic_linker=no 11314 ;; 11315esac 11316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11317$as_echo "$dynamic_linker" >&6; } 11318test no = "$dynamic_linker" && can_build_shared=no 11319 11320variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11321if test yes = "$GCC"; then 11322 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11323fi 11324 11325if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11326 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11327fi 11328 11329if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11330 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11331fi 11332 11333# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11334configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11335 11336# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11337func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11338 11339# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11340configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 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 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11439$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11440hardcode_action= 11441if test -n "$hardcode_libdir_flag_spec" || 11442 test -n "$runpath_var" || 11443 test yes = "$hardcode_automatic"; then 11444 11445 # We can hardcode non-existent directories. 11446 if test no != "$hardcode_direct" && 11447 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11448 # have to relink, otherwise we might link with an installed library 11449 # when we should be linking with a yet-to-be-installed one 11450 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11451 test no != "$hardcode_minus_L"; then 11452 # Linking always hardcodes the temporary library directory. 11453 hardcode_action=relink 11454 else 11455 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11456 hardcode_action=immediate 11457 fi 11458else 11459 # We cannot hardcode anything, or else we can only hardcode existing 11460 # directories. 11461 hardcode_action=unsupported 11462fi 11463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11464$as_echo "$hardcode_action" >&6; } 11465 11466if test relink = "$hardcode_action" || 11467 test yes = "$inherit_rpath"; then 11468 # Fast installation is not supported 11469 enable_fast_install=no 11470elif test yes = "$shlibpath_overrides_runpath" || 11471 test no = "$enable_shared"; then 11472 # Fast installation is not necessary 11473 enable_fast_install=needless 11474fi 11475 11476 11477 11478 11479 11480 11481 if test yes != "$enable_dlopen"; then 11482 enable_dlopen=unknown 11483 enable_dlopen_self=unknown 11484 enable_dlopen_self_static=unknown 11485else 11486 lt_cv_dlopen=no 11487 lt_cv_dlopen_libs= 11488 11489 case $host_os in 11490 beos*) 11491 lt_cv_dlopen=load_add_on 11492 lt_cv_dlopen_libs= 11493 lt_cv_dlopen_self=yes 11494 ;; 11495 11496 mingw* | pw32* | cegcc*) 11497 lt_cv_dlopen=LoadLibrary 11498 lt_cv_dlopen_libs= 11499 ;; 11500 11501 cygwin*) 11502 lt_cv_dlopen=dlopen 11503 lt_cv_dlopen_libs= 11504 ;; 11505 11506 darwin*) 11507 # if libdl is installed we need to link against it 11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11509$as_echo_n "checking for dlopen in -ldl... " >&6; } 11510if ${ac_cv_lib_dl_dlopen+:} false; then : 11511 $as_echo_n "(cached) " >&6 11512else 11513 ac_check_lib_save_LIBS=$LIBS 11514LIBS="-ldl $LIBS" 11515cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11516/* end confdefs.h. */ 11517 11518/* Override any GCC internal prototype to avoid an error. 11519 Use char because int might match the return type of a GCC 11520 builtin and then its argument prototype would still apply. */ 11521#ifdef __cplusplus 11522extern "C" 11523#endif 11524char dlopen (); 11525int 11526main () 11527{ 11528return dlopen (); 11529 ; 11530 return 0; 11531} 11532_ACEOF 11533if ac_fn_c_try_link "$LINENO"; then : 11534 ac_cv_lib_dl_dlopen=yes 11535else 11536 ac_cv_lib_dl_dlopen=no 11537fi 11538rm -f core conftest.err conftest.$ac_objext \ 11539 conftest$ac_exeext conftest.$ac_ext 11540LIBS=$ac_check_lib_save_LIBS 11541fi 11542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11543$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11544if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11545 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11546else 11547 11548 lt_cv_dlopen=dyld 11549 lt_cv_dlopen_libs= 11550 lt_cv_dlopen_self=yes 11551 11552fi 11553 11554 ;; 11555 11556 tpf*) 11557 # Don't try to run any link tests for TPF. We know it's impossible 11558 # because TPF is a cross-compiler, and we know how we open DSOs. 11559 lt_cv_dlopen=dlopen 11560 lt_cv_dlopen_libs= 11561 lt_cv_dlopen_self=no 11562 ;; 11563 11564 *) 11565 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11566if test "x$ac_cv_func_shl_load" = xyes; then : 11567 lt_cv_dlopen=shl_load 11568else 11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11570$as_echo_n "checking for shl_load in -ldld... " >&6; } 11571if ${ac_cv_lib_dld_shl_load+:} false; then : 11572 $as_echo_n "(cached) " >&6 11573else 11574 ac_check_lib_save_LIBS=$LIBS 11575LIBS="-ldld $LIBS" 11576cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11577/* end confdefs.h. */ 11578 11579/* Override any GCC internal prototype to avoid an error. 11580 Use char because int might match the return type of a GCC 11581 builtin and then its argument prototype would still apply. */ 11582#ifdef __cplusplus 11583extern "C" 11584#endif 11585char shl_load (); 11586int 11587main () 11588{ 11589return shl_load (); 11590 ; 11591 return 0; 11592} 11593_ACEOF 11594if ac_fn_c_try_link "$LINENO"; then : 11595 ac_cv_lib_dld_shl_load=yes 11596else 11597 ac_cv_lib_dld_shl_load=no 11598fi 11599rm -f core conftest.err conftest.$ac_objext \ 11600 conftest$ac_exeext conftest.$ac_ext 11601LIBS=$ac_check_lib_save_LIBS 11602fi 11603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11604$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11605if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11606 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11607else 11608 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11609if test "x$ac_cv_func_dlopen" = xyes; then : 11610 lt_cv_dlopen=dlopen 11611else 11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11613$as_echo_n "checking for dlopen in -ldl... " >&6; } 11614if ${ac_cv_lib_dl_dlopen+:} false; then : 11615 $as_echo_n "(cached) " >&6 11616else 11617 ac_check_lib_save_LIBS=$LIBS 11618LIBS="-ldl $LIBS" 11619cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11620/* end confdefs.h. */ 11621 11622/* Override any GCC internal prototype to avoid an error. 11623 Use char because int might match the return type of a GCC 11624 builtin and then its argument prototype would still apply. */ 11625#ifdef __cplusplus 11626extern "C" 11627#endif 11628char dlopen (); 11629int 11630main () 11631{ 11632return dlopen (); 11633 ; 11634 return 0; 11635} 11636_ACEOF 11637if ac_fn_c_try_link "$LINENO"; then : 11638 ac_cv_lib_dl_dlopen=yes 11639else 11640 ac_cv_lib_dl_dlopen=no 11641fi 11642rm -f core conftest.err conftest.$ac_objext \ 11643 conftest$ac_exeext conftest.$ac_ext 11644LIBS=$ac_check_lib_save_LIBS 11645fi 11646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11647$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11648if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11649 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11650else 11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11652$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11653if ${ac_cv_lib_svld_dlopen+:} false; then : 11654 $as_echo_n "(cached) " >&6 11655else 11656 ac_check_lib_save_LIBS=$LIBS 11657LIBS="-lsvld $LIBS" 11658cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11659/* end confdefs.h. */ 11660 11661/* Override any GCC internal prototype to avoid an error. 11662 Use char because int might match the return type of a GCC 11663 builtin and then its argument prototype would still apply. */ 11664#ifdef __cplusplus 11665extern "C" 11666#endif 11667char dlopen (); 11668int 11669main () 11670{ 11671return dlopen (); 11672 ; 11673 return 0; 11674} 11675_ACEOF 11676if ac_fn_c_try_link "$LINENO"; then : 11677 ac_cv_lib_svld_dlopen=yes 11678else 11679 ac_cv_lib_svld_dlopen=no 11680fi 11681rm -f core conftest.err conftest.$ac_objext \ 11682 conftest$ac_exeext conftest.$ac_ext 11683LIBS=$ac_check_lib_save_LIBS 11684fi 11685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11686$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11687if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11688 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11689else 11690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11691$as_echo_n "checking for dld_link in -ldld... " >&6; } 11692if ${ac_cv_lib_dld_dld_link+:} false; then : 11693 $as_echo_n "(cached) " >&6 11694else 11695 ac_check_lib_save_LIBS=$LIBS 11696LIBS="-ldld $LIBS" 11697cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11698/* end confdefs.h. */ 11699 11700/* Override any GCC internal prototype to avoid an error. 11701 Use char because int might match the return type of a GCC 11702 builtin and then its argument prototype would still apply. */ 11703#ifdef __cplusplus 11704extern "C" 11705#endif 11706char dld_link (); 11707int 11708main () 11709{ 11710return dld_link (); 11711 ; 11712 return 0; 11713} 11714_ACEOF 11715if ac_fn_c_try_link "$LINENO"; then : 11716 ac_cv_lib_dld_dld_link=yes 11717else 11718 ac_cv_lib_dld_dld_link=no 11719fi 11720rm -f core conftest.err conftest.$ac_objext \ 11721 conftest$ac_exeext conftest.$ac_ext 11722LIBS=$ac_check_lib_save_LIBS 11723fi 11724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11725$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11726if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11727 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11728fi 11729 11730 11731fi 11732 11733 11734fi 11735 11736 11737fi 11738 11739 11740fi 11741 11742 11743fi 11744 11745 ;; 11746 esac 11747 11748 if test no = "$lt_cv_dlopen"; then 11749 enable_dlopen=no 11750 else 11751 enable_dlopen=yes 11752 fi 11753 11754 case $lt_cv_dlopen in 11755 dlopen) 11756 save_CPPFLAGS=$CPPFLAGS 11757 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11758 11759 save_LDFLAGS=$LDFLAGS 11760 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11761 11762 save_LIBS=$LIBS 11763 LIBS="$lt_cv_dlopen_libs $LIBS" 11764 11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11766$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11767if ${lt_cv_dlopen_self+:} false; then : 11768 $as_echo_n "(cached) " >&6 11769else 11770 if test yes = "$cross_compiling"; then : 11771 lt_cv_dlopen_self=cross 11772else 11773 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11774 lt_status=$lt_dlunknown 11775 cat > conftest.$ac_ext <<_LT_EOF 11776#line $LINENO "configure" 11777#include "confdefs.h" 11778 11779#if HAVE_DLFCN_H 11780#include <dlfcn.h> 11781#endif 11782 11783#include <stdio.h> 11784 11785#ifdef RTLD_GLOBAL 11786# define LT_DLGLOBAL RTLD_GLOBAL 11787#else 11788# ifdef DL_GLOBAL 11789# define LT_DLGLOBAL DL_GLOBAL 11790# else 11791# define LT_DLGLOBAL 0 11792# endif 11793#endif 11794 11795/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11796 find out it does not work in some platform. */ 11797#ifndef LT_DLLAZY_OR_NOW 11798# ifdef RTLD_LAZY 11799# define LT_DLLAZY_OR_NOW RTLD_LAZY 11800# else 11801# ifdef DL_LAZY 11802# define LT_DLLAZY_OR_NOW DL_LAZY 11803# else 11804# ifdef RTLD_NOW 11805# define LT_DLLAZY_OR_NOW RTLD_NOW 11806# else 11807# ifdef DL_NOW 11808# define LT_DLLAZY_OR_NOW DL_NOW 11809# else 11810# define LT_DLLAZY_OR_NOW 0 11811# endif 11812# endif 11813# endif 11814# endif 11815#endif 11816 11817/* When -fvisibility=hidden is used, assume the code has been annotated 11818 correspondingly for the symbols needed. */ 11819#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11820int fnord () __attribute__((visibility("default"))); 11821#endif 11822 11823int fnord () { return 42; } 11824int main () 11825{ 11826 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11827 int status = $lt_dlunknown; 11828 11829 if (self) 11830 { 11831 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11832 else 11833 { 11834 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11835 else puts (dlerror ()); 11836 } 11837 /* dlclose (self); */ 11838 } 11839 else 11840 puts (dlerror ()); 11841 11842 return status; 11843} 11844_LT_EOF 11845 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11846 (eval $ac_link) 2>&5 11847 ac_status=$? 11848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11849 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11850 (./conftest; exit; ) >&5 2>/dev/null 11851 lt_status=$? 11852 case x$lt_status in 11853 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11854 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11855 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11856 esac 11857 else : 11858 # compilation failed 11859 lt_cv_dlopen_self=no 11860 fi 11861fi 11862rm -fr conftest* 11863 11864 11865fi 11866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11867$as_echo "$lt_cv_dlopen_self" >&6; } 11868 11869 if test yes = "$lt_cv_dlopen_self"; then 11870 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11872$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11873if ${lt_cv_dlopen_self_static+:} false; then : 11874 $as_echo_n "(cached) " >&6 11875else 11876 if test yes = "$cross_compiling"; then : 11877 lt_cv_dlopen_self_static=cross 11878else 11879 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11880 lt_status=$lt_dlunknown 11881 cat > conftest.$ac_ext <<_LT_EOF 11882#line $LINENO "configure" 11883#include "confdefs.h" 11884 11885#if HAVE_DLFCN_H 11886#include <dlfcn.h> 11887#endif 11888 11889#include <stdio.h> 11890 11891#ifdef RTLD_GLOBAL 11892# define LT_DLGLOBAL RTLD_GLOBAL 11893#else 11894# ifdef DL_GLOBAL 11895# define LT_DLGLOBAL DL_GLOBAL 11896# else 11897# define LT_DLGLOBAL 0 11898# endif 11899#endif 11900 11901/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11902 find out it does not work in some platform. */ 11903#ifndef LT_DLLAZY_OR_NOW 11904# ifdef RTLD_LAZY 11905# define LT_DLLAZY_OR_NOW RTLD_LAZY 11906# else 11907# ifdef DL_LAZY 11908# define LT_DLLAZY_OR_NOW DL_LAZY 11909# else 11910# ifdef RTLD_NOW 11911# define LT_DLLAZY_OR_NOW RTLD_NOW 11912# else 11913# ifdef DL_NOW 11914# define LT_DLLAZY_OR_NOW DL_NOW 11915# else 11916# define LT_DLLAZY_OR_NOW 0 11917# endif 11918# endif 11919# endif 11920# endif 11921#endif 11922 11923/* When -fvisibility=hidden is used, assume the code has been annotated 11924 correspondingly for the symbols needed. */ 11925#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11926int fnord () __attribute__((visibility("default"))); 11927#endif 11928 11929int fnord () { return 42; } 11930int main () 11931{ 11932 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11933 int status = $lt_dlunknown; 11934 11935 if (self) 11936 { 11937 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11938 else 11939 { 11940 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11941 else puts (dlerror ()); 11942 } 11943 /* dlclose (self); */ 11944 } 11945 else 11946 puts (dlerror ()); 11947 11948 return status; 11949} 11950_LT_EOF 11951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11952 (eval $ac_link) 2>&5 11953 ac_status=$? 11954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11955 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11956 (./conftest; exit; ) >&5 2>/dev/null 11957 lt_status=$? 11958 case x$lt_status in 11959 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11960 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11961 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11962 esac 11963 else : 11964 # compilation failed 11965 lt_cv_dlopen_self_static=no 11966 fi 11967fi 11968rm -fr conftest* 11969 11970 11971fi 11972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11973$as_echo "$lt_cv_dlopen_self_static" >&6; } 11974 fi 11975 11976 CPPFLAGS=$save_CPPFLAGS 11977 LDFLAGS=$save_LDFLAGS 11978 LIBS=$save_LIBS 11979 ;; 11980 esac 11981 11982 case $lt_cv_dlopen_self in 11983 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11984 *) enable_dlopen_self=unknown ;; 11985 esac 11986 11987 case $lt_cv_dlopen_self_static in 11988 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11989 *) enable_dlopen_self_static=unknown ;; 11990 esac 11991fi 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009striplib= 12010old_striplib= 12011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12012$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12013if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12014 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12015 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12017$as_echo "yes" >&6; } 12018else 12019# FIXME - insert some real tests, host_os isn't really good enough 12020 case $host_os in 12021 darwin*) 12022 if test -n "$STRIP"; then 12023 striplib="$STRIP -x" 12024 old_striplib="$STRIP -S" 12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12026$as_echo "yes" >&6; } 12027 else 12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12029$as_echo "no" >&6; } 12030 fi 12031 ;; 12032 *) 12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12034$as_echo "no" >&6; } 12035 ;; 12036 esac 12037fi 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 # Report what library types will actually be built 12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12052$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12054$as_echo "$can_build_shared" >&6; } 12055 12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12057$as_echo_n "checking whether to build shared libraries... " >&6; } 12058 test no = "$can_build_shared" && enable_shared=no 12059 12060 # On AIX, shared libraries and static libraries use the same namespace, and 12061 # are all built from PIC. 12062 case $host_os in 12063 aix3*) 12064 test yes = "$enable_shared" && enable_static=no 12065 if test -n "$RANLIB"; then 12066 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12067 postinstall_cmds='$RANLIB $lib' 12068 fi 12069 ;; 12070 12071 aix[4-9]*) 12072 if test ia64 != "$host_cpu"; then 12073 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12074 yes,aix,yes) ;; # shared object as lib.so file only 12075 yes,svr4,*) ;; # shared object as lib.so archive member only 12076 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12077 esac 12078 fi 12079 ;; 12080 esac 12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12082$as_echo "$enable_shared" >&6; } 12083 12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12085$as_echo_n "checking whether to build static libraries... " >&6; } 12086 # Make sure either enable_shared or enable_static is yes. 12087 test yes = "$enable_shared" || enable_static=yes 12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12089$as_echo "$enable_static" >&6; } 12090 12091 12092 12093 12094fi 12095ac_ext=c 12096ac_cpp='$CPP $CPPFLAGS' 12097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12099ac_compiler_gnu=$ac_cv_c_compiler_gnu 12100 12101CC=$lt_save_CC 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 ac_config_commands="$ac_config_commands libtool" 12118 12119 12120 12121 12122# Only expand once: 12123 12124 12125 12126if test "$GCC" = yes 12127then 12128 CFLAGS="-Wall $CFLAGS" 12129fi 12130 12131CPPFLAGS="$CPPFLAGS -I$srcdir/.. -I.." 12132 12133 12134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12135$as_echo_n "checking for ANSI C header files... " >&6; } 12136if ${ac_cv_header_stdc+:} false; then : 12137 $as_echo_n "(cached) " >&6 12138else 12139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12140/* end confdefs.h. */ 12141#include <stdlib.h> 12142#include <stdarg.h> 12143#include <string.h> 12144#include <float.h> 12145 12146int 12147main () 12148{ 12149 12150 ; 12151 return 0; 12152} 12153_ACEOF 12154if ac_fn_c_try_compile "$LINENO"; then : 12155 ac_cv_header_stdc=yes 12156else 12157 ac_cv_header_stdc=no 12158fi 12159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12160 12161if test $ac_cv_header_stdc = yes; then 12162 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12164/* end confdefs.h. */ 12165#include <string.h> 12166 12167_ACEOF 12168if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12169 $EGREP "memchr" >/dev/null 2>&1; then : 12170 12171else 12172 ac_cv_header_stdc=no 12173fi 12174rm -f conftest* 12175 12176fi 12177 12178if test $ac_cv_header_stdc = yes; then 12179 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12181/* end confdefs.h. */ 12182#include <stdlib.h> 12183 12184_ACEOF 12185if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12186 $EGREP "free" >/dev/null 2>&1; then : 12187 12188else 12189 ac_cv_header_stdc=no 12190fi 12191rm -f conftest* 12192 12193fi 12194 12195if test $ac_cv_header_stdc = yes; then 12196 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12197 if test "$cross_compiling" = yes; then : 12198 : 12199else 12200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12201/* end confdefs.h. */ 12202#include <ctype.h> 12203#include <stdlib.h> 12204#if ((' ' & 0x0FF) == 0x020) 12205# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12206# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12207#else 12208# define ISLOWER(c) \ 12209 (('a' <= (c) && (c) <= 'i') \ 12210 || ('j' <= (c) && (c) <= 'r') \ 12211 || ('s' <= (c) && (c) <= 'z')) 12212# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12213#endif 12214 12215#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12216int 12217main () 12218{ 12219 int i; 12220 for (i = 0; i < 256; i++) 12221 if (XOR (islower (i), ISLOWER (i)) 12222 || toupper (i) != TOUPPER (i)) 12223 return 2; 12224 return 0; 12225} 12226_ACEOF 12227if ac_fn_c_try_run "$LINENO"; then : 12228 12229else 12230 ac_cv_header_stdc=no 12231fi 12232rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12233 conftest.$ac_objext conftest.beam conftest.$ac_ext 12234fi 12235 12236fi 12237fi 12238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 12239$as_echo "$ac_cv_header_stdc" >&6; } 12240if test $ac_cv_header_stdc = yes; then 12241 12242$as_echo "#define STDC_HEADERS 1" >>confdefs.h 12243 12244fi 12245 12246 12247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 12248$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 12249if ${ac_cv_c_const+:} false; then : 12250 $as_echo_n "(cached) " >&6 12251else 12252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12253/* end confdefs.h. */ 12254 12255int 12256main () 12257{ 12258 12259#ifndef __cplusplus 12260 /* Ultrix mips cc rejects this sort of thing. */ 12261 typedef int charset[2]; 12262 const charset cs = { 0, 0 }; 12263 /* SunOS 4.1.1 cc rejects this. */ 12264 char const *const *pcpcc; 12265 char **ppc; 12266 /* NEC SVR4.0.2 mips cc rejects this. */ 12267 struct point {int x, y;}; 12268 static struct point const zero = {0,0}; 12269 /* AIX XL C 1.02.0.0 rejects this. 12270 It does not let you subtract one const X* pointer from another in 12271 an arm of an if-expression whose if-part is not a constant 12272 expression */ 12273 const char *g = "string"; 12274 pcpcc = &g + (g ? g-g : 0); 12275 /* HPUX 7.0 cc rejects these. */ 12276 ++pcpcc; 12277 ppc = (char**) pcpcc; 12278 pcpcc = (char const *const *) ppc; 12279 { /* SCO 3.2v4 cc rejects this sort of thing. */ 12280 char tx; 12281 char *t = &tx; 12282 char const *s = 0 ? (char *) 0 : (char const *) 0; 12283 12284 *t++ = 0; 12285 if (s) return 0; 12286 } 12287 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 12288 int x[] = {25, 17}; 12289 const int *foo = &x[0]; 12290 ++foo; 12291 } 12292 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 12293 typedef const int *iptr; 12294 iptr p = 0; 12295 ++p; 12296 } 12297 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 12298 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 12299 struct s { int j; const int *ap[3]; } bx; 12300 struct s *b = &bx; b->j = 5; 12301 } 12302 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 12303 const int foo = 10; 12304 if (!foo) return 0; 12305 } 12306 return !cs[0] && !zero.x; 12307#endif 12308 12309 ; 12310 return 0; 12311} 12312_ACEOF 12313if ac_fn_c_try_compile "$LINENO"; then : 12314 ac_cv_c_const=yes 12315else 12316 ac_cv_c_const=no 12317fi 12318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12319fi 12320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 12321$as_echo "$ac_cv_c_const" >&6; } 12322if test $ac_cv_c_const = no; then 12323 12324$as_echo "#define const /**/" >>confdefs.h 12325 12326fi 12327 12328ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 12329if test "x$ac_cv_type_size_t" = xyes; then : 12330 12331else 12332 12333cat >>confdefs.h <<_ACEOF 12334#define size_t unsigned int 12335_ACEOF 12336 12337fi 12338 12339 12340 12341 12342TESTPROGS="" 12343 12344hmac_list="" 12345 12346hashlibs="" 12347if test -d ${srcdir}/../md5 12348then 12349 TESTPROGS="$TESTPROGS md5hmactest${EXEEXT}" 12350 hmac_list="$hmac_list &hmac_md5," 12351 hashlibs="$hashlibs ../md5/libmd5.la" 12352fi 12353 12354if test -d ${srcdir}/../sha1 12355then 12356 TESTPROGS="$TESTPROGS sha1hmactest${EXEEXT}" 12357 hmac_list="$hmac_list &hmac_sha1, &hmac_sha256, " 12358 hashlibs="$hashlibs ../sha1/libsha1.la" 12359fi 12360 12361 12362hmac_list="$hmac_list 0" 12363 12364 12365 12366cat >>confdefs.h <<_ACEOF 12367#define HMAC_LIST $hmac_list 12368_ACEOF 12369 12370 12371ac_config_files="$ac_config_files Makefile" 12372 12373cat >confcache <<\_ACEOF 12374# This file is a shell script that caches the results of configure 12375# tests run on this system so they can be shared between configure 12376# scripts and configure runs, see configure's option --config-cache. 12377# It is not useful on other systems. If it contains results you don't 12378# want to keep, you may remove or edit it. 12379# 12380# config.status only pays attention to the cache file if you give it 12381# the --recheck option to rerun configure. 12382# 12383# `ac_cv_env_foo' variables (set or unset) will be overridden when 12384# loading this file, other *unset* `ac_cv_foo' will be assigned the 12385# following values. 12386 12387_ACEOF 12388 12389# The following way of writing the cache mishandles newlines in values, 12390# but we know of no workaround that is simple, portable, and efficient. 12391# So, we kill variables containing newlines. 12392# Ultrix sh set writes to stderr and can't be redirected directly, 12393# and sets the high bit in the cache file unless we assign to the vars. 12394( 12395 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12396 eval ac_val=\$$ac_var 12397 case $ac_val in #( 12398 *${as_nl}*) 12399 case $ac_var in #( 12400 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12401$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12402 esac 12403 case $ac_var in #( 12404 _ | IFS | as_nl) ;; #( 12405 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12406 *) { eval $ac_var=; unset $ac_var;} ;; 12407 esac ;; 12408 esac 12409 done 12410 12411 (set) 2>&1 | 12412 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12413 *${as_nl}ac_space=\ *) 12414 # `set' does not quote correctly, so add quotes: double-quote 12415 # substitution turns \\\\ into \\, and sed turns \\ into \. 12416 sed -n \ 12417 "s/'/'\\\\''/g; 12418 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12419 ;; #( 12420 *) 12421 # `set' quotes correctly as required by POSIX, so do not add quotes. 12422 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12423 ;; 12424 esac | 12425 sort 12426) | 12427 sed ' 12428 /^ac_cv_env_/b end 12429 t clear 12430 :clear 12431 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12432 t end 12433 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12434 :end' >>confcache 12435if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12436 if test -w "$cache_file"; then 12437 if test "x$cache_file" != "x/dev/null"; then 12438 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12439$as_echo "$as_me: updating cache $cache_file" >&6;} 12440 if test ! -f "$cache_file" || test -h "$cache_file"; then 12441 cat confcache >"$cache_file" 12442 else 12443 case $cache_file in #( 12444 */* | ?:*) 12445 mv -f confcache "$cache_file"$$ && 12446 mv -f "$cache_file"$$ "$cache_file" ;; #( 12447 *) 12448 mv -f confcache "$cache_file" ;; 12449 esac 12450 fi 12451 fi 12452 else 12453 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12454$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12455 fi 12456fi 12457rm -f confcache 12458 12459test "x$prefix" = xNONE && prefix=$ac_default_prefix 12460# Let make expand exec_prefix. 12461test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12462 12463DEFS=-DHAVE_CONFIG_H 12464 12465ac_libobjs= 12466ac_ltlibobjs= 12467U= 12468for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12469 # 1. Remove the extension, and $U if already installed. 12470 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12471 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12472 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12473 # will be set to the directory where LIBOBJS objects are built. 12474 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12475 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12476done 12477LIBOBJS=$ac_libobjs 12478 12479LTLIBOBJS=$ac_ltlibobjs 12480 12481 12482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12483$as_echo_n "checking that generated files are newer than configure... " >&6; } 12484 if test -n "$am_sleep_pid"; then 12485 # Hide warnings about reused PIDs. 12486 wait $am_sleep_pid 2>/dev/null 12487 fi 12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 12489$as_echo "done" >&6; } 12490 if test -n "$EXEEXT"; then 12491 am__EXEEXT_TRUE= 12492 am__EXEEXT_FALSE='#' 12493else 12494 am__EXEEXT_TRUE='#' 12495 am__EXEEXT_FALSE= 12496fi 12497 12498if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12499 as_fn_error $? "conditional \"AMDEP\" was never defined. 12500Usually this means the macro was only invoked conditionally." "$LINENO" 5 12501fi 12502if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12503 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12504Usually this means the macro was only invoked conditionally." "$LINENO" 5 12505fi 12506 12507: "${CONFIG_STATUS=./config.status}" 12508ac_write_fail=0 12509ac_clean_files_save=$ac_clean_files 12510ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12511{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12512$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12513as_write_fail=0 12514cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12515#! $SHELL 12516# Generated by $as_me. 12517# Run this file to recreate the current configuration. 12518# Compiler output produced by configure, useful for debugging 12519# configure, is in config.log if it exists. 12520 12521debug=false 12522ac_cs_recheck=false 12523ac_cs_silent=false 12524 12525SHELL=\${CONFIG_SHELL-$SHELL} 12526export SHELL 12527_ASEOF 12528cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12529## -------------------- ## 12530## M4sh Initialization. ## 12531## -------------------- ## 12532 12533# Be more Bourne compatible 12534DUALCASE=1; export DUALCASE # for MKS sh 12535if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12536 emulate sh 12537 NULLCMD=: 12538 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12539 # is contrary to our usage. Disable this feature. 12540 alias -g '${1+"$@"}'='"$@"' 12541 setopt NO_GLOB_SUBST 12542else 12543 case `(set -o) 2>/dev/null` in #( 12544 *posix*) : 12545 set -o posix ;; #( 12546 *) : 12547 ;; 12548esac 12549fi 12550 12551 12552as_nl=' 12553' 12554export as_nl 12555# Printing a long string crashes Solaris 7 /usr/bin/printf. 12556as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12557as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12558as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12559# Prefer a ksh shell builtin over an external printf program on Solaris, 12560# but without wasting forks for bash or zsh. 12561if test -z "$BASH_VERSION$ZSH_VERSION" \ 12562 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12563 as_echo='print -r --' 12564 as_echo_n='print -rn --' 12565elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12566 as_echo='printf %s\n' 12567 as_echo_n='printf %s' 12568else 12569 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12570 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12571 as_echo_n='/usr/ucb/echo -n' 12572 else 12573 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12574 as_echo_n_body='eval 12575 arg=$1; 12576 case $arg in #( 12577 *"$as_nl"*) 12578 expr "X$arg" : "X\\(.*\\)$as_nl"; 12579 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12580 esac; 12581 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12582 ' 12583 export as_echo_n_body 12584 as_echo_n='sh -c $as_echo_n_body as_echo' 12585 fi 12586 export as_echo_body 12587 as_echo='sh -c $as_echo_body as_echo' 12588fi 12589 12590# The user is always right. 12591if test "${PATH_SEPARATOR+set}" != set; then 12592 PATH_SEPARATOR=: 12593 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12594 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12595 PATH_SEPARATOR=';' 12596 } 12597fi 12598 12599 12600# IFS 12601# We need space, tab and new line, in precisely that order. Quoting is 12602# there to prevent editors from complaining about space-tab. 12603# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12604# splitting by setting IFS to empty value.) 12605IFS=" "" $as_nl" 12606 12607# Find who we are. Look in the path if we contain no directory separator. 12608as_myself= 12609case $0 in #(( 12610 *[\\/]* ) as_myself=$0 ;; 12611 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12612for as_dir in $PATH 12613do 12614 IFS=$as_save_IFS 12615 test -z "$as_dir" && as_dir=. 12616 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12617 done 12618IFS=$as_save_IFS 12619 12620 ;; 12621esac 12622# We did not find ourselves, most probably we were run as `sh COMMAND' 12623# in which case we are not to be found in the path. 12624if test "x$as_myself" = x; then 12625 as_myself=$0 12626fi 12627if test ! -f "$as_myself"; then 12628 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12629 exit 1 12630fi 12631 12632# Unset variables that we do not need and which cause bugs (e.g. in 12633# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12634# suppresses any "Segmentation fault" message there. '((' could 12635# trigger a bug in pdksh 5.2.14. 12636for as_var in BASH_ENV ENV MAIL MAILPATH 12637do eval test x\${$as_var+set} = xset \ 12638 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12639done 12640PS1='$ ' 12641PS2='> ' 12642PS4='+ ' 12643 12644# NLS nuisances. 12645LC_ALL=C 12646export LC_ALL 12647LANGUAGE=C 12648export LANGUAGE 12649 12650# CDPATH. 12651(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12652 12653 12654# as_fn_error STATUS ERROR [LINENO LOG_FD] 12655# ---------------------------------------- 12656# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12657# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12658# script with STATUS, using 1 if that was 0. 12659as_fn_error () 12660{ 12661 as_status=$1; test $as_status -eq 0 && as_status=1 12662 if test "$4"; then 12663 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12664 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12665 fi 12666 $as_echo "$as_me: error: $2" >&2 12667 as_fn_exit $as_status 12668} # as_fn_error 12669 12670 12671# as_fn_set_status STATUS 12672# ----------------------- 12673# Set $? to STATUS, without forking. 12674as_fn_set_status () 12675{ 12676 return $1 12677} # as_fn_set_status 12678 12679# as_fn_exit STATUS 12680# ----------------- 12681# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12682as_fn_exit () 12683{ 12684 set +e 12685 as_fn_set_status $1 12686 exit $1 12687} # as_fn_exit 12688 12689# as_fn_unset VAR 12690# --------------- 12691# Portably unset VAR. 12692as_fn_unset () 12693{ 12694 { eval $1=; unset $1;} 12695} 12696as_unset=as_fn_unset 12697# as_fn_append VAR VALUE 12698# ---------------------- 12699# Append the text in VALUE to the end of the definition contained in VAR. Take 12700# advantage of any shell optimizations that allow amortized linear growth over 12701# repeated appends, instead of the typical quadratic growth present in naive 12702# implementations. 12703if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12704 eval 'as_fn_append () 12705 { 12706 eval $1+=\$2 12707 }' 12708else 12709 as_fn_append () 12710 { 12711 eval $1=\$$1\$2 12712 } 12713fi # as_fn_append 12714 12715# as_fn_arith ARG... 12716# ------------------ 12717# Perform arithmetic evaluation on the ARGs, and store the result in the 12718# global $as_val. Take advantage of shells that can avoid forks. The arguments 12719# must be portable across $(()) and expr. 12720if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12721 eval 'as_fn_arith () 12722 { 12723 as_val=$(( $* )) 12724 }' 12725else 12726 as_fn_arith () 12727 { 12728 as_val=`expr "$@" || test $? -eq 1` 12729 } 12730fi # as_fn_arith 12731 12732 12733if expr a : '\(a\)' >/dev/null 2>&1 && 12734 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12735 as_expr=expr 12736else 12737 as_expr=false 12738fi 12739 12740if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12741 as_basename=basename 12742else 12743 as_basename=false 12744fi 12745 12746if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12747 as_dirname=dirname 12748else 12749 as_dirname=false 12750fi 12751 12752as_me=`$as_basename -- "$0" || 12753$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12754 X"$0" : 'X\(//\)$' \| \ 12755 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12756$as_echo X/"$0" | 12757 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12758 s//\1/ 12759 q 12760 } 12761 /^X\/\(\/\/\)$/{ 12762 s//\1/ 12763 q 12764 } 12765 /^X\/\(\/\).*/{ 12766 s//\1/ 12767 q 12768 } 12769 s/.*/./; q'` 12770 12771# Avoid depending upon Character Ranges. 12772as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12773as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12774as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12775as_cr_digits='0123456789' 12776as_cr_alnum=$as_cr_Letters$as_cr_digits 12777 12778ECHO_C= ECHO_N= ECHO_T= 12779case `echo -n x` in #((((( 12780-n*) 12781 case `echo 'xy\c'` in 12782 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12783 xy) ECHO_C='\c';; 12784 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12785 ECHO_T=' ';; 12786 esac;; 12787*) 12788 ECHO_N='-n';; 12789esac 12790 12791rm -f conf$$ conf$$.exe conf$$.file 12792if test -d conf$$.dir; then 12793 rm -f conf$$.dir/conf$$.file 12794else 12795 rm -f conf$$.dir 12796 mkdir conf$$.dir 2>/dev/null 12797fi 12798if (echo >conf$$.file) 2>/dev/null; then 12799 if ln -s conf$$.file conf$$ 2>/dev/null; then 12800 as_ln_s='ln -s' 12801 # ... but there are two gotchas: 12802 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12803 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12804 # In both cases, we have to default to `cp -pR'. 12805 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12806 as_ln_s='cp -pR' 12807 elif ln conf$$.file conf$$ 2>/dev/null; then 12808 as_ln_s=ln 12809 else 12810 as_ln_s='cp -pR' 12811 fi 12812else 12813 as_ln_s='cp -pR' 12814fi 12815rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12816rmdir conf$$.dir 2>/dev/null 12817 12818 12819# as_fn_mkdir_p 12820# ------------- 12821# Create "$as_dir" as a directory, including parents if necessary. 12822as_fn_mkdir_p () 12823{ 12824 12825 case $as_dir in #( 12826 -*) as_dir=./$as_dir;; 12827 esac 12828 test -d "$as_dir" || eval $as_mkdir_p || { 12829 as_dirs= 12830 while :; do 12831 case $as_dir in #( 12832 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12833 *) as_qdir=$as_dir;; 12834 esac 12835 as_dirs="'$as_qdir' $as_dirs" 12836 as_dir=`$as_dirname -- "$as_dir" || 12837$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12838 X"$as_dir" : 'X\(//\)[^/]' \| \ 12839 X"$as_dir" : 'X\(//\)$' \| \ 12840 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12841$as_echo X"$as_dir" | 12842 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12843 s//\1/ 12844 q 12845 } 12846 /^X\(\/\/\)[^/].*/{ 12847 s//\1/ 12848 q 12849 } 12850 /^X\(\/\/\)$/{ 12851 s//\1/ 12852 q 12853 } 12854 /^X\(\/\).*/{ 12855 s//\1/ 12856 q 12857 } 12858 s/.*/./; q'` 12859 test -d "$as_dir" && break 12860 done 12861 test -z "$as_dirs" || eval "mkdir $as_dirs" 12862 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12863 12864 12865} # as_fn_mkdir_p 12866if mkdir -p . 2>/dev/null; then 12867 as_mkdir_p='mkdir -p "$as_dir"' 12868else 12869 test -d ./-p && rmdir ./-p 12870 as_mkdir_p=false 12871fi 12872 12873 12874# as_fn_executable_p FILE 12875# ----------------------- 12876# Test if FILE is an executable regular file. 12877as_fn_executable_p () 12878{ 12879 test -f "$1" && test -x "$1" 12880} # as_fn_executable_p 12881as_test_x='test -x' 12882as_executable_p=as_fn_executable_p 12883 12884# Sed expression to map a string onto a valid CPP name. 12885as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12886 12887# Sed expression to map a string onto a valid variable name. 12888as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12889 12890 12891exec 6>&1 12892## ----------------------------------- ## 12893## Main body of $CONFIG_STATUS script. ## 12894## ----------------------------------- ## 12895_ASEOF 12896test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12897 12898cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12899# Save the log message, to keep $0 and so on meaningful, and to 12900# report actual input values of CONFIG_FILES etc. instead of their 12901# values after options handling. 12902ac_log=" 12903This file was extended by libhmac $as_me 1.00, which was 12904generated by GNU Autoconf 2.69. Invocation command line was 12905 12906 CONFIG_FILES = $CONFIG_FILES 12907 CONFIG_HEADERS = $CONFIG_HEADERS 12908 CONFIG_LINKS = $CONFIG_LINKS 12909 CONFIG_COMMANDS = $CONFIG_COMMANDS 12910 $ $0 $@ 12911 12912on `(hostname || uname -n) 2>/dev/null | sed 1q` 12913" 12914 12915_ACEOF 12916 12917case $ac_config_files in *" 12918"*) set x $ac_config_files; shift; ac_config_files=$*;; 12919esac 12920 12921case $ac_config_headers in *" 12922"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12923esac 12924 12925 12926cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12927# Files that config.status was made for. 12928config_files="$ac_config_files" 12929config_headers="$ac_config_headers" 12930config_commands="$ac_config_commands" 12931 12932_ACEOF 12933 12934cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12935ac_cs_usage="\ 12936\`$as_me' instantiates files and other configuration actions 12937from templates according to the current configuration. Unless the files 12938and actions are specified as TAGs, all are instantiated by default. 12939 12940Usage: $0 [OPTION]... [TAG]... 12941 12942 -h, --help print this help, then exit 12943 -V, --version print version number and configuration settings, then exit 12944 --config print configuration, then exit 12945 -q, --quiet, --silent 12946 do not print progress messages 12947 -d, --debug don't remove temporary files 12948 --recheck update $as_me by reconfiguring in the same conditions 12949 --file=FILE[:TEMPLATE] 12950 instantiate the configuration file FILE 12951 --header=FILE[:TEMPLATE] 12952 instantiate the configuration header FILE 12953 12954Configuration files: 12955$config_files 12956 12957Configuration headers: 12958$config_headers 12959 12960Configuration commands: 12961$config_commands 12962 12963Report bugs to <courier-users@lists.sourceforge.net>." 12964 12965_ACEOF 12966cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12967ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 12968ac_cs_version="\\ 12969libhmac config.status 1.00 12970configured by $0, generated by GNU Autoconf 2.69, 12971 with options \\"\$ac_cs_config\\" 12972 12973Copyright (C) 2012 Free Software Foundation, Inc. 12974This config.status script is free software; the Free Software Foundation 12975gives unlimited permission to copy, distribute and modify it." 12976 12977ac_pwd='$ac_pwd' 12978srcdir='$srcdir' 12979INSTALL='$INSTALL' 12980MKDIR_P='$MKDIR_P' 12981AWK='$AWK' 12982test -n "\$AWK" || AWK=awk 12983_ACEOF 12984 12985cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12986# The default lists apply if the user does not specify any file. 12987ac_need_defaults=: 12988while test $# != 0 12989do 12990 case $1 in 12991 --*=?*) 12992 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12993 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12994 ac_shift=: 12995 ;; 12996 --*=) 12997 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12998 ac_optarg= 12999 ac_shift=: 13000 ;; 13001 *) 13002 ac_option=$1 13003 ac_optarg=$2 13004 ac_shift=shift 13005 ;; 13006 esac 13007 13008 case $ac_option in 13009 # Handling of the options. 13010 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13011 ac_cs_recheck=: ;; 13012 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13013 $as_echo "$ac_cs_version"; exit ;; 13014 --config | --confi | --conf | --con | --co | --c ) 13015 $as_echo "$ac_cs_config"; exit ;; 13016 --debug | --debu | --deb | --de | --d | -d ) 13017 debug=: ;; 13018 --file | --fil | --fi | --f ) 13019 $ac_shift 13020 case $ac_optarg in 13021 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13022 '') as_fn_error $? "missing file argument" ;; 13023 esac 13024 as_fn_append CONFIG_FILES " '$ac_optarg'" 13025 ac_need_defaults=false;; 13026 --header | --heade | --head | --hea ) 13027 $ac_shift 13028 case $ac_optarg in 13029 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13030 esac 13031 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13032 ac_need_defaults=false;; 13033 --he | --h) 13034 # Conflict between --help and --header 13035 as_fn_error $? "ambiguous option: \`$1' 13036Try \`$0 --help' for more information.";; 13037 --help | --hel | -h ) 13038 $as_echo "$ac_cs_usage"; exit ;; 13039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13040 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13041 ac_cs_silent=: ;; 13042 13043 # This is an error. 13044 -*) as_fn_error $? "unrecognized option: \`$1' 13045Try \`$0 --help' for more information." ;; 13046 13047 *) as_fn_append ac_config_targets " $1" 13048 ac_need_defaults=false ;; 13049 13050 esac 13051 shift 13052done 13053 13054ac_configure_extra_args= 13055 13056if $ac_cs_silent; then 13057 exec 6>/dev/null 13058 ac_configure_extra_args="$ac_configure_extra_args --silent" 13059fi 13060 13061_ACEOF 13062cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13063if \$ac_cs_recheck; then 13064 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13065 shift 13066 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13067 CONFIG_SHELL='$SHELL' 13068 export CONFIG_SHELL 13069 exec "\$@" 13070fi 13071 13072_ACEOF 13073cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13074exec 5>>config.log 13075{ 13076 echo 13077 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13078## Running $as_me. ## 13079_ASBOX 13080 $as_echo "$ac_log" 13081} >&5 13082 13083_ACEOF 13084cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13085# 13086# INIT-COMMANDS 13087# 13088AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 13089 13090 13091# The HP-UX ksh and POSIX shell print the target directory to stdout 13092# if CDPATH is set. 13093(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13094 13095sed_quote_subst='$sed_quote_subst' 13096double_quote_subst='$double_quote_subst' 13097delay_variable_subst='$delay_variable_subst' 13098macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 13099macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 13100enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 13101enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 13102pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 13103enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 13104shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 13105SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 13106ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 13107PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 13108host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 13109host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 13110host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 13111build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 13112build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 13113build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 13114SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 13115Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 13116GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 13117EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 13118FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 13119LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 13120NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 13121LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 13122max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 13123ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 13124exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 13125lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 13126lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 13127lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 13128lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 13129lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 13130reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 13131reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 13132OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 13133deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 13134file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 13135file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 13136want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 13137DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 13138sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 13139AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 13140AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 13141archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 13142STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 13143RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 13144old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13145old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13146old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 13147lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 13148CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 13149CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 13150compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 13151GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 13152lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 13153lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 13154lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 13155lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 13156lt_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"`' 13157lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 13158nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 13159lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 13160lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 13161objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 13162MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 13163lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 13164lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 13165lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 13166lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 13167lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 13168need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 13169MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 13170DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 13171NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 13172LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 13173OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 13174OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 13175libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 13176shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 13177extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13178archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 13179enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 13180export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 13181whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 13182compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 13183old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 13184old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13185archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 13186archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13187module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 13188module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13189with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 13190allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 13191no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 13192hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 13193hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 13194hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 13195hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 13196hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 13197hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 13198hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 13199inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 13200link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 13201always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 13202export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 13203exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 13204include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 13205prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 13206postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 13207file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 13208variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 13209need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 13210need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 13211version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 13212runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 13213shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 13214shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 13215libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 13216library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 13217soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 13218install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 13219postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13220postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13221finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 13222finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 13223hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 13224sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 13225configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 13226configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 13227hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 13228enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 13229enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 13230enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 13231old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 13232striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 13233 13234LTCC='$LTCC' 13235LTCFLAGS='$LTCFLAGS' 13236compiler='$compiler_DEFAULT' 13237 13238# A function that is used when there is no print builtin or printf. 13239func_fallback_echo () 13240{ 13241 eval 'cat <<_LTECHO_EOF 13242\$1 13243_LTECHO_EOF' 13244} 13245 13246# Quote evaled strings. 13247for var in SHELL \ 13248ECHO \ 13249PATH_SEPARATOR \ 13250SED \ 13251GREP \ 13252EGREP \ 13253FGREP \ 13254LD \ 13255NM \ 13256LN_S \ 13257lt_SP2NL \ 13258lt_NL2SP \ 13259reload_flag \ 13260OBJDUMP \ 13261deplibs_check_method \ 13262file_magic_cmd \ 13263file_magic_glob \ 13264want_nocaseglob \ 13265DLLTOOL \ 13266sharedlib_from_linklib_cmd \ 13267AR \ 13268AR_FLAGS \ 13269archiver_list_spec \ 13270STRIP \ 13271RANLIB \ 13272CC \ 13273CFLAGS \ 13274compiler \ 13275lt_cv_sys_global_symbol_pipe \ 13276lt_cv_sys_global_symbol_to_cdecl \ 13277lt_cv_sys_global_symbol_to_import \ 13278lt_cv_sys_global_symbol_to_c_name_address \ 13279lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13280lt_cv_nm_interface \ 13281nm_file_list_spec \ 13282lt_cv_truncate_bin \ 13283lt_prog_compiler_no_builtin_flag \ 13284lt_prog_compiler_pic \ 13285lt_prog_compiler_wl \ 13286lt_prog_compiler_static \ 13287lt_cv_prog_compiler_c_o \ 13288need_locks \ 13289MANIFEST_TOOL \ 13290DSYMUTIL \ 13291NMEDIT \ 13292LIPO \ 13293OTOOL \ 13294OTOOL64 \ 13295shrext_cmds \ 13296export_dynamic_flag_spec \ 13297whole_archive_flag_spec \ 13298compiler_needs_object \ 13299with_gnu_ld \ 13300allow_undefined_flag \ 13301no_undefined_flag \ 13302hardcode_libdir_flag_spec \ 13303hardcode_libdir_separator \ 13304exclude_expsyms \ 13305include_expsyms \ 13306file_list_spec \ 13307variables_saved_for_relink \ 13308libname_spec \ 13309library_names_spec \ 13310soname_spec \ 13311install_override_mode \ 13312finish_eval \ 13313old_striplib \ 13314striplib; do 13315 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13316 *[\\\\\\\`\\"\\\$]*) 13317 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 13318 ;; 13319 *) 13320 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13321 ;; 13322 esac 13323done 13324 13325# Double-quote double-evaled strings. 13326for var in reload_cmds \ 13327old_postinstall_cmds \ 13328old_postuninstall_cmds \ 13329old_archive_cmds \ 13330extract_expsyms_cmds \ 13331old_archive_from_new_cmds \ 13332old_archive_from_expsyms_cmds \ 13333archive_cmds \ 13334archive_expsym_cmds \ 13335module_cmds \ 13336module_expsym_cmds \ 13337export_symbols_cmds \ 13338prelink_cmds \ 13339postlink_cmds \ 13340postinstall_cmds \ 13341postuninstall_cmds \ 13342finish_cmds \ 13343sys_lib_search_path_spec \ 13344configure_time_dlsearch_path \ 13345configure_time_lt_sys_library_path; do 13346 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13347 *[\\\\\\\`\\"\\\$]*) 13348 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 13349 ;; 13350 *) 13351 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13352 ;; 13353 esac 13354done 13355 13356ac_aux_dir='$ac_aux_dir' 13357 13358# See if we are running on zsh, and set the options that allow our 13359# commands through without removal of \ escapes INIT. 13360if test -n "\${ZSH_VERSION+set}"; then 13361 setopt NO_GLOB_SUBST 13362fi 13363 13364 13365 PACKAGE='$PACKAGE' 13366 VERSION='$VERSION' 13367 RM='$RM' 13368 ofile='$ofile' 13369 13370 13371 13372 13373_ACEOF 13374 13375cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13376 13377# Handling of arguments. 13378for ac_config_target in $ac_config_targets 13379do 13380 case $ac_config_target in 13381 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13382 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13383 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13384 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13385 13386 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13387 esac 13388done 13389 13390 13391# If the user did not use the arguments to specify the items to instantiate, 13392# then the envvar interface is used. Set only those that are not. 13393# We use the long form for the default assignment because of an extremely 13394# bizarre bug on SunOS 4.1.3. 13395if $ac_need_defaults; then 13396 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13397 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13398 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13399fi 13400 13401# Have a temporary directory for convenience. Make it in the build tree 13402# simply because there is no reason against having it here, and in addition, 13403# creating and moving files from /tmp can sometimes cause problems. 13404# Hook for its removal unless debugging. 13405# Note that there is a small window in which the directory will not be cleaned: 13406# after its creation but before its name has been assigned to `$tmp'. 13407$debug || 13408{ 13409 tmp= ac_tmp= 13410 trap 'exit_status=$? 13411 : "${ac_tmp:=$tmp}" 13412 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13413' 0 13414 trap 'as_fn_exit 1' 1 2 13 15 13415} 13416# Create a (secure) tmp directory for tmp files. 13417 13418{ 13419 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13420 test -d "$tmp" 13421} || 13422{ 13423 tmp=./conf$$-$RANDOM 13424 (umask 077 && mkdir "$tmp") 13425} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13426ac_tmp=$tmp 13427 13428# Set up the scripts for CONFIG_FILES section. 13429# No need to generate them if there are no CONFIG_FILES. 13430# This happens for instance with `./config.status config.h'. 13431if test -n "$CONFIG_FILES"; then 13432 13433 13434ac_cr=`echo X | tr X '\015'` 13435# On cygwin, bash can eat \r inside `` if the user requested igncr. 13436# But we know of no other shell where ac_cr would be empty at this 13437# point, so we can use a bashism as a fallback. 13438if test "x$ac_cr" = x; then 13439 eval ac_cr=\$\'\\r\' 13440fi 13441ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13442if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13443 ac_cs_awk_cr='\\r' 13444else 13445 ac_cs_awk_cr=$ac_cr 13446fi 13447 13448echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 13449_ACEOF 13450 13451 13452{ 13453 echo "cat >conf$$subs.awk <<_ACEOF" && 13454 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13455 echo "_ACEOF" 13456} >conf$$subs.sh || 13457 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13458ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13459ac_delim='%!_!# ' 13460for ac_last_try in false false false false false :; do 13461 . ./conf$$subs.sh || 13462 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13463 13464 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13465 if test $ac_delim_n = $ac_delim_num; then 13466 break 13467 elif $ac_last_try; then 13468 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13469 else 13470 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13471 fi 13472done 13473rm -f conf$$subs.sh 13474 13475cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13476cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13477_ACEOF 13478sed -n ' 13479h 13480s/^/S["/; s/!.*/"]=/ 13481p 13482g 13483s/^[^!]*!// 13484:repl 13485t repl 13486s/'"$ac_delim"'$// 13487t delim 13488:nl 13489h 13490s/\(.\{148\}\)..*/\1/ 13491t more1 13492s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13493p 13494n 13495b repl 13496:more1 13497s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13498p 13499g 13500s/.\{148\}// 13501t nl 13502:delim 13503h 13504s/\(.\{148\}\)..*/\1/ 13505t more2 13506s/["\\]/\\&/g; s/^/"/; s/$/"/ 13507p 13508b 13509:more2 13510s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13511p 13512g 13513s/.\{148\}// 13514t delim 13515' <conf$$subs.awk | sed ' 13516/^[^""]/{ 13517 N 13518 s/\n// 13519} 13520' >>$CONFIG_STATUS || ac_write_fail=1 13521rm -f conf$$subs.awk 13522cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13523_ACAWK 13524cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13525 for (key in S) S_is_set[key] = 1 13526 FS = "" 13527 13528} 13529{ 13530 line = $ 0 13531 nfields = split(line, field, "@") 13532 substed = 0 13533 len = length(field[1]) 13534 for (i = 2; i < nfields; i++) { 13535 key = field[i] 13536 keylen = length(key) 13537 if (S_is_set[key]) { 13538 value = S[key] 13539 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13540 len += length(value) + length(field[++i]) 13541 substed = 1 13542 } else 13543 len += 1 + keylen 13544 } 13545 13546 print line 13547} 13548 13549_ACAWK 13550_ACEOF 13551cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13552if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13553 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13554else 13555 cat 13556fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13557 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13558_ACEOF 13559 13560# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13561# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13562# trailing colons and then remove the whole line if VPATH becomes empty 13563# (actually we leave an empty line to preserve line numbers). 13564if test "x$srcdir" = x.; then 13565 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13566h 13567s/// 13568s/^/:/ 13569s/[ ]*$/:/ 13570s/:\$(srcdir):/:/g 13571s/:\${srcdir}:/:/g 13572s/:@srcdir@:/:/g 13573s/^:*// 13574s/:*$// 13575x 13576s/\(=[ ]*\).*/\1/ 13577G 13578s/\n// 13579s/^[^=]*=[ ]*$// 13580}' 13581fi 13582 13583cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13584fi # test -n "$CONFIG_FILES" 13585 13586# Set up the scripts for CONFIG_HEADERS section. 13587# No need to generate them if there are no CONFIG_HEADERS. 13588# This happens for instance with `./config.status Makefile'. 13589if test -n "$CONFIG_HEADERS"; then 13590cat >"$ac_tmp/defines.awk" <<\_ACAWK || 13591BEGIN { 13592_ACEOF 13593 13594# Transform confdefs.h into an awk script `defines.awk', embedded as 13595# here-document in config.status, that substitutes the proper values into 13596# config.h.in to produce config.h. 13597 13598# Create a delimiter string that does not exist in confdefs.h, to ease 13599# handling of long lines. 13600ac_delim='%!_!# ' 13601for ac_last_try in false false :; do 13602 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13603 if test -z "$ac_tt"; then 13604 break 13605 elif $ac_last_try; then 13606 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13607 else 13608 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13609 fi 13610done 13611 13612# For the awk script, D is an array of macro values keyed by name, 13613# likewise P contains macro parameters if any. Preserve backslash 13614# newline sequences. 13615 13616ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13617sed -n ' 13618s/.\{148\}/&'"$ac_delim"'/g 13619t rset 13620:rset 13621s/^[ ]*#[ ]*define[ ][ ]*/ / 13622t def 13623d 13624:def 13625s/\\$// 13626t bsnl 13627s/["\\]/\\&/g 13628s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13629D["\1"]=" \3"/p 13630s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13631d 13632:bsnl 13633s/["\\]/\\&/g 13634s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13635D["\1"]=" \3\\\\\\n"\\/p 13636t cont 13637s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13638t cont 13639d 13640:cont 13641n 13642s/.\{148\}/&'"$ac_delim"'/g 13643t clear 13644:clear 13645s/\\$// 13646t bsnlc 13647s/["\\]/\\&/g; s/^/"/; s/$/"/p 13648d 13649:bsnlc 13650s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13651b cont 13652' <confdefs.h | sed ' 13653s/'"$ac_delim"'/"\\\ 13654"/g' >>$CONFIG_STATUS || ac_write_fail=1 13655 13656cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13657 for (key in D) D_is_set[key] = 1 13658 FS = "" 13659} 13660/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13661 line = \$ 0 13662 split(line, arg, " ") 13663 if (arg[1] == "#") { 13664 defundef = arg[2] 13665 mac1 = arg[3] 13666 } else { 13667 defundef = substr(arg[1], 2) 13668 mac1 = arg[2] 13669 } 13670 split(mac1, mac2, "(") #) 13671 macro = mac2[1] 13672 prefix = substr(line, 1, index(line, defundef) - 1) 13673 if (D_is_set[macro]) { 13674 # Preserve the white space surrounding the "#". 13675 print prefix "define", macro P[macro] D[macro] 13676 next 13677 } else { 13678 # Replace #undef with comments. This is necessary, for example, 13679 # in the case of _POSIX_SOURCE, which is predefined and required 13680 # on some systems where configure will not decide to define it. 13681 if (defundef == "undef") { 13682 print "/*", prefix defundef, macro, "*/" 13683 next 13684 } 13685 } 13686} 13687{ print } 13688_ACAWK 13689_ACEOF 13690cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13691 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13692fi # test -n "$CONFIG_HEADERS" 13693 13694 13695eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13696shift 13697for ac_tag 13698do 13699 case $ac_tag in 13700 :[FHLC]) ac_mode=$ac_tag; continue;; 13701 esac 13702 case $ac_mode$ac_tag in 13703 :[FHL]*:*);; 13704 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 13705 :[FH]-) ac_tag=-:-;; 13706 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13707 esac 13708 ac_save_IFS=$IFS 13709 IFS=: 13710 set x $ac_tag 13711 IFS=$ac_save_IFS 13712 shift 13713 ac_file=$1 13714 shift 13715 13716 case $ac_mode in 13717 :L) ac_source=$1;; 13718 :[FH]) 13719 ac_file_inputs= 13720 for ac_f 13721 do 13722 case $ac_f in 13723 -) ac_f="$ac_tmp/stdin";; 13724 *) # Look for the file first in the build tree, then in the source tree 13725 # (if the path is not absolute). The absolute path cannot be DOS-style, 13726 # because $ac_f cannot contain `:'. 13727 test -f "$ac_f" || 13728 case $ac_f in 13729 [\\/$]*) false;; 13730 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13731 esac || 13732 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13733 esac 13734 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13735 as_fn_append ac_file_inputs " '$ac_f'" 13736 done 13737 13738 # Let's still pretend it is `configure' which instantiates (i.e., don't 13739 # use $as_me), people would be surprised to read: 13740 # /* config.h. Generated by config.status. */ 13741 configure_input='Generated from '` 13742 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13743 `' by configure.' 13744 if test x"$ac_file" != x-; then 13745 configure_input="$ac_file. $configure_input" 13746 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13747$as_echo "$as_me: creating $ac_file" >&6;} 13748 fi 13749 # Neutralize special characters interpreted by sed in replacement strings. 13750 case $configure_input in #( 13751 *\&* | *\|* | *\\* ) 13752 ac_sed_conf_input=`$as_echo "$configure_input" | 13753 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13754 *) ac_sed_conf_input=$configure_input;; 13755 esac 13756 13757 case $ac_tag in 13758 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13759 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13760 esac 13761 ;; 13762 esac 13763 13764 ac_dir=`$as_dirname -- "$ac_file" || 13765$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13766 X"$ac_file" : 'X\(//\)[^/]' \| \ 13767 X"$ac_file" : 'X\(//\)$' \| \ 13768 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13769$as_echo X"$ac_file" | 13770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13771 s//\1/ 13772 q 13773 } 13774 /^X\(\/\/\)[^/].*/{ 13775 s//\1/ 13776 q 13777 } 13778 /^X\(\/\/\)$/{ 13779 s//\1/ 13780 q 13781 } 13782 /^X\(\/\).*/{ 13783 s//\1/ 13784 q 13785 } 13786 s/.*/./; q'` 13787 as_dir="$ac_dir"; as_fn_mkdir_p 13788 ac_builddir=. 13789 13790case "$ac_dir" in 13791.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13792*) 13793 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13794 # A ".." for each directory in $ac_dir_suffix. 13795 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13796 case $ac_top_builddir_sub in 13797 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13798 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13799 esac ;; 13800esac 13801ac_abs_top_builddir=$ac_pwd 13802ac_abs_builddir=$ac_pwd$ac_dir_suffix 13803# for backward compatibility: 13804ac_top_builddir=$ac_top_build_prefix 13805 13806case $srcdir in 13807 .) # We are building in place. 13808 ac_srcdir=. 13809 ac_top_srcdir=$ac_top_builddir_sub 13810 ac_abs_top_srcdir=$ac_pwd ;; 13811 [\\/]* | ?:[\\/]* ) # Absolute name. 13812 ac_srcdir=$srcdir$ac_dir_suffix; 13813 ac_top_srcdir=$srcdir 13814 ac_abs_top_srcdir=$srcdir ;; 13815 *) # Relative name. 13816 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13817 ac_top_srcdir=$ac_top_build_prefix$srcdir 13818 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13819esac 13820ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13821 13822 13823 case $ac_mode in 13824 :F) 13825 # 13826 # CONFIG_FILE 13827 # 13828 13829 case $INSTALL in 13830 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13831 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13832 esac 13833 ac_MKDIR_P=$MKDIR_P 13834 case $MKDIR_P in 13835 [\\/$]* | ?:[\\/]* ) ;; 13836 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13837 esac 13838_ACEOF 13839 13840cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13841# If the template does not know about datarootdir, expand it. 13842# FIXME: This hack should be removed a few years after 2.60. 13843ac_datarootdir_hack=; ac_datarootdir_seen= 13844ac_sed_dataroot=' 13845/datarootdir/ { 13846 p 13847 q 13848} 13849/@datadir@/p 13850/@docdir@/p 13851/@infodir@/p 13852/@localedir@/p 13853/@mandir@/p' 13854case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13855*datarootdir*) ac_datarootdir_seen=yes;; 13856*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13858$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13859_ACEOF 13860cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13861 ac_datarootdir_hack=' 13862 s&@datadir@&$datadir&g 13863 s&@docdir@&$docdir&g 13864 s&@infodir@&$infodir&g 13865 s&@localedir@&$localedir&g 13866 s&@mandir@&$mandir&g 13867 s&\\\${datarootdir}&$datarootdir&g' ;; 13868esac 13869_ACEOF 13870 13871# Neutralize VPATH when `$srcdir' = `.'. 13872# Shell code in configure.ac might set extrasub. 13873# FIXME: do we really want to maintain this feature? 13874cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13875ac_sed_extra="$ac_vpsub 13876$extrasub 13877_ACEOF 13878cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13879:t 13880/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13881s|@configure_input@|$ac_sed_conf_input|;t t 13882s&@top_builddir@&$ac_top_builddir_sub&;t t 13883s&@top_build_prefix@&$ac_top_build_prefix&;t t 13884s&@srcdir@&$ac_srcdir&;t t 13885s&@abs_srcdir@&$ac_abs_srcdir&;t t 13886s&@top_srcdir@&$ac_top_srcdir&;t t 13887s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13888s&@builddir@&$ac_builddir&;t t 13889s&@abs_builddir@&$ac_abs_builddir&;t t 13890s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13891s&@INSTALL@&$ac_INSTALL&;t t 13892s&@MKDIR_P@&$ac_MKDIR_P&;t t 13893$ac_datarootdir_hack 13894" 13895eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13896 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13897 13898test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13899 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13900 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13901 "$ac_tmp/out"`; test -z "$ac_out"; } && 13902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13903which seems to be undefined. Please make sure it is defined" >&5 13904$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13905which seems to be undefined. Please make sure it is defined" >&2;} 13906 13907 rm -f "$ac_tmp/stdin" 13908 case $ac_file in 13909 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13910 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13911 esac \ 13912 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13913 ;; 13914 :H) 13915 # 13916 # CONFIG_HEADER 13917 # 13918 if test x"$ac_file" != x-; then 13919 { 13920 $as_echo "/* $configure_input */" \ 13921 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13922 } >"$ac_tmp/config.h" \ 13923 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13924 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13925 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13926$as_echo "$as_me: $ac_file is unchanged" >&6;} 13927 else 13928 rm -f "$ac_file" 13929 mv "$ac_tmp/config.h" "$ac_file" \ 13930 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13931 fi 13932 else 13933 $as_echo "/* $configure_input */" \ 13934 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13935 || as_fn_error $? "could not create -" "$LINENO" 5 13936 fi 13937# Compute "$ac_file"'s index in $config_headers. 13938_am_arg="$ac_file" 13939_am_stamp_count=1 13940for _am_header in $config_headers :; do 13941 case $_am_header in 13942 $_am_arg | $_am_arg:* ) 13943 break ;; 13944 * ) 13945 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13946 esac 13947done 13948echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13949$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13950 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13951 X"$_am_arg" : 'X\(//\)$' \| \ 13952 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13953$as_echo X"$_am_arg" | 13954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13955 s//\1/ 13956 q 13957 } 13958 /^X\(\/\/\)[^/].*/{ 13959 s//\1/ 13960 q 13961 } 13962 /^X\(\/\/\)$/{ 13963 s//\1/ 13964 q 13965 } 13966 /^X\(\/\).*/{ 13967 s//\1/ 13968 q 13969 } 13970 s/.*/./; q'`/stamp-h$_am_stamp_count 13971 ;; 13972 13973 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13974$as_echo "$as_me: executing $ac_file commands" >&6;} 13975 ;; 13976 esac 13977 13978 13979 case $ac_file$ac_mode in 13980 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13981 # Older Autoconf quotes --file arguments for eval, but not when files 13982 # are listed without --file. Let's play safe and only enable the eval 13983 # if we detect the quoting. 13984 # TODO: see whether this extra hack can be removed once we start 13985 # requiring Autoconf 2.70 or later. 13986 case $CONFIG_FILES in #( 13987 *\'*) : 13988 eval set x "$CONFIG_FILES" ;; #( 13989 *) : 13990 set x $CONFIG_FILES ;; #( 13991 *) : 13992 ;; 13993esac 13994 shift 13995 # Used to flag and report bootstrapping failures. 13996 am_rc=0 13997 for am_mf 13998 do 13999 # Strip MF so we end up with the name of the file. 14000 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 14001 # Check whether this is an Automake generated Makefile which includes 14002 # dependency-tracking related rules and includes. 14003 # Grep'ing the whole file directly is not great: AIX grep has a line 14004 # limit of 2048, but all sed's we know have understand at least 4000. 14005 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 14006 || continue 14007 am_dirpart=`$as_dirname -- "$am_mf" || 14008$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14009 X"$am_mf" : 'X\(//\)[^/]' \| \ 14010 X"$am_mf" : 'X\(//\)$' \| \ 14011 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 14012$as_echo X"$am_mf" | 14013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14014 s//\1/ 14015 q 14016 } 14017 /^X\(\/\/\)[^/].*/{ 14018 s//\1/ 14019 q 14020 } 14021 /^X\(\/\/\)$/{ 14022 s//\1/ 14023 q 14024 } 14025 /^X\(\/\).*/{ 14026 s//\1/ 14027 q 14028 } 14029 s/.*/./; q'` 14030 am_filepart=`$as_basename -- "$am_mf" || 14031$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 14032 X"$am_mf" : 'X\(//\)$' \| \ 14033 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 14034$as_echo X/"$am_mf" | 14035 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14036 s//\1/ 14037 q 14038 } 14039 /^X\/\(\/\/\)$/{ 14040 s//\1/ 14041 q 14042 } 14043 /^X\/\(\/\).*/{ 14044 s//\1/ 14045 q 14046 } 14047 s/.*/./; q'` 14048 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 14049 && sed -e '/# am--include-marker/d' "$am_filepart" \ 14050 | $MAKE -f - am--depfiles" >&5 14051 (cd "$am_dirpart" \ 14052 && sed -e '/# am--include-marker/d' "$am_filepart" \ 14053 | $MAKE -f - am--depfiles) >&5 2>&5 14054 ac_status=$? 14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14056 (exit $ac_status); } || am_rc=$? 14057 done 14058 if test $am_rc -ne 0; then 14059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14060$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14061as_fn_error $? "Something went wrong bootstrapping makefile fragments 14062 for automatic dependency tracking. If GNU make was not used, consider 14063 re-running the configure script with MAKE=\"gmake\" (or whatever is 14064 necessary). You can also try re-running configure with the 14065 '--disable-dependency-tracking' option to at least be able to build 14066 the package (albeit without support for automatic dependency tracking). 14067See \`config.log' for more details" "$LINENO" 5; } 14068 fi 14069 { am_dirpart=; unset am_dirpart;} 14070 { am_filepart=; unset am_filepart;} 14071 { am_mf=; unset am_mf;} 14072 { am_rc=; unset am_rc;} 14073 rm -f conftest-deps.mk 14074} 14075 ;; 14076 "libtool":C) 14077 14078 # See if we are running on zsh, and set the options that allow our 14079 # commands through without removal of \ escapes. 14080 if test -n "${ZSH_VERSION+set}"; then 14081 setopt NO_GLOB_SUBST 14082 fi 14083 14084 cfgfile=${ofile}T 14085 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14086 $RM "$cfgfile" 14087 14088 cat <<_LT_EOF >> "$cfgfile" 14089#! $SHELL 14090# Generated automatically by $as_me ($PACKAGE) $VERSION 14091# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14092# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14093 14094# Provide generalized library-building support services. 14095# Written by Gordon Matzigkeit, 1996 14096 14097# Copyright (C) 2014 Free Software Foundation, Inc. 14098# This is free software; see the source for copying conditions. There is NO 14099# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14100 14101# GNU Libtool is free software; you can redistribute it and/or modify 14102# it under the terms of the GNU General Public License as published by 14103# the Free Software Foundation; either version 2 of of the License, or 14104# (at your option) any later version. 14105# 14106# As a special exception to the GNU General Public License, if you 14107# distribute this file as part of a program or library that is built 14108# using GNU Libtool, you may include this file under the same 14109# distribution terms that you use for the rest of that program. 14110# 14111# GNU Libtool is distributed in the hope that it will be useful, but 14112# WITHOUT ANY WARRANTY; without even the implied warranty of 14113# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14114# GNU General Public License for more details. 14115# 14116# You should have received a copy of the GNU General Public License 14117# along with this program. If not, see <http://www.gnu.org/licenses/>. 14118 14119 14120# The names of the tagged configurations supported by this script. 14121available_tags='' 14122 14123# Configured defaults for sys_lib_dlsearch_path munging. 14124: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 14125 14126# ### BEGIN LIBTOOL CONFIG 14127 14128# Which release of libtool.m4 was used? 14129macro_version=$macro_version 14130macro_revision=$macro_revision 14131 14132# Whether or not to build shared libraries. 14133build_libtool_libs=$enable_shared 14134 14135# Whether or not to build static libraries. 14136build_old_libs=$enable_static 14137 14138# What type of objects to build. 14139pic_mode=$pic_mode 14140 14141# Whether or not to optimize for fast installation. 14142fast_install=$enable_fast_install 14143 14144# Shared archive member basename,for filename based shared library versioning on AIX. 14145shared_archive_member_spec=$shared_archive_member_spec 14146 14147# Shell to use when invoking shell scripts. 14148SHELL=$lt_SHELL 14149 14150# An echo program that protects backslashes. 14151ECHO=$lt_ECHO 14152 14153# The PATH separator for the build system. 14154PATH_SEPARATOR=$lt_PATH_SEPARATOR 14155 14156# The host system. 14157host_alias=$host_alias 14158host=$host 14159host_os=$host_os 14160 14161# The build system. 14162build_alias=$build_alias 14163build=$build 14164build_os=$build_os 14165 14166# A sed program that does not truncate output. 14167SED=$lt_SED 14168 14169# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14170Xsed="\$SED -e 1s/^X//" 14171 14172# A grep program that handles long lines. 14173GREP=$lt_GREP 14174 14175# An ERE matcher. 14176EGREP=$lt_EGREP 14177 14178# A literal string matcher. 14179FGREP=$lt_FGREP 14180 14181# A BSD- or MS-compatible name lister. 14182NM=$lt_NM 14183 14184# Whether we need soft or hard links. 14185LN_S=$lt_LN_S 14186 14187# What is the maximum length of a command? 14188max_cmd_len=$max_cmd_len 14189 14190# Object file suffix (normally "o"). 14191objext=$ac_objext 14192 14193# Executable file suffix (normally ""). 14194exeext=$exeext 14195 14196# whether the shell understands "unset". 14197lt_unset=$lt_unset 14198 14199# turn spaces into newlines. 14200SP2NL=$lt_lt_SP2NL 14201 14202# turn newlines into spaces. 14203NL2SP=$lt_lt_NL2SP 14204 14205# convert \$build file names to \$host format. 14206to_host_file_cmd=$lt_cv_to_host_file_cmd 14207 14208# convert \$build files to toolchain format. 14209to_tool_file_cmd=$lt_cv_to_tool_file_cmd 14210 14211# An object symbol dumper. 14212OBJDUMP=$lt_OBJDUMP 14213 14214# Method to check whether dependent libraries are shared objects. 14215deplibs_check_method=$lt_deplibs_check_method 14216 14217# Command to use when deplibs_check_method = "file_magic". 14218file_magic_cmd=$lt_file_magic_cmd 14219 14220# How to find potential files when deplibs_check_method = "file_magic". 14221file_magic_glob=$lt_file_magic_glob 14222 14223# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 14224want_nocaseglob=$lt_want_nocaseglob 14225 14226# DLL creation program. 14227DLLTOOL=$lt_DLLTOOL 14228 14229# Command to associate shared and link libraries. 14230sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 14231 14232# The archiver. 14233AR=$lt_AR 14234 14235# Flags to create an archive. 14236AR_FLAGS=$lt_AR_FLAGS 14237 14238# How to feed a file listing to the archiver. 14239archiver_list_spec=$lt_archiver_list_spec 14240 14241# A symbol stripping program. 14242STRIP=$lt_STRIP 14243 14244# Commands used to install an old-style archive. 14245RANLIB=$lt_RANLIB 14246old_postinstall_cmds=$lt_old_postinstall_cmds 14247old_postuninstall_cmds=$lt_old_postuninstall_cmds 14248 14249# Whether to use a lock for old archive extraction. 14250lock_old_archive_extraction=$lock_old_archive_extraction 14251 14252# A C compiler. 14253LTCC=$lt_CC 14254 14255# LTCC compiler flags. 14256LTCFLAGS=$lt_CFLAGS 14257 14258# Take the output of nm and produce a listing of raw symbols and C names. 14259global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14260 14261# Transform the output of nm in a proper C declaration. 14262global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14263 14264# Transform the output of nm into a list of symbols to manually relocate. 14265global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 14266 14267# Transform the output of nm in a C name address pair. 14268global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14269 14270# Transform the output of nm in a C name address pair when lib prefix is needed. 14271global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14272 14273# The name lister interface. 14274nm_interface=$lt_lt_cv_nm_interface 14275 14276# Specify filename containing input files for \$NM. 14277nm_file_list_spec=$lt_nm_file_list_spec 14278 14279# The root where to search for dependent libraries,and where our libraries should be installed. 14280lt_sysroot=$lt_sysroot 14281 14282# Command to truncate a binary pipe. 14283lt_truncate_bin=$lt_lt_cv_truncate_bin 14284 14285# The name of the directory that contains temporary libtool files. 14286objdir=$objdir 14287 14288# Used to examine libraries when file_magic_cmd begins with "file". 14289MAGIC_CMD=$MAGIC_CMD 14290 14291# Must we lock files when doing compilation? 14292need_locks=$lt_need_locks 14293 14294# Manifest tool. 14295MANIFEST_TOOL=$lt_MANIFEST_TOOL 14296 14297# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14298DSYMUTIL=$lt_DSYMUTIL 14299 14300# Tool to change global to local symbols on Mac OS X. 14301NMEDIT=$lt_NMEDIT 14302 14303# Tool to manipulate fat objects and archives on Mac OS X. 14304LIPO=$lt_LIPO 14305 14306# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14307OTOOL=$lt_OTOOL 14308 14309# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14310OTOOL64=$lt_OTOOL64 14311 14312# Old archive suffix (normally "a"). 14313libext=$libext 14314 14315# Shared library suffix (normally ".so"). 14316shrext_cmds=$lt_shrext_cmds 14317 14318# The commands to extract the exported symbol list from a shared archive. 14319extract_expsyms_cmds=$lt_extract_expsyms_cmds 14320 14321# Variables whose values should be saved in libtool wrapper scripts and 14322# restored at link time. 14323variables_saved_for_relink=$lt_variables_saved_for_relink 14324 14325# Do we need the "lib" prefix for modules? 14326need_lib_prefix=$need_lib_prefix 14327 14328# Do we need a version for libraries? 14329need_version=$need_version 14330 14331# Library versioning type. 14332version_type=$version_type 14333 14334# Shared library runtime path variable. 14335runpath_var=$runpath_var 14336 14337# Shared library path variable. 14338shlibpath_var=$shlibpath_var 14339 14340# Is shlibpath searched before the hard-coded library search path? 14341shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14342 14343# Format of library name prefix. 14344libname_spec=$lt_libname_spec 14345 14346# List of archive names. First name is the real one, the rest are links. 14347# The last name is the one that the linker finds with -lNAME 14348library_names_spec=$lt_library_names_spec 14349 14350# The coded name of the library, if different from the real name. 14351soname_spec=$lt_soname_spec 14352 14353# Permission mode override for installation of shared libraries. 14354install_override_mode=$lt_install_override_mode 14355 14356# Command to use after installation of a shared archive. 14357postinstall_cmds=$lt_postinstall_cmds 14358 14359# Command to use after uninstallation of a shared archive. 14360postuninstall_cmds=$lt_postuninstall_cmds 14361 14362# Commands used to finish a libtool library installation in a directory. 14363finish_cmds=$lt_finish_cmds 14364 14365# As "finish_cmds", except a single script fragment to be evaled but 14366# not shown. 14367finish_eval=$lt_finish_eval 14368 14369# Whether we should hardcode library paths into libraries. 14370hardcode_into_libs=$hardcode_into_libs 14371 14372# Compile-time system search path for libraries. 14373sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14374 14375# Detected run-time system search path for libraries. 14376sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 14377 14378# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 14379configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 14380 14381# Whether dlopen is supported. 14382dlopen_support=$enable_dlopen 14383 14384# Whether dlopen of programs is supported. 14385dlopen_self=$enable_dlopen_self 14386 14387# Whether dlopen of statically linked programs is supported. 14388dlopen_self_static=$enable_dlopen_self_static 14389 14390# Commands to strip libraries. 14391old_striplib=$lt_old_striplib 14392striplib=$lt_striplib 14393 14394 14395# The linker used to build libraries. 14396LD=$lt_LD 14397 14398# How to create reloadable object files. 14399reload_flag=$lt_reload_flag 14400reload_cmds=$lt_reload_cmds 14401 14402# Commands used to build an old-style archive. 14403old_archive_cmds=$lt_old_archive_cmds 14404 14405# A language specific compiler. 14406CC=$lt_compiler 14407 14408# Is the compiler the GNU compiler? 14409with_gcc=$GCC 14410 14411# Compiler flag to turn off builtin functions. 14412no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14413 14414# Additional compiler flags for building library objects. 14415pic_flag=$lt_lt_prog_compiler_pic 14416 14417# How to pass a linker flag through the compiler. 14418wl=$lt_lt_prog_compiler_wl 14419 14420# Compiler flag to prevent dynamic linking. 14421link_static_flag=$lt_lt_prog_compiler_static 14422 14423# Does compiler simultaneously support -c and -o options? 14424compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14425 14426# Whether or not to add -lc for building shared libraries. 14427build_libtool_need_lc=$archive_cmds_need_lc 14428 14429# Whether or not to disallow shared libs when runtime libs are static. 14430allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14431 14432# Compiler flag to allow reflexive dlopens. 14433export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14434 14435# Compiler flag to generate shared objects directly from archives. 14436whole_archive_flag_spec=$lt_whole_archive_flag_spec 14437 14438# Whether the compiler copes with passing no objects directly. 14439compiler_needs_object=$lt_compiler_needs_object 14440 14441# Create an old-style archive from a shared archive. 14442old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14443 14444# Create a temporary old-style archive to link instead of a shared archive. 14445old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14446 14447# Commands used to build a shared archive. 14448archive_cmds=$lt_archive_cmds 14449archive_expsym_cmds=$lt_archive_expsym_cmds 14450 14451# Commands used to build a loadable module if different from building 14452# a shared archive. 14453module_cmds=$lt_module_cmds 14454module_expsym_cmds=$lt_module_expsym_cmds 14455 14456# Whether we are building with GNU ld or not. 14457with_gnu_ld=$lt_with_gnu_ld 14458 14459# Flag that allows shared libraries with undefined symbols to be built. 14460allow_undefined_flag=$lt_allow_undefined_flag 14461 14462# Flag that enforces no undefined symbols. 14463no_undefined_flag=$lt_no_undefined_flag 14464 14465# Flag to hardcode \$libdir into a binary during linking. 14466# This must work even if \$libdir does not exist 14467hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14468 14469# Whether we need a single "-rpath" flag with a separated argument. 14470hardcode_libdir_separator=$lt_hardcode_libdir_separator 14471 14472# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 14473# DIR into the resulting binary. 14474hardcode_direct=$hardcode_direct 14475 14476# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 14477# DIR into the resulting binary and the resulting library dependency is 14478# "absolute",i.e impossible to change by setting \$shlibpath_var if the 14479# library is relocated. 14480hardcode_direct_absolute=$hardcode_direct_absolute 14481 14482# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14483# into the resulting binary. 14484hardcode_minus_L=$hardcode_minus_L 14485 14486# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14487# into the resulting binary. 14488hardcode_shlibpath_var=$hardcode_shlibpath_var 14489 14490# Set to "yes" if building a shared library automatically hardcodes DIR 14491# into the library and all subsequent libraries and executables linked 14492# against it. 14493hardcode_automatic=$hardcode_automatic 14494 14495# Set to yes if linker adds runtime paths of dependent libraries 14496# to runtime path list. 14497inherit_rpath=$inherit_rpath 14498 14499# Whether libtool must link a program against all its dependency libraries. 14500link_all_deplibs=$link_all_deplibs 14501 14502# Set to "yes" if exported symbols are required. 14503always_export_symbols=$always_export_symbols 14504 14505# The commands to list exported symbols. 14506export_symbols_cmds=$lt_export_symbols_cmds 14507 14508# Symbols that should not be listed in the preloaded symbols. 14509exclude_expsyms=$lt_exclude_expsyms 14510 14511# Symbols that must always be exported. 14512include_expsyms=$lt_include_expsyms 14513 14514# Commands necessary for linking programs (against libraries) with templates. 14515prelink_cmds=$lt_prelink_cmds 14516 14517# Commands necessary for finishing linking programs. 14518postlink_cmds=$lt_postlink_cmds 14519 14520# Specify filename containing input files. 14521file_list_spec=$lt_file_list_spec 14522 14523# How to hardcode a shared library path into an executable. 14524hardcode_action=$hardcode_action 14525 14526# ### END LIBTOOL CONFIG 14527 14528_LT_EOF 14529 14530 cat <<'_LT_EOF' >> "$cfgfile" 14531 14532# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 14533 14534# func_munge_path_list VARIABLE PATH 14535# ----------------------------------- 14536# VARIABLE is name of variable containing _space_ separated list of 14537# directories to be munged by the contents of PATH, which is string 14538# having a format: 14539# "DIR[:DIR]:" 14540# string "DIR[ DIR]" will be prepended to VARIABLE 14541# ":DIR[:DIR]" 14542# string "DIR[ DIR]" will be appended to VARIABLE 14543# "DIRP[:DIRP]::[DIRA:]DIRA" 14544# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 14545# "DIRA[ DIRA]" will be appended to VARIABLE 14546# "DIR[:DIR]" 14547# VARIABLE will be replaced by "DIR[ DIR]" 14548func_munge_path_list () 14549{ 14550 case x$2 in 14551 x) 14552 ;; 14553 *:) 14554 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 14555 ;; 14556 x:*) 14557 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 14558 ;; 14559 *::*) 14560 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 14561 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 14562 ;; 14563 *) 14564 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 14565 ;; 14566 esac 14567} 14568 14569 14570# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 14571func_cc_basename () 14572{ 14573 for cc_temp in $*""; do 14574 case $cc_temp in 14575 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14576 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14577 \-*) ;; 14578 *) break;; 14579 esac 14580 done 14581 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 14582} 14583 14584 14585# ### END FUNCTIONS SHARED WITH CONFIGURE 14586 14587_LT_EOF 14588 14589 case $host_os in 14590 aix3*) 14591 cat <<\_LT_EOF >> "$cfgfile" 14592# AIX sometimes has problems with the GCC collect2 program. For some 14593# reason, if we set the COLLECT_NAMES environment variable, the problems 14594# vanish in a puff of smoke. 14595if test set != "${COLLECT_NAMES+set}"; then 14596 COLLECT_NAMES= 14597 export COLLECT_NAMES 14598fi 14599_LT_EOF 14600 ;; 14601 esac 14602 14603 14604ltmain=$ac_aux_dir/ltmain.sh 14605 14606 14607 # We use sed instead of cat because bash on DJGPP gets confused if 14608 # if finds mixed CR/LF and LF-only lines. Since sed operates in 14609 # text mode, it properly converts lines to CR/LF. This bash problem 14610 # is reportedly fixed, but why not run on old versions too? 14611 sed '$q' "$ltmain" >> "$cfgfile" \ 14612 || (rm -f "$cfgfile"; exit 1) 14613 14614 mv -f "$cfgfile" "$ofile" || 14615 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14616 chmod +x "$ofile" 14617 14618 ;; 14619 14620 esac 14621done # for ac_tag 14622 14623 14624as_fn_exit 0 14625_ACEOF 14626ac_clean_files=$ac_clean_files_save 14627 14628test $ac_write_fail = 0 || 14629 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 14630 14631 14632# configure is writing to config.log, and then calls config.status. 14633# config.status does its own redirection, appending to config.log. 14634# Unfortunately, on DOS this fails, as config.log is still kept open 14635# by configure, so config.status won't be able to write to it; its 14636# output is simply discarded. So we exec the FD to /dev/null, 14637# effectively closing config.log, so it can be properly (re)opened and 14638# appended to by config.status. When coming back to configure, we 14639# need to make the FD available again. 14640if test "$no_create" != yes; then 14641 ac_cs_success=: 14642 ac_config_status_args= 14643 test "$silent" = yes && 14644 ac_config_status_args="$ac_config_status_args --quiet" 14645 exec 5>/dev/null 14646 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14647 exec 5>>config.log 14648 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14649 # would make configure fail if this is the last instruction. 14650 $ac_cs_success || as_fn_exit 1 14651fi 14652if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14654$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14655fi 14656 14657