1@%:@! /bin/sh 2@%:@ Guess values for system-dependent variables and create Makefiles. 3@%:@ Generated by GNU Autoconf 2.69 for liblscp 0.9.4. 4@%:@ 5@%:@ Report bugs to <rncbc@rncbc.org>. 6@%:@ 7@%:@ 8@%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9@%:@ 10@%:@ 11@%:@ This configure script is free software; the Free Software Foundation 12@%:@ gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in @%:@( 28 *posix*) : 29 set -o posix ;; @%:@( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in @%:@( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in @%:@(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in @%:@ (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in @%:@( 172 *posix*) : 173 set -o posix ;; @%:@( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in @%:@( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in @%:@ (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and rncbc@rncbc.org 278$0: about your system, including any error possibly output 279$0: before this message. Then install a modern shell, or 280$0: manually run the script under such a shell if you do 281$0: have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296@%:@ as_fn_unset VAR 297@%:@ --------------- 298@%:@ Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305@%:@ as_fn_set_status STATUS 306@%:@ ----------------------- 307@%:@ Set @S|@? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} @%:@ as_fn_set_status 312 313@%:@ as_fn_exit STATUS 314@%:@ ----------------- 315@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} @%:@ as_fn_exit 322 323@%:@ as_fn_mkdir_p 324@%:@ ------------- 325@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} @%:@ as_fn_mkdir_p 370 371@%:@ as_fn_executable_p FILE 372@%:@ ----------------------- 373@%:@ Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} @%:@ as_fn_executable_p 378@%:@ as_fn_append VAR VALUE 379@%:@ ---------------------- 380@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take 381@%:@ advantage of any shell optimizations that allow amortized linear growth over 382@%:@ repeated appends, instead of the typical quadratic growth present in naive 383@%:@ implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396@%:@ as_fn_arith ARG... 397@%:@ ------------------ 398@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the 399@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments 400@%:@ must be portable across @S|@(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] 415@%:@ ---------------------------------------- 416@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418@%:@ script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} @%:@ as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in @%:@((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIB@&t@OBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='liblscp' 592PACKAGE_TARNAME='liblscp' 593PACKAGE_VERSION='0.9.4' 594PACKAGE_STRING='liblscp 0.9.4' 595PACKAGE_BUGREPORT='rncbc@rncbc.org' 596PACKAGE_URL='' 597 598ac_unique_file="src/client.c" 599ac_default_prefix=/usr/local 600# Factoring default headers for most tests. 601ac_includes_default="\ 602#include <stdio.h> 603#ifdef HAVE_SYS_TYPES_H 604# include <sys/types.h> 605#endif 606#ifdef HAVE_SYS_STAT_H 607# include <sys/stat.h> 608#endif 609#ifdef STDC_HEADERS 610# include <stdlib.h> 611# include <stddef.h> 612#else 613# ifdef HAVE_STDLIB_H 614# include <stdlib.h> 615# endif 616#endif 617#ifdef HAVE_STRING_H 618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 619# include <memory.h> 620# endif 621# include <string.h> 622#endif 623#ifdef HAVE_STRINGS_H 624# include <strings.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_UNISTD_H 633# include <unistd.h> 634#endif" 635 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639LIB@&t@OBJS 640ac_doxygen 641WINDOWS_FALSE 642WINDOWS_TRUE 643CPP 644LT_SYS_LIBRARY_PATH 645OTOOL64 646OTOOL 647LIPO 648NMEDIT 649DSYMUTIL 650MANIFEST_TOOL 651RANLIB 652ac_ct_AR 653AR 654LN_S 655NM 656ac_ct_DUMPBIN 657DUMPBIN 658LD 659FGREP 660EGREP 661GREP 662SED 663LIBTOOL 664OBJDUMP 665DLLTOOL 666AS 667host_os 668host_vendor 669host_cpu 670host 671build_os 672build_vendor 673build_cpu 674build 675am__fastdepCC_FALSE 676am__fastdepCC_TRUE 677CCDEPMODE 678am__nodep 679AMDEPBACKSLASH 680AMDEP_FALSE 681AMDEP_TRUE 682am__include 683DEPDIR 684OBJEXT 685EXEEXT 686ac_ct_CC 687CPPFLAGS 688LDFLAGS 689CFLAGS 690CC 691ac_includedir 692ac_libdir 693ac_prefix 694ac_version 695SHARED_VERSION_INFO 696AM_BACKSLASH 697AM_DEFAULT_VERBOSITY 698AM_DEFAULT_V 699AM_V 700am__untar 701am__tar 702AMTAR 703am__leading_dot 704SET_MAKE 705AWK 706mkdir_p 707MKDIR_P 708INSTALL_STRIP_PROGRAM 709STRIP 710install_sh 711MAKEINFO 712AUTOHEADER 713AUTOMAKE 714AUTOCONF 715ACLOCAL 716VERSION 717PACKAGE 718CYGPATH_W 719am__isrc 720INSTALL_DATA 721INSTALL_SCRIPT 722INSTALL_PROGRAM 723target_alias 724host_alias 725build_alias 726LIBS 727ECHO_T 728ECHO_N 729ECHO_C 730DEFS 731mandir 732localedir 733libdir 734psdir 735pdfdir 736dvidir 737htmldir 738infodir 739docdir 740oldincludedir 741includedir 742localstatedir 743sharedstatedir 744sysconfdir 745datadir 746datarootdir 747libexecdir 748sbindir 749bindir 750program_transform_name 751prefix 752exec_prefix 753PACKAGE_URL 754PACKAGE_BUGREPORT 755PACKAGE_STRING 756PACKAGE_VERSION 757PACKAGE_TARNAME 758PACKAGE_NAME 759PATH_SEPARATOR 760SHELL 761am__quote' 762ac_subst_files='' 763ac_user_opts=' 764enable_option_checking 765enable_silent_rules 766enable_debug 767enable_dependency_tracking 768enable_shared 769enable_static 770with_pic 771enable_fast_install 772with_aix_soname 773with_gnu_ld 774with_sysroot 775enable_libtool_lock 776' 777 ac_precious_vars='build_alias 778host_alias 779target_alias 780CC 781CFLAGS 782LDFLAGS 783LIBS 784CPPFLAGS 785LT_SYS_LIBRARY_PATH 786CPP' 787 788 789# Initialize some variables set by options. 790ac_init_help= 791ac_init_version=false 792ac_unrecognized_opts= 793ac_unrecognized_sep= 794# The variables have the same names as the options, with 795# dashes changed to underlines. 796cache_file=/dev/null 797exec_prefix=NONE 798no_create= 799no_recursion= 800prefix=NONE 801program_prefix=NONE 802program_suffix=NONE 803program_transform_name=s,x,x, 804silent= 805site= 806srcdir= 807verbose= 808x_includes=NONE 809x_libraries=NONE 810 811# Installation directory options. 812# These are left unexpanded so users can "make install exec_prefix=/foo" 813# and all the variables that are supposed to be based on exec_prefix 814# by default will actually change. 815# Use braces instead of parens because sh, perl, etc. also accept them. 816# (The list follows the same order as the GNU Coding Standards.) 817bindir='${exec_prefix}/bin' 818sbindir='${exec_prefix}/sbin' 819libexecdir='${exec_prefix}/libexec' 820datarootdir='${prefix}/share' 821datadir='${datarootdir}' 822sysconfdir='${prefix}/etc' 823sharedstatedir='${prefix}/com' 824localstatedir='${prefix}/var' 825includedir='${prefix}/include' 826oldincludedir='/usr/include' 827docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 828infodir='${datarootdir}/info' 829htmldir='${docdir}' 830dvidir='${docdir}' 831pdfdir='${docdir}' 832psdir='${docdir}' 833libdir='${exec_prefix}/lib' 834localedir='${datarootdir}/locale' 835mandir='${datarootdir}/man' 836 837ac_prev= 838ac_dashdash= 839for ac_option 840do 841 # If the previous option needs an argument, assign it. 842 if test -n "$ac_prev"; then 843 eval $ac_prev=\$ac_option 844 ac_prev= 845 continue 846 fi 847 848 case $ac_option in 849 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 850 *=) ac_optarg= ;; 851 *) ac_optarg=yes ;; 852 esac 853 854 # Accept the important Cygnus configure options, so we can diagnose typos. 855 856 case $ac_dashdash$ac_option in 857 --) 858 ac_dashdash=yes ;; 859 860 -bindir | --bindir | --bindi | --bind | --bin | --bi) 861 ac_prev=bindir ;; 862 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 863 bindir=$ac_optarg ;; 864 865 -build | --build | --buil | --bui | --bu) 866 ac_prev=build_alias ;; 867 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 868 build_alias=$ac_optarg ;; 869 870 -cache-file | --cache-file | --cache-fil | --cache-fi \ 871 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 872 ac_prev=cache_file ;; 873 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 874 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 875 cache_file=$ac_optarg ;; 876 877 --config-cache | -C) 878 cache_file=config.cache ;; 879 880 -datadir | --datadir | --datadi | --datad) 881 ac_prev=datadir ;; 882 -datadir=* | --datadir=* | --datadi=* | --datad=*) 883 datadir=$ac_optarg ;; 884 885 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 886 | --dataroo | --dataro | --datar) 887 ac_prev=datarootdir ;; 888 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 889 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 890 datarootdir=$ac_optarg ;; 891 892 -disable-* | --disable-*) 893 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 894 # Reject names that are not valid shell variable names. 895 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 896 as_fn_error $? "invalid feature name: $ac_useropt" 897 ac_useropt_orig=$ac_useropt 898 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 899 case $ac_user_opts in 900 *" 901"enable_$ac_useropt" 902"*) ;; 903 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 904 ac_unrecognized_sep=', ';; 905 esac 906 eval enable_$ac_useropt=no ;; 907 908 -docdir | --docdir | --docdi | --doc | --do) 909 ac_prev=docdir ;; 910 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 911 docdir=$ac_optarg ;; 912 913 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 914 ac_prev=dvidir ;; 915 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 916 dvidir=$ac_optarg ;; 917 918 -enable-* | --enable-*) 919 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 920 # Reject names that are not valid shell variable names. 921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 922 as_fn_error $? "invalid feature name: $ac_useropt" 923 ac_useropt_orig=$ac_useropt 924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 925 case $ac_user_opts in 926 *" 927"enable_$ac_useropt" 928"*) ;; 929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 930 ac_unrecognized_sep=', ';; 931 esac 932 eval enable_$ac_useropt=\$ac_optarg ;; 933 934 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 935 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 936 | --exec | --exe | --ex) 937 ac_prev=exec_prefix ;; 938 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 939 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 940 | --exec=* | --exe=* | --ex=*) 941 exec_prefix=$ac_optarg ;; 942 943 -gas | --gas | --ga | --g) 944 # Obsolete; use --with-gas. 945 with_gas=yes ;; 946 947 -help | --help | --hel | --he | -h) 948 ac_init_help=long ;; 949 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 950 ac_init_help=recursive ;; 951 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 952 ac_init_help=short ;; 953 954 -host | --host | --hos | --ho) 955 ac_prev=host_alias ;; 956 -host=* | --host=* | --hos=* | --ho=*) 957 host_alias=$ac_optarg ;; 958 959 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 960 ac_prev=htmldir ;; 961 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 962 | --ht=*) 963 htmldir=$ac_optarg ;; 964 965 -includedir | --includedir | --includedi | --included | --include \ 966 | --includ | --inclu | --incl | --inc) 967 ac_prev=includedir ;; 968 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 969 | --includ=* | --inclu=* | --incl=* | --inc=*) 970 includedir=$ac_optarg ;; 971 972 -infodir | --infodir | --infodi | --infod | --info | --inf) 973 ac_prev=infodir ;; 974 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 975 infodir=$ac_optarg ;; 976 977 -libdir | --libdir | --libdi | --libd) 978 ac_prev=libdir ;; 979 -libdir=* | --libdir=* | --libdi=* | --libd=*) 980 libdir=$ac_optarg ;; 981 982 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 983 | --libexe | --libex | --libe) 984 ac_prev=libexecdir ;; 985 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 986 | --libexe=* | --libex=* | --libe=*) 987 libexecdir=$ac_optarg ;; 988 989 -localedir | --localedir | --localedi | --localed | --locale) 990 ac_prev=localedir ;; 991 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 992 localedir=$ac_optarg ;; 993 994 -localstatedir | --localstatedir | --localstatedi | --localstated \ 995 | --localstate | --localstat | --localsta | --localst | --locals) 996 ac_prev=localstatedir ;; 997 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 998 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 999 localstatedir=$ac_optarg ;; 1000 1001 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1002 ac_prev=mandir ;; 1003 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1004 mandir=$ac_optarg ;; 1005 1006 -nfp | --nfp | --nf) 1007 # Obsolete; use --without-fp. 1008 with_fp=no ;; 1009 1010 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1011 | --no-cr | --no-c | -n) 1012 no_create=yes ;; 1013 1014 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1015 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1016 no_recursion=yes ;; 1017 1018 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1019 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1020 | --oldin | --oldi | --old | --ol | --o) 1021 ac_prev=oldincludedir ;; 1022 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1023 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1024 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1025 oldincludedir=$ac_optarg ;; 1026 1027 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1028 ac_prev=prefix ;; 1029 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1030 prefix=$ac_optarg ;; 1031 1032 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1033 | --program-pre | --program-pr | --program-p) 1034 ac_prev=program_prefix ;; 1035 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1036 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1037 program_prefix=$ac_optarg ;; 1038 1039 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1040 | --program-suf | --program-su | --program-s) 1041 ac_prev=program_suffix ;; 1042 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1043 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1044 program_suffix=$ac_optarg ;; 1045 1046 -program-transform-name | --program-transform-name \ 1047 | --program-transform-nam | --program-transform-na \ 1048 | --program-transform-n | --program-transform- \ 1049 | --program-transform | --program-transfor \ 1050 | --program-transfo | --program-transf \ 1051 | --program-trans | --program-tran \ 1052 | --progr-tra | --program-tr | --program-t) 1053 ac_prev=program_transform_name ;; 1054 -program-transform-name=* | --program-transform-name=* \ 1055 | --program-transform-nam=* | --program-transform-na=* \ 1056 | --program-transform-n=* | --program-transform-=* \ 1057 | --program-transform=* | --program-transfor=* \ 1058 | --program-transfo=* | --program-transf=* \ 1059 | --program-trans=* | --program-tran=* \ 1060 | --progr-tra=* | --program-tr=* | --program-t=*) 1061 program_transform_name=$ac_optarg ;; 1062 1063 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1064 ac_prev=pdfdir ;; 1065 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1066 pdfdir=$ac_optarg ;; 1067 1068 -psdir | --psdir | --psdi | --psd | --ps) 1069 ac_prev=psdir ;; 1070 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1071 psdir=$ac_optarg ;; 1072 1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1074 | -silent | --silent | --silen | --sile | --sil) 1075 silent=yes ;; 1076 1077 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1078 ac_prev=sbindir ;; 1079 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1080 | --sbi=* | --sb=*) 1081 sbindir=$ac_optarg ;; 1082 1083 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1084 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1085 | --sharedst | --shareds | --shared | --share | --shar \ 1086 | --sha | --sh) 1087 ac_prev=sharedstatedir ;; 1088 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1089 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1090 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1091 | --sha=* | --sh=*) 1092 sharedstatedir=$ac_optarg ;; 1093 1094 -site | --site | --sit) 1095 ac_prev=site ;; 1096 -site=* | --site=* | --sit=*) 1097 site=$ac_optarg ;; 1098 1099 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1100 ac_prev=srcdir ;; 1101 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1102 srcdir=$ac_optarg ;; 1103 1104 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1105 | --syscon | --sysco | --sysc | --sys | --sy) 1106 ac_prev=sysconfdir ;; 1107 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1108 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1109 sysconfdir=$ac_optarg ;; 1110 1111 -target | --target | --targe | --targ | --tar | --ta | --t) 1112 ac_prev=target_alias ;; 1113 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1114 target_alias=$ac_optarg ;; 1115 1116 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1117 verbose=yes ;; 1118 1119 -version | --version | --versio | --versi | --vers | -V) 1120 ac_init_version=: ;; 1121 1122 -with-* | --with-*) 1123 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1124 # Reject names that are not valid shell variable names. 1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1126 as_fn_error $? "invalid package name: $ac_useropt" 1127 ac_useropt_orig=$ac_useropt 1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1129 case $ac_user_opts in 1130 *" 1131"with_$ac_useropt" 1132"*) ;; 1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1134 ac_unrecognized_sep=', ';; 1135 esac 1136 eval with_$ac_useropt=\$ac_optarg ;; 1137 1138 -without-* | --without-*) 1139 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1140 # Reject names that are not valid shell variable names. 1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1142 as_fn_error $? "invalid package name: $ac_useropt" 1143 ac_useropt_orig=$ac_useropt 1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1145 case $ac_user_opts in 1146 *" 1147"with_$ac_useropt" 1148"*) ;; 1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1150 ac_unrecognized_sep=', ';; 1151 esac 1152 eval with_$ac_useropt=no ;; 1153 1154 --x) 1155 # Obsolete; use --with-x. 1156 with_x=yes ;; 1157 1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1159 | --x-incl | --x-inc | --x-in | --x-i) 1160 ac_prev=x_includes ;; 1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1163 x_includes=$ac_optarg ;; 1164 1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1167 ac_prev=x_libraries ;; 1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1170 x_libraries=$ac_optarg ;; 1171 1172 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1173Try \`$0 --help' for more information" 1174 ;; 1175 1176 *=*) 1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1178 # Reject names that are not valid shell variable names. 1179 case $ac_envvar in #( 1180 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1181 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1182 esac 1183 eval $ac_envvar=\$ac_optarg 1184 export $ac_envvar ;; 1185 1186 *) 1187 # FIXME: should be removed in autoconf 3.0. 1188 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1190 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1191 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1192 ;; 1193 1194 esac 1195done 1196 1197if test -n "$ac_prev"; then 1198 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1199 as_fn_error $? "missing argument to $ac_option" 1200fi 1201 1202if test -n "$ac_unrecognized_opts"; then 1203 case $enable_option_checking in 1204 no) ;; 1205 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1206 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1207 esac 1208fi 1209 1210# Check all directory arguments for consistency. 1211for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1212 datadir sysconfdir sharedstatedir localstatedir includedir \ 1213 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1214 libdir localedir mandir 1215do 1216 eval ac_val=\$$ac_var 1217 # Remove trailing slashes. 1218 case $ac_val in 1219 */ ) 1220 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1221 eval $ac_var=\$ac_val;; 1222 esac 1223 # Be sure to have absolute directory names. 1224 case $ac_val in 1225 [\\/$]* | ?:[\\/]* ) continue;; 1226 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1227 esac 1228 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1229done 1230 1231# There might be people who depend on the old broken behavior: `$host' 1232# used to hold the argument of --host etc. 1233# FIXME: To remove some day. 1234build=$build_alias 1235host=$host_alias 1236target=$target_alias 1237 1238# FIXME: To remove some day. 1239if test "x$host_alias" != x; then 1240 if test "x$build_alias" = x; then 1241 cross_compiling=maybe 1242 elif test "x$build_alias" != "x$host_alias"; then 1243 cross_compiling=yes 1244 fi 1245fi 1246 1247ac_tool_prefix= 1248test -n "$host_alias" && ac_tool_prefix=$host_alias- 1249 1250test "$silent" = yes && exec 6>/dev/null 1251 1252 1253ac_pwd=`pwd` && test -n "$ac_pwd" && 1254ac_ls_di=`ls -di .` && 1255ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1256 as_fn_error $? "working directory cannot be determined" 1257test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1258 as_fn_error $? "pwd does not report name of working directory" 1259 1260 1261# Find the source files, if location was not specified. 1262if test -z "$srcdir"; then 1263 ac_srcdir_defaulted=yes 1264 # Try the directory containing this script, then the parent directory. 1265 ac_confdir=`$as_dirname -- "$as_myself" || 1266$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1267 X"$as_myself" : 'X\(//\)[^/]' \| \ 1268 X"$as_myself" : 'X\(//\)$' \| \ 1269 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1270$as_echo X"$as_myself" | 1271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1272 s//\1/ 1273 q 1274 } 1275 /^X\(\/\/\)[^/].*/{ 1276 s//\1/ 1277 q 1278 } 1279 /^X\(\/\/\)$/{ 1280 s//\1/ 1281 q 1282 } 1283 /^X\(\/\).*/{ 1284 s//\1/ 1285 q 1286 } 1287 s/.*/./; q'` 1288 srcdir=$ac_confdir 1289 if test ! -r "$srcdir/$ac_unique_file"; then 1290 srcdir=.. 1291 fi 1292else 1293 ac_srcdir_defaulted=no 1294fi 1295if test ! -r "$srcdir/$ac_unique_file"; then 1296 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1297 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1298fi 1299ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1300ac_abs_confdir=`( 1301 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1302 pwd)` 1303# When building in place, set srcdir=. 1304if test "$ac_abs_confdir" = "$ac_pwd"; then 1305 srcdir=. 1306fi 1307# Remove unnecessary trailing slashes from srcdir. 1308# Double slashes in file names in object file debugging info 1309# mess up M-x gdb in Emacs. 1310case $srcdir in 1311*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1312esac 1313for ac_var in $ac_precious_vars; do 1314 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1315 eval ac_env_${ac_var}_value=\$${ac_var} 1316 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1317 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1318done 1319 1320# 1321# Report the --help message. 1322# 1323if test "$ac_init_help" = "long"; then 1324 # Omit some internal or obsolete options to make the list less imposing. 1325 # This message is too long to be a string in the A/UX 3.1 sh. 1326 cat <<_ACEOF 1327\`configure' configures liblscp 0.9.4 to adapt to many kinds of systems. 1328 1329Usage: $0 [OPTION]... [VAR=VALUE]... 1330 1331To assign environment variables (e.g., CC, CFLAGS...), specify them as 1332VAR=VALUE. See below for descriptions of some of the useful variables. 1333 1334Defaults for the options are specified in brackets. 1335 1336Configuration: 1337 -h, --help display this help and exit 1338 --help=short display options specific to this package 1339 --help=recursive display the short help of all the included packages 1340 -V, --version display version information and exit 1341 -q, --quiet, --silent do not print \`checking ...' messages 1342 --cache-file=FILE cache test results in FILE [disabled] 1343 -C, --config-cache alias for \`--cache-file=config.cache' 1344 -n, --no-create do not create output files 1345 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1346 1347Installation directories: 1348 --prefix=PREFIX install architecture-independent files in PREFIX 1349 @<:@@S|@ac_default_prefix@:>@ 1350 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1351 @<:@PREFIX@:>@ 1352 1353By default, \`make install' will install all the files in 1354\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1355an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1356for instance \`--prefix=\$HOME'. 1357 1358For better control, use the options below. 1359 1360Fine tuning of the installation directories: 1361 --bindir=DIR user executables [EPREFIX/bin] 1362 --sbindir=DIR system admin executables [EPREFIX/sbin] 1363 --libexecdir=DIR program executables [EPREFIX/libexec] 1364 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1365 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1366 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1367 --libdir=DIR object code libraries [EPREFIX/lib] 1368 --includedir=DIR C header files [PREFIX/include] 1369 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1370 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1371 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1372 --infodir=DIR info documentation [DATAROOTDIR/info] 1373 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1374 --mandir=DIR man documentation [DATAROOTDIR/man] 1375 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/liblscp@:>@ 1376 --htmldir=DIR html documentation [DOCDIR] 1377 --dvidir=DIR dvi documentation [DOCDIR] 1378 --pdfdir=DIR pdf documentation [DOCDIR] 1379 --psdir=DIR ps documentation [DOCDIR] 1380_ACEOF 1381 1382 cat <<\_ACEOF 1383 1384Program names: 1385 --program-prefix=PREFIX prepend PREFIX to installed program names 1386 --program-suffix=SUFFIX append SUFFIX to installed program names 1387 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1388 1389System types: 1390 --build=BUILD configure for building on BUILD [guessed] 1391 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1392_ACEOF 1393fi 1394 1395if test -n "$ac_init_help"; then 1396 case $ac_init_help in 1397 short | recursive ) echo "Configuration of liblscp 0.9.4:";; 1398 esac 1399 cat <<\_ACEOF 1400 1401Optional Features: 1402 --disable-option-checking ignore unrecognized --enable/--with options 1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1405 --enable-silent-rules less verbose build output (undo: "make V=1") 1406 --disable-silent-rules verbose build output (undo: "make V=0") 1407 --enable-debug enable debugging (default=no) 1408 --enable-dependency-tracking 1409 do not reject slow dependency extractors 1410 --disable-dependency-tracking 1411 speeds up one-time build 1412 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@ 1413 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@ 1414 --enable-fast-install@<:@=PKGS@:>@ 1415 optimize for fast installation @<:@default=yes@:>@ 1416 --disable-libtool-lock avoid locking (might break parallel builds) 1417 1418Optional Packages: 1419 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1420 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1421 --with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use 1422 both@:>@ 1423 --with-aix-soname=aix|svr4|both 1424 shared library versioning (aka "SONAME") variant to 1425 provide on AIX, @<:@default=aix@:>@. 1426 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@ 1427 --with-sysroot@<:@=DIR@:>@ Search for dependent libraries within DIR (or the 1428 compiler's sysroot if not specified). 1429 1430Some influential environment variables: 1431 CC C compiler command 1432 CFLAGS C compiler flags 1433 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1434 nonstandard directory <lib dir> 1435 LIBS libraries to pass to the linker, e.g. -l<library> 1436 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1437 you have headers in a nonstandard directory <include dir> 1438 LT_SYS_LIBRARY_PATH 1439 User-defined run-time library search path. 1440 CPP C preprocessor 1441 1442Use these variables to override the choices made by `configure' or to help 1443it to find libraries and programs with nonstandard names/locations. 1444 1445Report bugs to <rncbc@rncbc.org>. 1446_ACEOF 1447ac_status=$? 1448fi 1449 1450if test "$ac_init_help" = "recursive"; then 1451 # If there are subdirs, report their specific --help. 1452 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1453 test -d "$ac_dir" || 1454 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1455 continue 1456 ac_builddir=. 1457 1458case "$ac_dir" in 1459.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1460*) 1461 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1462 # A ".." for each directory in $ac_dir_suffix. 1463 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1464 case $ac_top_builddir_sub in 1465 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1466 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1467 esac ;; 1468esac 1469ac_abs_top_builddir=$ac_pwd 1470ac_abs_builddir=$ac_pwd$ac_dir_suffix 1471# for backward compatibility: 1472ac_top_builddir=$ac_top_build_prefix 1473 1474case $srcdir in 1475 .) # We are building in place. 1476 ac_srcdir=. 1477 ac_top_srcdir=$ac_top_builddir_sub 1478 ac_abs_top_srcdir=$ac_pwd ;; 1479 [\\/]* | ?:[\\/]* ) # Absolute name. 1480 ac_srcdir=$srcdir$ac_dir_suffix; 1481 ac_top_srcdir=$srcdir 1482 ac_abs_top_srcdir=$srcdir ;; 1483 *) # Relative name. 1484 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1485 ac_top_srcdir=$ac_top_build_prefix$srcdir 1486 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1487esac 1488ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1489 1490 cd "$ac_dir" || { ac_status=$?; continue; } 1491 # Check for guested configure. 1492 if test -f "$ac_srcdir/configure.gnu"; then 1493 echo && 1494 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1495 elif test -f "$ac_srcdir/configure"; then 1496 echo && 1497 $SHELL "$ac_srcdir/configure" --help=recursive 1498 else 1499 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1500 fi || ac_status=$? 1501 cd "$ac_pwd" || { ac_status=$?; break; } 1502 done 1503fi 1504 1505test -n "$ac_init_help" && exit $ac_status 1506if $ac_init_version; then 1507 cat <<\_ACEOF 1508liblscp configure 0.9.4 1509generated by GNU Autoconf 2.69 1510 1511Copyright (C) 2012 Free Software Foundation, Inc. 1512This configure script is free software; the Free Software Foundation 1513gives unlimited permission to copy, distribute and modify it. 1514_ACEOF 1515 exit 1516fi 1517 1518## ------------------------ ## 1519## Autoconf initialization. ## 1520## ------------------------ ## 1521 1522@%:@ ac_fn_c_try_compile LINENO 1523@%:@ -------------------------- 1524@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. 1525ac_fn_c_try_compile () 1526{ 1527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1528 rm -f conftest.$ac_objext 1529 if { { ac_try="$ac_compile" 1530case "(($ac_try" in 1531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1532 *) ac_try_echo=$ac_try;; 1533esac 1534eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1535$as_echo "$ac_try_echo"; } >&5 1536 (eval "$ac_compile") 2>conftest.err 1537 ac_status=$? 1538 if test -s conftest.err; then 1539 grep -v '^ *+' conftest.err >conftest.er1 1540 cat conftest.er1 >&5 1541 mv -f conftest.er1 conftest.err 1542 fi 1543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1544 test $ac_status = 0; } && { 1545 test -z "$ac_c_werror_flag" || 1546 test ! -s conftest.err 1547 } && test -s conftest.$ac_objext; then : 1548 ac_retval=0 1549else 1550 $as_echo "$as_me: failed program was:" >&5 1551sed 's/^/| /' conftest.$ac_ext >&5 1552 1553 ac_retval=1 1554fi 1555 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1556 as_fn_set_status $ac_retval 1557 1558} @%:@ ac_fn_c_try_compile 1559 1560@%:@ ac_fn_c_try_link LINENO 1561@%:@ ----------------------- 1562@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. 1563ac_fn_c_try_link () 1564{ 1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1566 rm -f conftest.$ac_objext conftest$ac_exeext 1567 if { { ac_try="$ac_link" 1568case "(($ac_try" in 1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1570 *) ac_try_echo=$ac_try;; 1571esac 1572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1573$as_echo "$ac_try_echo"; } >&5 1574 (eval "$ac_link") 2>conftest.err 1575 ac_status=$? 1576 if test -s conftest.err; then 1577 grep -v '^ *+' conftest.err >conftest.er1 1578 cat conftest.er1 >&5 1579 mv -f conftest.er1 conftest.err 1580 fi 1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1582 test $ac_status = 0; } && { 1583 test -z "$ac_c_werror_flag" || 1584 test ! -s conftest.err 1585 } && test -s conftest$ac_exeext && { 1586 test "$cross_compiling" = yes || 1587 test -x conftest$ac_exeext 1588 }; then : 1589 ac_retval=0 1590else 1591 $as_echo "$as_me: failed program was:" >&5 1592sed 's/^/| /' conftest.$ac_ext >&5 1593 1594 ac_retval=1 1595fi 1596 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1597 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1598 # interfere with the next link command; also delete a directory that is 1599 # left behind by Apple's compiler. We do this before executing the actions. 1600 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1602 as_fn_set_status $ac_retval 1603 1604} @%:@ ac_fn_c_try_link 1605 1606@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1607@%:@ ------------------------------------------------------- 1608@%:@ Tests whether HEADER exists and can be compiled using the include files in 1609@%:@ INCLUDES, setting the cache variable VAR accordingly. 1610ac_fn_c_check_header_compile () 1611{ 1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1614$as_echo_n "checking for $2... " >&6; } 1615if eval \${$3+:} false; then : 1616 $as_echo_n "(cached) " >&6 1617else 1618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1619/* end confdefs.h. */ 1620$4 1621@%:@include <$2> 1622_ACEOF 1623if ac_fn_c_try_compile "$LINENO"; then : 1624 eval "$3=yes" 1625else 1626 eval "$3=no" 1627fi 1628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1629fi 1630eval ac_res=\$$3 1631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1632$as_echo "$ac_res" >&6; } 1633 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1634 1635} @%:@ ac_fn_c_check_header_compile 1636 1637@%:@ ac_fn_c_try_cpp LINENO 1638@%:@ ---------------------- 1639@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded. 1640ac_fn_c_try_cpp () 1641{ 1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1643 if { { ac_try="$ac_cpp conftest.$ac_ext" 1644case "(($ac_try" in 1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1646 *) ac_try_echo=$ac_try;; 1647esac 1648eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1649$as_echo "$ac_try_echo"; } >&5 1650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1651 ac_status=$? 1652 if test -s conftest.err; then 1653 grep -v '^ *+' conftest.err >conftest.er1 1654 cat conftest.er1 >&5 1655 mv -f conftest.er1 conftest.err 1656 fi 1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1658 test $ac_status = 0; } > conftest.i && { 1659 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1660 test ! -s conftest.err 1661 }; then : 1662 ac_retval=0 1663else 1664 $as_echo "$as_me: failed program was:" >&5 1665sed 's/^/| /' conftest.$ac_ext >&5 1666 1667 ac_retval=1 1668fi 1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1670 as_fn_set_status $ac_retval 1671 1672} @%:@ ac_fn_c_try_cpp 1673 1674@%:@ ac_fn_c_try_run LINENO 1675@%:@ ---------------------- 1676@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes 1677@%:@ that executables *can* be run. 1678ac_fn_c_try_run () 1679{ 1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1681 if { { ac_try="$ac_link" 1682case "(($ac_try" in 1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1684 *) ac_try_echo=$ac_try;; 1685esac 1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1687$as_echo "$ac_try_echo"; } >&5 1688 (eval "$ac_link") 2>&5 1689 ac_status=$? 1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1691 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1692 { { case "(($ac_try" in 1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1694 *) ac_try_echo=$ac_try;; 1695esac 1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1697$as_echo "$ac_try_echo"; } >&5 1698 (eval "$ac_try") 2>&5 1699 ac_status=$? 1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1701 test $ac_status = 0; }; }; then : 1702 ac_retval=0 1703else 1704 $as_echo "$as_me: program exited with status $ac_status" >&5 1705 $as_echo "$as_me: failed program was:" >&5 1706sed 's/^/| /' conftest.$ac_ext >&5 1707 1708 ac_retval=$ac_status 1709fi 1710 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1712 as_fn_set_status $ac_retval 1713 1714} @%:@ ac_fn_c_try_run 1715 1716@%:@ ac_fn_c_check_func LINENO FUNC VAR 1717@%:@ ---------------------------------- 1718@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly 1719ac_fn_c_check_func () 1720{ 1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1723$as_echo_n "checking for $2... " >&6; } 1724if eval \${$3+:} false; then : 1725 $as_echo_n "(cached) " >&6 1726else 1727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1728/* end confdefs.h. */ 1729/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1730 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1731#define $2 innocuous_$2 1732 1733/* System header to define __stub macros and hopefully few prototypes, 1734 which can conflict with char $2 (); below. 1735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1736 <limits.h> exists even on freestanding compilers. */ 1737 1738#ifdef __STDC__ 1739# include <limits.h> 1740#else 1741# include <assert.h> 1742#endif 1743 1744#undef $2 1745 1746/* Override any GCC internal prototype to avoid an error. 1747 Use char because int might match the return type of a GCC 1748 builtin and then its argument prototype would still apply. */ 1749#ifdef __cplusplus 1750extern "C" 1751#endif 1752char $2 (); 1753/* The GNU C library defines this for functions which it implements 1754 to always fail with ENOSYS. Some functions are actually named 1755 something starting with __ and the normal name is an alias. */ 1756#if defined __stub_$2 || defined __stub___$2 1757choke me 1758#endif 1759 1760int 1761main () 1762{ 1763return $2 (); 1764 ; 1765 return 0; 1766} 1767_ACEOF 1768if ac_fn_c_try_link "$LINENO"; then : 1769 eval "$3=yes" 1770else 1771 eval "$3=no" 1772fi 1773rm -f core conftest.err conftest.$ac_objext \ 1774 conftest$ac_exeext conftest.$ac_ext 1775fi 1776eval ac_res=\$$3 1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1778$as_echo "$ac_res" >&6; } 1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1780 1781} @%:@ ac_fn_c_check_func 1782 1783@%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1784@%:@ ------------------------------------------- 1785@%:@ Tests whether TYPE exists after having included INCLUDES, setting cache 1786@%:@ variable VAR accordingly. 1787ac_fn_c_check_type () 1788{ 1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1791$as_echo_n "checking for $2... " >&6; } 1792if eval \${$3+:} false; then : 1793 $as_echo_n "(cached) " >&6 1794else 1795 eval "$3=no" 1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1797/* end confdefs.h. */ 1798$4 1799int 1800main () 1801{ 1802if (sizeof ($2)) 1803 return 0; 1804 ; 1805 return 0; 1806} 1807_ACEOF 1808if ac_fn_c_try_compile "$LINENO"; then : 1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1810/* end confdefs.h. */ 1811$4 1812int 1813main () 1814{ 1815if (sizeof (($2))) 1816 return 0; 1817 ; 1818 return 0; 1819} 1820_ACEOF 1821if ac_fn_c_try_compile "$LINENO"; then : 1822 1823else 1824 eval "$3=yes" 1825fi 1826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1827fi 1828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1829fi 1830eval ac_res=\$$3 1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1832$as_echo "$ac_res" >&6; } 1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1834 1835} @%:@ ac_fn_c_check_type 1836 1837@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1838@%:@ ------------------------------------------------------- 1839@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using 1840@%:@ the include files in INCLUDES and setting the cache variable VAR 1841@%:@ accordingly. 1842ac_fn_c_check_header_mongrel () 1843{ 1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1845 if eval \${$3+:} false; then : 1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1847$as_echo_n "checking for $2... " >&6; } 1848if eval \${$3+:} false; then : 1849 $as_echo_n "(cached) " >&6 1850fi 1851eval ac_res=\$$3 1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1853$as_echo "$ac_res" >&6; } 1854else 1855 # Is the header compilable? 1856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1857$as_echo_n "checking $2 usability... " >&6; } 1858cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1859/* end confdefs.h. */ 1860$4 1861@%:@include <$2> 1862_ACEOF 1863if ac_fn_c_try_compile "$LINENO"; then : 1864 ac_header_compiler=yes 1865else 1866 ac_header_compiler=no 1867fi 1868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1870$as_echo "$ac_header_compiler" >&6; } 1871 1872# Is the header present? 1873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1874$as_echo_n "checking $2 presence... " >&6; } 1875cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1876/* end confdefs.h. */ 1877@%:@include <$2> 1878_ACEOF 1879if ac_fn_c_try_cpp "$LINENO"; then : 1880 ac_header_preproc=yes 1881else 1882 ac_header_preproc=no 1883fi 1884rm -f conftest.err conftest.i conftest.$ac_ext 1885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1886$as_echo "$ac_header_preproc" >&6; } 1887 1888# So? What about this header? 1889case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1890 yes:no: ) 1891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1892$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1894$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1895 ;; 1896 no:yes:* ) 1897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1898$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1900$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1902$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1904$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1906$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1907( $as_echo "## ------------------------------ ## 1908## Report this to rncbc@rncbc.org ## 1909## ------------------------------ ##" 1910 ) | sed "s/^/$as_me: WARNING: /" >&2 1911 ;; 1912esac 1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1914$as_echo_n "checking for $2... " >&6; } 1915if eval \${$3+:} false; then : 1916 $as_echo_n "(cached) " >&6 1917else 1918 eval "$3=\$ac_header_compiler" 1919fi 1920eval ac_res=\$$3 1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1922$as_echo "$ac_res" >&6; } 1923fi 1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1925 1926} @%:@ ac_fn_c_check_header_mongrel 1927cat >config.log <<_ACEOF 1928This file contains any messages produced by compilers while 1929running configure, to aid debugging if configure makes a mistake. 1930 1931It was created by liblscp $as_me 0.9.4, which was 1932generated by GNU Autoconf 2.69. Invocation command line was 1933 1934 $ $0 $@ 1935 1936_ACEOF 1937exec 5>>config.log 1938{ 1939cat <<_ASUNAME 1940## --------- ## 1941## Platform. ## 1942## --------- ## 1943 1944hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1945uname -m = `(uname -m) 2>/dev/null || echo unknown` 1946uname -r = `(uname -r) 2>/dev/null || echo unknown` 1947uname -s = `(uname -s) 2>/dev/null || echo unknown` 1948uname -v = `(uname -v) 2>/dev/null || echo unknown` 1949 1950/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1951/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1952 1953/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1954/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1955/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1956/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1957/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1958/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1959/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1960 1961_ASUNAME 1962 1963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1964for as_dir in $PATH 1965do 1966 IFS=$as_save_IFS 1967 test -z "$as_dir" && as_dir=. 1968 $as_echo "PATH: $as_dir" 1969 done 1970IFS=$as_save_IFS 1971 1972} >&5 1973 1974cat >&5 <<_ACEOF 1975 1976 1977## ----------- ## 1978## Core tests. ## 1979## ----------- ## 1980 1981_ACEOF 1982 1983 1984# Keep a trace of the command line. 1985# Strip out --no-create and --no-recursion so they do not pile up. 1986# Strip out --silent because we don't want to record it for future runs. 1987# Also quote any args containing shell meta-characters. 1988# Make two passes to allow for proper duplicate-argument suppression. 1989ac_configure_args= 1990ac_configure_args0= 1991ac_configure_args1= 1992ac_must_keep_next=false 1993for ac_pass in 1 2 1994do 1995 for ac_arg 1996 do 1997 case $ac_arg in 1998 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1999 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2000 | -silent | --silent | --silen | --sile | --sil) 2001 continue ;; 2002 *\'*) 2003 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2004 esac 2005 case $ac_pass in 2006 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2007 2) 2008 as_fn_append ac_configure_args1 " '$ac_arg'" 2009 if test $ac_must_keep_next = true; then 2010 ac_must_keep_next=false # Got value, back to normal. 2011 else 2012 case $ac_arg in 2013 *=* | --config-cache | -C | -disable-* | --disable-* \ 2014 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2015 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2016 | -with-* | --with-* | -without-* | --without-* | --x) 2017 case "$ac_configure_args0 " in 2018 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2019 esac 2020 ;; 2021 -* ) ac_must_keep_next=true ;; 2022 esac 2023 fi 2024 as_fn_append ac_configure_args " '$ac_arg'" 2025 ;; 2026 esac 2027 done 2028done 2029{ ac_configure_args0=; unset ac_configure_args0;} 2030{ ac_configure_args1=; unset ac_configure_args1;} 2031 2032# When interrupted or exit'd, cleanup temporary files, and complete 2033# config.log. We remove comments because anyway the quotes in there 2034# would cause problems or look ugly. 2035# WARNING: Use '\'' to represent an apostrophe within the trap. 2036# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2037trap 'exit_status=$? 2038 # Save into config.log some information that might help in debugging. 2039 { 2040 echo 2041 2042 $as_echo "## ---------------- ## 2043## Cache variables. ## 2044## ---------------- ##" 2045 echo 2046 # The following way of writing the cache mishandles newlines in values, 2047( 2048 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2049 eval ac_val=\$$ac_var 2050 case $ac_val in #( 2051 *${as_nl}*) 2052 case $ac_var in #( 2053 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2054$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2055 esac 2056 case $ac_var in #( 2057 _ | IFS | as_nl) ;; #( 2058 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2059 *) { eval $ac_var=; unset $ac_var;} ;; 2060 esac ;; 2061 esac 2062 done 2063 (set) 2>&1 | 2064 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2065 *${as_nl}ac_space=\ *) 2066 sed -n \ 2067 "s/'\''/'\''\\\\'\'''\''/g; 2068 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2069 ;; #( 2070 *) 2071 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2072 ;; 2073 esac | 2074 sort 2075) 2076 echo 2077 2078 $as_echo "## ----------------- ## 2079## Output variables. ## 2080## ----------------- ##" 2081 echo 2082 for ac_var in $ac_subst_vars 2083 do 2084 eval ac_val=\$$ac_var 2085 case $ac_val in 2086 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2087 esac 2088 $as_echo "$ac_var='\''$ac_val'\''" 2089 done | sort 2090 echo 2091 2092 if test -n "$ac_subst_files"; then 2093 $as_echo "## ------------------- ## 2094## File substitutions. ## 2095## ------------------- ##" 2096 echo 2097 for ac_var in $ac_subst_files 2098 do 2099 eval ac_val=\$$ac_var 2100 case $ac_val in 2101 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2102 esac 2103 $as_echo "$ac_var='\''$ac_val'\''" 2104 done | sort 2105 echo 2106 fi 2107 2108 if test -s confdefs.h; then 2109 $as_echo "## ----------- ## 2110## confdefs.h. ## 2111## ----------- ##" 2112 echo 2113 cat confdefs.h 2114 echo 2115 fi 2116 test "$ac_signal" != 0 && 2117 $as_echo "$as_me: caught signal $ac_signal" 2118 $as_echo "$as_me: exit $exit_status" 2119 } >&5 2120 rm -f core *.core core.conftest.* && 2121 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2122 exit $exit_status 2123' 0 2124for ac_signal in 1 2 13 15; do 2125 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2126done 2127ac_signal=0 2128 2129# confdefs.h avoids OS command line length limits that DEFS can exceed. 2130rm -f -r conftest* confdefs.h 2131 2132$as_echo "/* confdefs.h */" > confdefs.h 2133 2134# Predefined preprocessor variables. 2135 2136cat >>confdefs.h <<_ACEOF 2137@%:@define PACKAGE_NAME "$PACKAGE_NAME" 2138_ACEOF 2139 2140cat >>confdefs.h <<_ACEOF 2141@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2142_ACEOF 2143 2144cat >>confdefs.h <<_ACEOF 2145@%:@define PACKAGE_VERSION "$PACKAGE_VERSION" 2146_ACEOF 2147 2148cat >>confdefs.h <<_ACEOF 2149@%:@define PACKAGE_STRING "$PACKAGE_STRING" 2150_ACEOF 2151 2152cat >>confdefs.h <<_ACEOF 2153@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2154_ACEOF 2155 2156cat >>confdefs.h <<_ACEOF 2157@%:@define PACKAGE_URL "$PACKAGE_URL" 2158_ACEOF 2159 2160 2161# Let the site file select an alternate cache file if it wants to. 2162# Prefer an explicitly selected file to automatically selected ones. 2163ac_site_file1=NONE 2164ac_site_file2=NONE 2165if test -n "$CONFIG_SITE"; then 2166 # We do not want a PATH search for config.site. 2167 case $CONFIG_SITE in @%:@(( 2168 -*) ac_site_file1=./$CONFIG_SITE;; 2169 */*) ac_site_file1=$CONFIG_SITE;; 2170 *) ac_site_file1=./$CONFIG_SITE;; 2171 esac 2172elif test "x$prefix" != xNONE; then 2173 ac_site_file1=$prefix/share/config.site 2174 ac_site_file2=$prefix/etc/config.site 2175else 2176 ac_site_file1=$ac_default_prefix/share/config.site 2177 ac_site_file2=$ac_default_prefix/etc/config.site 2178fi 2179for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2180do 2181 test "x$ac_site_file" = xNONE && continue 2182 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2183 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2184$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2185 sed 's/^/| /' "$ac_site_file" >&5 2186 . "$ac_site_file" \ 2187 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2188$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2189as_fn_error $? "failed to load site script $ac_site_file 2190See \`config.log' for more details" "$LINENO" 5; } 2191 fi 2192done 2193 2194if test -r "$cache_file"; then 2195 # Some versions of bash will fail to source /dev/null (special files 2196 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2197 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2198 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2199$as_echo "$as_me: loading cache $cache_file" >&6;} 2200 case $cache_file in 2201 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2202 *) . "./$cache_file";; 2203 esac 2204 fi 2205else 2206 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2207$as_echo "$as_me: creating cache $cache_file" >&6;} 2208 >$cache_file 2209fi 2210 2211# Check that the precious variables saved in the cache have kept the same 2212# value. 2213ac_cache_corrupted=false 2214for ac_var in $ac_precious_vars; do 2215 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2216 eval ac_new_set=\$ac_env_${ac_var}_set 2217 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2218 eval ac_new_val=\$ac_env_${ac_var}_value 2219 case $ac_old_set,$ac_new_set in 2220 set,) 2221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2222$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2223 ac_cache_corrupted=: ;; 2224 ,set) 2225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2226$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2227 ac_cache_corrupted=: ;; 2228 ,);; 2229 *) 2230 if test "x$ac_old_val" != "x$ac_new_val"; then 2231 # differences in whitespace do not lead to failure. 2232 ac_old_val_w=`echo x $ac_old_val` 2233 ac_new_val_w=`echo x $ac_new_val` 2234 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2236$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2237 ac_cache_corrupted=: 2238 else 2239 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2240$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2241 eval $ac_var=\$ac_old_val 2242 fi 2243 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2244$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2245 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2246$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2247 fi;; 2248 esac 2249 # Pass precious variables to config.status. 2250 if test "$ac_new_set" = set; then 2251 case $ac_new_val in 2252 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2253 *) ac_arg=$ac_var=$ac_new_val ;; 2254 esac 2255 case " $ac_configure_args " in 2256 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2257 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2258 esac 2259 fi 2260done 2261if $ac_cache_corrupted; then 2262 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2265$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2266 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2267fi 2268## -------------------- ## 2269## Main body of script. ## 2270## -------------------- ## 2271 2272ac_ext=c 2273ac_cpp='$CPP $CPPFLAGS' 2274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2276ac_compiler_gnu=$ac_cv_c_compiler_gnu 2277 2278 2279 2280 2281ac_config_headers="$ac_config_headers src/config.h" 2282 2283 2284 2285am__api_version='1.16' 2286 2287ac_aux_dir= 2288for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2289 if test -f "$ac_dir/install-sh"; then 2290 ac_aux_dir=$ac_dir 2291 ac_install_sh="$ac_aux_dir/install-sh -c" 2292 break 2293 elif test -f "$ac_dir/install.sh"; then 2294 ac_aux_dir=$ac_dir 2295 ac_install_sh="$ac_aux_dir/install.sh -c" 2296 break 2297 elif test -f "$ac_dir/shtool"; then 2298 ac_aux_dir=$ac_dir 2299 ac_install_sh="$ac_aux_dir/shtool install -c" 2300 break 2301 fi 2302done 2303if test -z "$ac_aux_dir"; then 2304 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2305fi 2306 2307# These three variables are undocumented and unsupported, 2308# and are intended to be withdrawn in a future Autoconf release. 2309# They can cause serious problems if a builder's source tree is in a directory 2310# whose full name contains unusual characters. 2311ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2312ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2313ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2314 2315 2316# Find a good install program. We prefer a C program (faster), 2317# so one script is as good as another. But avoid the broken or 2318# incompatible versions: 2319# SysV /etc/install, /usr/sbin/install 2320# SunOS /usr/etc/install 2321# IRIX /sbin/install 2322# AIX /bin/install 2323# AmigaOS /C/install, which installs bootblocks on floppy discs 2324# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2325# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2326# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2327# OS/2's system install, which has a completely different semantic 2328# ./install, which can be erroneously created by make from ./install.sh. 2329# Reject install programs that cannot install multiple files. 2330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2331$as_echo_n "checking for a BSD-compatible install... " >&6; } 2332if test -z "$INSTALL"; then 2333if ${ac_cv_path_install+:} false; then : 2334 $as_echo_n "(cached) " >&6 2335else 2336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2337for as_dir in $PATH 2338do 2339 IFS=$as_save_IFS 2340 test -z "$as_dir" && as_dir=. 2341 # Account for people who put trailing slashes in PATH elements. 2342case $as_dir/ in @%:@(( 2343 ./ | .// | /[cC]/* | \ 2344 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2345 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2346 /usr/ucb/* ) ;; 2347 *) 2348 # OSF1 and SCO ODT 3.0 have their own names for install. 2349 # Don't use installbsd from OSF since it installs stuff as root 2350 # by default. 2351 for ac_prog in ginstall scoinst install; do 2352 for ac_exec_ext in '' $ac_executable_extensions; do 2353 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2354 if test $ac_prog = install && 2355 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2356 # AIX install. It has an incompatible calling convention. 2357 : 2358 elif test $ac_prog = install && 2359 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2360 # program-specific install script used by HP pwplus--don't use. 2361 : 2362 else 2363 rm -rf conftest.one conftest.two conftest.dir 2364 echo one > conftest.one 2365 echo two > conftest.two 2366 mkdir conftest.dir 2367 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2368 test -s conftest.one && test -s conftest.two && 2369 test -s conftest.dir/conftest.one && 2370 test -s conftest.dir/conftest.two 2371 then 2372 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2373 break 3 2374 fi 2375 fi 2376 fi 2377 done 2378 done 2379 ;; 2380esac 2381 2382 done 2383IFS=$as_save_IFS 2384 2385rm -rf conftest.one conftest.two conftest.dir 2386 2387fi 2388 if test "${ac_cv_path_install+set}" = set; then 2389 INSTALL=$ac_cv_path_install 2390 else 2391 # As a last resort, use the slow shell script. Don't cache a 2392 # value for INSTALL within a source directory, because that will 2393 # break other packages using the cache if that directory is 2394 # removed, or if the value is a relative name. 2395 INSTALL=$ac_install_sh 2396 fi 2397fi 2398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2399$as_echo "$INSTALL" >&6; } 2400 2401# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2402# It thinks the first close brace ends the variable substitution. 2403test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2404 2405test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2406 2407test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2408 2409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2410$as_echo_n "checking whether build environment is sane... " >&6; } 2411# Reject unsafe characters in $srcdir or the absolute working directory 2412# name. Accept space and tab only in the latter. 2413am_lf=' 2414' 2415case `pwd` in 2416 *[\\\"\#\$\&\'\`$am_lf]*) 2417 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2418esac 2419case $srcdir in 2420 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2421 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2422esac 2423 2424# Do 'set' in a subshell so we don't clobber the current shell's 2425# arguments. Must try -L first in case configure is actually a 2426# symlink; some systems play weird games with the mod time of symlinks 2427# (eg FreeBSD returns the mod time of the symlink's containing 2428# directory). 2429if ( 2430 am_has_slept=no 2431 for am_try in 1 2; do 2432 echo "timestamp, slept: $am_has_slept" > conftest.file 2433 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2434 if test "$*" = "X"; then 2435 # -L didn't work. 2436 set X `ls -t "$srcdir/configure" conftest.file` 2437 fi 2438 if test "$*" != "X $srcdir/configure conftest.file" \ 2439 && test "$*" != "X conftest.file $srcdir/configure"; then 2440 2441 # If neither matched, then we have a broken ls. This can happen 2442 # if, for instance, CONFIG_SHELL is bash and it inherits a 2443 # broken ls alias from the environment. This has actually 2444 # happened. Such a system could not be considered "sane". 2445 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2446 alias in your environment" "$LINENO" 5 2447 fi 2448 if test "$2" = conftest.file || test $am_try -eq 2; then 2449 break 2450 fi 2451 # Just in case. 2452 sleep 1 2453 am_has_slept=yes 2454 done 2455 test "$2" = conftest.file 2456 ) 2457then 2458 # Ok. 2459 : 2460else 2461 as_fn_error $? "newly created file is older than distributed files! 2462Check your system clock" "$LINENO" 5 2463fi 2464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2465$as_echo "yes" >&6; } 2466# If we didn't sleep, we still need to ensure time stamps of config.status and 2467# generated files are strictly newer. 2468am_sleep_pid= 2469if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2470 ( sleep 1 ) & 2471 am_sleep_pid=$! 2472fi 2473 2474rm -f conftest.file 2475 2476test "$program_prefix" != NONE && 2477 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2478# Use a double $ so make ignores it. 2479test "$program_suffix" != NONE && 2480 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2481# Double any \ or $. 2482# By default was `s,x,x', remove it if useless. 2483ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2484program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2485 2486# Expand $ac_aux_dir to an absolute path. 2487am_aux_dir=`cd "$ac_aux_dir" && pwd` 2488 2489if test x"${MISSING+set}" != xset; then 2490 MISSING="\${SHELL} '$am_aux_dir/missing'" 2491fi 2492# Use eval to expand $SHELL 2493if eval "$MISSING --is-lightweight"; then 2494 am_missing_run="$MISSING " 2495else 2496 am_missing_run= 2497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2498$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2499fi 2500 2501if test x"${install_sh+set}" != xset; then 2502 case $am_aux_dir in 2503 *\ * | *\ *) 2504 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2505 *) 2506 install_sh="\${SHELL} $am_aux_dir/install-sh" 2507 esac 2508fi 2509 2510# Installed binaries are usually stripped using 'strip' when the user 2511# run "make install-strip". However 'strip' might not be the right 2512# tool to use in cross-compilation environments, therefore Automake 2513# will honor the 'STRIP' environment variable to overrule this program. 2514if test "$cross_compiling" != no; then 2515 if test -n "$ac_tool_prefix"; then 2516 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2517set dummy ${ac_tool_prefix}strip; ac_word=$2 2518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2519$as_echo_n "checking for $ac_word... " >&6; } 2520if ${ac_cv_prog_STRIP+:} false; then : 2521 $as_echo_n "(cached) " >&6 2522else 2523 if test -n "$STRIP"; then 2524 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2525else 2526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2527for as_dir in $PATH 2528do 2529 IFS=$as_save_IFS 2530 test -z "$as_dir" && as_dir=. 2531 for ac_exec_ext in '' $ac_executable_extensions; do 2532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2533 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2535 break 2 2536 fi 2537done 2538 done 2539IFS=$as_save_IFS 2540 2541fi 2542fi 2543STRIP=$ac_cv_prog_STRIP 2544if test -n "$STRIP"; then 2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2546$as_echo "$STRIP" >&6; } 2547else 2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2549$as_echo "no" >&6; } 2550fi 2551 2552 2553fi 2554if test -z "$ac_cv_prog_STRIP"; then 2555 ac_ct_STRIP=$STRIP 2556 # Extract the first word of "strip", so it can be a program name with args. 2557set dummy strip; ac_word=$2 2558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2559$as_echo_n "checking for $ac_word... " >&6; } 2560if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2561 $as_echo_n "(cached) " >&6 2562else 2563 if test -n "$ac_ct_STRIP"; then 2564 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2565else 2566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2567for as_dir in $PATH 2568do 2569 IFS=$as_save_IFS 2570 test -z "$as_dir" && as_dir=. 2571 for ac_exec_ext in '' $ac_executable_extensions; do 2572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2573 ac_cv_prog_ac_ct_STRIP="strip" 2574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2575 break 2 2576 fi 2577done 2578 done 2579IFS=$as_save_IFS 2580 2581fi 2582fi 2583ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2584if test -n "$ac_ct_STRIP"; then 2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2586$as_echo "$ac_ct_STRIP" >&6; } 2587else 2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2589$as_echo "no" >&6; } 2590fi 2591 2592 if test "x$ac_ct_STRIP" = x; then 2593 STRIP=":" 2594 else 2595 case $cross_compiling:$ac_tool_warned in 2596yes:) 2597{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2598$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2599ac_tool_warned=yes ;; 2600esac 2601 STRIP=$ac_ct_STRIP 2602 fi 2603else 2604 STRIP="$ac_cv_prog_STRIP" 2605fi 2606 2607fi 2608INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2609 2610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2611$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2612if test -z "$MKDIR_P"; then 2613 if ${ac_cv_path_mkdir+:} false; then : 2614 $as_echo_n "(cached) " >&6 2615else 2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2617for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2618do 2619 IFS=$as_save_IFS 2620 test -z "$as_dir" && as_dir=. 2621 for ac_prog in mkdir gmkdir; do 2622 for ac_exec_ext in '' $ac_executable_extensions; do 2623 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2624 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2625 'mkdir (GNU coreutils) '* | \ 2626 'mkdir (coreutils) '* | \ 2627 'mkdir (fileutils) '4.1*) 2628 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2629 break 3;; 2630 esac 2631 done 2632 done 2633 done 2634IFS=$as_save_IFS 2635 2636fi 2637 2638 test -d ./--version && rmdir ./--version 2639 if test "${ac_cv_path_mkdir+set}" = set; then 2640 MKDIR_P="$ac_cv_path_mkdir -p" 2641 else 2642 # As a last resort, use the slow shell script. Don't cache a 2643 # value for MKDIR_P within a source directory, because that will 2644 # break other packages using the cache if that directory is 2645 # removed, or if the value is a relative name. 2646 MKDIR_P="$ac_install_sh -d" 2647 fi 2648fi 2649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2650$as_echo "$MKDIR_P" >&6; } 2651 2652for ac_prog in gawk mawk nawk awk 2653do 2654 # Extract the first word of "$ac_prog", so it can be a program name with args. 2655set dummy $ac_prog; ac_word=$2 2656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2657$as_echo_n "checking for $ac_word... " >&6; } 2658if ${ac_cv_prog_AWK+:} false; then : 2659 $as_echo_n "(cached) " >&6 2660else 2661 if test -n "$AWK"; then 2662 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2663else 2664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2665for as_dir in $PATH 2666do 2667 IFS=$as_save_IFS 2668 test -z "$as_dir" && as_dir=. 2669 for ac_exec_ext in '' $ac_executable_extensions; do 2670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2671 ac_cv_prog_AWK="$ac_prog" 2672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2673 break 2 2674 fi 2675done 2676 done 2677IFS=$as_save_IFS 2678 2679fi 2680fi 2681AWK=$ac_cv_prog_AWK 2682if test -n "$AWK"; then 2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2684$as_echo "$AWK" >&6; } 2685else 2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2687$as_echo "no" >&6; } 2688fi 2689 2690 2691 test -n "$AWK" && break 2692done 2693 2694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2695$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2696set x ${MAKE-make} 2697ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2698if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2699 $as_echo_n "(cached) " >&6 2700else 2701 cat >conftest.make <<\_ACEOF 2702SHELL = /bin/sh 2703all: 2704 @echo '@@@%%%=$(MAKE)=@@@%%%' 2705_ACEOF 2706# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2707case `${MAKE-make} -f conftest.make 2>/dev/null` in 2708 *@@@%%%=?*=@@@%%%*) 2709 eval ac_cv_prog_make_${ac_make}_set=yes;; 2710 *) 2711 eval ac_cv_prog_make_${ac_make}_set=no;; 2712esac 2713rm -f conftest.make 2714fi 2715if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2717$as_echo "yes" >&6; } 2718 SET_MAKE= 2719else 2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2721$as_echo "no" >&6; } 2722 SET_MAKE="MAKE=${MAKE-make}" 2723fi 2724 2725rm -rf .tst 2>/dev/null 2726mkdir .tst 2>/dev/null 2727if test -d .tst; then 2728 am__leading_dot=. 2729else 2730 am__leading_dot=_ 2731fi 2732rmdir .tst 2>/dev/null 2733 2734@%:@ Check whether --enable-silent-rules was given. 2735if test "${enable_silent_rules+set}" = set; then : 2736 enableval=$enable_silent_rules; 2737fi 2738 2739case $enable_silent_rules in @%:@ ((( 2740 yes) AM_DEFAULT_VERBOSITY=0;; 2741 no) AM_DEFAULT_VERBOSITY=1;; 2742 *) AM_DEFAULT_VERBOSITY=1;; 2743esac 2744am_make=${MAKE-make} 2745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2746$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2747if ${am_cv_make_support_nested_variables+:} false; then : 2748 $as_echo_n "(cached) " >&6 2749else 2750 if $as_echo 'TRUE=$(BAR$(V)) 2751BAR0=false 2752BAR1=true 2753V=1 2754am__doit: 2755 @$(TRUE) 2756.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2757 am_cv_make_support_nested_variables=yes 2758else 2759 am_cv_make_support_nested_variables=no 2760fi 2761fi 2762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2763$as_echo "$am_cv_make_support_nested_variables" >&6; } 2764if test $am_cv_make_support_nested_variables = yes; then 2765 AM_V='$(V)' 2766 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2767else 2768 AM_V=$AM_DEFAULT_VERBOSITY 2769 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2770fi 2771AM_BACKSLASH='\' 2772 2773if test "`cd $srcdir && pwd`" != "`pwd`"; then 2774 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2775 # is not polluted with repeated "-I." 2776 am__isrc=' -I$(srcdir)' 2777 # test to see if srcdir already configured 2778 if test -f $srcdir/config.status; then 2779 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2780 fi 2781fi 2782 2783# test whether we have cygpath 2784if test -z "$CYGPATH_W"; then 2785 if (cygpath --version) >/dev/null 2>/dev/null; then 2786 CYGPATH_W='cygpath -w' 2787 else 2788 CYGPATH_W=echo 2789 fi 2790fi 2791 2792 2793# Define the identity of the package. 2794 PACKAGE='liblscp' 2795 VERSION='0.9.4' 2796 2797 2798cat >>confdefs.h <<_ACEOF 2799@%:@define PACKAGE "$PACKAGE" 2800_ACEOF 2801 2802 2803cat >>confdefs.h <<_ACEOF 2804@%:@define VERSION "$VERSION" 2805_ACEOF 2806 2807# Some tools Automake needs. 2808 2809ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2810 2811 2812AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2813 2814 2815AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2816 2817 2818AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2819 2820 2821MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2822 2823# For better backward compatibility. To be removed once Automake 1.9.x 2824# dies out for good. For more background, see: 2825# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2826# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2827mkdir_p='$(MKDIR_P)' 2828 2829# We need awk for the "check" target (and possibly the TAP driver). The 2830# system "awk" is bad on some platforms. 2831# Always define AMTAR for backward compatibility. Yes, it's still used 2832# in the wild :-( We should find a proper way to deprecate it ... 2833AMTAR='$${TAR-tar}' 2834 2835 2836# We'll loop over all known methods to create a tar archive until one works. 2837_am_tools='gnutar pax cpio none' 2838 2839am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2840 2841 2842 2843 2844 2845 2846# POSIX will say in a future version that running "rm -f" with no argument 2847# is OK; and we want to be able to make that assumption in our Makefile 2848# recipes. So use an aggressive probe to check that the usage we want is 2849# actually supported "in the wild" to an acceptable degree. 2850# See automake bug#10828. 2851# To make any issue more visible, cause the running configure to be aborted 2852# by default if the 'rm' program in use doesn't match our expectations; the 2853# user can still override this though. 2854if rm -f && rm -fr && rm -rf; then : OK; else 2855 cat >&2 <<'END' 2856Oops! 2857 2858Your 'rm' program seems unable to run without file operands specified 2859on the command line, even when the '-f' option is present. This is contrary 2860to the behaviour of most rm programs out there, and not conforming with 2861the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2862 2863Please tell bug-automake@gnu.org about your system, including the value 2864of your $PATH and any error possibly output before this message. This 2865can help us improve future automake versions. 2866 2867END 2868 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2869 echo 'Configuration will proceed anyway, since you have set the' >&2 2870 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2871 echo >&2 2872 else 2873 cat >&2 <<'END' 2874Aborting the configuration process, to ensure you take notice of the issue. 2875 2876You can download and install GNU coreutils to get an 'rm' implementation 2877that behaves properly: <https://www.gnu.org/software/coreutils/>. 2878 2879If you want to complete the configuration process using your problematic 2880'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2881to "yes", and re-run configure. 2882 2883END 2884 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2885 fi 2886fi 2887 2888 2889#------------------------------------------------------------------------------------ 2890# Rules for library version information: 2891# 2892# 1. Start with version information of `0:0:0' for each libtool library. 2893# 2. Update the version information only immediately before a public release of 2894# your software. More frequent updates are unnecessary, and only guarantee 2895# that the current interface number gets larger faster. 2896# 3. If the library source code has changed at all since the last update, then 2897# increment revision (`c:r:a' becomes `c:r+1:a'). 2898# 4. If any interfaces have been added, removed, or changed since the last update, 2899# increment current, and set revision to 0. 2900# 5. If any interfaces have been added since the last public release, then increment 2901# age. 2902# 6. If any interfaces have been removed since the last public release, then set age 2903# to 0. 2904 2905SHARED_VERSION_INFO="6:4:0" 2906 2907 2908 2909# Build version string. 2910if ${ac_cv_build_version+:} false; then : 2911 $as_echo_n "(cached) " >&6 2912else 2913 2914 ac_cv_build_version=$(git describe --tags --dirty --abbrev=6 2>/dev/null) 2915 if test -n "$ac_cv_build_version"; then 2916 ac_cv_build_version=$(echo $ac_cv_build_version | sed 's/^[^0-9]\+//') 2917 ac_cv_build_version=$(echo $ac_cv_build_version | sed 's/^1_//') 2918 ac_cv_build_version=$(echo $ac_cv_build_version | sed 's/^[_vV]\+//') 2919 ac_cv_build_version=$(echo $ac_cv_build_version | sed 's/-g/git./') 2920 ac_cv_build_version=$(echo $ac_cv_build_version | sed 's/[_|-]/./g') 2921 ac_cv_build_version_extra=$(git rev-parse --abbrev-ref HEAD 2>/dev/null) 2922 if test "x$ac_cv_build_version_extra" != "xmaster"; then 2923 ac_cv_build_version="$ac_cv_build_version [$ac_cv_build_version_extra]" 2924 fi 2925 else 2926 ac_cv_build_version=$PACKAGE_VERSION 2927 fi 2928 2929fi 2930 2931ac_build_version="$ac_cv_build_version" 2932 2933cat >>confdefs.h <<_ACEOF 2934@%:@define CONFIG_BUILD_VERSION "$ac_build_version" 2935_ACEOF 2936 2937 2938# Sanitized version string. 2939if ${ac_cv_version+:} false; then : 2940 $as_echo_n "(cached) " >&6 2941else 2942 2943 ac_cv_version=$(echo $PACKAGE_VERSION | sed -r 's/^([0-9|\.]+).*$/\1/') 2944 2945fi 2946 2947ac_version="$ac_cv_version" 2948 2949cat >>confdefs.h <<_ACEOF 2950@%:@define CONFIG_VERSION "$ac_version" 2951_ACEOF 2952 2953 2954 2955# Set default installation prefix. 2956 2957if test "x$prefix" = "xNONE"; then 2958 prefix=$ac_default_prefix 2959fi 2960if test "x$exec_prefix" = "xNONE"; then 2961 exec_prefix=$prefix 2962fi 2963eval ac_prefix=$prefix 2964 2965 2966cat >>confdefs.h <<_ACEOF 2967@%:@define CONFIG_PREFIX "$ac_prefix" 2968_ACEOF 2969 2970 2971# Set default installation directories. 2972eval ac_libdir=$libdir 2973 2974 2975cat >>confdefs.h <<_ACEOF 2976@%:@define CONFIG_LIBDIR "$ac_libdir" 2977_ACEOF 2978 2979 2980eval ac_includedir=$includedir 2981 2982 2983cat >>confdefs.h <<_ACEOF 2984@%:@define CONFIG_INCLUDEDIR "$ac_includedir" 2985_ACEOF 2986 2987 2988# Enable debugging argument option. 2989@%:@ Check whether --enable-debug was given. 2990if test "${enable_debug+set}" = set; then : 2991 enableval=$enable_debug; ac_debug="$enableval" 2992fi 2993 2994if test "x$ac_debug" = "xyes"; then 2995 2996$as_echo "@%:@define CONFIG_DEBUG 1" >>confdefs.h 2997 2998fi 2999 3000# Checks for programs. 3001ac_ext=c 3002ac_cpp='$CPP $CPPFLAGS' 3003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3005ac_compiler_gnu=$ac_cv_c_compiler_gnu 3006if test -n "$ac_tool_prefix"; then 3007 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3008set dummy ${ac_tool_prefix}gcc; ac_word=$2 3009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3010$as_echo_n "checking for $ac_word... " >&6; } 3011if ${ac_cv_prog_CC+:} false; then : 3012 $as_echo_n "(cached) " >&6 3013else 3014 if test -n "$CC"; then 3015 ac_cv_prog_CC="$CC" # Let the user override the test. 3016else 3017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3018for as_dir in $PATH 3019do 3020 IFS=$as_save_IFS 3021 test -z "$as_dir" && as_dir=. 3022 for ac_exec_ext in '' $ac_executable_extensions; do 3023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3024 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3026 break 2 3027 fi 3028done 3029 done 3030IFS=$as_save_IFS 3031 3032fi 3033fi 3034CC=$ac_cv_prog_CC 3035if test -n "$CC"; then 3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3037$as_echo "$CC" >&6; } 3038else 3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3040$as_echo "no" >&6; } 3041fi 3042 3043 3044fi 3045if test -z "$ac_cv_prog_CC"; then 3046 ac_ct_CC=$CC 3047 # Extract the first word of "gcc", so it can be a program name with args. 3048set dummy gcc; ac_word=$2 3049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3050$as_echo_n "checking for $ac_word... " >&6; } 3051if ${ac_cv_prog_ac_ct_CC+:} false; then : 3052 $as_echo_n "(cached) " >&6 3053else 3054 if test -n "$ac_ct_CC"; then 3055 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3056else 3057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3058for as_dir in $PATH 3059do 3060 IFS=$as_save_IFS 3061 test -z "$as_dir" && as_dir=. 3062 for ac_exec_ext in '' $ac_executable_extensions; do 3063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3064 ac_cv_prog_ac_ct_CC="gcc" 3065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3066 break 2 3067 fi 3068done 3069 done 3070IFS=$as_save_IFS 3071 3072fi 3073fi 3074ac_ct_CC=$ac_cv_prog_ac_ct_CC 3075if test -n "$ac_ct_CC"; then 3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3077$as_echo "$ac_ct_CC" >&6; } 3078else 3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3080$as_echo "no" >&6; } 3081fi 3082 3083 if test "x$ac_ct_CC" = x; then 3084 CC="" 3085 else 3086 case $cross_compiling:$ac_tool_warned in 3087yes:) 3088{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3089$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3090ac_tool_warned=yes ;; 3091esac 3092 CC=$ac_ct_CC 3093 fi 3094else 3095 CC="$ac_cv_prog_CC" 3096fi 3097 3098if test -z "$CC"; then 3099 if test -n "$ac_tool_prefix"; then 3100 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3101set dummy ${ac_tool_prefix}cc; ac_word=$2 3102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3103$as_echo_n "checking for $ac_word... " >&6; } 3104if ${ac_cv_prog_CC+:} false; then : 3105 $as_echo_n "(cached) " >&6 3106else 3107 if test -n "$CC"; then 3108 ac_cv_prog_CC="$CC" # Let the user override the test. 3109else 3110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3111for as_dir in $PATH 3112do 3113 IFS=$as_save_IFS 3114 test -z "$as_dir" && as_dir=. 3115 for ac_exec_ext in '' $ac_executable_extensions; do 3116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3117 ac_cv_prog_CC="${ac_tool_prefix}cc" 3118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3119 break 2 3120 fi 3121done 3122 done 3123IFS=$as_save_IFS 3124 3125fi 3126fi 3127CC=$ac_cv_prog_CC 3128if test -n "$CC"; then 3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3130$as_echo "$CC" >&6; } 3131else 3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3133$as_echo "no" >&6; } 3134fi 3135 3136 3137 fi 3138fi 3139if test -z "$CC"; then 3140 # Extract the first word of "cc", so it can be a program name with args. 3141set dummy cc; ac_word=$2 3142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3143$as_echo_n "checking for $ac_word... " >&6; } 3144if ${ac_cv_prog_CC+:} false; then : 3145 $as_echo_n "(cached) " >&6 3146else 3147 if test -n "$CC"; then 3148 ac_cv_prog_CC="$CC" # Let the user override the test. 3149else 3150 ac_prog_rejected=no 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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3159 ac_prog_rejected=yes 3160 continue 3161 fi 3162 ac_cv_prog_CC="cc" 3163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3164 break 2 3165 fi 3166done 3167 done 3168IFS=$as_save_IFS 3169 3170if test $ac_prog_rejected = yes; then 3171 # We found a bogon in the path, so make sure we never use it. 3172 set dummy $ac_cv_prog_CC 3173 shift 3174 if test $@%:@ != 0; then 3175 # We chose a different compiler from the bogus one. 3176 # However, it has the same basename, so the bogon will be chosen 3177 # first if we set CC to just the basename; use the full file name. 3178 shift 3179 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3180 fi 3181fi 3182fi 3183fi 3184CC=$ac_cv_prog_CC 3185if test -n "$CC"; then 3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3187$as_echo "$CC" >&6; } 3188else 3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3190$as_echo "no" >&6; } 3191fi 3192 3193 3194fi 3195if test -z "$CC"; then 3196 if test -n "$ac_tool_prefix"; then 3197 for ac_prog in cl.exe 3198 do 3199 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3200set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3202$as_echo_n "checking for $ac_word... " >&6; } 3203if ${ac_cv_prog_CC+:} false; then : 3204 $as_echo_n "(cached) " >&6 3205else 3206 if test -n "$CC"; then 3207 ac_cv_prog_CC="$CC" # Let the user override the test. 3208else 3209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3210for as_dir in $PATH 3211do 3212 IFS=$as_save_IFS 3213 test -z "$as_dir" && as_dir=. 3214 for ac_exec_ext in '' $ac_executable_extensions; do 3215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3216 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3218 break 2 3219 fi 3220done 3221 done 3222IFS=$as_save_IFS 3223 3224fi 3225fi 3226CC=$ac_cv_prog_CC 3227if test -n "$CC"; then 3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3229$as_echo "$CC" >&6; } 3230else 3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3232$as_echo "no" >&6; } 3233fi 3234 3235 3236 test -n "$CC" && break 3237 done 3238fi 3239if test -z "$CC"; then 3240 ac_ct_CC=$CC 3241 for ac_prog in cl.exe 3242do 3243 # Extract the first word of "$ac_prog", so it can be a program name with args. 3244set dummy $ac_prog; ac_word=$2 3245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3246$as_echo_n "checking for $ac_word... " >&6; } 3247if ${ac_cv_prog_ac_ct_CC+:} false; then : 3248 $as_echo_n "(cached) " >&6 3249else 3250 if test -n "$ac_ct_CC"; then 3251 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3252else 3253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3254for as_dir in $PATH 3255do 3256 IFS=$as_save_IFS 3257 test -z "$as_dir" && as_dir=. 3258 for ac_exec_ext in '' $ac_executable_extensions; do 3259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3260 ac_cv_prog_ac_ct_CC="$ac_prog" 3261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3262 break 2 3263 fi 3264done 3265 done 3266IFS=$as_save_IFS 3267 3268fi 3269fi 3270ac_ct_CC=$ac_cv_prog_ac_ct_CC 3271if test -n "$ac_ct_CC"; then 3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3273$as_echo "$ac_ct_CC" >&6; } 3274else 3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3276$as_echo "no" >&6; } 3277fi 3278 3279 3280 test -n "$ac_ct_CC" && break 3281done 3282 3283 if test "x$ac_ct_CC" = x; then 3284 CC="" 3285 else 3286 case $cross_compiling:$ac_tool_warned in 3287yes:) 3288{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3289$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3290ac_tool_warned=yes ;; 3291esac 3292 CC=$ac_ct_CC 3293 fi 3294fi 3295 3296fi 3297 3298 3299test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3300$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3301as_fn_error $? "no acceptable C compiler found in \$PATH 3302See \`config.log' for more details" "$LINENO" 5; } 3303 3304# Provide some information about the compiler. 3305$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3306set X $ac_compile 3307ac_compiler=$2 3308for ac_option in --version -v -V -qversion; do 3309 { { ac_try="$ac_compiler $ac_option >&5" 3310case "(($ac_try" in 3311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3312 *) ac_try_echo=$ac_try;; 3313esac 3314eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3315$as_echo "$ac_try_echo"; } >&5 3316 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3317 ac_status=$? 3318 if test -s conftest.err; then 3319 sed '10a\ 3320... rest of stderr output deleted ... 3321 10q' conftest.err >conftest.er1 3322 cat conftest.er1 >&5 3323 fi 3324 rm -f conftest.er1 conftest.err 3325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3326 test $ac_status = 0; } 3327done 3328 3329cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3330/* end confdefs.h. */ 3331 3332int 3333main () 3334{ 3335 3336 ; 3337 return 0; 3338} 3339_ACEOF 3340ac_clean_files_save=$ac_clean_files 3341ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3342# Try to create an executable without -o first, disregard a.out. 3343# It will help us diagnose broken compilers, and finding out an intuition 3344# of exeext. 3345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3346$as_echo_n "checking whether the C compiler works... " >&6; } 3347ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3348 3349# The possible output files: 3350ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3351 3352ac_rmfiles= 3353for ac_file in $ac_files 3354do 3355 case $ac_file in 3356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3357 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3358 esac 3359done 3360rm -f $ac_rmfiles 3361 3362if { { ac_try="$ac_link_default" 3363case "(($ac_try" in 3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3365 *) ac_try_echo=$ac_try;; 3366esac 3367eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3368$as_echo "$ac_try_echo"; } >&5 3369 (eval "$ac_link_default") 2>&5 3370 ac_status=$? 3371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3372 test $ac_status = 0; }; then : 3373 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3374# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3375# in a Makefile. We should not override ac_cv_exeext if it was cached, 3376# so that the user can short-circuit this test for compilers unknown to 3377# Autoconf. 3378for ac_file in $ac_files '' 3379do 3380 test -f "$ac_file" || continue 3381 case $ac_file in 3382 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3383 ;; 3384 [ab].out ) 3385 # We found the default executable, but exeext='' is most 3386 # certainly right. 3387 break;; 3388 *.* ) 3389 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3390 then :; else 3391 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3392 fi 3393 # We set ac_cv_exeext here because the later test for it is not 3394 # safe: cross compilers may not add the suffix if given an `-o' 3395 # argument, so we may need to know it at that point already. 3396 # Even if this section looks crufty: it has the advantage of 3397 # actually working. 3398 break;; 3399 * ) 3400 break;; 3401 esac 3402done 3403test "$ac_cv_exeext" = no && ac_cv_exeext= 3404 3405else 3406 ac_file='' 3407fi 3408if test -z "$ac_file"; then : 3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3410$as_echo "no" >&6; } 3411$as_echo "$as_me: failed program was:" >&5 3412sed 's/^/| /' conftest.$ac_ext >&5 3413 3414{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3415$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3416as_fn_error 77 "C compiler cannot create executables 3417See \`config.log' for more details" "$LINENO" 5; } 3418else 3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3420$as_echo "yes" >&6; } 3421fi 3422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3423$as_echo_n "checking for C compiler default output file name... " >&6; } 3424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3425$as_echo "$ac_file" >&6; } 3426ac_exeext=$ac_cv_exeext 3427 3428rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3429ac_clean_files=$ac_clean_files_save 3430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3431$as_echo_n "checking for suffix of executables... " >&6; } 3432if { { ac_try="$ac_link" 3433case "(($ac_try" in 3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3435 *) ac_try_echo=$ac_try;; 3436esac 3437eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3438$as_echo "$ac_try_echo"; } >&5 3439 (eval "$ac_link") 2>&5 3440 ac_status=$? 3441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3442 test $ac_status = 0; }; then : 3443 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3444# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3445# work properly (i.e., refer to `conftest.exe'), while it won't with 3446# `rm'. 3447for ac_file in conftest.exe conftest conftest.*; do 3448 test -f "$ac_file" || continue 3449 case $ac_file in 3450 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3451 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3452 break;; 3453 * ) break;; 3454 esac 3455done 3456else 3457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3458$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3459as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3460See \`config.log' for more details" "$LINENO" 5; } 3461fi 3462rm -f conftest conftest$ac_cv_exeext 3463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3464$as_echo "$ac_cv_exeext" >&6; } 3465 3466rm -f conftest.$ac_ext 3467EXEEXT=$ac_cv_exeext 3468ac_exeext=$EXEEXT 3469cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3470/* end confdefs.h. */ 3471@%:@include <stdio.h> 3472int 3473main () 3474{ 3475FILE *f = fopen ("conftest.out", "w"); 3476 return ferror (f) || fclose (f) != 0; 3477 3478 ; 3479 return 0; 3480} 3481_ACEOF 3482ac_clean_files="$ac_clean_files conftest.out" 3483# Check that the compiler produces executables we can run. If not, either 3484# the compiler is broken, or we cross compile. 3485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3486$as_echo_n "checking whether we are cross compiling... " >&6; } 3487if test "$cross_compiling" != yes; then 3488 { { ac_try="$ac_link" 3489case "(($ac_try" in 3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3491 *) ac_try_echo=$ac_try;; 3492esac 3493eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3494$as_echo "$ac_try_echo"; } >&5 3495 (eval "$ac_link") 2>&5 3496 ac_status=$? 3497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3498 test $ac_status = 0; } 3499 if { ac_try='./conftest$ac_cv_exeext' 3500 { { case "(($ac_try" in 3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3502 *) ac_try_echo=$ac_try;; 3503esac 3504eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3505$as_echo "$ac_try_echo"; } >&5 3506 (eval "$ac_try") 2>&5 3507 ac_status=$? 3508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3509 test $ac_status = 0; }; }; then 3510 cross_compiling=no 3511 else 3512 if test "$cross_compiling" = maybe; then 3513 cross_compiling=yes 3514 else 3515 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3516$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3517as_fn_error $? "cannot run C compiled programs. 3518If you meant to cross compile, use \`--host'. 3519See \`config.log' for more details" "$LINENO" 5; } 3520 fi 3521 fi 3522fi 3523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3524$as_echo "$cross_compiling" >&6; } 3525 3526rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3527ac_clean_files=$ac_clean_files_save 3528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3529$as_echo_n "checking for suffix of object files... " >&6; } 3530if ${ac_cv_objext+:} false; then : 3531 $as_echo_n "(cached) " >&6 3532else 3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3534/* end confdefs.h. */ 3535 3536int 3537main () 3538{ 3539 3540 ; 3541 return 0; 3542} 3543_ACEOF 3544rm -f conftest.o conftest.obj 3545if { { ac_try="$ac_compile" 3546case "(($ac_try" in 3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3548 *) ac_try_echo=$ac_try;; 3549esac 3550eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3551$as_echo "$ac_try_echo"; } >&5 3552 (eval "$ac_compile") 2>&5 3553 ac_status=$? 3554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3555 test $ac_status = 0; }; then : 3556 for ac_file in conftest.o conftest.obj conftest.*; do 3557 test -f "$ac_file" || continue; 3558 case $ac_file in 3559 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3560 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3561 break;; 3562 esac 3563done 3564else 3565 $as_echo "$as_me: failed program was:" >&5 3566sed 's/^/| /' conftest.$ac_ext >&5 3567 3568{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3569$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3570as_fn_error $? "cannot compute suffix of object files: cannot compile 3571See \`config.log' for more details" "$LINENO" 5; } 3572fi 3573rm -f conftest.$ac_cv_objext conftest.$ac_ext 3574fi 3575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3576$as_echo "$ac_cv_objext" >&6; } 3577OBJEXT=$ac_cv_objext 3578ac_objext=$OBJEXT 3579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3580$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3581if ${ac_cv_c_compiler_gnu+:} false; then : 3582 $as_echo_n "(cached) " >&6 3583else 3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3585/* end confdefs.h. */ 3586 3587int 3588main () 3589{ 3590#ifndef __GNUC__ 3591 choke me 3592#endif 3593 3594 ; 3595 return 0; 3596} 3597_ACEOF 3598if ac_fn_c_try_compile "$LINENO"; then : 3599 ac_compiler_gnu=yes 3600else 3601 ac_compiler_gnu=no 3602fi 3603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3604ac_cv_c_compiler_gnu=$ac_compiler_gnu 3605 3606fi 3607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3608$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3609if test $ac_compiler_gnu = yes; then 3610 GCC=yes 3611else 3612 GCC= 3613fi 3614ac_test_CFLAGS=${CFLAGS+set} 3615ac_save_CFLAGS=$CFLAGS 3616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3617$as_echo_n "checking whether $CC accepts -g... " >&6; } 3618if ${ac_cv_prog_cc_g+:} false; then : 3619 $as_echo_n "(cached) " >&6 3620else 3621 ac_save_c_werror_flag=$ac_c_werror_flag 3622 ac_c_werror_flag=yes 3623 ac_cv_prog_cc_g=no 3624 CFLAGS="-g" 3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3626/* end confdefs.h. */ 3627 3628int 3629main () 3630{ 3631 3632 ; 3633 return 0; 3634} 3635_ACEOF 3636if ac_fn_c_try_compile "$LINENO"; then : 3637 ac_cv_prog_cc_g=yes 3638else 3639 CFLAGS="" 3640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3641/* end confdefs.h. */ 3642 3643int 3644main () 3645{ 3646 3647 ; 3648 return 0; 3649} 3650_ACEOF 3651if ac_fn_c_try_compile "$LINENO"; then : 3652 3653else 3654 ac_c_werror_flag=$ac_save_c_werror_flag 3655 CFLAGS="-g" 3656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3657/* end confdefs.h. */ 3658 3659int 3660main () 3661{ 3662 3663 ; 3664 return 0; 3665} 3666_ACEOF 3667if ac_fn_c_try_compile "$LINENO"; then : 3668 ac_cv_prog_cc_g=yes 3669fi 3670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3671fi 3672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3673fi 3674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3675 ac_c_werror_flag=$ac_save_c_werror_flag 3676fi 3677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3678$as_echo "$ac_cv_prog_cc_g" >&6; } 3679if test "$ac_test_CFLAGS" = set; then 3680 CFLAGS=$ac_save_CFLAGS 3681elif test $ac_cv_prog_cc_g = yes; then 3682 if test "$GCC" = yes; then 3683 CFLAGS="-g -O2" 3684 else 3685 CFLAGS="-g" 3686 fi 3687else 3688 if test "$GCC" = yes; then 3689 CFLAGS="-O2" 3690 else 3691 CFLAGS= 3692 fi 3693fi 3694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3695$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3696if ${ac_cv_prog_cc_c89+:} false; then : 3697 $as_echo_n "(cached) " >&6 3698else 3699 ac_cv_prog_cc_c89=no 3700ac_save_CC=$CC 3701cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3702/* end confdefs.h. */ 3703#include <stdarg.h> 3704#include <stdio.h> 3705struct stat; 3706/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3707struct buf { int x; }; 3708FILE * (*rcsopen) (struct buf *, struct stat *, int); 3709static char *e (p, i) 3710 char **p; 3711 int i; 3712{ 3713 return p[i]; 3714} 3715static char *f (char * (*g) (char **, int), char **p, ...) 3716{ 3717 char *s; 3718 va_list v; 3719 va_start (v,p); 3720 s = g (p, va_arg (v,int)); 3721 va_end (v); 3722 return s; 3723} 3724 3725/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3726 function prototypes and stuff, but not '\xHH' hex character constants. 3727 These don't provoke an error unfortunately, instead are silently treated 3728 as 'x'. The following induces an error, until -std is added to get 3729 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3730 array size at least. It's necessary to write '\x00'==0 to get something 3731 that's true only with -std. */ 3732int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3733 3734/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3735 inside strings and character constants. */ 3736#define FOO(x) 'x' 3737int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3738 3739int test (int i, double x); 3740struct s1 {int (*f) (int a);}; 3741struct s2 {int (*f) (double a);}; 3742int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3743int argc; 3744char **argv; 3745int 3746main () 3747{ 3748return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3749 ; 3750 return 0; 3751} 3752_ACEOF 3753for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3754 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3755do 3756 CC="$ac_save_CC $ac_arg" 3757 if ac_fn_c_try_compile "$LINENO"; then : 3758 ac_cv_prog_cc_c89=$ac_arg 3759fi 3760rm -f core conftest.err conftest.$ac_objext 3761 test "x$ac_cv_prog_cc_c89" != "xno" && break 3762done 3763rm -f conftest.$ac_ext 3764CC=$ac_save_CC 3765 3766fi 3767# AC_CACHE_VAL 3768case "x$ac_cv_prog_cc_c89" in 3769 x) 3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3771$as_echo "none needed" >&6; } ;; 3772 xno) 3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3774$as_echo "unsupported" >&6; } ;; 3775 *) 3776 CC="$CC $ac_cv_prog_cc_c89" 3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3778$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3779esac 3780if test "x$ac_cv_prog_cc_c89" != xno; then : 3781 3782fi 3783 3784ac_ext=c 3785ac_cpp='$CPP $CPPFLAGS' 3786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3788ac_compiler_gnu=$ac_cv_c_compiler_gnu 3789 3790ac_ext=c 3791ac_cpp='$CPP $CPPFLAGS' 3792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3794ac_compiler_gnu=$ac_cv_c_compiler_gnu 3795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3796$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3797if ${am_cv_prog_cc_c_o+:} false; then : 3798 $as_echo_n "(cached) " >&6 3799else 3800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3801/* end confdefs.h. */ 3802 3803int 3804main () 3805{ 3806 3807 ; 3808 return 0; 3809} 3810_ACEOF 3811 # Make sure it works both with $CC and with simple cc. 3812 # Following AC_PROG_CC_C_O, we do the test twice because some 3813 # compilers refuse to overwrite an existing .o file with -o, 3814 # though they will create one. 3815 am_cv_prog_cc_c_o=yes 3816 for am_i in 1 2; do 3817 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3818 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3819 ac_status=$? 3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3821 (exit $ac_status); } \ 3822 && test -f conftest2.$ac_objext; then 3823 : OK 3824 else 3825 am_cv_prog_cc_c_o=no 3826 break 3827 fi 3828 done 3829 rm -f core conftest* 3830 unset am_i 3831fi 3832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3833$as_echo "$am_cv_prog_cc_c_o" >&6; } 3834if test "$am_cv_prog_cc_c_o" != yes; then 3835 # Losing compiler, so override with the script. 3836 # FIXME: It is wrong to rewrite CC. 3837 # But if we don't then we get into trouble of one sort or another. 3838 # A longer-term fix would be to have automake use am__CC in this case, 3839 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3840 CC="$am_aux_dir/compile $CC" 3841fi 3842ac_ext=c 3843ac_cpp='$CPP $CPPFLAGS' 3844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3846ac_compiler_gnu=$ac_cv_c_compiler_gnu 3847 3848DEPDIR="${am__leading_dot}deps" 3849 3850ac_config_commands="$ac_config_commands depfiles" 3851 3852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3853$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3854cat > confinc.mk << 'END' 3855am__doit: 3856 @echo this is the am__doit target >confinc.out 3857.PHONY: am__doit 3858END 3859am__include="#" 3860am__quote= 3861# BSD make does it like this. 3862echo '.include "confinc.mk" # ignored' > confmf.BSD 3863# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3864echo 'include confinc.mk # ignored' > confmf.GNU 3865_am_result=no 3866for s in GNU BSD; do 3867 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3868 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3869 ac_status=$? 3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3871 (exit $ac_status); } 3872 case $?:`cat confinc.out 2>/dev/null` in @%:@( 3873 '0:this is the am__doit target') : 3874 case $s in @%:@( 3875 BSD) : 3876 am__include='.include' am__quote='"' ;; @%:@( 3877 *) : 3878 am__include='include' am__quote='' ;; 3879esac ;; @%:@( 3880 *) : 3881 ;; 3882esac 3883 if test "$am__include" != "#"; then 3884 _am_result="yes ($s style)" 3885 break 3886 fi 3887done 3888rm -f confinc.* confmf.* 3889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3890$as_echo "${_am_result}" >&6; } 3891 3892@%:@ Check whether --enable-dependency-tracking was given. 3893if test "${enable_dependency_tracking+set}" = set; then : 3894 enableval=$enable_dependency_tracking; 3895fi 3896 3897if test "x$enable_dependency_tracking" != xno; then 3898 am_depcomp="$ac_aux_dir/depcomp" 3899 AMDEPBACKSLASH='\' 3900 am__nodep='_no' 3901fi 3902 if test "x$enable_dependency_tracking" != xno; then 3903 AMDEP_TRUE= 3904 AMDEP_FALSE='#' 3905else 3906 AMDEP_TRUE='#' 3907 AMDEP_FALSE= 3908fi 3909 3910 3911 3912depcc="$CC" am_compiler_list= 3913 3914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3915$as_echo_n "checking dependency style of $depcc... " >&6; } 3916if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3917 $as_echo_n "(cached) " >&6 3918else 3919 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3920 # We make a subdir and do the tests there. Otherwise we can end up 3921 # making bogus files that we don't know about and never remove. For 3922 # instance it was reported that on HP-UX the gcc test will end up 3923 # making a dummy file named 'D' -- because '-MD' means "put the output 3924 # in D". 3925 rm -rf conftest.dir 3926 mkdir conftest.dir 3927 # Copy depcomp to subdir because otherwise we won't find it if we're 3928 # using a relative directory. 3929 cp "$am_depcomp" conftest.dir 3930 cd conftest.dir 3931 # We will build objects and dependencies in a subdirectory because 3932 # it helps to detect inapplicable dependency modes. For instance 3933 # both Tru64's cc and ICC support -MD to output dependencies as a 3934 # side effect of compilation, but ICC will put the dependencies in 3935 # the current directory while Tru64 will put them in the object 3936 # directory. 3937 mkdir sub 3938 3939 am_cv_CC_dependencies_compiler_type=none 3940 if test "$am_compiler_list" = ""; then 3941 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3942 fi 3943 am__universal=false 3944 case " $depcc " in #( 3945 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3946 esac 3947 3948 for depmode in $am_compiler_list; do 3949 # Setup a source with many dependencies, because some compilers 3950 # like to wrap large dependency lists on column 80 (with \), and 3951 # we should not choose a depcomp mode which is confused by this. 3952 # 3953 # We need to recreate these files for each test, as the compiler may 3954 # overwrite some of them when testing with obscure command lines. 3955 # This happens at least with the AIX C compiler. 3956 : > sub/conftest.c 3957 for i in 1 2 3 4 5 6; do 3958 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3959 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3960 # Solaris 10 /bin/sh. 3961 echo '/* dummy */' > sub/conftst$i.h 3962 done 3963 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3964 3965 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3966 # mode. It turns out that the SunPro C++ compiler does not properly 3967 # handle '-M -o', and we need to detect this. Also, some Intel 3968 # versions had trouble with output in subdirs. 3969 am__obj=sub/conftest.${OBJEXT-o} 3970 am__minus_obj="-o $am__obj" 3971 case $depmode in 3972 gcc) 3973 # This depmode causes a compiler race in universal mode. 3974 test "$am__universal" = false || continue 3975 ;; 3976 nosideeffect) 3977 # After this tag, mechanisms are not by side-effect, so they'll 3978 # only be used when explicitly requested. 3979 if test "x$enable_dependency_tracking" = xyes; then 3980 continue 3981 else 3982 break 3983 fi 3984 ;; 3985 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3986 # This compiler won't grok '-c -o', but also, the minuso test has 3987 # not run yet. These depmodes are late enough in the game, and 3988 # so weak that their functioning should not be impacted. 3989 am__obj=conftest.${OBJEXT-o} 3990 am__minus_obj= 3991 ;; 3992 none) break ;; 3993 esac 3994 if depmode=$depmode \ 3995 source=sub/conftest.c object=$am__obj \ 3996 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3997 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3998 >/dev/null 2>conftest.err && 3999 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4000 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4001 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4002 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4003 # icc doesn't choke on unknown options, it will just issue warnings 4004 # or remarks (even with -Werror). So we grep stderr for any message 4005 # that says an option was ignored or not supported. 4006 # When given -MP, icc 7.0 and 7.1 complain thusly: 4007 # icc: Command line warning: ignoring option '-M'; no argument required 4008 # The diagnosis changed in icc 8.0: 4009 # icc: Command line remark: option '-MP' not supported 4010 if (grep 'ignoring option' conftest.err || 4011 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4012 am_cv_CC_dependencies_compiler_type=$depmode 4013 break 4014 fi 4015 fi 4016 done 4017 4018 cd .. 4019 rm -rf conftest.dir 4020else 4021 am_cv_CC_dependencies_compiler_type=none 4022fi 4023 4024fi 4025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4026$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4027CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4028 4029 if 4030 test "x$enable_dependency_tracking" != xno \ 4031 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4032 am__fastdepCC_TRUE= 4033 am__fastdepCC_FALSE='#' 4034else 4035 am__fastdepCC_TRUE='#' 4036 am__fastdepCC_FALSE= 4037fi 4038 4039 4040# Make sure we can run config.sub. 4041$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4042 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4043 4044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4045$as_echo_n "checking build system type... " >&6; } 4046if ${ac_cv_build+:} false; then : 4047 $as_echo_n "(cached) " >&6 4048else 4049 ac_build_alias=$build_alias 4050test "x$ac_build_alias" = x && 4051 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4052test "x$ac_build_alias" = x && 4053 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4054ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4055 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4056 4057fi 4058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4059$as_echo "$ac_cv_build" >&6; } 4060case $ac_cv_build in 4061*-*-*) ;; 4062*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4063esac 4064build=$ac_cv_build 4065ac_save_IFS=$IFS; IFS='-' 4066set x $ac_cv_build 4067shift 4068build_cpu=$1 4069build_vendor=$2 4070shift; shift 4071# Remember, the first character of IFS is used to create $*, 4072# except with old shells: 4073build_os=$* 4074IFS=$ac_save_IFS 4075case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4076 4077 4078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4079$as_echo_n "checking host system type... " >&6; } 4080if ${ac_cv_host+:} false; then : 4081 $as_echo_n "(cached) " >&6 4082else 4083 if test "x$host_alias" = x; then 4084 ac_cv_host=$ac_cv_build 4085else 4086 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4087 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4088fi 4089 4090fi 4091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4092$as_echo "$ac_cv_host" >&6; } 4093case $ac_cv_host in 4094*-*-*) ;; 4095*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4096esac 4097host=$ac_cv_host 4098ac_save_IFS=$IFS; IFS='-' 4099set x $ac_cv_host 4100shift 4101host_cpu=$1 4102host_vendor=$2 4103shift; shift 4104# Remember, the first character of IFS is used to create $*, 4105# except with old shells: 4106host_os=$* 4107IFS=$ac_save_IFS 4108case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4109 4110 4111enable_win32_dll=yes 4112 4113case $host in 4114*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 4115 if test -n "$ac_tool_prefix"; then 4116 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 4117set dummy ${ac_tool_prefix}as; ac_word=$2 4118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4119$as_echo_n "checking for $ac_word... " >&6; } 4120if ${ac_cv_prog_AS+:} false; then : 4121 $as_echo_n "(cached) " >&6 4122else 4123 if test -n "$AS"; then 4124 ac_cv_prog_AS="$AS" # Let the user override the test. 4125else 4126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4127for as_dir in $PATH 4128do 4129 IFS=$as_save_IFS 4130 test -z "$as_dir" && as_dir=. 4131 for ac_exec_ext in '' $ac_executable_extensions; do 4132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4133 ac_cv_prog_AS="${ac_tool_prefix}as" 4134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4135 break 2 4136 fi 4137done 4138 done 4139IFS=$as_save_IFS 4140 4141fi 4142fi 4143AS=$ac_cv_prog_AS 4144if test -n "$AS"; then 4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 4146$as_echo "$AS" >&6; } 4147else 4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4149$as_echo "no" >&6; } 4150fi 4151 4152 4153fi 4154if test -z "$ac_cv_prog_AS"; then 4155 ac_ct_AS=$AS 4156 # Extract the first word of "as", so it can be a program name with args. 4157set dummy as; ac_word=$2 4158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4159$as_echo_n "checking for $ac_word... " >&6; } 4160if ${ac_cv_prog_ac_ct_AS+:} false; then : 4161 $as_echo_n "(cached) " >&6 4162else 4163 if test -n "$ac_ct_AS"; then 4164 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 4165else 4166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4167for as_dir in $PATH 4168do 4169 IFS=$as_save_IFS 4170 test -z "$as_dir" && as_dir=. 4171 for ac_exec_ext in '' $ac_executable_extensions; do 4172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4173 ac_cv_prog_ac_ct_AS="as" 4174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4175 break 2 4176 fi 4177done 4178 done 4179IFS=$as_save_IFS 4180 4181fi 4182fi 4183ac_ct_AS=$ac_cv_prog_ac_ct_AS 4184if test -n "$ac_ct_AS"; then 4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 4186$as_echo "$ac_ct_AS" >&6; } 4187else 4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4189$as_echo "no" >&6; } 4190fi 4191 4192 if test "x$ac_ct_AS" = x; then 4193 AS="false" 4194 else 4195 case $cross_compiling:$ac_tool_warned in 4196yes:) 4197{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4198$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4199ac_tool_warned=yes ;; 4200esac 4201 AS=$ac_ct_AS 4202 fi 4203else 4204 AS="$ac_cv_prog_AS" 4205fi 4206 4207 if test -n "$ac_tool_prefix"; then 4208 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 4209set dummy ${ac_tool_prefix}dlltool; ac_word=$2 4210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4211$as_echo_n "checking for $ac_word... " >&6; } 4212if ${ac_cv_prog_DLLTOOL+:} false; then : 4213 $as_echo_n "(cached) " >&6 4214else 4215 if test -n "$DLLTOOL"; then 4216 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 4217else 4218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4219for as_dir in $PATH 4220do 4221 IFS=$as_save_IFS 4222 test -z "$as_dir" && as_dir=. 4223 for ac_exec_ext in '' $ac_executable_extensions; do 4224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4225 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 4226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4227 break 2 4228 fi 4229done 4230 done 4231IFS=$as_save_IFS 4232 4233fi 4234fi 4235DLLTOOL=$ac_cv_prog_DLLTOOL 4236if test -n "$DLLTOOL"; then 4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 4238$as_echo "$DLLTOOL" >&6; } 4239else 4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4241$as_echo "no" >&6; } 4242fi 4243 4244 4245fi 4246if test -z "$ac_cv_prog_DLLTOOL"; then 4247 ac_ct_DLLTOOL=$DLLTOOL 4248 # Extract the first word of "dlltool", so it can be a program name with args. 4249set dummy dlltool; ac_word=$2 4250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4251$as_echo_n "checking for $ac_word... " >&6; } 4252if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 4253 $as_echo_n "(cached) " >&6 4254else 4255 if test -n "$ac_ct_DLLTOOL"; then 4256 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 4257else 4258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4259for as_dir in $PATH 4260do 4261 IFS=$as_save_IFS 4262 test -z "$as_dir" && as_dir=. 4263 for ac_exec_ext in '' $ac_executable_extensions; do 4264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4265 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 4266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4267 break 2 4268 fi 4269done 4270 done 4271IFS=$as_save_IFS 4272 4273fi 4274fi 4275ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 4276if test -n "$ac_ct_DLLTOOL"; then 4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 4278$as_echo "$ac_ct_DLLTOOL" >&6; } 4279else 4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4281$as_echo "no" >&6; } 4282fi 4283 4284 if test "x$ac_ct_DLLTOOL" = x; then 4285 DLLTOOL="false" 4286 else 4287 case $cross_compiling:$ac_tool_warned in 4288yes:) 4289{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4290$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4291ac_tool_warned=yes ;; 4292esac 4293 DLLTOOL=$ac_ct_DLLTOOL 4294 fi 4295else 4296 DLLTOOL="$ac_cv_prog_DLLTOOL" 4297fi 4298 4299 if test -n "$ac_tool_prefix"; then 4300 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4301set dummy ${ac_tool_prefix}objdump; ac_word=$2 4302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4303$as_echo_n "checking for $ac_word... " >&6; } 4304if ${ac_cv_prog_OBJDUMP+:} false; then : 4305 $as_echo_n "(cached) " >&6 4306else 4307 if test -n "$OBJDUMP"; then 4308 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4309else 4310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4311for as_dir in $PATH 4312do 4313 IFS=$as_save_IFS 4314 test -z "$as_dir" && as_dir=. 4315 for ac_exec_ext in '' $ac_executable_extensions; do 4316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4317 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4319 break 2 4320 fi 4321done 4322 done 4323IFS=$as_save_IFS 4324 4325fi 4326fi 4327OBJDUMP=$ac_cv_prog_OBJDUMP 4328if test -n "$OBJDUMP"; then 4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4330$as_echo "$OBJDUMP" >&6; } 4331else 4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4333$as_echo "no" >&6; } 4334fi 4335 4336 4337fi 4338if test -z "$ac_cv_prog_OBJDUMP"; then 4339 ac_ct_OBJDUMP=$OBJDUMP 4340 # Extract the first word of "objdump", so it can be a program name with args. 4341set dummy objdump; ac_word=$2 4342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4343$as_echo_n "checking for $ac_word... " >&6; } 4344if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4345 $as_echo_n "(cached) " >&6 4346else 4347 if test -n "$ac_ct_OBJDUMP"; then 4348 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4349else 4350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4351for as_dir in $PATH 4352do 4353 IFS=$as_save_IFS 4354 test -z "$as_dir" && as_dir=. 4355 for ac_exec_ext in '' $ac_executable_extensions; do 4356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4357 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4359 break 2 4360 fi 4361done 4362 done 4363IFS=$as_save_IFS 4364 4365fi 4366fi 4367ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4368if test -n "$ac_ct_OBJDUMP"; then 4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4370$as_echo "$ac_ct_OBJDUMP" >&6; } 4371else 4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4373$as_echo "no" >&6; } 4374fi 4375 4376 if test "x$ac_ct_OBJDUMP" = x; then 4377 OBJDUMP="false" 4378 else 4379 case $cross_compiling:$ac_tool_warned in 4380yes:) 4381{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4382$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4383ac_tool_warned=yes ;; 4384esac 4385 OBJDUMP=$ac_ct_OBJDUMP 4386 fi 4387else 4388 OBJDUMP="$ac_cv_prog_OBJDUMP" 4389fi 4390 4391 ;; 4392esac 4393 4394test -z "$AS" && AS=as 4395 4396 4397 4398 4399 4400test -z "$DLLTOOL" && DLLTOOL=dlltool 4401 4402 4403 4404 4405 4406test -z "$OBJDUMP" && OBJDUMP=objdump 4407 4408 4409 4410 4411 4412 4413 4414case `pwd` in 4415 *\ * | *\ *) 4416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4417$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4418esac 4419 4420 4421 4422macro_version='2.4.6' 4423macro_revision='2.4.6' 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437ltmain=$ac_aux_dir/ltmain.sh 4438 4439# Backslashify metacharacters that are still active within 4440# double-quoted strings. 4441sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4442 4443# Same as above, but do not quote variable references. 4444double_quote_subst='s/\(["`\\]\)/\\\1/g' 4445 4446# Sed substitution to delay expansion of an escaped shell variable in a 4447# double_quote_subst'ed string. 4448delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4449 4450# Sed substitution to delay expansion of an escaped single quote. 4451delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4452 4453# Sed substitution to avoid accidental globbing in evaled expressions 4454no_glob_subst='s/\*/\\\*/g' 4455 4456ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4457ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4458ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4459 4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4461$as_echo_n "checking how to print strings... " >&6; } 4462# Test print first, because it will be a builtin if present. 4463if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4464 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4465 ECHO='print -r --' 4466elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4467 ECHO='printf %s\n' 4468else 4469 # Use this function as a fallback that always works. 4470 func_fallback_echo () 4471 { 4472 eval 'cat <<_LTECHO_EOF 4473$1 4474_LTECHO_EOF' 4475 } 4476 ECHO='func_fallback_echo' 4477fi 4478 4479# func_echo_all arg... 4480# Invoke $ECHO with all args, space-separated. 4481func_echo_all () 4482{ 4483 $ECHO "" 4484} 4485 4486case $ECHO in 4487 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4488$as_echo "printf" >&6; } ;; 4489 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4490$as_echo "print -r" >&6; } ;; 4491 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4492$as_echo "cat" >&6; } ;; 4493esac 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4509$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4510if ${ac_cv_path_SED+:} false; then : 4511 $as_echo_n "(cached) " >&6 4512else 4513 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4514 for ac_i in 1 2 3 4 5 6 7; do 4515 ac_script="$ac_script$as_nl$ac_script" 4516 done 4517 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4518 { ac_script=; unset ac_script;} 4519 if test -z "$SED"; then 4520 ac_path_SED_found=false 4521 # Loop through the user's path and test for each of PROGNAME-LIST 4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4523for as_dir in $PATH 4524do 4525 IFS=$as_save_IFS 4526 test -z "$as_dir" && as_dir=. 4527 for ac_prog in sed gsed; do 4528 for ac_exec_ext in '' $ac_executable_extensions; do 4529 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4530 as_fn_executable_p "$ac_path_SED" || continue 4531# Check for GNU ac_path_SED and select it if it is found. 4532 # Check for GNU $ac_path_SED 4533case `"$ac_path_SED" --version 2>&1` in 4534*GNU*) 4535 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4536*) 4537 ac_count=0 4538 $as_echo_n 0123456789 >"conftest.in" 4539 while : 4540 do 4541 cat "conftest.in" "conftest.in" >"conftest.tmp" 4542 mv "conftest.tmp" "conftest.in" 4543 cp "conftest.in" "conftest.nl" 4544 $as_echo '' >> "conftest.nl" 4545 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4546 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4547 as_fn_arith $ac_count + 1 && ac_count=$as_val 4548 if test $ac_count -gt ${ac_path_SED_max-0}; then 4549 # Best one so far, save it but keep looking for a better one 4550 ac_cv_path_SED="$ac_path_SED" 4551 ac_path_SED_max=$ac_count 4552 fi 4553 # 10*(2^10) chars as input seems more than enough 4554 test $ac_count -gt 10 && break 4555 done 4556 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4557esac 4558 4559 $ac_path_SED_found && break 3 4560 done 4561 done 4562 done 4563IFS=$as_save_IFS 4564 if test -z "$ac_cv_path_SED"; then 4565 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4566 fi 4567else 4568 ac_cv_path_SED=$SED 4569fi 4570 4571fi 4572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4573$as_echo "$ac_cv_path_SED" >&6; } 4574 SED="$ac_cv_path_SED" 4575 rm -f conftest.sed 4576 4577test -z "$SED" && SED=sed 4578Xsed="$SED -e 1s/^X//" 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4591$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4592if ${ac_cv_path_GREP+:} false; then : 4593 $as_echo_n "(cached) " >&6 4594else 4595 if test -z "$GREP"; then 4596 ac_path_GREP_found=false 4597 # Loop through the user's path and test for each of PROGNAME-LIST 4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4599for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4600do 4601 IFS=$as_save_IFS 4602 test -z "$as_dir" && as_dir=. 4603 for ac_prog in grep ggrep; do 4604 for ac_exec_ext in '' $ac_executable_extensions; do 4605 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4606 as_fn_executable_p "$ac_path_GREP" || continue 4607# Check for GNU ac_path_GREP and select it if it is found. 4608 # Check for GNU $ac_path_GREP 4609case `"$ac_path_GREP" --version 2>&1` in 4610*GNU*) 4611 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4612*) 4613 ac_count=0 4614 $as_echo_n 0123456789 >"conftest.in" 4615 while : 4616 do 4617 cat "conftest.in" "conftest.in" >"conftest.tmp" 4618 mv "conftest.tmp" "conftest.in" 4619 cp "conftest.in" "conftest.nl" 4620 $as_echo 'GREP' >> "conftest.nl" 4621 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4622 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4623 as_fn_arith $ac_count + 1 && ac_count=$as_val 4624 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4625 # Best one so far, save it but keep looking for a better one 4626 ac_cv_path_GREP="$ac_path_GREP" 4627 ac_path_GREP_max=$ac_count 4628 fi 4629 # 10*(2^10) chars as input seems more than enough 4630 test $ac_count -gt 10 && break 4631 done 4632 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4633esac 4634 4635 $ac_path_GREP_found && break 3 4636 done 4637 done 4638 done 4639IFS=$as_save_IFS 4640 if test -z "$ac_cv_path_GREP"; then 4641 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4642 fi 4643else 4644 ac_cv_path_GREP=$GREP 4645fi 4646 4647fi 4648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4649$as_echo "$ac_cv_path_GREP" >&6; } 4650 GREP="$ac_cv_path_GREP" 4651 4652 4653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4654$as_echo_n "checking for egrep... " >&6; } 4655if ${ac_cv_path_EGREP+:} false; then : 4656 $as_echo_n "(cached) " >&6 4657else 4658 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4659 then ac_cv_path_EGREP="$GREP -E" 4660 else 4661 if test -z "$EGREP"; then 4662 ac_path_EGREP_found=false 4663 # Loop through the user's path and test for each of PROGNAME-LIST 4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4665for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4666do 4667 IFS=$as_save_IFS 4668 test -z "$as_dir" && as_dir=. 4669 for ac_prog in egrep; do 4670 for ac_exec_ext in '' $ac_executable_extensions; do 4671 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4672 as_fn_executable_p "$ac_path_EGREP" || continue 4673# Check for GNU ac_path_EGREP and select it if it is found. 4674 # Check for GNU $ac_path_EGREP 4675case `"$ac_path_EGREP" --version 2>&1` in 4676*GNU*) 4677 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4678*) 4679 ac_count=0 4680 $as_echo_n 0123456789 >"conftest.in" 4681 while : 4682 do 4683 cat "conftest.in" "conftest.in" >"conftest.tmp" 4684 mv "conftest.tmp" "conftest.in" 4685 cp "conftest.in" "conftest.nl" 4686 $as_echo 'EGREP' >> "conftest.nl" 4687 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4688 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4689 as_fn_arith $ac_count + 1 && ac_count=$as_val 4690 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4691 # Best one so far, save it but keep looking for a better one 4692 ac_cv_path_EGREP="$ac_path_EGREP" 4693 ac_path_EGREP_max=$ac_count 4694 fi 4695 # 10*(2^10) chars as input seems more than enough 4696 test $ac_count -gt 10 && break 4697 done 4698 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4699esac 4700 4701 $ac_path_EGREP_found && break 3 4702 done 4703 done 4704 done 4705IFS=$as_save_IFS 4706 if test -z "$ac_cv_path_EGREP"; then 4707 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4708 fi 4709else 4710 ac_cv_path_EGREP=$EGREP 4711fi 4712 4713 fi 4714fi 4715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4716$as_echo "$ac_cv_path_EGREP" >&6; } 4717 EGREP="$ac_cv_path_EGREP" 4718 4719 4720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4721$as_echo_n "checking for fgrep... " >&6; } 4722if ${ac_cv_path_FGREP+:} false; then : 4723 $as_echo_n "(cached) " >&6 4724else 4725 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4726 then ac_cv_path_FGREP="$GREP -F" 4727 else 4728 if test -z "$FGREP"; then 4729 ac_path_FGREP_found=false 4730 # Loop through the user's path and test for each of PROGNAME-LIST 4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4732for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4733do 4734 IFS=$as_save_IFS 4735 test -z "$as_dir" && as_dir=. 4736 for ac_prog in fgrep; do 4737 for ac_exec_ext in '' $ac_executable_extensions; do 4738 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4739 as_fn_executable_p "$ac_path_FGREP" || continue 4740# Check for GNU ac_path_FGREP and select it if it is found. 4741 # Check for GNU $ac_path_FGREP 4742case `"$ac_path_FGREP" --version 2>&1` in 4743*GNU*) 4744 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4745*) 4746 ac_count=0 4747 $as_echo_n 0123456789 >"conftest.in" 4748 while : 4749 do 4750 cat "conftest.in" "conftest.in" >"conftest.tmp" 4751 mv "conftest.tmp" "conftest.in" 4752 cp "conftest.in" "conftest.nl" 4753 $as_echo 'FGREP' >> "conftest.nl" 4754 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4755 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4756 as_fn_arith $ac_count + 1 && ac_count=$as_val 4757 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4758 # Best one so far, save it but keep looking for a better one 4759 ac_cv_path_FGREP="$ac_path_FGREP" 4760 ac_path_FGREP_max=$ac_count 4761 fi 4762 # 10*(2^10) chars as input seems more than enough 4763 test $ac_count -gt 10 && break 4764 done 4765 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4766esac 4767 4768 $ac_path_FGREP_found && break 3 4769 done 4770 done 4771 done 4772IFS=$as_save_IFS 4773 if test -z "$ac_cv_path_FGREP"; then 4774 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4775 fi 4776else 4777 ac_cv_path_FGREP=$FGREP 4778fi 4779 4780 fi 4781fi 4782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4783$as_echo "$ac_cv_path_FGREP" >&6; } 4784 FGREP="$ac_cv_path_FGREP" 4785 4786 4787test -z "$GREP" && GREP=grep 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807@%:@ Check whether --with-gnu-ld was given. 4808if test "${with_gnu_ld+set}" = set; then : 4809 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4810else 4811 with_gnu_ld=no 4812fi 4813 4814ac_prog=ld 4815if test yes = "$GCC"; then 4816 # Check if gcc -print-prog-name=ld gives a path. 4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4818$as_echo_n "checking for ld used by $CC... " >&6; } 4819 case $host in 4820 *-*-mingw*) 4821 # gcc leaves a trailing carriage return, which upsets mingw 4822 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4823 *) 4824 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4825 esac 4826 case $ac_prog in 4827 # Accept absolute paths. 4828 [\\/]* | ?:[\\/]*) 4829 re_direlt='/[^/][^/]*/\.\./' 4830 # Canonicalize the pathname of ld 4831 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4832 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4833 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4834 done 4835 test -z "$LD" && LD=$ac_prog 4836 ;; 4837 "") 4838 # If it fails, then pretend we aren't using GCC. 4839 ac_prog=ld 4840 ;; 4841 *) 4842 # If it is relative, then search for the first ld in PATH. 4843 with_gnu_ld=unknown 4844 ;; 4845 esac 4846elif test yes = "$with_gnu_ld"; then 4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4848$as_echo_n "checking for GNU ld... " >&6; } 4849else 4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4851$as_echo_n "checking for non-GNU ld... " >&6; } 4852fi 4853if ${lt_cv_path_LD+:} false; then : 4854 $as_echo_n "(cached) " >&6 4855else 4856 if test -z "$LD"; then 4857 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4858 for ac_dir in $PATH; do 4859 IFS=$lt_save_ifs 4860 test -z "$ac_dir" && ac_dir=. 4861 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4862 lt_cv_path_LD=$ac_dir/$ac_prog 4863 # Check to see if the program is GNU ld. I'd rather use --version, 4864 # but apparently some variants of GNU ld only accept -v. 4865 # Break only if it was the GNU/non-GNU ld that we prefer. 4866 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4867 *GNU* | *'with BFD'*) 4868 test no != "$with_gnu_ld" && break 4869 ;; 4870 *) 4871 test yes != "$with_gnu_ld" && break 4872 ;; 4873 esac 4874 fi 4875 done 4876 IFS=$lt_save_ifs 4877else 4878 lt_cv_path_LD=$LD # Let the user override the test with a path. 4879fi 4880fi 4881 4882LD=$lt_cv_path_LD 4883if test -n "$LD"; then 4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4885$as_echo "$LD" >&6; } 4886else 4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4888$as_echo "no" >&6; } 4889fi 4890test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4892$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4893if ${lt_cv_prog_gnu_ld+:} false; then : 4894 $as_echo_n "(cached) " >&6 4895else 4896 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4897case `$LD -v 2>&1 </dev/null` in 4898*GNU* | *'with BFD'*) 4899 lt_cv_prog_gnu_ld=yes 4900 ;; 4901*) 4902 lt_cv_prog_gnu_ld=no 4903 ;; 4904esac 4905fi 4906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4907$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4908with_gnu_ld=$lt_cv_prog_gnu_ld 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4919$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4920if ${lt_cv_path_NM+:} false; then : 4921 $as_echo_n "(cached) " >&6 4922else 4923 if test -n "$NM"; then 4924 # Let the user override the test. 4925 lt_cv_path_NM=$NM 4926else 4927 lt_nm_to_check=${ac_tool_prefix}nm 4928 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4929 lt_nm_to_check="$lt_nm_to_check nm" 4930 fi 4931 for lt_tmp_nm in $lt_nm_to_check; do 4932 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4933 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4934 IFS=$lt_save_ifs 4935 test -z "$ac_dir" && ac_dir=. 4936 tmp_nm=$ac_dir/$lt_tmp_nm 4937 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4938 # Check to see if the nm accepts a BSD-compat flag. 4939 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4940 # nm: unknown option "B" ignored 4941 # Tru64's nm complains that /dev/null is an invalid object file 4942 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4943 case $build_os in 4944 mingw*) lt_bad_file=conftest.nm/nofile ;; 4945 *) lt_bad_file=/dev/null ;; 4946 esac 4947 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4948 *$lt_bad_file* | *'Invalid file or object type'*) 4949 lt_cv_path_NM="$tmp_nm -B" 4950 break 2 4951 ;; 4952 *) 4953 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4954 */dev/null*) 4955 lt_cv_path_NM="$tmp_nm -p" 4956 break 2 4957 ;; 4958 *) 4959 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4960 continue # so that we can try to find one that supports BSD flags 4961 ;; 4962 esac 4963 ;; 4964 esac 4965 fi 4966 done 4967 IFS=$lt_save_ifs 4968 done 4969 : ${lt_cv_path_NM=no} 4970fi 4971fi 4972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4973$as_echo "$lt_cv_path_NM" >&6; } 4974if test no != "$lt_cv_path_NM"; then 4975 NM=$lt_cv_path_NM 4976else 4977 # Didn't find any BSD compatible name lister, look for dumpbin. 4978 if test -n "$DUMPBIN"; then : 4979 # Let the user override the test. 4980 else 4981 if test -n "$ac_tool_prefix"; then 4982 for ac_prog in dumpbin "link -dump" 4983 do 4984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4985set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4987$as_echo_n "checking for $ac_word... " >&6; } 4988if ${ac_cv_prog_DUMPBIN+:} false; then : 4989 $as_echo_n "(cached) " >&6 4990else 4991 if test -n "$DUMPBIN"; then 4992 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4993else 4994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4995for as_dir in $PATH 4996do 4997 IFS=$as_save_IFS 4998 test -z "$as_dir" && as_dir=. 4999 for ac_exec_ext in '' $ac_executable_extensions; do 5000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5001 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5003 break 2 5004 fi 5005done 5006 done 5007IFS=$as_save_IFS 5008 5009fi 5010fi 5011DUMPBIN=$ac_cv_prog_DUMPBIN 5012if test -n "$DUMPBIN"; then 5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5014$as_echo "$DUMPBIN" >&6; } 5015else 5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5017$as_echo "no" >&6; } 5018fi 5019 5020 5021 test -n "$DUMPBIN" && break 5022 done 5023fi 5024if test -z "$DUMPBIN"; then 5025 ac_ct_DUMPBIN=$DUMPBIN 5026 for ac_prog in dumpbin "link -dump" 5027do 5028 # Extract the first word of "$ac_prog", so it can be a program name with args. 5029set dummy $ac_prog; ac_word=$2 5030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5031$as_echo_n "checking for $ac_word... " >&6; } 5032if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5033 $as_echo_n "(cached) " >&6 5034else 5035 if test -n "$ac_ct_DUMPBIN"; then 5036 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5037else 5038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5039for as_dir in $PATH 5040do 5041 IFS=$as_save_IFS 5042 test -z "$as_dir" && as_dir=. 5043 for ac_exec_ext in '' $ac_executable_extensions; do 5044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5045 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5047 break 2 5048 fi 5049done 5050 done 5051IFS=$as_save_IFS 5052 5053fi 5054fi 5055ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5056if test -n "$ac_ct_DUMPBIN"; then 5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5058$as_echo "$ac_ct_DUMPBIN" >&6; } 5059else 5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5061$as_echo "no" >&6; } 5062fi 5063 5064 5065 test -n "$ac_ct_DUMPBIN" && break 5066done 5067 5068 if test "x$ac_ct_DUMPBIN" = x; then 5069 DUMPBIN=":" 5070 else 5071 case $cross_compiling:$ac_tool_warned in 5072yes:) 5073{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5075ac_tool_warned=yes ;; 5076esac 5077 DUMPBIN=$ac_ct_DUMPBIN 5078 fi 5079fi 5080 5081 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5082 *COFF*) 5083 DUMPBIN="$DUMPBIN -symbols -headers" 5084 ;; 5085 *) 5086 DUMPBIN=: 5087 ;; 5088 esac 5089 fi 5090 5091 if test : != "$DUMPBIN"; then 5092 NM=$DUMPBIN 5093 fi 5094fi 5095test -z "$NM" && NM=nm 5096 5097 5098 5099 5100 5101 5102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5103$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5104if ${lt_cv_nm_interface+:} false; then : 5105 $as_echo_n "(cached) " >&6 5106else 5107 lt_cv_nm_interface="BSD nm" 5108 echo "int some_variable = 0;" > conftest.$ac_ext 5109 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5110 (eval "$ac_compile" 2>conftest.err) 5111 cat conftest.err >&5 5112 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5113 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5114 cat conftest.err >&5 5115 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5116 cat conftest.out >&5 5117 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5118 lt_cv_nm_interface="MS dumpbin" 5119 fi 5120 rm -f conftest* 5121fi 5122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5123$as_echo "$lt_cv_nm_interface" >&6; } 5124 5125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5126$as_echo_n "checking whether ln -s works... " >&6; } 5127LN_S=$as_ln_s 5128if test "$LN_S" = "ln -s"; then 5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5130$as_echo "yes" >&6; } 5131else 5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5133$as_echo "no, using $LN_S" >&6; } 5134fi 5135 5136# find the maximum length of command line arguments 5137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5138$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5139if ${lt_cv_sys_max_cmd_len+:} false; then : 5140 $as_echo_n "(cached) " >&6 5141else 5142 i=0 5143 teststring=ABCD 5144 5145 case $build_os in 5146 msdosdjgpp*) 5147 # On DJGPP, this test can blow up pretty badly due to problems in libc 5148 # (any single argument exceeding 2000 bytes causes a buffer overrun 5149 # during glob expansion). Even if it were fixed, the result of this 5150 # check would be larger than it should be. 5151 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5152 ;; 5153 5154 gnu*) 5155 # Under GNU Hurd, this test is not required because there is 5156 # no limit to the length of command line arguments. 5157 # Libtool will interpret -1 as no limit whatsoever 5158 lt_cv_sys_max_cmd_len=-1; 5159 ;; 5160 5161 cygwin* | mingw* | cegcc*) 5162 # On Win9x/ME, this test blows up -- it succeeds, but takes 5163 # about 5 minutes as the teststring grows exponentially. 5164 # Worse, since 9x/ME are not pre-emptively multitasking, 5165 # you end up with a "frozen" computer, even though with patience 5166 # the test eventually succeeds (with a max line length of 256k). 5167 # Instead, let's just punt: use the minimum linelength reported by 5168 # all of the supported platforms: 8192 (on NT/2K/XP). 5169 lt_cv_sys_max_cmd_len=8192; 5170 ;; 5171 5172 mint*) 5173 # On MiNT this can take a long time and run out of memory. 5174 lt_cv_sys_max_cmd_len=8192; 5175 ;; 5176 5177 amigaos*) 5178 # On AmigaOS with pdksh, this test takes hours, literally. 5179 # So we just punt and use a minimum line length of 8192. 5180 lt_cv_sys_max_cmd_len=8192; 5181 ;; 5182 5183 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5184 # This has been around since 386BSD, at least. Likely further. 5185 if test -x /sbin/sysctl; then 5186 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5187 elif test -x /usr/sbin/sysctl; then 5188 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5189 else 5190 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5191 fi 5192 # And add a safety zone 5193 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5194 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5195 ;; 5196 5197 interix*) 5198 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5199 lt_cv_sys_max_cmd_len=196608 5200 ;; 5201 5202 os2*) 5203 # The test takes a long time on OS/2. 5204 lt_cv_sys_max_cmd_len=8192 5205 ;; 5206 5207 osf*) 5208 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5209 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5210 # nice to cause kernel panics so lets avoid the loop below. 5211 # First set a reasonable default. 5212 lt_cv_sys_max_cmd_len=16384 5213 # 5214 if test -x /sbin/sysconfig; then 5215 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5216 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5217 esac 5218 fi 5219 ;; 5220 sco3.2v5*) 5221 lt_cv_sys_max_cmd_len=102400 5222 ;; 5223 sysv5* | sco5v6* | sysv4.2uw2*) 5224 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5225 if test -n "$kargmax"; then 5226 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5227 else 5228 lt_cv_sys_max_cmd_len=32768 5229 fi 5230 ;; 5231 *) 5232 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5233 if test -n "$lt_cv_sys_max_cmd_len" && \ 5234 test undefined != "$lt_cv_sys_max_cmd_len"; then 5235 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5236 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5237 else 5238 # Make teststring a little bigger before we do anything with it. 5239 # a 1K string should be a reasonable start. 5240 for i in 1 2 3 4 5 6 7 8; do 5241 teststring=$teststring$teststring 5242 done 5243 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5244 # If test is not a shell built-in, we'll probably end up computing a 5245 # maximum length that is only half of the actual maximum length, but 5246 # we can't tell. 5247 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5248 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5249 test 17 != "$i" # 1/2 MB should be enough 5250 do 5251 i=`expr $i + 1` 5252 teststring=$teststring$teststring 5253 done 5254 # Only check the string length outside the loop. 5255 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5256 teststring= 5257 # Add a significant safety factor because C++ compilers can tack on 5258 # massive amounts of additional arguments before passing them to the 5259 # linker. It appears as though 1/2 is a usable value. 5260 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5261 fi 5262 ;; 5263 esac 5264 5265fi 5266 5267if test -n "$lt_cv_sys_max_cmd_len"; then 5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5269$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5270else 5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5272$as_echo "none" >&6; } 5273fi 5274max_cmd_len=$lt_cv_sys_max_cmd_len 5275 5276 5277 5278 5279 5280 5281: ${CP="cp -f"} 5282: ${MV="mv -f"} 5283: ${RM="rm -f"} 5284 5285if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5286 lt_unset=unset 5287else 5288 lt_unset=false 5289fi 5290 5291 5292 5293 5294 5295# test EBCDIC or ASCII 5296case `echo X|tr X '\101'` in 5297 A) # ASCII based system 5298 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5299 lt_SP2NL='tr \040 \012' 5300 lt_NL2SP='tr \015\012 \040\040' 5301 ;; 5302 *) # EBCDIC based system 5303 lt_SP2NL='tr \100 \n' 5304 lt_NL2SP='tr \r\n \100\100' 5305 ;; 5306esac 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5317$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5318if ${lt_cv_to_host_file_cmd+:} false; then : 5319 $as_echo_n "(cached) " >&6 5320else 5321 case $host in 5322 *-*-mingw* ) 5323 case $build in 5324 *-*-mingw* ) # actually msys 5325 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5326 ;; 5327 *-*-cygwin* ) 5328 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5329 ;; 5330 * ) # otherwise, assume *nix 5331 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5332 ;; 5333 esac 5334 ;; 5335 *-*-cygwin* ) 5336 case $build in 5337 *-*-mingw* ) # actually msys 5338 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5339 ;; 5340 *-*-cygwin* ) 5341 lt_cv_to_host_file_cmd=func_convert_file_noop 5342 ;; 5343 * ) # otherwise, assume *nix 5344 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5345 ;; 5346 esac 5347 ;; 5348 * ) # unhandled hosts (and "normal" native builds) 5349 lt_cv_to_host_file_cmd=func_convert_file_noop 5350 ;; 5351esac 5352 5353fi 5354 5355to_host_file_cmd=$lt_cv_to_host_file_cmd 5356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5357$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5358 5359 5360 5361 5362 5363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5364$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5365if ${lt_cv_to_tool_file_cmd+:} false; then : 5366 $as_echo_n "(cached) " >&6 5367else 5368 #assume ordinary cross tools, or native build. 5369lt_cv_to_tool_file_cmd=func_convert_file_noop 5370case $host in 5371 *-*-mingw* ) 5372 case $build in 5373 *-*-mingw* ) # actually msys 5374 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5375 ;; 5376 esac 5377 ;; 5378esac 5379 5380fi 5381 5382to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5384$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5385 5386 5387 5388 5389 5390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5391$as_echo_n "checking for $LD option to reload object files... " >&6; } 5392if ${lt_cv_ld_reload_flag+:} false; then : 5393 $as_echo_n "(cached) " >&6 5394else 5395 lt_cv_ld_reload_flag='-r' 5396fi 5397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5398$as_echo "$lt_cv_ld_reload_flag" >&6; } 5399reload_flag=$lt_cv_ld_reload_flag 5400case $reload_flag in 5401"" | " "*) ;; 5402*) reload_flag=" $reload_flag" ;; 5403esac 5404reload_cmds='$LD$reload_flag -o $output$reload_objs' 5405case $host_os in 5406 cygwin* | mingw* | pw32* | cegcc*) 5407 if test yes != "$GCC"; then 5408 reload_cmds=false 5409 fi 5410 ;; 5411 darwin*) 5412 if test yes = "$GCC"; then 5413 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5414 else 5415 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5416 fi 5417 ;; 5418esac 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428if test -n "$ac_tool_prefix"; then 5429 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5430set dummy ${ac_tool_prefix}objdump; ac_word=$2 5431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5432$as_echo_n "checking for $ac_word... " >&6; } 5433if ${ac_cv_prog_OBJDUMP+:} false; then : 5434 $as_echo_n "(cached) " >&6 5435else 5436 if test -n "$OBJDUMP"; then 5437 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5438else 5439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5440for as_dir in $PATH 5441do 5442 IFS=$as_save_IFS 5443 test -z "$as_dir" && as_dir=. 5444 for ac_exec_ext in '' $ac_executable_extensions; do 5445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5446 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5448 break 2 5449 fi 5450done 5451 done 5452IFS=$as_save_IFS 5453 5454fi 5455fi 5456OBJDUMP=$ac_cv_prog_OBJDUMP 5457if test -n "$OBJDUMP"; then 5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5459$as_echo "$OBJDUMP" >&6; } 5460else 5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5462$as_echo "no" >&6; } 5463fi 5464 5465 5466fi 5467if test -z "$ac_cv_prog_OBJDUMP"; then 5468 ac_ct_OBJDUMP=$OBJDUMP 5469 # Extract the first word of "objdump", so it can be a program name with args. 5470set dummy objdump; ac_word=$2 5471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5472$as_echo_n "checking for $ac_word... " >&6; } 5473if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5474 $as_echo_n "(cached) " >&6 5475else 5476 if test -n "$ac_ct_OBJDUMP"; then 5477 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5478else 5479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5480for as_dir in $PATH 5481do 5482 IFS=$as_save_IFS 5483 test -z "$as_dir" && as_dir=. 5484 for ac_exec_ext in '' $ac_executable_extensions; do 5485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5486 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5488 break 2 5489 fi 5490done 5491 done 5492IFS=$as_save_IFS 5493 5494fi 5495fi 5496ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5497if test -n "$ac_ct_OBJDUMP"; then 5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5499$as_echo "$ac_ct_OBJDUMP" >&6; } 5500else 5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5502$as_echo "no" >&6; } 5503fi 5504 5505 if test "x$ac_ct_OBJDUMP" = x; then 5506 OBJDUMP="false" 5507 else 5508 case $cross_compiling:$ac_tool_warned in 5509yes:) 5510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5512ac_tool_warned=yes ;; 5513esac 5514 OBJDUMP=$ac_ct_OBJDUMP 5515 fi 5516else 5517 OBJDUMP="$ac_cv_prog_OBJDUMP" 5518fi 5519 5520test -z "$OBJDUMP" && OBJDUMP=objdump 5521 5522 5523 5524 5525 5526 5527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5528$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5529if ${lt_cv_deplibs_check_method+:} false; then : 5530 $as_echo_n "(cached) " >&6 5531else 5532 lt_cv_file_magic_cmd='$MAGIC_CMD' 5533lt_cv_file_magic_test_file= 5534lt_cv_deplibs_check_method='unknown' 5535# Need to set the preceding variable on all platforms that support 5536# interlibrary dependencies. 5537# 'none' -- dependencies not supported. 5538# 'unknown' -- same as none, but documents that we really don't know. 5539# 'pass_all' -- all dependencies passed with no checks. 5540# 'test_compile' -- check by making test program. 5541# 'file_magic [[regex]]' -- check by looking for files in library path 5542# that responds to the $file_magic_cmd with a given extended regex. 5543# If you have 'file' or equivalent on your system and you're not sure 5544# whether 'pass_all' will *always* work, you probably want this one. 5545 5546case $host_os in 5547aix[4-9]*) 5548 lt_cv_deplibs_check_method=pass_all 5549 ;; 5550 5551beos*) 5552 lt_cv_deplibs_check_method=pass_all 5553 ;; 5554 5555bsdi[45]*) 5556 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5557 lt_cv_file_magic_cmd='/usr/bin/file -L' 5558 lt_cv_file_magic_test_file=/shlib/libc.so 5559 ;; 5560 5561cygwin*) 5562 # func_win32_libid is a shell function defined in ltmain.sh 5563 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5564 lt_cv_file_magic_cmd='func_win32_libid' 5565 ;; 5566 5567mingw* | pw32*) 5568 # Base MSYS/MinGW do not provide the 'file' command needed by 5569 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5570 # unless we find 'file', for example because we are cross-compiling. 5571 if ( file / ) >/dev/null 2>&1; then 5572 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5573 lt_cv_file_magic_cmd='func_win32_libid' 5574 else 5575 # Keep this pattern in sync with the one in func_win32_libid. 5576 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5577 lt_cv_file_magic_cmd='$OBJDUMP -f' 5578 fi 5579 ;; 5580 5581cegcc*) 5582 # use the weaker test based on 'objdump'. See mingw*. 5583 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5584 lt_cv_file_magic_cmd='$OBJDUMP -f' 5585 ;; 5586 5587darwin* | rhapsody*) 5588 lt_cv_deplibs_check_method=pass_all 5589 ;; 5590 5591freebsd* | dragonfly*) 5592 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5593 case $host_cpu in 5594 i*86 ) 5595 # Not sure whether the presence of OpenBSD here was a mistake. 5596 # Let's accept both of them until this is cleared up. 5597 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5598 lt_cv_file_magic_cmd=/usr/bin/file 5599 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5600 ;; 5601 esac 5602 else 5603 lt_cv_deplibs_check_method=pass_all 5604 fi 5605 ;; 5606 5607haiku*) 5608 lt_cv_deplibs_check_method=pass_all 5609 ;; 5610 5611hpux10.20* | hpux11*) 5612 lt_cv_file_magic_cmd=/usr/bin/file 5613 case $host_cpu in 5614 ia64*) 5615 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5616 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5617 ;; 5618 hppa*64*) 5619 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]' 5620 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5621 ;; 5622 *) 5623 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5624 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5625 ;; 5626 esac 5627 ;; 5628 5629interix[3-9]*) 5630 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5631 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5632 ;; 5633 5634irix5* | irix6* | nonstopux*) 5635 case $LD in 5636 *-32|*"-32 ") libmagic=32-bit;; 5637 *-n32|*"-n32 ") libmagic=N32;; 5638 *-64|*"-64 ") libmagic=64-bit;; 5639 *) libmagic=never-match;; 5640 esac 5641 lt_cv_deplibs_check_method=pass_all 5642 ;; 5643 5644# This must be glibc/ELF. 5645linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5646 lt_cv_deplibs_check_method=pass_all 5647 ;; 5648 5649netbsd*) 5650 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5651 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5652 else 5653 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5654 fi 5655 ;; 5656 5657newos6*) 5658 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5659 lt_cv_file_magic_cmd=/usr/bin/file 5660 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5661 ;; 5662 5663*nto* | *qnx*) 5664 lt_cv_deplibs_check_method=pass_all 5665 ;; 5666 5667openbsd* | bitrig*) 5668 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5669 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5670 else 5671 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5672 fi 5673 ;; 5674 5675osf3* | osf4* | osf5*) 5676 lt_cv_deplibs_check_method=pass_all 5677 ;; 5678 5679rdos*) 5680 lt_cv_deplibs_check_method=pass_all 5681 ;; 5682 5683solaris*) 5684 lt_cv_deplibs_check_method=pass_all 5685 ;; 5686 5687sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5688 lt_cv_deplibs_check_method=pass_all 5689 ;; 5690 5691sysv4 | sysv4.3*) 5692 case $host_vendor in 5693 motorola) 5694 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]' 5695 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5696 ;; 5697 ncr) 5698 lt_cv_deplibs_check_method=pass_all 5699 ;; 5700 sequent) 5701 lt_cv_file_magic_cmd='/bin/file' 5702 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5703 ;; 5704 sni) 5705 lt_cv_file_magic_cmd='/bin/file' 5706 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5707 lt_cv_file_magic_test_file=/lib/libc.so 5708 ;; 5709 siemens) 5710 lt_cv_deplibs_check_method=pass_all 5711 ;; 5712 pc) 5713 lt_cv_deplibs_check_method=pass_all 5714 ;; 5715 esac 5716 ;; 5717 5718tpf*) 5719 lt_cv_deplibs_check_method=pass_all 5720 ;; 5721os2*) 5722 lt_cv_deplibs_check_method=pass_all 5723 ;; 5724esac 5725 5726fi 5727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5728$as_echo "$lt_cv_deplibs_check_method" >&6; } 5729 5730file_magic_glob= 5731want_nocaseglob=no 5732if test "$build" = "$host"; then 5733 case $host_os in 5734 mingw* | pw32*) 5735 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5736 want_nocaseglob=yes 5737 else 5738 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5739 fi 5740 ;; 5741 esac 5742fi 5743 5744file_magic_cmd=$lt_cv_file_magic_cmd 5745deplibs_check_method=$lt_cv_deplibs_check_method 5746test -z "$deplibs_check_method" && deplibs_check_method=unknown 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769if test -n "$ac_tool_prefix"; then 5770 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5771set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5773$as_echo_n "checking for $ac_word... " >&6; } 5774if ${ac_cv_prog_DLLTOOL+:} false; then : 5775 $as_echo_n "(cached) " >&6 5776else 5777 if test -n "$DLLTOOL"; then 5778 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5779else 5780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5781for as_dir in $PATH 5782do 5783 IFS=$as_save_IFS 5784 test -z "$as_dir" && as_dir=. 5785 for ac_exec_ext in '' $ac_executable_extensions; do 5786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5787 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5789 break 2 5790 fi 5791done 5792 done 5793IFS=$as_save_IFS 5794 5795fi 5796fi 5797DLLTOOL=$ac_cv_prog_DLLTOOL 5798if test -n "$DLLTOOL"; then 5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5800$as_echo "$DLLTOOL" >&6; } 5801else 5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5803$as_echo "no" >&6; } 5804fi 5805 5806 5807fi 5808if test -z "$ac_cv_prog_DLLTOOL"; then 5809 ac_ct_DLLTOOL=$DLLTOOL 5810 # Extract the first word of "dlltool", so it can be a program name with args. 5811set dummy dlltool; ac_word=$2 5812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5813$as_echo_n "checking for $ac_word... " >&6; } 5814if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5815 $as_echo_n "(cached) " >&6 5816else 5817 if test -n "$ac_ct_DLLTOOL"; then 5818 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5819else 5820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5821for as_dir in $PATH 5822do 5823 IFS=$as_save_IFS 5824 test -z "$as_dir" && as_dir=. 5825 for ac_exec_ext in '' $ac_executable_extensions; do 5826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5827 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5829 break 2 5830 fi 5831done 5832 done 5833IFS=$as_save_IFS 5834 5835fi 5836fi 5837ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5838if test -n "$ac_ct_DLLTOOL"; then 5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5840$as_echo "$ac_ct_DLLTOOL" >&6; } 5841else 5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5843$as_echo "no" >&6; } 5844fi 5845 5846 if test "x$ac_ct_DLLTOOL" = x; then 5847 DLLTOOL="false" 5848 else 5849 case $cross_compiling:$ac_tool_warned in 5850yes:) 5851{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5852$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5853ac_tool_warned=yes ;; 5854esac 5855 DLLTOOL=$ac_ct_DLLTOOL 5856 fi 5857else 5858 DLLTOOL="$ac_cv_prog_DLLTOOL" 5859fi 5860 5861test -z "$DLLTOOL" && DLLTOOL=dlltool 5862 5863 5864 5865 5866 5867 5868 5869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5870$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5871if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5872 $as_echo_n "(cached) " >&6 5873else 5874 lt_cv_sharedlib_from_linklib_cmd='unknown' 5875 5876case $host_os in 5877cygwin* | mingw* | pw32* | cegcc*) 5878 # two different shell functions defined in ltmain.sh; 5879 # decide which one to use based on capabilities of $DLLTOOL 5880 case `$DLLTOOL --help 2>&1` in 5881 *--identify-strict*) 5882 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5883 ;; 5884 *) 5885 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5886 ;; 5887 esac 5888 ;; 5889*) 5890 # fallback: assume linklib IS sharedlib 5891 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5892 ;; 5893esac 5894 5895fi 5896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5897$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5898sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5899test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5900 5901 5902 5903 5904 5905 5906 5907 5908if test -n "$ac_tool_prefix"; then 5909 for ac_prog in ar 5910 do 5911 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5912set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5914$as_echo_n "checking for $ac_word... " >&6; } 5915if ${ac_cv_prog_AR+:} false; then : 5916 $as_echo_n "(cached) " >&6 5917else 5918 if test -n "$AR"; then 5919 ac_cv_prog_AR="$AR" # Let the user override the test. 5920else 5921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5922for as_dir in $PATH 5923do 5924 IFS=$as_save_IFS 5925 test -z "$as_dir" && as_dir=. 5926 for ac_exec_ext in '' $ac_executable_extensions; do 5927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5928 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5930 break 2 5931 fi 5932done 5933 done 5934IFS=$as_save_IFS 5935 5936fi 5937fi 5938AR=$ac_cv_prog_AR 5939if test -n "$AR"; then 5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5941$as_echo "$AR" >&6; } 5942else 5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5944$as_echo "no" >&6; } 5945fi 5946 5947 5948 test -n "$AR" && break 5949 done 5950fi 5951if test -z "$AR"; then 5952 ac_ct_AR=$AR 5953 for ac_prog in ar 5954do 5955 # Extract the first word of "$ac_prog", so it can be a program name with args. 5956set dummy $ac_prog; ac_word=$2 5957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5958$as_echo_n "checking for $ac_word... " >&6; } 5959if ${ac_cv_prog_ac_ct_AR+:} false; then : 5960 $as_echo_n "(cached) " >&6 5961else 5962 if test -n "$ac_ct_AR"; then 5963 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5964else 5965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5966for as_dir in $PATH 5967do 5968 IFS=$as_save_IFS 5969 test -z "$as_dir" && as_dir=. 5970 for ac_exec_ext in '' $ac_executable_extensions; do 5971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5972 ac_cv_prog_ac_ct_AR="$ac_prog" 5973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5974 break 2 5975 fi 5976done 5977 done 5978IFS=$as_save_IFS 5979 5980fi 5981fi 5982ac_ct_AR=$ac_cv_prog_ac_ct_AR 5983if test -n "$ac_ct_AR"; then 5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5985$as_echo "$ac_ct_AR" >&6; } 5986else 5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5988$as_echo "no" >&6; } 5989fi 5990 5991 5992 test -n "$ac_ct_AR" && break 5993done 5994 5995 if test "x$ac_ct_AR" = x; then 5996 AR="false" 5997 else 5998 case $cross_compiling:$ac_tool_warned in 5999yes:) 6000{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6001$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6002ac_tool_warned=yes ;; 6003esac 6004 AR=$ac_ct_AR 6005 fi 6006fi 6007 6008: ${AR=ar} 6009: ${AR_FLAGS=cru} 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6022$as_echo_n "checking for archiver @FILE support... " >&6; } 6023if ${lt_cv_ar_at_file+:} false; then : 6024 $as_echo_n "(cached) " >&6 6025else 6026 lt_cv_ar_at_file=no 6027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6028/* end confdefs.h. */ 6029 6030int 6031main () 6032{ 6033 6034 ; 6035 return 0; 6036} 6037_ACEOF 6038if ac_fn_c_try_compile "$LINENO"; then : 6039 echo conftest.$ac_objext > conftest.lst 6040 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6042 (eval $lt_ar_try) 2>&5 6043 ac_status=$? 6044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6045 test $ac_status = 0; } 6046 if test 0 -eq "$ac_status"; then 6047 # Ensure the archiver fails upon bogus file names. 6048 rm -f conftest.$ac_objext libconftest.a 6049 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6050 (eval $lt_ar_try) 2>&5 6051 ac_status=$? 6052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6053 test $ac_status = 0; } 6054 if test 0 -ne "$ac_status"; then 6055 lt_cv_ar_at_file=@ 6056 fi 6057 fi 6058 rm -f conftest.* libconftest.a 6059 6060fi 6061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6062 6063fi 6064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6065$as_echo "$lt_cv_ar_at_file" >&6; } 6066 6067if test no = "$lt_cv_ar_at_file"; then 6068 archiver_list_spec= 6069else 6070 archiver_list_spec=$lt_cv_ar_at_file 6071fi 6072 6073 6074 6075 6076 6077 6078 6079if test -n "$ac_tool_prefix"; then 6080 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6081set dummy ${ac_tool_prefix}strip; ac_word=$2 6082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6083$as_echo_n "checking for $ac_word... " >&6; } 6084if ${ac_cv_prog_STRIP+:} false; then : 6085 $as_echo_n "(cached) " >&6 6086else 6087 if test -n "$STRIP"; then 6088 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6089else 6090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6091for as_dir in $PATH 6092do 6093 IFS=$as_save_IFS 6094 test -z "$as_dir" && as_dir=. 6095 for ac_exec_ext in '' $ac_executable_extensions; do 6096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6097 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6099 break 2 6100 fi 6101done 6102 done 6103IFS=$as_save_IFS 6104 6105fi 6106fi 6107STRIP=$ac_cv_prog_STRIP 6108if test -n "$STRIP"; then 6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6110$as_echo "$STRIP" >&6; } 6111else 6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6113$as_echo "no" >&6; } 6114fi 6115 6116 6117fi 6118if test -z "$ac_cv_prog_STRIP"; then 6119 ac_ct_STRIP=$STRIP 6120 # Extract the first word of "strip", so it can be a program name with args. 6121set dummy strip; ac_word=$2 6122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6123$as_echo_n "checking for $ac_word... " >&6; } 6124if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6125 $as_echo_n "(cached) " >&6 6126else 6127 if test -n "$ac_ct_STRIP"; then 6128 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6129else 6130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6131for as_dir in $PATH 6132do 6133 IFS=$as_save_IFS 6134 test -z "$as_dir" && as_dir=. 6135 for ac_exec_ext in '' $ac_executable_extensions; do 6136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6137 ac_cv_prog_ac_ct_STRIP="strip" 6138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6139 break 2 6140 fi 6141done 6142 done 6143IFS=$as_save_IFS 6144 6145fi 6146fi 6147ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6148if test -n "$ac_ct_STRIP"; then 6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6150$as_echo "$ac_ct_STRIP" >&6; } 6151else 6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6153$as_echo "no" >&6; } 6154fi 6155 6156 if test "x$ac_ct_STRIP" = x; then 6157 STRIP=":" 6158 else 6159 case $cross_compiling:$ac_tool_warned in 6160yes:) 6161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6163ac_tool_warned=yes ;; 6164esac 6165 STRIP=$ac_ct_STRIP 6166 fi 6167else 6168 STRIP="$ac_cv_prog_STRIP" 6169fi 6170 6171test -z "$STRIP" && STRIP=: 6172 6173 6174 6175 6176 6177 6178if test -n "$ac_tool_prefix"; then 6179 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6180set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6182$as_echo_n "checking for $ac_word... " >&6; } 6183if ${ac_cv_prog_RANLIB+:} false; then : 6184 $as_echo_n "(cached) " >&6 6185else 6186 if test -n "$RANLIB"; then 6187 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6188else 6189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6190for as_dir in $PATH 6191do 6192 IFS=$as_save_IFS 6193 test -z "$as_dir" && as_dir=. 6194 for ac_exec_ext in '' $ac_executable_extensions; do 6195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6196 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6198 break 2 6199 fi 6200done 6201 done 6202IFS=$as_save_IFS 6203 6204fi 6205fi 6206RANLIB=$ac_cv_prog_RANLIB 6207if test -n "$RANLIB"; then 6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6209$as_echo "$RANLIB" >&6; } 6210else 6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6212$as_echo "no" >&6; } 6213fi 6214 6215 6216fi 6217if test -z "$ac_cv_prog_RANLIB"; then 6218 ac_ct_RANLIB=$RANLIB 6219 # Extract the first word of "ranlib", so it can be a program name with args. 6220set dummy ranlib; ac_word=$2 6221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6222$as_echo_n "checking for $ac_word... " >&6; } 6223if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6224 $as_echo_n "(cached) " >&6 6225else 6226 if test -n "$ac_ct_RANLIB"; then 6227 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6228else 6229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6230for as_dir in $PATH 6231do 6232 IFS=$as_save_IFS 6233 test -z "$as_dir" && as_dir=. 6234 for ac_exec_ext in '' $ac_executable_extensions; do 6235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6236 ac_cv_prog_ac_ct_RANLIB="ranlib" 6237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6238 break 2 6239 fi 6240done 6241 done 6242IFS=$as_save_IFS 6243 6244fi 6245fi 6246ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6247if test -n "$ac_ct_RANLIB"; then 6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6249$as_echo "$ac_ct_RANLIB" >&6; } 6250else 6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6252$as_echo "no" >&6; } 6253fi 6254 6255 if test "x$ac_ct_RANLIB" = x; then 6256 RANLIB=":" 6257 else 6258 case $cross_compiling:$ac_tool_warned in 6259yes:) 6260{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6262ac_tool_warned=yes ;; 6263esac 6264 RANLIB=$ac_ct_RANLIB 6265 fi 6266else 6267 RANLIB="$ac_cv_prog_RANLIB" 6268fi 6269 6270test -z "$RANLIB" && RANLIB=: 6271 6272 6273 6274 6275 6276 6277# Determine commands to create old-style static archives. 6278old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6279old_postinstall_cmds='chmod 644 $oldlib' 6280old_postuninstall_cmds= 6281 6282if test -n "$RANLIB"; then 6283 case $host_os in 6284 bitrig* | openbsd*) 6285 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6286 ;; 6287 *) 6288 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6289 ;; 6290 esac 6291 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6292fi 6293 6294case $host_os in 6295 darwin*) 6296 lock_old_archive_extraction=yes ;; 6297 *) 6298 lock_old_archive_extraction=no ;; 6299esac 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339# If no C compiler was specified, use CC. 6340LTCC=${LTCC-"$CC"} 6341 6342# If no C compiler flags were specified, use CFLAGS. 6343LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6344 6345# Allow CC to be a program name with arguments. 6346compiler=$CC 6347 6348 6349# Check for command to grab the raw symbol name followed by C symbol from nm. 6350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6351$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6352if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6353 $as_echo_n "(cached) " >&6 6354else 6355 6356# These are sane defaults that work on at least a few old systems. 6357# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6358 6359# Character class describing NM global symbol codes. 6360symcode='[BCDEGRST]' 6361 6362# Regexp to match symbols that can be accessed directly from C. 6363sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6364 6365# Define system-specific variables. 6366case $host_os in 6367aix*) 6368 symcode='[BCDT]' 6369 ;; 6370cygwin* | mingw* | pw32* | cegcc*) 6371 symcode='[ABCDGISTW]' 6372 ;; 6373hpux*) 6374 if test ia64 = "$host_cpu"; then 6375 symcode='[ABCDEGRST]' 6376 fi 6377 ;; 6378irix* | nonstopux*) 6379 symcode='[BCDEGRST]' 6380 ;; 6381osf*) 6382 symcode='[BCDEGQRST]' 6383 ;; 6384solaris*) 6385 symcode='[BDRT]' 6386 ;; 6387sco3.2v5*) 6388 symcode='[DT]' 6389 ;; 6390sysv4.2uw2*) 6391 symcode='[DT]' 6392 ;; 6393sysv5* | sco5v6* | unixware* | OpenUNIX*) 6394 symcode='[ABDT]' 6395 ;; 6396sysv4) 6397 symcode='[DFNSTU]' 6398 ;; 6399esac 6400 6401# If we're using GNU nm, then use its standard symbol codes. 6402case `$NM -V 2>&1` in 6403*GNU* | *'with BFD'*) 6404 symcode='[ABCDGIRSTW]' ;; 6405esac 6406 6407if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6408 # Gets list of data symbols to import. 6409 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6410 # Adjust the below global symbol transforms to fixup imported variables. 6411 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6412 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6413 lt_c_name_lib_hook="\ 6414 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6415 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6416else 6417 # Disable hooks by default. 6418 lt_cv_sys_global_symbol_to_import= 6419 lt_cdecl_hook= 6420 lt_c_name_hook= 6421 lt_c_name_lib_hook= 6422fi 6423 6424# Transform an extracted symbol line into a proper C declaration. 6425# Some systems (esp. on ia64) link data and code symbols differently, 6426# so use this general approach. 6427lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6428$lt_cdecl_hook\ 6429" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6430" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6431 6432# Transform an extracted symbol line into symbol name and symbol address 6433lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6434$lt_c_name_hook\ 6435" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6436" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6437 6438# Transform an extracted symbol line into symbol name with lib prefix and 6439# symbol address. 6440lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6441$lt_c_name_lib_hook\ 6442" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6443" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6444" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6445 6446# Handle CRLF in mingw tool chain 6447opt_cr= 6448case $build_os in 6449mingw*) 6450 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6451 ;; 6452esac 6453 6454# Try without a prefix underscore, then with it. 6455for ac_symprfx in "" "_"; do 6456 6457 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6458 symxfrm="\\1 $ac_symprfx\\2 \\2" 6459 6460 # Write the raw and C identifiers. 6461 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6462 # Fake it for dumpbin and say T for any non-static function, 6463 # D for any global variable and I for any imported variable. 6464 # Also find C++ and __fastcall symbols from MSVC++, 6465 # which start with @ or ?. 6466 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6467" {last_section=section; section=\$ 3};"\ 6468" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6469" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6470" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6471" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6472" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6473" \$ 0!~/External *\|/{next};"\ 6474" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6475" {if(hide[section]) next};"\ 6476" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6477" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6478" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6479" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6480" ' prfx=^$ac_symprfx" 6481 else 6482 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6483 fi 6484 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6485 6486 # Check to see that the pipe works correctly. 6487 pipe_works=no 6488 6489 rm -f conftest* 6490 cat > conftest.$ac_ext <<_LT_EOF 6491#ifdef __cplusplus 6492extern "C" { 6493#endif 6494char nm_test_var; 6495void nm_test_func(void); 6496void nm_test_func(void){} 6497#ifdef __cplusplus 6498} 6499#endif 6500int main(){nm_test_var='a';nm_test_func();return(0);} 6501_LT_EOF 6502 6503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6504 (eval $ac_compile) 2>&5 6505 ac_status=$? 6506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6507 test $ac_status = 0; }; then 6508 # Now try to grab the symbols. 6509 nlist=conftest.nm 6510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6511 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6512 ac_status=$? 6513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6514 test $ac_status = 0; } && test -s "$nlist"; then 6515 # Try sorting and uniquifying the output. 6516 if sort "$nlist" | uniq > "$nlist"T; then 6517 mv -f "$nlist"T "$nlist" 6518 else 6519 rm -f "$nlist"T 6520 fi 6521 6522 # Make sure that we snagged all the symbols we need. 6523 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6524 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6525 cat <<_LT_EOF > conftest.$ac_ext 6526/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6527#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6528/* DATA imports from DLLs on WIN32 can't be const, because runtime 6529 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6530# define LT@&t@_DLSYM_CONST 6531#elif defined __osf__ 6532/* This system does not cope well with relocations in const data. */ 6533# define LT@&t@_DLSYM_CONST 6534#else 6535# define LT@&t@_DLSYM_CONST const 6536#endif 6537 6538#ifdef __cplusplus 6539extern "C" { 6540#endif 6541 6542_LT_EOF 6543 # Now generate the symbol file. 6544 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6545 6546 cat <<_LT_EOF >> conftest.$ac_ext 6547 6548/* The mapping between symbol names and symbols. */ 6549LT@&t@_DLSYM_CONST struct { 6550 const char *name; 6551 void *address; 6552} 6553lt__PROGRAM__LTX_preloaded_symbols[] = 6554{ 6555 { "@PROGRAM@", (void *) 0 }, 6556_LT_EOF 6557 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6558 cat <<\_LT_EOF >> conftest.$ac_ext 6559 {0, (void *) 0} 6560}; 6561 6562/* This works around a problem in FreeBSD linker */ 6563#ifdef FREEBSD_WORKAROUND 6564static const void *lt_preloaded_setup() { 6565 return lt__PROGRAM__LTX_preloaded_symbols; 6566} 6567#endif 6568 6569#ifdef __cplusplus 6570} 6571#endif 6572_LT_EOF 6573 # Now try linking the two files. 6574 mv conftest.$ac_objext conftstm.$ac_objext 6575 lt_globsym_save_LIBS=$LIBS 6576 lt_globsym_save_CFLAGS=$CFLAGS 6577 LIBS=conftstm.$ac_objext 6578 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6580 (eval $ac_link) 2>&5 6581 ac_status=$? 6582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6583 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6584 pipe_works=yes 6585 fi 6586 LIBS=$lt_globsym_save_LIBS 6587 CFLAGS=$lt_globsym_save_CFLAGS 6588 else 6589 echo "cannot find nm_test_func in $nlist" >&5 6590 fi 6591 else 6592 echo "cannot find nm_test_var in $nlist" >&5 6593 fi 6594 else 6595 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6596 fi 6597 else 6598 echo "$progname: failed program was:" >&5 6599 cat conftest.$ac_ext >&5 6600 fi 6601 rm -rf conftest* conftst* 6602 6603 # Do not use the global_symbol_pipe unless it works. 6604 if test yes = "$pipe_works"; then 6605 break 6606 else 6607 lt_cv_sys_global_symbol_pipe= 6608 fi 6609done 6610 6611fi 6612 6613if test -z "$lt_cv_sys_global_symbol_pipe"; then 6614 lt_cv_sys_global_symbol_to_cdecl= 6615fi 6616if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6618$as_echo "failed" >&6; } 6619else 6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6621$as_echo "ok" >&6; } 6622fi 6623 6624# Response file support. 6625if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6626 nm_file_list_spec='@' 6627elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6628 nm_file_list_spec='@' 6629fi 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6668$as_echo_n "checking for sysroot... " >&6; } 6669 6670@%:@ Check whether --with-sysroot was given. 6671if test "${with_sysroot+set}" = set; then : 6672 withval=$with_sysroot; 6673else 6674 with_sysroot=no 6675fi 6676 6677 6678lt_sysroot= 6679case $with_sysroot in #( 6680 yes) 6681 if test yes = "$GCC"; then 6682 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6683 fi 6684 ;; #( 6685 /*) 6686 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6687 ;; #( 6688 no|'') 6689 ;; #( 6690 *) 6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6692$as_echo "$with_sysroot" >&6; } 6693 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6694 ;; 6695esac 6696 6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6698$as_echo "${lt_sysroot:-no}" >&6; } 6699 6700 6701 6702 6703 6704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6705$as_echo_n "checking for a working dd... " >&6; } 6706if ${ac_cv_path_lt_DD+:} false; then : 6707 $as_echo_n "(cached) " >&6 6708else 6709 printf 0123456789abcdef0123456789abcdef >conftest.i 6710cat conftest.i conftest.i >conftest2.i 6711: ${lt_DD:=$DD} 6712if test -z "$lt_DD"; then 6713 ac_path_lt_DD_found=false 6714 # Loop through the user's path and test for each of PROGNAME-LIST 6715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6716for as_dir in $PATH 6717do 6718 IFS=$as_save_IFS 6719 test -z "$as_dir" && as_dir=. 6720 for ac_prog in dd; do 6721 for ac_exec_ext in '' $ac_executable_extensions; do 6722 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6723 as_fn_executable_p "$ac_path_lt_DD" || continue 6724if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6725 cmp -s conftest.i conftest.out \ 6726 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6727fi 6728 $ac_path_lt_DD_found && break 3 6729 done 6730 done 6731 done 6732IFS=$as_save_IFS 6733 if test -z "$ac_cv_path_lt_DD"; then 6734 : 6735 fi 6736else 6737 ac_cv_path_lt_DD=$lt_DD 6738fi 6739 6740rm -f conftest.i conftest2.i conftest.out 6741fi 6742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6743$as_echo "$ac_cv_path_lt_DD" >&6; } 6744 6745 6746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6747$as_echo_n "checking how to truncate binary pipes... " >&6; } 6748if ${lt_cv_truncate_bin+:} false; then : 6749 $as_echo_n "(cached) " >&6 6750else 6751 printf 0123456789abcdef0123456789abcdef >conftest.i 6752cat conftest.i conftest.i >conftest2.i 6753lt_cv_truncate_bin= 6754if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6755 cmp -s conftest.i conftest.out \ 6756 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6757fi 6758rm -f conftest.i conftest2.i conftest.out 6759test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6760fi 6761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6762$as_echo "$lt_cv_truncate_bin" >&6; } 6763 6764 6765 6766 6767 6768 6769 6770# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6771func_cc_basename () 6772{ 6773 for cc_temp in @S|@*""; do 6774 case $cc_temp in 6775 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6776 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6777 \-*) ;; 6778 *) break;; 6779 esac 6780 done 6781 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6782} 6783 6784@%:@ Check whether --enable-libtool-lock was given. 6785if test "${enable_libtool_lock+set}" = set; then : 6786 enableval=$enable_libtool_lock; 6787fi 6788 6789test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6790 6791# Some flags need to be propagated to the compiler or linker for good 6792# libtool support. 6793case $host in 6794ia64-*-hpux*) 6795 # Find out what ABI is being produced by ac_compile, and set mode 6796 # options accordingly. 6797 echo 'int i;' > conftest.$ac_ext 6798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6799 (eval $ac_compile) 2>&5 6800 ac_status=$? 6801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6802 test $ac_status = 0; }; then 6803 case `/usr/bin/file conftest.$ac_objext` in 6804 *ELF-32*) 6805 HPUX_IA64_MODE=32 6806 ;; 6807 *ELF-64*) 6808 HPUX_IA64_MODE=64 6809 ;; 6810 esac 6811 fi 6812 rm -rf conftest* 6813 ;; 6814*-*-irix6*) 6815 # Find out what ABI is being produced by ac_compile, and set linker 6816 # options accordingly. 6817 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6819 (eval $ac_compile) 2>&5 6820 ac_status=$? 6821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6822 test $ac_status = 0; }; then 6823 if test yes = "$lt_cv_prog_gnu_ld"; then 6824 case `/usr/bin/file conftest.$ac_objext` in 6825 *32-bit*) 6826 LD="${LD-ld} -melf32bsmip" 6827 ;; 6828 *N32*) 6829 LD="${LD-ld} -melf32bmipn32" 6830 ;; 6831 *64-bit*) 6832 LD="${LD-ld} -melf64bmip" 6833 ;; 6834 esac 6835 else 6836 case `/usr/bin/file conftest.$ac_objext` in 6837 *32-bit*) 6838 LD="${LD-ld} -32" 6839 ;; 6840 *N32*) 6841 LD="${LD-ld} -n32" 6842 ;; 6843 *64-bit*) 6844 LD="${LD-ld} -64" 6845 ;; 6846 esac 6847 fi 6848 fi 6849 rm -rf conftest* 6850 ;; 6851 6852mips64*-*linux*) 6853 # Find out what ABI is being produced by ac_compile, and set linker 6854 # options accordingly. 6855 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6857 (eval $ac_compile) 2>&5 6858 ac_status=$? 6859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6860 test $ac_status = 0; }; then 6861 emul=elf 6862 case `/usr/bin/file conftest.$ac_objext` in 6863 *32-bit*) 6864 emul="${emul}32" 6865 ;; 6866 *64-bit*) 6867 emul="${emul}64" 6868 ;; 6869 esac 6870 case `/usr/bin/file conftest.$ac_objext` in 6871 *MSB*) 6872 emul="${emul}btsmip" 6873 ;; 6874 *LSB*) 6875 emul="${emul}ltsmip" 6876 ;; 6877 esac 6878 case `/usr/bin/file conftest.$ac_objext` in 6879 *N32*) 6880 emul="${emul}n32" 6881 ;; 6882 esac 6883 LD="${LD-ld} -m $emul" 6884 fi 6885 rm -rf conftest* 6886 ;; 6887 6888x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6889s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6890 # Find out what ABI is being produced by ac_compile, and set linker 6891 # options accordingly. Note that the listed cases only cover the 6892 # situations where additional linker options are needed (such as when 6893 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6894 # vice versa); the common cases where no linker options are needed do 6895 # not appear in the list. 6896 echo 'int i;' > conftest.$ac_ext 6897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6898 (eval $ac_compile) 2>&5 6899 ac_status=$? 6900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6901 test $ac_status = 0; }; then 6902 case `/usr/bin/file conftest.o` in 6903 *32-bit*) 6904 case $host in 6905 x86_64-*kfreebsd*-gnu) 6906 LD="${LD-ld} -m elf_i386_fbsd" 6907 ;; 6908 x86_64-*linux*) 6909 case `/usr/bin/file conftest.o` in 6910 *x86-64*) 6911 LD="${LD-ld} -m elf32_x86_64" 6912 ;; 6913 *) 6914 LD="${LD-ld} -m elf_i386" 6915 ;; 6916 esac 6917 ;; 6918 powerpc64le-*linux*) 6919 LD="${LD-ld} -m elf32lppclinux" 6920 ;; 6921 powerpc64-*linux*) 6922 LD="${LD-ld} -m elf32ppclinux" 6923 ;; 6924 s390x-*linux*) 6925 LD="${LD-ld} -m elf_s390" 6926 ;; 6927 sparc64-*linux*) 6928 LD="${LD-ld} -m elf32_sparc" 6929 ;; 6930 esac 6931 ;; 6932 *64-bit*) 6933 case $host in 6934 x86_64-*kfreebsd*-gnu) 6935 LD="${LD-ld} -m elf_x86_64_fbsd" 6936 ;; 6937 x86_64-*linux*) 6938 LD="${LD-ld} -m elf_x86_64" 6939 ;; 6940 powerpcle-*linux*) 6941 LD="${LD-ld} -m elf64lppc" 6942 ;; 6943 powerpc-*linux*) 6944 LD="${LD-ld} -m elf64ppc" 6945 ;; 6946 s390*-*linux*|s390*-*tpf*) 6947 LD="${LD-ld} -m elf64_s390" 6948 ;; 6949 sparc*-*linux*) 6950 LD="${LD-ld} -m elf64_sparc" 6951 ;; 6952 esac 6953 ;; 6954 esac 6955 fi 6956 rm -rf conftest* 6957 ;; 6958 6959*-*-sco3.2v5*) 6960 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6961 SAVE_CFLAGS=$CFLAGS 6962 CFLAGS="$CFLAGS -belf" 6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6964$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6965if ${lt_cv_cc_needs_belf+:} false; then : 6966 $as_echo_n "(cached) " >&6 6967else 6968 ac_ext=c 6969ac_cpp='$CPP $CPPFLAGS' 6970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6972ac_compiler_gnu=$ac_cv_c_compiler_gnu 6973 6974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6975/* end confdefs.h. */ 6976 6977int 6978main () 6979{ 6980 6981 ; 6982 return 0; 6983} 6984_ACEOF 6985if ac_fn_c_try_link "$LINENO"; then : 6986 lt_cv_cc_needs_belf=yes 6987else 6988 lt_cv_cc_needs_belf=no 6989fi 6990rm -f core conftest.err conftest.$ac_objext \ 6991 conftest$ac_exeext conftest.$ac_ext 6992 ac_ext=c 6993ac_cpp='$CPP $CPPFLAGS' 6994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6996ac_compiler_gnu=$ac_cv_c_compiler_gnu 6997 6998fi 6999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7000$as_echo "$lt_cv_cc_needs_belf" >&6; } 7001 if test yes != "$lt_cv_cc_needs_belf"; then 7002 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7003 CFLAGS=$SAVE_CFLAGS 7004 fi 7005 ;; 7006*-*solaris*) 7007 # Find out what ABI is being produced by ac_compile, and set linker 7008 # options accordingly. 7009 echo 'int i;' > conftest.$ac_ext 7010 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7011 (eval $ac_compile) 2>&5 7012 ac_status=$? 7013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7014 test $ac_status = 0; }; then 7015 case `/usr/bin/file conftest.o` in 7016 *64-bit*) 7017 case $lt_cv_prog_gnu_ld in 7018 yes*) 7019 case $host in 7020 i?86-*-solaris*|x86_64-*-solaris*) 7021 LD="${LD-ld} -m elf_x86_64" 7022 ;; 7023 sparc*-*-solaris*) 7024 LD="${LD-ld} -m elf64_sparc" 7025 ;; 7026 esac 7027 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7028 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7029 LD=${LD-ld}_sol2 7030 fi 7031 ;; 7032 *) 7033 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7034 LD="${LD-ld} -64" 7035 fi 7036 ;; 7037 esac 7038 ;; 7039 esac 7040 fi 7041 rm -rf conftest* 7042 ;; 7043esac 7044 7045need_locks=$enable_libtool_lock 7046 7047if test -n "$ac_tool_prefix"; then 7048 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7049set dummy ${ac_tool_prefix}mt; ac_word=$2 7050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7051$as_echo_n "checking for $ac_word... " >&6; } 7052if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7053 $as_echo_n "(cached) " >&6 7054else 7055 if test -n "$MANIFEST_TOOL"; then 7056 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7057else 7058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7059for as_dir in $PATH 7060do 7061 IFS=$as_save_IFS 7062 test -z "$as_dir" && as_dir=. 7063 for ac_exec_ext in '' $ac_executable_extensions; do 7064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7065 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7067 break 2 7068 fi 7069done 7070 done 7071IFS=$as_save_IFS 7072 7073fi 7074fi 7075MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7076if test -n "$MANIFEST_TOOL"; then 7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7078$as_echo "$MANIFEST_TOOL" >&6; } 7079else 7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7081$as_echo "no" >&6; } 7082fi 7083 7084 7085fi 7086if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7087 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7088 # Extract the first word of "mt", so it can be a program name with args. 7089set dummy mt; ac_word=$2 7090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7091$as_echo_n "checking for $ac_word... " >&6; } 7092if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7093 $as_echo_n "(cached) " >&6 7094else 7095 if test -n "$ac_ct_MANIFEST_TOOL"; then 7096 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7097else 7098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7099for as_dir in $PATH 7100do 7101 IFS=$as_save_IFS 7102 test -z "$as_dir" && as_dir=. 7103 for ac_exec_ext in '' $ac_executable_extensions; do 7104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7105 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7107 break 2 7108 fi 7109done 7110 done 7111IFS=$as_save_IFS 7112 7113fi 7114fi 7115ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7116if test -n "$ac_ct_MANIFEST_TOOL"; then 7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7118$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7119else 7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7121$as_echo "no" >&6; } 7122fi 7123 7124 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7125 MANIFEST_TOOL=":" 7126 else 7127 case $cross_compiling:$ac_tool_warned in 7128yes:) 7129{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7130$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7131ac_tool_warned=yes ;; 7132esac 7133 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7134 fi 7135else 7136 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7137fi 7138 7139test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7141$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7142if ${lt_cv_path_mainfest_tool+:} false; then : 7143 $as_echo_n "(cached) " >&6 7144else 7145 lt_cv_path_mainfest_tool=no 7146 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7147 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7148 cat conftest.err >&5 7149 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7150 lt_cv_path_mainfest_tool=yes 7151 fi 7152 rm -f conftest* 7153fi 7154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7155$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7156if test yes != "$lt_cv_path_mainfest_tool"; then 7157 MANIFEST_TOOL=: 7158fi 7159 7160 7161 7162 7163 7164 7165 case $host_os in 7166 rhapsody* | darwin*) 7167 if test -n "$ac_tool_prefix"; then 7168 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7169set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7171$as_echo_n "checking for $ac_word... " >&6; } 7172if ${ac_cv_prog_DSYMUTIL+:} false; then : 7173 $as_echo_n "(cached) " >&6 7174else 7175 if test -n "$DSYMUTIL"; then 7176 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7177else 7178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7179for as_dir in $PATH 7180do 7181 IFS=$as_save_IFS 7182 test -z "$as_dir" && as_dir=. 7183 for ac_exec_ext in '' $ac_executable_extensions; do 7184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7185 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7187 break 2 7188 fi 7189done 7190 done 7191IFS=$as_save_IFS 7192 7193fi 7194fi 7195DSYMUTIL=$ac_cv_prog_DSYMUTIL 7196if test -n "$DSYMUTIL"; then 7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7198$as_echo "$DSYMUTIL" >&6; } 7199else 7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7201$as_echo "no" >&6; } 7202fi 7203 7204 7205fi 7206if test -z "$ac_cv_prog_DSYMUTIL"; then 7207 ac_ct_DSYMUTIL=$DSYMUTIL 7208 # Extract the first word of "dsymutil", so it can be a program name with args. 7209set dummy dsymutil; ac_word=$2 7210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7211$as_echo_n "checking for $ac_word... " >&6; } 7212if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7213 $as_echo_n "(cached) " >&6 7214else 7215 if test -n "$ac_ct_DSYMUTIL"; then 7216 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7217else 7218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7219for as_dir in $PATH 7220do 7221 IFS=$as_save_IFS 7222 test -z "$as_dir" && as_dir=. 7223 for ac_exec_ext in '' $ac_executable_extensions; do 7224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7225 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7227 break 2 7228 fi 7229done 7230 done 7231IFS=$as_save_IFS 7232 7233fi 7234fi 7235ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7236if test -n "$ac_ct_DSYMUTIL"; then 7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7238$as_echo "$ac_ct_DSYMUTIL" >&6; } 7239else 7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7241$as_echo "no" >&6; } 7242fi 7243 7244 if test "x$ac_ct_DSYMUTIL" = x; then 7245 DSYMUTIL=":" 7246 else 7247 case $cross_compiling:$ac_tool_warned in 7248yes:) 7249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7251ac_tool_warned=yes ;; 7252esac 7253 DSYMUTIL=$ac_ct_DSYMUTIL 7254 fi 7255else 7256 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7257fi 7258 7259 if test -n "$ac_tool_prefix"; then 7260 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7261set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7263$as_echo_n "checking for $ac_word... " >&6; } 7264if ${ac_cv_prog_NMEDIT+:} false; then : 7265 $as_echo_n "(cached) " >&6 7266else 7267 if test -n "$NMEDIT"; then 7268 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7269else 7270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7271for as_dir in $PATH 7272do 7273 IFS=$as_save_IFS 7274 test -z "$as_dir" && as_dir=. 7275 for ac_exec_ext in '' $ac_executable_extensions; do 7276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7277 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7279 break 2 7280 fi 7281done 7282 done 7283IFS=$as_save_IFS 7284 7285fi 7286fi 7287NMEDIT=$ac_cv_prog_NMEDIT 7288if test -n "$NMEDIT"; then 7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7290$as_echo "$NMEDIT" >&6; } 7291else 7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7293$as_echo "no" >&6; } 7294fi 7295 7296 7297fi 7298if test -z "$ac_cv_prog_NMEDIT"; then 7299 ac_ct_NMEDIT=$NMEDIT 7300 # Extract the first word of "nmedit", so it can be a program name with args. 7301set dummy nmedit; ac_word=$2 7302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7303$as_echo_n "checking for $ac_word... " >&6; } 7304if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7305 $as_echo_n "(cached) " >&6 7306else 7307 if test -n "$ac_ct_NMEDIT"; then 7308 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7309else 7310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7311for as_dir in $PATH 7312do 7313 IFS=$as_save_IFS 7314 test -z "$as_dir" && as_dir=. 7315 for ac_exec_ext in '' $ac_executable_extensions; do 7316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7317 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7319 break 2 7320 fi 7321done 7322 done 7323IFS=$as_save_IFS 7324 7325fi 7326fi 7327ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7328if test -n "$ac_ct_NMEDIT"; then 7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7330$as_echo "$ac_ct_NMEDIT" >&6; } 7331else 7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7333$as_echo "no" >&6; } 7334fi 7335 7336 if test "x$ac_ct_NMEDIT" = x; then 7337 NMEDIT=":" 7338 else 7339 case $cross_compiling:$ac_tool_warned in 7340yes:) 7341{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7342$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7343ac_tool_warned=yes ;; 7344esac 7345 NMEDIT=$ac_ct_NMEDIT 7346 fi 7347else 7348 NMEDIT="$ac_cv_prog_NMEDIT" 7349fi 7350 7351 if test -n "$ac_tool_prefix"; then 7352 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7353set dummy ${ac_tool_prefix}lipo; ac_word=$2 7354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7355$as_echo_n "checking for $ac_word... " >&6; } 7356if ${ac_cv_prog_LIPO+:} false; then : 7357 $as_echo_n "(cached) " >&6 7358else 7359 if test -n "$LIPO"; then 7360 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7361else 7362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7363for as_dir in $PATH 7364do 7365 IFS=$as_save_IFS 7366 test -z "$as_dir" && as_dir=. 7367 for ac_exec_ext in '' $ac_executable_extensions; do 7368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7369 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7371 break 2 7372 fi 7373done 7374 done 7375IFS=$as_save_IFS 7376 7377fi 7378fi 7379LIPO=$ac_cv_prog_LIPO 7380if test -n "$LIPO"; then 7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7382$as_echo "$LIPO" >&6; } 7383else 7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7385$as_echo "no" >&6; } 7386fi 7387 7388 7389fi 7390if test -z "$ac_cv_prog_LIPO"; then 7391 ac_ct_LIPO=$LIPO 7392 # Extract the first word of "lipo", so it can be a program name with args. 7393set dummy lipo; ac_word=$2 7394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7395$as_echo_n "checking for $ac_word... " >&6; } 7396if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7397 $as_echo_n "(cached) " >&6 7398else 7399 if test -n "$ac_ct_LIPO"; then 7400 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7401else 7402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7403for as_dir in $PATH 7404do 7405 IFS=$as_save_IFS 7406 test -z "$as_dir" && as_dir=. 7407 for ac_exec_ext in '' $ac_executable_extensions; do 7408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7409 ac_cv_prog_ac_ct_LIPO="lipo" 7410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7411 break 2 7412 fi 7413done 7414 done 7415IFS=$as_save_IFS 7416 7417fi 7418fi 7419ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7420if test -n "$ac_ct_LIPO"; then 7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7422$as_echo "$ac_ct_LIPO" >&6; } 7423else 7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7425$as_echo "no" >&6; } 7426fi 7427 7428 if test "x$ac_ct_LIPO" = x; then 7429 LIPO=":" 7430 else 7431 case $cross_compiling:$ac_tool_warned in 7432yes:) 7433{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7434$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7435ac_tool_warned=yes ;; 7436esac 7437 LIPO=$ac_ct_LIPO 7438 fi 7439else 7440 LIPO="$ac_cv_prog_LIPO" 7441fi 7442 7443 if test -n "$ac_tool_prefix"; then 7444 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7445set dummy ${ac_tool_prefix}otool; ac_word=$2 7446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7447$as_echo_n "checking for $ac_word... " >&6; } 7448if ${ac_cv_prog_OTOOL+:} false; then : 7449 $as_echo_n "(cached) " >&6 7450else 7451 if test -n "$OTOOL"; then 7452 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7453else 7454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7455for as_dir in $PATH 7456do 7457 IFS=$as_save_IFS 7458 test -z "$as_dir" && as_dir=. 7459 for ac_exec_ext in '' $ac_executable_extensions; do 7460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7461 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7463 break 2 7464 fi 7465done 7466 done 7467IFS=$as_save_IFS 7468 7469fi 7470fi 7471OTOOL=$ac_cv_prog_OTOOL 7472if test -n "$OTOOL"; then 7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7474$as_echo "$OTOOL" >&6; } 7475else 7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7477$as_echo "no" >&6; } 7478fi 7479 7480 7481fi 7482if test -z "$ac_cv_prog_OTOOL"; then 7483 ac_ct_OTOOL=$OTOOL 7484 # Extract the first word of "otool", so it can be a program name with args. 7485set dummy otool; ac_word=$2 7486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7487$as_echo_n "checking for $ac_word... " >&6; } 7488if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7489 $as_echo_n "(cached) " >&6 7490else 7491 if test -n "$ac_ct_OTOOL"; then 7492 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7493else 7494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7495for as_dir in $PATH 7496do 7497 IFS=$as_save_IFS 7498 test -z "$as_dir" && as_dir=. 7499 for ac_exec_ext in '' $ac_executable_extensions; do 7500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7501 ac_cv_prog_ac_ct_OTOOL="otool" 7502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7503 break 2 7504 fi 7505done 7506 done 7507IFS=$as_save_IFS 7508 7509fi 7510fi 7511ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7512if test -n "$ac_ct_OTOOL"; then 7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7514$as_echo "$ac_ct_OTOOL" >&6; } 7515else 7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7517$as_echo "no" >&6; } 7518fi 7519 7520 if test "x$ac_ct_OTOOL" = x; then 7521 OTOOL=":" 7522 else 7523 case $cross_compiling:$ac_tool_warned in 7524yes:) 7525{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7526$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7527ac_tool_warned=yes ;; 7528esac 7529 OTOOL=$ac_ct_OTOOL 7530 fi 7531else 7532 OTOOL="$ac_cv_prog_OTOOL" 7533fi 7534 7535 if test -n "$ac_tool_prefix"; then 7536 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7537set dummy ${ac_tool_prefix}otool64; ac_word=$2 7538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7539$as_echo_n "checking for $ac_word... " >&6; } 7540if ${ac_cv_prog_OTOOL64+:} false; then : 7541 $as_echo_n "(cached) " >&6 7542else 7543 if test -n "$OTOOL64"; then 7544 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7545else 7546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7547for as_dir in $PATH 7548do 7549 IFS=$as_save_IFS 7550 test -z "$as_dir" && as_dir=. 7551 for ac_exec_ext in '' $ac_executable_extensions; do 7552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7553 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7555 break 2 7556 fi 7557done 7558 done 7559IFS=$as_save_IFS 7560 7561fi 7562fi 7563OTOOL64=$ac_cv_prog_OTOOL64 7564if test -n "$OTOOL64"; then 7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7566$as_echo "$OTOOL64" >&6; } 7567else 7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7569$as_echo "no" >&6; } 7570fi 7571 7572 7573fi 7574if test -z "$ac_cv_prog_OTOOL64"; then 7575 ac_ct_OTOOL64=$OTOOL64 7576 # Extract the first word of "otool64", so it can be a program name with args. 7577set dummy otool64; ac_word=$2 7578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7579$as_echo_n "checking for $ac_word... " >&6; } 7580if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7581 $as_echo_n "(cached) " >&6 7582else 7583 if test -n "$ac_ct_OTOOL64"; then 7584 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7585else 7586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7587for as_dir in $PATH 7588do 7589 IFS=$as_save_IFS 7590 test -z "$as_dir" && as_dir=. 7591 for ac_exec_ext in '' $ac_executable_extensions; do 7592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7593 ac_cv_prog_ac_ct_OTOOL64="otool64" 7594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7595 break 2 7596 fi 7597done 7598 done 7599IFS=$as_save_IFS 7600 7601fi 7602fi 7603ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7604if test -n "$ac_ct_OTOOL64"; then 7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7606$as_echo "$ac_ct_OTOOL64" >&6; } 7607else 7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7609$as_echo "no" >&6; } 7610fi 7611 7612 if test "x$ac_ct_OTOOL64" = x; then 7613 OTOOL64=":" 7614 else 7615 case $cross_compiling:$ac_tool_warned in 7616yes:) 7617{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7618$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7619ac_tool_warned=yes ;; 7620esac 7621 OTOOL64=$ac_ct_OTOOL64 7622 fi 7623else 7624 OTOOL64="$ac_cv_prog_OTOOL64" 7625fi 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7654$as_echo_n "checking for -single_module linker flag... " >&6; } 7655if ${lt_cv_apple_cc_single_mod+:} false; then : 7656 $as_echo_n "(cached) " >&6 7657else 7658 lt_cv_apple_cc_single_mod=no 7659 if test -z "$LT_MULTI_MODULE"; then 7660 # By default we will add the -single_module flag. You can override 7661 # by either setting the environment variable LT_MULTI_MODULE 7662 # non-empty at configure time, or by adding -multi_module to the 7663 # link flags. 7664 rm -rf libconftest.dylib* 7665 echo "int foo(void){return 1;}" > conftest.c 7666 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7667-dynamiclib -Wl,-single_module conftest.c" >&5 7668 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7669 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7670 _lt_result=$? 7671 # If there is a non-empty error log, and "single_module" 7672 # appears in it, assume the flag caused a linker warning 7673 if test -s conftest.err && $GREP single_module conftest.err; then 7674 cat conftest.err >&5 7675 # Otherwise, if the output was created with a 0 exit code from 7676 # the compiler, it worked. 7677 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7678 lt_cv_apple_cc_single_mod=yes 7679 else 7680 cat conftest.err >&5 7681 fi 7682 rm -rf libconftest.dylib* 7683 rm -f conftest.* 7684 fi 7685fi 7686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7687$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7688 7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7690$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7691if ${lt_cv_ld_exported_symbols_list+:} false; then : 7692 $as_echo_n "(cached) " >&6 7693else 7694 lt_cv_ld_exported_symbols_list=no 7695 save_LDFLAGS=$LDFLAGS 7696 echo "_main" > conftest.sym 7697 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7699/* end confdefs.h. */ 7700 7701int 7702main () 7703{ 7704 7705 ; 7706 return 0; 7707} 7708_ACEOF 7709if ac_fn_c_try_link "$LINENO"; then : 7710 lt_cv_ld_exported_symbols_list=yes 7711else 7712 lt_cv_ld_exported_symbols_list=no 7713fi 7714rm -f core conftest.err conftest.$ac_objext \ 7715 conftest$ac_exeext conftest.$ac_ext 7716 LDFLAGS=$save_LDFLAGS 7717 7718fi 7719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7720$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7721 7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7723$as_echo_n "checking for -force_load linker flag... " >&6; } 7724if ${lt_cv_ld_force_load+:} false; then : 7725 $as_echo_n "(cached) " >&6 7726else 7727 lt_cv_ld_force_load=no 7728 cat > conftest.c << _LT_EOF 7729int forced_loaded() { return 2;} 7730_LT_EOF 7731 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7732 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7733 echo "$AR cru libconftest.a conftest.o" >&5 7734 $AR cru libconftest.a conftest.o 2>&5 7735 echo "$RANLIB libconftest.a" >&5 7736 $RANLIB libconftest.a 2>&5 7737 cat > conftest.c << _LT_EOF 7738int main() { return 0;} 7739_LT_EOF 7740 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7741 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7742 _lt_result=$? 7743 if test -s conftest.err && $GREP force_load conftest.err; then 7744 cat conftest.err >&5 7745 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7746 lt_cv_ld_force_load=yes 7747 else 7748 cat conftest.err >&5 7749 fi 7750 rm -f conftest.err libconftest.a conftest conftest.c 7751 rm -rf conftest.dSYM 7752 7753fi 7754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7755$as_echo "$lt_cv_ld_force_load" >&6; } 7756 case $host_os in 7757 rhapsody* | darwin1.[012]) 7758 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7759 darwin1.*) 7760 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7761 darwin*) # darwin 5.x on 7762 # if running on 10.5 or later, the deployment target defaults 7763 # to the OS version, if on x86, and 10.4, the deployment 7764 # target defaults to 10.4. Don't you love it? 7765 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7766 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7767 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7768 10.[012][,.]*) 7769 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7770 10.*) 7771 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7772 esac 7773 ;; 7774 esac 7775 if test yes = "$lt_cv_apple_cc_single_mod"; then 7776 _lt_dar_single_mod='$single_module' 7777 fi 7778 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7779 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7780 else 7781 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7782 fi 7783 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7784 _lt_dsymutil='~$DSYMUTIL $lib || :' 7785 else 7786 _lt_dsymutil= 7787 fi 7788 ;; 7789 esac 7790 7791# func_munge_path_list VARIABLE PATH 7792# ----------------------------------- 7793# VARIABLE is name of variable containing _space_ separated list of 7794# directories to be munged by the contents of PATH, which is string 7795# having a format: 7796# "DIR[:DIR]:" 7797# string "DIR[ DIR]" will be prepended to VARIABLE 7798# ":DIR[:DIR]" 7799# string "DIR[ DIR]" will be appended to VARIABLE 7800# "DIRP[:DIRP]::[DIRA:]DIRA" 7801# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7802# "DIRA[ DIRA]" will be appended to VARIABLE 7803# "DIR[:DIR]" 7804# VARIABLE will be replaced by "DIR[ DIR]" 7805func_munge_path_list () 7806{ 7807 case x@S|@2 in 7808 x) 7809 ;; 7810 *:) 7811 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" 7812 ;; 7813 x:*) 7814 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" 7815 ;; 7816 *::*) 7817 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7818 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" 7819 ;; 7820 *) 7821 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" 7822 ;; 7823 esac 7824} 7825 7826ac_ext=c 7827ac_cpp='$CPP $CPPFLAGS' 7828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7830ac_compiler_gnu=$ac_cv_c_compiler_gnu 7831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7832$as_echo_n "checking how to run the C preprocessor... " >&6; } 7833# On Suns, sometimes $CPP names a directory. 7834if test -n "$CPP" && test -d "$CPP"; then 7835 CPP= 7836fi 7837if test -z "$CPP"; then 7838 if ${ac_cv_prog_CPP+:} false; then : 7839 $as_echo_n "(cached) " >&6 7840else 7841 # Double quotes because CPP needs to be expanded 7842 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7843 do 7844 ac_preproc_ok=false 7845for ac_c_preproc_warn_flag in '' yes 7846do 7847 # Use a header file that comes with gcc, so configuring glibc 7848 # with a fresh cross-compiler works. 7849 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7850 # <limits.h> exists even on freestanding compilers. 7851 # On the NeXT, cc -E runs the code through the compiler's parser, 7852 # not just through cpp. "Syntax error" is here to catch this case. 7853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7854/* end confdefs.h. */ 7855@%:@ifdef __STDC__ 7856@%:@ include <limits.h> 7857@%:@else 7858@%:@ include <assert.h> 7859@%:@endif 7860 Syntax error 7861_ACEOF 7862if ac_fn_c_try_cpp "$LINENO"; then : 7863 7864else 7865 # Broken: fails on valid input. 7866continue 7867fi 7868rm -f conftest.err conftest.i conftest.$ac_ext 7869 7870 # OK, works on sane cases. Now check whether nonexistent headers 7871 # can be detected and how. 7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7873/* end confdefs.h. */ 7874@%:@include <ac_nonexistent.h> 7875_ACEOF 7876if ac_fn_c_try_cpp "$LINENO"; then : 7877 # Broken: success on invalid input. 7878continue 7879else 7880 # Passes both tests. 7881ac_preproc_ok=: 7882break 7883fi 7884rm -f conftest.err conftest.i conftest.$ac_ext 7885 7886done 7887# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7888rm -f conftest.i conftest.err conftest.$ac_ext 7889if $ac_preproc_ok; then : 7890 break 7891fi 7892 7893 done 7894 ac_cv_prog_CPP=$CPP 7895 7896fi 7897 CPP=$ac_cv_prog_CPP 7898else 7899 ac_cv_prog_CPP=$CPP 7900fi 7901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7902$as_echo "$CPP" >&6; } 7903ac_preproc_ok=false 7904for ac_c_preproc_warn_flag in '' yes 7905do 7906 # Use a header file that comes with gcc, so configuring glibc 7907 # with a fresh cross-compiler works. 7908 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7909 # <limits.h> exists even on freestanding compilers. 7910 # On the NeXT, cc -E runs the code through the compiler's parser, 7911 # not just through cpp. "Syntax error" is here to catch this case. 7912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7913/* end confdefs.h. */ 7914@%:@ifdef __STDC__ 7915@%:@ include <limits.h> 7916@%:@else 7917@%:@ include <assert.h> 7918@%:@endif 7919 Syntax error 7920_ACEOF 7921if ac_fn_c_try_cpp "$LINENO"; then : 7922 7923else 7924 # Broken: fails on valid input. 7925continue 7926fi 7927rm -f conftest.err conftest.i conftest.$ac_ext 7928 7929 # OK, works on sane cases. Now check whether nonexistent headers 7930 # can be detected and how. 7931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7932/* end confdefs.h. */ 7933@%:@include <ac_nonexistent.h> 7934_ACEOF 7935if ac_fn_c_try_cpp "$LINENO"; then : 7936 # Broken: success on invalid input. 7937continue 7938else 7939 # Passes both tests. 7940ac_preproc_ok=: 7941break 7942fi 7943rm -f conftest.err conftest.i conftest.$ac_ext 7944 7945done 7946# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7947rm -f conftest.i conftest.err conftest.$ac_ext 7948if $ac_preproc_ok; then : 7949 7950else 7951 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7952$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7953as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7954See \`config.log' for more details" "$LINENO" 5; } 7955fi 7956 7957ac_ext=c 7958ac_cpp='$CPP $CPPFLAGS' 7959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7961ac_compiler_gnu=$ac_cv_c_compiler_gnu 7962 7963 7964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7965$as_echo_n "checking for ANSI C header files... " >&6; } 7966if ${ac_cv_header_stdc+:} false; then : 7967 $as_echo_n "(cached) " >&6 7968else 7969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7970/* end confdefs.h. */ 7971#include <stdlib.h> 7972#include <stdarg.h> 7973#include <string.h> 7974#include <float.h> 7975 7976int 7977main () 7978{ 7979 7980 ; 7981 return 0; 7982} 7983_ACEOF 7984if ac_fn_c_try_compile "$LINENO"; then : 7985 ac_cv_header_stdc=yes 7986else 7987 ac_cv_header_stdc=no 7988fi 7989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7990 7991if test $ac_cv_header_stdc = yes; then 7992 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7994/* end confdefs.h. */ 7995#include <string.h> 7996 7997_ACEOF 7998if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7999 $EGREP "memchr" >/dev/null 2>&1; then : 8000 8001else 8002 ac_cv_header_stdc=no 8003fi 8004rm -f conftest* 8005 8006fi 8007 8008if test $ac_cv_header_stdc = yes; then 8009 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8011/* end confdefs.h. */ 8012#include <stdlib.h> 8013 8014_ACEOF 8015if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8016 $EGREP "free" >/dev/null 2>&1; then : 8017 8018else 8019 ac_cv_header_stdc=no 8020fi 8021rm -f conftest* 8022 8023fi 8024 8025if test $ac_cv_header_stdc = yes; then 8026 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8027 if test "$cross_compiling" = yes; then : 8028 : 8029else 8030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8031/* end confdefs.h. */ 8032#include <ctype.h> 8033#include <stdlib.h> 8034#if ((' ' & 0x0FF) == 0x020) 8035# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8036# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8037#else 8038# define ISLOWER(c) \ 8039 (('a' <= (c) && (c) <= 'i') \ 8040 || ('j' <= (c) && (c) <= 'r') \ 8041 || ('s' <= (c) && (c) <= 'z')) 8042# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8043#endif 8044 8045#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8046int 8047main () 8048{ 8049 int i; 8050 for (i = 0; i < 256; i++) 8051 if (XOR (islower (i), ISLOWER (i)) 8052 || toupper (i) != TOUPPER (i)) 8053 return 2; 8054 return 0; 8055} 8056_ACEOF 8057if ac_fn_c_try_run "$LINENO"; then : 8058 8059else 8060 ac_cv_header_stdc=no 8061fi 8062rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8063 conftest.$ac_objext conftest.beam conftest.$ac_ext 8064fi 8065 8066fi 8067fi 8068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8069$as_echo "$ac_cv_header_stdc" >&6; } 8070if test $ac_cv_header_stdc = yes; then 8071 8072$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h 8073 8074fi 8075 8076# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8077for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8078 inttypes.h stdint.h unistd.h 8079do : 8080 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8081ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8082" 8083if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8084 cat >>confdefs.h <<_ACEOF 8085@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8086_ACEOF 8087 8088fi 8089 8090done 8091 8092 8093for ac_header in dlfcn.h 8094do : 8095 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8096" 8097if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8098 cat >>confdefs.h <<_ACEOF 8099@%:@define HAVE_DLFCN_H 1 8100_ACEOF 8101 8102fi 8103 8104done 8105 8106 8107 8108 8109 8110# Set options 8111 8112 8113 8114 enable_dlopen=no 8115 8116 8117 8118 @%:@ Check whether --enable-shared was given. 8119if test "${enable_shared+set}" = set; then : 8120 enableval=$enable_shared; p=${PACKAGE-default} 8121 case $enableval in 8122 yes) enable_shared=yes ;; 8123 no) enable_shared=no ;; 8124 *) 8125 enable_shared=no 8126 # Look at the argument we got. We use all the common list separators. 8127 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8128 for pkg in $enableval; do 8129 IFS=$lt_save_ifs 8130 if test "X$pkg" = "X$p"; then 8131 enable_shared=yes 8132 fi 8133 done 8134 IFS=$lt_save_ifs 8135 ;; 8136 esac 8137else 8138 enable_shared=yes 8139fi 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 @%:@ Check whether --enable-static was given. 8150if test "${enable_static+set}" = set; then : 8151 enableval=$enable_static; p=${PACKAGE-default} 8152 case $enableval in 8153 yes) enable_static=yes ;; 8154 no) enable_static=no ;; 8155 *) 8156 enable_static=no 8157 # Look at the argument we got. We use all the common list separators. 8158 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8159 for pkg in $enableval; do 8160 IFS=$lt_save_ifs 8161 if test "X$pkg" = "X$p"; then 8162 enable_static=yes 8163 fi 8164 done 8165 IFS=$lt_save_ifs 8166 ;; 8167 esac 8168else 8169 enable_static=yes 8170fi 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181@%:@ Check whether --with-pic was given. 8182if test "${with_pic+set}" = set; then : 8183 withval=$with_pic; lt_p=${PACKAGE-default} 8184 case $withval in 8185 yes|no) pic_mode=$withval ;; 8186 *) 8187 pic_mode=default 8188 # Look at the argument we got. We use all the common list separators. 8189 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8190 for lt_pkg in $withval; do 8191 IFS=$lt_save_ifs 8192 if test "X$lt_pkg" = "X$lt_p"; then 8193 pic_mode=yes 8194 fi 8195 done 8196 IFS=$lt_save_ifs 8197 ;; 8198 esac 8199else 8200 pic_mode=default 8201fi 8202 8203 8204 8205 8206 8207 8208 8209 8210 @%:@ Check whether --enable-fast-install was given. 8211if test "${enable_fast_install+set}" = set; then : 8212 enableval=$enable_fast_install; p=${PACKAGE-default} 8213 case $enableval in 8214 yes) enable_fast_install=yes ;; 8215 no) enable_fast_install=no ;; 8216 *) 8217 enable_fast_install=no 8218 # Look at the argument we got. We use all the common list separators. 8219 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8220 for pkg in $enableval; do 8221 IFS=$lt_save_ifs 8222 if test "X$pkg" = "X$p"; then 8223 enable_fast_install=yes 8224 fi 8225 done 8226 IFS=$lt_save_ifs 8227 ;; 8228 esac 8229else 8230 enable_fast_install=yes 8231fi 8232 8233 8234 8235 8236 8237 8238 8239 8240 shared_archive_member_spec= 8241case $host,$enable_shared in 8242power*-*-aix[5-9]*,yes) 8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8244$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8245 8246@%:@ Check whether --with-aix-soname was given. 8247if test "${with_aix_soname+set}" = set; then : 8248 withval=$with_aix_soname; case $withval in 8249 aix|svr4|both) 8250 ;; 8251 *) 8252 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8253 ;; 8254 esac 8255 lt_cv_with_aix_soname=$with_aix_soname 8256else 8257 if ${lt_cv_with_aix_soname+:} false; then : 8258 $as_echo_n "(cached) " >&6 8259else 8260 lt_cv_with_aix_soname=aix 8261fi 8262 8263 with_aix_soname=$lt_cv_with_aix_soname 8264fi 8265 8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8267$as_echo "$with_aix_soname" >&6; } 8268 if test aix != "$with_aix_soname"; then 8269 # For the AIX way of multilib, we name the shared archive member 8270 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8271 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8272 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8273 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8274 if test 64 = "${OBJECT_MODE-32}"; then 8275 shared_archive_member_spec=shr_64 8276 else 8277 shared_archive_member_spec=shr 8278 fi 8279 fi 8280 ;; 8281*) 8282 with_aix_soname=aix 8283 ;; 8284esac 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295# This can be used to rebuild libtool when needed 8296LIBTOOL_DEPS=$ltmain 8297 8298# Always use our own libtool. 8299LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330test -z "$LN_S" && LN_S="ln -s" 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345if test -n "${ZSH_VERSION+set}"; then 8346 setopt NO_GLOB_SUBST 8347fi 8348 8349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8350$as_echo_n "checking for objdir... " >&6; } 8351if ${lt_cv_objdir+:} false; then : 8352 $as_echo_n "(cached) " >&6 8353else 8354 rm -f .libs 2>/dev/null 8355mkdir .libs 2>/dev/null 8356if test -d .libs; then 8357 lt_cv_objdir=.libs 8358else 8359 # MS-DOS does not allow filenames that begin with a dot. 8360 lt_cv_objdir=_libs 8361fi 8362rmdir .libs 2>/dev/null 8363fi 8364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8365$as_echo "$lt_cv_objdir" >&6; } 8366objdir=$lt_cv_objdir 8367 8368 8369 8370 8371 8372cat >>confdefs.h <<_ACEOF 8373@%:@define LT_OBJDIR "$lt_cv_objdir/" 8374_ACEOF 8375 8376 8377 8378 8379case $host_os in 8380aix3*) 8381 # AIX sometimes has problems with the GCC collect2 program. For some 8382 # reason, if we set the COLLECT_NAMES environment variable, the problems 8383 # vanish in a puff of smoke. 8384 if test set != "${COLLECT_NAMES+set}"; then 8385 COLLECT_NAMES= 8386 export COLLECT_NAMES 8387 fi 8388 ;; 8389esac 8390 8391# Global variables: 8392ofile=libtool 8393can_build_shared=yes 8394 8395# All known linkers require a '.a' archive for static linking (except MSVC, 8396# which needs '.lib'). 8397libext=a 8398 8399with_gnu_ld=$lt_cv_prog_gnu_ld 8400 8401old_CC=$CC 8402old_CFLAGS=$CFLAGS 8403 8404# Set sane defaults for various variables 8405test -z "$CC" && CC=cc 8406test -z "$LTCC" && LTCC=$CC 8407test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8408test -z "$LD" && LD=ld 8409test -z "$ac_objext" && ac_objext=o 8410 8411func_cc_basename $compiler 8412cc_basename=$func_cc_basename_result 8413 8414 8415# Only perform the check for file, if the check method requires it 8416test -z "$MAGIC_CMD" && MAGIC_CMD=file 8417case $deplibs_check_method in 8418file_magic*) 8419 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8421$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8422if ${lt_cv_path_MAGIC_CMD+:} false; then : 8423 $as_echo_n "(cached) " >&6 8424else 8425 case $MAGIC_CMD in 8426[\\/*] | ?:[\\/]*) 8427 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8428 ;; 8429*) 8430 lt_save_MAGIC_CMD=$MAGIC_CMD 8431 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8432 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8433 for ac_dir in $ac_dummy; do 8434 IFS=$lt_save_ifs 8435 test -z "$ac_dir" && ac_dir=. 8436 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8437 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8438 if test -n "$file_magic_test_file"; then 8439 case $deplibs_check_method in 8440 "file_magic "*) 8441 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8442 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8443 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8444 $EGREP "$file_magic_regex" > /dev/null; then 8445 : 8446 else 8447 cat <<_LT_EOF 1>&2 8448 8449*** Warning: the command libtool uses to detect shared libraries, 8450*** $file_magic_cmd, produces output that libtool cannot recognize. 8451*** The result is that libtool may fail to recognize shared libraries 8452*** as such. This will affect the creation of libtool libraries that 8453*** depend on shared libraries, but programs linked with such libtool 8454*** libraries will work regardless of this problem. Nevertheless, you 8455*** may want to report the problem to your system manager and/or to 8456*** bug-libtool@gnu.org 8457 8458_LT_EOF 8459 fi ;; 8460 esac 8461 fi 8462 break 8463 fi 8464 done 8465 IFS=$lt_save_ifs 8466 MAGIC_CMD=$lt_save_MAGIC_CMD 8467 ;; 8468esac 8469fi 8470 8471MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8472if test -n "$MAGIC_CMD"; then 8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8474$as_echo "$MAGIC_CMD" >&6; } 8475else 8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8477$as_echo "no" >&6; } 8478fi 8479 8480 8481 8482 8483 8484if test -z "$lt_cv_path_MAGIC_CMD"; then 8485 if test -n "$ac_tool_prefix"; then 8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8487$as_echo_n "checking for file... " >&6; } 8488if ${lt_cv_path_MAGIC_CMD+:} false; then : 8489 $as_echo_n "(cached) " >&6 8490else 8491 case $MAGIC_CMD in 8492[\\/*] | ?:[\\/]*) 8493 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8494 ;; 8495*) 8496 lt_save_MAGIC_CMD=$MAGIC_CMD 8497 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8498 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8499 for ac_dir in $ac_dummy; do 8500 IFS=$lt_save_ifs 8501 test -z "$ac_dir" && ac_dir=. 8502 if test -f "$ac_dir/file"; then 8503 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8504 if test -n "$file_magic_test_file"; then 8505 case $deplibs_check_method in 8506 "file_magic "*) 8507 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8508 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8509 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8510 $EGREP "$file_magic_regex" > /dev/null; then 8511 : 8512 else 8513 cat <<_LT_EOF 1>&2 8514 8515*** Warning: the command libtool uses to detect shared libraries, 8516*** $file_magic_cmd, produces output that libtool cannot recognize. 8517*** The result is that libtool may fail to recognize shared libraries 8518*** as such. This will affect the creation of libtool libraries that 8519*** depend on shared libraries, but programs linked with such libtool 8520*** libraries will work regardless of this problem. Nevertheless, you 8521*** may want to report the problem to your system manager and/or to 8522*** bug-libtool@gnu.org 8523 8524_LT_EOF 8525 fi ;; 8526 esac 8527 fi 8528 break 8529 fi 8530 done 8531 IFS=$lt_save_ifs 8532 MAGIC_CMD=$lt_save_MAGIC_CMD 8533 ;; 8534esac 8535fi 8536 8537MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8538if test -n "$MAGIC_CMD"; then 8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8540$as_echo "$MAGIC_CMD" >&6; } 8541else 8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8543$as_echo "no" >&6; } 8544fi 8545 8546 8547 else 8548 MAGIC_CMD=: 8549 fi 8550fi 8551 8552 fi 8553 ;; 8554esac 8555 8556# Use C for the default configuration in the libtool script 8557 8558lt_save_CC=$CC 8559ac_ext=c 8560ac_cpp='$CPP $CPPFLAGS' 8561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8563ac_compiler_gnu=$ac_cv_c_compiler_gnu 8564 8565 8566# Source file extension for C test sources. 8567ac_ext=c 8568 8569# Object file extension for compiled C test sources. 8570objext=o 8571objext=$objext 8572 8573# Code to be used in simple compile tests 8574lt_simple_compile_test_code="int some_variable = 0;" 8575 8576# Code to be used in simple link tests 8577lt_simple_link_test_code='int main(){return(0);}' 8578 8579 8580 8581 8582 8583 8584 8585# If no C compiler was specified, use CC. 8586LTCC=${LTCC-"$CC"} 8587 8588# If no C compiler flags were specified, use CFLAGS. 8589LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8590 8591# Allow CC to be a program name with arguments. 8592compiler=$CC 8593 8594# Save the default compiler, since it gets overwritten when the other 8595# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8596compiler_DEFAULT=$CC 8597 8598# save warnings/boilerplate of simple test code 8599ac_outfile=conftest.$ac_objext 8600echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8601eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8602_lt_compiler_boilerplate=`cat conftest.err` 8603$RM conftest* 8604 8605ac_outfile=conftest.$ac_objext 8606echo "$lt_simple_link_test_code" >conftest.$ac_ext 8607eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8608_lt_linker_boilerplate=`cat conftest.err` 8609$RM -r conftest* 8610 8611 8612if test -n "$compiler"; then 8613 8614lt_prog_compiler_no_builtin_flag= 8615 8616if test yes = "$GCC"; then 8617 case $cc_basename in 8618 nvcc*) 8619 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8620 *) 8621 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8622 esac 8623 8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8625$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8626if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8627 $as_echo_n "(cached) " >&6 8628else 8629 lt_cv_prog_compiler_rtti_exceptions=no 8630 ac_outfile=conftest.$ac_objext 8631 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8632 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8633 # Insert the option either (1) after the last *FLAGS variable, or 8634 # (2) before a word containing "conftest.", or (3) at the end. 8635 # Note that $ac_compile itself does not contain backslashes and begins 8636 # with a dollar sign (not a hyphen), so the echo should work correctly. 8637 # The option is referenced via a variable to avoid confusing sed. 8638 lt_compile=`echo "$ac_compile" | $SED \ 8639 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8640 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8641 -e 's:$: $lt_compiler_flag:'` 8642 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8643 (eval "$lt_compile" 2>conftest.err) 8644 ac_status=$? 8645 cat conftest.err >&5 8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8647 if (exit $ac_status) && test -s "$ac_outfile"; then 8648 # The compiler can only warn and ignore the option if not recognized 8649 # So say no if there are warnings other than the usual output. 8650 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8651 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8652 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8653 lt_cv_prog_compiler_rtti_exceptions=yes 8654 fi 8655 fi 8656 $RM conftest* 8657 8658fi 8659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8660$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8661 8662if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8663 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8664else 8665 : 8666fi 8667 8668fi 8669 8670 8671 8672 8673 8674 8675 lt_prog_compiler_wl= 8676lt_prog_compiler_pic= 8677lt_prog_compiler_static= 8678 8679 8680 if test yes = "$GCC"; then 8681 lt_prog_compiler_wl='-Wl,' 8682 lt_prog_compiler_static='-static' 8683 8684 case $host_os in 8685 aix*) 8686 # All AIX code is PIC. 8687 if test ia64 = "$host_cpu"; then 8688 # AIX 5 now supports IA64 processor 8689 lt_prog_compiler_static='-Bstatic' 8690 fi 8691 lt_prog_compiler_pic='-fPIC' 8692 ;; 8693 8694 amigaos*) 8695 case $host_cpu in 8696 powerpc) 8697 # see comment about AmigaOS4 .so support 8698 lt_prog_compiler_pic='-fPIC' 8699 ;; 8700 m68k) 8701 # FIXME: we need at least 68020 code to build shared libraries, but 8702 # adding the '-m68020' flag to GCC prevents building anything better, 8703 # like '-m68040'. 8704 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8705 ;; 8706 esac 8707 ;; 8708 8709 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8710 # PIC is the default for these OSes. 8711 ;; 8712 8713 mingw* | cygwin* | pw32* | os2* | cegcc*) 8714 # This hack is so that the source file can tell whether it is being 8715 # built for inclusion in a dll (and should export symbols for example). 8716 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8717 # (--disable-auto-import) libraries 8718 lt_prog_compiler_pic='-DDLL_EXPORT' 8719 case $host_os in 8720 os2*) 8721 lt_prog_compiler_static='$wl-static' 8722 ;; 8723 esac 8724 ;; 8725 8726 darwin* | rhapsody*) 8727 # PIC is the default on this platform 8728 # Common symbols not allowed in MH_DYLIB files 8729 lt_prog_compiler_pic='-fno-common' 8730 ;; 8731 8732 haiku*) 8733 # PIC is the default for Haiku. 8734 # The "-static" flag exists, but is broken. 8735 lt_prog_compiler_static= 8736 ;; 8737 8738 hpux*) 8739 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8740 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8741 # sets the default TLS model and affects inlining. 8742 case $host_cpu in 8743 hppa*64*) 8744 # +Z the default 8745 ;; 8746 *) 8747 lt_prog_compiler_pic='-fPIC' 8748 ;; 8749 esac 8750 ;; 8751 8752 interix[3-9]*) 8753 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8754 # Instead, we relocate shared libraries at runtime. 8755 ;; 8756 8757 msdosdjgpp*) 8758 # Just because we use GCC doesn't mean we suddenly get shared libraries 8759 # on systems that don't support them. 8760 lt_prog_compiler_can_build_shared=no 8761 enable_shared=no 8762 ;; 8763 8764 *nto* | *qnx*) 8765 # QNX uses GNU C++, but need to define -shared option too, otherwise 8766 # it will coredump. 8767 lt_prog_compiler_pic='-fPIC -shared' 8768 ;; 8769 8770 sysv4*MP*) 8771 if test -d /usr/nec; then 8772 lt_prog_compiler_pic=-Kconform_pic 8773 fi 8774 ;; 8775 8776 *) 8777 lt_prog_compiler_pic='-fPIC' 8778 ;; 8779 esac 8780 8781 case $cc_basename in 8782 nvcc*) # Cuda Compiler Driver 2.2 8783 lt_prog_compiler_wl='-Xlinker ' 8784 if test -n "$lt_prog_compiler_pic"; then 8785 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8786 fi 8787 ;; 8788 esac 8789 else 8790 # PORTME Check for flag to pass linker flags through the system compiler. 8791 case $host_os in 8792 aix*) 8793 lt_prog_compiler_wl='-Wl,' 8794 if test ia64 = "$host_cpu"; then 8795 # AIX 5 now supports IA64 processor 8796 lt_prog_compiler_static='-Bstatic' 8797 else 8798 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8799 fi 8800 ;; 8801 8802 darwin* | rhapsody*) 8803 # PIC is the default on this platform 8804 # Common symbols not allowed in MH_DYLIB files 8805 lt_prog_compiler_pic='-fno-common' 8806 case $cc_basename in 8807 nagfor*) 8808 # NAG Fortran compiler 8809 lt_prog_compiler_wl='-Wl,-Wl,,' 8810 lt_prog_compiler_pic='-PIC' 8811 lt_prog_compiler_static='-Bstatic' 8812 ;; 8813 esac 8814 ;; 8815 8816 mingw* | cygwin* | pw32* | os2* | cegcc*) 8817 # This hack is so that the source file can tell whether it is being 8818 # built for inclusion in a dll (and should export symbols for example). 8819 lt_prog_compiler_pic='-DDLL_EXPORT' 8820 case $host_os in 8821 os2*) 8822 lt_prog_compiler_static='$wl-static' 8823 ;; 8824 esac 8825 ;; 8826 8827 hpux9* | hpux10* | hpux11*) 8828 lt_prog_compiler_wl='-Wl,' 8829 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8830 # not for PA HP-UX. 8831 case $host_cpu in 8832 hppa*64*|ia64*) 8833 # +Z the default 8834 ;; 8835 *) 8836 lt_prog_compiler_pic='+Z' 8837 ;; 8838 esac 8839 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8840 lt_prog_compiler_static='$wl-a ${wl}archive' 8841 ;; 8842 8843 irix5* | irix6* | nonstopux*) 8844 lt_prog_compiler_wl='-Wl,' 8845 # PIC (with -KPIC) is the default. 8846 lt_prog_compiler_static='-non_shared' 8847 ;; 8848 8849 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8850 case $cc_basename in 8851 # old Intel for x86_64, which still supported -KPIC. 8852 ecc*) 8853 lt_prog_compiler_wl='-Wl,' 8854 lt_prog_compiler_pic='-KPIC' 8855 lt_prog_compiler_static='-static' 8856 ;; 8857 # icc used to be incompatible with GCC. 8858 # ICC 10 doesn't accept -KPIC any more. 8859 icc* | ifort*) 8860 lt_prog_compiler_wl='-Wl,' 8861 lt_prog_compiler_pic='-fPIC' 8862 lt_prog_compiler_static='-static' 8863 ;; 8864 # Lahey Fortran 8.1. 8865 lf95*) 8866 lt_prog_compiler_wl='-Wl,' 8867 lt_prog_compiler_pic='--shared' 8868 lt_prog_compiler_static='--static' 8869 ;; 8870 nagfor*) 8871 # NAG Fortran compiler 8872 lt_prog_compiler_wl='-Wl,-Wl,,' 8873 lt_prog_compiler_pic='-PIC' 8874 lt_prog_compiler_static='-Bstatic' 8875 ;; 8876 tcc*) 8877 # Fabrice Bellard et al's Tiny C Compiler 8878 lt_prog_compiler_wl='-Wl,' 8879 lt_prog_compiler_pic='-fPIC' 8880 lt_prog_compiler_static='-static' 8881 ;; 8882 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8883 # Portland Group compilers (*not* the Pentium gcc compiler, 8884 # which looks to be a dead project) 8885 lt_prog_compiler_wl='-Wl,' 8886 lt_prog_compiler_pic='-fpic' 8887 lt_prog_compiler_static='-Bstatic' 8888 ;; 8889 ccc*) 8890 lt_prog_compiler_wl='-Wl,' 8891 # All Alpha code is PIC. 8892 lt_prog_compiler_static='-non_shared' 8893 ;; 8894 xl* | bgxl* | bgf* | mpixl*) 8895 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8896 lt_prog_compiler_wl='-Wl,' 8897 lt_prog_compiler_pic='-qpic' 8898 lt_prog_compiler_static='-qstaticlink' 8899 ;; 8900 *) 8901 case `$CC -V 2>&1 | sed 5q` in 8902 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8903 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8904 lt_prog_compiler_pic='-KPIC' 8905 lt_prog_compiler_static='-Bstatic' 8906 lt_prog_compiler_wl='' 8907 ;; 8908 *Sun\ F* | *Sun*Fortran*) 8909 lt_prog_compiler_pic='-KPIC' 8910 lt_prog_compiler_static='-Bstatic' 8911 lt_prog_compiler_wl='-Qoption ld ' 8912 ;; 8913 *Sun\ C*) 8914 # Sun C 5.9 8915 lt_prog_compiler_pic='-KPIC' 8916 lt_prog_compiler_static='-Bstatic' 8917 lt_prog_compiler_wl='-Wl,' 8918 ;; 8919 *Intel*\ [CF]*Compiler*) 8920 lt_prog_compiler_wl='-Wl,' 8921 lt_prog_compiler_pic='-fPIC' 8922 lt_prog_compiler_static='-static' 8923 ;; 8924 *Portland\ Group*) 8925 lt_prog_compiler_wl='-Wl,' 8926 lt_prog_compiler_pic='-fpic' 8927 lt_prog_compiler_static='-Bstatic' 8928 ;; 8929 esac 8930 ;; 8931 esac 8932 ;; 8933 8934 newsos6) 8935 lt_prog_compiler_pic='-KPIC' 8936 lt_prog_compiler_static='-Bstatic' 8937 ;; 8938 8939 *nto* | *qnx*) 8940 # QNX uses GNU C++, but need to define -shared option too, otherwise 8941 # it will coredump. 8942 lt_prog_compiler_pic='-fPIC -shared' 8943 ;; 8944 8945 osf3* | osf4* | osf5*) 8946 lt_prog_compiler_wl='-Wl,' 8947 # All OSF/1 code is PIC. 8948 lt_prog_compiler_static='-non_shared' 8949 ;; 8950 8951 rdos*) 8952 lt_prog_compiler_static='-non_shared' 8953 ;; 8954 8955 solaris*) 8956 lt_prog_compiler_pic='-KPIC' 8957 lt_prog_compiler_static='-Bstatic' 8958 case $cc_basename in 8959 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8960 lt_prog_compiler_wl='-Qoption ld ';; 8961 *) 8962 lt_prog_compiler_wl='-Wl,';; 8963 esac 8964 ;; 8965 8966 sunos4*) 8967 lt_prog_compiler_wl='-Qoption ld ' 8968 lt_prog_compiler_pic='-PIC' 8969 lt_prog_compiler_static='-Bstatic' 8970 ;; 8971 8972 sysv4 | sysv4.2uw2* | sysv4.3*) 8973 lt_prog_compiler_wl='-Wl,' 8974 lt_prog_compiler_pic='-KPIC' 8975 lt_prog_compiler_static='-Bstatic' 8976 ;; 8977 8978 sysv4*MP*) 8979 if test -d /usr/nec; then 8980 lt_prog_compiler_pic='-Kconform_pic' 8981 lt_prog_compiler_static='-Bstatic' 8982 fi 8983 ;; 8984 8985 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8986 lt_prog_compiler_wl='-Wl,' 8987 lt_prog_compiler_pic='-KPIC' 8988 lt_prog_compiler_static='-Bstatic' 8989 ;; 8990 8991 unicos*) 8992 lt_prog_compiler_wl='-Wl,' 8993 lt_prog_compiler_can_build_shared=no 8994 ;; 8995 8996 uts4*) 8997 lt_prog_compiler_pic='-pic' 8998 lt_prog_compiler_static='-Bstatic' 8999 ;; 9000 9001 *) 9002 lt_prog_compiler_can_build_shared=no 9003 ;; 9004 esac 9005 fi 9006 9007case $host_os in 9008 # For platforms that do not support PIC, -DPIC is meaningless: 9009 *djgpp*) 9010 lt_prog_compiler_pic= 9011 ;; 9012 *) 9013 lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC" 9014 ;; 9015esac 9016 9017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9018$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9019if ${lt_cv_prog_compiler_pic+:} false; then : 9020 $as_echo_n "(cached) " >&6 9021else 9022 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9023fi 9024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9025$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9026lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9027 9028# 9029# Check to make sure the PIC flag actually works. 9030# 9031if test -n "$lt_prog_compiler_pic"; then 9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9033$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9034if ${lt_cv_prog_compiler_pic_works+:} false; then : 9035 $as_echo_n "(cached) " >&6 9036else 9037 lt_cv_prog_compiler_pic_works=no 9038 ac_outfile=conftest.$ac_objext 9039 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9040 lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC" ## exclude from sc_useless_quotes_in_assignment 9041 # Insert the option either (1) after the last *FLAGS variable, or 9042 # (2) before a word containing "conftest.", or (3) at the end. 9043 # Note that $ac_compile itself does not contain backslashes and begins 9044 # with a dollar sign (not a hyphen), so the echo should work correctly. 9045 # The option is referenced via a variable to avoid confusing sed. 9046 lt_compile=`echo "$ac_compile" | $SED \ 9047 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9048 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9049 -e 's:$: $lt_compiler_flag:'` 9050 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9051 (eval "$lt_compile" 2>conftest.err) 9052 ac_status=$? 9053 cat conftest.err >&5 9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9055 if (exit $ac_status) && test -s "$ac_outfile"; then 9056 # The compiler can only warn and ignore the option if not recognized 9057 # So say no if there are warnings other than the usual output. 9058 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9059 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9060 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9061 lt_cv_prog_compiler_pic_works=yes 9062 fi 9063 fi 9064 $RM conftest* 9065 9066fi 9067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9068$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9069 9070if test yes = "$lt_cv_prog_compiler_pic_works"; then 9071 case $lt_prog_compiler_pic in 9072 "" | " "*) ;; 9073 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9074 esac 9075else 9076 lt_prog_compiler_pic= 9077 lt_prog_compiler_can_build_shared=no 9078fi 9079 9080fi 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092# 9093# Check to make sure the static flag actually works. 9094# 9095wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9097$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9098if ${lt_cv_prog_compiler_static_works+:} false; then : 9099 $as_echo_n "(cached) " >&6 9100else 9101 lt_cv_prog_compiler_static_works=no 9102 save_LDFLAGS=$LDFLAGS 9103 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9104 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9105 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9106 # The linker can only warn and ignore the option if not recognized 9107 # So say no if there are warnings 9108 if test -s conftest.err; then 9109 # Append any errors to the config.log. 9110 cat conftest.err 1>&5 9111 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9112 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9113 if diff conftest.exp conftest.er2 >/dev/null; then 9114 lt_cv_prog_compiler_static_works=yes 9115 fi 9116 else 9117 lt_cv_prog_compiler_static_works=yes 9118 fi 9119 fi 9120 $RM -r conftest* 9121 LDFLAGS=$save_LDFLAGS 9122 9123fi 9124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9125$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9126 9127if test yes = "$lt_cv_prog_compiler_static_works"; then 9128 : 9129else 9130 lt_prog_compiler_static= 9131fi 9132 9133 9134 9135 9136 9137 9138 9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9140$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9141if ${lt_cv_prog_compiler_c_o+:} false; then : 9142 $as_echo_n "(cached) " >&6 9143else 9144 lt_cv_prog_compiler_c_o=no 9145 $RM -r conftest 2>/dev/null 9146 mkdir conftest 9147 cd conftest 9148 mkdir out 9149 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9150 9151 lt_compiler_flag="-o out/conftest2.$ac_objext" 9152 # Insert the option either (1) after the last *FLAGS variable, or 9153 # (2) before a word containing "conftest.", or (3) at the end. 9154 # Note that $ac_compile itself does not contain backslashes and begins 9155 # with a dollar sign (not a hyphen), so the echo should work correctly. 9156 lt_compile=`echo "$ac_compile" | $SED \ 9157 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9158 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9159 -e 's:$: $lt_compiler_flag:'` 9160 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9161 (eval "$lt_compile" 2>out/conftest.err) 9162 ac_status=$? 9163 cat out/conftest.err >&5 9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9165 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9166 then 9167 # The compiler can only warn and ignore the option if not recognized 9168 # So say no if there are warnings 9169 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9170 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9171 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9172 lt_cv_prog_compiler_c_o=yes 9173 fi 9174 fi 9175 chmod u+w . 2>&5 9176 $RM conftest* 9177 # SGI C++ compiler will create directory out/ii_files/ for 9178 # template instantiation 9179 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9180 $RM out/* && rmdir out 9181 cd .. 9182 $RM -r conftest 9183 $RM conftest* 9184 9185fi 9186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9187$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9188 9189 9190 9191 9192 9193 9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9195$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9196if ${lt_cv_prog_compiler_c_o+:} false; then : 9197 $as_echo_n "(cached) " >&6 9198else 9199 lt_cv_prog_compiler_c_o=no 9200 $RM -r conftest 2>/dev/null 9201 mkdir conftest 9202 cd conftest 9203 mkdir out 9204 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9205 9206 lt_compiler_flag="-o out/conftest2.$ac_objext" 9207 # Insert the option either (1) after the last *FLAGS variable, or 9208 # (2) before a word containing "conftest.", or (3) at the end. 9209 # Note that $ac_compile itself does not contain backslashes and begins 9210 # with a dollar sign (not a hyphen), so the echo should work correctly. 9211 lt_compile=`echo "$ac_compile" | $SED \ 9212 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9213 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9214 -e 's:$: $lt_compiler_flag:'` 9215 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9216 (eval "$lt_compile" 2>out/conftest.err) 9217 ac_status=$? 9218 cat out/conftest.err >&5 9219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9220 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9221 then 9222 # The compiler can only warn and ignore the option if not recognized 9223 # So say no if there are warnings 9224 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9225 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9226 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9227 lt_cv_prog_compiler_c_o=yes 9228 fi 9229 fi 9230 chmod u+w . 2>&5 9231 $RM conftest* 9232 # SGI C++ compiler will create directory out/ii_files/ for 9233 # template instantiation 9234 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9235 $RM out/* && rmdir out 9236 cd .. 9237 $RM -r conftest 9238 $RM conftest* 9239 9240fi 9241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9242$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9243 9244 9245 9246 9247hard_links=nottested 9248if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9249 # do not overwrite the value of need_locks provided by the user 9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9251$as_echo_n "checking if we can lock with hard links... " >&6; } 9252 hard_links=yes 9253 $RM conftest* 9254 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9255 touch conftest.a 9256 ln conftest.a conftest.b 2>&5 || hard_links=no 9257 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9259$as_echo "$hard_links" >&6; } 9260 if test no = "$hard_links"; then 9261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9262$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9263 need_locks=warn 9264 fi 9265else 9266 need_locks=no 9267fi 9268 9269 9270 9271 9272 9273 9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9275$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9276 9277 runpath_var= 9278 allow_undefined_flag= 9279 always_export_symbols=no 9280 archive_cmds= 9281 archive_expsym_cmds= 9282 compiler_needs_object=no 9283 enable_shared_with_static_runtimes=no 9284 export_dynamic_flag_spec= 9285 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9286 hardcode_automatic=no 9287 hardcode_direct=no 9288 hardcode_direct_absolute=no 9289 hardcode_libdir_flag_spec= 9290 hardcode_libdir_separator= 9291 hardcode_minus_L=no 9292 hardcode_shlibpath_var=unsupported 9293 inherit_rpath=no 9294 link_all_deplibs=unknown 9295 module_cmds= 9296 module_expsym_cmds= 9297 old_archive_from_new_cmds= 9298 old_archive_from_expsyms_cmds= 9299 thread_safe_flag_spec= 9300 whole_archive_flag_spec= 9301 # include_expsyms should be a list of space-separated symbols to be *always* 9302 # included in the symbol list 9303 include_expsyms= 9304 # exclude_expsyms can be an extended regexp of symbols to exclude 9305 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9306 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9307 # as well as any symbol that contains 'd'. 9308 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9309 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9310 # platforms (ab)use it in PIC code, but their linkers get confused if 9311 # the symbol is explicitly referenced. Since portable code cannot 9312 # rely on this symbol name, it's probably fine to never include it in 9313 # preloaded symbol tables. 9314 # Exclude shared library initialization/finalization symbols. 9315 extract_expsyms_cmds= 9316 9317 case $host_os in 9318 cygwin* | mingw* | pw32* | cegcc*) 9319 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9320 # When not using gcc, we currently assume that we are using 9321 # Microsoft Visual C++. 9322 if test yes != "$GCC"; then 9323 with_gnu_ld=no 9324 fi 9325 ;; 9326 interix*) 9327 # we just hope/assume this is gcc and not c89 (= MSVC++) 9328 with_gnu_ld=yes 9329 ;; 9330 openbsd* | bitrig*) 9331 with_gnu_ld=no 9332 ;; 9333 esac 9334 9335 ld_shlibs=yes 9336 9337 # On some targets, GNU ld is compatible enough with the native linker 9338 # that we're better off using the native interface for both. 9339 lt_use_gnu_ld_interface=no 9340 if test yes = "$with_gnu_ld"; then 9341 case $host_os in 9342 aix*) 9343 # The AIX port of GNU ld has always aspired to compatibility 9344 # with the native linker. However, as the warning in the GNU ld 9345 # block says, versions before 2.19.5* couldn't really create working 9346 # shared libraries, regardless of the interface used. 9347 case `$LD -v 2>&1` in 9348 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9349 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9350 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9351 *) 9352 lt_use_gnu_ld_interface=yes 9353 ;; 9354 esac 9355 ;; 9356 *) 9357 lt_use_gnu_ld_interface=yes 9358 ;; 9359 esac 9360 fi 9361 9362 if test yes = "$lt_use_gnu_ld_interface"; then 9363 # If archive_cmds runs LD, not CC, wlarc should be empty 9364 wlarc='$wl' 9365 9366 # Set some defaults for GNU ld with shared library support. These 9367 # are reset later if shared libraries are not supported. Putting them 9368 # here allows them to be overridden if necessary. 9369 runpath_var=LD_RUN_PATH 9370 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9371 export_dynamic_flag_spec='$wl--export-dynamic' 9372 # ancient GNU ld didn't support --whole-archive et. al. 9373 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9374 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9375 else 9376 whole_archive_flag_spec= 9377 fi 9378 supports_anon_versioning=no 9379 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9380 *GNU\ gold*) supports_anon_versioning=yes ;; 9381 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9382 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9383 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9384 *\ 2.11.*) ;; # other 2.11 versions 9385 *) supports_anon_versioning=yes ;; 9386 esac 9387 9388 # See if GNU ld supports shared libraries. 9389 case $host_os in 9390 aix[3-9]*) 9391 # On AIX/PPC, the GNU linker is very broken 9392 if test ia64 != "$host_cpu"; then 9393 ld_shlibs=no 9394 cat <<_LT_EOF 1>&2 9395 9396*** Warning: the GNU linker, at least up to release 2.19, is reported 9397*** to be unable to reliably create shared libraries on AIX. 9398*** Therefore, libtool is disabling shared libraries support. If you 9399*** really care for shared libraries, you may want to install binutils 9400*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9401*** You will then need to restart the configuration process. 9402 9403_LT_EOF 9404 fi 9405 ;; 9406 9407 amigaos*) 9408 case $host_cpu in 9409 powerpc) 9410 # see comment about AmigaOS4 .so support 9411 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9412 archive_expsym_cmds='' 9413 ;; 9414 m68k) 9415 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)' 9416 hardcode_libdir_flag_spec='-L$libdir' 9417 hardcode_minus_L=yes 9418 ;; 9419 esac 9420 ;; 9421 9422 beos*) 9423 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9424 allow_undefined_flag=unsupported 9425 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9426 # support --undefined. This deserves some investigation. FIXME 9427 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9428 else 9429 ld_shlibs=no 9430 fi 9431 ;; 9432 9433 cygwin* | mingw* | pw32* | cegcc*) 9434 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9435 # as there is no search path for DLLs. 9436 hardcode_libdir_flag_spec='-L$libdir' 9437 export_dynamic_flag_spec='$wl--export-all-symbols' 9438 allow_undefined_flag=unsupported 9439 always_export_symbols=no 9440 enable_shared_with_static_runtimes=yes 9441 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' 9442 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9443 9444 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9445 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9446 # If the export-symbols file already is a .def file, use it as 9447 # is; otherwise, prepend EXPORTS... 9448 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9449 cp $export_symbols $output_objdir/$soname.def; 9450 else 9451 echo EXPORTS > $output_objdir/$soname.def; 9452 cat $export_symbols >> $output_objdir/$soname.def; 9453 fi~ 9454 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9455 else 9456 ld_shlibs=no 9457 fi 9458 ;; 9459 9460 haiku*) 9461 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9462 link_all_deplibs=yes 9463 ;; 9464 9465 os2*) 9466 hardcode_libdir_flag_spec='-L$libdir' 9467 hardcode_minus_L=yes 9468 allow_undefined_flag=unsupported 9469 shrext_cmds=.dll 9470 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9471 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9472 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9473 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9474 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9475 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9476 emximp -o $lib $output_objdir/$libname.def' 9477 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9478 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9479 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9480 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9481 prefix_cmds="$SED"~ 9482 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9483 prefix_cmds="$prefix_cmds -e 1d"; 9484 fi~ 9485 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9486 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9487 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9488 emximp -o $lib $output_objdir/$libname.def' 9489 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9490 enable_shared_with_static_runtimes=yes 9491 ;; 9492 9493 interix[3-9]*) 9494 hardcode_direct=no 9495 hardcode_shlibpath_var=no 9496 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9497 export_dynamic_flag_spec='$wl-E' 9498 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9499 # Instead, shared libraries are loaded at an image base (0x10000000 by 9500 # default) and relocated if they conflict, which is a slow very memory 9501 # consuming and fragmenting process. To avoid this, we pick a random, 9502 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9503 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9504 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9505 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' 9506 ;; 9507 9508 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9509 tmp_diet=no 9510 if test linux-dietlibc = "$host_os"; then 9511 case $cc_basename in 9512 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9513 esac 9514 fi 9515 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9516 && test no = "$tmp_diet" 9517 then 9518 tmp_addflag=' $pic_flag' 9519 tmp_sharedflag='-shared' 9520 case $cc_basename,$host_cpu in 9521 pgcc*) # Portland Group C compiler 9522 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' 9523 tmp_addflag=' $pic_flag' 9524 ;; 9525 pgf77* | pgf90* | pgf95* | pgfortran*) 9526 # Portland Group f77 and f90 compilers 9527 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' 9528 tmp_addflag=' $pic_flag -Mnomain' ;; 9529 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9530 tmp_addflag=' -i_dynamic' ;; 9531 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9532 tmp_addflag=' -i_dynamic -nofor_main' ;; 9533 ifc* | ifort*) # Intel Fortran compiler 9534 tmp_addflag=' -nofor_main' ;; 9535 lf95*) # Lahey Fortran 8.1 9536 whole_archive_flag_spec= 9537 tmp_sharedflag='--shared' ;; 9538 nagfor*) # NAGFOR 5.3 9539 tmp_sharedflag='-Wl,-shared' ;; 9540 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9541 tmp_sharedflag='-qmkshrobj' 9542 tmp_addflag= ;; 9543 nvcc*) # Cuda Compiler Driver 2.2 9544 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' 9545 compiler_needs_object=yes 9546 ;; 9547 esac 9548 case `$CC -V 2>&1 | sed 5q` in 9549 *Sun\ C*) # Sun C 5.9 9550 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' 9551 compiler_needs_object=yes 9552 tmp_sharedflag='-G' ;; 9553 *Sun\ F*) # Sun Fortran 8.3 9554 tmp_sharedflag='-G' ;; 9555 esac 9556 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9557 9558 if test yes = "$supports_anon_versioning"; then 9559 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9560 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9561 echo "local: *; };" >> $output_objdir/$libname.ver~ 9562 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9563 fi 9564 9565 case $cc_basename in 9566 tcc*) 9567 export_dynamic_flag_spec='-rdynamic' 9568 ;; 9569 xlf* | bgf* | bgxlf* | mpixlf*) 9570 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9571 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9572 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9573 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9574 if test yes = "$supports_anon_versioning"; then 9575 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9576 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9577 echo "local: *; };" >> $output_objdir/$libname.ver~ 9578 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9579 fi 9580 ;; 9581 esac 9582 else 9583 ld_shlibs=no 9584 fi 9585 ;; 9586 9587 netbsd*) 9588 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9589 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9590 wlarc= 9591 else 9592 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9593 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9594 fi 9595 ;; 9596 9597 solaris*) 9598 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9599 ld_shlibs=no 9600 cat <<_LT_EOF 1>&2 9601 9602*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9603*** create shared libraries on Solaris systems. Therefore, libtool 9604*** is disabling shared libraries support. We urge you to upgrade GNU 9605*** binutils to release 2.9.1 or newer. Another option is to modify 9606*** your PATH or compiler configuration so that the native linker is 9607*** used, and then restart. 9608 9609_LT_EOF 9610 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9611 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9612 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9613 else 9614 ld_shlibs=no 9615 fi 9616 ;; 9617 9618 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9619 case `$LD -v 2>&1` in 9620 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9621 ld_shlibs=no 9622 cat <<_LT_EOF 1>&2 9623 9624*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9625*** reliably create shared libraries on SCO systems. Therefore, libtool 9626*** is disabling shared libraries support. We urge you to upgrade GNU 9627*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9628*** your PATH or compiler configuration so that the native linker is 9629*** used, and then restart. 9630 9631_LT_EOF 9632 ;; 9633 *) 9634 # For security reasons, it is highly recommended that you always 9635 # use absolute paths for naming shared libraries, and exclude the 9636 # DT_RUNPATH tag from executables and libraries. But doing so 9637 # requires that you compile everything twice, which is a pain. 9638 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9639 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9640 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9641 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9642 else 9643 ld_shlibs=no 9644 fi 9645 ;; 9646 esac 9647 ;; 9648 9649 sunos4*) 9650 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9651 wlarc= 9652 hardcode_direct=yes 9653 hardcode_shlibpath_var=no 9654 ;; 9655 9656 *) 9657 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9658 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9659 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9660 else 9661 ld_shlibs=no 9662 fi 9663 ;; 9664 esac 9665 9666 if test no = "$ld_shlibs"; then 9667 runpath_var= 9668 hardcode_libdir_flag_spec= 9669 export_dynamic_flag_spec= 9670 whole_archive_flag_spec= 9671 fi 9672 else 9673 # PORTME fill in a description of your system's linker (not GNU ld) 9674 case $host_os in 9675 aix3*) 9676 allow_undefined_flag=unsupported 9677 always_export_symbols=yes 9678 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' 9679 # Note: this linker hardcodes the directories in LIBPATH if there 9680 # are no directories specified by -L. 9681 hardcode_minus_L=yes 9682 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9683 # Neither direct hardcoding nor static linking is supported with a 9684 # broken collect2. 9685 hardcode_direct=unsupported 9686 fi 9687 ;; 9688 9689 aix[4-9]*) 9690 if test ia64 = "$host_cpu"; then 9691 # On IA64, the linker does run time linking by default, so we don't 9692 # have to do anything special. 9693 aix_use_runtimelinking=no 9694 exp_sym_flag='-Bexport' 9695 no_entry_flag= 9696 else 9697 # If we're using GNU nm, then we don't want the "-C" option. 9698 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9699 # Without the "-l" option, or with the "-B" option, AIX nm treats 9700 # weak defined symbols like other global defined symbols, whereas 9701 # GNU nm marks them as "W". 9702 # While the 'weak' keyword is ignored in the Export File, we need 9703 # it in the Import File for the 'aix-soname' feature, so we have 9704 # to replace the "-B" option with "-P" for AIX nm. 9705 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9706 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 9707 else 9708 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 9709 fi 9710 aix_use_runtimelinking=no 9711 9712 # Test if we are trying to use run time linking or normal 9713 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9714 # have runtime linking enabled, and use it for executables. 9715 # For shared libraries, we enable/disable runtime linking 9716 # depending on the kind of the shared library created - 9717 # when "with_aix_soname,aix_use_runtimelinking" is: 9718 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9719 # "aix,yes" lib.so shared, rtl:yes, for executables 9720 # lib.a static archive 9721 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9722 # lib.a(lib.so.V) shared, rtl:no, for executables 9723 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9724 # lib.a(lib.so.V) shared, rtl:no 9725 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9726 # lib.a static archive 9727 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9728 for ld_flag in $LDFLAGS; do 9729 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9730 aix_use_runtimelinking=yes 9731 break 9732 fi 9733 done 9734 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9735 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9736 # so we don't have lib.a shared libs to link our executables. 9737 # We have to force runtime linking in this case. 9738 aix_use_runtimelinking=yes 9739 LDFLAGS="$LDFLAGS -Wl,-brtl" 9740 fi 9741 ;; 9742 esac 9743 9744 exp_sym_flag='-bexport' 9745 no_entry_flag='-bnoentry' 9746 fi 9747 9748 # When large executables or shared objects are built, AIX ld can 9749 # have problems creating the table of contents. If linking a library 9750 # or program results in "error TOC overflow" add -mminimal-toc to 9751 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9752 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9753 9754 archive_cmds='' 9755 hardcode_direct=yes 9756 hardcode_direct_absolute=yes 9757 hardcode_libdir_separator=':' 9758 link_all_deplibs=yes 9759 file_list_spec='$wl-f,' 9760 case $with_aix_soname,$aix_use_runtimelinking in 9761 aix,*) ;; # traditional, no import file 9762 svr4,* | *,yes) # use import file 9763 # The Import File defines what to hardcode. 9764 hardcode_direct=no 9765 hardcode_direct_absolute=no 9766 ;; 9767 esac 9768 9769 if test yes = "$GCC"; then 9770 case $host_os in aix4.[012]|aix4.[012].*) 9771 # We only want to do this on AIX 4.2 and lower, the check 9772 # below for broken collect2 doesn't work under 4.3+ 9773 collect2name=`$CC -print-prog-name=collect2` 9774 if test -f "$collect2name" && 9775 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9776 then 9777 # We have reworked collect2 9778 : 9779 else 9780 # We have old collect2 9781 hardcode_direct=unsupported 9782 # It fails to find uninstalled libraries when the uninstalled 9783 # path is not listed in the libpath. Setting hardcode_minus_L 9784 # to unsupported forces relinking 9785 hardcode_minus_L=yes 9786 hardcode_libdir_flag_spec='-L$libdir' 9787 hardcode_libdir_separator= 9788 fi 9789 ;; 9790 esac 9791 shared_flag='-shared' 9792 if test yes = "$aix_use_runtimelinking"; then 9793 shared_flag="$shared_flag "'$wl-G' 9794 fi 9795 # Need to ensure runtime linking is disabled for the traditional 9796 # shared library, or the linker may eventually find shared libraries 9797 # /with/ Import File - we do not want to mix them. 9798 shared_flag_aix='-shared' 9799 shared_flag_svr4='-shared $wl-G' 9800 else 9801 # not using gcc 9802 if test ia64 = "$host_cpu"; then 9803 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9804 # chokes on -Wl,-G. The following line is correct: 9805 shared_flag='-G' 9806 else 9807 if test yes = "$aix_use_runtimelinking"; then 9808 shared_flag='$wl-G' 9809 else 9810 shared_flag='$wl-bM:SRE' 9811 fi 9812 shared_flag_aix='$wl-bM:SRE' 9813 shared_flag_svr4='$wl-G' 9814 fi 9815 fi 9816 9817 export_dynamic_flag_spec='$wl-bexpall' 9818 # It seems that -bexpall does not export symbols beginning with 9819 # underscore (_), so it is better to generate a list of symbols to export. 9820 always_export_symbols=yes 9821 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9822 # Warning - without using the other runtime loading flags (-brtl), 9823 # -berok will link without error, but may produce a broken library. 9824 allow_undefined_flag='-berok' 9825 # Determine the default libpath from the value encoded in an 9826 # empty executable. 9827 if test set = "${lt_cv_aix_libpath+set}"; then 9828 aix_libpath=$lt_cv_aix_libpath 9829else 9830 if ${lt_cv_aix_libpath_+:} false; then : 9831 $as_echo_n "(cached) " >&6 9832else 9833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9834/* end confdefs.h. */ 9835 9836int 9837main () 9838{ 9839 9840 ; 9841 return 0; 9842} 9843_ACEOF 9844if ac_fn_c_try_link "$LINENO"; then : 9845 9846 lt_aix_libpath_sed=' 9847 /Import File Strings/,/^$/ { 9848 /^0/ { 9849 s/^0 *\([^ ]*\) *$/\1/ 9850 p 9851 } 9852 }' 9853 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9854 # Check for a 64-bit object if we didn't find anything. 9855 if test -z "$lt_cv_aix_libpath_"; then 9856 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9857 fi 9858fi 9859rm -f core conftest.err conftest.$ac_objext \ 9860 conftest$ac_exeext conftest.$ac_ext 9861 if test -z "$lt_cv_aix_libpath_"; then 9862 lt_cv_aix_libpath_=/usr/lib:/lib 9863 fi 9864 9865fi 9866 9867 aix_libpath=$lt_cv_aix_libpath_ 9868fi 9869 9870 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9871 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 9872 else 9873 if test ia64 = "$host_cpu"; then 9874 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9875 allow_undefined_flag="-z nodefs" 9876 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" 9877 else 9878 # Determine the default libpath from the value encoded in an 9879 # empty executable. 9880 if test set = "${lt_cv_aix_libpath+set}"; then 9881 aix_libpath=$lt_cv_aix_libpath 9882else 9883 if ${lt_cv_aix_libpath_+:} false; then : 9884 $as_echo_n "(cached) " >&6 9885else 9886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9887/* end confdefs.h. */ 9888 9889int 9890main () 9891{ 9892 9893 ; 9894 return 0; 9895} 9896_ACEOF 9897if ac_fn_c_try_link "$LINENO"; then : 9898 9899 lt_aix_libpath_sed=' 9900 /Import File Strings/,/^$/ { 9901 /^0/ { 9902 s/^0 *\([^ ]*\) *$/\1/ 9903 p 9904 } 9905 }' 9906 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9907 # Check for a 64-bit object if we didn't find anything. 9908 if test -z "$lt_cv_aix_libpath_"; then 9909 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9910 fi 9911fi 9912rm -f core conftest.err conftest.$ac_objext \ 9913 conftest$ac_exeext conftest.$ac_ext 9914 if test -z "$lt_cv_aix_libpath_"; then 9915 lt_cv_aix_libpath_=/usr/lib:/lib 9916 fi 9917 9918fi 9919 9920 aix_libpath=$lt_cv_aix_libpath_ 9921fi 9922 9923 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9924 # Warning - without using the other run time loading flags, 9925 # -berok will link without error, but may produce a broken library. 9926 no_undefined_flag=' $wl-bernotok' 9927 allow_undefined_flag=' $wl-berok' 9928 if test yes = "$with_gnu_ld"; then 9929 # We only use this code for GNU lds that support --whole-archive. 9930 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9931 else 9932 # Exported symbols can be pulled into shared objects from archives 9933 whole_archive_flag_spec='$convenience' 9934 fi 9935 archive_cmds_need_lc=yes 9936 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9937 # -brtl affects multiple linker settings, -berok does not and is overridden later 9938 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9939 if test svr4 != "$with_aix_soname"; then 9940 # This is similar to how AIX traditionally builds its shared libraries. 9941 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 9942 fi 9943 if test aix != "$with_aix_soname"; then 9944 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 9945 else 9946 # used by -dlpreopen to get the symbols 9947 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9948 fi 9949 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9950 fi 9951 fi 9952 ;; 9953 9954 amigaos*) 9955 case $host_cpu in 9956 powerpc) 9957 # see comment about AmigaOS4 .so support 9958 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9959 archive_expsym_cmds='' 9960 ;; 9961 m68k) 9962 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)' 9963 hardcode_libdir_flag_spec='-L$libdir' 9964 hardcode_minus_L=yes 9965 ;; 9966 esac 9967 ;; 9968 9969 bsdi[45]*) 9970 export_dynamic_flag_spec=-rdynamic 9971 ;; 9972 9973 cygwin* | mingw* | pw32* | cegcc*) 9974 # When not using gcc, we currently assume that we are using 9975 # Microsoft Visual C++. 9976 # hardcode_libdir_flag_spec is actually meaningless, as there is 9977 # no search path for DLLs. 9978 case $cc_basename in 9979 cl*) 9980 # Native MSVC 9981 hardcode_libdir_flag_spec=' ' 9982 allow_undefined_flag=unsupported 9983 always_export_symbols=yes 9984 file_list_spec='@' 9985 # Tell ltmain to make .lib files, not .a files. 9986 libext=lib 9987 # Tell ltmain to make .dll files, not .so files. 9988 shrext_cmds=.dll 9989 # FIXME: Setting linknames here is a bad hack. 9990 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9991 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9992 cp "$export_symbols" "$output_objdir/$soname.def"; 9993 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9994 else 9995 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9996 fi~ 9997 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9998 linknames=' 9999 # The linker will not automatically build a static lib if we build a DLL. 10000 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10001 enable_shared_with_static_runtimes=yes 10002 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10003 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10004 # Don't use ranlib 10005 old_postinstall_cmds='chmod 644 $oldlib' 10006 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10007 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10008 case $lt_outputfile in 10009 *.exe|*.EXE) ;; 10010 *) 10011 lt_outputfile=$lt_outputfile.exe 10012 lt_tool_outputfile=$lt_tool_outputfile.exe 10013 ;; 10014 esac~ 10015 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10016 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10017 $RM "$lt_outputfile.manifest"; 10018 fi' 10019 ;; 10020 *) 10021 # Assume MSVC wrapper 10022 hardcode_libdir_flag_spec=' ' 10023 allow_undefined_flag=unsupported 10024 # Tell ltmain to make .lib files, not .a files. 10025 libext=lib 10026 # Tell ltmain to make .dll files, not .so files. 10027 shrext_cmds=.dll 10028 # FIXME: Setting linknames here is a bad hack. 10029 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10030 # The linker will automatically build a .lib file if we build a DLL. 10031 old_archive_from_new_cmds='true' 10032 # FIXME: Should let the user specify the lib program. 10033 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10034 enable_shared_with_static_runtimes=yes 10035 ;; 10036 esac 10037 ;; 10038 10039 darwin* | rhapsody*) 10040 10041 10042 archive_cmds_need_lc=no 10043 hardcode_direct=no 10044 hardcode_automatic=yes 10045 hardcode_shlibpath_var=unsupported 10046 if test yes = "$lt_cv_ld_force_load"; then 10047 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\"`' 10048 10049 else 10050 whole_archive_flag_spec='' 10051 fi 10052 link_all_deplibs=yes 10053 allow_undefined_flag=$_lt_dar_allow_undefined 10054 case $cc_basename in 10055 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10056 *) _lt_dar_can_shared=$GCC ;; 10057 esac 10058 if test yes = "$_lt_dar_can_shared"; then 10059 output_verbose_link_cmd=func_echo_all 10060 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10061 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10062 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" 10063 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" 10064 10065 else 10066 ld_shlibs=no 10067 fi 10068 10069 ;; 10070 10071 dgux*) 10072 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10073 hardcode_libdir_flag_spec='-L$libdir' 10074 hardcode_shlibpath_var=no 10075 ;; 10076 10077 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10078 # support. Future versions do this automatically, but an explicit c++rt0.o 10079 # does not break anything, and helps significantly (at the cost of a little 10080 # extra space). 10081 freebsd2.2*) 10082 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10083 hardcode_libdir_flag_spec='-R$libdir' 10084 hardcode_direct=yes 10085 hardcode_shlibpath_var=no 10086 ;; 10087 10088 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10089 freebsd2.*) 10090 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10091 hardcode_direct=yes 10092 hardcode_minus_L=yes 10093 hardcode_shlibpath_var=no 10094 ;; 10095 10096 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10097 freebsd* | dragonfly*) 10098 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10099 hardcode_libdir_flag_spec='-R$libdir' 10100 hardcode_direct=yes 10101 hardcode_shlibpath_var=no 10102 ;; 10103 10104 hpux9*) 10105 if test yes = "$GCC"; then 10106 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10107 else 10108 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10109 fi 10110 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10111 hardcode_libdir_separator=: 10112 hardcode_direct=yes 10113 10114 # hardcode_minus_L: Not really in the search PATH, 10115 # but as the default location of the library. 10116 hardcode_minus_L=yes 10117 export_dynamic_flag_spec='$wl-E' 10118 ;; 10119 10120 hpux10*) 10121 if test yes,no = "$GCC,$with_gnu_ld"; then 10122 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10123 else 10124 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10125 fi 10126 if test no = "$with_gnu_ld"; then 10127 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10128 hardcode_libdir_separator=: 10129 hardcode_direct=yes 10130 hardcode_direct_absolute=yes 10131 export_dynamic_flag_spec='$wl-E' 10132 # hardcode_minus_L: Not really in the search PATH, 10133 # but as the default location of the library. 10134 hardcode_minus_L=yes 10135 fi 10136 ;; 10137 10138 hpux11*) 10139 if test yes,no = "$GCC,$with_gnu_ld"; then 10140 case $host_cpu in 10141 hppa*64*) 10142 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10143 ;; 10144 ia64*) 10145 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10146 ;; 10147 *) 10148 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10149 ;; 10150 esac 10151 else 10152 case $host_cpu in 10153 hppa*64*) 10154 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10155 ;; 10156 ia64*) 10157 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10158 ;; 10159 *) 10160 10161 # Older versions of the 11.00 compiler do not understand -b yet 10162 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10164$as_echo_n "checking if $CC understands -b... " >&6; } 10165if ${lt_cv_prog_compiler__b+:} false; then : 10166 $as_echo_n "(cached) " >&6 10167else 10168 lt_cv_prog_compiler__b=no 10169 save_LDFLAGS=$LDFLAGS 10170 LDFLAGS="$LDFLAGS -b" 10171 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10172 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10173 # The linker can only warn and ignore the option if not recognized 10174 # So say no if there are warnings 10175 if test -s conftest.err; then 10176 # Append any errors to the config.log. 10177 cat conftest.err 1>&5 10178 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10179 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10180 if diff conftest.exp conftest.er2 >/dev/null; then 10181 lt_cv_prog_compiler__b=yes 10182 fi 10183 else 10184 lt_cv_prog_compiler__b=yes 10185 fi 10186 fi 10187 $RM -r conftest* 10188 LDFLAGS=$save_LDFLAGS 10189 10190fi 10191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10192$as_echo "$lt_cv_prog_compiler__b" >&6; } 10193 10194if test yes = "$lt_cv_prog_compiler__b"; then 10195 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10196else 10197 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10198fi 10199 10200 ;; 10201 esac 10202 fi 10203 if test no = "$with_gnu_ld"; then 10204 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10205 hardcode_libdir_separator=: 10206 10207 case $host_cpu in 10208 hppa*64*|ia64*) 10209 hardcode_direct=no 10210 hardcode_shlibpath_var=no 10211 ;; 10212 *) 10213 hardcode_direct=yes 10214 hardcode_direct_absolute=yes 10215 export_dynamic_flag_spec='$wl-E' 10216 10217 # hardcode_minus_L: Not really in the search PATH, 10218 # but as the default location of the library. 10219 hardcode_minus_L=yes 10220 ;; 10221 esac 10222 fi 10223 ;; 10224 10225 irix5* | irix6* | nonstopux*) 10226 if test yes = "$GCC"; then 10227 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' 10228 # Try to use the -exported_symbol ld option, if it does not 10229 # work, assume that -exports_file does not work either and 10230 # implicitly export all symbols. 10231 # This should be the same for all languages, so no per-tag cache variable. 10232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10233$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10234if ${lt_cv_irix_exported_symbol+:} false; then : 10235 $as_echo_n "(cached) " >&6 10236else 10237 save_LDFLAGS=$LDFLAGS 10238 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10240/* end confdefs.h. */ 10241int foo (void) { return 0; } 10242_ACEOF 10243if ac_fn_c_try_link "$LINENO"; then : 10244 lt_cv_irix_exported_symbol=yes 10245else 10246 lt_cv_irix_exported_symbol=no 10247fi 10248rm -f core conftest.err conftest.$ac_objext \ 10249 conftest$ac_exeext conftest.$ac_ext 10250 LDFLAGS=$save_LDFLAGS 10251fi 10252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10253$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10254 if test yes = "$lt_cv_irix_exported_symbol"; then 10255 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' 10256 fi 10257 else 10258 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' 10259 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' 10260 fi 10261 archive_cmds_need_lc='no' 10262 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10263 hardcode_libdir_separator=: 10264 inherit_rpath=yes 10265 link_all_deplibs=yes 10266 ;; 10267 10268 linux*) 10269 case $cc_basename in 10270 tcc*) 10271 # Fabrice Bellard et al's Tiny C Compiler 10272 ld_shlibs=yes 10273 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10274 ;; 10275 esac 10276 ;; 10277 10278 netbsd*) 10279 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10280 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10281 else 10282 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10283 fi 10284 hardcode_libdir_flag_spec='-R$libdir' 10285 hardcode_direct=yes 10286 hardcode_shlibpath_var=no 10287 ;; 10288 10289 newsos6) 10290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10291 hardcode_direct=yes 10292 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10293 hardcode_libdir_separator=: 10294 hardcode_shlibpath_var=no 10295 ;; 10296 10297 *nto* | *qnx*) 10298 ;; 10299 10300 openbsd* | bitrig*) 10301 if test -f /usr/libexec/ld.so; then 10302 hardcode_direct=yes 10303 hardcode_shlibpath_var=no 10304 hardcode_direct_absolute=yes 10305 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10306 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10307 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10308 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10309 export_dynamic_flag_spec='$wl-E' 10310 else 10311 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10312 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10313 fi 10314 else 10315 ld_shlibs=no 10316 fi 10317 ;; 10318 10319 os2*) 10320 hardcode_libdir_flag_spec='-L$libdir' 10321 hardcode_minus_L=yes 10322 allow_undefined_flag=unsupported 10323 shrext_cmds=.dll 10324 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10325 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10326 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10327 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10328 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10329 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10330 emximp -o $lib $output_objdir/$libname.def' 10331 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10332 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10333 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10334 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10335 prefix_cmds="$SED"~ 10336 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10337 prefix_cmds="$prefix_cmds -e 1d"; 10338 fi~ 10339 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10340 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10341 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10342 emximp -o $lib $output_objdir/$libname.def' 10343 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10344 enable_shared_with_static_runtimes=yes 10345 ;; 10346 10347 osf3*) 10348 if test yes = "$GCC"; then 10349 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10350 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' 10351 else 10352 allow_undefined_flag=' -expect_unresolved \*' 10353 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' 10354 fi 10355 archive_cmds_need_lc='no' 10356 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10357 hardcode_libdir_separator=: 10358 ;; 10359 10360 osf4* | osf5*) # as osf3* with the addition of -msym flag 10361 if test yes = "$GCC"; then 10362 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10363 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' 10364 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10365 else 10366 allow_undefined_flag=' -expect_unresolved \*' 10367 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' 10368 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~ 10369 $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' 10370 10371 # Both c and cxx compiler support -rpath directly 10372 hardcode_libdir_flag_spec='-rpath $libdir' 10373 fi 10374 archive_cmds_need_lc='no' 10375 hardcode_libdir_separator=: 10376 ;; 10377 10378 solaris*) 10379 no_undefined_flag=' -z defs' 10380 if test yes = "$GCC"; then 10381 wlarc='$wl' 10382 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10383 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10384 $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' 10385 else 10386 case `$CC -V 2>&1` in 10387 *"Compilers 5.0"*) 10388 wlarc='' 10389 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10390 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10391 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10392 ;; 10393 *) 10394 wlarc='$wl' 10395 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10396 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10397 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10398 ;; 10399 esac 10400 fi 10401 hardcode_libdir_flag_spec='-R$libdir' 10402 hardcode_shlibpath_var=no 10403 case $host_os in 10404 solaris2.[0-5] | solaris2.[0-5].*) ;; 10405 *) 10406 # The compiler driver will combine and reorder linker options, 10407 # but understands '-z linker_flag'. GCC discards it without '$wl', 10408 # but is careful enough not to reorder. 10409 # Supported since Solaris 2.6 (maybe 2.5.1?) 10410 if test yes = "$GCC"; then 10411 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10412 else 10413 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10414 fi 10415 ;; 10416 esac 10417 link_all_deplibs=yes 10418 ;; 10419 10420 sunos4*) 10421 if test sequent = "$host_vendor"; then 10422 # Use $CC to link under sequent, because it throws in some extra .o 10423 # files that make .init and .fini sections work. 10424 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10425 else 10426 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10427 fi 10428 hardcode_libdir_flag_spec='-L$libdir' 10429 hardcode_direct=yes 10430 hardcode_minus_L=yes 10431 hardcode_shlibpath_var=no 10432 ;; 10433 10434 sysv4) 10435 case $host_vendor in 10436 sni) 10437 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10438 hardcode_direct=yes # is this really true??? 10439 ;; 10440 siemens) 10441 ## LD is ld it makes a PLAMLIB 10442 ## CC just makes a GrossModule. 10443 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10444 reload_cmds='$CC -r -o $output$reload_objs' 10445 hardcode_direct=no 10446 ;; 10447 motorola) 10448 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10449 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10450 ;; 10451 esac 10452 runpath_var='LD_RUN_PATH' 10453 hardcode_shlibpath_var=no 10454 ;; 10455 10456 sysv4.3*) 10457 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10458 hardcode_shlibpath_var=no 10459 export_dynamic_flag_spec='-Bexport' 10460 ;; 10461 10462 sysv4*MP*) 10463 if test -d /usr/nec; then 10464 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10465 hardcode_shlibpath_var=no 10466 runpath_var=LD_RUN_PATH 10467 hardcode_runpath_var=yes 10468 ld_shlibs=yes 10469 fi 10470 ;; 10471 10472 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10473 no_undefined_flag='$wl-z,text' 10474 archive_cmds_need_lc=no 10475 hardcode_shlibpath_var=no 10476 runpath_var='LD_RUN_PATH' 10477 10478 if test yes = "$GCC"; then 10479 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10480 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10481 else 10482 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10483 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10484 fi 10485 ;; 10486 10487 sysv5* | sco3.2v5* | sco5v6*) 10488 # Note: We CANNOT use -z defs as we might desire, because we do not 10489 # link with -lc, and that would cause any symbols used from libc to 10490 # always be unresolved, which means just about no library would 10491 # ever link correctly. If we're not using GNU ld we use -z text 10492 # though, which does catch some bad symbols but isn't as heavy-handed 10493 # as -z defs. 10494 no_undefined_flag='$wl-z,text' 10495 allow_undefined_flag='$wl-z,nodefs' 10496 archive_cmds_need_lc=no 10497 hardcode_shlibpath_var=no 10498 hardcode_libdir_flag_spec='$wl-R,$libdir' 10499 hardcode_libdir_separator=':' 10500 link_all_deplibs=yes 10501 export_dynamic_flag_spec='$wl-Bexport' 10502 runpath_var='LD_RUN_PATH' 10503 10504 if test yes = "$GCC"; then 10505 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10506 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10507 else 10508 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10509 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10510 fi 10511 ;; 10512 10513 uts4*) 10514 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10515 hardcode_libdir_flag_spec='-L$libdir' 10516 hardcode_shlibpath_var=no 10517 ;; 10518 10519 *) 10520 ld_shlibs=no 10521 ;; 10522 esac 10523 10524 if test sni = "$host_vendor"; then 10525 case $host in 10526 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10527 export_dynamic_flag_spec='$wl-Blargedynsym' 10528 ;; 10529 esac 10530 fi 10531 fi 10532 10533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10534$as_echo "$ld_shlibs" >&6; } 10535test no = "$ld_shlibs" && can_build_shared=no 10536 10537with_gnu_ld=$with_gnu_ld 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553# 10554# Do we need to explicitly link libc? 10555# 10556case "x$archive_cmds_need_lc" in 10557x|xyes) 10558 # Assume -lc should be added 10559 archive_cmds_need_lc=yes 10560 10561 if test yes,yes = "$GCC,$enable_shared"; then 10562 case $archive_cmds in 10563 *'~'*) 10564 # FIXME: we may have to deal with multi-command sequences. 10565 ;; 10566 '$CC '*) 10567 # Test whether the compiler implicitly links with -lc since on some 10568 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10569 # to ld, don't add -lc before -lgcc. 10570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10571$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10572if ${lt_cv_archive_cmds_need_lc+:} false; then : 10573 $as_echo_n "(cached) " >&6 10574else 10575 $RM conftest* 10576 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10577 10578 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10579 (eval $ac_compile) 2>&5 10580 ac_status=$? 10581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10582 test $ac_status = 0; } 2>conftest.err; then 10583 soname=conftest 10584 lib=conftest 10585 libobjs=conftest.$ac_objext 10586 deplibs= 10587 wl=$lt_prog_compiler_wl 10588 pic_flag=$lt_prog_compiler_pic 10589 compiler_flags=-v 10590 linker_flags=-v 10591 verstring= 10592 output_objdir=. 10593 libname=conftest 10594 lt_save_allow_undefined_flag=$allow_undefined_flag 10595 allow_undefined_flag= 10596 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10597 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10598 ac_status=$? 10599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10600 test $ac_status = 0; } 10601 then 10602 lt_cv_archive_cmds_need_lc=no 10603 else 10604 lt_cv_archive_cmds_need_lc=yes 10605 fi 10606 allow_undefined_flag=$lt_save_allow_undefined_flag 10607 else 10608 cat conftest.err 1>&5 10609 fi 10610 $RM conftest* 10611 10612fi 10613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10614$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10615 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10616 ;; 10617 esac 10618 fi 10619 ;; 10620esac 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 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10774$as_echo_n "checking dynamic linker characteristics... " >&6; } 10775 10776if test yes = "$GCC"; then 10777 case $host_os in 10778 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10779 *) lt_awk_arg='/^libraries:/' ;; 10780 esac 10781 case $host_os in 10782 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10783 *) lt_sed_strip_eq='s|=/|/|g' ;; 10784 esac 10785 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10786 case $lt_search_path_spec in 10787 *\;*) 10788 # if the path contains ";" then we assume it to be the separator 10789 # otherwise default to the standard path separator (i.e. ":") - it is 10790 # assumed that no part of a normal pathname contains ";" but that should 10791 # okay in the real world where ";" in dirpaths is itself problematic. 10792 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10793 ;; 10794 *) 10795 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10796 ;; 10797 esac 10798 # Ok, now we have the path, separated by spaces, we can step through it 10799 # and add multilib dir if necessary... 10800 lt_tmp_lt_search_path_spec= 10801 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10802 # ...but if some path component already ends with the multilib dir we assume 10803 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10804 case "$lt_multi_os_dir; $lt_search_path_spec " in 10805 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10806 lt_multi_os_dir= 10807 ;; 10808 esac 10809 for lt_sys_path in $lt_search_path_spec; do 10810 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10811 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10812 elif test -n "$lt_multi_os_dir"; then 10813 test -d "$lt_sys_path" && \ 10814 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10815 fi 10816 done 10817 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10818BEGIN {RS = " "; FS = "/|\n";} { 10819 lt_foo = ""; 10820 lt_count = 0; 10821 for (lt_i = NF; lt_i > 0; lt_i--) { 10822 if ($lt_i != "" && $lt_i != ".") { 10823 if ($lt_i == "..") { 10824 lt_count++; 10825 } else { 10826 if (lt_count == 0) { 10827 lt_foo = "/" $lt_i lt_foo; 10828 } else { 10829 lt_count--; 10830 } 10831 } 10832 } 10833 } 10834 if (lt_foo != "") { lt_freq[lt_foo]++; } 10835 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10836}'` 10837 # AWK program above erroneously prepends '/' to C:/dos/paths 10838 # for these hosts. 10839 case $host_os in 10840 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10841 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10842 esac 10843 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10844else 10845 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10846fi 10847library_names_spec= 10848libname_spec='lib$name' 10849soname_spec= 10850shrext_cmds=.so 10851postinstall_cmds= 10852postuninstall_cmds= 10853finish_cmds= 10854finish_eval= 10855shlibpath_var= 10856shlibpath_overrides_runpath=unknown 10857version_type=none 10858dynamic_linker="$host_os ld.so" 10859sys_lib_dlsearch_path_spec="/lib /usr/lib" 10860need_lib_prefix=unknown 10861hardcode_into_libs=no 10862 10863# when you set need_version to no, make sure it does not cause -set_version 10864# flags to be left without arguments 10865need_version=unknown 10866 10867 10868 10869case $host_os in 10870aix3*) 10871 version_type=linux # correct to gnu/linux during the next big refactor 10872 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10873 shlibpath_var=LIBPATH 10874 10875 # AIX 3 has no versioning support, so we append a major version to the name. 10876 soname_spec='$libname$release$shared_ext$major' 10877 ;; 10878 10879aix[4-9]*) 10880 version_type=linux # correct to gnu/linux during the next big refactor 10881 need_lib_prefix=no 10882 need_version=no 10883 hardcode_into_libs=yes 10884 if test ia64 = "$host_cpu"; then 10885 # AIX 5 supports IA64 10886 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10887 shlibpath_var=LD_LIBRARY_PATH 10888 else 10889 # With GCC up to 2.95.x, collect2 would create an import file 10890 # for dependence libraries. The import file would start with 10891 # the line '#! .'. This would cause the generated library to 10892 # depend on '.', always an invalid library. This was fixed in 10893 # development snapshots of GCC prior to 3.0. 10894 case $host_os in 10895 aix4 | aix4.[01] | aix4.[01].*) 10896 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10897 echo ' yes ' 10898 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10899 : 10900 else 10901 can_build_shared=no 10902 fi 10903 ;; 10904 esac 10905 # Using Import Files as archive members, it is possible to support 10906 # filename-based versioning of shared library archives on AIX. While 10907 # this would work for both with and without runtime linking, it will 10908 # prevent static linking of such archives. So we do filename-based 10909 # shared library versioning with .so extension only, which is used 10910 # when both runtime linking and shared linking is enabled. 10911 # Unfortunately, runtime linking may impact performance, so we do 10912 # not want this to be the default eventually. Also, we use the 10913 # versioned .so libs for executables only if there is the -brtl 10914 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10915 # To allow for filename-based versioning support, we need to create 10916 # libNAME.so.V as an archive file, containing: 10917 # *) an Import File, referring to the versioned filename of the 10918 # archive as well as the shared archive member, telling the 10919 # bitwidth (32 or 64) of that shared object, and providing the 10920 # list of exported symbols of that shared object, eventually 10921 # decorated with the 'weak' keyword 10922 # *) the shared object with the F_LOADONLY flag set, to really avoid 10923 # it being seen by the linker. 10924 # At run time we better use the real file rather than another symlink, 10925 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10926 10927 case $with_aix_soname,$aix_use_runtimelinking in 10928 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10929 # soname into executable. Probably we can add versioning support to 10930 # collect2, so additional links can be useful in future. 10931 aix,yes) # traditional libtool 10932 dynamic_linker='AIX unversionable lib.so' 10933 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10934 # instead of lib<name>.a to let people know that these are not 10935 # typical AIX shared libraries. 10936 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10937 ;; 10938 aix,no) # traditional AIX only 10939 dynamic_linker='AIX lib.a(lib.so.V)' 10940 # We preserve .a as extension for shared libraries through AIX4.2 10941 # and later when we are not doing run time linking. 10942 library_names_spec='$libname$release.a $libname.a' 10943 soname_spec='$libname$release$shared_ext$major' 10944 ;; 10945 svr4,*) # full svr4 only 10946 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10947 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10948 # We do not specify a path in Import Files, so LIBPATH fires. 10949 shlibpath_overrides_runpath=yes 10950 ;; 10951 *,yes) # both, prefer svr4 10952 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10953 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10954 # unpreferred sharedlib libNAME.a needs extra handling 10955 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 10956 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 10957 # We do not specify a path in Import Files, so LIBPATH fires. 10958 shlibpath_overrides_runpath=yes 10959 ;; 10960 *,no) # both, prefer aix 10961 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10962 library_names_spec='$libname$release.a $libname.a' 10963 soname_spec='$libname$release$shared_ext$major' 10964 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10965 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 10966 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 10967 ;; 10968 esac 10969 shlibpath_var=LIBPATH 10970 fi 10971 ;; 10972 10973amigaos*) 10974 case $host_cpu in 10975 powerpc) 10976 # Since July 2007 AmigaOS4 officially supports .so libraries. 10977 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10978 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10979 ;; 10980 m68k) 10981 library_names_spec='$libname.ixlibrary $libname.a' 10982 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10983 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10984 ;; 10985 esac 10986 ;; 10987 10988beos*) 10989 library_names_spec='$libname$shared_ext' 10990 dynamic_linker="$host_os ld.so" 10991 shlibpath_var=LIBRARY_PATH 10992 ;; 10993 10994bsdi[45]*) 10995 version_type=linux # correct to gnu/linux during the next big refactor 10996 need_version=no 10997 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10998 soname_spec='$libname$release$shared_ext$major' 10999 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11000 shlibpath_var=LD_LIBRARY_PATH 11001 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11002 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11003 # the default ld.so.conf also contains /usr/contrib/lib and 11004 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11005 # libtool to hard-code these into programs 11006 ;; 11007 11008cygwin* | mingw* | pw32* | cegcc*) 11009 version_type=windows 11010 shrext_cmds=.dll 11011 need_version=no 11012 need_lib_prefix=no 11013 11014 case $GCC,$cc_basename in 11015 yes,*) 11016 # gcc 11017 library_names_spec='$libname.dll.a' 11018 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11019 postinstall_cmds='base_file=`basename \$file`~ 11020 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11021 dldir=$destdir/`dirname \$dlpath`~ 11022 test -d \$dldir || mkdir -p \$dldir~ 11023 $install_prog $dir/$dlname \$dldir/$dlname~ 11024 chmod a+x \$dldir/$dlname~ 11025 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11026 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11027 fi' 11028 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11029 dlpath=$dir/\$dldll~ 11030 $RM \$dlpath' 11031 shlibpath_overrides_runpath=yes 11032 11033 case $host_os in 11034 cygwin*) 11035 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11036 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11037 11038 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11039 ;; 11040 mingw* | cegcc*) 11041 # MinGW DLLs use traditional 'lib' prefix 11042 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11043 ;; 11044 pw32*) 11045 # pw32 DLLs use 'pw' prefix rather than 'lib' 11046 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11047 ;; 11048 esac 11049 dynamic_linker='Win32 ld.exe' 11050 ;; 11051 11052 *,cl*) 11053 # Native MSVC 11054 libname_spec='$name' 11055 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11056 library_names_spec='$libname.dll.lib' 11057 11058 case $build_os in 11059 mingw*) 11060 sys_lib_search_path_spec= 11061 lt_save_ifs=$IFS 11062 IFS=';' 11063 for lt_path in $LIB 11064 do 11065 IFS=$lt_save_ifs 11066 # Let DOS variable expansion print the short 8.3 style file name. 11067 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11068 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11069 done 11070 IFS=$lt_save_ifs 11071 # Convert to MSYS style. 11072 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11073 ;; 11074 cygwin*) 11075 # Convert to unix form, then to dos form, then back to unix form 11076 # but this time dos style (no spaces!) so that the unix form looks 11077 # like /cygdrive/c/PROGRA~1:/cygdr... 11078 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11079 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11080 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11081 ;; 11082 *) 11083 sys_lib_search_path_spec=$LIB 11084 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11085 # It is most probably a Windows format PATH. 11086 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11087 else 11088 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11089 fi 11090 # FIXME: find the short name or the path components, as spaces are 11091 # common. (e.g. "Program Files" -> "PROGRA~1") 11092 ;; 11093 esac 11094 11095 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11096 postinstall_cmds='base_file=`basename \$file`~ 11097 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11098 dldir=$destdir/`dirname \$dlpath`~ 11099 test -d \$dldir || mkdir -p \$dldir~ 11100 $install_prog $dir/$dlname \$dldir/$dlname' 11101 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11102 dlpath=$dir/\$dldll~ 11103 $RM \$dlpath' 11104 shlibpath_overrides_runpath=yes 11105 dynamic_linker='Win32 link.exe' 11106 ;; 11107 11108 *) 11109 # Assume MSVC wrapper 11110 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11111 dynamic_linker='Win32 ld.exe' 11112 ;; 11113 esac 11114 # FIXME: first we should search . and the directory the executable is in 11115 shlibpath_var=PATH 11116 ;; 11117 11118darwin* | rhapsody*) 11119 dynamic_linker="$host_os dyld" 11120 version_type=darwin 11121 need_lib_prefix=no 11122 need_version=no 11123 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11124 soname_spec='$libname$release$major$shared_ext' 11125 shlibpath_overrides_runpath=yes 11126 shlibpath_var=DYLD_LIBRARY_PATH 11127 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11128 11129 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11130 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11131 ;; 11132 11133dgux*) 11134 version_type=linux # correct to gnu/linux during the next big refactor 11135 need_lib_prefix=no 11136 need_version=no 11137 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11138 soname_spec='$libname$release$shared_ext$major' 11139 shlibpath_var=LD_LIBRARY_PATH 11140 ;; 11141 11142freebsd* | dragonfly*) 11143 # DragonFly does not have aout. When/if they implement a new 11144 # versioning mechanism, adjust this. 11145 if test -x /usr/bin/objformat; then 11146 objformat=`/usr/bin/objformat` 11147 else 11148 case $host_os in 11149 freebsd[23].*) objformat=aout ;; 11150 *) objformat=elf ;; 11151 esac 11152 fi 11153 version_type=freebsd-$objformat 11154 case $version_type in 11155 freebsd-elf*) 11156 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11157 soname_spec='$libname$release$shared_ext$major' 11158 need_version=no 11159 need_lib_prefix=no 11160 ;; 11161 freebsd-*) 11162 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11163 need_version=yes 11164 ;; 11165 esac 11166 shlibpath_var=LD_LIBRARY_PATH 11167 case $host_os in 11168 freebsd2.*) 11169 shlibpath_overrides_runpath=yes 11170 ;; 11171 freebsd3.[01]* | freebsdelf3.[01]*) 11172 shlibpath_overrides_runpath=yes 11173 hardcode_into_libs=yes 11174 ;; 11175 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11176 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11177 shlibpath_overrides_runpath=no 11178 hardcode_into_libs=yes 11179 ;; 11180 *) # from 4.6 on, and DragonFly 11181 shlibpath_overrides_runpath=yes 11182 hardcode_into_libs=yes 11183 ;; 11184 esac 11185 ;; 11186 11187haiku*) 11188 version_type=linux # correct to gnu/linux during the next big refactor 11189 need_lib_prefix=no 11190 need_version=no 11191 dynamic_linker="$host_os runtime_loader" 11192 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11193 soname_spec='$libname$release$shared_ext$major' 11194 shlibpath_var=LIBRARY_PATH 11195 shlibpath_overrides_runpath=no 11196 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11197 hardcode_into_libs=yes 11198 ;; 11199 11200hpux9* | hpux10* | hpux11*) 11201 # Give a soname corresponding to the major version so that dld.sl refuses to 11202 # link against other versions. 11203 version_type=sunos 11204 need_lib_prefix=no 11205 need_version=no 11206 case $host_cpu in 11207 ia64*) 11208 shrext_cmds='.so' 11209 hardcode_into_libs=yes 11210 dynamic_linker="$host_os dld.so" 11211 shlibpath_var=LD_LIBRARY_PATH 11212 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11213 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11214 soname_spec='$libname$release$shared_ext$major' 11215 if test 32 = "$HPUX_IA64_MODE"; then 11216 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11217 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11218 else 11219 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11220 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11221 fi 11222 ;; 11223 hppa*64*) 11224 shrext_cmds='.sl' 11225 hardcode_into_libs=yes 11226 dynamic_linker="$host_os dld.sl" 11227 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11228 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11229 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11230 soname_spec='$libname$release$shared_ext$major' 11231 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11232 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11233 ;; 11234 *) 11235 shrext_cmds='.sl' 11236 dynamic_linker="$host_os dld.sl" 11237 shlibpath_var=SHLIB_PATH 11238 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11239 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11240 soname_spec='$libname$release$shared_ext$major' 11241 ;; 11242 esac 11243 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11244 postinstall_cmds='chmod 555 $lib' 11245 # or fails outright, so override atomically: 11246 install_override_mode=555 11247 ;; 11248 11249interix[3-9]*) 11250 version_type=linux # correct to gnu/linux during the next big refactor 11251 need_lib_prefix=no 11252 need_version=no 11253 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11254 soname_spec='$libname$release$shared_ext$major' 11255 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11256 shlibpath_var=LD_LIBRARY_PATH 11257 shlibpath_overrides_runpath=no 11258 hardcode_into_libs=yes 11259 ;; 11260 11261irix5* | irix6* | nonstopux*) 11262 case $host_os in 11263 nonstopux*) version_type=nonstopux ;; 11264 *) 11265 if test yes = "$lt_cv_prog_gnu_ld"; then 11266 version_type=linux # correct to gnu/linux during the next big refactor 11267 else 11268 version_type=irix 11269 fi ;; 11270 esac 11271 need_lib_prefix=no 11272 need_version=no 11273 soname_spec='$libname$release$shared_ext$major' 11274 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11275 case $host_os in 11276 irix5* | nonstopux*) 11277 libsuff= shlibsuff= 11278 ;; 11279 *) 11280 case $LD in # libtool.m4 will add one of these switches to LD 11281 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11282 libsuff= shlibsuff= libmagic=32-bit;; 11283 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11284 libsuff=32 shlibsuff=N32 libmagic=N32;; 11285 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11286 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11287 *) libsuff= shlibsuff= libmagic=never-match;; 11288 esac 11289 ;; 11290 esac 11291 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11292 shlibpath_overrides_runpath=no 11293 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11294 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11295 hardcode_into_libs=yes 11296 ;; 11297 11298# No shared lib support for Linux oldld, aout, or coff. 11299linux*oldld* | linux*aout* | linux*coff*) 11300 dynamic_linker=no 11301 ;; 11302 11303linux*android*) 11304 version_type=none # Android doesn't support versioned libraries. 11305 need_lib_prefix=no 11306 need_version=no 11307 library_names_spec='$libname$release$shared_ext' 11308 soname_spec='$libname$release$shared_ext' 11309 finish_cmds= 11310 shlibpath_var=LD_LIBRARY_PATH 11311 shlibpath_overrides_runpath=yes 11312 11313 # This implies no fast_install, which is unacceptable. 11314 # Some rework will be needed to allow for fast_install 11315 # before this can be enabled. 11316 hardcode_into_libs=yes 11317 11318 dynamic_linker='Android linker' 11319 # Don't embed -rpath directories since the linker doesn't support them. 11320 hardcode_libdir_flag_spec='-L$libdir' 11321 ;; 11322 11323# This must be glibc/ELF. 11324linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11325 version_type=linux # correct to gnu/linux during the next big refactor 11326 need_lib_prefix=no 11327 need_version=no 11328 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11329 soname_spec='$libname$release$shared_ext$major' 11330 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11331 shlibpath_var=LD_LIBRARY_PATH 11332 shlibpath_overrides_runpath=no 11333 11334 # Some binutils ld are patched to set DT_RUNPATH 11335 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11336 $as_echo_n "(cached) " >&6 11337else 11338 lt_cv_shlibpath_overrides_runpath=no 11339 save_LDFLAGS=$LDFLAGS 11340 save_libdir=$libdir 11341 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11342 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11344/* end confdefs.h. */ 11345 11346int 11347main () 11348{ 11349 11350 ; 11351 return 0; 11352} 11353_ACEOF 11354if ac_fn_c_try_link "$LINENO"; then : 11355 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11356 lt_cv_shlibpath_overrides_runpath=yes 11357fi 11358fi 11359rm -f core conftest.err conftest.$ac_objext \ 11360 conftest$ac_exeext conftest.$ac_ext 11361 LDFLAGS=$save_LDFLAGS 11362 libdir=$save_libdir 11363 11364fi 11365 11366 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11367 11368 # This implies no fast_install, which is unacceptable. 11369 # Some rework will be needed to allow for fast_install 11370 # before this can be enabled. 11371 hardcode_into_libs=yes 11372 11373 # Ideally, we could use ldconfig to report *all* directores which are 11374 # searched for libraries, however this is still not possible. Aside from not 11375 # being certain /sbin/ldconfig is available, command 11376 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11377 # even though it is searched at run-time. Try to do the best guess by 11378 # appending ld.so.conf contents (and includes) to the search path. 11379 if test -f /etc/ld.so.conf; then 11380 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' ' '` 11381 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11382 fi 11383 11384 # We used to test for /lib/ld.so.1 and disable shared libraries on 11385 # powerpc, because MkLinux only supported shared libraries with the 11386 # GNU dynamic linker. Since this was broken with cross compilers, 11387 # most powerpc-linux boxes support dynamic linking these days and 11388 # people can always --disable-shared, the test was removed, and we 11389 # assume the GNU/Linux dynamic linker is in use. 11390 dynamic_linker='GNU/Linux ld.so' 11391 ;; 11392 11393netbsd*) 11394 version_type=sunos 11395 need_lib_prefix=no 11396 need_version=no 11397 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11398 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11399 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11400 dynamic_linker='NetBSD (a.out) ld.so' 11401 else 11402 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11403 soname_spec='$libname$release$shared_ext$major' 11404 dynamic_linker='NetBSD ld.elf_so' 11405 fi 11406 shlibpath_var=LD_LIBRARY_PATH 11407 shlibpath_overrides_runpath=yes 11408 hardcode_into_libs=yes 11409 ;; 11410 11411newsos6) 11412 version_type=linux # correct to gnu/linux during the next big refactor 11413 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11414 shlibpath_var=LD_LIBRARY_PATH 11415 shlibpath_overrides_runpath=yes 11416 ;; 11417 11418*nto* | *qnx*) 11419 version_type=qnx 11420 need_lib_prefix=no 11421 need_version=no 11422 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11423 soname_spec='$libname$release$shared_ext$major' 11424 shlibpath_var=LD_LIBRARY_PATH 11425 shlibpath_overrides_runpath=no 11426 hardcode_into_libs=yes 11427 dynamic_linker='ldqnx.so' 11428 ;; 11429 11430openbsd* | bitrig*) 11431 version_type=sunos 11432 sys_lib_dlsearch_path_spec=/usr/lib 11433 need_lib_prefix=no 11434 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11435 need_version=no 11436 else 11437 need_version=yes 11438 fi 11439 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11440 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11441 shlibpath_var=LD_LIBRARY_PATH 11442 shlibpath_overrides_runpath=yes 11443 ;; 11444 11445os2*) 11446 libname_spec='$name' 11447 version_type=windows 11448 shrext_cmds=.dll 11449 need_version=no 11450 need_lib_prefix=no 11451 # OS/2 can only load a DLL with a base name of 8 characters or less. 11452 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11453 v=$($ECHO $release$versuffix | tr -d .-); 11454 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11455 $ECHO $n$v`$shared_ext' 11456 library_names_spec='${libname}_dll.$libext' 11457 dynamic_linker='OS/2 ld.exe' 11458 shlibpath_var=BEGINLIBPATH 11459 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11460 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11461 postinstall_cmds='base_file=`basename \$file`~ 11462 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11463 dldir=$destdir/`dirname \$dlpath`~ 11464 test -d \$dldir || mkdir -p \$dldir~ 11465 $install_prog $dir/$dlname \$dldir/$dlname~ 11466 chmod a+x \$dldir/$dlname~ 11467 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11468 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11469 fi' 11470 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11471 dlpath=$dir/\$dldll~ 11472 $RM \$dlpath' 11473 ;; 11474 11475osf3* | osf4* | osf5*) 11476 version_type=osf 11477 need_lib_prefix=no 11478 need_version=no 11479 soname_spec='$libname$release$shared_ext$major' 11480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11481 shlibpath_var=LD_LIBRARY_PATH 11482 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11483 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11484 ;; 11485 11486rdos*) 11487 dynamic_linker=no 11488 ;; 11489 11490solaris*) 11491 version_type=linux # correct to gnu/linux during the next big refactor 11492 need_lib_prefix=no 11493 need_version=no 11494 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11495 soname_spec='$libname$release$shared_ext$major' 11496 shlibpath_var=LD_LIBRARY_PATH 11497 shlibpath_overrides_runpath=yes 11498 hardcode_into_libs=yes 11499 # ldd complains unless libraries are executable 11500 postinstall_cmds='chmod +x $lib' 11501 ;; 11502 11503sunos4*) 11504 version_type=sunos 11505 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11506 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11507 shlibpath_var=LD_LIBRARY_PATH 11508 shlibpath_overrides_runpath=yes 11509 if test yes = "$with_gnu_ld"; then 11510 need_lib_prefix=no 11511 fi 11512 need_version=yes 11513 ;; 11514 11515sysv4 | sysv4.3*) 11516 version_type=linux # correct to gnu/linux during the next big refactor 11517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11518 soname_spec='$libname$release$shared_ext$major' 11519 shlibpath_var=LD_LIBRARY_PATH 11520 case $host_vendor in 11521 sni) 11522 shlibpath_overrides_runpath=no 11523 need_lib_prefix=no 11524 runpath_var=LD_RUN_PATH 11525 ;; 11526 siemens) 11527 need_lib_prefix=no 11528 ;; 11529 motorola) 11530 need_lib_prefix=no 11531 need_version=no 11532 shlibpath_overrides_runpath=no 11533 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11534 ;; 11535 esac 11536 ;; 11537 11538sysv4*MP*) 11539 if test -d /usr/nec; then 11540 version_type=linux # correct to gnu/linux during the next big refactor 11541 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11542 soname_spec='$libname$shared_ext.$major' 11543 shlibpath_var=LD_LIBRARY_PATH 11544 fi 11545 ;; 11546 11547sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11548 version_type=sco 11549 need_lib_prefix=no 11550 need_version=no 11551 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11552 soname_spec='$libname$release$shared_ext$major' 11553 shlibpath_var=LD_LIBRARY_PATH 11554 shlibpath_overrides_runpath=yes 11555 hardcode_into_libs=yes 11556 if test yes = "$with_gnu_ld"; then 11557 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11558 else 11559 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11560 case $host_os in 11561 sco3.2v5*) 11562 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11563 ;; 11564 esac 11565 fi 11566 sys_lib_dlsearch_path_spec='/usr/lib' 11567 ;; 11568 11569tpf*) 11570 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11571 version_type=linux # correct to gnu/linux during the next big refactor 11572 need_lib_prefix=no 11573 need_version=no 11574 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11575 shlibpath_var=LD_LIBRARY_PATH 11576 shlibpath_overrides_runpath=no 11577 hardcode_into_libs=yes 11578 ;; 11579 11580uts4*) 11581 version_type=linux # correct to gnu/linux during the next big refactor 11582 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11583 soname_spec='$libname$release$shared_ext$major' 11584 shlibpath_var=LD_LIBRARY_PATH 11585 ;; 11586 11587*) 11588 dynamic_linker=no 11589 ;; 11590esac 11591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11592$as_echo "$dynamic_linker" >&6; } 11593test no = "$dynamic_linker" && can_build_shared=no 11594 11595variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11596if test yes = "$GCC"; then 11597 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11598fi 11599 11600if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11601 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11602fi 11603 11604if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11605 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11606fi 11607 11608# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11609configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11610 11611# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11612func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11613 11614# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11615configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11714$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11715hardcode_action= 11716if test -n "$hardcode_libdir_flag_spec" || 11717 test -n "$runpath_var" || 11718 test yes = "$hardcode_automatic"; then 11719 11720 # We can hardcode non-existent directories. 11721 if test no != "$hardcode_direct" && 11722 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11723 # have to relink, otherwise we might link with an installed library 11724 # when we should be linking with a yet-to-be-installed one 11725 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11726 test no != "$hardcode_minus_L"; then 11727 # Linking always hardcodes the temporary library directory. 11728 hardcode_action=relink 11729 else 11730 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11731 hardcode_action=immediate 11732 fi 11733else 11734 # We cannot hardcode anything, or else we can only hardcode existing 11735 # directories. 11736 hardcode_action=unsupported 11737fi 11738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11739$as_echo "$hardcode_action" >&6; } 11740 11741if test relink = "$hardcode_action" || 11742 test yes = "$inherit_rpath"; then 11743 # Fast installation is not supported 11744 enable_fast_install=no 11745elif test yes = "$shlibpath_overrides_runpath" || 11746 test no = "$enable_shared"; then 11747 # Fast installation is not necessary 11748 enable_fast_install=needless 11749fi 11750 11751 11752 11753 11754 11755 11756 if test yes != "$enable_dlopen"; then 11757 enable_dlopen=unknown 11758 enable_dlopen_self=unknown 11759 enable_dlopen_self_static=unknown 11760else 11761 lt_cv_dlopen=no 11762 lt_cv_dlopen_libs= 11763 11764 case $host_os in 11765 beos*) 11766 lt_cv_dlopen=load_add_on 11767 lt_cv_dlopen_libs= 11768 lt_cv_dlopen_self=yes 11769 ;; 11770 11771 mingw* | pw32* | cegcc*) 11772 lt_cv_dlopen=LoadLibrary 11773 lt_cv_dlopen_libs= 11774 ;; 11775 11776 cygwin*) 11777 lt_cv_dlopen=dlopen 11778 lt_cv_dlopen_libs= 11779 ;; 11780 11781 darwin*) 11782 # if libdl is installed we need to link against it 11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11784$as_echo_n "checking for dlopen in -ldl... " >&6; } 11785if ${ac_cv_lib_dl_dlopen+:} false; then : 11786 $as_echo_n "(cached) " >&6 11787else 11788 ac_check_lib_save_LIBS=$LIBS 11789LIBS="-ldl $LIBS" 11790cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11791/* end confdefs.h. */ 11792 11793/* Override any GCC internal prototype to avoid an error. 11794 Use char because int might match the return type of a GCC 11795 builtin and then its argument prototype would still apply. */ 11796#ifdef __cplusplus 11797extern "C" 11798#endif 11799char dlopen (); 11800int 11801main () 11802{ 11803return dlopen (); 11804 ; 11805 return 0; 11806} 11807_ACEOF 11808if ac_fn_c_try_link "$LINENO"; then : 11809 ac_cv_lib_dl_dlopen=yes 11810else 11811 ac_cv_lib_dl_dlopen=no 11812fi 11813rm -f core conftest.err conftest.$ac_objext \ 11814 conftest$ac_exeext conftest.$ac_ext 11815LIBS=$ac_check_lib_save_LIBS 11816fi 11817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11818$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11819if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11820 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11821else 11822 11823 lt_cv_dlopen=dyld 11824 lt_cv_dlopen_libs= 11825 lt_cv_dlopen_self=yes 11826 11827fi 11828 11829 ;; 11830 11831 tpf*) 11832 # Don't try to run any link tests for TPF. We know it's impossible 11833 # because TPF is a cross-compiler, and we know how we open DSOs. 11834 lt_cv_dlopen=dlopen 11835 lt_cv_dlopen_libs= 11836 lt_cv_dlopen_self=no 11837 ;; 11838 11839 *) 11840 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11841if test "x$ac_cv_func_shl_load" = xyes; then : 11842 lt_cv_dlopen=shl_load 11843else 11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11845$as_echo_n "checking for shl_load in -ldld... " >&6; } 11846if ${ac_cv_lib_dld_shl_load+:} false; then : 11847 $as_echo_n "(cached) " >&6 11848else 11849 ac_check_lib_save_LIBS=$LIBS 11850LIBS="-ldld $LIBS" 11851cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11852/* end confdefs.h. */ 11853 11854/* Override any GCC internal prototype to avoid an error. 11855 Use char because int might match the return type of a GCC 11856 builtin and then its argument prototype would still apply. */ 11857#ifdef __cplusplus 11858extern "C" 11859#endif 11860char shl_load (); 11861int 11862main () 11863{ 11864return shl_load (); 11865 ; 11866 return 0; 11867} 11868_ACEOF 11869if ac_fn_c_try_link "$LINENO"; then : 11870 ac_cv_lib_dld_shl_load=yes 11871else 11872 ac_cv_lib_dld_shl_load=no 11873fi 11874rm -f core conftest.err conftest.$ac_objext \ 11875 conftest$ac_exeext conftest.$ac_ext 11876LIBS=$ac_check_lib_save_LIBS 11877fi 11878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11879$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11880if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11881 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11882else 11883 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11884if test "x$ac_cv_func_dlopen" = xyes; then : 11885 lt_cv_dlopen=dlopen 11886else 11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11888$as_echo_n "checking for dlopen in -ldl... " >&6; } 11889if ${ac_cv_lib_dl_dlopen+:} false; then : 11890 $as_echo_n "(cached) " >&6 11891else 11892 ac_check_lib_save_LIBS=$LIBS 11893LIBS="-ldl $LIBS" 11894cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11895/* end confdefs.h. */ 11896 11897/* Override any GCC internal prototype to avoid an error. 11898 Use char because int might match the return type of a GCC 11899 builtin and then its argument prototype would still apply. */ 11900#ifdef __cplusplus 11901extern "C" 11902#endif 11903char dlopen (); 11904int 11905main () 11906{ 11907return dlopen (); 11908 ; 11909 return 0; 11910} 11911_ACEOF 11912if ac_fn_c_try_link "$LINENO"; then : 11913 ac_cv_lib_dl_dlopen=yes 11914else 11915 ac_cv_lib_dl_dlopen=no 11916fi 11917rm -f core conftest.err conftest.$ac_objext \ 11918 conftest$ac_exeext conftest.$ac_ext 11919LIBS=$ac_check_lib_save_LIBS 11920fi 11921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11922$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11923if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11924 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11925else 11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11927$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11928if ${ac_cv_lib_svld_dlopen+:} false; then : 11929 $as_echo_n "(cached) " >&6 11930else 11931 ac_check_lib_save_LIBS=$LIBS 11932LIBS="-lsvld $LIBS" 11933cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11934/* end confdefs.h. */ 11935 11936/* Override any GCC internal prototype to avoid an error. 11937 Use char because int might match the return type of a GCC 11938 builtin and then its argument prototype would still apply. */ 11939#ifdef __cplusplus 11940extern "C" 11941#endif 11942char dlopen (); 11943int 11944main () 11945{ 11946return dlopen (); 11947 ; 11948 return 0; 11949} 11950_ACEOF 11951if ac_fn_c_try_link "$LINENO"; then : 11952 ac_cv_lib_svld_dlopen=yes 11953else 11954 ac_cv_lib_svld_dlopen=no 11955fi 11956rm -f core conftest.err conftest.$ac_objext \ 11957 conftest$ac_exeext conftest.$ac_ext 11958LIBS=$ac_check_lib_save_LIBS 11959fi 11960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11961$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11962if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11963 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11964else 11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11966$as_echo_n "checking for dld_link in -ldld... " >&6; } 11967if ${ac_cv_lib_dld_dld_link+:} false; then : 11968 $as_echo_n "(cached) " >&6 11969else 11970 ac_check_lib_save_LIBS=$LIBS 11971LIBS="-ldld $LIBS" 11972cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11973/* end confdefs.h. */ 11974 11975/* Override any GCC internal prototype to avoid an error. 11976 Use char because int might match the return type of a GCC 11977 builtin and then its argument prototype would still apply. */ 11978#ifdef __cplusplus 11979extern "C" 11980#endif 11981char dld_link (); 11982int 11983main () 11984{ 11985return dld_link (); 11986 ; 11987 return 0; 11988} 11989_ACEOF 11990if ac_fn_c_try_link "$LINENO"; then : 11991 ac_cv_lib_dld_dld_link=yes 11992else 11993 ac_cv_lib_dld_dld_link=no 11994fi 11995rm -f core conftest.err conftest.$ac_objext \ 11996 conftest$ac_exeext conftest.$ac_ext 11997LIBS=$ac_check_lib_save_LIBS 11998fi 11999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12000$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12001if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12002 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12003fi 12004 12005 12006fi 12007 12008 12009fi 12010 12011 12012fi 12013 12014 12015fi 12016 12017 12018fi 12019 12020 ;; 12021 esac 12022 12023 if test no = "$lt_cv_dlopen"; then 12024 enable_dlopen=no 12025 else 12026 enable_dlopen=yes 12027 fi 12028 12029 case $lt_cv_dlopen in 12030 dlopen) 12031 save_CPPFLAGS=$CPPFLAGS 12032 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12033 12034 save_LDFLAGS=$LDFLAGS 12035 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12036 12037 save_LIBS=$LIBS 12038 LIBS="$lt_cv_dlopen_libs $LIBS" 12039 12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12041$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12042if ${lt_cv_dlopen_self+:} false; then : 12043 $as_echo_n "(cached) " >&6 12044else 12045 if test yes = "$cross_compiling"; then : 12046 lt_cv_dlopen_self=cross 12047else 12048 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12049 lt_status=$lt_dlunknown 12050 cat > conftest.$ac_ext <<_LT_EOF 12051#line $LINENO "configure" 12052#include "confdefs.h" 12053 12054#if HAVE_DLFCN_H 12055#include <dlfcn.h> 12056#endif 12057 12058#include <stdio.h> 12059 12060#ifdef RTLD_GLOBAL 12061# define LT_DLGLOBAL RTLD_GLOBAL 12062#else 12063# ifdef DL_GLOBAL 12064# define LT_DLGLOBAL DL_GLOBAL 12065# else 12066# define LT_DLGLOBAL 0 12067# endif 12068#endif 12069 12070/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12071 find out it does not work in some platform. */ 12072#ifndef LT_DLLAZY_OR_NOW 12073# ifdef RTLD_LAZY 12074# define LT_DLLAZY_OR_NOW RTLD_LAZY 12075# else 12076# ifdef DL_LAZY 12077# define LT_DLLAZY_OR_NOW DL_LAZY 12078# else 12079# ifdef RTLD_NOW 12080# define LT_DLLAZY_OR_NOW RTLD_NOW 12081# else 12082# ifdef DL_NOW 12083# define LT_DLLAZY_OR_NOW DL_NOW 12084# else 12085# define LT_DLLAZY_OR_NOW 0 12086# endif 12087# endif 12088# endif 12089# endif 12090#endif 12091 12092/* When -fvisibility=hidden is used, assume the code has been annotated 12093 correspondingly for the symbols needed. */ 12094#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12095int fnord () __attribute__((visibility("default"))); 12096#endif 12097 12098int fnord () { return 42; } 12099int main () 12100{ 12101 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12102 int status = $lt_dlunknown; 12103 12104 if (self) 12105 { 12106 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12107 else 12108 { 12109 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12110 else puts (dlerror ()); 12111 } 12112 /* dlclose (self); */ 12113 } 12114 else 12115 puts (dlerror ()); 12116 12117 return status; 12118} 12119_LT_EOF 12120 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12121 (eval $ac_link) 2>&5 12122 ac_status=$? 12123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12124 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12125 (./conftest; exit; ) >&5 2>/dev/null 12126 lt_status=$? 12127 case x$lt_status in 12128 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12129 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12130 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12131 esac 12132 else : 12133 # compilation failed 12134 lt_cv_dlopen_self=no 12135 fi 12136fi 12137rm -fr conftest* 12138 12139 12140fi 12141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12142$as_echo "$lt_cv_dlopen_self" >&6; } 12143 12144 if test yes = "$lt_cv_dlopen_self"; then 12145 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12147$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12148if ${lt_cv_dlopen_self_static+:} false; then : 12149 $as_echo_n "(cached) " >&6 12150else 12151 if test yes = "$cross_compiling"; then : 12152 lt_cv_dlopen_self_static=cross 12153else 12154 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12155 lt_status=$lt_dlunknown 12156 cat > conftest.$ac_ext <<_LT_EOF 12157#line $LINENO "configure" 12158#include "confdefs.h" 12159 12160#if HAVE_DLFCN_H 12161#include <dlfcn.h> 12162#endif 12163 12164#include <stdio.h> 12165 12166#ifdef RTLD_GLOBAL 12167# define LT_DLGLOBAL RTLD_GLOBAL 12168#else 12169# ifdef DL_GLOBAL 12170# define LT_DLGLOBAL DL_GLOBAL 12171# else 12172# define LT_DLGLOBAL 0 12173# endif 12174#endif 12175 12176/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12177 find out it does not work in some platform. */ 12178#ifndef LT_DLLAZY_OR_NOW 12179# ifdef RTLD_LAZY 12180# define LT_DLLAZY_OR_NOW RTLD_LAZY 12181# else 12182# ifdef DL_LAZY 12183# define LT_DLLAZY_OR_NOW DL_LAZY 12184# else 12185# ifdef RTLD_NOW 12186# define LT_DLLAZY_OR_NOW RTLD_NOW 12187# else 12188# ifdef DL_NOW 12189# define LT_DLLAZY_OR_NOW DL_NOW 12190# else 12191# define LT_DLLAZY_OR_NOW 0 12192# endif 12193# endif 12194# endif 12195# endif 12196#endif 12197 12198/* When -fvisibility=hidden is used, assume the code has been annotated 12199 correspondingly for the symbols needed. */ 12200#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12201int fnord () __attribute__((visibility("default"))); 12202#endif 12203 12204int fnord () { return 42; } 12205int main () 12206{ 12207 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12208 int status = $lt_dlunknown; 12209 12210 if (self) 12211 { 12212 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12213 else 12214 { 12215 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12216 else puts (dlerror ()); 12217 } 12218 /* dlclose (self); */ 12219 } 12220 else 12221 puts (dlerror ()); 12222 12223 return status; 12224} 12225_LT_EOF 12226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12227 (eval $ac_link) 2>&5 12228 ac_status=$? 12229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12230 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12231 (./conftest; exit; ) >&5 2>/dev/null 12232 lt_status=$? 12233 case x$lt_status in 12234 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12235 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12236 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12237 esac 12238 else : 12239 # compilation failed 12240 lt_cv_dlopen_self_static=no 12241 fi 12242fi 12243rm -fr conftest* 12244 12245 12246fi 12247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12248$as_echo "$lt_cv_dlopen_self_static" >&6; } 12249 fi 12250 12251 CPPFLAGS=$save_CPPFLAGS 12252 LDFLAGS=$save_LDFLAGS 12253 LIBS=$save_LIBS 12254 ;; 12255 esac 12256 12257 case $lt_cv_dlopen_self in 12258 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12259 *) enable_dlopen_self=unknown ;; 12260 esac 12261 12262 case $lt_cv_dlopen_self_static in 12263 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12264 *) enable_dlopen_self_static=unknown ;; 12265 esac 12266fi 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284striplib= 12285old_striplib= 12286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12287$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12288if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12289 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12290 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12292$as_echo "yes" >&6; } 12293else 12294# FIXME - insert some real tests, host_os isn't really good enough 12295 case $host_os in 12296 darwin*) 12297 if test -n "$STRIP"; then 12298 striplib="$STRIP -x" 12299 old_striplib="$STRIP -S" 12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12301$as_echo "yes" >&6; } 12302 else 12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12304$as_echo "no" >&6; } 12305 fi 12306 ;; 12307 *) 12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12309$as_echo "no" >&6; } 12310 ;; 12311 esac 12312fi 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 # Report what library types will actually be built 12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12327$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12329$as_echo "$can_build_shared" >&6; } 12330 12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12332$as_echo_n "checking whether to build shared libraries... " >&6; } 12333 test no = "$can_build_shared" && enable_shared=no 12334 12335 # On AIX, shared libraries and static libraries use the same namespace, and 12336 # are all built from PIC. 12337 case $host_os in 12338 aix3*) 12339 test yes = "$enable_shared" && enable_static=no 12340 if test -n "$RANLIB"; then 12341 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12342 postinstall_cmds='$RANLIB $lib' 12343 fi 12344 ;; 12345 12346 aix[4-9]*) 12347 if test ia64 != "$host_cpu"; then 12348 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12349 yes,aix,yes) ;; # shared object as lib.so file only 12350 yes,svr4,*) ;; # shared object as lib.so archive member only 12351 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12352 esac 12353 fi 12354 ;; 12355 esac 12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12357$as_echo "$enable_shared" >&6; } 12358 12359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12360$as_echo_n "checking whether to build static libraries... " >&6; } 12361 # Make sure either enable_shared or enable_static is yes. 12362 test yes = "$enable_shared" || enable_static=yes 12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12364$as_echo "$enable_static" >&6; } 12365 12366 12367 12368 12369fi 12370ac_ext=c 12371ac_cpp='$CPP $CPPFLAGS' 12372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12374ac_compiler_gnu=$ac_cv_c_compiler_gnu 12375 12376CC=$lt_save_CC 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 ac_config_commands="$ac_config_commands libtool" 12393 12394 12395 12396 12397# Only expand once: 12398 12399 12400 12401 12402# Checks for typedefs, structures, and compiler characteristics. 12403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 12404$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 12405if ${ac_cv_c_const+:} false; then : 12406 $as_echo_n "(cached) " >&6 12407else 12408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12409/* end confdefs.h. */ 12410 12411int 12412main () 12413{ 12414 12415#ifndef __cplusplus 12416 /* Ultrix mips cc rejects this sort of thing. */ 12417 typedef int charset[2]; 12418 const charset cs = { 0, 0 }; 12419 /* SunOS 4.1.1 cc rejects this. */ 12420 char const *const *pcpcc; 12421 char **ppc; 12422 /* NEC SVR4.0.2 mips cc rejects this. */ 12423 struct point {int x, y;}; 12424 static struct point const zero = {0,0}; 12425 /* AIX XL C 1.02.0.0 rejects this. 12426 It does not let you subtract one const X* pointer from another in 12427 an arm of an if-expression whose if-part is not a constant 12428 expression */ 12429 const char *g = "string"; 12430 pcpcc = &g + (g ? g-g : 0); 12431 /* HPUX 7.0 cc rejects these. */ 12432 ++pcpcc; 12433 ppc = (char**) pcpcc; 12434 pcpcc = (char const *const *) ppc; 12435 { /* SCO 3.2v4 cc rejects this sort of thing. */ 12436 char tx; 12437 char *t = &tx; 12438 char const *s = 0 ? (char *) 0 : (char const *) 0; 12439 12440 *t++ = 0; 12441 if (s) return 0; 12442 } 12443 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 12444 int x[] = {25, 17}; 12445 const int *foo = &x[0]; 12446 ++foo; 12447 } 12448 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 12449 typedef const int *iptr; 12450 iptr p = 0; 12451 ++p; 12452 } 12453 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 12454 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 12455 struct s { int j; const int *ap[3]; } bx; 12456 struct s *b = &bx; b->j = 5; 12457 } 12458 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 12459 const int foo = 10; 12460 if (!foo) return 0; 12461 } 12462 return !cs[0] && !zero.x; 12463#endif 12464 12465 ; 12466 return 0; 12467} 12468_ACEOF 12469if ac_fn_c_try_compile "$LINENO"; then : 12470 ac_cv_c_const=yes 12471else 12472 ac_cv_c_const=no 12473fi 12474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12475fi 12476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 12477$as_echo "$ac_cv_c_const" >&6; } 12478if test $ac_cv_c_const = no; then 12479 12480$as_echo "@%:@define const /**/" >>confdefs.h 12481 12482fi 12483 12484ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 12485if test "x$ac_cv_type_size_t" = xyes; then : 12486 12487else 12488 12489cat >>confdefs.h <<_ACEOF 12490@%:@define size_t unsigned int 12491_ACEOF 12492 12493fi 12494 12495 12496# Check for a windows build. 12497case $host in 12498 *mingw*|*cygwin*) windows=yes ;; 12499 *) windows=no ;; 12500esac 12501 if test "x$windows" = "xyes"; then 12502 WINDOWS_TRUE= 12503 WINDOWS_FALSE='#' 12504else 12505 WINDOWS_TRUE='#' 12506 WINDOWS_FALSE= 12507fi 12508 12509 12510# Checks for standard header files. 12511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12512$as_echo_n "checking for ANSI C header files... " >&6; } 12513if ${ac_cv_header_stdc+:} false; then : 12514 $as_echo_n "(cached) " >&6 12515else 12516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12517/* end confdefs.h. */ 12518#include <stdlib.h> 12519#include <stdarg.h> 12520#include <string.h> 12521#include <float.h> 12522 12523int 12524main () 12525{ 12526 12527 ; 12528 return 0; 12529} 12530_ACEOF 12531if ac_fn_c_try_compile "$LINENO"; then : 12532 ac_cv_header_stdc=yes 12533else 12534 ac_cv_header_stdc=no 12535fi 12536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12537 12538if test $ac_cv_header_stdc = yes; then 12539 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12541/* end confdefs.h. */ 12542#include <string.h> 12543 12544_ACEOF 12545if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12546 $EGREP "memchr" >/dev/null 2>&1; then : 12547 12548else 12549 ac_cv_header_stdc=no 12550fi 12551rm -f conftest* 12552 12553fi 12554 12555if test $ac_cv_header_stdc = yes; then 12556 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12558/* end confdefs.h. */ 12559#include <stdlib.h> 12560 12561_ACEOF 12562if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12563 $EGREP "free" >/dev/null 2>&1; then : 12564 12565else 12566 ac_cv_header_stdc=no 12567fi 12568rm -f conftest* 12569 12570fi 12571 12572if test $ac_cv_header_stdc = yes; then 12573 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12574 if test "$cross_compiling" = yes; then : 12575 : 12576else 12577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12578/* end confdefs.h. */ 12579#include <ctype.h> 12580#include <stdlib.h> 12581#if ((' ' & 0x0FF) == 0x020) 12582# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12583# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12584#else 12585# define ISLOWER(c) \ 12586 (('a' <= (c) && (c) <= 'i') \ 12587 || ('j' <= (c) && (c) <= 'r') \ 12588 || ('s' <= (c) && (c) <= 'z')) 12589# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12590#endif 12591 12592#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12593int 12594main () 12595{ 12596 int i; 12597 for (i = 0; i < 256; i++) 12598 if (XOR (islower (i), ISLOWER (i)) 12599 || toupper (i) != TOUPPER (i)) 12600 return 2; 12601 return 0; 12602} 12603_ACEOF 12604if ac_fn_c_try_run "$LINENO"; then : 12605 12606else 12607 ac_cv_header_stdc=no 12608fi 12609rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12610 conftest.$ac_objext conftest.beam conftest.$ac_ext 12611fi 12612 12613fi 12614fi 12615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 12616$as_echo "$ac_cv_header_stdc" >&6; } 12617if test $ac_cv_header_stdc = yes; then 12618 12619$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h 12620 12621fi 12622 12623 12624# Checks for standard headers and functions. 12625if test "x$windows" = "xno"; then 12626 for ac_header in netdb.h arpa/inet.h netinet/tcp.h netinet/in.h sys/socket.h unistd.h 12627do : 12628 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12629ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12630if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12631 cat >>confdefs.h <<_ACEOF 12632@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12633_ACEOF 12634 12635else 12636 ac_headers_h="no" 12637fi 12638 12639done 12640 12641 if test "x$ac_headers_h" = "xno"; then 12642 as_fn_error $? "*** Standard headers not found." "$LINENO" 5 12643 fi 12644 for ac_func in socket connect bind listen setsockopt getsockopt getsockname gethostbyname 12645do : 12646 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12647ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12648if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12649 cat >>confdefs.h <<_ACEOF 12650@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12651_ACEOF 12652 12653else 12654 ac_funcs_c="no" 12655fi 12656done 12657 12658 if test "x$ac_funcs_c" = "xno"; then 12659 as_fn_error $? "*** Standard functions not found." "$LINENO" 5 12660 fi 12661fi 12662 12663# Checks for pthread library. 12664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 12665$as_echo_n "checking for pthread_create in -lpthread... " >&6; } 12666if ${ac_cv_lib_pthread_pthread_create+:} false; then : 12667 $as_echo_n "(cached) " >&6 12668else 12669 ac_check_lib_save_LIBS=$LIBS 12670LIBS="-lpthread $LIBS" 12671cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12672/* end confdefs.h. */ 12673 12674/* Override any GCC internal prototype to avoid an error. 12675 Use char because int might match the return type of a GCC 12676 builtin and then its argument prototype would still apply. */ 12677#ifdef __cplusplus 12678extern "C" 12679#endif 12680char pthread_create (); 12681int 12682main () 12683{ 12684return pthread_create (); 12685 ; 12686 return 0; 12687} 12688_ACEOF 12689if ac_fn_c_try_link "$LINENO"; then : 12690 ac_cv_lib_pthread_pthread_create=yes 12691else 12692 ac_cv_lib_pthread_pthread_create=no 12693fi 12694rm -f core conftest.err conftest.$ac_objext \ 12695 conftest$ac_exeext conftest.$ac_ext 12696LIBS=$ac_check_lib_save_LIBS 12697fi 12698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 12699$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } 12700if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : 12701 cat >>confdefs.h <<_ACEOF 12702@%:@define HAVE_LIBPTHREAD 1 12703_ACEOF 12704 12705 LIBS="-lpthread $LIBS" 12706 12707fi 12708 12709 12710@%:@ Check whether --enable-static was given. 12711if test "${enable_static+set}" = set; then : 12712 enableval=$enable_static; p=${PACKAGE-default} 12713 case $enableval in 12714 yes) enable_static=yes ;; 12715 no) enable_static=no ;; 12716 *) 12717 enable_static=no 12718 # Look at the argument we got. We use all the common list separators. 12719 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 12720 for pkg in $enableval; do 12721 IFS=$lt_save_ifs 12722 if test "X$pkg" = "X$p"; then 12723 enable_static=yes 12724 fi 12725 done 12726 IFS=$lt_save_ifs 12727 ;; 12728 esac 12729else 12730 enable_static=no 12731fi 12732 12733 12734 12735 12736 12737 12738@%:@ Check whether --enable-shared was given. 12739if test "${enable_shared+set}" = set; then : 12740 enableval=$enable_shared; p=${PACKAGE-default} 12741 case $enableval in 12742 yes) enable_shared=yes ;; 12743 no) enable_shared=no ;; 12744 *) 12745 enable_shared=no 12746 # Look at the argument we got. We use all the common list separators. 12747 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 12748 for pkg in $enableval; do 12749 IFS=$lt_save_ifs 12750 if test "X$pkg" = "X$p"; then 12751 enable_shared=yes 12752 fi 12753 done 12754 IFS=$lt_save_ifs 12755 ;; 12756 esac 12757else 12758 enable_shared=yes 12759fi 12760 12761 12762 12763 12764 12765 12766 12767# Checks for doxygen. 12768# Extract the first word of "doxygen", so it can be a program name with args. 12769set dummy doxygen; ac_word=$2 12770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12771$as_echo_n "checking for $ac_word... " >&6; } 12772if ${ac_cv_prog_ac_doxygen+:} false; then : 12773 $as_echo_n "(cached) " >&6 12774else 12775 if test -n "$ac_doxygen"; then 12776 ac_cv_prog_ac_doxygen="$ac_doxygen" # Let the user override the test. 12777else 12778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12779for as_dir in $PATH 12780do 12781 IFS=$as_save_IFS 12782 test -z "$as_dir" && as_dir=. 12783 for ac_exec_ext in '' $ac_executable_extensions; do 12784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12785 ac_cv_prog_ac_doxygen="doc" 12786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12787 break 2 12788 fi 12789done 12790 done 12791IFS=$as_save_IFS 12792 12793fi 12794fi 12795ac_doxygen=$ac_cv_prog_ac_doxygen 12796if test -n "$ac_doxygen"; then 12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_doxygen" >&5 12798$as_echo "$ac_doxygen" >&6; } 12799else 12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12801$as_echo "no" >&6; } 12802fi 12803 12804 12805 12806 12807ac_config_files="$ac_config_files Makefile src/Makefile lscp/Makefile examples/Makefile doc/Makefile doc/liblscp.doxygen lscp.pc liblscp.spec lscp/version.h" 12808 12809cat >confcache <<\_ACEOF 12810# This file is a shell script that caches the results of configure 12811# tests run on this system so they can be shared between configure 12812# scripts and configure runs, see configure's option --config-cache. 12813# It is not useful on other systems. If it contains results you don't 12814# want to keep, you may remove or edit it. 12815# 12816# config.status only pays attention to the cache file if you give it 12817# the --recheck option to rerun configure. 12818# 12819# `ac_cv_env_foo' variables (set or unset) will be overridden when 12820# loading this file, other *unset* `ac_cv_foo' will be assigned the 12821# following values. 12822 12823_ACEOF 12824 12825# The following way of writing the cache mishandles newlines in values, 12826# but we know of no workaround that is simple, portable, and efficient. 12827# So, we kill variables containing newlines. 12828# Ultrix sh set writes to stderr and can't be redirected directly, 12829# and sets the high bit in the cache file unless we assign to the vars. 12830( 12831 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12832 eval ac_val=\$$ac_var 12833 case $ac_val in #( 12834 *${as_nl}*) 12835 case $ac_var in #( 12836 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12837$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12838 esac 12839 case $ac_var in #( 12840 _ | IFS | as_nl) ;; #( 12841 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12842 *) { eval $ac_var=; unset $ac_var;} ;; 12843 esac ;; 12844 esac 12845 done 12846 12847 (set) 2>&1 | 12848 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12849 *${as_nl}ac_space=\ *) 12850 # `set' does not quote correctly, so add quotes: double-quote 12851 # substitution turns \\\\ into \\, and sed turns \\ into \. 12852 sed -n \ 12853 "s/'/'\\\\''/g; 12854 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12855 ;; #( 12856 *) 12857 # `set' quotes correctly as required by POSIX, so do not add quotes. 12858 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12859 ;; 12860 esac | 12861 sort 12862) | 12863 sed ' 12864 /^ac_cv_env_/b end 12865 t clear 12866 :clear 12867 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12868 t end 12869 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12870 :end' >>confcache 12871if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12872 if test -w "$cache_file"; then 12873 if test "x$cache_file" != "x/dev/null"; then 12874 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12875$as_echo "$as_me: updating cache $cache_file" >&6;} 12876 if test ! -f "$cache_file" || test -h "$cache_file"; then 12877 cat confcache >"$cache_file" 12878 else 12879 case $cache_file in #( 12880 */* | ?:*) 12881 mv -f confcache "$cache_file"$$ && 12882 mv -f "$cache_file"$$ "$cache_file" ;; #( 12883 *) 12884 mv -f confcache "$cache_file" ;; 12885 esac 12886 fi 12887 fi 12888 else 12889 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12890$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12891 fi 12892fi 12893rm -f confcache 12894 12895test "x$prefix" = xNONE && prefix=$ac_default_prefix 12896# Let make expand exec_prefix. 12897test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12898 12899DEFS=-DHAVE_CONFIG_H 12900 12901ac_libobjs= 12902ac_ltlibobjs= 12903U= 12904for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue 12905 # 1. Remove the extension, and $U if already installed. 12906 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12907 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12908 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12909 # will be set to the directory where LIBOBJS objects are built. 12910 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12911 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12912done 12913LIB@&t@OBJS=$ac_libobjs 12914 12915LTLIBOBJS=$ac_ltlibobjs 12916 12917 12918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12919$as_echo_n "checking that generated files are newer than configure... " >&6; } 12920 if test -n "$am_sleep_pid"; then 12921 # Hide warnings about reused PIDs. 12922 wait $am_sleep_pid 2>/dev/null 12923 fi 12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 12925$as_echo "done" >&6; } 12926 if test -n "$EXEEXT"; then 12927 am__EXEEXT_TRUE= 12928 am__EXEEXT_FALSE='#' 12929else 12930 am__EXEEXT_TRUE='#' 12931 am__EXEEXT_FALSE= 12932fi 12933 12934if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12935 as_fn_error $? "conditional \"AMDEP\" was never defined. 12936Usually this means the macro was only invoked conditionally." "$LINENO" 5 12937fi 12938if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12939 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12940Usually this means the macro was only invoked conditionally." "$LINENO" 5 12941fi 12942if test -z "${WINDOWS_TRUE}" && test -z "${WINDOWS_FALSE}"; then 12943 as_fn_error $? "conditional \"WINDOWS\" was never defined. 12944Usually this means the macro was only invoked conditionally." "$LINENO" 5 12945fi 12946 12947: "${CONFIG_STATUS=./config.status}" 12948ac_write_fail=0 12949ac_clean_files_save=$ac_clean_files 12950ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12951{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12952$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12953as_write_fail=0 12954cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12955#! $SHELL 12956# Generated by $as_me. 12957# Run this file to recreate the current configuration. 12958# Compiler output produced by configure, useful for debugging 12959# configure, is in config.log if it exists. 12960 12961debug=false 12962ac_cs_recheck=false 12963ac_cs_silent=false 12964 12965SHELL=\${CONFIG_SHELL-$SHELL} 12966export SHELL 12967_ASEOF 12968cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12969## -------------------- ## 12970## M4sh Initialization. ## 12971## -------------------- ## 12972 12973# Be more Bourne compatible 12974DUALCASE=1; export DUALCASE # for MKS sh 12975if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12976 emulate sh 12977 NULLCMD=: 12978 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12979 # is contrary to our usage. Disable this feature. 12980 alias -g '${1+"$@"}'='"$@"' 12981 setopt NO_GLOB_SUBST 12982else 12983 case `(set -o) 2>/dev/null` in @%:@( 12984 *posix*) : 12985 set -o posix ;; @%:@( 12986 *) : 12987 ;; 12988esac 12989fi 12990 12991 12992as_nl=' 12993' 12994export as_nl 12995# Printing a long string crashes Solaris 7 /usr/bin/printf. 12996as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12997as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12998as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12999# Prefer a ksh shell builtin over an external printf program on Solaris, 13000# but without wasting forks for bash or zsh. 13001if test -z "$BASH_VERSION$ZSH_VERSION" \ 13002 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13003 as_echo='print -r --' 13004 as_echo_n='print -rn --' 13005elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13006 as_echo='printf %s\n' 13007 as_echo_n='printf %s' 13008else 13009 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13010 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13011 as_echo_n='/usr/ucb/echo -n' 13012 else 13013 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13014 as_echo_n_body='eval 13015 arg=$1; 13016 case $arg in @%:@( 13017 *"$as_nl"*) 13018 expr "X$arg" : "X\\(.*\\)$as_nl"; 13019 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13020 esac; 13021 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13022 ' 13023 export as_echo_n_body 13024 as_echo_n='sh -c $as_echo_n_body as_echo' 13025 fi 13026 export as_echo_body 13027 as_echo='sh -c $as_echo_body as_echo' 13028fi 13029 13030# The user is always right. 13031if test "${PATH_SEPARATOR+set}" != set; then 13032 PATH_SEPARATOR=: 13033 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13034 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13035 PATH_SEPARATOR=';' 13036 } 13037fi 13038 13039 13040# IFS 13041# We need space, tab and new line, in precisely that order. Quoting is 13042# there to prevent editors from complaining about space-tab. 13043# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13044# splitting by setting IFS to empty value.) 13045IFS=" "" $as_nl" 13046 13047# Find who we are. Look in the path if we contain no directory separator. 13048as_myself= 13049case $0 in @%:@(( 13050 *[\\/]* ) as_myself=$0 ;; 13051 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13052for as_dir in $PATH 13053do 13054 IFS=$as_save_IFS 13055 test -z "$as_dir" && as_dir=. 13056 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13057 done 13058IFS=$as_save_IFS 13059 13060 ;; 13061esac 13062# We did not find ourselves, most probably we were run as `sh COMMAND' 13063# in which case we are not to be found in the path. 13064if test "x$as_myself" = x; then 13065 as_myself=$0 13066fi 13067if test ! -f "$as_myself"; then 13068 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13069 exit 1 13070fi 13071 13072# Unset variables that we do not need and which cause bugs (e.g. in 13073# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13074# suppresses any "Segmentation fault" message there. '((' could 13075# trigger a bug in pdksh 5.2.14. 13076for as_var in BASH_ENV ENV MAIL MAILPATH 13077do eval test x\${$as_var+set} = xset \ 13078 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13079done 13080PS1='$ ' 13081PS2='> ' 13082PS4='+ ' 13083 13084# NLS nuisances. 13085LC_ALL=C 13086export LC_ALL 13087LANGUAGE=C 13088export LANGUAGE 13089 13090# CDPATH. 13091(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13092 13093 13094@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] 13095@%:@ ---------------------------------------- 13096@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13097@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13098@%:@ script with STATUS, using 1 if that was 0. 13099as_fn_error () 13100{ 13101 as_status=$1; test $as_status -eq 0 && as_status=1 13102 if test "$4"; then 13103 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13104 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13105 fi 13106 $as_echo "$as_me: error: $2" >&2 13107 as_fn_exit $as_status 13108} @%:@ as_fn_error 13109 13110 13111@%:@ as_fn_set_status STATUS 13112@%:@ ----------------------- 13113@%:@ Set @S|@? to STATUS, without forking. 13114as_fn_set_status () 13115{ 13116 return $1 13117} @%:@ as_fn_set_status 13118 13119@%:@ as_fn_exit STATUS 13120@%:@ ----------------- 13121@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13122as_fn_exit () 13123{ 13124 set +e 13125 as_fn_set_status $1 13126 exit $1 13127} @%:@ as_fn_exit 13128 13129@%:@ as_fn_unset VAR 13130@%:@ --------------- 13131@%:@ Portably unset VAR. 13132as_fn_unset () 13133{ 13134 { eval $1=; unset $1;} 13135} 13136as_unset=as_fn_unset 13137@%:@ as_fn_append VAR VALUE 13138@%:@ ---------------------- 13139@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take 13140@%:@ advantage of any shell optimizations that allow amortized linear growth over 13141@%:@ repeated appends, instead of the typical quadratic growth present in naive 13142@%:@ implementations. 13143if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13144 eval 'as_fn_append () 13145 { 13146 eval $1+=\$2 13147 }' 13148else 13149 as_fn_append () 13150 { 13151 eval $1=\$$1\$2 13152 } 13153fi # as_fn_append 13154 13155@%:@ as_fn_arith ARG... 13156@%:@ ------------------ 13157@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the 13158@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments 13159@%:@ must be portable across @S|@(()) and expr. 13160if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13161 eval 'as_fn_arith () 13162 { 13163 as_val=$(( $* )) 13164 }' 13165else 13166 as_fn_arith () 13167 { 13168 as_val=`expr "$@" || test $? -eq 1` 13169 } 13170fi # as_fn_arith 13171 13172 13173if expr a : '\(a\)' >/dev/null 2>&1 && 13174 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13175 as_expr=expr 13176else 13177 as_expr=false 13178fi 13179 13180if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13181 as_basename=basename 13182else 13183 as_basename=false 13184fi 13185 13186if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13187 as_dirname=dirname 13188else 13189 as_dirname=false 13190fi 13191 13192as_me=`$as_basename -- "$0" || 13193$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13194 X"$0" : 'X\(//\)$' \| \ 13195 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13196$as_echo X/"$0" | 13197 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13198 s//\1/ 13199 q 13200 } 13201 /^X\/\(\/\/\)$/{ 13202 s//\1/ 13203 q 13204 } 13205 /^X\/\(\/\).*/{ 13206 s//\1/ 13207 q 13208 } 13209 s/.*/./; q'` 13210 13211# Avoid depending upon Character Ranges. 13212as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13213as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13214as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13215as_cr_digits='0123456789' 13216as_cr_alnum=$as_cr_Letters$as_cr_digits 13217 13218ECHO_C= ECHO_N= ECHO_T= 13219case `echo -n x` in @%:@((((( 13220-n*) 13221 case `echo 'xy\c'` in 13222 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13223 xy) ECHO_C='\c';; 13224 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13225 ECHO_T=' ';; 13226 esac;; 13227*) 13228 ECHO_N='-n';; 13229esac 13230 13231rm -f conf$$ conf$$.exe conf$$.file 13232if test -d conf$$.dir; then 13233 rm -f conf$$.dir/conf$$.file 13234else 13235 rm -f conf$$.dir 13236 mkdir conf$$.dir 2>/dev/null 13237fi 13238if (echo >conf$$.file) 2>/dev/null; then 13239 if ln -s conf$$.file conf$$ 2>/dev/null; then 13240 as_ln_s='ln -s' 13241 # ... but there are two gotchas: 13242 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13243 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13244 # In both cases, we have to default to `cp -pR'. 13245 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13246 as_ln_s='cp -pR' 13247 elif ln conf$$.file conf$$ 2>/dev/null; then 13248 as_ln_s=ln 13249 else 13250 as_ln_s='cp -pR' 13251 fi 13252else 13253 as_ln_s='cp -pR' 13254fi 13255rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13256rmdir conf$$.dir 2>/dev/null 13257 13258 13259@%:@ as_fn_mkdir_p 13260@%:@ ------------- 13261@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. 13262as_fn_mkdir_p () 13263{ 13264 13265 case $as_dir in #( 13266 -*) as_dir=./$as_dir;; 13267 esac 13268 test -d "$as_dir" || eval $as_mkdir_p || { 13269 as_dirs= 13270 while :; do 13271 case $as_dir in #( 13272 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13273 *) as_qdir=$as_dir;; 13274 esac 13275 as_dirs="'$as_qdir' $as_dirs" 13276 as_dir=`$as_dirname -- "$as_dir" || 13277$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13278 X"$as_dir" : 'X\(//\)[^/]' \| \ 13279 X"$as_dir" : 'X\(//\)$' \| \ 13280 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13281$as_echo X"$as_dir" | 13282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13283 s//\1/ 13284 q 13285 } 13286 /^X\(\/\/\)[^/].*/{ 13287 s//\1/ 13288 q 13289 } 13290 /^X\(\/\/\)$/{ 13291 s//\1/ 13292 q 13293 } 13294 /^X\(\/\).*/{ 13295 s//\1/ 13296 q 13297 } 13298 s/.*/./; q'` 13299 test -d "$as_dir" && break 13300 done 13301 test -z "$as_dirs" || eval "mkdir $as_dirs" 13302 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13303 13304 13305} @%:@ as_fn_mkdir_p 13306if mkdir -p . 2>/dev/null; then 13307 as_mkdir_p='mkdir -p "$as_dir"' 13308else 13309 test -d ./-p && rmdir ./-p 13310 as_mkdir_p=false 13311fi 13312 13313 13314@%:@ as_fn_executable_p FILE 13315@%:@ ----------------------- 13316@%:@ Test if FILE is an executable regular file. 13317as_fn_executable_p () 13318{ 13319 test -f "$1" && test -x "$1" 13320} @%:@ as_fn_executable_p 13321as_test_x='test -x' 13322as_executable_p=as_fn_executable_p 13323 13324# Sed expression to map a string onto a valid CPP name. 13325as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13326 13327# Sed expression to map a string onto a valid variable name. 13328as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13329 13330 13331exec 6>&1 13332## ----------------------------------- ## 13333## Main body of $CONFIG_STATUS script. ## 13334## ----------------------------------- ## 13335_ASEOF 13336test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13337 13338cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13339# Save the log message, to keep $0 and so on meaningful, and to 13340# report actual input values of CONFIG_FILES etc. instead of their 13341# values after options handling. 13342ac_log=" 13343This file was extended by liblscp $as_me 0.9.4, which was 13344generated by GNU Autoconf 2.69. Invocation command line was 13345 13346 CONFIG_FILES = $CONFIG_FILES 13347 CONFIG_HEADERS = $CONFIG_HEADERS 13348 CONFIG_LINKS = $CONFIG_LINKS 13349 CONFIG_COMMANDS = $CONFIG_COMMANDS 13350 $ $0 $@ 13351 13352on `(hostname || uname -n) 2>/dev/null | sed 1q` 13353" 13354 13355_ACEOF 13356 13357case $ac_config_files in *" 13358"*) set x $ac_config_files; shift; ac_config_files=$*;; 13359esac 13360 13361case $ac_config_headers in *" 13362"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13363esac 13364 13365 13366cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13367# Files that config.status was made for. 13368config_files="$ac_config_files" 13369config_headers="$ac_config_headers" 13370config_commands="$ac_config_commands" 13371 13372_ACEOF 13373 13374cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13375ac_cs_usage="\ 13376\`$as_me' instantiates files and other configuration actions 13377from templates according to the current configuration. Unless the files 13378and actions are specified as TAGs, all are instantiated by default. 13379 13380Usage: $0 [OPTION]... [TAG]... 13381 13382 -h, --help print this help, then exit 13383 -V, --version print version number and configuration settings, then exit 13384 --config print configuration, then exit 13385 -q, --quiet, --silent 13386 do not print progress messages 13387 -d, --debug don't remove temporary files 13388 --recheck update $as_me by reconfiguring in the same conditions 13389 --file=FILE[:TEMPLATE] 13390 instantiate the configuration file FILE 13391 --header=FILE[:TEMPLATE] 13392 instantiate the configuration header FILE 13393 13394Configuration files: 13395$config_files 13396 13397Configuration headers: 13398$config_headers 13399 13400Configuration commands: 13401$config_commands 13402 13403Report bugs to <rncbc@rncbc.org>." 13404 13405_ACEOF 13406cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13407ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13408ac_cs_version="\\ 13409liblscp config.status 0.9.4 13410configured by $0, generated by GNU Autoconf 2.69, 13411 with options \\"\$ac_cs_config\\" 13412 13413Copyright (C) 2012 Free Software Foundation, Inc. 13414This config.status script is free software; the Free Software Foundation 13415gives unlimited permission to copy, distribute and modify it." 13416 13417ac_pwd='$ac_pwd' 13418srcdir='$srcdir' 13419INSTALL='$INSTALL' 13420MKDIR_P='$MKDIR_P' 13421AWK='$AWK' 13422test -n "\$AWK" || AWK=awk 13423_ACEOF 13424 13425cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13426# The default lists apply if the user does not specify any file. 13427ac_need_defaults=: 13428while test $# != 0 13429do 13430 case $1 in 13431 --*=?*) 13432 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13433 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13434 ac_shift=: 13435 ;; 13436 --*=) 13437 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13438 ac_optarg= 13439 ac_shift=: 13440 ;; 13441 *) 13442 ac_option=$1 13443 ac_optarg=$2 13444 ac_shift=shift 13445 ;; 13446 esac 13447 13448 case $ac_option in 13449 # Handling of the options. 13450 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13451 ac_cs_recheck=: ;; 13452 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13453 $as_echo "$ac_cs_version"; exit ;; 13454 --config | --confi | --conf | --con | --co | --c ) 13455 $as_echo "$ac_cs_config"; exit ;; 13456 --debug | --debu | --deb | --de | --d | -d ) 13457 debug=: ;; 13458 --file | --fil | --fi | --f ) 13459 $ac_shift 13460 case $ac_optarg in 13461 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13462 '') as_fn_error $? "missing file argument" ;; 13463 esac 13464 as_fn_append CONFIG_FILES " '$ac_optarg'" 13465 ac_need_defaults=false;; 13466 --header | --heade | --head | --hea ) 13467 $ac_shift 13468 case $ac_optarg in 13469 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13470 esac 13471 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13472 ac_need_defaults=false;; 13473 --he | --h) 13474 # Conflict between --help and --header 13475 as_fn_error $? "ambiguous option: \`$1' 13476Try \`$0 --help' for more information.";; 13477 --help | --hel | -h ) 13478 $as_echo "$ac_cs_usage"; exit ;; 13479 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13480 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13481 ac_cs_silent=: ;; 13482 13483 # This is an error. 13484 -*) as_fn_error $? "unrecognized option: \`$1' 13485Try \`$0 --help' for more information." ;; 13486 13487 *) as_fn_append ac_config_targets " $1" 13488 ac_need_defaults=false ;; 13489 13490 esac 13491 shift 13492done 13493 13494ac_configure_extra_args= 13495 13496if $ac_cs_silent; then 13497 exec 6>/dev/null 13498 ac_configure_extra_args="$ac_configure_extra_args --silent" 13499fi 13500 13501_ACEOF 13502cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13503if \$ac_cs_recheck; then 13504 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13505 shift 13506 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13507 CONFIG_SHELL='$SHELL' 13508 export CONFIG_SHELL 13509 exec "\$@" 13510fi 13511 13512_ACEOF 13513cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13514exec 5>>config.log 13515{ 13516 echo 13517 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX 13518@%:@@%:@ Running $as_me. @%:@@%:@ 13519_ASBOX 13520 $as_echo "$ac_log" 13521} >&5 13522 13523_ACEOF 13524cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13525# 13526# INIT-COMMANDS 13527# 13528AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 13529 13530 13531# The HP-UX ksh and POSIX shell print the target directory to stdout 13532# if CDPATH is set. 13533(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13534 13535sed_quote_subst='$sed_quote_subst' 13536double_quote_subst='$double_quote_subst' 13537delay_variable_subst='$delay_variable_subst' 13538AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 13539DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 13540OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 13541macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 13542macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 13543enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 13544enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 13545pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 13546enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 13547shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 13548SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 13549ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 13550PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 13551host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 13552host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 13553host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 13554build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 13555build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 13556build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 13557SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 13558Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 13559GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 13560EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 13561FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 13562LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 13563NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 13564LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 13565max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 13566ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 13567exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 13568lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 13569lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 13570lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 13571lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 13572lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 13573reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 13574reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 13575deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 13576file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 13577file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 13578want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 13579sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 13580AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 13581AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 13582archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 13583STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 13584RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 13585old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13586old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13587old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 13588lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 13589CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 13590CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 13591compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 13592GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 13593lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 13594lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 13595lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 13596lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 13597lt_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"`' 13598lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 13599nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 13600lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 13601lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 13602objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 13603MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 13604lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 13605lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 13606lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 13607lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 13608lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 13609need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 13610MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 13611DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 13612NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 13613LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 13614OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 13615OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 13616libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 13617shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 13618extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13619archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 13620enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 13621export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 13622whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 13623compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 13624old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 13625old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13626archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 13627archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13628module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 13629module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13630with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 13631allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 13632no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 13633hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 13634hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 13635hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 13636hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 13637hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 13638hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 13639hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 13640inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 13641link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 13642always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 13643export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 13644exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 13645include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 13646prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 13647postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 13648file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 13649variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 13650need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 13651need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 13652version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 13653runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 13654shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 13655shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 13656libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 13657library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 13658soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 13659install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 13660postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13661postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13662finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 13663finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 13664hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 13665sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 13666configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 13667configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 13668hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 13669enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 13670enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 13671enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 13672old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 13673striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 13674 13675LTCC='$LTCC' 13676LTCFLAGS='$LTCFLAGS' 13677compiler='$compiler_DEFAULT' 13678 13679# A function that is used when there is no print builtin or printf. 13680func_fallback_echo () 13681{ 13682 eval 'cat <<_LTECHO_EOF 13683\$1 13684_LTECHO_EOF' 13685} 13686 13687# Quote evaled strings. 13688for var in AS \ 13689DLLTOOL \ 13690OBJDUMP \ 13691SHELL \ 13692ECHO \ 13693PATH_SEPARATOR \ 13694SED \ 13695GREP \ 13696EGREP \ 13697FGREP \ 13698LD \ 13699NM \ 13700LN_S \ 13701lt_SP2NL \ 13702lt_NL2SP \ 13703reload_flag \ 13704deplibs_check_method \ 13705file_magic_cmd \ 13706file_magic_glob \ 13707want_nocaseglob \ 13708sharedlib_from_linklib_cmd \ 13709AR \ 13710AR_FLAGS \ 13711archiver_list_spec \ 13712STRIP \ 13713RANLIB \ 13714CC \ 13715CFLAGS \ 13716compiler \ 13717lt_cv_sys_global_symbol_pipe \ 13718lt_cv_sys_global_symbol_to_cdecl \ 13719lt_cv_sys_global_symbol_to_import \ 13720lt_cv_sys_global_symbol_to_c_name_address \ 13721lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13722lt_cv_nm_interface \ 13723nm_file_list_spec \ 13724lt_cv_truncate_bin \ 13725lt_prog_compiler_no_builtin_flag \ 13726lt_prog_compiler_pic \ 13727lt_prog_compiler_wl \ 13728lt_prog_compiler_static \ 13729lt_cv_prog_compiler_c_o \ 13730need_locks \ 13731MANIFEST_TOOL \ 13732DSYMUTIL \ 13733NMEDIT \ 13734LIPO \ 13735OTOOL \ 13736OTOOL64 \ 13737shrext_cmds \ 13738export_dynamic_flag_spec \ 13739whole_archive_flag_spec \ 13740compiler_needs_object \ 13741with_gnu_ld \ 13742allow_undefined_flag \ 13743no_undefined_flag \ 13744hardcode_libdir_flag_spec \ 13745hardcode_libdir_separator \ 13746exclude_expsyms \ 13747include_expsyms \ 13748file_list_spec \ 13749variables_saved_for_relink \ 13750libname_spec \ 13751library_names_spec \ 13752soname_spec \ 13753install_override_mode \ 13754finish_eval \ 13755old_striplib \ 13756striplib; do 13757 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13758 *[\\\\\\\`\\"\\\$]*) 13759 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 13760 ;; 13761 *) 13762 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13763 ;; 13764 esac 13765done 13766 13767# Double-quote double-evaled strings. 13768for var in reload_cmds \ 13769old_postinstall_cmds \ 13770old_postuninstall_cmds \ 13771old_archive_cmds \ 13772extract_expsyms_cmds \ 13773old_archive_from_new_cmds \ 13774old_archive_from_expsyms_cmds \ 13775archive_cmds \ 13776archive_expsym_cmds \ 13777module_cmds \ 13778module_expsym_cmds \ 13779export_symbols_cmds \ 13780prelink_cmds \ 13781postlink_cmds \ 13782postinstall_cmds \ 13783postuninstall_cmds \ 13784finish_cmds \ 13785sys_lib_search_path_spec \ 13786configure_time_dlsearch_path \ 13787configure_time_lt_sys_library_path; do 13788 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13789 *[\\\\\\\`\\"\\\$]*) 13790 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 13791 ;; 13792 *) 13793 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13794 ;; 13795 esac 13796done 13797 13798ac_aux_dir='$ac_aux_dir' 13799 13800# See if we are running on zsh, and set the options that allow our 13801# commands through without removal of \ escapes INIT. 13802if test -n "\${ZSH_VERSION+set}"; then 13803 setopt NO_GLOB_SUBST 13804fi 13805 13806 13807 PACKAGE='$PACKAGE' 13808 VERSION='$VERSION' 13809 RM='$RM' 13810 ofile='$ofile' 13811 13812 13813 13814 13815_ACEOF 13816 13817cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13818 13819# Handling of arguments. 13820for ac_config_target in $ac_config_targets 13821do 13822 case $ac_config_target in 13823 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 13824 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13825 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13826 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13827 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 13828 "lscp/Makefile") CONFIG_FILES="$CONFIG_FILES lscp/Makefile" ;; 13829 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 13830 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 13831 "doc/liblscp.doxygen") CONFIG_FILES="$CONFIG_FILES doc/liblscp.doxygen" ;; 13832 "lscp.pc") CONFIG_FILES="$CONFIG_FILES lscp.pc" ;; 13833 "liblscp.spec") CONFIG_FILES="$CONFIG_FILES liblscp.spec" ;; 13834 "lscp/version.h") CONFIG_FILES="$CONFIG_FILES lscp/version.h" ;; 13835 13836 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13837 esac 13838done 13839 13840 13841# If the user did not use the arguments to specify the items to instantiate, 13842# then the envvar interface is used. Set only those that are not. 13843# We use the long form for the default assignment because of an extremely 13844# bizarre bug on SunOS 4.1.3. 13845if $ac_need_defaults; then 13846 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13847 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13848 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13849fi 13850 13851# Have a temporary directory for convenience. Make it in the build tree 13852# simply because there is no reason against having it here, and in addition, 13853# creating and moving files from /tmp can sometimes cause problems. 13854# Hook for its removal unless debugging. 13855# Note that there is a small window in which the directory will not be cleaned: 13856# after its creation but before its name has been assigned to `$tmp'. 13857$debug || 13858{ 13859 tmp= ac_tmp= 13860 trap 'exit_status=$? 13861 : "${ac_tmp:=$tmp}" 13862 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13863' 0 13864 trap 'as_fn_exit 1' 1 2 13 15 13865} 13866# Create a (secure) tmp directory for tmp files. 13867 13868{ 13869 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13870 test -d "$tmp" 13871} || 13872{ 13873 tmp=./conf$$-$RANDOM 13874 (umask 077 && mkdir "$tmp") 13875} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13876ac_tmp=$tmp 13877 13878# Set up the scripts for CONFIG_FILES section. 13879# No need to generate them if there are no CONFIG_FILES. 13880# This happens for instance with `./config.status config.h'. 13881if test -n "$CONFIG_FILES"; then 13882 13883 13884ac_cr=`echo X | tr X '\015'` 13885# On cygwin, bash can eat \r inside `` if the user requested igncr. 13886# But we know of no other shell where ac_cr would be empty at this 13887# point, so we can use a bashism as a fallback. 13888if test "x$ac_cr" = x; then 13889 eval ac_cr=\$\'\\r\' 13890fi 13891ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13892if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13893 ac_cs_awk_cr='\\r' 13894else 13895 ac_cs_awk_cr=$ac_cr 13896fi 13897 13898echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 13899_ACEOF 13900 13901 13902{ 13903 echo "cat >conf$$subs.awk <<_ACEOF" && 13904 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13905 echo "_ACEOF" 13906} >conf$$subs.sh || 13907 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13908ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13909ac_delim='%!_!# ' 13910for ac_last_try in false false false false false :; do 13911 . ./conf$$subs.sh || 13912 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13913 13914 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13915 if test $ac_delim_n = $ac_delim_num; then 13916 break 13917 elif $ac_last_try; then 13918 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13919 else 13920 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13921 fi 13922done 13923rm -f conf$$subs.sh 13924 13925cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13926cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13927_ACEOF 13928sed -n ' 13929h 13930s/^/S["/; s/!.*/"]=/ 13931p 13932g 13933s/^[^!]*!// 13934:repl 13935t repl 13936s/'"$ac_delim"'$// 13937t delim 13938:nl 13939h 13940s/\(.\{148\}\)..*/\1/ 13941t more1 13942s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13943p 13944n 13945b repl 13946:more1 13947s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13948p 13949g 13950s/.\{148\}// 13951t nl 13952:delim 13953h 13954s/\(.\{148\}\)..*/\1/ 13955t more2 13956s/["\\]/\\&/g; s/^/"/; s/$/"/ 13957p 13958b 13959:more2 13960s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13961p 13962g 13963s/.\{148\}// 13964t delim 13965' <conf$$subs.awk | sed ' 13966/^[^""]/{ 13967 N 13968 s/\n// 13969} 13970' >>$CONFIG_STATUS || ac_write_fail=1 13971rm -f conf$$subs.awk 13972cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13973_ACAWK 13974cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13975 for (key in S) S_is_set[key] = 1 13976 FS = "" 13977 13978} 13979{ 13980 line = $ 0 13981 nfields = split(line, field, "@") 13982 substed = 0 13983 len = length(field[1]) 13984 for (i = 2; i < nfields; i++) { 13985 key = field[i] 13986 keylen = length(key) 13987 if (S_is_set[key]) { 13988 value = S[key] 13989 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13990 len += length(value) + length(field[++i]) 13991 substed = 1 13992 } else 13993 len += 1 + keylen 13994 } 13995 13996 print line 13997} 13998 13999_ACAWK 14000_ACEOF 14001cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14002if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14003 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14004else 14005 cat 14006fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14007 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14008_ACEOF 14009 14010# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14011# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14012# trailing colons and then remove the whole line if VPATH becomes empty 14013# (actually we leave an empty line to preserve line numbers). 14014if test "x$srcdir" = x.; then 14015 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14016h 14017s/// 14018s/^/:/ 14019s/[ ]*$/:/ 14020s/:\$(srcdir):/:/g 14021s/:\${srcdir}:/:/g 14022s/:@srcdir@:/:/g 14023s/^:*// 14024s/:*$// 14025x 14026s/\(=[ ]*\).*/\1/ 14027G 14028s/\n// 14029s/^[^=]*=[ ]*$// 14030}' 14031fi 14032 14033cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14034fi # test -n "$CONFIG_FILES" 14035 14036# Set up the scripts for CONFIG_HEADERS section. 14037# No need to generate them if there are no CONFIG_HEADERS. 14038# This happens for instance with `./config.status Makefile'. 14039if test -n "$CONFIG_HEADERS"; then 14040cat >"$ac_tmp/defines.awk" <<\_ACAWK || 14041BEGIN { 14042_ACEOF 14043 14044# Transform confdefs.h into an awk script `defines.awk', embedded as 14045# here-document in config.status, that substitutes the proper values into 14046# config.h.in to produce config.h. 14047 14048# Create a delimiter string that does not exist in confdefs.h, to ease 14049# handling of long lines. 14050ac_delim='%!_!# ' 14051for ac_last_try in false false :; do 14052 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 14053 if test -z "$ac_tt"; then 14054 break 14055 elif $ac_last_try; then 14056 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14057 else 14058 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14059 fi 14060done 14061 14062# For the awk script, D is an array of macro values keyed by name, 14063# likewise P contains macro parameters if any. Preserve backslash 14064# newline sequences. 14065 14066ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14067sed -n ' 14068s/.\{148\}/&'"$ac_delim"'/g 14069t rset 14070:rset 14071s/^[ ]*#[ ]*define[ ][ ]*/ / 14072t def 14073d 14074:def 14075s/\\$// 14076t bsnl 14077s/["\\]/\\&/g 14078s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14079D["\1"]=" \3"/p 14080s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14081d 14082:bsnl 14083s/["\\]/\\&/g 14084s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14085D["\1"]=" \3\\\\\\n"\\/p 14086t cont 14087s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14088t cont 14089d 14090:cont 14091n 14092s/.\{148\}/&'"$ac_delim"'/g 14093t clear 14094:clear 14095s/\\$// 14096t bsnlc 14097s/["\\]/\\&/g; s/^/"/; s/$/"/p 14098d 14099:bsnlc 14100s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14101b cont 14102' <confdefs.h | sed ' 14103s/'"$ac_delim"'/"\\\ 14104"/g' >>$CONFIG_STATUS || ac_write_fail=1 14105 14106cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14107 for (key in D) D_is_set[key] = 1 14108 FS = "" 14109} 14110/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14111 line = \$ 0 14112 split(line, arg, " ") 14113 if (arg[1] == "#") { 14114 defundef = arg[2] 14115 mac1 = arg[3] 14116 } else { 14117 defundef = substr(arg[1], 2) 14118 mac1 = arg[2] 14119 } 14120 split(mac1, mac2, "(") #) 14121 macro = mac2[1] 14122 prefix = substr(line, 1, index(line, defundef) - 1) 14123 if (D_is_set[macro]) { 14124 # Preserve the white space surrounding the "#". 14125 print prefix "define", macro P[macro] D[macro] 14126 next 14127 } else { 14128 # Replace #undef with comments. This is necessary, for example, 14129 # in the case of _POSIX_SOURCE, which is predefined and required 14130 # on some systems where configure will not decide to define it. 14131 if (defundef == "undef") { 14132 print "/*", prefix defundef, macro, "*/" 14133 next 14134 } 14135 } 14136} 14137{ print } 14138_ACAWK 14139_ACEOF 14140cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14141 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 14142fi # test -n "$CONFIG_HEADERS" 14143 14144 14145eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14146shift 14147for ac_tag 14148do 14149 case $ac_tag in 14150 :[FHLC]) ac_mode=$ac_tag; continue;; 14151 esac 14152 case $ac_mode$ac_tag in 14153 :[FHL]*:*);; 14154 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 14155 :[FH]-) ac_tag=-:-;; 14156 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14157 esac 14158 ac_save_IFS=$IFS 14159 IFS=: 14160 set x $ac_tag 14161 IFS=$ac_save_IFS 14162 shift 14163 ac_file=$1 14164 shift 14165 14166 case $ac_mode in 14167 :L) ac_source=$1;; 14168 :[FH]) 14169 ac_file_inputs= 14170 for ac_f 14171 do 14172 case $ac_f in 14173 -) ac_f="$ac_tmp/stdin";; 14174 *) # Look for the file first in the build tree, then in the source tree 14175 # (if the path is not absolute). The absolute path cannot be DOS-style, 14176 # because $ac_f cannot contain `:'. 14177 test -f "$ac_f" || 14178 case $ac_f in 14179 [\\/$]*) false;; 14180 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14181 esac || 14182 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14183 esac 14184 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14185 as_fn_append ac_file_inputs " '$ac_f'" 14186 done 14187 14188 # Let's still pretend it is `configure' which instantiates (i.e., don't 14189 # use $as_me), people would be surprised to read: 14190 # /* config.h. Generated by config.status. */ 14191 configure_input='Generated from '` 14192 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14193 `' by configure.' 14194 if test x"$ac_file" != x-; then 14195 configure_input="$ac_file. $configure_input" 14196 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14197$as_echo "$as_me: creating $ac_file" >&6;} 14198 fi 14199 # Neutralize special characters interpreted by sed in replacement strings. 14200 case $configure_input in #( 14201 *\&* | *\|* | *\\* ) 14202 ac_sed_conf_input=`$as_echo "$configure_input" | 14203 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14204 *) ac_sed_conf_input=$configure_input;; 14205 esac 14206 14207 case $ac_tag in 14208 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14209 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14210 esac 14211 ;; 14212 esac 14213 14214 ac_dir=`$as_dirname -- "$ac_file" || 14215$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14216 X"$ac_file" : 'X\(//\)[^/]' \| \ 14217 X"$ac_file" : 'X\(//\)$' \| \ 14218 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14219$as_echo X"$ac_file" | 14220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14221 s//\1/ 14222 q 14223 } 14224 /^X\(\/\/\)[^/].*/{ 14225 s//\1/ 14226 q 14227 } 14228 /^X\(\/\/\)$/{ 14229 s//\1/ 14230 q 14231 } 14232 /^X\(\/\).*/{ 14233 s//\1/ 14234 q 14235 } 14236 s/.*/./; q'` 14237 as_dir="$ac_dir"; as_fn_mkdir_p 14238 ac_builddir=. 14239 14240case "$ac_dir" in 14241.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14242*) 14243 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14244 # A ".." for each directory in $ac_dir_suffix. 14245 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14246 case $ac_top_builddir_sub in 14247 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14248 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14249 esac ;; 14250esac 14251ac_abs_top_builddir=$ac_pwd 14252ac_abs_builddir=$ac_pwd$ac_dir_suffix 14253# for backward compatibility: 14254ac_top_builddir=$ac_top_build_prefix 14255 14256case $srcdir in 14257 .) # We are building in place. 14258 ac_srcdir=. 14259 ac_top_srcdir=$ac_top_builddir_sub 14260 ac_abs_top_srcdir=$ac_pwd ;; 14261 [\\/]* | ?:[\\/]* ) # Absolute name. 14262 ac_srcdir=$srcdir$ac_dir_suffix; 14263 ac_top_srcdir=$srcdir 14264 ac_abs_top_srcdir=$srcdir ;; 14265 *) # Relative name. 14266 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14267 ac_top_srcdir=$ac_top_build_prefix$srcdir 14268 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14269esac 14270ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14271 14272 14273 case $ac_mode in 14274 :F) 14275 # 14276 # CONFIG_FILE 14277 # 14278 14279 case $INSTALL in 14280 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14281 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14282 esac 14283 ac_MKDIR_P=$MKDIR_P 14284 case $MKDIR_P in 14285 [\\/$]* | ?:[\\/]* ) ;; 14286 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14287 esac 14288_ACEOF 14289 14290cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14291# If the template does not know about datarootdir, expand it. 14292# FIXME: This hack should be removed a few years after 2.60. 14293ac_datarootdir_hack=; ac_datarootdir_seen= 14294ac_sed_dataroot=' 14295/datarootdir/ { 14296 p 14297 q 14298} 14299/@datadir@/p 14300/@docdir@/p 14301/@infodir@/p 14302/@localedir@/p 14303/@mandir@/p' 14304case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14305*datarootdir*) ac_datarootdir_seen=yes;; 14306*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14308$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14309_ACEOF 14310cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14311 ac_datarootdir_hack=' 14312 s&@datadir@&$datadir&g 14313 s&@docdir@&$docdir&g 14314 s&@infodir@&$infodir&g 14315 s&@localedir@&$localedir&g 14316 s&@mandir@&$mandir&g 14317 s&\\\${datarootdir}&$datarootdir&g' ;; 14318esac 14319_ACEOF 14320 14321# Neutralize VPATH when `$srcdir' = `.'. 14322# Shell code in configure.ac might set extrasub. 14323# FIXME: do we really want to maintain this feature? 14324cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14325ac_sed_extra="$ac_vpsub 14326$extrasub 14327_ACEOF 14328cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14329:t 14330/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14331s|@configure_input@|$ac_sed_conf_input|;t t 14332s&@top_builddir@&$ac_top_builddir_sub&;t t 14333s&@top_build_prefix@&$ac_top_build_prefix&;t t 14334s&@srcdir@&$ac_srcdir&;t t 14335s&@abs_srcdir@&$ac_abs_srcdir&;t t 14336s&@top_srcdir@&$ac_top_srcdir&;t t 14337s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14338s&@builddir@&$ac_builddir&;t t 14339s&@abs_builddir@&$ac_abs_builddir&;t t 14340s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14341s&@INSTALL@&$ac_INSTALL&;t t 14342s&@MKDIR_P@&$ac_MKDIR_P&;t t 14343$ac_datarootdir_hack 14344" 14345eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14346 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14347 14348test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14349 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14350 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14351 "$ac_tmp/out"`; test -z "$ac_out"; } && 14352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14353which seems to be undefined. Please make sure it is defined" >&5 14354$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14355which seems to be undefined. Please make sure it is defined" >&2;} 14356 14357 rm -f "$ac_tmp/stdin" 14358 case $ac_file in 14359 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14360 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14361 esac \ 14362 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14363 ;; 14364 :H) 14365 # 14366 # CONFIG_HEADER 14367 # 14368 if test x"$ac_file" != x-; then 14369 { 14370 $as_echo "/* $configure_input */" \ 14371 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 14372 } >"$ac_tmp/config.h" \ 14373 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14374 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 14375 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14376$as_echo "$as_me: $ac_file is unchanged" >&6;} 14377 else 14378 rm -f "$ac_file" 14379 mv "$ac_tmp/config.h" "$ac_file" \ 14380 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14381 fi 14382 else 14383 $as_echo "/* $configure_input */" \ 14384 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 14385 || as_fn_error $? "could not create -" "$LINENO" 5 14386 fi 14387# Compute "$ac_file"'s index in $config_headers. 14388_am_arg="$ac_file" 14389_am_stamp_count=1 14390for _am_header in $config_headers :; do 14391 case $_am_header in 14392 $_am_arg | $_am_arg:* ) 14393 break ;; 14394 * ) 14395 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14396 esac 14397done 14398echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14399$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14400 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14401 X"$_am_arg" : 'X\(//\)$' \| \ 14402 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14403$as_echo X"$_am_arg" | 14404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14405 s//\1/ 14406 q 14407 } 14408 /^X\(\/\/\)[^/].*/{ 14409 s//\1/ 14410 q 14411 } 14412 /^X\(\/\/\)$/{ 14413 s//\1/ 14414 q 14415 } 14416 /^X\(\/\).*/{ 14417 s//\1/ 14418 q 14419 } 14420 s/.*/./; q'`/stamp-h$_am_stamp_count 14421 ;; 14422 14423 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14424$as_echo "$as_me: executing $ac_file commands" >&6;} 14425 ;; 14426 esac 14427 14428 14429 case $ac_file$ac_mode in 14430 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14431 # Older Autoconf quotes --file arguments for eval, but not when files 14432 # are listed without --file. Let's play safe and only enable the eval 14433 # if we detect the quoting. 14434 # TODO: see whether this extra hack can be removed once we start 14435 # requiring Autoconf 2.70 or later. 14436 case $CONFIG_FILES in @%:@( 14437 *\'*) : 14438 eval set x "$CONFIG_FILES" ;; @%:@( 14439 *) : 14440 set x $CONFIG_FILES ;; @%:@( 14441 *) : 14442 ;; 14443esac 14444 shift 14445 # Used to flag and report bootstrapping failures. 14446 am_rc=0 14447 for am_mf 14448 do 14449 # Strip MF so we end up with the name of the file. 14450 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 14451 # Check whether this is an Automake generated Makefile which includes 14452 # dependency-tracking related rules and includes. 14453 # Grep'ing the whole file directly is not great: AIX grep has a line 14454 # limit of 2048, but all sed's we know have understand at least 4000. 14455 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 14456 || continue 14457 am_dirpart=`$as_dirname -- "$am_mf" || 14458$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14459 X"$am_mf" : 'X\(//\)[^/]' \| \ 14460 X"$am_mf" : 'X\(//\)$' \| \ 14461 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 14462$as_echo X"$am_mf" | 14463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14464 s//\1/ 14465 q 14466 } 14467 /^X\(\/\/\)[^/].*/{ 14468 s//\1/ 14469 q 14470 } 14471 /^X\(\/\/\)$/{ 14472 s//\1/ 14473 q 14474 } 14475 /^X\(\/\).*/{ 14476 s//\1/ 14477 q 14478 } 14479 s/.*/./; q'` 14480 am_filepart=`$as_basename -- "$am_mf" || 14481$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 14482 X"$am_mf" : 'X\(//\)$' \| \ 14483 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 14484$as_echo X/"$am_mf" | 14485 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14486 s//\1/ 14487 q 14488 } 14489 /^X\/\(\/\/\)$/{ 14490 s//\1/ 14491 q 14492 } 14493 /^X\/\(\/\).*/{ 14494 s//\1/ 14495 q 14496 } 14497 s/.*/./; q'` 14498 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 14499 && sed -e '/# am--include-marker/d' "$am_filepart" \ 14500 | $MAKE -f - am--depfiles" >&5 14501 (cd "$am_dirpart" \ 14502 && sed -e '/# am--include-marker/d' "$am_filepart" \ 14503 | $MAKE -f - am--depfiles) >&5 2>&5 14504 ac_status=$? 14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14506 (exit $ac_status); } || am_rc=$? 14507 done 14508 if test $am_rc -ne 0; then 14509 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14510$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14511as_fn_error $? "Something went wrong bootstrapping makefile fragments 14512 for automatic dependency tracking. If GNU make was not used, consider 14513 re-running the configure script with MAKE=\"gmake\" (or whatever is 14514 necessary). You can also try re-running configure with the 14515 '--disable-dependency-tracking' option to at least be able to build 14516 the package (albeit without support for automatic dependency tracking). 14517See \`config.log' for more details" "$LINENO" 5; } 14518 fi 14519 { am_dirpart=; unset am_dirpart;} 14520 { am_filepart=; unset am_filepart;} 14521 { am_mf=; unset am_mf;} 14522 { am_rc=; unset am_rc;} 14523 rm -f conftest-deps.mk 14524} 14525 ;; 14526 "libtool":C) 14527 14528 # See if we are running on zsh, and set the options that allow our 14529 # commands through without removal of \ escapes. 14530 if test -n "${ZSH_VERSION+set}"; then 14531 setopt NO_GLOB_SUBST 14532 fi 14533 14534 cfgfile=${ofile}T 14535 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14536 $RM "$cfgfile" 14537 14538 cat <<_LT_EOF >> "$cfgfile" 14539#! $SHELL 14540# Generated automatically by $as_me ($PACKAGE) $VERSION 14541# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14542 14543# Provide generalized library-building support services. 14544# Written by Gordon Matzigkeit, 1996 14545 14546# Copyright (C) 2014 Free Software Foundation, Inc. 14547# This is free software; see the source for copying conditions. There is NO 14548# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14549 14550# GNU Libtool is free software; you can redistribute it and/or modify 14551# it under the terms of the GNU General Public License as published by 14552# the Free Software Foundation; either version 2 of of the License, or 14553# (at your option) any later version. 14554# 14555# As a special exception to the GNU General Public License, if you 14556# distribute this file as part of a program or library that is built 14557# using GNU Libtool, you may include this file under the same 14558# distribution terms that you use for the rest of that program. 14559# 14560# GNU Libtool is distributed in the hope that it will be useful, but 14561# WITHOUT ANY WARRANTY; without even the implied warranty of 14562# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14563# GNU General Public License for more details. 14564# 14565# You should have received a copy of the GNU General Public License 14566# along with this program. If not, see <http://www.gnu.org/licenses/>. 14567 14568 14569# The names of the tagged configurations supported by this script. 14570available_tags='' 14571 14572# Configured defaults for sys_lib_dlsearch_path munging. 14573: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 14574 14575# ### BEGIN LIBTOOL CONFIG 14576 14577# Assembler program. 14578AS=$lt_AS 14579 14580# DLL creation program. 14581DLLTOOL=$lt_DLLTOOL 14582 14583# Object dumper program. 14584OBJDUMP=$lt_OBJDUMP 14585 14586# Which release of libtool.m4 was used? 14587macro_version=$macro_version 14588macro_revision=$macro_revision 14589 14590# Whether or not to build shared libraries. 14591build_libtool_libs=$enable_shared 14592 14593# Whether or not to build static libraries. 14594build_old_libs=$enable_static 14595 14596# What type of objects to build. 14597pic_mode=$pic_mode 14598 14599# Whether or not to optimize for fast installation. 14600fast_install=$enable_fast_install 14601 14602# Shared archive member basename,for filename based shared library versioning on AIX. 14603shared_archive_member_spec=$shared_archive_member_spec 14604 14605# Shell to use when invoking shell scripts. 14606SHELL=$lt_SHELL 14607 14608# An echo program that protects backslashes. 14609ECHO=$lt_ECHO 14610 14611# The PATH separator for the build system. 14612PATH_SEPARATOR=$lt_PATH_SEPARATOR 14613 14614# The host system. 14615host_alias=$host_alias 14616host=$host 14617host_os=$host_os 14618 14619# The build system. 14620build_alias=$build_alias 14621build=$build 14622build_os=$build_os 14623 14624# A sed program that does not truncate output. 14625SED=$lt_SED 14626 14627# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14628Xsed="\$SED -e 1s/^X//" 14629 14630# A grep program that handles long lines. 14631GREP=$lt_GREP 14632 14633# An ERE matcher. 14634EGREP=$lt_EGREP 14635 14636# A literal string matcher. 14637FGREP=$lt_FGREP 14638 14639# A BSD- or MS-compatible name lister. 14640NM=$lt_NM 14641 14642# Whether we need soft or hard links. 14643LN_S=$lt_LN_S 14644 14645# What is the maximum length of a command? 14646max_cmd_len=$max_cmd_len 14647 14648# Object file suffix (normally "o"). 14649objext=$ac_objext 14650 14651# Executable file suffix (normally ""). 14652exeext=$exeext 14653 14654# whether the shell understands "unset". 14655lt_unset=$lt_unset 14656 14657# turn spaces into newlines. 14658SP2NL=$lt_lt_SP2NL 14659 14660# turn newlines into spaces. 14661NL2SP=$lt_lt_NL2SP 14662 14663# convert \$build file names to \$host format. 14664to_host_file_cmd=$lt_cv_to_host_file_cmd 14665 14666# convert \$build files to toolchain format. 14667to_tool_file_cmd=$lt_cv_to_tool_file_cmd 14668 14669# Method to check whether dependent libraries are shared objects. 14670deplibs_check_method=$lt_deplibs_check_method 14671 14672# Command to use when deplibs_check_method = "file_magic". 14673file_magic_cmd=$lt_file_magic_cmd 14674 14675# How to find potential files when deplibs_check_method = "file_magic". 14676file_magic_glob=$lt_file_magic_glob 14677 14678# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 14679want_nocaseglob=$lt_want_nocaseglob 14680 14681# Command to associate shared and link libraries. 14682sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 14683 14684# The archiver. 14685AR=$lt_AR 14686 14687# Flags to create an archive. 14688AR_FLAGS=$lt_AR_FLAGS 14689 14690# How to feed a file listing to the archiver. 14691archiver_list_spec=$lt_archiver_list_spec 14692 14693# A symbol stripping program. 14694STRIP=$lt_STRIP 14695 14696# Commands used to install an old-style archive. 14697RANLIB=$lt_RANLIB 14698old_postinstall_cmds=$lt_old_postinstall_cmds 14699old_postuninstall_cmds=$lt_old_postuninstall_cmds 14700 14701# Whether to use a lock for old archive extraction. 14702lock_old_archive_extraction=$lock_old_archive_extraction 14703 14704# A C compiler. 14705LTCC=$lt_CC 14706 14707# LTCC compiler flags. 14708LTCFLAGS=$lt_CFLAGS 14709 14710# Take the output of nm and produce a listing of raw symbols and C names. 14711global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14712 14713# Transform the output of nm in a proper C declaration. 14714global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14715 14716# Transform the output of nm into a list of symbols to manually relocate. 14717global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 14718 14719# Transform the output of nm in a C name address pair. 14720global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14721 14722# Transform the output of nm in a C name address pair when lib prefix is needed. 14723global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14724 14725# The name lister interface. 14726nm_interface=$lt_lt_cv_nm_interface 14727 14728# Specify filename containing input files for \$NM. 14729nm_file_list_spec=$lt_nm_file_list_spec 14730 14731# The root where to search for dependent libraries,and where our libraries should be installed. 14732lt_sysroot=$lt_sysroot 14733 14734# Command to truncate a binary pipe. 14735lt_truncate_bin=$lt_lt_cv_truncate_bin 14736 14737# The name of the directory that contains temporary libtool files. 14738objdir=$objdir 14739 14740# Used to examine libraries when file_magic_cmd begins with "file". 14741MAGIC_CMD=$MAGIC_CMD 14742 14743# Must we lock files when doing compilation? 14744need_locks=$lt_need_locks 14745 14746# Manifest tool. 14747MANIFEST_TOOL=$lt_MANIFEST_TOOL 14748 14749# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14750DSYMUTIL=$lt_DSYMUTIL 14751 14752# Tool to change global to local symbols on Mac OS X. 14753NMEDIT=$lt_NMEDIT 14754 14755# Tool to manipulate fat objects and archives on Mac OS X. 14756LIPO=$lt_LIPO 14757 14758# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14759OTOOL=$lt_OTOOL 14760 14761# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14762OTOOL64=$lt_OTOOL64 14763 14764# Old archive suffix (normally "a"). 14765libext=$libext 14766 14767# Shared library suffix (normally ".so"). 14768shrext_cmds=$lt_shrext_cmds 14769 14770# The commands to extract the exported symbol list from a shared archive. 14771extract_expsyms_cmds=$lt_extract_expsyms_cmds 14772 14773# Variables whose values should be saved in libtool wrapper scripts and 14774# restored at link time. 14775variables_saved_for_relink=$lt_variables_saved_for_relink 14776 14777# Do we need the "lib" prefix for modules? 14778need_lib_prefix=$need_lib_prefix 14779 14780# Do we need a version for libraries? 14781need_version=$need_version 14782 14783# Library versioning type. 14784version_type=$version_type 14785 14786# Shared library runtime path variable. 14787runpath_var=$runpath_var 14788 14789# Shared library path variable. 14790shlibpath_var=$shlibpath_var 14791 14792# Is shlibpath searched before the hard-coded library search path? 14793shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14794 14795# Format of library name prefix. 14796libname_spec=$lt_libname_spec 14797 14798# List of archive names. First name is the real one, the rest are links. 14799# The last name is the one that the linker finds with -lNAME 14800library_names_spec=$lt_library_names_spec 14801 14802# The coded name of the library, if different from the real name. 14803soname_spec=$lt_soname_spec 14804 14805# Permission mode override for installation of shared libraries. 14806install_override_mode=$lt_install_override_mode 14807 14808# Command to use after installation of a shared archive. 14809postinstall_cmds=$lt_postinstall_cmds 14810 14811# Command to use after uninstallation of a shared archive. 14812postuninstall_cmds=$lt_postuninstall_cmds 14813 14814# Commands used to finish a libtool library installation in a directory. 14815finish_cmds=$lt_finish_cmds 14816 14817# As "finish_cmds", except a single script fragment to be evaled but 14818# not shown. 14819finish_eval=$lt_finish_eval 14820 14821# Whether we should hardcode library paths into libraries. 14822hardcode_into_libs=$hardcode_into_libs 14823 14824# Compile-time system search path for libraries. 14825sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14826 14827# Detected run-time system search path for libraries. 14828sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 14829 14830# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 14831configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 14832 14833# Whether dlopen is supported. 14834dlopen_support=$enable_dlopen 14835 14836# Whether dlopen of programs is supported. 14837dlopen_self=$enable_dlopen_self 14838 14839# Whether dlopen of statically linked programs is supported. 14840dlopen_self_static=$enable_dlopen_self_static 14841 14842# Commands to strip libraries. 14843old_striplib=$lt_old_striplib 14844striplib=$lt_striplib 14845 14846 14847# The linker used to build libraries. 14848LD=$lt_LD 14849 14850# How to create reloadable object files. 14851reload_flag=$lt_reload_flag 14852reload_cmds=$lt_reload_cmds 14853 14854# Commands used to build an old-style archive. 14855old_archive_cmds=$lt_old_archive_cmds 14856 14857# A language specific compiler. 14858CC=$lt_compiler 14859 14860# Is the compiler the GNU compiler? 14861with_gcc=$GCC 14862 14863# Compiler flag to turn off builtin functions. 14864no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14865 14866# Additional compiler flags for building library objects. 14867pic_flag=$lt_lt_prog_compiler_pic 14868 14869# How to pass a linker flag through the compiler. 14870wl=$lt_lt_prog_compiler_wl 14871 14872# Compiler flag to prevent dynamic linking. 14873link_static_flag=$lt_lt_prog_compiler_static 14874 14875# Does compiler simultaneously support -c and -o options? 14876compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14877 14878# Whether or not to add -lc for building shared libraries. 14879build_libtool_need_lc=$archive_cmds_need_lc 14880 14881# Whether or not to disallow shared libs when runtime libs are static. 14882allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14883 14884# Compiler flag to allow reflexive dlopens. 14885export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14886 14887# Compiler flag to generate shared objects directly from archives. 14888whole_archive_flag_spec=$lt_whole_archive_flag_spec 14889 14890# Whether the compiler copes with passing no objects directly. 14891compiler_needs_object=$lt_compiler_needs_object 14892 14893# Create an old-style archive from a shared archive. 14894old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14895 14896# Create a temporary old-style archive to link instead of a shared archive. 14897old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14898 14899# Commands used to build a shared archive. 14900archive_cmds=$lt_archive_cmds 14901archive_expsym_cmds=$lt_archive_expsym_cmds 14902 14903# Commands used to build a loadable module if different from building 14904# a shared archive. 14905module_cmds=$lt_module_cmds 14906module_expsym_cmds=$lt_module_expsym_cmds 14907 14908# Whether we are building with GNU ld or not. 14909with_gnu_ld=$lt_with_gnu_ld 14910 14911# Flag that allows shared libraries with undefined symbols to be built. 14912allow_undefined_flag=$lt_allow_undefined_flag 14913 14914# Flag that enforces no undefined symbols. 14915no_undefined_flag=$lt_no_undefined_flag 14916 14917# Flag to hardcode \$libdir into a binary during linking. 14918# This must work even if \$libdir does not exist 14919hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14920 14921# Whether we need a single "-rpath" flag with a separated argument. 14922hardcode_libdir_separator=$lt_hardcode_libdir_separator 14923 14924# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 14925# DIR into the resulting binary. 14926hardcode_direct=$hardcode_direct 14927 14928# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 14929# DIR into the resulting binary and the resulting library dependency is 14930# "absolute",i.e impossible to change by setting \$shlibpath_var if the 14931# library is relocated. 14932hardcode_direct_absolute=$hardcode_direct_absolute 14933 14934# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14935# into the resulting binary. 14936hardcode_minus_L=$hardcode_minus_L 14937 14938# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14939# into the resulting binary. 14940hardcode_shlibpath_var=$hardcode_shlibpath_var 14941 14942# Set to "yes" if building a shared library automatically hardcodes DIR 14943# into the library and all subsequent libraries and executables linked 14944# against it. 14945hardcode_automatic=$hardcode_automatic 14946 14947# Set to yes if linker adds runtime paths of dependent libraries 14948# to runtime path list. 14949inherit_rpath=$inherit_rpath 14950 14951# Whether libtool must link a program against all its dependency libraries. 14952link_all_deplibs=$link_all_deplibs 14953 14954# Set to "yes" if exported symbols are required. 14955always_export_symbols=$always_export_symbols 14956 14957# The commands to list exported symbols. 14958export_symbols_cmds=$lt_export_symbols_cmds 14959 14960# Symbols that should not be listed in the preloaded symbols. 14961exclude_expsyms=$lt_exclude_expsyms 14962 14963# Symbols that must always be exported. 14964include_expsyms=$lt_include_expsyms 14965 14966# Commands necessary for linking programs (against libraries) with templates. 14967prelink_cmds=$lt_prelink_cmds 14968 14969# Commands necessary for finishing linking programs. 14970postlink_cmds=$lt_postlink_cmds 14971 14972# Specify filename containing input files. 14973file_list_spec=$lt_file_list_spec 14974 14975# How to hardcode a shared library path into an executable. 14976hardcode_action=$hardcode_action 14977 14978# ### END LIBTOOL CONFIG 14979 14980_LT_EOF 14981 14982 cat <<'_LT_EOF' >> "$cfgfile" 14983 14984# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 14985 14986# func_munge_path_list VARIABLE PATH 14987# ----------------------------------- 14988# VARIABLE is name of variable containing _space_ separated list of 14989# directories to be munged by the contents of PATH, which is string 14990# having a format: 14991# "DIR[:DIR]:" 14992# string "DIR[ DIR]" will be prepended to VARIABLE 14993# ":DIR[:DIR]" 14994# string "DIR[ DIR]" will be appended to VARIABLE 14995# "DIRP[:DIRP]::[DIRA:]DIRA" 14996# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 14997# "DIRA[ DIRA]" will be appended to VARIABLE 14998# "DIR[:DIR]" 14999# VARIABLE will be replaced by "DIR[ DIR]" 15000func_munge_path_list () 15001{ 15002 case x@S|@2 in 15003 x) 15004 ;; 15005 *:) 15006 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" 15007 ;; 15008 x:*) 15009 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" 15010 ;; 15011 *::*) 15012 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 15013 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" 15014 ;; 15015 *) 15016 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" 15017 ;; 15018 esac 15019} 15020 15021 15022# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 15023func_cc_basename () 15024{ 15025 for cc_temp in @S|@*""; do 15026 case $cc_temp in 15027 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15028 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15029 \-*) ;; 15030 *) break;; 15031 esac 15032 done 15033 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 15034} 15035 15036 15037# ### END FUNCTIONS SHARED WITH CONFIGURE 15038 15039_LT_EOF 15040 15041 case $host_os in 15042 aix3*) 15043 cat <<\_LT_EOF >> "$cfgfile" 15044# AIX sometimes has problems with the GCC collect2 program. For some 15045# reason, if we set the COLLECT_NAMES environment variable, the problems 15046# vanish in a puff of smoke. 15047if test set != "${COLLECT_NAMES+set}"; then 15048 COLLECT_NAMES= 15049 export COLLECT_NAMES 15050fi 15051_LT_EOF 15052 ;; 15053 esac 15054 15055 15056ltmain=$ac_aux_dir/ltmain.sh 15057 15058 15059 # We use sed instead of cat because bash on DJGPP gets confused if 15060 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15061 # text mode, it properly converts lines to CR/LF. This bash problem 15062 # is reportedly fixed, but why not run on old versions too? 15063 sed '$q' "$ltmain" >> "$cfgfile" \ 15064 || (rm -f "$cfgfile"; exit 1) 15065 15066 mv -f "$cfgfile" "$ofile" || 15067 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15068 chmod +x "$ofile" 15069 15070 ;; 15071 15072 esac 15073done # for ac_tag 15074 15075 15076as_fn_exit 0 15077_ACEOF 15078ac_clean_files=$ac_clean_files_save 15079 15080test $ac_write_fail = 0 || 15081 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15082 15083 15084# configure is writing to config.log, and then calls config.status. 15085# config.status does its own redirection, appending to config.log. 15086# Unfortunately, on DOS this fails, as config.log is still kept open 15087# by configure, so config.status won't be able to write to it; its 15088# output is simply discarded. So we exec the FD to /dev/null, 15089# effectively closing config.log, so it can be properly (re)opened and 15090# appended to by config.status. When coming back to configure, we 15091# need to make the FD available again. 15092if test "$no_create" != yes; then 15093 ac_cs_success=: 15094 ac_config_status_args= 15095 test "$silent" = yes && 15096 ac_config_status_args="$ac_config_status_args --quiet" 15097 exec 5>/dev/null 15098 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15099 exec 5>>config.log 15100 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15101 # would make configure fail if this is the last instruction. 15102 $ac_cs_success || as_fn_exit 1 15103fi 15104if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15106$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15107fi 15108 15109 15110