1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for gupnp-dlna 0.10.3. 4# 5# Report bugs to <https://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gupnp-dlna>. 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 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: https://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gupnp-dlna 279$0: about your system, including any error possibly output 280$0: before this message. Then install a modern shell, or 281$0: manually run the script under such a shell if you do 282$0: have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570as_awk_strverscmp=' 571 # Use only awk features that work with 7th edition Unix awk (1978). 572 # My, what an old awk you have, Mr. Solaris! 573 END { 574 while (length(v1) && length(v2)) { 575 # Set d1 to be the next thing to compare from v1, and likewise for d2. 576 # Normally this is a single character, but if v1 and v2 contain digits, 577 # compare them as integers and fractions as strverscmp does. 578 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 579 # Split v1 and v2 into their leading digit string components d1 and d2, 580 # and advance v1 and v2 past the leading digit strings. 581 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 582 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 583 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 584 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 585 if (d1 ~ /^0/) { 586 if (d2 ~ /^0/) { 587 # Compare two fractions. 588 while (d1 ~ /^0/ && d2 ~ /^0/) { 589 d1 = substr(d1, 2); len1-- 590 d2 = substr(d2, 2); len2-- 591 } 592 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 593 # The two components differ in length, and the common prefix 594 # contains only leading zeros. Consider the longer to be less. 595 d1 = -len1 596 d2 = -len2 597 } else { 598 # Otherwise, compare as strings. 599 d1 = "x" d1 600 d2 = "x" d2 601 } 602 } else { 603 # A fraction is less than an integer. 604 exit 1 605 } 606 } else { 607 if (d2 ~ /^0/) { 608 # An integer is greater than a fraction. 609 exit 2 610 } else { 611 # Compare two integers. 612 d1 += 0 613 d2 += 0 614 } 615 } 616 } else { 617 # The normal case, without worrying about digits. 618 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 619 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 620 } 621 if (d1 < d2) exit 1 622 if (d1 > d2) exit 2 623 } 624 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 625 # which mishandles some comparisons of empty strings to integers. 626 if (length(v2)) exit 1 627 if (length(v1)) exit 2 628 } 629' 630 631test -n "$DJDIR" || exec 7<&0 </dev/null 632exec 6>&1 633 634# Name of the host. 635# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 636# so uname gets run too. 637ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 638 639# 640# Initializations. 641# 642ac_default_prefix=/usr/local 643ac_clean_files= 644ac_config_libobj_dir=. 645LIBOBJS= 646cross_compiling=no 647subdirs= 648MFLAGS= 649MAKEFLAGS= 650 651# Identity of this package. 652PACKAGE_NAME='gupnp-dlna' 653PACKAGE_TARNAME='gupnp-dlna' 654PACKAGE_VERSION='0.10.3' 655PACKAGE_STRING='gupnp-dlna 0.10.3' 656PACKAGE_BUGREPORT='https://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gupnp-dlna' 657PACKAGE_URL='http://www.gupnp.org/' 658 659ac_unique_file="libgupnp-dlna/gupnp-dlna-profile.h" 660# Factoring default headers for most tests. 661ac_includes_default="\ 662#include <stdio.h> 663#ifdef HAVE_SYS_TYPES_H 664# include <sys/types.h> 665#endif 666#ifdef HAVE_SYS_STAT_H 667# include <sys/stat.h> 668#endif 669#ifdef STDC_HEADERS 670# include <stdlib.h> 671# include <stddef.h> 672#else 673# ifdef HAVE_STDLIB_H 674# include <stdlib.h> 675# endif 676#endif 677#ifdef HAVE_STRING_H 678# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 679# include <memory.h> 680# endif 681# include <string.h> 682#endif 683#ifdef HAVE_STRINGS_H 684# include <strings.h> 685#endif 686#ifdef HAVE_INTTYPES_H 687# include <inttypes.h> 688#endif 689#ifdef HAVE_STDINT_H 690# include <stdint.h> 691#endif 692#ifdef HAVE_UNISTD_H 693# include <unistd.h> 694#endif" 695 696ac_subst_vars='am__EXEEXT_FALSE 697am__EXEEXT_TRUE 698LTLIBOBJS 699LIBOBJS 700HAVE_XMLLINT_FALSE 701HAVE_XMLLINT_TRUE 702XMLLINT 703GLIB_PREFIX 704GTK_DOC_USE_REBASE_FALSE 705GTK_DOC_USE_REBASE_TRUE 706GTK_DOC_USE_LIBTOOL_FALSE 707GTK_DOC_USE_LIBTOOL_TRUE 708GTK_DOC_BUILD_PDF_FALSE 709GTK_DOC_BUILD_PDF_TRUE 710GTK_DOC_BUILD_HTML_FALSE 711GTK_DOC_BUILD_HTML_TRUE 712ENABLE_GTK_DOC_FALSE 713ENABLE_GTK_DOC_TRUE 714HAVE_GTK_DOC_FALSE 715HAVE_GTK_DOC_TRUE 716GTKDOC_DEPS_LIBS 717GTKDOC_DEPS_CFLAGS 718HTML_DIR 719GTKDOC_MKPDF 720GTKDOC_REBASE 721GTKDOC_CHECK_PATH 722GTKDOC_CHECK 723HAVE_VAPIGEN_FALSE 724HAVE_VAPIGEN_TRUE 725VAPIGEN 726HAVE_INTROSPECTION_FALSE 727HAVE_INTROSPECTION_TRUE 728INTROSPECTION_MAKEFILE 729INTROSPECTION_LIBS 730INTROSPECTION_CFLAGS 731INTROSPECTION_TYPELIBDIR 732INTROSPECTION_GIRDIR 733INTROSPECTION_GENERATE 734INTROSPECTION_COMPILER 735INTROSPECTION_SCANNER 736GMODULE_LIBS 737GMODULE_CFLAGS 738GOBJECT_LIBS 739GOBJECT_CFLAGS 740GLIB_LIBS 741GLIB_CFLAGS 742GUPNP_DLNA_METADATA_BACKEND_CFLAGS 743METADATA_DIRECTORY 744GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_FALSE 745GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_TRUE 746GST_LEGACY_MAJORMINOR 747GST_PBU_LEGACY_LIBS 748GST_PBU_LEGACY_CFLAGS 749GST_LEGACY_LIBS 750GST_LEGACY_CFLAGS 751GSTREAMER_METADATA_BACKEND_ENABLED_FALSE 752GSTREAMER_METADATA_BACKEND_ENABLED_TRUE 753GST_MAJORMINOR 754GST_PBU_LIBS 755GST_PBU_CFLAGS 756GST_LIBS 757GST_CFLAGS 758LIBXML_LIBS 759LIBXML_CFLAGS 760PKG_CONFIG_LIBDIR 761PKG_CONFIG_PATH 762PKG_CONFIG 763OTOOL64 764OTOOL 765LIPO 766NMEDIT 767DSYMUTIL 768MANIFEST_TOOL 769RANLIB 770ac_ct_AR 771AR 772LN_S 773NM 774ac_ct_DUMPBIN 775DUMPBIN 776LD 777FGREP 778host_os 779host_vendor 780host_cpu 781host 782build_os 783build_vendor 784build_cpu 785build 786LIBTOOL 787OBJDUMP 788DLLTOOL 789AS 790WARN_SCANNERFLAGS 791WARN_LDFLAGS 792WARN_CFLAGS 793SED 794EGREP 795GREP 796CPP 797am__fastdepCC_FALSE 798am__fastdepCC_TRUE 799CCDEPMODE 800am__nodep 801AMDEPBACKSLASH 802AMDEP_FALSE 803AMDEP_TRUE 804am__quote 805am__include 806DEPDIR 807OBJEXT 808EXEEXT 809ac_ct_CC 810CPPFLAGS 811LDFLAGS 812CFLAGS 813CC 814GUPNP_DLNA_VERSION_INFO 815MAINT 816MAINTAINER_MODE_FALSE 817MAINTAINER_MODE_TRUE 818AM_BACKSLASH 819AM_DEFAULT_VERBOSITY 820AM_DEFAULT_V 821AM_V 822am__untar 823am__tar 824AMTAR 825am__leading_dot 826SET_MAKE 827AWK 828mkdir_p 829MKDIR_P 830INSTALL_STRIP_PROGRAM 831STRIP 832install_sh 833MAKEINFO 834AUTOHEADER 835AUTOMAKE 836AUTOCONF 837ACLOCAL 838VERSION 839PACKAGE 840CYGPATH_W 841am__isrc 842INSTALL_DATA 843INSTALL_SCRIPT 844INSTALL_PROGRAM 845target_alias 846host_alias 847build_alias 848LIBS 849ECHO_T 850ECHO_N 851ECHO_C 852DEFS 853mandir 854localedir 855libdir 856psdir 857pdfdir 858dvidir 859htmldir 860infodir 861docdir 862oldincludedir 863includedir 864localstatedir 865sharedstatedir 866sysconfdir 867datadir 868datarootdir 869libexecdir 870sbindir 871bindir 872program_transform_name 873prefix 874exec_prefix 875PACKAGE_URL 876PACKAGE_BUGREPORT 877PACKAGE_STRING 878PACKAGE_VERSION 879PACKAGE_TARNAME 880PACKAGE_NAME 881PATH_SEPARATOR 882SHELL' 883ac_subst_files='' 884ac_user_opts=' 885enable_option_checking 886enable_silent_rules 887enable_maintainer_mode 888enable_debug 889enable_dependency_tracking 890enable_compile_warnings 891enable_Werror 892enable_shared 893enable_static 894with_pic 895enable_fast_install 896with_gnu_ld 897with_sysroot 898enable_libtool_lock 899with_default_metadata_backend 900enable_gstreamer_metadata_backend 901enable_legacy_gstreamer_metadata_backend 902with_default_metadata_backend_dir 903enable_introspection 904with_html_dir 905enable_gtk_doc 906enable_gtk_doc_html 907enable_gtk_doc_pdf 908' 909 ac_precious_vars='build_alias 910host_alias 911target_alias 912CC 913CFLAGS 914LDFLAGS 915LIBS 916CPPFLAGS 917CPP 918PKG_CONFIG 919PKG_CONFIG_PATH 920PKG_CONFIG_LIBDIR 921LIBXML_CFLAGS 922LIBXML_LIBS 923GST_CFLAGS 924GST_LIBS 925GST_PBU_CFLAGS 926GST_PBU_LIBS 927GST_LEGACY_CFLAGS 928GST_LEGACY_LIBS 929GST_PBU_LEGACY_CFLAGS 930GST_PBU_LEGACY_LIBS 931GLIB_CFLAGS 932GLIB_LIBS 933GOBJECT_CFLAGS 934GOBJECT_LIBS 935GMODULE_CFLAGS 936GMODULE_LIBS 937GTKDOC_DEPS_CFLAGS 938GTKDOC_DEPS_LIBS' 939 940 941# Initialize some variables set by options. 942ac_init_help= 943ac_init_version=false 944ac_unrecognized_opts= 945ac_unrecognized_sep= 946# The variables have the same names as the options, with 947# dashes changed to underlines. 948cache_file=/dev/null 949exec_prefix=NONE 950no_create= 951no_recursion= 952prefix=NONE 953program_prefix=NONE 954program_suffix=NONE 955program_transform_name=s,x,x, 956silent= 957site= 958srcdir= 959verbose= 960x_includes=NONE 961x_libraries=NONE 962 963# Installation directory options. 964# These are left unexpanded so users can "make install exec_prefix=/foo" 965# and all the variables that are supposed to be based on exec_prefix 966# by default will actually change. 967# Use braces instead of parens because sh, perl, etc. also accept them. 968# (The list follows the same order as the GNU Coding Standards.) 969bindir='${exec_prefix}/bin' 970sbindir='${exec_prefix}/sbin' 971libexecdir='${exec_prefix}/libexec' 972datarootdir='${prefix}/share' 973datadir='${datarootdir}' 974sysconfdir='${prefix}/etc' 975sharedstatedir='${prefix}/com' 976localstatedir='${prefix}/var' 977includedir='${prefix}/include' 978oldincludedir='/usr/include' 979docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 980infodir='${datarootdir}/info' 981htmldir='${docdir}' 982dvidir='${docdir}' 983pdfdir='${docdir}' 984psdir='${docdir}' 985libdir='${exec_prefix}/lib' 986localedir='${datarootdir}/locale' 987mandir='${datarootdir}/man' 988 989ac_prev= 990ac_dashdash= 991for ac_option 992do 993 # If the previous option needs an argument, assign it. 994 if test -n "$ac_prev"; then 995 eval $ac_prev=\$ac_option 996 ac_prev= 997 continue 998 fi 999 1000 case $ac_option in 1001 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1002 *=) ac_optarg= ;; 1003 *) ac_optarg=yes ;; 1004 esac 1005 1006 # Accept the important Cygnus configure options, so we can diagnose typos. 1007 1008 case $ac_dashdash$ac_option in 1009 --) 1010 ac_dashdash=yes ;; 1011 1012 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1013 ac_prev=bindir ;; 1014 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1015 bindir=$ac_optarg ;; 1016 1017 -build | --build | --buil | --bui | --bu) 1018 ac_prev=build_alias ;; 1019 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1020 build_alias=$ac_optarg ;; 1021 1022 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1023 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1024 ac_prev=cache_file ;; 1025 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1026 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1027 cache_file=$ac_optarg ;; 1028 1029 --config-cache | -C) 1030 cache_file=config.cache ;; 1031 1032 -datadir | --datadir | --datadi | --datad) 1033 ac_prev=datadir ;; 1034 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1035 datadir=$ac_optarg ;; 1036 1037 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1038 | --dataroo | --dataro | --datar) 1039 ac_prev=datarootdir ;; 1040 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1041 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1042 datarootdir=$ac_optarg ;; 1043 1044 -disable-* | --disable-*) 1045 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1046 # Reject names that are not valid shell variable names. 1047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1048 as_fn_error $? "invalid feature name: $ac_useropt" 1049 ac_useropt_orig=$ac_useropt 1050 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1051 case $ac_user_opts in 1052 *" 1053"enable_$ac_useropt" 1054"*) ;; 1055 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1056 ac_unrecognized_sep=', ';; 1057 esac 1058 eval enable_$ac_useropt=no ;; 1059 1060 -docdir | --docdir | --docdi | --doc | --do) 1061 ac_prev=docdir ;; 1062 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1063 docdir=$ac_optarg ;; 1064 1065 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1066 ac_prev=dvidir ;; 1067 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1068 dvidir=$ac_optarg ;; 1069 1070 -enable-* | --enable-*) 1071 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1072 # Reject names that are not valid shell variable names. 1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1074 as_fn_error $? "invalid feature name: $ac_useropt" 1075 ac_useropt_orig=$ac_useropt 1076 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1077 case $ac_user_opts in 1078 *" 1079"enable_$ac_useropt" 1080"*) ;; 1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1082 ac_unrecognized_sep=', ';; 1083 esac 1084 eval enable_$ac_useropt=\$ac_optarg ;; 1085 1086 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1087 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1088 | --exec | --exe | --ex) 1089 ac_prev=exec_prefix ;; 1090 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1091 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1092 | --exec=* | --exe=* | --ex=*) 1093 exec_prefix=$ac_optarg ;; 1094 1095 -gas | --gas | --ga | --g) 1096 # Obsolete; use --with-gas. 1097 with_gas=yes ;; 1098 1099 -help | --help | --hel | --he | -h) 1100 ac_init_help=long ;; 1101 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1102 ac_init_help=recursive ;; 1103 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1104 ac_init_help=short ;; 1105 1106 -host | --host | --hos | --ho) 1107 ac_prev=host_alias ;; 1108 -host=* | --host=* | --hos=* | --ho=*) 1109 host_alias=$ac_optarg ;; 1110 1111 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1112 ac_prev=htmldir ;; 1113 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1114 | --ht=*) 1115 htmldir=$ac_optarg ;; 1116 1117 -includedir | --includedir | --includedi | --included | --include \ 1118 | --includ | --inclu | --incl | --inc) 1119 ac_prev=includedir ;; 1120 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1121 | --includ=* | --inclu=* | --incl=* | --inc=*) 1122 includedir=$ac_optarg ;; 1123 1124 -infodir | --infodir | --infodi | --infod | --info | --inf) 1125 ac_prev=infodir ;; 1126 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1127 infodir=$ac_optarg ;; 1128 1129 -libdir | --libdir | --libdi | --libd) 1130 ac_prev=libdir ;; 1131 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1132 libdir=$ac_optarg ;; 1133 1134 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1135 | --libexe | --libex | --libe) 1136 ac_prev=libexecdir ;; 1137 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1138 | --libexe=* | --libex=* | --libe=*) 1139 libexecdir=$ac_optarg ;; 1140 1141 -localedir | --localedir | --localedi | --localed | --locale) 1142 ac_prev=localedir ;; 1143 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1144 localedir=$ac_optarg ;; 1145 1146 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1147 | --localstate | --localstat | --localsta | --localst | --locals) 1148 ac_prev=localstatedir ;; 1149 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1150 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1151 localstatedir=$ac_optarg ;; 1152 1153 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1154 ac_prev=mandir ;; 1155 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1156 mandir=$ac_optarg ;; 1157 1158 -nfp | --nfp | --nf) 1159 # Obsolete; use --without-fp. 1160 with_fp=no ;; 1161 1162 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1163 | --no-cr | --no-c | -n) 1164 no_create=yes ;; 1165 1166 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1167 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1168 no_recursion=yes ;; 1169 1170 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1171 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1172 | --oldin | --oldi | --old | --ol | --o) 1173 ac_prev=oldincludedir ;; 1174 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1175 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1176 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1177 oldincludedir=$ac_optarg ;; 1178 1179 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1180 ac_prev=prefix ;; 1181 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1182 prefix=$ac_optarg ;; 1183 1184 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1185 | --program-pre | --program-pr | --program-p) 1186 ac_prev=program_prefix ;; 1187 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1188 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1189 program_prefix=$ac_optarg ;; 1190 1191 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1192 | --program-suf | --program-su | --program-s) 1193 ac_prev=program_suffix ;; 1194 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1195 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1196 program_suffix=$ac_optarg ;; 1197 1198 -program-transform-name | --program-transform-name \ 1199 | --program-transform-nam | --program-transform-na \ 1200 | --program-transform-n | --program-transform- \ 1201 | --program-transform | --program-transfor \ 1202 | --program-transfo | --program-transf \ 1203 | --program-trans | --program-tran \ 1204 | --progr-tra | --program-tr | --program-t) 1205 ac_prev=program_transform_name ;; 1206 -program-transform-name=* | --program-transform-name=* \ 1207 | --program-transform-nam=* | --program-transform-na=* \ 1208 | --program-transform-n=* | --program-transform-=* \ 1209 | --program-transform=* | --program-transfor=* \ 1210 | --program-transfo=* | --program-transf=* \ 1211 | --program-trans=* | --program-tran=* \ 1212 | --progr-tra=* | --program-tr=* | --program-t=*) 1213 program_transform_name=$ac_optarg ;; 1214 1215 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1216 ac_prev=pdfdir ;; 1217 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1218 pdfdir=$ac_optarg ;; 1219 1220 -psdir | --psdir | --psdi | --psd | --ps) 1221 ac_prev=psdir ;; 1222 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1223 psdir=$ac_optarg ;; 1224 1225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1226 | -silent | --silent | --silen | --sile | --sil) 1227 silent=yes ;; 1228 1229 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1230 ac_prev=sbindir ;; 1231 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1232 | --sbi=* | --sb=*) 1233 sbindir=$ac_optarg ;; 1234 1235 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1236 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1237 | --sharedst | --shareds | --shared | --share | --shar \ 1238 | --sha | --sh) 1239 ac_prev=sharedstatedir ;; 1240 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1241 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1242 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1243 | --sha=* | --sh=*) 1244 sharedstatedir=$ac_optarg ;; 1245 1246 -site | --site | --sit) 1247 ac_prev=site ;; 1248 -site=* | --site=* | --sit=*) 1249 site=$ac_optarg ;; 1250 1251 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1252 ac_prev=srcdir ;; 1253 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1254 srcdir=$ac_optarg ;; 1255 1256 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1257 | --syscon | --sysco | --sysc | --sys | --sy) 1258 ac_prev=sysconfdir ;; 1259 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1260 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1261 sysconfdir=$ac_optarg ;; 1262 1263 -target | --target | --targe | --targ | --tar | --ta | --t) 1264 ac_prev=target_alias ;; 1265 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1266 target_alias=$ac_optarg ;; 1267 1268 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1269 verbose=yes ;; 1270 1271 -version | --version | --versio | --versi | --vers | -V) 1272 ac_init_version=: ;; 1273 1274 -with-* | --with-*) 1275 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1276 # Reject names that are not valid shell variable names. 1277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1278 as_fn_error $? "invalid package name: $ac_useropt" 1279 ac_useropt_orig=$ac_useropt 1280 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1281 case $ac_user_opts in 1282 *" 1283"with_$ac_useropt" 1284"*) ;; 1285 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1286 ac_unrecognized_sep=', ';; 1287 esac 1288 eval with_$ac_useropt=\$ac_optarg ;; 1289 1290 -without-* | --without-*) 1291 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1292 # Reject names that are not valid shell variable names. 1293 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1294 as_fn_error $? "invalid package name: $ac_useropt" 1295 ac_useropt_orig=$ac_useropt 1296 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1297 case $ac_user_opts in 1298 *" 1299"with_$ac_useropt" 1300"*) ;; 1301 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1302 ac_unrecognized_sep=', ';; 1303 esac 1304 eval with_$ac_useropt=no ;; 1305 1306 --x) 1307 # Obsolete; use --with-x. 1308 with_x=yes ;; 1309 1310 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1311 | --x-incl | --x-inc | --x-in | --x-i) 1312 ac_prev=x_includes ;; 1313 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1314 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1315 x_includes=$ac_optarg ;; 1316 1317 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1318 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1319 ac_prev=x_libraries ;; 1320 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1321 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1322 x_libraries=$ac_optarg ;; 1323 1324 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1325Try \`$0 --help' for more information" 1326 ;; 1327 1328 *=*) 1329 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1330 # Reject names that are not valid shell variable names. 1331 case $ac_envvar in #( 1332 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1333 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1334 esac 1335 eval $ac_envvar=\$ac_optarg 1336 export $ac_envvar ;; 1337 1338 *) 1339 # FIXME: should be removed in autoconf 3.0. 1340 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1341 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1342 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1343 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1344 ;; 1345 1346 esac 1347done 1348 1349if test -n "$ac_prev"; then 1350 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1351 as_fn_error $? "missing argument to $ac_option" 1352fi 1353 1354if test -n "$ac_unrecognized_opts"; then 1355 case $enable_option_checking in 1356 no) ;; 1357 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1358 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1359 esac 1360fi 1361 1362# Check all directory arguments for consistency. 1363for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1364 datadir sysconfdir sharedstatedir localstatedir includedir \ 1365 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1366 libdir localedir mandir 1367do 1368 eval ac_val=\$$ac_var 1369 # Remove trailing slashes. 1370 case $ac_val in 1371 */ ) 1372 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1373 eval $ac_var=\$ac_val;; 1374 esac 1375 # Be sure to have absolute directory names. 1376 case $ac_val in 1377 [\\/$]* | ?:[\\/]* ) continue;; 1378 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1379 esac 1380 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1381done 1382 1383# There might be people who depend on the old broken behavior: `$host' 1384# used to hold the argument of --host etc. 1385# FIXME: To remove some day. 1386build=$build_alias 1387host=$host_alias 1388target=$target_alias 1389 1390# FIXME: To remove some day. 1391if test "x$host_alias" != x; then 1392 if test "x$build_alias" = x; then 1393 cross_compiling=maybe 1394 elif test "x$build_alias" != "x$host_alias"; then 1395 cross_compiling=yes 1396 fi 1397fi 1398 1399ac_tool_prefix= 1400test -n "$host_alias" && ac_tool_prefix=$host_alias- 1401 1402test "$silent" = yes && exec 6>/dev/null 1403 1404 1405ac_pwd=`pwd` && test -n "$ac_pwd" && 1406ac_ls_di=`ls -di .` && 1407ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1408 as_fn_error $? "working directory cannot be determined" 1409test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1410 as_fn_error $? "pwd does not report name of working directory" 1411 1412 1413# Find the source files, if location was not specified. 1414if test -z "$srcdir"; then 1415 ac_srcdir_defaulted=yes 1416 # Try the directory containing this script, then the parent directory. 1417 ac_confdir=`$as_dirname -- "$as_myself" || 1418$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1419 X"$as_myself" : 'X\(//\)[^/]' \| \ 1420 X"$as_myself" : 'X\(//\)$' \| \ 1421 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1422$as_echo X"$as_myself" | 1423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1424 s//\1/ 1425 q 1426 } 1427 /^X\(\/\/\)[^/].*/{ 1428 s//\1/ 1429 q 1430 } 1431 /^X\(\/\/\)$/{ 1432 s//\1/ 1433 q 1434 } 1435 /^X\(\/\).*/{ 1436 s//\1/ 1437 q 1438 } 1439 s/.*/./; q'` 1440 srcdir=$ac_confdir 1441 if test ! -r "$srcdir/$ac_unique_file"; then 1442 srcdir=.. 1443 fi 1444else 1445 ac_srcdir_defaulted=no 1446fi 1447if test ! -r "$srcdir/$ac_unique_file"; then 1448 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1449 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1450fi 1451ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1452ac_abs_confdir=`( 1453 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1454 pwd)` 1455# When building in place, set srcdir=. 1456if test "$ac_abs_confdir" = "$ac_pwd"; then 1457 srcdir=. 1458fi 1459# Remove unnecessary trailing slashes from srcdir. 1460# Double slashes in file names in object file debugging info 1461# mess up M-x gdb in Emacs. 1462case $srcdir in 1463*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1464esac 1465for ac_var in $ac_precious_vars; do 1466 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1467 eval ac_env_${ac_var}_value=\$${ac_var} 1468 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1469 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1470done 1471 1472# 1473# Report the --help message. 1474# 1475if test "$ac_init_help" = "long"; then 1476 # Omit some internal or obsolete options to make the list less imposing. 1477 # This message is too long to be a string in the A/UX 3.1 sh. 1478 cat <<_ACEOF 1479\`configure' configures gupnp-dlna 0.10.3 to adapt to many kinds of systems. 1480 1481Usage: $0 [OPTION]... [VAR=VALUE]... 1482 1483To assign environment variables (e.g., CC, CFLAGS...), specify them as 1484VAR=VALUE. See below for descriptions of some of the useful variables. 1485 1486Defaults for the options are specified in brackets. 1487 1488Configuration: 1489 -h, --help display this help and exit 1490 --help=short display options specific to this package 1491 --help=recursive display the short help of all the included packages 1492 -V, --version display version information and exit 1493 -q, --quiet, --silent do not print \`checking ...' messages 1494 --cache-file=FILE cache test results in FILE [disabled] 1495 -C, --config-cache alias for \`--cache-file=config.cache' 1496 -n, --no-create do not create output files 1497 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1498 1499Installation directories: 1500 --prefix=PREFIX install architecture-independent files in PREFIX 1501 [$ac_default_prefix] 1502 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1503 [PREFIX] 1504 1505By default, \`make install' will install all the files in 1506\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1507an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1508for instance \`--prefix=\$HOME'. 1509 1510For better control, use the options below. 1511 1512Fine tuning of the installation directories: 1513 --bindir=DIR user executables [EPREFIX/bin] 1514 --sbindir=DIR system admin executables [EPREFIX/sbin] 1515 --libexecdir=DIR program executables [EPREFIX/libexec] 1516 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1517 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1518 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1519 --libdir=DIR object code libraries [EPREFIX/lib] 1520 --includedir=DIR C header files [PREFIX/include] 1521 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1522 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1523 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1524 --infodir=DIR info documentation [DATAROOTDIR/info] 1525 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1526 --mandir=DIR man documentation [DATAROOTDIR/man] 1527 --docdir=DIR documentation root [DATAROOTDIR/doc/gupnp-dlna] 1528 --htmldir=DIR html documentation [DOCDIR] 1529 --dvidir=DIR dvi documentation [DOCDIR] 1530 --pdfdir=DIR pdf documentation [DOCDIR] 1531 --psdir=DIR ps documentation [DOCDIR] 1532_ACEOF 1533 1534 cat <<\_ACEOF 1535 1536Program names: 1537 --program-prefix=PREFIX prepend PREFIX to installed program names 1538 --program-suffix=SUFFIX append SUFFIX to installed program names 1539 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1540 1541System types: 1542 --build=BUILD configure for building on BUILD [guessed] 1543 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1544_ACEOF 1545fi 1546 1547if test -n "$ac_init_help"; then 1548 case $ac_init_help in 1549 short | recursive ) echo "Configuration of gupnp-dlna 0.10.3:";; 1550 esac 1551 cat <<\_ACEOF 1552 1553Optional Features: 1554 --disable-option-checking ignore unrecognized --enable/--with options 1555 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1556 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1557 --enable-silent-rules less verbose build output (undo: "make V=1") 1558 --disable-silent-rules verbose build output (undo: "make V=0") 1559 --disable-maintainer-mode 1560 disable make rules and dependencies not useful (and 1561 sometimes confusing) to the casual installer 1562 --enable-debug[=yes] compile with debugging; one of yes/info/profile/no 1563 --enable-dependency-tracking 1564 do not reject slow dependency extractors 1565 --disable-dependency-tracking 1566 speeds up one-time build 1567 --enable-compile-warnings=[no/yes/error] 1568 Enable compiler warnings and errors 1569 --disable-Werror Unconditionally make all compiler warnings non-fatal 1570 --enable-shared[=PKGS] build shared libraries [default=yes] 1571 --enable-static[=PKGS] build static libraries [default=yes] 1572 --enable-fast-install[=PKGS] 1573 optimize for fast installation [default=yes] 1574 --disable-libtool-lock avoid locking (might break parallel builds) 1575 --enable-gstreamer-metadata-backend 1576 build a GStreamer metadata backend [default=auto] 1577 --enable-legacy-gstreamer-metadata-backend 1578 build a GStreamer 0.10 metadata backend [default=no] 1579 --enable-debug enable debugging [default=no] 1580 --enable-introspection=[no/auto/yes] 1581 Enable introspection for this build 1582 --enable-gtk-doc use gtk-doc to build documentation [[default=no]] 1583 --enable-gtk-doc-html build documentation in html format [[default=yes]] 1584 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]] 1585 1586Optional Packages: 1587 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1588 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1589 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1590 both] 1591 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1592 --with-sysroot=DIR Search for dependent libraries within DIR 1593 (or the compiler's sysroot if not specified). 1594 --with-default-metadata-backend=your_backend 1595 set a default metadata backend [default=gstreamer] 1596 --with-default-metadata-backend-dir=your_directory 1597 set a default metadata backend directory 1598 [default=$libdir/$PACKAGE_NAME] 1599 --with-html-dir=PATH path to installed docs 1600 1601Some influential environment variables: 1602 CC C compiler command 1603 CFLAGS C compiler flags 1604 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1605 nonstandard directory <lib dir> 1606 LIBS libraries to pass to the linker, e.g. -l<library> 1607 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1608 you have headers in a nonstandard directory <include dir> 1609 CPP C preprocessor 1610 PKG_CONFIG path to pkg-config utility 1611 PKG_CONFIG_PATH 1612 directories to add to pkg-config's search path 1613 PKG_CONFIG_LIBDIR 1614 path overriding pkg-config's built-in search path 1615 LIBXML_CFLAGS 1616 C compiler flags for LIBXML, overriding pkg-config 1617 LIBXML_LIBS linker flags for LIBXML, overriding pkg-config 1618 GST_CFLAGS C compiler flags for GST, overriding pkg-config 1619 GST_LIBS linker flags for GST, overriding pkg-config 1620 GST_PBU_CFLAGS 1621 C compiler flags for GST_PBU, overriding pkg-config 1622 GST_PBU_LIBS 1623 linker flags for GST_PBU, overriding pkg-config 1624 GST_LEGACY_CFLAGS 1625 C compiler flags for GST_LEGACY, overriding pkg-config 1626 GST_LEGACY_LIBS 1627 linker flags for GST_LEGACY, overriding pkg-config 1628 GST_PBU_LEGACY_CFLAGS 1629 C compiler flags for GST_PBU_LEGACY, overriding pkg-config 1630 GST_PBU_LEGACY_LIBS 1631 linker flags for GST_PBU_LEGACY, overriding pkg-config 1632 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config 1633 GLIB_LIBS linker flags for GLIB, overriding pkg-config 1634 GOBJECT_CFLAGS 1635 C compiler flags for GOBJECT, overriding pkg-config 1636 GOBJECT_LIBS 1637 linker flags for GOBJECT, overriding pkg-config 1638 GMODULE_CFLAGS 1639 C compiler flags for GMODULE, overriding pkg-config 1640 GMODULE_LIBS 1641 linker flags for GMODULE, overriding pkg-config 1642 GTKDOC_DEPS_CFLAGS 1643 C compiler flags for GTKDOC_DEPS, overriding pkg-config 1644 GTKDOC_DEPS_LIBS 1645 linker flags for GTKDOC_DEPS, overriding pkg-config 1646 1647Use these variables to override the choices made by `configure' or to help 1648it to find libraries and programs with nonstandard names/locations. 1649 1650Report bugs to <https://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gupnp-dlna>. 1651gupnp-dlna home page: <http://www.gupnp.org/>. 1652_ACEOF 1653ac_status=$? 1654fi 1655 1656if test "$ac_init_help" = "recursive"; then 1657 # If there are subdirs, report their specific --help. 1658 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1659 test -d "$ac_dir" || 1660 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1661 continue 1662 ac_builddir=. 1663 1664case "$ac_dir" in 1665.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1666*) 1667 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1668 # A ".." for each directory in $ac_dir_suffix. 1669 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1670 case $ac_top_builddir_sub in 1671 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1672 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1673 esac ;; 1674esac 1675ac_abs_top_builddir=$ac_pwd 1676ac_abs_builddir=$ac_pwd$ac_dir_suffix 1677# for backward compatibility: 1678ac_top_builddir=$ac_top_build_prefix 1679 1680case $srcdir in 1681 .) # We are building in place. 1682 ac_srcdir=. 1683 ac_top_srcdir=$ac_top_builddir_sub 1684 ac_abs_top_srcdir=$ac_pwd ;; 1685 [\\/]* | ?:[\\/]* ) # Absolute name. 1686 ac_srcdir=$srcdir$ac_dir_suffix; 1687 ac_top_srcdir=$srcdir 1688 ac_abs_top_srcdir=$srcdir ;; 1689 *) # Relative name. 1690 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1691 ac_top_srcdir=$ac_top_build_prefix$srcdir 1692 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1693esac 1694ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1695 1696 cd "$ac_dir" || { ac_status=$?; continue; } 1697 # Check for guested configure. 1698 if test -f "$ac_srcdir/configure.gnu"; then 1699 echo && 1700 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1701 elif test -f "$ac_srcdir/configure"; then 1702 echo && 1703 $SHELL "$ac_srcdir/configure" --help=recursive 1704 else 1705 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1706 fi || ac_status=$? 1707 cd "$ac_pwd" || { ac_status=$?; break; } 1708 done 1709fi 1710 1711test -n "$ac_init_help" && exit $ac_status 1712if $ac_init_version; then 1713 cat <<\_ACEOF 1714gupnp-dlna configure 0.10.3 1715generated by GNU Autoconf 2.69 1716 1717Copyright (C) 2012 Free Software Foundation, Inc. 1718This configure script is free software; the Free Software Foundation 1719gives unlimited permission to copy, distribute and modify it. 1720_ACEOF 1721 exit 1722fi 1723 1724## ------------------------ ## 1725## Autoconf initialization. ## 1726## ------------------------ ## 1727 1728# ac_fn_c_try_compile LINENO 1729# -------------------------- 1730# Try to compile conftest.$ac_ext, and return whether this succeeded. 1731ac_fn_c_try_compile () 1732{ 1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1734 rm -f conftest.$ac_objext 1735 if { { ac_try="$ac_compile" 1736case "(($ac_try" in 1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1738 *) ac_try_echo=$ac_try;; 1739esac 1740eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1741$as_echo "$ac_try_echo"; } >&5 1742 (eval "$ac_compile") 2>conftest.err 1743 ac_status=$? 1744 if test -s conftest.err; then 1745 grep -v '^ *+' conftest.err >conftest.er1 1746 cat conftest.er1 >&5 1747 mv -f conftest.er1 conftest.err 1748 fi 1749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1750 test $ac_status = 0; } && { 1751 test -z "$ac_c_werror_flag" || 1752 test ! -s conftest.err 1753 } && test -s conftest.$ac_objext; then : 1754 ac_retval=0 1755else 1756 $as_echo "$as_me: failed program was:" >&5 1757sed 's/^/| /' conftest.$ac_ext >&5 1758 1759 ac_retval=1 1760fi 1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1762 as_fn_set_status $ac_retval 1763 1764} # ac_fn_c_try_compile 1765 1766# ac_fn_c_try_cpp LINENO 1767# ---------------------- 1768# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1769ac_fn_c_try_cpp () 1770{ 1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1772 if { { ac_try="$ac_cpp conftest.$ac_ext" 1773case "(($ac_try" in 1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1775 *) ac_try_echo=$ac_try;; 1776esac 1777eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1778$as_echo "$ac_try_echo"; } >&5 1779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1780 ac_status=$? 1781 if test -s conftest.err; then 1782 grep -v '^ *+' conftest.err >conftest.er1 1783 cat conftest.er1 >&5 1784 mv -f conftest.er1 conftest.err 1785 fi 1786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1787 test $ac_status = 0; } > conftest.i && { 1788 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1789 test ! -s conftest.err 1790 }; then : 1791 ac_retval=0 1792else 1793 $as_echo "$as_me: failed program was:" >&5 1794sed 's/^/| /' conftest.$ac_ext >&5 1795 1796 ac_retval=1 1797fi 1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1799 as_fn_set_status $ac_retval 1800 1801} # ac_fn_c_try_cpp 1802 1803# ac_fn_c_try_run LINENO 1804# ---------------------- 1805# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1806# that executables *can* be run. 1807ac_fn_c_try_run () 1808{ 1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1810 if { { ac_try="$ac_link" 1811case "(($ac_try" in 1812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1813 *) ac_try_echo=$ac_try;; 1814esac 1815eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1816$as_echo "$ac_try_echo"; } >&5 1817 (eval "$ac_link") 2>&5 1818 ac_status=$? 1819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1820 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1821 { { case "(($ac_try" in 1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1823 *) ac_try_echo=$ac_try;; 1824esac 1825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1826$as_echo "$ac_try_echo"; } >&5 1827 (eval "$ac_try") 2>&5 1828 ac_status=$? 1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1830 test $ac_status = 0; }; }; then : 1831 ac_retval=0 1832else 1833 $as_echo "$as_me: program exited with status $ac_status" >&5 1834 $as_echo "$as_me: failed program was:" >&5 1835sed 's/^/| /' conftest.$ac_ext >&5 1836 1837 ac_retval=$ac_status 1838fi 1839 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1841 as_fn_set_status $ac_retval 1842 1843} # ac_fn_c_try_run 1844 1845# ac_fn_c_try_link LINENO 1846# ----------------------- 1847# Try to link conftest.$ac_ext, and return whether this succeeded. 1848ac_fn_c_try_link () 1849{ 1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1851 rm -f conftest.$ac_objext conftest$ac_exeext 1852 if { { ac_try="$ac_link" 1853case "(($ac_try" in 1854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1855 *) ac_try_echo=$ac_try;; 1856esac 1857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1858$as_echo "$ac_try_echo"; } >&5 1859 (eval "$ac_link") 2>conftest.err 1860 ac_status=$? 1861 if test -s conftest.err; then 1862 grep -v '^ *+' conftest.err >conftest.er1 1863 cat conftest.er1 >&5 1864 mv -f conftest.er1 conftest.err 1865 fi 1866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1867 test $ac_status = 0; } && { 1868 test -z "$ac_c_werror_flag" || 1869 test ! -s conftest.err 1870 } && test -s conftest$ac_exeext && { 1871 test "$cross_compiling" = yes || 1872 test -x conftest$ac_exeext 1873 }; then : 1874 ac_retval=0 1875else 1876 $as_echo "$as_me: failed program was:" >&5 1877sed 's/^/| /' conftest.$ac_ext >&5 1878 1879 ac_retval=1 1880fi 1881 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1882 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1883 # interfere with the next link command; also delete a directory that is 1884 # left behind by Apple's compiler. We do this before executing the actions. 1885 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1887 as_fn_set_status $ac_retval 1888 1889} # ac_fn_c_try_link 1890 1891# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1892# ------------------------------------------------------- 1893# Tests whether HEADER exists and can be compiled using the include files in 1894# INCLUDES, setting the cache variable VAR accordingly. 1895ac_fn_c_check_header_compile () 1896{ 1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1899$as_echo_n "checking for $2... " >&6; } 1900if eval \${$3+:} false; then : 1901 $as_echo_n "(cached) " >&6 1902else 1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1904/* end confdefs.h. */ 1905$4 1906#include <$2> 1907_ACEOF 1908if ac_fn_c_try_compile "$LINENO"; then : 1909 eval "$3=yes" 1910else 1911 eval "$3=no" 1912fi 1913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1914fi 1915eval ac_res=\$$3 1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1917$as_echo "$ac_res" >&6; } 1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1919 1920} # ac_fn_c_check_header_compile 1921 1922# ac_fn_c_check_func LINENO FUNC VAR 1923# ---------------------------------- 1924# Tests whether FUNC exists, setting the cache variable VAR accordingly 1925ac_fn_c_check_func () 1926{ 1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1929$as_echo_n "checking for $2... " >&6; } 1930if eval \${$3+:} false; then : 1931 $as_echo_n "(cached) " >&6 1932else 1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1934/* end confdefs.h. */ 1935/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1936 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1937#define $2 innocuous_$2 1938 1939/* System header to define __stub macros and hopefully few prototypes, 1940 which can conflict with char $2 (); below. 1941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1942 <limits.h> exists even on freestanding compilers. */ 1943 1944#ifdef __STDC__ 1945# include <limits.h> 1946#else 1947# include <assert.h> 1948#endif 1949 1950#undef $2 1951 1952/* Override any GCC internal prototype to avoid an error. 1953 Use char because int might match the return type of a GCC 1954 builtin and then its argument prototype would still apply. */ 1955#ifdef __cplusplus 1956extern "C" 1957#endif 1958char $2 (); 1959/* The GNU C library defines this for functions which it implements 1960 to always fail with ENOSYS. Some functions are actually named 1961 something starting with __ and the normal name is an alias. */ 1962#if defined __stub_$2 || defined __stub___$2 1963choke me 1964#endif 1965 1966int 1967main () 1968{ 1969return $2 (); 1970 ; 1971 return 0; 1972} 1973_ACEOF 1974if ac_fn_c_try_link "$LINENO"; then : 1975 eval "$3=yes" 1976else 1977 eval "$3=no" 1978fi 1979rm -f core conftest.err conftest.$ac_objext \ 1980 conftest$ac_exeext conftest.$ac_ext 1981fi 1982eval ac_res=\$$3 1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1984$as_echo "$ac_res" >&6; } 1985 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1986 1987} # ac_fn_c_check_func 1988cat >config.log <<_ACEOF 1989This file contains any messages produced by compilers while 1990running configure, to aid debugging if configure makes a mistake. 1991 1992It was created by gupnp-dlna $as_me 0.10.3, which was 1993generated by GNU Autoconf 2.69. Invocation command line was 1994 1995 $ $0 $@ 1996 1997_ACEOF 1998exec 5>>config.log 1999{ 2000cat <<_ASUNAME 2001## --------- ## 2002## Platform. ## 2003## --------- ## 2004 2005hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2006uname -m = `(uname -m) 2>/dev/null || echo unknown` 2007uname -r = `(uname -r) 2>/dev/null || echo unknown` 2008uname -s = `(uname -s) 2>/dev/null || echo unknown` 2009uname -v = `(uname -v) 2>/dev/null || echo unknown` 2010 2011/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2012/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2013 2014/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2015/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2016/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2017/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2018/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2019/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2020/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2021 2022_ASUNAME 2023 2024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2025for as_dir in $PATH 2026do 2027 IFS=$as_save_IFS 2028 test -z "$as_dir" && as_dir=. 2029 $as_echo "PATH: $as_dir" 2030 done 2031IFS=$as_save_IFS 2032 2033} >&5 2034 2035cat >&5 <<_ACEOF 2036 2037 2038## ----------- ## 2039## Core tests. ## 2040## ----------- ## 2041 2042_ACEOF 2043 2044 2045# Keep a trace of the command line. 2046# Strip out --no-create and --no-recursion so they do not pile up. 2047# Strip out --silent because we don't want to record it for future runs. 2048# Also quote any args containing shell meta-characters. 2049# Make two passes to allow for proper duplicate-argument suppression. 2050ac_configure_args= 2051ac_configure_args0= 2052ac_configure_args1= 2053ac_must_keep_next=false 2054for ac_pass in 1 2 2055do 2056 for ac_arg 2057 do 2058 case $ac_arg in 2059 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2061 | -silent | --silent | --silen | --sile | --sil) 2062 continue ;; 2063 *\'*) 2064 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2065 esac 2066 case $ac_pass in 2067 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2068 2) 2069 as_fn_append ac_configure_args1 " '$ac_arg'" 2070 if test $ac_must_keep_next = true; then 2071 ac_must_keep_next=false # Got value, back to normal. 2072 else 2073 case $ac_arg in 2074 *=* | --config-cache | -C | -disable-* | --disable-* \ 2075 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2076 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2077 | -with-* | --with-* | -without-* | --without-* | --x) 2078 case "$ac_configure_args0 " in 2079 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2080 esac 2081 ;; 2082 -* ) ac_must_keep_next=true ;; 2083 esac 2084 fi 2085 as_fn_append ac_configure_args " '$ac_arg'" 2086 ;; 2087 esac 2088 done 2089done 2090{ ac_configure_args0=; unset ac_configure_args0;} 2091{ ac_configure_args1=; unset ac_configure_args1;} 2092 2093# When interrupted or exit'd, cleanup temporary files, and complete 2094# config.log. We remove comments because anyway the quotes in there 2095# would cause problems or look ugly. 2096# WARNING: Use '\'' to represent an apostrophe within the trap. 2097# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2098trap 'exit_status=$? 2099 # Save into config.log some information that might help in debugging. 2100 { 2101 echo 2102 2103 $as_echo "## ---------------- ## 2104## Cache variables. ## 2105## ---------------- ##" 2106 echo 2107 # The following way of writing the cache mishandles newlines in values, 2108( 2109 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2110 eval ac_val=\$$ac_var 2111 case $ac_val in #( 2112 *${as_nl}*) 2113 case $ac_var in #( 2114 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2115$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2116 esac 2117 case $ac_var in #( 2118 _ | IFS | as_nl) ;; #( 2119 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2120 *) { eval $ac_var=; unset $ac_var;} ;; 2121 esac ;; 2122 esac 2123 done 2124 (set) 2>&1 | 2125 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2126 *${as_nl}ac_space=\ *) 2127 sed -n \ 2128 "s/'\''/'\''\\\\'\'''\''/g; 2129 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2130 ;; #( 2131 *) 2132 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2133 ;; 2134 esac | 2135 sort 2136) 2137 echo 2138 2139 $as_echo "## ----------------- ## 2140## Output variables. ## 2141## ----------------- ##" 2142 echo 2143 for ac_var in $ac_subst_vars 2144 do 2145 eval ac_val=\$$ac_var 2146 case $ac_val in 2147 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2148 esac 2149 $as_echo "$ac_var='\''$ac_val'\''" 2150 done | sort 2151 echo 2152 2153 if test -n "$ac_subst_files"; then 2154 $as_echo "## ------------------- ## 2155## File substitutions. ## 2156## ------------------- ##" 2157 echo 2158 for ac_var in $ac_subst_files 2159 do 2160 eval ac_val=\$$ac_var 2161 case $ac_val in 2162 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2163 esac 2164 $as_echo "$ac_var='\''$ac_val'\''" 2165 done | sort 2166 echo 2167 fi 2168 2169 if test -s confdefs.h; then 2170 $as_echo "## ----------- ## 2171## confdefs.h. ## 2172## ----------- ##" 2173 echo 2174 cat confdefs.h 2175 echo 2176 fi 2177 test "$ac_signal" != 0 && 2178 $as_echo "$as_me: caught signal $ac_signal" 2179 $as_echo "$as_me: exit $exit_status" 2180 } >&5 2181 rm -f core *.core core.conftest.* && 2182 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2183 exit $exit_status 2184' 0 2185for ac_signal in 1 2 13 15; do 2186 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2187done 2188ac_signal=0 2189 2190# confdefs.h avoids OS command line length limits that DEFS can exceed. 2191rm -f -r conftest* confdefs.h 2192 2193$as_echo "/* confdefs.h */" > confdefs.h 2194 2195# Predefined preprocessor variables. 2196 2197cat >>confdefs.h <<_ACEOF 2198#define PACKAGE_NAME "$PACKAGE_NAME" 2199_ACEOF 2200 2201cat >>confdefs.h <<_ACEOF 2202#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2203_ACEOF 2204 2205cat >>confdefs.h <<_ACEOF 2206#define PACKAGE_VERSION "$PACKAGE_VERSION" 2207_ACEOF 2208 2209cat >>confdefs.h <<_ACEOF 2210#define PACKAGE_STRING "$PACKAGE_STRING" 2211_ACEOF 2212 2213cat >>confdefs.h <<_ACEOF 2214#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2215_ACEOF 2216 2217cat >>confdefs.h <<_ACEOF 2218#define PACKAGE_URL "$PACKAGE_URL" 2219_ACEOF 2220 2221 2222# Let the site file select an alternate cache file if it wants to. 2223# Prefer an explicitly selected file to automatically selected ones. 2224ac_site_file1=NONE 2225ac_site_file2=NONE 2226if test -n "$CONFIG_SITE"; then 2227 # We do not want a PATH search for config.site. 2228 case $CONFIG_SITE in #(( 2229 -*) ac_site_file1=./$CONFIG_SITE;; 2230 */*) ac_site_file1=$CONFIG_SITE;; 2231 *) ac_site_file1=./$CONFIG_SITE;; 2232 esac 2233elif test "x$prefix" != xNONE; then 2234 ac_site_file1=$prefix/share/config.site 2235 ac_site_file2=$prefix/etc/config.site 2236else 2237 ac_site_file1=$ac_default_prefix/share/config.site 2238 ac_site_file2=$ac_default_prefix/etc/config.site 2239fi 2240for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2241do 2242 test "x$ac_site_file" = xNONE && continue 2243 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2244 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2245$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2246 sed 's/^/| /' "$ac_site_file" >&5 2247 . "$ac_site_file" \ 2248 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2249$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2250as_fn_error $? "failed to load site script $ac_site_file 2251See \`config.log' for more details" "$LINENO" 5; } 2252 fi 2253done 2254 2255if test -r "$cache_file"; then 2256 # Some versions of bash will fail to source /dev/null (special files 2257 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2258 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2259 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2260$as_echo "$as_me: loading cache $cache_file" >&6;} 2261 case $cache_file in 2262 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2263 *) . "./$cache_file";; 2264 esac 2265 fi 2266else 2267 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2268$as_echo "$as_me: creating cache $cache_file" >&6;} 2269 >$cache_file 2270fi 2271 2272# Check that the precious variables saved in the cache have kept the same 2273# value. 2274ac_cache_corrupted=false 2275for ac_var in $ac_precious_vars; do 2276 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2277 eval ac_new_set=\$ac_env_${ac_var}_set 2278 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2279 eval ac_new_val=\$ac_env_${ac_var}_value 2280 case $ac_old_set,$ac_new_set in 2281 set,) 2282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2283$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2284 ac_cache_corrupted=: ;; 2285 ,set) 2286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2287$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2288 ac_cache_corrupted=: ;; 2289 ,);; 2290 *) 2291 if test "x$ac_old_val" != "x$ac_new_val"; then 2292 # differences in whitespace do not lead to failure. 2293 ac_old_val_w=`echo x $ac_old_val` 2294 ac_new_val_w=`echo x $ac_new_val` 2295 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2296 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2297$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2298 ac_cache_corrupted=: 2299 else 2300 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2301$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2302 eval $ac_var=\$ac_old_val 2303 fi 2304 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2305$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2306 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2307$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2308 fi;; 2309 esac 2310 # Pass precious variables to config.status. 2311 if test "$ac_new_set" = set; then 2312 case $ac_new_val in 2313 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2314 *) ac_arg=$ac_var=$ac_new_val ;; 2315 esac 2316 case " $ac_configure_args " in 2317 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2318 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2319 esac 2320 fi 2321done 2322if $ac_cache_corrupted; then 2323 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2325 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2326$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2327 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2328fi 2329## -------------------- ## 2330## Main body of script. ## 2331## -------------------- ## 2332 2333ac_ext=c 2334ac_cpp='$CPP $CPPFLAGS' 2335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2337ac_compiler_gnu=$ac_cv_c_compiler_gnu 2338 2339 2340 2341ac_config_headers="$ac_config_headers config.h" 2342 2343 2344 2345ac_aux_dir= 2346for ac_dir in build-aux "$srcdir"/build-aux; do 2347 if test -f "$ac_dir/install-sh"; then 2348 ac_aux_dir=$ac_dir 2349 ac_install_sh="$ac_aux_dir/install-sh -c" 2350 break 2351 elif test -f "$ac_dir/install.sh"; then 2352 ac_aux_dir=$ac_dir 2353 ac_install_sh="$ac_aux_dir/install.sh -c" 2354 break 2355 elif test -f "$ac_dir/shtool"; then 2356 ac_aux_dir=$ac_dir 2357 ac_install_sh="$ac_aux_dir/shtool install -c" 2358 break 2359 fi 2360done 2361if test -z "$ac_aux_dir"; then 2362 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 2363fi 2364 2365# These three variables are undocumented and unsupported, 2366# and are intended to be withdrawn in a future Autoconf release. 2367# They can cause serious problems if a builder's source tree is in a directory 2368# whose full name contains unusual characters. 2369ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2370ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2371ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2372 2373 2374 2375am__api_version='1.14' 2376 2377# Find a good install program. We prefer a C program (faster), 2378# so one script is as good as another. But avoid the broken or 2379# incompatible versions: 2380# SysV /etc/install, /usr/sbin/install 2381# SunOS /usr/etc/install 2382# IRIX /sbin/install 2383# AIX /bin/install 2384# AmigaOS /C/install, which installs bootblocks on floppy discs 2385# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2386# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2387# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2388# OS/2's system install, which has a completely different semantic 2389# ./install, which can be erroneously created by make from ./install.sh. 2390# Reject install programs that cannot install multiple files. 2391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2392$as_echo_n "checking for a BSD-compatible install... " >&6; } 2393if test -z "$INSTALL"; then 2394if ${ac_cv_path_install+:} false; then : 2395 $as_echo_n "(cached) " >&6 2396else 2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2398for as_dir in $PATH 2399do 2400 IFS=$as_save_IFS 2401 test -z "$as_dir" && as_dir=. 2402 # Account for people who put trailing slashes in PATH elements. 2403case $as_dir/ in #(( 2404 ./ | .// | /[cC]/* | \ 2405 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2406 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2407 /usr/ucb/* ) ;; 2408 *) 2409 # OSF1 and SCO ODT 3.0 have their own names for install. 2410 # Don't use installbsd from OSF since it installs stuff as root 2411 # by default. 2412 for ac_prog in ginstall scoinst install; do 2413 for ac_exec_ext in '' $ac_executable_extensions; do 2414 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2415 if test $ac_prog = install && 2416 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2417 # AIX install. It has an incompatible calling convention. 2418 : 2419 elif test $ac_prog = install && 2420 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2421 # program-specific install script used by HP pwplus--don't use. 2422 : 2423 else 2424 rm -rf conftest.one conftest.two conftest.dir 2425 echo one > conftest.one 2426 echo two > conftest.two 2427 mkdir conftest.dir 2428 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2429 test -s conftest.one && test -s conftest.two && 2430 test -s conftest.dir/conftest.one && 2431 test -s conftest.dir/conftest.two 2432 then 2433 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2434 break 3 2435 fi 2436 fi 2437 fi 2438 done 2439 done 2440 ;; 2441esac 2442 2443 done 2444IFS=$as_save_IFS 2445 2446rm -rf conftest.one conftest.two conftest.dir 2447 2448fi 2449 if test "${ac_cv_path_install+set}" = set; then 2450 INSTALL=$ac_cv_path_install 2451 else 2452 # As a last resort, use the slow shell script. Don't cache a 2453 # value for INSTALL within a source directory, because that will 2454 # break other packages using the cache if that directory is 2455 # removed, or if the value is a relative name. 2456 INSTALL=$ac_install_sh 2457 fi 2458fi 2459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2460$as_echo "$INSTALL" >&6; } 2461 2462# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2463# It thinks the first close brace ends the variable substitution. 2464test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2465 2466test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2467 2468test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2469 2470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2471$as_echo_n "checking whether build environment is sane... " >&6; } 2472# Reject unsafe characters in $srcdir or the absolute working directory 2473# name. Accept space and tab only in the latter. 2474am_lf=' 2475' 2476case `pwd` in 2477 *[\\\"\#\$\&\'\`$am_lf]*) 2478 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2479esac 2480case $srcdir in 2481 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2482 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2483esac 2484 2485# Do 'set' in a subshell so we don't clobber the current shell's 2486# arguments. Must try -L first in case configure is actually a 2487# symlink; some systems play weird games with the mod time of symlinks 2488# (eg FreeBSD returns the mod time of the symlink's containing 2489# directory). 2490if ( 2491 am_has_slept=no 2492 for am_try in 1 2; do 2493 echo "timestamp, slept: $am_has_slept" > conftest.file 2494 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2495 if test "$*" = "X"; then 2496 # -L didn't work. 2497 set X `ls -t "$srcdir/configure" conftest.file` 2498 fi 2499 if test "$*" != "X $srcdir/configure conftest.file" \ 2500 && test "$*" != "X conftest.file $srcdir/configure"; then 2501 2502 # If neither matched, then we have a broken ls. This can happen 2503 # if, for instance, CONFIG_SHELL is bash and it inherits a 2504 # broken ls alias from the environment. This has actually 2505 # happened. Such a system could not be considered "sane". 2506 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2507 alias in your environment" "$LINENO" 5 2508 fi 2509 if test "$2" = conftest.file || test $am_try -eq 2; then 2510 break 2511 fi 2512 # Just in case. 2513 sleep 1 2514 am_has_slept=yes 2515 done 2516 test "$2" = conftest.file 2517 ) 2518then 2519 # Ok. 2520 : 2521else 2522 as_fn_error $? "newly created file is older than distributed files! 2523Check your system clock" "$LINENO" 5 2524fi 2525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2526$as_echo "yes" >&6; } 2527# If we didn't sleep, we still need to ensure time stamps of config.status and 2528# generated files are strictly newer. 2529am_sleep_pid= 2530if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2531 ( sleep 1 ) & 2532 am_sleep_pid=$! 2533fi 2534 2535rm -f conftest.file 2536 2537test "$program_prefix" != NONE && 2538 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2539# Use a double $ so make ignores it. 2540test "$program_suffix" != NONE && 2541 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2542# Double any \ or $. 2543# By default was `s,x,x', remove it if useless. 2544ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2545program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2546 2547# expand $ac_aux_dir to an absolute path 2548am_aux_dir=`cd $ac_aux_dir && pwd` 2549 2550if test x"${MISSING+set}" != xset; then 2551 case $am_aux_dir in 2552 *\ * | *\ *) 2553 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2554 *) 2555 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2556 esac 2557fi 2558# Use eval to expand $SHELL 2559if eval "$MISSING --is-lightweight"; then 2560 am_missing_run="$MISSING " 2561else 2562 am_missing_run= 2563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2564$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2565fi 2566 2567if test x"${install_sh}" != xset; then 2568 case $am_aux_dir in 2569 *\ * | *\ *) 2570 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2571 *) 2572 install_sh="\${SHELL} $am_aux_dir/install-sh" 2573 esac 2574fi 2575 2576# Installed binaries are usually stripped using 'strip' when the user 2577# run "make install-strip". However 'strip' might not be the right 2578# tool to use in cross-compilation environments, therefore Automake 2579# will honor the 'STRIP' environment variable to overrule this program. 2580if test "$cross_compiling" != no; then 2581 if test -n "$ac_tool_prefix"; then 2582 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2583set dummy ${ac_tool_prefix}strip; ac_word=$2 2584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2585$as_echo_n "checking for $ac_word... " >&6; } 2586if ${ac_cv_prog_STRIP+:} false; then : 2587 $as_echo_n "(cached) " >&6 2588else 2589 if test -n "$STRIP"; then 2590 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2591else 2592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2593for as_dir in $PATH 2594do 2595 IFS=$as_save_IFS 2596 test -z "$as_dir" && as_dir=. 2597 for ac_exec_ext in '' $ac_executable_extensions; do 2598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2599 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2601 break 2 2602 fi 2603done 2604 done 2605IFS=$as_save_IFS 2606 2607fi 2608fi 2609STRIP=$ac_cv_prog_STRIP 2610if test -n "$STRIP"; then 2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2612$as_echo "$STRIP" >&6; } 2613else 2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2615$as_echo "no" >&6; } 2616fi 2617 2618 2619fi 2620if test -z "$ac_cv_prog_STRIP"; then 2621 ac_ct_STRIP=$STRIP 2622 # Extract the first word of "strip", so it can be a program name with args. 2623set dummy strip; ac_word=$2 2624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2625$as_echo_n "checking for $ac_word... " >&6; } 2626if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2627 $as_echo_n "(cached) " >&6 2628else 2629 if test -n "$ac_ct_STRIP"; then 2630 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2631else 2632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2633for as_dir in $PATH 2634do 2635 IFS=$as_save_IFS 2636 test -z "$as_dir" && as_dir=. 2637 for ac_exec_ext in '' $ac_executable_extensions; do 2638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2639 ac_cv_prog_ac_ct_STRIP="strip" 2640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2641 break 2 2642 fi 2643done 2644 done 2645IFS=$as_save_IFS 2646 2647fi 2648fi 2649ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2650if test -n "$ac_ct_STRIP"; then 2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2652$as_echo "$ac_ct_STRIP" >&6; } 2653else 2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2655$as_echo "no" >&6; } 2656fi 2657 2658 if test "x$ac_ct_STRIP" = x; then 2659 STRIP=":" 2660 else 2661 case $cross_compiling:$ac_tool_warned in 2662yes:) 2663{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2664$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2665ac_tool_warned=yes ;; 2666esac 2667 STRIP=$ac_ct_STRIP 2668 fi 2669else 2670 STRIP="$ac_cv_prog_STRIP" 2671fi 2672 2673fi 2674INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2675 2676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2677$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2678if test -z "$MKDIR_P"; then 2679 if ${ac_cv_path_mkdir+:} false; then : 2680 $as_echo_n "(cached) " >&6 2681else 2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2683for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2684do 2685 IFS=$as_save_IFS 2686 test -z "$as_dir" && as_dir=. 2687 for ac_prog in mkdir gmkdir; do 2688 for ac_exec_ext in '' $ac_executable_extensions; do 2689 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2690 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2691 'mkdir (GNU coreutils) '* | \ 2692 'mkdir (coreutils) '* | \ 2693 'mkdir (fileutils) '4.1*) 2694 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2695 break 3;; 2696 esac 2697 done 2698 done 2699 done 2700IFS=$as_save_IFS 2701 2702fi 2703 2704 test -d ./--version && rmdir ./--version 2705 if test "${ac_cv_path_mkdir+set}" = set; then 2706 MKDIR_P="$ac_cv_path_mkdir -p" 2707 else 2708 # As a last resort, use the slow shell script. Don't cache a 2709 # value for MKDIR_P within a source directory, because that will 2710 # break other packages using the cache if that directory is 2711 # removed, or if the value is a relative name. 2712 MKDIR_P="$ac_install_sh -d" 2713 fi 2714fi 2715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2716$as_echo "$MKDIR_P" >&6; } 2717 2718for ac_prog in gawk mawk nawk awk 2719do 2720 # Extract the first word of "$ac_prog", so it can be a program name with args. 2721set dummy $ac_prog; ac_word=$2 2722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2723$as_echo_n "checking for $ac_word... " >&6; } 2724if ${ac_cv_prog_AWK+:} false; then : 2725 $as_echo_n "(cached) " >&6 2726else 2727 if test -n "$AWK"; then 2728 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2729else 2730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2731for as_dir in $PATH 2732do 2733 IFS=$as_save_IFS 2734 test -z "$as_dir" && as_dir=. 2735 for ac_exec_ext in '' $ac_executable_extensions; do 2736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2737 ac_cv_prog_AWK="$ac_prog" 2738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2739 break 2 2740 fi 2741done 2742 done 2743IFS=$as_save_IFS 2744 2745fi 2746fi 2747AWK=$ac_cv_prog_AWK 2748if test -n "$AWK"; then 2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2750$as_echo "$AWK" >&6; } 2751else 2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2753$as_echo "no" >&6; } 2754fi 2755 2756 2757 test -n "$AWK" && break 2758done 2759 2760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2761$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2762set x ${MAKE-make} 2763ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2764if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2765 $as_echo_n "(cached) " >&6 2766else 2767 cat >conftest.make <<\_ACEOF 2768SHELL = /bin/sh 2769all: 2770 @echo '@@@%%%=$(MAKE)=@@@%%%' 2771_ACEOF 2772# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2773case `${MAKE-make} -f conftest.make 2>/dev/null` in 2774 *@@@%%%=?*=@@@%%%*) 2775 eval ac_cv_prog_make_${ac_make}_set=yes;; 2776 *) 2777 eval ac_cv_prog_make_${ac_make}_set=no;; 2778esac 2779rm -f conftest.make 2780fi 2781if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2783$as_echo "yes" >&6; } 2784 SET_MAKE= 2785else 2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2787$as_echo "no" >&6; } 2788 SET_MAKE="MAKE=${MAKE-make}" 2789fi 2790 2791rm -rf .tst 2>/dev/null 2792mkdir .tst 2>/dev/null 2793if test -d .tst; then 2794 am__leading_dot=. 2795else 2796 am__leading_dot=_ 2797fi 2798rmdir .tst 2>/dev/null 2799 2800# Check whether --enable-silent-rules was given. 2801if test "${enable_silent_rules+set}" = set; then : 2802 enableval=$enable_silent_rules; 2803fi 2804 2805case $enable_silent_rules in # ((( 2806 yes) AM_DEFAULT_VERBOSITY=0;; 2807 no) AM_DEFAULT_VERBOSITY=1;; 2808 *) AM_DEFAULT_VERBOSITY=1;; 2809esac 2810am_make=${MAKE-make} 2811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2812$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2813if ${am_cv_make_support_nested_variables+:} false; then : 2814 $as_echo_n "(cached) " >&6 2815else 2816 if $as_echo 'TRUE=$(BAR$(V)) 2817BAR0=false 2818BAR1=true 2819V=1 2820am__doit: 2821 @$(TRUE) 2822.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2823 am_cv_make_support_nested_variables=yes 2824else 2825 am_cv_make_support_nested_variables=no 2826fi 2827fi 2828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2829$as_echo "$am_cv_make_support_nested_variables" >&6; } 2830if test $am_cv_make_support_nested_variables = yes; then 2831 AM_V='$(V)' 2832 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2833else 2834 AM_V=$AM_DEFAULT_VERBOSITY 2835 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2836fi 2837AM_BACKSLASH='\' 2838 2839if test "`cd $srcdir && pwd`" != "`pwd`"; then 2840 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2841 # is not polluted with repeated "-I." 2842 am__isrc=' -I$(srcdir)' 2843 # test to see if srcdir already configured 2844 if test -f $srcdir/config.status; then 2845 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2846 fi 2847fi 2848 2849# test whether we have cygpath 2850if test -z "$CYGPATH_W"; then 2851 if (cygpath --version) >/dev/null 2>/dev/null; then 2852 CYGPATH_W='cygpath -w' 2853 else 2854 CYGPATH_W=echo 2855 fi 2856fi 2857 2858 2859# Define the identity of the package. 2860 PACKAGE='gupnp-dlna' 2861 VERSION='0.10.3' 2862 2863 2864cat >>confdefs.h <<_ACEOF 2865#define PACKAGE "$PACKAGE" 2866_ACEOF 2867 2868 2869cat >>confdefs.h <<_ACEOF 2870#define VERSION "$VERSION" 2871_ACEOF 2872 2873# Some tools Automake needs. 2874 2875ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2876 2877 2878AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2879 2880 2881AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2882 2883 2884AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2885 2886 2887MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2888 2889# For better backward compatibility. To be removed once Automake 1.9.x 2890# dies out for good. For more background, see: 2891# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2892# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2893mkdir_p='$(MKDIR_P)' 2894 2895# We need awk for the "check" target. The system "awk" is bad on 2896# some platforms. 2897# Always define AMTAR for backward compatibility. Yes, it's still used 2898# in the wild :-( We should find a proper way to deprecate it ... 2899AMTAR='$${TAR-tar}' 2900 2901 2902# We'll loop over all known methods to create a tar archive until one works. 2903_am_tools='gnutar plaintar pax cpio none' 2904 2905# The POSIX 1988 'ustar' format is defined with fixed-size fields. 2906 # There is notably a 21 bits limit for the UID and the GID. In fact, 2907 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 2908 # and bug#13588). 2909 am_max_uid=2097151 # 2^21 - 1 2910 am_max_gid=$am_max_uid 2911 # The $UID and $GID variables are not portable, so we need to resort 2912 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 2913 # below are definitely unexpected, so allow the users to see them 2914 # (that is, avoid stderr redirection). 2915 am_uid=`id -u || echo unknown` 2916 am_gid=`id -g || echo unknown` 2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 2918$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 2919 if test $am_uid -le $am_max_uid; then 2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2921$as_echo "yes" >&6; } 2922 else 2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2924$as_echo "no" >&6; } 2925 _am_tools=none 2926 fi 2927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 2928$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 2929 if test $am_gid -le $am_max_gid; then 2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2931$as_echo "yes" >&6; } 2932 else 2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2934$as_echo "no" >&6; } 2935 _am_tools=none 2936 fi 2937 2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 2939$as_echo_n "checking how to create a ustar tar archive... " >&6; } 2940 2941 # Go ahead even if we have the value already cached. We do so because we 2942 # need to set the values for the 'am__tar' and 'am__untar' variables. 2943 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 2944 2945 for _am_tool in $_am_tools; do 2946 case $_am_tool in 2947 gnutar) 2948 for _am_tar in tar gnutar gtar; do 2949 { echo "$as_me:$LINENO: $_am_tar --version" >&5 2950 ($_am_tar --version) >&5 2>&5 2951 ac_status=$? 2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2953 (exit $ac_status); } && break 2954 done 2955 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 2956 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 2957 am__untar="$_am_tar -xf -" 2958 ;; 2959 plaintar) 2960 # Must skip GNU tar: if it does not support --format= it doesn't create 2961 # ustar tarball either. 2962 (tar --version) >/dev/null 2>&1 && continue 2963 am__tar='tar chf - "$$tardir"' 2964 am__tar_='tar chf - "$tardir"' 2965 am__untar='tar xf -' 2966 ;; 2967 pax) 2968 am__tar='pax -L -x ustar -w "$$tardir"' 2969 am__tar_='pax -L -x ustar -w "$tardir"' 2970 am__untar='pax -r' 2971 ;; 2972 cpio) 2973 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 2974 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 2975 am__untar='cpio -i -H ustar -d' 2976 ;; 2977 none) 2978 am__tar=false 2979 am__tar_=false 2980 am__untar=false 2981 ;; 2982 esac 2983 2984 # If the value was cached, stop now. We just wanted to have am__tar 2985 # and am__untar set. 2986 test -n "${am_cv_prog_tar_ustar}" && break 2987 2988 # tar/untar a dummy directory, and stop if the command works. 2989 rm -rf conftest.dir 2990 mkdir conftest.dir 2991 echo GrepMe > conftest.dir/file 2992 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 2993 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 2994 ac_status=$? 2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2996 (exit $ac_status); } 2997 rm -rf conftest.dir 2998 if test -s conftest.tar; then 2999 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 3000 ($am__untar <conftest.tar) >&5 2>&5 3001 ac_status=$? 3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3003 (exit $ac_status); } 3004 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 3005 (cat conftest.dir/file) >&5 2>&5 3006 ac_status=$? 3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3008 (exit $ac_status); } 3009 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 3010 fi 3011 done 3012 rm -rf conftest.dir 3013 3014 if ${am_cv_prog_tar_ustar+:} false; then : 3015 $as_echo_n "(cached) " >&6 3016else 3017 am_cv_prog_tar_ustar=$_am_tool 3018fi 3019 3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 3021$as_echo "$am_cv_prog_tar_ustar" >&6; } 3022 3023 3024 3025 3026 3027 3028# POSIX will say in a future version that running "rm -f" with no argument 3029# is OK; and we want to be able to make that assumption in our Makefile 3030# recipes. So use an aggressive probe to check that the usage we want is 3031# actually supported "in the wild" to an acceptable degree. 3032# See automake bug#10828. 3033# To make any issue more visible, cause the running configure to be aborted 3034# by default if the 'rm' program in use doesn't match our expectations; the 3035# user can still override this though. 3036if rm -f && rm -fr && rm -rf; then : OK; else 3037 cat >&2 <<'END' 3038Oops! 3039 3040Your 'rm' program seems unable to run without file operands specified 3041on the command line, even when the '-f' option is present. This is contrary 3042to the behaviour of most rm programs out there, and not conforming with 3043the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3044 3045Please tell bug-automake@gnu.org about your system, including the value 3046of your $PATH and any error possibly output before this message. This 3047can help us improve future automake versions. 3048 3049END 3050 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3051 echo 'Configuration will proceed anyway, since you have set the' >&2 3052 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3053 echo >&2 3054 else 3055 cat >&2 <<'END' 3056Aborting the configuration process, to ensure you take notice of the issue. 3057 3058You can download and install GNU coreutils to get an 'rm' implementation 3059that behaves properly: <http://www.gnu.org/software/coreutils/>. 3060 3061If you want to complete the configuration process using your problematic 3062'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3063to "yes", and re-run configure. 3064 3065END 3066 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3067 fi 3068fi 3069 3070 3071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3072$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3073 # Check whether --enable-maintainer-mode was given. 3074if test "${enable_maintainer_mode+set}" = set; then : 3075 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3076else 3077 USE_MAINTAINER_MODE=yes 3078fi 3079 3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3081$as_echo "$USE_MAINTAINER_MODE" >&6; } 3082 if test $USE_MAINTAINER_MODE = yes; then 3083 MAINTAINER_MODE_TRUE= 3084 MAINTAINER_MODE_FALSE='#' 3085else 3086 MAINTAINER_MODE_TRUE='#' 3087 MAINTAINER_MODE_FALSE= 3088fi 3089 3090 MAINT=$MAINTAINER_MODE_TRUE 3091 3092 3093 3094# Check whether --enable-silent-rules was given. 3095if test "${enable_silent_rules+set}" = set; then : 3096 enableval=$enable_silent_rules; 3097fi 3098 3099case $enable_silent_rules in # ((( 3100 yes) AM_DEFAULT_VERBOSITY=0;; 3101 no) AM_DEFAULT_VERBOSITY=1;; 3102 *) AM_DEFAULT_VERBOSITY=0;; 3103esac 3104am_make=${MAKE-make} 3105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3106$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3107if ${am_cv_make_support_nested_variables+:} false; then : 3108 $as_echo_n "(cached) " >&6 3109else 3110 if $as_echo 'TRUE=$(BAR$(V)) 3111BAR0=false 3112BAR1=true 3113V=1 3114am__doit: 3115 @$(TRUE) 3116.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3117 am_cv_make_support_nested_variables=yes 3118else 3119 am_cv_make_support_nested_variables=no 3120fi 3121fi 3122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3123$as_echo "$am_cv_make_support_nested_variables" >&6; } 3124if test $am_cv_make_support_nested_variables = yes; then 3125 AM_V='$(V)' 3126 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3127else 3128 AM_V=$AM_DEFAULT_VERBOSITY 3129 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3130fi 3131AM_BACKSLASH='\' 3132 3133 3134 3135 3136 3137 3138 3139 3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5 3141$as_echo_n "checking whether to enable debugging... " >&6; } 3142 3143 3144 3145 3146 3147 # Check whether --enable-debug was given. 3148if test "${enable_debug+set}" = set; then : 3149 enableval=$enable_debug; 3150else 3151 enable_debug=yes 3152fi 3153 3154 if test "x$enable_debug" = "xyes" || test "x$enable_debug" = "x"; then 3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3156$as_echo "yes" >&6; } 3157 CFLAGS="${CFLAGS} -g -O0" 3158 CXXFLAGS="${CXXFLAGS} -g -O0" 3159 FFLAGS="${FFLAGS} -g -O0" 3160 FCFLAGS="${FCFLAGS} -g -O0" 3161 OBJCFLAGS="${OBJCFLAGS} -g -O0" 3162 3163 3164 else 3165 if test "x$enable_debug" = "xinfo"; then 3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: info" >&5 3167$as_echo "info" >&6; } 3168 CFLAGS="${CFLAGS} -g" 3169 CXXFLAGS="${CXXFLAGS} -g" 3170 FFLAGS="${FFLAGS} -g" 3171 FCFLAGS="${FCFLAGS} -g" 3172 OBJCFLAGS="${OBJCFLAGS} -g" 3173 elif test "x$enable_debug" = "xprofile"; then 3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: profile" >&5 3175$as_echo "profile" >&6; } 3176 CFLAGS="${CFLAGS} -g -pg" 3177 CXXFLAGS="${CXXFLAGS} -g -pg" 3178 FFLAGS="${FFLAGS} -g -pg" 3179 FCFLAGS="${FCFLAGS} -g -pg" 3180 OBJCFLAGS="${OBJCFLAGS} -g -pg" 3181 LDFLAGS="${LDFLAGS} -pg" 3182 else 3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3184$as_echo "no" >&6; } 3185 if test "x${CFLAGS+set}" != "xset"; then 3186 CFLAGS="" 3187 fi 3188 if test "x${CXXFLAGS+set}" != "xset"; then 3189 CXXFLAGS="" 3190 fi 3191 if test "x${FFLAGS+set}" != "xset"; then 3192 FFLAGS="" 3193 fi 3194 if test "x${FCFLAGS+set}" != "xset"; then 3195 FCFLAGS="" 3196 fi 3197 if test "x${OBJCFLAGS+set}" != "xset"; then 3198 OBJCFLAGS="" 3199 fi 3200 fi 3201 3202 3203$as_echo "#define NDEBUG /**/" >>confdefs.h 3204 3205 fi 3206 ax_enable_debug=$enable_debug 3207 3208 3209GUPNP_DLNA_CURRENT=3 3210 3211GUPNP_DLNA_REVISION=0 3212 3213GUPNP_DLNA_AGE=0 3214 3215GUPNP_DLNA_VERSION_INFO="$GUPNP_DLNA_CURRENT:$GUPNP_DLNA_REVISION:$GUPNP_DLNA_AGE" 3216 3217 3218# Check for programs 3219ac_ext=c 3220ac_cpp='$CPP $CPPFLAGS' 3221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3223ac_compiler_gnu=$ac_cv_c_compiler_gnu 3224if test -n "$ac_tool_prefix"; then 3225 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3226set dummy ${ac_tool_prefix}gcc; ac_word=$2 3227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3228$as_echo_n "checking for $ac_word... " >&6; } 3229if ${ac_cv_prog_CC+:} false; then : 3230 $as_echo_n "(cached) " >&6 3231else 3232 if test -n "$CC"; then 3233 ac_cv_prog_CC="$CC" # Let the user override the test. 3234else 3235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3236for as_dir in $PATH 3237do 3238 IFS=$as_save_IFS 3239 test -z "$as_dir" && as_dir=. 3240 for ac_exec_ext in '' $ac_executable_extensions; do 3241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3242 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3244 break 2 3245 fi 3246done 3247 done 3248IFS=$as_save_IFS 3249 3250fi 3251fi 3252CC=$ac_cv_prog_CC 3253if test -n "$CC"; then 3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3255$as_echo "$CC" >&6; } 3256else 3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3258$as_echo "no" >&6; } 3259fi 3260 3261 3262fi 3263if test -z "$ac_cv_prog_CC"; then 3264 ac_ct_CC=$CC 3265 # Extract the first word of "gcc", so it can be a program name with args. 3266set dummy gcc; ac_word=$2 3267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3268$as_echo_n "checking for $ac_word... " >&6; } 3269if ${ac_cv_prog_ac_ct_CC+:} false; then : 3270 $as_echo_n "(cached) " >&6 3271else 3272 if test -n "$ac_ct_CC"; then 3273 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3274else 3275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3276for as_dir in $PATH 3277do 3278 IFS=$as_save_IFS 3279 test -z "$as_dir" && as_dir=. 3280 for ac_exec_ext in '' $ac_executable_extensions; do 3281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3282 ac_cv_prog_ac_ct_CC="gcc" 3283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3284 break 2 3285 fi 3286done 3287 done 3288IFS=$as_save_IFS 3289 3290fi 3291fi 3292ac_ct_CC=$ac_cv_prog_ac_ct_CC 3293if test -n "$ac_ct_CC"; then 3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3295$as_echo "$ac_ct_CC" >&6; } 3296else 3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3298$as_echo "no" >&6; } 3299fi 3300 3301 if test "x$ac_ct_CC" = x; then 3302 CC="" 3303 else 3304 case $cross_compiling:$ac_tool_warned in 3305yes:) 3306{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3308ac_tool_warned=yes ;; 3309esac 3310 CC=$ac_ct_CC 3311 fi 3312else 3313 CC="$ac_cv_prog_CC" 3314fi 3315 3316if test -z "$CC"; then 3317 if test -n "$ac_tool_prefix"; then 3318 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3319set dummy ${ac_tool_prefix}cc; ac_word=$2 3320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3321$as_echo_n "checking for $ac_word... " >&6; } 3322if ${ac_cv_prog_CC+:} false; then : 3323 $as_echo_n "(cached) " >&6 3324else 3325 if test -n "$CC"; then 3326 ac_cv_prog_CC="$CC" # Let the user override the test. 3327else 3328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3329for as_dir in $PATH 3330do 3331 IFS=$as_save_IFS 3332 test -z "$as_dir" && as_dir=. 3333 for ac_exec_ext in '' $ac_executable_extensions; do 3334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3335 ac_cv_prog_CC="${ac_tool_prefix}cc" 3336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3337 break 2 3338 fi 3339done 3340 done 3341IFS=$as_save_IFS 3342 3343fi 3344fi 3345CC=$ac_cv_prog_CC 3346if test -n "$CC"; then 3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3348$as_echo "$CC" >&6; } 3349else 3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3351$as_echo "no" >&6; } 3352fi 3353 3354 3355 fi 3356fi 3357if test -z "$CC"; then 3358 # Extract the first word of "cc", so it can be a program name with args. 3359set dummy cc; ac_word=$2 3360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3361$as_echo_n "checking for $ac_word... " >&6; } 3362if ${ac_cv_prog_CC+:} false; then : 3363 $as_echo_n "(cached) " >&6 3364else 3365 if test -n "$CC"; then 3366 ac_cv_prog_CC="$CC" # Let the user override the test. 3367else 3368 ac_prog_rejected=no 3369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3370for as_dir in $PATH 3371do 3372 IFS=$as_save_IFS 3373 test -z "$as_dir" && as_dir=. 3374 for ac_exec_ext in '' $ac_executable_extensions; do 3375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3376 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3377 ac_prog_rejected=yes 3378 continue 3379 fi 3380 ac_cv_prog_CC="cc" 3381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3382 break 2 3383 fi 3384done 3385 done 3386IFS=$as_save_IFS 3387 3388if test $ac_prog_rejected = yes; then 3389 # We found a bogon in the path, so make sure we never use it. 3390 set dummy $ac_cv_prog_CC 3391 shift 3392 if test $# != 0; then 3393 # We chose a different compiler from the bogus one. 3394 # However, it has the same basename, so the bogon will be chosen 3395 # first if we set CC to just the basename; use the full file name. 3396 shift 3397 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3398 fi 3399fi 3400fi 3401fi 3402CC=$ac_cv_prog_CC 3403if test -n "$CC"; then 3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3405$as_echo "$CC" >&6; } 3406else 3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3408$as_echo "no" >&6; } 3409fi 3410 3411 3412fi 3413if test -z "$CC"; then 3414 if test -n "$ac_tool_prefix"; then 3415 for ac_prog in cl.exe 3416 do 3417 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3418set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3420$as_echo_n "checking for $ac_word... " >&6; } 3421if ${ac_cv_prog_CC+:} false; then : 3422 $as_echo_n "(cached) " >&6 3423else 3424 if test -n "$CC"; then 3425 ac_cv_prog_CC="$CC" # Let the user override the test. 3426else 3427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3428for as_dir in $PATH 3429do 3430 IFS=$as_save_IFS 3431 test -z "$as_dir" && as_dir=. 3432 for ac_exec_ext in '' $ac_executable_extensions; do 3433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3434 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3436 break 2 3437 fi 3438done 3439 done 3440IFS=$as_save_IFS 3441 3442fi 3443fi 3444CC=$ac_cv_prog_CC 3445if test -n "$CC"; then 3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3447$as_echo "$CC" >&6; } 3448else 3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3450$as_echo "no" >&6; } 3451fi 3452 3453 3454 test -n "$CC" && break 3455 done 3456fi 3457if test -z "$CC"; then 3458 ac_ct_CC=$CC 3459 for ac_prog in cl.exe 3460do 3461 # Extract the first word of "$ac_prog", so it can be a program name with args. 3462set dummy $ac_prog; ac_word=$2 3463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3464$as_echo_n "checking for $ac_word... " >&6; } 3465if ${ac_cv_prog_ac_ct_CC+:} false; then : 3466 $as_echo_n "(cached) " >&6 3467else 3468 if test -n "$ac_ct_CC"; then 3469 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3470else 3471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3472for as_dir in $PATH 3473do 3474 IFS=$as_save_IFS 3475 test -z "$as_dir" && as_dir=. 3476 for ac_exec_ext in '' $ac_executable_extensions; do 3477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3478 ac_cv_prog_ac_ct_CC="$ac_prog" 3479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3480 break 2 3481 fi 3482done 3483 done 3484IFS=$as_save_IFS 3485 3486fi 3487fi 3488ac_ct_CC=$ac_cv_prog_ac_ct_CC 3489if test -n "$ac_ct_CC"; then 3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3491$as_echo "$ac_ct_CC" >&6; } 3492else 3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3494$as_echo "no" >&6; } 3495fi 3496 3497 3498 test -n "$ac_ct_CC" && break 3499done 3500 3501 if test "x$ac_ct_CC" = x; then 3502 CC="" 3503 else 3504 case $cross_compiling:$ac_tool_warned in 3505yes:) 3506{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3507$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3508ac_tool_warned=yes ;; 3509esac 3510 CC=$ac_ct_CC 3511 fi 3512fi 3513 3514fi 3515 3516 3517test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3518$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3519as_fn_error $? "no acceptable C compiler found in \$PATH 3520See \`config.log' for more details" "$LINENO" 5; } 3521 3522# Provide some information about the compiler. 3523$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3524set X $ac_compile 3525ac_compiler=$2 3526for ac_option in --version -v -V -qversion; do 3527 { { ac_try="$ac_compiler $ac_option >&5" 3528case "(($ac_try" in 3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3530 *) ac_try_echo=$ac_try;; 3531esac 3532eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3533$as_echo "$ac_try_echo"; } >&5 3534 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3535 ac_status=$? 3536 if test -s conftest.err; then 3537 sed '10a\ 3538... rest of stderr output deleted ... 3539 10q' conftest.err >conftest.er1 3540 cat conftest.er1 >&5 3541 fi 3542 rm -f conftest.er1 conftest.err 3543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3544 test $ac_status = 0; } 3545done 3546 3547cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3548/* end confdefs.h. */ 3549 3550int 3551main () 3552{ 3553 3554 ; 3555 return 0; 3556} 3557_ACEOF 3558ac_clean_files_save=$ac_clean_files 3559ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3560# Try to create an executable without -o first, disregard a.out. 3561# It will help us diagnose broken compilers, and finding out an intuition 3562# of exeext. 3563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3564$as_echo_n "checking whether the C compiler works... " >&6; } 3565ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3566 3567# The possible output files: 3568ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3569 3570ac_rmfiles= 3571for ac_file in $ac_files 3572do 3573 case $ac_file in 3574 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3575 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3576 esac 3577done 3578rm -f $ac_rmfiles 3579 3580if { { ac_try="$ac_link_default" 3581case "(($ac_try" in 3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3583 *) ac_try_echo=$ac_try;; 3584esac 3585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3586$as_echo "$ac_try_echo"; } >&5 3587 (eval "$ac_link_default") 2>&5 3588 ac_status=$? 3589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3590 test $ac_status = 0; }; then : 3591 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3592# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3593# in a Makefile. We should not override ac_cv_exeext if it was cached, 3594# so that the user can short-circuit this test for compilers unknown to 3595# Autoconf. 3596for ac_file in $ac_files '' 3597do 3598 test -f "$ac_file" || continue 3599 case $ac_file in 3600 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3601 ;; 3602 [ab].out ) 3603 # We found the default executable, but exeext='' is most 3604 # certainly right. 3605 break;; 3606 *.* ) 3607 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3608 then :; else 3609 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3610 fi 3611 # We set ac_cv_exeext here because the later test for it is not 3612 # safe: cross compilers may not add the suffix if given an `-o' 3613 # argument, so we may need to know it at that point already. 3614 # Even if this section looks crufty: it has the advantage of 3615 # actually working. 3616 break;; 3617 * ) 3618 break;; 3619 esac 3620done 3621test "$ac_cv_exeext" = no && ac_cv_exeext= 3622 3623else 3624 ac_file='' 3625fi 3626if test -z "$ac_file"; then : 3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3628$as_echo "no" >&6; } 3629$as_echo "$as_me: failed program was:" >&5 3630sed 's/^/| /' conftest.$ac_ext >&5 3631 3632{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3633$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3634as_fn_error 77 "C compiler cannot create executables 3635See \`config.log' for more details" "$LINENO" 5; } 3636else 3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3638$as_echo "yes" >&6; } 3639fi 3640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3641$as_echo_n "checking for C compiler default output file name... " >&6; } 3642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3643$as_echo "$ac_file" >&6; } 3644ac_exeext=$ac_cv_exeext 3645 3646rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3647ac_clean_files=$ac_clean_files_save 3648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3649$as_echo_n "checking for suffix of executables... " >&6; } 3650if { { ac_try="$ac_link" 3651case "(($ac_try" in 3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3653 *) ac_try_echo=$ac_try;; 3654esac 3655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3656$as_echo "$ac_try_echo"; } >&5 3657 (eval "$ac_link") 2>&5 3658 ac_status=$? 3659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3660 test $ac_status = 0; }; then : 3661 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3662# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3663# work properly (i.e., refer to `conftest.exe'), while it won't with 3664# `rm'. 3665for ac_file in conftest.exe conftest conftest.*; do 3666 test -f "$ac_file" || continue 3667 case $ac_file in 3668 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3669 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3670 break;; 3671 * ) break;; 3672 esac 3673done 3674else 3675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3676$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3677as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3678See \`config.log' for more details" "$LINENO" 5; } 3679fi 3680rm -f conftest conftest$ac_cv_exeext 3681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3682$as_echo "$ac_cv_exeext" >&6; } 3683 3684rm -f conftest.$ac_ext 3685EXEEXT=$ac_cv_exeext 3686ac_exeext=$EXEEXT 3687cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3688/* end confdefs.h. */ 3689#include <stdio.h> 3690int 3691main () 3692{ 3693FILE *f = fopen ("conftest.out", "w"); 3694 return ferror (f) || fclose (f) != 0; 3695 3696 ; 3697 return 0; 3698} 3699_ACEOF 3700ac_clean_files="$ac_clean_files conftest.out" 3701# Check that the compiler produces executables we can run. If not, either 3702# the compiler is broken, or we cross compile. 3703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3704$as_echo_n "checking whether we are cross compiling... " >&6; } 3705if test "$cross_compiling" != yes; then 3706 { { ac_try="$ac_link" 3707case "(($ac_try" in 3708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3709 *) ac_try_echo=$ac_try;; 3710esac 3711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3712$as_echo "$ac_try_echo"; } >&5 3713 (eval "$ac_link") 2>&5 3714 ac_status=$? 3715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3716 test $ac_status = 0; } 3717 if { ac_try='./conftest$ac_cv_exeext' 3718 { { case "(($ac_try" in 3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3720 *) ac_try_echo=$ac_try;; 3721esac 3722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3723$as_echo "$ac_try_echo"; } >&5 3724 (eval "$ac_try") 2>&5 3725 ac_status=$? 3726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3727 test $ac_status = 0; }; }; then 3728 cross_compiling=no 3729 else 3730 if test "$cross_compiling" = maybe; then 3731 cross_compiling=yes 3732 else 3733 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3734$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3735as_fn_error $? "cannot run C compiled programs. 3736If you meant to cross compile, use \`--host'. 3737See \`config.log' for more details" "$LINENO" 5; } 3738 fi 3739 fi 3740fi 3741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3742$as_echo "$cross_compiling" >&6; } 3743 3744rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3745ac_clean_files=$ac_clean_files_save 3746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3747$as_echo_n "checking for suffix of object files... " >&6; } 3748if ${ac_cv_objext+:} false; then : 3749 $as_echo_n "(cached) " >&6 3750else 3751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3752/* end confdefs.h. */ 3753 3754int 3755main () 3756{ 3757 3758 ; 3759 return 0; 3760} 3761_ACEOF 3762rm -f conftest.o conftest.obj 3763if { { ac_try="$ac_compile" 3764case "(($ac_try" in 3765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3766 *) ac_try_echo=$ac_try;; 3767esac 3768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3769$as_echo "$ac_try_echo"; } >&5 3770 (eval "$ac_compile") 2>&5 3771 ac_status=$? 3772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3773 test $ac_status = 0; }; then : 3774 for ac_file in conftest.o conftest.obj conftest.*; do 3775 test -f "$ac_file" || continue; 3776 case $ac_file in 3777 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3778 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3779 break;; 3780 esac 3781done 3782else 3783 $as_echo "$as_me: failed program was:" >&5 3784sed 's/^/| /' conftest.$ac_ext >&5 3785 3786{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3787$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3788as_fn_error $? "cannot compute suffix of object files: cannot compile 3789See \`config.log' for more details" "$LINENO" 5; } 3790fi 3791rm -f conftest.$ac_cv_objext conftest.$ac_ext 3792fi 3793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3794$as_echo "$ac_cv_objext" >&6; } 3795OBJEXT=$ac_cv_objext 3796ac_objext=$OBJEXT 3797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3798$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3799if ${ac_cv_c_compiler_gnu+:} false; then : 3800 $as_echo_n "(cached) " >&6 3801else 3802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3803/* end confdefs.h. */ 3804 3805int 3806main () 3807{ 3808#ifndef __GNUC__ 3809 choke me 3810#endif 3811 3812 ; 3813 return 0; 3814} 3815_ACEOF 3816if ac_fn_c_try_compile "$LINENO"; then : 3817 ac_compiler_gnu=yes 3818else 3819 ac_compiler_gnu=no 3820fi 3821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3822ac_cv_c_compiler_gnu=$ac_compiler_gnu 3823 3824fi 3825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3826$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3827if test $ac_compiler_gnu = yes; then 3828 GCC=yes 3829else 3830 GCC= 3831fi 3832ac_test_CFLAGS=${CFLAGS+set} 3833ac_save_CFLAGS=$CFLAGS 3834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3835$as_echo_n "checking whether $CC accepts -g... " >&6; } 3836if ${ac_cv_prog_cc_g+:} false; then : 3837 $as_echo_n "(cached) " >&6 3838else 3839 ac_save_c_werror_flag=$ac_c_werror_flag 3840 ac_c_werror_flag=yes 3841 ac_cv_prog_cc_g=no 3842 CFLAGS="-g" 3843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3844/* end confdefs.h. */ 3845 3846int 3847main () 3848{ 3849 3850 ; 3851 return 0; 3852} 3853_ACEOF 3854if ac_fn_c_try_compile "$LINENO"; then : 3855 ac_cv_prog_cc_g=yes 3856else 3857 CFLAGS="" 3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3859/* end confdefs.h. */ 3860 3861int 3862main () 3863{ 3864 3865 ; 3866 return 0; 3867} 3868_ACEOF 3869if ac_fn_c_try_compile "$LINENO"; then : 3870 3871else 3872 ac_c_werror_flag=$ac_save_c_werror_flag 3873 CFLAGS="-g" 3874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3875/* end confdefs.h. */ 3876 3877int 3878main () 3879{ 3880 3881 ; 3882 return 0; 3883} 3884_ACEOF 3885if ac_fn_c_try_compile "$LINENO"; then : 3886 ac_cv_prog_cc_g=yes 3887fi 3888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3889fi 3890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3891fi 3892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3893 ac_c_werror_flag=$ac_save_c_werror_flag 3894fi 3895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3896$as_echo "$ac_cv_prog_cc_g" >&6; } 3897if test "$ac_test_CFLAGS" = set; then 3898 CFLAGS=$ac_save_CFLAGS 3899elif test $ac_cv_prog_cc_g = yes; then 3900 if test "$GCC" = yes; then 3901 CFLAGS="-g -O2" 3902 else 3903 CFLAGS="-g" 3904 fi 3905else 3906 if test "$GCC" = yes; then 3907 CFLAGS="-O2" 3908 else 3909 CFLAGS= 3910 fi 3911fi 3912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3913$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3914if ${ac_cv_prog_cc_c89+:} false; then : 3915 $as_echo_n "(cached) " >&6 3916else 3917 ac_cv_prog_cc_c89=no 3918ac_save_CC=$CC 3919cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3920/* end confdefs.h. */ 3921#include <stdarg.h> 3922#include <stdio.h> 3923struct stat; 3924/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3925struct buf { int x; }; 3926FILE * (*rcsopen) (struct buf *, struct stat *, int); 3927static char *e (p, i) 3928 char **p; 3929 int i; 3930{ 3931 return p[i]; 3932} 3933static char *f (char * (*g) (char **, int), char **p, ...) 3934{ 3935 char *s; 3936 va_list v; 3937 va_start (v,p); 3938 s = g (p, va_arg (v,int)); 3939 va_end (v); 3940 return s; 3941} 3942 3943/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3944 function prototypes and stuff, but not '\xHH' hex character constants. 3945 These don't provoke an error unfortunately, instead are silently treated 3946 as 'x'. The following induces an error, until -std is added to get 3947 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3948 array size at least. It's necessary to write '\x00'==0 to get something 3949 that's true only with -std. */ 3950int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3951 3952/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3953 inside strings and character constants. */ 3954#define FOO(x) 'x' 3955int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3956 3957int test (int i, double x); 3958struct s1 {int (*f) (int a);}; 3959struct s2 {int (*f) (double a);}; 3960int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3961int argc; 3962char **argv; 3963int 3964main () 3965{ 3966return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3967 ; 3968 return 0; 3969} 3970_ACEOF 3971for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3972 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3973do 3974 CC="$ac_save_CC $ac_arg" 3975 if ac_fn_c_try_compile "$LINENO"; then : 3976 ac_cv_prog_cc_c89=$ac_arg 3977fi 3978rm -f core conftest.err conftest.$ac_objext 3979 test "x$ac_cv_prog_cc_c89" != "xno" && break 3980done 3981rm -f conftest.$ac_ext 3982CC=$ac_save_CC 3983 3984fi 3985# AC_CACHE_VAL 3986case "x$ac_cv_prog_cc_c89" in 3987 x) 3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3989$as_echo "none needed" >&6; } ;; 3990 xno) 3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3992$as_echo "unsupported" >&6; } ;; 3993 *) 3994 CC="$CC $ac_cv_prog_cc_c89" 3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3996$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3997esac 3998if test "x$ac_cv_prog_cc_c89" != xno; then : 3999 4000fi 4001 4002ac_ext=c 4003ac_cpp='$CPP $CPPFLAGS' 4004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4006ac_compiler_gnu=$ac_cv_c_compiler_gnu 4007 4008ac_ext=c 4009ac_cpp='$CPP $CPPFLAGS' 4010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4012ac_compiler_gnu=$ac_cv_c_compiler_gnu 4013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4014$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4015if ${am_cv_prog_cc_c_o+:} false; then : 4016 $as_echo_n "(cached) " >&6 4017else 4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4019/* end confdefs.h. */ 4020 4021int 4022main () 4023{ 4024 4025 ; 4026 return 0; 4027} 4028_ACEOF 4029 # Make sure it works both with $CC and with simple cc. 4030 # Following AC_PROG_CC_C_O, we do the test twice because some 4031 # compilers refuse to overwrite an existing .o file with -o, 4032 # though they will create one. 4033 am_cv_prog_cc_c_o=yes 4034 for am_i in 1 2; do 4035 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4036 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4037 ac_status=$? 4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4039 (exit $ac_status); } \ 4040 && test -f conftest2.$ac_objext; then 4041 : OK 4042 else 4043 am_cv_prog_cc_c_o=no 4044 break 4045 fi 4046 done 4047 rm -f core conftest* 4048 unset am_i 4049fi 4050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4051$as_echo "$am_cv_prog_cc_c_o" >&6; } 4052if test "$am_cv_prog_cc_c_o" != yes; then 4053 # Losing compiler, so override with the script. 4054 # FIXME: It is wrong to rewrite CC. 4055 # But if we don't then we get into trouble of one sort or another. 4056 # A longer-term fix would be to have automake use am__CC in this case, 4057 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4058 CC="$am_aux_dir/compile $CC" 4059fi 4060ac_ext=c 4061ac_cpp='$CPP $CPPFLAGS' 4062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4064ac_compiler_gnu=$ac_cv_c_compiler_gnu 4065 4066DEPDIR="${am__leading_dot}deps" 4067 4068ac_config_commands="$ac_config_commands depfiles" 4069 4070 4071am_make=${MAKE-make} 4072cat > confinc << 'END' 4073am__doit: 4074 @echo this is the am__doit target 4075.PHONY: am__doit 4076END 4077# If we don't find an include directive, just comment out the code. 4078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4079$as_echo_n "checking for style of include used by $am_make... " >&6; } 4080am__include="#" 4081am__quote= 4082_am_result=none 4083# First try GNU make style include. 4084echo "include confinc" > confmf 4085# Ignore all kinds of additional output from 'make'. 4086case `$am_make -s -f confmf 2> /dev/null` in #( 4087*the\ am__doit\ target*) 4088 am__include=include 4089 am__quote= 4090 _am_result=GNU 4091 ;; 4092esac 4093# Now try BSD make style include. 4094if test "$am__include" = "#"; then 4095 echo '.include "confinc"' > confmf 4096 case `$am_make -s -f confmf 2> /dev/null` in #( 4097 *the\ am__doit\ target*) 4098 am__include=.include 4099 am__quote="\"" 4100 _am_result=BSD 4101 ;; 4102 esac 4103fi 4104 4105 4106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4107$as_echo "$_am_result" >&6; } 4108rm -f confinc confmf 4109 4110# Check whether --enable-dependency-tracking was given. 4111if test "${enable_dependency_tracking+set}" = set; then : 4112 enableval=$enable_dependency_tracking; 4113fi 4114 4115if test "x$enable_dependency_tracking" != xno; then 4116 am_depcomp="$ac_aux_dir/depcomp" 4117 AMDEPBACKSLASH='\' 4118 am__nodep='_no' 4119fi 4120 if test "x$enable_dependency_tracking" != xno; then 4121 AMDEP_TRUE= 4122 AMDEP_FALSE='#' 4123else 4124 AMDEP_TRUE='#' 4125 AMDEP_FALSE= 4126fi 4127 4128 4129 4130depcc="$CC" am_compiler_list= 4131 4132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4133$as_echo_n "checking dependency style of $depcc... " >&6; } 4134if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4135 $as_echo_n "(cached) " >&6 4136else 4137 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4138 # We make a subdir and do the tests there. Otherwise we can end up 4139 # making bogus files that we don't know about and never remove. For 4140 # instance it was reported that on HP-UX the gcc test will end up 4141 # making a dummy file named 'D' -- because '-MD' means "put the output 4142 # in D". 4143 rm -rf conftest.dir 4144 mkdir conftest.dir 4145 # Copy depcomp to subdir because otherwise we won't find it if we're 4146 # using a relative directory. 4147 cp "$am_depcomp" conftest.dir 4148 cd conftest.dir 4149 # We will build objects and dependencies in a subdirectory because 4150 # it helps to detect inapplicable dependency modes. For instance 4151 # both Tru64's cc and ICC support -MD to output dependencies as a 4152 # side effect of compilation, but ICC will put the dependencies in 4153 # the current directory while Tru64 will put them in the object 4154 # directory. 4155 mkdir sub 4156 4157 am_cv_CC_dependencies_compiler_type=none 4158 if test "$am_compiler_list" = ""; then 4159 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4160 fi 4161 am__universal=false 4162 case " $depcc " in #( 4163 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4164 esac 4165 4166 for depmode in $am_compiler_list; do 4167 # Setup a source with many dependencies, because some compilers 4168 # like to wrap large dependency lists on column 80 (with \), and 4169 # we should not choose a depcomp mode which is confused by this. 4170 # 4171 # We need to recreate these files for each test, as the compiler may 4172 # overwrite some of them when testing with obscure command lines. 4173 # This happens at least with the AIX C compiler. 4174 : > sub/conftest.c 4175 for i in 1 2 3 4 5 6; do 4176 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4177 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4178 # Solaris 10 /bin/sh. 4179 echo '/* dummy */' > sub/conftst$i.h 4180 done 4181 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4182 4183 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4184 # mode. It turns out that the SunPro C++ compiler does not properly 4185 # handle '-M -o', and we need to detect this. Also, some Intel 4186 # versions had trouble with output in subdirs. 4187 am__obj=sub/conftest.${OBJEXT-o} 4188 am__minus_obj="-o $am__obj" 4189 case $depmode in 4190 gcc) 4191 # This depmode causes a compiler race in universal mode. 4192 test "$am__universal" = false || continue 4193 ;; 4194 nosideeffect) 4195 # After this tag, mechanisms are not by side-effect, so they'll 4196 # only be used when explicitly requested. 4197 if test "x$enable_dependency_tracking" = xyes; then 4198 continue 4199 else 4200 break 4201 fi 4202 ;; 4203 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4204 # This compiler won't grok '-c -o', but also, the minuso test has 4205 # not run yet. These depmodes are late enough in the game, and 4206 # so weak that their functioning should not be impacted. 4207 am__obj=conftest.${OBJEXT-o} 4208 am__minus_obj= 4209 ;; 4210 none) break ;; 4211 esac 4212 if depmode=$depmode \ 4213 source=sub/conftest.c object=$am__obj \ 4214 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4215 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4216 >/dev/null 2>conftest.err && 4217 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4218 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4219 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4220 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4221 # icc doesn't choke on unknown options, it will just issue warnings 4222 # or remarks (even with -Werror). So we grep stderr for any message 4223 # that says an option was ignored or not supported. 4224 # When given -MP, icc 7.0 and 7.1 complain thusly: 4225 # icc: Command line warning: ignoring option '-M'; no argument required 4226 # The diagnosis changed in icc 8.0: 4227 # icc: Command line remark: option '-MP' not supported 4228 if (grep 'ignoring option' conftest.err || 4229 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4230 am_cv_CC_dependencies_compiler_type=$depmode 4231 break 4232 fi 4233 fi 4234 done 4235 4236 cd .. 4237 rm -rf conftest.dir 4238else 4239 am_cv_CC_dependencies_compiler_type=none 4240fi 4241 4242fi 4243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4244$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4245CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4246 4247 if 4248 test "x$enable_dependency_tracking" != xno \ 4249 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4250 am__fastdepCC_TRUE= 4251 am__fastdepCC_FALSE='#' 4252else 4253 am__fastdepCC_TRUE='#' 4254 am__fastdepCC_FALSE= 4255fi 4256 4257 4258 4259ac_ext=c 4260ac_cpp='$CPP $CPPFLAGS' 4261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4263ac_compiler_gnu=$ac_cv_c_compiler_gnu 4264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4265$as_echo_n "checking how to run the C preprocessor... " >&6; } 4266# On Suns, sometimes $CPP names a directory. 4267if test -n "$CPP" && test -d "$CPP"; then 4268 CPP= 4269fi 4270if test -z "$CPP"; then 4271 if ${ac_cv_prog_CPP+:} false; then : 4272 $as_echo_n "(cached) " >&6 4273else 4274 # Double quotes because CPP needs to be expanded 4275 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4276 do 4277 ac_preproc_ok=false 4278for ac_c_preproc_warn_flag in '' yes 4279do 4280 # Use a header file that comes with gcc, so configuring glibc 4281 # with a fresh cross-compiler works. 4282 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4283 # <limits.h> exists even on freestanding compilers. 4284 # On the NeXT, cc -E runs the code through the compiler's parser, 4285 # not just through cpp. "Syntax error" is here to catch this case. 4286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4287/* end confdefs.h. */ 4288#ifdef __STDC__ 4289# include <limits.h> 4290#else 4291# include <assert.h> 4292#endif 4293 Syntax error 4294_ACEOF 4295if ac_fn_c_try_cpp "$LINENO"; then : 4296 4297else 4298 # Broken: fails on valid input. 4299continue 4300fi 4301rm -f conftest.err conftest.i conftest.$ac_ext 4302 4303 # OK, works on sane cases. Now check whether nonexistent headers 4304 # can be detected and how. 4305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4306/* end confdefs.h. */ 4307#include <ac_nonexistent.h> 4308_ACEOF 4309if ac_fn_c_try_cpp "$LINENO"; then : 4310 # Broken: success on invalid input. 4311continue 4312else 4313 # Passes both tests. 4314ac_preproc_ok=: 4315break 4316fi 4317rm -f conftest.err conftest.i conftest.$ac_ext 4318 4319done 4320# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4321rm -f conftest.i conftest.err conftest.$ac_ext 4322if $ac_preproc_ok; then : 4323 break 4324fi 4325 4326 done 4327 ac_cv_prog_CPP=$CPP 4328 4329fi 4330 CPP=$ac_cv_prog_CPP 4331else 4332 ac_cv_prog_CPP=$CPP 4333fi 4334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4335$as_echo "$CPP" >&6; } 4336ac_preproc_ok=false 4337for ac_c_preproc_warn_flag in '' yes 4338do 4339 # Use a header file that comes with gcc, so configuring glibc 4340 # with a fresh cross-compiler works. 4341 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4342 # <limits.h> exists even on freestanding compilers. 4343 # On the NeXT, cc -E runs the code through the compiler's parser, 4344 # not just through cpp. "Syntax error" is here to catch this case. 4345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4346/* end confdefs.h. */ 4347#ifdef __STDC__ 4348# include <limits.h> 4349#else 4350# include <assert.h> 4351#endif 4352 Syntax error 4353_ACEOF 4354if ac_fn_c_try_cpp "$LINENO"; then : 4355 4356else 4357 # Broken: fails on valid input. 4358continue 4359fi 4360rm -f conftest.err conftest.i conftest.$ac_ext 4361 4362 # OK, works on sane cases. Now check whether nonexistent headers 4363 # can be detected and how. 4364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4365/* end confdefs.h. */ 4366#include <ac_nonexistent.h> 4367_ACEOF 4368if ac_fn_c_try_cpp "$LINENO"; then : 4369 # Broken: success on invalid input. 4370continue 4371else 4372 # Passes both tests. 4373ac_preproc_ok=: 4374break 4375fi 4376rm -f conftest.err conftest.i conftest.$ac_ext 4377 4378done 4379# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4380rm -f conftest.i conftest.err conftest.$ac_ext 4381if $ac_preproc_ok; then : 4382 4383else 4384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4385$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4386as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4387See \`config.log' for more details" "$LINENO" 5; } 4388fi 4389 4390ac_ext=c 4391ac_cpp='$CPP $CPPFLAGS' 4392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4394ac_compiler_gnu=$ac_cv_c_compiler_gnu 4395 4396 4397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4398$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4399if ${ac_cv_path_GREP+:} false; then : 4400 $as_echo_n "(cached) " >&6 4401else 4402 if test -z "$GREP"; then 4403 ac_path_GREP_found=false 4404 # Loop through the user's path and test for each of PROGNAME-LIST 4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4406for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4407do 4408 IFS=$as_save_IFS 4409 test -z "$as_dir" && as_dir=. 4410 for ac_prog in grep ggrep; do 4411 for ac_exec_ext in '' $ac_executable_extensions; do 4412 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4413 as_fn_executable_p "$ac_path_GREP" || continue 4414# Check for GNU ac_path_GREP and select it if it is found. 4415 # Check for GNU $ac_path_GREP 4416case `"$ac_path_GREP" --version 2>&1` in 4417*GNU*) 4418 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4419*) 4420 ac_count=0 4421 $as_echo_n 0123456789 >"conftest.in" 4422 while : 4423 do 4424 cat "conftest.in" "conftest.in" >"conftest.tmp" 4425 mv "conftest.tmp" "conftest.in" 4426 cp "conftest.in" "conftest.nl" 4427 $as_echo 'GREP' >> "conftest.nl" 4428 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4429 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4430 as_fn_arith $ac_count + 1 && ac_count=$as_val 4431 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4432 # Best one so far, save it but keep looking for a better one 4433 ac_cv_path_GREP="$ac_path_GREP" 4434 ac_path_GREP_max=$ac_count 4435 fi 4436 # 10*(2^10) chars as input seems more than enough 4437 test $ac_count -gt 10 && break 4438 done 4439 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4440esac 4441 4442 $ac_path_GREP_found && break 3 4443 done 4444 done 4445 done 4446IFS=$as_save_IFS 4447 if test -z "$ac_cv_path_GREP"; then 4448 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4449 fi 4450else 4451 ac_cv_path_GREP=$GREP 4452fi 4453 4454fi 4455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4456$as_echo "$ac_cv_path_GREP" >&6; } 4457 GREP="$ac_cv_path_GREP" 4458 4459 4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4461$as_echo_n "checking for egrep... " >&6; } 4462if ${ac_cv_path_EGREP+:} false; then : 4463 $as_echo_n "(cached) " >&6 4464else 4465 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4466 then ac_cv_path_EGREP="$GREP -E" 4467 else 4468 if test -z "$EGREP"; then 4469 ac_path_EGREP_found=false 4470 # Loop through the user's path and test for each of PROGNAME-LIST 4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4472for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4473do 4474 IFS=$as_save_IFS 4475 test -z "$as_dir" && as_dir=. 4476 for ac_prog in egrep; do 4477 for ac_exec_ext in '' $ac_executable_extensions; do 4478 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4479 as_fn_executable_p "$ac_path_EGREP" || continue 4480# Check for GNU ac_path_EGREP and select it if it is found. 4481 # Check for GNU $ac_path_EGREP 4482case `"$ac_path_EGREP" --version 2>&1` in 4483*GNU*) 4484 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4485*) 4486 ac_count=0 4487 $as_echo_n 0123456789 >"conftest.in" 4488 while : 4489 do 4490 cat "conftest.in" "conftest.in" >"conftest.tmp" 4491 mv "conftest.tmp" "conftest.in" 4492 cp "conftest.in" "conftest.nl" 4493 $as_echo 'EGREP' >> "conftest.nl" 4494 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4495 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4496 as_fn_arith $ac_count + 1 && ac_count=$as_val 4497 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4498 # Best one so far, save it but keep looking for a better one 4499 ac_cv_path_EGREP="$ac_path_EGREP" 4500 ac_path_EGREP_max=$ac_count 4501 fi 4502 # 10*(2^10) chars as input seems more than enough 4503 test $ac_count -gt 10 && break 4504 done 4505 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4506esac 4507 4508 $ac_path_EGREP_found && break 3 4509 done 4510 done 4511 done 4512IFS=$as_save_IFS 4513 if test -z "$ac_cv_path_EGREP"; then 4514 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4515 fi 4516else 4517 ac_cv_path_EGREP=$EGREP 4518fi 4519 4520 fi 4521fi 4522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4523$as_echo "$ac_cv_path_EGREP" >&6; } 4524 EGREP="$ac_cv_path_EGREP" 4525 4526 4527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4528$as_echo_n "checking for ANSI C header files... " >&6; } 4529if ${ac_cv_header_stdc+:} false; then : 4530 $as_echo_n "(cached) " >&6 4531else 4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4533/* end confdefs.h. */ 4534#include <stdlib.h> 4535#include <stdarg.h> 4536#include <string.h> 4537#include <float.h> 4538 4539int 4540main () 4541{ 4542 4543 ; 4544 return 0; 4545} 4546_ACEOF 4547if ac_fn_c_try_compile "$LINENO"; then : 4548 ac_cv_header_stdc=yes 4549else 4550 ac_cv_header_stdc=no 4551fi 4552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4553 4554if test $ac_cv_header_stdc = yes; then 4555 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4557/* end confdefs.h. */ 4558#include <string.h> 4559 4560_ACEOF 4561if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4562 $EGREP "memchr" >/dev/null 2>&1; then : 4563 4564else 4565 ac_cv_header_stdc=no 4566fi 4567rm -f conftest* 4568 4569fi 4570 4571if test $ac_cv_header_stdc = yes; then 4572 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4574/* end confdefs.h. */ 4575#include <stdlib.h> 4576 4577_ACEOF 4578if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4579 $EGREP "free" >/dev/null 2>&1; then : 4580 4581else 4582 ac_cv_header_stdc=no 4583fi 4584rm -f conftest* 4585 4586fi 4587 4588if test $ac_cv_header_stdc = yes; then 4589 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4590 if test "$cross_compiling" = yes; then : 4591 : 4592else 4593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4594/* end confdefs.h. */ 4595#include <ctype.h> 4596#include <stdlib.h> 4597#if ((' ' & 0x0FF) == 0x020) 4598# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4599# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4600#else 4601# define ISLOWER(c) \ 4602 (('a' <= (c) && (c) <= 'i') \ 4603 || ('j' <= (c) && (c) <= 'r') \ 4604 || ('s' <= (c) && (c) <= 'z')) 4605# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4606#endif 4607 4608#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4609int 4610main () 4611{ 4612 int i; 4613 for (i = 0; i < 256; i++) 4614 if (XOR (islower (i), ISLOWER (i)) 4615 || toupper (i) != TOUPPER (i)) 4616 return 2; 4617 return 0; 4618} 4619_ACEOF 4620if ac_fn_c_try_run "$LINENO"; then : 4621 4622else 4623 ac_cv_header_stdc=no 4624fi 4625rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4626 conftest.$ac_objext conftest.beam conftest.$ac_ext 4627fi 4628 4629fi 4630fi 4631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4632$as_echo "$ac_cv_header_stdc" >&6; } 4633if test $ac_cv_header_stdc = yes; then 4634 4635$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4636 4637fi 4638 4639 4640 4641 4642 4643 4644 # $is_release = (.git directory does not exist) 4645 if test -d .git; then : 4646 ax_is_release=no 4647else 4648 ax_is_release=yes 4649fi 4650 4651 4652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4653$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4654if ${ac_cv_path_SED+:} false; then : 4655 $as_echo_n "(cached) " >&6 4656else 4657 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4658 for ac_i in 1 2 3 4 5 6 7; do 4659 ac_script="$ac_script$as_nl$ac_script" 4660 done 4661 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4662 { ac_script=; unset ac_script;} 4663 if test -z "$SED"; then 4664 ac_path_SED_found=false 4665 # Loop through the user's path and test for each of PROGNAME-LIST 4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4667for as_dir in $PATH 4668do 4669 IFS=$as_save_IFS 4670 test -z "$as_dir" && as_dir=. 4671 for ac_prog in sed gsed; do 4672 for ac_exec_ext in '' $ac_executable_extensions; do 4673 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4674 as_fn_executable_p "$ac_path_SED" || continue 4675# Check for GNU ac_path_SED and select it if it is found. 4676 # Check for GNU $ac_path_SED 4677case `"$ac_path_SED" --version 2>&1` in 4678*GNU*) 4679 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4680*) 4681 ac_count=0 4682 $as_echo_n 0123456789 >"conftest.in" 4683 while : 4684 do 4685 cat "conftest.in" "conftest.in" >"conftest.tmp" 4686 mv "conftest.tmp" "conftest.in" 4687 cp "conftest.in" "conftest.nl" 4688 $as_echo '' >> "conftest.nl" 4689 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4690 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4691 as_fn_arith $ac_count + 1 && ac_count=$as_val 4692 if test $ac_count -gt ${ac_path_SED_max-0}; then 4693 # Best one so far, save it but keep looking for a better one 4694 ac_cv_path_SED="$ac_path_SED" 4695 ac_path_SED_max=$ac_count 4696 fi 4697 # 10*(2^10) chars as input seems more than enough 4698 test $ac_count -gt 10 && break 4699 done 4700 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4701esac 4702 4703 $ac_path_SED_found && break 3 4704 done 4705 done 4706 done 4707IFS=$as_save_IFS 4708 if test -z "$ac_cv_path_SED"; then 4709 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4710 fi 4711else 4712 ac_cv_path_SED=$SED 4713fi 4714 4715fi 4716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4717$as_echo "$ac_cv_path_SED" >&6; } 4718 SED="$ac_cv_path_SED" 4719 rm -f conftest.sed 4720 4721 4722 # C support is enabled by default. 4723 4724 4725 # Only enable C++ support if AC_PROG_CXX is called. The redefinition of 4726 # AC_PROG_CXX is so that a fatal error is emitted if this macro is called 4727 # before AC_PROG_CXX, which would otherwise cause no C++ warnings to be 4728 # checked. 4729 4730 4731 4732 4733 # Default value for IS-RELEASE is $ax_is_release 4734 ax_compiler_flags_is_release=$ax_is_release 4735 4736 # Check whether --enable-compile-warnings was given. 4737if test "${enable_compile_warnings+set}" = set; then : 4738 enableval=$enable_compile_warnings; 4739else 4740 if test "$ax_compiler_flags_is_release" = "yes"; then : 4741 enable_compile_warnings="yes" 4742else 4743 enable_compile_warnings="error" 4744fi 4745fi 4746 4747 # Check whether --enable-Werror was given. 4748if test "${enable_Werror+set}" = set; then : 4749 enableval=$enable_Werror; 4750else 4751 enable_Werror=maybe 4752fi 4753 4754 4755 # Return the user's chosen warning level 4756 if test "$enable_Werror" = "no" -a \ 4757 "$enable_compile_warnings" = "error"; then : 4758 4759 enable_compile_warnings="yes" 4760 4761fi 4762 4763 ax_enable_compile_warnings=$enable_compile_warnings 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 # Variable names 4775 4776 4777 ac_ext=c 4778ac_cpp='$CPP $CPPFLAGS' 4779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4781ac_compiler_gnu=$ac_cv_c_compiler_gnu 4782 4783 4784 # Always pass -Werror=unknown-warning-option to get Clang to fail on bad 4785 # flags, otherwise they are always appended to the warn_cflags variable, and 4786 # Clang warns on them for every compilation unit. 4787 # If this is passed to GCC, it will explode, so the flag must be enabled 4788 # conditionally. 4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=unknown-warning-option" >&5 4790$as_echo_n "checking whether C compiler accepts -Werror=unknown-warning-option... " >&6; } 4791if ${ax_cv_check_cflags___Werror_unknown_warning_option+:} false; then : 4792 $as_echo_n "(cached) " >&6 4793else 4794 4795 ax_check_save_flags=$CFLAGS 4796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4798/* end confdefs.h. */ 4799 4800int 4801main () 4802{ 4803 4804 ; 4805 return 0; 4806} 4807_ACEOF 4808if ac_fn_c_try_compile "$LINENO"; then : 4809 ax_cv_check_cflags___Werror_unknown_warning_option=yes 4810else 4811 ax_cv_check_cflags___Werror_unknown_warning_option=no 4812fi 4813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4814 CFLAGS=$ax_check_save_flags 4815fi 4816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror_unknown_warning_option" >&5 4817$as_echo "$ax_cv_check_cflags___Werror_unknown_warning_option" >&6; } 4818if test "x$ax_cv_check_cflags___Werror_unknown_warning_option" = xyes; then : 4819 4820 ax_compiler_flags_test="-Werror=unknown-warning-option" 4821 4822else 4823 4824 ax_compiler_flags_test="" 4825 4826fi 4827 4828 4829 # Base flags 4830 4831 4832 4833 4834for flag in -fno-strict-aliasing ; do 4835 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 4836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 4837$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 4838if eval \${$as_CACHEVAR+:} false; then : 4839 $as_echo_n "(cached) " >&6 4840else 4841 4842 ax_check_save_flags=$CFLAGS 4843 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag" 4844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4845/* end confdefs.h. */ 4846 4847int 4848main () 4849{ 4850 4851 ; 4852 return 0; 4853} 4854_ACEOF 4855if ac_fn_c_try_compile "$LINENO"; then : 4856 eval "$as_CACHEVAR=yes" 4857else 4858 eval "$as_CACHEVAR=no" 4859fi 4860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4861 CFLAGS=$ax_check_save_flags 4862fi 4863eval ac_res=\$$as_CACHEVAR 4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 4865$as_echo "$ac_res" >&6; } 4866if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 4867 4868if ${WARN_CFLAGS+:} false; then : 4869 4870 case " $WARN_CFLAGS " in #( 4871 *" $flag "*) : 4872 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5 4873 (: WARN_CFLAGS already contains $flag) 2>&5 4874 ac_status=$? 4875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4876 test $ac_status = 0; } ;; #( 4877 *) : 4878 4879 as_fn_append WARN_CFLAGS " $flag" 4880 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 4881 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 4882 ac_status=$? 4883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4884 test $ac_status = 0; } 4885 ;; 4886esac 4887 4888else 4889 4890 WARN_CFLAGS=$flag 4891 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 4892 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 4893 ac_status=$? 4894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4895 test $ac_status = 0; } 4896 4897fi 4898 4899else 4900 : 4901fi 4902 4903done 4904 4905 4906 if test "$ax_enable_compile_warnings" != "no"; then : 4907 4908 # "yes" flags 4909 4910 4911 4912 4913for flag in -Wall -Wextra -Wundef -Wnested-externs -Wwrite-strings -Wpointer-arith -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wno-unused-parameter -Wno-missing-field-initializers -Wdeclaration-after-statement -Wformat=2 -Wold-style-definition -Wcast-align -Wformat-nonliteral -Wformat-security -Wsign-compare -Wstrict-aliasing -Wshadow -Winline -Wpacked -Wmissing-format-attribute -Wmissing-noreturn -Winit-self -Wredundant-decls -Wmissing-include-dirs -Wunused-but-set-variable -Warray-bounds -Wimplicit-function-declaration -Wreturn-type -Wswitch-enum -Wswitch-default ; do 4914 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 4915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 4916$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 4917if eval \${$as_CACHEVAR+:} false; then : 4918 $as_echo_n "(cached) " >&6 4919else 4920 4921 ax_check_save_flags=$CFLAGS 4922 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag" 4923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4924/* end confdefs.h. */ 4925 4926int 4927main () 4928{ 4929 4930 ; 4931 return 0; 4932} 4933_ACEOF 4934if ac_fn_c_try_compile "$LINENO"; then : 4935 eval "$as_CACHEVAR=yes" 4936else 4937 eval "$as_CACHEVAR=no" 4938fi 4939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4940 CFLAGS=$ax_check_save_flags 4941fi 4942eval ac_res=\$$as_CACHEVAR 4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 4944$as_echo "$ac_res" >&6; } 4945if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 4946 4947if ${WARN_CFLAGS+:} false; then : 4948 4949 case " $WARN_CFLAGS " in #( 4950 *" $flag "*) : 4951 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5 4952 (: WARN_CFLAGS already contains $flag) 2>&5 4953 ac_status=$? 4954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4955 test $ac_status = 0; } ;; #( 4956 *) : 4957 4958 as_fn_append WARN_CFLAGS " $flag" 4959 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 4960 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 4961 ac_status=$? 4962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4963 test $ac_status = 0; } 4964 ;; 4965esac 4966 4967else 4968 4969 WARN_CFLAGS=$flag 4970 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 4971 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 4972 ac_status=$? 4973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4974 test $ac_status = 0; } 4975 4976fi 4977 4978else 4979 : 4980fi 4981 4982done 4983 4984 4985fi 4986 if test "$ax_enable_compile_warnings" = "error"; then : 4987 4988 # "error" flags; -Werror has to be appended unconditionally because 4989 # it's not possible to test for 4990 # 4991 # suggest-attribute=format is disabled because it gives too many false 4992 # positives 4993 4994if ${WARN_CFLAGS+:} false; then : 4995 4996 case " $WARN_CFLAGS " in #( 4997 *" -Werror "*) : 4998 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains -Werror"; } >&5 4999 (: WARN_CFLAGS already contains -Werror) 2>&5 5000 ac_status=$? 5001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5002 test $ac_status = 0; } ;; #( 5003 *) : 5004 5005 as_fn_append WARN_CFLAGS " -Werror" 5006 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 5007 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 5008 ac_status=$? 5009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5010 test $ac_status = 0; } 5011 ;; 5012esac 5013 5014else 5015 5016 WARN_CFLAGS=-Werror 5017 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 5018 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 5019 ac_status=$? 5020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5021 test $ac_status = 0; } 5022 5023fi 5024 5025 5026 5027 5028 5029 5030for flag in -Wno-suggest-attribute=format ; do 5031 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 5032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 5033$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 5034if eval \${$as_CACHEVAR+:} false; then : 5035 $as_echo_n "(cached) " >&6 5036else 5037 5038 ax_check_save_flags=$CFLAGS 5039 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag" 5040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5041/* end confdefs.h. */ 5042 5043int 5044main () 5045{ 5046 5047 ; 5048 return 0; 5049} 5050_ACEOF 5051if ac_fn_c_try_compile "$LINENO"; then : 5052 eval "$as_CACHEVAR=yes" 5053else 5054 eval "$as_CACHEVAR=no" 5055fi 5056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5057 CFLAGS=$ax_check_save_flags 5058fi 5059eval ac_res=\$$as_CACHEVAR 5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5061$as_echo "$ac_res" >&6; } 5062if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 5063 5064if ${WARN_CFLAGS+:} false; then : 5065 5066 case " $WARN_CFLAGS " in #( 5067 *" $flag "*) : 5068 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5 5069 (: WARN_CFLAGS already contains $flag) 2>&5 5070 ac_status=$? 5071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5072 test $ac_status = 0; } ;; #( 5073 *) : 5074 5075 as_fn_append WARN_CFLAGS " $flag" 5076 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 5077 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 5078 ac_status=$? 5079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5080 test $ac_status = 0; } 5081 ;; 5082esac 5083 5084else 5085 5086 WARN_CFLAGS=$flag 5087 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 5088 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 5089 ac_status=$? 5090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5091 test $ac_status = 0; } 5092 5093fi 5094 5095else 5096 : 5097fi 5098 5099done 5100 5101 5102fi 5103 5104 # In the flags below, when disabling specific flags, always add *both* 5105 # -Wno-foo and -Wno-error=foo. This fixes the situation where (for example) 5106 # we enable -Werror, disable a flag, and a build bot passes CFLAGS=-Wall, 5107 # which effectively turns that flag back on again as an error. 5108 for flag in $WARN_CFLAGS; do 5109 case $flag in #( 5110 -Wno-*=*) : 5111 ;; #( 5112 -Wno-*) : 5113 5114 5115 5116 5117 5118for flag in -Wno-error=$($as_echo $flag | $SED 's/^-Wno-//'); do 5119 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 5120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 5121$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 5122if eval \${$as_CACHEVAR+:} false; then : 5123 $as_echo_n "(cached) " >&6 5124else 5125 5126 ax_check_save_flags=$CFLAGS 5127 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag" 5128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5129/* end confdefs.h. */ 5130 5131int 5132main () 5133{ 5134 5135 ; 5136 return 0; 5137} 5138_ACEOF 5139if ac_fn_c_try_compile "$LINENO"; then : 5140 eval "$as_CACHEVAR=yes" 5141else 5142 eval "$as_CACHEVAR=no" 5143fi 5144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5145 CFLAGS=$ax_check_save_flags 5146fi 5147eval ac_res=\$$as_CACHEVAR 5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5149$as_echo "$ac_res" >&6; } 5150if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 5151 5152if ${WARN_CFLAGS+:} false; then : 5153 5154 case " $WARN_CFLAGS " in #( 5155 *" $flag "*) : 5156 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5 5157 (: WARN_CFLAGS already contains $flag) 2>&5 5158 ac_status=$? 5159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5160 test $ac_status = 0; } ;; #( 5161 *) : 5162 5163 as_fn_append WARN_CFLAGS " $flag" 5164 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 5165 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 5166 ac_status=$? 5167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5168 test $ac_status = 0; } 5169 ;; 5170esac 5171 5172else 5173 5174 WARN_CFLAGS=$flag 5175 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 5176 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 5177 ac_status=$? 5178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5179 test $ac_status = 0; } 5180 5181fi 5182 5183else 5184 : 5185fi 5186 5187done 5188 5189 ;; #( 5190 *) : 5191 ;; 5192esac 5193 done 5194 5195 ac_ext=c 5196ac_cpp='$CPP $CPPFLAGS' 5197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5199ac_compiler_gnu=$ac_cv_c_compiler_gnu 5200 5201 5202 # Substitute the variables 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 # Variable names 5215 5216 5217 # Always pass -Werror=unknown-warning-option to get Clang to fail on bad 5218 # flags, otherwise they are always appended to the warn_ldflags variable, 5219 # and Clang warns on them for every compilation unit. 5220 # If this is passed to GCC, it will explode, so the flag must be enabled 5221 # conditionally. 5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=unknown-warning-option" >&5 5223$as_echo_n "checking whether C compiler accepts -Werror=unknown-warning-option... " >&6; } 5224if ${ax_cv_check_cflags___Werror_unknown_warning_option+:} false; then : 5225 $as_echo_n "(cached) " >&6 5226else 5227 5228 ax_check_save_flags=$CFLAGS 5229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5231/* end confdefs.h. */ 5232 5233int 5234main () 5235{ 5236 5237 ; 5238 return 0; 5239} 5240_ACEOF 5241if ac_fn_c_try_compile "$LINENO"; then : 5242 ax_cv_check_cflags___Werror_unknown_warning_option=yes 5243else 5244 ax_cv_check_cflags___Werror_unknown_warning_option=no 5245fi 5246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5247 CFLAGS=$ax_check_save_flags 5248fi 5249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror_unknown_warning_option" >&5 5250$as_echo "$ax_cv_check_cflags___Werror_unknown_warning_option" >&6; } 5251if test "x$ax_cv_check_cflags___Werror_unknown_warning_option" = xyes; then : 5252 5253 ax_compiler_flags_test="-Werror=unknown-warning-option" 5254 5255else 5256 5257 ax_compiler_flags_test="" 5258 5259fi 5260 5261 5262 # Base flags 5263 5264 5265 5266 5267for flag in -Wl,--no-as-needed ; do 5268 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 5269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 5270$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 5271if eval \${$as_CACHEVAR+:} false; then : 5272 $as_echo_n "(cached) " >&6 5273else 5274 5275 ax_check_save_flags=$CFLAGS 5276 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag" 5277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5278/* end confdefs.h. */ 5279 5280int 5281main () 5282{ 5283 5284 ; 5285 return 0; 5286} 5287_ACEOF 5288if ac_fn_c_try_compile "$LINENO"; then : 5289 eval "$as_CACHEVAR=yes" 5290else 5291 eval "$as_CACHEVAR=no" 5292fi 5293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5294 CFLAGS=$ax_check_save_flags 5295fi 5296eval ac_res=\$$as_CACHEVAR 5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5298$as_echo "$ac_res" >&6; } 5299if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 5300 5301if ${WARN_LDFLAGS+:} false; then : 5302 5303 case " $WARN_LDFLAGS " in #( 5304 *" $flag "*) : 5305 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5 5306 (: WARN_LDFLAGS already contains $flag) 2>&5 5307 ac_status=$? 5308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5309 test $ac_status = 0; } ;; #( 5310 *) : 5311 5312 as_fn_append WARN_LDFLAGS " $flag" 5313 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5 5314 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5 5315 ac_status=$? 5316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5317 test $ac_status = 0; } 5318 ;; 5319esac 5320 5321else 5322 5323 WARN_LDFLAGS=$flag 5324 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5 5325 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5 5326 ac_status=$? 5327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5328 test $ac_status = 0; } 5329 5330fi 5331 5332else 5333 : 5334fi 5335 5336done 5337 5338 5339 if test "$ax_enable_compile_warnings" != "no"; then : 5340 5341 # "yes" flags 5342 5343 5344 5345 5346for flag in ; do 5347 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 5348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 5349$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 5350if eval \${$as_CACHEVAR+:} false; then : 5351 $as_echo_n "(cached) " >&6 5352else 5353 5354 ax_check_save_flags=$CFLAGS 5355 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag" 5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5357/* end confdefs.h. */ 5358 5359int 5360main () 5361{ 5362 5363 ; 5364 return 0; 5365} 5366_ACEOF 5367if ac_fn_c_try_compile "$LINENO"; then : 5368 eval "$as_CACHEVAR=yes" 5369else 5370 eval "$as_CACHEVAR=no" 5371fi 5372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5373 CFLAGS=$ax_check_save_flags 5374fi 5375eval ac_res=\$$as_CACHEVAR 5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5377$as_echo "$ac_res" >&6; } 5378if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 5379 5380if ${WARN_LDFLAGS+:} false; then : 5381 5382 case " $WARN_LDFLAGS " in #( 5383 *" $flag "*) : 5384 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5 5385 (: WARN_LDFLAGS already contains $flag) 2>&5 5386 ac_status=$? 5387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5388 test $ac_status = 0; } ;; #( 5389 *) : 5390 5391 as_fn_append WARN_LDFLAGS " $flag" 5392 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5 5393 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5 5394 ac_status=$? 5395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5396 test $ac_status = 0; } 5397 ;; 5398esac 5399 5400else 5401 5402 WARN_LDFLAGS=$flag 5403 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5 5404 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5 5405 ac_status=$? 5406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5407 test $ac_status = 0; } 5408 5409fi 5410 5411else 5412 : 5413fi 5414 5415done 5416 5417 5418fi 5419 if test "$ax_enable_compile_warnings" = "error"; then : 5420 5421 # "error" flags; -Werror has to be appended unconditionally because 5422 # it's not possible to test for 5423 # 5424 # suggest-attribute=format is disabled because it gives too many false 5425 # positives 5426 5427 5428 5429 5430for flag in -Wl,--fatal-warnings ; do 5431 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 5432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 5433$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 5434if eval \${$as_CACHEVAR+:} false; then : 5435 $as_echo_n "(cached) " >&6 5436else 5437 5438 ax_check_save_flags=$CFLAGS 5439 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag" 5440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5441/* end confdefs.h. */ 5442 5443int 5444main () 5445{ 5446 5447 ; 5448 return 0; 5449} 5450_ACEOF 5451if ac_fn_c_try_compile "$LINENO"; then : 5452 eval "$as_CACHEVAR=yes" 5453else 5454 eval "$as_CACHEVAR=no" 5455fi 5456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5457 CFLAGS=$ax_check_save_flags 5458fi 5459eval ac_res=\$$as_CACHEVAR 5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5461$as_echo "$ac_res" >&6; } 5462if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 5463 5464if ${WARN_LDFLAGS+:} false; then : 5465 5466 case " $WARN_LDFLAGS " in #( 5467 *" $flag "*) : 5468 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5 5469 (: WARN_LDFLAGS already contains $flag) 2>&5 5470 ac_status=$? 5471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5472 test $ac_status = 0; } ;; #( 5473 *) : 5474 5475 as_fn_append WARN_LDFLAGS " $flag" 5476 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5 5477 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5 5478 ac_status=$? 5479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5480 test $ac_status = 0; } 5481 ;; 5482esac 5483 5484else 5485 5486 WARN_LDFLAGS=$flag 5487 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5 5488 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5 5489 ac_status=$? 5490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5491 test $ac_status = 0; } 5492 5493fi 5494 5495else 5496 : 5497fi 5498 5499done 5500 5501 5502fi 5503 5504 # Substitute the variables 5505 5506 5507 5508 5509 5510 5511 # Variable names 5512 5513 5514 # Base flags 5515 5516if ${WARN_SCANNERFLAGS+:} false; then : 5517 5518 case " $WARN_SCANNERFLAGS " in #( 5519 *" "*) : 5520 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains "; } >&5 5521 (: WARN_SCANNERFLAGS already contains ) 2>&5 5522 ac_status=$? 5523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5524 test $ac_status = 0; } ;; #( 5525 *) : 5526 5527 as_fn_append WARN_SCANNERFLAGS " " 5528 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5 5529 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5 5530 ac_status=$? 5531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5532 test $ac_status = 0; } 5533 ;; 5534esac 5535 5536else 5537 5538 WARN_SCANNERFLAGS= 5539 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5 5540 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5 5541 ac_status=$? 5542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5543 test $ac_status = 0; } 5544 5545fi 5546 5547 5548 if test "$ax_enable_compile_warnings" != "no"; then : 5549 5550 # "yes" flags 5551 5552if ${WARN_SCANNERFLAGS+:} false; then : 5553 5554 case " $WARN_SCANNERFLAGS " in #( 5555 *" --warn-all "*) : 5556 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains --warn-all "; } >&5 5557 (: WARN_SCANNERFLAGS already contains --warn-all ) 2>&5 5558 ac_status=$? 5559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5560 test $ac_status = 0; } ;; #( 5561 *) : 5562 5563 as_fn_append WARN_SCANNERFLAGS " --warn-all " 5564 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5 5565 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5 5566 ac_status=$? 5567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5568 test $ac_status = 0; } 5569 ;; 5570esac 5571 5572else 5573 5574 WARN_SCANNERFLAGS= --warn-all 5575 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5 5576 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5 5577 ac_status=$? 5578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5579 test $ac_status = 0; } 5580 5581fi 5582 5583 5584fi 5585 if test "$ax_enable_compile_warnings" = "error"; then : 5586 5587 # "error" flags 5588 5589if ${WARN_SCANNERFLAGS+:} false; then : 5590 5591 case " $WARN_SCANNERFLAGS " in #( 5592 *" --warn-error "*) : 5593 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains --warn-error "; } >&5 5594 (: WARN_SCANNERFLAGS already contains --warn-error ) 2>&5 5595 ac_status=$? 5596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5597 test $ac_status = 0; } ;; #( 5598 *) : 5599 5600 as_fn_append WARN_SCANNERFLAGS " --warn-error " 5601 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5 5602 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5 5603 ac_status=$? 5604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5605 test $ac_status = 0; } 5606 ;; 5607esac 5608 5609else 5610 5611 WARN_SCANNERFLAGS= --warn-error 5612 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5 5613 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5 5614 ac_status=$? 5615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5616 test $ac_status = 0; } 5617 5618fi 5619 5620 5621fi 5622 5623 # Substitute the variables 5624 5625 5626 5627 5628# Initialize libtool 5629 5630case `pwd` in 5631 *\ * | *\ *) 5632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5633$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5634esac 5635 5636 5637 5638macro_version='2.4.2' 5639macro_revision='1.3337' 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653ltmain="$ac_aux_dir/ltmain.sh" 5654 5655# Make sure we can run config.sub. 5656$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5657 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5658 5659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5660$as_echo_n "checking build system type... " >&6; } 5661if ${ac_cv_build+:} false; then : 5662 $as_echo_n "(cached) " >&6 5663else 5664 ac_build_alias=$build_alias 5665test "x$ac_build_alias" = x && 5666 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5667test "x$ac_build_alias" = x && 5668 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5669ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5670 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5671 5672fi 5673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5674$as_echo "$ac_cv_build" >&6; } 5675case $ac_cv_build in 5676*-*-*) ;; 5677*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5678esac 5679build=$ac_cv_build 5680ac_save_IFS=$IFS; IFS='-' 5681set x $ac_cv_build 5682shift 5683build_cpu=$1 5684build_vendor=$2 5685shift; shift 5686# Remember, the first character of IFS is used to create $*, 5687# except with old shells: 5688build_os=$* 5689IFS=$ac_save_IFS 5690case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5691 5692 5693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5694$as_echo_n "checking host system type... " >&6; } 5695if ${ac_cv_host+:} false; then : 5696 $as_echo_n "(cached) " >&6 5697else 5698 if test "x$host_alias" = x; then 5699 ac_cv_host=$ac_cv_build 5700else 5701 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5702 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5703fi 5704 5705fi 5706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5707$as_echo "$ac_cv_host" >&6; } 5708case $ac_cv_host in 5709*-*-*) ;; 5710*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5711esac 5712host=$ac_cv_host 5713ac_save_IFS=$IFS; IFS='-' 5714set x $ac_cv_host 5715shift 5716host_cpu=$1 5717host_vendor=$2 5718shift; shift 5719# Remember, the first character of IFS is used to create $*, 5720# except with old shells: 5721host_os=$* 5722IFS=$ac_save_IFS 5723case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5724 5725 5726# Backslashify metacharacters that are still active within 5727# double-quoted strings. 5728sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5729 5730# Same as above, but do not quote variable references. 5731double_quote_subst='s/\(["`\\]\)/\\\1/g' 5732 5733# Sed substitution to delay expansion of an escaped shell variable in a 5734# double_quote_subst'ed string. 5735delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5736 5737# Sed substitution to delay expansion of an escaped single quote. 5738delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5739 5740# Sed substitution to avoid accidental globbing in evaled expressions 5741no_glob_subst='s/\*/\\\*/g' 5742 5743ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5744ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5745ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5746 5747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5748$as_echo_n "checking how to print strings... " >&6; } 5749# Test print first, because it will be a builtin if present. 5750if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5751 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5752 ECHO='print -r --' 5753elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5754 ECHO='printf %s\n' 5755else 5756 # Use this function as a fallback that always works. 5757 func_fallback_echo () 5758 { 5759 eval 'cat <<_LTECHO_EOF 5760$1 5761_LTECHO_EOF' 5762 } 5763 ECHO='func_fallback_echo' 5764fi 5765 5766# func_echo_all arg... 5767# Invoke $ECHO with all args, space-separated. 5768func_echo_all () 5769{ 5770 $ECHO "" 5771} 5772 5773case "$ECHO" in 5774 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5775$as_echo "printf" >&6; } ;; 5776 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5777$as_echo "print -r" >&6; } ;; 5778 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5779$as_echo "cat" >&6; } ;; 5780esac 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5796$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5797if ${ac_cv_path_SED+:} false; then : 5798 $as_echo_n "(cached) " >&6 5799else 5800 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5801 for ac_i in 1 2 3 4 5 6 7; do 5802 ac_script="$ac_script$as_nl$ac_script" 5803 done 5804 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5805 { ac_script=; unset ac_script;} 5806 if test -z "$SED"; then 5807 ac_path_SED_found=false 5808 # Loop through the user's path and test for each of PROGNAME-LIST 5809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5810for as_dir in $PATH 5811do 5812 IFS=$as_save_IFS 5813 test -z "$as_dir" && as_dir=. 5814 for ac_prog in sed gsed; do 5815 for ac_exec_ext in '' $ac_executable_extensions; do 5816 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5817 as_fn_executable_p "$ac_path_SED" || continue 5818# Check for GNU ac_path_SED and select it if it is found. 5819 # Check for GNU $ac_path_SED 5820case `"$ac_path_SED" --version 2>&1` in 5821*GNU*) 5822 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5823*) 5824 ac_count=0 5825 $as_echo_n 0123456789 >"conftest.in" 5826 while : 5827 do 5828 cat "conftest.in" "conftest.in" >"conftest.tmp" 5829 mv "conftest.tmp" "conftest.in" 5830 cp "conftest.in" "conftest.nl" 5831 $as_echo '' >> "conftest.nl" 5832 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5833 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5834 as_fn_arith $ac_count + 1 && ac_count=$as_val 5835 if test $ac_count -gt ${ac_path_SED_max-0}; then 5836 # Best one so far, save it but keep looking for a better one 5837 ac_cv_path_SED="$ac_path_SED" 5838 ac_path_SED_max=$ac_count 5839 fi 5840 # 10*(2^10) chars as input seems more than enough 5841 test $ac_count -gt 10 && break 5842 done 5843 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5844esac 5845 5846 $ac_path_SED_found && break 3 5847 done 5848 done 5849 done 5850IFS=$as_save_IFS 5851 if test -z "$ac_cv_path_SED"; then 5852 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5853 fi 5854else 5855 ac_cv_path_SED=$SED 5856fi 5857 5858fi 5859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5860$as_echo "$ac_cv_path_SED" >&6; } 5861 SED="$ac_cv_path_SED" 5862 rm -f conftest.sed 5863 5864test -z "$SED" && SED=sed 5865Xsed="$SED -e 1s/^X//" 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5878$as_echo_n "checking for fgrep... " >&6; } 5879if ${ac_cv_path_FGREP+:} false; then : 5880 $as_echo_n "(cached) " >&6 5881else 5882 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5883 then ac_cv_path_FGREP="$GREP -F" 5884 else 5885 if test -z "$FGREP"; then 5886 ac_path_FGREP_found=false 5887 # Loop through the user's path and test for each of PROGNAME-LIST 5888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5889for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5890do 5891 IFS=$as_save_IFS 5892 test -z "$as_dir" && as_dir=. 5893 for ac_prog in fgrep; do 5894 for ac_exec_ext in '' $ac_executable_extensions; do 5895 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5896 as_fn_executable_p "$ac_path_FGREP" || continue 5897# Check for GNU ac_path_FGREP and select it if it is found. 5898 # Check for GNU $ac_path_FGREP 5899case `"$ac_path_FGREP" --version 2>&1` in 5900*GNU*) 5901 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5902*) 5903 ac_count=0 5904 $as_echo_n 0123456789 >"conftest.in" 5905 while : 5906 do 5907 cat "conftest.in" "conftest.in" >"conftest.tmp" 5908 mv "conftest.tmp" "conftest.in" 5909 cp "conftest.in" "conftest.nl" 5910 $as_echo 'FGREP' >> "conftest.nl" 5911 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5912 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5913 as_fn_arith $ac_count + 1 && ac_count=$as_val 5914 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5915 # Best one so far, save it but keep looking for a better one 5916 ac_cv_path_FGREP="$ac_path_FGREP" 5917 ac_path_FGREP_max=$ac_count 5918 fi 5919 # 10*(2^10) chars as input seems more than enough 5920 test $ac_count -gt 10 && break 5921 done 5922 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5923esac 5924 5925 $ac_path_FGREP_found && break 3 5926 done 5927 done 5928 done 5929IFS=$as_save_IFS 5930 if test -z "$ac_cv_path_FGREP"; then 5931 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5932 fi 5933else 5934 ac_cv_path_FGREP=$FGREP 5935fi 5936 5937 fi 5938fi 5939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5940$as_echo "$ac_cv_path_FGREP" >&6; } 5941 FGREP="$ac_cv_path_FGREP" 5942 5943 5944test -z "$GREP" && GREP=grep 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964# Check whether --with-gnu-ld was given. 5965if test "${with_gnu_ld+set}" = set; then : 5966 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5967else 5968 with_gnu_ld=no 5969fi 5970 5971ac_prog=ld 5972if test "$GCC" = yes; then 5973 # Check if gcc -print-prog-name=ld gives a path. 5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5975$as_echo_n "checking for ld used by $CC... " >&6; } 5976 case $host in 5977 *-*-mingw*) 5978 # gcc leaves a trailing carriage return which upsets mingw 5979 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5980 *) 5981 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5982 esac 5983 case $ac_prog in 5984 # Accept absolute paths. 5985 [\\/]* | ?:[\\/]*) 5986 re_direlt='/[^/][^/]*/\.\./' 5987 # Canonicalize the pathname of ld 5988 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5989 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5990 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5991 done 5992 test -z "$LD" && LD="$ac_prog" 5993 ;; 5994 "") 5995 # If it fails, then pretend we aren't using GCC. 5996 ac_prog=ld 5997 ;; 5998 *) 5999 # If it is relative, then search for the first ld in PATH. 6000 with_gnu_ld=unknown 6001 ;; 6002 esac 6003elif test "$with_gnu_ld" = yes; then 6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6005$as_echo_n "checking for GNU ld... " >&6; } 6006else 6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6008$as_echo_n "checking for non-GNU ld... " >&6; } 6009fi 6010if ${lt_cv_path_LD+:} false; then : 6011 $as_echo_n "(cached) " >&6 6012else 6013 if test -z "$LD"; then 6014 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6015 for ac_dir in $PATH; do 6016 IFS="$lt_save_ifs" 6017 test -z "$ac_dir" && ac_dir=. 6018 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6019 lt_cv_path_LD="$ac_dir/$ac_prog" 6020 # Check to see if the program is GNU ld. I'd rather use --version, 6021 # but apparently some variants of GNU ld only accept -v. 6022 # Break only if it was the GNU/non-GNU ld that we prefer. 6023 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6024 *GNU* | *'with BFD'*) 6025 test "$with_gnu_ld" != no && break 6026 ;; 6027 *) 6028 test "$with_gnu_ld" != yes && break 6029 ;; 6030 esac 6031 fi 6032 done 6033 IFS="$lt_save_ifs" 6034else 6035 lt_cv_path_LD="$LD" # Let the user override the test with a path. 6036fi 6037fi 6038 6039LD="$lt_cv_path_LD" 6040if test -n "$LD"; then 6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6042$as_echo "$LD" >&6; } 6043else 6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6045$as_echo "no" >&6; } 6046fi 6047test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6049$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6050if ${lt_cv_prog_gnu_ld+:} false; then : 6051 $as_echo_n "(cached) " >&6 6052else 6053 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6054case `$LD -v 2>&1 </dev/null` in 6055*GNU* | *'with BFD'*) 6056 lt_cv_prog_gnu_ld=yes 6057 ;; 6058*) 6059 lt_cv_prog_gnu_ld=no 6060 ;; 6061esac 6062fi 6063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6064$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6065with_gnu_ld=$lt_cv_prog_gnu_ld 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6076$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6077if ${lt_cv_path_NM+:} false; then : 6078 $as_echo_n "(cached) " >&6 6079else 6080 if test -n "$NM"; then 6081 # Let the user override the test. 6082 lt_cv_path_NM="$NM" 6083else 6084 lt_nm_to_check="${ac_tool_prefix}nm" 6085 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6086 lt_nm_to_check="$lt_nm_to_check nm" 6087 fi 6088 for lt_tmp_nm in $lt_nm_to_check; do 6089 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6090 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6091 IFS="$lt_save_ifs" 6092 test -z "$ac_dir" && ac_dir=. 6093 tmp_nm="$ac_dir/$lt_tmp_nm" 6094 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6095 # Check to see if the nm accepts a BSD-compat flag. 6096 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6097 # nm: unknown option "B" ignored 6098 # Tru64's nm complains that /dev/null is an invalid object file 6099 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6100 */dev/null* | *'Invalid file or object type'*) 6101 lt_cv_path_NM="$tmp_nm -B" 6102 break 6103 ;; 6104 *) 6105 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6106 */dev/null*) 6107 lt_cv_path_NM="$tmp_nm -p" 6108 break 6109 ;; 6110 *) 6111 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6112 continue # so that we can try to find one that supports BSD flags 6113 ;; 6114 esac 6115 ;; 6116 esac 6117 fi 6118 done 6119 IFS="$lt_save_ifs" 6120 done 6121 : ${lt_cv_path_NM=no} 6122fi 6123fi 6124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6125$as_echo "$lt_cv_path_NM" >&6; } 6126if test "$lt_cv_path_NM" != "no"; then 6127 NM="$lt_cv_path_NM" 6128else 6129 # Didn't find any BSD compatible name lister, look for dumpbin. 6130 if test -n "$DUMPBIN"; then : 6131 # Let the user override the test. 6132 else 6133 if test -n "$ac_tool_prefix"; then 6134 for ac_prog in dumpbin "link -dump" 6135 do 6136 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6137set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6139$as_echo_n "checking for $ac_word... " >&6; } 6140if ${ac_cv_prog_DUMPBIN+:} false; then : 6141 $as_echo_n "(cached) " >&6 6142else 6143 if test -n "$DUMPBIN"; then 6144 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6145else 6146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6147for as_dir in $PATH 6148do 6149 IFS=$as_save_IFS 6150 test -z "$as_dir" && as_dir=. 6151 for ac_exec_ext in '' $ac_executable_extensions; do 6152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6153 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6155 break 2 6156 fi 6157done 6158 done 6159IFS=$as_save_IFS 6160 6161fi 6162fi 6163DUMPBIN=$ac_cv_prog_DUMPBIN 6164if test -n "$DUMPBIN"; then 6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6166$as_echo "$DUMPBIN" >&6; } 6167else 6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6169$as_echo "no" >&6; } 6170fi 6171 6172 6173 test -n "$DUMPBIN" && break 6174 done 6175fi 6176if test -z "$DUMPBIN"; then 6177 ac_ct_DUMPBIN=$DUMPBIN 6178 for ac_prog in dumpbin "link -dump" 6179do 6180 # Extract the first word of "$ac_prog", so it can be a program name with args. 6181set dummy $ac_prog; ac_word=$2 6182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6183$as_echo_n "checking for $ac_word... " >&6; } 6184if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 6185 $as_echo_n "(cached) " >&6 6186else 6187 if test -n "$ac_ct_DUMPBIN"; then 6188 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6189else 6190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6191for as_dir in $PATH 6192do 6193 IFS=$as_save_IFS 6194 test -z "$as_dir" && as_dir=. 6195 for ac_exec_ext in '' $ac_executable_extensions; do 6196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6197 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6199 break 2 6200 fi 6201done 6202 done 6203IFS=$as_save_IFS 6204 6205fi 6206fi 6207ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6208if test -n "$ac_ct_DUMPBIN"; then 6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6210$as_echo "$ac_ct_DUMPBIN" >&6; } 6211else 6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6213$as_echo "no" >&6; } 6214fi 6215 6216 6217 test -n "$ac_ct_DUMPBIN" && break 6218done 6219 6220 if test "x$ac_ct_DUMPBIN" = x; then 6221 DUMPBIN=":" 6222 else 6223 case $cross_compiling:$ac_tool_warned in 6224yes:) 6225{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6226$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6227ac_tool_warned=yes ;; 6228esac 6229 DUMPBIN=$ac_ct_DUMPBIN 6230 fi 6231fi 6232 6233 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 6234 *COFF*) 6235 DUMPBIN="$DUMPBIN -symbols" 6236 ;; 6237 *) 6238 DUMPBIN=: 6239 ;; 6240 esac 6241 fi 6242 6243 if test "$DUMPBIN" != ":"; then 6244 NM="$DUMPBIN" 6245 fi 6246fi 6247test -z "$NM" && NM=nm 6248 6249 6250 6251 6252 6253 6254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6255$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6256if ${lt_cv_nm_interface+:} false; then : 6257 $as_echo_n "(cached) " >&6 6258else 6259 lt_cv_nm_interface="BSD nm" 6260 echo "int some_variable = 0;" > conftest.$ac_ext 6261 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6262 (eval "$ac_compile" 2>conftest.err) 6263 cat conftest.err >&5 6264 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6265 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6266 cat conftest.err >&5 6267 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6268 cat conftest.out >&5 6269 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6270 lt_cv_nm_interface="MS dumpbin" 6271 fi 6272 rm -f conftest* 6273fi 6274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6275$as_echo "$lt_cv_nm_interface" >&6; } 6276 6277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6278$as_echo_n "checking whether ln -s works... " >&6; } 6279LN_S=$as_ln_s 6280if test "$LN_S" = "ln -s"; then 6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6282$as_echo "yes" >&6; } 6283else 6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6285$as_echo "no, using $LN_S" >&6; } 6286fi 6287 6288# find the maximum length of command line arguments 6289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6290$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6291if ${lt_cv_sys_max_cmd_len+:} false; then : 6292 $as_echo_n "(cached) " >&6 6293else 6294 i=0 6295 teststring="ABCD" 6296 6297 case $build_os in 6298 msdosdjgpp*) 6299 # On DJGPP, this test can blow up pretty badly due to problems in libc 6300 # (any single argument exceeding 2000 bytes causes a buffer overrun 6301 # during glob expansion). Even if it were fixed, the result of this 6302 # check would be larger than it should be. 6303 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6304 ;; 6305 6306 gnu*) 6307 # Under GNU Hurd, this test is not required because there is 6308 # no limit to the length of command line arguments. 6309 # Libtool will interpret -1 as no limit whatsoever 6310 lt_cv_sys_max_cmd_len=-1; 6311 ;; 6312 6313 cygwin* | mingw* | cegcc*) 6314 # On Win9x/ME, this test blows up -- it succeeds, but takes 6315 # about 5 minutes as the teststring grows exponentially. 6316 # Worse, since 9x/ME are not pre-emptively multitasking, 6317 # you end up with a "frozen" computer, even though with patience 6318 # the test eventually succeeds (with a max line length of 256k). 6319 # Instead, let's just punt: use the minimum linelength reported by 6320 # all of the supported platforms: 8192 (on NT/2K/XP). 6321 lt_cv_sys_max_cmd_len=8192; 6322 ;; 6323 6324 mint*) 6325 # On MiNT this can take a long time and run out of memory. 6326 lt_cv_sys_max_cmd_len=8192; 6327 ;; 6328 6329 amigaos*) 6330 # On AmigaOS with pdksh, this test takes hours, literally. 6331 # So we just punt and use a minimum line length of 8192. 6332 lt_cv_sys_max_cmd_len=8192; 6333 ;; 6334 6335 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6336 # This has been around since 386BSD, at least. Likely further. 6337 if test -x /sbin/sysctl; then 6338 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6339 elif test -x /usr/sbin/sysctl; then 6340 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6341 else 6342 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6343 fi 6344 # And add a safety zone 6345 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6346 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6347 ;; 6348 6349 interix*) 6350 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6351 lt_cv_sys_max_cmd_len=196608 6352 ;; 6353 6354 os2*) 6355 # The test takes a long time on OS/2. 6356 lt_cv_sys_max_cmd_len=8192 6357 ;; 6358 6359 osf*) 6360 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6361 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6362 # nice to cause kernel panics so lets avoid the loop below. 6363 # First set a reasonable default. 6364 lt_cv_sys_max_cmd_len=16384 6365 # 6366 if test -x /sbin/sysconfig; then 6367 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6368 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6369 esac 6370 fi 6371 ;; 6372 sco3.2v5*) 6373 lt_cv_sys_max_cmd_len=102400 6374 ;; 6375 sysv5* | sco5v6* | sysv4.2uw2*) 6376 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6377 if test -n "$kargmax"; then 6378 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6379 else 6380 lt_cv_sys_max_cmd_len=32768 6381 fi 6382 ;; 6383 *) 6384 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6385 if test -n "$lt_cv_sys_max_cmd_len" && \ 6386 test undefined != "$lt_cv_sys_max_cmd_len"; then 6387 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6388 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6389 else 6390 # Make teststring a little bigger before we do anything with it. 6391 # a 1K string should be a reasonable start. 6392 for i in 1 2 3 4 5 6 7 8 ; do 6393 teststring=$teststring$teststring 6394 done 6395 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6396 # If test is not a shell built-in, we'll probably end up computing a 6397 # maximum length that is only half of the actual maximum length, but 6398 # we can't tell. 6399 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 6400 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6401 test $i != 17 # 1/2 MB should be enough 6402 do 6403 i=`expr $i + 1` 6404 teststring=$teststring$teststring 6405 done 6406 # Only check the string length outside the loop. 6407 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6408 teststring= 6409 # Add a significant safety factor because C++ compilers can tack on 6410 # massive amounts of additional arguments before passing them to the 6411 # linker. It appears as though 1/2 is a usable value. 6412 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6413 fi 6414 ;; 6415 esac 6416 6417fi 6418 6419if test -n $lt_cv_sys_max_cmd_len ; then 6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6421$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6422else 6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6424$as_echo "none" >&6; } 6425fi 6426max_cmd_len=$lt_cv_sys_max_cmd_len 6427 6428 6429 6430 6431 6432 6433: ${CP="cp -f"} 6434: ${MV="mv -f"} 6435: ${RM="rm -f"} 6436 6437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 6438$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6439# Try some XSI features 6440xsi_shell=no 6441( _lt_dummy="a/b/c" 6442 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 6443 = c,a/b,b/c, \ 6444 && eval 'test $(( 1 + 1 )) -eq 2 \ 6445 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6446 && xsi_shell=yes 6447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 6448$as_echo "$xsi_shell" >&6; } 6449 6450 6451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 6452$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6453lt_shell_append=no 6454( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6455 >/dev/null 2>&1 \ 6456 && lt_shell_append=yes 6457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 6458$as_echo "$lt_shell_append" >&6; } 6459 6460 6461if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6462 lt_unset=unset 6463else 6464 lt_unset=false 6465fi 6466 6467 6468 6469 6470 6471# test EBCDIC or ASCII 6472case `echo X|tr X '\101'` in 6473 A) # ASCII based system 6474 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6475 lt_SP2NL='tr \040 \012' 6476 lt_NL2SP='tr \015\012 \040\040' 6477 ;; 6478 *) # EBCDIC based system 6479 lt_SP2NL='tr \100 \n' 6480 lt_NL2SP='tr \r\n \100\100' 6481 ;; 6482esac 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6493$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6494if ${lt_cv_to_host_file_cmd+:} false; then : 6495 $as_echo_n "(cached) " >&6 6496else 6497 case $host in 6498 *-*-mingw* ) 6499 case $build in 6500 *-*-mingw* ) # actually msys 6501 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6502 ;; 6503 *-*-cygwin* ) 6504 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6505 ;; 6506 * ) # otherwise, assume *nix 6507 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6508 ;; 6509 esac 6510 ;; 6511 *-*-cygwin* ) 6512 case $build in 6513 *-*-mingw* ) # actually msys 6514 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6515 ;; 6516 *-*-cygwin* ) 6517 lt_cv_to_host_file_cmd=func_convert_file_noop 6518 ;; 6519 * ) # otherwise, assume *nix 6520 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6521 ;; 6522 esac 6523 ;; 6524 * ) # unhandled hosts (and "normal" native builds) 6525 lt_cv_to_host_file_cmd=func_convert_file_noop 6526 ;; 6527esac 6528 6529fi 6530 6531to_host_file_cmd=$lt_cv_to_host_file_cmd 6532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6533$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6534 6535 6536 6537 6538 6539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6540$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6541if ${lt_cv_to_tool_file_cmd+:} false; then : 6542 $as_echo_n "(cached) " >&6 6543else 6544 #assume ordinary cross tools, or native build. 6545lt_cv_to_tool_file_cmd=func_convert_file_noop 6546case $host in 6547 *-*-mingw* ) 6548 case $build in 6549 *-*-mingw* ) # actually msys 6550 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6551 ;; 6552 esac 6553 ;; 6554esac 6555 6556fi 6557 6558to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6560$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6561 6562 6563 6564 6565 6566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6567$as_echo_n "checking for $LD option to reload object files... " >&6; } 6568if ${lt_cv_ld_reload_flag+:} false; then : 6569 $as_echo_n "(cached) " >&6 6570else 6571 lt_cv_ld_reload_flag='-r' 6572fi 6573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6574$as_echo "$lt_cv_ld_reload_flag" >&6; } 6575reload_flag=$lt_cv_ld_reload_flag 6576case $reload_flag in 6577"" | " "*) ;; 6578*) reload_flag=" $reload_flag" ;; 6579esac 6580reload_cmds='$LD$reload_flag -o $output$reload_objs' 6581case $host_os in 6582 cygwin* | mingw* | pw32* | cegcc*) 6583 if test "$GCC" != yes; then 6584 reload_cmds=false 6585 fi 6586 ;; 6587 darwin*) 6588 if test "$GCC" = yes; then 6589 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6590 else 6591 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6592 fi 6593 ;; 6594esac 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604if test -n "$ac_tool_prefix"; then 6605 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6606set dummy ${ac_tool_prefix}objdump; ac_word=$2 6607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6608$as_echo_n "checking for $ac_word... " >&6; } 6609if ${ac_cv_prog_OBJDUMP+:} false; then : 6610 $as_echo_n "(cached) " >&6 6611else 6612 if test -n "$OBJDUMP"; then 6613 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6614else 6615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6616for as_dir in $PATH 6617do 6618 IFS=$as_save_IFS 6619 test -z "$as_dir" && as_dir=. 6620 for ac_exec_ext in '' $ac_executable_extensions; do 6621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6622 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6624 break 2 6625 fi 6626done 6627 done 6628IFS=$as_save_IFS 6629 6630fi 6631fi 6632OBJDUMP=$ac_cv_prog_OBJDUMP 6633if test -n "$OBJDUMP"; then 6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6635$as_echo "$OBJDUMP" >&6; } 6636else 6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6638$as_echo "no" >&6; } 6639fi 6640 6641 6642fi 6643if test -z "$ac_cv_prog_OBJDUMP"; then 6644 ac_ct_OBJDUMP=$OBJDUMP 6645 # Extract the first word of "objdump", so it can be a program name with args. 6646set dummy objdump; ac_word=$2 6647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6648$as_echo_n "checking for $ac_word... " >&6; } 6649if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6650 $as_echo_n "(cached) " >&6 6651else 6652 if test -n "$ac_ct_OBJDUMP"; then 6653 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6654else 6655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6656for as_dir in $PATH 6657do 6658 IFS=$as_save_IFS 6659 test -z "$as_dir" && as_dir=. 6660 for ac_exec_ext in '' $ac_executable_extensions; do 6661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6662 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6664 break 2 6665 fi 6666done 6667 done 6668IFS=$as_save_IFS 6669 6670fi 6671fi 6672ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6673if test -n "$ac_ct_OBJDUMP"; then 6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6675$as_echo "$ac_ct_OBJDUMP" >&6; } 6676else 6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6678$as_echo "no" >&6; } 6679fi 6680 6681 if test "x$ac_ct_OBJDUMP" = x; then 6682 OBJDUMP="false" 6683 else 6684 case $cross_compiling:$ac_tool_warned in 6685yes:) 6686{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6687$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6688ac_tool_warned=yes ;; 6689esac 6690 OBJDUMP=$ac_ct_OBJDUMP 6691 fi 6692else 6693 OBJDUMP="$ac_cv_prog_OBJDUMP" 6694fi 6695 6696test -z "$OBJDUMP" && OBJDUMP=objdump 6697 6698 6699 6700 6701 6702 6703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6704$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6705if ${lt_cv_deplibs_check_method+:} false; then : 6706 $as_echo_n "(cached) " >&6 6707else 6708 lt_cv_file_magic_cmd='$MAGIC_CMD' 6709lt_cv_file_magic_test_file= 6710lt_cv_deplibs_check_method='unknown' 6711# Need to set the preceding variable on all platforms that support 6712# interlibrary dependencies. 6713# 'none' -- dependencies not supported. 6714# `unknown' -- same as none, but documents that we really don't know. 6715# 'pass_all' -- all dependencies passed with no checks. 6716# 'test_compile' -- check by making test program. 6717# 'file_magic [[regex]]' -- check by looking for files in library path 6718# which responds to the $file_magic_cmd with a given extended regex. 6719# If you have `file' or equivalent on your system and you're not sure 6720# whether `pass_all' will *always* work, you probably want this one. 6721 6722case $host_os in 6723aix[4-9]*) 6724 lt_cv_deplibs_check_method=pass_all 6725 ;; 6726 6727beos*) 6728 lt_cv_deplibs_check_method=pass_all 6729 ;; 6730 6731bsdi[45]*) 6732 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6733 lt_cv_file_magic_cmd='/usr/bin/file -L' 6734 lt_cv_file_magic_test_file=/shlib/libc.so 6735 ;; 6736 6737cygwin*) 6738 # func_win32_libid is a shell function defined in ltmain.sh 6739 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6740 lt_cv_file_magic_cmd='func_win32_libid' 6741 ;; 6742 6743mingw* | pw32*) 6744 # Base MSYS/MinGW do not provide the 'file' command needed by 6745 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6746 # unless we find 'file', for example because we are cross-compiling. 6747 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6748 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6749 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6750 lt_cv_file_magic_cmd='func_win32_libid' 6751 else 6752 # Keep this pattern in sync with the one in func_win32_libid. 6753 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6754 lt_cv_file_magic_cmd='$OBJDUMP -f' 6755 fi 6756 ;; 6757 6758cegcc*) 6759 # use the weaker test based on 'objdump'. See mingw*. 6760 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6761 lt_cv_file_magic_cmd='$OBJDUMP -f' 6762 ;; 6763 6764darwin* | rhapsody*) 6765 lt_cv_deplibs_check_method=pass_all 6766 ;; 6767 6768freebsd* | dragonfly*) 6769 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6770 case $host_cpu in 6771 i*86 ) 6772 # Not sure whether the presence of OpenBSD here was a mistake. 6773 # Let's accept both of them until this is cleared up. 6774 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6775 lt_cv_file_magic_cmd=/usr/bin/file 6776 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6777 ;; 6778 esac 6779 else 6780 lt_cv_deplibs_check_method=pass_all 6781 fi 6782 ;; 6783 6784haiku*) 6785 lt_cv_deplibs_check_method=pass_all 6786 ;; 6787 6788hpux10.20* | hpux11*) 6789 lt_cv_file_magic_cmd=/usr/bin/file 6790 case $host_cpu in 6791 ia64*) 6792 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6793 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6794 ;; 6795 hppa*64*) 6796 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]' 6797 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6798 ;; 6799 *) 6800 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6801 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6802 ;; 6803 esac 6804 ;; 6805 6806interix[3-9]*) 6807 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6808 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6809 ;; 6810 6811irix5* | irix6* | nonstopux*) 6812 case $LD in 6813 *-32|*"-32 ") libmagic=32-bit;; 6814 *-n32|*"-n32 ") libmagic=N32;; 6815 *-64|*"-64 ") libmagic=64-bit;; 6816 *) libmagic=never-match;; 6817 esac 6818 lt_cv_deplibs_check_method=pass_all 6819 ;; 6820 6821# This must be glibc/ELF. 6822linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6823 lt_cv_deplibs_check_method=pass_all 6824 ;; 6825 6826netbsd* | netbsdelf*-gnu) 6827 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6828 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6829 else 6830 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6831 fi 6832 ;; 6833 6834newos6*) 6835 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6836 lt_cv_file_magic_cmd=/usr/bin/file 6837 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6838 ;; 6839 6840*nto* | *qnx*) 6841 lt_cv_deplibs_check_method=pass_all 6842 ;; 6843 6844openbsd*) 6845 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6846 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6847 else 6848 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6849 fi 6850 ;; 6851 6852osf3* | osf4* | osf5*) 6853 lt_cv_deplibs_check_method=pass_all 6854 ;; 6855 6856rdos*) 6857 lt_cv_deplibs_check_method=pass_all 6858 ;; 6859 6860solaris*) 6861 lt_cv_deplibs_check_method=pass_all 6862 ;; 6863 6864sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6865 lt_cv_deplibs_check_method=pass_all 6866 ;; 6867 6868sysv4 | sysv4.3*) 6869 case $host_vendor in 6870 motorola) 6871 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]' 6872 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6873 ;; 6874 ncr) 6875 lt_cv_deplibs_check_method=pass_all 6876 ;; 6877 sequent) 6878 lt_cv_file_magic_cmd='/bin/file' 6879 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6880 ;; 6881 sni) 6882 lt_cv_file_magic_cmd='/bin/file' 6883 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6884 lt_cv_file_magic_test_file=/lib/libc.so 6885 ;; 6886 siemens) 6887 lt_cv_deplibs_check_method=pass_all 6888 ;; 6889 pc) 6890 lt_cv_deplibs_check_method=pass_all 6891 ;; 6892 esac 6893 ;; 6894 6895tpf*) 6896 lt_cv_deplibs_check_method=pass_all 6897 ;; 6898esac 6899 6900fi 6901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6902$as_echo "$lt_cv_deplibs_check_method" >&6; } 6903 6904file_magic_glob= 6905want_nocaseglob=no 6906if test "$build" = "$host"; then 6907 case $host_os in 6908 mingw* | pw32*) 6909 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6910 want_nocaseglob=yes 6911 else 6912 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6913 fi 6914 ;; 6915 esac 6916fi 6917 6918file_magic_cmd=$lt_cv_file_magic_cmd 6919deplibs_check_method=$lt_cv_deplibs_check_method 6920test -z "$deplibs_check_method" && deplibs_check_method=unknown 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943if test -n "$ac_tool_prefix"; then 6944 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6945set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6947$as_echo_n "checking for $ac_word... " >&6; } 6948if ${ac_cv_prog_DLLTOOL+:} false; then : 6949 $as_echo_n "(cached) " >&6 6950else 6951 if test -n "$DLLTOOL"; then 6952 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6953else 6954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6955for as_dir in $PATH 6956do 6957 IFS=$as_save_IFS 6958 test -z "$as_dir" && as_dir=. 6959 for ac_exec_ext in '' $ac_executable_extensions; do 6960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6961 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6963 break 2 6964 fi 6965done 6966 done 6967IFS=$as_save_IFS 6968 6969fi 6970fi 6971DLLTOOL=$ac_cv_prog_DLLTOOL 6972if test -n "$DLLTOOL"; then 6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6974$as_echo "$DLLTOOL" >&6; } 6975else 6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6977$as_echo "no" >&6; } 6978fi 6979 6980 6981fi 6982if test -z "$ac_cv_prog_DLLTOOL"; then 6983 ac_ct_DLLTOOL=$DLLTOOL 6984 # Extract the first word of "dlltool", so it can be a program name with args. 6985set dummy dlltool; ac_word=$2 6986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6987$as_echo_n "checking for $ac_word... " >&6; } 6988if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6989 $as_echo_n "(cached) " >&6 6990else 6991 if test -n "$ac_ct_DLLTOOL"; then 6992 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6993else 6994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6995for as_dir in $PATH 6996do 6997 IFS=$as_save_IFS 6998 test -z "$as_dir" && as_dir=. 6999 for ac_exec_ext in '' $ac_executable_extensions; do 7000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7001 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7003 break 2 7004 fi 7005done 7006 done 7007IFS=$as_save_IFS 7008 7009fi 7010fi 7011ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7012if test -n "$ac_ct_DLLTOOL"; then 7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7014$as_echo "$ac_ct_DLLTOOL" >&6; } 7015else 7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7017$as_echo "no" >&6; } 7018fi 7019 7020 if test "x$ac_ct_DLLTOOL" = x; then 7021 DLLTOOL="false" 7022 else 7023 case $cross_compiling:$ac_tool_warned in 7024yes:) 7025{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7026$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7027ac_tool_warned=yes ;; 7028esac 7029 DLLTOOL=$ac_ct_DLLTOOL 7030 fi 7031else 7032 DLLTOOL="$ac_cv_prog_DLLTOOL" 7033fi 7034 7035test -z "$DLLTOOL" && DLLTOOL=dlltool 7036 7037 7038 7039 7040 7041 7042 7043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7044$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 7045if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 7046 $as_echo_n "(cached) " >&6 7047else 7048 lt_cv_sharedlib_from_linklib_cmd='unknown' 7049 7050case $host_os in 7051cygwin* | mingw* | pw32* | cegcc*) 7052 # two different shell functions defined in ltmain.sh 7053 # decide which to use based on capabilities of $DLLTOOL 7054 case `$DLLTOOL --help 2>&1` in 7055 *--identify-strict*) 7056 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7057 ;; 7058 *) 7059 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7060 ;; 7061 esac 7062 ;; 7063*) 7064 # fallback: assume linklib IS sharedlib 7065 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 7066 ;; 7067esac 7068 7069fi 7070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7071$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7072sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7073test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7074 7075 7076 7077 7078 7079 7080 7081if test -n "$ac_tool_prefix"; then 7082 for ac_prog in ar 7083 do 7084 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7085set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7087$as_echo_n "checking for $ac_word... " >&6; } 7088if ${ac_cv_prog_AR+:} false; then : 7089 $as_echo_n "(cached) " >&6 7090else 7091 if test -n "$AR"; then 7092 ac_cv_prog_AR="$AR" # Let the user override the test. 7093else 7094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7095for as_dir in $PATH 7096do 7097 IFS=$as_save_IFS 7098 test -z "$as_dir" && as_dir=. 7099 for ac_exec_ext in '' $ac_executable_extensions; do 7100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7101 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7103 break 2 7104 fi 7105done 7106 done 7107IFS=$as_save_IFS 7108 7109fi 7110fi 7111AR=$ac_cv_prog_AR 7112if test -n "$AR"; then 7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7114$as_echo "$AR" >&6; } 7115else 7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7117$as_echo "no" >&6; } 7118fi 7119 7120 7121 test -n "$AR" && break 7122 done 7123fi 7124if test -z "$AR"; then 7125 ac_ct_AR=$AR 7126 for ac_prog in ar 7127do 7128 # Extract the first word of "$ac_prog", so it can be a program name with args. 7129set dummy $ac_prog; ac_word=$2 7130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7131$as_echo_n "checking for $ac_word... " >&6; } 7132if ${ac_cv_prog_ac_ct_AR+:} false; then : 7133 $as_echo_n "(cached) " >&6 7134else 7135 if test -n "$ac_ct_AR"; then 7136 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7137else 7138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7139for as_dir in $PATH 7140do 7141 IFS=$as_save_IFS 7142 test -z "$as_dir" && as_dir=. 7143 for ac_exec_ext in '' $ac_executable_extensions; do 7144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7145 ac_cv_prog_ac_ct_AR="$ac_prog" 7146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7147 break 2 7148 fi 7149done 7150 done 7151IFS=$as_save_IFS 7152 7153fi 7154fi 7155ac_ct_AR=$ac_cv_prog_ac_ct_AR 7156if test -n "$ac_ct_AR"; then 7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7158$as_echo "$ac_ct_AR" >&6; } 7159else 7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7161$as_echo "no" >&6; } 7162fi 7163 7164 7165 test -n "$ac_ct_AR" && break 7166done 7167 7168 if test "x$ac_ct_AR" = x; then 7169 AR="false" 7170 else 7171 case $cross_compiling:$ac_tool_warned in 7172yes:) 7173{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7174$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7175ac_tool_warned=yes ;; 7176esac 7177 AR=$ac_ct_AR 7178 fi 7179fi 7180 7181: ${AR=ar} 7182: ${AR_FLAGS=cru} 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7195$as_echo_n "checking for archiver @FILE support... " >&6; } 7196if ${lt_cv_ar_at_file+:} false; then : 7197 $as_echo_n "(cached) " >&6 7198else 7199 lt_cv_ar_at_file=no 7200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7201/* end confdefs.h. */ 7202 7203int 7204main () 7205{ 7206 7207 ; 7208 return 0; 7209} 7210_ACEOF 7211if ac_fn_c_try_compile "$LINENO"; then : 7212 echo conftest.$ac_objext > conftest.lst 7213 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7215 (eval $lt_ar_try) 2>&5 7216 ac_status=$? 7217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7218 test $ac_status = 0; } 7219 if test "$ac_status" -eq 0; then 7220 # Ensure the archiver fails upon bogus file names. 7221 rm -f conftest.$ac_objext libconftest.a 7222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7223 (eval $lt_ar_try) 2>&5 7224 ac_status=$? 7225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7226 test $ac_status = 0; } 7227 if test "$ac_status" -ne 0; then 7228 lt_cv_ar_at_file=@ 7229 fi 7230 fi 7231 rm -f conftest.* libconftest.a 7232 7233fi 7234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7235 7236fi 7237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7238$as_echo "$lt_cv_ar_at_file" >&6; } 7239 7240if test "x$lt_cv_ar_at_file" = xno; then 7241 archiver_list_spec= 7242else 7243 archiver_list_spec=$lt_cv_ar_at_file 7244fi 7245 7246 7247 7248 7249 7250 7251 7252if test -n "$ac_tool_prefix"; then 7253 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7254set dummy ${ac_tool_prefix}strip; ac_word=$2 7255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7256$as_echo_n "checking for $ac_word... " >&6; } 7257if ${ac_cv_prog_STRIP+:} false; then : 7258 $as_echo_n "(cached) " >&6 7259else 7260 if test -n "$STRIP"; then 7261 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7262else 7263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7264for as_dir in $PATH 7265do 7266 IFS=$as_save_IFS 7267 test -z "$as_dir" && as_dir=. 7268 for ac_exec_ext in '' $ac_executable_extensions; do 7269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7270 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7272 break 2 7273 fi 7274done 7275 done 7276IFS=$as_save_IFS 7277 7278fi 7279fi 7280STRIP=$ac_cv_prog_STRIP 7281if test -n "$STRIP"; then 7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7283$as_echo "$STRIP" >&6; } 7284else 7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7286$as_echo "no" >&6; } 7287fi 7288 7289 7290fi 7291if test -z "$ac_cv_prog_STRIP"; then 7292 ac_ct_STRIP=$STRIP 7293 # Extract the first word of "strip", so it can be a program name with args. 7294set dummy strip; ac_word=$2 7295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7296$as_echo_n "checking for $ac_word... " >&6; } 7297if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7298 $as_echo_n "(cached) " >&6 7299else 7300 if test -n "$ac_ct_STRIP"; then 7301 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7302else 7303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7304for as_dir in $PATH 7305do 7306 IFS=$as_save_IFS 7307 test -z "$as_dir" && as_dir=. 7308 for ac_exec_ext in '' $ac_executable_extensions; do 7309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7310 ac_cv_prog_ac_ct_STRIP="strip" 7311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7312 break 2 7313 fi 7314done 7315 done 7316IFS=$as_save_IFS 7317 7318fi 7319fi 7320ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7321if test -n "$ac_ct_STRIP"; then 7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7323$as_echo "$ac_ct_STRIP" >&6; } 7324else 7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7326$as_echo "no" >&6; } 7327fi 7328 7329 if test "x$ac_ct_STRIP" = x; then 7330 STRIP=":" 7331 else 7332 case $cross_compiling:$ac_tool_warned in 7333yes:) 7334{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7335$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7336ac_tool_warned=yes ;; 7337esac 7338 STRIP=$ac_ct_STRIP 7339 fi 7340else 7341 STRIP="$ac_cv_prog_STRIP" 7342fi 7343 7344test -z "$STRIP" && STRIP=: 7345 7346 7347 7348 7349 7350 7351if test -n "$ac_tool_prefix"; then 7352 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7353set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+:} false; then : 7357 $as_echo_n "(cached) " >&6 7358else 7359 if test -n "$RANLIB"; then 7360 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib" 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 7379RANLIB=$ac_cv_prog_RANLIB 7380if test -n "$RANLIB"; then 7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7382$as_echo "$RANLIB" >&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_RANLIB"; then 7391 ac_ct_RANLIB=$RANLIB 7392 # Extract the first word of "ranlib", so it can be a program name with args. 7393set dummy ranlib; 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_RANLIB+:} false; then : 7397 $as_echo_n "(cached) " >&6 7398else 7399 if test -n "$ac_ct_RANLIB"; then 7400 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_RANLIB="ranlib" 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_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7420if test -n "$ac_ct_RANLIB"; then 7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7422$as_echo "$ac_ct_RANLIB" >&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_RANLIB" = x; then 7429 RANLIB=":" 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 RANLIB=$ac_ct_RANLIB 7438 fi 7439else 7440 RANLIB="$ac_cv_prog_RANLIB" 7441fi 7442 7443test -z "$RANLIB" && RANLIB=: 7444 7445 7446 7447 7448 7449 7450# Determine commands to create old-style static archives. 7451old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7452old_postinstall_cmds='chmod 644 $oldlib' 7453old_postuninstall_cmds= 7454 7455if test -n "$RANLIB"; then 7456 case $host_os in 7457 openbsd*) 7458 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7459 ;; 7460 *) 7461 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7462 ;; 7463 esac 7464 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7465fi 7466 7467case $host_os in 7468 darwin*) 7469 lock_old_archive_extraction=yes ;; 7470 *) 7471 lock_old_archive_extraction=no ;; 7472esac 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512# If no C compiler was specified, use CC. 7513LTCC=${LTCC-"$CC"} 7514 7515# If no C compiler flags were specified, use CFLAGS. 7516LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7517 7518# Allow CC to be a program name with arguments. 7519compiler=$CC 7520 7521 7522# Check for command to grab the raw symbol name followed by C symbol from nm. 7523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7524$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7525if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7526 $as_echo_n "(cached) " >&6 7527else 7528 7529# These are sane defaults that work on at least a few old systems. 7530# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7531 7532# Character class describing NM global symbol codes. 7533symcode='[BCDEGRST]' 7534 7535# Regexp to match symbols that can be accessed directly from C. 7536sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7537 7538# Define system-specific variables. 7539case $host_os in 7540aix*) 7541 symcode='[BCDT]' 7542 ;; 7543cygwin* | mingw* | pw32* | cegcc*) 7544 symcode='[ABCDGISTW]' 7545 ;; 7546hpux*) 7547 if test "$host_cpu" = ia64; then 7548 symcode='[ABCDEGRST]' 7549 fi 7550 ;; 7551irix* | nonstopux*) 7552 symcode='[BCDEGRST]' 7553 ;; 7554osf*) 7555 symcode='[BCDEGQRST]' 7556 ;; 7557solaris*) 7558 symcode='[BDRT]' 7559 ;; 7560sco3.2v5*) 7561 symcode='[DT]' 7562 ;; 7563sysv4.2uw2*) 7564 symcode='[DT]' 7565 ;; 7566sysv5* | sco5v6* | unixware* | OpenUNIX*) 7567 symcode='[ABDT]' 7568 ;; 7569sysv4) 7570 symcode='[DFNSTU]' 7571 ;; 7572esac 7573 7574# If we're using GNU nm, then use its standard symbol codes. 7575case `$NM -V 2>&1` in 7576*GNU* | *'with BFD'*) 7577 symcode='[ABCDGIRSTW]' ;; 7578esac 7579 7580# Transform an extracted symbol line into a proper C declaration. 7581# Some systems (esp. on ia64) link data and code symbols differently, 7582# so use this general approach. 7583lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7584 7585# Transform an extracted symbol line into symbol name and symbol address 7586lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7587lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 7588 7589# Handle CRLF in mingw tool chain 7590opt_cr= 7591case $build_os in 7592mingw*) 7593 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7594 ;; 7595esac 7596 7597# Try without a prefix underscore, then with it. 7598for ac_symprfx in "" "_"; do 7599 7600 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7601 symxfrm="\\1 $ac_symprfx\\2 \\2" 7602 7603 # Write the raw and C identifiers. 7604 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7605 # Fake it for dumpbin and say T for any non-static function 7606 # and D for any global variable. 7607 # Also find C++ and __fastcall symbols from MSVC++, 7608 # which start with @ or ?. 7609 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7610" {last_section=section; section=\$ 3};"\ 7611" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7612" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7613" \$ 0!~/External *\|/{next};"\ 7614" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7615" {if(hide[section]) next};"\ 7616" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7617" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7618" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7619" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7620" ' prfx=^$ac_symprfx" 7621 else 7622 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7623 fi 7624 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7625 7626 # Check to see that the pipe works correctly. 7627 pipe_works=no 7628 7629 rm -f conftest* 7630 cat > conftest.$ac_ext <<_LT_EOF 7631#ifdef __cplusplus 7632extern "C" { 7633#endif 7634char nm_test_var; 7635void nm_test_func(void); 7636void nm_test_func(void){} 7637#ifdef __cplusplus 7638} 7639#endif 7640int main(){nm_test_var='a';nm_test_func();return(0);} 7641_LT_EOF 7642 7643 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7644 (eval $ac_compile) 2>&5 7645 ac_status=$? 7646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7647 test $ac_status = 0; }; then 7648 # Now try to grab the symbols. 7649 nlist=conftest.nm 7650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7651 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7652 ac_status=$? 7653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7654 test $ac_status = 0; } && test -s "$nlist"; then 7655 # Try sorting and uniquifying the output. 7656 if sort "$nlist" | uniq > "$nlist"T; then 7657 mv -f "$nlist"T "$nlist" 7658 else 7659 rm -f "$nlist"T 7660 fi 7661 7662 # Make sure that we snagged all the symbols we need. 7663 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7664 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7665 cat <<_LT_EOF > conftest.$ac_ext 7666/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7667#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 7668/* DATA imports from DLLs on WIN32 con't be const, because runtime 7669 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7670# define LT_DLSYM_CONST 7671#elif defined(__osf__) 7672/* This system does not cope well with relocations in const data. */ 7673# define LT_DLSYM_CONST 7674#else 7675# define LT_DLSYM_CONST const 7676#endif 7677 7678#ifdef __cplusplus 7679extern "C" { 7680#endif 7681 7682_LT_EOF 7683 # Now generate the symbol file. 7684 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7685 7686 cat <<_LT_EOF >> conftest.$ac_ext 7687 7688/* The mapping between symbol names and symbols. */ 7689LT_DLSYM_CONST struct { 7690 const char *name; 7691 void *address; 7692} 7693lt__PROGRAM__LTX_preloaded_symbols[] = 7694{ 7695 { "@PROGRAM@", (void *) 0 }, 7696_LT_EOF 7697 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7698 cat <<\_LT_EOF >> conftest.$ac_ext 7699 {0, (void *) 0} 7700}; 7701 7702/* This works around a problem in FreeBSD linker */ 7703#ifdef FREEBSD_WORKAROUND 7704static const void *lt_preloaded_setup() { 7705 return lt__PROGRAM__LTX_preloaded_symbols; 7706} 7707#endif 7708 7709#ifdef __cplusplus 7710} 7711#endif 7712_LT_EOF 7713 # Now try linking the two files. 7714 mv conftest.$ac_objext conftstm.$ac_objext 7715 lt_globsym_save_LIBS=$LIBS 7716 lt_globsym_save_CFLAGS=$CFLAGS 7717 LIBS="conftstm.$ac_objext" 7718 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7720 (eval $ac_link) 2>&5 7721 ac_status=$? 7722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7723 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7724 pipe_works=yes 7725 fi 7726 LIBS=$lt_globsym_save_LIBS 7727 CFLAGS=$lt_globsym_save_CFLAGS 7728 else 7729 echo "cannot find nm_test_func in $nlist" >&5 7730 fi 7731 else 7732 echo "cannot find nm_test_var in $nlist" >&5 7733 fi 7734 else 7735 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7736 fi 7737 else 7738 echo "$progname: failed program was:" >&5 7739 cat conftest.$ac_ext >&5 7740 fi 7741 rm -rf conftest* conftst* 7742 7743 # Do not use the global_symbol_pipe unless it works. 7744 if test "$pipe_works" = yes; then 7745 break 7746 else 7747 lt_cv_sys_global_symbol_pipe= 7748 fi 7749done 7750 7751fi 7752 7753if test -z "$lt_cv_sys_global_symbol_pipe"; then 7754 lt_cv_sys_global_symbol_to_cdecl= 7755fi 7756if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7758$as_echo "failed" >&6; } 7759else 7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7761$as_echo "ok" >&6; } 7762fi 7763 7764# Response file support. 7765if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7766 nm_file_list_spec='@' 7767elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7768 nm_file_list_spec='@' 7769fi 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7798$as_echo_n "checking for sysroot... " >&6; } 7799 7800# Check whether --with-sysroot was given. 7801if test "${with_sysroot+set}" = set; then : 7802 withval=$with_sysroot; 7803else 7804 with_sysroot=no 7805fi 7806 7807 7808lt_sysroot= 7809case ${with_sysroot} in #( 7810 yes) 7811 if test "$GCC" = yes; then 7812 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7813 fi 7814 ;; #( 7815 /*) 7816 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7817 ;; #( 7818 no|'') 7819 ;; #( 7820 *) 7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 7822$as_echo "${with_sysroot}" >&6; } 7823 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7824 ;; 7825esac 7826 7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7828$as_echo "${lt_sysroot:-no}" >&6; } 7829 7830 7831 7832 7833 7834# Check whether --enable-libtool-lock was given. 7835if test "${enable_libtool_lock+set}" = set; then : 7836 enableval=$enable_libtool_lock; 7837fi 7838 7839test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7840 7841# Some flags need to be propagated to the compiler or linker for good 7842# libtool support. 7843case $host in 7844ia64-*-hpux*) 7845 # Find out which ABI we are using. 7846 echo 'int i;' > conftest.$ac_ext 7847 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7848 (eval $ac_compile) 2>&5 7849 ac_status=$? 7850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7851 test $ac_status = 0; }; then 7852 case `/usr/bin/file conftest.$ac_objext` in 7853 *ELF-32*) 7854 HPUX_IA64_MODE="32" 7855 ;; 7856 *ELF-64*) 7857 HPUX_IA64_MODE="64" 7858 ;; 7859 esac 7860 fi 7861 rm -rf conftest* 7862 ;; 7863*-*-irix6*) 7864 # Find out which ABI we are using. 7865 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7867 (eval $ac_compile) 2>&5 7868 ac_status=$? 7869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7870 test $ac_status = 0; }; then 7871 if test "$lt_cv_prog_gnu_ld" = yes; then 7872 case `/usr/bin/file conftest.$ac_objext` in 7873 *32-bit*) 7874 LD="${LD-ld} -melf32bsmip" 7875 ;; 7876 *N32*) 7877 LD="${LD-ld} -melf32bmipn32" 7878 ;; 7879 *64-bit*) 7880 LD="${LD-ld} -melf64bmip" 7881 ;; 7882 esac 7883 else 7884 case `/usr/bin/file conftest.$ac_objext` in 7885 *32-bit*) 7886 LD="${LD-ld} -32" 7887 ;; 7888 *N32*) 7889 LD="${LD-ld} -n32" 7890 ;; 7891 *64-bit*) 7892 LD="${LD-ld} -64" 7893 ;; 7894 esac 7895 fi 7896 fi 7897 rm -rf conftest* 7898 ;; 7899 7900x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7901s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7902 # Find out which ABI we are using. 7903 echo 'int i;' > conftest.$ac_ext 7904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7905 (eval $ac_compile) 2>&5 7906 ac_status=$? 7907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7908 test $ac_status = 0; }; then 7909 case `/usr/bin/file conftest.o` in 7910 *32-bit*) 7911 case $host in 7912 x86_64-*kfreebsd*-gnu) 7913 LD="${LD-ld} -m elf_i386_fbsd" 7914 ;; 7915 x86_64-*linux*) 7916 case `/usr/bin/file conftest.o` in 7917 *x86-64*) 7918 LD="${LD-ld} -m elf32_x86_64" 7919 ;; 7920 *) 7921 LD="${LD-ld} -m elf_i386" 7922 ;; 7923 esac 7924 ;; 7925 powerpc64le-*) 7926 LD="${LD-ld} -m elf32lppclinux" 7927 ;; 7928 powerpc64-*) 7929 LD="${LD-ld} -m elf32ppclinux" 7930 ;; 7931 s390x-*linux*) 7932 LD="${LD-ld} -m elf_s390" 7933 ;; 7934 sparc64-*linux*) 7935 LD="${LD-ld} -m elf32_sparc" 7936 ;; 7937 esac 7938 ;; 7939 *64-bit*) 7940 case $host in 7941 x86_64-*kfreebsd*-gnu) 7942 LD="${LD-ld} -m elf_x86_64_fbsd" 7943 ;; 7944 x86_64-*linux*) 7945 LD="${LD-ld} -m elf_x86_64" 7946 ;; 7947 powerpcle-*) 7948 LD="${LD-ld} -m elf64lppc" 7949 ;; 7950 powerpc-*) 7951 LD="${LD-ld} -m elf64ppc" 7952 ;; 7953 s390*-*linux*|s390*-*tpf*) 7954 LD="${LD-ld} -m elf64_s390" 7955 ;; 7956 sparc*-*linux*) 7957 LD="${LD-ld} -m elf64_sparc" 7958 ;; 7959 esac 7960 ;; 7961 esac 7962 fi 7963 rm -rf conftest* 7964 ;; 7965 7966*-*-sco3.2v5*) 7967 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7968 SAVE_CFLAGS="$CFLAGS" 7969 CFLAGS="$CFLAGS -belf" 7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7971$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7972if ${lt_cv_cc_needs_belf+:} false; then : 7973 $as_echo_n "(cached) " >&6 7974else 7975 ac_ext=c 7976ac_cpp='$CPP $CPPFLAGS' 7977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7979ac_compiler_gnu=$ac_cv_c_compiler_gnu 7980 7981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7982/* end confdefs.h. */ 7983 7984int 7985main () 7986{ 7987 7988 ; 7989 return 0; 7990} 7991_ACEOF 7992if ac_fn_c_try_link "$LINENO"; then : 7993 lt_cv_cc_needs_belf=yes 7994else 7995 lt_cv_cc_needs_belf=no 7996fi 7997rm -f core conftest.err conftest.$ac_objext \ 7998 conftest$ac_exeext conftest.$ac_ext 7999 ac_ext=c 8000ac_cpp='$CPP $CPPFLAGS' 8001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8003ac_compiler_gnu=$ac_cv_c_compiler_gnu 8004 8005fi 8006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8007$as_echo "$lt_cv_cc_needs_belf" >&6; } 8008 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 8009 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8010 CFLAGS="$SAVE_CFLAGS" 8011 fi 8012 ;; 8013*-*solaris*) 8014 # Find out which ABI we are using. 8015 echo 'int i;' > conftest.$ac_ext 8016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8017 (eval $ac_compile) 2>&5 8018 ac_status=$? 8019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8020 test $ac_status = 0; }; then 8021 case `/usr/bin/file conftest.o` in 8022 *64-bit*) 8023 case $lt_cv_prog_gnu_ld in 8024 yes*) 8025 case $host in 8026 i?86-*-solaris*) 8027 LD="${LD-ld} -m elf_x86_64" 8028 ;; 8029 sparc*-*-solaris*) 8030 LD="${LD-ld} -m elf64_sparc" 8031 ;; 8032 esac 8033 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8034 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8035 LD="${LD-ld}_sol2" 8036 fi 8037 ;; 8038 *) 8039 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8040 LD="${LD-ld} -64" 8041 fi 8042 ;; 8043 esac 8044 ;; 8045 esac 8046 fi 8047 rm -rf conftest* 8048 ;; 8049esac 8050 8051need_locks="$enable_libtool_lock" 8052 8053if test -n "$ac_tool_prefix"; then 8054 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8055set dummy ${ac_tool_prefix}mt; ac_word=$2 8056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8057$as_echo_n "checking for $ac_word... " >&6; } 8058if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 8059 $as_echo_n "(cached) " >&6 8060else 8061 if test -n "$MANIFEST_TOOL"; then 8062 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8063else 8064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8065for as_dir in $PATH 8066do 8067 IFS=$as_save_IFS 8068 test -z "$as_dir" && as_dir=. 8069 for ac_exec_ext in '' $ac_executable_extensions; do 8070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8071 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8073 break 2 8074 fi 8075done 8076 done 8077IFS=$as_save_IFS 8078 8079fi 8080fi 8081MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8082if test -n "$MANIFEST_TOOL"; then 8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8084$as_echo "$MANIFEST_TOOL" >&6; } 8085else 8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8087$as_echo "no" >&6; } 8088fi 8089 8090 8091fi 8092if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8093 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8094 # Extract the first word of "mt", so it can be a program name with args. 8095set dummy mt; ac_word=$2 8096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8097$as_echo_n "checking for $ac_word... " >&6; } 8098if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 8099 $as_echo_n "(cached) " >&6 8100else 8101 if test -n "$ac_ct_MANIFEST_TOOL"; then 8102 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8103else 8104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8105for as_dir in $PATH 8106do 8107 IFS=$as_save_IFS 8108 test -z "$as_dir" && as_dir=. 8109 for ac_exec_ext in '' $ac_executable_extensions; do 8110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8111 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8113 break 2 8114 fi 8115done 8116 done 8117IFS=$as_save_IFS 8118 8119fi 8120fi 8121ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8122if test -n "$ac_ct_MANIFEST_TOOL"; then 8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8124$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 8125else 8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8127$as_echo "no" >&6; } 8128fi 8129 8130 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8131 MANIFEST_TOOL=":" 8132 else 8133 case $cross_compiling:$ac_tool_warned in 8134yes:) 8135{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8136$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8137ac_tool_warned=yes ;; 8138esac 8139 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8140 fi 8141else 8142 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8143fi 8144 8145test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8147$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8148if ${lt_cv_path_mainfest_tool+:} false; then : 8149 $as_echo_n "(cached) " >&6 8150else 8151 lt_cv_path_mainfest_tool=no 8152 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8153 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8154 cat conftest.err >&5 8155 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8156 lt_cv_path_mainfest_tool=yes 8157 fi 8158 rm -f conftest* 8159fi 8160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8161$as_echo "$lt_cv_path_mainfest_tool" >&6; } 8162if test "x$lt_cv_path_mainfest_tool" != xyes; then 8163 MANIFEST_TOOL=: 8164fi 8165 8166 8167 8168 8169 8170 8171 case $host_os in 8172 rhapsody* | darwin*) 8173 if test -n "$ac_tool_prefix"; then 8174 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8175set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8177$as_echo_n "checking for $ac_word... " >&6; } 8178if ${ac_cv_prog_DSYMUTIL+:} false; then : 8179 $as_echo_n "(cached) " >&6 8180else 8181 if test -n "$DSYMUTIL"; then 8182 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8183else 8184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8185for as_dir in $PATH 8186do 8187 IFS=$as_save_IFS 8188 test -z "$as_dir" && as_dir=. 8189 for ac_exec_ext in '' $ac_executable_extensions; do 8190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8191 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8193 break 2 8194 fi 8195done 8196 done 8197IFS=$as_save_IFS 8198 8199fi 8200fi 8201DSYMUTIL=$ac_cv_prog_DSYMUTIL 8202if test -n "$DSYMUTIL"; then 8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8204$as_echo "$DSYMUTIL" >&6; } 8205else 8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8207$as_echo "no" >&6; } 8208fi 8209 8210 8211fi 8212if test -z "$ac_cv_prog_DSYMUTIL"; then 8213 ac_ct_DSYMUTIL=$DSYMUTIL 8214 # Extract the first word of "dsymutil", so it can be a program name with args. 8215set dummy dsymutil; ac_word=$2 8216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8217$as_echo_n "checking for $ac_word... " >&6; } 8218if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8219 $as_echo_n "(cached) " >&6 8220else 8221 if test -n "$ac_ct_DSYMUTIL"; then 8222 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8223else 8224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8225for as_dir in $PATH 8226do 8227 IFS=$as_save_IFS 8228 test -z "$as_dir" && as_dir=. 8229 for ac_exec_ext in '' $ac_executable_extensions; do 8230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8231 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8233 break 2 8234 fi 8235done 8236 done 8237IFS=$as_save_IFS 8238 8239fi 8240fi 8241ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8242if test -n "$ac_ct_DSYMUTIL"; then 8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8244$as_echo "$ac_ct_DSYMUTIL" >&6; } 8245else 8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8247$as_echo "no" >&6; } 8248fi 8249 8250 if test "x$ac_ct_DSYMUTIL" = x; then 8251 DSYMUTIL=":" 8252 else 8253 case $cross_compiling:$ac_tool_warned in 8254yes:) 8255{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8256$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8257ac_tool_warned=yes ;; 8258esac 8259 DSYMUTIL=$ac_ct_DSYMUTIL 8260 fi 8261else 8262 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8263fi 8264 8265 if test -n "$ac_tool_prefix"; then 8266 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8267set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8269$as_echo_n "checking for $ac_word... " >&6; } 8270if ${ac_cv_prog_NMEDIT+:} false; then : 8271 $as_echo_n "(cached) " >&6 8272else 8273 if test -n "$NMEDIT"; then 8274 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8275else 8276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8277for as_dir in $PATH 8278do 8279 IFS=$as_save_IFS 8280 test -z "$as_dir" && as_dir=. 8281 for ac_exec_ext in '' $ac_executable_extensions; do 8282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8283 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8285 break 2 8286 fi 8287done 8288 done 8289IFS=$as_save_IFS 8290 8291fi 8292fi 8293NMEDIT=$ac_cv_prog_NMEDIT 8294if test -n "$NMEDIT"; then 8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8296$as_echo "$NMEDIT" >&6; } 8297else 8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8299$as_echo "no" >&6; } 8300fi 8301 8302 8303fi 8304if test -z "$ac_cv_prog_NMEDIT"; then 8305 ac_ct_NMEDIT=$NMEDIT 8306 # Extract the first word of "nmedit", so it can be a program name with args. 8307set dummy nmedit; ac_word=$2 8308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8309$as_echo_n "checking for $ac_word... " >&6; } 8310if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8311 $as_echo_n "(cached) " >&6 8312else 8313 if test -n "$ac_ct_NMEDIT"; then 8314 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8315else 8316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8317for as_dir in $PATH 8318do 8319 IFS=$as_save_IFS 8320 test -z "$as_dir" && as_dir=. 8321 for ac_exec_ext in '' $ac_executable_extensions; do 8322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8323 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8325 break 2 8326 fi 8327done 8328 done 8329IFS=$as_save_IFS 8330 8331fi 8332fi 8333ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8334if test -n "$ac_ct_NMEDIT"; then 8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8336$as_echo "$ac_ct_NMEDIT" >&6; } 8337else 8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8339$as_echo "no" >&6; } 8340fi 8341 8342 if test "x$ac_ct_NMEDIT" = x; then 8343 NMEDIT=":" 8344 else 8345 case $cross_compiling:$ac_tool_warned in 8346yes:) 8347{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8348$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8349ac_tool_warned=yes ;; 8350esac 8351 NMEDIT=$ac_ct_NMEDIT 8352 fi 8353else 8354 NMEDIT="$ac_cv_prog_NMEDIT" 8355fi 8356 8357 if test -n "$ac_tool_prefix"; then 8358 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8359set dummy ${ac_tool_prefix}lipo; ac_word=$2 8360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8361$as_echo_n "checking for $ac_word... " >&6; } 8362if ${ac_cv_prog_LIPO+:} false; then : 8363 $as_echo_n "(cached) " >&6 8364else 8365 if test -n "$LIPO"; then 8366 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8367else 8368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8369for as_dir in $PATH 8370do 8371 IFS=$as_save_IFS 8372 test -z "$as_dir" && as_dir=. 8373 for ac_exec_ext in '' $ac_executable_extensions; do 8374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8375 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8377 break 2 8378 fi 8379done 8380 done 8381IFS=$as_save_IFS 8382 8383fi 8384fi 8385LIPO=$ac_cv_prog_LIPO 8386if test -n "$LIPO"; then 8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8388$as_echo "$LIPO" >&6; } 8389else 8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8391$as_echo "no" >&6; } 8392fi 8393 8394 8395fi 8396if test -z "$ac_cv_prog_LIPO"; then 8397 ac_ct_LIPO=$LIPO 8398 # Extract the first word of "lipo", so it can be a program name with args. 8399set dummy lipo; ac_word=$2 8400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8401$as_echo_n "checking for $ac_word... " >&6; } 8402if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8403 $as_echo_n "(cached) " >&6 8404else 8405 if test -n "$ac_ct_LIPO"; then 8406 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8407else 8408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8409for as_dir in $PATH 8410do 8411 IFS=$as_save_IFS 8412 test -z "$as_dir" && as_dir=. 8413 for ac_exec_ext in '' $ac_executable_extensions; do 8414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8415 ac_cv_prog_ac_ct_LIPO="lipo" 8416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8417 break 2 8418 fi 8419done 8420 done 8421IFS=$as_save_IFS 8422 8423fi 8424fi 8425ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8426if test -n "$ac_ct_LIPO"; then 8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8428$as_echo "$ac_ct_LIPO" >&6; } 8429else 8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8431$as_echo "no" >&6; } 8432fi 8433 8434 if test "x$ac_ct_LIPO" = x; then 8435 LIPO=":" 8436 else 8437 case $cross_compiling:$ac_tool_warned in 8438yes:) 8439{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8440$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8441ac_tool_warned=yes ;; 8442esac 8443 LIPO=$ac_ct_LIPO 8444 fi 8445else 8446 LIPO="$ac_cv_prog_LIPO" 8447fi 8448 8449 if test -n "$ac_tool_prefix"; then 8450 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8451set dummy ${ac_tool_prefix}otool; ac_word=$2 8452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8453$as_echo_n "checking for $ac_word... " >&6; } 8454if ${ac_cv_prog_OTOOL+:} false; then : 8455 $as_echo_n "(cached) " >&6 8456else 8457 if test -n "$OTOOL"; then 8458 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8459else 8460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8461for as_dir in $PATH 8462do 8463 IFS=$as_save_IFS 8464 test -z "$as_dir" && as_dir=. 8465 for ac_exec_ext in '' $ac_executable_extensions; do 8466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8467 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8469 break 2 8470 fi 8471done 8472 done 8473IFS=$as_save_IFS 8474 8475fi 8476fi 8477OTOOL=$ac_cv_prog_OTOOL 8478if test -n "$OTOOL"; then 8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8480$as_echo "$OTOOL" >&6; } 8481else 8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8483$as_echo "no" >&6; } 8484fi 8485 8486 8487fi 8488if test -z "$ac_cv_prog_OTOOL"; then 8489 ac_ct_OTOOL=$OTOOL 8490 # Extract the first word of "otool", so it can be a program name with args. 8491set dummy otool; ac_word=$2 8492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8493$as_echo_n "checking for $ac_word... " >&6; } 8494if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8495 $as_echo_n "(cached) " >&6 8496else 8497 if test -n "$ac_ct_OTOOL"; then 8498 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8499else 8500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8501for as_dir in $PATH 8502do 8503 IFS=$as_save_IFS 8504 test -z "$as_dir" && as_dir=. 8505 for ac_exec_ext in '' $ac_executable_extensions; do 8506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8507 ac_cv_prog_ac_ct_OTOOL="otool" 8508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8509 break 2 8510 fi 8511done 8512 done 8513IFS=$as_save_IFS 8514 8515fi 8516fi 8517ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8518if test -n "$ac_ct_OTOOL"; then 8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8520$as_echo "$ac_ct_OTOOL" >&6; } 8521else 8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8523$as_echo "no" >&6; } 8524fi 8525 8526 if test "x$ac_ct_OTOOL" = x; then 8527 OTOOL=":" 8528 else 8529 case $cross_compiling:$ac_tool_warned in 8530yes:) 8531{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8532$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8533ac_tool_warned=yes ;; 8534esac 8535 OTOOL=$ac_ct_OTOOL 8536 fi 8537else 8538 OTOOL="$ac_cv_prog_OTOOL" 8539fi 8540 8541 if test -n "$ac_tool_prefix"; then 8542 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8543set dummy ${ac_tool_prefix}otool64; ac_word=$2 8544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8545$as_echo_n "checking for $ac_word... " >&6; } 8546if ${ac_cv_prog_OTOOL64+:} false; then : 8547 $as_echo_n "(cached) " >&6 8548else 8549 if test -n "$OTOOL64"; then 8550 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8551else 8552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8553for as_dir in $PATH 8554do 8555 IFS=$as_save_IFS 8556 test -z "$as_dir" && as_dir=. 8557 for ac_exec_ext in '' $ac_executable_extensions; do 8558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8559 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8561 break 2 8562 fi 8563done 8564 done 8565IFS=$as_save_IFS 8566 8567fi 8568fi 8569OTOOL64=$ac_cv_prog_OTOOL64 8570if test -n "$OTOOL64"; then 8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8572$as_echo "$OTOOL64" >&6; } 8573else 8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8575$as_echo "no" >&6; } 8576fi 8577 8578 8579fi 8580if test -z "$ac_cv_prog_OTOOL64"; then 8581 ac_ct_OTOOL64=$OTOOL64 8582 # Extract the first word of "otool64", so it can be a program name with args. 8583set dummy otool64; ac_word=$2 8584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8585$as_echo_n "checking for $ac_word... " >&6; } 8586if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8587 $as_echo_n "(cached) " >&6 8588else 8589 if test -n "$ac_ct_OTOOL64"; then 8590 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8591else 8592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8593for as_dir in $PATH 8594do 8595 IFS=$as_save_IFS 8596 test -z "$as_dir" && as_dir=. 8597 for ac_exec_ext in '' $ac_executable_extensions; do 8598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8599 ac_cv_prog_ac_ct_OTOOL64="otool64" 8600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8601 break 2 8602 fi 8603done 8604 done 8605IFS=$as_save_IFS 8606 8607fi 8608fi 8609ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8610if test -n "$ac_ct_OTOOL64"; then 8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8612$as_echo "$ac_ct_OTOOL64" >&6; } 8613else 8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8615$as_echo "no" >&6; } 8616fi 8617 8618 if test "x$ac_ct_OTOOL64" = x; then 8619 OTOOL64=":" 8620 else 8621 case $cross_compiling:$ac_tool_warned in 8622yes:) 8623{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8624$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8625ac_tool_warned=yes ;; 8626esac 8627 OTOOL64=$ac_ct_OTOOL64 8628 fi 8629else 8630 OTOOL64="$ac_cv_prog_OTOOL64" 8631fi 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8660$as_echo_n "checking for -single_module linker flag... " >&6; } 8661if ${lt_cv_apple_cc_single_mod+:} false; then : 8662 $as_echo_n "(cached) " >&6 8663else 8664 lt_cv_apple_cc_single_mod=no 8665 if test -z "${LT_MULTI_MODULE}"; then 8666 # By default we will add the -single_module flag. You can override 8667 # by either setting the environment variable LT_MULTI_MODULE 8668 # non-empty at configure time, or by adding -multi_module to the 8669 # link flags. 8670 rm -rf libconftest.dylib* 8671 echo "int foo(void){return 1;}" > conftest.c 8672 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8673-dynamiclib -Wl,-single_module conftest.c" >&5 8674 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8675 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8676 _lt_result=$? 8677 # If there is a non-empty error log, and "single_module" 8678 # appears in it, assume the flag caused a linker warning 8679 if test -s conftest.err && $GREP single_module conftest.err; then 8680 cat conftest.err >&5 8681 # Otherwise, if the output was created with a 0 exit code from 8682 # the compiler, it worked. 8683 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 8684 lt_cv_apple_cc_single_mod=yes 8685 else 8686 cat conftest.err >&5 8687 fi 8688 rm -rf libconftest.dylib* 8689 rm -f conftest.* 8690 fi 8691fi 8692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8693$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8694 8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8696$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8697if ${lt_cv_ld_exported_symbols_list+:} false; then : 8698 $as_echo_n "(cached) " >&6 8699else 8700 lt_cv_ld_exported_symbols_list=no 8701 save_LDFLAGS=$LDFLAGS 8702 echo "_main" > conftest.sym 8703 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8705/* end confdefs.h. */ 8706 8707int 8708main () 8709{ 8710 8711 ; 8712 return 0; 8713} 8714_ACEOF 8715if ac_fn_c_try_link "$LINENO"; then : 8716 lt_cv_ld_exported_symbols_list=yes 8717else 8718 lt_cv_ld_exported_symbols_list=no 8719fi 8720rm -f core conftest.err conftest.$ac_objext \ 8721 conftest$ac_exeext conftest.$ac_ext 8722 LDFLAGS="$save_LDFLAGS" 8723 8724fi 8725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8726$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8727 8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8729$as_echo_n "checking for -force_load linker flag... " >&6; } 8730if ${lt_cv_ld_force_load+:} false; then : 8731 $as_echo_n "(cached) " >&6 8732else 8733 lt_cv_ld_force_load=no 8734 cat > conftest.c << _LT_EOF 8735int forced_loaded() { return 2;} 8736_LT_EOF 8737 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8738 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8739 echo "$AR cru libconftest.a conftest.o" >&5 8740 $AR cru libconftest.a conftest.o 2>&5 8741 echo "$RANLIB libconftest.a" >&5 8742 $RANLIB libconftest.a 2>&5 8743 cat > conftest.c << _LT_EOF 8744int main() { return 0;} 8745_LT_EOF 8746 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8747 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8748 _lt_result=$? 8749 if test -s conftest.err && $GREP force_load conftest.err; then 8750 cat conftest.err >&5 8751 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 8752 lt_cv_ld_force_load=yes 8753 else 8754 cat conftest.err >&5 8755 fi 8756 rm -f conftest.err libconftest.a conftest conftest.c 8757 rm -rf conftest.dSYM 8758 8759fi 8760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8761$as_echo "$lt_cv_ld_force_load" >&6; } 8762 case $host_os in 8763 rhapsody* | darwin1.[012]) 8764 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8765 darwin1.*) 8766 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8767 darwin*) # darwin 5.x on 8768 # if running on 10.5 or later, the deployment target defaults 8769 # to the OS version, if on x86, and 10.4, the deployment 8770 # target defaults to 10.4. Don't you love it? 8771 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8772 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8773 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8774 10.[012]*) 8775 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8776 10.*) 8777 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8778 esac 8779 ;; 8780 esac 8781 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8782 _lt_dar_single_mod='$single_module' 8783 fi 8784 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8785 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8786 else 8787 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8788 fi 8789 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 8790 _lt_dsymutil='~$DSYMUTIL $lib || :' 8791 else 8792 _lt_dsymutil= 8793 fi 8794 ;; 8795 esac 8796 8797# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8798for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8799 inttypes.h stdint.h unistd.h 8800do : 8801 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8802ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8803" 8804if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8805 cat >>confdefs.h <<_ACEOF 8806#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8807_ACEOF 8808 8809fi 8810 8811done 8812 8813 8814for ac_header in dlfcn.h 8815do : 8816 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8817" 8818if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8819 cat >>confdefs.h <<_ACEOF 8820#define HAVE_DLFCN_H 1 8821_ACEOF 8822 8823fi 8824 8825done 8826 8827 8828 8829 8830 8831# Set options 8832enable_win32_dll=yes 8833 8834case $host in 8835*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 8836 if test -n "$ac_tool_prefix"; then 8837 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 8838set dummy ${ac_tool_prefix}as; ac_word=$2 8839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8840$as_echo_n "checking for $ac_word... " >&6; } 8841if ${ac_cv_prog_AS+:} false; then : 8842 $as_echo_n "(cached) " >&6 8843else 8844 if test -n "$AS"; then 8845 ac_cv_prog_AS="$AS" # Let the user override the test. 8846else 8847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8848for as_dir in $PATH 8849do 8850 IFS=$as_save_IFS 8851 test -z "$as_dir" && as_dir=. 8852 for ac_exec_ext in '' $ac_executable_extensions; do 8853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8854 ac_cv_prog_AS="${ac_tool_prefix}as" 8855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8856 break 2 8857 fi 8858done 8859 done 8860IFS=$as_save_IFS 8861 8862fi 8863fi 8864AS=$ac_cv_prog_AS 8865if test -n "$AS"; then 8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8867$as_echo "$AS" >&6; } 8868else 8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8870$as_echo "no" >&6; } 8871fi 8872 8873 8874fi 8875if test -z "$ac_cv_prog_AS"; then 8876 ac_ct_AS=$AS 8877 # Extract the first word of "as", so it can be a program name with args. 8878set dummy as; ac_word=$2 8879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8880$as_echo_n "checking for $ac_word... " >&6; } 8881if ${ac_cv_prog_ac_ct_AS+:} false; then : 8882 $as_echo_n "(cached) " >&6 8883else 8884 if test -n "$ac_ct_AS"; then 8885 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 8886else 8887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8888for as_dir in $PATH 8889do 8890 IFS=$as_save_IFS 8891 test -z "$as_dir" && as_dir=. 8892 for ac_exec_ext in '' $ac_executable_extensions; do 8893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8894 ac_cv_prog_ac_ct_AS="as" 8895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8896 break 2 8897 fi 8898done 8899 done 8900IFS=$as_save_IFS 8901 8902fi 8903fi 8904ac_ct_AS=$ac_cv_prog_ac_ct_AS 8905if test -n "$ac_ct_AS"; then 8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 8907$as_echo "$ac_ct_AS" >&6; } 8908else 8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8910$as_echo "no" >&6; } 8911fi 8912 8913 if test "x$ac_ct_AS" = x; then 8914 AS="false" 8915 else 8916 case $cross_compiling:$ac_tool_warned in 8917yes:) 8918{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8919$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8920ac_tool_warned=yes ;; 8921esac 8922 AS=$ac_ct_AS 8923 fi 8924else 8925 AS="$ac_cv_prog_AS" 8926fi 8927 8928 if test -n "$ac_tool_prefix"; then 8929 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8930set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8932$as_echo_n "checking for $ac_word... " >&6; } 8933if ${ac_cv_prog_DLLTOOL+:} false; then : 8934 $as_echo_n "(cached) " >&6 8935else 8936 if test -n "$DLLTOOL"; then 8937 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8938else 8939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8940for as_dir in $PATH 8941do 8942 IFS=$as_save_IFS 8943 test -z "$as_dir" && as_dir=. 8944 for ac_exec_ext in '' $ac_executable_extensions; do 8945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8946 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8948 break 2 8949 fi 8950done 8951 done 8952IFS=$as_save_IFS 8953 8954fi 8955fi 8956DLLTOOL=$ac_cv_prog_DLLTOOL 8957if test -n "$DLLTOOL"; then 8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8959$as_echo "$DLLTOOL" >&6; } 8960else 8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8962$as_echo "no" >&6; } 8963fi 8964 8965 8966fi 8967if test -z "$ac_cv_prog_DLLTOOL"; then 8968 ac_ct_DLLTOOL=$DLLTOOL 8969 # Extract the first word of "dlltool", so it can be a program name with args. 8970set dummy dlltool; ac_word=$2 8971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8972$as_echo_n "checking for $ac_word... " >&6; } 8973if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8974 $as_echo_n "(cached) " >&6 8975else 8976 if test -n "$ac_ct_DLLTOOL"; then 8977 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8978else 8979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8980for as_dir in $PATH 8981do 8982 IFS=$as_save_IFS 8983 test -z "$as_dir" && as_dir=. 8984 for ac_exec_ext in '' $ac_executable_extensions; do 8985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8986 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8988 break 2 8989 fi 8990done 8991 done 8992IFS=$as_save_IFS 8993 8994fi 8995fi 8996ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8997if test -n "$ac_ct_DLLTOOL"; then 8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8999$as_echo "$ac_ct_DLLTOOL" >&6; } 9000else 9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9002$as_echo "no" >&6; } 9003fi 9004 9005 if test "x$ac_ct_DLLTOOL" = x; then 9006 DLLTOOL="false" 9007 else 9008 case $cross_compiling:$ac_tool_warned in 9009yes:) 9010{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9011$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9012ac_tool_warned=yes ;; 9013esac 9014 DLLTOOL=$ac_ct_DLLTOOL 9015 fi 9016else 9017 DLLTOOL="$ac_cv_prog_DLLTOOL" 9018fi 9019 9020 if test -n "$ac_tool_prefix"; then 9021 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 9022set dummy ${ac_tool_prefix}objdump; ac_word=$2 9023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9024$as_echo_n "checking for $ac_word... " >&6; } 9025if ${ac_cv_prog_OBJDUMP+:} false; then : 9026 $as_echo_n "(cached) " >&6 9027else 9028 if test -n "$OBJDUMP"; then 9029 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 9030else 9031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9032for as_dir in $PATH 9033do 9034 IFS=$as_save_IFS 9035 test -z "$as_dir" && as_dir=. 9036 for ac_exec_ext in '' $ac_executable_extensions; do 9037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9038 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 9039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9040 break 2 9041 fi 9042done 9043 done 9044IFS=$as_save_IFS 9045 9046fi 9047fi 9048OBJDUMP=$ac_cv_prog_OBJDUMP 9049if test -n "$OBJDUMP"; then 9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9051$as_echo "$OBJDUMP" >&6; } 9052else 9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9054$as_echo "no" >&6; } 9055fi 9056 9057 9058fi 9059if test -z "$ac_cv_prog_OBJDUMP"; then 9060 ac_ct_OBJDUMP=$OBJDUMP 9061 # Extract the first word of "objdump", so it can be a program name with args. 9062set dummy objdump; ac_word=$2 9063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9064$as_echo_n "checking for $ac_word... " >&6; } 9065if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 9066 $as_echo_n "(cached) " >&6 9067else 9068 if test -n "$ac_ct_OBJDUMP"; then 9069 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 9070else 9071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9072for as_dir in $PATH 9073do 9074 IFS=$as_save_IFS 9075 test -z "$as_dir" && as_dir=. 9076 for ac_exec_ext in '' $ac_executable_extensions; do 9077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9078 ac_cv_prog_ac_ct_OBJDUMP="objdump" 9079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9080 break 2 9081 fi 9082done 9083 done 9084IFS=$as_save_IFS 9085 9086fi 9087fi 9088ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 9089if test -n "$ac_ct_OBJDUMP"; then 9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 9091$as_echo "$ac_ct_OBJDUMP" >&6; } 9092else 9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9094$as_echo "no" >&6; } 9095fi 9096 9097 if test "x$ac_ct_OBJDUMP" = x; then 9098 OBJDUMP="false" 9099 else 9100 case $cross_compiling:$ac_tool_warned in 9101yes:) 9102{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9103$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9104ac_tool_warned=yes ;; 9105esac 9106 OBJDUMP=$ac_ct_OBJDUMP 9107 fi 9108else 9109 OBJDUMP="$ac_cv_prog_OBJDUMP" 9110fi 9111 9112 ;; 9113esac 9114 9115test -z "$AS" && AS=as 9116 9117 9118 9119 9120 9121test -z "$DLLTOOL" && DLLTOOL=dlltool 9122 9123 9124 9125 9126 9127test -z "$OBJDUMP" && OBJDUMP=objdump 9128 9129 9130 9131 9132 9133 9134 9135 enable_dlopen=no 9136 9137 9138 9139 # Check whether --enable-shared was given. 9140if test "${enable_shared+set}" = set; then : 9141 enableval=$enable_shared; p=${PACKAGE-default} 9142 case $enableval in 9143 yes) enable_shared=yes ;; 9144 no) enable_shared=no ;; 9145 *) 9146 enable_shared=no 9147 # Look at the argument we got. We use all the common list separators. 9148 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9149 for pkg in $enableval; do 9150 IFS="$lt_save_ifs" 9151 if test "X$pkg" = "X$p"; then 9152 enable_shared=yes 9153 fi 9154 done 9155 IFS="$lt_save_ifs" 9156 ;; 9157 esac 9158else 9159 enable_shared=yes 9160fi 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 # Check whether --enable-static was given. 9171if test "${enable_static+set}" = set; then : 9172 enableval=$enable_static; p=${PACKAGE-default} 9173 case $enableval in 9174 yes) enable_static=yes ;; 9175 no) enable_static=no ;; 9176 *) 9177 enable_static=no 9178 # Look at the argument we got. We use all the common list separators. 9179 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9180 for pkg in $enableval; do 9181 IFS="$lt_save_ifs" 9182 if test "X$pkg" = "X$p"; then 9183 enable_static=yes 9184 fi 9185 done 9186 IFS="$lt_save_ifs" 9187 ;; 9188 esac 9189else 9190 enable_static=yes 9191fi 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202# Check whether --with-pic was given. 9203if test "${with_pic+set}" = set; then : 9204 withval=$with_pic; lt_p=${PACKAGE-default} 9205 case $withval in 9206 yes|no) pic_mode=$withval ;; 9207 *) 9208 pic_mode=default 9209 # Look at the argument we got. We use all the common list separators. 9210 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9211 for lt_pkg in $withval; do 9212 IFS="$lt_save_ifs" 9213 if test "X$lt_pkg" = "X$lt_p"; then 9214 pic_mode=yes 9215 fi 9216 done 9217 IFS="$lt_save_ifs" 9218 ;; 9219 esac 9220else 9221 pic_mode=default 9222fi 9223 9224 9225test -z "$pic_mode" && pic_mode=default 9226 9227 9228 9229 9230 9231 9232 9233 # Check whether --enable-fast-install was given. 9234if test "${enable_fast_install+set}" = set; then : 9235 enableval=$enable_fast_install; p=${PACKAGE-default} 9236 case $enableval in 9237 yes) enable_fast_install=yes ;; 9238 no) enable_fast_install=no ;; 9239 *) 9240 enable_fast_install=no 9241 # Look at the argument we got. We use all the common list separators. 9242 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9243 for pkg in $enableval; do 9244 IFS="$lt_save_ifs" 9245 if test "X$pkg" = "X$p"; then 9246 enable_fast_install=yes 9247 fi 9248 done 9249 IFS="$lt_save_ifs" 9250 ;; 9251 esac 9252else 9253 enable_fast_install=yes 9254fi 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266# This can be used to rebuild libtool when needed 9267LIBTOOL_DEPS="$ltmain" 9268 9269# Always use our own libtool. 9270LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301test -z "$LN_S" && LN_S="ln -s" 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316if test -n "${ZSH_VERSION+set}" ; then 9317 setopt NO_GLOB_SUBST 9318fi 9319 9320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9321$as_echo_n "checking for objdir... " >&6; } 9322if ${lt_cv_objdir+:} false; then : 9323 $as_echo_n "(cached) " >&6 9324else 9325 rm -f .libs 2>/dev/null 9326mkdir .libs 2>/dev/null 9327if test -d .libs; then 9328 lt_cv_objdir=.libs 9329else 9330 # MS-DOS does not allow filenames that begin with a dot. 9331 lt_cv_objdir=_libs 9332fi 9333rmdir .libs 2>/dev/null 9334fi 9335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9336$as_echo "$lt_cv_objdir" >&6; } 9337objdir=$lt_cv_objdir 9338 9339 9340 9341 9342 9343cat >>confdefs.h <<_ACEOF 9344#define LT_OBJDIR "$lt_cv_objdir/" 9345_ACEOF 9346 9347 9348 9349 9350case $host_os in 9351aix3*) 9352 # AIX sometimes has problems with the GCC collect2 program. For some 9353 # reason, if we set the COLLECT_NAMES environment variable, the problems 9354 # vanish in a puff of smoke. 9355 if test "X${COLLECT_NAMES+set}" != Xset; then 9356 COLLECT_NAMES= 9357 export COLLECT_NAMES 9358 fi 9359 ;; 9360esac 9361 9362# Global variables: 9363ofile=libtool 9364can_build_shared=yes 9365 9366# All known linkers require a `.a' archive for static linking (except MSVC, 9367# which needs '.lib'). 9368libext=a 9369 9370with_gnu_ld="$lt_cv_prog_gnu_ld" 9371 9372old_CC="$CC" 9373old_CFLAGS="$CFLAGS" 9374 9375# Set sane defaults for various variables 9376test -z "$CC" && CC=cc 9377test -z "$LTCC" && LTCC=$CC 9378test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9379test -z "$LD" && LD=ld 9380test -z "$ac_objext" && ac_objext=o 9381 9382for cc_temp in $compiler""; do 9383 case $cc_temp in 9384 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9385 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9386 \-*) ;; 9387 *) break;; 9388 esac 9389done 9390cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 9391 9392 9393# Only perform the check for file, if the check method requires it 9394test -z "$MAGIC_CMD" && MAGIC_CMD=file 9395case $deplibs_check_method in 9396file_magic*) 9397 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9399$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9400if ${lt_cv_path_MAGIC_CMD+:} false; then : 9401 $as_echo_n "(cached) " >&6 9402else 9403 case $MAGIC_CMD in 9404[\\/*] | ?:[\\/]*) 9405 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9406 ;; 9407*) 9408 lt_save_MAGIC_CMD="$MAGIC_CMD" 9409 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9410 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9411 for ac_dir in $ac_dummy; do 9412 IFS="$lt_save_ifs" 9413 test -z "$ac_dir" && ac_dir=. 9414 if test -f $ac_dir/${ac_tool_prefix}file; then 9415 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 9416 if test -n "$file_magic_test_file"; then 9417 case $deplibs_check_method in 9418 "file_magic "*) 9419 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9420 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9421 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9422 $EGREP "$file_magic_regex" > /dev/null; then 9423 : 9424 else 9425 cat <<_LT_EOF 1>&2 9426 9427*** Warning: the command libtool uses to detect shared libraries, 9428*** $file_magic_cmd, produces output that libtool cannot recognize. 9429*** The result is that libtool may fail to recognize shared libraries 9430*** as such. This will affect the creation of libtool libraries that 9431*** depend on shared libraries, but programs linked with such libtool 9432*** libraries will work regardless of this problem. Nevertheless, you 9433*** may want to report the problem to your system manager and/or to 9434*** bug-libtool@gnu.org 9435 9436_LT_EOF 9437 fi ;; 9438 esac 9439 fi 9440 break 9441 fi 9442 done 9443 IFS="$lt_save_ifs" 9444 MAGIC_CMD="$lt_save_MAGIC_CMD" 9445 ;; 9446esac 9447fi 9448 9449MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9450if test -n "$MAGIC_CMD"; then 9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9452$as_echo "$MAGIC_CMD" >&6; } 9453else 9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9455$as_echo "no" >&6; } 9456fi 9457 9458 9459 9460 9461 9462if test -z "$lt_cv_path_MAGIC_CMD"; then 9463 if test -n "$ac_tool_prefix"; then 9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9465$as_echo_n "checking for file... " >&6; } 9466if ${lt_cv_path_MAGIC_CMD+:} false; then : 9467 $as_echo_n "(cached) " >&6 9468else 9469 case $MAGIC_CMD in 9470[\\/*] | ?:[\\/]*) 9471 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9472 ;; 9473*) 9474 lt_save_MAGIC_CMD="$MAGIC_CMD" 9475 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9476 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9477 for ac_dir in $ac_dummy; do 9478 IFS="$lt_save_ifs" 9479 test -z "$ac_dir" && ac_dir=. 9480 if test -f $ac_dir/file; then 9481 lt_cv_path_MAGIC_CMD="$ac_dir/file" 9482 if test -n "$file_magic_test_file"; then 9483 case $deplibs_check_method in 9484 "file_magic "*) 9485 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9486 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9487 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9488 $EGREP "$file_magic_regex" > /dev/null; then 9489 : 9490 else 9491 cat <<_LT_EOF 1>&2 9492 9493*** Warning: the command libtool uses to detect shared libraries, 9494*** $file_magic_cmd, produces output that libtool cannot recognize. 9495*** The result is that libtool may fail to recognize shared libraries 9496*** as such. This will affect the creation of libtool libraries that 9497*** depend on shared libraries, but programs linked with such libtool 9498*** libraries will work regardless of this problem. Nevertheless, you 9499*** may want to report the problem to your system manager and/or to 9500*** bug-libtool@gnu.org 9501 9502_LT_EOF 9503 fi ;; 9504 esac 9505 fi 9506 break 9507 fi 9508 done 9509 IFS="$lt_save_ifs" 9510 MAGIC_CMD="$lt_save_MAGIC_CMD" 9511 ;; 9512esac 9513fi 9514 9515MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9516if test -n "$MAGIC_CMD"; then 9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9518$as_echo "$MAGIC_CMD" >&6; } 9519else 9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9521$as_echo "no" >&6; } 9522fi 9523 9524 9525 else 9526 MAGIC_CMD=: 9527 fi 9528fi 9529 9530 fi 9531 ;; 9532esac 9533 9534# Use C for the default configuration in the libtool script 9535 9536lt_save_CC="$CC" 9537ac_ext=c 9538ac_cpp='$CPP $CPPFLAGS' 9539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9541ac_compiler_gnu=$ac_cv_c_compiler_gnu 9542 9543 9544# Source file extension for C test sources. 9545ac_ext=c 9546 9547# Object file extension for compiled C test sources. 9548objext=o 9549objext=$objext 9550 9551# Code to be used in simple compile tests 9552lt_simple_compile_test_code="int some_variable = 0;" 9553 9554# Code to be used in simple link tests 9555lt_simple_link_test_code='int main(){return(0);}' 9556 9557 9558 9559 9560 9561 9562 9563# If no C compiler was specified, use CC. 9564LTCC=${LTCC-"$CC"} 9565 9566# If no C compiler flags were specified, use CFLAGS. 9567LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9568 9569# Allow CC to be a program name with arguments. 9570compiler=$CC 9571 9572# Save the default compiler, since it gets overwritten when the other 9573# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9574compiler_DEFAULT=$CC 9575 9576# save warnings/boilerplate of simple test code 9577ac_outfile=conftest.$ac_objext 9578echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9579eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9580_lt_compiler_boilerplate=`cat conftest.err` 9581$RM conftest* 9582 9583ac_outfile=conftest.$ac_objext 9584echo "$lt_simple_link_test_code" >conftest.$ac_ext 9585eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9586_lt_linker_boilerplate=`cat conftest.err` 9587$RM -r conftest* 9588 9589 9590## CAVEAT EMPTOR: 9591## There is no encapsulation within the following macros, do not change 9592## the running order or otherwise move them around unless you know exactly 9593## what you are doing... 9594if test -n "$compiler"; then 9595 9596lt_prog_compiler_no_builtin_flag= 9597 9598if test "$GCC" = yes; then 9599 case $cc_basename in 9600 nvcc*) 9601 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9602 *) 9603 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9604 esac 9605 9606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9607$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9608if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9609 $as_echo_n "(cached) " >&6 9610else 9611 lt_cv_prog_compiler_rtti_exceptions=no 9612 ac_outfile=conftest.$ac_objext 9613 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9614 lt_compiler_flag="-fno-rtti -fno-exceptions" 9615 # Insert the option either (1) after the last *FLAGS variable, or 9616 # (2) before a word containing "conftest.", or (3) at the end. 9617 # Note that $ac_compile itself does not contain backslashes and begins 9618 # with a dollar sign (not a hyphen), so the echo should work correctly. 9619 # The option is referenced via a variable to avoid confusing sed. 9620 lt_compile=`echo "$ac_compile" | $SED \ 9621 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9622 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9623 -e 's:$: $lt_compiler_flag:'` 9624 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9625 (eval "$lt_compile" 2>conftest.err) 9626 ac_status=$? 9627 cat conftest.err >&5 9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9629 if (exit $ac_status) && test -s "$ac_outfile"; then 9630 # The compiler can only warn and ignore the option if not recognized 9631 # So say no if there are warnings other than the usual output. 9632 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9633 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9634 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9635 lt_cv_prog_compiler_rtti_exceptions=yes 9636 fi 9637 fi 9638 $RM conftest* 9639 9640fi 9641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9642$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9643 9644if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 9645 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9646else 9647 : 9648fi 9649 9650fi 9651 9652 9653 9654 9655 9656 9657 lt_prog_compiler_wl= 9658lt_prog_compiler_pic= 9659lt_prog_compiler_static= 9660 9661 9662 if test "$GCC" = yes; then 9663 lt_prog_compiler_wl='-Wl,' 9664 lt_prog_compiler_static='-static' 9665 9666 case $host_os in 9667 aix*) 9668 # All AIX code is PIC. 9669 if test "$host_cpu" = ia64; then 9670 # AIX 5 now supports IA64 processor 9671 lt_prog_compiler_static='-Bstatic' 9672 fi 9673 ;; 9674 9675 amigaos*) 9676 case $host_cpu in 9677 powerpc) 9678 # see comment about AmigaOS4 .so support 9679 lt_prog_compiler_pic='-fPIC' 9680 ;; 9681 m68k) 9682 # FIXME: we need at least 68020 code to build shared libraries, but 9683 # adding the `-m68020' flag to GCC prevents building anything better, 9684 # like `-m68040'. 9685 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9686 ;; 9687 esac 9688 ;; 9689 9690 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9691 # PIC is the default for these OSes. 9692 ;; 9693 9694 mingw* | cygwin* | pw32* | os2* | cegcc*) 9695 # This hack is so that the source file can tell whether it is being 9696 # built for inclusion in a dll (and should export symbols for example). 9697 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9698 # (--disable-auto-import) libraries 9699 lt_prog_compiler_pic='-DDLL_EXPORT' 9700 ;; 9701 9702 darwin* | rhapsody*) 9703 # PIC is the default on this platform 9704 # Common symbols not allowed in MH_DYLIB files 9705 lt_prog_compiler_pic='-fno-common' 9706 ;; 9707 9708 haiku*) 9709 # PIC is the default for Haiku. 9710 # The "-static" flag exists, but is broken. 9711 lt_prog_compiler_static= 9712 ;; 9713 9714 hpux*) 9715 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9716 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9717 # sets the default TLS model and affects inlining. 9718 case $host_cpu in 9719 hppa*64*) 9720 # +Z the default 9721 ;; 9722 *) 9723 lt_prog_compiler_pic='-fPIC' 9724 ;; 9725 esac 9726 ;; 9727 9728 interix[3-9]*) 9729 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9730 # Instead, we relocate shared libraries at runtime. 9731 ;; 9732 9733 msdosdjgpp*) 9734 # Just because we use GCC doesn't mean we suddenly get shared libraries 9735 # on systems that don't support them. 9736 lt_prog_compiler_can_build_shared=no 9737 enable_shared=no 9738 ;; 9739 9740 *nto* | *qnx*) 9741 # QNX uses GNU C++, but need to define -shared option too, otherwise 9742 # it will coredump. 9743 lt_prog_compiler_pic='-fPIC -shared' 9744 ;; 9745 9746 sysv4*MP*) 9747 if test -d /usr/nec; then 9748 lt_prog_compiler_pic=-Kconform_pic 9749 fi 9750 ;; 9751 9752 *) 9753 lt_prog_compiler_pic='-fPIC' 9754 ;; 9755 esac 9756 9757 case $cc_basename in 9758 nvcc*) # Cuda Compiler Driver 2.2 9759 lt_prog_compiler_wl='-Xlinker ' 9760 if test -n "$lt_prog_compiler_pic"; then 9761 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9762 fi 9763 ;; 9764 esac 9765 else 9766 # PORTME Check for flag to pass linker flags through the system compiler. 9767 case $host_os in 9768 aix*) 9769 lt_prog_compiler_wl='-Wl,' 9770 if test "$host_cpu" = ia64; then 9771 # AIX 5 now supports IA64 processor 9772 lt_prog_compiler_static='-Bstatic' 9773 else 9774 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9775 fi 9776 ;; 9777 9778 mingw* | cygwin* | pw32* | os2* | cegcc*) 9779 # This hack is so that the source file can tell whether it is being 9780 # built for inclusion in a dll (and should export symbols for example). 9781 lt_prog_compiler_pic='-DDLL_EXPORT' 9782 ;; 9783 9784 hpux9* | hpux10* | hpux11*) 9785 lt_prog_compiler_wl='-Wl,' 9786 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9787 # not for PA HP-UX. 9788 case $host_cpu in 9789 hppa*64*|ia64*) 9790 # +Z the default 9791 ;; 9792 *) 9793 lt_prog_compiler_pic='+Z' 9794 ;; 9795 esac 9796 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9797 lt_prog_compiler_static='${wl}-a ${wl}archive' 9798 ;; 9799 9800 irix5* | irix6* | nonstopux*) 9801 lt_prog_compiler_wl='-Wl,' 9802 # PIC (with -KPIC) is the default. 9803 lt_prog_compiler_static='-non_shared' 9804 ;; 9805 9806 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9807 case $cc_basename in 9808 # old Intel for x86_64 which still supported -KPIC. 9809 ecc*) 9810 lt_prog_compiler_wl='-Wl,' 9811 lt_prog_compiler_pic='-KPIC' 9812 lt_prog_compiler_static='-static' 9813 ;; 9814 # icc used to be incompatible with GCC. 9815 # ICC 10 doesn't accept -KPIC any more. 9816 icc* | ifort*) 9817 lt_prog_compiler_wl='-Wl,' 9818 lt_prog_compiler_pic='-fPIC' 9819 lt_prog_compiler_static='-static' 9820 ;; 9821 # Lahey Fortran 8.1. 9822 lf95*) 9823 lt_prog_compiler_wl='-Wl,' 9824 lt_prog_compiler_pic='--shared' 9825 lt_prog_compiler_static='--static' 9826 ;; 9827 nagfor*) 9828 # NAG Fortran compiler 9829 lt_prog_compiler_wl='-Wl,-Wl,,' 9830 lt_prog_compiler_pic='-PIC' 9831 lt_prog_compiler_static='-Bstatic' 9832 ;; 9833 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9834 # Portland Group compilers (*not* the Pentium gcc compiler, 9835 # which looks to be a dead project) 9836 lt_prog_compiler_wl='-Wl,' 9837 lt_prog_compiler_pic='-fpic' 9838 lt_prog_compiler_static='-Bstatic' 9839 ;; 9840 ccc*) 9841 lt_prog_compiler_wl='-Wl,' 9842 # All Alpha code is PIC. 9843 lt_prog_compiler_static='-non_shared' 9844 ;; 9845 xl* | bgxl* | bgf* | mpixl*) 9846 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9847 lt_prog_compiler_wl='-Wl,' 9848 lt_prog_compiler_pic='-qpic' 9849 lt_prog_compiler_static='-qstaticlink' 9850 ;; 9851 *) 9852 case `$CC -V 2>&1 | sed 5q` in 9853 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9854 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9855 lt_prog_compiler_pic='-KPIC' 9856 lt_prog_compiler_static='-Bstatic' 9857 lt_prog_compiler_wl='' 9858 ;; 9859 *Sun\ F* | *Sun*Fortran*) 9860 lt_prog_compiler_pic='-KPIC' 9861 lt_prog_compiler_static='-Bstatic' 9862 lt_prog_compiler_wl='-Qoption ld ' 9863 ;; 9864 *Sun\ C*) 9865 # Sun C 5.9 9866 lt_prog_compiler_pic='-KPIC' 9867 lt_prog_compiler_static='-Bstatic' 9868 lt_prog_compiler_wl='-Wl,' 9869 ;; 9870 *Intel*\ [CF]*Compiler*) 9871 lt_prog_compiler_wl='-Wl,' 9872 lt_prog_compiler_pic='-fPIC' 9873 lt_prog_compiler_static='-static' 9874 ;; 9875 *Portland\ Group*) 9876 lt_prog_compiler_wl='-Wl,' 9877 lt_prog_compiler_pic='-fpic' 9878 lt_prog_compiler_static='-Bstatic' 9879 ;; 9880 esac 9881 ;; 9882 esac 9883 ;; 9884 9885 newsos6) 9886 lt_prog_compiler_pic='-KPIC' 9887 lt_prog_compiler_static='-Bstatic' 9888 ;; 9889 9890 *nto* | *qnx*) 9891 # QNX uses GNU C++, but need to define -shared option too, otherwise 9892 # it will coredump. 9893 lt_prog_compiler_pic='-fPIC -shared' 9894 ;; 9895 9896 osf3* | osf4* | osf5*) 9897 lt_prog_compiler_wl='-Wl,' 9898 # All OSF/1 code is PIC. 9899 lt_prog_compiler_static='-non_shared' 9900 ;; 9901 9902 rdos*) 9903 lt_prog_compiler_static='-non_shared' 9904 ;; 9905 9906 solaris*) 9907 lt_prog_compiler_pic='-KPIC' 9908 lt_prog_compiler_static='-Bstatic' 9909 case $cc_basename in 9910 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9911 lt_prog_compiler_wl='-Qoption ld ';; 9912 *) 9913 lt_prog_compiler_wl='-Wl,';; 9914 esac 9915 ;; 9916 9917 sunos4*) 9918 lt_prog_compiler_wl='-Qoption ld ' 9919 lt_prog_compiler_pic='-PIC' 9920 lt_prog_compiler_static='-Bstatic' 9921 ;; 9922 9923 sysv4 | sysv4.2uw2* | sysv4.3*) 9924 lt_prog_compiler_wl='-Wl,' 9925 lt_prog_compiler_pic='-KPIC' 9926 lt_prog_compiler_static='-Bstatic' 9927 ;; 9928 9929 sysv4*MP*) 9930 if test -d /usr/nec ;then 9931 lt_prog_compiler_pic='-Kconform_pic' 9932 lt_prog_compiler_static='-Bstatic' 9933 fi 9934 ;; 9935 9936 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9937 lt_prog_compiler_wl='-Wl,' 9938 lt_prog_compiler_pic='-KPIC' 9939 lt_prog_compiler_static='-Bstatic' 9940 ;; 9941 9942 unicos*) 9943 lt_prog_compiler_wl='-Wl,' 9944 lt_prog_compiler_can_build_shared=no 9945 ;; 9946 9947 uts4*) 9948 lt_prog_compiler_pic='-pic' 9949 lt_prog_compiler_static='-Bstatic' 9950 ;; 9951 9952 *) 9953 lt_prog_compiler_can_build_shared=no 9954 ;; 9955 esac 9956 fi 9957 9958case $host_os in 9959 # For platforms which do not support PIC, -DPIC is meaningless: 9960 *djgpp*) 9961 lt_prog_compiler_pic= 9962 ;; 9963 *) 9964 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9965 ;; 9966esac 9967 9968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9969$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9970if ${lt_cv_prog_compiler_pic+:} false; then : 9971 $as_echo_n "(cached) " >&6 9972else 9973 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9974fi 9975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9976$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9977lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9978 9979# 9980# Check to make sure the PIC flag actually works. 9981# 9982if test -n "$lt_prog_compiler_pic"; then 9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9984$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9985if ${lt_cv_prog_compiler_pic_works+:} false; then : 9986 $as_echo_n "(cached) " >&6 9987else 9988 lt_cv_prog_compiler_pic_works=no 9989 ac_outfile=conftest.$ac_objext 9990 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9991 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9992 # Insert the option either (1) after the last *FLAGS variable, or 9993 # (2) before a word containing "conftest.", or (3) at the end. 9994 # Note that $ac_compile itself does not contain backslashes and begins 9995 # with a dollar sign (not a hyphen), so the echo should work correctly. 9996 # The option is referenced via a variable to avoid confusing sed. 9997 lt_compile=`echo "$ac_compile" | $SED \ 9998 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9999 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10000 -e 's:$: $lt_compiler_flag:'` 10001 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10002 (eval "$lt_compile" 2>conftest.err) 10003 ac_status=$? 10004 cat conftest.err >&5 10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10006 if (exit $ac_status) && test -s "$ac_outfile"; then 10007 # The compiler can only warn and ignore the option if not recognized 10008 # So say no if there are warnings other than the usual output. 10009 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10010 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10011 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10012 lt_cv_prog_compiler_pic_works=yes 10013 fi 10014 fi 10015 $RM conftest* 10016 10017fi 10018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10019$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 10020 10021if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 10022 case $lt_prog_compiler_pic in 10023 "" | " "*) ;; 10024 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10025 esac 10026else 10027 lt_prog_compiler_pic= 10028 lt_prog_compiler_can_build_shared=no 10029fi 10030 10031fi 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043# 10044# Check to make sure the static flag actually works. 10045# 10046wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10048$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10049if ${lt_cv_prog_compiler_static_works+:} false; then : 10050 $as_echo_n "(cached) " >&6 10051else 10052 lt_cv_prog_compiler_static_works=no 10053 save_LDFLAGS="$LDFLAGS" 10054 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10055 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10056 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10057 # The linker can only warn and ignore the option if not recognized 10058 # So say no if there are warnings 10059 if test -s conftest.err; then 10060 # Append any errors to the config.log. 10061 cat conftest.err 1>&5 10062 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10063 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10064 if diff conftest.exp conftest.er2 >/dev/null; then 10065 lt_cv_prog_compiler_static_works=yes 10066 fi 10067 else 10068 lt_cv_prog_compiler_static_works=yes 10069 fi 10070 fi 10071 $RM -r conftest* 10072 LDFLAGS="$save_LDFLAGS" 10073 10074fi 10075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10076$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 10077 10078if test x"$lt_cv_prog_compiler_static_works" = xyes; then 10079 : 10080else 10081 lt_prog_compiler_static= 10082fi 10083 10084 10085 10086 10087 10088 10089 10090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10091$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10092if ${lt_cv_prog_compiler_c_o+:} false; then : 10093 $as_echo_n "(cached) " >&6 10094else 10095 lt_cv_prog_compiler_c_o=no 10096 $RM -r conftest 2>/dev/null 10097 mkdir conftest 10098 cd conftest 10099 mkdir out 10100 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10101 10102 lt_compiler_flag="-o out/conftest2.$ac_objext" 10103 # Insert the option either (1) after the last *FLAGS variable, or 10104 # (2) before a word containing "conftest.", or (3) at the end. 10105 # Note that $ac_compile itself does not contain backslashes and begins 10106 # with a dollar sign (not a hyphen), so the echo should work correctly. 10107 lt_compile=`echo "$ac_compile" | $SED \ 10108 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10109 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10110 -e 's:$: $lt_compiler_flag:'` 10111 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10112 (eval "$lt_compile" 2>out/conftest.err) 10113 ac_status=$? 10114 cat out/conftest.err >&5 10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10116 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10117 then 10118 # The compiler can only warn and ignore the option if not recognized 10119 # So say no if there are warnings 10120 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10121 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10122 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10123 lt_cv_prog_compiler_c_o=yes 10124 fi 10125 fi 10126 chmod u+w . 2>&5 10127 $RM conftest* 10128 # SGI C++ compiler will create directory out/ii_files/ for 10129 # template instantiation 10130 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10131 $RM out/* && rmdir out 10132 cd .. 10133 $RM -r conftest 10134 $RM conftest* 10135 10136fi 10137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10138$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10139 10140 10141 10142 10143 10144 10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10146$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10147if ${lt_cv_prog_compiler_c_o+:} false; then : 10148 $as_echo_n "(cached) " >&6 10149else 10150 lt_cv_prog_compiler_c_o=no 10151 $RM -r conftest 2>/dev/null 10152 mkdir conftest 10153 cd conftest 10154 mkdir out 10155 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10156 10157 lt_compiler_flag="-o out/conftest2.$ac_objext" 10158 # Insert the option either (1) after the last *FLAGS variable, or 10159 # (2) before a word containing "conftest.", or (3) at the end. 10160 # Note that $ac_compile itself does not contain backslashes and begins 10161 # with a dollar sign (not a hyphen), so the echo should work correctly. 10162 lt_compile=`echo "$ac_compile" | $SED \ 10163 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10164 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10165 -e 's:$: $lt_compiler_flag:'` 10166 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10167 (eval "$lt_compile" 2>out/conftest.err) 10168 ac_status=$? 10169 cat out/conftest.err >&5 10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10171 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10172 then 10173 # The compiler can only warn and ignore the option if not recognized 10174 # So say no if there are warnings 10175 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10176 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10177 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10178 lt_cv_prog_compiler_c_o=yes 10179 fi 10180 fi 10181 chmod u+w . 2>&5 10182 $RM conftest* 10183 # SGI C++ compiler will create directory out/ii_files/ for 10184 # template instantiation 10185 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10186 $RM out/* && rmdir out 10187 cd .. 10188 $RM -r conftest 10189 $RM conftest* 10190 10191fi 10192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10193$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10194 10195 10196 10197 10198hard_links="nottested" 10199if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 10200 # do not overwrite the value of need_locks provided by the user 10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10202$as_echo_n "checking if we can lock with hard links... " >&6; } 10203 hard_links=yes 10204 $RM conftest* 10205 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10206 touch conftest.a 10207 ln conftest.a conftest.b 2>&5 || hard_links=no 10208 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10210$as_echo "$hard_links" >&6; } 10211 if test "$hard_links" = no; then 10212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 10213$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 10214 need_locks=warn 10215 fi 10216else 10217 need_locks=no 10218fi 10219 10220 10221 10222 10223 10224 10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10226$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10227 10228 runpath_var= 10229 allow_undefined_flag= 10230 always_export_symbols=no 10231 archive_cmds= 10232 archive_expsym_cmds= 10233 compiler_needs_object=no 10234 enable_shared_with_static_runtimes=no 10235 export_dynamic_flag_spec= 10236 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10237 hardcode_automatic=no 10238 hardcode_direct=no 10239 hardcode_direct_absolute=no 10240 hardcode_libdir_flag_spec= 10241 hardcode_libdir_separator= 10242 hardcode_minus_L=no 10243 hardcode_shlibpath_var=unsupported 10244 inherit_rpath=no 10245 link_all_deplibs=unknown 10246 module_cmds= 10247 module_expsym_cmds= 10248 old_archive_from_new_cmds= 10249 old_archive_from_expsyms_cmds= 10250 thread_safe_flag_spec= 10251 whole_archive_flag_spec= 10252 # include_expsyms should be a list of space-separated symbols to be *always* 10253 # included in the symbol list 10254 include_expsyms= 10255 # exclude_expsyms can be an extended regexp of symbols to exclude 10256 # it will be wrapped by ` (' and `)$', so one must not match beginning or 10257 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 10258 # as well as any symbol that contains `d'. 10259 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10260 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10261 # platforms (ab)use it in PIC code, but their linkers get confused if 10262 # the symbol is explicitly referenced. Since portable code cannot 10263 # rely on this symbol name, it's probably fine to never include it in 10264 # preloaded symbol tables. 10265 # Exclude shared library initialization/finalization symbols. 10266 extract_expsyms_cmds= 10267 10268 case $host_os in 10269 cygwin* | mingw* | pw32* | cegcc*) 10270 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10271 # When not using gcc, we currently assume that we are using 10272 # Microsoft Visual C++. 10273 if test "$GCC" != yes; then 10274 with_gnu_ld=no 10275 fi 10276 ;; 10277 interix*) 10278 # we just hope/assume this is gcc and not c89 (= MSVC++) 10279 with_gnu_ld=yes 10280 ;; 10281 openbsd*) 10282 with_gnu_ld=no 10283 ;; 10284 linux* | k*bsd*-gnu | gnu*) 10285 link_all_deplibs=no 10286 ;; 10287 esac 10288 10289 ld_shlibs=yes 10290 10291 # On some targets, GNU ld is compatible enough with the native linker 10292 # that we're better off using the native interface for both. 10293 lt_use_gnu_ld_interface=no 10294 if test "$with_gnu_ld" = yes; then 10295 case $host_os in 10296 aix*) 10297 # The AIX port of GNU ld has always aspired to compatibility 10298 # with the native linker. However, as the warning in the GNU ld 10299 # block says, versions before 2.19.5* couldn't really create working 10300 # shared libraries, regardless of the interface used. 10301 case `$LD -v 2>&1` in 10302 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10303 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10304 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10305 *) 10306 lt_use_gnu_ld_interface=yes 10307 ;; 10308 esac 10309 ;; 10310 *) 10311 lt_use_gnu_ld_interface=yes 10312 ;; 10313 esac 10314 fi 10315 10316 if test "$lt_use_gnu_ld_interface" = yes; then 10317 # If archive_cmds runs LD, not CC, wlarc should be empty 10318 wlarc='${wl}' 10319 10320 # Set some defaults for GNU ld with shared library support. These 10321 # are reset later if shared libraries are not supported. Putting them 10322 # here allows them to be overridden if necessary. 10323 runpath_var=LD_RUN_PATH 10324 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10325 export_dynamic_flag_spec='${wl}--export-dynamic' 10326 # ancient GNU ld didn't support --whole-archive et. al. 10327 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10328 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10329 else 10330 whole_archive_flag_spec= 10331 fi 10332 supports_anon_versioning=no 10333 case `$LD -v 2>&1` in 10334 *GNU\ gold*) supports_anon_versioning=yes ;; 10335 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10336 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10337 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10338 *\ 2.11.*) ;; # other 2.11 versions 10339 *) supports_anon_versioning=yes ;; 10340 esac 10341 10342 # See if GNU ld supports shared libraries. 10343 case $host_os in 10344 aix[3-9]*) 10345 # On AIX/PPC, the GNU linker is very broken 10346 if test "$host_cpu" != ia64; then 10347 ld_shlibs=no 10348 cat <<_LT_EOF 1>&2 10349 10350*** Warning: the GNU linker, at least up to release 2.19, is reported 10351*** to be unable to reliably create shared libraries on AIX. 10352*** Therefore, libtool is disabling shared libraries support. If you 10353*** really care for shared libraries, you may want to install binutils 10354*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10355*** You will then need to restart the configuration process. 10356 10357_LT_EOF 10358 fi 10359 ;; 10360 10361 amigaos*) 10362 case $host_cpu in 10363 powerpc) 10364 # see comment about AmigaOS4 .so support 10365 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10366 archive_expsym_cmds='' 10367 ;; 10368 m68k) 10369 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)' 10370 hardcode_libdir_flag_spec='-L$libdir' 10371 hardcode_minus_L=yes 10372 ;; 10373 esac 10374 ;; 10375 10376 beos*) 10377 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10378 allow_undefined_flag=unsupported 10379 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10380 # support --undefined. This deserves some investigation. FIXME 10381 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10382 else 10383 ld_shlibs=no 10384 fi 10385 ;; 10386 10387 cygwin* | mingw* | pw32* | cegcc*) 10388 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10389 # as there is no search path for DLLs. 10390 hardcode_libdir_flag_spec='-L$libdir' 10391 export_dynamic_flag_spec='${wl}--export-all-symbols' 10392 allow_undefined_flag=unsupported 10393 always_export_symbols=no 10394 enable_shared_with_static_runtimes=yes 10395 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' 10396 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10397 10398 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10399 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10400 # If the export-symbols file already is a .def file (1st line 10401 # is EXPORTS), use it as is; otherwise, prepend... 10402 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10403 cp $export_symbols $output_objdir/$soname.def; 10404 else 10405 echo EXPORTS > $output_objdir/$soname.def; 10406 cat $export_symbols >> $output_objdir/$soname.def; 10407 fi~ 10408 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10409 else 10410 ld_shlibs=no 10411 fi 10412 ;; 10413 10414 haiku*) 10415 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10416 link_all_deplibs=yes 10417 ;; 10418 10419 interix[3-9]*) 10420 hardcode_direct=no 10421 hardcode_shlibpath_var=no 10422 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10423 export_dynamic_flag_spec='${wl}-E' 10424 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10425 # Instead, shared libraries are loaded at an image base (0x10000000 by 10426 # default) and relocated if they conflict, which is a slow very memory 10427 # consuming and fragmenting process. To avoid this, we pick a random, 10428 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10429 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10430 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10431 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' 10432 ;; 10433 10434 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10435 tmp_diet=no 10436 if test "$host_os" = linux-dietlibc; then 10437 case $cc_basename in 10438 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10439 esac 10440 fi 10441 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10442 && test "$tmp_diet" = no 10443 then 10444 tmp_addflag=' $pic_flag' 10445 tmp_sharedflag='-shared' 10446 case $cc_basename,$host_cpu in 10447 pgcc*) # Portland Group C compiler 10448 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' 10449 tmp_addflag=' $pic_flag' 10450 ;; 10451 pgf77* | pgf90* | pgf95* | pgfortran*) 10452 # Portland Group f77 and f90 compilers 10453 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' 10454 tmp_addflag=' $pic_flag -Mnomain' ;; 10455 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10456 tmp_addflag=' -i_dynamic' ;; 10457 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10458 tmp_addflag=' -i_dynamic -nofor_main' ;; 10459 ifc* | ifort*) # Intel Fortran compiler 10460 tmp_addflag=' -nofor_main' ;; 10461 lf95*) # Lahey Fortran 8.1 10462 whole_archive_flag_spec= 10463 tmp_sharedflag='--shared' ;; 10464 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10465 tmp_sharedflag='-qmkshrobj' 10466 tmp_addflag= ;; 10467 nvcc*) # Cuda Compiler Driver 2.2 10468 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' 10469 compiler_needs_object=yes 10470 ;; 10471 esac 10472 case `$CC -V 2>&1 | sed 5q` in 10473 *Sun\ C*) # Sun C 5.9 10474 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' 10475 compiler_needs_object=yes 10476 tmp_sharedflag='-G' ;; 10477 *Sun\ F*) # Sun Fortran 8.3 10478 tmp_sharedflag='-G' ;; 10479 esac 10480 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10481 10482 if test "x$supports_anon_versioning" = xyes; then 10483 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10484 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10485 echo "local: *; };" >> $output_objdir/$libname.ver~ 10486 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 10487 fi 10488 10489 case $cc_basename in 10490 xlf* | bgf* | bgxlf* | mpixlf*) 10491 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10492 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10493 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10494 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10495 if test "x$supports_anon_versioning" = xyes; then 10496 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10497 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10498 echo "local: *; };" >> $output_objdir/$libname.ver~ 10499 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10500 fi 10501 ;; 10502 esac 10503 else 10504 ld_shlibs=no 10505 fi 10506 ;; 10507 10508 netbsd* | netbsdelf*-gnu) 10509 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10510 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10511 wlarc= 10512 else 10513 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10514 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10515 fi 10516 ;; 10517 10518 solaris*) 10519 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10520 ld_shlibs=no 10521 cat <<_LT_EOF 1>&2 10522 10523*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10524*** create shared libraries on Solaris systems. Therefore, libtool 10525*** is disabling shared libraries support. We urge you to upgrade GNU 10526*** binutils to release 2.9.1 or newer. Another option is to modify 10527*** your PATH or compiler configuration so that the native linker is 10528*** used, and then restart. 10529 10530_LT_EOF 10531 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10532 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10533 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10534 else 10535 ld_shlibs=no 10536 fi 10537 ;; 10538 10539 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10540 case `$LD -v 2>&1` in 10541 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10542 ld_shlibs=no 10543 cat <<_LT_EOF 1>&2 10544 10545*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 10546*** reliably create shared libraries on SCO systems. Therefore, libtool 10547*** is disabling shared libraries support. We urge you to upgrade GNU 10548*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10549*** your PATH or compiler configuration so that the native linker is 10550*** used, and then restart. 10551 10552_LT_EOF 10553 ;; 10554 *) 10555 # For security reasons, it is highly recommended that you always 10556 # use absolute paths for naming shared libraries, and exclude the 10557 # DT_RUNPATH tag from executables and libraries. But doing so 10558 # requires that you compile everything twice, which is a pain. 10559 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10560 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10561 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10562 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10563 else 10564 ld_shlibs=no 10565 fi 10566 ;; 10567 esac 10568 ;; 10569 10570 sunos4*) 10571 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10572 wlarc= 10573 hardcode_direct=yes 10574 hardcode_shlibpath_var=no 10575 ;; 10576 10577 *) 10578 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10579 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10580 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10581 else 10582 ld_shlibs=no 10583 fi 10584 ;; 10585 esac 10586 10587 if test "$ld_shlibs" = no; then 10588 runpath_var= 10589 hardcode_libdir_flag_spec= 10590 export_dynamic_flag_spec= 10591 whole_archive_flag_spec= 10592 fi 10593 else 10594 # PORTME fill in a description of your system's linker (not GNU ld) 10595 case $host_os in 10596 aix3*) 10597 allow_undefined_flag=unsupported 10598 always_export_symbols=yes 10599 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' 10600 # Note: this linker hardcodes the directories in LIBPATH if there 10601 # are no directories specified by -L. 10602 hardcode_minus_L=yes 10603 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 10604 # Neither direct hardcoding nor static linking is supported with a 10605 # broken collect2. 10606 hardcode_direct=unsupported 10607 fi 10608 ;; 10609 10610 aix[4-9]*) 10611 if test "$host_cpu" = ia64; then 10612 # On IA64, the linker does run time linking by default, so we don't 10613 # have to do anything special. 10614 aix_use_runtimelinking=no 10615 exp_sym_flag='-Bexport' 10616 no_entry_flag="" 10617 else 10618 # If we're using GNU nm, then we don't want the "-C" option. 10619 # -C means demangle to AIX nm, but means don't demangle with GNU nm 10620 # Also, AIX nm treats weak defined symbols like other global 10621 # defined symbols, whereas GNU nm marks them as "W". 10622 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10623 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 10624 else 10625 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 10626 fi 10627 aix_use_runtimelinking=no 10628 10629 # Test if we are trying to use run time linking or normal 10630 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10631 # need to do runtime linking. 10632 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10633 for ld_flag in $LDFLAGS; do 10634 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 10635 aix_use_runtimelinking=yes 10636 break 10637 fi 10638 done 10639 ;; 10640 esac 10641 10642 exp_sym_flag='-bexport' 10643 no_entry_flag='-bnoentry' 10644 fi 10645 10646 # When large executables or shared objects are built, AIX ld can 10647 # have problems creating the table of contents. If linking a library 10648 # or program results in "error TOC overflow" add -mminimal-toc to 10649 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10650 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10651 10652 archive_cmds='' 10653 hardcode_direct=yes 10654 hardcode_direct_absolute=yes 10655 hardcode_libdir_separator=':' 10656 link_all_deplibs=yes 10657 file_list_spec='${wl}-f,' 10658 10659 if test "$GCC" = yes; then 10660 case $host_os in aix4.[012]|aix4.[012].*) 10661 # We only want to do this on AIX 4.2 and lower, the check 10662 # below for broken collect2 doesn't work under 4.3+ 10663 collect2name=`${CC} -print-prog-name=collect2` 10664 if test -f "$collect2name" && 10665 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10666 then 10667 # We have reworked collect2 10668 : 10669 else 10670 # We have old collect2 10671 hardcode_direct=unsupported 10672 # It fails to find uninstalled libraries when the uninstalled 10673 # path is not listed in the libpath. Setting hardcode_minus_L 10674 # to unsupported forces relinking 10675 hardcode_minus_L=yes 10676 hardcode_libdir_flag_spec='-L$libdir' 10677 hardcode_libdir_separator= 10678 fi 10679 ;; 10680 esac 10681 shared_flag='-shared' 10682 if test "$aix_use_runtimelinking" = yes; then 10683 shared_flag="$shared_flag "'${wl}-G' 10684 fi 10685 link_all_deplibs=no 10686 else 10687 # not using gcc 10688 if test "$host_cpu" = ia64; then 10689 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10690 # chokes on -Wl,-G. The following line is correct: 10691 shared_flag='-G' 10692 else 10693 if test "$aix_use_runtimelinking" = yes; then 10694 shared_flag='${wl}-G' 10695 else 10696 shared_flag='${wl}-bM:SRE' 10697 fi 10698 fi 10699 fi 10700 10701 export_dynamic_flag_spec='${wl}-bexpall' 10702 # It seems that -bexpall does not export symbols beginning with 10703 # underscore (_), so it is better to generate a list of symbols to export. 10704 always_export_symbols=yes 10705 if test "$aix_use_runtimelinking" = yes; then 10706 # Warning - without using the other runtime loading flags (-brtl), 10707 # -berok will link without error, but may produce a broken library. 10708 allow_undefined_flag='-berok' 10709 # Determine the default libpath from the value encoded in an 10710 # empty executable. 10711 if test "${lt_cv_aix_libpath+set}" = set; then 10712 aix_libpath=$lt_cv_aix_libpath 10713else 10714 if ${lt_cv_aix_libpath_+:} false; then : 10715 $as_echo_n "(cached) " >&6 10716else 10717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10718/* end confdefs.h. */ 10719 10720int 10721main () 10722{ 10723 10724 ; 10725 return 0; 10726} 10727_ACEOF 10728if ac_fn_c_try_link "$LINENO"; then : 10729 10730 lt_aix_libpath_sed=' 10731 /Import File Strings/,/^$/ { 10732 /^0/ { 10733 s/^0 *\([^ ]*\) *$/\1/ 10734 p 10735 } 10736 }' 10737 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10738 # Check for a 64-bit object if we didn't find anything. 10739 if test -z "$lt_cv_aix_libpath_"; then 10740 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10741 fi 10742fi 10743rm -f core conftest.err conftest.$ac_objext \ 10744 conftest$ac_exeext conftest.$ac_ext 10745 if test -z "$lt_cv_aix_libpath_"; then 10746 lt_cv_aix_libpath_="/usr/lib:/lib" 10747 fi 10748 10749fi 10750 10751 aix_libpath=$lt_cv_aix_libpath_ 10752fi 10753 10754 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10755 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 10756 else 10757 if test "$host_cpu" = ia64; then 10758 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 10759 allow_undefined_flag="-z nodefs" 10760 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" 10761 else 10762 # Determine the default libpath from the value encoded in an 10763 # empty executable. 10764 if test "${lt_cv_aix_libpath+set}" = set; then 10765 aix_libpath=$lt_cv_aix_libpath 10766else 10767 if ${lt_cv_aix_libpath_+:} false; then : 10768 $as_echo_n "(cached) " >&6 10769else 10770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10771/* end confdefs.h. */ 10772 10773int 10774main () 10775{ 10776 10777 ; 10778 return 0; 10779} 10780_ACEOF 10781if ac_fn_c_try_link "$LINENO"; then : 10782 10783 lt_aix_libpath_sed=' 10784 /Import File Strings/,/^$/ { 10785 /^0/ { 10786 s/^0 *\([^ ]*\) *$/\1/ 10787 p 10788 } 10789 }' 10790 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10791 # Check for a 64-bit object if we didn't find anything. 10792 if test -z "$lt_cv_aix_libpath_"; then 10793 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10794 fi 10795fi 10796rm -f core conftest.err conftest.$ac_objext \ 10797 conftest$ac_exeext conftest.$ac_ext 10798 if test -z "$lt_cv_aix_libpath_"; then 10799 lt_cv_aix_libpath_="/usr/lib:/lib" 10800 fi 10801 10802fi 10803 10804 aix_libpath=$lt_cv_aix_libpath_ 10805fi 10806 10807 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10808 # Warning - without using the other run time loading flags, 10809 # -berok will link without error, but may produce a broken library. 10810 no_undefined_flag=' ${wl}-bernotok' 10811 allow_undefined_flag=' ${wl}-berok' 10812 if test "$with_gnu_ld" = yes; then 10813 # We only use this code for GNU lds that support --whole-archive. 10814 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10815 else 10816 # Exported symbols can be pulled into shared objects from archives 10817 whole_archive_flag_spec='$convenience' 10818 fi 10819 archive_cmds_need_lc=yes 10820 # This is similar to how AIX traditionally builds its shared libraries. 10821 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 10822 fi 10823 fi 10824 ;; 10825 10826 amigaos*) 10827 case $host_cpu in 10828 powerpc) 10829 # see comment about AmigaOS4 .so support 10830 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10831 archive_expsym_cmds='' 10832 ;; 10833 m68k) 10834 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)' 10835 hardcode_libdir_flag_spec='-L$libdir' 10836 hardcode_minus_L=yes 10837 ;; 10838 esac 10839 ;; 10840 10841 bsdi[45]*) 10842 export_dynamic_flag_spec=-rdynamic 10843 ;; 10844 10845 cygwin* | mingw* | pw32* | cegcc*) 10846 # When not using gcc, we currently assume that we are using 10847 # Microsoft Visual C++. 10848 # hardcode_libdir_flag_spec is actually meaningless, as there is 10849 # no search path for DLLs. 10850 case $cc_basename in 10851 cl*) 10852 # Native MSVC 10853 hardcode_libdir_flag_spec=' ' 10854 allow_undefined_flag=unsupported 10855 always_export_symbols=yes 10856 file_list_spec='@' 10857 # Tell ltmain to make .lib files, not .a files. 10858 libext=lib 10859 # Tell ltmain to make .dll files, not .so files. 10860 shrext_cmds=".dll" 10861 # FIXME: Setting linknames here is a bad hack. 10862 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 10863 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10864 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 10865 else 10866 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 10867 fi~ 10868 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10869 linknames=' 10870 # The linker will not automatically build a static lib if we build a DLL. 10871 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10872 enable_shared_with_static_runtimes=yes 10873 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10874 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10875 # Don't use ranlib 10876 old_postinstall_cmds='chmod 644 $oldlib' 10877 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10878 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10879 case $lt_outputfile in 10880 *.exe|*.EXE) ;; 10881 *) 10882 lt_outputfile="$lt_outputfile.exe" 10883 lt_tool_outputfile="$lt_tool_outputfile.exe" 10884 ;; 10885 esac~ 10886 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 10887 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10888 $RM "$lt_outputfile.manifest"; 10889 fi' 10890 ;; 10891 *) 10892 # Assume MSVC wrapper 10893 hardcode_libdir_flag_spec=' ' 10894 allow_undefined_flag=unsupported 10895 # Tell ltmain to make .lib files, not .a files. 10896 libext=lib 10897 # Tell ltmain to make .dll files, not .so files. 10898 shrext_cmds=".dll" 10899 # FIXME: Setting linknames here is a bad hack. 10900 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10901 # The linker will automatically build a .lib file if we build a DLL. 10902 old_archive_from_new_cmds='true' 10903 # FIXME: Should let the user specify the lib program. 10904 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10905 enable_shared_with_static_runtimes=yes 10906 ;; 10907 esac 10908 ;; 10909 10910 darwin* | rhapsody*) 10911 10912 10913 archive_cmds_need_lc=no 10914 hardcode_direct=no 10915 hardcode_automatic=yes 10916 hardcode_shlibpath_var=unsupported 10917 if test "$lt_cv_ld_force_load" = "yes"; then 10918 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\"`' 10919 10920 else 10921 whole_archive_flag_spec='' 10922 fi 10923 link_all_deplibs=yes 10924 allow_undefined_flag="$_lt_dar_allow_undefined" 10925 case $cc_basename in 10926 ifort*) _lt_dar_can_shared=yes ;; 10927 *) _lt_dar_can_shared=$GCC ;; 10928 esac 10929 if test "$_lt_dar_can_shared" = "yes"; then 10930 output_verbose_link_cmd=func_echo_all 10931 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10932 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10933 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}" 10934 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}" 10935 10936 else 10937 ld_shlibs=no 10938 fi 10939 10940 ;; 10941 10942 dgux*) 10943 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10944 hardcode_libdir_flag_spec='-L$libdir' 10945 hardcode_shlibpath_var=no 10946 ;; 10947 10948 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10949 # support. Future versions do this automatically, but an explicit c++rt0.o 10950 # does not break anything, and helps significantly (at the cost of a little 10951 # extra space). 10952 freebsd2.2*) 10953 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10954 hardcode_libdir_flag_spec='-R$libdir' 10955 hardcode_direct=yes 10956 hardcode_shlibpath_var=no 10957 ;; 10958 10959 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10960 freebsd2.*) 10961 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10962 hardcode_direct=yes 10963 hardcode_minus_L=yes 10964 hardcode_shlibpath_var=no 10965 ;; 10966 10967 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10968 freebsd* | dragonfly*) 10969 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10970 hardcode_libdir_flag_spec='-R$libdir' 10971 hardcode_direct=yes 10972 hardcode_shlibpath_var=no 10973 ;; 10974 10975 hpux9*) 10976 if test "$GCC" = yes; then 10977 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10978 else 10979 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10980 fi 10981 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10982 hardcode_libdir_separator=: 10983 hardcode_direct=yes 10984 10985 # hardcode_minus_L: Not really in the search PATH, 10986 # but as the default location of the library. 10987 hardcode_minus_L=yes 10988 export_dynamic_flag_spec='${wl}-E' 10989 ;; 10990 10991 hpux10*) 10992 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10993 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10994 else 10995 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10996 fi 10997 if test "$with_gnu_ld" = no; then 10998 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10999 hardcode_libdir_separator=: 11000 hardcode_direct=yes 11001 hardcode_direct_absolute=yes 11002 export_dynamic_flag_spec='${wl}-E' 11003 # hardcode_minus_L: Not really in the search PATH, 11004 # but as the default location of the library. 11005 hardcode_minus_L=yes 11006 fi 11007 ;; 11008 11009 hpux11*) 11010 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 11011 case $host_cpu in 11012 hppa*64*) 11013 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11014 ;; 11015 ia64*) 11016 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11017 ;; 11018 *) 11019 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11020 ;; 11021 esac 11022 else 11023 case $host_cpu in 11024 hppa*64*) 11025 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11026 ;; 11027 ia64*) 11028 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11029 ;; 11030 *) 11031 11032 # Older versions of the 11.00 compiler do not understand -b yet 11033 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11035$as_echo_n "checking if $CC understands -b... " >&6; } 11036if ${lt_cv_prog_compiler__b+:} false; then : 11037 $as_echo_n "(cached) " >&6 11038else 11039 lt_cv_prog_compiler__b=no 11040 save_LDFLAGS="$LDFLAGS" 11041 LDFLAGS="$LDFLAGS -b" 11042 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11043 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11044 # The linker can only warn and ignore the option if not recognized 11045 # So say no if there are warnings 11046 if test -s conftest.err; then 11047 # Append any errors to the config.log. 11048 cat conftest.err 1>&5 11049 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11050 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11051 if diff conftest.exp conftest.er2 >/dev/null; then 11052 lt_cv_prog_compiler__b=yes 11053 fi 11054 else 11055 lt_cv_prog_compiler__b=yes 11056 fi 11057 fi 11058 $RM -r conftest* 11059 LDFLAGS="$save_LDFLAGS" 11060 11061fi 11062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11063$as_echo "$lt_cv_prog_compiler__b" >&6; } 11064 11065if test x"$lt_cv_prog_compiler__b" = xyes; then 11066 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11067else 11068 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11069fi 11070 11071 ;; 11072 esac 11073 fi 11074 if test "$with_gnu_ld" = no; then 11075 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11076 hardcode_libdir_separator=: 11077 11078 case $host_cpu in 11079 hppa*64*|ia64*) 11080 hardcode_direct=no 11081 hardcode_shlibpath_var=no 11082 ;; 11083 *) 11084 hardcode_direct=yes 11085 hardcode_direct_absolute=yes 11086 export_dynamic_flag_spec='${wl}-E' 11087 11088 # hardcode_minus_L: Not really in the search PATH, 11089 # but as the default location of the library. 11090 hardcode_minus_L=yes 11091 ;; 11092 esac 11093 fi 11094 ;; 11095 11096 irix5* | irix6* | nonstopux*) 11097 if test "$GCC" = yes; then 11098 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' 11099 # Try to use the -exported_symbol ld option, if it does not 11100 # work, assume that -exports_file does not work either and 11101 # implicitly export all symbols. 11102 # This should be the same for all languages, so no per-tag cache variable. 11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11104$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11105if ${lt_cv_irix_exported_symbol+:} false; then : 11106 $as_echo_n "(cached) " >&6 11107else 11108 save_LDFLAGS="$LDFLAGS" 11109 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 11110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11111/* end confdefs.h. */ 11112int foo (void) { return 0; } 11113_ACEOF 11114if ac_fn_c_try_link "$LINENO"; then : 11115 lt_cv_irix_exported_symbol=yes 11116else 11117 lt_cv_irix_exported_symbol=no 11118fi 11119rm -f core conftest.err conftest.$ac_objext \ 11120 conftest$ac_exeext conftest.$ac_ext 11121 LDFLAGS="$save_LDFLAGS" 11122fi 11123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11124$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11125 if test "$lt_cv_irix_exported_symbol" = yes; then 11126 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' 11127 fi 11128 else 11129 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' 11130 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' 11131 fi 11132 archive_cmds_need_lc='no' 11133 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11134 hardcode_libdir_separator=: 11135 inherit_rpath=yes 11136 link_all_deplibs=yes 11137 ;; 11138 11139 netbsd* | netbsdelf*-gnu) 11140 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11141 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11142 else 11143 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11144 fi 11145 hardcode_libdir_flag_spec='-R$libdir' 11146 hardcode_direct=yes 11147 hardcode_shlibpath_var=no 11148 ;; 11149 11150 newsos6) 11151 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11152 hardcode_direct=yes 11153 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11154 hardcode_libdir_separator=: 11155 hardcode_shlibpath_var=no 11156 ;; 11157 11158 *nto* | *qnx*) 11159 ;; 11160 11161 openbsd*) 11162 if test -f /usr/libexec/ld.so; then 11163 hardcode_direct=yes 11164 hardcode_shlibpath_var=no 11165 hardcode_direct_absolute=yes 11166 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11167 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11168 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 11169 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11170 export_dynamic_flag_spec='${wl}-E' 11171 else 11172 case $host_os in 11173 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 11174 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11175 hardcode_libdir_flag_spec='-R$libdir' 11176 ;; 11177 *) 11178 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11179 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11180 ;; 11181 esac 11182 fi 11183 else 11184 ld_shlibs=no 11185 fi 11186 ;; 11187 11188 os2*) 11189 hardcode_libdir_flag_spec='-L$libdir' 11190 hardcode_minus_L=yes 11191 allow_undefined_flag=unsupported 11192 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 11193 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 11194 ;; 11195 11196 osf3*) 11197 if test "$GCC" = yes; then 11198 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11199 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' 11200 else 11201 allow_undefined_flag=' -expect_unresolved \*' 11202 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' 11203 fi 11204 archive_cmds_need_lc='no' 11205 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11206 hardcode_libdir_separator=: 11207 ;; 11208 11209 osf4* | osf5*) # as osf3* with the addition of -msym flag 11210 if test "$GCC" = yes; then 11211 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11212 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' 11213 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11214 else 11215 allow_undefined_flag=' -expect_unresolved \*' 11216 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' 11217 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~ 11218 $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' 11219 11220 # Both c and cxx compiler support -rpath directly 11221 hardcode_libdir_flag_spec='-rpath $libdir' 11222 fi 11223 archive_cmds_need_lc='no' 11224 hardcode_libdir_separator=: 11225 ;; 11226 11227 solaris*) 11228 no_undefined_flag=' -z defs' 11229 if test "$GCC" = yes; then 11230 wlarc='${wl}' 11231 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11232 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11233 $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' 11234 else 11235 case `$CC -V 2>&1` in 11236 *"Compilers 5.0"*) 11237 wlarc='' 11238 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 11239 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11240 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11241 ;; 11242 *) 11243 wlarc='${wl}' 11244 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11245 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11246 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11247 ;; 11248 esac 11249 fi 11250 hardcode_libdir_flag_spec='-R$libdir' 11251 hardcode_shlibpath_var=no 11252 case $host_os in 11253 solaris2.[0-5] | solaris2.[0-5].*) ;; 11254 *) 11255 # The compiler driver will combine and reorder linker options, 11256 # but understands `-z linker_flag'. GCC discards it without `$wl', 11257 # but is careful enough not to reorder. 11258 # Supported since Solaris 2.6 (maybe 2.5.1?) 11259 if test "$GCC" = yes; then 11260 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 11261 else 11262 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11263 fi 11264 ;; 11265 esac 11266 link_all_deplibs=yes 11267 ;; 11268 11269 sunos4*) 11270 if test "x$host_vendor" = xsequent; then 11271 # Use $CC to link under sequent, because it throws in some extra .o 11272 # files that make .init and .fini sections work. 11273 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11274 else 11275 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11276 fi 11277 hardcode_libdir_flag_spec='-L$libdir' 11278 hardcode_direct=yes 11279 hardcode_minus_L=yes 11280 hardcode_shlibpath_var=no 11281 ;; 11282 11283 sysv4) 11284 case $host_vendor in 11285 sni) 11286 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11287 hardcode_direct=yes # is this really true??? 11288 ;; 11289 siemens) 11290 ## LD is ld it makes a PLAMLIB 11291 ## CC just makes a GrossModule. 11292 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11293 reload_cmds='$CC -r -o $output$reload_objs' 11294 hardcode_direct=no 11295 ;; 11296 motorola) 11297 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11298 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11299 ;; 11300 esac 11301 runpath_var='LD_RUN_PATH' 11302 hardcode_shlibpath_var=no 11303 ;; 11304 11305 sysv4.3*) 11306 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11307 hardcode_shlibpath_var=no 11308 export_dynamic_flag_spec='-Bexport' 11309 ;; 11310 11311 sysv4*MP*) 11312 if test -d /usr/nec; then 11313 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11314 hardcode_shlibpath_var=no 11315 runpath_var=LD_RUN_PATH 11316 hardcode_runpath_var=yes 11317 ld_shlibs=yes 11318 fi 11319 ;; 11320 11321 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11322 no_undefined_flag='${wl}-z,text' 11323 archive_cmds_need_lc=no 11324 hardcode_shlibpath_var=no 11325 runpath_var='LD_RUN_PATH' 11326 11327 if test "$GCC" = yes; then 11328 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11329 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11330 else 11331 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11332 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11333 fi 11334 ;; 11335 11336 sysv5* | sco3.2v5* | sco5v6*) 11337 # Note: We can NOT use -z defs as we might desire, because we do not 11338 # link with -lc, and that would cause any symbols used from libc to 11339 # always be unresolved, which means just about no library would 11340 # ever link correctly. If we're not using GNU ld we use -z text 11341 # though, which does catch some bad symbols but isn't as heavy-handed 11342 # as -z defs. 11343 no_undefined_flag='${wl}-z,text' 11344 allow_undefined_flag='${wl}-z,nodefs' 11345 archive_cmds_need_lc=no 11346 hardcode_shlibpath_var=no 11347 hardcode_libdir_flag_spec='${wl}-R,$libdir' 11348 hardcode_libdir_separator=':' 11349 link_all_deplibs=yes 11350 export_dynamic_flag_spec='${wl}-Bexport' 11351 runpath_var='LD_RUN_PATH' 11352 11353 if test "$GCC" = yes; then 11354 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11355 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11356 else 11357 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11358 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11359 fi 11360 ;; 11361 11362 uts4*) 11363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11364 hardcode_libdir_flag_spec='-L$libdir' 11365 hardcode_shlibpath_var=no 11366 ;; 11367 11368 *) 11369 ld_shlibs=no 11370 ;; 11371 esac 11372 11373 if test x$host_vendor = xsni; then 11374 case $host in 11375 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11376 export_dynamic_flag_spec='${wl}-Blargedynsym' 11377 ;; 11378 esac 11379 fi 11380 fi 11381 11382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11383$as_echo "$ld_shlibs" >&6; } 11384test "$ld_shlibs" = no && can_build_shared=no 11385 11386with_gnu_ld=$with_gnu_ld 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402# 11403# Do we need to explicitly link libc? 11404# 11405case "x$archive_cmds_need_lc" in 11406x|xyes) 11407 # Assume -lc should be added 11408 archive_cmds_need_lc=yes 11409 11410 if test "$enable_shared" = yes && test "$GCC" = yes; then 11411 case $archive_cmds in 11412 *'~'*) 11413 # FIXME: we may have to deal with multi-command sequences. 11414 ;; 11415 '$CC '*) 11416 # Test whether the compiler implicitly links with -lc since on some 11417 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11418 # to ld, don't add -lc before -lgcc. 11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11420$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11421if ${lt_cv_archive_cmds_need_lc+:} false; then : 11422 $as_echo_n "(cached) " >&6 11423else 11424 $RM conftest* 11425 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11426 11427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11428 (eval $ac_compile) 2>&5 11429 ac_status=$? 11430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11431 test $ac_status = 0; } 2>conftest.err; then 11432 soname=conftest 11433 lib=conftest 11434 libobjs=conftest.$ac_objext 11435 deplibs= 11436 wl=$lt_prog_compiler_wl 11437 pic_flag=$lt_prog_compiler_pic 11438 compiler_flags=-v 11439 linker_flags=-v 11440 verstring= 11441 output_objdir=. 11442 libname=conftest 11443 lt_save_allow_undefined_flag=$allow_undefined_flag 11444 allow_undefined_flag= 11445 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11446 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11447 ac_status=$? 11448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11449 test $ac_status = 0; } 11450 then 11451 lt_cv_archive_cmds_need_lc=no 11452 else 11453 lt_cv_archive_cmds_need_lc=yes 11454 fi 11455 allow_undefined_flag=$lt_save_allow_undefined_flag 11456 else 11457 cat conftest.err 1>&5 11458 fi 11459 $RM conftest* 11460 11461fi 11462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11463$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11464 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11465 ;; 11466 esac 11467 fi 11468 ;; 11469esac 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11623$as_echo_n "checking dynamic linker characteristics... " >&6; } 11624 11625if test "$GCC" = yes; then 11626 case $host_os in 11627 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 11628 *) lt_awk_arg="/^libraries:/" ;; 11629 esac 11630 case $host_os in 11631 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 11632 *) lt_sed_strip_eq="s,=/,/,g" ;; 11633 esac 11634 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11635 case $lt_search_path_spec in 11636 *\;*) 11637 # if the path contains ";" then we assume it to be the separator 11638 # otherwise default to the standard path separator (i.e. ":") - it is 11639 # assumed that no part of a normal pathname contains ";" but that should 11640 # okay in the real world where ";" in dirpaths is itself problematic. 11641 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11642 ;; 11643 *) 11644 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11645 ;; 11646 esac 11647 # Ok, now we have the path, separated by spaces, we can step through it 11648 # and add multilib dir if necessary. 11649 lt_tmp_lt_search_path_spec= 11650 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11651 for lt_sys_path in $lt_search_path_spec; do 11652 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 11653 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 11654 else 11655 test -d "$lt_sys_path" && \ 11656 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11657 fi 11658 done 11659 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11660BEGIN {RS=" "; FS="/|\n";} { 11661 lt_foo=""; 11662 lt_count=0; 11663 for (lt_i = NF; lt_i > 0; lt_i--) { 11664 if ($lt_i != "" && $lt_i != ".") { 11665 if ($lt_i == "..") { 11666 lt_count++; 11667 } else { 11668 if (lt_count == 0) { 11669 lt_foo="/" $lt_i lt_foo; 11670 } else { 11671 lt_count--; 11672 } 11673 } 11674 } 11675 } 11676 if (lt_foo != "") { lt_freq[lt_foo]++; } 11677 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11678}'` 11679 # AWK program above erroneously prepends '/' to C:/dos/paths 11680 # for these hosts. 11681 case $host_os in 11682 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11683 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 11684 esac 11685 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11686else 11687 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11688fi 11689library_names_spec= 11690libname_spec='lib$name' 11691soname_spec= 11692shrext_cmds=".so" 11693postinstall_cmds= 11694postuninstall_cmds= 11695finish_cmds= 11696finish_eval= 11697shlibpath_var= 11698shlibpath_overrides_runpath=unknown 11699version_type=none 11700dynamic_linker="$host_os ld.so" 11701sys_lib_dlsearch_path_spec="/lib /usr/lib" 11702need_lib_prefix=unknown 11703hardcode_into_libs=no 11704 11705# when you set need_version to no, make sure it does not cause -set_version 11706# flags to be left without arguments 11707need_version=unknown 11708 11709case $host_os in 11710aix3*) 11711 version_type=linux # correct to gnu/linux during the next big refactor 11712 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11713 shlibpath_var=LIBPATH 11714 11715 # AIX 3 has no versioning support, so we append a major version to the name. 11716 soname_spec='${libname}${release}${shared_ext}$major' 11717 ;; 11718 11719aix[4-9]*) 11720 version_type=linux # correct to gnu/linux during the next big refactor 11721 need_lib_prefix=no 11722 need_version=no 11723 hardcode_into_libs=yes 11724 if test "$host_cpu" = ia64; then 11725 # AIX 5 supports IA64 11726 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11727 shlibpath_var=LD_LIBRARY_PATH 11728 else 11729 # With GCC up to 2.95.x, collect2 would create an import file 11730 # for dependence libraries. The import file would start with 11731 # the line `#! .'. This would cause the generated library to 11732 # depend on `.', always an invalid library. This was fixed in 11733 # development snapshots of GCC prior to 3.0. 11734 case $host_os in 11735 aix4 | aix4.[01] | aix4.[01].*) 11736 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11737 echo ' yes ' 11738 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 11739 : 11740 else 11741 can_build_shared=no 11742 fi 11743 ;; 11744 esac 11745 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11746 # soname into executable. Probably we can add versioning support to 11747 # collect2, so additional links can be useful in future. 11748 if test "$aix_use_runtimelinking" = yes; then 11749 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11750 # instead of lib<name>.a to let people know that these are not 11751 # typical AIX shared libraries. 11752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11753 else 11754 # We preserve .a as extension for shared libraries through AIX4.2 11755 # and later when we are not doing run time linking. 11756 library_names_spec='${libname}${release}.a $libname.a' 11757 soname_spec='${libname}${release}${shared_ext}$major' 11758 fi 11759 shlibpath_var=LIBPATH 11760 fi 11761 ;; 11762 11763amigaos*) 11764 case $host_cpu in 11765 powerpc) 11766 # Since July 2007 AmigaOS4 officially supports .so libraries. 11767 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11769 ;; 11770 m68k) 11771 library_names_spec='$libname.ixlibrary $libname.a' 11772 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11773 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 11774 ;; 11775 esac 11776 ;; 11777 11778beos*) 11779 library_names_spec='${libname}${shared_ext}' 11780 dynamic_linker="$host_os ld.so" 11781 shlibpath_var=LIBRARY_PATH 11782 ;; 11783 11784bsdi[45]*) 11785 version_type=linux # correct to gnu/linux during the next big refactor 11786 need_version=no 11787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11788 soname_spec='${libname}${release}${shared_ext}$major' 11789 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11790 shlibpath_var=LD_LIBRARY_PATH 11791 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11792 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11793 # the default ld.so.conf also contains /usr/contrib/lib and 11794 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11795 # libtool to hard-code these into programs 11796 ;; 11797 11798cygwin* | mingw* | pw32* | cegcc*) 11799 version_type=windows 11800 shrext_cmds=".dll" 11801 need_version=no 11802 need_lib_prefix=no 11803 11804 case $GCC,$cc_basename in 11805 yes,*) 11806 # gcc 11807 library_names_spec='$libname.dll.a' 11808 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11809 postinstall_cmds='base_file=`basename \${file}`~ 11810 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11811 dldir=$destdir/`dirname \$dlpath`~ 11812 test -d \$dldir || mkdir -p \$dldir~ 11813 $install_prog $dir/$dlname \$dldir/$dlname~ 11814 chmod a+x \$dldir/$dlname~ 11815 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11816 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11817 fi' 11818 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11819 dlpath=$dir/\$dldll~ 11820 $RM \$dlpath' 11821 shlibpath_overrides_runpath=yes 11822 11823 case $host_os in 11824 cygwin*) 11825 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11826 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11827 11828 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11829 ;; 11830 mingw* | cegcc*) 11831 # MinGW DLLs use traditional 'lib' prefix 11832 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11833 ;; 11834 pw32*) 11835 # pw32 DLLs use 'pw' prefix rather than 'lib' 11836 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11837 ;; 11838 esac 11839 dynamic_linker='Win32 ld.exe' 11840 ;; 11841 11842 *,cl*) 11843 # Native MSVC 11844 libname_spec='$name' 11845 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11846 library_names_spec='${libname}.dll.lib' 11847 11848 case $build_os in 11849 mingw*) 11850 sys_lib_search_path_spec= 11851 lt_save_ifs=$IFS 11852 IFS=';' 11853 for lt_path in $LIB 11854 do 11855 IFS=$lt_save_ifs 11856 # Let DOS variable expansion print the short 8.3 style file name. 11857 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11858 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11859 done 11860 IFS=$lt_save_ifs 11861 # Convert to MSYS style. 11862 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11863 ;; 11864 cygwin*) 11865 # Convert to unix form, then to dos form, then back to unix form 11866 # but this time dos style (no spaces!) so that the unix form looks 11867 # like /cygdrive/c/PROGRA~1:/cygdr... 11868 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11869 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11870 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11871 ;; 11872 *) 11873 sys_lib_search_path_spec="$LIB" 11874 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11875 # It is most probably a Windows format PATH. 11876 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11877 else 11878 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11879 fi 11880 # FIXME: find the short name or the path components, as spaces are 11881 # common. (e.g. "Program Files" -> "PROGRA~1") 11882 ;; 11883 esac 11884 11885 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11886 postinstall_cmds='base_file=`basename \${file}`~ 11887 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11888 dldir=$destdir/`dirname \$dlpath`~ 11889 test -d \$dldir || mkdir -p \$dldir~ 11890 $install_prog $dir/$dlname \$dldir/$dlname' 11891 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11892 dlpath=$dir/\$dldll~ 11893 $RM \$dlpath' 11894 shlibpath_overrides_runpath=yes 11895 dynamic_linker='Win32 link.exe' 11896 ;; 11897 11898 *) 11899 # Assume MSVC wrapper 11900 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11901 dynamic_linker='Win32 ld.exe' 11902 ;; 11903 esac 11904 # FIXME: first we should search . and the directory the executable is in 11905 shlibpath_var=PATH 11906 ;; 11907 11908darwin* | rhapsody*) 11909 dynamic_linker="$host_os dyld" 11910 version_type=darwin 11911 need_lib_prefix=no 11912 need_version=no 11913 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11914 soname_spec='${libname}${release}${major}$shared_ext' 11915 shlibpath_overrides_runpath=yes 11916 shlibpath_var=DYLD_LIBRARY_PATH 11917 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11918 11919 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11920 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11921 ;; 11922 11923dgux*) 11924 version_type=linux # correct to gnu/linux during the next big refactor 11925 need_lib_prefix=no 11926 need_version=no 11927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11928 soname_spec='${libname}${release}${shared_ext}$major' 11929 shlibpath_var=LD_LIBRARY_PATH 11930 ;; 11931 11932freebsd* | dragonfly*) 11933 # DragonFly does not have aout. When/if they implement a new 11934 # versioning mechanism, adjust this. 11935 if test -x /usr/bin/objformat; then 11936 objformat=`/usr/bin/objformat` 11937 else 11938 case $host_os in 11939 freebsd[23].*) objformat=aout ;; 11940 *) objformat=elf ;; 11941 esac 11942 fi 11943 version_type=freebsd-$objformat 11944 case $version_type in 11945 freebsd-elf*) 11946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11947 need_version=no 11948 need_lib_prefix=no 11949 ;; 11950 freebsd-*) 11951 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11952 need_version=yes 11953 ;; 11954 esac 11955 shlibpath_var=LD_LIBRARY_PATH 11956 case $host_os in 11957 freebsd2.*) 11958 shlibpath_overrides_runpath=yes 11959 ;; 11960 freebsd3.[01]* | freebsdelf3.[01]*) 11961 shlibpath_overrides_runpath=yes 11962 hardcode_into_libs=yes 11963 ;; 11964 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11965 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11966 shlibpath_overrides_runpath=no 11967 hardcode_into_libs=yes 11968 ;; 11969 *) # from 4.6 on, and DragonFly 11970 shlibpath_overrides_runpath=yes 11971 hardcode_into_libs=yes 11972 ;; 11973 esac 11974 ;; 11975 11976haiku*) 11977 version_type=linux # correct to gnu/linux during the next big refactor 11978 need_lib_prefix=no 11979 need_version=no 11980 dynamic_linker="$host_os runtime_loader" 11981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11982 soname_spec='${libname}${release}${shared_ext}$major' 11983 shlibpath_var=LIBRARY_PATH 11984 shlibpath_overrides_runpath=yes 11985 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11986 hardcode_into_libs=yes 11987 ;; 11988 11989hpux9* | hpux10* | hpux11*) 11990 # Give a soname corresponding to the major version so that dld.sl refuses to 11991 # link against other versions. 11992 version_type=sunos 11993 need_lib_prefix=no 11994 need_version=no 11995 case $host_cpu in 11996 ia64*) 11997 shrext_cmds='.so' 11998 hardcode_into_libs=yes 11999 dynamic_linker="$host_os dld.so" 12000 shlibpath_var=LD_LIBRARY_PATH 12001 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12003 soname_spec='${libname}${release}${shared_ext}$major' 12004 if test "X$HPUX_IA64_MODE" = X32; then 12005 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12006 else 12007 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12008 fi 12009 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12010 ;; 12011 hppa*64*) 12012 shrext_cmds='.sl' 12013 hardcode_into_libs=yes 12014 dynamic_linker="$host_os dld.sl" 12015 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12016 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12018 soname_spec='${libname}${release}${shared_ext}$major' 12019 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12020 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12021 ;; 12022 *) 12023 shrext_cmds='.sl' 12024 dynamic_linker="$host_os dld.sl" 12025 shlibpath_var=SHLIB_PATH 12026 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12028 soname_spec='${libname}${release}${shared_ext}$major' 12029 ;; 12030 esac 12031 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12032 postinstall_cmds='chmod 555 $lib' 12033 # or fails outright, so override atomically: 12034 install_override_mode=555 12035 ;; 12036 12037interix[3-9]*) 12038 version_type=linux # correct to gnu/linux during the next big refactor 12039 need_lib_prefix=no 12040 need_version=no 12041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12042 soname_spec='${libname}${release}${shared_ext}$major' 12043 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12044 shlibpath_var=LD_LIBRARY_PATH 12045 shlibpath_overrides_runpath=no 12046 hardcode_into_libs=yes 12047 ;; 12048 12049irix5* | irix6* | nonstopux*) 12050 case $host_os in 12051 nonstopux*) version_type=nonstopux ;; 12052 *) 12053 if test "$lt_cv_prog_gnu_ld" = yes; then 12054 version_type=linux # correct to gnu/linux during the next big refactor 12055 else 12056 version_type=irix 12057 fi ;; 12058 esac 12059 need_lib_prefix=no 12060 need_version=no 12061 soname_spec='${libname}${release}${shared_ext}$major' 12062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12063 case $host_os in 12064 irix5* | nonstopux*) 12065 libsuff= shlibsuff= 12066 ;; 12067 *) 12068 case $LD in # libtool.m4 will add one of these switches to LD 12069 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12070 libsuff= shlibsuff= libmagic=32-bit;; 12071 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12072 libsuff=32 shlibsuff=N32 libmagic=N32;; 12073 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12074 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12075 *) libsuff= shlibsuff= libmagic=never-match;; 12076 esac 12077 ;; 12078 esac 12079 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12080 shlibpath_overrides_runpath=no 12081 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12082 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12083 hardcode_into_libs=yes 12084 ;; 12085 12086# No shared lib support for Linux oldld, aout, or coff. 12087linux*oldld* | linux*aout* | linux*coff*) 12088 dynamic_linker=no 12089 ;; 12090 12091# This must be glibc/ELF. 12092linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12093 version_type=linux # correct to gnu/linux during the next big refactor 12094 need_lib_prefix=no 12095 need_version=no 12096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12097 soname_spec='${libname}${release}${shared_ext}$major' 12098 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12099 shlibpath_var=LD_LIBRARY_PATH 12100 shlibpath_overrides_runpath=no 12101 12102 # Some binutils ld are patched to set DT_RUNPATH 12103 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12104 $as_echo_n "(cached) " >&6 12105else 12106 lt_cv_shlibpath_overrides_runpath=no 12107 save_LDFLAGS=$LDFLAGS 12108 save_libdir=$libdir 12109 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12110 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12112/* end confdefs.h. */ 12113 12114int 12115main () 12116{ 12117 12118 ; 12119 return 0; 12120} 12121_ACEOF 12122if ac_fn_c_try_link "$LINENO"; then : 12123 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12124 lt_cv_shlibpath_overrides_runpath=yes 12125fi 12126fi 12127rm -f core conftest.err conftest.$ac_objext \ 12128 conftest$ac_exeext conftest.$ac_ext 12129 LDFLAGS=$save_LDFLAGS 12130 libdir=$save_libdir 12131 12132fi 12133 12134 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12135 12136 # This implies no fast_install, which is unacceptable. 12137 # Some rework will be needed to allow for fast_install 12138 # before this can be enabled. 12139 hardcode_into_libs=yes 12140 12141 # Append ld.so.conf contents to the search path 12142 if test -f /etc/ld.so.conf; then 12143 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' ' '` 12144 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12145 fi 12146 12147 # We used to test for /lib/ld.so.1 and disable shared libraries on 12148 # powerpc, because MkLinux only supported shared libraries with the 12149 # GNU dynamic linker. Since this was broken with cross compilers, 12150 # most powerpc-linux boxes support dynamic linking these days and 12151 # people can always --disable-shared, the test was removed, and we 12152 # assume the GNU/Linux dynamic linker is in use. 12153 dynamic_linker='GNU/Linux ld.so' 12154 ;; 12155 12156netbsdelf*-gnu) 12157 version_type=linux 12158 need_lib_prefix=no 12159 need_version=no 12160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12161 soname_spec='${libname}${release}${shared_ext}$major' 12162 shlibpath_var=LD_LIBRARY_PATH 12163 shlibpath_overrides_runpath=no 12164 hardcode_into_libs=yes 12165 dynamic_linker='NetBSD ld.elf_so' 12166 ;; 12167 12168netbsd*) 12169 version_type=sunos 12170 need_lib_prefix=no 12171 need_version=no 12172 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12175 dynamic_linker='NetBSD (a.out) ld.so' 12176 else 12177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12178 soname_spec='${libname}${release}${shared_ext}$major' 12179 dynamic_linker='NetBSD ld.elf_so' 12180 fi 12181 shlibpath_var=LD_LIBRARY_PATH 12182 shlibpath_overrides_runpath=yes 12183 hardcode_into_libs=yes 12184 ;; 12185 12186newsos6) 12187 version_type=linux # correct to gnu/linux during the next big refactor 12188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12189 shlibpath_var=LD_LIBRARY_PATH 12190 shlibpath_overrides_runpath=yes 12191 ;; 12192 12193*nto* | *qnx*) 12194 version_type=qnx 12195 need_lib_prefix=no 12196 need_version=no 12197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12198 soname_spec='${libname}${release}${shared_ext}$major' 12199 shlibpath_var=LD_LIBRARY_PATH 12200 shlibpath_overrides_runpath=no 12201 hardcode_into_libs=yes 12202 dynamic_linker='ldqnx.so' 12203 ;; 12204 12205openbsd*) 12206 version_type=sunos 12207 sys_lib_dlsearch_path_spec="/usr/lib" 12208 need_lib_prefix=no 12209 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12210 case $host_os in 12211 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12212 *) need_version=no ;; 12213 esac 12214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12215 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12216 shlibpath_var=LD_LIBRARY_PATH 12217 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12218 case $host_os in 12219 openbsd2.[89] | openbsd2.[89].*) 12220 shlibpath_overrides_runpath=no 12221 ;; 12222 *) 12223 shlibpath_overrides_runpath=yes 12224 ;; 12225 esac 12226 else 12227 shlibpath_overrides_runpath=yes 12228 fi 12229 ;; 12230 12231os2*) 12232 libname_spec='$name' 12233 shrext_cmds=".dll" 12234 need_lib_prefix=no 12235 library_names_spec='$libname${shared_ext} $libname.a' 12236 dynamic_linker='OS/2 ld.exe' 12237 shlibpath_var=LIBPATH 12238 ;; 12239 12240osf3* | osf4* | osf5*) 12241 version_type=osf 12242 need_lib_prefix=no 12243 need_version=no 12244 soname_spec='${libname}${release}${shared_ext}$major' 12245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12246 shlibpath_var=LD_LIBRARY_PATH 12247 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12248 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12249 ;; 12250 12251rdos*) 12252 dynamic_linker=no 12253 ;; 12254 12255solaris*) 12256 version_type=linux # correct to gnu/linux during the next big refactor 12257 need_lib_prefix=no 12258 need_version=no 12259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12260 soname_spec='${libname}${release}${shared_ext}$major' 12261 shlibpath_var=LD_LIBRARY_PATH 12262 shlibpath_overrides_runpath=yes 12263 hardcode_into_libs=yes 12264 # ldd complains unless libraries are executable 12265 postinstall_cmds='chmod +x $lib' 12266 ;; 12267 12268sunos4*) 12269 version_type=sunos 12270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12271 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12272 shlibpath_var=LD_LIBRARY_PATH 12273 shlibpath_overrides_runpath=yes 12274 if test "$with_gnu_ld" = yes; then 12275 need_lib_prefix=no 12276 fi 12277 need_version=yes 12278 ;; 12279 12280sysv4 | sysv4.3*) 12281 version_type=linux # correct to gnu/linux during the next big refactor 12282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12283 soname_spec='${libname}${release}${shared_ext}$major' 12284 shlibpath_var=LD_LIBRARY_PATH 12285 case $host_vendor in 12286 sni) 12287 shlibpath_overrides_runpath=no 12288 need_lib_prefix=no 12289 runpath_var=LD_RUN_PATH 12290 ;; 12291 siemens) 12292 need_lib_prefix=no 12293 ;; 12294 motorola) 12295 need_lib_prefix=no 12296 need_version=no 12297 shlibpath_overrides_runpath=no 12298 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12299 ;; 12300 esac 12301 ;; 12302 12303sysv4*MP*) 12304 if test -d /usr/nec ;then 12305 version_type=linux # correct to gnu/linux during the next big refactor 12306 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12307 soname_spec='$libname${shared_ext}.$major' 12308 shlibpath_var=LD_LIBRARY_PATH 12309 fi 12310 ;; 12311 12312sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12313 version_type=freebsd-elf 12314 need_lib_prefix=no 12315 need_version=no 12316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12317 soname_spec='${libname}${release}${shared_ext}$major' 12318 shlibpath_var=LD_LIBRARY_PATH 12319 shlibpath_overrides_runpath=yes 12320 hardcode_into_libs=yes 12321 if test "$with_gnu_ld" = yes; then 12322 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12323 else 12324 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12325 case $host_os in 12326 sco3.2v5*) 12327 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12328 ;; 12329 esac 12330 fi 12331 sys_lib_dlsearch_path_spec='/usr/lib' 12332 ;; 12333 12334tpf*) 12335 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12336 version_type=linux # correct to gnu/linux during the next big refactor 12337 need_lib_prefix=no 12338 need_version=no 12339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12340 shlibpath_var=LD_LIBRARY_PATH 12341 shlibpath_overrides_runpath=no 12342 hardcode_into_libs=yes 12343 ;; 12344 12345uts4*) 12346 version_type=linux # correct to gnu/linux during the next big refactor 12347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12348 soname_spec='${libname}${release}${shared_ext}$major' 12349 shlibpath_var=LD_LIBRARY_PATH 12350 ;; 12351 12352*) 12353 dynamic_linker=no 12354 ;; 12355esac 12356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12357$as_echo "$dynamic_linker" >&6; } 12358test "$dynamic_linker" = no && can_build_shared=no 12359 12360variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12361if test "$GCC" = yes; then 12362 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12363fi 12364 12365if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 12366 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 12367fi 12368if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 12369 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 12370fi 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12464$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12465hardcode_action= 12466if test -n "$hardcode_libdir_flag_spec" || 12467 test -n "$runpath_var" || 12468 test "X$hardcode_automatic" = "Xyes" ; then 12469 12470 # We can hardcode non-existent directories. 12471 if test "$hardcode_direct" != no && 12472 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12473 # have to relink, otherwise we might link with an installed library 12474 # when we should be linking with a yet-to-be-installed one 12475 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 12476 test "$hardcode_minus_L" != no; then 12477 # Linking always hardcodes the temporary library directory. 12478 hardcode_action=relink 12479 else 12480 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12481 hardcode_action=immediate 12482 fi 12483else 12484 # We cannot hardcode anything, or else we can only hardcode existing 12485 # directories. 12486 hardcode_action=unsupported 12487fi 12488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12489$as_echo "$hardcode_action" >&6; } 12490 12491if test "$hardcode_action" = relink || 12492 test "$inherit_rpath" = yes; then 12493 # Fast installation is not supported 12494 enable_fast_install=no 12495elif test "$shlibpath_overrides_runpath" = yes || 12496 test "$enable_shared" = no; then 12497 # Fast installation is not necessary 12498 enable_fast_install=needless 12499fi 12500 12501 12502 12503 12504 12505 12506 if test "x$enable_dlopen" != xyes; then 12507 enable_dlopen=unknown 12508 enable_dlopen_self=unknown 12509 enable_dlopen_self_static=unknown 12510else 12511 lt_cv_dlopen=no 12512 lt_cv_dlopen_libs= 12513 12514 case $host_os in 12515 beos*) 12516 lt_cv_dlopen="load_add_on" 12517 lt_cv_dlopen_libs= 12518 lt_cv_dlopen_self=yes 12519 ;; 12520 12521 mingw* | pw32* | cegcc*) 12522 lt_cv_dlopen="LoadLibrary" 12523 lt_cv_dlopen_libs= 12524 ;; 12525 12526 cygwin*) 12527 lt_cv_dlopen="dlopen" 12528 lt_cv_dlopen_libs= 12529 ;; 12530 12531 darwin*) 12532 # if libdl is installed we need to link against it 12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12534$as_echo_n "checking for dlopen in -ldl... " >&6; } 12535if ${ac_cv_lib_dl_dlopen+:} false; then : 12536 $as_echo_n "(cached) " >&6 12537else 12538 ac_check_lib_save_LIBS=$LIBS 12539LIBS="-ldl $LIBS" 12540cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12541/* end confdefs.h. */ 12542 12543/* Override any GCC internal prototype to avoid an error. 12544 Use char because int might match the return type of a GCC 12545 builtin and then its argument prototype would still apply. */ 12546#ifdef __cplusplus 12547extern "C" 12548#endif 12549char dlopen (); 12550int 12551main () 12552{ 12553return dlopen (); 12554 ; 12555 return 0; 12556} 12557_ACEOF 12558if ac_fn_c_try_link "$LINENO"; then : 12559 ac_cv_lib_dl_dlopen=yes 12560else 12561 ac_cv_lib_dl_dlopen=no 12562fi 12563rm -f core conftest.err conftest.$ac_objext \ 12564 conftest$ac_exeext conftest.$ac_ext 12565LIBS=$ac_check_lib_save_LIBS 12566fi 12567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12568$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12569if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12570 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12571else 12572 12573 lt_cv_dlopen="dyld" 12574 lt_cv_dlopen_libs= 12575 lt_cv_dlopen_self=yes 12576 12577fi 12578 12579 ;; 12580 12581 *) 12582 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12583if test "x$ac_cv_func_shl_load" = xyes; then : 12584 lt_cv_dlopen="shl_load" 12585else 12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12587$as_echo_n "checking for shl_load in -ldld... " >&6; } 12588if ${ac_cv_lib_dld_shl_load+:} false; then : 12589 $as_echo_n "(cached) " >&6 12590else 12591 ac_check_lib_save_LIBS=$LIBS 12592LIBS="-ldld $LIBS" 12593cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12594/* end confdefs.h. */ 12595 12596/* Override any GCC internal prototype to avoid an error. 12597 Use char because int might match the return type of a GCC 12598 builtin and then its argument prototype would still apply. */ 12599#ifdef __cplusplus 12600extern "C" 12601#endif 12602char shl_load (); 12603int 12604main () 12605{ 12606return shl_load (); 12607 ; 12608 return 0; 12609} 12610_ACEOF 12611if ac_fn_c_try_link "$LINENO"; then : 12612 ac_cv_lib_dld_shl_load=yes 12613else 12614 ac_cv_lib_dld_shl_load=no 12615fi 12616rm -f core conftest.err conftest.$ac_objext \ 12617 conftest$ac_exeext conftest.$ac_ext 12618LIBS=$ac_check_lib_save_LIBS 12619fi 12620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12621$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12622if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12623 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 12624else 12625 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12626if test "x$ac_cv_func_dlopen" = xyes; then : 12627 lt_cv_dlopen="dlopen" 12628else 12629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12630$as_echo_n "checking for dlopen in -ldl... " >&6; } 12631if ${ac_cv_lib_dl_dlopen+:} false; then : 12632 $as_echo_n "(cached) " >&6 12633else 12634 ac_check_lib_save_LIBS=$LIBS 12635LIBS="-ldl $LIBS" 12636cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12637/* end confdefs.h. */ 12638 12639/* Override any GCC internal prototype to avoid an error. 12640 Use char because int might match the return type of a GCC 12641 builtin and then its argument prototype would still apply. */ 12642#ifdef __cplusplus 12643extern "C" 12644#endif 12645char dlopen (); 12646int 12647main () 12648{ 12649return dlopen (); 12650 ; 12651 return 0; 12652} 12653_ACEOF 12654if ac_fn_c_try_link "$LINENO"; then : 12655 ac_cv_lib_dl_dlopen=yes 12656else 12657 ac_cv_lib_dl_dlopen=no 12658fi 12659rm -f core conftest.err conftest.$ac_objext \ 12660 conftest$ac_exeext conftest.$ac_ext 12661LIBS=$ac_check_lib_save_LIBS 12662fi 12663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12664$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12665if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12666 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12667else 12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12669$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12670if ${ac_cv_lib_svld_dlopen+:} false; then : 12671 $as_echo_n "(cached) " >&6 12672else 12673 ac_check_lib_save_LIBS=$LIBS 12674LIBS="-lsvld $LIBS" 12675cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12676/* end confdefs.h. */ 12677 12678/* Override any GCC internal prototype to avoid an error. 12679 Use char because int might match the return type of a GCC 12680 builtin and then its argument prototype would still apply. */ 12681#ifdef __cplusplus 12682extern "C" 12683#endif 12684char dlopen (); 12685int 12686main () 12687{ 12688return dlopen (); 12689 ; 12690 return 0; 12691} 12692_ACEOF 12693if ac_fn_c_try_link "$LINENO"; then : 12694 ac_cv_lib_svld_dlopen=yes 12695else 12696 ac_cv_lib_svld_dlopen=no 12697fi 12698rm -f core conftest.err conftest.$ac_objext \ 12699 conftest$ac_exeext conftest.$ac_ext 12700LIBS=$ac_check_lib_save_LIBS 12701fi 12702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12703$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12704if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12705 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12706else 12707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12708$as_echo_n "checking for dld_link in -ldld... " >&6; } 12709if ${ac_cv_lib_dld_dld_link+:} false; then : 12710 $as_echo_n "(cached) " >&6 12711else 12712 ac_check_lib_save_LIBS=$LIBS 12713LIBS="-ldld $LIBS" 12714cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12715/* end confdefs.h. */ 12716 12717/* Override any GCC internal prototype to avoid an error. 12718 Use char because int might match the return type of a GCC 12719 builtin and then its argument prototype would still apply. */ 12720#ifdef __cplusplus 12721extern "C" 12722#endif 12723char dld_link (); 12724int 12725main () 12726{ 12727return dld_link (); 12728 ; 12729 return 0; 12730} 12731_ACEOF 12732if ac_fn_c_try_link "$LINENO"; then : 12733 ac_cv_lib_dld_dld_link=yes 12734else 12735 ac_cv_lib_dld_dld_link=no 12736fi 12737rm -f core conftest.err conftest.$ac_objext \ 12738 conftest$ac_exeext conftest.$ac_ext 12739LIBS=$ac_check_lib_save_LIBS 12740fi 12741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12742$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12743if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12744 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 12745fi 12746 12747 12748fi 12749 12750 12751fi 12752 12753 12754fi 12755 12756 12757fi 12758 12759 12760fi 12761 12762 ;; 12763 esac 12764 12765 if test "x$lt_cv_dlopen" != xno; then 12766 enable_dlopen=yes 12767 else 12768 enable_dlopen=no 12769 fi 12770 12771 case $lt_cv_dlopen in 12772 dlopen) 12773 save_CPPFLAGS="$CPPFLAGS" 12774 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12775 12776 save_LDFLAGS="$LDFLAGS" 12777 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12778 12779 save_LIBS="$LIBS" 12780 LIBS="$lt_cv_dlopen_libs $LIBS" 12781 12782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12783$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12784if ${lt_cv_dlopen_self+:} false; then : 12785 $as_echo_n "(cached) " >&6 12786else 12787 if test "$cross_compiling" = yes; then : 12788 lt_cv_dlopen_self=cross 12789else 12790 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12791 lt_status=$lt_dlunknown 12792 cat > conftest.$ac_ext <<_LT_EOF 12793#line $LINENO "configure" 12794#include "confdefs.h" 12795 12796#if HAVE_DLFCN_H 12797#include <dlfcn.h> 12798#endif 12799 12800#include <stdio.h> 12801 12802#ifdef RTLD_GLOBAL 12803# define LT_DLGLOBAL RTLD_GLOBAL 12804#else 12805# ifdef DL_GLOBAL 12806# define LT_DLGLOBAL DL_GLOBAL 12807# else 12808# define LT_DLGLOBAL 0 12809# endif 12810#endif 12811 12812/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12813 find out it does not work in some platform. */ 12814#ifndef LT_DLLAZY_OR_NOW 12815# ifdef RTLD_LAZY 12816# define LT_DLLAZY_OR_NOW RTLD_LAZY 12817# else 12818# ifdef DL_LAZY 12819# define LT_DLLAZY_OR_NOW DL_LAZY 12820# else 12821# ifdef RTLD_NOW 12822# define LT_DLLAZY_OR_NOW RTLD_NOW 12823# else 12824# ifdef DL_NOW 12825# define LT_DLLAZY_OR_NOW DL_NOW 12826# else 12827# define LT_DLLAZY_OR_NOW 0 12828# endif 12829# endif 12830# endif 12831# endif 12832#endif 12833 12834/* When -fvisbility=hidden is used, assume the code has been annotated 12835 correspondingly for the symbols needed. */ 12836#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12837int fnord () __attribute__((visibility("default"))); 12838#endif 12839 12840int fnord () { return 42; } 12841int main () 12842{ 12843 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12844 int status = $lt_dlunknown; 12845 12846 if (self) 12847 { 12848 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12849 else 12850 { 12851 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12852 else puts (dlerror ()); 12853 } 12854 /* dlclose (self); */ 12855 } 12856 else 12857 puts (dlerror ()); 12858 12859 return status; 12860} 12861_LT_EOF 12862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12863 (eval $ac_link) 2>&5 12864 ac_status=$? 12865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12866 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12867 (./conftest; exit; ) >&5 2>/dev/null 12868 lt_status=$? 12869 case x$lt_status in 12870 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12871 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12872 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12873 esac 12874 else : 12875 # compilation failed 12876 lt_cv_dlopen_self=no 12877 fi 12878fi 12879rm -fr conftest* 12880 12881 12882fi 12883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12884$as_echo "$lt_cv_dlopen_self" >&6; } 12885 12886 if test "x$lt_cv_dlopen_self" = xyes; then 12887 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12889$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12890if ${lt_cv_dlopen_self_static+:} false; then : 12891 $as_echo_n "(cached) " >&6 12892else 12893 if test "$cross_compiling" = yes; then : 12894 lt_cv_dlopen_self_static=cross 12895else 12896 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12897 lt_status=$lt_dlunknown 12898 cat > conftest.$ac_ext <<_LT_EOF 12899#line $LINENO "configure" 12900#include "confdefs.h" 12901 12902#if HAVE_DLFCN_H 12903#include <dlfcn.h> 12904#endif 12905 12906#include <stdio.h> 12907 12908#ifdef RTLD_GLOBAL 12909# define LT_DLGLOBAL RTLD_GLOBAL 12910#else 12911# ifdef DL_GLOBAL 12912# define LT_DLGLOBAL DL_GLOBAL 12913# else 12914# define LT_DLGLOBAL 0 12915# endif 12916#endif 12917 12918/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12919 find out it does not work in some platform. */ 12920#ifndef LT_DLLAZY_OR_NOW 12921# ifdef RTLD_LAZY 12922# define LT_DLLAZY_OR_NOW RTLD_LAZY 12923# else 12924# ifdef DL_LAZY 12925# define LT_DLLAZY_OR_NOW DL_LAZY 12926# else 12927# ifdef RTLD_NOW 12928# define LT_DLLAZY_OR_NOW RTLD_NOW 12929# else 12930# ifdef DL_NOW 12931# define LT_DLLAZY_OR_NOW DL_NOW 12932# else 12933# define LT_DLLAZY_OR_NOW 0 12934# endif 12935# endif 12936# endif 12937# endif 12938#endif 12939 12940/* When -fvisbility=hidden is used, assume the code has been annotated 12941 correspondingly for the symbols needed. */ 12942#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12943int fnord () __attribute__((visibility("default"))); 12944#endif 12945 12946int fnord () { return 42; } 12947int main () 12948{ 12949 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12950 int status = $lt_dlunknown; 12951 12952 if (self) 12953 { 12954 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12955 else 12956 { 12957 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12958 else puts (dlerror ()); 12959 } 12960 /* dlclose (self); */ 12961 } 12962 else 12963 puts (dlerror ()); 12964 12965 return status; 12966} 12967_LT_EOF 12968 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12969 (eval $ac_link) 2>&5 12970 ac_status=$? 12971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12972 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12973 (./conftest; exit; ) >&5 2>/dev/null 12974 lt_status=$? 12975 case x$lt_status in 12976 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12977 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12978 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12979 esac 12980 else : 12981 # compilation failed 12982 lt_cv_dlopen_self_static=no 12983 fi 12984fi 12985rm -fr conftest* 12986 12987 12988fi 12989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12990$as_echo "$lt_cv_dlopen_self_static" >&6; } 12991 fi 12992 12993 CPPFLAGS="$save_CPPFLAGS" 12994 LDFLAGS="$save_LDFLAGS" 12995 LIBS="$save_LIBS" 12996 ;; 12997 esac 12998 12999 case $lt_cv_dlopen_self in 13000 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13001 *) enable_dlopen_self=unknown ;; 13002 esac 13003 13004 case $lt_cv_dlopen_self_static in 13005 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13006 *) enable_dlopen_self_static=unknown ;; 13007 esac 13008fi 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026striplib= 13027old_striplib= 13028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13029$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13030if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13031 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13032 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13034$as_echo "yes" >&6; } 13035else 13036# FIXME - insert some real tests, host_os isn't really good enough 13037 case $host_os in 13038 darwin*) 13039 if test -n "$STRIP" ; then 13040 striplib="$STRIP -x" 13041 old_striplib="$STRIP -S" 13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13043$as_echo "yes" >&6; } 13044 else 13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13046$as_echo "no" >&6; } 13047 fi 13048 ;; 13049 *) 13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13051$as_echo "no" >&6; } 13052 ;; 13053 esac 13054fi 13055 13056 13057 13058 13059 13060 13061 13062 13063 13064 13065 13066 13067 # Report which library types will actually be built 13068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13069$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13071$as_echo "$can_build_shared" >&6; } 13072 13073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13074$as_echo_n "checking whether to build shared libraries... " >&6; } 13075 test "$can_build_shared" = "no" && enable_shared=no 13076 13077 # On AIX, shared libraries and static libraries use the same namespace, and 13078 # are all built from PIC. 13079 case $host_os in 13080 aix3*) 13081 test "$enable_shared" = yes && enable_static=no 13082 if test -n "$RANLIB"; then 13083 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13084 postinstall_cmds='$RANLIB $lib' 13085 fi 13086 ;; 13087 13088 aix[4-9]*) 13089 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13090 test "$enable_shared" = yes && enable_static=no 13091 fi 13092 ;; 13093 esac 13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13095$as_echo "$enable_shared" >&6; } 13096 13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13098$as_echo_n "checking whether to build static libraries... " >&6; } 13099 # Make sure either enable_shared or enable_static is yes. 13100 test "$enable_shared" = yes || enable_static=yes 13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13102$as_echo "$enable_static" >&6; } 13103 13104 13105 13106 13107fi 13108ac_ext=c 13109ac_cpp='$CPP $CPPFLAGS' 13110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13112ac_compiler_gnu=$ac_cv_c_compiler_gnu 13113 13114CC="$lt_save_CC" 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 ac_config_commands="$ac_config_commands libtool" 13131 13132 13133 13134 13135# Only expand once: 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13147 if test -n "$ac_tool_prefix"; then 13148 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13149set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13151$as_echo_n "checking for $ac_word... " >&6; } 13152if ${ac_cv_path_PKG_CONFIG+:} false; then : 13153 $as_echo_n "(cached) " >&6 13154else 13155 case $PKG_CONFIG in 13156 [\\/]* | ?:[\\/]*) 13157 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13158 ;; 13159 *) 13160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13161for as_dir in $PATH 13162do 13163 IFS=$as_save_IFS 13164 test -z "$as_dir" && as_dir=. 13165 for ac_exec_ext in '' $ac_executable_extensions; do 13166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13167 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13169 break 2 13170 fi 13171done 13172 done 13173IFS=$as_save_IFS 13174 13175 ;; 13176esac 13177fi 13178PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13179if test -n "$PKG_CONFIG"; then 13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13181$as_echo "$PKG_CONFIG" >&6; } 13182else 13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13184$as_echo "no" >&6; } 13185fi 13186 13187 13188fi 13189if test -z "$ac_cv_path_PKG_CONFIG"; then 13190 ac_pt_PKG_CONFIG=$PKG_CONFIG 13191 # Extract the first word of "pkg-config", so it can be a program name with args. 13192set dummy pkg-config; ac_word=$2 13193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13194$as_echo_n "checking for $ac_word... " >&6; } 13195if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 13196 $as_echo_n "(cached) " >&6 13197else 13198 case $ac_pt_PKG_CONFIG in 13199 [\\/]* | ?:[\\/]*) 13200 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13201 ;; 13202 *) 13203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13204for as_dir in $PATH 13205do 13206 IFS=$as_save_IFS 13207 test -z "$as_dir" && as_dir=. 13208 for ac_exec_ext in '' $ac_executable_extensions; do 13209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13210 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13212 break 2 13213 fi 13214done 13215 done 13216IFS=$as_save_IFS 13217 13218 ;; 13219esac 13220fi 13221ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13222if test -n "$ac_pt_PKG_CONFIG"; then 13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13224$as_echo "$ac_pt_PKG_CONFIG" >&6; } 13225else 13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13227$as_echo "no" >&6; } 13228fi 13229 13230 if test "x$ac_pt_PKG_CONFIG" = x; then 13231 PKG_CONFIG="" 13232 else 13233 case $cross_compiling:$ac_tool_warned in 13234yes:) 13235{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13236$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13237ac_tool_warned=yes ;; 13238esac 13239 PKG_CONFIG=$ac_pt_PKG_CONFIG 13240 fi 13241else 13242 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13243fi 13244 13245fi 13246if test -n "$PKG_CONFIG"; then 13247 _pkg_min_version=0.9.0 13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13249$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13250 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13252$as_echo "yes" >&6; } 13253 else 13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13255$as_echo "no" >&6; } 13256 PKG_CONFIG="" 13257 fi 13258fi 13259 13260pkg_failed=no 13261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML" >&5 13262$as_echo_n "checking for LIBXML... " >&6; } 13263 13264if test -n "$LIBXML_CFLAGS"; then 13265 pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS" 13266 elif test -n "$PKG_CONFIG"; then 13267 if test -n "$PKG_CONFIG" && \ 13268 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.5.0\""; } >&5 13269 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.5.0") 2>&5 13270 ac_status=$? 13271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13272 test $ac_status = 0; }; then 13273 pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.5.0" 2>/dev/null` 13274 test "x$?" != "x0" && pkg_failed=yes 13275else 13276 pkg_failed=yes 13277fi 13278 else 13279 pkg_failed=untried 13280fi 13281if test -n "$LIBXML_LIBS"; then 13282 pkg_cv_LIBXML_LIBS="$LIBXML_LIBS" 13283 elif test -n "$PKG_CONFIG"; then 13284 if test -n "$PKG_CONFIG" && \ 13285 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.5.0\""; } >&5 13286 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.5.0") 2>&5 13287 ac_status=$? 13288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13289 test $ac_status = 0; }; then 13290 pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.5.0" 2>/dev/null` 13291 test "x$?" != "x0" && pkg_failed=yes 13292else 13293 pkg_failed=yes 13294fi 13295 else 13296 pkg_failed=untried 13297fi 13298 13299 13300 13301if test $pkg_failed = yes; then 13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13303$as_echo "no" >&6; } 13304 13305if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13306 _pkg_short_errors_supported=yes 13307else 13308 _pkg_short_errors_supported=no 13309fi 13310 if test $_pkg_short_errors_supported = yes; then 13311 LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.5.0" 2>&1` 13312 else 13313 LIBXML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.5.0" 2>&1` 13314 fi 13315 # Put the nasty error message in config.log where it belongs 13316 echo "$LIBXML_PKG_ERRORS" >&5 13317 13318 as_fn_error $? "Package requirements (libxml-2.0 >= 2.5.0) were not met: 13319 13320$LIBXML_PKG_ERRORS 13321 13322Consider adjusting the PKG_CONFIG_PATH environment variable if you 13323installed software in a non-standard prefix. 13324 13325Alternatively, you may set the environment variables LIBXML_CFLAGS 13326and LIBXML_LIBS to avoid the need to call pkg-config. 13327See the pkg-config man page for more details." "$LINENO" 5 13328elif test $pkg_failed = untried; then 13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13330$as_echo "no" >&6; } 13331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13332$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13333as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 13334is in your PATH or set the PKG_CONFIG environment variable to the full 13335path to pkg-config. 13336 13337Alternatively, you may set the environment variables LIBXML_CFLAGS 13338and LIBXML_LIBS to avoid the need to call pkg-config. 13339See the pkg-config man page for more details. 13340 13341To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13342See \`config.log' for more details" "$LINENO" 5; } 13343else 13344 LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS 13345 LIBXML_LIBS=$pkg_cv_LIBXML_LIBS 13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13347$as_echo "yes" >&6; } 13348 13349fi 13350 13351 13352 13353 13354# Check whether --with-default-metadata-backend was given. 13355if test "${with_default_metadata_backend+set}" = set; then : 13356 withval=$with_default_metadata_backend; 13357fi 13358 13359 13360if test "x$with_default_metadata_backend" = 'x' 13361then 13362 with_default_metadata_backend='gstreamer' 13363fi 13364 13365if test "x$with_default_metadata_backend" = 'xyes' || test "x$with_default_metadata_backend" = 'xno' 13366then 13367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Dubious default metadata backend name: $with_default_metadata_backend" >&5 13368$as_echo "$as_me: WARNING: Dubious default metadata backend name: $with_default_metadata_backend" >&2;} 13369fi 13370 13371GUPNP_DLNA_METADATA_BACKEND_CFLAGS="$GUPNP_DLNA_METADATA_BACKEND_CFLAGS -DGUPNP_DLNA_DEFAULT_METADATA_BACKEND=\\\"$with_default_metadata_backend\\\"" 13372 13373# Check whether --enable-gstreamer-metadata-backend was given. 13374if test "${enable_gstreamer_metadata_backend+set}" = set; then : 13375 enableval=$enable_gstreamer_metadata_backend; 13376else 13377 enable_gstreamer_metadata_backend=auto 13378fi 13379 13380 13381if test "x$enable_gstreamer_metadata_backend" != 'xno' 13382then 13383 gstreamer_found='yes' 13384 GST_MAJORMINOR=1.0 13385 GST_REQ=1.0 13386 GSTPBU_REQ=1.0 13387 13388 13389pkg_failed=no 13390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST" >&5 13391$as_echo_n "checking for GST... " >&6; } 13392 13393if test -n "$GST_CFLAGS"; then 13394 pkg_cv_GST_CFLAGS="$GST_CFLAGS" 13395 elif test -n "$PKG_CONFIG"; then 13396 if test -n "$PKG_CONFIG" && \ 13397 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_MAJORMINOR >= \$GST_REQ\""; } >&5 13398 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_MAJORMINOR >= $GST_REQ") 2>&5 13399 ac_status=$? 13400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13401 test $ac_status = 0; }; then 13402 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR >= $GST_REQ" 2>/dev/null` 13403 test "x$?" != "x0" && pkg_failed=yes 13404else 13405 pkg_failed=yes 13406fi 13407 else 13408 pkg_failed=untried 13409fi 13410if test -n "$GST_LIBS"; then 13411 pkg_cv_GST_LIBS="$GST_LIBS" 13412 elif test -n "$PKG_CONFIG"; then 13413 if test -n "$PKG_CONFIG" && \ 13414 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_MAJORMINOR >= \$GST_REQ\""; } >&5 13415 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_MAJORMINOR >= $GST_REQ") 2>&5 13416 ac_status=$? 13417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13418 test $ac_status = 0; }; then 13419 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR >= $GST_REQ" 2>/dev/null` 13420 test "x$?" != "x0" && pkg_failed=yes 13421else 13422 pkg_failed=yes 13423fi 13424 else 13425 pkg_failed=untried 13426fi 13427 13428 13429 13430if test $pkg_failed = yes; then 13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13432$as_echo "no" >&6; } 13433 13434if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13435 _pkg_short_errors_supported=yes 13436else 13437 _pkg_short_errors_supported=no 13438fi 13439 if test $_pkg_short_errors_supported = yes; then 13440 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gstreamer-$GST_MAJORMINOR >= $GST_REQ" 2>&1` 13441 else 13442 GST_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gstreamer-$GST_MAJORMINOR >= $GST_REQ" 2>&1` 13443 fi 13444 # Put the nasty error message in config.log where it belongs 13445 echo "$GST_PKG_ERRORS" >&5 13446 13447 gstreamer_found='no' 13448elif test $pkg_failed = untried; then 13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13450$as_echo "no" >&6; } 13451 gstreamer_found='no' 13452else 13453 GST_CFLAGS=$pkg_cv_GST_CFLAGS 13454 GST_LIBS=$pkg_cv_GST_LIBS 13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13456$as_echo "yes" >&6; } 13457 13458fi 13459 13460pkg_failed=no 13461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST_PBU" >&5 13462$as_echo_n "checking for GST_PBU... " >&6; } 13463 13464if test -n "$GST_PBU_CFLAGS"; then 13465 pkg_cv_GST_PBU_CFLAGS="$GST_PBU_CFLAGS" 13466 elif test -n "$PKG_CONFIG"; then 13467 if test -n "$PKG_CONFIG" && \ 13468 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-pbutils-\$GST_MAJORMINOR >= \$GSTPBU_REQ\""; } >&5 13469 ($PKG_CONFIG --exists --print-errors "gstreamer-pbutils-$GST_MAJORMINOR >= $GSTPBU_REQ") 2>&5 13470 ac_status=$? 13471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13472 test $ac_status = 0; }; then 13473 pkg_cv_GST_PBU_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-pbutils-$GST_MAJORMINOR >= $GSTPBU_REQ" 2>/dev/null` 13474 test "x$?" != "x0" && pkg_failed=yes 13475else 13476 pkg_failed=yes 13477fi 13478 else 13479 pkg_failed=untried 13480fi 13481if test -n "$GST_PBU_LIBS"; then 13482 pkg_cv_GST_PBU_LIBS="$GST_PBU_LIBS" 13483 elif test -n "$PKG_CONFIG"; then 13484 if test -n "$PKG_CONFIG" && \ 13485 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-pbutils-\$GST_MAJORMINOR >= \$GSTPBU_REQ\""; } >&5 13486 ($PKG_CONFIG --exists --print-errors "gstreamer-pbutils-$GST_MAJORMINOR >= $GSTPBU_REQ") 2>&5 13487 ac_status=$? 13488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13489 test $ac_status = 0; }; then 13490 pkg_cv_GST_PBU_LIBS=`$PKG_CONFIG --libs "gstreamer-pbutils-$GST_MAJORMINOR >= $GSTPBU_REQ" 2>/dev/null` 13491 test "x$?" != "x0" && pkg_failed=yes 13492else 13493 pkg_failed=yes 13494fi 13495 else 13496 pkg_failed=untried 13497fi 13498 13499 13500 13501if test $pkg_failed = yes; then 13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13503$as_echo "no" >&6; } 13504 13505if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13506 _pkg_short_errors_supported=yes 13507else 13508 _pkg_short_errors_supported=no 13509fi 13510 if test $_pkg_short_errors_supported = yes; then 13511 GST_PBU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gstreamer-pbutils-$GST_MAJORMINOR >= $GSTPBU_REQ" 2>&1` 13512 else 13513 GST_PBU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gstreamer-pbutils-$GST_MAJORMINOR >= $GSTPBU_REQ" 2>&1` 13514 fi 13515 # Put the nasty error message in config.log where it belongs 13516 echo "$GST_PBU_PKG_ERRORS" >&5 13517 13518 gstreamer_found='no' 13519elif test $pkg_failed = untried; then 13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13521$as_echo "no" >&6; } 13522 gstreamer_found='no' 13523else 13524 GST_PBU_CFLAGS=$pkg_cv_GST_PBU_CFLAGS 13525 GST_PBU_LIBS=$pkg_cv_GST_PBU_LIBS 13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13527$as_echo "yes" >&6; } 13528 13529fi 13530 13531 if test "x$gstreamer_found" = 'xyes' 13532 then 13533 13534 13535 GST_CFLAGS="$GST_CFLAGS -DGST_USE_UNSTABLE_API" 13536 13537 enable_gstreamer_metadata_backend='yes' 13538 elif test "x$enable_gstreamer_metadata_backend" = 'xyes' 13539 then 13540 as_fn_error $? "GStreamer $GST_MAJORMINOR not found." "$LINENO" 5 13541 else 13542 enable_gstreamer_metadata_backend='no' 13543 fi 13544fi 13545 13546if test "x$enable_gstreamer_metadata_backend" = 'xyes' 13547then 13548 if true; then 13549 GSTREAMER_METADATA_BACKEND_ENABLED_TRUE= 13550 GSTREAMER_METADATA_BACKEND_ENABLED_FALSE='#' 13551else 13552 GSTREAMER_METADATA_BACKEND_ENABLED_TRUE='#' 13553 GSTREAMER_METADATA_BACKEND_ENABLED_FALSE= 13554fi 13555 13556else 13557 if false; then 13558 GSTREAMER_METADATA_BACKEND_ENABLED_TRUE= 13559 GSTREAMER_METADATA_BACKEND_ENABLED_FALSE='#' 13560else 13561 GSTREAMER_METADATA_BACKEND_ENABLED_TRUE='#' 13562 GSTREAMER_METADATA_BACKEND_ENABLED_FALSE= 13563fi 13564 13565fi 13566 13567# Check whether --enable-legacy-gstreamer-metadata-backend was given. 13568if test "${enable_legacy_gstreamer_metadata_backend+set}" = set; then : 13569 enableval=$enable_legacy_gstreamer_metadata_backend; 13570else 13571 enable_legacy_gstreamer_metadata_backend=no 13572fi 13573 13574 13575if test "x$enable_legacy_gstreamer_metadata_backend" != 'xno' 13576then 13577 gstreamer_found='yes' 13578 GST_LEGACY_MAJORMINOR=0.10 13579 GST_LEGACY_REQ=0.10.36 13580 GSTPBU_LEGACY_REQ=0.10.36 13581 13582 13583pkg_failed=no 13584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST_LEGACY" >&5 13585$as_echo_n "checking for GST_LEGACY... " >&6; } 13586 13587if test -n "$GST_LEGACY_CFLAGS"; then 13588 pkg_cv_GST_LEGACY_CFLAGS="$GST_LEGACY_CFLAGS" 13589 elif test -n "$PKG_CONFIG"; then 13590 if test -n "$PKG_CONFIG" && \ 13591 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_LEGACY_MAJORMINOR >= \$GST_LEGACY_REQ\""; } >&5 13592 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_LEGACY_MAJORMINOR >= $GST_LEGACY_REQ") 2>&5 13593 ac_status=$? 13594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13595 test $ac_status = 0; }; then 13596 pkg_cv_GST_LEGACY_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_LEGACY_MAJORMINOR >= $GST_LEGACY_REQ" 2>/dev/null` 13597 test "x$?" != "x0" && pkg_failed=yes 13598else 13599 pkg_failed=yes 13600fi 13601 else 13602 pkg_failed=untried 13603fi 13604if test -n "$GST_LEGACY_LIBS"; then 13605 pkg_cv_GST_LEGACY_LIBS="$GST_LEGACY_LIBS" 13606 elif test -n "$PKG_CONFIG"; then 13607 if test -n "$PKG_CONFIG" && \ 13608 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_LEGACY_MAJORMINOR >= \$GST_LEGACY_REQ\""; } >&5 13609 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_LEGACY_MAJORMINOR >= $GST_LEGACY_REQ") 2>&5 13610 ac_status=$? 13611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13612 test $ac_status = 0; }; then 13613 pkg_cv_GST_LEGACY_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_LEGACY_MAJORMINOR >= $GST_LEGACY_REQ" 2>/dev/null` 13614 test "x$?" != "x0" && pkg_failed=yes 13615else 13616 pkg_failed=yes 13617fi 13618 else 13619 pkg_failed=untried 13620fi 13621 13622 13623 13624if test $pkg_failed = yes; then 13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13626$as_echo "no" >&6; } 13627 13628if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13629 _pkg_short_errors_supported=yes 13630else 13631 _pkg_short_errors_supported=no 13632fi 13633 if test $_pkg_short_errors_supported = yes; then 13634 GST_LEGACY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gstreamer-$GST_LEGACY_MAJORMINOR >= $GST_LEGACY_REQ" 2>&1` 13635 else 13636 GST_LEGACY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gstreamer-$GST_LEGACY_MAJORMINOR >= $GST_LEGACY_REQ" 2>&1` 13637 fi 13638 # Put the nasty error message in config.log where it belongs 13639 echo "$GST_LEGACY_PKG_ERRORS" >&5 13640 13641 gstreamer_found='no' 13642elif test $pkg_failed = untried; then 13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13644$as_echo "no" >&6; } 13645 gstreamer_found='no' 13646else 13647 GST_LEGACY_CFLAGS=$pkg_cv_GST_LEGACY_CFLAGS 13648 GST_LEGACY_LIBS=$pkg_cv_GST_LEGACY_LIBS 13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13650$as_echo "yes" >&6; } 13651 13652fi 13653 13654pkg_failed=no 13655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST_PBU_LEGACY" >&5 13656$as_echo_n "checking for GST_PBU_LEGACY... " >&6; } 13657 13658if test -n "$GST_PBU_LEGACY_CFLAGS"; then 13659 pkg_cv_GST_PBU_LEGACY_CFLAGS="$GST_PBU_LEGACY_CFLAGS" 13660 elif test -n "$PKG_CONFIG"; then 13661 if test -n "$PKG_CONFIG" && \ 13662 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-pbutils-\$GST_LEGACY_MAJORMINOR >= \$GSTPBU_LEGACY_REQ\""; } >&5 13663 ($PKG_CONFIG --exists --print-errors "gstreamer-pbutils-$GST_LEGACY_MAJORMINOR >= $GSTPBU_LEGACY_REQ") 2>&5 13664 ac_status=$? 13665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13666 test $ac_status = 0; }; then 13667 pkg_cv_GST_PBU_LEGACY_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-pbutils-$GST_LEGACY_MAJORMINOR >= $GSTPBU_LEGACY_REQ" 2>/dev/null` 13668 test "x$?" != "x0" && pkg_failed=yes 13669else 13670 pkg_failed=yes 13671fi 13672 else 13673 pkg_failed=untried 13674fi 13675if test -n "$GST_PBU_LEGACY_LIBS"; then 13676 pkg_cv_GST_PBU_LEGACY_LIBS="$GST_PBU_LEGACY_LIBS" 13677 elif test -n "$PKG_CONFIG"; then 13678 if test -n "$PKG_CONFIG" && \ 13679 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-pbutils-\$GST_LEGACY_MAJORMINOR >= \$GSTPBU_LEGACY_REQ\""; } >&5 13680 ($PKG_CONFIG --exists --print-errors "gstreamer-pbutils-$GST_LEGACY_MAJORMINOR >= $GSTPBU_LEGACY_REQ") 2>&5 13681 ac_status=$? 13682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13683 test $ac_status = 0; }; then 13684 pkg_cv_GST_PBU_LEGACY_LIBS=`$PKG_CONFIG --libs "gstreamer-pbutils-$GST_LEGACY_MAJORMINOR >= $GSTPBU_LEGACY_REQ" 2>/dev/null` 13685 test "x$?" != "x0" && pkg_failed=yes 13686else 13687 pkg_failed=yes 13688fi 13689 else 13690 pkg_failed=untried 13691fi 13692 13693 13694 13695if test $pkg_failed = yes; then 13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13697$as_echo "no" >&6; } 13698 13699if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13700 _pkg_short_errors_supported=yes 13701else 13702 _pkg_short_errors_supported=no 13703fi 13704 if test $_pkg_short_errors_supported = yes; then 13705 GST_PBU_LEGACY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gstreamer-pbutils-$GST_LEGACY_MAJORMINOR >= $GSTPBU_LEGACY_REQ" 2>&1` 13706 else 13707 GST_PBU_LEGACY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gstreamer-pbutils-$GST_LEGACY_MAJORMINOR >= $GSTPBU_LEGACY_REQ" 2>&1` 13708 fi 13709 # Put the nasty error message in config.log where it belongs 13710 echo "$GST_PBU_LEGACY_PKG_ERRORS" >&5 13711 13712 gstreamer_found='no' 13713elif test $pkg_failed = untried; then 13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13715$as_echo "no" >&6; } 13716 gstreamer_found='no' 13717else 13718 GST_PBU_LEGACY_CFLAGS=$pkg_cv_GST_PBU_LEGACY_CFLAGS 13719 GST_PBU_LEGACY_LIBS=$pkg_cv_GST_PBU_LEGACY_LIBS 13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13721$as_echo "yes" >&6; } 13722 13723fi 13724 13725 if test "x$gstreamer_found" = 'xyes' 13726 then 13727 13728 enable_legacy_gstreamer_metadata_backend='yes' 13729 elif test "x$enable_legacy_gstreamer_metadata_backend" = 'xyes' 13730 then 13731 as_fn_error $? "GStreamer $GST_LEGACY_MAJORMINOR not found." "$LINENO" 5 13732 else 13733 enable_legacy_gstreamer_metadata_backend='no' 13734 fi 13735fi 13736 13737if test "x$enable_legacy_gstreamer_metadata_backend" = 'xyes' 13738then 13739 if true; then 13740 GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_TRUE= 13741 GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_FALSE='#' 13742else 13743 GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_TRUE='#' 13744 GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_FALSE= 13745fi 13746 13747else 13748 if false; then 13749 GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_TRUE= 13750 GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_FALSE='#' 13751else 13752 GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_TRUE='#' 13753 GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_FALSE= 13754fi 13755 13756fi 13757 13758 13759# Check whether --with-default-metadata-backend-dir was given. 13760if test "${with_default_metadata_backend_dir+set}" = set; then : 13761 withval=$with_default_metadata_backend_dir; 13762fi 13763 13764 13765if test "x$with_default_metadata_backend_dir" = 'x' 13766then 13767 with_default_metadata_backend_dir="$libdir/$PACKAGE_NAME" 13768fi 13769 13770if test "x$with_default_metadata_backend_dir" = 'xyes' || test "x$with_default_metadata_backend_dir" = 'xno' 13771then 13772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Dubious default metadata backend directory: $with_default_metadata_backend_dir" >&5 13773$as_echo "$as_me: WARNING: Dubious default metadata backend directory: $with_default_metadata_backend_dir" >&2;} 13774fi 13775 13776METADATA_DIRECTORY=$with_default_metadata_backend_dir 13777 13778 13779GUPNP_DLNA_METADATA_BACKEND_CFLAGS="$GUPNP_DLNA_METADATA_BACKEND_CFLAGS -DGUPNP_DLNA_DEFAULT_METADATA_BACKEND_DIR=\\\"$with_default_metadata_backend_dir\\\"" 13780 13781 13782 13783 13784pkg_failed=no 13785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5 13786$as_echo_n "checking for GLIB... " >&6; } 13787 13788if test -n "$GLIB_CFLAGS"; then 13789 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS" 13790 elif test -n "$PKG_CONFIG"; then 13791 if test -n "$PKG_CONFIG" && \ 13792 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.32\""; } >&5 13793 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.32") 2>&5 13794 ac_status=$? 13795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13796 test $ac_status = 0; }; then 13797 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.32" 2>/dev/null` 13798 test "x$?" != "x0" && pkg_failed=yes 13799else 13800 pkg_failed=yes 13801fi 13802 else 13803 pkg_failed=untried 13804fi 13805if test -n "$GLIB_LIBS"; then 13806 pkg_cv_GLIB_LIBS="$GLIB_LIBS" 13807 elif test -n "$PKG_CONFIG"; then 13808 if test -n "$PKG_CONFIG" && \ 13809 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.32\""; } >&5 13810 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.32") 2>&5 13811 ac_status=$? 13812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13813 test $ac_status = 0; }; then 13814 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.32" 2>/dev/null` 13815 test "x$?" != "x0" && pkg_failed=yes 13816else 13817 pkg_failed=yes 13818fi 13819 else 13820 pkg_failed=untried 13821fi 13822 13823 13824 13825if test $pkg_failed = yes; then 13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13827$as_echo "no" >&6; } 13828 13829if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13830 _pkg_short_errors_supported=yes 13831else 13832 _pkg_short_errors_supported=no 13833fi 13834 if test $_pkg_short_errors_supported = yes; then 13835 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.32" 2>&1` 13836 else 13837 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.32" 2>&1` 13838 fi 13839 # Put the nasty error message in config.log where it belongs 13840 echo "$GLIB_PKG_ERRORS" >&5 13841 13842 as_fn_error $? "Package requirements (glib-2.0 >= 2.32) were not met: 13843 13844$GLIB_PKG_ERRORS 13845 13846Consider adjusting the PKG_CONFIG_PATH environment variable if you 13847installed software in a non-standard prefix. 13848 13849Alternatively, you may set the environment variables GLIB_CFLAGS 13850and GLIB_LIBS to avoid the need to call pkg-config. 13851See the pkg-config man page for more details." "$LINENO" 5 13852elif test $pkg_failed = untried; then 13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13854$as_echo "no" >&6; } 13855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13856$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13857as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 13858is in your PATH or set the PKG_CONFIG environment variable to the full 13859path to pkg-config. 13860 13861Alternatively, you may set the environment variables GLIB_CFLAGS 13862and GLIB_LIBS to avoid the need to call pkg-config. 13863See the pkg-config man page for more details. 13864 13865To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13866See \`config.log' for more details" "$LINENO" 5; } 13867else 13868 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS 13869 GLIB_LIBS=$pkg_cv_GLIB_LIBS 13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13871$as_echo "yes" >&6; } 13872 13873fi 13874 13875pkg_failed=no 13876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5 13877$as_echo_n "checking for GOBJECT... " >&6; } 13878 13879if test -n "$GOBJECT_CFLAGS"; then 13880 pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS" 13881 elif test -n "$PKG_CONFIG"; then 13882 if test -n "$PKG_CONFIG" && \ 13883 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0\""; } >&5 13884 ($PKG_CONFIG --exists --print-errors "gobject-2.0") 2>&5 13885 ac_status=$? 13886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13887 test $ac_status = 0; }; then 13888 pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0" 2>/dev/null` 13889 test "x$?" != "x0" && pkg_failed=yes 13890else 13891 pkg_failed=yes 13892fi 13893 else 13894 pkg_failed=untried 13895fi 13896if test -n "$GOBJECT_LIBS"; then 13897 pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS" 13898 elif test -n "$PKG_CONFIG"; then 13899 if test -n "$PKG_CONFIG" && \ 13900 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0\""; } >&5 13901 ($PKG_CONFIG --exists --print-errors "gobject-2.0") 2>&5 13902 ac_status=$? 13903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13904 test $ac_status = 0; }; then 13905 pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0" 2>/dev/null` 13906 test "x$?" != "x0" && pkg_failed=yes 13907else 13908 pkg_failed=yes 13909fi 13910 else 13911 pkg_failed=untried 13912fi 13913 13914 13915 13916if test $pkg_failed = yes; then 13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13918$as_echo "no" >&6; } 13919 13920if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13921 _pkg_short_errors_supported=yes 13922else 13923 _pkg_short_errors_supported=no 13924fi 13925 if test $_pkg_short_errors_supported = yes; then 13926 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gobject-2.0" 2>&1` 13927 else 13928 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gobject-2.0" 2>&1` 13929 fi 13930 # Put the nasty error message in config.log where it belongs 13931 echo "$GOBJECT_PKG_ERRORS" >&5 13932 13933 as_fn_error $? "Package requirements (gobject-2.0) were not met: 13934 13935$GOBJECT_PKG_ERRORS 13936 13937Consider adjusting the PKG_CONFIG_PATH environment variable if you 13938installed software in a non-standard prefix. 13939 13940Alternatively, you may set the environment variables GOBJECT_CFLAGS 13941and GOBJECT_LIBS to avoid the need to call pkg-config. 13942See the pkg-config man page for more details." "$LINENO" 5 13943elif test $pkg_failed = untried; then 13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13945$as_echo "no" >&6; } 13946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13947$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13948as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 13949is in your PATH or set the PKG_CONFIG environment variable to the full 13950path to pkg-config. 13951 13952Alternatively, you may set the environment variables GOBJECT_CFLAGS 13953and GOBJECT_LIBS to avoid the need to call pkg-config. 13954See the pkg-config man page for more details. 13955 13956To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13957See \`config.log' for more details" "$LINENO" 5; } 13958else 13959 GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS 13960 GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS 13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13962$as_echo "yes" >&6; } 13963 13964fi 13965 13966pkg_failed=no 13967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMODULE" >&5 13968$as_echo_n "checking for GMODULE... " >&6; } 13969 13970if test -n "$GMODULE_CFLAGS"; then 13971 pkg_cv_GMODULE_CFLAGS="$GMODULE_CFLAGS" 13972 elif test -n "$PKG_CONFIG"; then 13973 if test -n "$PKG_CONFIG" && \ 13974 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\""; } >&5 13975 ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5 13976 ac_status=$? 13977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13978 test $ac_status = 0; }; then 13979 pkg_cv_GMODULE_CFLAGS=`$PKG_CONFIG --cflags "gmodule-2.0" 2>/dev/null` 13980 test "x$?" != "x0" && pkg_failed=yes 13981else 13982 pkg_failed=yes 13983fi 13984 else 13985 pkg_failed=untried 13986fi 13987if test -n "$GMODULE_LIBS"; then 13988 pkg_cv_GMODULE_LIBS="$GMODULE_LIBS" 13989 elif test -n "$PKG_CONFIG"; then 13990 if test -n "$PKG_CONFIG" && \ 13991 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\""; } >&5 13992 ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5 13993 ac_status=$? 13994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13995 test $ac_status = 0; }; then 13996 pkg_cv_GMODULE_LIBS=`$PKG_CONFIG --libs "gmodule-2.0" 2>/dev/null` 13997 test "x$?" != "x0" && pkg_failed=yes 13998else 13999 pkg_failed=yes 14000fi 14001 else 14002 pkg_failed=untried 14003fi 14004 14005 14006 14007if test $pkg_failed = yes; then 14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14009$as_echo "no" >&6; } 14010 14011if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14012 _pkg_short_errors_supported=yes 14013else 14014 _pkg_short_errors_supported=no 14015fi 14016 if test $_pkg_short_errors_supported = yes; then 14017 GMODULE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gmodule-2.0" 2>&1` 14018 else 14019 GMODULE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gmodule-2.0" 2>&1` 14020 fi 14021 # Put the nasty error message in config.log where it belongs 14022 echo "$GMODULE_PKG_ERRORS" >&5 14023 14024 as_fn_error $? "Package requirements (gmodule-2.0) were not met: 14025 14026$GMODULE_PKG_ERRORS 14027 14028Consider adjusting the PKG_CONFIG_PATH environment variable if you 14029installed software in a non-standard prefix. 14030 14031Alternatively, you may set the environment variables GMODULE_CFLAGS 14032and GMODULE_LIBS to avoid the need to call pkg-config. 14033See the pkg-config man page for more details." "$LINENO" 5 14034elif test $pkg_failed = untried; then 14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14036$as_echo "no" >&6; } 14037 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14038$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14039as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 14040is in your PATH or set the PKG_CONFIG environment variable to the full 14041path to pkg-config. 14042 14043Alternatively, you may set the environment variables GMODULE_CFLAGS 14044and GMODULE_LIBS to avoid the need to call pkg-config. 14045See the pkg-config man page for more details. 14046 14047To get pkg-config, see <http://pkg-config.freedesktop.org/>. 14048See \`config.log' for more details" "$LINENO" 5; } 14049else 14050 GMODULE_CFLAGS=$pkg_cv_GMODULE_CFLAGS 14051 GMODULE_LIBS=$pkg_cv_GMODULE_LIBS 14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14053$as_echo "yes" >&6; } 14054 14055fi 14056 14057# Check for g_clear_pointer 14058have_g_clear_pointer='no' 14059if test -n "$PKG_CONFIG" && \ 14060 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.34\""; } >&5 14061 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.34") 2>&5 14062 ac_status=$? 14063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14064 test $ac_status = 0; }; then 14065 have_g_clear_pointer='yes' 14066fi 14067if test "x$have_g_clear_pointer" = xno; then : 14068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g_clear_pointer" >&5 14069$as_echo_n "checking for g_clear_pointer... " >&6; } 14070 GUPNP_DLNA_TEMP_CFLAGS="$CFLAGS" 14071 CFLAGS="$CFLAGS $GLIB_CFLAGS" 14072 GUPNP_DLNA_TEMP_LIBS="$LIBS" 14073 LIBS="$LIBS $GLIB_LIBS" 14074 ac_ext=c 14075ac_cpp='$CPP $CPPFLAGS' 14076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14078ac_compiler_gnu=$ac_cv_c_compiler_gnu 14079 14080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14081/* end confdefs.h. */ 14082 14083 #include <glib.h> 14084 14085int 14086main () 14087{ 14088 14089 gchar *test = g_malloc (2); 14090 g_clear_pointer (&test, g_free); 14091 return (test == NULL) 14092 14093 ; 14094 return 0; 14095} 14096_ACEOF 14097if ac_fn_c_try_link "$LINENO"; then : 14098 have_g_clear_pointer='yes' 14099fi 14100rm -f core conftest.err conftest.$ac_objext \ 14101 conftest$ac_exeext conftest.$ac_ext 14102 LIBS="$GUPNP_DLNA_TEMP_LIBS" 14103 CFLAGS="$GUPNP_DLNA_TEMP_CFLAGS" 14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_g_clear_pointer" >&5 14105$as_echo "$have_g_clear_pointer" >&6; } 14106fi 14107 14108if test "x$have_g_clear_pointer" = xno; then : 14109 14110$as_echo "#define g_clear_pointer(ptr, func) \\ 14111 G_STMT_START { \\ 14112 if (ptr != NULL && func != NULL) { \\ 14113 gpointer g_clear_pointer_tmp_var = *ptr; \\ 14114 *ptr = NULL; \\ 14115 func (g_clear_pointer_tmp_var); \\ 14116 } \\ 14117 } G_STMT_END" >>confdefs.h 14118 14119fi 14120 14121# Debugging 14122# Check whether --enable-debug was given. 14123if test "${enable_debug+set}" = set; then : 14124 enableval=$enable_debug; 14125else 14126 enable_debug=no 14127fi 14128 14129if test "x$enable_debug" = "xyes"; then 14130 CFLAGS="$CFLAGS -g -Wall" 14131fi 14132 14133 14134 14135 14136 # Check whether --enable-introspection was given. 14137if test "${enable_introspection+set}" = set; then : 14138 enableval=$enable_introspection; 14139else 14140 enable_introspection=auto 14141fi 14142 14143 14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5 14145$as_echo_n "checking for gobject-introspection... " >&6; } 14146 14147 case $enable_introspection in #( 14148 no) : 14149 found_introspection="no (disabled, use --enable-introspection to enable)" 14150 ;; #( 14151 yes) : 14152 if test -n "$PKG_CONFIG" && \ 14153 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5 14154 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5 14155 ac_status=$? 14156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14157 test $ac_status = 0; }; then 14158 : 14159else 14160 as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5 14161fi 14162 if test -n "$PKG_CONFIG" && \ 14163 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.4\""; } >&5 14164 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.4") 2>&5 14165 ac_status=$? 14166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14167 test $ac_status = 0; }; then 14168 found_introspection=yes 14169else 14170 as_fn_error $? "You need to have gobject-introspection >= 0.6.4 installed to build gupnp-dlna" "$LINENO" 5 14171fi 14172 ;; #( 14173 auto) : 14174 if test -n "$PKG_CONFIG" && \ 14175 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.4\""; } >&5 14176 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.4") 2>&5 14177 ac_status=$? 14178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14179 test $ac_status = 0; }; then 14180 found_introspection=yes 14181else 14182 found_introspection=no 14183fi 14184 ;; #( 14185 *) : 14186 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5 14187 ;; 14188esac 14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5 14190$as_echo "$found_introspection" >&6; } 14191 14192 INTROSPECTION_SCANNER= 14193 INTROSPECTION_COMPILER= 14194 INTROSPECTION_GENERATE= 14195 INTROSPECTION_GIRDIR= 14196 INTROSPECTION_TYPELIBDIR= 14197 if test "x$found_introspection" = "xyes"; then 14198 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0` 14199 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0` 14200 INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0` 14201 INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0` 14202 INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)" 14203 INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0` 14204 INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0` 14205 INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection 14206 fi 14207 14208 14209 14210 14211 14212 14213 14214 14215 14216 if test "x$found_introspection" = "xyes"; then 14217 HAVE_INTROSPECTION_TRUE= 14218 HAVE_INTROSPECTION_FALSE='#' 14219else 14220 HAVE_INTROSPECTION_TRUE='#' 14221 HAVE_INTROSPECTION_FALSE= 14222fi 14223 14224 14225 14226 14227# vapigen 14228have_vapigen=no 14229if test "x$found_introspection" = "xyes"; then : 14230 14231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether G-I is 1.36 or newer" >&5 14232$as_echo_n "checking whether G-I is 1.36 or newer... " >&6; } 14233 VAPIGEN_MIN_VERSION=0.18 14234 if pkg-config --atleast-version=1.36.0 gobject-introspection-1.0; then : 14235 14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14237$as_echo "yes" >&6; } 14238 VAPIGEN_MIN_VERSION=0.20 14239 14240else 14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14242$as_echo "no" >&6; } 14243 14244fi 14245 # Extract the first word of "vapigen", so it can be a program name with args. 14246set dummy vapigen; ac_word=$2 14247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14248$as_echo_n "checking for $ac_word... " >&6; } 14249if ${ac_cv_path_VAPIGEN+:} false; then : 14250 $as_echo_n "(cached) " >&6 14251else 14252 case $VAPIGEN in 14253 [\\/]* | ?:[\\/]*) 14254 ac_cv_path_VAPIGEN="$VAPIGEN" # Let the user override the test with a path. 14255 ;; 14256 *) 14257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14258for as_dir in $PATH 14259do 14260 IFS=$as_save_IFS 14261 test -z "$as_dir" && as_dir=. 14262 for ac_exec_ext in '' $ac_executable_extensions; do 14263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14264 ac_cv_path_VAPIGEN="$as_dir/$ac_word$ac_exec_ext" 14265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14266 break 2 14267 fi 14268done 14269 done 14270IFS=$as_save_IFS 14271 14272 ;; 14273esac 14274fi 14275VAPIGEN=$ac_cv_path_VAPIGEN 14276if test -n "$VAPIGEN"; then 14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VAPIGEN" >&5 14278$as_echo "$VAPIGEN" >&6; } 14279else 14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14281$as_echo "no" >&6; } 14282fi 14283 14284 14285 if test -z "$VAPIGEN"; then : 14286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No Vala API Generator found. You will not be able to generate .vapi files." >&5 14287$as_echo "$as_me: WARNING: No Vala API Generator found. You will not be able to generate .vapi files." >&2;} 14288else 14289 if test -n "$VAPIGEN_MIN_VERSION"; then : 14290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $VAPIGEN is at least version $VAPIGEN_MIN_VERSION" >&5 14291$as_echo_n "checking $VAPIGEN is at least version $VAPIGEN_MIN_VERSION... " >&6; } 14292 am__vapigen_version=`$VAPIGEN --version | sed 's/Vala API Generator *//'` 14293 as_arg_v1=$VAPIGEN_MIN_VERSION 14294as_arg_v2="$am__vapigen_version" 14295awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 14296case $? in #( 14297 1) : 14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14299$as_echo "yes" >&6; } ;; #( 14300 0) : 14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14302$as_echo "yes" >&6; } ;; #( 14303 2) : 14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14305$as_echo "no" >&6; } 14306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vala API Generator $VAPIGEN_MIN_VERSION not found." >&5 14307$as_echo "$as_me: WARNING: Vala API Generator $VAPIGEN_MIN_VERSION not found." >&2;} 14308 VAPIGEN="" 14309 ;; #( 14310 *) : 14311 ;; 14312esac 14313fi 14314fi 14315 14316 14317 14318fi 14319if test "x$VAPIGEN" != "x"; then : 14320 have_vapigen=yes 14321fi 14322 if test "x$VAPIGEN" != "x"; then 14323 HAVE_VAPIGEN_TRUE= 14324 HAVE_VAPIGEN_FALSE='#' 14325else 14326 HAVE_VAPIGEN_TRUE='#' 14327 HAVE_VAPIGEN_FALSE= 14328fi 14329 14330 14331 14332 14333 14334 gtk_doc_requires="gtk-doc >= 1.11" 14335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5 14336$as_echo_n "checking for gtk-doc... " >&6; } 14337 if test -n "$PKG_CONFIG" && \ 14338 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5 14339 ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5 14340 ac_status=$? 14341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14342 test $ac_status = 0; }; then 14343 have_gtk_doc=yes 14344else 14345 have_gtk_doc=no 14346fi 14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5 14348$as_echo "$have_gtk_doc" >&6; } 14349 14350 if test "$have_gtk_doc" = "no"; then 14351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 14352 You will not be able to create source packages with 'make dist' 14353 because $gtk_doc_requires is not found." >&5 14354$as_echo "$as_me: WARNING: 14355 You will not be able to create source packages with 'make dist' 14356 because $gtk_doc_requires is not found." >&2;} 14357 fi 14358 14359 # Extract the first word of "gtkdoc-check", so it can be a program name with args. 14360set dummy gtkdoc-check; ac_word=$2 14361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14362$as_echo_n "checking for $ac_word... " >&6; } 14363if ${ac_cv_prog_GTKDOC_CHECK+:} false; then : 14364 $as_echo_n "(cached) " >&6 14365else 14366 if test -n "$GTKDOC_CHECK"; then 14367 ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test. 14368else 14369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14370for as_dir in $PATH 14371do 14372 IFS=$as_save_IFS 14373 test -z "$as_dir" && as_dir=. 14374 for ac_exec_ext in '' $ac_executable_extensions; do 14375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14376 ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test" 14377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14378 break 2 14379 fi 14380done 14381 done 14382IFS=$as_save_IFS 14383 14384fi 14385fi 14386GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK 14387if test -n "$GTKDOC_CHECK"; then 14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5 14389$as_echo "$GTKDOC_CHECK" >&6; } 14390else 14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14392$as_echo "no" >&6; } 14393fi 14394 14395 14396 # Extract the first word of "gtkdoc-check", so it can be a program name with args. 14397set dummy gtkdoc-check; ac_word=$2 14398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14399$as_echo_n "checking for $ac_word... " >&6; } 14400if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then : 14401 $as_echo_n "(cached) " >&6 14402else 14403 case $GTKDOC_CHECK_PATH in 14404 [\\/]* | ?:[\\/]*) 14405 ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path. 14406 ;; 14407 *) 14408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14409for as_dir in $PATH 14410do 14411 IFS=$as_save_IFS 14412 test -z "$as_dir" && as_dir=. 14413 for ac_exec_ext in '' $ac_executable_extensions; do 14414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14415 ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext" 14416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14417 break 2 14418 fi 14419done 14420 done 14421IFS=$as_save_IFS 14422 14423 ;; 14424esac 14425fi 14426GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH 14427if test -n "$GTKDOC_CHECK_PATH"; then 14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5 14429$as_echo "$GTKDOC_CHECK_PATH" >&6; } 14430else 14431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14432$as_echo "no" >&6; } 14433fi 14434 14435 14436 for ac_prog in gtkdoc-rebase 14437do 14438 # Extract the first word of "$ac_prog", so it can be a program name with args. 14439set dummy $ac_prog; ac_word=$2 14440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14441$as_echo_n "checking for $ac_word... " >&6; } 14442if ${ac_cv_path_GTKDOC_REBASE+:} false; then : 14443 $as_echo_n "(cached) " >&6 14444else 14445 case $GTKDOC_REBASE in 14446 [\\/]* | ?:[\\/]*) 14447 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path. 14448 ;; 14449 *) 14450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14451for as_dir in $PATH 14452do 14453 IFS=$as_save_IFS 14454 test -z "$as_dir" && as_dir=. 14455 for ac_exec_ext in '' $ac_executable_extensions; do 14456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14457 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext" 14458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14459 break 2 14460 fi 14461done 14462 done 14463IFS=$as_save_IFS 14464 14465 ;; 14466esac 14467fi 14468GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE 14469if test -n "$GTKDOC_REBASE"; then 14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5 14471$as_echo "$GTKDOC_REBASE" >&6; } 14472else 14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14474$as_echo "no" >&6; } 14475fi 14476 14477 14478 test -n "$GTKDOC_REBASE" && break 14479done 14480test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true" 14481 14482 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args. 14483set dummy gtkdoc-mkpdf; ac_word=$2 14484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14485$as_echo_n "checking for $ac_word... " >&6; } 14486if ${ac_cv_path_GTKDOC_MKPDF+:} false; then : 14487 $as_echo_n "(cached) " >&6 14488else 14489 case $GTKDOC_MKPDF in 14490 [\\/]* | ?:[\\/]*) 14491 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path. 14492 ;; 14493 *) 14494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14495for as_dir in $PATH 14496do 14497 IFS=$as_save_IFS 14498 test -z "$as_dir" && as_dir=. 14499 for ac_exec_ext in '' $ac_executable_extensions; do 14500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14501 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext" 14502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14503 break 2 14504 fi 14505done 14506 done 14507IFS=$as_save_IFS 14508 14509 ;; 14510esac 14511fi 14512GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF 14513if test -n "$GTKDOC_MKPDF"; then 14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5 14515$as_echo "$GTKDOC_MKPDF" >&6; } 14516else 14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14518$as_echo "no" >&6; } 14519fi 14520 14521 14522 14523 14524# Check whether --with-html-dir was given. 14525if test "${with_html_dir+set}" = set; then : 14526 withval=$with_html_dir; 14527else 14528 with_html_dir='${datadir}/gtk-doc/html' 14529fi 14530 14531 HTML_DIR="$with_html_dir" 14532 14533 14534 # Check whether --enable-gtk-doc was given. 14535if test "${enable_gtk_doc+set}" = set; then : 14536 enableval=$enable_gtk_doc; 14537else 14538 enable_gtk_doc=no 14539fi 14540 14541 14542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5 14543$as_echo_n "checking whether to build gtk-doc documentation... " >&6; } 14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5 14545$as_echo "$enable_gtk_doc" >&6; } 14546 14547 if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then 14548 as_fn_error $? " 14549 You must have $gtk_doc_requires installed to build documentation for 14550 $PACKAGE_NAME. Please install gtk-doc or disable building the 14551 documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5 14552 fi 14553 14554 if test "x$PACKAGE_NAME" != "xglib"; then 14555 14556pkg_failed=no 14557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5 14558$as_echo_n "checking for GTKDOC_DEPS... " >&6; } 14559 14560if test -n "$GTKDOC_DEPS_CFLAGS"; then 14561 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS" 14562 elif test -n "$PKG_CONFIG"; then 14563 if test -n "$PKG_CONFIG" && \ 14564 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5 14565 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5 14566 ac_status=$? 14567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14568 test $ac_status = 0; }; then 14569 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null` 14570 test "x$?" != "x0" && pkg_failed=yes 14571else 14572 pkg_failed=yes 14573fi 14574 else 14575 pkg_failed=untried 14576fi 14577if test -n "$GTKDOC_DEPS_LIBS"; then 14578 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS" 14579 elif test -n "$PKG_CONFIG"; then 14580 if test -n "$PKG_CONFIG" && \ 14581 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5 14582 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5 14583 ac_status=$? 14584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14585 test $ac_status = 0; }; then 14586 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null` 14587 test "x$?" != "x0" && pkg_failed=yes 14588else 14589 pkg_failed=yes 14590fi 14591 else 14592 pkg_failed=untried 14593fi 14594 14595 14596 14597if test $pkg_failed = yes; then 14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14599$as_echo "no" >&6; } 14600 14601if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14602 _pkg_short_errors_supported=yes 14603else 14604 _pkg_short_errors_supported=no 14605fi 14606 if test $_pkg_short_errors_supported = yes; then 14607 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1` 14608 else 14609 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1` 14610 fi 14611 # Put the nasty error message in config.log where it belongs 14612 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5 14613 14614 : 14615elif test $pkg_failed = untried; then 14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14617$as_echo "no" >&6; } 14618 : 14619else 14620 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS 14621 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS 14622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14623$as_echo "yes" >&6; } 14624 14625fi 14626 fi 14627 14628 # Check whether --enable-gtk-doc-html was given. 14629if test "${enable_gtk_doc_html+set}" = set; then : 14630 enableval=$enable_gtk_doc_html; 14631else 14632 enable_gtk_doc_html=yes 14633fi 14634 14635 # Check whether --enable-gtk-doc-pdf was given. 14636if test "${enable_gtk_doc_pdf+set}" = set; then : 14637 enableval=$enable_gtk_doc_pdf; 14638else 14639 enable_gtk_doc_pdf=no 14640fi 14641 14642 14643 if test -z "$GTKDOC_MKPDF"; then 14644 enable_gtk_doc_pdf=no 14645 fi 14646 14647 if test -z "$AM_DEFAULT_VERBOSITY"; then 14648 AM_DEFAULT_VERBOSITY=1 14649 fi 14650 14651 14652 if test x$have_gtk_doc = xyes; then 14653 HAVE_GTK_DOC_TRUE= 14654 HAVE_GTK_DOC_FALSE='#' 14655else 14656 HAVE_GTK_DOC_TRUE='#' 14657 HAVE_GTK_DOC_FALSE= 14658fi 14659 14660 if test x$enable_gtk_doc = xyes; then 14661 ENABLE_GTK_DOC_TRUE= 14662 ENABLE_GTK_DOC_FALSE='#' 14663else 14664 ENABLE_GTK_DOC_TRUE='#' 14665 ENABLE_GTK_DOC_FALSE= 14666fi 14667 14668 if test x$enable_gtk_doc_html = xyes; then 14669 GTK_DOC_BUILD_HTML_TRUE= 14670 GTK_DOC_BUILD_HTML_FALSE='#' 14671else 14672 GTK_DOC_BUILD_HTML_TRUE='#' 14673 GTK_DOC_BUILD_HTML_FALSE= 14674fi 14675 14676 if test x$enable_gtk_doc_pdf = xyes; then 14677 GTK_DOC_BUILD_PDF_TRUE= 14678 GTK_DOC_BUILD_PDF_FALSE='#' 14679else 14680 GTK_DOC_BUILD_PDF_TRUE='#' 14681 GTK_DOC_BUILD_PDF_FALSE= 14682fi 14683 14684 if test -n "$LIBTOOL"; then 14685 GTK_DOC_USE_LIBTOOL_TRUE= 14686 GTK_DOC_USE_LIBTOOL_FALSE='#' 14687else 14688 GTK_DOC_USE_LIBTOOL_TRUE='#' 14689 GTK_DOC_USE_LIBTOOL_FALSE= 14690fi 14691 14692 if test -n "$GTKDOC_REBASE"; then 14693 GTK_DOC_USE_REBASE_TRUE= 14694 GTK_DOC_USE_REBASE_FALSE='#' 14695else 14696 GTK_DOC_USE_REBASE_TRUE='#' 14697 GTK_DOC_USE_REBASE_FALSE= 14698fi 14699 14700 14701# for fixxref 14702GLIB_PREFIX="`$PKG_CONFIG --variable=prefix glib-2.0`" 14703 14704 14705# Extract the first word of "xmllint", so it can be a program name with args. 14706set dummy xmllint; ac_word=$2 14707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14708$as_echo_n "checking for $ac_word... " >&6; } 14709if ${ac_cv_path_XMLLINT+:} false; then : 14710 $as_echo_n "(cached) " >&6 14711else 14712 case $XMLLINT in 14713 [\\/]* | ?:[\\/]*) 14714 ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path. 14715 ;; 14716 *) 14717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14718for as_dir in $PATH 14719do 14720 IFS=$as_save_IFS 14721 test -z "$as_dir" && as_dir=. 14722 for ac_exec_ext in '' $ac_executable_extensions; do 14723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14724 ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext" 14725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14726 break 2 14727 fi 14728done 14729 done 14730IFS=$as_save_IFS 14731 14732 ;; 14733esac 14734fi 14735XMLLINT=$ac_cv_path_XMLLINT 14736if test -n "$XMLLINT"; then 14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5 14738$as_echo "$XMLLINT" >&6; } 14739else 14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14741$as_echo "no" >&6; } 14742fi 14743 14744 14745 if test "x$XMLLINT" != "x"; then 14746 HAVE_XMLLINT_TRUE= 14747 HAVE_XMLLINT_FALSE='#' 14748else 14749 HAVE_XMLLINT_TRUE='#' 14750 HAVE_XMLLINT_FALSE= 14751fi 14752 14753 14754ac_config_files="$ac_config_files Makefile libgupnp-dlna/Makefile tools/Makefile tests/Makefile data/Makefile gupnp-dlna-2.0.pc gupnp-dlna-metadata-2.0.pc gupnp-dlna-gst-2.0.pc gupnp-dlna-gst-legacy-2.0.pc doc/Makefile doc/version.xml doc/gupnp-dlna/Makefile doc/gupnp-dlna-metadata/Makefile doc/gupnp-dlna-gst/Makefile vala/Makefile" 14755 14756ac_config_files="$ac_config_files tests/test-discoverer.sh" 14757 14758cat >confcache <<\_ACEOF 14759# This file is a shell script that caches the results of configure 14760# tests run on this system so they can be shared between configure 14761# scripts and configure runs, see configure's option --config-cache. 14762# It is not useful on other systems. If it contains results you don't 14763# want to keep, you may remove or edit it. 14764# 14765# config.status only pays attention to the cache file if you give it 14766# the --recheck option to rerun configure. 14767# 14768# `ac_cv_env_foo' variables (set or unset) will be overridden when 14769# loading this file, other *unset* `ac_cv_foo' will be assigned the 14770# following values. 14771 14772_ACEOF 14773 14774# The following way of writing the cache mishandles newlines in values, 14775# but we know of no workaround that is simple, portable, and efficient. 14776# So, we kill variables containing newlines. 14777# Ultrix sh set writes to stderr and can't be redirected directly, 14778# and sets the high bit in the cache file unless we assign to the vars. 14779( 14780 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14781 eval ac_val=\$$ac_var 14782 case $ac_val in #( 14783 *${as_nl}*) 14784 case $ac_var in #( 14785 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14786$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14787 esac 14788 case $ac_var in #( 14789 _ | IFS | as_nl) ;; #( 14790 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14791 *) { eval $ac_var=; unset $ac_var;} ;; 14792 esac ;; 14793 esac 14794 done 14795 14796 (set) 2>&1 | 14797 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14798 *${as_nl}ac_space=\ *) 14799 # `set' does not quote correctly, so add quotes: double-quote 14800 # substitution turns \\\\ into \\, and sed turns \\ into \. 14801 sed -n \ 14802 "s/'/'\\\\''/g; 14803 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14804 ;; #( 14805 *) 14806 # `set' quotes correctly as required by POSIX, so do not add quotes. 14807 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14808 ;; 14809 esac | 14810 sort 14811) | 14812 sed ' 14813 /^ac_cv_env_/b end 14814 t clear 14815 :clear 14816 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14817 t end 14818 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14819 :end' >>confcache 14820if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14821 if test -w "$cache_file"; then 14822 if test "x$cache_file" != "x/dev/null"; then 14823 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14824$as_echo "$as_me: updating cache $cache_file" >&6;} 14825 if test ! -f "$cache_file" || test -h "$cache_file"; then 14826 cat confcache >"$cache_file" 14827 else 14828 case $cache_file in #( 14829 */* | ?:*) 14830 mv -f confcache "$cache_file"$$ && 14831 mv -f "$cache_file"$$ "$cache_file" ;; #( 14832 *) 14833 mv -f confcache "$cache_file" ;; 14834 esac 14835 fi 14836 fi 14837 else 14838 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14839$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14840 fi 14841fi 14842rm -f confcache 14843 14844test "x$prefix" = xNONE && prefix=$ac_default_prefix 14845# Let make expand exec_prefix. 14846test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14847 14848DEFS=-DHAVE_CONFIG_H 14849 14850ac_libobjs= 14851ac_ltlibobjs= 14852U= 14853for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14854 # 1. Remove the extension, and $U if already installed. 14855 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14856 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14857 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14858 # will be set to the directory where LIBOBJS objects are built. 14859 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14860 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14861done 14862LIBOBJS=$ac_libobjs 14863 14864LTLIBOBJS=$ac_ltlibobjs 14865 14866 14867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 14868$as_echo_n "checking that generated files are newer than configure... " >&6; } 14869 if test -n "$am_sleep_pid"; then 14870 # Hide warnings about reused PIDs. 14871 wait $am_sleep_pid 2>/dev/null 14872 fi 14873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 14874$as_echo "done" >&6; } 14875 if test -n "$EXEEXT"; then 14876 am__EXEEXT_TRUE= 14877 am__EXEEXT_FALSE='#' 14878else 14879 am__EXEEXT_TRUE='#' 14880 am__EXEEXT_FALSE= 14881fi 14882 14883if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 14884 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 14885Usually this means the macro was only invoked conditionally." "$LINENO" 5 14886fi 14887if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 14888 as_fn_error $? "conditional \"AMDEP\" was never defined. 14889Usually this means the macro was only invoked conditionally." "$LINENO" 5 14890fi 14891if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14892 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 14893Usually this means the macro was only invoked conditionally." "$LINENO" 5 14894fi 14895if test -z "${GSTREAMER_METADATA_BACKEND_ENABLED_TRUE}" && test -z "${GSTREAMER_METADATA_BACKEND_ENABLED_FALSE}"; then 14896 as_fn_error $? "conditional \"GSTREAMER_METADATA_BACKEND_ENABLED\" was never defined. 14897Usually this means the macro was only invoked conditionally." "$LINENO" 5 14898fi 14899if test -z "${GSTREAMER_METADATA_BACKEND_ENABLED_TRUE}" && test -z "${GSTREAMER_METADATA_BACKEND_ENABLED_FALSE}"; then 14900 as_fn_error $? "conditional \"GSTREAMER_METADATA_BACKEND_ENABLED\" was never defined. 14901Usually this means the macro was only invoked conditionally." "$LINENO" 5 14902fi 14903if test -z "${GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_TRUE}" && test -z "${GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_FALSE}"; then 14904 as_fn_error $? "conditional \"GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED\" was never defined. 14905Usually this means the macro was only invoked conditionally." "$LINENO" 5 14906fi 14907if test -z "${GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_TRUE}" && test -z "${GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED_FALSE}"; then 14908 as_fn_error $? "conditional \"GSTREAMER_LEGACY_METADATA_BACKEND_ENABLED\" was never defined. 14909Usually this means the macro was only invoked conditionally." "$LINENO" 5 14910fi 14911if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then 14912 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined. 14913Usually this means the macro was only invoked conditionally." "$LINENO" 5 14914fi 14915if test -z "${HAVE_VAPIGEN_TRUE}" && test -z "${HAVE_VAPIGEN_FALSE}"; then 14916 as_fn_error $? "conditional \"HAVE_VAPIGEN\" was never defined. 14917Usually this means the macro was only invoked conditionally." "$LINENO" 5 14918fi 14919if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then 14920 as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined. 14921Usually this means the macro was only invoked conditionally." "$LINENO" 5 14922fi 14923if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then 14924 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined. 14925Usually this means the macro was only invoked conditionally." "$LINENO" 5 14926fi 14927if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then 14928 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined. 14929Usually this means the macro was only invoked conditionally." "$LINENO" 5 14930fi 14931if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then 14932 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined. 14933Usually this means the macro was only invoked conditionally." "$LINENO" 5 14934fi 14935if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then 14936 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined. 14937Usually this means the macro was only invoked conditionally." "$LINENO" 5 14938fi 14939if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then 14940 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined. 14941Usually this means the macro was only invoked conditionally." "$LINENO" 5 14942fi 14943if test -z "${HAVE_XMLLINT_TRUE}" && test -z "${HAVE_XMLLINT_FALSE}"; then 14944 as_fn_error $? "conditional \"HAVE_XMLLINT\" was never defined. 14945Usually this means the macro was only invoked conditionally." "$LINENO" 5 14946fi 14947 14948: "${CONFIG_STATUS=./config.status}" 14949ac_write_fail=0 14950ac_clean_files_save=$ac_clean_files 14951ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14952{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14953$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14954as_write_fail=0 14955cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14956#! $SHELL 14957# Generated by $as_me. 14958# Run this file to recreate the current configuration. 14959# Compiler output produced by configure, useful for debugging 14960# configure, is in config.log if it exists. 14961 14962debug=false 14963ac_cs_recheck=false 14964ac_cs_silent=false 14965 14966SHELL=\${CONFIG_SHELL-$SHELL} 14967export SHELL 14968_ASEOF 14969cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14970## -------------------- ## 14971## M4sh Initialization. ## 14972## -------------------- ## 14973 14974# Be more Bourne compatible 14975DUALCASE=1; export DUALCASE # for MKS sh 14976if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14977 emulate sh 14978 NULLCMD=: 14979 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14980 # is contrary to our usage. Disable this feature. 14981 alias -g '${1+"$@"}'='"$@"' 14982 setopt NO_GLOB_SUBST 14983else 14984 case `(set -o) 2>/dev/null` in #( 14985 *posix*) : 14986 set -o posix ;; #( 14987 *) : 14988 ;; 14989esac 14990fi 14991 14992 14993as_nl=' 14994' 14995export as_nl 14996# Printing a long string crashes Solaris 7 /usr/bin/printf. 14997as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14998as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14999as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15000# Prefer a ksh shell builtin over an external printf program on Solaris, 15001# but without wasting forks for bash or zsh. 15002if test -z "$BASH_VERSION$ZSH_VERSION" \ 15003 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15004 as_echo='print -r --' 15005 as_echo_n='print -rn --' 15006elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15007 as_echo='printf %s\n' 15008 as_echo_n='printf %s' 15009else 15010 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15011 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15012 as_echo_n='/usr/ucb/echo -n' 15013 else 15014 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15015 as_echo_n_body='eval 15016 arg=$1; 15017 case $arg in #( 15018 *"$as_nl"*) 15019 expr "X$arg" : "X\\(.*\\)$as_nl"; 15020 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15021 esac; 15022 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15023 ' 15024 export as_echo_n_body 15025 as_echo_n='sh -c $as_echo_n_body as_echo' 15026 fi 15027 export as_echo_body 15028 as_echo='sh -c $as_echo_body as_echo' 15029fi 15030 15031# The user is always right. 15032if test "${PATH_SEPARATOR+set}" != set; then 15033 PATH_SEPARATOR=: 15034 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15035 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15036 PATH_SEPARATOR=';' 15037 } 15038fi 15039 15040 15041# IFS 15042# We need space, tab and new line, in precisely that order. Quoting is 15043# there to prevent editors from complaining about space-tab. 15044# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15045# splitting by setting IFS to empty value.) 15046IFS=" "" $as_nl" 15047 15048# Find who we are. Look in the path if we contain no directory separator. 15049as_myself= 15050case $0 in #(( 15051 *[\\/]* ) as_myself=$0 ;; 15052 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15053for as_dir in $PATH 15054do 15055 IFS=$as_save_IFS 15056 test -z "$as_dir" && as_dir=. 15057 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15058 done 15059IFS=$as_save_IFS 15060 15061 ;; 15062esac 15063# We did not find ourselves, most probably we were run as `sh COMMAND' 15064# in which case we are not to be found in the path. 15065if test "x$as_myself" = x; then 15066 as_myself=$0 15067fi 15068if test ! -f "$as_myself"; then 15069 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15070 exit 1 15071fi 15072 15073# Unset variables that we do not need and which cause bugs (e.g. in 15074# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15075# suppresses any "Segmentation fault" message there. '((' could 15076# trigger a bug in pdksh 5.2.14. 15077for as_var in BASH_ENV ENV MAIL MAILPATH 15078do eval test x\${$as_var+set} = xset \ 15079 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15080done 15081PS1='$ ' 15082PS2='> ' 15083PS4='+ ' 15084 15085# NLS nuisances. 15086LC_ALL=C 15087export LC_ALL 15088LANGUAGE=C 15089export LANGUAGE 15090 15091# CDPATH. 15092(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15093 15094 15095# as_fn_error STATUS ERROR [LINENO LOG_FD] 15096# ---------------------------------------- 15097# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15098# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15099# script with STATUS, using 1 if that was 0. 15100as_fn_error () 15101{ 15102 as_status=$1; test $as_status -eq 0 && as_status=1 15103 if test "$4"; then 15104 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15105 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 15106 fi 15107 $as_echo "$as_me: error: $2" >&2 15108 as_fn_exit $as_status 15109} # as_fn_error 15110 15111 15112# as_fn_set_status STATUS 15113# ----------------------- 15114# Set $? to STATUS, without forking. 15115as_fn_set_status () 15116{ 15117 return $1 15118} # as_fn_set_status 15119 15120# as_fn_exit STATUS 15121# ----------------- 15122# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15123as_fn_exit () 15124{ 15125 set +e 15126 as_fn_set_status $1 15127 exit $1 15128} # as_fn_exit 15129 15130# as_fn_unset VAR 15131# --------------- 15132# Portably unset VAR. 15133as_fn_unset () 15134{ 15135 { eval $1=; unset $1;} 15136} 15137as_unset=as_fn_unset 15138# as_fn_append VAR VALUE 15139# ---------------------- 15140# Append the text in VALUE to the end of the definition contained in VAR. Take 15141# advantage of any shell optimizations that allow amortized linear growth over 15142# repeated appends, instead of the typical quadratic growth present in naive 15143# implementations. 15144if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15145 eval 'as_fn_append () 15146 { 15147 eval $1+=\$2 15148 }' 15149else 15150 as_fn_append () 15151 { 15152 eval $1=\$$1\$2 15153 } 15154fi # as_fn_append 15155 15156# as_fn_arith ARG... 15157# ------------------ 15158# Perform arithmetic evaluation on the ARGs, and store the result in the 15159# global $as_val. Take advantage of shells that can avoid forks. The arguments 15160# must be portable across $(()) and expr. 15161if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15162 eval 'as_fn_arith () 15163 { 15164 as_val=$(( $* )) 15165 }' 15166else 15167 as_fn_arith () 15168 { 15169 as_val=`expr "$@" || test $? -eq 1` 15170 } 15171fi # as_fn_arith 15172 15173 15174if expr a : '\(a\)' >/dev/null 2>&1 && 15175 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15176 as_expr=expr 15177else 15178 as_expr=false 15179fi 15180 15181if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15182 as_basename=basename 15183else 15184 as_basename=false 15185fi 15186 15187if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15188 as_dirname=dirname 15189else 15190 as_dirname=false 15191fi 15192 15193as_me=`$as_basename -- "$0" || 15194$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15195 X"$0" : 'X\(//\)$' \| \ 15196 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15197$as_echo X/"$0" | 15198 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15199 s//\1/ 15200 q 15201 } 15202 /^X\/\(\/\/\)$/{ 15203 s//\1/ 15204 q 15205 } 15206 /^X\/\(\/\).*/{ 15207 s//\1/ 15208 q 15209 } 15210 s/.*/./; q'` 15211 15212# Avoid depending upon Character Ranges. 15213as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15214as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15215as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15216as_cr_digits='0123456789' 15217as_cr_alnum=$as_cr_Letters$as_cr_digits 15218 15219ECHO_C= ECHO_N= ECHO_T= 15220case `echo -n x` in #((((( 15221-n*) 15222 case `echo 'xy\c'` in 15223 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15224 xy) ECHO_C='\c';; 15225 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15226 ECHO_T=' ';; 15227 esac;; 15228*) 15229 ECHO_N='-n';; 15230esac 15231 15232rm -f conf$$ conf$$.exe conf$$.file 15233if test -d conf$$.dir; then 15234 rm -f conf$$.dir/conf$$.file 15235else 15236 rm -f conf$$.dir 15237 mkdir conf$$.dir 2>/dev/null 15238fi 15239if (echo >conf$$.file) 2>/dev/null; then 15240 if ln -s conf$$.file conf$$ 2>/dev/null; then 15241 as_ln_s='ln -s' 15242 # ... but there are two gotchas: 15243 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15244 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15245 # In both cases, we have to default to `cp -pR'. 15246 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15247 as_ln_s='cp -pR' 15248 elif ln conf$$.file conf$$ 2>/dev/null; then 15249 as_ln_s=ln 15250 else 15251 as_ln_s='cp -pR' 15252 fi 15253else 15254 as_ln_s='cp -pR' 15255fi 15256rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15257rmdir conf$$.dir 2>/dev/null 15258 15259 15260# as_fn_mkdir_p 15261# ------------- 15262# Create "$as_dir" as a directory, including parents if necessary. 15263as_fn_mkdir_p () 15264{ 15265 15266 case $as_dir in #( 15267 -*) as_dir=./$as_dir;; 15268 esac 15269 test -d "$as_dir" || eval $as_mkdir_p || { 15270 as_dirs= 15271 while :; do 15272 case $as_dir in #( 15273 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15274 *) as_qdir=$as_dir;; 15275 esac 15276 as_dirs="'$as_qdir' $as_dirs" 15277 as_dir=`$as_dirname -- "$as_dir" || 15278$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15279 X"$as_dir" : 'X\(//\)[^/]' \| \ 15280 X"$as_dir" : 'X\(//\)$' \| \ 15281 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15282$as_echo X"$as_dir" | 15283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15284 s//\1/ 15285 q 15286 } 15287 /^X\(\/\/\)[^/].*/{ 15288 s//\1/ 15289 q 15290 } 15291 /^X\(\/\/\)$/{ 15292 s//\1/ 15293 q 15294 } 15295 /^X\(\/\).*/{ 15296 s//\1/ 15297 q 15298 } 15299 s/.*/./; q'` 15300 test -d "$as_dir" && break 15301 done 15302 test -z "$as_dirs" || eval "mkdir $as_dirs" 15303 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 15304 15305 15306} # as_fn_mkdir_p 15307if mkdir -p . 2>/dev/null; then 15308 as_mkdir_p='mkdir -p "$as_dir"' 15309else 15310 test -d ./-p && rmdir ./-p 15311 as_mkdir_p=false 15312fi 15313 15314 15315# as_fn_executable_p FILE 15316# ----------------------- 15317# Test if FILE is an executable regular file. 15318as_fn_executable_p () 15319{ 15320 test -f "$1" && test -x "$1" 15321} # as_fn_executable_p 15322as_test_x='test -x' 15323as_executable_p=as_fn_executable_p 15324 15325# Sed expression to map a string onto a valid CPP name. 15326as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15327 15328# Sed expression to map a string onto a valid variable name. 15329as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15330 15331 15332exec 6>&1 15333## ----------------------------------- ## 15334## Main body of $CONFIG_STATUS script. ## 15335## ----------------------------------- ## 15336_ASEOF 15337test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15338 15339cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15340# Save the log message, to keep $0 and so on meaningful, and to 15341# report actual input values of CONFIG_FILES etc. instead of their 15342# values after options handling. 15343ac_log=" 15344This file was extended by gupnp-dlna $as_me 0.10.3, which was 15345generated by GNU Autoconf 2.69. Invocation command line was 15346 15347 CONFIG_FILES = $CONFIG_FILES 15348 CONFIG_HEADERS = $CONFIG_HEADERS 15349 CONFIG_LINKS = $CONFIG_LINKS 15350 CONFIG_COMMANDS = $CONFIG_COMMANDS 15351 $ $0 $@ 15352 15353on `(hostname || uname -n) 2>/dev/null | sed 1q` 15354" 15355 15356_ACEOF 15357 15358case $ac_config_files in *" 15359"*) set x $ac_config_files; shift; ac_config_files=$*;; 15360esac 15361 15362case $ac_config_headers in *" 15363"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15364esac 15365 15366 15367cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15368# Files that config.status was made for. 15369config_files="$ac_config_files" 15370config_headers="$ac_config_headers" 15371config_commands="$ac_config_commands" 15372 15373_ACEOF 15374 15375cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15376ac_cs_usage="\ 15377\`$as_me' instantiates files and other configuration actions 15378from templates according to the current configuration. Unless the files 15379and actions are specified as TAGs, all are instantiated by default. 15380 15381Usage: $0 [OPTION]... [TAG]... 15382 15383 -h, --help print this help, then exit 15384 -V, --version print version number and configuration settings, then exit 15385 --config print configuration, then exit 15386 -q, --quiet, --silent 15387 do not print progress messages 15388 -d, --debug don't remove temporary files 15389 --recheck update $as_me by reconfiguring in the same conditions 15390 --file=FILE[:TEMPLATE] 15391 instantiate the configuration file FILE 15392 --header=FILE[:TEMPLATE] 15393 instantiate the configuration header FILE 15394 15395Configuration files: 15396$config_files 15397 15398Configuration headers: 15399$config_headers 15400 15401Configuration commands: 15402$config_commands 15403 15404Report bugs to <https://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gupnp-dlna>. 15405gupnp-dlna home page: <http://www.gupnp.org/>." 15406 15407_ACEOF 15408cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15409ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 15410ac_cs_version="\\ 15411gupnp-dlna config.status 0.10.3 15412configured by $0, generated by GNU Autoconf 2.69, 15413 with options \\"\$ac_cs_config\\" 15414 15415Copyright (C) 2012 Free Software Foundation, Inc. 15416This config.status script is free software; the Free Software Foundation 15417gives unlimited permission to copy, distribute and modify it." 15418 15419ac_pwd='$ac_pwd' 15420srcdir='$srcdir' 15421INSTALL='$INSTALL' 15422MKDIR_P='$MKDIR_P' 15423AWK='$AWK' 15424test -n "\$AWK" || AWK=awk 15425_ACEOF 15426 15427cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15428# The default lists apply if the user does not specify any file. 15429ac_need_defaults=: 15430while test $# != 0 15431do 15432 case $1 in 15433 --*=?*) 15434 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15435 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15436 ac_shift=: 15437 ;; 15438 --*=) 15439 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15440 ac_optarg= 15441 ac_shift=: 15442 ;; 15443 *) 15444 ac_option=$1 15445 ac_optarg=$2 15446 ac_shift=shift 15447 ;; 15448 esac 15449 15450 case $ac_option in 15451 # Handling of the options. 15452 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15453 ac_cs_recheck=: ;; 15454 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15455 $as_echo "$ac_cs_version"; exit ;; 15456 --config | --confi | --conf | --con | --co | --c ) 15457 $as_echo "$ac_cs_config"; exit ;; 15458 --debug | --debu | --deb | --de | --d | -d ) 15459 debug=: ;; 15460 --file | --fil | --fi | --f ) 15461 $ac_shift 15462 case $ac_optarg in 15463 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15464 '') as_fn_error $? "missing file argument" ;; 15465 esac 15466 as_fn_append CONFIG_FILES " '$ac_optarg'" 15467 ac_need_defaults=false;; 15468 --header | --heade | --head | --hea ) 15469 $ac_shift 15470 case $ac_optarg in 15471 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15472 esac 15473 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 15474 ac_need_defaults=false;; 15475 --he | --h) 15476 # Conflict between --help and --header 15477 as_fn_error $? "ambiguous option: \`$1' 15478Try \`$0 --help' for more information.";; 15479 --help | --hel | -h ) 15480 $as_echo "$ac_cs_usage"; exit ;; 15481 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15482 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15483 ac_cs_silent=: ;; 15484 15485 # This is an error. 15486 -*) as_fn_error $? "unrecognized option: \`$1' 15487Try \`$0 --help' for more information." ;; 15488 15489 *) as_fn_append ac_config_targets " $1" 15490 ac_need_defaults=false ;; 15491 15492 esac 15493 shift 15494done 15495 15496ac_configure_extra_args= 15497 15498if $ac_cs_silent; then 15499 exec 6>/dev/null 15500 ac_configure_extra_args="$ac_configure_extra_args --silent" 15501fi 15502 15503_ACEOF 15504cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15505if \$ac_cs_recheck; then 15506 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15507 shift 15508 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15509 CONFIG_SHELL='$SHELL' 15510 export CONFIG_SHELL 15511 exec "\$@" 15512fi 15513 15514_ACEOF 15515cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15516exec 5>>config.log 15517{ 15518 echo 15519 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15520## Running $as_me. ## 15521_ASBOX 15522 $as_echo "$ac_log" 15523} >&5 15524 15525_ACEOF 15526cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15527# 15528# INIT-COMMANDS 15529# 15530AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 15531 15532 15533# The HP-UX ksh and POSIX shell print the target directory to stdout 15534# if CDPATH is set. 15535(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15536 15537sed_quote_subst='$sed_quote_subst' 15538double_quote_subst='$double_quote_subst' 15539delay_variable_subst='$delay_variable_subst' 15540macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 15541macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 15542AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 15543DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 15544OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 15545enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 15546enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 15547pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 15548enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 15549SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 15550ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 15551PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 15552host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 15553host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 15554host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 15555build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 15556build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 15557build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 15558SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 15559Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 15560GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 15561EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 15562FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 15563LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 15564NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 15565LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 15566max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 15567ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 15568exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 15569lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 15570lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 15571lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 15572lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 15573lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 15574reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 15575reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 15576deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 15577file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 15578file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 15579want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 15580sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 15581AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 15582AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 15583archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 15584STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 15585RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 15586old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15587old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15588old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 15589lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 15590CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 15591CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 15592compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 15593GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 15594lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 15595lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 15596lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 15597lt_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"`' 15598nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 15599lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 15600objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 15601MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 15602lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 15603lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 15604lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 15605lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 15606lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 15607need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 15608MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 15609DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 15610NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 15611LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 15612OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 15613OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 15614libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 15615shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 15616extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15617archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 15618enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 15619export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 15620whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 15621compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 15622old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 15623old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15624archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 15625archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15626module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 15627module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15628with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 15629allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 15630no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 15631hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 15632hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 15633hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 15634hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 15635hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 15636hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 15637hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 15638inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 15639link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 15640always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 15641export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 15642exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 15643include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 15644prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 15645postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 15646file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 15647variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 15648need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 15649need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 15650version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 15651runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 15652shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 15653shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 15654libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 15655library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 15656soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 15657install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 15658postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15659postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15660finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 15661finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 15662hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 15663sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 15664sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 15665hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 15666enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 15667enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 15668enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 15669old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 15670striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 15671 15672LTCC='$LTCC' 15673LTCFLAGS='$LTCFLAGS' 15674compiler='$compiler_DEFAULT' 15675 15676# A function that is used when there is no print builtin or printf. 15677func_fallback_echo () 15678{ 15679 eval 'cat <<_LTECHO_EOF 15680\$1 15681_LTECHO_EOF' 15682} 15683 15684# Quote evaled strings. 15685for var in AS \ 15686DLLTOOL \ 15687OBJDUMP \ 15688SHELL \ 15689ECHO \ 15690PATH_SEPARATOR \ 15691SED \ 15692GREP \ 15693EGREP \ 15694FGREP \ 15695LD \ 15696NM \ 15697LN_S \ 15698lt_SP2NL \ 15699lt_NL2SP \ 15700reload_flag \ 15701deplibs_check_method \ 15702file_magic_cmd \ 15703file_magic_glob \ 15704want_nocaseglob \ 15705sharedlib_from_linklib_cmd \ 15706AR \ 15707AR_FLAGS \ 15708archiver_list_spec \ 15709STRIP \ 15710RANLIB \ 15711CC \ 15712CFLAGS \ 15713compiler \ 15714lt_cv_sys_global_symbol_pipe \ 15715lt_cv_sys_global_symbol_to_cdecl \ 15716lt_cv_sys_global_symbol_to_c_name_address \ 15717lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 15718nm_file_list_spec \ 15719lt_prog_compiler_no_builtin_flag \ 15720lt_prog_compiler_pic \ 15721lt_prog_compiler_wl \ 15722lt_prog_compiler_static \ 15723lt_cv_prog_compiler_c_o \ 15724need_locks \ 15725MANIFEST_TOOL \ 15726DSYMUTIL \ 15727NMEDIT \ 15728LIPO \ 15729OTOOL \ 15730OTOOL64 \ 15731shrext_cmds \ 15732export_dynamic_flag_spec \ 15733whole_archive_flag_spec \ 15734compiler_needs_object \ 15735with_gnu_ld \ 15736allow_undefined_flag \ 15737no_undefined_flag \ 15738hardcode_libdir_flag_spec \ 15739hardcode_libdir_separator \ 15740exclude_expsyms \ 15741include_expsyms \ 15742file_list_spec \ 15743variables_saved_for_relink \ 15744libname_spec \ 15745library_names_spec \ 15746soname_spec \ 15747install_override_mode \ 15748finish_eval \ 15749old_striplib \ 15750striplib; do 15751 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15752 *[\\\\\\\`\\"\\\$]*) 15753 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 15754 ;; 15755 *) 15756 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15757 ;; 15758 esac 15759done 15760 15761# Double-quote double-evaled strings. 15762for var in reload_cmds \ 15763old_postinstall_cmds \ 15764old_postuninstall_cmds \ 15765old_archive_cmds \ 15766extract_expsyms_cmds \ 15767old_archive_from_new_cmds \ 15768old_archive_from_expsyms_cmds \ 15769archive_cmds \ 15770archive_expsym_cmds \ 15771module_cmds \ 15772module_expsym_cmds \ 15773export_symbols_cmds \ 15774prelink_cmds \ 15775postlink_cmds \ 15776postinstall_cmds \ 15777postuninstall_cmds \ 15778finish_cmds \ 15779sys_lib_search_path_spec \ 15780sys_lib_dlsearch_path_spec; do 15781 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15782 *[\\\\\\\`\\"\\\$]*) 15783 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 15784 ;; 15785 *) 15786 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15787 ;; 15788 esac 15789done 15790 15791ac_aux_dir='$ac_aux_dir' 15792xsi_shell='$xsi_shell' 15793lt_shell_append='$lt_shell_append' 15794 15795# See if we are running on zsh, and set the options which allow our 15796# commands through without removal of \ escapes INIT. 15797if test -n "\${ZSH_VERSION+set}" ; then 15798 setopt NO_GLOB_SUBST 15799fi 15800 15801 15802 PACKAGE='$PACKAGE' 15803 VERSION='$VERSION' 15804 TIMESTAMP='$TIMESTAMP' 15805 RM='$RM' 15806 ofile='$ofile' 15807 15808 15809 15810 15811_ACEOF 15812 15813cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15814 15815# Handling of arguments. 15816for ac_config_target in $ac_config_targets 15817do 15818 case $ac_config_target in 15819 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 15820 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 15821 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 15822 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 15823 "libgupnp-dlna/Makefile") CONFIG_FILES="$CONFIG_FILES libgupnp-dlna/Makefile" ;; 15824 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 15825 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 15826 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; 15827 "gupnp-dlna-2.0.pc") CONFIG_FILES="$CONFIG_FILES gupnp-dlna-2.0.pc" ;; 15828 "gupnp-dlna-metadata-2.0.pc") CONFIG_FILES="$CONFIG_FILES gupnp-dlna-metadata-2.0.pc" ;; 15829 "gupnp-dlna-gst-2.0.pc") CONFIG_FILES="$CONFIG_FILES gupnp-dlna-gst-2.0.pc" ;; 15830 "gupnp-dlna-gst-legacy-2.0.pc") CONFIG_FILES="$CONFIG_FILES gupnp-dlna-gst-legacy-2.0.pc" ;; 15831 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 15832 "doc/version.xml") CONFIG_FILES="$CONFIG_FILES doc/version.xml" ;; 15833 "doc/gupnp-dlna/Makefile") CONFIG_FILES="$CONFIG_FILES doc/gupnp-dlna/Makefile" ;; 15834 "doc/gupnp-dlna-metadata/Makefile") CONFIG_FILES="$CONFIG_FILES doc/gupnp-dlna-metadata/Makefile" ;; 15835 "doc/gupnp-dlna-gst/Makefile") CONFIG_FILES="$CONFIG_FILES doc/gupnp-dlna-gst/Makefile" ;; 15836 "vala/Makefile") CONFIG_FILES="$CONFIG_FILES vala/Makefile" ;; 15837 "tests/test-discoverer.sh") CONFIG_FILES="$CONFIG_FILES tests/test-discoverer.sh" ;; 15838 15839 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 15840 esac 15841done 15842 15843 15844# If the user did not use the arguments to specify the items to instantiate, 15845# then the envvar interface is used. Set only those that are not. 15846# We use the long form for the default assignment because of an extremely 15847# bizarre bug on SunOS 4.1.3. 15848if $ac_need_defaults; then 15849 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15850 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15851 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 15852fi 15853 15854# Have a temporary directory for convenience. Make it in the build tree 15855# simply because there is no reason against having it here, and in addition, 15856# creating and moving files from /tmp can sometimes cause problems. 15857# Hook for its removal unless debugging. 15858# Note that there is a small window in which the directory will not be cleaned: 15859# after its creation but before its name has been assigned to `$tmp'. 15860$debug || 15861{ 15862 tmp= ac_tmp= 15863 trap 'exit_status=$? 15864 : "${ac_tmp:=$tmp}" 15865 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 15866' 0 15867 trap 'as_fn_exit 1' 1 2 13 15 15868} 15869# Create a (secure) tmp directory for tmp files. 15870 15871{ 15872 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15873 test -d "$tmp" 15874} || 15875{ 15876 tmp=./conf$$-$RANDOM 15877 (umask 077 && mkdir "$tmp") 15878} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 15879ac_tmp=$tmp 15880 15881# Set up the scripts for CONFIG_FILES section. 15882# No need to generate them if there are no CONFIG_FILES. 15883# This happens for instance with `./config.status config.h'. 15884if test -n "$CONFIG_FILES"; then 15885 15886 15887ac_cr=`echo X | tr X '\015'` 15888# On cygwin, bash can eat \r inside `` if the user requested igncr. 15889# But we know of no other shell where ac_cr would be empty at this 15890# point, so we can use a bashism as a fallback. 15891if test "x$ac_cr" = x; then 15892 eval ac_cr=\$\'\\r\' 15893fi 15894ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15895if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15896 ac_cs_awk_cr='\\r' 15897else 15898 ac_cs_awk_cr=$ac_cr 15899fi 15900 15901echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 15902_ACEOF 15903 15904 15905{ 15906 echo "cat >conf$$subs.awk <<_ACEOF" && 15907 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15908 echo "_ACEOF" 15909} >conf$$subs.sh || 15910 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15911ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 15912ac_delim='%!_!# ' 15913for ac_last_try in false false false false false :; do 15914 . ./conf$$subs.sh || 15915 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15916 15917 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15918 if test $ac_delim_n = $ac_delim_num; then 15919 break 15920 elif $ac_last_try; then 15921 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15922 else 15923 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15924 fi 15925done 15926rm -f conf$$subs.sh 15927 15928cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15929cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 15930_ACEOF 15931sed -n ' 15932h 15933s/^/S["/; s/!.*/"]=/ 15934p 15935g 15936s/^[^!]*!// 15937:repl 15938t repl 15939s/'"$ac_delim"'$// 15940t delim 15941:nl 15942h 15943s/\(.\{148\}\)..*/\1/ 15944t more1 15945s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15946p 15947n 15948b repl 15949:more1 15950s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15951p 15952g 15953s/.\{148\}// 15954t nl 15955:delim 15956h 15957s/\(.\{148\}\)..*/\1/ 15958t more2 15959s/["\\]/\\&/g; s/^/"/; s/$/"/ 15960p 15961b 15962:more2 15963s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15964p 15965g 15966s/.\{148\}// 15967t delim 15968' <conf$$subs.awk | sed ' 15969/^[^""]/{ 15970 N 15971 s/\n// 15972} 15973' >>$CONFIG_STATUS || ac_write_fail=1 15974rm -f conf$$subs.awk 15975cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15976_ACAWK 15977cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 15978 for (key in S) S_is_set[key] = 1 15979 FS = "" 15980 15981} 15982{ 15983 line = $ 0 15984 nfields = split(line, field, "@") 15985 substed = 0 15986 len = length(field[1]) 15987 for (i = 2; i < nfields; i++) { 15988 key = field[i] 15989 keylen = length(key) 15990 if (S_is_set[key]) { 15991 value = S[key] 15992 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15993 len += length(value) + length(field[++i]) 15994 substed = 1 15995 } else 15996 len += 1 + keylen 15997 } 15998 15999 print line 16000} 16001 16002_ACAWK 16003_ACEOF 16004cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16005if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16006 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16007else 16008 cat 16009fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 16010 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 16011_ACEOF 16012 16013# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 16014# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 16015# trailing colons and then remove the whole line if VPATH becomes empty 16016# (actually we leave an empty line to preserve line numbers). 16017if test "x$srcdir" = x.; then 16018 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 16019h 16020s/// 16021s/^/:/ 16022s/[ ]*$/:/ 16023s/:\$(srcdir):/:/g 16024s/:\${srcdir}:/:/g 16025s/:@srcdir@:/:/g 16026s/^:*// 16027s/:*$// 16028x 16029s/\(=[ ]*\).*/\1/ 16030G 16031s/\n// 16032s/^[^=]*=[ ]*$// 16033}' 16034fi 16035 16036cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16037fi # test -n "$CONFIG_FILES" 16038 16039# Set up the scripts for CONFIG_HEADERS section. 16040# No need to generate them if there are no CONFIG_HEADERS. 16041# This happens for instance with `./config.status Makefile'. 16042if test -n "$CONFIG_HEADERS"; then 16043cat >"$ac_tmp/defines.awk" <<\_ACAWK || 16044BEGIN { 16045_ACEOF 16046 16047# Transform confdefs.h into an awk script `defines.awk', embedded as 16048# here-document in config.status, that substitutes the proper values into 16049# config.h.in to produce config.h. 16050 16051# Create a delimiter string that does not exist in confdefs.h, to ease 16052# handling of long lines. 16053ac_delim='%!_!# ' 16054for ac_last_try in false false :; do 16055 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 16056 if test -z "$ac_tt"; then 16057 break 16058 elif $ac_last_try; then 16059 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 16060 else 16061 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16062 fi 16063done 16064 16065# For the awk script, D is an array of macro values keyed by name, 16066# likewise P contains macro parameters if any. Preserve backslash 16067# newline sequences. 16068 16069ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16070sed -n ' 16071s/.\{148\}/&'"$ac_delim"'/g 16072t rset 16073:rset 16074s/^[ ]*#[ ]*define[ ][ ]*/ / 16075t def 16076d 16077:def 16078s/\\$// 16079t bsnl 16080s/["\\]/\\&/g 16081s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16082D["\1"]=" \3"/p 16083s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16084d 16085:bsnl 16086s/["\\]/\\&/g 16087s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16088D["\1"]=" \3\\\\\\n"\\/p 16089t cont 16090s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16091t cont 16092d 16093:cont 16094n 16095s/.\{148\}/&'"$ac_delim"'/g 16096t clear 16097:clear 16098s/\\$// 16099t bsnlc 16100s/["\\]/\\&/g; s/^/"/; s/$/"/p 16101d 16102:bsnlc 16103s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16104b cont 16105' <confdefs.h | sed ' 16106s/'"$ac_delim"'/"\\\ 16107"/g' >>$CONFIG_STATUS || ac_write_fail=1 16108 16109cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16110 for (key in D) D_is_set[key] = 1 16111 FS = "" 16112} 16113/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 16114 line = \$ 0 16115 split(line, arg, " ") 16116 if (arg[1] == "#") { 16117 defundef = arg[2] 16118 mac1 = arg[3] 16119 } else { 16120 defundef = substr(arg[1], 2) 16121 mac1 = arg[2] 16122 } 16123 split(mac1, mac2, "(") #) 16124 macro = mac2[1] 16125 prefix = substr(line, 1, index(line, defundef) - 1) 16126 if (D_is_set[macro]) { 16127 # Preserve the white space surrounding the "#". 16128 print prefix "define", macro P[macro] D[macro] 16129 next 16130 } else { 16131 # Replace #undef with comments. This is necessary, for example, 16132 # in the case of _POSIX_SOURCE, which is predefined and required 16133 # on some systems where configure will not decide to define it. 16134 if (defundef == "undef") { 16135 print "/*", prefix defundef, macro, "*/" 16136 next 16137 } 16138 } 16139} 16140{ print } 16141_ACAWK 16142_ACEOF 16143cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16144 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 16145fi # test -n "$CONFIG_HEADERS" 16146 16147 16148eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 16149shift 16150for ac_tag 16151do 16152 case $ac_tag in 16153 :[FHLC]) ac_mode=$ac_tag; continue;; 16154 esac 16155 case $ac_mode$ac_tag in 16156 :[FHL]*:*);; 16157 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 16158 :[FH]-) ac_tag=-:-;; 16159 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16160 esac 16161 ac_save_IFS=$IFS 16162 IFS=: 16163 set x $ac_tag 16164 IFS=$ac_save_IFS 16165 shift 16166 ac_file=$1 16167 shift 16168 16169 case $ac_mode in 16170 :L) ac_source=$1;; 16171 :[FH]) 16172 ac_file_inputs= 16173 for ac_f 16174 do 16175 case $ac_f in 16176 -) ac_f="$ac_tmp/stdin";; 16177 *) # Look for the file first in the build tree, then in the source tree 16178 # (if the path is not absolute). The absolute path cannot be DOS-style, 16179 # because $ac_f cannot contain `:'. 16180 test -f "$ac_f" || 16181 case $ac_f in 16182 [\\/$]*) false;; 16183 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16184 esac || 16185 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 16186 esac 16187 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16188 as_fn_append ac_file_inputs " '$ac_f'" 16189 done 16190 16191 # Let's still pretend it is `configure' which instantiates (i.e., don't 16192 # use $as_me), people would be surprised to read: 16193 # /* config.h. Generated by config.status. */ 16194 configure_input='Generated from '` 16195 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16196 `' by configure.' 16197 if test x"$ac_file" != x-; then 16198 configure_input="$ac_file. $configure_input" 16199 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16200$as_echo "$as_me: creating $ac_file" >&6;} 16201 fi 16202 # Neutralize special characters interpreted by sed in replacement strings. 16203 case $configure_input in #( 16204 *\&* | *\|* | *\\* ) 16205 ac_sed_conf_input=`$as_echo "$configure_input" | 16206 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16207 *) ac_sed_conf_input=$configure_input;; 16208 esac 16209 16210 case $ac_tag in 16211 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 16212 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 16213 esac 16214 ;; 16215 esac 16216 16217 ac_dir=`$as_dirname -- "$ac_file" || 16218$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16219 X"$ac_file" : 'X\(//\)[^/]' \| \ 16220 X"$ac_file" : 'X\(//\)$' \| \ 16221 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16222$as_echo X"$ac_file" | 16223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16224 s//\1/ 16225 q 16226 } 16227 /^X\(\/\/\)[^/].*/{ 16228 s//\1/ 16229 q 16230 } 16231 /^X\(\/\/\)$/{ 16232 s//\1/ 16233 q 16234 } 16235 /^X\(\/\).*/{ 16236 s//\1/ 16237 q 16238 } 16239 s/.*/./; q'` 16240 as_dir="$ac_dir"; as_fn_mkdir_p 16241 ac_builddir=. 16242 16243case "$ac_dir" in 16244.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16245*) 16246 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16247 # A ".." for each directory in $ac_dir_suffix. 16248 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16249 case $ac_top_builddir_sub in 16250 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16251 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16252 esac ;; 16253esac 16254ac_abs_top_builddir=$ac_pwd 16255ac_abs_builddir=$ac_pwd$ac_dir_suffix 16256# for backward compatibility: 16257ac_top_builddir=$ac_top_build_prefix 16258 16259case $srcdir in 16260 .) # We are building in place. 16261 ac_srcdir=. 16262 ac_top_srcdir=$ac_top_builddir_sub 16263 ac_abs_top_srcdir=$ac_pwd ;; 16264 [\\/]* | ?:[\\/]* ) # Absolute name. 16265 ac_srcdir=$srcdir$ac_dir_suffix; 16266 ac_top_srcdir=$srcdir 16267 ac_abs_top_srcdir=$srcdir ;; 16268 *) # Relative name. 16269 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16270 ac_top_srcdir=$ac_top_build_prefix$srcdir 16271 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16272esac 16273ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16274 16275 16276 case $ac_mode in 16277 :F) 16278 # 16279 # CONFIG_FILE 16280 # 16281 16282 case $INSTALL in 16283 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16284 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16285 esac 16286 ac_MKDIR_P=$MKDIR_P 16287 case $MKDIR_P in 16288 [\\/$]* | ?:[\\/]* ) ;; 16289 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 16290 esac 16291_ACEOF 16292 16293cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16294# If the template does not know about datarootdir, expand it. 16295# FIXME: This hack should be removed a few years after 2.60. 16296ac_datarootdir_hack=; ac_datarootdir_seen= 16297ac_sed_dataroot=' 16298/datarootdir/ { 16299 p 16300 q 16301} 16302/@datadir@/p 16303/@docdir@/p 16304/@infodir@/p 16305/@localedir@/p 16306/@mandir@/p' 16307case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16308*datarootdir*) ac_datarootdir_seen=yes;; 16309*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16311$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16312_ACEOF 16313cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16314 ac_datarootdir_hack=' 16315 s&@datadir@&$datadir&g 16316 s&@docdir@&$docdir&g 16317 s&@infodir@&$infodir&g 16318 s&@localedir@&$localedir&g 16319 s&@mandir@&$mandir&g 16320 s&\\\${datarootdir}&$datarootdir&g' ;; 16321esac 16322_ACEOF 16323 16324# Neutralize VPATH when `$srcdir' = `.'. 16325# Shell code in configure.ac might set extrasub. 16326# FIXME: do we really want to maintain this feature? 16327cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16328ac_sed_extra="$ac_vpsub 16329$extrasub 16330_ACEOF 16331cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16332:t 16333/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16334s|@configure_input@|$ac_sed_conf_input|;t t 16335s&@top_builddir@&$ac_top_builddir_sub&;t t 16336s&@top_build_prefix@&$ac_top_build_prefix&;t t 16337s&@srcdir@&$ac_srcdir&;t t 16338s&@abs_srcdir@&$ac_abs_srcdir&;t t 16339s&@top_srcdir@&$ac_top_srcdir&;t t 16340s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16341s&@builddir@&$ac_builddir&;t t 16342s&@abs_builddir@&$ac_abs_builddir&;t t 16343s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16344s&@INSTALL@&$ac_INSTALL&;t t 16345s&@MKDIR_P@&$ac_MKDIR_P&;t t 16346$ac_datarootdir_hack 16347" 16348eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 16349 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16350 16351test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16352 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 16353 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 16354 "$ac_tmp/out"`; test -z "$ac_out"; } && 16355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16356which seems to be undefined. Please make sure it is defined" >&5 16357$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16358which seems to be undefined. Please make sure it is defined" >&2;} 16359 16360 rm -f "$ac_tmp/stdin" 16361 case $ac_file in 16362 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 16363 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 16364 esac \ 16365 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16366 ;; 16367 :H) 16368 # 16369 # CONFIG_HEADER 16370 # 16371 if test x"$ac_file" != x-; then 16372 { 16373 $as_echo "/* $configure_input */" \ 16374 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 16375 } >"$ac_tmp/config.h" \ 16376 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16377 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 16378 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 16379$as_echo "$as_me: $ac_file is unchanged" >&6;} 16380 else 16381 rm -f "$ac_file" 16382 mv "$ac_tmp/config.h" "$ac_file" \ 16383 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16384 fi 16385 else 16386 $as_echo "/* $configure_input */" \ 16387 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 16388 || as_fn_error $? "could not create -" "$LINENO" 5 16389 fi 16390# Compute "$ac_file"'s index in $config_headers. 16391_am_arg="$ac_file" 16392_am_stamp_count=1 16393for _am_header in $config_headers :; do 16394 case $_am_header in 16395 $_am_arg | $_am_arg:* ) 16396 break ;; 16397 * ) 16398 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 16399 esac 16400done 16401echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 16402$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16403 X"$_am_arg" : 'X\(//\)[^/]' \| \ 16404 X"$_am_arg" : 'X\(//\)$' \| \ 16405 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 16406$as_echo X"$_am_arg" | 16407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16408 s//\1/ 16409 q 16410 } 16411 /^X\(\/\/\)[^/].*/{ 16412 s//\1/ 16413 q 16414 } 16415 /^X\(\/\/\)$/{ 16416 s//\1/ 16417 q 16418 } 16419 /^X\(\/\).*/{ 16420 s//\1/ 16421 q 16422 } 16423 s/.*/./; q'`/stamp-h$_am_stamp_count 16424 ;; 16425 16426 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 16427$as_echo "$as_me: executing $ac_file commands" >&6;} 16428 ;; 16429 esac 16430 16431 16432 case $ac_file$ac_mode in 16433 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 16434 # Older Autoconf quotes --file arguments for eval, but not when files 16435 # are listed without --file. Let's play safe and only enable the eval 16436 # if we detect the quoting. 16437 case $CONFIG_FILES in 16438 *\'*) eval set x "$CONFIG_FILES" ;; 16439 *) set x $CONFIG_FILES ;; 16440 esac 16441 shift 16442 for mf 16443 do 16444 # Strip MF so we end up with the name of the file. 16445 mf=`echo "$mf" | sed -e 's/:.*$//'` 16446 # Check whether this is an Automake generated Makefile or not. 16447 # We used to match only the files named 'Makefile.in', but 16448 # some people rename them; so instead we look at the file content. 16449 # Grep'ing the first line is not enough: some people post-process 16450 # each Makefile.in and add a new line on top of each file to say so. 16451 # Grep'ing the whole file is not good either: AIX grep has a line 16452 # limit of 2048, but all sed's we know have understand at least 4000. 16453 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 16454 dirpart=`$as_dirname -- "$mf" || 16455$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16456 X"$mf" : 'X\(//\)[^/]' \| \ 16457 X"$mf" : 'X\(//\)$' \| \ 16458 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 16459$as_echo X"$mf" | 16460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16461 s//\1/ 16462 q 16463 } 16464 /^X\(\/\/\)[^/].*/{ 16465 s//\1/ 16466 q 16467 } 16468 /^X\(\/\/\)$/{ 16469 s//\1/ 16470 q 16471 } 16472 /^X\(\/\).*/{ 16473 s//\1/ 16474 q 16475 } 16476 s/.*/./; q'` 16477 else 16478 continue 16479 fi 16480 # Extract the definition of DEPDIR, am__include, and am__quote 16481 # from the Makefile without running 'make'. 16482 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 16483 test -z "$DEPDIR" && continue 16484 am__include=`sed -n 's/^am__include = //p' < "$mf"` 16485 test -z "$am__include" && continue 16486 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 16487 # Find all dependency output files, they are included files with 16488 # $(DEPDIR) in their names. We invoke sed twice because it is the 16489 # simplest approach to changing $(DEPDIR) to its actual value in the 16490 # expansion. 16491 for file in `sed -n " 16492 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 16493 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 16494 # Make sure the directory exists. 16495 test -f "$dirpart/$file" && continue 16496 fdir=`$as_dirname -- "$file" || 16497$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16498 X"$file" : 'X\(//\)[^/]' \| \ 16499 X"$file" : 'X\(//\)$' \| \ 16500 X"$file" : 'X\(/\)' \| . 2>/dev/null || 16501$as_echo X"$file" | 16502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16503 s//\1/ 16504 q 16505 } 16506 /^X\(\/\/\)[^/].*/{ 16507 s//\1/ 16508 q 16509 } 16510 /^X\(\/\/\)$/{ 16511 s//\1/ 16512 q 16513 } 16514 /^X\(\/\).*/{ 16515 s//\1/ 16516 q 16517 } 16518 s/.*/./; q'` 16519 as_dir=$dirpart/$fdir; as_fn_mkdir_p 16520 # echo "creating $dirpart/$file" 16521 echo '# dummy' > "$dirpart/$file" 16522 done 16523 done 16524} 16525 ;; 16526 "libtool":C) 16527 16528 # See if we are running on zsh, and set the options which allow our 16529 # commands through without removal of \ escapes. 16530 if test -n "${ZSH_VERSION+set}" ; then 16531 setopt NO_GLOB_SUBST 16532 fi 16533 16534 cfgfile="${ofile}T" 16535 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 16536 $RM "$cfgfile" 16537 16538 cat <<_LT_EOF >> "$cfgfile" 16539#! $SHELL 16540 16541# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 16542# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 16543# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16544# NOTE: Changes made to this file will be lost: look at ltmain.sh. 16545# 16546# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 16547# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 16548# Foundation, Inc. 16549# Written by Gordon Matzigkeit, 1996 16550# 16551# This file is part of GNU Libtool. 16552# 16553# GNU Libtool is free software; you can redistribute it and/or 16554# modify it under the terms of the GNU General Public License as 16555# published by the Free Software Foundation; either version 2 of 16556# the License, or (at your option) any later version. 16557# 16558# As a special exception to the GNU General Public License, 16559# if you distribute this file as part of a program or library that 16560# is built using GNU Libtool, you may include this file under the 16561# same distribution terms that you use for the rest of that program. 16562# 16563# GNU Libtool is distributed in the hope that it will be useful, 16564# but WITHOUT ANY WARRANTY; without even the implied warranty of 16565# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16566# GNU General Public License for more details. 16567# 16568# You should have received a copy of the GNU General Public License 16569# along with GNU Libtool; see the file COPYING. If not, a copy 16570# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 16571# obtained by writing to the Free Software Foundation, Inc., 16572# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 16573 16574 16575# The names of the tagged configurations supported by this script. 16576available_tags="" 16577 16578# ### BEGIN LIBTOOL CONFIG 16579 16580# Which release of libtool.m4 was used? 16581macro_version=$macro_version 16582macro_revision=$macro_revision 16583 16584# Assembler program. 16585AS=$lt_AS 16586 16587# DLL creation program. 16588DLLTOOL=$lt_DLLTOOL 16589 16590# Object dumper program. 16591OBJDUMP=$lt_OBJDUMP 16592 16593# Whether or not to build shared libraries. 16594build_libtool_libs=$enable_shared 16595 16596# Whether or not to build static libraries. 16597build_old_libs=$enable_static 16598 16599# What type of objects to build. 16600pic_mode=$pic_mode 16601 16602# Whether or not to optimize for fast installation. 16603fast_install=$enable_fast_install 16604 16605# Shell to use when invoking shell scripts. 16606SHELL=$lt_SHELL 16607 16608# An echo program that protects backslashes. 16609ECHO=$lt_ECHO 16610 16611# The PATH separator for the build system. 16612PATH_SEPARATOR=$lt_PATH_SEPARATOR 16613 16614# The host system. 16615host_alias=$host_alias 16616host=$host 16617host_os=$host_os 16618 16619# The build system. 16620build_alias=$build_alias 16621build=$build 16622build_os=$build_os 16623 16624# A sed program that does not truncate output. 16625SED=$lt_SED 16626 16627# Sed that helps us avoid accidentally triggering echo(1) options like -n. 16628Xsed="\$SED -e 1s/^X//" 16629 16630# A grep program that handles long lines. 16631GREP=$lt_GREP 16632 16633# An ERE matcher. 16634EGREP=$lt_EGREP 16635 16636# A literal string matcher. 16637FGREP=$lt_FGREP 16638 16639# A BSD- or MS-compatible name lister. 16640NM=$lt_NM 16641 16642# Whether we need soft or hard links. 16643LN_S=$lt_LN_S 16644 16645# What is the maximum length of a command? 16646max_cmd_len=$max_cmd_len 16647 16648# Object file suffix (normally "o"). 16649objext=$ac_objext 16650 16651# Executable file suffix (normally ""). 16652exeext=$exeext 16653 16654# whether the shell understands "unset". 16655lt_unset=$lt_unset 16656 16657# turn spaces into newlines. 16658SP2NL=$lt_lt_SP2NL 16659 16660# turn newlines into spaces. 16661NL2SP=$lt_lt_NL2SP 16662 16663# convert \$build file names to \$host format. 16664to_host_file_cmd=$lt_cv_to_host_file_cmd 16665 16666# convert \$build files to toolchain format. 16667to_tool_file_cmd=$lt_cv_to_tool_file_cmd 16668 16669# Method to check whether dependent libraries are shared objects. 16670deplibs_check_method=$lt_deplibs_check_method 16671 16672# Command to use when deplibs_check_method = "file_magic". 16673file_magic_cmd=$lt_file_magic_cmd 16674 16675# How to find potential files when deplibs_check_method = "file_magic". 16676file_magic_glob=$lt_file_magic_glob 16677 16678# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 16679want_nocaseglob=$lt_want_nocaseglob 16680 16681# Command to associate shared and link libraries. 16682sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 16683 16684# The archiver. 16685AR=$lt_AR 16686 16687# Flags to create an archive. 16688AR_FLAGS=$lt_AR_FLAGS 16689 16690# How to feed a file listing to the archiver. 16691archiver_list_spec=$lt_archiver_list_spec 16692 16693# A symbol stripping program. 16694STRIP=$lt_STRIP 16695 16696# Commands used to install an old-style archive. 16697RANLIB=$lt_RANLIB 16698old_postinstall_cmds=$lt_old_postinstall_cmds 16699old_postuninstall_cmds=$lt_old_postuninstall_cmds 16700 16701# Whether to use a lock for old archive extraction. 16702lock_old_archive_extraction=$lock_old_archive_extraction 16703 16704# A C compiler. 16705LTCC=$lt_CC 16706 16707# LTCC compiler flags. 16708LTCFLAGS=$lt_CFLAGS 16709 16710# Take the output of nm and produce a listing of raw symbols and C names. 16711global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16712 16713# Transform the output of nm in a proper C declaration. 16714global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16715 16716# Transform the output of nm in a C name address pair. 16717global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16718 16719# Transform the output of nm in a C name address pair when lib prefix is needed. 16720global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 16721 16722# Specify filename containing input files for \$NM. 16723nm_file_list_spec=$lt_nm_file_list_spec 16724 16725# The root where to search for dependent libraries,and in which our libraries should be installed. 16726lt_sysroot=$lt_sysroot 16727 16728# The name of the directory that contains temporary libtool files. 16729objdir=$objdir 16730 16731# Used to examine libraries when file_magic_cmd begins with "file". 16732MAGIC_CMD=$MAGIC_CMD 16733 16734# Must we lock files when doing compilation? 16735need_locks=$lt_need_locks 16736 16737# Manifest tool. 16738MANIFEST_TOOL=$lt_MANIFEST_TOOL 16739 16740# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 16741DSYMUTIL=$lt_DSYMUTIL 16742 16743# Tool to change global to local symbols on Mac OS X. 16744NMEDIT=$lt_NMEDIT 16745 16746# Tool to manipulate fat objects and archives on Mac OS X. 16747LIPO=$lt_LIPO 16748 16749# ldd/readelf like tool for Mach-O binaries on Mac OS X. 16750OTOOL=$lt_OTOOL 16751 16752# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 16753OTOOL64=$lt_OTOOL64 16754 16755# Old archive suffix (normally "a"). 16756libext=$libext 16757 16758# Shared library suffix (normally ".so"). 16759shrext_cmds=$lt_shrext_cmds 16760 16761# The commands to extract the exported symbol list from a shared archive. 16762extract_expsyms_cmds=$lt_extract_expsyms_cmds 16763 16764# Variables whose values should be saved in libtool wrapper scripts and 16765# restored at link time. 16766variables_saved_for_relink=$lt_variables_saved_for_relink 16767 16768# Do we need the "lib" prefix for modules? 16769need_lib_prefix=$need_lib_prefix 16770 16771# Do we need a version for libraries? 16772need_version=$need_version 16773 16774# Library versioning type. 16775version_type=$version_type 16776 16777# Shared library runtime path variable. 16778runpath_var=$runpath_var 16779 16780# Shared library path variable. 16781shlibpath_var=$shlibpath_var 16782 16783# Is shlibpath searched before the hard-coded library search path? 16784shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16785 16786# Format of library name prefix. 16787libname_spec=$lt_libname_spec 16788 16789# List of archive names. First name is the real one, the rest are links. 16790# The last name is the one that the linker finds with -lNAME 16791library_names_spec=$lt_library_names_spec 16792 16793# The coded name of the library, if different from the real name. 16794soname_spec=$lt_soname_spec 16795 16796# Permission mode override for installation of shared libraries. 16797install_override_mode=$lt_install_override_mode 16798 16799# Command to use after installation of a shared archive. 16800postinstall_cmds=$lt_postinstall_cmds 16801 16802# Command to use after uninstallation of a shared archive. 16803postuninstall_cmds=$lt_postuninstall_cmds 16804 16805# Commands used to finish a libtool library installation in a directory. 16806finish_cmds=$lt_finish_cmds 16807 16808# As "finish_cmds", except a single script fragment to be evaled but 16809# not shown. 16810finish_eval=$lt_finish_eval 16811 16812# Whether we should hardcode library paths into libraries. 16813hardcode_into_libs=$hardcode_into_libs 16814 16815# Compile-time system search path for libraries. 16816sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16817 16818# Run-time system search path for libraries. 16819sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16820 16821# Whether dlopen is supported. 16822dlopen_support=$enable_dlopen 16823 16824# Whether dlopen of programs is supported. 16825dlopen_self=$enable_dlopen_self 16826 16827# Whether dlopen of statically linked programs is supported. 16828dlopen_self_static=$enable_dlopen_self_static 16829 16830# Commands to strip libraries. 16831old_striplib=$lt_old_striplib 16832striplib=$lt_striplib 16833 16834 16835# The linker used to build libraries. 16836LD=$lt_LD 16837 16838# How to create reloadable object files. 16839reload_flag=$lt_reload_flag 16840reload_cmds=$lt_reload_cmds 16841 16842# Commands used to build an old-style archive. 16843old_archive_cmds=$lt_old_archive_cmds 16844 16845# A language specific compiler. 16846CC=$lt_compiler 16847 16848# Is the compiler the GNU compiler? 16849with_gcc=$GCC 16850 16851# Compiler flag to turn off builtin functions. 16852no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 16853 16854# Additional compiler flags for building library objects. 16855pic_flag=$lt_lt_prog_compiler_pic 16856 16857# How to pass a linker flag through the compiler. 16858wl=$lt_lt_prog_compiler_wl 16859 16860# Compiler flag to prevent dynamic linking. 16861link_static_flag=$lt_lt_prog_compiler_static 16862 16863# Does compiler simultaneously support -c and -o options? 16864compiler_c_o=$lt_lt_cv_prog_compiler_c_o 16865 16866# Whether or not to add -lc for building shared libraries. 16867build_libtool_need_lc=$archive_cmds_need_lc 16868 16869# Whether or not to disallow shared libs when runtime libs are static. 16870allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 16871 16872# Compiler flag to allow reflexive dlopens. 16873export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 16874 16875# Compiler flag to generate shared objects directly from archives. 16876whole_archive_flag_spec=$lt_whole_archive_flag_spec 16877 16878# Whether the compiler copes with passing no objects directly. 16879compiler_needs_object=$lt_compiler_needs_object 16880 16881# Create an old-style archive from a shared archive. 16882old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 16883 16884# Create a temporary old-style archive to link instead of a shared archive. 16885old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 16886 16887# Commands used to build a shared archive. 16888archive_cmds=$lt_archive_cmds 16889archive_expsym_cmds=$lt_archive_expsym_cmds 16890 16891# Commands used to build a loadable module if different from building 16892# a shared archive. 16893module_cmds=$lt_module_cmds 16894module_expsym_cmds=$lt_module_expsym_cmds 16895 16896# Whether we are building with GNU ld or not. 16897with_gnu_ld=$lt_with_gnu_ld 16898 16899# Flag that allows shared libraries with undefined symbols to be built. 16900allow_undefined_flag=$lt_allow_undefined_flag 16901 16902# Flag that enforces no undefined symbols. 16903no_undefined_flag=$lt_no_undefined_flag 16904 16905# Flag to hardcode \$libdir into a binary during linking. 16906# This must work even if \$libdir does not exist 16907hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 16908 16909# Whether we need a single "-rpath" flag with a separated argument. 16910hardcode_libdir_separator=$lt_hardcode_libdir_separator 16911 16912# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16913# DIR into the resulting binary. 16914hardcode_direct=$hardcode_direct 16915 16916# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16917# DIR into the resulting binary and the resulting library dependency is 16918# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 16919# library is relocated. 16920hardcode_direct_absolute=$hardcode_direct_absolute 16921 16922# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 16923# into the resulting binary. 16924hardcode_minus_L=$hardcode_minus_L 16925 16926# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 16927# into the resulting binary. 16928hardcode_shlibpath_var=$hardcode_shlibpath_var 16929 16930# Set to "yes" if building a shared library automatically hardcodes DIR 16931# into the library and all subsequent libraries and executables linked 16932# against it. 16933hardcode_automatic=$hardcode_automatic 16934 16935# Set to yes if linker adds runtime paths of dependent libraries 16936# to runtime path list. 16937inherit_rpath=$inherit_rpath 16938 16939# Whether libtool must link a program against all its dependency libraries. 16940link_all_deplibs=$link_all_deplibs 16941 16942# Set to "yes" if exported symbols are required. 16943always_export_symbols=$always_export_symbols 16944 16945# The commands to list exported symbols. 16946export_symbols_cmds=$lt_export_symbols_cmds 16947 16948# Symbols that should not be listed in the preloaded symbols. 16949exclude_expsyms=$lt_exclude_expsyms 16950 16951# Symbols that must always be exported. 16952include_expsyms=$lt_include_expsyms 16953 16954# Commands necessary for linking programs (against libraries) with templates. 16955prelink_cmds=$lt_prelink_cmds 16956 16957# Commands necessary for finishing linking programs. 16958postlink_cmds=$lt_postlink_cmds 16959 16960# Specify filename containing input files. 16961file_list_spec=$lt_file_list_spec 16962 16963# How to hardcode a shared library path into an executable. 16964hardcode_action=$hardcode_action 16965 16966# ### END LIBTOOL CONFIG 16967 16968_LT_EOF 16969 16970 case $host_os in 16971 aix3*) 16972 cat <<\_LT_EOF >> "$cfgfile" 16973# AIX sometimes has problems with the GCC collect2 program. For some 16974# reason, if we set the COLLECT_NAMES environment variable, the problems 16975# vanish in a puff of smoke. 16976if test "X${COLLECT_NAMES+set}" != Xset; then 16977 COLLECT_NAMES= 16978 export COLLECT_NAMES 16979fi 16980_LT_EOF 16981 ;; 16982 esac 16983 16984 16985ltmain="$ac_aux_dir/ltmain.sh" 16986 16987 16988 # We use sed instead of cat because bash on DJGPP gets confused if 16989 # if finds mixed CR/LF and LF-only lines. Since sed operates in 16990 # text mode, it properly converts lines to CR/LF. This bash problem 16991 # is reportedly fixed, but why not run on old versions too? 16992 sed '$q' "$ltmain" >> "$cfgfile" \ 16993 || (rm -f "$cfgfile"; exit 1) 16994 16995 if test x"$xsi_shell" = xyes; then 16996 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 16997func_dirname ()\ 16998{\ 16999\ case ${1} in\ 17000\ */*) func_dirname_result="${1%/*}${2}" ;;\ 17001\ * ) func_dirname_result="${3}" ;;\ 17002\ esac\ 17003} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 17004 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17005 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17006test 0 -eq $? || _lt_function_replace_fail=: 17007 17008 17009 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 17010func_basename ()\ 17011{\ 17012\ func_basename_result="${1##*/}"\ 17013} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 17014 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17015 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17016test 0 -eq $? || _lt_function_replace_fail=: 17017 17018 17019 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 17020func_dirname_and_basename ()\ 17021{\ 17022\ case ${1} in\ 17023\ */*) func_dirname_result="${1%/*}${2}" ;;\ 17024\ * ) func_dirname_result="${3}" ;;\ 17025\ esac\ 17026\ func_basename_result="${1##*/}"\ 17027} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 17028 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17029 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17030test 0 -eq $? || _lt_function_replace_fail=: 17031 17032 17033 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 17034func_stripname ()\ 17035{\ 17036\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 17037\ # positional parameters, so assign one to ordinary parameter first.\ 17038\ func_stripname_result=${3}\ 17039\ func_stripname_result=${func_stripname_result#"${1}"}\ 17040\ func_stripname_result=${func_stripname_result%"${2}"}\ 17041} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 17042 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17043 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17044test 0 -eq $? || _lt_function_replace_fail=: 17045 17046 17047 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 17048func_split_long_opt ()\ 17049{\ 17050\ func_split_long_opt_name=${1%%=*}\ 17051\ func_split_long_opt_arg=${1#*=}\ 17052} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 17053 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17054 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17055test 0 -eq $? || _lt_function_replace_fail=: 17056 17057 17058 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 17059func_split_short_opt ()\ 17060{\ 17061\ func_split_short_opt_arg=${1#??}\ 17062\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 17063} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 17064 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17065 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17066test 0 -eq $? || _lt_function_replace_fail=: 17067 17068 17069 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 17070func_lo2o ()\ 17071{\ 17072\ case ${1} in\ 17073\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 17074\ *) func_lo2o_result=${1} ;;\ 17075\ esac\ 17076} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 17077 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17078 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17079test 0 -eq $? || _lt_function_replace_fail=: 17080 17081 17082 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 17083func_xform ()\ 17084{\ 17085 func_xform_result=${1%.*}.lo\ 17086} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 17087 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17088 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17089test 0 -eq $? || _lt_function_replace_fail=: 17090 17091 17092 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 17093func_arith ()\ 17094{\ 17095 func_arith_result=$(( $* ))\ 17096} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 17097 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17098 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17099test 0 -eq $? || _lt_function_replace_fail=: 17100 17101 17102 sed -e '/^func_len ()$/,/^} # func_len /c\ 17103func_len ()\ 17104{\ 17105 func_len_result=${#1}\ 17106} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 17107 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17108 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17109test 0 -eq $? || _lt_function_replace_fail=: 17110 17111fi 17112 17113if test x"$lt_shell_append" = xyes; then 17114 sed -e '/^func_append ()$/,/^} # func_append /c\ 17115func_append ()\ 17116{\ 17117 eval "${1}+=\\${2}"\ 17118} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 17119 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17120 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17121test 0 -eq $? || _lt_function_replace_fail=: 17122 17123 17124 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 17125func_append_quoted ()\ 17126{\ 17127\ func_quote_for_eval "${2}"\ 17128\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 17129} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 17130 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17131 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17132test 0 -eq $? || _lt_function_replace_fail=: 17133 17134 17135 # Save a `func_append' function call where possible by direct use of '+=' 17136 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 17137 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17138 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17139 test 0 -eq $? || _lt_function_replace_fail=: 17140else 17141 # Save a `func_append' function call even when '+=' is not available 17142 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 17143 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17144 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17145 test 0 -eq $? || _lt_function_replace_fail=: 17146fi 17147 17148if test x"$_lt_function_replace_fail" = x":"; then 17149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 17150$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 17151fi 17152 17153 17154 mv -f "$cfgfile" "$ofile" || 17155 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 17156 chmod +x "$ofile" 17157 17158 ;; 17159 "tests/test-discoverer.sh":F) chmod a+x tests/test-discoverer.sh ;; 17160 17161 esac 17162done # for ac_tag 17163 17164 17165as_fn_exit 0 17166_ACEOF 17167ac_clean_files=$ac_clean_files_save 17168 17169test $ac_write_fail = 0 || 17170 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 17171 17172 17173# configure is writing to config.log, and then calls config.status. 17174# config.status does its own redirection, appending to config.log. 17175# Unfortunately, on DOS this fails, as config.log is still kept open 17176# by configure, so config.status won't be able to write to it; its 17177# output is simply discarded. So we exec the FD to /dev/null, 17178# effectively closing config.log, so it can be properly (re)opened and 17179# appended to by config.status. When coming back to configure, we 17180# need to make the FD available again. 17181if test "$no_create" != yes; then 17182 ac_cs_success=: 17183 ac_config_status_args= 17184 test "$silent" = yes && 17185 ac_config_status_args="$ac_config_status_args --quiet" 17186 exec 5>/dev/null 17187 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17188 exec 5>>config.log 17189 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17190 # would make configure fail if this is the last instruction. 17191 $ac_cs_success || as_fn_exit 1 17192fi 17193if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17195$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17196fi 17197 17198 17199echo 17200echo 'Configuration status:' 17201echo 17202echo "GObject-Introspection: $found_introspection" 17203echo "VALA bindings: $have_vapigen" 17204echo "Default metadata backend: $with_default_metadata_backend" 17205echo "Default metadata backend directory: $with_default_metadata_backend_dir" 17206echo "Build GStreamer metadata backend: $enable_gstreamer_metadata_backend" 17207echo "Build legacy GStreamer metadata backend: $enable_legacy_gstreamer_metadata_backend" 17208echo 17209