1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libdvdread 6.1.2. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199 200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 PATH=/empty FPATH=/empty; export PATH FPATH 205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 207test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME='libdvdread' 589PACKAGE_TARNAME='libdvdread' 590PACKAGE_VERSION='6.1.2' 591PACKAGE_STRING='libdvdread 6.1.2' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595ac_unique_file="src/dvd_reader.c" 596# Factoring default headers for most tests. 597ac_includes_default="\ 598#include <stdio.h> 599#ifdef HAVE_SYS_TYPES_H 600# include <sys/types.h> 601#endif 602#ifdef HAVE_SYS_STAT_H 603# include <sys/stat.h> 604#endif 605#ifdef STDC_HEADERS 606# include <stdlib.h> 607# include <stddef.h> 608#else 609# ifdef HAVE_STDLIB_H 610# include <stdlib.h> 611# endif 612#endif 613#ifdef HAVE_STRING_H 614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 615# include <memory.h> 616# endif 617# include <string.h> 618#endif 619#ifdef HAVE_STRINGS_H 620# include <strings.h> 621#endif 622#ifdef HAVE_INTTYPES_H 623# include <inttypes.h> 624#endif 625#ifdef HAVE_STDINT_H 626# include <stdint.h> 627#endif 628#ifdef HAVE_UNISTD_H 629# include <unistd.h> 630#endif" 631 632ac_header_list= 633ac_subst_vars='am__EXEEXT_FALSE 634am__EXEEXT_TRUE 635LTLIBOBJS 636LIBOBJS 637DVDREAD_VERSION_MICRO 638DVDREAD_VERSION_MINOR 639DVDREAD_VERSION_MAJOR 640APIDOC_FALSE 641APIDOC_TRUE 642DOXYGEN 643CSS_REQUIRES 644CSS_LIBS 645CSS_CFLAGS 646PKG_CONFIG_LIBDIR 647PKG_CONFIG_PATH 648PKG_CONFIG 649DVDREAD_LTVERSION 650CPP 651LT_SYS_LIBRARY_PATH 652OTOOL64 653OTOOL 654LIPO 655NMEDIT 656DSYMUTIL 657MANIFEST_TOOL 658RANLIB 659ac_ct_AR 660AR 661DLLTOOL 662OBJDUMP 663LN_S 664NM 665ac_ct_DUMPBIN 666DUMPBIN 667LD 668FGREP 669EGREP 670GREP 671SED 672am__fastdepCC_FALSE 673am__fastdepCC_TRUE 674CCDEPMODE 675am__nodep 676AMDEPBACKSLASH 677AMDEP_FALSE 678AMDEP_TRUE 679am__include 680DEPDIR 681OBJEXT 682EXEEXT 683ac_ct_CC 684CPPFLAGS 685LDFLAGS 686CFLAGS 687CC 688LIBTOOL 689MAINT 690MAINTAINER_MODE_FALSE 691MAINTAINER_MODE_TRUE 692AM_BACKSLASH 693AM_DEFAULT_VERBOSITY 694AM_DEFAULT_V 695AM_V 696am__untar 697am__tar 698AMTAR 699am__leading_dot 700SET_MAKE 701AWK 702mkdir_p 703MKDIR_P 704INSTALL_STRIP_PROGRAM 705STRIP 706install_sh 707MAKEINFO 708AUTOHEADER 709AUTOMAKE 710AUTOCONF 711ACLOCAL 712VERSION 713PACKAGE 714CYGPATH_W 715am__isrc 716INSTALL_DATA 717INSTALL_SCRIPT 718INSTALL_PROGRAM 719host_os 720host_vendor 721host_cpu 722host 723build_os 724build_vendor 725build_cpu 726build 727target_alias 728host_alias 729build_alias 730LIBS 731ECHO_T 732ECHO_N 733ECHO_C 734DEFS 735mandir 736localedir 737libdir 738psdir 739pdfdir 740dvidir 741htmldir 742infodir 743docdir 744oldincludedir 745includedir 746runstatedir 747localstatedir 748sharedstatedir 749sysconfdir 750datadir 751datarootdir 752libexecdir 753sbindir 754bindir 755program_transform_name 756prefix 757exec_prefix 758PACKAGE_URL 759PACKAGE_BUGREPORT 760PACKAGE_STRING 761PACKAGE_VERSION 762PACKAGE_TARNAME 763PACKAGE_NAME 764PATH_SEPARATOR 765SHELL 766am__quote' 767ac_subst_files='' 768ac_user_opts=' 769enable_option_checking 770enable_silent_rules 771enable_maintainer_mode 772enable_shared 773enable_static 774with_pic 775enable_fast_install 776with_aix_soname 777enable_dependency_tracking 778with_gnu_ld 779with_sysroot 780enable_libtool_lock 781enable_largefile 782with_libdvdcss 783enable_dlfcn 784enable_apidoc 785' 786 ac_precious_vars='build_alias 787host_alias 788target_alias 789CC 790CFLAGS 791LDFLAGS 792LIBS 793CPPFLAGS 794LT_SYS_LIBRARY_PATH 795CPP 796PKG_CONFIG 797PKG_CONFIG_PATH 798PKG_CONFIG_LIBDIR 799CSS_CFLAGS 800CSS_LIBS' 801 802 803# Initialize some variables set by options. 804ac_init_help= 805ac_init_version=false 806ac_unrecognized_opts= 807ac_unrecognized_sep= 808# The variables have the same names as the options, with 809# dashes changed to underlines. 810cache_file=/dev/null 811exec_prefix=NONE 812no_create= 813no_recursion= 814prefix=NONE 815program_prefix=NONE 816program_suffix=NONE 817program_transform_name=s,x,x, 818silent= 819site= 820srcdir= 821verbose= 822x_includes=NONE 823x_libraries=NONE 824 825# Installation directory options. 826# These are left unexpanded so users can "make install exec_prefix=/foo" 827# and all the variables that are supposed to be based on exec_prefix 828# by default will actually change. 829# Use braces instead of parens because sh, perl, etc. also accept them. 830# (The list follows the same order as the GNU Coding Standards.) 831bindir='${exec_prefix}/bin' 832sbindir='${exec_prefix}/sbin' 833libexecdir='${exec_prefix}/libexec' 834datarootdir='${prefix}/share' 835datadir='${datarootdir}' 836sysconfdir='${prefix}/etc' 837sharedstatedir='${prefix}/com' 838localstatedir='${prefix}/var' 839runstatedir='${localstatedir}/run' 840includedir='${prefix}/include' 841oldincludedir='/usr/include' 842docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 843infodir='${datarootdir}/info' 844htmldir='${docdir}' 845dvidir='${docdir}' 846pdfdir='${docdir}' 847psdir='${docdir}' 848libdir='${exec_prefix}/lib' 849localedir='${datarootdir}/locale' 850mandir='${datarootdir}/man' 851 852ac_prev= 853ac_dashdash= 854for ac_option 855do 856 # If the previous option needs an argument, assign it. 857 if test -n "$ac_prev"; then 858 eval $ac_prev=\$ac_option 859 ac_prev= 860 continue 861 fi 862 863 case $ac_option in 864 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 865 *=) ac_optarg= ;; 866 *) ac_optarg=yes ;; 867 esac 868 869 # Accept the important Cygnus configure options, so we can diagnose typos. 870 871 case $ac_dashdash$ac_option in 872 --) 873 ac_dashdash=yes ;; 874 875 -bindir | --bindir | --bindi | --bind | --bin | --bi) 876 ac_prev=bindir ;; 877 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 878 bindir=$ac_optarg ;; 879 880 -build | --build | --buil | --bui | --bu) 881 ac_prev=build_alias ;; 882 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 883 build_alias=$ac_optarg ;; 884 885 -cache-file | --cache-file | --cache-fil | --cache-fi \ 886 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 887 ac_prev=cache_file ;; 888 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 889 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 890 cache_file=$ac_optarg ;; 891 892 --config-cache | -C) 893 cache_file=config.cache ;; 894 895 -datadir | --datadir | --datadi | --datad) 896 ac_prev=datadir ;; 897 -datadir=* | --datadir=* | --datadi=* | --datad=*) 898 datadir=$ac_optarg ;; 899 900 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 901 | --dataroo | --dataro | --datar) 902 ac_prev=datarootdir ;; 903 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 904 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 905 datarootdir=$ac_optarg ;; 906 907 -disable-* | --disable-*) 908 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 909 # Reject names that are not valid shell variable names. 910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 911 as_fn_error $? "invalid feature name: $ac_useropt" 912 ac_useropt_orig=$ac_useropt 913 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 914 case $ac_user_opts in 915 *" 916"enable_$ac_useropt" 917"*) ;; 918 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 919 ac_unrecognized_sep=', ';; 920 esac 921 eval enable_$ac_useropt=no ;; 922 923 -docdir | --docdir | --docdi | --doc | --do) 924 ac_prev=docdir ;; 925 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 926 docdir=$ac_optarg ;; 927 928 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 929 ac_prev=dvidir ;; 930 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 931 dvidir=$ac_optarg ;; 932 933 -enable-* | --enable-*) 934 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 935 # Reject names that are not valid shell variable names. 936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 937 as_fn_error $? "invalid feature name: $ac_useropt" 938 ac_useropt_orig=$ac_useropt 939 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 940 case $ac_user_opts in 941 *" 942"enable_$ac_useropt" 943"*) ;; 944 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 945 ac_unrecognized_sep=', ';; 946 esac 947 eval enable_$ac_useropt=\$ac_optarg ;; 948 949 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 950 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 951 | --exec | --exe | --ex) 952 ac_prev=exec_prefix ;; 953 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 954 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 955 | --exec=* | --exe=* | --ex=*) 956 exec_prefix=$ac_optarg ;; 957 958 -gas | --gas | --ga | --g) 959 # Obsolete; use --with-gas. 960 with_gas=yes ;; 961 962 -help | --help | --hel | --he | -h) 963 ac_init_help=long ;; 964 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 965 ac_init_help=recursive ;; 966 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 967 ac_init_help=short ;; 968 969 -host | --host | --hos | --ho) 970 ac_prev=host_alias ;; 971 -host=* | --host=* | --hos=* | --ho=*) 972 host_alias=$ac_optarg ;; 973 974 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 975 ac_prev=htmldir ;; 976 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 977 | --ht=*) 978 htmldir=$ac_optarg ;; 979 980 -includedir | --includedir | --includedi | --included | --include \ 981 | --includ | --inclu | --incl | --inc) 982 ac_prev=includedir ;; 983 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 984 | --includ=* | --inclu=* | --incl=* | --inc=*) 985 includedir=$ac_optarg ;; 986 987 -infodir | --infodir | --infodi | --infod | --info | --inf) 988 ac_prev=infodir ;; 989 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 990 infodir=$ac_optarg ;; 991 992 -libdir | --libdir | --libdi | --libd) 993 ac_prev=libdir ;; 994 -libdir=* | --libdir=* | --libdi=* | --libd=*) 995 libdir=$ac_optarg ;; 996 997 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 998 | --libexe | --libex | --libe) 999 ac_prev=libexecdir ;; 1000 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1001 | --libexe=* | --libex=* | --libe=*) 1002 libexecdir=$ac_optarg ;; 1003 1004 -localedir | --localedir | --localedi | --localed | --locale) 1005 ac_prev=localedir ;; 1006 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1007 localedir=$ac_optarg ;; 1008 1009 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1010 | --localstate | --localstat | --localsta | --localst | --locals) 1011 ac_prev=localstatedir ;; 1012 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1013 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1014 localstatedir=$ac_optarg ;; 1015 1016 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1017 ac_prev=mandir ;; 1018 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1019 mandir=$ac_optarg ;; 1020 1021 -nfp | --nfp | --nf) 1022 # Obsolete; use --without-fp. 1023 with_fp=no ;; 1024 1025 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1026 | --no-cr | --no-c | -n) 1027 no_create=yes ;; 1028 1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1031 no_recursion=yes ;; 1032 1033 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1034 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1035 | --oldin | --oldi | --old | --ol | --o) 1036 ac_prev=oldincludedir ;; 1037 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1038 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1039 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1040 oldincludedir=$ac_optarg ;; 1041 1042 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1043 ac_prev=prefix ;; 1044 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1045 prefix=$ac_optarg ;; 1046 1047 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1048 | --program-pre | --program-pr | --program-p) 1049 ac_prev=program_prefix ;; 1050 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1051 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1052 program_prefix=$ac_optarg ;; 1053 1054 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1055 | --program-suf | --program-su | --program-s) 1056 ac_prev=program_suffix ;; 1057 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1058 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1059 program_suffix=$ac_optarg ;; 1060 1061 -program-transform-name | --program-transform-name \ 1062 | --program-transform-nam | --program-transform-na \ 1063 | --program-transform-n | --program-transform- \ 1064 | --program-transform | --program-transfor \ 1065 | --program-transfo | --program-transf \ 1066 | --program-trans | --program-tran \ 1067 | --progr-tra | --program-tr | --program-t) 1068 ac_prev=program_transform_name ;; 1069 -program-transform-name=* | --program-transform-name=* \ 1070 | --program-transform-nam=* | --program-transform-na=* \ 1071 | --program-transform-n=* | --program-transform-=* \ 1072 | --program-transform=* | --program-transfor=* \ 1073 | --program-transfo=* | --program-transf=* \ 1074 | --program-trans=* | --program-tran=* \ 1075 | --progr-tra=* | --program-tr=* | --program-t=*) 1076 program_transform_name=$ac_optarg ;; 1077 1078 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1079 ac_prev=pdfdir ;; 1080 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1081 pdfdir=$ac_optarg ;; 1082 1083 -psdir | --psdir | --psdi | --psd | --ps) 1084 ac_prev=psdir ;; 1085 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1086 psdir=$ac_optarg ;; 1087 1088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1089 | -silent | --silent | --silen | --sile | --sil) 1090 silent=yes ;; 1091 1092 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1093 | --runstate | --runstat | --runsta | --runst | --runs \ 1094 | --run | --ru | --r) 1095 ac_prev=runstatedir ;; 1096 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1097 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1098 | --run=* | --ru=* | --r=*) 1099 runstatedir=$ac_optarg ;; 1100 1101 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1102 ac_prev=sbindir ;; 1103 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1104 | --sbi=* | --sb=*) 1105 sbindir=$ac_optarg ;; 1106 1107 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1108 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1109 | --sharedst | --shareds | --shared | --share | --shar \ 1110 | --sha | --sh) 1111 ac_prev=sharedstatedir ;; 1112 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1113 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1114 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1115 | --sha=* | --sh=*) 1116 sharedstatedir=$ac_optarg ;; 1117 1118 -site | --site | --sit) 1119 ac_prev=site ;; 1120 -site=* | --site=* | --sit=*) 1121 site=$ac_optarg ;; 1122 1123 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1124 ac_prev=srcdir ;; 1125 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1126 srcdir=$ac_optarg ;; 1127 1128 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1129 | --syscon | --sysco | --sysc | --sys | --sy) 1130 ac_prev=sysconfdir ;; 1131 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1132 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1133 sysconfdir=$ac_optarg ;; 1134 1135 -target | --target | --targe | --targ | --tar | --ta | --t) 1136 ac_prev=target_alias ;; 1137 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1138 target_alias=$ac_optarg ;; 1139 1140 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1141 verbose=yes ;; 1142 1143 -version | --version | --versio | --versi | --vers | -V) 1144 ac_init_version=: ;; 1145 1146 -with-* | --with-*) 1147 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1148 # Reject names that are not valid shell variable names. 1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1150 as_fn_error $? "invalid package name: $ac_useropt" 1151 ac_useropt_orig=$ac_useropt 1152 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1153 case $ac_user_opts in 1154 *" 1155"with_$ac_useropt" 1156"*) ;; 1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1158 ac_unrecognized_sep=', ';; 1159 esac 1160 eval with_$ac_useropt=\$ac_optarg ;; 1161 1162 -without-* | --without-*) 1163 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1164 # Reject names that are not valid shell variable names. 1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1166 as_fn_error $? "invalid package name: $ac_useropt" 1167 ac_useropt_orig=$ac_useropt 1168 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1169 case $ac_user_opts in 1170 *" 1171"with_$ac_useropt" 1172"*) ;; 1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1174 ac_unrecognized_sep=', ';; 1175 esac 1176 eval with_$ac_useropt=no ;; 1177 1178 --x) 1179 # Obsolete; use --with-x. 1180 with_x=yes ;; 1181 1182 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1183 | --x-incl | --x-inc | --x-in | --x-i) 1184 ac_prev=x_includes ;; 1185 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1186 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1187 x_includes=$ac_optarg ;; 1188 1189 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1190 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1191 ac_prev=x_libraries ;; 1192 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1193 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1194 x_libraries=$ac_optarg ;; 1195 1196 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1197Try \`$0 --help' for more information" 1198 ;; 1199 1200 *=*) 1201 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1202 # Reject names that are not valid shell variable names. 1203 case $ac_envvar in #( 1204 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1205 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1206 esac 1207 eval $ac_envvar=\$ac_optarg 1208 export $ac_envvar ;; 1209 1210 *) 1211 # FIXME: should be removed in autoconf 3.0. 1212 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1213 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1214 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1215 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1216 ;; 1217 1218 esac 1219done 1220 1221if test -n "$ac_prev"; then 1222 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1223 as_fn_error $? "missing argument to $ac_option" 1224fi 1225 1226if test -n "$ac_unrecognized_opts"; then 1227 case $enable_option_checking in 1228 no) ;; 1229 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1230 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1231 esac 1232fi 1233 1234# Check all directory arguments for consistency. 1235for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1236 datadir sysconfdir sharedstatedir localstatedir includedir \ 1237 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1238 libdir localedir mandir runstatedir 1239do 1240 eval ac_val=\$$ac_var 1241 # Remove trailing slashes. 1242 case $ac_val in 1243 */ ) 1244 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1245 eval $ac_var=\$ac_val;; 1246 esac 1247 # Be sure to have absolute directory names. 1248 case $ac_val in 1249 [\\/$]* | ?:[\\/]* ) continue;; 1250 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1251 esac 1252 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1253done 1254 1255# There might be people who depend on the old broken behavior: `$host' 1256# used to hold the argument of --host etc. 1257# FIXME: To remove some day. 1258build=$build_alias 1259host=$host_alias 1260target=$target_alias 1261 1262# FIXME: To remove some day. 1263if test "x$host_alias" != x; then 1264 if test "x$build_alias" = x; then 1265 cross_compiling=maybe 1266 elif test "x$build_alias" != "x$host_alias"; then 1267 cross_compiling=yes 1268 fi 1269fi 1270 1271ac_tool_prefix= 1272test -n "$host_alias" && ac_tool_prefix=$host_alias- 1273 1274test "$silent" = yes && exec 6>/dev/null 1275 1276 1277ac_pwd=`pwd` && test -n "$ac_pwd" && 1278ac_ls_di=`ls -di .` && 1279ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1280 as_fn_error $? "working directory cannot be determined" 1281test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1282 as_fn_error $? "pwd does not report name of working directory" 1283 1284 1285# Find the source files, if location was not specified. 1286if test -z "$srcdir"; then 1287 ac_srcdir_defaulted=yes 1288 # Try the directory containing this script, then the parent directory. 1289 ac_confdir=`$as_dirname -- "$as_myself" || 1290$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1291 X"$as_myself" : 'X\(//\)[^/]' \| \ 1292 X"$as_myself" : 'X\(//\)$' \| \ 1293 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1294$as_echo X"$as_myself" | 1295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1296 s//\1/ 1297 q 1298 } 1299 /^X\(\/\/\)[^/].*/{ 1300 s//\1/ 1301 q 1302 } 1303 /^X\(\/\/\)$/{ 1304 s//\1/ 1305 q 1306 } 1307 /^X\(\/\).*/{ 1308 s//\1/ 1309 q 1310 } 1311 s/.*/./; q'` 1312 srcdir=$ac_confdir 1313 if test ! -r "$srcdir/$ac_unique_file"; then 1314 srcdir=.. 1315 fi 1316else 1317 ac_srcdir_defaulted=no 1318fi 1319if test ! -r "$srcdir/$ac_unique_file"; then 1320 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1321 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1322fi 1323ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1324ac_abs_confdir=`( 1325 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1326 pwd)` 1327# When building in place, set srcdir=. 1328if test "$ac_abs_confdir" = "$ac_pwd"; then 1329 srcdir=. 1330fi 1331# Remove unnecessary trailing slashes from srcdir. 1332# Double slashes in file names in object file debugging info 1333# mess up M-x gdb in Emacs. 1334case $srcdir in 1335*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1336esac 1337for ac_var in $ac_precious_vars; do 1338 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1339 eval ac_env_${ac_var}_value=\$${ac_var} 1340 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1341 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1342done 1343 1344# 1345# Report the --help message. 1346# 1347if test "$ac_init_help" = "long"; then 1348 # Omit some internal or obsolete options to make the list less imposing. 1349 # This message is too long to be a string in the A/UX 3.1 sh. 1350 cat <<_ACEOF 1351\`configure' configures libdvdread 6.1.2 to adapt to many kinds of systems. 1352 1353Usage: $0 [OPTION]... [VAR=VALUE]... 1354 1355To assign environment variables (e.g., CC, CFLAGS...), specify them as 1356VAR=VALUE. See below for descriptions of some of the useful variables. 1357 1358Defaults for the options are specified in brackets. 1359 1360Configuration: 1361 -h, --help display this help and exit 1362 --help=short display options specific to this package 1363 --help=recursive display the short help of all the included packages 1364 -V, --version display version information and exit 1365 -q, --quiet, --silent do not print \`checking ...' messages 1366 --cache-file=FILE cache test results in FILE [disabled] 1367 -C, --config-cache alias for \`--cache-file=config.cache' 1368 -n, --no-create do not create output files 1369 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1370 1371Installation directories: 1372 --prefix=PREFIX install architecture-independent files in PREFIX 1373 [$ac_default_prefix] 1374 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1375 [PREFIX] 1376 1377By default, \`make install' will install all the files in 1378\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1379an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1380for instance \`--prefix=\$HOME'. 1381 1382For better control, use the options below. 1383 1384Fine tuning of the installation directories: 1385 --bindir=DIR user executables [EPREFIX/bin] 1386 --sbindir=DIR system admin executables [EPREFIX/sbin] 1387 --libexecdir=DIR program executables [EPREFIX/libexec] 1388 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1389 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1390 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1391 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1392 --libdir=DIR object code libraries [EPREFIX/lib] 1393 --includedir=DIR C header files [PREFIX/include] 1394 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1395 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1396 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1397 --infodir=DIR info documentation [DATAROOTDIR/info] 1398 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1399 --mandir=DIR man documentation [DATAROOTDIR/man] 1400 --docdir=DIR documentation root [DATAROOTDIR/doc/libdvdread] 1401 --htmldir=DIR html documentation [DOCDIR] 1402 --dvidir=DIR dvi documentation [DOCDIR] 1403 --pdfdir=DIR pdf documentation [DOCDIR] 1404 --psdir=DIR ps documentation [DOCDIR] 1405_ACEOF 1406 1407 cat <<\_ACEOF 1408 1409Program names: 1410 --program-prefix=PREFIX prepend PREFIX to installed program names 1411 --program-suffix=SUFFIX append SUFFIX to installed program names 1412 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1413 1414System types: 1415 --build=BUILD configure for building on BUILD [guessed] 1416 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1417_ACEOF 1418fi 1419 1420if test -n "$ac_init_help"; then 1421 case $ac_init_help in 1422 short | recursive ) echo "Configuration of libdvdread 6.1.2:";; 1423 esac 1424 cat <<\_ACEOF 1425 1426Optional Features: 1427 --disable-option-checking ignore unrecognized --enable/--with options 1428 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1429 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1430 --enable-silent-rules less verbose build output (undo: "make V=1") 1431 --disable-silent-rules verbose build output (undo: "make V=0") 1432 --disable-maintainer-mode 1433 disable make rules and dependencies not useful (and 1434 sometimes confusing) to the casual installer 1435 --enable-shared[=PKGS] build shared libraries [default=yes] 1436 --enable-static[=PKGS] build static libraries [default=yes] 1437 --enable-fast-install[=PKGS] 1438 optimize for fast installation [default=yes] 1439 --enable-dependency-tracking 1440 do not reject slow dependency extractors 1441 --disable-dependency-tracking 1442 speeds up one-time build 1443 --disable-libtool-lock avoid locking (might break parallel builds) 1444 --disable-largefile omit support for large files 1445 --enable-dlfcn use builtin dlfcn for mingw (default is auto) 1446 --disable-apidoc Disable building (with Doxygen) and intalling API 1447 documentation [default=auto@:@> 1448 1449Optional Packages: 1450 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1451 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1452 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1453 both] 1454 --with-aix-soname=aix|svr4|both 1455 shared library versioning (aka "SONAME") variant to 1456 provide on AIX, [default=aix]. 1457 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1458 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1459 compiler's sysroot if not specified). 1460 --with-libdvdcss Link directly against libdvdcss [default=no] 1461 1462Some influential environment variables: 1463 CC C compiler command 1464 CFLAGS C compiler flags 1465 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1466 nonstandard directory <lib dir> 1467 LIBS libraries to pass to the linker, e.g. -l<library> 1468 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1469 you have headers in a nonstandard directory <include dir> 1470 LT_SYS_LIBRARY_PATH 1471 User-defined run-time library search path. 1472 CPP C preprocessor 1473 PKG_CONFIG path to pkg-config utility 1474 PKG_CONFIG_PATH 1475 directories to add to pkg-config's search path 1476 PKG_CONFIG_LIBDIR 1477 path overriding pkg-config's built-in search path 1478 CSS_CFLAGS C compiler flags for CSS, overriding pkg-config 1479 CSS_LIBS linker flags for CSS, overriding pkg-config 1480 1481Use these variables to override the choices made by `configure' or to help 1482it to find libraries and programs with nonstandard names/locations. 1483 1484Report bugs to the package provider. 1485_ACEOF 1486ac_status=$? 1487fi 1488 1489if test "$ac_init_help" = "recursive"; then 1490 # If there are subdirs, report their specific --help. 1491 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1492 test -d "$ac_dir" || 1493 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1494 continue 1495 ac_builddir=. 1496 1497case "$ac_dir" in 1498.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1499*) 1500 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1501 # A ".." for each directory in $ac_dir_suffix. 1502 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1503 case $ac_top_builddir_sub in 1504 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1505 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1506 esac ;; 1507esac 1508ac_abs_top_builddir=$ac_pwd 1509ac_abs_builddir=$ac_pwd$ac_dir_suffix 1510# for backward compatibility: 1511ac_top_builddir=$ac_top_build_prefix 1512 1513case $srcdir in 1514 .) # We are building in place. 1515 ac_srcdir=. 1516 ac_top_srcdir=$ac_top_builddir_sub 1517 ac_abs_top_srcdir=$ac_pwd ;; 1518 [\\/]* | ?:[\\/]* ) # Absolute name. 1519 ac_srcdir=$srcdir$ac_dir_suffix; 1520 ac_top_srcdir=$srcdir 1521 ac_abs_top_srcdir=$srcdir ;; 1522 *) # Relative name. 1523 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1524 ac_top_srcdir=$ac_top_build_prefix$srcdir 1525 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1526esac 1527ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1528 1529 cd "$ac_dir" || { ac_status=$?; continue; } 1530 # Check for guested configure. 1531 if test -f "$ac_srcdir/configure.gnu"; then 1532 echo && 1533 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1534 elif test -f "$ac_srcdir/configure"; then 1535 echo && 1536 $SHELL "$ac_srcdir/configure" --help=recursive 1537 else 1538 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1539 fi || ac_status=$? 1540 cd "$ac_pwd" || { ac_status=$?; break; } 1541 done 1542fi 1543 1544test -n "$ac_init_help" && exit $ac_status 1545if $ac_init_version; then 1546 cat <<\_ACEOF 1547libdvdread configure 6.1.2 1548generated by GNU Autoconf 2.69 1549 1550Copyright (C) 2012 Free Software Foundation, Inc. 1551This configure script is free software; the Free Software Foundation 1552gives unlimited permission to copy, distribute and modify it. 1553_ACEOF 1554 exit 1555fi 1556 1557## ------------------------ ## 1558## Autoconf initialization. ## 1559## ------------------------ ## 1560 1561# ac_fn_c_try_compile LINENO 1562# -------------------------- 1563# Try to compile conftest.$ac_ext, and return whether this succeeded. 1564ac_fn_c_try_compile () 1565{ 1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1567 rm -f conftest.$ac_objext 1568 if { { ac_try="$ac_compile" 1569case "(($ac_try" in 1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1571 *) ac_try_echo=$ac_try;; 1572esac 1573eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1574$as_echo "$ac_try_echo"; } >&5 1575 (eval "$ac_compile") 2>conftest.err 1576 ac_status=$? 1577 if test -s conftest.err; then 1578 grep -v '^ *+' conftest.err >conftest.er1 1579 cat conftest.er1 >&5 1580 mv -f conftest.er1 conftest.err 1581 fi 1582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1583 test $ac_status = 0; } && { 1584 test -z "$ac_c_werror_flag" || 1585 test ! -s conftest.err 1586 } && test -s conftest.$ac_objext; then : 1587 ac_retval=0 1588else 1589 $as_echo "$as_me: failed program was:" >&5 1590sed 's/^/| /' conftest.$ac_ext >&5 1591 1592 ac_retval=1 1593fi 1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1595 as_fn_set_status $ac_retval 1596 1597} # ac_fn_c_try_compile 1598 1599# ac_fn_c_try_link LINENO 1600# ----------------------- 1601# Try to link conftest.$ac_ext, and return whether this succeeded. 1602ac_fn_c_try_link () 1603{ 1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1605 rm -f conftest.$ac_objext conftest$ac_exeext 1606 if { { ac_try="$ac_link" 1607case "(($ac_try" in 1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1609 *) ac_try_echo=$ac_try;; 1610esac 1611eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1612$as_echo "$ac_try_echo"; } >&5 1613 (eval "$ac_link") 2>conftest.err 1614 ac_status=$? 1615 if test -s conftest.err; then 1616 grep -v '^ *+' conftest.err >conftest.er1 1617 cat conftest.er1 >&5 1618 mv -f conftest.er1 conftest.err 1619 fi 1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1621 test $ac_status = 0; } && { 1622 test -z "$ac_c_werror_flag" || 1623 test ! -s conftest.err 1624 } && test -s conftest$ac_exeext && { 1625 test "$cross_compiling" = yes || 1626 test -x conftest$ac_exeext 1627 }; then : 1628 ac_retval=0 1629else 1630 $as_echo "$as_me: failed program was:" >&5 1631sed 's/^/| /' conftest.$ac_ext >&5 1632 1633 ac_retval=1 1634fi 1635 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1636 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1637 # interfere with the next link command; also delete a directory that is 1638 # left behind by Apple's compiler. We do this before executing the actions. 1639 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1641 as_fn_set_status $ac_retval 1642 1643} # ac_fn_c_try_link 1644 1645# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1646# ------------------------------------------------------- 1647# Tests whether HEADER exists and can be compiled using the include files in 1648# INCLUDES, setting the cache variable VAR accordingly. 1649ac_fn_c_check_header_compile () 1650{ 1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1653$as_echo_n "checking for $2... " >&6; } 1654if eval \${$3+:} false; then : 1655 $as_echo_n "(cached) " >&6 1656else 1657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1658/* end confdefs.h. */ 1659$4 1660#include <$2> 1661_ACEOF 1662if ac_fn_c_try_compile "$LINENO"; then : 1663 eval "$3=yes" 1664else 1665 eval "$3=no" 1666fi 1667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1668fi 1669eval ac_res=\$$3 1670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1671$as_echo "$ac_res" >&6; } 1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1673 1674} # ac_fn_c_check_header_compile 1675 1676# ac_fn_c_try_cpp LINENO 1677# ---------------------- 1678# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1679ac_fn_c_try_cpp () 1680{ 1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1682 if { { ac_try="$ac_cpp conftest.$ac_ext" 1683case "(($ac_try" in 1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1685 *) ac_try_echo=$ac_try;; 1686esac 1687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1688$as_echo "$ac_try_echo"; } >&5 1689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1690 ac_status=$? 1691 if test -s conftest.err; then 1692 grep -v '^ *+' conftest.err >conftest.er1 1693 cat conftest.er1 >&5 1694 mv -f conftest.er1 conftest.err 1695 fi 1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1697 test $ac_status = 0; } > conftest.i && { 1698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1699 test ! -s conftest.err 1700 }; then : 1701 ac_retval=0 1702else 1703 $as_echo "$as_me: failed program was:" >&5 1704sed 's/^/| /' conftest.$ac_ext >&5 1705 1706 ac_retval=1 1707fi 1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1709 as_fn_set_status $ac_retval 1710 1711} # ac_fn_c_try_cpp 1712 1713# ac_fn_c_try_run LINENO 1714# ---------------------- 1715# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1716# that executables *can* be run. 1717ac_fn_c_try_run () 1718{ 1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1720 if { { ac_try="$ac_link" 1721case "(($ac_try" in 1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1723 *) ac_try_echo=$ac_try;; 1724esac 1725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1726$as_echo "$ac_try_echo"; } >&5 1727 (eval "$ac_link") 2>&5 1728 ac_status=$? 1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1730 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1731 { { case "(($ac_try" in 1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1733 *) ac_try_echo=$ac_try;; 1734esac 1735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1736$as_echo "$ac_try_echo"; } >&5 1737 (eval "$ac_try") 2>&5 1738 ac_status=$? 1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1740 test $ac_status = 0; }; }; then : 1741 ac_retval=0 1742else 1743 $as_echo "$as_me: program exited with status $ac_status" >&5 1744 $as_echo "$as_me: failed program was:" >&5 1745sed 's/^/| /' conftest.$ac_ext >&5 1746 1747 ac_retval=$ac_status 1748fi 1749 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1751 as_fn_set_status $ac_retval 1752 1753} # ac_fn_c_try_run 1754 1755# ac_fn_c_check_func LINENO FUNC VAR 1756# ---------------------------------- 1757# Tests whether FUNC exists, setting the cache variable VAR accordingly 1758ac_fn_c_check_func () 1759{ 1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1762$as_echo_n "checking for $2... " >&6; } 1763if eval \${$3+:} false; then : 1764 $as_echo_n "(cached) " >&6 1765else 1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1767/* end confdefs.h. */ 1768/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1769 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1770#define $2 innocuous_$2 1771 1772/* System header to define __stub macros and hopefully few prototypes, 1773 which can conflict with char $2 (); below. 1774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1775 <limits.h> exists even on freestanding compilers. */ 1776 1777#ifdef __STDC__ 1778# include <limits.h> 1779#else 1780# include <assert.h> 1781#endif 1782 1783#undef $2 1784 1785/* Override any GCC internal prototype to avoid an error. 1786 Use char because int might match the return type of a GCC 1787 builtin and then its argument prototype would still apply. */ 1788#ifdef __cplusplus 1789extern "C" 1790#endif 1791char $2 (); 1792/* The GNU C library defines this for functions which it implements 1793 to always fail with ENOSYS. Some functions are actually named 1794 something starting with __ and the normal name is an alias. */ 1795#if defined __stub_$2 || defined __stub___$2 1796choke me 1797#endif 1798 1799int 1800main () 1801{ 1802return $2 (); 1803 ; 1804 return 0; 1805} 1806_ACEOF 1807if ac_fn_c_try_link "$LINENO"; then : 1808 eval "$3=yes" 1809else 1810 eval "$3=no" 1811fi 1812rm -f core conftest.err conftest.$ac_objext \ 1813 conftest$ac_exeext conftest.$ac_ext 1814fi 1815eval ac_res=\$$3 1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1817$as_echo "$ac_res" >&6; } 1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1819 1820} # ac_fn_c_check_func 1821 1822# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1823# ------------------------------------------------------- 1824# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1825# the include files in INCLUDES and setting the cache variable VAR 1826# accordingly. 1827ac_fn_c_check_header_mongrel () 1828{ 1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1830 if eval \${$3+:} false; then : 1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1832$as_echo_n "checking for $2... " >&6; } 1833if eval \${$3+:} false; then : 1834 $as_echo_n "(cached) " >&6 1835fi 1836eval ac_res=\$$3 1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1838$as_echo "$ac_res" >&6; } 1839else 1840 # Is the header compilable? 1841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1842$as_echo_n "checking $2 usability... " >&6; } 1843cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1844/* end confdefs.h. */ 1845$4 1846#include <$2> 1847_ACEOF 1848if ac_fn_c_try_compile "$LINENO"; then : 1849 ac_header_compiler=yes 1850else 1851 ac_header_compiler=no 1852fi 1853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1855$as_echo "$ac_header_compiler" >&6; } 1856 1857# Is the header present? 1858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1859$as_echo_n "checking $2 presence... " >&6; } 1860cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1861/* end confdefs.h. */ 1862#include <$2> 1863_ACEOF 1864if ac_fn_c_try_cpp "$LINENO"; then : 1865 ac_header_preproc=yes 1866else 1867 ac_header_preproc=no 1868fi 1869rm -f conftest.err conftest.i conftest.$ac_ext 1870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1871$as_echo "$ac_header_preproc" >&6; } 1872 1873# So? What about this header? 1874case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1875 yes:no: ) 1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1877$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1879$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1880 ;; 1881 no:yes:* ) 1882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1883$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1885$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1887$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1889$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1891$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1892 ;; 1893esac 1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1895$as_echo_n "checking for $2... " >&6; } 1896if eval \${$3+:} false; then : 1897 $as_echo_n "(cached) " >&6 1898else 1899 eval "$3=\$ac_header_compiler" 1900fi 1901eval ac_res=\$$3 1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1903$as_echo "$ac_res" >&6; } 1904fi 1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1906 1907} # ac_fn_c_check_header_mongrel 1908 1909# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1910# --------------------------------------------- 1911# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1912# accordingly. 1913ac_fn_c_check_decl () 1914{ 1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1916 as_decl_name=`echo $2|sed 's/ *(.*//'` 1917 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1919$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1920if eval \${$3+:} false; then : 1921 $as_echo_n "(cached) " >&6 1922else 1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1924/* end confdefs.h. */ 1925$4 1926int 1927main () 1928{ 1929#ifndef $as_decl_name 1930#ifdef __cplusplus 1931 (void) $as_decl_use; 1932#else 1933 (void) $as_decl_name; 1934#endif 1935#endif 1936 1937 ; 1938 return 0; 1939} 1940_ACEOF 1941if ac_fn_c_try_compile "$LINENO"; then : 1942 eval "$3=yes" 1943else 1944 eval "$3=no" 1945fi 1946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1947fi 1948eval ac_res=\$$3 1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1950$as_echo "$ac_res" >&6; } 1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1952 1953} # ac_fn_c_check_decl 1954cat >config.log <<_ACEOF 1955This file contains any messages produced by compilers while 1956running configure, to aid debugging if configure makes a mistake. 1957 1958It was created by libdvdread $as_me 6.1.2, which was 1959generated by GNU Autoconf 2.69. Invocation command line was 1960 1961 $ $0 $@ 1962 1963_ACEOF 1964exec 5>>config.log 1965{ 1966cat <<_ASUNAME 1967## --------- ## 1968## Platform. ## 1969## --------- ## 1970 1971hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1972uname -m = `(uname -m) 2>/dev/null || echo unknown` 1973uname -r = `(uname -r) 2>/dev/null || echo unknown` 1974uname -s = `(uname -s) 2>/dev/null || echo unknown` 1975uname -v = `(uname -v) 2>/dev/null || echo unknown` 1976 1977/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1978/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1979 1980/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1981/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1982/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1983/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1984/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1985/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1986/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1987 1988_ASUNAME 1989 1990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1991for as_dir in $PATH 1992do 1993 IFS=$as_save_IFS 1994 test -z "$as_dir" && as_dir=. 1995 $as_echo "PATH: $as_dir" 1996 done 1997IFS=$as_save_IFS 1998 1999} >&5 2000 2001cat >&5 <<_ACEOF 2002 2003 2004## ----------- ## 2005## Core tests. ## 2006## ----------- ## 2007 2008_ACEOF 2009 2010 2011# Keep a trace of the command line. 2012# Strip out --no-create and --no-recursion so they do not pile up. 2013# Strip out --silent because we don't want to record it for future runs. 2014# Also quote any args containing shell meta-characters. 2015# Make two passes to allow for proper duplicate-argument suppression. 2016ac_configure_args= 2017ac_configure_args0= 2018ac_configure_args1= 2019ac_must_keep_next=false 2020for ac_pass in 1 2 2021do 2022 for ac_arg 2023 do 2024 case $ac_arg in 2025 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2027 | -silent | --silent | --silen | --sile | --sil) 2028 continue ;; 2029 *\'*) 2030 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2031 esac 2032 case $ac_pass in 2033 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2034 2) 2035 as_fn_append ac_configure_args1 " '$ac_arg'" 2036 if test $ac_must_keep_next = true; then 2037 ac_must_keep_next=false # Got value, back to normal. 2038 else 2039 case $ac_arg in 2040 *=* | --config-cache | -C | -disable-* | --disable-* \ 2041 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2042 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2043 | -with-* | --with-* | -without-* | --without-* | --x) 2044 case "$ac_configure_args0 " in 2045 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2046 esac 2047 ;; 2048 -* ) ac_must_keep_next=true ;; 2049 esac 2050 fi 2051 as_fn_append ac_configure_args " '$ac_arg'" 2052 ;; 2053 esac 2054 done 2055done 2056{ ac_configure_args0=; unset ac_configure_args0;} 2057{ ac_configure_args1=; unset ac_configure_args1;} 2058 2059# When interrupted or exit'd, cleanup temporary files, and complete 2060# config.log. We remove comments because anyway the quotes in there 2061# would cause problems or look ugly. 2062# WARNING: Use '\'' to represent an apostrophe within the trap. 2063# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2064trap 'exit_status=$? 2065 # Save into config.log some information that might help in debugging. 2066 { 2067 echo 2068 2069 $as_echo "## ---------------- ## 2070## Cache variables. ## 2071## ---------------- ##" 2072 echo 2073 # The following way of writing the cache mishandles newlines in values, 2074( 2075 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2076 eval ac_val=\$$ac_var 2077 case $ac_val in #( 2078 *${as_nl}*) 2079 case $ac_var in #( 2080 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2081$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2082 esac 2083 case $ac_var in #( 2084 _ | IFS | as_nl) ;; #( 2085 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2086 *) { eval $ac_var=; unset $ac_var;} ;; 2087 esac ;; 2088 esac 2089 done 2090 (set) 2>&1 | 2091 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2092 *${as_nl}ac_space=\ *) 2093 sed -n \ 2094 "s/'\''/'\''\\\\'\'''\''/g; 2095 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2096 ;; #( 2097 *) 2098 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2099 ;; 2100 esac | 2101 sort 2102) 2103 echo 2104 2105 $as_echo "## ----------------- ## 2106## Output variables. ## 2107## ----------------- ##" 2108 echo 2109 for ac_var in $ac_subst_vars 2110 do 2111 eval ac_val=\$$ac_var 2112 case $ac_val in 2113 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2114 esac 2115 $as_echo "$ac_var='\''$ac_val'\''" 2116 done | sort 2117 echo 2118 2119 if test -n "$ac_subst_files"; then 2120 $as_echo "## ------------------- ## 2121## File substitutions. ## 2122## ------------------- ##" 2123 echo 2124 for ac_var in $ac_subst_files 2125 do 2126 eval ac_val=\$$ac_var 2127 case $ac_val in 2128 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2129 esac 2130 $as_echo "$ac_var='\''$ac_val'\''" 2131 done | sort 2132 echo 2133 fi 2134 2135 if test -s confdefs.h; then 2136 $as_echo "## ----------- ## 2137## confdefs.h. ## 2138## ----------- ##" 2139 echo 2140 cat confdefs.h 2141 echo 2142 fi 2143 test "$ac_signal" != 0 && 2144 $as_echo "$as_me: caught signal $ac_signal" 2145 $as_echo "$as_me: exit $exit_status" 2146 } >&5 2147 rm -f core *.core core.conftest.* && 2148 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2149 exit $exit_status 2150' 0 2151for ac_signal in 1 2 13 15; do 2152 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2153done 2154ac_signal=0 2155 2156# confdefs.h avoids OS command line length limits that DEFS can exceed. 2157rm -f -r conftest* confdefs.h 2158 2159$as_echo "/* confdefs.h */" > confdefs.h 2160 2161# Predefined preprocessor variables. 2162 2163cat >>confdefs.h <<_ACEOF 2164#define PACKAGE_NAME "$PACKAGE_NAME" 2165_ACEOF 2166 2167cat >>confdefs.h <<_ACEOF 2168#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2169_ACEOF 2170 2171cat >>confdefs.h <<_ACEOF 2172#define PACKAGE_VERSION "$PACKAGE_VERSION" 2173_ACEOF 2174 2175cat >>confdefs.h <<_ACEOF 2176#define PACKAGE_STRING "$PACKAGE_STRING" 2177_ACEOF 2178 2179cat >>confdefs.h <<_ACEOF 2180#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2181_ACEOF 2182 2183cat >>confdefs.h <<_ACEOF 2184#define PACKAGE_URL "$PACKAGE_URL" 2185_ACEOF 2186 2187 2188# Let the site file select an alternate cache file if it wants to. 2189# Prefer an explicitly selected file to automatically selected ones. 2190ac_site_file1=NONE 2191ac_site_file2=NONE 2192if test -n "$CONFIG_SITE"; then 2193 # We do not want a PATH search for config.site. 2194 case $CONFIG_SITE in #(( 2195 -*) ac_site_file1=./$CONFIG_SITE;; 2196 */*) ac_site_file1=$CONFIG_SITE;; 2197 *) ac_site_file1=./$CONFIG_SITE;; 2198 esac 2199elif test "x$prefix" != xNONE; then 2200 ac_site_file1=$prefix/share/config.site 2201 ac_site_file2=$prefix/etc/config.site 2202else 2203 ac_site_file1=$ac_default_prefix/share/config.site 2204 ac_site_file2=$ac_default_prefix/etc/config.site 2205fi 2206for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2207do 2208 test "x$ac_site_file" = xNONE && continue 2209 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2210 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2211$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2212 sed 's/^/| /' "$ac_site_file" >&5 2213 . "$ac_site_file" \ 2214 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2215$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2216as_fn_error $? "failed to load site script $ac_site_file 2217See \`config.log' for more details" "$LINENO" 5; } 2218 fi 2219done 2220 2221if test -r "$cache_file"; then 2222 # Some versions of bash will fail to source /dev/null (special files 2223 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2224 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2225 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2226$as_echo "$as_me: loading cache $cache_file" >&6;} 2227 case $cache_file in 2228 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2229 *) . "./$cache_file";; 2230 esac 2231 fi 2232else 2233 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2234$as_echo "$as_me: creating cache $cache_file" >&6;} 2235 >$cache_file 2236fi 2237 2238as_fn_append ac_header_list " sys/param.h" 2239as_fn_append ac_header_list " limits.h" 2240as_fn_append ac_header_list " dlfcn.h" 2241# Check that the precious variables saved in the cache have kept the same 2242# value. 2243ac_cache_corrupted=false 2244for ac_var in $ac_precious_vars; do 2245 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2246 eval ac_new_set=\$ac_env_${ac_var}_set 2247 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2248 eval ac_new_val=\$ac_env_${ac_var}_value 2249 case $ac_old_set,$ac_new_set in 2250 set,) 2251 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2252$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2253 ac_cache_corrupted=: ;; 2254 ,set) 2255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2256$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2257 ac_cache_corrupted=: ;; 2258 ,);; 2259 *) 2260 if test "x$ac_old_val" != "x$ac_new_val"; then 2261 # differences in whitespace do not lead to failure. 2262 ac_old_val_w=`echo x $ac_old_val` 2263 ac_new_val_w=`echo x $ac_new_val` 2264 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2266$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2267 ac_cache_corrupted=: 2268 else 2269 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2270$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2271 eval $ac_var=\$ac_old_val 2272 fi 2273 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2274$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2275 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2276$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2277 fi;; 2278 esac 2279 # Pass precious variables to config.status. 2280 if test "$ac_new_set" = set; then 2281 case $ac_new_val in 2282 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2283 *) ac_arg=$ac_var=$ac_new_val ;; 2284 esac 2285 case " $ac_configure_args " in 2286 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2287 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2288 esac 2289 fi 2290done 2291if $ac_cache_corrupted; then 2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2293$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2294 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2295$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2296 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2297fi 2298## -------------------- ## 2299## Main body of script. ## 2300## -------------------- ## 2301 2302ac_ext=c 2303ac_cpp='$CPP $CPPFLAGS' 2304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2306ac_compiler_gnu=$ac_cv_c_compiler_gnu 2307 2308 2309 2310 2311 2312 2313ac_aux_dir= 2314for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2315 if test -f "$ac_dir/install-sh"; then 2316 ac_aux_dir=$ac_dir 2317 ac_install_sh="$ac_aux_dir/install-sh -c" 2318 break 2319 elif test -f "$ac_dir/install.sh"; then 2320 ac_aux_dir=$ac_dir 2321 ac_install_sh="$ac_aux_dir/install.sh -c" 2322 break 2323 elif test -f "$ac_dir/shtool"; then 2324 ac_aux_dir=$ac_dir 2325 ac_install_sh="$ac_aux_dir/shtool install -c" 2326 break 2327 fi 2328done 2329if test -z "$ac_aux_dir"; then 2330 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2331fi 2332 2333# These three variables are undocumented and unsupported, 2334# and are intended to be withdrawn in a future Autoconf release. 2335# They can cause serious problems if a builder's source tree is in a directory 2336# whose full name contains unusual characters. 2337ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2338ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2339ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2340 2341 2342# Make sure we can run config.sub. 2343$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2344 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2345 2346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2347$as_echo_n "checking build system type... " >&6; } 2348if ${ac_cv_build+:} false; then : 2349 $as_echo_n "(cached) " >&6 2350else 2351 ac_build_alias=$build_alias 2352test "x$ac_build_alias" = x && 2353 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2354test "x$ac_build_alias" = x && 2355 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2356ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2357 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2358 2359fi 2360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2361$as_echo "$ac_cv_build" >&6; } 2362case $ac_cv_build in 2363*-*-*) ;; 2364*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2365esac 2366build=$ac_cv_build 2367ac_save_IFS=$IFS; IFS='-' 2368set x $ac_cv_build 2369shift 2370build_cpu=$1 2371build_vendor=$2 2372shift; shift 2373# Remember, the first character of IFS is used to create $*, 2374# except with old shells: 2375build_os=$* 2376IFS=$ac_save_IFS 2377case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2378 2379 2380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2381$as_echo_n "checking host system type... " >&6; } 2382if ${ac_cv_host+:} false; then : 2383 $as_echo_n "(cached) " >&6 2384else 2385 if test "x$host_alias" = x; then 2386 ac_cv_host=$ac_cv_build 2387else 2388 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2389 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2390fi 2391 2392fi 2393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2394$as_echo "$ac_cv_host" >&6; } 2395case $ac_cv_host in 2396*-*-*) ;; 2397*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2398esac 2399host=$ac_cv_host 2400ac_save_IFS=$IFS; IFS='-' 2401set x $ac_cv_host 2402shift 2403host_cpu=$1 2404host_vendor=$2 2405shift; shift 2406# Remember, the first character of IFS is used to create $*, 2407# except with old shells: 2408host_os=$* 2409IFS=$ac_save_IFS 2410case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2411 2412 2413 2414am__api_version='1.16' 2415 2416# Find a good install program. We prefer a C program (faster), 2417# so one script is as good as another. But avoid the broken or 2418# incompatible versions: 2419# SysV /etc/install, /usr/sbin/install 2420# SunOS /usr/etc/install 2421# IRIX /sbin/install 2422# AIX /bin/install 2423# AmigaOS /C/install, which installs bootblocks on floppy discs 2424# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2425# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2426# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2427# OS/2's system install, which has a completely different semantic 2428# ./install, which can be erroneously created by make from ./install.sh. 2429# Reject install programs that cannot install multiple files. 2430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2431$as_echo_n "checking for a BSD-compatible install... " >&6; } 2432if test -z "$INSTALL"; then 2433if ${ac_cv_path_install+:} false; then : 2434 $as_echo_n "(cached) " >&6 2435else 2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2437for as_dir in $PATH 2438do 2439 IFS=$as_save_IFS 2440 test -z "$as_dir" && as_dir=. 2441 # Account for people who put trailing slashes in PATH elements. 2442case $as_dir/ in #(( 2443 ./ | .// | /[cC]/* | \ 2444 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2445 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2446 /usr/ucb/* ) ;; 2447 *) 2448 # OSF1 and SCO ODT 3.0 have their own names for install. 2449 # Don't use installbsd from OSF since it installs stuff as root 2450 # by default. 2451 for ac_prog in ginstall scoinst install; do 2452 for ac_exec_ext in '' $ac_executable_extensions; do 2453 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2454 if test $ac_prog = install && 2455 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2456 # AIX install. It has an incompatible calling convention. 2457 : 2458 elif test $ac_prog = install && 2459 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2460 # program-specific install script used by HP pwplus--don't use. 2461 : 2462 else 2463 rm -rf conftest.one conftest.two conftest.dir 2464 echo one > conftest.one 2465 echo two > conftest.two 2466 mkdir conftest.dir 2467 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2468 test -s conftest.one && test -s conftest.two && 2469 test -s conftest.dir/conftest.one && 2470 test -s conftest.dir/conftest.two 2471 then 2472 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2473 break 3 2474 fi 2475 fi 2476 fi 2477 done 2478 done 2479 ;; 2480esac 2481 2482 done 2483IFS=$as_save_IFS 2484 2485rm -rf conftest.one conftest.two conftest.dir 2486 2487fi 2488 if test "${ac_cv_path_install+set}" = set; then 2489 INSTALL=$ac_cv_path_install 2490 else 2491 # As a last resort, use the slow shell script. Don't cache a 2492 # value for INSTALL within a source directory, because that will 2493 # break other packages using the cache if that directory is 2494 # removed, or if the value is a relative name. 2495 INSTALL=$ac_install_sh 2496 fi 2497fi 2498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2499$as_echo "$INSTALL" >&6; } 2500 2501# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2502# It thinks the first close brace ends the variable substitution. 2503test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2504 2505test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2506 2507test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2508 2509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2510$as_echo_n "checking whether build environment is sane... " >&6; } 2511# Reject unsafe characters in $srcdir or the absolute working directory 2512# name. Accept space and tab only in the latter. 2513am_lf=' 2514' 2515case `pwd` in 2516 *[\\\"\#\$\&\'\`$am_lf]*) 2517 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2518esac 2519case $srcdir in 2520 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2521 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2522esac 2523 2524# Do 'set' in a subshell so we don't clobber the current shell's 2525# arguments. Must try -L first in case configure is actually a 2526# symlink; some systems play weird games with the mod time of symlinks 2527# (eg FreeBSD returns the mod time of the symlink's containing 2528# directory). 2529if ( 2530 am_has_slept=no 2531 for am_try in 1 2; do 2532 echo "timestamp, slept: $am_has_slept" > conftest.file 2533 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2534 if test "$*" = "X"; then 2535 # -L didn't work. 2536 set X `ls -t "$srcdir/configure" conftest.file` 2537 fi 2538 if test "$*" != "X $srcdir/configure conftest.file" \ 2539 && test "$*" != "X conftest.file $srcdir/configure"; then 2540 2541 # If neither matched, then we have a broken ls. This can happen 2542 # if, for instance, CONFIG_SHELL is bash and it inherits a 2543 # broken ls alias from the environment. This has actually 2544 # happened. Such a system could not be considered "sane". 2545 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2546 alias in your environment" "$LINENO" 5 2547 fi 2548 if test "$2" = conftest.file || test $am_try -eq 2; then 2549 break 2550 fi 2551 # Just in case. 2552 sleep 1 2553 am_has_slept=yes 2554 done 2555 test "$2" = conftest.file 2556 ) 2557then 2558 # Ok. 2559 : 2560else 2561 as_fn_error $? "newly created file is older than distributed files! 2562Check your system clock" "$LINENO" 5 2563fi 2564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2565$as_echo "yes" >&6; } 2566# If we didn't sleep, we still need to ensure time stamps of config.status and 2567# generated files are strictly newer. 2568am_sleep_pid= 2569if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2570 ( sleep 1 ) & 2571 am_sleep_pid=$! 2572fi 2573 2574rm -f conftest.file 2575 2576test "$program_prefix" != NONE && 2577 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2578# Use a double $ so make ignores it. 2579test "$program_suffix" != NONE && 2580 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2581# Double any \ or $. 2582# By default was `s,x,x', remove it if useless. 2583ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2584program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2585 2586# Expand $ac_aux_dir to an absolute path. 2587am_aux_dir=`cd "$ac_aux_dir" && pwd` 2588 2589if test x"${MISSING+set}" != xset; then 2590 MISSING="\${SHELL} '$am_aux_dir/missing'" 2591fi 2592# Use eval to expand $SHELL 2593if eval "$MISSING --is-lightweight"; then 2594 am_missing_run="$MISSING " 2595else 2596 am_missing_run= 2597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2598$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2599fi 2600 2601if test x"${install_sh+set}" != xset; then 2602 case $am_aux_dir in 2603 *\ * | *\ *) 2604 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2605 *) 2606 install_sh="\${SHELL} $am_aux_dir/install-sh" 2607 esac 2608fi 2609 2610# Installed binaries are usually stripped using 'strip' when the user 2611# run "make install-strip". However 'strip' might not be the right 2612# tool to use in cross-compilation environments, therefore Automake 2613# will honor the 'STRIP' environment variable to overrule this program. 2614if test "$cross_compiling" != no; then 2615 if test -n "$ac_tool_prefix"; then 2616 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2617set dummy ${ac_tool_prefix}strip; ac_word=$2 2618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2619$as_echo_n "checking for $ac_word... " >&6; } 2620if ${ac_cv_prog_STRIP+:} false; then : 2621 $as_echo_n "(cached) " >&6 2622else 2623 if test -n "$STRIP"; then 2624 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2625else 2626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2627for as_dir in $PATH 2628do 2629 IFS=$as_save_IFS 2630 test -z "$as_dir" && as_dir=. 2631 for ac_exec_ext in '' $ac_executable_extensions; do 2632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2633 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2635 break 2 2636 fi 2637done 2638 done 2639IFS=$as_save_IFS 2640 2641fi 2642fi 2643STRIP=$ac_cv_prog_STRIP 2644if test -n "$STRIP"; then 2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2646$as_echo "$STRIP" >&6; } 2647else 2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2649$as_echo "no" >&6; } 2650fi 2651 2652 2653fi 2654if test -z "$ac_cv_prog_STRIP"; then 2655 ac_ct_STRIP=$STRIP 2656 # Extract the first word of "strip", so it can be a program name with args. 2657set dummy strip; ac_word=$2 2658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2659$as_echo_n "checking for $ac_word... " >&6; } 2660if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2661 $as_echo_n "(cached) " >&6 2662else 2663 if test -n "$ac_ct_STRIP"; then 2664 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2665else 2666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2667for as_dir in $PATH 2668do 2669 IFS=$as_save_IFS 2670 test -z "$as_dir" && as_dir=. 2671 for ac_exec_ext in '' $ac_executable_extensions; do 2672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2673 ac_cv_prog_ac_ct_STRIP="strip" 2674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2675 break 2 2676 fi 2677done 2678 done 2679IFS=$as_save_IFS 2680 2681fi 2682fi 2683ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2684if test -n "$ac_ct_STRIP"; then 2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2686$as_echo "$ac_ct_STRIP" >&6; } 2687else 2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2689$as_echo "no" >&6; } 2690fi 2691 2692 if test "x$ac_ct_STRIP" = x; then 2693 STRIP=":" 2694 else 2695 case $cross_compiling:$ac_tool_warned in 2696yes:) 2697{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2698$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2699ac_tool_warned=yes ;; 2700esac 2701 STRIP=$ac_ct_STRIP 2702 fi 2703else 2704 STRIP="$ac_cv_prog_STRIP" 2705fi 2706 2707fi 2708INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2709 2710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2711$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2712if test -z "$MKDIR_P"; then 2713 if ${ac_cv_path_mkdir+:} false; then : 2714 $as_echo_n "(cached) " >&6 2715else 2716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2717for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2718do 2719 IFS=$as_save_IFS 2720 test -z "$as_dir" && as_dir=. 2721 for ac_prog in mkdir gmkdir; do 2722 for ac_exec_ext in '' $ac_executable_extensions; do 2723 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2724 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2725 'mkdir (GNU coreutils) '* | \ 2726 'mkdir (coreutils) '* | \ 2727 'mkdir (fileutils) '4.1*) 2728 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2729 break 3;; 2730 esac 2731 done 2732 done 2733 done 2734IFS=$as_save_IFS 2735 2736fi 2737 2738 test -d ./--version && rmdir ./--version 2739 if test "${ac_cv_path_mkdir+set}" = set; then 2740 MKDIR_P="$ac_cv_path_mkdir -p" 2741 else 2742 # As a last resort, use the slow shell script. Don't cache a 2743 # value for MKDIR_P within a source directory, because that will 2744 # break other packages using the cache if that directory is 2745 # removed, or if the value is a relative name. 2746 MKDIR_P="$ac_install_sh -d" 2747 fi 2748fi 2749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2750$as_echo "$MKDIR_P" >&6; } 2751 2752for ac_prog in gawk mawk nawk awk 2753do 2754 # Extract the first word of "$ac_prog", so it can be a program name with args. 2755set dummy $ac_prog; ac_word=$2 2756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2757$as_echo_n "checking for $ac_word... " >&6; } 2758if ${ac_cv_prog_AWK+:} false; then : 2759 $as_echo_n "(cached) " >&6 2760else 2761 if test -n "$AWK"; then 2762 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2763else 2764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2765for as_dir in $PATH 2766do 2767 IFS=$as_save_IFS 2768 test -z "$as_dir" && as_dir=. 2769 for ac_exec_ext in '' $ac_executable_extensions; do 2770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2771 ac_cv_prog_AWK="$ac_prog" 2772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2773 break 2 2774 fi 2775done 2776 done 2777IFS=$as_save_IFS 2778 2779fi 2780fi 2781AWK=$ac_cv_prog_AWK 2782if test -n "$AWK"; then 2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2784$as_echo "$AWK" >&6; } 2785else 2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2787$as_echo "no" >&6; } 2788fi 2789 2790 2791 test -n "$AWK" && break 2792done 2793 2794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2795$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2796set x ${MAKE-make} 2797ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2798if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2799 $as_echo_n "(cached) " >&6 2800else 2801 cat >conftest.make <<\_ACEOF 2802SHELL = /bin/sh 2803all: 2804 @echo '@@@%%%=$(MAKE)=@@@%%%' 2805_ACEOF 2806# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2807case `${MAKE-make} -f conftest.make 2>/dev/null` in 2808 *@@@%%%=?*=@@@%%%*) 2809 eval ac_cv_prog_make_${ac_make}_set=yes;; 2810 *) 2811 eval ac_cv_prog_make_${ac_make}_set=no;; 2812esac 2813rm -f conftest.make 2814fi 2815if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2817$as_echo "yes" >&6; } 2818 SET_MAKE= 2819else 2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2821$as_echo "no" >&6; } 2822 SET_MAKE="MAKE=${MAKE-make}" 2823fi 2824 2825rm -rf .tst 2>/dev/null 2826mkdir .tst 2>/dev/null 2827if test -d .tst; then 2828 am__leading_dot=. 2829else 2830 am__leading_dot=_ 2831fi 2832rmdir .tst 2>/dev/null 2833 2834# Check whether --enable-silent-rules was given. 2835if test "${enable_silent_rules+set}" = set; then : 2836 enableval=$enable_silent_rules; 2837fi 2838 2839case $enable_silent_rules in # ((( 2840 yes) AM_DEFAULT_VERBOSITY=0;; 2841 no) AM_DEFAULT_VERBOSITY=1;; 2842 *) AM_DEFAULT_VERBOSITY=1;; 2843esac 2844am_make=${MAKE-make} 2845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2846$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2847if ${am_cv_make_support_nested_variables+:} false; then : 2848 $as_echo_n "(cached) " >&6 2849else 2850 if $as_echo 'TRUE=$(BAR$(V)) 2851BAR0=false 2852BAR1=true 2853V=1 2854am__doit: 2855 @$(TRUE) 2856.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2857 am_cv_make_support_nested_variables=yes 2858else 2859 am_cv_make_support_nested_variables=no 2860fi 2861fi 2862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2863$as_echo "$am_cv_make_support_nested_variables" >&6; } 2864if test $am_cv_make_support_nested_variables = yes; then 2865 AM_V='$(V)' 2866 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2867else 2868 AM_V=$AM_DEFAULT_VERBOSITY 2869 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2870fi 2871AM_BACKSLASH='\' 2872 2873if test "`cd $srcdir && pwd`" != "`pwd`"; then 2874 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2875 # is not polluted with repeated "-I." 2876 am__isrc=' -I$(srcdir)' 2877 # test to see if srcdir already configured 2878 if test -f $srcdir/config.status; then 2879 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2880 fi 2881fi 2882 2883# test whether we have cygpath 2884if test -z "$CYGPATH_W"; then 2885 if (cygpath --version) >/dev/null 2>/dev/null; then 2886 CYGPATH_W='cygpath -w' 2887 else 2888 CYGPATH_W=echo 2889 fi 2890fi 2891 2892 2893# Define the identity of the package. 2894 PACKAGE='libdvdread' 2895 VERSION='6.1.2' 2896 2897 2898cat >>confdefs.h <<_ACEOF 2899#define PACKAGE "$PACKAGE" 2900_ACEOF 2901 2902 2903cat >>confdefs.h <<_ACEOF 2904#define VERSION "$VERSION" 2905_ACEOF 2906 2907# Some tools Automake needs. 2908 2909ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2910 2911 2912AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2913 2914 2915AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2916 2917 2918AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2919 2920 2921MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2922 2923# For better backward compatibility. To be removed once Automake 1.9.x 2924# dies out for good. For more background, see: 2925# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2926# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2927mkdir_p='$(MKDIR_P)' 2928 2929# We need awk for the "check" target (and possibly the TAP driver). The 2930# system "awk" is bad on some platforms. 2931# Always define AMTAR for backward compatibility. Yes, it's still used 2932# in the wild :-( We should find a proper way to deprecate it ... 2933AMTAR='$${TAR-tar}' 2934 2935 2936# We'll loop over all known methods to create a tar archive until one works. 2937_am_tools='gnutar pax cpio none' 2938 2939am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2940 2941 2942 2943 2944 2945 2946# POSIX will say in a future version that running "rm -f" with no argument 2947# is OK; and we want to be able to make that assumption in our Makefile 2948# recipes. So use an aggressive probe to check that the usage we want is 2949# actually supported "in the wild" to an acceptable degree. 2950# See automake bug#10828. 2951# To make any issue more visible, cause the running configure to be aborted 2952# by default if the 'rm' program in use doesn't match our expectations; the 2953# user can still override this though. 2954if rm -f && rm -fr && rm -rf; then : OK; else 2955 cat >&2 <<'END' 2956Oops! 2957 2958Your 'rm' program seems unable to run without file operands specified 2959on the command line, even when the '-f' option is present. This is contrary 2960to the behaviour of most rm programs out there, and not conforming with 2961the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2962 2963Please tell bug-automake@gnu.org about your system, including the value 2964of your $PATH and any error possibly output before this message. This 2965can help us improve future automake versions. 2966 2967END 2968 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2969 echo 'Configuration will proceed anyway, since you have set the' >&2 2970 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2971 echo >&2 2972 else 2973 cat >&2 <<'END' 2974Aborting the configuration process, to ensure you take notice of the issue. 2975 2976You can download and install GNU coreutils to get an 'rm' implementation 2977that behaves properly: <https://www.gnu.org/software/coreutils/>. 2978 2979If you want to complete the configuration process using your problematic 2980'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2981to "yes", and re-run configure. 2982 2983END 2984 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2985 fi 2986fi 2987 2988 2989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2990$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2991 # Check whether --enable-maintainer-mode was given. 2992if test "${enable_maintainer_mode+set}" = set; then : 2993 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2994else 2995 USE_MAINTAINER_MODE=yes 2996fi 2997 2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2999$as_echo "$USE_MAINTAINER_MODE" >&6; } 3000 if test $USE_MAINTAINER_MODE = yes; then 3001 MAINTAINER_MODE_TRUE= 3002 MAINTAINER_MODE_FALSE='#' 3003else 3004 MAINTAINER_MODE_TRUE='#' 3005 MAINTAINER_MODE_FALSE= 3006fi 3007 3008 MAINT=$MAINTAINER_MODE_TRUE 3009 3010 3011# Check whether --enable-silent-rules was given. 3012if test "${enable_silent_rules+set}" = set; then : 3013 enableval=$enable_silent_rules; 3014fi 3015 3016case $enable_silent_rules in # ((( 3017 yes) AM_DEFAULT_VERBOSITY=0;; 3018 no) AM_DEFAULT_VERBOSITY=1;; 3019 *) AM_DEFAULT_VERBOSITY=0;; 3020esac 3021am_make=${MAKE-make} 3022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3023$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3024if ${am_cv_make_support_nested_variables+:} false; then : 3025 $as_echo_n "(cached) " >&6 3026else 3027 if $as_echo 'TRUE=$(BAR$(V)) 3028BAR0=false 3029BAR1=true 3030V=1 3031am__doit: 3032 @$(TRUE) 3033.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3034 am_cv_make_support_nested_variables=yes 3035else 3036 am_cv_make_support_nested_variables=no 3037fi 3038fi 3039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3040$as_echo "$am_cv_make_support_nested_variables" >&6; } 3041if test $am_cv_make_support_nested_variables = yes; then 3042 AM_V='$(V)' 3043 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3044else 3045 AM_V=$AM_DEFAULT_VERBOSITY 3046 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3047fi 3048AM_BACKSLASH='\' 3049 3050 3051case `pwd` in 3052 *\ * | *\ *) 3053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3054$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3055esac 3056 3057 3058 3059macro_version='2.4.6' 3060macro_revision='2.4.6' 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074ltmain=$ac_aux_dir/ltmain.sh 3075 3076# Backslashify metacharacters that are still active within 3077# double-quoted strings. 3078sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3079 3080# Same as above, but do not quote variable references. 3081double_quote_subst='s/\(["`\\]\)/\\\1/g' 3082 3083# Sed substitution to delay expansion of an escaped shell variable in a 3084# double_quote_subst'ed string. 3085delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3086 3087# Sed substitution to delay expansion of an escaped single quote. 3088delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3089 3090# Sed substitution to avoid accidental globbing in evaled expressions 3091no_glob_subst='s/\*/\\\*/g' 3092 3093ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3094ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3095ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3096 3097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3098$as_echo_n "checking how to print strings... " >&6; } 3099# Test print first, because it will be a builtin if present. 3100if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3101 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3102 ECHO='print -r --' 3103elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3104 ECHO='printf %s\n' 3105else 3106 # Use this function as a fallback that always works. 3107 func_fallback_echo () 3108 { 3109 eval 'cat <<_LTECHO_EOF 3110$1 3111_LTECHO_EOF' 3112 } 3113 ECHO='func_fallback_echo' 3114fi 3115 3116# func_echo_all arg... 3117# Invoke $ECHO with all args, space-separated. 3118func_echo_all () 3119{ 3120 $ECHO "" 3121} 3122 3123case $ECHO in 3124 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3125$as_echo "printf" >&6; } ;; 3126 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3127$as_echo "print -r" >&6; } ;; 3128 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3129$as_echo "cat" >&6; } ;; 3130esac 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145DEPDIR="${am__leading_dot}deps" 3146 3147ac_config_commands="$ac_config_commands depfiles" 3148 3149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3150$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3151cat > confinc.mk << 'END' 3152am__doit: 3153 @echo this is the am__doit target >confinc.out 3154.PHONY: am__doit 3155END 3156am__include="#" 3157am__quote= 3158# BSD make does it like this. 3159echo '.include "confinc.mk" # ignored' > confmf.BSD 3160# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3161echo 'include confinc.mk # ignored' > confmf.GNU 3162_am_result=no 3163for s in GNU BSD; do 3164 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3165 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3166 ac_status=$? 3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3168 (exit $ac_status); } 3169 case $?:`cat confinc.out 2>/dev/null` in #( 3170 '0:this is the am__doit target') : 3171 case $s in #( 3172 BSD) : 3173 am__include='.include' am__quote='"' ;; #( 3174 *) : 3175 am__include='include' am__quote='' ;; 3176esac ;; #( 3177 *) : 3178 ;; 3179esac 3180 if test "$am__include" != "#"; then 3181 _am_result="yes ($s style)" 3182 break 3183 fi 3184done 3185rm -f confinc.* confmf.* 3186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3187$as_echo "${_am_result}" >&6; } 3188 3189# Check whether --enable-dependency-tracking was given. 3190if test "${enable_dependency_tracking+set}" = set; then : 3191 enableval=$enable_dependency_tracking; 3192fi 3193 3194if test "x$enable_dependency_tracking" != xno; then 3195 am_depcomp="$ac_aux_dir/depcomp" 3196 AMDEPBACKSLASH='\' 3197 am__nodep='_no' 3198fi 3199 if test "x$enable_dependency_tracking" != xno; then 3200 AMDEP_TRUE= 3201 AMDEP_FALSE='#' 3202else 3203 AMDEP_TRUE='#' 3204 AMDEP_FALSE= 3205fi 3206 3207 3208ac_ext=c 3209ac_cpp='$CPP $CPPFLAGS' 3210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3212ac_compiler_gnu=$ac_cv_c_compiler_gnu 3213if test -n "$ac_tool_prefix"; then 3214 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3215set dummy ${ac_tool_prefix}gcc; ac_word=$2 3216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3217$as_echo_n "checking for $ac_word... " >&6; } 3218if ${ac_cv_prog_CC+:} false; then : 3219 $as_echo_n "(cached) " >&6 3220else 3221 if test -n "$CC"; then 3222 ac_cv_prog_CC="$CC" # Let the user override the test. 3223else 3224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3225for as_dir in $PATH 3226do 3227 IFS=$as_save_IFS 3228 test -z "$as_dir" && as_dir=. 3229 for ac_exec_ext in '' $ac_executable_extensions; do 3230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3231 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3233 break 2 3234 fi 3235done 3236 done 3237IFS=$as_save_IFS 3238 3239fi 3240fi 3241CC=$ac_cv_prog_CC 3242if test -n "$CC"; then 3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3244$as_echo "$CC" >&6; } 3245else 3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3247$as_echo "no" >&6; } 3248fi 3249 3250 3251fi 3252if test -z "$ac_cv_prog_CC"; then 3253 ac_ct_CC=$CC 3254 # Extract the first word of "gcc", so it can be a program name with args. 3255set dummy gcc; ac_word=$2 3256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3257$as_echo_n "checking for $ac_word... " >&6; } 3258if ${ac_cv_prog_ac_ct_CC+:} false; then : 3259 $as_echo_n "(cached) " >&6 3260else 3261 if test -n "$ac_ct_CC"; then 3262 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3263else 3264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3265for as_dir in $PATH 3266do 3267 IFS=$as_save_IFS 3268 test -z "$as_dir" && as_dir=. 3269 for ac_exec_ext in '' $ac_executable_extensions; do 3270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3271 ac_cv_prog_ac_ct_CC="gcc" 3272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3273 break 2 3274 fi 3275done 3276 done 3277IFS=$as_save_IFS 3278 3279fi 3280fi 3281ac_ct_CC=$ac_cv_prog_ac_ct_CC 3282if test -n "$ac_ct_CC"; then 3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3284$as_echo "$ac_ct_CC" >&6; } 3285else 3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3287$as_echo "no" >&6; } 3288fi 3289 3290 if test "x$ac_ct_CC" = x; then 3291 CC="" 3292 else 3293 case $cross_compiling:$ac_tool_warned in 3294yes:) 3295{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3296$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3297ac_tool_warned=yes ;; 3298esac 3299 CC=$ac_ct_CC 3300 fi 3301else 3302 CC="$ac_cv_prog_CC" 3303fi 3304 3305if test -z "$CC"; then 3306 if test -n "$ac_tool_prefix"; then 3307 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3308set dummy ${ac_tool_prefix}cc; ac_word=$2 3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3310$as_echo_n "checking for $ac_word... " >&6; } 3311if ${ac_cv_prog_CC+:} false; then : 3312 $as_echo_n "(cached) " >&6 3313else 3314 if test -n "$CC"; then 3315 ac_cv_prog_CC="$CC" # Let the user override the test. 3316else 3317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3318for as_dir in $PATH 3319do 3320 IFS=$as_save_IFS 3321 test -z "$as_dir" && as_dir=. 3322 for ac_exec_ext in '' $ac_executable_extensions; do 3323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3324 ac_cv_prog_CC="${ac_tool_prefix}cc" 3325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3326 break 2 3327 fi 3328done 3329 done 3330IFS=$as_save_IFS 3331 3332fi 3333fi 3334CC=$ac_cv_prog_CC 3335if test -n "$CC"; then 3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3337$as_echo "$CC" >&6; } 3338else 3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3340$as_echo "no" >&6; } 3341fi 3342 3343 3344 fi 3345fi 3346if test -z "$CC"; then 3347 # Extract the first word of "cc", so it can be a program name with args. 3348set dummy cc; ac_word=$2 3349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3350$as_echo_n "checking for $ac_word... " >&6; } 3351if ${ac_cv_prog_CC+:} false; then : 3352 $as_echo_n "(cached) " >&6 3353else 3354 if test -n "$CC"; then 3355 ac_cv_prog_CC="$CC" # Let the user override the test. 3356else 3357 ac_prog_rejected=no 3358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3359for as_dir in $PATH 3360do 3361 IFS=$as_save_IFS 3362 test -z "$as_dir" && as_dir=. 3363 for ac_exec_ext in '' $ac_executable_extensions; do 3364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3365 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3366 ac_prog_rejected=yes 3367 continue 3368 fi 3369 ac_cv_prog_CC="cc" 3370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3371 break 2 3372 fi 3373done 3374 done 3375IFS=$as_save_IFS 3376 3377if test $ac_prog_rejected = yes; then 3378 # We found a bogon in the path, so make sure we never use it. 3379 set dummy $ac_cv_prog_CC 3380 shift 3381 if test $# != 0; then 3382 # We chose a different compiler from the bogus one. 3383 # However, it has the same basename, so the bogon will be chosen 3384 # first if we set CC to just the basename; use the full file name. 3385 shift 3386 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3387 fi 3388fi 3389fi 3390fi 3391CC=$ac_cv_prog_CC 3392if test -n "$CC"; then 3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3394$as_echo "$CC" >&6; } 3395else 3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3397$as_echo "no" >&6; } 3398fi 3399 3400 3401fi 3402if test -z "$CC"; then 3403 if test -n "$ac_tool_prefix"; then 3404 for ac_prog in cl.exe 3405 do 3406 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3407set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3409$as_echo_n "checking for $ac_word... " >&6; } 3410if ${ac_cv_prog_CC+:} false; then : 3411 $as_echo_n "(cached) " >&6 3412else 3413 if test -n "$CC"; then 3414 ac_cv_prog_CC="$CC" # Let the user override the test. 3415else 3416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3417for as_dir in $PATH 3418do 3419 IFS=$as_save_IFS 3420 test -z "$as_dir" && as_dir=. 3421 for ac_exec_ext in '' $ac_executable_extensions; do 3422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3423 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3425 break 2 3426 fi 3427done 3428 done 3429IFS=$as_save_IFS 3430 3431fi 3432fi 3433CC=$ac_cv_prog_CC 3434if test -n "$CC"; then 3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3436$as_echo "$CC" >&6; } 3437else 3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3439$as_echo "no" >&6; } 3440fi 3441 3442 3443 test -n "$CC" && break 3444 done 3445fi 3446if test -z "$CC"; then 3447 ac_ct_CC=$CC 3448 for ac_prog in cl.exe 3449do 3450 # Extract the first word of "$ac_prog", so it can be a program name with args. 3451set dummy $ac_prog; ac_word=$2 3452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3453$as_echo_n "checking for $ac_word... " >&6; } 3454if ${ac_cv_prog_ac_ct_CC+:} false; then : 3455 $as_echo_n "(cached) " >&6 3456else 3457 if test -n "$ac_ct_CC"; then 3458 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3459else 3460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3461for as_dir in $PATH 3462do 3463 IFS=$as_save_IFS 3464 test -z "$as_dir" && as_dir=. 3465 for ac_exec_ext in '' $ac_executable_extensions; do 3466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3467 ac_cv_prog_ac_ct_CC="$ac_prog" 3468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3469 break 2 3470 fi 3471done 3472 done 3473IFS=$as_save_IFS 3474 3475fi 3476fi 3477ac_ct_CC=$ac_cv_prog_ac_ct_CC 3478if test -n "$ac_ct_CC"; then 3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3480$as_echo "$ac_ct_CC" >&6; } 3481else 3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3483$as_echo "no" >&6; } 3484fi 3485 3486 3487 test -n "$ac_ct_CC" && break 3488done 3489 3490 if test "x$ac_ct_CC" = x; then 3491 CC="" 3492 else 3493 case $cross_compiling:$ac_tool_warned in 3494yes:) 3495{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3496$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3497ac_tool_warned=yes ;; 3498esac 3499 CC=$ac_ct_CC 3500 fi 3501fi 3502 3503fi 3504 3505 3506test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3508as_fn_error $? "no acceptable C compiler found in \$PATH 3509See \`config.log' for more details" "$LINENO" 5; } 3510 3511# Provide some information about the compiler. 3512$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3513set X $ac_compile 3514ac_compiler=$2 3515for ac_option in --version -v -V -qversion; do 3516 { { ac_try="$ac_compiler $ac_option >&5" 3517case "(($ac_try" in 3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3519 *) ac_try_echo=$ac_try;; 3520esac 3521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3522$as_echo "$ac_try_echo"; } >&5 3523 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3524 ac_status=$? 3525 if test -s conftest.err; then 3526 sed '10a\ 3527... rest of stderr output deleted ... 3528 10q' conftest.err >conftest.er1 3529 cat conftest.er1 >&5 3530 fi 3531 rm -f conftest.er1 conftest.err 3532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3533 test $ac_status = 0; } 3534done 3535 3536cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3537/* end confdefs.h. */ 3538 3539int 3540main () 3541{ 3542 3543 ; 3544 return 0; 3545} 3546_ACEOF 3547ac_clean_files_save=$ac_clean_files 3548ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3549# Try to create an executable without -o first, disregard a.out. 3550# It will help us diagnose broken compilers, and finding out an intuition 3551# of exeext. 3552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3553$as_echo_n "checking whether the C compiler works... " >&6; } 3554ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3555 3556# The possible output files: 3557ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3558 3559ac_rmfiles= 3560for ac_file in $ac_files 3561do 3562 case $ac_file in 3563 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3564 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3565 esac 3566done 3567rm -f $ac_rmfiles 3568 3569if { { ac_try="$ac_link_default" 3570case "(($ac_try" in 3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3572 *) ac_try_echo=$ac_try;; 3573esac 3574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3575$as_echo "$ac_try_echo"; } >&5 3576 (eval "$ac_link_default") 2>&5 3577 ac_status=$? 3578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3579 test $ac_status = 0; }; then : 3580 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3581# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3582# in a Makefile. We should not override ac_cv_exeext if it was cached, 3583# so that the user can short-circuit this test for compilers unknown to 3584# Autoconf. 3585for ac_file in $ac_files '' 3586do 3587 test -f "$ac_file" || continue 3588 case $ac_file in 3589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3590 ;; 3591 [ab].out ) 3592 # We found the default executable, but exeext='' is most 3593 # certainly right. 3594 break;; 3595 *.* ) 3596 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3597 then :; else 3598 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3599 fi 3600 # We set ac_cv_exeext here because the later test for it is not 3601 # safe: cross compilers may not add the suffix if given an `-o' 3602 # argument, so we may need to know it at that point already. 3603 # Even if this section looks crufty: it has the advantage of 3604 # actually working. 3605 break;; 3606 * ) 3607 break;; 3608 esac 3609done 3610test "$ac_cv_exeext" = no && ac_cv_exeext= 3611 3612else 3613 ac_file='' 3614fi 3615if test -z "$ac_file"; then : 3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3617$as_echo "no" >&6; } 3618$as_echo "$as_me: failed program was:" >&5 3619sed 's/^/| /' conftest.$ac_ext >&5 3620 3621{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3622$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3623as_fn_error 77 "C compiler cannot create executables 3624See \`config.log' for more details" "$LINENO" 5; } 3625else 3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3627$as_echo "yes" >&6; } 3628fi 3629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3630$as_echo_n "checking for C compiler default output file name... " >&6; } 3631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3632$as_echo "$ac_file" >&6; } 3633ac_exeext=$ac_cv_exeext 3634 3635rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3636ac_clean_files=$ac_clean_files_save 3637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3638$as_echo_n "checking for suffix of executables... " >&6; } 3639if { { ac_try="$ac_link" 3640case "(($ac_try" in 3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3642 *) ac_try_echo=$ac_try;; 3643esac 3644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3645$as_echo "$ac_try_echo"; } >&5 3646 (eval "$ac_link") 2>&5 3647 ac_status=$? 3648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3649 test $ac_status = 0; }; then : 3650 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3651# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3652# work properly (i.e., refer to `conftest.exe'), while it won't with 3653# `rm'. 3654for ac_file in conftest.exe conftest conftest.*; do 3655 test -f "$ac_file" || continue 3656 case $ac_file in 3657 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3658 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3659 break;; 3660 * ) break;; 3661 esac 3662done 3663else 3664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3665$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3666as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3667See \`config.log' for more details" "$LINENO" 5; } 3668fi 3669rm -f conftest conftest$ac_cv_exeext 3670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3671$as_echo "$ac_cv_exeext" >&6; } 3672 3673rm -f conftest.$ac_ext 3674EXEEXT=$ac_cv_exeext 3675ac_exeext=$EXEEXT 3676cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3677/* end confdefs.h. */ 3678#include <stdio.h> 3679int 3680main () 3681{ 3682FILE *f = fopen ("conftest.out", "w"); 3683 return ferror (f) || fclose (f) != 0; 3684 3685 ; 3686 return 0; 3687} 3688_ACEOF 3689ac_clean_files="$ac_clean_files conftest.out" 3690# Check that the compiler produces executables we can run. If not, either 3691# the compiler is broken, or we cross compile. 3692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3693$as_echo_n "checking whether we are cross compiling... " >&6; } 3694if test "$cross_compiling" != yes; then 3695 { { ac_try="$ac_link" 3696case "(($ac_try" in 3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3698 *) ac_try_echo=$ac_try;; 3699esac 3700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3701$as_echo "$ac_try_echo"; } >&5 3702 (eval "$ac_link") 2>&5 3703 ac_status=$? 3704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3705 test $ac_status = 0; } 3706 if { ac_try='./conftest$ac_cv_exeext' 3707 { { case "(($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_try") 2>&5 3714 ac_status=$? 3715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3716 test $ac_status = 0; }; }; then 3717 cross_compiling=no 3718 else 3719 if test "$cross_compiling" = maybe; then 3720 cross_compiling=yes 3721 else 3722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3723$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3724as_fn_error $? "cannot run C compiled programs. 3725If you meant to cross compile, use \`--host'. 3726See \`config.log' for more details" "$LINENO" 5; } 3727 fi 3728 fi 3729fi 3730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3731$as_echo "$cross_compiling" >&6; } 3732 3733rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3734ac_clean_files=$ac_clean_files_save 3735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3736$as_echo_n "checking for suffix of object files... " >&6; } 3737if ${ac_cv_objext+:} false; then : 3738 $as_echo_n "(cached) " >&6 3739else 3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3741/* end confdefs.h. */ 3742 3743int 3744main () 3745{ 3746 3747 ; 3748 return 0; 3749} 3750_ACEOF 3751rm -f conftest.o conftest.obj 3752if { { ac_try="$ac_compile" 3753case "(($ac_try" in 3754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3755 *) ac_try_echo=$ac_try;; 3756esac 3757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3758$as_echo "$ac_try_echo"; } >&5 3759 (eval "$ac_compile") 2>&5 3760 ac_status=$? 3761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3762 test $ac_status = 0; }; then : 3763 for ac_file in conftest.o conftest.obj conftest.*; do 3764 test -f "$ac_file" || continue; 3765 case $ac_file in 3766 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3767 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3768 break;; 3769 esac 3770done 3771else 3772 $as_echo "$as_me: failed program was:" >&5 3773sed 's/^/| /' conftest.$ac_ext >&5 3774 3775{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3776$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3777as_fn_error $? "cannot compute suffix of object files: cannot compile 3778See \`config.log' for more details" "$LINENO" 5; } 3779fi 3780rm -f conftest.$ac_cv_objext conftest.$ac_ext 3781fi 3782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3783$as_echo "$ac_cv_objext" >&6; } 3784OBJEXT=$ac_cv_objext 3785ac_objext=$OBJEXT 3786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3787$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3788if ${ac_cv_c_compiler_gnu+:} false; then : 3789 $as_echo_n "(cached) " >&6 3790else 3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3792/* end confdefs.h. */ 3793 3794int 3795main () 3796{ 3797#ifndef __GNUC__ 3798 choke me 3799#endif 3800 3801 ; 3802 return 0; 3803} 3804_ACEOF 3805if ac_fn_c_try_compile "$LINENO"; then : 3806 ac_compiler_gnu=yes 3807else 3808 ac_compiler_gnu=no 3809fi 3810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3811ac_cv_c_compiler_gnu=$ac_compiler_gnu 3812 3813fi 3814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3815$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3816if test $ac_compiler_gnu = yes; then 3817 GCC=yes 3818else 3819 GCC= 3820fi 3821ac_test_CFLAGS=${CFLAGS+set} 3822ac_save_CFLAGS=$CFLAGS 3823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3824$as_echo_n "checking whether $CC accepts -g... " >&6; } 3825if ${ac_cv_prog_cc_g+:} false; then : 3826 $as_echo_n "(cached) " >&6 3827else 3828 ac_save_c_werror_flag=$ac_c_werror_flag 3829 ac_c_werror_flag=yes 3830 ac_cv_prog_cc_g=no 3831 CFLAGS="-g" 3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3833/* end confdefs.h. */ 3834 3835int 3836main () 3837{ 3838 3839 ; 3840 return 0; 3841} 3842_ACEOF 3843if ac_fn_c_try_compile "$LINENO"; then : 3844 ac_cv_prog_cc_g=yes 3845else 3846 CFLAGS="" 3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3848/* end confdefs.h. */ 3849 3850int 3851main () 3852{ 3853 3854 ; 3855 return 0; 3856} 3857_ACEOF 3858if ac_fn_c_try_compile "$LINENO"; then : 3859 3860else 3861 ac_c_werror_flag=$ac_save_c_werror_flag 3862 CFLAGS="-g" 3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3864/* end confdefs.h. */ 3865 3866int 3867main () 3868{ 3869 3870 ; 3871 return 0; 3872} 3873_ACEOF 3874if ac_fn_c_try_compile "$LINENO"; then : 3875 ac_cv_prog_cc_g=yes 3876fi 3877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3878fi 3879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3880fi 3881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3882 ac_c_werror_flag=$ac_save_c_werror_flag 3883fi 3884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3885$as_echo "$ac_cv_prog_cc_g" >&6; } 3886if test "$ac_test_CFLAGS" = set; then 3887 CFLAGS=$ac_save_CFLAGS 3888elif test $ac_cv_prog_cc_g = yes; then 3889 if test "$GCC" = yes; then 3890 CFLAGS="-g -O2" 3891 else 3892 CFLAGS="-g" 3893 fi 3894else 3895 if test "$GCC" = yes; then 3896 CFLAGS="-O2" 3897 else 3898 CFLAGS= 3899 fi 3900fi 3901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3902$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3903if ${ac_cv_prog_cc_c89+:} false; then : 3904 $as_echo_n "(cached) " >&6 3905else 3906 ac_cv_prog_cc_c89=no 3907ac_save_CC=$CC 3908cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3909/* end confdefs.h. */ 3910#include <stdarg.h> 3911#include <stdio.h> 3912struct stat; 3913/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3914struct buf { int x; }; 3915FILE * (*rcsopen) (struct buf *, struct stat *, int); 3916static char *e (p, i) 3917 char **p; 3918 int i; 3919{ 3920 return p[i]; 3921} 3922static char *f (char * (*g) (char **, int), char **p, ...) 3923{ 3924 char *s; 3925 va_list v; 3926 va_start (v,p); 3927 s = g (p, va_arg (v,int)); 3928 va_end (v); 3929 return s; 3930} 3931 3932/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3933 function prototypes and stuff, but not '\xHH' hex character constants. 3934 These don't provoke an error unfortunately, instead are silently treated 3935 as 'x'. The following induces an error, until -std is added to get 3936 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3937 array size at least. It's necessary to write '\x00'==0 to get something 3938 that's true only with -std. */ 3939int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3940 3941/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3942 inside strings and character constants. */ 3943#define FOO(x) 'x' 3944int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3945 3946int test (int i, double x); 3947struct s1 {int (*f) (int a);}; 3948struct s2 {int (*f) (double a);}; 3949int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3950int argc; 3951char **argv; 3952int 3953main () 3954{ 3955return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3956 ; 3957 return 0; 3958} 3959_ACEOF 3960for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3961 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3962do 3963 CC="$ac_save_CC $ac_arg" 3964 if ac_fn_c_try_compile "$LINENO"; then : 3965 ac_cv_prog_cc_c89=$ac_arg 3966fi 3967rm -f core conftest.err conftest.$ac_objext 3968 test "x$ac_cv_prog_cc_c89" != "xno" && break 3969done 3970rm -f conftest.$ac_ext 3971CC=$ac_save_CC 3972 3973fi 3974# AC_CACHE_VAL 3975case "x$ac_cv_prog_cc_c89" in 3976 x) 3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3978$as_echo "none needed" >&6; } ;; 3979 xno) 3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3981$as_echo "unsupported" >&6; } ;; 3982 *) 3983 CC="$CC $ac_cv_prog_cc_c89" 3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3985$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3986esac 3987if test "x$ac_cv_prog_cc_c89" != xno; then : 3988 3989fi 3990 3991ac_ext=c 3992ac_cpp='$CPP $CPPFLAGS' 3993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3995ac_compiler_gnu=$ac_cv_c_compiler_gnu 3996 3997ac_ext=c 3998ac_cpp='$CPP $CPPFLAGS' 3999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4001ac_compiler_gnu=$ac_cv_c_compiler_gnu 4002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4003$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4004if ${am_cv_prog_cc_c_o+:} false; then : 4005 $as_echo_n "(cached) " >&6 4006else 4007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4008/* end confdefs.h. */ 4009 4010int 4011main () 4012{ 4013 4014 ; 4015 return 0; 4016} 4017_ACEOF 4018 # Make sure it works both with $CC and with simple cc. 4019 # Following AC_PROG_CC_C_O, we do the test twice because some 4020 # compilers refuse to overwrite an existing .o file with -o, 4021 # though they will create one. 4022 am_cv_prog_cc_c_o=yes 4023 for am_i in 1 2; do 4024 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4025 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4026 ac_status=$? 4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4028 (exit $ac_status); } \ 4029 && test -f conftest2.$ac_objext; then 4030 : OK 4031 else 4032 am_cv_prog_cc_c_o=no 4033 break 4034 fi 4035 done 4036 rm -f core conftest* 4037 unset am_i 4038fi 4039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4040$as_echo "$am_cv_prog_cc_c_o" >&6; } 4041if test "$am_cv_prog_cc_c_o" != yes; then 4042 # Losing compiler, so override with the script. 4043 # FIXME: It is wrong to rewrite CC. 4044 # But if we don't then we get into trouble of one sort or another. 4045 # A longer-term fix would be to have automake use am__CC in this case, 4046 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4047 CC="$am_aux_dir/compile $CC" 4048fi 4049ac_ext=c 4050ac_cpp='$CPP $CPPFLAGS' 4051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4053ac_compiler_gnu=$ac_cv_c_compiler_gnu 4054 4055 4056depcc="$CC" am_compiler_list= 4057 4058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4059$as_echo_n "checking dependency style of $depcc... " >&6; } 4060if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4061 $as_echo_n "(cached) " >&6 4062else 4063 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4064 # We make a subdir and do the tests there. Otherwise we can end up 4065 # making bogus files that we don't know about and never remove. For 4066 # instance it was reported that on HP-UX the gcc test will end up 4067 # making a dummy file named 'D' -- because '-MD' means "put the output 4068 # in D". 4069 rm -rf conftest.dir 4070 mkdir conftest.dir 4071 # Copy depcomp to subdir because otherwise we won't find it if we're 4072 # using a relative directory. 4073 cp "$am_depcomp" conftest.dir 4074 cd conftest.dir 4075 # We will build objects and dependencies in a subdirectory because 4076 # it helps to detect inapplicable dependency modes. For instance 4077 # both Tru64's cc and ICC support -MD to output dependencies as a 4078 # side effect of compilation, but ICC will put the dependencies in 4079 # the current directory while Tru64 will put them in the object 4080 # directory. 4081 mkdir sub 4082 4083 am_cv_CC_dependencies_compiler_type=none 4084 if test "$am_compiler_list" = ""; then 4085 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4086 fi 4087 am__universal=false 4088 case " $depcc " in #( 4089 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4090 esac 4091 4092 for depmode in $am_compiler_list; do 4093 # Setup a source with many dependencies, because some compilers 4094 # like to wrap large dependency lists on column 80 (with \), and 4095 # we should not choose a depcomp mode which is confused by this. 4096 # 4097 # We need to recreate these files for each test, as the compiler may 4098 # overwrite some of them when testing with obscure command lines. 4099 # This happens at least with the AIX C compiler. 4100 : > sub/conftest.c 4101 for i in 1 2 3 4 5 6; do 4102 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4103 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4104 # Solaris 10 /bin/sh. 4105 echo '/* dummy */' > sub/conftst$i.h 4106 done 4107 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4108 4109 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4110 # mode. It turns out that the SunPro C++ compiler does not properly 4111 # handle '-M -o', and we need to detect this. Also, some Intel 4112 # versions had trouble with output in subdirs. 4113 am__obj=sub/conftest.${OBJEXT-o} 4114 am__minus_obj="-o $am__obj" 4115 case $depmode in 4116 gcc) 4117 # This depmode causes a compiler race in universal mode. 4118 test "$am__universal" = false || continue 4119 ;; 4120 nosideeffect) 4121 # After this tag, mechanisms are not by side-effect, so they'll 4122 # only be used when explicitly requested. 4123 if test "x$enable_dependency_tracking" = xyes; then 4124 continue 4125 else 4126 break 4127 fi 4128 ;; 4129 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4130 # This compiler won't grok '-c -o', but also, the minuso test has 4131 # not run yet. These depmodes are late enough in the game, and 4132 # so weak that their functioning should not be impacted. 4133 am__obj=conftest.${OBJEXT-o} 4134 am__minus_obj= 4135 ;; 4136 none) break ;; 4137 esac 4138 if depmode=$depmode \ 4139 source=sub/conftest.c object=$am__obj \ 4140 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4141 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4142 >/dev/null 2>conftest.err && 4143 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4144 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4145 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4146 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4147 # icc doesn't choke on unknown options, it will just issue warnings 4148 # or remarks (even with -Werror). So we grep stderr for any message 4149 # that says an option was ignored or not supported. 4150 # When given -MP, icc 7.0 and 7.1 complain thusly: 4151 # icc: Command line warning: ignoring option '-M'; no argument required 4152 # The diagnosis changed in icc 8.0: 4153 # icc: Command line remark: option '-MP' not supported 4154 if (grep 'ignoring option' conftest.err || 4155 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4156 am_cv_CC_dependencies_compiler_type=$depmode 4157 break 4158 fi 4159 fi 4160 done 4161 4162 cd .. 4163 rm -rf conftest.dir 4164else 4165 am_cv_CC_dependencies_compiler_type=none 4166fi 4167 4168fi 4169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4170$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4171CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4172 4173 if 4174 test "x$enable_dependency_tracking" != xno \ 4175 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4176 am__fastdepCC_TRUE= 4177 am__fastdepCC_FALSE='#' 4178else 4179 am__fastdepCC_TRUE='#' 4180 am__fastdepCC_FALSE= 4181fi 4182 4183 4184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4185$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4186if ${ac_cv_path_SED+:} false; then : 4187 $as_echo_n "(cached) " >&6 4188else 4189 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4190 for ac_i in 1 2 3 4 5 6 7; do 4191 ac_script="$ac_script$as_nl$ac_script" 4192 done 4193 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4194 { ac_script=; unset ac_script;} 4195 if test -z "$SED"; then 4196 ac_path_SED_found=false 4197 # Loop through the user's path and test for each of PROGNAME-LIST 4198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4199for as_dir in $PATH 4200do 4201 IFS=$as_save_IFS 4202 test -z "$as_dir" && as_dir=. 4203 for ac_prog in sed gsed; do 4204 for ac_exec_ext in '' $ac_executable_extensions; do 4205 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4206 as_fn_executable_p "$ac_path_SED" || continue 4207# Check for GNU ac_path_SED and select it if it is found. 4208 # Check for GNU $ac_path_SED 4209case `"$ac_path_SED" --version 2>&1` in 4210*GNU*) 4211 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4212*) 4213 ac_count=0 4214 $as_echo_n 0123456789 >"conftest.in" 4215 while : 4216 do 4217 cat "conftest.in" "conftest.in" >"conftest.tmp" 4218 mv "conftest.tmp" "conftest.in" 4219 cp "conftest.in" "conftest.nl" 4220 $as_echo '' >> "conftest.nl" 4221 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4222 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4223 as_fn_arith $ac_count + 1 && ac_count=$as_val 4224 if test $ac_count -gt ${ac_path_SED_max-0}; then 4225 # Best one so far, save it but keep looking for a better one 4226 ac_cv_path_SED="$ac_path_SED" 4227 ac_path_SED_max=$ac_count 4228 fi 4229 # 10*(2^10) chars as input seems more than enough 4230 test $ac_count -gt 10 && break 4231 done 4232 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4233esac 4234 4235 $ac_path_SED_found && break 3 4236 done 4237 done 4238 done 4239IFS=$as_save_IFS 4240 if test -z "$ac_cv_path_SED"; then 4241 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4242 fi 4243else 4244 ac_cv_path_SED=$SED 4245fi 4246 4247fi 4248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4249$as_echo "$ac_cv_path_SED" >&6; } 4250 SED="$ac_cv_path_SED" 4251 rm -f conftest.sed 4252 4253test -z "$SED" && SED=sed 4254Xsed="$SED -e 1s/^X//" 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4267$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4268if ${ac_cv_path_GREP+:} false; then : 4269 $as_echo_n "(cached) " >&6 4270else 4271 if test -z "$GREP"; then 4272 ac_path_GREP_found=false 4273 # Loop through the user's path and test for each of PROGNAME-LIST 4274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4275for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4276do 4277 IFS=$as_save_IFS 4278 test -z "$as_dir" && as_dir=. 4279 for ac_prog in grep ggrep; do 4280 for ac_exec_ext in '' $ac_executable_extensions; do 4281 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4282 as_fn_executable_p "$ac_path_GREP" || continue 4283# Check for GNU ac_path_GREP and select it if it is found. 4284 # Check for GNU $ac_path_GREP 4285case `"$ac_path_GREP" --version 2>&1` in 4286*GNU*) 4287 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4288*) 4289 ac_count=0 4290 $as_echo_n 0123456789 >"conftest.in" 4291 while : 4292 do 4293 cat "conftest.in" "conftest.in" >"conftest.tmp" 4294 mv "conftest.tmp" "conftest.in" 4295 cp "conftest.in" "conftest.nl" 4296 $as_echo 'GREP' >> "conftest.nl" 4297 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4298 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4299 as_fn_arith $ac_count + 1 && ac_count=$as_val 4300 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4301 # Best one so far, save it but keep looking for a better one 4302 ac_cv_path_GREP="$ac_path_GREP" 4303 ac_path_GREP_max=$ac_count 4304 fi 4305 # 10*(2^10) chars as input seems more than enough 4306 test $ac_count -gt 10 && break 4307 done 4308 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4309esac 4310 4311 $ac_path_GREP_found && break 3 4312 done 4313 done 4314 done 4315IFS=$as_save_IFS 4316 if test -z "$ac_cv_path_GREP"; then 4317 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4318 fi 4319else 4320 ac_cv_path_GREP=$GREP 4321fi 4322 4323fi 4324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4325$as_echo "$ac_cv_path_GREP" >&6; } 4326 GREP="$ac_cv_path_GREP" 4327 4328 4329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4330$as_echo_n "checking for egrep... " >&6; } 4331if ${ac_cv_path_EGREP+:} false; then : 4332 $as_echo_n "(cached) " >&6 4333else 4334 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4335 then ac_cv_path_EGREP="$GREP -E" 4336 else 4337 if test -z "$EGREP"; then 4338 ac_path_EGREP_found=false 4339 # Loop through the user's path and test for each of PROGNAME-LIST 4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4341for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4342do 4343 IFS=$as_save_IFS 4344 test -z "$as_dir" && as_dir=. 4345 for ac_prog in egrep; do 4346 for ac_exec_ext in '' $ac_executable_extensions; do 4347 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4348 as_fn_executable_p "$ac_path_EGREP" || continue 4349# Check for GNU ac_path_EGREP and select it if it is found. 4350 # Check for GNU $ac_path_EGREP 4351case `"$ac_path_EGREP" --version 2>&1` in 4352*GNU*) 4353 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4354*) 4355 ac_count=0 4356 $as_echo_n 0123456789 >"conftest.in" 4357 while : 4358 do 4359 cat "conftest.in" "conftest.in" >"conftest.tmp" 4360 mv "conftest.tmp" "conftest.in" 4361 cp "conftest.in" "conftest.nl" 4362 $as_echo 'EGREP' >> "conftest.nl" 4363 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4364 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4365 as_fn_arith $ac_count + 1 && ac_count=$as_val 4366 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4367 # Best one so far, save it but keep looking for a better one 4368 ac_cv_path_EGREP="$ac_path_EGREP" 4369 ac_path_EGREP_max=$ac_count 4370 fi 4371 # 10*(2^10) chars as input seems more than enough 4372 test $ac_count -gt 10 && break 4373 done 4374 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4375esac 4376 4377 $ac_path_EGREP_found && break 3 4378 done 4379 done 4380 done 4381IFS=$as_save_IFS 4382 if test -z "$ac_cv_path_EGREP"; then 4383 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4384 fi 4385else 4386 ac_cv_path_EGREP=$EGREP 4387fi 4388 4389 fi 4390fi 4391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4392$as_echo "$ac_cv_path_EGREP" >&6; } 4393 EGREP="$ac_cv_path_EGREP" 4394 4395 4396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4397$as_echo_n "checking for fgrep... " >&6; } 4398if ${ac_cv_path_FGREP+:} false; then : 4399 $as_echo_n "(cached) " >&6 4400else 4401 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4402 then ac_cv_path_FGREP="$GREP -F" 4403 else 4404 if test -z "$FGREP"; then 4405 ac_path_FGREP_found=false 4406 # Loop through the user's path and test for each of PROGNAME-LIST 4407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4408for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4409do 4410 IFS=$as_save_IFS 4411 test -z "$as_dir" && as_dir=. 4412 for ac_prog in fgrep; do 4413 for ac_exec_ext in '' $ac_executable_extensions; do 4414 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4415 as_fn_executable_p "$ac_path_FGREP" || continue 4416# Check for GNU ac_path_FGREP and select it if it is found. 4417 # Check for GNU $ac_path_FGREP 4418case `"$ac_path_FGREP" --version 2>&1` in 4419*GNU*) 4420 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4421*) 4422 ac_count=0 4423 $as_echo_n 0123456789 >"conftest.in" 4424 while : 4425 do 4426 cat "conftest.in" "conftest.in" >"conftest.tmp" 4427 mv "conftest.tmp" "conftest.in" 4428 cp "conftest.in" "conftest.nl" 4429 $as_echo 'FGREP' >> "conftest.nl" 4430 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4431 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4432 as_fn_arith $ac_count + 1 && ac_count=$as_val 4433 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4434 # Best one so far, save it but keep looking for a better one 4435 ac_cv_path_FGREP="$ac_path_FGREP" 4436 ac_path_FGREP_max=$ac_count 4437 fi 4438 # 10*(2^10) chars as input seems more than enough 4439 test $ac_count -gt 10 && break 4440 done 4441 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4442esac 4443 4444 $ac_path_FGREP_found && break 3 4445 done 4446 done 4447 done 4448IFS=$as_save_IFS 4449 if test -z "$ac_cv_path_FGREP"; then 4450 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4451 fi 4452else 4453 ac_cv_path_FGREP=$FGREP 4454fi 4455 4456 fi 4457fi 4458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4459$as_echo "$ac_cv_path_FGREP" >&6; } 4460 FGREP="$ac_cv_path_FGREP" 4461 4462 4463test -z "$GREP" && GREP=grep 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483# Check whether --with-gnu-ld was given. 4484if test "${with_gnu_ld+set}" = set; then : 4485 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4486else 4487 with_gnu_ld=no 4488fi 4489 4490ac_prog=ld 4491if test yes = "$GCC"; then 4492 # Check if gcc -print-prog-name=ld gives a path. 4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4494$as_echo_n "checking for ld used by $CC... " >&6; } 4495 case $host in 4496 *-*-mingw*) 4497 # gcc leaves a trailing carriage return, which upsets mingw 4498 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4499 *) 4500 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4501 esac 4502 case $ac_prog in 4503 # Accept absolute paths. 4504 [\\/]* | ?:[\\/]*) 4505 re_direlt='/[^/][^/]*/\.\./' 4506 # Canonicalize the pathname of ld 4507 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4508 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4509 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4510 done 4511 test -z "$LD" && LD=$ac_prog 4512 ;; 4513 "") 4514 # If it fails, then pretend we aren't using GCC. 4515 ac_prog=ld 4516 ;; 4517 *) 4518 # If it is relative, then search for the first ld in PATH. 4519 with_gnu_ld=unknown 4520 ;; 4521 esac 4522elif test yes = "$with_gnu_ld"; then 4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4524$as_echo_n "checking for GNU ld... " >&6; } 4525else 4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4527$as_echo_n "checking for non-GNU ld... " >&6; } 4528fi 4529if ${lt_cv_path_LD+:} false; then : 4530 $as_echo_n "(cached) " >&6 4531else 4532 if test -z "$LD"; then 4533 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4534 for ac_dir in $PATH; do 4535 IFS=$lt_save_ifs 4536 test -z "$ac_dir" && ac_dir=. 4537 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4538 lt_cv_path_LD=$ac_dir/$ac_prog 4539 # Check to see if the program is GNU ld. I'd rather use --version, 4540 # but apparently some variants of GNU ld only accept -v. 4541 # Break only if it was the GNU/non-GNU ld that we prefer. 4542 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4543 *GNU* | *'with BFD'*) 4544 test no != "$with_gnu_ld" && break 4545 ;; 4546 *) 4547 test yes != "$with_gnu_ld" && break 4548 ;; 4549 esac 4550 fi 4551 done 4552 IFS=$lt_save_ifs 4553else 4554 lt_cv_path_LD=$LD # Let the user override the test with a path. 4555fi 4556fi 4557 4558LD=$lt_cv_path_LD 4559if test -n "$LD"; then 4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4561$as_echo "$LD" >&6; } 4562else 4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4564$as_echo "no" >&6; } 4565fi 4566test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4568$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4569if ${lt_cv_prog_gnu_ld+:} false; then : 4570 $as_echo_n "(cached) " >&6 4571else 4572 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4573case `$LD -v 2>&1 </dev/null` in 4574*GNU* | *'with BFD'*) 4575 lt_cv_prog_gnu_ld=yes 4576 ;; 4577*) 4578 lt_cv_prog_gnu_ld=no 4579 ;; 4580esac 4581fi 4582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4583$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4584with_gnu_ld=$lt_cv_prog_gnu_ld 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4595$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4596if ${lt_cv_path_NM+:} false; then : 4597 $as_echo_n "(cached) " >&6 4598else 4599 if test -n "$NM"; then 4600 # Let the user override the test. 4601 lt_cv_path_NM=$NM 4602else 4603 lt_nm_to_check=${ac_tool_prefix}nm 4604 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4605 lt_nm_to_check="$lt_nm_to_check nm" 4606 fi 4607 for lt_tmp_nm in $lt_nm_to_check; do 4608 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4609 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4610 IFS=$lt_save_ifs 4611 test -z "$ac_dir" && ac_dir=. 4612 tmp_nm=$ac_dir/$lt_tmp_nm 4613 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4614 # Check to see if the nm accepts a BSD-compat flag. 4615 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4616 # nm: unknown option "B" ignored 4617 # Tru64's nm complains that /dev/null is an invalid object file 4618 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4619 case $build_os in 4620 mingw*) lt_bad_file=conftest.nm/nofile ;; 4621 *) lt_bad_file=/dev/null ;; 4622 esac 4623 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4624 *$lt_bad_file* | *'Invalid file or object type'*) 4625 lt_cv_path_NM="$tmp_nm -B" 4626 break 2 4627 ;; 4628 *) 4629 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4630 */dev/null*) 4631 lt_cv_path_NM="$tmp_nm -p" 4632 break 2 4633 ;; 4634 *) 4635 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4636 continue # so that we can try to find one that supports BSD flags 4637 ;; 4638 esac 4639 ;; 4640 esac 4641 fi 4642 done 4643 IFS=$lt_save_ifs 4644 done 4645 : ${lt_cv_path_NM=no} 4646fi 4647fi 4648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4649$as_echo "$lt_cv_path_NM" >&6; } 4650if test no != "$lt_cv_path_NM"; then 4651 NM=$lt_cv_path_NM 4652else 4653 # Didn't find any BSD compatible name lister, look for dumpbin. 4654 if test -n "$DUMPBIN"; then : 4655 # Let the user override the test. 4656 else 4657 if test -n "$ac_tool_prefix"; then 4658 for ac_prog in dumpbin "link -dump" 4659 do 4660 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4661set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4663$as_echo_n "checking for $ac_word... " >&6; } 4664if ${ac_cv_prog_DUMPBIN+:} false; then : 4665 $as_echo_n "(cached) " >&6 4666else 4667 if test -n "$DUMPBIN"; then 4668 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4669else 4670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4671for as_dir in $PATH 4672do 4673 IFS=$as_save_IFS 4674 test -z "$as_dir" && as_dir=. 4675 for ac_exec_ext in '' $ac_executable_extensions; do 4676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4677 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4679 break 2 4680 fi 4681done 4682 done 4683IFS=$as_save_IFS 4684 4685fi 4686fi 4687DUMPBIN=$ac_cv_prog_DUMPBIN 4688if test -n "$DUMPBIN"; then 4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4690$as_echo "$DUMPBIN" >&6; } 4691else 4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4693$as_echo "no" >&6; } 4694fi 4695 4696 4697 test -n "$DUMPBIN" && break 4698 done 4699fi 4700if test -z "$DUMPBIN"; then 4701 ac_ct_DUMPBIN=$DUMPBIN 4702 for ac_prog in dumpbin "link -dump" 4703do 4704 # Extract the first word of "$ac_prog", so it can be a program name with args. 4705set dummy $ac_prog; ac_word=$2 4706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4707$as_echo_n "checking for $ac_word... " >&6; } 4708if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4709 $as_echo_n "(cached) " >&6 4710else 4711 if test -n "$ac_ct_DUMPBIN"; then 4712 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4713else 4714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4715for as_dir in $PATH 4716do 4717 IFS=$as_save_IFS 4718 test -z "$as_dir" && as_dir=. 4719 for ac_exec_ext in '' $ac_executable_extensions; do 4720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4721 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4723 break 2 4724 fi 4725done 4726 done 4727IFS=$as_save_IFS 4728 4729fi 4730fi 4731ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4732if test -n "$ac_ct_DUMPBIN"; then 4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4734$as_echo "$ac_ct_DUMPBIN" >&6; } 4735else 4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4737$as_echo "no" >&6; } 4738fi 4739 4740 4741 test -n "$ac_ct_DUMPBIN" && break 4742done 4743 4744 if test "x$ac_ct_DUMPBIN" = x; then 4745 DUMPBIN=":" 4746 else 4747 case $cross_compiling:$ac_tool_warned in 4748yes:) 4749{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4750$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4751ac_tool_warned=yes ;; 4752esac 4753 DUMPBIN=$ac_ct_DUMPBIN 4754 fi 4755fi 4756 4757 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4758 *COFF*) 4759 DUMPBIN="$DUMPBIN -symbols -headers" 4760 ;; 4761 *) 4762 DUMPBIN=: 4763 ;; 4764 esac 4765 fi 4766 4767 if test : != "$DUMPBIN"; then 4768 NM=$DUMPBIN 4769 fi 4770fi 4771test -z "$NM" && NM=nm 4772 4773 4774 4775 4776 4777 4778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4779$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4780if ${lt_cv_nm_interface+:} false; then : 4781 $as_echo_n "(cached) " >&6 4782else 4783 lt_cv_nm_interface="BSD nm" 4784 echo "int some_variable = 0;" > conftest.$ac_ext 4785 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4786 (eval "$ac_compile" 2>conftest.err) 4787 cat conftest.err >&5 4788 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4789 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4790 cat conftest.err >&5 4791 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4792 cat conftest.out >&5 4793 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4794 lt_cv_nm_interface="MS dumpbin" 4795 fi 4796 rm -f conftest* 4797fi 4798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4799$as_echo "$lt_cv_nm_interface" >&6; } 4800 4801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4802$as_echo_n "checking whether ln -s works... " >&6; } 4803LN_S=$as_ln_s 4804if test "$LN_S" = "ln -s"; then 4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4806$as_echo "yes" >&6; } 4807else 4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4809$as_echo "no, using $LN_S" >&6; } 4810fi 4811 4812# find the maximum length of command line arguments 4813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4814$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4815if ${lt_cv_sys_max_cmd_len+:} false; then : 4816 $as_echo_n "(cached) " >&6 4817else 4818 i=0 4819 teststring=ABCD 4820 4821 case $build_os in 4822 msdosdjgpp*) 4823 # On DJGPP, this test can blow up pretty badly due to problems in libc 4824 # (any single argument exceeding 2000 bytes causes a buffer overrun 4825 # during glob expansion). Even if it were fixed, the result of this 4826 # check would be larger than it should be. 4827 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4828 ;; 4829 4830 gnu*) 4831 # Under GNU Hurd, this test is not required because there is 4832 # no limit to the length of command line arguments. 4833 # Libtool will interpret -1 as no limit whatsoever 4834 lt_cv_sys_max_cmd_len=-1; 4835 ;; 4836 4837 cygwin* | mingw* | cegcc*) 4838 # On Win9x/ME, this test blows up -- it succeeds, but takes 4839 # about 5 minutes as the teststring grows exponentially. 4840 # Worse, since 9x/ME are not pre-emptively multitasking, 4841 # you end up with a "frozen" computer, even though with patience 4842 # the test eventually succeeds (with a max line length of 256k). 4843 # Instead, let's just punt: use the minimum linelength reported by 4844 # all of the supported platforms: 8192 (on NT/2K/XP). 4845 lt_cv_sys_max_cmd_len=8192; 4846 ;; 4847 4848 mint*) 4849 # On MiNT this can take a long time and run out of memory. 4850 lt_cv_sys_max_cmd_len=8192; 4851 ;; 4852 4853 amigaos*) 4854 # On AmigaOS with pdksh, this test takes hours, literally. 4855 # So we just punt and use a minimum line length of 8192. 4856 lt_cv_sys_max_cmd_len=8192; 4857 ;; 4858 4859 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4860 # This has been around since 386BSD, at least. Likely further. 4861 if test -x /sbin/sysctl; then 4862 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4863 elif test -x /usr/sbin/sysctl; then 4864 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4865 else 4866 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4867 fi 4868 # And add a safety zone 4869 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4870 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4871 ;; 4872 4873 interix*) 4874 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4875 lt_cv_sys_max_cmd_len=196608 4876 ;; 4877 4878 os2*) 4879 # The test takes a long time on OS/2. 4880 lt_cv_sys_max_cmd_len=8192 4881 ;; 4882 4883 osf*) 4884 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4885 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4886 # nice to cause kernel panics so lets avoid the loop below. 4887 # First set a reasonable default. 4888 lt_cv_sys_max_cmd_len=16384 4889 # 4890 if test -x /sbin/sysconfig; then 4891 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4892 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4893 esac 4894 fi 4895 ;; 4896 sco3.2v5*) 4897 lt_cv_sys_max_cmd_len=102400 4898 ;; 4899 sysv5* | sco5v6* | sysv4.2uw2*) 4900 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4901 if test -n "$kargmax"; then 4902 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4903 else 4904 lt_cv_sys_max_cmd_len=32768 4905 fi 4906 ;; 4907 *) 4908 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4909 if test -n "$lt_cv_sys_max_cmd_len" && \ 4910 test undefined != "$lt_cv_sys_max_cmd_len"; then 4911 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4912 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4913 else 4914 # Make teststring a little bigger before we do anything with it. 4915 # a 1K string should be a reasonable start. 4916 for i in 1 2 3 4 5 6 7 8; do 4917 teststring=$teststring$teststring 4918 done 4919 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4920 # If test is not a shell built-in, we'll probably end up computing a 4921 # maximum length that is only half of the actual maximum length, but 4922 # we can't tell. 4923 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 4924 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4925 test 17 != "$i" # 1/2 MB should be enough 4926 do 4927 i=`expr $i + 1` 4928 teststring=$teststring$teststring 4929 done 4930 # Only check the string length outside the loop. 4931 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4932 teststring= 4933 # Add a significant safety factor because C++ compilers can tack on 4934 # massive amounts of additional arguments before passing them to the 4935 # linker. It appears as though 1/2 is a usable value. 4936 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4937 fi 4938 ;; 4939 esac 4940 4941fi 4942 4943if test -n "$lt_cv_sys_max_cmd_len"; then 4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4945$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4946else 4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4948$as_echo "none" >&6; } 4949fi 4950max_cmd_len=$lt_cv_sys_max_cmd_len 4951 4952 4953 4954 4955 4956 4957: ${CP="cp -f"} 4958: ${MV="mv -f"} 4959: ${RM="rm -f"} 4960 4961if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4962 lt_unset=unset 4963else 4964 lt_unset=false 4965fi 4966 4967 4968 4969 4970 4971# test EBCDIC or ASCII 4972case `echo X|tr X '\101'` in 4973 A) # ASCII based system 4974 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4975 lt_SP2NL='tr \040 \012' 4976 lt_NL2SP='tr \015\012 \040\040' 4977 ;; 4978 *) # EBCDIC based system 4979 lt_SP2NL='tr \100 \n' 4980 lt_NL2SP='tr \r\n \100\100' 4981 ;; 4982esac 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4993$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4994if ${lt_cv_to_host_file_cmd+:} false; then : 4995 $as_echo_n "(cached) " >&6 4996else 4997 case $host in 4998 *-*-mingw* ) 4999 case $build in 5000 *-*-mingw* ) # actually msys 5001 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5002 ;; 5003 *-*-cygwin* ) 5004 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5005 ;; 5006 * ) # otherwise, assume *nix 5007 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5008 ;; 5009 esac 5010 ;; 5011 *-*-cygwin* ) 5012 case $build in 5013 *-*-mingw* ) # actually msys 5014 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5015 ;; 5016 *-*-cygwin* ) 5017 lt_cv_to_host_file_cmd=func_convert_file_noop 5018 ;; 5019 * ) # otherwise, assume *nix 5020 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5021 ;; 5022 esac 5023 ;; 5024 * ) # unhandled hosts (and "normal" native builds) 5025 lt_cv_to_host_file_cmd=func_convert_file_noop 5026 ;; 5027esac 5028 5029fi 5030 5031to_host_file_cmd=$lt_cv_to_host_file_cmd 5032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5033$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5034 5035 5036 5037 5038 5039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5040$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5041if ${lt_cv_to_tool_file_cmd+:} false; then : 5042 $as_echo_n "(cached) " >&6 5043else 5044 #assume ordinary cross tools, or native build. 5045lt_cv_to_tool_file_cmd=func_convert_file_noop 5046case $host in 5047 *-*-mingw* ) 5048 case $build in 5049 *-*-mingw* ) # actually msys 5050 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5051 ;; 5052 esac 5053 ;; 5054esac 5055 5056fi 5057 5058to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5060$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5061 5062 5063 5064 5065 5066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5067$as_echo_n "checking for $LD option to reload object files... " >&6; } 5068if ${lt_cv_ld_reload_flag+:} false; then : 5069 $as_echo_n "(cached) " >&6 5070else 5071 lt_cv_ld_reload_flag='-r' 5072fi 5073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5074$as_echo "$lt_cv_ld_reload_flag" >&6; } 5075reload_flag=$lt_cv_ld_reload_flag 5076case $reload_flag in 5077"" | " "*) ;; 5078*) reload_flag=" $reload_flag" ;; 5079esac 5080reload_cmds='$LD$reload_flag -o $output$reload_objs' 5081case $host_os in 5082 cygwin* | mingw* | pw32* | cegcc*) 5083 if test yes != "$GCC"; then 5084 reload_cmds=false 5085 fi 5086 ;; 5087 darwin*) 5088 if test yes = "$GCC"; then 5089 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5090 else 5091 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5092 fi 5093 ;; 5094esac 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104if test -n "$ac_tool_prefix"; then 5105 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5106set dummy ${ac_tool_prefix}objdump; ac_word=$2 5107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5108$as_echo_n "checking for $ac_word... " >&6; } 5109if ${ac_cv_prog_OBJDUMP+:} false; then : 5110 $as_echo_n "(cached) " >&6 5111else 5112 if test -n "$OBJDUMP"; then 5113 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5114else 5115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5116for as_dir in $PATH 5117do 5118 IFS=$as_save_IFS 5119 test -z "$as_dir" && as_dir=. 5120 for ac_exec_ext in '' $ac_executable_extensions; do 5121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5122 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5124 break 2 5125 fi 5126done 5127 done 5128IFS=$as_save_IFS 5129 5130fi 5131fi 5132OBJDUMP=$ac_cv_prog_OBJDUMP 5133if test -n "$OBJDUMP"; then 5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5135$as_echo "$OBJDUMP" >&6; } 5136else 5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5138$as_echo "no" >&6; } 5139fi 5140 5141 5142fi 5143if test -z "$ac_cv_prog_OBJDUMP"; then 5144 ac_ct_OBJDUMP=$OBJDUMP 5145 # Extract the first word of "objdump", so it can be a program name with args. 5146set dummy objdump; ac_word=$2 5147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5148$as_echo_n "checking for $ac_word... " >&6; } 5149if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5150 $as_echo_n "(cached) " >&6 5151else 5152 if test -n "$ac_ct_OBJDUMP"; then 5153 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5154else 5155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5156for as_dir in $PATH 5157do 5158 IFS=$as_save_IFS 5159 test -z "$as_dir" && as_dir=. 5160 for ac_exec_ext in '' $ac_executable_extensions; do 5161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5162 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5164 break 2 5165 fi 5166done 5167 done 5168IFS=$as_save_IFS 5169 5170fi 5171fi 5172ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5173if test -n "$ac_ct_OBJDUMP"; then 5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5175$as_echo "$ac_ct_OBJDUMP" >&6; } 5176else 5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5178$as_echo "no" >&6; } 5179fi 5180 5181 if test "x$ac_ct_OBJDUMP" = x; then 5182 OBJDUMP="false" 5183 else 5184 case $cross_compiling:$ac_tool_warned in 5185yes:) 5186{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5187$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5188ac_tool_warned=yes ;; 5189esac 5190 OBJDUMP=$ac_ct_OBJDUMP 5191 fi 5192else 5193 OBJDUMP="$ac_cv_prog_OBJDUMP" 5194fi 5195 5196test -z "$OBJDUMP" && OBJDUMP=objdump 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5207$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5208if ${lt_cv_deplibs_check_method+:} false; then : 5209 $as_echo_n "(cached) " >&6 5210else 5211 lt_cv_file_magic_cmd='$MAGIC_CMD' 5212lt_cv_file_magic_test_file= 5213lt_cv_deplibs_check_method='unknown' 5214# Need to set the preceding variable on all platforms that support 5215# interlibrary dependencies. 5216# 'none' -- dependencies not supported. 5217# 'unknown' -- same as none, but documents that we really don't know. 5218# 'pass_all' -- all dependencies passed with no checks. 5219# 'test_compile' -- check by making test program. 5220# 'file_magic [[regex]]' -- check by looking for files in library path 5221# that responds to the $file_magic_cmd with a given extended regex. 5222# If you have 'file' or equivalent on your system and you're not sure 5223# whether 'pass_all' will *always* work, you probably want this one. 5224 5225case $host_os in 5226aix[4-9]*) 5227 lt_cv_deplibs_check_method=pass_all 5228 ;; 5229 5230beos*) 5231 lt_cv_deplibs_check_method=pass_all 5232 ;; 5233 5234bsdi[45]*) 5235 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5236 lt_cv_file_magic_cmd='/usr/bin/file -L' 5237 lt_cv_file_magic_test_file=/shlib/libc.so 5238 ;; 5239 5240cygwin*) 5241 # func_win32_libid is a shell function defined in ltmain.sh 5242 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5243 lt_cv_file_magic_cmd='func_win32_libid' 5244 ;; 5245 5246mingw* | pw32*) 5247 # Base MSYS/MinGW do not provide the 'file' command needed by 5248 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5249 # unless we find 'file', for example because we are cross-compiling. 5250 if ( file / ) >/dev/null 2>&1; then 5251 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5252 lt_cv_file_magic_cmd='func_win32_libid' 5253 else 5254 # Keep this pattern in sync with the one in func_win32_libid. 5255 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5256 lt_cv_file_magic_cmd='$OBJDUMP -f' 5257 fi 5258 ;; 5259 5260cegcc*) 5261 # use the weaker test based on 'objdump'. See mingw*. 5262 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5263 lt_cv_file_magic_cmd='$OBJDUMP -f' 5264 ;; 5265 5266darwin* | rhapsody*) 5267 lt_cv_deplibs_check_method=pass_all 5268 ;; 5269 5270freebsd* | dragonfly*) 5271 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5272 case $host_cpu in 5273 i*86 ) 5274 # Not sure whether the presence of OpenBSD here was a mistake. 5275 # Let's accept both of them until this is cleared up. 5276 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5277 lt_cv_file_magic_cmd=/usr/bin/file 5278 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5279 ;; 5280 esac 5281 else 5282 lt_cv_deplibs_check_method=pass_all 5283 fi 5284 ;; 5285 5286haiku*) 5287 lt_cv_deplibs_check_method=pass_all 5288 ;; 5289 5290hpux10.20* | hpux11*) 5291 lt_cv_file_magic_cmd=/usr/bin/file 5292 case $host_cpu in 5293 ia64*) 5294 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5295 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5296 ;; 5297 hppa*64*) 5298 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]' 5299 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5300 ;; 5301 *) 5302 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5303 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5304 ;; 5305 esac 5306 ;; 5307 5308interix[3-9]*) 5309 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5310 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5311 ;; 5312 5313irix5* | irix6* | nonstopux*) 5314 case $LD in 5315 *-32|*"-32 ") libmagic=32-bit;; 5316 *-n32|*"-n32 ") libmagic=N32;; 5317 *-64|*"-64 ") libmagic=64-bit;; 5318 *) libmagic=never-match;; 5319 esac 5320 lt_cv_deplibs_check_method=pass_all 5321 ;; 5322 5323# This must be glibc/ELF. 5324linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5325 lt_cv_deplibs_check_method=pass_all 5326 ;; 5327 5328netbsd* | netbsdelf*-gnu) 5329 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5330 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5331 else 5332 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5333 fi 5334 ;; 5335 5336newos6*) 5337 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5338 lt_cv_file_magic_cmd=/usr/bin/file 5339 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5340 ;; 5341 5342*nto* | *qnx*) 5343 lt_cv_deplibs_check_method=pass_all 5344 ;; 5345 5346openbsd* | bitrig*) 5347 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5348 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5349 else 5350 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5351 fi 5352 ;; 5353 5354osf3* | osf4* | osf5*) 5355 lt_cv_deplibs_check_method=pass_all 5356 ;; 5357 5358rdos*) 5359 lt_cv_deplibs_check_method=pass_all 5360 ;; 5361 5362solaris*) 5363 lt_cv_deplibs_check_method=pass_all 5364 ;; 5365 5366sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5367 lt_cv_deplibs_check_method=pass_all 5368 ;; 5369 5370sysv4 | sysv4.3*) 5371 case $host_vendor in 5372 motorola) 5373 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]' 5374 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5375 ;; 5376 ncr) 5377 lt_cv_deplibs_check_method=pass_all 5378 ;; 5379 sequent) 5380 lt_cv_file_magic_cmd='/bin/file' 5381 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5382 ;; 5383 sni) 5384 lt_cv_file_magic_cmd='/bin/file' 5385 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5386 lt_cv_file_magic_test_file=/lib/libc.so 5387 ;; 5388 siemens) 5389 lt_cv_deplibs_check_method=pass_all 5390 ;; 5391 pc) 5392 lt_cv_deplibs_check_method=pass_all 5393 ;; 5394 esac 5395 ;; 5396 5397tpf*) 5398 lt_cv_deplibs_check_method=pass_all 5399 ;; 5400os2*) 5401 lt_cv_deplibs_check_method=pass_all 5402 ;; 5403esac 5404 5405fi 5406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5407$as_echo "$lt_cv_deplibs_check_method" >&6; } 5408 5409file_magic_glob= 5410want_nocaseglob=no 5411if test "$build" = "$host"; then 5412 case $host_os in 5413 mingw* | pw32*) 5414 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5415 want_nocaseglob=yes 5416 else 5417 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5418 fi 5419 ;; 5420 esac 5421fi 5422 5423file_magic_cmd=$lt_cv_file_magic_cmd 5424deplibs_check_method=$lt_cv_deplibs_check_method 5425test -z "$deplibs_check_method" && deplibs_check_method=unknown 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448if test -n "$ac_tool_prefix"; then 5449 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5450set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5452$as_echo_n "checking for $ac_word... " >&6; } 5453if ${ac_cv_prog_DLLTOOL+:} false; then : 5454 $as_echo_n "(cached) " >&6 5455else 5456 if test -n "$DLLTOOL"; then 5457 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5458else 5459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5460for as_dir in $PATH 5461do 5462 IFS=$as_save_IFS 5463 test -z "$as_dir" && as_dir=. 5464 for ac_exec_ext in '' $ac_executable_extensions; do 5465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5466 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5468 break 2 5469 fi 5470done 5471 done 5472IFS=$as_save_IFS 5473 5474fi 5475fi 5476DLLTOOL=$ac_cv_prog_DLLTOOL 5477if test -n "$DLLTOOL"; then 5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5479$as_echo "$DLLTOOL" >&6; } 5480else 5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5482$as_echo "no" >&6; } 5483fi 5484 5485 5486fi 5487if test -z "$ac_cv_prog_DLLTOOL"; then 5488 ac_ct_DLLTOOL=$DLLTOOL 5489 # Extract the first word of "dlltool", so it can be a program name with args. 5490set dummy dlltool; ac_word=$2 5491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5492$as_echo_n "checking for $ac_word... " >&6; } 5493if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5494 $as_echo_n "(cached) " >&6 5495else 5496 if test -n "$ac_ct_DLLTOOL"; then 5497 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5498else 5499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5500for as_dir in $PATH 5501do 5502 IFS=$as_save_IFS 5503 test -z "$as_dir" && as_dir=. 5504 for ac_exec_ext in '' $ac_executable_extensions; do 5505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5506 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5508 break 2 5509 fi 5510done 5511 done 5512IFS=$as_save_IFS 5513 5514fi 5515fi 5516ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5517if test -n "$ac_ct_DLLTOOL"; then 5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5519$as_echo "$ac_ct_DLLTOOL" >&6; } 5520else 5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5522$as_echo "no" >&6; } 5523fi 5524 5525 if test "x$ac_ct_DLLTOOL" = x; then 5526 DLLTOOL="false" 5527 else 5528 case $cross_compiling:$ac_tool_warned in 5529yes:) 5530{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5531$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5532ac_tool_warned=yes ;; 5533esac 5534 DLLTOOL=$ac_ct_DLLTOOL 5535 fi 5536else 5537 DLLTOOL="$ac_cv_prog_DLLTOOL" 5538fi 5539 5540test -z "$DLLTOOL" && DLLTOOL=dlltool 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5552$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5553if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5554 $as_echo_n "(cached) " >&6 5555else 5556 lt_cv_sharedlib_from_linklib_cmd='unknown' 5557 5558case $host_os in 5559cygwin* | mingw* | pw32* | cegcc*) 5560 # two different shell functions defined in ltmain.sh; 5561 # decide which one to use based on capabilities of $DLLTOOL 5562 case `$DLLTOOL --help 2>&1` in 5563 *--identify-strict*) 5564 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5565 ;; 5566 *) 5567 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5568 ;; 5569 esac 5570 ;; 5571*) 5572 # fallback: assume linklib IS sharedlib 5573 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5574 ;; 5575esac 5576 5577fi 5578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5579$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5580sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5581test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5582 5583 5584 5585 5586 5587 5588 5589 5590if test -n "$ac_tool_prefix"; then 5591 for ac_prog in ar 5592 do 5593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5594set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5596$as_echo_n "checking for $ac_word... " >&6; } 5597if ${ac_cv_prog_AR+:} false; then : 5598 $as_echo_n "(cached) " >&6 5599else 5600 if test -n "$AR"; then 5601 ac_cv_prog_AR="$AR" # Let the user override the test. 5602else 5603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5604for as_dir in $PATH 5605do 5606 IFS=$as_save_IFS 5607 test -z "$as_dir" && as_dir=. 5608 for ac_exec_ext in '' $ac_executable_extensions; do 5609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5610 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5612 break 2 5613 fi 5614done 5615 done 5616IFS=$as_save_IFS 5617 5618fi 5619fi 5620AR=$ac_cv_prog_AR 5621if test -n "$AR"; then 5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5623$as_echo "$AR" >&6; } 5624else 5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5626$as_echo "no" >&6; } 5627fi 5628 5629 5630 test -n "$AR" && break 5631 done 5632fi 5633if test -z "$AR"; then 5634 ac_ct_AR=$AR 5635 for ac_prog in ar 5636do 5637 # Extract the first word of "$ac_prog", so it can be a program name with args. 5638set dummy $ac_prog; ac_word=$2 5639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5640$as_echo_n "checking for $ac_word... " >&6; } 5641if ${ac_cv_prog_ac_ct_AR+:} false; then : 5642 $as_echo_n "(cached) " >&6 5643else 5644 if test -n "$ac_ct_AR"; then 5645 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5646else 5647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5648for as_dir in $PATH 5649do 5650 IFS=$as_save_IFS 5651 test -z "$as_dir" && as_dir=. 5652 for ac_exec_ext in '' $ac_executable_extensions; do 5653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5654 ac_cv_prog_ac_ct_AR="$ac_prog" 5655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5656 break 2 5657 fi 5658done 5659 done 5660IFS=$as_save_IFS 5661 5662fi 5663fi 5664ac_ct_AR=$ac_cv_prog_ac_ct_AR 5665if test -n "$ac_ct_AR"; then 5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5667$as_echo "$ac_ct_AR" >&6; } 5668else 5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5670$as_echo "no" >&6; } 5671fi 5672 5673 5674 test -n "$ac_ct_AR" && break 5675done 5676 5677 if test "x$ac_ct_AR" = x; then 5678 AR="false" 5679 else 5680 case $cross_compiling:$ac_tool_warned in 5681yes:) 5682{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5683$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5684ac_tool_warned=yes ;; 5685esac 5686 AR=$ac_ct_AR 5687 fi 5688fi 5689 5690: ${AR=ar} 5691: ${AR_FLAGS=cr} 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5704$as_echo_n "checking for archiver @FILE support... " >&6; } 5705if ${lt_cv_ar_at_file+:} false; then : 5706 $as_echo_n "(cached) " >&6 5707else 5708 lt_cv_ar_at_file=no 5709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5710/* end confdefs.h. */ 5711 5712int 5713main () 5714{ 5715 5716 ; 5717 return 0; 5718} 5719_ACEOF 5720if ac_fn_c_try_compile "$LINENO"; then : 5721 echo conftest.$ac_objext > conftest.lst 5722 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5723 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5724 (eval $lt_ar_try) 2>&5 5725 ac_status=$? 5726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5727 test $ac_status = 0; } 5728 if test 0 -eq "$ac_status"; then 5729 # Ensure the archiver fails upon bogus file names. 5730 rm -f conftest.$ac_objext libconftest.a 5731 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5732 (eval $lt_ar_try) 2>&5 5733 ac_status=$? 5734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5735 test $ac_status = 0; } 5736 if test 0 -ne "$ac_status"; then 5737 lt_cv_ar_at_file=@ 5738 fi 5739 fi 5740 rm -f conftest.* libconftest.a 5741 5742fi 5743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5744 5745fi 5746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5747$as_echo "$lt_cv_ar_at_file" >&6; } 5748 5749if test no = "$lt_cv_ar_at_file"; then 5750 archiver_list_spec= 5751else 5752 archiver_list_spec=$lt_cv_ar_at_file 5753fi 5754 5755 5756 5757 5758 5759 5760 5761if test -n "$ac_tool_prefix"; then 5762 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5763set dummy ${ac_tool_prefix}strip; ac_word=$2 5764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5765$as_echo_n "checking for $ac_word... " >&6; } 5766if ${ac_cv_prog_STRIP+:} false; then : 5767 $as_echo_n "(cached) " >&6 5768else 5769 if test -n "$STRIP"; then 5770 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5771else 5772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5773for as_dir in $PATH 5774do 5775 IFS=$as_save_IFS 5776 test -z "$as_dir" && as_dir=. 5777 for ac_exec_ext in '' $ac_executable_extensions; do 5778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5779 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5781 break 2 5782 fi 5783done 5784 done 5785IFS=$as_save_IFS 5786 5787fi 5788fi 5789STRIP=$ac_cv_prog_STRIP 5790if test -n "$STRIP"; then 5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5792$as_echo "$STRIP" >&6; } 5793else 5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5795$as_echo "no" >&6; } 5796fi 5797 5798 5799fi 5800if test -z "$ac_cv_prog_STRIP"; then 5801 ac_ct_STRIP=$STRIP 5802 # Extract the first word of "strip", so it can be a program name with args. 5803set dummy strip; ac_word=$2 5804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5805$as_echo_n "checking for $ac_word... " >&6; } 5806if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5807 $as_echo_n "(cached) " >&6 5808else 5809 if test -n "$ac_ct_STRIP"; then 5810 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5811else 5812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5813for as_dir in $PATH 5814do 5815 IFS=$as_save_IFS 5816 test -z "$as_dir" && as_dir=. 5817 for ac_exec_ext in '' $ac_executable_extensions; do 5818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5819 ac_cv_prog_ac_ct_STRIP="strip" 5820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5821 break 2 5822 fi 5823done 5824 done 5825IFS=$as_save_IFS 5826 5827fi 5828fi 5829ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5830if test -n "$ac_ct_STRIP"; then 5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5832$as_echo "$ac_ct_STRIP" >&6; } 5833else 5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5835$as_echo "no" >&6; } 5836fi 5837 5838 if test "x$ac_ct_STRIP" = x; then 5839 STRIP=":" 5840 else 5841 case $cross_compiling:$ac_tool_warned in 5842yes:) 5843{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5844$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5845ac_tool_warned=yes ;; 5846esac 5847 STRIP=$ac_ct_STRIP 5848 fi 5849else 5850 STRIP="$ac_cv_prog_STRIP" 5851fi 5852 5853test -z "$STRIP" && STRIP=: 5854 5855 5856 5857 5858 5859 5860if test -n "$ac_tool_prefix"; then 5861 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5862set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5864$as_echo_n "checking for $ac_word... " >&6; } 5865if ${ac_cv_prog_RANLIB+:} false; then : 5866 $as_echo_n "(cached) " >&6 5867else 5868 if test -n "$RANLIB"; then 5869 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5870else 5871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5872for as_dir in $PATH 5873do 5874 IFS=$as_save_IFS 5875 test -z "$as_dir" && as_dir=. 5876 for ac_exec_ext in '' $ac_executable_extensions; do 5877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5878 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5880 break 2 5881 fi 5882done 5883 done 5884IFS=$as_save_IFS 5885 5886fi 5887fi 5888RANLIB=$ac_cv_prog_RANLIB 5889if test -n "$RANLIB"; then 5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5891$as_echo "$RANLIB" >&6; } 5892else 5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5894$as_echo "no" >&6; } 5895fi 5896 5897 5898fi 5899if test -z "$ac_cv_prog_RANLIB"; then 5900 ac_ct_RANLIB=$RANLIB 5901 # Extract the first word of "ranlib", so it can be a program name with args. 5902set dummy ranlib; ac_word=$2 5903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5904$as_echo_n "checking for $ac_word... " >&6; } 5905if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5906 $as_echo_n "(cached) " >&6 5907else 5908 if test -n "$ac_ct_RANLIB"; then 5909 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5910else 5911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5912for as_dir in $PATH 5913do 5914 IFS=$as_save_IFS 5915 test -z "$as_dir" && as_dir=. 5916 for ac_exec_ext in '' $ac_executable_extensions; do 5917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5918 ac_cv_prog_ac_ct_RANLIB="ranlib" 5919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5920 break 2 5921 fi 5922done 5923 done 5924IFS=$as_save_IFS 5925 5926fi 5927fi 5928ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5929if test -n "$ac_ct_RANLIB"; then 5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5931$as_echo "$ac_ct_RANLIB" >&6; } 5932else 5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5934$as_echo "no" >&6; } 5935fi 5936 5937 if test "x$ac_ct_RANLIB" = x; then 5938 RANLIB=":" 5939 else 5940 case $cross_compiling:$ac_tool_warned in 5941yes:) 5942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5944ac_tool_warned=yes ;; 5945esac 5946 RANLIB=$ac_ct_RANLIB 5947 fi 5948else 5949 RANLIB="$ac_cv_prog_RANLIB" 5950fi 5951 5952test -z "$RANLIB" && RANLIB=: 5953 5954 5955 5956 5957 5958 5959# Determine commands to create old-style static archives. 5960old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5961old_postinstall_cmds='chmod 644 $oldlib' 5962old_postuninstall_cmds= 5963 5964if test -n "$RANLIB"; then 5965 case $host_os in 5966 bitrig* | openbsd*) 5967 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5968 ;; 5969 *) 5970 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5971 ;; 5972 esac 5973 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5974fi 5975 5976case $host_os in 5977 darwin*) 5978 lock_old_archive_extraction=yes ;; 5979 *) 5980 lock_old_archive_extraction=no ;; 5981esac 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021# If no C compiler was specified, use CC. 6022LTCC=${LTCC-"$CC"} 6023 6024# If no C compiler flags were specified, use CFLAGS. 6025LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6026 6027# Allow CC to be a program name with arguments. 6028compiler=$CC 6029 6030 6031# Check for command to grab the raw symbol name followed by C symbol from nm. 6032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6033$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6034if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6035 $as_echo_n "(cached) " >&6 6036else 6037 6038# These are sane defaults that work on at least a few old systems. 6039# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6040 6041# Character class describing NM global symbol codes. 6042symcode='[BCDEGRST]' 6043 6044# Regexp to match symbols that can be accessed directly from C. 6045sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6046 6047# Define system-specific variables. 6048case $host_os in 6049aix*) 6050 symcode='[BCDT]' 6051 ;; 6052cygwin* | mingw* | pw32* | cegcc*) 6053 symcode='[ABCDGISTW]' 6054 ;; 6055hpux*) 6056 if test ia64 = "$host_cpu"; then 6057 symcode='[ABCDEGRST]' 6058 fi 6059 ;; 6060irix* | nonstopux*) 6061 symcode='[BCDEGRST]' 6062 ;; 6063osf*) 6064 symcode='[BCDEGQRST]' 6065 ;; 6066solaris*) 6067 symcode='[BDRT]' 6068 ;; 6069sco3.2v5*) 6070 symcode='[DT]' 6071 ;; 6072sysv4.2uw2*) 6073 symcode='[DT]' 6074 ;; 6075sysv5* | sco5v6* | unixware* | OpenUNIX*) 6076 symcode='[ABDT]' 6077 ;; 6078sysv4) 6079 symcode='[DFNSTU]' 6080 ;; 6081esac 6082 6083# If we're using GNU nm, then use its standard symbol codes. 6084case `$NM -V 2>&1` in 6085*GNU* | *'with BFD'*) 6086 symcode='[ABCDGIRSTW]' ;; 6087esac 6088 6089if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6090 # Gets list of data symbols to import. 6091 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6092 # Adjust the below global symbol transforms to fixup imported variables. 6093 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6094 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6095 lt_c_name_lib_hook="\ 6096 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6097 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6098else 6099 # Disable hooks by default. 6100 lt_cv_sys_global_symbol_to_import= 6101 lt_cdecl_hook= 6102 lt_c_name_hook= 6103 lt_c_name_lib_hook= 6104fi 6105 6106# Transform an extracted symbol line into a proper C declaration. 6107# Some systems (esp. on ia64) link data and code symbols differently, 6108# so use this general approach. 6109lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6110$lt_cdecl_hook\ 6111" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6112" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6113 6114# Transform an extracted symbol line into symbol name and symbol address 6115lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6116$lt_c_name_hook\ 6117" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6118" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6119 6120# Transform an extracted symbol line into symbol name with lib prefix and 6121# symbol address. 6122lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6123$lt_c_name_lib_hook\ 6124" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6125" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6126" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6127 6128# Handle CRLF in mingw tool chain 6129opt_cr= 6130case $build_os in 6131mingw*) 6132 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6133 ;; 6134esac 6135 6136# Try without a prefix underscore, then with it. 6137for ac_symprfx in "" "_"; do 6138 6139 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6140 symxfrm="\\1 $ac_symprfx\\2 \\2" 6141 6142 # Write the raw and C identifiers. 6143 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6144 # Fake it for dumpbin and say T for any non-static function, 6145 # D for any global variable and I for any imported variable. 6146 # Also find C++ and __fastcall symbols from MSVC++, 6147 # which start with @ or ?. 6148 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6149" {last_section=section; section=\$ 3};"\ 6150" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6151" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6152" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6153" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6154" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6155" \$ 0!~/External *\|/{next};"\ 6156" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6157" {if(hide[section]) next};"\ 6158" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6159" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6160" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6161" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6162" ' prfx=^$ac_symprfx" 6163 else 6164 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6165 fi 6166 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6167 6168 # Check to see that the pipe works correctly. 6169 pipe_works=no 6170 6171 rm -f conftest* 6172 cat > conftest.$ac_ext <<_LT_EOF 6173#ifdef __cplusplus 6174extern "C" { 6175#endif 6176char nm_test_var; 6177void nm_test_func(void); 6178void nm_test_func(void){} 6179#ifdef __cplusplus 6180} 6181#endif 6182int main(){nm_test_var='a';nm_test_func();return(0);} 6183_LT_EOF 6184 6185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6186 (eval $ac_compile) 2>&5 6187 ac_status=$? 6188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6189 test $ac_status = 0; }; then 6190 # Now try to grab the symbols. 6191 nlist=conftest.nm 6192 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 6193 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 6194 # Try sorting and uniquifying the output. 6195 if sort "$nlist" | uniq > "$nlist"T; then 6196 mv -f "$nlist"T "$nlist" 6197 else 6198 rm -f "$nlist"T 6199 fi 6200 6201 # Make sure that we snagged all the symbols we need. 6202 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6203 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6204 cat <<_LT_EOF > conftest.$ac_ext 6205/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6206#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6207/* DATA imports from DLLs on WIN32 can't be const, because runtime 6208 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6209# define LT_DLSYM_CONST 6210#elif defined __osf__ 6211/* This system does not cope well with relocations in const data. */ 6212# define LT_DLSYM_CONST 6213#else 6214# define LT_DLSYM_CONST const 6215#endif 6216 6217#ifdef __cplusplus 6218extern "C" { 6219#endif 6220 6221_LT_EOF 6222 # Now generate the symbol file. 6223 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6224 6225 cat <<_LT_EOF >> conftest.$ac_ext 6226 6227/* The mapping between symbol names and symbols. */ 6228LT_DLSYM_CONST struct { 6229 const char *name; 6230 void *address; 6231} 6232lt__PROGRAM__LTX_preloaded_symbols[] = 6233{ 6234 { "@PROGRAM@", (void *) 0 }, 6235_LT_EOF 6236 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6237 cat <<\_LT_EOF >> conftest.$ac_ext 6238 {0, (void *) 0} 6239}; 6240 6241/* This works around a problem in FreeBSD linker */ 6242#ifdef FREEBSD_WORKAROUND 6243static const void *lt_preloaded_setup() { 6244 return lt__PROGRAM__LTX_preloaded_symbols; 6245} 6246#endif 6247 6248#ifdef __cplusplus 6249} 6250#endif 6251_LT_EOF 6252 # Now try linking the two files. 6253 mv conftest.$ac_objext conftstm.$ac_objext 6254 lt_globsym_save_LIBS=$LIBS 6255 lt_globsym_save_CFLAGS=$CFLAGS 6256 LIBS=conftstm.$ac_objext 6257 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6258 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6259 (eval $ac_link) 2>&5 6260 ac_status=$? 6261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6262 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6263 pipe_works=yes 6264 fi 6265 LIBS=$lt_globsym_save_LIBS 6266 CFLAGS=$lt_globsym_save_CFLAGS 6267 else 6268 echo "cannot find nm_test_func in $nlist" >&5 6269 fi 6270 else 6271 echo "cannot find nm_test_var in $nlist" >&5 6272 fi 6273 else 6274 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6275 fi 6276 else 6277 echo "$progname: failed program was:" >&5 6278 cat conftest.$ac_ext >&5 6279 fi 6280 rm -rf conftest* conftst* 6281 6282 # Do not use the global_symbol_pipe unless it works. 6283 if test yes = "$pipe_works"; then 6284 break 6285 else 6286 lt_cv_sys_global_symbol_pipe= 6287 fi 6288done 6289 6290fi 6291 6292if test -z "$lt_cv_sys_global_symbol_pipe"; then 6293 lt_cv_sys_global_symbol_to_cdecl= 6294fi 6295if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6297$as_echo "failed" >&6; } 6298else 6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6300$as_echo "ok" >&6; } 6301fi 6302 6303# Response file support. 6304if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6305 nm_file_list_spec='@' 6306elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6307 nm_file_list_spec='@' 6308fi 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6347$as_echo_n "checking for sysroot... " >&6; } 6348 6349# Check whether --with-sysroot was given. 6350if test "${with_sysroot+set}" = set; then : 6351 withval=$with_sysroot; 6352else 6353 with_sysroot=no 6354fi 6355 6356 6357lt_sysroot= 6358case $with_sysroot in #( 6359 yes) 6360 if test yes = "$GCC"; then 6361 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6362 fi 6363 ;; #( 6364 /*) 6365 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6366 ;; #( 6367 no|'') 6368 ;; #( 6369 *) 6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6371$as_echo "$with_sysroot" >&6; } 6372 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6373 ;; 6374esac 6375 6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6377$as_echo "${lt_sysroot:-no}" >&6; } 6378 6379 6380 6381 6382 6383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6384$as_echo_n "checking for a working dd... " >&6; } 6385if ${ac_cv_path_lt_DD+:} false; then : 6386 $as_echo_n "(cached) " >&6 6387else 6388 printf 0123456789abcdef0123456789abcdef >conftest.i 6389cat conftest.i conftest.i >conftest2.i 6390: ${lt_DD:=$DD} 6391if test -z "$lt_DD"; then 6392 ac_path_lt_DD_found=false 6393 # Loop through the user's path and test for each of PROGNAME-LIST 6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6395for as_dir in $PATH 6396do 6397 IFS=$as_save_IFS 6398 test -z "$as_dir" && as_dir=. 6399 for ac_prog in dd; do 6400 for ac_exec_ext in '' $ac_executable_extensions; do 6401 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6402 as_fn_executable_p "$ac_path_lt_DD" || continue 6403if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6404 cmp -s conftest.i conftest.out \ 6405 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6406fi 6407 $ac_path_lt_DD_found && break 3 6408 done 6409 done 6410 done 6411IFS=$as_save_IFS 6412 if test -z "$ac_cv_path_lt_DD"; then 6413 : 6414 fi 6415else 6416 ac_cv_path_lt_DD=$lt_DD 6417fi 6418 6419rm -f conftest.i conftest2.i conftest.out 6420fi 6421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6422$as_echo "$ac_cv_path_lt_DD" >&6; } 6423 6424 6425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6426$as_echo_n "checking how to truncate binary pipes... " >&6; } 6427if ${lt_cv_truncate_bin+:} false; then : 6428 $as_echo_n "(cached) " >&6 6429else 6430 printf 0123456789abcdef0123456789abcdef >conftest.i 6431cat conftest.i conftest.i >conftest2.i 6432lt_cv_truncate_bin= 6433if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6434 cmp -s conftest.i conftest.out \ 6435 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6436fi 6437rm -f conftest.i conftest2.i conftest.out 6438test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6439fi 6440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6441$as_echo "$lt_cv_truncate_bin" >&6; } 6442 6443 6444 6445 6446 6447 6448 6449# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6450func_cc_basename () 6451{ 6452 for cc_temp in $*""; do 6453 case $cc_temp in 6454 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6455 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6456 \-*) ;; 6457 *) break;; 6458 esac 6459 done 6460 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6461} 6462 6463# Check whether --enable-libtool-lock was given. 6464if test "${enable_libtool_lock+set}" = set; then : 6465 enableval=$enable_libtool_lock; 6466fi 6467 6468test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6469 6470# Some flags need to be propagated to the compiler or linker for good 6471# libtool support. 6472case $host in 6473ia64-*-hpux*) 6474 # Find out what ABI is being produced by ac_compile, and set mode 6475 # options accordingly. 6476 echo 'int i;' > conftest.$ac_ext 6477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6478 (eval $ac_compile) 2>&5 6479 ac_status=$? 6480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6481 test $ac_status = 0; }; then 6482 case `/usr/bin/file conftest.$ac_objext` in 6483 *ELF-32*) 6484 HPUX_IA64_MODE=32 6485 ;; 6486 *ELF-64*) 6487 HPUX_IA64_MODE=64 6488 ;; 6489 esac 6490 fi 6491 rm -rf conftest* 6492 ;; 6493*-*-irix6*) 6494 # Find out what ABI is being produced by ac_compile, and set linker 6495 # options accordingly. 6496 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6497 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6498 (eval $ac_compile) 2>&5 6499 ac_status=$? 6500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6501 test $ac_status = 0; }; then 6502 if test yes = "$lt_cv_prog_gnu_ld"; then 6503 case `/usr/bin/file conftest.$ac_objext` in 6504 *32-bit*) 6505 LD="${LD-ld} -melf32bsmip" 6506 ;; 6507 *N32*) 6508 LD="${LD-ld} -melf32bmipn32" 6509 ;; 6510 *64-bit*) 6511 LD="${LD-ld} -melf64bmip" 6512 ;; 6513 esac 6514 else 6515 case `/usr/bin/file conftest.$ac_objext` in 6516 *32-bit*) 6517 LD="${LD-ld} -32" 6518 ;; 6519 *N32*) 6520 LD="${LD-ld} -n32" 6521 ;; 6522 *64-bit*) 6523 LD="${LD-ld} -64" 6524 ;; 6525 esac 6526 fi 6527 fi 6528 rm -rf conftest* 6529 ;; 6530 6531mips64*-*linux*) 6532 # Find out what ABI is being produced by ac_compile, and set linker 6533 # options accordingly. 6534 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6535 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6536 (eval $ac_compile) 2>&5 6537 ac_status=$? 6538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6539 test $ac_status = 0; }; then 6540 emul=elf 6541 case `/usr/bin/file conftest.$ac_objext` in 6542 *32-bit*) 6543 emul="${emul}32" 6544 ;; 6545 *64-bit*) 6546 emul="${emul}64" 6547 ;; 6548 esac 6549 case `/usr/bin/file conftest.$ac_objext` in 6550 *MSB*) 6551 emul="${emul}btsmip" 6552 ;; 6553 *LSB*) 6554 emul="${emul}ltsmip" 6555 ;; 6556 esac 6557 case `/usr/bin/file conftest.$ac_objext` in 6558 *N32*) 6559 emul="${emul}n32" 6560 ;; 6561 esac 6562 LD="${LD-ld} -m $emul" 6563 fi 6564 rm -rf conftest* 6565 ;; 6566 6567x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6568s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6569 # Find out what ABI is being produced by ac_compile, and set linker 6570 # options accordingly. Note that the listed cases only cover the 6571 # situations where additional linker options are needed (such as when 6572 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6573 # vice versa); the common cases where no linker options are needed do 6574 # not appear in the list. 6575 echo 'int i;' > conftest.$ac_ext 6576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6577 (eval $ac_compile) 2>&5 6578 ac_status=$? 6579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6580 test $ac_status = 0; }; then 6581 case `/usr/bin/file conftest.o` in 6582 *32-bit*) 6583 case $host in 6584 x86_64-*kfreebsd*-gnu) 6585 LD="${LD-ld} -m elf_i386_fbsd" 6586 ;; 6587 x86_64-*linux*) 6588 case `/usr/bin/file conftest.o` in 6589 *x86-64*) 6590 LD="${LD-ld} -m elf32_x86_64" 6591 ;; 6592 *) 6593 LD="${LD-ld} -m elf_i386" 6594 ;; 6595 esac 6596 ;; 6597 powerpc64le-*linux*) 6598 LD="${LD-ld} -m elf32lppclinux" 6599 ;; 6600 powerpc64-*linux*) 6601 LD="${LD-ld} -m elf32ppclinux" 6602 ;; 6603 s390x-*linux*) 6604 LD="${LD-ld} -m elf_s390" 6605 ;; 6606 sparc64-*linux*) 6607 LD="${LD-ld} -m elf32_sparc" 6608 ;; 6609 esac 6610 ;; 6611 *64-bit*) 6612 case $host in 6613 x86_64-*kfreebsd*-gnu) 6614 LD="${LD-ld} -m elf_x86_64_fbsd" 6615 ;; 6616 x86_64-*linux*) 6617 LD="${LD-ld} -m elf_x86_64" 6618 ;; 6619 powerpcle-*linux*) 6620 LD="${LD-ld} -m elf64lppc" 6621 ;; 6622 powerpc-*linux*) 6623 LD="${LD-ld} -m elf64ppc" 6624 ;; 6625 s390*-*linux*|s390*-*tpf*) 6626 LD="${LD-ld} -m elf64_s390" 6627 ;; 6628 sparc*-*linux*) 6629 LD="${LD-ld} -m elf64_sparc" 6630 ;; 6631 esac 6632 ;; 6633 esac 6634 fi 6635 rm -rf conftest* 6636 ;; 6637 6638*-*-sco3.2v5*) 6639 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6640 SAVE_CFLAGS=$CFLAGS 6641 CFLAGS="$CFLAGS -belf" 6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6643$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6644if ${lt_cv_cc_needs_belf+:} false; then : 6645 $as_echo_n "(cached) " >&6 6646else 6647 ac_ext=c 6648ac_cpp='$CPP $CPPFLAGS' 6649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6651ac_compiler_gnu=$ac_cv_c_compiler_gnu 6652 6653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6654/* end confdefs.h. */ 6655 6656int 6657main () 6658{ 6659 6660 ; 6661 return 0; 6662} 6663_ACEOF 6664if ac_fn_c_try_link "$LINENO"; then : 6665 lt_cv_cc_needs_belf=yes 6666else 6667 lt_cv_cc_needs_belf=no 6668fi 6669rm -f core conftest.err conftest.$ac_objext \ 6670 conftest$ac_exeext conftest.$ac_ext 6671 ac_ext=c 6672ac_cpp='$CPP $CPPFLAGS' 6673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6675ac_compiler_gnu=$ac_cv_c_compiler_gnu 6676 6677fi 6678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6679$as_echo "$lt_cv_cc_needs_belf" >&6; } 6680 if test yes != "$lt_cv_cc_needs_belf"; then 6681 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6682 CFLAGS=$SAVE_CFLAGS 6683 fi 6684 ;; 6685*-*solaris*) 6686 # Find out what ABI is being produced by ac_compile, and set linker 6687 # options accordingly. 6688 echo 'int i;' > conftest.$ac_ext 6689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6690 (eval $ac_compile) 2>&5 6691 ac_status=$? 6692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6693 test $ac_status = 0; }; then 6694 case `/usr/bin/file conftest.o` in 6695 *64-bit*) 6696 case $lt_cv_prog_gnu_ld in 6697 yes*) 6698 case $host in 6699 i?86-*-solaris*|x86_64-*-solaris*) 6700 LD="${LD-ld} -m elf_x86_64" 6701 ;; 6702 sparc*-*-solaris*) 6703 LD="${LD-ld} -m elf64_sparc" 6704 ;; 6705 esac 6706 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6707 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6708 LD=${LD-ld}_sol2 6709 fi 6710 ;; 6711 *) 6712 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6713 LD="${LD-ld} -64" 6714 fi 6715 ;; 6716 esac 6717 ;; 6718 esac 6719 fi 6720 rm -rf conftest* 6721 ;; 6722esac 6723 6724need_locks=$enable_libtool_lock 6725 6726if test -n "$ac_tool_prefix"; then 6727 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6728set dummy ${ac_tool_prefix}mt; ac_word=$2 6729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6730$as_echo_n "checking for $ac_word... " >&6; } 6731if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6732 $as_echo_n "(cached) " >&6 6733else 6734 if test -n "$MANIFEST_TOOL"; then 6735 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6736else 6737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6738for as_dir in $PATH 6739do 6740 IFS=$as_save_IFS 6741 test -z "$as_dir" && as_dir=. 6742 for ac_exec_ext in '' $ac_executable_extensions; do 6743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6744 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6746 break 2 6747 fi 6748done 6749 done 6750IFS=$as_save_IFS 6751 6752fi 6753fi 6754MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6755if test -n "$MANIFEST_TOOL"; then 6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6757$as_echo "$MANIFEST_TOOL" >&6; } 6758else 6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6760$as_echo "no" >&6; } 6761fi 6762 6763 6764fi 6765if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6766 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6767 # Extract the first word of "mt", so it can be a program name with args. 6768set dummy mt; ac_word=$2 6769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6770$as_echo_n "checking for $ac_word... " >&6; } 6771if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6772 $as_echo_n "(cached) " >&6 6773else 6774 if test -n "$ac_ct_MANIFEST_TOOL"; then 6775 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6776else 6777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6778for as_dir in $PATH 6779do 6780 IFS=$as_save_IFS 6781 test -z "$as_dir" && as_dir=. 6782 for ac_exec_ext in '' $ac_executable_extensions; do 6783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6784 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6786 break 2 6787 fi 6788done 6789 done 6790IFS=$as_save_IFS 6791 6792fi 6793fi 6794ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6795if test -n "$ac_ct_MANIFEST_TOOL"; then 6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6797$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6798else 6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6800$as_echo "no" >&6; } 6801fi 6802 6803 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6804 MANIFEST_TOOL=":" 6805 else 6806 case $cross_compiling:$ac_tool_warned in 6807yes:) 6808{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6809$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6810ac_tool_warned=yes ;; 6811esac 6812 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6813 fi 6814else 6815 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6816fi 6817 6818test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6820$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6821if ${lt_cv_path_mainfest_tool+:} false; then : 6822 $as_echo_n "(cached) " >&6 6823else 6824 lt_cv_path_mainfest_tool=no 6825 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6826 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6827 cat conftest.err >&5 6828 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6829 lt_cv_path_mainfest_tool=yes 6830 fi 6831 rm -f conftest* 6832fi 6833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6834$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6835if test yes != "$lt_cv_path_mainfest_tool"; then 6836 MANIFEST_TOOL=: 6837fi 6838 6839 6840 6841 6842 6843 6844 case $host_os in 6845 rhapsody* | darwin*) 6846 if test -n "$ac_tool_prefix"; then 6847 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6848set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6850$as_echo_n "checking for $ac_word... " >&6; } 6851if ${ac_cv_prog_DSYMUTIL+:} false; then : 6852 $as_echo_n "(cached) " >&6 6853else 6854 if test -n "$DSYMUTIL"; then 6855 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6856else 6857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6858for as_dir in $PATH 6859do 6860 IFS=$as_save_IFS 6861 test -z "$as_dir" && as_dir=. 6862 for ac_exec_ext in '' $ac_executable_extensions; do 6863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6864 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6866 break 2 6867 fi 6868done 6869 done 6870IFS=$as_save_IFS 6871 6872fi 6873fi 6874DSYMUTIL=$ac_cv_prog_DSYMUTIL 6875if test -n "$DSYMUTIL"; then 6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6877$as_echo "$DSYMUTIL" >&6; } 6878else 6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6880$as_echo "no" >&6; } 6881fi 6882 6883 6884fi 6885if test -z "$ac_cv_prog_DSYMUTIL"; then 6886 ac_ct_DSYMUTIL=$DSYMUTIL 6887 # Extract the first word of "dsymutil", so it can be a program name with args. 6888set dummy dsymutil; ac_word=$2 6889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6890$as_echo_n "checking for $ac_word... " >&6; } 6891if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6892 $as_echo_n "(cached) " >&6 6893else 6894 if test -n "$ac_ct_DSYMUTIL"; then 6895 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6896else 6897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6898for as_dir in $PATH 6899do 6900 IFS=$as_save_IFS 6901 test -z "$as_dir" && as_dir=. 6902 for ac_exec_ext in '' $ac_executable_extensions; do 6903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6904 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6906 break 2 6907 fi 6908done 6909 done 6910IFS=$as_save_IFS 6911 6912fi 6913fi 6914ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6915if test -n "$ac_ct_DSYMUTIL"; then 6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6917$as_echo "$ac_ct_DSYMUTIL" >&6; } 6918else 6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6920$as_echo "no" >&6; } 6921fi 6922 6923 if test "x$ac_ct_DSYMUTIL" = x; then 6924 DSYMUTIL=":" 6925 else 6926 case $cross_compiling:$ac_tool_warned in 6927yes:) 6928{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6929$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6930ac_tool_warned=yes ;; 6931esac 6932 DSYMUTIL=$ac_ct_DSYMUTIL 6933 fi 6934else 6935 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6936fi 6937 6938 if test -n "$ac_tool_prefix"; then 6939 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6940set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6942$as_echo_n "checking for $ac_word... " >&6; } 6943if ${ac_cv_prog_NMEDIT+:} false; then : 6944 $as_echo_n "(cached) " >&6 6945else 6946 if test -n "$NMEDIT"; then 6947 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6948else 6949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6950for as_dir in $PATH 6951do 6952 IFS=$as_save_IFS 6953 test -z "$as_dir" && as_dir=. 6954 for ac_exec_ext in '' $ac_executable_extensions; do 6955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6956 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6958 break 2 6959 fi 6960done 6961 done 6962IFS=$as_save_IFS 6963 6964fi 6965fi 6966NMEDIT=$ac_cv_prog_NMEDIT 6967if test -n "$NMEDIT"; then 6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6969$as_echo "$NMEDIT" >&6; } 6970else 6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6972$as_echo "no" >&6; } 6973fi 6974 6975 6976fi 6977if test -z "$ac_cv_prog_NMEDIT"; then 6978 ac_ct_NMEDIT=$NMEDIT 6979 # Extract the first word of "nmedit", so it can be a program name with args. 6980set dummy nmedit; ac_word=$2 6981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6982$as_echo_n "checking for $ac_word... " >&6; } 6983if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6984 $as_echo_n "(cached) " >&6 6985else 6986 if test -n "$ac_ct_NMEDIT"; then 6987 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6988else 6989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6990for as_dir in $PATH 6991do 6992 IFS=$as_save_IFS 6993 test -z "$as_dir" && as_dir=. 6994 for ac_exec_ext in '' $ac_executable_extensions; do 6995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6996 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6998 break 2 6999 fi 7000done 7001 done 7002IFS=$as_save_IFS 7003 7004fi 7005fi 7006ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7007if test -n "$ac_ct_NMEDIT"; then 7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7009$as_echo "$ac_ct_NMEDIT" >&6; } 7010else 7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7012$as_echo "no" >&6; } 7013fi 7014 7015 if test "x$ac_ct_NMEDIT" = x; then 7016 NMEDIT=":" 7017 else 7018 case $cross_compiling:$ac_tool_warned in 7019yes:) 7020{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7021$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7022ac_tool_warned=yes ;; 7023esac 7024 NMEDIT=$ac_ct_NMEDIT 7025 fi 7026else 7027 NMEDIT="$ac_cv_prog_NMEDIT" 7028fi 7029 7030 if test -n "$ac_tool_prefix"; then 7031 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7032set dummy ${ac_tool_prefix}lipo; ac_word=$2 7033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7034$as_echo_n "checking for $ac_word... " >&6; } 7035if ${ac_cv_prog_LIPO+:} false; then : 7036 $as_echo_n "(cached) " >&6 7037else 7038 if test -n "$LIPO"; then 7039 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7040else 7041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7042for as_dir in $PATH 7043do 7044 IFS=$as_save_IFS 7045 test -z "$as_dir" && as_dir=. 7046 for ac_exec_ext in '' $ac_executable_extensions; do 7047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7048 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7050 break 2 7051 fi 7052done 7053 done 7054IFS=$as_save_IFS 7055 7056fi 7057fi 7058LIPO=$ac_cv_prog_LIPO 7059if test -n "$LIPO"; then 7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7061$as_echo "$LIPO" >&6; } 7062else 7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7064$as_echo "no" >&6; } 7065fi 7066 7067 7068fi 7069if test -z "$ac_cv_prog_LIPO"; then 7070 ac_ct_LIPO=$LIPO 7071 # Extract the first word of "lipo", so it can be a program name with args. 7072set dummy lipo; ac_word=$2 7073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7074$as_echo_n "checking for $ac_word... " >&6; } 7075if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7076 $as_echo_n "(cached) " >&6 7077else 7078 if test -n "$ac_ct_LIPO"; then 7079 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7080else 7081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7082for as_dir in $PATH 7083do 7084 IFS=$as_save_IFS 7085 test -z "$as_dir" && as_dir=. 7086 for ac_exec_ext in '' $ac_executable_extensions; do 7087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7088 ac_cv_prog_ac_ct_LIPO="lipo" 7089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7090 break 2 7091 fi 7092done 7093 done 7094IFS=$as_save_IFS 7095 7096fi 7097fi 7098ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7099if test -n "$ac_ct_LIPO"; then 7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7101$as_echo "$ac_ct_LIPO" >&6; } 7102else 7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7104$as_echo "no" >&6; } 7105fi 7106 7107 if test "x$ac_ct_LIPO" = x; then 7108 LIPO=":" 7109 else 7110 case $cross_compiling:$ac_tool_warned in 7111yes:) 7112{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7113$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7114ac_tool_warned=yes ;; 7115esac 7116 LIPO=$ac_ct_LIPO 7117 fi 7118else 7119 LIPO="$ac_cv_prog_LIPO" 7120fi 7121 7122 if test -n "$ac_tool_prefix"; then 7123 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7124set dummy ${ac_tool_prefix}otool; ac_word=$2 7125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7126$as_echo_n "checking for $ac_word... " >&6; } 7127if ${ac_cv_prog_OTOOL+:} false; then : 7128 $as_echo_n "(cached) " >&6 7129else 7130 if test -n "$OTOOL"; then 7131 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7132else 7133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7134for as_dir in $PATH 7135do 7136 IFS=$as_save_IFS 7137 test -z "$as_dir" && as_dir=. 7138 for ac_exec_ext in '' $ac_executable_extensions; do 7139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7140 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7142 break 2 7143 fi 7144done 7145 done 7146IFS=$as_save_IFS 7147 7148fi 7149fi 7150OTOOL=$ac_cv_prog_OTOOL 7151if test -n "$OTOOL"; then 7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7153$as_echo "$OTOOL" >&6; } 7154else 7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7156$as_echo "no" >&6; } 7157fi 7158 7159 7160fi 7161if test -z "$ac_cv_prog_OTOOL"; then 7162 ac_ct_OTOOL=$OTOOL 7163 # Extract the first word of "otool", so it can be a program name with args. 7164set dummy otool; ac_word=$2 7165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7166$as_echo_n "checking for $ac_word... " >&6; } 7167if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7168 $as_echo_n "(cached) " >&6 7169else 7170 if test -n "$ac_ct_OTOOL"; then 7171 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7172else 7173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7174for as_dir in $PATH 7175do 7176 IFS=$as_save_IFS 7177 test -z "$as_dir" && as_dir=. 7178 for ac_exec_ext in '' $ac_executable_extensions; do 7179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7180 ac_cv_prog_ac_ct_OTOOL="otool" 7181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7182 break 2 7183 fi 7184done 7185 done 7186IFS=$as_save_IFS 7187 7188fi 7189fi 7190ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7191if test -n "$ac_ct_OTOOL"; then 7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7193$as_echo "$ac_ct_OTOOL" >&6; } 7194else 7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7196$as_echo "no" >&6; } 7197fi 7198 7199 if test "x$ac_ct_OTOOL" = x; then 7200 OTOOL=":" 7201 else 7202 case $cross_compiling:$ac_tool_warned in 7203yes:) 7204{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7205$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7206ac_tool_warned=yes ;; 7207esac 7208 OTOOL=$ac_ct_OTOOL 7209 fi 7210else 7211 OTOOL="$ac_cv_prog_OTOOL" 7212fi 7213 7214 if test -n "$ac_tool_prefix"; then 7215 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7216set dummy ${ac_tool_prefix}otool64; ac_word=$2 7217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7218$as_echo_n "checking for $ac_word... " >&6; } 7219if ${ac_cv_prog_OTOOL64+:} false; then : 7220 $as_echo_n "(cached) " >&6 7221else 7222 if test -n "$OTOOL64"; then 7223 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7224else 7225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7226for as_dir in $PATH 7227do 7228 IFS=$as_save_IFS 7229 test -z "$as_dir" && as_dir=. 7230 for ac_exec_ext in '' $ac_executable_extensions; do 7231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7232 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7234 break 2 7235 fi 7236done 7237 done 7238IFS=$as_save_IFS 7239 7240fi 7241fi 7242OTOOL64=$ac_cv_prog_OTOOL64 7243if test -n "$OTOOL64"; then 7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7245$as_echo "$OTOOL64" >&6; } 7246else 7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7248$as_echo "no" >&6; } 7249fi 7250 7251 7252fi 7253if test -z "$ac_cv_prog_OTOOL64"; then 7254 ac_ct_OTOOL64=$OTOOL64 7255 # Extract the first word of "otool64", so it can be a program name with args. 7256set dummy otool64; ac_word=$2 7257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7258$as_echo_n "checking for $ac_word... " >&6; } 7259if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7260 $as_echo_n "(cached) " >&6 7261else 7262 if test -n "$ac_ct_OTOOL64"; then 7263 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7264else 7265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7266for as_dir in $PATH 7267do 7268 IFS=$as_save_IFS 7269 test -z "$as_dir" && as_dir=. 7270 for ac_exec_ext in '' $ac_executable_extensions; do 7271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7272 ac_cv_prog_ac_ct_OTOOL64="otool64" 7273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7274 break 2 7275 fi 7276done 7277 done 7278IFS=$as_save_IFS 7279 7280fi 7281fi 7282ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7283if test -n "$ac_ct_OTOOL64"; then 7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7285$as_echo "$ac_ct_OTOOL64" >&6; } 7286else 7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7288$as_echo "no" >&6; } 7289fi 7290 7291 if test "x$ac_ct_OTOOL64" = x; then 7292 OTOOL64=":" 7293 else 7294 case $cross_compiling:$ac_tool_warned in 7295yes:) 7296{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7297$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7298ac_tool_warned=yes ;; 7299esac 7300 OTOOL64=$ac_ct_OTOOL64 7301 fi 7302else 7303 OTOOL64="$ac_cv_prog_OTOOL64" 7304fi 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7333$as_echo_n "checking for -single_module linker flag... " >&6; } 7334if ${lt_cv_apple_cc_single_mod+:} false; then : 7335 $as_echo_n "(cached) " >&6 7336else 7337 lt_cv_apple_cc_single_mod=no 7338 if test -z "$LT_MULTI_MODULE"; then 7339 # By default we will add the -single_module flag. You can override 7340 # by either setting the environment variable LT_MULTI_MODULE 7341 # non-empty at configure time, or by adding -multi_module to the 7342 # link flags. 7343 rm -rf libconftest.dylib* 7344 echo "int foo(void){return 1;}" > conftest.c 7345 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7346-dynamiclib -Wl,-single_module conftest.c" >&5 7347 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7348 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7349 _lt_result=$? 7350 # If there is a non-empty error log, and "single_module" 7351 # appears in it, assume the flag caused a linker warning 7352 if test -s conftest.err && $GREP single_module conftest.err; then 7353 cat conftest.err >&5 7354 # Otherwise, if the output was created with a 0 exit code from 7355 # the compiler, it worked. 7356 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7357 lt_cv_apple_cc_single_mod=yes 7358 else 7359 cat conftest.err >&5 7360 fi 7361 rm -rf libconftest.dylib* 7362 rm -f conftest.* 7363 fi 7364fi 7365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7366$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7367 7368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7369$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7370if ${lt_cv_ld_exported_symbols_list+:} false; then : 7371 $as_echo_n "(cached) " >&6 7372else 7373 lt_cv_ld_exported_symbols_list=no 7374 save_LDFLAGS=$LDFLAGS 7375 echo "_main" > conftest.sym 7376 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7378/* end confdefs.h. */ 7379 7380int 7381main () 7382{ 7383 7384 ; 7385 return 0; 7386} 7387_ACEOF 7388if ac_fn_c_try_link "$LINENO"; then : 7389 lt_cv_ld_exported_symbols_list=yes 7390else 7391 lt_cv_ld_exported_symbols_list=no 7392fi 7393rm -f core conftest.err conftest.$ac_objext \ 7394 conftest$ac_exeext conftest.$ac_ext 7395 LDFLAGS=$save_LDFLAGS 7396 7397fi 7398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7399$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7400 7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7402$as_echo_n "checking for -force_load linker flag... " >&6; } 7403if ${lt_cv_ld_force_load+:} false; then : 7404 $as_echo_n "(cached) " >&6 7405else 7406 lt_cv_ld_force_load=no 7407 cat > conftest.c << _LT_EOF 7408int forced_loaded() { return 2;} 7409_LT_EOF 7410 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7411 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7412 echo "$AR cr libconftest.a conftest.o" >&5 7413 $AR cr libconftest.a conftest.o 2>&5 7414 echo "$RANLIB libconftest.a" >&5 7415 $RANLIB libconftest.a 2>&5 7416 cat > conftest.c << _LT_EOF 7417int main() { return 0;} 7418_LT_EOF 7419 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7420 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7421 _lt_result=$? 7422 if test -s conftest.err && $GREP force_load conftest.err; then 7423 cat conftest.err >&5 7424 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7425 lt_cv_ld_force_load=yes 7426 else 7427 cat conftest.err >&5 7428 fi 7429 rm -f conftest.err libconftest.a conftest conftest.c 7430 rm -rf conftest.dSYM 7431 7432fi 7433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7434$as_echo "$lt_cv_ld_force_load" >&6; } 7435 case $host_os in 7436 rhapsody* | darwin1.[012]) 7437 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7438 darwin1.*) 7439 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7440 darwin*) # darwin 5.x on 7441 # if running on 10.5 or later, the deployment target defaults 7442 # to the OS version, if on x86, and 10.4, the deployment 7443 # target defaults to 10.4. Don't you love it? 7444 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7445 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7446 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7447 10.[012][,.]*) 7448 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7449 10.*) 7450 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7451 esac 7452 ;; 7453 esac 7454 if test yes = "$lt_cv_apple_cc_single_mod"; then 7455 _lt_dar_single_mod='$single_module' 7456 fi 7457 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7458 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7459 else 7460 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7461 fi 7462 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7463 _lt_dsymutil='~$DSYMUTIL $lib || :' 7464 else 7465 _lt_dsymutil= 7466 fi 7467 ;; 7468 esac 7469 7470# func_munge_path_list VARIABLE PATH 7471# ----------------------------------- 7472# VARIABLE is name of variable containing _space_ separated list of 7473# directories to be munged by the contents of PATH, which is string 7474# having a format: 7475# "DIR[:DIR]:" 7476# string "DIR[ DIR]" will be prepended to VARIABLE 7477# ":DIR[:DIR]" 7478# string "DIR[ DIR]" will be appended to VARIABLE 7479# "DIRP[:DIRP]::[DIRA:]DIRA" 7480# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7481# "DIRA[ DIRA]" will be appended to VARIABLE 7482# "DIR[:DIR]" 7483# VARIABLE will be replaced by "DIR[ DIR]" 7484func_munge_path_list () 7485{ 7486 case x$2 in 7487 x) 7488 ;; 7489 *:) 7490 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7491 ;; 7492 x:*) 7493 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7494 ;; 7495 *::*) 7496 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7497 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7498 ;; 7499 *) 7500 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7501 ;; 7502 esac 7503} 7504 7505ac_ext=c 7506ac_cpp='$CPP $CPPFLAGS' 7507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7509ac_compiler_gnu=$ac_cv_c_compiler_gnu 7510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7511$as_echo_n "checking how to run the C preprocessor... " >&6; } 7512# On Suns, sometimes $CPP names a directory. 7513if test -n "$CPP" && test -d "$CPP"; then 7514 CPP= 7515fi 7516if test -z "$CPP"; then 7517 if ${ac_cv_prog_CPP+:} false; then : 7518 $as_echo_n "(cached) " >&6 7519else 7520 # Double quotes because CPP needs to be expanded 7521 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7522 do 7523 ac_preproc_ok=false 7524for ac_c_preproc_warn_flag in '' yes 7525do 7526 # Use a header file that comes with gcc, so configuring glibc 7527 # with a fresh cross-compiler works. 7528 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7529 # <limits.h> exists even on freestanding compilers. 7530 # On the NeXT, cc -E runs the code through the compiler's parser, 7531 # not just through cpp. "Syntax error" is here to catch this case. 7532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7533/* end confdefs.h. */ 7534#ifdef __STDC__ 7535# include <limits.h> 7536#else 7537# include <assert.h> 7538#endif 7539 Syntax error 7540_ACEOF 7541if ac_fn_c_try_cpp "$LINENO"; then : 7542 7543else 7544 # Broken: fails on valid input. 7545continue 7546fi 7547rm -f conftest.err conftest.i conftest.$ac_ext 7548 7549 # OK, works on sane cases. Now check whether nonexistent headers 7550 # can be detected and how. 7551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7552/* end confdefs.h. */ 7553#include <ac_nonexistent.h> 7554_ACEOF 7555if ac_fn_c_try_cpp "$LINENO"; then : 7556 # Broken: success on invalid input. 7557continue 7558else 7559 # Passes both tests. 7560ac_preproc_ok=: 7561break 7562fi 7563rm -f conftest.err conftest.i conftest.$ac_ext 7564 7565done 7566# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7567rm -f conftest.i conftest.err conftest.$ac_ext 7568if $ac_preproc_ok; then : 7569 break 7570fi 7571 7572 done 7573 ac_cv_prog_CPP=$CPP 7574 7575fi 7576 CPP=$ac_cv_prog_CPP 7577else 7578 ac_cv_prog_CPP=$CPP 7579fi 7580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7581$as_echo "$CPP" >&6; } 7582ac_preproc_ok=false 7583for ac_c_preproc_warn_flag in '' yes 7584do 7585 # Use a header file that comes with gcc, so configuring glibc 7586 # with a fresh cross-compiler works. 7587 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7588 # <limits.h> exists even on freestanding compilers. 7589 # On the NeXT, cc -E runs the code through the compiler's parser, 7590 # not just through cpp. "Syntax error" is here to catch this case. 7591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7592/* end confdefs.h. */ 7593#ifdef __STDC__ 7594# include <limits.h> 7595#else 7596# include <assert.h> 7597#endif 7598 Syntax error 7599_ACEOF 7600if ac_fn_c_try_cpp "$LINENO"; then : 7601 7602else 7603 # Broken: fails on valid input. 7604continue 7605fi 7606rm -f conftest.err conftest.i conftest.$ac_ext 7607 7608 # OK, works on sane cases. Now check whether nonexistent headers 7609 # can be detected and how. 7610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7611/* end confdefs.h. */ 7612#include <ac_nonexistent.h> 7613_ACEOF 7614if ac_fn_c_try_cpp "$LINENO"; then : 7615 # Broken: success on invalid input. 7616continue 7617else 7618 # Passes both tests. 7619ac_preproc_ok=: 7620break 7621fi 7622rm -f conftest.err conftest.i conftest.$ac_ext 7623 7624done 7625# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7626rm -f conftest.i conftest.err conftest.$ac_ext 7627if $ac_preproc_ok; then : 7628 7629else 7630 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7631$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7632as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7633See \`config.log' for more details" "$LINENO" 5; } 7634fi 7635 7636ac_ext=c 7637ac_cpp='$CPP $CPPFLAGS' 7638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7640ac_compiler_gnu=$ac_cv_c_compiler_gnu 7641 7642 7643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7644$as_echo_n "checking for ANSI C header files... " >&6; } 7645if ${ac_cv_header_stdc+:} false; then : 7646 $as_echo_n "(cached) " >&6 7647else 7648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7649/* end confdefs.h. */ 7650#include <stdlib.h> 7651#include <stdarg.h> 7652#include <string.h> 7653#include <float.h> 7654 7655int 7656main () 7657{ 7658 7659 ; 7660 return 0; 7661} 7662_ACEOF 7663if ac_fn_c_try_compile "$LINENO"; then : 7664 ac_cv_header_stdc=yes 7665else 7666 ac_cv_header_stdc=no 7667fi 7668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7669 7670if test $ac_cv_header_stdc = yes; then 7671 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7673/* end confdefs.h. */ 7674#include <string.h> 7675 7676_ACEOF 7677if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7678 $EGREP "memchr" >/dev/null 2>&1; then : 7679 7680else 7681 ac_cv_header_stdc=no 7682fi 7683rm -f conftest* 7684 7685fi 7686 7687if test $ac_cv_header_stdc = yes; then 7688 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7690/* end confdefs.h. */ 7691#include <stdlib.h> 7692 7693_ACEOF 7694if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7695 $EGREP "free" >/dev/null 2>&1; then : 7696 7697else 7698 ac_cv_header_stdc=no 7699fi 7700rm -f conftest* 7701 7702fi 7703 7704if test $ac_cv_header_stdc = yes; then 7705 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7706 if test "$cross_compiling" = yes; then : 7707 : 7708else 7709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7710/* end confdefs.h. */ 7711#include <ctype.h> 7712#include <stdlib.h> 7713#if ((' ' & 0x0FF) == 0x020) 7714# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7715# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7716#else 7717# define ISLOWER(c) \ 7718 (('a' <= (c) && (c) <= 'i') \ 7719 || ('j' <= (c) && (c) <= 'r') \ 7720 || ('s' <= (c) && (c) <= 'z')) 7721# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7722#endif 7723 7724#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7725int 7726main () 7727{ 7728 int i; 7729 for (i = 0; i < 256; i++) 7730 if (XOR (islower (i), ISLOWER (i)) 7731 || toupper (i) != TOUPPER (i)) 7732 return 2; 7733 return 0; 7734} 7735_ACEOF 7736if ac_fn_c_try_run "$LINENO"; then : 7737 7738else 7739 ac_cv_header_stdc=no 7740fi 7741rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7742 conftest.$ac_objext conftest.beam conftest.$ac_ext 7743fi 7744 7745fi 7746fi 7747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7748$as_echo "$ac_cv_header_stdc" >&6; } 7749if test $ac_cv_header_stdc = yes; then 7750 7751$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7752 7753fi 7754 7755# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7756for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7757 inttypes.h stdint.h unistd.h 7758do : 7759 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7760ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7761" 7762if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7763 cat >>confdefs.h <<_ACEOF 7764#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7765_ACEOF 7766 7767fi 7768 7769done 7770 7771 7772for ac_header in dlfcn.h 7773do : 7774 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7775" 7776if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7777 cat >>confdefs.h <<_ACEOF 7778#define HAVE_DLFCN_H 1 7779_ACEOF 7780 7781fi 7782 7783done 7784 7785 7786 7787 7788 7789# Set options 7790 7791 7792 7793 enable_dlopen=no 7794 7795 7796 enable_win32_dll=no 7797 7798 7799 # Check whether --enable-shared was given. 7800if test "${enable_shared+set}" = set; then : 7801 enableval=$enable_shared; p=${PACKAGE-default} 7802 case $enableval in 7803 yes) enable_shared=yes ;; 7804 no) enable_shared=no ;; 7805 *) 7806 enable_shared=no 7807 # Look at the argument we got. We use all the common list separators. 7808 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7809 for pkg in $enableval; do 7810 IFS=$lt_save_ifs 7811 if test "X$pkg" = "X$p"; then 7812 enable_shared=yes 7813 fi 7814 done 7815 IFS=$lt_save_ifs 7816 ;; 7817 esac 7818else 7819 enable_shared=yes 7820fi 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 # Check whether --enable-static was given. 7831if test "${enable_static+set}" = set; then : 7832 enableval=$enable_static; p=${PACKAGE-default} 7833 case $enableval in 7834 yes) enable_static=yes ;; 7835 no) enable_static=no ;; 7836 *) 7837 enable_static=no 7838 # Look at the argument we got. We use all the common list separators. 7839 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7840 for pkg in $enableval; do 7841 IFS=$lt_save_ifs 7842 if test "X$pkg" = "X$p"; then 7843 enable_static=yes 7844 fi 7845 done 7846 IFS=$lt_save_ifs 7847 ;; 7848 esac 7849else 7850 enable_static=yes 7851fi 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862# Check whether --with-pic was given. 7863if test "${with_pic+set}" = set; then : 7864 withval=$with_pic; lt_p=${PACKAGE-default} 7865 case $withval in 7866 yes|no) pic_mode=$withval ;; 7867 *) 7868 pic_mode=default 7869 # Look at the argument we got. We use all the common list separators. 7870 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7871 for lt_pkg in $withval; do 7872 IFS=$lt_save_ifs 7873 if test "X$lt_pkg" = "X$lt_p"; then 7874 pic_mode=yes 7875 fi 7876 done 7877 IFS=$lt_save_ifs 7878 ;; 7879 esac 7880else 7881 pic_mode=default 7882fi 7883 7884 7885 7886 7887 7888 7889 7890 7891 # Check whether --enable-fast-install was given. 7892if test "${enable_fast_install+set}" = set; then : 7893 enableval=$enable_fast_install; p=${PACKAGE-default} 7894 case $enableval in 7895 yes) enable_fast_install=yes ;; 7896 no) enable_fast_install=no ;; 7897 *) 7898 enable_fast_install=no 7899 # Look at the argument we got. We use all the common list separators. 7900 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7901 for pkg in $enableval; do 7902 IFS=$lt_save_ifs 7903 if test "X$pkg" = "X$p"; then 7904 enable_fast_install=yes 7905 fi 7906 done 7907 IFS=$lt_save_ifs 7908 ;; 7909 esac 7910else 7911 enable_fast_install=yes 7912fi 7913 7914 7915 7916 7917 7918 7919 7920 7921 shared_archive_member_spec= 7922case $host,$enable_shared in 7923power*-*-aix[5-9]*,yes) 7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 7925$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 7926 7927# Check whether --with-aix-soname was given. 7928if test "${with_aix_soname+set}" = set; then : 7929 withval=$with_aix_soname; case $withval in 7930 aix|svr4|both) 7931 ;; 7932 *) 7933 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 7934 ;; 7935 esac 7936 lt_cv_with_aix_soname=$with_aix_soname 7937else 7938 if ${lt_cv_with_aix_soname+:} false; then : 7939 $as_echo_n "(cached) " >&6 7940else 7941 lt_cv_with_aix_soname=aix 7942fi 7943 7944 with_aix_soname=$lt_cv_with_aix_soname 7945fi 7946 7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 7948$as_echo "$with_aix_soname" >&6; } 7949 if test aix != "$with_aix_soname"; then 7950 # For the AIX way of multilib, we name the shared archive member 7951 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 7952 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 7953 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 7954 # the AIX toolchain works better with OBJECT_MODE set (default 32). 7955 if test 64 = "${OBJECT_MODE-32}"; then 7956 shared_archive_member_spec=shr_64 7957 else 7958 shared_archive_member_spec=shr 7959 fi 7960 fi 7961 ;; 7962*) 7963 with_aix_soname=aix 7964 ;; 7965esac 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976# This can be used to rebuild libtool when needed 7977LIBTOOL_DEPS=$ltmain 7978 7979# Always use our own libtool. 7980LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011test -z "$LN_S" && LN_S="ln -s" 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026if test -n "${ZSH_VERSION+set}"; then 8027 setopt NO_GLOB_SUBST 8028fi 8029 8030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8031$as_echo_n "checking for objdir... " >&6; } 8032if ${lt_cv_objdir+:} false; then : 8033 $as_echo_n "(cached) " >&6 8034else 8035 rm -f .libs 2>/dev/null 8036mkdir .libs 2>/dev/null 8037if test -d .libs; then 8038 lt_cv_objdir=.libs 8039else 8040 # MS-DOS does not allow filenames that begin with a dot. 8041 lt_cv_objdir=_libs 8042fi 8043rmdir .libs 2>/dev/null 8044fi 8045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8046$as_echo "$lt_cv_objdir" >&6; } 8047objdir=$lt_cv_objdir 8048 8049 8050 8051 8052 8053cat >>confdefs.h <<_ACEOF 8054#define LT_OBJDIR "$lt_cv_objdir/" 8055_ACEOF 8056 8057 8058 8059 8060case $host_os in 8061aix3*) 8062 # AIX sometimes has problems with the GCC collect2 program. For some 8063 # reason, if we set the COLLECT_NAMES environment variable, the problems 8064 # vanish in a puff of smoke. 8065 if test set != "${COLLECT_NAMES+set}"; then 8066 COLLECT_NAMES= 8067 export COLLECT_NAMES 8068 fi 8069 ;; 8070esac 8071 8072# Global variables: 8073ofile=libtool 8074can_build_shared=yes 8075 8076# All known linkers require a '.a' archive for static linking (except MSVC, 8077# which needs '.lib'). 8078libext=a 8079 8080with_gnu_ld=$lt_cv_prog_gnu_ld 8081 8082old_CC=$CC 8083old_CFLAGS=$CFLAGS 8084 8085# Set sane defaults for various variables 8086test -z "$CC" && CC=cc 8087test -z "$LTCC" && LTCC=$CC 8088test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8089test -z "$LD" && LD=ld 8090test -z "$ac_objext" && ac_objext=o 8091 8092func_cc_basename $compiler 8093cc_basename=$func_cc_basename_result 8094 8095 8096# Only perform the check for file, if the check method requires it 8097test -z "$MAGIC_CMD" && MAGIC_CMD=file 8098case $deplibs_check_method in 8099file_magic*) 8100 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8102$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8103if ${lt_cv_path_MAGIC_CMD+:} false; then : 8104 $as_echo_n "(cached) " >&6 8105else 8106 case $MAGIC_CMD in 8107[\\/*] | ?:[\\/]*) 8108 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8109 ;; 8110*) 8111 lt_save_MAGIC_CMD=$MAGIC_CMD 8112 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8113 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8114 for ac_dir in $ac_dummy; do 8115 IFS=$lt_save_ifs 8116 test -z "$ac_dir" && ac_dir=. 8117 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8118 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8119 if test -n "$file_magic_test_file"; then 8120 case $deplibs_check_method in 8121 "file_magic "*) 8122 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8123 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8124 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8125 $EGREP "$file_magic_regex" > /dev/null; then 8126 : 8127 else 8128 cat <<_LT_EOF 1>&2 8129 8130*** Warning: the command libtool uses to detect shared libraries, 8131*** $file_magic_cmd, produces output that libtool cannot recognize. 8132*** The result is that libtool may fail to recognize shared libraries 8133*** as such. This will affect the creation of libtool libraries that 8134*** depend on shared libraries, but programs linked with such libtool 8135*** libraries will work regardless of this problem. Nevertheless, you 8136*** may want to report the problem to your system manager and/or to 8137*** bug-libtool@gnu.org 8138 8139_LT_EOF 8140 fi ;; 8141 esac 8142 fi 8143 break 8144 fi 8145 done 8146 IFS=$lt_save_ifs 8147 MAGIC_CMD=$lt_save_MAGIC_CMD 8148 ;; 8149esac 8150fi 8151 8152MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8153if test -n "$MAGIC_CMD"; then 8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8155$as_echo "$MAGIC_CMD" >&6; } 8156else 8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8158$as_echo "no" >&6; } 8159fi 8160 8161 8162 8163 8164 8165if test -z "$lt_cv_path_MAGIC_CMD"; then 8166 if test -n "$ac_tool_prefix"; then 8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8168$as_echo_n "checking for file... " >&6; } 8169if ${lt_cv_path_MAGIC_CMD+:} false; then : 8170 $as_echo_n "(cached) " >&6 8171else 8172 case $MAGIC_CMD in 8173[\\/*] | ?:[\\/]*) 8174 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8175 ;; 8176*) 8177 lt_save_MAGIC_CMD=$MAGIC_CMD 8178 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8179 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8180 for ac_dir in $ac_dummy; do 8181 IFS=$lt_save_ifs 8182 test -z "$ac_dir" && ac_dir=. 8183 if test -f "$ac_dir/file"; then 8184 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8185 if test -n "$file_magic_test_file"; then 8186 case $deplibs_check_method in 8187 "file_magic "*) 8188 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8189 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8190 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8191 $EGREP "$file_magic_regex" > /dev/null; then 8192 : 8193 else 8194 cat <<_LT_EOF 1>&2 8195 8196*** Warning: the command libtool uses to detect shared libraries, 8197*** $file_magic_cmd, produces output that libtool cannot recognize. 8198*** The result is that libtool may fail to recognize shared libraries 8199*** as such. This will affect the creation of libtool libraries that 8200*** depend on shared libraries, but programs linked with such libtool 8201*** libraries will work regardless of this problem. Nevertheless, you 8202*** may want to report the problem to your system manager and/or to 8203*** bug-libtool@gnu.org 8204 8205_LT_EOF 8206 fi ;; 8207 esac 8208 fi 8209 break 8210 fi 8211 done 8212 IFS=$lt_save_ifs 8213 MAGIC_CMD=$lt_save_MAGIC_CMD 8214 ;; 8215esac 8216fi 8217 8218MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8219if test -n "$MAGIC_CMD"; then 8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8221$as_echo "$MAGIC_CMD" >&6; } 8222else 8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8224$as_echo "no" >&6; } 8225fi 8226 8227 8228 else 8229 MAGIC_CMD=: 8230 fi 8231fi 8232 8233 fi 8234 ;; 8235esac 8236 8237# Use C for the default configuration in the libtool script 8238 8239lt_save_CC=$CC 8240ac_ext=c 8241ac_cpp='$CPP $CPPFLAGS' 8242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8244ac_compiler_gnu=$ac_cv_c_compiler_gnu 8245 8246 8247# Source file extension for C test sources. 8248ac_ext=c 8249 8250# Object file extension for compiled C test sources. 8251objext=o 8252objext=$objext 8253 8254# Code to be used in simple compile tests 8255lt_simple_compile_test_code="int some_variable = 0;" 8256 8257# Code to be used in simple link tests 8258lt_simple_link_test_code='int main(){return(0);}' 8259 8260 8261 8262 8263 8264 8265 8266# If no C compiler was specified, use CC. 8267LTCC=${LTCC-"$CC"} 8268 8269# If no C compiler flags were specified, use CFLAGS. 8270LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8271 8272# Allow CC to be a program name with arguments. 8273compiler=$CC 8274 8275# Save the default compiler, since it gets overwritten when the other 8276# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8277compiler_DEFAULT=$CC 8278 8279# save warnings/boilerplate of simple test code 8280ac_outfile=conftest.$ac_objext 8281echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8282eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8283_lt_compiler_boilerplate=`cat conftest.err` 8284$RM conftest* 8285 8286ac_outfile=conftest.$ac_objext 8287echo "$lt_simple_link_test_code" >conftest.$ac_ext 8288eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8289_lt_linker_boilerplate=`cat conftest.err` 8290$RM -r conftest* 8291 8292 8293## CAVEAT EMPTOR: 8294## There is no encapsulation within the following macros, do not change 8295## the running order or otherwise move them around unless you know exactly 8296## what you are doing... 8297if test -n "$compiler"; then 8298 8299lt_prog_compiler_no_builtin_flag= 8300 8301if test yes = "$GCC"; then 8302 case $cc_basename in 8303 nvcc*) 8304 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8305 *) 8306 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8307 esac 8308 8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8310$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8311if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8312 $as_echo_n "(cached) " >&6 8313else 8314 lt_cv_prog_compiler_rtti_exceptions=no 8315 ac_outfile=conftest.$ac_objext 8316 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8317 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8318 # Insert the option either (1) after the last *FLAGS variable, or 8319 # (2) before a word containing "conftest.", or (3) at the end. 8320 # Note that $ac_compile itself does not contain backslashes and begins 8321 # with a dollar sign (not a hyphen), so the echo should work correctly. 8322 # The option is referenced via a variable to avoid confusing sed. 8323 lt_compile=`echo "$ac_compile" | $SED \ 8324 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8325 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8326 -e 's:$: $lt_compiler_flag:'` 8327 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8328 (eval "$lt_compile" 2>conftest.err) 8329 ac_status=$? 8330 cat conftest.err >&5 8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8332 if (exit $ac_status) && test -s "$ac_outfile"; then 8333 # The compiler can only warn and ignore the option if not recognized 8334 # So say no if there are warnings other than the usual output. 8335 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8336 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8337 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8338 lt_cv_prog_compiler_rtti_exceptions=yes 8339 fi 8340 fi 8341 $RM conftest* 8342 8343fi 8344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8345$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8346 8347if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8348 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8349else 8350 : 8351fi 8352 8353fi 8354 8355 8356 8357 8358 8359 8360 lt_prog_compiler_wl= 8361lt_prog_compiler_pic= 8362lt_prog_compiler_static= 8363 8364 8365 if test yes = "$GCC"; then 8366 lt_prog_compiler_wl='-Wl,' 8367 lt_prog_compiler_static='-static' 8368 8369 case $host_os in 8370 aix*) 8371 # All AIX code is PIC. 8372 if test ia64 = "$host_cpu"; then 8373 # AIX 5 now supports IA64 processor 8374 lt_prog_compiler_static='-Bstatic' 8375 fi 8376 lt_prog_compiler_pic='-fPIC' 8377 ;; 8378 8379 amigaos*) 8380 case $host_cpu in 8381 powerpc) 8382 # see comment about AmigaOS4 .so support 8383 lt_prog_compiler_pic='-fPIC' 8384 ;; 8385 m68k) 8386 # FIXME: we need at least 68020 code to build shared libraries, but 8387 # adding the '-m68020' flag to GCC prevents building anything better, 8388 # like '-m68040'. 8389 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8390 ;; 8391 esac 8392 ;; 8393 8394 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8395 # PIC is the default for these OSes. 8396 ;; 8397 8398 mingw* | cygwin* | pw32* | os2* | cegcc*) 8399 # This hack is so that the source file can tell whether it is being 8400 # built for inclusion in a dll (and should export symbols for example). 8401 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8402 # (--disable-auto-import) libraries 8403 lt_prog_compiler_pic='-DDLL_EXPORT' 8404 case $host_os in 8405 os2*) 8406 lt_prog_compiler_static='$wl-static' 8407 ;; 8408 esac 8409 ;; 8410 8411 darwin* | rhapsody*) 8412 # PIC is the default on this platform 8413 # Common symbols not allowed in MH_DYLIB files 8414 lt_prog_compiler_pic='-fno-common' 8415 ;; 8416 8417 haiku*) 8418 # PIC is the default for Haiku. 8419 # The "-static" flag exists, but is broken. 8420 lt_prog_compiler_static= 8421 ;; 8422 8423 hpux*) 8424 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8425 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8426 # sets the default TLS model and affects inlining. 8427 case $host_cpu in 8428 hppa*64*) 8429 # +Z the default 8430 ;; 8431 *) 8432 lt_prog_compiler_pic='-fPIC' 8433 ;; 8434 esac 8435 ;; 8436 8437 interix[3-9]*) 8438 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8439 # Instead, we relocate shared libraries at runtime. 8440 ;; 8441 8442 msdosdjgpp*) 8443 # Just because we use GCC doesn't mean we suddenly get shared libraries 8444 # on systems that don't support them. 8445 lt_prog_compiler_can_build_shared=no 8446 enable_shared=no 8447 ;; 8448 8449 *nto* | *qnx*) 8450 # QNX uses GNU C++, but need to define -shared option too, otherwise 8451 # it will coredump. 8452 lt_prog_compiler_pic='-fPIC -shared' 8453 ;; 8454 8455 sysv4*MP*) 8456 if test -d /usr/nec; then 8457 lt_prog_compiler_pic=-Kconform_pic 8458 fi 8459 ;; 8460 8461 *) 8462 lt_prog_compiler_pic='-fPIC' 8463 ;; 8464 esac 8465 8466 case $cc_basename in 8467 nvcc*) # Cuda Compiler Driver 2.2 8468 lt_prog_compiler_wl='-Xlinker ' 8469 if test -n "$lt_prog_compiler_pic"; then 8470 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8471 fi 8472 ;; 8473 esac 8474 else 8475 # PORTME Check for flag to pass linker flags through the system compiler. 8476 case $host_os in 8477 aix*) 8478 lt_prog_compiler_wl='-Wl,' 8479 if test ia64 = "$host_cpu"; then 8480 # AIX 5 now supports IA64 processor 8481 lt_prog_compiler_static='-Bstatic' 8482 else 8483 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8484 fi 8485 ;; 8486 8487 darwin* | rhapsody*) 8488 # PIC is the default on this platform 8489 # Common symbols not allowed in MH_DYLIB files 8490 lt_prog_compiler_pic='-fno-common' 8491 case $cc_basename in 8492 nagfor*) 8493 # NAG Fortran compiler 8494 lt_prog_compiler_wl='-Wl,-Wl,,' 8495 lt_prog_compiler_pic='-PIC' 8496 lt_prog_compiler_static='-Bstatic' 8497 ;; 8498 esac 8499 ;; 8500 8501 mingw* | cygwin* | pw32* | os2* | cegcc*) 8502 # This hack is so that the source file can tell whether it is being 8503 # built for inclusion in a dll (and should export symbols for example). 8504 lt_prog_compiler_pic='-DDLL_EXPORT' 8505 case $host_os in 8506 os2*) 8507 lt_prog_compiler_static='$wl-static' 8508 ;; 8509 esac 8510 ;; 8511 8512 hpux9* | hpux10* | hpux11*) 8513 lt_prog_compiler_wl='-Wl,' 8514 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8515 # not for PA HP-UX. 8516 case $host_cpu in 8517 hppa*64*|ia64*) 8518 # +Z the default 8519 ;; 8520 *) 8521 lt_prog_compiler_pic='+Z' 8522 ;; 8523 esac 8524 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8525 lt_prog_compiler_static='$wl-a ${wl}archive' 8526 ;; 8527 8528 irix5* | irix6* | nonstopux*) 8529 lt_prog_compiler_wl='-Wl,' 8530 # PIC (with -KPIC) is the default. 8531 lt_prog_compiler_static='-non_shared' 8532 ;; 8533 8534 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8535 case $cc_basename in 8536 # old Intel for x86_64, which still supported -KPIC. 8537 ecc*) 8538 lt_prog_compiler_wl='-Wl,' 8539 lt_prog_compiler_pic='-KPIC' 8540 lt_prog_compiler_static='-static' 8541 ;; 8542 # flang / f18. f95 an alias for gfortran or flang on Debian 8543 flang* | f18* | f95*) 8544 lt_prog_compiler_wl='-Wl,' 8545 lt_prog_compiler_pic='-fPIC' 8546 lt_prog_compiler_static='-static' 8547 ;; 8548 # icc used to be incompatible with GCC. 8549 # ICC 10 doesn't accept -KPIC any more. 8550 icc* | ifort*) 8551 lt_prog_compiler_wl='-Wl,' 8552 lt_prog_compiler_pic='-fPIC' 8553 lt_prog_compiler_static='-static' 8554 ;; 8555 # Lahey Fortran 8.1. 8556 lf95*) 8557 lt_prog_compiler_wl='-Wl,' 8558 lt_prog_compiler_pic='--shared' 8559 lt_prog_compiler_static='--static' 8560 ;; 8561 nagfor*) 8562 # NAG Fortran compiler 8563 lt_prog_compiler_wl='-Wl,-Wl,,' 8564 lt_prog_compiler_pic='-PIC' 8565 lt_prog_compiler_static='-Bstatic' 8566 ;; 8567 tcc*) 8568 # Fabrice Bellard et al's Tiny C Compiler 8569 lt_prog_compiler_wl='-Wl,' 8570 lt_prog_compiler_pic='-fPIC' 8571 lt_prog_compiler_static='-static' 8572 ;; 8573 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8574 # Portland Group compilers (*not* the Pentium gcc compiler, 8575 # which looks to be a dead project) 8576 lt_prog_compiler_wl='-Wl,' 8577 lt_prog_compiler_pic='-fpic' 8578 lt_prog_compiler_static='-Bstatic' 8579 ;; 8580 ccc*) 8581 lt_prog_compiler_wl='-Wl,' 8582 # All Alpha code is PIC. 8583 lt_prog_compiler_static='-non_shared' 8584 ;; 8585 xl* | bgxl* | bgf* | mpixl*) 8586 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8587 lt_prog_compiler_wl='-Wl,' 8588 lt_prog_compiler_pic='-qpic' 8589 lt_prog_compiler_static='-qstaticlink' 8590 ;; 8591 *) 8592 case `$CC -V 2>&1 | sed 5q` in 8593 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8594 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8595 lt_prog_compiler_pic='-KPIC' 8596 lt_prog_compiler_static='-Bstatic' 8597 lt_prog_compiler_wl='' 8598 ;; 8599 *Sun\ F* | *Sun*Fortran*) 8600 lt_prog_compiler_pic='-KPIC' 8601 lt_prog_compiler_static='-Bstatic' 8602 lt_prog_compiler_wl='-Qoption ld ' 8603 ;; 8604 *Sun\ C*) 8605 # Sun C 5.9 8606 lt_prog_compiler_pic='-KPIC' 8607 lt_prog_compiler_static='-Bstatic' 8608 lt_prog_compiler_wl='-Wl,' 8609 ;; 8610 *Intel*\ [CF]*Compiler*) 8611 lt_prog_compiler_wl='-Wl,' 8612 lt_prog_compiler_pic='-fPIC' 8613 lt_prog_compiler_static='-static' 8614 ;; 8615 *Portland\ Group*) 8616 lt_prog_compiler_wl='-Wl,' 8617 lt_prog_compiler_pic='-fpic' 8618 lt_prog_compiler_static='-Bstatic' 8619 ;; 8620 esac 8621 ;; 8622 esac 8623 ;; 8624 8625 newsos6) 8626 lt_prog_compiler_pic='-KPIC' 8627 lt_prog_compiler_static='-Bstatic' 8628 ;; 8629 8630 *nto* | *qnx*) 8631 # QNX uses GNU C++, but need to define -shared option too, otherwise 8632 # it will coredump. 8633 lt_prog_compiler_pic='-fPIC -shared' 8634 ;; 8635 8636 osf3* | osf4* | osf5*) 8637 lt_prog_compiler_wl='-Wl,' 8638 # All OSF/1 code is PIC. 8639 lt_prog_compiler_static='-non_shared' 8640 ;; 8641 8642 rdos*) 8643 lt_prog_compiler_static='-non_shared' 8644 ;; 8645 8646 solaris*) 8647 lt_prog_compiler_pic='-KPIC' 8648 lt_prog_compiler_static='-Bstatic' 8649 case $cc_basename in 8650 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8651 lt_prog_compiler_wl='-Qoption ld ';; 8652 *) 8653 lt_prog_compiler_wl='-Wl,';; 8654 esac 8655 ;; 8656 8657 sunos4*) 8658 lt_prog_compiler_wl='-Qoption ld ' 8659 lt_prog_compiler_pic='-PIC' 8660 lt_prog_compiler_static='-Bstatic' 8661 ;; 8662 8663 sysv4 | sysv4.2uw2* | sysv4.3*) 8664 lt_prog_compiler_wl='-Wl,' 8665 lt_prog_compiler_pic='-KPIC' 8666 lt_prog_compiler_static='-Bstatic' 8667 ;; 8668 8669 sysv4*MP*) 8670 if test -d /usr/nec; then 8671 lt_prog_compiler_pic='-Kconform_pic' 8672 lt_prog_compiler_static='-Bstatic' 8673 fi 8674 ;; 8675 8676 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8677 lt_prog_compiler_wl='-Wl,' 8678 lt_prog_compiler_pic='-KPIC' 8679 lt_prog_compiler_static='-Bstatic' 8680 ;; 8681 8682 unicos*) 8683 lt_prog_compiler_wl='-Wl,' 8684 lt_prog_compiler_can_build_shared=no 8685 ;; 8686 8687 uts4*) 8688 lt_prog_compiler_pic='-pic' 8689 lt_prog_compiler_static='-Bstatic' 8690 ;; 8691 8692 *) 8693 lt_prog_compiler_can_build_shared=no 8694 ;; 8695 esac 8696 fi 8697 8698case $host_os in 8699 # For platforms that do not support PIC, -DPIC is meaningless: 8700 *djgpp*) 8701 lt_prog_compiler_pic= 8702 ;; 8703 *) 8704 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8705 ;; 8706esac 8707 8708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8709$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8710if ${lt_cv_prog_compiler_pic+:} false; then : 8711 $as_echo_n "(cached) " >&6 8712else 8713 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8714fi 8715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8716$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8717lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8718 8719# 8720# Check to make sure the PIC flag actually works. 8721# 8722if test -n "$lt_prog_compiler_pic"; then 8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8724$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8725if ${lt_cv_prog_compiler_pic_works+:} false; then : 8726 $as_echo_n "(cached) " >&6 8727else 8728 lt_cv_prog_compiler_pic_works=no 8729 ac_outfile=conftest.$ac_objext 8730 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8731 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8732 # Insert the option either (1) after the last *FLAGS variable, or 8733 # (2) before a word containing "conftest.", or (3) at the end. 8734 # Note that $ac_compile itself does not contain backslashes and begins 8735 # with a dollar sign (not a hyphen), so the echo should work correctly. 8736 # The option is referenced via a variable to avoid confusing sed. 8737 lt_compile=`echo "$ac_compile" | $SED \ 8738 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8739 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8740 -e 's:$: $lt_compiler_flag:'` 8741 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8742 (eval "$lt_compile" 2>conftest.err) 8743 ac_status=$? 8744 cat conftest.err >&5 8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8746 if (exit $ac_status) && test -s "$ac_outfile"; then 8747 # The compiler can only warn and ignore the option if not recognized 8748 # So say no if there are warnings other than the usual output. 8749 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8750 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8751 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8752 lt_cv_prog_compiler_pic_works=yes 8753 fi 8754 fi 8755 $RM conftest* 8756 8757fi 8758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8759$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8760 8761if test yes = "$lt_cv_prog_compiler_pic_works"; then 8762 case $lt_prog_compiler_pic in 8763 "" | " "*) ;; 8764 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8765 esac 8766else 8767 lt_prog_compiler_pic= 8768 lt_prog_compiler_can_build_shared=no 8769fi 8770 8771fi 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783# 8784# Check to make sure the static flag actually works. 8785# 8786wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8788$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8789if ${lt_cv_prog_compiler_static_works+:} false; then : 8790 $as_echo_n "(cached) " >&6 8791else 8792 lt_cv_prog_compiler_static_works=no 8793 save_LDFLAGS=$LDFLAGS 8794 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8795 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8796 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8797 # The linker can only warn and ignore the option if not recognized 8798 # So say no if there are warnings 8799 if test -s conftest.err; then 8800 # Append any errors to the config.log. 8801 cat conftest.err 1>&5 8802 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8803 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8804 if diff conftest.exp conftest.er2 >/dev/null; then 8805 lt_cv_prog_compiler_static_works=yes 8806 fi 8807 else 8808 lt_cv_prog_compiler_static_works=yes 8809 fi 8810 fi 8811 $RM -r conftest* 8812 LDFLAGS=$save_LDFLAGS 8813 8814fi 8815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8816$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8817 8818if test yes = "$lt_cv_prog_compiler_static_works"; then 8819 : 8820else 8821 lt_prog_compiler_static= 8822fi 8823 8824 8825 8826 8827 8828 8829 8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8831$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8832if ${lt_cv_prog_compiler_c_o+:} false; then : 8833 $as_echo_n "(cached) " >&6 8834else 8835 lt_cv_prog_compiler_c_o=no 8836 $RM -r conftest 2>/dev/null 8837 mkdir conftest 8838 cd conftest 8839 mkdir out 8840 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8841 8842 lt_compiler_flag="-o out/conftest2.$ac_objext" 8843 # Insert the option either (1) after the last *FLAGS variable, or 8844 # (2) before a word containing "conftest.", or (3) at the end. 8845 # Note that $ac_compile itself does not contain backslashes and begins 8846 # with a dollar sign (not a hyphen), so the echo should work correctly. 8847 lt_compile=`echo "$ac_compile" | $SED \ 8848 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8849 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8850 -e 's:$: $lt_compiler_flag:'` 8851 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8852 (eval "$lt_compile" 2>out/conftest.err) 8853 ac_status=$? 8854 cat out/conftest.err >&5 8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8856 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8857 then 8858 # The compiler can only warn and ignore the option if not recognized 8859 # So say no if there are warnings 8860 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8861 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8862 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8863 lt_cv_prog_compiler_c_o=yes 8864 fi 8865 fi 8866 chmod u+w . 2>&5 8867 $RM conftest* 8868 # SGI C++ compiler will create directory out/ii_files/ for 8869 # template instantiation 8870 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8871 $RM out/* && rmdir out 8872 cd .. 8873 $RM -r conftest 8874 $RM conftest* 8875 8876fi 8877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8878$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8879 8880 8881 8882 8883 8884 8885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8886$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8887if ${lt_cv_prog_compiler_c_o+:} false; then : 8888 $as_echo_n "(cached) " >&6 8889else 8890 lt_cv_prog_compiler_c_o=no 8891 $RM -r conftest 2>/dev/null 8892 mkdir conftest 8893 cd conftest 8894 mkdir out 8895 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8896 8897 lt_compiler_flag="-o out/conftest2.$ac_objext" 8898 # Insert the option either (1) after the last *FLAGS variable, or 8899 # (2) before a word containing "conftest.", or (3) at the end. 8900 # Note that $ac_compile itself does not contain backslashes and begins 8901 # with a dollar sign (not a hyphen), so the echo should work correctly. 8902 lt_compile=`echo "$ac_compile" | $SED \ 8903 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8904 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8905 -e 's:$: $lt_compiler_flag:'` 8906 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8907 (eval "$lt_compile" 2>out/conftest.err) 8908 ac_status=$? 8909 cat out/conftest.err >&5 8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8911 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8912 then 8913 # The compiler can only warn and ignore the option if not recognized 8914 # So say no if there are warnings 8915 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8916 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8917 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8918 lt_cv_prog_compiler_c_o=yes 8919 fi 8920 fi 8921 chmod u+w . 2>&5 8922 $RM conftest* 8923 # SGI C++ compiler will create directory out/ii_files/ for 8924 # template instantiation 8925 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8926 $RM out/* && rmdir out 8927 cd .. 8928 $RM -r conftest 8929 $RM conftest* 8930 8931fi 8932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8933$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8934 8935 8936 8937 8938hard_links=nottested 8939if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 8940 # do not overwrite the value of need_locks provided by the user 8941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8942$as_echo_n "checking if we can lock with hard links... " >&6; } 8943 hard_links=yes 8944 $RM conftest* 8945 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8946 touch conftest.a 8947 ln conftest.a conftest.b 2>&5 || hard_links=no 8948 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8950$as_echo "$hard_links" >&6; } 8951 if test no = "$hard_links"; then 8952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 8953$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 8954 need_locks=warn 8955 fi 8956else 8957 need_locks=no 8958fi 8959 8960 8961 8962 8963 8964 8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8966$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8967 8968 runpath_var= 8969 allow_undefined_flag= 8970 always_export_symbols=no 8971 archive_cmds= 8972 archive_expsym_cmds= 8973 compiler_needs_object=no 8974 enable_shared_with_static_runtimes=no 8975 export_dynamic_flag_spec= 8976 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8977 hardcode_automatic=no 8978 hardcode_direct=no 8979 hardcode_direct_absolute=no 8980 hardcode_libdir_flag_spec= 8981 hardcode_libdir_separator= 8982 hardcode_minus_L=no 8983 hardcode_shlibpath_var=unsupported 8984 inherit_rpath=no 8985 link_all_deplibs=unknown 8986 module_cmds= 8987 module_expsym_cmds= 8988 old_archive_from_new_cmds= 8989 old_archive_from_expsyms_cmds= 8990 thread_safe_flag_spec= 8991 whole_archive_flag_spec= 8992 # include_expsyms should be a list of space-separated symbols to be *always* 8993 # included in the symbol list 8994 include_expsyms= 8995 # exclude_expsyms can be an extended regexp of symbols to exclude 8996 # it will be wrapped by ' (' and ')$', so one must not match beginning or 8997 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 8998 # as well as any symbol that contains 'd'. 8999 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9000 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9001 # platforms (ab)use it in PIC code, but their linkers get confused if 9002 # the symbol is explicitly referenced. Since portable code cannot 9003 # rely on this symbol name, it's probably fine to never include it in 9004 # preloaded symbol tables. 9005 # Exclude shared library initialization/finalization symbols. 9006 extract_expsyms_cmds= 9007 9008 case $host_os in 9009 cygwin* | mingw* | pw32* | cegcc*) 9010 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9011 # When not using gcc, we currently assume that we are using 9012 # Microsoft Visual C++. 9013 if test yes != "$GCC"; then 9014 with_gnu_ld=no 9015 fi 9016 ;; 9017 interix*) 9018 # we just hope/assume this is gcc and not c89 (= MSVC++) 9019 with_gnu_ld=yes 9020 ;; 9021 openbsd* | bitrig*) 9022 with_gnu_ld=no 9023 ;; 9024 linux* | k*bsd*-gnu | gnu*) 9025 link_all_deplibs=no 9026 ;; 9027 esac 9028 9029 ld_shlibs=yes 9030 9031 # On some targets, GNU ld is compatible enough with the native linker 9032 # that we're better off using the native interface for both. 9033 lt_use_gnu_ld_interface=no 9034 if test yes = "$with_gnu_ld"; then 9035 case $host_os in 9036 aix*) 9037 # The AIX port of GNU ld has always aspired to compatibility 9038 # with the native linker. However, as the warning in the GNU ld 9039 # block says, versions before 2.19.5* couldn't really create working 9040 # shared libraries, regardless of the interface used. 9041 case `$LD -v 2>&1` in 9042 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9043 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9044 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9045 *) 9046 lt_use_gnu_ld_interface=yes 9047 ;; 9048 esac 9049 ;; 9050 *) 9051 lt_use_gnu_ld_interface=yes 9052 ;; 9053 esac 9054 fi 9055 9056 if test yes = "$lt_use_gnu_ld_interface"; then 9057 # If archive_cmds runs LD, not CC, wlarc should be empty 9058 wlarc='$wl' 9059 9060 # Set some defaults for GNU ld with shared library support. These 9061 # are reset later if shared libraries are not supported. Putting them 9062 # here allows them to be overridden if necessary. 9063 runpath_var=LD_RUN_PATH 9064 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9065 export_dynamic_flag_spec='$wl--export-dynamic' 9066 # ancient GNU ld didn't support --whole-archive et. al. 9067 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9068 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9069 else 9070 whole_archive_flag_spec= 9071 fi 9072 supports_anon_versioning=no 9073 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9074 *GNU\ gold*) supports_anon_versioning=yes ;; 9075 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9076 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9077 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9078 *\ 2.11.*) ;; # other 2.11 versions 9079 *) supports_anon_versioning=yes ;; 9080 esac 9081 9082 # See if GNU ld supports shared libraries. 9083 case $host_os in 9084 aix[3-9]*) 9085 # On AIX/PPC, the GNU linker is very broken 9086 if test ia64 != "$host_cpu"; then 9087 ld_shlibs=no 9088 cat <<_LT_EOF 1>&2 9089 9090*** Warning: the GNU linker, at least up to release 2.19, is reported 9091*** to be unable to reliably create shared libraries on AIX. 9092*** Therefore, libtool is disabling shared libraries support. If you 9093*** really care for shared libraries, you may want to install binutils 9094*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9095*** You will then need to restart the configuration process. 9096 9097_LT_EOF 9098 fi 9099 ;; 9100 9101 amigaos*) 9102 case $host_cpu in 9103 powerpc) 9104 # see comment about AmigaOS4 .so support 9105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9106 archive_expsym_cmds='' 9107 ;; 9108 m68k) 9109 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)' 9110 hardcode_libdir_flag_spec='-L$libdir' 9111 hardcode_minus_L=yes 9112 ;; 9113 esac 9114 ;; 9115 9116 beos*) 9117 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9118 allow_undefined_flag=unsupported 9119 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9120 # support --undefined. This deserves some investigation. FIXME 9121 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9122 else 9123 ld_shlibs=no 9124 fi 9125 ;; 9126 9127 cygwin* | mingw* | pw32* | cegcc*) 9128 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9129 # as there is no search path for DLLs. 9130 hardcode_libdir_flag_spec='-L$libdir' 9131 export_dynamic_flag_spec='$wl--export-all-symbols' 9132 allow_undefined_flag=unsupported 9133 always_export_symbols=no 9134 enable_shared_with_static_runtimes=yes 9135 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' 9136 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9137 9138 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9139 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9140 # If the export-symbols file already is a .def file, use it as 9141 # is; otherwise, prepend EXPORTS... 9142 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9143 cp $export_symbols $output_objdir/$soname.def; 9144 else 9145 echo EXPORTS > $output_objdir/$soname.def; 9146 cat $export_symbols >> $output_objdir/$soname.def; 9147 fi~ 9148 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9149 else 9150 ld_shlibs=no 9151 fi 9152 ;; 9153 9154 haiku*) 9155 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9156 link_all_deplibs=yes 9157 ;; 9158 9159 os2*) 9160 hardcode_libdir_flag_spec='-L$libdir' 9161 hardcode_minus_L=yes 9162 allow_undefined_flag=unsupported 9163 shrext_cmds=.dll 9164 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9165 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9166 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9167 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9168 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9169 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9170 emximp -o $lib $output_objdir/$libname.def' 9171 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9172 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9173 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9174 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9175 prefix_cmds="$SED"~ 9176 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9177 prefix_cmds="$prefix_cmds -e 1d"; 9178 fi~ 9179 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9180 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9181 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9182 emximp -o $lib $output_objdir/$libname.def' 9183 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9184 enable_shared_with_static_runtimes=yes 9185 ;; 9186 9187 interix[3-9]*) 9188 hardcode_direct=no 9189 hardcode_shlibpath_var=no 9190 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9191 export_dynamic_flag_spec='$wl-E' 9192 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9193 # Instead, shared libraries are loaded at an image base (0x10000000 by 9194 # default) and relocated if they conflict, which is a slow very memory 9195 # consuming and fragmenting process. To avoid this, we pick a random, 9196 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9197 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9198 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9199 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' 9200 ;; 9201 9202 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9203 tmp_diet=no 9204 if test linux-dietlibc = "$host_os"; then 9205 case $cc_basename in 9206 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9207 esac 9208 fi 9209 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9210 && test no = "$tmp_diet" 9211 then 9212 tmp_addflag=' $pic_flag' 9213 tmp_sharedflag='-shared' 9214 case $cc_basename,$host_cpu in 9215 pgcc*) # Portland Group C compiler 9216 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' 9217 tmp_addflag=' $pic_flag' 9218 ;; 9219 pgf77* | pgf90* | pgf95* | pgfortran*) 9220 # Portland Group f77 and f90 compilers 9221 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' 9222 tmp_addflag=' $pic_flag -Mnomain' ;; 9223 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9224 tmp_addflag=' -i_dynamic' ;; 9225 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9226 tmp_addflag=' -i_dynamic -nofor_main' ;; 9227 ifc* | ifort*) # Intel Fortran compiler 9228 tmp_addflag=' -nofor_main' ;; 9229 lf95*) # Lahey Fortran 8.1 9230 whole_archive_flag_spec= 9231 tmp_sharedflag='--shared' ;; 9232 nagfor*) # NAGFOR 5.3 9233 tmp_sharedflag='-Wl,-shared' ;; 9234 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9235 tmp_sharedflag='-qmkshrobj' 9236 tmp_addflag= ;; 9237 nvcc*) # Cuda Compiler Driver 2.2 9238 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' 9239 compiler_needs_object=yes 9240 ;; 9241 esac 9242 case `$CC -V 2>&1 | sed 5q` in 9243 *Sun\ C*) # Sun C 5.9 9244 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' 9245 compiler_needs_object=yes 9246 tmp_sharedflag='-G' ;; 9247 *Sun\ F*) # Sun Fortran 8.3 9248 tmp_sharedflag='-G' ;; 9249 esac 9250 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9251 9252 if test yes = "$supports_anon_versioning"; then 9253 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9254 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9255 echo "local: *; };" >> $output_objdir/$libname.ver~ 9256 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9257 fi 9258 9259 case $cc_basename in 9260 tcc*) 9261 export_dynamic_flag_spec='-rdynamic' 9262 ;; 9263 xlf* | bgf* | bgxlf* | mpixlf*) 9264 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9265 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9266 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9267 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9268 if test yes = "$supports_anon_versioning"; then 9269 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9270 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9271 echo "local: *; };" >> $output_objdir/$libname.ver~ 9272 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9273 fi 9274 ;; 9275 esac 9276 else 9277 ld_shlibs=no 9278 fi 9279 ;; 9280 9281 netbsd* | netbsdelf*-gnu) 9282 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9283 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9284 wlarc= 9285 else 9286 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9287 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9288 fi 9289 ;; 9290 9291 solaris*) 9292 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9293 ld_shlibs=no 9294 cat <<_LT_EOF 1>&2 9295 9296*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9297*** create shared libraries on Solaris systems. Therefore, libtool 9298*** is disabling shared libraries support. We urge you to upgrade GNU 9299*** binutils to release 2.9.1 or newer. Another option is to modify 9300*** your PATH or compiler configuration so that the native linker is 9301*** used, and then restart. 9302 9303_LT_EOF 9304 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9305 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9306 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9307 else 9308 ld_shlibs=no 9309 fi 9310 ;; 9311 9312 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9313 case `$LD -v 2>&1` in 9314 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9315 ld_shlibs=no 9316 cat <<_LT_EOF 1>&2 9317 9318*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9319*** reliably create shared libraries on SCO systems. Therefore, libtool 9320*** is disabling shared libraries support. We urge you to upgrade GNU 9321*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9322*** your PATH or compiler configuration so that the native linker is 9323*** used, and then restart. 9324 9325_LT_EOF 9326 ;; 9327 *) 9328 # For security reasons, it is highly recommended that you always 9329 # use absolute paths for naming shared libraries, and exclude the 9330 # DT_RUNPATH tag from executables and libraries. But doing so 9331 # requires that you compile everything twice, which is a pain. 9332 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9333 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9334 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9335 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9336 else 9337 ld_shlibs=no 9338 fi 9339 ;; 9340 esac 9341 ;; 9342 9343 sunos4*) 9344 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9345 wlarc= 9346 hardcode_direct=yes 9347 hardcode_shlibpath_var=no 9348 ;; 9349 9350 *) 9351 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9352 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9353 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9354 else 9355 ld_shlibs=no 9356 fi 9357 ;; 9358 esac 9359 9360 if test no = "$ld_shlibs"; then 9361 runpath_var= 9362 hardcode_libdir_flag_spec= 9363 export_dynamic_flag_spec= 9364 whole_archive_flag_spec= 9365 fi 9366 else 9367 # PORTME fill in a description of your system's linker (not GNU ld) 9368 case $host_os in 9369 aix3*) 9370 allow_undefined_flag=unsupported 9371 always_export_symbols=yes 9372 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' 9373 # Note: this linker hardcodes the directories in LIBPATH if there 9374 # are no directories specified by -L. 9375 hardcode_minus_L=yes 9376 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9377 # Neither direct hardcoding nor static linking is supported with a 9378 # broken collect2. 9379 hardcode_direct=unsupported 9380 fi 9381 ;; 9382 9383 aix[4-9]*) 9384 if test ia64 = "$host_cpu"; then 9385 # On IA64, the linker does run time linking by default, so we don't 9386 # have to do anything special. 9387 aix_use_runtimelinking=no 9388 exp_sym_flag='-Bexport' 9389 no_entry_flag= 9390 else 9391 # If we're using GNU nm, then we don't want the "-C" option. 9392 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9393 # Without the "-l" option, or with the "-B" option, AIX nm treats 9394 # weak defined symbols like other global defined symbols, whereas 9395 # GNU nm marks them as "W". 9396 # While the 'weak' keyword is ignored in the Export File, we need 9397 # it in the Import File for the 'aix-soname' feature, so we have 9398 # to replace the "-B" option with "-P" for AIX nm. 9399 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9400 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 9401 else 9402 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 9403 fi 9404 aix_use_runtimelinking=no 9405 9406 # Test if we are trying to use run time linking or normal 9407 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9408 # have runtime linking enabled, and use it for executables. 9409 # For shared libraries, we enable/disable runtime linking 9410 # depending on the kind of the shared library created - 9411 # when "with_aix_soname,aix_use_runtimelinking" is: 9412 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9413 # "aix,yes" lib.so shared, rtl:yes, for executables 9414 # lib.a static archive 9415 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9416 # lib.a(lib.so.V) shared, rtl:no, for executables 9417 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9418 # lib.a(lib.so.V) shared, rtl:no 9419 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9420 # lib.a static archive 9421 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9422 for ld_flag in $LDFLAGS; do 9423 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9424 aix_use_runtimelinking=yes 9425 break 9426 fi 9427 done 9428 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9429 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9430 # so we don't have lib.a shared libs to link our executables. 9431 # We have to force runtime linking in this case. 9432 aix_use_runtimelinking=yes 9433 LDFLAGS="$LDFLAGS -Wl,-brtl" 9434 fi 9435 ;; 9436 esac 9437 9438 exp_sym_flag='-bexport' 9439 no_entry_flag='-bnoentry' 9440 fi 9441 9442 # When large executables or shared objects are built, AIX ld can 9443 # have problems creating the table of contents. If linking a library 9444 # or program results in "error TOC overflow" add -mminimal-toc to 9445 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9446 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9447 9448 archive_cmds='' 9449 hardcode_direct=yes 9450 hardcode_direct_absolute=yes 9451 hardcode_libdir_separator=':' 9452 link_all_deplibs=yes 9453 file_list_spec='$wl-f,' 9454 case $with_aix_soname,$aix_use_runtimelinking in 9455 aix,*) ;; # traditional, no import file 9456 svr4,* | *,yes) # use import file 9457 # The Import File defines what to hardcode. 9458 hardcode_direct=no 9459 hardcode_direct_absolute=no 9460 ;; 9461 esac 9462 9463 if test yes = "$GCC"; then 9464 case $host_os in aix4.[012]|aix4.[012].*) 9465 # We only want to do this on AIX 4.2 and lower, the check 9466 # below for broken collect2 doesn't work under 4.3+ 9467 collect2name=`$CC -print-prog-name=collect2` 9468 if test -f "$collect2name" && 9469 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9470 then 9471 # We have reworked collect2 9472 : 9473 else 9474 # We have old collect2 9475 hardcode_direct=unsupported 9476 # It fails to find uninstalled libraries when the uninstalled 9477 # path is not listed in the libpath. Setting hardcode_minus_L 9478 # to unsupported forces relinking 9479 hardcode_minus_L=yes 9480 hardcode_libdir_flag_spec='-L$libdir' 9481 hardcode_libdir_separator= 9482 fi 9483 ;; 9484 esac 9485 shared_flag='-shared' 9486 if test yes = "$aix_use_runtimelinking"; then 9487 shared_flag="$shared_flag "'$wl-G' 9488 fi 9489 # Need to ensure runtime linking is disabled for the traditional 9490 # shared library, or the linker may eventually find shared libraries 9491 # /with/ Import File - we do not want to mix them. 9492 shared_flag_aix='-shared' 9493 shared_flag_svr4='-shared $wl-G' 9494 else 9495 # not using gcc 9496 if test ia64 = "$host_cpu"; then 9497 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9498 # chokes on -Wl,-G. The following line is correct: 9499 shared_flag='-G' 9500 else 9501 if test yes = "$aix_use_runtimelinking"; then 9502 shared_flag='$wl-G' 9503 else 9504 shared_flag='$wl-bM:SRE' 9505 fi 9506 shared_flag_aix='$wl-bM:SRE' 9507 shared_flag_svr4='$wl-G' 9508 fi 9509 fi 9510 9511 export_dynamic_flag_spec='$wl-bexpall' 9512 # It seems that -bexpall does not export symbols beginning with 9513 # underscore (_), so it is better to generate a list of symbols to export. 9514 always_export_symbols=yes 9515 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9516 # Warning - without using the other runtime loading flags (-brtl), 9517 # -berok will link without error, but may produce a broken library. 9518 allow_undefined_flag='-berok' 9519 # Determine the default libpath from the value encoded in an 9520 # empty executable. 9521 if test set = "${lt_cv_aix_libpath+set}"; then 9522 aix_libpath=$lt_cv_aix_libpath 9523else 9524 if ${lt_cv_aix_libpath_+:} false; then : 9525 $as_echo_n "(cached) " >&6 9526else 9527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9528/* end confdefs.h. */ 9529 9530int 9531main () 9532{ 9533 9534 ; 9535 return 0; 9536} 9537_ACEOF 9538if ac_fn_c_try_link "$LINENO"; then : 9539 9540 lt_aix_libpath_sed=' 9541 /Import File Strings/,/^$/ { 9542 /^0/ { 9543 s/^0 *\([^ ]*\) *$/\1/ 9544 p 9545 } 9546 }' 9547 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9548 # Check for a 64-bit object if we didn't find anything. 9549 if test -z "$lt_cv_aix_libpath_"; then 9550 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9551 fi 9552fi 9553rm -f core conftest.err conftest.$ac_objext \ 9554 conftest$ac_exeext conftest.$ac_ext 9555 if test -z "$lt_cv_aix_libpath_"; then 9556 lt_cv_aix_libpath_=/usr/lib:/lib 9557 fi 9558 9559fi 9560 9561 aix_libpath=$lt_cv_aix_libpath_ 9562fi 9563 9564 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9565 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 9566 else 9567 if test ia64 = "$host_cpu"; then 9568 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9569 allow_undefined_flag="-z nodefs" 9570 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" 9571 else 9572 # Determine the default libpath from the value encoded in an 9573 # empty executable. 9574 if test set = "${lt_cv_aix_libpath+set}"; then 9575 aix_libpath=$lt_cv_aix_libpath 9576else 9577 if ${lt_cv_aix_libpath_+:} false; then : 9578 $as_echo_n "(cached) " >&6 9579else 9580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9581/* end confdefs.h. */ 9582 9583int 9584main () 9585{ 9586 9587 ; 9588 return 0; 9589} 9590_ACEOF 9591if ac_fn_c_try_link "$LINENO"; then : 9592 9593 lt_aix_libpath_sed=' 9594 /Import File Strings/,/^$/ { 9595 /^0/ { 9596 s/^0 *\([^ ]*\) *$/\1/ 9597 p 9598 } 9599 }' 9600 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9601 # Check for a 64-bit object if we didn't find anything. 9602 if test -z "$lt_cv_aix_libpath_"; then 9603 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9604 fi 9605fi 9606rm -f core conftest.err conftest.$ac_objext \ 9607 conftest$ac_exeext conftest.$ac_ext 9608 if test -z "$lt_cv_aix_libpath_"; then 9609 lt_cv_aix_libpath_=/usr/lib:/lib 9610 fi 9611 9612fi 9613 9614 aix_libpath=$lt_cv_aix_libpath_ 9615fi 9616 9617 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9618 # Warning - without using the other run time loading flags, 9619 # -berok will link without error, but may produce a broken library. 9620 no_undefined_flag=' $wl-bernotok' 9621 allow_undefined_flag=' $wl-berok' 9622 if test yes = "$with_gnu_ld"; then 9623 # We only use this code for GNU lds that support --whole-archive. 9624 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9625 else 9626 # Exported symbols can be pulled into shared objects from archives 9627 whole_archive_flag_spec='$convenience' 9628 fi 9629 archive_cmds_need_lc=yes 9630 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9631 # -brtl affects multiple linker settings, -berok does not and is overridden later 9632 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9633 if test svr4 != "$with_aix_soname"; then 9634 # This is similar to how AIX traditionally builds its shared libraries. 9635 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 9636 fi 9637 if test aix != "$with_aix_soname"; then 9638 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 9639 else 9640 # used by -dlpreopen to get the symbols 9641 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9642 fi 9643 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9644 fi 9645 fi 9646 ;; 9647 9648 amigaos*) 9649 case $host_cpu in 9650 powerpc) 9651 # see comment about AmigaOS4 .so support 9652 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9653 archive_expsym_cmds='' 9654 ;; 9655 m68k) 9656 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)' 9657 hardcode_libdir_flag_spec='-L$libdir' 9658 hardcode_minus_L=yes 9659 ;; 9660 esac 9661 ;; 9662 9663 bsdi[45]*) 9664 export_dynamic_flag_spec=-rdynamic 9665 ;; 9666 9667 cygwin* | mingw* | pw32* | cegcc*) 9668 # When not using gcc, we currently assume that we are using 9669 # Microsoft Visual C++. 9670 # hardcode_libdir_flag_spec is actually meaningless, as there is 9671 # no search path for DLLs. 9672 case $cc_basename in 9673 cl*) 9674 # Native MSVC 9675 hardcode_libdir_flag_spec=' ' 9676 allow_undefined_flag=unsupported 9677 always_export_symbols=yes 9678 file_list_spec='@' 9679 # Tell ltmain to make .lib files, not .a files. 9680 libext=lib 9681 # Tell ltmain to make .dll files, not .so files. 9682 shrext_cmds=.dll 9683 # FIXME: Setting linknames here is a bad hack. 9684 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9685 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9686 cp "$export_symbols" "$output_objdir/$soname.def"; 9687 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9688 else 9689 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9690 fi~ 9691 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9692 linknames=' 9693 # The linker will not automatically build a static lib if we build a DLL. 9694 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9695 enable_shared_with_static_runtimes=yes 9696 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9697 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9698 # Don't use ranlib 9699 old_postinstall_cmds='chmod 644 $oldlib' 9700 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9701 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9702 case $lt_outputfile in 9703 *.exe|*.EXE) ;; 9704 *) 9705 lt_outputfile=$lt_outputfile.exe 9706 lt_tool_outputfile=$lt_tool_outputfile.exe 9707 ;; 9708 esac~ 9709 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9710 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9711 $RM "$lt_outputfile.manifest"; 9712 fi' 9713 ;; 9714 *) 9715 # Assume MSVC wrapper 9716 hardcode_libdir_flag_spec=' ' 9717 allow_undefined_flag=unsupported 9718 # Tell ltmain to make .lib files, not .a files. 9719 libext=lib 9720 # Tell ltmain to make .dll files, not .so files. 9721 shrext_cmds=.dll 9722 # FIXME: Setting linknames here is a bad hack. 9723 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9724 # The linker will automatically build a .lib file if we build a DLL. 9725 old_archive_from_new_cmds='true' 9726 # FIXME: Should let the user specify the lib program. 9727 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9728 enable_shared_with_static_runtimes=yes 9729 ;; 9730 esac 9731 ;; 9732 9733 darwin* | rhapsody*) 9734 9735 9736 archive_cmds_need_lc=no 9737 hardcode_direct=no 9738 hardcode_automatic=yes 9739 hardcode_shlibpath_var=unsupported 9740 if test yes = "$lt_cv_ld_force_load"; then 9741 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\"`' 9742 9743 else 9744 whole_archive_flag_spec='' 9745 fi 9746 link_all_deplibs=yes 9747 allow_undefined_flag=$_lt_dar_allow_undefined 9748 case $cc_basename in 9749 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9750 *) _lt_dar_can_shared=$GCC ;; 9751 esac 9752 if test yes = "$_lt_dar_can_shared"; then 9753 output_verbose_link_cmd=func_echo_all 9754 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9755 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9756 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" 9757 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" 9758 9759 else 9760 ld_shlibs=no 9761 fi 9762 9763 ;; 9764 9765 dgux*) 9766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9767 hardcode_libdir_flag_spec='-L$libdir' 9768 hardcode_shlibpath_var=no 9769 ;; 9770 9771 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9772 # support. Future versions do this automatically, but an explicit c++rt0.o 9773 # does not break anything, and helps significantly (at the cost of a little 9774 # extra space). 9775 freebsd2.2*) 9776 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9777 hardcode_libdir_flag_spec='-R$libdir' 9778 hardcode_direct=yes 9779 hardcode_shlibpath_var=no 9780 ;; 9781 9782 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9783 freebsd2.*) 9784 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9785 hardcode_direct=yes 9786 hardcode_minus_L=yes 9787 hardcode_shlibpath_var=no 9788 ;; 9789 9790 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9791 freebsd* | dragonfly*) 9792 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9793 hardcode_libdir_flag_spec='-R$libdir' 9794 hardcode_direct=yes 9795 hardcode_shlibpath_var=no 9796 ;; 9797 9798 hpux9*) 9799 if test yes = "$GCC"; then 9800 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9801 else 9802 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9803 fi 9804 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9805 hardcode_libdir_separator=: 9806 hardcode_direct=yes 9807 9808 # hardcode_minus_L: Not really in the search PATH, 9809 # but as the default location of the library. 9810 hardcode_minus_L=yes 9811 export_dynamic_flag_spec='$wl-E' 9812 ;; 9813 9814 hpux10*) 9815 if test yes,no = "$GCC,$with_gnu_ld"; then 9816 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9817 else 9818 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9819 fi 9820 if test no = "$with_gnu_ld"; then 9821 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9822 hardcode_libdir_separator=: 9823 hardcode_direct=yes 9824 hardcode_direct_absolute=yes 9825 export_dynamic_flag_spec='$wl-E' 9826 # hardcode_minus_L: Not really in the search PATH, 9827 # but as the default location of the library. 9828 hardcode_minus_L=yes 9829 fi 9830 ;; 9831 9832 hpux11*) 9833 if test yes,no = "$GCC,$with_gnu_ld"; then 9834 case $host_cpu in 9835 hppa*64*) 9836 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9837 ;; 9838 ia64*) 9839 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9840 ;; 9841 *) 9842 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9843 ;; 9844 esac 9845 else 9846 case $host_cpu in 9847 hppa*64*) 9848 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9849 ;; 9850 ia64*) 9851 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9852 ;; 9853 *) 9854 9855 # Older versions of the 11.00 compiler do not understand -b yet 9856 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9858$as_echo_n "checking if $CC understands -b... " >&6; } 9859if ${lt_cv_prog_compiler__b+:} false; then : 9860 $as_echo_n "(cached) " >&6 9861else 9862 lt_cv_prog_compiler__b=no 9863 save_LDFLAGS=$LDFLAGS 9864 LDFLAGS="$LDFLAGS -b" 9865 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9866 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9867 # The linker can only warn and ignore the option if not recognized 9868 # So say no if there are warnings 9869 if test -s conftest.err; then 9870 # Append any errors to the config.log. 9871 cat conftest.err 1>&5 9872 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9873 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9874 if diff conftest.exp conftest.er2 >/dev/null; then 9875 lt_cv_prog_compiler__b=yes 9876 fi 9877 else 9878 lt_cv_prog_compiler__b=yes 9879 fi 9880 fi 9881 $RM -r conftest* 9882 LDFLAGS=$save_LDFLAGS 9883 9884fi 9885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9886$as_echo "$lt_cv_prog_compiler__b" >&6; } 9887 9888if test yes = "$lt_cv_prog_compiler__b"; then 9889 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9890else 9891 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9892fi 9893 9894 ;; 9895 esac 9896 fi 9897 if test no = "$with_gnu_ld"; then 9898 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9899 hardcode_libdir_separator=: 9900 9901 case $host_cpu in 9902 hppa*64*|ia64*) 9903 hardcode_direct=no 9904 hardcode_shlibpath_var=no 9905 ;; 9906 *) 9907 hardcode_direct=yes 9908 hardcode_direct_absolute=yes 9909 export_dynamic_flag_spec='$wl-E' 9910 9911 # hardcode_minus_L: Not really in the search PATH, 9912 # but as the default location of the library. 9913 hardcode_minus_L=yes 9914 ;; 9915 esac 9916 fi 9917 ;; 9918 9919 irix5* | irix6* | nonstopux*) 9920 if test yes = "$GCC"; then 9921 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' 9922 # Try to use the -exported_symbol ld option, if it does not 9923 # work, assume that -exports_file does not work either and 9924 # implicitly export all symbols. 9925 # This should be the same for all languages, so no per-tag cache variable. 9926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9927$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9928if ${lt_cv_irix_exported_symbol+:} false; then : 9929 $as_echo_n "(cached) " >&6 9930else 9931 save_LDFLAGS=$LDFLAGS 9932 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 9933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9934/* end confdefs.h. */ 9935int foo (void) { return 0; } 9936_ACEOF 9937if ac_fn_c_try_link "$LINENO"; then : 9938 lt_cv_irix_exported_symbol=yes 9939else 9940 lt_cv_irix_exported_symbol=no 9941fi 9942rm -f core conftest.err conftest.$ac_objext \ 9943 conftest$ac_exeext conftest.$ac_ext 9944 LDFLAGS=$save_LDFLAGS 9945fi 9946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9947$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9948 if test yes = "$lt_cv_irix_exported_symbol"; then 9949 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' 9950 fi 9951 link_all_deplibs=no 9952 else 9953 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' 9954 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' 9955 fi 9956 archive_cmds_need_lc='no' 9957 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9958 hardcode_libdir_separator=: 9959 inherit_rpath=yes 9960 link_all_deplibs=yes 9961 ;; 9962 9963 linux*) 9964 case $cc_basename in 9965 tcc*) 9966 # Fabrice Bellard et al's Tiny C Compiler 9967 ld_shlibs=yes 9968 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9969 ;; 9970 esac 9971 ;; 9972 9973 netbsd* | netbsdelf*-gnu) 9974 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9975 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9976 else 9977 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9978 fi 9979 hardcode_libdir_flag_spec='-R$libdir' 9980 hardcode_direct=yes 9981 hardcode_shlibpath_var=no 9982 ;; 9983 9984 newsos6) 9985 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9986 hardcode_direct=yes 9987 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9988 hardcode_libdir_separator=: 9989 hardcode_shlibpath_var=no 9990 ;; 9991 9992 *nto* | *qnx*) 9993 ;; 9994 9995 openbsd* | bitrig*) 9996 if test -f /usr/libexec/ld.so; then 9997 hardcode_direct=yes 9998 hardcode_shlibpath_var=no 9999 hardcode_direct_absolute=yes 10000 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10001 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10002 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10003 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10004 export_dynamic_flag_spec='$wl-E' 10005 else 10006 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10007 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10008 fi 10009 else 10010 ld_shlibs=no 10011 fi 10012 ;; 10013 10014 os2*) 10015 hardcode_libdir_flag_spec='-L$libdir' 10016 hardcode_minus_L=yes 10017 allow_undefined_flag=unsupported 10018 shrext_cmds=.dll 10019 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10020 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10021 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10022 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10023 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10024 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10025 emximp -o $lib $output_objdir/$libname.def' 10026 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10027 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10028 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10029 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10030 prefix_cmds="$SED"~ 10031 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10032 prefix_cmds="$prefix_cmds -e 1d"; 10033 fi~ 10034 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10035 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10036 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10037 emximp -o $lib $output_objdir/$libname.def' 10038 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10039 enable_shared_with_static_runtimes=yes 10040 ;; 10041 10042 osf3*) 10043 if test yes = "$GCC"; then 10044 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10045 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' 10046 else 10047 allow_undefined_flag=' -expect_unresolved \*' 10048 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' 10049 fi 10050 archive_cmds_need_lc='no' 10051 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10052 hardcode_libdir_separator=: 10053 ;; 10054 10055 osf4* | osf5*) # as osf3* with the addition of -msym flag 10056 if test yes = "$GCC"; then 10057 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10058 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' 10059 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10060 else 10061 allow_undefined_flag=' -expect_unresolved \*' 10062 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' 10063 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~ 10064 $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' 10065 10066 # Both c and cxx compiler support -rpath directly 10067 hardcode_libdir_flag_spec='-rpath $libdir' 10068 fi 10069 archive_cmds_need_lc='no' 10070 hardcode_libdir_separator=: 10071 ;; 10072 10073 solaris*) 10074 no_undefined_flag=' -z defs' 10075 if test yes = "$GCC"; then 10076 wlarc='$wl' 10077 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10078 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10079 $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' 10080 else 10081 case `$CC -V 2>&1` in 10082 *"Compilers 5.0"*) 10083 wlarc='' 10084 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10085 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10086 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10087 ;; 10088 *) 10089 wlarc='$wl' 10090 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10091 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10092 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10093 ;; 10094 esac 10095 fi 10096 hardcode_libdir_flag_spec='-R$libdir' 10097 hardcode_shlibpath_var=no 10098 case $host_os in 10099 solaris2.[0-5] | solaris2.[0-5].*) ;; 10100 *) 10101 # The compiler driver will combine and reorder linker options, 10102 # but understands '-z linker_flag'. GCC discards it without '$wl', 10103 # but is careful enough not to reorder. 10104 # Supported since Solaris 2.6 (maybe 2.5.1?) 10105 if test yes = "$GCC"; then 10106 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10107 else 10108 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10109 fi 10110 ;; 10111 esac 10112 link_all_deplibs=yes 10113 ;; 10114 10115 sunos4*) 10116 if test sequent = "$host_vendor"; then 10117 # Use $CC to link under sequent, because it throws in some extra .o 10118 # files that make .init and .fini sections work. 10119 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10120 else 10121 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10122 fi 10123 hardcode_libdir_flag_spec='-L$libdir' 10124 hardcode_direct=yes 10125 hardcode_minus_L=yes 10126 hardcode_shlibpath_var=no 10127 ;; 10128 10129 sysv4) 10130 case $host_vendor in 10131 sni) 10132 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10133 hardcode_direct=yes # is this really true??? 10134 ;; 10135 siemens) 10136 ## LD is ld it makes a PLAMLIB 10137 ## CC just makes a GrossModule. 10138 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10139 reload_cmds='$CC -r -o $output$reload_objs' 10140 hardcode_direct=no 10141 ;; 10142 motorola) 10143 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10144 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10145 ;; 10146 esac 10147 runpath_var='LD_RUN_PATH' 10148 hardcode_shlibpath_var=no 10149 ;; 10150 10151 sysv4.3*) 10152 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10153 hardcode_shlibpath_var=no 10154 export_dynamic_flag_spec='-Bexport' 10155 ;; 10156 10157 sysv4*MP*) 10158 if test -d /usr/nec; then 10159 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10160 hardcode_shlibpath_var=no 10161 runpath_var=LD_RUN_PATH 10162 hardcode_runpath_var=yes 10163 ld_shlibs=yes 10164 fi 10165 ;; 10166 10167 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10168 no_undefined_flag='$wl-z,text' 10169 archive_cmds_need_lc=no 10170 hardcode_shlibpath_var=no 10171 runpath_var='LD_RUN_PATH' 10172 10173 if test yes = "$GCC"; then 10174 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10175 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10176 else 10177 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10178 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10179 fi 10180 ;; 10181 10182 sysv5* | sco3.2v5* | sco5v6*) 10183 # Note: We CANNOT use -z defs as we might desire, because we do not 10184 # link with -lc, and that would cause any symbols used from libc to 10185 # always be unresolved, which means just about no library would 10186 # ever link correctly. If we're not using GNU ld we use -z text 10187 # though, which does catch some bad symbols but isn't as heavy-handed 10188 # as -z defs. 10189 no_undefined_flag='$wl-z,text' 10190 allow_undefined_flag='$wl-z,nodefs' 10191 archive_cmds_need_lc=no 10192 hardcode_shlibpath_var=no 10193 hardcode_libdir_flag_spec='$wl-R,$libdir' 10194 hardcode_libdir_separator=':' 10195 link_all_deplibs=yes 10196 export_dynamic_flag_spec='$wl-Bexport' 10197 runpath_var='LD_RUN_PATH' 10198 10199 if test yes = "$GCC"; then 10200 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10201 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10202 else 10203 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10204 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10205 fi 10206 ;; 10207 10208 uts4*) 10209 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10210 hardcode_libdir_flag_spec='-L$libdir' 10211 hardcode_shlibpath_var=no 10212 ;; 10213 10214 *) 10215 ld_shlibs=no 10216 ;; 10217 esac 10218 10219 if test sni = "$host_vendor"; then 10220 case $host in 10221 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10222 export_dynamic_flag_spec='$wl-Blargedynsym' 10223 ;; 10224 esac 10225 fi 10226 fi 10227 10228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10229$as_echo "$ld_shlibs" >&6; } 10230test no = "$ld_shlibs" && can_build_shared=no 10231 10232with_gnu_ld=$with_gnu_ld 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248# 10249# Do we need to explicitly link libc? 10250# 10251case "x$archive_cmds_need_lc" in 10252x|xyes) 10253 # Assume -lc should be added 10254 archive_cmds_need_lc=yes 10255 10256 if test yes,yes = "$GCC,$enable_shared"; then 10257 case $archive_cmds in 10258 *'~'*) 10259 # FIXME: we may have to deal with multi-command sequences. 10260 ;; 10261 '$CC '*) 10262 # Test whether the compiler implicitly links with -lc since on some 10263 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10264 # to ld, don't add -lc before -lgcc. 10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10266$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10267if ${lt_cv_archive_cmds_need_lc+:} false; then : 10268 $as_echo_n "(cached) " >&6 10269else 10270 $RM conftest* 10271 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10272 10273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10274 (eval $ac_compile) 2>&5 10275 ac_status=$? 10276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10277 test $ac_status = 0; } 2>conftest.err; then 10278 soname=conftest 10279 lib=conftest 10280 libobjs=conftest.$ac_objext 10281 deplibs= 10282 wl=$lt_prog_compiler_wl 10283 pic_flag=$lt_prog_compiler_pic 10284 compiler_flags=-v 10285 linker_flags=-v 10286 verstring= 10287 output_objdir=. 10288 libname=conftest 10289 lt_save_allow_undefined_flag=$allow_undefined_flag 10290 allow_undefined_flag= 10291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10292 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10293 ac_status=$? 10294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10295 test $ac_status = 0; } 10296 then 10297 lt_cv_archive_cmds_need_lc=no 10298 else 10299 lt_cv_archive_cmds_need_lc=yes 10300 fi 10301 allow_undefined_flag=$lt_save_allow_undefined_flag 10302 else 10303 cat conftest.err 1>&5 10304 fi 10305 $RM conftest* 10306 10307fi 10308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10309$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10310 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10311 ;; 10312 esac 10313 fi 10314 ;; 10315esac 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10469$as_echo_n "checking dynamic linker characteristics... " >&6; } 10470 10471if test yes = "$GCC"; then 10472 case $host_os in 10473 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10474 *) lt_awk_arg='/^libraries:/' ;; 10475 esac 10476 case $host_os in 10477 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10478 *) lt_sed_strip_eq='s|=/|/|g' ;; 10479 esac 10480 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10481 case $lt_search_path_spec in 10482 *\;*) 10483 # if the path contains ";" then we assume it to be the separator 10484 # otherwise default to the standard path separator (i.e. ":") - it is 10485 # assumed that no part of a normal pathname contains ";" but that should 10486 # okay in the real world where ";" in dirpaths is itself problematic. 10487 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10488 ;; 10489 *) 10490 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10491 ;; 10492 esac 10493 # Ok, now we have the path, separated by spaces, we can step through it 10494 # and add multilib dir if necessary... 10495 lt_tmp_lt_search_path_spec= 10496 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10497 # ...but if some path component already ends with the multilib dir we assume 10498 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10499 case "$lt_multi_os_dir; $lt_search_path_spec " in 10500 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10501 lt_multi_os_dir= 10502 ;; 10503 esac 10504 for lt_sys_path in $lt_search_path_spec; do 10505 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10506 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10507 elif test -n "$lt_multi_os_dir"; then 10508 test -d "$lt_sys_path" && \ 10509 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10510 fi 10511 done 10512 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10513BEGIN {RS = " "; FS = "/|\n";} { 10514 lt_foo = ""; 10515 lt_count = 0; 10516 for (lt_i = NF; lt_i > 0; lt_i--) { 10517 if ($lt_i != "" && $lt_i != ".") { 10518 if ($lt_i == "..") { 10519 lt_count++; 10520 } else { 10521 if (lt_count == 0) { 10522 lt_foo = "/" $lt_i lt_foo; 10523 } else { 10524 lt_count--; 10525 } 10526 } 10527 } 10528 } 10529 if (lt_foo != "") { lt_freq[lt_foo]++; } 10530 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10531}'` 10532 # AWK program above erroneously prepends '/' to C:/dos/paths 10533 # for these hosts. 10534 case $host_os in 10535 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10536 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10537 esac 10538 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10539else 10540 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10541fi 10542library_names_spec= 10543libname_spec='lib$name' 10544soname_spec= 10545shrext_cmds=.so 10546postinstall_cmds= 10547postuninstall_cmds= 10548finish_cmds= 10549finish_eval= 10550shlibpath_var= 10551shlibpath_overrides_runpath=unknown 10552version_type=none 10553dynamic_linker="$host_os ld.so" 10554sys_lib_dlsearch_path_spec="/lib /usr/lib" 10555need_lib_prefix=unknown 10556hardcode_into_libs=no 10557 10558# when you set need_version to no, make sure it does not cause -set_version 10559# flags to be left without arguments 10560need_version=unknown 10561 10562 10563 10564case $host_os in 10565aix3*) 10566 version_type=linux # correct to gnu/linux during the next big refactor 10567 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10568 shlibpath_var=LIBPATH 10569 10570 # AIX 3 has no versioning support, so we append a major version to the name. 10571 soname_spec='$libname$release$shared_ext$major' 10572 ;; 10573 10574aix[4-9]*) 10575 version_type=linux # correct to gnu/linux during the next big refactor 10576 need_lib_prefix=no 10577 need_version=no 10578 hardcode_into_libs=yes 10579 if test ia64 = "$host_cpu"; then 10580 # AIX 5 supports IA64 10581 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10582 shlibpath_var=LD_LIBRARY_PATH 10583 else 10584 # With GCC up to 2.95.x, collect2 would create an import file 10585 # for dependence libraries. The import file would start with 10586 # the line '#! .'. This would cause the generated library to 10587 # depend on '.', always an invalid library. This was fixed in 10588 # development snapshots of GCC prior to 3.0. 10589 case $host_os in 10590 aix4 | aix4.[01] | aix4.[01].*) 10591 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10592 echo ' yes ' 10593 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10594 : 10595 else 10596 can_build_shared=no 10597 fi 10598 ;; 10599 esac 10600 # Using Import Files as archive members, it is possible to support 10601 # filename-based versioning of shared library archives on AIX. While 10602 # this would work for both with and without runtime linking, it will 10603 # prevent static linking of such archives. So we do filename-based 10604 # shared library versioning with .so extension only, which is used 10605 # when both runtime linking and shared linking is enabled. 10606 # Unfortunately, runtime linking may impact performance, so we do 10607 # not want this to be the default eventually. Also, we use the 10608 # versioned .so libs for executables only if there is the -brtl 10609 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10610 # To allow for filename-based versioning support, we need to create 10611 # libNAME.so.V as an archive file, containing: 10612 # *) an Import File, referring to the versioned filename of the 10613 # archive as well as the shared archive member, telling the 10614 # bitwidth (32 or 64) of that shared object, and providing the 10615 # list of exported symbols of that shared object, eventually 10616 # decorated with the 'weak' keyword 10617 # *) the shared object with the F_LOADONLY flag set, to really avoid 10618 # it being seen by the linker. 10619 # At run time we better use the real file rather than another symlink, 10620 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10621 10622 case $with_aix_soname,$aix_use_runtimelinking in 10623 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10624 # soname into executable. Probably we can add versioning support to 10625 # collect2, so additional links can be useful in future. 10626 aix,yes) # traditional libtool 10627 dynamic_linker='AIX unversionable lib.so' 10628 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10629 # instead of lib<name>.a to let people know that these are not 10630 # typical AIX shared libraries. 10631 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10632 ;; 10633 aix,no) # traditional AIX only 10634 dynamic_linker='AIX lib.a(lib.so.V)' 10635 # We preserve .a as extension for shared libraries through AIX4.2 10636 # and later when we are not doing run time linking. 10637 library_names_spec='$libname$release.a $libname.a' 10638 soname_spec='$libname$release$shared_ext$major' 10639 ;; 10640 svr4,*) # full svr4 only 10641 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10642 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10643 # We do not specify a path in Import Files, so LIBPATH fires. 10644 shlibpath_overrides_runpath=yes 10645 ;; 10646 *,yes) # both, prefer svr4 10647 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10648 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10649 # unpreferred sharedlib libNAME.a needs extra handling 10650 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 10651 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 10652 # We do not specify a path in Import Files, so LIBPATH fires. 10653 shlibpath_overrides_runpath=yes 10654 ;; 10655 *,no) # both, prefer aix 10656 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10657 library_names_spec='$libname$release.a $libname.a' 10658 soname_spec='$libname$release$shared_ext$major' 10659 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10660 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 10661 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 10662 ;; 10663 esac 10664 shlibpath_var=LIBPATH 10665 fi 10666 ;; 10667 10668amigaos*) 10669 case $host_cpu in 10670 powerpc) 10671 # Since July 2007 AmigaOS4 officially supports .so libraries. 10672 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10673 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10674 ;; 10675 m68k) 10676 library_names_spec='$libname.ixlibrary $libname.a' 10677 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10678 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10679 ;; 10680 esac 10681 ;; 10682 10683beos*) 10684 library_names_spec='$libname$shared_ext' 10685 dynamic_linker="$host_os ld.so" 10686 shlibpath_var=LIBRARY_PATH 10687 ;; 10688 10689bsdi[45]*) 10690 version_type=linux # correct to gnu/linux during the next big refactor 10691 need_version=no 10692 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10693 soname_spec='$libname$release$shared_ext$major' 10694 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10695 shlibpath_var=LD_LIBRARY_PATH 10696 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10697 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10698 # the default ld.so.conf also contains /usr/contrib/lib and 10699 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10700 # libtool to hard-code these into programs 10701 ;; 10702 10703cygwin* | mingw* | pw32* | cegcc*) 10704 version_type=windows 10705 shrext_cmds=.dll 10706 need_version=no 10707 need_lib_prefix=no 10708 10709 case $GCC,$cc_basename in 10710 yes,*) 10711 # gcc 10712 library_names_spec='$libname.dll.a' 10713 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10714 postinstall_cmds='base_file=`basename \$file`~ 10715 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10716 dldir=$destdir/`dirname \$dlpath`~ 10717 test -d \$dldir || mkdir -p \$dldir~ 10718 $install_prog $dir/$dlname \$dldir/$dlname~ 10719 chmod a+x \$dldir/$dlname~ 10720 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10721 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10722 fi' 10723 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10724 dlpath=$dir/\$dldll~ 10725 $RM \$dlpath' 10726 shlibpath_overrides_runpath=yes 10727 10728 case $host_os in 10729 cygwin*) 10730 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10731 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10732 10733 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10734 ;; 10735 mingw* | cegcc*) 10736 # MinGW DLLs use traditional 'lib' prefix 10737 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10738 ;; 10739 pw32*) 10740 # pw32 DLLs use 'pw' prefix rather than 'lib' 10741 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10742 ;; 10743 esac 10744 dynamic_linker='Win32 ld.exe' 10745 ;; 10746 10747 *,cl*) 10748 # Native MSVC 10749 libname_spec='$name' 10750 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10751 library_names_spec='$libname.dll.lib' 10752 10753 case $build_os in 10754 mingw*) 10755 sys_lib_search_path_spec= 10756 lt_save_ifs=$IFS 10757 IFS=';' 10758 for lt_path in $LIB 10759 do 10760 IFS=$lt_save_ifs 10761 # Let DOS variable expansion print the short 8.3 style file name. 10762 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10763 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10764 done 10765 IFS=$lt_save_ifs 10766 # Convert to MSYS style. 10767 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10768 ;; 10769 cygwin*) 10770 # Convert to unix form, then to dos form, then back to unix form 10771 # but this time dos style (no spaces!) so that the unix form looks 10772 # like /cygdrive/c/PROGRA~1:/cygdr... 10773 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10774 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10775 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10776 ;; 10777 *) 10778 sys_lib_search_path_spec=$LIB 10779 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10780 # It is most probably a Windows format PATH. 10781 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10782 else 10783 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10784 fi 10785 # FIXME: find the short name or the path components, as spaces are 10786 # common. (e.g. "Program Files" -> "PROGRA~1") 10787 ;; 10788 esac 10789 10790 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10791 postinstall_cmds='base_file=`basename \$file`~ 10792 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10793 dldir=$destdir/`dirname \$dlpath`~ 10794 test -d \$dldir || mkdir -p \$dldir~ 10795 $install_prog $dir/$dlname \$dldir/$dlname' 10796 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10797 dlpath=$dir/\$dldll~ 10798 $RM \$dlpath' 10799 shlibpath_overrides_runpath=yes 10800 dynamic_linker='Win32 link.exe' 10801 ;; 10802 10803 *) 10804 # Assume MSVC wrapper 10805 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10806 dynamic_linker='Win32 ld.exe' 10807 ;; 10808 esac 10809 # FIXME: first we should search . and the directory the executable is in 10810 shlibpath_var=PATH 10811 ;; 10812 10813darwin* | rhapsody*) 10814 dynamic_linker="$host_os dyld" 10815 version_type=darwin 10816 need_lib_prefix=no 10817 need_version=no 10818 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10819 soname_spec='$libname$release$major$shared_ext' 10820 shlibpath_overrides_runpath=yes 10821 shlibpath_var=DYLD_LIBRARY_PATH 10822 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10823 10824 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10825 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10826 ;; 10827 10828dgux*) 10829 version_type=linux # correct to gnu/linux during the next big refactor 10830 need_lib_prefix=no 10831 need_version=no 10832 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10833 soname_spec='$libname$release$shared_ext$major' 10834 shlibpath_var=LD_LIBRARY_PATH 10835 ;; 10836 10837freebsd* | dragonfly*) 10838 # DragonFly does not have aout. When/if they implement a new 10839 # versioning mechanism, adjust this. 10840 if test -x /usr/bin/objformat; then 10841 objformat=`/usr/bin/objformat` 10842 else 10843 case $host_os in 10844 freebsd[23].*) objformat=aout ;; 10845 *) objformat=elf ;; 10846 esac 10847 fi 10848 version_type=freebsd-$objformat 10849 case $version_type in 10850 freebsd-elf*) 10851 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10852 soname_spec='$libname$release$shared_ext$major' 10853 need_version=no 10854 need_lib_prefix=no 10855 ;; 10856 freebsd-*) 10857 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10858 need_version=yes 10859 ;; 10860 esac 10861 shlibpath_var=LD_LIBRARY_PATH 10862 case $host_os in 10863 freebsd2.*) 10864 shlibpath_overrides_runpath=yes 10865 ;; 10866 freebsd3.[01]* | freebsdelf3.[01]*) 10867 shlibpath_overrides_runpath=yes 10868 hardcode_into_libs=yes 10869 ;; 10870 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10871 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10872 shlibpath_overrides_runpath=no 10873 hardcode_into_libs=yes 10874 ;; 10875 *) # from 4.6 on, and DragonFly 10876 shlibpath_overrides_runpath=yes 10877 hardcode_into_libs=yes 10878 ;; 10879 esac 10880 ;; 10881 10882haiku*) 10883 version_type=linux # correct to gnu/linux during the next big refactor 10884 need_lib_prefix=no 10885 need_version=no 10886 dynamic_linker="$host_os runtime_loader" 10887 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10888 soname_spec='$libname$release$shared_ext$major' 10889 shlibpath_var=LIBRARY_PATH 10890 shlibpath_overrides_runpath=no 10891 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10892 hardcode_into_libs=yes 10893 ;; 10894 10895hpux9* | hpux10* | hpux11*) 10896 # Give a soname corresponding to the major version so that dld.sl refuses to 10897 # link against other versions. 10898 version_type=sunos 10899 need_lib_prefix=no 10900 need_version=no 10901 case $host_cpu in 10902 ia64*) 10903 shrext_cmds='.so' 10904 hardcode_into_libs=yes 10905 dynamic_linker="$host_os dld.so" 10906 shlibpath_var=LD_LIBRARY_PATH 10907 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10908 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10909 soname_spec='$libname$release$shared_ext$major' 10910 if test 32 = "$HPUX_IA64_MODE"; then 10911 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10912 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 10913 else 10914 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10915 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 10916 fi 10917 ;; 10918 hppa*64*) 10919 shrext_cmds='.sl' 10920 hardcode_into_libs=yes 10921 dynamic_linker="$host_os dld.sl" 10922 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10923 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10924 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10925 soname_spec='$libname$release$shared_ext$major' 10926 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10927 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10928 ;; 10929 *) 10930 shrext_cmds='.sl' 10931 dynamic_linker="$host_os dld.sl" 10932 shlibpath_var=SHLIB_PATH 10933 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10934 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10935 soname_spec='$libname$release$shared_ext$major' 10936 ;; 10937 esac 10938 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10939 postinstall_cmds='chmod 555 $lib' 10940 # or fails outright, so override atomically: 10941 install_override_mode=555 10942 ;; 10943 10944interix[3-9]*) 10945 version_type=linux # correct to gnu/linux during the next big refactor 10946 need_lib_prefix=no 10947 need_version=no 10948 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10949 soname_spec='$libname$release$shared_ext$major' 10950 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10951 shlibpath_var=LD_LIBRARY_PATH 10952 shlibpath_overrides_runpath=no 10953 hardcode_into_libs=yes 10954 ;; 10955 10956irix5* | irix6* | nonstopux*) 10957 case $host_os in 10958 nonstopux*) version_type=nonstopux ;; 10959 *) 10960 if test yes = "$lt_cv_prog_gnu_ld"; then 10961 version_type=linux # correct to gnu/linux during the next big refactor 10962 else 10963 version_type=irix 10964 fi ;; 10965 esac 10966 need_lib_prefix=no 10967 need_version=no 10968 soname_spec='$libname$release$shared_ext$major' 10969 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 10970 case $host_os in 10971 irix5* | nonstopux*) 10972 libsuff= shlibsuff= 10973 ;; 10974 *) 10975 case $LD in # libtool.m4 will add one of these switches to LD 10976 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10977 libsuff= shlibsuff= libmagic=32-bit;; 10978 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10979 libsuff=32 shlibsuff=N32 libmagic=N32;; 10980 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10981 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10982 *) libsuff= shlibsuff= libmagic=never-match;; 10983 esac 10984 ;; 10985 esac 10986 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10987 shlibpath_overrides_runpath=no 10988 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 10989 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 10990 hardcode_into_libs=yes 10991 ;; 10992 10993# No shared lib support for Linux oldld, aout, or coff. 10994linux*oldld* | linux*aout* | linux*coff*) 10995 dynamic_linker=no 10996 ;; 10997 10998linux*android*) 10999 version_type=none # Android doesn't support versioned libraries. 11000 need_lib_prefix=no 11001 need_version=no 11002 library_names_spec='$libname$release$shared_ext' 11003 soname_spec='$libname$release$shared_ext' 11004 finish_cmds= 11005 shlibpath_var=LD_LIBRARY_PATH 11006 shlibpath_overrides_runpath=yes 11007 11008 # This implies no fast_install, which is unacceptable. 11009 # Some rework will be needed to allow for fast_install 11010 # before this can be enabled. 11011 hardcode_into_libs=yes 11012 11013 dynamic_linker='Android linker' 11014 # Don't embed -rpath directories since the linker doesn't support them. 11015 hardcode_libdir_flag_spec='-L$libdir' 11016 ;; 11017 11018# This must be glibc/ELF. 11019linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11020 version_type=linux # correct to gnu/linux during the next big refactor 11021 need_lib_prefix=no 11022 need_version=no 11023 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11024 soname_spec='$libname$release$shared_ext$major' 11025 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11026 shlibpath_var=LD_LIBRARY_PATH 11027 shlibpath_overrides_runpath=no 11028 11029 # Some binutils ld are patched to set DT_RUNPATH 11030 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11031 $as_echo_n "(cached) " >&6 11032else 11033 lt_cv_shlibpath_overrides_runpath=no 11034 save_LDFLAGS=$LDFLAGS 11035 save_libdir=$libdir 11036 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11037 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11039/* end confdefs.h. */ 11040 11041int 11042main () 11043{ 11044 11045 ; 11046 return 0; 11047} 11048_ACEOF 11049if ac_fn_c_try_link "$LINENO"; then : 11050 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11051 lt_cv_shlibpath_overrides_runpath=yes 11052fi 11053fi 11054rm -f core conftest.err conftest.$ac_objext \ 11055 conftest$ac_exeext conftest.$ac_ext 11056 LDFLAGS=$save_LDFLAGS 11057 libdir=$save_libdir 11058 11059fi 11060 11061 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11062 11063 # This implies no fast_install, which is unacceptable. 11064 # Some rework will be needed to allow for fast_install 11065 # before this can be enabled. 11066 hardcode_into_libs=yes 11067 11068 # Ideally, we could use ldconfig to report *all* directores which are 11069 # searched for libraries, however this is still not possible. Aside from not 11070 # being certain /sbin/ldconfig is available, command 11071 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11072 # even though it is searched at run-time. Try to do the best guess by 11073 # appending ld.so.conf contents (and includes) to the search path. 11074 if test -f /etc/ld.so.conf; then 11075 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' ' '` 11076 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11077 fi 11078 11079 # We used to test for /lib/ld.so.1 and disable shared libraries on 11080 # powerpc, because MkLinux only supported shared libraries with the 11081 # GNU dynamic linker. Since this was broken with cross compilers, 11082 # most powerpc-linux boxes support dynamic linking these days and 11083 # people can always --disable-shared, the test was removed, and we 11084 # assume the GNU/Linux dynamic linker is in use. 11085 dynamic_linker='GNU/Linux ld.so' 11086 ;; 11087 11088netbsdelf*-gnu) 11089 version_type=linux 11090 need_lib_prefix=no 11091 need_version=no 11092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11093 soname_spec='${libname}${release}${shared_ext}$major' 11094 shlibpath_var=LD_LIBRARY_PATH 11095 shlibpath_overrides_runpath=no 11096 hardcode_into_libs=yes 11097 dynamic_linker='NetBSD ld.elf_so' 11098 ;; 11099 11100netbsd*) 11101 version_type=sunos 11102 need_lib_prefix=no 11103 need_version=no 11104 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11105 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11107 dynamic_linker='NetBSD (a.out) ld.so' 11108 else 11109 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11110 soname_spec='$libname$release$shared_ext$major' 11111 dynamic_linker='NetBSD ld.elf_so' 11112 fi 11113 shlibpath_var=LD_LIBRARY_PATH 11114 shlibpath_overrides_runpath=yes 11115 hardcode_into_libs=yes 11116 ;; 11117 11118newsos6) 11119 version_type=linux # correct to gnu/linux during the next big refactor 11120 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11121 shlibpath_var=LD_LIBRARY_PATH 11122 shlibpath_overrides_runpath=yes 11123 ;; 11124 11125*nto* | *qnx*) 11126 version_type=qnx 11127 need_lib_prefix=no 11128 need_version=no 11129 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11130 soname_spec='$libname$release$shared_ext$major' 11131 shlibpath_var=LD_LIBRARY_PATH 11132 shlibpath_overrides_runpath=no 11133 hardcode_into_libs=yes 11134 dynamic_linker='ldqnx.so' 11135 ;; 11136 11137openbsd* | bitrig*) 11138 version_type=sunos 11139 sys_lib_dlsearch_path_spec=/usr/lib 11140 need_lib_prefix=no 11141 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11142 need_version=no 11143 else 11144 need_version=yes 11145 fi 11146 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11147 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11148 shlibpath_var=LD_LIBRARY_PATH 11149 shlibpath_overrides_runpath=yes 11150 ;; 11151 11152os2*) 11153 libname_spec='$name' 11154 version_type=windows 11155 shrext_cmds=.dll 11156 need_version=no 11157 need_lib_prefix=no 11158 # OS/2 can only load a DLL with a base name of 8 characters or less. 11159 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11160 v=$($ECHO $release$versuffix | tr -d .-); 11161 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11162 $ECHO $n$v`$shared_ext' 11163 library_names_spec='${libname}_dll.$libext' 11164 dynamic_linker='OS/2 ld.exe' 11165 shlibpath_var=BEGINLIBPATH 11166 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11167 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11168 postinstall_cmds='base_file=`basename \$file`~ 11169 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11170 dldir=$destdir/`dirname \$dlpath`~ 11171 test -d \$dldir || mkdir -p \$dldir~ 11172 $install_prog $dir/$dlname \$dldir/$dlname~ 11173 chmod a+x \$dldir/$dlname~ 11174 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11175 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11176 fi' 11177 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11178 dlpath=$dir/\$dldll~ 11179 $RM \$dlpath' 11180 ;; 11181 11182osf3* | osf4* | osf5*) 11183 version_type=osf 11184 need_lib_prefix=no 11185 need_version=no 11186 soname_spec='$libname$release$shared_ext$major' 11187 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11188 shlibpath_var=LD_LIBRARY_PATH 11189 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11190 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11191 ;; 11192 11193rdos*) 11194 dynamic_linker=no 11195 ;; 11196 11197solaris*) 11198 version_type=linux # correct to gnu/linux during the next big refactor 11199 need_lib_prefix=no 11200 need_version=no 11201 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11202 soname_spec='$libname$release$shared_ext$major' 11203 shlibpath_var=LD_LIBRARY_PATH 11204 shlibpath_overrides_runpath=yes 11205 hardcode_into_libs=yes 11206 # ldd complains unless libraries are executable 11207 postinstall_cmds='chmod +x $lib' 11208 ;; 11209 11210sunos4*) 11211 version_type=sunos 11212 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11213 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11214 shlibpath_var=LD_LIBRARY_PATH 11215 shlibpath_overrides_runpath=yes 11216 if test yes = "$with_gnu_ld"; then 11217 need_lib_prefix=no 11218 fi 11219 need_version=yes 11220 ;; 11221 11222sysv4 | sysv4.3*) 11223 version_type=linux # correct to gnu/linux during the next big refactor 11224 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11225 soname_spec='$libname$release$shared_ext$major' 11226 shlibpath_var=LD_LIBRARY_PATH 11227 case $host_vendor in 11228 sni) 11229 shlibpath_overrides_runpath=no 11230 need_lib_prefix=no 11231 runpath_var=LD_RUN_PATH 11232 ;; 11233 siemens) 11234 need_lib_prefix=no 11235 ;; 11236 motorola) 11237 need_lib_prefix=no 11238 need_version=no 11239 shlibpath_overrides_runpath=no 11240 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11241 ;; 11242 esac 11243 ;; 11244 11245sysv4*MP*) 11246 if test -d /usr/nec; then 11247 version_type=linux # correct to gnu/linux during the next big refactor 11248 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11249 soname_spec='$libname$shared_ext.$major' 11250 shlibpath_var=LD_LIBRARY_PATH 11251 fi 11252 ;; 11253 11254sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11255 version_type=sco 11256 need_lib_prefix=no 11257 need_version=no 11258 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11259 soname_spec='$libname$release$shared_ext$major' 11260 shlibpath_var=LD_LIBRARY_PATH 11261 shlibpath_overrides_runpath=yes 11262 hardcode_into_libs=yes 11263 if test yes = "$with_gnu_ld"; then 11264 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11265 else 11266 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11267 case $host_os in 11268 sco3.2v5*) 11269 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11270 ;; 11271 esac 11272 fi 11273 sys_lib_dlsearch_path_spec='/usr/lib' 11274 ;; 11275 11276tpf*) 11277 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11278 version_type=linux # correct to gnu/linux during the next big refactor 11279 need_lib_prefix=no 11280 need_version=no 11281 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11282 shlibpath_var=LD_LIBRARY_PATH 11283 shlibpath_overrides_runpath=no 11284 hardcode_into_libs=yes 11285 ;; 11286 11287uts4*) 11288 version_type=linux # correct to gnu/linux during the next big refactor 11289 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11290 soname_spec='$libname$release$shared_ext$major' 11291 shlibpath_var=LD_LIBRARY_PATH 11292 ;; 11293 11294*) 11295 dynamic_linker=no 11296 ;; 11297esac 11298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11299$as_echo "$dynamic_linker" >&6; } 11300test no = "$dynamic_linker" && can_build_shared=no 11301 11302variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11303if test yes = "$GCC"; then 11304 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11305fi 11306 11307if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11308 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11309fi 11310 11311if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11312 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11313fi 11314 11315# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11316configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11317 11318# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11319func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11320 11321# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11322configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11421$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11422hardcode_action= 11423if test -n "$hardcode_libdir_flag_spec" || 11424 test -n "$runpath_var" || 11425 test yes = "$hardcode_automatic"; then 11426 11427 # We can hardcode non-existent directories. 11428 if test no != "$hardcode_direct" && 11429 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11430 # have to relink, otherwise we might link with an installed library 11431 # when we should be linking with a yet-to-be-installed one 11432 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11433 test no != "$hardcode_minus_L"; then 11434 # Linking always hardcodes the temporary library directory. 11435 hardcode_action=relink 11436 else 11437 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11438 hardcode_action=immediate 11439 fi 11440else 11441 # We cannot hardcode anything, or else we can only hardcode existing 11442 # directories. 11443 hardcode_action=unsupported 11444fi 11445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11446$as_echo "$hardcode_action" >&6; } 11447 11448if test relink = "$hardcode_action" || 11449 test yes = "$inherit_rpath"; then 11450 # Fast installation is not supported 11451 enable_fast_install=no 11452elif test yes = "$shlibpath_overrides_runpath" || 11453 test no = "$enable_shared"; then 11454 # Fast installation is not necessary 11455 enable_fast_install=needless 11456fi 11457 11458 11459 11460 11461 11462 11463 if test yes != "$enable_dlopen"; then 11464 enable_dlopen=unknown 11465 enable_dlopen_self=unknown 11466 enable_dlopen_self_static=unknown 11467else 11468 lt_cv_dlopen=no 11469 lt_cv_dlopen_libs= 11470 11471 case $host_os in 11472 beos*) 11473 lt_cv_dlopen=load_add_on 11474 lt_cv_dlopen_libs= 11475 lt_cv_dlopen_self=yes 11476 ;; 11477 11478 mingw* | pw32* | cegcc*) 11479 lt_cv_dlopen=LoadLibrary 11480 lt_cv_dlopen_libs= 11481 ;; 11482 11483 cygwin*) 11484 lt_cv_dlopen=dlopen 11485 lt_cv_dlopen_libs= 11486 ;; 11487 11488 darwin*) 11489 # if libdl is installed we need to link against it 11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11491$as_echo_n "checking for dlopen in -ldl... " >&6; } 11492if ${ac_cv_lib_dl_dlopen+:} false; then : 11493 $as_echo_n "(cached) " >&6 11494else 11495 ac_check_lib_save_LIBS=$LIBS 11496LIBS="-ldl $LIBS" 11497cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11498/* end confdefs.h. */ 11499 11500/* Override any GCC internal prototype to avoid an error. 11501 Use char because int might match the return type of a GCC 11502 builtin and then its argument prototype would still apply. */ 11503#ifdef __cplusplus 11504extern "C" 11505#endif 11506char dlopen (); 11507int 11508main () 11509{ 11510return dlopen (); 11511 ; 11512 return 0; 11513} 11514_ACEOF 11515if ac_fn_c_try_link "$LINENO"; then : 11516 ac_cv_lib_dl_dlopen=yes 11517else 11518 ac_cv_lib_dl_dlopen=no 11519fi 11520rm -f core conftest.err conftest.$ac_objext \ 11521 conftest$ac_exeext conftest.$ac_ext 11522LIBS=$ac_check_lib_save_LIBS 11523fi 11524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11525$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11526if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11527 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11528else 11529 11530 lt_cv_dlopen=dyld 11531 lt_cv_dlopen_libs= 11532 lt_cv_dlopen_self=yes 11533 11534fi 11535 11536 ;; 11537 11538 tpf*) 11539 # Don't try to run any link tests for TPF. We know it's impossible 11540 # because TPF is a cross-compiler, and we know how we open DSOs. 11541 lt_cv_dlopen=dlopen 11542 lt_cv_dlopen_libs= 11543 lt_cv_dlopen_self=no 11544 ;; 11545 11546 *) 11547 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11548if test "x$ac_cv_func_shl_load" = xyes; then : 11549 lt_cv_dlopen=shl_load 11550else 11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11552$as_echo_n "checking for shl_load in -ldld... " >&6; } 11553if ${ac_cv_lib_dld_shl_load+:} false; then : 11554 $as_echo_n "(cached) " >&6 11555else 11556 ac_check_lib_save_LIBS=$LIBS 11557LIBS="-ldld $LIBS" 11558cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11559/* end confdefs.h. */ 11560 11561/* Override any GCC internal prototype to avoid an error. 11562 Use char because int might match the return type of a GCC 11563 builtin and then its argument prototype would still apply. */ 11564#ifdef __cplusplus 11565extern "C" 11566#endif 11567char shl_load (); 11568int 11569main () 11570{ 11571return shl_load (); 11572 ; 11573 return 0; 11574} 11575_ACEOF 11576if ac_fn_c_try_link "$LINENO"; then : 11577 ac_cv_lib_dld_shl_load=yes 11578else 11579 ac_cv_lib_dld_shl_load=no 11580fi 11581rm -f core conftest.err conftest.$ac_objext \ 11582 conftest$ac_exeext conftest.$ac_ext 11583LIBS=$ac_check_lib_save_LIBS 11584fi 11585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11586$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11587if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11588 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11589else 11590 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11591if test "x$ac_cv_func_dlopen" = xyes; then : 11592 lt_cv_dlopen=dlopen 11593else 11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11595$as_echo_n "checking for dlopen in -ldl... " >&6; } 11596if ${ac_cv_lib_dl_dlopen+:} false; then : 11597 $as_echo_n "(cached) " >&6 11598else 11599 ac_check_lib_save_LIBS=$LIBS 11600LIBS="-ldl $LIBS" 11601cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11602/* end confdefs.h. */ 11603 11604/* Override any GCC internal prototype to avoid an error. 11605 Use char because int might match the return type of a GCC 11606 builtin and then its argument prototype would still apply. */ 11607#ifdef __cplusplus 11608extern "C" 11609#endif 11610char dlopen (); 11611int 11612main () 11613{ 11614return dlopen (); 11615 ; 11616 return 0; 11617} 11618_ACEOF 11619if ac_fn_c_try_link "$LINENO"; then : 11620 ac_cv_lib_dl_dlopen=yes 11621else 11622 ac_cv_lib_dl_dlopen=no 11623fi 11624rm -f core conftest.err conftest.$ac_objext \ 11625 conftest$ac_exeext conftest.$ac_ext 11626LIBS=$ac_check_lib_save_LIBS 11627fi 11628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11629$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11630if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11631 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11632else 11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11634$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11635if ${ac_cv_lib_svld_dlopen+:} false; then : 11636 $as_echo_n "(cached) " >&6 11637else 11638 ac_check_lib_save_LIBS=$LIBS 11639LIBS="-lsvld $LIBS" 11640cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11641/* end confdefs.h. */ 11642 11643/* Override any GCC internal prototype to avoid an error. 11644 Use char because int might match the return type of a GCC 11645 builtin and then its argument prototype would still apply. */ 11646#ifdef __cplusplus 11647extern "C" 11648#endif 11649char dlopen (); 11650int 11651main () 11652{ 11653return dlopen (); 11654 ; 11655 return 0; 11656} 11657_ACEOF 11658if ac_fn_c_try_link "$LINENO"; then : 11659 ac_cv_lib_svld_dlopen=yes 11660else 11661 ac_cv_lib_svld_dlopen=no 11662fi 11663rm -f core conftest.err conftest.$ac_objext \ 11664 conftest$ac_exeext conftest.$ac_ext 11665LIBS=$ac_check_lib_save_LIBS 11666fi 11667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11668$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11669if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11670 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11671else 11672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11673$as_echo_n "checking for dld_link in -ldld... " >&6; } 11674if ${ac_cv_lib_dld_dld_link+:} false; then : 11675 $as_echo_n "(cached) " >&6 11676else 11677 ac_check_lib_save_LIBS=$LIBS 11678LIBS="-ldld $LIBS" 11679cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11680/* end confdefs.h. */ 11681 11682/* Override any GCC internal prototype to avoid an error. 11683 Use char because int might match the return type of a GCC 11684 builtin and then its argument prototype would still apply. */ 11685#ifdef __cplusplus 11686extern "C" 11687#endif 11688char dld_link (); 11689int 11690main () 11691{ 11692return dld_link (); 11693 ; 11694 return 0; 11695} 11696_ACEOF 11697if ac_fn_c_try_link "$LINENO"; then : 11698 ac_cv_lib_dld_dld_link=yes 11699else 11700 ac_cv_lib_dld_dld_link=no 11701fi 11702rm -f core conftest.err conftest.$ac_objext \ 11703 conftest$ac_exeext conftest.$ac_ext 11704LIBS=$ac_check_lib_save_LIBS 11705fi 11706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11707$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11708if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11709 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11710fi 11711 11712 11713fi 11714 11715 11716fi 11717 11718 11719fi 11720 11721 11722fi 11723 11724 11725fi 11726 11727 ;; 11728 esac 11729 11730 if test no = "$lt_cv_dlopen"; then 11731 enable_dlopen=no 11732 else 11733 enable_dlopen=yes 11734 fi 11735 11736 case $lt_cv_dlopen in 11737 dlopen) 11738 save_CPPFLAGS=$CPPFLAGS 11739 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11740 11741 save_LDFLAGS=$LDFLAGS 11742 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11743 11744 save_LIBS=$LIBS 11745 LIBS="$lt_cv_dlopen_libs $LIBS" 11746 11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11748$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11749if ${lt_cv_dlopen_self+:} false; then : 11750 $as_echo_n "(cached) " >&6 11751else 11752 if test yes = "$cross_compiling"; then : 11753 lt_cv_dlopen_self=cross 11754else 11755 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11756 lt_status=$lt_dlunknown 11757 cat > conftest.$ac_ext <<_LT_EOF 11758#line $LINENO "configure" 11759#include "confdefs.h" 11760 11761#if HAVE_DLFCN_H 11762#include <dlfcn.h> 11763#endif 11764 11765#include <stdio.h> 11766 11767#ifdef RTLD_GLOBAL 11768# define LT_DLGLOBAL RTLD_GLOBAL 11769#else 11770# ifdef DL_GLOBAL 11771# define LT_DLGLOBAL DL_GLOBAL 11772# else 11773# define LT_DLGLOBAL 0 11774# endif 11775#endif 11776 11777/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11778 find out it does not work in some platform. */ 11779#ifndef LT_DLLAZY_OR_NOW 11780# ifdef RTLD_LAZY 11781# define LT_DLLAZY_OR_NOW RTLD_LAZY 11782# else 11783# ifdef DL_LAZY 11784# define LT_DLLAZY_OR_NOW DL_LAZY 11785# else 11786# ifdef RTLD_NOW 11787# define LT_DLLAZY_OR_NOW RTLD_NOW 11788# else 11789# ifdef DL_NOW 11790# define LT_DLLAZY_OR_NOW DL_NOW 11791# else 11792# define LT_DLLAZY_OR_NOW 0 11793# endif 11794# endif 11795# endif 11796# endif 11797#endif 11798 11799/* When -fvisibility=hidden is used, assume the code has been annotated 11800 correspondingly for the symbols needed. */ 11801#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11802int fnord () __attribute__((visibility("default"))); 11803#endif 11804 11805int fnord () { return 42; } 11806int main () 11807{ 11808 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11809 int status = $lt_dlunknown; 11810 11811 if (self) 11812 { 11813 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11814 else 11815 { 11816 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11817 else puts (dlerror ()); 11818 } 11819 /* dlclose (self); */ 11820 } 11821 else 11822 puts (dlerror ()); 11823 11824 return status; 11825} 11826_LT_EOF 11827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11828 (eval $ac_link) 2>&5 11829 ac_status=$? 11830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11831 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11832 (./conftest; exit; ) >&5 2>/dev/null 11833 lt_status=$? 11834 case x$lt_status in 11835 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11836 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11837 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11838 esac 11839 else : 11840 # compilation failed 11841 lt_cv_dlopen_self=no 11842 fi 11843fi 11844rm -fr conftest* 11845 11846 11847fi 11848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11849$as_echo "$lt_cv_dlopen_self" >&6; } 11850 11851 if test yes = "$lt_cv_dlopen_self"; then 11852 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11854$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11855if ${lt_cv_dlopen_self_static+:} false; then : 11856 $as_echo_n "(cached) " >&6 11857else 11858 if test yes = "$cross_compiling"; then : 11859 lt_cv_dlopen_self_static=cross 11860else 11861 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11862 lt_status=$lt_dlunknown 11863 cat > conftest.$ac_ext <<_LT_EOF 11864#line $LINENO "configure" 11865#include "confdefs.h" 11866 11867#if HAVE_DLFCN_H 11868#include <dlfcn.h> 11869#endif 11870 11871#include <stdio.h> 11872 11873#ifdef RTLD_GLOBAL 11874# define LT_DLGLOBAL RTLD_GLOBAL 11875#else 11876# ifdef DL_GLOBAL 11877# define LT_DLGLOBAL DL_GLOBAL 11878# else 11879# define LT_DLGLOBAL 0 11880# endif 11881#endif 11882 11883/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11884 find out it does not work in some platform. */ 11885#ifndef LT_DLLAZY_OR_NOW 11886# ifdef RTLD_LAZY 11887# define LT_DLLAZY_OR_NOW RTLD_LAZY 11888# else 11889# ifdef DL_LAZY 11890# define LT_DLLAZY_OR_NOW DL_LAZY 11891# else 11892# ifdef RTLD_NOW 11893# define LT_DLLAZY_OR_NOW RTLD_NOW 11894# else 11895# ifdef DL_NOW 11896# define LT_DLLAZY_OR_NOW DL_NOW 11897# else 11898# define LT_DLLAZY_OR_NOW 0 11899# endif 11900# endif 11901# endif 11902# endif 11903#endif 11904 11905/* When -fvisibility=hidden is used, assume the code has been annotated 11906 correspondingly for the symbols needed. */ 11907#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11908int fnord () __attribute__((visibility("default"))); 11909#endif 11910 11911int fnord () { return 42; } 11912int main () 11913{ 11914 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11915 int status = $lt_dlunknown; 11916 11917 if (self) 11918 { 11919 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11920 else 11921 { 11922 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11923 else puts (dlerror ()); 11924 } 11925 /* dlclose (self); */ 11926 } 11927 else 11928 puts (dlerror ()); 11929 11930 return status; 11931} 11932_LT_EOF 11933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11934 (eval $ac_link) 2>&5 11935 ac_status=$? 11936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11937 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11938 (./conftest; exit; ) >&5 2>/dev/null 11939 lt_status=$? 11940 case x$lt_status in 11941 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11942 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11943 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11944 esac 11945 else : 11946 # compilation failed 11947 lt_cv_dlopen_self_static=no 11948 fi 11949fi 11950rm -fr conftest* 11951 11952 11953fi 11954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11955$as_echo "$lt_cv_dlopen_self_static" >&6; } 11956 fi 11957 11958 CPPFLAGS=$save_CPPFLAGS 11959 LDFLAGS=$save_LDFLAGS 11960 LIBS=$save_LIBS 11961 ;; 11962 esac 11963 11964 case $lt_cv_dlopen_self in 11965 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11966 *) enable_dlopen_self=unknown ;; 11967 esac 11968 11969 case $lt_cv_dlopen_self_static in 11970 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11971 *) enable_dlopen_self_static=unknown ;; 11972 esac 11973fi 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991striplib= 11992old_striplib= 11993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11994$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11995if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11996 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11997 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11999$as_echo "yes" >&6; } 12000else 12001# FIXME - insert some real tests, host_os isn't really good enough 12002 case $host_os in 12003 darwin*) 12004 if test -n "$STRIP"; then 12005 striplib="$STRIP -x" 12006 old_striplib="$STRIP -S" 12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12008$as_echo "yes" >&6; } 12009 else 12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12011$as_echo "no" >&6; } 12012 fi 12013 ;; 12014 *) 12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12016$as_echo "no" >&6; } 12017 ;; 12018 esac 12019fi 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 # Report what library types will actually be built 12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12034$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12036$as_echo "$can_build_shared" >&6; } 12037 12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12039$as_echo_n "checking whether to build shared libraries... " >&6; } 12040 test no = "$can_build_shared" && enable_shared=no 12041 12042 # On AIX, shared libraries and static libraries use the same namespace, and 12043 # are all built from PIC. 12044 case $host_os in 12045 aix3*) 12046 test yes = "$enable_shared" && enable_static=no 12047 if test -n "$RANLIB"; then 12048 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12049 postinstall_cmds='$RANLIB $lib' 12050 fi 12051 ;; 12052 12053 aix[4-9]*) 12054 if test ia64 != "$host_cpu"; then 12055 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12056 yes,aix,yes) ;; # shared object as lib.so file only 12057 yes,svr4,*) ;; # shared object as lib.so archive member only 12058 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12059 esac 12060 fi 12061 ;; 12062 esac 12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12064$as_echo "$enable_shared" >&6; } 12065 12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12067$as_echo_n "checking whether to build static libraries... " >&6; } 12068 # Make sure either enable_shared or enable_static is yes. 12069 test yes = "$enable_shared" || enable_static=yes 12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12071$as_echo "$enable_static" >&6; } 12072 12073 12074 12075 12076fi 12077ac_ext=c 12078ac_cpp='$CPP $CPPFLAGS' 12079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12081ac_compiler_gnu=$ac_cv_c_compiler_gnu 12082 12083CC=$lt_save_CC 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 ac_config_commands="$ac_config_commands libtool" 12100 12101 12102 12103 12104# Only expand once: 12105 12106 12107 12108ac_config_headers="$ac_config_headers config.h" 12109 12110 12111 12112 12113DVDREAD_LT_CURRENT=8 12114DVDREAD_LT_AGE=0 12115DVDREAD_LT_REVISION=0 12116 12117DVDREAD_LTVERSION=$DVDREAD_LT_CURRENT:$DVDREAD_LT_REVISION:$DVDREAD_LT_AGE 12118 12119 12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 12121$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 12122if ${ac_cv_prog_cc_c99+:} false; then : 12123 $as_echo_n "(cached) " >&6 12124else 12125 ac_cv_prog_cc_c99=no 12126ac_save_CC=$CC 12127cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12128/* end confdefs.h. */ 12129#include <stdarg.h> 12130#include <stdbool.h> 12131#include <stdlib.h> 12132#include <wchar.h> 12133#include <stdio.h> 12134 12135// Check varargs macros. These examples are taken from C99 6.10.3.5. 12136#define debug(...) fprintf (stderr, __VA_ARGS__) 12137#define showlist(...) puts (#__VA_ARGS__) 12138#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 12139static void 12140test_varargs_macros (void) 12141{ 12142 int x = 1234; 12143 int y = 5678; 12144 debug ("Flag"); 12145 debug ("X = %d\n", x); 12146 showlist (The first, second, and third items.); 12147 report (x>y, "x is %d but y is %d", x, y); 12148} 12149 12150// Check long long types. 12151#define BIG64 18446744073709551615ull 12152#define BIG32 4294967295ul 12153#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 12154#if !BIG_OK 12155 your preprocessor is broken; 12156#endif 12157#if BIG_OK 12158#else 12159 your preprocessor is broken; 12160#endif 12161static long long int bignum = -9223372036854775807LL; 12162static unsigned long long int ubignum = BIG64; 12163 12164struct incomplete_array 12165{ 12166 int datasize; 12167 double data[]; 12168}; 12169 12170struct named_init { 12171 int number; 12172 const wchar_t *name; 12173 double average; 12174}; 12175 12176typedef const char *ccp; 12177 12178static inline int 12179test_restrict (ccp restrict text) 12180{ 12181 // See if C++-style comments work. 12182 // Iterate through items via the restricted pointer. 12183 // Also check for declarations in for loops. 12184 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 12185 continue; 12186 return 0; 12187} 12188 12189// Check varargs and va_copy. 12190static void 12191test_varargs (const char *format, ...) 12192{ 12193 va_list args; 12194 va_start (args, format); 12195 va_list args_copy; 12196 va_copy (args_copy, args); 12197 12198 const char *str; 12199 int number; 12200 float fnumber; 12201 12202 while (*format) 12203 { 12204 switch (*format++) 12205 { 12206 case 's': // string 12207 str = va_arg (args_copy, const char *); 12208 break; 12209 case 'd': // int 12210 number = va_arg (args_copy, int); 12211 break; 12212 case 'f': // float 12213 fnumber = va_arg (args_copy, double); 12214 break; 12215 default: 12216 break; 12217 } 12218 } 12219 va_end (args_copy); 12220 va_end (args); 12221} 12222 12223int 12224main () 12225{ 12226 12227 // Check bool. 12228 _Bool success = false; 12229 12230 // Check restrict. 12231 if (test_restrict ("String literal") == 0) 12232 success = true; 12233 char *restrict newvar = "Another string"; 12234 12235 // Check varargs. 12236 test_varargs ("s, d' f .", "string", 65, 34.234); 12237 test_varargs_macros (); 12238 12239 // Check flexible array members. 12240 struct incomplete_array *ia = 12241 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 12242 ia->datasize = 10; 12243 for (int i = 0; i < ia->datasize; ++i) 12244 ia->data[i] = i * 1.234; 12245 12246 // Check named initializers. 12247 struct named_init ni = { 12248 .number = 34, 12249 .name = L"Test wide string", 12250 .average = 543.34343, 12251 }; 12252 12253 ni.number = 58; 12254 12255 int dynamic_array[ni.number]; 12256 dynamic_array[ni.number - 1] = 543; 12257 12258 // work around unused variable warnings 12259 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 12260 || dynamic_array[ni.number - 1] != 543); 12261 12262 ; 12263 return 0; 12264} 12265_ACEOF 12266for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 12267do 12268 CC="$ac_save_CC $ac_arg" 12269 if ac_fn_c_try_compile "$LINENO"; then : 12270 ac_cv_prog_cc_c99=$ac_arg 12271fi 12272rm -f core conftest.err conftest.$ac_objext 12273 test "x$ac_cv_prog_cc_c99" != "xno" && break 12274done 12275rm -f conftest.$ac_ext 12276CC=$ac_save_CC 12277 12278fi 12279# AC_CACHE_VAL 12280case "x$ac_cv_prog_cc_c99" in 12281 x) 12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12283$as_echo "none needed" >&6; } ;; 12284 xno) 12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12286$as_echo "unsupported" >&6; } ;; 12287 *) 12288 CC="$CC $ac_cv_prog_cc_c99" 12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 12290$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 12291esac 12292if test "x$ac_cv_prog_cc_c99" != xno; then : 12293 12294fi 12295 12296 12297 12298 12299 12300 12301 for ac_header in $ac_header_list 12302do : 12303 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12304ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 12305" 12306if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12307 cat >>confdefs.h <<_ACEOF 12308#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12309_ACEOF 12310 12311fi 12312 12313done 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323# Check whether --enable-largefile was given. 12324if test "${enable_largefile+set}" = set; then : 12325 enableval=$enable_largefile; 12326fi 12327 12328if test "$enable_largefile" != no; then 12329 12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 12331$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 12332if ${ac_cv_sys_largefile_CC+:} false; then : 12333 $as_echo_n "(cached) " >&6 12334else 12335 ac_cv_sys_largefile_CC=no 12336 if test "$GCC" != yes; then 12337 ac_save_CC=$CC 12338 while :; do 12339 # IRIX 6.2 and later do not support large files by default, 12340 # so use the C compiler's -n32 option if that helps. 12341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12342/* end confdefs.h. */ 12343#include <sys/types.h> 12344 /* Check that off_t can represent 2**63 - 1 correctly. 12345 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12346 since some C++ compilers masquerading as C compilers 12347 incorrectly reject 9223372036854775807. */ 12348#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12349 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12350 && LARGE_OFF_T % 2147483647 == 1) 12351 ? 1 : -1]; 12352int 12353main () 12354{ 12355 12356 ; 12357 return 0; 12358} 12359_ACEOF 12360 if ac_fn_c_try_compile "$LINENO"; then : 12361 break 12362fi 12363rm -f core conftest.err conftest.$ac_objext 12364 CC="$CC -n32" 12365 if ac_fn_c_try_compile "$LINENO"; then : 12366 ac_cv_sys_largefile_CC=' -n32'; break 12367fi 12368rm -f core conftest.err conftest.$ac_objext 12369 break 12370 done 12371 CC=$ac_save_CC 12372 rm -f conftest.$ac_ext 12373 fi 12374fi 12375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 12376$as_echo "$ac_cv_sys_largefile_CC" >&6; } 12377 if test "$ac_cv_sys_largefile_CC" != no; then 12378 CC=$CC$ac_cv_sys_largefile_CC 12379 fi 12380 12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 12382$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 12383if ${ac_cv_sys_file_offset_bits+:} false; then : 12384 $as_echo_n "(cached) " >&6 12385else 12386 while :; do 12387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12388/* end confdefs.h. */ 12389#include <sys/types.h> 12390 /* Check that off_t can represent 2**63 - 1 correctly. 12391 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12392 since some C++ compilers masquerading as C compilers 12393 incorrectly reject 9223372036854775807. */ 12394#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12395 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12396 && LARGE_OFF_T % 2147483647 == 1) 12397 ? 1 : -1]; 12398int 12399main () 12400{ 12401 12402 ; 12403 return 0; 12404} 12405_ACEOF 12406if ac_fn_c_try_compile "$LINENO"; then : 12407 ac_cv_sys_file_offset_bits=no; break 12408fi 12409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12411/* end confdefs.h. */ 12412#define _FILE_OFFSET_BITS 64 12413#include <sys/types.h> 12414 /* Check that off_t can represent 2**63 - 1 correctly. 12415 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12416 since some C++ compilers masquerading as C compilers 12417 incorrectly reject 9223372036854775807. */ 12418#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12419 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12420 && LARGE_OFF_T % 2147483647 == 1) 12421 ? 1 : -1]; 12422int 12423main () 12424{ 12425 12426 ; 12427 return 0; 12428} 12429_ACEOF 12430if ac_fn_c_try_compile "$LINENO"; then : 12431 ac_cv_sys_file_offset_bits=64; break 12432fi 12433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12434 ac_cv_sys_file_offset_bits=unknown 12435 break 12436done 12437fi 12438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 12439$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 12440case $ac_cv_sys_file_offset_bits in #( 12441 no | unknown) ;; 12442 *) 12443cat >>confdefs.h <<_ACEOF 12444#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 12445_ACEOF 12446;; 12447esac 12448rm -rf conftest* 12449 if test $ac_cv_sys_file_offset_bits = unknown; then 12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 12451$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 12452if ${ac_cv_sys_large_files+:} false; then : 12453 $as_echo_n "(cached) " >&6 12454else 12455 while :; do 12456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12457/* end confdefs.h. */ 12458#include <sys/types.h> 12459 /* Check that off_t can represent 2**63 - 1 correctly. 12460 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12461 since some C++ compilers masquerading as C compilers 12462 incorrectly reject 9223372036854775807. */ 12463#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12464 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12465 && LARGE_OFF_T % 2147483647 == 1) 12466 ? 1 : -1]; 12467int 12468main () 12469{ 12470 12471 ; 12472 return 0; 12473} 12474_ACEOF 12475if ac_fn_c_try_compile "$LINENO"; then : 12476 ac_cv_sys_large_files=no; break 12477fi 12478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12480/* end confdefs.h. */ 12481#define _LARGE_FILES 1 12482#include <sys/types.h> 12483 /* Check that off_t can represent 2**63 - 1 correctly. 12484 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12485 since some C++ compilers masquerading as C compilers 12486 incorrectly reject 9223372036854775807. */ 12487#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12488 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12489 && LARGE_OFF_T % 2147483647 == 1) 12490 ? 1 : -1]; 12491int 12492main () 12493{ 12494 12495 ; 12496 return 0; 12497} 12498_ACEOF 12499if ac_fn_c_try_compile "$LINENO"; then : 12500 ac_cv_sys_large_files=1; break 12501fi 12502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12503 ac_cv_sys_large_files=unknown 12504 break 12505done 12506fi 12507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 12508$as_echo "$ac_cv_sys_large_files" >&6; } 12509case $ac_cv_sys_large_files in #( 12510 no | unknown) ;; 12511 *) 12512cat >>confdefs.h <<_ACEOF 12513#define _LARGE_FILES $ac_cv_sys_large_files 12514_ACEOF 12515;; 12516esac 12517rm -rf conftest* 12518 fi 12519 12520 12521fi 12522 12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 12524$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 12525if ${ac_cv_c_bigendian+:} false; then : 12526 $as_echo_n "(cached) " >&6 12527else 12528 ac_cv_c_bigendian=unknown 12529 # See if we're dealing with a universal compiler. 12530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12531/* end confdefs.h. */ 12532#ifndef __APPLE_CC__ 12533 not a universal capable compiler 12534 #endif 12535 typedef int dummy; 12536 12537_ACEOF 12538if ac_fn_c_try_compile "$LINENO"; then : 12539 12540 # Check for potential -arch flags. It is not universal unless 12541 # there are at least two -arch flags with different values. 12542 ac_arch= 12543 ac_prev= 12544 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 12545 if test -n "$ac_prev"; then 12546 case $ac_word in 12547 i?86 | x86_64 | ppc | ppc64) 12548 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 12549 ac_arch=$ac_word 12550 else 12551 ac_cv_c_bigendian=universal 12552 break 12553 fi 12554 ;; 12555 esac 12556 ac_prev= 12557 elif test "x$ac_word" = "x-arch"; then 12558 ac_prev=arch 12559 fi 12560 done 12561fi 12562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12563 if test $ac_cv_c_bigendian = unknown; then 12564 # See if sys/param.h defines the BYTE_ORDER macro. 12565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12566/* end confdefs.h. */ 12567#include <sys/types.h> 12568 #include <sys/param.h> 12569 12570int 12571main () 12572{ 12573#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 12574 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 12575 && LITTLE_ENDIAN) 12576 bogus endian macros 12577 #endif 12578 12579 ; 12580 return 0; 12581} 12582_ACEOF 12583if ac_fn_c_try_compile "$LINENO"; then : 12584 # It does; now see whether it defined to BIG_ENDIAN or not. 12585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12586/* end confdefs.h. */ 12587#include <sys/types.h> 12588 #include <sys/param.h> 12589 12590int 12591main () 12592{ 12593#if BYTE_ORDER != BIG_ENDIAN 12594 not big endian 12595 #endif 12596 12597 ; 12598 return 0; 12599} 12600_ACEOF 12601if ac_fn_c_try_compile "$LINENO"; then : 12602 ac_cv_c_bigendian=yes 12603else 12604 ac_cv_c_bigendian=no 12605fi 12606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12607fi 12608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12609 fi 12610 if test $ac_cv_c_bigendian = unknown; then 12611 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 12612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12613/* end confdefs.h. */ 12614#include <limits.h> 12615 12616int 12617main () 12618{ 12619#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 12620 bogus endian macros 12621 #endif 12622 12623 ; 12624 return 0; 12625} 12626_ACEOF 12627if ac_fn_c_try_compile "$LINENO"; then : 12628 # It does; now see whether it defined to _BIG_ENDIAN or not. 12629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12630/* end confdefs.h. */ 12631#include <limits.h> 12632 12633int 12634main () 12635{ 12636#ifndef _BIG_ENDIAN 12637 not big endian 12638 #endif 12639 12640 ; 12641 return 0; 12642} 12643_ACEOF 12644if ac_fn_c_try_compile "$LINENO"; then : 12645 ac_cv_c_bigendian=yes 12646else 12647 ac_cv_c_bigendian=no 12648fi 12649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12650fi 12651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12652 fi 12653 if test $ac_cv_c_bigendian = unknown; then 12654 # Compile a test program. 12655 if test "$cross_compiling" = yes; then : 12656 # Try to guess by grepping values from an object file. 12657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12658/* end confdefs.h. */ 12659short int ascii_mm[] = 12660 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 12661 short int ascii_ii[] = 12662 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 12663 int use_ascii (int i) { 12664 return ascii_mm[i] + ascii_ii[i]; 12665 } 12666 short int ebcdic_ii[] = 12667 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 12668 short int ebcdic_mm[] = 12669 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 12670 int use_ebcdic (int i) { 12671 return ebcdic_mm[i] + ebcdic_ii[i]; 12672 } 12673 extern int foo; 12674 12675int 12676main () 12677{ 12678return use_ascii (foo) == use_ebcdic (foo); 12679 ; 12680 return 0; 12681} 12682_ACEOF 12683if ac_fn_c_try_compile "$LINENO"; then : 12684 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 12685 ac_cv_c_bigendian=yes 12686 fi 12687 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 12688 if test "$ac_cv_c_bigendian" = unknown; then 12689 ac_cv_c_bigendian=no 12690 else 12691 # finding both strings is unlikely to happen, but who knows? 12692 ac_cv_c_bigendian=unknown 12693 fi 12694 fi 12695fi 12696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12697else 12698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12699/* end confdefs.h. */ 12700$ac_includes_default 12701int 12702main () 12703{ 12704 12705 /* Are we little or big endian? From Harbison&Steele. */ 12706 union 12707 { 12708 long int l; 12709 char c[sizeof (long int)]; 12710 } u; 12711 u.l = 1; 12712 return u.c[sizeof (long int) - 1] == 1; 12713 12714 ; 12715 return 0; 12716} 12717_ACEOF 12718if ac_fn_c_try_run "$LINENO"; then : 12719 ac_cv_c_bigendian=no 12720else 12721 ac_cv_c_bigendian=yes 12722fi 12723rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12724 conftest.$ac_objext conftest.beam conftest.$ac_ext 12725fi 12726 12727 fi 12728fi 12729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 12730$as_echo "$ac_cv_c_bigendian" >&6; } 12731 case $ac_cv_c_bigendian in #( 12732 yes) 12733 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 12734;; #( 12735 no) 12736 ;; #( 12737 universal) 12738 12739$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 12740 12741 ;; #( 12742 *) 12743 as_fn_error $? "unknown endianness 12744 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 12745 esac 12746 12747 12748case $host in #( 12749 *mingw32* | *cygwin*) : 12750 for ac_func in gettimeofday 12751do : 12752 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 12753if test "x$ac_cv_func_gettimeofday" = xyes; then : 12754 cat >>confdefs.h <<_ACEOF 12755#define HAVE_GETTIMEOFDAY 1 12756_ACEOF 12757 12758fi 12759done 12760 ;; #( 12761 *) : 12762 ;; 12763esac 12764 12765case $host in #( 12766 *-os2-*) : 12767 LDFLAGS="-no-undefined -Zbin-files $LDFLAGS" ;; #( 12768 *) : 12769 ;; 12770esac 12771 12772case $host in #( 12773 *-linux-*) : 12774 for ac_func in getmntent_r 12775do : 12776 ac_fn_c_check_func "$LINENO" "getmntent_r" "ac_cv_func_getmntent_r" 12777if test "x$ac_cv_func_getmntent_r" = xyes; then : 12778 cat >>confdefs.h <<_ACEOF 12779#define HAVE_GETMNTENT_R 1 12780_ACEOF 12781 12782fi 12783done 12784 ;; #( 12785 *) : 12786 ;; 12787esac 12788 12789 12790# Check whether --with-libdvdcss was given. 12791if test "${with_libdvdcss+set}" = set; then : 12792 withval=$with_libdvdcss; 12793fi 12794 12795 12796# Check whether --enable-dlfcn was given. 12797if test "${enable_dlfcn+set}" = set; then : 12798 enableval=$enable_dlfcn; use_builtin_dlfcn=$enableval 12799else 12800 use_builtin_dlfcn=no 12801fi 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12812 if test -n "$ac_tool_prefix"; then 12813 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12814set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12816$as_echo_n "checking for $ac_word... " >&6; } 12817if ${ac_cv_path_PKG_CONFIG+:} false; then : 12818 $as_echo_n "(cached) " >&6 12819else 12820 case $PKG_CONFIG in 12821 [\\/]* | ?:[\\/]*) 12822 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12823 ;; 12824 *) 12825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12826for as_dir in $PATH 12827do 12828 IFS=$as_save_IFS 12829 test -z "$as_dir" && as_dir=. 12830 for ac_exec_ext in '' $ac_executable_extensions; do 12831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12832 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12834 break 2 12835 fi 12836done 12837 done 12838IFS=$as_save_IFS 12839 12840 ;; 12841esac 12842fi 12843PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12844if test -n "$PKG_CONFIG"; then 12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12846$as_echo "$PKG_CONFIG" >&6; } 12847else 12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12849$as_echo "no" >&6; } 12850fi 12851 12852 12853fi 12854if test -z "$ac_cv_path_PKG_CONFIG"; then 12855 ac_pt_PKG_CONFIG=$PKG_CONFIG 12856 # Extract the first word of "pkg-config", so it can be a program name with args. 12857set dummy pkg-config; ac_word=$2 12858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12859$as_echo_n "checking for $ac_word... " >&6; } 12860if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 12861 $as_echo_n "(cached) " >&6 12862else 12863 case $ac_pt_PKG_CONFIG in 12864 [\\/]* | ?:[\\/]*) 12865 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12866 ;; 12867 *) 12868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12869for as_dir in $PATH 12870do 12871 IFS=$as_save_IFS 12872 test -z "$as_dir" && as_dir=. 12873 for ac_exec_ext in '' $ac_executable_extensions; do 12874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12875 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12877 break 2 12878 fi 12879done 12880 done 12881IFS=$as_save_IFS 12882 12883 ;; 12884esac 12885fi 12886ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12887if test -n "$ac_pt_PKG_CONFIG"; then 12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12889$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12890else 12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12892$as_echo "no" >&6; } 12893fi 12894 12895 if test "x$ac_pt_PKG_CONFIG" = x; then 12896 PKG_CONFIG="" 12897 else 12898 case $cross_compiling:$ac_tool_warned in 12899yes:) 12900{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12901$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12902ac_tool_warned=yes ;; 12903esac 12904 PKG_CONFIG=$ac_pt_PKG_CONFIG 12905 fi 12906else 12907 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12908fi 12909 12910fi 12911if test -n "$PKG_CONFIG"; then 12912 _pkg_min_version=0.9.0 12913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12914$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12915 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12917$as_echo "yes" >&6; } 12918 else 12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12920$as_echo "no" >&6; } 12921 PKG_CONFIG="" 12922 fi 12923fi 12924if test x"$with_libdvdcss" = "xyes"; then : 12925 12926 CSS_REQUIRES="libdvdcss >= 1.2" 12927 12928pkg_failed=no 12929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CSS_REQUIRES" >&5 12930$as_echo_n "checking for $CSS_REQUIRES... " >&6; } 12931 12932if test -n "$CSS_CFLAGS"; then 12933 pkg_cv_CSS_CFLAGS="$CSS_CFLAGS" 12934 elif test -n "$PKG_CONFIG"; then 12935 if test -n "$PKG_CONFIG" && \ 12936 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$CSS_REQUIRES\""; } >&5 12937 ($PKG_CONFIG --exists --print-errors "$CSS_REQUIRES") 2>&5 12938 ac_status=$? 12939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12940 test $ac_status = 0; }; then 12941 pkg_cv_CSS_CFLAGS=`$PKG_CONFIG --cflags "$CSS_REQUIRES" 2>/dev/null` 12942 test "x$?" != "x0" && pkg_failed=yes 12943else 12944 pkg_failed=yes 12945fi 12946 else 12947 pkg_failed=untried 12948fi 12949if test -n "$CSS_LIBS"; then 12950 pkg_cv_CSS_LIBS="$CSS_LIBS" 12951 elif test -n "$PKG_CONFIG"; then 12952 if test -n "$PKG_CONFIG" && \ 12953 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$CSS_REQUIRES\""; } >&5 12954 ($PKG_CONFIG --exists --print-errors "$CSS_REQUIRES") 2>&5 12955 ac_status=$? 12956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12957 test $ac_status = 0; }; then 12958 pkg_cv_CSS_LIBS=`$PKG_CONFIG --libs "$CSS_REQUIRES" 2>/dev/null` 12959 test "x$?" != "x0" && pkg_failed=yes 12960else 12961 pkg_failed=yes 12962fi 12963 else 12964 pkg_failed=untried 12965fi 12966 12967 12968 12969if test $pkg_failed = yes; then 12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12971$as_echo "no" >&6; } 12972 12973if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12974 _pkg_short_errors_supported=yes 12975else 12976 _pkg_short_errors_supported=no 12977fi 12978 if test $_pkg_short_errors_supported = yes; then 12979 CSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$CSS_REQUIRES" 2>&1` 12980 else 12981 CSS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$CSS_REQUIRES" 2>&1` 12982 fi 12983 # Put the nasty error message in config.log where it belongs 12984 echo "$CSS_PKG_ERRORS" >&5 12985 12986 as_fn_error $? "Package requirements ($CSS_REQUIRES) were not met: 12987 12988$CSS_PKG_ERRORS 12989 12990Consider adjusting the PKG_CONFIG_PATH environment variable if you 12991installed software in a non-standard prefix. 12992 12993Alternatively, you may set the environment variables CSS_CFLAGS 12994and CSS_LIBS to avoid the need to call pkg-config. 12995See the pkg-config man page for more details." "$LINENO" 5 12996elif test $pkg_failed = untried; then 12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12998$as_echo "no" >&6; } 12999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13000$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13001as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 13002is in your PATH or set the PKG_CONFIG environment variable to the full 13003path to pkg-config. 13004 13005Alternatively, you may set the environment variables CSS_CFLAGS 13006and CSS_LIBS to avoid the need to call pkg-config. 13007See the pkg-config man page for more details. 13008 13009To get pkg-config, see <http://pkg-config.freedesktop.org/>. 13010See \`config.log' for more details" "$LINENO" 5; } 13011else 13012 CSS_CFLAGS=$pkg_cv_CSS_CFLAGS 13013 CSS_LIBS=$pkg_cv_CSS_LIBS 13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13015$as_echo "yes" >&6; } 13016 13017fi 13018 for ac_header in dvdcss/dvdcss.h 13019do : 13020 ac_fn_c_check_header_mongrel "$LINENO" "dvdcss/dvdcss.h" "ac_cv_header_dvdcss_dvdcss_h" "$ac_includes_default" 13021if test "x$ac_cv_header_dvdcss_dvdcss_h" = xyes; then : 13022 cat >>confdefs.h <<_ACEOF 13023#define HAVE_DVDCSS_DVDCSS_H 1 13024_ACEOF 13025 13026else 13027 as_fn_error $? "You need libdvdcss (dvdcss.h)" "$LINENO" 5 13028fi 13029 13030done 13031 13032 13033else 13034 13035 case $host in #( 13036 *mingw32*) : 13037 ;; #( 13038 *) : 13039 use_builtin_dlfcn=no ;; 13040esac 13041 13042 if test $use_builtin_dlfcn = "yes"; then : 13043 13044 13045$as_echo "#define USING_BUILTIN_DLFCN 1" >>confdefs.h 13046 13047 13048else 13049 13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 13051$as_echo_n "checking for library containing dlopen... " >&6; } 13052if ${ac_cv_search_dlopen+:} false; then : 13053 $as_echo_n "(cached) " >&6 13054else 13055 ac_func_search_save_LIBS=$LIBS 13056cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13057/* end confdefs.h. */ 13058 13059/* Override any GCC internal prototype to avoid an error. 13060 Use char because int might match the return type of a GCC 13061 builtin and then its argument prototype would still apply. */ 13062#ifdef __cplusplus 13063extern "C" 13064#endif 13065char dlopen (); 13066int 13067main () 13068{ 13069return dlopen (); 13070 ; 13071 return 0; 13072} 13073_ACEOF 13074for ac_lib in '' dl; do 13075 if test -z "$ac_lib"; then 13076 ac_res="none required" 13077 else 13078 ac_res=-l$ac_lib 13079 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13080 fi 13081 if ac_fn_c_try_link "$LINENO"; then : 13082 ac_cv_search_dlopen=$ac_res 13083fi 13084rm -f core conftest.err conftest.$ac_objext \ 13085 conftest$ac_exeext 13086 if ${ac_cv_search_dlopen+:} false; then : 13087 break 13088fi 13089done 13090if ${ac_cv_search_dlopen+:} false; then : 13091 13092else 13093 ac_cv_search_dlopen=no 13094fi 13095rm conftest.$ac_ext 13096LIBS=$ac_func_search_save_LIBS 13097fi 13098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 13099$as_echo "$ac_cv_search_dlopen" >&6; } 13100ac_res=$ac_cv_search_dlopen 13101if test "$ac_res" != no; then : 13102 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13103 13104fi 13105 13106 13107fi 13108 13109fi 13110 13111 13112 13113 for flag in -Wall -Wsign-compare -Wextra; do 13114 13115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5 13116$as_echo_n "checking if $CC supports $flag flag... " >&6; } 13117if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13118 $as_echo_n "(cached) " >&6 13119else 13120 13121 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then : 13122 $as_echo_n "(cached) " >&6 13123else 13124 ac_save_CFLAGS="$CFLAGS" 13125 CFLAGS="$CFLAGS $flag" 13126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13127/* end confdefs.h. */ 13128int main() { return 0; } 13129_ACEOF 13130if ac_fn_c_try_link "$LINENO"; then : 13131 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'" 13132else 13133 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'" 13134fi 13135rm -f core conftest.err conftest.$ac_objext \ 13136 conftest$ac_exeext conftest.$ac_ext 13137 CFLAGS="$ac_save_CFLAGS" 13138 13139fi 13140 13141 13142 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then : 13143 13144fi 13145 13146fi 13147eval ac_res=\$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` 13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13149$as_echo "$ac_res" >&6; } 13150 13151 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then : 13152 CFLAGS="$CFLAGS $flag"; 13153fi 13154 13155 done 13156 13157 13158 13159# Check whether --enable-apidoc was given. 13160if test "${enable_apidoc+set}" = set; then : 13161 enableval=$enable_apidoc; 13162fi 13163 13164 13165# Extract the first word of "doxygen", so it can be a program name with args. 13166set dummy doxygen; ac_word=$2 13167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13168$as_echo_n "checking for $ac_word... " >&6; } 13169if ${ac_cv_path_DOXYGEN+:} false; then : 13170 $as_echo_n "(cached) " >&6 13171else 13172 case $DOXYGEN in 13173 [\\/]* | ?:[\\/]*) 13174 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 13175 ;; 13176 *) 13177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13178for as_dir in $PATH 13179do 13180 IFS=$as_save_IFS 13181 test -z "$as_dir" && as_dir=. 13182 for ac_exec_ext in '' $ac_executable_extensions; do 13183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13184 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 13185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13186 break 2 13187 fi 13188done 13189 done 13190IFS=$as_save_IFS 13191 13192 ;; 13193esac 13194fi 13195DOXYGEN=$ac_cv_path_DOXYGEN 13196if test -n "$DOXYGEN"; then 13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 13198$as_echo "$DOXYGEN" >&6; } 13199else 13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13201$as_echo "no" >&6; } 13202fi 13203 13204 13205 13206if test "x$DOXYGEN" = "x"; then : 13207 13208 if test "x$enable_apidoc" = "xyes"; then : 13209 13210 as_fn_error $? "You need Doxygen to build API documentation" "$LINENO" 5 13211 13212fi 13213 13214fi 13215 if test "x$DOXYGEN" != "x" && test "x$enable_apidoc" = "xyes"; then 13216 APIDOC_TRUE= 13217 APIDOC_FALSE='#' 13218else 13219 APIDOC_TRUE='#' 13220 APIDOC_FALSE= 13221fi 13222 13223 13224if test "x$ac_cv_c_compiler_gnu" = "xyes"; then : 13225 13226 13227$as_echo "#define UNUSED __attribute__((unused))" >>confdefs.h 13228 13229 13230else 13231 13232 13233$as_echo "#define UNUSED /**/" >>confdefs.h 13234 13235 13236fi 13237 13238ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" 13239if test "x$ac_cv_have_decl_strerror_r" = xyes; then : 13240 ac_have_decl=1 13241else 13242 ac_have_decl=0 13243fi 13244 13245cat >>confdefs.h <<_ACEOF 13246#define HAVE_DECL_STRERROR_R $ac_have_decl 13247_ACEOF 13248 13249for ac_func in strerror_r 13250do : 13251 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 13252if test "x$ac_cv_func_strerror_r" = xyes; then : 13253 cat >>confdefs.h <<_ACEOF 13254#define HAVE_STRERROR_R 1 13255_ACEOF 13256 13257fi 13258done 13259 13260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 13261$as_echo_n "checking whether strerror_r returns char *... " >&6; } 13262if ${ac_cv_func_strerror_r_char_p+:} false; then : 13263 $as_echo_n "(cached) " >&6 13264else 13265 13266 ac_cv_func_strerror_r_char_p=no 13267 if test $ac_cv_have_decl_strerror_r = yes; then 13268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13269/* end confdefs.h. */ 13270$ac_includes_default 13271int 13272main () 13273{ 13274 13275 char buf[100]; 13276 char x = *strerror_r (0, buf, sizeof buf); 13277 char *p = strerror_r (0, buf, sizeof buf); 13278 return !p || x; 13279 13280 ; 13281 return 0; 13282} 13283_ACEOF 13284if ac_fn_c_try_compile "$LINENO"; then : 13285 ac_cv_func_strerror_r_char_p=yes 13286fi 13287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13288 else 13289 # strerror_r is not declared. Choose between 13290 # systems that have relatively inaccessible declarations for the 13291 # function. BeOS and DEC UNIX 4.0 fall in this category, but the 13292 # former has a strerror_r that returns char*, while the latter 13293 # has a strerror_r that returns `int'. 13294 # This test should segfault on the DEC system. 13295 if test "$cross_compiling" = yes; then : 13296 : 13297else 13298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13299/* end confdefs.h. */ 13300$ac_includes_default 13301 extern char *strerror_r (); 13302int 13303main () 13304{ 13305char buf[100]; 13306 char x = *strerror_r (0, buf, sizeof buf); 13307 return ! isalpha (x); 13308 ; 13309 return 0; 13310} 13311_ACEOF 13312if ac_fn_c_try_run "$LINENO"; then : 13313 ac_cv_func_strerror_r_char_p=yes 13314fi 13315rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13316 conftest.$ac_objext conftest.beam conftest.$ac_ext 13317fi 13318 13319 fi 13320 13321fi 13322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 13323$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } 13324if test $ac_cv_func_strerror_r_char_p = yes; then 13325 13326$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h 13327 13328fi 13329 13330if test "x$ac_cv_func_strerror_r" = "xyes"; then : 13331 13332else 13333 for ac_func in strerror_s 13334do : 13335 ac_fn_c_check_func "$LINENO" "strerror_s" "ac_cv_func_strerror_s" 13336if test "x$ac_cv_func_strerror_s" = xyes; then : 13337 cat >>confdefs.h <<_ACEOF 13338#define HAVE_STRERROR_S 1 13339_ACEOF 13340 13341fi 13342done 13343 13344fi 13345 13346DVDREAD_VERSION_MAJOR=6 13347DVDREAD_VERSION_MINOR=1 13348DVDREAD_VERSION_MICRO=2 13349 13350 13351 13352 13353ac_config_files="$ac_config_files Makefile doc/doxygen.cfg misc/dvdread.pc src/dvdread/version.h" 13354 13355cat >confcache <<\_ACEOF 13356# This file is a shell script that caches the results of configure 13357# tests run on this system so they can be shared between configure 13358# scripts and configure runs, see configure's option --config-cache. 13359# It is not useful on other systems. If it contains results you don't 13360# want to keep, you may remove or edit it. 13361# 13362# config.status only pays attention to the cache file if you give it 13363# the --recheck option to rerun configure. 13364# 13365# `ac_cv_env_foo' variables (set or unset) will be overridden when 13366# loading this file, other *unset* `ac_cv_foo' will be assigned the 13367# following values. 13368 13369_ACEOF 13370 13371# The following way of writing the cache mishandles newlines in values, 13372# but we know of no workaround that is simple, portable, and efficient. 13373# So, we kill variables containing newlines. 13374# Ultrix sh set writes to stderr and can't be redirected directly, 13375# and sets the high bit in the cache file unless we assign to the vars. 13376( 13377 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13378 eval ac_val=\$$ac_var 13379 case $ac_val in #( 13380 *${as_nl}*) 13381 case $ac_var in #( 13382 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13383$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13384 esac 13385 case $ac_var in #( 13386 _ | IFS | as_nl) ;; #( 13387 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13388 *) { eval $ac_var=; unset $ac_var;} ;; 13389 esac ;; 13390 esac 13391 done 13392 13393 (set) 2>&1 | 13394 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13395 *${as_nl}ac_space=\ *) 13396 # `set' does not quote correctly, so add quotes: double-quote 13397 # substitution turns \\\\ into \\, and sed turns \\ into \. 13398 sed -n \ 13399 "s/'/'\\\\''/g; 13400 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13401 ;; #( 13402 *) 13403 # `set' quotes correctly as required by POSIX, so do not add quotes. 13404 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13405 ;; 13406 esac | 13407 sort 13408) | 13409 sed ' 13410 /^ac_cv_env_/b end 13411 t clear 13412 :clear 13413 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13414 t end 13415 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13416 :end' >>confcache 13417if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13418 if test -w "$cache_file"; then 13419 if test "x$cache_file" != "x/dev/null"; then 13420 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13421$as_echo "$as_me: updating cache $cache_file" >&6;} 13422 if test ! -f "$cache_file" || test -h "$cache_file"; then 13423 cat confcache >"$cache_file" 13424 else 13425 case $cache_file in #( 13426 */* | ?:*) 13427 mv -f confcache "$cache_file"$$ && 13428 mv -f "$cache_file"$$ "$cache_file" ;; #( 13429 *) 13430 mv -f confcache "$cache_file" ;; 13431 esac 13432 fi 13433 fi 13434 else 13435 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13436$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13437 fi 13438fi 13439rm -f confcache 13440 13441test "x$prefix" = xNONE && prefix=$ac_default_prefix 13442# Let make expand exec_prefix. 13443test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13444 13445DEFS=-DHAVE_CONFIG_H 13446 13447ac_libobjs= 13448ac_ltlibobjs= 13449U= 13450for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13451 # 1. Remove the extension, and $U if already installed. 13452 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13453 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13454 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13455 # will be set to the directory where LIBOBJS objects are built. 13456 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13457 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13458done 13459LIBOBJS=$ac_libobjs 13460 13461LTLIBOBJS=$ac_ltlibobjs 13462 13463 13464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 13465$as_echo_n "checking that generated files are newer than configure... " >&6; } 13466 if test -n "$am_sleep_pid"; then 13467 # Hide warnings about reused PIDs. 13468 wait $am_sleep_pid 2>/dev/null 13469 fi 13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 13471$as_echo "done" >&6; } 13472 if test -n "$EXEEXT"; then 13473 am__EXEEXT_TRUE= 13474 am__EXEEXT_FALSE='#' 13475else 13476 am__EXEEXT_TRUE='#' 13477 am__EXEEXT_FALSE= 13478fi 13479 13480if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 13481 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 13482Usually this means the macro was only invoked conditionally." "$LINENO" 5 13483fi 13484if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13485 as_fn_error $? "conditional \"AMDEP\" was never defined. 13486Usually this means the macro was only invoked conditionally." "$LINENO" 5 13487fi 13488if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13489 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13490Usually this means the macro was only invoked conditionally." "$LINENO" 5 13491fi 13492 13493if test -z "${APIDOC_TRUE}" && test -z "${APIDOC_FALSE}"; then 13494 as_fn_error $? "conditional \"APIDOC\" was never defined. 13495Usually this means the macro was only invoked conditionally." "$LINENO" 5 13496fi 13497 13498: "${CONFIG_STATUS=./config.status}" 13499ac_write_fail=0 13500ac_clean_files_save=$ac_clean_files 13501ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13502{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13503$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13504as_write_fail=0 13505cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13506#! $SHELL 13507# Generated by $as_me. 13508# Run this file to recreate the current configuration. 13509# Compiler output produced by configure, useful for debugging 13510# configure, is in config.log if it exists. 13511 13512debug=false 13513ac_cs_recheck=false 13514ac_cs_silent=false 13515 13516SHELL=\${CONFIG_SHELL-$SHELL} 13517export SHELL 13518_ASEOF 13519cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13520## -------------------- ## 13521## M4sh Initialization. ## 13522## -------------------- ## 13523 13524# Be more Bourne compatible 13525DUALCASE=1; export DUALCASE # for MKS sh 13526if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13527 emulate sh 13528 NULLCMD=: 13529 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13530 # is contrary to our usage. Disable this feature. 13531 alias -g '${1+"$@"}'='"$@"' 13532 setopt NO_GLOB_SUBST 13533else 13534 case `(set -o) 2>/dev/null` in #( 13535 *posix*) : 13536 set -o posix ;; #( 13537 *) : 13538 ;; 13539esac 13540fi 13541 13542 13543as_nl=' 13544' 13545export as_nl 13546# Printing a long string crashes Solaris 7 /usr/bin/printf. 13547as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13548as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13549as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13550# Prefer a ksh shell builtin over an external printf program on Solaris, 13551# but without wasting forks for bash or zsh. 13552if test -z "$BASH_VERSION$ZSH_VERSION" \ 13553 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13554 as_echo='print -r --' 13555 as_echo_n='print -rn --' 13556elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13557 as_echo='printf %s\n' 13558 as_echo_n='printf %s' 13559else 13560 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13561 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13562 as_echo_n='/usr/ucb/echo -n' 13563 else 13564 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13565 as_echo_n_body='eval 13566 arg=$1; 13567 case $arg in #( 13568 *"$as_nl"*) 13569 expr "X$arg" : "X\\(.*\\)$as_nl"; 13570 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13571 esac; 13572 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13573 ' 13574 export as_echo_n_body 13575 as_echo_n='sh -c $as_echo_n_body as_echo' 13576 fi 13577 export as_echo_body 13578 as_echo='sh -c $as_echo_body as_echo' 13579fi 13580 13581# The user is always right. 13582if test "${PATH_SEPARATOR+set}" != set; then 13583 PATH_SEPARATOR=: 13584 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13585 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13586 PATH_SEPARATOR=';' 13587 } 13588fi 13589 13590 13591# IFS 13592# We need space, tab and new line, in precisely that order. Quoting is 13593# there to prevent editors from complaining about space-tab. 13594# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13595# splitting by setting IFS to empty value.) 13596IFS=" "" $as_nl" 13597 13598# Find who we are. Look in the path if we contain no directory separator. 13599as_myself= 13600case $0 in #(( 13601 *[\\/]* ) as_myself=$0 ;; 13602 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13603for as_dir in $PATH 13604do 13605 IFS=$as_save_IFS 13606 test -z "$as_dir" && as_dir=. 13607 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13608 done 13609IFS=$as_save_IFS 13610 13611 ;; 13612esac 13613# We did not find ourselves, most probably we were run as `sh COMMAND' 13614# in which case we are not to be found in the path. 13615if test "x$as_myself" = x; then 13616 as_myself=$0 13617fi 13618if test ! -f "$as_myself"; then 13619 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13620 exit 1 13621fi 13622 13623# Unset variables that we do not need and which cause bugs (e.g. in 13624# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13625# suppresses any "Segmentation fault" message there. '((' could 13626# trigger a bug in pdksh 5.2.14. 13627for as_var in BASH_ENV ENV MAIL MAILPATH 13628do eval test x\${$as_var+set} = xset \ 13629 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13630done 13631PS1='$ ' 13632PS2='> ' 13633PS4='+ ' 13634 13635# NLS nuisances. 13636LC_ALL=C 13637export LC_ALL 13638LANGUAGE=C 13639export LANGUAGE 13640 13641# CDPATH. 13642(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13643 13644 13645# as_fn_error STATUS ERROR [LINENO LOG_FD] 13646# ---------------------------------------- 13647# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13648# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13649# script with STATUS, using 1 if that was 0. 13650as_fn_error () 13651{ 13652 as_status=$1; test $as_status -eq 0 && as_status=1 13653 if test "$4"; then 13654 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13655 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13656 fi 13657 $as_echo "$as_me: error: $2" >&2 13658 as_fn_exit $as_status 13659} # as_fn_error 13660 13661 13662# as_fn_set_status STATUS 13663# ----------------------- 13664# Set $? to STATUS, without forking. 13665as_fn_set_status () 13666{ 13667 return $1 13668} # as_fn_set_status 13669 13670# as_fn_exit STATUS 13671# ----------------- 13672# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13673as_fn_exit () 13674{ 13675 set +e 13676 as_fn_set_status $1 13677 exit $1 13678} # as_fn_exit 13679 13680# as_fn_unset VAR 13681# --------------- 13682# Portably unset VAR. 13683as_fn_unset () 13684{ 13685 { eval $1=; unset $1;} 13686} 13687as_unset=as_fn_unset 13688# as_fn_append VAR VALUE 13689# ---------------------- 13690# Append the text in VALUE to the end of the definition contained in VAR. Take 13691# advantage of any shell optimizations that allow amortized linear growth over 13692# repeated appends, instead of the typical quadratic growth present in naive 13693# implementations. 13694if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13695 eval 'as_fn_append () 13696 { 13697 eval $1+=\$2 13698 }' 13699else 13700 as_fn_append () 13701 { 13702 eval $1=\$$1\$2 13703 } 13704fi # as_fn_append 13705 13706# as_fn_arith ARG... 13707# ------------------ 13708# Perform arithmetic evaluation on the ARGs, and store the result in the 13709# global $as_val. Take advantage of shells that can avoid forks. The arguments 13710# must be portable across $(()) and expr. 13711if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13712 eval 'as_fn_arith () 13713 { 13714 as_val=$(( $* )) 13715 }' 13716else 13717 as_fn_arith () 13718 { 13719 as_val=`expr "$@" || test $? -eq 1` 13720 } 13721fi # as_fn_arith 13722 13723 13724if expr a : '\(a\)' >/dev/null 2>&1 && 13725 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13726 as_expr=expr 13727else 13728 as_expr=false 13729fi 13730 13731if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13732 as_basename=basename 13733else 13734 as_basename=false 13735fi 13736 13737if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13738 as_dirname=dirname 13739else 13740 as_dirname=false 13741fi 13742 13743as_me=`$as_basename -- "$0" || 13744$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13745 X"$0" : 'X\(//\)$' \| \ 13746 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13747$as_echo X/"$0" | 13748 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13749 s//\1/ 13750 q 13751 } 13752 /^X\/\(\/\/\)$/{ 13753 s//\1/ 13754 q 13755 } 13756 /^X\/\(\/\).*/{ 13757 s//\1/ 13758 q 13759 } 13760 s/.*/./; q'` 13761 13762# Avoid depending upon Character Ranges. 13763as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13764as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13765as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13766as_cr_digits='0123456789' 13767as_cr_alnum=$as_cr_Letters$as_cr_digits 13768 13769ECHO_C= ECHO_N= ECHO_T= 13770case `echo -n x` in #((((( 13771-n*) 13772 case `echo 'xy\c'` in 13773 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13774 xy) ECHO_C='\c';; 13775 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13776 ECHO_T=' ';; 13777 esac;; 13778*) 13779 ECHO_N='-n';; 13780esac 13781 13782rm -f conf$$ conf$$.exe conf$$.file 13783if test -d conf$$.dir; then 13784 rm -f conf$$.dir/conf$$.file 13785else 13786 rm -f conf$$.dir 13787 mkdir conf$$.dir 2>/dev/null 13788fi 13789if (echo >conf$$.file) 2>/dev/null; then 13790 if ln -s conf$$.file conf$$ 2>/dev/null; then 13791 as_ln_s='ln -s' 13792 # ... but there are two gotchas: 13793 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13794 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13795 # In both cases, we have to default to `cp -pR'. 13796 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13797 as_ln_s='cp -pR' 13798 elif ln conf$$.file conf$$ 2>/dev/null; then 13799 as_ln_s=ln 13800 else 13801 as_ln_s='cp -pR' 13802 fi 13803else 13804 as_ln_s='cp -pR' 13805fi 13806rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13807rmdir conf$$.dir 2>/dev/null 13808 13809 13810# as_fn_mkdir_p 13811# ------------- 13812# Create "$as_dir" as a directory, including parents if necessary. 13813as_fn_mkdir_p () 13814{ 13815 13816 case $as_dir in #( 13817 -*) as_dir=./$as_dir;; 13818 esac 13819 test -d "$as_dir" || eval $as_mkdir_p || { 13820 as_dirs= 13821 while :; do 13822 case $as_dir in #( 13823 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13824 *) as_qdir=$as_dir;; 13825 esac 13826 as_dirs="'$as_qdir' $as_dirs" 13827 as_dir=`$as_dirname -- "$as_dir" || 13828$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13829 X"$as_dir" : 'X\(//\)[^/]' \| \ 13830 X"$as_dir" : 'X\(//\)$' \| \ 13831 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13832$as_echo X"$as_dir" | 13833 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13834 s//\1/ 13835 q 13836 } 13837 /^X\(\/\/\)[^/].*/{ 13838 s//\1/ 13839 q 13840 } 13841 /^X\(\/\/\)$/{ 13842 s//\1/ 13843 q 13844 } 13845 /^X\(\/\).*/{ 13846 s//\1/ 13847 q 13848 } 13849 s/.*/./; q'` 13850 test -d "$as_dir" && break 13851 done 13852 test -z "$as_dirs" || eval "mkdir $as_dirs" 13853 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13854 13855 13856} # as_fn_mkdir_p 13857if mkdir -p . 2>/dev/null; then 13858 as_mkdir_p='mkdir -p "$as_dir"' 13859else 13860 test -d ./-p && rmdir ./-p 13861 as_mkdir_p=false 13862fi 13863 13864 13865# as_fn_executable_p FILE 13866# ----------------------- 13867# Test if FILE is an executable regular file. 13868as_fn_executable_p () 13869{ 13870 test -f "$1" && test -x "$1" 13871} # as_fn_executable_p 13872as_test_x='test -x' 13873as_executable_p=as_fn_executable_p 13874 13875# Sed expression to map a string onto a valid CPP name. 13876as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13877 13878# Sed expression to map a string onto a valid variable name. 13879as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13880 13881 13882exec 6>&1 13883## ----------------------------------- ## 13884## Main body of $CONFIG_STATUS script. ## 13885## ----------------------------------- ## 13886_ASEOF 13887test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13888 13889cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13890# Save the log message, to keep $0 and so on meaningful, and to 13891# report actual input values of CONFIG_FILES etc. instead of their 13892# values after options handling. 13893ac_log=" 13894This file was extended by libdvdread $as_me 6.1.2, which was 13895generated by GNU Autoconf 2.69. Invocation command line was 13896 13897 CONFIG_FILES = $CONFIG_FILES 13898 CONFIG_HEADERS = $CONFIG_HEADERS 13899 CONFIG_LINKS = $CONFIG_LINKS 13900 CONFIG_COMMANDS = $CONFIG_COMMANDS 13901 $ $0 $@ 13902 13903on `(hostname || uname -n) 2>/dev/null | sed 1q` 13904" 13905 13906_ACEOF 13907 13908case $ac_config_files in *" 13909"*) set x $ac_config_files; shift; ac_config_files=$*;; 13910esac 13911 13912case $ac_config_headers in *" 13913"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13914esac 13915 13916 13917cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13918# Files that config.status was made for. 13919config_files="$ac_config_files" 13920config_headers="$ac_config_headers" 13921config_commands="$ac_config_commands" 13922 13923_ACEOF 13924 13925cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13926ac_cs_usage="\ 13927\`$as_me' instantiates files and other configuration actions 13928from templates according to the current configuration. Unless the files 13929and actions are specified as TAGs, all are instantiated by default. 13930 13931Usage: $0 [OPTION]... [TAG]... 13932 13933 -h, --help print this help, then exit 13934 -V, --version print version number and configuration settings, then exit 13935 --config print configuration, then exit 13936 -q, --quiet, --silent 13937 do not print progress messages 13938 -d, --debug don't remove temporary files 13939 --recheck update $as_me by reconfiguring in the same conditions 13940 --file=FILE[:TEMPLATE] 13941 instantiate the configuration file FILE 13942 --header=FILE[:TEMPLATE] 13943 instantiate the configuration header FILE 13944 13945Configuration files: 13946$config_files 13947 13948Configuration headers: 13949$config_headers 13950 13951Configuration commands: 13952$config_commands 13953 13954Report bugs to the package provider." 13955 13956_ACEOF 13957cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13958ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13959ac_cs_version="\\ 13960libdvdread config.status 6.1.2 13961configured by $0, generated by GNU Autoconf 2.69, 13962 with options \\"\$ac_cs_config\\" 13963 13964Copyright (C) 2012 Free Software Foundation, Inc. 13965This config.status script is free software; the Free Software Foundation 13966gives unlimited permission to copy, distribute and modify it." 13967 13968ac_pwd='$ac_pwd' 13969srcdir='$srcdir' 13970INSTALL='$INSTALL' 13971MKDIR_P='$MKDIR_P' 13972AWK='$AWK' 13973test -n "\$AWK" || AWK=awk 13974_ACEOF 13975 13976cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13977# The default lists apply if the user does not specify any file. 13978ac_need_defaults=: 13979while test $# != 0 13980do 13981 case $1 in 13982 --*=?*) 13983 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13984 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13985 ac_shift=: 13986 ;; 13987 --*=) 13988 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13989 ac_optarg= 13990 ac_shift=: 13991 ;; 13992 *) 13993 ac_option=$1 13994 ac_optarg=$2 13995 ac_shift=shift 13996 ;; 13997 esac 13998 13999 case $ac_option in 14000 # Handling of the options. 14001 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14002 ac_cs_recheck=: ;; 14003 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14004 $as_echo "$ac_cs_version"; exit ;; 14005 --config | --confi | --conf | --con | --co | --c ) 14006 $as_echo "$ac_cs_config"; exit ;; 14007 --debug | --debu | --deb | --de | --d | -d ) 14008 debug=: ;; 14009 --file | --fil | --fi | --f ) 14010 $ac_shift 14011 case $ac_optarg in 14012 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14013 '') as_fn_error $? "missing file argument" ;; 14014 esac 14015 as_fn_append CONFIG_FILES " '$ac_optarg'" 14016 ac_need_defaults=false;; 14017 --header | --heade | --head | --hea ) 14018 $ac_shift 14019 case $ac_optarg in 14020 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14021 esac 14022 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14023 ac_need_defaults=false;; 14024 --he | --h) 14025 # Conflict between --help and --header 14026 as_fn_error $? "ambiguous option: \`$1' 14027Try \`$0 --help' for more information.";; 14028 --help | --hel | -h ) 14029 $as_echo "$ac_cs_usage"; exit ;; 14030 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14031 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14032 ac_cs_silent=: ;; 14033 14034 # This is an error. 14035 -*) as_fn_error $? "unrecognized option: \`$1' 14036Try \`$0 --help' for more information." ;; 14037 14038 *) as_fn_append ac_config_targets " $1" 14039 ac_need_defaults=false ;; 14040 14041 esac 14042 shift 14043done 14044 14045ac_configure_extra_args= 14046 14047if $ac_cs_silent; then 14048 exec 6>/dev/null 14049 ac_configure_extra_args="$ac_configure_extra_args --silent" 14050fi 14051 14052_ACEOF 14053cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14054if \$ac_cs_recheck; then 14055 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14056 shift 14057 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14058 CONFIG_SHELL='$SHELL' 14059 export CONFIG_SHELL 14060 exec "\$@" 14061fi 14062 14063_ACEOF 14064cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14065exec 5>>config.log 14066{ 14067 echo 14068 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14069## Running $as_me. ## 14070_ASBOX 14071 $as_echo "$ac_log" 14072} >&5 14073 14074_ACEOF 14075cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14076# 14077# INIT-COMMANDS 14078# 14079AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 14080 14081 14082# The HP-UX ksh and POSIX shell print the target directory to stdout 14083# if CDPATH is set. 14084(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14085 14086sed_quote_subst='$sed_quote_subst' 14087double_quote_subst='$double_quote_subst' 14088delay_variable_subst='$delay_variable_subst' 14089macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 14090macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 14091enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 14092enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 14093pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 14094enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 14095shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 14096SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 14097ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 14098PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 14099host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 14100host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 14101host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 14102build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 14103build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 14104build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 14105SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 14106Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 14107GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 14108EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 14109FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 14110LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 14111NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 14112LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 14113max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 14114ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 14115exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 14116lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 14117lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 14118lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 14119lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 14120lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 14121reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 14122reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 14123OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 14124deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 14125file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 14126file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 14127want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 14128DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 14129sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 14130AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 14131AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 14132archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 14133STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 14134RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 14135old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14136old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14137old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 14138lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 14139CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 14140CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 14141compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 14142GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 14143lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 14144lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 14145lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 14146lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 14147lt_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"`' 14148lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 14149nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 14150lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 14151lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 14152objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 14153MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 14154lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 14155lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 14156lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 14157lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 14158lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 14159need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 14160MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 14161DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 14162NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 14163LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 14164OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 14165OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 14166libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 14167shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 14168extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14169archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 14170enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 14171export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 14172whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 14173compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 14174old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 14175old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14176archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 14177archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14178module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 14179module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14180with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 14181allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 14182no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 14183hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 14184hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 14185hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 14186hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 14187hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 14188hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 14189hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 14190inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 14191link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 14192always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 14193export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 14194exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 14195include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 14196prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 14197postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 14198file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 14199variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 14200need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 14201need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 14202version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 14203runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 14204shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 14205shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 14206libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 14207library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 14208soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 14209install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 14210postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14211postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14212finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 14213finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 14214hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 14215sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 14216configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 14217configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 14218hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 14219enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 14220enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 14221enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 14222old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 14223striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 14224 14225LTCC='$LTCC' 14226LTCFLAGS='$LTCFLAGS' 14227compiler='$compiler_DEFAULT' 14228 14229# A function that is used when there is no print builtin or printf. 14230func_fallback_echo () 14231{ 14232 eval 'cat <<_LTECHO_EOF 14233\$1 14234_LTECHO_EOF' 14235} 14236 14237# Quote evaled strings. 14238for var in SHELL \ 14239ECHO \ 14240PATH_SEPARATOR \ 14241SED \ 14242GREP \ 14243EGREP \ 14244FGREP \ 14245LD \ 14246NM \ 14247LN_S \ 14248lt_SP2NL \ 14249lt_NL2SP \ 14250reload_flag \ 14251OBJDUMP \ 14252deplibs_check_method \ 14253file_magic_cmd \ 14254file_magic_glob \ 14255want_nocaseglob \ 14256DLLTOOL \ 14257sharedlib_from_linklib_cmd \ 14258AR \ 14259AR_FLAGS \ 14260archiver_list_spec \ 14261STRIP \ 14262RANLIB \ 14263CC \ 14264CFLAGS \ 14265compiler \ 14266lt_cv_sys_global_symbol_pipe \ 14267lt_cv_sys_global_symbol_to_cdecl \ 14268lt_cv_sys_global_symbol_to_import \ 14269lt_cv_sys_global_symbol_to_c_name_address \ 14270lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14271lt_cv_nm_interface \ 14272nm_file_list_spec \ 14273lt_cv_truncate_bin \ 14274lt_prog_compiler_no_builtin_flag \ 14275lt_prog_compiler_pic \ 14276lt_prog_compiler_wl \ 14277lt_prog_compiler_static \ 14278lt_cv_prog_compiler_c_o \ 14279need_locks \ 14280MANIFEST_TOOL \ 14281DSYMUTIL \ 14282NMEDIT \ 14283LIPO \ 14284OTOOL \ 14285OTOOL64 \ 14286shrext_cmds \ 14287export_dynamic_flag_spec \ 14288whole_archive_flag_spec \ 14289compiler_needs_object \ 14290with_gnu_ld \ 14291allow_undefined_flag \ 14292no_undefined_flag \ 14293hardcode_libdir_flag_spec \ 14294hardcode_libdir_separator \ 14295exclude_expsyms \ 14296include_expsyms \ 14297file_list_spec \ 14298variables_saved_for_relink \ 14299libname_spec \ 14300library_names_spec \ 14301soname_spec \ 14302install_override_mode \ 14303finish_eval \ 14304old_striplib \ 14305striplib; do 14306 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14307 *[\\\\\\\`\\"\\\$]*) 14308 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14309 ;; 14310 *) 14311 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14312 ;; 14313 esac 14314done 14315 14316# Double-quote double-evaled strings. 14317for var in reload_cmds \ 14318old_postinstall_cmds \ 14319old_postuninstall_cmds \ 14320old_archive_cmds \ 14321extract_expsyms_cmds \ 14322old_archive_from_new_cmds \ 14323old_archive_from_expsyms_cmds \ 14324archive_cmds \ 14325archive_expsym_cmds \ 14326module_cmds \ 14327module_expsym_cmds \ 14328export_symbols_cmds \ 14329prelink_cmds \ 14330postlink_cmds \ 14331postinstall_cmds \ 14332postuninstall_cmds \ 14333finish_cmds \ 14334sys_lib_search_path_spec \ 14335configure_time_dlsearch_path \ 14336configure_time_lt_sys_library_path; do 14337 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14338 *[\\\\\\\`\\"\\\$]*) 14339 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14340 ;; 14341 *) 14342 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14343 ;; 14344 esac 14345done 14346 14347ac_aux_dir='$ac_aux_dir' 14348 14349# See if we are running on zsh, and set the options that allow our 14350# commands through without removal of \ escapes INIT. 14351if test -n "\${ZSH_VERSION+set}"; then 14352 setopt NO_GLOB_SUBST 14353fi 14354 14355 14356 PACKAGE='$PACKAGE' 14357 VERSION='$VERSION' 14358 RM='$RM' 14359 ofile='$ofile' 14360 14361 14362 14363 14364_ACEOF 14365 14366cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14367 14368# Handling of arguments. 14369for ac_config_target in $ac_config_targets 14370do 14371 case $ac_config_target in 14372 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14373 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14374 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14375 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14376 "doc/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES doc/doxygen.cfg" ;; 14377 "misc/dvdread.pc") CONFIG_FILES="$CONFIG_FILES misc/dvdread.pc" ;; 14378 "src/dvdread/version.h") CONFIG_FILES="$CONFIG_FILES src/dvdread/version.h" ;; 14379 14380 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14381 esac 14382done 14383 14384 14385# If the user did not use the arguments to specify the items to instantiate, 14386# then the envvar interface is used. Set only those that are not. 14387# We use the long form for the default assignment because of an extremely 14388# bizarre bug on SunOS 4.1.3. 14389if $ac_need_defaults; then 14390 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14391 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14392 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14393fi 14394 14395# Have a temporary directory for convenience. Make it in the build tree 14396# simply because there is no reason against having it here, and in addition, 14397# creating and moving files from /tmp can sometimes cause problems. 14398# Hook for its removal unless debugging. 14399# Note that there is a small window in which the directory will not be cleaned: 14400# after its creation but before its name has been assigned to `$tmp'. 14401$debug || 14402{ 14403 tmp= ac_tmp= 14404 trap 'exit_status=$? 14405 : "${ac_tmp:=$tmp}" 14406 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14407' 0 14408 trap 'as_fn_exit 1' 1 2 13 15 14409} 14410# Create a (secure) tmp directory for tmp files. 14411 14412{ 14413 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14414 test -d "$tmp" 14415} || 14416{ 14417 tmp=./conf$$-$RANDOM 14418 (umask 077 && mkdir "$tmp") 14419} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14420ac_tmp=$tmp 14421 14422# Set up the scripts for CONFIG_FILES section. 14423# No need to generate them if there are no CONFIG_FILES. 14424# This happens for instance with `./config.status config.h'. 14425if test -n "$CONFIG_FILES"; then 14426 14427 14428ac_cr=`echo X | tr X '\015'` 14429# On cygwin, bash can eat \r inside `` if the user requested igncr. 14430# But we know of no other shell where ac_cr would be empty at this 14431# point, so we can use a bashism as a fallback. 14432if test "x$ac_cr" = x; then 14433 eval ac_cr=\$\'\\r\' 14434fi 14435ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14436if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14437 ac_cs_awk_cr='\\r' 14438else 14439 ac_cs_awk_cr=$ac_cr 14440fi 14441 14442echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14443_ACEOF 14444 14445 14446{ 14447 echo "cat >conf$$subs.awk <<_ACEOF" && 14448 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14449 echo "_ACEOF" 14450} >conf$$subs.sh || 14451 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14452ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14453ac_delim='%!_!# ' 14454for ac_last_try in false false false false false :; do 14455 . ./conf$$subs.sh || 14456 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14457 14458 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14459 if test $ac_delim_n = $ac_delim_num; then 14460 break 14461 elif $ac_last_try; then 14462 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14463 else 14464 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14465 fi 14466done 14467rm -f conf$$subs.sh 14468 14469cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14470cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14471_ACEOF 14472sed -n ' 14473h 14474s/^/S["/; s/!.*/"]=/ 14475p 14476g 14477s/^[^!]*!// 14478:repl 14479t repl 14480s/'"$ac_delim"'$// 14481t delim 14482:nl 14483h 14484s/\(.\{148\}\)..*/\1/ 14485t more1 14486s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14487p 14488n 14489b repl 14490:more1 14491s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14492p 14493g 14494s/.\{148\}// 14495t nl 14496:delim 14497h 14498s/\(.\{148\}\)..*/\1/ 14499t more2 14500s/["\\]/\\&/g; s/^/"/; s/$/"/ 14501p 14502b 14503:more2 14504s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14505p 14506g 14507s/.\{148\}// 14508t delim 14509' <conf$$subs.awk | sed ' 14510/^[^""]/{ 14511 N 14512 s/\n// 14513} 14514' >>$CONFIG_STATUS || ac_write_fail=1 14515rm -f conf$$subs.awk 14516cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14517_ACAWK 14518cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14519 for (key in S) S_is_set[key] = 1 14520 FS = "" 14521 14522} 14523{ 14524 line = $ 0 14525 nfields = split(line, field, "@") 14526 substed = 0 14527 len = length(field[1]) 14528 for (i = 2; i < nfields; i++) { 14529 key = field[i] 14530 keylen = length(key) 14531 if (S_is_set[key]) { 14532 value = S[key] 14533 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14534 len += length(value) + length(field[++i]) 14535 substed = 1 14536 } else 14537 len += 1 + keylen 14538 } 14539 14540 print line 14541} 14542 14543_ACAWK 14544_ACEOF 14545cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14546if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14547 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14548else 14549 cat 14550fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14551 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14552_ACEOF 14553 14554# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14555# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14556# trailing colons and then remove the whole line if VPATH becomes empty 14557# (actually we leave an empty line to preserve line numbers). 14558if test "x$srcdir" = x.; then 14559 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14560h 14561s/// 14562s/^/:/ 14563s/[ ]*$/:/ 14564s/:\$(srcdir):/:/g 14565s/:\${srcdir}:/:/g 14566s/:@srcdir@:/:/g 14567s/^:*// 14568s/:*$// 14569x 14570s/\(=[ ]*\).*/\1/ 14571G 14572s/\n// 14573s/^[^=]*=[ ]*$// 14574}' 14575fi 14576 14577cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14578fi # test -n "$CONFIG_FILES" 14579 14580# Set up the scripts for CONFIG_HEADERS section. 14581# No need to generate them if there are no CONFIG_HEADERS. 14582# This happens for instance with `./config.status Makefile'. 14583if test -n "$CONFIG_HEADERS"; then 14584cat >"$ac_tmp/defines.awk" <<\_ACAWK || 14585BEGIN { 14586_ACEOF 14587 14588# Transform confdefs.h into an awk script `defines.awk', embedded as 14589# here-document in config.status, that substitutes the proper values into 14590# config.h.in to produce config.h. 14591 14592# Create a delimiter string that does not exist in confdefs.h, to ease 14593# handling of long lines. 14594ac_delim='%!_!# ' 14595for ac_last_try in false false :; do 14596 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 14597 if test -z "$ac_tt"; then 14598 break 14599 elif $ac_last_try; then 14600 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14601 else 14602 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14603 fi 14604done 14605 14606# For the awk script, D is an array of macro values keyed by name, 14607# likewise P contains macro parameters if any. Preserve backslash 14608# newline sequences. 14609 14610ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14611sed -n ' 14612s/.\{148\}/&'"$ac_delim"'/g 14613t rset 14614:rset 14615s/^[ ]*#[ ]*define[ ][ ]*/ / 14616t def 14617d 14618:def 14619s/\\$// 14620t bsnl 14621s/["\\]/\\&/g 14622s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14623D["\1"]=" \3"/p 14624s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14625d 14626:bsnl 14627s/["\\]/\\&/g 14628s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14629D["\1"]=" \3\\\\\\n"\\/p 14630t cont 14631s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14632t cont 14633d 14634:cont 14635n 14636s/.\{148\}/&'"$ac_delim"'/g 14637t clear 14638:clear 14639s/\\$// 14640t bsnlc 14641s/["\\]/\\&/g; s/^/"/; s/$/"/p 14642d 14643:bsnlc 14644s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14645b cont 14646' <confdefs.h | sed ' 14647s/'"$ac_delim"'/"\\\ 14648"/g' >>$CONFIG_STATUS || ac_write_fail=1 14649 14650cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14651 for (key in D) D_is_set[key] = 1 14652 FS = "" 14653} 14654/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14655 line = \$ 0 14656 split(line, arg, " ") 14657 if (arg[1] == "#") { 14658 defundef = arg[2] 14659 mac1 = arg[3] 14660 } else { 14661 defundef = substr(arg[1], 2) 14662 mac1 = arg[2] 14663 } 14664 split(mac1, mac2, "(") #) 14665 macro = mac2[1] 14666 prefix = substr(line, 1, index(line, defundef) - 1) 14667 if (D_is_set[macro]) { 14668 # Preserve the white space surrounding the "#". 14669 print prefix "define", macro P[macro] D[macro] 14670 next 14671 } else { 14672 # Replace #undef with comments. This is necessary, for example, 14673 # in the case of _POSIX_SOURCE, which is predefined and required 14674 # on some systems where configure will not decide to define it. 14675 if (defundef == "undef") { 14676 print "/*", prefix defundef, macro, "*/" 14677 next 14678 } 14679 } 14680} 14681{ print } 14682_ACAWK 14683_ACEOF 14684cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14685 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 14686fi # test -n "$CONFIG_HEADERS" 14687 14688 14689eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14690shift 14691for ac_tag 14692do 14693 case $ac_tag in 14694 :[FHLC]) ac_mode=$ac_tag; continue;; 14695 esac 14696 case $ac_mode$ac_tag in 14697 :[FHL]*:*);; 14698 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 14699 :[FH]-) ac_tag=-:-;; 14700 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14701 esac 14702 ac_save_IFS=$IFS 14703 IFS=: 14704 set x $ac_tag 14705 IFS=$ac_save_IFS 14706 shift 14707 ac_file=$1 14708 shift 14709 14710 case $ac_mode in 14711 :L) ac_source=$1;; 14712 :[FH]) 14713 ac_file_inputs= 14714 for ac_f 14715 do 14716 case $ac_f in 14717 -) ac_f="$ac_tmp/stdin";; 14718 *) # Look for the file first in the build tree, then in the source tree 14719 # (if the path is not absolute). The absolute path cannot be DOS-style, 14720 # because $ac_f cannot contain `:'. 14721 test -f "$ac_f" || 14722 case $ac_f in 14723 [\\/$]*) false;; 14724 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14725 esac || 14726 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14727 esac 14728 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14729 as_fn_append ac_file_inputs " '$ac_f'" 14730 done 14731 14732 # Let's still pretend it is `configure' which instantiates (i.e., don't 14733 # use $as_me), people would be surprised to read: 14734 # /* config.h. Generated by config.status. */ 14735 configure_input='Generated from '` 14736 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14737 `' by configure.' 14738 if test x"$ac_file" != x-; then 14739 configure_input="$ac_file. $configure_input" 14740 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14741$as_echo "$as_me: creating $ac_file" >&6;} 14742 fi 14743 # Neutralize special characters interpreted by sed in replacement strings. 14744 case $configure_input in #( 14745 *\&* | *\|* | *\\* ) 14746 ac_sed_conf_input=`$as_echo "$configure_input" | 14747 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14748 *) ac_sed_conf_input=$configure_input;; 14749 esac 14750 14751 case $ac_tag in 14752 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14753 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14754 esac 14755 ;; 14756 esac 14757 14758 ac_dir=`$as_dirname -- "$ac_file" || 14759$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14760 X"$ac_file" : 'X\(//\)[^/]' \| \ 14761 X"$ac_file" : 'X\(//\)$' \| \ 14762 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14763$as_echo X"$ac_file" | 14764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14765 s//\1/ 14766 q 14767 } 14768 /^X\(\/\/\)[^/].*/{ 14769 s//\1/ 14770 q 14771 } 14772 /^X\(\/\/\)$/{ 14773 s//\1/ 14774 q 14775 } 14776 /^X\(\/\).*/{ 14777 s//\1/ 14778 q 14779 } 14780 s/.*/./; q'` 14781 as_dir="$ac_dir"; as_fn_mkdir_p 14782 ac_builddir=. 14783 14784case "$ac_dir" in 14785.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14786*) 14787 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14788 # A ".." for each directory in $ac_dir_suffix. 14789 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14790 case $ac_top_builddir_sub in 14791 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14792 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14793 esac ;; 14794esac 14795ac_abs_top_builddir=$ac_pwd 14796ac_abs_builddir=$ac_pwd$ac_dir_suffix 14797# for backward compatibility: 14798ac_top_builddir=$ac_top_build_prefix 14799 14800case $srcdir in 14801 .) # We are building in place. 14802 ac_srcdir=. 14803 ac_top_srcdir=$ac_top_builddir_sub 14804 ac_abs_top_srcdir=$ac_pwd ;; 14805 [\\/]* | ?:[\\/]* ) # Absolute name. 14806 ac_srcdir=$srcdir$ac_dir_suffix; 14807 ac_top_srcdir=$srcdir 14808 ac_abs_top_srcdir=$srcdir ;; 14809 *) # Relative name. 14810 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14811 ac_top_srcdir=$ac_top_build_prefix$srcdir 14812 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14813esac 14814ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14815 14816 14817 case $ac_mode in 14818 :F) 14819 # 14820 # CONFIG_FILE 14821 # 14822 14823 case $INSTALL in 14824 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14825 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14826 esac 14827 ac_MKDIR_P=$MKDIR_P 14828 case $MKDIR_P in 14829 [\\/$]* | ?:[\\/]* ) ;; 14830 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14831 esac 14832_ACEOF 14833 14834cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14835# If the template does not know about datarootdir, expand it. 14836# FIXME: This hack should be removed a few years after 2.60. 14837ac_datarootdir_hack=; ac_datarootdir_seen= 14838ac_sed_dataroot=' 14839/datarootdir/ { 14840 p 14841 q 14842} 14843/@datadir@/p 14844/@docdir@/p 14845/@infodir@/p 14846/@localedir@/p 14847/@mandir@/p' 14848case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14849*datarootdir*) ac_datarootdir_seen=yes;; 14850*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14852$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14853_ACEOF 14854cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14855 ac_datarootdir_hack=' 14856 s&@datadir@&$datadir&g 14857 s&@docdir@&$docdir&g 14858 s&@infodir@&$infodir&g 14859 s&@localedir@&$localedir&g 14860 s&@mandir@&$mandir&g 14861 s&\\\${datarootdir}&$datarootdir&g' ;; 14862esac 14863_ACEOF 14864 14865# Neutralize VPATH when `$srcdir' = `.'. 14866# Shell code in configure.ac might set extrasub. 14867# FIXME: do we really want to maintain this feature? 14868cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14869ac_sed_extra="$ac_vpsub 14870$extrasub 14871_ACEOF 14872cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14873:t 14874/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14875s|@configure_input@|$ac_sed_conf_input|;t t 14876s&@top_builddir@&$ac_top_builddir_sub&;t t 14877s&@top_build_prefix@&$ac_top_build_prefix&;t t 14878s&@srcdir@&$ac_srcdir&;t t 14879s&@abs_srcdir@&$ac_abs_srcdir&;t t 14880s&@top_srcdir@&$ac_top_srcdir&;t t 14881s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14882s&@builddir@&$ac_builddir&;t t 14883s&@abs_builddir@&$ac_abs_builddir&;t t 14884s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14885s&@INSTALL@&$ac_INSTALL&;t t 14886s&@MKDIR_P@&$ac_MKDIR_P&;t t 14887$ac_datarootdir_hack 14888" 14889eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14890 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14891 14892test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14893 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14894 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14895 "$ac_tmp/out"`; test -z "$ac_out"; } && 14896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14897which seems to be undefined. Please make sure it is defined" >&5 14898$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14899which seems to be undefined. Please make sure it is defined" >&2;} 14900 14901 rm -f "$ac_tmp/stdin" 14902 case $ac_file in 14903 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14904 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14905 esac \ 14906 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14907 ;; 14908 :H) 14909 # 14910 # CONFIG_HEADER 14911 # 14912 if test x"$ac_file" != x-; then 14913 { 14914 $as_echo "/* $configure_input */" \ 14915 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 14916 } >"$ac_tmp/config.h" \ 14917 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14918 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 14919 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14920$as_echo "$as_me: $ac_file is unchanged" >&6;} 14921 else 14922 rm -f "$ac_file" 14923 mv "$ac_tmp/config.h" "$ac_file" \ 14924 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14925 fi 14926 else 14927 $as_echo "/* $configure_input */" \ 14928 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 14929 || as_fn_error $? "could not create -" "$LINENO" 5 14930 fi 14931# Compute "$ac_file"'s index in $config_headers. 14932_am_arg="$ac_file" 14933_am_stamp_count=1 14934for _am_header in $config_headers :; do 14935 case $_am_header in 14936 $_am_arg | $_am_arg:* ) 14937 break ;; 14938 * ) 14939 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14940 esac 14941done 14942echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14943$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14944 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14945 X"$_am_arg" : 'X\(//\)$' \| \ 14946 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14947$as_echo X"$_am_arg" | 14948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14949 s//\1/ 14950 q 14951 } 14952 /^X\(\/\/\)[^/].*/{ 14953 s//\1/ 14954 q 14955 } 14956 /^X\(\/\/\)$/{ 14957 s//\1/ 14958 q 14959 } 14960 /^X\(\/\).*/{ 14961 s//\1/ 14962 q 14963 } 14964 s/.*/./; q'`/stamp-h$_am_stamp_count 14965 ;; 14966 14967 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14968$as_echo "$as_me: executing $ac_file commands" >&6;} 14969 ;; 14970 esac 14971 14972 14973 case $ac_file$ac_mode in 14974 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14975 # Older Autoconf quotes --file arguments for eval, but not when files 14976 # are listed without --file. Let's play safe and only enable the eval 14977 # if we detect the quoting. 14978 # TODO: see whether this extra hack can be removed once we start 14979 # requiring Autoconf 2.70 or later. 14980 case $CONFIG_FILES in #( 14981 *\'*) : 14982 eval set x "$CONFIG_FILES" ;; #( 14983 *) : 14984 set x $CONFIG_FILES ;; #( 14985 *) : 14986 ;; 14987esac 14988 shift 14989 # Used to flag and report bootstrapping failures. 14990 am_rc=0 14991 for am_mf 14992 do 14993 # Strip MF so we end up with the name of the file. 14994 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 14995 # Check whether this is an Automake generated Makefile which includes 14996 # dependency-tracking related rules and includes. 14997 # Grep'ing the whole file directly is not great: AIX grep has a line 14998 # limit of 2048, but all sed's we know have understand at least 4000. 14999 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 15000 || continue 15001 am_dirpart=`$as_dirname -- "$am_mf" || 15002$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15003 X"$am_mf" : 'X\(//\)[^/]' \| \ 15004 X"$am_mf" : 'X\(//\)$' \| \ 15005 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15006$as_echo X"$am_mf" | 15007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15008 s//\1/ 15009 q 15010 } 15011 /^X\(\/\/\)[^/].*/{ 15012 s//\1/ 15013 q 15014 } 15015 /^X\(\/\/\)$/{ 15016 s//\1/ 15017 q 15018 } 15019 /^X\(\/\).*/{ 15020 s//\1/ 15021 q 15022 } 15023 s/.*/./; q'` 15024 am_filepart=`$as_basename -- "$am_mf" || 15025$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 15026 X"$am_mf" : 'X\(//\)$' \| \ 15027 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 15028$as_echo X/"$am_mf" | 15029 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15030 s//\1/ 15031 q 15032 } 15033 /^X\/\(\/\/\)$/{ 15034 s//\1/ 15035 q 15036 } 15037 /^X\/\(\/\).*/{ 15038 s//\1/ 15039 q 15040 } 15041 s/.*/./; q'` 15042 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 15043 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15044 | $MAKE -f - am--depfiles" >&5 15045 (cd "$am_dirpart" \ 15046 && sed -e '/# am--include-marker/d' "$am_filepart" \ 15047 | $MAKE -f - am--depfiles) >&5 2>&5 15048 ac_status=$? 15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15050 (exit $ac_status); } || am_rc=$? 15051 done 15052 if test $am_rc -ne 0; then 15053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15055as_fn_error $? "Something went wrong bootstrapping makefile fragments 15056 for automatic dependency tracking. If GNU make was not used, consider 15057 re-running the configure script with MAKE=\"gmake\" (or whatever is 15058 necessary). You can also try re-running configure with the 15059 '--disable-dependency-tracking' option to at least be able to build 15060 the package (albeit without support for automatic dependency tracking). 15061See \`config.log' for more details" "$LINENO" 5; } 15062 fi 15063 { am_dirpart=; unset am_dirpart;} 15064 { am_filepart=; unset am_filepart;} 15065 { am_mf=; unset am_mf;} 15066 { am_rc=; unset am_rc;} 15067 rm -f conftest-deps.mk 15068} 15069 ;; 15070 "libtool":C) 15071 15072 # See if we are running on zsh, and set the options that allow our 15073 # commands through without removal of \ escapes. 15074 if test -n "${ZSH_VERSION+set}"; then 15075 setopt NO_GLOB_SUBST 15076 fi 15077 15078 cfgfile=${ofile}T 15079 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15080 $RM "$cfgfile" 15081 15082 cat <<_LT_EOF >> "$cfgfile" 15083#! $SHELL 15084# Generated automatically by $as_me ($PACKAGE) $VERSION 15085# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15086 15087# Provide generalized library-building support services. 15088# Written by Gordon Matzigkeit, 1996 15089 15090# Copyright (C) 2014 Free Software Foundation, Inc. 15091# This is free software; see the source for copying conditions. There is NO 15092# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 15093 15094# GNU Libtool is free software; you can redistribute it and/or modify 15095# it under the terms of the GNU General Public License as published by 15096# the Free Software Foundation; either version 2 of of the License, or 15097# (at your option) any later version. 15098# 15099# As a special exception to the GNU General Public License, if you 15100# distribute this file as part of a program or library that is built 15101# using GNU Libtool, you may include this file under the same 15102# distribution terms that you use for the rest of that program. 15103# 15104# GNU Libtool is distributed in the hope that it will be useful, but 15105# WITHOUT ANY WARRANTY; without even the implied warranty of 15106# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15107# GNU General Public License for more details. 15108# 15109# You should have received a copy of the GNU General Public License 15110# along with this program. If not, see <http://www.gnu.org/licenses/>. 15111 15112 15113# The names of the tagged configurations supported by this script. 15114available_tags='' 15115 15116# Configured defaults for sys_lib_dlsearch_path munging. 15117: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 15118 15119# ### BEGIN LIBTOOL CONFIG 15120 15121# Which release of libtool.m4 was used? 15122macro_version=$macro_version 15123macro_revision=$macro_revision 15124 15125# Whether or not to build shared libraries. 15126build_libtool_libs=$enable_shared 15127 15128# Whether or not to build static libraries. 15129build_old_libs=$enable_static 15130 15131# What type of objects to build. 15132pic_mode=$pic_mode 15133 15134# Whether or not to optimize for fast installation. 15135fast_install=$enable_fast_install 15136 15137# Shared archive member basename,for filename based shared library versioning on AIX. 15138shared_archive_member_spec=$shared_archive_member_spec 15139 15140# Shell to use when invoking shell scripts. 15141SHELL=$lt_SHELL 15142 15143# An echo program that protects backslashes. 15144ECHO=$lt_ECHO 15145 15146# The PATH separator for the build system. 15147PATH_SEPARATOR=$lt_PATH_SEPARATOR 15148 15149# The host system. 15150host_alias=$host_alias 15151host=$host 15152host_os=$host_os 15153 15154# The build system. 15155build_alias=$build_alias 15156build=$build 15157build_os=$build_os 15158 15159# A sed program that does not truncate output. 15160SED=$lt_SED 15161 15162# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15163Xsed="\$SED -e 1s/^X//" 15164 15165# A grep program that handles long lines. 15166GREP=$lt_GREP 15167 15168# An ERE matcher. 15169EGREP=$lt_EGREP 15170 15171# A literal string matcher. 15172FGREP=$lt_FGREP 15173 15174# A BSD- or MS-compatible name lister. 15175NM=$lt_NM 15176 15177# Whether we need soft or hard links. 15178LN_S=$lt_LN_S 15179 15180# What is the maximum length of a command? 15181max_cmd_len=$max_cmd_len 15182 15183# Object file suffix (normally "o"). 15184objext=$ac_objext 15185 15186# Executable file suffix (normally ""). 15187exeext=$exeext 15188 15189# whether the shell understands "unset". 15190lt_unset=$lt_unset 15191 15192# turn spaces into newlines. 15193SP2NL=$lt_lt_SP2NL 15194 15195# turn newlines into spaces. 15196NL2SP=$lt_lt_NL2SP 15197 15198# convert \$build file names to \$host format. 15199to_host_file_cmd=$lt_cv_to_host_file_cmd 15200 15201# convert \$build files to toolchain format. 15202to_tool_file_cmd=$lt_cv_to_tool_file_cmd 15203 15204# An object symbol dumper. 15205OBJDUMP=$lt_OBJDUMP 15206 15207# Method to check whether dependent libraries are shared objects. 15208deplibs_check_method=$lt_deplibs_check_method 15209 15210# Command to use when deplibs_check_method = "file_magic". 15211file_magic_cmd=$lt_file_magic_cmd 15212 15213# How to find potential files when deplibs_check_method = "file_magic". 15214file_magic_glob=$lt_file_magic_glob 15215 15216# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 15217want_nocaseglob=$lt_want_nocaseglob 15218 15219# DLL creation program. 15220DLLTOOL=$lt_DLLTOOL 15221 15222# Command to associate shared and link libraries. 15223sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 15224 15225# The archiver. 15226AR=$lt_AR 15227 15228# Flags to create an archive. 15229AR_FLAGS=$lt_AR_FLAGS 15230 15231# How to feed a file listing to the archiver. 15232archiver_list_spec=$lt_archiver_list_spec 15233 15234# A symbol stripping program. 15235STRIP=$lt_STRIP 15236 15237# Commands used to install an old-style archive. 15238RANLIB=$lt_RANLIB 15239old_postinstall_cmds=$lt_old_postinstall_cmds 15240old_postuninstall_cmds=$lt_old_postuninstall_cmds 15241 15242# Whether to use a lock for old archive extraction. 15243lock_old_archive_extraction=$lock_old_archive_extraction 15244 15245# A C compiler. 15246LTCC=$lt_CC 15247 15248# LTCC compiler flags. 15249LTCFLAGS=$lt_CFLAGS 15250 15251# Take the output of nm and produce a listing of raw symbols and C names. 15252global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15253 15254# Transform the output of nm in a proper C declaration. 15255global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15256 15257# Transform the output of nm into a list of symbols to manually relocate. 15258global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 15259 15260# Transform the output of nm in a C name address pair. 15261global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15262 15263# Transform the output of nm in a C name address pair when lib prefix is needed. 15264global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15265 15266# The name lister interface. 15267nm_interface=$lt_lt_cv_nm_interface 15268 15269# Specify filename containing input files for \$NM. 15270nm_file_list_spec=$lt_nm_file_list_spec 15271 15272# The root where to search for dependent libraries,and where our libraries should be installed. 15273lt_sysroot=$lt_sysroot 15274 15275# Command to truncate a binary pipe. 15276lt_truncate_bin=$lt_lt_cv_truncate_bin 15277 15278# The name of the directory that contains temporary libtool files. 15279objdir=$objdir 15280 15281# Used to examine libraries when file_magic_cmd begins with "file". 15282MAGIC_CMD=$MAGIC_CMD 15283 15284# Must we lock files when doing compilation? 15285need_locks=$lt_need_locks 15286 15287# Manifest tool. 15288MANIFEST_TOOL=$lt_MANIFEST_TOOL 15289 15290# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15291DSYMUTIL=$lt_DSYMUTIL 15292 15293# Tool to change global to local symbols on Mac OS X. 15294NMEDIT=$lt_NMEDIT 15295 15296# Tool to manipulate fat objects and archives on Mac OS X. 15297LIPO=$lt_LIPO 15298 15299# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15300OTOOL=$lt_OTOOL 15301 15302# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15303OTOOL64=$lt_OTOOL64 15304 15305# Old archive suffix (normally "a"). 15306libext=$libext 15307 15308# Shared library suffix (normally ".so"). 15309shrext_cmds=$lt_shrext_cmds 15310 15311# The commands to extract the exported symbol list from a shared archive. 15312extract_expsyms_cmds=$lt_extract_expsyms_cmds 15313 15314# Variables whose values should be saved in libtool wrapper scripts and 15315# restored at link time. 15316variables_saved_for_relink=$lt_variables_saved_for_relink 15317 15318# Do we need the "lib" prefix for modules? 15319need_lib_prefix=$need_lib_prefix 15320 15321# Do we need a version for libraries? 15322need_version=$need_version 15323 15324# Library versioning type. 15325version_type=$version_type 15326 15327# Shared library runtime path variable. 15328runpath_var=$runpath_var 15329 15330# Shared library path variable. 15331shlibpath_var=$shlibpath_var 15332 15333# Is shlibpath searched before the hard-coded library search path? 15334shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15335 15336# Format of library name prefix. 15337libname_spec=$lt_libname_spec 15338 15339# List of archive names. First name is the real one, the rest are links. 15340# The last name is the one that the linker finds with -lNAME 15341library_names_spec=$lt_library_names_spec 15342 15343# The coded name of the library, if different from the real name. 15344soname_spec=$lt_soname_spec 15345 15346# Permission mode override for installation of shared libraries. 15347install_override_mode=$lt_install_override_mode 15348 15349# Command to use after installation of a shared archive. 15350postinstall_cmds=$lt_postinstall_cmds 15351 15352# Command to use after uninstallation of a shared archive. 15353postuninstall_cmds=$lt_postuninstall_cmds 15354 15355# Commands used to finish a libtool library installation in a directory. 15356finish_cmds=$lt_finish_cmds 15357 15358# As "finish_cmds", except a single script fragment to be evaled but 15359# not shown. 15360finish_eval=$lt_finish_eval 15361 15362# Whether we should hardcode library paths into libraries. 15363hardcode_into_libs=$hardcode_into_libs 15364 15365# Compile-time system search path for libraries. 15366sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15367 15368# Detected run-time system search path for libraries. 15369sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 15370 15371# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 15372configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 15373 15374# Whether dlopen is supported. 15375dlopen_support=$enable_dlopen 15376 15377# Whether dlopen of programs is supported. 15378dlopen_self=$enable_dlopen_self 15379 15380# Whether dlopen of statically linked programs is supported. 15381dlopen_self_static=$enable_dlopen_self_static 15382 15383# Commands to strip libraries. 15384old_striplib=$lt_old_striplib 15385striplib=$lt_striplib 15386 15387 15388# The linker used to build libraries. 15389LD=$lt_LD 15390 15391# How to create reloadable object files. 15392reload_flag=$lt_reload_flag 15393reload_cmds=$lt_reload_cmds 15394 15395# Commands used to build an old-style archive. 15396old_archive_cmds=$lt_old_archive_cmds 15397 15398# A language specific compiler. 15399CC=$lt_compiler 15400 15401# Is the compiler the GNU compiler? 15402with_gcc=$GCC 15403 15404# Compiler flag to turn off builtin functions. 15405no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15406 15407# Additional compiler flags for building library objects. 15408pic_flag=$lt_lt_prog_compiler_pic 15409 15410# How to pass a linker flag through the compiler. 15411wl=$lt_lt_prog_compiler_wl 15412 15413# Compiler flag to prevent dynamic linking. 15414link_static_flag=$lt_lt_prog_compiler_static 15415 15416# Does compiler simultaneously support -c and -o options? 15417compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15418 15419# Whether or not to add -lc for building shared libraries. 15420build_libtool_need_lc=$archive_cmds_need_lc 15421 15422# Whether or not to disallow shared libs when runtime libs are static. 15423allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15424 15425# Compiler flag to allow reflexive dlopens. 15426export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15427 15428# Compiler flag to generate shared objects directly from archives. 15429whole_archive_flag_spec=$lt_whole_archive_flag_spec 15430 15431# Whether the compiler copes with passing no objects directly. 15432compiler_needs_object=$lt_compiler_needs_object 15433 15434# Create an old-style archive from a shared archive. 15435old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15436 15437# Create a temporary old-style archive to link instead of a shared archive. 15438old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15439 15440# Commands used to build a shared archive. 15441archive_cmds=$lt_archive_cmds 15442archive_expsym_cmds=$lt_archive_expsym_cmds 15443 15444# Commands used to build a loadable module if different from building 15445# a shared archive. 15446module_cmds=$lt_module_cmds 15447module_expsym_cmds=$lt_module_expsym_cmds 15448 15449# Whether we are building with GNU ld or not. 15450with_gnu_ld=$lt_with_gnu_ld 15451 15452# Flag that allows shared libraries with undefined symbols to be built. 15453allow_undefined_flag=$lt_allow_undefined_flag 15454 15455# Flag that enforces no undefined symbols. 15456no_undefined_flag=$lt_no_undefined_flag 15457 15458# Flag to hardcode \$libdir into a binary during linking. 15459# This must work even if \$libdir does not exist 15460hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15461 15462# Whether we need a single "-rpath" flag with a separated argument. 15463hardcode_libdir_separator=$lt_hardcode_libdir_separator 15464 15465# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15466# DIR into the resulting binary. 15467hardcode_direct=$hardcode_direct 15468 15469# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15470# DIR into the resulting binary and the resulting library dependency is 15471# "absolute",i.e impossible to change by setting \$shlibpath_var if the 15472# library is relocated. 15473hardcode_direct_absolute=$hardcode_direct_absolute 15474 15475# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15476# into the resulting binary. 15477hardcode_minus_L=$hardcode_minus_L 15478 15479# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15480# into the resulting binary. 15481hardcode_shlibpath_var=$hardcode_shlibpath_var 15482 15483# Set to "yes" if building a shared library automatically hardcodes DIR 15484# into the library and all subsequent libraries and executables linked 15485# against it. 15486hardcode_automatic=$hardcode_automatic 15487 15488# Set to yes if linker adds runtime paths of dependent libraries 15489# to runtime path list. 15490inherit_rpath=$inherit_rpath 15491 15492# Whether libtool must link a program against all its dependency libraries. 15493link_all_deplibs=$link_all_deplibs 15494 15495# Set to "yes" if exported symbols are required. 15496always_export_symbols=$always_export_symbols 15497 15498# The commands to list exported symbols. 15499export_symbols_cmds=$lt_export_symbols_cmds 15500 15501# Symbols that should not be listed in the preloaded symbols. 15502exclude_expsyms=$lt_exclude_expsyms 15503 15504# Symbols that must always be exported. 15505include_expsyms=$lt_include_expsyms 15506 15507# Commands necessary for linking programs (against libraries) with templates. 15508prelink_cmds=$lt_prelink_cmds 15509 15510# Commands necessary for finishing linking programs. 15511postlink_cmds=$lt_postlink_cmds 15512 15513# Specify filename containing input files. 15514file_list_spec=$lt_file_list_spec 15515 15516# How to hardcode a shared library path into an executable. 15517hardcode_action=$hardcode_action 15518 15519# ### END LIBTOOL CONFIG 15520 15521_LT_EOF 15522 15523 cat <<'_LT_EOF' >> "$cfgfile" 15524 15525# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 15526 15527# func_munge_path_list VARIABLE PATH 15528# ----------------------------------- 15529# VARIABLE is name of variable containing _space_ separated list of 15530# directories to be munged by the contents of PATH, which is string 15531# having a format: 15532# "DIR[:DIR]:" 15533# string "DIR[ DIR]" will be prepended to VARIABLE 15534# ":DIR[:DIR]" 15535# string "DIR[ DIR]" will be appended to VARIABLE 15536# "DIRP[:DIRP]::[DIRA:]DIRA" 15537# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 15538# "DIRA[ DIRA]" will be appended to VARIABLE 15539# "DIR[:DIR]" 15540# VARIABLE will be replaced by "DIR[ DIR]" 15541func_munge_path_list () 15542{ 15543 case x$2 in 15544 x) 15545 ;; 15546 *:) 15547 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 15548 ;; 15549 x:*) 15550 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 15551 ;; 15552 *::*) 15553 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 15554 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 15555 ;; 15556 *) 15557 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 15558 ;; 15559 esac 15560} 15561 15562 15563# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 15564func_cc_basename () 15565{ 15566 for cc_temp in $*""; do 15567 case $cc_temp in 15568 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15569 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15570 \-*) ;; 15571 *) break;; 15572 esac 15573 done 15574 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 15575} 15576 15577 15578# ### END FUNCTIONS SHARED WITH CONFIGURE 15579 15580_LT_EOF 15581 15582 case $host_os in 15583 aix3*) 15584 cat <<\_LT_EOF >> "$cfgfile" 15585# AIX sometimes has problems with the GCC collect2 program. For some 15586# reason, if we set the COLLECT_NAMES environment variable, the problems 15587# vanish in a puff of smoke. 15588if test set != "${COLLECT_NAMES+set}"; then 15589 COLLECT_NAMES= 15590 export COLLECT_NAMES 15591fi 15592_LT_EOF 15593 ;; 15594 esac 15595 15596 15597ltmain=$ac_aux_dir/ltmain.sh 15598 15599 15600 # We use sed instead of cat because bash on DJGPP gets confused if 15601 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15602 # text mode, it properly converts lines to CR/LF. This bash problem 15603 # is reportedly fixed, but why not run on old versions too? 15604 sed '$q' "$ltmain" >> "$cfgfile" \ 15605 || (rm -f "$cfgfile"; exit 1) 15606 15607 mv -f "$cfgfile" "$ofile" || 15608 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15609 chmod +x "$ofile" 15610 15611 ;; 15612 15613 esac 15614done # for ac_tag 15615 15616 15617as_fn_exit 0 15618_ACEOF 15619ac_clean_files=$ac_clean_files_save 15620 15621test $ac_write_fail = 0 || 15622 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15623 15624 15625# configure is writing to config.log, and then calls config.status. 15626# config.status does its own redirection, appending to config.log. 15627# Unfortunately, on DOS this fails, as config.log is still kept open 15628# by configure, so config.status won't be able to write to it; its 15629# output is simply discarded. So we exec the FD to /dev/null, 15630# effectively closing config.log, so it can be properly (re)opened and 15631# appended to by config.status. When coming back to configure, we 15632# need to make the FD available again. 15633if test "$no_create" != yes; then 15634 ac_cs_success=: 15635 ac_config_status_args= 15636 test "$silent" = yes && 15637 ac_config_status_args="$ac_config_status_args --quiet" 15638 exec 5>/dev/null 15639 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15640 exec 5>>config.log 15641 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15642 # would make configure fail if this is the last instruction. 15643 $ac_cs_success || as_fn_exit 1 15644fi 15645if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15647$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15648fi 15649 15650