1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for ccid 1.4.14. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1 200 201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 PATH=/empty FPATH=/empty; export PATH FPATH 206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME='ccid' 589PACKAGE_TARNAME='ccid' 590PACKAGE_VERSION='1.4.14' 591PACKAGE_STRING='ccid 1.4.14' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595ac_unique_file="src/ifdhandler.c" 596ac_default_prefix=/usr/local 597# Factoring default headers for most tests. 598ac_includes_default="\ 599#include <stdio.h> 600#ifdef HAVE_SYS_TYPES_H 601# include <sys/types.h> 602#endif 603#ifdef HAVE_SYS_STAT_H 604# include <sys/stat.h> 605#endif 606#ifdef STDC_HEADERS 607# include <stdlib.h> 608# include <stddef.h> 609#else 610# ifdef HAVE_STDLIB_H 611# include <stdlib.h> 612# endif 613#endif 614#ifdef HAVE_STRING_H 615# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 616# include <memory.h> 617# endif 618# include <string.h> 619#endif 620#ifdef HAVE_STRINGS_H 621# include <strings.h> 622#endif 623#ifdef HAVE_INTTYPES_H 624# include <inttypes.h> 625#endif 626#ifdef HAVE_STDINT_H 627# include <stdint.h> 628#endif 629#ifdef HAVE_UNISTD_H 630# include <unistd.h> 631#endif" 632 633ac_subst_vars='am__EXEEXT_FALSE 634am__EXEEXT_TRUE 635LTLIBOBJS 636LIBOBJS 637sysconfdir_exp 638bindir_exp 639serialconfdir 640ccidtwindir 641usbdropdir 642bundle 643ac_aux_dir 644NOCLASS 645WITHOUT_PCSC_FALSE 646WITHOUT_PCSC_TRUE 647WITH_TWIN_SERIAL_FALSE 648WITH_TWIN_SERIAL_TRUE 649PTHREAD_CFLAGS 650PTHREAD_LIBS 651PTHREAD_CC 652ax_pthread_config 653SYMBOL_VISIBILITY 654WITH_LIBUSB_FALSE 655WITH_LIBUSB_TRUE 656LIBUSB_LIBS 657LIBUSB_CFLAGS 658DYN_LIB_EXT 659BUNDLE_HOST 660LIBTOOL_DEPS 661OTOOL64 662OTOOL 663LIPO 664NMEDIT 665DSYMUTIL 666MANIFEST_TOOL 667RANLIB 668DLLTOOL 669OBJDUMP 670NM 671ac_ct_DUMPBIN 672DUMPBIN 673LD 674FGREP 675SED 676LIBTOOL 677EGREP 678GREP 679PCSC_LIBS 680PCSC_CFLAGS 681PKG_CONFIG_LIBDIR 682PKG_CONFIG_PATH 683PKG_CONFIG 684ac_ct_AR 685AR 686LEXLIB 687LEX_OUTPUT_ROOT 688LEX 689LN_S 690CPP 691am__fastdepCC_FALSE 692am__fastdepCC_TRUE 693CCDEPMODE 694am__nodep 695AMDEPBACKSLASH 696AMDEP_FALSE 697AMDEP_TRUE 698am__quote 699am__include 700DEPDIR 701OBJEXT 702EXEEXT 703ac_ct_CC 704CPPFLAGS 705LDFLAGS 706CFLAGS 707CC 708MAINT 709MAINTAINER_MODE_FALSE 710MAINTAINER_MODE_TRUE 711host_os 712host_vendor 713host_cpu 714host 715build_os 716build_vendor 717build_cpu 718build 719AM_BACKSLASH 720AM_DEFAULT_VERBOSITY 721AM_DEFAULT_V 722AM_V 723am__untar 724am__tar 725AMTAR 726am__leading_dot 727SET_MAKE 728AWK 729mkdir_p 730MKDIR_P 731INSTALL_STRIP_PROGRAM 732STRIP 733install_sh 734MAKEINFO 735AUTOHEADER 736AUTOMAKE 737AUTOCONF 738ACLOCAL 739VERSION 740PACKAGE 741CYGPATH_W 742am__isrc 743INSTALL_DATA 744INSTALL_SCRIPT 745INSTALL_PROGRAM 746target_alias 747host_alias 748build_alias 749LIBS 750ECHO_T 751ECHO_N 752ECHO_C 753DEFS 754mandir 755localedir 756libdir 757psdir 758pdfdir 759dvidir 760htmldir 761infodir 762docdir 763oldincludedir 764includedir 765localstatedir 766sharedstatedir 767sysconfdir 768datadir 769datarootdir 770libexecdir 771sbindir 772bindir 773program_transform_name 774prefix 775exec_prefix 776PACKAGE_URL 777PACKAGE_BUGREPORT 778PACKAGE_STRING 779PACKAGE_VERSION 780PACKAGE_TARNAME 781PACKAGE_NAME 782PATH_SEPARATOR 783SHELL' 784ac_subst_files='' 785ac_user_opts=' 786enable_option_checking 787enable_silent_rules 788enable_maintainer_mode 789enable_dependency_tracking 790enable_static 791enable_shared 792with_pic 793enable_fast_install 794with_gnu_ld 795with_sysroot 796enable_libtool_lock 797enable_libusb 798enable_composite_as_multislot 799enable_multi_thread 800enable_bundle 801enable_usbdropdir 802enable_twinserial 803enable_ccidtwindir 804enable_serialconfdir 805enable_pcsclite 806enable_class 807enable_embedded 808' 809 ac_precious_vars='build_alias 810host_alias 811target_alias 812CC 813CFLAGS 814LDFLAGS 815LIBS 816CPPFLAGS 817CPP 818PKG_CONFIG 819PKG_CONFIG_PATH 820PKG_CONFIG_LIBDIR 821PCSC_CFLAGS 822PCSC_LIBS 823LIBUSB_CFLAGS 824LIBUSB_LIBS' 825 826 827# Initialize some variables set by options. 828ac_init_help= 829ac_init_version=false 830ac_unrecognized_opts= 831ac_unrecognized_sep= 832# The variables have the same names as the options, with 833# dashes changed to underlines. 834cache_file=/dev/null 835exec_prefix=NONE 836no_create= 837no_recursion= 838prefix=NONE 839program_prefix=NONE 840program_suffix=NONE 841program_transform_name=s,x,x, 842silent= 843site= 844srcdir= 845verbose= 846x_includes=NONE 847x_libraries=NONE 848 849# Installation directory options. 850# These are left unexpanded so users can "make install exec_prefix=/foo" 851# and all the variables that are supposed to be based on exec_prefix 852# by default will actually change. 853# Use braces instead of parens because sh, perl, etc. also accept them. 854# (The list follows the same order as the GNU Coding Standards.) 855bindir='${exec_prefix}/bin' 856sbindir='${exec_prefix}/sbin' 857libexecdir='${exec_prefix}/libexec' 858datarootdir='${prefix}/share' 859datadir='${datarootdir}' 860sysconfdir='${prefix}/etc' 861sharedstatedir='${prefix}/com' 862localstatedir='${prefix}/var' 863includedir='${prefix}/include' 864oldincludedir='/usr/include' 865docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 866infodir='${datarootdir}/info' 867htmldir='${docdir}' 868dvidir='${docdir}' 869pdfdir='${docdir}' 870psdir='${docdir}' 871libdir='${exec_prefix}/lib' 872localedir='${datarootdir}/locale' 873mandir='${datarootdir}/man' 874 875ac_prev= 876ac_dashdash= 877for ac_option 878do 879 # If the previous option needs an argument, assign it. 880 if test -n "$ac_prev"; then 881 eval $ac_prev=\$ac_option 882 ac_prev= 883 continue 884 fi 885 886 case $ac_option in 887 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 888 *=) ac_optarg= ;; 889 *) ac_optarg=yes ;; 890 esac 891 892 # Accept the important Cygnus configure options, so we can diagnose typos. 893 894 case $ac_dashdash$ac_option in 895 --) 896 ac_dashdash=yes ;; 897 898 -bindir | --bindir | --bindi | --bind | --bin | --bi) 899 ac_prev=bindir ;; 900 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 901 bindir=$ac_optarg ;; 902 903 -build | --build | --buil | --bui | --bu) 904 ac_prev=build_alias ;; 905 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 906 build_alias=$ac_optarg ;; 907 908 -cache-file | --cache-file | --cache-fil | --cache-fi \ 909 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 910 ac_prev=cache_file ;; 911 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 912 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 913 cache_file=$ac_optarg ;; 914 915 --config-cache | -C) 916 cache_file=config.cache ;; 917 918 -datadir | --datadir | --datadi | --datad) 919 ac_prev=datadir ;; 920 -datadir=* | --datadir=* | --datadi=* | --datad=*) 921 datadir=$ac_optarg ;; 922 923 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 924 | --dataroo | --dataro | --datar) 925 ac_prev=datarootdir ;; 926 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 927 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 928 datarootdir=$ac_optarg ;; 929 930 -disable-* | --disable-*) 931 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 932 # Reject names that are not valid shell variable names. 933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 934 as_fn_error $? "invalid feature name: $ac_useropt" 935 ac_useropt_orig=$ac_useropt 936 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 937 case $ac_user_opts in 938 *" 939"enable_$ac_useropt" 940"*) ;; 941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 942 ac_unrecognized_sep=', ';; 943 esac 944 eval enable_$ac_useropt=no ;; 945 946 -docdir | --docdir | --docdi | --doc | --do) 947 ac_prev=docdir ;; 948 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 949 docdir=$ac_optarg ;; 950 951 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 952 ac_prev=dvidir ;; 953 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 954 dvidir=$ac_optarg ;; 955 956 -enable-* | --enable-*) 957 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 958 # Reject names that are not valid shell variable names. 959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 960 as_fn_error $? "invalid feature name: $ac_useropt" 961 ac_useropt_orig=$ac_useropt 962 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 963 case $ac_user_opts in 964 *" 965"enable_$ac_useropt" 966"*) ;; 967 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 968 ac_unrecognized_sep=', ';; 969 esac 970 eval enable_$ac_useropt=\$ac_optarg ;; 971 972 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 973 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 974 | --exec | --exe | --ex) 975 ac_prev=exec_prefix ;; 976 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 977 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 978 | --exec=* | --exe=* | --ex=*) 979 exec_prefix=$ac_optarg ;; 980 981 -gas | --gas | --ga | --g) 982 # Obsolete; use --with-gas. 983 with_gas=yes ;; 984 985 -help | --help | --hel | --he | -h) 986 ac_init_help=long ;; 987 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 988 ac_init_help=recursive ;; 989 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 990 ac_init_help=short ;; 991 992 -host | --host | --hos | --ho) 993 ac_prev=host_alias ;; 994 -host=* | --host=* | --hos=* | --ho=*) 995 host_alias=$ac_optarg ;; 996 997 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 998 ac_prev=htmldir ;; 999 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1000 | --ht=*) 1001 htmldir=$ac_optarg ;; 1002 1003 -includedir | --includedir | --includedi | --included | --include \ 1004 | --includ | --inclu | --incl | --inc) 1005 ac_prev=includedir ;; 1006 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1007 | --includ=* | --inclu=* | --incl=* | --inc=*) 1008 includedir=$ac_optarg ;; 1009 1010 -infodir | --infodir | --infodi | --infod | --info | --inf) 1011 ac_prev=infodir ;; 1012 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1013 infodir=$ac_optarg ;; 1014 1015 -libdir | --libdir | --libdi | --libd) 1016 ac_prev=libdir ;; 1017 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1018 libdir=$ac_optarg ;; 1019 1020 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1021 | --libexe | --libex | --libe) 1022 ac_prev=libexecdir ;; 1023 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1024 | --libexe=* | --libex=* | --libe=*) 1025 libexecdir=$ac_optarg ;; 1026 1027 -localedir | --localedir | --localedi | --localed | --locale) 1028 ac_prev=localedir ;; 1029 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1030 localedir=$ac_optarg ;; 1031 1032 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1033 | --localstate | --localstat | --localsta | --localst | --locals) 1034 ac_prev=localstatedir ;; 1035 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1036 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1037 localstatedir=$ac_optarg ;; 1038 1039 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1040 ac_prev=mandir ;; 1041 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1042 mandir=$ac_optarg ;; 1043 1044 -nfp | --nfp | --nf) 1045 # Obsolete; use --without-fp. 1046 with_fp=no ;; 1047 1048 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1049 | --no-cr | --no-c | -n) 1050 no_create=yes ;; 1051 1052 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1053 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1054 no_recursion=yes ;; 1055 1056 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1057 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1058 | --oldin | --oldi | --old | --ol | --o) 1059 ac_prev=oldincludedir ;; 1060 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1061 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1062 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1063 oldincludedir=$ac_optarg ;; 1064 1065 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1066 ac_prev=prefix ;; 1067 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1068 prefix=$ac_optarg ;; 1069 1070 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1071 | --program-pre | --program-pr | --program-p) 1072 ac_prev=program_prefix ;; 1073 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1074 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1075 program_prefix=$ac_optarg ;; 1076 1077 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1078 | --program-suf | --program-su | --program-s) 1079 ac_prev=program_suffix ;; 1080 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1081 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1082 program_suffix=$ac_optarg ;; 1083 1084 -program-transform-name | --program-transform-name \ 1085 | --program-transform-nam | --program-transform-na \ 1086 | --program-transform-n | --program-transform- \ 1087 | --program-transform | --program-transfor \ 1088 | --program-transfo | --program-transf \ 1089 | --program-trans | --program-tran \ 1090 | --progr-tra | --program-tr | --program-t) 1091 ac_prev=program_transform_name ;; 1092 -program-transform-name=* | --program-transform-name=* \ 1093 | --program-transform-nam=* | --program-transform-na=* \ 1094 | --program-transform-n=* | --program-transform-=* \ 1095 | --program-transform=* | --program-transfor=* \ 1096 | --program-transfo=* | --program-transf=* \ 1097 | --program-trans=* | --program-tran=* \ 1098 | --progr-tra=* | --program-tr=* | --program-t=*) 1099 program_transform_name=$ac_optarg ;; 1100 1101 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1102 ac_prev=pdfdir ;; 1103 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1104 pdfdir=$ac_optarg ;; 1105 1106 -psdir | --psdir | --psdi | --psd | --ps) 1107 ac_prev=psdir ;; 1108 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1109 psdir=$ac_optarg ;; 1110 1111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1112 | -silent | --silent | --silen | --sile | --sil) 1113 silent=yes ;; 1114 1115 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1116 ac_prev=sbindir ;; 1117 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1118 | --sbi=* | --sb=*) 1119 sbindir=$ac_optarg ;; 1120 1121 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1122 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1123 | --sharedst | --shareds | --shared | --share | --shar \ 1124 | --sha | --sh) 1125 ac_prev=sharedstatedir ;; 1126 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1127 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1128 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1129 | --sha=* | --sh=*) 1130 sharedstatedir=$ac_optarg ;; 1131 1132 -site | --site | --sit) 1133 ac_prev=site ;; 1134 -site=* | --site=* | --sit=*) 1135 site=$ac_optarg ;; 1136 1137 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1138 ac_prev=srcdir ;; 1139 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1140 srcdir=$ac_optarg ;; 1141 1142 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1143 | --syscon | --sysco | --sysc | --sys | --sy) 1144 ac_prev=sysconfdir ;; 1145 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1146 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1147 sysconfdir=$ac_optarg ;; 1148 1149 -target | --target | --targe | --targ | --tar | --ta | --t) 1150 ac_prev=target_alias ;; 1151 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1152 target_alias=$ac_optarg ;; 1153 1154 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1155 verbose=yes ;; 1156 1157 -version | --version | --versio | --versi | --vers | -V) 1158 ac_init_version=: ;; 1159 1160 -with-* | --with-*) 1161 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1162 # Reject names that are not valid shell variable names. 1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1164 as_fn_error $? "invalid package name: $ac_useropt" 1165 ac_useropt_orig=$ac_useropt 1166 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1167 case $ac_user_opts in 1168 *" 1169"with_$ac_useropt" 1170"*) ;; 1171 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1172 ac_unrecognized_sep=', ';; 1173 esac 1174 eval with_$ac_useropt=\$ac_optarg ;; 1175 1176 -without-* | --without-*) 1177 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1178 # Reject names that are not valid shell variable names. 1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1180 as_fn_error $? "invalid package name: $ac_useropt" 1181 ac_useropt_orig=$ac_useropt 1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1183 case $ac_user_opts in 1184 *" 1185"with_$ac_useropt" 1186"*) ;; 1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1188 ac_unrecognized_sep=', ';; 1189 esac 1190 eval with_$ac_useropt=no ;; 1191 1192 --x) 1193 # Obsolete; use --with-x. 1194 with_x=yes ;; 1195 1196 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1197 | --x-incl | --x-inc | --x-in | --x-i) 1198 ac_prev=x_includes ;; 1199 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1200 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1201 x_includes=$ac_optarg ;; 1202 1203 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1204 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1205 ac_prev=x_libraries ;; 1206 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1207 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1208 x_libraries=$ac_optarg ;; 1209 1210 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1211Try \`$0 --help' for more information" 1212 ;; 1213 1214 *=*) 1215 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1216 # Reject names that are not valid shell variable names. 1217 case $ac_envvar in #( 1218 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1219 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1220 esac 1221 eval $ac_envvar=\$ac_optarg 1222 export $ac_envvar ;; 1223 1224 *) 1225 # FIXME: should be removed in autoconf 3.0. 1226 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1227 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1228 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1229 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1230 ;; 1231 1232 esac 1233done 1234 1235if test -n "$ac_prev"; then 1236 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1237 as_fn_error $? "missing argument to $ac_option" 1238fi 1239 1240if test -n "$ac_unrecognized_opts"; then 1241 case $enable_option_checking in 1242 no) ;; 1243 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1244 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1245 esac 1246fi 1247 1248# Check all directory arguments for consistency. 1249for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1250 datadir sysconfdir sharedstatedir localstatedir includedir \ 1251 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1252 libdir localedir mandir 1253do 1254 eval ac_val=\$$ac_var 1255 # Remove trailing slashes. 1256 case $ac_val in 1257 */ ) 1258 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1259 eval $ac_var=\$ac_val;; 1260 esac 1261 # Be sure to have absolute directory names. 1262 case $ac_val in 1263 [\\/$]* | ?:[\\/]* ) continue;; 1264 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1265 esac 1266 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1267done 1268 1269# There might be people who depend on the old broken behavior: `$host' 1270# used to hold the argument of --host etc. 1271# FIXME: To remove some day. 1272build=$build_alias 1273host=$host_alias 1274target=$target_alias 1275 1276# FIXME: To remove some day. 1277if test "x$host_alias" != x; then 1278 if test "x$build_alias" = x; then 1279 cross_compiling=maybe 1280 elif test "x$build_alias" != "x$host_alias"; then 1281 cross_compiling=yes 1282 fi 1283fi 1284 1285ac_tool_prefix= 1286test -n "$host_alias" && ac_tool_prefix=$host_alias- 1287 1288test "$silent" = yes && exec 6>/dev/null 1289 1290 1291ac_pwd=`pwd` && test -n "$ac_pwd" && 1292ac_ls_di=`ls -di .` && 1293ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1294 as_fn_error $? "working directory cannot be determined" 1295test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1296 as_fn_error $? "pwd does not report name of working directory" 1297 1298 1299# Find the source files, if location was not specified. 1300if test -z "$srcdir"; then 1301 ac_srcdir_defaulted=yes 1302 # Try the directory containing this script, then the parent directory. 1303 ac_confdir=`$as_dirname -- "$as_myself" || 1304$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1305 X"$as_myself" : 'X\(//\)[^/]' \| \ 1306 X"$as_myself" : 'X\(//\)$' \| \ 1307 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1308$as_echo X"$as_myself" | 1309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1310 s//\1/ 1311 q 1312 } 1313 /^X\(\/\/\)[^/].*/{ 1314 s//\1/ 1315 q 1316 } 1317 /^X\(\/\/\)$/{ 1318 s//\1/ 1319 q 1320 } 1321 /^X\(\/\).*/{ 1322 s//\1/ 1323 q 1324 } 1325 s/.*/./; q'` 1326 srcdir=$ac_confdir 1327 if test ! -r "$srcdir/$ac_unique_file"; then 1328 srcdir=.. 1329 fi 1330else 1331 ac_srcdir_defaulted=no 1332fi 1333if test ! -r "$srcdir/$ac_unique_file"; then 1334 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1335 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1336fi 1337ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1338ac_abs_confdir=`( 1339 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1340 pwd)` 1341# When building in place, set srcdir=. 1342if test "$ac_abs_confdir" = "$ac_pwd"; then 1343 srcdir=. 1344fi 1345# Remove unnecessary trailing slashes from srcdir. 1346# Double slashes in file names in object file debugging info 1347# mess up M-x gdb in Emacs. 1348case $srcdir in 1349*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1350esac 1351for ac_var in $ac_precious_vars; do 1352 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1353 eval ac_env_${ac_var}_value=\$${ac_var} 1354 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1355 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1356done 1357 1358# 1359# Report the --help message. 1360# 1361if test "$ac_init_help" = "long"; then 1362 # Omit some internal or obsolete options to make the list less imposing. 1363 # This message is too long to be a string in the A/UX 3.1 sh. 1364 cat <<_ACEOF 1365\`configure' configures ccid 1.4.14 to adapt to many kinds of systems. 1366 1367Usage: $0 [OPTION]... [VAR=VALUE]... 1368 1369To assign environment variables (e.g., CC, CFLAGS...), specify them as 1370VAR=VALUE. See below for descriptions of some of the useful variables. 1371 1372Defaults for the options are specified in brackets. 1373 1374Configuration: 1375 -h, --help display this help and exit 1376 --help=short display options specific to this package 1377 --help=recursive display the short help of all the included packages 1378 -V, --version display version information and exit 1379 -q, --quiet, --silent do not print \`checking ...' messages 1380 --cache-file=FILE cache test results in FILE [disabled] 1381 -C, --config-cache alias for \`--cache-file=config.cache' 1382 -n, --no-create do not create output files 1383 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1384 1385Installation directories: 1386 --prefix=PREFIX install architecture-independent files in PREFIX 1387 [$ac_default_prefix] 1388 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1389 [PREFIX] 1390 1391By default, \`make install' will install all the files in 1392\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1393an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1394for instance \`--prefix=\$HOME'. 1395 1396For better control, use the options below. 1397 1398Fine tuning of the installation directories: 1399 --bindir=DIR user executables [EPREFIX/bin] 1400 --sbindir=DIR system admin executables [EPREFIX/sbin] 1401 --libexecdir=DIR program executables [EPREFIX/libexec] 1402 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1403 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1404 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1405 --libdir=DIR object code libraries [EPREFIX/lib] 1406 --includedir=DIR C header files [PREFIX/include] 1407 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1408 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1409 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1410 --infodir=DIR info documentation [DATAROOTDIR/info] 1411 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1412 --mandir=DIR man documentation [DATAROOTDIR/man] 1413 --docdir=DIR documentation root [DATAROOTDIR/doc/ccid] 1414 --htmldir=DIR html documentation [DOCDIR] 1415 --dvidir=DIR dvi documentation [DOCDIR] 1416 --pdfdir=DIR pdf documentation [DOCDIR] 1417 --psdir=DIR ps documentation [DOCDIR] 1418_ACEOF 1419 1420 cat <<\_ACEOF 1421 1422Program names: 1423 --program-prefix=PREFIX prepend PREFIX to installed program names 1424 --program-suffix=SUFFIX append SUFFIX to installed program names 1425 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1426 1427System types: 1428 --build=BUILD configure for building on BUILD [guessed] 1429 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1430_ACEOF 1431fi 1432 1433if test -n "$ac_init_help"; then 1434 case $ac_init_help in 1435 short | recursive ) echo "Configuration of ccid 1.4.14:";; 1436 esac 1437 cat <<\_ACEOF 1438 1439Optional Features: 1440 --disable-option-checking ignore unrecognized --enable/--with options 1441 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1442 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1443 --enable-silent-rules less verbose build output (undo: "make V=1") 1444 --disable-silent-rules verbose build output (undo: "make V=0") 1445 --enable-maintainer-mode 1446 enable make rules and dependencies not useful (and 1447 sometimes confusing) to the casual installer 1448 --enable-dependency-tracking 1449 do not reject slow dependency extractors 1450 --disable-dependency-tracking 1451 speeds up one-time build 1452 --enable-static[=PKGS] build static libraries [default=no] 1453 --enable-shared[=PKGS] build shared libraries [default=yes] 1454 --enable-fast-install[=PKGS] 1455 optimize for fast installation [default=yes] 1456 --disable-libtool-lock avoid locking (might break parallel builds) 1457 --disable-libusb do not use libusb 1458 --enable-composite-as-multislot 1459 composite device are seen as multi-slots 1460 --disable-multi-thread disable multi threading 1461 --enable-bundle=NAME bundle directory name (default ifd-ccid.bundle) 1462 --enable-usbdropdir=DIR directory containing USB drivers (default to pcscd 1463 config or $(prefix)/pcsc/drivers) 1464 --enable-twinserial also compile and install the serial Twin driver 1465 --enable-ccidtwindir=DIR 1466 directory to install the serial Twin driver (default 1467 to pcscd config or $(prefix)/pcsc/drivers/serial) 1468 --enable-serialconfdir=dir 1469 directory containing serial drivers (default to 1470 pcscd config) 1471 --disable-pcsclite do not use pcsc-lite debug support 1472 --disable-class remove the CCIDCLASSDRIVER from Info.plist 1473 --enable-embedded limit RAM and CPU ressources by disabling features 1474 (log) 1475 1476Optional Packages: 1477 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1478 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1479 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1480 both] 1481 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1482 --with-sysroot=DIR Search for dependent libraries within DIR 1483 (or the compiler's sysroot if not specified). 1484 1485Some influential environment variables: 1486 CC C compiler command 1487 CFLAGS C compiler flags 1488 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1489 nonstandard directory <lib dir> 1490 LIBS libraries to pass to the linker, e.g. -l<library> 1491 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1492 you have headers in a nonstandard directory <include dir> 1493 CPP C preprocessor 1494 PKG_CONFIG path to pkg-config utility 1495 PKG_CONFIG_PATH 1496 directories to add to pkg-config's search path 1497 PKG_CONFIG_LIBDIR 1498 path overriding pkg-config's built-in search path 1499 PCSC_CFLAGS C compiler flags for PCSC, overriding pkg-config 1500 PCSC_LIBS linker flags for PCSC, overriding pkg-config 1501 LIBUSB_CFLAGS 1502 C compiler flags for LIBUSB, overriding pkg-config 1503 LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config 1504 1505Use these variables to override the choices made by `configure' or to help 1506it to find libraries and programs with nonstandard names/locations. 1507 1508Report bugs to the package provider. 1509_ACEOF 1510ac_status=$? 1511fi 1512 1513if test "$ac_init_help" = "recursive"; then 1514 # If there are subdirs, report their specific --help. 1515 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1516 test -d "$ac_dir" || 1517 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1518 continue 1519 ac_builddir=. 1520 1521case "$ac_dir" in 1522.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1523*) 1524 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1525 # A ".." for each directory in $ac_dir_suffix. 1526 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1527 case $ac_top_builddir_sub in 1528 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1529 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1530 esac ;; 1531esac 1532ac_abs_top_builddir=$ac_pwd 1533ac_abs_builddir=$ac_pwd$ac_dir_suffix 1534# for backward compatibility: 1535ac_top_builddir=$ac_top_build_prefix 1536 1537case $srcdir in 1538 .) # We are building in place. 1539 ac_srcdir=. 1540 ac_top_srcdir=$ac_top_builddir_sub 1541 ac_abs_top_srcdir=$ac_pwd ;; 1542 [\\/]* | ?:[\\/]* ) # Absolute name. 1543 ac_srcdir=$srcdir$ac_dir_suffix; 1544 ac_top_srcdir=$srcdir 1545 ac_abs_top_srcdir=$srcdir ;; 1546 *) # Relative name. 1547 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1548 ac_top_srcdir=$ac_top_build_prefix$srcdir 1549 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1550esac 1551ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1552 1553 cd "$ac_dir" || { ac_status=$?; continue; } 1554 # Check for guested configure. 1555 if test -f "$ac_srcdir/configure.gnu"; then 1556 echo && 1557 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1558 elif test -f "$ac_srcdir/configure"; then 1559 echo && 1560 $SHELL "$ac_srcdir/configure" --help=recursive 1561 else 1562 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1563 fi || ac_status=$? 1564 cd "$ac_pwd" || { ac_status=$?; break; } 1565 done 1566fi 1567 1568test -n "$ac_init_help" && exit $ac_status 1569if $ac_init_version; then 1570 cat <<\_ACEOF 1571ccid configure 1.4.14 1572generated by GNU Autoconf 2.69 1573 1574Copyright (C) 2012 Free Software Foundation, Inc. 1575This configure script is free software; the Free Software Foundation 1576gives unlimited permission to copy, distribute and modify it. 1577_ACEOF 1578 exit 1579fi 1580 1581## ------------------------ ## 1582## Autoconf initialization. ## 1583## ------------------------ ## 1584 1585# ac_fn_c_try_compile LINENO 1586# -------------------------- 1587# Try to compile conftest.$ac_ext, and return whether this succeeded. 1588ac_fn_c_try_compile () 1589{ 1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1591 rm -f conftest.$ac_objext 1592 if { { ac_try="$ac_compile" 1593case "(($ac_try" in 1594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1595 *) ac_try_echo=$ac_try;; 1596esac 1597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1598$as_echo "$ac_try_echo"; } >&5 1599 (eval "$ac_compile") 2>conftest.err 1600 ac_status=$? 1601 if test -s conftest.err; then 1602 grep -v '^ *+' conftest.err >conftest.er1 1603 cat conftest.er1 >&5 1604 mv -f conftest.er1 conftest.err 1605 fi 1606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1607 test $ac_status = 0; } && { 1608 test -z "$ac_c_werror_flag" || 1609 test ! -s conftest.err 1610 } && test -s conftest.$ac_objext; then : 1611 ac_retval=0 1612else 1613 $as_echo "$as_me: failed program was:" >&5 1614sed 's/^/| /' conftest.$ac_ext >&5 1615 1616 ac_retval=1 1617fi 1618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1619 as_fn_set_status $ac_retval 1620 1621} # ac_fn_c_try_compile 1622 1623# ac_fn_c_try_cpp LINENO 1624# ---------------------- 1625# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1626ac_fn_c_try_cpp () 1627{ 1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1629 if { { ac_try="$ac_cpp conftest.$ac_ext" 1630case "(($ac_try" in 1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1632 *) ac_try_echo=$ac_try;; 1633esac 1634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1635$as_echo "$ac_try_echo"; } >&5 1636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1637 ac_status=$? 1638 if test -s conftest.err; then 1639 grep -v '^ *+' conftest.err >conftest.er1 1640 cat conftest.er1 >&5 1641 mv -f conftest.er1 conftest.err 1642 fi 1643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1644 test $ac_status = 0; } > conftest.i && { 1645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1646 test ! -s conftest.err 1647 }; then : 1648 ac_retval=0 1649else 1650 $as_echo "$as_me: failed program was:" >&5 1651sed 's/^/| /' conftest.$ac_ext >&5 1652 1653 ac_retval=1 1654fi 1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1656 as_fn_set_status $ac_retval 1657 1658} # ac_fn_c_try_cpp 1659 1660# ac_fn_c_try_link LINENO 1661# ----------------------- 1662# Try to link conftest.$ac_ext, and return whether this succeeded. 1663ac_fn_c_try_link () 1664{ 1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1666 rm -f conftest.$ac_objext conftest$ac_exeext 1667 if { { ac_try="$ac_link" 1668case "(($ac_try" in 1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1670 *) ac_try_echo=$ac_try;; 1671esac 1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1673$as_echo "$ac_try_echo"; } >&5 1674 (eval "$ac_link") 2>conftest.err 1675 ac_status=$? 1676 if test -s conftest.err; then 1677 grep -v '^ *+' conftest.err >conftest.er1 1678 cat conftest.er1 >&5 1679 mv -f conftest.er1 conftest.err 1680 fi 1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1682 test $ac_status = 0; } && { 1683 test -z "$ac_c_werror_flag" || 1684 test ! -s conftest.err 1685 } && test -s conftest$ac_exeext && { 1686 test "$cross_compiling" = yes || 1687 test -x conftest$ac_exeext 1688 }; then : 1689 ac_retval=0 1690else 1691 $as_echo "$as_me: failed program was:" >&5 1692sed 's/^/| /' conftest.$ac_ext >&5 1693 1694 ac_retval=1 1695fi 1696 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1697 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1698 # interfere with the next link command; also delete a directory that is 1699 # left behind by Apple's compiler. We do this before executing the actions. 1700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1702 as_fn_set_status $ac_retval 1703 1704} # ac_fn_c_try_link 1705 1706# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1707# ------------------------------------------------------- 1708# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1709# the include files in INCLUDES and setting the cache variable VAR 1710# accordingly. 1711ac_fn_c_check_header_mongrel () 1712{ 1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1714 if eval \${$3+:} false; then : 1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1716$as_echo_n "checking for $2... " >&6; } 1717if eval \${$3+:} false; then : 1718 $as_echo_n "(cached) " >&6 1719fi 1720eval ac_res=\$$3 1721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1722$as_echo "$ac_res" >&6; } 1723else 1724 # Is the header compilable? 1725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1726$as_echo_n "checking $2 usability... " >&6; } 1727cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1728/* end confdefs.h. */ 1729$4 1730#include <$2> 1731_ACEOF 1732if ac_fn_c_try_compile "$LINENO"; then : 1733 ac_header_compiler=yes 1734else 1735 ac_header_compiler=no 1736fi 1737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1739$as_echo "$ac_header_compiler" >&6; } 1740 1741# Is the header present? 1742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1743$as_echo_n "checking $2 presence... " >&6; } 1744cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1745/* end confdefs.h. */ 1746#include <$2> 1747_ACEOF 1748if ac_fn_c_try_cpp "$LINENO"; then : 1749 ac_header_preproc=yes 1750else 1751 ac_header_preproc=no 1752fi 1753rm -f conftest.err conftest.i conftest.$ac_ext 1754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1755$as_echo "$ac_header_preproc" >&6; } 1756 1757# So? What about this header? 1758case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1759 yes:no: ) 1760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1761$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1763$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1764 ;; 1765 no:yes:* ) 1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1767$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1769$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1771$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1773$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1775$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1776 ;; 1777esac 1778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1779$as_echo_n "checking for $2... " >&6; } 1780if eval \${$3+:} false; then : 1781 $as_echo_n "(cached) " >&6 1782else 1783 eval "$3=\$ac_header_compiler" 1784fi 1785eval ac_res=\$$3 1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1787$as_echo "$ac_res" >&6; } 1788fi 1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1790 1791} # ac_fn_c_check_header_mongrel 1792 1793# ac_fn_c_try_run LINENO 1794# ---------------------- 1795# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1796# that executables *can* be run. 1797ac_fn_c_try_run () 1798{ 1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1800 if { { ac_try="$ac_link" 1801case "(($ac_try" in 1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1803 *) ac_try_echo=$ac_try;; 1804esac 1805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1806$as_echo "$ac_try_echo"; } >&5 1807 (eval "$ac_link") 2>&5 1808 ac_status=$? 1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1810 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1811 { { case "(($ac_try" in 1812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1813 *) ac_try_echo=$ac_try;; 1814esac 1815eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1816$as_echo "$ac_try_echo"; } >&5 1817 (eval "$ac_try") 2>&5 1818 ac_status=$? 1819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1820 test $ac_status = 0; }; }; then : 1821 ac_retval=0 1822else 1823 $as_echo "$as_me: program exited with status $ac_status" >&5 1824 $as_echo "$as_me: failed program was:" >&5 1825sed 's/^/| /' conftest.$ac_ext >&5 1826 1827 ac_retval=$ac_status 1828fi 1829 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1831 as_fn_set_status $ac_retval 1832 1833} # ac_fn_c_try_run 1834 1835# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1836# ------------------------------------------------------- 1837# Tests whether HEADER exists and can be compiled using the include files in 1838# INCLUDES, setting the cache variable VAR accordingly. 1839ac_fn_c_check_header_compile () 1840{ 1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1843$as_echo_n "checking for $2... " >&6; } 1844if eval \${$3+:} false; then : 1845 $as_echo_n "(cached) " >&6 1846else 1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1848/* end confdefs.h. */ 1849$4 1850#include <$2> 1851_ACEOF 1852if ac_fn_c_try_compile "$LINENO"; then : 1853 eval "$3=yes" 1854else 1855 eval "$3=no" 1856fi 1857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1858fi 1859eval ac_res=\$$3 1860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1861$as_echo "$ac_res" >&6; } 1862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1863 1864} # ac_fn_c_check_header_compile 1865 1866# ac_fn_c_check_func LINENO FUNC VAR 1867# ---------------------------------- 1868# Tests whether FUNC exists, setting the cache variable VAR accordingly 1869ac_fn_c_check_func () 1870{ 1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1873$as_echo_n "checking for $2... " >&6; } 1874if eval \${$3+:} false; then : 1875 $as_echo_n "(cached) " >&6 1876else 1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1878/* end confdefs.h. */ 1879/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1880 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1881#define $2 innocuous_$2 1882 1883/* System header to define __stub macros and hopefully few prototypes, 1884 which can conflict with char $2 (); below. 1885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1886 <limits.h> exists even on freestanding compilers. */ 1887 1888#ifdef __STDC__ 1889# include <limits.h> 1890#else 1891# include <assert.h> 1892#endif 1893 1894#undef $2 1895 1896/* Override any GCC internal prototype to avoid an error. 1897 Use char because int might match the return type of a GCC 1898 builtin and then its argument prototype would still apply. */ 1899#ifdef __cplusplus 1900extern "C" 1901#endif 1902char $2 (); 1903/* The GNU C library defines this for functions which it implements 1904 to always fail with ENOSYS. Some functions are actually named 1905 something starting with __ and the normal name is an alias. */ 1906#if defined __stub_$2 || defined __stub___$2 1907choke me 1908#endif 1909 1910int 1911main () 1912{ 1913return $2 (); 1914 ; 1915 return 0; 1916} 1917_ACEOF 1918if ac_fn_c_try_link "$LINENO"; then : 1919 eval "$3=yes" 1920else 1921 eval "$3=no" 1922fi 1923rm -f core conftest.err conftest.$ac_objext \ 1924 conftest$ac_exeext conftest.$ac_ext 1925fi 1926eval ac_res=\$$3 1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1928$as_echo "$ac_res" >&6; } 1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1930 1931} # ac_fn_c_check_func 1932 1933# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1934# ------------------------------------------- 1935# Tests whether TYPE exists after having included INCLUDES, setting cache 1936# variable VAR accordingly. 1937ac_fn_c_check_type () 1938{ 1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1941$as_echo_n "checking for $2... " >&6; } 1942if eval \${$3+:} false; then : 1943 $as_echo_n "(cached) " >&6 1944else 1945 eval "$3=no" 1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1947/* end confdefs.h. */ 1948$4 1949int 1950main () 1951{ 1952if (sizeof ($2)) 1953 return 0; 1954 ; 1955 return 0; 1956} 1957_ACEOF 1958if ac_fn_c_try_compile "$LINENO"; then : 1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1960/* end confdefs.h. */ 1961$4 1962int 1963main () 1964{ 1965if (sizeof (($2))) 1966 return 0; 1967 ; 1968 return 0; 1969} 1970_ACEOF 1971if ac_fn_c_try_compile "$LINENO"; then : 1972 1973else 1974 eval "$3=yes" 1975fi 1976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1977fi 1978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1979fi 1980eval ac_res=\$$3 1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1982$as_echo "$ac_res" >&6; } 1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1984 1985} # ac_fn_c_check_type 1986cat >config.log <<_ACEOF 1987This file contains any messages produced by compilers while 1988running configure, to aid debugging if configure makes a mistake. 1989 1990It was created by ccid $as_me 1.4.14, which was 1991generated by GNU Autoconf 2.69. Invocation command line was 1992 1993 $ $0 $@ 1994 1995_ACEOF 1996exec 5>>config.log 1997{ 1998cat <<_ASUNAME 1999## --------- ## 2000## Platform. ## 2001## --------- ## 2002 2003hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2004uname -m = `(uname -m) 2>/dev/null || echo unknown` 2005uname -r = `(uname -r) 2>/dev/null || echo unknown` 2006uname -s = `(uname -s) 2>/dev/null || echo unknown` 2007uname -v = `(uname -v) 2>/dev/null || echo unknown` 2008 2009/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2010/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2011 2012/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2013/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2014/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2015/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2016/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2017/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2018/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2019 2020_ASUNAME 2021 2022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2023for as_dir in $PATH 2024do 2025 IFS=$as_save_IFS 2026 test -z "$as_dir" && as_dir=. 2027 $as_echo "PATH: $as_dir" 2028 done 2029IFS=$as_save_IFS 2030 2031} >&5 2032 2033cat >&5 <<_ACEOF 2034 2035 2036## ----------- ## 2037## Core tests. ## 2038## ----------- ## 2039 2040_ACEOF 2041 2042 2043# Keep a trace of the command line. 2044# Strip out --no-create and --no-recursion so they do not pile up. 2045# Strip out --silent because we don't want to record it for future runs. 2046# Also quote any args containing shell meta-characters. 2047# Make two passes to allow for proper duplicate-argument suppression. 2048ac_configure_args= 2049ac_configure_args0= 2050ac_configure_args1= 2051ac_must_keep_next=false 2052for ac_pass in 1 2 2053do 2054 for ac_arg 2055 do 2056 case $ac_arg in 2057 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2059 | -silent | --silent | --silen | --sile | --sil) 2060 continue ;; 2061 *\'*) 2062 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2063 esac 2064 case $ac_pass in 2065 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2066 2) 2067 as_fn_append ac_configure_args1 " '$ac_arg'" 2068 if test $ac_must_keep_next = true; then 2069 ac_must_keep_next=false # Got value, back to normal. 2070 else 2071 case $ac_arg in 2072 *=* | --config-cache | -C | -disable-* | --disable-* \ 2073 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2074 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2075 | -with-* | --with-* | -without-* | --without-* | --x) 2076 case "$ac_configure_args0 " in 2077 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2078 esac 2079 ;; 2080 -* ) ac_must_keep_next=true ;; 2081 esac 2082 fi 2083 as_fn_append ac_configure_args " '$ac_arg'" 2084 ;; 2085 esac 2086 done 2087done 2088{ ac_configure_args0=; unset ac_configure_args0;} 2089{ ac_configure_args1=; unset ac_configure_args1;} 2090 2091# When interrupted or exit'd, cleanup temporary files, and complete 2092# config.log. We remove comments because anyway the quotes in there 2093# would cause problems or look ugly. 2094# WARNING: Use '\'' to represent an apostrophe within the trap. 2095# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2096trap 'exit_status=$? 2097 # Save into config.log some information that might help in debugging. 2098 { 2099 echo 2100 2101 $as_echo "## ---------------- ## 2102## Cache variables. ## 2103## ---------------- ##" 2104 echo 2105 # The following way of writing the cache mishandles newlines in values, 2106( 2107 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2108 eval ac_val=\$$ac_var 2109 case $ac_val in #( 2110 *${as_nl}*) 2111 case $ac_var in #( 2112 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2113$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2114 esac 2115 case $ac_var in #( 2116 _ | IFS | as_nl) ;; #( 2117 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2118 *) { eval $ac_var=; unset $ac_var;} ;; 2119 esac ;; 2120 esac 2121 done 2122 (set) 2>&1 | 2123 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2124 *${as_nl}ac_space=\ *) 2125 sed -n \ 2126 "s/'\''/'\''\\\\'\'''\''/g; 2127 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2128 ;; #( 2129 *) 2130 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2131 ;; 2132 esac | 2133 sort 2134) 2135 echo 2136 2137 $as_echo "## ----------------- ## 2138## Output variables. ## 2139## ----------------- ##" 2140 echo 2141 for ac_var in $ac_subst_vars 2142 do 2143 eval ac_val=\$$ac_var 2144 case $ac_val in 2145 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2146 esac 2147 $as_echo "$ac_var='\''$ac_val'\''" 2148 done | sort 2149 echo 2150 2151 if test -n "$ac_subst_files"; then 2152 $as_echo "## ------------------- ## 2153## File substitutions. ## 2154## ------------------- ##" 2155 echo 2156 for ac_var in $ac_subst_files 2157 do 2158 eval ac_val=\$$ac_var 2159 case $ac_val in 2160 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2161 esac 2162 $as_echo "$ac_var='\''$ac_val'\''" 2163 done | sort 2164 echo 2165 fi 2166 2167 if test -s confdefs.h; then 2168 $as_echo "## ----------- ## 2169## confdefs.h. ## 2170## ----------- ##" 2171 echo 2172 cat confdefs.h 2173 echo 2174 fi 2175 test "$ac_signal" != 0 && 2176 $as_echo "$as_me: caught signal $ac_signal" 2177 $as_echo "$as_me: exit $exit_status" 2178 } >&5 2179 rm -f core *.core core.conftest.* && 2180 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2181 exit $exit_status 2182' 0 2183for ac_signal in 1 2 13 15; do 2184 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2185done 2186ac_signal=0 2187 2188# confdefs.h avoids OS command line length limits that DEFS can exceed. 2189rm -f -r conftest* confdefs.h 2190 2191$as_echo "/* confdefs.h */" > confdefs.h 2192 2193# Predefined preprocessor variables. 2194 2195cat >>confdefs.h <<_ACEOF 2196#define PACKAGE_NAME "$PACKAGE_NAME" 2197_ACEOF 2198 2199cat >>confdefs.h <<_ACEOF 2200#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2201_ACEOF 2202 2203cat >>confdefs.h <<_ACEOF 2204#define PACKAGE_VERSION "$PACKAGE_VERSION" 2205_ACEOF 2206 2207cat >>confdefs.h <<_ACEOF 2208#define PACKAGE_STRING "$PACKAGE_STRING" 2209_ACEOF 2210 2211cat >>confdefs.h <<_ACEOF 2212#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2213_ACEOF 2214 2215cat >>confdefs.h <<_ACEOF 2216#define PACKAGE_URL "$PACKAGE_URL" 2217_ACEOF 2218 2219 2220# Let the site file select an alternate cache file if it wants to. 2221# Prefer an explicitly selected file to automatically selected ones. 2222ac_site_file1=NONE 2223ac_site_file2=NONE 2224if test -n "$CONFIG_SITE"; then 2225 # We do not want a PATH search for config.site. 2226 case $CONFIG_SITE in #(( 2227 -*) ac_site_file1=./$CONFIG_SITE;; 2228 */*) ac_site_file1=$CONFIG_SITE;; 2229 *) ac_site_file1=./$CONFIG_SITE;; 2230 esac 2231elif test "x$prefix" != xNONE; then 2232 ac_site_file1=$prefix/share/config.site 2233 ac_site_file2=$prefix/etc/config.site 2234else 2235 ac_site_file1=$ac_default_prefix/share/config.site 2236 ac_site_file2=$ac_default_prefix/etc/config.site 2237fi 2238for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2239do 2240 test "x$ac_site_file" = xNONE && continue 2241 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2242 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2243$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2244 sed 's/^/| /' "$ac_site_file" >&5 2245 . "$ac_site_file" \ 2246 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2247$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2248as_fn_error $? "failed to load site script $ac_site_file 2249See \`config.log' for more details" "$LINENO" 5; } 2250 fi 2251done 2252 2253if test -r "$cache_file"; then 2254 # Some versions of bash will fail to source /dev/null (special files 2255 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2256 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2257 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2258$as_echo "$as_me: loading cache $cache_file" >&6;} 2259 case $cache_file in 2260 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2261 *) . "./$cache_file";; 2262 esac 2263 fi 2264else 2265 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2266$as_echo "$as_me: creating cache $cache_file" >&6;} 2267 >$cache_file 2268fi 2269 2270# Check that the precious variables saved in the cache have kept the same 2271# value. 2272ac_cache_corrupted=false 2273for ac_var in $ac_precious_vars; do 2274 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2275 eval ac_new_set=\$ac_env_${ac_var}_set 2276 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2277 eval ac_new_val=\$ac_env_${ac_var}_value 2278 case $ac_old_set,$ac_new_set in 2279 set,) 2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2281$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2282 ac_cache_corrupted=: ;; 2283 ,set) 2284 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2285$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2286 ac_cache_corrupted=: ;; 2287 ,);; 2288 *) 2289 if test "x$ac_old_val" != "x$ac_new_val"; then 2290 # differences in whitespace do not lead to failure. 2291 ac_old_val_w=`echo x $ac_old_val` 2292 ac_new_val_w=`echo x $ac_new_val` 2293 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2294 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2295$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2296 ac_cache_corrupted=: 2297 else 2298 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2299$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2300 eval $ac_var=\$ac_old_val 2301 fi 2302 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2303$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2304 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2305$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2306 fi;; 2307 esac 2308 # Pass precious variables to config.status. 2309 if test "$ac_new_set" = set; then 2310 case $ac_new_val in 2311 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2312 *) ac_arg=$ac_var=$ac_new_val ;; 2313 esac 2314 case " $ac_configure_args " in 2315 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2316 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2317 esac 2318 fi 2319done 2320if $ac_cache_corrupted; then 2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2322$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2323 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2324$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2325 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2326fi 2327## -------------------- ## 2328## Main body of script. ## 2329## -------------------- ## 2330 2331ac_ext=c 2332ac_cpp='$CPP $CPPFLAGS' 2333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2335ac_compiler_gnu=$ac_cv_c_compiler_gnu 2336 2337 2338 2339ac_aux_dir= 2340for ac_dir in . "$srcdir"/.; do 2341 if test -f "$ac_dir/install-sh"; then 2342 ac_aux_dir=$ac_dir 2343 ac_install_sh="$ac_aux_dir/install-sh -c" 2344 break 2345 elif test -f "$ac_dir/install.sh"; then 2346 ac_aux_dir=$ac_dir 2347 ac_install_sh="$ac_aux_dir/install.sh -c" 2348 break 2349 elif test -f "$ac_dir/shtool"; then 2350 ac_aux_dir=$ac_dir 2351 ac_install_sh="$ac_aux_dir/shtool install -c" 2352 break 2353 fi 2354done 2355if test -z "$ac_aux_dir"; then 2356 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2357fi 2358 2359# These three variables are undocumented and unsupported, 2360# and are intended to be withdrawn in a future Autoconf release. 2361# They can cause serious problems if a builder's source tree is in a directory 2362# whose full name contains unusual characters. 2363ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2364ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2365ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2366 2367 2368am__api_version='1.14' 2369 2370# Find a good install program. We prefer a C program (faster), 2371# so one script is as good as another. But avoid the broken or 2372# incompatible versions: 2373# SysV /etc/install, /usr/sbin/install 2374# SunOS /usr/etc/install 2375# IRIX /sbin/install 2376# AIX /bin/install 2377# AmigaOS /C/install, which installs bootblocks on floppy discs 2378# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2379# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2380# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2381# OS/2's system install, which has a completely different semantic 2382# ./install, which can be erroneously created by make from ./install.sh. 2383# Reject install programs that cannot install multiple files. 2384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2385$as_echo_n "checking for a BSD-compatible install... " >&6; } 2386if test -z "$INSTALL"; then 2387if ${ac_cv_path_install+:} false; then : 2388 $as_echo_n "(cached) " >&6 2389else 2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2391for as_dir in $PATH 2392do 2393 IFS=$as_save_IFS 2394 test -z "$as_dir" && as_dir=. 2395 # Account for people who put trailing slashes in PATH elements. 2396case $as_dir/ in #(( 2397 ./ | .// | /[cC]/* | \ 2398 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2399 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2400 /usr/ucb/* ) ;; 2401 *) 2402 # OSF1 and SCO ODT 3.0 have their own names for install. 2403 # Don't use installbsd from OSF since it installs stuff as root 2404 # by default. 2405 for ac_prog in ginstall scoinst install; do 2406 for ac_exec_ext in '' $ac_executable_extensions; do 2407 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2408 if test $ac_prog = install && 2409 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2410 # AIX install. It has an incompatible calling convention. 2411 : 2412 elif test $ac_prog = install && 2413 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2414 # program-specific install script used by HP pwplus--don't use. 2415 : 2416 else 2417 rm -rf conftest.one conftest.two conftest.dir 2418 echo one > conftest.one 2419 echo two > conftest.two 2420 mkdir conftest.dir 2421 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2422 test -s conftest.one && test -s conftest.two && 2423 test -s conftest.dir/conftest.one && 2424 test -s conftest.dir/conftest.two 2425 then 2426 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2427 break 3 2428 fi 2429 fi 2430 fi 2431 done 2432 done 2433 ;; 2434esac 2435 2436 done 2437IFS=$as_save_IFS 2438 2439rm -rf conftest.one conftest.two conftest.dir 2440 2441fi 2442 if test "${ac_cv_path_install+set}" = set; then 2443 INSTALL=$ac_cv_path_install 2444 else 2445 # As a last resort, use the slow shell script. Don't cache a 2446 # value for INSTALL within a source directory, because that will 2447 # break other packages using the cache if that directory is 2448 # removed, or if the value is a relative name. 2449 INSTALL=$ac_install_sh 2450 fi 2451fi 2452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2453$as_echo "$INSTALL" >&6; } 2454 2455# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2456# It thinks the first close brace ends the variable substitution. 2457test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2458 2459test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2460 2461test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2462 2463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2464$as_echo_n "checking whether build environment is sane... " >&6; } 2465# Reject unsafe characters in $srcdir or the absolute working directory 2466# name. Accept space and tab only in the latter. 2467am_lf=' 2468' 2469case `pwd` in 2470 *[\\\"\#\$\&\'\`$am_lf]*) 2471 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2472esac 2473case $srcdir in 2474 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2475 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2476esac 2477 2478# Do 'set' in a subshell so we don't clobber the current shell's 2479# arguments. Must try -L first in case configure is actually a 2480# symlink; some systems play weird games with the mod time of symlinks 2481# (eg FreeBSD returns the mod time of the symlink's containing 2482# directory). 2483if ( 2484 am_has_slept=no 2485 for am_try in 1 2; do 2486 echo "timestamp, slept: $am_has_slept" > conftest.file 2487 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2488 if test "$*" = "X"; then 2489 # -L didn't work. 2490 set X `ls -t "$srcdir/configure" conftest.file` 2491 fi 2492 if test "$*" != "X $srcdir/configure conftest.file" \ 2493 && test "$*" != "X conftest.file $srcdir/configure"; then 2494 2495 # If neither matched, then we have a broken ls. This can happen 2496 # if, for instance, CONFIG_SHELL is bash and it inherits a 2497 # broken ls alias from the environment. This has actually 2498 # happened. Such a system could not be considered "sane". 2499 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2500 alias in your environment" "$LINENO" 5 2501 fi 2502 if test "$2" = conftest.file || test $am_try -eq 2; then 2503 break 2504 fi 2505 # Just in case. 2506 sleep 1 2507 am_has_slept=yes 2508 done 2509 test "$2" = conftest.file 2510 ) 2511then 2512 # Ok. 2513 : 2514else 2515 as_fn_error $? "newly created file is older than distributed files! 2516Check your system clock" "$LINENO" 5 2517fi 2518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2519$as_echo "yes" >&6; } 2520# If we didn't sleep, we still need to ensure time stamps of config.status and 2521# generated files are strictly newer. 2522am_sleep_pid= 2523if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2524 ( sleep 1 ) & 2525 am_sleep_pid=$! 2526fi 2527 2528rm -f conftest.file 2529 2530test "$program_prefix" != NONE && 2531 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2532# Use a double $ so make ignores it. 2533test "$program_suffix" != NONE && 2534 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2535# Double any \ or $. 2536# By default was `s,x,x', remove it if useless. 2537ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2538program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2539 2540# expand $ac_aux_dir to an absolute path 2541am_aux_dir=`cd $ac_aux_dir && pwd` 2542 2543if test x"${MISSING+set}" != xset; then 2544 case $am_aux_dir in 2545 *\ * | *\ *) 2546 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2547 *) 2548 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2549 esac 2550fi 2551# Use eval to expand $SHELL 2552if eval "$MISSING --is-lightweight"; then 2553 am_missing_run="$MISSING " 2554else 2555 am_missing_run= 2556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2557$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2558fi 2559 2560if test x"${install_sh}" != xset; then 2561 case $am_aux_dir in 2562 *\ * | *\ *) 2563 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2564 *) 2565 install_sh="\${SHELL} $am_aux_dir/install-sh" 2566 esac 2567fi 2568 2569# Installed binaries are usually stripped using 'strip' when the user 2570# run "make install-strip". However 'strip' might not be the right 2571# tool to use in cross-compilation environments, therefore Automake 2572# will honor the 'STRIP' environment variable to overrule this program. 2573if test "$cross_compiling" != no; then 2574 if test -n "$ac_tool_prefix"; then 2575 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2576set dummy ${ac_tool_prefix}strip; ac_word=$2 2577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2578$as_echo_n "checking for $ac_word... " >&6; } 2579if ${ac_cv_prog_STRIP+:} false; then : 2580 $as_echo_n "(cached) " >&6 2581else 2582 if test -n "$STRIP"; then 2583 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2584else 2585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2586for as_dir in $PATH 2587do 2588 IFS=$as_save_IFS 2589 test -z "$as_dir" && as_dir=. 2590 for ac_exec_ext in '' $ac_executable_extensions; do 2591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2592 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2594 break 2 2595 fi 2596done 2597 done 2598IFS=$as_save_IFS 2599 2600fi 2601fi 2602STRIP=$ac_cv_prog_STRIP 2603if test -n "$STRIP"; then 2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2605$as_echo "$STRIP" >&6; } 2606else 2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2608$as_echo "no" >&6; } 2609fi 2610 2611 2612fi 2613if test -z "$ac_cv_prog_STRIP"; then 2614 ac_ct_STRIP=$STRIP 2615 # Extract the first word of "strip", so it can be a program name with args. 2616set dummy strip; ac_word=$2 2617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2618$as_echo_n "checking for $ac_word... " >&6; } 2619if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2620 $as_echo_n "(cached) " >&6 2621else 2622 if test -n "$ac_ct_STRIP"; then 2623 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2624else 2625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2626for as_dir in $PATH 2627do 2628 IFS=$as_save_IFS 2629 test -z "$as_dir" && as_dir=. 2630 for ac_exec_ext in '' $ac_executable_extensions; do 2631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2632 ac_cv_prog_ac_ct_STRIP="strip" 2633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2634 break 2 2635 fi 2636done 2637 done 2638IFS=$as_save_IFS 2639 2640fi 2641fi 2642ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2643if test -n "$ac_ct_STRIP"; then 2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2645$as_echo "$ac_ct_STRIP" >&6; } 2646else 2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2648$as_echo "no" >&6; } 2649fi 2650 2651 if test "x$ac_ct_STRIP" = x; then 2652 STRIP=":" 2653 else 2654 case $cross_compiling:$ac_tool_warned in 2655yes:) 2656{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2657$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2658ac_tool_warned=yes ;; 2659esac 2660 STRIP=$ac_ct_STRIP 2661 fi 2662else 2663 STRIP="$ac_cv_prog_STRIP" 2664fi 2665 2666fi 2667INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2668 2669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2670$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2671if test -z "$MKDIR_P"; then 2672 if ${ac_cv_path_mkdir+:} false; then : 2673 $as_echo_n "(cached) " >&6 2674else 2675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2676for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2677do 2678 IFS=$as_save_IFS 2679 test -z "$as_dir" && as_dir=. 2680 for ac_prog in mkdir gmkdir; do 2681 for ac_exec_ext in '' $ac_executable_extensions; do 2682 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2683 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2684 'mkdir (GNU coreutils) '* | \ 2685 'mkdir (coreutils) '* | \ 2686 'mkdir (fileutils) '4.1*) 2687 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2688 break 3;; 2689 esac 2690 done 2691 done 2692 done 2693IFS=$as_save_IFS 2694 2695fi 2696 2697 test -d ./--version && rmdir ./--version 2698 if test "${ac_cv_path_mkdir+set}" = set; then 2699 MKDIR_P="$ac_cv_path_mkdir -p" 2700 else 2701 # As a last resort, use the slow shell script. Don't cache a 2702 # value for MKDIR_P within a source directory, because that will 2703 # break other packages using the cache if that directory is 2704 # removed, or if the value is a relative name. 2705 MKDIR_P="$ac_install_sh -d" 2706 fi 2707fi 2708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2709$as_echo "$MKDIR_P" >&6; } 2710 2711for ac_prog in gawk mawk nawk awk 2712do 2713 # Extract the first word of "$ac_prog", so it can be a program name with args. 2714set dummy $ac_prog; ac_word=$2 2715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2716$as_echo_n "checking for $ac_word... " >&6; } 2717if ${ac_cv_prog_AWK+:} false; then : 2718 $as_echo_n "(cached) " >&6 2719else 2720 if test -n "$AWK"; then 2721 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2722else 2723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2724for as_dir in $PATH 2725do 2726 IFS=$as_save_IFS 2727 test -z "$as_dir" && as_dir=. 2728 for ac_exec_ext in '' $ac_executable_extensions; do 2729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2730 ac_cv_prog_AWK="$ac_prog" 2731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2732 break 2 2733 fi 2734done 2735 done 2736IFS=$as_save_IFS 2737 2738fi 2739fi 2740AWK=$ac_cv_prog_AWK 2741if test -n "$AWK"; then 2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2743$as_echo "$AWK" >&6; } 2744else 2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2746$as_echo "no" >&6; } 2747fi 2748 2749 2750 test -n "$AWK" && break 2751done 2752 2753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2754$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2755set x ${MAKE-make} 2756ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2757if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2758 $as_echo_n "(cached) " >&6 2759else 2760 cat >conftest.make <<\_ACEOF 2761SHELL = /bin/sh 2762all: 2763 @echo '@@@%%%=$(MAKE)=@@@%%%' 2764_ACEOF 2765# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2766case `${MAKE-make} -f conftest.make 2>/dev/null` in 2767 *@@@%%%=?*=@@@%%%*) 2768 eval ac_cv_prog_make_${ac_make}_set=yes;; 2769 *) 2770 eval ac_cv_prog_make_${ac_make}_set=no;; 2771esac 2772rm -f conftest.make 2773fi 2774if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2776$as_echo "yes" >&6; } 2777 SET_MAKE= 2778else 2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2780$as_echo "no" >&6; } 2781 SET_MAKE="MAKE=${MAKE-make}" 2782fi 2783 2784rm -rf .tst 2>/dev/null 2785mkdir .tst 2>/dev/null 2786if test -d .tst; then 2787 am__leading_dot=. 2788else 2789 am__leading_dot=_ 2790fi 2791rmdir .tst 2>/dev/null 2792 2793# Check whether --enable-silent-rules was given. 2794if test "${enable_silent_rules+set}" = set; then : 2795 enableval=$enable_silent_rules; 2796fi 2797 2798case $enable_silent_rules in # ((( 2799 yes) AM_DEFAULT_VERBOSITY=0;; 2800 no) AM_DEFAULT_VERBOSITY=1;; 2801 *) AM_DEFAULT_VERBOSITY=1;; 2802esac 2803am_make=${MAKE-make} 2804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2805$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2806if ${am_cv_make_support_nested_variables+:} false; then : 2807 $as_echo_n "(cached) " >&6 2808else 2809 if $as_echo 'TRUE=$(BAR$(V)) 2810BAR0=false 2811BAR1=true 2812V=1 2813am__doit: 2814 @$(TRUE) 2815.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2816 am_cv_make_support_nested_variables=yes 2817else 2818 am_cv_make_support_nested_variables=no 2819fi 2820fi 2821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2822$as_echo "$am_cv_make_support_nested_variables" >&6; } 2823if test $am_cv_make_support_nested_variables = yes; then 2824 AM_V='$(V)' 2825 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2826else 2827 AM_V=$AM_DEFAULT_VERBOSITY 2828 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2829fi 2830AM_BACKSLASH='\' 2831 2832if test "`cd $srcdir && pwd`" != "`pwd`"; then 2833 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2834 # is not polluted with repeated "-I." 2835 am__isrc=' -I$(srcdir)' 2836 # test to see if srcdir already configured 2837 if test -f $srcdir/config.status; then 2838 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2839 fi 2840fi 2841 2842# test whether we have cygpath 2843if test -z "$CYGPATH_W"; then 2844 if (cygpath --version) >/dev/null 2>/dev/null; then 2845 CYGPATH_W='cygpath -w' 2846 else 2847 CYGPATH_W=echo 2848 fi 2849fi 2850 2851 2852# Define the identity of the package. 2853 PACKAGE='ccid' 2854 VERSION='1.4.14' 2855 2856 2857cat >>confdefs.h <<_ACEOF 2858#define PACKAGE "$PACKAGE" 2859_ACEOF 2860 2861 2862cat >>confdefs.h <<_ACEOF 2863#define VERSION "$VERSION" 2864_ACEOF 2865 2866# Some tools Automake needs. 2867 2868ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2869 2870 2871AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2872 2873 2874AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2875 2876 2877AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2878 2879 2880MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2881 2882# For better backward compatibility. To be removed once Automake 1.9.x 2883# dies out for good. For more background, see: 2884# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2885# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2886mkdir_p='$(MKDIR_P)' 2887 2888# We need awk for the "check" target. The system "awk" is bad on 2889# some platforms. 2890# Always define AMTAR for backward compatibility. Yes, it's still used 2891# in the wild :-( We should find a proper way to deprecate it ... 2892AMTAR='$${TAR-tar}' 2893 2894 2895# We'll loop over all known methods to create a tar archive until one works. 2896_am_tools='gnutar pax cpio none' 2897 2898am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2899 2900 2901 2902 2903 2904 2905# POSIX will say in a future version that running "rm -f" with no argument 2906# is OK; and we want to be able to make that assumption in our Makefile 2907# recipes. So use an aggressive probe to check that the usage we want is 2908# actually supported "in the wild" to an acceptable degree. 2909# See automake bug#10828. 2910# To make any issue more visible, cause the running configure to be aborted 2911# by default if the 'rm' program in use doesn't match our expectations; the 2912# user can still override this though. 2913if rm -f && rm -fr && rm -rf; then : OK; else 2914 cat >&2 <<'END' 2915Oops! 2916 2917Your 'rm' program seems unable to run without file operands specified 2918on the command line, even when the '-f' option is present. This is contrary 2919to the behaviour of most rm programs out there, and not conforming with 2920the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2921 2922Please tell bug-automake@gnu.org about your system, including the value 2923of your $PATH and any error possibly output before this message. This 2924can help us improve future automake versions. 2925 2926END 2927 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2928 echo 'Configuration will proceed anyway, since you have set the' >&2 2929 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2930 echo >&2 2931 else 2932 cat >&2 <<'END' 2933Aborting the configuration process, to ensure you take notice of the issue. 2934 2935You can download and install GNU coreutils to get an 'rm' implementation 2936that behaves properly: <http://www.gnu.org/software/coreutils/>. 2937 2938If you want to complete the configuration process using your problematic 2939'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2940to "yes", and re-run configure. 2941 2942END 2943 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2944 fi 2945fi 2946 2947 2948# silent build by default 2949# Check whether --enable-silent-rules was given. 2950if test "${enable_silent_rules+set}" = set; then : 2951 enableval=$enable_silent_rules; 2952fi 2953 2954case $enable_silent_rules in # ((( 2955 yes) AM_DEFAULT_VERBOSITY=0;; 2956 no) AM_DEFAULT_VERBOSITY=1;; 2957 *) AM_DEFAULT_VERBOSITY=0;; 2958esac 2959am_make=${MAKE-make} 2960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2961$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2962if ${am_cv_make_support_nested_variables+:} false; then : 2963 $as_echo_n "(cached) " >&6 2964else 2965 if $as_echo 'TRUE=$(BAR$(V)) 2966BAR0=false 2967BAR1=true 2968V=1 2969am__doit: 2970 @$(TRUE) 2971.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2972 am_cv_make_support_nested_variables=yes 2973else 2974 am_cv_make_support_nested_variables=no 2975fi 2976fi 2977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2978$as_echo "$am_cv_make_support_nested_variables" >&6; } 2979if test $am_cv_make_support_nested_variables = yes; then 2980 AM_V='$(V)' 2981 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2982else 2983 AM_V=$AM_DEFAULT_VERBOSITY 2984 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2985fi 2986AM_BACKSLASH='\' 2987 2988 2989# Default install dir 2990 2991 2992# Automake boilerplate. 2993# Make sure we can run config.sub. 2994$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2995 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2996 2997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2998$as_echo_n "checking build system type... " >&6; } 2999if ${ac_cv_build+:} false; then : 3000 $as_echo_n "(cached) " >&6 3001else 3002 ac_build_alias=$build_alias 3003test "x$ac_build_alias" = x && 3004 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3005test "x$ac_build_alias" = x && 3006 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3007ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3008 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3009 3010fi 3011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3012$as_echo "$ac_cv_build" >&6; } 3013case $ac_cv_build in 3014*-*-*) ;; 3015*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3016esac 3017build=$ac_cv_build 3018ac_save_IFS=$IFS; IFS='-' 3019set x $ac_cv_build 3020shift 3021build_cpu=$1 3022build_vendor=$2 3023shift; shift 3024# Remember, the first character of IFS is used to create $*, 3025# except with old shells: 3026build_os=$* 3027IFS=$ac_save_IFS 3028case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3029 3030 3031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3032$as_echo_n "checking host system type... " >&6; } 3033if ${ac_cv_host+:} false; then : 3034 $as_echo_n "(cached) " >&6 3035else 3036 if test "x$host_alias" = x; then 3037 ac_cv_host=$ac_cv_build 3038else 3039 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3040 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3041fi 3042 3043fi 3044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3045$as_echo "$ac_cv_host" >&6; } 3046case $ac_cv_host in 3047*-*-*) ;; 3048*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3049esac 3050host=$ac_cv_host 3051ac_save_IFS=$IFS; IFS='-' 3052set x $ac_cv_host 3053shift 3054host_cpu=$1 3055host_vendor=$2 3056shift; shift 3057# Remember, the first character of IFS is used to create $*, 3058# except with old shells: 3059host_os=$* 3060IFS=$ac_save_IFS 3061case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3062 3063 3064 3065# create a config.h file (Automake will add -DHAVE_CONFIG_H) 3066ac_config_headers="$ac_config_headers config.h" 3067 3068 3069# Options 3070 3071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3072$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3073 # Check whether --enable-maintainer-mode was given. 3074if test "${enable_maintainer_mode+set}" = set; then : 3075 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3076else 3077 USE_MAINTAINER_MODE=no 3078fi 3079 3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3081$as_echo "$USE_MAINTAINER_MODE" >&6; } 3082 if test $USE_MAINTAINER_MODE = yes; then 3083 MAINTAINER_MODE_TRUE= 3084 MAINTAINER_MODE_FALSE='#' 3085else 3086 MAINTAINER_MODE_TRUE='#' 3087 MAINTAINER_MODE_FALSE= 3088fi 3089 3090 MAINT=$MAINTAINER_MODE_TRUE 3091 3092 3093 3094# Checks for programs. 3095ac_ext=c 3096ac_cpp='$CPP $CPPFLAGS' 3097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3099ac_compiler_gnu=$ac_cv_c_compiler_gnu 3100if test -n "$ac_tool_prefix"; then 3101 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3102set dummy ${ac_tool_prefix}gcc; ac_word=$2 3103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3104$as_echo_n "checking for $ac_word... " >&6; } 3105if ${ac_cv_prog_CC+:} false; then : 3106 $as_echo_n "(cached) " >&6 3107else 3108 if test -n "$CC"; then 3109 ac_cv_prog_CC="$CC" # Let the user override the test. 3110else 3111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3112for as_dir in $PATH 3113do 3114 IFS=$as_save_IFS 3115 test -z "$as_dir" && as_dir=. 3116 for ac_exec_ext in '' $ac_executable_extensions; do 3117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3118 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3120 break 2 3121 fi 3122done 3123 done 3124IFS=$as_save_IFS 3125 3126fi 3127fi 3128CC=$ac_cv_prog_CC 3129if test -n "$CC"; then 3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3131$as_echo "$CC" >&6; } 3132else 3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3134$as_echo "no" >&6; } 3135fi 3136 3137 3138fi 3139if test -z "$ac_cv_prog_CC"; then 3140 ac_ct_CC=$CC 3141 # Extract the first word of "gcc", so it can be a program name with args. 3142set dummy gcc; ac_word=$2 3143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3144$as_echo_n "checking for $ac_word... " >&6; } 3145if ${ac_cv_prog_ac_ct_CC+:} false; then : 3146 $as_echo_n "(cached) " >&6 3147else 3148 if test -n "$ac_ct_CC"; then 3149 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3150else 3151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3152for as_dir in $PATH 3153do 3154 IFS=$as_save_IFS 3155 test -z "$as_dir" && as_dir=. 3156 for ac_exec_ext in '' $ac_executable_extensions; do 3157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3158 ac_cv_prog_ac_ct_CC="gcc" 3159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3160 break 2 3161 fi 3162done 3163 done 3164IFS=$as_save_IFS 3165 3166fi 3167fi 3168ac_ct_CC=$ac_cv_prog_ac_ct_CC 3169if test -n "$ac_ct_CC"; then 3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3171$as_echo "$ac_ct_CC" >&6; } 3172else 3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3174$as_echo "no" >&6; } 3175fi 3176 3177 if test "x$ac_ct_CC" = x; then 3178 CC="" 3179 else 3180 case $cross_compiling:$ac_tool_warned in 3181yes:) 3182{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3184ac_tool_warned=yes ;; 3185esac 3186 CC=$ac_ct_CC 3187 fi 3188else 3189 CC="$ac_cv_prog_CC" 3190fi 3191 3192if test -z "$CC"; then 3193 if test -n "$ac_tool_prefix"; then 3194 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3195set dummy ${ac_tool_prefix}cc; ac_word=$2 3196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3197$as_echo_n "checking for $ac_word... " >&6; } 3198if ${ac_cv_prog_CC+:} false; then : 3199 $as_echo_n "(cached) " >&6 3200else 3201 if test -n "$CC"; then 3202 ac_cv_prog_CC="$CC" # Let the user override the test. 3203else 3204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3205for as_dir in $PATH 3206do 3207 IFS=$as_save_IFS 3208 test -z "$as_dir" && as_dir=. 3209 for ac_exec_ext in '' $ac_executable_extensions; do 3210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3211 ac_cv_prog_CC="${ac_tool_prefix}cc" 3212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3213 break 2 3214 fi 3215done 3216 done 3217IFS=$as_save_IFS 3218 3219fi 3220fi 3221CC=$ac_cv_prog_CC 3222if test -n "$CC"; then 3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3224$as_echo "$CC" >&6; } 3225else 3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3227$as_echo "no" >&6; } 3228fi 3229 3230 3231 fi 3232fi 3233if test -z "$CC"; then 3234 # Extract the first word of "cc", so it can be a program name with args. 3235set dummy cc; ac_word=$2 3236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3237$as_echo_n "checking for $ac_word... " >&6; } 3238if ${ac_cv_prog_CC+:} false; then : 3239 $as_echo_n "(cached) " >&6 3240else 3241 if test -n "$CC"; then 3242 ac_cv_prog_CC="$CC" # Let the user override the test. 3243else 3244 ac_prog_rejected=no 3245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3246for as_dir in $PATH 3247do 3248 IFS=$as_save_IFS 3249 test -z "$as_dir" && as_dir=. 3250 for ac_exec_ext in '' $ac_executable_extensions; do 3251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3252 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3253 ac_prog_rejected=yes 3254 continue 3255 fi 3256 ac_cv_prog_CC="cc" 3257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3258 break 2 3259 fi 3260done 3261 done 3262IFS=$as_save_IFS 3263 3264if test $ac_prog_rejected = yes; then 3265 # We found a bogon in the path, so make sure we never use it. 3266 set dummy $ac_cv_prog_CC 3267 shift 3268 if test $# != 0; then 3269 # We chose a different compiler from the bogus one. 3270 # However, it has the same basename, so the bogon will be chosen 3271 # first if we set CC to just the basename; use the full file name. 3272 shift 3273 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3274 fi 3275fi 3276fi 3277fi 3278CC=$ac_cv_prog_CC 3279if test -n "$CC"; then 3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3281$as_echo "$CC" >&6; } 3282else 3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3284$as_echo "no" >&6; } 3285fi 3286 3287 3288fi 3289if test -z "$CC"; then 3290 if test -n "$ac_tool_prefix"; then 3291 for ac_prog in cl.exe 3292 do 3293 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3294set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3296$as_echo_n "checking for $ac_word... " >&6; } 3297if ${ac_cv_prog_CC+:} false; then : 3298 $as_echo_n "(cached) " >&6 3299else 3300 if test -n "$CC"; then 3301 ac_cv_prog_CC="$CC" # Let the user override the test. 3302else 3303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3304for as_dir in $PATH 3305do 3306 IFS=$as_save_IFS 3307 test -z "$as_dir" && as_dir=. 3308 for ac_exec_ext in '' $ac_executable_extensions; do 3309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3310 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3312 break 2 3313 fi 3314done 3315 done 3316IFS=$as_save_IFS 3317 3318fi 3319fi 3320CC=$ac_cv_prog_CC 3321if test -n "$CC"; then 3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3323$as_echo "$CC" >&6; } 3324else 3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3326$as_echo "no" >&6; } 3327fi 3328 3329 3330 test -n "$CC" && break 3331 done 3332fi 3333if test -z "$CC"; then 3334 ac_ct_CC=$CC 3335 for ac_prog in cl.exe 3336do 3337 # Extract the first word of "$ac_prog", so it can be a program name with args. 3338set dummy $ac_prog; ac_word=$2 3339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3340$as_echo_n "checking for $ac_word... " >&6; } 3341if ${ac_cv_prog_ac_ct_CC+:} false; then : 3342 $as_echo_n "(cached) " >&6 3343else 3344 if test -n "$ac_ct_CC"; then 3345 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3346else 3347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3348for as_dir in $PATH 3349do 3350 IFS=$as_save_IFS 3351 test -z "$as_dir" && as_dir=. 3352 for ac_exec_ext in '' $ac_executable_extensions; do 3353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3354 ac_cv_prog_ac_ct_CC="$ac_prog" 3355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3356 break 2 3357 fi 3358done 3359 done 3360IFS=$as_save_IFS 3361 3362fi 3363fi 3364ac_ct_CC=$ac_cv_prog_ac_ct_CC 3365if test -n "$ac_ct_CC"; then 3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3367$as_echo "$ac_ct_CC" >&6; } 3368else 3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3370$as_echo "no" >&6; } 3371fi 3372 3373 3374 test -n "$ac_ct_CC" && break 3375done 3376 3377 if test "x$ac_ct_CC" = x; then 3378 CC="" 3379 else 3380 case $cross_compiling:$ac_tool_warned in 3381yes:) 3382{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3383$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3384ac_tool_warned=yes ;; 3385esac 3386 CC=$ac_ct_CC 3387 fi 3388fi 3389 3390fi 3391 3392 3393test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3394$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3395as_fn_error $? "no acceptable C compiler found in \$PATH 3396See \`config.log' for more details" "$LINENO" 5; } 3397 3398# Provide some information about the compiler. 3399$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3400set X $ac_compile 3401ac_compiler=$2 3402for ac_option in --version -v -V -qversion; do 3403 { { ac_try="$ac_compiler $ac_option >&5" 3404case "(($ac_try" in 3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3406 *) ac_try_echo=$ac_try;; 3407esac 3408eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3409$as_echo "$ac_try_echo"; } >&5 3410 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3411 ac_status=$? 3412 if test -s conftest.err; then 3413 sed '10a\ 3414... rest of stderr output deleted ... 3415 10q' conftest.err >conftest.er1 3416 cat conftest.er1 >&5 3417 fi 3418 rm -f conftest.er1 conftest.err 3419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3420 test $ac_status = 0; } 3421done 3422 3423cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3424/* end confdefs.h. */ 3425 3426int 3427main () 3428{ 3429 3430 ; 3431 return 0; 3432} 3433_ACEOF 3434ac_clean_files_save=$ac_clean_files 3435ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3436# Try to create an executable without -o first, disregard a.out. 3437# It will help us diagnose broken compilers, and finding out an intuition 3438# of exeext. 3439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3440$as_echo_n "checking whether the C compiler works... " >&6; } 3441ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3442 3443# The possible output files: 3444ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3445 3446ac_rmfiles= 3447for ac_file in $ac_files 3448do 3449 case $ac_file in 3450 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3451 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3452 esac 3453done 3454rm -f $ac_rmfiles 3455 3456if { { ac_try="$ac_link_default" 3457case "(($ac_try" in 3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3459 *) ac_try_echo=$ac_try;; 3460esac 3461eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3462$as_echo "$ac_try_echo"; } >&5 3463 (eval "$ac_link_default") 2>&5 3464 ac_status=$? 3465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3466 test $ac_status = 0; }; then : 3467 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3468# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3469# in a Makefile. We should not override ac_cv_exeext if it was cached, 3470# so that the user can short-circuit this test for compilers unknown to 3471# Autoconf. 3472for ac_file in $ac_files '' 3473do 3474 test -f "$ac_file" || continue 3475 case $ac_file in 3476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3477 ;; 3478 [ab].out ) 3479 # We found the default executable, but exeext='' is most 3480 # certainly right. 3481 break;; 3482 *.* ) 3483 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3484 then :; else 3485 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3486 fi 3487 # We set ac_cv_exeext here because the later test for it is not 3488 # safe: cross compilers may not add the suffix if given an `-o' 3489 # argument, so we may need to know it at that point already. 3490 # Even if this section looks crufty: it has the advantage of 3491 # actually working. 3492 break;; 3493 * ) 3494 break;; 3495 esac 3496done 3497test "$ac_cv_exeext" = no && ac_cv_exeext= 3498 3499else 3500 ac_file='' 3501fi 3502if test -z "$ac_file"; then : 3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3504$as_echo "no" >&6; } 3505$as_echo "$as_me: failed program was:" >&5 3506sed 's/^/| /' conftest.$ac_ext >&5 3507 3508{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3510as_fn_error 77 "C compiler cannot create executables 3511See \`config.log' for more details" "$LINENO" 5; } 3512else 3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3514$as_echo "yes" >&6; } 3515fi 3516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3517$as_echo_n "checking for C compiler default output file name... " >&6; } 3518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3519$as_echo "$ac_file" >&6; } 3520ac_exeext=$ac_cv_exeext 3521 3522rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3523ac_clean_files=$ac_clean_files_save 3524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3525$as_echo_n "checking for suffix of executables... " >&6; } 3526if { { ac_try="$ac_link" 3527case "(($ac_try" in 3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3529 *) ac_try_echo=$ac_try;; 3530esac 3531eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3532$as_echo "$ac_try_echo"; } >&5 3533 (eval "$ac_link") 2>&5 3534 ac_status=$? 3535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3536 test $ac_status = 0; }; then : 3537 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3538# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3539# work properly (i.e., refer to `conftest.exe'), while it won't with 3540# `rm'. 3541for ac_file in conftest.exe conftest conftest.*; do 3542 test -f "$ac_file" || continue 3543 case $ac_file in 3544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3545 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3546 break;; 3547 * ) break;; 3548 esac 3549done 3550else 3551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3552$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3553as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3554See \`config.log' for more details" "$LINENO" 5; } 3555fi 3556rm -f conftest conftest$ac_cv_exeext 3557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3558$as_echo "$ac_cv_exeext" >&6; } 3559 3560rm -f conftest.$ac_ext 3561EXEEXT=$ac_cv_exeext 3562ac_exeext=$EXEEXT 3563cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3564/* end confdefs.h. */ 3565#include <stdio.h> 3566int 3567main () 3568{ 3569FILE *f = fopen ("conftest.out", "w"); 3570 return ferror (f) || fclose (f) != 0; 3571 3572 ; 3573 return 0; 3574} 3575_ACEOF 3576ac_clean_files="$ac_clean_files conftest.out" 3577# Check that the compiler produces executables we can run. If not, either 3578# the compiler is broken, or we cross compile. 3579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3580$as_echo_n "checking whether we are cross compiling... " >&6; } 3581if test "$cross_compiling" != yes; then 3582 { { ac_try="$ac_link" 3583case "(($ac_try" in 3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3585 *) ac_try_echo=$ac_try;; 3586esac 3587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3588$as_echo "$ac_try_echo"; } >&5 3589 (eval "$ac_link") 2>&5 3590 ac_status=$? 3591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3592 test $ac_status = 0; } 3593 if { ac_try='./conftest$ac_cv_exeext' 3594 { { case "(($ac_try" in 3595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3596 *) ac_try_echo=$ac_try;; 3597esac 3598eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3599$as_echo "$ac_try_echo"; } >&5 3600 (eval "$ac_try") 2>&5 3601 ac_status=$? 3602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3603 test $ac_status = 0; }; }; then 3604 cross_compiling=no 3605 else 3606 if test "$cross_compiling" = maybe; then 3607 cross_compiling=yes 3608 else 3609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3610$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3611as_fn_error $? "cannot run C compiled programs. 3612If you meant to cross compile, use \`--host'. 3613See \`config.log' for more details" "$LINENO" 5; } 3614 fi 3615 fi 3616fi 3617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3618$as_echo "$cross_compiling" >&6; } 3619 3620rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3621ac_clean_files=$ac_clean_files_save 3622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3623$as_echo_n "checking for suffix of object files... " >&6; } 3624if ${ac_cv_objext+:} false; then : 3625 $as_echo_n "(cached) " >&6 3626else 3627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3628/* end confdefs.h. */ 3629 3630int 3631main () 3632{ 3633 3634 ; 3635 return 0; 3636} 3637_ACEOF 3638rm -f conftest.o conftest.obj 3639if { { ac_try="$ac_compile" 3640case "(($ac_try" in 3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3642 *) ac_try_echo=$ac_try;; 3643esac 3644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3645$as_echo "$ac_try_echo"; } >&5 3646 (eval "$ac_compile") 2>&5 3647 ac_status=$? 3648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3649 test $ac_status = 0; }; then : 3650 for ac_file in conftest.o conftest.obj conftest.*; do 3651 test -f "$ac_file" || continue; 3652 case $ac_file in 3653 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3654 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3655 break;; 3656 esac 3657done 3658else 3659 $as_echo "$as_me: failed program was:" >&5 3660sed 's/^/| /' conftest.$ac_ext >&5 3661 3662{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3663$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3664as_fn_error $? "cannot compute suffix of object files: cannot compile 3665See \`config.log' for more details" "$LINENO" 5; } 3666fi 3667rm -f conftest.$ac_cv_objext conftest.$ac_ext 3668fi 3669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3670$as_echo "$ac_cv_objext" >&6; } 3671OBJEXT=$ac_cv_objext 3672ac_objext=$OBJEXT 3673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3674$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3675if ${ac_cv_c_compiler_gnu+:} false; then : 3676 $as_echo_n "(cached) " >&6 3677else 3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3679/* end confdefs.h. */ 3680 3681int 3682main () 3683{ 3684#ifndef __GNUC__ 3685 choke me 3686#endif 3687 3688 ; 3689 return 0; 3690} 3691_ACEOF 3692if ac_fn_c_try_compile "$LINENO"; then : 3693 ac_compiler_gnu=yes 3694else 3695 ac_compiler_gnu=no 3696fi 3697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3698ac_cv_c_compiler_gnu=$ac_compiler_gnu 3699 3700fi 3701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3702$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3703if test $ac_compiler_gnu = yes; then 3704 GCC=yes 3705else 3706 GCC= 3707fi 3708ac_test_CFLAGS=${CFLAGS+set} 3709ac_save_CFLAGS=$CFLAGS 3710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3711$as_echo_n "checking whether $CC accepts -g... " >&6; } 3712if ${ac_cv_prog_cc_g+:} false; then : 3713 $as_echo_n "(cached) " >&6 3714else 3715 ac_save_c_werror_flag=$ac_c_werror_flag 3716 ac_c_werror_flag=yes 3717 ac_cv_prog_cc_g=no 3718 CFLAGS="-g" 3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3720/* end confdefs.h. */ 3721 3722int 3723main () 3724{ 3725 3726 ; 3727 return 0; 3728} 3729_ACEOF 3730if ac_fn_c_try_compile "$LINENO"; then : 3731 ac_cv_prog_cc_g=yes 3732else 3733 CFLAGS="" 3734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3735/* end confdefs.h. */ 3736 3737int 3738main () 3739{ 3740 3741 ; 3742 return 0; 3743} 3744_ACEOF 3745if ac_fn_c_try_compile "$LINENO"; then : 3746 3747else 3748 ac_c_werror_flag=$ac_save_c_werror_flag 3749 CFLAGS="-g" 3750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3751/* end confdefs.h. */ 3752 3753int 3754main () 3755{ 3756 3757 ; 3758 return 0; 3759} 3760_ACEOF 3761if ac_fn_c_try_compile "$LINENO"; then : 3762 ac_cv_prog_cc_g=yes 3763fi 3764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3765fi 3766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3767fi 3768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3769 ac_c_werror_flag=$ac_save_c_werror_flag 3770fi 3771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3772$as_echo "$ac_cv_prog_cc_g" >&6; } 3773if test "$ac_test_CFLAGS" = set; then 3774 CFLAGS=$ac_save_CFLAGS 3775elif test $ac_cv_prog_cc_g = yes; then 3776 if test "$GCC" = yes; then 3777 CFLAGS="-g -O2" 3778 else 3779 CFLAGS="-g" 3780 fi 3781else 3782 if test "$GCC" = yes; then 3783 CFLAGS="-O2" 3784 else 3785 CFLAGS= 3786 fi 3787fi 3788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3789$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3790if ${ac_cv_prog_cc_c89+:} false; then : 3791 $as_echo_n "(cached) " >&6 3792else 3793 ac_cv_prog_cc_c89=no 3794ac_save_CC=$CC 3795cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3796/* end confdefs.h. */ 3797#include <stdarg.h> 3798#include <stdio.h> 3799struct stat; 3800/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3801struct buf { int x; }; 3802FILE * (*rcsopen) (struct buf *, struct stat *, int); 3803static char *e (p, i) 3804 char **p; 3805 int i; 3806{ 3807 return p[i]; 3808} 3809static char *f (char * (*g) (char **, int), char **p, ...) 3810{ 3811 char *s; 3812 va_list v; 3813 va_start (v,p); 3814 s = g (p, va_arg (v,int)); 3815 va_end (v); 3816 return s; 3817} 3818 3819/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3820 function prototypes and stuff, but not '\xHH' hex character constants. 3821 These don't provoke an error unfortunately, instead are silently treated 3822 as 'x'. The following induces an error, until -std is added to get 3823 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3824 array size at least. It's necessary to write '\x00'==0 to get something 3825 that's true only with -std. */ 3826int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3827 3828/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3829 inside strings and character constants. */ 3830#define FOO(x) 'x' 3831int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3832 3833int test (int i, double x); 3834struct s1 {int (*f) (int a);}; 3835struct s2 {int (*f) (double a);}; 3836int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3837int argc; 3838char **argv; 3839int 3840main () 3841{ 3842return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3843 ; 3844 return 0; 3845} 3846_ACEOF 3847for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3848 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3849do 3850 CC="$ac_save_CC $ac_arg" 3851 if ac_fn_c_try_compile "$LINENO"; then : 3852 ac_cv_prog_cc_c89=$ac_arg 3853fi 3854rm -f core conftest.err conftest.$ac_objext 3855 test "x$ac_cv_prog_cc_c89" != "xno" && break 3856done 3857rm -f conftest.$ac_ext 3858CC=$ac_save_CC 3859 3860fi 3861# AC_CACHE_VAL 3862case "x$ac_cv_prog_cc_c89" in 3863 x) 3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3865$as_echo "none needed" >&6; } ;; 3866 xno) 3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3868$as_echo "unsupported" >&6; } ;; 3869 *) 3870 CC="$CC $ac_cv_prog_cc_c89" 3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3872$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3873esac 3874if test "x$ac_cv_prog_cc_c89" != xno; then : 3875 3876fi 3877 3878ac_ext=c 3879ac_cpp='$CPP $CPPFLAGS' 3880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3882ac_compiler_gnu=$ac_cv_c_compiler_gnu 3883 3884ac_ext=c 3885ac_cpp='$CPP $CPPFLAGS' 3886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3888ac_compiler_gnu=$ac_cv_c_compiler_gnu 3889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3890$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3891if ${am_cv_prog_cc_c_o+:} false; then : 3892 $as_echo_n "(cached) " >&6 3893else 3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3895/* end confdefs.h. */ 3896 3897int 3898main () 3899{ 3900 3901 ; 3902 return 0; 3903} 3904_ACEOF 3905 # Make sure it works both with $CC and with simple cc. 3906 # Following AC_PROG_CC_C_O, we do the test twice because some 3907 # compilers refuse to overwrite an existing .o file with -o, 3908 # though they will create one. 3909 am_cv_prog_cc_c_o=yes 3910 for am_i in 1 2; do 3911 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3912 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3913 ac_status=$? 3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3915 (exit $ac_status); } \ 3916 && test -f conftest2.$ac_objext; then 3917 : OK 3918 else 3919 am_cv_prog_cc_c_o=no 3920 break 3921 fi 3922 done 3923 rm -f core conftest* 3924 unset am_i 3925fi 3926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3927$as_echo "$am_cv_prog_cc_c_o" >&6; } 3928if test "$am_cv_prog_cc_c_o" != yes; then 3929 # Losing compiler, so override with the script. 3930 # FIXME: It is wrong to rewrite CC. 3931 # But if we don't then we get into trouble of one sort or another. 3932 # A longer-term fix would be to have automake use am__CC in this case, 3933 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3934 CC="$am_aux_dir/compile $CC" 3935fi 3936ac_ext=c 3937ac_cpp='$CPP $CPPFLAGS' 3938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3940ac_compiler_gnu=$ac_cv_c_compiler_gnu 3941 3942DEPDIR="${am__leading_dot}deps" 3943 3944ac_config_commands="$ac_config_commands depfiles" 3945 3946 3947am_make=${MAKE-make} 3948cat > confinc << 'END' 3949am__doit: 3950 @echo this is the am__doit target 3951.PHONY: am__doit 3952END 3953# If we don't find an include directive, just comment out the code. 3954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3955$as_echo_n "checking for style of include used by $am_make... " >&6; } 3956am__include="#" 3957am__quote= 3958_am_result=none 3959# First try GNU make style include. 3960echo "include confinc" > confmf 3961# Ignore all kinds of additional output from 'make'. 3962case `$am_make -s -f confmf 2> /dev/null` in #( 3963*the\ am__doit\ target*) 3964 am__include=include 3965 am__quote= 3966 _am_result=GNU 3967 ;; 3968esac 3969# Now try BSD make style include. 3970if test "$am__include" = "#"; then 3971 echo '.include "confinc"' > confmf 3972 case `$am_make -s -f confmf 2> /dev/null` in #( 3973 *the\ am__doit\ target*) 3974 am__include=.include 3975 am__quote="\"" 3976 _am_result=BSD 3977 ;; 3978 esac 3979fi 3980 3981 3982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3983$as_echo "$_am_result" >&6; } 3984rm -f confinc confmf 3985 3986# Check whether --enable-dependency-tracking was given. 3987if test "${enable_dependency_tracking+set}" = set; then : 3988 enableval=$enable_dependency_tracking; 3989fi 3990 3991if test "x$enable_dependency_tracking" != xno; then 3992 am_depcomp="$ac_aux_dir/depcomp" 3993 AMDEPBACKSLASH='\' 3994 am__nodep='_no' 3995fi 3996 if test "x$enable_dependency_tracking" != xno; then 3997 AMDEP_TRUE= 3998 AMDEP_FALSE='#' 3999else 4000 AMDEP_TRUE='#' 4001 AMDEP_FALSE= 4002fi 4003 4004 4005 4006depcc="$CC" am_compiler_list= 4007 4008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4009$as_echo_n "checking dependency style of $depcc... " >&6; } 4010if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4011 $as_echo_n "(cached) " >&6 4012else 4013 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4014 # We make a subdir and do the tests there. Otherwise we can end up 4015 # making bogus files that we don't know about and never remove. For 4016 # instance it was reported that on HP-UX the gcc test will end up 4017 # making a dummy file named 'D' -- because '-MD' means "put the output 4018 # in D". 4019 rm -rf conftest.dir 4020 mkdir conftest.dir 4021 # Copy depcomp to subdir because otherwise we won't find it if we're 4022 # using a relative directory. 4023 cp "$am_depcomp" conftest.dir 4024 cd conftest.dir 4025 # We will build objects and dependencies in a subdirectory because 4026 # it helps to detect inapplicable dependency modes. For instance 4027 # both Tru64's cc and ICC support -MD to output dependencies as a 4028 # side effect of compilation, but ICC will put the dependencies in 4029 # the current directory while Tru64 will put them in the object 4030 # directory. 4031 mkdir sub 4032 4033 am_cv_CC_dependencies_compiler_type=none 4034 if test "$am_compiler_list" = ""; then 4035 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4036 fi 4037 am__universal=false 4038 case " $depcc " in #( 4039 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4040 esac 4041 4042 for depmode in $am_compiler_list; do 4043 # Setup a source with many dependencies, because some compilers 4044 # like to wrap large dependency lists on column 80 (with \), and 4045 # we should not choose a depcomp mode which is confused by this. 4046 # 4047 # We need to recreate these files for each test, as the compiler may 4048 # overwrite some of them when testing with obscure command lines. 4049 # This happens at least with the AIX C compiler. 4050 : > sub/conftest.c 4051 for i in 1 2 3 4 5 6; do 4052 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4053 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4054 # Solaris 10 /bin/sh. 4055 echo '/* dummy */' > sub/conftst$i.h 4056 done 4057 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4058 4059 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4060 # mode. It turns out that the SunPro C++ compiler does not properly 4061 # handle '-M -o', and we need to detect this. Also, some Intel 4062 # versions had trouble with output in subdirs. 4063 am__obj=sub/conftest.${OBJEXT-o} 4064 am__minus_obj="-o $am__obj" 4065 case $depmode in 4066 gcc) 4067 # This depmode causes a compiler race in universal mode. 4068 test "$am__universal" = false || continue 4069 ;; 4070 nosideeffect) 4071 # After this tag, mechanisms are not by side-effect, so they'll 4072 # only be used when explicitly requested. 4073 if test "x$enable_dependency_tracking" = xyes; then 4074 continue 4075 else 4076 break 4077 fi 4078 ;; 4079 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4080 # This compiler won't grok '-c -o', but also, the minuso test has 4081 # not run yet. These depmodes are late enough in the game, and 4082 # so weak that their functioning should not be impacted. 4083 am__obj=conftest.${OBJEXT-o} 4084 am__minus_obj= 4085 ;; 4086 none) break ;; 4087 esac 4088 if depmode=$depmode \ 4089 source=sub/conftest.c object=$am__obj \ 4090 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4091 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4092 >/dev/null 2>conftest.err && 4093 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4094 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4095 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4096 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4097 # icc doesn't choke on unknown options, it will just issue warnings 4098 # or remarks (even with -Werror). So we grep stderr for any message 4099 # that says an option was ignored or not supported. 4100 # When given -MP, icc 7.0 and 7.1 complain thusly: 4101 # icc: Command line warning: ignoring option '-M'; no argument required 4102 # The diagnosis changed in icc 8.0: 4103 # icc: Command line remark: option '-MP' not supported 4104 if (grep 'ignoring option' conftest.err || 4105 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4106 am_cv_CC_dependencies_compiler_type=$depmode 4107 break 4108 fi 4109 fi 4110 done 4111 4112 cd .. 4113 rm -rf conftest.dir 4114else 4115 am_cv_CC_dependencies_compiler_type=none 4116fi 4117 4118fi 4119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4120$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4121CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4122 4123 if 4124 test "x$enable_dependency_tracking" != xno \ 4125 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4126 am__fastdepCC_TRUE= 4127 am__fastdepCC_FALSE='#' 4128else 4129 am__fastdepCC_TRUE='#' 4130 am__fastdepCC_FALSE= 4131fi 4132 4133 4134 4135ac_ext=c 4136ac_cpp='$CPP $CPPFLAGS' 4137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4139ac_compiler_gnu=$ac_cv_c_compiler_gnu 4140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4141$as_echo_n "checking how to run the C preprocessor... " >&6; } 4142# On Suns, sometimes $CPP names a directory. 4143if test -n "$CPP" && test -d "$CPP"; then 4144 CPP= 4145fi 4146if test -z "$CPP"; then 4147 if ${ac_cv_prog_CPP+:} false; then : 4148 $as_echo_n "(cached) " >&6 4149else 4150 # Double quotes because CPP needs to be expanded 4151 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4152 do 4153 ac_preproc_ok=false 4154for ac_c_preproc_warn_flag in '' yes 4155do 4156 # Use a header file that comes with gcc, so configuring glibc 4157 # with a fresh cross-compiler works. 4158 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4159 # <limits.h> exists even on freestanding compilers. 4160 # On the NeXT, cc -E runs the code through the compiler's parser, 4161 # not just through cpp. "Syntax error" is here to catch this case. 4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4163/* end confdefs.h. */ 4164#ifdef __STDC__ 4165# include <limits.h> 4166#else 4167# include <assert.h> 4168#endif 4169 Syntax error 4170_ACEOF 4171if ac_fn_c_try_cpp "$LINENO"; then : 4172 4173else 4174 # Broken: fails on valid input. 4175continue 4176fi 4177rm -f conftest.err conftest.i conftest.$ac_ext 4178 4179 # OK, works on sane cases. Now check whether nonexistent headers 4180 # can be detected and how. 4181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4182/* end confdefs.h. */ 4183#include <ac_nonexistent.h> 4184_ACEOF 4185if ac_fn_c_try_cpp "$LINENO"; then : 4186 # Broken: success on invalid input. 4187continue 4188else 4189 # Passes both tests. 4190ac_preproc_ok=: 4191break 4192fi 4193rm -f conftest.err conftest.i conftest.$ac_ext 4194 4195done 4196# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4197rm -f conftest.i conftest.err conftest.$ac_ext 4198if $ac_preproc_ok; then : 4199 break 4200fi 4201 4202 done 4203 ac_cv_prog_CPP=$CPP 4204 4205fi 4206 CPP=$ac_cv_prog_CPP 4207else 4208 ac_cv_prog_CPP=$CPP 4209fi 4210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4211$as_echo "$CPP" >&6; } 4212ac_preproc_ok=false 4213for ac_c_preproc_warn_flag in '' yes 4214do 4215 # Use a header file that comes with gcc, so configuring glibc 4216 # with a fresh cross-compiler works. 4217 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4218 # <limits.h> exists even on freestanding compilers. 4219 # On the NeXT, cc -E runs the code through the compiler's parser, 4220 # not just through cpp. "Syntax error" is here to catch this case. 4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4222/* end confdefs.h. */ 4223#ifdef __STDC__ 4224# include <limits.h> 4225#else 4226# include <assert.h> 4227#endif 4228 Syntax error 4229_ACEOF 4230if ac_fn_c_try_cpp "$LINENO"; then : 4231 4232else 4233 # Broken: fails on valid input. 4234continue 4235fi 4236rm -f conftest.err conftest.i conftest.$ac_ext 4237 4238 # OK, works on sane cases. Now check whether nonexistent headers 4239 # can be detected and how. 4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4241/* end confdefs.h. */ 4242#include <ac_nonexistent.h> 4243_ACEOF 4244if ac_fn_c_try_cpp "$LINENO"; then : 4245 # Broken: success on invalid input. 4246continue 4247else 4248 # Passes both tests. 4249ac_preproc_ok=: 4250break 4251fi 4252rm -f conftest.err conftest.i conftest.$ac_ext 4253 4254done 4255# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4256rm -f conftest.i conftest.err conftest.$ac_ext 4257if $ac_preproc_ok; then : 4258 4259else 4260 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4261$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4262as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4263See \`config.log' for more details" "$LINENO" 5; } 4264fi 4265 4266ac_ext=c 4267ac_cpp='$CPP $CPPFLAGS' 4268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4270ac_compiler_gnu=$ac_cv_c_compiler_gnu 4271 4272 4273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4274$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4275set x ${MAKE-make} 4276ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4277if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4278 $as_echo_n "(cached) " >&6 4279else 4280 cat >conftest.make <<\_ACEOF 4281SHELL = /bin/sh 4282all: 4283 @echo '@@@%%%=$(MAKE)=@@@%%%' 4284_ACEOF 4285# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4286case `${MAKE-make} -f conftest.make 2>/dev/null` in 4287 *@@@%%%=?*=@@@%%%*) 4288 eval ac_cv_prog_make_${ac_make}_set=yes;; 4289 *) 4290 eval ac_cv_prog_make_${ac_make}_set=no;; 4291esac 4292rm -f conftest.make 4293fi 4294if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4296$as_echo "yes" >&6; } 4297 SET_MAKE= 4298else 4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4300$as_echo "no" >&6; } 4301 SET_MAKE="MAKE=${MAKE-make}" 4302fi 4303 4304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4305$as_echo_n "checking whether ln -s works... " >&6; } 4306LN_S=$as_ln_s 4307if test "$LN_S" = "ln -s"; then 4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4309$as_echo "yes" >&6; } 4310else 4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4312$as_echo "no, using $LN_S" >&6; } 4313fi 4314 4315 4316for ac_prog in flex lex 4317do 4318 # Extract the first word of "$ac_prog", so it can be a program name with args. 4319set dummy $ac_prog; ac_word=$2 4320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4321$as_echo_n "checking for $ac_word... " >&6; } 4322if ${ac_cv_prog_LEX+:} false; then : 4323 $as_echo_n "(cached) " >&6 4324else 4325 if test -n "$LEX"; then 4326 ac_cv_prog_LEX="$LEX" # Let the user override the test. 4327else 4328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4329for as_dir in $PATH 4330do 4331 IFS=$as_save_IFS 4332 test -z "$as_dir" && as_dir=. 4333 for ac_exec_ext in '' $ac_executable_extensions; do 4334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4335 ac_cv_prog_LEX="$ac_prog" 4336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4337 break 2 4338 fi 4339done 4340 done 4341IFS=$as_save_IFS 4342 4343fi 4344fi 4345LEX=$ac_cv_prog_LEX 4346if test -n "$LEX"; then 4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 4348$as_echo "$LEX" >&6; } 4349else 4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4351$as_echo "no" >&6; } 4352fi 4353 4354 4355 test -n "$LEX" && break 4356done 4357test -n "$LEX" || LEX=":" 4358 4359if test "x$LEX" != "x:"; then 4360 cat >conftest.l <<_ACEOF 4361%% 4362a { ECHO; } 4363b { REJECT; } 4364c { yymore (); } 4365d { yyless (1); } 4366e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 4367 yyless ((input () != 0)); } 4368f { unput (yytext[0]); } 4369. { BEGIN INITIAL; } 4370%% 4371#ifdef YYTEXT_POINTER 4372extern char *yytext; 4373#endif 4374int 4375main (void) 4376{ 4377 return ! yylex () + ! yywrap (); 4378} 4379_ACEOF 4380{ { ac_try="$LEX conftest.l" 4381case "(($ac_try" in 4382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4383 *) ac_try_echo=$ac_try;; 4384esac 4385eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4386$as_echo "$ac_try_echo"; } >&5 4387 (eval "$LEX conftest.l") 2>&5 4388 ac_status=$? 4389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4390 test $ac_status = 0; } 4391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 4392$as_echo_n "checking lex output file root... " >&6; } 4393if ${ac_cv_prog_lex_root+:} false; then : 4394 $as_echo_n "(cached) " >&6 4395else 4396 4397if test -f lex.yy.c; then 4398 ac_cv_prog_lex_root=lex.yy 4399elif test -f lexyy.c; then 4400 ac_cv_prog_lex_root=lexyy 4401else 4402 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 4403fi 4404fi 4405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 4406$as_echo "$ac_cv_prog_lex_root" >&6; } 4407LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 4408 4409if test -z "${LEXLIB+set}"; then 4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 4411$as_echo_n "checking lex library... " >&6; } 4412if ${ac_cv_lib_lex+:} false; then : 4413 $as_echo_n "(cached) " >&6 4414else 4415 4416 ac_save_LIBS=$LIBS 4417 ac_cv_lib_lex='none needed' 4418 for ac_lib in '' -lfl -ll; do 4419 LIBS="$ac_lib $ac_save_LIBS" 4420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4421/* end confdefs.h. */ 4422`cat $LEX_OUTPUT_ROOT.c` 4423_ACEOF 4424if ac_fn_c_try_link "$LINENO"; then : 4425 ac_cv_lib_lex=$ac_lib 4426fi 4427rm -f core conftest.err conftest.$ac_objext \ 4428 conftest$ac_exeext conftest.$ac_ext 4429 test "$ac_cv_lib_lex" != 'none needed' && break 4430 done 4431 LIBS=$ac_save_LIBS 4432 4433fi 4434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 4435$as_echo "$ac_cv_lib_lex" >&6; } 4436 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 4437fi 4438 4439 4440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 4441$as_echo_n "checking whether yytext is a pointer... " >&6; } 4442if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 4443 $as_echo_n "(cached) " >&6 4444else 4445 # POSIX says lex can declare yytext either as a pointer or an array; the 4446# default is implementation-dependent. Figure out which it is, since 4447# not all implementations provide the %pointer and %array declarations. 4448ac_cv_prog_lex_yytext_pointer=no 4449ac_save_LIBS=$LIBS 4450LIBS="$LEXLIB $ac_save_LIBS" 4451cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4452/* end confdefs.h. */ 4453 4454 #define YYTEXT_POINTER 1 4455`cat $LEX_OUTPUT_ROOT.c` 4456_ACEOF 4457if ac_fn_c_try_link "$LINENO"; then : 4458 ac_cv_prog_lex_yytext_pointer=yes 4459fi 4460rm -f core conftest.err conftest.$ac_objext \ 4461 conftest$ac_exeext conftest.$ac_ext 4462LIBS=$ac_save_LIBS 4463 4464fi 4465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 4466$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 4467if test $ac_cv_prog_lex_yytext_pointer = yes; then 4468 4469$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 4470 4471fi 4472rm -f conftest.l $LEX_OUTPUT_ROOT.c 4473 4474fi 4475if test "$LEX" = :; then 4476 LEX=${am_missing_run}flex 4477fi 4478if test -n "$ac_tool_prefix"; then 4479 for ac_prog in ar lib "link -lib" 4480 do 4481 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4482set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4484$as_echo_n "checking for $ac_word... " >&6; } 4485if ${ac_cv_prog_AR+:} false; then : 4486 $as_echo_n "(cached) " >&6 4487else 4488 if test -n "$AR"; then 4489 ac_cv_prog_AR="$AR" # Let the user override the test. 4490else 4491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4492for as_dir in $PATH 4493do 4494 IFS=$as_save_IFS 4495 test -z "$as_dir" && as_dir=. 4496 for ac_exec_ext in '' $ac_executable_extensions; do 4497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4498 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 4499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4500 break 2 4501 fi 4502done 4503 done 4504IFS=$as_save_IFS 4505 4506fi 4507fi 4508AR=$ac_cv_prog_AR 4509if test -n "$AR"; then 4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4511$as_echo "$AR" >&6; } 4512else 4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4514$as_echo "no" >&6; } 4515fi 4516 4517 4518 test -n "$AR" && break 4519 done 4520fi 4521if test -z "$AR"; then 4522 ac_ct_AR=$AR 4523 for ac_prog in ar lib "link -lib" 4524do 4525 # Extract the first word of "$ac_prog", so it can be a program name with args. 4526set dummy $ac_prog; ac_word=$2 4527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4528$as_echo_n "checking for $ac_word... " >&6; } 4529if ${ac_cv_prog_ac_ct_AR+:} false; then : 4530 $as_echo_n "(cached) " >&6 4531else 4532 if test -n "$ac_ct_AR"; then 4533 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4534else 4535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4536for as_dir in $PATH 4537do 4538 IFS=$as_save_IFS 4539 test -z "$as_dir" && as_dir=. 4540 for ac_exec_ext in '' $ac_executable_extensions; do 4541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4542 ac_cv_prog_ac_ct_AR="$ac_prog" 4543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4544 break 2 4545 fi 4546done 4547 done 4548IFS=$as_save_IFS 4549 4550fi 4551fi 4552ac_ct_AR=$ac_cv_prog_ac_ct_AR 4553if test -n "$ac_ct_AR"; then 4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4555$as_echo "$ac_ct_AR" >&6; } 4556else 4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4558$as_echo "no" >&6; } 4559fi 4560 4561 4562 test -n "$ac_ct_AR" && break 4563done 4564 4565 if test "x$ac_ct_AR" = x; then 4566 AR="false" 4567 else 4568 case $cross_compiling:$ac_tool_warned in 4569yes:) 4570{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4571$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4572ac_tool_warned=yes ;; 4573esac 4574 AR=$ac_ct_AR 4575 fi 4576fi 4577 4578: ${AR=ar} 4579 4580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 4581$as_echo_n "checking the archiver ($AR) interface... " >&6; } 4582if ${am_cv_ar_interface+:} false; then : 4583 $as_echo_n "(cached) " >&6 4584else 4585 ac_ext=c 4586ac_cpp='$CPP $CPPFLAGS' 4587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4589ac_compiler_gnu=$ac_cv_c_compiler_gnu 4590 4591 am_cv_ar_interface=ar 4592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4593/* end confdefs.h. */ 4594int some_variable = 0; 4595_ACEOF 4596if ac_fn_c_try_compile "$LINENO"; then : 4597 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 4598 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4599 (eval $am_ar_try) 2>&5 4600 ac_status=$? 4601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4602 test $ac_status = 0; } 4603 if test "$ac_status" -eq 0; then 4604 am_cv_ar_interface=ar 4605 else 4606 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 4607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4608 (eval $am_ar_try) 2>&5 4609 ac_status=$? 4610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4611 test $ac_status = 0; } 4612 if test "$ac_status" -eq 0; then 4613 am_cv_ar_interface=lib 4614 else 4615 am_cv_ar_interface=unknown 4616 fi 4617 fi 4618 rm -f conftest.lib libconftest.a 4619 4620fi 4621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4622 ac_ext=c 4623ac_cpp='$CPP $CPPFLAGS' 4624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4626ac_compiler_gnu=$ac_cv_c_compiler_gnu 4627 4628fi 4629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 4630$as_echo "$am_cv_ar_interface" >&6; } 4631 4632case $am_cv_ar_interface in 4633ar) 4634 ;; 4635lib) 4636 # Microsoft lib, so override with the ar-lib wrapper script. 4637 # FIXME: It is wrong to rewrite AR. 4638 # But if we don't then we get into trouble of one sort or another. 4639 # A longer-term fix would be to have automake use am__AR in this case, 4640 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 4641 # similar. 4642 AR="$am_aux_dir/ar-lib $AR" 4643 ;; 4644unknown) 4645 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 4646 ;; 4647esac 4648 4649 4650 4651 4652 4653 4654 4655 4656if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4657 if test -n "$ac_tool_prefix"; then 4658 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4659set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4661$as_echo_n "checking for $ac_word... " >&6; } 4662if ${ac_cv_path_PKG_CONFIG+:} false; then : 4663 $as_echo_n "(cached) " >&6 4664else 4665 case $PKG_CONFIG in 4666 [\\/]* | ?:[\\/]*) 4667 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4668 ;; 4669 *) 4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4671for as_dir in $PATH 4672do 4673 IFS=$as_save_IFS 4674 test -z "$as_dir" && as_dir=. 4675 for ac_exec_ext in '' $ac_executable_extensions; do 4676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4677 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4679 break 2 4680 fi 4681done 4682 done 4683IFS=$as_save_IFS 4684 4685 ;; 4686esac 4687fi 4688PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4689if test -n "$PKG_CONFIG"; then 4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4691$as_echo "$PKG_CONFIG" >&6; } 4692else 4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4694$as_echo "no" >&6; } 4695fi 4696 4697 4698fi 4699if test -z "$ac_cv_path_PKG_CONFIG"; then 4700 ac_pt_PKG_CONFIG=$PKG_CONFIG 4701 # Extract the first word of "pkg-config", so it can be a program name with args. 4702set dummy pkg-config; ac_word=$2 4703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4704$as_echo_n "checking for $ac_word... " >&6; } 4705if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4706 $as_echo_n "(cached) " >&6 4707else 4708 case $ac_pt_PKG_CONFIG in 4709 [\\/]* | ?:[\\/]*) 4710 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4711 ;; 4712 *) 4713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4714for as_dir in $PATH 4715do 4716 IFS=$as_save_IFS 4717 test -z "$as_dir" && as_dir=. 4718 for ac_exec_ext in '' $ac_executable_extensions; do 4719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4720 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4722 break 2 4723 fi 4724done 4725 done 4726IFS=$as_save_IFS 4727 4728 ;; 4729esac 4730fi 4731ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4732if test -n "$ac_pt_PKG_CONFIG"; then 4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4734$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4735else 4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4737$as_echo "no" >&6; } 4738fi 4739 4740 if test "x$ac_pt_PKG_CONFIG" = x; then 4741 PKG_CONFIG="" 4742 else 4743 case $cross_compiling:$ac_tool_warned in 4744yes:) 4745{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4746$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4747ac_tool_warned=yes ;; 4748esac 4749 PKG_CONFIG=$ac_pt_PKG_CONFIG 4750 fi 4751else 4752 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4753fi 4754 4755fi 4756if test -n "$PKG_CONFIG"; then 4757 _pkg_min_version=0.9.0 4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4759$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4760 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4762$as_echo "yes" >&6; } 4763 else 4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4765$as_echo "no" >&6; } 4766 PKG_CONFIG="" 4767 fi 4768fi 4769 4770# check pcsc-lite version 4771PCSC_NEEDED_VERSION="1.8.3" 4772if test -n "$PKG_CONFIG" && \ 4773 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcsclite\""; } >&5 4774 ($PKG_CONFIG --exists --print-errors "libpcsclite") 2>&5 4775 ac_status=$? 4776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4777 test $ac_status = 0; }; then 4778 4779pkg_failed=no 4780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCSC" >&5 4781$as_echo_n "checking for PCSC... " >&6; } 4782 4783if test -n "$PCSC_CFLAGS"; then 4784 pkg_cv_PCSC_CFLAGS="$PCSC_CFLAGS" 4785 elif test -n "$PKG_CONFIG"; then 4786 if test -n "$PKG_CONFIG" && \ 4787 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcsclite >= \$PCSC_NEEDED_VERSION\""; } >&5 4788 ($PKG_CONFIG --exists --print-errors "libpcsclite >= $PCSC_NEEDED_VERSION") 2>&5 4789 ac_status=$? 4790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4791 test $ac_status = 0; }; then 4792 pkg_cv_PCSC_CFLAGS=`$PKG_CONFIG --cflags "libpcsclite >= $PCSC_NEEDED_VERSION" 2>/dev/null` 4793 test "x$?" != "x0" && pkg_failed=yes 4794else 4795 pkg_failed=yes 4796fi 4797 else 4798 pkg_failed=untried 4799fi 4800if test -n "$PCSC_LIBS"; then 4801 pkg_cv_PCSC_LIBS="$PCSC_LIBS" 4802 elif test -n "$PKG_CONFIG"; then 4803 if test -n "$PKG_CONFIG" && \ 4804 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcsclite >= \$PCSC_NEEDED_VERSION\""; } >&5 4805 ($PKG_CONFIG --exists --print-errors "libpcsclite >= $PCSC_NEEDED_VERSION") 2>&5 4806 ac_status=$? 4807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4808 test $ac_status = 0; }; then 4809 pkg_cv_PCSC_LIBS=`$PKG_CONFIG --libs "libpcsclite >= $PCSC_NEEDED_VERSION" 2>/dev/null` 4810 test "x$?" != "x0" && pkg_failed=yes 4811else 4812 pkg_failed=yes 4813fi 4814 else 4815 pkg_failed=untried 4816fi 4817 4818 4819 4820if test $pkg_failed = yes; then 4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4822$as_echo "no" >&6; } 4823 4824if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 4825 _pkg_short_errors_supported=yes 4826else 4827 _pkg_short_errors_supported=no 4828fi 4829 if test $_pkg_short_errors_supported = yes; then 4830 PCSC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpcsclite >= $PCSC_NEEDED_VERSION" 2>&1` 4831 else 4832 PCSC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpcsclite >= $PCSC_NEEDED_VERSION" 2>&1` 4833 fi 4834 # Put the nasty error message in config.log where it belongs 4835 echo "$PCSC_PKG_ERRORS" >&5 4836 4837 4838 if test -f /usr/local/lib/pkgconfig/libpcsclite.pc -a "x$PKG_CONFIG" != x ; then 4839 as_fn_error $? "use PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure" "$LINENO" 5 4840 else 4841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: install pcsc-lite $PCSC_NEEDED_VERSION or later" >&5 4842$as_echo "$as_me: WARNING: install pcsc-lite $PCSC_NEEDED_VERSION or later" >&2;} 4843 fi 4844 4845elif test $pkg_failed = untried; then 4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4847$as_echo "no" >&6; } 4848 4849 if test -f /usr/local/lib/pkgconfig/libpcsclite.pc -a "x$PKG_CONFIG" != x ; then 4850 as_fn_error $? "use PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure" "$LINENO" 5 4851 else 4852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: install pcsc-lite $PCSC_NEEDED_VERSION or later" >&5 4853$as_echo "$as_me: WARNING: install pcsc-lite $PCSC_NEEDED_VERSION or later" >&2;} 4854 fi 4855 4856else 4857 PCSC_CFLAGS=$pkg_cv_PCSC_CFLAGS 4858 PCSC_LIBS=$pkg_cv_PCSC_LIBS 4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4860$as_echo "yes" >&6; } 4861 4862fi 4863else 4864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libpcsclite not found by pkg-config" >&5 4865$as_echo "$as_me: WARNING: libpcsclite not found by pkg-config" >&2;} 4866 4867fi 4868 4869saved_CPPFLAGS="$CPPFLAGS" 4870CPPFLAGS="$CPPFLAGS $PCSC_CFLAGS" 4871PCSC_ERROR_MSG="install pcsc-lite $PCSC_NEEDED_VERSION or later, or use ./configure PCSC_CFLAGS=..." 4872 4873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4874$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4875if ${ac_cv_path_GREP+:} false; then : 4876 $as_echo_n "(cached) " >&6 4877else 4878 if test -z "$GREP"; then 4879 ac_path_GREP_found=false 4880 # Loop through the user's path and test for each of PROGNAME-LIST 4881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4882for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4883do 4884 IFS=$as_save_IFS 4885 test -z "$as_dir" && as_dir=. 4886 for ac_prog in grep ggrep; do 4887 for ac_exec_ext in '' $ac_executable_extensions; do 4888 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4889 as_fn_executable_p "$ac_path_GREP" || continue 4890# Check for GNU ac_path_GREP and select it if it is found. 4891 # Check for GNU $ac_path_GREP 4892case `"$ac_path_GREP" --version 2>&1` in 4893*GNU*) 4894 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4895*) 4896 ac_count=0 4897 $as_echo_n 0123456789 >"conftest.in" 4898 while : 4899 do 4900 cat "conftest.in" "conftest.in" >"conftest.tmp" 4901 mv "conftest.tmp" "conftest.in" 4902 cp "conftest.in" "conftest.nl" 4903 $as_echo 'GREP' >> "conftest.nl" 4904 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4905 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4906 as_fn_arith $ac_count + 1 && ac_count=$as_val 4907 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4908 # Best one so far, save it but keep looking for a better one 4909 ac_cv_path_GREP="$ac_path_GREP" 4910 ac_path_GREP_max=$ac_count 4911 fi 4912 # 10*(2^10) chars as input seems more than enough 4913 test $ac_count -gt 10 && break 4914 done 4915 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4916esac 4917 4918 $ac_path_GREP_found && break 3 4919 done 4920 done 4921 done 4922IFS=$as_save_IFS 4923 if test -z "$ac_cv_path_GREP"; then 4924 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4925 fi 4926else 4927 ac_cv_path_GREP=$GREP 4928fi 4929 4930fi 4931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4932$as_echo "$ac_cv_path_GREP" >&6; } 4933 GREP="$ac_cv_path_GREP" 4934 4935 4936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4937$as_echo_n "checking for egrep... " >&6; } 4938if ${ac_cv_path_EGREP+:} false; then : 4939 $as_echo_n "(cached) " >&6 4940else 4941 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4942 then ac_cv_path_EGREP="$GREP -E" 4943 else 4944 if test -z "$EGREP"; then 4945 ac_path_EGREP_found=false 4946 # Loop through the user's path and test for each of PROGNAME-LIST 4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4948for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4949do 4950 IFS=$as_save_IFS 4951 test -z "$as_dir" && as_dir=. 4952 for ac_prog in egrep; do 4953 for ac_exec_ext in '' $ac_executable_extensions; do 4954 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4955 as_fn_executable_p "$ac_path_EGREP" || continue 4956# Check for GNU ac_path_EGREP and select it if it is found. 4957 # Check for GNU $ac_path_EGREP 4958case `"$ac_path_EGREP" --version 2>&1` in 4959*GNU*) 4960 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4961*) 4962 ac_count=0 4963 $as_echo_n 0123456789 >"conftest.in" 4964 while : 4965 do 4966 cat "conftest.in" "conftest.in" >"conftest.tmp" 4967 mv "conftest.tmp" "conftest.in" 4968 cp "conftest.in" "conftest.nl" 4969 $as_echo 'EGREP' >> "conftest.nl" 4970 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4971 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4972 as_fn_arith $ac_count + 1 && ac_count=$as_val 4973 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4974 # Best one so far, save it but keep looking for a better one 4975 ac_cv_path_EGREP="$ac_path_EGREP" 4976 ac_path_EGREP_max=$ac_count 4977 fi 4978 # 10*(2^10) chars as input seems more than enough 4979 test $ac_count -gt 10 && break 4980 done 4981 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4982esac 4983 4984 $ac_path_EGREP_found && break 3 4985 done 4986 done 4987 done 4988IFS=$as_save_IFS 4989 if test -z "$ac_cv_path_EGREP"; then 4990 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4991 fi 4992else 4993 ac_cv_path_EGREP=$EGREP 4994fi 4995 4996 fi 4997fi 4998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4999$as_echo "$ac_cv_path_EGREP" >&6; } 5000 EGREP="$ac_cv_path_EGREP" 5001 5002 5003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5004$as_echo_n "checking for ANSI C header files... " >&6; } 5005if ${ac_cv_header_stdc+:} false; then : 5006 $as_echo_n "(cached) " >&6 5007else 5008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5009/* end confdefs.h. */ 5010#include <stdlib.h> 5011#include <stdarg.h> 5012#include <string.h> 5013#include <float.h> 5014 5015int 5016main () 5017{ 5018 5019 ; 5020 return 0; 5021} 5022_ACEOF 5023if ac_fn_c_try_compile "$LINENO"; then : 5024 ac_cv_header_stdc=yes 5025else 5026 ac_cv_header_stdc=no 5027fi 5028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5029 5030if test $ac_cv_header_stdc = yes; then 5031 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5033/* end confdefs.h. */ 5034#include <string.h> 5035 5036_ACEOF 5037if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5038 $EGREP "memchr" >/dev/null 2>&1; then : 5039 5040else 5041 ac_cv_header_stdc=no 5042fi 5043rm -f conftest* 5044 5045fi 5046 5047if test $ac_cv_header_stdc = yes; then 5048 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5050/* end confdefs.h. */ 5051#include <stdlib.h> 5052 5053_ACEOF 5054if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5055 $EGREP "free" >/dev/null 2>&1; then : 5056 5057else 5058 ac_cv_header_stdc=no 5059fi 5060rm -f conftest* 5061 5062fi 5063 5064if test $ac_cv_header_stdc = yes; then 5065 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5066 if test "$cross_compiling" = yes; then : 5067 : 5068else 5069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5070/* end confdefs.h. */ 5071#include <ctype.h> 5072#include <stdlib.h> 5073#if ((' ' & 0x0FF) == 0x020) 5074# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5075# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5076#else 5077# define ISLOWER(c) \ 5078 (('a' <= (c) && (c) <= 'i') \ 5079 || ('j' <= (c) && (c) <= 'r') \ 5080 || ('s' <= (c) && (c) <= 'z')) 5081# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5082#endif 5083 5084#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5085int 5086main () 5087{ 5088 int i; 5089 for (i = 0; i < 256; i++) 5090 if (XOR (islower (i), ISLOWER (i)) 5091 || toupper (i) != TOUPPER (i)) 5092 return 2; 5093 return 0; 5094} 5095_ACEOF 5096if ac_fn_c_try_run "$LINENO"; then : 5097 5098else 5099 ac_cv_header_stdc=no 5100fi 5101rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5102 conftest.$ac_objext conftest.beam conftest.$ac_ext 5103fi 5104 5105fi 5106fi 5107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5108$as_echo "$ac_cv_header_stdc" >&6; } 5109if test $ac_cv_header_stdc = yes; then 5110 5111$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5112 5113fi 5114 5115# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5116for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5117 inttypes.h stdint.h unistd.h 5118do : 5119 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5120ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5121" 5122if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5123 cat >>confdefs.h <<_ACEOF 5124#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5125_ACEOF 5126 5127fi 5128 5129done 5130 5131 5132ac_fn_c_check_header_mongrel "$LINENO" "ifdhandler.h" "ac_cv_header_ifdhandler_h" "$ac_includes_default" 5133if test "x$ac_cv_header_ifdhandler_h" = xyes; then : 5134 5135else 5136 as_fn_error $? "$PCSC_ERROR_MSG" "$LINENO" 5 5137fi 5138 5139 5140ac_fn_c_check_header_mongrel "$LINENO" "reader.h" "ac_cv_header_reader_h" "$ac_includes_default" 5141if test "x$ac_cv_header_reader_h" = xyes; then : 5142 5143else 5144 as_fn_error $? "$PCSC_ERROR_MSG" "$LINENO" 5 5145fi 5146 5147 5148CPPFLAGS="$saved_CPPFLAGS" 5149 5150# Add libtool support. 5151# Static lib is disabled by default. Use --enable-static if needed 5152case `pwd` in 5153 *\ * | *\ *) 5154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5155$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5156esac 5157 5158 5159 5160macro_version='2.4.2' 5161macro_revision='1.3337' 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175ltmain="$ac_aux_dir/ltmain.sh" 5176 5177# Backslashify metacharacters that are still active within 5178# double-quoted strings. 5179sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5180 5181# Same as above, but do not quote variable references. 5182double_quote_subst='s/\(["`\\]\)/\\\1/g' 5183 5184# Sed substitution to delay expansion of an escaped shell variable in a 5185# double_quote_subst'ed string. 5186delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5187 5188# Sed substitution to delay expansion of an escaped single quote. 5189delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5190 5191# Sed substitution to avoid accidental globbing in evaled expressions 5192no_glob_subst='s/\*/\\\*/g' 5193 5194ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5195ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5196ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5197 5198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5199$as_echo_n "checking how to print strings... " >&6; } 5200# Test print first, because it will be a builtin if present. 5201if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5202 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5203 ECHO='print -r --' 5204elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5205 ECHO='printf %s\n' 5206else 5207 # Use this function as a fallback that always works. 5208 func_fallback_echo () 5209 { 5210 eval 'cat <<_LTECHO_EOF 5211$1 5212_LTECHO_EOF' 5213 } 5214 ECHO='func_fallback_echo' 5215fi 5216 5217# func_echo_all arg... 5218# Invoke $ECHO with all args, space-separated. 5219func_echo_all () 5220{ 5221 $ECHO "" 5222} 5223 5224case "$ECHO" in 5225 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5226$as_echo "printf" >&6; } ;; 5227 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5228$as_echo "print -r" >&6; } ;; 5229 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5230$as_echo "cat" >&6; } ;; 5231esac 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5247$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5248if ${ac_cv_path_SED+:} false; then : 5249 $as_echo_n "(cached) " >&6 5250else 5251 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5252 for ac_i in 1 2 3 4 5 6 7; do 5253 ac_script="$ac_script$as_nl$ac_script" 5254 done 5255 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5256 { ac_script=; unset ac_script;} 5257 if test -z "$SED"; then 5258 ac_path_SED_found=false 5259 # Loop through the user's path and test for each of PROGNAME-LIST 5260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5261for as_dir in $PATH 5262do 5263 IFS=$as_save_IFS 5264 test -z "$as_dir" && as_dir=. 5265 for ac_prog in sed gsed; do 5266 for ac_exec_ext in '' $ac_executable_extensions; do 5267 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5268 as_fn_executable_p "$ac_path_SED" || continue 5269# Check for GNU ac_path_SED and select it if it is found. 5270 # Check for GNU $ac_path_SED 5271case `"$ac_path_SED" --version 2>&1` in 5272*GNU*) 5273 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5274*) 5275 ac_count=0 5276 $as_echo_n 0123456789 >"conftest.in" 5277 while : 5278 do 5279 cat "conftest.in" "conftest.in" >"conftest.tmp" 5280 mv "conftest.tmp" "conftest.in" 5281 cp "conftest.in" "conftest.nl" 5282 $as_echo '' >> "conftest.nl" 5283 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5284 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5285 as_fn_arith $ac_count + 1 && ac_count=$as_val 5286 if test $ac_count -gt ${ac_path_SED_max-0}; then 5287 # Best one so far, save it but keep looking for a better one 5288 ac_cv_path_SED="$ac_path_SED" 5289 ac_path_SED_max=$ac_count 5290 fi 5291 # 10*(2^10) chars as input seems more than enough 5292 test $ac_count -gt 10 && break 5293 done 5294 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5295esac 5296 5297 $ac_path_SED_found && break 3 5298 done 5299 done 5300 done 5301IFS=$as_save_IFS 5302 if test -z "$ac_cv_path_SED"; then 5303 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5304 fi 5305else 5306 ac_cv_path_SED=$SED 5307fi 5308 5309fi 5310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5311$as_echo "$ac_cv_path_SED" >&6; } 5312 SED="$ac_cv_path_SED" 5313 rm -f conftest.sed 5314 5315test -z "$SED" && SED=sed 5316Xsed="$SED -e 1s/^X//" 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5329$as_echo_n "checking for fgrep... " >&6; } 5330if ${ac_cv_path_FGREP+:} false; then : 5331 $as_echo_n "(cached) " >&6 5332else 5333 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5334 then ac_cv_path_FGREP="$GREP -F" 5335 else 5336 if test -z "$FGREP"; then 5337 ac_path_FGREP_found=false 5338 # Loop through the user's path and test for each of PROGNAME-LIST 5339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5340for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5341do 5342 IFS=$as_save_IFS 5343 test -z "$as_dir" && as_dir=. 5344 for ac_prog in fgrep; do 5345 for ac_exec_ext in '' $ac_executable_extensions; do 5346 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5347 as_fn_executable_p "$ac_path_FGREP" || continue 5348# Check for GNU ac_path_FGREP and select it if it is found. 5349 # Check for GNU $ac_path_FGREP 5350case `"$ac_path_FGREP" --version 2>&1` in 5351*GNU*) 5352 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5353*) 5354 ac_count=0 5355 $as_echo_n 0123456789 >"conftest.in" 5356 while : 5357 do 5358 cat "conftest.in" "conftest.in" >"conftest.tmp" 5359 mv "conftest.tmp" "conftest.in" 5360 cp "conftest.in" "conftest.nl" 5361 $as_echo 'FGREP' >> "conftest.nl" 5362 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5363 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5364 as_fn_arith $ac_count + 1 && ac_count=$as_val 5365 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5366 # Best one so far, save it but keep looking for a better one 5367 ac_cv_path_FGREP="$ac_path_FGREP" 5368 ac_path_FGREP_max=$ac_count 5369 fi 5370 # 10*(2^10) chars as input seems more than enough 5371 test $ac_count -gt 10 && break 5372 done 5373 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5374esac 5375 5376 $ac_path_FGREP_found && break 3 5377 done 5378 done 5379 done 5380IFS=$as_save_IFS 5381 if test -z "$ac_cv_path_FGREP"; then 5382 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5383 fi 5384else 5385 ac_cv_path_FGREP=$FGREP 5386fi 5387 5388 fi 5389fi 5390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5391$as_echo "$ac_cv_path_FGREP" >&6; } 5392 FGREP="$ac_cv_path_FGREP" 5393 5394 5395test -z "$GREP" && GREP=grep 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415# Check whether --with-gnu-ld was given. 5416if test "${with_gnu_ld+set}" = set; then : 5417 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5418else 5419 with_gnu_ld=no 5420fi 5421 5422ac_prog=ld 5423if test "$GCC" = yes; then 5424 # Check if gcc -print-prog-name=ld gives a path. 5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5426$as_echo_n "checking for ld used by $CC... " >&6; } 5427 case $host in 5428 *-*-mingw*) 5429 # gcc leaves a trailing carriage return which upsets mingw 5430 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5431 *) 5432 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5433 esac 5434 case $ac_prog in 5435 # Accept absolute paths. 5436 [\\/]* | ?:[\\/]*) 5437 re_direlt='/[^/][^/]*/\.\./' 5438 # Canonicalize the pathname of ld 5439 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5440 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5441 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5442 done 5443 test -z "$LD" && LD="$ac_prog" 5444 ;; 5445 "") 5446 # If it fails, then pretend we aren't using GCC. 5447 ac_prog=ld 5448 ;; 5449 *) 5450 # If it is relative, then search for the first ld in PATH. 5451 with_gnu_ld=unknown 5452 ;; 5453 esac 5454elif test "$with_gnu_ld" = yes; then 5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5456$as_echo_n "checking for GNU ld... " >&6; } 5457else 5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5459$as_echo_n "checking for non-GNU ld... " >&6; } 5460fi 5461if ${lt_cv_path_LD+:} false; then : 5462 $as_echo_n "(cached) " >&6 5463else 5464 if test -z "$LD"; then 5465 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5466 for ac_dir in $PATH; do 5467 IFS="$lt_save_ifs" 5468 test -z "$ac_dir" && ac_dir=. 5469 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5470 lt_cv_path_LD="$ac_dir/$ac_prog" 5471 # Check to see if the program is GNU ld. I'd rather use --version, 5472 # but apparently some variants of GNU ld only accept -v. 5473 # Break only if it was the GNU/non-GNU ld that we prefer. 5474 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5475 *GNU* | *'with BFD'*) 5476 test "$with_gnu_ld" != no && break 5477 ;; 5478 *) 5479 test "$with_gnu_ld" != yes && break 5480 ;; 5481 esac 5482 fi 5483 done 5484 IFS="$lt_save_ifs" 5485else 5486 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5487fi 5488fi 5489 5490LD="$lt_cv_path_LD" 5491if test -n "$LD"; then 5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5493$as_echo "$LD" >&6; } 5494else 5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5496$as_echo "no" >&6; } 5497fi 5498test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5500$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5501if ${lt_cv_prog_gnu_ld+:} false; then : 5502 $as_echo_n "(cached) " >&6 5503else 5504 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5505case `$LD -v 2>&1 </dev/null` in 5506*GNU* | *'with BFD'*) 5507 lt_cv_prog_gnu_ld=yes 5508 ;; 5509*) 5510 lt_cv_prog_gnu_ld=no 5511 ;; 5512esac 5513fi 5514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5515$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5516with_gnu_ld=$lt_cv_prog_gnu_ld 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5527$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5528if ${lt_cv_path_NM+:} false; then : 5529 $as_echo_n "(cached) " >&6 5530else 5531 if test -n "$NM"; then 5532 # Let the user override the test. 5533 lt_cv_path_NM="$NM" 5534else 5535 lt_nm_to_check="${ac_tool_prefix}nm" 5536 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5537 lt_nm_to_check="$lt_nm_to_check nm" 5538 fi 5539 for lt_tmp_nm in $lt_nm_to_check; do 5540 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5541 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5542 IFS="$lt_save_ifs" 5543 test -z "$ac_dir" && ac_dir=. 5544 tmp_nm="$ac_dir/$lt_tmp_nm" 5545 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5546 # Check to see if the nm accepts a BSD-compat flag. 5547 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5548 # nm: unknown option "B" ignored 5549 # Tru64's nm complains that /dev/null is an invalid object file 5550 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5551 */dev/null* | *'Invalid file or object type'*) 5552 lt_cv_path_NM="$tmp_nm -B" 5553 break 5554 ;; 5555 *) 5556 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5557 */dev/null*) 5558 lt_cv_path_NM="$tmp_nm -p" 5559 break 5560 ;; 5561 *) 5562 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5563 continue # so that we can try to find one that supports BSD flags 5564 ;; 5565 esac 5566 ;; 5567 esac 5568 fi 5569 done 5570 IFS="$lt_save_ifs" 5571 done 5572 : ${lt_cv_path_NM=no} 5573fi 5574fi 5575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5576$as_echo "$lt_cv_path_NM" >&6; } 5577if test "$lt_cv_path_NM" != "no"; then 5578 NM="$lt_cv_path_NM" 5579else 5580 # Didn't find any BSD compatible name lister, look for dumpbin. 5581 if test -n "$DUMPBIN"; then : 5582 # Let the user override the test. 5583 else 5584 if test -n "$ac_tool_prefix"; then 5585 for ac_prog in dumpbin "link -dump" 5586 do 5587 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5588set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5590$as_echo_n "checking for $ac_word... " >&6; } 5591if ${ac_cv_prog_DUMPBIN+:} false; then : 5592 $as_echo_n "(cached) " >&6 5593else 5594 if test -n "$DUMPBIN"; then 5595 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5596else 5597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5598for as_dir in $PATH 5599do 5600 IFS=$as_save_IFS 5601 test -z "$as_dir" && as_dir=. 5602 for ac_exec_ext in '' $ac_executable_extensions; do 5603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5604 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5606 break 2 5607 fi 5608done 5609 done 5610IFS=$as_save_IFS 5611 5612fi 5613fi 5614DUMPBIN=$ac_cv_prog_DUMPBIN 5615if test -n "$DUMPBIN"; then 5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5617$as_echo "$DUMPBIN" >&6; } 5618else 5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5620$as_echo "no" >&6; } 5621fi 5622 5623 5624 test -n "$DUMPBIN" && break 5625 done 5626fi 5627if test -z "$DUMPBIN"; then 5628 ac_ct_DUMPBIN=$DUMPBIN 5629 for ac_prog in dumpbin "link -dump" 5630do 5631 # Extract the first word of "$ac_prog", so it can be a program name with args. 5632set dummy $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_ac_ct_DUMPBIN+:} false; then : 5636 $as_echo_n "(cached) " >&6 5637else 5638 if test -n "$ac_ct_DUMPBIN"; then 5639 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # 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_ac_ct_DUMPBIN="$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 5658ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5659if test -n "$ac_ct_DUMPBIN"; then 5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5661$as_echo "$ac_ct_DUMPBIN" >&6; } 5662else 5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5664$as_echo "no" >&6; } 5665fi 5666 5667 5668 test -n "$ac_ct_DUMPBIN" && break 5669done 5670 5671 if test "x$ac_ct_DUMPBIN" = x; then 5672 DUMPBIN=":" 5673 else 5674 case $cross_compiling:$ac_tool_warned in 5675yes:) 5676{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5677$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5678ac_tool_warned=yes ;; 5679esac 5680 DUMPBIN=$ac_ct_DUMPBIN 5681 fi 5682fi 5683 5684 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5685 *COFF*) 5686 DUMPBIN="$DUMPBIN -symbols" 5687 ;; 5688 *) 5689 DUMPBIN=: 5690 ;; 5691 esac 5692 fi 5693 5694 if test "$DUMPBIN" != ":"; then 5695 NM="$DUMPBIN" 5696 fi 5697fi 5698test -z "$NM" && NM=nm 5699 5700 5701 5702 5703 5704 5705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5706$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5707if ${lt_cv_nm_interface+:} false; then : 5708 $as_echo_n "(cached) " >&6 5709else 5710 lt_cv_nm_interface="BSD nm" 5711 echo "int some_variable = 0;" > conftest.$ac_ext 5712 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5713 (eval "$ac_compile" 2>conftest.err) 5714 cat conftest.err >&5 5715 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5716 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5717 cat conftest.err >&5 5718 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5719 cat conftest.out >&5 5720 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5721 lt_cv_nm_interface="MS dumpbin" 5722 fi 5723 rm -f conftest* 5724fi 5725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5726$as_echo "$lt_cv_nm_interface" >&6; } 5727 5728# find the maximum length of command line arguments 5729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5730$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5731if ${lt_cv_sys_max_cmd_len+:} false; then : 5732 $as_echo_n "(cached) " >&6 5733else 5734 i=0 5735 teststring="ABCD" 5736 5737 case $build_os in 5738 msdosdjgpp*) 5739 # On DJGPP, this test can blow up pretty badly due to problems in libc 5740 # (any single argument exceeding 2000 bytes causes a buffer overrun 5741 # during glob expansion). Even if it were fixed, the result of this 5742 # check would be larger than it should be. 5743 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5744 ;; 5745 5746 gnu*) 5747 # Under GNU Hurd, this test is not required because there is 5748 # no limit to the length of command line arguments. 5749 # Libtool will interpret -1 as no limit whatsoever 5750 lt_cv_sys_max_cmd_len=-1; 5751 ;; 5752 5753 cygwin* | mingw* | cegcc*) 5754 # On Win9x/ME, this test blows up -- it succeeds, but takes 5755 # about 5 minutes as the teststring grows exponentially. 5756 # Worse, since 9x/ME are not pre-emptively multitasking, 5757 # you end up with a "frozen" computer, even though with patience 5758 # the test eventually succeeds (with a max line length of 256k). 5759 # Instead, let's just punt: use the minimum linelength reported by 5760 # all of the supported platforms: 8192 (on NT/2K/XP). 5761 lt_cv_sys_max_cmd_len=8192; 5762 ;; 5763 5764 mint*) 5765 # On MiNT this can take a long time and run out of memory. 5766 lt_cv_sys_max_cmd_len=8192; 5767 ;; 5768 5769 amigaos*) 5770 # On AmigaOS with pdksh, this test takes hours, literally. 5771 # So we just punt and use a minimum line length of 8192. 5772 lt_cv_sys_max_cmd_len=8192; 5773 ;; 5774 5775 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5776 # This has been around since 386BSD, at least. Likely further. 5777 if test -x /sbin/sysctl; then 5778 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5779 elif test -x /usr/sbin/sysctl; then 5780 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5781 else 5782 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5783 fi 5784 # And add a safety zone 5785 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5786 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5787 ;; 5788 5789 interix*) 5790 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5791 lt_cv_sys_max_cmd_len=196608 5792 ;; 5793 5794 os2*) 5795 # The test takes a long time on OS/2. 5796 lt_cv_sys_max_cmd_len=8192 5797 ;; 5798 5799 osf*) 5800 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5801 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5802 # nice to cause kernel panics so lets avoid the loop below. 5803 # First set a reasonable default. 5804 lt_cv_sys_max_cmd_len=16384 5805 # 5806 if test -x /sbin/sysconfig; then 5807 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5808 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5809 esac 5810 fi 5811 ;; 5812 sco3.2v5*) 5813 lt_cv_sys_max_cmd_len=102400 5814 ;; 5815 sysv5* | sco5v6* | sysv4.2uw2*) 5816 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5817 if test -n "$kargmax"; then 5818 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5819 else 5820 lt_cv_sys_max_cmd_len=32768 5821 fi 5822 ;; 5823 *) 5824 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5825 if test -n "$lt_cv_sys_max_cmd_len" && \ 5826 test undefined != "$lt_cv_sys_max_cmd_len"; then 5827 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5828 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5829 else 5830 # Make teststring a little bigger before we do anything with it. 5831 # a 1K string should be a reasonable start. 5832 for i in 1 2 3 4 5 6 7 8 ; do 5833 teststring=$teststring$teststring 5834 done 5835 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5836 # If test is not a shell built-in, we'll probably end up computing a 5837 # maximum length that is only half of the actual maximum length, but 5838 # we can't tell. 5839 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5840 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5841 test $i != 17 # 1/2 MB should be enough 5842 do 5843 i=`expr $i + 1` 5844 teststring=$teststring$teststring 5845 done 5846 # Only check the string length outside the loop. 5847 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5848 teststring= 5849 # Add a significant safety factor because C++ compilers can tack on 5850 # massive amounts of additional arguments before passing them to the 5851 # linker. It appears as though 1/2 is a usable value. 5852 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5853 fi 5854 ;; 5855 esac 5856 5857fi 5858 5859if test -n $lt_cv_sys_max_cmd_len ; then 5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5861$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5862else 5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5864$as_echo "none" >&6; } 5865fi 5866max_cmd_len=$lt_cv_sys_max_cmd_len 5867 5868 5869 5870 5871 5872 5873: ${CP="cp -f"} 5874: ${MV="mv -f"} 5875: ${RM="rm -f"} 5876 5877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5878$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5879# Try some XSI features 5880xsi_shell=no 5881( _lt_dummy="a/b/c" 5882 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5883 = c,a/b,b/c, \ 5884 && eval 'test $(( 1 + 1 )) -eq 2 \ 5885 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5886 && xsi_shell=yes 5887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5888$as_echo "$xsi_shell" >&6; } 5889 5890 5891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5892$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5893lt_shell_append=no 5894( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5895 >/dev/null 2>&1 \ 5896 && lt_shell_append=yes 5897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5898$as_echo "$lt_shell_append" >&6; } 5899 5900 5901if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5902 lt_unset=unset 5903else 5904 lt_unset=false 5905fi 5906 5907 5908 5909 5910 5911# test EBCDIC or ASCII 5912case `echo X|tr X '\101'` in 5913 A) # ASCII based system 5914 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5915 lt_SP2NL='tr \040 \012' 5916 lt_NL2SP='tr \015\012 \040\040' 5917 ;; 5918 *) # EBCDIC based system 5919 lt_SP2NL='tr \100 \n' 5920 lt_NL2SP='tr \r\n \100\100' 5921 ;; 5922esac 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5933$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5934if ${lt_cv_to_host_file_cmd+:} false; then : 5935 $as_echo_n "(cached) " >&6 5936else 5937 case $host in 5938 *-*-mingw* ) 5939 case $build in 5940 *-*-mingw* ) # actually msys 5941 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5942 ;; 5943 *-*-cygwin* ) 5944 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5945 ;; 5946 * ) # otherwise, assume *nix 5947 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5948 ;; 5949 esac 5950 ;; 5951 *-*-cygwin* ) 5952 case $build in 5953 *-*-mingw* ) # actually msys 5954 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5955 ;; 5956 *-*-cygwin* ) 5957 lt_cv_to_host_file_cmd=func_convert_file_noop 5958 ;; 5959 * ) # otherwise, assume *nix 5960 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5961 ;; 5962 esac 5963 ;; 5964 * ) # unhandled hosts (and "normal" native builds) 5965 lt_cv_to_host_file_cmd=func_convert_file_noop 5966 ;; 5967esac 5968 5969fi 5970 5971to_host_file_cmd=$lt_cv_to_host_file_cmd 5972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5973$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5974 5975 5976 5977 5978 5979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5980$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5981if ${lt_cv_to_tool_file_cmd+:} false; then : 5982 $as_echo_n "(cached) " >&6 5983else 5984 #assume ordinary cross tools, or native build. 5985lt_cv_to_tool_file_cmd=func_convert_file_noop 5986case $host in 5987 *-*-mingw* ) 5988 case $build in 5989 *-*-mingw* ) # actually msys 5990 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5991 ;; 5992 esac 5993 ;; 5994esac 5995 5996fi 5997 5998to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6000$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6001 6002 6003 6004 6005 6006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6007$as_echo_n "checking for $LD option to reload object files... " >&6; } 6008if ${lt_cv_ld_reload_flag+:} false; then : 6009 $as_echo_n "(cached) " >&6 6010else 6011 lt_cv_ld_reload_flag='-r' 6012fi 6013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6014$as_echo "$lt_cv_ld_reload_flag" >&6; } 6015reload_flag=$lt_cv_ld_reload_flag 6016case $reload_flag in 6017"" | " "*) ;; 6018*) reload_flag=" $reload_flag" ;; 6019esac 6020reload_cmds='$LD$reload_flag -o $output$reload_objs' 6021case $host_os in 6022 cygwin* | mingw* | pw32* | cegcc*) 6023 if test "$GCC" != yes; then 6024 reload_cmds=false 6025 fi 6026 ;; 6027 darwin*) 6028 if test "$GCC" = yes; then 6029 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6030 else 6031 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6032 fi 6033 ;; 6034esac 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044if test -n "$ac_tool_prefix"; then 6045 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6046set dummy ${ac_tool_prefix}objdump; ac_word=$2 6047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6048$as_echo_n "checking for $ac_word... " >&6; } 6049if ${ac_cv_prog_OBJDUMP+:} false; then : 6050 $as_echo_n "(cached) " >&6 6051else 6052 if test -n "$OBJDUMP"; then 6053 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6054else 6055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6056for as_dir in $PATH 6057do 6058 IFS=$as_save_IFS 6059 test -z "$as_dir" && as_dir=. 6060 for ac_exec_ext in '' $ac_executable_extensions; do 6061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6062 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6064 break 2 6065 fi 6066done 6067 done 6068IFS=$as_save_IFS 6069 6070fi 6071fi 6072OBJDUMP=$ac_cv_prog_OBJDUMP 6073if test -n "$OBJDUMP"; then 6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6075$as_echo "$OBJDUMP" >&6; } 6076else 6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6078$as_echo "no" >&6; } 6079fi 6080 6081 6082fi 6083if test -z "$ac_cv_prog_OBJDUMP"; then 6084 ac_ct_OBJDUMP=$OBJDUMP 6085 # Extract the first word of "objdump", so it can be a program name with args. 6086set dummy objdump; ac_word=$2 6087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6088$as_echo_n "checking for $ac_word... " >&6; } 6089if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6090 $as_echo_n "(cached) " >&6 6091else 6092 if test -n "$ac_ct_OBJDUMP"; then 6093 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6094else 6095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6096for as_dir in $PATH 6097do 6098 IFS=$as_save_IFS 6099 test -z "$as_dir" && as_dir=. 6100 for ac_exec_ext in '' $ac_executable_extensions; do 6101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6102 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6104 break 2 6105 fi 6106done 6107 done 6108IFS=$as_save_IFS 6109 6110fi 6111fi 6112ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6113if test -n "$ac_ct_OBJDUMP"; then 6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6115$as_echo "$ac_ct_OBJDUMP" >&6; } 6116else 6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6118$as_echo "no" >&6; } 6119fi 6120 6121 if test "x$ac_ct_OBJDUMP" = x; then 6122 OBJDUMP="false" 6123 else 6124 case $cross_compiling:$ac_tool_warned in 6125yes:) 6126{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6127$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6128ac_tool_warned=yes ;; 6129esac 6130 OBJDUMP=$ac_ct_OBJDUMP 6131 fi 6132else 6133 OBJDUMP="$ac_cv_prog_OBJDUMP" 6134fi 6135 6136test -z "$OBJDUMP" && OBJDUMP=objdump 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6147$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6148if ${lt_cv_deplibs_check_method+:} false; then : 6149 $as_echo_n "(cached) " >&6 6150else 6151 lt_cv_file_magic_cmd='$MAGIC_CMD' 6152lt_cv_file_magic_test_file= 6153lt_cv_deplibs_check_method='unknown' 6154# Need to set the preceding variable on all platforms that support 6155# interlibrary dependencies. 6156# 'none' -- dependencies not supported. 6157# `unknown' -- same as none, but documents that we really don't know. 6158# 'pass_all' -- all dependencies passed with no checks. 6159# 'test_compile' -- check by making test program. 6160# 'file_magic [[regex]]' -- check by looking for files in library path 6161# which responds to the $file_magic_cmd with a given extended regex. 6162# If you have `file' or equivalent on your system and you're not sure 6163# whether `pass_all' will *always* work, you probably want this one. 6164 6165case $host_os in 6166aix[4-9]*) 6167 lt_cv_deplibs_check_method=pass_all 6168 ;; 6169 6170beos*) 6171 lt_cv_deplibs_check_method=pass_all 6172 ;; 6173 6174bsdi[45]*) 6175 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6176 lt_cv_file_magic_cmd='/usr/bin/file -L' 6177 lt_cv_file_magic_test_file=/shlib/libc.so 6178 ;; 6179 6180cygwin*) 6181 # func_win32_libid is a shell function defined in ltmain.sh 6182 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6183 lt_cv_file_magic_cmd='func_win32_libid' 6184 ;; 6185 6186mingw* | pw32*) 6187 # Base MSYS/MinGW do not provide the 'file' command needed by 6188 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6189 # unless we find 'file', for example because we are cross-compiling. 6190 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6191 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6192 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6193 lt_cv_file_magic_cmd='func_win32_libid' 6194 else 6195 # Keep this pattern in sync with the one in func_win32_libid. 6196 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6197 lt_cv_file_magic_cmd='$OBJDUMP -f' 6198 fi 6199 ;; 6200 6201cegcc*) 6202 # use the weaker test based on 'objdump'. See mingw*. 6203 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6204 lt_cv_file_magic_cmd='$OBJDUMP -f' 6205 ;; 6206 6207darwin* | rhapsody*) 6208 lt_cv_deplibs_check_method=pass_all 6209 ;; 6210 6211freebsd* | dragonfly*) 6212 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6213 case $host_cpu in 6214 i*86 ) 6215 # Not sure whether the presence of OpenBSD here was a mistake. 6216 # Let's accept both of them until this is cleared up. 6217 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6218 lt_cv_file_magic_cmd=/usr/bin/file 6219 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6220 ;; 6221 esac 6222 else 6223 lt_cv_deplibs_check_method=pass_all 6224 fi 6225 ;; 6226 6227haiku*) 6228 lt_cv_deplibs_check_method=pass_all 6229 ;; 6230 6231hpux10.20* | hpux11*) 6232 lt_cv_file_magic_cmd=/usr/bin/file 6233 case $host_cpu in 6234 ia64*) 6235 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6236 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6237 ;; 6238 hppa*64*) 6239 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]' 6240 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6241 ;; 6242 *) 6243 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6244 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6245 ;; 6246 esac 6247 ;; 6248 6249interix[3-9]*) 6250 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6251 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6252 ;; 6253 6254irix5* | irix6* | nonstopux*) 6255 case $LD in 6256 *-32|*"-32 ") libmagic=32-bit;; 6257 *-n32|*"-n32 ") libmagic=N32;; 6258 *-64|*"-64 ") libmagic=64-bit;; 6259 *) libmagic=never-match;; 6260 esac 6261 lt_cv_deplibs_check_method=pass_all 6262 ;; 6263 6264# This must be glibc/ELF. 6265linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6266 lt_cv_deplibs_check_method=pass_all 6267 ;; 6268 6269netbsd* | netbsdelf*-gnu) 6270 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6271 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6272 else 6273 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6274 fi 6275 ;; 6276 6277newos6*) 6278 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6279 lt_cv_file_magic_cmd=/usr/bin/file 6280 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6281 ;; 6282 6283*nto* | *qnx*) 6284 lt_cv_deplibs_check_method=pass_all 6285 ;; 6286 6287openbsd*) 6288 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6289 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6290 else 6291 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6292 fi 6293 ;; 6294 6295osf3* | osf4* | osf5*) 6296 lt_cv_deplibs_check_method=pass_all 6297 ;; 6298 6299rdos*) 6300 lt_cv_deplibs_check_method=pass_all 6301 ;; 6302 6303solaris*) 6304 lt_cv_deplibs_check_method=pass_all 6305 ;; 6306 6307sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6308 lt_cv_deplibs_check_method=pass_all 6309 ;; 6310 6311sysv4 | sysv4.3*) 6312 case $host_vendor in 6313 motorola) 6314 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]' 6315 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6316 ;; 6317 ncr) 6318 lt_cv_deplibs_check_method=pass_all 6319 ;; 6320 sequent) 6321 lt_cv_file_magic_cmd='/bin/file' 6322 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6323 ;; 6324 sni) 6325 lt_cv_file_magic_cmd='/bin/file' 6326 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6327 lt_cv_file_magic_test_file=/lib/libc.so 6328 ;; 6329 siemens) 6330 lt_cv_deplibs_check_method=pass_all 6331 ;; 6332 pc) 6333 lt_cv_deplibs_check_method=pass_all 6334 ;; 6335 esac 6336 ;; 6337 6338tpf*) 6339 lt_cv_deplibs_check_method=pass_all 6340 ;; 6341esac 6342 6343fi 6344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6345$as_echo "$lt_cv_deplibs_check_method" >&6; } 6346 6347file_magic_glob= 6348want_nocaseglob=no 6349if test "$build" = "$host"; then 6350 case $host_os in 6351 mingw* | pw32*) 6352 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6353 want_nocaseglob=yes 6354 else 6355 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6356 fi 6357 ;; 6358 esac 6359fi 6360 6361file_magic_cmd=$lt_cv_file_magic_cmd 6362deplibs_check_method=$lt_cv_deplibs_check_method 6363test -z "$deplibs_check_method" && deplibs_check_method=unknown 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386if test -n "$ac_tool_prefix"; then 6387 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6388set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6390$as_echo_n "checking for $ac_word... " >&6; } 6391if ${ac_cv_prog_DLLTOOL+:} false; then : 6392 $as_echo_n "(cached) " >&6 6393else 6394 if test -n "$DLLTOOL"; then 6395 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6396else 6397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6398for as_dir in $PATH 6399do 6400 IFS=$as_save_IFS 6401 test -z "$as_dir" && as_dir=. 6402 for ac_exec_ext in '' $ac_executable_extensions; do 6403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6404 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6406 break 2 6407 fi 6408done 6409 done 6410IFS=$as_save_IFS 6411 6412fi 6413fi 6414DLLTOOL=$ac_cv_prog_DLLTOOL 6415if test -n "$DLLTOOL"; then 6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6417$as_echo "$DLLTOOL" >&6; } 6418else 6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6420$as_echo "no" >&6; } 6421fi 6422 6423 6424fi 6425if test -z "$ac_cv_prog_DLLTOOL"; then 6426 ac_ct_DLLTOOL=$DLLTOOL 6427 # Extract the first word of "dlltool", so it can be a program name with args. 6428set dummy dlltool; ac_word=$2 6429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6430$as_echo_n "checking for $ac_word... " >&6; } 6431if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6432 $as_echo_n "(cached) " >&6 6433else 6434 if test -n "$ac_ct_DLLTOOL"; then 6435 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6436else 6437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6438for as_dir in $PATH 6439do 6440 IFS=$as_save_IFS 6441 test -z "$as_dir" && as_dir=. 6442 for ac_exec_ext in '' $ac_executable_extensions; do 6443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6444 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6446 break 2 6447 fi 6448done 6449 done 6450IFS=$as_save_IFS 6451 6452fi 6453fi 6454ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6455if test -n "$ac_ct_DLLTOOL"; then 6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6457$as_echo "$ac_ct_DLLTOOL" >&6; } 6458else 6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6460$as_echo "no" >&6; } 6461fi 6462 6463 if test "x$ac_ct_DLLTOOL" = x; then 6464 DLLTOOL="false" 6465 else 6466 case $cross_compiling:$ac_tool_warned in 6467yes:) 6468{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6469$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6470ac_tool_warned=yes ;; 6471esac 6472 DLLTOOL=$ac_ct_DLLTOOL 6473 fi 6474else 6475 DLLTOOL="$ac_cv_prog_DLLTOOL" 6476fi 6477 6478test -z "$DLLTOOL" && DLLTOOL=dlltool 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6490$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6491if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6492 $as_echo_n "(cached) " >&6 6493else 6494 lt_cv_sharedlib_from_linklib_cmd='unknown' 6495 6496case $host_os in 6497cygwin* | mingw* | pw32* | cegcc*) 6498 # two different shell functions defined in ltmain.sh 6499 # decide which to use based on capabilities of $DLLTOOL 6500 case `$DLLTOOL --help 2>&1` in 6501 *--identify-strict*) 6502 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6503 ;; 6504 *) 6505 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6506 ;; 6507 esac 6508 ;; 6509*) 6510 # fallback: assume linklib IS sharedlib 6511 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6512 ;; 6513esac 6514 6515fi 6516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6517$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6518sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6519test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6520 6521 6522 6523 6524 6525 6526 6527if test -n "$ac_tool_prefix"; then 6528 for ac_prog in ar 6529 do 6530 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6531set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6533$as_echo_n "checking for $ac_word... " >&6; } 6534if ${ac_cv_prog_AR+:} false; then : 6535 $as_echo_n "(cached) " >&6 6536else 6537 if test -n "$AR"; then 6538 ac_cv_prog_AR="$AR" # Let the user override the test. 6539else 6540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6541for as_dir in $PATH 6542do 6543 IFS=$as_save_IFS 6544 test -z "$as_dir" && as_dir=. 6545 for ac_exec_ext in '' $ac_executable_extensions; do 6546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6547 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6549 break 2 6550 fi 6551done 6552 done 6553IFS=$as_save_IFS 6554 6555fi 6556fi 6557AR=$ac_cv_prog_AR 6558if test -n "$AR"; then 6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6560$as_echo "$AR" >&6; } 6561else 6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6563$as_echo "no" >&6; } 6564fi 6565 6566 6567 test -n "$AR" && break 6568 done 6569fi 6570if test -z "$AR"; then 6571 ac_ct_AR=$AR 6572 for ac_prog in ar 6573do 6574 # Extract the first word of "$ac_prog", so it can be a program name with args. 6575set dummy $ac_prog; ac_word=$2 6576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6577$as_echo_n "checking for $ac_word... " >&6; } 6578if ${ac_cv_prog_ac_ct_AR+:} false; then : 6579 $as_echo_n "(cached) " >&6 6580else 6581 if test -n "$ac_ct_AR"; then 6582 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6583else 6584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6585for as_dir in $PATH 6586do 6587 IFS=$as_save_IFS 6588 test -z "$as_dir" && as_dir=. 6589 for ac_exec_ext in '' $ac_executable_extensions; do 6590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6591 ac_cv_prog_ac_ct_AR="$ac_prog" 6592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6593 break 2 6594 fi 6595done 6596 done 6597IFS=$as_save_IFS 6598 6599fi 6600fi 6601ac_ct_AR=$ac_cv_prog_ac_ct_AR 6602if test -n "$ac_ct_AR"; then 6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6604$as_echo "$ac_ct_AR" >&6; } 6605else 6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6607$as_echo "no" >&6; } 6608fi 6609 6610 6611 test -n "$ac_ct_AR" && break 6612done 6613 6614 if test "x$ac_ct_AR" = x; then 6615 AR="false" 6616 else 6617 case $cross_compiling:$ac_tool_warned in 6618yes:) 6619{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6620$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6621ac_tool_warned=yes ;; 6622esac 6623 AR=$ac_ct_AR 6624 fi 6625fi 6626 6627: ${AR=ar} 6628: ${AR_FLAGS=cru} 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6641$as_echo_n "checking for archiver @FILE support... " >&6; } 6642if ${lt_cv_ar_at_file+:} false; then : 6643 $as_echo_n "(cached) " >&6 6644else 6645 lt_cv_ar_at_file=no 6646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6647/* end confdefs.h. */ 6648 6649int 6650main () 6651{ 6652 6653 ; 6654 return 0; 6655} 6656_ACEOF 6657if ac_fn_c_try_compile "$LINENO"; then : 6658 echo conftest.$ac_objext > conftest.lst 6659 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6661 (eval $lt_ar_try) 2>&5 6662 ac_status=$? 6663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6664 test $ac_status = 0; } 6665 if test "$ac_status" -eq 0; then 6666 # Ensure the archiver fails upon bogus file names. 6667 rm -f conftest.$ac_objext libconftest.a 6668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6669 (eval $lt_ar_try) 2>&5 6670 ac_status=$? 6671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6672 test $ac_status = 0; } 6673 if test "$ac_status" -ne 0; then 6674 lt_cv_ar_at_file=@ 6675 fi 6676 fi 6677 rm -f conftest.* libconftest.a 6678 6679fi 6680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6681 6682fi 6683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6684$as_echo "$lt_cv_ar_at_file" >&6; } 6685 6686if test "x$lt_cv_ar_at_file" = xno; then 6687 archiver_list_spec= 6688else 6689 archiver_list_spec=$lt_cv_ar_at_file 6690fi 6691 6692 6693 6694 6695 6696 6697 6698if test -n "$ac_tool_prefix"; then 6699 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6700set dummy ${ac_tool_prefix}strip; ac_word=$2 6701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6702$as_echo_n "checking for $ac_word... " >&6; } 6703if ${ac_cv_prog_STRIP+:} false; then : 6704 $as_echo_n "(cached) " >&6 6705else 6706 if test -n "$STRIP"; then 6707 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6708else 6709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6710for as_dir in $PATH 6711do 6712 IFS=$as_save_IFS 6713 test -z "$as_dir" && as_dir=. 6714 for ac_exec_ext in '' $ac_executable_extensions; do 6715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6716 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6718 break 2 6719 fi 6720done 6721 done 6722IFS=$as_save_IFS 6723 6724fi 6725fi 6726STRIP=$ac_cv_prog_STRIP 6727if test -n "$STRIP"; then 6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6729$as_echo "$STRIP" >&6; } 6730else 6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6732$as_echo "no" >&6; } 6733fi 6734 6735 6736fi 6737if test -z "$ac_cv_prog_STRIP"; then 6738 ac_ct_STRIP=$STRIP 6739 # Extract the first word of "strip", so it can be a program name with args. 6740set dummy strip; ac_word=$2 6741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6742$as_echo_n "checking for $ac_word... " >&6; } 6743if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6744 $as_echo_n "(cached) " >&6 6745else 6746 if test -n "$ac_ct_STRIP"; then 6747 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6748else 6749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6750for as_dir in $PATH 6751do 6752 IFS=$as_save_IFS 6753 test -z "$as_dir" && as_dir=. 6754 for ac_exec_ext in '' $ac_executable_extensions; do 6755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6756 ac_cv_prog_ac_ct_STRIP="strip" 6757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6758 break 2 6759 fi 6760done 6761 done 6762IFS=$as_save_IFS 6763 6764fi 6765fi 6766ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6767if test -n "$ac_ct_STRIP"; then 6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6769$as_echo "$ac_ct_STRIP" >&6; } 6770else 6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6772$as_echo "no" >&6; } 6773fi 6774 6775 if test "x$ac_ct_STRIP" = x; then 6776 STRIP=":" 6777 else 6778 case $cross_compiling:$ac_tool_warned in 6779yes:) 6780{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6781$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6782ac_tool_warned=yes ;; 6783esac 6784 STRIP=$ac_ct_STRIP 6785 fi 6786else 6787 STRIP="$ac_cv_prog_STRIP" 6788fi 6789 6790test -z "$STRIP" && STRIP=: 6791 6792 6793 6794 6795 6796 6797if test -n "$ac_tool_prefix"; then 6798 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6799set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6801$as_echo_n "checking for $ac_word... " >&6; } 6802if ${ac_cv_prog_RANLIB+:} false; then : 6803 $as_echo_n "(cached) " >&6 6804else 6805 if test -n "$RANLIB"; then 6806 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6807else 6808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6809for as_dir in $PATH 6810do 6811 IFS=$as_save_IFS 6812 test -z "$as_dir" && as_dir=. 6813 for ac_exec_ext in '' $ac_executable_extensions; do 6814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6815 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6817 break 2 6818 fi 6819done 6820 done 6821IFS=$as_save_IFS 6822 6823fi 6824fi 6825RANLIB=$ac_cv_prog_RANLIB 6826if test -n "$RANLIB"; then 6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6828$as_echo "$RANLIB" >&6; } 6829else 6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6831$as_echo "no" >&6; } 6832fi 6833 6834 6835fi 6836if test -z "$ac_cv_prog_RANLIB"; then 6837 ac_ct_RANLIB=$RANLIB 6838 # Extract the first word of "ranlib", so it can be a program name with args. 6839set dummy ranlib; ac_word=$2 6840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6841$as_echo_n "checking for $ac_word... " >&6; } 6842if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6843 $as_echo_n "(cached) " >&6 6844else 6845 if test -n "$ac_ct_RANLIB"; then 6846 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6847else 6848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6849for as_dir in $PATH 6850do 6851 IFS=$as_save_IFS 6852 test -z "$as_dir" && as_dir=. 6853 for ac_exec_ext in '' $ac_executable_extensions; do 6854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6855 ac_cv_prog_ac_ct_RANLIB="ranlib" 6856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6857 break 2 6858 fi 6859done 6860 done 6861IFS=$as_save_IFS 6862 6863fi 6864fi 6865ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6866if test -n "$ac_ct_RANLIB"; then 6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6868$as_echo "$ac_ct_RANLIB" >&6; } 6869else 6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6871$as_echo "no" >&6; } 6872fi 6873 6874 if test "x$ac_ct_RANLIB" = x; then 6875 RANLIB=":" 6876 else 6877 case $cross_compiling:$ac_tool_warned in 6878yes:) 6879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6881ac_tool_warned=yes ;; 6882esac 6883 RANLIB=$ac_ct_RANLIB 6884 fi 6885else 6886 RANLIB="$ac_cv_prog_RANLIB" 6887fi 6888 6889test -z "$RANLIB" && RANLIB=: 6890 6891 6892 6893 6894 6895 6896# Determine commands to create old-style static archives. 6897old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6898old_postinstall_cmds='chmod 644 $oldlib' 6899old_postuninstall_cmds= 6900 6901if test -n "$RANLIB"; then 6902 case $host_os in 6903 openbsd*) 6904 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6905 ;; 6906 *) 6907 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6908 ;; 6909 esac 6910 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6911fi 6912 6913case $host_os in 6914 darwin*) 6915 lock_old_archive_extraction=yes ;; 6916 *) 6917 lock_old_archive_extraction=no ;; 6918esac 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958# If no C compiler was specified, use CC. 6959LTCC=${LTCC-"$CC"} 6960 6961# If no C compiler flags were specified, use CFLAGS. 6962LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6963 6964# Allow CC to be a program name with arguments. 6965compiler=$CC 6966 6967 6968# Check for command to grab the raw symbol name followed by C symbol from nm. 6969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6970$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6971if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6972 $as_echo_n "(cached) " >&6 6973else 6974 6975# These are sane defaults that work on at least a few old systems. 6976# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6977 6978# Character class describing NM global symbol codes. 6979symcode='[BCDEGRST]' 6980 6981# Regexp to match symbols that can be accessed directly from C. 6982sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6983 6984# Define system-specific variables. 6985case $host_os in 6986aix*) 6987 symcode='[BCDT]' 6988 ;; 6989cygwin* | mingw* | pw32* | cegcc*) 6990 symcode='[ABCDGISTW]' 6991 ;; 6992hpux*) 6993 if test "$host_cpu" = ia64; then 6994 symcode='[ABCDEGRST]' 6995 fi 6996 ;; 6997irix* | nonstopux*) 6998 symcode='[BCDEGRST]' 6999 ;; 7000osf*) 7001 symcode='[BCDEGQRST]' 7002 ;; 7003solaris*) 7004 symcode='[BDRT]' 7005 ;; 7006sco3.2v5*) 7007 symcode='[DT]' 7008 ;; 7009sysv4.2uw2*) 7010 symcode='[DT]' 7011 ;; 7012sysv5* | sco5v6* | unixware* | OpenUNIX*) 7013 symcode='[ABDT]' 7014 ;; 7015sysv4) 7016 symcode='[DFNSTU]' 7017 ;; 7018esac 7019 7020# If we're using GNU nm, then use its standard symbol codes. 7021case `$NM -V 2>&1` in 7022*GNU* | *'with BFD'*) 7023 symcode='[ABCDGIRSTW]' ;; 7024esac 7025 7026# Transform an extracted symbol line into a proper C declaration. 7027# Some systems (esp. on ia64) link data and code symbols differently, 7028# so use this general approach. 7029lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7030 7031# Transform an extracted symbol line into symbol name and symbol address 7032lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7033lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 7034 7035# Handle CRLF in mingw tool chain 7036opt_cr= 7037case $build_os in 7038mingw*) 7039 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7040 ;; 7041esac 7042 7043# Try without a prefix underscore, then with it. 7044for ac_symprfx in "" "_"; do 7045 7046 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7047 symxfrm="\\1 $ac_symprfx\\2 \\2" 7048 7049 # Write the raw and C identifiers. 7050 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7051 # Fake it for dumpbin and say T for any non-static function 7052 # and D for any global variable. 7053 # Also find C++ and __fastcall symbols from MSVC++, 7054 # which start with @ or ?. 7055 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7056" {last_section=section; section=\$ 3};"\ 7057" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7058" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7059" \$ 0!~/External *\|/{next};"\ 7060" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7061" {if(hide[section]) next};"\ 7062" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7063" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7064" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7065" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7066" ' prfx=^$ac_symprfx" 7067 else 7068 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7069 fi 7070 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7071 7072 # Check to see that the pipe works correctly. 7073 pipe_works=no 7074 7075 rm -f conftest* 7076 cat > conftest.$ac_ext <<_LT_EOF 7077#ifdef __cplusplus 7078extern "C" { 7079#endif 7080char nm_test_var; 7081void nm_test_func(void); 7082void nm_test_func(void){} 7083#ifdef __cplusplus 7084} 7085#endif 7086int main(){nm_test_var='a';nm_test_func();return(0);} 7087_LT_EOF 7088 7089 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7090 (eval $ac_compile) 2>&5 7091 ac_status=$? 7092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7093 test $ac_status = 0; }; then 7094 # Now try to grab the symbols. 7095 nlist=conftest.nm 7096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7097 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7098 ac_status=$? 7099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7100 test $ac_status = 0; } && test -s "$nlist"; then 7101 # Try sorting and uniquifying the output. 7102 if sort "$nlist" | uniq > "$nlist"T; then 7103 mv -f "$nlist"T "$nlist" 7104 else 7105 rm -f "$nlist"T 7106 fi 7107 7108 # Make sure that we snagged all the symbols we need. 7109 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7110 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7111 cat <<_LT_EOF > conftest.$ac_ext 7112/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7113#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 7114/* DATA imports from DLLs on WIN32 con't be const, because runtime 7115 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7116# define LT_DLSYM_CONST 7117#elif defined(__osf__) 7118/* This system does not cope well with relocations in const data. */ 7119# define LT_DLSYM_CONST 7120#else 7121# define LT_DLSYM_CONST const 7122#endif 7123 7124#ifdef __cplusplus 7125extern "C" { 7126#endif 7127 7128_LT_EOF 7129 # Now generate the symbol file. 7130 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7131 7132 cat <<_LT_EOF >> conftest.$ac_ext 7133 7134/* The mapping between symbol names and symbols. */ 7135LT_DLSYM_CONST struct { 7136 const char *name; 7137 void *address; 7138} 7139lt__PROGRAM__LTX_preloaded_symbols[] = 7140{ 7141 { "@PROGRAM@", (void *) 0 }, 7142_LT_EOF 7143 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7144 cat <<\_LT_EOF >> conftest.$ac_ext 7145 {0, (void *) 0} 7146}; 7147 7148/* This works around a problem in FreeBSD linker */ 7149#ifdef FREEBSD_WORKAROUND 7150static const void *lt_preloaded_setup() { 7151 return lt__PROGRAM__LTX_preloaded_symbols; 7152} 7153#endif 7154 7155#ifdef __cplusplus 7156} 7157#endif 7158_LT_EOF 7159 # Now try linking the two files. 7160 mv conftest.$ac_objext conftstm.$ac_objext 7161 lt_globsym_save_LIBS=$LIBS 7162 lt_globsym_save_CFLAGS=$CFLAGS 7163 LIBS="conftstm.$ac_objext" 7164 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7166 (eval $ac_link) 2>&5 7167 ac_status=$? 7168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7169 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7170 pipe_works=yes 7171 fi 7172 LIBS=$lt_globsym_save_LIBS 7173 CFLAGS=$lt_globsym_save_CFLAGS 7174 else 7175 echo "cannot find nm_test_func in $nlist" >&5 7176 fi 7177 else 7178 echo "cannot find nm_test_var in $nlist" >&5 7179 fi 7180 else 7181 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7182 fi 7183 else 7184 echo "$progname: failed program was:" >&5 7185 cat conftest.$ac_ext >&5 7186 fi 7187 rm -rf conftest* conftst* 7188 7189 # Do not use the global_symbol_pipe unless it works. 7190 if test "$pipe_works" = yes; then 7191 break 7192 else 7193 lt_cv_sys_global_symbol_pipe= 7194 fi 7195done 7196 7197fi 7198 7199if test -z "$lt_cv_sys_global_symbol_pipe"; then 7200 lt_cv_sys_global_symbol_to_cdecl= 7201fi 7202if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7204$as_echo "failed" >&6; } 7205else 7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7207$as_echo "ok" >&6; } 7208fi 7209 7210# Response file support. 7211if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7212 nm_file_list_spec='@' 7213elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7214 nm_file_list_spec='@' 7215fi 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7244$as_echo_n "checking for sysroot... " >&6; } 7245 7246# Check whether --with-sysroot was given. 7247if test "${with_sysroot+set}" = set; then : 7248 withval=$with_sysroot; 7249else 7250 with_sysroot=no 7251fi 7252 7253 7254lt_sysroot= 7255case ${with_sysroot} in #( 7256 yes) 7257 if test "$GCC" = yes; then 7258 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7259 fi 7260 ;; #( 7261 /*) 7262 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7263 ;; #( 7264 no|'') 7265 ;; #( 7266 *) 7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 7268$as_echo "${with_sysroot}" >&6; } 7269 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7270 ;; 7271esac 7272 7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7274$as_echo "${lt_sysroot:-no}" >&6; } 7275 7276 7277 7278 7279 7280# Check whether --enable-libtool-lock was given. 7281if test "${enable_libtool_lock+set}" = set; then : 7282 enableval=$enable_libtool_lock; 7283fi 7284 7285test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7286 7287# Some flags need to be propagated to the compiler or linker for good 7288# libtool support. 7289case $host in 7290ia64-*-hpux*) 7291 # Find out which ABI we are using. 7292 echo 'int i;' > conftest.$ac_ext 7293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7294 (eval $ac_compile) 2>&5 7295 ac_status=$? 7296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7297 test $ac_status = 0; }; then 7298 case `/usr/bin/file conftest.$ac_objext` in 7299 *ELF-32*) 7300 HPUX_IA64_MODE="32" 7301 ;; 7302 *ELF-64*) 7303 HPUX_IA64_MODE="64" 7304 ;; 7305 esac 7306 fi 7307 rm -rf conftest* 7308 ;; 7309*-*-irix6*) 7310 # Find out which ABI we are using. 7311 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7312 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7313 (eval $ac_compile) 2>&5 7314 ac_status=$? 7315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7316 test $ac_status = 0; }; then 7317 if test "$lt_cv_prog_gnu_ld" = yes; then 7318 case `/usr/bin/file conftest.$ac_objext` in 7319 *32-bit*) 7320 LD="${LD-ld} -melf32bsmip" 7321 ;; 7322 *N32*) 7323 LD="${LD-ld} -melf32bmipn32" 7324 ;; 7325 *64-bit*) 7326 LD="${LD-ld} -melf64bmip" 7327 ;; 7328 esac 7329 else 7330 case `/usr/bin/file conftest.$ac_objext` in 7331 *32-bit*) 7332 LD="${LD-ld} -32" 7333 ;; 7334 *N32*) 7335 LD="${LD-ld} -n32" 7336 ;; 7337 *64-bit*) 7338 LD="${LD-ld} -64" 7339 ;; 7340 esac 7341 fi 7342 fi 7343 rm -rf conftest* 7344 ;; 7345 7346x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7347s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7348 # Find out which ABI we are using. 7349 echo 'int i;' > conftest.$ac_ext 7350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7351 (eval $ac_compile) 2>&5 7352 ac_status=$? 7353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7354 test $ac_status = 0; }; then 7355 case `/usr/bin/file conftest.o` in 7356 *32-bit*) 7357 case $host in 7358 x86_64-*kfreebsd*-gnu) 7359 LD="${LD-ld} -m elf_i386_fbsd" 7360 ;; 7361 x86_64-*linux*) 7362 case `/usr/bin/file conftest.o` in 7363 *x86-64*) 7364 LD="${LD-ld} -m elf32_x86_64" 7365 ;; 7366 *) 7367 LD="${LD-ld} -m elf_i386" 7368 ;; 7369 esac 7370 ;; 7371 ppc64-*linux*|powerpc64-*linux*) 7372 LD="${LD-ld} -m elf32ppclinux" 7373 ;; 7374 s390x-*linux*) 7375 LD="${LD-ld} -m elf_s390" 7376 ;; 7377 sparc64-*linux*) 7378 LD="${LD-ld} -m elf32_sparc" 7379 ;; 7380 esac 7381 ;; 7382 *64-bit*) 7383 case $host in 7384 x86_64-*kfreebsd*-gnu) 7385 LD="${LD-ld} -m elf_x86_64_fbsd" 7386 ;; 7387 x86_64-*linux*) 7388 LD="${LD-ld} -m elf_x86_64" 7389 ;; 7390 ppc*-*linux*|powerpc*-*linux*) 7391 LD="${LD-ld} -m elf64ppc" 7392 ;; 7393 s390*-*linux*|s390*-*tpf*) 7394 LD="${LD-ld} -m elf64_s390" 7395 ;; 7396 sparc*-*linux*) 7397 LD="${LD-ld} -m elf64_sparc" 7398 ;; 7399 esac 7400 ;; 7401 esac 7402 fi 7403 rm -rf conftest* 7404 ;; 7405 7406*-*-sco3.2v5*) 7407 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7408 SAVE_CFLAGS="$CFLAGS" 7409 CFLAGS="$CFLAGS -belf" 7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7411$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7412if ${lt_cv_cc_needs_belf+:} false; then : 7413 $as_echo_n "(cached) " >&6 7414else 7415 ac_ext=c 7416ac_cpp='$CPP $CPPFLAGS' 7417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7419ac_compiler_gnu=$ac_cv_c_compiler_gnu 7420 7421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7422/* end confdefs.h. */ 7423 7424int 7425main () 7426{ 7427 7428 ; 7429 return 0; 7430} 7431_ACEOF 7432if ac_fn_c_try_link "$LINENO"; then : 7433 lt_cv_cc_needs_belf=yes 7434else 7435 lt_cv_cc_needs_belf=no 7436fi 7437rm -f core conftest.err conftest.$ac_objext \ 7438 conftest$ac_exeext conftest.$ac_ext 7439 ac_ext=c 7440ac_cpp='$CPP $CPPFLAGS' 7441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7443ac_compiler_gnu=$ac_cv_c_compiler_gnu 7444 7445fi 7446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7447$as_echo "$lt_cv_cc_needs_belf" >&6; } 7448 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7449 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7450 CFLAGS="$SAVE_CFLAGS" 7451 fi 7452 ;; 7453*-*solaris*) 7454 # Find out which ABI we are using. 7455 echo 'int i;' > conftest.$ac_ext 7456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7457 (eval $ac_compile) 2>&5 7458 ac_status=$? 7459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7460 test $ac_status = 0; }; then 7461 case `/usr/bin/file conftest.o` in 7462 *64-bit*) 7463 case $lt_cv_prog_gnu_ld in 7464 yes*) 7465 case $host in 7466 i?86-*-solaris*) 7467 LD="${LD-ld} -m elf_x86_64" 7468 ;; 7469 sparc*-*-solaris*) 7470 LD="${LD-ld} -m elf64_sparc" 7471 ;; 7472 esac 7473 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7474 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7475 LD="${LD-ld}_sol2" 7476 fi 7477 ;; 7478 *) 7479 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7480 LD="${LD-ld} -64" 7481 fi 7482 ;; 7483 esac 7484 ;; 7485 esac 7486 fi 7487 rm -rf conftest* 7488 ;; 7489esac 7490 7491need_locks="$enable_libtool_lock" 7492 7493if test -n "$ac_tool_prefix"; then 7494 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7495set dummy ${ac_tool_prefix}mt; ac_word=$2 7496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7497$as_echo_n "checking for $ac_word... " >&6; } 7498if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7499 $as_echo_n "(cached) " >&6 7500else 7501 if test -n "$MANIFEST_TOOL"; then 7502 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7503else 7504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7505for as_dir in $PATH 7506do 7507 IFS=$as_save_IFS 7508 test -z "$as_dir" && as_dir=. 7509 for ac_exec_ext in '' $ac_executable_extensions; do 7510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7511 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7513 break 2 7514 fi 7515done 7516 done 7517IFS=$as_save_IFS 7518 7519fi 7520fi 7521MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7522if test -n "$MANIFEST_TOOL"; then 7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7524$as_echo "$MANIFEST_TOOL" >&6; } 7525else 7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7527$as_echo "no" >&6; } 7528fi 7529 7530 7531fi 7532if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7533 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7534 # Extract the first word of "mt", so it can be a program name with args. 7535set dummy mt; ac_word=$2 7536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7537$as_echo_n "checking for $ac_word... " >&6; } 7538if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7539 $as_echo_n "(cached) " >&6 7540else 7541 if test -n "$ac_ct_MANIFEST_TOOL"; then 7542 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7543else 7544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7545for as_dir in $PATH 7546do 7547 IFS=$as_save_IFS 7548 test -z "$as_dir" && as_dir=. 7549 for ac_exec_ext in '' $ac_executable_extensions; do 7550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7551 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7553 break 2 7554 fi 7555done 7556 done 7557IFS=$as_save_IFS 7558 7559fi 7560fi 7561ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7562if test -n "$ac_ct_MANIFEST_TOOL"; then 7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7564$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7565else 7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7567$as_echo "no" >&6; } 7568fi 7569 7570 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7571 MANIFEST_TOOL=":" 7572 else 7573 case $cross_compiling:$ac_tool_warned in 7574yes:) 7575{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7576$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7577ac_tool_warned=yes ;; 7578esac 7579 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7580 fi 7581else 7582 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7583fi 7584 7585test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7587$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7588if ${lt_cv_path_mainfest_tool+:} false; then : 7589 $as_echo_n "(cached) " >&6 7590else 7591 lt_cv_path_mainfest_tool=no 7592 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7593 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7594 cat conftest.err >&5 7595 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7596 lt_cv_path_mainfest_tool=yes 7597 fi 7598 rm -f conftest* 7599fi 7600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7601$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7602if test "x$lt_cv_path_mainfest_tool" != xyes; then 7603 MANIFEST_TOOL=: 7604fi 7605 7606 7607 7608 7609 7610 7611 case $host_os in 7612 rhapsody* | darwin*) 7613 if test -n "$ac_tool_prefix"; then 7614 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7615set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7617$as_echo_n "checking for $ac_word... " >&6; } 7618if ${ac_cv_prog_DSYMUTIL+:} false; then : 7619 $as_echo_n "(cached) " >&6 7620else 7621 if test -n "$DSYMUTIL"; then 7622 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7623else 7624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7625for as_dir in $PATH 7626do 7627 IFS=$as_save_IFS 7628 test -z "$as_dir" && as_dir=. 7629 for ac_exec_ext in '' $ac_executable_extensions; do 7630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7631 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7633 break 2 7634 fi 7635done 7636 done 7637IFS=$as_save_IFS 7638 7639fi 7640fi 7641DSYMUTIL=$ac_cv_prog_DSYMUTIL 7642if test -n "$DSYMUTIL"; then 7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7644$as_echo "$DSYMUTIL" >&6; } 7645else 7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7647$as_echo "no" >&6; } 7648fi 7649 7650 7651fi 7652if test -z "$ac_cv_prog_DSYMUTIL"; then 7653 ac_ct_DSYMUTIL=$DSYMUTIL 7654 # Extract the first word of "dsymutil", so it can be a program name with args. 7655set dummy dsymutil; ac_word=$2 7656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7657$as_echo_n "checking for $ac_word... " >&6; } 7658if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7659 $as_echo_n "(cached) " >&6 7660else 7661 if test -n "$ac_ct_DSYMUTIL"; then 7662 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7663else 7664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7665for as_dir in $PATH 7666do 7667 IFS=$as_save_IFS 7668 test -z "$as_dir" && as_dir=. 7669 for ac_exec_ext in '' $ac_executable_extensions; do 7670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7671 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7673 break 2 7674 fi 7675done 7676 done 7677IFS=$as_save_IFS 7678 7679fi 7680fi 7681ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7682if test -n "$ac_ct_DSYMUTIL"; then 7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7684$as_echo "$ac_ct_DSYMUTIL" >&6; } 7685else 7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7687$as_echo "no" >&6; } 7688fi 7689 7690 if test "x$ac_ct_DSYMUTIL" = x; then 7691 DSYMUTIL=":" 7692 else 7693 case $cross_compiling:$ac_tool_warned in 7694yes:) 7695{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7696$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7697ac_tool_warned=yes ;; 7698esac 7699 DSYMUTIL=$ac_ct_DSYMUTIL 7700 fi 7701else 7702 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7703fi 7704 7705 if test -n "$ac_tool_prefix"; then 7706 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7707set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7709$as_echo_n "checking for $ac_word... " >&6; } 7710if ${ac_cv_prog_NMEDIT+:} false; then : 7711 $as_echo_n "(cached) " >&6 7712else 7713 if test -n "$NMEDIT"; then 7714 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7715else 7716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7717for as_dir in $PATH 7718do 7719 IFS=$as_save_IFS 7720 test -z "$as_dir" && as_dir=. 7721 for ac_exec_ext in '' $ac_executable_extensions; do 7722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7723 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7725 break 2 7726 fi 7727done 7728 done 7729IFS=$as_save_IFS 7730 7731fi 7732fi 7733NMEDIT=$ac_cv_prog_NMEDIT 7734if test -n "$NMEDIT"; then 7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7736$as_echo "$NMEDIT" >&6; } 7737else 7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7739$as_echo "no" >&6; } 7740fi 7741 7742 7743fi 7744if test -z "$ac_cv_prog_NMEDIT"; then 7745 ac_ct_NMEDIT=$NMEDIT 7746 # Extract the first word of "nmedit", so it can be a program name with args. 7747set dummy nmedit; ac_word=$2 7748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7749$as_echo_n "checking for $ac_word... " >&6; } 7750if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7751 $as_echo_n "(cached) " >&6 7752else 7753 if test -n "$ac_ct_NMEDIT"; then 7754 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7755else 7756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7757for as_dir in $PATH 7758do 7759 IFS=$as_save_IFS 7760 test -z "$as_dir" && as_dir=. 7761 for ac_exec_ext in '' $ac_executable_extensions; do 7762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7763 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7765 break 2 7766 fi 7767done 7768 done 7769IFS=$as_save_IFS 7770 7771fi 7772fi 7773ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7774if test -n "$ac_ct_NMEDIT"; then 7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7776$as_echo "$ac_ct_NMEDIT" >&6; } 7777else 7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7779$as_echo "no" >&6; } 7780fi 7781 7782 if test "x$ac_ct_NMEDIT" = x; then 7783 NMEDIT=":" 7784 else 7785 case $cross_compiling:$ac_tool_warned in 7786yes:) 7787{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7788$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7789ac_tool_warned=yes ;; 7790esac 7791 NMEDIT=$ac_ct_NMEDIT 7792 fi 7793else 7794 NMEDIT="$ac_cv_prog_NMEDIT" 7795fi 7796 7797 if test -n "$ac_tool_prefix"; then 7798 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7799set dummy ${ac_tool_prefix}lipo; ac_word=$2 7800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7801$as_echo_n "checking for $ac_word... " >&6; } 7802if ${ac_cv_prog_LIPO+:} false; then : 7803 $as_echo_n "(cached) " >&6 7804else 7805 if test -n "$LIPO"; then 7806 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7807else 7808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7809for as_dir in $PATH 7810do 7811 IFS=$as_save_IFS 7812 test -z "$as_dir" && as_dir=. 7813 for ac_exec_ext in '' $ac_executable_extensions; do 7814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7815 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7817 break 2 7818 fi 7819done 7820 done 7821IFS=$as_save_IFS 7822 7823fi 7824fi 7825LIPO=$ac_cv_prog_LIPO 7826if test -n "$LIPO"; then 7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7828$as_echo "$LIPO" >&6; } 7829else 7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7831$as_echo "no" >&6; } 7832fi 7833 7834 7835fi 7836if test -z "$ac_cv_prog_LIPO"; then 7837 ac_ct_LIPO=$LIPO 7838 # Extract the first word of "lipo", so it can be a program name with args. 7839set dummy lipo; ac_word=$2 7840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7841$as_echo_n "checking for $ac_word... " >&6; } 7842if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7843 $as_echo_n "(cached) " >&6 7844else 7845 if test -n "$ac_ct_LIPO"; then 7846 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7847else 7848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7849for as_dir in $PATH 7850do 7851 IFS=$as_save_IFS 7852 test -z "$as_dir" && as_dir=. 7853 for ac_exec_ext in '' $ac_executable_extensions; do 7854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7855 ac_cv_prog_ac_ct_LIPO="lipo" 7856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7857 break 2 7858 fi 7859done 7860 done 7861IFS=$as_save_IFS 7862 7863fi 7864fi 7865ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7866if test -n "$ac_ct_LIPO"; then 7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7868$as_echo "$ac_ct_LIPO" >&6; } 7869else 7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7871$as_echo "no" >&6; } 7872fi 7873 7874 if test "x$ac_ct_LIPO" = x; then 7875 LIPO=":" 7876 else 7877 case $cross_compiling:$ac_tool_warned in 7878yes:) 7879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7881ac_tool_warned=yes ;; 7882esac 7883 LIPO=$ac_ct_LIPO 7884 fi 7885else 7886 LIPO="$ac_cv_prog_LIPO" 7887fi 7888 7889 if test -n "$ac_tool_prefix"; then 7890 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7891set dummy ${ac_tool_prefix}otool; ac_word=$2 7892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7893$as_echo_n "checking for $ac_word... " >&6; } 7894if ${ac_cv_prog_OTOOL+:} false; then : 7895 $as_echo_n "(cached) " >&6 7896else 7897 if test -n "$OTOOL"; then 7898 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7899else 7900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7901for as_dir in $PATH 7902do 7903 IFS=$as_save_IFS 7904 test -z "$as_dir" && as_dir=. 7905 for ac_exec_ext in '' $ac_executable_extensions; do 7906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7907 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7909 break 2 7910 fi 7911done 7912 done 7913IFS=$as_save_IFS 7914 7915fi 7916fi 7917OTOOL=$ac_cv_prog_OTOOL 7918if test -n "$OTOOL"; then 7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7920$as_echo "$OTOOL" >&6; } 7921else 7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7923$as_echo "no" >&6; } 7924fi 7925 7926 7927fi 7928if test -z "$ac_cv_prog_OTOOL"; then 7929 ac_ct_OTOOL=$OTOOL 7930 # Extract the first word of "otool", so it can be a program name with args. 7931set dummy otool; ac_word=$2 7932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7933$as_echo_n "checking for $ac_word... " >&6; } 7934if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7935 $as_echo_n "(cached) " >&6 7936else 7937 if test -n "$ac_ct_OTOOL"; then 7938 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7939else 7940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7941for as_dir in $PATH 7942do 7943 IFS=$as_save_IFS 7944 test -z "$as_dir" && as_dir=. 7945 for ac_exec_ext in '' $ac_executable_extensions; do 7946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7947 ac_cv_prog_ac_ct_OTOOL="otool" 7948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7949 break 2 7950 fi 7951done 7952 done 7953IFS=$as_save_IFS 7954 7955fi 7956fi 7957ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7958if test -n "$ac_ct_OTOOL"; then 7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7960$as_echo "$ac_ct_OTOOL" >&6; } 7961else 7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7963$as_echo "no" >&6; } 7964fi 7965 7966 if test "x$ac_ct_OTOOL" = x; then 7967 OTOOL=":" 7968 else 7969 case $cross_compiling:$ac_tool_warned in 7970yes:) 7971{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7972$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7973ac_tool_warned=yes ;; 7974esac 7975 OTOOL=$ac_ct_OTOOL 7976 fi 7977else 7978 OTOOL="$ac_cv_prog_OTOOL" 7979fi 7980 7981 if test -n "$ac_tool_prefix"; then 7982 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7983set dummy ${ac_tool_prefix}otool64; ac_word=$2 7984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7985$as_echo_n "checking for $ac_word... " >&6; } 7986if ${ac_cv_prog_OTOOL64+:} false; then : 7987 $as_echo_n "(cached) " >&6 7988else 7989 if test -n "$OTOOL64"; then 7990 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7991else 7992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7993for as_dir in $PATH 7994do 7995 IFS=$as_save_IFS 7996 test -z "$as_dir" && as_dir=. 7997 for ac_exec_ext in '' $ac_executable_extensions; do 7998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7999 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8001 break 2 8002 fi 8003done 8004 done 8005IFS=$as_save_IFS 8006 8007fi 8008fi 8009OTOOL64=$ac_cv_prog_OTOOL64 8010if test -n "$OTOOL64"; then 8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8012$as_echo "$OTOOL64" >&6; } 8013else 8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8015$as_echo "no" >&6; } 8016fi 8017 8018 8019fi 8020if test -z "$ac_cv_prog_OTOOL64"; then 8021 ac_ct_OTOOL64=$OTOOL64 8022 # Extract the first word of "otool64", so it can be a program name with args. 8023set dummy otool64; ac_word=$2 8024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8025$as_echo_n "checking for $ac_word... " >&6; } 8026if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8027 $as_echo_n "(cached) " >&6 8028else 8029 if test -n "$ac_ct_OTOOL64"; then 8030 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8031else 8032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8033for as_dir in $PATH 8034do 8035 IFS=$as_save_IFS 8036 test -z "$as_dir" && as_dir=. 8037 for ac_exec_ext in '' $ac_executable_extensions; do 8038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8039 ac_cv_prog_ac_ct_OTOOL64="otool64" 8040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8041 break 2 8042 fi 8043done 8044 done 8045IFS=$as_save_IFS 8046 8047fi 8048fi 8049ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8050if test -n "$ac_ct_OTOOL64"; then 8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8052$as_echo "$ac_ct_OTOOL64" >&6; } 8053else 8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8055$as_echo "no" >&6; } 8056fi 8057 8058 if test "x$ac_ct_OTOOL64" = x; then 8059 OTOOL64=":" 8060 else 8061 case $cross_compiling:$ac_tool_warned in 8062yes:) 8063{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8064$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8065ac_tool_warned=yes ;; 8066esac 8067 OTOOL64=$ac_ct_OTOOL64 8068 fi 8069else 8070 OTOOL64="$ac_cv_prog_OTOOL64" 8071fi 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8100$as_echo_n "checking for -single_module linker flag... " >&6; } 8101if ${lt_cv_apple_cc_single_mod+:} false; then : 8102 $as_echo_n "(cached) " >&6 8103else 8104 lt_cv_apple_cc_single_mod=no 8105 if test -z "${LT_MULTI_MODULE}"; then 8106 # By default we will add the -single_module flag. You can override 8107 # by either setting the environment variable LT_MULTI_MODULE 8108 # non-empty at configure time, or by adding -multi_module to the 8109 # link flags. 8110 rm -rf libconftest.dylib* 8111 echo "int foo(void){return 1;}" > conftest.c 8112 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8113-dynamiclib -Wl,-single_module conftest.c" >&5 8114 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8115 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8116 _lt_result=$? 8117 # If there is a non-empty error log, and "single_module" 8118 # appears in it, assume the flag caused a linker warning 8119 if test -s conftest.err && $GREP single_module conftest.err; then 8120 cat conftest.err >&5 8121 # Otherwise, if the output was created with a 0 exit code from 8122 # the compiler, it worked. 8123 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 8124 lt_cv_apple_cc_single_mod=yes 8125 else 8126 cat conftest.err >&5 8127 fi 8128 rm -rf libconftest.dylib* 8129 rm -f conftest.* 8130 fi 8131fi 8132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8133$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8134 8135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8136$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8137if ${lt_cv_ld_exported_symbols_list+:} false; then : 8138 $as_echo_n "(cached) " >&6 8139else 8140 lt_cv_ld_exported_symbols_list=no 8141 save_LDFLAGS=$LDFLAGS 8142 echo "_main" > conftest.sym 8143 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8145/* end confdefs.h. */ 8146 8147int 8148main () 8149{ 8150 8151 ; 8152 return 0; 8153} 8154_ACEOF 8155if ac_fn_c_try_link "$LINENO"; then : 8156 lt_cv_ld_exported_symbols_list=yes 8157else 8158 lt_cv_ld_exported_symbols_list=no 8159fi 8160rm -f core conftest.err conftest.$ac_objext \ 8161 conftest$ac_exeext conftest.$ac_ext 8162 LDFLAGS="$save_LDFLAGS" 8163 8164fi 8165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8166$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8167 8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8169$as_echo_n "checking for -force_load linker flag... " >&6; } 8170if ${lt_cv_ld_force_load+:} false; then : 8171 $as_echo_n "(cached) " >&6 8172else 8173 lt_cv_ld_force_load=no 8174 cat > conftest.c << _LT_EOF 8175int forced_loaded() { return 2;} 8176_LT_EOF 8177 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8178 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8179 echo "$AR cru libconftest.a conftest.o" >&5 8180 $AR cru libconftest.a conftest.o 2>&5 8181 echo "$RANLIB libconftest.a" >&5 8182 $RANLIB libconftest.a 2>&5 8183 cat > conftest.c << _LT_EOF 8184int main() { return 0;} 8185_LT_EOF 8186 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8187 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8188 _lt_result=$? 8189 if test -s conftest.err && $GREP force_load conftest.err; then 8190 cat conftest.err >&5 8191 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 8192 lt_cv_ld_force_load=yes 8193 else 8194 cat conftest.err >&5 8195 fi 8196 rm -f conftest.err libconftest.a conftest conftest.c 8197 rm -rf conftest.dSYM 8198 8199fi 8200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8201$as_echo "$lt_cv_ld_force_load" >&6; } 8202 case $host_os in 8203 rhapsody* | darwin1.[012]) 8204 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8205 darwin1.*) 8206 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8207 darwin*) # darwin 5.x on 8208 # if running on 10.5 or later, the deployment target defaults 8209 # to the OS version, if on x86, and 10.4, the deployment 8210 # target defaults to 10.4. Don't you love it? 8211 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8212 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8213 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8214 10.[012]*) 8215 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8216 10.*) 8217 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8218 esac 8219 ;; 8220 esac 8221 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8222 _lt_dar_single_mod='$single_module' 8223 fi 8224 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8225 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8226 else 8227 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8228 fi 8229 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 8230 _lt_dsymutil='~$DSYMUTIL $lib || :' 8231 else 8232 _lt_dsymutil= 8233 fi 8234 ;; 8235 esac 8236 8237for ac_header in dlfcn.h 8238do : 8239 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8240" 8241if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8242 cat >>confdefs.h <<_ACEOF 8243#define HAVE_DLFCN_H 1 8244_ACEOF 8245 8246fi 8247 8248done 8249 8250 8251 8252 8253 8254# Set options 8255# Check whether --enable-static was given. 8256if test "${enable_static+set}" = set; then : 8257 enableval=$enable_static; p=${PACKAGE-default} 8258 case $enableval in 8259 yes) enable_static=yes ;; 8260 no) enable_static=no ;; 8261 *) 8262 enable_static=no 8263 # Look at the argument we got. We use all the common list separators. 8264 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8265 for pkg in $enableval; do 8266 IFS="$lt_save_ifs" 8267 if test "X$pkg" = "X$p"; then 8268 enable_static=yes 8269 fi 8270 done 8271 IFS="$lt_save_ifs" 8272 ;; 8273 esac 8274else 8275 enable_static=no 8276fi 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 enable_dlopen=no 8288 8289 8290 enable_win32_dll=no 8291 8292 8293 # Check whether --enable-shared was given. 8294if test "${enable_shared+set}" = set; then : 8295 enableval=$enable_shared; p=${PACKAGE-default} 8296 case $enableval in 8297 yes) enable_shared=yes ;; 8298 no) enable_shared=no ;; 8299 *) 8300 enable_shared=no 8301 # Look at the argument we got. We use all the common list separators. 8302 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8303 for pkg in $enableval; do 8304 IFS="$lt_save_ifs" 8305 if test "X$pkg" = "X$p"; then 8306 enable_shared=yes 8307 fi 8308 done 8309 IFS="$lt_save_ifs" 8310 ;; 8311 esac 8312else 8313 enable_shared=yes 8314fi 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326# Check whether --with-pic was given. 8327if test "${with_pic+set}" = set; then : 8328 withval=$with_pic; lt_p=${PACKAGE-default} 8329 case $withval in 8330 yes|no) pic_mode=$withval ;; 8331 *) 8332 pic_mode=default 8333 # Look at the argument we got. We use all the common list separators. 8334 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8335 for lt_pkg in $withval; do 8336 IFS="$lt_save_ifs" 8337 if test "X$lt_pkg" = "X$lt_p"; then 8338 pic_mode=yes 8339 fi 8340 done 8341 IFS="$lt_save_ifs" 8342 ;; 8343 esac 8344else 8345 pic_mode=default 8346fi 8347 8348 8349test -z "$pic_mode" && pic_mode=default 8350 8351 8352 8353 8354 8355 8356 8357 # Check whether --enable-fast-install was given. 8358if test "${enable_fast_install+set}" = set; then : 8359 enableval=$enable_fast_install; p=${PACKAGE-default} 8360 case $enableval in 8361 yes) enable_fast_install=yes ;; 8362 no) enable_fast_install=no ;; 8363 *) 8364 enable_fast_install=no 8365 # Look at the argument we got. We use all the common list separators. 8366 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8367 for pkg in $enableval; do 8368 IFS="$lt_save_ifs" 8369 if test "X$pkg" = "X$p"; then 8370 enable_fast_install=yes 8371 fi 8372 done 8373 IFS="$lt_save_ifs" 8374 ;; 8375 esac 8376else 8377 enable_fast_install=yes 8378fi 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390# This can be used to rebuild libtool when needed 8391LIBTOOL_DEPS="$ltmain" 8392 8393# Always use our own libtool. 8394LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425test -z "$LN_S" && LN_S="ln -s" 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440if test -n "${ZSH_VERSION+set}" ; then 8441 setopt NO_GLOB_SUBST 8442fi 8443 8444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8445$as_echo_n "checking for objdir... " >&6; } 8446if ${lt_cv_objdir+:} false; then : 8447 $as_echo_n "(cached) " >&6 8448else 8449 rm -f .libs 2>/dev/null 8450mkdir .libs 2>/dev/null 8451if test -d .libs; then 8452 lt_cv_objdir=.libs 8453else 8454 # MS-DOS does not allow filenames that begin with a dot. 8455 lt_cv_objdir=_libs 8456fi 8457rmdir .libs 2>/dev/null 8458fi 8459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8460$as_echo "$lt_cv_objdir" >&6; } 8461objdir=$lt_cv_objdir 8462 8463 8464 8465 8466 8467cat >>confdefs.h <<_ACEOF 8468#define LT_OBJDIR "$lt_cv_objdir/" 8469_ACEOF 8470 8471 8472 8473 8474case $host_os in 8475aix3*) 8476 # AIX sometimes has problems with the GCC collect2 program. For some 8477 # reason, if we set the COLLECT_NAMES environment variable, the problems 8478 # vanish in a puff of smoke. 8479 if test "X${COLLECT_NAMES+set}" != Xset; then 8480 COLLECT_NAMES= 8481 export COLLECT_NAMES 8482 fi 8483 ;; 8484esac 8485 8486# Global variables: 8487ofile=libtool 8488can_build_shared=yes 8489 8490# All known linkers require a `.a' archive for static linking (except MSVC, 8491# which needs '.lib'). 8492libext=a 8493 8494with_gnu_ld="$lt_cv_prog_gnu_ld" 8495 8496old_CC="$CC" 8497old_CFLAGS="$CFLAGS" 8498 8499# Set sane defaults for various variables 8500test -z "$CC" && CC=cc 8501test -z "$LTCC" && LTCC=$CC 8502test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8503test -z "$LD" && LD=ld 8504test -z "$ac_objext" && ac_objext=o 8505 8506for cc_temp in $compiler""; do 8507 case $cc_temp in 8508 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8509 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8510 \-*) ;; 8511 *) break;; 8512 esac 8513done 8514cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8515 8516 8517# Only perform the check for file, if the check method requires it 8518test -z "$MAGIC_CMD" && MAGIC_CMD=file 8519case $deplibs_check_method in 8520file_magic*) 8521 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8523$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8524if ${lt_cv_path_MAGIC_CMD+:} false; then : 8525 $as_echo_n "(cached) " >&6 8526else 8527 case $MAGIC_CMD in 8528[\\/*] | ?:[\\/]*) 8529 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8530 ;; 8531*) 8532 lt_save_MAGIC_CMD="$MAGIC_CMD" 8533 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8534 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8535 for ac_dir in $ac_dummy; do 8536 IFS="$lt_save_ifs" 8537 test -z "$ac_dir" && ac_dir=. 8538 if test -f $ac_dir/${ac_tool_prefix}file; then 8539 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8540 if test -n "$file_magic_test_file"; then 8541 case $deplibs_check_method in 8542 "file_magic "*) 8543 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8544 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8545 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8546 $EGREP "$file_magic_regex" > /dev/null; then 8547 : 8548 else 8549 cat <<_LT_EOF 1>&2 8550 8551*** Warning: the command libtool uses to detect shared libraries, 8552*** $file_magic_cmd, produces output that libtool cannot recognize. 8553*** The result is that libtool may fail to recognize shared libraries 8554*** as such. This will affect the creation of libtool libraries that 8555*** depend on shared libraries, but programs linked with such libtool 8556*** libraries will work regardless of this problem. Nevertheless, you 8557*** may want to report the problem to your system manager and/or to 8558*** bug-libtool@gnu.org 8559 8560_LT_EOF 8561 fi ;; 8562 esac 8563 fi 8564 break 8565 fi 8566 done 8567 IFS="$lt_save_ifs" 8568 MAGIC_CMD="$lt_save_MAGIC_CMD" 8569 ;; 8570esac 8571fi 8572 8573MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8574if test -n "$MAGIC_CMD"; then 8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8576$as_echo "$MAGIC_CMD" >&6; } 8577else 8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8579$as_echo "no" >&6; } 8580fi 8581 8582 8583 8584 8585 8586if test -z "$lt_cv_path_MAGIC_CMD"; then 8587 if test -n "$ac_tool_prefix"; then 8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8589$as_echo_n "checking for file... " >&6; } 8590if ${lt_cv_path_MAGIC_CMD+:} false; then : 8591 $as_echo_n "(cached) " >&6 8592else 8593 case $MAGIC_CMD in 8594[\\/*] | ?:[\\/]*) 8595 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8596 ;; 8597*) 8598 lt_save_MAGIC_CMD="$MAGIC_CMD" 8599 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8600 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8601 for ac_dir in $ac_dummy; do 8602 IFS="$lt_save_ifs" 8603 test -z "$ac_dir" && ac_dir=. 8604 if test -f $ac_dir/file; then 8605 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8606 if test -n "$file_magic_test_file"; then 8607 case $deplibs_check_method in 8608 "file_magic "*) 8609 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8610 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8611 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8612 $EGREP "$file_magic_regex" > /dev/null; then 8613 : 8614 else 8615 cat <<_LT_EOF 1>&2 8616 8617*** Warning: the command libtool uses to detect shared libraries, 8618*** $file_magic_cmd, produces output that libtool cannot recognize. 8619*** The result is that libtool may fail to recognize shared libraries 8620*** as such. This will affect the creation of libtool libraries that 8621*** depend on shared libraries, but programs linked with such libtool 8622*** libraries will work regardless of this problem. Nevertheless, you 8623*** may want to report the problem to your system manager and/or to 8624*** bug-libtool@gnu.org 8625 8626_LT_EOF 8627 fi ;; 8628 esac 8629 fi 8630 break 8631 fi 8632 done 8633 IFS="$lt_save_ifs" 8634 MAGIC_CMD="$lt_save_MAGIC_CMD" 8635 ;; 8636esac 8637fi 8638 8639MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8640if test -n "$MAGIC_CMD"; then 8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8642$as_echo "$MAGIC_CMD" >&6; } 8643else 8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8645$as_echo "no" >&6; } 8646fi 8647 8648 8649 else 8650 MAGIC_CMD=: 8651 fi 8652fi 8653 8654 fi 8655 ;; 8656esac 8657 8658# Use C for the default configuration in the libtool script 8659 8660lt_save_CC="$CC" 8661ac_ext=c 8662ac_cpp='$CPP $CPPFLAGS' 8663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8665ac_compiler_gnu=$ac_cv_c_compiler_gnu 8666 8667 8668# Source file extension for C test sources. 8669ac_ext=c 8670 8671# Object file extension for compiled C test sources. 8672objext=o 8673objext=$objext 8674 8675# Code to be used in simple compile tests 8676lt_simple_compile_test_code="int some_variable = 0;" 8677 8678# Code to be used in simple link tests 8679lt_simple_link_test_code='int main(){return(0);}' 8680 8681 8682 8683 8684 8685 8686 8687# If no C compiler was specified, use CC. 8688LTCC=${LTCC-"$CC"} 8689 8690# If no C compiler flags were specified, use CFLAGS. 8691LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8692 8693# Allow CC to be a program name with arguments. 8694compiler=$CC 8695 8696# Save the default compiler, since it gets overwritten when the other 8697# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8698compiler_DEFAULT=$CC 8699 8700# save warnings/boilerplate of simple test code 8701ac_outfile=conftest.$ac_objext 8702echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8703eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8704_lt_compiler_boilerplate=`cat conftest.err` 8705$RM conftest* 8706 8707ac_outfile=conftest.$ac_objext 8708echo "$lt_simple_link_test_code" >conftest.$ac_ext 8709eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8710_lt_linker_boilerplate=`cat conftest.err` 8711$RM -r conftest* 8712 8713 8714## CAVEAT EMPTOR: 8715## There is no encapsulation within the following macros, do not change 8716## the running order or otherwise move them around unless you know exactly 8717## what you are doing... 8718if test -n "$compiler"; then 8719 8720lt_prog_compiler_no_builtin_flag= 8721 8722if test "$GCC" = yes; then 8723 case $cc_basename in 8724 nvcc*) 8725 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8726 *) 8727 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8728 esac 8729 8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8731$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8732if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8733 $as_echo_n "(cached) " >&6 8734else 8735 lt_cv_prog_compiler_rtti_exceptions=no 8736 ac_outfile=conftest.$ac_objext 8737 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8738 lt_compiler_flag="-fno-rtti -fno-exceptions" 8739 # Insert the option either (1) after the last *FLAGS variable, or 8740 # (2) before a word containing "conftest.", or (3) at the end. 8741 # Note that $ac_compile itself does not contain backslashes and begins 8742 # with a dollar sign (not a hyphen), so the echo should work correctly. 8743 # The option is referenced via a variable to avoid confusing sed. 8744 lt_compile=`echo "$ac_compile" | $SED \ 8745 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8746 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8747 -e 's:$: $lt_compiler_flag:'` 8748 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8749 (eval "$lt_compile" 2>conftest.err) 8750 ac_status=$? 8751 cat conftest.err >&5 8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8753 if (exit $ac_status) && test -s "$ac_outfile"; then 8754 # The compiler can only warn and ignore the option if not recognized 8755 # So say no if there are warnings other than the usual output. 8756 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8757 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8758 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8759 lt_cv_prog_compiler_rtti_exceptions=yes 8760 fi 8761 fi 8762 $RM conftest* 8763 8764fi 8765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8766$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8767 8768if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8769 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8770else 8771 : 8772fi 8773 8774fi 8775 8776 8777 8778 8779 8780 8781 lt_prog_compiler_wl= 8782lt_prog_compiler_pic= 8783lt_prog_compiler_static= 8784 8785 8786 if test "$GCC" = yes; then 8787 lt_prog_compiler_wl='-Wl,' 8788 lt_prog_compiler_static='-static' 8789 8790 case $host_os in 8791 aix*) 8792 # All AIX code is PIC. 8793 if test "$host_cpu" = ia64; then 8794 # AIX 5 now supports IA64 processor 8795 lt_prog_compiler_static='-Bstatic' 8796 fi 8797 ;; 8798 8799 amigaos*) 8800 case $host_cpu in 8801 powerpc) 8802 # see comment about AmigaOS4 .so support 8803 lt_prog_compiler_pic='-fPIC' 8804 ;; 8805 m68k) 8806 # FIXME: we need at least 68020 code to build shared libraries, but 8807 # adding the `-m68020' flag to GCC prevents building anything better, 8808 # like `-m68040'. 8809 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8810 ;; 8811 esac 8812 ;; 8813 8814 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8815 # PIC is the default for these OSes. 8816 ;; 8817 8818 mingw* | cygwin* | pw32* | os2* | cegcc*) 8819 # This hack is so that the source file can tell whether it is being 8820 # built for inclusion in a dll (and should export symbols for example). 8821 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8822 # (--disable-auto-import) libraries 8823 lt_prog_compiler_pic='-DDLL_EXPORT' 8824 ;; 8825 8826 darwin* | rhapsody*) 8827 # PIC is the default on this platform 8828 # Common symbols not allowed in MH_DYLIB files 8829 lt_prog_compiler_pic='-fno-common' 8830 ;; 8831 8832 haiku*) 8833 # PIC is the default for Haiku. 8834 # The "-static" flag exists, but is broken. 8835 lt_prog_compiler_static= 8836 ;; 8837 8838 hpux*) 8839 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8840 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8841 # sets the default TLS model and affects inlining. 8842 case $host_cpu in 8843 hppa*64*) 8844 # +Z the default 8845 ;; 8846 *) 8847 lt_prog_compiler_pic='-fPIC' 8848 ;; 8849 esac 8850 ;; 8851 8852 interix[3-9]*) 8853 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8854 # Instead, we relocate shared libraries at runtime. 8855 ;; 8856 8857 msdosdjgpp*) 8858 # Just because we use GCC doesn't mean we suddenly get shared libraries 8859 # on systems that don't support them. 8860 lt_prog_compiler_can_build_shared=no 8861 enable_shared=no 8862 ;; 8863 8864 *nto* | *qnx*) 8865 # QNX uses GNU C++, but need to define -shared option too, otherwise 8866 # it will coredump. 8867 lt_prog_compiler_pic='-fPIC -shared' 8868 ;; 8869 8870 sysv4*MP*) 8871 if test -d /usr/nec; then 8872 lt_prog_compiler_pic=-Kconform_pic 8873 fi 8874 ;; 8875 8876 *) 8877 lt_prog_compiler_pic='-fPIC' 8878 ;; 8879 esac 8880 8881 case $cc_basename in 8882 nvcc*) # Cuda Compiler Driver 2.2 8883 lt_prog_compiler_wl='-Xlinker ' 8884 if test -n "$lt_prog_compiler_pic"; then 8885 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8886 fi 8887 ;; 8888 esac 8889 else 8890 # PORTME Check for flag to pass linker flags through the system compiler. 8891 case $host_os in 8892 aix*) 8893 lt_prog_compiler_wl='-Wl,' 8894 if test "$host_cpu" = ia64; then 8895 # AIX 5 now supports IA64 processor 8896 lt_prog_compiler_static='-Bstatic' 8897 else 8898 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8899 fi 8900 ;; 8901 8902 mingw* | cygwin* | pw32* | os2* | cegcc*) 8903 # This hack is so that the source file can tell whether it is being 8904 # built for inclusion in a dll (and should export symbols for example). 8905 lt_prog_compiler_pic='-DDLL_EXPORT' 8906 ;; 8907 8908 hpux9* | hpux10* | hpux11*) 8909 lt_prog_compiler_wl='-Wl,' 8910 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8911 # not for PA HP-UX. 8912 case $host_cpu in 8913 hppa*64*|ia64*) 8914 # +Z the default 8915 ;; 8916 *) 8917 lt_prog_compiler_pic='+Z' 8918 ;; 8919 esac 8920 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8921 lt_prog_compiler_static='${wl}-a ${wl}archive' 8922 ;; 8923 8924 irix5* | irix6* | nonstopux*) 8925 lt_prog_compiler_wl='-Wl,' 8926 # PIC (with -KPIC) is the default. 8927 lt_prog_compiler_static='-non_shared' 8928 ;; 8929 8930 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8931 case $cc_basename in 8932 # old Intel for x86_64 which still supported -KPIC. 8933 ecc*) 8934 lt_prog_compiler_wl='-Wl,' 8935 lt_prog_compiler_pic='-KPIC' 8936 lt_prog_compiler_static='-static' 8937 ;; 8938 # icc used to be incompatible with GCC. 8939 # ICC 10 doesn't accept -KPIC any more. 8940 icc* | ifort*) 8941 lt_prog_compiler_wl='-Wl,' 8942 lt_prog_compiler_pic='-fPIC' 8943 lt_prog_compiler_static='-static' 8944 ;; 8945 # Lahey Fortran 8.1. 8946 lf95*) 8947 lt_prog_compiler_wl='-Wl,' 8948 lt_prog_compiler_pic='--shared' 8949 lt_prog_compiler_static='--static' 8950 ;; 8951 nagfor*) 8952 # NAG Fortran compiler 8953 lt_prog_compiler_wl='-Wl,-Wl,,' 8954 lt_prog_compiler_pic='-PIC' 8955 lt_prog_compiler_static='-Bstatic' 8956 ;; 8957 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8958 # Portland Group compilers (*not* the Pentium gcc compiler, 8959 # which looks to be a dead project) 8960 lt_prog_compiler_wl='-Wl,' 8961 lt_prog_compiler_pic='-fpic' 8962 lt_prog_compiler_static='-Bstatic' 8963 ;; 8964 ccc*) 8965 lt_prog_compiler_wl='-Wl,' 8966 # All Alpha code is PIC. 8967 lt_prog_compiler_static='-non_shared' 8968 ;; 8969 xl* | bgxl* | bgf* | mpixl*) 8970 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8971 lt_prog_compiler_wl='-Wl,' 8972 lt_prog_compiler_pic='-qpic' 8973 lt_prog_compiler_static='-qstaticlink' 8974 ;; 8975 *) 8976 case `$CC -V 2>&1 | sed 5q` in 8977 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8978 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8979 lt_prog_compiler_pic='-KPIC' 8980 lt_prog_compiler_static='-Bstatic' 8981 lt_prog_compiler_wl='' 8982 ;; 8983 *Sun\ F* | *Sun*Fortran*) 8984 lt_prog_compiler_pic='-KPIC' 8985 lt_prog_compiler_static='-Bstatic' 8986 lt_prog_compiler_wl='-Qoption ld ' 8987 ;; 8988 *Sun\ C*) 8989 # Sun C 5.9 8990 lt_prog_compiler_pic='-KPIC' 8991 lt_prog_compiler_static='-Bstatic' 8992 lt_prog_compiler_wl='-Wl,' 8993 ;; 8994 *Intel*\ [CF]*Compiler*) 8995 lt_prog_compiler_wl='-Wl,' 8996 lt_prog_compiler_pic='-fPIC' 8997 lt_prog_compiler_static='-static' 8998 ;; 8999 *Portland\ Group*) 9000 lt_prog_compiler_wl='-Wl,' 9001 lt_prog_compiler_pic='-fpic' 9002 lt_prog_compiler_static='-Bstatic' 9003 ;; 9004 esac 9005 ;; 9006 esac 9007 ;; 9008 9009 newsos6) 9010 lt_prog_compiler_pic='-KPIC' 9011 lt_prog_compiler_static='-Bstatic' 9012 ;; 9013 9014 *nto* | *qnx*) 9015 # QNX uses GNU C++, but need to define -shared option too, otherwise 9016 # it will coredump. 9017 lt_prog_compiler_pic='-fPIC -shared' 9018 ;; 9019 9020 osf3* | osf4* | osf5*) 9021 lt_prog_compiler_wl='-Wl,' 9022 # All OSF/1 code is PIC. 9023 lt_prog_compiler_static='-non_shared' 9024 ;; 9025 9026 rdos*) 9027 lt_prog_compiler_static='-non_shared' 9028 ;; 9029 9030 solaris*) 9031 lt_prog_compiler_pic='-KPIC' 9032 lt_prog_compiler_static='-Bstatic' 9033 case $cc_basename in 9034 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9035 lt_prog_compiler_wl='-Qoption ld ';; 9036 *) 9037 lt_prog_compiler_wl='-Wl,';; 9038 esac 9039 ;; 9040 9041 sunos4*) 9042 lt_prog_compiler_wl='-Qoption ld ' 9043 lt_prog_compiler_pic='-PIC' 9044 lt_prog_compiler_static='-Bstatic' 9045 ;; 9046 9047 sysv4 | sysv4.2uw2* | sysv4.3*) 9048 lt_prog_compiler_wl='-Wl,' 9049 lt_prog_compiler_pic='-KPIC' 9050 lt_prog_compiler_static='-Bstatic' 9051 ;; 9052 9053 sysv4*MP*) 9054 if test -d /usr/nec ;then 9055 lt_prog_compiler_pic='-Kconform_pic' 9056 lt_prog_compiler_static='-Bstatic' 9057 fi 9058 ;; 9059 9060 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9061 lt_prog_compiler_wl='-Wl,' 9062 lt_prog_compiler_pic='-KPIC' 9063 lt_prog_compiler_static='-Bstatic' 9064 ;; 9065 9066 unicos*) 9067 lt_prog_compiler_wl='-Wl,' 9068 lt_prog_compiler_can_build_shared=no 9069 ;; 9070 9071 uts4*) 9072 lt_prog_compiler_pic='-pic' 9073 lt_prog_compiler_static='-Bstatic' 9074 ;; 9075 9076 *) 9077 lt_prog_compiler_can_build_shared=no 9078 ;; 9079 esac 9080 fi 9081 9082case $host_os in 9083 # For platforms which do not support PIC, -DPIC is meaningless: 9084 *djgpp*) 9085 lt_prog_compiler_pic= 9086 ;; 9087 *) 9088 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9089 ;; 9090esac 9091 9092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9093$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9094if ${lt_cv_prog_compiler_pic+:} false; then : 9095 $as_echo_n "(cached) " >&6 9096else 9097 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9098fi 9099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9100$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9101lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9102 9103# 9104# Check to make sure the PIC flag actually works. 9105# 9106if test -n "$lt_prog_compiler_pic"; then 9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9108$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9109if ${lt_cv_prog_compiler_pic_works+:} false; then : 9110 $as_echo_n "(cached) " >&6 9111else 9112 lt_cv_prog_compiler_pic_works=no 9113 ac_outfile=conftest.$ac_objext 9114 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9115 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9116 # Insert the option either (1) after the last *FLAGS variable, or 9117 # (2) before a word containing "conftest.", or (3) at the end. 9118 # Note that $ac_compile itself does not contain backslashes and begins 9119 # with a dollar sign (not a hyphen), so the echo should work correctly. 9120 # The option is referenced via a variable to avoid confusing sed. 9121 lt_compile=`echo "$ac_compile" | $SED \ 9122 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9123 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9124 -e 's:$: $lt_compiler_flag:'` 9125 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9126 (eval "$lt_compile" 2>conftest.err) 9127 ac_status=$? 9128 cat conftest.err >&5 9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9130 if (exit $ac_status) && test -s "$ac_outfile"; then 9131 # The compiler can only warn and ignore the option if not recognized 9132 # So say no if there are warnings other than the usual output. 9133 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9134 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9135 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9136 lt_cv_prog_compiler_pic_works=yes 9137 fi 9138 fi 9139 $RM conftest* 9140 9141fi 9142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9143$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9144 9145if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9146 case $lt_prog_compiler_pic in 9147 "" | " "*) ;; 9148 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9149 esac 9150else 9151 lt_prog_compiler_pic= 9152 lt_prog_compiler_can_build_shared=no 9153fi 9154 9155fi 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167# 9168# Check to make sure the static flag actually works. 9169# 9170wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9172$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9173if ${lt_cv_prog_compiler_static_works+:} false; then : 9174 $as_echo_n "(cached) " >&6 9175else 9176 lt_cv_prog_compiler_static_works=no 9177 save_LDFLAGS="$LDFLAGS" 9178 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9179 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9180 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9181 # The linker can only warn and ignore the option if not recognized 9182 # So say no if there are warnings 9183 if test -s conftest.err; then 9184 # Append any errors to the config.log. 9185 cat conftest.err 1>&5 9186 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9187 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9188 if diff conftest.exp conftest.er2 >/dev/null; then 9189 lt_cv_prog_compiler_static_works=yes 9190 fi 9191 else 9192 lt_cv_prog_compiler_static_works=yes 9193 fi 9194 fi 9195 $RM -r conftest* 9196 LDFLAGS="$save_LDFLAGS" 9197 9198fi 9199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9200$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9201 9202if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9203 : 9204else 9205 lt_prog_compiler_static= 9206fi 9207 9208 9209 9210 9211 9212 9213 9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9215$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9216if ${lt_cv_prog_compiler_c_o+:} false; then : 9217 $as_echo_n "(cached) " >&6 9218else 9219 lt_cv_prog_compiler_c_o=no 9220 $RM -r conftest 2>/dev/null 9221 mkdir conftest 9222 cd conftest 9223 mkdir out 9224 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9225 9226 lt_compiler_flag="-o out/conftest2.$ac_objext" 9227 # Insert the option either (1) after the last *FLAGS variable, or 9228 # (2) before a word containing "conftest.", or (3) at the end. 9229 # Note that $ac_compile itself does not contain backslashes and begins 9230 # with a dollar sign (not a hyphen), so the echo should work correctly. 9231 lt_compile=`echo "$ac_compile" | $SED \ 9232 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9234 -e 's:$: $lt_compiler_flag:'` 9235 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9236 (eval "$lt_compile" 2>out/conftest.err) 9237 ac_status=$? 9238 cat out/conftest.err >&5 9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9240 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9241 then 9242 # The compiler can only warn and ignore the option if not recognized 9243 # So say no if there are warnings 9244 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9245 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9246 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9247 lt_cv_prog_compiler_c_o=yes 9248 fi 9249 fi 9250 chmod u+w . 2>&5 9251 $RM conftest* 9252 # SGI C++ compiler will create directory out/ii_files/ for 9253 # template instantiation 9254 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9255 $RM out/* && rmdir out 9256 cd .. 9257 $RM -r conftest 9258 $RM conftest* 9259 9260fi 9261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9262$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9263 9264 9265 9266 9267 9268 9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9270$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9271if ${lt_cv_prog_compiler_c_o+:} false; then : 9272 $as_echo_n "(cached) " >&6 9273else 9274 lt_cv_prog_compiler_c_o=no 9275 $RM -r conftest 2>/dev/null 9276 mkdir conftest 9277 cd conftest 9278 mkdir out 9279 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9280 9281 lt_compiler_flag="-o out/conftest2.$ac_objext" 9282 # Insert the option either (1) after the last *FLAGS variable, or 9283 # (2) before a word containing "conftest.", or (3) at the end. 9284 # Note that $ac_compile itself does not contain backslashes and begins 9285 # with a dollar sign (not a hyphen), so the echo should work correctly. 9286 lt_compile=`echo "$ac_compile" | $SED \ 9287 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9288 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9289 -e 's:$: $lt_compiler_flag:'` 9290 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9291 (eval "$lt_compile" 2>out/conftest.err) 9292 ac_status=$? 9293 cat out/conftest.err >&5 9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9295 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9296 then 9297 # The compiler can only warn and ignore the option if not recognized 9298 # So say no if there are warnings 9299 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9300 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9301 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9302 lt_cv_prog_compiler_c_o=yes 9303 fi 9304 fi 9305 chmod u+w . 2>&5 9306 $RM conftest* 9307 # SGI C++ compiler will create directory out/ii_files/ for 9308 # template instantiation 9309 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9310 $RM out/* && rmdir out 9311 cd .. 9312 $RM -r conftest 9313 $RM conftest* 9314 9315fi 9316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9317$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9318 9319 9320 9321 9322hard_links="nottested" 9323if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9324 # do not overwrite the value of need_locks provided by the user 9325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9326$as_echo_n "checking if we can lock with hard links... " >&6; } 9327 hard_links=yes 9328 $RM conftest* 9329 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9330 touch conftest.a 9331 ln conftest.a conftest.b 2>&5 || hard_links=no 9332 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9334$as_echo "$hard_links" >&6; } 9335 if test "$hard_links" = no; then 9336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9337$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9338 need_locks=warn 9339 fi 9340else 9341 need_locks=no 9342fi 9343 9344 9345 9346 9347 9348 9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9350$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9351 9352 runpath_var= 9353 allow_undefined_flag= 9354 always_export_symbols=no 9355 archive_cmds= 9356 archive_expsym_cmds= 9357 compiler_needs_object=no 9358 enable_shared_with_static_runtimes=no 9359 export_dynamic_flag_spec= 9360 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9361 hardcode_automatic=no 9362 hardcode_direct=no 9363 hardcode_direct_absolute=no 9364 hardcode_libdir_flag_spec= 9365 hardcode_libdir_separator= 9366 hardcode_minus_L=no 9367 hardcode_shlibpath_var=unsupported 9368 inherit_rpath=no 9369 link_all_deplibs=unknown 9370 module_cmds= 9371 module_expsym_cmds= 9372 old_archive_from_new_cmds= 9373 old_archive_from_expsyms_cmds= 9374 thread_safe_flag_spec= 9375 whole_archive_flag_spec= 9376 # include_expsyms should be a list of space-separated symbols to be *always* 9377 # included in the symbol list 9378 include_expsyms= 9379 # exclude_expsyms can be an extended regexp of symbols to exclude 9380 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9381 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9382 # as well as any symbol that contains `d'. 9383 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9384 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9385 # platforms (ab)use it in PIC code, but their linkers get confused if 9386 # the symbol is explicitly referenced. Since portable code cannot 9387 # rely on this symbol name, it's probably fine to never include it in 9388 # preloaded symbol tables. 9389 # Exclude shared library initialization/finalization symbols. 9390 extract_expsyms_cmds= 9391 9392 case $host_os in 9393 cygwin* | mingw* | pw32* | cegcc*) 9394 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9395 # When not using gcc, we currently assume that we are using 9396 # Microsoft Visual C++. 9397 if test "$GCC" != yes; then 9398 with_gnu_ld=no 9399 fi 9400 ;; 9401 interix*) 9402 # we just hope/assume this is gcc and not c89 (= MSVC++) 9403 with_gnu_ld=yes 9404 ;; 9405 openbsd*) 9406 with_gnu_ld=no 9407 ;; 9408 linux* | k*bsd*-gnu | gnu*) 9409 link_all_deplibs=no 9410 ;; 9411 esac 9412 9413 ld_shlibs=yes 9414 9415 # On some targets, GNU ld is compatible enough with the native linker 9416 # that we're better off using the native interface for both. 9417 lt_use_gnu_ld_interface=no 9418 if test "$with_gnu_ld" = yes; then 9419 case $host_os in 9420 aix*) 9421 # The AIX port of GNU ld has always aspired to compatibility 9422 # with the native linker. However, as the warning in the GNU ld 9423 # block says, versions before 2.19.5* couldn't really create working 9424 # shared libraries, regardless of the interface used. 9425 case `$LD -v 2>&1` in 9426 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9427 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9428 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9429 *) 9430 lt_use_gnu_ld_interface=yes 9431 ;; 9432 esac 9433 ;; 9434 *) 9435 lt_use_gnu_ld_interface=yes 9436 ;; 9437 esac 9438 fi 9439 9440 if test "$lt_use_gnu_ld_interface" = yes; then 9441 # If archive_cmds runs LD, not CC, wlarc should be empty 9442 wlarc='${wl}' 9443 9444 # Set some defaults for GNU ld with shared library support. These 9445 # are reset later if shared libraries are not supported. Putting them 9446 # here allows them to be overridden if necessary. 9447 runpath_var=LD_RUN_PATH 9448 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9449 export_dynamic_flag_spec='${wl}--export-dynamic' 9450 # ancient GNU ld didn't support --whole-archive et. al. 9451 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9452 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9453 else 9454 whole_archive_flag_spec= 9455 fi 9456 supports_anon_versioning=no 9457 case `$LD -v 2>&1` in 9458 *GNU\ gold*) supports_anon_versioning=yes ;; 9459 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9460 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9461 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9462 *\ 2.11.*) ;; # other 2.11 versions 9463 *) supports_anon_versioning=yes ;; 9464 esac 9465 9466 # See if GNU ld supports shared libraries. 9467 case $host_os in 9468 aix[3-9]*) 9469 # On AIX/PPC, the GNU linker is very broken 9470 if test "$host_cpu" != ia64; then 9471 ld_shlibs=no 9472 cat <<_LT_EOF 1>&2 9473 9474*** Warning: the GNU linker, at least up to release 2.19, is reported 9475*** to be unable to reliably create shared libraries on AIX. 9476*** Therefore, libtool is disabling shared libraries support. If you 9477*** really care for shared libraries, you may want to install binutils 9478*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9479*** You will then need to restart the configuration process. 9480 9481_LT_EOF 9482 fi 9483 ;; 9484 9485 amigaos*) 9486 case $host_cpu in 9487 powerpc) 9488 # see comment about AmigaOS4 .so support 9489 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9490 archive_expsym_cmds='' 9491 ;; 9492 m68k) 9493 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)' 9494 hardcode_libdir_flag_spec='-L$libdir' 9495 hardcode_minus_L=yes 9496 ;; 9497 esac 9498 ;; 9499 9500 beos*) 9501 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9502 allow_undefined_flag=unsupported 9503 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9504 # support --undefined. This deserves some investigation. FIXME 9505 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9506 else 9507 ld_shlibs=no 9508 fi 9509 ;; 9510 9511 cygwin* | mingw* | pw32* | cegcc*) 9512 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9513 # as there is no search path for DLLs. 9514 hardcode_libdir_flag_spec='-L$libdir' 9515 export_dynamic_flag_spec='${wl}--export-all-symbols' 9516 allow_undefined_flag=unsupported 9517 always_export_symbols=no 9518 enable_shared_with_static_runtimes=yes 9519 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' 9520 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9521 9522 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9523 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9524 # If the export-symbols file already is a .def file (1st line 9525 # is EXPORTS), use it as is; otherwise, prepend... 9526 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9527 cp $export_symbols $output_objdir/$soname.def; 9528 else 9529 echo EXPORTS > $output_objdir/$soname.def; 9530 cat $export_symbols >> $output_objdir/$soname.def; 9531 fi~ 9532 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9533 else 9534 ld_shlibs=no 9535 fi 9536 ;; 9537 9538 haiku*) 9539 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9540 link_all_deplibs=yes 9541 ;; 9542 9543 interix[3-9]*) 9544 hardcode_direct=no 9545 hardcode_shlibpath_var=no 9546 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9547 export_dynamic_flag_spec='${wl}-E' 9548 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9549 # Instead, shared libraries are loaded at an image base (0x10000000 by 9550 # default) and relocated if they conflict, which is a slow very memory 9551 # consuming and fragmenting process. To avoid this, we pick a random, 9552 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9553 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9554 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9555 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' 9556 ;; 9557 9558 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9559 tmp_diet=no 9560 if test "$host_os" = linux-dietlibc; then 9561 case $cc_basename in 9562 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9563 esac 9564 fi 9565 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9566 && test "$tmp_diet" = no 9567 then 9568 tmp_addflag=' $pic_flag' 9569 tmp_sharedflag='-shared' 9570 case $cc_basename,$host_cpu in 9571 pgcc*) # Portland Group C compiler 9572 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' 9573 tmp_addflag=' $pic_flag' 9574 ;; 9575 pgf77* | pgf90* | pgf95* | pgfortran*) 9576 # Portland Group f77 and f90 compilers 9577 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' 9578 tmp_addflag=' $pic_flag -Mnomain' ;; 9579 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9580 tmp_addflag=' -i_dynamic' ;; 9581 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9582 tmp_addflag=' -i_dynamic -nofor_main' ;; 9583 ifc* | ifort*) # Intel Fortran compiler 9584 tmp_addflag=' -nofor_main' ;; 9585 lf95*) # Lahey Fortran 8.1 9586 whole_archive_flag_spec= 9587 tmp_sharedflag='--shared' ;; 9588 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9589 tmp_sharedflag='-qmkshrobj' 9590 tmp_addflag= ;; 9591 nvcc*) # Cuda Compiler Driver 2.2 9592 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' 9593 compiler_needs_object=yes 9594 ;; 9595 esac 9596 case `$CC -V 2>&1 | sed 5q` in 9597 *Sun\ C*) # Sun C 5.9 9598 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' 9599 compiler_needs_object=yes 9600 tmp_sharedflag='-G' ;; 9601 *Sun\ F*) # Sun Fortran 8.3 9602 tmp_sharedflag='-G' ;; 9603 esac 9604 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9605 9606 if test "x$supports_anon_versioning" = xyes; then 9607 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9608 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9609 echo "local: *; };" >> $output_objdir/$libname.ver~ 9610 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9611 fi 9612 9613 case $cc_basename in 9614 xlf* | bgf* | bgxlf* | mpixlf*) 9615 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9616 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9617 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9618 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9619 if test "x$supports_anon_versioning" = xyes; then 9620 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9621 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9622 echo "local: *; };" >> $output_objdir/$libname.ver~ 9623 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9624 fi 9625 ;; 9626 esac 9627 else 9628 ld_shlibs=no 9629 fi 9630 ;; 9631 9632 netbsd* | netbsdelf*-gnu) 9633 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9634 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9635 wlarc= 9636 else 9637 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9638 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9639 fi 9640 ;; 9641 9642 solaris*) 9643 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9644 ld_shlibs=no 9645 cat <<_LT_EOF 1>&2 9646 9647*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9648*** create shared libraries on Solaris systems. Therefore, libtool 9649*** is disabling shared libraries support. We urge you to upgrade GNU 9650*** binutils to release 2.9.1 or newer. Another option is to modify 9651*** your PATH or compiler configuration so that the native linker is 9652*** used, and then restart. 9653 9654_LT_EOF 9655 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9656 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9657 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9658 else 9659 ld_shlibs=no 9660 fi 9661 ;; 9662 9663 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9664 case `$LD -v 2>&1` in 9665 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9666 ld_shlibs=no 9667 cat <<_LT_EOF 1>&2 9668 9669*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9670*** reliably create shared libraries on SCO systems. Therefore, libtool 9671*** is disabling shared libraries support. We urge you to upgrade GNU 9672*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9673*** your PATH or compiler configuration so that the native linker is 9674*** used, and then restart. 9675 9676_LT_EOF 9677 ;; 9678 *) 9679 # For security reasons, it is highly recommended that you always 9680 # use absolute paths for naming shared libraries, and exclude the 9681 # DT_RUNPATH tag from executables and libraries. But doing so 9682 # requires that you compile everything twice, which is a pain. 9683 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9684 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9685 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9686 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9687 else 9688 ld_shlibs=no 9689 fi 9690 ;; 9691 esac 9692 ;; 9693 9694 sunos4*) 9695 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9696 wlarc= 9697 hardcode_direct=yes 9698 hardcode_shlibpath_var=no 9699 ;; 9700 9701 *) 9702 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9703 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9704 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9705 else 9706 ld_shlibs=no 9707 fi 9708 ;; 9709 esac 9710 9711 if test "$ld_shlibs" = no; then 9712 runpath_var= 9713 hardcode_libdir_flag_spec= 9714 export_dynamic_flag_spec= 9715 whole_archive_flag_spec= 9716 fi 9717 else 9718 # PORTME fill in a description of your system's linker (not GNU ld) 9719 case $host_os in 9720 aix3*) 9721 allow_undefined_flag=unsupported 9722 always_export_symbols=yes 9723 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' 9724 # Note: this linker hardcodes the directories in LIBPATH if there 9725 # are no directories specified by -L. 9726 hardcode_minus_L=yes 9727 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9728 # Neither direct hardcoding nor static linking is supported with a 9729 # broken collect2. 9730 hardcode_direct=unsupported 9731 fi 9732 ;; 9733 9734 aix[4-9]*) 9735 if test "$host_cpu" = ia64; then 9736 # On IA64, the linker does run time linking by default, so we don't 9737 # have to do anything special. 9738 aix_use_runtimelinking=no 9739 exp_sym_flag='-Bexport' 9740 no_entry_flag="" 9741 else 9742 # If we're using GNU nm, then we don't want the "-C" option. 9743 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9744 # Also, AIX nm treats weak defined symbols like other global 9745 # defined symbols, whereas GNU nm marks them as "W". 9746 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9747 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9748 else 9749 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9750 fi 9751 aix_use_runtimelinking=no 9752 9753 # Test if we are trying to use run time linking or normal 9754 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9755 # need to do runtime linking. 9756 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9757 for ld_flag in $LDFLAGS; do 9758 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9759 aix_use_runtimelinking=yes 9760 break 9761 fi 9762 done 9763 ;; 9764 esac 9765 9766 exp_sym_flag='-bexport' 9767 no_entry_flag='-bnoentry' 9768 fi 9769 9770 # When large executables or shared objects are built, AIX ld can 9771 # have problems creating the table of contents. If linking a library 9772 # or program results in "error TOC overflow" add -mminimal-toc to 9773 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9774 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9775 9776 archive_cmds='' 9777 hardcode_direct=yes 9778 hardcode_direct_absolute=yes 9779 hardcode_libdir_separator=':' 9780 link_all_deplibs=yes 9781 file_list_spec='${wl}-f,' 9782 9783 if test "$GCC" = yes; then 9784 case $host_os in aix4.[012]|aix4.[012].*) 9785 # We only want to do this on AIX 4.2 and lower, the check 9786 # below for broken collect2 doesn't work under 4.3+ 9787 collect2name=`${CC} -print-prog-name=collect2` 9788 if test -f "$collect2name" && 9789 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9790 then 9791 # We have reworked collect2 9792 : 9793 else 9794 # We have old collect2 9795 hardcode_direct=unsupported 9796 # It fails to find uninstalled libraries when the uninstalled 9797 # path is not listed in the libpath. Setting hardcode_minus_L 9798 # to unsupported forces relinking 9799 hardcode_minus_L=yes 9800 hardcode_libdir_flag_spec='-L$libdir' 9801 hardcode_libdir_separator= 9802 fi 9803 ;; 9804 esac 9805 shared_flag='-shared' 9806 if test "$aix_use_runtimelinking" = yes; then 9807 shared_flag="$shared_flag "'${wl}-G' 9808 fi 9809 link_all_deplibs=no 9810 else 9811 # not using gcc 9812 if test "$host_cpu" = ia64; then 9813 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9814 # chokes on -Wl,-G. The following line is correct: 9815 shared_flag='-G' 9816 else 9817 if test "$aix_use_runtimelinking" = yes; then 9818 shared_flag='${wl}-G' 9819 else 9820 shared_flag='${wl}-bM:SRE' 9821 fi 9822 fi 9823 fi 9824 9825 export_dynamic_flag_spec='${wl}-bexpall' 9826 # It seems that -bexpall does not export symbols beginning with 9827 # underscore (_), so it is better to generate a list of symbols to export. 9828 always_export_symbols=yes 9829 if test "$aix_use_runtimelinking" = yes; then 9830 # Warning - without using the other runtime loading flags (-brtl), 9831 # -berok will link without error, but may produce a broken library. 9832 allow_undefined_flag='-berok' 9833 # Determine the default libpath from the value encoded in an 9834 # empty executable. 9835 if test "${lt_cv_aix_libpath+set}" = set; then 9836 aix_libpath=$lt_cv_aix_libpath 9837else 9838 if ${lt_cv_aix_libpath_+:} false; then : 9839 $as_echo_n "(cached) " >&6 9840else 9841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9842/* end confdefs.h. */ 9843 9844int 9845main () 9846{ 9847 9848 ; 9849 return 0; 9850} 9851_ACEOF 9852if ac_fn_c_try_link "$LINENO"; then : 9853 9854 lt_aix_libpath_sed=' 9855 /Import File Strings/,/^$/ { 9856 /^0/ { 9857 s/^0 *\([^ ]*\) *$/\1/ 9858 p 9859 } 9860 }' 9861 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9862 # Check for a 64-bit object if we didn't find anything. 9863 if test -z "$lt_cv_aix_libpath_"; then 9864 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9865 fi 9866fi 9867rm -f core conftest.err conftest.$ac_objext \ 9868 conftest$ac_exeext conftest.$ac_ext 9869 if test -z "$lt_cv_aix_libpath_"; then 9870 lt_cv_aix_libpath_="/usr/lib:/lib" 9871 fi 9872 9873fi 9874 9875 aix_libpath=$lt_cv_aix_libpath_ 9876fi 9877 9878 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9879 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9880 else 9881 if test "$host_cpu" = ia64; then 9882 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9883 allow_undefined_flag="-z nodefs" 9884 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" 9885 else 9886 # Determine the default libpath from the value encoded in an 9887 # empty executable. 9888 if test "${lt_cv_aix_libpath+set}" = set; then 9889 aix_libpath=$lt_cv_aix_libpath 9890else 9891 if ${lt_cv_aix_libpath_+:} false; then : 9892 $as_echo_n "(cached) " >&6 9893else 9894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9895/* end confdefs.h. */ 9896 9897int 9898main () 9899{ 9900 9901 ; 9902 return 0; 9903} 9904_ACEOF 9905if ac_fn_c_try_link "$LINENO"; then : 9906 9907 lt_aix_libpath_sed=' 9908 /Import File Strings/,/^$/ { 9909 /^0/ { 9910 s/^0 *\([^ ]*\) *$/\1/ 9911 p 9912 } 9913 }' 9914 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9915 # Check for a 64-bit object if we didn't find anything. 9916 if test -z "$lt_cv_aix_libpath_"; then 9917 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9918 fi 9919fi 9920rm -f core conftest.err conftest.$ac_objext \ 9921 conftest$ac_exeext conftest.$ac_ext 9922 if test -z "$lt_cv_aix_libpath_"; then 9923 lt_cv_aix_libpath_="/usr/lib:/lib" 9924 fi 9925 9926fi 9927 9928 aix_libpath=$lt_cv_aix_libpath_ 9929fi 9930 9931 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9932 # Warning - without using the other run time loading flags, 9933 # -berok will link without error, but may produce a broken library. 9934 no_undefined_flag=' ${wl}-bernotok' 9935 allow_undefined_flag=' ${wl}-berok' 9936 if test "$with_gnu_ld" = yes; then 9937 # We only use this code for GNU lds that support --whole-archive. 9938 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9939 else 9940 # Exported symbols can be pulled into shared objects from archives 9941 whole_archive_flag_spec='$convenience' 9942 fi 9943 archive_cmds_need_lc=yes 9944 # This is similar to how AIX traditionally builds its shared libraries. 9945 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9946 fi 9947 fi 9948 ;; 9949 9950 amigaos*) 9951 case $host_cpu in 9952 powerpc) 9953 # see comment about AmigaOS4 .so support 9954 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9955 archive_expsym_cmds='' 9956 ;; 9957 m68k) 9958 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)' 9959 hardcode_libdir_flag_spec='-L$libdir' 9960 hardcode_minus_L=yes 9961 ;; 9962 esac 9963 ;; 9964 9965 bsdi[45]*) 9966 export_dynamic_flag_spec=-rdynamic 9967 ;; 9968 9969 cygwin* | mingw* | pw32* | cegcc*) 9970 # When not using gcc, we currently assume that we are using 9971 # Microsoft Visual C++. 9972 # hardcode_libdir_flag_spec is actually meaningless, as there is 9973 # no search path for DLLs. 9974 case $cc_basename in 9975 cl*) 9976 # Native MSVC 9977 hardcode_libdir_flag_spec=' ' 9978 allow_undefined_flag=unsupported 9979 always_export_symbols=yes 9980 file_list_spec='@' 9981 # Tell ltmain to make .lib files, not .a files. 9982 libext=lib 9983 # Tell ltmain to make .dll files, not .so files. 9984 shrext_cmds=".dll" 9985 # FIXME: Setting linknames here is a bad hack. 9986 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9987 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9988 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9989 else 9990 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9991 fi~ 9992 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9993 linknames=' 9994 # The linker will not automatically build a static lib if we build a DLL. 9995 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9996 enable_shared_with_static_runtimes=yes 9997 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9998 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9999 # Don't use ranlib 10000 old_postinstall_cmds='chmod 644 $oldlib' 10001 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10002 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10003 case $lt_outputfile in 10004 *.exe|*.EXE) ;; 10005 *) 10006 lt_outputfile="$lt_outputfile.exe" 10007 lt_tool_outputfile="$lt_tool_outputfile.exe" 10008 ;; 10009 esac~ 10010 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 10011 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10012 $RM "$lt_outputfile.manifest"; 10013 fi' 10014 ;; 10015 *) 10016 # Assume MSVC wrapper 10017 hardcode_libdir_flag_spec=' ' 10018 allow_undefined_flag=unsupported 10019 # Tell ltmain to make .lib files, not .a files. 10020 libext=lib 10021 # Tell ltmain to make .dll files, not .so files. 10022 shrext_cmds=".dll" 10023 # FIXME: Setting linknames here is a bad hack. 10024 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10025 # The linker will automatically build a .lib file if we build a DLL. 10026 old_archive_from_new_cmds='true' 10027 # FIXME: Should let the user specify the lib program. 10028 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10029 enable_shared_with_static_runtimes=yes 10030 ;; 10031 esac 10032 ;; 10033 10034 darwin* | rhapsody*) 10035 10036 10037 archive_cmds_need_lc=no 10038 hardcode_direct=no 10039 hardcode_automatic=yes 10040 hardcode_shlibpath_var=unsupported 10041 if test "$lt_cv_ld_force_load" = "yes"; then 10042 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\"`' 10043 10044 else 10045 whole_archive_flag_spec='' 10046 fi 10047 link_all_deplibs=yes 10048 allow_undefined_flag="$_lt_dar_allow_undefined" 10049 case $cc_basename in 10050 ifort*) _lt_dar_can_shared=yes ;; 10051 *) _lt_dar_can_shared=$GCC ;; 10052 esac 10053 if test "$_lt_dar_can_shared" = "yes"; then 10054 output_verbose_link_cmd=func_echo_all 10055 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10056 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10057 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}" 10058 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}" 10059 10060 else 10061 ld_shlibs=no 10062 fi 10063 10064 ;; 10065 10066 dgux*) 10067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10068 hardcode_libdir_flag_spec='-L$libdir' 10069 hardcode_shlibpath_var=no 10070 ;; 10071 10072 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10073 # support. Future versions do this automatically, but an explicit c++rt0.o 10074 # does not break anything, and helps significantly (at the cost of a little 10075 # extra space). 10076 freebsd2.2*) 10077 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10078 hardcode_libdir_flag_spec='-R$libdir' 10079 hardcode_direct=yes 10080 hardcode_shlibpath_var=no 10081 ;; 10082 10083 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10084 freebsd2.*) 10085 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10086 hardcode_direct=yes 10087 hardcode_minus_L=yes 10088 hardcode_shlibpath_var=no 10089 ;; 10090 10091 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10092 freebsd* | dragonfly*) 10093 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10094 hardcode_libdir_flag_spec='-R$libdir' 10095 hardcode_direct=yes 10096 hardcode_shlibpath_var=no 10097 ;; 10098 10099 hpux9*) 10100 if test "$GCC" = yes; then 10101 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10102 else 10103 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10104 fi 10105 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10106 hardcode_libdir_separator=: 10107 hardcode_direct=yes 10108 10109 # hardcode_minus_L: Not really in the search PATH, 10110 # but as the default location of the library. 10111 hardcode_minus_L=yes 10112 export_dynamic_flag_spec='${wl}-E' 10113 ;; 10114 10115 hpux10*) 10116 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10117 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10118 else 10119 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10120 fi 10121 if test "$with_gnu_ld" = no; then 10122 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10123 hardcode_libdir_separator=: 10124 hardcode_direct=yes 10125 hardcode_direct_absolute=yes 10126 export_dynamic_flag_spec='${wl}-E' 10127 # hardcode_minus_L: Not really in the search PATH, 10128 # but as the default location of the library. 10129 hardcode_minus_L=yes 10130 fi 10131 ;; 10132 10133 hpux11*) 10134 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10135 case $host_cpu in 10136 hppa*64*) 10137 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10138 ;; 10139 ia64*) 10140 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10141 ;; 10142 *) 10143 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10144 ;; 10145 esac 10146 else 10147 case $host_cpu in 10148 hppa*64*) 10149 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10150 ;; 10151 ia64*) 10152 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10153 ;; 10154 *) 10155 10156 # Older versions of the 11.00 compiler do not understand -b yet 10157 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10159$as_echo_n "checking if $CC understands -b... " >&6; } 10160if ${lt_cv_prog_compiler__b+:} false; then : 10161 $as_echo_n "(cached) " >&6 10162else 10163 lt_cv_prog_compiler__b=no 10164 save_LDFLAGS="$LDFLAGS" 10165 LDFLAGS="$LDFLAGS -b" 10166 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10167 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10168 # The linker can only warn and ignore the option if not recognized 10169 # So say no if there are warnings 10170 if test -s conftest.err; then 10171 # Append any errors to the config.log. 10172 cat conftest.err 1>&5 10173 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10174 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10175 if diff conftest.exp conftest.er2 >/dev/null; then 10176 lt_cv_prog_compiler__b=yes 10177 fi 10178 else 10179 lt_cv_prog_compiler__b=yes 10180 fi 10181 fi 10182 $RM -r conftest* 10183 LDFLAGS="$save_LDFLAGS" 10184 10185fi 10186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10187$as_echo "$lt_cv_prog_compiler__b" >&6; } 10188 10189if test x"$lt_cv_prog_compiler__b" = xyes; then 10190 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10191else 10192 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10193fi 10194 10195 ;; 10196 esac 10197 fi 10198 if test "$with_gnu_ld" = no; then 10199 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10200 hardcode_libdir_separator=: 10201 10202 case $host_cpu in 10203 hppa*64*|ia64*) 10204 hardcode_direct=no 10205 hardcode_shlibpath_var=no 10206 ;; 10207 *) 10208 hardcode_direct=yes 10209 hardcode_direct_absolute=yes 10210 export_dynamic_flag_spec='${wl}-E' 10211 10212 # hardcode_minus_L: Not really in the search PATH, 10213 # but as the default location of the library. 10214 hardcode_minus_L=yes 10215 ;; 10216 esac 10217 fi 10218 ;; 10219 10220 irix5* | irix6* | nonstopux*) 10221 if test "$GCC" = yes; then 10222 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' 10223 # Try to use the -exported_symbol ld option, if it does not 10224 # work, assume that -exports_file does not work either and 10225 # implicitly export all symbols. 10226 # This should be the same for all languages, so no per-tag cache variable. 10227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10228$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10229if ${lt_cv_irix_exported_symbol+:} false; then : 10230 $as_echo_n "(cached) " >&6 10231else 10232 save_LDFLAGS="$LDFLAGS" 10233 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10235/* end confdefs.h. */ 10236int foo (void) { return 0; } 10237_ACEOF 10238if ac_fn_c_try_link "$LINENO"; then : 10239 lt_cv_irix_exported_symbol=yes 10240else 10241 lt_cv_irix_exported_symbol=no 10242fi 10243rm -f core conftest.err conftest.$ac_objext \ 10244 conftest$ac_exeext conftest.$ac_ext 10245 LDFLAGS="$save_LDFLAGS" 10246fi 10247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10248$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10249 if test "$lt_cv_irix_exported_symbol" = yes; then 10250 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' 10251 fi 10252 else 10253 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' 10254 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' 10255 fi 10256 archive_cmds_need_lc='no' 10257 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10258 hardcode_libdir_separator=: 10259 inherit_rpath=yes 10260 link_all_deplibs=yes 10261 ;; 10262 10263 netbsd* | netbsdelf*-gnu) 10264 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10265 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10266 else 10267 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10268 fi 10269 hardcode_libdir_flag_spec='-R$libdir' 10270 hardcode_direct=yes 10271 hardcode_shlibpath_var=no 10272 ;; 10273 10274 newsos6) 10275 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10276 hardcode_direct=yes 10277 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10278 hardcode_libdir_separator=: 10279 hardcode_shlibpath_var=no 10280 ;; 10281 10282 *nto* | *qnx*) 10283 ;; 10284 10285 openbsd*) 10286 if test -f /usr/libexec/ld.so; then 10287 hardcode_direct=yes 10288 hardcode_shlibpath_var=no 10289 hardcode_direct_absolute=yes 10290 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10291 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10292 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10293 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10294 export_dynamic_flag_spec='${wl}-E' 10295 else 10296 case $host_os in 10297 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10298 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10299 hardcode_libdir_flag_spec='-R$libdir' 10300 ;; 10301 *) 10302 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10303 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10304 ;; 10305 esac 10306 fi 10307 else 10308 ld_shlibs=no 10309 fi 10310 ;; 10311 10312 os2*) 10313 hardcode_libdir_flag_spec='-L$libdir' 10314 hardcode_minus_L=yes 10315 allow_undefined_flag=unsupported 10316 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 10317 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10318 ;; 10319 10320 osf3*) 10321 if test "$GCC" = yes; then 10322 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10323 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' 10324 else 10325 allow_undefined_flag=' -expect_unresolved \*' 10326 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' 10327 fi 10328 archive_cmds_need_lc='no' 10329 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10330 hardcode_libdir_separator=: 10331 ;; 10332 10333 osf4* | osf5*) # as osf3* with the addition of -msym flag 10334 if test "$GCC" = yes; then 10335 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10336 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' 10337 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10338 else 10339 allow_undefined_flag=' -expect_unresolved \*' 10340 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' 10341 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~ 10342 $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' 10343 10344 # Both c and cxx compiler support -rpath directly 10345 hardcode_libdir_flag_spec='-rpath $libdir' 10346 fi 10347 archive_cmds_need_lc='no' 10348 hardcode_libdir_separator=: 10349 ;; 10350 10351 solaris*) 10352 no_undefined_flag=' -z defs' 10353 if test "$GCC" = yes; then 10354 wlarc='${wl}' 10355 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10356 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10357 $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' 10358 else 10359 case `$CC -V 2>&1` in 10360 *"Compilers 5.0"*) 10361 wlarc='' 10362 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10363 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10364 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10365 ;; 10366 *) 10367 wlarc='${wl}' 10368 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10369 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10370 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10371 ;; 10372 esac 10373 fi 10374 hardcode_libdir_flag_spec='-R$libdir' 10375 hardcode_shlibpath_var=no 10376 case $host_os in 10377 solaris2.[0-5] | solaris2.[0-5].*) ;; 10378 *) 10379 # The compiler driver will combine and reorder linker options, 10380 # but understands `-z linker_flag'. GCC discards it without `$wl', 10381 # but is careful enough not to reorder. 10382 # Supported since Solaris 2.6 (maybe 2.5.1?) 10383 if test "$GCC" = yes; then 10384 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10385 else 10386 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10387 fi 10388 ;; 10389 esac 10390 link_all_deplibs=yes 10391 ;; 10392 10393 sunos4*) 10394 if test "x$host_vendor" = xsequent; then 10395 # Use $CC to link under sequent, because it throws in some extra .o 10396 # files that make .init and .fini sections work. 10397 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10398 else 10399 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10400 fi 10401 hardcode_libdir_flag_spec='-L$libdir' 10402 hardcode_direct=yes 10403 hardcode_minus_L=yes 10404 hardcode_shlibpath_var=no 10405 ;; 10406 10407 sysv4) 10408 case $host_vendor in 10409 sni) 10410 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10411 hardcode_direct=yes # is this really true??? 10412 ;; 10413 siemens) 10414 ## LD is ld it makes a PLAMLIB 10415 ## CC just makes a GrossModule. 10416 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10417 reload_cmds='$CC -r -o $output$reload_objs' 10418 hardcode_direct=no 10419 ;; 10420 motorola) 10421 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10422 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10423 ;; 10424 esac 10425 runpath_var='LD_RUN_PATH' 10426 hardcode_shlibpath_var=no 10427 ;; 10428 10429 sysv4.3*) 10430 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10431 hardcode_shlibpath_var=no 10432 export_dynamic_flag_spec='-Bexport' 10433 ;; 10434 10435 sysv4*MP*) 10436 if test -d /usr/nec; then 10437 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10438 hardcode_shlibpath_var=no 10439 runpath_var=LD_RUN_PATH 10440 hardcode_runpath_var=yes 10441 ld_shlibs=yes 10442 fi 10443 ;; 10444 10445 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10446 no_undefined_flag='${wl}-z,text' 10447 archive_cmds_need_lc=no 10448 hardcode_shlibpath_var=no 10449 runpath_var='LD_RUN_PATH' 10450 10451 if test "$GCC" = yes; then 10452 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10453 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10454 else 10455 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10456 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10457 fi 10458 ;; 10459 10460 sysv5* | sco3.2v5* | sco5v6*) 10461 # Note: We can NOT use -z defs as we might desire, because we do not 10462 # link with -lc, and that would cause any symbols used from libc to 10463 # always be unresolved, which means just about no library would 10464 # ever link correctly. If we're not using GNU ld we use -z text 10465 # though, which does catch some bad symbols but isn't as heavy-handed 10466 # as -z defs. 10467 no_undefined_flag='${wl}-z,text' 10468 allow_undefined_flag='${wl}-z,nodefs' 10469 archive_cmds_need_lc=no 10470 hardcode_shlibpath_var=no 10471 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10472 hardcode_libdir_separator=':' 10473 link_all_deplibs=yes 10474 export_dynamic_flag_spec='${wl}-Bexport' 10475 runpath_var='LD_RUN_PATH' 10476 10477 if test "$GCC" = yes; then 10478 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10479 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10480 else 10481 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10482 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10483 fi 10484 ;; 10485 10486 uts4*) 10487 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10488 hardcode_libdir_flag_spec='-L$libdir' 10489 hardcode_shlibpath_var=no 10490 ;; 10491 10492 *) 10493 ld_shlibs=no 10494 ;; 10495 esac 10496 10497 if test x$host_vendor = xsni; then 10498 case $host in 10499 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10500 export_dynamic_flag_spec='${wl}-Blargedynsym' 10501 ;; 10502 esac 10503 fi 10504 fi 10505 10506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10507$as_echo "$ld_shlibs" >&6; } 10508test "$ld_shlibs" = no && can_build_shared=no 10509 10510with_gnu_ld=$with_gnu_ld 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526# 10527# Do we need to explicitly link libc? 10528# 10529case "x$archive_cmds_need_lc" in 10530x|xyes) 10531 # Assume -lc should be added 10532 archive_cmds_need_lc=yes 10533 10534 if test "$enable_shared" = yes && test "$GCC" = yes; then 10535 case $archive_cmds in 10536 *'~'*) 10537 # FIXME: we may have to deal with multi-command sequences. 10538 ;; 10539 '$CC '*) 10540 # Test whether the compiler implicitly links with -lc since on some 10541 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10542 # to ld, don't add -lc before -lgcc. 10543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10544$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10545if ${lt_cv_archive_cmds_need_lc+:} false; then : 10546 $as_echo_n "(cached) " >&6 10547else 10548 $RM conftest* 10549 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10550 10551 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10552 (eval $ac_compile) 2>&5 10553 ac_status=$? 10554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10555 test $ac_status = 0; } 2>conftest.err; then 10556 soname=conftest 10557 lib=conftest 10558 libobjs=conftest.$ac_objext 10559 deplibs= 10560 wl=$lt_prog_compiler_wl 10561 pic_flag=$lt_prog_compiler_pic 10562 compiler_flags=-v 10563 linker_flags=-v 10564 verstring= 10565 output_objdir=. 10566 libname=conftest 10567 lt_save_allow_undefined_flag=$allow_undefined_flag 10568 allow_undefined_flag= 10569 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10570 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10571 ac_status=$? 10572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10573 test $ac_status = 0; } 10574 then 10575 lt_cv_archive_cmds_need_lc=no 10576 else 10577 lt_cv_archive_cmds_need_lc=yes 10578 fi 10579 allow_undefined_flag=$lt_save_allow_undefined_flag 10580 else 10581 cat conftest.err 1>&5 10582 fi 10583 $RM conftest* 10584 10585fi 10586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10587$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10588 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10589 ;; 10590 esac 10591 fi 10592 ;; 10593esac 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10747$as_echo_n "checking dynamic linker characteristics... " >&6; } 10748 10749if test "$GCC" = yes; then 10750 case $host_os in 10751 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10752 *) lt_awk_arg="/^libraries:/" ;; 10753 esac 10754 case $host_os in 10755 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10756 *) lt_sed_strip_eq="s,=/,/,g" ;; 10757 esac 10758 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10759 case $lt_search_path_spec in 10760 *\;*) 10761 # if the path contains ";" then we assume it to be the separator 10762 # otherwise default to the standard path separator (i.e. ":") - it is 10763 # assumed that no part of a normal pathname contains ";" but that should 10764 # okay in the real world where ";" in dirpaths is itself problematic. 10765 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10766 ;; 10767 *) 10768 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10769 ;; 10770 esac 10771 # Ok, now we have the path, separated by spaces, we can step through it 10772 # and add multilib dir if necessary. 10773 lt_tmp_lt_search_path_spec= 10774 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10775 for lt_sys_path in $lt_search_path_spec; do 10776 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10777 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10778 else 10779 test -d "$lt_sys_path" && \ 10780 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10781 fi 10782 done 10783 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10784BEGIN {RS=" "; FS="/|\n";} { 10785 lt_foo=""; 10786 lt_count=0; 10787 for (lt_i = NF; lt_i > 0; lt_i--) { 10788 if ($lt_i != "" && $lt_i != ".") { 10789 if ($lt_i == "..") { 10790 lt_count++; 10791 } else { 10792 if (lt_count == 0) { 10793 lt_foo="/" $lt_i lt_foo; 10794 } else { 10795 lt_count--; 10796 } 10797 } 10798 } 10799 } 10800 if (lt_foo != "") { lt_freq[lt_foo]++; } 10801 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10802}'` 10803 # AWK program above erroneously prepends '/' to C:/dos/paths 10804 # for these hosts. 10805 case $host_os in 10806 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10807 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10808 esac 10809 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10810else 10811 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10812fi 10813library_names_spec= 10814libname_spec='lib$name' 10815soname_spec= 10816shrext_cmds=".so" 10817postinstall_cmds= 10818postuninstall_cmds= 10819finish_cmds= 10820finish_eval= 10821shlibpath_var= 10822shlibpath_overrides_runpath=unknown 10823version_type=none 10824dynamic_linker="$host_os ld.so" 10825sys_lib_dlsearch_path_spec="/lib /usr/lib" 10826need_lib_prefix=unknown 10827hardcode_into_libs=no 10828 10829# when you set need_version to no, make sure it does not cause -set_version 10830# flags to be left without arguments 10831need_version=unknown 10832 10833case $host_os in 10834aix3*) 10835 version_type=linux # correct to gnu/linux during the next big refactor 10836 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10837 shlibpath_var=LIBPATH 10838 10839 # AIX 3 has no versioning support, so we append a major version to the name. 10840 soname_spec='${libname}${release}${shared_ext}$major' 10841 ;; 10842 10843aix[4-9]*) 10844 version_type=linux # correct to gnu/linux during the next big refactor 10845 need_lib_prefix=no 10846 need_version=no 10847 hardcode_into_libs=yes 10848 if test "$host_cpu" = ia64; then 10849 # AIX 5 supports IA64 10850 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10851 shlibpath_var=LD_LIBRARY_PATH 10852 else 10853 # With GCC up to 2.95.x, collect2 would create an import file 10854 # for dependence libraries. The import file would start with 10855 # the line `#! .'. This would cause the generated library to 10856 # depend on `.', always an invalid library. This was fixed in 10857 # development snapshots of GCC prior to 3.0. 10858 case $host_os in 10859 aix4 | aix4.[01] | aix4.[01].*) 10860 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10861 echo ' yes ' 10862 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10863 : 10864 else 10865 can_build_shared=no 10866 fi 10867 ;; 10868 esac 10869 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10870 # soname into executable. Probably we can add versioning support to 10871 # collect2, so additional links can be useful in future. 10872 if test "$aix_use_runtimelinking" = yes; then 10873 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10874 # instead of lib<name>.a to let people know that these are not 10875 # typical AIX shared libraries. 10876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10877 else 10878 # We preserve .a as extension for shared libraries through AIX4.2 10879 # and later when we are not doing run time linking. 10880 library_names_spec='${libname}${release}.a $libname.a' 10881 soname_spec='${libname}${release}${shared_ext}$major' 10882 fi 10883 shlibpath_var=LIBPATH 10884 fi 10885 ;; 10886 10887amigaos*) 10888 case $host_cpu in 10889 powerpc) 10890 # Since July 2007 AmigaOS4 officially supports .so libraries. 10891 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10893 ;; 10894 m68k) 10895 library_names_spec='$libname.ixlibrary $libname.a' 10896 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10897 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10898 ;; 10899 esac 10900 ;; 10901 10902beos*) 10903 library_names_spec='${libname}${shared_ext}' 10904 dynamic_linker="$host_os ld.so" 10905 shlibpath_var=LIBRARY_PATH 10906 ;; 10907 10908bsdi[45]*) 10909 version_type=linux # correct to gnu/linux during the next big refactor 10910 need_version=no 10911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10912 soname_spec='${libname}${release}${shared_ext}$major' 10913 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10914 shlibpath_var=LD_LIBRARY_PATH 10915 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10916 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10917 # the default ld.so.conf also contains /usr/contrib/lib and 10918 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10919 # libtool to hard-code these into programs 10920 ;; 10921 10922cygwin* | mingw* | pw32* | cegcc*) 10923 version_type=windows 10924 shrext_cmds=".dll" 10925 need_version=no 10926 need_lib_prefix=no 10927 10928 case $GCC,$cc_basename in 10929 yes,*) 10930 # gcc 10931 library_names_spec='$libname.dll.a' 10932 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10933 postinstall_cmds='base_file=`basename \${file}`~ 10934 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10935 dldir=$destdir/`dirname \$dlpath`~ 10936 test -d \$dldir || mkdir -p \$dldir~ 10937 $install_prog $dir/$dlname \$dldir/$dlname~ 10938 chmod a+x \$dldir/$dlname~ 10939 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10940 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10941 fi' 10942 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10943 dlpath=$dir/\$dldll~ 10944 $RM \$dlpath' 10945 shlibpath_overrides_runpath=yes 10946 10947 case $host_os in 10948 cygwin*) 10949 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10950 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10951 10952 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10953 ;; 10954 mingw* | cegcc*) 10955 # MinGW DLLs use traditional 'lib' prefix 10956 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10957 ;; 10958 pw32*) 10959 # pw32 DLLs use 'pw' prefix rather than 'lib' 10960 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10961 ;; 10962 esac 10963 dynamic_linker='Win32 ld.exe' 10964 ;; 10965 10966 *,cl*) 10967 # Native MSVC 10968 libname_spec='$name' 10969 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10970 library_names_spec='${libname}.dll.lib' 10971 10972 case $build_os in 10973 mingw*) 10974 sys_lib_search_path_spec= 10975 lt_save_ifs=$IFS 10976 IFS=';' 10977 for lt_path in $LIB 10978 do 10979 IFS=$lt_save_ifs 10980 # Let DOS variable expansion print the short 8.3 style file name. 10981 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10982 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10983 done 10984 IFS=$lt_save_ifs 10985 # Convert to MSYS style. 10986 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10987 ;; 10988 cygwin*) 10989 # Convert to unix form, then to dos form, then back to unix form 10990 # but this time dos style (no spaces!) so that the unix form looks 10991 # like /cygdrive/c/PROGRA~1:/cygdr... 10992 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10993 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10994 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10995 ;; 10996 *) 10997 sys_lib_search_path_spec="$LIB" 10998 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10999 # It is most probably a Windows format PATH. 11000 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11001 else 11002 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11003 fi 11004 # FIXME: find the short name or the path components, as spaces are 11005 # common. (e.g. "Program Files" -> "PROGRA~1") 11006 ;; 11007 esac 11008 11009 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11010 postinstall_cmds='base_file=`basename \${file}`~ 11011 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11012 dldir=$destdir/`dirname \$dlpath`~ 11013 test -d \$dldir || mkdir -p \$dldir~ 11014 $install_prog $dir/$dlname \$dldir/$dlname' 11015 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11016 dlpath=$dir/\$dldll~ 11017 $RM \$dlpath' 11018 shlibpath_overrides_runpath=yes 11019 dynamic_linker='Win32 link.exe' 11020 ;; 11021 11022 *) 11023 # Assume MSVC wrapper 11024 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11025 dynamic_linker='Win32 ld.exe' 11026 ;; 11027 esac 11028 # FIXME: first we should search . and the directory the executable is in 11029 shlibpath_var=PATH 11030 ;; 11031 11032darwin* | rhapsody*) 11033 dynamic_linker="$host_os dyld" 11034 version_type=darwin 11035 need_lib_prefix=no 11036 need_version=no 11037 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11038 soname_spec='${libname}${release}${major}$shared_ext' 11039 shlibpath_overrides_runpath=yes 11040 shlibpath_var=DYLD_LIBRARY_PATH 11041 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11042 11043 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11044 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11045 ;; 11046 11047dgux*) 11048 version_type=linux # correct to gnu/linux during the next big refactor 11049 need_lib_prefix=no 11050 need_version=no 11051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11052 soname_spec='${libname}${release}${shared_ext}$major' 11053 shlibpath_var=LD_LIBRARY_PATH 11054 ;; 11055 11056freebsd* | dragonfly*) 11057 # DragonFly does not have aout. When/if they implement a new 11058 # versioning mechanism, adjust this. 11059 if test -x /usr/bin/objformat; then 11060 objformat=`/usr/bin/objformat` 11061 else 11062 case $host_os in 11063 freebsd[23].*) objformat=aout ;; 11064 *) objformat=elf ;; 11065 esac 11066 fi 11067 version_type=freebsd-$objformat 11068 case $version_type in 11069 freebsd-elf*) 11070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11071 need_version=no 11072 need_lib_prefix=no 11073 ;; 11074 freebsd-*) 11075 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11076 need_version=yes 11077 ;; 11078 esac 11079 shlibpath_var=LD_LIBRARY_PATH 11080 case $host_os in 11081 freebsd2.*) 11082 shlibpath_overrides_runpath=yes 11083 ;; 11084 freebsd3.[01]* | freebsdelf3.[01]*) 11085 shlibpath_overrides_runpath=yes 11086 hardcode_into_libs=yes 11087 ;; 11088 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11089 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11090 shlibpath_overrides_runpath=no 11091 hardcode_into_libs=yes 11092 ;; 11093 *) # from 4.6 on, and DragonFly 11094 shlibpath_overrides_runpath=yes 11095 hardcode_into_libs=yes 11096 ;; 11097 esac 11098 ;; 11099 11100haiku*) 11101 version_type=linux # correct to gnu/linux during the next big refactor 11102 need_lib_prefix=no 11103 need_version=no 11104 dynamic_linker="$host_os runtime_loader" 11105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11106 soname_spec='${libname}${release}${shared_ext}$major' 11107 shlibpath_var=LIBRARY_PATH 11108 shlibpath_overrides_runpath=yes 11109 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11110 hardcode_into_libs=yes 11111 ;; 11112 11113hpux9* | hpux10* | hpux11*) 11114 # Give a soname corresponding to the major version so that dld.sl refuses to 11115 # link against other versions. 11116 version_type=sunos 11117 need_lib_prefix=no 11118 need_version=no 11119 case $host_cpu in 11120 ia64*) 11121 shrext_cmds='.so' 11122 hardcode_into_libs=yes 11123 dynamic_linker="$host_os dld.so" 11124 shlibpath_var=LD_LIBRARY_PATH 11125 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11127 soname_spec='${libname}${release}${shared_ext}$major' 11128 if test "X$HPUX_IA64_MODE" = X32; then 11129 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11130 else 11131 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11132 fi 11133 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11134 ;; 11135 hppa*64*) 11136 shrext_cmds='.sl' 11137 hardcode_into_libs=yes 11138 dynamic_linker="$host_os dld.sl" 11139 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11140 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11142 soname_spec='${libname}${release}${shared_ext}$major' 11143 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11144 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11145 ;; 11146 *) 11147 shrext_cmds='.sl' 11148 dynamic_linker="$host_os dld.sl" 11149 shlibpath_var=SHLIB_PATH 11150 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11152 soname_spec='${libname}${release}${shared_ext}$major' 11153 ;; 11154 esac 11155 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11156 postinstall_cmds='chmod 555 $lib' 11157 # or fails outright, so override atomically: 11158 install_override_mode=555 11159 ;; 11160 11161interix[3-9]*) 11162 version_type=linux # correct to gnu/linux during the next big refactor 11163 need_lib_prefix=no 11164 need_version=no 11165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11166 soname_spec='${libname}${release}${shared_ext}$major' 11167 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11168 shlibpath_var=LD_LIBRARY_PATH 11169 shlibpath_overrides_runpath=no 11170 hardcode_into_libs=yes 11171 ;; 11172 11173irix5* | irix6* | nonstopux*) 11174 case $host_os in 11175 nonstopux*) version_type=nonstopux ;; 11176 *) 11177 if test "$lt_cv_prog_gnu_ld" = yes; then 11178 version_type=linux # correct to gnu/linux during the next big refactor 11179 else 11180 version_type=irix 11181 fi ;; 11182 esac 11183 need_lib_prefix=no 11184 need_version=no 11185 soname_spec='${libname}${release}${shared_ext}$major' 11186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11187 case $host_os in 11188 irix5* | nonstopux*) 11189 libsuff= shlibsuff= 11190 ;; 11191 *) 11192 case $LD in # libtool.m4 will add one of these switches to LD 11193 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11194 libsuff= shlibsuff= libmagic=32-bit;; 11195 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11196 libsuff=32 shlibsuff=N32 libmagic=N32;; 11197 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11198 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11199 *) libsuff= shlibsuff= libmagic=never-match;; 11200 esac 11201 ;; 11202 esac 11203 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11204 shlibpath_overrides_runpath=no 11205 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11206 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11207 hardcode_into_libs=yes 11208 ;; 11209 11210# No shared lib support for Linux oldld, aout, or coff. 11211linux*oldld* | linux*aout* | linux*coff*) 11212 dynamic_linker=no 11213 ;; 11214 11215# This must be glibc/ELF. 11216linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11217 version_type=linux # correct to gnu/linux during the next big refactor 11218 need_lib_prefix=no 11219 need_version=no 11220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11221 soname_spec='${libname}${release}${shared_ext}$major' 11222 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11223 shlibpath_var=LD_LIBRARY_PATH 11224 shlibpath_overrides_runpath=no 11225 11226 # Some binutils ld are patched to set DT_RUNPATH 11227 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11228 $as_echo_n "(cached) " >&6 11229else 11230 lt_cv_shlibpath_overrides_runpath=no 11231 save_LDFLAGS=$LDFLAGS 11232 save_libdir=$libdir 11233 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11234 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11236/* end confdefs.h. */ 11237 11238int 11239main () 11240{ 11241 11242 ; 11243 return 0; 11244} 11245_ACEOF 11246if ac_fn_c_try_link "$LINENO"; then : 11247 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11248 lt_cv_shlibpath_overrides_runpath=yes 11249fi 11250fi 11251rm -f core conftest.err conftest.$ac_objext \ 11252 conftest$ac_exeext conftest.$ac_ext 11253 LDFLAGS=$save_LDFLAGS 11254 libdir=$save_libdir 11255 11256fi 11257 11258 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11259 11260 # This implies no fast_install, which is unacceptable. 11261 # Some rework will be needed to allow for fast_install 11262 # before this can be enabled. 11263 hardcode_into_libs=yes 11264 11265 # Append ld.so.conf contents to the search path 11266 if test -f /etc/ld.so.conf; then 11267 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' ' '` 11268 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11269 fi 11270 11271 # We used to test for /lib/ld.so.1 and disable shared libraries on 11272 # powerpc, because MkLinux only supported shared libraries with the 11273 # GNU dynamic linker. Since this was broken with cross compilers, 11274 # most powerpc-linux boxes support dynamic linking these days and 11275 # people can always --disable-shared, the test was removed, and we 11276 # assume the GNU/Linux dynamic linker is in use. 11277 dynamic_linker='GNU/Linux ld.so' 11278 ;; 11279 11280netbsdelf*-gnu) 11281 version_type=linux 11282 need_lib_prefix=no 11283 need_version=no 11284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11285 soname_spec='${libname}${release}${shared_ext}$major' 11286 shlibpath_var=LD_LIBRARY_PATH 11287 shlibpath_overrides_runpath=no 11288 hardcode_into_libs=yes 11289 dynamic_linker='NetBSD ld.elf_so' 11290 ;; 11291 11292netbsd*) 11293 version_type=sunos 11294 need_lib_prefix=no 11295 need_version=no 11296 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11298 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11299 dynamic_linker='NetBSD (a.out) ld.so' 11300 else 11301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11302 soname_spec='${libname}${release}${shared_ext}$major' 11303 dynamic_linker='NetBSD ld.elf_so' 11304 fi 11305 shlibpath_var=LD_LIBRARY_PATH 11306 shlibpath_overrides_runpath=yes 11307 hardcode_into_libs=yes 11308 ;; 11309 11310newsos6) 11311 version_type=linux # correct to gnu/linux during the next big refactor 11312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11313 shlibpath_var=LD_LIBRARY_PATH 11314 shlibpath_overrides_runpath=yes 11315 ;; 11316 11317*nto* | *qnx*) 11318 version_type=qnx 11319 need_lib_prefix=no 11320 need_version=no 11321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11322 soname_spec='${libname}${release}${shared_ext}$major' 11323 shlibpath_var=LD_LIBRARY_PATH 11324 shlibpath_overrides_runpath=no 11325 hardcode_into_libs=yes 11326 dynamic_linker='ldqnx.so' 11327 ;; 11328 11329openbsd*) 11330 version_type=sunos 11331 sys_lib_dlsearch_path_spec="/usr/lib" 11332 need_lib_prefix=no 11333 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11334 case $host_os in 11335 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11336 *) need_version=no ;; 11337 esac 11338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11339 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11340 shlibpath_var=LD_LIBRARY_PATH 11341 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11342 case $host_os in 11343 openbsd2.[89] | openbsd2.[89].*) 11344 shlibpath_overrides_runpath=no 11345 ;; 11346 *) 11347 shlibpath_overrides_runpath=yes 11348 ;; 11349 esac 11350 else 11351 shlibpath_overrides_runpath=yes 11352 fi 11353 ;; 11354 11355os2*) 11356 libname_spec='$name' 11357 shrext_cmds=".dll" 11358 need_lib_prefix=no 11359 library_names_spec='$libname${shared_ext} $libname.a' 11360 dynamic_linker='OS/2 ld.exe' 11361 shlibpath_var=LIBPATH 11362 ;; 11363 11364osf3* | osf4* | osf5*) 11365 version_type=osf 11366 need_lib_prefix=no 11367 need_version=no 11368 soname_spec='${libname}${release}${shared_ext}$major' 11369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11370 shlibpath_var=LD_LIBRARY_PATH 11371 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11372 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11373 ;; 11374 11375rdos*) 11376 dynamic_linker=no 11377 ;; 11378 11379solaris*) 11380 version_type=linux # correct to gnu/linux during the next big refactor 11381 need_lib_prefix=no 11382 need_version=no 11383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11384 soname_spec='${libname}${release}${shared_ext}$major' 11385 shlibpath_var=LD_LIBRARY_PATH 11386 shlibpath_overrides_runpath=yes 11387 hardcode_into_libs=yes 11388 # ldd complains unless libraries are executable 11389 postinstall_cmds='chmod +x $lib' 11390 ;; 11391 11392sunos4*) 11393 version_type=sunos 11394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11395 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11396 shlibpath_var=LD_LIBRARY_PATH 11397 shlibpath_overrides_runpath=yes 11398 if test "$with_gnu_ld" = yes; then 11399 need_lib_prefix=no 11400 fi 11401 need_version=yes 11402 ;; 11403 11404sysv4 | sysv4.3*) 11405 version_type=linux # correct to gnu/linux during the next big refactor 11406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11407 soname_spec='${libname}${release}${shared_ext}$major' 11408 shlibpath_var=LD_LIBRARY_PATH 11409 case $host_vendor in 11410 sni) 11411 shlibpath_overrides_runpath=no 11412 need_lib_prefix=no 11413 runpath_var=LD_RUN_PATH 11414 ;; 11415 siemens) 11416 need_lib_prefix=no 11417 ;; 11418 motorola) 11419 need_lib_prefix=no 11420 need_version=no 11421 shlibpath_overrides_runpath=no 11422 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11423 ;; 11424 esac 11425 ;; 11426 11427sysv4*MP*) 11428 if test -d /usr/nec ;then 11429 version_type=linux # correct to gnu/linux during the next big refactor 11430 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11431 soname_spec='$libname${shared_ext}.$major' 11432 shlibpath_var=LD_LIBRARY_PATH 11433 fi 11434 ;; 11435 11436sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11437 version_type=freebsd-elf 11438 need_lib_prefix=no 11439 need_version=no 11440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11441 soname_spec='${libname}${release}${shared_ext}$major' 11442 shlibpath_var=LD_LIBRARY_PATH 11443 shlibpath_overrides_runpath=yes 11444 hardcode_into_libs=yes 11445 if test "$with_gnu_ld" = yes; then 11446 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11447 else 11448 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11449 case $host_os in 11450 sco3.2v5*) 11451 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11452 ;; 11453 esac 11454 fi 11455 sys_lib_dlsearch_path_spec='/usr/lib' 11456 ;; 11457 11458tpf*) 11459 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11460 version_type=linux # correct to gnu/linux during the next big refactor 11461 need_lib_prefix=no 11462 need_version=no 11463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11464 shlibpath_var=LD_LIBRARY_PATH 11465 shlibpath_overrides_runpath=no 11466 hardcode_into_libs=yes 11467 ;; 11468 11469uts4*) 11470 version_type=linux # correct to gnu/linux during the next big refactor 11471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11472 soname_spec='${libname}${release}${shared_ext}$major' 11473 shlibpath_var=LD_LIBRARY_PATH 11474 ;; 11475 11476*) 11477 dynamic_linker=no 11478 ;; 11479esac 11480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11481$as_echo "$dynamic_linker" >&6; } 11482test "$dynamic_linker" = no && can_build_shared=no 11483 11484variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11485if test "$GCC" = yes; then 11486 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11487fi 11488 11489if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11490 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11491fi 11492if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11493 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11494fi 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11588$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11589hardcode_action= 11590if test -n "$hardcode_libdir_flag_spec" || 11591 test -n "$runpath_var" || 11592 test "X$hardcode_automatic" = "Xyes" ; then 11593 11594 # We can hardcode non-existent directories. 11595 if test "$hardcode_direct" != no && 11596 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11597 # have to relink, otherwise we might link with an installed library 11598 # when we should be linking with a yet-to-be-installed one 11599 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11600 test "$hardcode_minus_L" != no; then 11601 # Linking always hardcodes the temporary library directory. 11602 hardcode_action=relink 11603 else 11604 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11605 hardcode_action=immediate 11606 fi 11607else 11608 # We cannot hardcode anything, or else we can only hardcode existing 11609 # directories. 11610 hardcode_action=unsupported 11611fi 11612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11613$as_echo "$hardcode_action" >&6; } 11614 11615if test "$hardcode_action" = relink || 11616 test "$inherit_rpath" = yes; then 11617 # Fast installation is not supported 11618 enable_fast_install=no 11619elif test "$shlibpath_overrides_runpath" = yes || 11620 test "$enable_shared" = no; then 11621 # Fast installation is not necessary 11622 enable_fast_install=needless 11623fi 11624 11625 11626 11627 11628 11629 11630 if test "x$enable_dlopen" != xyes; then 11631 enable_dlopen=unknown 11632 enable_dlopen_self=unknown 11633 enable_dlopen_self_static=unknown 11634else 11635 lt_cv_dlopen=no 11636 lt_cv_dlopen_libs= 11637 11638 case $host_os in 11639 beos*) 11640 lt_cv_dlopen="load_add_on" 11641 lt_cv_dlopen_libs= 11642 lt_cv_dlopen_self=yes 11643 ;; 11644 11645 mingw* | pw32* | cegcc*) 11646 lt_cv_dlopen="LoadLibrary" 11647 lt_cv_dlopen_libs= 11648 ;; 11649 11650 cygwin*) 11651 lt_cv_dlopen="dlopen" 11652 lt_cv_dlopen_libs= 11653 ;; 11654 11655 darwin*) 11656 # if libdl is installed we need to link against it 11657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11658$as_echo_n "checking for dlopen in -ldl... " >&6; } 11659if ${ac_cv_lib_dl_dlopen+:} false; then : 11660 $as_echo_n "(cached) " >&6 11661else 11662 ac_check_lib_save_LIBS=$LIBS 11663LIBS="-ldl $LIBS" 11664cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11665/* end confdefs.h. */ 11666 11667/* Override any GCC internal prototype to avoid an error. 11668 Use char because int might match the return type of a GCC 11669 builtin and then its argument prototype would still apply. */ 11670#ifdef __cplusplus 11671extern "C" 11672#endif 11673char dlopen (); 11674int 11675main () 11676{ 11677return dlopen (); 11678 ; 11679 return 0; 11680} 11681_ACEOF 11682if ac_fn_c_try_link "$LINENO"; then : 11683 ac_cv_lib_dl_dlopen=yes 11684else 11685 ac_cv_lib_dl_dlopen=no 11686fi 11687rm -f core conftest.err conftest.$ac_objext \ 11688 conftest$ac_exeext conftest.$ac_ext 11689LIBS=$ac_check_lib_save_LIBS 11690fi 11691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11692$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11693if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11694 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11695else 11696 11697 lt_cv_dlopen="dyld" 11698 lt_cv_dlopen_libs= 11699 lt_cv_dlopen_self=yes 11700 11701fi 11702 11703 ;; 11704 11705 *) 11706 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11707if test "x$ac_cv_func_shl_load" = xyes; then : 11708 lt_cv_dlopen="shl_load" 11709else 11710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11711$as_echo_n "checking for shl_load in -ldld... " >&6; } 11712if ${ac_cv_lib_dld_shl_load+:} false; then : 11713 $as_echo_n "(cached) " >&6 11714else 11715 ac_check_lib_save_LIBS=$LIBS 11716LIBS="-ldld $LIBS" 11717cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11718/* end confdefs.h. */ 11719 11720/* Override any GCC internal prototype to avoid an error. 11721 Use char because int might match the return type of a GCC 11722 builtin and then its argument prototype would still apply. */ 11723#ifdef __cplusplus 11724extern "C" 11725#endif 11726char shl_load (); 11727int 11728main () 11729{ 11730return shl_load (); 11731 ; 11732 return 0; 11733} 11734_ACEOF 11735if ac_fn_c_try_link "$LINENO"; then : 11736 ac_cv_lib_dld_shl_load=yes 11737else 11738 ac_cv_lib_dld_shl_load=no 11739fi 11740rm -f core conftest.err conftest.$ac_objext \ 11741 conftest$ac_exeext conftest.$ac_ext 11742LIBS=$ac_check_lib_save_LIBS 11743fi 11744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11745$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11746if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11747 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11748else 11749 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11750if test "x$ac_cv_func_dlopen" = xyes; then : 11751 lt_cv_dlopen="dlopen" 11752else 11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11754$as_echo_n "checking for dlopen in -ldl... " >&6; } 11755if ${ac_cv_lib_dl_dlopen+:} false; then : 11756 $as_echo_n "(cached) " >&6 11757else 11758 ac_check_lib_save_LIBS=$LIBS 11759LIBS="-ldl $LIBS" 11760cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11761/* end confdefs.h. */ 11762 11763/* Override any GCC internal prototype to avoid an error. 11764 Use char because int might match the return type of a GCC 11765 builtin and then its argument prototype would still apply. */ 11766#ifdef __cplusplus 11767extern "C" 11768#endif 11769char dlopen (); 11770int 11771main () 11772{ 11773return dlopen (); 11774 ; 11775 return 0; 11776} 11777_ACEOF 11778if ac_fn_c_try_link "$LINENO"; then : 11779 ac_cv_lib_dl_dlopen=yes 11780else 11781 ac_cv_lib_dl_dlopen=no 11782fi 11783rm -f core conftest.err conftest.$ac_objext \ 11784 conftest$ac_exeext conftest.$ac_ext 11785LIBS=$ac_check_lib_save_LIBS 11786fi 11787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11788$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11789if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11790 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11791else 11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11793$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11794if ${ac_cv_lib_svld_dlopen+:} false; then : 11795 $as_echo_n "(cached) " >&6 11796else 11797 ac_check_lib_save_LIBS=$LIBS 11798LIBS="-lsvld $LIBS" 11799cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11800/* end confdefs.h. */ 11801 11802/* Override any GCC internal prototype to avoid an error. 11803 Use char because int might match the return type of a GCC 11804 builtin and then its argument prototype would still apply. */ 11805#ifdef __cplusplus 11806extern "C" 11807#endif 11808char dlopen (); 11809int 11810main () 11811{ 11812return dlopen (); 11813 ; 11814 return 0; 11815} 11816_ACEOF 11817if ac_fn_c_try_link "$LINENO"; then : 11818 ac_cv_lib_svld_dlopen=yes 11819else 11820 ac_cv_lib_svld_dlopen=no 11821fi 11822rm -f core conftest.err conftest.$ac_objext \ 11823 conftest$ac_exeext conftest.$ac_ext 11824LIBS=$ac_check_lib_save_LIBS 11825fi 11826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11827$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11828if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11829 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11830else 11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11832$as_echo_n "checking for dld_link in -ldld... " >&6; } 11833if ${ac_cv_lib_dld_dld_link+:} false; then : 11834 $as_echo_n "(cached) " >&6 11835else 11836 ac_check_lib_save_LIBS=$LIBS 11837LIBS="-ldld $LIBS" 11838cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11839/* end confdefs.h. */ 11840 11841/* Override any GCC internal prototype to avoid an error. 11842 Use char because int might match the return type of a GCC 11843 builtin and then its argument prototype would still apply. */ 11844#ifdef __cplusplus 11845extern "C" 11846#endif 11847char dld_link (); 11848int 11849main () 11850{ 11851return dld_link (); 11852 ; 11853 return 0; 11854} 11855_ACEOF 11856if ac_fn_c_try_link "$LINENO"; then : 11857 ac_cv_lib_dld_dld_link=yes 11858else 11859 ac_cv_lib_dld_dld_link=no 11860fi 11861rm -f core conftest.err conftest.$ac_objext \ 11862 conftest$ac_exeext conftest.$ac_ext 11863LIBS=$ac_check_lib_save_LIBS 11864fi 11865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11866$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11867if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11868 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11869fi 11870 11871 11872fi 11873 11874 11875fi 11876 11877 11878fi 11879 11880 11881fi 11882 11883 11884fi 11885 11886 ;; 11887 esac 11888 11889 if test "x$lt_cv_dlopen" != xno; then 11890 enable_dlopen=yes 11891 else 11892 enable_dlopen=no 11893 fi 11894 11895 case $lt_cv_dlopen in 11896 dlopen) 11897 save_CPPFLAGS="$CPPFLAGS" 11898 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11899 11900 save_LDFLAGS="$LDFLAGS" 11901 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11902 11903 save_LIBS="$LIBS" 11904 LIBS="$lt_cv_dlopen_libs $LIBS" 11905 11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11907$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11908if ${lt_cv_dlopen_self+:} false; then : 11909 $as_echo_n "(cached) " >&6 11910else 11911 if test "$cross_compiling" = yes; then : 11912 lt_cv_dlopen_self=cross 11913else 11914 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11915 lt_status=$lt_dlunknown 11916 cat > conftest.$ac_ext <<_LT_EOF 11917#line $LINENO "configure" 11918#include "confdefs.h" 11919 11920#if HAVE_DLFCN_H 11921#include <dlfcn.h> 11922#endif 11923 11924#include <stdio.h> 11925 11926#ifdef RTLD_GLOBAL 11927# define LT_DLGLOBAL RTLD_GLOBAL 11928#else 11929# ifdef DL_GLOBAL 11930# define LT_DLGLOBAL DL_GLOBAL 11931# else 11932# define LT_DLGLOBAL 0 11933# endif 11934#endif 11935 11936/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11937 find out it does not work in some platform. */ 11938#ifndef LT_DLLAZY_OR_NOW 11939# ifdef RTLD_LAZY 11940# define LT_DLLAZY_OR_NOW RTLD_LAZY 11941# else 11942# ifdef DL_LAZY 11943# define LT_DLLAZY_OR_NOW DL_LAZY 11944# else 11945# ifdef RTLD_NOW 11946# define LT_DLLAZY_OR_NOW RTLD_NOW 11947# else 11948# ifdef DL_NOW 11949# define LT_DLLAZY_OR_NOW DL_NOW 11950# else 11951# define LT_DLLAZY_OR_NOW 0 11952# endif 11953# endif 11954# endif 11955# endif 11956#endif 11957 11958/* When -fvisbility=hidden is used, assume the code has been annotated 11959 correspondingly for the symbols needed. */ 11960#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11961int fnord () __attribute__((visibility("default"))); 11962#endif 11963 11964int fnord () { return 42; } 11965int main () 11966{ 11967 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11968 int status = $lt_dlunknown; 11969 11970 if (self) 11971 { 11972 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11973 else 11974 { 11975 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11976 else puts (dlerror ()); 11977 } 11978 /* dlclose (self); */ 11979 } 11980 else 11981 puts (dlerror ()); 11982 11983 return status; 11984} 11985_LT_EOF 11986 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11987 (eval $ac_link) 2>&5 11988 ac_status=$? 11989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11990 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11991 (./conftest; exit; ) >&5 2>/dev/null 11992 lt_status=$? 11993 case x$lt_status in 11994 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11995 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11996 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11997 esac 11998 else : 11999 # compilation failed 12000 lt_cv_dlopen_self=no 12001 fi 12002fi 12003rm -fr conftest* 12004 12005 12006fi 12007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12008$as_echo "$lt_cv_dlopen_self" >&6; } 12009 12010 if test "x$lt_cv_dlopen_self" = xyes; then 12011 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12013$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12014if ${lt_cv_dlopen_self_static+:} false; then : 12015 $as_echo_n "(cached) " >&6 12016else 12017 if test "$cross_compiling" = yes; then : 12018 lt_cv_dlopen_self_static=cross 12019else 12020 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12021 lt_status=$lt_dlunknown 12022 cat > conftest.$ac_ext <<_LT_EOF 12023#line $LINENO "configure" 12024#include "confdefs.h" 12025 12026#if HAVE_DLFCN_H 12027#include <dlfcn.h> 12028#endif 12029 12030#include <stdio.h> 12031 12032#ifdef RTLD_GLOBAL 12033# define LT_DLGLOBAL RTLD_GLOBAL 12034#else 12035# ifdef DL_GLOBAL 12036# define LT_DLGLOBAL DL_GLOBAL 12037# else 12038# define LT_DLGLOBAL 0 12039# endif 12040#endif 12041 12042/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12043 find out it does not work in some platform. */ 12044#ifndef LT_DLLAZY_OR_NOW 12045# ifdef RTLD_LAZY 12046# define LT_DLLAZY_OR_NOW RTLD_LAZY 12047# else 12048# ifdef DL_LAZY 12049# define LT_DLLAZY_OR_NOW DL_LAZY 12050# else 12051# ifdef RTLD_NOW 12052# define LT_DLLAZY_OR_NOW RTLD_NOW 12053# else 12054# ifdef DL_NOW 12055# define LT_DLLAZY_OR_NOW DL_NOW 12056# else 12057# define LT_DLLAZY_OR_NOW 0 12058# endif 12059# endif 12060# endif 12061# endif 12062#endif 12063 12064/* When -fvisbility=hidden is used, assume the code has been annotated 12065 correspondingly for the symbols needed. */ 12066#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12067int fnord () __attribute__((visibility("default"))); 12068#endif 12069 12070int fnord () { return 42; } 12071int main () 12072{ 12073 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12074 int status = $lt_dlunknown; 12075 12076 if (self) 12077 { 12078 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12079 else 12080 { 12081 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12082 else puts (dlerror ()); 12083 } 12084 /* dlclose (self); */ 12085 } 12086 else 12087 puts (dlerror ()); 12088 12089 return status; 12090} 12091_LT_EOF 12092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12093 (eval $ac_link) 2>&5 12094 ac_status=$? 12095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12096 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12097 (./conftest; exit; ) >&5 2>/dev/null 12098 lt_status=$? 12099 case x$lt_status in 12100 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12101 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12102 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12103 esac 12104 else : 12105 # compilation failed 12106 lt_cv_dlopen_self_static=no 12107 fi 12108fi 12109rm -fr conftest* 12110 12111 12112fi 12113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12114$as_echo "$lt_cv_dlopen_self_static" >&6; } 12115 fi 12116 12117 CPPFLAGS="$save_CPPFLAGS" 12118 LDFLAGS="$save_LDFLAGS" 12119 LIBS="$save_LIBS" 12120 ;; 12121 esac 12122 12123 case $lt_cv_dlopen_self in 12124 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12125 *) enable_dlopen_self=unknown ;; 12126 esac 12127 12128 case $lt_cv_dlopen_self_static in 12129 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12130 *) enable_dlopen_self_static=unknown ;; 12131 esac 12132fi 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150striplib= 12151old_striplib= 12152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12153$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12154if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12155 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12156 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12158$as_echo "yes" >&6; } 12159else 12160# FIXME - insert some real tests, host_os isn't really good enough 12161 case $host_os in 12162 darwin*) 12163 if test -n "$STRIP" ; then 12164 striplib="$STRIP -x" 12165 old_striplib="$STRIP -S" 12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12167$as_echo "yes" >&6; } 12168 else 12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12170$as_echo "no" >&6; } 12171 fi 12172 ;; 12173 *) 12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12175$as_echo "no" >&6; } 12176 ;; 12177 esac 12178fi 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 # Report which library types will actually be built 12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12193$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12195$as_echo "$can_build_shared" >&6; } 12196 12197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12198$as_echo_n "checking whether to build shared libraries... " >&6; } 12199 test "$can_build_shared" = "no" && enable_shared=no 12200 12201 # On AIX, shared libraries and static libraries use the same namespace, and 12202 # are all built from PIC. 12203 case $host_os in 12204 aix3*) 12205 test "$enable_shared" = yes && enable_static=no 12206 if test -n "$RANLIB"; then 12207 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12208 postinstall_cmds='$RANLIB $lib' 12209 fi 12210 ;; 12211 12212 aix[4-9]*) 12213 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12214 test "$enable_shared" = yes && enable_static=no 12215 fi 12216 ;; 12217 esac 12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12219$as_echo "$enable_shared" >&6; } 12220 12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12222$as_echo_n "checking whether to build static libraries... " >&6; } 12223 # Make sure either enable_shared or enable_static is yes. 12224 test "$enable_shared" = yes || enable_static=yes 12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12226$as_echo "$enable_static" >&6; } 12227 12228 12229 12230 12231fi 12232ac_ext=c 12233ac_cpp='$CPP $CPPFLAGS' 12234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12236ac_compiler_gnu=$ac_cv_c_compiler_gnu 12237 12238CC="$lt_save_CC" 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 ac_config_commands="$ac_config_commands libtool" 12255 12256 12257 12258 12259# Only expand once: 12260 12261 12262 12263 12264# Automatically update the libtool script if it becomes out-of-date. 12265 12266 12267# Checks for header files. 12268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12269$as_echo_n "checking for ANSI C header files... " >&6; } 12270if ${ac_cv_header_stdc+:} false; then : 12271 $as_echo_n "(cached) " >&6 12272else 12273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12274/* end confdefs.h. */ 12275#include <stdlib.h> 12276#include <stdarg.h> 12277#include <string.h> 12278#include <float.h> 12279 12280int 12281main () 12282{ 12283 12284 ; 12285 return 0; 12286} 12287_ACEOF 12288if ac_fn_c_try_compile "$LINENO"; then : 12289 ac_cv_header_stdc=yes 12290else 12291 ac_cv_header_stdc=no 12292fi 12293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12294 12295if test $ac_cv_header_stdc = yes; then 12296 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12298/* end confdefs.h. */ 12299#include <string.h> 12300 12301_ACEOF 12302if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12303 $EGREP "memchr" >/dev/null 2>&1; then : 12304 12305else 12306 ac_cv_header_stdc=no 12307fi 12308rm -f conftest* 12309 12310fi 12311 12312if test $ac_cv_header_stdc = yes; then 12313 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12315/* end confdefs.h. */ 12316#include <stdlib.h> 12317 12318_ACEOF 12319if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12320 $EGREP "free" >/dev/null 2>&1; then : 12321 12322else 12323 ac_cv_header_stdc=no 12324fi 12325rm -f conftest* 12326 12327fi 12328 12329if test $ac_cv_header_stdc = yes; then 12330 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12331 if test "$cross_compiling" = yes; then : 12332 : 12333else 12334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12335/* end confdefs.h. */ 12336#include <ctype.h> 12337#include <stdlib.h> 12338#if ((' ' & 0x0FF) == 0x020) 12339# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12340# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12341#else 12342# define ISLOWER(c) \ 12343 (('a' <= (c) && (c) <= 'i') \ 12344 || ('j' <= (c) && (c) <= 'r') \ 12345 || ('s' <= (c) && (c) <= 'z')) 12346# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12347#endif 12348 12349#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12350int 12351main () 12352{ 12353 int i; 12354 for (i = 0; i < 256; i++) 12355 if (XOR (islower (i), ISLOWER (i)) 12356 || toupper (i) != TOUPPER (i)) 12357 return 2; 12358 return 0; 12359} 12360_ACEOF 12361if ac_fn_c_try_run "$LINENO"; then : 12362 12363else 12364 ac_cv_header_stdc=no 12365fi 12366rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12367 conftest.$ac_objext conftest.beam conftest.$ac_ext 12368fi 12369 12370fi 12371fi 12372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 12373$as_echo "$ac_cv_header_stdc" >&6; } 12374if test $ac_cv_header_stdc = yes; then 12375 12376$as_echo "#define STDC_HEADERS 1" >>confdefs.h 12377 12378fi 12379 12380for ac_header in errno.h fcntl.h stdlib.h unistd.h termios.h string.h sys/time.h sys/types.h stdarg.h arpa/inet.h 12381do : 12382 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12383ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12384if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12385 cat >>confdefs.h <<_ACEOF 12386#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12387_ACEOF 12388 12389else 12390 as_fn_error $? "some header files not found" "$LINENO" 5 12391fi 12392 12393done 12394 12395 12396# Checks for typedefs, structures, and compiler characteristics. 12397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 12398$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 12399if ${ac_cv_c_const+:} false; then : 12400 $as_echo_n "(cached) " >&6 12401else 12402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12403/* end confdefs.h. */ 12404 12405int 12406main () 12407{ 12408 12409#ifndef __cplusplus 12410 /* Ultrix mips cc rejects this sort of thing. */ 12411 typedef int charset[2]; 12412 const charset cs = { 0, 0 }; 12413 /* SunOS 4.1.1 cc rejects this. */ 12414 char const *const *pcpcc; 12415 char **ppc; 12416 /* NEC SVR4.0.2 mips cc rejects this. */ 12417 struct point {int x, y;}; 12418 static struct point const zero = {0,0}; 12419 /* AIX XL C 1.02.0.0 rejects this. 12420 It does not let you subtract one const X* pointer from another in 12421 an arm of an if-expression whose if-part is not a constant 12422 expression */ 12423 const char *g = "string"; 12424 pcpcc = &g + (g ? g-g : 0); 12425 /* HPUX 7.0 cc rejects these. */ 12426 ++pcpcc; 12427 ppc = (char**) pcpcc; 12428 pcpcc = (char const *const *) ppc; 12429 { /* SCO 3.2v4 cc rejects this sort of thing. */ 12430 char tx; 12431 char *t = &tx; 12432 char const *s = 0 ? (char *) 0 : (char const *) 0; 12433 12434 *t++ = 0; 12435 if (s) return 0; 12436 } 12437 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 12438 int x[] = {25, 17}; 12439 const int *foo = &x[0]; 12440 ++foo; 12441 } 12442 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 12443 typedef const int *iptr; 12444 iptr p = 0; 12445 ++p; 12446 } 12447 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 12448 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 12449 struct s { int j; const int *ap[3]; } bx; 12450 struct s *b = &bx; b->j = 5; 12451 } 12452 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 12453 const int foo = 10; 12454 if (!foo) return 0; 12455 } 12456 return !cs[0] && !zero.x; 12457#endif 12458 12459 ; 12460 return 0; 12461} 12462_ACEOF 12463if ac_fn_c_try_compile "$LINENO"; then : 12464 ac_cv_c_const=yes 12465else 12466 ac_cv_c_const=no 12467fi 12468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12469fi 12470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 12471$as_echo "$ac_cv_c_const" >&6; } 12472if test $ac_cv_c_const = no; then 12473 12474$as_echo "#define const /**/" >>confdefs.h 12475 12476fi 12477 12478ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 12479if test "x$ac_cv_type_size_t" = xyes; then : 12480 12481else 12482 12483cat >>confdefs.h <<_ACEOF 12484#define size_t unsigned int 12485_ACEOF 12486 12487fi 12488 12489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 12490$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 12491if ${ac_cv_header_time+:} false; then : 12492 $as_echo_n "(cached) " >&6 12493else 12494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12495/* end confdefs.h. */ 12496#include <sys/types.h> 12497#include <sys/time.h> 12498#include <time.h> 12499 12500int 12501main () 12502{ 12503if ((struct tm *) 0) 12504return 0; 12505 ; 12506 return 0; 12507} 12508_ACEOF 12509if ac_fn_c_try_compile "$LINENO"; then : 12510 ac_cv_header_time=yes 12511else 12512 ac_cv_header_time=no 12513fi 12514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12515fi 12516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 12517$as_echo "$ac_cv_header_time" >&6; } 12518if test $ac_cv_header_time = yes; then 12519 12520$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 12521 12522fi 12523 12524 12525# Checks for library functions. 12526for ac_func in select strerror strncpy memcpy strlcpy strlcat 12527do : 12528 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12529ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12530if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12531 cat >>confdefs.h <<_ACEOF 12532#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12533_ACEOF 12534 12535fi 12536done 12537 12538 12539# Select OS specific versions of source files. 12540 12541 12542BUNDLE_HOST=`uname | sed -e s,/,_,` 12543DYN_LIB_EXT="so" 12544case "$BUNDLE_HOST" in 12545Darwin) 12546 BUNDLE_HOST=MacOS 12547 DYN_LIB_EXT="dylib" 12548 ;; 12549SunOS) 12550 BUNDLE_HOST=Solaris 12551 ;; 12552 esac 12553 12554# --disable-libusb 12555# Check whether --enable-libusb was given. 12556if test "${enable_libusb+set}" = set; then : 12557 enableval=$enable_libusb; use_libusb="${enableval}" 12558else 12559 use_libusb=yes 12560fi 12561 12562 12563# check if libusb is used 12564LIBUSB_NEEDED_VERSION="1.0.8" 12565if test "x$use_libusb" != xno ; then 12566 if test -n "$PKG_CONFIG" && \ 12567 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5 12568 ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5 12569 ac_status=$? 12570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12571 test $ac_status = 0; }; then 12572 12573 12574pkg_failed=no 12575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5 12576$as_echo_n "checking for LIBUSB... " >&6; } 12577 12578if test -n "$LIBUSB_CFLAGS"; then 12579 pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS" 12580 elif test -n "$PKG_CONFIG"; then 12581 if test -n "$PKG_CONFIG" && \ 12582 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= \$LIBUSB_NEEDED_VERSION\""; } >&5 12583 ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= $LIBUSB_NEEDED_VERSION") 2>&5 12584 ac_status=$? 12585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12586 test $ac_status = 0; }; then 12587 pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0 >= $LIBUSB_NEEDED_VERSION" 2>/dev/null` 12588 test "x$?" != "x0" && pkg_failed=yes 12589else 12590 pkg_failed=yes 12591fi 12592 else 12593 pkg_failed=untried 12594fi 12595if test -n "$LIBUSB_LIBS"; then 12596 pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS" 12597 elif test -n "$PKG_CONFIG"; then 12598 if test -n "$PKG_CONFIG" && \ 12599 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= \$LIBUSB_NEEDED_VERSION\""; } >&5 12600 ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= $LIBUSB_NEEDED_VERSION") 2>&5 12601 ac_status=$? 12602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12603 test $ac_status = 0; }; then 12604 pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0 >= $LIBUSB_NEEDED_VERSION" 2>/dev/null` 12605 test "x$?" != "x0" && pkg_failed=yes 12606else 12607 pkg_failed=yes 12608fi 12609 else 12610 pkg_failed=untried 12611fi 12612 12613 12614 12615if test $pkg_failed = yes; then 12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12617$as_echo "no" >&6; } 12618 12619if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12620 _pkg_short_errors_supported=yes 12621else 12622 _pkg_short_errors_supported=no 12623fi 12624 if test $_pkg_short_errors_supported = yes; then 12625 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0 >= $LIBUSB_NEEDED_VERSION" 2>&1` 12626 else 12627 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0 >= $LIBUSB_NEEDED_VERSION" 2>&1` 12628 fi 12629 # Put the nasty error message in config.log where it belongs 12630 echo "$LIBUSB_PKG_ERRORS" >&5 12631 12632 12633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: install libusb $LIBUSB_NEEDED_VERSION or later" >&5 12634$as_echo "$as_me: WARNING: install libusb $LIBUSB_NEEDED_VERSION or later" >&2;} 12635 12636pkg_failed=no 12637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5 12638$as_echo_n "checking for LIBUSB... " >&6; } 12639 12640if test -n "$LIBUSB_CFLAGS"; then 12641 pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS" 12642 elif test -n "$PKG_CONFIG"; then 12643 if test -n "$PKG_CONFIG" && \ 12644 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5 12645 ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5 12646 ac_status=$? 12647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12648 test $ac_status = 0; }; then 12649 pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null` 12650 test "x$?" != "x0" && pkg_failed=yes 12651else 12652 pkg_failed=yes 12653fi 12654 else 12655 pkg_failed=untried 12656fi 12657if test -n "$LIBUSB_LIBS"; then 12658 pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS" 12659 elif test -n "$PKG_CONFIG"; then 12660 if test -n "$PKG_CONFIG" && \ 12661 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5 12662 ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5 12663 ac_status=$? 12664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12665 test $ac_status = 0; }; then 12666 pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null` 12667 test "x$?" != "x0" && pkg_failed=yes 12668else 12669 pkg_failed=yes 12670fi 12671 else 12672 pkg_failed=untried 12673fi 12674 12675 12676 12677if test $pkg_failed = yes; then 12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12679$as_echo "no" >&6; } 12680 12681if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12682 _pkg_short_errors_supported=yes 12683else 12684 _pkg_short_errors_supported=no 12685fi 12686 if test $_pkg_short_errors_supported = yes; then 12687 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1` 12688 else 12689 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1` 12690 fi 12691 # Put the nasty error message in config.log where it belongs 12692 echo "$LIBUSB_PKG_ERRORS" >&5 12693 12694 as_fn_error $? "Package requirements (libusb-1.0) were not met: 12695 12696$LIBUSB_PKG_ERRORS 12697 12698Consider adjusting the PKG_CONFIG_PATH environment variable if you 12699installed software in a non-standard prefix. 12700 12701Alternatively, you may set the environment variables LIBUSB_CFLAGS 12702and LIBUSB_LIBS to avoid the need to call pkg-config. 12703See the pkg-config man page for more details." "$LINENO" 5 12704elif test $pkg_failed = untried; then 12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12706$as_echo "no" >&6; } 12707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12708$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12709as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 12710is in your PATH or set the PKG_CONFIG environment variable to the full 12711path to pkg-config. 12712 12713Alternatively, you may set the environment variables LIBUSB_CFLAGS 12714and LIBUSB_LIBS to avoid the need to call pkg-config. 12715See the pkg-config man page for more details. 12716 12717To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12718See \`config.log' for more details" "$LINENO" 5; } 12719else 12720 LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS 12721 LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS 12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12723$as_echo "yes" >&6; } 12724 12725fi 12726 12727elif test $pkg_failed = untried; then 12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12729$as_echo "no" >&6; } 12730 12731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: install libusb $LIBUSB_NEEDED_VERSION or later" >&5 12732$as_echo "$as_me: WARNING: install libusb $LIBUSB_NEEDED_VERSION or later" >&2;} 12733 12734pkg_failed=no 12735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5 12736$as_echo_n "checking for LIBUSB... " >&6; } 12737 12738if test -n "$LIBUSB_CFLAGS"; then 12739 pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS" 12740 elif test -n "$PKG_CONFIG"; then 12741 if test -n "$PKG_CONFIG" && \ 12742 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5 12743 ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5 12744 ac_status=$? 12745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12746 test $ac_status = 0; }; then 12747 pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null` 12748 test "x$?" != "x0" && pkg_failed=yes 12749else 12750 pkg_failed=yes 12751fi 12752 else 12753 pkg_failed=untried 12754fi 12755if test -n "$LIBUSB_LIBS"; then 12756 pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS" 12757 elif test -n "$PKG_CONFIG"; then 12758 if test -n "$PKG_CONFIG" && \ 12759 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5 12760 ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5 12761 ac_status=$? 12762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12763 test $ac_status = 0; }; then 12764 pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null` 12765 test "x$?" != "x0" && pkg_failed=yes 12766else 12767 pkg_failed=yes 12768fi 12769 else 12770 pkg_failed=untried 12771fi 12772 12773 12774 12775if test $pkg_failed = yes; then 12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12777$as_echo "no" >&6; } 12778 12779if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12780 _pkg_short_errors_supported=yes 12781else 12782 _pkg_short_errors_supported=no 12783fi 12784 if test $_pkg_short_errors_supported = yes; then 12785 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1` 12786 else 12787 LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1` 12788 fi 12789 # Put the nasty error message in config.log where it belongs 12790 echo "$LIBUSB_PKG_ERRORS" >&5 12791 12792 as_fn_error $? "Package requirements (libusb-1.0) were not met: 12793 12794$LIBUSB_PKG_ERRORS 12795 12796Consider adjusting the PKG_CONFIG_PATH environment variable if you 12797installed software in a non-standard prefix. 12798 12799Alternatively, you may set the environment variables LIBUSB_CFLAGS 12800and LIBUSB_LIBS to avoid the need to call pkg-config. 12801See the pkg-config man page for more details." "$LINENO" 5 12802elif test $pkg_failed = untried; then 12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12804$as_echo "no" >&6; } 12805 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12806$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12807as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 12808is in your PATH or set the PKG_CONFIG environment variable to the full 12809path to pkg-config. 12810 12811Alternatively, you may set the environment variables LIBUSB_CFLAGS 12812and LIBUSB_LIBS to avoid the need to call pkg-config. 12813See the pkg-config man page for more details. 12814 12815To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12816See \`config.log' for more details" "$LINENO" 5; } 12817else 12818 LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS 12819 LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS 12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12821$as_echo "yes" >&6; } 12822 12823fi 12824 12825else 12826 LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS 12827 LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS 12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12829$as_echo "yes" >&6; } 12830 12831fi 12832 12833fi 12834 12835 saved_CPPFLAGS="$CPPFLAGS" 12836 saved_LIBS="$LIBS" 12837 12838 CPPFLAGS="$CPPFLAGS $LIBUSB_CFLAGS" 12839 LIBS="$LDFLAGS $LIBUSB_LIBS" 12840 12841 for ac_header in libusb.h 12842do : 12843 ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default" 12844if test "x$ac_cv_header_libusb_h" = xyes; then : 12845 cat >>confdefs.h <<_ACEOF 12846#define HAVE_LIBUSB_H 1 12847_ACEOF 12848 12849else 12850 as_fn_error $? "libusb.h not found, install libusb or use ./configure LIBUSB_CFLAGS=..." "$LINENO" 5 12851fi 12852 12853done 12854 12855 12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb_init" >&5 12857$as_echo_n "checking for libusb_init... " >&6; } 12858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12859/* end confdefs.h. */ 12860 12861/* Override any GCC internal prototype to avoid an error. 12862 Use char because int might match the return type of a GCC 12863 builtin and then its argument prototype would still apply. */ 12864#ifdef __cplusplus 12865extern "C" 12866#endif 12867char libusb_init (); 12868int 12869main () 12870{ 12871return libusb_init (); 12872 ; 12873 return 0; 12874} 12875_ACEOF 12876if ac_fn_c_try_link "$LINENO"; then : 12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12878$as_echo "yes" >&6; } 12879else 12880 as_fn_error $? "libusb not found, use ./configure LIBUSB_LIBS=..." "$LINENO" 5 12881fi 12882rm -f core conftest.err conftest.$ac_objext \ 12883 conftest$ac_exeext conftest.$ac_ext 12884 12885 CPPFLAGS="$saved_CPPFLAGS" 12886 LIBS="$saved_LIBS" 12887 12888 use_libusb=yes 12889fi 12890 12891 12892 if test "${use_libusb}" != "no"; then 12893 WITH_LIBUSB_TRUE= 12894 WITH_LIBUSB_FALSE='#' 12895else 12896 WITH_LIBUSB_TRUE='#' 12897 WITH_LIBUSB_FALSE= 12898fi 12899 12900 12901# --enable-composite-as-multislot 12902use_composite_as_multislot=no 12903# Check whether --enable-composite-as-multislot was given. 12904if test "${enable_composite_as_multislot+set}" = set; then : 12905 enableval=$enable_composite_as_multislot; use_composite_as_multislot="${enableval}" 12906fi 12907 12908 12909if test "x$use_composite_as_multislot" = xyes; then 12910 12911$as_echo "#define USE_COMPOSITE_AS_MULTISLOT 1" >>confdefs.h 12912 12913fi 12914 12915# check if the compiler support -fvisibility=hidden (GCC >= 4) 12916saved_CFLAGS="$CFLAGS" 12917CFLAGS="$CFLAGS -fvisibility=hidden" 12918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fvisibility=hidden" >&5 12919$as_echo_n "checking for -fvisibility=hidden... " >&6; } 12920cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12921/* end confdefs.h. */ 12922char foo; 12923_ACEOF 12924if ac_fn_c_try_compile "$LINENO"; then : 12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12926$as_echo "yes" >&6; } 12927 SYMBOL_VISIBILITY="-fvisibility=hidden" 12928else 12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12930$as_echo "no" >&6; } 12931fi 12932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12933CFLAGS="$saved_CFLAGS" 12934 12935 12936# --disable-multi-thread 12937# Check whether --enable-multi-thread was given. 12938if test "${enable_multi_thread+set}" = set; then : 12939 enableval=$enable_multi_thread; multithread="${enableval}" 12940else 12941 multithread=yes 12942fi 12943 12944 12945if test "${multithread}" != no ; then 12946 12947 12948ac_ext=c 12949ac_cpp='$CPP $CPPFLAGS' 12950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12952ac_compiler_gnu=$ac_cv_c_compiler_gnu 12953 12954ax_pthread_ok=no 12955 12956# We used to check for pthread.h first, but this fails if pthread.h 12957# requires special compiler flags (e.g. on True64 or Sequent). 12958# It gets checked for in the link test anyway. 12959 12960# First of all, check if the user has set any of the PTHREAD_LIBS, 12961# etcetera environment variables, and if threads linking works using 12962# them: 12963if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 12964 save_CFLAGS="$CFLAGS" 12965 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 12966 save_LIBS="$LIBS" 12967 LIBS="$PTHREAD_LIBS $LIBS" 12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 12969$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 12970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12971/* end confdefs.h. */ 12972 12973/* Override any GCC internal prototype to avoid an error. 12974 Use char because int might match the return type of a GCC 12975 builtin and then its argument prototype would still apply. */ 12976#ifdef __cplusplus 12977extern "C" 12978#endif 12979char pthread_join (); 12980int 12981main () 12982{ 12983return pthread_join (); 12984 ; 12985 return 0; 12986} 12987_ACEOF 12988if ac_fn_c_try_link "$LINENO"; then : 12989 ax_pthread_ok=yes 12990fi 12991rm -f core conftest.err conftest.$ac_objext \ 12992 conftest$ac_exeext conftest.$ac_ext 12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 12994$as_echo "$ax_pthread_ok" >&6; } 12995 if test x"$ax_pthread_ok" = xno; then 12996 PTHREAD_LIBS="" 12997 PTHREAD_CFLAGS="" 12998 fi 12999 LIBS="$save_LIBS" 13000 CFLAGS="$save_CFLAGS" 13001fi 13002 13003# We must check for the threads library under a number of different 13004# names; the ordering is very important because some systems 13005# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 13006# libraries is broken (non-POSIX). 13007 13008# Create a list of thread flags to try. Items starting with a "-" are 13009# C compiler flags, and other items are library names, except for "none" 13010# which indicates that we try without any flags at all, and "pthread-config" 13011# which is a program returning the flags for the Pth emulation library. 13012 13013ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 13014 13015# The ordering *is* (sometimes) important. Some notes on the 13016# individual items follow: 13017 13018# pthreads: AIX (must check this before -lpthread) 13019# none: in case threads are in libc; should be tried before -Kthread and 13020# other compiler flags to prevent continual compiler warnings 13021# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 13022# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 13023# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 13024# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 13025# -pthreads: Solaris/gcc 13026# -mthreads: Mingw32/gcc, Lynx/gcc 13027# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 13028# doesn't hurt to check since this sometimes defines pthreads too; 13029# also defines -D_REENTRANT) 13030# ... -mt is also the pthreads flag for HP/aCC 13031# pthread: Linux, etcetera 13032# --thread-safe: KAI C++ 13033# pthread-config: use pthread-config program (for GNU Pth library) 13034 13035case ${host_os} in 13036 solaris*) 13037 13038 # On Solaris (at least, for some versions), libc contains stubbed 13039 # (non-functional) versions of the pthreads routines, so link-based 13040 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 13041 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 13042 # a function called by this macro, so we could check for that, but 13043 # who knows whether they'll stub that too in a future libc.) So, 13044 # we'll just look for -pthreads and -lpthread first: 13045 13046 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 13047 ;; 13048 13049 darwin*) 13050 ax_pthread_flags="-pthread $ax_pthread_flags" 13051 ;; 13052esac 13053 13054if test x"$ax_pthread_ok" = xno; then 13055for flag in $ax_pthread_flags; do 13056 13057 case $flag in 13058 none) 13059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 13060$as_echo_n "checking whether pthreads work without any flags... " >&6; } 13061 ;; 13062 13063 -*) 13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 13065$as_echo_n "checking whether pthreads work with $flag... " >&6; } 13066 PTHREAD_CFLAGS="$flag" 13067 ;; 13068 13069 pthread-config) 13070 # Extract the first word of "pthread-config", so it can be a program name with args. 13071set dummy pthread-config; ac_word=$2 13072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13073$as_echo_n "checking for $ac_word... " >&6; } 13074if ${ac_cv_prog_ax_pthread_config+:} false; then : 13075 $as_echo_n "(cached) " >&6 13076else 13077 if test -n "$ax_pthread_config"; then 13078 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 13079else 13080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13081for as_dir in $PATH 13082do 13083 IFS=$as_save_IFS 13084 test -z "$as_dir" && as_dir=. 13085 for ac_exec_ext in '' $ac_executable_extensions; do 13086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13087 ac_cv_prog_ax_pthread_config="yes" 13088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13089 break 2 13090 fi 13091done 13092 done 13093IFS=$as_save_IFS 13094 13095 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 13096fi 13097fi 13098ax_pthread_config=$ac_cv_prog_ax_pthread_config 13099if test -n "$ax_pthread_config"; then 13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 13101$as_echo "$ax_pthread_config" >&6; } 13102else 13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13104$as_echo "no" >&6; } 13105fi 13106 13107 13108 if test x"$ax_pthread_config" = xno; then continue; fi 13109 PTHREAD_CFLAGS="`pthread-config --cflags`" 13110 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 13111 ;; 13112 13113 *) 13114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 13115$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 13116 PTHREAD_LIBS="-l$flag" 13117 ;; 13118 esac 13119 13120 save_LIBS="$LIBS" 13121 save_CFLAGS="$CFLAGS" 13122 LIBS="$PTHREAD_LIBS $LIBS" 13123 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 13124 13125 # Check for various functions. We must include pthread.h, 13126 # since some functions may be macros. (On the Sequent, we 13127 # need a special flag -Kthread to make this header compile.) 13128 # We check for pthread_join because it is in -lpthread on IRIX 13129 # while pthread_create is in libc. We check for pthread_attr_init 13130 # due to DEC craziness with -lpthreads. We check for 13131 # pthread_cleanup_push because it is one of the few pthread 13132 # functions on Solaris that doesn't have a non-functional libc stub. 13133 # We try pthread_create on general principles. 13134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13135/* end confdefs.h. */ 13136#include <pthread.h> 13137 static void routine(void *a) { a = 0; } 13138 static void *start_routine(void *a) { return a; } 13139int 13140main () 13141{ 13142pthread_t th; pthread_attr_t attr; 13143 pthread_create(&th, 0, start_routine, 0); 13144 pthread_join(th, 0); 13145 pthread_attr_init(&attr); 13146 pthread_cleanup_push(routine, 0); 13147 pthread_cleanup_pop(0) /* ; */ 13148 ; 13149 return 0; 13150} 13151_ACEOF 13152if ac_fn_c_try_link "$LINENO"; then : 13153 ax_pthread_ok=yes 13154fi 13155rm -f core conftest.err conftest.$ac_objext \ 13156 conftest$ac_exeext conftest.$ac_ext 13157 13158 LIBS="$save_LIBS" 13159 CFLAGS="$save_CFLAGS" 13160 13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 13162$as_echo "$ax_pthread_ok" >&6; } 13163 if test "x$ax_pthread_ok" = xyes; then 13164 break; 13165 fi 13166 13167 PTHREAD_LIBS="" 13168 PTHREAD_CFLAGS="" 13169done 13170fi 13171 13172# Various other checks: 13173if test "x$ax_pthread_ok" = xyes; then 13174 save_LIBS="$LIBS" 13175 LIBS="$PTHREAD_LIBS $LIBS" 13176 save_CFLAGS="$CFLAGS" 13177 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 13178 13179 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 13181$as_echo_n "checking for joinable pthread attribute... " >&6; } 13182 attr_name=unknown 13183 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 13184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13185/* end confdefs.h. */ 13186#include <pthread.h> 13187int 13188main () 13189{ 13190int attr = $attr; return attr /* ; */ 13191 ; 13192 return 0; 13193} 13194_ACEOF 13195if ac_fn_c_try_link "$LINENO"; then : 13196 attr_name=$attr; break 13197fi 13198rm -f core conftest.err conftest.$ac_objext \ 13199 conftest$ac_exeext conftest.$ac_ext 13200 done 13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 13202$as_echo "$attr_name" >&6; } 13203 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 13204 13205cat >>confdefs.h <<_ACEOF 13206#define PTHREAD_CREATE_JOINABLE $attr_name 13207_ACEOF 13208 13209 fi 13210 13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 13212$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 13213 flag=no 13214 case ${host_os} in 13215 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 13216 osf* | hpux*) flag="-D_REENTRANT";; 13217 solaris*) 13218 if test "$GCC" = "yes"; then 13219 flag="-D_REENTRANT" 13220 else 13221 flag="-mt -D_REENTRANT" 13222 fi 13223 ;; 13224 esac 13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 13226$as_echo "${flag}" >&6; } 13227 if test "x$flag" != xno; then 13228 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 13229 fi 13230 13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 13232$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 13233if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 13234 $as_echo_n "(cached) " >&6 13235else 13236 13237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13238/* end confdefs.h. */ 13239 13240 #include <pthread.h> 13241int 13242main () 13243{ 13244int i = PTHREAD_PRIO_INHERIT; 13245 ; 13246 return 0; 13247} 13248_ACEOF 13249if ac_fn_c_try_link "$LINENO"; then : 13250 ax_cv_PTHREAD_PRIO_INHERIT=yes 13251else 13252 ax_cv_PTHREAD_PRIO_INHERIT=no 13253fi 13254rm -f core conftest.err conftest.$ac_objext \ 13255 conftest$ac_exeext conftest.$ac_ext 13256 13257fi 13258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 13259$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 13260 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : 13261 13262$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 13263 13264fi 13265 13266 LIBS="$save_LIBS" 13267 CFLAGS="$save_CFLAGS" 13268 13269 # More AIX lossage: must compile with xlc_r or cc_r 13270 if test x"$GCC" != xyes; then 13271 for ac_prog in xlc_r cc_r 13272do 13273 # Extract the first word of "$ac_prog", so it can be a program name with args. 13274set dummy $ac_prog; ac_word=$2 13275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13276$as_echo_n "checking for $ac_word... " >&6; } 13277if ${ac_cv_prog_PTHREAD_CC+:} false; then : 13278 $as_echo_n "(cached) " >&6 13279else 13280 if test -n "$PTHREAD_CC"; then 13281 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 13282else 13283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13284for as_dir in $PATH 13285do 13286 IFS=$as_save_IFS 13287 test -z "$as_dir" && as_dir=. 13288 for ac_exec_ext in '' $ac_executable_extensions; do 13289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13290 ac_cv_prog_PTHREAD_CC="$ac_prog" 13291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13292 break 2 13293 fi 13294done 13295 done 13296IFS=$as_save_IFS 13297 13298fi 13299fi 13300PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 13301if test -n "$PTHREAD_CC"; then 13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 13303$as_echo "$PTHREAD_CC" >&6; } 13304else 13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13306$as_echo "no" >&6; } 13307fi 13308 13309 13310 test -n "$PTHREAD_CC" && break 13311done 13312test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 13313 13314 else 13315 PTHREAD_CC=$CC 13316 fi 13317else 13318 PTHREAD_CC="$CC" 13319fi 13320 13321 13322 13323 13324 13325# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 13326if test x"$ax_pthread_ok" = xyes; then 13327 13328$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 13329 13330 13331 : 13332else 13333 ax_pthread_ok=no 13334 as_fn_error $? "POSIX thread support required" "$LINENO" 5 13335fi 13336ac_ext=c 13337ac_cpp='$CPP $CPPFLAGS' 13338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13340ac_compiler_gnu=$ac_cv_c_compiler_gnu 13341 13342 13343 13344 multithread=yes 13345fi 13346 13347# --enable-bundle=NAME 13348# Check whether --enable-bundle was given. 13349if test "${enable_bundle+set}" = set; then : 13350 enableval=$enable_bundle; bundle="${enableval}" 13351else 13352 bundle=false 13353fi 13354 13355if test "${bundle}" = false ; then 13356 bundle="ifd-ccid.bundle" 13357fi 13358 13359cat >>confdefs.h <<_ACEOF 13360#define BUNDLE "$bundle" 13361_ACEOF 13362 13363 13364# --enable-usbdropdir=DIR 13365# Check whether --enable-usbdropdir was given. 13366if test "${enable_usbdropdir+set}" = set; then : 13367 enableval=$enable_usbdropdir; usbdropdir="${enableval}" 13368else 13369 usbdropdir=false 13370fi 13371 13372if test "${usbdropdir}" = false ; then 13373 usbdropdir=`$PKG_CONFIG libpcsclite --variable=usbdropdir` 13374fi 13375 13376cat >>confdefs.h <<_ACEOF 13377#define PCSCLITE_HP_DROPDIR "$usbdropdir" 13378_ACEOF 13379 13380if test "${usbdropdir}" = "" ; then 13381 as_fn_error $? "use --enable-usbdropdir=DIR" "$LINENO" 5 13382fi 13383 13384# --enable-twinserial 13385# Check whether --enable-twinserial was given. 13386if test "${enable_twinserial+set}" = set; then : 13387 enableval=$enable_twinserial; twinserial="${enableval}" 13388else 13389 twinserial=no 13390fi 13391 13392 if test "${twinserial}" != "no"; then 13393 WITH_TWIN_SERIAL_TRUE= 13394 WITH_TWIN_SERIAL_FALSE='#' 13395else 13396 WITH_TWIN_SERIAL_TRUE='#' 13397 WITH_TWIN_SERIAL_FALSE= 13398fi 13399 13400 13401# --enable-ccidtwindir=DIR 13402# Check whether --enable-ccidtwindir was given. 13403if test "${enable_ccidtwindir+set}" = set; then : 13404 enableval=$enable_ccidtwindir; ccidtwindir="${enableval}" 13405else 13406 ccidtwindir=false 13407fi 13408 13409if test "${ccidtwindir}" = false ; then 13410 ccidtwindir=$usbdropdir/serial 13411fi 13412 13413# --enable-serialconfdir=DIR 13414# Check whether --enable-serialconfdir was given. 13415if test "${enable_serialconfdir+set}" = set; then : 13416 enableval=$enable_serialconfdir; serialconfdir="${enableval}" 13417else 13418 serialconfdir=false 13419fi 13420 13421if test "${serialconfdir}" = false ; then 13422 serialconfdir=`$PKG_CONFIG libpcsclite --variable=serialconfdir` 13423fi 13424 13425# --disable-pcsclite 13426# Check whether --enable-pcsclite was given. 13427if test "${enable_pcsclite+set}" = set; then : 13428 enableval=$enable_pcsclite; pcsclite="${enableval}" 13429else 13430 pcsclite=yes 13431fi 13432 13433 13434if test "${pcsclite}" != no ; then 13435 # check that pcsc-lite is installed 13436 OLD_LIBS="$LIBS" 13437 OLD_CFLAGS="$CFLAGS" 13438 LIBS="$LIBS $PCSC_LIBS" 13439 CFLAGS="$CFLAGS $PCSC_CFLAGS" 13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SCardEstablishContext" >&5 13441$as_echo_n "checking for SCardEstablishContext... " >&6; } 13442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13443/* end confdefs.h. */ 13444 13445/* Override any GCC internal prototype to avoid an error. 13446 Use char because int might match the return type of a GCC 13447 builtin and then its argument prototype would still apply. */ 13448#ifdef __cplusplus 13449extern "C" 13450#endif 13451char SCardEstablishContext (); 13452int 13453main () 13454{ 13455return SCardEstablishContext (); 13456 ; 13457 return 0; 13458} 13459_ACEOF 13460if ac_fn_c_try_link "$LINENO"; then : 13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13462$as_echo "yes" >&6; } 13463else 13464 as_fn_error $? "SCardEstablishContext() not found, install pcsc-lite 1.2.9-beta9 or later,or use PCSC_LIBS=... ./configure" "$LINENO" 5 13465fi 13466rm -f core conftest.err conftest.$ac_objext \ 13467 conftest$ac_exeext conftest.$ac_ext 13468 LIBS="$OLD_LIBS" 13469 CFLAGS="$OLD_CFLAGS" 13470 13471 pcsclite=yes 13472fi 13473 if test "${pcsclite}" != "yes"; then 13474 WITHOUT_PCSC_TRUE= 13475 WITHOUT_PCSC_FALSE='#' 13476else 13477 WITHOUT_PCSC_TRUE='#' 13478 WITHOUT_PCSC_FALSE= 13479fi 13480 13481 13482# --disable-class 13483# Check whether --enable-class was given. 13484if test "${enable_class+set}" = set; then : 13485 enableval=$enable_class; class="${enableval}" 13486else 13487 class=yes 13488fi 13489 13490if test "${class}" != yes ; then 13491 NOCLASS="--no-class" 13492fi 13493 13494 13495# --enable-embedded 13496# Check whether --enable-embedded was given. 13497if test "${enable_embedded+set}" = set; then : 13498 enableval=$enable_embedded; use_embedded="${enableval}" 13499fi 13500 13501 13502if test x$use_embedded = xyes; then 13503 13504$as_echo "#define NO_LOG 1" >>confdefs.h 13505 13506fi 13507 13508# Setup dist stuff 13509 13510 13511 13512 13513 13514 13515 EXP_VAR=bindir_exp 13516 FROM_VAR=$bindir 13517 13518 prefix_save=$prefix 13519 exec_prefix_save=$exec_prefix 13520 13521 if test "x$prefix" = "xNONE"; then 13522 prefix="$ac_default_prefix" 13523 fi 13524 if test "x$exec_prefix" = "xNONE"; then 13525 exec_prefix=$prefix 13526 fi 13527 13528 full_var="$FROM_VAR" 13529 while true; do 13530 new_full_var="`eval echo $full_var`" 13531 if test "x$new_full_var" = "x$full_var"; then break; fi 13532 full_var=$new_full_var 13533 done 13534 13535 full_var=$new_full_var 13536 bindir_exp="$full_var" 13537 13538 13539 prefix=$prefix_save 13540 exec_prefix=$exec_prefix_save 13541 13542 13543 EXP_VAR=sysconfdir_exp 13544 FROM_VAR=$sysconfdir 13545 13546 prefix_save=$prefix 13547 exec_prefix_save=$exec_prefix 13548 13549 if test "x$prefix" = "xNONE"; then 13550 prefix="$ac_default_prefix" 13551 fi 13552 if test "x$exec_prefix" = "xNONE"; then 13553 exec_prefix=$prefix 13554 fi 13555 13556 full_var="$FROM_VAR" 13557 while true; do 13558 new_full_var="`eval echo $full_var`" 13559 if test "x$new_full_var" = "x$full_var"; then break; fi 13560 full_var=$new_full_var 13561 done 13562 13563 full_var=$new_full_var 13564 sysconfdir_exp="$full_var" 13565 13566 13567 prefix=$prefix_save 13568 exec_prefix=$exec_prefix_save 13569 13570 13571cat << EOF 13572 13573libccid has been configured with following options: 13574 13575Version: ${PACKAGE_VERSION} 13576User binaries: $(eval eval eval echo "${bindir_exp}") 13577Configuration files: $(eval eval eval echo "${sysconfdir_exp}") 13578 13579 13580Host: ${host} 13581Compiler: ${CC} 13582Preprocessor flags: ${CPPFLAGS} 13583Compiler flags: ${CFLAGS} 13584Preprocessor flags: ${CPPFLAGS} 13585Linker flags: ${LDFLAGS} 13586Libraries: ${LIBS} 13587 13588PCSC_CFLAGS: ${PCSC_CFLAGS} 13589PCSC_LIBS: ${PCSC_LIBS} 13590PTHREAD_CFLAGS: ${PTHREAD_CFLAGS} 13591PTHREAD_LIBS: ${PTHREAD_LIBS} 13592BUNDLE_HOST: ${BUNDLE_HOST} 13593DYN_LIB_EXT: ${DYN_LIB_EXT} 13594LIBUSB_CFLAGS: ${LIBUSB_CFLAGS} 13595LIBUSB_LIBS: ${LIBUSB_LIBS} 13596SYMBOL_VISIBILITY: ${SYMBOL_VISIBILITY} 13597NOCLASS: ${NOCLASS} 13598 13599libusb support: ${use_libusb} 13600composite as multislot: ${use_composite_as_multislot} 13601multi threading: ${multithread} 13602bundle directory name: ${bundle} 13603USB drop directory: ${usbdropdir} 13604serial Twin support: ${twinserial} 13605serial twin install dir: ${ccidtwindir} 13606serial config directory: ${serialconfdir} 13607compiled for pcsc-lite: ${pcsclite} 13608class driver: ${class} 13609 13610EOF 13611 13612# Write Makefiles. 13613ac_config_files="$ac_config_files Makefile src/Makefile readers/Makefile contrib/Makefile contrib/Kobil_mIDentity_switch/Makefile contrib/RSA_SecurID/Makefile examples/Makefile" 13614 13615 13616cat >confcache <<\_ACEOF 13617# This file is a shell script that caches the results of configure 13618# tests run on this system so they can be shared between configure 13619# scripts and configure runs, see configure's option --config-cache. 13620# It is not useful on other systems. If it contains results you don't 13621# want to keep, you may remove or edit it. 13622# 13623# config.status only pays attention to the cache file if you give it 13624# the --recheck option to rerun configure. 13625# 13626# `ac_cv_env_foo' variables (set or unset) will be overridden when 13627# loading this file, other *unset* `ac_cv_foo' will be assigned the 13628# following values. 13629 13630_ACEOF 13631 13632# The following way of writing the cache mishandles newlines in values, 13633# but we know of no workaround that is simple, portable, and efficient. 13634# So, we kill variables containing newlines. 13635# Ultrix sh set writes to stderr and can't be redirected directly, 13636# and sets the high bit in the cache file unless we assign to the vars. 13637( 13638 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13639 eval ac_val=\$$ac_var 13640 case $ac_val in #( 13641 *${as_nl}*) 13642 case $ac_var in #( 13643 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13644$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13645 esac 13646 case $ac_var in #( 13647 _ | IFS | as_nl) ;; #( 13648 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13649 *) { eval $ac_var=; unset $ac_var;} ;; 13650 esac ;; 13651 esac 13652 done 13653 13654 (set) 2>&1 | 13655 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13656 *${as_nl}ac_space=\ *) 13657 # `set' does not quote correctly, so add quotes: double-quote 13658 # substitution turns \\\\ into \\, and sed turns \\ into \. 13659 sed -n \ 13660 "s/'/'\\\\''/g; 13661 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13662 ;; #( 13663 *) 13664 # `set' quotes correctly as required by POSIX, so do not add quotes. 13665 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13666 ;; 13667 esac | 13668 sort 13669) | 13670 sed ' 13671 /^ac_cv_env_/b end 13672 t clear 13673 :clear 13674 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13675 t end 13676 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13677 :end' >>confcache 13678if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13679 if test -w "$cache_file"; then 13680 if test "x$cache_file" != "x/dev/null"; then 13681 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13682$as_echo "$as_me: updating cache $cache_file" >&6;} 13683 if test ! -f "$cache_file" || test -h "$cache_file"; then 13684 cat confcache >"$cache_file" 13685 else 13686 case $cache_file in #( 13687 */* | ?:*) 13688 mv -f confcache "$cache_file"$$ && 13689 mv -f "$cache_file"$$ "$cache_file" ;; #( 13690 *) 13691 mv -f confcache "$cache_file" ;; 13692 esac 13693 fi 13694 fi 13695 else 13696 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13697$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13698 fi 13699fi 13700rm -f confcache 13701 13702test "x$prefix" = xNONE && prefix=$ac_default_prefix 13703# Let make expand exec_prefix. 13704test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13705 13706DEFS=-DHAVE_CONFIG_H 13707 13708ac_libobjs= 13709ac_ltlibobjs= 13710U= 13711for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13712 # 1. Remove the extension, and $U if already installed. 13713 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13714 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13715 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13716 # will be set to the directory where LIBOBJS objects are built. 13717 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13718 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13719done 13720LIBOBJS=$ac_libobjs 13721 13722LTLIBOBJS=$ac_ltlibobjs 13723 13724 13725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 13726$as_echo_n "checking that generated files are newer than configure... " >&6; } 13727 if test -n "$am_sleep_pid"; then 13728 # Hide warnings about reused PIDs. 13729 wait $am_sleep_pid 2>/dev/null 13730 fi 13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 13732$as_echo "done" >&6; } 13733 if test -n "$EXEEXT"; then 13734 am__EXEEXT_TRUE= 13735 am__EXEEXT_FALSE='#' 13736else 13737 am__EXEEXT_TRUE='#' 13738 am__EXEEXT_FALSE= 13739fi 13740 13741if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 13742 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 13743Usually this means the macro was only invoked conditionally." "$LINENO" 5 13744fi 13745if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13746 as_fn_error $? "conditional \"AMDEP\" was never defined. 13747Usually this means the macro was only invoked conditionally." "$LINENO" 5 13748fi 13749if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13750 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13751Usually this means the macro was only invoked conditionally." "$LINENO" 5 13752fi 13753if test -z "${WITH_LIBUSB_TRUE}" && test -z "${WITH_LIBUSB_FALSE}"; then 13754 as_fn_error $? "conditional \"WITH_LIBUSB\" was never defined. 13755Usually this means the macro was only invoked conditionally." "$LINENO" 5 13756fi 13757if test -z "${WITH_TWIN_SERIAL_TRUE}" && test -z "${WITH_TWIN_SERIAL_FALSE}"; then 13758 as_fn_error $? "conditional \"WITH_TWIN_SERIAL\" was never defined. 13759Usually this means the macro was only invoked conditionally." "$LINENO" 5 13760fi 13761if test -z "${WITHOUT_PCSC_TRUE}" && test -z "${WITHOUT_PCSC_FALSE}"; then 13762 as_fn_error $? "conditional \"WITHOUT_PCSC\" was never defined. 13763Usually this means the macro was only invoked conditionally." "$LINENO" 5 13764fi 13765 13766: "${CONFIG_STATUS=./config.status}" 13767ac_write_fail=0 13768ac_clean_files_save=$ac_clean_files 13769ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13770{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13771$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13772as_write_fail=0 13773cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13774#! $SHELL 13775# Generated by $as_me. 13776# Run this file to recreate the current configuration. 13777# Compiler output produced by configure, useful for debugging 13778# configure, is in config.log if it exists. 13779 13780debug=false 13781ac_cs_recheck=false 13782ac_cs_silent=false 13783 13784SHELL=\${CONFIG_SHELL-$SHELL} 13785export SHELL 13786_ASEOF 13787cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13788## -------------------- ## 13789## M4sh Initialization. ## 13790## -------------------- ## 13791 13792# Be more Bourne compatible 13793DUALCASE=1; export DUALCASE # for MKS sh 13794if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13795 emulate sh 13796 NULLCMD=: 13797 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13798 # is contrary to our usage. Disable this feature. 13799 alias -g '${1+"$@"}'='"$@"' 13800 setopt NO_GLOB_SUBST 13801else 13802 case `(set -o) 2>/dev/null` in #( 13803 *posix*) : 13804 set -o posix ;; #( 13805 *) : 13806 ;; 13807esac 13808fi 13809 13810 13811as_nl=' 13812' 13813export as_nl 13814# Printing a long string crashes Solaris 7 /usr/bin/printf. 13815as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13816as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13817as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13818# Prefer a ksh shell builtin over an external printf program on Solaris, 13819# but without wasting forks for bash or zsh. 13820if test -z "$BASH_VERSION$ZSH_VERSION" \ 13821 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13822 as_echo='print -r --' 13823 as_echo_n='print -rn --' 13824elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13825 as_echo='printf %s\n' 13826 as_echo_n='printf %s' 13827else 13828 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13829 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13830 as_echo_n='/usr/ucb/echo -n' 13831 else 13832 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13833 as_echo_n_body='eval 13834 arg=$1; 13835 case $arg in #( 13836 *"$as_nl"*) 13837 expr "X$arg" : "X\\(.*\\)$as_nl"; 13838 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13839 esac; 13840 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13841 ' 13842 export as_echo_n_body 13843 as_echo_n='sh -c $as_echo_n_body as_echo' 13844 fi 13845 export as_echo_body 13846 as_echo='sh -c $as_echo_body as_echo' 13847fi 13848 13849# The user is always right. 13850if test "${PATH_SEPARATOR+set}" != set; then 13851 PATH_SEPARATOR=: 13852 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13853 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13854 PATH_SEPARATOR=';' 13855 } 13856fi 13857 13858 13859# IFS 13860# We need space, tab and new line, in precisely that order. Quoting is 13861# there to prevent editors from complaining about space-tab. 13862# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13863# splitting by setting IFS to empty value.) 13864IFS=" "" $as_nl" 13865 13866# Find who we are. Look in the path if we contain no directory separator. 13867as_myself= 13868case $0 in #(( 13869 *[\\/]* ) as_myself=$0 ;; 13870 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13871for as_dir in $PATH 13872do 13873 IFS=$as_save_IFS 13874 test -z "$as_dir" && as_dir=. 13875 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13876 done 13877IFS=$as_save_IFS 13878 13879 ;; 13880esac 13881# We did not find ourselves, most probably we were run as `sh COMMAND' 13882# in which case we are not to be found in the path. 13883if test "x$as_myself" = x; then 13884 as_myself=$0 13885fi 13886if test ! -f "$as_myself"; then 13887 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13888 exit 1 13889fi 13890 13891# Unset variables that we do not need and which cause bugs (e.g. in 13892# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13893# suppresses any "Segmentation fault" message there. '((' could 13894# trigger a bug in pdksh 5.2.14. 13895for as_var in BASH_ENV ENV MAIL MAILPATH 13896do eval test x\${$as_var+set} = xset \ 13897 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13898done 13899PS1='$ ' 13900PS2='> ' 13901PS4='+ ' 13902 13903# NLS nuisances. 13904LC_ALL=C 13905export LC_ALL 13906LANGUAGE=C 13907export LANGUAGE 13908 13909# CDPATH. 13910(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13911 13912 13913# as_fn_error STATUS ERROR [LINENO LOG_FD] 13914# ---------------------------------------- 13915# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13916# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13917# script with STATUS, using 1 if that was 0. 13918as_fn_error () 13919{ 13920 as_status=$1; test $as_status -eq 0 && as_status=1 13921 if test "$4"; then 13922 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13923 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13924 fi 13925 $as_echo "$as_me: error: $2" >&2 13926 as_fn_exit $as_status 13927} # as_fn_error 13928 13929 13930# as_fn_set_status STATUS 13931# ----------------------- 13932# Set $? to STATUS, without forking. 13933as_fn_set_status () 13934{ 13935 return $1 13936} # as_fn_set_status 13937 13938# as_fn_exit STATUS 13939# ----------------- 13940# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13941as_fn_exit () 13942{ 13943 set +e 13944 as_fn_set_status $1 13945 exit $1 13946} # as_fn_exit 13947 13948# as_fn_unset VAR 13949# --------------- 13950# Portably unset VAR. 13951as_fn_unset () 13952{ 13953 { eval $1=; unset $1;} 13954} 13955as_unset=as_fn_unset 13956# as_fn_append VAR VALUE 13957# ---------------------- 13958# Append the text in VALUE to the end of the definition contained in VAR. Take 13959# advantage of any shell optimizations that allow amortized linear growth over 13960# repeated appends, instead of the typical quadratic growth present in naive 13961# implementations. 13962if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13963 eval 'as_fn_append () 13964 { 13965 eval $1+=\$2 13966 }' 13967else 13968 as_fn_append () 13969 { 13970 eval $1=\$$1\$2 13971 } 13972fi # as_fn_append 13973 13974# as_fn_arith ARG... 13975# ------------------ 13976# Perform arithmetic evaluation on the ARGs, and store the result in the 13977# global $as_val. Take advantage of shells that can avoid forks. The arguments 13978# must be portable across $(()) and expr. 13979if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13980 eval 'as_fn_arith () 13981 { 13982 as_val=$(( $* )) 13983 }' 13984else 13985 as_fn_arith () 13986 { 13987 as_val=`expr "$@" || test $? -eq 1` 13988 } 13989fi # as_fn_arith 13990 13991 13992if expr a : '\(a\)' >/dev/null 2>&1 && 13993 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13994 as_expr=expr 13995else 13996 as_expr=false 13997fi 13998 13999if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14000 as_basename=basename 14001else 14002 as_basename=false 14003fi 14004 14005if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14006 as_dirname=dirname 14007else 14008 as_dirname=false 14009fi 14010 14011as_me=`$as_basename -- "$0" || 14012$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14013 X"$0" : 'X\(//\)$' \| \ 14014 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14015$as_echo X/"$0" | 14016 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14017 s//\1/ 14018 q 14019 } 14020 /^X\/\(\/\/\)$/{ 14021 s//\1/ 14022 q 14023 } 14024 /^X\/\(\/\).*/{ 14025 s//\1/ 14026 q 14027 } 14028 s/.*/./; q'` 14029 14030# Avoid depending upon Character Ranges. 14031as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14032as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14033as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14034as_cr_digits='0123456789' 14035as_cr_alnum=$as_cr_Letters$as_cr_digits 14036 14037ECHO_C= ECHO_N= ECHO_T= 14038case `echo -n x` in #((((( 14039-n*) 14040 case `echo 'xy\c'` in 14041 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14042 xy) ECHO_C='\c';; 14043 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14044 ECHO_T=' ';; 14045 esac;; 14046*) 14047 ECHO_N='-n';; 14048esac 14049 14050rm -f conf$$ conf$$.exe conf$$.file 14051if test -d conf$$.dir; then 14052 rm -f conf$$.dir/conf$$.file 14053else 14054 rm -f conf$$.dir 14055 mkdir conf$$.dir 2>/dev/null 14056fi 14057if (echo >conf$$.file) 2>/dev/null; then 14058 if ln -s conf$$.file conf$$ 2>/dev/null; then 14059 as_ln_s='ln -s' 14060 # ... but there are two gotchas: 14061 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14062 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14063 # In both cases, we have to default to `cp -pR'. 14064 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14065 as_ln_s='cp -pR' 14066 elif ln conf$$.file conf$$ 2>/dev/null; then 14067 as_ln_s=ln 14068 else 14069 as_ln_s='cp -pR' 14070 fi 14071else 14072 as_ln_s='cp -pR' 14073fi 14074rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14075rmdir conf$$.dir 2>/dev/null 14076 14077 14078# as_fn_mkdir_p 14079# ------------- 14080# Create "$as_dir" as a directory, including parents if necessary. 14081as_fn_mkdir_p () 14082{ 14083 14084 case $as_dir in #( 14085 -*) as_dir=./$as_dir;; 14086 esac 14087 test -d "$as_dir" || eval $as_mkdir_p || { 14088 as_dirs= 14089 while :; do 14090 case $as_dir in #( 14091 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14092 *) as_qdir=$as_dir;; 14093 esac 14094 as_dirs="'$as_qdir' $as_dirs" 14095 as_dir=`$as_dirname -- "$as_dir" || 14096$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14097 X"$as_dir" : 'X\(//\)[^/]' \| \ 14098 X"$as_dir" : 'X\(//\)$' \| \ 14099 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14100$as_echo X"$as_dir" | 14101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14102 s//\1/ 14103 q 14104 } 14105 /^X\(\/\/\)[^/].*/{ 14106 s//\1/ 14107 q 14108 } 14109 /^X\(\/\/\)$/{ 14110 s//\1/ 14111 q 14112 } 14113 /^X\(\/\).*/{ 14114 s//\1/ 14115 q 14116 } 14117 s/.*/./; q'` 14118 test -d "$as_dir" && break 14119 done 14120 test -z "$as_dirs" || eval "mkdir $as_dirs" 14121 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14122 14123 14124} # as_fn_mkdir_p 14125if mkdir -p . 2>/dev/null; then 14126 as_mkdir_p='mkdir -p "$as_dir"' 14127else 14128 test -d ./-p && rmdir ./-p 14129 as_mkdir_p=false 14130fi 14131 14132 14133# as_fn_executable_p FILE 14134# ----------------------- 14135# Test if FILE is an executable regular file. 14136as_fn_executable_p () 14137{ 14138 test -f "$1" && test -x "$1" 14139} # as_fn_executable_p 14140as_test_x='test -x' 14141as_executable_p=as_fn_executable_p 14142 14143# Sed expression to map a string onto a valid CPP name. 14144as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14145 14146# Sed expression to map a string onto a valid variable name. 14147as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14148 14149 14150exec 6>&1 14151## ----------------------------------- ## 14152## Main body of $CONFIG_STATUS script. ## 14153## ----------------------------------- ## 14154_ASEOF 14155test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14156 14157cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14158# Save the log message, to keep $0 and so on meaningful, and to 14159# report actual input values of CONFIG_FILES etc. instead of their 14160# values after options handling. 14161ac_log=" 14162This file was extended by ccid $as_me 1.4.14, which was 14163generated by GNU Autoconf 2.69. Invocation command line was 14164 14165 CONFIG_FILES = $CONFIG_FILES 14166 CONFIG_HEADERS = $CONFIG_HEADERS 14167 CONFIG_LINKS = $CONFIG_LINKS 14168 CONFIG_COMMANDS = $CONFIG_COMMANDS 14169 $ $0 $@ 14170 14171on `(hostname || uname -n) 2>/dev/null | sed 1q` 14172" 14173 14174_ACEOF 14175 14176case $ac_config_files in *" 14177"*) set x $ac_config_files; shift; ac_config_files=$*;; 14178esac 14179 14180case $ac_config_headers in *" 14181"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14182esac 14183 14184 14185cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14186# Files that config.status was made for. 14187config_files="$ac_config_files" 14188config_headers="$ac_config_headers" 14189config_commands="$ac_config_commands" 14190 14191_ACEOF 14192 14193cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14194ac_cs_usage="\ 14195\`$as_me' instantiates files and other configuration actions 14196from templates according to the current configuration. Unless the files 14197and actions are specified as TAGs, all are instantiated by default. 14198 14199Usage: $0 [OPTION]... [TAG]... 14200 14201 -h, --help print this help, then exit 14202 -V, --version print version number and configuration settings, then exit 14203 --config print configuration, then exit 14204 -q, --quiet, --silent 14205 do not print progress messages 14206 -d, --debug don't remove temporary files 14207 --recheck update $as_me by reconfiguring in the same conditions 14208 --file=FILE[:TEMPLATE] 14209 instantiate the configuration file FILE 14210 --header=FILE[:TEMPLATE] 14211 instantiate the configuration header FILE 14212 14213Configuration files: 14214$config_files 14215 14216Configuration headers: 14217$config_headers 14218 14219Configuration commands: 14220$config_commands 14221 14222Report bugs to the package provider." 14223 14224_ACEOF 14225cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14226ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14227ac_cs_version="\\ 14228ccid config.status 1.4.14 14229configured by $0, generated by GNU Autoconf 2.69, 14230 with options \\"\$ac_cs_config\\" 14231 14232Copyright (C) 2012 Free Software Foundation, Inc. 14233This config.status script is free software; the Free Software Foundation 14234gives unlimited permission to copy, distribute and modify it." 14235 14236ac_pwd='$ac_pwd' 14237srcdir='$srcdir' 14238INSTALL='$INSTALL' 14239MKDIR_P='$MKDIR_P' 14240AWK='$AWK' 14241test -n "\$AWK" || AWK=awk 14242_ACEOF 14243 14244cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14245# The default lists apply if the user does not specify any file. 14246ac_need_defaults=: 14247while test $# != 0 14248do 14249 case $1 in 14250 --*=?*) 14251 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14252 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14253 ac_shift=: 14254 ;; 14255 --*=) 14256 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14257 ac_optarg= 14258 ac_shift=: 14259 ;; 14260 *) 14261 ac_option=$1 14262 ac_optarg=$2 14263 ac_shift=shift 14264 ;; 14265 esac 14266 14267 case $ac_option in 14268 # Handling of the options. 14269 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14270 ac_cs_recheck=: ;; 14271 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14272 $as_echo "$ac_cs_version"; exit ;; 14273 --config | --confi | --conf | --con | --co | --c ) 14274 $as_echo "$ac_cs_config"; exit ;; 14275 --debug | --debu | --deb | --de | --d | -d ) 14276 debug=: ;; 14277 --file | --fil | --fi | --f ) 14278 $ac_shift 14279 case $ac_optarg in 14280 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14281 '') as_fn_error $? "missing file argument" ;; 14282 esac 14283 as_fn_append CONFIG_FILES " '$ac_optarg'" 14284 ac_need_defaults=false;; 14285 --header | --heade | --head | --hea ) 14286 $ac_shift 14287 case $ac_optarg in 14288 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14289 esac 14290 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14291 ac_need_defaults=false;; 14292 --he | --h) 14293 # Conflict between --help and --header 14294 as_fn_error $? "ambiguous option: \`$1' 14295Try \`$0 --help' for more information.";; 14296 --help | --hel | -h ) 14297 $as_echo "$ac_cs_usage"; exit ;; 14298 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14299 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14300 ac_cs_silent=: ;; 14301 14302 # This is an error. 14303 -*) as_fn_error $? "unrecognized option: \`$1' 14304Try \`$0 --help' for more information." ;; 14305 14306 *) as_fn_append ac_config_targets " $1" 14307 ac_need_defaults=false ;; 14308 14309 esac 14310 shift 14311done 14312 14313ac_configure_extra_args= 14314 14315if $ac_cs_silent; then 14316 exec 6>/dev/null 14317 ac_configure_extra_args="$ac_configure_extra_args --silent" 14318fi 14319 14320_ACEOF 14321cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14322if \$ac_cs_recheck; then 14323 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14324 shift 14325 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14326 CONFIG_SHELL='$SHELL' 14327 export CONFIG_SHELL 14328 exec "\$@" 14329fi 14330 14331_ACEOF 14332cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14333exec 5>>config.log 14334{ 14335 echo 14336 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14337## Running $as_me. ## 14338_ASBOX 14339 $as_echo "$ac_log" 14340} >&5 14341 14342_ACEOF 14343cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14344# 14345# INIT-COMMANDS 14346# 14347AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 14348 14349 14350# The HP-UX ksh and POSIX shell print the target directory to stdout 14351# if CDPATH is set. 14352(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14353 14354sed_quote_subst='$sed_quote_subst' 14355double_quote_subst='$double_quote_subst' 14356delay_variable_subst='$delay_variable_subst' 14357macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 14358macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 14359enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 14360enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 14361pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 14362enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 14363SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 14364ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 14365PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 14366host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 14367host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 14368host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 14369build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 14370build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 14371build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 14372SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 14373Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 14374GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 14375EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 14376FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 14377LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 14378NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 14379LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 14380max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 14381ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 14382exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 14383lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 14384lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 14385lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 14386lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 14387lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 14388reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 14389reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 14390OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 14391deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 14392file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 14393file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 14394want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 14395DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 14396sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 14397AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 14398AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 14399archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 14400STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 14401RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 14402old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14403old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14404old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 14405lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 14406CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 14407CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 14408compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 14409GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 14410lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 14411lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 14412lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 14413lt_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"`' 14414nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 14415lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 14416objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 14417MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 14418lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 14419lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 14420lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 14421lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 14422lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 14423need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 14424MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 14425DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 14426NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 14427LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 14428OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 14429OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 14430libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 14431shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 14432extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14433archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 14434enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 14435export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 14436whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 14437compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 14438old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 14439old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14440archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 14441archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14442module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 14443module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14444with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 14445allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 14446no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 14447hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 14448hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 14449hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 14450hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 14451hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 14452hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 14453hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 14454inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 14455link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 14456always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 14457export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 14458exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 14459include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 14460prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 14461postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 14462file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 14463variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 14464need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 14465need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 14466version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 14467runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 14468shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 14469shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 14470libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 14471library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 14472soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 14473install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 14474postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14475postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14476finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 14477finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 14478hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 14479sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 14480sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 14481hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 14482enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 14483enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 14484enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 14485old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 14486striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 14487 14488LTCC='$LTCC' 14489LTCFLAGS='$LTCFLAGS' 14490compiler='$compiler_DEFAULT' 14491 14492# A function that is used when there is no print builtin or printf. 14493func_fallback_echo () 14494{ 14495 eval 'cat <<_LTECHO_EOF 14496\$1 14497_LTECHO_EOF' 14498} 14499 14500# Quote evaled strings. 14501for var in SHELL \ 14502ECHO \ 14503PATH_SEPARATOR \ 14504SED \ 14505GREP \ 14506EGREP \ 14507FGREP \ 14508LD \ 14509NM \ 14510LN_S \ 14511lt_SP2NL \ 14512lt_NL2SP \ 14513reload_flag \ 14514OBJDUMP \ 14515deplibs_check_method \ 14516file_magic_cmd \ 14517file_magic_glob \ 14518want_nocaseglob \ 14519DLLTOOL \ 14520sharedlib_from_linklib_cmd \ 14521AR \ 14522AR_FLAGS \ 14523archiver_list_spec \ 14524STRIP \ 14525RANLIB \ 14526CC \ 14527CFLAGS \ 14528compiler \ 14529lt_cv_sys_global_symbol_pipe \ 14530lt_cv_sys_global_symbol_to_cdecl \ 14531lt_cv_sys_global_symbol_to_c_name_address \ 14532lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14533nm_file_list_spec \ 14534lt_prog_compiler_no_builtin_flag \ 14535lt_prog_compiler_pic \ 14536lt_prog_compiler_wl \ 14537lt_prog_compiler_static \ 14538lt_cv_prog_compiler_c_o \ 14539need_locks \ 14540MANIFEST_TOOL \ 14541DSYMUTIL \ 14542NMEDIT \ 14543LIPO \ 14544OTOOL \ 14545OTOOL64 \ 14546shrext_cmds \ 14547export_dynamic_flag_spec \ 14548whole_archive_flag_spec \ 14549compiler_needs_object \ 14550with_gnu_ld \ 14551allow_undefined_flag \ 14552no_undefined_flag \ 14553hardcode_libdir_flag_spec \ 14554hardcode_libdir_separator \ 14555exclude_expsyms \ 14556include_expsyms \ 14557file_list_spec \ 14558variables_saved_for_relink \ 14559libname_spec \ 14560library_names_spec \ 14561soname_spec \ 14562install_override_mode \ 14563finish_eval \ 14564old_striplib \ 14565striplib; do 14566 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14567 *[\\\\\\\`\\"\\\$]*) 14568 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 14569 ;; 14570 *) 14571 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14572 ;; 14573 esac 14574done 14575 14576# Double-quote double-evaled strings. 14577for var in reload_cmds \ 14578old_postinstall_cmds \ 14579old_postuninstall_cmds \ 14580old_archive_cmds \ 14581extract_expsyms_cmds \ 14582old_archive_from_new_cmds \ 14583old_archive_from_expsyms_cmds \ 14584archive_cmds \ 14585archive_expsym_cmds \ 14586module_cmds \ 14587module_expsym_cmds \ 14588export_symbols_cmds \ 14589prelink_cmds \ 14590postlink_cmds \ 14591postinstall_cmds \ 14592postuninstall_cmds \ 14593finish_cmds \ 14594sys_lib_search_path_spec \ 14595sys_lib_dlsearch_path_spec; do 14596 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14597 *[\\\\\\\`\\"\\\$]*) 14598 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 14599 ;; 14600 *) 14601 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14602 ;; 14603 esac 14604done 14605 14606ac_aux_dir='$ac_aux_dir' 14607xsi_shell='$xsi_shell' 14608lt_shell_append='$lt_shell_append' 14609 14610# See if we are running on zsh, and set the options which allow our 14611# commands through without removal of \ escapes INIT. 14612if test -n "\${ZSH_VERSION+set}" ; then 14613 setopt NO_GLOB_SUBST 14614fi 14615 14616 14617 PACKAGE='$PACKAGE' 14618 VERSION='$VERSION' 14619 TIMESTAMP='$TIMESTAMP' 14620 RM='$RM' 14621 ofile='$ofile' 14622 14623 14624 14625 14626_ACEOF 14627 14628cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14629 14630# Handling of arguments. 14631for ac_config_target in $ac_config_targets 14632do 14633 case $ac_config_target in 14634 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14635 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14636 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14637 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14638 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 14639 "readers/Makefile") CONFIG_FILES="$CONFIG_FILES readers/Makefile" ;; 14640 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; 14641 "contrib/Kobil_mIDentity_switch/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Kobil_mIDentity_switch/Makefile" ;; 14642 "contrib/RSA_SecurID/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/RSA_SecurID/Makefile" ;; 14643 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 14644 14645 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14646 esac 14647done 14648 14649 14650# If the user did not use the arguments to specify the items to instantiate, 14651# then the envvar interface is used. Set only those that are not. 14652# We use the long form for the default assignment because of an extremely 14653# bizarre bug on SunOS 4.1.3. 14654if $ac_need_defaults; then 14655 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14656 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14657 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14658fi 14659 14660# Have a temporary directory for convenience. Make it in the build tree 14661# simply because there is no reason against having it here, and in addition, 14662# creating and moving files from /tmp can sometimes cause problems. 14663# Hook for its removal unless debugging. 14664# Note that there is a small window in which the directory will not be cleaned: 14665# after its creation but before its name has been assigned to `$tmp'. 14666$debug || 14667{ 14668 tmp= ac_tmp= 14669 trap 'exit_status=$? 14670 : "${ac_tmp:=$tmp}" 14671 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14672' 0 14673 trap 'as_fn_exit 1' 1 2 13 15 14674} 14675# Create a (secure) tmp directory for tmp files. 14676 14677{ 14678 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14679 test -d "$tmp" 14680} || 14681{ 14682 tmp=./conf$$-$RANDOM 14683 (umask 077 && mkdir "$tmp") 14684} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14685ac_tmp=$tmp 14686 14687# Set up the scripts for CONFIG_FILES section. 14688# No need to generate them if there are no CONFIG_FILES. 14689# This happens for instance with `./config.status config.h'. 14690if test -n "$CONFIG_FILES"; then 14691 14692 14693ac_cr=`echo X | tr X '\015'` 14694# On cygwin, bash can eat \r inside `` if the user requested igncr. 14695# But we know of no other shell where ac_cr would be empty at this 14696# point, so we can use a bashism as a fallback. 14697if test "x$ac_cr" = x; then 14698 eval ac_cr=\$\'\\r\' 14699fi 14700ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14701if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14702 ac_cs_awk_cr='\\r' 14703else 14704 ac_cs_awk_cr=$ac_cr 14705fi 14706 14707echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14708_ACEOF 14709 14710 14711{ 14712 echo "cat >conf$$subs.awk <<_ACEOF" && 14713 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14714 echo "_ACEOF" 14715} >conf$$subs.sh || 14716 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14717ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14718ac_delim='%!_!# ' 14719for ac_last_try in false false false false false :; do 14720 . ./conf$$subs.sh || 14721 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14722 14723 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14724 if test $ac_delim_n = $ac_delim_num; then 14725 break 14726 elif $ac_last_try; then 14727 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14728 else 14729 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14730 fi 14731done 14732rm -f conf$$subs.sh 14733 14734cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14735cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14736_ACEOF 14737sed -n ' 14738h 14739s/^/S["/; s/!.*/"]=/ 14740p 14741g 14742s/^[^!]*!// 14743:repl 14744t repl 14745s/'"$ac_delim"'$// 14746t delim 14747:nl 14748h 14749s/\(.\{148\}\)..*/\1/ 14750t more1 14751s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14752p 14753n 14754b repl 14755:more1 14756s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14757p 14758g 14759s/.\{148\}// 14760t nl 14761:delim 14762h 14763s/\(.\{148\}\)..*/\1/ 14764t more2 14765s/["\\]/\\&/g; s/^/"/; s/$/"/ 14766p 14767b 14768:more2 14769s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14770p 14771g 14772s/.\{148\}// 14773t delim 14774' <conf$$subs.awk | sed ' 14775/^[^""]/{ 14776 N 14777 s/\n// 14778} 14779' >>$CONFIG_STATUS || ac_write_fail=1 14780rm -f conf$$subs.awk 14781cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14782_ACAWK 14783cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14784 for (key in S) S_is_set[key] = 1 14785 FS = "" 14786 14787} 14788{ 14789 line = $ 0 14790 nfields = split(line, field, "@") 14791 substed = 0 14792 len = length(field[1]) 14793 for (i = 2; i < nfields; i++) { 14794 key = field[i] 14795 keylen = length(key) 14796 if (S_is_set[key]) { 14797 value = S[key] 14798 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14799 len += length(value) + length(field[++i]) 14800 substed = 1 14801 } else 14802 len += 1 + keylen 14803 } 14804 14805 print line 14806} 14807 14808_ACAWK 14809_ACEOF 14810cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14811if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14812 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14813else 14814 cat 14815fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14816 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14817_ACEOF 14818 14819# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14820# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14821# trailing colons and then remove the whole line if VPATH becomes empty 14822# (actually we leave an empty line to preserve line numbers). 14823if test "x$srcdir" = x.; then 14824 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14825h 14826s/// 14827s/^/:/ 14828s/[ ]*$/:/ 14829s/:\$(srcdir):/:/g 14830s/:\${srcdir}:/:/g 14831s/:@srcdir@:/:/g 14832s/^:*// 14833s/:*$// 14834x 14835s/\(=[ ]*\).*/\1/ 14836G 14837s/\n// 14838s/^[^=]*=[ ]*$// 14839}' 14840fi 14841 14842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14843fi # test -n "$CONFIG_FILES" 14844 14845# Set up the scripts for CONFIG_HEADERS section. 14846# No need to generate them if there are no CONFIG_HEADERS. 14847# This happens for instance with `./config.status Makefile'. 14848if test -n "$CONFIG_HEADERS"; then 14849cat >"$ac_tmp/defines.awk" <<\_ACAWK || 14850BEGIN { 14851_ACEOF 14852 14853# Transform confdefs.h into an awk script `defines.awk', embedded as 14854# here-document in config.status, that substitutes the proper values into 14855# config.h.in to produce config.h. 14856 14857# Create a delimiter string that does not exist in confdefs.h, to ease 14858# handling of long lines. 14859ac_delim='%!_!# ' 14860for ac_last_try in false false :; do 14861 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 14862 if test -z "$ac_tt"; then 14863 break 14864 elif $ac_last_try; then 14865 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14866 else 14867 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14868 fi 14869done 14870 14871# For the awk script, D is an array of macro values keyed by name, 14872# likewise P contains macro parameters if any. Preserve backslash 14873# newline sequences. 14874 14875ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14876sed -n ' 14877s/.\{148\}/&'"$ac_delim"'/g 14878t rset 14879:rset 14880s/^[ ]*#[ ]*define[ ][ ]*/ / 14881t def 14882d 14883:def 14884s/\\$// 14885t bsnl 14886s/["\\]/\\&/g 14887s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14888D["\1"]=" \3"/p 14889s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14890d 14891:bsnl 14892s/["\\]/\\&/g 14893s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14894D["\1"]=" \3\\\\\\n"\\/p 14895t cont 14896s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14897t cont 14898d 14899:cont 14900n 14901s/.\{148\}/&'"$ac_delim"'/g 14902t clear 14903:clear 14904s/\\$// 14905t bsnlc 14906s/["\\]/\\&/g; s/^/"/; s/$/"/p 14907d 14908:bsnlc 14909s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14910b cont 14911' <confdefs.h | sed ' 14912s/'"$ac_delim"'/"\\\ 14913"/g' >>$CONFIG_STATUS || ac_write_fail=1 14914 14915cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14916 for (key in D) D_is_set[key] = 1 14917 FS = "" 14918} 14919/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14920 line = \$ 0 14921 split(line, arg, " ") 14922 if (arg[1] == "#") { 14923 defundef = arg[2] 14924 mac1 = arg[3] 14925 } else { 14926 defundef = substr(arg[1], 2) 14927 mac1 = arg[2] 14928 } 14929 split(mac1, mac2, "(") #) 14930 macro = mac2[1] 14931 prefix = substr(line, 1, index(line, defundef) - 1) 14932 if (D_is_set[macro]) { 14933 # Preserve the white space surrounding the "#". 14934 print prefix "define", macro P[macro] D[macro] 14935 next 14936 } else { 14937 # Replace #undef with comments. This is necessary, for example, 14938 # in the case of _POSIX_SOURCE, which is predefined and required 14939 # on some systems where configure will not decide to define it. 14940 if (defundef == "undef") { 14941 print "/*", prefix defundef, macro, "*/" 14942 next 14943 } 14944 } 14945} 14946{ print } 14947_ACAWK 14948_ACEOF 14949cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14950 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 14951fi # test -n "$CONFIG_HEADERS" 14952 14953 14954eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14955shift 14956for ac_tag 14957do 14958 case $ac_tag in 14959 :[FHLC]) ac_mode=$ac_tag; continue;; 14960 esac 14961 case $ac_mode$ac_tag in 14962 :[FHL]*:*);; 14963 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 14964 :[FH]-) ac_tag=-:-;; 14965 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14966 esac 14967 ac_save_IFS=$IFS 14968 IFS=: 14969 set x $ac_tag 14970 IFS=$ac_save_IFS 14971 shift 14972 ac_file=$1 14973 shift 14974 14975 case $ac_mode in 14976 :L) ac_source=$1;; 14977 :[FH]) 14978 ac_file_inputs= 14979 for ac_f 14980 do 14981 case $ac_f in 14982 -) ac_f="$ac_tmp/stdin";; 14983 *) # Look for the file first in the build tree, then in the source tree 14984 # (if the path is not absolute). The absolute path cannot be DOS-style, 14985 # because $ac_f cannot contain `:'. 14986 test -f "$ac_f" || 14987 case $ac_f in 14988 [\\/$]*) false;; 14989 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14990 esac || 14991 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14992 esac 14993 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14994 as_fn_append ac_file_inputs " '$ac_f'" 14995 done 14996 14997 # Let's still pretend it is `configure' which instantiates (i.e., don't 14998 # use $as_me), people would be surprised to read: 14999 # /* config.h. Generated by config.status. */ 15000 configure_input='Generated from '` 15001 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15002 `' by configure.' 15003 if test x"$ac_file" != x-; then 15004 configure_input="$ac_file. $configure_input" 15005 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15006$as_echo "$as_me: creating $ac_file" >&6;} 15007 fi 15008 # Neutralize special characters interpreted by sed in replacement strings. 15009 case $configure_input in #( 15010 *\&* | *\|* | *\\* ) 15011 ac_sed_conf_input=`$as_echo "$configure_input" | 15012 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15013 *) ac_sed_conf_input=$configure_input;; 15014 esac 15015 15016 case $ac_tag in 15017 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15018 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15019 esac 15020 ;; 15021 esac 15022 15023 ac_dir=`$as_dirname -- "$ac_file" || 15024$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15025 X"$ac_file" : 'X\(//\)[^/]' \| \ 15026 X"$ac_file" : 'X\(//\)$' \| \ 15027 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15028$as_echo X"$ac_file" | 15029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15030 s//\1/ 15031 q 15032 } 15033 /^X\(\/\/\)[^/].*/{ 15034 s//\1/ 15035 q 15036 } 15037 /^X\(\/\/\)$/{ 15038 s//\1/ 15039 q 15040 } 15041 /^X\(\/\).*/{ 15042 s//\1/ 15043 q 15044 } 15045 s/.*/./; q'` 15046 as_dir="$ac_dir"; as_fn_mkdir_p 15047 ac_builddir=. 15048 15049case "$ac_dir" in 15050.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15051*) 15052 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15053 # A ".." for each directory in $ac_dir_suffix. 15054 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15055 case $ac_top_builddir_sub in 15056 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15057 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15058 esac ;; 15059esac 15060ac_abs_top_builddir=$ac_pwd 15061ac_abs_builddir=$ac_pwd$ac_dir_suffix 15062# for backward compatibility: 15063ac_top_builddir=$ac_top_build_prefix 15064 15065case $srcdir in 15066 .) # We are building in place. 15067 ac_srcdir=. 15068 ac_top_srcdir=$ac_top_builddir_sub 15069 ac_abs_top_srcdir=$ac_pwd ;; 15070 [\\/]* | ?:[\\/]* ) # Absolute name. 15071 ac_srcdir=$srcdir$ac_dir_suffix; 15072 ac_top_srcdir=$srcdir 15073 ac_abs_top_srcdir=$srcdir ;; 15074 *) # Relative name. 15075 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15076 ac_top_srcdir=$ac_top_build_prefix$srcdir 15077 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15078esac 15079ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15080 15081 15082 case $ac_mode in 15083 :F) 15084 # 15085 # CONFIG_FILE 15086 # 15087 15088 case $INSTALL in 15089 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15090 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15091 esac 15092 ac_MKDIR_P=$MKDIR_P 15093 case $MKDIR_P in 15094 [\\/$]* | ?:[\\/]* ) ;; 15095 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 15096 esac 15097_ACEOF 15098 15099cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15100# If the template does not know about datarootdir, expand it. 15101# FIXME: This hack should be removed a few years after 2.60. 15102ac_datarootdir_hack=; ac_datarootdir_seen= 15103ac_sed_dataroot=' 15104/datarootdir/ { 15105 p 15106 q 15107} 15108/@datadir@/p 15109/@docdir@/p 15110/@infodir@/p 15111/@localedir@/p 15112/@mandir@/p' 15113case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15114*datarootdir*) ac_datarootdir_seen=yes;; 15115*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15117$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15118_ACEOF 15119cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15120 ac_datarootdir_hack=' 15121 s&@datadir@&$datadir&g 15122 s&@docdir@&$docdir&g 15123 s&@infodir@&$infodir&g 15124 s&@localedir@&$localedir&g 15125 s&@mandir@&$mandir&g 15126 s&\\\${datarootdir}&$datarootdir&g' ;; 15127esac 15128_ACEOF 15129 15130# Neutralize VPATH when `$srcdir' = `.'. 15131# Shell code in configure.ac might set extrasub. 15132# FIXME: do we really want to maintain this feature? 15133cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15134ac_sed_extra="$ac_vpsub 15135$extrasub 15136_ACEOF 15137cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15138:t 15139/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15140s|@configure_input@|$ac_sed_conf_input|;t t 15141s&@top_builddir@&$ac_top_builddir_sub&;t t 15142s&@top_build_prefix@&$ac_top_build_prefix&;t t 15143s&@srcdir@&$ac_srcdir&;t t 15144s&@abs_srcdir@&$ac_abs_srcdir&;t t 15145s&@top_srcdir@&$ac_top_srcdir&;t t 15146s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15147s&@builddir@&$ac_builddir&;t t 15148s&@abs_builddir@&$ac_abs_builddir&;t t 15149s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15150s&@INSTALL@&$ac_INSTALL&;t t 15151s&@MKDIR_P@&$ac_MKDIR_P&;t t 15152$ac_datarootdir_hack 15153" 15154eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 15155 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15156 15157test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15158 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 15159 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15160 "$ac_tmp/out"`; test -z "$ac_out"; } && 15161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15162which seems to be undefined. Please make sure it is defined" >&5 15163$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15164which seems to be undefined. Please make sure it is defined" >&2;} 15165 15166 rm -f "$ac_tmp/stdin" 15167 case $ac_file in 15168 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 15169 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 15170 esac \ 15171 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15172 ;; 15173 :H) 15174 # 15175 # CONFIG_HEADER 15176 # 15177 if test x"$ac_file" != x-; then 15178 { 15179 $as_echo "/* $configure_input */" \ 15180 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 15181 } >"$ac_tmp/config.h" \ 15182 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15183 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 15184 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 15185$as_echo "$as_me: $ac_file is unchanged" >&6;} 15186 else 15187 rm -f "$ac_file" 15188 mv "$ac_tmp/config.h" "$ac_file" \ 15189 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15190 fi 15191 else 15192 $as_echo "/* $configure_input */" \ 15193 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 15194 || as_fn_error $? "could not create -" "$LINENO" 5 15195 fi 15196# Compute "$ac_file"'s index in $config_headers. 15197_am_arg="$ac_file" 15198_am_stamp_count=1 15199for _am_header in $config_headers :; do 15200 case $_am_header in 15201 $_am_arg | $_am_arg:* ) 15202 break ;; 15203 * ) 15204 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 15205 esac 15206done 15207echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 15208$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15209 X"$_am_arg" : 'X\(//\)[^/]' \| \ 15210 X"$_am_arg" : 'X\(//\)$' \| \ 15211 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 15212$as_echo X"$_am_arg" | 15213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15214 s//\1/ 15215 q 15216 } 15217 /^X\(\/\/\)[^/].*/{ 15218 s//\1/ 15219 q 15220 } 15221 /^X\(\/\/\)$/{ 15222 s//\1/ 15223 q 15224 } 15225 /^X\(\/\).*/{ 15226 s//\1/ 15227 q 15228 } 15229 s/.*/./; q'`/stamp-h$_am_stamp_count 15230 ;; 15231 15232 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 15233$as_echo "$as_me: executing $ac_file commands" >&6;} 15234 ;; 15235 esac 15236 15237 15238 case $ac_file$ac_mode in 15239 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 15240 # Older Autoconf quotes --file arguments for eval, but not when files 15241 # are listed without --file. Let's play safe and only enable the eval 15242 # if we detect the quoting. 15243 case $CONFIG_FILES in 15244 *\'*) eval set x "$CONFIG_FILES" ;; 15245 *) set x $CONFIG_FILES ;; 15246 esac 15247 shift 15248 for mf 15249 do 15250 # Strip MF so we end up with the name of the file. 15251 mf=`echo "$mf" | sed -e 's/:.*$//'` 15252 # Check whether this is an Automake generated Makefile or not. 15253 # We used to match only the files named 'Makefile.in', but 15254 # some people rename them; so instead we look at the file content. 15255 # Grep'ing the first line is not enough: some people post-process 15256 # each Makefile.in and add a new line on top of each file to say so. 15257 # Grep'ing the whole file is not good either: AIX grep has a line 15258 # limit of 2048, but all sed's we know have understand at least 4000. 15259 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 15260 dirpart=`$as_dirname -- "$mf" || 15261$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15262 X"$mf" : 'X\(//\)[^/]' \| \ 15263 X"$mf" : 'X\(//\)$' \| \ 15264 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 15265$as_echo X"$mf" | 15266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15267 s//\1/ 15268 q 15269 } 15270 /^X\(\/\/\)[^/].*/{ 15271 s//\1/ 15272 q 15273 } 15274 /^X\(\/\/\)$/{ 15275 s//\1/ 15276 q 15277 } 15278 /^X\(\/\).*/{ 15279 s//\1/ 15280 q 15281 } 15282 s/.*/./; q'` 15283 else 15284 continue 15285 fi 15286 # Extract the definition of DEPDIR, am__include, and am__quote 15287 # from the Makefile without running 'make'. 15288 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 15289 test -z "$DEPDIR" && continue 15290 am__include=`sed -n 's/^am__include = //p' < "$mf"` 15291 test -z "$am__include" && continue 15292 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 15293 # Find all dependency output files, they are included files with 15294 # $(DEPDIR) in their names. We invoke sed twice because it is the 15295 # simplest approach to changing $(DEPDIR) to its actual value in the 15296 # expansion. 15297 for file in `sed -n " 15298 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 15299 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 15300 # Make sure the directory exists. 15301 test -f "$dirpart/$file" && continue 15302 fdir=`$as_dirname -- "$file" || 15303$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15304 X"$file" : 'X\(//\)[^/]' \| \ 15305 X"$file" : 'X\(//\)$' \| \ 15306 X"$file" : 'X\(/\)' \| . 2>/dev/null || 15307$as_echo X"$file" | 15308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15309 s//\1/ 15310 q 15311 } 15312 /^X\(\/\/\)[^/].*/{ 15313 s//\1/ 15314 q 15315 } 15316 /^X\(\/\/\)$/{ 15317 s//\1/ 15318 q 15319 } 15320 /^X\(\/\).*/{ 15321 s//\1/ 15322 q 15323 } 15324 s/.*/./; q'` 15325 as_dir=$dirpart/$fdir; as_fn_mkdir_p 15326 # echo "creating $dirpart/$file" 15327 echo '# dummy' > "$dirpart/$file" 15328 done 15329 done 15330} 15331 ;; 15332 "libtool":C) 15333 15334 # See if we are running on zsh, and set the options which allow our 15335 # commands through without removal of \ escapes. 15336 if test -n "${ZSH_VERSION+set}" ; then 15337 setopt NO_GLOB_SUBST 15338 fi 15339 15340 cfgfile="${ofile}T" 15341 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15342 $RM "$cfgfile" 15343 15344 cat <<_LT_EOF >> "$cfgfile" 15345#! $SHELL 15346 15347# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 15348# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 15349# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15350# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15351# 15352# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 15353# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 15354# Foundation, Inc. 15355# Written by Gordon Matzigkeit, 1996 15356# 15357# This file is part of GNU Libtool. 15358# 15359# GNU Libtool is free software; you can redistribute it and/or 15360# modify it under the terms of the GNU General Public License as 15361# published by the Free Software Foundation; either version 2 of 15362# the License, or (at your option) any later version. 15363# 15364# As a special exception to the GNU General Public License, 15365# if you distribute this file as part of a program or library that 15366# is built using GNU Libtool, you may include this file under the 15367# same distribution terms that you use for the rest of that program. 15368# 15369# GNU Libtool is distributed in the hope that it will be useful, 15370# but WITHOUT ANY WARRANTY; without even the implied warranty of 15371# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15372# GNU General Public License for more details. 15373# 15374# You should have received a copy of the GNU General Public License 15375# along with GNU Libtool; see the file COPYING. If not, a copy 15376# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 15377# obtained by writing to the Free Software Foundation, Inc., 15378# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 15379 15380 15381# The names of the tagged configurations supported by this script. 15382available_tags="" 15383 15384# ### BEGIN LIBTOOL CONFIG 15385 15386# Which release of libtool.m4 was used? 15387macro_version=$macro_version 15388macro_revision=$macro_revision 15389 15390# Whether or not to build static libraries. 15391build_old_libs=$enable_static 15392 15393# Whether or not to build shared libraries. 15394build_libtool_libs=$enable_shared 15395 15396# What type of objects to build. 15397pic_mode=$pic_mode 15398 15399# Whether or not to optimize for fast installation. 15400fast_install=$enable_fast_install 15401 15402# Shell to use when invoking shell scripts. 15403SHELL=$lt_SHELL 15404 15405# An echo program that protects backslashes. 15406ECHO=$lt_ECHO 15407 15408# The PATH separator for the build system. 15409PATH_SEPARATOR=$lt_PATH_SEPARATOR 15410 15411# The host system. 15412host_alias=$host_alias 15413host=$host 15414host_os=$host_os 15415 15416# The build system. 15417build_alias=$build_alias 15418build=$build 15419build_os=$build_os 15420 15421# A sed program that does not truncate output. 15422SED=$lt_SED 15423 15424# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15425Xsed="\$SED -e 1s/^X//" 15426 15427# A grep program that handles long lines. 15428GREP=$lt_GREP 15429 15430# An ERE matcher. 15431EGREP=$lt_EGREP 15432 15433# A literal string matcher. 15434FGREP=$lt_FGREP 15435 15436# A BSD- or MS-compatible name lister. 15437NM=$lt_NM 15438 15439# Whether we need soft or hard links. 15440LN_S=$lt_LN_S 15441 15442# What is the maximum length of a command? 15443max_cmd_len=$max_cmd_len 15444 15445# Object file suffix (normally "o"). 15446objext=$ac_objext 15447 15448# Executable file suffix (normally ""). 15449exeext=$exeext 15450 15451# whether the shell understands "unset". 15452lt_unset=$lt_unset 15453 15454# turn spaces into newlines. 15455SP2NL=$lt_lt_SP2NL 15456 15457# turn newlines into spaces. 15458NL2SP=$lt_lt_NL2SP 15459 15460# convert \$build file names to \$host format. 15461to_host_file_cmd=$lt_cv_to_host_file_cmd 15462 15463# convert \$build files to toolchain format. 15464to_tool_file_cmd=$lt_cv_to_tool_file_cmd 15465 15466# An object symbol dumper. 15467OBJDUMP=$lt_OBJDUMP 15468 15469# Method to check whether dependent libraries are shared objects. 15470deplibs_check_method=$lt_deplibs_check_method 15471 15472# Command to use when deplibs_check_method = "file_magic". 15473file_magic_cmd=$lt_file_magic_cmd 15474 15475# How to find potential files when deplibs_check_method = "file_magic". 15476file_magic_glob=$lt_file_magic_glob 15477 15478# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 15479want_nocaseglob=$lt_want_nocaseglob 15480 15481# DLL creation program. 15482DLLTOOL=$lt_DLLTOOL 15483 15484# Command to associate shared and link libraries. 15485sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 15486 15487# The archiver. 15488AR=$lt_AR 15489 15490# Flags to create an archive. 15491AR_FLAGS=$lt_AR_FLAGS 15492 15493# How to feed a file listing to the archiver. 15494archiver_list_spec=$lt_archiver_list_spec 15495 15496# A symbol stripping program. 15497STRIP=$lt_STRIP 15498 15499# Commands used to install an old-style archive. 15500RANLIB=$lt_RANLIB 15501old_postinstall_cmds=$lt_old_postinstall_cmds 15502old_postuninstall_cmds=$lt_old_postuninstall_cmds 15503 15504# Whether to use a lock for old archive extraction. 15505lock_old_archive_extraction=$lock_old_archive_extraction 15506 15507# A C compiler. 15508LTCC=$lt_CC 15509 15510# LTCC compiler flags. 15511LTCFLAGS=$lt_CFLAGS 15512 15513# Take the output of nm and produce a listing of raw symbols and C names. 15514global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15515 15516# Transform the output of nm in a proper C declaration. 15517global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15518 15519# Transform the output of nm in a C name address pair. 15520global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15521 15522# Transform the output of nm in a C name address pair when lib prefix is needed. 15523global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15524 15525# Specify filename containing input files for \$NM. 15526nm_file_list_spec=$lt_nm_file_list_spec 15527 15528# The root where to search for dependent libraries,and in which our libraries should be installed. 15529lt_sysroot=$lt_sysroot 15530 15531# The name of the directory that contains temporary libtool files. 15532objdir=$objdir 15533 15534# Used to examine libraries when file_magic_cmd begins with "file". 15535MAGIC_CMD=$MAGIC_CMD 15536 15537# Must we lock files when doing compilation? 15538need_locks=$lt_need_locks 15539 15540# Manifest tool. 15541MANIFEST_TOOL=$lt_MANIFEST_TOOL 15542 15543# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15544DSYMUTIL=$lt_DSYMUTIL 15545 15546# Tool to change global to local symbols on Mac OS X. 15547NMEDIT=$lt_NMEDIT 15548 15549# Tool to manipulate fat objects and archives on Mac OS X. 15550LIPO=$lt_LIPO 15551 15552# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15553OTOOL=$lt_OTOOL 15554 15555# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15556OTOOL64=$lt_OTOOL64 15557 15558# Old archive suffix (normally "a"). 15559libext=$libext 15560 15561# Shared library suffix (normally ".so"). 15562shrext_cmds=$lt_shrext_cmds 15563 15564# The commands to extract the exported symbol list from a shared archive. 15565extract_expsyms_cmds=$lt_extract_expsyms_cmds 15566 15567# Variables whose values should be saved in libtool wrapper scripts and 15568# restored at link time. 15569variables_saved_for_relink=$lt_variables_saved_for_relink 15570 15571# Do we need the "lib" prefix for modules? 15572need_lib_prefix=$need_lib_prefix 15573 15574# Do we need a version for libraries? 15575need_version=$need_version 15576 15577# Library versioning type. 15578version_type=$version_type 15579 15580# Shared library runtime path variable. 15581runpath_var=$runpath_var 15582 15583# Shared library path variable. 15584shlibpath_var=$shlibpath_var 15585 15586# Is shlibpath searched before the hard-coded library search path? 15587shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15588 15589# Format of library name prefix. 15590libname_spec=$lt_libname_spec 15591 15592# List of archive names. First name is the real one, the rest are links. 15593# The last name is the one that the linker finds with -lNAME 15594library_names_spec=$lt_library_names_spec 15595 15596# The coded name of the library, if different from the real name. 15597soname_spec=$lt_soname_spec 15598 15599# Permission mode override for installation of shared libraries. 15600install_override_mode=$lt_install_override_mode 15601 15602# Command to use after installation of a shared archive. 15603postinstall_cmds=$lt_postinstall_cmds 15604 15605# Command to use after uninstallation of a shared archive. 15606postuninstall_cmds=$lt_postuninstall_cmds 15607 15608# Commands used to finish a libtool library installation in a directory. 15609finish_cmds=$lt_finish_cmds 15610 15611# As "finish_cmds", except a single script fragment to be evaled but 15612# not shown. 15613finish_eval=$lt_finish_eval 15614 15615# Whether we should hardcode library paths into libraries. 15616hardcode_into_libs=$hardcode_into_libs 15617 15618# Compile-time system search path for libraries. 15619sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15620 15621# Run-time system search path for libraries. 15622sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15623 15624# Whether dlopen is supported. 15625dlopen_support=$enable_dlopen 15626 15627# Whether dlopen of programs is supported. 15628dlopen_self=$enable_dlopen_self 15629 15630# Whether dlopen of statically linked programs is supported. 15631dlopen_self_static=$enable_dlopen_self_static 15632 15633# Commands to strip libraries. 15634old_striplib=$lt_old_striplib 15635striplib=$lt_striplib 15636 15637 15638# The linker used to build libraries. 15639LD=$lt_LD 15640 15641# How to create reloadable object files. 15642reload_flag=$lt_reload_flag 15643reload_cmds=$lt_reload_cmds 15644 15645# Commands used to build an old-style archive. 15646old_archive_cmds=$lt_old_archive_cmds 15647 15648# A language specific compiler. 15649CC=$lt_compiler 15650 15651# Is the compiler the GNU compiler? 15652with_gcc=$GCC 15653 15654# Compiler flag to turn off builtin functions. 15655no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15656 15657# Additional compiler flags for building library objects. 15658pic_flag=$lt_lt_prog_compiler_pic 15659 15660# How to pass a linker flag through the compiler. 15661wl=$lt_lt_prog_compiler_wl 15662 15663# Compiler flag to prevent dynamic linking. 15664link_static_flag=$lt_lt_prog_compiler_static 15665 15666# Does compiler simultaneously support -c and -o options? 15667compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15668 15669# Whether or not to add -lc for building shared libraries. 15670build_libtool_need_lc=$archive_cmds_need_lc 15671 15672# Whether or not to disallow shared libs when runtime libs are static. 15673allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15674 15675# Compiler flag to allow reflexive dlopens. 15676export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15677 15678# Compiler flag to generate shared objects directly from archives. 15679whole_archive_flag_spec=$lt_whole_archive_flag_spec 15680 15681# Whether the compiler copes with passing no objects directly. 15682compiler_needs_object=$lt_compiler_needs_object 15683 15684# Create an old-style archive from a shared archive. 15685old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15686 15687# Create a temporary old-style archive to link instead of a shared archive. 15688old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15689 15690# Commands used to build a shared archive. 15691archive_cmds=$lt_archive_cmds 15692archive_expsym_cmds=$lt_archive_expsym_cmds 15693 15694# Commands used to build a loadable module if different from building 15695# a shared archive. 15696module_cmds=$lt_module_cmds 15697module_expsym_cmds=$lt_module_expsym_cmds 15698 15699# Whether we are building with GNU ld or not. 15700with_gnu_ld=$lt_with_gnu_ld 15701 15702# Flag that allows shared libraries with undefined symbols to be built. 15703allow_undefined_flag=$lt_allow_undefined_flag 15704 15705# Flag that enforces no undefined symbols. 15706no_undefined_flag=$lt_no_undefined_flag 15707 15708# Flag to hardcode \$libdir into a binary during linking. 15709# This must work even if \$libdir does not exist 15710hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15711 15712# Whether we need a single "-rpath" flag with a separated argument. 15713hardcode_libdir_separator=$lt_hardcode_libdir_separator 15714 15715# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15716# DIR into the resulting binary. 15717hardcode_direct=$hardcode_direct 15718 15719# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15720# DIR into the resulting binary and the resulting library dependency is 15721# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15722# library is relocated. 15723hardcode_direct_absolute=$hardcode_direct_absolute 15724 15725# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15726# into the resulting binary. 15727hardcode_minus_L=$hardcode_minus_L 15728 15729# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15730# into the resulting binary. 15731hardcode_shlibpath_var=$hardcode_shlibpath_var 15732 15733# Set to "yes" if building a shared library automatically hardcodes DIR 15734# into the library and all subsequent libraries and executables linked 15735# against it. 15736hardcode_automatic=$hardcode_automatic 15737 15738# Set to yes if linker adds runtime paths of dependent libraries 15739# to runtime path list. 15740inherit_rpath=$inherit_rpath 15741 15742# Whether libtool must link a program against all its dependency libraries. 15743link_all_deplibs=$link_all_deplibs 15744 15745# Set to "yes" if exported symbols are required. 15746always_export_symbols=$always_export_symbols 15747 15748# The commands to list exported symbols. 15749export_symbols_cmds=$lt_export_symbols_cmds 15750 15751# Symbols that should not be listed in the preloaded symbols. 15752exclude_expsyms=$lt_exclude_expsyms 15753 15754# Symbols that must always be exported. 15755include_expsyms=$lt_include_expsyms 15756 15757# Commands necessary for linking programs (against libraries) with templates. 15758prelink_cmds=$lt_prelink_cmds 15759 15760# Commands necessary for finishing linking programs. 15761postlink_cmds=$lt_postlink_cmds 15762 15763# Specify filename containing input files. 15764file_list_spec=$lt_file_list_spec 15765 15766# How to hardcode a shared library path into an executable. 15767hardcode_action=$hardcode_action 15768 15769# ### END LIBTOOL CONFIG 15770 15771_LT_EOF 15772 15773 case $host_os in 15774 aix3*) 15775 cat <<\_LT_EOF >> "$cfgfile" 15776# AIX sometimes has problems with the GCC collect2 program. For some 15777# reason, if we set the COLLECT_NAMES environment variable, the problems 15778# vanish in a puff of smoke. 15779if test "X${COLLECT_NAMES+set}" != Xset; then 15780 COLLECT_NAMES= 15781 export COLLECT_NAMES 15782fi 15783_LT_EOF 15784 ;; 15785 esac 15786 15787 15788ltmain="$ac_aux_dir/ltmain.sh" 15789 15790 15791 # We use sed instead of cat because bash on DJGPP gets confused if 15792 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15793 # text mode, it properly converts lines to CR/LF. This bash problem 15794 # is reportedly fixed, but why not run on old versions too? 15795 sed '$q' "$ltmain" >> "$cfgfile" \ 15796 || (rm -f "$cfgfile"; exit 1) 15797 15798 if test x"$xsi_shell" = xyes; then 15799 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 15800func_dirname ()\ 15801{\ 15802\ case ${1} in\ 15803\ */*) func_dirname_result="${1%/*}${2}" ;;\ 15804\ * ) func_dirname_result="${3}" ;;\ 15805\ esac\ 15806} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 15807 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15808 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15809test 0 -eq $? || _lt_function_replace_fail=: 15810 15811 15812 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 15813func_basename ()\ 15814{\ 15815\ func_basename_result="${1##*/}"\ 15816} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 15817 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15818 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15819test 0 -eq $? || _lt_function_replace_fail=: 15820 15821 15822 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 15823func_dirname_and_basename ()\ 15824{\ 15825\ case ${1} in\ 15826\ */*) func_dirname_result="${1%/*}${2}" ;;\ 15827\ * ) func_dirname_result="${3}" ;;\ 15828\ esac\ 15829\ func_basename_result="${1##*/}"\ 15830} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 15831 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15832 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15833test 0 -eq $? || _lt_function_replace_fail=: 15834 15835 15836 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 15837func_stripname ()\ 15838{\ 15839\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 15840\ # positional parameters, so assign one to ordinary parameter first.\ 15841\ func_stripname_result=${3}\ 15842\ func_stripname_result=${func_stripname_result#"${1}"}\ 15843\ func_stripname_result=${func_stripname_result%"${2}"}\ 15844} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 15845 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15846 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15847test 0 -eq $? || _lt_function_replace_fail=: 15848 15849 15850 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 15851func_split_long_opt ()\ 15852{\ 15853\ func_split_long_opt_name=${1%%=*}\ 15854\ func_split_long_opt_arg=${1#*=}\ 15855} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 15856 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15857 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15858test 0 -eq $? || _lt_function_replace_fail=: 15859 15860 15861 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 15862func_split_short_opt ()\ 15863{\ 15864\ func_split_short_opt_arg=${1#??}\ 15865\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 15866} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 15867 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15868 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15869test 0 -eq $? || _lt_function_replace_fail=: 15870 15871 15872 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 15873func_lo2o ()\ 15874{\ 15875\ case ${1} in\ 15876\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 15877\ *) func_lo2o_result=${1} ;;\ 15878\ esac\ 15879} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 15880 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15881 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15882test 0 -eq $? || _lt_function_replace_fail=: 15883 15884 15885 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 15886func_xform ()\ 15887{\ 15888 func_xform_result=${1%.*}.lo\ 15889} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 15890 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15891 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15892test 0 -eq $? || _lt_function_replace_fail=: 15893 15894 15895 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 15896func_arith ()\ 15897{\ 15898 func_arith_result=$(( $* ))\ 15899} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 15900 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15901 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15902test 0 -eq $? || _lt_function_replace_fail=: 15903 15904 15905 sed -e '/^func_len ()$/,/^} # func_len /c\ 15906func_len ()\ 15907{\ 15908 func_len_result=${#1}\ 15909} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 15910 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15911 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15912test 0 -eq $? || _lt_function_replace_fail=: 15913 15914fi 15915 15916if test x"$lt_shell_append" = xyes; then 15917 sed -e '/^func_append ()$/,/^} # func_append /c\ 15918func_append ()\ 15919{\ 15920 eval "${1}+=\\${2}"\ 15921} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 15922 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15923 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15924test 0 -eq $? || _lt_function_replace_fail=: 15925 15926 15927 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 15928func_append_quoted ()\ 15929{\ 15930\ func_quote_for_eval "${2}"\ 15931\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 15932} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 15933 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15934 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15935test 0 -eq $? || _lt_function_replace_fail=: 15936 15937 15938 # Save a `func_append' function call where possible by direct use of '+=' 15939 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 15940 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15941 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15942 test 0 -eq $? || _lt_function_replace_fail=: 15943else 15944 # Save a `func_append' function call even when '+=' is not available 15945 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 15946 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15947 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15948 test 0 -eq $? || _lt_function_replace_fail=: 15949fi 15950 15951if test x"$_lt_function_replace_fail" = x":"; then 15952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 15953$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 15954fi 15955 15956 15957 mv -f "$cfgfile" "$ofile" || 15958 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15959 chmod +x "$ofile" 15960 15961 ;; 15962 15963 esac 15964done # for ac_tag 15965 15966 15967as_fn_exit 0 15968_ACEOF 15969ac_clean_files=$ac_clean_files_save 15970 15971test $ac_write_fail = 0 || 15972 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15973 15974 15975# configure is writing to config.log, and then calls config.status. 15976# config.status does its own redirection, appending to config.log. 15977# Unfortunately, on DOS this fails, as config.log is still kept open 15978# by configure, so config.status won't be able to write to it; its 15979# output is simply discarded. So we exec the FD to /dev/null, 15980# effectively closing config.log, so it can be properly (re)opened and 15981# appended to by config.status. When coming back to configure, we 15982# need to make the FD available again. 15983if test "$no_create" != yes; then 15984 ac_cs_success=: 15985 ac_config_status_args= 15986 test "$silent" = yes && 15987 ac_config_status_args="$ac_config_status_args --quiet" 15988 exec 5>/dev/null 15989 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15990 exec 5>>config.log 15991 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15992 # would make configure fail if this is the last instruction. 15993 $ac_cs_success || as_fn_exit 1 15994fi 15995if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15997$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15998fi 15999 16000 16001